studyStudent.vue 1012 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173
  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 class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  72. <div
  73. style="
  74. max-width: calc(100% - 40px);
  75. width: auto;
  76. white-space: nowrap;
  77. overflow: hidden;
  78. text-overflow: ellipsis;
  79. word-break: break-word;
  80. display: block;
  81. "
  82. >
  83. <el-tooltip
  84. effect="light"
  85. :content="courseDetail.title"
  86. placement="top"
  87. >
  88. <div class="ctitle">
  89. {{ courseDetail.title }}
  90. </div>
  91. </el-tooltip>
  92. </div>
  93. <el-tooltip effect="light" content="收缩" placement="top">
  94. <div class="mlImg" @click="setContent2(false)">
  95. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  96. </div>
  97. </el-tooltip>
  98. </div>
  99. <div
  100. class="inviteBox"
  101. v-if="tcid && inviteCode"
  102. style="padding: 0 0 8px 0"
  103. >
  104. <div>
  105. <span>随机码:{{ inviteCode }}</span>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="cru_selectBox">
  110. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  111. <div class="stageChild" :class="{ navActive: item.isOpen }">
  112. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  113. <div
  114. class="navItem"
  115. :class="{
  116. openTaskActive:
  117. navIndex == taskCount &&
  118. nav.id == navId &&
  119. stageIndex == courseType,
  120. }"
  121. >
  122. <div v-if="nav.tool[0].tool != undefined">
  123. <div
  124. class="closeTri1"
  125. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  126. @click="openTask(stageIndex, navIndex, nav.id)"
  127. >
  128. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  129. </div>
  130. <div
  131. class="closeTri1"
  132. v-else
  133. @click="openTask(stageIndex, navIndex, nav.id)"
  134. >
  135. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  136. </div>
  137. </div>
  138. <div v-else class="noToolBlue"></div>
  139. <div
  140. @click="openTask(stageIndex, navIndex, nav.id)"
  141. class="navItemList"
  142. :class="{
  143. isItemList:
  144. navIndex == taskCount &&
  145. nav.id == navId &&
  146. stageIndex == courseType,
  147. }"
  148. >
  149. <div>任务{{ navIndex + 1 }}:</div>
  150. <el-tooltip
  151. effect="light"
  152. :content="nav.taskName"
  153. placement="top"
  154. >
  155. <div
  156. :style="{
  157. width:
  158. IsLookOpen && !nav.isLook
  159. ? 'calc(100% - 75px)'
  160. : 'auto',
  161. }"
  162. >
  163. {{ nav.taskName }}
  164. </div>
  165. </el-tooltip>
  166. </div>
  167. <div class="lockTaskIcon">
  168. <img
  169. src="../../assets/lock.png"
  170. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  171. courseDetail.course_teacher.indexOf(userid) ==-1"
  172. alt=""
  173. />
  174. </div>
  175. </div>
  176. <div
  177. v-if="nav.tool[0].tool != undefined"
  178. class="toolChild"
  179. :class="{ toolActive: nav.isOpen }"
  180. >
  181. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  182. <div
  183. class="gjCss"
  184. :class="{
  185. isGjCss: t.isTool,
  186. }"
  187. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  188. >
  189. <div>工具{{ toolIndex2 + 1 }}:</div>
  190. <div v-if="t.tool == 58">模拟驾驶</div>
  191. <div v-if="t.tool == 59">路径搜索</div>
  192. <div v-if="t.tool == 60">深度学习</div>
  193. <div v-if="t.tool == 10">倒计时</div>
  194. <div v-if="t.tool == 65">挑人</div>
  195. <div v-if="t.tool == 7">思维网格</div>
  196. <div v-if="t.tool == 1">电子白板</div>
  197. <div v-if="t.tool == 52">文档</div>
  198. <div v-if="t.tool == 3">思维导图</div>
  199. <div v-if="t.tool == 48">表格</div>
  200. <div v-if="t.tool == 49">学生分组</div>
  201. <div v-if="t.tool == 4">问卷调查</div>
  202. <div v-if="t.tool == 45">选择题</div>
  203. <div v-if="t.tool == 15">问答</div>
  204. <div v-if="t.tool == 16">作业提交</div>
  205. <div v-if="t.tool == 50">批量上传</div>
  206. <div v-if="t.tool == 41">选择匹配</div>
  207. <div v-if="t.tool == 47">排序</div>
  208. <div v-if="t.tool == 40">个人评价</div>
  209. <div v-if="t.tool == 18">训练平台</div>
  210. <div v-if="t.tool == 21">AIoT Blockly</div>
  211. <div v-if="t.tool == 23">AI Python</div>
  212. <div v-if="t.tool == 24">AI Blockly</div>
  213. <div v-if="t.tool == 32">源码编辑</div>
  214. <div v-if="t.tool == 57">CocoPi</div>
  215. <div v-if="t.tool == 63">海龟编程</div>
  216. <div v-if="t.tool == 28">翻译</div>
  217. <div v-if="t.tool == 31">数字画板</div>
  218. <div v-if="t.tool == 39">GeoGebra</div>
  219. <div v-if="t.tool == 66">公式编辑</div>
  220. <div v-if="t.tool == 67">分子结构</div>
  221. <div v-if="t.tool == 68">时间轴</div>
  222. <div v-if="t.tool == 69">英语写作</div>
  223. <div v-if="t.tool == 70">英语口语</div>
  224. <div v-if="t.tool == 25">目标管理</div>
  225. <div v-if="t.tool == 26">课程设计</div>
  226. <div v-if="t.tool == 62">交互视频</div>
  227. <div v-if="t.tool == 71">AI智能体</div>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  237. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  238. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 47px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 18px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  239. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '100%' : 'calc(100% - 745px)'}">
  240. <div>任务{{ taskCount + 1 }}</div>
  241. <el-tooltip
  242. effect="light"
  243. :content="
  244. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  245. "
  246. placement="top"
  247. >
  248. <div>
  249. {{
  250. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  251. .task
  252. }}
  253. </div>
  254. </el-tooltip>
  255. </div>
  256. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  257. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)">
  258. <div class="btnLeft">
  259. <el-tooltip effect="light" content="刷新" placement="top">
  260. <div class="reBtnIcon" @click="refreshCourse">
  261. <span>刷新</span>
  262. </div>
  263. </el-tooltip>
  264. <el-tooltip effect="light" content="评论" placement="top">
  265. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  266. <span>评论</span>
  267. </div>
  268. </el-tooltip>
  269. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  270. <el-tooltip effect="light" content="录制" placement="top">
  271. <div class="vedioIcon" @click="startRecording">
  272. <span>录制</span>
  273. </div>
  274. </el-tooltip>
  275. </div>
  276. <div v-else-if="tType == 1 || tType == 4">
  277. <el-tooltip effect="light" content="下载" placement="top">
  278. <div class="vedioIcon1" @click="stopRecording">
  279. <span>下载</span>
  280. </div>
  281. </el-tooltip>
  282. </div>
  283. </div>
  284. <div class="btnRight">
  285. <div
  286. class="last"
  287. @click="nextOrpreSteps(0)"
  288. v-if="!(IsFollow && tType == 2)"
  289. @mouseover="isHovered = true"
  290. @mouseout="isHovered = false"
  291. >
  292. <div class="lastImg">
  293. <img
  294. :src="
  295. isHovered
  296. ? require('../../assets/icon/newIcons/whiteLast.png')
  297. : require('../../assets/icon/newIcons/last.png')
  298. "
  299. alt=""
  300. />
  301. </div>
  302. <div class="lastText">上一步</div>
  303. </div>
  304. <div
  305. class="last"
  306. @click="nextOrpreSteps(1)"
  307. v-if="!(IsFollow && tType == 2)"
  308. @mouseover="isHovered1 = true"
  309. @mouseout="isHovered1 = false"
  310. >
  311. <div class="lastText">下一步</div>
  312. <div class="lastImg">
  313. <img
  314. :src="
  315. isHovered1
  316. ? require('../../assets/icon/newIcons/whiteNext.png')
  317. : require('../../assets/icon/newIcons/next.png')
  318. "
  319. alt=""
  320. />
  321. </div>
  322. </div>
  323. <div
  324. class="last"
  325. @click="juriVisible = true"
  326. v-if="tType == 1"
  327. @mouseover="isHovered2 = true"
  328. @mouseout="isHovered2 = false"
  329. >
  330. <div class="lastImg">
  331. <img
  332. :src="
  333. isHovered2
  334. ? require('../../assets/icon/newIcons/whiteLock.png')
  335. : require('../../assets/icon/newIcons/lock.png')
  336. "
  337. alt=""
  338. />
  339. </div>
  340. <div class="lastText">权限</div>
  341. </div>
  342. <div
  343. class="returnBtn1 returnIcon"
  344. @click.stop="
  345. goTo(
  346. '/courseDetail?userid=' +
  347. userid +
  348. '&oid=' +
  349. oid +
  350. '&org=' +
  351. org +
  352. '&cid=' +
  353. classId +
  354. '&courseId=' +
  355. id +
  356. '&tType=' +
  357. tType +
  358. '&screenType=' +
  359. screenType
  360. )
  361. "
  362. >
  363. <div class="lastImg">
  364. <img src="../../assets/icon/newIcon/return.png" alt="" />
  365. </div>
  366. <div class="lastText" style="color: #000">返回</div>
  367. </div>
  368. </div>
  369. <!-- <div
  370. class="returnBtn lockIcon"
  371. @click="juriVisible = true"
  372. v-if="tType == 1"
  373. >
  374. 权限
  375. </div>
  376. <div
  377. class="returnBtn vedioIcon"
  378. @click="startRecording"
  379. v-if="!videoStart && (tType == 1 || tType == 4)"
  380. >
  381. 录制
  382. </div>
  383. <div
  384. class="returnBtn"
  385. @click="stopRecording"
  386. v-else-if="tType == 1 || tType == 4"
  387. style="background: #ee5255"
  388. >
  389. 下载
  390. </div>
  391. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  392. 评论
  393. </div>
  394. <div
  395. class="returnBtn"
  396. @click="nextOrpreSteps(0)"
  397. v-if="!(IsFollow && tType == 2)"
  398. >
  399. 上一步
  400. </div>
  401. <div
  402. class="returnBtn"
  403. @click="nextOrpreSteps(1)"
  404. v-if="!(IsFollow && tType == 2)"
  405. >
  406. 下一步
  407. </div>
  408. <div class="returnBtn" @click="refreshCourse">刷新</div>
  409. <div
  410. class="returnBtn returnIcon"
  411. @click.stop="
  412. goTo(
  413. '/courseDetail?userid=' +
  414. userid +
  415. '&oid=' +
  416. oid +
  417. '&org=' +
  418. org +
  419. '&cid=' +
  420. classId +
  421. '&courseId=' +
  422. id +
  423. '&tType=' +
  424. tType +
  425. '&screenType=' +
  426. screenType
  427. )
  428. "
  429. >
  430. 返回
  431. </div> -->
  432. </div>
  433. </div>
  434. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  435. .taskDetail3 && -->
  436. <div
  437. class="isNoMessage"
  438. v-if="
  439. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  440. .chapterData.length == 0 &&
  441. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  442. .toolChoose[0].tool.length == 0 &&
  443. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .taskDetail == '' &&
  445. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .eList &&
  447. !(
  448. courseDetail.userid == userid ||
  449. (courseDetail.course_teacher &&
  450. courseDetail.course_teacher.indexOf(userid) != -1)
  451. )
  452. "
  453. >
  454. <img src="../../assets/icon/isNoMessage.png" alt />
  455. </div>
  456. <div class="study_top" :class="{ pzClass: pzDialog }">
  457. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  458. .taskDetail3 || -->
  459. <div
  460. class="vedioBox"
  461. v-if="
  462. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  463. .taskDetail != '' ||
  464. vChapterData[0].length > 0 ||
  465. fileC[0].length > 0
  466. "
  467. style="border-radius: 0 0 20px 20px"
  468. >
  469. <!-- <div
  470. class="taskBox"
  471. v-if="
  472. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  473. .taskDetail3
  474. "
  475. >
  476. <div
  477. style="
  478. display: flex;
  479. flex-wrap: nowrap;
  480. flex-direction: column;
  481. position: relative;
  482. "
  483. >
  484. <div
  485. style="
  486. padding: 15px 0;
  487. line-height: 29px;
  488. font-size: 18px;
  489. color: #0e1e33;
  490. "
  491. class="cont"
  492. v-if="
  493. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  494. .taskDetail3 != ''
  495. "
  496. v-html="
  497. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  498. .taskDetail3
  499. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  500. taskCount
  501. ].taskDetail3)
  502. : '暂无描述'
  503. "
  504. ></div>
  505. </div>
  506. </div> -->
  507. <div
  508. class="taskBox"
  509. v-if="
  510. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  511. .taskDetail != ''
  512. "
  513. >
  514. <div
  515. style="
  516. display: flex;
  517. flex-wrap: nowrap;
  518. flex-direction: column;
  519. position: relative;
  520. "
  521. >
  522. <div
  523. style="
  524. padding: 15px 0;
  525. line-height: 29px;
  526. font-size: 18px;
  527. color: #0e1e33;
  528. "
  529. class="cont"
  530. v-if="
  531. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  532. .taskDetail != ''
  533. "
  534. v-html="
  535. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  536. .taskDetail
  537. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  538. taskCount
  539. ].taskDetail
  540. : '暂无描述'
  541. "
  542. ></div>
  543. </div>
  544. </div>
  545. <div
  546. class="student_head"
  547. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  548. >
  549. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  550. <div
  551. :class="
  552. contentDialog == false
  553. ? 'box_course isContentCss'
  554. : 'box_course'
  555. "
  556. v-if="
  557. vChapterData.length > 0 &&
  558. vChapterData[0] &&
  559. showType !== ''
  560. "
  561. >
  562. <div class="wheel" style="height: auto" v-if="showType === 0">
  563. <div
  564. class="workd_media"
  565. style="height: 650px; width: calc(100% - 50px)"
  566. >
  567. <video-player
  568. class="video-player vjs-custom-skin"
  569. :class="contentDialog == false ? 'isAllWidth' : ''"
  570. :playsinline="true"
  571. :options="playerO[0]"
  572. @play="onPlayerPlay($event)"
  573. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  574. ></video-player>
  575. </div>
  576. </div>
  577. <div
  578. class="wheel"
  579. v-if="showType == 1"
  580. style="
  581. box-shadow: 0 0 6px 1px #f2f2f2;
  582. width: 95%;
  583. margin: 0 auto;
  584. background: #f1f1f1;
  585. "
  586. >
  587. <div class="title">查看文档</div>
  588. <el-form class="textBox">
  589. <el-form-item class="textTitle">
  590. <div style="font-size: 22px">
  591. {{ text.name }}
  592. </div>
  593. </el-form-item>
  594. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  595. <div v-html="text.url" class="textContent cont"></div>
  596. </el-form>
  597. </div>
  598. <div
  599. class="wheel"
  600. v-if="
  601. pptImgUrl1.indexOf(
  602. 'https://view.officeapps.live.com/op/view.aspx?src='
  603. ) != -1 && showType == 2
  604. "
  605. style="width: 95%; margin: 0 auto"
  606. >
  607. <iframe
  608. style="width: 100%; height: 100%; border: none"
  609. :src="pptImgUrl1"
  610. ></iframe>
  611. </div>
  612. <div
  613. class="wheel"
  614. v-else-if="showType == 2"
  615. style="width: 95%; margin: 0 auto"
  616. >
  617. <iframe
  618. style="width: 100%; height: 100%; border: none"
  619. security="restricted"
  620. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  621. :src="pptImgUrl1"
  622. ></iframe>
  623. </div>
  624. <div
  625. class="wheel"
  626. v-if="showType == 3"
  627. style="width: 95%; margin: 0 auto"
  628. >
  629. <pdf
  630. :pdfUrl="pptImgUrl1"
  631. style="width: 100%; height: 100%; overflow: auto"
  632. ></pdf>
  633. </div>
  634. <div
  635. class="wheel"
  636. v-if="showType == 4"
  637. style="width: 95%; margin: 0 auto"
  638. >
  639. <el-image
  640. :src="pptImgUrl1"
  641. fit="contain"
  642. style="width: 100%; height: 100%; cursor: pointer"
  643. @click="previewImg(pptImgUrl1)"
  644. ></el-image>
  645. </div>
  646. </div>
  647. <div
  648. class="pButton"
  649. style="position: absolute; right: 20px; top: 0; z-index: 998"
  650. v-if="!contentDialog"
  651. @click="setContent(true)"
  652. >
  653. <!-- 批 -->
  654. <img
  655. src="../../assets/icon/newIcons/isLeft.png"
  656. style="width: 45px"
  657. alt=""
  658. />
  659. </div>
  660. <div
  661. v-if="contentDialog == true"
  662. :style="{
  663. width:
  664. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  665. showType === ''
  666. ? 'calc(100%)'
  667. : '300px',
  668. margin:
  669. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  670. showType === ''
  671. ? '0 15px'
  672. : '0 15px 0 0',
  673. }"
  674. >
  675. <div
  676. class="vedioList"
  677. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  678. style="height: 650px"
  679. >
  680. <div class="navCorOpenBox">
  681. <div class="navTitile">内容列表:</div>
  682. <div class="navCorOpen" @click="setContent(false)">
  683. <img
  684. src="../../assets/icon/newIcons/isRight.png"
  685. alt=""
  686. />
  687. </div>
  688. </div>
  689. <div class="navBox">
  690. <div
  691. v-show="
  692. vChapterData[0].length > 0 || fileC[0].length > 0
  693. "
  694. style="padding: 10px 0 25px 0"
  695. >
  696. <div
  697. class="vedioTimeBox"
  698. v-for="(vitem, vindex) in vChapterData[0]"
  699. :key="vindex + '1'"
  700. >
  701. <div class="navListItem" v-if="vitem.type == 2">
  702. <div
  703. @click="lookVedio(vitem.url, vindex)"
  704. class="navText"
  705. :class="isClickNav == vindex ? 'isClickNav' : ''"
  706. >
  707. <span v-if="vitem.text">{{ vitem.text }}-</span
  708. >{{ vitem.name }}
  709. </div>
  710. <div class="downIcon" @click="downloadFile2(vitem)">
  711. <img
  712. src="../../assets/icon/newIcon/down.png"
  713. alt
  714. />
  715. </div>
  716. </div>
  717. <div class="navListItem" v-if="vitem.type == 6">
  718. <div
  719. @click="lookText(0, vindex)"
  720. class="navText"
  721. :class="isClickNav == vindex ? 'isClickNav' : ''"
  722. >
  723. {{ vitem.name }}.doc
  724. </div>
  725. <div
  726. class="downIcon"
  727. @click="checkFileFull1(vitem.type, vitem)"
  728. >
  729. <img
  730. src="../../assets/icon/newIcon/allScreen.png"
  731. alt
  732. />
  733. </div>
  734. </div>
  735. <div
  736. class="navListItem"
  737. v-if="vitem.type == 8 || vitem.type == 14"
  738. >
  739. <div
  740. @click="doUrl(vitem.url, vindex)"
  741. class="navText"
  742. :class="isClickNav == vindex ? 'isClickNav' : ''"
  743. >
  744. {{ vitem.title ? vitem.title : vitem.url }}
  745. </div>
  746. <div
  747. class="downIcon"
  748. @click="checkFileFull1(vitem.type, vitem)"
  749. >
  750. <img
  751. src="../../assets/icon/newIcon/allScreen.png"
  752. alt
  753. />
  754. </div>
  755. </div>
  756. <div class="navListItem" v-if="vitem.type == 3">
  757. <div
  758. @click="downFile(vitem, vindex)"
  759. class="navText"
  760. :class="isClickNav == vindex ? 'isClickNav' : ''"
  761. >
  762. <span v-if="vitem.text">{{ vitem.text }}-</span
  763. >{{ vitem.name }}
  764. </div>
  765. <div
  766. class="downIcon"
  767. @click="checkFileFull1(vitem.type, vitem)"
  768. >
  769. <img
  770. src="../../assets/icon/newIcon/allScreen.png"
  771. alt
  772. />
  773. </div>
  774. <div class="downIcon" @click="downloadFile2(vitem)">
  775. <img
  776. src="../../assets/icon/newIcon/down.png"
  777. alt
  778. />
  779. </div>
  780. </div>
  781. <div class="navListItem" v-if="vitem.type == 12">
  782. <div class="navText" @click="downloadFile2(vitem)">
  783. <span v-if="vitem.text">{{ vitem.text }}-</span
  784. >{{ vitem.name }}
  785. </div>
  786. <div
  787. class="downIcon"
  788. @click="checkFileFull1(vitem.type, vitem)"
  789. >
  790. <img
  791. src="../../assets/icon/newIcon/allScreen.png"
  792. alt
  793. />
  794. </div>
  795. <div class="downIcon" @click="downloadFile2(vitem)">
  796. <img
  797. src="../../assets/icon/newIcon/down.png"
  798. alt
  799. />
  800. </div>
  801. </div>
  802. <div class="navListItem" v-if="vitem.type == 13">
  803. <div
  804. class="navText"
  805. @click="checkPhoto(vitem, vindex)"
  806. :class="isClickNav == vindex ? 'isClickNav' : ''"
  807. >
  808. {{ vitem.name }}
  809. </div>
  810. <div class="downIcon" @click="downloadFile2(vitem)">
  811. <img
  812. src="../../assets/icon/newIcon/down.png"
  813. alt
  814. />
  815. </div>
  816. </div>
  817. </div>
  818. <div class="fileC_box" v-if="fileC[0].length > 0">
  819. <div class="fileC_title">以下文件不支持预览</div>
  820. <div
  821. class="vedioTimeBox"
  822. v-for="(vitem, vindex) in fileC[0]"
  823. :key="vindex + '1'"
  824. >
  825. <div class="navListItem" v-if="vitem.type == 12">
  826. <div class="navText" style="color: #acb4bf">
  827. <span v-if="vitem.text">{{ vitem.text }}-</span
  828. >{{ vitem.name }}
  829. </div>
  830. <div
  831. class="downIcon"
  832. @click="downloadFile2(vitem)"
  833. >
  834. <img
  835. src="../../assets/icon/newIcon/down.png"
  836. alt
  837. />
  838. </div>
  839. </div>
  840. </div>
  841. </div>
  842. </div>
  843. </div>
  844. </div>
  845. </div>
  846. </div>
  847. <div style="width: calc(100% - 315px)">
  848. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  849. <!-- <el-button
  850. type="primary"
  851. class="newButton"
  852. @click="checkFileFull(showType, pptImgUrl1)"
  853. >全屏查看</el-button
  854. >
  855. <el-button
  856. type="primary"
  857. class="newButton"
  858. @click="downloadFile(pptImgUrl1)"
  859. v-if="showType != 2"
  860. >文件下载</el-button
  861. > -->
  862. <el-button
  863. v-if="
  864. showType == 2 &&
  865. pptImgUrl1.indexOf(
  866. 'https://view.officeapps.live.com/op/view.aspx?src='
  867. ) == -1
  868. "
  869. type="primary"
  870. class="newButton"
  871. @click="openLine(pptImgUrl1)"
  872. >打开链接
  873. </el-button>
  874. </div>
  875. <!-- <div
  876. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  877. v-if="showType == 1"
  878. >
  879. <el-button
  880. type="primary"
  881. class="newButton"
  882. @click="checkFileFull(showType, text)"
  883. >全屏查看</el-button
  884. >
  885. </div> -->
  886. </div>
  887. </div>
  888. </div>
  889. <div class="student_body" v-resize="resize">
  890. <div
  891. class="vedioBox"
  892. :style="{
  893. borderRadius:
  894. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  895. .taskDetail == '' &&
  896. vChapterData[taskCount].length == 0 &&
  897. fileC[taskCount].length == 0
  898. ? '0 0 20px 20px'
  899. : '20px',
  900. }"
  901. v-if="
  902. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  903. .toolChoose[0].tool &&
  904. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  905. .toolChoose[0].tool.length > 0
  906. "
  907. >
  908. <div
  909. class="toolHeng2"
  910. style="position: relative"
  911. v-if="
  912. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  913. .toolChoose[0].tool &&
  914. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  915. .toolChoose[0].tool.length &&
  916. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  917. .toolChoose[0].tool.length > 0
  918. "
  919. >
  920. <div class="workNav">工作区</div>
  921. <div
  922. class="filebox"
  923. style="flex-wrap: nowrap"
  924. v-for="(tool, toolIndex) in chapInfoList[courseType]
  925. .chapterInfo[0].taskJson[taskCount].toolChoose"
  926. :key="toolIndex"
  927. >
  928. <div class="bzBox">
  929. <div class="yCss"></div>
  930. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  931. 工具{{ toolIndex + 1 }}
  932. </div>
  933. <div
  934. v-if="timeWorkList[toolIndex].length > 0"
  935. style="margin: 0 0 0 10px"
  936. >
  937. {{
  938. timeWorkList[toolIndex][0].time
  939. ? "时间:" + timeWorkList[toolIndex][0].time
  940. : ""
  941. }}
  942. </div>
  943. </div>
  944. <div class="toolBox">
  945. <div>
  946. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  947. :key="indexTool"-->
  948. <!-- <div class="iframeBox">
  949. <div
  950. class="addPoint isBorder"
  951. v-for="(tooC, toolCIndex) in tool.tool"
  952. :key="toolCIndex"
  953. >
  954. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  955. <div
  956. class="iframeName"
  957. >
  958. 电子白板
  959. </div>
  960. <iframe
  961. src="https://iwb.cocorobo.cn/"
  962. ref="whiteBoard"
  963. ></iframe>
  964. </div>
  965. </div>
  966. </div>-->
  967. <div class="noiframeBox">
  968. <div
  969. class="addPoint"
  970. v-for="(tooC, toolCIndex) in tool.tool"
  971. :key="toolCIndex"
  972. >
  973. <div v-if="tooC == 1">
  974. <img
  975. src="../../assets/icon/secondToolList/whiteBoard.png"
  976. alt
  977. @click="addTools(tooC, toolIndex, taskCount)"
  978. />
  979. <div style="margin: 5px 0">电子白板</div>
  980. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  981. style="position: absolute;right: 33px;top: -30px;">
  982. 投影
  983. </div>
  984. </div>
  985. <div v-if="tooC == 3">
  986. <img
  987. src="../../assets/icon/secondToolList/mindMapping.png"
  988. alt
  989. @click="addTools(tooC, toolIndex, taskCount)"
  990. />
  991. <div style="margin: 5px 0">思维导图</div>
  992. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  993. style="position: absolute;right: 33px;top: -30px;">
  994. 投影
  995. </div>
  996. </div>
  997. <div v-if="tooC == 6">
  998. <img
  999. src="../../assets/icon/secondToolList/doc.png"
  1000. alt
  1001. @click="addTools(tooC, toolIndex, taskCount)"
  1002. />
  1003. <div style="margin: 5px 0">协同文档</div>
  1004. </div>
  1005. <div v-if="tooC == 7">
  1006. <img
  1007. src="../../assets/icon/secondToolList/mindNetwork.png"
  1008. alt
  1009. @click="addTools(tooC, toolIndex, taskCount)"
  1010. />
  1011. <div style="margin: 5px 0">思维网格</div>
  1012. <!-- && worksStudent[toolIndex].length>0 -->
  1013. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1014. style="position: absolute;right: 33px;top: -30px;">
  1015. 投影
  1016. </div>
  1017. </div>
  1018. <div v-if="tooC == 8">
  1019. <img
  1020. src="../../assets/icon/secondToolList/library.png"
  1021. alt
  1022. @click="addTools(tooC, toolIndex, taskCount)"
  1023. />
  1024. <div style="margin: 5px 0">素材库</div>
  1025. </div>
  1026. <div v-if="tooC == 17">
  1027. <img
  1028. src="../../assets/icon/secondToolList/library.png"
  1029. alt
  1030. @click="addTools(tooC, toolIndex, taskCount)"
  1031. />
  1032. <div style="margin: 5px 0">学习资料</div>
  1033. </div>
  1034. <div v-if="tooC == 2">
  1035. <img
  1036. @click="addTools(tooC, toolIndex, taskCount)"
  1037. src="../../assets/icon/secondToolList/note.png"
  1038. alt
  1039. />
  1040. <div style="margin: 5px 0">便签</div>
  1041. </div>
  1042. <div v-if="tooC == 4">
  1043. <img
  1044. @click="addTools(tooC, toolIndex, taskCount)"
  1045. src="../../assets/icon/thirdToolList/ask.png"
  1046. alt
  1047. />
  1048. <div style="margin: 5px 0">问卷调查</div>
  1049. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1050. style="position: absolute;right: 153px;top: -30px;">
  1051. 投影
  1052. </div>
  1053. <div
  1054. class="upload_toolBtn"
  1055. v-if="tType === '1'"
  1056. @click="
  1057. openStatisticalAnalysis(
  1058. tooC,
  1059. toolIndex,
  1060. taskCount,
  1061. 45
  1062. )
  1063. "
  1064. style="position: absolute;right: 33px;top: -30px;"
  1065. >
  1066. 统计分析
  1067. </div>
  1068. </div>
  1069. <div v-if="tooC == 45">
  1070. <img
  1071. @click="addTools(tooC, toolIndex, taskCount)"
  1072. src="../../assets/icon/thirdToolList/choose.png"
  1073. alt
  1074. />
  1075. <div style="margin: 5px 0">选择题</div>
  1076. <!-- &&worksStudent[toolIndex].length > 0 -->
  1077. <div
  1078. class="upload_toolBtn"
  1079. @click="
  1080. openChoseWorksDetailDialog(
  1081. tooC,
  1082. toolIndex,
  1083. taskCount,45
  1084. )
  1085. "
  1086. style="position: absolute;right: 33px;top: -30px;"
  1087. >
  1088. 投影
  1089. </div>
  1090. </div>
  1091. <!-- <div v-if="tooC == 5">
  1092. <img
  1093. @click="addTools(tooC, toolIndex, taskCount)"
  1094. src="../../assets/icon/thirdToolList/score.png"
  1095. alt
  1096. />
  1097. <div style="margin: 5px 0">量规评分</div>
  1098. </div> -->
  1099. <div v-if="tooC == 10">
  1100. <img
  1101. @click="addTools(tooC, toolIndex, taskCount)"
  1102. src="../../assets/icon/thirdToolList/time.png"
  1103. alt
  1104. />
  1105. <div style="margin: 5px 0">倒计时</div>
  1106. </div>
  1107. <div v-if="tooC == 15">
  1108. <img
  1109. @click="addTools(tooC, toolIndex, taskCount)"
  1110. src="../../assets/icon/thirdToolList/answer.png"
  1111. alt
  1112. />
  1113. <div style="margin: 5px 0">问答</div>
  1114. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1115. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1116. 投影
  1117. </div>
  1118. </div>
  1119. <div v-if="tooC == 26">
  1120. <img
  1121. @click="addTools(tooC, toolIndex, taskCount)"
  1122. src="../../assets/icon/thirdToolList/courseDesign.png"
  1123. alt
  1124. />
  1125. <div style="margin: 5px 0">课程设计</div>
  1126. </div>
  1127. <div v-if="tooC == 18">
  1128. <img
  1129. @click="addTools(tooC, toolIndex, taskCount)"
  1130. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1131. alt
  1132. />
  1133. <div style="margin: 5px 0">训练服务器</div>
  1134. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1135. style="position: absolute;right: 33px;top: -30px;">
  1136. 投影
  1137. </div>
  1138. </div>
  1139. <div v-if="tooC == 16">
  1140. <img
  1141. @click="addTools(tooC, toolIndex, taskCount)"
  1142. src="../../assets/icon/thirdToolList/work.png"
  1143. alt
  1144. />
  1145. <div style="margin: 5px 0">作业提交</div>
  1146. </div>
  1147. <div v-if="tooC == 50">
  1148. <img
  1149. @click="addTools(tooC, toolIndex, taskCount)"
  1150. src="../../assets/icon/thirdToolList/plwork.png"
  1151. alt
  1152. />
  1153. <div style="margin: 5px 0">批量上传</div>
  1154. </div>
  1155. <div v-if="tooC == 21">
  1156. <img
  1157. @click="addTools(tooC, toolIndex, taskCount)"
  1158. src="../../assets/icon/fourthToolList/program.png"
  1159. alt
  1160. />
  1161. <div style="margin: 5px 0">AIoT Blockly</div>
  1162. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1163. style="position: absolute;right: 33px;top: -30px;">
  1164. 投影
  1165. </div>
  1166. </div>
  1167. <!-- <div v-if="tooC == 22">
  1168. <img
  1169. @click="addTools(tooC, toolIndex, taskCount)"
  1170. src="../../assets/icon/fourthToolList/program.png"
  1171. alt
  1172. />
  1173. <div style="margin: 5px 0">AI体验</div>
  1174. </div> -->
  1175. <div v-if="tooC == 23">
  1176. <img
  1177. @click="addTools(tooC, toolIndex, taskCount)"
  1178. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1179. alt
  1180. />
  1181. <div style="margin: 5px 0">AI Python</div>
  1182. </div>
  1183. <div v-if="tooC == 24">
  1184. <img
  1185. @click="addTools(tooC, toolIndex, taskCount)"
  1186. src="../../assets/icon/fourthToolList/AIprogram.png"
  1187. alt
  1188. />
  1189. <div style="margin: 5px 0">AI Blockly</div>
  1190. </div>
  1191. <div v-if="tooC == 25">
  1192. <img
  1193. @click="addTools(tooC, toolIndex, taskCount)"
  1194. src="../../assets/icon/thirdToolList/evalua.png"
  1195. alt
  1196. />
  1197. <div style="margin: 5px 0">目标管理</div>
  1198. </div>
  1199. <div v-if="tooC == 31">
  1200. <img
  1201. @click="addTools(tooC, toolIndex, taskCount)"
  1202. src="../../assets/icon/secondToolList/networkPanel.png"
  1203. alt
  1204. />
  1205. <div style="margin: 5px 0">数学画板</div>
  1206. </div>
  1207. <div v-if="tooC == 28">
  1208. <img
  1209. @click="addTools(tooC, toolIndex, taskCount)"
  1210. src="../../assets/icon/secondToolList/translation.png"
  1211. alt
  1212. />
  1213. <div style="margin: 5px 0">翻译</div>
  1214. </div>
  1215. <div v-if="tooC == 37">
  1216. <img
  1217. @click="addTools(tooC, toolIndex, taskCount)"
  1218. src="../../assets/icon/secondToolList/mohe.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">魔盒识字</div>
  1222. </div>
  1223. <div v-if="tooC == 38">
  1224. <img
  1225. @click="addTools(tooC, toolIndex, taskCount)"
  1226. src="../../assets/icon/secondToolList/24game.png"
  1227. alt
  1228. />
  1229. <div style="margin: 5px 0">24点</div>
  1230. </div>
  1231. <div v-if="tooC == 39">
  1232. <img
  1233. @click="addTools(tooC, toolIndex, taskCount)"
  1234. src="../../assets/icon/secondToolList/GeoGebra.png"
  1235. alt
  1236. />
  1237. <div style="margin: 5px 0">GeoGebra</div>
  1238. </div>
  1239. <div v-if="tooC == 32">
  1240. <img
  1241. @click="addTools(tooC, toolIndex, taskCount)"
  1242. src="../../assets/icon/thirdToolList/code.png"
  1243. alt
  1244. />
  1245. <div style="margin: 5px 0">源码编辑</div>
  1246. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1247. style="position: absolute;left: 110px;bottom: 30px;">
  1248. 上传文件
  1249. <input type="file" accept="*" style="display: none"
  1250. @change="beforeUpload1($event, 7, toolIndex)" />
  1251. </div> -->
  1252. </div>
  1253. <div v-if="tooC == 40">
  1254. <img
  1255. @click="addTools(tooC, toolIndex, taskCount)"
  1256. src="../../assets/icon/secondToolList/eval.png"
  1257. alt
  1258. />
  1259. <div style="margin: 5px 0">个人评价</div>
  1260. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1261. style="position: absolute;right: 33px;top: -30px;">
  1262. 投影
  1263. </div>
  1264. </div>
  1265. <div v-if="tooC == 41">
  1266. <img
  1267. @click="addTools(tooC, toolIndex, taskCount)"
  1268. src="../../assets/icon/thirdToolList/select.png"
  1269. alt
  1270. />
  1271. <div style="margin: 5px 0">选择匹配</div>
  1272. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1273. style="position: absolute;right: 33px;top: -30px;">
  1274. 投影
  1275. </div>
  1276. </div>
  1277. <div v-if="tooC == 44">
  1278. <img
  1279. @click="addTools(tooC, toolIndex, taskCount)"
  1280. src="../../assets/icon/thirdToolList/hanClass.png"
  1281. alt
  1282. />
  1283. <div style="margin: 5px 0">汉字宫</div>
  1284. </div>
  1285. <div v-if="tooC == 47">
  1286. <img
  1287. @click="addTools(tooC, toolIndex, taskCount)"
  1288. src="../../assets/icon/fourthToolList/conSentences.png"
  1289. alt
  1290. />
  1291. <div style="margin: 5px 0">排序</div>
  1292. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1293. style="position: absolute;right: 33px;top: -30px;">
  1294. 投影
  1295. </div>
  1296. </div>
  1297. <div v-if="tooC == 48">
  1298. <img
  1299. @click="addTools(tooC, toolIndex, taskCount)"
  1300. src="../../assets/icon/fourthToolList/table.png"
  1301. alt
  1302. />
  1303. <div style="margin: 5px 0">表格</div>
  1304. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1305. style="position: absolute;right: 33px;top: -30px;">
  1306. 投影
  1307. </div>
  1308. </div>
  1309. <div v-if="tooC == 52">
  1310. <img
  1311. @click="addTools(tooC, toolIndex, taskCount)"
  1312. src="../../assets/icon/fourthToolList/text.png"
  1313. alt
  1314. />
  1315. <div style="margin: 5px 0">文档</div>
  1316. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1317. style="position: absolute;right: 33px;top: -30px;">
  1318. 投影
  1319. </div>
  1320. </div>
  1321. <div v-if="tooC == 49">
  1322. <img
  1323. @click="addTools(tooC, toolIndex, taskCount)"
  1324. src="../../assets/icon/fourthToolList/group.png"
  1325. alt
  1326. />
  1327. <div style="margin: 5px 0">学生分组</div>
  1328. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1329. style="position: absolute;right: 33px;top: -30px;">
  1330. 投影
  1331. </div>
  1332. </div>
  1333. <div v-if="tooC == 57">
  1334. <img
  1335. @click="addTools(tooC, toolIndex, taskCount)"
  1336. src="../../assets/icon/fourthToolList/cocopi.png"
  1337. alt
  1338. />
  1339. <div style="margin: 5px 0">CocoPi</div>
  1340. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1341. style="position: absolute;right: 33px;top: -30px;">
  1342. 投影
  1343. </div>
  1344. </div>
  1345. <div v-if="tooC == 58">
  1346. <img
  1347. @click="addTools(tooC, toolIndex, taskCount)"
  1348. src="../../assets/icon/fourthToolList/car.png"
  1349. alt
  1350. />
  1351. <div style="margin: 5px 0">模拟驾驶</div>
  1352. </div>
  1353. <div v-if="tooC == 59">
  1354. <img
  1355. @click="addTools(tooC, toolIndex, taskCount)"
  1356. src="../../assets/icon/fourthToolList/lineSearch.png"
  1357. alt
  1358. />
  1359. <div style="margin: 5px 0">路径搜索</div>
  1360. </div>
  1361. <div v-if="tooC == 60">
  1362. <img
  1363. @click="addTools(tooC, toolIndex, taskCount)"
  1364. src="../../assets/icon/fourthToolList/deepLearning.png"
  1365. alt
  1366. />
  1367. <div style="margin: 5px 0">深度学习</div>
  1368. </div>
  1369. <div v-if="tooC == 61">
  1370. <img
  1371. @click="addTools(tooC, toolIndex, taskCount)"
  1372. src="../../assets/icon/fourthToolList/allHistory.png"
  1373. alt
  1374. />
  1375. <div style="margin: 5px 0">全历史</div>
  1376. </div>
  1377. <div v-if="tooC == 62">
  1378. <img
  1379. @click="addTools(tooC, toolIndex, taskCount)"
  1380. src="../../assets/icon/fourthToolList/interVideo.png"
  1381. alt
  1382. />
  1383. <div style="margin: 5px 0">交互视频</div>
  1384. </div>
  1385. <div v-if="tooC == 63">
  1386. <img
  1387. @click="addTools(tooC, toolIndex, taskCount)"
  1388. src="../../assets/icon/fourthToolList/Wood.png"
  1389. alt
  1390. />
  1391. <div style="margin: 5px 0">海龟编程</div>
  1392. </div>
  1393. <div v-if="tooC == 71">
  1394. <img
  1395. @click="addTools(tooC, toolIndex, taskCount)"
  1396. src="../../assets/icon/fourthToolList/chatgpt.png"
  1397. alt
  1398. />
  1399. <div style="margin: 5px 0">AI智能体</div>
  1400. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1401. style="position: absolute;right: 33px;top: -30px;">
  1402. 投影
  1403. </div>
  1404. </div>
  1405. <div v-if="tooC == 65">
  1406. <img
  1407. @click="addTools(tooC, toolIndex, taskCount)"
  1408. src="../../assets/icon/firstToolList/pickPeople.png"
  1409. alt
  1410. />
  1411. <div style="margin: 5px 0">挑人</div>
  1412. </div>
  1413. <div v-if="tooC == 66">
  1414. <img
  1415. @click="addTools(tooC, toolIndex, taskCount)"
  1416. src="../../assets/icon/secondToolList/formulaEdi.png"
  1417. alt
  1418. />
  1419. <div style="margin: 5px 0">公式编辑</div>
  1420. </div>
  1421. <div v-if="tooC == 67">
  1422. <img
  1423. @click="addTools(tooC, toolIndex, taskCount)"
  1424. src="../../assets/icon/secondToolList/molStr.png"
  1425. alt
  1426. />
  1427. <div style="margin: 5px 0">分子结构</div>
  1428. </div>
  1429. <div v-if="tooC == 68">
  1430. <img
  1431. @click="addTools(tooC, toolIndex, taskCount)"
  1432. src="../../assets/icon/secondToolList/timeAxis.png"
  1433. alt
  1434. />
  1435. <div style="margin: 5px 0">时间轴</div>
  1436. </div>
  1437. <div v-if="tooC == 69">
  1438. <img
  1439. @click="addTools(tooC, toolIndex, taskCount)"
  1440. src="../../assets/icon/secondToolList/english.png"
  1441. alt
  1442. />
  1443. <div style="margin: 5px 0">英语写作</div>
  1444. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1445. style="position: absolute;right: 33px;top: -30px;">
  1446. 投影
  1447. </div>
  1448. </div>
  1449. <div v-if="tooC == 70">
  1450. <img
  1451. @click="addTools(tooC, toolIndex, taskCount)"
  1452. src="../../assets/icon/thirdToolList/englishVoice.png"
  1453. alt
  1454. />
  1455. <div style="margin: 5px 0">英语口语</div>
  1456. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1457. style="position: absolute;right: 33px;top: -30px;">
  1458. 投影
  1459. </div>
  1460. </div>
  1461. </div>
  1462. </div>
  1463. </div>
  1464. <div
  1465. class="tooldetail"
  1466. v-if="tool.toolDetail != ''"
  1467. :class="{
  1468. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1469. }"
  1470. >
  1471. <!-- <div class="toolTitle">工具描述</div> -->
  1472. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1473. <div
  1474. style="height:100%;"
  1475. v-html="contentConvent(tool.toolDetail)"
  1476. v-if="toolDetailIndex != toolIndex"
  1477. ></div>
  1478. <div v-else @click.stop="" style="height:100%;">
  1479. <textarea
  1480. @change="
  1481. () => {
  1482. $forceUpdate();
  1483. }
  1484. "
  1485. class="checkTextArea"
  1486. rows="3"
  1487. v-autoHeight="70"
  1488. type="text"
  1489. placeholder="请输入任务描述"
  1490. v-model="updateToolDetailInner"
  1491. ></textarea>
  1492. </div>
  1493. </div>
  1494. <el-button
  1495. type="primary"
  1496. v-if="tool.tool[0] == 32"
  1497. style="position: absolute; right: 30px; top: -45px"
  1498. @click="addImg($event)"
  1499. >上传作业<input
  1500. type="file"
  1501. accept="*"
  1502. style="display: none"
  1503. @change="beforeUpload1($event, 7, toolIndex)"
  1504. /></el-button>
  1505. <el-button
  1506. type="primary"
  1507. v-if="tool.tool[0] == 15"
  1508. style="position: absolute; right: 30px; top: -45px"
  1509. @click="openWordCloud(toolIndex)"
  1510. >生成词云</el-button
  1511. >
  1512. <el-button
  1513. type="primary"
  1514. v-if="
  1515. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1516. "
  1517. style="position: absolute; right: 30px; top: -45px"
  1518. @click="uploadWorks(toolIndex)"
  1519. >导出作业</el-button
  1520. >
  1521. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1522. position: absolute;
  1523. right: 30px;
  1524. transform: translateY(-130%);
  1525. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1526. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1527. </div>
  1528. <div
  1529. v-if="
  1530. tType &&
  1531. tType == 2 &&
  1532. !sIsOpen &&
  1533. tool.tool.indexOf(16) != -1
  1534. "
  1535. class="worksBox"
  1536. >
  1537. <div
  1538. class="zuoyeYulan"
  1539. v-if="workStudent[toolIndex].length > 0"
  1540. >
  1541. <span class="worksTitle">作业预览</span>
  1542. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1543. </div>
  1544. <div
  1545. class="worksDetailBox"
  1546. v-if="workStudent[toolIndex].length > 0"
  1547. >
  1548. <div
  1549. class="works"
  1550. style="
  1551. width: 200px;
  1552. height: 140px;
  1553. margin: 10px 10px 10px 0;
  1554. box-shadow: 0 0 6px 1px #dfdada;
  1555. "
  1556. v-for="(w, wIndex) in workStudent[toolIndex]"
  1557. :key="wIndex"
  1558. >
  1559. <div class="workImg" v-if="w.type == 0">
  1560. <img
  1561. :src="w.works"
  1562. @click="previewImg(w.works, w)"
  1563. alt
  1564. />
  1565. <div
  1566. class="answerScore"
  1567. v-if="w.score"
  1568. @click.stop="openScore(w)"
  1569. :class="{
  1570. rightW:
  1571. w.userid == userid || tType == 1 || tType == 4
  1572. }"
  1573. >
  1574. {{ JSON.parse(w.score).wScore }}分
  1575. </div>
  1576. <div
  1577. class="answerScore"
  1578. @click.stop="openScore(w)"
  1579. v-else-if="courseDetail.userid == userid"
  1580. :class="{
  1581. rightW:
  1582. w.userid == userid || tType == 1 || tType == 4
  1583. }"
  1584. >
  1585. 评分
  1586. </div>
  1587. <div
  1588. class="stuLookScore"
  1589. v-if="
  1590. w.userid == userid ||
  1591. (tType == 1 &&
  1592. courseDetail.state == 6 &&
  1593. ((chapInfoList[courseType].chapterInfo[0]
  1594. .taskJson[taskCount].eList &&
  1595. chapInfoList[courseType].chapterInfo[0]
  1596. .taskJson[taskCount].eList.length) ||
  1597. (tool.eList && tool.eList.length)))
  1598. "
  1599. >
  1600. <el-popover
  1601. placement="top"
  1602. width="318"
  1603. trigger="hover"
  1604. >
  1605. <markScore
  1606. :loading="AIloading[toolIndex][wIndex].loading"
  1607. :markScoreVisible="markScoreVisible"
  1608. :ref="`markSco${toolIndex}${wIndex}`"
  1609. @updateLoading="updateLoading"
  1610. @updateDocSco="updateDocSco"
  1611. @refreshOther="refreshOther"
  1612. @markScoreDig="markScoreDig"
  1613. :tool="tool"
  1614. :wIndex="wIndex"
  1615. :scoCon="w"
  1616. :toolIndex="toolIndex"
  1617. :key="refreshKey"
  1618. :stage="courseType"
  1619. :task="taskCount"
  1620. :scoTit="
  1621. chapInfoList[courseType].chapterInfo[0]
  1622. .taskJson[taskCount].eList
  1623. "
  1624. >
  1625. </markScore>
  1626. <div
  1627. @click="
  1628. markScoreDig2(
  1629. w.sName,
  1630. worksStudent,
  1631. w.userid,
  1632. toolIndex,
  1633. chapInfoList[courseType].chapterInfo[0]
  1634. .taskJson[taskCount].eList,
  1635. AIloading[toolIndex][wIndex].loading,
  1636. tool
  1637. )
  1638. "
  1639. slot="reference"
  1640. >
  1641. <span v-if="AIloading[toolIndex][wIndex].sco">
  1642. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1643. </span>
  1644. <span v-else>
  1645. 评分
  1646. </span>
  1647. </div>
  1648. </el-popover>
  1649. </div>
  1650. <img
  1651. class="deleteImg"
  1652. src="../../assets/deleteworks.png"
  1653. v-if="
  1654. w.userid == userid || tType == 1 || tType == 4
  1655. "
  1656. @click.stop="deleteWorks(w.wid)"
  1657. alt
  1658. />
  1659. </div>
  1660. <div class="workImg" v-if="w.type == 1">
  1661. <img :src="word" @click="openFile(w.works)" alt />
  1662. <div
  1663. class="answerScore"
  1664. v-if="w.score"
  1665. @click.stop="openScore(w)"
  1666. :class="{
  1667. rightW:
  1668. w.userid == userid || tType == 1 || tType == 4
  1669. }"
  1670. >
  1671. {{ JSON.parse(w.score).wScore }}分
  1672. </div>
  1673. <div
  1674. class="answerScore"
  1675. @click.stop="openScore(w)"
  1676. v-else-if="courseDetail.userid == userid"
  1677. :class="{
  1678. rightW:
  1679. w.userid == userid || tType == 1 || tType == 4
  1680. }"
  1681. >
  1682. 评分
  1683. </div>
  1684. <div
  1685. class="stuLookScore"
  1686. v-if="
  1687. w.userid == userid ||
  1688. (tType == 1 &&
  1689. courseDetail.state == 6 &&
  1690. ((chapInfoList[courseType].chapterInfo[0]
  1691. .taskJson[taskCount].eList &&
  1692. chapInfoList[courseType].chapterInfo[0]
  1693. .taskJson[taskCount].eList.length) ||
  1694. (tool.eList && tool.eList.length)))
  1695. "
  1696. >
  1697. <el-popover
  1698. placement="top"
  1699. width="318"
  1700. trigger="hover"
  1701. >
  1702. <markScore
  1703. :loading="AIloading[toolIndex][wIndex].loading"
  1704. :markScoreVisible="markScoreVisible"
  1705. :ref="`markSco${toolIndex}${wIndex}`"
  1706. @updateLoading="updateLoading"
  1707. @updateDocSco="updateDocSco"
  1708. @refreshOther="refreshOther"
  1709. @markScoreDig="markScoreDig"
  1710. :tool="tool"
  1711. :wIndex="wIndex"
  1712. :scoCon="w"
  1713. :toolIndex="toolIndex"
  1714. :key="refreshKey"
  1715. :stage="courseType"
  1716. :task="taskCount"
  1717. :scoTit="
  1718. chapInfoList[courseType].chapterInfo[0]
  1719. .taskJson[taskCount].eList
  1720. "
  1721. >
  1722. </markScore>
  1723. <div
  1724. @click="
  1725. markScoreDig2(
  1726. w.sName,
  1727. worksStudent,
  1728. w.userid,
  1729. toolIndex,
  1730. chapInfoList[courseType].chapterInfo[0]
  1731. .taskJson[taskCount].eList,
  1732. AIloading[toolIndex][wIndex].loading,
  1733. tool
  1734. )
  1735. "
  1736. slot="reference"
  1737. >
  1738. <span v-if="AIloading[toolIndex][wIndex].sco">
  1739. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1740. </span>
  1741. <span v-else>
  1742. 评分
  1743. </span>
  1744. </div>
  1745. </el-popover>
  1746. </div>
  1747. <img
  1748. class="deleteImg"
  1749. src="../../assets/deleteworks.png"
  1750. v-if="
  1751. w.userid == userid || tType == 1 || tType == 4
  1752. "
  1753. @click.stop="deleteWorks(w.wid)"
  1754. alt
  1755. />
  1756. </div>
  1757. <div class="workImg" v-if="w.type == 3">
  1758. <img
  1759. style="cursor: pointer"
  1760. :src="video"
  1761. @click="openVideo(w)"
  1762. alt
  1763. />
  1764. <div
  1765. class="answerScore"
  1766. v-if="w.score"
  1767. @click.stop="openScore(w)"
  1768. :class="{
  1769. rightW:
  1770. w.userid == userid || tType == 1 || tType == 4
  1771. }"
  1772. >
  1773. {{ JSON.parse(w.score).wScore }}分
  1774. </div>
  1775. <div
  1776. class="answerScore"
  1777. @click.stop="openScore(w)"
  1778. v-else-if="courseDetail.userid == userid"
  1779. :class="{
  1780. rightW:
  1781. w.userid == userid || tType == 1 || tType == 4
  1782. }"
  1783. >
  1784. 评分
  1785. </div>
  1786. <div
  1787. class="stuLookScore"
  1788. v-if="
  1789. w.userid == userid ||
  1790. (tType == 1 &&
  1791. courseDetail.state == 6 &&
  1792. ((chapInfoList[courseType].chapterInfo[0]
  1793. .taskJson[taskCount].eList &&
  1794. chapInfoList[courseType].chapterInfo[0]
  1795. .taskJson[taskCount].eList.length) ||
  1796. (tool.eList && tool.eList.length)))
  1797. "
  1798. >
  1799. <el-popover
  1800. placement="top"
  1801. width="318"
  1802. trigger="hover"
  1803. >
  1804. <markScore
  1805. :loading="AIloading[toolIndex][wIndex].loading"
  1806. :markScoreVisible="markScoreVisible"
  1807. :ref="`markSco${toolIndex}${wIndex}`"
  1808. @updateLoading="updateLoading"
  1809. @updateDocSco="updateDocSco"
  1810. @refreshOther="refreshOther"
  1811. @markScoreDig="markScoreDig"
  1812. :tool="tool"
  1813. :wIndex="wIndex"
  1814. :scoCon="w"
  1815. :toolIndex="toolIndex"
  1816. :key="refreshKey"
  1817. :stage="courseType"
  1818. :task="taskCount"
  1819. :scoTit="
  1820. chapInfoList[courseType].chapterInfo[0]
  1821. .taskJson[taskCount].eList
  1822. "
  1823. >
  1824. </markScore>
  1825. <div
  1826. @click="
  1827. markScoreDig2(
  1828. w.sName,
  1829. worksStudent,
  1830. w.userid,
  1831. toolIndex,
  1832. chapInfoList[courseType].chapterInfo[0]
  1833. .taskJson[taskCount].eList,
  1834. AIloading[toolIndex][wIndex].loading,
  1835. tool
  1836. )
  1837. "
  1838. slot="reference"
  1839. >
  1840. <span v-if="AIloading[toolIndex][wIndex].sco">
  1841. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1842. </span>
  1843. <span v-else>
  1844. 评分
  1845. </span>
  1846. </div>
  1847. </el-popover>
  1848. </div>
  1849. <img
  1850. class="deleteImg"
  1851. src="../../assets/deleteworks.png"
  1852. v-if="
  1853. w.userid == userid || tType == 1 || tType == 4
  1854. "
  1855. @click.stop="deleteWorks(w.wid)"
  1856. alt
  1857. />
  1858. </div>
  1859. <div class="workImg" v-if="w.type == 12">
  1860. <img
  1861. style="cursor: pointer"
  1862. :src="word2"
  1863. @click="downloadFile(w.works)"
  1864. alt
  1865. />
  1866. <div
  1867. class="answerScore"
  1868. v-if="w.score"
  1869. @click.stop="openScore(w)"
  1870. :class="{
  1871. rightW:
  1872. w.userid == userid || tType == 1 || tType == 4
  1873. }"
  1874. >
  1875. {{ JSON.parse(w.score).wScore }}分
  1876. </div>
  1877. <div
  1878. class="answerScore"
  1879. @click.stop="openScore(w)"
  1880. v-else-if="courseDetail.userid == userid"
  1881. :class="{
  1882. rightW:
  1883. w.userid == userid || tType == 1 || tType == 4
  1884. }"
  1885. >
  1886. 评分
  1887. </div>
  1888. <div
  1889. class="stuLookScore"
  1890. v-if="
  1891. w.userid == userid ||
  1892. (tType == 1 &&
  1893. courseDetail.state == 6 &&
  1894. ((chapInfoList[courseType].chapterInfo[0]
  1895. .taskJson[taskCount].eList &&
  1896. chapInfoList[courseType].chapterInfo[0]
  1897. .taskJson[taskCount].eList.length) ||
  1898. (tool.eList && tool.eList.length)))
  1899. "
  1900. >
  1901. <el-popover
  1902. placement="top"
  1903. width="318"
  1904. trigger="hover"
  1905. >
  1906. <markScore
  1907. :loading="AIloading[toolIndex][wIndex].loading"
  1908. :markScoreVisible="markScoreVisible"
  1909. :ref="`markSco${toolIndex}${wIndex}`"
  1910. @updateLoading="updateLoading"
  1911. @updateDocSco="updateDocSco"
  1912. @refreshOther="refreshOther"
  1913. @markScoreDig="markScoreDig"
  1914. :tool="tool"
  1915. :wIndex="wIndex"
  1916. :scoCon="w"
  1917. :toolIndex="toolIndex"
  1918. :key="refreshKey"
  1919. :stage="courseType"
  1920. :task="taskCount"
  1921. :scoTit="
  1922. chapInfoList[courseType].chapterInfo[0]
  1923. .taskJson[taskCount].eList
  1924. "
  1925. >
  1926. </markScore>
  1927. <div
  1928. @click="
  1929. markScoreDig2(
  1930. w.sName,
  1931. worksStudent,
  1932. w.userid,
  1933. toolIndex,
  1934. chapInfoList[courseType].chapterInfo[0]
  1935. .taskJson[taskCount].eList,
  1936. AIloading[toolIndex][wIndex].loading,
  1937. tool
  1938. )
  1939. "
  1940. slot="reference"
  1941. >
  1942. <span v-if="AIloading[toolIndex][wIndex].sco">
  1943. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1944. </span>
  1945. <span v-else>
  1946. 评分
  1947. </span>
  1948. </div>
  1949. </el-popover>
  1950. </div>
  1951. <img
  1952. class="deleteImg"
  1953. src="../../assets/deleteworks.png"
  1954. v-if="
  1955. w.userid == userid || tType == 1 || tType == 4
  1956. "
  1957. @click.stop="deleteWorks(w.wid)"
  1958. alt
  1959. />
  1960. </div>
  1961. <div class="worksName">
  1962. <div>{{ w.sName }}</div>
  1963. </div>
  1964. </div>
  1965. </div>
  1966. </div>
  1967. <div
  1968. v-if="
  1969. tType &&
  1970. tType == 2 &&
  1971. !sIsOpen &&
  1972. tool.tool.indexOf(32) != -1
  1973. "
  1974. class="worksBox"
  1975. >
  1976. <div
  1977. class="zuoyeYulan"
  1978. v-if="workStudent[toolIndex].length > 0"
  1979. >
  1980. <span class="worksTitle">作业预览</span>
  1981. </div>
  1982. <div
  1983. class="worksDetailBox"
  1984. v-if="workStudent[toolIndex].length > 0"
  1985. >
  1986. <div
  1987. class="works"
  1988. style="
  1989. width: 200px;
  1990. height: 140px;
  1991. margin: 10px 10px 10px 0;
  1992. box-shadow: 0 0 6px 1px #dfdada;
  1993. "
  1994. v-for="(w, wIndex) in workStudent[toolIndex]"
  1995. :key="wIndex"
  1996. >
  1997. <div class="workImg">
  1998. <img
  1999. :src="word2"
  2000. @click="downloadFile(w.works)"
  2001. alt
  2002. />
  2003. <div
  2004. class="answerScore"
  2005. v-if="w.score"
  2006. @click.stop="openScore(w)"
  2007. :class="{
  2008. rightW:
  2009. w.userid == userid || tType == 1 || tType == 4
  2010. }"
  2011. >
  2012. {{ JSON.parse(w.score).wScore }}分
  2013. </div>
  2014. <div
  2015. class="answerScore"
  2016. @click.stop="openScore(w)"
  2017. v-else-if="courseDetail.userid == userid"
  2018. :class="{
  2019. rightW:
  2020. w.userid == userid || tType == 1 || tType == 4
  2021. }"
  2022. >
  2023. 评分
  2024. </div>
  2025. <img
  2026. class="deleteImg"
  2027. src="../../assets/deleteworks.png"
  2028. v-if="
  2029. w.userid == userid || tType == 1 || tType == 4
  2030. "
  2031. @click.stop="deleteWorks(w.wid)"
  2032. alt
  2033. />
  2034. </div>
  2035. <div class="worksName">
  2036. <div>{{ w.sName }}</div>
  2037. </div>
  2038. </div>
  2039. </div>
  2040. </div>
  2041. <div
  2042. v-if="
  2043. tType &&
  2044. tType == 2 &&
  2045. !sIsOpen &&
  2046. tool.tool.indexOf(57) != -1
  2047. "
  2048. class="worksBox"
  2049. >
  2050. <div
  2051. class="zuoyeYulan"
  2052. v-if="workStudent[toolIndex].length > 0"
  2053. >
  2054. <span class="worksTitle">作业预览</span>
  2055. </div>
  2056. <div
  2057. class="worksDetailBox"
  2058. v-if="workStudent[toolIndex].length > 0"
  2059. >
  2060. <div
  2061. class="works"
  2062. style="
  2063. width: 200px;
  2064. height: 140px;
  2065. margin: 10px 10px 10px 0;
  2066. box-shadow: 0 0 6px 1px #dfdada;
  2067. "
  2068. v-for="(w, wIndex) in workStudent[toolIndex]"
  2069. :key="wIndex"
  2070. >
  2071. <div class="workImg">
  2072. <img
  2073. :src="word2"
  2074. @click="downloadFile(w.works)"
  2075. v-if="w.type == 12"
  2076. alt
  2077. />
  2078. <img
  2079. :src="word2"
  2080. @click="
  2081. openCocoPi(57, toolIndex, w.userid, w.sName)
  2082. "
  2083. v-else-if="w.type == 15"
  2084. alt
  2085. />
  2086. <div
  2087. class="answerScore"
  2088. v-if="w.score"
  2089. @click.stop="openScore(w)"
  2090. :class="{
  2091. rightW:
  2092. w.userid == userid || tType == 1 || tType == 4
  2093. }"
  2094. >
  2095. {{ JSON.parse(w.score).wScore }}分
  2096. </div>
  2097. <div
  2098. class="answerScore"
  2099. @click.stop="openScore(w)"
  2100. v-else-if="courseDetail.userid == userid"
  2101. :class="{
  2102. rightW:
  2103. w.userid == userid || tType == 1 || tType == 4
  2104. }"
  2105. >
  2106. 评分
  2107. </div>
  2108. <img
  2109. class="deleteImg"
  2110. src="../../assets/deleteworks.png"
  2111. v-if="
  2112. w.userid == userid || tType == 1 || tType == 4
  2113. "
  2114. @click.stop="deleteWorks(w.wid)"
  2115. alt
  2116. />
  2117. </div>
  2118. <div class="worksName">
  2119. <div>{{ w.sName }}</div>
  2120. </div>
  2121. </div>
  2122. </div>
  2123. </div>
  2124. <div
  2125. v-if="
  2126. tType &&
  2127. tType == 2 &&
  2128. !sIsOpen &&
  2129. tool.tool.indexOf(4) != -1
  2130. "
  2131. class="worksBox"
  2132. >
  2133. <div
  2134. class="zuoyeYulan"
  2135. v-if="workStudent[toolIndex].length > 0"
  2136. >
  2137. <span class="worksTitle">作业预览</span>
  2138. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2139. </div>
  2140. <div
  2141. class="worksDetailBox"
  2142. v-if="workStudent[toolIndex].length > 0"
  2143. >
  2144. <div
  2145. class="isWorksName2"
  2146. v-for="(w, wIndex) in workStudent[toolIndex]"
  2147. :key="wIndex"
  2148. @click="
  2149. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2150. "
  2151. >
  2152. {{ w.sName }}
  2153. <img
  2154. class="deleteImg deleteImg2"
  2155. src="../../assets/deleteworks.png"
  2156. v-if="w.userid == userid || tType == 1 || tType == 4"
  2157. @click.stop="deleteWorks(w.wid)"
  2158. alt
  2159. />
  2160. </div>
  2161. <!-- <div
  2162. class="works"
  2163. style="
  2164. width: 200px;
  2165. height: 140px;
  2166. border-radius: 10px;
  2167. box-shadow: 0 0 6px 1px #dfdada;
  2168. overflow: hidden;
  2169. "
  2170. v-for="(w, wIndex) in workStudent[toolIndex]"
  2171. :key="wIndex"
  2172. >
  2173. <div class="workImg">
  2174. <img
  2175. src="../../assets/icon/works/noImg.png"
  2176. @click="
  2177. openTools(
  2178. 4,
  2179. toolIndex,
  2180. taskCount,
  2181. w.works,
  2182. w.sName
  2183. )
  2184. "
  2185. alt
  2186. />
  2187. </div>
  2188. <div class="worksName">
  2189. <div>{{ w.sName }}</div>
  2190. <div>{{ w.time }}</div>
  2191. </div>
  2192. </div> -->
  2193. </div>
  2194. </div>
  2195. <div
  2196. v-if="
  2197. tType &&
  2198. ((tType == 2 && sIsOpen == true) ||
  2199. tType == 1 ||
  2200. tType == 4) &&
  2201. tool.tool.indexOf(62) != -1
  2202. "
  2203. class="worksBox"
  2204. >
  2205. <div
  2206. class="zuoyeYulan"
  2207. v-if="
  2208. worksStudent.length &&
  2209. worksStudent[toolIndex].length > 0
  2210. "
  2211. >
  2212. <div class="worksTop">
  2213. <div>作业预览</div>
  2214. <div
  2215. class="corOpen"
  2216. @click="contract(toolIndex)"
  2217. v-if="
  2218. isCloseList[toolIndex].isCloseBoolean &&
  2219. isCloseList[toolIndex].isClose == 0
  2220. "
  2221. >
  2222. 折叠
  2223. </div>
  2224. <div
  2225. class="corOpen"
  2226. @click="contract(toolIndex)"
  2227. v-if="isCloseList[toolIndex].isClose == 1"
  2228. >
  2229. 展开
  2230. </div>
  2231. </div>
  2232. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2233. </div>
  2234. <div>
  2235. <div
  2236. :id="'tool-' + toolIndex"
  2237. :style="{
  2238. height:
  2239. isCloseList[toolIndex].isClose == 1
  2240. ? retrnToolHeight('tool-' + toolIndex)
  2241. : 'auto',
  2242. overflow:
  2243. isCloseList[toolIndex].isClose == 1
  2244. ? 'hidden'
  2245. : 'unset'
  2246. }"
  2247. class="worksDetailBox"
  2248. v-if="
  2249. worksStudent.length &&
  2250. worksStudent[toolIndex].length > 0
  2251. "
  2252. >
  2253. <div
  2254. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2255. :key="wIndex"
  2256. class="isWorksName2"
  2257. @click="
  2258. openTools(
  2259. 62,
  2260. toolIndex,
  2261. taskCount,
  2262. w.works,
  2263. w.sName
  2264. )
  2265. "
  2266. >
  2267. {{ w.sName }}
  2268. <img
  2269. class="deleteImg deleteImg2"
  2270. src="../../assets/deleteworks.png"
  2271. v-if="
  2272. w.userid == userid || tType == 1 || tType == 4
  2273. "
  2274. @click.stop="deleteWorks(w.wid)"
  2275. alt
  2276. />
  2277. </div>
  2278. </div>
  2279. </div>
  2280. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2281. 未提交
  2282. </div>
  2283. <div
  2284. class="noWorksS"
  2285. v-if="noWorksS && noWorksS[toolIndex].length"
  2286. >
  2287. <div
  2288. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2289. :key="sIndex"
  2290. class="noWorksName"
  2291. >
  2292. <el-tooltip
  2293. effect="dark"
  2294. :content="s.student"
  2295. placement="top"
  2296. >
  2297. <span>{{ s.student }}</span>
  2298. </el-tooltip>
  2299. </div>
  2300. </div>
  2301. </div>
  2302. <div
  2303. v-if="
  2304. tType &&
  2305. tType == 2 &&
  2306. !sIsOpen &&
  2307. tool.tool.indexOf(62) != -1
  2308. "
  2309. class="worksBox"
  2310. >
  2311. <div
  2312. class="zuoyeYulan"
  2313. v-if="workStudent[toolIndex].length > 0"
  2314. >
  2315. <span class="worksTitle">作业预览</span>
  2316. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2317. </div>
  2318. <div
  2319. class="worksDetailBox"
  2320. v-if="workStudent[toolIndex].length > 0"
  2321. >
  2322. <div
  2323. class="isWorksName2"
  2324. v-for="(w, wIndex) in workStudent[toolIndex]"
  2325. :key="wIndex"
  2326. @click="
  2327. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2328. "
  2329. >
  2330. {{ w.sName }}
  2331. <img
  2332. class="deleteImg deleteImg2"
  2333. src="../../assets/deleteworks.png"
  2334. v-if="w.userid == userid || tType == 1 || tType == 4"
  2335. @click.stop="deleteWorks(w.wid)"
  2336. alt
  2337. />
  2338. </div>
  2339. </div>
  2340. </div>
  2341. <div
  2342. v-if="
  2343. tType &&
  2344. tType == 2 &&
  2345. !sIsOpen &&
  2346. tool.tool.indexOf(45) != -1
  2347. "
  2348. class="worksBox"
  2349. >
  2350. <div
  2351. class="zuoyeYulan"
  2352. v-if="workStudent[toolIndex].length > 0"
  2353. >
  2354. <span class="worksTitle">作业预览</span>
  2355. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2356. </div>
  2357. <div
  2358. class="worksDetailBox"
  2359. v-if="workStudent[toolIndex].length > 0"
  2360. >
  2361. <div
  2362. class="isWorksName2"
  2363. v-for="(w, wIndex) in workStudent[toolIndex]"
  2364. :key="wIndex"
  2365. @click="
  2366. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2367. "
  2368. >
  2369. {{ w.sName }}
  2370. <img
  2371. class="deleteImg deleteImg2"
  2372. src="../../assets/deleteworks.png"
  2373. v-if="w.userid == userid || tType == 1 || tType == 4"
  2374. @click.stop="deleteWorks(w.wid)"
  2375. alt
  2376. />
  2377. </div>
  2378. </div>
  2379. </div>
  2380. <div
  2381. v-if="
  2382. tType &&
  2383. tType == 2 &&
  2384. !sIsOpen &&
  2385. tool.tool.indexOf(69) != -1
  2386. "
  2387. class="worksBox"
  2388. >
  2389. <div
  2390. class="zuoyeYulan"
  2391. v-if="workStudent[toolIndex].length > 0"
  2392. >
  2393. <span class="worksTitle">作业预览</span>
  2394. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2395. </div>
  2396. <div
  2397. class="worksDetailBox"
  2398. v-if="workStudent[toolIndex].length > 0"
  2399. >
  2400. <div
  2401. class="isWorksName2"
  2402. v-for="(w, wIndex) in workStudent[toolIndex]"
  2403. :key="wIndex"
  2404. @click="
  2405. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2406. "
  2407. >
  2408. {{ w.sName }}
  2409. <img
  2410. class="deleteImg deleteImg2"
  2411. src="../../assets/deleteworks.png"
  2412. v-if="w.userid == userid || tType == 1 || tType == 4"
  2413. @click.stop="deleteWorks(w.wid)"
  2414. alt
  2415. />
  2416. </div>
  2417. </div>
  2418. </div>
  2419. <div
  2420. v-if="
  2421. tType &&
  2422. tType == 2 &&
  2423. !sIsOpen &&
  2424. tool.tool.indexOf(15) != -1
  2425. "
  2426. class="worksBox"
  2427. >
  2428. <div
  2429. class="zuoyeYulan"
  2430. v-if="workStudent[toolIndex].length > 0"
  2431. >
  2432. <span class="worksTitle">作业预览</span>
  2433. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2434. </div>
  2435. <div
  2436. class="worksDetailBox"
  2437. v-if="workStudent[toolIndex].length > 0"
  2438. >
  2439. <div
  2440. class="works"
  2441. v-for="(w, wIndex) in workStudent[toolIndex]"
  2442. :key="wIndex"
  2443. >
  2444. <div class="workImg">
  2445. <!-- <img
  2446. src="../../assets/icon/works/noImg.png"
  2447. @click="openTools(15, toolIndex, taskCount, w.works)"
  2448. alt=""
  2449. />-->
  2450. <div class="answerBg">
  2451. <!-- <div>{{ w.sName }}</div> -->
  2452. <el-tooltip
  2453. class="item"
  2454. effect="light"
  2455. :content="JSON.parse(w.works)[0].answer"
  2456. placement="top"
  2457. >
  2458. <div class="answerContent">
  2459. {{ JSON.parse(w.works)[0].answer }}
  2460. </div>
  2461. </el-tooltip>
  2462. <div
  2463. class="answerScore"
  2464. v-if="w.score"
  2465. @click.stop="openScore(w)"
  2466. :class="{
  2467. rightW:
  2468. w.userid == userid || tType == 1 || tType == 4
  2469. }"
  2470. >
  2471. {{ JSON.parse(w.score).wScore }}分
  2472. </div>
  2473. <div
  2474. class="answerScore"
  2475. @click.stop="openScore(w)"
  2476. v-else-if="courseDetail.userid == userid"
  2477. :class="{
  2478. rightW:
  2479. w.userid == userid || tType == 1 || tType == 4
  2480. }"
  2481. >
  2482. 评分
  2483. </div>
  2484. <img
  2485. class="deleteImg"
  2486. src="../../assets/deleteworks.png"
  2487. v-if="
  2488. w.userid == userid || tType == 1 || tType == 4
  2489. "
  2490. @click.stop="deleteWorks(w.wid)"
  2491. alt
  2492. />
  2493. </div>
  2494. <div class="comment">
  2495. <div class="worksName">
  2496. <div>{{ w.sName }}</div>
  2497. </div>
  2498. </div>
  2499. </div>
  2500. </div>
  2501. </div>
  2502. </div>
  2503. <div
  2504. v-if="
  2505. tType &&
  2506. tType == 2 &&
  2507. !sIsOpen &&
  2508. tool.tool.indexOf(1) != -1
  2509. "
  2510. class="worksBox"
  2511. >
  2512. <div
  2513. class="zuoyeYulan"
  2514. v-if="workStudent[toolIndex].length > 0"
  2515. >
  2516. <span class="worksTitle">作业预览</span>
  2517. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2518. </div>
  2519. <div
  2520. class="worksDetailBox"
  2521. v-if="workStudent[toolIndex].length > 0"
  2522. >
  2523. <div
  2524. class="works"
  2525. style="
  2526. width: 200px;
  2527. height: 140px;
  2528. margin: 10px 10px 10px 0;
  2529. box-shadow: 0 0 6px 1px #dfdada;
  2530. "
  2531. v-for="(w, wIndex) in workStudent[toolIndex]"
  2532. :key="wIndex"
  2533. >
  2534. <div class="workImg">
  2535. <img
  2536. :src="w.works"
  2537. @click="previewImg(w.works, w)"
  2538. alt
  2539. />
  2540. <div
  2541. class="answerScore"
  2542. v-if="w.score"
  2543. @click.stop="openScore(w)"
  2544. :class="{
  2545. rightW:
  2546. w.userid == userid || tType == 1 || tType == 4
  2547. }"
  2548. >
  2549. {{ JSON.parse(w.score).wScore }}分
  2550. </div>
  2551. <div
  2552. class="answerScore"
  2553. @click.stop="openScore(w)"
  2554. v-else-if="courseDetail.userid == userid"
  2555. :class="{
  2556. rightW:
  2557. w.userid == userid || tType == 1 || tType == 4
  2558. }"
  2559. >
  2560. 评分
  2561. </div>
  2562. <div
  2563. class="stuLookScore"
  2564. v-if="
  2565. w.userid == userid ||
  2566. (tType == 1 &&
  2567. courseDetail.state == 6 &&
  2568. ((chapInfoList[courseType].chapterInfo[0]
  2569. .taskJson[taskCount].eList &&
  2570. chapInfoList[courseType].chapterInfo[0]
  2571. .taskJson[taskCount].eList.length) ||
  2572. (tool.eList && tool.eList.length)))
  2573. "
  2574. >
  2575. <el-popover
  2576. placement="top"
  2577. width="318"
  2578. trigger="hover"
  2579. >
  2580. <markScore
  2581. :loading="AIloading[toolIndex][wIndex].loading"
  2582. :markScoreVisible="markScoreVisible"
  2583. :ref="`markSco${toolIndex}${wIndex}`"
  2584. @updateLoading="updateLoading"
  2585. @updateDocSco="updateDocSco"
  2586. @refreshOther="refreshOther"
  2587. @markScoreDig="markScoreDig"
  2588. :tool="tool"
  2589. :wIndex="wIndex"
  2590. :scoCon="w"
  2591. :toolIndex="toolIndex"
  2592. :key="refreshKey"
  2593. :stage="courseType"
  2594. :task="taskCount"
  2595. :scoTit="
  2596. chapInfoList[courseType].chapterInfo[0]
  2597. .taskJson[taskCount].eList
  2598. "
  2599. >
  2600. </markScore>
  2601. <div
  2602. @click="
  2603. markScoreDig2(
  2604. w.sName,
  2605. worksStudent,
  2606. w.userid,
  2607. toolIndex,
  2608. chapInfoList[courseType].chapterInfo[0]
  2609. .taskJson[taskCount].eList,
  2610. AIloading[toolIndex][wIndex].loading,
  2611. tool
  2612. )
  2613. "
  2614. slot="reference"
  2615. >
  2616. <span v-if="AIloading[toolIndex][wIndex].sco">
  2617. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2618. </span>
  2619. <span v-else>
  2620. 评分
  2621. </span>
  2622. </div>
  2623. </el-popover>
  2624. </div>
  2625. <img
  2626. class="deleteImg"
  2627. src="../../assets/deleteworks.png"
  2628. v-if="
  2629. w.userid == userid || tType == 1 || tType == 4
  2630. "
  2631. @click.stop="deleteWorks(w.wid)"
  2632. alt
  2633. />
  2634. </div>
  2635. <div class="worksName">
  2636. <div>{{ w.sName }}</div>
  2637. </div>
  2638. </div>
  2639. </div>
  2640. </div>
  2641. <div
  2642. v-if="
  2643. tType &&
  2644. tType == 2 &&
  2645. !sIsOpen &&
  2646. tool.tool.indexOf(3) != -1
  2647. "
  2648. class="worksBox"
  2649. >
  2650. <div
  2651. class="zuoyeYulan"
  2652. v-if="workStudent[toolIndex].length > 0"
  2653. >
  2654. <span class="worksTitle">作业预览</span>
  2655. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2656. </div>
  2657. <div
  2658. class="worksDetailBox"
  2659. v-if="workStudent[toolIndex].length > 0"
  2660. >
  2661. <div
  2662. class="works"
  2663. style="
  2664. width: 200px;
  2665. height: 140px;
  2666. margin: 10px 10px 10px 0;
  2667. box-shadow: 0 0 6px 1px #dfdada;
  2668. "
  2669. v-for="(w, wIndex) in workStudent[toolIndex]"
  2670. :key="wIndex"
  2671. >
  2672. <div class="workImg">
  2673. <img
  2674. :src="w.works"
  2675. @click="previewImg(w.works, w)"
  2676. alt
  2677. />
  2678. <div
  2679. class="answerScore"
  2680. v-if="w.score"
  2681. @click.stop="openScore(w)"
  2682. :class="{
  2683. rightW:
  2684. w.userid == userid || tType == 1 || tType == 4
  2685. }"
  2686. >
  2687. {{ JSON.parse(w.score).wScore }}分
  2688. </div>
  2689. <div
  2690. class="answerScore"
  2691. @click.stop="openScore(w)"
  2692. v-else-if="courseDetail.userid == userid"
  2693. :class="{
  2694. rightW:
  2695. w.userid == userid || tType == 1 || tType == 4
  2696. }"
  2697. >
  2698. 评分
  2699. </div>
  2700. <div
  2701. class="stuLookScore"
  2702. v-if="
  2703. w.userid == userid ||
  2704. (tType == 1 &&
  2705. courseDetail.state == 6 &&
  2706. ((chapInfoList[courseType].chapterInfo[0]
  2707. .taskJson[taskCount].eList &&
  2708. chapInfoList[courseType].chapterInfo[0]
  2709. .taskJson[taskCount].eList.length) ||
  2710. (tool.eList && tool.eList.length)))
  2711. "
  2712. >
  2713. <el-popover
  2714. placement="top"
  2715. width="318"
  2716. trigger="hover"
  2717. >
  2718. <markScore
  2719. :loading="AIloading[toolIndex][wIndex].loading"
  2720. :markScoreVisible="markScoreVisible"
  2721. :ref="`markSco${toolIndex}${wIndex}`"
  2722. @updateLoading="updateLoading"
  2723. @updateDocSco="updateDocSco"
  2724. @refreshOther="refreshOther"
  2725. @markScoreDig="markScoreDig"
  2726. :tool="tool"
  2727. :wIndex="wIndex"
  2728. :scoCon="w"
  2729. :toolIndex="toolIndex"
  2730. :key="refreshKey"
  2731. :stage="courseType"
  2732. :task="taskCount"
  2733. :scoTit="
  2734. chapInfoList[courseType].chapterInfo[0]
  2735. .taskJson[taskCount].eList
  2736. "
  2737. >
  2738. </markScore>
  2739. <div
  2740. @click="
  2741. markScoreDig2(
  2742. w.sName,
  2743. worksStudent,
  2744. w.userid,
  2745. toolIndex,
  2746. chapInfoList[courseType].chapterInfo[0]
  2747. .taskJson[taskCount].eList,
  2748. AIloading[toolIndex][wIndex].loading,
  2749. tool
  2750. )
  2751. "
  2752. slot="reference"
  2753. >
  2754. <span v-if="AIloading[toolIndex][wIndex].sco">
  2755. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2756. </span>
  2757. <span v-else>
  2758. 评分
  2759. </span>
  2760. </div>
  2761. </el-popover>
  2762. </div>
  2763. <img
  2764. class="deleteImg"
  2765. src="../../assets/deleteworks.png"
  2766. v-if="
  2767. w.userid == userid || tType == 1 || tType == 4
  2768. "
  2769. @click.stop="deleteWorks(w.wid)"
  2770. alt
  2771. />
  2772. </div>
  2773. <div class="worksName">
  2774. <div>{{ w.sName }}</div>
  2775. </div>
  2776. </div>
  2777. </div>
  2778. </div>
  2779. <div
  2780. v-if="
  2781. tType &&
  2782. tType == 2 &&
  2783. !sIsOpen &&
  2784. tool.tool.indexOf(6) != -1
  2785. "
  2786. class="worksBox"
  2787. >
  2788. <div
  2789. class="zuoyeYulan"
  2790. v-if="workStudent[toolIndex].length > 0"
  2791. >
  2792. <span class="worksTitle">作业预览</span>
  2793. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2794. </div>
  2795. <div
  2796. class="worksDetailBox"
  2797. v-if="workStudent[toolIndex].length > 0"
  2798. >
  2799. <div
  2800. class="works"
  2801. style="
  2802. width: 200px;
  2803. height: 140px;
  2804. margin: 10px 10px 10px 0;
  2805. box-shadow: 0 0 6px 1px #dfdada;
  2806. "
  2807. v-for="(w, wIndex) in workStudent[toolIndex]"
  2808. :key="wIndex"
  2809. >
  2810. <div class="workImg">
  2811. <img
  2812. :src="w.works"
  2813. @click="previewImg(w.works, w)"
  2814. alt
  2815. />
  2816. <div
  2817. class="answerScore"
  2818. v-if="w.score"
  2819. @click.stop="openScore(w)"
  2820. :class="{
  2821. rightW:
  2822. w.userid == userid || tType == 1 || tType == 4
  2823. }"
  2824. >
  2825. {{ JSON.parse(w.score).wScore }}分
  2826. </div>
  2827. <div
  2828. class="answerScore"
  2829. @click.stop="openScore(w)"
  2830. v-else-if="courseDetail.userid == userid"
  2831. :class="{
  2832. rightW:
  2833. w.userid == userid || tType == 1 || tType == 4
  2834. }"
  2835. >
  2836. 评分
  2837. </div>
  2838. <img
  2839. class="deleteImg"
  2840. src="../../assets/deleteworks.png"
  2841. v-if="
  2842. w.userid == userid || tType == 1 || tType == 4
  2843. "
  2844. @click.stop="deleteWorks(w.wid)"
  2845. alt
  2846. />
  2847. </div>
  2848. <div class="worksName">
  2849. <div>{{ w.sName }}</div>
  2850. </div>
  2851. </div>
  2852. </div>
  2853. </div>
  2854. <div
  2855. v-if="
  2856. tType &&
  2857. tType == 2 &&
  2858. !sIsOpen &&
  2859. tool.tool.indexOf(7) != -1
  2860. "
  2861. class="worksBox"
  2862. >
  2863. <div
  2864. class="zuoyeYulan"
  2865. v-if="workStudent[toolIndex].length > 0"
  2866. >
  2867. <span class="worksTitle">作业预览</span>
  2868. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2869. </div>
  2870. <div
  2871. class="worksDetailBox"
  2872. v-if="workStudent[toolIndex].length > 0"
  2873. >
  2874. <div
  2875. class="works"
  2876. style="
  2877. width: 200px;
  2878. height: 140px;
  2879. margin: 10px 10px 10px 0;
  2880. box-shadow: 0 0 6px 1px #dfdada;
  2881. "
  2882. v-for="(w, wIndex) in workStudent[toolIndex]"
  2883. :key="wIndex"
  2884. >
  2885. <div class="workImg">
  2886. <img
  2887. :src="w.works"
  2888. @click="previewImg(w.works, w)"
  2889. alt
  2890. />
  2891. <div
  2892. class="answerScore"
  2893. v-if="w.score"
  2894. @click.stop="openScore(w)"
  2895. :class="{
  2896. rightW:
  2897. w.userid == userid || tType == 1 || tType == 4
  2898. }"
  2899. >
  2900. {{ JSON.parse(w.score).wScore }}分
  2901. </div>
  2902. <div
  2903. class="answerScore"
  2904. @click.stop="openScore(w)"
  2905. v-else-if="courseDetail.userid == userid"
  2906. :class="{
  2907. rightW:
  2908. w.userid == userid || tType == 1 || tType == 4
  2909. }"
  2910. >
  2911. 评分
  2912. </div>
  2913. <div
  2914. class="stuLookScore"
  2915. v-if="
  2916. w.userid == userid ||
  2917. (tType == 1 &&
  2918. courseDetail.state == 6 &&
  2919. ((chapInfoList[courseType].chapterInfo[0]
  2920. .taskJson[taskCount].eList &&
  2921. chapInfoList[courseType].chapterInfo[0]
  2922. .taskJson[taskCount].eList.length) ||
  2923. (tool.eList && tool.eList.length)))
  2924. "
  2925. >
  2926. <el-popover
  2927. placement="top"
  2928. width="318"
  2929. trigger="hover"
  2930. >
  2931. <markScore
  2932. :loading="AIloading[toolIndex][wIndex].loading"
  2933. :markScoreVisible="markScoreVisible"
  2934. :ref="`markSco${toolIndex}${wIndex}`"
  2935. @updateLoading="updateLoading"
  2936. @updateDocSco="updateDocSco"
  2937. @refreshOther="refreshOther"
  2938. @markScoreDig="markScoreDig"
  2939. :tool="tool"
  2940. :wIndex="wIndex"
  2941. :scoCon="w"
  2942. :toolIndex="toolIndex"
  2943. :key="refreshKey"
  2944. :stage="courseType"
  2945. :task="taskCount"
  2946. :scoTit="
  2947. chapInfoList[courseType].chapterInfo[0]
  2948. .taskJson[taskCount].eList
  2949. "
  2950. >
  2951. </markScore>
  2952. <div
  2953. @click="
  2954. markScoreDig2(
  2955. w.sName,
  2956. worksStudent,
  2957. w.userid,
  2958. toolIndex,
  2959. chapInfoList[courseType].chapterInfo[0]
  2960. .taskJson[taskCount].eList,
  2961. AIloading[toolIndex][wIndex].loading,
  2962. tool
  2963. )
  2964. "
  2965. slot="reference"
  2966. >
  2967. <span v-if="AIloading[toolIndex][wIndex].sco">
  2968. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2969. </span>
  2970. <span v-else>
  2971. 评分
  2972. </span>
  2973. </div>
  2974. </el-popover>
  2975. </div>
  2976. <img
  2977. class="deleteImg"
  2978. src="../../assets/deleteworks.png"
  2979. v-if="
  2980. w.userid == userid || tType == 1 || tType == 4
  2981. "
  2982. @click.stop="deleteWorks(w.wid)"
  2983. alt
  2984. />
  2985. </div>
  2986. <div class="worksName">
  2987. <div>{{ w.sName }}</div>
  2988. </div>
  2989. </div>
  2990. </div>
  2991. </div>
  2992. <div
  2993. v-if="
  2994. tType &&
  2995. tType == 2 &&
  2996. !sIsOpen &&
  2997. tool.tool.indexOf(26) != -1
  2998. "
  2999. class="worksBox"
  3000. >
  3001. <div
  3002. class="zuoyeYulan"
  3003. v-if="workStudent[toolIndex].length > 0"
  3004. >
  3005. <span class="worksTitle">作业预览</span>
  3006. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3007. </div>
  3008. <div
  3009. class="worksDetailBox"
  3010. v-if="workStudent[toolIndex].length > 0"
  3011. >
  3012. <div
  3013. class="works"
  3014. style="
  3015. width: 200px;
  3016. height: 140px;
  3017. margin: 10px 10px 10px 0;
  3018. box-shadow: 0 0 6px 1px #dfdada;
  3019. "
  3020. v-for="(w, wIndex) in workStudent[toolIndex]"
  3021. :key="wIndex"
  3022. >
  3023. <div class="workImg">
  3024. <img
  3025. :src="w.works"
  3026. @click="previewImg(w.works, w)"
  3027. alt
  3028. />
  3029. <img
  3030. class="deleteImg"
  3031. src="../../assets/deleteworks.png"
  3032. v-if="
  3033. w.userid == userid || tType == 1 || tType == 4
  3034. "
  3035. @click.stop="deleteWorks(w.wid)"
  3036. alt
  3037. />
  3038. </div>
  3039. <div class="worksName">
  3040. <div>{{ w.sName }}</div>
  3041. </div>
  3042. </div>
  3043. </div>
  3044. </div>
  3045. <div
  3046. v-if="
  3047. tType &&
  3048. ((tType == 2 && sIsOpen == true) ||
  3049. tType == 1 ||
  3050. tType == 4) &&
  3051. tool.tool.indexOf(16) != -1
  3052. "
  3053. class="worksBox"
  3054. >
  3055. <div
  3056. class="zuoyeYulan"
  3057. style="display: flex;justify-content: space-between;align-items: center;"
  3058. v-if="
  3059. (worksStudent.length &&
  3060. worksStudent[toolIndex].length > 0) ||
  3061. (courseGroup.group && courseGroup.group.length)
  3062. "
  3063. >
  3064. <div class="worksTop">
  3065. <div>作业预览</div>
  3066. <div
  3067. class="corOpen"
  3068. @click="contract(toolIndex)"
  3069. v-if="
  3070. isCloseList[toolIndex].isCloseBoolean &&
  3071. isCloseList[toolIndex].isClose == 0
  3072. "
  3073. >
  3074. 折叠
  3075. </div>
  3076. <div
  3077. class="corOpen"
  3078. @click="contract(toolIndex)"
  3079. v-if="isCloseList[toolIndex].isClose == 1"
  3080. >
  3081. 展开
  3082. </div>
  3083. </div>
  3084. <div
  3085. style="display: flex;"
  3086. v-if="
  3087. (courseDetail.userid == userid ||
  3088. (courseDetail.course_teacher &&
  3089. courseDetail.course_teacher.indexOf(userid) !=
  3090. -1)) &&
  3091. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3092. taskCount
  3093. ].eList &&
  3094. chapInfoList[courseType].chapterInfo[0].taskJson[
  3095. taskCount
  3096. ].eList.length) ||
  3097. (tool.eList && tool.eList.length)) &&
  3098. courseDetail.state == 6
  3099. "
  3100. >
  3101. <!-- <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 == 6"> -->
  3102. <div
  3103. style="margin-right:10px"
  3104. class="ScoreBtn"
  3105. @click="
  3106. resetLoopEva(
  3107. worksStudent[toolIndex],
  3108. chapInfoList[courseType].chapterInfo[0].taskJson[
  3109. taskCount
  3110. ].eList,
  3111. courseType,
  3112. taskCount,
  3113. toolIndex,
  3114. tool.toolDetail,
  3115. worksStudent
  3116. )
  3117. "
  3118. >
  3119. 一键重置
  3120. </div>
  3121. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3122. <img
  3123. src="../../assets/icon/newIcons/rootImg.png"
  3124. alt=""
  3125. />
  3126. AI评分
  3127. </div>
  3128. <div
  3129. class="ScoreBtn"
  3130. v-else-if="!loopLoading[toolIndex].loading"
  3131. @click="
  3132. loopEva(
  3133. worksStudent[toolIndex],
  3134. chapInfoList[courseType].chapterInfo[0].taskJson[
  3135. taskCount
  3136. ].eList,
  3137. courseType,
  3138. taskCount,
  3139. toolIndex,
  3140. tool.toolDetail,
  3141. chapInfoList[courseType].chapterInfo[0].taskJson[
  3142. taskCount
  3143. ].taskDetail,
  3144. tool
  3145. )
  3146. "
  3147. >
  3148. <img
  3149. src="../../assets/icon/newIcons/rootImg.png"
  3150. alt=""
  3151. />
  3152. AI评分
  3153. </div>
  3154. <div class="ScoreBtn" v-else>
  3155. <img
  3156. src="../../assets/icon/newIcons/rootImg.png"
  3157. alt=""
  3158. />
  3159. 正在评分
  3160. </div>
  3161. </div>
  3162. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3163. </div>
  3164. <div
  3165. class="group_workBox"
  3166. v-for="(g, gindex) in courseGroup.group"
  3167. :key="gindex"
  3168. >
  3169. <div class="group_box">
  3170. <div class="group_title">
  3171. <el-tooltip
  3172. class="item"
  3173. effect="light"
  3174. :content="g.name"
  3175. placement="top"
  3176. >
  3177. <div class="group_name">{{ g.name }}</div>
  3178. </el-tooltip>
  3179. </div>
  3180. <div
  3181. class="group_work"
  3182. v-if="
  3183. g.works &&
  3184. g.works.length &&
  3185. g.works[toolIndex].length
  3186. "
  3187. >
  3188. <div
  3189. class="works"
  3190. style="
  3191. width: 200px;
  3192. height: 140px;
  3193. margin: 10px 10px 10px 0;
  3194. border-radius: 15px;
  3195. box-shadow: 0 0 6px 1px #dfdada;
  3196. "
  3197. v-for="(w, wIndex) in g.works[toolIndex]"
  3198. :key="wIndex"
  3199. :class="w.type == 1 ? 'isTypeOne' : ''"
  3200. >
  3201. <div class="workImg" v-if="w.type == 0">
  3202. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3203. <img
  3204. :src="w.works"
  3205. @click="previewImg(w.works, w)"
  3206. alt
  3207. />
  3208. <div
  3209. class="answerScore"
  3210. v-if="w.score"
  3211. @click.stop="openScore(w)"
  3212. :class="{
  3213. rightW:
  3214. w.userid == userid ||
  3215. tType == 1 ||
  3216. tType == 4 ||
  3217. w.ateacher == userid
  3218. }"
  3219. >
  3220. {{ JSON.parse(w.score).wScore }}分
  3221. </div>
  3222. <div
  3223. class="answerScore"
  3224. @click.stop="openScore(w)"
  3225. v-else-if="courseDetail.userid == userid"
  3226. :class="{
  3227. rightW:
  3228. w.userid == userid ||
  3229. tType == 1 ||
  3230. tType == 4 ||
  3231. w.ateacher == userid
  3232. }"
  3233. >
  3234. 评分
  3235. </div>
  3236. <img
  3237. class="deleteImg"
  3238. src="../../assets/deleteworks.png"
  3239. v-if="
  3240. w.userid == userid || tType == 1 || tType == 4
  3241. "
  3242. @click.stop="deleteWorks(w.wid)"
  3243. alt
  3244. />
  3245. </div>
  3246. <div class="workImg" v-if="w.type == 1">
  3247. <img :src="word" @click="openFile(w.works)" alt />
  3248. <!-- @click="openFile(w.works)" -->
  3249. <div
  3250. class="answerScore"
  3251. v-if="w.score"
  3252. @click.stop="openScore(w)"
  3253. :class="{
  3254. rightW:
  3255. w.userid == userid ||
  3256. tType == 1 ||
  3257. tType == 4 ||
  3258. w.ateacher == userid
  3259. }"
  3260. >
  3261. {{ JSON.parse(w.score).wScore }}分
  3262. </div>
  3263. <div
  3264. class="answerScore"
  3265. @click.stop="openScore(w)"
  3266. v-else-if="courseDetail.userid == userid"
  3267. :class="{
  3268. rightW:
  3269. w.userid == userid ||
  3270. tType == 1 ||
  3271. tType == 4 ||
  3272. w.ateacher == userid
  3273. }"
  3274. >
  3275. 评分
  3276. </div>
  3277. <img
  3278. class="deleteImg"
  3279. src="../../assets/deleteworks.png"
  3280. v-if="
  3281. w.userid == userid || tType == 1 || tType == 4
  3282. "
  3283. @click.stop="deleteWorks(w.wid)"
  3284. alt
  3285. />
  3286. </div>
  3287. <div class="workImg" v-if="w.type == 3">
  3288. <img
  3289. style="cursor: pointer"
  3290. :src="video"
  3291. @click="openVideo(w)"
  3292. alt
  3293. />
  3294. <!-- @click="openVideo(w.works)" -->
  3295. <div
  3296. class="answerScore"
  3297. v-if="w.score"
  3298. @click.stop="openScore(w)"
  3299. :class="{
  3300. rightW:
  3301. w.userid == userid ||
  3302. tType == 1 ||
  3303. tType == 4 ||
  3304. w.ateacher == userid
  3305. }"
  3306. >
  3307. {{ JSON.parse(w.score).wScore }}分
  3308. </div>
  3309. <div
  3310. class="answerScore"
  3311. @click.stop="openScore(w)"
  3312. v-else-if="courseDetail.userid == userid"
  3313. :class="{
  3314. rightW:
  3315. w.userid == userid ||
  3316. tType == 1 ||
  3317. tType == 4 ||
  3318. w.ateacher == userid
  3319. }"
  3320. >
  3321. 评分
  3322. </div>
  3323. <img
  3324. class="deleteImg"
  3325. src="../../assets/deleteworks.png"
  3326. v-if="
  3327. w.userid == userid || tType == 1 || tType == 4
  3328. "
  3329. @click.stop="deleteWorks(w.wid)"
  3330. alt
  3331. />
  3332. </div>
  3333. <div class="workImg" v-if="w.type == 12">
  3334. <img
  3335. style="cursor: pointer"
  3336. :src="word2"
  3337. @click="downloadFile(w.works)"
  3338. alt
  3339. />
  3340. <!-- @click="openVideo(w.works)" -->
  3341. <div
  3342. class="answerScore"
  3343. v-if="w.score"
  3344. @click.stop="openScore(w)"
  3345. :class="{
  3346. rightW:
  3347. w.userid == userid ||
  3348. tType == 1 ||
  3349. tType == 4 ||
  3350. w.ateacher == userid
  3351. }"
  3352. >
  3353. {{ JSON.parse(w.score).wScore }}分
  3354. </div>
  3355. <div
  3356. class="answerScore"
  3357. @click.stop="openScore(w)"
  3358. v-else-if="courseDetail.userid == userid"
  3359. :class="{
  3360. rightW:
  3361. w.userid == userid ||
  3362. tType == 1 ||
  3363. tType == 4 ||
  3364. w.ateacher == userid
  3365. }"
  3366. >
  3367. 评分
  3368. </div>
  3369. <img
  3370. class="deleteImg"
  3371. src="../../assets/deleteworks.png"
  3372. v-if="
  3373. w.userid == userid || tType == 1 || tType == 4
  3374. "
  3375. @click.stop="deleteWorks(w.wid)"
  3376. alt
  3377. />
  3378. </div>
  3379. <div class="comment" style="min-width: 200px">
  3380. <div class="worksName">
  3381. <div>{{ w.sName }}</div>
  3382. </div>
  3383. <div class="commentList">
  3384. <div class="commentList">
  3385. <div
  3386. class="commentImg"
  3387. @click="
  3388. isLikes(
  3389. w.wid,
  3390. userid,
  3391. 1,
  3392. null,
  3393. w.isLikes,
  3394. w.sName
  3395. )
  3396. "
  3397. >
  3398. <img
  3399. :src="w.isLikes == true ? likes : noLikes"
  3400. alt=""
  3401. />
  3402. </div>
  3403. <div>{{ w.likesCount }}</div>
  3404. </div>
  3405. <div
  3406. class="commentList"
  3407. style="margin-right: 15px"
  3408. >
  3409. <div
  3410. class="commentImg"
  3411. @click="
  3412. commentOther(
  3413. w,
  3414. toolIndex,
  3415. wIndex,
  3416. null,
  3417. g.id
  3418. )
  3419. "
  3420. >
  3421. <img
  3422. src="../../assets/icon/comment/comment.png"
  3423. alt=""
  3424. />
  3425. </div>
  3426. <div>{{ w.commentCount }}</div>
  3427. </div>
  3428. </div>
  3429. </div>
  3430. </div>
  3431. </div>
  3432. <div class="group_work" v-else>暂无提交作业</div>
  3433. </div>
  3434. </div>
  3435. <div
  3436. :id="'tool-' + toolIndex"
  3437. :style="{
  3438. height:
  3439. isCloseList[toolIndex].isClose == 1
  3440. ? retrnToolHeight('tool-' + toolIndex)
  3441. : 'auto',
  3442. overflow:
  3443. isCloseList[toolIndex].isClose == 1
  3444. ? 'hidden'
  3445. : 'unset'
  3446. }"
  3447. class="worksDetailBox"
  3448. v-if="
  3449. worksStudent.length &&
  3450. worksStudent[toolIndex].length > 0
  3451. "
  3452. >
  3453. <div
  3454. class="works"
  3455. style="
  3456. width: 200px;
  3457. height: 140px;
  3458. margin: 10px 10px 10px 0;
  3459. border-radius: 15px;
  3460. box-shadow: 0 0 6px 1px #dfdada;
  3461. "
  3462. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3463. :key="wIndex"
  3464. :class="w.type == 1 ? 'isTypeOne' : ''"
  3465. >
  3466. <div class="workImg" v-if="w.type == 0">
  3467. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3468. <img
  3469. :src="w.works"
  3470. @click="previewImg(w.works, w)"
  3471. alt
  3472. />
  3473. <div
  3474. class="answerScore"
  3475. v-if="w.score"
  3476. @click.stop="openScore(w)"
  3477. :class="{
  3478. rightW:
  3479. w.userid == userid ||
  3480. tType == 1 ||
  3481. tType == 4 ||
  3482. w.ateacher == userid
  3483. }"
  3484. >
  3485. {{ JSON.parse(w.score).wScore }}分
  3486. </div>
  3487. <div
  3488. class="answerScore"
  3489. @click.stop="openScore(w)"
  3490. v-else-if="
  3491. courseDetail.userid == userid &&
  3492. courseDetail.state != 6 &&
  3493. chapInfoList[courseType].chapterInfo[0]
  3494. .taskJson[taskCount].eList &&
  3495. chapInfoList[courseType].chapterInfo[0]
  3496. .taskJson[taskCount].eList.length
  3497. "
  3498. :class="{
  3499. rightW:
  3500. w.userid == userid ||
  3501. tType == 1 ||
  3502. tType == 4 ||
  3503. w.ateacher == userid
  3504. }"
  3505. >
  3506. 评分
  3507. </div>
  3508. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3509. <div
  3510. v-else-if="
  3511. (courseDetail.userid == userid ||
  3512. (courseDetail.course_teacher &&
  3513. courseDetail.course_teacher.indexOf(userid) !=
  3514. -1) ||
  3515. (w.userid == userid && sIsOpen)) &&
  3516. courseDetail.state == 6 &&
  3517. ((chapInfoList[courseType].chapterInfo[0]
  3518. .taskJson[taskCount].eList &&
  3519. chapInfoList[courseType].chapterInfo[0]
  3520. .taskJson[taskCount].eList.length) ||
  3521. (tool.eList && tool.eList.length))
  3522. "
  3523. >
  3524. <el-popover
  3525. placement="top"
  3526. width="318"
  3527. :disabled="AIloading[toolIndex][wIndex].loading"
  3528. trigger="hover"
  3529. >
  3530. <markScore
  3531. :loading="AIloading[toolIndex][wIndex].loading"
  3532. :markScoreVisible="markScoreVisible"
  3533. :ref="`markSco${toolIndex}${wIndex}`"
  3534. @updateLoading="updateLoading"
  3535. @updateDocSco="updateDocSco"
  3536. @refreshOther="refreshOther"
  3537. @markScoreDig="markScoreDig"
  3538. :tool="tool"
  3539. :wIndex="wIndex"
  3540. :scoCon="w"
  3541. :toolIndex="toolIndex"
  3542. :key="refreshKey"
  3543. :stage="courseType"
  3544. :task="taskCount"
  3545. :scoTit="
  3546. chapInfoList[courseType].chapterInfo[0]
  3547. .taskJson[taskCount].eList
  3548. "
  3549. >
  3550. </markScore>
  3551. <div
  3552. class="answerScore"
  3553. @click="
  3554. markScoreDig2(
  3555. w.sName,
  3556. worksStudent,
  3557. w.userid,
  3558. toolIndex,
  3559. chapInfoList[courseType].chapterInfo[0]
  3560. .taskJson[taskCount].eList,
  3561. AIloading[toolIndex][wIndex].loading,
  3562. tool
  3563. )
  3564. "
  3565. slot="reference"
  3566. :class="{
  3567. rightW:
  3568. w.userid == userid ||
  3569. tType == 1 ||
  3570. tType == 4 ||
  3571. w.ateacher == userid
  3572. }"
  3573. >
  3574. <span v-if="AIloading[toolIndex][wIndex].sco">
  3575. {{
  3576. AIloading[toolIndex][wIndex].loading
  3577. ? "评分中"
  3578. : AIloading[toolIndex][wIndex].sco + "分"
  3579. }}
  3580. </span>
  3581. <span v-else>
  3582. {{
  3583. AIloading[toolIndex][wIndex].loading
  3584. ? "评分中"
  3585. : "评分"
  3586. }}
  3587. </span>
  3588. </div>
  3589. </el-popover>
  3590. </div>
  3591. <img
  3592. class="deleteImg"
  3593. src="../../assets/deleteworks.png"
  3594. v-if="
  3595. w.userid == userid || tType == 1 || tType == 4
  3596. "
  3597. @click.stop="deleteWorks(w.wid)"
  3598. alt
  3599. />
  3600. </div>
  3601. <div class="workImg" v-if="w.type == 1">
  3602. <img :src="word" @click="openFile(w.works)" alt />
  3603. <!-- @click="openFile(w.works)" -->
  3604. <div
  3605. class="answerScore"
  3606. v-if="w.score"
  3607. @click.stop="openScore(w)"
  3608. :class="{
  3609. rightW:
  3610. w.userid == userid ||
  3611. tType == 1 ||
  3612. tType == 4 ||
  3613. w.ateacher == userid
  3614. }"
  3615. >
  3616. {{ JSON.parse(w.score).wScore }}分
  3617. </div>
  3618. <div
  3619. class="answerScore"
  3620. @click.stop="openScore(w)"
  3621. v-else-if="
  3622. courseDetail.userid == userid &&
  3623. courseDetail.state != 6 &&
  3624. chapInfoList[courseType].chapterInfo[0]
  3625. .taskJson[taskCount].eList &&
  3626. chapInfoList[courseType].chapterInfo[0]
  3627. .taskJson[taskCount].eList.length
  3628. "
  3629. :class="{
  3630. rightW:
  3631. w.userid == userid ||
  3632. tType == 1 ||
  3633. tType == 4 ||
  3634. w.ateacher == userid
  3635. }"
  3636. >
  3637. 评分
  3638. </div>
  3639. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3640. <div
  3641. v-else-if="
  3642. (courseDetail.userid == userid ||
  3643. (courseDetail.course_teacher &&
  3644. courseDetail.course_teacher.indexOf(userid) !=
  3645. -1) ||
  3646. (w.userid == userid && sIsOpen)) &&
  3647. courseDetail.state == 6 &&
  3648. ((chapInfoList[courseType].chapterInfo[0]
  3649. .taskJson[taskCount].eList &&
  3650. chapInfoList[courseType].chapterInfo[0]
  3651. .taskJson[taskCount].eList.length) ||
  3652. (tool.eList && tool.eList.length))
  3653. "
  3654. >
  3655. <el-popover
  3656. placement="top"
  3657. width="318"
  3658. :disabled="AIloading[toolIndex][wIndex].loading"
  3659. trigger="hover"
  3660. >
  3661. <markScore
  3662. :loading="AIloading[toolIndex][wIndex].loading"
  3663. :markScoreVisible="markScoreVisible"
  3664. :ref="`markSco${toolIndex}${wIndex}`"
  3665. @updateLoading="updateLoading"
  3666. @updateDocSco="updateDocSco"
  3667. @refreshOther="refreshOther"
  3668. @markScoreDig="markScoreDig"
  3669. :tool="tool"
  3670. :wIndex="wIndex"
  3671. :scoCon="w"
  3672. :toolIndex="toolIndex"
  3673. :key="refreshKey"
  3674. :stage="courseType"
  3675. :task="taskCount"
  3676. :scoTit="
  3677. chapInfoList[courseType].chapterInfo[0]
  3678. .taskJson[taskCount].eList
  3679. "
  3680. >
  3681. </markScore>
  3682. <div
  3683. class="answerScore"
  3684. @click="
  3685. markScoreDig2(
  3686. w.sName,
  3687. worksStudent,
  3688. w.userid,
  3689. toolIndex,
  3690. chapInfoList[courseType].chapterInfo[0]
  3691. .taskJson[taskCount].eList,
  3692. AIloading[toolIndex][wIndex].loading,
  3693. tool
  3694. )
  3695. "
  3696. slot="reference"
  3697. :class="{
  3698. rightW:
  3699. w.userid == userid ||
  3700. tType == 1 ||
  3701. tType == 4 ||
  3702. w.ateacher == userid
  3703. }"
  3704. >
  3705. <span v-if="AIloading[toolIndex][wIndex].sco">
  3706. {{
  3707. AIloading[toolIndex][wIndex].loading
  3708. ? "评分中"
  3709. : AIloading[toolIndex][wIndex].sco + "分"
  3710. }}
  3711. </span>
  3712. <span v-else>
  3713. {{
  3714. AIloading[toolIndex][wIndex].loading
  3715. ? "评分中"
  3716. : "评分"
  3717. }}
  3718. </span>
  3719. </div>
  3720. </el-popover>
  3721. </div>
  3722. <img
  3723. class="deleteImg"
  3724. src="../../assets/deleteworks.png"
  3725. v-if="
  3726. w.userid == userid || tType == 1 || tType == 4
  3727. "
  3728. @click.stop="deleteWorks(w.wid)"
  3729. alt
  3730. />
  3731. </div>
  3732. <div class="workImg" v-if="w.type == 3">
  3733. <img
  3734. style="cursor: pointer"
  3735. :src="video"
  3736. @click="openVideo(w)"
  3737. alt
  3738. />
  3739. <!-- @click="openVideo(w.works)" -->
  3740. <div
  3741. class="answerScore"
  3742. v-if="w.score"
  3743. @click.stop="openScore(w)"
  3744. :class="{
  3745. rightW:
  3746. w.userid == userid ||
  3747. tType == 1 ||
  3748. tType == 4 ||
  3749. w.ateacher == userid
  3750. }"
  3751. >
  3752. {{ JSON.parse(w.score).wScore }}分
  3753. </div>
  3754. <div
  3755. class="answerScore"
  3756. @click.stop="openScore(w)"
  3757. v-else-if="
  3758. courseDetail.userid == userid &&
  3759. courseDetail.state != 6 &&
  3760. chapInfoList[courseType].chapterInfo[0]
  3761. .taskJson[taskCount].eList &&
  3762. chapInfoList[courseType].chapterInfo[0]
  3763. .taskJson[taskCount].eList.length
  3764. "
  3765. :class="{
  3766. rightW:
  3767. w.userid == userid ||
  3768. tType == 1 ||
  3769. tType == 4 ||
  3770. w.ateacher == userid
  3771. }"
  3772. >
  3773. 评分
  3774. </div>
  3775. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3776. <div
  3777. v-else-if="
  3778. (courseDetail.userid == userid ||
  3779. (courseDetail.course_teacher &&
  3780. courseDetail.course_teacher.indexOf(userid) !=
  3781. -1) ||
  3782. (w.userid == userid && sIsOpen)) &&
  3783. courseDetail.state == 6 &&
  3784. ((chapInfoList[courseType].chapterInfo[0]
  3785. .taskJson[taskCount].eList &&
  3786. chapInfoList[courseType].chapterInfo[0]
  3787. .taskJson[taskCount].eList.length) ||
  3788. (tool.eList && tool.eList.length))
  3789. "
  3790. >
  3791. <el-popover
  3792. placement="top"
  3793. width="318"
  3794. :disabled="AIloading[toolIndex][wIndex].loading"
  3795. trigger="hover"
  3796. >
  3797. <markScore
  3798. :loading="AIloading[toolIndex][wIndex].loading"
  3799. :markScoreVisible="markScoreVisible"
  3800. :ref="`markSco${toolIndex}${wIndex}`"
  3801. @updateLoading="updateLoading"
  3802. @updateDocSco="updateDocSco"
  3803. @refreshOther="refreshOther"
  3804. @markScoreDig="markScoreDig"
  3805. :tool="tool"
  3806. :wIndex="wIndex"
  3807. :scoCon="w"
  3808. :toolIndex="toolIndex"
  3809. :key="refreshKey"
  3810. :stage="courseType"
  3811. :task="taskCount"
  3812. :scoTit="
  3813. chapInfoList[courseType].chapterInfo[0]
  3814. .taskJson[taskCount].eList
  3815. "
  3816. >
  3817. </markScore>
  3818. <div
  3819. class="answerScore"
  3820. @click="
  3821. markScoreDig2(
  3822. w.sName,
  3823. worksStudent,
  3824. w.userid,
  3825. toolIndex,
  3826. chapInfoList[courseType].chapterInfo[0]
  3827. .taskJson[taskCount].eList,
  3828. AIloading[toolIndex][wIndex].loading,
  3829. tool
  3830. )
  3831. "
  3832. slot="reference"
  3833. :class="{
  3834. rightW:
  3835. w.userid == userid ||
  3836. tType == 1 ||
  3837. tType == 4 ||
  3838. w.ateacher == userid
  3839. }"
  3840. >
  3841. <span v-if="AIloading[toolIndex][wIndex].sco">
  3842. {{
  3843. AIloading[toolIndex][wIndex].loading
  3844. ? "评分中"
  3845. : AIloading[toolIndex][wIndex].sco + "分"
  3846. }}
  3847. </span>
  3848. <span v-else>
  3849. {{
  3850. AIloading[toolIndex][wIndex].loading
  3851. ? "评分中"
  3852. : "评分"
  3853. }}
  3854. </span>
  3855. </div>
  3856. </el-popover>
  3857. </div>
  3858. <img
  3859. class="deleteImg"
  3860. src="../../assets/deleteworks.png"
  3861. v-if="
  3862. w.userid == userid || tType == 1 || tType == 4
  3863. "
  3864. @click.stop="deleteWorks(w.wid)"
  3865. alt
  3866. />
  3867. </div>
  3868. <div class="workImg" v-if="w.type == 12">
  3869. <img
  3870. style="cursor: pointer"
  3871. :src="word2"
  3872. @click="downloadFile(w.works)"
  3873. alt
  3874. />
  3875. <!-- @click="openVideo(w.works)" -->
  3876. <div
  3877. class="answerScore"
  3878. v-if="w.score"
  3879. @click.stop="openScore(w)"
  3880. :class="{
  3881. rightW:
  3882. w.userid == userid ||
  3883. tType == 1 ||
  3884. tType == 4 ||
  3885. w.ateacher == userid
  3886. }"
  3887. >
  3888. {{ JSON.parse(w.score).wScore }}分
  3889. </div>
  3890. <div
  3891. class="answerScore"
  3892. @click.stop="openScore(w)"
  3893. v-else-if="
  3894. courseDetail.userid == userid &&
  3895. courseDetail.state != 6 &&
  3896. chapInfoList[courseType].chapterInfo[0]
  3897. .taskJson[taskCount].eList &&
  3898. chapInfoList[courseType].chapterInfo[0]
  3899. .taskJson[taskCount].eList.length
  3900. "
  3901. :class="{
  3902. rightW:
  3903. w.userid == userid ||
  3904. tType == 1 ||
  3905. tType == 4 ||
  3906. w.ateacher == userid
  3907. }"
  3908. >
  3909. 评分
  3910. </div>
  3911. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3912. <div
  3913. v-else-if="
  3914. (courseDetail.userid == userid ||
  3915. (courseDetail.course_teacher &&
  3916. courseDetail.course_teacher.indexOf(userid) !=
  3917. -1) ||
  3918. (w.userid == userid && sIsOpen)) &&
  3919. courseDetail.state == 6 &&
  3920. ((chapInfoList[courseType].chapterInfo[0]
  3921. .taskJson[taskCount].eList &&
  3922. chapInfoList[courseType].chapterInfo[0]
  3923. .taskJson[taskCount].eList.length) ||
  3924. (tool.eList && tool.eList.length))
  3925. "
  3926. >
  3927. <el-popover
  3928. placement="top"
  3929. width="318"
  3930. :disabled="AIloading[toolIndex][wIndex].loading"
  3931. trigger="hover"
  3932. >
  3933. <markScore
  3934. :loading="AIloading[toolIndex][wIndex].loading"
  3935. :markScoreVisible="markScoreVisible"
  3936. :ref="`markSco${toolIndex}${wIndex}`"
  3937. @updateLoading="updateLoading"
  3938. @updateDocSco="updateDocSco"
  3939. @refreshOther="refreshOther"
  3940. @markScoreDig="markScoreDig"
  3941. :tool="tool"
  3942. :wIndex="wIndex"
  3943. :scoCon="w"
  3944. :toolIndex="toolIndex"
  3945. :key="refreshKey"
  3946. :stage="courseType"
  3947. :task="taskCount"
  3948. :scoTit="
  3949. chapInfoList[courseType].chapterInfo[0]
  3950. .taskJson[taskCount].eList
  3951. "
  3952. >
  3953. </markScore>
  3954. <div
  3955. class="answerScore"
  3956. @click="
  3957. markScoreDig2(
  3958. w.sName,
  3959. worksStudent,
  3960. w.userid,
  3961. toolIndex,
  3962. chapInfoList[courseType].chapterInfo[0]
  3963. .taskJson[taskCount].eList,
  3964. AIloading[toolIndex][wIndex].loading,
  3965. tool
  3966. )
  3967. "
  3968. slot="reference"
  3969. :class="{
  3970. rightW:
  3971. w.userid == userid ||
  3972. tType == 1 ||
  3973. tType == 4 ||
  3974. w.ateacher == userid
  3975. }"
  3976. >
  3977. <span v-if="AIloading[toolIndex][wIndex].sco">
  3978. {{
  3979. AIloading[toolIndex][wIndex].loading
  3980. ? "评分中"
  3981. : AIloading[toolIndex][wIndex].sco + "分"
  3982. }}
  3983. </span>
  3984. <span v-else>
  3985. {{
  3986. AIloading[toolIndex][wIndex].loading
  3987. ? "评分中"
  3988. : "评分"
  3989. }}
  3990. </span>
  3991. </div>
  3992. </el-popover>
  3993. </div>
  3994. <img
  3995. class="deleteImg"
  3996. src="../../assets/deleteworks.png"
  3997. v-if="
  3998. w.userid == userid || tType == 1 || tType == 4
  3999. "
  4000. @click.stop="deleteWorks(w.wid)"
  4001. alt
  4002. />
  4003. </div>
  4004. <div class="comment" style="min-width: 200px">
  4005. <div class="worksName">
  4006. <div>{{ w.sName }}</div>
  4007. </div>
  4008. <div class="commentList">
  4009. <div class="commentList">
  4010. <div
  4011. class="commentImg"
  4012. @click="
  4013. isLikes(
  4014. w.wid,
  4015. userid,
  4016. 1,
  4017. null,
  4018. w.isLikes,
  4019. w.sName
  4020. )
  4021. "
  4022. >
  4023. <img
  4024. :src="w.isLikes == true ? likes : noLikes"
  4025. alt=""
  4026. />
  4027. </div>
  4028. <div>{{ w.likesCount }}</div>
  4029. </div>
  4030. <div class="commentList" style="margin-right: 15px">
  4031. <div
  4032. class="commentImg"
  4033. @click="commentOther(w, toolIndex, wIndex)"
  4034. >
  4035. <img
  4036. src="../../assets/icon/comment/comment.png"
  4037. alt=""
  4038. />
  4039. </div>
  4040. <div>{{ w.commentCount }}</div>
  4041. </div>
  4042. </div>
  4043. </div>
  4044. </div>
  4045. </div>
  4046. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4047. 未提交
  4048. </div>
  4049. <div
  4050. class="noWorksS"
  4051. v-if="noWorksS && noWorksS[toolIndex].length"
  4052. >
  4053. <div
  4054. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4055. :key="sIndex"
  4056. class="noWorksName"
  4057. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4058. >
  4059. <el-tooltip
  4060. effect="dark"
  4061. :content="s.student"
  4062. placement="top"
  4063. >
  4064. <span>{{ s.student }}</span>
  4065. </el-tooltip>
  4066. </div>
  4067. </div>
  4068. </div>
  4069. <div
  4070. v-if="
  4071. tType &&
  4072. ((tType == 2 && sIsOpen == true) ||
  4073. tType == 1 ||
  4074. tType == 4) &&
  4075. tool.tool.indexOf(70) != -1
  4076. "
  4077. class="worksBox"
  4078. >
  4079. <div
  4080. class="zuoyeYulan"
  4081. v-if="
  4082. worksStudent.length &&
  4083. worksStudent[toolIndex].length > 0
  4084. "
  4085. >
  4086. <div class="worksTop">
  4087. <div>作业预览</div>
  4088. <div
  4089. class="corOpen"
  4090. @click="contract(toolIndex)"
  4091. v-if="
  4092. isCloseList[toolIndex].isCloseBoolean &&
  4093. isCloseList[toolIndex].isClose == 0
  4094. "
  4095. >
  4096. 折叠
  4097. </div>
  4098. <div
  4099. class="corOpen"
  4100. @click="contract(toolIndex)"
  4101. v-if="isCloseList[toolIndex].isClose == 1"
  4102. >
  4103. 展开
  4104. </div>
  4105. </div>
  4106. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4107. </div>
  4108. <div
  4109. :id="'tool-' + toolIndex"
  4110. :style="{
  4111. height:
  4112. isCloseList[toolIndex].isClose == 1
  4113. ? retrnToolHeight('tool-' + toolIndex)
  4114. : 'auto',
  4115. overflow:
  4116. isCloseList[toolIndex].isClose == 1
  4117. ? 'hidden'
  4118. : 'unset'
  4119. }"
  4120. class="worksDetailBox"
  4121. v-if="
  4122. worksStudent.length &&
  4123. worksStudent[toolIndex].length > 0
  4124. "
  4125. >
  4126. <div
  4127. class="works"
  4128. style="
  4129. width: 200px;
  4130. height: 140px;
  4131. margin: 10px 10px 10px 0;
  4132. border-radius: 15px;
  4133. box-shadow: 0 0 6px 1px #dfdada;
  4134. "
  4135. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4136. :key="wIndex"
  4137. :class="w.type == 1 ? 'isTypeOne' : ''"
  4138. >
  4139. <div
  4140. class="workImg"
  4141. @click.stop="openScore(w, toolIndex)"
  4142. >
  4143. <img :src="word" alt />
  4144. <img
  4145. class="deleteImg"
  4146. src="../../assets/deleteworks.png"
  4147. v-if="
  4148. w.userid == userid || tType == 1 || tType == 4
  4149. "
  4150. @click.stop="deleteWorks(w.wid)"
  4151. alt
  4152. />
  4153. </div>
  4154. <div class="comment" style="min-width: 200px">
  4155. <div class="worksName">
  4156. <div>{{ w.sName }}</div>
  4157. </div>
  4158. </div>
  4159. </div>
  4160. </div>
  4161. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4162. 未提交
  4163. </div>
  4164. <div
  4165. class="noWorksS"
  4166. v-if="noWorksS && noWorksS[toolIndex].length"
  4167. >
  4168. <div
  4169. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4170. :key="sIndex"
  4171. class="noWorksName"
  4172. >
  4173. <el-tooltip
  4174. effect="dark"
  4175. :content="s.student"
  4176. placement="top"
  4177. >
  4178. <span>{{ s.student }}</span>
  4179. </el-tooltip>
  4180. </div>
  4181. </div>
  4182. </div>
  4183. <div
  4184. v-if="
  4185. tType &&
  4186. tType == 2 &&
  4187. !sIsOpen &&
  4188. tool.tool.indexOf(70) != -1
  4189. "
  4190. class="worksBox"
  4191. >
  4192. <div
  4193. class="zuoyeYulan"
  4194. v-if="workStudent[toolIndex].length > 0"
  4195. >
  4196. <span class="worksTitle">作业预览</span>
  4197. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4198. </div>
  4199. <div
  4200. class="worksDetailBox"
  4201. v-if="workStudent[toolIndex].length > 0"
  4202. >
  4203. <div
  4204. class="works"
  4205. style="
  4206. width: 200px;
  4207. height: 140px;
  4208. margin: 10px 10px 10px 0;
  4209. box-shadow: 0 0 6px 1px #dfdada;
  4210. "
  4211. v-for="(w, wIndex) in workStudent[toolIndex]"
  4212. :key="wIndex"
  4213. >
  4214. <div
  4215. class="workImg"
  4216. @click.stop="openScore(w, toolIndex)"
  4217. >
  4218. <img :src="word" alt />
  4219. <img
  4220. class="deleteImg"
  4221. src="../../assets/deleteworks.png"
  4222. v-if="
  4223. w.userid == userid || tType == 1 || tType == 4
  4224. "
  4225. @click.stop="deleteWorks(w.wid)"
  4226. alt
  4227. />
  4228. </div>
  4229. <div class="worksName">
  4230. <div>{{ w.sName }}</div>
  4231. </div>
  4232. </div>
  4233. </div>
  4234. </div>
  4235. <div
  4236. v-if="
  4237. tType &&
  4238. ((tType == 2 && sIsOpen == true) ||
  4239. tType == 1 ||
  4240. tType == 4) &&
  4241. tool.tool.indexOf(32) != -1
  4242. "
  4243. class="worksBox"
  4244. >
  4245. <div
  4246. class="zuoyeYulan"
  4247. v-if="
  4248. worksStudent.length &&
  4249. worksStudent[toolIndex].length > 0
  4250. "
  4251. >
  4252. <div class="worksTop">
  4253. <div>作业预览</div>
  4254. <div
  4255. class="corOpen"
  4256. @click="contract(toolIndex)"
  4257. v-if="
  4258. isCloseList[toolIndex].isCloseBoolean &&
  4259. isCloseList[toolIndex].isClose == 0
  4260. "
  4261. >
  4262. 折叠
  4263. </div>
  4264. <div
  4265. class="corOpen"
  4266. @click="contract(toolIndex)"
  4267. v-if="isCloseList[toolIndex].isClose == 1"
  4268. >
  4269. 展开
  4270. </div>
  4271. </div>
  4272. </div>
  4273. <div
  4274. :id="'tool-' + toolIndex"
  4275. :style="{
  4276. height:
  4277. isCloseList[toolIndex].isClose == 1
  4278. ? retrnToolHeight('tool-' + toolIndex)
  4279. : 'auto',
  4280. overflow:
  4281. isCloseList[toolIndex].isClose == 1
  4282. ? 'hidden'
  4283. : 'unset'
  4284. }"
  4285. class="worksDetailBox"
  4286. v-if="
  4287. worksStudent.length &&
  4288. worksStudent[toolIndex].length > 0
  4289. "
  4290. >
  4291. <div
  4292. class="works"
  4293. style="
  4294. width: 200px;
  4295. height: 140px;
  4296. margin: 10px 10px 10px 0;
  4297. border-radius: 15px;
  4298. box-shadow: 0 0 6px 1px #dfdada;
  4299. "
  4300. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4301. :key="wIndex"
  4302. :class="w.type == 1 ? 'isTypeOne' : ''"
  4303. >
  4304. <div class="workImg">
  4305. <img
  4306. :src="word2"
  4307. @click="downloadFile(w.works)"
  4308. alt
  4309. />
  4310. <div
  4311. class="answerScore"
  4312. v-if="w.score"
  4313. @click.stop="openScore(w)"
  4314. :class="{
  4315. rightW:
  4316. w.userid == userid ||
  4317. tType == 1 ||
  4318. tType == 4 ||
  4319. w.ateacher == userid
  4320. }"
  4321. >
  4322. {{ JSON.parse(w.score).wScore }}分
  4323. </div>
  4324. <div
  4325. class="answerScore"
  4326. @click.stop="openScore(w)"
  4327. v-else-if="courseDetail.userid == userid"
  4328. :class="{
  4329. rightW:
  4330. w.userid == userid ||
  4331. tType == 1 ||
  4332. tType == 4 ||
  4333. w.ateacher == userid
  4334. }"
  4335. >
  4336. 评分
  4337. </div>
  4338. <img
  4339. class="deleteImg"
  4340. src="../../assets/deleteworks.png"
  4341. v-if="
  4342. w.userid == userid || tType == 1 || tType == 4
  4343. "
  4344. @click.stop="deleteWorks(w.wid)"
  4345. alt
  4346. />
  4347. </div>
  4348. <div class="comment" style="min-width: 200px">
  4349. <div class="worksName">
  4350. <div>{{ w.sName }}</div>
  4351. </div>
  4352. <div class="commentList">
  4353. <div class="commentList">
  4354. <div
  4355. class="commentImg"
  4356. @click="
  4357. isLikes(
  4358. w.wid,
  4359. userid,
  4360. 1,
  4361. null,
  4362. w.isLikes,
  4363. w.sName
  4364. )
  4365. "
  4366. >
  4367. <img
  4368. :src="w.isLikes == true ? likes : noLikes"
  4369. alt=""
  4370. />
  4371. </div>
  4372. <div>{{ w.likesCount }}</div>
  4373. </div>
  4374. <div class="commentList" style="margin-right: 15px">
  4375. <div
  4376. class="commentImg"
  4377. @click="commentOther(w, toolIndex, wIndex)"
  4378. >
  4379. <img
  4380. src="../../assets/icon/comment/comment.png"
  4381. alt=""
  4382. />
  4383. </div>
  4384. <div>{{ w.commentCount }}</div>
  4385. </div>
  4386. </div>
  4387. </div>
  4388. </div>
  4389. </div>
  4390. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4391. 未提交
  4392. </div>
  4393. <div
  4394. class="noWorksS"
  4395. v-if="noWorksS && noWorksS[toolIndex].length"
  4396. >
  4397. <div
  4398. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4399. :key="sIndex"
  4400. class="noWorksName"
  4401. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4402. >
  4403. <el-tooltip
  4404. effect="dark"
  4405. :content="s.student"
  4406. placement="top"
  4407. >
  4408. <span>{{ s.student }}</span>
  4409. </el-tooltip>
  4410. </div>
  4411. </div>
  4412. </div>
  4413. <div
  4414. v-if="
  4415. tType &&
  4416. ((tType == 2 && sIsOpen == true) ||
  4417. tType == 1 ||
  4418. tType == 4) &&
  4419. tool.tool.indexOf(57) != -1
  4420. "
  4421. class="worksBox"
  4422. >
  4423. <div
  4424. class="zuoyeYulan"
  4425. v-if="
  4426. worksStudent.length &&
  4427. worksStudent[toolIndex].length > 0
  4428. "
  4429. >
  4430. <div class="worksTop">
  4431. <div>作业预览</div>
  4432. <div
  4433. class="corOpen"
  4434. @click="contract(toolIndex)"
  4435. v-if="
  4436. isCloseList[toolIndex].isCloseBoolean &&
  4437. isCloseList[toolIndex].isClose == 0
  4438. "
  4439. >
  4440. 折叠
  4441. </div>
  4442. <div
  4443. class="corOpen"
  4444. @click="contract(toolIndex)"
  4445. v-if="isCloseList[toolIndex].isClose == 1"
  4446. >
  4447. 展开
  4448. </div>
  4449. </div>
  4450. </div>
  4451. <div
  4452. :id="'tool-' + toolIndex"
  4453. :style="{
  4454. height:
  4455. isCloseList[toolIndex].isClose == 1
  4456. ? retrnToolHeight('tool-' + toolIndex)
  4457. : 'auto',
  4458. overflow:
  4459. isCloseList[toolIndex].isClose == 1
  4460. ? 'hidden'
  4461. : 'unset'
  4462. }"
  4463. class="worksDetailBox"
  4464. v-if="
  4465. worksStudent.length &&
  4466. worksStudent[toolIndex].length > 0
  4467. "
  4468. >
  4469. <div
  4470. class="works"
  4471. style="
  4472. width: 200px;
  4473. height: 140px;
  4474. margin: 10px 10px 10px 0;
  4475. border-radius: 15px;
  4476. box-shadow: 0 0 6px 1px #dfdada;
  4477. "
  4478. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4479. :key="wIndex"
  4480. :class="w.type == 1 ? 'isTypeOne' : ''"
  4481. >
  4482. <div class="workImg">
  4483. <img
  4484. :src="word2"
  4485. @click="downloadFile(w.works)"
  4486. v-if="w.type == 12"
  4487. alt
  4488. />
  4489. <img
  4490. :src="word2"
  4491. @click="
  4492. openCocoPi(57, toolIndex, w.userid, w.sName)
  4493. "
  4494. v-else-if="w.type == 15"
  4495. alt
  4496. />
  4497. <div
  4498. class="answerScore"
  4499. v-if="w.score"
  4500. @click.stop="openScore(w)"
  4501. :class="{
  4502. rightW:
  4503. w.userid == userid ||
  4504. tType == 1 ||
  4505. tType == 4 ||
  4506. w.ateacher == userid
  4507. }"
  4508. >
  4509. {{ JSON.parse(w.score).wScore }}分
  4510. </div>
  4511. <div
  4512. class="answerScore"
  4513. @click.stop="openScore(w)"
  4514. v-else-if="
  4515. courseDetail.userid == userid &&
  4516. courseDetail.state != 6 &&
  4517. chapInfoList[courseType].chapterInfo[0]
  4518. .taskJson[taskCount].eList &&
  4519. chapInfoList[courseType].chapterInfo[0]
  4520. .taskJson[taskCount].eList.length
  4521. "
  4522. :class="{
  4523. rightW:
  4524. w.userid == userid ||
  4525. tType == 1 ||
  4526. tType == 4 ||
  4527. w.ateacher == userid
  4528. }"
  4529. >
  4530. 评分
  4531. </div>
  4532. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4533. <div
  4534. v-else-if="
  4535. (courseDetail.userid == userid ||
  4536. (courseDetail.course_teacher &&
  4537. courseDetail.course_teacher.indexOf(userid) !=
  4538. -1) ||
  4539. (w.userid == userid && sIsOpen)) &&
  4540. courseDetail.state == 6 &&
  4541. ((chapInfoList[courseType].chapterInfo[0]
  4542. .taskJson[taskCount].eList &&
  4543. chapInfoList[courseType].chapterInfo[0]
  4544. .taskJson[taskCount].eList.length) ||
  4545. (tool.eList && tool.eList.length))
  4546. "
  4547. >
  4548. <el-popover
  4549. placement="top"
  4550. width="318"
  4551. :disabled="AIloading[toolIndex][wIndex].loading"
  4552. trigger="hover"
  4553. >
  4554. <markScore
  4555. :loading="AIloading[toolIndex][wIndex].loading"
  4556. :markScoreVisible="markScoreVisible"
  4557. :ref="`markSco${toolIndex}${wIndex}`"
  4558. @updateLoading="updateLoading"
  4559. @updateDocSco="updateDocSco"
  4560. @refreshOther="refreshOther"
  4561. @markScoreDig="markScoreDig"
  4562. :tool="tool"
  4563. :wIndex="wIndex"
  4564. :scoCon="w"
  4565. :toolIndex="toolIndex"
  4566. :key="refreshKey"
  4567. :stage="courseType"
  4568. :task="taskCount"
  4569. :scoTit="
  4570. chapInfoList[courseType].chapterInfo[0]
  4571. .taskJson[taskCount].eList
  4572. "
  4573. >
  4574. </markScore>
  4575. <div
  4576. class="answerScore"
  4577. @click="
  4578. markScoreDig2(
  4579. w.sName,
  4580. worksStudent,
  4581. w.userid,
  4582. toolIndex,
  4583. chapInfoList[courseType].chapterInfo[0]
  4584. .taskJson[taskCount].eList,
  4585. AIloading[toolIndex][wIndex].loading,
  4586. tool
  4587. )
  4588. "
  4589. slot="reference"
  4590. :class="{
  4591. rightW:
  4592. w.userid == userid ||
  4593. tType == 1 ||
  4594. tType == 4 ||
  4595. w.ateacher == userid
  4596. }"
  4597. >
  4598. <span v-if="AIloading[toolIndex][wIndex].sco">
  4599. {{
  4600. AIloading[toolIndex][wIndex].loading
  4601. ? "评分中"
  4602. : AIloading[toolIndex][wIndex].sco + "分"
  4603. }}
  4604. </span>
  4605. <span v-else>
  4606. {{
  4607. AIloading[toolIndex][wIndex].loading
  4608. ? "评分中"
  4609. : "评分"
  4610. }}
  4611. </span>
  4612. </div>
  4613. </el-popover>
  4614. </div>
  4615. <img
  4616. class="deleteImg"
  4617. src="../../assets/deleteworks.png"
  4618. v-if="
  4619. w.userid == userid || tType == 1 || tType == 4
  4620. "
  4621. @click.stop="deleteWorks(w.wid)"
  4622. alt
  4623. />
  4624. </div>
  4625. <div class="comment" style="min-width: 200px">
  4626. <div class="worksName">
  4627. <div>{{ w.sName }}</div>
  4628. </div>
  4629. <div class="commentList">
  4630. <div class="commentList">
  4631. <div
  4632. class="commentImg"
  4633. @click="
  4634. isLikes(
  4635. w.wid,
  4636. userid,
  4637. 1,
  4638. null,
  4639. w.isLikes,
  4640. w.sName
  4641. )
  4642. "
  4643. >
  4644. <img
  4645. :src="w.isLikes == true ? likes : noLikes"
  4646. alt=""
  4647. />
  4648. </div>
  4649. <div>{{ w.likesCount }}</div>
  4650. </div>
  4651. <div class="commentList" style="margin-right: 15px">
  4652. <div
  4653. class="commentImg"
  4654. @click="commentOther(w, toolIndex, wIndex)"
  4655. >
  4656. <img
  4657. src="../../assets/icon/comment/comment.png"
  4658. alt=""
  4659. />
  4660. </div>
  4661. <div>{{ w.commentCount }}</div>
  4662. </div>
  4663. </div>
  4664. </div>
  4665. </div>
  4666. </div>
  4667. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4668. 未提交
  4669. </div>
  4670. <div
  4671. class="noWorksS"
  4672. v-if="noWorksS && noWorksS[toolIndex].length"
  4673. >
  4674. <div
  4675. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4676. :key="sIndex"
  4677. class="noWorksName"
  4678. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4679. >
  4680. <el-tooltip
  4681. effect="dark"
  4682. :content="s.student"
  4683. placement="top"
  4684. >
  4685. <span>{{ s.student }}</span>
  4686. </el-tooltip>
  4687. </div>
  4688. </div>
  4689. </div>
  4690. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4691. <div
  4692. style="display: flex;justify-content: space-between;align-items: center;"
  4693. >
  4694. <div
  4695. class="zuoyeYulan"
  4696. v-if="
  4697. worksStudent.length &&
  4698. worksStudent[toolIndex].length > 0
  4699. "
  4700. >
  4701. <span class="worksTitle">作业预览</span>
  4702. <div
  4703. class="corOpen"
  4704. @click="contract(toolIndex)"
  4705. v-if="
  4706. isCloseList[toolIndex].isCloseBoolean &&
  4707. isCloseList[toolIndex].isClose == 0
  4708. "
  4709. >
  4710. 折叠
  4711. </div>
  4712. <div
  4713. class="corOpen"
  4714. @click="contract(toolIndex)"
  4715. v-if="isCloseList[toolIndex].isClose == 1"
  4716. >
  4717. 展开
  4718. </div>
  4719. </div>
  4720. <div
  4721. style="display: flex;"
  4722. v-if="
  4723. (courseDetail.userid == userid ||
  4724. (courseDetail.course_teacher &&
  4725. courseDetail.course_teacher.indexOf(userid) !=
  4726. -1)) &&
  4727. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4728. taskCount
  4729. ].eList &&
  4730. chapInfoList[courseType].chapterInfo[0].taskJson[
  4731. taskCount
  4732. ].eList.length) ||
  4733. (tool.eList && tool.eList.length)) &&
  4734. courseDetail.state == 6
  4735. "
  4736. >
  4737. <!-- <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 == 6 "> -->
  4738. <div
  4739. style="margin-right:10px"
  4740. class="ScoreBtn"
  4741. @click="
  4742. resetLoopEva(
  4743. worksStudent[toolIndex],
  4744. chapInfoList[courseType].chapterInfo[0].taskJson[
  4745. taskCount
  4746. ].eList,
  4747. courseType,
  4748. taskCount,
  4749. toolIndex,
  4750. tool.toolDetail,
  4751. worksStudent
  4752. )
  4753. "
  4754. >
  4755. 一键重置
  4756. </div>
  4757. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4758. <img
  4759. src="../../assets/icon/newIcons/rootImg.png"
  4760. alt=""
  4761. />
  4762. AI评分
  4763. </div>
  4764. <div
  4765. class="ScoreBtn"
  4766. v-else-if="!loopLoading[toolIndex].loading"
  4767. @click="
  4768. loopEva(
  4769. worksStudent[toolIndex],
  4770. chapInfoList[courseType].chapterInfo[0].taskJson[
  4771. taskCount
  4772. ].eList,
  4773. courseType,
  4774. taskCount,
  4775. toolIndex,
  4776. tool.toolDetail,
  4777. chapInfoList[courseType].chapterInfo[0].taskJson[
  4778. taskCount
  4779. ].taskDetail,
  4780. tool
  4781. )
  4782. "
  4783. >
  4784. <img
  4785. src="../../assets/icon/newIcons/rootImg.png"
  4786. alt=""
  4787. />
  4788. AI评分
  4789. </div>
  4790. <div class="ScoreBtn" v-else>
  4791. <img
  4792. src="../../assets/icon/newIcons/rootImg.png"
  4793. alt=""
  4794. />
  4795. 正在评分
  4796. </div>
  4797. </div>
  4798. </div>
  4799. <div
  4800. :id="'tool-' + toolIndex"
  4801. :style="{
  4802. height:
  4803. isCloseList[toolIndex].isClose == 1
  4804. ? retrnToolHeight('tool-' + toolIndex)
  4805. : 'auto',
  4806. overflow:
  4807. isCloseList[toolIndex].isClose == 1
  4808. ? 'hidden'
  4809. : 'unset'
  4810. }"
  4811. class="worksDetailBox"
  4812. v-if="
  4813. worksStudent.length &&
  4814. worksStudent[toolIndex].length > 0
  4815. "
  4816. >
  4817. <div
  4818. class="works"
  4819. style="
  4820. width: 200px;
  4821. height: 140px;
  4822. margin: 10px 10px 10px 0;
  4823. border-radius: 15px;
  4824. box-shadow: 0 0 6px 1px #dfdada;
  4825. "
  4826. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4827. :key="wIndex"
  4828. :class="w.type == 1 ? 'isTypeOne' : ''"
  4829. >
  4830. <div class="workImg" v-if="w.type == 0">
  4831. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4832. <img
  4833. :src="w.works"
  4834. @click="previewImg(w.works, w)"
  4835. alt
  4836. />
  4837. <div
  4838. class="answerScore"
  4839. v-if="w.score"
  4840. @click.stop="openScore(w)"
  4841. :class="{
  4842. rightW:
  4843. w.userid == userid ||
  4844. tType == 1 ||
  4845. tType == 4 ||
  4846. w.ateacher == userid
  4847. }"
  4848. >
  4849. {{ JSON.parse(w.score).wScore }}分
  4850. </div>
  4851. <div
  4852. class="answerScore"
  4853. @click.stop="openScore(w)"
  4854. v-else-if="
  4855. courseDetail.userid == userid &&
  4856. courseDetail.state != 6 &&
  4857. chapInfoList[courseType].chapterInfo[0]
  4858. .taskJson[taskCount].eList &&
  4859. chapInfoList[courseType].chapterInfo[0]
  4860. .taskJson[taskCount].eList.length
  4861. "
  4862. :class="{
  4863. rightW:
  4864. w.userid == userid ||
  4865. tType == 1 ||
  4866. tType == 4 ||
  4867. w.ateacher == userid
  4868. }"
  4869. >
  4870. 评分
  4871. </div>
  4872. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4873. <div
  4874. v-else-if="
  4875. (courseDetail.userid == userid ||
  4876. (courseDetail.course_teacher &&
  4877. courseDetail.course_teacher.indexOf(userid) !=
  4878. -1) ||
  4879. (w.userid == userid && sIsOpen)) &&
  4880. courseDetail.state == 6 &&
  4881. ((chapInfoList[courseType].chapterInfo[0]
  4882. .taskJson[taskCount].eList &&
  4883. chapInfoList[courseType].chapterInfo[0]
  4884. .taskJson[taskCount].eList.length) ||
  4885. (tool.eList && tool.eList.length))
  4886. "
  4887. >
  4888. <el-popover
  4889. placement="top"
  4890. width="318"
  4891. :disabled="AIloading[toolIndex][wIndex].loading"
  4892. trigger="hover"
  4893. >
  4894. <markScore
  4895. :loading="AIloading[toolIndex][wIndex].loading"
  4896. :markScoreVisible="markScoreVisible"
  4897. :ref="`markSco${toolIndex}${wIndex}`"
  4898. @updateLoading="updateLoading"
  4899. @updateDocSco="updateDocSco"
  4900. @refreshOther="refreshOther"
  4901. @markScoreDig="markScoreDig"
  4902. :tool="tool"
  4903. :wIndex="wIndex"
  4904. :scoCon="w"
  4905. :toolIndex="toolIndex"
  4906. :key="refreshKey"
  4907. :stage="courseType"
  4908. :task="taskCount"
  4909. :scoTit="
  4910. chapInfoList[courseType].chapterInfo[0]
  4911. .taskJson[taskCount].eList
  4912. "
  4913. >
  4914. </markScore>
  4915. <div
  4916. class="answerScore"
  4917. @click="
  4918. markScoreDig2(
  4919. w.sName,
  4920. worksStudent,
  4921. w.userid,
  4922. toolIndex,
  4923. chapInfoList[courseType].chapterInfo[0]
  4924. .taskJson[taskCount].eList,
  4925. AIloading[toolIndex][wIndex].loading,
  4926. tool
  4927. )
  4928. "
  4929. slot="reference"
  4930. :class="{
  4931. rightW:
  4932. w.userid == userid ||
  4933. tType == 1 ||
  4934. tType == 4 ||
  4935. w.ateacher == userid
  4936. }"
  4937. >
  4938. <span v-if="AIloading[toolIndex][wIndex].sco">
  4939. {{
  4940. AIloading[toolIndex][wIndex].loading
  4941. ? "评分中"
  4942. : AIloading[toolIndex][wIndex].sco + "分"
  4943. }}
  4944. </span>
  4945. <span v-else>
  4946. {{
  4947. AIloading[toolIndex][wIndex].loading
  4948. ? "评分中"
  4949. : "评分"
  4950. }}
  4951. </span>
  4952. </div>
  4953. </el-popover>
  4954. </div>
  4955. <img
  4956. class="deleteImg"
  4957. src="../../assets/deleteworks.png"
  4958. v-if="
  4959. w.userid == userid || tType == 1 || tType == 4
  4960. "
  4961. @click.stop="deleteWorks(w.wid)"
  4962. alt
  4963. />
  4964. </div>
  4965. <div
  4966. class="workImg"
  4967. style="cursor: pointer"
  4968. v-if="w.type == 1"
  4969. >
  4970. <img :src="word" @click="openFile(w.works)" alt />
  4971. <!-- @click="openFile(w.works)" -->
  4972. <div
  4973. class="answerScore"
  4974. v-if="w.score"
  4975. @click.stop="openScore(w)"
  4976. :class="{
  4977. rightW:
  4978. w.userid == userid ||
  4979. tType == 1 ||
  4980. tType == 4 ||
  4981. w.ateacher == userid
  4982. }"
  4983. >
  4984. {{ JSON.parse(w.score).wScore }}分
  4985. </div>
  4986. <div
  4987. class="answerScore"
  4988. @click.stop="openScore(w)"
  4989. v-else-if="
  4990. courseDetail.userid == userid &&
  4991. courseDetail.state != 6 &&
  4992. chapInfoList[courseType].chapterInfo[0]
  4993. .taskJson[taskCount].eList &&
  4994. chapInfoList[courseType].chapterInfo[0]
  4995. .taskJson[taskCount].eList.length
  4996. "
  4997. :class="{
  4998. rightW:
  4999. w.userid == userid ||
  5000. tType == 1 ||
  5001. tType == 4 ||
  5002. w.ateacher == userid
  5003. }"
  5004. >
  5005. 评分
  5006. </div>
  5007. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5008. <div
  5009. v-else-if="
  5010. (courseDetail.userid == userid ||
  5011. (courseDetail.course_teacher &&
  5012. courseDetail.course_teacher.indexOf(userid) !=
  5013. -1) ||
  5014. (w.userid == userid && sIsOpen)) &&
  5015. courseDetail.state == 6 &&
  5016. ((chapInfoList[courseType].chapterInfo[0]
  5017. .taskJson[taskCount].eList &&
  5018. chapInfoList[courseType].chapterInfo[0]
  5019. .taskJson[taskCount].eList.length) ||
  5020. (tool.eList && tool.eList.length))
  5021. "
  5022. >
  5023. <el-popover
  5024. placement="top"
  5025. width="318"
  5026. :disabled="AIloading[toolIndex][wIndex].loading"
  5027. trigger="hover"
  5028. >
  5029. <markScore
  5030. :loading="AIloading[toolIndex][wIndex].loading"
  5031. :markScoreVisible="markScoreVisible"
  5032. :ref="`markSco${toolIndex}${wIndex}`"
  5033. @updateLoading="updateLoading"
  5034. @updateDocSco="updateDocSco"
  5035. @refreshOther="refreshOther"
  5036. @markScoreDig="markScoreDig"
  5037. :tool="tool"
  5038. :wIndex="wIndex"
  5039. :scoCon="w"
  5040. :toolIndex="toolIndex"
  5041. :key="refreshKey"
  5042. :stage="courseType"
  5043. :task="taskCount"
  5044. :scoTit="
  5045. chapInfoList[courseType].chapterInfo[0]
  5046. .taskJson[taskCount].eList
  5047. "
  5048. >
  5049. </markScore>
  5050. <div
  5051. class="answerScore"
  5052. @click="
  5053. markScoreDig2(
  5054. w.sName,
  5055. worksStudent,
  5056. w.userid,
  5057. toolIndex,
  5058. chapInfoList[courseType].chapterInfo[0]
  5059. .taskJson[taskCount].eList,
  5060. AIloading[toolIndex][wIndex].loading,
  5061. tool
  5062. )
  5063. "
  5064. slot="reference"
  5065. :class="{
  5066. rightW:
  5067. w.userid == userid ||
  5068. tType == 1 ||
  5069. tType == 4 ||
  5070. w.ateacher == userid
  5071. }"
  5072. >
  5073. <span v-if="AIloading[toolIndex][wIndex].sco">
  5074. {{
  5075. AIloading[toolIndex][wIndex].loading
  5076. ? "评分中"
  5077. : AIloading[toolIndex][wIndex].sco + "分"
  5078. }}
  5079. </span>
  5080. <span v-else>
  5081. {{
  5082. AIloading[toolIndex][wIndex].loading
  5083. ? "评分中"
  5084. : "评分"
  5085. }}
  5086. </span>
  5087. </div>
  5088. </el-popover>
  5089. </div>
  5090. <img
  5091. class="deleteImg"
  5092. src="../../assets/deleteworks.png"
  5093. v-if="
  5094. w.userid == userid || tType == 1 || tType == 4
  5095. "
  5096. @click.stop="deleteWorks(w.wid)"
  5097. alt
  5098. />
  5099. </div>
  5100. <div class="workImg" v-if="w.type == 3">
  5101. <img
  5102. style="cursor: pointer"
  5103. :src="video"
  5104. @click="openVideo(w)"
  5105. alt
  5106. />
  5107. <!-- @click="openVideo(w.works)" -->
  5108. <div
  5109. class="answerScore"
  5110. v-if="w.score"
  5111. @click.stop="openScore(w)"
  5112. :class="{
  5113. rightW:
  5114. w.userid == userid ||
  5115. tType == 1 ||
  5116. tType == 4 ||
  5117. w.ateacher == userid
  5118. }"
  5119. >
  5120. {{ JSON.parse(w.score).wScore }}分
  5121. </div>
  5122. <div
  5123. class="answerScore"
  5124. @click.stop="openScore(w)"
  5125. v-else-if="
  5126. courseDetail.userid == userid &&
  5127. courseDetail.state != 6 &&
  5128. chapInfoList[courseType].chapterInfo[0]
  5129. .taskJson[taskCount].eList &&
  5130. chapInfoList[courseType].chapterInfo[0]
  5131. .taskJson[taskCount].eList.length
  5132. "
  5133. :class="{
  5134. rightW:
  5135. w.userid == userid ||
  5136. tType == 1 ||
  5137. tType == 4 ||
  5138. w.ateacher == userid
  5139. }"
  5140. >
  5141. 评分
  5142. </div>
  5143. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5144. <div
  5145. v-else-if="
  5146. (courseDetail.userid == userid ||
  5147. (courseDetail.course_teacher &&
  5148. courseDetail.course_teacher.indexOf(userid) !=
  5149. -1) ||
  5150. (w.userid == userid && sIsOpen)) &&
  5151. courseDetail.state == 6 &&
  5152. ((chapInfoList[courseType].chapterInfo[0]
  5153. .taskJson[taskCount].eList &&
  5154. chapInfoList[courseType].chapterInfo[0]
  5155. .taskJson[taskCount].eList.length) ||
  5156. (tool.eList && tool.eList.length))
  5157. "
  5158. >
  5159. <el-popover
  5160. placement="top"
  5161. width="318"
  5162. :disabled="AIloading[toolIndex][wIndex].loading"
  5163. trigger="hover"
  5164. >
  5165. <markScore
  5166. :loading="AIloading[toolIndex][wIndex].loading"
  5167. :markScoreVisible="markScoreVisible"
  5168. :ref="`markSco${toolIndex}${wIndex}`"
  5169. @updateLoading="updateLoading"
  5170. @updateDocSco="updateDocSco"
  5171. @refreshOther="refreshOther"
  5172. @markScoreDig="markScoreDig"
  5173. :tool="tool"
  5174. :wIndex="wIndex"
  5175. :scoCon="w"
  5176. :toolIndex="toolIndex"
  5177. :key="refreshKey"
  5178. :stage="courseType"
  5179. :task="taskCount"
  5180. :scoTit="
  5181. chapInfoList[courseType].chapterInfo[0]
  5182. .taskJson[taskCount].eList
  5183. "
  5184. >
  5185. </markScore>
  5186. <div
  5187. class="answerScore"
  5188. @click="
  5189. markScoreDig2(
  5190. w.sName,
  5191. worksStudent,
  5192. w.userid,
  5193. toolIndex,
  5194. chapInfoList[courseType].chapterInfo[0]
  5195. .taskJson[taskCount].eList,
  5196. AIloading[toolIndex][wIndex].loading,
  5197. tool
  5198. )
  5199. "
  5200. slot="reference"
  5201. :class="{
  5202. rightW:
  5203. w.userid == userid ||
  5204. tType == 1 ||
  5205. tType == 4 ||
  5206. w.ateacher == userid
  5207. }"
  5208. >
  5209. <span v-if="AIloading[toolIndex][wIndex].sco">
  5210. {{
  5211. AIloading[toolIndex][wIndex].loading
  5212. ? "评分中"
  5213. : AIloading[toolIndex][wIndex].sco + "分"
  5214. }}
  5215. </span>
  5216. <span v-else>
  5217. {{
  5218. AIloading[toolIndex][wIndex].loading
  5219. ? "评分中"
  5220. : "评分"
  5221. }}
  5222. </span>
  5223. </div>
  5224. </el-popover>
  5225. </div>
  5226. <img
  5227. class="deleteImg"
  5228. src="../../assets/deleteworks.png"
  5229. v-if="
  5230. w.userid == userid || tType == 1 || tType == 4
  5231. "
  5232. @click.stop="deleteWorks(w.wid)"
  5233. alt
  5234. />
  5235. </div>
  5236. <div class="comment" style="min-width: 200px">
  5237. <div class="worksName">
  5238. <div
  5239. style="cursor: pointer"
  5240. @click="
  5241. openSname(w.sName, w.wid, toolIndex, w.userid)
  5242. "
  5243. >
  5244. {{ w.sName }}
  5245. </div>
  5246. </div>
  5247. <div class="commentList">
  5248. <div class="commentList">
  5249. <div
  5250. class="commentImg"
  5251. @click="
  5252. isLikes(
  5253. w.wid,
  5254. userid,
  5255. 1,
  5256. null,
  5257. w.isLikes,
  5258. w.sName
  5259. )
  5260. "
  5261. >
  5262. <img
  5263. :src="w.isLikes == true ? likes : noLikes"
  5264. alt=""
  5265. />
  5266. </div>
  5267. <div>{{ w.likesCount }}</div>
  5268. </div>
  5269. <div class="commentList" style="margin-right: 15px">
  5270. <div
  5271. class="commentImg"
  5272. @click="commentOther(w, toolIndex, wIndex)"
  5273. >
  5274. <img
  5275. src="../../assets/icon/comment/comment.png"
  5276. alt=""
  5277. />
  5278. </div>
  5279. <div>{{ w.commentCount }}</div>
  5280. </div>
  5281. </div>
  5282. </div>
  5283. </div>
  5284. </div>
  5285. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5286. 未提交
  5287. </div>
  5288. <div
  5289. class="noWorksS"
  5290. v-if="noWorksS && noWorksS[toolIndex].length"
  5291. >
  5292. <div
  5293. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5294. :key="sIndex"
  5295. class="noWorksName"
  5296. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5297. >
  5298. <el-tooltip
  5299. effect="dark"
  5300. :content="s.student"
  5301. placement="top"
  5302. >
  5303. <span>{{ s.student }}</span>
  5304. </el-tooltip>
  5305. </div>
  5306. </div>
  5307. </div>
  5308. <div
  5309. v-if="
  5310. tType &&
  5311. ((tType == 2 && sIsOpen == true) ||
  5312. tType == 1 ||
  5313. tType == 4) &&
  5314. tool.tool.indexOf(4) != -1 &&
  5315. (tool.askJson[0].answer ||
  5316. tool.askJson[0].answer === 0) &&
  5317. checkJson[toolIndex].length
  5318. "
  5319. class="xuan_right_box"
  5320. >
  5321. <div
  5322. class="tool_right_box"
  5323. v-for="(item, index) in tool.askJson"
  5324. :key="index"
  5325. >
  5326. <div style="width: calc(100% - 30px);">
  5327. <el-tooltip
  5328. effect="light"
  5329. :content="index + 1 + '、' + item.askstitle"
  5330. placement="top"
  5331. popper-class="text_tooltip"
  5332. >
  5333. <div
  5334. style="
  5335. width: calc(100% - 130px);
  5336. display: block;
  5337. white-space: nowrap;
  5338. overflow: hidden;
  5339. text-overflow: ellipsis;
  5340. word-break: break-word;
  5341. cursor: pointer;
  5342. "
  5343. >
  5344. {{ index + 1 + "、" + item.askstitle }}
  5345. </div>
  5346. </el-tooltip>
  5347. </div>
  5348. <div class="right_box_xuan">
  5349. <span>正确率</span>
  5350. <span>{{
  5351. (checkJson[toolIndex][index].right
  5352. ? checkJson[toolIndex][index].right
  5353. : 0) + "%"
  5354. }}</span>
  5355. </div>
  5356. </div>
  5357. </div>
  5358. <div
  5359. class="xuan_right_box"
  5360. style="background: unset; padding: 0 10px"
  5361. v-if="
  5362. tType &&
  5363. ((tType == 2 && sIsOpen == true) ||
  5364. tType == 1 ||
  5365. tType == 4) &&
  5366. tool.tool.indexOf(4) != -1
  5367. "
  5368. >
  5369. <AskStatic
  5370. v-if="
  5371. worksStudent.length &&
  5372. worksStudent[toolIndex].length > 0
  5373. "
  5374. :askJSON="tool"
  5375. :checkJson="checkJson[toolIndex]"
  5376. ></AskStatic>
  5377. </div>
  5378. <div
  5379. v-if="
  5380. tType &&
  5381. ((tType == 2 && sIsOpen == true) ||
  5382. tType == 1 ||
  5383. tType == 4) &&
  5384. tool.tool.indexOf(4) != -1
  5385. "
  5386. class="worksBox"
  5387. >
  5388. <div
  5389. class="zuoyeYulan"
  5390. v-if="
  5391. worksStudent.length &&
  5392. worksStudent[toolIndex].length > 0
  5393. "
  5394. >
  5395. <div class="worksTop">
  5396. <div>作业预览</div>
  5397. <div
  5398. class="corOpen"
  5399. @click="contract(toolIndex)"
  5400. v-if="
  5401. isCloseList[toolIndex].isCloseBoolean &&
  5402. isCloseList[toolIndex].isClose == 0
  5403. "
  5404. >
  5405. 折叠
  5406. </div>
  5407. <div
  5408. class="corOpen"
  5409. @click="contract(toolIndex)"
  5410. v-if="isCloseList[toolIndex].isClose == 1"
  5411. >
  5412. 展开
  5413. </div>
  5414. </div>
  5415. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5416. </div>
  5417. <div>
  5418. <div
  5419. :id="'tool-' + toolIndex"
  5420. :style="{
  5421. height:
  5422. isCloseList[toolIndex].isClose == 1
  5423. ? retrnToolHeight('tool-' + toolIndex)
  5424. : 'auto',
  5425. overflow:
  5426. isCloseList[toolIndex].isClose == 1
  5427. ? 'hidden'
  5428. : 'unset'
  5429. }"
  5430. class="worksDetailBox"
  5431. v-if="
  5432. worksStudent.length &&
  5433. worksStudent[toolIndex].length > 0
  5434. "
  5435. >
  5436. <div
  5437. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5438. :key="wIndex"
  5439. class="isWorksName2"
  5440. @click="
  5441. openTools(4, toolIndex, taskCount, w.works, w.sName)
  5442. "
  5443. >
  5444. {{ w.sName }}
  5445. <img
  5446. class="deleteImg deleteImg2"
  5447. src="../../assets/deleteworks.png"
  5448. v-if="
  5449. w.userid == userid || tType == 1 || tType == 4
  5450. "
  5451. @click.stop="deleteWorks(w.wid)"
  5452. alt
  5453. />
  5454. </div>
  5455. <!-- <div class="works" style="
  5456. width: 200px;
  5457. height: 140px;
  5458. border-radius: 10px;
  5459. box-shadow: 0 0 6px 1px #dfdada;
  5460. overflow: hidden;
  5461. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  5462. <div class="workImg">
  5463. <img src="../../assets/icon/works/noImg.png" @click="
  5464. openTools(
  5465. 4,
  5466. toolIndex,
  5467. taskCount,
  5468. w.works,
  5469. w.sName
  5470. )
  5471. " alt />
  5472. </div>
  5473. <div class="worksName">
  5474. <div>{{ w.sName }}</div>
  5475. <div>{{ w.time }}</div>
  5476. </div>
  5477. </div> -->
  5478. </div>
  5479. </div>
  5480. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5481. 未提交
  5482. </div>
  5483. <div
  5484. class="noWorksS"
  5485. v-if="noWorksS && noWorksS[toolIndex].length"
  5486. >
  5487. <div
  5488. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5489. :key="sIndex"
  5490. class="noWorksName"
  5491. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  5492. >
  5493. <el-tooltip
  5494. effect="dark"
  5495. :content="s.student"
  5496. placement="top"
  5497. >
  5498. <span>{{ s.student }}</span>
  5499. </el-tooltip>
  5500. </div>
  5501. </div>
  5502. </div>
  5503. <div
  5504. v-if="
  5505. tType &&
  5506. ((tType == 2 && sIsOpen == true) ||
  5507. tType == 1 ||
  5508. tType == 4) &&
  5509. tool.tool.indexOf(45) != -1 &&
  5510. (tool.testJson.testJson[0].answer ||
  5511. tool.testJson.testJson[0].answer === 0) &&
  5512. checkJson[toolIndex].length
  5513. "
  5514. class="xuan_right_box"
  5515. >
  5516. <div
  5517. class="tool_right_box"
  5518. v-for="(item, index) in tool.testJson.testJson"
  5519. :key="index"
  5520. >
  5521. <div class="right_box_xuan" style="margin-right: 10px">
  5522. <span>正确率</span>
  5523. <span>{{
  5524. (checkJson[toolIndex][index].right
  5525. ? checkJson[toolIndex][index].right
  5526. : 0) + "%"
  5527. }}</span>
  5528. </div>
  5529. <div style="width: calc(100% - 30px);">
  5530. <el-tooltip
  5531. effect="light"
  5532. :content="index + 1 + '、' + item.teststitle"
  5533. placement="top"
  5534. popper-class="text_tooltip"
  5535. >
  5536. <div
  5537. style="
  5538. width: calc(100% - 130px);
  5539. display: block;
  5540. white-space: nowrap;
  5541. overflow: hidden;
  5542. text-overflow: ellipsis;
  5543. word-break: break-word;
  5544. cursor: pointer;
  5545. "
  5546. >
  5547. {{ index + 1 + "、" + item.teststitle }}
  5548. </div>
  5549. </el-tooltip>
  5550. </div>
  5551. </div>
  5552. </div>
  5553. <div
  5554. class="xuan_right_box"
  5555. style="background: unset; padding: 0 10px; width: 91.5%"
  5556. v-if="
  5557. tType &&
  5558. ((tType == 2 && sIsOpen == true) ||
  5559. tType == 1 ||
  5560. tType == 4) &&
  5561. tool.tool.indexOf(45) != -1
  5562. "
  5563. >
  5564. <AskStatic2
  5565. v-if="
  5566. worksStudent.length &&
  5567. worksStudent[toolIndex].length > 0
  5568. "
  5569. :askJSON="tool"
  5570. :checkJson="checkJson[toolIndex]"
  5571. ></AskStatic2>
  5572. </div>
  5573. <div
  5574. v-if="
  5575. tType &&
  5576. ((tType == 2 && sIsOpen == true) ||
  5577. tType == 1 ||
  5578. tType == 4) &&
  5579. tool.tool.indexOf(45) != -1
  5580. "
  5581. class="worksBox"
  5582. >
  5583. <div
  5584. class="zuoyeYulan"
  5585. v-if="
  5586. worksStudent.length &&
  5587. worksStudent[toolIndex].length > 0
  5588. "
  5589. >
  5590. <div class="worksTop">
  5591. <div>作业预览</div>
  5592. <div
  5593. class="corOpen"
  5594. @click="contract(toolIndex)"
  5595. v-if="
  5596. isCloseList[toolIndex].isCloseBoolean &&
  5597. isCloseList[toolIndex].isClose == 0
  5598. "
  5599. >
  5600. 折叠
  5601. </div>
  5602. <div
  5603. class="corOpen"
  5604. @click="contract(toolIndex)"
  5605. v-if="isCloseList[toolIndex].isClose == 1"
  5606. >
  5607. 展开
  5608. </div>
  5609. </div>
  5610. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5611. </div>
  5612. <div>
  5613. <div
  5614. :id="'tool-' + toolIndex"
  5615. :style="{
  5616. height:
  5617. isCloseList[toolIndex].isClose == 1
  5618. ? retrnToolHeight('tool-' + toolIndex)
  5619. : 'auto',
  5620. overflow:
  5621. isCloseList[toolIndex].isClose == 1
  5622. ? 'hidden'
  5623. : 'unset'
  5624. }"
  5625. class="worksDetailBox"
  5626. v-if="
  5627. worksStudent.length &&
  5628. worksStudent[toolIndex].length > 0
  5629. "
  5630. >
  5631. <div
  5632. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5633. :key="wIndex"
  5634. class="isWorksName2"
  5635. @click="
  5636. openTools(
  5637. 45,
  5638. toolIndex,
  5639. taskCount,
  5640. w.works,
  5641. w.sName
  5642. )
  5643. "
  5644. >
  5645. {{ w.sName }}
  5646. <img
  5647. class="deleteImg deleteImg2"
  5648. src="../../assets/deleteworks.png"
  5649. v-if="
  5650. w.userid == userid || tType == 1 || tType == 4
  5651. "
  5652. @click.stop="deleteWorks(w.wid)"
  5653. alt
  5654. />
  5655. </div>
  5656. </div>
  5657. </div>
  5658. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5659. 未提交
  5660. </div>
  5661. <div
  5662. class="noWorksS"
  5663. v-if="noWorksS && noWorksS[toolIndex].length"
  5664. >
  5665. <div
  5666. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5667. :key="sIndex"
  5668. class="noWorksName"
  5669. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  5670. >
  5671. <el-tooltip
  5672. effect="dark"
  5673. :content="s.student"
  5674. placement="top"
  5675. >
  5676. <span>{{ s.student }}</span>
  5677. </el-tooltip>
  5678. </div>
  5679. </div>
  5680. </div>
  5681. <div
  5682. v-if="
  5683. tType &&
  5684. ((tType == 2 && sIsOpen == true) ||
  5685. tType == 1 ||
  5686. tType == 4) &&
  5687. tool.tool.indexOf(69) != -1
  5688. "
  5689. class="worksBox"
  5690. >
  5691. <div
  5692. class="zuoyeYulan"
  5693. v-if="
  5694. worksStudent.length &&
  5695. worksStudent[toolIndex].length > 0
  5696. "
  5697. >
  5698. <div class="worksTop">
  5699. <div>作业预览</div>
  5700. <div
  5701. class="corOpen"
  5702. @click="contract(toolIndex)"
  5703. v-if="
  5704. isCloseList[toolIndex].isCloseBoolean &&
  5705. isCloseList[toolIndex].isClose == 0
  5706. "
  5707. >
  5708. 折叠
  5709. </div>
  5710. <div
  5711. class="corOpen"
  5712. @click="contract(toolIndex)"
  5713. v-if="isCloseList[toolIndex].isClose == 1"
  5714. >
  5715. 展开
  5716. </div>
  5717. </div>
  5718. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5719. </div>
  5720. <div>
  5721. <div
  5722. :id="'tool-' + toolIndex"
  5723. :style="{
  5724. height:
  5725. isCloseList[toolIndex].isClose == 1
  5726. ? retrnToolHeight('tool-' + toolIndex)
  5727. : 'auto',
  5728. overflow:
  5729. isCloseList[toolIndex].isClose == 1
  5730. ? 'hidden'
  5731. : 'unset'
  5732. }"
  5733. class="worksDetailBox"
  5734. v-if="
  5735. worksStudent.length &&
  5736. worksStudent[toolIndex].length > 0
  5737. "
  5738. >
  5739. <div
  5740. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5741. :key="wIndex"
  5742. class="isWorksName2"
  5743. style="width: 160px;height: 65px;line-height: 65px;"
  5744. @click="
  5745. openTools(
  5746. 69,
  5747. toolIndex,
  5748. taskCount,
  5749. w.works,
  5750. w.sName,
  5751. w.wid
  5752. )
  5753. "
  5754. >
  5755. {{ w.sName }}
  5756. <img
  5757. class="deleteImg1"
  5758. src="../../assets/evaEnglish.png"
  5759. @click.stop="openEnglishEva(w.wid, toolIndex)"
  5760. alt
  5761. v-if="
  5762. (courseDetail &&
  5763. (courseDetail.userid == userid ||
  5764. (courseDetail.course_teacher &&
  5765. courseDetail.course_teacher.indexOf(
  5766. userid
  5767. ) != -1))) ||
  5768. w.aiCode || w.teacherCode
  5769. "
  5770. />
  5771. <img
  5772. class="deleteImg deleteImg2"
  5773. src="../../assets/deleteworks.png"
  5774. v-if="
  5775. w.userid == userid || tType == 1 || tType == 4
  5776. "
  5777. @click.stop="deleteWorks(w.wid)"
  5778. alt
  5779. />
  5780. </div>
  5781. </div>
  5782. </div>
  5783. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5784. 未提交
  5785. </div>
  5786. <div
  5787. class="noWorksS"
  5788. v-if="noWorksS && noWorksS[toolIndex].length"
  5789. >
  5790. <div
  5791. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5792. :key="sIndex"
  5793. class="noWorksName"
  5794. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  5795. >
  5796. <el-tooltip
  5797. effect="dark"
  5798. :content="s.student"
  5799. placement="top"
  5800. >
  5801. <span>{{ s.student }}</span>
  5802. </el-tooltip>
  5803. </div>
  5804. </div>
  5805. </div>
  5806. <div
  5807. v-if="
  5808. tType &&
  5809. ((tType == 2 && sIsOpen == true) ||
  5810. tType == 1 ||
  5811. tType == 4) &&
  5812. tool.tool.indexOf(15) != -1
  5813. "
  5814. class="worksBox"
  5815. >
  5816. <div
  5817. class="zuoyeYulan"
  5818. v-if="
  5819. (worksStudent.length &&
  5820. worksStudent[toolIndex].length > 0) ||
  5821. (courseGroup.group && courseGroup.group.length)
  5822. "
  5823. >
  5824. <div class="worksTop">
  5825. <div>作业预览</div>
  5826. <div
  5827. class="corOpen"
  5828. @click="contract(toolIndex)"
  5829. v-if="
  5830. isCloseList[toolIndex].isCloseBoolean &&
  5831. isCloseList[toolIndex].isClose == 0
  5832. "
  5833. >
  5834. 折叠
  5835. </div>
  5836. <div
  5837. class="corOpen"
  5838. @click="contract(toolIndex)"
  5839. v-if="isCloseList[toolIndex].isClose == 1"
  5840. >
  5841. 展开
  5842. </div>
  5843. </div>
  5844. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5845. </div>
  5846. <div
  5847. class="group_workBox"
  5848. v-for="(g, gindex) in courseGroup.group"
  5849. :key="gindex"
  5850. >
  5851. <div class="group_box">
  5852. <div class="group_title">
  5853. <el-tooltip
  5854. class="item"
  5855. effect="light"
  5856. :content="g.name"
  5857. placement="top"
  5858. >
  5859. <div class="group_name">{{ g.name }}</div>
  5860. </el-tooltip>
  5861. </div>
  5862. <div
  5863. class="group_work"
  5864. v-if="
  5865. g.works &&
  5866. g.works.length &&
  5867. g.works[toolIndex].length
  5868. "
  5869. >
  5870. <div
  5871. class="works"
  5872. v-for="(w, wIndex) in g.works[toolIndex]"
  5873. :key="wIndex"
  5874. >
  5875. <div
  5876. class="workImg"
  5877. style="
  5878. border-radius: 15px;
  5879. box-shadow: 0px 0px 5px 5px #eee;
  5880. "
  5881. >
  5882. <div
  5883. class="answerBg"
  5884. style="border-radius: 15px 15px 0 0"
  5885. @click="
  5886. commentOther(w, toolIndex, wIndex, null, g.id)
  5887. "
  5888. >
  5889. <div class="answerContent">
  5890. {{ JSON.parse(w.works)[0].answer }}
  5891. </div>
  5892. <div
  5893. class="answerScore"
  5894. v-if="w.score"
  5895. @click.stop="openScore(w)"
  5896. :class="{
  5897. rightW:
  5898. w.userid == userid ||
  5899. tType == 1 ||
  5900. tType == 4
  5901. }"
  5902. >
  5903. {{ JSON.parse(w.score).wScore }}分
  5904. </div>
  5905. <div
  5906. class="answerScore"
  5907. @click.stop="openScore(w)"
  5908. v-else-if="
  5909. courseDetail.userid == userid &&
  5910. courseDetail.state != 6 &&
  5911. chapInfoList[courseType].chapterInfo[0]
  5912. .taskJson[taskCount].eList &&
  5913. chapInfoList[courseType].chapterInfo[0]
  5914. .taskJson[taskCount].eList.length
  5915. "
  5916. :class="{
  5917. rightW:
  5918. w.userid == userid ||
  5919. tType == 1 ||
  5920. tType == 4
  5921. }"
  5922. >
  5923. 评分
  5924. </div>
  5925. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5926. <div
  5927. v-else-if="
  5928. (courseDetail.userid == userid ||
  5929. (courseDetail.course_teacher &&
  5930. courseDetail.course_teacher.indexOf(
  5931. userid
  5932. ) != -1) ||
  5933. (w.userid == userid && sIsOpen)) &&
  5934. courseDetail.state == 6 &&
  5935. ((chapInfoList[courseType].chapterInfo[0]
  5936. .taskJson[taskCount].eList &&
  5937. chapInfoList[courseType].chapterInfo[0]
  5938. .taskJson[taskCount].eList.length) ||
  5939. (tool.eList && tool.eList.length))
  5940. "
  5941. >
  5942. <el-popover
  5943. placement="top"
  5944. width="318"
  5945. :disabled="
  5946. AIloading[toolIndex][wIndex].loading
  5947. "
  5948. trigger="hover"
  5949. >
  5950. <markScore
  5951. :loading="
  5952. AIloading[toolIndex][wIndex].loading
  5953. "
  5954. :markScoreVisible="markScoreVisible"
  5955. :ref="`markSco${toolIndex}${wIndex}`"
  5956. @updateLoading="updateLoading"
  5957. @updateDocSco="updateDocSco"
  5958. @refreshOther="refreshOther"
  5959. @markScoreDig="markScoreDig"
  5960. :tool="tool"
  5961. :wIndex="wIndex"
  5962. :scoCon="w"
  5963. :toolIndex="toolIndex"
  5964. :key="refreshKey"
  5965. :stage="courseType"
  5966. :task="taskCount"
  5967. :scoTit="
  5968. chapInfoList[courseType].chapterInfo[0]
  5969. .taskJson[taskCount].eList
  5970. "
  5971. >
  5972. </markScore>
  5973. <div
  5974. class="answerScore"
  5975. @click.stop="
  5976. markScoreDig2(
  5977. w.sName,
  5978. worksStudent,
  5979. w.userid,
  5980. toolIndex,
  5981. chapInfoList[courseType]
  5982. .chapterInfo[0].taskJson[taskCount]
  5983. .eList,
  5984. AIloading[toolIndex][wIndex].loading,
  5985. tool
  5986. )
  5987. "
  5988. slot="reference"
  5989. :class="{
  5990. rightW:
  5991. w.userid == userid ||
  5992. tType == 1 ||
  5993. tType == 4 ||
  5994. w.ateacher == userid
  5995. }"
  5996. >
  5997. <span
  5998. v-if="AIloading[toolIndex][wIndex].sco"
  5999. >
  6000. {{
  6001. AIloading[toolIndex][wIndex].loading
  6002. ? "评分中"
  6003. : AIloading[toolIndex][wIndex].sco +
  6004. "分"
  6005. }}
  6006. </span>
  6007. <span v-else>
  6008. {{
  6009. AIloading[toolIndex][wIndex].loading
  6010. ? "评分中"
  6011. : "评分"
  6012. }}
  6013. </span>
  6014. </div>
  6015. </el-popover>
  6016. </div>
  6017. <img
  6018. class="deleteImg"
  6019. src="../../assets/deleteworks.png"
  6020. v-if="
  6021. w.userid == userid ||
  6022. tType == 1 ||
  6023. tType == 4
  6024. "
  6025. @click.stop="deleteWorks(w.wid)"
  6026. alt
  6027. />
  6028. </div>
  6029. <div class="comment">
  6030. <div class="worksName">
  6031. <div>{{ w.sName }}</div>
  6032. </div>
  6033. <div class="commentList">
  6034. <div
  6035. class="commentImg"
  6036. @click="
  6037. isLikes(
  6038. w.wid,
  6039. userid,
  6040. 1,
  6041. null,
  6042. w.isLikes,
  6043. w.sName
  6044. )
  6045. "
  6046. >
  6047. <img
  6048. :src="w.isLikes == true ? likes : noLikes"
  6049. alt=""
  6050. />
  6051. </div>
  6052. <div>{{ w.likesCount }}</div>
  6053. </div>
  6054. <div
  6055. class="commentList"
  6056. style="margin-right: 15px"
  6057. >
  6058. <div
  6059. class="commentImg"
  6060. @click="
  6061. commentOther(
  6062. w,
  6063. toolIndex,
  6064. wIndex,
  6065. null,
  6066. g.id
  6067. )
  6068. "
  6069. >
  6070. <img
  6071. src="../../assets/icon/comment/comment.png"
  6072. alt=""
  6073. />
  6074. </div>
  6075. <div>{{ w.commentCount }}</div>
  6076. </div>
  6077. </div>
  6078. </div>
  6079. </div>
  6080. </div>
  6081. <div class="group_work" v-else>暂无提交作业</div>
  6082. </div>
  6083. </div>
  6084. <div
  6085. :id="'tool-' + toolIndex"
  6086. :style="{
  6087. height:
  6088. isCloseList[toolIndex].isClose == 1
  6089. ? retrnToolHeight('tool-' + toolIndex)
  6090. : 'auto',
  6091. overflow:
  6092. isCloseList[toolIndex].isClose == 1
  6093. ? 'hidden'
  6094. : 'unset'
  6095. }"
  6096. class="worksDetailBox"
  6097. v-if="
  6098. worksStudent.length &&
  6099. worksStudent[toolIndex].length > 0
  6100. "
  6101. >
  6102. <div
  6103. class="works"
  6104. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6105. :key="wIndex"
  6106. >
  6107. <div
  6108. class="workImg"
  6109. style="
  6110. border-radius: 15px;
  6111. box-shadow: 0px 0px 5px 5px #eee;
  6112. "
  6113. >
  6114. <!-- <img
  6115. src="../../assets/icon/works/noImg.png"
  6116. @click="openTools(15, toolIndex, taskCount, w.works)"
  6117. alt=""
  6118. />-->
  6119. <div
  6120. class="answerBg"
  6121. style="border-radius: 15px 15px 0 0"
  6122. @click="commentOther(w, toolIndex, wIndex)"
  6123. >
  6124. <!-- <div>{{ w.sName }}</div> -->
  6125. <div class="answerContent">
  6126. {{ JSON.parse(w.works)[0].answer }}
  6127. </div>
  6128. <div
  6129. class="answerScore"
  6130. v-if="w.score"
  6131. @click.stop="openScore(w)"
  6132. :class="{
  6133. rightW:
  6134. w.userid == userid || tType == 1 || tType == 4
  6135. }"
  6136. >
  6137. {{ JSON.parse(w.score).wScore }}分
  6138. </div>
  6139. <div
  6140. class="answerScore"
  6141. @click.stop="openScore(w)"
  6142. v-else-if="
  6143. courseDetail.userid == userid &&
  6144. courseDetail.state != 6 &&
  6145. chapInfoList[courseType].chapterInfo[0]
  6146. .taskJson[taskCount].eList &&
  6147. chapInfoList[courseType].chapterInfo[0]
  6148. .taskJson[taskCount].eList.length
  6149. "
  6150. :class="{
  6151. rightW:
  6152. w.userid == userid || tType == 1 || tType == 4
  6153. }"
  6154. >
  6155. 评分
  6156. </div>
  6157. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  6158. <div
  6159. v-else-if="
  6160. (courseDetail.userid == userid ||
  6161. (courseDetail.course_teacher &&
  6162. courseDetail.course_teacher.indexOf(
  6163. userid
  6164. ) != -1) ||
  6165. (w.userid == userid && sIsOpen)) &&
  6166. courseDetail.state == 6 &&
  6167. ((chapInfoList[courseType].chapterInfo[0]
  6168. .taskJson[taskCount].eList &&
  6169. chapInfoList[courseType].chapterInfo[0]
  6170. .taskJson[taskCount].eList.length) ||
  6171. (tool.eList && tool.eList.length))
  6172. "
  6173. >
  6174. <el-popover
  6175. placement="top"
  6176. width="318"
  6177. :disabled="AIloading[toolIndex][wIndex].loading"
  6178. trigger="hover"
  6179. >
  6180. <markScore
  6181. :loading="
  6182. AIloading[toolIndex][wIndex].loading
  6183. "
  6184. :markScoreVisible="markScoreVisible"
  6185. :ref="`markSco${toolIndex}${wIndex}`"
  6186. @updateLoading="updateLoading"
  6187. @updateDocSco="updateDocSco"
  6188. @refreshOther="refreshOther"
  6189. @markScoreDig="markScoreDig"
  6190. :tool="tool"
  6191. :wIndex="wIndex"
  6192. :scoCon="w"
  6193. :toolIndex="toolIndex"
  6194. :key="refreshKey"
  6195. :stage="courseType"
  6196. :task="taskCount"
  6197. :scoTit="
  6198. chapInfoList[courseType].chapterInfo[0]
  6199. .taskJson[taskCount].eList
  6200. "
  6201. >
  6202. </markScore>
  6203. <div
  6204. class="answerScore"
  6205. @click.stop="
  6206. markScoreDig2(
  6207. w.sName,
  6208. worksStudent,
  6209. w.userid,
  6210. toolIndex,
  6211. chapInfoList[courseType].chapterInfo[0]
  6212. .taskJson[taskCount].eList,
  6213. AIloading[toolIndex][wIndex].loading,
  6214. tool
  6215. )
  6216. "
  6217. slot="reference"
  6218. :class="{
  6219. rightW:
  6220. w.userid == userid ||
  6221. tType == 1 ||
  6222. tType == 4 ||
  6223. w.ateacher == userid
  6224. }"
  6225. >
  6226. <span v-if="AIloading[toolIndex][wIndex].sco">
  6227. {{
  6228. AIloading[toolIndex][wIndex].loading
  6229. ? "评分中"
  6230. : AIloading[toolIndex][wIndex].sco +
  6231. "分"
  6232. }}
  6233. </span>
  6234. <span v-else>
  6235. {{
  6236. AIloading[toolIndex][wIndex].loading
  6237. ? "评分中"
  6238. : "评分"
  6239. }}
  6240. </span>
  6241. </div>
  6242. </el-popover>
  6243. </div>
  6244. <img
  6245. class="deleteImg"
  6246. src="../../assets/deleteworks.png"
  6247. v-if="
  6248. w.userid == userid || tType == 1 || tType == 4
  6249. "
  6250. @click.stop="deleteWorks(w.wid)"
  6251. alt
  6252. />
  6253. </div>
  6254. <div class="comment">
  6255. <div class="worksName">
  6256. <div>{{ w.sName }}</div>
  6257. </div>
  6258. <div class="commentList">
  6259. <div
  6260. class="commentImg"
  6261. @click="
  6262. isLikes(
  6263. w.wid,
  6264. userid,
  6265. 1,
  6266. null,
  6267. w.isLikes,
  6268. w.sName
  6269. )
  6270. "
  6271. >
  6272. <img
  6273. :src="w.isLikes == true ? likes : noLikes"
  6274. alt=""
  6275. />
  6276. </div>
  6277. <div>{{ w.likesCount }}</div>
  6278. </div>
  6279. <div class="commentList" style="margin-right: 15px">
  6280. <div
  6281. class="commentImg"
  6282. @click="commentOther(w, toolIndex, wIndex)"
  6283. >
  6284. <img
  6285. src="../../assets/icon/comment/comment.png"
  6286. alt=""
  6287. />
  6288. </div>
  6289. <div>{{ w.commentCount }}</div>
  6290. </div>
  6291. </div>
  6292. </div>
  6293. </div>
  6294. </div>
  6295. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6296. 未提交
  6297. </div>
  6298. <div
  6299. class="noWorksS"
  6300. v-if="noWorksS && noWorksS[toolIndex].length"
  6301. >
  6302. <div
  6303. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6304. :key="sIndex"
  6305. class="noWorksName"
  6306. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6307. >
  6308. <el-tooltip
  6309. effect="dark"
  6310. :content="s.student"
  6311. placement="top"
  6312. >
  6313. <span>{{ s.student }}</span>
  6314. </el-tooltip>
  6315. </div>
  6316. </div>
  6317. </div>
  6318. <div
  6319. v-if="
  6320. tType &&
  6321. ((tType == 2 && sIsOpen == true) ||
  6322. tType == 1 ||
  6323. tType == 4) &&
  6324. tool.tool.indexOf(1) != -1
  6325. "
  6326. class="worksBox"
  6327. >
  6328. <div
  6329. class="zuoyeYulan"
  6330. style="display: flex;justify-content: space-between;align-items: center;"
  6331. v-if="
  6332. (worksStudent.length &&
  6333. worksStudent[toolIndex].length > 0) ||
  6334. (courseGroup.group && courseGroup.group.length)
  6335. "
  6336. >
  6337. <div class="worksTop">
  6338. <div>作业预览</div>
  6339. <div
  6340. class="corOpen"
  6341. @click="contract(toolIndex)"
  6342. v-if="
  6343. isCloseList[toolIndex].isCloseBoolean &&
  6344. isCloseList[toolIndex].isClose == 0
  6345. "
  6346. >
  6347. 折叠
  6348. </div>
  6349. <div
  6350. class="corOpen"
  6351. @click="contract(toolIndex)"
  6352. v-if="isCloseList[toolIndex].isClose == 1"
  6353. >
  6354. 展开
  6355. </div>
  6356. </div>
  6357. <div
  6358. style="display: flex;"
  6359. v-if="
  6360. (courseDetail.userid == userid ||
  6361. (courseDetail.course_teacher &&
  6362. courseDetail.course_teacher.indexOf(userid) !=
  6363. -1)) &&
  6364. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6365. taskCount
  6366. ].eList &&
  6367. chapInfoList[courseType].chapterInfo[0].taskJson[
  6368. taskCount
  6369. ].eList.length) ||
  6370. (tool.eList && tool.eList.length)) &&
  6371. courseDetail.state == 6
  6372. "
  6373. >
  6374. <div
  6375. style="margin-right:10px"
  6376. class="ScoreBtn"
  6377. @click="
  6378. resetLoopEva(
  6379. worksStudent[toolIndex],
  6380. chapInfoList[courseType].chapterInfo[0].taskJson[
  6381. taskCount
  6382. ].eList,
  6383. courseType,
  6384. taskCount,
  6385. toolIndex,
  6386. tool.toolDetail,
  6387. worksStudent
  6388. )
  6389. "
  6390. >
  6391. 一键重置
  6392. </div>
  6393. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6394. <img
  6395. src="../../assets/icon/newIcons/rootImg.png"
  6396. alt=""
  6397. />
  6398. AI评分
  6399. </div>
  6400. <div
  6401. class="ScoreBtn"
  6402. v-else-if="!loopLoading[toolIndex].loading"
  6403. @click="
  6404. loopEva(
  6405. worksStudent[toolIndex],
  6406. chapInfoList[courseType].chapterInfo[0].taskJson[
  6407. taskCount
  6408. ].eList,
  6409. courseType,
  6410. taskCount,
  6411. toolIndex,
  6412. tool.toolDetail,
  6413. chapInfoList[courseType].chapterInfo[0].taskJson[
  6414. taskCount
  6415. ].taskDetail,
  6416. tool
  6417. )
  6418. "
  6419. >
  6420. <img
  6421. src="../../assets/icon/newIcons/rootImg.png"
  6422. alt=""
  6423. />
  6424. AI评分
  6425. </div>
  6426. <div class="ScoreBtn" v-else>
  6427. <img
  6428. src="../../assets/icon/newIcons/rootImg.png"
  6429. alt=""
  6430. />
  6431. 正在评分
  6432. </div>
  6433. </div>
  6434. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6435. </div>
  6436. <div
  6437. class="group_workBox"
  6438. v-for="(g, gindex) in courseGroup.group"
  6439. :key="gindex"
  6440. >
  6441. <div class="group_box">
  6442. <div class="group_title">
  6443. <el-tooltip
  6444. class="item"
  6445. effect="light"
  6446. :content="g.name"
  6447. placement="top"
  6448. >
  6449. <div class="group_name">{{ g.name }}</div>
  6450. </el-tooltip>
  6451. </div>
  6452. <div
  6453. class="group_work"
  6454. v-if="
  6455. g.works &&
  6456. g.works.length &&
  6457. g.works[toolIndex].length
  6458. "
  6459. >
  6460. <div
  6461. class="works"
  6462. style="
  6463. width: 200px;
  6464. height: 140px;
  6465. margin: 10px 10px 10px 0;
  6466. border-radius: 15px;
  6467. box-shadow: 0 0 6px 1px #dfdada;
  6468. "
  6469. v-for="(w, wIndex) in g.works[toolIndex]"
  6470. :key="wIndex"
  6471. :class="w.type == 1 ? 'isTypeOne' : ''"
  6472. >
  6473. <div class="workImg">
  6474. <img
  6475. :src="w.works"
  6476. @click="previewImg(w.works, w)"
  6477. alt
  6478. />
  6479. <div
  6480. class="answerScore"
  6481. v-if="w.score"
  6482. @click.stop="openScore(w)"
  6483. :class="{
  6484. rightW:
  6485. w.userid == userid ||
  6486. tType == 1 ||
  6487. tType == 4
  6488. }"
  6489. >
  6490. {{ JSON.parse(w.score).wScore }}分
  6491. </div>
  6492. <div
  6493. class="answerScore"
  6494. @click.stop="openScore(w)"
  6495. v-else-if="courseDetail.userid == userid"
  6496. :class="{
  6497. rightW:
  6498. w.userid == userid ||
  6499. tType == 1 ||
  6500. tType == 4
  6501. }"
  6502. >
  6503. 评分
  6504. </div>
  6505. <img
  6506. class="deleteImg"
  6507. src="../../assets/deleteworks.png"
  6508. v-if="
  6509. w.userid == userid || tType == 1 || tType == 4
  6510. "
  6511. @click.stop="deleteWorks(w.wid)"
  6512. alt
  6513. />
  6514. </div>
  6515. <div class="comment" style="min-width: 200px">
  6516. <div class="worksName">
  6517. <div>{{ w.sName }}</div>
  6518. </div>
  6519. <div class="commentList">
  6520. <div class="commentList">
  6521. <div
  6522. class="commentImg"
  6523. @click="
  6524. isLikes(
  6525. w.wid,
  6526. userid,
  6527. 1,
  6528. null,
  6529. w.isLikes,
  6530. w.sName
  6531. )
  6532. "
  6533. >
  6534. <img
  6535. :src="w.isLikes == true ? likes : noLikes"
  6536. alt=""
  6537. />
  6538. </div>
  6539. <div>{{ w.likesCount }}</div>
  6540. </div>
  6541. <div
  6542. class="commentList"
  6543. style="margin-right: 15px"
  6544. >
  6545. <div
  6546. class="commentImg"
  6547. @click="
  6548. commentOther(
  6549. w,
  6550. toolIndex,
  6551. wIndex,
  6552. null,
  6553. g.id
  6554. )
  6555. "
  6556. >
  6557. <img
  6558. src="../../assets/icon/comment/comment.png"
  6559. alt=""
  6560. />
  6561. </div>
  6562. <div>{{ w.commentCount }}</div>
  6563. </div>
  6564. </div>
  6565. </div>
  6566. </div>
  6567. </div>
  6568. <div class="group_work" v-else>暂无提交作业</div>
  6569. </div>
  6570. </div>
  6571. <div
  6572. :id="'tool-' + toolIndex"
  6573. :style="{
  6574. height:
  6575. isCloseList[toolIndex].isClose == 1
  6576. ? retrnToolHeight('tool-' + toolIndex)
  6577. : 'auto',
  6578. overflow:
  6579. isCloseList[toolIndex].isClose == 1
  6580. ? 'hidden'
  6581. : 'unset'
  6582. }"
  6583. class="worksDetailBox"
  6584. v-if="
  6585. worksStudent.length &&
  6586. worksStudent[toolIndex].length > 0
  6587. "
  6588. >
  6589. <div
  6590. class="works"
  6591. style="
  6592. width: 200px;
  6593. height: 140px;
  6594. margin: 10px 10px 10px 0;
  6595. border-radius: 15px;
  6596. box-shadow: 0 0 6px 1px #dfdada;
  6597. "
  6598. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6599. :key="wIndex"
  6600. >
  6601. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6602. <div class="workImg">
  6603. <img
  6604. :src="w.works"
  6605. @click="previewImg(w.works, w)"
  6606. alt
  6607. />
  6608. <div
  6609. class="answerScore"
  6610. v-if="w.score"
  6611. @click.stop="openScore(w)"
  6612. :class="{
  6613. rightW:
  6614. w.userid == userid || tType == 1 || tType == 4
  6615. }"
  6616. >
  6617. {{ JSON.parse(w.score).wScore }}分
  6618. </div>
  6619. <div
  6620. class="answerScore"
  6621. @click.stop="openScore(w)"
  6622. v-else-if="
  6623. courseDetail.userid == userid &&
  6624. courseDetail.state != 6 &&
  6625. chapInfoList[courseType].chapterInfo[0]
  6626. .taskJson[taskCount].eList &&
  6627. chapInfoList[courseType].chapterInfo[0]
  6628. .taskJson[taskCount].eList.length
  6629. "
  6630. :class="{
  6631. rightW:
  6632. w.userid == userid || tType == 1 || tType == 4
  6633. }"
  6634. >
  6635. 评分
  6636. </div>
  6637. <div
  6638. v-else-if="
  6639. (courseDetail.userid == userid ||
  6640. (courseDetail.course_teacher &&
  6641. courseDetail.course_teacher.indexOf(userid) !=
  6642. -1) ||
  6643. (courseDetail.course_teacher &&
  6644. courseDetail.course_teacher.indexOf(userid) !=
  6645. -1) ||
  6646. (courseDetail.course_teacher &&
  6647. courseDetail.course_teacher.indexOf(userid) !=
  6648. -1) ||
  6649. (w.userid == userid && sIsOpen)) &&
  6650. courseDetail.state == 6 &&
  6651. ((chapInfoList[courseType].chapterInfo[0]
  6652. .taskJson[taskCount].eList &&
  6653. chapInfoList[courseType].chapterInfo[0]
  6654. .taskJson[taskCount].eList.length) ||
  6655. (tool.eList && tool.eList.length))
  6656. "
  6657. >
  6658. <el-popover
  6659. placement="top"
  6660. width="318"
  6661. :disabled="AIloading[toolIndex][wIndex].loading"
  6662. trigger="hover"
  6663. >
  6664. <markScore
  6665. :loading="AIloading[toolIndex][wIndex].loading"
  6666. :markScoreVisible="markScoreVisible"
  6667. :ref="`markSco${toolIndex}${wIndex}`"
  6668. @updateLoading="updateLoading"
  6669. @updateDocSco="updateDocSco"
  6670. @refreshOther="refreshOther"
  6671. @markScoreDig="markScoreDig"
  6672. :tool="tool"
  6673. :wIndex="wIndex"
  6674. :scoCon="w"
  6675. :toolIndex="toolIndex"
  6676. :key="refreshKey"
  6677. :stage="courseType"
  6678. :task="taskCount"
  6679. :scoTit="
  6680. chapInfoList[courseType].chapterInfo[0]
  6681. .taskJson[taskCount].eList
  6682. "
  6683. >
  6684. </markScore>
  6685. <div
  6686. class="answerScore"
  6687. @click="
  6688. markScoreDig2(
  6689. w.sName,
  6690. worksStudent,
  6691. w.userid,
  6692. toolIndex,
  6693. chapInfoList[courseType].chapterInfo[0]
  6694. .taskJson[taskCount].eList,
  6695. AIloading[toolIndex][wIndex].loading,
  6696. tool
  6697. )
  6698. "
  6699. slot="reference"
  6700. :class="{
  6701. rightW:
  6702. w.userid == userid ||
  6703. tType == 1 ||
  6704. tType == 4 ||
  6705. w.ateacher == userid
  6706. }"
  6707. >
  6708. <span v-if="AIloading[toolIndex][wIndex].sco">
  6709. {{
  6710. AIloading[toolIndex][wIndex].loading
  6711. ? "评分中"
  6712. : AIloading[toolIndex][wIndex].sco + "分"
  6713. }}
  6714. </span>
  6715. <span v-else>
  6716. {{
  6717. AIloading[toolIndex][wIndex].loading
  6718. ? "评分中"
  6719. : "评分"
  6720. }}
  6721. </span>
  6722. </div>
  6723. </el-popover>
  6724. </div>
  6725. <img
  6726. class="deleteImg"
  6727. src="../../assets/deleteworks.png"
  6728. v-if="
  6729. w.userid == userid || tType == 1 || tType == 4
  6730. "
  6731. @click.stop="deleteWorks(w.wid)"
  6732. alt
  6733. />
  6734. </div>
  6735. <div class="comment" style="min-width: 200px">
  6736. <div class="worksName">
  6737. <div>{{ w.sName }}</div>
  6738. </div>
  6739. <div class="commentList">
  6740. <div class="commentList">
  6741. <div
  6742. class="commentImg"
  6743. @click="
  6744. isLikes(
  6745. w.wid,
  6746. userid,
  6747. 1,
  6748. null,
  6749. w.isLikes,
  6750. w.sName
  6751. )
  6752. "
  6753. >
  6754. <img
  6755. :src="w.isLikes == true ? likes : noLikes"
  6756. alt=""
  6757. />
  6758. </div>
  6759. <div>{{ w.likesCount }}</div>
  6760. </div>
  6761. <div class="commentList" style="margin-right: 15px">
  6762. <div
  6763. class="commentImg"
  6764. @click="commentOther(w, toolIndex, wIndex)"
  6765. >
  6766. <img
  6767. src="../../assets/icon/comment/comment.png"
  6768. alt=""
  6769. />
  6770. </div>
  6771. <div>{{ w.commentCount }}</div>
  6772. </div>
  6773. </div>
  6774. </div>
  6775. </div>
  6776. </div>
  6777. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6778. 未提交
  6779. </div>
  6780. <div
  6781. class="noWorksS"
  6782. v-if="noWorksS && noWorksS[toolIndex].length"
  6783. >
  6784. <div
  6785. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6786. :key="sIndex"
  6787. class="noWorksName"
  6788. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  6789. >
  6790. <el-tooltip
  6791. effect="dark"
  6792. :content="s.student"
  6793. placement="top"
  6794. >
  6795. <span>{{ s.student }}</span>
  6796. </el-tooltip>
  6797. </div>
  6798. </div>
  6799. </div>
  6800. <div
  6801. v-if="
  6802. tType &&
  6803. ((tType == 2 && sIsOpen == true) ||
  6804. tType == 1 ||
  6805. tType == 4) &&
  6806. tool.tool.indexOf(3) != -1
  6807. "
  6808. class="worksBox"
  6809. >
  6810. <div
  6811. class="zuoyeYulan"
  6812. style="display: flex;justify-content: space-between;align-items: center;"
  6813. v-if="
  6814. (worksStudent.length &&
  6815. worksStudent[toolIndex].length > 0) ||
  6816. (courseGroup.group && courseGroup.group.length)
  6817. "
  6818. >
  6819. <div class="worksTop">
  6820. <div>作业预览</div>
  6821. <div
  6822. class="corOpen"
  6823. @click="contract(toolIndex)"
  6824. v-if="
  6825. isCloseList[toolIndex].isCloseBoolean &&
  6826. isCloseList[toolIndex].isClose == 0
  6827. "
  6828. >
  6829. 折叠
  6830. </div>
  6831. <div
  6832. class="corOpen"
  6833. @click="contract(toolIndex)"
  6834. v-if="isCloseList[toolIndex].isClose == 1"
  6835. >
  6836. 展开
  6837. </div>
  6838. </div>
  6839. <div
  6840. style="display: flex;"
  6841. v-if="
  6842. (courseDetail.userid == userid ||
  6843. (courseDetail.course_teacher &&
  6844. courseDetail.course_teacher.indexOf(userid) !=
  6845. -1)) &&
  6846. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6847. taskCount
  6848. ].eList &&
  6849. chapInfoList[courseType].chapterInfo[0].taskJson[
  6850. taskCount
  6851. ].eList.length) ||
  6852. (tool.eList && tool.eList.length)) &&
  6853. courseDetail.state == 6
  6854. "
  6855. >
  6856. <div
  6857. style="margin-right:10px"
  6858. class="ScoreBtn"
  6859. @click="
  6860. resetLoopEva(
  6861. worksStudent[toolIndex],
  6862. chapInfoList[courseType].chapterInfo[0].taskJson[
  6863. taskCount
  6864. ].eList,
  6865. courseType,
  6866. taskCount,
  6867. toolIndex,
  6868. tool.toolDetail,
  6869. worksStudent
  6870. )
  6871. "
  6872. >
  6873. 一键重置
  6874. </div>
  6875. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6876. <img
  6877. src="../../assets/icon/newIcons/rootImg.png"
  6878. alt=""
  6879. />
  6880. AI评分
  6881. </div>
  6882. <div
  6883. class="ScoreBtn"
  6884. v-else-if="!loopLoading[toolIndex].loading"
  6885. @click="
  6886. loopEva(
  6887. worksStudent[toolIndex],
  6888. chapInfoList[courseType].chapterInfo[0].taskJson[
  6889. taskCount
  6890. ].eList,
  6891. courseType,
  6892. taskCount,
  6893. toolIndex,
  6894. tool.toolDetail,
  6895. chapInfoList[courseType].chapterInfo[0].taskJson[
  6896. taskCount
  6897. ].taskDetail,
  6898. tool
  6899. )
  6900. "
  6901. >
  6902. <img
  6903. src="../../assets/icon/newIcons/rootImg.png"
  6904. alt=""
  6905. />
  6906. AI评分
  6907. </div>
  6908. <div class="ScoreBtn" v-else>
  6909. <img
  6910. src="../../assets/icon/newIcons/rootImg.png"
  6911. alt=""
  6912. />
  6913. 正在评分
  6914. </div>
  6915. </div>
  6916. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6917. </div>
  6918. <div
  6919. class="group_workBox"
  6920. v-for="(g, gindex) in courseGroup.group"
  6921. :key="gindex"
  6922. >
  6923. <div class="group_box">
  6924. <div class="group_title">
  6925. <el-tooltip
  6926. class="item"
  6927. effect="light"
  6928. :content="g.name"
  6929. placement="top"
  6930. >
  6931. <div class="group_name">{{ g.name }}</div>
  6932. </el-tooltip>
  6933. </div>
  6934. <div
  6935. class="group_work"
  6936. v-if="
  6937. g.works &&
  6938. g.works.length &&
  6939. g.works[toolIndex].length
  6940. "
  6941. >
  6942. <div
  6943. class="works"
  6944. style="
  6945. width: 200px;
  6946. height: 140px;
  6947. margin: 10px 10px 10px 0;
  6948. border-radius: 15px;
  6949. box-shadow: 0 0 6px 1px #dfdada;
  6950. "
  6951. v-for="(w, wIndex) in g.works[toolIndex]"
  6952. :key="wIndex"
  6953. :class="w.type == 1 ? 'isTypeOne' : ''"
  6954. >
  6955. <div class="workImg">
  6956. <img
  6957. :src="w.works"
  6958. @click="previewImg(w.works, w)"
  6959. alt
  6960. />
  6961. <div
  6962. class="answerScore"
  6963. v-if="w.score"
  6964. @click.stop="openScore(w)"
  6965. :class="{
  6966. rightW:
  6967. w.userid == userid ||
  6968. tType == 1 ||
  6969. tType == 4
  6970. }"
  6971. >
  6972. {{ JSON.parse(w.score).wScore }}分
  6973. </div>
  6974. <div
  6975. class="answerScore"
  6976. @click.stop="openScore(w)"
  6977. v-else-if="courseDetail.userid == userid"
  6978. :class="{
  6979. rightW:
  6980. w.userid == userid ||
  6981. tType == 1 ||
  6982. tType == 4
  6983. }"
  6984. >
  6985. 评分
  6986. </div>
  6987. <img
  6988. class="deleteImg"
  6989. src="../../assets/deleteworks.png"
  6990. v-if="
  6991. w.userid == userid || tType == 1 || tType == 4
  6992. "
  6993. @click.stop="deleteWorks(w.wid)"
  6994. alt
  6995. />
  6996. </div>
  6997. <div class="comment" style="min-width: 200px">
  6998. <div class="worksName">
  6999. <div>{{ w.sName }}</div>
  7000. </div>
  7001. <div class="commentList">
  7002. <div class="commentList">
  7003. <div
  7004. class="commentImg"
  7005. @click="
  7006. isLikes(
  7007. w.wid,
  7008. userid,
  7009. 1,
  7010. null,
  7011. w.isLikes,
  7012. w.sName
  7013. )
  7014. "
  7015. >
  7016. <img
  7017. :src="w.isLikes == true ? likes : noLikes"
  7018. alt=""
  7019. />
  7020. </div>
  7021. <div>{{ w.likesCount }}</div>
  7022. </div>
  7023. <div
  7024. class="commentList"
  7025. style="margin-right: 15px"
  7026. >
  7027. <div
  7028. class="commentImg"
  7029. @click="
  7030. commentOther(
  7031. w,
  7032. toolIndex,
  7033. wIndex,
  7034. null,
  7035. g.id
  7036. )
  7037. "
  7038. >
  7039. <img
  7040. src="../../assets/icon/comment/comment.png"
  7041. alt=""
  7042. />
  7043. </div>
  7044. <div>{{ w.commentCount }}</div>
  7045. </div>
  7046. </div>
  7047. </div>
  7048. </div>
  7049. </div>
  7050. <div class="group_work" v-else>暂无提交作业</div>
  7051. </div>
  7052. </div>
  7053. <div
  7054. :id="'tool-' + toolIndex"
  7055. :style="{
  7056. height:
  7057. isCloseList[toolIndex].isClose == 1
  7058. ? retrnToolHeight('tool-' + toolIndex)
  7059. : 'auto',
  7060. overflow:
  7061. isCloseList[toolIndex].isClose == 1
  7062. ? 'hidden'
  7063. : 'unset'
  7064. }"
  7065. class="worksDetailBox"
  7066. v-if="
  7067. worksStudent.length &&
  7068. worksStudent[toolIndex].length > 0
  7069. "
  7070. >
  7071. <div
  7072. class="works"
  7073. style="
  7074. width: 200px;
  7075. height: 140px;
  7076. margin: 10px 10px 10px 0;
  7077. border-radius: 15px;
  7078. box-shadow: 0 0 6px 1px #dfdada;
  7079. "
  7080. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7081. :key="wIndex"
  7082. >
  7083. <!-- @click="previewImg(w.works)" -->
  7084. <div class="workImg">
  7085. <img
  7086. :src="w.works"
  7087. @click="previewImg(w.works, w)"
  7088. alt
  7089. />
  7090. <div
  7091. class="answerScore"
  7092. v-if="w.score"
  7093. @click.stop="openScore(w)"
  7094. :class="{
  7095. rightW:
  7096. w.userid == userid || tType == 1 || tType == 4
  7097. }"
  7098. >
  7099. {{ JSON.parse(w.score).wScore }}分
  7100. </div>
  7101. <div
  7102. class="answerScore"
  7103. @click.stop="openScore(w)"
  7104. v-else-if="
  7105. courseDetail.userid == userid &&
  7106. courseDetail.state != 6 &&
  7107. chapInfoList[courseType].chapterInfo[0]
  7108. .taskJson[taskCount].eList &&
  7109. chapInfoList[courseType].chapterInfo[0]
  7110. .taskJson[taskCount].eList.length
  7111. "
  7112. :class="{
  7113. rightW:
  7114. w.userid == userid || tType == 1 || tType == 4
  7115. }"
  7116. >
  7117. 评分
  7118. </div>
  7119. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  7120. <div
  7121. v-else-if="
  7122. (courseDetail.userid == userid ||
  7123. (courseDetail.course_teacher &&
  7124. courseDetail.course_teacher.indexOf(userid) !=
  7125. -1) ||
  7126. (w.userid == userid && sIsOpen)) &&
  7127. courseDetail.state == 6 &&
  7128. ((chapInfoList[courseType].chapterInfo[0]
  7129. .taskJson[taskCount].eList &&
  7130. chapInfoList[courseType].chapterInfo[0]
  7131. .taskJson[taskCount].eList.length) ||
  7132. (tool.eList && tool.eList.length))
  7133. "
  7134. >
  7135. <el-popover
  7136. placement="top"
  7137. width="318"
  7138. :disabled="AIloading[toolIndex][wIndex].loading"
  7139. trigger="hover"
  7140. >
  7141. <markScore
  7142. :loading="AIloading[toolIndex][wIndex].loading"
  7143. :markScoreVisible="markScoreVisible"
  7144. :ref="`markSco${toolIndex}${wIndex}`"
  7145. @updateLoading="updateLoading"
  7146. @updateDocSco="updateDocSco"
  7147. @refreshOther="refreshOther"
  7148. @markScoreDig="markScoreDig"
  7149. :tool="tool"
  7150. :wIndex="wIndex"
  7151. :scoCon="w"
  7152. :toolIndex="toolIndex"
  7153. :key="refreshKey"
  7154. :stage="courseType"
  7155. :task="taskCount"
  7156. :scoTit="
  7157. chapInfoList[courseType].chapterInfo[0]
  7158. .taskJson[taskCount].eList
  7159. "
  7160. >
  7161. </markScore>
  7162. <div
  7163. class="answerScore"
  7164. @click="
  7165. markScoreDig2(
  7166. w.sName,
  7167. worksStudent,
  7168. w.userid,
  7169. toolIndex,
  7170. chapInfoList[courseType].chapterInfo[0]
  7171. .taskJson[taskCount].eList,
  7172. AIloading[toolIndex][wIndex].loading,
  7173. tool
  7174. )
  7175. "
  7176. slot="reference"
  7177. :class="{
  7178. rightW:
  7179. w.userid == userid ||
  7180. tType == 1 ||
  7181. tType == 4 ||
  7182. w.ateacher == userid
  7183. }"
  7184. >
  7185. <span v-if="AIloading[toolIndex][wIndex].sco">
  7186. {{
  7187. AIloading[toolIndex][wIndex].loading
  7188. ? "评分中"
  7189. : AIloading[toolIndex][wIndex].sco + "分"
  7190. }}
  7191. </span>
  7192. <span v-else>
  7193. {{
  7194. AIloading[toolIndex][wIndex].loading
  7195. ? "评分中"
  7196. : "评分"
  7197. }}
  7198. </span>
  7199. </div>
  7200. </el-popover>
  7201. </div>
  7202. <img
  7203. class="deleteImg"
  7204. src="../../assets/deleteworks.png"
  7205. v-if="
  7206. w.userid == userid || tType == 1 || tType == 4
  7207. "
  7208. @click.stop="deleteWorks(w.wid)"
  7209. alt
  7210. />
  7211. </div>
  7212. <div class="comment" style="min-width: 200px">
  7213. <div class="worksName">
  7214. <div>{{ w.sName }}</div>
  7215. </div>
  7216. <div class="commentList">
  7217. <div class="commentList">
  7218. <div
  7219. class="commentImg"
  7220. @click="
  7221. isLikes(
  7222. w.wid,
  7223. userid,
  7224. 1,
  7225. null,
  7226. w.isLikes,
  7227. w.sName
  7228. )
  7229. "
  7230. >
  7231. <img
  7232. :src="w.isLikes == true ? likes : noLikes"
  7233. alt=""
  7234. />
  7235. </div>
  7236. <div>{{ w.likesCount }}</div>
  7237. </div>
  7238. <div class="commentList" style="margin-right: 15px">
  7239. <div
  7240. class="commentImg"
  7241. @click="commentOther(w, toolIndex, wIndex)"
  7242. >
  7243. <img
  7244. src="../../assets/icon/comment/comment.png"
  7245. alt=""
  7246. />
  7247. </div>
  7248. <div>{{ w.commentCount }}</div>
  7249. </div>
  7250. </div>
  7251. </div>
  7252. </div>
  7253. </div>
  7254. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7255. 未提交
  7256. </div>
  7257. <div
  7258. class="noWorksS"
  7259. v-if="noWorksS && noWorksS[toolIndex].length"
  7260. >
  7261. <div
  7262. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7263. :key="sIndex"
  7264. class="noWorksName"
  7265. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7266. >
  7267. <el-tooltip
  7268. effect="dark"
  7269. :content="s.student"
  7270. placement="top"
  7271. >
  7272. <span>{{ s.student }}</span>
  7273. </el-tooltip>
  7274. </div>
  7275. </div>
  7276. </div>
  7277. <div
  7278. v-if="
  7279. tType &&
  7280. ((tType == 2 && sIsOpen == true) ||
  7281. tType == 1 ||
  7282. tType == 4) &&
  7283. tool.tool.indexOf(6) != -1
  7284. "
  7285. class="worksBox"
  7286. >
  7287. <div
  7288. class="zuoyeYulan"
  7289. v-if="
  7290. (worksStudent.length &&
  7291. worksStudent[toolIndex].length > 0) ||
  7292. (courseGroup.group && courseGroup.group.length)
  7293. "
  7294. >
  7295. <div class="worksTop">
  7296. <div>作业预览</div>
  7297. <div
  7298. class="corOpen"
  7299. @click="contract(toolIndex)"
  7300. v-if="
  7301. isCloseList[toolIndex].isCloseBoolean &&
  7302. isCloseList[toolIndex].isClose == 0
  7303. "
  7304. >
  7305. 折叠
  7306. </div>
  7307. <div
  7308. class="corOpen"
  7309. @click="contract(toolIndex)"
  7310. v-if="isCloseList[toolIndex].isClose == 1"
  7311. >
  7312. 展开
  7313. </div>
  7314. </div>
  7315. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7316. </div>
  7317. <div
  7318. class="group_workBox"
  7319. v-for="(g, gindex) in courseGroup.group"
  7320. :key="gindex"
  7321. >
  7322. <div class="group_box">
  7323. <div class="group_title">
  7324. <el-tooltip
  7325. class="item"
  7326. effect="light"
  7327. :content="g.name"
  7328. placement="top"
  7329. >
  7330. <div class="group_name">{{ g.name }}</div>
  7331. </el-tooltip>
  7332. </div>
  7333. <div
  7334. class="group_work"
  7335. v-if="
  7336. g.works &&
  7337. g.works.length &&
  7338. g.works[toolIndex].length
  7339. "
  7340. >
  7341. <div
  7342. class="works"
  7343. style="
  7344. width: 200px;
  7345. height: 140px;
  7346. margin: 10px 10px 10px 0;
  7347. border-radius: 15px;
  7348. box-shadow: 0 0 6px 1px #dfdada;
  7349. "
  7350. v-for="(w, wIndex) in g.works[toolIndex]"
  7351. :key="wIndex"
  7352. :class="w.type == 1 ? 'isTypeOne' : ''"
  7353. >
  7354. <div class="workImg">
  7355. <img
  7356. :src="w.works"
  7357. @click="previewImg(w.works, w)"
  7358. alt
  7359. />
  7360. <div
  7361. class="answerScore"
  7362. v-if="w.score"
  7363. @click.stop="openScore(w)"
  7364. :class="{
  7365. rightW:
  7366. w.userid == userid ||
  7367. tType == 1 ||
  7368. tType == 4
  7369. }"
  7370. >
  7371. {{ JSON.parse(w.score).wScore }}分
  7372. </div>
  7373. <div
  7374. class="answerScore"
  7375. @click.stop="openScore(w)"
  7376. v-else-if="courseDetail.userid == userid"
  7377. :class="{
  7378. rightW:
  7379. w.userid == userid ||
  7380. tType == 1 ||
  7381. tType == 4
  7382. }"
  7383. >
  7384. 评分
  7385. </div>
  7386. <img
  7387. class="deleteImg"
  7388. src="../../assets/deleteworks.png"
  7389. v-if="
  7390. w.userid == userid || tType == 1 || tType == 4
  7391. "
  7392. @click.stop="deleteWorks(w.wid)"
  7393. alt
  7394. />
  7395. </div>
  7396. <div class="comment" style="min-width: 200px">
  7397. <div class="worksName">
  7398. <div>{{ w.sName }}</div>
  7399. </div>
  7400. <div class="commentList">
  7401. <div class="commentList">
  7402. <div
  7403. class="commentImg"
  7404. @click="
  7405. isLikes(
  7406. w.wid,
  7407. userid,
  7408. 1,
  7409. null,
  7410. w.isLikes,
  7411. w.sName
  7412. )
  7413. "
  7414. >
  7415. <img
  7416. :src="w.isLikes == true ? likes : noLikes"
  7417. alt=""
  7418. />
  7419. </div>
  7420. <div>{{ w.likesCount }}</div>
  7421. </div>
  7422. <div
  7423. class="commentList"
  7424. style="margin-right: 15px"
  7425. >
  7426. <div
  7427. class="commentImg"
  7428. @click="
  7429. commentOther(
  7430. w,
  7431. toolIndex,
  7432. wIndex,
  7433. null,
  7434. g.id
  7435. )
  7436. "
  7437. >
  7438. <img
  7439. src="../../assets/icon/comment/comment.png"
  7440. alt=""
  7441. />
  7442. </div>
  7443. <div>{{ w.commentCount }}</div>
  7444. </div>
  7445. </div>
  7446. </div>
  7447. </div>
  7448. </div>
  7449. <div class="group_work" v-else>暂无提交作业</div>
  7450. </div>
  7451. </div>
  7452. <div
  7453. :id="'tool-' + toolIndex"
  7454. :style="{
  7455. height:
  7456. isCloseList[toolIndex].isClose == 1
  7457. ? retrnToolHeight('tool-' + toolIndex)
  7458. : 'auto',
  7459. overflow:
  7460. isCloseList[toolIndex].isClose == 1
  7461. ? 'hidden'
  7462. : 'unset'
  7463. }"
  7464. class="worksDetailBox"
  7465. v-if="
  7466. worksStudent.length &&
  7467. worksStudent[toolIndex].length > 0
  7468. "
  7469. >
  7470. <div
  7471. class="works"
  7472. style="
  7473. width: 200px;
  7474. height: 140px;
  7475. margin: 10px 10px 10px 0;
  7476. border-radius: 15px;
  7477. box-shadow: 0 0 6px 1px #dfdada;
  7478. "
  7479. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7480. :key="wIndex"
  7481. >
  7482. <!-- @click="previewImg(w.works)" -->
  7483. <div class="workImg">
  7484. <img
  7485. :src="w.works"
  7486. @click="previewImg(w.works, w)"
  7487. alt
  7488. />
  7489. <div
  7490. class="answerScore"
  7491. v-if="w.score"
  7492. @click.stop="openScore(w)"
  7493. :class="{
  7494. rightW:
  7495. w.userid == userid || tType == 1 || tType == 4
  7496. }"
  7497. >
  7498. {{ JSON.parse(w.score).wScore }}分
  7499. </div>
  7500. <div
  7501. class="answerScore"
  7502. @click.stop="openScore(w)"
  7503. v-else-if="courseDetail.userid == userid"
  7504. :class="{
  7505. rightW:
  7506. w.userid == userid || tType == 1 || tType == 4
  7507. }"
  7508. >
  7509. 评分
  7510. </div>
  7511. <img
  7512. class="deleteImg"
  7513. src="../../assets/deleteworks.png"
  7514. v-if="
  7515. w.userid == userid || tType == 1 || tType == 4
  7516. "
  7517. @click.stop="deleteWorks(w.wid)"
  7518. alt
  7519. />
  7520. </div>
  7521. <div class="comment" style="min-width: 200px">
  7522. <div class="worksName">
  7523. <div>{{ w.sName }}</div>
  7524. </div>
  7525. <div class="commentList">
  7526. <div class="commentList">
  7527. <div
  7528. class="commentImg"
  7529. @click="
  7530. isLikes(
  7531. w.wid,
  7532. userid,
  7533. 1,
  7534. null,
  7535. w.isLikes,
  7536. w.sName
  7537. )
  7538. "
  7539. >
  7540. <img
  7541. :src="w.isLikes == true ? likes : noLikes"
  7542. alt=""
  7543. />
  7544. </div>
  7545. <div>{{ w.likesCount }}</div>
  7546. </div>
  7547. <div class="commentList" style="margin-right: 15px">
  7548. <div
  7549. class="commentImg"
  7550. @click="commentOther(w, toolIndex, wIndex)"
  7551. >
  7552. <img
  7553. src="../../assets/icon/comment/comment.png"
  7554. alt=""
  7555. />
  7556. </div>
  7557. <div>{{ w.commentCount }}</div>
  7558. </div>
  7559. </div>
  7560. </div>
  7561. </div>
  7562. </div>
  7563. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7564. 未提交
  7565. </div>
  7566. <div
  7567. class="noWorksS"
  7568. v-if="noWorksS && noWorksS[toolIndex].length"
  7569. >
  7570. <div
  7571. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7572. :key="sIndex"
  7573. class="noWorksName"
  7574. >
  7575. <el-tooltip
  7576. effect="dark"
  7577. :content="s.student"
  7578. placement="top"
  7579. >
  7580. <span>{{ s.student }}</span>
  7581. </el-tooltip>
  7582. </div>
  7583. </div>
  7584. </div>
  7585. <div
  7586. v-if="
  7587. tType &&
  7588. ((tType == 2 && sIsOpen == true) ||
  7589. tType == 1 ||
  7590. tType == 4) &&
  7591. tool.tool.indexOf(7) != -1
  7592. "
  7593. class="worksBox"
  7594. >
  7595. <div
  7596. class="zuoyeYulan"
  7597. style="display: flex;justify-content: space-between;align-items: center;"
  7598. v-if="
  7599. (worksStudent.length &&
  7600. worksStudent[toolIndex].length > 0) ||
  7601. (courseGroup.group && courseGroup.group.length)
  7602. "
  7603. >
  7604. <div class="worksTop">
  7605. <div>作业预览</div>
  7606. <div
  7607. class="corOpen"
  7608. @click="contract(toolIndex)"
  7609. v-if="
  7610. isCloseList[toolIndex].isCloseBoolean &&
  7611. isCloseList[toolIndex].isClose == 0
  7612. "
  7613. >
  7614. 折叠
  7615. </div>
  7616. <div
  7617. class="corOpen"
  7618. @click="contract(toolIndex)"
  7619. v-if="isCloseList[toolIndex].isClose == 1"
  7620. >
  7621. 展开
  7622. </div>
  7623. </div>
  7624. <div
  7625. style="display: flex;"
  7626. v-if="
  7627. (courseDetail.userid == userid ||
  7628. (courseDetail.course_teacher &&
  7629. courseDetail.course_teacher.indexOf(userid) !=
  7630. -1)) &&
  7631. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7632. taskCount
  7633. ].eList &&
  7634. chapInfoList[courseType].chapterInfo[0].taskJson[
  7635. taskCount
  7636. ].eList.length) ||
  7637. (tool.eList && tool.eList.length)) &&
  7638. courseDetail.state == 6
  7639. "
  7640. >
  7641. <div
  7642. style="margin-right:10px"
  7643. class="ScoreBtn"
  7644. @click="
  7645. resetLoopEva(
  7646. worksStudent[toolIndex],
  7647. chapInfoList[courseType].chapterInfo[0].taskJson[
  7648. taskCount
  7649. ].eList,
  7650. courseType,
  7651. taskCount,
  7652. toolIndex,
  7653. tool.toolDetail,
  7654. worksStudent
  7655. )
  7656. "
  7657. >
  7658. 一键重置
  7659. </div>
  7660. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7661. <img
  7662. src="../../assets/icon/newIcons/rootImg.png"
  7663. alt=""
  7664. />
  7665. AI评分
  7666. </div>
  7667. <div
  7668. class="ScoreBtn"
  7669. v-else-if="!loopLoading[toolIndex].loading"
  7670. @click="
  7671. loopEva(
  7672. worksStudent[toolIndex],
  7673. chapInfoList[courseType].chapterInfo[0].taskJson[
  7674. taskCount
  7675. ].eList,
  7676. courseType,
  7677. taskCount,
  7678. toolIndex,
  7679. tool.toolDetail,
  7680. chapInfoList[courseType].chapterInfo[0].taskJson[
  7681. taskCount
  7682. ].taskDetail,
  7683. tool
  7684. )
  7685. "
  7686. >
  7687. <img
  7688. src="../../assets/icon/newIcons/rootImg.png"
  7689. alt=""
  7690. />
  7691. AI评分
  7692. </div>
  7693. <div class="ScoreBtn" v-else>
  7694. <img
  7695. src="../../assets/icon/newIcons/rootImg.png"
  7696. alt=""
  7697. />
  7698. 正在评分
  7699. </div>
  7700. </div>
  7701. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7702. </div>
  7703. <div
  7704. class="group_workBox"
  7705. v-for="(g, gindex) in courseGroup.group"
  7706. :key="gindex"
  7707. >
  7708. <div class="group_box">
  7709. <div class="group_title">
  7710. <el-tooltip
  7711. class="item"
  7712. effect="light"
  7713. :content="g.name"
  7714. placement="top"
  7715. >
  7716. <div class="group_name">{{ g.name }}</div>
  7717. </el-tooltip>
  7718. </div>
  7719. <div
  7720. class="group_work"
  7721. v-if="
  7722. g.works &&
  7723. g.works.length &&
  7724. g.works[toolIndex].length
  7725. "
  7726. >
  7727. <div
  7728. class="works"
  7729. style="
  7730. width: 200px;
  7731. height: 140px;
  7732. margin: 10px 10px 10px 0;
  7733. border-radius: 15px;
  7734. box-shadow: 0 0 6px 1px #dfdada;
  7735. "
  7736. v-for="(w, wIndex) in g.works[toolIndex]"
  7737. :key="wIndex"
  7738. :class="w.type == 1 ? 'isTypeOne' : ''"
  7739. >
  7740. <div class="workImg">
  7741. <img
  7742. :src="w.works"
  7743. @click="previewImg(w.works, w)"
  7744. alt
  7745. />
  7746. <div
  7747. class="answerScore"
  7748. v-if="w.score"
  7749. @click.stop="openScore(w)"
  7750. :class="{
  7751. rightW:
  7752. w.userid == userid ||
  7753. tType == 1 ||
  7754. tType == 4
  7755. }"
  7756. >
  7757. {{ JSON.parse(w.score).wScore }}分
  7758. </div>
  7759. <div
  7760. class="answerScore"
  7761. @click.stop="openScore(w)"
  7762. v-else-if="courseDetail.userid == userid"
  7763. :class="{
  7764. rightW:
  7765. w.userid == userid ||
  7766. tType == 1 ||
  7767. tType == 4
  7768. }"
  7769. >
  7770. 评分
  7771. </div>
  7772. <img
  7773. class="deleteImg"
  7774. src="../../assets/deleteworks.png"
  7775. v-if="
  7776. w.userid == userid || tType == 1 || tType == 4
  7777. "
  7778. @click.stop="deleteWorks(w.wid)"
  7779. alt
  7780. />
  7781. </div>
  7782. <div class="comment" style="min-width: 200px">
  7783. <div class="worksName">
  7784. <div>{{ w.sName }}</div>
  7785. </div>
  7786. <div class="commentList">
  7787. <div class="commentList">
  7788. <div
  7789. class="commentImg"
  7790. @click="
  7791. isLikes(
  7792. w.wid,
  7793. userid,
  7794. 1,
  7795. null,
  7796. w.isLikes,
  7797. w.sName
  7798. )
  7799. "
  7800. >
  7801. <img
  7802. :src="w.isLikes == true ? likes : noLikes"
  7803. alt=""
  7804. />
  7805. </div>
  7806. <div>{{ w.likesCount }}</div>
  7807. </div>
  7808. <div
  7809. class="commentList"
  7810. style="margin-right: 15px"
  7811. >
  7812. <div
  7813. class="commentImg"
  7814. @click="
  7815. commentOther(
  7816. w,
  7817. toolIndex,
  7818. wIndex,
  7819. null,
  7820. g.id
  7821. )
  7822. "
  7823. >
  7824. <img
  7825. src="../../assets/icon/comment/comment.png"
  7826. alt=""
  7827. />
  7828. </div>
  7829. <div>{{ w.commentCount }}</div>
  7830. </div>
  7831. </div>
  7832. </div>
  7833. </div>
  7834. </div>
  7835. <div class="group_work" v-else>暂无提交作业</div>
  7836. </div>
  7837. </div>
  7838. <div
  7839. :id="'tool-' + toolIndex"
  7840. :style="{
  7841. height:
  7842. isCloseList[toolIndex].isClose == 1
  7843. ? retrnToolHeight('tool-' + toolIndex)
  7844. : 'auto',
  7845. overflow:
  7846. isCloseList[toolIndex].isClose == 1
  7847. ? 'hidden'
  7848. : 'unset'
  7849. }"
  7850. class="worksDetailBox"
  7851. v-if="
  7852. worksStudent.length &&
  7853. worksStudent[toolIndex].length > 0
  7854. "
  7855. >
  7856. <div
  7857. class="works"
  7858. style="
  7859. width: 200px;
  7860. height: 140px;
  7861. margin: 10px 10px 10px 0;
  7862. border-radius: 15px;
  7863. box-shadow: 0 0 6px 1px #dfdada;
  7864. "
  7865. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7866. :key="wIndex"
  7867. >
  7868. <!-- @click="previewImg(w.works)" -->
  7869. <div class="workImg">
  7870. <img
  7871. :src="w.works"
  7872. @click="previewImg(w.works, w)"
  7873. alt
  7874. />
  7875. <div
  7876. class="answerScore"
  7877. v-if="w.score"
  7878. @click.stop="openScore(w)"
  7879. :class="{
  7880. rightW:
  7881. w.userid == userid || tType == 1 || tType == 4
  7882. }"
  7883. >
  7884. {{ JSON.parse(w.score).wScore }}分
  7885. </div>
  7886. <div
  7887. class="answerScore"
  7888. @click.stop="openScore(w)"
  7889. v-else-if="
  7890. courseDetail.userid == userid &&
  7891. courseDetail.state != 6 &&
  7892. chapInfoList[courseType].chapterInfo[0]
  7893. .taskJson[taskCount].eList &&
  7894. chapInfoList[courseType].chapterInfo[0]
  7895. .taskJson[taskCount].eList.length
  7896. "
  7897. :class="{
  7898. rightW:
  7899. w.userid == userid || tType == 1 || tType == 4
  7900. }"
  7901. >
  7902. 评分
  7903. </div>
  7904. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  7905. <div
  7906. v-else-if="
  7907. (courseDetail.userid == userid ||
  7908. (courseDetail.course_teacher &&
  7909. courseDetail.course_teacher.indexOf(userid) !=
  7910. -1) ||
  7911. (w.userid == userid && sIsOpen)) &&
  7912. courseDetail.state == 6 &&
  7913. ((chapInfoList[courseType].chapterInfo[0]
  7914. .taskJson[taskCount].eList &&
  7915. chapInfoList[courseType].chapterInfo[0]
  7916. .taskJson[taskCount].eList.length) ||
  7917. (tool.eList && tool.eList.length))
  7918. "
  7919. >
  7920. <el-popover
  7921. placement="top"
  7922. width="318"
  7923. :disabled="AIloading[toolIndex][wIndex].loading"
  7924. trigger="hover"
  7925. >
  7926. <markScore
  7927. :loading="AIloading[toolIndex][wIndex].loading"
  7928. :markScoreVisible="markScoreVisible"
  7929. :ref="`markSco${toolIndex}${wIndex}`"
  7930. @updateLoading="updateLoading"
  7931. @updateDocSco="updateDocSco"
  7932. @refreshOther="refreshOther"
  7933. @markScoreDig="markScoreDig"
  7934. :tool="tool"
  7935. :wIndex="wIndex"
  7936. :scoCon="w"
  7937. :toolIndex="toolIndex"
  7938. :key="refreshKey"
  7939. :stage="courseType"
  7940. :task="taskCount"
  7941. :scoTit="
  7942. chapInfoList[courseType].chapterInfo[0]
  7943. .taskJson[taskCount].eList
  7944. "
  7945. >
  7946. </markScore>
  7947. <div
  7948. class="answerScore"
  7949. @click="
  7950. markScoreDig2(
  7951. w.sName,
  7952. worksStudent,
  7953. w.userid,
  7954. toolIndex,
  7955. chapInfoList[courseType].chapterInfo[0]
  7956. .taskJson[taskCount].eList,
  7957. AIloading[toolIndex][wIndex].loading,
  7958. tool
  7959. )
  7960. "
  7961. slot="reference"
  7962. :class="{
  7963. rightW:
  7964. w.userid == userid ||
  7965. tType == 1 ||
  7966. tType == 4 ||
  7967. w.ateacher == userid
  7968. }"
  7969. >
  7970. <span v-if="AIloading[toolIndex][wIndex].sco">
  7971. {{
  7972. AIloading[toolIndex][wIndex].loading
  7973. ? "评分中"
  7974. : AIloading[toolIndex][wIndex].sco + "分"
  7975. }}
  7976. </span>
  7977. <span v-else>
  7978. {{
  7979. AIloading[toolIndex][wIndex].loading
  7980. ? "评分中"
  7981. : "评分"
  7982. }}
  7983. </span>
  7984. </div>
  7985. </el-popover>
  7986. </div>
  7987. <img
  7988. class="deleteImg"
  7989. src="../../assets/deleteworks.png"
  7990. v-if="
  7991. w.userid == userid || tType == 1 || tType == 4
  7992. "
  7993. @click.stop="deleteWorks(w.wid)"
  7994. alt
  7995. />
  7996. </div>
  7997. <div class="comment" style="min-width: 200px">
  7998. <div class="worksName">
  7999. <div>{{ w.sName }}</div>
  8000. </div>
  8001. <div class="commentList">
  8002. <div class="commentList">
  8003. <div
  8004. class="commentImg"
  8005. @click="
  8006. isLikes(
  8007. w.wid,
  8008. userid,
  8009. 1,
  8010. null,
  8011. w.isLikes,
  8012. w.sName
  8013. )
  8014. "
  8015. >
  8016. <img
  8017. :src="w.isLikes == true ? likes : noLikes"
  8018. alt=""
  8019. />
  8020. </div>
  8021. <div>{{ w.likesCount }}</div>
  8022. </div>
  8023. <div class="commentList" style="margin-right: 15px">
  8024. <div
  8025. class="commentImg"
  8026. @click="commentOther(w, toolIndex, wIndex)"
  8027. >
  8028. <img
  8029. src="../../assets/icon/comment/comment.png"
  8030. alt=""
  8031. />
  8032. </div>
  8033. <div>{{ w.commentCount }}</div>
  8034. </div>
  8035. </div>
  8036. </div>
  8037. </div>
  8038. </div>
  8039. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8040. 未提交
  8041. </div>
  8042. <div
  8043. class="noWorksS"
  8044. v-if="noWorksS && noWorksS[toolIndex].length"
  8045. >
  8046. <div
  8047. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8048. :key="sIndex"
  8049. class="noWorksName"
  8050. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8051. >
  8052. <el-tooltip
  8053. effect="dark"
  8054. :content="s.student"
  8055. placement="top"
  8056. >
  8057. <span>{{ s.student }}</span>
  8058. </el-tooltip>
  8059. </div>
  8060. </div>
  8061. </div>
  8062. <div
  8063. v-if="
  8064. tType &&
  8065. ((tType == 2 && sIsOpen == true) ||
  8066. tType == 1 ||
  8067. tType == 4) &&
  8068. tool.tool.indexOf(26) != -1
  8069. "
  8070. class="worksBox"
  8071. >
  8072. <div
  8073. class="zuoyeYulan"
  8074. v-if="
  8075. worksStudent.length &&
  8076. worksStudent[toolIndex].length > 0
  8077. "
  8078. >
  8079. <div class="worksTop">
  8080. <div>作业预览</div>
  8081. <div
  8082. class="corOpen"
  8083. @click="contract(toolIndex)"
  8084. v-if="
  8085. isCloseList[toolIndex].isCloseBoolean &&
  8086. isCloseList[toolIndex].isClose == 0
  8087. "
  8088. >
  8089. 折叠
  8090. </div>
  8091. <div
  8092. class="corOpen"
  8093. @click="contract(toolIndex)"
  8094. v-if="isCloseList[toolIndex].isClose == 1"
  8095. >
  8096. 展开
  8097. </div>
  8098. </div>
  8099. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8100. </div>
  8101. <div
  8102. :id="'tool-' + toolIndex"
  8103. :style="{
  8104. height:
  8105. isCloseList[toolIndex].isClose == 1
  8106. ? retrnToolHeight('tool-' + toolIndex)
  8107. : 'auto',
  8108. overflow:
  8109. isCloseList[toolIndex].isClose == 1
  8110. ? 'hidden'
  8111. : 'unset'
  8112. }"
  8113. class="worksDetailBox"
  8114. v-if="
  8115. worksStudent.length &&
  8116. worksStudent[toolIndex].length > 0
  8117. "
  8118. >
  8119. <div
  8120. class="works"
  8121. style="width: 240px; height: 140px; overflow: hidden"
  8122. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8123. :key="wIndex"
  8124. :class="w.type == 1 ? 'isTypeOne' : ''"
  8125. >
  8126. <div class="workImg" v-if="w.type == 0">
  8127. <img
  8128. :src="w.works"
  8129. @click="previewImg(w.works, w)"
  8130. alt
  8131. />
  8132. <img
  8133. class="deleteImg"
  8134. src="../../assets/deleteworks.png"
  8135. v-if="
  8136. w.userid == userid || tType == 1 || tType == 4
  8137. "
  8138. @click.stop="deleteWorks(w.wid)"
  8139. alt
  8140. />
  8141. </div>
  8142. <div class="workImg" v-if="w.type == 1">
  8143. <img :src="word" @click="openFile(w.works)" alt />
  8144. <img
  8145. class="deleteImg"
  8146. src="../../assets/deleteworks.png"
  8147. v-if="
  8148. w.userid == userid || tType == 1 || tType == 4
  8149. "
  8150. @click.stop="deleteWorks(w.wid)"
  8151. alt
  8152. />
  8153. </div>
  8154. <div class="worksName">
  8155. <div>{{ w.sName }}</div>
  8156. </div>
  8157. </div>
  8158. </div>
  8159. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8160. 未提交
  8161. </div>
  8162. <div
  8163. class="noWorksS"
  8164. v-if="noWorksS && noWorksS[toolIndex].length"
  8165. >
  8166. <div
  8167. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8168. :key="sIndex"
  8169. class="noWorksName"
  8170. >
  8171. <el-tooltip
  8172. effect="dark"
  8173. :content="s.student"
  8174. placement="top"
  8175. >
  8176. <span>{{ s.student }}</span>
  8177. </el-tooltip>
  8178. </div>
  8179. </div>
  8180. </div>
  8181. <div
  8182. v-if="
  8183. tType &&
  8184. ((tType == 2 && sIsOpen == true) ||
  8185. tType == 1 ||
  8186. tType == 4) &&
  8187. tool.tool.indexOf(40) != -1
  8188. "
  8189. class="worksBox"
  8190. >
  8191. <div
  8192. class="zuoyeYulan"
  8193. v-if="
  8194. worksStudent.length &&
  8195. worksStudent[toolIndex].length > 0
  8196. "
  8197. >
  8198. <div class="worksTop">
  8199. <div>作业预览</div>
  8200. <div
  8201. class="corOpen"
  8202. @click="contract(toolIndex)"
  8203. v-if="
  8204. isCloseList[toolIndex].isCloseBoolean &&
  8205. isCloseList[toolIndex].isClose == 0
  8206. "
  8207. >
  8208. 折叠
  8209. </div>
  8210. <div
  8211. class="corOpen"
  8212. @click="contract(toolIndex)"
  8213. v-if="isCloseList[toolIndex].isClose == 1"
  8214. >
  8215. 展开
  8216. </div>
  8217. </div>
  8218. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8219. </div>
  8220. <div
  8221. :id="'tool-' + toolIndex"
  8222. :style="{
  8223. height:
  8224. isCloseList[toolIndex].isClose == 1
  8225. ? retrnToolHeight('tool-' + toolIndex)
  8226. : 'auto',
  8227. overflow:
  8228. isCloseList[toolIndex].isClose == 1
  8229. ? 'hidden'
  8230. : 'unset'
  8231. }"
  8232. class="worksDetailBox"
  8233. v-if="
  8234. worksStudent.length &&
  8235. worksStudent[toolIndex].length > 0
  8236. "
  8237. >
  8238. <div
  8239. class="works"
  8240. style="
  8241. width: 200px;
  8242. height: 140px;
  8243. margin: 10px 10px 10px 0;
  8244. border-radius: 15px;
  8245. box-shadow: 0 0 6px 1px #dfdada;
  8246. "
  8247. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8248. :key="wIndex"
  8249. :class="w.type == 1 ? 'isTypeOne' : ''"
  8250. >
  8251. <div class="workImg">
  8252. <img
  8253. src="../../assets/icon/works/noImg.png"
  8254. @click="openPj(w.works, toolIndex)"
  8255. alt
  8256. />
  8257. <img
  8258. class="deleteImg"
  8259. src="../../assets/deleteworks.png"
  8260. v-if="
  8261. w.userid == userid || tType == 1 || tType == 4
  8262. "
  8263. @click.stop="deleteWorks(w.wid)"
  8264. alt
  8265. />
  8266. </div>
  8267. <div class="comment" style="min-width: 200px">
  8268. <div class="worksName">
  8269. <div>{{ w.sName }}</div>
  8270. </div>
  8271. <div class="commentList">
  8272. <div class="commentList">
  8273. <div
  8274. class="commentImg"
  8275. @click="
  8276. isLikes(
  8277. w.wid,
  8278. userid,
  8279. 1,
  8280. null,
  8281. w.isLikes,
  8282. w.sName
  8283. )
  8284. "
  8285. >
  8286. <img
  8287. :src="w.isLikes == true ? likes : noLikes"
  8288. alt=""
  8289. />
  8290. </div>
  8291. <div>{{ w.likesCount }}</div>
  8292. </div>
  8293. <div class="commentList" style="margin-right: 15px">
  8294. <div
  8295. class="commentImg"
  8296. @click="commentOther(w, toolIndex, wIndex)"
  8297. >
  8298. <img
  8299. src="../../assets/icon/comment/comment.png"
  8300. alt=""
  8301. />
  8302. </div>
  8303. <div>{{ w.commentCount }}</div>
  8304. </div>
  8305. </div>
  8306. </div>
  8307. </div>
  8308. </div>
  8309. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8310. 未提交
  8311. </div>
  8312. <div
  8313. class="noWorksS"
  8314. v-if="noWorksS && noWorksS[toolIndex].length"
  8315. >
  8316. <div
  8317. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8318. :key="sIndex"
  8319. class="noWorksName"
  8320. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8321. >
  8322. <el-tooltip
  8323. effect="dark"
  8324. :content="s.student"
  8325. placement="top"
  8326. >
  8327. <span>{{ s.student }}</span>
  8328. </el-tooltip>
  8329. </div>
  8330. </div>
  8331. </div>
  8332. <div
  8333. v-if="
  8334. tType &&
  8335. tType == 2 &&
  8336. !sIsOpen &&
  8337. tool.tool.indexOf(40) != -1
  8338. "
  8339. class="worksBox"
  8340. >
  8341. <div
  8342. class="zuoyeYulan"
  8343. v-if="workStudent[toolIndex].length > 0"
  8344. >
  8345. <span class="worksTitle">作业预览</span>
  8346. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8347. </div>
  8348. <div
  8349. class="worksDetailBox"
  8350. v-if="workStudent[toolIndex].length > 0"
  8351. >
  8352. <div
  8353. class="works"
  8354. style="
  8355. width: 200px;
  8356. height: 140px;
  8357. margin: 10px 10px 10px 0;
  8358. "
  8359. v-for="(w, wIndex) in workStudent[toolIndex]"
  8360. :key="wIndex"
  8361. >
  8362. <div class="workImg">
  8363. <img
  8364. src="../../assets/icon/works/noImg.png"
  8365. @click="openPj(w.works, toolIndex)"
  8366. alt
  8367. />
  8368. <img
  8369. class="deleteImg"
  8370. src="../../assets/deleteworks.png"
  8371. v-if="
  8372. w.userid == userid || tType == 1 || tType == 4
  8373. "
  8374. @click.stop="deleteWorks(w.wid)"
  8375. alt
  8376. />
  8377. </div>
  8378. <div class="worksName">
  8379. <div>{{ w.sName }}</div>
  8380. </div>
  8381. </div>
  8382. </div>
  8383. </div>
  8384. <div
  8385. v-if="
  8386. tType &&
  8387. ((tType == 2 && sIsOpen == true) ||
  8388. tType == 1 ||
  8389. tType == 4) &&
  8390. tool.tool.indexOf(41) != -1
  8391. "
  8392. >
  8393. <AnswerData2
  8394. v-if="
  8395. worksStudent.length &&
  8396. worksStudent[toolIndex].length > 0
  8397. "
  8398. :problemJson="tool.selectJson.answer"
  8399. :people="worksStudent[toolIndex]"
  8400. ></AnswerData2>
  8401. </div>
  8402. <div
  8403. v-if="
  8404. tType &&
  8405. ((tType == 2 && sIsOpen == true) ||
  8406. tType == 1 ||
  8407. tType == 4) &&
  8408. tool.tool.indexOf(41) != -1
  8409. "
  8410. class="worksBox"
  8411. >
  8412. <div
  8413. class="zuoyeYulan"
  8414. v-if="
  8415. worksStudent.length &&
  8416. worksStudent[toolIndex].length > 0
  8417. "
  8418. >
  8419. <div class="worksTop">
  8420. <div>作业预览</div>
  8421. <div
  8422. class="corOpen"
  8423. @click="contract(toolIndex)"
  8424. v-if="
  8425. isCloseList[toolIndex].isCloseBoolean &&
  8426. isCloseList[toolIndex].isClose == 0
  8427. "
  8428. >
  8429. 折叠
  8430. </div>
  8431. <div
  8432. class="corOpen"
  8433. @click="contract(toolIndex)"
  8434. v-if="isCloseList[toolIndex].isClose == 1"
  8435. >
  8436. 展开
  8437. </div>
  8438. </div>
  8439. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8440. </div>
  8441. <div
  8442. :id="'tool-' + toolIndex"
  8443. :style="{
  8444. height:
  8445. isCloseList[toolIndex].isClose == 1
  8446. ? retrnToolHeight('tool-' + toolIndex)
  8447. : 'auto',
  8448. overflow:
  8449. isCloseList[toolIndex].isClose == 1
  8450. ? 'hidden'
  8451. : 'unset'
  8452. }"
  8453. class="worksDetailBox"
  8454. v-if="
  8455. worksStudent.length &&
  8456. worksStudent[toolIndex].length > 0
  8457. "
  8458. >
  8459. <div
  8460. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8461. :key="wIndex"
  8462. class="isWorksName2"
  8463. @click="openXz(w, toolIndex)"
  8464. >
  8465. {{ w.sName }}
  8466. <img
  8467. class="deleteImg deleteImg2"
  8468. src="../../assets/deleteworks.png"
  8469. v-if="w.userid == userid || tType == 1 || tType == 4"
  8470. @click.stop="deleteWorks(w.wid)"
  8471. alt
  8472. />
  8473. </div>
  8474. <!-- <div
  8475. class="works"
  8476. style="
  8477. width: 200px;
  8478. height: 140px;
  8479. margin: 10px 10px 10px 0;
  8480. border-radius: 15px;
  8481. box-shadow: 0 0 6px 1px #dfdada;
  8482. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  8483. :class="w.type == 5 ? 'isTypeOne' : ''">
  8484. <div class="workImg">
  8485. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  8486. </div>
  8487. <div class="worksName">
  8488. <div>{{ w.sName }}</div>
  8489. </div>
  8490. </div> -->
  8491. </div>
  8492. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8493. 未提交
  8494. </div>
  8495. <div
  8496. class="noWorksS"
  8497. v-if="noWorksS && noWorksS[toolIndex].length"
  8498. >
  8499. <div
  8500. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8501. :key="sIndex"
  8502. class="noWorksName"
  8503. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  8504. >
  8505. <el-tooltip
  8506. effect="dark"
  8507. :content="s.student"
  8508. placement="top"
  8509. >
  8510. <span>{{ s.student }}</span>
  8511. </el-tooltip>
  8512. </div>
  8513. </div>
  8514. </div>
  8515. <div
  8516. v-if="
  8517. tType &&
  8518. tType == 2 &&
  8519. !sIsOpen &&
  8520. tool.tool.indexOf(41) != -1
  8521. "
  8522. class="worksBox"
  8523. >
  8524. <div
  8525. class="zuoyeYulan"
  8526. v-if="workStudent[toolIndex].length > 0"
  8527. >
  8528. <span class="worksTitle">作业预览</span>
  8529. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8530. </div>
  8531. <div
  8532. class="worksDetailBox"
  8533. v-if="workStudent[toolIndex].length > 0"
  8534. >
  8535. <div
  8536. class="works"
  8537. style="
  8538. width: 200px;
  8539. height: 140px;
  8540. margin: 10px 10px 10px 0;
  8541. "
  8542. v-for="(w, wIndex) in workStudent[toolIndex]"
  8543. :key="wIndex"
  8544. >
  8545. <div class="workImg">
  8546. <img
  8547. src="../../assets/icon/works/noImg.png"
  8548. @click="openXz(w, toolIndex)"
  8549. alt
  8550. />
  8551. <img
  8552. class="deleteImg"
  8553. src="../../assets/deleteworks.png"
  8554. v-if="
  8555. w.userid == userid || tType == 1 || tType == 4
  8556. "
  8557. @click.stop="deleteWorks(w.wid)"
  8558. alt
  8559. />
  8560. </div>
  8561. <div class="worksName">
  8562. <div>{{ w.sName }}</div>
  8563. </div>
  8564. </div>
  8565. </div>
  8566. </div>
  8567. <div v-if="false" class="xuan_right_box">
  8568. <div
  8569. class="tool_right_box"
  8570. v-for="(item, index) in tool.sentenceList"
  8571. :key="index"
  8572. >
  8573. <div>
  8574. <span
  8575. style="word-break: break-all; white-space: normal"
  8576. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  8577. >
  8578. </div>
  8579. <div class="right_box_xuan">
  8580. <span>正确率</span>
  8581. <span>{{
  8582. (checkJson[toolIndex][index].right
  8583. ? checkJson[toolIndex][index].right
  8584. : 0) + "%"
  8585. }}</span>
  8586. </div>
  8587. <div class="right_box_xuan">
  8588. <span>答对人数</span>
  8589. <span>{{
  8590. checkJson[toolIndex][index].rightPerson.length
  8591. }}</span>
  8592. </div>
  8593. </div>
  8594. </div>
  8595. <div
  8596. v-if="
  8597. tType &&
  8598. ((tType == 2 && sIsOpen == true) ||
  8599. tType == 1 ||
  8600. tType == 4) &&
  8601. tool.tool.indexOf(47) != -1
  8602. "
  8603. >
  8604. <AnswerData
  8605. v-if="
  8606. checkJson[toolIndex].length &&
  8607. (tool.sentenceList || tool.sentenceList.length > 0)
  8608. "
  8609. :people="checkJson[toolIndex]"
  8610. ></AnswerData>
  8611. </div>
  8612. <div
  8613. v-if="
  8614. tType &&
  8615. tType == 2 &&
  8616. !sIsOpen &&
  8617. tool.tool.indexOf(47) != -1
  8618. "
  8619. class="worksBox"
  8620. >
  8621. <div
  8622. class="zuoyeYulan"
  8623. v-if="workStudent[toolIndex].length > 0"
  8624. >
  8625. <span class="worksTitle">作业预览</span>
  8626. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8627. </div>
  8628. <div
  8629. class="worksDetailBox"
  8630. v-if="workStudent[toolIndex].length > 0"
  8631. >
  8632. <div
  8633. class="works"
  8634. style="
  8635. width: 200px;
  8636. height: 140px;
  8637. margin: 10px 10px 10px 0;
  8638. "
  8639. v-for="(w, wIndex) in workStudent[toolIndex]"
  8640. :key="wIndex"
  8641. >
  8642. <!-- @click="openXz(w, toolIndex)" -->
  8643. <div class="workImg" @click="openSen(w, toolIndex)">
  8644. <img src="../../assets/icon/works/noImg.png" alt />
  8645. <img
  8646. class="deleteImg"
  8647. src="../../assets/deleteworks.png"
  8648. v-if="
  8649. w.userid == userid || tType == 1 || tType == 4
  8650. "
  8651. @click.stop="deleteWorks(w.wid)"
  8652. alt
  8653. />
  8654. </div>
  8655. <div class="worksName">
  8656. <div>
  8657. {{ w.sName }}
  8658. </div>
  8659. </div>
  8660. </div>
  8661. </div>
  8662. </div>
  8663. <div
  8664. v-if="
  8665. tType &&
  8666. ((tType == 2 && sIsOpen == true) ||
  8667. tType == 1 ||
  8668. tType == 4) &&
  8669. tool.tool.indexOf(47) != -1
  8670. "
  8671. class="worksBox"
  8672. >
  8673. <div
  8674. class="zuoyeYulan"
  8675. v-if="
  8676. worksStudent.length &&
  8677. worksStudent[toolIndex].length > 0
  8678. "
  8679. >
  8680. <div class="worksTop">
  8681. <div>作业预览</div>
  8682. <div
  8683. class="corOpen"
  8684. @click="contract(toolIndex)"
  8685. v-if="
  8686. isCloseList[toolIndex].isCloseBoolean &&
  8687. isCloseList[toolIndex].isClose == 0
  8688. "
  8689. >
  8690. 折叠
  8691. </div>
  8692. <div
  8693. class="corOpen"
  8694. @click="contract(toolIndex)"
  8695. v-if="isCloseList[toolIndex].isClose == 1"
  8696. >
  8697. 展开
  8698. </div>
  8699. </div>
  8700. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8701. </div>
  8702. <div
  8703. :id="'tool-' + toolIndex"
  8704. :style="{
  8705. height:
  8706. isCloseList[toolIndex].isClose == 1
  8707. ? retrnToolHeight('tool-' + toolIndex)
  8708. : 'auto',
  8709. overflow:
  8710. isCloseList[toolIndex].isClose == 1
  8711. ? 'hidden'
  8712. : 'unset'
  8713. }"
  8714. class="worksDetailBox"
  8715. v-if="
  8716. worksStudent.length &&
  8717. worksStudent[toolIndex].length > 0
  8718. "
  8719. >
  8720. <!-- @click="openXz(w, toolIndex)" -->
  8721. <div
  8722. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8723. :key="wIndex"
  8724. class="isWorksName2"
  8725. @click="openSen(w, toolIndex)"
  8726. >
  8727. {{ w.sName }}
  8728. <img
  8729. class="deleteImg deleteImg2"
  8730. src="../../assets/deleteworks.png"
  8731. v-if="w.userid == userid || tType == 1 || tType == 4"
  8732. @click.stop="deleteWorks(w.wid)"
  8733. alt
  8734. />
  8735. </div>
  8736. </div>
  8737. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8738. 未提交
  8739. </div>
  8740. <div
  8741. class="noWorksS"
  8742. v-if="noWorksS && noWorksS[toolIndex].length"
  8743. >
  8744. <div
  8745. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8746. :key="sIndex"
  8747. class="noWorksName"
  8748. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8749. >
  8750. <el-tooltip
  8751. effect="dark"
  8752. :content="s.student"
  8753. placement="top"
  8754. >
  8755. <span>{{ s.student }}</span>
  8756. </el-tooltip>
  8757. </div>
  8758. </div>
  8759. </div>
  8760. <div
  8761. v-if="
  8762. tType &&
  8763. ((tType == 2 && sIsOpen == true) ||
  8764. tType == 1 ||
  8765. tType == 4) &&
  8766. tool.tool.indexOf(48) != -1
  8767. "
  8768. class="worksBox"
  8769. >
  8770. <div
  8771. class="zuoyeYulan"
  8772. style="display: flex;justify-content: space-between;align-items: center;"
  8773. v-if="
  8774. worksStudent.length &&
  8775. worksStudent[toolIndex].length > 0
  8776. "
  8777. >
  8778. <div class="worksTop">
  8779. <div>作业预览</div>
  8780. <div
  8781. class="corOpen"
  8782. @click="contract(toolIndex)"
  8783. v-if="
  8784. isCloseList[toolIndex].isCloseBoolean &&
  8785. isCloseList[toolIndex].isClose == 0
  8786. "
  8787. >
  8788. 折叠
  8789. </div>
  8790. <div
  8791. class="corOpen"
  8792. @click="contract(toolIndex)"
  8793. v-if="isCloseList[toolIndex].isClose == 1"
  8794. >
  8795. 展开
  8796. </div>
  8797. </div>
  8798. <div
  8799. style="display: flex;"
  8800. v-if="
  8801. (courseDetail.userid == userid ||
  8802. (courseDetail.course_teacher &&
  8803. courseDetail.course_teacher.indexOf(userid) !=
  8804. -1)) &&
  8805. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8806. taskCount
  8807. ].eList &&
  8808. chapInfoList[courseType].chapterInfo[0].taskJson[
  8809. taskCount
  8810. ].eList.length) ||
  8811. (tool.eList && tool.eList.length)) &&
  8812. courseDetail.state == 6
  8813. "
  8814. >
  8815. <div
  8816. style="margin-right:10px"
  8817. class="ScoreBtn"
  8818. @click="
  8819. resetLoopEva(
  8820. worksStudent[toolIndex],
  8821. chapInfoList[courseType].chapterInfo[0].taskJson[
  8822. taskCount
  8823. ].eList,
  8824. courseType,
  8825. taskCount,
  8826. toolIndex,
  8827. tool.toolDetail,
  8828. worksStudent
  8829. )
  8830. "
  8831. >
  8832. 一键重置
  8833. </div>
  8834. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8835. <img
  8836. src="../../assets/icon/newIcons/rootImg.png"
  8837. alt=""
  8838. />
  8839. AI评分
  8840. </div>
  8841. <div
  8842. class="ScoreBtn"
  8843. v-else-if="!loopLoading[toolIndex].loading"
  8844. @click="
  8845. loopEva(
  8846. worksStudent[toolIndex],
  8847. chapInfoList[courseType].chapterInfo[0].taskJson[
  8848. taskCount
  8849. ].eList,
  8850. courseType,
  8851. taskCount,
  8852. toolIndex,
  8853. tool.toolDetail,
  8854. chapInfoList[courseType].chapterInfo[0].taskJson[
  8855. taskCount
  8856. ].taskDetail,
  8857. tool
  8858. )
  8859. "
  8860. >
  8861. <img
  8862. src="../../assets/icon/newIcons/rootImg.png"
  8863. alt=""
  8864. />
  8865. AI评分
  8866. </div>
  8867. <div class="ScoreBtn" v-else>
  8868. <img
  8869. src="../../assets/icon/newIcons/rootImg.png"
  8870. alt=""
  8871. />
  8872. 正在评分
  8873. </div>
  8874. </div>
  8875. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8876. </div>
  8877. <div
  8878. :id="'tool-' + toolIndex"
  8879. :style="{
  8880. height:
  8881. isCloseList[toolIndex].isClose == 1
  8882. ? retrnToolHeight('tool-' + toolIndex)
  8883. : 'auto',
  8884. overflow:
  8885. isCloseList[toolIndex].isClose == 1
  8886. ? 'hidden'
  8887. : 'unset'
  8888. }"
  8889. class="worksDetailBox"
  8890. v-if="
  8891. worksStudent.length &&
  8892. worksStudent[toolIndex].length > 0
  8893. "
  8894. >
  8895. <div
  8896. class="works"
  8897. style="
  8898. width: 200px;
  8899. height: 140px;
  8900. margin: 10px 10px 10px 0;
  8901. border-radius: 15px;
  8902. box-shadow: 0 0 6px 1px #dfdada;
  8903. "
  8904. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8905. :key="wIndex"
  8906. :class="w.type == 1 ? 'isTypeOne' : ''"
  8907. >
  8908. <div class="workImg">
  8909. <img :src="word" @click="openTable(w)" alt />
  8910. <!-- @click="openFile(w.works)" -->
  8911. <div
  8912. class="answerScore"
  8913. v-if="w.score"
  8914. @click.stop="openScore(w)"
  8915. :class="{
  8916. rightW:
  8917. w.userid == userid ||
  8918. tType == 1 ||
  8919. tType == 4 ||
  8920. w.ateacher == userid
  8921. }"
  8922. >
  8923. {{ JSON.parse(w.score).wScore }}分
  8924. </div>
  8925. <div
  8926. class="answerScore"
  8927. @click.stop="openScore(w)"
  8928. v-else-if="
  8929. courseDetail.userid == userid &&
  8930. courseDetail.state != 6 &&
  8931. chapInfoList[courseType].chapterInfo[0]
  8932. .taskJson[taskCount].eList &&
  8933. chapInfoList[courseType].chapterInfo[0]
  8934. .taskJson[taskCount].eList.length
  8935. "
  8936. :class="{
  8937. rightW:
  8938. w.userid == userid ||
  8939. tType == 1 ||
  8940. tType == 4 ||
  8941. w.ateacher == userid
  8942. }"
  8943. >
  8944. 评分
  8945. </div>
  8946. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  8947. <div
  8948. v-else-if="
  8949. (courseDetail.userid == userid ||
  8950. (courseDetail.course_teacher &&
  8951. courseDetail.course_teacher.indexOf(userid) !=
  8952. -1) ||
  8953. (w.userid == userid && sIsOpen)) &&
  8954. courseDetail.state == 6 &&
  8955. ((chapInfoList[courseType].chapterInfo[0]
  8956. .taskJson[taskCount].eList &&
  8957. chapInfoList[courseType].chapterInfo[0]
  8958. .taskJson[taskCount].eList.length) ||
  8959. (tool.eList && tool.eList.length))
  8960. "
  8961. >
  8962. <el-popover
  8963. placement="top"
  8964. width="318"
  8965. :disabled="AIloading[toolIndex][wIndex].loading"
  8966. trigger="hover"
  8967. >
  8968. <markScore
  8969. :loading="AIloading[toolIndex][wIndex].loading"
  8970. :markScoreVisible="markScoreVisible"
  8971. :ref="`markSco${toolIndex}${wIndex}`"
  8972. @updateLoading="updateLoading"
  8973. @updateDocSco="updateDocSco"
  8974. @refreshOther="refreshOther"
  8975. @markScoreDig="markScoreDig"
  8976. :tool="tool"
  8977. :wIndex="wIndex"
  8978. :scoCon="w"
  8979. :toolIndex="toolIndex"
  8980. :key="refreshKey"
  8981. :stage="courseType"
  8982. :task="taskCount"
  8983. :scoTit="
  8984. chapInfoList[courseType].chapterInfo[0]
  8985. .taskJson[taskCount].eList
  8986. "
  8987. >
  8988. </markScore>
  8989. <div
  8990. class="answerScore"
  8991. @click="
  8992. markScoreDig2(
  8993. w.sName,
  8994. worksStudent,
  8995. w.userid,
  8996. toolIndex,
  8997. chapInfoList[courseType].chapterInfo[0]
  8998. .taskJson[taskCount].eList,
  8999. AIloading[toolIndex][wIndex].loading,
  9000. tool
  9001. )
  9002. "
  9003. slot="reference"
  9004. :class="{
  9005. rightW:
  9006. w.userid == userid ||
  9007. tType == 1 ||
  9008. tType == 4 ||
  9009. w.ateacher == userid
  9010. }"
  9011. >
  9012. <span v-if="AIloading[toolIndex][wIndex].sco">
  9013. {{
  9014. AIloading[toolIndex][wIndex].loading
  9015. ? "评分中"
  9016. : AIloading[toolIndex][wIndex].sco + "分"
  9017. }}
  9018. </span>
  9019. <span v-else>
  9020. {{
  9021. AIloading[toolIndex][wIndex].loading
  9022. ? "评分中"
  9023. : "评分"
  9024. }}
  9025. </span>
  9026. </div>
  9027. </el-popover>
  9028. </div>
  9029. <img
  9030. class="deleteImg"
  9031. src="../../assets/deleteworks.png"
  9032. v-if="
  9033. w.userid == userid || tType == 1 || tType == 4
  9034. "
  9035. @click.stop="deleteWorks(w.wid)"
  9036. alt
  9037. />
  9038. </div>
  9039. <div class="comment" style="min-width: 200px">
  9040. <div class="worksName">
  9041. <div>{{ w.sName }}</div>
  9042. </div>
  9043. <div class="commentList">
  9044. <div class="commentList">
  9045. <div
  9046. class="commentImg"
  9047. @click="
  9048. isLikes(
  9049. w.wid,
  9050. userid,
  9051. 1,
  9052. null,
  9053. w.isLikes,
  9054. w.sName
  9055. )
  9056. "
  9057. >
  9058. <img
  9059. :src="w.isLikes == true ? likes : noLikes"
  9060. alt=""
  9061. />
  9062. </div>
  9063. <div>{{ w.likesCount }}</div>
  9064. </div>
  9065. <div class="commentList" style="margin-right: 15px">
  9066. <div
  9067. class="commentImg"
  9068. @click="commentOther(w, toolIndex, wIndex)"
  9069. >
  9070. <img
  9071. src="../../assets/icon/comment/comment.png"
  9072. alt=""
  9073. />
  9074. </div>
  9075. <div>{{ w.commentCount }}</div>
  9076. </div>
  9077. </div>
  9078. </div>
  9079. </div>
  9080. </div>
  9081. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9082. 未提交
  9083. </div>
  9084. <div
  9085. class="noWorksS"
  9086. v-if="noWorksS && noWorksS[toolIndex].length"
  9087. >
  9088. <div
  9089. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9090. :key="sIndex"
  9091. class="noWorksName"
  9092. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9093. >
  9094. <el-tooltip
  9095. effect="dark"
  9096. :content="s.student"
  9097. placement="top"
  9098. >
  9099. <span>{{ s.student }}</span>
  9100. </el-tooltip>
  9101. </div>
  9102. </div>
  9103. </div>
  9104. <div
  9105. v-if="
  9106. tType &&
  9107. tType == 2 &&
  9108. !sIsOpen &&
  9109. tool.tool.indexOf(48) != -1
  9110. "
  9111. class="worksBox"
  9112. >
  9113. <div
  9114. class="zuoyeYulan"
  9115. v-if="workStudent[toolIndex].length > 0"
  9116. >
  9117. <span class="worksTitle">作业预览</span>
  9118. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9119. </div>
  9120. <div
  9121. class="worksDetailBox"
  9122. v-if="workStudent[toolIndex].length > 0"
  9123. >
  9124. <div
  9125. class="works"
  9126. style="
  9127. width: 200px;
  9128. height: 140px;
  9129. margin: 10px 10px 10px 0;
  9130. box-shadow: 0 0 6px 1px #dfdada;
  9131. "
  9132. v-for="(w, wIndex) in workStudent[toolIndex]"
  9133. :key="wIndex"
  9134. >
  9135. <div class="workImg">
  9136. <img :src="word" @click="openTable(w)" alt />
  9137. <div
  9138. class="answerScore"
  9139. v-if="w.score"
  9140. @click.stop="openScore(w)"
  9141. :class="{
  9142. rightW:
  9143. w.userid == userid || tType == 1 || tType == 4
  9144. }"
  9145. >
  9146. {{ JSON.parse(w.score).wScore }}分
  9147. </div>
  9148. <div
  9149. class="answerScore"
  9150. @click.stop="openScore(w)"
  9151. v-else-if="courseDetail.userid == userid"
  9152. :class="{
  9153. rightW:
  9154. w.userid == userid || tType == 1 || tType == 4
  9155. }"
  9156. >
  9157. 评分
  9158. </div>
  9159. <div
  9160. class="stuLookScore"
  9161. v-if="
  9162. w.userid == userid ||
  9163. (tType == 1 &&
  9164. courseDetail.state == 6 &&
  9165. ((chapInfoList[courseType].chapterInfo[0]
  9166. .taskJson[taskCount].eList &&
  9167. chapInfoList[courseType].chapterInfo[0]
  9168. .taskJson[taskCount].eList.length) ||
  9169. (tool.eList && tool.eList.length)))
  9170. "
  9171. >
  9172. <el-popover
  9173. placement="top"
  9174. width="318"
  9175. trigger="hover"
  9176. >
  9177. <markScore
  9178. :loading="AIloading[toolIndex][wIndex].loading"
  9179. :markScoreVisible="markScoreVisible"
  9180. :ref="`markSco${toolIndex}${wIndex}`"
  9181. @updateLoading="updateLoading"
  9182. @updateDocSco="updateDocSco"
  9183. @refreshOther="refreshOther"
  9184. @markScoreDig="markScoreDig"
  9185. :tool="tool"
  9186. :wIndex="wIndex"
  9187. :scoCon="w"
  9188. :toolIndex="toolIndex"
  9189. :key="refreshKey"
  9190. :stage="courseType"
  9191. :task="taskCount"
  9192. :scoTit="
  9193. chapInfoList[courseType].chapterInfo[0]
  9194. .taskJson[taskCount].eList
  9195. "
  9196. >
  9197. </markScore>
  9198. <div
  9199. @click="
  9200. markScoreDig2(
  9201. w.sName,
  9202. worksStudent,
  9203. w.userid,
  9204. toolIndex,
  9205. chapInfoList[courseType].chapterInfo[0]
  9206. .taskJson[taskCount].eList,
  9207. AIloading[toolIndex][wIndex].loading,
  9208. tool
  9209. )
  9210. "
  9211. slot="reference"
  9212. >
  9213. <span v-if="AIloading[toolIndex][wIndex].sco">
  9214. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9215. </span>
  9216. <span v-else>
  9217. 评分
  9218. </span>
  9219. </div>
  9220. </el-popover>
  9221. </div>
  9222. <img
  9223. class="deleteImg"
  9224. src="../../assets/deleteworks.png"
  9225. v-if="
  9226. w.userid == userid || tType == 1 || tType == 4
  9227. "
  9228. @click.stop="deleteWorks(w.wid)"
  9229. alt
  9230. />
  9231. </div>
  9232. <div class="worksName">
  9233. <div>{{ w.sName }}</div>
  9234. </div>
  9235. </div>
  9236. </div>
  9237. </div>
  9238. <div
  9239. v-if="
  9240. tType &&
  9241. ((tType == 2 && sIsOpen == true) ||
  9242. tType == 1 ||
  9243. tType == 4) &&
  9244. tool.tool.indexOf(52) != -1
  9245. "
  9246. class="worksBox"
  9247. >
  9248. <div
  9249. class="zuoyeYulan"
  9250. style="display: flex;justify-content: space-between;align-items: center;"
  9251. v-if="
  9252. worksStudent.length &&
  9253. worksStudent[toolIndex].length > 0
  9254. "
  9255. >
  9256. <div class="worksTop">
  9257. <div>作业预览</div>
  9258. <div
  9259. class="corOpen"
  9260. @click="contract(toolIndex)"
  9261. v-if="
  9262. isCloseList[toolIndex].isCloseBoolean &&
  9263. isCloseList[toolIndex].isClose == 0
  9264. "
  9265. >
  9266. 折叠
  9267. </div>
  9268. <div
  9269. class="corOpen"
  9270. @click="contract(toolIndex)"
  9271. v-if="isCloseList[toolIndex].isClose == 1"
  9272. >
  9273. 展开
  9274. </div>
  9275. </div>
  9276. <div
  9277. style="display: flex;"
  9278. v-if="
  9279. (courseDetail.userid == userid ||
  9280. (courseDetail.course_teacher &&
  9281. courseDetail.course_teacher.indexOf(userid) !=
  9282. -1)) &&
  9283. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9284. taskCount
  9285. ].eList &&
  9286. chapInfoList[courseType].chapterInfo[0].taskJson[
  9287. taskCount
  9288. ].eList.length) ||
  9289. (tool.eList && tool.eList.length)) &&
  9290. courseDetail.state == 6
  9291. "
  9292. >
  9293. <!-- <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 == 6"> -->
  9294. <div
  9295. @click="
  9296. resetLoopEva(
  9297. worksStudent[toolIndex],
  9298. chapInfoList[courseType].chapterInfo[0].taskJson[
  9299. taskCount
  9300. ].eList,
  9301. courseType,
  9302. taskCount,
  9303. toolIndex,
  9304. tool.toolDetail,
  9305. tool
  9306. )
  9307. "
  9308. style="margin-right:10px"
  9309. class="ScoreBtn"
  9310. >
  9311. 一键重置
  9312. </div>
  9313. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9314. <img
  9315. src="../../assets/icon/newIcons/rootImg.png"
  9316. alt=""
  9317. />
  9318. AI评分
  9319. </div>
  9320. <div
  9321. class="ScoreBtn"
  9322. v-else-if="!loopLoading[toolIndex].loading"
  9323. @click="
  9324. loopEva(
  9325. worksStudent[toolIndex],
  9326. chapInfoList[courseType].chapterInfo[0].taskJson[
  9327. taskCount
  9328. ].eList,
  9329. courseType,
  9330. taskCount,
  9331. toolIndex,
  9332. tool.toolDetail,
  9333. chapInfoList[courseType].chapterInfo[0].taskJson[
  9334. taskCount
  9335. ].taskDetail,
  9336. tool
  9337. )
  9338. "
  9339. >
  9340. <img
  9341. src="../../assets/icon/newIcons/rootImg.png"
  9342. alt=""
  9343. />
  9344. AI评分
  9345. </div>
  9346. <div class="ScoreBtn" v-else>
  9347. <img
  9348. src="../../assets/icon/newIcons/rootImg.png"
  9349. alt=""
  9350. />
  9351. 正在评分
  9352. </div>
  9353. </div>
  9354. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9355. </div>
  9356. <div
  9357. :id="'tool-' + toolIndex"
  9358. :style="{
  9359. height:
  9360. isCloseList[toolIndex].isClose == 1
  9361. ? retrnToolHeight('tool-' + toolIndex)
  9362. : 'auto',
  9363. overflow:
  9364. isCloseList[toolIndex].isClose == 1
  9365. ? 'hidden'
  9366. : 'unset'
  9367. }"
  9368. class="worksDetailBox"
  9369. v-if="
  9370. worksStudent.length &&
  9371. worksStudent[toolIndex].length > 0
  9372. "
  9373. >
  9374. <div
  9375. class="works"
  9376. style="
  9377. width: 200px;
  9378. height: 140px;
  9379. margin: 10px 10px 10px 0;
  9380. border-radius: 15px;
  9381. box-shadow: 0 0 6px 1px #dfdada;
  9382. "
  9383. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9384. :key="wIndex"
  9385. :class="w.type == 1 ? 'isTypeOne' : ''"
  9386. >
  9387. <div class="workImg">
  9388. <img :src="word" @click="openWord(w)" alt />
  9389. <!-- @click="openFile(w.works)" -->
  9390. <div
  9391. class="answerScore"
  9392. v-if="w.score"
  9393. @click.stop="openScore(w)"
  9394. :class="{
  9395. rightW:
  9396. w.userid == userid ||
  9397. tType == 1 ||
  9398. tType == 4 ||
  9399. w.ateacher == userid
  9400. }"
  9401. >
  9402. {{ JSON.parse(w.score).wScore }}分
  9403. </div>
  9404. <div
  9405. class="answerScore"
  9406. @click.stop="openScore(w)"
  9407. v-else-if="
  9408. courseDetail.userid == userid &&
  9409. courseDetail.state != 6 &&
  9410. chapInfoList[courseType].chapterInfo[0]
  9411. .taskJson[taskCount].eList &&
  9412. chapInfoList[courseType].chapterInfo[0]
  9413. .taskJson[taskCount].eList.length
  9414. "
  9415. :class="{
  9416. rightW:
  9417. w.userid == userid ||
  9418. tType == 1 ||
  9419. tType == 4 ||
  9420. w.ateacher == userid
  9421. }"
  9422. >
  9423. 评分
  9424. </div>
  9425. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  9426. <div
  9427. v-else-if="
  9428. (courseDetail.userid == userid ||
  9429. (courseDetail.course_teacher &&
  9430. courseDetail.course_teacher.indexOf(userid) !=
  9431. -1) ||
  9432. (w.userid == userid && sIsOpen)) &&
  9433. courseDetail.state == 6 &&
  9434. ((chapInfoList[courseType].chapterInfo[0]
  9435. .taskJson[taskCount].eList &&
  9436. chapInfoList[courseType].chapterInfo[0]
  9437. .taskJson[taskCount].eList.length) ||
  9438. (tool.eList && tool.eList.length))
  9439. "
  9440. >
  9441. <!-- <div
  9442. class="answerScore"
  9443. @click="markScoreDig(w.userid,toolIndex)"
  9444. :class="{
  9445. rightW:
  9446. w.userid == userid ||
  9447. tType == 1 ||
  9448. tType == 4 ||
  9449. w.ateacher == userid,
  9450. }"
  9451. >
  9452. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  9453. </div> -->
  9454. <!-- @show="handleShow(toolIndex,wIndex)"
  9455. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  9456. <el-popover
  9457. placement="top"
  9458. width="318"
  9459. :disabled="AIloading[toolIndex][wIndex].loading"
  9460. trigger="hover"
  9461. >
  9462. <markScore
  9463. :loading="AIloading[toolIndex][wIndex].loading"
  9464. :markScoreVisible="markScoreVisible"
  9465. :ref="`markSco${toolIndex}${wIndex}`"
  9466. @updateLoading="updateLoading"
  9467. @updateDocSco="updateDocSco"
  9468. @refreshOther="refreshOther"
  9469. @markScoreDig="markScoreDig"
  9470. :tool="tool"
  9471. :wIndex="wIndex"
  9472. :scoCon="w"
  9473. :toolIndex="toolIndex"
  9474. :key="refreshKey"
  9475. :stage="courseType"
  9476. :task="taskCount"
  9477. :scoTit="
  9478. chapInfoList[courseType].chapterInfo[0]
  9479. .taskJson[taskCount].eList
  9480. "
  9481. >
  9482. </markScore>
  9483. <div
  9484. class="answerScore"
  9485. @click="
  9486. markScoreDig2(
  9487. w.sName,
  9488. worksStudent,
  9489. w.userid,
  9490. toolIndex,
  9491. chapInfoList[courseType].chapterInfo[0]
  9492. .taskJson[taskCount].eList,
  9493. AIloading[toolIndex][wIndex].loading,
  9494. tool
  9495. )
  9496. "
  9497. slot="reference"
  9498. :class="{
  9499. rightW:
  9500. w.userid == userid ||
  9501. tType == 1 ||
  9502. tType == 4 ||
  9503. w.ateacher == userid
  9504. }"
  9505. >
  9506. <span v-if="AIloading[toolIndex][wIndex].sco">
  9507. {{
  9508. AIloading[toolIndex][wIndex].loading
  9509. ? "评分中"
  9510. : AIloading[toolIndex][wIndex].sco + "分"
  9511. }}
  9512. </span>
  9513. <span v-else>
  9514. {{
  9515. AIloading[toolIndex][wIndex].loading
  9516. ? "评分中"
  9517. : "评分"
  9518. }}
  9519. </span>
  9520. </div>
  9521. </el-popover>
  9522. </div>
  9523. <img
  9524. class="deleteImg"
  9525. src="../../assets/deleteworks.png"
  9526. v-if="
  9527. w.userid == userid || tType == 1 || tType == 4
  9528. "
  9529. @click.stop="deleteWorks(w.wid)"
  9530. alt
  9531. />
  9532. </div>
  9533. <div class="comment" style="min-width: 200px">
  9534. <div class="worksName">
  9535. <div>{{ w.sName }}</div>
  9536. </div>
  9537. <div class="commentList">
  9538. <div class="commentList">
  9539. <div
  9540. class="commentImg"
  9541. @click="
  9542. isLikes(
  9543. w.wid,
  9544. userid,
  9545. 1,
  9546. null,
  9547. w.isLikes,
  9548. w.sName
  9549. )
  9550. "
  9551. >
  9552. <img
  9553. :src="w.isLikes == true ? likes : noLikes"
  9554. alt=""
  9555. />
  9556. </div>
  9557. <div>{{ w.likesCount }}</div>
  9558. </div>
  9559. <div class="commentList" style="margin-right: 15px">
  9560. <div
  9561. class="commentImg"
  9562. @click="commentOther(w, toolIndex, wIndex)"
  9563. >
  9564. <img
  9565. src="../../assets/icon/comment/comment.png"
  9566. alt=""
  9567. />
  9568. </div>
  9569. <div>{{ w.commentCount }}</div>
  9570. </div>
  9571. </div>
  9572. </div>
  9573. </div>
  9574. </div>
  9575. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9576. 未提交
  9577. </div>
  9578. <div
  9579. class="noWorksS"
  9580. v-if="noWorksS && noWorksS[toolIndex].length"
  9581. >
  9582. <div
  9583. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9584. :key="sIndex"
  9585. class="noWorksName"
  9586. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  9587. >
  9588. <el-tooltip
  9589. effect="dark"
  9590. :content="s.student"
  9591. placement="top"
  9592. >
  9593. <span>{{ s.student }}</span>
  9594. </el-tooltip>
  9595. </div>
  9596. </div>
  9597. </div>
  9598. <div
  9599. v-if="
  9600. tType &&
  9601. tType == 2 &&
  9602. !sIsOpen &&
  9603. tool.tool.indexOf(52) != -1
  9604. "
  9605. class="worksBox"
  9606. >
  9607. <div
  9608. class="zuoyeYulan"
  9609. v-if="workStudent[toolIndex].length > 0"
  9610. >
  9611. <span class="worksTitle">作业预览</span>
  9612. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9613. </div>
  9614. <div
  9615. class="worksDetailBox"
  9616. v-if="workStudent[toolIndex].length > 0"
  9617. >
  9618. <div
  9619. class="works"
  9620. style="
  9621. width: 200px;
  9622. height: 140px;
  9623. margin: 10px 10px 10px 0;
  9624. box-shadow: 0 0 6px 1px #dfdada;
  9625. "
  9626. v-for="(w, wIndex) in workStudent[toolIndex]"
  9627. :key="wIndex"
  9628. >
  9629. <div class="workImg">
  9630. <img :src="word" @click="openWord(w)" alt />
  9631. <div
  9632. class="answerScore"
  9633. v-if="w.score"
  9634. @click.stop="openScore(w)"
  9635. :class="{
  9636. rightW:
  9637. w.userid == userid || tType == 1 || tType == 4
  9638. }"
  9639. >
  9640. {{ JSON.parse(w.score).wScore }}分
  9641. </div>
  9642. <div
  9643. class="answerScore"
  9644. @click.stop="openScore(w)"
  9645. v-else-if="courseDetail.userid == userid"
  9646. :class="{
  9647. rightW:
  9648. w.userid == userid || tType == 1 || tType == 4
  9649. }"
  9650. >
  9651. 评分
  9652. </div>
  9653. <div
  9654. class="stuLookScore"
  9655. v-if="
  9656. w.userid == userid ||
  9657. (tType == 1 &&
  9658. courseDetail.state == 6 &&
  9659. ((chapInfoList[courseType].chapterInfo[0]
  9660. .taskJson[taskCount].eList &&
  9661. chapInfoList[courseType].chapterInfo[0]
  9662. .taskJson[taskCount].eList.length) ||
  9663. (tool.eList && tool.eList.length)))
  9664. "
  9665. >
  9666. <el-popover
  9667. placement="top"
  9668. width="318"
  9669. trigger="hover"
  9670. >
  9671. <markScore
  9672. :loading="AIloading[toolIndex][wIndex].loading"
  9673. :markScoreVisible="markScoreVisible"
  9674. :ref="`markSco${toolIndex}${wIndex}`"
  9675. @updateLoading="updateLoading"
  9676. @updateDocSco="updateDocSco"
  9677. @refreshOther="refreshOther"
  9678. @markScoreDig="markScoreDig"
  9679. :tool="tool"
  9680. :wIndex="wIndex"
  9681. :scoCon="w"
  9682. :toolIndex="toolIndex"
  9683. :key="refreshKey"
  9684. :stage="courseType"
  9685. :task="taskCount"
  9686. :scoTit="
  9687. chapInfoList[courseType].chapterInfo[0]
  9688. .taskJson[taskCount].eList
  9689. "
  9690. >
  9691. </markScore>
  9692. <div
  9693. @click="
  9694. markScoreDig2(
  9695. w.sName,
  9696. worksStudent,
  9697. w.userid,
  9698. toolIndex,
  9699. chapInfoList[courseType].chapterInfo[0]
  9700. .taskJson[taskCount].eList,
  9701. AIloading[toolIndex][wIndex].loading,
  9702. tool
  9703. )
  9704. "
  9705. slot="reference"
  9706. >
  9707. <span v-if="AIloading[toolIndex][wIndex].sco">
  9708. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9709. </span>
  9710. <span v-else>
  9711. 评分
  9712. </span>
  9713. </div>
  9714. </el-popover>
  9715. </div>
  9716. <img
  9717. class="deleteImg"
  9718. src="../../assets/deleteworks.png"
  9719. v-if="
  9720. w.userid == userid || tType == 1 || tType == 4
  9721. "
  9722. @click.stop="deleteWorks(w.wid)"
  9723. alt
  9724. />
  9725. </div>
  9726. <div class="worksName">
  9727. <div>{{ w.sName }}</div>
  9728. </div>
  9729. </div>
  9730. </div>
  9731. </div>
  9732. <div
  9733. v-if="tool.tool.indexOf(49) != -1"
  9734. class="xuan_right_box"
  9735. style="margin: 0 15px 0 25px; width: 93%"
  9736. >
  9737. <div
  9738. v-if="courseDetail.userid == userid"
  9739. style="
  9740. display: flex;
  9741. justify-content: flex-end;
  9742. margin-right: 10px;
  9743. "
  9744. >
  9745. <el-button
  9746. type="primary"
  9747. size="small"
  9748. @click="addTools(49, toolIndex, taskCount)"
  9749. >分组设置</el-button
  9750. >
  9751. </div>
  9752. <div
  9753. v-if="groupStudentUid[toolIndex]"
  9754. class="group_staic_box"
  9755. >
  9756. <div
  9757. v-for="(gp, gd) in tool.groupJson.group"
  9758. :key="gd"
  9759. class="group_staic"
  9760. >
  9761. <span> {{ gp.name }}</span>
  9762. <span>
  9763. 目前人数{{
  9764. groupStudentUid[toolIndex][gd].length
  9765. }}人</span
  9766. >
  9767. </div>
  9768. </div>
  9769. </div>
  9770. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  9771. <div
  9772. class="zuoyeYulan"
  9773. v-if="
  9774. worksStudent.length &&
  9775. worksStudent[toolIndex].length > 0
  9776. "
  9777. >
  9778. <span class="worksTitle">作业预览</span>
  9779. </div>
  9780. <div>
  9781. <div
  9782. class="group_workBox"
  9783. v-for="(g, gindex) in tool.groupJson.group"
  9784. :key="gindex"
  9785. >
  9786. <div
  9787. class="group_box"
  9788. v-if="
  9789. groupStudentUid[toolIndex] &&
  9790. worksStudent[toolIndex] &&
  9791. (worksStudent[toolIndex][gindex].length ||
  9792. groupStudentUid[toolIndex][gindex].indexOf(
  9793. userid
  9794. ) != -1)
  9795. "
  9796. >
  9797. <div class="group_title">
  9798. <el-tooltip
  9799. class="item"
  9800. effect="light"
  9801. :content="g.name"
  9802. placement="top"
  9803. >
  9804. <div class="group_name">{{ g.name }}</div>
  9805. </el-tooltip>
  9806. <el-button
  9807. type="primary"
  9808. v-if="
  9809. groupStudentUid[toolIndex][gindex].indexOf(
  9810. userid
  9811. ) != -1
  9812. "
  9813. @click="groupUpload(toolIndex, taskCount, gindex)"
  9814. >上传作业</el-button
  9815. >
  9816. </div>
  9817. <div class="group_work">
  9818. <div
  9819. class="works"
  9820. style="
  9821. width: 200px;
  9822. height: 140px;
  9823. margin: 10px 10px 10px 0;
  9824. border-radius: 15px;
  9825. box-shadow: 0 0 6px 1px #dfdada;
  9826. "
  9827. v-for="(w, wIndex) in worksStudent[toolIndex][
  9828. gindex
  9829. ]"
  9830. :key="wIndex"
  9831. :class="w.type == 1 ? 'isTypeOne' : ''"
  9832. >
  9833. <div class="workImg" v-if="w.type == 0">
  9834. <img
  9835. :src="w.works"
  9836. @click="previewImg(w.works, w)"
  9837. alt
  9838. />
  9839. <div
  9840. class="answerScore"
  9841. v-if="w.score"
  9842. @click.stop="openScore(w)"
  9843. :class="{
  9844. rightW:
  9845. w.userid == userid ||
  9846. tType == 1 ||
  9847. tType == 4 ||
  9848. w.ateacher == userid
  9849. }"
  9850. >
  9851. {{ JSON.parse(w.score).wScore }}分
  9852. </div>
  9853. <div
  9854. class="answerScore"
  9855. @click.stop="openScore(w)"
  9856. v-else-if="courseDetail.userid == userid"
  9857. :class="{
  9858. rightW:
  9859. w.userid == userid ||
  9860. tType == 1 ||
  9861. tType == 4 ||
  9862. w.ateacher == userid
  9863. }"
  9864. >
  9865. 评分
  9866. </div>
  9867. <img
  9868. class="deleteImg"
  9869. src="../../assets/deleteworks.png"
  9870. v-if="
  9871. w.userid == userid ||
  9872. tType == 1 ||
  9873. tType == 4
  9874. "
  9875. @click.stop="deleteWorks(w.wid)"
  9876. alt
  9877. />
  9878. </div>
  9879. <div class="workImg" v-if="w.type == 1">
  9880. <img
  9881. :src="word"
  9882. @click="openFile(w.works)"
  9883. alt
  9884. />
  9885. <!-- @click="openFile(w.works)" -->
  9886. <div
  9887. class="answerScore"
  9888. v-if="w.score"
  9889. @click.stop="openScore(w)"
  9890. :class="{
  9891. rightW:
  9892. w.userid == userid ||
  9893. tType == 1 ||
  9894. tType == 4 ||
  9895. w.ateacher == userid
  9896. }"
  9897. >
  9898. {{ JSON.parse(w.score).wScore }}分
  9899. </div>
  9900. <div
  9901. class="answerScore"
  9902. @click.stop="openScore(w)"
  9903. v-else-if="courseDetail.userid == userid"
  9904. :class="{
  9905. rightW:
  9906. w.userid == userid ||
  9907. tType == 1 ||
  9908. tType == 4 ||
  9909. w.ateacher == userid
  9910. }"
  9911. >
  9912. 评分
  9913. </div>
  9914. <img
  9915. class="deleteImg"
  9916. src="../../assets/deleteworks.png"
  9917. v-if="
  9918. w.userid == userid ||
  9919. tType == 1 ||
  9920. tType == 4
  9921. "
  9922. @click.stop="deleteWorks(w.wid)"
  9923. alt
  9924. />
  9925. </div>
  9926. <div class="workImg" v-if="w.type == 3">
  9927. <img
  9928. style="cursor: pointer"
  9929. :src="video"
  9930. @click="openVideo(w)"
  9931. alt
  9932. />
  9933. <!-- @click="openVideo(w.works)" -->
  9934. <div
  9935. class="answerScore"
  9936. v-if="w.score"
  9937. @click.stop="openScore(w)"
  9938. :class="{
  9939. rightW:
  9940. w.userid == userid ||
  9941. tType == 1 ||
  9942. tType == 4 ||
  9943. w.ateacher == userid
  9944. }"
  9945. >
  9946. {{ JSON.parse(w.score).wScore }}分
  9947. </div>
  9948. <div
  9949. class="answerScore"
  9950. @click.stop="openScore(w)"
  9951. v-else-if="courseDetail.userid == userid"
  9952. :class="{
  9953. rightW:
  9954. w.userid == userid ||
  9955. tType == 1 ||
  9956. tType == 4 ||
  9957. w.ateacher == userid
  9958. }"
  9959. >
  9960. 评分
  9961. </div>
  9962. <img
  9963. class="deleteImg"
  9964. src="../../assets/deleteworks.png"
  9965. v-if="
  9966. w.userid == userid ||
  9967. tType == 1 ||
  9968. tType == 4
  9969. "
  9970. @click.stop="deleteWorks(w.wid)"
  9971. alt
  9972. />
  9973. </div>
  9974. <div class="workImg" v-if="w.type == 12">
  9975. <img
  9976. style="cursor: pointer"
  9977. :src="word2"
  9978. @click="downloadFile(w.works)"
  9979. alt
  9980. />
  9981. <!-- @click="openVideo(w.works)" -->
  9982. <div
  9983. class="answerScore"
  9984. v-if="w.score"
  9985. @click.stop="openScore(w)"
  9986. :class="{
  9987. rightW:
  9988. w.userid == userid ||
  9989. tType == 1 ||
  9990. tType == 4 ||
  9991. w.ateacher == userid
  9992. }"
  9993. >
  9994. {{ JSON.parse(w.score).wScore }}分
  9995. </div>
  9996. <div
  9997. class="answerScore"
  9998. @click.stop="openScore(w)"
  9999. v-else-if="courseDetail.userid == userid"
  10000. :class="{
  10001. rightW:
  10002. w.userid == userid ||
  10003. tType == 1 ||
  10004. tType == 4 ||
  10005. w.ateacher == userid
  10006. }"
  10007. >
  10008. 评分
  10009. </div>
  10010. <img
  10011. class="deleteImg"
  10012. src="../../assets/deleteworks.png"
  10013. v-if="
  10014. w.userid == userid ||
  10015. tType == 1 ||
  10016. tType == 4
  10017. "
  10018. @click.stop="deleteWorks(w.wid)"
  10019. alt
  10020. />
  10021. </div>
  10022. <div class="comment" style="min-width: 200px">
  10023. <div class="worksName">
  10024. <div>{{ w.sName }}</div>
  10025. </div>
  10026. <div class="commentList">
  10027. <div class="commentList">
  10028. <div
  10029. class="commentImg"
  10030. @click="
  10031. isLikes(
  10032. w.wid,
  10033. userid,
  10034. 1,
  10035. null,
  10036. w.isLikes,
  10037. w.sName
  10038. )
  10039. "
  10040. >
  10041. <img
  10042. :src="
  10043. w.isLikes == true ? likes : noLikes
  10044. "
  10045. alt=""
  10046. />
  10047. </div>
  10048. <div>{{ w.likesCount }}</div>
  10049. </div>
  10050. <div
  10051. class="commentList"
  10052. style="margin-right: 15px"
  10053. >
  10054. <div
  10055. class="commentImg"
  10056. @click="
  10057. commentOther(
  10058. w,
  10059. toolIndex,
  10060. wIndex,
  10061. gindex
  10062. )
  10063. "
  10064. >
  10065. <img
  10066. src="../../assets/icon/comment/comment.png"
  10067. alt=""
  10068. />
  10069. </div>
  10070. <div>{{ w.commentCount }}</div>
  10071. </div>
  10072. </div>
  10073. </div>
  10074. </div>
  10075. </div>
  10076. </div>
  10077. </div>
  10078. </div>
  10079. </div>
  10080. <div
  10081. style="width:92%;margin: 0 0 0 40px;"
  10082. v-if="
  10083. courseDetail.state == 6 && tool.eList && tool.eList.length
  10084. "
  10085. >
  10086. <evaTable :eList="tool.eList"></evaTable>
  10087. </div>
  10088. </div>
  10089. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10090. 上传文件
  10091. <input
  10092. type="file"
  10093. accept="image/png, image/gif, image/jpeg"
  10094. style="display: none"
  10095. @change="beforeUpload1($event, 2, index)"
  10096. />
  10097. </div>-->
  10098. </div>
  10099. </div>
  10100. <!-- <div
  10101. class="vedioBox"
  10102. style="margin-top: 10px"
  10103. v-if="
  10104. courseDetail.userid == userid ||
  10105. (courseDetail.course_teacher &&
  10106. courseDetail.course_teacher.indexOf(userid) != -1)
  10107. "
  10108. :style="{
  10109. borderRadius:
  10110. !(
  10111. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10112. .toolChoose[0].tool &&
  10113. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10114. .toolChoose[0].tool.length > 0
  10115. ) &&
  10116. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10117. .taskDetail == '' &&
  10118. vChapterData[taskCount].length == 0 &&
  10119. fileC[taskCount].length == 0
  10120. ? '0 0 20px 20px'
  10121. : '20px',
  10122. }"
  10123. >
  10124. <div
  10125. class="queTop"
  10126. @click="isClose = !isClose"
  10127. style="
  10128. padding: 15px 0 15px 37px;
  10129. justify-content: space-between;
  10130. "
  10131. >
  10132. <div class="queTopTitle">新增工具</div>
  10133. <div class="queTopRight">
  10134. <div class="queTopClose" v-if="isClose == 0">
  10135. 展开
  10136. <div class="closeImg">
  10137. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10138. </div>
  10139. </div>
  10140. <div class="queTopClose" v-if="isClose == 1">
  10141. 折叠
  10142. <div class="openImg">
  10143. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10144. </div>
  10145. </div>
  10146. <el-button
  10147. style="margin: 0 30px 0 auto"
  10148. type="primary"
  10149. size="small"
  10150. v-if="isClose == 1 && checktoolArray.length > 0"
  10151. @click.stop="addToolChoose"
  10152. >确定</el-button
  10153. >
  10154. </div>
  10155. </div>
  10156. <div
  10157. class="tool_work_box"
  10158. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10159. >
  10160. <div class="tool_box">
  10161. <div class="tool_type_box">
  10162. <div class="chooseWho">
  10163. <div
  10164. :class="toolType == 0 ? 'isChooseActive' : ''"
  10165. @click="(toolType = 0), $forceUpdate()"
  10166. >
  10167. 互动类
  10168. </div>
  10169. <div
  10170. :class="toolType == 1 ? 'isChooseActive' : ''"
  10171. @click="(toolType = 1), $forceUpdate()"
  10172. >
  10173. 思维类
  10174. </div>
  10175. <div
  10176. :class="toolType == 2 ? 'isChooseActive' : ''"
  10177. @click="(toolType = 2), $forceUpdate()"
  10178. >
  10179. 测评类
  10180. </div>
  10181. <div
  10182. :class="toolType == 3 ? 'isChooseActive' : ''"
  10183. @click="(toolType = 3), $forceUpdate()"
  10184. >
  10185. 编程类
  10186. </div>
  10187. <div
  10188. :class="toolType == 5 ? 'isChooseActive' : ''"
  10189. @click="(toolType = 5), $forceUpdate()"
  10190. >
  10191. 学科类
  10192. </div>
  10193. </div>
  10194. </div>
  10195. <div>
  10196. <div class="toolSort" v-if="toolType == 0">
  10197. <div class="tool">
  10198. <div class="whiteBIcon" @click="addTools2(10)">
  10199. <img
  10200. src="../../assets/icon/thirdToolList/time.png"
  10201. alt
  10202. />
  10203. <div style="margin: 5px 0">倒计时</div>
  10204. </div>
  10205. <div class="check" @click="addTools2(10)">
  10206. <img
  10207. src="../../assets/icon/checkNo.png"
  10208. alt
  10209. v-if="checktoolArray.indexOf(10) == -1"
  10210. />
  10211. <div class="checkDiv" v-else>
  10212. <img src="../../assets/icon/checkedIs.png" alt /><span
  10213. >已选择</span
  10214. >
  10215. </div>
  10216. </div>
  10217. </div>
  10218. <div class="tool">
  10219. <div class="whiteBIcon" @click="addTools2(65)">
  10220. <img
  10221. src="../../assets/icon/firstToolList/pickPeople.png"
  10222. alt
  10223. />
  10224. <div style="margin: 5px 0">挑人</div>
  10225. </div>
  10226. <div class="check" @click="addTools2(65)">
  10227. <img
  10228. src="../../assets/icon/checkNo.png"
  10229. alt
  10230. v-if="checktoolArray.indexOf(65) == -1"
  10231. />
  10232. <div class="checkDiv" v-else>
  10233. <img src="../../assets/icon/checkedIs.png" alt /><span
  10234. >已选择</span
  10235. >
  10236. </div>
  10237. </div>
  10238. </div>
  10239. </div>
  10240. <div class="toolSort" v-if="toolType == 1">
  10241. <div class="tool">
  10242. <div class="whiteBIcon" @click="addTools2(7)">
  10243. <img
  10244. src="../../assets/icon/secondToolList/mindNetwork.png"
  10245. alt
  10246. />
  10247. <div style="margin: 5px 0">思维网格</div>
  10248. </div>
  10249. <div class="check" @click="addTools2(7)">
  10250. <img
  10251. src="../../assets/icon/checkNo.png"
  10252. alt
  10253. v-if="checktoolArray.indexOf(7) == -1"
  10254. />
  10255. <div class="checkDiv" v-else>
  10256. <img src="../../assets/icon/checkedIs.png" alt /><span
  10257. >已选择</span
  10258. >
  10259. </div>
  10260. </div>
  10261. </div>
  10262. <div class="tool">
  10263. <div class="whiteBIcon" @click="addTools2(1)">
  10264. <img
  10265. src="../../assets/icon/secondToolList/whiteBoard.png"
  10266. alt
  10267. />
  10268. <div style="margin: 5px 0">电子白板</div>
  10269. </div>
  10270. <div class="check" @click="addTools2(1)">
  10271. <img
  10272. src="../../assets/icon/checkNo.png"
  10273. alt
  10274. v-if="checktoolArray.indexOf(1) == -1"
  10275. />
  10276. <div class="checkDiv" v-else>
  10277. <img src="../../assets/icon/checkedIs.png" alt /><span
  10278. >已选择</span
  10279. >
  10280. </div>
  10281. </div>
  10282. </div>
  10283. <div class="tool">
  10284. <div class="whiteBIcon" @click="addTools2(52)">
  10285. <img
  10286. src="../../assets/icon/fourthToolList/text.png"
  10287. alt
  10288. />
  10289. <div style="margin: 5px 0">文档</div>
  10290. </div>
  10291. <div class="check" @click="addTools2(52)">
  10292. <img
  10293. src="../../assets/icon/checkNo.png"
  10294. alt
  10295. v-if="checktoolArray.indexOf(52) == -1"
  10296. />
  10297. <div class="checkDiv" v-else>
  10298. <img src="../../assets/icon/checkedIs.png" alt /><span
  10299. >已选择</span
  10300. >
  10301. </div>
  10302. </div>
  10303. </div>
  10304. <div class="tool">
  10305. <div class="whiteBIcon" @click="addTools2(3)">
  10306. <img
  10307. src="../../assets/icon/secondToolList/mindMapping.png"
  10308. alt
  10309. />
  10310. <div style="margin: 5px 0">思维导图</div>
  10311. </div>
  10312. <div class="check" @click="addTools2(3)">
  10313. <img
  10314. src="../../assets/icon/checkNo.png"
  10315. alt
  10316. v-if="checktoolArray.indexOf(3) == -1"
  10317. />
  10318. <div class="checkDiv" v-else>
  10319. <img src="../../assets/icon/checkedIs.png" alt /><span
  10320. >已选择</span
  10321. >
  10322. </div>
  10323. </div>
  10324. </div>
  10325. <div class="tool">
  10326. <div class="whiteBIcon" @click="addTools2(48)">
  10327. <img
  10328. src="../../assets/icon/fourthToolList/table.png"
  10329. alt
  10330. />
  10331. <div style="margin: 5px 0">表格</div>
  10332. </div>
  10333. <div class="check" @click="addTools2(48)">
  10334. <img
  10335. src="../../assets/icon/checkNo.png"
  10336. alt
  10337. v-if="checktoolArray.indexOf(48) == -1"
  10338. />
  10339. <div class="checkDiv" v-else>
  10340. <img src="../../assets/icon/checkedIs.png" alt /><span
  10341. >已选择</span
  10342. >
  10343. </div>
  10344. </div>
  10345. </div>
  10346. </div>
  10347. <div class="toolSort" v-if="toolType == 6">
  10348. <div v-show="tooC == 49">
  10349. <img
  10350. @click="addTools(tooC, toolIndex, taskCount)"
  10351. src="../../assets/icon/fourthToolList/group.png"
  10352. alt
  10353. />
  10354. <div style="margin: 5px 0">学生分组</div>
  10355. </div>
  10356. </div>
  10357. <div class="toolSort" v-if="toolType == 2">
  10358. <div class="tool">
  10359. <div class="whiteBIcon" @click="addTools2(16)">
  10360. <img
  10361. src="../../assets/icon/thirdToolList/work.png"
  10362. alt
  10363. />
  10364. <div style="margin: 5px 0">作业提交</div>
  10365. </div>
  10366. <div class="check" @click="addTools2(16)">
  10367. <img
  10368. src="../../assets/icon/checkNo.png"
  10369. alt
  10370. v-if="checktoolArray.indexOf(16) == -1"
  10371. />
  10372. <div class="checkDiv" v-else>
  10373. <img src="../../assets/icon/checkedIs.png" alt /><span
  10374. >已选择</span
  10375. >
  10376. </div>
  10377. </div>
  10378. </div>
  10379. <div class="tool">
  10380. <div class="whiteBIcon" @click="addTools2(50)">
  10381. <img
  10382. src="../../assets/icon/thirdToolList/plwork.png"
  10383. alt
  10384. />
  10385. <div style="margin: 5px 0">批量上传</div>
  10386. </div>
  10387. <div class="check" @click="addTools2(50)">
  10388. <img
  10389. src="../../assets/icon/checkNo.png"
  10390. alt
  10391. v-if="checktoolArray.indexOf(50) == -1"
  10392. />
  10393. <div class="checkDiv" v-else>
  10394. <img src="../../assets/icon/checkedIs.png" alt /><span
  10395. >已选择</span
  10396. >
  10397. </div>
  10398. </div>
  10399. </div>
  10400. </div>
  10401. <div class="toolSort" v-if="toolType == 3">
  10402. <div class="tool">
  10403. <div class="whiteBIcon" @click="addTools2(18)">
  10404. <img
  10405. src="../../assets/icon/thirdToolList/trainPlatform.png"
  10406. alt
  10407. />
  10408. <div style="margin: 5px 0">训练平台</div>
  10409. </div>
  10410. <div class="check" @click="addTools2(18)">
  10411. <img
  10412. src="../../assets/icon/checkNo.png"
  10413. alt
  10414. v-if="checktoolArray.indexOf(18) == -1"
  10415. />
  10416. <div class="checkDiv" v-else>
  10417. <img src="../../assets/icon/checkedIs.png" alt /><span
  10418. >已选择</span
  10419. >
  10420. </div>
  10421. </div>
  10422. </div>
  10423. <div class="tool">
  10424. <div class="whiteBIcon" @click="addTools2(21)">
  10425. <img
  10426. src="../../assets/icon/fourthToolList/program.png"
  10427. alt
  10428. />
  10429. <div style="margin: 5px 0">AIoT Blockly</div>
  10430. </div>
  10431. <div class="check" @click="addTools2(21)">
  10432. <img
  10433. src="../../assets/icon/checkNo.png"
  10434. alt
  10435. v-if="checktoolArray.indexOf(21) == -1"
  10436. />
  10437. <div class="checkDiv" v-else>
  10438. <img src="../../assets/icon/checkedIs.png" alt /><span
  10439. >已选择</span
  10440. >
  10441. </div>
  10442. </div>
  10443. </div>
  10444. <div class="tool">
  10445. <div class="whiteBIcon" @click="addTools2(23)">
  10446. <img
  10447. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  10448. alt
  10449. />
  10450. <div style="margin: 5px 0">AI Python</div>
  10451. </div>
  10452. <div class="check" @click="addTools2(23)">
  10453. <img
  10454. src="../../assets/icon/checkNo.png"
  10455. alt
  10456. v-if="checktoolArray.indexOf(23) == -1"
  10457. />
  10458. <div class="checkDiv" v-else>
  10459. <img src="../../assets/icon/checkedIs.png" alt /><span
  10460. >已选择</span
  10461. >
  10462. </div>
  10463. </div>
  10464. </div>
  10465. <div class="tool">
  10466. <div class="whiteBIcon" @click="addTools2(24)">
  10467. <img
  10468. src="../../assets/icon/fourthToolList/AIprogram.png"
  10469. alt
  10470. />
  10471. <div style="margin: 5px 0">AI Blockly</div>
  10472. </div>
  10473. <div class="check" @click="addTools2(24)">
  10474. <img
  10475. src="../../assets/icon/checkNo.png"
  10476. alt
  10477. v-if="checktoolArray.indexOf(24) == -1"
  10478. />
  10479. <div class="checkDiv" v-else>
  10480. <img src="../../assets/icon/checkedIs.png" alt /><span
  10481. >已选择</span
  10482. >
  10483. </div>
  10484. </div>
  10485. </div>
  10486. <div class="tool">
  10487. <div class="whiteBIcon" @click="addTools2(32)">
  10488. <img
  10489. src="../../assets/icon/thirdToolList/code.png"
  10490. alt
  10491. />
  10492. <div style="margin: 5px 0">源码编辑</div>
  10493. </div>
  10494. <div class="check" @click="addTools2(32)">
  10495. <img
  10496. src="../../assets/icon/checkNo.png"
  10497. alt
  10498. v-if="checktoolArray.indexOf(32) == -1"
  10499. />
  10500. <div class="checkDiv" v-else>
  10501. <img src="../../assets/icon/checkedIs.png" alt /><span
  10502. >已选择</span
  10503. >
  10504. </div>
  10505. </div>
  10506. </div>
  10507. <div class="tool">
  10508. <div class="whiteBIcon" @click="addTools2(57)">
  10509. <img
  10510. src="../../assets/icon/fourthToolList/cocopi.png"
  10511. alt
  10512. />
  10513. <div style="margin: 5px 0">CocoPi</div>
  10514. </div>
  10515. <div class="check" @click="addTools2(57)">
  10516. <img
  10517. src="../../assets/icon/checkNo.png"
  10518. alt
  10519. v-if="checktoolArray.indexOf(57) == -1"
  10520. />
  10521. <div class="checkDiv" v-else>
  10522. <img src="../../assets/icon/checkedIs.png" alt /><span
  10523. >已选择</span
  10524. >
  10525. </div>
  10526. </div>
  10527. </div>
  10528. <div class="tool">
  10529. <div class="whiteBIcon" @click="addTools2(63)">
  10530. <img
  10531. src="../../assets/icon/fourthToolList/Wood.png"
  10532. alt
  10533. />
  10534. <div style="margin: 5px 0">海龟编程</div>
  10535. </div>
  10536. <div class="check" @click="addTools2(63)">
  10537. <img
  10538. src="../../assets/icon/checkNo.png"
  10539. alt
  10540. v-if="checktoolArray.indexOf(63) == -1"
  10541. />
  10542. <div class="checkDiv" v-else>
  10543. <img src="../../assets/icon/checkedIs.png" alt /><span
  10544. >已选择</span
  10545. >
  10546. </div>
  10547. </div>
  10548. </div>
  10549. </div>
  10550. <div class="toolSort" v-if="toolType == 5">
  10551. <div class="tool">
  10552. <div class="whiteBIcon" @click="addTools2(28)">
  10553. <img
  10554. src="../../assets/icon/secondToolList/translation.png"
  10555. alt
  10556. />
  10557. <div style="margin: 5px 0">翻译</div>
  10558. </div>
  10559. <div class="check" @click="addTools2(28)">
  10560. <img
  10561. src="../../assets/icon/checkNo.png"
  10562. alt
  10563. v-if="checktoolArray.indexOf(28) == -1"
  10564. />
  10565. <div class="checkDiv" v-else>
  10566. <img src="../../assets/icon/checkedIs.png" alt /><span
  10567. >已选择</span
  10568. >
  10569. </div>
  10570. </div>
  10571. </div>
  10572. <div class="tool">
  10573. <div class="whiteBIcon" @click="addTools2(31)">
  10574. <img
  10575. src="../../assets/icon/secondToolList/networkPanel.png"
  10576. alt
  10577. />
  10578. <div style="margin: 5px 0">数字画板</div>
  10579. </div>
  10580. <div class="check" @click="addTools2(31)">
  10581. <img
  10582. src="../../assets/icon/checkNo.png"
  10583. alt
  10584. v-if="checktoolArray.indexOf(31) == -1"
  10585. />
  10586. <div class="checkDiv" v-else>
  10587. <img src="../../assets/icon/checkedIs.png" alt /><span
  10588. >已选择</span
  10589. >
  10590. </div>
  10591. </div>
  10592. </div>
  10593. <div class="tool">
  10594. <div class="whiteBIcon" @click="addTools2(39)">
  10595. <img
  10596. src="../../assets/icon/secondToolList/GeoGebra.png"
  10597. alt
  10598. />
  10599. <div style="margin: 5px 0">GeoGebra</div>
  10600. </div>
  10601. <div class="check" @click="addTools2(39)">
  10602. <img
  10603. src="../../assets/icon/checkNo.png"
  10604. alt
  10605. v-if="checktoolArray.indexOf(39) == -1"
  10606. />
  10607. <div class="checkDiv" v-else>
  10608. <img src="../../assets/icon/checkedIs.png" alt /><span
  10609. >已选择</span
  10610. >
  10611. </div>
  10612. </div>
  10613. </div>
  10614. <div class="tool">
  10615. <div class="whiteBIcon" @click="addTools2(66)">
  10616. <img
  10617. src="../../assets/icon/secondToolList/formulaEdi.png"
  10618. alt
  10619. />
  10620. <div style="margin: 5px 0">公式编辑</div>
  10621. </div>
  10622. <div class="check" @click="addTools2(66)">
  10623. <img
  10624. src="../../assets/icon/checkNo.png"
  10625. alt
  10626. v-if="checktoolArray.indexOf(66) == -1"
  10627. />
  10628. <div class="checkDiv" v-else>
  10629. <img src="../../assets/icon/checkedIs.png" alt /><span
  10630. >已选择</span
  10631. >
  10632. </div>
  10633. </div>
  10634. </div>
  10635. <div class="tool">
  10636. <div class="whiteBIcon" @click="addTools2(67)">
  10637. <img
  10638. src="../../assets/icon/secondToolList/molStr.png"
  10639. alt
  10640. />
  10641. <div style="margin: 5px 0">分子结构</div>
  10642. </div>
  10643. <div class="check" @click="addTools2(67)">
  10644. <img
  10645. src="../../assets/icon/checkNo.png"
  10646. alt
  10647. v-if="checktoolArray.indexOf(67) == -1"
  10648. />
  10649. <div class="checkDiv" v-else>
  10650. <img src="../../assets/icon/checkedIs.png" alt /><span
  10651. >已选择</span
  10652. >
  10653. </div>
  10654. </div>
  10655. </div>
  10656. <div class="tool">
  10657. <div class="whiteBIcon" @click="addTools2(68)">
  10658. <img
  10659. src="../../assets/icon/secondToolList/timeAxis.png"
  10660. alt
  10661. />
  10662. <div style="margin: 5px 0">时间轴</div>
  10663. </div>
  10664. <div class="check" @click="addTools2(68)">
  10665. <img
  10666. src="../../assets/icon/checkNo.png"
  10667. alt
  10668. v-if="checktoolArray.indexOf(68) == -1"
  10669. />
  10670. <div class="checkDiv" v-else>
  10671. <img src="../../assets/icon/checkedIs.png" alt /><span
  10672. >已选择</span
  10673. >
  10674. </div>
  10675. </div>
  10676. </div>
  10677. </div>
  10678. <div class="toolSort" v-if="toolType == 7">
  10679. <div class="tool">
  10680. <div class="whiteBIcon" @click="addTools2(40)">
  10681. <img
  10682. src="../../assets/icon/secondToolList/eval.png"
  10683. alt
  10684. />
  10685. <div style="margin: 5px 0">个人评价</div>
  10686. </div>
  10687. <div class="check" @click="addTools2(40)">
  10688. <img
  10689. src="../../assets/icon/checkNo.png"
  10690. alt
  10691. v-if="checktoolArray.indexOf(40) == -1"
  10692. />
  10693. <div class="checkDiv" v-else>
  10694. <img src="../../assets/icon/checkedIs.png" alt /><span
  10695. >已选择</span
  10696. >
  10697. </div>
  10698. </div>
  10699. </div>
  10700. </div>
  10701. <div class="toolSort" v-if="toolType == 4">
  10702. <div class="tool">
  10703. <div class="whiteBIcon" @click="addTools2(26)">
  10704. <img
  10705. src="../../assets/icon/thirdToolList/courseDesign.png"
  10706. alt
  10707. />
  10708. <div style="margin: 5px 0">课程设计</div>
  10709. </div>
  10710. <div class="check" @click="addTools2(26)">
  10711. <img
  10712. src="../../assets/icon/checkNo.png"
  10713. alt
  10714. v-if="checktoolArray.indexOf(26) == -1"
  10715. />
  10716. <div class="checkDiv" v-else>
  10717. <img src="../../assets/icon/checkedIs.png" alt /><span
  10718. >已选择</span
  10719. >
  10720. </div>
  10721. </div>
  10722. </div>
  10723. <div class="tool">
  10724. <div class="whiteBIcon" @click="addTools2(25)">
  10725. <img
  10726. src="../../assets/icon/thirdToolList/evalua.png"
  10727. alt
  10728. />
  10729. <div style="margin: 5px 0">目标管理</div>
  10730. </div>
  10731. <div class="check" @click="addTools2(25)">
  10732. <img
  10733. src="../../assets/icon/checkNo.png"
  10734. alt
  10735. v-if="checktoolArray.indexOf(25) == -1"
  10736. />
  10737. <div class="checkDiv" v-else>
  10738. <img src="../../assets/icon/checkedIs.png" alt /><span
  10739. >已选择</span
  10740. >
  10741. </div>
  10742. </div>
  10743. </div>
  10744. </div>
  10745. </div>
  10746. </div>
  10747. </div>
  10748. </div> -->
  10749. <div
  10750. class="vedioBox"
  10751. style="margin-top: 10px; border-radius: 20px"
  10752. v-if="
  10753. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10754. .eList &&
  10755. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10756. .eList.length &&
  10757. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10758. .eList.length > 0 &&
  10759. tType != 2
  10760. "
  10761. >
  10762. <div
  10763. class="queTop"
  10764. style="
  10765. font-size: 20px;
  10766. padding: 15px 0 15px 37px;
  10767. font-weight: bold;
  10768. "
  10769. >
  10770. <!-- <div class="question" style="width: 30px">
  10771. <img src="../assets/icon/toolIcon.png" alt />
  10772. </div>
  10773. <div class="queTitle">
  10774. <div>工具</div>
  10775. </div>-->
  10776. 评一评
  10777. </div>
  10778. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  10779. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  10780. <el-table
  10781. :data="
  10782. chapInfoList[courseType].chapterInfo[0].taskJson[
  10783. taskCount
  10784. ].eList
  10785. "
  10786. :header-cell-style="{ background: '#F0F4FA' }"
  10787. :row-class-name="tableRowClassName"
  10788. border
  10789. stripe
  10790. style="width: 100%"
  10791. >
  10792. <el-table-column
  10793. label="评价名称"
  10794. align="center"
  10795. >
  10796. <template slot-scope="scope"
  10797. ><div>{{ scope.row.value }}</div></template
  10798. >
  10799. </el-table-column>
  10800. <el-table-column
  10801. label="评价描述"
  10802. align="center"
  10803. >
  10804. <template slot-scope="scope"
  10805. ><div>
  10806. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  10807. </div></template
  10808. >
  10809. </el-table-column>
  10810. <el-table-column label="目标" align="center">
  10811. <template slot-scope="scope"
  10812. ><div>
  10813. {{
  10814. scope.row.target
  10815. ? scope.row.target[scope.row.target.length - 1]
  10816. : "-"
  10817. }}
  10818. </div></template
  10819. ></el-table-column
  10820. >
  10821. </el-table>
  10822. <!-- <div
  10823. v-for="(eItem, eIndex) in chapInfoList[courseType]
  10824. .chapterInfo[0].taskJson[taskCount].eList"
  10825. :key="eIndex"
  10826. class="elist_input_box"
  10827. >
  10828. <div style="width: 95%">
  10829. <div
  10830. style="
  10831. display: flex;
  10832. flex-direction: row;
  10833. flex-wrap: nowrap;
  10834. align-items: center;
  10835. "
  10836. >
  10837. <div style="max-width: calc(100% - 285px)">
  10838. <span>{{ eItem.value }}</span>
  10839. </div>
  10840. <div
  10841. style="
  10842. padding-left: 25px;
  10843. display: flex;
  10844. flex-direction: row;
  10845. align-items: center;
  10846. "
  10847. >
  10848. <el-rate
  10849. v-model="eItem.score"
  10850. :colors="colors"
  10851. disabled
  10852. ></el-rate>
  10853. </div>
  10854. </div>
  10855. <div class="elist_inptu_text" style="padding-left: 10px">
  10856. <span v-if="eItem.detail != ''">{{
  10857. eItem.detail
  10858. }}</span>
  10859. <span v-else style="color: #b2b1b3; font-size: 14px"
  10860. >暂无描述...</span
  10861. >
  10862. </div>
  10863. </div>
  10864. </div> -->
  10865. </div>
  10866. <div
  10867. v-if="evalua"
  10868. style="
  10869. border: 1px solid #e5e5e5;
  10870. max-width: 650px;
  10871. width: 100%;
  10872. margin-top: 20px;
  10873. box-shadow: 3px 1px 15px 3px #e0e0e0;
  10874. "
  10875. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  10876. >
  10877. <div class="e_add_top">
  10878. <div class="e_add_title" style="width: 100%">
  10879. <!-- <span>目标管理名称</span> -->
  10880. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  10881. <img
  10882. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  10883. src="../../assets/line.png"
  10884. class="cru_line"
  10885. style="
  10886. width: 125px;
  10887. height: 20px;
  10888. bottom: -10px;
  10889. left: 5px;
  10890. "
  10891. />
  10892. <!-- <el-input
  10893. v-model="eTitle"
  10894. placeholder="请输入名称"
  10895. @change="setMindData"
  10896. ></el-input>-->
  10897. <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />收起目标</div>
  10898. <div v-show="!chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" style="margin:0 0 0 auto" class="show_taskD" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />展开目标</div>
  10899. </div>
  10900. </div>
  10901. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  10902. <div class="e_add_list_pbox">
  10903. <div class="e_add_list_pbox_title">
  10904. <!-- <span class="type_title">切换模式</span> -->
  10905. <div class="type_content">
  10906. <span
  10907. :class="{ active: typeMode == 1 }"
  10908. @click="typeMode = 1"
  10909. >目标树</span
  10910. >
  10911. <span
  10912. :class="{ active: typeMode == 2 }"
  10913. @click="typeMode = 2"
  10914. >目标罗盘</span
  10915. >
  10916. <!-- <span
  10917. :class="{ active: typeMode == 3 }"
  10918. @click="typeMode = 3"
  10919. >目标看板</span
  10920. > -->
  10921. </div>
  10922. </div>
  10923. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  10924. <Mind
  10925. :showBar="false"
  10926. :mindData="data"
  10927. style="width: 100%"
  10928. v-show="typeMode == 1"
  10929. ></Mind>
  10930. <Sunburst
  10931. :Josn="eJson"
  10932. :num="eJSONNum"
  10933. style="width: 100%"
  10934. v-if="typeMode == 2"
  10935. ></Sunburst>
  10936. <SeeBoard
  10937. :Josn="eJson"
  10938. :num="eJSONNum"
  10939. :ename="eTitle"
  10940. style="width: 100%"
  10941. v-if="typeMode == 3"
  10942. >
  10943. </SeeBoard>
  10944. </div>
  10945. </div>
  10946. </div>
  10947. </div>
  10948. </div>
  10949. </div>
  10950. <!-- <div
  10951. class="project_box"
  10952. style="margin-top: 15px; padding-bottom: 30px"
  10953. >
  10954. <div
  10955. style="
  10956. display: flex;
  10957. flex-wrap: nowrap;
  10958. flex-direction: column;
  10959. position: relative;
  10960. "
  10961. >
  10962. <div class="queTop">
  10963. <div class="question">
  10964. <img src="../../assets/icon/homeWork.png" alt="" />
  10965. </div>
  10966. <div class="queTitle">
  10967. <div>作业提交<span>(提交图文视频等)</span></div>
  10968. <div>:任务:{{ task.task }}</div>
  10969. </div>
  10970. </div>
  10971. <div class="ediBottom">
  10972. <div
  10973. class="addEditor"
  10974. style="margin-top: 23px"
  10975. @click="openAddWork"
  10976. v-if="!isNoHomeWork"
  10977. >
  10978. 选择文件
  10979. </div>
  10980. <div
  10981. class="addEditor"
  10982. style="margin-top: 23px"
  10983. @click="openAddWork"
  10984. v-else
  10985. >
  10986. 已提交
  10987. </div>
  10988. </div>
  10989. </div>
  10990. </div>-->
  10991. </div>
  10992. </div>
  10993. <el-dialog
  10994. title="作业提交"
  10995. :visible.sync="dialogVisible"
  10996. :append-to-body="true"
  10997. width="500px"
  10998. :before-close="handleClose"
  10999. class="dialog_change"
  11000. >
  11001. <div class="marginT">
  11002. <div>上传文件</div>
  11003. <div
  11004. class="chapter_add"
  11005. @click="addImg($event)"
  11006. v-if="studyJuri[0].cover.length == 0"
  11007. >
  11008. <div class="up_photo">
  11009. <img src="../../assets/icon/uploadImg.png" alt />
  11010. </div>
  11011. <!-- <input
  11012. type="file"
  11013. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11014. style="display: none"
  11015. @change="beforeUpload1($event, 1)"
  11016. /> -->
  11017. <input
  11018. type="file"
  11019. accept="*"
  11020. style="display: none"
  11021. @change="beforeUpload1($event, 1)"
  11022. />
  11023. <!-- <input
  11024. type="file"
  11025. accept="image/*"
  11026. capture="camera"
  11027. style="display: none"
  11028. @change="beforeUpload1($event, 1)"
  11029. /> -->
  11030. </div>
  11031. <div
  11032. class="chapter_add"
  11033. style="
  11034. display: flex;
  11035. width: 100%;
  11036. flex-direction: row;
  11037. flex-wrap: wrap;
  11038. justify-content: flex-start;
  11039. padding: 15px 0;
  11040. "
  11041. v-if="studyJuri[0].cover.length > 0"
  11042. >
  11043. <div class="upCover">
  11044. <img
  11045. :src="studyJuri[0].cover[0].url"
  11046. alt
  11047. v-if="fileType == 0"
  11048. />
  11049. <img :src="word" alt v-else-if="fileType == 1" />
  11050. <img :src="video" alt v-else-if="fileType == 2" />
  11051. <img :src="word2" alt v-else-if="fileType == 3" />
  11052. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11053. <div class="deleteWord" @click="clean(1)">
  11054. <img src="../../assets/icon/deleteWorks.png" alt />
  11055. </div>
  11056. </div>
  11057. </div>
  11058. </div>
  11059. <div
  11060. class="upload_send"
  11061. @click="addCourseWorksCopy(taskCount)"
  11062. v-if="!proVisible"
  11063. >
  11064. 提交
  11065. </div>
  11066. </el-dialog>
  11067. </div>
  11068. </div>
  11069. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11070. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  11071. '/courseDetail?userid=' +
  11072. userid +
  11073. '&oid=' +
  11074. oid +
  11075. '&org=' +
  11076. org +
  11077. '&cid=' +
  11078. classId +
  11079. '&courseId=' +
  11080. id +
  11081. '&tType=' +
  11082. tType +
  11083. '&screenType=' +
  11084. screenType
  11085. )"></classRoomHelper>
  11086. <div
  11087. class="pButton"
  11088. @click="(pzDialog = true), selectPz()"
  11089. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11090. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11091. >
  11092. <!-- 批 -->
  11093. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11094. </div>
  11095. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  11096. <div class="pzTop2">
  11097. <!-- <div>评论</div>
  11098. <div @click="pzDialog = false">
  11099. <img src="../../assets/close1.png" alt="" />
  11100. </div> -->
  11101. <div class="checkbox">
  11102. <!-- <div class="check" style="font-size: 25px; position: unset">
  11103. 评论
  11104. </div> -->
  11105. <div class="cb-tabList">
  11106. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  11107. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11108. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11109. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  11110. </div>
  11111. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  11112. <el-option label="时间降序" :value="1"></el-option>
  11113. <el-option label="时间升序" :value="2"></el-option>
  11114. <el-option label="我的评课" :value="3"></el-option>
  11115. </el-select>
  11116. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11117. </div>
  11118. </div>
  11119. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  11120. <div class="pzListBox" v-if="pzList && pzList.length">
  11121. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11122. <div class="pzNavTop">
  11123. <div>评</div>
  11124. <div>
  11125. {{
  11126. pz.username && pz.username.length > 5
  11127. ? pz.username.substring(0, 5) + "..."
  11128. : pz.username
  11129. }}的评论
  11130. </div>
  11131. <div
  11132. class="pzDelete"
  11133. v-if="pz.userid == userid"
  11134. @click="deletePz(pz.id)"
  11135. >
  11136. 删除
  11137. </div>
  11138. </div>
  11139. <div
  11140. @click="checkImg(getImgList(pz.content))"
  11141. class="pzContent cont"
  11142. v-html="pz.content"
  11143. v-if="pz.type == '1'"
  11144. ></div>
  11145. <div class="pzContent" v-if="pz.type == '2'">
  11146. <audio :src="pz.content" controls="controls" ref="audio">
  11147. Your browser does not support the audio element.
  11148. </audio>
  11149. </div>
  11150. <div class="pzContent" v-if="pz.type == '3'">
  11151. <img
  11152. :src="pz.content"
  11153. style="width: 90%; margin: 0 auto; display: block"
  11154. @click="previewImg(pz.content)"
  11155. />
  11156. </div>
  11157. <div class="timeAndReply">
  11158. <div class="time">
  11159. {{ pz.time }}
  11160. </div>
  11161. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11162. </div>
  11163. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11164. <div
  11165. v-for="(h, hIndex) in pz.hfList"
  11166. :key="hIndex"
  11167. class="hfItem"
  11168. >
  11169. <div class="whoReplyWho">
  11170. <div class="hfName">{{ h.username }}</div>
  11171. <div class="hfImg">
  11172. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11173. </div>
  11174. <div class="hfName">{{ pz.username }}</div>
  11175. </div>
  11176. <div class="hfContent" v-html="h.content"></div>
  11177. <div class="hfBottom">
  11178. <div class="hfTime">{{ h.time }}</div>
  11179. <div
  11180. class="deleteHfItem"
  11181. @click="deleteReply(h.id)"
  11182. v-if="userid == h.userid"
  11183. >
  11184. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11185. </div>
  11186. </div>
  11187. </div>
  11188. </div>
  11189. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11190. <div class="replyInput">
  11191. <el-input v-model="reply[pzIndex]"></el-input>
  11192. </div>
  11193. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11194. </div> -->
  11195. </div>
  11196. </div>
  11197. <div class="noPz" v-else>
  11198. <img src="../../assets/icon/noPz.png" alt="" />
  11199. </div>
  11200. <div class="addPzButton">
  11201. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11202. 添加评论
  11203. </div>
  11204. <!-- <div class="img1">
  11205. <div @click="(addPzDialog = true), (pzType = 2)">
  11206. <img src="../../assets/audio.png" /><span>音频</span>
  11207. </div>
  11208. </div> -->
  11209. </div>
  11210. </div>
  11211. <div class="scoreList" v-if="commentTagShow==1">
  11212. <scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
  11213. </div>
  11214. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  11215. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  11216. </div>
  11217. </div>
  11218. <div
  11219. v-if="toolDialogVisible == true"
  11220. class="toolMask"
  11221. @click="toolDialogVisible = false"
  11222. ></div>
  11223. <div v-if="toolDialogVisible == true" class="addToolCss">
  11224. <div class="toolTop">
  11225. <div style="font-weight: bold">新增工具</div>
  11226. <div @click="toolDialogVisible = false">
  11227. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11228. </div>
  11229. </div>
  11230. <div class="tool_box">
  11231. <div class="tool_type_box">
  11232. <div class="chooseWho">
  11233. <div
  11234. :class="toolType == 0 ? 'isChooseActive' : ''"
  11235. @click="(toolType = 0), $forceUpdate()"
  11236. >
  11237. 互动类
  11238. </div>
  11239. <div
  11240. :class="toolType == 1 ? 'isChooseActive' : ''"
  11241. @click="(toolType = 1), $forceUpdate()"
  11242. >
  11243. 思维类
  11244. </div>
  11245. <div
  11246. :class="toolType == 2 ? 'isChooseActive' : ''"
  11247. @click="(toolType = 2), $forceUpdate()"
  11248. >
  11249. 测评类
  11250. </div>
  11251. <div
  11252. :class="toolType == 3 ? 'isChooseActive' : ''"
  11253. @click="(toolType = 3), $forceUpdate()"
  11254. >
  11255. 编程类
  11256. </div>
  11257. <div
  11258. :class="toolType == 5 ? 'isChooseActive' : ''"
  11259. @click="(toolType = 5), $forceUpdate()"
  11260. >
  11261. 学科类
  11262. </div>
  11263. </div>
  11264. </div>
  11265. <div>
  11266. <div class="toolSort" v-if="toolType == 0">
  11267. <div
  11268. class="tool"
  11269. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11270. @click="addTools2(10)"
  11271. >
  11272. <div class="whiteBIcon">
  11273. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11274. <div style="margin: 5px 0">倒计时</div>
  11275. </div>
  11276. <div class="check">
  11277. <div
  11278. v-if="checktoolArray.indexOf(10) == -1"
  11279. class="noChoose"
  11280. ></div>
  11281. <div v-else class="isChoose"></div>
  11282. </div>
  11283. </div>
  11284. <div
  11285. class="tool"
  11286. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11287. @click="addTools2(65)"
  11288. >
  11289. <div class="whiteBIcon">
  11290. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11291. <div style="margin: 5px 0">挑人</div>
  11292. </div>
  11293. <div class="check">
  11294. <div
  11295. v-if="checktoolArray.indexOf(65) == -1"
  11296. class="noChoose"
  11297. ></div>
  11298. <div v-else class="isChoose"></div>
  11299. </div>
  11300. </div>
  11301. </div>
  11302. <div class="toolSort" v-if="toolType == 1">
  11303. <div
  11304. class="tool"
  11305. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11306. @click="addTools2(7)"
  11307. >
  11308. <div class="whiteBIcon">
  11309. <img
  11310. src="../../assets/icon/secondToolList/mindNetwork.png"
  11311. alt
  11312. />
  11313. <div style="margin: 5px 0">思维网格</div>
  11314. </div>
  11315. <div class="check">
  11316. <div
  11317. v-if="checktoolArray.indexOf(7) == -1"
  11318. class="noChoose"
  11319. ></div>
  11320. <div v-else class="isChoose"></div>
  11321. </div>
  11322. </div>
  11323. <div
  11324. class="tool"
  11325. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11326. @click="addTools2(1)"
  11327. >
  11328. <div class="whiteBIcon">
  11329. <img
  11330. src="../../assets/icon/secondToolList/whiteBoard.png"
  11331. alt
  11332. />
  11333. <div style="margin: 5px 0">电子白板</div>
  11334. </div>
  11335. <div class="check">
  11336. <div
  11337. v-if="checktoolArray.indexOf(1) == -1"
  11338. class="noChoose"
  11339. ></div>
  11340. <div v-else class="isChoose"></div>
  11341. </div>
  11342. </div>
  11343. <div
  11344. class="tool"
  11345. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  11346. @click="addTools2(52)"
  11347. >
  11348. <div class="whiteBIcon">
  11349. <img src="../../assets/icon/fourthToolList/text.png" alt />
  11350. <div style="margin: 5px 0">文档</div>
  11351. </div>
  11352. <div class="check">
  11353. <div
  11354. v-if="checktoolArray.indexOf(52) == -1"
  11355. class="noChoose"
  11356. ></div>
  11357. <div v-else class="isChoose"></div>
  11358. </div>
  11359. </div>
  11360. <div
  11361. class="tool"
  11362. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  11363. @click="addTools2(3)"
  11364. >
  11365. <div class="whiteBIcon">
  11366. <img
  11367. src="../../assets/icon/secondToolList/mindMapping.png"
  11368. alt
  11369. />
  11370. <div style="margin: 5px 0">思维导图</div>
  11371. </div>
  11372. <div class="check">
  11373. <div
  11374. v-if="checktoolArray.indexOf(3) == -1"
  11375. class="noChoose"
  11376. ></div>
  11377. <div v-else class="isChoose"></div>
  11378. </div>
  11379. </div>
  11380. <div
  11381. class="tool"
  11382. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  11383. @click="addTools2(48)"
  11384. >
  11385. <div class="whiteBIcon">
  11386. <img src="../../assets/icon/fourthToolList/table.png" alt />
  11387. <div style="margin: 5px 0">表格</div>
  11388. </div>
  11389. <div class="check">
  11390. <div
  11391. v-if="checktoolArray.indexOf(48) == -1"
  11392. class="noChoose"
  11393. ></div>
  11394. <div v-else class="isChoose"></div>
  11395. </div>
  11396. </div>
  11397. </div>
  11398. <div class="toolSort" v-if="toolType == 6">
  11399. <div v-show="tooC == 49">
  11400. <img
  11401. @click="addTools(tooC, toolIndex, taskCount)"
  11402. src="../../assets/icon/fourthToolList/group.png"
  11403. alt
  11404. />
  11405. <div style="margin: 5px 0">学生分组</div>
  11406. </div>
  11407. </div>
  11408. <div class="toolSort" v-if="toolType == 2">
  11409. <div
  11410. class="tool"
  11411. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  11412. @click="addTools2(16)"
  11413. >
  11414. <div class="whiteBIcon">
  11415. <img src="../../assets/icon/thirdToolList/work.png" alt />
  11416. <div style="margin: 5px 0">作业提交</div>
  11417. </div>
  11418. <div class="check">
  11419. <div
  11420. v-if="checktoolArray.indexOf(16) == -1"
  11421. class="noChoose"
  11422. ></div>
  11423. <div v-else class="isChoose"></div>
  11424. </div>
  11425. </div>
  11426. <div
  11427. class="tool"
  11428. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  11429. @click="addTools2(50)"
  11430. >
  11431. <div class="whiteBIcon">
  11432. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  11433. <div style="margin: 5px 0">批量上传</div>
  11434. </div>
  11435. <div class="check">
  11436. <div
  11437. v-if="checktoolArray.indexOf(50) == -1"
  11438. class="noChoose"
  11439. ></div>
  11440. <div v-else class="isChoose"></div>
  11441. </div>
  11442. </div>
  11443. </div>
  11444. <div class="toolSort" v-if="toolType == 3">
  11445. <div
  11446. class="tool"
  11447. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  11448. @click="addTools2(18)"
  11449. >
  11450. <div class="whiteBIcon">
  11451. <img
  11452. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11453. alt
  11454. />
  11455. <div style="margin: 5px 0">训练平台</div>
  11456. </div>
  11457. <div class="check">
  11458. <div
  11459. v-if="checktoolArray.indexOf(18) == -1"
  11460. class="noChoose"
  11461. ></div>
  11462. <div v-else class="isChoose"></div>
  11463. </div>
  11464. </div>
  11465. <div
  11466. class="tool"
  11467. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  11468. @click="addTools2(21)"
  11469. >
  11470. <div class="whiteBIcon">
  11471. <img src="../../assets/icon/fourthToolList/program.png" alt />
  11472. <div style="margin: 5px 0">AIoT Blockly</div>
  11473. </div>
  11474. <div class="check">
  11475. <div
  11476. v-if="checktoolArray.indexOf(21) == -1"
  11477. class="noChoose"
  11478. ></div>
  11479. <div v-else class="isChoose"></div>
  11480. </div>
  11481. </div>
  11482. <div
  11483. class="tool"
  11484. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  11485. @click="addTools2(23)"
  11486. >
  11487. <div class="whiteBIcon">
  11488. <img
  11489. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11490. alt
  11491. />
  11492. <div style="margin: 5px 0">AI Python</div>
  11493. </div>
  11494. <div class="check">
  11495. <div
  11496. v-if="checktoolArray.indexOf(23) == -1"
  11497. class="noChoose"
  11498. ></div>
  11499. <div v-else class="isChoose"></div>
  11500. </div>
  11501. </div>
  11502. <div
  11503. class="tool"
  11504. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  11505. @click="addTools2(24)"
  11506. >
  11507. <div class="whiteBIcon">
  11508. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  11509. <div style="margin: 5px 0">AI Blockly</div>
  11510. </div>
  11511. <div class="check">
  11512. <div
  11513. v-if="checktoolArray.indexOf(24) == -1"
  11514. class="noChoose"
  11515. ></div>
  11516. <div v-else class="isChoose"></div>
  11517. </div>
  11518. </div>
  11519. <div
  11520. class="tool"
  11521. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  11522. @click="addTools2(32)"
  11523. >
  11524. <div class="whiteBIcon">
  11525. <img src="../../assets/icon/thirdToolList/code.png" alt />
  11526. <div style="margin: 5px 0">源码编辑</div>
  11527. </div>
  11528. <div class="check">
  11529. <div
  11530. v-if="checktoolArray.indexOf(32) == -1"
  11531. class="noChoose"
  11532. ></div>
  11533. <div v-else class="isChoose"></div>
  11534. </div>
  11535. </div>
  11536. <div
  11537. class="tool"
  11538. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  11539. @click="addTools2(57)"
  11540. >
  11541. <div class="whiteBIcon">
  11542. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  11543. <div style="margin: 5px 0">CocoPi</div>
  11544. </div>
  11545. <div class="check">
  11546. <div
  11547. v-if="checktoolArray.indexOf(57) == -1"
  11548. class="noChoose"
  11549. ></div>
  11550. <div v-else class="isChoose"></div>
  11551. </div>
  11552. </div>
  11553. <div
  11554. class="tool"
  11555. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  11556. @click="addTools2(63)"
  11557. >
  11558. <div class="whiteBIcon">
  11559. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  11560. <div style="margin: 5px 0">海龟编程</div>
  11561. </div>
  11562. <div class="check">
  11563. <div
  11564. v-if="checktoolArray.indexOf(63) == -1"
  11565. class="noChoose"
  11566. ></div>
  11567. <div v-else class="isChoose"></div>
  11568. </div>
  11569. </div>
  11570. <div
  11571. class="tool"
  11572. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  11573. @click="addTools2(71)"
  11574. >
  11575. <div class="whiteBIcon">
  11576. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  11577. <div style="margin: 5px 0">AI智能体</div>
  11578. </div>
  11579. <div class="check">
  11580. <div
  11581. v-if="checktoolArray.indexOf(71) == -1"
  11582. class="noChoose"
  11583. ></div>
  11584. <div v-else class="isChoose"></div>
  11585. </div>
  11586. </div>
  11587. </div>
  11588. <div class="toolSort" v-if="toolType == 7">
  11589. <div
  11590. class="tool"
  11591. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  11592. @click="addTools2(40)"
  11593. >
  11594. <div class="whiteBIcon">
  11595. <img src="../../assets/icon/secondToolList/eval.png" alt />
  11596. <div style="margin: 5px 0">个人评价</div>
  11597. </div>
  11598. <div class="check">
  11599. <div
  11600. v-if="checktoolArray.indexOf(40) == -1"
  11601. class="noChoose"
  11602. ></div>
  11603. <div v-else class="isChoose"></div>
  11604. </div>
  11605. </div>
  11606. </div>
  11607. <div class="toolSort" v-if="toolType == 5">
  11608. <div
  11609. class="tool"
  11610. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  11611. @click="addTools2(28)"
  11612. >
  11613. <div class="whiteBIcon">
  11614. <img
  11615. src="../../assets/icon/secondToolList/translation.png"
  11616. alt
  11617. />
  11618. <div style="margin: 5px 0">翻译</div>
  11619. </div>
  11620. <div class="check">
  11621. <div
  11622. v-if="checktoolArray.indexOf(28) == -1"
  11623. class="noChoose"
  11624. ></div>
  11625. <div v-else class="isChoose"></div>
  11626. </div>
  11627. </div>
  11628. <div
  11629. class="tool"
  11630. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  11631. @click="addTools2(31)"
  11632. >
  11633. <div class="whiteBIcon">
  11634. <img
  11635. src="../../assets/icon/secondToolList/networkPanel.png"
  11636. alt
  11637. />
  11638. <div style="margin: 5px 0">数字画板</div>
  11639. </div>
  11640. <div class="check">
  11641. <div
  11642. v-if="checktoolArray.indexOf(31) == -1"
  11643. class="noChoose"
  11644. ></div>
  11645. <div v-else class="isChoose"></div>
  11646. </div>
  11647. </div>
  11648. <div
  11649. class="tool"
  11650. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  11651. @click="addTools2(39)"
  11652. >
  11653. <div class="whiteBIcon">
  11654. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  11655. <div style="margin: 5px 0">GeoGebra</div>
  11656. </div>
  11657. <div class="check">
  11658. <div
  11659. v-if="checktoolArray.indexOf(39) == -1"
  11660. class="noChoose"
  11661. ></div>
  11662. <div v-else class="isChoose"></div>
  11663. </div>
  11664. </div>
  11665. <div
  11666. class="tool"
  11667. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  11668. @click="addTools2(66)"
  11669. >
  11670. <div class="whiteBIcon">
  11671. <img
  11672. src="../../assets/icon/secondToolList/formulaEdi.png"
  11673. alt
  11674. />
  11675. <div style="margin: 5px 0">公式编辑</div>
  11676. </div>
  11677. <div class="check">
  11678. <div
  11679. v-if="checktoolArray.indexOf(66) == -1"
  11680. class="noChoose"
  11681. ></div>
  11682. <div v-else class="isChoose"></div>
  11683. </div>
  11684. </div>
  11685. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  11686. <div class="whiteBIcon" @click="addTools2(67)">
  11687. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  11688. <div style="margin: 5px 0">分子结构</div>
  11689. </div>
  11690. <div class="check" @click="addTools2(67)">
  11691. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  11692. <div v-else class="isChoose"></div>
  11693. </div>
  11694. </div> -->
  11695. <div
  11696. class="tool"
  11697. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  11698. @click="addTools2(68)"
  11699. >
  11700. <div class="whiteBIcon">
  11701. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  11702. <div style="margin: 5px 0">时间轴</div>
  11703. </div>
  11704. <div class="check">
  11705. <div
  11706. v-if="checktoolArray.indexOf(68) == -1"
  11707. class="noChoose"
  11708. ></div>
  11709. <div v-else class="isChoose"></div>
  11710. </div>
  11711. </div>
  11712. <!-- <div
  11713. class="tool"
  11714. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  11715. @click="addTools2(69)"
  11716. >
  11717. <div class="whiteBIcon">
  11718. <img src="../../assets/icon/secondToolList/english.png" alt />
  11719. <div style="margin: 5px 0">英语写作</div>
  11720. </div>
  11721. <div class="check">
  11722. <div
  11723. v-if="checktoolArray.indexOf(69) == -1"
  11724. class="noChoose"
  11725. ></div>
  11726. <div v-else class="isChoose"></div>
  11727. </div>
  11728. </div> -->
  11729. </div>
  11730. <div class="toolSort" v-if="toolType == 4">
  11731. <div
  11732. class="tool"
  11733. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  11734. @click="addTools2(26)"
  11735. >
  11736. <div class="whiteBIcon">
  11737. <img
  11738. src="../../assets/icon/thirdToolList/courseDesign.png"
  11739. alt
  11740. />
  11741. <div style="margin: 5px 0">课程设计</div>
  11742. </div>
  11743. <div class="check">
  11744. <div
  11745. v-if="checktoolArray.indexOf(26) == -1"
  11746. class="noChoose"
  11747. ></div>
  11748. <div v-else class="isChoose"></div>
  11749. </div>
  11750. </div>
  11751. <div
  11752. class="tool"
  11753. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  11754. @click="addTools2(25)"
  11755. >
  11756. <div class="whiteBIcon">
  11757. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  11758. <div style="margin: 5px 0">目标管理</div>
  11759. </div>
  11760. <div class="check">
  11761. <div
  11762. v-if="checktoolArray.indexOf(25) == -1"
  11763. class="noChoose"
  11764. ></div>
  11765. <div v-else class="isChoose"></div>
  11766. </div>
  11767. </div>
  11768. </div>
  11769. </div>
  11770. </div>
  11771. <span
  11772. slot="footer"
  11773. class="dialog-footer"
  11774. style="display: block; text-align: center; padding: 0 0 10px 0"
  11775. >
  11776. <el-button @click="toolDialogVisible = false">取 消</el-button>
  11777. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  11778. </span>
  11779. </div>
  11780. <div
  11781. v-if="replyDialogVisible == true"
  11782. class="addDialogCss"
  11783. v-el-drag-dialog
  11784. >
  11785. <div class="pzTop">
  11786. <div class="teacherPz">
  11787. <div class="teacherPzImg">
  11788. <img src="../../assets/icon/teacherPz.png" alt="" />
  11789. </div>
  11790. <div style="margin-left: 10px; height: 25px">添加回复</div>
  11791. </div>
  11792. <div @click="replyDialogVisible = false">
  11793. <img src="../../assets/close1.png" class="pzClose" alt="" />
  11794. </div>
  11795. </div>
  11796. <div class="addPzBox">
  11797. <!-- <div class="addPzCheck">
  11798. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  11799. >文本</span
  11800. >
  11801. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  11802. >音频</span
  11803. >
  11804. </div> -->
  11805. <div style="height: calc(100% - 50px)">
  11806. <editor-bar
  11807. class="binfo_input pzConText"
  11808. style="width: 100% !important; margin: 0 auto"
  11809. placeholder="请输入回复描述"
  11810. v-model="reply"
  11811. @change="change"
  11812. ></editor-bar>
  11813. </div>
  11814. <div class="addTextCss" @click="addHf">确定</div>
  11815. </div>
  11816. </div>
  11817. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  11818. <div class="pzTop">
  11819. <div class="teacherPz">
  11820. <div class="teacherPzImg">
  11821. <img src="../../assets/icon/teacherPz.png" alt="" />
  11822. </div>
  11823. <div style="margin-left: 10px; height: 25px">教师评论</div>
  11824. </div>
  11825. <div @click="addPzDialog = false">
  11826. <img src="../../assets/close1.png" class="pzClose" alt="" />
  11827. </div>
  11828. </div>
  11829. <div class="addPzBox">
  11830. <div class="addPzCheck">
  11831. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  11832. >文本</span
  11833. >
  11834. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  11835. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  11836. >音频</span
  11837. >
  11838. </div>
  11839. <div style="height: calc(100% - 95px)">
  11840. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  11841. v-if="pzType == 1"></textarea> -->
  11842. <editor-bar
  11843. class="binfo_input pzConText"
  11844. style="width: 100% !important"
  11845. placeholder="请输入任务描述"
  11846. v-model="pzConText"
  11847. @change="change"
  11848. v-if="pzType == 1"
  11849. ></editor-bar>
  11850. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  11851. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  11852. <div @click="addImg($event)">
  11853. <el-button type="primary">上传图片</el-button>
  11854. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  11855. @change="beforeUpload1($event, 4)" />
  11856. </div>
  11857. </div> -->
  11858. </div>
  11859. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  11860. 确定
  11861. </div>
  11862. </div>
  11863. </div>
  11864. <div v-if="proVisible" class="mask">
  11865. <div class="progressBox">
  11866. <!-- <div id="closePro" class="closeCss">
  11867. <img src="../../assets/icon/close.png" alt />
  11868. </div> -->
  11869. <div class="lbox">
  11870. <img src="../../assets/loading.gif" />上传中,请稍后
  11871. </div>
  11872. <div style="margin-bottom: 10px">
  11873. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  11874. </div>
  11875. <el-progress
  11876. :text-inside="true"
  11877. :stroke-width="20"
  11878. :percentage="progress"
  11879. style="width: 80%"
  11880. ></el-progress>
  11881. </div>
  11882. </div>
  11883. <div v-if="proVisible2" class="mask">
  11884. <div class="progressBox">
  11885. <div class="lbox">
  11886. <img src="../../assets/loading.gif" />上传中,请稍后
  11887. </div>
  11888. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  11889. </div>
  11890. </div>
  11891. <el-dialog :visible.sync="pictureDialog" size="tiny">
  11892. <img width="100%" :src="dialogImageUrl" alt />
  11893. </el-dialog>
  11894. <el-dialog
  11895. :title="noteName != '' ? noteName : '查看问卷'"
  11896. :visible.sync="dialogVisible5"
  11897. :append-to-body="true"
  11898. width="1000px"
  11899. :before-close="handleClose"
  11900. class="dialog_diy dialog_diy3"
  11901. >
  11902. <div>
  11903. <div
  11904. class="a_add_title"
  11905. style="
  11906. display: flex;
  11907. flex-direction: row;
  11908. align-items: center;
  11909. justify-content: center;
  11910. "
  11911. >
  11912. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  11913. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  11914. </div>
  11915. <div class="a_addBox">
  11916. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  11917. 题目内容
  11918. </div>
  11919. <div
  11920. class="a_add_box"
  11921. v-for="(item1, index1) in askJson.askCount"
  11922. :key="index1"
  11923. >
  11924. <div class="a_add_head">
  11925. <div style="display: flex">
  11926. <span class="askIndex"> {{ index1 + 1 }}</span>
  11927. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  11928. </div>
  11929. <img
  11930. v-if="askJson.askJson[index1].img"
  11931. :src="askJson.askJson[index1].img"
  11932. style="height: 300px; margin-top: 10px; max-width: 100%"
  11933. />
  11934. </div>
  11935. <div class="a_add_body">
  11936. <div class="a_add_input">
  11937. <el-radio-group
  11938. v-model="radio[index1]"
  11939. v-if="
  11940. askJson.askJson[index1].type == '1' ||
  11941. !askJson.askJson[index1].type
  11942. "
  11943. >
  11944. <el-radio
  11945. v-for="(item2, checkIndex) in askJson.askJson[index1]
  11946. .checkList"
  11947. :key="checkIndex"
  11948. :label="checkIndex"
  11949. :disabled="isAnswer"
  11950. class="redioStyle"
  11951. ><span v-html="item2"></span
  11952. ></el-radio>
  11953. </el-radio-group>
  11954. <el-checkbox-group
  11955. v-model="radio[index1]"
  11956. v-if="askJson.askJson[index1].type == '2'"
  11957. >
  11958. <el-checkbox
  11959. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  11960. .checkList"
  11961. :key="checkIndex1"
  11962. :label="checkIndex1"
  11963. :disabled="isAnswer"
  11964. class="redioStyle"
  11965. ><span v-html="item2"></span>
  11966. </el-checkbox>
  11967. </el-checkbox-group>
  11968. </div>
  11969. </div>
  11970. </div>
  11971. </div>
  11972. </div>
  11973. <span slot="footer" class="dialog-footer">
  11974. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  11975. >取 消</el-button
  11976. >
  11977. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  11978. >确 定</el-button
  11979. >
  11980. </span>
  11981. </el-dialog>
  11982. <el-dialog
  11983. :title="noteName != '' ? noteName : '查看问卷'"
  11984. :visible.sync="dialogVisible5Teacher"
  11985. :append-to-body="true"
  11986. width="1000px"
  11987. :before-close="handleClose"
  11988. class="dialog_diy dialog_diy3"
  11989. >
  11990. <div>
  11991. <div class="w_name">
  11992. 学生姓名:<span>{{ sStudent.student }}</span>
  11993. </div>
  11994. <div
  11995. class="a_add_title"
  11996. style="
  11997. display: flex;
  11998. flex-direction: row;
  11999. align-items: center;
  12000. justify-content: center;
  12001. "
  12002. >
  12003. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12004. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12005. </div>
  12006. <div class="a_addBox">
  12007. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12008. 题目内容
  12009. </div>
  12010. <div
  12011. class="a_add_box"
  12012. v-for="(item1, index1) in askJson.askCount"
  12013. :key="index1"
  12014. >
  12015. <div class="a_add_head">
  12016. <div style="display: flex">
  12017. <span class="askIndex">{{ index1 + 1 }}</span>
  12018. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12019. </div>
  12020. <img
  12021. v-if="askJson.askJson[index1].img"
  12022. :src="askJson.askJson[index1].img"
  12023. style="height: 300px; margin-top: 10px; max-width: 100%"
  12024. />
  12025. </div>
  12026. <div class="a_add_body">
  12027. <div class="a_add_input">
  12028. <el-radio-group
  12029. v-model="radio[index1]"
  12030. v-if="
  12031. askJson.askJson[index1].type == '1' ||
  12032. !askJson.askJson[index1].type
  12033. "
  12034. >
  12035. <el-radio
  12036. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12037. .checkList"
  12038. :key="checkIndex"
  12039. :label="checkIndex"
  12040. :disabled="isAnswer"
  12041. class="redioStyle"
  12042. ><span v-html="item2"></span
  12043. ></el-radio>
  12044. </el-radio-group>
  12045. <el-checkbox-group
  12046. v-model="radio[index1]"
  12047. v-if="askJson.askJson[index1].type == '2'"
  12048. >
  12049. <el-checkbox
  12050. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12051. .checkList"
  12052. :key="checkIndex1"
  12053. :label="checkIndex1"
  12054. :disabled="isAnswer"
  12055. class="redioStyle"
  12056. ><span v-html="item2"></span>
  12057. </el-checkbox>
  12058. </el-checkbox-group>
  12059. </div>
  12060. </div>
  12061. </div>
  12062. </div>
  12063. </div>
  12064. <span slot="footer" class="dialog-footer">
  12065. <el-button
  12066. @click="dialogVisible5Teacher = false"
  12067. v-show="noteName == ''"
  12068. >取 消</el-button
  12069. >
  12070. <el-button
  12071. type="primary"
  12072. @click="addStudentAskTeacher"
  12073. v-show="noteName == ''"
  12074. >确 定</el-button
  12075. >
  12076. </span>
  12077. </el-dialog>
  12078. <el-dialog
  12079. :title="noteName != '' ? noteName : '查看选择题'"
  12080. :visible.sync="dialogVisibleChoice"
  12081. :append-to-body="true"
  12082. width="1000px"
  12083. :before-close="handleClose"
  12084. class="dialog_diy dialog_diy3"
  12085. >
  12086. <div>
  12087. <!-- <div class="a_add_title" style="
  12088. display: flex;
  12089. flex-direction: row;
  12090. align-items: center;
  12091. justify-content: center;
  12092. ">
  12093. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12094. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12095. </div> -->
  12096. <div class="a_addBox">
  12097. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12098. 题目内容
  12099. </div>
  12100. <div
  12101. class="a_add_box"
  12102. v-for="(item1, index1) in testJson.testCount"
  12103. :key="index1"
  12104. >
  12105. <div class="a_add_head">
  12106. <div style="display: flex">
  12107. <span class="askIndex">{{ index1 + 1 }}</span>
  12108. <div
  12109. v-if="testJson.testJson[index1].type == '1'"
  12110. style="margin-right: 5px; min-width: 70px"
  12111. >
  12112. (单选题)
  12113. </div>
  12114. <div
  12115. v-if="testJson.testJson[index1].type == '2'"
  12116. style="margin-right: 5px; min-width: 70px"
  12117. >
  12118. (多选题)
  12119. </div>
  12120. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12121. </div>
  12122. <img
  12123. v-if="testJson.testJson[index1].img"
  12124. :src="testJson.testJson[index1].img"
  12125. style="height: 300px; margin-top: 10px; max-width: 100%"
  12126. />
  12127. </div>
  12128. <div
  12129. class="timuImgBox"
  12130. v-if="
  12131. testJson.testJson[index1].timuList &&
  12132. testJson.testJson[index1].timuList.length
  12133. "
  12134. >
  12135. <div
  12136. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12137. :key="tIndex"
  12138. class="timuImg"
  12139. @click.stop="previewImg(timg.src)"
  12140. >
  12141. <img :src="timg.src" alt="" />
  12142. </div>
  12143. </div>
  12144. <div class="a_add_body">
  12145. <div class="a_add_input">
  12146. <el-radio-group
  12147. v-model="radio[index1]"
  12148. v-if="testJson.testJson[index1].type == '1'"
  12149. >
  12150. <div class="radioBox">
  12151. <el-radio
  12152. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12153. .checkList"
  12154. :key="checkIndex"
  12155. :label="checkIndex"
  12156. :disabled="isAnswer"
  12157. class="redioStyle"
  12158. >
  12159. <div
  12160. style="margin-right: 10px"
  12161. v-if="item2 && item2.imgType && item2.imgType == 1"
  12162. >
  12163. <div class="inImg" @click.stop="previewImg(item2.src)">
  12164. <img :src="item2.src" alt="" />
  12165. </div>
  12166. </div>
  12167. <span v-else v-html="item2"></span>
  12168. </el-radio>
  12169. </div>
  12170. </el-radio-group>
  12171. <el-checkbox-group
  12172. v-model="radio[index1]"
  12173. v-if="testJson.testJson[index1].type == '2'"
  12174. >
  12175. <div class="radioBox">
  12176. <el-checkbox
  12177. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12178. .checkList"
  12179. :key="checkIndex"
  12180. :label="checkIndex"
  12181. :disabled="isAnswer"
  12182. class="redioStyle"
  12183. >
  12184. <div
  12185. style="margin-right: 10px"
  12186. v-if="item2 && item2.imgType && item2.imgType == 1"
  12187. >
  12188. <div class="inImg" @click.stop="previewImg(item2.src)">
  12189. <img :src="item2.src" alt="" />
  12190. </div>
  12191. </div>
  12192. <span v-else v-html="item2"></span>
  12193. </el-checkbox>
  12194. </div>
  12195. </el-checkbox-group>
  12196. </div>
  12197. </div>
  12198. </div>
  12199. </div>
  12200. </div>
  12201. <span slot="footer" class="dialog-footer">
  12202. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12203. >取 消</el-button
  12204. >
  12205. <el-button
  12206. type="primary"
  12207. @click="addStudentTest"
  12208. v-show="noteName == ''"
  12209. >确 定</el-button
  12210. >
  12211. </span>
  12212. </el-dialog>
  12213. <el-dialog
  12214. :title="noteName != '' ? noteName : '查看选择题'"
  12215. :visible.sync="dialogVisibleChoiceTeacher"
  12216. :append-to-body="true"
  12217. width="1000px"
  12218. :before-close="handleClose"
  12219. class="dialog_diy dialog_diy3"
  12220. >
  12221. <div>
  12222. <div class="w_name">
  12223. 学生姓名:<span>{{ sStudent.student }}</span>
  12224. </div>
  12225. <div class="a_addBox">
  12226. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12227. 题目内容
  12228. </div>
  12229. <div
  12230. class="a_add_box"
  12231. v-for="(item1, index1) in testJson.testCount"
  12232. :key="index1"
  12233. >
  12234. <div class="a_add_head">
  12235. <div style="display: flex">
  12236. <span class="askIndex">{{ index1 + 1 }}</span>
  12237. <div
  12238. v-if="testJson.testJson[index1].type == '1'"
  12239. style="margin-right: 5px; min-width: 70px"
  12240. >
  12241. (单选题)
  12242. </div>
  12243. <div
  12244. v-if="testJson.testJson[index1].type == '2'"
  12245. style="margin-right: 5px; min-width: 70px"
  12246. >
  12247. (多选题)
  12248. </div>
  12249. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12250. </div>
  12251. <img
  12252. v-if="testJson.testJson[index1].img"
  12253. :src="testJson.testJson[index1].img"
  12254. style="height: 300px; margin-top: 10px; max-width: 100%"
  12255. />
  12256. </div>
  12257. <div
  12258. class="timuImgBox"
  12259. v-if="
  12260. testJson.testJson[index1].timuList &&
  12261. testJson.testJson[index1].timuList.length
  12262. "
  12263. >
  12264. <div
  12265. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12266. :key="tIndex"
  12267. class="timuImg"
  12268. @click.stop="previewImg(timg.src)"
  12269. >
  12270. <img :src="timg.src" alt="" />
  12271. </div>
  12272. </div>
  12273. <div class="a_add_body">
  12274. <div class="a_add_input">
  12275. <el-radio-group
  12276. v-model="radio[index1]"
  12277. v-if="testJson.testJson[index1].type == '1'"
  12278. >
  12279. <div class="radioBox">
  12280. <el-radio
  12281. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12282. .checkList"
  12283. :key="checkIndex"
  12284. :label="checkIndex"
  12285. :disabled="isAnswer"
  12286. class="redioStyle"
  12287. >
  12288. <div
  12289. style="margin-right: 10px"
  12290. v-if="item2 && item2.imgType && item2.imgType == 1"
  12291. >
  12292. <div class="inImg" @click.stop="previewImg(item2.src)">
  12293. <img :src="item2.src" alt="" />
  12294. </div>
  12295. </div>
  12296. <span v-else v-html="item2"></span>
  12297. </el-radio>
  12298. </div>
  12299. </el-radio-group>
  12300. <el-checkbox-group
  12301. v-model="radio[index1]"
  12302. v-if="testJson.testJson[index1].type == '2'"
  12303. >
  12304. <div class="radioBox">
  12305. <el-checkbox
  12306. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12307. .checkList"
  12308. :key="checkIndex"
  12309. :label="checkIndex"
  12310. :disabled="isAnswer"
  12311. class="redioStyle"
  12312. >
  12313. <div
  12314. style="margin-right: 10px"
  12315. v-if="item2 && item2.imgType && item2.imgType == 1"
  12316. >
  12317. <div class="inImg" @click.stop="previewImg(item2.src)">
  12318. <img :src="item2.src" alt="" />
  12319. </div>
  12320. </div>
  12321. <span v-else v-html="item2"></span>
  12322. </el-checkbox>
  12323. </div>
  12324. </el-checkbox-group>
  12325. </div>
  12326. </div>
  12327. </div>
  12328. </div>
  12329. </div>
  12330. <span slot="footer" class="dialog-footer">
  12331. <el-button
  12332. @click="dialogVisibleChoiceTeacher = false"
  12333. v-show="noteName == ''"
  12334. >取 消</el-button
  12335. >
  12336. <el-button
  12337. type="primary"
  12338. @click="addStudentTestTeacher"
  12339. v-show="noteName == ''"
  12340. >确 定</el-button
  12341. >
  12342. </span>
  12343. </el-dialog>
  12344. <el-dialog
  12345. title="查看富文本"
  12346. :visible.sync="dialogVisible1"
  12347. :append-to-body="true"
  12348. width="500px"
  12349. :before-close="handleClose"
  12350. class="dialog_diy textCss"
  12351. >
  12352. <el-form style="font-size: 20px">
  12353. <el-form-item label="文本标题" class="textTitle">
  12354. <div style="font-size: 20px">{{ text.name }}</div>
  12355. </el-form-item>
  12356. <div>富文本内容</div>
  12357. <div
  12358. v-html="text.url"
  12359. style="font-size: 18px; padding: 40px 0 0 0"
  12360. ></div>
  12361. </el-form>
  12362. <span slot="footer" class="dialog-footer">
  12363. <el-button type="primary" @click="dialogVisible1 = false"
  12364. >确定</el-button
  12365. >
  12366. </span>
  12367. </el-dialog>
  12368. <el-dialog
  12369. title="文件预览"
  12370. :visible.sync="dialogVisible3"
  12371. width="50%"
  12372. :before-close="handleClose"
  12373. class="dialog_diy"
  12374. :class="{ fullStyle: full }"
  12375. >
  12376. <div slot="title" class="header-title">
  12377. <div style="color: #fff">文件预览</div>
  12378. <div style="position: absolute; top: 19px; right: 50px">
  12379. <img
  12380. src="../../assets/full.png"
  12381. style="height: 16px; cursor: pointer"
  12382. alt=""
  12383. @click="fullTools"
  12384. />
  12385. </div>
  12386. </div>
  12387. <pdf
  12388. v-if="showPDF"
  12389. :pdfUrl="pptImgUrl"
  12390. style="width: 100%; height: 520px; overflow: auto"
  12391. :class="{ fullStyle: full }"
  12392. ></pdf>
  12393. <iframe
  12394. v-else
  12395. :src="pptImgUrl"
  12396. frameborder="0"
  12397. width="100%"
  12398. height="600"
  12399. :class="{ fullStyle: full }"
  12400. ></iframe>
  12401. </el-dialog>
  12402. <el-dialog
  12403. title="文件预览"
  12404. :visible.sync="dialogVisible6"
  12405. width="50%"
  12406. :before-close="handleClose"
  12407. class="dialog_diy"
  12408. >
  12409. <iframe
  12410. :src="pptImgUrl1"
  12411. frameborder="0"
  12412. width="100%"
  12413. height="600"
  12414. ></iframe>
  12415. </el-dialog>
  12416. <el-dialog
  12417. title="提示"
  12418. :visible.sync="dialogVisible4"
  12419. :append-to-body="true"
  12420. width="800px"
  12421. :before-close="handleClose"
  12422. class="dialog_diy notice"
  12423. >
  12424. <div>此功能暂未开放!</div>
  12425. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  12426. </el-dialog>
  12427. <el-dialog
  12428. title="问答"
  12429. :visible.sync="answerDialogVisible"
  12430. :append-to-body="true"
  12431. width="800px"
  12432. :before-close="handleClose"
  12433. class="dialog_diy"
  12434. >
  12435. <div>
  12436. <div
  12437. style="
  12438. display: flex;
  12439. flex-wrap: nowrap;
  12440. flex-direction: column;
  12441. position: relative;
  12442. "
  12443. >
  12444. <div class="queTop" style="padding: 20px 0 20px 0">
  12445. <div class="question">
  12446. <img src="../../assets/icon/question.png" alt />
  12447. </div>
  12448. <div class="queTitle">
  12449. <div style="width: 90px; min-width: 90px">提问:</div>
  12450. <div>{{ answerQ }}</div>
  12451. </div>
  12452. </div>
  12453. <div class="ediBottom">
  12454. <textarea
  12455. rows="6"
  12456. class="binfo_input"
  12457. cols
  12458. style="width: 95%; height: 120px"
  12459. v-model="questionAnswer"
  12460. ></textarea>
  12461. </div>
  12462. </div>
  12463. </div>
  12464. <div slot="footer">
  12465. <el-button @click="answerDialogVisible = false">取 消</el-button>
  12466. <el-button type="primary" @click="addQuestion">提 交</el-button>
  12467. </div>
  12468. </el-dialog>
  12469. <el-dialog
  12470. title="问答"
  12471. :visible.sync="answerDialogVisibleTeacher"
  12472. :append-to-body="true"
  12473. width="800px"
  12474. :before-close="handleClose"
  12475. class="dialog_diy"
  12476. >
  12477. <div>
  12478. <div class="w_name">
  12479. 学生姓名:<span>{{ sStudent.student }}</span>
  12480. </div>
  12481. <div
  12482. style="
  12483. display: flex;
  12484. flex-wrap: nowrap;
  12485. flex-direction: column;
  12486. position: relative;
  12487. "
  12488. >
  12489. <div class="queTop" style="padding: 20px 0 20px 0">
  12490. <div class="question">
  12491. <img src="../../assets/icon/question.png" alt />
  12492. </div>
  12493. <div class="queTitle">
  12494. <div style="width: 90px; min-width: 90px">提问:</div>
  12495. <div>{{ answerQ }}</div>
  12496. </div>
  12497. </div>
  12498. <div class="ediBottom">
  12499. <textarea
  12500. rows="6"
  12501. class="binfo_input"
  12502. cols
  12503. style="width: 95%; height: 120px"
  12504. v-model="questionAnswer"
  12505. ></textarea>
  12506. </div>
  12507. </div>
  12508. </div>
  12509. <div slot="footer">
  12510. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  12511. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  12512. </div>
  12513. </el-dialog>
  12514. <el-dialog
  12515. title="倒计时"
  12516. :visible.sync="timeDialogVisible"
  12517. :append-to-body="true"
  12518. width="800px"
  12519. :before-close="handleClose"
  12520. class="dialog_diy"
  12521. >
  12522. <div>
  12523. <div style="margin-bottom: 20px; color: #999">
  12524. 提示:点击“+”或“-”修改倒计时时长。
  12525. </div>
  12526. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  12527. </div>
  12528. <div slot="footer">
  12529. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  12530. </div>
  12531. </el-dialog>
  12532. <el-dialog
  12533. title="权限设置"
  12534. :visible.sync="juriVisible"
  12535. :append-to-body="true"
  12536. width="400px"
  12537. :before-close="handleClose"
  12538. class="dialog_diy"
  12539. >
  12540. <div>
  12541. <div class="open_box">
  12542. <div class="switch_box">
  12543. <span>允许学生查看所有作业</span>
  12544. <el-switch
  12545. v-model="sIsOpen"
  12546. active-text=""
  12547. class="switchCss"
  12548. @change="updateSLook"
  12549. ></el-switch>
  12550. </div>
  12551. <div
  12552. class="switch_box"
  12553. v-if="
  12554. courseDetail.userid == userid ||
  12555. (courseDetail.course_teacher &&
  12556. courseDetail.course_teacher.indexOf(userid) != -1)
  12557. "
  12558. >
  12559. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  12560. <span>禁止学生查看阶段</span>
  12561. <el-switch
  12562. v-model="IsLookOpen"
  12563. active-text=""
  12564. class="switchCss"
  12565. @change="updateLookOpen"
  12566. ></el-switch>
  12567. </div>
  12568. <div class="switch_box" v-if="courseDetail.userid == userid">
  12569. <span>开启跟随模式</span>
  12570. <el-switch
  12571. v-model="IsFollow"
  12572. active-text=""
  12573. class="switchCss"
  12574. @change="updateFollow"
  12575. ></el-switch>
  12576. </div>
  12577. </div>
  12578. </div>
  12579. <div slot="footer">
  12580. <el-button
  12581. style="background: #409efe; color: #fff"
  12582. @click="juriVisible = false"
  12583. >关 闭</el-button
  12584. >
  12585. </div>
  12586. </el-dialog>
  12587. <el-dialog
  12588. title="查看视频"
  12589. :visible.sync="videoVisible"
  12590. :append-to-body="true"
  12591. width="1000px"
  12592. :before-close="handleClose"
  12593. class="dialog_diy1"
  12594. >
  12595. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  12596. <video-player
  12597. class="video-player vjs-custom-skin"
  12598. :playsinline="true"
  12599. :options="videoDetail"
  12600. @play="onPlayerPlay($event)"
  12601. style="width: 100%; height: 100%"
  12602. ></video-player>
  12603. </div>
  12604. <div slot="footer">
  12605. <el-button
  12606. style="background: #409efe; color: #fff"
  12607. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  12608. >
  12609. 关 闭</el-button
  12610. >
  12611. </div>
  12612. </el-dialog>
  12613. <el-dialog
  12614. title="查看详情"
  12615. :visible.sync="commentDialogVisible"
  12616. :append-to-body="true"
  12617. width="800px"
  12618. :before-close="handleClose"
  12619. class="dialog_diy"
  12620. >
  12621. <div class="commentTop">
  12622. <div class="studentDetail">
  12623. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  12624. <div class="nameAndTime">
  12625. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  12626. <div>{{ commentDetail.time }}</div>
  12627. </div>
  12628. <div
  12629. class="returnBtn"
  12630. style="margin-left: auto; width: 80px"
  12631. v-if="
  12632. commentDetail.works &&
  12633. commentDetail.type == 0 &&
  12634. (tType == 1 || tType == 4)
  12635. "
  12636. @click="
  12637. showPicturePaint(
  12638. commentDetail.img ? commentDetail.img : commentDetail.works
  12639. )
  12640. "
  12641. >
  12642. 教师批注
  12643. </div>
  12644. </div>
  12645. <div
  12646. class="worksAnswer"
  12647. v-if="commentDetail.works && commentDetail.type == 2"
  12648. >
  12649. {{ JSON.parse(commentDetail.works)[0].answer }}
  12650. </div>
  12651. <div
  12652. class="worksAnswer"
  12653. v-if="commentDetail.works && commentDetail.type == 1"
  12654. >
  12655. <img
  12656. src="../../assets/teacherWork.png"
  12657. v-if="commentDetail.ateacher"
  12658. class="w_teachert"
  12659. />
  12660. <pdf
  12661. v-if="showPDF"
  12662. :pdfUrl="pptImgUrl"
  12663. style="width: 100%; height: 520px; overflow: auto"
  12664. :class="{ fullStyle: full }"
  12665. ></pdf>
  12666. <iframe
  12667. v-else
  12668. :src="pptImgUrl"
  12669. frameborder="0"
  12670. width="100%"
  12671. height="600"
  12672. :class="{ fullStyle: full }"
  12673. ></iframe>
  12674. </div>
  12675. <div
  12676. class="worksAnswer"
  12677. v-if="commentDetail.works && commentDetail.type == 0"
  12678. >
  12679. <img
  12680. src="../../assets/teacherWork.png"
  12681. v-if="commentDetail.ateacher"
  12682. class="w_teachert"
  12683. style="right: 105px"
  12684. />
  12685. <img
  12686. :src="commentDetail.works"
  12687. alt=""
  12688. @click="previewImg(commentDetail.works)"
  12689. />
  12690. </div>
  12691. <div
  12692. class="worksAnswer"
  12693. v-if="commentDetail.works && commentDetail.type == 3"
  12694. >
  12695. <img
  12696. src="../../assets/teacherWork.png"
  12697. v-if="commentDetail.ateacher"
  12698. class="w_teachert"
  12699. />
  12700. <video-player
  12701. class="video-player vjs-custom-skin"
  12702. :playsinline="true"
  12703. :options="videoDetail"
  12704. @play="onPlayerPlay($event)"
  12705. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  12706. ></video-player>
  12707. </div>
  12708. <div
  12709. class="worksAnswer"
  12710. v-if="commentDetail.works && commentDetail.type == 10"
  12711. >
  12712. <div class="cont" v-html="commentDetail.works.text"></div>
  12713. </div>
  12714. <div
  12715. class="worksAnswer codeFileBox"
  12716. v-if="commentDetail.works && commentDetail.type == 12"
  12717. @click="downloadFile(commentDetail.works)"
  12718. >
  12719. <img src="../../assets/icon/codeFile.png" />
  12720. <div>点击下载文件</div>
  12721. </div>
  12722. <div
  12723. class="worksAnswer codeFileBox"
  12724. v-if="commentDetail.works && commentDetail.type == 15"
  12725. @click="
  12726. openCocoPi(
  12727. 57,
  12728. commentIndexJson.toolIndex,
  12729. commentDetail.userid,
  12730. commentDetail.sName
  12731. )
  12732. "
  12733. >
  12734. <img src="../../assets/icon/codeFile.png" />
  12735. <div>点击打开CocoPi</div>
  12736. </div>
  12737. <div
  12738. class="worksAnswer"
  12739. v-if="commentDetail.works && commentDetail.type == 13"
  12740. >
  12741. <div v-html="JSON.parse(commentDetail.works).text"></div>
  12742. </div>
  12743. <div
  12744. class="worksAnswer"
  12745. v-if="commentDetail.works && commentDetail.type == 4"
  12746. >
  12747. <div class="evalCss">
  12748. <div class="nav">请选择星星进行评分</div>
  12749. <div class="middleBox" v-if="eScore.eStar">
  12750. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  12751. <div class="nameAndrate">
  12752. <div>{{ e.value }}</div>
  12753. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  12754. </div>
  12755. <div v-if="e.detail">{{ e.detail }}</div>
  12756. </div>
  12757. <div class="bz">
  12758. <textarea
  12759. disabled
  12760. rows="4"
  12761. class="pj"
  12762. style="
  12763. padding: 10px 5px;
  12764. width: 70%;
  12765. background: #f7f6f9;
  12766. font-size: 14px;
  12767. text-indent: 10px;
  12768. color: #000;
  12769. "
  12770. cols
  12771. v-model="eScore.eBzText"
  12772. placeholder="请输入评价内容..."
  12773. ></textarea>
  12774. </div>
  12775. </div>
  12776. </div>
  12777. </div>
  12778. <div class="comment">
  12779. <div class="commentList">
  12780. <div class="commentImg">
  12781. <img
  12782. @click="
  12783. isLikes(
  12784. commentDetail.wid,
  12785. userid,
  12786. 1,
  12787. null,
  12788. commentDetail.isLikes,
  12789. commentDetail.sName
  12790. )
  12791. "
  12792. :src="commentDetail.isLikes == true ? likes : noLikes"
  12793. alt=""
  12794. />
  12795. </div>
  12796. <div>{{ commentDetail.likesCount }}</div>
  12797. </div>
  12798. <div class="commentList">
  12799. <div class="commentImg">
  12800. <img src="../../assets/icon/comment/comment.png" alt="" />
  12801. </div>
  12802. <div>{{ commentDetail.commentCount }}</div>
  12803. </div>
  12804. </div>
  12805. <div class="drawPBox" v-if="commentDetail.img">
  12806. <span>教师批注</span>
  12807. <img
  12808. :src="commentDetail.img"
  12809. alt=""
  12810. @click="previewImg(commentDetail.img)"
  12811. />
  12812. <span
  12813. class="deleteImg"
  12814. v-if="tType == 1 || tType == 4"
  12815. @click.stop="deletePicturePaint(commentDetail.wid)"
  12816. style="
  12817. font-size: 14px;
  12818. width: auto !important;
  12819. color: #b4b4b4;
  12820. top: unset;
  12821. bottom: 0;
  12822. border: none;
  12823. padding: 0;
  12824. height: auto !important;
  12825. margin: 0;
  12826. "
  12827. >删除</span
  12828. >
  12829. </div>
  12830. </div>
  12831. <div class="commentBox">
  12832. <div class="pl">评论:</div>
  12833. <div style="max-height: 200px; overflow: auto">
  12834. <div
  12835. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  12836. style="padding: 10px 0 0 0"
  12837. >
  12838. <div
  12839. class="studentDetail"
  12840. style="padding-top: 10px"
  12841. v-for="(co, coIndex) in commentDetail.commentJson"
  12842. :key="coIndex"
  12843. >
  12844. <div class="tx" style="min-width: 50px">
  12845. <img src="../../assets/avatar.png" alt="" />
  12846. </div>
  12847. <div class="plPerson">
  12848. <div class="plName">
  12849. <div>{{ co.commentPeople }}</div>
  12850. <div style="margin-left: 5px">
  12851. {{ co.commentTime }}
  12852. </div>
  12853. <div
  12854. class="deleteComment"
  12855. v-if="userid == co.userid"
  12856. @click="deleteComment(co.wid)"
  12857. >
  12858. 删除
  12859. </div>
  12860. </div>
  12861. <div class="plContent">{{ co.commentText }}</div>
  12862. </div>
  12863. </div>
  12864. </div>
  12865. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  12866. </div>
  12867. </div>
  12868. <div style="margin-top: 10px">
  12869. <div class="displayBox">
  12870. <div
  12871. style="
  12872. color: #556db4;
  12873. font-size: 14px;
  12874. font-weight: bold;
  12875. padding-bottom: 10px;
  12876. "
  12877. >
  12878. 评价
  12879. </div>
  12880. <div class="easy_comment" v-if="false">
  12881. <div
  12882. v-for="(p, pIndex) in PlTextList"
  12883. :key="pIndex"
  12884. @click="fastText(p, 1)"
  12885. >
  12886. {{ p }}
  12887. </div>
  12888. </div>
  12889. </div>
  12890. <div>
  12891. <textarea
  12892. rows="3"
  12893. class="pj"
  12894. style="padding: 10px 5px"
  12895. cols
  12896. v-model="commentText"
  12897. placeholder="请输入评论"
  12898. ></textarea>
  12899. </div>
  12900. </div>
  12901. <div slot="footer">
  12902. <el-button
  12903. @click="
  12904. (commentDialogVisible = false),
  12905. (commentIndexJson = {}),
  12906. videoDetail.sources && videoDetail.sources[0]
  12907. ? (videoDetail.sources[0].src = '')
  12908. : ''
  12909. "
  12910. >取 消</el-button
  12911. >
  12912. <el-button
  12913. type="primary"
  12914. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  12915. >确 定</el-button
  12916. >
  12917. </div>
  12918. </el-dialog>
  12919. <el-dialog
  12920. title="查看文档"
  12921. :visible.sync="fullDialogVisible"
  12922. :append-to-body="true"
  12923. width="100%"
  12924. :before-close="handleClose"
  12925. :show-close="false"
  12926. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  12927. >
  12928. <div slot="title" class="header-title">
  12929. <div style="color: #fff">查看文档</div>
  12930. <div
  12931. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  12932. style="
  12933. cursor: pointer;
  12934. position: absolute;
  12935. top: 20px;
  12936. right: 20px;
  12937. color: #fff;
  12938. "
  12939. >
  12940. 退出全屏
  12941. </div>
  12942. </div>
  12943. <div style="height: 100%;position: relative;">
  12944. <el-button
  12945. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  12946. size="medium"
  12947. type="primary"
  12948. @click="
  12949. () => {
  12950. (fullDialogVisible = false),
  12951. changeSplitScreenBehavior({ code: 99 });
  12952. }
  12953. "
  12954. style="
  12955. cursor: pointer;
  12956. position: absolute;
  12957. top: 10px;
  12958. right: 20px;
  12959. color: #fff;
  12960. "
  12961. >
  12962. 退出全屏
  12963. </el-button>
  12964. <div
  12965. class="wheel"
  12966. v-if="
  12967. fulltype == 2 &&
  12968. fullUrl.indexOf(
  12969. 'https://view.officeapps.live.com/op/view.aspx?src='
  12970. ) != -1
  12971. "
  12972. style="width: 100%;height:100%; margin: 0 auto"
  12973. >
  12974. <iframe
  12975. style="width: 100%; height: 100%; border: none"
  12976. :src="fullUrl"
  12977. ></iframe>
  12978. </div>
  12979. <iframe
  12980. v-else-if="fulltype == 2"
  12981. style="width: 100%; height: 100%; border: none"
  12982. :src="fullUrl"
  12983. security="restricted"
  12984. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  12985. ></iframe>
  12986. <pdf
  12987. v-else-if="fulltype == 3"
  12988. :pdfUrl="fullUrl"
  12989. style="width: 100%; height: 100%; overflow: auto"
  12990. ></pdf>
  12991. <div
  12992. class="wheel"
  12993. v-if="fulltype == 1"
  12994. style="
  12995. box-shadow: 0 0 6px 1px #f2f2f2;
  12996. height:100%;
  12997. width: 100%;
  12998. background: #f1f1f1;
  12999. "
  13000. >
  13001. <div class="title" style="width: 100%; box-sizing: border-box">
  13002. 查看文档
  13003. </div>
  13004. <el-form class="textBox" style="height: 90%">
  13005. <el-form-item class="textTitle">
  13006. <div style="font-size: 22px">
  13007. {{ fullUrl.name }}
  13008. </div>
  13009. </el-form-item>
  13010. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13011. <div
  13012. v-html="fullUrl.url"
  13013. class="textContent"
  13014. style="height: auto"
  13015. ></div>
  13016. </el-form>
  13017. </div>
  13018. </div>
  13019. <!-- <div slot="footer">
  13020. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13021. </div> -->
  13022. </el-dialog>
  13023. <el-dialog
  13024. title="个人评价"
  13025. :visible.sync="studentEvalDialogVisible"
  13026. :append-to-body="true"
  13027. width="800px"
  13028. :before-close="handleClose"
  13029. class="dialog_diy"
  13030. >
  13031. <div class="evalCss">
  13032. <div class="nav">请选择星星进行评分</div>
  13033. <div class="middleBox" v-if="eScore.eStar">
  13034. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13035. <div class="nameAndrate">
  13036. <div>{{ e.value }}</div>
  13037. <el-rate
  13038. v-model="eScore.eStar[eIndex]"
  13039. :disabled="isStar"
  13040. ></el-rate>
  13041. </div>
  13042. <div v-if="e.detail">{{ e.detail }}</div>
  13043. </div>
  13044. <div class="easy_comment" v-if="false">
  13045. <div
  13046. v-for="(p, pIndex) in PlTextList"
  13047. :key="pIndex"
  13048. @click="fastText(p, 2)"
  13049. >
  13050. {{ p }}
  13051. </div>
  13052. </div>
  13053. <div class="bz">
  13054. <textarea
  13055. :disabled="isStar"
  13056. rows="4"
  13057. class="pj"
  13058. style="
  13059. padding: 10px 5px;
  13060. width: 70%;
  13061. background: #f7f6f9;
  13062. font-size: 14px;
  13063. text-indent: 10px;
  13064. "
  13065. cols
  13066. v-model="eScore.eBzText"
  13067. placeholder="请输入评价内容..."
  13068. ></textarea>
  13069. </div>
  13070. </div>
  13071. </div>
  13072. <div slot="footer">
  13073. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13074. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13075. >确 定</el-button
  13076. >
  13077. </div>
  13078. </el-dialog>
  13079. <el-dialog
  13080. title="个人评价"
  13081. :visible.sync="studentEvalDialogVisibleTeacher"
  13082. :append-to-body="true"
  13083. width="800px"
  13084. :before-close="handleClose"
  13085. class="dialog_diy"
  13086. >
  13087. <div class="w_name">
  13088. 学生姓名:<span>{{ sStudent.student }}</span>
  13089. </div>
  13090. <div class="evalCss">
  13091. <div class="nav">请选择星星进行评分</div>
  13092. <div class="middleBox" v-if="eScore.eStar">
  13093. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13094. <div class="nameAndrate">
  13095. <div>{{ e.value }}</div>
  13096. <el-rate
  13097. v-model="eScore.eStar[eIndex]"
  13098. :disabled="isStar"
  13099. ></el-rate>
  13100. </div>
  13101. <div v-if="e.detail">{{ e.detail }}</div>
  13102. </div>
  13103. <div class="easy_comment" v-if="false">
  13104. <div
  13105. v-for="(p, pIndex) in PlTextList"
  13106. :key="pIndex"
  13107. @click="fastText(p, 2)"
  13108. >
  13109. {{ p }}
  13110. </div>
  13111. </div>
  13112. <div class="bz">
  13113. <textarea
  13114. :disabled="isStar"
  13115. rows="4"
  13116. class="pj"
  13117. style="
  13118. padding: 10px 5px;
  13119. width: 70%;
  13120. background: #f7f6f9;
  13121. font-size: 14px;
  13122. text-indent: 10px;
  13123. "
  13124. cols
  13125. v-model="eScore.eBzText"
  13126. placeholder="请输入评价内容..."
  13127. ></textarea>
  13128. </div>
  13129. </div>
  13130. </div>
  13131. <div slot="footer">
  13132. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13133. >取 消</el-button
  13134. >
  13135. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13136. >确 定</el-button
  13137. >
  13138. </div>
  13139. </el-dialog>
  13140. <el-dialog
  13141. title="选择匹配"
  13142. :visible.sync="dialogVisibleSelect"
  13143. :append-to-body="true"
  13144. width="90%"
  13145. :before-close="handleClose"
  13146. class="dialog_diy dialog_diy3"
  13147. >
  13148. <div v-if="selectJson">
  13149. <div class="select_box2">
  13150. <div class="select_box2_title">
  13151. <div>选择匹配</div>
  13152. <div>请选择对应的答案进行答题!</div>
  13153. </div>
  13154. <div class="select_box2_box">
  13155. <div class="select_box2_img">
  13156. <img
  13157. :src="selectJson.url"
  13158. @click="previewImg(selectJson.url)"
  13159. alt=""
  13160. />
  13161. </div>
  13162. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13163. <div style="padding-top: 15px">
  13164. <div class="select_answer_title" v-if="isSelect">
  13165. {{ selectAnswer.stu }}
  13166. </div>
  13167. <div class="select_answer_title" v-else>
  13168. 根据题目选择对应答案
  13169. </div>
  13170. <div
  13171. class="select_box2_answer_box"
  13172. v-for="(item2, checkIndex) in selectJson.select"
  13173. :key="checkIndex"
  13174. >
  13175. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13176. <el-select
  13177. :disabled="isSelect"
  13178. v-model="selectAnswer.answer[checkIndex]"
  13179. placeholder="请选择正确答案"
  13180. >
  13181. <el-option
  13182. v-for="(e, eIndex) in selectJson.select"
  13183. :key="eIndex"
  13184. :label="e"
  13185. :value="eIndex"
  13186. >
  13187. </el-option>
  13188. </el-select>
  13189. </div>
  13190. </div>
  13191. <div
  13192. class="rightAnswerCss"
  13193. v-if="isSelect && (tType == 1 || tType == 4)"
  13194. >
  13195. <div
  13196. v-for="(a, aIndex) in selectJson.answer"
  13197. :key="aIndex"
  13198. class="rightAnswer"
  13199. >
  13200. <div
  13201. v-if="selectAnswer.answer[aIndex] === a"
  13202. style="color: #767de1"
  13203. >
  13204. 回答正确
  13205. </div>
  13206. <div v-else>回答错误</div>
  13207. <div
  13208. style="margin-left: 10px"
  13209. v-if="selectAnswer.answer[aIndex] !== a"
  13210. >
  13211. 正确答案:
  13212. </div>
  13213. <div
  13214. :class="
  13215. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13216. "
  13217. >
  13218. {{ selectJson.select[a] }}
  13219. </div>
  13220. </div>
  13221. </div>
  13222. </div>
  13223. <div class="upAnswerCss">
  13224. <el-button
  13225. type="primary"
  13226. @click="addSelectAnswer"
  13227. v-if="!isSelect"
  13228. >提交答案</el-button
  13229. >
  13230. </div>
  13231. </div>
  13232. </div>
  13233. </div>
  13234. </el-dialog>
  13235. <el-dialog
  13236. title="选择匹配"
  13237. :visible.sync="dialogVisibleSelectTeacher"
  13238. :append-to-body="true"
  13239. width="90%"
  13240. :before-close="handleClose"
  13241. class="dialog_diy dialog_diy3"
  13242. >
  13243. <div v-if="selectJson">
  13244. <div class="w_name">
  13245. 学生姓名:<span>{{ sStudent.student }}</span>
  13246. </div>
  13247. <div class="select_box2">
  13248. <div class="select_box2_title">
  13249. <div>选择匹配</div>
  13250. <div>请选择对应的答案进行答题!</div>
  13251. </div>
  13252. <div class="select_box2_box">
  13253. <div class="select_box2_img">
  13254. <img
  13255. :src="selectJson.url"
  13256. @click="previewImg(selectJson.url)"
  13257. alt=""
  13258. />
  13259. </div>
  13260. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13261. <div style="padding-top: 15px">
  13262. <div class="select_answer_title" v-if="isSelect">
  13263. {{ selectAnswer.stu }}
  13264. </div>
  13265. <div class="select_answer_title" v-else>
  13266. 根据题目选择对应答案
  13267. </div>
  13268. <div
  13269. class="select_box2_answer_box"
  13270. v-for="(item2, checkIndex) in selectJson.select"
  13271. :key="checkIndex"
  13272. >
  13273. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13274. <el-select
  13275. :disabled="isSelect"
  13276. v-model="selectAnswer.answer[checkIndex]"
  13277. placeholder="请选择正确答案"
  13278. >
  13279. <el-option
  13280. v-for="(e, eIndex) in selectJson.select"
  13281. :key="eIndex"
  13282. :label="e"
  13283. :value="eIndex"
  13284. >
  13285. </el-option>
  13286. </el-select>
  13287. </div>
  13288. </div>
  13289. <div
  13290. class="rightAnswerCss"
  13291. v-if="isSelect && (tType == 1 || tType == 4)"
  13292. >
  13293. <div
  13294. v-for="(a, aIndex) in selectJson.answer"
  13295. :key="aIndex"
  13296. class="rightAnswer"
  13297. >
  13298. <div
  13299. v-if="selectAnswer.answer[aIndex] === a"
  13300. style="color: #767de1"
  13301. >
  13302. 回答正确
  13303. </div>
  13304. <div v-else>回答错误</div>
  13305. <div
  13306. style="margin-left: 10px"
  13307. v-if="selectAnswer.answer[aIndex] !== a"
  13308. >
  13309. 正确答案:
  13310. </div>
  13311. <div
  13312. :class="
  13313. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13314. "
  13315. >
  13316. {{ selectJson.select[a] }}
  13317. </div>
  13318. </div>
  13319. </div>
  13320. </div>
  13321. <div class="upAnswerCss">
  13322. <el-button
  13323. type="primary"
  13324. @click="addSelectAnswerTeacher"
  13325. v-if="!isSelect"
  13326. >提交答案</el-button
  13327. >
  13328. </div>
  13329. </div>
  13330. </div>
  13331. </div>
  13332. </el-dialog>
  13333. <el-dialog
  13334. title="教师评分"
  13335. :visible.sync="dialogVisibleScore"
  13336. :append-to-body="true"
  13337. width="800px"
  13338. :before-close="handleClose"
  13339. class="dialog_diy"
  13340. >
  13341. <div>
  13342. <div class="studentDetail">
  13343. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13344. <div class="nameAndTime">
  13345. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13346. <div>{{ commentDetail.time }}</div>
  13347. </div>
  13348. </div>
  13349. <div
  13350. class="worksAnswer"
  13351. v-if="commentDetail.works && commentDetail.type == 2"
  13352. >
  13353. {{ JSON.parse(commentDetail.works)[0].answer }}
  13354. </div>
  13355. <div
  13356. class="worksAnswer"
  13357. v-if="commentDetail.works && commentDetail.type == 1"
  13358. >
  13359. <pdf
  13360. v-if="showPDF"
  13361. :pdfUrl="pptImgUrl"
  13362. style="width: 100%; height: 520px; overflow: auto"
  13363. :class="{ fullStyle: full }"
  13364. ></pdf>
  13365. <iframe
  13366. v-else
  13367. :src="pptImgUrl"
  13368. frameborder="0"
  13369. width="100%"
  13370. height="600"
  13371. :class="{ fullStyle: full }"
  13372. ></iframe>
  13373. </div>
  13374. <div
  13375. class="worksAnswer"
  13376. v-if="commentDetail.works && commentDetail.type == 0"
  13377. >
  13378. <img
  13379. :src="commentDetail.works"
  13380. alt=""
  13381. @click="previewImg(commentDetail.works)"
  13382. />
  13383. </div>
  13384. <div
  13385. class="worksAnswer"
  13386. v-if="commentDetail.works && commentDetail.type == 3"
  13387. >
  13388. <video-player
  13389. class="video-player vjs-custom-skin"
  13390. :playsinline="true"
  13391. :options="videoDetail"
  13392. @play="onPlayerPlay($event)"
  13393. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13394. ></video-player>
  13395. </div>
  13396. <div
  13397. class="worksAnswer codeFileBox"
  13398. v-if="commentDetail.works && commentDetail.type == 12"
  13399. @click="downloadFile(commentDetail.works)"
  13400. >
  13401. <img src="../../assets/icon/codeFile.png" />
  13402. <div>点击下载文件</div>
  13403. </div>
  13404. <div
  13405. class="worksAnswer codeFileBox"
  13406. v-if="commentDetail.works && commentDetail.type == 15"
  13407. @click="
  13408. openCocoPi(
  13409. 57,
  13410. commentIndexJson.toolIndex,
  13411. commentDetail.userid,
  13412. commentDetail.sName
  13413. )
  13414. "
  13415. >
  13416. <img src="../../assets/icon/codeFile.png" />
  13417. <div>点击打开CocoPi</div>
  13418. </div>
  13419. <div
  13420. class="worksAnswer"
  13421. v-if="commentDetail.works && commentDetail.type == 13"
  13422. >
  13423. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13424. </div>
  13425. <div class="scoreBox">
  13426. <span class="t">请输入分数</span>
  13427. <el-input-number
  13428. :disabled="courseDetail.userid != userid"
  13429. v-model="wScore"
  13430. :controls="false"
  13431. :min="0"
  13432. :max="100"
  13433. ></el-input-number>
  13434. </div>
  13435. <div class="scoreDetailBox">
  13436. <span class="t">评分评论</span>
  13437. <el-input
  13438. type="textarea"
  13439. :rows="5"
  13440. :disabled="courseDetail.userid != userid"
  13441. resize="none"
  13442. v-model="scoreDetail"
  13443. placeholder="请输入对学生的评价"
  13444. >
  13445. </el-input>
  13446. </div>
  13447. </div>
  13448. <span slot="footer" class="dialog-footer">
  13449. <el-button
  13450. @click="
  13451. (dialogVisibleScore = false),
  13452. (commentIndexJson = {}),
  13453. videoDetail.sources && videoDetail.sources[0]
  13454. ? (videoDetail.sources[0].src = '')
  13455. : ''
  13456. "
  13457. >取 消</el-button
  13458. >
  13459. <el-button
  13460. type="primary"
  13461. v-if="courseDetail.userid == userid"
  13462. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  13463. >确 定
  13464. </el-button>
  13465. </span>
  13466. </el-dialog>
  13467. <el-dialog
  13468. title="排序"
  13469. :visible.sync="dialogVisibleSentence"
  13470. :append-to-body="true"
  13471. width="1000px"
  13472. :before-close="handleClose"
  13473. class="dialog_diy dialog_diy3"
  13474. >
  13475. <div>
  13476. <div class="sentenBox">
  13477. <div
  13478. v-for="(st, stIndex) in sentenceList"
  13479. :key="stIndex"
  13480. style="padding-bottom: 20px"
  13481. >
  13482. <div
  13483. style="padding: 15px 0 10px 20px"
  13484. class="sentenceTitle"
  13485. :index="stIndex + 1"
  13486. >
  13487. 题目{{ stIndex + 1 }}:请选择正确顺序
  13488. </div>
  13489. <div class="cardList" v-if="st.chooseSenList">
  13490. <div class="cardBox">
  13491. <div
  13492. v-for="(r, rIndex) in st.chooseSenList"
  13493. :key="rIndex"
  13494. @click="returnCard(r, stIndex, rIndex)"
  13495. >
  13496. <el-tooltip
  13497. class="item"
  13498. effect="light"
  13499. :content="r"
  13500. placement="top"
  13501. v-if="r != '' && r != undefined"
  13502. >
  13503. <div
  13504. :class="{
  13505. isCard: r,
  13506. isChooseCard: r == '' || r == undefined,
  13507. }"
  13508. >
  13509. <div>{{ r }}</div>
  13510. </div>
  13511. </el-tooltip>
  13512. <div
  13513. :class="{
  13514. isCard: r,
  13515. isChooseCard: r == '' || r == undefined,
  13516. }"
  13517. v-else
  13518. >
  13519. <div>{{ r }}</div>
  13520. </div>
  13521. </div>
  13522. </div>
  13523. </div>
  13524. <div class="cardList" v-if="st.addChangeSen">
  13525. <div class="cardBox">
  13526. <div
  13527. v-for="(s, sIndex) in st.addChangeSen"
  13528. :key="sIndex"
  13529. @click="setRightAnswer(s, stIndex, sIndex)"
  13530. >
  13531. <el-tooltip
  13532. class="item"
  13533. effect="light"
  13534. :content="s"
  13535. placement="top"
  13536. v-if="s != '' && s != undefined"
  13537. >
  13538. <div
  13539. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13540. >
  13541. <div>{{ s }}</div>
  13542. </div>
  13543. </el-tooltip>
  13544. <div
  13545. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13546. v-else
  13547. >
  13548. <div>{{ s }}</div>
  13549. </div>
  13550. </div>
  13551. </div>
  13552. </div>
  13553. </div>
  13554. </div>
  13555. </div>
  13556. <span slot="footer" class="dialog-footer">
  13557. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  13558. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  13559. </span>
  13560. </el-dialog>
  13561. <el-dialog
  13562. title="排序"
  13563. :visible.sync="dialogVisibleSentenceTeacher"
  13564. :append-to-body="true"
  13565. width="1000px"
  13566. :before-close="handleClose"
  13567. class="dialog_diy dialog_diy3"
  13568. >
  13569. <div>
  13570. <div class="w_name">
  13571. 学生姓名:<span>{{ sStudent.student }}</span>
  13572. </div>
  13573. <div class="sentenBox">
  13574. <div
  13575. v-for="(st, stIndex) in sentenceList"
  13576. :key="stIndex"
  13577. style="padding-bottom: 20px"
  13578. >
  13579. <div
  13580. style="padding: 15px 0 10px 20px"
  13581. class="sentenceTitle"
  13582. :index="stIndex + 1"
  13583. >
  13584. 题目{{ stIndex + 1 }}:请选择正确顺序
  13585. </div>
  13586. <div class="cardList" v-if="st.chooseSenList">
  13587. <div class="cardBox">
  13588. <div
  13589. v-for="(r, rIndex) in st.chooseSenList"
  13590. :key="rIndex"
  13591. @click="returnCard(r, stIndex, rIndex)"
  13592. >
  13593. <el-tooltip
  13594. class="item"
  13595. effect="light"
  13596. :content="r"
  13597. placement="top"
  13598. v-if="r != '' && r != undefined"
  13599. >
  13600. <div
  13601. :class="{
  13602. isCard: r,
  13603. isChooseCard: r == '' || r == undefined,
  13604. }"
  13605. >
  13606. <div>{{ r }}</div>
  13607. </div>
  13608. </el-tooltip>
  13609. <div
  13610. :class="{
  13611. isCard: r,
  13612. isChooseCard: r == '' || r == undefined,
  13613. }"
  13614. v-else
  13615. >
  13616. <div>{{ r }}</div>
  13617. </div>
  13618. </div>
  13619. </div>
  13620. </div>
  13621. <div class="cardList" v-if="st.addChangeSen">
  13622. <div class="cardBox">
  13623. <div
  13624. v-for="(s, sIndex) in st.addChangeSen"
  13625. :key="sIndex"
  13626. @click="setRightAnswer(s, stIndex, sIndex)"
  13627. >
  13628. <el-tooltip
  13629. class="item"
  13630. effect="light"
  13631. :content="s"
  13632. placement="top"
  13633. v-if="s != '' && s != undefined"
  13634. >
  13635. <div
  13636. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13637. >
  13638. <div>{{ s }}</div>
  13639. </div>
  13640. </el-tooltip>
  13641. <div
  13642. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13643. v-else
  13644. >
  13645. <div>{{ s }}</div>
  13646. </div>
  13647. </div>
  13648. </div>
  13649. </div>
  13650. </div>
  13651. </div>
  13652. </div>
  13653. <span slot="footer" class="dialog-footer">
  13654. <el-button @click="dialogVisibleSentenceTeacher = false"
  13655. >取 消</el-button
  13656. >
  13657. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  13658. </span>
  13659. </el-dialog>
  13660. <el-dialog
  13661. title="排序"
  13662. :visible.sync="dialogVisibleSentence1"
  13663. :append-to-body="true"
  13664. width="1000px"
  13665. :before-close="handleClose"
  13666. class="dialog_diy dialog_diy3"
  13667. >
  13668. <div>
  13669. <div class="sentenBox">
  13670. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13671. {{ sentenceList1.stuName }}的作业
  13672. </div>
  13673. <div
  13674. v-for="(st, stIndex) in sentenceList1"
  13675. :key="stIndex"
  13676. style="padding-bottom: 20px"
  13677. >
  13678. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13679. 第{{ stIndex + 1 }}题
  13680. </div>
  13681. <div class="isWrong">
  13682. <div class="cardList1" v-if="st.chooseSenList">
  13683. <div class="cardBox">
  13684. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  13685. <el-tooltip
  13686. class="item"
  13687. effect="light"
  13688. :content="s"
  13689. placement="top"
  13690. >
  13691. <div class="isCard">
  13692. <div>{{ s }}</div>
  13693. </div>
  13694. </el-tooltip>
  13695. </div>
  13696. </div>
  13697. <div class="cardAnswerBox">
  13698. 组成句子:{{ st.chooseSenList.join(" ") }}
  13699. </div>
  13700. </div>
  13701. <div v-if="tType == 2" class="isTj">
  13702. <div class="isTjImg">
  13703. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13704. </div>
  13705. <div>已提交</div>
  13706. </div>
  13707. <div
  13708. class="answerRight isTj"
  13709. v-if="
  13710. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  13711. (tType == 1 || tType == 4)
  13712. "
  13713. >
  13714. <div class="isTjImg">
  13715. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13716. </div>
  13717. <div>回答正确</div>
  13718. </div>
  13719. <div
  13720. class="answerRight isTj"
  13721. v-if="
  13722. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13723. (tType == 1 || tType == 4)
  13724. "
  13725. >
  13726. <div class="isTjImg">
  13727. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  13728. </div>
  13729. <div>回答错误</div>
  13730. </div>
  13731. </div>
  13732. <div
  13733. v-if="
  13734. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13735. (tType == 1 || tType == 4)
  13736. "
  13737. >
  13738. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  13739. <div
  13740. class="cardList"
  13741. v-if="st.rightAnswer"
  13742. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  13743. >
  13744. <div class="cardBox">
  13745. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  13746. <el-tooltip
  13747. class="item"
  13748. effect="light"
  13749. :content="r"
  13750. placement="top"
  13751. >
  13752. <div class="isCard1">
  13753. <div>{{ r }}</div>
  13754. </div>
  13755. </el-tooltip>
  13756. </div>
  13757. </div>
  13758. <div class="cardAnswerBox">
  13759. 组成句子:{{ st.rightAnswer.join(" ") }}
  13760. </div>
  13761. </div>
  13762. </div>
  13763. </div>
  13764. </div>
  13765. </div>
  13766. <span slot="footer" class="dialog-footer">
  13767. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  13768. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  13769. >确 定</el-button
  13770. >
  13771. </span>
  13772. </el-dialog>
  13773. <el-dialog
  13774. title="教师提交作业"
  13775. :visible.sync="dialogVisibleWorks"
  13776. :append-to-body="true"
  13777. width="500px"
  13778. :before-close="handleClose"
  13779. class="dialog_change"
  13780. >
  13781. <div class="marginT">
  13782. <div class="w_name">
  13783. 学生姓名:<span>{{ sStudent.student }}</span>
  13784. </div>
  13785. <div>上传文件</div>
  13786. <div
  13787. class="chapter_add"
  13788. @click="addImg($event)"
  13789. v-if="studyJuri[0].cover.length == 0"
  13790. >
  13791. <div class="up_photo">
  13792. <img src="../../assets/uploadImg2.png" alt />
  13793. </div>
  13794. <!-- <input
  13795. type="file"
  13796. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  13797. style="display: none"
  13798. @change="beforeUpload1($event, 1)"
  13799. /> -->
  13800. <input
  13801. type="file"
  13802. accept="*"
  13803. style="display: none"
  13804. @change="beforeUpload1($event, 1)"
  13805. />
  13806. </div>
  13807. <!-- capture="camera" -->
  13808. <div
  13809. class="chapter_add"
  13810. style="
  13811. display: flex;
  13812. width: 100%;
  13813. flex-direction: row;
  13814. flex-wrap: wrap;
  13815. justify-content: flex-start;
  13816. padding: 15px 0;
  13817. "
  13818. v-if="studyJuri[0].cover.length > 0"
  13819. >
  13820. <div class="upCover">
  13821. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  13822. <img :src="word" alt v-else-if="fileType == 1" />
  13823. <img :src="video" alt v-else-if="fileType == 2" />
  13824. <img :src="word2" alt v-else-if="fileType == 3" />
  13825. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  13826. <div class="deleteWord" @click="clean(1)">
  13827. <img src="../../assets/icon/deleteWorks.png" alt />
  13828. </div>
  13829. </div>
  13830. </div>
  13831. </div>
  13832. <div
  13833. class="upload_send"
  13834. @click="addCourseWorksTeacher(taskCount)"
  13835. v-if="!proVisible"
  13836. >
  13837. 提交
  13838. </div>
  13839. </el-dialog>
  13840. <ImgDraw
  13841. :drawShow="drawShow"
  13842. @closeDraw="closeDraw"
  13843. @addImgDraw="addImgDraw"
  13844. :bg="bg"
  13845. ></ImgDraw>
  13846. <el-dialog
  13847. title="表格"
  13848. :visible.sync="dialogVisibleTable"
  13849. :append-to-body="true"
  13850. width="95%"
  13851. :before-close="handleClose"
  13852. class="dialog_diy"
  13853. >
  13854. <el-form>
  13855. <div
  13856. style="
  13857. display: flex;
  13858. align-items: center;
  13859. justify-content: space-between;
  13860. "
  13861. >
  13862. <span>表格内容</span>
  13863. <el-button type="primary" size="small" @click="returnTableText"
  13864. >还原模板</el-button
  13865. >
  13866. </div>
  13867. <Table
  13868. v-model="tableJson.text"
  13869. @change="change"
  13870. v-if="dialogVisibleTable"
  13871. ></Table>
  13872. </el-form>
  13873. <span slot="footer" class="dialog-footer">
  13874. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  13875. <el-button type="primary" @click="addTableWorks">确定</el-button>
  13876. </span>
  13877. </el-dialog>
  13878. <el-dialog
  13879. title="表格"
  13880. :visible.sync="dialogVisibleTableTeacher"
  13881. :append-to-body="true"
  13882. width="95%"
  13883. :before-close="handleClose"
  13884. class="dialog_diy"
  13885. >
  13886. <el-form>
  13887. <div class="w_name">
  13888. 学生姓名:<span>{{ sStudent.student }}</span>
  13889. </div>
  13890. <div>表格内容</div>
  13891. <Table
  13892. v-model="tableJson.text"
  13893. @change="change"
  13894. v-if="dialogVisibleTableTeacher"
  13895. ></Table>
  13896. </el-form>
  13897. <span slot="footer" class="dialog-footer">
  13898. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  13899. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  13900. </span>
  13901. </el-dialog>
  13902. <el-dialog
  13903. title="文档"
  13904. :visible.sync="dialogVisibleWord"
  13905. :append-to-body="true"
  13906. width="95%"
  13907. :before-close="handleClose"
  13908. class="dialog_diy"
  13909. >
  13910. <el-form>
  13911. <div
  13912. style="
  13913. display: flex;
  13914. align-items: center;
  13915. justify-content: space-between;
  13916. "
  13917. >
  13918. <span>文档内容</span>
  13919. <el-button type="primary" size="small" @click="returnWordText"
  13920. >还原模板</el-button
  13921. >
  13922. </div>
  13923. <editor-bar
  13924. v-model="wordJson.text"
  13925. v-if="dialogVisibleWord"
  13926. ></editor-bar>
  13927. </el-form>
  13928. <span slot="footer" class="dialog-footer">
  13929. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  13930. <el-button type="primary" @click="addWordWorks">确定</el-button>
  13931. </span>
  13932. </el-dialog>
  13933. <el-dialog
  13934. title="文档"
  13935. :visible.sync="dialogVisibleWordTeacher"
  13936. :append-to-body="true"
  13937. width="95%"
  13938. :before-close="handleClose"
  13939. class="dialog_diy"
  13940. >
  13941. <el-form>
  13942. <div class="w_name">
  13943. 学生姓名:<span>{{ sStudent.student }}</span>
  13944. </div>
  13945. <div>文档内容</div>
  13946. <editor-bar
  13947. v-model="wordJson.text"
  13948. v-if="dialogVisibleWordTeacher"
  13949. ></editor-bar>
  13950. </el-form>
  13951. <span slot="footer" class="dialog-footer">
  13952. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  13953. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  13954. </span>
  13955. </el-dialog>
  13956. <el-dialog
  13957. title="表格"
  13958. :visible.sync="dialogVisibleTable2"
  13959. :append-to-body="true"
  13960. width="95%"
  13961. :before-close="handleClose"
  13962. class="dialog_diy"
  13963. >
  13964. <el-form>
  13965. <div class="cont" v-html="tableJson.text"></div>
  13966. </el-form>
  13967. <span slot="footer" class="dialog-footer">
  13968. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  13969. </span>
  13970. </el-dialog>
  13971. <el-dialog
  13972. title="文档"
  13973. :visible.sync="dialogVisibleTable3"
  13974. :append-to-body="true"
  13975. width="95%"
  13976. :before-close="handleClose"
  13977. class="dialog_diy"
  13978. >
  13979. <el-form>
  13980. <div class="cont" v-html="tableJson.text"></div>
  13981. </el-form>
  13982. <span slot="footer" class="dialog-footer">
  13983. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  13984. </span>
  13985. </el-dialog>
  13986. <el-dialog
  13987. title="分组设置"
  13988. :visible.sync="dialogVisibleGroup"
  13989. :append-to-body="true"
  13990. width="95%"
  13991. :before-close="handleClose"
  13992. class="dialog_diy"
  13993. >
  13994. <div v-if="dialogVisibleGroup">
  13995. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  13996. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  13997. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  13998. </div>
  13999. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14000. @click="lockChair">
  14001. 锁定位置
  14002. </div>
  14003. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14004. 解锁位置
  14005. </div> -->
  14006. <div class="group_switch">
  14007. <span>开放选座</span>
  14008. <el-switch
  14009. v-model="islock"
  14010. active-text=""
  14011. class="switchCss"
  14012. @change="lockChair"
  14013. ></el-switch>
  14014. </div>
  14015. <div
  14016. type="primary"
  14017. @click="updateGroup"
  14018. class="returnBtn"
  14019. style="background-color: #225bc7"
  14020. >
  14021. 分组设置
  14022. </div>
  14023. </div>
  14024. <div>
  14025. <div
  14026. class="g_d_box"
  14027. v-if="groupJson.group && groupStudent[toolindex]"
  14028. >
  14029. <div
  14030. class="g_d_group"
  14031. v-for="(g, gindex) in groupJson.group"
  14032. :key="gindex"
  14033. >
  14034. <div class="g_d_group_chair">
  14035. <div v-if="groupJson.number > 1">
  14036. <span
  14037. :class="{
  14038. isChair:
  14039. groupStudent[toolindex][gindex] &&
  14040. groupStudent[toolindex][gindex][0],
  14041. updateChair:
  14042. courseDetail.userid == userid &&
  14043. groupStudent[toolindex][gindex] &&
  14044. groupStudent[toolindex][gindex][0] &&
  14045. groupJson.islock == 2,
  14046. }"
  14047. ><span
  14048. class="updateChairBtn"
  14049. @click="
  14050. updateGroupChair(
  14051. groupStudent[toolindex][gindex] &&
  14052. groupStudent[toolindex][gindex][0]
  14053. )
  14054. "
  14055. >修改</span
  14056. ></span
  14057. ><span>{{
  14058. groupStudent[toolindex][gindex] &&
  14059. groupStudent[toolindex][gindex][0]
  14060. ? groupStudent[toolindex][gindex] &&
  14061. groupStudent[toolindex][gindex][0].name
  14062. : "空位置"
  14063. }}</span>
  14064. </div>
  14065. <div v-if="groupJson.number > 4">
  14066. <span
  14067. :class="{
  14068. isChair:
  14069. groupStudent[toolindex][gindex] &&
  14070. groupStudent[toolindex][gindex][4],
  14071. updateChair:
  14072. courseDetail.userid == userid &&
  14073. groupStudent[toolindex][gindex] &&
  14074. groupStudent[toolindex][gindex][4] &&
  14075. groupJson.islock == 2,
  14076. }"
  14077. ><span
  14078. class="updateChairBtn"
  14079. @click="
  14080. updateGroupChair(
  14081. groupStudent[toolindex][gindex] &&
  14082. groupStudent[toolindex][gindex][4]
  14083. )
  14084. "
  14085. >修改</span
  14086. ></span
  14087. ><span>{{
  14088. groupStudent[toolindex][gindex] &&
  14089. groupStudent[toolindex][gindex][4]
  14090. ? groupStudent[toolindex][gindex] &&
  14091. groupStudent[toolindex][gindex][4].name
  14092. : "空位置"
  14093. }}</span>
  14094. </div>
  14095. <div v-if="groupJson.number > 8">
  14096. <span
  14097. :class="{
  14098. isChair:
  14099. groupStudent[toolindex][gindex] &&
  14100. groupStudent[toolindex][gindex][8],
  14101. updateChair:
  14102. courseDetail.userid == userid &&
  14103. groupStudent[toolindex][gindex] &&
  14104. groupStudent[toolindex][gindex][8] &&
  14105. groupJson.islock == 2,
  14106. }"
  14107. ><span
  14108. class="updateChairBtn"
  14109. @click="
  14110. updateGroupChair(
  14111. groupStudent[toolindex][gindex] &&
  14112. groupStudent[toolindex][gindex][8]
  14113. )
  14114. "
  14115. >修改</span
  14116. ></span
  14117. ><span>{{
  14118. groupStudent[toolindex][gindex] &&
  14119. groupStudent[toolindex][gindex][8]
  14120. ? groupStudent[toolindex][gindex] &&
  14121. groupStudent[toolindex][gindex][8].name
  14122. : "空位置"
  14123. }}</span>
  14124. </div>
  14125. </div>
  14126. <div class="g_d_group_tableBox">
  14127. <div class="g_d_group_chair2">
  14128. <div v-if="groupJson.number > 2">
  14129. <span
  14130. :class="{
  14131. isChair:
  14132. groupStudent[toolindex][gindex] &&
  14133. groupStudent[toolindex][gindex][2],
  14134. updateChair:
  14135. courseDetail.userid == userid &&
  14136. groupStudent[toolindex][gindex] &&
  14137. groupStudent[toolindex][gindex][2] &&
  14138. groupJson.islock == 2,
  14139. }"
  14140. ><span
  14141. class="updateChairBtn"
  14142. @click="
  14143. updateGroupChair(
  14144. groupStudent[toolindex][gindex] &&
  14145. groupStudent[toolindex][gindex][2]
  14146. )
  14147. "
  14148. >修改</span
  14149. ></span
  14150. ><span>{{
  14151. groupStudent[toolindex][gindex] &&
  14152. groupStudent[toolindex][gindex][2]
  14153. ? groupStudent[toolindex][gindex] &&
  14154. groupStudent[toolindex][gindex][2].name
  14155. : "空位置"
  14156. }}</span>
  14157. </div>
  14158. <div v-if="groupJson.number > 6">
  14159. <span
  14160. :class="{
  14161. isChair:
  14162. groupStudent[toolindex][gindex] &&
  14163. groupStudent[toolindex][gindex][6],
  14164. updateChair:
  14165. courseDetail.userid == userid &&
  14166. groupStudent[toolindex][gindex] &&
  14167. groupStudent[toolindex][gindex][6] &&
  14168. groupJson.islock == 2,
  14169. }"
  14170. ><span
  14171. class="updateChairBtn"
  14172. @click="
  14173. updateGroupChair(
  14174. groupStudent[toolindex][gindex] &&
  14175. groupStudent[toolindex][gindex][6]
  14176. )
  14177. "
  14178. >修改</span
  14179. ></span
  14180. ><span>{{
  14181. groupStudent[toolindex][gindex] &&
  14182. groupStudent[toolindex][gindex][6]
  14183. ? groupStudent[toolindex][gindex] &&
  14184. groupStudent[toolindex][gindex][6].name
  14185. : "空位置"
  14186. }}</span>
  14187. </div>
  14188. </div>
  14189. <div class="g_d_group_table">
  14190. <div>
  14191. {{ g.name }}
  14192. </div>
  14193. <div>
  14194. <div
  14195. v-if="
  14196. courseDetail.userid == userid && groupJson.islock == 2
  14197. "
  14198. @click="deleteGroupChair(gindex)"
  14199. >
  14200. 移除组员
  14201. </div>
  14202. <div
  14203. @click="selectGroup(gindex)"
  14204. v-else-if="
  14205. groupStudentUid[toolindex] &&
  14206. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  14207. "
  14208. >
  14209. 加入分组
  14210. </div>
  14211. <div
  14212. @click="
  14213. exitGroup(
  14214. groupStudent[toolindex][gindex] &&
  14215. groupStudent[toolindex][gindex][
  14216. groupStudentUid[toolindex][gindex].indexOf(userid)
  14217. ].id
  14218. )
  14219. "
  14220. v-else-if="
  14221. groupStudentUid[toolindex] &&
  14222. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  14223. "
  14224. >
  14225. 退出分组
  14226. </div>
  14227. </div>
  14228. </div>
  14229. <div class="g_d_group_chair2">
  14230. <div v-if="groupJson.number > 3">
  14231. <span
  14232. :class="{
  14233. isChair:
  14234. groupStudent[toolindex][gindex] &&
  14235. groupStudent[toolindex][gindex][3],
  14236. updateChair:
  14237. courseDetail.userid == userid &&
  14238. groupStudent[toolindex][gindex] &&
  14239. groupStudent[toolindex][gindex][3] &&
  14240. groupJson.islock == 2,
  14241. }"
  14242. ><span
  14243. class="updateChairBtn"
  14244. @click="
  14245. updateGroupChair(
  14246. groupStudent[toolindex][gindex] &&
  14247. groupStudent[toolindex][gindex][3]
  14248. )
  14249. "
  14250. >修改</span
  14251. ></span
  14252. ><span>{{
  14253. groupStudent[toolindex][gindex] &&
  14254. groupStudent[toolindex][gindex][3]
  14255. ? groupStudent[toolindex][gindex] &&
  14256. groupStudent[toolindex][gindex][3].name
  14257. : "空位置"
  14258. }}</span>
  14259. </div>
  14260. <div v-if="groupJson.number > 7">
  14261. <span
  14262. :class="{
  14263. isChair:
  14264. groupStudent[toolindex][gindex] &&
  14265. groupStudent[toolindex][gindex][7],
  14266. updateChair:
  14267. courseDetail.userid == userid &&
  14268. groupStudent[toolindex][gindex] &&
  14269. groupStudent[toolindex][gindex][7] &&
  14270. groupJson.islock == 2,
  14271. }"
  14272. ><span
  14273. class="updateChairBtn"
  14274. @click="
  14275. updateGroupChair(
  14276. groupStudent[toolindex][gindex] &&
  14277. groupStudent[toolindex][gindex][7]
  14278. )
  14279. "
  14280. >修改</span
  14281. ></span
  14282. ><span>{{
  14283. groupStudent[toolindex][gindex] &&
  14284. groupStudent[toolindex][gindex][7]
  14285. ? groupStudent[toolindex][gindex] &&
  14286. groupStudent[toolindex][gindex][7].name
  14287. : "空位置"
  14288. }}</span>
  14289. </div>
  14290. </div>
  14291. </div>
  14292. <div class="g_d_group_chair">
  14293. <div v-if="groupJson.number > 1">
  14294. <span
  14295. :class="{
  14296. isChair:
  14297. groupStudent[toolindex][gindex] &&
  14298. groupStudent[toolindex][gindex][1],
  14299. updateChair:
  14300. courseDetail.userid == userid &&
  14301. groupStudent[toolindex][gindex] &&
  14302. groupStudent[toolindex][gindex][1] &&
  14303. groupJson.islock == 2,
  14304. }"
  14305. ><span
  14306. class="updateChairBtn"
  14307. @click="
  14308. updateGroupChair(
  14309. groupStudent[toolindex][gindex] &&
  14310. groupStudent[toolindex][gindex][1]
  14311. )
  14312. "
  14313. >修改</span
  14314. ></span
  14315. ><span>{{
  14316. groupStudent[toolindex][gindex] &&
  14317. groupStudent[toolindex][gindex][1]
  14318. ? groupStudent[toolindex][gindex] &&
  14319. groupStudent[toolindex][gindex][1].name
  14320. : "空位置"
  14321. }}</span>
  14322. </div>
  14323. <div v-if="groupJson.number > 5">
  14324. <span
  14325. :class="{
  14326. isChair:
  14327. groupStudent[toolindex][gindex] &&
  14328. groupStudent[toolindex][gindex][5],
  14329. updateChair:
  14330. courseDetail.userid == userid &&
  14331. groupStudent[toolindex][gindex] &&
  14332. groupStudent[toolindex][gindex][5] &&
  14333. groupJson.islock == 2,
  14334. }"
  14335. ><span
  14336. class="updateChairBtn"
  14337. @click="
  14338. updateGroupChair(
  14339. groupStudent[toolindex][gindex] &&
  14340. groupStudent[toolindex][gindex][5]
  14341. )
  14342. "
  14343. >修改</span
  14344. ></span
  14345. ><span>{{
  14346. groupStudent[toolindex][gindex] &&
  14347. groupStudent[toolindex][gindex][5]
  14348. ? groupStudent[toolindex][gindex] &&
  14349. groupStudent[toolindex][gindex][5].name
  14350. : "空位置"
  14351. }}</span>
  14352. </div>
  14353. <div v-if="groupJson.number > 9">
  14354. <span
  14355. :class="{
  14356. isChair:
  14357. groupStudent[toolindex][gindex] &&
  14358. groupStudent[toolindex][gindex][9],
  14359. updateChair:
  14360. courseDetail.userid == userid &&
  14361. groupStudent[toolindex][gindex] &&
  14362. groupStudent[toolindex][gindex][9] &&
  14363. groupJson.islock == 2,
  14364. }"
  14365. ><span
  14366. class="updateChairBtn"
  14367. @click="
  14368. updateGroupChair(
  14369. groupStudent[toolindex][gindex] &&
  14370. groupStudent[toolindex][gindex][9]
  14371. )
  14372. "
  14373. >修改</span
  14374. ></span
  14375. ><span>{{
  14376. groupStudent[toolindex][gindex] &&
  14377. groupStudent[toolindex][gindex][9]
  14378. ? groupStudent[toolindex][gindex] &&
  14379. groupStudent[toolindex][gindex][9].name
  14380. : "空位置"
  14381. }}</span>
  14382. </div>
  14383. </div>
  14384. </div>
  14385. </div>
  14386. </div>
  14387. </div>
  14388. <span slot="footer" class="dialog-footer">
  14389. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  14390. </span>
  14391. </el-dialog>
  14392. <el-dialog
  14393. title="分组设置"
  14394. :visible.sync="dialogVisibleGroup2"
  14395. :append-to-body="true"
  14396. width="650px"
  14397. :before-close="handleClose"
  14398. class="dialog_diy"
  14399. >
  14400. <div class="groupBox">
  14401. <div v-if="groupJson2.group" class="groupContent">
  14402. <div class="groupTitle">请设置小组数量及名称</div>
  14403. <div
  14404. v-for="(item, index) in groupJson2.group"
  14405. :key="index"
  14406. class="groupName"
  14407. >
  14408. <span class="groupn">第{{ index + 1 }}组名称:</span>
  14409. <el-input
  14410. v-model="item.name"
  14411. placeholder="请输入名称..."
  14412. style="width: 250px"
  14413. ></el-input>
  14414. <!-- <div class="groupBtn">
  14415. <el-button type="primary" size="small" @click="addGroup(index)">
  14416. 添加</el-button>
  14417. <el-button type="primary" size="small" @click="deleteGroup(index)"
  14418. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  14419. </div> -->
  14420. </div>
  14421. </div>
  14422. <div class="groupContent">
  14423. <div class="groupTitle">请设置每组人数</div>
  14424. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  14425. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  14426. <el-input
  14427. v-model="groupJson2.number"
  14428. style="width: 150px"
  14429. placeholder="请输入2-10的数字"
  14430. @change="numberPan"
  14431. ></el-input>
  14432. </div>
  14433. </div>
  14434. <span slot="footer" class="dialog-footer">
  14435. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  14436. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  14437. </span>
  14438. </el-dialog>
  14439. <el-dialog
  14440. title="作业提交"
  14441. :visible.sync="dialogVisibleGroupWork"
  14442. :append-to-body="true"
  14443. width="500px"
  14444. :before-close="handleClose"
  14445. class="dialog_change"
  14446. >
  14447. <div class="marginT">
  14448. <div>上传文件</div>
  14449. <div
  14450. class="chapter_add"
  14451. @click="addImg($event)"
  14452. v-if="studyJuri[0].cover.length == 0"
  14453. >
  14454. <div class="up_photo">
  14455. <img src="../../assets/icon/uploadImg.png" alt />
  14456. </div>
  14457. <!-- <input
  14458. type="file"
  14459. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14460. style="display: none"
  14461. @change="beforeUpload1($event, 1)"
  14462. /> -->
  14463. <input
  14464. type="file"
  14465. accept="*"
  14466. style="display: none"
  14467. @change="beforeUpload1($event, 1)"
  14468. />
  14469. </div>
  14470. <!-- capture="camera" -->
  14471. <div
  14472. class="chapter_add"
  14473. style="
  14474. display: flex;
  14475. width: 100%;
  14476. flex-direction: row;
  14477. flex-wrap: wrap;
  14478. justify-content: flex-start;
  14479. padding: 15px 0;
  14480. "
  14481. v-if="studyJuri[0].cover.length > 0"
  14482. >
  14483. <div class="upCover">
  14484. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14485. <img :src="word" alt v-else-if="fileType == 1" />
  14486. <img :src="video" alt v-else-if="fileType == 2" />
  14487. <img :src="word2" alt v-else-if="fileType == 3" />
  14488. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14489. <div class="deleteWord" @click="clean(1)">
  14490. <img src="../../assets/icon/deleteWorks.png" alt />
  14491. </div>
  14492. </div>
  14493. </div>
  14494. </div>
  14495. <div
  14496. class="upload_send"
  14497. @click="addCourseWorks2(taskCount)"
  14498. v-if="!proVisible"
  14499. >
  14500. 提交
  14501. </div>
  14502. </el-dialog>
  14503. <el-dialog
  14504. title="修改分组"
  14505. :visible.sync="dialogVisibleUpdateGroup"
  14506. :append-to-body="true"
  14507. width="350px"
  14508. :before-close="handleClose"
  14509. class="dialog_diy"
  14510. >
  14511. <div>
  14512. <h2>
  14513. {{ this.updateGroupUser.name }}
  14514. </h2>
  14515. <div style="color: rgb(171 171 171); margin-top: 10px">
  14516. 请选择要进入的分组
  14517. </div>
  14518. <el-radio-group v-model="checkChair">
  14519. <el-radio
  14520. style="display: block; margin-top: 20px"
  14521. v-for="(item, index) in updateGroupArray"
  14522. :label="item.label"
  14523. :key="index"
  14524. >{{ item.name }}</el-radio
  14525. >
  14526. </el-radio-group>
  14527. </div>
  14528. <span slot="footer" class="dialog-footer">
  14529. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  14530. <el-button type="primary" @click="updateChair">确定</el-button>
  14531. </span>
  14532. </el-dialog>
  14533. <el-dialog
  14534. title="移除组员"
  14535. :visible.sync="dialogVisibleDeleteGroup"
  14536. :append-to-body="true"
  14537. width="350px"
  14538. :before-close="handleClose"
  14539. class="dialog_diy"
  14540. >
  14541. <div>
  14542. <h2>
  14543. {{ this.deleteGroupArray.name }}
  14544. </h2>
  14545. <div style="color: rgb(171 171 171); margin-top: 10px">
  14546. 请选择要删除的组员
  14547. </div>
  14548. <el-checkbox-group v-model="checkDeleteGroup">
  14549. <el-checkbox
  14550. style="display: flex; margin-top: 20px"
  14551. v-for="(item, index) in deleteGroupUser"
  14552. :label="item.userid"
  14553. :key="index"
  14554. >{{ item.name }}</el-checkbox
  14555. >
  14556. </el-checkbox-group>
  14557. </div>
  14558. <span slot="footer" class="dialog-footer">
  14559. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  14560. <el-button type="primary" @click="deleteChair">确定</el-button>
  14561. </span>
  14562. </el-dialog>
  14563. <el-dialog
  14564. title="批量上传"
  14565. :visible.sync="dialogVisiblePl"
  14566. :append-to-body="true"
  14567. width="700px"
  14568. :before-close="handleClose"
  14569. class="dialog_change"
  14570. >
  14571. <div class="marginT">
  14572. <div class="plworkBox">
  14573. <div
  14574. class="chapter_add"
  14575. style="
  14576. display: flex;
  14577. width: 150px;
  14578. flex-direction: row;
  14579. flex-wrap: wrap;
  14580. justify-content: flex-start;
  14581. margin: 0 10px 10px 0;
  14582. "
  14583. v-for="(item, index) in plworkFile"
  14584. :key="index"
  14585. >
  14586. <div class="upCover2">
  14587. <img
  14588. :src="item.url"
  14589. alt
  14590. v-if="item.fileType == 1"
  14591. @click="previewImg(item.url)"
  14592. />
  14593. <img :src="word" alt v-else-if="item.fileType == 4" />
  14594. <img :src="video" alt v-else />
  14595. <!-- <span class="picName">{{ item.name }}</span> -->
  14596. <!-- <el-input
  14597. v-model="item.username"
  14598. placeholder="请输入学生名字"
  14599. style="margin-top: 10px"
  14600. ></el-input> -->
  14601. <div
  14602. class="pl_select_box"
  14603. @click="
  14604. getUpdateMore(true, checkUpload(), item.username, index)
  14605. "
  14606. >
  14607. {{ getSName(item.username) }}
  14608. </div>
  14609. <!-- <el-select
  14610. style="margin-top: 10px"
  14611. v-model="item.username"
  14612. filterable
  14613. allow-create
  14614. placeholder="请选择学生"
  14615. >
  14616. <el-option
  14617. v-for="item1 in checkUpload()"
  14618. :key="item1.userid"
  14619. :label="item1.name ? item1.name : item1.username"
  14620. :value="item1.userid"
  14621. >
  14622. </el-option>
  14623. </el-select> -->
  14624. <div class="deleteWord" @click="clean2(index)">
  14625. <img src="../../assets/icon/deleteWorks.png" alt />
  14626. </div>
  14627. </div>
  14628. </div>
  14629. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  14630. <div class="up_photo2">
  14631. <img src="../../assets/icon/plwork.png" alt />
  14632. <span>点击上传文件</span>
  14633. </div>
  14634. <input
  14635. type="file"
  14636. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14637. multiple="multiple"
  14638. style="display: none"
  14639. @change="beforeUpload3($event, 6)"
  14640. />
  14641. </div>
  14642. </div>
  14643. </div>
  14644. <!-- capture="camera" -->
  14645. <div
  14646. class="upload_send"
  14647. @click="addCourseWorksPl(taskCount)"
  14648. v-if="!proVisible2"
  14649. >
  14650. 提交
  14651. </div>
  14652. </el-dialog>
  14653. <el-dialog
  14654. title="修改名称"
  14655. :visible.sync="dialogVisibleSname"
  14656. width="500px"
  14657. :before-close="handleClose"
  14658. class="dialog_diy"
  14659. center
  14660. >
  14661. <div
  14662. style="
  14663. text-align: center;
  14664. display: flex;
  14665. align-items: center;
  14666. justify-content: center;
  14667. "
  14668. >
  14669. <span class="tian1">名称</span>
  14670. <div
  14671. class="pl_select_box"
  14672. style="margin-left: 10px; width: 200px"
  14673. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  14674. >
  14675. {{ getSName(worksSName) }}
  14676. </div>
  14677. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  14678. placeholder="请选择学生">
  14679. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  14680. :value="item.userid">
  14681. </el-option>
  14682. </el-select> -->
  14683. <!-- <el-input
  14684. v-model="worksSName"
  14685. style="width: 250px; margin: 15px 0px"
  14686. ></el-input> -->
  14687. </div>
  14688. <span slot="footer" class="dialog-footer">
  14689. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  14690. <el-button type="primary" @click="updateName">确 定</el-button>
  14691. </span>
  14692. </el-dialog>
  14693. <el-dialog
  14694. title="英语写作"
  14695. :visible.sync="engDialogVisible"
  14696. :append-to-body="true"
  14697. width="800px"
  14698. :before-close="handleClose"
  14699. class="dialog_diy"
  14700. >
  14701. <onlineWrite
  14702. v-if="engDialogVisible"
  14703. :englishList="englishList"
  14704. :myAnswerList1="myAnswerList1"
  14705. ref="engJson"
  14706. ></onlineWrite>
  14707. <span slot="footer" class="dialog-footer" style="text-align: center;">
  14708. <el-button @click="engDialogVisible = false">取 消</el-button>
  14709. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  14710. </span>
  14711. </el-dialog>
  14712. <el-dialog
  14713. title="英语写作"
  14714. :visible.sync="engUpdateDialogVisible"
  14715. :append-to-body="true"
  14716. width="800px"
  14717. :before-close="handleClose"
  14718. class="dialog_diy fullStyle"
  14719. >
  14720. <div class="engUpBox">
  14721. <div class="engUpTop">
  14722. <div class="engTitle">
  14723. <div>作文题目:</div>
  14724. <div>{{ englishList1.engTitle }}</div>
  14725. </div>
  14726. <div class="engText">
  14727. <div>作文内容:</div>
  14728. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  14729. </div>
  14730. </div>
  14731. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  14732. <div class="oldBox">
  14733. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  14734. <div class="oldText">
  14735. <div class="detailBox">
  14736. <div class="oldDetail">
  14737. <div>标题:</div>
  14738. <div>{{ oldEnglishJson.engTitle }} </div>
  14739. </div>
  14740. <div class="oldDetail1">
  14741. <div>正文:</div>
  14742. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  14743. </div>
  14744. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  14745. <div>图片:</div>
  14746. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  14747. </div>
  14748. </div>
  14749. </div>
  14750. </div>
  14751. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  14752. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  14753. <div class="oldText">
  14754. <div class="detailBox" style="position: relative;">
  14755. <div class="oldDetail">
  14756. <div>标题:</div>
  14757. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  14758. <div v-else v-html="newEnglishList.engTitle"></div>
  14759. </div>
  14760. <div class="oldDetail">
  14761. <div>正文:</div>
  14762. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  14763. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  14764. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  14765. </div>
  14766. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  14767. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  14768. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  14769. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  14770. </div>
  14771. </div>
  14772. </div>
  14773. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  14774. <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList1.length > 0">
  14775. <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
  14776. <div v-for="(item,index) in newEnglishList1" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  14777. </div>
  14778. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  14779. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  14780. <div class="detailBox" style="position: relative;">
  14781. <div class="oldDetail">
  14782. <div>标题:</div>
  14783. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  14784. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  14785. </div>
  14786. <div class="oldDetail">
  14787. <div>正文:</div>
  14788. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  14789. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  14790. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  14791. </div>
  14792. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  14793. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  14794. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  14795. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  14796. </div>
  14797. </div>
  14798. <div class="oldText" v-else-if="newEngIndex == -1">
  14799. <div class="detailBox" style="position: relative;">
  14800. <div class="oldDetail">
  14801. <div>标题:</div>
  14802. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  14803. <div v-else v-html="newEnglishList.engTitle"></div>
  14804. </div>
  14805. <div class="oldDetail">
  14806. <div>正文:</div>
  14807. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  14808. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  14809. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  14810. </div>
  14811. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  14812. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  14813. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  14814. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  14815. </div>
  14816. </div>
  14817. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  14818. <div class="detailBox" style="position: relative;">
  14819. <div class="oldDetail">
  14820. <div>标题:</div>
  14821. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  14822. <div v-else>
  14823. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  14824. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  14825. </div>
  14826. </div>
  14827. <div class="oldDetail">
  14828. <div>正文:</div>
  14829. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  14830. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  14831. <div v-else>
  14832. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  14833. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  14834. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  14835. </div>
  14836. </div>
  14837. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  14838. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  14839. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">AI批注</el-button>
  14840. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  14841. </div>
  14842. </div>
  14843. </div>
  14844. </div>
  14845. </div>
  14846. <span slot="footer" class="dialog-footer">
  14847. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  14848. <el-button type="primary" @click="addCorrect">确 定</el-button>
  14849. </span>
  14850. </el-dialog>
  14851. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  14852. <interVideo
  14853. :dialogVisibleVideo.sync="dialogVisibleVideo"
  14854. :videoJson="videoJson"
  14855. :userid="userid"
  14856. :id="id"
  14857. :courseType="courseType"
  14858. :taskCount="taskCount"
  14859. :toolindex="toolindex"
  14860. :videoType="videoType"
  14861. ></interVideo>
  14862. <UpdateMore
  14863. :dialogVisibleMember.sync="dialogVisibleMember"
  14864. :cList="uploadStudentJuri"
  14865. :userid="userid"
  14866. :searchTN="worksSName2"
  14867. @setPlname="setPlname"
  14868. ></UpdateMore>
  14869. <!-- <wordCloud
  14870. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  14871. :data="wordCloudData"
  14872. ></wordCloud> -->
  14873. <el-dialog
  14874. title="词云"
  14875. :visible.sync="dialogVisibleWordCloud"
  14876. width="30%"
  14877. class="dialog_diy"
  14878. :before-close="handleClose">
  14879. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  14880. </el-dialog>
  14881. <el-dialog
  14882. title="挑人"
  14883. :visible.sync="dialogVisiblePickPeople"
  14884. width="650px"
  14885. :before-close="handleClose"
  14886. class="dialog_diy"
  14887. center
  14888. >
  14889. <div class="pick_box">
  14890. <div
  14891. class="noWorksName"
  14892. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  14893. v-for="(item, index) in uploadStudentJuri"
  14894. :key="index"
  14895. @click="pickStudent(item)"
  14896. >
  14897. {{ item.name }}
  14898. </div>
  14899. </div>
  14900. </el-dialog>
  14901. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  14902. :englishVoiceJson='englishVoiceJson'
  14903. :userid="userid"
  14904. :id="id"
  14905. :courseType="courseType"
  14906. :taskCount="taskCount"
  14907. :toolindex="toolindex"
  14908. @selectSWorks="selectSWorks"
  14909. @selectStudent="selectStudent"
  14910. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  14911. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  14912. :userid="userid"
  14913. :dialogVisibleENScore.sync='dialogVisibleENScore'
  14914. :commentDetail="commentDetail"
  14915. :courseDetail="courseDetail"
  14916. :wScore="wScore"
  14917. :scoreDetail="scoreDetail"
  14918. @selectSWorks="selectSWorks"
  14919. @selectStudent="selectStudent"></checkEnglishVoice>
  14920. <el-dialog
  14921. title="教师评分"
  14922. :visible.sync="markScoreVisible"
  14923. :append-to-body="true"
  14924. width="1000px"
  14925. :fullscreen="markfullscreen"
  14926. :before-close="markScorehandleClose"
  14927. class="markScore_diy"
  14928. >
  14929. <div slot="title">
  14930. <div class="markScore_diyTit">
  14931. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  14932. <div @click="markFullScreenBtn" style="cursor: pointer;">
  14933. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  14934. </div>
  14935. </div>
  14936. </div>
  14937. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  14938. <!-- @updateDocSco="updateDocSco" -->
  14939. <markDialog
  14940. :key="markScoreVisible.toString()"
  14941. :uid="markScoreUid"
  14942. :toolIndex="markScoretoolIndex"
  14943. :stage="courseType"
  14944. :task="taskCount"
  14945. :taskDetail="
  14946. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  14947. "
  14948. :tool="toolListS"
  14949. :languageSetting="languageSetting"
  14950. :scoTit="markScoreTit"
  14951. :tType="tType"
  14952. :sIsOpen="sIsOpen"
  14953. :markScoreworksStudent="markScoreworksStudent"
  14954. :markScoreVisible="markScoreVisible"
  14955. ></markDialog>
  14956. </el-dialog>
  14957. <!-- 查看Txt,md等文件 -->
  14958. <el-dialog
  14959. title="文件预览"
  14960. :visible.sync="dialogVisibleTxt"
  14961. width="50%"
  14962. :before-close="handleCloseTxt"
  14963. class="dialog_diy"
  14964. :class="{ fullStyle: full }"
  14965. >
  14966. <div slot="title" class="header-title">
  14967. <div style="color: #fff">文件预览</div>
  14968. <div style="position: absolute; top: 19px; right: 50px">
  14969. <img
  14970. src="../../assets/full.png"
  14971. style="height: 16px; cursor: pointer"
  14972. alt=""
  14973. @click="fullTools"
  14974. />
  14975. </div>
  14976. </div>
  14977. <div>{{ TxtMd }}</div>
  14978. </el-dialog>
  14979. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  14980. <choseWorksDetailDialog
  14981. ref="choseWorksDetailDialogRef"
  14982. :worksStudentData="worksStudent"
  14983. :noWorksSData="noWorksS"
  14984. :chapInfoListData="chapInfoList"
  14985. :courseType="courseType"
  14986. :taskCount="taskCount"
  14987. :tType="tType"
  14988. :sIsOpen="sIsOpen"
  14989. :courseDetail="courseDetail"
  14990. :groupStudent="groupStudent"
  14991. :oid="oid"
  14992. :org="org"
  14993. @getCourseDetail="getCourseDetail"
  14994. @selectSLook="selectSLook"
  14995. @selectSWorks="selectSWorks"
  14996. @selectStudent="selectStudent"
  14997. @openWord="openWord"
  14998. @openScore="openScore"
  14999. @deleteWorks="deleteWorks"
  15000. @openTools="openTools"
  15001. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15002. />
  15003. <el-dialog
  15004. :visible.sync="confirmOpenDig"
  15005. width="500px"
  15006. :modal="false"
  15007. class="confirmOpenDigCss dialog_diyCopy"
  15008. :before-close="handleClose">
  15009. <div style="display: flex;align-items: center;">
  15010. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  15011. <span>“{{ courseDetail.title }}”开课啦</span>
  15012. </div>
  15013. <div style="margin: 20px 0 35px;">
  15014. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  15015. <div>要认真听讲哦~</div>
  15016. </div>
  15017. <div style="text-align: center;">
  15018. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  15019. </div>
  15020. </el-dialog>
  15021. </div>
  15022. </template>
  15023. <script>
  15024. import "../../common/aws-sdk-2.235.1.min.js";
  15025. // import pdf from "../components/pdf3";
  15026. import pdf from "../components/vpdf";
  15027. import AskStatic from "../components/askStatic";
  15028. import AskStatic2 from "../components/askStatic2";
  15029. import AnswerData2 from "../components/answerData2";
  15030. import AnswerData from "../components/answerData";
  15031. import EditorBar from "../tools/wangEnduit.vue";
  15032. import Table from "../tools/table.vue";
  15033. import Time from "../tools/time.vue";
  15034. import Mind from "../tools/jsmind.vue";
  15035. import Sunburst from "../tools/sunburst";
  15036. import SeeBoard from "../tools/seeBoard";
  15037. import * as imageConversion from "image-conversion";
  15038. import Audio from "../components/audio.vue";
  15039. import ImgDraw from "../tools/imgDraw/imgDraw";
  15040. import { Empty } from "element-ui";
  15041. import RecordRTC from "recordrtc";
  15042. import interVideo from "../interVideo/index.vue";
  15043. import UpdateMore from "../updateMore/updateMore.vue";
  15044. import wordCloud from "../wordCloud/index.vue";
  15045. import axios from "axios";
  15046. import JSZip from "jszip";
  15047. import FileSaver from "file-saver";
  15048. import onlineWrite from "./commpont/onlineWrite";
  15049. import englishEva from "../components/englishEva";
  15050. import * as Diff from 'diff'
  15051. import EnglishVoice from '../EnglishVoice2/index.vue'
  15052. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  15053. import correctText from '../components/correctText.vue'
  15054. import scoreItem from '../scoreList/scoreItem.vue'
  15055. import scoreZong from '../scoreZong/index.vue'
  15056. import classRoomHelper from '../classRoomHelper/index.vue'
  15057. import MarkdownIt from "markdown-it";
  15058. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  15059. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  15060. import { v4 as uuidv4 } from "uuid";
  15061. import markScore from "./commpont/markScore";
  15062. import markDialog from "./commpont/markDialog";
  15063. import evaTable from "./commpont/evaTable";
  15064. import choseWordCloud from '../components/choseWordCloud.vue'
  15065. var OpenCC = require("opencc-js");
  15066. let converter = OpenCC.Converter({
  15067. from: "hk",
  15068. to: "cn"
  15069. });
  15070. const getFile = (url) => {
  15071. return new Promise((resolve, reject) => {
  15072. var credentials = {
  15073. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15074. secretAccessKey: "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",
  15075. }; //秘钥形式的登录上传
  15076. window.AWS.config.update(credentials);
  15077. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15078. let url2 = url;
  15079. let _url2 = "";
  15080. if (
  15081. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15082. ) {
  15083. _url2 = url2.split(
  15084. "https://view.officeapps.live.com/op/view.aspx?src="
  15085. )[1];
  15086. } else {
  15087. _url2 = url2;
  15088. }
  15089. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15090. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  15091. var params = {
  15092. Bucket: "ccrb",
  15093. Key: name
  15094. };
  15095. s3.getObject(params, function (err, data) {
  15096. if (err) {
  15097. console.log(err, err.stack)
  15098. resolve({ data: 1 });
  15099. }else {
  15100. resolve({ data: data.Body });
  15101. console.log(data);
  15102. } // sxuccessful response
  15103. });
  15104. // axios({
  15105. // method: "get",
  15106. // url,
  15107. // responseType: "blob",
  15108. // })
  15109. // .then((data) => {
  15110. // resolve({ data: data.data });
  15111. // })
  15112. // .catch((error) => {
  15113. // resolve({ data: 1 });
  15114. // // reject(error.toString());
  15115. // });
  15116. });
  15117. };
  15118. export default {
  15119. components: {
  15120. choseWordCloud,
  15121. EditorBar,
  15122. Time,
  15123. pdf,
  15124. AskStatic,
  15125. AskStatic2,
  15126. Mind,
  15127. Sunburst,
  15128. SeeBoard,
  15129. AnswerData2,
  15130. AnswerData,
  15131. Audio,
  15132. ImgDraw,
  15133. Table,
  15134. interVideo,
  15135. UpdateMore,
  15136. wordCloud,
  15137. onlineWrite,
  15138. englishEva,
  15139. EnglishVoice,
  15140. checkEnglishVoice,
  15141. correctText,
  15142. scoreItem,
  15143. classRoomHelper,
  15144. scoreZong,
  15145. markScore,
  15146. markDialog,
  15147. evaTable,
  15148. statisticalAnalysis,
  15149. choseWorksDetailDialog,
  15150. },
  15151. data() {
  15152. return {
  15153. wordCloudKey: 0,
  15154. bg: null,
  15155. drawShow: false,
  15156. dialogVisible: false,
  15157. dialogVisiblePl: false,
  15158. commentDialogVisible: false,
  15159. dialogVisibleMember: false,
  15160. dialogVisibleWordCloud: false,
  15161. videoVisible: false,
  15162. isStar: false,
  15163. studentEvalDialogVisible: false,
  15164. studentEvalDialogVisibleTeacher: false,
  15165. dialogVisibleSelect: false,
  15166. dialogVisibleSelectTeacher: false,
  15167. dialogVisibleScore: false,
  15168. dialogVisibleENScore: false,
  15169. dialogVisibleSentence: false,
  15170. dialogVisibleSentenceTeacher: false,
  15171. dialogVisibleSentence1: false,
  15172. dialogVisibleWorks: false,
  15173. dialogVisibleTable: false,
  15174. dialogVisibleTableTeacher: false,
  15175. dialogVisibleWord: false,
  15176. dialogVisibleWordTeacher: false,
  15177. dialogVisibleTable2: false,
  15178. dialogVisibleTable3: false,
  15179. dialogVisibleGroupWork: false,
  15180. dialogVisibleUpdateGroup: false,
  15181. dialogVisibleDeleteGroup: false,
  15182. dialogVisibleSname: false,
  15183. dialogVisibleVideo: false,
  15184. dialogVisiblePickPeople: false,
  15185. worksSName: "",
  15186. classJuri: [],
  15187. uploadStudentJuri: [],
  15188. uploadCid: "",
  15189. snameWid: "",
  15190. sStudent: {},
  15191. sTool: "",
  15192. bzText: "",
  15193. commentDetail: [],
  15194. selectAnswer: [],
  15195. videoDetail: {},
  15196. selectJson: {},
  15197. eScore: { eBzText: "", eStar: [] },
  15198. id: this.$route.query.courseId,
  15199. userid: this.$route.query.userid,
  15200. classId: this.$route.query.cid,
  15201. // courseTypeLine: this.$route.query.type,
  15202. oid: this.$route.query.oid,
  15203. org: this.$route.query.org,
  15204. tType: this.$route.query.tType,
  15205. courseType: this.$route.query.type,
  15206. screenType: this.$route.query.screenType,
  15207. tcid2: this.$route.query.tcid,
  15208. tcid: "",
  15209. pptImgUrl: "",
  15210. pptImgUrl1: "",
  15211. commentText: "",
  15212. full: false,
  15213. sIsOpen: false,
  15214. IsLookOpen: false,
  15215. IsFollow: false,
  15216. pzDialog: false,
  15217. contentDialog: false,
  15218. mlDialog: false,
  15219. type: 1,
  15220. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15221. sentenceList1: [],
  15222. tableJson: [],
  15223. tableJsonO: [],
  15224. wordJson: [],
  15225. wordJsonO: [],
  15226. vedio: [],
  15227. text: [],
  15228. textList: [],
  15229. line: [],
  15230. lineList: [],
  15231. chapTools: [],
  15232. chapToolList: [],
  15233. file: [],
  15234. fileC: [],
  15235. vedioTime: [],
  15236. upToolImg: "",
  15237. preTime: 0,
  15238. rateList: {
  15239. ca: 0,
  15240. },
  15241. rateParams: [],
  15242. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15243. studyJuri: [
  15244. {
  15245. content: "",
  15246. cover: [],
  15247. upVedio: [],
  15248. upFile: [],
  15249. },
  15250. ],
  15251. isClose: 0,
  15252. plworkFile: [],
  15253. mr: require("../../assets/vedioPic.png"),
  15254. word: require("../../assets/icon/isWord.png"),
  15255. word2: require("../../assets/icon/word2.png"),
  15256. video: require("../../assets/icon/isVideo.png"),
  15257. noLikes: require("../../assets/icon/comment/noLikes.png"),
  15258. likes: require("../../assets/icon/comment/likes.png"),
  15259. scoreImg: require("../../assets/score.png"),
  15260. courseDetail: {},
  15261. reply: "",
  15262. isSelect: false,
  15263. chapInfo: [],
  15264. chapInfoList: [],
  15265. taskCount: 0,
  15266. imgList: [],
  15267. noImgList: [],
  15268. pzList: [],
  15269. timeWorkList: [],
  15270. PlTextList: [
  15271. "Excellent!",
  15272. "nice!",
  15273. "很有创意!",
  15274. "还不错哦~",
  15275. "继续努力哦~",
  15276. ],
  15277. isClickNav: "",
  15278. navId: "",
  15279. playerOptions: {
  15280. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15281. autoplay: false, //如果true,浏览器准备好时开始回放。
  15282. muted: false, // 默认情况下将会消除任何音频。
  15283. loop: false, // 导致视频一结束就重新开始。
  15284. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15285. language: "zh-CN",
  15286. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15287. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15288. sources: [
  15289. {
  15290. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15291. src: "", //url地址require("../../../assets/media/aaa.mp4")
  15292. },
  15293. ],
  15294. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15295. // poster: dataRes.imgUrl, //你的封面地址
  15296. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15297. controlBar: {
  15298. timeDivider: true, //当前时间和持续时间的分隔符
  15299. durationDisplay: true, //显示持续时间
  15300. remainingTimeDisplay: false, //是否显示剩余时间功能
  15301. fullscreenToggle: true, //全屏按钮
  15302. },
  15303. },
  15304. playerOptions1: {
  15305. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15306. autoplay: false, //如果true,浏览器准备好时开始回放。
  15307. muted: false, // 默认情况下将会消除任何音频。
  15308. loop: false, // 导致视频一结束就重新开始。
  15309. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15310. language: "zh-CN",
  15311. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15312. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15313. sources: [
  15314. {
  15315. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15316. src: "", //url地址require("../../../assets/media/aaa.mp4")
  15317. },
  15318. ],
  15319. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15320. // poster: dataRes.imgUrl, //你的封面地址
  15321. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15322. controlBar: {
  15323. timeDivider: true, //当前时间和持续时间的分隔符
  15324. durationDisplay: true, //显示持续时间
  15325. remainingTimeDisplay: false, //是否显示剩余时间功能
  15326. fullscreenToggle: true, //全屏按钮
  15327. },
  15328. },
  15329. playerO: {},
  15330. noneBtnImg: false,
  15331. proVisible: false,
  15332. proVisible2: false,
  15333. progress: 0,
  15334. isFinishSize: 0,
  15335. isAllSize: 0,
  15336. questionAnswer: "",
  15337. answerQ: "", //问答标题
  15338. rateJson: [],
  15339. wbCount: 0,
  15340. wordCount: 0,
  15341. mindCount: 0,
  15342. askCount: 0,
  15343. noteCount: 0,
  15344. mindNetWorkCount: 0,
  15345. libraryCount: 0,
  15346. workCount: 0,
  15347. timeCount: 0,
  15348. answerCount: 0,
  15349. trainCount: 0,
  15350. evalCount: 0,
  15351. dialogImageUrl: "",
  15352. pictureDialog: false,
  15353. toolTypeList: [],
  15354. dialogVisible1: false,
  15355. dialogVisible2: false,
  15356. dialogVisible3: false,
  15357. dialogVisible6: false,
  15358. dialogVisible4: false,
  15359. isNoHomeWork: false,
  15360. dialogVisible5: false,
  15361. dialogVisible5Teacher: false,
  15362. dialogVisibleChoice: false,
  15363. dialogVisibleChoiceTeacher: false,
  15364. answerDialogVisible: false,
  15365. answerDialogVisibleTeacher: false,
  15366. juriVisible: false,
  15367. timeDialogVisible: false,
  15368. replyDialogVisible: false,
  15369. toolDialogVisible: false,
  15370. engDialogVisible: false,
  15371. engUpdateDialogVisible:false,
  15372. engEvaDialogVisible: false,
  15373. evaEngJson: {
  15374. teacherJson: {},
  15375. studentJson: {},
  15376. message: {},
  15377. },
  15378. isNoUserid:false,
  15379. engListLength:0,
  15380. engWid:"",
  15381. newEnglishList:{
  15382. engTitle:"",
  15383. engText:"",
  15384. },
  15385. newEnglishList1:[],
  15386. oldEnglishJson:{},
  15387. oldEnglishJson1:{},
  15388. englishList1:{},
  15389. englishList:{},
  15390. myAnswerList1:{},
  15391. topHeight:0,
  15392. newEngIndex:-1,
  15393. englishToolIndex:0,
  15394. userMes:{},
  15395. englishToolIndex:0,
  15396. replyIndex: 0,
  15397. replyPid: "",
  15398. radio: [],
  15399. isAsk: false,
  15400. askJson: {
  15401. askCount: 1,
  15402. askTitle: "",
  15403. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  15404. },
  15405. testJson: {},
  15406. englishList: {},
  15407. topHeight:0,
  15408. checkJson: [],
  15409. askList: [],
  15410. answerList: [],
  15411. navList: [],
  15412. addPzDialog: false,
  15413. pzConText: "",
  15414. worksStudent: [],
  15415. isCloseList: [],
  15416. workStudent: [],
  15417. groupStudent: [],
  15418. groupStudentUid: [],
  15419. noWorksS: [],
  15420. isWorksS: [],
  15421. noWorksStudent: [],
  15422. toolindex: 0,
  15423. toolDetailIndex: null,
  15424. groupIndex: 0,
  15425. workTypeB: false,
  15426. workTypeC: false,
  15427. isAnswer: false,
  15428. isHovered: false,
  15429. isHovered1: false,
  15430. isHovered2: false,
  15431. commentTagShow:0,
  15432. timer: null,
  15433. timer2: null,
  15434. opertimer: null,
  15435. showType: '',
  15436. fileType: 0,
  15437. showPDF: false,
  15438. noteName: "",
  15439. evaJuri: [],
  15440. evalua: "",
  15441. eTitle: "",
  15442. eName: "",
  15443. eJson: {},
  15444. fid: "", //一级
  15445. sid: "", //二级
  15446. tid: "", //二级
  15447. typeMode: 1,
  15448. eJSONNum: 0,
  15449. Etype: 1,
  15450. data: {
  15451. meta: {
  15452. name: "example",
  15453. author: "dd@163.com",
  15454. version: "0.2",
  15455. },
  15456. format: "node_array",
  15457. data: [{ id: "root", isroot: true, topic: "" }],
  15458. },
  15459. fullDialogVisible: false,
  15460. fulltype: "",
  15461. fullUrl: "",
  15462. commentIndexJson: {},
  15463. Stbodywidth: 0,
  15464. ispzType: 0,
  15465. pzType: 1,
  15466. wScore: 0,
  15467. scoreDetail: "",
  15468. videoStart: false,
  15469. recorder: null,
  15470. groupJson: {},
  15471. islock: false,
  15472. groupJson2: {},
  15473. dialogVisibleGroup: false,
  15474. dialogVisibleGroup2: false,
  15475. updateGroupArray: [],
  15476. updateGroupUser: {},
  15477. deleteGroupUser: [],
  15478. deleteGroupArray: {},
  15479. checkChair: "",
  15480. checkDeleteGroup: [],
  15481. inviteCode: "",
  15482. courseGroupStudent: [],
  15483. courseGroupStudentUid: [],
  15484. courseGroup: {},
  15485. isGroup: false,
  15486. toolIndex: null,
  15487. tool: {},
  15488. isWorkTool: [
  15489. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  15490. ], //, 40
  15491. videoJson: {},
  15492. videoType:0,
  15493. toolType: 0,
  15494. checktoolArray: [],
  15495. vChapterData: [],
  15496. isUpdateToolDetail: false,
  15497. isUpdateToolDetail1: false,
  15498. updateToolDetailInner: "",
  15499. checkboxList: [],
  15500. plIndex: "",
  15501. worksSName2: "",
  15502. worksSid: "",
  15503. wordCloudData: [],
  15504. isPickStudent: [],
  15505. pzStype: 1,
  15506. myAnList: {},
  15507. downLoading: false,
  15508. greyType: false,
  15509. correctWord: [],
  15510. EnglishVoiceDialog: false,
  15511. englishVoiceJson: {},
  15512. englishVoiceJsonWork:[],
  15513. scoreList:{
  15514. listdata:[],
  15515. isScoreList:[],
  15516. },
  15517. classRoomHelperWidth: '85px',
  15518. orgArray:[],
  15519. oidArray:[],
  15520. splitScreenData:{
  15521. isOpen:false,
  15522. userId:"",
  15523. uid:"",
  15524. myUid:"",
  15525. loading:false,
  15526. behavior:null,
  15527. },
  15528. confirmOpenDig:false,
  15529. confirmOpenDigData:'',
  15530. refreshKey: 0,
  15531. AIloading: [],
  15532. worksStudentCopy: [],
  15533. loopLoading: [],
  15534. markScoreVisible: false,
  15535. markScoretoolIndex: 0,
  15536. markScoreUid: "",
  15537. markScoreTit: {},
  15538. markfullscreen: false,
  15539. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  15540. markScoreworksStudent: [],
  15541. finalMarkList: -1,
  15542. isaiNum: 0,
  15543. dialogVisibleTxt: false,
  15544. TxtMd: "",
  15545. languageSetting: 0, //0中文 1繁体 2英文
  15546. toolListS: [],
  15547. commentDetailCopy: "",
  15548. };
  15549. },
  15550. methods: {
  15551. getAIJ() {
  15552. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  15553. let oid = res.data[0];
  15554. let org = res.data[1];
  15555. let oidArray = [];
  15556. let orgArray = [];
  15557. oid.forEach(i => oidArray.push(i.oid));
  15558. org.forEach(i => orgArray.push(i.oid));
  15559. this.orgArray = orgArray;
  15560. this.oidArray = oidArray;
  15561. });
  15562. },
  15563. // 评分弹框全屏
  15564. markFullScreenBtn() {
  15565. this.markfullscreen = !this.markfullscreen;
  15566. },
  15567. insertMemorandum(_html) {
  15568. //保存行为操作
  15569. //variable
  15570. //btn
  15571. let params = [
  15572. {
  15573. uid: this.userid,
  15574. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  15575. content: _html
  15576. }
  15577. ];
  15578. console.log(params);
  15579. this.ajax
  15580. .post(
  15581. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  15582. params
  15583. )
  15584. .then(res => {
  15585. if (res.data == 1) {
  15586. console.log("保存操作成功");
  15587. } else {
  15588. console.log("保存操作失败");
  15589. }
  15590. })
  15591. .catch(e => {
  15592. console.log("保存操作失败");
  15593. console.log(e);
  15594. });
  15595. },
  15596. // 获取文档id
  15597. createFileid(url) {
  15598. let _this = this;
  15599. return new Promise((resolve, reject) => {
  15600. try {
  15601. _this.ajax
  15602. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  15603. url: url
  15604. })
  15605. .then(res => {
  15606. let _data = res.data.FunctionResponse;
  15607. if (_data.result && _data.result.id) {
  15608. resolve(_data.result.id);
  15609. } else {
  15610. resolve(1);
  15611. }
  15612. })
  15613. .catch(function(error) {
  15614. resolve(1);
  15615. });
  15616. } catch (e) {
  15617. resolve(1);
  15618. }
  15619. });
  15620. },
  15621. // 一键重置
  15622. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  15623. let jude = false;
  15624. this.AIloading.forEach((e, index) => {
  15625. if (index == toolIndex) {
  15626. e.forEach(k => {
  15627. if (k.loading == true) jude = true;
  15628. });
  15629. }
  15630. });
  15631. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  15632. this.$confirm("确认一键重置?")
  15633. .then(_ => {
  15634. this.allEmptyScoBtn(con, stage, task, toolIndex);
  15635. })
  15636. .catch(_ => {});
  15637. },
  15638. // 一键重置
  15639. async allEmptyScoBtn(con, stage, task, toolIndex) {
  15640. for (let index = 0; index < con.length; index++) {
  15641. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  15642. }
  15643. this.$message.success("重置完成");
  15644. // this.refreshAssembly();
  15645. this.worksStudent.forEach((e, index) => {
  15646. if (toolIndex == index) {
  15647. console.log("6666");
  15648. e.forEach((i, inx) => {
  15649. let mk = `markSco${index}${inx}`;
  15650. this.$refs[mk][0].getData();
  15651. });
  15652. }
  15653. });
  15654. },
  15655. // 一键重置
  15656. allEmptySco(uid, stage, task, toolIndex) {
  15657. let params = [
  15658. {
  15659. cid: this.id,
  15660. uid: uid,
  15661. s: stage,
  15662. t: task,
  15663. tool: toolIndex ? toolIndex : ""
  15664. }
  15665. ];
  15666. return new Promise(resolve => {
  15667. this.ajax
  15668. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  15669. .then(res => {
  15670. resolve(1);
  15671. })
  15672. .catch(err => {
  15673. console.error(err);
  15674. });
  15675. }).catch(error => {
  15676. console.log(error);
  15677. });
  15678. },
  15679. // AI评分循环打分
  15680. async loopEva(
  15681. con,
  15682. tit,
  15683. stage,
  15684. task,
  15685. toolIndex,
  15686. toolDetail,
  15687. taskDetail,
  15688. toolList
  15689. ) {
  15690. let jude = false;
  15691. this.AIloading.forEach((e, index) => {
  15692. if (index == toolIndex) {
  15693. e.forEach(k => {
  15694. if (k.loading == true) jude = true;
  15695. });
  15696. }
  15697. });
  15698. if (jude) return this.$message.info("请勿同时间进行AI评分");
  15699. this.AIloading.forEach((e, index) => {
  15700. if (index == toolIndex) {
  15701. e.forEach(k => {
  15702. k.loading = true;
  15703. });
  15704. }
  15705. });
  15706. this.loopLoading[toolIndex].loading = true;
  15707. let laws = "";
  15708. let std = "";
  15709. let text = "";
  15710. if (toolList && toolList.eList && toolList.eList.length) {
  15711. for (let i = 0; i < toolList.eList.length; i++) {
  15712. if (toolList.eList[i].isai == 1) {
  15713. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  15714. }
  15715. }
  15716. for (let i = 0; i < toolList.eList.length; i++) {
  15717. if (toolList.eList[i].isai == 1) {
  15718. let a = toolList.eList[i].detail;
  15719. if (isNaN(parseFloat(a)) && a) {
  15720. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15721. } else {
  15722. var result = a;
  15723. }
  15724. std += `纬度${i}:“${result}”, \n`;
  15725. }
  15726. }
  15727. for (let i = 0; i < toolList.eList.length; i++) {
  15728. if (toolList.eList[i].isai == 1) {
  15729. let a = toolList.eList[i].detail;
  15730. if (isNaN(parseFloat(a)) && a) {
  15731. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15732. } else {
  15733. var result = a;
  15734. }
  15735. text += `{'${result}' : '评价等级0-5(数字)'},`;
  15736. }
  15737. }
  15738. } else {
  15739. let titRule = 0;
  15740. let titRule2 = 0;
  15741. tit.forEach((e, index) => {
  15742. if (!e.isai) {
  15743. e.isai = 1;
  15744. }
  15745. });
  15746. tit.forEach((e, index) => {
  15747. if (e.isai == 1) {
  15748. titRule2++;
  15749. if (e.rule) {
  15750. titRule++;
  15751. }
  15752. }
  15753. });
  15754. if (titRule != titRule2) {
  15755. this.AIloading.forEach((e, index) => {
  15756. if (index == toolIndex) {
  15757. e.forEach(k => {
  15758. k.loading = false;
  15759. });
  15760. }
  15761. });
  15762. this.loopLoading[toolIndex].loading = false;
  15763. this.$message.info("细则努力生成中,请稍候……");
  15764. return;
  15765. }
  15766. for (let i = 0; i < tit.length; i++) {
  15767. if (tit[i].isai == 1) {
  15768. laws += ` 细则${i}:${tit[i].rule}, \n`;
  15769. }
  15770. }
  15771. for (let i = 0; i < tit.length; i++) {
  15772. if (tit[i].isai == 1) {
  15773. let a = tit[i].detail;
  15774. if (isNaN(parseFloat(a)) && a) {
  15775. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15776. } else {
  15777. var result = a;
  15778. }
  15779. std += `纬度${i}:“${result}”, \n`;
  15780. }
  15781. }
  15782. for (let i = 0; i < tit.length; i++) {
  15783. if (tit[i].isai == 1) {
  15784. let a = tit[i].detail;
  15785. if (isNaN(parseFloat(a)) && a) {
  15786. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15787. } else {
  15788. var result = a;
  15789. }
  15790. text += `{'${result}' : '评价等级0-5(数字)'},`;
  15791. }
  15792. }
  15793. }
  15794. let forAllList = [];
  15795. // console.log('con',con)
  15796. for (let i = 0; i < con.length; i++) {
  15797. let _fileid = "";
  15798. let wok = con[i].works;
  15799. // console.log('con',con);
  15800. // console.log('con[i].type',con[i].type);
  15801. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  15802. let a = wok.slice(wok.lastIndexOf(".") + 1);
  15803. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  15804. _fileid = await this.createFileid(con[i].works);
  15805. } else {
  15806. this.AIloading[toolIndex][i].loading = false;
  15807. continue;
  15808. }
  15809. }
  15810. // console.log('con[i].type',con[i])
  15811. // console.log('con[i].type',con[i].type)
  15812. if (_fileid == 1 || con[i].type == 3) {
  15813. this.AIloading[toolIndex][i].loading = false;
  15814. continue;
  15815. }
  15816. let msg = `NOTICE
  15817. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  15818. Language: ${this.getLang()}
  15819. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  15820. Instruction: Based on the context, follow "Format example", write content.
  15821. #目标#
  15822. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  15823. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  15824. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  15825. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  15826. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  15827. #评分资料#
  15828. 评价标准:${std}
  15829. 评价细则:${laws}
  15830. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  15831. 任务描述:${taskDetail}
  15832. 工具描述:${toolDetail}
  15833. #输出要求#
  15834. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  15835. “评语”控制在150字左右。
  15836. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  15837. #输出格式#
  15838. [${text}{'comment':'评语(150个汉字左右)'}]
  15839. `;
  15840. let mk = `markSco${toolIndex}${i}`;
  15841. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  15842. msg,
  15843. con[i].userid,
  15844. stage,
  15845. task,
  15846. _fileid,
  15847. con[i].type
  15848. );
  15849. forAllList.push(mkAwit);
  15850. }
  15851. Promise.all(forAllList)
  15852. .then(values => {
  15853. console.log("values", values);
  15854. this.$message({
  15855. message: "评价成功",
  15856. type: "success"
  15857. });
  15858. // this.refreshKey++
  15859. // this.worksStudent.forEach((e,index)=>{
  15860. // if(toolIndex == index){
  15861. // e.forEach((i,inx)=>{
  15862. // let mk = `markSco${index}${inx}`
  15863. // this.$refs[mk][0].getData()
  15864. // })
  15865. // }
  15866. // })
  15867. this.AIloading[toolIndex].forEach(e => {
  15868. e.loading = false;
  15869. });
  15870. this.loopLoading[toolIndex].loading = false;
  15871. })
  15872. .catch(reason => {
  15873. console.error("reasonreasonreasonreasonreason", reason);
  15874. // 输出“失败原因”
  15875. });
  15876. },
  15877. // 获取评价细则
  15878. againEva(i, k) {
  15879. let msg = `NOTICE
  15880. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  15881. Language: ${this.getLang()}
  15882. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  15883. Instruction: Based on the context, follow "Format example", write content.
  15884. #Context
  15885. ##要求
  15886. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  15887. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  15888. ##制定标准资料
  15889. 评价维度:${
  15890. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  15891. }
  15892. 维度描述:${
  15893. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  15894. }
  15895. # Format example
  15896. ==
  15897. 0 星,作业内容与作业要求无关;
  15898. 1 星,没有识别问题和需求;
  15899. 2 星,问题或需求没有被清晰理解或准确识别;
  15900. 3 星,问题或需求的一部分被识别;
  15901. 4 星,问题或需求的大部分被识别;
  15902. 5 星,问题或需求都被识别。
  15903. ==
  15904. `;
  15905. let params = {
  15906. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  15907. message: [
  15908. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  15909. ],
  15910. session_name: uuidv4(),
  15911. userId: this.userid,
  15912. file_ids: [],
  15913. model: "gpt-4o-2024-11-20"
  15914. };
  15915. // console.log('params',params);
  15916. this.ajax
  15917. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  15918. .then(response => {
  15919. let data = response.data.FunctionResponse;
  15920. // console.log("data", data);
  15921. if (data.message) {
  15922. let content = data.message;
  15923. var regex = new RegExp("==([^=]+)==");
  15924. let match = content.match(regex);
  15925. if (match) {
  15926. content = match[1].trim().replaceAll(" ", "");
  15927. // 获取匹配到的内容并去除两端空格
  15928. // console.log('contentInsideDoubleEquals', content);
  15929. if (
  15930. content.indexOf("0星") == -1 ||
  15931. content.indexOf("2星") == -1 ||
  15932. content.indexOf("3星") == -1 ||
  15933. content.indexOf("4星") == -1 ||
  15934. content.indexOf("5星") == -1
  15935. ) {
  15936. console.log("未有星级。");
  15937. this.againEva(i, k);
  15938. return;
  15939. }
  15940. // return
  15941. } else {
  15942. console.log("未找到匹配的内容。");
  15943. this.againEva(i, k);
  15944. return;
  15945. }
  15946. let elist = JSON.parse(
  15947. JSON.stringify(
  15948. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  15949. )
  15950. );
  15951. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  15952. elist.rule = JSON.parse(
  15953. JSON.stringify(content.replaceAll("#", ""))
  15954. );
  15955. this.$set(
  15956. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  15957. k,
  15958. elist
  15959. );
  15960. this.$forceUpdate();
  15961. let params2 = [
  15962. {
  15963. cid: this.id,
  15964. chapters: JSON.stringify(this.chapInfoList),
  15965. uid: this.userid,
  15966. unitIndex: this.courseType
  15967. }
  15968. ];
  15969. this.ajax
  15970. .post(this.$store.state.api + "updateWorkNew4", params2)
  15971. .then(res => {
  15972. this.getCourseDetail(2);
  15973. this.$forceUpdate();
  15974. })
  15975. .catch(err => {
  15976. this.$message.error("网络不佳");
  15977. console.error(err);
  15978. });
  15979. // 进行进一步处理或解析outputContent
  15980. // } else {
  15981. // console.log("No match found for # Output section.");
  15982. // }
  15983. }
  15984. })
  15985. .catch(error => {
  15986. console.log(error);
  15987. });
  15988. },
  15989. // 关闭评分弹框
  15990. markScorehandleClose(done) {
  15991. // this.refreshKey++
  15992. this.worksStudent.forEach((e, index) => {
  15993. if (this.markScoretoolIndex == index) {
  15994. e.forEach((i, inx) => {
  15995. let mk = `markSco${index}${inx}`;
  15996. if (this.$refs[mk] && this.$refs[mk][0]) {
  15997. this.$refs[mk][0].getData();
  15998. }
  15999. });
  16000. }
  16001. });
  16002. done();
  16003. },
  16004. // 关闭txtMd预览弹框
  16005. handleCloseTxt(done) {
  16006. this.TxtMd = "";
  16007. done();
  16008. },
  16009. // Txt,Md作业查看
  16010. lookTxt(val) {
  16011. this.dialogVisibleTxt = true;
  16012. this.TxtMd = "";
  16013. getFile(val).then(res => {
  16014. this.TxtMd = res.data;
  16015. });
  16016. },
  16017. // 组件刷新
  16018. refreshAssembly(val) {
  16019. this.refreshKey++;
  16020. // console.log(this.refreshKey)
  16021. },
  16022. updateLoading(payload) {
  16023. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16024. },
  16025. handleShow(toolIndex, val) {
  16026. let mk = `markSco${toolIndex}${val}`;
  16027. // console.log(mk);
  16028. this.$refs[mk][0].getData();
  16029. },
  16030. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16031. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16032. // console.log('this.AIloading',this.AIloading)
  16033. let jude = false;
  16034. this.AIloading.forEach((e, index) => {
  16035. if (index == tidx) {
  16036. e.forEach(k => {
  16037. if (k.loading == true) jude = true;
  16038. });
  16039. }
  16040. });
  16041. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16042. if (val) return;
  16043. // console.log(uname,worksStudent,uid,tidx,titlist)
  16044. this.markScoreTit = titlist;
  16045. this.markScoreUid = uid;
  16046. this.toolListS = toolList;
  16047. this.markScoretoolIndex = tidx;
  16048. this.markScoreworksStudent = worksStudent;
  16049. this.markfullscreen = false;
  16050. this.markScoreVisible = true;
  16051. if (this.tType == 1) {
  16052. this.insertMemorandum(
  16053. `查看<span class="variable">${uname}</span>的作业`
  16054. );
  16055. }
  16056. },
  16057. // 点击markScore显示评分框
  16058. markScoreDig(data) {
  16059. // console.log('data',data)
  16060. let jude = false;
  16061. this.AIloading.forEach((e, index) => {
  16062. if (index == data.val2) {
  16063. e.forEach(k => {
  16064. if (k.loading == true) jude = true;
  16065. });
  16066. }
  16067. });
  16068. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16069. this.markScoreTit = data.tit;
  16070. this.markScoreUid = data.val;
  16071. this.markScoretoolIndex = data.val2;
  16072. this.markfullscreen = false;
  16073. this.markScoreVisible = true;
  16074. this.insertMemorandum(
  16075. `查看<span class="variable">${data.uname}</span>的作业`
  16076. );
  16077. },
  16078. // 刷新其他组件分数
  16079. refreshOther(v) {
  16080. // console.log('v',v)
  16081. this.AIloading[v.tid].forEach((e, i) => {
  16082. if (i == v.wid) {
  16083. e.loading = false;
  16084. }
  16085. });
  16086. // this.worksStudent.forEach((e,index)=>{
  16087. // if(toolIndex != index){
  16088. // e.forEach((i,inx)=>{
  16089. // let mk = `markSco${index}${inx}`
  16090. // this.$refs[mk][0].getData()
  16091. // })
  16092. // }
  16093. // })
  16094. },
  16095. updateDocSco(payload) {
  16096. // console.log('payload',payload)
  16097. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16098. },
  16099. gx(){
  16100. this.$forceUpdate();
  16101. },
  16102. isUpdateCorrect(t,p){
  16103. if(this.greyType == false){
  16104. this.isUpdateText = t;
  16105. this.greyType = true;
  16106. }else{
  16107. if(p == 1){
  16108. this.newEnglishList.engText = this.isUpdateText;
  16109. }else if(p == 2){
  16110. this.oldEnglishJson1.engText = this.isUpdateText;
  16111. }else if(p == 3){
  16112. this.newEnglishList.engText = this.isUpdateText;
  16113. }else{
  16114. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  16115. }
  16116. this.greyType = false
  16117. }
  16118. },
  16119. aiCorrect(t,p){
  16120. let aiText = "";
  16121. const loading = this.$loading.service({
  16122. background: "rgba(255, 255, 255)",
  16123. target: document.querySelectorAll(".loadingText")[0],
  16124. });
  16125. let param = {
  16126. model: "gpt-3.5-turbo",
  16127. temperature: 0,
  16128. max_tokens: 2048,
  16129. top_p: 1,
  16130. frequency_penalty: 0,
  16131. presence_penalty: 0,
  16132. messages: [
  16133. {
  16134. role: "user",
  16135. content:
  16136.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  16137. },
  16138. ],
  16139. uid: this.userid,
  16140. stream: false,
  16141. };
  16142. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  16143. (res) => {
  16144. if (
  16145. res.data.FunctionResponse &&
  16146. res.data.FunctionResponse.result &&
  16147. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  16148. ) {
  16149. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  16150. return;
  16151. }
  16152. aiText =
  16153. res.data.FunctionResponse.choices[0].message.content;
  16154. aiText = aiText.replace(/%/g,"%25");
  16155. // let w = "";
  16156. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  16157. // for(var k = 0;k<a.length;k++){
  16158. // //diffWordsWithSpace
  16159. // if(a.length > 1){
  16160. // if(a[k].added == true){
  16161. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  16162. // }else if(a[k].removed == true){
  16163. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  16164. // }else{
  16165. // w += '<span>' + a[k].value + '</span>';
  16166. // }
  16167. // }else{
  16168. // if(p == 1){
  16169. // w = this.newEnglishList.engText;
  16170. // }else if(p == 2){
  16171. // w = this.oldEnglishJson1.engText;
  16172. // }else if(p == 3){
  16173. // w = this.newEnglishList.engText;
  16174. // }else{
  16175. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  16176. // }
  16177. // }
  16178. // }
  16179. if(p == 1){
  16180. this.newEnglishList.engText = aiText;
  16181. }else if(p == 2){
  16182. this.oldEnglishJson1.engText = aiText;
  16183. }else if(p == 3){
  16184. this.newEnglishList.engText = aiText;
  16185. }else{
  16186. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  16187. }
  16188. loading.close();
  16189. },
  16190. (err) => {
  16191. console.log(err);
  16192. loading.close();
  16193. }
  16194. );
  16195. },
  16196. addToolChoose() {
  16197. if (!this.checktoolArray.length) {
  16198. this.$message.error("请选择要添加的任务");
  16199. return;
  16200. }
  16201. if (
  16202. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16203. this.taskCount
  16204. ].toolChoose[0].tool.length
  16205. ) {
  16206. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16207. this.taskCount
  16208. ].toolChoose[0].tool = this.checktoolArray;
  16209. } else {
  16210. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16211. this.taskCount
  16212. ].toolChoose.push({
  16213. tool: this.checktoolArray,
  16214. toolDetail: "",
  16215. toolType: 0,
  16216. askCount: 1,
  16217. askTitle: "",
  16218. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  16219. });
  16220. }
  16221. let params = [
  16222. {
  16223. cid: this.id,
  16224. chapters: JSON.stringify(this.chapInfoList),
  16225. uid: this.userid,
  16226. unitIndex: this.courseType,
  16227. },
  16228. ];
  16229. this.ajax
  16230. .post(this.$store.state.api + "updateWorkNew4", params)
  16231. .then((res) => {
  16232. this.$message({
  16233. message: "添加成功",
  16234. type: "success",
  16235. });
  16236. this.checktoolArray = [];
  16237. this.getCourseDetail(2);
  16238. this.checkBz(
  16239. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16240. this.taskCount
  16241. ].toolChoose.length - 1
  16242. );
  16243. this.toolDialogVisible = false;
  16244. this.refreshCourse();
  16245. this.$forceUpdate();
  16246. })
  16247. .catch((err) => {
  16248. console.error(err);
  16249. });
  16250. },
  16251. checkBz(index) {
  16252. this.isUpdateToolDetail = false;
  16253. this.$forceUpdate();
  16254. setTimeout(() => {
  16255. document.scrollingElement.scrollTop =
  16256. document.querySelectorAll(".filebox")[index].offsetTop +
  16257. document.querySelector(".student_body").offsetTop;
  16258. }, 500);
  16259. },
  16260. updateToolDetail(i, type) {
  16261. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  16262. this.toolDetailIndex = i
  16263. this.isUpdateToolDetail1 = true;
  16264. setTimeout(() => {
  16265. this.updateToolDetailInner = JSON.parse(
  16266. JSON.stringify(
  16267. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16268. this.taskCount
  16269. ].toolChoose[i].toolDetail
  16270. )
  16271. );
  16272. document.querySelector(".checkTextArea").focus();
  16273. }, 0);
  16274. } else if((this.isUpdateToolDetail1 && type != 2)){
  16275. // this.toolDetailIndex = i;
  16276. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16277. this.taskCount
  16278. ].toolChoose[i].toolDetail = JSON.parse(
  16279. JSON.stringify(this.updateToolDetailInner)
  16280. );
  16281. let params = [
  16282. {
  16283. cid: this.id,
  16284. chapters: JSON.stringify(this.chapInfoList),
  16285. uid: this.userid,
  16286. unitIndex: this.courseType,
  16287. },
  16288. ];
  16289. this.ajax
  16290. .post(this.$store.state.api + "updateWorkNew4", params)
  16291. .then((res) => {
  16292. this.isUpdateToolDetail1 = false;
  16293. this.$message({
  16294. message: "修改成功",
  16295. type: "success",
  16296. });
  16297. this.toolDetailIndex = null;
  16298. this.updateToolDetailInner = "";
  16299. this.getCourseDetail(2);
  16300. this.$forceUpdate();
  16301. })
  16302. .catch((err) => {
  16303. console.error(err);
  16304. });
  16305. } else if((this.isUpdateToolDetail1 && type == 2)){
  16306. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16307. this.taskCount
  16308. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  16309. JSON.stringify(this.updateToolDetailInner)
  16310. );
  16311. let params = [
  16312. {
  16313. cid: this.id,
  16314. chapters: JSON.stringify(this.chapInfoList),
  16315. uid: this.userid,
  16316. unitIndex: this.courseType,
  16317. },
  16318. ];
  16319. this.ajax
  16320. .post(this.$store.state.api + "updateWorkNew4", params)
  16321. .then((res) => {
  16322. this.$message({
  16323. message: "修改成功",
  16324. type: "success",
  16325. });
  16326. this.toolDetailIndex = i;
  16327. this.isUpdateToolDetail1 = true;
  16328. setTimeout(() => {
  16329. this.updateToolDetailInner = JSON.parse(
  16330. JSON.stringify(
  16331. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16332. this.taskCount
  16333. ].toolChoose[i].toolDetail
  16334. )
  16335. );
  16336. document.querySelector(".checkTextArea").focus();
  16337. }, 0);
  16338. this.getCourseDetail(2);
  16339. this.$forceUpdate();
  16340. })
  16341. .catch((err) => {
  16342. console.error(err);
  16343. });
  16344. }
  16345. },
  16346. jumpGj(i, j, k, l) {
  16347. this.refreshAssembly();
  16348. for (var z = 0; z < this.navList.length; z++) {
  16349. for (var q = 0; q < this.navList[z].task.length; q++) {
  16350. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16351. this.navList[z].task[q].tool[w].isTool = false;
  16352. }
  16353. }
  16354. }
  16355. console.log(this.navList);
  16356. this.navList[i].task[j].tool[k].isTool =
  16357. !this.navList[i].task[j].tool[k].isTool;
  16358. var a = document.scrollingElement;
  16359. let target = document.querySelector(`#gj${k}`);
  16360. if (target) {
  16361. // target.scrollIntoView(true);
  16362. // setTimeout(() => {
  16363. // a.scrollTop = a.scrollTop - 150;
  16364. // }, 0);
  16365. target.scrollIntoView();
  16366. setTimeout(()=>{
  16367. let scrollBody = document.querySelector('.body_student').parentElement
  16368. scrollBody.scrollTop = scrollBody.scrollTop - 100
  16369. }, 0);
  16370. }
  16371. this.navId = ""
  16372. let flag = this.courseType == i;
  16373. let flag2 = this.taskCount == j
  16374. if (l) {
  16375. this.courseType = i;
  16376. // this.navId = l;
  16377. this.taskCount = j;
  16378. this.selectPz();
  16379. this.getHomeWork();
  16380. this.getCourseDetail(2);
  16381. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  16382. if(flag){
  16383. if(flag2){
  16384. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  16385. }else{
  16386. this.insertMemorandum(`选择<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  16387. }
  16388. }else{
  16389. this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  16390. }
  16391. }
  16392. // var b = this.$refs["bz" + k][0];
  16393. // a.scrollTop = b.offsetTop;
  16394. },
  16395. addTools2(i) {
  16396. if (i == 4) {
  16397. // this.openTools2(4);
  16398. this.$message.error("暂未开放");
  16399. return;
  16400. }
  16401. if (i == 45) {
  16402. // this.openTools2(45);
  16403. this.$message.error("暂未开放");
  16404. return;
  16405. }
  16406. if (i == 47) {
  16407. // this.openTools2(47);
  16408. this.$message.error("暂未开放");
  16409. return;
  16410. }
  16411. if (i == 49) {
  16412. // this.openTools2(49);
  16413. this.$message.error("暂未开放");
  16414. return;
  16415. }
  16416. if (i == 62) {
  16417. // this.openTools(itemTaskIndex, 62, toolIndex);
  16418. this.$message.error("暂未开放");
  16419. return;
  16420. }
  16421. if (i == 15) {
  16422. // this.openTools(itemTaskIndex, 15, toolIndex);
  16423. this.$message.error("暂未开放");
  16424. return;
  16425. }
  16426. if (i == 40) {
  16427. // this.openTools(itemTaskIndex, 40, toolIndex);
  16428. this.$message.error("暂未开放");
  16429. return;
  16430. }
  16431. if (i == 41) {
  16432. // this.openTools(itemTaskIndex, 41, toolIndex);
  16433. this.$message.error("暂未开放");
  16434. return;
  16435. }
  16436. if (i == 42) {
  16437. // this.openTools(itemTaskIndex, 42, toolIndex);
  16438. this.$message.error("暂未开放");
  16439. return;
  16440. }
  16441. if (this.checktoolArray.length > 0) {
  16442. if (this.checktoolArray.indexOf(i) != -1) {
  16443. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  16444. } else {
  16445. this.checktoolArray = [];
  16446. this.checktoolArray.push(i);
  16447. }
  16448. } else {
  16449. this.checktoolArray.push(i);
  16450. }
  16451. this.$forceUpdate();
  16452. },
  16453. jump() {
  16454. window.parent.postMessage({ tools: "43" }, "*");
  16455. },
  16456. getUpdateMore(f, checkboxList, searchTN, index) {
  16457. this.dialogVisibleMember = f;
  16458. this.checkboxList = checkboxList;
  16459. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  16460. this.plIndex = index;
  16461. },
  16462. setPlname(a) {
  16463. if (this.plworkFile.length) {
  16464. this.plworkFile[this.plIndex].username = a;
  16465. } else {
  16466. this.worksSName = a;
  16467. }
  16468. this.dialogVisibleMember = false;
  16469. },
  16470. previewImg(url,w) {
  16471. this.$hevueImgPreview(url);
  16472. if(w){
  16473. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  16474. }
  16475. },
  16476. checkImg(list) {
  16477. if (!list.length) {
  16478. return;
  16479. }
  16480. this.$hevueImgPreview({
  16481. multiple: true, // 开启多图预览模式
  16482. imgList: list, // 需要预览的多图数组
  16483. });
  16484. },
  16485. change(val) {
  16486. console.log(val);
  16487. },
  16488. goTo(path) {
  16489. this.$router.push(path);
  16490. },
  16491. handlePictureCardPreview(url) {
  16492. this.dialogImageUrl = url;
  16493. this.pictureDialog = true;
  16494. },
  16495. clean(type) {
  16496. if (type == 1) {
  16497. this.studyJuri[0].cover.splice(0, 1);
  16498. } else if (type == 2) {
  16499. this.studyJuri[0].upVedio.splice(0, 1);
  16500. } else {
  16501. this.studyJuri[0].upFile.splice(0, 1);
  16502. }
  16503. },
  16504. clean2(index) {
  16505. this.plworkFile.splice(index, 1);
  16506. },
  16507. handleClose(done) {
  16508. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  16509. this.videoDetail.sources[0].src = "";
  16510. }
  16511. this.commentIndexJson = {};
  16512. this.changeSplitScreenBehavior({code:99})
  16513. done();
  16514. },
  16515. fullTools() {
  16516. this.full = !this.full;
  16517. },
  16518. imgChange(file, fileList, type) {
  16519. if (type == 1) {
  16520. var _tmp = this.studyJuri[0].cover;
  16521. } else if (type == 2) {
  16522. var _tmp = this.studyJuri[0].upVedio;
  16523. } else {
  16524. var _tmp = this.studyJuri[0].upFile;
  16525. }
  16526. this.noneBtnImg = _tmp.length >= 1;
  16527. },
  16528. setContent(bool) {
  16529. this.contentDialog = bool;
  16530. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  16531. document.querySelector(".workd_media").style.height = "650px";
  16532. } else if (document.querySelector(".workd_media")) {
  16533. document.querySelector(".workd_media").style.height = "auto";
  16534. }
  16535. },
  16536. setContent2(bool) {
  16537. this.mlDialog = bool;
  16538. if (
  16539. bool &&
  16540. this.contentDialog &&
  16541. document.querySelector(".workd_media")
  16542. ) {
  16543. document.querySelector(".workd_media").style.height = "650px";
  16544. } else if (document.querySelector(".workd_media")) {
  16545. document.querySelector(".workd_media").style.height = "auto";
  16546. }
  16547. },
  16548. openToolAll() {
  16549. this.toolDialogVisible = true;
  16550. },
  16551. addImg(e) {
  16552. var el = e.currentTarget;
  16553. // this.$message.success('触发上传')
  16554. el.getElementsByTagName("input")[0].click();
  16555. e.target.value = "";
  16556. },
  16557. addSelectAnswer() {
  16558. let params = [
  16559. {
  16560. uid: this.userid,
  16561. cid: this.id,
  16562. stage: this.courseType,
  16563. task: this.taskCount,
  16564. tool: this.toolindex,
  16565. content: this.selectAnswer.answer,
  16566. type: 7,
  16567. },
  16568. ];
  16569. this.ajax
  16570. .post(this.$store.state.api + "addCourseWorks", params)
  16571. .then((res) => {
  16572. this.$message({
  16573. message: "提交成功",
  16574. type: "success",
  16575. });
  16576. this.dialogVisibleSelect = false;
  16577. // this.selectAnswer = {};
  16578. this.selectSWorks();
  16579. this.selectStudent();
  16580. })
  16581. .catch((err) => {
  16582. this.$message.error("提交失败");
  16583. console.error(err);
  16584. });
  16585. },
  16586. addSelectAnswerTeacher() {
  16587. let params = [
  16588. {
  16589. uid: this.sStudent.userid,
  16590. cid: this.id,
  16591. stage: this.courseType,
  16592. task: this.taskCount,
  16593. tool: this.toolindex,
  16594. content: this.selectAnswer.answer,
  16595. type: 7,
  16596. },
  16597. ];
  16598. this.ajax
  16599. .post(this.$store.state.api + "addCourseWorks", params)
  16600. .then((res) => {
  16601. this.$message({
  16602. message: "提交成功",
  16603. type: "success",
  16604. });
  16605. this.dialogVisibleSelectTeacher = false;
  16606. // this.selectAnswer = {};
  16607. this.selectSWorks();
  16608. this.selectStudent();
  16609. })
  16610. .catch((err) => {
  16611. this.$message.error("提交失败");
  16612. console.error(err);
  16613. });
  16614. },
  16615. addSenWorks() {
  16616. for (var i = 0; i < this.sentenceList.length; i++) {
  16617. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  16618. if (
  16619. this.sentenceList[i].chooseSenList[j] == undefined ||
  16620. this.sentenceList[i].chooseSenList[j] == ""
  16621. ) {
  16622. this.$message.error("请将答案填写完整!");
  16623. return;
  16624. }
  16625. }
  16626. }
  16627. let params = [
  16628. {
  16629. uid: this.userid,
  16630. cid: this.id,
  16631. stage: this.courseType,
  16632. task: this.taskCount,
  16633. tool: this.toolindex,
  16634. content: JSON.stringify(this.sentenceList),
  16635. type: 9,
  16636. },
  16637. ];
  16638. this.ajax
  16639. .post(this.$store.state.api + "addCourseWorks", params)
  16640. .then((res) => {
  16641. this.$message({
  16642. message: "提交成功",
  16643. type: "success",
  16644. });
  16645. this.dialogVisibleSentence = false;
  16646. // this.selectAnswer = {};
  16647. this.selectSWorks();
  16648. this.selectStudent();
  16649. })
  16650. .catch((err) => {
  16651. this.$message.error("提交失败");
  16652. console.error(err);
  16653. });
  16654. },
  16655. addSenWorksTeacher() {
  16656. for (var i = 0; i < this.sentenceList.length; i++) {
  16657. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  16658. if (
  16659. this.sentenceList[i].chooseSenList[j] == undefined ||
  16660. this.sentenceList[i].chooseSenList[j] == ""
  16661. ) {
  16662. this.$message.error("请将答案填写完整!");
  16663. return;
  16664. }
  16665. }
  16666. }
  16667. let params = [
  16668. {
  16669. uid: this.sStudent.userid,
  16670. cid: this.id,
  16671. stage: this.courseType,
  16672. task: this.taskCount,
  16673. tool: this.toolindex,
  16674. content: JSON.stringify(this.sentenceList),
  16675. type: 9,
  16676. },
  16677. ];
  16678. this.ajax
  16679. .post(this.$store.state.api + "addCourseWorks", params)
  16680. .then((res) => {
  16681. this.$message({
  16682. message: "提交成功",
  16683. type: "success",
  16684. });
  16685. this.dialogVisibleSentenceTeacher = false;
  16686. // this.selectAnswer = {};
  16687. this.selectSWorks();
  16688. this.selectStudent();
  16689. })
  16690. .catch((err) => {
  16691. this.$message.error("提交失败");
  16692. console.error(err);
  16693. });
  16694. },
  16695. returnTableText() {
  16696. this.$confirm("确定还原此模板吗?", "提示", {
  16697. confirmButtonText: "确定",
  16698. cancelButtonText: "取消",
  16699. type: "warning",
  16700. })
  16701. .then(() => {
  16702. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  16703. })
  16704. .catch(() => {});
  16705. },
  16706. addTableWorks() {
  16707. let params = [
  16708. {
  16709. uid: this.userid,
  16710. cid: this.id,
  16711. stage: this.courseType,
  16712. task: this.taskCount,
  16713. tool: this.toolindex,
  16714. content: JSON.stringify(this.tableJson),
  16715. type: 10,
  16716. },
  16717. ];
  16718. this.ajax
  16719. .post(this.$store.state.api + "addCourseWorks", params)
  16720. .then((res) => {
  16721. this.$message({
  16722. message: "提交成功",
  16723. type: "success",
  16724. });
  16725. this.dialogVisibleTable = false;
  16726. // this.selectAnswer = {};
  16727. this.selectSWorks();
  16728. this.selectStudent();
  16729. })
  16730. .catch((err) => {
  16731. this.$message.error("提交失败");
  16732. console.error(err);
  16733. });
  16734. },
  16735. tableRowClassName({ row, rowIndex }) {
  16736. if ((rowIndex + 1) % 2 === 0) {
  16737. return "even_row";
  16738. } else {
  16739. return "";
  16740. }
  16741. },
  16742. addTableWorksTeacher() {
  16743. let params = [
  16744. {
  16745. uid: this.sStudent.userid,
  16746. cid: this.id,
  16747. stage: this.courseType,
  16748. task: this.taskCount,
  16749. tool: this.toolindex,
  16750. content: JSON.stringify(this.tableJson),
  16751. type: 10,
  16752. },
  16753. ];
  16754. this.ajax
  16755. .post(this.$store.state.api + "addCourseWorks", params)
  16756. .then((res) => {
  16757. this.$message({
  16758. message: "提交成功",
  16759. type: "success",
  16760. });
  16761. this.dialogVisibleTableTeacher = false;
  16762. // this.selectAnswer = {};
  16763. this.selectSWorks();
  16764. this.selectStudent();
  16765. })
  16766. .catch((err) => {
  16767. this.$message.error("提交失败");
  16768. console.error(err);
  16769. });
  16770. },
  16771. returnWordText() {
  16772. this.$confirm("确定还原此模板吗?", "提示", {
  16773. confirmButtonText: "确定",
  16774. cancelButtonText: "取消",
  16775. type: "warning",
  16776. })
  16777. .then(() => {
  16778. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  16779. })
  16780. .catch(() => {});
  16781. },
  16782. addWordWorks() {
  16783. let params = [
  16784. {
  16785. uid: this.userid,
  16786. cid: this.id,
  16787. stage: this.courseType,
  16788. task: this.taskCount,
  16789. tool: this.toolindex,
  16790. content: JSON.stringify(this.wordJson),
  16791. type: 13,
  16792. atool: 52,
  16793. },
  16794. ];
  16795. this.ajax
  16796. .post(this.$store.state.api + "addCourseWorks3-2", params)
  16797. .then((res) => {
  16798. this.$message({
  16799. message: "提交成功",
  16800. type: "success",
  16801. });
  16802. this.dialogVisibleWord = false;
  16803. // this.selectAnswer = {};
  16804. this.selectSWorks();
  16805. this.selectStudent();
  16806. })
  16807. .catch((err) => {
  16808. this.$message.error("提交失败");
  16809. console.error(err);
  16810. });
  16811. },
  16812. addWordWorksTeacher() {
  16813. let params = [
  16814. {
  16815. uid: this.sStudent.userid,
  16816. cid: this.id,
  16817. stage: this.courseType,
  16818. task: this.taskCount,
  16819. tool: this.toolindex,
  16820. content: JSON.stringify(this.wordJson),
  16821. type: 13,
  16822. atool: 52,
  16823. },
  16824. ];
  16825. this.ajax
  16826. .post(this.$store.state.api + "addCourseWorks3-2", params)
  16827. .then((res) => {
  16828. this.$message({
  16829. message: "提交成功",
  16830. type: "success",
  16831. });
  16832. this.dialogVisibleWordTeacher = false;
  16833. // this.selectAnswer = {};
  16834. this.selectSWorks();
  16835. this.selectStudent();
  16836. })
  16837. .catch((err) => {
  16838. this.$message.error("提交失败");
  16839. console.error(err);
  16840. });
  16841. },
  16842. addCourseWorksCopy(i) {
  16843. let arr = this.workStudent[this.toolindex].filter(e => {
  16844. return (e.userid = this.userid);
  16845. });
  16846. if (arr.length > 0) {
  16847. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  16848. confirmButtonText: "确定",
  16849. cancelButtonText: "取消",
  16850. type: "warning"
  16851. })
  16852. .then(() => {
  16853. this.addCourseWorks(i);
  16854. })
  16855. .catch(() => {});
  16856. } else {
  16857. this.addCourseWorks(i);
  16858. }
  16859. },
  16860. addCourseWorks(i) {
  16861. var typesql;
  16862. if (this.fileType === 0) {
  16863. typesql = 1;
  16864. } else if (this.fileType === 1) {
  16865. typesql = 4;
  16866. } else if (this.fileType === 2) {
  16867. typesql = 5;
  16868. } else if (this.fileType === 3) {
  16869. typesql = 12;
  16870. }
  16871. if (!this.studyJuri[0].cover[0].url) {
  16872. this.$message.error("请上传文件");
  16873. return;
  16874. }
  16875. let params = [
  16876. {
  16877. uid: this.userid,
  16878. cid: this.id,
  16879. stage: this.courseType,
  16880. task: i,
  16881. tool: this.toolindex,
  16882. content: this.studyJuri[0].cover[0].url,
  16883. type: typesql,
  16884. },
  16885. ];
  16886. this.ajax
  16887. .post(this.$store.state.api + "addCourseWorksR", params)
  16888. .then((res) => {
  16889. this.$message({
  16890. message: "提交成功",
  16891. type: "success",
  16892. });
  16893. this.studyJuri[0].cover = [];
  16894. this.dialogVisible = false;
  16895. this.getCourseDetail(2);
  16896. })
  16897. .catch((err) => {
  16898. this.$message.error("提交失败");
  16899. console.error(err);
  16900. });
  16901. },
  16902. addCourseWorksPl(i) {
  16903. let _files = this.plworkFile;
  16904. var c = 1;
  16905. for (var k = 0; k < _files.length; k++) {
  16906. if (!_files[k].username) {
  16907. c = 2;
  16908. }
  16909. }
  16910. if (c == 2) {
  16911. this.$message.error("请填写学生姓名");
  16912. return;
  16913. }
  16914. let params = [
  16915. {
  16916. ateacher: this.userid,
  16917. cid: this.id,
  16918. stage: this.courseType,
  16919. task: i,
  16920. tool: this.toolindex,
  16921. content: JSON.stringify(_files),
  16922. },
  16923. ];
  16924. this.ajax
  16925. .post(this.$store.state.api + "addCourseWorksPl", params)
  16926. .then((res) => {
  16927. this.$message({
  16928. message: "提交成功",
  16929. type: "success",
  16930. });
  16931. this.plworkFile = [];
  16932. this.dialogVisiblePl = false;
  16933. this.getCourseDetail(2);
  16934. })
  16935. .catch((err) => {
  16936. this.$message.error("提交失败");
  16937. console.error(err);
  16938. });
  16939. },
  16940. addCourseWorks2(i) {
  16941. var typesql;
  16942. if (this.fileType === 0) {
  16943. typesql = 0;
  16944. } else if (this.fileType === 1) {
  16945. typesql = 1;
  16946. } else if (this.fileType === 2) {
  16947. typesql = 3;
  16948. } else if (this.fileType === 3) {
  16949. typesql = 12;
  16950. }
  16951. if (!this.studyJuri[0].cover[0].url) {
  16952. this.$message.error("请上传文件");
  16953. return;
  16954. }
  16955. let params = [
  16956. {
  16957. uid: this.userid,
  16958. cid: this.id,
  16959. stage: this.courseType,
  16960. task: i,
  16961. tool: this.toolindex,
  16962. content: JSON.stringify({
  16963. type: typesql,
  16964. groupIndex: this.groupIndex,
  16965. url: this.studyJuri[0].cover[0].url,
  16966. }),
  16967. type: 11,
  16968. atool: 49,
  16969. text: "",
  16970. },
  16971. ];
  16972. this.ajax
  16973. .post(this.$store.state.api + "addCourseWorks5", params)
  16974. .then((res) => {
  16975. this.$message({
  16976. message: "提交成功",
  16977. type: "success",
  16978. });
  16979. this.studyJuri[0].cover = [];
  16980. this.dialogVisibleGroupWork = false;
  16981. this.getCourseDetail(2);
  16982. })
  16983. .catch((err) => {
  16984. this.$message.error("提交失败");
  16985. console.error(err);
  16986. });
  16987. },
  16988. addEnglishWork() {
  16989. this.myAnList = this.$refs['engJson'].myAnswerList;
  16990. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  16991. this.$message.error("请输入作文标题和正文!");
  16992. return;
  16993. }
  16994. let params = [
  16995. {
  16996. uid: this.userid,
  16997. cid: this.id,
  16998. stage: this.courseType,
  16999. task: this.taskCount,
  17000. tool: this.englishToolIndex,
  17001. content: JSON.stringify(this.myAnList),
  17002. type: 16,
  17003. atool: 69,
  17004. text: "",
  17005. },
  17006. ];
  17007. this.ajax
  17008. .post(this.$store.state.api + "addCourseWorks5", params)
  17009. .then((res) => {
  17010. this.$message({
  17011. message: "提交成功",
  17012. type: "success",
  17013. });
  17014. this.myAnList = {};
  17015. this.englishList = {};
  17016. this.englishToolIndex = 0;
  17017. this.engDialogVisible = false;
  17018. this.selectSWorks();
  17019. this.selectStudent();
  17020. })
  17021. .catch((err) => {
  17022. this.$message.error("提交失败");
  17023. console.error(err);
  17024. });
  17025. },
  17026. addCourseWorksGong(i, data, tool) {
  17027. let params = [
  17028. {
  17029. uid: this.userid,
  17030. cid: this.id,
  17031. stage: this.courseType,
  17032. task: this.taskCount,
  17033. tool: i,
  17034. content: data,
  17035. type: 12,
  17036. atool: tool,
  17037. text: "",
  17038. },
  17039. ];
  17040. this.ajax
  17041. .post(this.$store.state.api + "addCourseWorks5", params)
  17042. .then((res) => {
  17043. this.$message({
  17044. message: "提交成功",
  17045. type: "success",
  17046. });
  17047. this.studyJuri[0].cover = [];
  17048. this.selectSWorks();
  17049. this.selectStudent();
  17050. })
  17051. .catch((err) => {
  17052. this.$message.error("提交失败");
  17053. console.error(err);
  17054. });
  17055. },
  17056. addCourseWorksGongTeacher(i, data, tool) {
  17057. let params = [
  17058. {
  17059. uid: this.sStudent.userid,
  17060. cid: this.id,
  17061. stage: this.courseType,
  17062. task: this.taskCount,
  17063. tool: i,
  17064. content: data,
  17065. type: 12,
  17066. atool: tool,
  17067. text: "",
  17068. },
  17069. ];
  17070. this.ajax
  17071. .post(this.$store.state.api + "addCourseWorks5", params)
  17072. .then((res) => {
  17073. this.$message({
  17074. message: "提交成功",
  17075. type: "success",
  17076. });
  17077. this.studyJuri[0].cover = [];
  17078. this.dialogVisibleWorks = false;
  17079. this.selectSWorks();
  17080. this.selectStudent();
  17081. })
  17082. .catch((err) => {
  17083. this.$message.error("提交失败");
  17084. console.error(err);
  17085. });
  17086. },
  17087. addCourseWorksGongPl(i, data, tool, type) {
  17088. let params = [
  17089. {
  17090. uid: this.sStudent.userid,
  17091. cid: this.id,
  17092. stage: this.courseType,
  17093. task: this.taskCount,
  17094. tool: i,
  17095. content: data,
  17096. type: type,
  17097. atool: tool,
  17098. text: "",
  17099. },
  17100. ];
  17101. this.ajax
  17102. .post(this.$store.state.api + "addCourseWorks5", params)
  17103. .then((res) => {
  17104. this.$message({
  17105. message: "提交成功",
  17106. type: "success",
  17107. });
  17108. this.studyJuri[0].cover = [];
  17109. this.dialogVisibleWorks = false;
  17110. this.selectSWorks();
  17111. this.selectStudent();
  17112. })
  17113. .catch((err) => {
  17114. this.$message.error("提交失败");
  17115. console.error(err);
  17116. });
  17117. },
  17118. addCourseWorksTeacher(i) {
  17119. var typesql;
  17120. if (this.sTool == 32) {
  17121. this.addCourseWorksGongTeacher(
  17122. this.toolindex,
  17123. this.studyJuri[0].cover[0].url,
  17124. this.sTool
  17125. );
  17126. return;
  17127. }
  17128. if (this.fileType === 0) {
  17129. typesql = 1;
  17130. } else if (this.fileType === 1) {
  17131. typesql = 4;
  17132. } else if (this.fileType === 2) {
  17133. typesql = 5;
  17134. } else if (this.fileType === 3) {
  17135. typesql = 12;
  17136. }
  17137. if (this.sTool == 50) {
  17138. this.addCourseWorksGongPl(
  17139. this.toolindex,
  17140. this.studyJuri[0].cover[0].url,
  17141. this.sTool,
  17142. typesql
  17143. );
  17144. return;
  17145. }
  17146. if (!this.studyJuri[0].cover[0].url) {
  17147. this.$message.error("请上传文件");
  17148. return;
  17149. }
  17150. let params = [
  17151. {
  17152. uid: this.sStudent.userid,
  17153. cid: this.id,
  17154. stage: this.courseType,
  17155. task: i,
  17156. tool: this.toolindex,
  17157. content: this.studyJuri[0].cover[0].url,
  17158. type: typesql,
  17159. ateacher: this.userid,
  17160. },
  17161. ];
  17162. this.ajax
  17163. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17164. .then((res) => {
  17165. this.$message({
  17166. message: "提交成功",
  17167. type: "success",
  17168. });
  17169. this.studyJuri[0].cover = [];
  17170. this.dialogVisibleWorks = false;
  17171. this.getCourseDetail(2);
  17172. })
  17173. .catch((err) => {
  17174. this.$message.error("提交失败");
  17175. console.error(err);
  17176. });
  17177. },
  17178. selectUploadStudent(type) {
  17179. const loading = this.$loading.service({
  17180. background: "rgba(255, 255, 255, 0.7)",
  17181. target: document.body,
  17182. });
  17183. let params = {
  17184. cid: this.uploadCid,
  17185. oid: this.oid,
  17186. cn: "",
  17187. };
  17188. this.ajax
  17189. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17190. .then((res) => {
  17191. loading.close();
  17192. var studentK = [];
  17193. if (this.isWorksS[this.toolindex].length > 0) {
  17194. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  17195. studentK.push(this.isWorksS[this.toolindex][z].uid);
  17196. }
  17197. studentK = studentK.join(",");
  17198. }
  17199. this.uploadStudentJuri = res.data[0].filter((el) => {
  17200. return studentK.indexOf(el.userid) == -1;
  17201. });
  17202. if (this.worksSName && this.worksSid) {
  17203. this.uploadStudentJuri.push({
  17204. userid: this.worksSid,
  17205. name: this.worksSName,
  17206. });
  17207. }
  17208. if (type == 1) {
  17209. this.plworkFile = [];
  17210. this.dialogVisibleSname = true;
  17211. } else if (type == 2) {
  17212. this.dialogVisiblePl = true;
  17213. }
  17214. })
  17215. .catch((err) => {
  17216. loading.close();
  17217. console.error(err);
  17218. });
  17219. },
  17220. selectPickStudent() {
  17221. const loading = this.$loading.service({
  17222. background: "rgba(255, 255, 255, 0.7)",
  17223. target: document.body,
  17224. });
  17225. let params = {
  17226. cid: this.uploadCid,
  17227. oid: this.oid,
  17228. cn: "",
  17229. };
  17230. this.ajax
  17231. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17232. .then((res) => {
  17233. loading.close();
  17234. this.uploadStudentJuri = res.data[0];
  17235. this.dialogVisiblePickPeople = true;
  17236. })
  17237. .catch((err) => {
  17238. loading.close();
  17239. console.error(err);
  17240. });
  17241. },
  17242. arrayToArray(arrayo, arrayt) {
  17243. let array1 = arrayo;
  17244. let array2 = arrayt;
  17245. let commonElements = [];
  17246. for (let i = 0; i < array1.length; i++) {
  17247. for (let j = 0; j < array2.length; j++) {
  17248. if (array1[i] === array2[j]) {
  17249. commonElements.push(array1[i]);
  17250. }
  17251. }
  17252. }
  17253. return commonElements;
  17254. },
  17255. selectWorksStudent() {
  17256. let params = {
  17257. oid: this.oid,
  17258. cid: this.courseDetail.juri,
  17259. };
  17260. this.ajax
  17261. .get(this.$store.state.api + "selectWorksStudent", params)
  17262. .then((res) => {
  17263. var a = res.data[0];
  17264. for (var i = 0; i < this.isWorksS.length; i++) {
  17265. this.noWorksS[i] = [];
  17266. var studentK = [];
  17267. if (this.isWorksS[i].length > 0) {
  17268. for (var z = 0; z < this.isWorksS[i].length; z++) {
  17269. studentK.push(this.isWorksS[i][z].uid);
  17270. }
  17271. studentK = studentK.join(",");
  17272. for (var j = 0; j < a.length; j++) {
  17273. if (studentK.indexOf(a[j].userid) == -1) {
  17274. if (this.tcid) {
  17275. // a[j].classid.indexOf(this.tcid) != -1
  17276. if (
  17277. this.arrayToArray(
  17278. a[j].classid.split(","),
  17279. this.tcid.split(",")
  17280. ).length
  17281. ) {
  17282. this.noWorksS[i].push({
  17283. student: a[j].name,
  17284. userid: a[j].userid,
  17285. });
  17286. }
  17287. } else {
  17288. this.noWorksS[i].push({
  17289. student: a[j].name,
  17290. userid: a[j].userid,
  17291. });
  17292. }
  17293. }
  17294. }
  17295. } else {
  17296. for (var k = 0; k < a.length; k++) {
  17297. if (this.tcid) {
  17298. if (
  17299. this.arrayToArray(
  17300. a[k].classid.split(","),
  17301. this.tcid.split(",")
  17302. ).length
  17303. ) {
  17304. this.noWorksS[i].push({
  17305. student: a[k].name,
  17306. userid: a[k].userid,
  17307. });
  17308. }
  17309. } else {
  17310. this.noWorksS[i].push({
  17311. student: a[k].name,
  17312. userid: a[k].userid,
  17313. });
  17314. }
  17315. }
  17316. }
  17317. }
  17318. this.$forceUpdate();
  17319. if (
  17320. Object.keys(this.commentDetail).length &&
  17321. Object.keys(this.commentIndexJson).length &&
  17322. !this.dialogVisibleScore && !this.dialogVisibleENScore
  17323. ) {
  17324. let a = 1;
  17325. let c = this.commentIndexJson;
  17326. if (
  17327. this.commentIndexJson.gindex ||
  17328. this.commentIndexJson.gindex === 0
  17329. ) {
  17330. for (
  17331. var i = 0;
  17332. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17333. i++
  17334. ) {
  17335. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  17336. groupA: for (var k = 0; k < _el.length; k++) {
  17337. let el = _el[k];
  17338. if (el.wid == this.commentDetail.wid) {
  17339. a = 2;
  17340. this.commentOther(
  17341. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  17342. this.commentIndexJson.toolIndex,
  17343. k,
  17344. this.commentIndexJson.gindex
  17345. );
  17346. break groupA;
  17347. }
  17348. }
  17349. }
  17350. if (a === 1) {
  17351. this.commentDetail = [];
  17352. this.commentIndexJson = {};
  17353. this.commentDialogVisible = false;
  17354. this.$message("此作业已被删除");
  17355. }
  17356. } else {
  17357. if (this.isGroup && this.commentIndexJson.gid) {
  17358. groupA: for (
  17359. var i = 0;
  17360. i < this.courseGroup.group.length;
  17361. i++
  17362. ) {
  17363. let _group = this.courseGroup.group[i];
  17364. if (_group.id == this.commentIndexJson.gid) {
  17365. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  17366. for (var k = 0; k < _el2.length; k++) {
  17367. let el2 = _el2[k];
  17368. if (el2.wid == this.commentDetail.wid) {
  17369. a = 2;
  17370. this.commentOther(
  17371. _el2[k],
  17372. this.commentIndexJson.toolIndex,
  17373. k,
  17374. null,
  17375. this.commentIndexJson.gid
  17376. );
  17377. break groupA;
  17378. }
  17379. }
  17380. }
  17381. }
  17382. }
  17383. if (a == 1) {
  17384. for (
  17385. var i = 0;
  17386. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17387. i++
  17388. ) {
  17389. let el =
  17390. this.worksStudent[this.commentIndexJson.toolIndex][i];
  17391. if (el.wid == this.commentDetail.wid) {
  17392. a = 2;
  17393. this.commentOther(
  17394. this.worksStudent[this.commentIndexJson.toolIndex][i],
  17395. this.commentIndexJson.toolIndex,
  17396. i
  17397. );
  17398. break;
  17399. }
  17400. }
  17401. }
  17402. if (a === 1) {
  17403. this.commentDetail = [];
  17404. this.commentIndexJson = {};
  17405. this.commentDialogVisible = false;
  17406. this.$message("此作业已被删除");
  17407. }
  17408. }
  17409. }
  17410. })
  17411. .catch((err) => {
  17412. console.error(err);
  17413. });
  17414. },
  17415. selectStudent() {
  17416. //学生查看自己作业
  17417. let params = {
  17418. uid: this.userid,
  17419. cid: this.id,
  17420. s: this.courseType,
  17421. t: this.taskCount,
  17422. };
  17423. this.ajax
  17424. .get(this.$store.state.api + "selectStudentWorks", params)
  17425. .then((res) => {
  17426. var a =
  17427. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17428. this.taskCount
  17429. ].toolChoose;
  17430. var b = res.data[0];
  17431. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17432. var y = [
  17433. "AVI",
  17434. "NAVI",
  17435. "MPEG",
  17436. "ASF",
  17437. "MOV",
  17438. "WMV",
  17439. "3GP",
  17440. "RM",
  17441. "RMVB",
  17442. "FLV",
  17443. "F4V",
  17444. "H.264",
  17445. "H.265",
  17446. "REAL VIDEO",
  17447. "MKV",
  17448. "WebM",
  17449. "HDDVD",
  17450. "MP4",
  17451. "MPG",
  17452. "M4V",
  17453. "MGV",
  17454. "OGV",
  17455. "QTM",
  17456. "STR",
  17457. "AMC",
  17458. "DVX",
  17459. "EVO",
  17460. "DAT",
  17461. "OGG",
  17462. "OGM",
  17463. ];
  17464. for (var i = 0; i < a.length; i++) {
  17465. this.workStudent[i] = [];
  17466. for (var j = 0; j < b.length; j++) {
  17467. if (i == b[j].tool) {
  17468. if (
  17469. (b[j].type == 1 ||
  17470. b[j].type == 4 ||
  17471. b[j].type == 5 ||
  17472. b[j].type == 6 ||
  17473. b[j].type == 12 ||
  17474. b[j].type == 7) &&
  17475. a[i].tool[0] != 15 &&
  17476. a[i].tool[0] != 4 &&
  17477. a[i].tool[0] != 45 &&
  17478. a[i].tool[0] != 50 &&
  17479. a[i].tool[0] != 32 &&
  17480. a[i].tool[0] != 57 &&
  17481. a[i].tool[0] != 52 &&
  17482. a[i].tool[0] != 69
  17483. ) {
  17484. if (
  17485. c.indexOf(
  17486. b[j].content
  17487. .split(".")
  17488. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17489. ) != -1 &&
  17490. a[i].tool[0] == 16 &&
  17491. b[j].atool != 50
  17492. ) {
  17493. this.workStudent[i].push({
  17494. works: b[j].content,
  17495. sName: b[j].name,
  17496. score: b[j].score,
  17497. img: b[j].img,
  17498. type: 1,
  17499. time: b[j].time,
  17500. userid: b[j].userid,
  17501. wid: b[j].id,
  17502. });
  17503. } else if (
  17504. y.indexOf(
  17505. b[j].content
  17506. .split(".")
  17507. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17508. ) != -1 &&
  17509. a[i].tool[0] == 16 &&
  17510. b[j].atool != 50
  17511. ) {
  17512. this.workStudent[i].push({
  17513. userid: b[j].userid,
  17514. wid: b[j].id,
  17515. works: b[j].content,
  17516. sName: b[j].name,
  17517. score: b[j].score,
  17518. img: b[j].img,
  17519. type: 3,
  17520. time: b[j].time,
  17521. });
  17522. } else if (b[j].type == 6 && b[j].atool != 50) {
  17523. this.workStudent[i].push({
  17524. userid: b[j].userid,
  17525. wid: b[j].id,
  17526. works: b[j].content,
  17527. sName: b[j].name,
  17528. score: b[j].score,
  17529. img: b[j].img,
  17530. type: 4,
  17531. time: b[j].time,
  17532. });
  17533. } else if (b[j].type == 7 && b[j].atool != 50) {
  17534. this.workStudent[i].push({
  17535. userid: b[j].userid,
  17536. wid: b[j].id,
  17537. works: b[j].content,
  17538. sName: b[j].name,
  17539. score: b[j].score,
  17540. img: b[j].img,
  17541. type: 5,
  17542. time: b[j].time,
  17543. });
  17544. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  17545. this.workStudent[i].push({
  17546. works: b[j].content,
  17547. sName: b[j].name,
  17548. score: b[j].score,
  17549. img: b[j].img,
  17550. type: 12,
  17551. time: b[j].time,
  17552. userid: b[j].userid,
  17553. wid: b[j].id,
  17554. });
  17555. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  17556. this.workStudent[i].push({
  17557. works: b[j].content,
  17558. sName: b[j].name,
  17559. score: b[j].score,
  17560. img: b[j].img,
  17561. type: 0,
  17562. time: b[j].time,
  17563. userid: b[j].userid,
  17564. wid: b[j].id,
  17565. });
  17566. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  17567. this.workStudent[i].push({
  17568. works: b[j].content,
  17569. sName: b[j].name,
  17570. score: b[j].score,
  17571. img: b[j].img,
  17572. type: 0,
  17573. time: b[j].time,
  17574. userid: b[j].userid,
  17575. wid: b[j].id,
  17576. });
  17577. }
  17578. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  17579. this.workStudent[i].push({
  17580. works: b[j].content,
  17581. sName: b[j].name,
  17582. score: b[j].score,
  17583. img: b[j].img,
  17584. type: 2,
  17585. time: b[j].time,
  17586. userid: b[j].userid,
  17587. wid: b[j].id,
  17588. });
  17589. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  17590. //问卷
  17591. this.workStudent[i].push({
  17592. works: b[j].content,
  17593. sName: b[j].name,
  17594. score: b[j].score,
  17595. img: b[j].img,
  17596. type: 2,
  17597. time: b[j].time,
  17598. userid: b[j].userid,
  17599. wid: b[j].id,
  17600. });
  17601. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  17602. //选择题
  17603. this.workStudent[i].push({
  17604. works: b[j].content,
  17605. sName: b[j].name,
  17606. score: b[j].score,
  17607. img: b[j].img,
  17608. type: 8,
  17609. time: b[j].time,
  17610. userid: b[j].userid,
  17611. wid: b[j].id,
  17612. });
  17613. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  17614. //选择题
  17615. this.workStudent[i].push({
  17616. works: b[j].content,
  17617. sName: b[j].name,
  17618. score: b[j].score,
  17619. img: b[j].img,
  17620. type: 9,
  17621. time: b[j].time,
  17622. userid: b[j].userid,
  17623. wid: b[j].id,
  17624. });
  17625. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  17626. //选择题
  17627. this.workStudent[i].push({
  17628. works: b[j].content,
  17629. sName: b[j].name,
  17630. score: b[j].score,
  17631. img: b[j].img,
  17632. type: 10,
  17633. time: b[j].time,
  17634. userid: b[j].userid,
  17635. wid: b[j].id,
  17636. });
  17637. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  17638. //选择题
  17639. this.workStudent[i].push({
  17640. works: b[j].content,
  17641. sName: b[j].name,
  17642. score: b[j].score,
  17643. img: b[j].img,
  17644. type: 13,
  17645. time: b[j].time,
  17646. userid: b[j].userid,
  17647. wid: b[j].id,
  17648. });
  17649. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  17650. //选择题
  17651. this.workStudent[i].push({
  17652. works: b[j].content,
  17653. sName: b[j].name,
  17654. score: b[j].score,
  17655. img: b[j].img,
  17656. type: 12,
  17657. time: b[j].time,
  17658. userid: b[j].userid,
  17659. wid: b[j].id,
  17660. });
  17661. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  17662. //选择题
  17663. this.workStudent[i].push({
  17664. works: b[j].content,
  17665. sName: b[j].name,
  17666. score: b[j].score,
  17667. img: b[j].img,
  17668. type: 12,
  17669. time: b[j].time,
  17670. userid: b[j].userid,
  17671. wid: b[j].id,
  17672. });
  17673. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  17674. //选择题
  17675. this.workStudent[i].push({
  17676. works: b[j].content,
  17677. sName: b[j].name,
  17678. score: b[j].score,
  17679. img: b[j].img,
  17680. type: 15,
  17681. time: b[j].time,
  17682. userid: b[j].userid,
  17683. wid: b[j].id,
  17684. });
  17685. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  17686. //英语写作
  17687. this.workStudent[i].push({
  17688. works: b[j].content,
  17689. sName: b[j].name,
  17690. score: b[j].score,
  17691. img: b[j].img,
  17692. type: 16,
  17693. time: b[j].time,
  17694. userid: b[j].userid,
  17695. wid: b[j].id,
  17696. aiCode: b[j].aiCode,
  17697. teacherCode: b[j].teacherCode
  17698. });
  17699. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  17700. //英语口语
  17701. this.workStudent[i].push({
  17702. works: b[j].content,
  17703. sName: b[j].name,
  17704. score: b[j].score,
  17705. img: b[j].img,
  17706. type: 17,
  17707. time: b[j].time,
  17708. userid: b[j].userid,
  17709. wid: b[j].id,
  17710. });
  17711. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  17712. //交互视频
  17713. this.workStudent[i].push({
  17714. works: b[j].content,
  17715. sName: b[j].name,
  17716. score: b[j].score,
  17717. img: b[j].img,
  17718. type: 14,
  17719. time: b[j].time,
  17720. userid: b[j].userid,
  17721. wid: b[j].id,
  17722. });
  17723. }
  17724. }
  17725. }
  17726. }
  17727. })
  17728. .catch((err) => {
  17729. console.error(err);
  17730. });
  17731. },
  17732. openVideo(w) {
  17733. this.videoDetail = {};
  17734. this.playerOptions1.sources[0].src = w.works;
  17735. this.videoDetail = this.playerOptions1;
  17736. this.videoVisible = true;
  17737. },
  17738. isLikes(wid, uid, t, c, isLikes,sName) {
  17739. if (isLikes == false) {
  17740. let params = [
  17741. {
  17742. wid: wid,
  17743. lid: uid,
  17744. t: t,
  17745. c: c,
  17746. },
  17747. ];
  17748. this.ajax
  17749. .post(this.$store.state.api + "insertComment", params)
  17750. .then((res) => {
  17751. this.$message({
  17752. message: "点赞成功",
  17753. type: "success",
  17754. });
  17755. this.selectSWorks();
  17756. this.selectStudent();
  17757. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  17758. })
  17759. .catch((err) => {
  17760. this.$message.error("点赞失败");
  17761. console.error(err);
  17762. });
  17763. } else {
  17764. let params = {
  17765. wid: wid,
  17766. lid: uid,
  17767. type: t,
  17768. };
  17769. this.ajax
  17770. .get(this.$store.state.api + "deleteComment", params)
  17771. .then((res) => {
  17772. this.$message({
  17773. message: "取消点赞成功",
  17774. type: "success",
  17775. });
  17776. this.selectSWorks();
  17777. this.selectStudent();
  17778. })
  17779. .catch((err) => {
  17780. console.error(err);
  17781. });
  17782. }
  17783. },
  17784. deleteComment(wid) {
  17785. this.$confirm("确定删除此评论吗?", "提示", {
  17786. confirmButtonText: "确定",
  17787. cancelButtonText: "取消",
  17788. type: "warning",
  17789. })
  17790. .then(() => {
  17791. let params = {
  17792. id: wid,
  17793. };
  17794. this.ajax
  17795. .get(this.$store.state.api + "deleteComment2", params)
  17796. .then((res) => {
  17797. this.$message({
  17798. message: "删除评论成功",
  17799. type: "success",
  17800. });
  17801. this.selectSWorks();
  17802. this.selectStudent();
  17803. })
  17804. .catch((err) => {
  17805. console.error(err);
  17806. });
  17807. })
  17808. .catch(() => {});
  17809. },
  17810. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  17811. this.commentIndexJson = {
  17812. toolIndex: toolIndex,
  17813. wIndex: wIndex,
  17814. gindex: gindex,
  17815. gid: gid,
  17816. };
  17817. this.commentDetail = [];
  17818. this.commentDialogVisible = true;
  17819. this.commentDetail = w;
  17820. if (w.works && w.type == 1) {
  17821. // this.pptImgUrl = "";
  17822. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17823. if (
  17824. a.indexOf(
  17825. w.works
  17826. .split(".")
  17827. [w.works.split(".").length - 1].toLocaleUpperCase()
  17828. ) != -1
  17829. ) {
  17830. let _uuurl = await this.checkLink(w.works);
  17831. console.log(_uuurl)
  17832. this.pptImgUrl =
  17833. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17834. this.showPDF = false;
  17835. } else if (
  17836. w.works
  17837. .split(".")
  17838. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17839. ) {
  17840. this.pptImgUrl = w.works;
  17841. this.showPDF = true;
  17842. }
  17843. } else if (w.works && w.type == 3) {
  17844. this.videoDetail = {};
  17845. this.playerOptions1.sources[0].src = w.works;
  17846. this.videoDetail = this.playerOptions1;
  17847. // this.videoVisible = true;
  17848. } else if (w.works && w.type == 4) {
  17849. this.eScore = JSON.parse(w.works);
  17850. this.rateJson =
  17851. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17852. this.taskCount
  17853. ].toolChoose[toolIndex].rateJson;
  17854. } else if (w.works && w.type == 10) {
  17855. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  17856. } else if (w.works && w.type == 13) {
  17857. this.wordJson =
  17858. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17859. this.taskCount
  17860. ].toolChoose[toolIndex].wordJson;
  17861. }
  17862. },
  17863. async openScore(w, index) {
  17864. this.wScore = 0;
  17865. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  17866. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  17867. this.commentDetail = [];
  17868. if(w.type == 17){
  17869. this.dialogVisibleENScore = true;
  17870. }else{
  17871. this.dialogVisibleScore = true;
  17872. }
  17873. this.commentDetail = w;
  17874. if (w.works && w.type == 1) {
  17875. this.pptImgUrl = "";
  17876. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17877. if (
  17878. a.indexOf(
  17879. w.works
  17880. .split(".")
  17881. [w.works.split(".").length - 1].toLocaleUpperCase()
  17882. ) != -1
  17883. ) {
  17884. let _uuurl = await this.checkLink(w.works);
  17885. console.log(_uuurl)
  17886. this.pptImgUrl =
  17887. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17888. this.showPDF = false;
  17889. } else if (
  17890. w.works
  17891. .split(".")
  17892. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17893. ) {
  17894. this.pptImgUrl = w.works;
  17895. this.showPDF = true;
  17896. }
  17897. } else if (w.works && w.type == 3) {
  17898. this.videoDetail = {};
  17899. this.playerOptions1.sources[0].src = w.works;
  17900. this.videoDetail = this.playerOptions1;
  17901. }else if(w.type == 17){
  17902. let englishVoiceJson = {}
  17903. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17904. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  17905. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  17906. .toolChoose[index].englishVoiceJson
  17907. : {};
  17908. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  17909. }
  17910. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17911. },
  17912. addComment(wid, uid, t,detail) {
  17913. if (this.commentText == "") {
  17914. this.$message.error("请输入评论");
  17915. return;
  17916. }
  17917. let params2 = [
  17918. {
  17919. wid: wid,
  17920. lid: uid,
  17921. t: t,
  17922. },
  17923. ];
  17924. this.ajax
  17925. .post(this.$store.state.api + "getComment", params2)
  17926. .then((res) => {
  17927. if (res.data[0].length > 0) {
  17928. this.$message.error("一个作业只能评论一条");
  17929. } else {
  17930. let params = [
  17931. {
  17932. wid: wid,
  17933. lid: uid,
  17934. t: t,
  17935. c: this.commentText,
  17936. },
  17937. ];
  17938. this.ajax
  17939. .post(this.$store.state.api + "insertComment", params)
  17940. .then((res) => {
  17941. this.$message({
  17942. message: "评论成功",
  17943. type: "success",
  17944. });
  17945. this.commentText = "";
  17946. this.selectSWorks();
  17947. this.selectStudent();
  17948. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  17949. })
  17950. .catch((err) => {
  17951. this.$message.error("评论失败");
  17952. console.error(err);
  17953. });
  17954. }
  17955. })
  17956. .catch((err) => {
  17957. // this.$message.error("评论失败");
  17958. console.error(err);
  17959. });
  17960. },
  17961. scoreWork(wid,sName) {
  17962. if (this.wScore == 0) {
  17963. this.$message.error("请评分");
  17964. return;
  17965. }
  17966. let params = [
  17967. {
  17968. wid: wid,
  17969. score: JSON.stringify({
  17970. wScore: this.wScore,
  17971. detail: this.scoreDetail,
  17972. }),
  17973. },
  17974. ];
  17975. this.ajax
  17976. .post(this.$store.state.api + "scoreWork", params)
  17977. .then((res) => {
  17978. this.$message({
  17979. message: "评分成功",
  17980. type: "success",
  17981. });
  17982. this.wScore = 0;
  17983. this.scoreDetail = "";
  17984. this.dialogVisibleScore = false;
  17985. this.selectSWorks();
  17986. this.selectStudent();
  17987. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  17988. })
  17989. .catch((err) => {
  17990. this.$message.error("评分失败");
  17991. console.error(err);
  17992. });
  17993. },
  17994. openXz(w, i) {
  17995. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17996. .taskJson[this.taskCount].toolChoose[i].selectJson
  17997. ? JSON.parse(
  17998. JSON.stringify(
  17999. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18000. this.taskCount
  18001. ].toolChoose[i].selectJson
  18002. )
  18003. )
  18004. : { url: "", select: [], answer: [] };
  18005. var a = w.works.split(",");
  18006. for (var k = 0; k < a.length; k++) {
  18007. a[k] = parseInt(a[k]);
  18008. }
  18009. this.selectAnswer = { answer: a, stu: w.sName };
  18010. this.isSelect = true;
  18011. this.dialogVisibleSelect = true;
  18012. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18013. },
  18014. openSen(w, i) {
  18015. this.sentenceList1 = JSON.parse(w.works);
  18016. this.sentenceList1.stuName = w.sName;
  18017. this.dialogVisibleSentence1 = true;
  18018. },
  18019. openPj(w, toolindex) {
  18020. this.isStar = true;
  18021. this.eScore = JSON.parse(w);
  18022. this.rateJson =
  18023. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18024. this.taskCount
  18025. ].toolChoose[toolindex].rateJson;
  18026. this.studentEvalDialogVisible = true;
  18027. },
  18028. openEnglishEva(id,i){
  18029. let params = {
  18030. wid: id
  18031. };
  18032. this.ajax
  18033. .get(this.$store.state.api + "selectEngWork", params)
  18034. .then((res) => {
  18035. this.evaEngJson.message = res.data[0][0];
  18036. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  18037. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  18038. .toolChoose[i].englishList;
  18039. this.engEvaDialogVisible = true;
  18040. })
  18041. .catch((err) => {
  18042. console.error(err);
  18043. });
  18044. },
  18045. deleteWorks(id) {
  18046. this.$confirm("确定删除此作业吗?", "提示", {
  18047. confirmButtonText: "确定",
  18048. cancelButtonText: "取消",
  18049. type: "warning",
  18050. })
  18051. .then(() => {
  18052. let params = [
  18053. {
  18054. id: id,
  18055. },
  18056. ];
  18057. this.ajax
  18058. .post(this.$store.state.api + "deleteCourseWork", params)
  18059. .then((res) => {
  18060. this.$message({
  18061. message: "删除成功",
  18062. type: "success",
  18063. });
  18064. this.selectStudent();
  18065. this.selectSWorks();
  18066. this.selectSLook();
  18067. })
  18068. .catch((err) => {
  18069. this.$message.error("网络异常");
  18070. console.error(err);
  18071. });
  18072. })
  18073. .catch(() => {});
  18074. },
  18075. noIsAi() {
  18076. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  18077. },
  18078. getLang() {
  18079. let lang = "";
  18080. if (this.languageSetting == 0) {
  18081. lang = "Chinese.";
  18082. } else if (this.languageSetting == 1) {
  18083. lang = "Traditional Chinese.";
  18084. } else if (this.languageSetting == 2) {
  18085. lang = "English.";
  18086. }
  18087. return lang;
  18088. },
  18089. selectSWorks(gindex) {
  18090. //教师查看全部作业
  18091. let params = {
  18092. cid: this.id,
  18093. s: this.courseType,
  18094. t: this.taskCount
  18095. };
  18096. this.ajax
  18097. .get(this.$store.state.api + "selectSWorks", params)
  18098. .then(res => {
  18099. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18100. this.taskCount
  18101. ].toolChoose;
  18102. var b = res.data[0];
  18103. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18104. var y = [
  18105. "AVI",
  18106. "NAVI",
  18107. "MPEG",
  18108. "ASF",
  18109. "MOV",
  18110. "WMV",
  18111. "3GP",
  18112. "RM",
  18113. "RMVB",
  18114. "FLV",
  18115. "F4V",
  18116. "H.264",
  18117. "H.265",
  18118. "REAL VIDEO",
  18119. "MKV",
  18120. "WebM",
  18121. "HDDVD",
  18122. "MP4",
  18123. "MPG",
  18124. "M4V",
  18125. "MGV",
  18126. "OGV",
  18127. "QTM",
  18128. "STR",
  18129. "AMC",
  18130. "DVX",
  18131. "EVO",
  18132. "DAT",
  18133. "OGG",
  18134. "OGM"
  18135. ];
  18136. var d = res.data[1];
  18137. var e = res.data[2];
  18138. var f = res.data[3];
  18139. let _worksStudent = [];
  18140. var _worksStudent2 = [];
  18141. for (var i = 0; i < a.length; i++) {
  18142. _worksStudent[i] = [];
  18143. _worksStudent2[i] = [];
  18144. if (
  18145. !this.isCloseList[i] ||
  18146. this.isCloseList[i].isClose == undefined
  18147. ) {
  18148. this.isCloseList[i] = { isClose: 0 };
  18149. }
  18150. this.groupStudent[i] = [];
  18151. this.groupStudentUid[i] = [];
  18152. if (this.isGroup) {
  18153. for (
  18154. var groupI = 0;
  18155. groupI < this.courseGroup.group.length;
  18156. groupI++
  18157. ) {
  18158. this.courseGroup.group[groupI].works[i] = [];
  18159. }
  18160. }
  18161. this.isWorksS[i] = [];
  18162. this.checkJson[i] = [];
  18163. if (a[i].tool[0] == 49) {
  18164. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  18165. this.groupStudent[i][gA] = [];
  18166. this.groupStudentUid[i][gA] = [];
  18167. _worksStudent[i][gA] = [];
  18168. _worksStudent2[i][gA] = [];
  18169. this.isCloseList[i][gA] = [];
  18170. for (var g = 0; g < f.length; g++) {
  18171. if (
  18172. f[g].ttype == 2 &&
  18173. this.tcid &&
  18174. this.arrayToArray(
  18175. f[g].classid ? f[g].classid.split(",") : [],
  18176. this.tcid.split(",")
  18177. ).length == 0
  18178. ) {
  18179. continue;
  18180. }
  18181. let _classId = this.arrayToArray(
  18182. this.courseDetail.juri
  18183. ? this.courseDetail.juri.split(",")
  18184. : [],
  18185. this.classId ? this.classId.split(",") : []
  18186. );
  18187. if (
  18188. gA == f[g].group &&
  18189. f[g].tool == i &&
  18190. (this.arrayToArray(
  18191. f[g].classid ? f[g].classid.split(",") : [],
  18192. this.tcid.split(",")
  18193. ).length !== 0 ||
  18194. this.arrayToArray(
  18195. f[g].classid ? f[g].classid.split(",") : [],
  18196. _classId
  18197. ).length !== 0 ||
  18198. (!this.tcid && this.tType == "1") ||
  18199. this.courseDetail.juri === "" ||
  18200. f[g].ttype == 1)
  18201. ) {
  18202. this.groupStudent[i][gA].push(f[g]);
  18203. this.groupStudentUid[i][gA].push(f[g].userid);
  18204. }
  18205. }
  18206. }
  18207. this.$forceUpdate();
  18208. }
  18209. for (var j = 0; j < b.length; j++) {
  18210. if (
  18211. b[j].ttype == 2 &&
  18212. this.tcid &&
  18213. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  18214. .length == 0
  18215. ) {
  18216. continue;
  18217. }
  18218. var likesCount = 0;
  18219. var commentCount = 0;
  18220. var isLikes = false;
  18221. var commentJson = [];
  18222. var likeJson = [];
  18223. var data = b[j];
  18224. if (i == b[j].tool) {
  18225. if (data.type == 2 && a[i].tool[0] == 4) {
  18226. // if(JSON.parse(data.content)[0].anwer){
  18227. var checkL =
  18228. JSON.parse(data.content)[0].anwer instanceof Array
  18229. ? JSON.parse(data.content)[0].anwer
  18230. : JSON.parse(data.content)[0].anwer.split(",");
  18231. for (var z = 0; z < checkL.length; z++) {
  18232. if (!this.checkJson[i][z]) {
  18233. this.checkJson[i].push({
  18234. checkCount: [],
  18235. checkPerson: [],
  18236. rightPerson: []
  18237. });
  18238. }
  18239. if (!this.checkJson[i][z].checkCount.length) {
  18240. this.checkJson[i][z].checkCount = [];
  18241. let _askItemCount = JSON.parse(data.content)[0].askJson
  18242. .askJson[z].askItem;
  18243. for (var aic = 0; aic < _askItemCount; aic++) {
  18244. this.checkJson[i][z].checkCount.push(0);
  18245. }
  18246. }
  18247. if (checkL[z] instanceof Array) {
  18248. if (
  18249. JSON.parse(data.content)[0]
  18250. .anwer.sort()
  18251. .join(",") == checkL[z].sort().join(",")
  18252. ) {
  18253. this.checkJson[i][z].rightPerson.push(data.name);
  18254. }
  18255. for (var q = 0; q < checkL[z].length; q++) {
  18256. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18257. ? this.checkJson[i][z].checkPerson[
  18258. parseInt(checkL[z][q])
  18259. ].push(data.name)
  18260. : (this.checkJson[i][z].checkPerson[
  18261. parseInt(checkL[z][q])
  18262. ] = [data.name]);
  18263. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18264. ? this.checkJson[i][z].checkCount[
  18265. parseInt(checkL[z][q])
  18266. ]++
  18267. : (this.checkJson[i][z].checkCount[
  18268. parseInt(checkL[z][q])
  18269. ] = 1);
  18270. }
  18271. } else {
  18272. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  18273. this.checkJson[i][z].rightPerson.push(data.name);
  18274. }
  18275. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18276. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18277. ? this.checkJson[i][z].checkPerson[
  18278. parseInt(checkL[z])
  18279. ].push(data.name)
  18280. : (this.checkJson[i][z].checkPerson[
  18281. parseInt(checkL[z])
  18282. ] = [data.name]);
  18283. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18284. ? this.checkJson[i][z].checkCount[
  18285. parseInt(checkL[z])
  18286. ]++
  18287. : (this.checkJson[i][z].checkCount[
  18288. parseInt(checkL[z])
  18289. ] = 1);
  18290. }
  18291. }
  18292. }
  18293. } else if (data.type == 8 && a[i].tool[0] == 45) {
  18294. var checkL = JSON.parse(data.content)[0].anwer;
  18295. for (var z = 0; z < checkL.length; z++) {
  18296. if (!this.checkJson[i][z]) {
  18297. this.checkJson[i].push({
  18298. checkCount: [],
  18299. checkPerson: [],
  18300. rightPerson: []
  18301. });
  18302. }
  18303. if (!this.checkJson[i][z].checkCount.length) {
  18304. this.checkJson[i][z].checkCount = [];
  18305. let _askItemCount = JSON.parse(data.content)[0].testJson
  18306. .testJson[z].testItem;
  18307. for (var aic = 0; aic < _askItemCount; aic++) {
  18308. this.checkJson[i][z].checkCount.push(0);
  18309. }
  18310. }
  18311. if (checkL[z] instanceof Array) {
  18312. if (
  18313. JSON.parse(data.content)[0]
  18314. .testJson.testJson[z].answer.sort()
  18315. .join(",") == checkL[z].sort().join(",")
  18316. ) {
  18317. this.checkJson[i][z].rightPerson.push(data.name);
  18318. }
  18319. for (var q = 0; q < checkL[z].length; q++) {
  18320. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18321. ? this.checkJson[i][z].checkPerson[
  18322. parseInt(checkL[z][q])
  18323. ].push(data.name)
  18324. : (this.checkJson[i][z].checkPerson[
  18325. parseInt(checkL[z][q])
  18326. ] = [data.name]);
  18327. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18328. ? this.checkJson[i][z].checkCount[
  18329. parseInt(checkL[z][q])
  18330. ]++
  18331. : (this.checkJson[i][z].checkCount[
  18332. parseInt(checkL[z][q])
  18333. ] = 1);
  18334. }
  18335. } else {
  18336. if (
  18337. JSON.parse(data.content)[0].testJson.testJson[z]
  18338. .answer == checkL[z]
  18339. ) {
  18340. this.checkJson[i][z].rightPerson.push(data.name);
  18341. }
  18342. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18343. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18344. ? this.checkJson[i][z].checkPerson[
  18345. parseInt(checkL[z])
  18346. ].push(data.name)
  18347. : (this.checkJson[i][z].checkPerson[
  18348. parseInt(checkL[z])
  18349. ] = [data.name]);
  18350. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18351. ? this.checkJson[i][z].checkCount[
  18352. parseInt(checkL[z])
  18353. ]++
  18354. : (this.checkJson[i][z].checkCount[
  18355. parseInt(checkL[z])
  18356. ] = 1);
  18357. }
  18358. }
  18359. }
  18360. } else if (data.type == 9 && a[i].tool[0] == 47) {
  18361. var checkL = JSON.parse(data.content);
  18362. for (var z = 0; z < checkL.length; z++) {
  18363. if (!this.checkJson[i][z]) {
  18364. this.checkJson[i].push({
  18365. checkCount: [],
  18366. checkPerson: [],
  18367. rightPerson: []
  18368. });
  18369. }
  18370. this.checkJson[i][z].checkPerson.push(data.name);
  18371. if (
  18372. checkL[z].chooseSenList.toString() ==
  18373. checkL[z].rightAnswer.toString()
  18374. ) {
  18375. this.checkJson[i][z].rightPerson.push(data.name);
  18376. }
  18377. }
  18378. }
  18379. for (var k = 0; k < d.length; k++) {
  18380. //点赞
  18381. if (d[k].workId == b[j].id) {
  18382. likesCount++;
  18383. likeJson.push(d[k]);
  18384. if (d[k].likesId == this.userid) {
  18385. isLikes = true;
  18386. }
  18387. }
  18388. }
  18389. for (var l = 0; l < e.length; l++) {
  18390. //评论
  18391. if (e[l].workId == b[j].id) {
  18392. if (e[l].comment != "") {
  18393. commentCount++;
  18394. commentJson.push({
  18395. commentText: e[l].comment,
  18396. commentTime: e[l].commentTime,
  18397. commentPeople: e[l].commentPeople,
  18398. userid: e[l].userid,
  18399. wid: e[l].id
  18400. });
  18401. }
  18402. }
  18403. }
  18404. if (
  18405. (b[j].type == 1 ||
  18406. b[j].type == 4 ||
  18407. b[j].type == 5 ||
  18408. b[j].type == 6 ||
  18409. b[j].type == 12 ||
  18410. b[j].type == 7) &&
  18411. a[i].tool[0] != 15 &&
  18412. a[i].tool[0] != 4 &&
  18413. a[i].tool[0] != 45 &&
  18414. a[i].tool[0] != 50 &&
  18415. a[i].tool[0] != 32 &&
  18416. a[i].tool[0] != 57 &&
  18417. a[i].tool[0] != 52
  18418. ) {
  18419. if (
  18420. c.indexOf(
  18421. b[j].content
  18422. .split(".")
  18423. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18424. ) != -1 &&
  18425. a[i].tool[0] == 16 &&
  18426. b[j].atool != 50
  18427. ) {
  18428. let _works = {
  18429. userid: b[j].userid,
  18430. ateacher: b[j].ateacher,
  18431. wid: b[j].id,
  18432. works: b[j].content,
  18433. sName: b[j].name,
  18434. type: 1,
  18435. ttype: b[j].ttype,
  18436. time: b[j].time,
  18437. score: b[j].score,
  18438. img: b[j].img,
  18439. likesCount: likesCount,
  18440. commentCount: commentCount,
  18441. isLikes: isLikes,
  18442. commentJson: commentJson,
  18443. likeJson: likeJson
  18444. };
  18445. if (this.isGroup) {
  18446. let isGw = 1;
  18447. for (
  18448. var groupI = 0;
  18449. groupI < this.courseGroup.group.length;
  18450. groupI++
  18451. ) {
  18452. let gid = this.courseGroup.group[groupI].id;
  18453. if (
  18454. this.courseGroupStudentUid[gid].indexOf(
  18455. b[j].userid
  18456. ) != -1
  18457. ) {
  18458. isGw = 2;
  18459. this.courseGroup.group[groupI].works[i].push(_works);
  18460. break;
  18461. }
  18462. }
  18463. if (isGw == 1) {
  18464. _worksStudent[i].push(_works);
  18465. }
  18466. } else {
  18467. _worksStudent[i].push(_works);
  18468. }
  18469. _worksStudent2[i].push(_works);
  18470. this.isWorksS[i].push({
  18471. uid: b[j].userid,
  18472. sName: b[j].name
  18473. });
  18474. } else if (
  18475. y.indexOf(
  18476. b[j].content
  18477. .split(".")
  18478. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18479. ) != -1 &&
  18480. a[i].tool[0] == 16 &&
  18481. b[j].atool != 50
  18482. ) {
  18483. let _works = {
  18484. userid: b[j].userid,
  18485. ateacher: b[j].ateacher,
  18486. wid: b[j].id,
  18487. works: b[j].content,
  18488. sName: b[j].name,
  18489. type: 3,
  18490. ttype: b[j].ttype,
  18491. time: b[j].time,
  18492. score: b[j].score,
  18493. img: b[j].img,
  18494. likesCount: likesCount,
  18495. commentCount: commentCount,
  18496. isLikes: isLikes,
  18497. commentJson: commentJson,
  18498. likeJson: likeJson
  18499. };
  18500. if (this.isGroup) {
  18501. let isGw = 1;
  18502. for (
  18503. var groupI = 0;
  18504. groupI < this.courseGroup.group.length;
  18505. groupI++
  18506. ) {
  18507. let gid = this.courseGroup.group[groupI].id;
  18508. if (
  18509. this.courseGroupStudentUid[gid].indexOf(
  18510. b[j].userid
  18511. ) != -1
  18512. ) {
  18513. isGw = 2;
  18514. this.courseGroup.group[groupI].works[i].push(_works);
  18515. break;
  18516. }
  18517. }
  18518. if (isGw == 1) {
  18519. _worksStudent[i].push(_works);
  18520. }
  18521. } else {
  18522. _worksStudent[i].push(_works);
  18523. }
  18524. _worksStudent2[i].push(_works);
  18525. this.isWorksS[i].push({
  18526. uid: b[j].userid,
  18527. sName: b[j].name
  18528. });
  18529. } else if (b[j].type == 6 && b[j].atool != 50) {
  18530. let _works = {
  18531. userid: b[j].userid,
  18532. ateacher: b[j].ateacher,
  18533. wid: b[j].id,
  18534. works: b[j].content,
  18535. sName: b[j].name,
  18536. type: 4,
  18537. ttype: b[j].ttype,
  18538. time: b[j].time,
  18539. score: b[j].score,
  18540. img: b[j].img,
  18541. likesCount: likesCount,
  18542. commentCount: commentCount,
  18543. isLikes: isLikes,
  18544. commentJson: commentJson,
  18545. likeJson: likeJson
  18546. };
  18547. _worksStudent[i].push(_works);
  18548. _worksStudent2[i].push(_works);
  18549. this.isWorksS[i].push({
  18550. uid: b[j].userid,
  18551. sName: b[j].name
  18552. });
  18553. } else if (b[j].type == 7 && b[j].atool != 50) {
  18554. let _work = {
  18555. userid: b[j].userid,
  18556. ateacher: b[j].ateacher,
  18557. wid: b[j].id,
  18558. works: b[j].content,
  18559. sName: b[j].name,
  18560. type: 5,
  18561. ttype: b[j].ttype,
  18562. time: b[j].time,
  18563. score: b[j].score,
  18564. img: b[j].img,
  18565. likesCount: likesCount,
  18566. commentCount: commentCount,
  18567. isLikes: isLikes,
  18568. commentJson: commentJson,
  18569. likeJson: likeJson
  18570. };
  18571. _worksStudent[i].push(_work);
  18572. _worksStudent2[i].push(_work);
  18573. this.isWorksS[i].push({
  18574. uid: b[j].userid,
  18575. sName: b[j].name
  18576. });
  18577. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18578. let _works = {
  18579. userid: b[j].userid,
  18580. ateacher: b[j].ateacher,
  18581. wid: b[j].id,
  18582. works: b[j].content,
  18583. sName: b[j].name,
  18584. type: 12,
  18585. ttype: b[j].ttype,
  18586. time: b[j].time,
  18587. score: b[j].score,
  18588. img: b[j].img,
  18589. likesCount: likesCount,
  18590. commentCount: commentCount,
  18591. isLikes: isLikes,
  18592. commentJson: commentJson,
  18593. likeJson: likeJson
  18594. };
  18595. if (this.isGroup) {
  18596. let isGw = 1;
  18597. for (
  18598. var groupI = 0;
  18599. groupI < this.courseGroup.group.length;
  18600. groupI++
  18601. ) {
  18602. let gid = this.courseGroup.group[groupI].id;
  18603. if (
  18604. this.courseGroupStudentUid[gid].indexOf(
  18605. b[j].userid
  18606. ) != -1
  18607. ) {
  18608. isGw = 2;
  18609. this.courseGroup.group[groupI].works[i].push(_works);
  18610. break;
  18611. }
  18612. }
  18613. if (isGw == 1) {
  18614. _worksStudent[i].push(_works);
  18615. }
  18616. } else {
  18617. _worksStudent[i].push(_works);
  18618. }
  18619. _worksStudent2[i].push(_works);
  18620. this.isWorksS[i].push({
  18621. uid: b[j].userid,
  18622. sName: b[j].name
  18623. });
  18624. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18625. let _works = {
  18626. userid: b[j].userid,
  18627. ateacher: b[j].ateacher,
  18628. wid: b[j].id,
  18629. works: b[j].content,
  18630. sName: b[j].name,
  18631. type: 0,
  18632. ttype: b[j].ttype,
  18633. time: b[j].time,
  18634. score: b[j].score,
  18635. img: b[j].img,
  18636. likesCount: likesCount,
  18637. commentCount: commentCount,
  18638. isLikes: isLikes,
  18639. commentJson: commentJson,
  18640. likeJson: likeJson
  18641. };
  18642. if (this.isGroup) {
  18643. let isGw = 1;
  18644. for (
  18645. var groupI = 0;
  18646. groupI < this.courseGroup.group.length;
  18647. groupI++
  18648. ) {
  18649. let gid = this.courseGroup.group[groupI].id;
  18650. if (
  18651. this.courseGroupStudentUid[gid].indexOf(
  18652. b[j].userid
  18653. ) != -1
  18654. ) {
  18655. isGw = 2;
  18656. this.courseGroup.group[groupI].works[i].push(_works);
  18657. break;
  18658. }
  18659. }
  18660. if (isGw == 1) {
  18661. _worksStudent[i].push(_works);
  18662. }
  18663. } else {
  18664. _worksStudent[i].push(_works);
  18665. }
  18666. _worksStudent2[i].push(_works);
  18667. this.isWorksS[i].push({
  18668. uid: b[j].userid,
  18669. sName: b[j].name
  18670. });
  18671. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18672. let _works = {
  18673. userid: b[j].userid,
  18674. ateacher: b[j].ateacher,
  18675. wid: b[j].id,
  18676. works: b[j].content,
  18677. sName: b[j].name,
  18678. type: 0,
  18679. ttype: b[j].ttype,
  18680. time: b[j].time,
  18681. score: b[j].score,
  18682. img: b[j].img,
  18683. likesCount: likesCount,
  18684. commentCount: commentCount,
  18685. isLikes: isLikes,
  18686. commentJson: commentJson,
  18687. likeJson: likeJson
  18688. };
  18689. if (this.isGroup) {
  18690. let isGw = 1;
  18691. for (
  18692. var groupI = 0;
  18693. groupI < this.courseGroup.group.length;
  18694. groupI++
  18695. ) {
  18696. let gid = this.courseGroup.group[groupI].id;
  18697. if (
  18698. this.courseGroupStudentUid[gid].indexOf(
  18699. b[j].userid
  18700. ) != -1
  18701. ) {
  18702. isGw = 2;
  18703. this.courseGroup.group[groupI].works[i].push(_works);
  18704. break;
  18705. }
  18706. }
  18707. if (isGw == 1) {
  18708. _worksStudent[i].push(_works);
  18709. }
  18710. } else {
  18711. _worksStudent[i].push(_works);
  18712. }
  18713. _worksStudent2[i].push(_works);
  18714. this.isWorksS[i].push({
  18715. uid: b[j].userid,
  18716. sName: b[j].name
  18717. });
  18718. }
  18719. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18720. let _works = {
  18721. userid: b[j].userid,
  18722. ateacher: b[j].ateacher,
  18723. wid: b[j].id,
  18724. works: b[j].content,
  18725. sName: b[j].name,
  18726. type: 2,
  18727. ttype: b[j].ttype,
  18728. time: b[j].time,
  18729. score: b[j].score,
  18730. img: b[j].img,
  18731. likesCount: likesCount,
  18732. commentCount: commentCount,
  18733. isLikes: isLikes,
  18734. commentJson: commentJson,
  18735. likeJson: likeJson
  18736. };
  18737. if (this.isGroup) {
  18738. let isGw = 1;
  18739. for (
  18740. var groupI = 0;
  18741. groupI < this.courseGroup.group.length;
  18742. groupI++
  18743. ) {
  18744. let gid = this.courseGroup.group[groupI].id;
  18745. if (
  18746. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  18747. -1
  18748. ) {
  18749. isGw = 2;
  18750. this.courseGroup.group[groupI].works[i].push(_works);
  18751. break;
  18752. }
  18753. }
  18754. if (isGw == 1) {
  18755. _worksStudent[i].push(_works);
  18756. }
  18757. } else {
  18758. _worksStudent[i].push(_works);
  18759. }
  18760. _worksStudent2[i].push(_works);
  18761. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18762. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18763. //问卷
  18764. let _work = {
  18765. userid: b[j].userid,
  18766. ateacher: b[j].ateacher,
  18767. wid: b[j].id,
  18768. works: b[j].content,
  18769. sName: b[j].name,
  18770. type: 2,
  18771. ttype: b[j].ttype,
  18772. time: b[j].time,
  18773. score: b[j].score,
  18774. img: b[j].img,
  18775. likesCount: likesCount,
  18776. commentCount: commentCount,
  18777. isLikes: isLikes,
  18778. commentJson: commentJson,
  18779. likeJson: likeJson
  18780. };
  18781. _worksStudent[i].push(_work);
  18782. _worksStudent2[i].push(_work);
  18783. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18784. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18785. //选择题
  18786. let _work = {
  18787. userid: b[j].userid,
  18788. ateacher: b[j].ateacher,
  18789. wid: b[j].id,
  18790. works: b[j].content,
  18791. sName: b[j].name,
  18792. type: 8,
  18793. ttype: b[j].ttype,
  18794. time: b[j].time,
  18795. score: b[j].score,
  18796. img: b[j].img,
  18797. likesCount: likesCount,
  18798. commentCount: commentCount,
  18799. isLikes: isLikes,
  18800. commentJson: commentJson,
  18801. likeJson: likeJson
  18802. };
  18803. _worksStudent[i].push(_work);
  18804. _worksStudent2[i].push(_work);
  18805. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18806. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  18807. //选择题
  18808. let _work = {
  18809. userid: b[j].userid,
  18810. ateacher: b[j].ateacher,
  18811. wid: b[j].id,
  18812. works: b[j].content,
  18813. sName: b[j].name,
  18814. type: 9,
  18815. ttype: b[j].ttype,
  18816. time: b[j].time,
  18817. score: b[j].score,
  18818. img: b[j].img,
  18819. likesCount: likesCount,
  18820. commentCount: commentCount,
  18821. isLikes: isLikes,
  18822. commentJson: commentJson,
  18823. likeJson: likeJson
  18824. };
  18825. _worksStudent[i].push(_work);
  18826. _worksStudent2[i].push(_work);
  18827. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18828. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  18829. //选择题
  18830. let _work = {
  18831. userid: b[j].userid,
  18832. ateacher: b[j].ateacher,
  18833. wid: b[j].id,
  18834. works: b[j].content,
  18835. sName: b[j].name,
  18836. type: 10,
  18837. ttype: b[j].ttype,
  18838. time: b[j].time,
  18839. score: b[j].score,
  18840. img: b[j].img,
  18841. likesCount: likesCount,
  18842. commentCount: commentCount,
  18843. isLikes: isLikes,
  18844. commentJson: commentJson,
  18845. likeJson: likeJson
  18846. };
  18847. _worksStudent[i].push(_work);
  18848. _worksStudent2[i].push(_work);
  18849. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18850. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18851. //选择题
  18852. let _work = {
  18853. userid: b[j].userid,
  18854. ateacher: b[j].ateacher,
  18855. wid: b[j].id,
  18856. works: b[j].content,
  18857. sName: b[j].name,
  18858. type: 13,
  18859. ttype: b[j].ttype,
  18860. time: b[j].time,
  18861. score: b[j].score,
  18862. img: b[j].img,
  18863. likesCount: likesCount,
  18864. commentCount: commentCount,
  18865. isLikes: isLikes,
  18866. commentJson: commentJson,
  18867. likeJson: likeJson
  18868. };
  18869. _worksStudent[i].push(_work);
  18870. _worksStudent2[i].push(_work);
  18871. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18872. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18873. //选择题
  18874. let _work = {
  18875. userid: b[j].userid,
  18876. ateacher: b[j].ateacher,
  18877. wid: b[j].id,
  18878. works: b[j].content,
  18879. sName: b[j].name,
  18880. type: 16,
  18881. ttype: b[j].ttype,
  18882. time: b[j].time,
  18883. score: b[j].score,
  18884. img: b[j].img,
  18885. likesCount: likesCount,
  18886. commentCount: commentCount,
  18887. isLikes: isLikes,
  18888. commentJson: commentJson,
  18889. aiCode: b[j].aiCode,
  18890. teacherCode: b[j].teacherCode,
  18891. likeJson: likeJson
  18892. };
  18893. _worksStudent[i].push(_work);
  18894. _worksStudent2[i].push(_work);
  18895. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18896. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18897. //选择题
  18898. let _work = {
  18899. userid: b[j].userid,
  18900. ateacher: b[j].ateacher,
  18901. wid: b[j].id,
  18902. works: b[j].content,
  18903. sName: b[j].name,
  18904. type: 17,
  18905. ttype: b[j].ttype,
  18906. time: b[j].time,
  18907. score: b[j].score,
  18908. img: b[j].img,
  18909. likesCount: likesCount,
  18910. commentCount: commentCount,
  18911. isLikes: isLikes,
  18912. commentJson: commentJson,
  18913. likeJson: likeJson
  18914. };
  18915. _worksStudent[i].push(_work);
  18916. _worksStudent2[i].push(_work);
  18917. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18918. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18919. //交互视频
  18920. let _work = {
  18921. userid: b[j].userid,
  18922. ateacher: b[j].ateacher,
  18923. wid: b[j].id,
  18924. works: b[j].content,
  18925. sName: b[j].name,
  18926. type: 14,
  18927. ttype: b[j].ttype,
  18928. time: b[j].time,
  18929. score: b[j].score,
  18930. img: b[j].img,
  18931. likesCount: likesCount,
  18932. commentCount: commentCount,
  18933. isLikes: isLikes,
  18934. commentJson: commentJson,
  18935. likeJson: likeJson
  18936. };
  18937. _worksStudent[i].push(_work);
  18938. _worksStudent2[i].push(_work);
  18939. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18940. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  18941. let _gindex = JSON.parse(b[j].content);
  18942. if (
  18943. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  18944. b[j].userid
  18945. ) != -1
  18946. ) {
  18947. let _work = {
  18948. userid: b[j].userid,
  18949. ateacher: b[j].ateacher,
  18950. wid: b[j].id,
  18951. works: _gindex.url,
  18952. sName: b[j].name,
  18953. type: _gindex.type,
  18954. ttype: b[j].ttype,
  18955. time: b[j].time,
  18956. score: b[j].score,
  18957. img: b[j].img,
  18958. likesCount: likesCount,
  18959. commentCount: commentCount,
  18960. isLikes: isLikes,
  18961. commentJson: commentJson,
  18962. likeJson: likeJson
  18963. };
  18964. _worksStudent[i][_gindex.groupIndex].push(_work);
  18965. _worksStudent2[i][_gindex.groupIndex].push(_work);
  18966. }
  18967. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18968. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  18969. let _work = {
  18970. userid: b[j].userid,
  18971. ateacher: b[j].ateacher,
  18972. wid: b[j].id,
  18973. works: b[j].content,
  18974. sName: b[j].name ? b[j].name : b[j].userid,
  18975. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  18976. ttype: b[j].ttype,
  18977. time: b[j].time,
  18978. score: b[j].score,
  18979. img: b[j].img,
  18980. likesCount: likesCount,
  18981. commentCount: commentCount,
  18982. isLikes: isLikes,
  18983. commentJson: commentJson,
  18984. likeJson: likeJson
  18985. };
  18986. _worksStudent[i].push(_work);
  18987. _worksStudent2[i].push(_work);
  18988. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18989. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  18990. let _work = {
  18991. userid: b[j].userid,
  18992. ateacher: b[j].ateacher,
  18993. wid: b[j].id,
  18994. works: b[j].content,
  18995. sName: b[j].name ? b[j].name : b[j].userid,
  18996. type: 12,
  18997. ttype: b[j].ttype,
  18998. time: b[j].time,
  18999. score: b[j].score,
  19000. img: b[j].img,
  19001. likesCount: likesCount,
  19002. commentCount: commentCount,
  19003. isLikes: isLikes,
  19004. commentJson: commentJson,
  19005. likeJson: likeJson
  19006. };
  19007. _worksStudent[i].push(_work);
  19008. _worksStudent2[i].push(_work);
  19009. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19010. } else if (
  19011. a[i].tool[0] == 57 &&
  19012. b[j].atool == 57 &&
  19013. b[j].type == 12
  19014. ) {
  19015. let _work = {
  19016. userid: b[j].userid,
  19017. ateacher: b[j].ateacher,
  19018. wid: b[j].id,
  19019. works: b[j].content,
  19020. sName: b[j].name ? b[j].name : b[j].userid,
  19021. type: 12,
  19022. ttype: b[j].ttype,
  19023. time: b[j].time,
  19024. score: b[j].score,
  19025. img: b[j].img,
  19026. likesCount: likesCount,
  19027. commentCount: commentCount,
  19028. isLikes: isLikes,
  19029. commentJson: commentJson,
  19030. likeJson: likeJson
  19031. };
  19032. _worksStudent[i].push(_work);
  19033. _worksStudent2[i].push(_work);
  19034. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19035. } else if (
  19036. a[i].tool[0] == 57 &&
  19037. b[j].atool == 57 &&
  19038. b[j].type == 15
  19039. ) {
  19040. let _work = {
  19041. userid: b[j].userid,
  19042. ateacher: b[j].ateacher,
  19043. wid: b[j].id,
  19044. works: b[j].content,
  19045. sName: b[j].name ? b[j].name : b[j].userid,
  19046. type: 15,
  19047. ttype: b[j].ttype,
  19048. time: b[j].time,
  19049. score: b[j].score,
  19050. img: b[j].img,
  19051. likesCount: likesCount,
  19052. commentCount: commentCount,
  19053. isLikes: isLikes,
  19054. commentJson: commentJson,
  19055. likeJson: likeJson
  19056. };
  19057. _worksStudent[i].push(_work);
  19058. _worksStudent2[i].push(_work);
  19059. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19060. }
  19061. }
  19062. }
  19063. if (_worksStudent[i] && _worksStudent[i].length) {
  19064. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  19065. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19066. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19067. var scoreA = parseFloat(jscoreA);
  19068. var scoreB = parseFloat(jscoreB);
  19069. if (scoreA == scoreB) {
  19070. return b.likesCount - a.likesCount;
  19071. }
  19072. return scoreB - scoreA;
  19073. });
  19074. if (this.isGroup) {
  19075. for (
  19076. var groupI = 0;
  19077. groupI < this.courseGroup.group.length;
  19078. groupI++
  19079. ) {
  19080. this.courseGroup.group[groupI].works[
  19081. i
  19082. ] = this.courseGroup.group[groupI].works[i].sort(function(
  19083. a,
  19084. b
  19085. ) {
  19086. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19087. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19088. var scoreA = parseFloat(jscoreA);
  19089. var scoreB = parseFloat(jscoreB);
  19090. if (scoreA == scoreB) {
  19091. return b.likesCount - a.likesCount;
  19092. }
  19093. return scoreB - scoreA;
  19094. });
  19095. }
  19096. }
  19097. }
  19098. }
  19099. this.timeWorkList = _worksStudent2;
  19100. for (var i = 0; i < a.length; i++) {
  19101. for (var j = 0; j < b.length; j++) {
  19102. var data = b[j];
  19103. if (i == b[j].tool) {
  19104. if (data.type == 2 || data.type == 8) {
  19105. for (var z = 0; z < this.checkJson[i].length; z++) {
  19106. this.checkJson[i][z].checkPerent = [];
  19107. this.checkJson[i][z].right = Math.round(
  19108. (this.checkJson[i][z].rightPerson.length /
  19109. parseInt(_worksStudent[i].length)) *
  19110. 100
  19111. );
  19112. let aaaa = this.checkJson[i][z];
  19113. for (
  19114. var k = 0;
  19115. k < this.checkJson[i][z].checkCount.length;
  19116. k++
  19117. ) {
  19118. this.checkJson[i][z].checkPerent.push(
  19119. Math.round(
  19120. (this.checkJson[i][z].checkCount[k] /
  19121. parseInt(_worksStudent[i].length)) *
  19122. 100
  19123. )
  19124. );
  19125. }
  19126. }
  19127. } else if (data.type == 9) {
  19128. for (var z = 0; z < this.checkJson[i].length; z++) {
  19129. this.checkJson[i][z].checkPerent = [];
  19130. this.checkJson[i][z].right = Math.round(
  19131. (this.checkJson[i][z].rightPerson.length /
  19132. this.checkJson[i][z].checkPerson.length) *
  19133. 100
  19134. );
  19135. }
  19136. }
  19137. }
  19138. }
  19139. }
  19140. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  19141. this.joinGroup(gindex);
  19142. }
  19143. this.worksStudent = _worksStudent;
  19144. if (
  19145. JSON.stringify(this.worksStudentCopy) !=
  19146. JSON.stringify(this.worksStudent)
  19147. ) {
  19148. console.log("88888999999");
  19149. this.worksStudentCopy = this.worksStudent;
  19150. this.AIloading = [];
  19151. this.loopLoading = [];
  19152. this.worksStudent.forEach((e, index) => {
  19153. this.loopLoading.push({ loading: false });
  19154. this.AIloading.push([]);
  19155. e.forEach(k => {
  19156. this.AIloading[index].push({ loading: false, sco: 0 });
  19157. });
  19158. });
  19159. this.refreshAssembly();
  19160. }
  19161. this.selectWorksStudent();
  19162. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  19163. this.$nextTick(() => {
  19164. setTimeout(() => {
  19165. setTimeout(() => {
  19166. this.panToolHeight("tool-" + ci);
  19167. }, 500);
  19168. }, 0);
  19169. });
  19170. }
  19171. })
  19172. .catch(err => {
  19173. console.error(err);
  19174. });
  19175. },
  19176. pngToWhiteBg(file) {
  19177. const _file = file;
  19178. let read = new FileReader();
  19179. read.readAsDataURL(file); // 文件转base64
  19180. return new Promise((resolve, reject) => {
  19181. read.onload = (e) => {
  19182. let img = new Image();
  19183. img.src = e.target.result;
  19184. img.onload = async () => {
  19185. // 生成canvas
  19186. let canvas = document.createElement("canvas");
  19187. let context = canvas.getContext("2d");
  19188. // 绘制图片到canvas上
  19189. canvas.width = img.width;
  19190. canvas.height = img.height;
  19191. // 在canvas绘制前填充白色背景
  19192. context.fillStyle = "#fff";
  19193. context.fillRect(0, 0, canvas.width, canvas.height);
  19194. context.drawImage(img, 0, 0);
  19195. let base64 = canvas.toDataURL(file["type"], 1);
  19196. let newFile = this.dataUrlToFile(base64, _file);
  19197. resolve(newFile);
  19198. };
  19199. };
  19200. });
  19201. },
  19202. dataUrlToFile(dataurl, file) {
  19203. let arr = dataurl.split(","),
  19204. mime = arr[0].match(/:(.*?);/)[1],
  19205. bstr = atob(arr[1]),
  19206. n = bstr.length,
  19207. u8arr = new Uint8Array(n);
  19208. while (n--) {
  19209. u8arr[n] = bstr.charCodeAt(n);
  19210. }
  19211. // return new Blob([u8arr], { type: mime });
  19212. return new File([new Blob([u8arr], { type: mime })], file.name, {
  19213. type: mime,
  19214. });
  19215. },
  19216. async beforeUpload1(event, type, i) {
  19217. // this.$message.success('进入上传')
  19218. var file = "";
  19219. if (type == 5) {
  19220. file = event;
  19221. } else {
  19222. file = event.target.files[0];
  19223. }
  19224. var credentials = {
  19225. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19226. secretAccessKey: "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",
  19227. }; //秘钥形式的登录上传
  19228. window.AWS.config.update(credentials);
  19229. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19230. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19231. var _this = this;
  19232. _this.progress = 0;
  19233. _this.proVisible = true;
  19234. _this.isFinishSize = 0;
  19235. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  19236. var b = [
  19237. "DOC",
  19238. "DOCX",
  19239. "DOCM",
  19240. "DOTM",
  19241. "DOTX",
  19242. "PPTX",
  19243. "PPSX",
  19244. "PPT",
  19245. "PPS",
  19246. "PPTM",
  19247. "POTM",
  19248. "PPAM",
  19249. "POTX",
  19250. "PPSM",
  19251. ];
  19252. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19253. var photoA = [
  19254. "BMP",
  19255. "GIF",
  19256. "PNG",
  19257. "JPEG",
  19258. "JPEG",
  19259. "JPG",
  19260. "TIF",
  19261. "PCX",
  19262. "TGA",
  19263. "EXIF",
  19264. "FPX",
  19265. "SVG",
  19266. "APNG",
  19267. ];
  19268. // if (
  19269. // b.indexOf(
  19270. // file.name
  19271. // .split(".")
  19272. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19273. // ) != -1
  19274. // ) {
  19275. // if (file.size / 1024 / 1024 > 10) {
  19276. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  19277. // return;
  19278. // }
  19279. // } else if (
  19280. // excelA.indexOf(
  19281. // file.name
  19282. // .split(".")
  19283. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19284. // ) != "-1"
  19285. // ) {
  19286. // if (file.size / 1024 / 1024 > 5) {
  19287. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  19288. // return;
  19289. // }
  19290. // }
  19291. if (
  19292. photoA.indexOf(
  19293. file.name
  19294. .split(".")
  19295. [file.name.split(".").length - 1].toLocaleUpperCase()
  19296. ) != -1 &&
  19297. type != 4
  19298. ) {
  19299. // const blob = await imageConversion.compress(file, 0.8)
  19300. file = await this.pngToWhiteBg(file);
  19301. const blob = await imageConversion.compressAccurately(file, 256);
  19302. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19303. file = new File([blob], file.name, { type: file.type });
  19304. }
  19305. if (file) {
  19306. var params = {
  19307. Key:
  19308. file.name.split(".")[0] +
  19309. new Date().getTime() +
  19310. "." +
  19311. file.name.split(".")[file.name.split(".").length - 1],
  19312. ContentType: file.type,
  19313. Body: file,
  19314. "Access-Control-Allow-Credentials": "*",
  19315. ACL: "public-read",
  19316. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19317. var options = {
  19318. // partSize: 2048 * 1024 * 1024,
  19319. partSize: 1024 * 1024 * 1024,
  19320. queueSize: 2,
  19321. leavePartsOnError: true,
  19322. };
  19323. bucket
  19324. .upload(params, options)
  19325. .on("httpUploadProgress", function (evt) {
  19326. //这里可以写进度条
  19327. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19328. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  19329. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  19330. })
  19331. .send(function (err, data) {
  19332. _this.progress = 100;
  19333. _this.isFinishSize = _this.isAllSize;
  19334. setTimeout(() => {
  19335. _this.proVisible = false;
  19336. }, 1000);
  19337. if (err) {
  19338. var a = _this.$refs.upload1.uploadFiles;
  19339. a.splice(a.length - 1, a.length);
  19340. _this.$message.error("上传失败");
  19341. } else {
  19342. // _this.$message.success('上传成功')
  19343. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19344. var c = [
  19345. "AVI",
  19346. "NAVI",
  19347. "MPEG",
  19348. "ASF",
  19349. "MOV",
  19350. "WMV",
  19351. "3GP",
  19352. "RM",
  19353. "RMVB",
  19354. "FLV",
  19355. "F4V",
  19356. "H.264",
  19357. "H.265",
  19358. "REAL VIDEO",
  19359. "MKV",
  19360. "WebM",
  19361. "HDDVD",
  19362. "MP4",
  19363. "MPG",
  19364. "M4V",
  19365. "MGV",
  19366. "OGV",
  19367. "QTM",
  19368. "STR",
  19369. "AMC",
  19370. "DVX",
  19371. "EVO",
  19372. "DAT",
  19373. "OGG",
  19374. "OGM",
  19375. ];
  19376. if (type == 1) {
  19377. _this.studyJuri[0].cover.push({
  19378. name: file.name,
  19379. url: data.Location,
  19380. uid: file.uid,
  19381. });
  19382. if (
  19383. c.indexOf(
  19384. _this.studyJuri[0].cover[0].url
  19385. .split(".")
  19386. [
  19387. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19388. ].toLocaleUpperCase()
  19389. ) != -1
  19390. ) {
  19391. _this.fileType = 2;
  19392. } else if (
  19393. b.indexOf(
  19394. _this.studyJuri[0].cover[0].url
  19395. .split(".")
  19396. [
  19397. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19398. ].toLocaleUpperCase()
  19399. ) != -1
  19400. ) {
  19401. _this.fileType = 1;
  19402. } else if (
  19403. photoA.indexOf(
  19404. _this.studyJuri[0].cover[0].url
  19405. .split(".")
  19406. [
  19407. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19408. ].toLocaleUpperCase()
  19409. ) != -1
  19410. ) {
  19411. _this.fileType = 0;
  19412. } else {
  19413. _this.fileType = 3;
  19414. }
  19415. _this.imgChange(null, null, type);
  19416. } else if (type == 2) {
  19417. _this.upToolImg = data.Location;
  19418. _this.imgChange(null, null, type);
  19419. _this.addCourseWorks(i);
  19420. } else if (type == 4) {
  19421. _this.addPz("3", data.Location);
  19422. } else if (type == 5) {
  19423. _this.addImgDrawImG(data.Location);
  19424. } else if (type == 6) {
  19425. var _ftype = 1;
  19426. if (
  19427. c.indexOf(
  19428. data.Location.split(".")[
  19429. data.Location.split(".").length - 1
  19430. ].toLocaleUpperCase()
  19431. ) != -1
  19432. ) {
  19433. _ftype = 5;
  19434. } else if (
  19435. b.indexOf(
  19436. data.Location.split(".")[
  19437. data.Location.split(".").length - 1
  19438. ].toLocaleUpperCase()
  19439. ) != -1
  19440. ) {
  19441. _ftype = 4;
  19442. } else {
  19443. _ftype = 1;
  19444. }
  19445. _this.plworkFile.push({
  19446. name: file.name,
  19447. url: data.Location,
  19448. uid: file.uid,
  19449. fileType: _ftype,
  19450. username:
  19451. _this.plworkFile.length > 10
  19452. ? _this.plworkFile.length + 1
  19453. : "0" + (_this.plworkFile.length + 1),
  19454. });
  19455. } else if (type == 7) {
  19456. _this.addCourseWorksGong(i, data.Location, 32);
  19457. } else if (type == 8) {
  19458. _this.addCourseWorksGong(i, data.Location, 57);
  19459. }
  19460. _this.imgChange(null, null, type);
  19461. console.log(data.Location);
  19462. // _this.$message.success('上传成功'+data.Location)
  19463. }
  19464. });
  19465. }
  19466. },
  19467. async beforeUpload3(event, type, i) {
  19468. // this.$message.success('进入上传')
  19469. let file = "";
  19470. let cfindex2 = 0;
  19471. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  19472. file = event.target.files[cfindex];
  19473. var credentials = {
  19474. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19475. secretAccessKey: "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",
  19476. }; //秘钥形式的登录上传
  19477. window.AWS.config.update(credentials);
  19478. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19479. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19480. var _this = this;
  19481. // _this.progress = 0;
  19482. _this.proVisible2 = true;
  19483. var b = [
  19484. "DOC",
  19485. "DOCX",
  19486. "DOCM",
  19487. "DOTM",
  19488. "DOTX",
  19489. "PPTX",
  19490. "PPSX",
  19491. "PPT",
  19492. "PPS",
  19493. "PPTM",
  19494. "POTM",
  19495. "PPAM",
  19496. "POTX",
  19497. "PPSM",
  19498. ];
  19499. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19500. var photoA = [
  19501. "BMP",
  19502. "GIF",
  19503. "PNG",
  19504. "JPEG",
  19505. "JPG",
  19506. "TIF",
  19507. "PCX",
  19508. "TGA",
  19509. "EXIF",
  19510. "FPX",
  19511. "SVG",
  19512. "APNG",
  19513. ];
  19514. if (
  19515. photoA.indexOf(
  19516. file.name
  19517. .split(".")
  19518. [file.name.split(".").length - 1].toLocaleUpperCase()
  19519. ) != -1 &&
  19520. type != 4
  19521. ) {
  19522. // const blob = await imageConversion.compress(file, 0.8)
  19523. file = await this.pngToWhiteBg(file);
  19524. const blob = await imageConversion.compressAccurately(file, 256);
  19525. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19526. file = new File([blob], file.name, { type: file.type });
  19527. }
  19528. if (file) {
  19529. var params = {
  19530. Key:
  19531. file.name.split(".")[0] +
  19532. new Date().getTime() +
  19533. "." +
  19534. file.name.split(".")[file.name.split(".").length - 1],
  19535. ContentType: file.type,
  19536. Body: file,
  19537. "Access-Control-Allow-Credentials": "*",
  19538. ACL: "public-read",
  19539. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19540. var options = {
  19541. // partSize: 2048 * 1024 * 1024,
  19542. partSize: 1024 * 1024 * 1024,
  19543. queueSize: 2,
  19544. leavePartsOnError: true,
  19545. };
  19546. bucket
  19547. .upload(params, options)
  19548. .on("httpUploadProgress", function (evt) {
  19549. //这里可以写进度条
  19550. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19551. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  19552. })
  19553. .send(function (err, data) {
  19554. // _this.progress = 100;
  19555. cfindex2++;
  19556. setTimeout(() => {
  19557. if (
  19558. cfindex2 == event.target.files.length - 1 ||
  19559. cfindex2 > event.target.files.length - 1
  19560. ) {
  19561. _this.proVisible2 = false;
  19562. }
  19563. }, 1000);
  19564. if (err) {
  19565. var a = _this.$refs.upload1.uploadFiles;
  19566. a.splice(a.length - 1, a.length);
  19567. _this.$message.error("上传失败");
  19568. } else {
  19569. // _this.$message.success('上传成功')
  19570. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19571. var c = [
  19572. "AVI",
  19573. "NAVI",
  19574. "MPEG",
  19575. "ASF",
  19576. "MOV",
  19577. "WMV",
  19578. "3GP",
  19579. "RM",
  19580. "RMVB",
  19581. "FLV",
  19582. "F4V",
  19583. "H.264",
  19584. "H.265",
  19585. "REAL VIDEO",
  19586. "MKV",
  19587. "WebM",
  19588. "HDDVD",
  19589. "MP4",
  19590. "MPG",
  19591. "M4V",
  19592. "MGV",
  19593. "OGV",
  19594. "QTM",
  19595. "STR",
  19596. "AMC",
  19597. "DVX",
  19598. "EVO",
  19599. "DAT",
  19600. "OGG",
  19601. "OGM",
  19602. ];
  19603. if (type == 1) {
  19604. _this.studyJuri[0].cover.push({
  19605. name: file.name,
  19606. url: data.Location,
  19607. uid: file.uid,
  19608. });
  19609. if (
  19610. c.indexOf(
  19611. _this.studyJuri[0].cover[0].url
  19612. .split(".")
  19613. [
  19614. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19615. ].toLocaleUpperCase()
  19616. ) != -1
  19617. ) {
  19618. _this.fileType = 2;
  19619. } else if (
  19620. b.indexOf(
  19621. _this.studyJuri[0].cover[0].url
  19622. .split(".")
  19623. [
  19624. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19625. ].toLocaleUpperCase()
  19626. ) != -1
  19627. ) {
  19628. _this.fileType = 1;
  19629. } else {
  19630. _this.fileType = 0;
  19631. }
  19632. _this.imgChange(null, null, type);
  19633. } else if (type == 2) {
  19634. _this.upToolImg = data.Location;
  19635. _this.imgChange(null, null, type);
  19636. _this.addCourseWorks(i);
  19637. } else if (type == 4) {
  19638. _this.addPz("3", data.Location);
  19639. } else if (type == 5) {
  19640. _this.addImgDrawImG(data.Location);
  19641. } else if (type == 6) {
  19642. var _ftype = 1;
  19643. if (
  19644. c.indexOf(
  19645. data.Location.split(".")[
  19646. data.Location.split(".").length - 1
  19647. ].toLocaleUpperCase()
  19648. ) != -1
  19649. ) {
  19650. _ftype = 5;
  19651. } else if (
  19652. b.indexOf(
  19653. data.Location.split(".")[
  19654. data.Location.split(".").length - 1
  19655. ].toLocaleUpperCase()
  19656. ) != -1
  19657. ) {
  19658. _ftype = 4;
  19659. } else {
  19660. _ftype = 1;
  19661. }
  19662. _this.plworkFile.push({
  19663. name: file.name,
  19664. url: data.Location,
  19665. uid: file.uid,
  19666. fileType: _ftype,
  19667. username:
  19668. _this.plworkFile.length + 1 > 9
  19669. ? _this.plworkFile.length + 1
  19670. : "0" + (_this.plworkFile.length + 1),
  19671. });
  19672. }
  19673. _this.imgChange(null, null, type);
  19674. console.log(data.Location);
  19675. // _this.$message.success('上传成功'+data.Location)
  19676. }
  19677. });
  19678. }
  19679. }
  19680. },
  19681. beforeUpload2(event, type) {
  19682. var file = event.target.files[0];
  19683. var credentials = {
  19684. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19685. secretAccessKey: "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",
  19686. }; //秘钥形式的登录上传
  19687. window.AWS.config.update(credentials);
  19688. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19689. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19690. var _this = this;
  19691. _this.progress = 0;
  19692. _this.proVisible = true;
  19693. if (file) {
  19694. var params = {
  19695. Key:
  19696. file.name.split(".")[0] +
  19697. new Date().getTime() +
  19698. "." +
  19699. file.name.split(".")[file.name.split(".").length - 1],
  19700. ContentType: file.type,
  19701. Body: file,
  19702. "Access-Control-Allow-Credentials": "*",
  19703. ACL: "public-read",
  19704. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19705. var options = {
  19706. partSize: 2048 * 1024 * 1024,
  19707. queueSize: 2,
  19708. leavePartsOnError: true,
  19709. };
  19710. bucket
  19711. .upload(params, options)
  19712. .on("httpUploadProgress", function (evt) {
  19713. //这里可以写进度条
  19714. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19715. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  19716. })
  19717. .send(function (err, data) {
  19718. _this.progress = 100;
  19719. setTimeout(() => {
  19720. _this.proVisible = false;
  19721. }, 1000);
  19722. if (err) {
  19723. var a = _this.$refs.upload1.uploadFiles;
  19724. a.splice(a.length - 1, a.length);
  19725. _this.$message.error("上传失败");
  19726. } else {
  19727. if (type == 2) {
  19728. _this.studyJuri[0].upVedio.push({
  19729. name: file.name,
  19730. url: data.Location,
  19731. uid: file.uid,
  19732. });
  19733. _this.imgChange(null, null, type);
  19734. } else if (type == 3) {
  19735. _this.studyJuri[0].upFile.push({
  19736. name: file.name,
  19737. url: data.Location,
  19738. uid: file.uid,
  19739. });
  19740. _this.imgChange(null, null, type);
  19741. }
  19742. console.log(data.Location);
  19743. }
  19744. });
  19745. }
  19746. },
  19747. allScrell() {
  19748. window.parent.postMessage({ allScreen: this.screenType }, "*");
  19749. },
  19750. nextOrpreSteps(t) {
  19751. if (this.IsFollow && this.tType == 2) {
  19752. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  19753. return;
  19754. }
  19755. var b = this.chapInfoList.length - 1;
  19756. if (t == 0) {
  19757. if (this.courseType == 0) {
  19758. if (this.taskCount == 0) {
  19759. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  19760. if (this.IsLookOpen) {
  19761. if (
  19762. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  19763. ) {
  19764. if (
  19765. this.courseDetail.userid != this.userid &&
  19766. (!this.courseDetail.course_teacher ||
  19767. (this.courseDetail.course_teacher &&
  19768. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  19769. ) {
  19770. this.$message.error("任务未解锁");
  19771. } else {
  19772. this.$message.error("上一任务未解锁");
  19773. }
  19774. return;
  19775. }
  19776. }
  19777. this.navList[this.courseType].isOpen = false;
  19778. this.courseType = b;
  19779. this.taskCount =
  19780. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  19781. .length - 1;
  19782. this.navList[this.courseType].isOpen = true;
  19783. } else {
  19784. this.taskCount--;
  19785. }
  19786. } else {
  19787. if (this.taskCount == 0) {
  19788. this.navList[this.courseType].isOpen = false;
  19789. this.courseType--;
  19790. this.taskCount =
  19791. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  19792. .length - 1;
  19793. this.navList[this.courseType].isOpen = true;
  19794. } else {
  19795. this.taskCount--;
  19796. }
  19797. }
  19798. } else {
  19799. if (this.courseType == b) {
  19800. if (
  19801. this.taskCount ==
  19802. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  19803. 1
  19804. ) {
  19805. this.navList[this.courseType].isOpen = false;
  19806. this.courseType = 0;
  19807. this.taskCount = 0;
  19808. this.navList[this.courseType].isOpen = true;
  19809. } else {
  19810. var bbb = parseInt(this.taskCount) + 1;
  19811. if (
  19812. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  19813. .isLook &&
  19814. this.courseDetail.userid != this.userid &&
  19815. (!this.courseDetail.course_teacher ||
  19816. (this.courseDetail.course_teacher &&
  19817. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  19818. this.IsLookOpen
  19819. ) {
  19820. this.$message.error("任务未解锁");
  19821. return;
  19822. }
  19823. this.taskCount++;
  19824. if (this.IsLookOpen) {
  19825. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19826. this.taskCount
  19827. ].isLook = true;
  19828. this.addCourseState(3);
  19829. }
  19830. }
  19831. } else {
  19832. if (
  19833. this.taskCount ==
  19834. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  19835. 1
  19836. ) {
  19837. var bbb = parseInt(this.courseType) + 1;
  19838. if (
  19839. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  19840. this.courseDetail.userid != this.userid &&
  19841. (!this.courseDetail.course_teacher ||
  19842. (this.courseDetail.course_teacher &&
  19843. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  19844. this.IsLookOpen
  19845. ) {
  19846. this.$message.error("任务未解锁");
  19847. return;
  19848. }
  19849. this.navList[this.courseType].isOpen = false;
  19850. this.courseType++;
  19851. this.taskCount = 0;
  19852. this.navList[this.courseType].isOpen = true;
  19853. } else {
  19854. var bbb = parseInt(this.taskCount) + 1;
  19855. if (
  19856. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  19857. .isLook &&
  19858. this.courseDetail.userid != this.userid &&
  19859. (!this.courseDetail.course_teacher ||
  19860. (this.courseDetail.course_teacher &&
  19861. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  19862. this.IsLookOpen
  19863. ) {
  19864. this.$message.error("任务未解锁");
  19865. return;
  19866. }
  19867. this.taskCount++;
  19868. }
  19869. if (this.IsLookOpen) {
  19870. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19871. this.taskCount
  19872. ].isLook = true;
  19873. this.addCourseState(3);
  19874. }
  19875. }
  19876. // if (
  19877. // this.taskCount ==
  19878. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  19879. // ) {
  19880. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  19881. // } else {
  19882. // this.taskCount++;
  19883. // }
  19884. }
  19885. document.scrollingElement.scrollTop = 0;
  19886. // this.showType = 7;
  19887. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  19888. // if (this.vedio[this.taskCount].length > 0) {
  19889. // var a =
  19890. // document.getElementsByClassName("box_course")[this.taskCount]
  19891. // .offsetHeight;
  19892. // document.getElementsByClassName("vedioList")[
  19893. // this.taskCount
  19894. // ].style.height = a + "px";
  19895. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  19896. // a - 40 + "px";
  19897. // }
  19898. this.isNoHomeWork = false;
  19899. (this.studyJuri = [
  19900. {
  19901. content: "",
  19902. cover: [],
  19903. upVedio: [],
  19904. upFile: [],
  19905. },
  19906. ]),
  19907. (this.radio = []);
  19908. this.isClickNav = "";
  19909. this.selectPz();
  19910. this.getHomeWork();
  19911. this.getCourseDetail(2);
  19912. this.$forceUpdate();
  19913. },
  19914. openTask(s, n, i) {
  19915. if (this.IsFollow && this.tType == 2) {
  19916. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  19917. return;
  19918. }
  19919. if (this.IsLookOpen &&
  19920. this.courseDetail.userid != this.userid &&
  19921. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  19922. if (
  19923. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  19924. this.courseDetail.userid != this.userid &&
  19925. (!this.courseDetail.course_teacher ||
  19926. (this.courseDetail.course_teacher &&
  19927. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  19928. ) {
  19929. this.$message.error("任务未解锁");
  19930. return;
  19931. }
  19932. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  19933. if (
  19934. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  19935. .isLook
  19936. ) {
  19937. this.$message.error("上一任务未解锁");
  19938. return;
  19939. }
  19940. } else if (s > this.courseType) {
  19941. if (n > 0) {
  19942. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  19943. this.$message.error("上一任务未解锁");
  19944. return;
  19945. }
  19946. } else {
  19947. if (
  19948. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  19949. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  19950. ].isLook
  19951. ) {
  19952. this.$message.error("上一任务未解锁");
  19953. return;
  19954. }
  19955. }
  19956. }
  19957. }
  19958. if (this.navList[s].task[n].isOpen == true) {
  19959. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  19960. return;
  19961. }
  19962. let flag = this.courseType==s;
  19963. this.courseType = s;
  19964. this.navId = i;
  19965. this.taskCount = n;
  19966. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  19967. this.navList[this.courseType].task[this.taskCount].isOpen =
  19968. !this.navList[this.courseType].task[this.taskCount].isOpen;
  19969. if (this.IsLookOpen) {
  19970. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19971. this.taskCount
  19972. ].isLook = true;
  19973. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  19974. this.addCourseState(3,yym);
  19975. }
  19976. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  19977. this.isCloseList[ci].isClose = 0;
  19978. this.isCloseList[ci].isCloseBoolean = false;
  19979. this.$nextTick(()=>{
  19980. setTimeout(()=>{
  19981. setTimeout(()=>{
  19982. this.panToolHeight('tool-'+ci);
  19983. }, 0)
  19984. }, 0)
  19985. })
  19986. }
  19987. // this.showType = 7;
  19988. this.isNoHomeWork = false;
  19989. (this.studyJuri = [
  19990. {
  19991. content: "",
  19992. cover: [],
  19993. upVedio: [],
  19994. upFile: [],
  19995. },
  19996. ]),
  19997. (this.radio = []);
  19998. document.scrollingElement.scrollTop = 0;
  19999. // setTimeout(() => {
  20000. // let a = document.getElementById(i);
  20001. // if (a.offsetTop - 110 == 0) {
  20002. // window.scrollTo(0, 0);
  20003. // } else {
  20004. // window.scrollTo(0, a.offsetTop);
  20005. // }
  20006. // }, 0);
  20007. for (var z = 0; z < this.navList.length; z++) {
  20008. for (var q = 0; q < this.navList[z].task.length; q++) {
  20009. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  20010. this.navList[z].task[q].tool[w].isTool = false;
  20011. }
  20012. }
  20013. }
  20014. this.selectPz();
  20015. this.getHomeWork();
  20016. this.getCourseDetail(2);
  20017. if(flag){
  20018. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  20019. }else{
  20020. this.insertMemorandum(`进入<span class="variable">阶段${s+1}${this.navList[s].dyName?':'+this.navList[s].dyName:''}</span>→<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  20021. }
  20022. },
  20023. get(i) {
  20024. if (this.IsFollow && this.tType == 2) {
  20025. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20026. return;
  20027. }
  20028. // for(var k=0;k<this.navList.length;k++){
  20029. // this.navList[k].isOpen = false;
  20030. // }
  20031. // this.navList[i].isOpen = true;
  20032. this.navList[i].isOpen = !this.navList[i].isOpen;
  20033. if (this.navList[i].isOpen) {
  20034. this.openTask(i, 0, i + "-0");
  20035. }
  20036. },
  20037. addQuestion() {
  20038. this.answerList.push({
  20039. answerTitle: this.answerQ,
  20040. answer: this.questionAnswer,
  20041. });
  20042. let params = [
  20043. {
  20044. uid: this.userid,
  20045. cid: this.id,
  20046. stage: this.courseType,
  20047. task: this.taskCount,
  20048. tool: this.toolindex,
  20049. content: JSON.stringify(this.answerList),
  20050. type: 3,
  20051. },
  20052. ];
  20053. this.ajax
  20054. .post(this.$store.state.api + "addCourseWorks", params)
  20055. .then((res) => {
  20056. this.$message({
  20057. message: "提交成功",
  20058. type: "success",
  20059. });
  20060. this.answerList = [];
  20061. this.answerDialogVisible = false;
  20062. this.selectStudent();
  20063. this.selectSWorks();
  20064. this.selectSLook();
  20065. })
  20066. .catch((err) => {
  20067. this.$message.error("提交失败");
  20068. console.error(err);
  20069. });
  20070. },
  20071. addQuestionTeacher() {
  20072. this.answerList.push({
  20073. answerTitle: this.answerQ,
  20074. answer: this.questionAnswer,
  20075. });
  20076. let params = [
  20077. {
  20078. uid: this.sStudent.userid,
  20079. cid: this.id,
  20080. stage: this.courseType,
  20081. task: this.taskCount,
  20082. tool: this.toolindex,
  20083. content: JSON.stringify(this.answerList),
  20084. type: 3,
  20085. ateacher: this.userid,
  20086. },
  20087. ];
  20088. this.ajax
  20089. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  20090. .then((res) => {
  20091. this.$message({
  20092. message: "提交成功",
  20093. type: "success",
  20094. });
  20095. this.answerList = [];
  20096. this.questionAnswer = "";
  20097. this.answerDialogVisibleTeacher = false;
  20098. this.selectStudent();
  20099. this.selectSWorks();
  20100. this.selectSLook();
  20101. })
  20102. .catch((err) => {
  20103. this.$message.error("提交失败");
  20104. console.error(err);
  20105. });
  20106. },
  20107. refreshCourse() {
  20108. // window.location.reload();
  20109. this.navList = [];
  20110. this.getCourseDetail(1);
  20111. },
  20112. getCourseDetail(type, gindex) {
  20113. let loading;
  20114. if (type != 2) {
  20115. loading = this.$loading.service({
  20116. background: "rgba(255, 255, 255, 0.7)",
  20117. target: document.querySelector(".student_table"),
  20118. });
  20119. }
  20120. this.downLoading = false
  20121. // this.navList[0].isOpen = false;
  20122. // this.navList[this.courseType].isOpen = true;
  20123. // this.courseType = this.courseTypeLine;
  20124. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20125. let params = {
  20126. courseId: this.id,
  20127. };
  20128. this.ajax
  20129. .get(this.$store.state.api + "selectCourseDetail3", params)
  20130. .then((res) => {
  20131. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  20132. if (type != 2) {
  20133. loading.close();
  20134. if (
  20135. this.courseType >
  20136. JSON.parse(res.data[0][0].chapters).length - 1
  20137. ) {
  20138. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  20139. }
  20140. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20141. .chapterInfo[0].taskJson;
  20142. var b = [
  20143. "AVI",
  20144. "NAVI",
  20145. "MPEG",
  20146. "ASF",
  20147. "MOV",
  20148. "WMV",
  20149. "3GP",
  20150. "RM",
  20151. "RMVB",
  20152. "FLV",
  20153. "F4V",
  20154. "H.264",
  20155. "H.265",
  20156. "REAL VIDEO",
  20157. "MKV",
  20158. "WebM",
  20159. "HDDVD",
  20160. "MP4",
  20161. "MPG",
  20162. "M4V",
  20163. "MGV",
  20164. "OGV",
  20165. "QTM",
  20166. "STR",
  20167. "AMC",
  20168. "DVX",
  20169. "EVO",
  20170. "DAT",
  20171. "OGG",
  20172. "OGM",
  20173. "MP3",
  20174. ];
  20175. let _chapterData = [];
  20176. for (var i = 0; i < a.length; i++) {
  20177. var c = a[i].chapterData;
  20178. this.vedio[i] = [];
  20179. this.textList[i] = [];
  20180. this.lineList[i] = [];
  20181. this.chapToolList[i] = [];
  20182. this.file[i] = [];
  20183. this.fileC[i] = [];
  20184. _chapterData[i] = c.filter((el) => {
  20185. return el.type != 12;
  20186. });
  20187. this.fileC[i] = c.filter((el) => {
  20188. return el.type == 12;
  20189. });
  20190. if (this.tType == 2) {
  20191. if (this.fileC[i].length) {
  20192. let yym1 = this.fileC[i].filter(e=>{
  20193. if(!converter(e.name).includes(converter("教案"))){
  20194. return e
  20195. }
  20196. })
  20197. this.fileC[i] = yym1
  20198. }
  20199. }
  20200. // else if (c[j].type == 12) {
  20201. // this.fileC[i].push(c[j]);
  20202. // }
  20203. for (var j = 0; j < c.length; j++) {
  20204. if (c[j].type == 7) {
  20205. this.chapToolList[i].push(c[j]);
  20206. } else if (c[j].type == 8 || c[j].type == 14) {
  20207. this.lineList[i].push(c[j]);
  20208. } else if (c[j].type == 6) {
  20209. this.textList[i].push(c[j]);
  20210. } else {
  20211. if (
  20212. b.indexOf(
  20213. c[j].url
  20214. .split(".")
  20215. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20216. ) != -1
  20217. ) {
  20218. this.vedio[i].push(c[j]);
  20219. } else {
  20220. this.file[i].push(c[j]);
  20221. }
  20222. }
  20223. }
  20224. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20225. d.sources[0].src =
  20226. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20227. this.playerO[i] = d;
  20228. }
  20229. this.courseDetail = res.data[0][0];
  20230. if(this.tType == 2){
  20231. this.tcid = this.arrayToArray(
  20232. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20233. this.classId ? this.classId.split(",") : []
  20234. ).join(",");
  20235. }else{
  20236. this.tcid = this.arrayToArray(
  20237. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20238. this.tcid2 ? this.tcid2.split(",") : []
  20239. ).join(",");
  20240. }
  20241. this.evalua = res.data[0][0].evaId;
  20242. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  20243. this.courseType
  20244. ];
  20245. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20246. if (this.tcid && res.data[1].length) {
  20247. let _inviteA = [];
  20248. for (var ik = 0; ik < res.data[1].length; ik++) {
  20249. _inviteA.push({
  20250. cid: res.data[1][ik].classid,
  20251. ic: res.data[1][ik].code,
  20252. });
  20253. }
  20254. for (var ik = 0; ik < _inviteA.length; ik++) {
  20255. if (
  20256. this.arrayToArray(
  20257. _inviteA[ik].cid.split(","),
  20258. this.tcid.split(",")
  20259. ).length
  20260. ) {
  20261. this.inviteCode = _inviteA[ik].ic;
  20262. break;
  20263. }
  20264. }
  20265. }
  20266. for (var l = 0; l < this.chapInfoList.length; l++) {
  20267. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  20268. for (var m = 0; m < w.length; m++) {
  20269. w[m].id = l + "-" + m;
  20270. }
  20271. }
  20272. let taskCount = 0;
  20273. if (
  20274. _chapterData[taskCount].length &&
  20275. _chapterData[taskCount][0].type == 2
  20276. ) {
  20277. this.showType = 0;
  20278. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  20279. } else {
  20280. if (_chapterData[taskCount].length > 0) {
  20281. let _url = _chapterData[taskCount][0].url;
  20282. if (
  20283. _chapterData[taskCount][0].type == 8 ||
  20284. _chapterData[taskCount][0].type == 14
  20285. ) {
  20286. this.showType = 2;
  20287. if (
  20288. _url.indexOf("https://") == -1 &&
  20289. _url.indexOf("http://") == -1
  20290. ) {
  20291. _url = "https://" + _url;
  20292. }
  20293. this.pptImgUrl1 = _url;
  20294. } else if (_chapterData[taskCount][0].type == 3) {
  20295. if (
  20296. _url
  20297. .split(".")
  20298. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20299. ) {
  20300. this.showType = 3;
  20301. this.pptImgUrl1 = _url;
  20302. } else if (
  20303. this.isAssetTypeAnImage(
  20304. _url
  20305. .split(".")
  20306. [_url.split(".").length - 1].toLocaleLowerCase()
  20307. )
  20308. ) {
  20309. this.showType = 4;
  20310. this.pptImgUrl1 = _url;
  20311. } else {
  20312. this.showType = 2;
  20313. this.pptImgUrl1 =
  20314. "https://view.officeapps.live.com/op/view.aspx?src=" +
  20315. encodeURIComponent(_url);
  20316. }
  20317. } else if (_chapterData[taskCount][0].type == 13) {
  20318. this.showType = 4;
  20319. this.pptImgUrl1 = _url;
  20320. } else if (_chapterData[taskCount][0].type == 6) {
  20321. this.showType = 1;
  20322. this.text = this.textList[taskCount][0];
  20323. }
  20324. }
  20325. }
  20326. this.isClickNav = 0;
  20327. if (
  20328. !_chapterData[taskCount].length ||
  20329. _chapterData[taskCount][0].type == 12
  20330. ) {
  20331. this.isClickNav = "";
  20332. this.showType = "";
  20333. }
  20334. if (this.tType == 2) {
  20335. _chapterData.forEach((e,i)=>{
  20336. if (e.length) {
  20337. let yym = e.filter(k=>{
  20338. if(!converter(k.name).includes(converter("教案"))){
  20339. return k
  20340. }
  20341. })
  20342. _chapterData[i] = yym
  20343. }
  20344. })
  20345. }
  20346. this.vChapterData = _chapterData;
  20347. } else {
  20348. // this.showType = 0;
  20349. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20350. .chapterInfo[0].taskJson;
  20351. var b = [
  20352. "AVI",
  20353. "NAVI",
  20354. "MPEG",
  20355. "ASF",
  20356. "MOV",
  20357. "WMV",
  20358. "3GP",
  20359. "RM",
  20360. "RMVB",
  20361. "FLV",
  20362. "F4V",
  20363. "H.264",
  20364. "H.265",
  20365. "REAL VIDEO",
  20366. "MKV",
  20367. "WebM",
  20368. "HDDVD",
  20369. "MP4",
  20370. "MPG",
  20371. "M4V",
  20372. "MGV",
  20373. "OGV",
  20374. "QTM",
  20375. "STR",
  20376. "AMC",
  20377. "DVX",
  20378. "EVO",
  20379. "DAT",
  20380. "OGG",
  20381. "OGM",
  20382. "MP3",
  20383. ];
  20384. let _chapterData = [];
  20385. for (var i = 0; i < a.length; i++) {
  20386. var c = a[i].chapterData;
  20387. this.vedio[i] = [];
  20388. this.textList[i] = [];
  20389. this.lineList[i] = [];
  20390. this.chapToolList[i] = [];
  20391. this.file[i] = [];
  20392. this.fileC[i] = [];
  20393. _chapterData[i] = c.filter((el) => {
  20394. return el.type != 12;
  20395. });
  20396. this.fileC[i] = c.filter((el) => {
  20397. return el.type == 12;
  20398. });
  20399. if (this.tType == 2) {
  20400. if (this.fileC[i].length) {
  20401. let yym1 = this.fileC[i].filter(e=>{
  20402. if(!converter(e.name).includes(converter("教案"))){
  20403. return e
  20404. }
  20405. })
  20406. this.fileC[i] = yym1
  20407. }
  20408. }
  20409. for (var j = 0; j < c.length; j++) {
  20410. if (c[j].type == 7) {
  20411. this.chapToolList[i].push(c[j]);
  20412. } else if (c[j].type == 8 || c[j].type == 14) {
  20413. this.lineList[i].push(c[j]);
  20414. } else if (c[j].type == 6) {
  20415. this.textList[i].push(c[j]);
  20416. } else {
  20417. if (
  20418. b.indexOf(
  20419. c[j].url
  20420. .split(".")
  20421. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20422. ) != -1
  20423. ) {
  20424. this.vedio[i].push(c[j]);
  20425. } else {
  20426. this.file[i].push(c[j]);
  20427. }
  20428. }
  20429. }
  20430. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20431. d.sources[0].src =
  20432. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20433. this.playerO[i] = d;
  20434. }
  20435. let taskCount = 0;
  20436. if (
  20437. _chapterData[taskCount].length &&
  20438. _chapterData[taskCount][0].type == 2
  20439. ) {
  20440. // this.showType = 0;
  20441. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  20442. } else {
  20443. if (_chapterData[taskCount].length > 0) {
  20444. let _url = _chapterData[taskCount][0].url;
  20445. if (
  20446. _chapterData[taskCount][0].type == 8 ||
  20447. _chapterData[taskCount][0].type == 14
  20448. ) {
  20449. // this.showType = 2;
  20450. if (
  20451. _url.indexOf("https://") == -1 &&
  20452. _url.indexOf("http://") == -1
  20453. ) {
  20454. _url = "https://" + _url;
  20455. }
  20456. // this.pptImgUrl1 = _url;
  20457. } else if (_chapterData[taskCount][0].type == 3) {
  20458. if (
  20459. _url
  20460. .split(".")
  20461. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20462. ) {
  20463. // this.showType = 3;
  20464. // this.pptImgUrl1 = _url;
  20465. } else if (
  20466. this.isAssetTypeAnImage(
  20467. _url
  20468. .split(".")
  20469. [_url.split(".").length - 1].toLocaleLowerCase()
  20470. )
  20471. ) {
  20472. // this.showType = 4;
  20473. // this.pptImgUrl1 = _url;
  20474. } else {
  20475. // this.showType = 2;
  20476. // this.pptImgUrl1 =
  20477. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  20478. // encodeURIComponent(_url);
  20479. }
  20480. } else if (_chapterData[taskCount][0].type == 13) {
  20481. // this.showType = 4;
  20482. // this.pptImgUrl1 = _url;
  20483. } else if (_chapterData[taskCount][0].type == 6) {
  20484. this.showType = 1;
  20485. this.text = this.textList[taskCount][0];
  20486. }
  20487. }
  20488. }
  20489. this.isClickNav = 0;
  20490. if (
  20491. !_chapterData[taskCount].length ||
  20492. _chapterData[taskCount][0].type == 12
  20493. ) {
  20494. this.isClickNav = "";
  20495. // this.showType = "";
  20496. }
  20497. if (this.tType == 2) {
  20498. _chapterData.forEach((e,i)=>{
  20499. if (e.length) {
  20500. let yym = e.filter(k=>{
  20501. if(!converter(k.name).includes(converter("教案"))){
  20502. return k
  20503. }
  20504. })
  20505. _chapterData[i] = yym
  20506. }
  20507. })
  20508. }
  20509. this.vChapterData = _chapterData;
  20510. this.$forceUpdate();
  20511. }
  20512. if (res.data[0][0].setting) {
  20513. try {
  20514. this.languageSetting =
  20515. JSON.parse(res.data[0][0].setting).languageSetting ||
  20516. JSON.parse(res.data[0][0].setting).languageSetting == 0
  20517. ? JSON.parse(res.data[0][0].setting).languageSetting
  20518. : 0;
  20519. } catch (error) {
  20520. console.error(error);
  20521. }
  20522. }
  20523. // finalMarkList用来判断哪个工具为评分工具
  20524. if (this.courseDetail.state == 6) {
  20525. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  20526. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  20527. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  20528. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  20529. // // 没有的话在选其他工具为评分工具
  20530. // if(adc.length > 0){
  20531. // for (let k = chap.length - 1; k >= 0; k--) {
  20532. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  20533. // this.finalMarkList = k;
  20534. // break;
  20535. // }
  20536. // }
  20537. // }else{
  20538. // for (let k = chap.length - 1; k >= 0; k--) {
  20539. // 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) {
  20540. // this.finalMarkList = k;
  20541. // break;
  20542. // }
  20543. // }
  20544. // }
  20545. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  20546. // 不然会无限循环报错,会很难受
  20547. let aiSNum = 0;
  20548. if (
  20549. chapInfoListCopy[this.taskCount].eList &&
  20550. chapInfoListCopy[this.taskCount].eList.length
  20551. ) {
  20552. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  20553. if (e.isai == 2) {
  20554. aiSNum++;
  20555. }
  20556. });
  20557. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  20558. this.isaiNum = aiSNum;
  20559. } else {
  20560. this.isaiNum = 0;
  20561. }
  20562. // for (
  20563. // let k = 0;
  20564. // k < chapInfoListCopy[this.taskCount].eList.length;
  20565. // k++
  20566. // ) {
  20567. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  20568. // this.againEva(this.taskCount, k);
  20569. // }
  20570. // }
  20571. }
  20572. }
  20573. // else {
  20574. // this.courseDetail = res.data[0][0];
  20575. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20576. // }
  20577. let _this = this;
  20578. if (_this.timer) {
  20579. clearInterval(_this.timer);
  20580. _this.timer = null;
  20581. }
  20582. // if (_this.timer2) {
  20583. // clearInterval(_this.timer2);
  20584. // _this.timer2 = null;
  20585. // }
  20586. if (_this.tcid) {
  20587. _this.getCourseGroup(gindex);
  20588. } else {
  20589. _this.selectSWorks(gindex);
  20590. }
  20591. _this.selectStudent();
  20592. _this.selectSLook();
  20593. _this.getPick();
  20594. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  20595. _this.setCTask();
  20596. }
  20597. if (_this.dialogVisibleGroup) {
  20598. _this.groupJson =
  20599. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  20600. _this.taskCount
  20601. ].toolChoose[_this.toolindex].groupJson;
  20602. }
  20603. _this.$nextTick(() => {
  20604. setTimeout(() => {
  20605. _this.checkEva();
  20606. }, 1000);
  20607. });
  20608. _this.timer = setInterval(function () {
  20609. // _this.getCourseDetail(2);
  20610. if (_this.tcid) {
  20611. _this.getCourseGroup();
  20612. } else {
  20613. _this.selectSWorks();
  20614. }
  20615. _this.selectStudent();
  20616. _this.selectSLook();
  20617. _this.getPick();
  20618. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  20619. _this.setCTask();
  20620. }
  20621. if (_this.dialogVisibleGroup) {
  20622. _this.groupJson =
  20623. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  20624. _this.taskCount
  20625. ].toolChoose[_this.toolindex].groupJson;
  20626. }
  20627. if (_this.tType == 4 || _this.ispzType == 4) {
  20628. _this.selectPz();
  20629. }
  20630. }, 5000);
  20631. if (_this.timer2 == null) {
  20632. _this.timer2 = setInterval(()=> {
  20633. _this.getSplitScreenData();//获取分屏数据
  20634. }, 5000);
  20635. }
  20636. _this.$nextTick(function () {
  20637. setTimeout(() => {
  20638. // var a =
  20639. // document.getElementsByClassName("box_course")[0].offsetHeight;
  20640. // document.getElementsByClassName("vedioList")[0].style.height =
  20641. // a + "px";
  20642. // document.getElementsByClassName("navBox")[0].style.height =
  20643. // a - 40 + "px";
  20644. // if (_this.vedio[_this.taskCount].length > 0) {
  20645. // _this.vedioTime = [];
  20646. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20647. // _this.vedioTime[i] = document.getElementsByClassName(
  20648. // "vjs-duration-display"
  20649. // )[i].textContent;
  20650. // }
  20651. // }
  20652. }, 1000);
  20653. });
  20654. })
  20655. .catch((err) => {
  20656. loading.close();
  20657. console.error(err);
  20658. });
  20659. },
  20660. getCourseGroup(gindex) {
  20661. let params = {
  20662. cid: this.id,
  20663. classid: this.tcid ? this.tcid : "1",
  20664. };
  20665. this.ajax
  20666. .get(this.$store.state.api + "getCourseGroup", params)
  20667. .then((res) => {
  20668. if (res.data && res.data[0].length) {
  20669. if (!this.isGroup) {
  20670. let courseGroup = JSON.parse(res.data[0][0].group);
  20671. courseGroup.group = courseGroup.group.filter((el) => {
  20672. el.works = [];
  20673. return el;
  20674. });
  20675. if (courseGroup.isopen == 2) {
  20676. this.isGroup = false;
  20677. this.selectSWorks(gindex);
  20678. return;
  20679. }
  20680. this.courseGroup = courseGroup;
  20681. let groupPerson = res.data[1];
  20682. let group = JSON.parse(res.data[0][0].group).group;
  20683. let courseGroupStudent = {};
  20684. let courseGroupStudentUid = {};
  20685. for (var i = 0; i < group.length; i++) {
  20686. courseGroupStudent[group[i].id] = [];
  20687. courseGroupStudentUid[group[i].id] = [];
  20688. for (var j = 0; j < groupPerson.length; j++) {
  20689. if (groupPerson[j].groupCid == group[i].id) {
  20690. courseGroupStudent[group[i].id].push(groupPerson[j]);
  20691. courseGroupStudentUid[group[i].id].push(
  20692. groupPerson[j].userid
  20693. );
  20694. }
  20695. }
  20696. }
  20697. this.courseGroupStudent = courseGroupStudent;
  20698. this.courseGroupStudentUid = courseGroupStudentUid;
  20699. }
  20700. if (this.courseGroup.isopen == 2) {
  20701. this.isGroup = false;
  20702. } else {
  20703. this.isGroup = true;
  20704. }
  20705. this.selectSWorks(gindex);
  20706. } else {
  20707. this.selectSWorks(gindex);
  20708. this.isGroup = false;
  20709. }
  20710. })
  20711. .catch((err) => {
  20712. // this.$message.error("网络不佳");
  20713. console.error(err);
  20714. });
  20715. },
  20716. setOperationTime() {
  20717. let _this = this;
  20718. if (_this.opertimer) {
  20719. clearInterval(_this.opertimer);
  20720. _this.opertimer = null;
  20721. }
  20722. _this.opertimer = setInterval(() => {
  20723. _this.setoTime("600");
  20724. }, 600000);
  20725. },
  20726. setoTime(time) {
  20727. let params = [
  20728. {
  20729. uid: this.userid,
  20730. cid: this.id,
  20731. type: "2",
  20732. time: time,
  20733. },
  20734. ];
  20735. this.ajax
  20736. .post(this.$store.state.api + "addOperationTimeT2", params)
  20737. .then((res) => {})
  20738. .catch((err) => {
  20739. console.error(err);
  20740. });
  20741. },
  20742. addPz(type, content) {
  20743. if (type == "1" && this.pzConText == "") {
  20744. this.$message.error("评论不能为空!");
  20745. return;
  20746. }
  20747. let params = [
  20748. {
  20749. cid: this.id,
  20750. uid: this.userid,
  20751. s: this.courseType,
  20752. t: this.taskCount,
  20753. c: type == "1" ? this.pzConText : content,
  20754. type: type,
  20755. },
  20756. ];
  20757. this.ajax
  20758. .post(this.$store.state.api + "addPz2", params)
  20759. .then((res) => {
  20760. this.$message({
  20761. message: "添加成功",
  20762. type: "success",
  20763. });
  20764. this.pzConText = "";
  20765. this.addPzDialog = false;
  20766. this.selectPz();
  20767. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  20768. })
  20769. .catch((err) => {
  20770. this.$message.error("添加失败");
  20771. console.error(err);
  20772. });
  20773. },
  20774. setReplyIndex(id, i) {
  20775. this.replyIndex = i;
  20776. this.replyPid = id;
  20777. this.replyDialogVisible = true;
  20778. },
  20779. addHf() {
  20780. if (this.reply == "") {
  20781. this.$message.error("回复不能为空!");
  20782. return;
  20783. }
  20784. let params = [
  20785. {
  20786. cid: this.id,
  20787. uid: this.userid,
  20788. s: this.courseType,
  20789. t: this.taskCount,
  20790. type: "1",
  20791. ct: 2,
  20792. pid: this.replyPid,
  20793. c: this.reply,
  20794. },
  20795. ];
  20796. this.ajax
  20797. .post(this.$store.state.api + "addHf", params)
  20798. .then((res) => {
  20799. this.reply = "";
  20800. this.$message({
  20801. message: "回复成功",
  20802. type: "success",
  20803. });
  20804. this.replyDialogVisible = false;
  20805. this.selectPz();
  20806. })
  20807. .catch((err) => {
  20808. this.$message.error("回复失败");
  20809. console.error(err);
  20810. });
  20811. },
  20812. deletePz(id) {
  20813. this.$confirm("确定删除此评论吗?", "提示", {
  20814. confirmButtonText: "确定",
  20815. cancelButtonText: "取消",
  20816. type: "warning",
  20817. })
  20818. .then(() => {
  20819. let params = [
  20820. {
  20821. id: id,
  20822. },
  20823. ];
  20824. this.ajax
  20825. .post(this.$store.state.api + "deletePz", params)
  20826. .then((res) => {
  20827. this.$message({
  20828. message: "删除成功",
  20829. type: "success",
  20830. });
  20831. this.selectPz();
  20832. })
  20833. .catch((err) => {
  20834. this.$message.error("网络异常");
  20835. console.error(err);
  20836. });
  20837. })
  20838. .catch(() => {});
  20839. },
  20840. deleteReply(id) {
  20841. this.$confirm("确定删除此回复吗?", "提示", {
  20842. confirmButtonText: "确定",
  20843. cancelButtonText: "取消",
  20844. type: "warning",
  20845. })
  20846. .then(() => {
  20847. let params = [
  20848. {
  20849. id: id,
  20850. },
  20851. ];
  20852. this.ajax
  20853. .post(this.$store.state.api + "deleteReply", params)
  20854. .then((res) => {
  20855. this.$message({
  20856. message: "删除成功",
  20857. type: "success",
  20858. });
  20859. this.selectPz();
  20860. })
  20861. .catch((err) => {
  20862. this.$message.error("网络异常");
  20863. console.error(err);
  20864. });
  20865. })
  20866. .catch(() => {});
  20867. },
  20868. setPz() {
  20869. if (this.ispzType == 4) {
  20870. this.ispzType = 0;
  20871. this.pzDialog = false;
  20872. return;
  20873. }
  20874. this.ispzType = 4;
  20875. this.pzDialog = true;
  20876. this.selectPz();
  20877. },
  20878. selectPz() {
  20879. let params = {
  20880. cid: this.id,
  20881. s: this.courseType,
  20882. t: this.taskCount,
  20883. type: this.pzStype,
  20884. uid: this.userid,
  20885. };
  20886. this.ajax
  20887. .get(this.$store.state.api + "selectPzListType", params)
  20888. .then((res) => {
  20889. this.pzList = res.data[0];
  20890. var a = res.data[1];
  20891. for (var i = 0; i < a.length; i++) {
  20892. for (var j = 0; j < this.pzList.length; j++) {
  20893. if (!this.pzList[j].hfList) {
  20894. this.pzList[j].hfList = [];
  20895. }
  20896. if (a[i].pid == this.pzList[j].id) {
  20897. this.pzList[j].hfList.push(a[i]);
  20898. }
  20899. }
  20900. }
  20901. })
  20902. .catch((err) => {
  20903. console.error(err);
  20904. });
  20905. },
  20906. // selectHf() {
  20907. // let params = {
  20908. // cid: this.id,
  20909. // s: this.courseType,
  20910. // t: this.taskCount,
  20911. // };
  20912. // this.ajax
  20913. // .get(this.$store.state.api + "selectHfList", params)
  20914. // .then((res) => {
  20915. // var a = res.data[0];
  20916. // for (var i = 0; i < a.length; i++) {
  20917. // for (var j = 0; j < this.pzList.length; j++) {
  20918. // if (!this.pzList[i].hfList) {
  20919. // this.pzList[i].hfList = [];
  20920. // }
  20921. // if (a[i].pid == this.pzList[j].id) {
  20922. // this.pzList[i].hfList.push(a[i]);
  20923. // }
  20924. // }
  20925. // }
  20926. // })
  20927. // .catch((err) => {
  20928. // console.error(err);
  20929. // });
  20930. // },
  20931. updateSLook() {
  20932. let params = {
  20933. sopen: this.sIsOpen == false ? 1 : 2,
  20934. cid: this.id,
  20935. };
  20936. this.ajax
  20937. .get(this.$store.state.api + "updateCourseSLook", params)
  20938. .then((res) => {
  20939. if (this.sIsOpen == true) {
  20940. this.$message({
  20941. message: "权限设置成功",
  20942. type: "success",
  20943. });
  20944. } else {
  20945. this.$message({
  20946. message: "权限关闭成功",
  20947. type: "success",
  20948. });
  20949. }
  20950. })
  20951. .catch((err) => {
  20952. console.error(err);
  20953. });
  20954. },
  20955. updateFollow() {
  20956. let params = [
  20957. {
  20958. sopen: this.IsFollow == false ? 1 : 2,
  20959. cid: this.id,
  20960. },
  20961. ];
  20962. this.ajax
  20963. .post(this.$store.state.api + "updateCourseFollow", params)
  20964. .then((res) => {
  20965. if (this.IsFollow == true) {
  20966. this.$message({
  20967. message: "开启成功",
  20968. type: "success",
  20969. });
  20970. } else {
  20971. this.$message({
  20972. message: "关闭成功",
  20973. type: "success",
  20974. });
  20975. }
  20976. this.setCTask();
  20977. })
  20978. .catch((err) => {
  20979. console.error(err);
  20980. });
  20981. },
  20982. setCTask() {
  20983. let params = [
  20984. {
  20985. sopen: this.courseType + "-" + this.taskCount,
  20986. cid: this.id,
  20987. },
  20988. ];
  20989. this.ajax
  20990. .post(this.$store.state.api + "updateCourseFollowC", params)
  20991. .then((res) => {})
  20992. .catch((err) => {
  20993. console.error(err);
  20994. });
  20995. },
  20996. updateLookOpen() {
  20997. let params = [
  20998. {
  20999. sopen: this.IsLookOpen == false ? 1 : 2,
  21000. cid: this.id,
  21001. },
  21002. ];
  21003. this.ajax
  21004. .post(this.$store.state.api + "updateCourseLookOpen", params)
  21005. .then((res) => {
  21006. if (this.IsLookOpen == true) {
  21007. // if (this.courseType != 0 && this.taskCount != 0) {
  21008. // this.openTask(0, 0, "0-0");
  21009. // }
  21010. this.$message({
  21011. message: "权限设置成功",
  21012. type: "success",
  21013. });
  21014. } else {
  21015. this.$message({
  21016. message: "权限关闭成功",
  21017. type: "success",
  21018. });
  21019. }
  21020. this.getCourseState(2);
  21021. })
  21022. .catch((err) => {
  21023. console.error(err);
  21024. });
  21025. },
  21026. selectSLook() {
  21027. let params = {
  21028. cid: this.id,
  21029. };
  21030. this.ajax
  21031. .get(this.$store.state.api + "selectCourseSLook", params)
  21032. .then((res) => {
  21033. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  21034. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  21035. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  21036. if (!this.IsLookOpen) {
  21037. this.setNavList();
  21038. }
  21039. // else {
  21040. this.getCourseState(1);
  21041. // }
  21042. if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
  21043. this.setContent2(false);
  21044. let _followC = res.data[0][0].followC.split("-");
  21045. if (
  21046. this.courseType != _followC[0] ||
  21047. this.taskCount != _followC[1]
  21048. ) {
  21049. this.navList[this.courseType].isOpen = false;
  21050. this.courseType = _followC[0];
  21051. this.navList[this.courseType].isOpen = true;
  21052. this.taskCount = parseInt(_followC[1]);
  21053. this.navId = res.data[0][0].followC;
  21054. document.scrollingElement.scrollTop = 0;
  21055. this.getCourseDetail(2);
  21056. }
  21057. }
  21058. })
  21059. .catch((err) => {
  21060. console.error(err);
  21061. });
  21062. },
  21063. setNavList() {
  21064. if (this.navList.length == 0) {
  21065. this.navList = [];
  21066. var copyList = [];
  21067. for (var l = 0; l < this.chapInfoList.length; l++) {
  21068. var q = this.chapInfoList[l].dyName;
  21069. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21070. var e;
  21071. copyList.push({
  21072. dyName: q,
  21073. isOpen: l === 0 ? true : false,
  21074. task: [],
  21075. });
  21076. for (var r = 0; r < w.length; r++) {
  21077. e = w[r].task;
  21078. if (this.chapInfoList[l].easy == 1) {
  21079. copyList[l].task.push({
  21080. taskName: q,
  21081. id: l + "-" + r,
  21082. isLook: w[r].isLook,
  21083. isOpen: r === 0 ? true : false,
  21084. tool: [],
  21085. });
  21086. } else {
  21087. copyList[l].task.push({
  21088. taskName: e,
  21089. id: l + "-" + r,
  21090. isLook: w[r].isLook,
  21091. isOpen: r === 0 ? true : false,
  21092. tool: [],
  21093. });
  21094. }
  21095. var t = w[r].toolChoose;
  21096. for (var k = 0; k < t.length; k++) {
  21097. var tool = t[k].tool[0];
  21098. copyList[l].task[r].tool.push({
  21099. tool: tool,
  21100. isTool: false,
  21101. });
  21102. }
  21103. // this.navId = this.navId ? this.navId : l + "-" + r;
  21104. // this.navId = l + "-" + r;
  21105. }
  21106. }
  21107. this.navList = copyList;
  21108. this.navList[0].isOpen = false;
  21109. this.navList[this.courseType].isOpen = true;
  21110. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21111. } else {
  21112. this.setNavList2();
  21113. }
  21114. },
  21115. setNavList2() {
  21116. for (var l = 0; l < this.chapInfoList.length; l++) {
  21117. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21118. for (var r = 0; r < w.length; r++) {
  21119. this.navList[l].task[r].isLook = w[r].isLook;
  21120. }
  21121. }
  21122. if (
  21123. this.IsLookOpen &&
  21124. !this.navList[this.courseType].task[this.taskCount].isLook
  21125. ) {
  21126. this.openTask(0, 0, "0-0");
  21127. }
  21128. this.$forceUpdate();
  21129. },
  21130. getCourseState(type) {
  21131. let params = {
  21132. cid: this.id,
  21133. };
  21134. this.ajax
  21135. .get(this.$store.state.api + "getCourseState", params)
  21136. .then((res) => {
  21137. if (res.data[0].length > 0) {
  21138. this.chapInfoList = JSON.parse(res.data[0][0].state);
  21139. }
  21140. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  21141. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  21142. this.setNavList();
  21143. this.$forceUpdate();
  21144. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  21145. this.addCourseState(2);
  21146. } else {
  21147. this.addCourseState(1);
  21148. }
  21149. })
  21150. .catch((err) => {
  21151. console.error(err);
  21152. });
  21153. },
  21154. addCourseState(type,val = '') {
  21155. let _state = val ? val : this.chapInfoList;
  21156. // this.courseType this.taskCount
  21157. if (type == 1 || type == 2) {
  21158. for (var i = 0; i < _state.length; i++) {
  21159. let el = _state[i].chapterInfo[0].taskJson;
  21160. for (var j = 0; j < el.length; j++) {
  21161. // if (i == 0 && j == 0) {
  21162. // el[j].isLook = true;
  21163. // } else {
  21164. // el[j].isLook = false;
  21165. // }
  21166. if (
  21167. this.courseType > i ||
  21168. (this.courseType == i && this.taskCount + 1 > j)
  21169. ) {
  21170. el[j].isLook = true;
  21171. } else {
  21172. el[j].isLook = false;
  21173. }
  21174. }
  21175. }
  21176. }
  21177. let params = [
  21178. {
  21179. cid: this.id,
  21180. state: JSON.stringify(_state),
  21181. },
  21182. ];
  21183. this.ajax
  21184. .post(
  21185. this.$store.state.api +
  21186. (type == 1 ? "addCourseState" : "updateCourseSate"),
  21187. params
  21188. )
  21189. .then((res) => {
  21190. if (this.IsLookOpen) {
  21191. this.setNavList();
  21192. }
  21193. if (type == 3 && type == 2) {
  21194. this.getCourseState(1);
  21195. }
  21196. })
  21197. .catch((err) => {
  21198. console.error(err);
  21199. });
  21200. },
  21201. getHomeWork() {
  21202. let params = {
  21203. cid: this.id,
  21204. stage: this.courseType,
  21205. task: this.taskCount,
  21206. uid: this.userid,
  21207. };
  21208. this.ajax
  21209. .get(this.$store.state.api + "selectWork", params)
  21210. .then((res) => {
  21211. if (res.data[0].length > 0) {
  21212. this.studyJuri = JSON.parse(res.data[0][0].content);
  21213. this.isNoHomeWork = true;
  21214. }
  21215. })
  21216. .catch((err) => {
  21217. console.error(err);
  21218. });
  21219. },
  21220. isAssetTypeAnImage(ext) {
  21221. return (
  21222. [
  21223. "png",
  21224. "jpg",
  21225. "jpeg",
  21226. "bmp",
  21227. "gif",
  21228. "webp",
  21229. "psd",
  21230. "svg",
  21231. "tiff",
  21232. ].indexOf(ext) !== -1
  21233. );
  21234. },
  21235. switchVideo(media) {
  21236. this.playerO = {};
  21237. this.playerOptions.poster = "";
  21238. this.playerOptions.sources[0].src = media;
  21239. this.playerO = this.playerOptions;
  21240. },
  21241. onPlayerPlay() {},
  21242. onPlayerTimeupdate(player) {
  21243. let gklog = player.cache_.currentTime; //当前播放的秒数
  21244. let a = player.cache_.duration; //视频的总时长
  21245. let gklog2 = parseInt(gklog);
  21246. // if(gklog2 == '3'){
  21247. // player.pause()
  21248. // setTimeout(()=>{
  21249. // player.currentTime(gklog2+1)
  21250. // player.play()
  21251. // },1000)
  21252. // }
  21253. console.log(" onPlayerTimeupdate!", gklog);
  21254. console.log(" onPlayerTimeupdate!", gklog2);
  21255. },
  21256. lookVedio(u, i) {
  21257. this.isClickNav = "";
  21258. // this.playerOptions.sources[0].src = u;
  21259. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21260. d.sources[0].src = u;
  21261. this.playerO[0] = d;
  21262. this.showType = 0;
  21263. // this.isClickNav = "video" + i;
  21264. this.isClickNav = i;
  21265. this.$forceUpdate();
  21266. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  21267. },
  21268. lookText(i, t) {
  21269. this.isClickNav = "";
  21270. // this.text = this.textList[i][t];
  21271. this.text = this.vChapterData[i][t];
  21272. // this.dialogVisible1 = true;
  21273. this.showType = 1;
  21274. // this.isClickNav = "text" + t;
  21275. this.isClickNav = t;
  21276. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  21277. },
  21278. lookTools(i, t) {
  21279. this.chapTools = this.chapToolList[i][t];
  21280. this.dialogVisible2 = true;
  21281. },
  21282. async openFile(f) {
  21283. this.pptImgUrl = "";
  21284. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  21285. if (
  21286. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  21287. -1
  21288. ) {
  21289. let _uuurl = await this.checkLink(f);
  21290. console.log(_uuurl)
  21291. this.pptImgUrl =
  21292. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  21293. this.showPDF = false;
  21294. this.dialogVisible3 = true;
  21295. } else if (
  21296. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21297. ) {
  21298. this.pptImgUrl = f;
  21299. this.showPDF = true;
  21300. this.dialogVisible3 = true;
  21301. }
  21302. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  21303. },
  21304. openTable(f) {
  21305. this.tableJson = JSON.parse(f.works);
  21306. this.dialogVisibleTable2 = true;
  21307. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  21308. },
  21309. openWord(f) {
  21310. this.tableJson = JSON.parse(f.works);
  21311. this.dialogVisibleTable3 = true;
  21312. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  21313. },
  21314. doUrl(url, i) {
  21315. this.isClickNav = "";
  21316. this.pptImgUrl1 = "";
  21317. this.showType = 2;
  21318. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  21319. url = "https://" + url;
  21320. }
  21321. this.pptImgUrl1 = "";
  21322. setTimeout(() => {
  21323. this.pptImgUrl1 = url;
  21324. }, 500);
  21325. // this.isClickNav = "line" + i;
  21326. this.isClickNav = i;
  21327. this.$forceUpdate();
  21328. },
  21329. checkPhoto(f, i) {
  21330. this.showType = 4;
  21331. this.pptImgUrl1 = f.url;
  21332. this.isClickNav = i;
  21333. this.$forceUpdate();
  21334. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  21335. },
  21336. async downFile(f, i) {
  21337. this.isClickNav = "";
  21338. this.pptImgUrl1 = "";
  21339. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  21340. if (
  21341. a.indexOf(
  21342. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  21343. ) != -1
  21344. ) {
  21345. let _uuurl = await this.checkLink(f.url);
  21346. console.log(_uuurl)
  21347. this.pptImgUrl1 =
  21348. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  21349. // this.dialogVisible3 = true;
  21350. this.showType = 2;
  21351. } else if (
  21352. this.isAssetTypeAnImage(
  21353. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  21354. )
  21355. ) {
  21356. this.showType = 4;
  21357. this.pptImgUrl1 = f.url;
  21358. } else if (
  21359. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  21360. "PDF"
  21361. ) {
  21362. this.pptImgUrl1 = f.url;
  21363. // this.dialogVisible3 = true;
  21364. this.showType = 3;
  21365. } else {
  21366. window.open(this.file[i].url);
  21367. }
  21368. // this.isClickNav = "word" + i;
  21369. this.isClickNav = i;
  21370. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  21371. },
  21372. downFileList(i) {
  21373. window.open(this.noImgList[i].url);
  21374. },
  21375. openAddWork() {
  21376. this.dialogVisible = true;
  21377. },
  21378. addBzWorks() {
  21379. let params = [
  21380. {
  21381. uid: this.userid,
  21382. cid: this.id,
  21383. stage: this.courseType,
  21384. task: this.taskCount,
  21385. tool: this.toolindex,
  21386. content: JSON.stringify(this.eScore),
  21387. type: 6,
  21388. },
  21389. ];
  21390. this.ajax
  21391. .post(this.$store.state.api + "addCourseWorks", params)
  21392. .then((res) => {
  21393. this.$message({
  21394. message: "提交成功",
  21395. type: "success",
  21396. });
  21397. this.eScore = { eBzText: "", eStar: [] };
  21398. this.studentEvalDialogVisible = false;
  21399. this.selectSWorks();
  21400. })
  21401. .catch((err) => {
  21402. this.$message.error("提交失败");
  21403. console.error(err);
  21404. });
  21405. },
  21406. addBzWorksTeacher() {
  21407. let params = [
  21408. {
  21409. uid: this.sStudent.userid,
  21410. cid: this.id,
  21411. stage: this.courseType,
  21412. task: this.taskCount,
  21413. tool: this.toolindex,
  21414. content: JSON.stringify(this.eScore),
  21415. type: 6,
  21416. },
  21417. ];
  21418. this.ajax
  21419. .post(this.$store.state.api + "addCourseWorks", params)
  21420. .then((res) => {
  21421. this.$message({
  21422. message: "提交成功",
  21423. type: "success",
  21424. });
  21425. this.eScore = { eBzText: "", eStar: [] };
  21426. this.studentEvalDialogVisibleTeacher = false;
  21427. this.selectSWorks();
  21428. })
  21429. .catch((err) => {
  21430. this.$message.error("提交失败");
  21431. console.error(err);
  21432. });
  21433. },
  21434. addStudentAsk() {
  21435. if (!this.radio.length) {
  21436. this.$message.error("请选择选项");
  21437. return;
  21438. }
  21439. for (var i = 0; i < this.askJson.askCount; i++) {
  21440. if (
  21441. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21442. (this.radio[i] !== 0 && !this.radio[i])
  21443. ) {
  21444. this.$message.error("请选择选项");
  21445. return;
  21446. }
  21447. }
  21448. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  21449. let params = [
  21450. {
  21451. uid: this.userid,
  21452. cid: this.id,
  21453. stage: this.courseType,
  21454. task: this.taskCount,
  21455. tool: this.toolindex,
  21456. content: JSON.stringify(this.askList),
  21457. type: 2,
  21458. },
  21459. ];
  21460. this.ajax
  21461. .post(this.$store.state.api + "addCourseWorks", params)
  21462. .then((res) => {
  21463. this.$message({
  21464. message: "提交成功",
  21465. type: "success",
  21466. });
  21467. this.askList = [];
  21468. this.dialogVisible5 = false;
  21469. this.selectStudent();
  21470. this.selectSWorks();
  21471. this.selectSLook();
  21472. })
  21473. .catch((err) => {
  21474. this.$message.error("提交失败");
  21475. console.error(err);
  21476. });
  21477. },
  21478. addStudentAskTeacher() {
  21479. if (!this.radio.length) {
  21480. this.$message.error("请选择选项");
  21481. return;
  21482. }
  21483. for (var i = 0; i < this.askJson.askCount; i++) {
  21484. if (
  21485. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21486. (this.radio[i] !== 0 && !this.radio[i])
  21487. ) {
  21488. this.$message.error("请选择选项");
  21489. return;
  21490. }
  21491. }
  21492. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  21493. let params = [
  21494. {
  21495. uid: this.sStudent.userid,
  21496. cid: this.id,
  21497. stage: this.courseType,
  21498. task: this.taskCount,
  21499. tool: this.toolindex,
  21500. content: JSON.stringify(this.askList),
  21501. type: 2,
  21502. },
  21503. ];
  21504. this.ajax
  21505. .post(this.$store.state.api + "addCourseWorks", params)
  21506. .then((res) => {
  21507. this.$message({
  21508. message: "提交成功",
  21509. type: "success",
  21510. });
  21511. this.askList = [];
  21512. this.dialogVisible5Teacher = false;
  21513. this.selectStudent();
  21514. this.selectSWorks();
  21515. this.selectSLook();
  21516. })
  21517. .catch((err) => {
  21518. this.$message.error("提交失败");
  21519. console.error(err);
  21520. });
  21521. },
  21522. addStudentTest() {
  21523. if (!this.radio.length) {
  21524. this.$message.error("请选择选项");
  21525. return;
  21526. }
  21527. for (var i = 0; i < this.testJson.testCount; i++) {
  21528. if (
  21529. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21530. (this.radio[i] !== 0 && !this.radio[i])
  21531. ) {
  21532. this.$message.error("请选择选项");
  21533. return;
  21534. }
  21535. }
  21536. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  21537. let params = [
  21538. {
  21539. uid: this.userid,
  21540. cid: this.id,
  21541. stage: this.courseType,
  21542. task: this.taskCount,
  21543. tool: this.toolindex,
  21544. content: JSON.stringify(this.askList),
  21545. type: 8,
  21546. },
  21547. ];
  21548. this.ajax
  21549. .post(this.$store.state.api + "addCourseWorks", params)
  21550. .then((res) => {
  21551. this.$message({
  21552. message: "提交成功",
  21553. type: "success",
  21554. });
  21555. this.askList = [];
  21556. this.dialogVisibleChoice = false;
  21557. this.selectStudent();
  21558. this.selectSWorks();
  21559. this.selectSLook();
  21560. })
  21561. .catch((err) => {
  21562. this.$message.error("提交失败");
  21563. console.error(err);
  21564. });
  21565. },
  21566. addStudentTestTeacher() {
  21567. if (!this.radio.length) {
  21568. this.$message.error("请选择选项");
  21569. return;
  21570. }
  21571. for (var i = 0; i < this.testJson.testCount; i++) {
  21572. if (
  21573. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21574. (this.radio[i] !== 0 && !this.radio[i])
  21575. ) {
  21576. this.$message.error("请选择选项");
  21577. return;
  21578. }
  21579. }
  21580. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  21581. let params = [
  21582. {
  21583. uid: this.sStudent.userid,
  21584. cid: this.id,
  21585. stage: this.courseType,
  21586. task: this.taskCount,
  21587. tool: this.toolindex,
  21588. content: JSON.stringify(this.askList),
  21589. type: 8,
  21590. },
  21591. ];
  21592. this.ajax
  21593. .post(this.$store.state.api + "addCourseWorks", params)
  21594. .then((res) => {
  21595. this.$message({
  21596. message: "提交成功",
  21597. type: "success",
  21598. });
  21599. this.askList = [];
  21600. this.dialogVisibleChoiceTeacher = false;
  21601. this.selectStudent();
  21602. this.selectSWorks();
  21603. this.selectSLook();
  21604. })
  21605. .catch((err) => {
  21606. this.$message.error("提交失败");
  21607. console.error(err);
  21608. });
  21609. },
  21610. addWork() {
  21611. if (this.studyJuri[0].content == "") {
  21612. this.$message.error("请将信息填写完整");
  21613. return;
  21614. } else if (this.studyJuri[0].cover.length == 0) {
  21615. this.$message.error("请将信息填写完整");
  21616. return;
  21617. } else if (this.studyJuri[0].upVedio.length == 0) {
  21618. this.$message.error("请将信息填写完整");
  21619. return;
  21620. }
  21621. if (this.isNoHomeWork) {
  21622. this.$confirm(
  21623. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  21624. "提示",
  21625. {
  21626. confirmButtonText: "确定",
  21627. cancelButtonText: "取消",
  21628. type: "warning",
  21629. }
  21630. )
  21631. .then(() => {
  21632. let params = [
  21633. {
  21634. uid: this.userid,
  21635. cid: this.id,
  21636. stage: this.courseType,
  21637. task: this.taskCount,
  21638. content: JSON.stringify(this.studyJuri),
  21639. },
  21640. ];
  21641. this.ajax
  21642. .post(this.$store.state.api + "addWorks", params)
  21643. .then((res) => {
  21644. this.$message({
  21645. message: "提交成功",
  21646. type: "success",
  21647. });
  21648. this.isNoHomeWork = true;
  21649. this.dialogVisible = false;
  21650. })
  21651. .catch((err) => {
  21652. this.$message.error("提交失败");
  21653. console.error(err);
  21654. });
  21655. })
  21656. .catch(() => {});
  21657. } else {
  21658. let params = [
  21659. {
  21660. uid: this.userid,
  21661. cid: this.id,
  21662. stage: this.courseType,
  21663. task: this.taskCount,
  21664. content: JSON.stringify(this.studyJuri),
  21665. },
  21666. ];
  21667. this.ajax
  21668. .post(this.$store.state.api + "addWorks", params)
  21669. .then((res) => {
  21670. this.$message({
  21671. message: "提交成功",
  21672. type: "success",
  21673. });
  21674. this.isNoHomeWork = true;
  21675. this.dialogVisible = false;
  21676. })
  21677. .catch((err) => {
  21678. this.$message.error("提交失败");
  21679. console.error(err);
  21680. });
  21681. }
  21682. },
  21683. selectCount() {
  21684. let params = {
  21685. cid: this.id,
  21686. chid: this.courseType,
  21687. uid: this.userid,
  21688. };
  21689. this.ajax
  21690. .get(this.$store.state.api + "selectToolsCount", params)
  21691. .then((res) => {
  21692. for (var i = 0; i < res.data[0].length; i++) {
  21693. if (res.data[0][i].tools == 1) {
  21694. this.wbCount = res.data[0][i].count;
  21695. } else if (res.data[0][i].tools == 2) {
  21696. this.wordCount = res.data[0][i].count;
  21697. } else if (res.data[0][i].tools == 3) {
  21698. this.mindCount = res.data[0][i].count;
  21699. } else if (res.data[0][i].tools == 4) {
  21700. this.askCount = res.data[0][i].count;
  21701. } else if (res.data[0][i].tools == 6) {
  21702. this.noteCount = res.data[0][i].count;
  21703. } else if (res.data[0][i].tools == 7) {
  21704. this.mindNetWorkCount = res.data[0][i].count;
  21705. } else if (res.data[0][i].tools == 8) {
  21706. this.libraryCount = res.data[0][i].count;
  21707. } else if (res.data[0][i].tools == 16) {
  21708. this.workCount = res.data[0][i].count;
  21709. } else if (res.data[0][i].tools == 10) {
  21710. this.timeCount = res.data[0][i].count;
  21711. } else if (res.data[0][i].tools == 15) {
  21712. this.answerCount = res.data[0][i].count;
  21713. } else if (res.data[0][i].tools == 18) {
  21714. this.trainCount = res.data[0][i].count;
  21715. }
  21716. }
  21717. })
  21718. .catch((err) => {
  21719. console.error(err);
  21720. });
  21721. },
  21722. openTools(t, i, index, c, sName,id) {
  21723. var z = JSON.parse(c);
  21724. this.noteName = sName;
  21725. if (t == 4) {
  21726. this.radio = [];
  21727. this.isAnswer = false;
  21728. let b = z[0].anwer;
  21729. this.radio = b;
  21730. this.askJson = z[0].askJson;
  21731. this.isAnswer = true;
  21732. this.dialogVisible5 = true;
  21733. } else if (t == 45) {
  21734. this.radio = [];
  21735. this.isAnswer = false;
  21736. let b = z[0].anwer;
  21737. this.radio = b;
  21738. this.testJson = z[0].testJson;
  21739. this.isAnswer = true;
  21740. this.dialogVisibleChoice = true;
  21741. }else if(t == 69){
  21742. this.oldEnglishJson1 = {}
  21743. this.oldEnglishJson = {}
  21744. this.englishList1 = {}
  21745. this.newEngIndex = -1;
  21746. this.isNoUserid = false;
  21747. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  21748. .toolChoose[i].englishList;
  21749. this.oldEnglishJson = z;
  21750. this.engWid = id;
  21751. this.newEnglishList = { engTitle:"",engText:"" }
  21752. this.newEnglishList1 = []
  21753. this.selectEngC(id,z);
  21754. }else if(t == 62){
  21755. this.videoType = 1;
  21756. this.videoJson = {};
  21757. this.videoJson = JSON.parse(c);
  21758. // this.videoJson =
  21759. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21760. // index
  21761. // ].toolChoose[i].videoJson;
  21762. this.dialogVisibleVideo = true;
  21763. }
  21764. // else if (t == 15) {
  21765. // this.answerQ = "";
  21766. // this.questionAnswer = "";
  21767. // this.answerQ = z[0].answerTitle;
  21768. // this.questionAnswer = z[0].answer;
  21769. // this.answerDialogVisible = true;
  21770. // }
  21771. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  21772. },
  21773. fastText(p, t) {
  21774. if (t == 1) {
  21775. this.commentText += p;
  21776. } else {
  21777. this.eScore.eBzText += p;
  21778. }
  21779. },
  21780. addTools(t, i, index) {
  21781. var a = 0;
  21782. // this.taskCount = index;
  21783. this.toolindex = i;
  21784. if (t == 1) {
  21785. if (this.wbCount > 0) {
  21786. this.updateCount(this.wbCount, t);
  21787. } else {
  21788. this.wbCount++;
  21789. a = this.wbCount;
  21790. this.toolsCount(a, t);
  21791. }
  21792. window.parent.postMessage(
  21793. {
  21794. tools: "1",
  21795. cid: this.id,
  21796. stage: this.courseType,
  21797. task: this.taskCount,
  21798. tool: i,
  21799. },
  21800. "*"
  21801. );
  21802. } else if (t == 2) {
  21803. if (this.wordCount > 0) {
  21804. this.updateCount(this.wordCount, t);
  21805. } else {
  21806. this.wordCount++;
  21807. a = this.wordCount;
  21808. this.toolsCount(a, t);
  21809. }
  21810. window.parent.postMessage({ tools: "2" }, "*");
  21811. } else if (t == 3) {
  21812. if (this.mindCount > 0) {
  21813. this.updateCount(this.mindCount, t);
  21814. } else {
  21815. this.mindCount++;
  21816. a = this.mindCount;
  21817. this.toolsCount(a, t);
  21818. }
  21819. window.parent.postMessage(
  21820. {
  21821. tools: "3",
  21822. cid: this.id,
  21823. stage: this.courseType,
  21824. task: this.taskCount,
  21825. tool: i,
  21826. },
  21827. "*"
  21828. );
  21829. } else if (t == 4) {
  21830. this.radio = [];
  21831. this.noteName = "";
  21832. this.isAnswer = false;
  21833. if (this.askCount > 0) {
  21834. this.updateCount(this.askCount, t);
  21835. } else {
  21836. this.askCount++;
  21837. a = this.askCount;
  21838. this.toolsCount(a, t);
  21839. }
  21840. if (!this.dialogVisible2) {
  21841. this.askJson.askJson =
  21842. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21843. index
  21844. ].toolChoose[i].askJson;
  21845. this.askJson.askTitle =
  21846. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21847. index
  21848. ].toolChoose[i].askTitle;
  21849. this.askJson.askCount =
  21850. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21851. index
  21852. ].toolChoose[i].askCount;
  21853. } else {
  21854. this.askJson.askJson = this.chapTools.askJson.askJson;
  21855. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  21856. this.askJson.askCount = this.chapTools.askJson.askCount;
  21857. }
  21858. for (var k = 0; k < this.askJson.askJson.length; k++) {
  21859. if (this.askJson.askJson[k].type == "2") {
  21860. this.radio.push([]);
  21861. } else {
  21862. this.radio.push("");
  21863. }
  21864. }
  21865. this.dialogVisible5 = true;
  21866. // window.parent.postMessage({ tools: "4" }, "*");
  21867. } else if (t == 45) {
  21868. this.noteName = "";
  21869. this.radio = [];
  21870. this.isAnswer = false;
  21871. if (this.askCount > 0) {
  21872. this.updateCount(this.askCount, t);
  21873. } else {
  21874. this.askCount++;
  21875. a = this.askCount;
  21876. this.toolsCount(a, t);
  21877. }
  21878. this.testJson =
  21879. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21880. index
  21881. ].toolChoose[i].testJson;
  21882. for (var k = 0; k < this.testJson.testJson.length; k++) {
  21883. if (this.testJson.testJson[k].type == "2") {
  21884. this.radio.push([]);
  21885. } else {
  21886. this.radio.push("");
  21887. }
  21888. }
  21889. this.dialogVisibleChoice = true;
  21890. // window.parent.postMessage({ tools: "4" }, "*");
  21891. } else if (t == 5) {
  21892. if (this.scoreCount > 0) {
  21893. this.updateCount(this.scoreCount, t);
  21894. } else {
  21895. this.scoreCount++;
  21896. a = this.scoreCount;
  21897. this.toolsCount(a, t);
  21898. }
  21899. this.dialogVisible4 = true;
  21900. // window.parent.postMessage({ tools: "5" }, "*");
  21901. } else if (t == 6) {
  21902. if (this.noteCount > 0) {
  21903. this.updateCount(this.noteCount, t);
  21904. } else {
  21905. this.noteCount++;
  21906. a = this.noteCount;
  21907. this.toolsCount(a, t);
  21908. }
  21909. window.parent.postMessage(
  21910. {
  21911. tools: "6",
  21912. cid: this.id,
  21913. stage: this.courseType,
  21914. task: this.taskCount,
  21915. tool: i,
  21916. },
  21917. "*"
  21918. );
  21919. } else if (t == 7) {
  21920. if (this.mindNetWorkCount > 0) {
  21921. this.updateCount(this.mindNetWorkCount, t);
  21922. } else {
  21923. this.mindNetWorkCount++;
  21924. a = this.mindNetWorkCount;
  21925. this.toolsCount(a, t);
  21926. }
  21927. window.parent.postMessage(
  21928. {
  21929. tools: "7",
  21930. cid: this.id,
  21931. stage: this.courseType,
  21932. task: this.taskCount,
  21933. tool: i,
  21934. },
  21935. "*"
  21936. );
  21937. } else if (t == 16) {
  21938. if (this.workCount > 0) {
  21939. this.updateCount(this.workCount, t);
  21940. } else {
  21941. this.workCount++;
  21942. a = this.workCount;
  21943. this.toolsCount(a, t);
  21944. }
  21945. this.dialogVisible = true;
  21946. } else if (t == 50) {
  21947. if (this.tType == 2) {
  21948. this.$message.error("不支持学生使用");
  21949. return;
  21950. }
  21951. this.plworkFile = [];
  21952. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  21953. if (!this.uploadCid) {
  21954. this.$message.error(
  21955. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  21956. );
  21957. return;
  21958. }
  21959. // this.uploadCid =
  21960. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21961. // index
  21962. // ].toolChoose[i].uploadJson[0];
  21963. this.selectUploadStudent(2);
  21964. } else if (t == 8) {
  21965. if (this.libraryCount > 0) {
  21966. this.updateCount(this.libraryCount, t);
  21967. } else {
  21968. this.libraryCount++;
  21969. a = this.libraryCount;
  21970. this.toolsCount(a, t);
  21971. }
  21972. window.parent.postMessage({ tools: "8" }, "*");
  21973. } else if (t == 17) {
  21974. if (this.libraryCount > 0) {
  21975. this.updateCount(this.libraryCount, t);
  21976. } else {
  21977. this.libraryCount++;
  21978. a = this.libraryCount;
  21979. this.toolsCount(a, t);
  21980. }
  21981. window.parent.postMessage({ tools: "17" }, "*");
  21982. } else if (t == 18) {
  21983. if (this.trainCount > 0) {
  21984. this.updateCount(this.trainCount, t);
  21985. } else {
  21986. this.trainCount++;
  21987. a = this.trainCount;
  21988. this.toolsCount(a, t);
  21989. }
  21990. window.parent.postMessage({ tools: "18" }, "*");
  21991. } else if (t == 10) {
  21992. if (this.timeCount > 0) {
  21993. this.updateCount(this.timeCount, t);
  21994. } else {
  21995. this.timeCount++;
  21996. a = this.timeCount;
  21997. this.toolsCount(a, t);
  21998. }
  21999. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  22000. .taskJson[index].toolChoose[i].preTime
  22001. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22002. .toolChoose[i].preTime
  22003. : "";
  22004. this.timeDialogVisible = true;
  22005. } else if (t == 15) {
  22006. this.answerQ = "";
  22007. this.questionAnswer = "";
  22008. if (this.answerCount > 0) {
  22009. this.updateCount(this.answerCount, t);
  22010. } else {
  22011. this.answerCount++;
  22012. a = this.answerCount;
  22013. this.toolsCount(a, t);
  22014. }
  22015. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22016. .taskJson[index].toolChoose[i].answerQ
  22017. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22018. .toolChoose[i].answerQ
  22019. : "";
  22020. this.answerDialogVisible = true;
  22021. } else if (t == 21) {
  22022. window.parent.postMessage({ tools: "21" }, "*");
  22023. } else if (t == 22) {
  22024. window.parent.postMessage({ tools: "22" }, "*");
  22025. } else if (t == 23) {
  22026. window.parent.postMessage({ tools: "23" }, "*");
  22027. } else if (t == 24) {
  22028. window.parent.postMessage({ tools: "24" }, "*");
  22029. } else if (t == 25) {
  22030. window.parent.postMessage({ tools: "25" }, "*");
  22031. } else if (t == 31) {
  22032. window.parent.postMessage({ tools: "31" }, "*");
  22033. } else if (t == 28) {
  22034. window.parent.postMessage({ tools: "28" }, "*");
  22035. } else if (t == 37) {
  22036. window.parent.postMessage({ tools: "37" }, "*");
  22037. } else if (t == 38) {
  22038. window.parent.postMessage({ tools: "38" }, "*");
  22039. } else if (t == 39) {
  22040. window.parent.postMessage({ tools: "39" }, "*");
  22041. } else if (t == 32) {
  22042. window.parent.postMessage({ tools: "32" }, "*");
  22043. } else if (t == 66) {
  22044. window.parent.postMessage({ tools: "66" }, "*");
  22045. } else if (t == 67) {
  22046. window.parent.postMessage({ tools: "67" }, "*");
  22047. } else if (t == 68) {
  22048. window.parent.postMessage({ tools: "68" }, "*");
  22049. } else if (t == 57) {
  22050. // window.parent.postMessage({ tools: "57" }, "*");
  22051. window.parent.postMessage(
  22052. {
  22053. tools: "57u",
  22054. cid: this.id,
  22055. stage: this.courseType,
  22056. task: this.taskCount,
  22057. tool: i,
  22058. },
  22059. "*"
  22060. );
  22061. } else if (t == 58) {
  22062. window.parent.postMessage({ tools: "58" }, "*");
  22063. } else if (t == 59) {
  22064. window.parent.postMessage({ tools: "59" }, "*");
  22065. } else if (t == 60) {
  22066. window.parent.postMessage({ tools: "60" }, "*");
  22067. } else if (t == 61) {
  22068. window.parent.postMessage({ tools: "61" }, "*");
  22069. } else if (t == 63) {
  22070. window.parent.postMessage({ tools: "63" }, "*");
  22071. } else if (t == 71) {
  22072. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  22073. // this.$message.error("该工具不可使用");
  22074. // return
  22075. // }
  22076. window.parent.postMessage({ tools: "71" }, "*");
  22077. } else if (t == 69) {
  22078. if (this.worksStudent[i].length) {
  22079. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22080. if (this.userid == this.worksStudent[i][k].userid) {
  22081. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  22082. break;
  22083. } else {
  22084. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  22085. }
  22086. }
  22087. } else {
  22088. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  22089. }
  22090. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  22091. .taskJson[index].toolChoose[i].englishList
  22092. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22093. .toolChoose[i].englishList
  22094. : {};
  22095. this.englishToolIndex = i;
  22096. this.myAnList = this.myAnswerList1;
  22097. this.engDialogVisible = true;
  22098. } else if (t == 70) {
  22099. if (this.worksStudent[i].length) {
  22100. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22101. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  22102. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  22103. break;
  22104. } else {
  22105. this.englishVoiceJsonWork = [];
  22106. }
  22107. }
  22108. } else {
  22109. this.englishVoiceJsonWork = [];
  22110. }
  22111. let englishVoiceJson = {}
  22112. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22113. .taskJson[index].toolChoose[i].englishVoiceJson
  22114. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22115. .toolChoose[i].englishVoiceJson
  22116. : {};
  22117. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  22118. this.EnglishVoiceDialog = true;
  22119. } else if (t == 65) {
  22120. if (this.tType == 2) {
  22121. this.$message.error("不支持学生使用");
  22122. return;
  22123. }
  22124. this.uploadCid = this.tcid;
  22125. if (!this.uploadCid) {
  22126. this.$message.error(
  22127. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  22128. );
  22129. return;
  22130. }
  22131. this.selectPickStudent();
  22132. } else if (t == 26) {
  22133. window.parent.postMessage(
  22134. {
  22135. tools: "26",
  22136. cid: this.id,
  22137. stage: this.courseType,
  22138. task: this.taskCount,
  22139. tool: i,
  22140. },
  22141. "*"
  22142. );
  22143. } else if (t == 40) {
  22144. if (this.evalCount > 0) {
  22145. this.updateCount(this.evalCount, t);
  22146. } else {
  22147. this.evalCount++;
  22148. a = this.evalCount;
  22149. this.toolsCount(a, t);
  22150. }
  22151. this.eScore = { eBzText: "", eStar: [] };
  22152. if (this.worksStudent[i].length) {
  22153. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22154. if (this.userid == this.worksStudent[i][k].userid) {
  22155. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  22156. this.rateJson =
  22157. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22158. index
  22159. ].toolChoose[i].rateJson;
  22160. break;
  22161. } else {
  22162. this.rateJson =
  22163. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22164. index
  22165. ].toolChoose[i].rateJson;
  22166. }
  22167. }
  22168. } else {
  22169. this.rateJson =
  22170. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22171. index
  22172. ].toolChoose[i].rateJson;
  22173. }
  22174. this.isStar = false;
  22175. this.studentEvalDialogVisible = true;
  22176. } else if (t == 41) {
  22177. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22178. .taskJson[index].toolChoose[i].selectJson
  22179. ? JSON.parse(
  22180. JSON.stringify(
  22181. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22182. index
  22183. ].toolChoose[i].selectJson
  22184. )
  22185. )
  22186. : { url: "", select: [], answer: [] };
  22187. if (this.worksStudent[i].length) {
  22188. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22189. if (this.userid == this.worksStudent[i][k].userid) {
  22190. var a = this.worksStudent[i][k].works.split(",");
  22191. for (var ki = 0; ki < a.length; ki++) {
  22192. a[ki] = parseInt(a[ki]);
  22193. }
  22194. this.selectAnswer = {
  22195. answer: a,
  22196. stu: this.worksStudent[i][k].sName,
  22197. };
  22198. break;
  22199. } else {
  22200. this.selectAnswer = { answer: [], stu: "" };
  22201. }
  22202. }
  22203. } else {
  22204. this.selectAnswer = { answer: [], stu: "" };
  22205. }
  22206. this.isSelect = false;
  22207. this.dialogVisibleSelect = true;
  22208. } else if (t == 44) {
  22209. window.parent.postMessage({ tools: "44" }, "*");
  22210. } else if (t == 47) {
  22211. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22212. .taskJson[index].toolChoose[i].sentenceList
  22213. ? JSON.parse(
  22214. JSON.stringify(
  22215. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22216. index
  22217. ].toolChoose[i].sentenceList
  22218. )
  22219. )
  22220. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22221. for (var q = 0; q < this.sentenceList.length; q++) {
  22222. this.sentenceList[q].chooseSenList = [];
  22223. this.sentenceList[q].addChangeSen = [];
  22224. this.sentenceList[q].addChangeSen = JSON.parse(
  22225. JSON.stringify(this.sentenceList[q].addSentence)
  22226. );
  22227. this.sentenceList[q].chooseSenList.length =
  22228. this.sentenceList[q].rightAnswer.length;
  22229. }
  22230. this.dialogVisibleSentence = true;
  22231. } else if (t == 48) {
  22232. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22233. .taskJson[index].toolChoose[i].tableJson
  22234. ? JSON.parse(
  22235. JSON.stringify(
  22236. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22237. index
  22238. ].toolChoose[i].tableJson
  22239. )
  22240. )
  22241. : { text: "" };
  22242. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  22243. if (this.worksStudent[i].length) {
  22244. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22245. if (this.userid == this.worksStudent[i][k].userid) {
  22246. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22247. break;
  22248. }
  22249. }
  22250. }
  22251. this.dialogVisibleTable = true;
  22252. } else if (t == 52) {
  22253. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22254. .taskJson[index].toolChoose[i].wordJson
  22255. ? JSON.parse(
  22256. JSON.stringify(
  22257. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22258. index
  22259. ].toolChoose[i].wordJson
  22260. )
  22261. )
  22262. : { text: "" };
  22263. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  22264. if (this.worksStudent[i].length) {
  22265. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22266. if (this.userid == this.worksStudent[i][k].userid) {
  22267. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22268. break;
  22269. }
  22270. }
  22271. }
  22272. this.dialogVisibleWord = true;
  22273. } else if (t == 49) {
  22274. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  22275. return
  22276. }
  22277. this.groupJson =
  22278. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22279. index
  22280. ].toolChoose[i].groupJson;
  22281. this.islock = this.groupJson.islock == 1 ? true : false;
  22282. this.dialogVisibleGroup = true;
  22283. } else if (t == 62) {
  22284. this.videoType = 0;
  22285. this.videoJson = {};
  22286. this.videoJson =
  22287. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22288. index
  22289. ].toolChoose[i].videoJson;
  22290. this.dialogVisibleVideo = true;
  22291. }
  22292. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  22293. },
  22294. teacherWorkSubmit(t, i, index, s) {
  22295. this.sStudent = s;
  22296. this.toolindex = i;
  22297. this.sTool = t;
  22298. if (this.tType !== "1" && this.tType !== "4") {
  22299. return;
  22300. }
  22301. if (t == 16 || t == 32 || t == 50) {
  22302. this.dialogVisibleWorks = true;
  22303. } else if (t == 15) {
  22304. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22305. .taskJson[index].toolChoose[i].answerQ
  22306. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22307. .toolChoose[i].answerQ
  22308. : "";
  22309. this.questionAnswer = "";
  22310. this.answerDialogVisibleTeacher = true; //问答
  22311. } else if (t == 52) {
  22312. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22313. .taskJson[index].toolChoose[i].wordJson
  22314. ? JSON.parse(
  22315. JSON.stringify(
  22316. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22317. index
  22318. ].toolChoose[i].wordJson
  22319. )
  22320. )
  22321. : { text: "" };
  22322. if (this.worksStudent[i].length) {
  22323. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22324. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22325. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22326. break;
  22327. }
  22328. }
  22329. }
  22330. this.dialogVisibleWordTeacher = true; //文档
  22331. } else if (t == 4) {
  22332. this.radio = [];
  22333. this.noteName = "";
  22334. this.isAnswer = false;
  22335. if (this.askCount > 0) {
  22336. this.updateCount(this.askCount, t);
  22337. } else {
  22338. this.askCount++;
  22339. a = this.askCount;
  22340. this.toolsCount(a, t);
  22341. }
  22342. if (!this.dialogVisible2) {
  22343. this.askJson.askJson =
  22344. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22345. index
  22346. ].toolChoose[i].askJson;
  22347. this.askJson.askTitle =
  22348. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22349. index
  22350. ].toolChoose[i].askTitle;
  22351. this.askJson.askCount =
  22352. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22353. index
  22354. ].toolChoose[i].askCount;
  22355. } else {
  22356. this.askJson.askJson = this.chapTools.askJson.askJson;
  22357. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22358. this.askJson.askCount = this.chapTools.askJson.askCount;
  22359. }
  22360. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22361. if (this.askJson.askJson[k].type == "2") {
  22362. this.radio.push([]);
  22363. } else {
  22364. this.radio.push("");
  22365. }
  22366. }
  22367. this.dialogVisible5Teacher = true;
  22368. } else if (t == 45) {
  22369. this.noteName = "";
  22370. this.radio = [];
  22371. this.isAnswer = false;
  22372. if (this.askCount > 0) {
  22373. this.updateCount(this.askCount, t);
  22374. } else {
  22375. this.askCount++;
  22376. a = this.askCount;
  22377. this.toolsCount(a, t);
  22378. }
  22379. this.testJson =
  22380. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22381. index
  22382. ].toolChoose[i].testJson;
  22383. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22384. if (this.testJson.testJson[k].type == "2") {
  22385. this.radio.push([]);
  22386. } else {
  22387. this.radio.push("");
  22388. }
  22389. }
  22390. this.dialogVisibleChoiceTeacher = true;
  22391. } else if (t == 41) {
  22392. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22393. .taskJson[index].toolChoose[i].selectJson
  22394. ? JSON.parse(
  22395. JSON.stringify(
  22396. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22397. index
  22398. ].toolChoose[i].selectJson
  22399. )
  22400. )
  22401. : { url: "", select: [], answer: [] };
  22402. if (this.worksStudent[i].length) {
  22403. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22404. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22405. var a = this.worksStudent[i][k].works.split(",");
  22406. for (var ki = 0; ki < a.length; ki++) {
  22407. a[ki] = parseInt(a[ki]);
  22408. }
  22409. this.selectAnswer = {
  22410. answer: a,
  22411. stu: this.worksStudent[i][k].sName,
  22412. };
  22413. break;
  22414. } else {
  22415. this.selectAnswer = { answer: [], stu: "" };
  22416. }
  22417. }
  22418. } else {
  22419. this.selectAnswer = { answer: [], stu: "" };
  22420. }
  22421. this.isSelect = false;
  22422. this.dialogVisibleSelectTeacher = true;
  22423. } else if (t == 47) {
  22424. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22425. .taskJson[index].toolChoose[i].sentenceList
  22426. ? JSON.parse(
  22427. JSON.stringify(
  22428. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22429. index
  22430. ].toolChoose[i].sentenceList
  22431. )
  22432. )
  22433. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22434. for (var q = 0; q < this.sentenceList.length; q++) {
  22435. this.sentenceList[q].chooseSenList = [];
  22436. this.sentenceList[q].addChangeSen = [];
  22437. this.sentenceList[q].addChangeSen = JSON.parse(
  22438. JSON.stringify(this.sentenceList[q].addSentence)
  22439. );
  22440. this.sentenceList[q].chooseSenList.length =
  22441. this.sentenceList[q].rightAnswer.length;
  22442. }
  22443. this.dialogVisibleSentenceTeacher = true;
  22444. } else if (t == 48) {
  22445. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22446. .taskJson[index].toolChoose[i].tableJson
  22447. ? JSON.parse(
  22448. JSON.stringify(
  22449. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22450. index
  22451. ].toolChoose[i].tableJson
  22452. )
  22453. )
  22454. : { text: "" };
  22455. if (this.worksStudent[i].length) {
  22456. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22457. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22458. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22459. break;
  22460. }
  22461. }
  22462. }
  22463. this.dialogVisibleTableTeacher = true;
  22464. } else if (t == 40) {
  22465. if (this.evalCount > 0) {
  22466. this.updateCount(this.evalCount, t);
  22467. } else {
  22468. this.evalCount++;
  22469. a = this.evalCount;
  22470. this.toolsCount(a, t);
  22471. }
  22472. this.eScore = { eBzText: "", eStar: [] };
  22473. if (this.worksStudent[i].length) {
  22474. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22475. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22476. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  22477. this.rateJson =
  22478. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22479. index
  22480. ].toolChoose[i].rateJson;
  22481. break;
  22482. } else {
  22483. this.rateJson =
  22484. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22485. index
  22486. ].toolChoose[i].rateJson;
  22487. }
  22488. }
  22489. } else {
  22490. this.rateJson =
  22491. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22492. index
  22493. ].toolChoose[i].rateJson;
  22494. }
  22495. this.isStar = false;
  22496. this.studentEvalDialogVisibleTeacher = true;
  22497. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  22498. window.parent.postMessage(
  22499. {
  22500. tools: t + "teacher",
  22501. cid: this.id,
  22502. stage: this.courseType,
  22503. task: this.taskCount,
  22504. tool: i,
  22505. student: this.sStudent,
  22506. },
  22507. "*"
  22508. );
  22509. }
  22510. },
  22511. openCocoPi(tool, i, uid, uname) {
  22512. let student = {
  22513. userid: uid,
  22514. student: uname,
  22515. };
  22516. if (tool == 57) {
  22517. window.parent.postMessage(
  22518. {
  22519. tools: tool + "teacher",
  22520. cid: this.id,
  22521. stage: this.courseType,
  22522. task: this.taskCount,
  22523. tool: i,
  22524. student: student,
  22525. },
  22526. "*"
  22527. );
  22528. }
  22529. },
  22530. setRightAnswer(s, i, j) {
  22531. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  22532. if (
  22533. this.sentenceList[i].chooseSenList[q] == undefined ||
  22534. this.sentenceList[i].chooseSenList[q] == ""
  22535. ) {
  22536. this.sentenceList[i].chooseSenList[q] = s;
  22537. this.sentenceList[i].addChangeSen[j] = "";
  22538. break;
  22539. }
  22540. }
  22541. this.$forceUpdate();
  22542. },
  22543. returnCard(r, i, j) {
  22544. var a = this.sentenceList[i].addSentence.indexOf(r);
  22545. this.sentenceList[i].chooseSenList[j] = "";
  22546. this.sentenceList[i].addChangeSen[a] = r;
  22547. this.$forceUpdate();
  22548. },
  22549. // addSentenceTool() {
  22550. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22551. // this.taskCount
  22552. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  22553. // this.sentenceList = [
  22554. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  22555. // ];
  22556. // this.dialogVisibleSentence = false;
  22557. // },
  22558. toolsCount(a, t) {
  22559. let params = {
  22560. cid: this.id,
  22561. chid: this.courseType,
  22562. uid: this.userid,
  22563. tid: t,
  22564. count: a,
  22565. };
  22566. this.ajax
  22567. .get(this.$store.state.api + "insertToolsCount", params)
  22568. .then((res) => {
  22569. this.selectCount();
  22570. })
  22571. .catch((err) => {
  22572. console.error(err);
  22573. });
  22574. },
  22575. updateCount(c, t) {
  22576. c++;
  22577. let params = {
  22578. cid: this.id,
  22579. chid: this.courseType,
  22580. uid: this.userid,
  22581. tid: t,
  22582. count: c,
  22583. };
  22584. this.ajax
  22585. .get(this.$store.state.api + "updateToolsCount", params)
  22586. .then((res) => {
  22587. this.selectCount();
  22588. })
  22589. .catch((err) => {
  22590. console.error(err);
  22591. });
  22592. },
  22593. checkEva() {
  22594. if (this.evalua != "") {
  22595. for (var i = 0; i < this.evaJuri.length; i++) {
  22596. if (this.evalua == this.evaJuri[i].id) {
  22597. this.eTitle = this.evaJuri[i].title;
  22598. this.eJson = JSON.parse(this.evaJuri[i].content);
  22599. }
  22600. }
  22601. this.$forceUpdate();
  22602. setTimeout(() => {
  22603. this.setMindData();
  22604. }, 0);
  22605. }
  22606. },
  22607. selectEva() {
  22608. let params = {
  22609. oid: this.oid,
  22610. };
  22611. this.ajax
  22612. .get(this.$store.state.api + "selectAllEvaluation", params)
  22613. .then((res) => {
  22614. this.evaJuri = res.data[0];
  22615. })
  22616. .catch((err) => {
  22617. console.error(err);
  22618. });
  22619. },
  22620. setMindData() {
  22621. this.data.data = [];
  22622. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  22623. let _eJson = Object.keys(this.eJson);
  22624. let _e = this.eJson;
  22625. for (let i = 0; i < _eJson.length; i++) {
  22626. let element = _e[_eJson[i]];
  22627. this.data.data.push({
  22628. id: element.id,
  22629. parentid: "root",
  22630. topic: element.name,
  22631. });
  22632. let _eJsonc = Object.keys(element.child);
  22633. let _e2 = element.child;
  22634. for (let j = 0; j < _eJsonc.length; j++) {
  22635. let _ec = _e2[_eJsonc[j]];
  22636. this.data.data.push({
  22637. id: _ec.id,
  22638. parentid: element.id,
  22639. topic: _ec.name,
  22640. });
  22641. let _eJsonz = Object.keys(_ec.child);
  22642. let _e3 = _ec.child;
  22643. for (let z = 0; z < _eJsonz.length; z++) {
  22644. let _ez = _e3[_eJsonz[z]];
  22645. this.data.data.push({
  22646. id: _ez.id,
  22647. parentid: _ec.id,
  22648. topic: _ez.name,
  22649. });
  22650. }
  22651. }
  22652. }
  22653. this.$forceUpdate();
  22654. },
  22655. checkFileFull(type, url) {
  22656. this.fullDialogVisible = true;
  22657. this.fulltype = type;
  22658. this.fullUrl = url;
  22659. },
  22660. async checkFileFull1(t, f) {
  22661. this.fullDialogVisible = true;
  22662. if (t == 6) {
  22663. this.fulltype = 1;
  22664. this.fullUrl = JSON.parse(JSON.stringify(f));
  22665. } else if (t == 8) {
  22666. this.fulltype = 2;
  22667. this.fullUrl = f.url;
  22668. } else if (
  22669. t == 3 &&
  22670. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  22671. "PDF"
  22672. ) {
  22673. this.fulltype = 3;
  22674. this.fullUrl = f.url;
  22675. } else if (t == 3) {
  22676. this.fulltype = 2;
  22677. let _uuurl = await this.checkLink(f.url);
  22678. console.log(_uuurl)
  22679. this.fullUrl =
  22680. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  22681. }
  22682. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  22683. },
  22684. openSname(n, id, i, uid) {
  22685. this.snameWid = id;
  22686. this.worksSName = n;
  22687. this.worksSid = uid == n ? "" : uid;
  22688. this.toolindex = i;
  22689. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  22690. if (!this.uploadCid) {
  22691. this.$message.error(
  22692. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  22693. );
  22694. return;
  22695. }
  22696. this.selectUploadStudent(1);
  22697. },
  22698. updateName() {
  22699. let params = {
  22700. n: this.worksSName,
  22701. cid: this.snameWid,
  22702. };
  22703. this.ajax
  22704. .get(this.$store.state.api + "updateCourseWorksName", params)
  22705. .then((res) => {
  22706. this.$message({
  22707. message: "修改成功",
  22708. type: "success",
  22709. });
  22710. this.dialogVisibleSname = false;
  22711. this.getCourseDetail(2);
  22712. this.snameWid = "";
  22713. this.worksSName = "";
  22714. })
  22715. .catch((err) => {
  22716. console.error(err);
  22717. });
  22718. },
  22719. downloadFile2(f) {
  22720. // const loading = this.$loading.service({
  22721. // background: "rgba(255, 255, 255, 0.7)",
  22722. // target: document.body,
  22723. // text: "文件加载中...",
  22724. // });
  22725. // let url2 = f.url;
  22726. // let _url2 = "";
  22727. // if (
  22728. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  22729. // ) {
  22730. // _url2 = url2.split(
  22731. // "https://view.officeapps.live.com/op/view.aspx?src="
  22732. // )[1];
  22733. // } else {
  22734. // _url2 = url2;
  22735. // }
  22736. // let params = {
  22737. // url: _url2,
  22738. // name: f.name,
  22739. // };
  22740. // this.ajax
  22741. // .get(this.$store.state.api + "download", params)
  22742. // .then((res) => {
  22743. // loading.close();
  22744. // let content = res.data.data.data;
  22745. // let ab = new ArrayBuffer(content.length);
  22746. // let view = new Uint8Array(ab);
  22747. // for (var i = 0; i < content.length; ++i) {
  22748. // view[i] = content[i];
  22749. // }
  22750. // let elink = document.createElement("a");
  22751. // elink.download = f.name;
  22752. // elink.style.display = "none";
  22753. // let blob = new Blob([ab], {
  22754. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  22755. // });
  22756. // elink.href = URL.createObjectURL(blob);
  22757. // document.body.appendChild(elink);
  22758. // elink.click();
  22759. // document.body.removeChild(elink);
  22760. // })
  22761. // .catch((err) => {
  22762. // loading.close();
  22763. // console.error(err);
  22764. // });
  22765. var credentials = {
  22766. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  22767. secretAccessKey: "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",
  22768. }; //秘钥形式的登录上传
  22769. window.AWS.config.update(credentials);
  22770. window.AWS.config.region = "cn-northwest-1"; //设置区域
  22771. let url2 = f.url;
  22772. let _url2 = "";
  22773. if (
  22774. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  22775. ) {
  22776. _url2 = url2.split(
  22777. "https://view.officeapps.live.com/op/view.aspx?src="
  22778. )[1];
  22779. } else {
  22780. _url2 = url2;
  22781. }
  22782. let _this = this;
  22783. _this.downLoading = true
  22784. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  22785. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  22786. var params = {
  22787. Bucket: "ccrb",
  22788. Key: name
  22789. };
  22790. s3.getObject(params, function (err, data) {
  22791. _this.downLoading = false
  22792. if (err) console.log(err, err.stack); // an error occurred
  22793. else {
  22794. let url = window.URL.createObjectURL(new Blob([data.Body]));
  22795. let a = document.createElement("a");
  22796. a.name = f.name;
  22797. a.href = url;
  22798. a.download = f.name;
  22799. a.click();
  22800. console.log(data);
  22801. } // sxuccessful response
  22802. });
  22803. return;
  22804. let url = f.url;
  22805. let _url = "";
  22806. if (
  22807. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  22808. ) {
  22809. _url = url.split(
  22810. "https://view.officeapps.live.com/op/view.aspx?src="
  22811. )[1];
  22812. } else {
  22813. _url = url;
  22814. }
  22815. _this.downLoading = true
  22816. // const loading = _this.$loading.service({
  22817. // background: "rgba(255, 255, 255, 0.7)",
  22818. // target: document.body,
  22819. // text: "文件加载中...",
  22820. // });
  22821. let x = new XMLHttpRequest();
  22822. x.open("GET", _url, true);
  22823. x.responseType = "blob";
  22824. x.onload = function () {
  22825. _this.downLoading = false
  22826. // loading.close();
  22827. let url = window.URL.createObjectURL(new Blob([x.response]));
  22828. let a = document.createElement("a");
  22829. a.name = f.name;
  22830. a.href = url;
  22831. a.download = f.name;
  22832. a.click();
  22833. };
  22834. x.send();
  22835. },
  22836. downloadFile(url) {
  22837. let hz = url.substring(url.lastIndexOf(".") + 1);
  22838. if (hz == "txt" || hz == "md") {
  22839. this.lookTxt(url);
  22840. return;
  22841. }
  22842. var credentials = {
  22843. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  22844. secretAccessKey: "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",
  22845. }; //秘钥形式的登录上传
  22846. window.AWS.config.update(credentials);
  22847. window.AWS.config.region = "cn-northwest-1"; //设置区域
  22848. let url2 = url;
  22849. let _url2 = "";
  22850. if (
  22851. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  22852. ) {
  22853. _url2 = url2.split(
  22854. "https://view.officeapps.live.com/op/view.aspx?src="
  22855. )[1];
  22856. } else {
  22857. _url2 = url2;
  22858. }
  22859. const loading2 = this.$loading.service({
  22860. background: "rgba(255, 255, 255, 0.7)",
  22861. target: document.body,
  22862. text: "文件加载中...",
  22863. });
  22864. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  22865. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  22866. var params = {
  22867. Bucket: "ccrb",
  22868. Key: name
  22869. };
  22870. s3.getObject(params, function (err, data) {
  22871. loading2.close();
  22872. if (err) console.log(err, err.stack); // an error occurred
  22873. else {
  22874. let url = window.URL.createObjectURL(new Blob([data.Body]));
  22875. let a = document.createElement("a");
  22876. a.name = name;
  22877. a.href = url;
  22878. a.download = name;
  22879. a.click();
  22880. console.log(data);
  22881. } // sxuccessful response
  22882. });
  22883. return;
  22884. let _this = this;
  22885. let _url = "";
  22886. if (
  22887. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  22888. ) {
  22889. _url = url.split(
  22890. "https://view.officeapps.live.com/op/view.aspx?src="
  22891. )[1];
  22892. } else {
  22893. _url = url;
  22894. }
  22895. const x = new XMLHttpRequest();
  22896. x.open("GET", _url, true);
  22897. x.responseType = "blob";
  22898. // this.downLoading = true
  22899. const loading = _this.$loading.service({
  22900. background: "rgba(255, 255, 255, 0.7)",
  22901. target: document.body,
  22902. text: "文件加载中...",
  22903. });
  22904. // _this.$message.success("文件下载中...");
  22905. x.onload = function (e) {
  22906. this.downLoading = false
  22907. loading.close();
  22908. let content = x.response;
  22909. let elink = document.createElement("a");
  22910. elink.download = decodeURI(
  22911. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  22912. );
  22913. elink.style.display = "none";
  22914. let blob = new Blob([content]);
  22915. elink.href = URL.createObjectURL(blob);
  22916. document.body.appendChild(elink);
  22917. elink.click();
  22918. document.body.removeChild(elink);
  22919. };
  22920. x.send();
  22921. },
  22922. openLine(url) {
  22923. window.open(url);
  22924. },
  22925. resize() {
  22926. if (document.getElementsByClassName("box_course").length) {
  22927. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  22928. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  22929. if (this.showType == 2 || this.showType == 3) {
  22930. document.getElementsByClassName("navBox")[0].style.height =
  22931. a - 40 + 0+ "px";
  22932. } else {
  22933. document.getElementsByClassName("navBox")[0].style.height =
  22934. a - 40 + "px";
  22935. }
  22936. }
  22937. this.Stbodywidth =
  22938. document.getElementsByClassName("student_body").length &&
  22939. document.getElementsByClassName("student_body")[0].offsetWidth;
  22940. },
  22941. closeDraw() {
  22942. this.bg = null;
  22943. this.drawShow = false;
  22944. },
  22945. showPicturePaint(url) {
  22946. let params = {
  22947. img: url,
  22948. };
  22949. this.ajax
  22950. .get(this.$store.state.api + "imgToBase64", params)
  22951. .then((res) => {
  22952. this.drawShow = true;
  22953. this.bg = res.data[0].img;
  22954. })
  22955. .catch((err) => {
  22956. console.error(err);
  22957. });
  22958. },
  22959. addImgDraw(base64) {
  22960. let file = { name: "批注图.png" };
  22961. let img = this.dataUrlToFile(base64, file);
  22962. this.beforeUpload1(img, 5);
  22963. },
  22964. addImgDrawImG(url) {
  22965. // console.log(url);
  22966. let params = [
  22967. {
  22968. wid: this.commentDetail.wid,
  22969. img: url,
  22970. },
  22971. ];
  22972. this.ajax
  22973. .post(this.$store.state.api + "updateCourseWorks", params)
  22974. .then((res) => {
  22975. this.$message({
  22976. message: "提交成功",
  22977. type: "success",
  22978. });
  22979. this.drawShow = false;
  22980. this.bg = "";
  22981. this.selectSWorks();
  22982. this.selectStudent();
  22983. })
  22984. .catch((err) => {
  22985. this.$message.error("提交失败");
  22986. console.error(err);
  22987. });
  22988. },
  22989. deletePicturePaint() {
  22990. this.$confirm("确定删除此批注吗?", "提示", {
  22991. confirmButtonText: "确定",
  22992. cancelButtonText: "取消",
  22993. type: "warning",
  22994. })
  22995. .then(() => {
  22996. let params = [
  22997. {
  22998. wid: this.commentDetail.wid,
  22999. img: "",
  23000. },
  23001. ];
  23002. this.ajax
  23003. .post(this.$store.state.api + "updateCourseWorks", params)
  23004. .then((res) => {
  23005. this.$message({
  23006. message: "删除成功",
  23007. type: "success",
  23008. });
  23009. this.selectSWorks();
  23010. this.selectStudent();
  23011. })
  23012. .catch((err) => {
  23013. this.$message.error("删除失败");
  23014. console.error(err);
  23015. });
  23016. })
  23017. .catch(() => {});
  23018. },
  23019. getAudioVideo(constraintsData) {
  23020. if (navigator.mediaDevices === undefined) {
  23021. navigator.mediaDevices = {};
  23022. }
  23023. if (navigator.mediaDevices.getUserMedia === undefined) {
  23024. navigator.mediaDevices.getUserMedia = function (constraints) {
  23025. // 首先,如果有getUserMedia的话,就获得它
  23026. var getUserMedia =
  23027. navigator.getUserMedia ||
  23028. navigator.webkitGetUserMedia ||
  23029. navigator.mozGetUserMedia ||
  23030. navigator.msGetUserMedia;
  23031. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  23032. if (!getUserMedia) {
  23033. return Promise.reject({ code: 404 });
  23034. }
  23035. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  23036. return new Promise(function (resolve, reject) {
  23037. getUserMedia.call(navigator, constraints, resolve, reject);
  23038. });
  23039. };
  23040. }
  23041. return navigator.mediaDevices.getUserMedia(constraintsData);
  23042. },
  23043. /**
  23044. * 开始录制
  23045. */
  23046. startRecording(callback) {
  23047. let _function = (screenStream) => {
  23048. this.addStreamStopListener(screenStream, () => {
  23049. console.log("流停止监听");
  23050. this.stopRecording();
  23051. this.$emit("streamStop", {});
  23052. // this.stopRecording();
  23053. });
  23054. var options = {
  23055. type: "video",
  23056. mimeType: "video/webm",
  23057. disableLogs: false,
  23058. getNativeBlob: false, // enable it for longer recordings
  23059. ignoreMutedMedia: false,
  23060. };
  23061. // this.video.srcObject = screenStream;
  23062. this.recorder = RecordRTC(screenStream, options);
  23063. this.recorder.startRecording();
  23064. this.recorder.screen = screenStream;
  23065. this.videoStart = true;
  23066. // callback(true);
  23067. };
  23068. this.getAudioVideo({ audio: true })
  23069. .then((res) => {
  23070. this.captureScreen(_function, true);
  23071. console.log("已点击允许,开启成功");
  23072. })
  23073. .catch((err) => {
  23074. // console.log('浏览器不支持,请更换浏览器')
  23075. // } else {
  23076. this.captureScreen(_function, false);
  23077. console.log("请检查是否存在麦克风");
  23078. });
  23079. },
  23080. /**
  23081. * 停止录制
  23082. */
  23083. stopRecording(callback) {
  23084. this.recorder.stopRecording(() => {
  23085. // this.video.src = this.video.srcObject = null;
  23086. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  23087. const url = URL.createObjectURL(this.recorder.getBlob());
  23088. const a = document.createElement("a"); //this.fileName+
  23089. let videoFile = new File(
  23090. [this.recorder.getBlob()],
  23091. this.courseDetail.title + "录屏.mp4",
  23092. {
  23093. type: "video/mp4",
  23094. }
  23095. );
  23096. let downloadUrl = URL.createObjectURL(videoFile);
  23097. if(this.$refs.classRoomHelperRef){
  23098. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  23099. }
  23100. document.body.appendChild(a);
  23101. a.style.display = "none";
  23102. a.href = url;
  23103. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  23104. a.click();
  23105. this.recorder.screen.stop();
  23106. this.recorder.destroy();
  23107. this.recorder = null;
  23108. this.videoStart = false;
  23109. // callback(false);
  23110. });
  23111. },
  23112. //初始化
  23113. captureScreen(callback, type) {
  23114. if (navigator.getDisplayMedia) {
  23115. //录制结束,文件下载
  23116. navigator
  23117. .getDisplayMedia({
  23118. video: true,
  23119. })
  23120. .then((screenStream) => {
  23121. if (type) {
  23122. navigator.mediaDevices
  23123. .getUserMedia({ audio: true })
  23124. .then((mic) => {
  23125. screenStream.addTrack(mic.getTracks()[0]);
  23126. callback(screenStream);
  23127. });
  23128. } else {
  23129. callback(screenStream);
  23130. }
  23131. })
  23132. .catch(function (error) {
  23133. console.log("error", error);
  23134. });
  23135. } else if (navigator.mediaDevices.getDisplayMedia) {
  23136. navigator.mediaDevices
  23137. .getDisplayMedia({
  23138. video: true,
  23139. })
  23140. .then((screenStream) => {
  23141. if (type) {
  23142. navigator.mediaDevices
  23143. .getUserMedia({ audio: true })
  23144. .then((mic) => {
  23145. screenStream.addTrack(mic.getTracks()[0]);
  23146. callback(screenStream);
  23147. });
  23148. } else {
  23149. callback(screenStream);
  23150. }
  23151. })
  23152. .catch(function (error) {
  23153. console.log("error", error);
  23154. });
  23155. } else {
  23156. var error = "getDisplayMedia API are not supported in this browser.";
  23157. console.log("error", error);
  23158. alert(error);
  23159. }
  23160. },
  23161. //流监听
  23162. addStreamStopListener(stream, callback) {
  23163. stream.addEventListener(
  23164. "ended",
  23165. function () {
  23166. callback();
  23167. callback = function () {};
  23168. },
  23169. false
  23170. );
  23171. stream.addEventListener(
  23172. "inactive",
  23173. function () {
  23174. callback();
  23175. callback = function () {};
  23176. },
  23177. false
  23178. );
  23179. stream.getTracks().forEach(function (track) {
  23180. track.addEventListener(
  23181. "ended",
  23182. function () {
  23183. callback();
  23184. callback = function () {};
  23185. },
  23186. false
  23187. );
  23188. track.addEventListener(
  23189. "inactive",
  23190. function () {
  23191. callback();
  23192. callback = function () {};
  23193. },
  23194. false
  23195. );
  23196. });
  23197. },
  23198. updateGroup() {
  23199. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23200. this.dialogVisibleGroup2 = true;
  23201. },
  23202. numberPan() {
  23203. if (
  23204. /[^\d]/.test(this.groupJson.number) ||
  23205. this.groupJson.number < 2 ||
  23206. this.groupJson.number > 10
  23207. ) {
  23208. this.$message.error("请输入2-10的数字");
  23209. this.groupJson.number = "";
  23210. }
  23211. },
  23212. updateGroupJson() {
  23213. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  23214. if (
  23215. this.groupStudentUid[this.toolindex][i].length >
  23216. this.groupJson2.number
  23217. ) {
  23218. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  23219. return;
  23220. }
  23221. }
  23222. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  23223. this.islock = this.groupJson.islock == 1 ? true : false;
  23224. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23225. this.taskCount
  23226. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  23227. let params = [
  23228. {
  23229. cid: this.id,
  23230. chapters: JSON.stringify(this.chapInfoList),
  23231. uid: this.userid,
  23232. unitIndex: this.courseType,
  23233. },
  23234. ];
  23235. this.ajax
  23236. .post(this.$store.state.api + "updateWorkNew4", params)
  23237. .then((res) => {
  23238. this.$message.success("设置成功");
  23239. this.getCourseDetail(2);
  23240. this.dialogVisibleGroup2 = false;
  23241. this.groupJson2 = {};
  23242. this.$forceUpdate();
  23243. })
  23244. .catch((err) => {
  23245. this.$message.error("网络不佳");
  23246. console.error(err);
  23247. });
  23248. },
  23249. lockChair() {
  23250. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23251. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  23252. this.updateGroupJson();
  23253. },
  23254. selectGroup(index) {
  23255. this.getCourseDetail(2, index);
  23256. },
  23257. joinGroup(index) {
  23258. if (this.groupJson.islock == 2) {
  23259. this.$message.error("位置已被锁定,无法加入");
  23260. return;
  23261. }
  23262. if (
  23263. this.groupStudent[this.toolindex][index].length >
  23264. this.groupJson.number ||
  23265. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  23266. ) {
  23267. this.$message.error("位置已满,无法加入");
  23268. return;
  23269. }
  23270. let params = [
  23271. {
  23272. cid: this.id,
  23273. stage: this.courseType,
  23274. task: this.taskCount,
  23275. tool: this.toolindex,
  23276. g: index,
  23277. uid: this.userid,
  23278. },
  23279. ];
  23280. this.ajax
  23281. .post(this.$store.state.api + "joinGroup", params)
  23282. .then((res) => {
  23283. this.$message.success("加入成功");
  23284. this.getCourseDetail(2);
  23285. })
  23286. .catch((err) => {
  23287. this.$message.error("网络不佳");
  23288. console.error(err);
  23289. });
  23290. },
  23291. exitGroup(id) {
  23292. if (this.groupJson.islock == 2) {
  23293. this.$message.error("位置已被锁定,无法退出");
  23294. return;
  23295. }
  23296. let params = [
  23297. {
  23298. gid: id,
  23299. },
  23300. ];
  23301. this.ajax
  23302. .post(this.$store.state.api + "exitGroup", params)
  23303. .then((res) => {
  23304. this.$message.success("退出成功");
  23305. this.getCourseDetail(2);
  23306. })
  23307. .catch((err) => {
  23308. this.$message.error("网络不佳");
  23309. console.error(err);
  23310. });
  23311. },
  23312. groupUpload(index, task, gindex) {
  23313. this.taskCount = task;
  23314. this.toolindex = index;
  23315. this.groupIndex = gindex;
  23316. this.dialogVisibleGroupWork = true;
  23317. },
  23318. updateGroupChair(user) {
  23319. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  23320. el.label = index;
  23321. return index != user.group;
  23322. });
  23323. this.updateGroupUser = user;
  23324. this.dialogVisibleUpdateGroup = true;
  23325. },
  23326. updateChair() {
  23327. if (
  23328. this.groupStudent[this.toolindex][this.checkChair].length >
  23329. this.groupJson.number ||
  23330. this.groupStudent[this.toolindex][this.checkChair].length ==
  23331. this.groupJson.number
  23332. ) {
  23333. this.$message.error("位置已满,无法加入");
  23334. return;
  23335. }
  23336. let params = [
  23337. {
  23338. cid: this.id,
  23339. stage: this.courseType,
  23340. task: this.taskCount,
  23341. tool: this.toolindex,
  23342. g: this.checkChair,
  23343. uid: this.updateGroupUser.userid,
  23344. },
  23345. ];
  23346. this.ajax
  23347. .post(this.$store.state.api + "joinGroup", params)
  23348. .then((res) => {
  23349. this.$message.success("修改成功");
  23350. this.updateGroupUser = {};
  23351. this.checkChair = "";
  23352. this.updateGroupArray = {};
  23353. this.dialogVisibleUpdateGroup = false;
  23354. this.getCourseDetail(2);
  23355. })
  23356. .catch((err) => {
  23357. this.$message.error("网络不佳");
  23358. console.error(err);
  23359. });
  23360. },
  23361. deleteGroupChair(gindex) {
  23362. this.checkDeleteGroup = [];
  23363. this.deleteGroupUser = JSON.parse(
  23364. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  23365. );
  23366. this.deleteGroupArray = this.groupJson.group[gindex];
  23367. this.groupIndex = gindex;
  23368. this.dialogVisibleDeleteGroup = true;
  23369. },
  23370. async deleteChair() {
  23371. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  23372. const gid =
  23373. this.groupStudent[this.toolindex][this.groupIndex][
  23374. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  23375. this.checkDeleteGroup[i]
  23376. )
  23377. ];
  23378. let params = [
  23379. {
  23380. gid: gid.id,
  23381. },
  23382. ];
  23383. var a = await this.deleteChairA(params);
  23384. if (i == this.checkDeleteGroup.length - 1) {
  23385. this.$message.success("退出成功");
  23386. this.dialogVisibleDeleteGroup = false;
  23387. this.deleteGroupUser = [];
  23388. this.deleteGroupArray = {};
  23389. this.groupIndex = "";
  23390. this.checkDeleteGroup = [];
  23391. this.getCourseDetail(2);
  23392. }
  23393. }
  23394. },
  23395. deleteChairA(params) {
  23396. return new Promise((resolve, reject) => {
  23397. this.ajax
  23398. .post(this.$store.state.api + "exitGroup", params)
  23399. .then((res) => {
  23400. resolve(1);
  23401. })
  23402. .catch((err) => {
  23403. this.$message.error("网络不佳");
  23404. console.error(err);
  23405. });
  23406. });
  23407. },
  23408. contract(i) {
  23409. if (this.isCloseList[i].isClose == 0) {
  23410. this.isCloseList[i].isClose = 1;
  23411. } else {
  23412. this.isCloseList[i].isClose = 0;
  23413. }
  23414. this.$forceUpdate();
  23415. },
  23416. openWordCloud(toolindex) {
  23417. this.wordCloudData = '';
  23418. let array = [];
  23419. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  23420. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  23421. array.push({ name: works });
  23422. }
  23423. if (this.isGroup) {
  23424. for (var i = 0; i < this.courseGroup.group.length; i++) {
  23425. let works = this.courseGroup.group[i].works[toolindex];
  23426. for (var j = 0; j < works.length; j++) {
  23427. let answer = JSON.parse(works[j].works)[0].answer;
  23428. array.push({ name: answer });
  23429. }
  23430. }
  23431. }
  23432. let _result = ''
  23433. array.forEach(e=>{
  23434. _result +=e.name+','
  23435. })
  23436. this.wordCloudData = _result;
  23437. this.dialogVisibleWordCloud = true;
  23438. this.wordCloudKey += 1;
  23439. },
  23440. uploadWorks(i) {
  23441. this.$confirm("确定导出作业吗?", "提示", {
  23442. confirmButtonText: "确定",
  23443. cancelButtonText: "取消",
  23444. type: "warning",
  23445. })
  23446. .then(() => {
  23447. const loading = this.$loading.service({
  23448. background: "rgba(255, 255, 255, 0.7)",
  23449. target: document.body,
  23450. text: "文件加载中...",
  23451. });
  23452. const _worksStudent = this.worksStudent;
  23453. let url = [];
  23454. var counts = {};
  23455. for (var l = 0; l < _worksStudent[i].length; l++) {
  23456. var item = _worksStudent[i][l];
  23457. var name = item.sName;
  23458. if (!counts.hasOwnProperty(name)) {
  23459. counts[name] = 0;
  23460. } else {
  23461. counts[name]++;
  23462. }
  23463. if (counts[name] > 0) {
  23464. item.sName += " (" + counts[name] + ")";
  23465. }
  23466. }
  23467. for (var l = 0; l < _worksStudent[i].length; l++) {
  23468. var item = _worksStudent[i][l];
  23469. if (
  23470. item.works.indexOf(
  23471. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  23472. ) !== -1 &&
  23473. item.works.indexOf("img") === -1
  23474. ) {
  23475. url.push({ name: item.sName, url: item.works });
  23476. }
  23477. }
  23478. // var toolList = [
  23479. // { name: "电子白板", tool: 1 },
  23480. // { name: "思维导图", tool: 3 },
  23481. // { name: "协同文档", tool: 6 },
  23482. // { name: "思维网格", tool: 7 },
  23483. // { name: "素材库", tool: 8 },
  23484. // { name: "学习资料", tool: 17 },
  23485. // { name: "便签", tool: 2 },
  23486. // { name: "问卷调查", tool: 4 },
  23487. // { name: "选择题", tool: 45 },
  23488. // { name: "倒计时", tool: 10 },
  23489. // { name: "问答", tool: 15 },
  23490. // { name: "课程设计", tool: 26 },
  23491. // { name: "训练服务器", tool: 18 },
  23492. // { name: "作业提交", tool: 16 },
  23493. // { name: "批量上传", tool: 50 },
  23494. // { name: "AIoT Blockly", tool: 21 },
  23495. // { name: "AI Python", tool: 23 },
  23496. // { name: "AI Blockly", tool: 24 },
  23497. // { name: "目标管理", tool: 25 },
  23498. // { name: "数学画板", tool: 31 },
  23499. // { name: "翻译", tool: 28 },
  23500. // { name: "魔盒识字", tool: 37 },
  23501. // { name: "数学画板", tool: 31 },
  23502. // { name: "24点", tool: 38 },
  23503. // { name: "GeoGebra", tool: 39 },
  23504. // { name: "源码编辑", tool: 32 },
  23505. // { name: "个人评价", tool: 40 },
  23506. // { name: "选择匹配", tool: 41 },
  23507. // { name: "汉字宫", tool: 44 },
  23508. // { name: "排序", tool: 47 },
  23509. // { name: "表格", tool: 48 },
  23510. // { name: "文档", tool: 52 },
  23511. // { name: "学生分组", tool: 49 },
  23512. // { name: "CocoPi", tool: 57 },
  23513. // { name: "模拟驾驶", tool: 58 },
  23514. // { name: "路径搜索", tool: 59 },
  23515. // { name: "深度学习", tool: 60 },
  23516. // { name: "全历史", tool: 61 },
  23517. // { name: "交互视频", tool: 62 },
  23518. // { name: "海龟编程", tool: 63 },
  23519. // { name: "挑人", tool: 65 },
  23520. // { name: "公式编辑", tool: 66 },
  23521. // { name: "分子结构", tool: 67 },
  23522. // { name: "时间轴", tool: 68 },
  23523. // ];
  23524. // var toolName = "";
  23525. // for(var w = 0;w<toolList.length;w++){
  23526. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  23527. // toolName = toolList[w].name;
  23528. // }
  23529. // }
  23530. console.log(url);
  23531. this.downLoadAll(url, loading);
  23532. })
  23533. .catch(() => {});
  23534. },
  23535. downLoadAll(url, loading) {
  23536. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  23537. const zip = new JSZip();
  23538. const cache = {};
  23539. const promises = [];
  23540. data.forEach((item) => {
  23541. const promise = getFile(item.url).then((data) => {
  23542. if (data.data != 1) {
  23543. // 下载文件, 并存成ArrayBuffer对象
  23544. const file_name =
  23545. item.name +
  23546. "." +
  23547. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  23548. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  23549. cache[file_name] = data.data;
  23550. }
  23551. });
  23552. promises.push(promise);
  23553. });
  23554. Promise.all(promises).then(() => {
  23555. zip.generateAsync({ type: "blob" }).then((content) => {
  23556. // 生成二进制流
  23557. FileSaver.saveAs(
  23558. content,
  23559. this.courseDetail.title + "-" + "作业提交工具.zip"
  23560. ); // 利用file-saver保存文件 自定义文件名
  23561. setTimeout(() => {
  23562. loading.close();
  23563. }, 2000);
  23564. });
  23565. });
  23566. },
  23567. pickStudent(stu) {
  23568. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  23569. return;
  23570. }
  23571. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  23572. confirmButtonText: "确定",
  23573. cancelButtonText: "取消",
  23574. type: "warning",
  23575. })
  23576. .then(() => {
  23577. let params = [
  23578. {
  23579. uid: stu.userid,
  23580. cid: this.id,
  23581. stage: this.courseType,
  23582. task: this.taskCount,
  23583. tool: this.toolindex,
  23584. },
  23585. ];
  23586. this.ajax
  23587. .post(this.$store.state.api + "updateCoursePick", params)
  23588. .then((res) => {
  23589. this.$message.success("操作成功");
  23590. this.getPick();
  23591. })
  23592. .catch((err) => {
  23593. this.$message.error("网络不佳");
  23594. console.error(err);
  23595. });
  23596. })
  23597. .catch(() => {});
  23598. },
  23599. selectUser(){
  23600. let params = {
  23601. userid: this.userid,
  23602. };
  23603. this.ajax
  23604. .get(this.$store.state.api + "selectUser", params)
  23605. .then((res) => {
  23606. this.userMes = res.data[0];
  23607. })
  23608. .catch((err) => {
  23609. console.error(err);
  23610. });
  23611. },
  23612. setEngText(i){
  23613. this.newEngIndex = i;
  23614. this.$forceUpdate();
  23615. },
  23616. addCorrect(){
  23617. this.$confirm("你确定提交批改嘛?", "提示", {
  23618. confirmButtonText: "确定",
  23619. showCancelButton: false,
  23620. closeOnClickModal: false,
  23621. type: "warning",
  23622. })
  23623. .then(() => {
  23624. let params = {
  23625. cid: this.id,
  23626. s: parseInt(this.courseType),
  23627. t: this.taskCount,
  23628. tool: this.toolindex,
  23629. wid: this.engWid,
  23630. c: this.userid,
  23631. w: this.userMes[0].type == 2 ? JSON.parse(this.newEnglishList) : (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : this.newEngIndex == -1 ? JSON.stringify(this.newEnglishList) : (this.newEngIndex > -1 && this.newEnglishList1.length > 0) ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork) : "",
  23632. };
  23633. this.ajax
  23634. .get(this.$store.state.api + "addEngC", params)
  23635. .then((res) => {
  23636. this.$message.success("提交成功");
  23637. this.engUpdateDialogVisible = false;
  23638. })
  23639. .catch((err) => {
  23640. console.error(err);
  23641. });
  23642. })
  23643. .catch(() => {});
  23644. },
  23645. selectEngC(id,z){
  23646. let params = {
  23647. workid: id,
  23648. };
  23649. this.ajax
  23650. .get(this.$store.state.api + "selectEngC", params)
  23651. .then((res) => {
  23652. if(res.data[0].length == 0){
  23653. this.newEnglishList.engTitle = z.engTitle;
  23654. this.newEnglishList.engText = z.engText;
  23655. }else{
  23656. var a = res.data[0];
  23657. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  23658. if(this.userMes[0].type == 2){
  23659. var snum = 0;
  23660. for(var i = 0;i<a.length;i++){
  23661. if(this.userMes[0].userid == a[i].correct){
  23662. this.newEnglishList = JSON.parse(a[i].cWork);
  23663. snum = 1;
  23664. }
  23665. }
  23666. if(snum == 0){
  23667. this.newEnglishList = { engTitle:"",engText:"" };
  23668. this.newEnglishList.engTitle = z.engTitle;
  23669. this.newEnglishList.engText = z.engText;
  23670. }
  23671. }else if(this.userMes[0].type == 1){
  23672. var num = 0;
  23673. for(var w= 0;w<a.length;w++){
  23674. if(this.userMes[0].userid == a[w].correct){
  23675. num = 1;
  23676. }
  23677. }
  23678. if(num == 0){
  23679. this.isNoUserid = true;
  23680. var c = JSON.parse(JSON.stringify(z));
  23681. this.oldEnglishJson1 = c;
  23682. }else{
  23683. this.isNoUserid = false;
  23684. }
  23685. var b = a.sort((item, index) => {
  23686. console.log(item)
  23687. if (item.correct === this.userMes[0].userid) {
  23688. return -1; // 将a移到前面
  23689. } else if (index.correct === this.userMes[0].userid) {
  23690. return 1; // 将b移到前面
  23691. } else {
  23692. return 0; // 保持默认顺序
  23693. }
  23694. });
  23695. for(var p = 0;p<b.length;p++){
  23696. for(var y = 0;y<ppp.length;y++){
  23697. if(b[p].id == ppp[y].id){
  23698. b[p].cWork = JSON.parse(ppp[y].cWork);
  23699. break
  23700. }
  23701. }
  23702. }
  23703. this.newEnglishList1 = b;
  23704. }
  23705. }
  23706. this.greyType = false;
  23707. setTimeout(() => {
  23708. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  23709. if(this.newEnglishList1.length > 0){
  23710. if(this.isNoUserid == true){
  23711. this.engListLength = this.newEnglishList1.length + 1;
  23712. this.newEngIndex = -1;
  23713. }else{
  23714. this.engListLength = this.newEnglishList1.length;
  23715. this.newEngIndex = 0;
  23716. }
  23717. }
  23718. if(this.userMes[0].type == 2){
  23719. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  23720. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  23721. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  23722. }else if(this.newEngIndex == -1){
  23723. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  23724. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  23725. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  23726. }
  23727. }, 500);
  23728. this.engUpdateDialogVisible = true;
  23729. this.$forceUpdate();
  23730. })
  23731. .catch((err) => {
  23732. console.error(err);
  23733. });
  23734. },
  23735. getPick() {
  23736. let params = {
  23737. cid: this.id,
  23738. };
  23739. this.ajax
  23740. .get(this.$store.state.api + "getPick", params)
  23741. .then((res) => {
  23742. let array = [];
  23743. for (var i = 0; i < res.data[0].length; i++) {
  23744. array.push(res.data[0][i].userid);
  23745. }
  23746. this.isPickStudent = array;
  23747. if (array.indexOf(this.userid) !== -1) {
  23748. this.$confirm("你被老师选到啦!", "提示", {
  23749. confirmButtonText: "确定",
  23750. showCancelButton: false,
  23751. closeOnClickModal: false,
  23752. type: "warning",
  23753. })
  23754. .then(() => {
  23755. let pa = [
  23756. {
  23757. uid: this.userid,
  23758. cid: this.id,
  23759. },
  23760. ];
  23761. this.ajax
  23762. .post(this.$store.state.api + "deletePick", pa)
  23763. .then((res) => {
  23764. this.getPick();
  23765. })
  23766. .catch((err) => {
  23767. this.$message.error("网络不佳");
  23768. console.error(err);
  23769. });
  23770. })
  23771. .catch(() => {});
  23772. }
  23773. })
  23774. .catch((err) => {
  23775. this.$message.error("网络不佳");
  23776. console.error(err);
  23777. });
  23778. },
  23779. foldEva() {
  23780. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  23781. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  23782. } else {
  23783. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  23784. setTimeout(() => {
  23785. this.checkEva();
  23786. setTimeout(() => {
  23787. this.checkEva();
  23788. }, 500);
  23789. }, 0);
  23790. }
  23791. this.$forceUpdate();
  23792. },
  23793. panToolHeight(tool) {
  23794. var _tool = document.querySelectorAll('#'+tool)[0]
  23795. var _toolA = _tool ? _tool.offsetHeight : 0
  23796. var _toolC = 0
  23797. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  23798. let boolean2 = (_toolA > _toolC) ? true : false
  23799. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  23800. this.$forceUpdate();
  23801. },
  23802. async checkLink(url) {
  23803. // console.log(url)
  23804. let _url = url
  23805. try {
  23806. const response = await fetch(url);
  23807. if(!response.ok){
  23808. _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
  23809. }
  23810. // console.log(response.ok)
  23811. } catch (error) {
  23812. console.error('Error checking link:', error);
  23813. // console.log(false)
  23814. _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
  23815. }
  23816. // console.log(_url)
  23817. return _url
  23818. },
  23819. getScoreList(){
  23820. let params = {
  23821. cid: this.id,
  23822. };
  23823. this.ajax
  23824. .get(this.$store.state.api + "selectTestCourseByCid", params)
  23825. .then((res) => {
  23826. let result = res.data;
  23827. this.scoreList.datalist = result[0];
  23828. this.scoreList.isScoreList = result[1];
  23829. })
  23830. .catch((err) => {
  23831. console.error(err);
  23832. });
  23833. },
  23834. setClassRoomHelperWidth(width){
  23835. this.classRoomHelperWidth = width
  23836. },
  23837. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  23838. this.$refs.choseWorksDetailDialogRef.open({
  23839. toolType:tooc,
  23840. tType: this.tType,
  23841. toolIndex: toolIndex
  23842. });
  23843. this.changeSplitScreenBehavior({
  23844. code: 1,
  23845. form: {
  23846. toolType:tooc,
  23847. toolIndex: toolIndex,
  23848. courseType: this.courseType,
  23849. taskCount: this.taskCount,
  23850. type: 0
  23851. }
  23852. });
  23853. },
  23854. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  23855. this.$refs.statisticalAnalysisRef.open({
  23856. worksStudent: this.worksStudent[toolIndex],
  23857. tType: this.tType,
  23858. toolIndex: toolIndex
  23859. });
  23860. this.changeSplitScreenBehavior({
  23861. code: 2,
  23862. form: {
  23863. toolType:4,
  23864. courseType: this.courseType,
  23865. taskCount: this.taskCount,
  23866. toolIndex: toolIndex,
  23867. type: 0
  23868. }
  23869. });
  23870. },
  23871. statisticalAnalysisRefresh(toolIndex) {
  23872. this.$refs.statisticalAnalysisRef.refreshData({
  23873. worksStudent: this.worksStudent[toolIndex],
  23874. tType: this.tType,
  23875. toolIndex: toolIndex
  23876. });
  23877. },
  23878. async splitScreenBehavior(type = 0) {
  23879. // return;
  23880. if (this.splitScreenData.loading)
  23881. return this.$message.info("操作过快,请稍等");
  23882. if (type == 0) {
  23883. //关闭分屏
  23884. this.splitScreenData.isOpen = false;
  23885. // this.splitScreenData.userId = "";
  23886. // this.splitScreenData.uid = "";
  23887. this.splitScreenData.behavior = null;
  23888. await this.updateSplitScreenData(1);
  23889. this.$message.success("已关闭分屏模式");
  23890. this.studentFreePreview(false);
  23891. this.OpenJobPreview(false);
  23892. // this.followingMode(false);
  23893. } else if (type == 1) {
  23894. //开启分屏
  23895. this.splitScreenData.isOpen = true;
  23896. this.splitScreenData.userId = this.userid;
  23897. this.splitScreenData.uid = this.splitScreenData.myUid;
  23898. this.splitScreenData.behavior = null;
  23899. let status = await this.updateSplitScreenData(0);
  23900. this.changeSplitScreenBehavior({form:{}})
  23901. if (status == 1) {
  23902. this.$message.success("已开启分屏");
  23903. this.studentFreePreview(true);
  23904. this.OpenJobPreview(true);
  23905. // this.followingMode(true);
  23906. } else {
  23907. this.splitScreenData.isOpen = false;
  23908. this.splitScreenData.userId = "";
  23909. this.splitScreenData.uid = "";
  23910. this.splitScreenData.behavior = null;
  23911. this.$message.success("分屏开启失败");
  23912. }
  23913. }
  23914. },
  23915. enterFullScreen() {
  23916. let element = document.documentElement;
  23917. if (element.requestFullscreen) {
  23918. element.requestFullscreen();
  23919. } else if (element.mozRequestFullScreen) { /* Firefox */
  23920. element.mozRequestFullScreen();
  23921. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  23922. element.webkitRequestFullscreen();
  23923. } else if (element.msRequestFullscreen) { /* IE/Edge */
  23924. element.msRequestFullscreen();
  23925. }
  23926. },
  23927. exitFullScreen() {
  23928. if (document.exitFullscreen) {
  23929. document.exitFullscreen();
  23930. } else if (document.mozCancelFullScreen) { /* Firefox */
  23931. document.mozCancelFullScreen();
  23932. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  23933. document.webkitExitFullscreen();
  23934. } else if (document.msExitFullscreen) { /* IE/Edge */
  23935. document.msExitFullscreen();
  23936. }
  23937. },
  23938. confirmOpen(){
  23939. this.splitScreenData.isOpen = true;
  23940. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  23941. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  23942. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  23943. this.confirmOpenDig = false
  23944. if (!document.fullscreenElement) {
  23945. this.enterFullScreen();
  23946. }
  23947. if (this.timer2) {
  23948. clearInterval(this.timer2);
  23949. this.timer2 = null;
  23950. }
  23951. this.timer2 = setInterval(()=> {
  23952. this.getSplitScreenData();//获取分屏数据
  23953. }, 1000);
  23954. this.$message.success("分屏模式已开启");
  23955. },
  23956. getSplitScreenData() {
  23957. // return;
  23958. // if (this.tType != 1) return;
  23959. let params = {
  23960. cid: this.id
  23961. };
  23962. this.ajax
  23963. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  23964. .then(async res => {
  23965. let data = res.data[0][0]["splitScreenData"];
  23966. console.log("获取了分屏数:", data);
  23967. if (data) {
  23968. data = JSON.parse(data);
  23969. if (
  23970. !this.splitScreenData.isOpen &&
  23971. data.isOpen &&
  23972. this.splitScreenData.myUid == data.uid
  23973. ) {
  23974. this.splitScreenData.isOpen = false;
  23975. this.splitScreenData.userId = "";
  23976. this.splitScreenData.uid = "";
  23977. this.splitScreenData.behavior = null;
  23978. await this.updateSplitScreenData(1);
  23979. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  23980. this.confirmOpenDig = true
  23981. this.confirmOpenDigData = data
  23982. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  23983. this.splitScreenData.isOpen = false;
  23984. this.splitScreenData.userId = "";
  23985. this.splitScreenData.uid = "";
  23986. this.splitScreenData.behavior = null;
  23987. this.$message.error("已结束分屏模式");
  23988. } else if (this.splitScreenData.isOpen && data.isOpen) {
  23989. this.splitScreenData.isOpen = true;
  23990. this.splitScreenData.uid = data.uid;
  23991. this.splitScreenData.userId = data.userId;
  23992. this.splitScreenData.behavior = data.behavior;
  23993. }
  23994. this.doSplitScreenBehavior();
  23995. } else {
  23996. if (this.splitScreenData.isOpen) {
  23997. this.splitScreenData.isOpen = false;
  23998. this.splitScreenData.userId = "";
  23999. this.splitScreenData.uid = "";
  24000. this.splitScreenData.behavior = null;
  24001. this.$message.error("已结束分屏模式");
  24002. if (this.timer2) {
  24003. clearInterval(this.timer2);
  24004. this.timer2 = null;
  24005. }
  24006. this.timer2 = setInterval(()=> {
  24007. this.getSplitScreenData();//获取分屏数据
  24008. }, 5000);
  24009. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  24010. confirmButtonText: '确定', //确认按钮的文字
  24011. showCancelButton: false, //是否显示取消按钮
  24012. showClose: false, //是否显示关闭按钮
  24013. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  24014. type: "warning",
  24015. })
  24016. .then(() => {
  24017. if (document.fullscreenElement) {
  24018. this.exitFullScreen();
  24019. }
  24020. })
  24021. .catch(() => {});
  24022. }
  24023. }
  24024. })
  24025. .catch(e => {
  24026. console.log("获取分屏数出错:", e);
  24027. });
  24028. },
  24029. doSplitScreenBehavior() {
  24030. if (
  24031. this.splitScreenData.isOpen &&
  24032. this.splitScreenData.uid != this.splitScreenData.myUid
  24033. ) {
  24034. let behavior = this.splitScreenData.behavior;
  24035. if (behavior) {
  24036. if (behavior.code === 99) {
  24037. //初始化
  24038. this.fullDialogVisible = false;
  24039. if(this.$refs.choseWorksDetailDialogRef.show){
  24040. this.$refs.choseWorksDetailDialogRef.close();
  24041. }
  24042. if(this.$refs.statisticalAnalysisRef.show){
  24043. this.$refs.statisticalAnalysisRef.close();
  24044. }
  24045. }
  24046. if (behavior.code === 0) {
  24047. //开启内容列表弹窗
  24048. this.checkFileFull1(behavior.form.t, behavior.form.f);
  24049. }else{
  24050. this.fullDialogVisible = false;
  24051. }
  24052. if (behavior.code === 1) {
  24053. //关于选择题的作业详细的操作
  24054. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  24055. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  24056. this.courseType = behavior.form.courseType;
  24057. this.taskCount = behavior.form.taskCount;
  24058. }
  24059. this.$nextTick(() => {
  24060. if (this.$refs.choseWorksDetailDialogRef.show) {
  24061. //已经打开了
  24062. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  24063. } else {
  24064. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  24065. }
  24066. });
  24067. }else{
  24068. this.$refs.choseWorksDetailDialogRef.close()
  24069. }
  24070. if(behavior.code === 2){
  24071. if(this.$refs.statisticalAnalysisRef.show){
  24072. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  24073. }else{
  24074. this.$refs.statisticalAnalysisRef.open({
  24075. worksStudent: this.worksStudent[behavior.form.toolIndex],
  24076. tType: this.tType,
  24077. toolIndex: behavior.form.toolIndex
  24078. });
  24079. }
  24080. }else{
  24081. this.$refs.statisticalAnalysisRef.close();
  24082. }
  24083. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  24084. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  24085. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  24086. if (behavior.form.courseType != this.courseType ||
  24087. behavior.form.taskCount != this.taskCount ||
  24088. behavior.form.toolType != this.toolindex
  24089. ) {
  24090. var a = document.scrollingElement;
  24091. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  24092. if (target) {
  24093. target.scrollIntoView(true);
  24094. setTimeout(()=>{
  24095. let scrollBody = document.querySelector('.body_student').parentElement
  24096. scrollBody.scrollTop = scrollBody.scrollTop - 100
  24097. }, 0);
  24098. // setTimeout(() => {
  24099. // a.scrollTop = 0
  24100. // }, 0);
  24101. }
  24102. }
  24103. if(this.courseType !=behavior.form.courseType){
  24104. this.courseType = behavior.form.courseType;
  24105. }
  24106. if(this.taskCount !=behavior.form.taskCount){
  24107. this.taskCount = behavior.form.taskCount;
  24108. }
  24109. if(this.toolindex != behavior.form.toolType){
  24110. this.toolindex = behavior.form.toolType;
  24111. }
  24112. // if(behavior.form.navId){
  24113. // this.navId = behavior.form.navId
  24114. // }
  24115. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  24116. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  24117. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  24118. this.getCourseDetail()
  24119. }
  24120. this.setContent2(false)
  24121. }
  24122. } else {
  24123. }
  24124. }
  24125. },
  24126. updateSplitScreenData(empty = 0) {
  24127. return new Promise(resolve => {
  24128. if(this.userid!==this.courseDetail.userid){
  24129. if(!this.courseDetail.userid){
  24130. return setTimeout(()=>{
  24131. this.updateSplitScreenData(empty)
  24132. },2000)
  24133. }
  24134. return;
  24135. };
  24136. if (
  24137. this.splitScreenData.uid == this.splitScreenData.myUid &&
  24138. this.splitScreenData.userId == this.userid
  24139. ) {
  24140. this.splitScreenData.loading = true;
  24141. let params = [
  24142. {
  24143. cid: this.id,
  24144. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  24145. }
  24146. ];
  24147. this.ajax
  24148. .post(
  24149. this.$store.state.api + "update_courseSplitScreenData",
  24150. params
  24151. )
  24152. .then(res => {
  24153. this.splitScreenData.loading = false;
  24154. if (res.data == 1) {
  24155. resolve(1);
  24156. console.log("修改分屏数据成功");
  24157. }
  24158. })
  24159. .catch(e => {
  24160. this.splitScreenData.loading = false;
  24161. console.log("修改分屏数据失败", e);
  24162. resoleve(0);
  24163. });
  24164. } else if (empty == 2 && this.tType == 1) {
  24165. let params = [
  24166. {
  24167. cid: this.id,
  24168. nData: ""
  24169. }
  24170. ];
  24171. return this.ajax
  24172. .post(
  24173. this.$store.state.api + "update_courseSplitScreenData",
  24174. params
  24175. )
  24176. .then(_ => resolve(1))
  24177. .catch(_ => resolve(0));
  24178. } else {
  24179. return resolve(0);
  24180. }
  24181. });
  24182. },
  24183. changeSplitScreenBehavior(newValue) {
  24184. if (
  24185. this.splitScreenData.isOpen &&
  24186. this.splitScreenData.uid == this.splitScreenData.myUid
  24187. ) {
  24188. let _behavior = null;
  24189. if(!newValue){
  24190. _behavior = {}
  24191. }else{
  24192. _behavior = newValue
  24193. }
  24194. if(_behavior.form){
  24195. _behavior.form.taskCount = this.taskCount;
  24196. _behavior.form.courseType = this.courseType
  24197. }else{
  24198. _behavior.form = {
  24199. taskCount:this.taskCount,
  24200. courseType:this.courseType
  24201. }
  24202. }
  24203. this.splitScreenData.behavior = _behavior;
  24204. this.updateSplitScreenData(0);
  24205. }
  24206. },
  24207. studentFreePreview(flag) {
  24208. this.IsLookOpen = flag;
  24209. this.followingMode(flag)
  24210. this.updateLookOpen();
  24211. },
  24212. OpenJobPreview(flag) {
  24213. this.sIsOpen = flag;
  24214. this.updateSLook();
  24215. },
  24216. followingMode(flag) {
  24217. this.IsFollow = flag;
  24218. this.updateFollow();
  24219. }
  24220. },
  24221. directives: {
  24222. // 使用局部注册指令的方式
  24223. resize: {
  24224. // 指令的名称
  24225. bind(el, binding) {
  24226. // el为绑定的元素,binding为绑定给指令的对象
  24227. let width = "",
  24228. height = "";
  24229. function isReize() {
  24230. const style = document.defaultView.getComputedStyle(el);
  24231. if (width !== style.width || height !== style.height) {
  24232. binding.value(); // 关键
  24233. }
  24234. width = style.width;
  24235. height = style.height;
  24236. }
  24237. el.__vueSetInterval__ = setInterval(isReize, 300);
  24238. },
  24239. unbind(el) {
  24240. clearInterval(el.__vueSetInterval__);
  24241. },
  24242. },
  24243. autoHeight: {
  24244. update(el, binding) {
  24245. const { value } = binding
  24246. if (value && typeof value === 'number') {
  24247. el.style.height = `${value}px`
  24248. } else {
  24249. el.style.height = 'auto'
  24250. }
  24251. },
  24252. componentUpdated(el) {
  24253. el.style.height = `${el.scrollHeight + 5}px`
  24254. },
  24255. },
  24256. },
  24257. beforeDestroy() {
  24258. window.onresize = null;
  24259. clearInterval(this.timer);
  24260. clearInterval(this.timer2);
  24261. this.timer = null;
  24262. this.timer2 = null;
  24263. clearInterval(this.opertimer);
  24264. this.opertimer = null;
  24265. this.updateSplitScreenData(1);
  24266. },
  24267. computed: {
  24268. getHeight(){
  24269. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24270. },
  24271. contentConvent() {
  24272. return function (c) {
  24273. return c
  24274. ? c
  24275. .replaceAll(/\r\n/g, "<br/>")
  24276. .replaceAll(/\n/g, "<br/>")
  24277. .replaceAll(/\s/g, " &nbsp")
  24278. : "";
  24279. };
  24280. },
  24281. MarkdownT() {
  24282. return function (c) {
  24283. let md = new MarkdownIt();
  24284. return c
  24285. ? md.render(c) : "";
  24286. };
  24287. },
  24288. commentRight(){
  24289. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  24290. return "35px";
  24291. }
  24292. return `calc(${this.classRoomHelperWidth} + 5px)`
  24293. // if(this.$refs["classRoomHelperRef"].type==0){
  24294. // return "100px";
  24295. // }else if(this.$refs["classRoomHelperRef"].type==1){
  24296. // return "502px"
  24297. // }else{
  24298. // return "0px"
  24299. // }
  24300. },
  24301. checkUpload() {
  24302. return function () {
  24303. var studentK = [];
  24304. if (this.plworkFile.length > 0) {
  24305. for (var z = 0; z < this.plworkFile.length; z++) {
  24306. studentK.push(this.plworkFile[z].username);
  24307. }
  24308. studentK = studentK.join(",");
  24309. }
  24310. var a = this.uploadStudentJuri.filter((el) => {
  24311. return studentK.indexOf(el.userid) == -1;
  24312. });
  24313. return a;
  24314. };
  24315. },
  24316. getSName() {
  24317. return function (name) {
  24318. var check = name;
  24319. this.uploadStudentJuri.forEach((el) => {
  24320. if (el.userid == check) {
  24321. check = el.name ? el.name : el.username;
  24322. }
  24323. });
  24324. return check;
  24325. };
  24326. },
  24327. getImgList() {
  24328. return function (val) {
  24329. let srcList = []; // 定义一个数组用来接收后面的img地址
  24330. val.replace(
  24331. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  24332. function (match, capture) {
  24333. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  24334. srcList.push(capture);
  24335. }
  24336. );
  24337. return srcList;
  24338. };
  24339. },
  24340. retrnToolHeight(){
  24341. return function (tool) {
  24342. var _tool = document.querySelectorAll('#'+tool)[0]
  24343. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  24344. };
  24345. },
  24346. Correct() {
  24347. return function (c,d) {
  24348. let w = "";
  24349. let a = this.correctWord;
  24350. for(var k = 0;k<a.length;k++){
  24351. //diffWordsWithSpace
  24352. if(a.length > 1){
  24353. if(a[k].added == true){
  24354. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24355. }else if(a[k].removed == true){
  24356. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24357. }else{
  24358. w += '<span>' + a[k].value + '</span>';
  24359. }
  24360. }else{
  24361. w = c
  24362. }
  24363. console.log("👇👇!+++==")
  24364. console.log(w)
  24365. //diffChars方法
  24366. // if(w == ""){
  24367. // if(a.length > 1){
  24368. // if(a[k].added == true){
  24369. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24370. // }else if(a[k].removed == true){
  24371. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24372. // }
  24373. // }else{
  24374. // w = c
  24375. // }
  24376. // }else{
  24377. // if(k == a.length - 1){
  24378. // if(a[k].added == true){
  24379. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24380. // }else if(a[k].removed == true){
  24381. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24382. // }
  24383. // }else{
  24384. // if(a[k].added == true){
  24385. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24386. // }else if(a[k].removed == true){
  24387. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24388. // }
  24389. // }
  24390. // }
  24391. }
  24392. c = w;
  24393. return c;
  24394. };
  24395. },
  24396. },
  24397. mounted() {
  24398. document.body.addEventListener("click", (e) => {
  24399. if (this.isUpdateToolDetail1) {
  24400. this.updateToolDetail(this.toolDetailIndex);
  24401. }
  24402. });
  24403. if (this.screenType == 2) {
  24404. window.parent.postMessage({ allScreen: 4 }, "*");
  24405. } else if (this.screenType == 3) {
  24406. window.parent.postMessage({ allScreen: 5 }, "*");
  24407. } else if (this.screenType == 1) {
  24408. window.parent.postMessage({ allScreen: 6 }, "*");
  24409. }
  24410. this.setOperationTime();
  24411. this.selectEva();
  24412. this.getCourseDetail();
  24413. this.selectCount();
  24414. this.getHomeWork();
  24415. this.selectUser();
  24416. this.getAIJ();
  24417. this.contentDialog = true;
  24418. this.setContent2(true);
  24419. if (this.tType == 4) {
  24420. this.pzDialog = true;
  24421. this.selectPz();
  24422. }
  24423. // 获取评分列表
  24424. this.getScoreList()
  24425. this.updateSplitScreenData(2);
  24426. this.splitScreenData.myUid = uuidv4();
  24427. document.scrollingElement.scrollTop = 0;
  24428. window.addEventListener("resize", () => {
  24429. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  24430. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  24431. if (this.showType == 2 || this.showType == 3) {
  24432. document.getElementsByClassName("navBox")[0].style.height =
  24433. a - 40 + 0+ "px";
  24434. } else {
  24435. document.getElementsByClassName("navBox")[0].style.height =
  24436. a - 40 + "px";
  24437. }
  24438. });
  24439. let _this = this;
  24440. setTimeout(() => {
  24441. // _this.vedioTime = [];
  24442. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  24443. // _this.vedioTime[i] = document.getElementsByClassName(
  24444. // "vjs-duration-display"
  24445. // )[i].textContent;
  24446. // }
  24447. }, 1000);
  24448. },
  24449. };
  24450. </script>
  24451. <style scoped>
  24452. @media screen and (max-width: 1280px) {
  24453. /* .courseIndex > div:first-child(2) {
  24454. width: 15% !important;
  24455. } */
  24456. /* .navText {
  24457. width: 120px !important;
  24458. } */
  24459. .evaCss {
  24460. flex-direction: column !important;
  24461. align-items: center !important;
  24462. }
  24463. .elist_input {
  24464. width: 90% !important;
  24465. }
  24466. .dialog_diy1 >>> .el-dialog {
  24467. width: 100% !important;
  24468. }
  24469. .rightWidthCss {
  24470. width: 100% !important;
  24471. }
  24472. .dialog_diy3 >>> .el-dialog {
  24473. width: 100% !important;
  24474. }
  24475. .addToolCss {
  24476. right: 0 !important;
  24477. width: 100% !important;
  24478. min-width: unset !important;
  24479. }
  24480. }
  24481. .evaCssMax {
  24482. flex-direction: column !important;
  24483. align-items: center !important;
  24484. }
  24485. .dialog_diy >>> .el-dialog {
  24486. /* margin-top: 10vh !important; */
  24487. }
  24488. .body_student {
  24489. width: 77%;
  24490. height: 100%;
  24491. position: absolute;
  24492. left: 22%;
  24493. top: 0;
  24494. }
  24495. .student_head {
  24496. width: 100%;
  24497. margin: 20px auto 0;
  24498. padding-bottom: 20px;
  24499. display: flex;
  24500. flex-direction: column;
  24501. flex-wrap: nowrap;
  24502. align-items: flex-start;
  24503. justify-content: flex-start;
  24504. }
  24505. .pb_left {
  24506. width: 20%;
  24507. margin-right: 10px;
  24508. background: rgb(255, 255, 255);
  24509. position: fixed;
  24510. height: calc(100% - 40px);
  24511. border-radius: 20px;
  24512. padding-bottom: 15px;
  24513. box-sizing: border-box;
  24514. }
  24515. .wheel > img,
  24516. .project > img,
  24517. .star > img,
  24518. .evaluate > img,
  24519. .up_photo > img,
  24520. .chapter_add > img,
  24521. .deleteWord > img,
  24522. .question > img,
  24523. .homework > img {
  24524. width: 100%;
  24525. height: 100%;
  24526. }
  24527. .upCover > img {
  24528. width: 131px;
  24529. height: 69px;
  24530. object-fit: cover;
  24531. }
  24532. .upCover {
  24533. width: calc(100% / 3.5);
  24534. position: relative;
  24535. margin: 0 15px 10px 0;
  24536. display: flex;
  24537. flex-direction: column;
  24538. flex-wrap: nowrap;
  24539. justify-content: center;
  24540. align-content: center;
  24541. align-items: center;
  24542. height: fit-content;
  24543. }
  24544. .upCover2 {
  24545. width: 100%;
  24546. position: relative;
  24547. margin: 0 15px 10px 0;
  24548. display: flex;
  24549. flex-direction: column;
  24550. flex-wrap: nowrap;
  24551. justify-content: center;
  24552. align-content: center;
  24553. align-items: center;
  24554. }
  24555. .upCover2 > img {
  24556. width: 100%;
  24557. height: 90px;
  24558. object-fit: contain;
  24559. }
  24560. .chapter_add {
  24561. width: 120px;
  24562. position: relative;
  24563. text-align: center;
  24564. }
  24565. .isAddThings {
  24566. margin-top: 20px;
  24567. position: relative;
  24568. text-align: center;
  24569. background: #f7f8fa;
  24570. height: 90px;
  24571. width: 90px;
  24572. display: flex;
  24573. flex-direction: column;
  24574. justify-content: center;
  24575. }
  24576. .deleteWord {
  24577. width: 22px;
  24578. height: 22px;
  24579. position: absolute;
  24580. right: -5px;
  24581. top: -5px;
  24582. cursor: pointer;
  24583. }
  24584. .box_course {
  24585. /* width: 60%; */
  24586. width: calc(100% - 300px);
  24587. }
  24588. .wheel {
  24589. width: 100%;
  24590. /* height: 100%; */
  24591. height: 650px;
  24592. }
  24593. .right_box {
  24594. display: flex;
  24595. flex-direction: column;
  24596. margin-left: 30px;
  24597. justify-content: space-around;
  24598. }
  24599. .right_box_title {
  24600. font-size: 23px;
  24601. }
  24602. .people {
  24603. display: flex;
  24604. }
  24605. .student_body {
  24606. width: 100%;
  24607. margin: 0 auto;
  24608. margin-top: 10px;
  24609. padding: 0 0 20px;
  24610. }
  24611. .study_top {
  24612. margin-top: 100px;
  24613. width: 100%;
  24614. height: auto;
  24615. padding-bottom: 20px;
  24616. margin-left: 2px;
  24617. min-height: 90%;
  24618. }
  24619. .study_top .checkbox {
  24620. display: flex;
  24621. align-items: center;
  24622. padding: 15px 0 15px 30px;
  24623. flex: 0 0 auto;
  24624. font-weight: bold;
  24625. border-bottom: 1px solid #eee;
  24626. }
  24627. .study_top .check {
  24628. padding-bottom: 5px;
  24629. text-align: center;
  24630. cursor: pointer;
  24631. height: 30px;
  24632. box-sizing: border-box;
  24633. display: flex;
  24634. }
  24635. .study_top .checked {
  24636. border-bottom: 4px solid #3fc6a0;
  24637. padding-bottom: 5px;
  24638. color: #3fc6a0;
  24639. display: flex;
  24640. height: 35px;
  24641. }
  24642. .study_top .checked > div,
  24643. .study_top .check > div {
  24644. margin-right: 5px;
  24645. }
  24646. .videoTop {
  24647. display: flex;
  24648. flex-direction: row;
  24649. justify-content: space-between;
  24650. background: #fff;
  24651. align-items: center;
  24652. width: 95%;
  24653. padding: 20px;
  24654. }
  24655. .filebox {
  24656. display: flex;
  24657. flex-wrap: wrap;
  24658. flex-direction: column;
  24659. padding: 0 0 5px;
  24660. position: relative;
  24661. }
  24662. .filebox:before {
  24663. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  24664. position: absolute;
  24665. top: 20px;
  24666. left: 13px;
  24667. border-left: 2px dotted #cad1dc;
  24668. height: calc(100% - 15px);
  24669. }
  24670. .toolHeng2 > div:last-child::before {
  24671. height: calc(100% - 43px);
  24672. }
  24673. .filebox .tooldetail {
  24674. width: calc(100%);
  24675. margin: 0px 12px;
  24676. padding: 12px;
  24677. line-height: 30px;
  24678. word-break: break-word;
  24679. background: #ffffff;
  24680. border-radius: 8px 8px 8px 8px;
  24681. opacity: 1;
  24682. border: 1px solid #cad1dc;
  24683. overflow:hidden;
  24684. box-sizing:border-box;
  24685. }
  24686. .file {
  24687. display: flex;
  24688. flex-direction: column;
  24689. align-items: center;
  24690. justify-content: center;
  24691. cursor: pointer;
  24692. width: 200px;
  24693. }
  24694. .file div {
  24695. margin-top: 10px;
  24696. width: 150px;
  24697. text-align: center;
  24698. overflow: hidden;
  24699. white-space: nowrap;
  24700. text-overflow: ellipsis;
  24701. }
  24702. .media {
  24703. display: flex;
  24704. flex-direction: column;
  24705. align-items: center;
  24706. justify-content: center;
  24707. margin: 0 20px 20px 0;
  24708. cursor: pointer;
  24709. margin: 12px 0 5px 15px;
  24710. overflow: hidden;
  24711. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  24712. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  24713. box-sizing: border-box;
  24714. }
  24715. .media img {
  24716. height: 90px;
  24717. width: 160px;
  24718. object-fit: cover;
  24719. }
  24720. .media .title {
  24721. padding: 5px;
  24722. text-align: left;
  24723. width: 100%;
  24724. box-sizing: border-box;
  24725. }
  24726. .media .btn {
  24727. width: 100%;
  24728. height: 35px;
  24729. line-height: 35px;
  24730. color: #fff;
  24731. background: #606060;
  24732. text-align: center;
  24733. overflow: hidden;
  24734. white-space: nowrap;
  24735. text-overflow: ellipsis;
  24736. }
  24737. .detail_content_top {
  24738. width: 100%;
  24739. padding: 25px 0 25px 0;
  24740. }
  24741. .detail_title {
  24742. text-align: center;
  24743. font-size: 24px;
  24744. }
  24745. .detail_time {
  24746. font-size: 13px;
  24747. padding: 15px 0 0 40px;
  24748. }
  24749. .detail_content {
  24750. line-height: 2pc;
  24751. width: 90%;
  24752. margin: 0 auto;
  24753. padding-top: 30px;
  24754. text-indent: 30px;
  24755. overflow: auto;
  24756. height: 200px;
  24757. }
  24758. .score_box >>> .el-rate {
  24759. margin-left: 10px;
  24760. }
  24761. .dialog_change >>> .el-dialog {
  24762. border-radius: 5px;
  24763. }
  24764. .dialog_change >>> .el-dialog__header {
  24765. background: #f2f2f2;
  24766. text-align: center;
  24767. }
  24768. .dialog_change >>> .el-dialog__title {
  24769. line-height: 5px;
  24770. }
  24771. .dialog_change >>> .el-dialog__body {
  24772. background: #fff;
  24773. padding: 10px 20px;
  24774. }
  24775. .score_box {
  24776. display: flex;
  24777. align-items: center;
  24778. margin-bottom: 18px;
  24779. margin-top: 20px;
  24780. }
  24781. .up_photo {
  24782. width: 120px;
  24783. cursor: pointer;
  24784. margin-top: 10px;
  24785. }
  24786. .up_photo2 {
  24787. width: 180px;
  24788. box-sizing: border-box;
  24789. min-width: 180px;
  24790. height: 180px;
  24791. max-height: 180px;
  24792. min-height: 180px;
  24793. cursor: pointer;
  24794. display: flex;
  24795. flex-direction: column;
  24796. align-items: center;
  24797. justify-content: center;
  24798. background: rgb(242, 246, 255);
  24799. /* padding: 25px; */
  24800. margin-bottom: 10px;
  24801. }
  24802. .up_photo2 img {
  24803. width: 50%;
  24804. height: auto;
  24805. }
  24806. .up_photo2 span {
  24807. color: #898989;
  24808. }
  24809. .plworkBox {
  24810. display: flex;
  24811. align-items: center;
  24812. margin-top: 10px;
  24813. flex-wrap: wrap;
  24814. }
  24815. .upload_send {
  24816. margin: 30px auto 30px;
  24817. width: 60%;
  24818. background: #3681fc;
  24819. text-align: center;
  24820. height: 35px;
  24821. line-height: 35px;
  24822. color: #fff;
  24823. border-radius: 5px;
  24824. cursor: pointer;
  24825. }
  24826. .marginT {
  24827. margin-top: 20px;
  24828. }
  24829. .cd_content_steps {
  24830. display: flex;
  24831. width: 90%;
  24832. justify-content: space-around;
  24833. border-top: 1px solid #eeeeee;
  24834. }
  24835. .cd_steps_box {
  24836. display: flex;
  24837. justify-content: center;
  24838. align-items: center;
  24839. flex-direction: column;
  24840. cursor: pointer;
  24841. }
  24842. .first {
  24843. display: flex;
  24844. align-items: center;
  24845. margin: 15px 0 20px 0;
  24846. font-size: 20px;
  24847. }
  24848. .first > div:nth-child(2) {
  24849. font-size: 16px !important;
  24850. padding-left: 10px;
  24851. line-height: 26px;
  24852. box-sizing: border-box;
  24853. }
  24854. .blue_box_one {
  24855. text-align: center;
  24856. color: #fff;
  24857. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  24858. border-radius: 7px;
  24859. margin: 10px;
  24860. cursor: pointer;
  24861. width: 95%;
  24862. height: 45px;
  24863. display: flex;
  24864. flex-direction: row;
  24865. justify-content: flex-start;
  24866. align-items: center;
  24867. }
  24868. .blue_box_one > div:nth-child(1) {
  24869. line-height: 30px;
  24870. margin: 0 5px 0 10px;
  24871. width: 30%;
  24872. min-width: 70px;
  24873. border-radius: 4px;
  24874. }
  24875. .blue_box_one > div:nth-child(2) {
  24876. white-space: nowrap;
  24877. text-overflow: ellipsis;
  24878. overflow: hidden;
  24879. word-break: break-all;
  24880. width: 70%;
  24881. text-align: left;
  24882. margin-right: 10px;
  24883. max-width: calc(100% - 85px);
  24884. }
  24885. .blue_box_one > div:nth-child(2):hover {
  24886. overflow: hidden;
  24887. text-overflow: ellipsis;
  24888. white-space: nowrap;
  24889. cursor: pointer;
  24890. }
  24891. .upFile {
  24892. margin: 0 auto;
  24893. width: 120px;
  24894. background: #3681fc;
  24895. color: #fff;
  24896. height: 30px;
  24897. text-align: center;
  24898. line-height: 30px;
  24899. border-radius: 5px;
  24900. font-size: 14px;
  24901. cursor: pointer;
  24902. }
  24903. .courseTitle {
  24904. width: 85%;
  24905. margin: 10px auto 26px auto;
  24906. display: flex;
  24907. flex-direction: row;
  24908. align-items: center;
  24909. justify-content: space-between;
  24910. text-align: center;
  24911. }
  24912. .courseTitle .ctitle {
  24913. font-size: 20px;
  24914. font-weight: bold;
  24915. color: #0e1e33;
  24916. white-space: nowrap;
  24917. overflow: hidden;
  24918. text-overflow: ellipsis;
  24919. }
  24920. .inviteBox {
  24921. font-size: 14px;
  24922. /* margin-top: 5px; */
  24923. color: #00000099;
  24924. text-align: center;
  24925. }
  24926. .courseTitle >>> .el-tooltip {
  24927. width: 100%;
  24928. white-space: nowrap;
  24929. overflow: hidden;
  24930. text-overflow: ellipsis;
  24931. word-break: break-word;
  24932. }
  24933. .ml {
  24934. margin-left: 20px;
  24935. color: #5b7dba;
  24936. border-left: 3px solid #5b7dba;
  24937. padding-left: 5px;
  24938. font-weight: bold;
  24939. }
  24940. .return {
  24941. width: 2rem;
  24942. height: 2rem;
  24943. cursor: pointer;
  24944. }
  24945. .return > img {
  24946. width: 100%;
  24947. height: 100%;
  24948. }
  24949. .returnBtn {
  24950. width: 86px;
  24951. height: 36px;
  24952. background: #3681fc;
  24953. border-radius: 4px;
  24954. color: #fff;
  24955. text-align: center;
  24956. line-height: 36px;
  24957. margin-right: 20px;
  24958. cursor: pointer;
  24959. font-size: 14px;
  24960. font-weight: 400;
  24961. display: flex;
  24962. flex-direction: row;
  24963. flex-wrap: nowrap;
  24964. align-items: center;
  24965. justify-content: center;
  24966. }
  24967. .reBtnIcon,
  24968. .commentIcon,
  24969. .vedioIcon,
  24970. .vedioIcon1 {
  24971. /* width: 36px; */
  24972. height: 36px;
  24973. border-radius: 4px;
  24974. position: relative;
  24975. /* background: #e0eafb; */
  24976. background: #0061ff;
  24977. cursor: pointer;
  24978. margin-right: 12px;
  24979. display: flex;
  24980. align-items: center;
  24981. padding: 0 10px;
  24982. box-sizing: border-box;
  24983. font-size: 14px;
  24984. color: #fff;
  24985. }
  24986. .reBtnIcon::before,
  24987. .commentIcon::before,
  24988. .vedioIcon::before,
  24989. .vedioIcon1::before {
  24990. content: "";
  24991. display: block;
  24992. background-size: 100% 100%;
  24993. background-repeat: no-repeat;
  24994. width: 20px;
  24995. height: 20px;
  24996. margin-right: 5px;
  24997. /* position: absolute; */
  24998. /* top: 8px;
  24999. left: 8px; */
  25000. }
  25001. .vedioIcon1 {
  25002. background: #f63564;
  25003. }
  25004. .reBtnIcon::before {
  25005. background-image: url("../../assets/icon/newIcons/refresh.png");
  25006. }
  25007. .commentIcon::before {
  25008. background-image: url("../../assets/icon/newIcons/comment.png");
  25009. }
  25010. .vedioIcon::before {
  25011. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25012. }
  25013. .vedioIcon1::before {
  25014. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  25015. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25016. }
  25017. .tool {
  25018. display: flex;
  25019. flex-direction: column;
  25020. flex-wrap: nowrap;
  25021. width: 13%;
  25022. margin: 0 30px;
  25023. align-items: center;
  25024. position: relative;
  25025. padding: 10px 25px;
  25026. cursor: pointer;
  25027. }
  25028. .whiteBIcon {
  25029. width: 150px;
  25030. }
  25031. .whiteBIcon > img {
  25032. width: 100%;
  25033. height: 100%;
  25034. }
  25035. .mask {
  25036. background-color: rgba(0, 0, 0, 0);
  25037. position: fixed;
  25038. top: 0;
  25039. left: 0;
  25040. width: 100%;
  25041. height: 100%;
  25042. z-index: 20000;
  25043. display: flex;
  25044. align-items: center;
  25045. justify-content: center;
  25046. }
  25047. .progressBox {
  25048. width: 500px;
  25049. height: 180px;
  25050. background: #fff;
  25051. border-radius: 10px;
  25052. box-shadow: 0 0 6px 1px #bfbfbf;
  25053. display: flex;
  25054. align-items: center;
  25055. justify-content: center;
  25056. flex-direction: column;
  25057. position: relative;
  25058. color: #6c6c6c;
  25059. }
  25060. .progressBox >>> .el-progress-bar__outer {
  25061. background-color: #d1dfff !important;
  25062. }
  25063. .progressBox .lbox {
  25064. height: 50px;
  25065. font-size: 19px;
  25066. display: flex;
  25067. align-items: center;
  25068. color: #747474;
  25069. }
  25070. .progressBox .lbox img {
  25071. width: 40px;
  25072. margin-right: 20px;
  25073. }
  25074. .closeCss {
  25075. position: absolute;
  25076. top: 8px;
  25077. right: 8px;
  25078. cursor: pointer;
  25079. width: 20px;
  25080. height: 20px;
  25081. }
  25082. .closeCss > img {
  25083. width: 100%;
  25084. height: 100%;
  25085. }
  25086. .uploadVedio {
  25087. display: flex;
  25088. flex-direction: column;
  25089. flex-wrap: nowrap;
  25090. justify-content: center;
  25091. align-items: center;
  25092. margin: 0 15px 10px 0;
  25093. }
  25094. .uploadVedio > img {
  25095. width: 30px;
  25096. height: 30px;
  25097. }
  25098. .uploadVedio > span {
  25099. white-space: nowrap;
  25100. overflow: hidden;
  25101. text-overflow: ellipsis;
  25102. width: 75px;
  25103. margin-top: 7px;
  25104. }
  25105. .picName {
  25106. white-space: nowrap;
  25107. overflow: hidden;
  25108. text-overflow: ellipsis;
  25109. width: 75px;
  25110. margin-top: 7px;
  25111. }
  25112. .new_top {
  25113. display: flex;
  25114. background: #fff;
  25115. flex-direction: row;
  25116. justify-content: flex-start;
  25117. align-items: center;
  25118. height: 60px;
  25119. position: fixed;
  25120. top: 20px;
  25121. left: 22%;
  25122. width: 77%;
  25123. z-index: 999;
  25124. border-radius: 12px 12px 0 0;
  25125. border-bottom: 1px solid #cad1dc;
  25126. padding: 10px 0;
  25127. }
  25128. .new_topFixed {
  25129. width: 100%;
  25130. height: 40px;
  25131. position: fixed;
  25132. top: 0px;
  25133. display: block;
  25134. background: #f2f2f2;
  25135. z-index: 998;
  25136. }
  25137. .before {
  25138. position: absolute;
  25139. background: #c3dad4;
  25140. width: 6px;
  25141. height: 100%;
  25142. }
  25143. .courseIndex {
  25144. display: flex;
  25145. flex-direction: row;
  25146. align-items: center;
  25147. width: calc(100% - 745px);
  25148. }
  25149. .courseIndex > div:nth-child(1) {
  25150. margin: 0 0 0 10px;
  25151. font-size: 20px;
  25152. min-width: 100px;
  25153. font-weight: bold;
  25154. border-left: 4px solid #3363b9;
  25155. height: 32px;
  25156. text-align: center;
  25157. line-height: 35px;
  25158. }
  25159. .courseIndex > div:nth-child(2) {
  25160. font-size: 20px;
  25161. /* width: 300px; */
  25162. max-width: calc(100% - 105px);
  25163. white-space: nowrap;
  25164. overflow: hidden;
  25165. text-overflow: ellipsis;
  25166. }
  25167. .courseIndex > div:nth-child(3) {
  25168. border-bottom: 1px solid #d7d7d7;
  25169. padding-bottom: 5px;
  25170. background: #3681fc;
  25171. width: 55px;
  25172. min-width: 55px;
  25173. border-radius: 5px;
  25174. color: #fff;
  25175. text-align: center;
  25176. height: 20px;
  25177. line-height: 26px;
  25178. font-size: 14px;
  25179. margin: 0 0 0 10px;
  25180. }
  25181. .course_text {
  25182. padding: 20px 0 0 15px;
  25183. text-indent: 30px;
  25184. width: 80%;
  25185. min-height: 20px;
  25186. }
  25187. .vedioList {
  25188. background: #f2f2f2;
  25189. border: 1px solid #ececec;
  25190. /* width: 38.8%; */
  25191. /* width: 300px; */
  25192. width: 100%;
  25193. height: 445px;
  25194. border-radius: 10px;
  25195. overflow: hidden;
  25196. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  25197. }
  25198. .vedioNav {
  25199. margin: 10px 0 0 15px;
  25200. border-bottom: 1px solid #d7d7d7;
  25201. padding-bottom: 5px;
  25202. background: #3681fc;
  25203. width: 55px;
  25204. min-width: 55px;
  25205. border-radius: 5px;
  25206. color: #fff;
  25207. text-align: center;
  25208. height: 20px;
  25209. line-height: 26px;
  25210. font-size: 14px;
  25211. }
  25212. .queTop {
  25213. display: flex;
  25214. padding: 20px 0 20px 30px;
  25215. width: 100%;
  25216. flex-direction: row;
  25217. justify-content: flex-start;
  25218. align-items: center;
  25219. box-sizing: border-box;
  25220. }
  25221. .queTopTitle {
  25222. display: flex;
  25223. flex-direction: row;
  25224. flex-wrap: nowrap;
  25225. align-items: center;
  25226. font-weight: bold;
  25227. font-size: 20px;
  25228. color: rgb(14, 30, 51);
  25229. }
  25230. .queTopTitle::before {
  25231. content: "";
  25232. width: 2px;
  25233. height: 22px;
  25234. background: #3681fc;
  25235. border-radius: 3px;
  25236. display: block;
  25237. margin: 2px 6px 0 0;
  25238. }
  25239. .queTopRight {
  25240. display: flex;
  25241. flex-direction: row;
  25242. flex-wrap: nowrap;
  25243. align-items: center;
  25244. }
  25245. .queTopClose {
  25246. margin-right: 20px;
  25247. cursor: pointer;
  25248. position: relative;
  25249. display: flex;
  25250. }
  25251. .closeImg,
  25252. .openImg {
  25253. width: 25px;
  25254. height: 25px;
  25255. position: absolute;
  25256. left: -20px;
  25257. top: -1px;
  25258. }
  25259. .closeImg > img,
  25260. .openImg > img {
  25261. width: 100%;
  25262. height: 100%;
  25263. }
  25264. .question {
  25265. width: 40px;
  25266. margin-right: 10px;
  25267. margin-top: 7px;
  25268. }
  25269. .queTitle {
  25270. margin-left: 5px;
  25271. font-size: 25px;
  25272. display: flex;
  25273. align-items: center;
  25274. }
  25275. .addEditor {
  25276. width: 100px;
  25277. height: 30px;
  25278. background: #42cda6;
  25279. color: #fff;
  25280. border-radius: 5px;
  25281. text-align: center;
  25282. line-height: 30px;
  25283. box-shadow: 1px 3px 6px 1px #bfbfbf;
  25284. cursor: pointer;
  25285. }
  25286. /* .vedioName {
  25287. cursor: pointer;
  25288. margin: 0px 0px 10px 5px;
  25289. white-space: nowrap;
  25290. overflow: hidden;
  25291. text-overflow: ellipsis;
  25292. width: 100%;
  25293. } */
  25294. .vedioTime {
  25295. width: 35px;
  25296. position: absolute;
  25297. color: #fff;
  25298. bottom: 0px;
  25299. right: 0px;
  25300. text-align: center;
  25301. background: #46411f;
  25302. height: 20px;
  25303. font-size: 14px;
  25304. line-height: 20px;
  25305. }
  25306. .homework {
  25307. width: 200px;
  25308. display: flex;
  25309. flex-direction: column;
  25310. flex-wrap: nowrap;
  25311. align-items: center;
  25312. cursor: pointer;
  25313. }
  25314. .homebox {
  25315. display: flex;
  25316. flex-wrap: wrap;
  25317. flex-direction: row;
  25318. justify-content: flex-start;
  25319. align-items: center;
  25320. padding: 15px 0;
  25321. }
  25322. .isChooseActive {
  25323. color: #3681fc !important;
  25324. font-weight: bold !important;
  25325. }
  25326. .chooseWho {
  25327. display: flex;
  25328. width: 100%;
  25329. flex-direction: row;
  25330. flex-wrap: nowrap;
  25331. justify-content: flex-start;
  25332. padding-bottom: 10px;
  25333. }
  25334. .chooseWho > div {
  25335. cursor: pointer;
  25336. padding-bottom: 10px;
  25337. margin: 0 30px 0 0;
  25338. font-weight: 400;
  25339. color: #0e1e33;
  25340. }
  25341. .addPoint > div > img {
  25342. cursor: pointer;
  25343. width: 85px;
  25344. border-radius: 15px;
  25345. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  25346. }
  25347. .addPoint > div {
  25348. display: flex;
  25349. flex-direction: column;
  25350. flex-wrap: nowrap;
  25351. align-items: center;
  25352. }
  25353. .isBorder > div {
  25354. margin: 0 0 10px 0;
  25355. align-items: flex-start !important;
  25356. }
  25357. .noiframeBox {
  25358. display: flex;
  25359. flex-wrap: wrap;
  25360. }
  25361. .iframeBox iframe {
  25362. width: 100%;
  25363. height: 800px;
  25364. border: none;
  25365. margin-bottom: 20px;
  25366. border: 1px solid #ccc;
  25367. }
  25368. .upload_toolBtn {
  25369. background: #3681fc;
  25370. color: #fff;
  25371. width: 110px;
  25372. text-align: center;
  25373. height: 35px;
  25374. line-height: 35px;
  25375. font-size: 14px;
  25376. border-radius: 5px;
  25377. cursor: pointer;
  25378. position: absolute;
  25379. right: 10px;
  25380. bottom: 0;
  25381. }
  25382. .binfo_input,
  25383. .pj {
  25384. font: inherit;
  25385. color: currentColor;
  25386. width: 100%;
  25387. margin: 0;
  25388. padding: 15px 14px;
  25389. display: block;
  25390. min-width: 0;
  25391. outline: none;
  25392. box-sizing: content-box;
  25393. background: none;
  25394. -webkit-tap-highlight-color: transparent;
  25395. border: 1px solid rgba(0, 0, 0, 0.23);
  25396. border-radius: 4px;
  25397. box-sizing: border-box;
  25398. resize: none;
  25399. }
  25400. .binfo_input:focus-visible {
  25401. border: 1px solid rgba(61, 103, 188);
  25402. }
  25403. .dialog_diy >>> .el-dialog__header,
  25404. .dialog_diy1 >>> .el-dialog__header {
  25405. background: #454545 !important;
  25406. padding: 15px 20px;
  25407. }
  25408. .dialog_diy >>> .el-dialog__title,
  25409. .dialog_diy1 >>> .el-dialog__title {
  25410. color: #fff;
  25411. }
  25412. .dialog_diy >>> .el-dialog__headerbtn,
  25413. .dialog_diy1 >>> .el-dialog__headerbtn {
  25414. top: 19px;
  25415. }
  25416. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  25417. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  25418. color: #fff;
  25419. }
  25420. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  25421. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  25422. color: #fff;
  25423. }
  25424. .dialog_diy1 >>> .el-dialog__body {
  25425. padding: 0;
  25426. }
  25427. .dialog_diy >>> .el-dialog__body,
  25428. .dialog_diy >>> .el-dialog__footer,
  25429. .dialog_diy1 >>> .el-dialog__footer {
  25430. background: #fafafa;
  25431. }
  25432. .markScore_diy >>> .el-dialog {
  25433. border-radius: 10px;
  25434. }
  25435. .markScore_diy >>> .el-dialog__body {
  25436. padding: 0;
  25437. height: 621px;
  25438. min-height: calc(100% - 60px);
  25439. }
  25440. .markScore_diy >>> .el-dialog__header {
  25441. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  25442. }
  25443. .markScore_diy >>> .markScore_diyTit {
  25444. width: calc(100% - 60px);
  25445. display: flex;
  25446. justify-content: space-between;
  25447. align-items: center;
  25448. }
  25449. .a_addBox {
  25450. padding: 0 0 0 15px;
  25451. }
  25452. .a_add_box {
  25453. padding: 10px;
  25454. background: #fff;
  25455. margin-bottom: 10px;
  25456. border-radius: 5px;
  25457. box-shadow: 0 0 5px 0 #d5d5d5;
  25458. }
  25459. .a_add_head {
  25460. display: flex;
  25461. align-items: flex-start;
  25462. /* justify-content: space-between; */
  25463. flex-direction: column;
  25464. /* flex-direction: row; */
  25465. margin: 10px 0 20px 0;
  25466. font-size: 18px;
  25467. width: 100%;
  25468. }
  25469. .askIndex {
  25470. background: #3681fc;
  25471. border-radius: 50%;
  25472. color: #fff;
  25473. width: 25px;
  25474. height: 25px;
  25475. min-width: 25px;
  25476. min-height: 25px;
  25477. text-align: center;
  25478. line-height: 25px;
  25479. margin-right: 5px;
  25480. }
  25481. .a_add_head .a_add_head_input {
  25482. width: 300px;
  25483. }
  25484. .a_add_head .a_add_head_div {
  25485. display: flex;
  25486. align-items: center;
  25487. justify-content: space-between;
  25488. }
  25489. .a_add_body {
  25490. display: flex;
  25491. align-items: center;
  25492. }
  25493. .a_add_input {
  25494. display: flex;
  25495. align-items: center;
  25496. flex-wrap: wrap;
  25497. width: 100%;
  25498. }
  25499. .a_add_input >>> .el-radio-group,
  25500. .a_add_input >>> .el-checkbox-group {
  25501. width: 100%;
  25502. }
  25503. .a_add_input >>> .el-radio,
  25504. .a_add_input >>> .el-checkbox {
  25505. display: flex;
  25506. flex-direction: row;
  25507. flex-wrap: nowrap;
  25508. align-items: center;
  25509. padding: 15px 0;
  25510. }
  25511. .a_add_input >>> .el-radio:not(:last-child),
  25512. .a_add_input >>> .el-checkbox:not(:last-child) {
  25513. width: 100%;
  25514. border-bottom: 1px solid #efefef;
  25515. }
  25516. .redioStyle >>> .el-radio__label {
  25517. font-size: 18px;
  25518. }
  25519. .redioStyle >>> .el-radio__label > span,
  25520. .redioStyle >>> .el-checkbox__label > span {
  25521. word-break: break-all;
  25522. white-space: normal;
  25523. }
  25524. .redioStyle >>> .el-checkbox__label {
  25525. font-size: 18px;
  25526. }
  25527. .toolHeng2 {
  25528. width: 100%;
  25529. padding-left: 15px;
  25530. box-sizing: border-box;
  25531. }
  25532. .workNav {
  25533. font-size: 20px;
  25534. font-weight: bold;
  25535. color: #0e1e33;
  25536. display: flex;
  25537. flex-direction: row;
  25538. flex-wrap: nowrap;
  25539. align-items: center;
  25540. padding: 15px 0 15px 0;
  25541. }
  25542. .workNav::before {
  25543. content: "";
  25544. width: 2px;
  25545. height: 22px;
  25546. background: #3681fc;
  25547. border-radius: 3px;
  25548. display: block;
  25549. margin: 2px 6px 0 0;
  25550. }
  25551. .toolHeng {
  25552. display: flex;
  25553. flex-direction: row;
  25554. flex-wrap: wrap;
  25555. justify-content: flex-start;
  25556. align-items: center;
  25557. width: 100%;
  25558. }
  25559. .toolHeng > div {
  25560. padding-left: 20px;
  25561. }
  25562. .isWidth {
  25563. width: 20%;
  25564. }
  25565. .textTitle {
  25566. display: flex;
  25567. flex-direction: row;
  25568. flex-wrap: nowrap;
  25569. align-items: center;
  25570. width: 95%;
  25571. }
  25572. .textTitle >>> .el-form-item__label {
  25573. font-size: 22px;
  25574. color: #918f8f;
  25575. width: 100px;
  25576. }
  25577. .textTitle >>> .el-form-item__content {
  25578. width: calc(100% - 100px);
  25579. }
  25580. .textCss >>> .el-dialog {
  25581. width: 800px !important;
  25582. height: 400px;
  25583. background: #fafafa;
  25584. }
  25585. .textCss >>> .el-dialog__body {
  25586. margin: 55px 8% 0 8%;
  25587. padding: 0 !important;
  25588. }
  25589. .textCss >>> .el-dialog__footer {
  25590. padding-top: 38px;
  25591. }
  25592. .toolsCss >>> .el-dialog__body {
  25593. padding: 20px;
  25594. }
  25595. .lineCss >>> .el-dialog__body {
  25596. display: flex;
  25597. flex-direction: row;
  25598. align-items: center;
  25599. justify-content: center;
  25600. }
  25601. .newNav {
  25602. display: flex;
  25603. flex-direction: row;
  25604. align-items: baseline;
  25605. justify-content: flex-start;
  25606. }
  25607. .navListItem {
  25608. width: calc(100% - 20px);
  25609. height: 50px;
  25610. margin: 0px auto 10px;
  25611. display: flex;
  25612. flex-direction: row;
  25613. flex-wrap: nowrap;
  25614. align-items: center;
  25615. justify-content: space-between;
  25616. background: #f0f4fa;
  25617. border-radius: 6px 6px 6px 6px;
  25618. }
  25619. .navText {
  25620. cursor: pointer;
  25621. white-space: nowrap;
  25622. overflow: hidden;
  25623. text-overflow: ellipsis;
  25624. width: 220px;
  25625. padding: 0 10px;
  25626. font-weight: 400;
  25627. color: #0e1e33;
  25628. }
  25629. .downIcon {
  25630. width: 20px;
  25631. min-width: 20px;
  25632. height: 20px;
  25633. margin-right: 15px;
  25634. cursor: pointer;
  25635. }
  25636. .downIcon > img {
  25637. width: 100%;
  25638. height: 100%;
  25639. }
  25640. .noVedio {
  25641. display: flex;
  25642. flex-direction: row;
  25643. justify-content: center;
  25644. align-content: center;
  25645. }
  25646. .noNavText {
  25647. cursor: pointer;
  25648. margin: 0px 0px 10px 5px;
  25649. width: 112px;
  25650. }
  25651. .listNoVedio {
  25652. margin: 0 0 0 30px;
  25653. width: 97%;
  25654. }
  25655. .video-player >>> .video-js {
  25656. height: 100%;
  25657. }
  25658. .hangVedioList {
  25659. width: 90% !important;
  25660. height: 150px !important;
  25661. margin: 20px 0 0 30px;
  25662. }
  25663. .hangVedio {
  25664. width: 100%;
  25665. height: 170px !important;
  25666. align-items: flex-start !important;
  25667. }
  25668. .hangHand {
  25669. height: 150px !important;
  25670. }
  25671. .twoChild {
  25672. width: 95%;
  25673. margin: 10px;
  25674. border-radius: 5px;
  25675. background: #f2f2f2;
  25676. display: flex;
  25677. flex-direction: column;
  25678. flex-wrap: nowrap;
  25679. justify-content: flex-start;
  25680. align-items: flex-start;
  25681. transition: all 0.5s;
  25682. overflow: hidden;
  25683. height: 0;
  25684. background: #e7f3ff;
  25685. }
  25686. .twoChild > div:nth-child(1) {
  25687. margin-top: 5px;
  25688. }
  25689. .navChild {
  25690. width: 100%;
  25691. cursor: pointer;
  25692. margin-bottom: 10px;
  25693. position: relative;
  25694. }
  25695. .navChild img {
  25696. position: absolute;
  25697. right: 11px;
  25698. width: 15px;
  25699. top: 50%;
  25700. transform: translateY(-50%);
  25701. }
  25702. .navActive,
  25703. .toolActive {
  25704. height: auto !important;
  25705. overflow: auto !important;
  25706. /* padding-bottom: 16px; */
  25707. }
  25708. .toolActive {
  25709. padding: 0;
  25710. }
  25711. .navTask {
  25712. display: flex;
  25713. flex-direction: row;
  25714. flex-wrap: nowrap;
  25715. align-items: center;
  25716. align-content: flex-start;
  25717. height: 40px;
  25718. justify-content: flex-start;
  25719. padding: 0 10px;
  25720. width: 100%;
  25721. box-sizing: border-box;
  25722. }
  25723. .navTaskname {
  25724. white-space: nowrap;
  25725. text-overflow: ellipsis;
  25726. overflow: hidden;
  25727. word-break: break-all;
  25728. padding-left: 5px;
  25729. }
  25730. .openTaskActive {
  25731. /* background-color: #e0eafb !important;
  25732. color: #0061ff; */
  25733. color:#fff;
  25734. background: rgb(55, 129, 252) !important;
  25735. }
  25736. .iframeName {
  25737. margin: 5px 0;
  25738. border-left: 4px solid #41c4a4;
  25739. padding-left: 4px;
  25740. }
  25741. .toolTitle {
  25742. margin: 0px 0px 20px;
  25743. font-size: 20px;
  25744. font-weight: 500;
  25745. border-left: 4px solid #41c4a4;
  25746. padding-left: 4px;
  25747. }
  25748. .cru_selectBox {
  25749. overflow: auto;
  25750. width: 95%;
  25751. margin: 17px auto 0;
  25752. height: calc(100% - 40px - 21px - 20px - 17px);
  25753. background: #fff;
  25754. border-radius: 8px;
  25755. }
  25756. .cru_selectBox::-webkit-scrollbar,
  25757. .study_top::-webkit-scrollbar,
  25758. .textContent::-webkit-scrollbar {
  25759. /*滚动条整体样式*/
  25760. width: 6px;
  25761. /*高宽分别对应横竖滚动条的尺寸*/
  25762. height: 6px;
  25763. }
  25764. /*定义滚动条轨道 内阴影+圆角*/
  25765. .cru_selectBox::-webkit-scrollbar-track,
  25766. .study_top::-webkit-scrollbar-track,
  25767. .textContent::-webkit-scrollbar {
  25768. border-radius: 10px;
  25769. background-color: #b8bdc9;
  25770. }
  25771. /*定义滑块 内阴影+圆角*/
  25772. .cru_selectBox::-webkit-scrollbar-thumb,
  25773. .study_top::-webkit-scrollbar-thumb,
  25774. .textContent::-webkit-scrollbar-thumb {
  25775. border-radius: 10px;
  25776. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  25777. background-color: #2c5ab3;
  25778. }
  25779. .vedioBox {
  25780. border-radius: 0 0 20px 20px;
  25781. background: #fff;
  25782. overflow: auto;
  25783. }
  25784. .taskBox {
  25785. width: 98%;
  25786. background: #f0f4fa;
  25787. margin: 10px auto;
  25788. padding: 0 10px;
  25789. border-radius: 4px;
  25790. box-sizing: border-box;
  25791. }
  25792. .vedioTaskBox {
  25793. width: 100%;
  25794. display: flex;
  25795. flex-direction: row;
  25796. flex-wrap: nowrap;
  25797. align-items: flex-start;
  25798. position: relative;
  25799. }
  25800. .toolBox {
  25801. margin: 15px 0 0 25px;
  25802. display: flex;
  25803. position: relative;
  25804. padding: 18px 20px;
  25805. border-top-left-radius: 5px;
  25806. border-top-right-radius: 5px;
  25807. width: 90%;
  25808. }
  25809. .btnAll {
  25810. position: absolute;
  25811. right: 0;
  25812. display: flex;
  25813. flex-direction: row;
  25814. flex-wrap: nowrap;
  25815. align-items: center;
  25816. }
  25817. .btnLeft,
  25818. .btnRight {
  25819. display: flex;
  25820. flex-direction: row;
  25821. flex-wrap: nowrap;
  25822. align-items: center;
  25823. padding: 5px 0;
  25824. }
  25825. .btnLeft {
  25826. border-right: 1px solid #cad1dc;
  25827. }
  25828. .btnLeft > .custom-tooltip {
  25829. background: #3681fc;
  25830. color: #fff;
  25831. }
  25832. .last:hover {
  25833. background: #3383fa !important;
  25834. color: #fff;
  25835. border: 1px solid #3383fa !important;
  25836. }
  25837. .last,
  25838. .returnBtn1 {
  25839. width: 90px;
  25840. height: 36px;
  25841. background: #ffffff;
  25842. border-radius: 4px;
  25843. border: 1px solid #0061ff;
  25844. color: #0061ff;
  25845. cursor: pointer;
  25846. display: flex;
  25847. flex-direction: row;
  25848. flex-wrap: nowrap;
  25849. align-items: center;
  25850. justify-content: center;
  25851. margin-left: 12px;
  25852. }
  25853. .returnBtn1 {
  25854. background: #f0f4fa;
  25855. border-radius: 4px;
  25856. border: 1px solid #cad1dc;
  25857. margin: 0 12px;
  25858. }
  25859. .lastImg {
  25860. min-width: 15px;
  25861. width: 15px;
  25862. height: 15px;
  25863. display: flex;
  25864. }
  25865. .lastText {
  25866. padding: 0 5px 0 5px;
  25867. box-sizing: border-box;
  25868. font-size: 14px;
  25869. }
  25870. .lastImg > img {
  25871. width: 100%;
  25872. height: 100%;
  25873. }
  25874. /* .vedioTimeBox {
  25875. display: flex;
  25876. flex-direction: row;
  25877. align-items: center;
  25878. flex-wrap: nowrap;
  25879. position: relative;
  25880. } */
  25881. .navBox {
  25882. background: #fff;
  25883. height: calc(100% - 40px);
  25884. overflow-y: auto;
  25885. overflow-x: hidden;
  25886. }
  25887. .worksBox {
  25888. margin: 0 0 10px 25px;
  25889. border-bottom: 1px solid #eeeeee;
  25890. padding: 18px 20px;
  25891. border-radius: 4px;
  25892. width: 90%;
  25893. }
  25894. .worksBTitle {
  25895. font-size: 20px;
  25896. padding-bottom: 15px;
  25897. border-bottom: 1px solid #eeeeee;
  25898. display: flex;
  25899. align-items: center;
  25900. }
  25901. .greenBox {
  25902. width: 5px;
  25903. height: 30px;
  25904. background: #63b6fa;
  25905. margin-right: 5px;
  25906. }
  25907. .worksDetailBox {
  25908. display: flex;
  25909. width: 100%;
  25910. flex-direction: row;
  25911. flex-wrap: wrap;
  25912. align-items: flex-end;
  25913. justify-content: flex-start;
  25914. padding: 15px 5px;
  25915. box-sizing: border-box;
  25916. }
  25917. .works {
  25918. display: flex;
  25919. flex-direction: column;
  25920. flex-wrap: nowrap;
  25921. align-items: flex-start;
  25922. justify-content: flex-start;
  25923. align-content: center;
  25924. max-width: 240px;
  25925. width: calc(100% / 3 - 10px);
  25926. height: auto;
  25927. margin-right: 10px;
  25928. margin-bottom: 10px;
  25929. overflow: hidden;
  25930. height: 140px;
  25931. box-shadow: 0 0 6px 1px #dfdada;
  25932. border-radius: 15px;
  25933. }
  25934. .workImg {
  25935. width: 100%;
  25936. /* height: calc(100% - 40px); */
  25937. height: 105px;
  25938. position: relative;
  25939. }
  25940. .workImg > img {
  25941. width: 100%;
  25942. height: 100%;
  25943. object-fit: contain;
  25944. cursor: pointer;
  25945. }
  25946. .worksName {
  25947. height: 40px;
  25948. line-height: 40px;
  25949. display: flex;
  25950. width: 100%;
  25951. flex-direction: row;
  25952. flex-wrap: nowrap;
  25953. justify-content: space-between;
  25954. align-items: center;
  25955. margin: 0 0 0 10px;
  25956. }
  25957. .worksName > div:nth-child(1) {
  25958. width: 110px;
  25959. white-space: nowrap;
  25960. overflow: hidden;
  25961. text-overflow: ellipsis;
  25962. }
  25963. .worksName > div:nth-child(2) {
  25964. color: #b7b4b5;
  25965. }
  25966. .noWorksS {
  25967. padding: 15px 0;
  25968. display: flex;
  25969. flex-direction: row;
  25970. flex-wrap: wrap;
  25971. align-items: center;
  25972. justify-content: flex-start;
  25973. }
  25974. .noWorksName,
  25975. .isWorksName,
  25976. .isWorksName2 {
  25977. background: #ddebf8;
  25978. color: #000;
  25979. width: 90px;
  25980. height: 25px;
  25981. text-align: center;
  25982. line-height: 25px;
  25983. border-radius: 4px;
  25984. margin: 10px 15px 10px 0;
  25985. white-space: nowrap;
  25986. overflow: hidden;
  25987. padding: 5px;
  25988. text-overflow: ellipsis;
  25989. cursor: pointer;
  25990. border: 1px solid #ddebf8;
  25991. }
  25992. .noWorksName {
  25993. background: #fff;
  25994. color: #0061ff;
  25995. border: 1px solid #0061ff;
  25996. }
  25997. .noWorksName > span{
  25998. max-width: 100%;
  25999. display: block;
  26000. overflow: hidden;
  26001. text-overflow: ellipsis;
  26002. white-space: nowrap;
  26003. }
  26004. .isWorksName2 {
  26005. width: 100px;
  26006. height: 40px;
  26007. line-height: 40px;
  26008. position: relative;
  26009. background: #dae6f9;
  26010. }
  26011. .isWorksName {
  26012. background: #e7ebf1 !important;
  26013. width: 100px;
  26014. height: 40px;
  26015. line-height: 40px;
  26016. position: relative;
  26017. color: #acb4bf;
  26018. border: 1px solid #cad1dc !important;
  26019. }
  26020. .isSelectName,
  26021. .noWorksName:hover {
  26022. background: #3383fa !important;
  26023. color: #fff !important;
  26024. border: 1px solid #3383fa !important;
  26025. }
  26026. .title {
  26027. background: #1e5cc9;
  26028. /* width: 98%; */
  26029. height: 45px;
  26030. color: #fff;
  26031. line-height: 45px;
  26032. padding-left: 20px;
  26033. box-sizing: border-box;
  26034. }
  26035. .textBox {
  26036. font-size: 20px;
  26037. width: 90%;
  26038. display: flex;
  26039. flex-direction: column;
  26040. align-items: center;
  26041. margin: 20px auto 0;
  26042. max-height: calc(100% - 75px);
  26043. overflow: auto;
  26044. }
  26045. .textContent {
  26046. font-size: 18px;
  26047. width: 95%;
  26048. max-width: 95%;
  26049. }
  26050. .answerBg {
  26051. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  26052. background-size: 100% 100%;
  26053. width: 100%;
  26054. height: 100%;
  26055. color: #fff;
  26056. text-align: center;
  26057. display: flex;
  26058. flex-direction: column;
  26059. flex-wrap: nowrap;
  26060. align-items: center;
  26061. position: relative;
  26062. justify-content: center;
  26063. }
  26064. .answerBg > div:nth-child(1) {
  26065. /* font-size: 22px;
  26066. padding: 25px 0 10px; */
  26067. }
  26068. .answerContent {
  26069. width: 215px;
  26070. max-height: 60px;
  26071. word-break: break-all;
  26072. text-align: center;
  26073. /* white-space: nowrap; */
  26074. overflow: hidden;
  26075. text-overflow: ellipsis;
  26076. /* padding: 23px 0 0; */
  26077. -webkit-line-clamp: 3;
  26078. -webkit-box-orient: vertical;
  26079. display: -webkit-box;
  26080. font-size: 15px;
  26081. cursor: pointer;
  26082. }
  26083. .elist_input_box {
  26084. display: flex;
  26085. align-items: flex-start;
  26086. flex-wrap: nowrap;
  26087. padding: 10px 0 15px 30px;
  26088. flex-direction: column;
  26089. }
  26090. .elist_input {
  26091. /* width: 40%; */
  26092. width: 45%;
  26093. margin: 20px;
  26094. }
  26095. .elist_input .elist_input_box input {
  26096. font: inherit;
  26097. color: currentColor;
  26098. width: 200px;
  26099. padding: 8px 14px;
  26100. display: block;
  26101. min-width: 0;
  26102. outline: none;
  26103. border: 1px solid rgba(0, 0, 0, 0.23);
  26104. border-radius: 4px;
  26105. box-sizing: border-box;
  26106. background: #fff;
  26107. margin: 0 20px 0 0;
  26108. }
  26109. .elist_input .elist_input_box span {
  26110. height: 36px;
  26111. line-height: 36px;
  26112. color: rgb(82, 82, 82);
  26113. }
  26114. .elist_input .elist_input_box .remove {
  26115. height: 20px;
  26116. width: 20px;
  26117. background-size: 100% 100%;
  26118. background-position: unset;
  26119. margin-left: 5px;
  26120. }
  26121. .elist_input_box >>> .el-rate {
  26122. display: flex;
  26123. height: 36px;
  26124. align-items: center;
  26125. }
  26126. .elist_input_box .elist_inptu_text {
  26127. min-height: 50px;
  26128. /* width: 500px;
  26129. max-height: 150px; */
  26130. width: 100%;
  26131. line-height: 50px;
  26132. color: rgb(82, 82, 82);
  26133. overflow: auto;
  26134. text-indent: 5px;
  26135. background: #f7f6f9;
  26136. border-radius: 10px;
  26137. }
  26138. .elist_input_box .elist_inptu_text input {
  26139. width: 500px;
  26140. }
  26141. .elist_input_box >>> .el-rate__icon {
  26142. font-size: 24px;
  26143. }
  26144. .isClick {
  26145. background: #4d9def;
  26146. }
  26147. .bzBox {
  26148. display: flex;
  26149. flex-direction: row;
  26150. align-items: center;
  26151. }
  26152. .bzBox .yCss {
  26153. width: 7px;
  26154. height: 7px;
  26155. background: #fff;
  26156. margin: 0 16px 0 6px;
  26157. border-radius: 50%;
  26158. border: 5px solid #3681fc;
  26159. z-index: 99;
  26160. }
  26161. .bzBox > div:nth-child(2) {
  26162. font-size: 18px;
  26163. font-weight: bold;
  26164. color: #0e1e33;
  26165. }
  26166. .navTitile {
  26167. padding: 0 0px 0 15px;
  26168. font-size: 16px;
  26169. font-weight: bold;
  26170. color: #0e1e33;
  26171. height: 40px;
  26172. line-height: 40px;
  26173. }
  26174. .isTypeOne {
  26175. width: 240px;
  26176. height: 170px;
  26177. /* border: 1px solid #f8f8f8; */
  26178. border-radius: 10px;
  26179. box-shadow: 0 0 6px 1px #dfdada;
  26180. }
  26181. .e_add_top {
  26182. display: flex;
  26183. justify-content: space-between;
  26184. padding: 10px 20px;
  26185. border-radius: 3px;
  26186. background: #fff;
  26187. }
  26188. .e_add_title2 {
  26189. display: flex;
  26190. align-items: center;
  26191. }
  26192. .e_add_title2 span {
  26193. width: 40px;
  26194. }
  26195. .e_add_title {
  26196. display: flex;
  26197. align-items: center;
  26198. color: #b8b8b8;
  26199. font-size: 18px;
  26200. position: relative;
  26201. height: 40px;
  26202. }
  26203. .e_add_title span {
  26204. margin-right: 10px;
  26205. }
  26206. .e_add_title .el_input {
  26207. width: 300px;
  26208. }
  26209. .e_add_title >>> .el-input__inner {
  26210. width: 400px;
  26211. }
  26212. .e_add_btn {
  26213. }
  26214. .e_add_content {
  26215. display: flex;
  26216. width: 100%;
  26217. max-width: 650px;
  26218. height: 550px;
  26219. }
  26220. .e_add_list {
  26221. background: #fff;
  26222. height: 500px;
  26223. width: 210px;
  26224. position: relative;
  26225. margin: 15px 5px 0 0;
  26226. flex-shrink: 0;
  26227. display: flex;
  26228. flex-direction: column;
  26229. }
  26230. .e_add_list_title {
  26231. font-size: 20px;
  26232. width: 100%;
  26233. box-sizing: border-box;
  26234. padding: 15px 40px;
  26235. text-align: center;
  26236. border-bottom: 1px solid #eaeaea;
  26237. position: relative;
  26238. display: flex;
  26239. align-items: center;
  26240. justify-content: center;
  26241. height: 57px;
  26242. background: #f6f6f6;
  26243. }
  26244. .e_add_list_title span {
  26245. overflow: hidden;
  26246. white-space: nowrap;
  26247. text-overflow: ellipsis;
  26248. }
  26249. .e_add_list_title img {
  26250. position: absolute;
  26251. right: 15px;
  26252. width: 25px;
  26253. cursor: pointer;
  26254. top: 50%;
  26255. transform: translateY(-50%);
  26256. }
  26257. .e_add_list_body {
  26258. height: calc(100% - 187px);
  26259. overflow: auto;
  26260. }
  26261. .e_add_list_child {
  26262. width: 100%;
  26263. display: flex;
  26264. align-items: center;
  26265. justify-content: center;
  26266. position: relative;
  26267. box-sizing: border-box;
  26268. padding: 15px 40px;
  26269. text-align: center;
  26270. }
  26271. .e_add_list_child span {
  26272. overflow: hidden;
  26273. white-space: nowrap;
  26274. text-overflow: ellipsis;
  26275. cursor: pointer;
  26276. }
  26277. .e_add_list_child img {
  26278. position: absolute;
  26279. right: 10px;
  26280. width: 21px;
  26281. cursor: pointer;
  26282. top: 50%;
  26283. transform: translateY(-50%);
  26284. }
  26285. .e_add_list_child + .e_add_list_child {
  26286. border-top: 1px solid #eaeaea;
  26287. }
  26288. .e_add_list_child .active {
  26289. color: #409eff;
  26290. }
  26291. .e_add_list_btn {
  26292. position: absolute;
  26293. bottom: 0;
  26294. height: 50px;
  26295. background: rgb(120, 120, 254);
  26296. width: 100%;
  26297. color: #fff;
  26298. font-size: 16px;
  26299. text-align: center;
  26300. line-height: 50px;
  26301. cursor: pointer;
  26302. }
  26303. .e_add_list_detail {
  26304. position: absolute;
  26305. bottom: 0;
  26306. height: 130px;
  26307. background: rgb(120, 120, 254);
  26308. width: 100%;
  26309. color: #fff;
  26310. font-size: 16px;
  26311. display: flex;
  26312. align-items: center;
  26313. justify-content: center;
  26314. }
  26315. .e_add_list_detail textarea {
  26316. height: 90%;
  26317. width: 95%;
  26318. border: none;
  26319. resize: none;
  26320. outline: none;
  26321. padding: 5px;
  26322. box-sizing: border-box;
  26323. }
  26324. .e_add_list_pbox {
  26325. width: 100%;
  26326. max-width: 650px;
  26327. /* height: 600px; */
  26328. }
  26329. .e_add_list_pbox_title {
  26330. height: 50px;
  26331. background: #fff;
  26332. display: flex;
  26333. align-items: center;
  26334. width: 100%;
  26335. box-sizing: border-box;
  26336. padding: 0 20px;
  26337. }
  26338. .type_title {
  26339. font-size: 18px;
  26340. font-weight: 700;
  26341. }
  26342. .type_content {
  26343. font-size: 16px;
  26344. /* margin-left: 30px; */
  26345. }
  26346. .type_content span + span {
  26347. margin-left: 20px;
  26348. }
  26349. .type_content span {
  26350. cursor: pointer;
  26351. padding-bottom: 5px;
  26352. box-sizing: border-box;
  26353. }
  26354. .type_content .active {
  26355. color: #409eff;
  26356. border-bottom: 2px solid #409eff;
  26357. }
  26358. .e_add_list_pbox_content {
  26359. height: calc(100% - 50px);
  26360. display: flex;
  26361. align-items: center;
  26362. width: 100%;
  26363. background: #fff;
  26364. }
  26365. .evaCss {
  26366. display: flex;
  26367. flex-direction: row;
  26368. flex-wrap: nowrap;
  26369. align-items: flex-start;
  26370. padding: 0 0 20px;
  26371. }
  26372. .cru_line {
  26373. position: absolute;
  26374. bottom: 0px;
  26375. transition: all 0.5s;
  26376. left: 0px;
  26377. width: 125px;
  26378. margin-left: -25px;
  26379. }
  26380. .isNoMessage {
  26381. width: 20%;
  26382. margin: 25% auto 0;
  26383. }
  26384. .isNoMessage > img {
  26385. width: 100%;
  26386. height: 100%;
  26387. }
  26388. .fullStyle >>> .el-dialog__body {
  26389. height: 100% !important;
  26390. }
  26391. .fullStyle >>> .el-dialog,
  26392. .fullStyle {
  26393. width: 100% !important;
  26394. max-width: 100% !important;
  26395. height: 100% !important;
  26396. margin: 0 !important;
  26397. }
  26398. .full_diy >>> .el-dialog {
  26399. margin: 0 !important;
  26400. height: 100%;
  26401. padding: 4px;
  26402. }
  26403. .full_diy >>> .el-dialog__body {
  26404. height: calc(100% - 100px);
  26405. }
  26406. .full_diy2 >>> .el-dialog__body {
  26407. height: calc(100% - 50px);
  26408. padding: 0;
  26409. }
  26410. .switchCss {
  26411. /* width: 100%; */
  26412. display: flex;
  26413. flex-direction: row;
  26414. flex-wrap: nowrap;
  26415. align-items: center;
  26416. /* justify-content: center; */
  26417. }
  26418. .isClickNav {
  26419. /* color: #499eef; */
  26420. color: #000;
  26421. }
  26422. .commentImg {
  26423. width: 25px;
  26424. height: 25px;
  26425. cursor: pointer;
  26426. }
  26427. .commentImg > img {
  26428. width: 100%;
  26429. height: 100%;
  26430. }
  26431. .comment {
  26432. background: #f9f9f9;
  26433. border-radius: 0 0 4px 4px;
  26434. display: flex;
  26435. flex-direction: row;
  26436. flex-wrap: nowrap;
  26437. align-items: center;
  26438. justify-content: flex-end;
  26439. height: 35px;
  26440. }
  26441. .commentList {
  26442. display: flex;
  26443. flex-direction: row;
  26444. flex-wrap: nowrap;
  26445. align-items: center;
  26446. justify-content: center;
  26447. align-content: center;
  26448. /* margin-left: 15px; */
  26449. /* margin-left: 8px; */
  26450. }
  26451. .scoreImg {
  26452. width: 17px;
  26453. height: 17px;
  26454. }
  26455. .studentDetail {
  26456. display: flex;
  26457. flex-direction: row;
  26458. flex-wrap: nowrap;
  26459. /* align-items: center; */
  26460. align-items: flex-start;
  26461. }
  26462. .tx {
  26463. width: 50px;
  26464. }
  26465. .tx > img {
  26466. width: 100%;
  26467. height: 100%;
  26468. }
  26469. .nameAndTime {
  26470. display: flex;
  26471. flex-direction: column;
  26472. flex-wrap: nowrap;
  26473. align-items: flex-start;
  26474. margin-left: 10px;
  26475. }
  26476. .worksAnswer {
  26477. color: #4078dd;
  26478. margin: 10px 0;
  26479. font-size: 16px;
  26480. position: relative;
  26481. }
  26482. .worksAnswer > img {
  26483. width: 500px;
  26484. height: 300px;
  26485. object-fit: contain;
  26486. margin: 0 auto;
  26487. display: block;
  26488. }
  26489. .commentTop {
  26490. border-bottom: 1px solid #eaeaea;
  26491. padding-bottom: 10px;
  26492. }
  26493. .commentBox {
  26494. padding-top: 15px;
  26495. }
  26496. .pl {
  26497. font-size: 18px;
  26498. }
  26499. .plPerson {
  26500. width: 100%;
  26501. }
  26502. .plName {
  26503. display: flex;
  26504. flex-direction: row;
  26505. flex-wrap: nowrap;
  26506. align-items: baseline;
  26507. color: #78787a;
  26508. width: 100%;
  26509. }
  26510. .deleteComment {
  26511. cursor: pointer;
  26512. margin-left: auto;
  26513. color: #237ade;
  26514. }
  26515. .plContent {
  26516. margin-top: 5px;
  26517. }
  26518. .evalCss {
  26519. background: #fff;
  26520. font-size: 18px;
  26521. }
  26522. .nav {
  26523. color: #9d9d9d;
  26524. padding: 5px 0 15px 20px;
  26525. }
  26526. .middleBox {
  26527. padding: 5px 0 15px 20px;
  26528. }
  26529. .pfBox {
  26530. padding-bottom: 30px;
  26531. }
  26532. .nameAndrate {
  26533. display: flex;
  26534. flex-direction: row;
  26535. flex-wrap: nowrap;
  26536. align-items: center;
  26537. padding-bottom: 10px;
  26538. height: 30px;
  26539. line-height: 30px;
  26540. }
  26541. .nameAndrate > div {
  26542. margin-left: 10px;
  26543. color: #000;
  26544. height: 30px;
  26545. }
  26546. .nameAndrate >>> .el-rate__icon {
  26547. font-size: 28px !important;
  26548. }
  26549. .pfBox > div:nth-child(2) {
  26550. background: #f7f6f9;
  26551. width: 400px;
  26552. min-height: 45px;
  26553. border-radius: 10px;
  26554. font-size: 16px;
  26555. display: flex;
  26556. flex-wrap: wrap;
  26557. align-items: center;
  26558. padding: 10px 20px;
  26559. box-sizing: border-box;
  26560. color: #000;
  26561. }
  26562. .bz {
  26563. display: flex;
  26564. flex-direction: row;
  26565. flex-wrap: nowrap;
  26566. align-items: flex-start;
  26567. }
  26568. .bz > div {
  26569. padding: 0 10px;
  26570. }
  26571. .select_box2_title {
  26572. background: #fff;
  26573. border-radius: 5px;
  26574. padding: 15px 10px;
  26575. box-sizing: border-box;
  26576. margin-bottom: 10px;
  26577. display: flex;
  26578. flex-direction: row;
  26579. flex-wrap: nowrap;
  26580. align-items: center;
  26581. }
  26582. .select_box2_title > div:nth-child(2) {
  26583. margin-left: 10px;
  26584. color: #c4c4c4;
  26585. }
  26586. .select_box2_box {
  26587. display: flex;
  26588. height: 500px;
  26589. }
  26590. .select_box2_img {
  26591. width: calc(100% - 310px);
  26592. height: 100%;
  26593. overflow: auto;
  26594. background: #fff;
  26595. border-radius: 5px;
  26596. }
  26597. .select_box2_img img {
  26598. width: 100%;
  26599. }
  26600. .select_box2_answer {
  26601. background: #fff;
  26602. margin-left: 10px;
  26603. border-radius: 5px;
  26604. width: 300px;
  26605. overflow: auto;
  26606. height: 90%;
  26607. display: flex;
  26608. flex-direction: column;
  26609. align-items: flex-start;
  26610. padding-top: 10px;
  26611. box-sizing: border-box;
  26612. position: relative;
  26613. }
  26614. .select_answer_title {
  26615. padding: 0 0 15px 20px;
  26616. color: #c4c4c4;
  26617. }
  26618. .select_box2_answer_box {
  26619. margin: 0 0 10px 20px;
  26620. width: 85%;
  26621. display: flex;
  26622. flex-direction: row;
  26623. flex-wrap: nowrap;
  26624. align-items: center;
  26625. }
  26626. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  26627. color: #000;
  26628. }
  26629. .upAnswerCss {
  26630. position: absolute;
  26631. bottom: 15px;
  26632. right: 15px;
  26633. }
  26634. .upAnswerCss >>> .el-button {
  26635. width: 95px;
  26636. height: 35px;
  26637. line-height: 35px;
  26638. padding: 0;
  26639. }
  26640. .rightWidthCss {
  26641. width: 60%;
  26642. display: flex;
  26643. flex-direction: row;
  26644. align-items: flex-start;
  26645. }
  26646. .rightAnswer {
  26647. display: flex;
  26648. flex-direction: row;
  26649. flex-wrap: nowrap;
  26650. align-items: center;
  26651. color: red;
  26652. margin-bottom: 31px;
  26653. }
  26654. .rightAnswerCss {
  26655. display: flex;
  26656. flex-direction: column;
  26657. flex-wrap: nowrap;
  26658. padding-top: 60px;
  26659. }
  26660. .blueCss {
  26661. color: #767de1;
  26662. margin-left: 10px;
  26663. }
  26664. .redCss {
  26665. color: red;
  26666. }
  26667. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  26668. color: rgb(0 123 255) !important;
  26669. }
  26670. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  26671. color: rgb(0 123 255) !important;
  26672. }
  26673. .zuoyeYulan {
  26674. padding-top: 0;
  26675. font-size: 18px;
  26676. display: flex;
  26677. align-items: flex-end;
  26678. }
  26679. .buttonA {
  26680. margin-left: 10px;
  26681. padding: 0;
  26682. }
  26683. .displayBox {
  26684. margin-bottom: 10px;
  26685. display: block;
  26686. border-bottom: 3px solid #eee;
  26687. display: flex;
  26688. align-items: center;
  26689. }
  26690. .easy_comment {
  26691. width: calc(100% - 90px);
  26692. margin-left: 10px;
  26693. display: flex;
  26694. flex-wrap: wrap;
  26695. }
  26696. .easy_comment > div {
  26697. border: 1px solid #4a4a4a;
  26698. color: #666;
  26699. border-radius: 15px;
  26700. padding: 5px 10px;
  26701. font-size: 16px;
  26702. margin-bottom: 10px;
  26703. margin-right: 5px;
  26704. cursor: pointer;
  26705. }
  26706. .easy_comment div:hover {
  26707. border: 1px solid #f7ba2a;
  26708. color: #c69217;
  26709. }
  26710. .xuan_right_box {
  26711. padding: 10px 0;
  26712. background: #f0f4fa;
  26713. margin: 0 15px 0 25px;
  26714. border-bottom-left-radius: 5px;
  26715. border-bottom-right-radius: 5px;
  26716. width: 91.5%;
  26717. }
  26718. .tool_right_box {
  26719. display: flex;
  26720. align-items: center;
  26721. }
  26722. .tool_right_box + .tool_right_box {
  26723. margin-top: 10px;
  26724. }
  26725. .right_box_xuan {
  26726. border-radius: 5px;
  26727. padding: 5px;
  26728. margin-left: 10px;
  26729. min-width: 85px;
  26730. background: #fff;
  26731. color: #0061ff;
  26732. border: 1px solid #0061ff;
  26733. font-size: 14px;
  26734. }
  26735. .pButton:hover {
  26736. opacity: 1 !important;
  26737. }
  26738. .pButton {
  26739. position: fixed;
  26740. text-align: center;
  26741. cursor: pointer;
  26742. z-index: 999;
  26743. right: 20px;
  26744. top: 110px;
  26745. width: 50px;
  26746. height: 50px;
  26747. display: flex;
  26748. align-items: center;
  26749. justify-content: center;
  26750. border-radius: 5px;
  26751. }
  26752. .pzClass {
  26753. width: calc(100% - 340px);
  26754. }
  26755. .newDialogCss {
  26756. /* position: fixed;
  26757. right: 5%;
  26758. top: 50%;
  26759. width: 340px;
  26760. transform: translateY(-50%);
  26761. height: 60%;
  26762. box-shadow: 0px 0 8px 0px #555555;
  26763. border-radius: 15px;
  26764. z-index: 999; */
  26765. position: fixed;
  26766. right: 20px;
  26767. top: 101px;
  26768. width: 330px;
  26769. height: calc(100% - 80px);
  26770. z-index: 999;
  26771. background: #fff;
  26772. border-top-right-radius: 0px;
  26773. border-bottom-right-radius: 0px;
  26774. overflow: hidden;
  26775. }
  26776. .newDialogCss>.scoreList{
  26777. width:100%;
  26778. height:100%;
  26779. box-sizing:border-box;
  26780. padding:10px 15px;
  26781. overflow:auto;
  26782. padding-bottom:80px;
  26783. }
  26784. .pzTop {
  26785. color: #fff;
  26786. background: #000;
  26787. display: flex;
  26788. flex-direction: row;
  26789. flex-wrap: nowrap;
  26790. align-items: center;
  26791. justify-content: space-between;
  26792. height: 40px;
  26793. border-radius: 15px 15px 0 0;
  26794. user-select: none;
  26795. }
  26796. .pzTop2 .checkbox {
  26797. display: flex;
  26798. align-items: center;
  26799. padding: 5px 10px;
  26800. flex: 0 0 auto;
  26801. font-weight: bold;
  26802. border-bottom: 1px solid #eee;
  26803. justify-content: space-between;
  26804. }
  26805. .checkbox>.cb-tabList{
  26806. display:flex;
  26807. align-items:center;
  26808. }
  26809. .cb-tabList>div{
  26810. margin-right:20px;
  26811. font-weight:400;
  26812. cursor:pointer;
  26813. }
  26814. .cb-tabList>.cb-tabItem{
  26815. color:#1684FC;
  26816. position:relative;
  26817. }
  26818. .cb-tabItem::after{
  26819. content:"";
  26820. width:100%;
  26821. height:2px;
  26822. background:#1684FC;
  26823. position:absolute;
  26824. bottom:-5px;
  26825. left:0
  26826. }
  26827. .pzTop2 .check {
  26828. text-align: center;
  26829. cursor: pointer;
  26830. box-sizing: border-box;
  26831. display: flex;
  26832. }
  26833. .pzTop2 img {
  26834. width: 25px;
  26835. cursor: pointer;
  26836. }
  26837. .pzTop > div:nth-child(1) {
  26838. padding-left: 10px;
  26839. }
  26840. .pzTop > div:nth-child(2) {
  26841. width: 15px;
  26842. height: 15px;
  26843. padding-right: 10px;
  26844. cursor: pointer;
  26845. }
  26846. .pzTop > div:nth-child(2) > img {
  26847. width: 100%;
  26848. height: 100%;
  26849. }
  26850. .pzBox,
  26851. .noPzBox {
  26852. height: calc(100% - 60px);
  26853. /* background: #ededed; */
  26854. background: #fff;
  26855. /* border-radius: 0 0 15px 15px; */
  26856. }
  26857. .noPzBox {
  26858. display: flex;
  26859. flex-direction: column;
  26860. flex-wrap: nowrap;
  26861. justify-content: center;
  26862. align-items: center;
  26863. }
  26864. .pzList {
  26865. background: #f7f7f7;
  26866. width: 90%;
  26867. margin: 0 auto 15px;
  26868. border-radius: 5px;
  26869. }
  26870. .pzNavTop {
  26871. display: flex;
  26872. flex-direction: row;
  26873. flex-wrap: nowrap;
  26874. padding: 10px 10px 0 10px;
  26875. align-items: center;
  26876. }
  26877. .pzDelete {
  26878. cursor: pointer;
  26879. margin-left: auto;
  26880. font-size: 14px;
  26881. color: #afafaf;
  26882. }
  26883. .pzNavTop > div:nth-child(1) {
  26884. background: #3760af;
  26885. width: 35px;
  26886. height: 35px;
  26887. color: #fff;
  26888. text-align: center;
  26889. line-height: 35px;
  26890. border-radius: 50%;
  26891. font-size: 14px;
  26892. }
  26893. .pzNavTop > div:nth-child(2) {
  26894. font-size: 18px;
  26895. color: #959595;
  26896. margin-left: 5px;
  26897. }
  26898. .pzContent {
  26899. padding: 10px;
  26900. word-break: break-word;
  26901. }
  26902. .pzContent audio {
  26903. width: 100%;
  26904. }
  26905. .pzContent audio::-webkit-media-controls-panel {
  26906. background: #fff;
  26907. }
  26908. .pzContent >>> img {
  26909. max-width: 100%;
  26910. }
  26911. .pzListBox {
  26912. padding-top: 15px;
  26913. height: calc(100% - 110px);
  26914. overflow: auto;
  26915. }
  26916. .addPzButton {
  26917. position: relative;
  26918. margin-top: 3px;
  26919. width: 100%;
  26920. }
  26921. .addPzButton .img1 {
  26922. position: absolute;
  26923. top: 50%;
  26924. right: 25px;
  26925. transform: translateY(-50%);
  26926. height: 100%;
  26927. display: flex;
  26928. align-items: center;
  26929. }
  26930. .addPzButton .img1 div {
  26931. display: flex;
  26932. }
  26933. .addPzButton .img1 div img {
  26934. width: 28px;
  26935. margin-left: 10px;
  26936. cursor: pointer;
  26937. }
  26938. .addPzButton .img1 div span {
  26939. font-size: 14px;
  26940. margin: 4px 0 0 3px;
  26941. color: #afafaf;
  26942. }
  26943. .addPz {
  26944. background: #4b79ce;
  26945. width: 100px;
  26946. color: #fff;
  26947. font-size: 12px;
  26948. height: 30px;
  26949. margin: 0 auto;
  26950. text-align: center;
  26951. line-height: 30px;
  26952. border-radius: 10px;
  26953. cursor: pointer;
  26954. }
  26955. .addDialogCss {
  26956. position: fixed;
  26957. width: 600px;
  26958. height: 70%;
  26959. min-height: 450px;
  26960. box-shadow: 0px 0 8px 0px #555555;
  26961. border-radius: 15px;
  26962. z-index: 999;
  26963. left: 50%;
  26964. top: 50%;
  26965. margin: -18% 0 0 -300px;
  26966. }
  26967. .teacherPz {
  26968. display: flex;
  26969. flex-direction: row;
  26970. align-items: center;
  26971. flex-wrap: nowrap;
  26972. }
  26973. .teacherPzImg {
  26974. width: 30px;
  26975. height: 30px;
  26976. }
  26977. .teacherPzImg > img {
  26978. width: 100%;
  26979. height: 100%;
  26980. }
  26981. .addPzBox {
  26982. height: calc(100% - 40px);
  26983. background: #ededed;
  26984. border-bottom-left-radius: 15px;
  26985. border-bottom-right-radius: 15px;
  26986. }
  26987. .pzAudioClass {
  26988. margin: 15px 14px;
  26989. background: #fff;
  26990. height: 100%;
  26991. display: flex;
  26992. justify-content: center;
  26993. align-items: center;
  26994. }
  26995. .pzConText {
  26996. width: 95%;
  26997. height: 100%;
  26998. margin: 10px auto 0;
  26999. border: none;
  27000. background: #fff;
  27001. border-radius: 0px;
  27002. }
  27003. .pzConText >>> .text {
  27004. height: calc(100% - 82px);
  27005. }
  27006. .addTextCss {
  27007. background: #4b79ce;
  27008. width: 80px;
  27009. height: 30px;
  27010. text-align: center;
  27011. color: #fff;
  27012. line-height: 30px;
  27013. border-radius: 10px;
  27014. margin: 10px auto 0;
  27015. cursor: pointer;
  27016. }
  27017. .pzConText:focus-visible {
  27018. border: none !important;
  27019. }
  27020. .maxWidth {
  27021. width: 1000px;
  27022. }
  27023. .noPz {
  27024. width: 150px;
  27025. margin: 0 auto 20%;
  27026. }
  27027. .noPz > img {
  27028. width: 100%;
  27029. height: 100%;
  27030. }
  27031. .timeAndReply {
  27032. display: flex;
  27033. flex-direction: row;
  27034. flex-wrap: nowrap;
  27035. justify-content: space-between;
  27036. align-items: center;
  27037. font-size: 14px;
  27038. box-sizing: border-box;
  27039. padding: 0 10px 10px 0px;
  27040. }
  27041. .timeAndReply .time {
  27042. color: #bfbfbf;
  27043. padding: 0 0 0 10px;
  27044. box-sizing: border-box;
  27045. }
  27046. .timeAndReply > div:last-child {
  27047. cursor: pointer;
  27048. color: #777;
  27049. }
  27050. /* table 样式 */
  27051. .cont >>> table {
  27052. border-top: 1px solid #ccc;
  27053. border-left: 1px solid #ccc;
  27054. }
  27055. .cont >>> table td,
  27056. .cont >>> table th {
  27057. border-bottom: 1px solid #ccc;
  27058. border-right: 1px solid #ccc;
  27059. /* padding: 20px 5px; */
  27060. padding: 5px 10px;
  27061. max-width: 0px;
  27062. height: 30px;
  27063. vertical-align: baseline;
  27064. box-sizing: border-box;
  27065. }
  27066. .cont >>> table th {
  27067. border-bottom: 2px solid #ccc;
  27068. text-align: center;
  27069. }
  27070. /* blockquote 样式 */
  27071. .cont >>> blockquote {
  27072. display: block;
  27073. border-left: 8px solid #d0e5f2;
  27074. padding: 5px 10px;
  27075. margin: 10px 0;
  27076. line-height: 1.4;
  27077. font-size: 100%;
  27078. background-color: #f1f1f1;
  27079. }
  27080. /* code 样式 */
  27081. .cont >>> code {
  27082. display: inline-block;
  27083. /* *display: inline; */
  27084. zoom: 1;
  27085. background-color: #f1f1f1;
  27086. border-radius: 3px;
  27087. padding: 3px 5px;
  27088. margin: 0 3px;
  27089. }
  27090. .cont >>> pre code {
  27091. display: block;
  27092. }
  27093. /* ul ol 样式 */
  27094. .cont >>> ul,
  27095. ol {
  27096. margin: 10px 0 10px 20px;
  27097. }
  27098. .addPzCheck {
  27099. display: flex;
  27100. flex-direction: row;
  27101. flex-wrap: nowrap;
  27102. padding: 10px 15px 0;
  27103. }
  27104. .addPzCheck span {
  27105. cursor: pointer;
  27106. padding-bottom: 5px;
  27107. font-weight: bold;
  27108. }
  27109. .addPzCheck span + span {
  27110. margin-left: 10px;
  27111. }
  27112. .addPzCheck .isChooseActive {
  27113. color: #3e88f4;
  27114. border-bottom: 2px solid #2f80f3;
  27115. }
  27116. /* code 样式 */
  27117. .cont {
  27118. /* -webkit-user-modify: read-write; */
  27119. overflow-wrap: break-word;
  27120. -webkit-line-break: after-white-space;
  27121. word-break: break-word;
  27122. white-space: pre-line;
  27123. }
  27124. .scoreBox,
  27125. .scoreDetailBox {
  27126. display: flex;
  27127. align-items: center;
  27128. justify-content: flex-start;
  27129. margin-top: 20px;
  27130. font-size: 18px;
  27131. width: 100%;
  27132. }
  27133. .scoreBox .t,
  27134. .scoreDetailBox .t {
  27135. margin-right: 10px;
  27136. width: 100px;
  27137. text-align: right;
  27138. }
  27139. .scoreDetailBox {
  27140. align-items: flex-start;
  27141. }
  27142. .scoreDetailBox >>> .el-textarea {
  27143. width: calc(100% - 200px);
  27144. }
  27145. .scoreBox >>> .el-input {
  27146. width: 130px;
  27147. font-size: 38px;
  27148. }
  27149. .scoreBox >>> .el-input__inner {
  27150. height: 60px;
  27151. }
  27152. .answerScore {
  27153. position: absolute;
  27154. top: 10px;
  27155. right: 10px;
  27156. background: #0000008f;
  27157. border-radius: 5px;
  27158. padding: 3px 5px;
  27159. font-size: 14px;
  27160. color: #fff;
  27161. cursor: pointer;
  27162. }
  27163. .open_box .switch_box {
  27164. width: 100%;
  27165. margin: 0 auto;
  27166. display: flex;
  27167. justify-content: space-between;
  27168. }
  27169. .open_box .switch_box + .switch_box {
  27170. margin-top: 10px;
  27171. }
  27172. .deleteImg,.deleteImg1 {
  27173. width: 25px !important;
  27174. height: 25px !important;
  27175. cursor: pointer;
  27176. position: absolute;
  27177. top: 10px;
  27178. right: 10px;
  27179. }
  27180. .deleteImg2 {
  27181. width: 23px !important;
  27182. height: 23px !important;
  27183. top: 5px;
  27184. right: 5px;
  27185. }
  27186. .deleteImg1{
  27187. width: 23px !important;
  27188. height: 23px !important;
  27189. top: 5px !important;
  27190. right: 30px !important;
  27191. }
  27192. .rightW {
  27193. right: 40px;
  27194. }
  27195. .drawPBox {
  27196. display: flex;
  27197. flex-direction: column;
  27198. position: relative;
  27199. }
  27200. .drawPBox span {
  27201. font-size: 18px;
  27202. color: #606266;
  27203. padding-bottom: 10px;
  27204. margin: 10px 0;
  27205. border-bottom: 1px solid #eaeaea;
  27206. }
  27207. .drawPBox img {
  27208. width: 500px;
  27209. height: 300px;
  27210. object-fit: contain;
  27211. cursor: pointer;
  27212. margin: 0 auto;
  27213. }
  27214. .sentenBox {
  27215. background: #fff;
  27216. height: 450px;
  27217. overflow: auto;
  27218. background-image: url("../../assets/icon/conSentences/stuBg.png");
  27219. background-position: 102%;
  27220. background-repeat: no-repeat;
  27221. background-size: 60%;
  27222. }
  27223. .addSen {
  27224. background: #409efe;
  27225. width: 90px;
  27226. color: #fff;
  27227. height: 35px;
  27228. text-align: center;
  27229. line-height: 35px;
  27230. border-radius: 5px;
  27231. float: right;
  27232. margin: 10px 20px 0 0;
  27233. cursor: pointer;
  27234. }
  27235. .sentenTop {
  27236. display: flex;
  27237. flex-direction: row;
  27238. flex-wrap: nowrap;
  27239. align-items: center;
  27240. padding: 55px 0 0 20px;
  27241. box-sizing: border-box;
  27242. }
  27243. .sentenTop > div:nth-child(2) {
  27244. width: 300px;
  27245. margin: 0 15px;
  27246. }
  27247. .sentenTop > div:nth-child(3) {
  27248. background: #409efe;
  27249. color: #fff;
  27250. width: 65px;
  27251. height: 35px;
  27252. text-align: center;
  27253. line-height: 35px;
  27254. border-radius: 5px;
  27255. cursor: pointer;
  27256. }
  27257. .cardList,
  27258. .cardList1 {
  27259. padding: 10px 0 10px 0;
  27260. display: flex;
  27261. flex-direction: row;
  27262. flex-wrap: wrap;
  27263. align-items: center;
  27264. box-sizing: border-box;
  27265. border-bottom: 1px solid #f4f4f4;
  27266. width: 98%;
  27267. margin: 0 auto;
  27268. min-width: 60%;
  27269. max-width: 85%;
  27270. }
  27271. .cardList1 {
  27272. padding: 10px 0 10px 10px !important;
  27273. margin: 0 !important;
  27274. }
  27275. .cardBox {
  27276. display: flex;
  27277. flex-direction: row;
  27278. flex-wrap: wrap;
  27279. align-items: center;
  27280. align-content: center;
  27281. }
  27282. .cardBox > div {
  27283. margin-bottom: 10px;
  27284. }
  27285. .isCard,
  27286. .isChooseCard,
  27287. .noCard,
  27288. .isCard1 {
  27289. min-width: 130px;
  27290. width: auto;
  27291. height: 60px;
  27292. text-align: center;
  27293. line-height: 60px;
  27294. font-size: 20px;
  27295. cursor: pointer;
  27296. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  27297. background-size: cover;
  27298. transition: all 2s;
  27299. margin-right: 20px;
  27300. background-size: 100% 100%;
  27301. padding: 0 20px;
  27302. box-sizing: border-box;
  27303. }
  27304. .isCard > div,
  27305. .noCard > div,
  27306. .isCard1 > div {
  27307. white-space: nowrap;
  27308. overflow: hidden;
  27309. text-overflow: ellipsis;
  27310. width: 100%;
  27311. margin: 0 auto;
  27312. }
  27313. .noCard {
  27314. background-image: none;
  27315. }
  27316. .isCard1 {
  27317. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  27318. }
  27319. .isChooseCard {
  27320. background-image: none;
  27321. border: 1px dashed #b9b9b9;
  27322. border-radius: 10px;
  27323. }
  27324. .card {
  27325. width: 130px;
  27326. height: 60px;
  27327. }
  27328. .card > img {
  27329. width: 100%;
  27330. height: 100%;
  27331. }
  27332. .rightCardBox {
  27333. margin: 10px 0 0 10px;
  27334. }
  27335. .rightCardBox > div:nth-child(1) {
  27336. margin-bottom: 10px;
  27337. }
  27338. .cardCss {
  27339. display: flex;
  27340. flex-direction: column;
  27341. flex-wrap: nowrap;
  27342. align-items: center;
  27343. border-bottom: 3px solid #b4c3d3;
  27344. padding: 0 0 5px 0;
  27345. margin-right: 10px;
  27346. }
  27347. .cardCss > div:nth-child(2) {
  27348. background: #5b7b9d;
  27349. color: #fff;
  27350. width: 20px;
  27351. height: 20px;
  27352. border-radius: 50%;
  27353. text-align: center;
  27354. line-height: 20px;
  27355. }
  27356. .isWrong {
  27357. display: flex;
  27358. flex-direction: row;
  27359. flex-wrap: nowrap;
  27360. align-content: center;
  27361. align-items: center;
  27362. }
  27363. .answerRight {
  27364. width: 25%;
  27365. }
  27366. .isTj {
  27367. display: flex;
  27368. flex-direction: row;
  27369. flex-wrap: nowrap;
  27370. align-items: center;
  27371. }
  27372. .isTj > div:nth-child(2) {
  27373. color: #727070;
  27374. margin-left: 10px;
  27375. }
  27376. .isTjImg {
  27377. width: 30px;
  27378. height: 30px;
  27379. }
  27380. .isTjImg > img {
  27381. width: 100%;
  27382. height: 100%;
  27383. }
  27384. .cardAnswerBox {
  27385. font-size: 18px;
  27386. width: 97%;
  27387. border: 5px;
  27388. padding: 0;
  27389. border-radius: 5px;
  27390. margin: 10px auto;
  27391. word-break: break-word;
  27392. }
  27393. .w_name {
  27394. margin-bottom: 10px;
  27395. }
  27396. .w_name span {
  27397. font-size: 16px;
  27398. }
  27399. .w_teachert {
  27400. width: 50px !important;
  27401. position: absolute;
  27402. height: auto !important;
  27403. z-index: 10;
  27404. right: 25px;
  27405. top: -25px;
  27406. }
  27407. /* .group_workBox {
  27408. } */
  27409. .group_workBox + .group_workBox {
  27410. margin-top: 20px;
  27411. }
  27412. .group_box {
  27413. padding-bottom: 20px;
  27414. border-bottom: 2px solid #f0f0f0;
  27415. margin-top: 10px;
  27416. }
  27417. .group_title {
  27418. display: flex;
  27419. align-items: center;
  27420. justify-content: space-between;
  27421. width: 95%;
  27422. }
  27423. .group_name {
  27424. background-image: url(../../assets/icon/groupN.png);
  27425. width: 220px;
  27426. background-size: 100% 100%;
  27427. height: 67px;
  27428. padding: 0 20px 0 43px;
  27429. box-sizing: border-box;
  27430. line-height: 63px;
  27431. color: #fff;
  27432. overflow: hidden;
  27433. white-space: nowrap;
  27434. text-overflow: ellipsis;
  27435. }
  27436. .group_work {
  27437. width: 100%;
  27438. padding: 0 10px;
  27439. box-sizing: border-box;
  27440. display: flex;
  27441. flex-wrap: wrap;
  27442. }
  27443. .g_d_box {
  27444. display: flex;
  27445. flex-flow: wrap;
  27446. justify-content: space-around;
  27447. }
  27448. .g_d_box .isChair {
  27449. background-image: url(../../assets/avatar.png) !important;
  27450. }
  27451. .g_d_group {
  27452. width: 500px;
  27453. margin-bottom: 80px;
  27454. }
  27455. .g_d_group_chair {
  27456. display: flex;
  27457. align-items: center;
  27458. justify-content: center;
  27459. }
  27460. .g_d_group_chair > div + div {
  27461. margin-left: 30px;
  27462. }
  27463. .g_d_group_chair > div,
  27464. .g_d_group_chair2 > div {
  27465. display: flex;
  27466. flex-direction: column;
  27467. align-items: center;
  27468. }
  27469. .g_d_group_chair > div > span:nth-child(1),
  27470. .g_d_group_chair2 > div > span:nth-child(1) {
  27471. background-image: url(../../assets/icon/chair.png);
  27472. width: 50px;
  27473. height: 50px;
  27474. display: block;
  27475. background-size: 100% 100%;
  27476. }
  27477. .g_d_group_tableBox {
  27478. display: flex;
  27479. align-items: center;
  27480. justify-content: center;
  27481. }
  27482. .g_d_group_chair2 {
  27483. display: flex;
  27484. flex-direction: column;
  27485. align-items: center;
  27486. justify-content: center;
  27487. }
  27488. .g_d_group_chair2 > div + div {
  27489. margin-top: 10px;
  27490. }
  27491. .g_d_group_table {
  27492. background-image: url(../../assets/icon/groupBg.png);
  27493. width: 354px;
  27494. height: 196px;
  27495. background-size: 100% 100%;
  27496. display: flex;
  27497. align-items: center;
  27498. justify-content: center;
  27499. flex-direction: column;
  27500. color: #fff;
  27501. }
  27502. .g_d_group_table > div:nth-child(1) {
  27503. font-size: 24px;
  27504. margin-bottom: 5px;
  27505. }
  27506. .g_d_group_table > div:nth-child(2) div {
  27507. cursor: pointer;
  27508. background: #2e77bf;
  27509. padding: 4px 10px;
  27510. border-radius: 5px;
  27511. }
  27512. /* .groupBox {
  27513. } */
  27514. .groupContent + .groupContent {
  27515. margin-top: 30px;
  27516. }
  27517. .groupTitle {
  27518. font-size: 24px;
  27519. color: rgb(80, 80, 80);
  27520. margin-bottom: 20px;
  27521. }
  27522. .groupName {
  27523. display: flex;
  27524. align-items: center;
  27525. }
  27526. .groupn {
  27527. font-size: 15px;
  27528. margin-right: 10px;
  27529. }
  27530. .groupName + .groupName {
  27531. margin-top: 15px;
  27532. }
  27533. .groupBtn {
  27534. margin-left: 10px;
  27535. }
  27536. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  27537. text-align: left;
  27538. }
  27539. .g_d_btnBox {
  27540. display: flex;
  27541. justify-content: flex-end;
  27542. align-items: center;
  27543. margin-bottom: 20px;
  27544. }
  27545. .updateChair {
  27546. position: relative;
  27547. }
  27548. .updateChairBtn {
  27549. position: absolute;
  27550. width: 50px;
  27551. height: 50px;
  27552. overflow: hidden;
  27553. /* display: flex; */
  27554. align-items: center;
  27555. justify-content: center;
  27556. background: #00000087;
  27557. color: #fff;
  27558. border-radius: 50px;
  27559. display: none;
  27560. cursor: pointer;
  27561. }
  27562. .updateChair:hover .updateChairBtn {
  27563. display: flex;
  27564. }
  27565. .group_staic_box {
  27566. display: flex;
  27567. padding: 30px 40px 10px;
  27568. flex-wrap: wrap;
  27569. }
  27570. .group_staic {
  27571. /* width: 50%; */
  27572. margin-bottom: 20px;
  27573. display: flex;
  27574. align-items: center;
  27575. }
  27576. .group_staic span:nth-child(1) {
  27577. width: 150px;
  27578. text-align: right;
  27579. margin-right: 15px;
  27580. }
  27581. .group_staic span:nth-child(2) {
  27582. background: rgb(0 123 255);
  27583. color: #fff;
  27584. border-radius: 5px;
  27585. padding: 5px;
  27586. }
  27587. .codeFileBox {
  27588. height: 300px;
  27589. background: #fff;
  27590. display: flex;
  27591. align-items: center;
  27592. justify-content: center;
  27593. }
  27594. .codeFileBox img {
  27595. width: 200px;
  27596. margin: 0;
  27597. height: auto;
  27598. }
  27599. .codeFileBox div {
  27600. background: rgb(80, 142, 226);
  27601. color: #fff;
  27602. padding: 10px 20px;
  27603. border-radius: 25px;
  27604. cursor: pointer;
  27605. margin-left: 15px;
  27606. }
  27607. .radioBox {
  27608. display: flex;
  27609. flex-direction: column;
  27610. flex-wrap: nowrap;
  27611. align-items: flex-start;
  27612. }
  27613. .radioBox > div {
  27614. margin: 10px 0 0 10px;
  27615. }
  27616. /* .radioBox >>> .el-radio__input,
  27617. .radioBox >>> .el-checkbox__inner {
  27618. margin-left: 10px;
  27619. } */
  27620. .radioBox >>> .el-radio__label,
  27621. .radioBox >>> .el-checkbox__label {
  27622. display: flex;
  27623. align-items: center;
  27624. width: 100%;
  27625. }
  27626. .radioBox >>> .el-radio__label > span {
  27627. width: 100%;
  27628. display: -webkit-box;
  27629. overflow: hidden;
  27630. white-space: normal !important;
  27631. text-overflow: ellipsis;
  27632. word-wrap: break-word;
  27633. }
  27634. .inImg {
  27635. width: 100px;
  27636. cursor: pointer;
  27637. }
  27638. .inImg > img {
  27639. width: 100%;
  27640. height: 100%;
  27641. object-fit: cover;
  27642. }
  27643. .timuImgBox {
  27644. margin: 10px 0;
  27645. display: flex;
  27646. flex-direction: column;
  27647. flex-wrap: wrap;
  27648. align-items: flex-start;
  27649. }
  27650. .timuImg {
  27651. width: 150px;
  27652. margin: 5px 0;
  27653. cursor: pointer;
  27654. }
  27655. .timuImg > img {
  27656. width: 100%;
  27657. height: 100%;
  27658. object-fit: cover;
  27659. }
  27660. .worksTop {
  27661. display: flex;
  27662. flex-direction: row;
  27663. align-items: flex-end;
  27664. }
  27665. .worksTitle {
  27666. display: flex;
  27667. flex-direction: row;
  27668. flex-wrap: nowrap;
  27669. align-items: center;
  27670. }
  27671. .worksTitle::before,
  27672. .worksTop::before {
  27673. content: "";
  27674. display: block;
  27675. width: 3px;
  27676. height: 20px;
  27677. background: #0061ff;
  27678. border-radius: 3px;
  27679. margin: 0 5px 0 0;
  27680. }
  27681. .corOpen {
  27682. margin: 0 0 0 10px;
  27683. font-size: 14px;
  27684. cursor: pointer;
  27685. color: #505050;
  27686. }
  27687. .corOpen:hover {
  27688. color: #499eef;
  27689. }
  27690. .navCorOpenBox {
  27691. display: flex;
  27692. flex-direction: row;
  27693. align-items: center;
  27694. justify-content: space-between;
  27695. height: 55px;
  27696. background: #ffffff;
  27697. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  27698. border-radius: 8px 8px 0px 0px;
  27699. z-index: 9;
  27700. position: relative;
  27701. }
  27702. .navCorOpen {
  27703. padding-right: 15px;
  27704. cursor: pointer;
  27705. width: 45px;
  27706. display: flex;
  27707. }
  27708. .navCorOpen > img {
  27709. width: 100%;
  27710. height: 100%;
  27711. }
  27712. .mlImg {
  27713. width: 40px !important;
  27714. min-width: 40px;
  27715. cursor: pointer;
  27716. transform: rotate(180deg);
  27717. }
  27718. .mlImg > img {
  27719. width: 100%;
  27720. height: 100%;
  27721. }
  27722. .navLeftCss {
  27723. width: 100% !important;
  27724. left: 0 !important;
  27725. }
  27726. .isContentCss {
  27727. width: 100% !important;
  27728. }
  27729. .isAllWidth {
  27730. width: 100% !important;
  27731. }
  27732. .group_switch {
  27733. margin-right: 10px;
  27734. height: 30px;
  27735. display: flex;
  27736. align-items: center;
  27737. }
  27738. .group_switch > span {
  27739. margin-right: 5px;
  27740. }
  27741. .fileC_box {
  27742. padding-top: 15px;
  27743. }
  27744. .fileC_box > .fileC_title {
  27745. padding: 10px 5px 14px 10px;
  27746. border-top: 1px solid #cad1dc;
  27747. font-size: 14px;
  27748. font-weight: 400;
  27749. color: #cad1dc;
  27750. width: calc(100% - 20px);
  27751. margin: 0 auto;
  27752. box-sizing: border-box;
  27753. }
  27754. .pl_select_box {
  27755. height: 40px;
  27756. line-height: 40px;
  27757. width: 100%;
  27758. cursor: pointer;
  27759. padding: 0 20px;
  27760. box-sizing: border-box;
  27761. border-radius: 5px;
  27762. border: 1px solid #d6d6d6;
  27763. white-space: nowrap;
  27764. overflow: hidden;
  27765. text-overflow: ellipsis;
  27766. background: #fff;
  27767. text-align: left;
  27768. }
  27769. .newButton {
  27770. width: 102px;
  27771. height: 36px;
  27772. background: #e7ebf1;
  27773. border-radius: 4px;
  27774. color: #0e1e33;
  27775. font-weight: 400;
  27776. font-size: 14px;
  27777. border: none;
  27778. float: right;
  27779. margin-left: 10px;
  27780. }
  27781. .el-table >>> .even_row {
  27782. background-color: #f0f4fa;
  27783. }
  27784. .stageBoxCss,
  27785. .stageBoxIsCss {
  27786. display: flex;
  27787. flex-direction: row;
  27788. flex-wrap: nowrap;
  27789. align-items: center;
  27790. height: 50px;
  27791. border-bottom: 1px solid #e2f5fc;
  27792. cursor: pointer;
  27793. width: 100%;
  27794. }
  27795. .stageBoxIsCss {
  27796. background: #0061ff;
  27797. color: #fff;
  27798. border-radius: 8px;
  27799. }
  27800. .closeTri,
  27801. .closeTri1 {
  27802. min-width: 15px;
  27803. width: 15px;
  27804. height: 15px;
  27805. }
  27806. .closeTri1 {
  27807. padding-left: 10px;
  27808. cursor: pointer;
  27809. }
  27810. .closeTri > img,
  27811. .closeTri1 > img {
  27812. width: 100%;
  27813. height: 100%;
  27814. /* transition: all .5s; */
  27815. }
  27816. .noToolBlue {
  27817. min-width: 10px;
  27818. width: 10px;
  27819. height: 10px;
  27820. background: #0061ff;
  27821. border-radius: 50%;
  27822. margin-left: 13px;
  27823. }
  27824. .stageChild,
  27825. .toolChild {
  27826. height: 0;
  27827. overflow: hidden;
  27828. transition: all 0.5s;
  27829. }
  27830. /* .toolChild { */
  27831. /* margin: 0 0 0 17px;
  27832. padding: 0 0 0 20px;
  27833. border-left: 1px solid #d7d7d7; */
  27834. /* } */
  27835. .toolChild > div + div{
  27836. margin-top:5px;
  27837. }
  27838. .gjCss {
  27839. display: flex;
  27840. flex-direction: row;
  27841. flex-wrap: nowrap;
  27842. align-items: center;
  27843. padding: 10px 0 10px 40px;
  27844. box-sizing: border-box;
  27845. font-size: 14px;
  27846. cursor: pointer;
  27847. border-radius:5px;
  27848. }
  27849. .toolChild > div {
  27850. position: relative;
  27851. width: 100%;
  27852. }
  27853. /* .toolChild > div::before { */
  27854. /* content: "";
  27855. width: 15px;
  27856. height: 1px;
  27857. background: #cad1dc;
  27858. position: absolute;
  27859. top: 24px;
  27860. left: -20px;
  27861. display: block; */
  27862. /* } */
  27863. .isGjCss {
  27864. /* color: #0061ff; */
  27865. color:#fff;
  27866. background: rgb(55, 129, 252);
  27867. /* background-color: #e0eafb !important;
  27868. color: #0061ff !important; */
  27869. }
  27870. .navItem {
  27871. background: #ffffff;
  27872. border-radius: 4px;
  27873. width: 100%;
  27874. margin: 10px auto;
  27875. position: relative;
  27876. height: 40px;
  27877. display: flex;
  27878. flex-direction: row;
  27879. flex-wrap: nowrap;
  27880. align-items: center;
  27881. }
  27882. .navItemList {
  27883. display: flex;
  27884. flex-direction: row;
  27885. flex-wrap: nowrap;
  27886. align-items: center;
  27887. padding: 0 13px;
  27888. cursor: pointer;
  27889. width: calc(100% - 60px);
  27890. height: 100%;
  27891. }
  27892. .navItemList > div:first-child {
  27893. min-width: 60px;
  27894. }
  27895. .navItemList > div:last-child {
  27896. width: calc(100% - 80px);
  27897. white-space: nowrap;
  27898. overflow: hidden;
  27899. text-overflow: ellipsis;
  27900. word-break: break-word;
  27901. }
  27902. /* .isItemList > div {
  27903. color: #fff !important;
  27904. } */
  27905. .tool_work_box {
  27906. width: 100%;
  27907. padding: 0 37px 0;
  27908. box-sizing: border-box;
  27909. }
  27910. .tool_box {
  27911. width: 100%;
  27912. padding: 0 0 0 20px;
  27913. }
  27914. .tool_type_box {
  27915. display: flex;
  27916. flex-direction: row;
  27917. align-items: baseline;
  27918. flex-wrap: nowrap;
  27919. justify-content: flex-start;
  27920. position: relative;
  27921. }
  27922. .toolSort {
  27923. display: flex;
  27924. flex-direction: row;
  27925. flex-wrap: wrap;
  27926. justify-content: flex-start;
  27927. align-items: flex-start;
  27928. padding: 0 0 15px 0;
  27929. }
  27930. .toolSort > div {
  27931. margin: 0 10px 0 0;
  27932. width: 135px;
  27933. box-sizing: border-box;
  27934. border: 2px solid transparent;
  27935. }
  27936. .tools {
  27937. width: 100%;
  27938. display: flex;
  27939. flex-direction: column;
  27940. flex-wrap: nowrap;
  27941. align-items: flex-start;
  27942. }
  27943. .whiteBIcon {
  27944. width: fit-content;
  27945. cursor: pointer;
  27946. display: flex;
  27947. flex-direction: column;
  27948. flex-wrap: nowrap;
  27949. align-items: center;
  27950. font-size: 14px;
  27951. }
  27952. .tool:hover {
  27953. border: 2px solid #a5c7ff;
  27954. border-radius: 5px;
  27955. }
  27956. .whiteBIcon > img {
  27957. width: 65px;
  27958. height: 100%;
  27959. }
  27960. .whiteBIcon > img {
  27961. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  27962. border-radius: 15px;
  27963. }
  27964. .check {
  27965. /* width: 20px;
  27966. height: 20px; */
  27967. cursor: pointer;
  27968. margin: 10px 0;
  27969. position: absolute;
  27970. right: 2px;
  27971. top: -5px;
  27972. }
  27973. .noChoose,
  27974. .isChoose {
  27975. width: 15px;
  27976. height: 15px;
  27977. border-radius: 50%;
  27978. border: 1px solid #adadad;
  27979. }
  27980. .isChoose {
  27981. border: 4px solid #0363ff !important;
  27982. width: 10px;
  27983. height: 10px;
  27984. }
  27985. .isToolChoose {
  27986. border: 2px solid #5394ff !important;
  27987. border-radius: 5px;
  27988. box-shadow: 0 0 6px 0px #5394ff;
  27989. }
  27990. .checkDiv {
  27991. display: flex;
  27992. align-items: center;
  27993. }
  27994. .checkDiv span {
  27995. margin-left: 5px;
  27996. color: #858585;
  27997. }
  27998. .check img {
  27999. width: 20px;
  28000. height: 20px;
  28001. }
  28002. .lockTaskIcon {
  28003. width: 20px;
  28004. height: 20px;
  28005. position: absolute;
  28006. right: 10px;
  28007. top: 10px;
  28008. }
  28009. .lockTaskIcon > img {
  28010. width: 100%;
  28011. height: 100%;
  28012. }
  28013. .pick_box {
  28014. display: flex;
  28015. align-items: flex-start;
  28016. flex-wrap: wrap;
  28017. }
  28018. .selectBox {
  28019. width: 110px;
  28020. margin-left: 10px;
  28021. margin: 0 10px 0 auto;
  28022. }
  28023. .selectBox >>> .el-input__inner {
  28024. height: 30px;
  28025. line-height: 30px;
  28026. }
  28027. .selectBox >>> .el-input__icon {
  28028. line-height: 30px;
  28029. }
  28030. .sentenceTitle {
  28031. display: flex;
  28032. flex-direction: row;
  28033. flex-wrap: nowrap;
  28034. align-items: center;
  28035. }
  28036. .sentenceTitle::before {
  28037. content: attr(index);
  28038. background: #3681fc;
  28039. border-radius: 50%;
  28040. color: #fff;
  28041. width: 25px;
  28042. height: 25px;
  28043. min-width: 25px;
  28044. min-height: 25px;
  28045. text-align: center;
  28046. line-height: 25px;
  28047. margin-right: 5px;
  28048. }
  28049. .hfBox {
  28050. padding: 10px;
  28051. box-sizing: border-box;
  28052. }
  28053. .whoReplyWho {
  28054. display: flex;
  28055. flex-direction: row;
  28056. flex-wrap: nowrap;
  28057. align-items: baseline;
  28058. justify-content: flex-start;
  28059. }
  28060. .hfBottom {
  28061. display: flex;
  28062. flex-direction: row;
  28063. flex-wrap: nowrap;
  28064. align-items: center;
  28065. justify-content: space-between;
  28066. font-size: 14px;
  28067. }
  28068. .deleteHfItem {
  28069. cursor: pointer;
  28070. width: 20px;
  28071. height: 20px;
  28072. }
  28073. .deleteHfItem > img {
  28074. width: 100%;
  28075. height: 100%;
  28076. }
  28077. .whoReplyWho > .hfImg {
  28078. width: 12px;
  28079. height: 12px;
  28080. margin: 0 5px;
  28081. }
  28082. .whoReplyWho > .hfImg > img {
  28083. width: 100%;
  28084. height: 100%;
  28085. }
  28086. .hfContent {
  28087. padding-top: 10px;
  28088. box-sizing: border-box;
  28089. display: -webkit-box;
  28090. overflow: hidden;
  28091. white-space: normal !important;
  28092. text-overflow: ellipsis;
  28093. word-wrap: break-word;
  28094. -webkit-box-orient: vertical;
  28095. }
  28096. .hfTime {
  28097. text-align: left;
  28098. box-sizing: border-box;
  28099. padding: 10px 0 10px 0px;
  28100. color: #bfbfbf;
  28101. font-size: 14px;
  28102. }
  28103. .btnAllNT {
  28104. position: fixed;
  28105. bottom: 100px;
  28106. right: 40px;
  28107. z-index: 999;
  28108. display: flex;
  28109. flex-direction: row;
  28110. }
  28111. .btnAllNT > img {
  28112. cursor: pointer;
  28113. width: 80px;
  28114. }
  28115. .toolMask {
  28116. position: fixed;
  28117. width: 100%;
  28118. height: 100%;
  28119. background: #3f3c3c;
  28120. opacity: 0.5;
  28121. top: 0;
  28122. left: 0;
  28123. z-index: 999;
  28124. }
  28125. .addToolCss {
  28126. position: fixed;
  28127. z-index: 999;
  28128. background: #fff;
  28129. right: 5%;
  28130. bottom: 18%;
  28131. min-width: 1035px;
  28132. min-height: 300px;
  28133. border-radius: 10px;
  28134. box-shadow: 0 0 8px 1px #b2b2b2;
  28135. }
  28136. .toolTop {
  28137. display: flex;
  28138. flex-direction: row;
  28139. flex-wrap: nowrap;
  28140. justify-content: space-between;
  28141. align-items: center;
  28142. padding: 20px;
  28143. }
  28144. .toolTop > div:nth-child(2) {
  28145. width: 15px;
  28146. height: 15px;
  28147. padding-right: 10px;
  28148. cursor: pointer;
  28149. }
  28150. .toolTop > div:nth-child(2) > img {
  28151. width: 100%;
  28152. height: 100%;
  28153. }
  28154. .fullStyle>>>.el-dialog__body {
  28155. height: calc(100% - 125px) !important;
  28156. box-sizing: border-box;
  28157. padding: 30px 0 !important;
  28158. background: #fff !important;
  28159. }
  28160. .fullStyle>>>.el-dialog {
  28161. width: 100% !important;
  28162. max-width: 100% !important;
  28163. height: 100% !important;
  28164. margin: 0 !important;
  28165. }
  28166. .fullStyle {
  28167. width: 100% !important;
  28168. max-width: 100% !important;
  28169. height: 100% !important;
  28170. margin: 0 auto !important;
  28171. }
  28172. .fullStyle>>>.el-dialog__footer{
  28173. background: #fff !important;
  28174. }
  28175. .engUpBox {
  28176. width: 100%;
  28177. height: 100%;
  28178. }
  28179. .engTitle,
  28180. .engText {
  28181. display: flex;
  28182. flex-direction: row;
  28183. flex-wrap: nowrap;
  28184. align-items: flex-start;
  28185. padding: 0 20px 20px 20px;
  28186. box-sizing: border-box;
  28187. }
  28188. .engTitle > .div:first-child,
  28189. .engText > div:first-child {
  28190. min-width: 75px;
  28191. }
  28192. .correctBox{
  28193. width: 100%;
  28194. display: flex;
  28195. flex-direction: row;
  28196. flex-wrap: nowrap;
  28197. align-items: flex-start;
  28198. }
  28199. .oldBox{
  28200. width: 50%;
  28201. height: 100%;
  28202. display: flex;
  28203. flex-direction: column;
  28204. flex-wrap: nowrap;
  28205. align-items: center;
  28206. border-top: 1px solid #d9d9d9;
  28207. border-left: 1px solid #d9d9d9;
  28208. border-right: 1px solid #d9d9d9;
  28209. }
  28210. .oldBox>div:first-child{
  28211. width: 100%;
  28212. text-align: center;
  28213. background: #d9d9d9;
  28214. height: 35px;
  28215. line-height: 35px;
  28216. font-weight: bold;
  28217. }
  28218. .oldText{
  28219. width: 100%;
  28220. height: calc(100% - 35px);
  28221. overflow: auto;
  28222. margin: 10px 0;
  28223. display: flex;
  28224. flex-direction: column;
  28225. flex-wrap: nowrap;
  28226. align-content: center;
  28227. align-items: center;
  28228. }
  28229. .detailBox{
  28230. width: 50%;
  28231. padding: 10px;
  28232. background: #f6f6f6;
  28233. border-radius: 5px;
  28234. }
  28235. .oldDetail,.oldDetail1{
  28236. padding-bottom: 30px;
  28237. }
  28238. .oldImg{
  28239. width:30px;
  28240. height: 30px;
  28241. }
  28242. .oldImg>img{
  28243. width: 100%;
  28244. height: 100%;
  28245. }
  28246. .allName{
  28247. min-width: 200px;
  28248. white-space: nowrap;
  28249. overflow: hidden;
  28250. text-overflow: ellipsis;
  28251. word-break: break-word;
  28252. cursor: pointer;
  28253. text-align: center;
  28254. border: 1px solid #bcc2cc;
  28255. box-sizing: border-box;
  28256. }
  28257. .engUpTop{
  28258. max-height: 300px;
  28259. overflow: auto;
  28260. }
  28261. .isUpdateToolDetailClass{
  28262. padding: 0 !important;
  28263. }
  28264. .isUpdateToolDetailClass textarea{
  28265. padding:12px;
  28266. font-size: 16px;
  28267. min-height:100%;
  28268. width: 100%;
  28269. box-sizing:border-box;
  28270. outline: none;
  28271. border:none;
  28272. line-height: 30px;
  28273. resize: none;
  28274. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  28275. color: #838383;
  28276. }
  28277. .show_taskD {
  28278. min-width: fit-content;
  28279. margin-left: 10px;
  28280. display: flex;
  28281. align-items: center;
  28282. font-size: 14px;
  28283. cursor: pointer;
  28284. color: #717c8d;
  28285. }
  28286. .show_taskD > img {
  28287. width: 15px;
  28288. margin-right: 5px;
  28289. transition: 0.2s all;
  28290. transform: rotate(-90deg);
  28291. }
  28292. .show_taskD.show > img {
  28293. transform: rotate(0deg);
  28294. }
  28295. .correctCss{
  28296. position: absolute;
  28297. bottom: -70px;
  28298. background: #409eff;
  28299. color: #fff;
  28300. }
  28301. .ScoreBtn {
  28302. background: rgba(87, 159, 248, 1);
  28303. display: flex;
  28304. justify-content: center;
  28305. align-items: center;
  28306. color: #fff;
  28307. font-size: 14px;
  28308. padding: 8px 12px;
  28309. border-radius: 5px;
  28310. cursor: pointer;
  28311. }
  28312. .max-height-popover .el-popover {
  28313. min-height: 200px;
  28314. max-height: 400px; /* 设置最大高度 */
  28315. overflow: auto; /* 超出部分显示滚动条 */
  28316. }
  28317. .stuLookScore {
  28318. position: absolute;
  28319. top: 12px;
  28320. right: 40px;
  28321. background: #0000008f;
  28322. border-radius: 5px;
  28323. padding: 3px 5px;
  28324. font-size: 14px;
  28325. color: #fff;
  28326. cursor: pointer;
  28327. }
  28328. .dialog_diyCopy >>> .el-dialog__header {
  28329. display: none !important;
  28330. }
  28331. .dialog_diyCopy >>> .el-dialog__body {
  28332. padding: 0 !important;
  28333. height: 100% !important;
  28334. }
  28335. .confirmOpenDigCss > div{
  28336. font-size: 14px;
  28337. color: rgba(0, 0, 0, 0.6);
  28338. }
  28339. .confirmOpenDigCss >>> .el-dialog{
  28340. border-radius: 6px;
  28341. }
  28342. .confirmOpenDigCss >>> .el-dialog__body{
  28343. padding: 25px !important;
  28344. }
  28345. .confirmOpenDigCss > span{
  28346. font-size: 16px;
  28347. font-weight: 600;
  28348. color: rgba(0, 0, 0, 0.8);
  28349. }
  28350. div::-webkit-scrollbar {
  28351. width: 10px;
  28352. height: 6px;
  28353. }
  28354. </style>