studyStudent.vue 1000 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851
  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>
  168. <div
  169. v-if="nav.tool[0].tool != undefined"
  170. class="toolChild"
  171. :class="{ toolActive: nav.isOpen }"
  172. >
  173. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  174. <div
  175. class="gjCss"
  176. :class="{
  177. isGjCss: t.isTool,
  178. }"
  179. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  180. >
  181. <div>工具{{ toolIndex2 + 1 }}:</div>
  182. <div v-if="t.tool == 58">模拟驾驶</div>
  183. <div v-if="t.tool == 59">路径搜索</div>
  184. <div v-if="t.tool == 60">深度学习</div>
  185. <div v-if="t.tool == 10">倒计时</div>
  186. <div v-if="t.tool == 65">挑人</div>
  187. <div v-if="t.tool == 7">思维网格</div>
  188. <div v-if="t.tool == 1">电子白板</div>
  189. <div v-if="t.tool == 52">文档</div>
  190. <div v-if="t.tool == 3">思维导图</div>
  191. <div v-if="t.tool == 48">表格</div>
  192. <div v-if="t.tool == 49">学生分组</div>
  193. <div v-if="t.tool == 4">问卷调查</div>
  194. <div v-if="t.tool == 45">选择题</div>
  195. <div v-if="t.tool == 15">问答</div>
  196. <div v-if="t.tool == 16">作业提交</div>
  197. <div v-if="t.tool == 50">批量上传</div>
  198. <div v-if="t.tool == 41">选择匹配</div>
  199. <div v-if="t.tool == 47">排序</div>
  200. <div v-if="t.tool == 40">个人评价</div>
  201. <div v-if="t.tool == 18">训练平台</div>
  202. <div v-if="t.tool == 21">AIoT Blockly</div>
  203. <div v-if="t.tool == 23">AI Python</div>
  204. <div v-if="t.tool == 24">AI Blockly</div>
  205. <div v-if="t.tool == 32">源码编辑</div>
  206. <div v-if="t.tool == 57">CocoPi</div>
  207. <div v-if="t.tool == 63">海龟编程</div>
  208. <div v-if="t.tool == 28">翻译</div>
  209. <div v-if="t.tool == 31">数字画板</div>
  210. <div v-if="t.tool == 39">GeoGebra</div>
  211. <div v-if="t.tool == 66">公式编辑</div>
  212. <div v-if="t.tool == 67">分子结构</div>
  213. <div v-if="t.tool == 68">时间轴</div>
  214. <div v-if="t.tool == 69">英语写作</div>
  215. <div v-if="t.tool == 70">英语口语</div>
  216. <div v-if="t.tool == 25">目标管理</div>
  217. <div v-if="t.tool == 26">课程设计</div>
  218. <div v-if="t.tool == 62">交互视频</div>
  219. <div v-if="t.tool == 71">AI智能体</div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. </div>
  228. <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' }">
  229. <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>
  230. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 47px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  231. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '100%' : 'calc(100% - 745px)'}">
  232. <div>任务{{ taskCount + 1 }}</div>
  233. <el-tooltip
  234. effect="light"
  235. :content="
  236. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  237. "
  238. placement="top"
  239. >
  240. <div>
  241. {{
  242. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  243. .task
  244. }}
  245. </div>
  246. </el-tooltip>
  247. </div>
  248. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  249. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)">
  250. <div class="btnLeft">
  251. <el-tooltip effect="light" content="刷新" placement="top">
  252. <div class="reBtnIcon" @click="refreshCourse">
  253. <span>刷新</span>
  254. </div>
  255. </el-tooltip>
  256. <el-tooltip effect="light" content="评论" placement="top">
  257. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  258. <span>评论</span>
  259. </div>
  260. </el-tooltip>
  261. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  262. <el-tooltip effect="light" content="录制" placement="top">
  263. <div class="vedioIcon" @click="startRecording">
  264. <span>录制</span>
  265. </div>
  266. </el-tooltip>
  267. </div>
  268. <div v-else-if="tType == 1 || tType == 4">
  269. <el-tooltip effect="light" content="下载" placement="top">
  270. <div class="vedioIcon1" @click="stopRecording">
  271. <span>下载</span>
  272. </div>
  273. </el-tooltip>
  274. </div>
  275. </div>
  276. <div class="btnRight">
  277. <div
  278. class="last"
  279. @click="nextOrpreSteps(0)"
  280. v-if="!(IsFollow && tType == 2)"
  281. @mouseover="isHovered = true"
  282. @mouseout="isHovered = false"
  283. >
  284. <div class="lastImg">
  285. <img
  286. :src="
  287. isHovered
  288. ? require('../../assets/icon/newIcons/whiteLast.png')
  289. : require('../../assets/icon/newIcons/last.png')
  290. "
  291. alt=""
  292. />
  293. </div>
  294. <div class="lastText">上一步</div>
  295. </div>
  296. <div
  297. class="last"
  298. @click="nextOrpreSteps(1)"
  299. v-if="!(IsFollow && tType == 2)"
  300. @mouseover="isHovered1 = true"
  301. @mouseout="isHovered1 = false"
  302. >
  303. <div class="lastText">下一步</div>
  304. <div class="lastImg">
  305. <img
  306. :src="
  307. isHovered1
  308. ? require('../../assets/icon/newIcons/whiteNext.png')
  309. : require('../../assets/icon/newIcons/next.png')
  310. "
  311. alt=""
  312. />
  313. </div>
  314. </div>
  315. <div
  316. class="last"
  317. @click="juriVisible = true"
  318. v-if="tType == 1"
  319. @mouseover="isHovered2 = true"
  320. @mouseout="isHovered2 = false"
  321. >
  322. <div class="lastImg">
  323. <img
  324. :src="
  325. isHovered2
  326. ? require('../../assets/icon/newIcons/whiteLock.png')
  327. : require('../../assets/icon/newIcons/lock.png')
  328. "
  329. alt=""
  330. />
  331. </div>
  332. <div class="lastText">权限</div>
  333. </div>
  334. <div
  335. class="returnBtn1 returnIcon"
  336. @click.stop="
  337. goTo(
  338. '/courseDetail?userid=' +
  339. userid +
  340. '&oid=' +
  341. oid +
  342. '&org=' +
  343. org +
  344. '&cid=' +
  345. classId +
  346. '&courseId=' +
  347. id +
  348. '&tType=' +
  349. tType +
  350. '&screenType=' +
  351. screenType
  352. )
  353. "
  354. >
  355. <div class="lastImg">
  356. <img src="../../assets/icon/newIcon/return.png" alt="" />
  357. </div>
  358. <div class="lastText" style="color: #000">返回</div>
  359. </div>
  360. </div>
  361. <!-- <div
  362. class="returnBtn lockIcon"
  363. @click="juriVisible = true"
  364. v-if="tType == 1"
  365. >
  366. 权限
  367. </div>
  368. <div
  369. class="returnBtn vedioIcon"
  370. @click="startRecording"
  371. v-if="!videoStart && (tType == 1 || tType == 4)"
  372. >
  373. 录制
  374. </div>
  375. <div
  376. class="returnBtn"
  377. @click="stopRecording"
  378. v-else-if="tType == 1 || tType == 4"
  379. style="background: #ee5255"
  380. >
  381. 下载
  382. </div>
  383. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  384. 评论
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="nextOrpreSteps(0)"
  389. v-if="!(IsFollow && tType == 2)"
  390. >
  391. 上一步
  392. </div>
  393. <div
  394. class="returnBtn"
  395. @click="nextOrpreSteps(1)"
  396. v-if="!(IsFollow && tType == 2)"
  397. >
  398. 下一步
  399. </div>
  400. <div class="returnBtn" @click="refreshCourse">刷新</div>
  401. <div
  402. class="returnBtn returnIcon"
  403. @click.stop="
  404. goTo(
  405. '/courseDetail?userid=' +
  406. userid +
  407. '&oid=' +
  408. oid +
  409. '&org=' +
  410. org +
  411. '&cid=' +
  412. classId +
  413. '&courseId=' +
  414. id +
  415. '&tType=' +
  416. tType +
  417. '&screenType=' +
  418. screenType
  419. )
  420. "
  421. >
  422. 返回
  423. </div> -->
  424. </div>
  425. </div>
  426. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  427. .taskDetail3 && -->
  428. <div
  429. class="isNoMessage"
  430. v-if="
  431. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  432. .chapterData.length == 0 &&
  433. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  434. .toolChoose[0].tool.length == 0 &&
  435. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  436. .taskDetail == '' &&
  437. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  438. .eList &&
  439. !(
  440. courseDetail.userid == userid ||
  441. (courseDetail.course_teacher &&
  442. courseDetail.course_teacher.indexOf(userid) != -1)
  443. )
  444. "
  445. >
  446. <img src="../../assets/icon/isNoMessage.png" alt />
  447. </div>
  448. <div class="study_top" :class="{ pzClass: pzDialog }">
  449. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  450. .taskDetail3 || -->
  451. <div
  452. class="vedioBox"
  453. v-if="
  454. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  455. .taskDetail != '' ||
  456. vChapterData[0].length > 0 ||
  457. fileC[0].length > 0
  458. "
  459. style="border-radius: 0 0 20px 20px"
  460. >
  461. <!-- <div
  462. class="taskBox"
  463. v-if="
  464. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  465. .taskDetail3
  466. "
  467. >
  468. <div
  469. style="
  470. display: flex;
  471. flex-wrap: nowrap;
  472. flex-direction: column;
  473. position: relative;
  474. "
  475. >
  476. <div
  477. style="
  478. padding: 15px 0;
  479. line-height: 29px;
  480. font-size: 18px;
  481. color: #0e1e33;
  482. "
  483. class="cont"
  484. v-if="
  485. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  486. .taskDetail3 != ''
  487. "
  488. v-html="
  489. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  490. .taskDetail3
  491. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  492. taskCount
  493. ].taskDetail3)
  494. : '暂无描述'
  495. "
  496. ></div>
  497. </div>
  498. </div> -->
  499. <div
  500. class="taskBox"
  501. v-if="
  502. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  503. .taskDetail != ''
  504. "
  505. >
  506. <div
  507. style="
  508. display: flex;
  509. flex-wrap: nowrap;
  510. flex-direction: column;
  511. position: relative;
  512. "
  513. >
  514. <div
  515. style="
  516. padding: 15px 0;
  517. line-height: 29px;
  518. font-size: 18px;
  519. color: #0e1e33;
  520. "
  521. class="cont"
  522. v-if="
  523. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  524. .taskDetail != ''
  525. "
  526. v-html="
  527. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  528. .taskDetail
  529. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  530. taskCount
  531. ].taskDetail
  532. : '暂无描述'
  533. "
  534. ></div>
  535. </div>
  536. </div>
  537. <div
  538. class="student_head"
  539. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  540. >
  541. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  542. <div
  543. :class="
  544. contentDialog == false
  545. ? 'box_course isContentCss'
  546. : 'box_course'
  547. "
  548. v-if="
  549. vChapterData.length > 0 &&
  550. vChapterData[0] &&
  551. showType !== ''
  552. "
  553. >
  554. <div class="wheel" style="height: auto" v-if="showType === 0">
  555. <div
  556. class="workd_media"
  557. style="height: 650px; width: calc(100% - 50px)"
  558. >
  559. <video-player
  560. class="video-player vjs-custom-skin"
  561. :class="contentDialog == false ? 'isAllWidth' : ''"
  562. :playsinline="true"
  563. :options="playerO[0]"
  564. @play="onPlayerPlay($event)"
  565. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  566. ></video-player>
  567. </div>
  568. </div>
  569. <div
  570. class="wheel"
  571. v-if="showType == 1"
  572. style="
  573. box-shadow: 0 0 6px 1px #f2f2f2;
  574. width: 95%;
  575. margin: 0 auto;
  576. background: #f1f1f1;
  577. "
  578. >
  579. <div class="title">查看文档</div>
  580. <el-form class="textBox">
  581. <el-form-item class="textTitle">
  582. <div style="font-size: 22px">
  583. {{ text.name }}
  584. </div>
  585. </el-form-item>
  586. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  587. <div v-html="text.url" class="textContent cont"></div>
  588. </el-form>
  589. </div>
  590. <div
  591. class="wheel"
  592. v-if="
  593. pptImgUrl1.indexOf(
  594. 'https://view.officeapps.live.com/op/view.aspx?src='
  595. ) != -1 && showType == 2
  596. "
  597. style="width: 95%; margin: 0 auto"
  598. >
  599. <iframe
  600. style="width: 100%; height: 100%; border: none"
  601. :src="pptImgUrl1"
  602. ></iframe>
  603. </div>
  604. <div
  605. class="wheel"
  606. v-else-if="showType == 2"
  607. style="width: 95%; margin: 0 auto"
  608. >
  609. <iframe
  610. style="width: 100%; height: 100%; border: none"
  611. security="restricted"
  612. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  613. :src="pptImgUrl1"
  614. ></iframe>
  615. </div>
  616. <div
  617. class="wheel"
  618. v-if="showType == 3"
  619. style="width: 95%; margin: 0 auto"
  620. >
  621. <pdf
  622. :pdfUrl="pptImgUrl1"
  623. style="width: 100%; height: 100%; overflow: auto"
  624. ></pdf>
  625. </div>
  626. <div
  627. class="wheel"
  628. v-if="showType == 4"
  629. style="width: 95%; margin: 0 auto"
  630. >
  631. <el-image
  632. :src="pptImgUrl1"
  633. fit="contain"
  634. style="width: 100%; height: 100%; cursor: pointer"
  635. @click="previewImg(pptImgUrl1)"
  636. ></el-image>
  637. </div>
  638. </div>
  639. <div
  640. class="pButton"
  641. style="position: absolute; right: 20px; top: 0; z-index: 998"
  642. v-if="!contentDialog"
  643. @click="setContent(true)"
  644. >
  645. <!-- 批 -->
  646. <img
  647. src="../../assets/icon/newIcons/isLeft.png"
  648. style="width: 45px"
  649. alt=""
  650. />
  651. </div>
  652. <div
  653. v-if="contentDialog == true"
  654. :style="{
  655. width:
  656. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  657. showType === ''
  658. ? 'calc(100%)'
  659. : '300px',
  660. margin:
  661. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  662. showType === ''
  663. ? '0 15px'
  664. : '0 15px 0 0',
  665. }"
  666. >
  667. <div
  668. class="vedioList"
  669. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  670. style="height: 650px"
  671. >
  672. <div class="navCorOpenBox">
  673. <div class="navTitile">内容列表:</div>
  674. <div class="navCorOpen" @click="setContent(false)">
  675. <img
  676. src="../../assets/icon/newIcons/isRight.png"
  677. alt=""
  678. />
  679. </div>
  680. </div>
  681. <div class="navBox">
  682. <div
  683. v-show="
  684. vChapterData[0].length > 0 || fileC[0].length > 0
  685. "
  686. style="padding: 10px 0 25px 0"
  687. >
  688. <div
  689. class="vedioTimeBox"
  690. v-for="(vitem, vindex) in vChapterData[0]"
  691. :key="vindex + '1'"
  692. >
  693. <div class="navListItem" v-if="vitem.type == 2">
  694. <div
  695. @click="lookVedio(vitem.url, vindex)"
  696. class="navText"
  697. :class="isClickNav == vindex ? 'isClickNav' : ''"
  698. >
  699. <span v-if="vitem.text">{{ vitem.text }}-</span
  700. >{{ vitem.name }}
  701. </div>
  702. <div class="downIcon" @click="downloadFile2(vitem)">
  703. <img
  704. src="../../assets/icon/newIcon/down.png"
  705. alt
  706. />
  707. </div>
  708. </div>
  709. <div class="navListItem" v-if="vitem.type == 6">
  710. <div
  711. @click="lookText(0, vindex)"
  712. class="navText"
  713. :class="isClickNav == vindex ? 'isClickNav' : ''"
  714. >
  715. {{ vitem.name }}.doc
  716. </div>
  717. <div
  718. class="downIcon"
  719. @click="checkFileFull1(vitem.type, vitem)"
  720. >
  721. <img
  722. src="../../assets/icon/newIcon/allScreen.png"
  723. alt
  724. />
  725. </div>
  726. </div>
  727. <div
  728. class="navListItem"
  729. v-if="vitem.type == 8 || vitem.type == 14"
  730. >
  731. <div
  732. @click="doUrl(vitem.url, vindex)"
  733. class="navText"
  734. :class="isClickNav == vindex ? 'isClickNav' : ''"
  735. >
  736. {{ vitem.title ? vitem.title : vitem.url }}
  737. </div>
  738. <div
  739. class="downIcon"
  740. @click="checkFileFull1(vitem.type, vitem)"
  741. >
  742. <img
  743. src="../../assets/icon/newIcon/allScreen.png"
  744. alt
  745. />
  746. </div>
  747. </div>
  748. <div class="navListItem" v-if="vitem.type == 3">
  749. <div
  750. @click="downFile(vitem, vindex)"
  751. class="navText"
  752. :class="isClickNav == vindex ? 'isClickNav' : ''"
  753. >
  754. <span v-if="vitem.text">{{ vitem.text }}-</span
  755. >{{ vitem.name }}
  756. </div>
  757. <div
  758. class="downIcon"
  759. @click="checkFileFull1(vitem.type, vitem)"
  760. >
  761. <img
  762. src="../../assets/icon/newIcon/allScreen.png"
  763. alt
  764. />
  765. </div>
  766. <div class="downIcon" @click="downloadFile2(vitem)">
  767. <img
  768. src="../../assets/icon/newIcon/down.png"
  769. alt
  770. />
  771. </div>
  772. </div>
  773. <div class="navListItem" v-if="vitem.type == 12">
  774. <div class="navText" @click="downloadFile2(vitem)">
  775. <span v-if="vitem.text">{{ vitem.text }}-</span
  776. >{{ vitem.name }}
  777. </div>
  778. <div
  779. class="downIcon"
  780. @click="checkFileFull1(vitem.type, vitem)"
  781. >
  782. <img
  783. src="../../assets/icon/newIcon/allScreen.png"
  784. alt
  785. />
  786. </div>
  787. <div class="downIcon" @click="downloadFile2(vitem)">
  788. <img
  789. src="../../assets/icon/newIcon/down.png"
  790. alt
  791. />
  792. </div>
  793. </div>
  794. <div class="navListItem" v-if="vitem.type == 13">
  795. <div
  796. class="navText"
  797. @click="checkPhoto(vitem, vindex)"
  798. :class="isClickNav == vindex ? 'isClickNav' : ''"
  799. >
  800. {{ vitem.name }}
  801. </div>
  802. <div class="downIcon" @click="downloadFile2(vitem)">
  803. <img
  804. src="../../assets/icon/newIcon/down.png"
  805. alt
  806. />
  807. </div>
  808. </div>
  809. </div>
  810. <div class="fileC_box" v-if="fileC[0].length > 0">
  811. <div class="fileC_title">以下文件不支持预览</div>
  812. <div
  813. class="vedioTimeBox"
  814. v-for="(vitem, vindex) in fileC[0]"
  815. :key="vindex + '1'"
  816. >
  817. <div class="navListItem" v-if="vitem.type == 12">
  818. <div class="navText" style="color: #acb4bf">
  819. <span v-if="vitem.text">{{ vitem.text }}-</span
  820. >{{ vitem.name }}
  821. </div>
  822. <div
  823. class="downIcon"
  824. @click="downloadFile2(vitem)"
  825. >
  826. <img
  827. src="../../assets/icon/newIcon/down.png"
  828. alt
  829. />
  830. </div>
  831. </div>
  832. </div>
  833. </div>
  834. </div>
  835. </div>
  836. </div>
  837. </div>
  838. </div>
  839. <div style="width: calc(100% - 315px)">
  840. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  841. <!-- <el-button
  842. type="primary"
  843. class="newButton"
  844. @click="checkFileFull(showType, pptImgUrl1)"
  845. >全屏查看</el-button
  846. >
  847. <el-button
  848. type="primary"
  849. class="newButton"
  850. @click="downloadFile(pptImgUrl1)"
  851. v-if="showType != 2"
  852. >文件下载</el-button
  853. > -->
  854. <el-button
  855. v-if="
  856. showType == 2 &&
  857. pptImgUrl1.indexOf(
  858. 'https://view.officeapps.live.com/op/view.aspx?src='
  859. ) == -1
  860. "
  861. type="primary"
  862. class="newButton"
  863. @click="openLine(pptImgUrl1)"
  864. >打开链接
  865. </el-button>
  866. </div>
  867. <!-- <div
  868. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  869. v-if="showType == 1"
  870. >
  871. <el-button
  872. type="primary"
  873. class="newButton"
  874. @click="checkFileFull(showType, text)"
  875. >全屏查看</el-button
  876. >
  877. </div> -->
  878. </div>
  879. </div>
  880. </div>
  881. <div class="student_body" v-resize="resize">
  882. <div
  883. class="vedioBox"
  884. :style="{
  885. borderRadius:
  886. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  887. .taskDetail == '' &&
  888. vChapterData[taskCount].length == 0 &&
  889. fileC[taskCount].length == 0
  890. ? '0 0 20px 20px'
  891. : '20px',
  892. }"
  893. v-if="
  894. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  895. .toolChoose[0].tool &&
  896. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  897. .toolChoose[0].tool.length > 0
  898. "
  899. >
  900. <div
  901. class="toolHeng2"
  902. style="position: relative"
  903. v-if="
  904. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  905. .toolChoose[0].tool &&
  906. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  907. .toolChoose[0].tool.length &&
  908. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  909. .toolChoose[0].tool.length > 0
  910. "
  911. >
  912. <div class="workNav">工作区</div>
  913. <div
  914. class="filebox"
  915. style="flex-wrap: nowrap"
  916. v-for="(tool, toolIndex) in chapInfoList[courseType]
  917. .chapterInfo[0].taskJson[taskCount].toolChoose"
  918. :key="toolIndex"
  919. >
  920. <div class="bzBox">
  921. <div class="yCss"></div>
  922. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  923. 工具{{ toolIndex + 1 }}
  924. </div>
  925. <div
  926. v-if="timeWorkList[toolIndex].length > 0"
  927. style="margin: 0 0 0 10px"
  928. >
  929. {{
  930. timeWorkList[toolIndex][0].time
  931. ? "时间:" + timeWorkList[toolIndex][0].time
  932. : ""
  933. }}
  934. </div>
  935. </div>
  936. <div class="toolBox">
  937. <div>
  938. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  939. :key="indexTool"-->
  940. <!-- <div class="iframeBox">
  941. <div
  942. class="addPoint isBorder"
  943. v-for="(tooC, toolCIndex) in tool.tool"
  944. :key="toolCIndex"
  945. >
  946. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  947. <div
  948. class="iframeName"
  949. >
  950. 电子白板
  951. </div>
  952. <iframe
  953. src="https://iwb.cocorobo.cn/"
  954. ref="whiteBoard"
  955. ></iframe>
  956. </div>
  957. </div>
  958. </div>-->
  959. <div class="noiframeBox">
  960. <div
  961. class="addPoint"
  962. v-for="(tooC, toolCIndex) in tool.tool"
  963. :key="toolCIndex"
  964. >
  965. <div v-if="tooC == 1">
  966. <img
  967. src="../../assets/icon/secondToolList/whiteBoard.png"
  968. alt
  969. @click="addTools(tooC, toolIndex, taskCount)"
  970. />
  971. <div style="margin: 5px 0">电子白板</div>
  972. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  973. style="position: absolute;right: 33px;top: -30px;">
  974. 投影
  975. </div>
  976. </div>
  977. <div v-if="tooC == 3">
  978. <img
  979. src="../../assets/icon/secondToolList/mindMapping.png"
  980. alt
  981. @click="addTools(tooC, toolIndex, taskCount)"
  982. />
  983. <div style="margin: 5px 0">思维导图</div>
  984. </div>
  985. <div v-if="tooC == 6">
  986. <img
  987. src="../../assets/icon/secondToolList/doc.png"
  988. alt
  989. @click="addTools(tooC, toolIndex, taskCount)"
  990. />
  991. <div style="margin: 5px 0">协同文档</div>
  992. </div>
  993. <div v-if="tooC == 7">
  994. <img
  995. src="../../assets/icon/secondToolList/mindNetwork.png"
  996. alt
  997. @click="addTools(tooC, toolIndex, taskCount)"
  998. />
  999. <div style="margin: 5px 0">思维网格</div>
  1000. <!-- && worksStudent[toolIndex].length>0 -->
  1001. <div class="upload_toolBtn" v-if="tType==='1' " @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1002. style="position: absolute;right: 33px;top: -30px;">
  1003. 投影
  1004. </div>
  1005. </div>
  1006. <div v-if="tooC == 8">
  1007. <img
  1008. src="../../assets/icon/secondToolList/library.png"
  1009. alt
  1010. @click="addTools(tooC, toolIndex, taskCount)"
  1011. />
  1012. <div style="margin: 5px 0">素材库</div>
  1013. </div>
  1014. <div v-if="tooC == 17">
  1015. <img
  1016. src="../../assets/icon/secondToolList/library.png"
  1017. alt
  1018. @click="addTools(tooC, toolIndex, taskCount)"
  1019. />
  1020. <div style="margin: 5px 0">学习资料</div>
  1021. </div>
  1022. <div v-if="tooC == 2">
  1023. <img
  1024. @click="addTools(tooC, toolIndex, taskCount)"
  1025. src="../../assets/icon/secondToolList/note.png"
  1026. alt
  1027. />
  1028. <div style="margin: 5px 0">便签</div>
  1029. </div>
  1030. <div v-if="tooC == 4">
  1031. <img
  1032. @click="addTools(tooC, toolIndex, taskCount)"
  1033. src="../../assets/icon/thirdToolList/ask.png"
  1034. alt
  1035. />
  1036. <div style="margin: 5px 0">问卷调查</div>
  1037. <div
  1038. class="upload_toolBtn"
  1039. v-if="tType === '1'"
  1040. @click="
  1041. openStatisticalAnalysis(
  1042. tooC,
  1043. toolIndex,
  1044. taskCount,
  1045. 45
  1046. )
  1047. "
  1048. style="position: absolute;right: 33px;top: -30px;"
  1049. >
  1050. 统计分析
  1051. </div>
  1052. </div>
  1053. <div v-if="tooC == 45">
  1054. <img
  1055. @click="addTools(tooC, toolIndex, taskCount)"
  1056. src="../../assets/icon/thirdToolList/choose.png"
  1057. alt
  1058. />
  1059. <div style="margin: 5px 0">选择题</div>
  1060. <!-- &&worksStudent[toolIndex].length > 0 -->
  1061. <div
  1062. class="upload_toolBtn"
  1063. v-if="
  1064. tType === '1'
  1065. "
  1066. @click="
  1067. openChoseWorksDetailDialog(
  1068. tooC,
  1069. toolIndex,
  1070. taskCount,45
  1071. )
  1072. "
  1073. style="position: absolute;right: 33px;top: -30px;"
  1074. >
  1075. 投影
  1076. </div>
  1077. </div>
  1078. <!-- <div v-if="tooC == 5">
  1079. <img
  1080. @click="addTools(tooC, toolIndex, taskCount)"
  1081. src="../../assets/icon/thirdToolList/score.png"
  1082. alt
  1083. />
  1084. <div style="margin: 5px 0">量规评分</div>
  1085. </div> -->
  1086. <div v-if="tooC == 10">
  1087. <img
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. src="../../assets/icon/thirdToolList/time.png"
  1090. alt
  1091. />
  1092. <div style="margin: 5px 0">倒计时</div>
  1093. </div>
  1094. <div v-if="tooC == 15">
  1095. <img
  1096. @click="addTools(tooC, toolIndex, taskCount)"
  1097. src="../../assets/icon/thirdToolList/answer.png"
  1098. alt
  1099. />
  1100. <div style="margin: 5px 0">问答</div>
  1101. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1102. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1103. 投影
  1104. </div>
  1105. </div>
  1106. <div v-if="tooC == 26">
  1107. <img
  1108. @click="addTools(tooC, toolIndex, taskCount)"
  1109. src="../../assets/icon/thirdToolList/courseDesign.png"
  1110. alt
  1111. />
  1112. <div style="margin: 5px 0">课程设计</div>
  1113. </div>
  1114. <div v-if="tooC == 18">
  1115. <img
  1116. @click="addTools(tooC, toolIndex, taskCount)"
  1117. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1118. alt
  1119. />
  1120. <div style="margin: 5px 0">训练服务器</div>
  1121. </div>
  1122. <div v-if="tooC == 16">
  1123. <img
  1124. @click="addTools(tooC, toolIndex, taskCount)"
  1125. src="../../assets/icon/thirdToolList/work.png"
  1126. alt
  1127. />
  1128. <div style="margin: 5px 0">作业提交</div>
  1129. </div>
  1130. <div v-if="tooC == 50">
  1131. <img
  1132. @click="addTools(tooC, toolIndex, taskCount)"
  1133. src="../../assets/icon/thirdToolList/plwork.png"
  1134. alt
  1135. />
  1136. <div style="margin: 5px 0">批量上传</div>
  1137. </div>
  1138. <div v-if="tooC == 21">
  1139. <img
  1140. @click="addTools(tooC, toolIndex, taskCount)"
  1141. src="../../assets/icon/fourthToolList/program.png"
  1142. alt
  1143. />
  1144. <div style="margin: 5px 0">AIoT Blockly</div>
  1145. </div>
  1146. <!-- <div v-if="tooC == 22">
  1147. <img
  1148. @click="addTools(tooC, toolIndex, taskCount)"
  1149. src="../../assets/icon/fourthToolList/program.png"
  1150. alt
  1151. />
  1152. <div style="margin: 5px 0">AI体验</div>
  1153. </div> -->
  1154. <div v-if="tooC == 23">
  1155. <img
  1156. @click="addTools(tooC, toolIndex, taskCount)"
  1157. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1158. alt
  1159. />
  1160. <div style="margin: 5px 0">AI Python</div>
  1161. </div>
  1162. <div v-if="tooC == 24">
  1163. <img
  1164. @click="addTools(tooC, toolIndex, taskCount)"
  1165. src="../../assets/icon/fourthToolList/AIprogram.png"
  1166. alt
  1167. />
  1168. <div style="margin: 5px 0">AI Blockly</div>
  1169. </div>
  1170. <div v-if="tooC == 25">
  1171. <img
  1172. @click="addTools(tooC, toolIndex, taskCount)"
  1173. src="../../assets/icon/thirdToolList/evalua.png"
  1174. alt
  1175. />
  1176. <div style="margin: 5px 0">目标管理</div>
  1177. </div>
  1178. <div v-if="tooC == 31">
  1179. <img
  1180. @click="addTools(tooC, toolIndex, taskCount)"
  1181. src="../../assets/icon/secondToolList/networkPanel.png"
  1182. alt
  1183. />
  1184. <div style="margin: 5px 0">数学画板</div>
  1185. </div>
  1186. <div v-if="tooC == 28">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../../assets/icon/secondToolList/translation.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">翻译</div>
  1193. </div>
  1194. <div v-if="tooC == 37">
  1195. <img
  1196. @click="addTools(tooC, toolIndex, taskCount)"
  1197. src="../../assets/icon/secondToolList/mohe.png"
  1198. alt
  1199. />
  1200. <div style="margin: 5px 0">魔盒识字</div>
  1201. </div>
  1202. <div v-if="tooC == 38">
  1203. <img
  1204. @click="addTools(tooC, toolIndex, taskCount)"
  1205. src="../../assets/icon/secondToolList/24game.png"
  1206. alt
  1207. />
  1208. <div style="margin: 5px 0">24点</div>
  1209. </div>
  1210. <div v-if="tooC == 39">
  1211. <img
  1212. @click="addTools(tooC, toolIndex, taskCount)"
  1213. src="../../assets/icon/secondToolList/GeoGebra.png"
  1214. alt
  1215. />
  1216. <div style="margin: 5px 0">GeoGebra</div>
  1217. </div>
  1218. <div v-if="tooC == 32">
  1219. <img
  1220. @click="addTools(tooC, toolIndex, taskCount)"
  1221. src="../../assets/icon/thirdToolList/code.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">源码编辑</div>
  1225. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1226. style="position: absolute;left: 110px;bottom: 30px;">
  1227. 上传文件
  1228. <input type="file" accept="*" style="display: none"
  1229. @change="beforeUpload1($event, 7, toolIndex)" />
  1230. </div> -->
  1231. </div>
  1232. <div v-if="tooC == 40">
  1233. <img
  1234. @click="addTools(tooC, toolIndex, taskCount)"
  1235. src="../../assets/icon/secondToolList/eval.png"
  1236. alt
  1237. />
  1238. <div style="margin: 5px 0">个人评价</div>
  1239. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1240. style="position: absolute;right: 33px;top: -30px;">
  1241. 投影
  1242. </div>
  1243. </div>
  1244. <div v-if="tooC == 41">
  1245. <img
  1246. @click="addTools(tooC, toolIndex, taskCount)"
  1247. src="../../assets/icon/thirdToolList/select.png"
  1248. alt
  1249. />
  1250. <div style="margin: 5px 0">选择匹配</div>
  1251. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1252. style="position: absolute;right: 33px;top: -30px;">
  1253. 投影
  1254. </div>
  1255. </div>
  1256. <div v-if="tooC == 44">
  1257. <img
  1258. @click="addTools(tooC, toolIndex, taskCount)"
  1259. src="../../assets/icon/thirdToolList/hanClass.png"
  1260. alt
  1261. />
  1262. <div style="margin: 5px 0">汉字宫</div>
  1263. </div>
  1264. <div v-if="tooC == 47">
  1265. <img
  1266. @click="addTools(tooC, toolIndex, taskCount)"
  1267. src="../../assets/icon/fourthToolList/conSentences.png"
  1268. alt
  1269. />
  1270. <div style="margin: 5px 0">排序</div>
  1271. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1272. style="position: absolute;right: 33px;top: -30px;">
  1273. 投影
  1274. </div>
  1275. </div>
  1276. <div v-if="tooC == 48">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../../assets/icon/fourthToolList/table.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">表格</div>
  1283. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1284. style="position: absolute;right: 33px;top: -30px;">
  1285. 投影
  1286. </div>
  1287. </div>
  1288. <div v-if="tooC == 52">
  1289. <img
  1290. @click="addTools(tooC, toolIndex, taskCount)"
  1291. src="../../assets/icon/fourthToolList/text.png"
  1292. alt
  1293. />
  1294. <div style="margin: 5px 0">文档</div>
  1295. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1296. style="position: absolute;right: 33px;top: -30px;">
  1297. 投影
  1298. </div>
  1299. </div>
  1300. <div v-if="tooC == 49">
  1301. <img
  1302. @click="addTools(tooC, toolIndex, taskCount)"
  1303. src="../../assets/icon/fourthToolList/group.png"
  1304. alt
  1305. />
  1306. <div style="margin: 5px 0">学生分组</div>
  1307. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1308. style="position: absolute;right: 33px;top: -30px;">
  1309. 投影
  1310. </div>
  1311. </div>
  1312. <div v-if="tooC == 57">
  1313. <img
  1314. @click="addTools(tooC, toolIndex, taskCount)"
  1315. src="../../assets/icon/fourthToolList/cocopi.png"
  1316. alt
  1317. />
  1318. <div style="margin: 5px 0">CocoPi</div>
  1319. </div>
  1320. <div v-if="tooC == 58">
  1321. <img
  1322. @click="addTools(tooC, toolIndex, taskCount)"
  1323. src="../../assets/icon/fourthToolList/car.png"
  1324. alt
  1325. />
  1326. <div style="margin: 5px 0">模拟驾驶</div>
  1327. </div>
  1328. <div v-if="tooC == 59">
  1329. <img
  1330. @click="addTools(tooC, toolIndex, taskCount)"
  1331. src="../../assets/icon/fourthToolList/lineSearch.png"
  1332. alt
  1333. />
  1334. <div style="margin: 5px 0">路径搜索</div>
  1335. </div>
  1336. <div v-if="tooC == 60">
  1337. <img
  1338. @click="addTools(tooC, toolIndex, taskCount)"
  1339. src="../../assets/icon/fourthToolList/deepLearning.png"
  1340. alt
  1341. />
  1342. <div style="margin: 5px 0">深度学习</div>
  1343. </div>
  1344. <div v-if="tooC == 61">
  1345. <img
  1346. @click="addTools(tooC, toolIndex, taskCount)"
  1347. src="../../assets/icon/fourthToolList/allHistory.png"
  1348. alt
  1349. />
  1350. <div style="margin: 5px 0">全历史</div>
  1351. </div>
  1352. <div v-if="tooC == 62">
  1353. <img
  1354. @click="addTools(tooC, toolIndex, taskCount)"
  1355. src="../../assets/icon/fourthToolList/interVideo.png"
  1356. alt
  1357. />
  1358. <div style="margin: 5px 0">交互视频</div>
  1359. </div>
  1360. <div v-if="tooC == 63">
  1361. <img
  1362. @click="addTools(tooC, toolIndex, taskCount)"
  1363. src="../../assets/icon/fourthToolList/Wood.png"
  1364. alt
  1365. />
  1366. <div style="margin: 5px 0">海龟编程</div>
  1367. </div>
  1368. <div v-if="tooC == 71">
  1369. <img
  1370. @click="addTools(tooC, toolIndex, taskCount)"
  1371. src="../../assets/icon/fourthToolList/chatgpt.png"
  1372. alt
  1373. />
  1374. <div style="margin: 5px 0">AI智能体</div>
  1375. </div>
  1376. <div v-if="tooC == 65">
  1377. <img
  1378. @click="addTools(tooC, toolIndex, taskCount)"
  1379. src="../../assets/icon/firstToolList/pickPeople.png"
  1380. alt
  1381. />
  1382. <div style="margin: 5px 0">挑人</div>
  1383. </div>
  1384. <div v-if="tooC == 66">
  1385. <img
  1386. @click="addTools(tooC, toolIndex, taskCount)"
  1387. src="../../assets/icon/secondToolList/formulaEdi.png"
  1388. alt
  1389. />
  1390. <div style="margin: 5px 0">公式编辑</div>
  1391. </div>
  1392. <div v-if="tooC == 67">
  1393. <img
  1394. @click="addTools(tooC, toolIndex, taskCount)"
  1395. src="../../assets/icon/secondToolList/molStr.png"
  1396. alt
  1397. />
  1398. <div style="margin: 5px 0">分子结构</div>
  1399. </div>
  1400. <div v-if="tooC == 68">
  1401. <img
  1402. @click="addTools(tooC, toolIndex, taskCount)"
  1403. src="../../assets/icon/secondToolList/timeAxis.png"
  1404. alt
  1405. />
  1406. <div style="margin: 5px 0">时间轴</div>
  1407. </div>
  1408. <div v-if="tooC == 69">
  1409. <img
  1410. @click="addTools(tooC, toolIndex, taskCount)"
  1411. src="../../assets/icon/secondToolList/english.png"
  1412. alt
  1413. />
  1414. <div style="margin: 5px 0">英语写作</div>
  1415. </div>
  1416. <div v-if="tooC == 70">
  1417. <img
  1418. @click="addTools(tooC, toolIndex, taskCount)"
  1419. src="../../assets/icon/thirdToolList/englishVoice.png"
  1420. alt
  1421. />
  1422. <div style="margin: 5px 0">英语口语</div>
  1423. </div>
  1424. </div>
  1425. </div>
  1426. </div>
  1427. <div
  1428. class="tooldetail"
  1429. v-if="tool.toolDetail != ''"
  1430. :class="{
  1431. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1432. }"
  1433. >
  1434. <!-- <div class="toolTitle">工具描述</div> -->
  1435. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1436. <div
  1437. style="height:100%;"
  1438. v-html="contentConvent(tool.toolDetail)"
  1439. v-if="toolDetailIndex != toolIndex"
  1440. ></div>
  1441. <div v-else @click.stop="" style="height:100%;">
  1442. <textarea
  1443. @change="
  1444. () => {
  1445. $forceUpdate();
  1446. }
  1447. "
  1448. class="checkTextArea"
  1449. rows="3"
  1450. v-autoHeight="70"
  1451. type="text"
  1452. placeholder="请输入任务描述"
  1453. v-model="updateToolDetailInner"
  1454. ></textarea>
  1455. </div>
  1456. </div>
  1457. <el-button
  1458. type="primary"
  1459. v-if="tool.tool[0] == 32"
  1460. style="position: absolute; right: 30px; top: -45px"
  1461. @click="addImg($event)"
  1462. >上传作业<input
  1463. type="file"
  1464. accept="*"
  1465. style="display: none"
  1466. @change="beforeUpload1($event, 7, toolIndex)"
  1467. /></el-button>
  1468. <el-button
  1469. type="primary"
  1470. v-if="tool.tool[0] == 15"
  1471. style="position: absolute; right: 30px; top: -45px"
  1472. @click="openWordCloud(toolIndex)"
  1473. >生成词云</el-button
  1474. >
  1475. <el-button
  1476. type="primary"
  1477. v-if="
  1478. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1479. "
  1480. style="position: absolute; right: 30px; top: -45px"
  1481. @click="uploadWorks(toolIndex)"
  1482. >导出作业</el-button
  1483. >
  1484. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1485. position: absolute;
  1486. right: 30px;
  1487. transform: translateY(-130%);
  1488. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1489. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1490. </div>
  1491. <div
  1492. v-if="
  1493. tType &&
  1494. tType == 2 &&
  1495. !sIsOpen &&
  1496. tool.tool.indexOf(16) != -1
  1497. "
  1498. class="worksBox"
  1499. >
  1500. <div
  1501. class="zuoyeYulan"
  1502. v-if="workStudent[toolIndex].length > 0"
  1503. >
  1504. <span class="worksTitle">作业预览</span>
  1505. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1506. </div>
  1507. <div
  1508. class="worksDetailBox"
  1509. v-if="workStudent[toolIndex].length > 0"
  1510. >
  1511. <div
  1512. class="works"
  1513. style="
  1514. width: 200px;
  1515. height: 140px;
  1516. margin: 10px 10px 10px 0;
  1517. box-shadow: 0 0 6px 1px #dfdada;
  1518. "
  1519. v-for="(w, wIndex) in workStudent[toolIndex]"
  1520. :key="wIndex"
  1521. >
  1522. <div class="workImg" v-if="w.type == 0">
  1523. <img
  1524. :src="w.works"
  1525. @click="previewImg(w.works, w)"
  1526. alt
  1527. />
  1528. <div
  1529. class="answerScore"
  1530. v-if="w.score"
  1531. @click.stop="openScore(w)"
  1532. :class="{
  1533. rightW:
  1534. w.userid == userid || tType == 1 || tType == 4
  1535. }"
  1536. >
  1537. {{ JSON.parse(w.score).wScore }}分
  1538. </div>
  1539. <div
  1540. class="answerScore"
  1541. @click.stop="openScore(w)"
  1542. v-else-if="courseDetail.userid == userid"
  1543. :class="{
  1544. rightW:
  1545. w.userid == userid || tType == 1 || tType == 4
  1546. }"
  1547. >
  1548. 评分
  1549. </div>
  1550. <div
  1551. class="stuLookScore"
  1552. v-if="
  1553. w.userid == userid ||
  1554. (tType == 1 &&
  1555. courseDetail.state == 6 &&
  1556. ((chapInfoList[courseType].chapterInfo[0]
  1557. .taskJson[taskCount].eList &&
  1558. chapInfoList[courseType].chapterInfo[0]
  1559. .taskJson[taskCount].eList.length) ||
  1560. (tool.eList && tool.eList.length)))
  1561. "
  1562. >
  1563. <el-popover
  1564. placement="top"
  1565. width="318"
  1566. trigger="hover"
  1567. >
  1568. <markScore
  1569. :loading="AIloading[toolIndex][wIndex].loading"
  1570. :markScoreVisible="markScoreVisible"
  1571. :ref="`markSco${toolIndex}${wIndex}`"
  1572. @updateLoading="updateLoading"
  1573. @updateDocSco="updateDocSco"
  1574. @refreshOther="refreshOther"
  1575. @markScoreDig="markScoreDig"
  1576. :tool="tool"
  1577. :wIndex="wIndex"
  1578. :scoCon="w"
  1579. :toolIndex="toolIndex"
  1580. :key="refreshKey"
  1581. :stage="courseType"
  1582. :task="taskCount"
  1583. :scoTit="
  1584. chapInfoList[courseType].chapterInfo[0]
  1585. .taskJson[taskCount].eList
  1586. "
  1587. >
  1588. </markScore>
  1589. <div
  1590. @click="
  1591. markScoreDig2(
  1592. w.sName,
  1593. worksStudent,
  1594. w.userid,
  1595. toolIndex,
  1596. chapInfoList[courseType].chapterInfo[0]
  1597. .taskJson[taskCount].eList,
  1598. AIloading[toolIndex][wIndex].loading,
  1599. tool
  1600. )
  1601. "
  1602. slot="reference"
  1603. >
  1604. <span v-if="AIloading[toolIndex][wIndex].sco">
  1605. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1606. </span>
  1607. <span v-else>
  1608. 评分
  1609. </span>
  1610. </div>
  1611. </el-popover>
  1612. </div>
  1613. <img
  1614. class="deleteImg"
  1615. src="../../assets/deleteworks.png"
  1616. v-if="
  1617. w.userid == userid || tType == 1 || tType == 4
  1618. "
  1619. @click.stop="deleteWorks(w.wid)"
  1620. alt
  1621. />
  1622. </div>
  1623. <div class="workImg" v-if="w.type == 1">
  1624. <img :src="word" @click="openFile(w.works)" alt />
  1625. <div
  1626. class="answerScore"
  1627. v-if="w.score"
  1628. @click.stop="openScore(w)"
  1629. :class="{
  1630. rightW:
  1631. w.userid == userid || tType == 1 || tType == 4
  1632. }"
  1633. >
  1634. {{ JSON.parse(w.score).wScore }}分
  1635. </div>
  1636. <div
  1637. class="answerScore"
  1638. @click.stop="openScore(w)"
  1639. v-else-if="courseDetail.userid == userid"
  1640. :class="{
  1641. rightW:
  1642. w.userid == userid || tType == 1 || tType == 4
  1643. }"
  1644. >
  1645. 评分
  1646. </div>
  1647. <div
  1648. class="stuLookScore"
  1649. v-if="
  1650. w.userid == userid ||
  1651. (tType == 1 &&
  1652. courseDetail.state == 6 &&
  1653. ((chapInfoList[courseType].chapterInfo[0]
  1654. .taskJson[taskCount].eList &&
  1655. chapInfoList[courseType].chapterInfo[0]
  1656. .taskJson[taskCount].eList.length) ||
  1657. (tool.eList && tool.eList.length)))
  1658. "
  1659. >
  1660. <el-popover
  1661. placement="top"
  1662. width="318"
  1663. trigger="hover"
  1664. >
  1665. <markScore
  1666. :loading="AIloading[toolIndex][wIndex].loading"
  1667. :markScoreVisible="markScoreVisible"
  1668. :ref="`markSco${toolIndex}${wIndex}`"
  1669. @updateLoading="updateLoading"
  1670. @updateDocSco="updateDocSco"
  1671. @refreshOther="refreshOther"
  1672. @markScoreDig="markScoreDig"
  1673. :tool="tool"
  1674. :wIndex="wIndex"
  1675. :scoCon="w"
  1676. :toolIndex="toolIndex"
  1677. :key="refreshKey"
  1678. :stage="courseType"
  1679. :task="taskCount"
  1680. :scoTit="
  1681. chapInfoList[courseType].chapterInfo[0]
  1682. .taskJson[taskCount].eList
  1683. "
  1684. >
  1685. </markScore>
  1686. <div
  1687. @click="
  1688. markScoreDig2(
  1689. w.sName,
  1690. worksStudent,
  1691. w.userid,
  1692. toolIndex,
  1693. chapInfoList[courseType].chapterInfo[0]
  1694. .taskJson[taskCount].eList,
  1695. AIloading[toolIndex][wIndex].loading,
  1696. tool
  1697. )
  1698. "
  1699. slot="reference"
  1700. >
  1701. <span v-if="AIloading[toolIndex][wIndex].sco">
  1702. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1703. </span>
  1704. <span v-else>
  1705. 评分
  1706. </span>
  1707. </div>
  1708. </el-popover>
  1709. </div>
  1710. <img
  1711. class="deleteImg"
  1712. src="../../assets/deleteworks.png"
  1713. v-if="
  1714. w.userid == userid || tType == 1 || tType == 4
  1715. "
  1716. @click.stop="deleteWorks(w.wid)"
  1717. alt
  1718. />
  1719. </div>
  1720. <div class="workImg" v-if="w.type == 3">
  1721. <img
  1722. style="cursor: pointer"
  1723. :src="video"
  1724. @click="openVideo(w)"
  1725. alt
  1726. />
  1727. <div
  1728. class="answerScore"
  1729. v-if="w.score"
  1730. @click.stop="openScore(w)"
  1731. :class="{
  1732. rightW:
  1733. w.userid == userid || tType == 1 || tType == 4
  1734. }"
  1735. >
  1736. {{ JSON.parse(w.score).wScore }}分
  1737. </div>
  1738. <div
  1739. class="answerScore"
  1740. @click.stop="openScore(w)"
  1741. v-else-if="courseDetail.userid == userid"
  1742. :class="{
  1743. rightW:
  1744. w.userid == userid || tType == 1 || tType == 4
  1745. }"
  1746. >
  1747. 评分
  1748. </div>
  1749. <div
  1750. class="stuLookScore"
  1751. v-if="
  1752. w.userid == userid ||
  1753. (tType == 1 &&
  1754. courseDetail.state == 6 &&
  1755. ((chapInfoList[courseType].chapterInfo[0]
  1756. .taskJson[taskCount].eList &&
  1757. chapInfoList[courseType].chapterInfo[0]
  1758. .taskJson[taskCount].eList.length) ||
  1759. (tool.eList && tool.eList.length)))
  1760. "
  1761. >
  1762. <el-popover
  1763. placement="top"
  1764. width="318"
  1765. trigger="hover"
  1766. >
  1767. <markScore
  1768. :loading="AIloading[toolIndex][wIndex].loading"
  1769. :markScoreVisible="markScoreVisible"
  1770. :ref="`markSco${toolIndex}${wIndex}`"
  1771. @updateLoading="updateLoading"
  1772. @updateDocSco="updateDocSco"
  1773. @refreshOther="refreshOther"
  1774. @markScoreDig="markScoreDig"
  1775. :tool="tool"
  1776. :wIndex="wIndex"
  1777. :scoCon="w"
  1778. :toolIndex="toolIndex"
  1779. :key="refreshKey"
  1780. :stage="courseType"
  1781. :task="taskCount"
  1782. :scoTit="
  1783. chapInfoList[courseType].chapterInfo[0]
  1784. .taskJson[taskCount].eList
  1785. "
  1786. >
  1787. </markScore>
  1788. <div
  1789. @click="
  1790. markScoreDig2(
  1791. w.sName,
  1792. worksStudent,
  1793. w.userid,
  1794. toolIndex,
  1795. chapInfoList[courseType].chapterInfo[0]
  1796. .taskJson[taskCount].eList,
  1797. AIloading[toolIndex][wIndex].loading,
  1798. tool
  1799. )
  1800. "
  1801. slot="reference"
  1802. >
  1803. <span v-if="AIloading[toolIndex][wIndex].sco">
  1804. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1805. </span>
  1806. <span v-else>
  1807. 评分
  1808. </span>
  1809. </div>
  1810. </el-popover>
  1811. </div>
  1812. <img
  1813. class="deleteImg"
  1814. src="../../assets/deleteworks.png"
  1815. v-if="
  1816. w.userid == userid || tType == 1 || tType == 4
  1817. "
  1818. @click.stop="deleteWorks(w.wid)"
  1819. alt
  1820. />
  1821. </div>
  1822. <div class="workImg" v-if="w.type == 12">
  1823. <img
  1824. style="cursor: pointer"
  1825. :src="word2"
  1826. @click="downloadFile(w.works)"
  1827. alt
  1828. />
  1829. <div
  1830. class="answerScore"
  1831. v-if="w.score"
  1832. @click.stop="openScore(w)"
  1833. :class="{
  1834. rightW:
  1835. w.userid == userid || tType == 1 || tType == 4
  1836. }"
  1837. >
  1838. {{ JSON.parse(w.score).wScore }}分
  1839. </div>
  1840. <div
  1841. class="answerScore"
  1842. @click.stop="openScore(w)"
  1843. v-else-if="courseDetail.userid == userid"
  1844. :class="{
  1845. rightW:
  1846. w.userid == userid || tType == 1 || tType == 4
  1847. }"
  1848. >
  1849. 评分
  1850. </div>
  1851. <div
  1852. class="stuLookScore"
  1853. v-if="
  1854. w.userid == userid ||
  1855. (tType == 1 &&
  1856. courseDetail.state == 6 &&
  1857. ((chapInfoList[courseType].chapterInfo[0]
  1858. .taskJson[taskCount].eList &&
  1859. chapInfoList[courseType].chapterInfo[0]
  1860. .taskJson[taskCount].eList.length) ||
  1861. (tool.eList && tool.eList.length)))
  1862. "
  1863. >
  1864. <el-popover
  1865. placement="top"
  1866. width="318"
  1867. trigger="hover"
  1868. >
  1869. <markScore
  1870. :loading="AIloading[toolIndex][wIndex].loading"
  1871. :markScoreVisible="markScoreVisible"
  1872. :ref="`markSco${toolIndex}${wIndex}`"
  1873. @updateLoading="updateLoading"
  1874. @updateDocSco="updateDocSco"
  1875. @refreshOther="refreshOther"
  1876. @markScoreDig="markScoreDig"
  1877. :tool="tool"
  1878. :wIndex="wIndex"
  1879. :scoCon="w"
  1880. :toolIndex="toolIndex"
  1881. :key="refreshKey"
  1882. :stage="courseType"
  1883. :task="taskCount"
  1884. :scoTit="
  1885. chapInfoList[courseType].chapterInfo[0]
  1886. .taskJson[taskCount].eList
  1887. "
  1888. >
  1889. </markScore>
  1890. <div
  1891. @click="
  1892. markScoreDig2(
  1893. w.sName,
  1894. worksStudent,
  1895. w.userid,
  1896. toolIndex,
  1897. chapInfoList[courseType].chapterInfo[0]
  1898. .taskJson[taskCount].eList,
  1899. AIloading[toolIndex][wIndex].loading,
  1900. tool
  1901. )
  1902. "
  1903. slot="reference"
  1904. >
  1905. <span v-if="AIloading[toolIndex][wIndex].sco">
  1906. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1907. </span>
  1908. <span v-else>
  1909. 评分
  1910. </span>
  1911. </div>
  1912. </el-popover>
  1913. </div>
  1914. <img
  1915. class="deleteImg"
  1916. src="../../assets/deleteworks.png"
  1917. v-if="
  1918. w.userid == userid || tType == 1 || tType == 4
  1919. "
  1920. @click.stop="deleteWorks(w.wid)"
  1921. alt
  1922. />
  1923. </div>
  1924. <div class="worksName">
  1925. <div>{{ w.sName }}</div>
  1926. </div>
  1927. </div>
  1928. </div>
  1929. </div>
  1930. <div
  1931. v-if="
  1932. tType &&
  1933. tType == 2 &&
  1934. !sIsOpen &&
  1935. tool.tool.indexOf(32) != -1
  1936. "
  1937. class="worksBox"
  1938. >
  1939. <div
  1940. class="zuoyeYulan"
  1941. v-if="workStudent[toolIndex].length > 0"
  1942. >
  1943. <span class="worksTitle">作业预览</span>
  1944. </div>
  1945. <div
  1946. class="worksDetailBox"
  1947. v-if="workStudent[toolIndex].length > 0"
  1948. >
  1949. <div
  1950. class="works"
  1951. style="
  1952. width: 200px;
  1953. height: 140px;
  1954. margin: 10px 10px 10px 0;
  1955. box-shadow: 0 0 6px 1px #dfdada;
  1956. "
  1957. v-for="(w, wIndex) in workStudent[toolIndex]"
  1958. :key="wIndex"
  1959. >
  1960. <div class="workImg">
  1961. <img
  1962. :src="word2"
  1963. @click="downloadFile(w.works)"
  1964. alt
  1965. />
  1966. <div
  1967. class="answerScore"
  1968. v-if="w.score"
  1969. @click.stop="openScore(w)"
  1970. :class="{
  1971. rightW:
  1972. w.userid == userid || tType == 1 || tType == 4
  1973. }"
  1974. >
  1975. {{ JSON.parse(w.score).wScore }}分
  1976. </div>
  1977. <div
  1978. class="answerScore"
  1979. @click.stop="openScore(w)"
  1980. v-else-if="courseDetail.userid == userid"
  1981. :class="{
  1982. rightW:
  1983. w.userid == userid || tType == 1 || tType == 4
  1984. }"
  1985. >
  1986. 评分
  1987. </div>
  1988. <img
  1989. class="deleteImg"
  1990. src="../../assets/deleteworks.png"
  1991. v-if="
  1992. w.userid == userid || tType == 1 || tType == 4
  1993. "
  1994. @click.stop="deleteWorks(w.wid)"
  1995. alt
  1996. />
  1997. </div>
  1998. <div class="worksName">
  1999. <div>{{ w.sName }}</div>
  2000. </div>
  2001. </div>
  2002. </div>
  2003. </div>
  2004. <div
  2005. v-if="
  2006. tType &&
  2007. tType == 2 &&
  2008. !sIsOpen &&
  2009. tool.tool.indexOf(57) != -1
  2010. "
  2011. class="worksBox"
  2012. >
  2013. <div
  2014. class="zuoyeYulan"
  2015. v-if="workStudent[toolIndex].length > 0"
  2016. >
  2017. <span class="worksTitle">作业预览</span>
  2018. </div>
  2019. <div
  2020. class="worksDetailBox"
  2021. v-if="workStudent[toolIndex].length > 0"
  2022. >
  2023. <div
  2024. class="works"
  2025. style="
  2026. width: 200px;
  2027. height: 140px;
  2028. margin: 10px 10px 10px 0;
  2029. box-shadow: 0 0 6px 1px #dfdada;
  2030. "
  2031. v-for="(w, wIndex) in workStudent[toolIndex]"
  2032. :key="wIndex"
  2033. >
  2034. <div class="workImg">
  2035. <img
  2036. :src="word2"
  2037. @click="downloadFile(w.works)"
  2038. v-if="w.type == 12"
  2039. alt
  2040. />
  2041. <img
  2042. :src="word2"
  2043. @click="
  2044. openCocoPi(57, toolIndex, w.userid, w.sName)
  2045. "
  2046. v-else-if="w.type == 15"
  2047. alt
  2048. />
  2049. <div
  2050. class="answerScore"
  2051. v-if="w.score"
  2052. @click.stop="openScore(w)"
  2053. :class="{
  2054. rightW:
  2055. w.userid == userid || tType == 1 || tType == 4
  2056. }"
  2057. >
  2058. {{ JSON.parse(w.score).wScore }}分
  2059. </div>
  2060. <div
  2061. class="answerScore"
  2062. @click.stop="openScore(w)"
  2063. v-else-if="courseDetail.userid == userid"
  2064. :class="{
  2065. rightW:
  2066. w.userid == userid || tType == 1 || tType == 4
  2067. }"
  2068. >
  2069. 评分
  2070. </div>
  2071. <img
  2072. class="deleteImg"
  2073. src="../../assets/deleteworks.png"
  2074. v-if="
  2075. w.userid == userid || tType == 1 || tType == 4
  2076. "
  2077. @click.stop="deleteWorks(w.wid)"
  2078. alt
  2079. />
  2080. </div>
  2081. <div class="worksName">
  2082. <div>{{ w.sName }}</div>
  2083. </div>
  2084. </div>
  2085. </div>
  2086. </div>
  2087. <div
  2088. v-if="
  2089. tType &&
  2090. tType == 2 &&
  2091. !sIsOpen &&
  2092. tool.tool.indexOf(4) != -1
  2093. "
  2094. class="worksBox"
  2095. >
  2096. <div
  2097. class="zuoyeYulan"
  2098. v-if="workStudent[toolIndex].length > 0"
  2099. >
  2100. <span class="worksTitle">作业预览</span>
  2101. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2102. </div>
  2103. <div
  2104. class="worksDetailBox"
  2105. v-if="workStudent[toolIndex].length > 0"
  2106. >
  2107. <div
  2108. class="isWorksName2"
  2109. v-for="(w, wIndex) in workStudent[toolIndex]"
  2110. :key="wIndex"
  2111. @click="
  2112. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2113. "
  2114. >
  2115. {{ w.sName }}
  2116. <img
  2117. class="deleteImg deleteImg2"
  2118. src="../../assets/deleteworks.png"
  2119. v-if="w.userid == userid || tType == 1 || tType == 4"
  2120. @click.stop="deleteWorks(w.wid)"
  2121. alt
  2122. />
  2123. </div>
  2124. <!-- <div
  2125. class="works"
  2126. style="
  2127. width: 200px;
  2128. height: 140px;
  2129. border-radius: 10px;
  2130. box-shadow: 0 0 6px 1px #dfdada;
  2131. overflow: hidden;
  2132. "
  2133. v-for="(w, wIndex) in workStudent[toolIndex]"
  2134. :key="wIndex"
  2135. >
  2136. <div class="workImg">
  2137. <img
  2138. src="../../assets/icon/works/noImg.png"
  2139. @click="
  2140. openTools(
  2141. 4,
  2142. toolIndex,
  2143. taskCount,
  2144. w.works,
  2145. w.sName
  2146. )
  2147. "
  2148. alt
  2149. />
  2150. </div>
  2151. <div class="worksName">
  2152. <div>{{ w.sName }}</div>
  2153. <div>{{ w.time }}</div>
  2154. </div>
  2155. </div> -->
  2156. </div>
  2157. </div>
  2158. <div
  2159. v-if="
  2160. tType &&
  2161. ((tType == 2 && sIsOpen == true) ||
  2162. tType == 1 ||
  2163. tType == 4) &&
  2164. tool.tool.indexOf(62) != -1
  2165. "
  2166. class="worksBox"
  2167. >
  2168. <div
  2169. class="zuoyeYulan"
  2170. v-if="
  2171. worksStudent.length &&
  2172. worksStudent[toolIndex].length > 0
  2173. "
  2174. >
  2175. <div class="worksTop">
  2176. <div>作业预览</div>
  2177. <div
  2178. class="corOpen"
  2179. @click="contract(toolIndex)"
  2180. v-if="
  2181. isCloseList[toolIndex].isCloseBoolean &&
  2182. isCloseList[toolIndex].isClose == 0
  2183. "
  2184. >
  2185. 折叠
  2186. </div>
  2187. <div
  2188. class="corOpen"
  2189. @click="contract(toolIndex)"
  2190. v-if="isCloseList[toolIndex].isClose == 1"
  2191. >
  2192. 展开
  2193. </div>
  2194. </div>
  2195. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2196. </div>
  2197. <div>
  2198. <div
  2199. :id="'tool-' + toolIndex"
  2200. :style="{
  2201. height:
  2202. isCloseList[toolIndex].isClose == 1
  2203. ? retrnToolHeight('tool-' + toolIndex)
  2204. : 'auto',
  2205. overflow:
  2206. isCloseList[toolIndex].isClose == 1
  2207. ? 'hidden'
  2208. : 'unset'
  2209. }"
  2210. class="worksDetailBox"
  2211. v-if="
  2212. worksStudent.length &&
  2213. worksStudent[toolIndex].length > 0
  2214. "
  2215. >
  2216. <div
  2217. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2218. :key="wIndex"
  2219. class="isWorksName2"
  2220. @click="
  2221. openTools(
  2222. 62,
  2223. toolIndex,
  2224. taskCount,
  2225. w.works,
  2226. w.sName
  2227. )
  2228. "
  2229. >
  2230. {{ w.sName }}
  2231. <img
  2232. class="deleteImg deleteImg2"
  2233. src="../../assets/deleteworks.png"
  2234. v-if="
  2235. w.userid == userid || tType == 1 || tType == 4
  2236. "
  2237. @click.stop="deleteWorks(w.wid)"
  2238. alt
  2239. />
  2240. </div>
  2241. </div>
  2242. </div>
  2243. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2244. 未提交
  2245. </div>
  2246. <div
  2247. class="noWorksS"
  2248. v-if="noWorksS && noWorksS[toolIndex].length"
  2249. >
  2250. <div
  2251. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2252. :key="sIndex"
  2253. class="noWorksName"
  2254. >
  2255. <el-tooltip
  2256. effect="dark"
  2257. :content="s.student"
  2258. placement="top"
  2259. >
  2260. <span>{{ s.student }}</span>
  2261. </el-tooltip>
  2262. </div>
  2263. </div>
  2264. </div>
  2265. <div
  2266. v-if="
  2267. tType &&
  2268. tType == 2 &&
  2269. !sIsOpen &&
  2270. tool.tool.indexOf(62) != -1
  2271. "
  2272. class="worksBox"
  2273. >
  2274. <div
  2275. class="zuoyeYulan"
  2276. v-if="workStudent[toolIndex].length > 0"
  2277. >
  2278. <span class="worksTitle">作业预览</span>
  2279. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2280. </div>
  2281. <div
  2282. class="worksDetailBox"
  2283. v-if="workStudent[toolIndex].length > 0"
  2284. >
  2285. <div
  2286. class="isWorksName2"
  2287. v-for="(w, wIndex) in workStudent[toolIndex]"
  2288. :key="wIndex"
  2289. @click="
  2290. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2291. "
  2292. >
  2293. {{ w.sName }}
  2294. <img
  2295. class="deleteImg deleteImg2"
  2296. src="../../assets/deleteworks.png"
  2297. v-if="w.userid == userid || tType == 1 || tType == 4"
  2298. @click.stop="deleteWorks(w.wid)"
  2299. alt
  2300. />
  2301. </div>
  2302. </div>
  2303. </div>
  2304. <div
  2305. v-if="
  2306. tType &&
  2307. tType == 2 &&
  2308. !sIsOpen &&
  2309. tool.tool.indexOf(45) != -1
  2310. "
  2311. class="worksBox"
  2312. >
  2313. <div
  2314. class="zuoyeYulan"
  2315. v-if="workStudent[toolIndex].length > 0"
  2316. >
  2317. <span class="worksTitle">作业预览</span>
  2318. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2319. </div>
  2320. <div
  2321. class="worksDetailBox"
  2322. v-if="workStudent[toolIndex].length > 0"
  2323. >
  2324. <div
  2325. class="isWorksName2"
  2326. v-for="(w, wIndex) in workStudent[toolIndex]"
  2327. :key="wIndex"
  2328. @click="
  2329. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2330. "
  2331. >
  2332. {{ w.sName }}
  2333. <img
  2334. class="deleteImg deleteImg2"
  2335. src="../../assets/deleteworks.png"
  2336. v-if="w.userid == userid || tType == 1 || tType == 4"
  2337. @click.stop="deleteWorks(w.wid)"
  2338. alt
  2339. />
  2340. </div>
  2341. </div>
  2342. </div>
  2343. <div
  2344. v-if="
  2345. tType &&
  2346. tType == 2 &&
  2347. !sIsOpen &&
  2348. tool.tool.indexOf(69) != -1
  2349. "
  2350. class="worksBox"
  2351. >
  2352. <div
  2353. class="zuoyeYulan"
  2354. v-if="workStudent[toolIndex].length > 0"
  2355. >
  2356. <span class="worksTitle">作业预览</span>
  2357. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2358. </div>
  2359. <div
  2360. class="worksDetailBox"
  2361. v-if="workStudent[toolIndex].length > 0"
  2362. >
  2363. <div
  2364. class="isWorksName2"
  2365. v-for="(w, wIndex) in workStudent[toolIndex]"
  2366. :key="wIndex"
  2367. @click="
  2368. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2369. "
  2370. >
  2371. {{ w.sName }}
  2372. <img
  2373. class="deleteImg deleteImg2"
  2374. src="../../assets/deleteworks.png"
  2375. v-if="w.userid == userid || tType == 1 || tType == 4"
  2376. @click.stop="deleteWorks(w.wid)"
  2377. alt
  2378. />
  2379. </div>
  2380. </div>
  2381. </div>
  2382. <div
  2383. v-if="
  2384. tType &&
  2385. tType == 2 &&
  2386. !sIsOpen &&
  2387. tool.tool.indexOf(15) != -1
  2388. "
  2389. class="worksBox"
  2390. >
  2391. <div
  2392. class="zuoyeYulan"
  2393. v-if="workStudent[toolIndex].length > 0"
  2394. >
  2395. <span class="worksTitle">作业预览</span>
  2396. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2397. </div>
  2398. <div
  2399. class="worksDetailBox"
  2400. v-if="workStudent[toolIndex].length > 0"
  2401. >
  2402. <div
  2403. class="works"
  2404. v-for="(w, wIndex) in workStudent[toolIndex]"
  2405. :key="wIndex"
  2406. >
  2407. <div class="workImg">
  2408. <!-- <img
  2409. src="../../assets/icon/works/noImg.png"
  2410. @click="openTools(15, toolIndex, taskCount, w.works)"
  2411. alt=""
  2412. />-->
  2413. <div class="answerBg">
  2414. <!-- <div>{{ w.sName }}</div> -->
  2415. <el-tooltip
  2416. class="item"
  2417. effect="light"
  2418. :content="JSON.parse(w.works)[0].answer"
  2419. placement="top"
  2420. >
  2421. <div class="answerContent">
  2422. {{ JSON.parse(w.works)[0].answer }}
  2423. </div>
  2424. </el-tooltip>
  2425. <div
  2426. class="answerScore"
  2427. v-if="w.score"
  2428. @click.stop="openScore(w)"
  2429. :class="{
  2430. rightW:
  2431. w.userid == userid || tType == 1 || tType == 4
  2432. }"
  2433. >
  2434. {{ JSON.parse(w.score).wScore }}分
  2435. </div>
  2436. <div
  2437. class="answerScore"
  2438. @click.stop="openScore(w)"
  2439. v-else-if="courseDetail.userid == userid"
  2440. :class="{
  2441. rightW:
  2442. w.userid == userid || tType == 1 || tType == 4
  2443. }"
  2444. >
  2445. 评分
  2446. </div>
  2447. <img
  2448. class="deleteImg"
  2449. src="../../assets/deleteworks.png"
  2450. v-if="
  2451. w.userid == userid || tType == 1 || tType == 4
  2452. "
  2453. @click.stop="deleteWorks(w.wid)"
  2454. alt
  2455. />
  2456. </div>
  2457. <div class="comment">
  2458. <div class="worksName">
  2459. <div>{{ w.sName }}</div>
  2460. </div>
  2461. </div>
  2462. </div>
  2463. </div>
  2464. </div>
  2465. </div>
  2466. <div
  2467. v-if="
  2468. tType &&
  2469. tType == 2 &&
  2470. !sIsOpen &&
  2471. tool.tool.indexOf(1) != -1
  2472. "
  2473. class="worksBox"
  2474. >
  2475. <div
  2476. class="zuoyeYulan"
  2477. v-if="workStudent[toolIndex].length > 0"
  2478. >
  2479. <span class="worksTitle">作业预览</span>
  2480. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2481. </div>
  2482. <div
  2483. class="worksDetailBox"
  2484. v-if="workStudent[toolIndex].length > 0"
  2485. >
  2486. <div
  2487. class="works"
  2488. style="
  2489. width: 200px;
  2490. height: 140px;
  2491. margin: 10px 10px 10px 0;
  2492. box-shadow: 0 0 6px 1px #dfdada;
  2493. "
  2494. v-for="(w, wIndex) in workStudent[toolIndex]"
  2495. :key="wIndex"
  2496. >
  2497. <div class="workImg">
  2498. <img
  2499. :src="w.works"
  2500. @click="previewImg(w.works, w)"
  2501. alt
  2502. />
  2503. <div
  2504. class="answerScore"
  2505. v-if="w.score"
  2506. @click.stop="openScore(w)"
  2507. :class="{
  2508. rightW:
  2509. w.userid == userid || tType == 1 || tType == 4
  2510. }"
  2511. >
  2512. {{ JSON.parse(w.score).wScore }}分
  2513. </div>
  2514. <div
  2515. class="answerScore"
  2516. @click.stop="openScore(w)"
  2517. v-else-if="courseDetail.userid == userid"
  2518. :class="{
  2519. rightW:
  2520. w.userid == userid || tType == 1 || tType == 4
  2521. }"
  2522. >
  2523. 评分
  2524. </div>
  2525. <div
  2526. class="stuLookScore"
  2527. v-if="
  2528. w.userid == userid ||
  2529. (tType == 1 &&
  2530. courseDetail.state == 6 &&
  2531. ((chapInfoList[courseType].chapterInfo[0]
  2532. .taskJson[taskCount].eList &&
  2533. chapInfoList[courseType].chapterInfo[0]
  2534. .taskJson[taskCount].eList.length) ||
  2535. (tool.eList && tool.eList.length)))
  2536. "
  2537. >
  2538. <el-popover
  2539. placement="top"
  2540. width="318"
  2541. trigger="hover"
  2542. >
  2543. <markScore
  2544. :loading="AIloading[toolIndex][wIndex].loading"
  2545. :markScoreVisible="markScoreVisible"
  2546. :ref="`markSco${toolIndex}${wIndex}`"
  2547. @updateLoading="updateLoading"
  2548. @updateDocSco="updateDocSco"
  2549. @refreshOther="refreshOther"
  2550. @markScoreDig="markScoreDig"
  2551. :tool="tool"
  2552. :wIndex="wIndex"
  2553. :scoCon="w"
  2554. :toolIndex="toolIndex"
  2555. :key="refreshKey"
  2556. :stage="courseType"
  2557. :task="taskCount"
  2558. :scoTit="
  2559. chapInfoList[courseType].chapterInfo[0]
  2560. .taskJson[taskCount].eList
  2561. "
  2562. >
  2563. </markScore>
  2564. <div
  2565. @click="
  2566. markScoreDig2(
  2567. w.sName,
  2568. worksStudent,
  2569. w.userid,
  2570. toolIndex,
  2571. chapInfoList[courseType].chapterInfo[0]
  2572. .taskJson[taskCount].eList,
  2573. AIloading[toolIndex][wIndex].loading,
  2574. tool
  2575. )
  2576. "
  2577. slot="reference"
  2578. >
  2579. <span v-if="AIloading[toolIndex][wIndex].sco">
  2580. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2581. </span>
  2582. <span v-else>
  2583. 评分
  2584. </span>
  2585. </div>
  2586. </el-popover>
  2587. </div>
  2588. <img
  2589. class="deleteImg"
  2590. src="../../assets/deleteworks.png"
  2591. v-if="
  2592. w.userid == userid || tType == 1 || tType == 4
  2593. "
  2594. @click.stop="deleteWorks(w.wid)"
  2595. alt
  2596. />
  2597. </div>
  2598. <div class="worksName">
  2599. <div>{{ w.sName }}</div>
  2600. </div>
  2601. </div>
  2602. </div>
  2603. </div>
  2604. <div
  2605. v-if="
  2606. tType &&
  2607. tType == 2 &&
  2608. !sIsOpen &&
  2609. tool.tool.indexOf(3) != -1
  2610. "
  2611. class="worksBox"
  2612. >
  2613. <div
  2614. class="zuoyeYulan"
  2615. v-if="workStudent[toolIndex].length > 0"
  2616. >
  2617. <span class="worksTitle">作业预览</span>
  2618. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2619. </div>
  2620. <div
  2621. class="worksDetailBox"
  2622. v-if="workStudent[toolIndex].length > 0"
  2623. >
  2624. <div
  2625. class="works"
  2626. style="
  2627. width: 200px;
  2628. height: 140px;
  2629. margin: 10px 10px 10px 0;
  2630. box-shadow: 0 0 6px 1px #dfdada;
  2631. "
  2632. v-for="(w, wIndex) in workStudent[toolIndex]"
  2633. :key="wIndex"
  2634. >
  2635. <div class="workImg">
  2636. <img
  2637. :src="w.works"
  2638. @click="previewImg(w.works, w)"
  2639. alt
  2640. />
  2641. <div
  2642. class="answerScore"
  2643. v-if="w.score"
  2644. @click.stop="openScore(w)"
  2645. :class="{
  2646. rightW:
  2647. w.userid == userid || tType == 1 || tType == 4
  2648. }"
  2649. >
  2650. {{ JSON.parse(w.score).wScore }}分
  2651. </div>
  2652. <div
  2653. class="answerScore"
  2654. @click.stop="openScore(w)"
  2655. v-else-if="courseDetail.userid == userid"
  2656. :class="{
  2657. rightW:
  2658. w.userid == userid || tType == 1 || tType == 4
  2659. }"
  2660. >
  2661. 评分
  2662. </div>
  2663. <div
  2664. class="stuLookScore"
  2665. v-if="
  2666. w.userid == userid ||
  2667. (tType == 1 &&
  2668. courseDetail.state == 6 &&
  2669. ((chapInfoList[courseType].chapterInfo[0]
  2670. .taskJson[taskCount].eList &&
  2671. chapInfoList[courseType].chapterInfo[0]
  2672. .taskJson[taskCount].eList.length) ||
  2673. (tool.eList && tool.eList.length)))
  2674. "
  2675. >
  2676. <el-popover
  2677. placement="top"
  2678. width="318"
  2679. trigger="hover"
  2680. >
  2681. <markScore
  2682. :loading="AIloading[toolIndex][wIndex].loading"
  2683. :markScoreVisible="markScoreVisible"
  2684. :ref="`markSco${toolIndex}${wIndex}`"
  2685. @updateLoading="updateLoading"
  2686. @updateDocSco="updateDocSco"
  2687. @refreshOther="refreshOther"
  2688. @markScoreDig="markScoreDig"
  2689. :tool="tool"
  2690. :wIndex="wIndex"
  2691. :scoCon="w"
  2692. :toolIndex="toolIndex"
  2693. :key="refreshKey"
  2694. :stage="courseType"
  2695. :task="taskCount"
  2696. :scoTit="
  2697. chapInfoList[courseType].chapterInfo[0]
  2698. .taskJson[taskCount].eList
  2699. "
  2700. >
  2701. </markScore>
  2702. <div
  2703. @click="
  2704. markScoreDig2(
  2705. w.sName,
  2706. worksStudent,
  2707. w.userid,
  2708. toolIndex,
  2709. chapInfoList[courseType].chapterInfo[0]
  2710. .taskJson[taskCount].eList,
  2711. AIloading[toolIndex][wIndex].loading,
  2712. tool
  2713. )
  2714. "
  2715. slot="reference"
  2716. >
  2717. <span v-if="AIloading[toolIndex][wIndex].sco">
  2718. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2719. </span>
  2720. <span v-else>
  2721. 评分
  2722. </span>
  2723. </div>
  2724. </el-popover>
  2725. </div>
  2726. <img
  2727. class="deleteImg"
  2728. src="../../assets/deleteworks.png"
  2729. v-if="
  2730. w.userid == userid || tType == 1 || tType == 4
  2731. "
  2732. @click.stop="deleteWorks(w.wid)"
  2733. alt
  2734. />
  2735. </div>
  2736. <div class="worksName">
  2737. <div>{{ w.sName }}</div>
  2738. </div>
  2739. </div>
  2740. </div>
  2741. </div>
  2742. <div
  2743. v-if="
  2744. tType &&
  2745. tType == 2 &&
  2746. !sIsOpen &&
  2747. tool.tool.indexOf(6) != -1
  2748. "
  2749. class="worksBox"
  2750. >
  2751. <div
  2752. class="zuoyeYulan"
  2753. v-if="workStudent[toolIndex].length > 0"
  2754. >
  2755. <span class="worksTitle">作业预览</span>
  2756. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2757. </div>
  2758. <div
  2759. class="worksDetailBox"
  2760. v-if="workStudent[toolIndex].length > 0"
  2761. >
  2762. <div
  2763. class="works"
  2764. style="
  2765. width: 200px;
  2766. height: 140px;
  2767. margin: 10px 10px 10px 0;
  2768. box-shadow: 0 0 6px 1px #dfdada;
  2769. "
  2770. v-for="(w, wIndex) in workStudent[toolIndex]"
  2771. :key="wIndex"
  2772. >
  2773. <div class="workImg">
  2774. <img
  2775. :src="w.works"
  2776. @click="previewImg(w.works, w)"
  2777. alt
  2778. />
  2779. <div
  2780. class="answerScore"
  2781. v-if="w.score"
  2782. @click.stop="openScore(w)"
  2783. :class="{
  2784. rightW:
  2785. w.userid == userid || tType == 1 || tType == 4
  2786. }"
  2787. >
  2788. {{ JSON.parse(w.score).wScore }}分
  2789. </div>
  2790. <div
  2791. class="answerScore"
  2792. @click.stop="openScore(w)"
  2793. v-else-if="courseDetail.userid == userid"
  2794. :class="{
  2795. rightW:
  2796. w.userid == userid || tType == 1 || tType == 4
  2797. }"
  2798. >
  2799. 评分
  2800. </div>
  2801. <img
  2802. class="deleteImg"
  2803. src="../../assets/deleteworks.png"
  2804. v-if="
  2805. w.userid == userid || tType == 1 || tType == 4
  2806. "
  2807. @click.stop="deleteWorks(w.wid)"
  2808. alt
  2809. />
  2810. </div>
  2811. <div class="worksName">
  2812. <div>{{ w.sName }}</div>
  2813. </div>
  2814. </div>
  2815. </div>
  2816. </div>
  2817. <div
  2818. v-if="
  2819. tType &&
  2820. tType == 2 &&
  2821. !sIsOpen &&
  2822. tool.tool.indexOf(7) != -1
  2823. "
  2824. class="worksBox"
  2825. >
  2826. <div
  2827. class="zuoyeYulan"
  2828. v-if="workStudent[toolIndex].length > 0"
  2829. >
  2830. <span class="worksTitle">作业预览</span>
  2831. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2832. </div>
  2833. <div
  2834. class="worksDetailBox"
  2835. v-if="workStudent[toolIndex].length > 0"
  2836. >
  2837. <div
  2838. class="works"
  2839. style="
  2840. width: 200px;
  2841. height: 140px;
  2842. margin: 10px 10px 10px 0;
  2843. box-shadow: 0 0 6px 1px #dfdada;
  2844. "
  2845. v-for="(w, wIndex) in workStudent[toolIndex]"
  2846. :key="wIndex"
  2847. >
  2848. <div class="workImg">
  2849. <img
  2850. :src="w.works"
  2851. @click="previewImg(w.works, w)"
  2852. alt
  2853. />
  2854. <div
  2855. class="answerScore"
  2856. v-if="w.score"
  2857. @click.stop="openScore(w)"
  2858. :class="{
  2859. rightW:
  2860. w.userid == userid || tType == 1 || tType == 4
  2861. }"
  2862. >
  2863. {{ JSON.parse(w.score).wScore }}分
  2864. </div>
  2865. <div
  2866. class="answerScore"
  2867. @click.stop="openScore(w)"
  2868. v-else-if="courseDetail.userid == userid"
  2869. :class="{
  2870. rightW:
  2871. w.userid == userid || tType == 1 || tType == 4
  2872. }"
  2873. >
  2874. 评分
  2875. </div>
  2876. <div
  2877. class="stuLookScore"
  2878. v-if="
  2879. w.userid == userid ||
  2880. (tType == 1 &&
  2881. courseDetail.state == 6 &&
  2882. ((chapInfoList[courseType].chapterInfo[0]
  2883. .taskJson[taskCount].eList &&
  2884. chapInfoList[courseType].chapterInfo[0]
  2885. .taskJson[taskCount].eList.length) ||
  2886. (tool.eList && tool.eList.length)))
  2887. "
  2888. >
  2889. <el-popover
  2890. placement="top"
  2891. width="318"
  2892. trigger="hover"
  2893. >
  2894. <markScore
  2895. :loading="AIloading[toolIndex][wIndex].loading"
  2896. :markScoreVisible="markScoreVisible"
  2897. :ref="`markSco${toolIndex}${wIndex}`"
  2898. @updateLoading="updateLoading"
  2899. @updateDocSco="updateDocSco"
  2900. @refreshOther="refreshOther"
  2901. @markScoreDig="markScoreDig"
  2902. :tool="tool"
  2903. :wIndex="wIndex"
  2904. :scoCon="w"
  2905. :toolIndex="toolIndex"
  2906. :key="refreshKey"
  2907. :stage="courseType"
  2908. :task="taskCount"
  2909. :scoTit="
  2910. chapInfoList[courseType].chapterInfo[0]
  2911. .taskJson[taskCount].eList
  2912. "
  2913. >
  2914. </markScore>
  2915. <div
  2916. @click="
  2917. markScoreDig2(
  2918. w.sName,
  2919. worksStudent,
  2920. w.userid,
  2921. toolIndex,
  2922. chapInfoList[courseType].chapterInfo[0]
  2923. .taskJson[taskCount].eList,
  2924. AIloading[toolIndex][wIndex].loading,
  2925. tool
  2926. )
  2927. "
  2928. slot="reference"
  2929. >
  2930. <span v-if="AIloading[toolIndex][wIndex].sco">
  2931. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2932. </span>
  2933. <span v-else>
  2934. 评分
  2935. </span>
  2936. </div>
  2937. </el-popover>
  2938. </div>
  2939. <img
  2940. class="deleteImg"
  2941. src="../../assets/deleteworks.png"
  2942. v-if="
  2943. w.userid == userid || tType == 1 || tType == 4
  2944. "
  2945. @click.stop="deleteWorks(w.wid)"
  2946. alt
  2947. />
  2948. </div>
  2949. <div class="worksName">
  2950. <div>{{ w.sName }}</div>
  2951. </div>
  2952. </div>
  2953. </div>
  2954. </div>
  2955. <div
  2956. v-if="
  2957. tType &&
  2958. tType == 2 &&
  2959. !sIsOpen &&
  2960. tool.tool.indexOf(26) != -1
  2961. "
  2962. class="worksBox"
  2963. >
  2964. <div
  2965. class="zuoyeYulan"
  2966. v-if="workStudent[toolIndex].length > 0"
  2967. >
  2968. <span class="worksTitle">作业预览</span>
  2969. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2970. </div>
  2971. <div
  2972. class="worksDetailBox"
  2973. v-if="workStudent[toolIndex].length > 0"
  2974. >
  2975. <div
  2976. class="works"
  2977. style="
  2978. width: 200px;
  2979. height: 140px;
  2980. margin: 10px 10px 10px 0;
  2981. box-shadow: 0 0 6px 1px #dfdada;
  2982. "
  2983. v-for="(w, wIndex) in workStudent[toolIndex]"
  2984. :key="wIndex"
  2985. >
  2986. <div class="workImg">
  2987. <img
  2988. :src="w.works"
  2989. @click="previewImg(w.works, w)"
  2990. alt
  2991. />
  2992. <img
  2993. class="deleteImg"
  2994. src="../../assets/deleteworks.png"
  2995. v-if="
  2996. w.userid == userid || tType == 1 || tType == 4
  2997. "
  2998. @click.stop="deleteWorks(w.wid)"
  2999. alt
  3000. />
  3001. </div>
  3002. <div class="worksName">
  3003. <div>{{ w.sName }}</div>
  3004. </div>
  3005. </div>
  3006. </div>
  3007. </div>
  3008. <div
  3009. v-if="
  3010. tType &&
  3011. ((tType == 2 && sIsOpen == true) ||
  3012. tType == 1 ||
  3013. tType == 4) &&
  3014. tool.tool.indexOf(16) != -1
  3015. "
  3016. class="worksBox"
  3017. >
  3018. <div
  3019. class="zuoyeYulan"
  3020. style="display: flex;justify-content: space-between;align-items: center;"
  3021. v-if="
  3022. (worksStudent.length &&
  3023. worksStudent[toolIndex].length > 0) ||
  3024. (courseGroup.group && courseGroup.group.length)
  3025. "
  3026. >
  3027. <div class="worksTop">
  3028. <div>作业预览</div>
  3029. <div
  3030. class="corOpen"
  3031. @click="contract(toolIndex)"
  3032. v-if="
  3033. isCloseList[toolIndex].isCloseBoolean &&
  3034. isCloseList[toolIndex].isClose == 0
  3035. "
  3036. >
  3037. 折叠
  3038. </div>
  3039. <div
  3040. class="corOpen"
  3041. @click="contract(toolIndex)"
  3042. v-if="isCloseList[toolIndex].isClose == 1"
  3043. >
  3044. 展开
  3045. </div>
  3046. </div>
  3047. <div
  3048. style="display: flex;"
  3049. v-if="
  3050. (courseDetail.userid == userid ||
  3051. (courseDetail.course_teacher &&
  3052. courseDetail.course_teacher.indexOf(userid) !=
  3053. -1)) &&
  3054. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3055. taskCount
  3056. ].eList &&
  3057. chapInfoList[courseType].chapterInfo[0].taskJson[
  3058. taskCount
  3059. ].eList.length) ||
  3060. (tool.eList && tool.eList.length)) &&
  3061. courseDetail.state == 6
  3062. "
  3063. >
  3064. <!-- <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"> -->
  3065. <div
  3066. style="margin-right:10px"
  3067. class="ScoreBtn"
  3068. @click="
  3069. resetLoopEva(
  3070. worksStudent[toolIndex],
  3071. chapInfoList[courseType].chapterInfo[0].taskJson[
  3072. taskCount
  3073. ].eList,
  3074. courseType,
  3075. taskCount,
  3076. toolIndex,
  3077. tool.toolDetail,
  3078. worksStudent
  3079. )
  3080. "
  3081. >
  3082. 一键重置
  3083. </div>
  3084. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3085. <img
  3086. src="../../assets/icon/newIcons/rootImg.png"
  3087. alt=""
  3088. />
  3089. AI评分
  3090. </div>
  3091. <div
  3092. class="ScoreBtn"
  3093. v-else-if="!loopLoading[toolIndex].loading"
  3094. @click="
  3095. loopEva(
  3096. worksStudent[toolIndex],
  3097. chapInfoList[courseType].chapterInfo[0].taskJson[
  3098. taskCount
  3099. ].eList,
  3100. courseType,
  3101. taskCount,
  3102. toolIndex,
  3103. tool.toolDetail,
  3104. chapInfoList[courseType].chapterInfo[0].taskJson[
  3105. taskCount
  3106. ].taskDetail,
  3107. tool
  3108. )
  3109. "
  3110. >
  3111. <img
  3112. src="../../assets/icon/newIcons/rootImg.png"
  3113. alt=""
  3114. />
  3115. AI评分
  3116. </div>
  3117. <div class="ScoreBtn" v-else>
  3118. <img
  3119. src="../../assets/icon/newIcons/rootImg.png"
  3120. alt=""
  3121. />
  3122. 正在评分
  3123. </div>
  3124. </div>
  3125. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3126. </div>
  3127. <div
  3128. class="group_workBox"
  3129. v-for="(g, gindex) in courseGroup.group"
  3130. :key="gindex"
  3131. >
  3132. <div class="group_box">
  3133. <div class="group_title">
  3134. <el-tooltip
  3135. class="item"
  3136. effect="light"
  3137. :content="g.name"
  3138. placement="top"
  3139. >
  3140. <div class="group_name">{{ g.name }}</div>
  3141. </el-tooltip>
  3142. </div>
  3143. <div
  3144. class="group_work"
  3145. v-if="
  3146. g.works &&
  3147. g.works.length &&
  3148. g.works[toolIndex].length
  3149. "
  3150. >
  3151. <div
  3152. class="works"
  3153. style="
  3154. width: 200px;
  3155. height: 140px;
  3156. margin: 10px 10px 10px 0;
  3157. border-radius: 15px;
  3158. box-shadow: 0 0 6px 1px #dfdada;
  3159. "
  3160. v-for="(w, wIndex) in g.works[toolIndex]"
  3161. :key="wIndex"
  3162. :class="w.type == 1 ? 'isTypeOne' : ''"
  3163. >
  3164. <div class="workImg" v-if="w.type == 0">
  3165. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3166. <img
  3167. :src="w.works"
  3168. @click="previewImg(w.works, w)"
  3169. alt
  3170. />
  3171. <div
  3172. class="answerScore"
  3173. v-if="w.score"
  3174. @click.stop="openScore(w)"
  3175. :class="{
  3176. rightW:
  3177. w.userid == userid ||
  3178. tType == 1 ||
  3179. tType == 4 ||
  3180. w.ateacher == userid
  3181. }"
  3182. >
  3183. {{ JSON.parse(w.score).wScore }}分
  3184. </div>
  3185. <div
  3186. class="answerScore"
  3187. @click.stop="openScore(w)"
  3188. v-else-if="courseDetail.userid == userid"
  3189. :class="{
  3190. rightW:
  3191. w.userid == userid ||
  3192. tType == 1 ||
  3193. tType == 4 ||
  3194. w.ateacher == userid
  3195. }"
  3196. >
  3197. 评分
  3198. </div>
  3199. <img
  3200. class="deleteImg"
  3201. src="../../assets/deleteworks.png"
  3202. v-if="
  3203. w.userid == userid || tType == 1 || tType == 4
  3204. "
  3205. @click.stop="deleteWorks(w.wid)"
  3206. alt
  3207. />
  3208. </div>
  3209. <div class="workImg" v-if="w.type == 1">
  3210. <img :src="word" @click="openFile(w.works)" alt />
  3211. <!-- @click="openFile(w.works)" -->
  3212. <div
  3213. class="answerScore"
  3214. v-if="w.score"
  3215. @click.stop="openScore(w)"
  3216. :class="{
  3217. rightW:
  3218. w.userid == userid ||
  3219. tType == 1 ||
  3220. tType == 4 ||
  3221. w.ateacher == userid
  3222. }"
  3223. >
  3224. {{ JSON.parse(w.score).wScore }}分
  3225. </div>
  3226. <div
  3227. class="answerScore"
  3228. @click.stop="openScore(w)"
  3229. v-else-if="courseDetail.userid == userid"
  3230. :class="{
  3231. rightW:
  3232. w.userid == userid ||
  3233. tType == 1 ||
  3234. tType == 4 ||
  3235. w.ateacher == userid
  3236. }"
  3237. >
  3238. 评分
  3239. </div>
  3240. <img
  3241. class="deleteImg"
  3242. src="../../assets/deleteworks.png"
  3243. v-if="
  3244. w.userid == userid || tType == 1 || tType == 4
  3245. "
  3246. @click.stop="deleteWorks(w.wid)"
  3247. alt
  3248. />
  3249. </div>
  3250. <div class="workImg" v-if="w.type == 3">
  3251. <img
  3252. style="cursor: pointer"
  3253. :src="video"
  3254. @click="openVideo(w)"
  3255. alt
  3256. />
  3257. <!-- @click="openVideo(w.works)" -->
  3258. <div
  3259. class="answerScore"
  3260. v-if="w.score"
  3261. @click.stop="openScore(w)"
  3262. :class="{
  3263. rightW:
  3264. w.userid == userid ||
  3265. tType == 1 ||
  3266. tType == 4 ||
  3267. w.ateacher == userid
  3268. }"
  3269. >
  3270. {{ JSON.parse(w.score).wScore }}分
  3271. </div>
  3272. <div
  3273. class="answerScore"
  3274. @click.stop="openScore(w)"
  3275. v-else-if="courseDetail.userid == userid"
  3276. :class="{
  3277. rightW:
  3278. w.userid == userid ||
  3279. tType == 1 ||
  3280. tType == 4 ||
  3281. w.ateacher == userid
  3282. }"
  3283. >
  3284. 评分
  3285. </div>
  3286. <img
  3287. class="deleteImg"
  3288. src="../../assets/deleteworks.png"
  3289. v-if="
  3290. w.userid == userid || tType == 1 || tType == 4
  3291. "
  3292. @click.stop="deleteWorks(w.wid)"
  3293. alt
  3294. />
  3295. </div>
  3296. <div class="workImg" v-if="w.type == 12">
  3297. <img
  3298. style="cursor: pointer"
  3299. :src="word2"
  3300. @click="downloadFile(w.works)"
  3301. alt
  3302. />
  3303. <!-- @click="openVideo(w.works)" -->
  3304. <div
  3305. class="answerScore"
  3306. v-if="w.score"
  3307. @click.stop="openScore(w)"
  3308. :class="{
  3309. rightW:
  3310. w.userid == userid ||
  3311. tType == 1 ||
  3312. tType == 4 ||
  3313. w.ateacher == userid
  3314. }"
  3315. >
  3316. {{ JSON.parse(w.score).wScore }}分
  3317. </div>
  3318. <div
  3319. class="answerScore"
  3320. @click.stop="openScore(w)"
  3321. v-else-if="courseDetail.userid == userid"
  3322. :class="{
  3323. rightW:
  3324. w.userid == userid ||
  3325. tType == 1 ||
  3326. tType == 4 ||
  3327. w.ateacher == userid
  3328. }"
  3329. >
  3330. 评分
  3331. </div>
  3332. <img
  3333. class="deleteImg"
  3334. src="../../assets/deleteworks.png"
  3335. v-if="
  3336. w.userid == userid || tType == 1 || tType == 4
  3337. "
  3338. @click.stop="deleteWorks(w.wid)"
  3339. alt
  3340. />
  3341. </div>
  3342. <div class="comment" style="min-width: 200px">
  3343. <div class="worksName">
  3344. <div>{{ w.sName }}</div>
  3345. </div>
  3346. <div class="commentList">
  3347. <div class="commentList">
  3348. <div
  3349. class="commentImg"
  3350. @click="
  3351. isLikes(
  3352. w.wid,
  3353. userid,
  3354. 1,
  3355. null,
  3356. w.isLikes,
  3357. w.sName
  3358. )
  3359. "
  3360. >
  3361. <img
  3362. :src="w.isLikes == true ? likes : noLikes"
  3363. alt=""
  3364. />
  3365. </div>
  3366. <div>{{ w.likesCount }}</div>
  3367. </div>
  3368. <div
  3369. class="commentList"
  3370. style="margin-right: 15px"
  3371. >
  3372. <div
  3373. class="commentImg"
  3374. @click="
  3375. commentOther(
  3376. w,
  3377. toolIndex,
  3378. wIndex,
  3379. null,
  3380. g.id
  3381. )
  3382. "
  3383. >
  3384. <img
  3385. src="../../assets/icon/comment/comment.png"
  3386. alt=""
  3387. />
  3388. </div>
  3389. <div>{{ w.commentCount }}</div>
  3390. </div>
  3391. </div>
  3392. </div>
  3393. </div>
  3394. </div>
  3395. <div class="group_work" v-else>暂无提交作业</div>
  3396. </div>
  3397. </div>
  3398. <div
  3399. :id="'tool-' + toolIndex"
  3400. :style="{
  3401. height:
  3402. isCloseList[toolIndex].isClose == 1
  3403. ? retrnToolHeight('tool-' + toolIndex)
  3404. : 'auto',
  3405. overflow:
  3406. isCloseList[toolIndex].isClose == 1
  3407. ? 'hidden'
  3408. : 'unset'
  3409. }"
  3410. class="worksDetailBox"
  3411. v-if="
  3412. worksStudent.length &&
  3413. worksStudent[toolIndex].length > 0
  3414. "
  3415. >
  3416. <div
  3417. class="works"
  3418. style="
  3419. width: 200px;
  3420. height: 140px;
  3421. margin: 10px 10px 10px 0;
  3422. border-radius: 15px;
  3423. box-shadow: 0 0 6px 1px #dfdada;
  3424. "
  3425. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3426. :key="wIndex"
  3427. :class="w.type == 1 ? 'isTypeOne' : ''"
  3428. >
  3429. <div class="workImg" v-if="w.type == 0">
  3430. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3431. <img
  3432. :src="w.works"
  3433. @click="previewImg(w.works, w)"
  3434. alt
  3435. />
  3436. <div
  3437. class="answerScore"
  3438. v-if="w.score"
  3439. @click.stop="openScore(w)"
  3440. :class="{
  3441. rightW:
  3442. w.userid == userid ||
  3443. tType == 1 ||
  3444. tType == 4 ||
  3445. w.ateacher == userid
  3446. }"
  3447. >
  3448. {{ JSON.parse(w.score).wScore }}分
  3449. </div>
  3450. <div
  3451. class="answerScore"
  3452. @click.stop="openScore(w)"
  3453. v-else-if="
  3454. courseDetail.userid == userid &&
  3455. courseDetail.state != 6 &&
  3456. chapInfoList[courseType].chapterInfo[0]
  3457. .taskJson[taskCount].eList &&
  3458. chapInfoList[courseType].chapterInfo[0]
  3459. .taskJson[taskCount].eList.length
  3460. "
  3461. :class="{
  3462. rightW:
  3463. w.userid == userid ||
  3464. tType == 1 ||
  3465. tType == 4 ||
  3466. w.ateacher == userid
  3467. }"
  3468. >
  3469. 评分
  3470. </div>
  3471. <!-- <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"> -->
  3472. <div
  3473. v-else-if="
  3474. (courseDetail.userid == userid ||
  3475. (courseDetail.course_teacher &&
  3476. courseDetail.course_teacher.indexOf(userid) !=
  3477. -1) ||
  3478. (w.userid == userid && sIsOpen)) &&
  3479. courseDetail.state == 6 &&
  3480. ((chapInfoList[courseType].chapterInfo[0]
  3481. .taskJson[taskCount].eList &&
  3482. chapInfoList[courseType].chapterInfo[0]
  3483. .taskJson[taskCount].eList.length) ||
  3484. (tool.eList && tool.eList.length))
  3485. "
  3486. >
  3487. <el-popover
  3488. placement="top"
  3489. width="318"
  3490. :disabled="AIloading[toolIndex][wIndex].loading"
  3491. trigger="hover"
  3492. >
  3493. <markScore
  3494. :loading="AIloading[toolIndex][wIndex].loading"
  3495. :markScoreVisible="markScoreVisible"
  3496. :ref="`markSco${toolIndex}${wIndex}`"
  3497. @updateLoading="updateLoading"
  3498. @updateDocSco="updateDocSco"
  3499. @refreshOther="refreshOther"
  3500. @markScoreDig="markScoreDig"
  3501. :tool="tool"
  3502. :wIndex="wIndex"
  3503. :scoCon="w"
  3504. :toolIndex="toolIndex"
  3505. :key="refreshKey"
  3506. :stage="courseType"
  3507. :task="taskCount"
  3508. :scoTit="
  3509. chapInfoList[courseType].chapterInfo[0]
  3510. .taskJson[taskCount].eList
  3511. "
  3512. >
  3513. </markScore>
  3514. <div
  3515. class="answerScore"
  3516. @click="
  3517. markScoreDig2(
  3518. w.sName,
  3519. worksStudent,
  3520. w.userid,
  3521. toolIndex,
  3522. chapInfoList[courseType].chapterInfo[0]
  3523. .taskJson[taskCount].eList,
  3524. AIloading[toolIndex][wIndex].loading,
  3525. tool
  3526. )
  3527. "
  3528. slot="reference"
  3529. :class="{
  3530. rightW:
  3531. w.userid == userid ||
  3532. tType == 1 ||
  3533. tType == 4 ||
  3534. w.ateacher == userid
  3535. }"
  3536. >
  3537. <span v-if="AIloading[toolIndex][wIndex].sco">
  3538. {{
  3539. AIloading[toolIndex][wIndex].loading
  3540. ? "评分中"
  3541. : AIloading[toolIndex][wIndex].sco + "分"
  3542. }}
  3543. </span>
  3544. <span v-else>
  3545. {{
  3546. AIloading[toolIndex][wIndex].loading
  3547. ? "评分中"
  3548. : "评分"
  3549. }}
  3550. </span>
  3551. </div>
  3552. </el-popover>
  3553. </div>
  3554. <img
  3555. class="deleteImg"
  3556. src="../../assets/deleteworks.png"
  3557. v-if="
  3558. w.userid == userid || tType == 1 || tType == 4
  3559. "
  3560. @click.stop="deleteWorks(w.wid)"
  3561. alt
  3562. />
  3563. </div>
  3564. <div class="workImg" v-if="w.type == 1">
  3565. <img :src="word" @click="openFile(w.works)" alt />
  3566. <!-- @click="openFile(w.works)" -->
  3567. <div
  3568. class="answerScore"
  3569. v-if="w.score"
  3570. @click.stop="openScore(w)"
  3571. :class="{
  3572. rightW:
  3573. w.userid == userid ||
  3574. tType == 1 ||
  3575. tType == 4 ||
  3576. w.ateacher == userid
  3577. }"
  3578. >
  3579. {{ JSON.parse(w.score).wScore }}分
  3580. </div>
  3581. <div
  3582. class="answerScore"
  3583. @click.stop="openScore(w)"
  3584. v-else-if="
  3585. courseDetail.userid == userid &&
  3586. courseDetail.state != 6 &&
  3587. chapInfoList[courseType].chapterInfo[0]
  3588. .taskJson[taskCount].eList &&
  3589. chapInfoList[courseType].chapterInfo[0]
  3590. .taskJson[taskCount].eList.length
  3591. "
  3592. :class="{
  3593. rightW:
  3594. w.userid == userid ||
  3595. tType == 1 ||
  3596. tType == 4 ||
  3597. w.ateacher == userid
  3598. }"
  3599. >
  3600. 评分
  3601. </div>
  3602. <!-- <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"> -->
  3603. <div
  3604. v-else-if="
  3605. (courseDetail.userid == userid ||
  3606. (courseDetail.course_teacher &&
  3607. courseDetail.course_teacher.indexOf(userid) !=
  3608. -1) ||
  3609. (w.userid == userid && sIsOpen)) &&
  3610. courseDetail.state == 6 &&
  3611. ((chapInfoList[courseType].chapterInfo[0]
  3612. .taskJson[taskCount].eList &&
  3613. chapInfoList[courseType].chapterInfo[0]
  3614. .taskJson[taskCount].eList.length) ||
  3615. (tool.eList && tool.eList.length))
  3616. "
  3617. >
  3618. <el-popover
  3619. placement="top"
  3620. width="318"
  3621. :disabled="AIloading[toolIndex][wIndex].loading"
  3622. trigger="hover"
  3623. >
  3624. <markScore
  3625. :loading="AIloading[toolIndex][wIndex].loading"
  3626. :markScoreVisible="markScoreVisible"
  3627. :ref="`markSco${toolIndex}${wIndex}`"
  3628. @updateLoading="updateLoading"
  3629. @updateDocSco="updateDocSco"
  3630. @refreshOther="refreshOther"
  3631. @markScoreDig="markScoreDig"
  3632. :tool="tool"
  3633. :wIndex="wIndex"
  3634. :scoCon="w"
  3635. :toolIndex="toolIndex"
  3636. :key="refreshKey"
  3637. :stage="courseType"
  3638. :task="taskCount"
  3639. :scoTit="
  3640. chapInfoList[courseType].chapterInfo[0]
  3641. .taskJson[taskCount].eList
  3642. "
  3643. >
  3644. </markScore>
  3645. <div
  3646. class="answerScore"
  3647. @click="
  3648. markScoreDig2(
  3649. w.sName,
  3650. worksStudent,
  3651. w.userid,
  3652. toolIndex,
  3653. chapInfoList[courseType].chapterInfo[0]
  3654. .taskJson[taskCount].eList,
  3655. AIloading[toolIndex][wIndex].loading,
  3656. tool
  3657. )
  3658. "
  3659. slot="reference"
  3660. :class="{
  3661. rightW:
  3662. w.userid == userid ||
  3663. tType == 1 ||
  3664. tType == 4 ||
  3665. w.ateacher == userid
  3666. }"
  3667. >
  3668. <span v-if="AIloading[toolIndex][wIndex].sco">
  3669. {{
  3670. AIloading[toolIndex][wIndex].loading
  3671. ? "评分中"
  3672. : AIloading[toolIndex][wIndex].sco + "分"
  3673. }}
  3674. </span>
  3675. <span v-else>
  3676. {{
  3677. AIloading[toolIndex][wIndex].loading
  3678. ? "评分中"
  3679. : "评分"
  3680. }}
  3681. </span>
  3682. </div>
  3683. </el-popover>
  3684. </div>
  3685. <img
  3686. class="deleteImg"
  3687. src="../../assets/deleteworks.png"
  3688. v-if="
  3689. w.userid == userid || tType == 1 || tType == 4
  3690. "
  3691. @click.stop="deleteWorks(w.wid)"
  3692. alt
  3693. />
  3694. </div>
  3695. <div class="workImg" v-if="w.type == 3">
  3696. <img
  3697. style="cursor: pointer"
  3698. :src="video"
  3699. @click="openVideo(w)"
  3700. alt
  3701. />
  3702. <!-- @click="openVideo(w.works)" -->
  3703. <div
  3704. class="answerScore"
  3705. v-if="w.score"
  3706. @click.stop="openScore(w)"
  3707. :class="{
  3708. rightW:
  3709. w.userid == userid ||
  3710. tType == 1 ||
  3711. tType == 4 ||
  3712. w.ateacher == userid
  3713. }"
  3714. >
  3715. {{ JSON.parse(w.score).wScore }}分
  3716. </div>
  3717. <div
  3718. class="answerScore"
  3719. @click.stop="openScore(w)"
  3720. v-else-if="
  3721. courseDetail.userid == userid &&
  3722. courseDetail.state != 6 &&
  3723. chapInfoList[courseType].chapterInfo[0]
  3724. .taskJson[taskCount].eList &&
  3725. chapInfoList[courseType].chapterInfo[0]
  3726. .taskJson[taskCount].eList.length
  3727. "
  3728. :class="{
  3729. rightW:
  3730. w.userid == userid ||
  3731. tType == 1 ||
  3732. tType == 4 ||
  3733. w.ateacher == userid
  3734. }"
  3735. >
  3736. 评分
  3737. </div>
  3738. <!-- <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"> -->
  3739. <div
  3740. v-else-if="
  3741. (courseDetail.userid == userid ||
  3742. (courseDetail.course_teacher &&
  3743. courseDetail.course_teacher.indexOf(userid) !=
  3744. -1) ||
  3745. (w.userid == userid && sIsOpen)) &&
  3746. courseDetail.state == 6 &&
  3747. ((chapInfoList[courseType].chapterInfo[0]
  3748. .taskJson[taskCount].eList &&
  3749. chapInfoList[courseType].chapterInfo[0]
  3750. .taskJson[taskCount].eList.length) ||
  3751. (tool.eList && tool.eList.length))
  3752. "
  3753. >
  3754. <el-popover
  3755. placement="top"
  3756. width="318"
  3757. :disabled="AIloading[toolIndex][wIndex].loading"
  3758. trigger="hover"
  3759. >
  3760. <markScore
  3761. :loading="AIloading[toolIndex][wIndex].loading"
  3762. :markScoreVisible="markScoreVisible"
  3763. :ref="`markSco${toolIndex}${wIndex}`"
  3764. @updateLoading="updateLoading"
  3765. @updateDocSco="updateDocSco"
  3766. @refreshOther="refreshOther"
  3767. @markScoreDig="markScoreDig"
  3768. :tool="tool"
  3769. :wIndex="wIndex"
  3770. :scoCon="w"
  3771. :toolIndex="toolIndex"
  3772. :key="refreshKey"
  3773. :stage="courseType"
  3774. :task="taskCount"
  3775. :scoTit="
  3776. chapInfoList[courseType].chapterInfo[0]
  3777. .taskJson[taskCount].eList
  3778. "
  3779. >
  3780. </markScore>
  3781. <div
  3782. class="answerScore"
  3783. @click="
  3784. markScoreDig2(
  3785. w.sName,
  3786. worksStudent,
  3787. w.userid,
  3788. toolIndex,
  3789. chapInfoList[courseType].chapterInfo[0]
  3790. .taskJson[taskCount].eList,
  3791. AIloading[toolIndex][wIndex].loading,
  3792. tool
  3793. )
  3794. "
  3795. slot="reference"
  3796. :class="{
  3797. rightW:
  3798. w.userid == userid ||
  3799. tType == 1 ||
  3800. tType == 4 ||
  3801. w.ateacher == userid
  3802. }"
  3803. >
  3804. <span v-if="AIloading[toolIndex][wIndex].sco">
  3805. {{
  3806. AIloading[toolIndex][wIndex].loading
  3807. ? "评分中"
  3808. : AIloading[toolIndex][wIndex].sco + "分"
  3809. }}
  3810. </span>
  3811. <span v-else>
  3812. {{
  3813. AIloading[toolIndex][wIndex].loading
  3814. ? "评分中"
  3815. : "评分"
  3816. }}
  3817. </span>
  3818. </div>
  3819. </el-popover>
  3820. </div>
  3821. <img
  3822. class="deleteImg"
  3823. src="../../assets/deleteworks.png"
  3824. v-if="
  3825. w.userid == userid || tType == 1 || tType == 4
  3826. "
  3827. @click.stop="deleteWorks(w.wid)"
  3828. alt
  3829. />
  3830. </div>
  3831. <div class="workImg" v-if="w.type == 12">
  3832. <img
  3833. style="cursor: pointer"
  3834. :src="word2"
  3835. @click="downloadFile(w.works)"
  3836. alt
  3837. />
  3838. <!-- @click="openVideo(w.works)" -->
  3839. <div
  3840. class="answerScore"
  3841. v-if="w.score"
  3842. @click.stop="openScore(w)"
  3843. :class="{
  3844. rightW:
  3845. w.userid == userid ||
  3846. tType == 1 ||
  3847. tType == 4 ||
  3848. w.ateacher == userid
  3849. }"
  3850. >
  3851. {{ JSON.parse(w.score).wScore }}分
  3852. </div>
  3853. <div
  3854. class="answerScore"
  3855. @click.stop="openScore(w)"
  3856. v-else-if="
  3857. courseDetail.userid == userid &&
  3858. courseDetail.state != 6 &&
  3859. chapInfoList[courseType].chapterInfo[0]
  3860. .taskJson[taskCount].eList &&
  3861. chapInfoList[courseType].chapterInfo[0]
  3862. .taskJson[taskCount].eList.length
  3863. "
  3864. :class="{
  3865. rightW:
  3866. w.userid == userid ||
  3867. tType == 1 ||
  3868. tType == 4 ||
  3869. w.ateacher == userid
  3870. }"
  3871. >
  3872. 评分
  3873. </div>
  3874. <!-- <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"> -->
  3875. <div
  3876. v-else-if="
  3877. (courseDetail.userid == userid ||
  3878. (courseDetail.course_teacher &&
  3879. courseDetail.course_teacher.indexOf(userid) !=
  3880. -1) ||
  3881. (w.userid == userid && sIsOpen)) &&
  3882. courseDetail.state == 6 &&
  3883. ((chapInfoList[courseType].chapterInfo[0]
  3884. .taskJson[taskCount].eList &&
  3885. chapInfoList[courseType].chapterInfo[0]
  3886. .taskJson[taskCount].eList.length) ||
  3887. (tool.eList && tool.eList.length))
  3888. "
  3889. >
  3890. <el-popover
  3891. placement="top"
  3892. width="318"
  3893. :disabled="AIloading[toolIndex][wIndex].loading"
  3894. trigger="hover"
  3895. >
  3896. <markScore
  3897. :loading="AIloading[toolIndex][wIndex].loading"
  3898. :markScoreVisible="markScoreVisible"
  3899. :ref="`markSco${toolIndex}${wIndex}`"
  3900. @updateLoading="updateLoading"
  3901. @updateDocSco="updateDocSco"
  3902. @refreshOther="refreshOther"
  3903. @markScoreDig="markScoreDig"
  3904. :tool="tool"
  3905. :wIndex="wIndex"
  3906. :scoCon="w"
  3907. :toolIndex="toolIndex"
  3908. :key="refreshKey"
  3909. :stage="courseType"
  3910. :task="taskCount"
  3911. :scoTit="
  3912. chapInfoList[courseType].chapterInfo[0]
  3913. .taskJson[taskCount].eList
  3914. "
  3915. >
  3916. </markScore>
  3917. <div
  3918. class="answerScore"
  3919. @click="
  3920. markScoreDig2(
  3921. w.sName,
  3922. worksStudent,
  3923. w.userid,
  3924. toolIndex,
  3925. chapInfoList[courseType].chapterInfo[0]
  3926. .taskJson[taskCount].eList,
  3927. AIloading[toolIndex][wIndex].loading,
  3928. tool
  3929. )
  3930. "
  3931. slot="reference"
  3932. :class="{
  3933. rightW:
  3934. w.userid == userid ||
  3935. tType == 1 ||
  3936. tType == 4 ||
  3937. w.ateacher == userid
  3938. }"
  3939. >
  3940. <span v-if="AIloading[toolIndex][wIndex].sco">
  3941. {{
  3942. AIloading[toolIndex][wIndex].loading
  3943. ? "评分中"
  3944. : AIloading[toolIndex][wIndex].sco + "分"
  3945. }}
  3946. </span>
  3947. <span v-else>
  3948. {{
  3949. AIloading[toolIndex][wIndex].loading
  3950. ? "评分中"
  3951. : "评分"
  3952. }}
  3953. </span>
  3954. </div>
  3955. </el-popover>
  3956. </div>
  3957. <img
  3958. class="deleteImg"
  3959. src="../../assets/deleteworks.png"
  3960. v-if="
  3961. w.userid == userid || tType == 1 || tType == 4
  3962. "
  3963. @click.stop="deleteWorks(w.wid)"
  3964. alt
  3965. />
  3966. </div>
  3967. <div class="comment" style="min-width: 200px">
  3968. <div class="worksName">
  3969. <div>{{ w.sName }}</div>
  3970. </div>
  3971. <div class="commentList">
  3972. <div class="commentList">
  3973. <div
  3974. class="commentImg"
  3975. @click="
  3976. isLikes(
  3977. w.wid,
  3978. userid,
  3979. 1,
  3980. null,
  3981. w.isLikes,
  3982. w.sName
  3983. )
  3984. "
  3985. >
  3986. <img
  3987. :src="w.isLikes == true ? likes : noLikes"
  3988. alt=""
  3989. />
  3990. </div>
  3991. <div>{{ w.likesCount }}</div>
  3992. </div>
  3993. <div class="commentList" style="margin-right: 15px">
  3994. <div
  3995. class="commentImg"
  3996. @click="commentOther(w, toolIndex, wIndex)"
  3997. >
  3998. <img
  3999. src="../../assets/icon/comment/comment.png"
  4000. alt=""
  4001. />
  4002. </div>
  4003. <div>{{ w.commentCount }}</div>
  4004. </div>
  4005. </div>
  4006. </div>
  4007. </div>
  4008. </div>
  4009. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4010. 未提交
  4011. </div>
  4012. <div
  4013. class="noWorksS"
  4014. v-if="noWorksS && noWorksS[toolIndex].length"
  4015. >
  4016. <div
  4017. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4018. :key="sIndex"
  4019. class="noWorksName"
  4020. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4021. >
  4022. <el-tooltip
  4023. effect="dark"
  4024. :content="s.student"
  4025. placement="top"
  4026. >
  4027. <span>{{ s.student }}</span>
  4028. </el-tooltip>
  4029. </div>
  4030. </div>
  4031. </div>
  4032. <div
  4033. v-if="
  4034. tType &&
  4035. ((tType == 2 && sIsOpen == true) ||
  4036. tType == 1 ||
  4037. tType == 4) &&
  4038. tool.tool.indexOf(70) != -1
  4039. "
  4040. class="worksBox"
  4041. >
  4042. <div
  4043. class="zuoyeYulan"
  4044. v-if="
  4045. worksStudent.length &&
  4046. worksStudent[toolIndex].length > 0
  4047. "
  4048. >
  4049. <div class="worksTop">
  4050. <div>作业预览</div>
  4051. <div
  4052. class="corOpen"
  4053. @click="contract(toolIndex)"
  4054. v-if="
  4055. isCloseList[toolIndex].isCloseBoolean &&
  4056. isCloseList[toolIndex].isClose == 0
  4057. "
  4058. >
  4059. 折叠
  4060. </div>
  4061. <div
  4062. class="corOpen"
  4063. @click="contract(toolIndex)"
  4064. v-if="isCloseList[toolIndex].isClose == 1"
  4065. >
  4066. 展开
  4067. </div>
  4068. </div>
  4069. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4070. </div>
  4071. <div
  4072. :id="'tool-' + toolIndex"
  4073. :style="{
  4074. height:
  4075. isCloseList[toolIndex].isClose == 1
  4076. ? retrnToolHeight('tool-' + toolIndex)
  4077. : 'auto',
  4078. overflow:
  4079. isCloseList[toolIndex].isClose == 1
  4080. ? 'hidden'
  4081. : 'unset'
  4082. }"
  4083. class="worksDetailBox"
  4084. v-if="
  4085. worksStudent.length &&
  4086. worksStudent[toolIndex].length > 0
  4087. "
  4088. >
  4089. <div
  4090. class="works"
  4091. style="
  4092. width: 200px;
  4093. height: 140px;
  4094. margin: 10px 10px 10px 0;
  4095. border-radius: 15px;
  4096. box-shadow: 0 0 6px 1px #dfdada;
  4097. "
  4098. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4099. :key="wIndex"
  4100. :class="w.type == 1 ? 'isTypeOne' : ''"
  4101. >
  4102. <div
  4103. class="workImg"
  4104. @click.stop="openScore(w, toolIndex)"
  4105. >
  4106. <img :src="word" alt />
  4107. <img
  4108. class="deleteImg"
  4109. src="../../assets/deleteworks.png"
  4110. v-if="
  4111. w.userid == userid || tType == 1 || tType == 4
  4112. "
  4113. @click.stop="deleteWorks(w.wid)"
  4114. alt
  4115. />
  4116. </div>
  4117. <div class="comment" style="min-width: 200px">
  4118. <div class="worksName">
  4119. <div>{{ w.sName }}</div>
  4120. </div>
  4121. </div>
  4122. </div>
  4123. </div>
  4124. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4125. 未提交
  4126. </div>
  4127. <div
  4128. class="noWorksS"
  4129. v-if="noWorksS && noWorksS[toolIndex].length"
  4130. >
  4131. <div
  4132. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4133. :key="sIndex"
  4134. class="noWorksName"
  4135. >
  4136. <el-tooltip
  4137. effect="dark"
  4138. :content="s.student"
  4139. placement="top"
  4140. >
  4141. <span>{{ s.student }}</span>
  4142. </el-tooltip>
  4143. </div>
  4144. </div>
  4145. </div>
  4146. <div
  4147. v-if="
  4148. tType &&
  4149. tType == 2 &&
  4150. !sIsOpen &&
  4151. tool.tool.indexOf(70) != -1
  4152. "
  4153. class="worksBox"
  4154. >
  4155. <div
  4156. class="zuoyeYulan"
  4157. v-if="workStudent[toolIndex].length > 0"
  4158. >
  4159. <span class="worksTitle">作业预览</span>
  4160. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4161. </div>
  4162. <div
  4163. class="worksDetailBox"
  4164. v-if="workStudent[toolIndex].length > 0"
  4165. >
  4166. <div
  4167. class="works"
  4168. style="
  4169. width: 200px;
  4170. height: 140px;
  4171. margin: 10px 10px 10px 0;
  4172. box-shadow: 0 0 6px 1px #dfdada;
  4173. "
  4174. v-for="(w, wIndex) in workStudent[toolIndex]"
  4175. :key="wIndex"
  4176. >
  4177. <div
  4178. class="workImg"
  4179. @click.stop="openScore(w, toolIndex)"
  4180. >
  4181. <img :src="word" alt />
  4182. <img
  4183. class="deleteImg"
  4184. src="../../assets/deleteworks.png"
  4185. v-if="
  4186. w.userid == userid || tType == 1 || tType == 4
  4187. "
  4188. @click.stop="deleteWorks(w.wid)"
  4189. alt
  4190. />
  4191. </div>
  4192. <div class="worksName">
  4193. <div>{{ w.sName }}</div>
  4194. </div>
  4195. </div>
  4196. </div>
  4197. </div>
  4198. <div
  4199. v-if="
  4200. tType &&
  4201. ((tType == 2 && sIsOpen == true) ||
  4202. tType == 1 ||
  4203. tType == 4) &&
  4204. tool.tool.indexOf(32) != -1
  4205. "
  4206. class="worksBox"
  4207. >
  4208. <div
  4209. class="zuoyeYulan"
  4210. v-if="
  4211. worksStudent.length &&
  4212. worksStudent[toolIndex].length > 0
  4213. "
  4214. >
  4215. <div class="worksTop">
  4216. <div>作业预览</div>
  4217. <div
  4218. class="corOpen"
  4219. @click="contract(toolIndex)"
  4220. v-if="
  4221. isCloseList[toolIndex].isCloseBoolean &&
  4222. isCloseList[toolIndex].isClose == 0
  4223. "
  4224. >
  4225. 折叠
  4226. </div>
  4227. <div
  4228. class="corOpen"
  4229. @click="contract(toolIndex)"
  4230. v-if="isCloseList[toolIndex].isClose == 1"
  4231. >
  4232. 展开
  4233. </div>
  4234. </div>
  4235. </div>
  4236. <div
  4237. :id="'tool-' + toolIndex"
  4238. :style="{
  4239. height:
  4240. isCloseList[toolIndex].isClose == 1
  4241. ? retrnToolHeight('tool-' + toolIndex)
  4242. : 'auto',
  4243. overflow:
  4244. isCloseList[toolIndex].isClose == 1
  4245. ? 'hidden'
  4246. : 'unset'
  4247. }"
  4248. class="worksDetailBox"
  4249. v-if="
  4250. worksStudent.length &&
  4251. worksStudent[toolIndex].length > 0
  4252. "
  4253. >
  4254. <div
  4255. class="works"
  4256. style="
  4257. width: 200px;
  4258. height: 140px;
  4259. margin: 10px 10px 10px 0;
  4260. border-radius: 15px;
  4261. box-shadow: 0 0 6px 1px #dfdada;
  4262. "
  4263. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4264. :key="wIndex"
  4265. :class="w.type == 1 ? 'isTypeOne' : ''"
  4266. >
  4267. <div class="workImg">
  4268. <img
  4269. :src="word2"
  4270. @click="downloadFile(w.works)"
  4271. alt
  4272. />
  4273. <div
  4274. class="answerScore"
  4275. v-if="w.score"
  4276. @click.stop="openScore(w)"
  4277. :class="{
  4278. rightW:
  4279. w.userid == userid ||
  4280. tType == 1 ||
  4281. tType == 4 ||
  4282. w.ateacher == userid
  4283. }"
  4284. >
  4285. {{ JSON.parse(w.score).wScore }}分
  4286. </div>
  4287. <div
  4288. class="answerScore"
  4289. @click.stop="openScore(w)"
  4290. v-else-if="courseDetail.userid == userid"
  4291. :class="{
  4292. rightW:
  4293. w.userid == userid ||
  4294. tType == 1 ||
  4295. tType == 4 ||
  4296. w.ateacher == userid
  4297. }"
  4298. >
  4299. 评分
  4300. </div>
  4301. <img
  4302. class="deleteImg"
  4303. src="../../assets/deleteworks.png"
  4304. v-if="
  4305. w.userid == userid || tType == 1 || tType == 4
  4306. "
  4307. @click.stop="deleteWorks(w.wid)"
  4308. alt
  4309. />
  4310. </div>
  4311. <div class="comment" style="min-width: 200px">
  4312. <div class="worksName">
  4313. <div>{{ w.sName }}</div>
  4314. </div>
  4315. <div class="commentList">
  4316. <div class="commentList">
  4317. <div
  4318. class="commentImg"
  4319. @click="
  4320. isLikes(
  4321. w.wid,
  4322. userid,
  4323. 1,
  4324. null,
  4325. w.isLikes,
  4326. w.sName
  4327. )
  4328. "
  4329. >
  4330. <img
  4331. :src="w.isLikes == true ? likes : noLikes"
  4332. alt=""
  4333. />
  4334. </div>
  4335. <div>{{ w.likesCount }}</div>
  4336. </div>
  4337. <div class="commentList" style="margin-right: 15px">
  4338. <div
  4339. class="commentImg"
  4340. @click="commentOther(w, toolIndex, wIndex)"
  4341. >
  4342. <img
  4343. src="../../assets/icon/comment/comment.png"
  4344. alt=""
  4345. />
  4346. </div>
  4347. <div>{{ w.commentCount }}</div>
  4348. </div>
  4349. </div>
  4350. </div>
  4351. </div>
  4352. </div>
  4353. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4354. 未提交
  4355. </div>
  4356. <div
  4357. class="noWorksS"
  4358. v-if="noWorksS && noWorksS[toolIndex].length"
  4359. >
  4360. <div
  4361. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4362. :key="sIndex"
  4363. class="noWorksName"
  4364. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4365. >
  4366. <el-tooltip
  4367. effect="dark"
  4368. :content="s.student"
  4369. placement="top"
  4370. >
  4371. <span>{{ s.student }}</span>
  4372. </el-tooltip>
  4373. </div>
  4374. </div>
  4375. </div>
  4376. <div
  4377. v-if="
  4378. tType &&
  4379. ((tType == 2 && sIsOpen == true) ||
  4380. tType == 1 ||
  4381. tType == 4) &&
  4382. tool.tool.indexOf(57) != -1
  4383. "
  4384. class="worksBox"
  4385. >
  4386. <div
  4387. class="zuoyeYulan"
  4388. v-if="
  4389. worksStudent.length &&
  4390. worksStudent[toolIndex].length > 0
  4391. "
  4392. >
  4393. <div class="worksTop">
  4394. <div>作业预览</div>
  4395. <div
  4396. class="corOpen"
  4397. @click="contract(toolIndex)"
  4398. v-if="
  4399. isCloseList[toolIndex].isCloseBoolean &&
  4400. isCloseList[toolIndex].isClose == 0
  4401. "
  4402. >
  4403. 折叠
  4404. </div>
  4405. <div
  4406. class="corOpen"
  4407. @click="contract(toolIndex)"
  4408. v-if="isCloseList[toolIndex].isClose == 1"
  4409. >
  4410. 展开
  4411. </div>
  4412. </div>
  4413. </div>
  4414. <div
  4415. :id="'tool-' + toolIndex"
  4416. :style="{
  4417. height:
  4418. isCloseList[toolIndex].isClose == 1
  4419. ? retrnToolHeight('tool-' + toolIndex)
  4420. : 'auto',
  4421. overflow:
  4422. isCloseList[toolIndex].isClose == 1
  4423. ? 'hidden'
  4424. : 'unset'
  4425. }"
  4426. class="worksDetailBox"
  4427. v-if="
  4428. worksStudent.length &&
  4429. worksStudent[toolIndex].length > 0
  4430. "
  4431. >
  4432. <div
  4433. class="works"
  4434. style="
  4435. width: 200px;
  4436. height: 140px;
  4437. margin: 10px 10px 10px 0;
  4438. border-radius: 15px;
  4439. box-shadow: 0 0 6px 1px #dfdada;
  4440. "
  4441. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4442. :key="wIndex"
  4443. :class="w.type == 1 ? 'isTypeOne' : ''"
  4444. >
  4445. <div class="workImg">
  4446. <img
  4447. :src="word2"
  4448. @click="downloadFile(w.works)"
  4449. v-if="w.type == 12"
  4450. alt
  4451. />
  4452. <img
  4453. :src="word2"
  4454. @click="
  4455. openCocoPi(57, toolIndex, w.userid, w.sName)
  4456. "
  4457. v-else-if="w.type == 15"
  4458. alt
  4459. />
  4460. <div
  4461. class="answerScore"
  4462. v-if="w.score"
  4463. @click.stop="openScore(w)"
  4464. :class="{
  4465. rightW:
  4466. w.userid == userid ||
  4467. tType == 1 ||
  4468. tType == 4 ||
  4469. w.ateacher == userid
  4470. }"
  4471. >
  4472. {{ JSON.parse(w.score).wScore }}分
  4473. </div>
  4474. <div
  4475. class="answerScore"
  4476. @click.stop="openScore(w)"
  4477. v-else-if="
  4478. courseDetail.userid == userid &&
  4479. courseDetail.state != 6 &&
  4480. chapInfoList[courseType].chapterInfo[0]
  4481. .taskJson[taskCount].eList &&
  4482. chapInfoList[courseType].chapterInfo[0]
  4483. .taskJson[taskCount].eList.length
  4484. "
  4485. :class="{
  4486. rightW:
  4487. w.userid == userid ||
  4488. tType == 1 ||
  4489. tType == 4 ||
  4490. w.ateacher == userid
  4491. }"
  4492. >
  4493. 评分
  4494. </div>
  4495. <!-- <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"> -->
  4496. <div
  4497. v-else-if="
  4498. (courseDetail.userid == userid ||
  4499. (courseDetail.course_teacher &&
  4500. courseDetail.course_teacher.indexOf(userid) !=
  4501. -1) ||
  4502. (w.userid == userid && sIsOpen)) &&
  4503. courseDetail.state == 6 &&
  4504. ((chapInfoList[courseType].chapterInfo[0]
  4505. .taskJson[taskCount].eList &&
  4506. chapInfoList[courseType].chapterInfo[0]
  4507. .taskJson[taskCount].eList.length) ||
  4508. (tool.eList && tool.eList.length))
  4509. "
  4510. >
  4511. <el-popover
  4512. placement="top"
  4513. width="318"
  4514. :disabled="AIloading[toolIndex][wIndex].loading"
  4515. trigger="hover"
  4516. >
  4517. <markScore
  4518. :loading="AIloading[toolIndex][wIndex].loading"
  4519. :markScoreVisible="markScoreVisible"
  4520. :ref="`markSco${toolIndex}${wIndex}`"
  4521. @updateLoading="updateLoading"
  4522. @updateDocSco="updateDocSco"
  4523. @refreshOther="refreshOther"
  4524. @markScoreDig="markScoreDig"
  4525. :tool="tool"
  4526. :wIndex="wIndex"
  4527. :scoCon="w"
  4528. :toolIndex="toolIndex"
  4529. :key="refreshKey"
  4530. :stage="courseType"
  4531. :task="taskCount"
  4532. :scoTit="
  4533. chapInfoList[courseType].chapterInfo[0]
  4534. .taskJson[taskCount].eList
  4535. "
  4536. >
  4537. </markScore>
  4538. <div
  4539. class="answerScore"
  4540. @click="
  4541. markScoreDig2(
  4542. w.sName,
  4543. worksStudent,
  4544. w.userid,
  4545. toolIndex,
  4546. chapInfoList[courseType].chapterInfo[0]
  4547. .taskJson[taskCount].eList,
  4548. AIloading[toolIndex][wIndex].loading,
  4549. tool
  4550. )
  4551. "
  4552. slot="reference"
  4553. :class="{
  4554. rightW:
  4555. w.userid == userid ||
  4556. tType == 1 ||
  4557. tType == 4 ||
  4558. w.ateacher == userid
  4559. }"
  4560. >
  4561. <span v-if="AIloading[toolIndex][wIndex].sco">
  4562. {{
  4563. AIloading[toolIndex][wIndex].loading
  4564. ? "评分中"
  4565. : AIloading[toolIndex][wIndex].sco + "分"
  4566. }}
  4567. </span>
  4568. <span v-else>
  4569. {{
  4570. AIloading[toolIndex][wIndex].loading
  4571. ? "评分中"
  4572. : "评分"
  4573. }}
  4574. </span>
  4575. </div>
  4576. </el-popover>
  4577. </div>
  4578. <img
  4579. class="deleteImg"
  4580. src="../../assets/deleteworks.png"
  4581. v-if="
  4582. w.userid == userid || tType == 1 || tType == 4
  4583. "
  4584. @click.stop="deleteWorks(w.wid)"
  4585. alt
  4586. />
  4587. </div>
  4588. <div class="comment" style="min-width: 200px">
  4589. <div class="worksName">
  4590. <div>{{ w.sName }}</div>
  4591. </div>
  4592. <div class="commentList">
  4593. <div class="commentList">
  4594. <div
  4595. class="commentImg"
  4596. @click="
  4597. isLikes(
  4598. w.wid,
  4599. userid,
  4600. 1,
  4601. null,
  4602. w.isLikes,
  4603. w.sName
  4604. )
  4605. "
  4606. >
  4607. <img
  4608. :src="w.isLikes == true ? likes : noLikes"
  4609. alt=""
  4610. />
  4611. </div>
  4612. <div>{{ w.likesCount }}</div>
  4613. </div>
  4614. <div class="commentList" style="margin-right: 15px">
  4615. <div
  4616. class="commentImg"
  4617. @click="commentOther(w, toolIndex, wIndex)"
  4618. >
  4619. <img
  4620. src="../../assets/icon/comment/comment.png"
  4621. alt=""
  4622. />
  4623. </div>
  4624. <div>{{ w.commentCount }}</div>
  4625. </div>
  4626. </div>
  4627. </div>
  4628. </div>
  4629. </div>
  4630. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4631. 未提交
  4632. </div>
  4633. <div
  4634. class="noWorksS"
  4635. v-if="noWorksS && noWorksS[toolIndex].length"
  4636. >
  4637. <div
  4638. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4639. :key="sIndex"
  4640. class="noWorksName"
  4641. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4642. >
  4643. <el-tooltip
  4644. effect="dark"
  4645. :content="s.student"
  4646. placement="top"
  4647. >
  4648. <span>{{ s.student }}</span>
  4649. </el-tooltip>
  4650. </div>
  4651. </div>
  4652. </div>
  4653. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4654. <div
  4655. style="display: flex;justify-content: space-between;align-items: center;"
  4656. >
  4657. <div
  4658. class="zuoyeYulan"
  4659. v-if="
  4660. worksStudent.length &&
  4661. worksStudent[toolIndex].length > 0
  4662. "
  4663. >
  4664. <span class="worksTitle">作业预览</span>
  4665. <div
  4666. class="corOpen"
  4667. @click="contract(toolIndex)"
  4668. v-if="
  4669. isCloseList[toolIndex].isCloseBoolean &&
  4670. isCloseList[toolIndex].isClose == 0
  4671. "
  4672. >
  4673. 折叠
  4674. </div>
  4675. <div
  4676. class="corOpen"
  4677. @click="contract(toolIndex)"
  4678. v-if="isCloseList[toolIndex].isClose == 1"
  4679. >
  4680. 展开
  4681. </div>
  4682. </div>
  4683. <div
  4684. style="display: flex;"
  4685. v-if="
  4686. (courseDetail.userid == userid ||
  4687. (courseDetail.course_teacher &&
  4688. courseDetail.course_teacher.indexOf(userid) !=
  4689. -1)) &&
  4690. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4691. taskCount
  4692. ].eList &&
  4693. chapInfoList[courseType].chapterInfo[0].taskJson[
  4694. taskCount
  4695. ].eList.length) ||
  4696. (tool.eList && tool.eList.length)) &&
  4697. courseDetail.state == 6
  4698. "
  4699. >
  4700. <!-- <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 "> -->
  4701. <div
  4702. style="margin-right:10px"
  4703. class="ScoreBtn"
  4704. @click="
  4705. resetLoopEva(
  4706. worksStudent[toolIndex],
  4707. chapInfoList[courseType].chapterInfo[0].taskJson[
  4708. taskCount
  4709. ].eList,
  4710. courseType,
  4711. taskCount,
  4712. toolIndex,
  4713. tool.toolDetail,
  4714. worksStudent
  4715. )
  4716. "
  4717. >
  4718. 一键重置
  4719. </div>
  4720. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4721. <img
  4722. src="../../assets/icon/newIcons/rootImg.png"
  4723. alt=""
  4724. />
  4725. AI评分
  4726. </div>
  4727. <div
  4728. class="ScoreBtn"
  4729. v-else-if="!loopLoading[toolIndex].loading"
  4730. @click="
  4731. loopEva(
  4732. worksStudent[toolIndex],
  4733. chapInfoList[courseType].chapterInfo[0].taskJson[
  4734. taskCount
  4735. ].eList,
  4736. courseType,
  4737. taskCount,
  4738. toolIndex,
  4739. tool.toolDetail,
  4740. chapInfoList[courseType].chapterInfo[0].taskJson[
  4741. taskCount
  4742. ].taskDetail,
  4743. tool
  4744. )
  4745. "
  4746. >
  4747. <img
  4748. src="../../assets/icon/newIcons/rootImg.png"
  4749. alt=""
  4750. />
  4751. AI评分
  4752. </div>
  4753. <div class="ScoreBtn" v-else>
  4754. <img
  4755. src="../../assets/icon/newIcons/rootImg.png"
  4756. alt=""
  4757. />
  4758. 正在评分
  4759. </div>
  4760. </div>
  4761. </div>
  4762. <div
  4763. :id="'tool-' + toolIndex"
  4764. :style="{
  4765. height:
  4766. isCloseList[toolIndex].isClose == 1
  4767. ? retrnToolHeight('tool-' + toolIndex)
  4768. : 'auto',
  4769. overflow:
  4770. isCloseList[toolIndex].isClose == 1
  4771. ? 'hidden'
  4772. : 'unset'
  4773. }"
  4774. class="worksDetailBox"
  4775. v-if="
  4776. worksStudent.length &&
  4777. worksStudent[toolIndex].length > 0
  4778. "
  4779. >
  4780. <div
  4781. class="works"
  4782. style="
  4783. width: 200px;
  4784. height: 140px;
  4785. margin: 10px 10px 10px 0;
  4786. border-radius: 15px;
  4787. box-shadow: 0 0 6px 1px #dfdada;
  4788. "
  4789. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4790. :key="wIndex"
  4791. :class="w.type == 1 ? 'isTypeOne' : ''"
  4792. >
  4793. <div class="workImg" v-if="w.type == 0">
  4794. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4795. <img
  4796. :src="w.works"
  4797. @click="previewImg(w.works, w)"
  4798. alt
  4799. />
  4800. <div
  4801. class="answerScore"
  4802. v-if="w.score"
  4803. @click.stop="openScore(w)"
  4804. :class="{
  4805. rightW:
  4806. w.userid == userid ||
  4807. tType == 1 ||
  4808. tType == 4 ||
  4809. w.ateacher == userid
  4810. }"
  4811. >
  4812. {{ JSON.parse(w.score).wScore }}分
  4813. </div>
  4814. <div
  4815. class="answerScore"
  4816. @click.stop="openScore(w)"
  4817. v-else-if="
  4818. courseDetail.userid == userid &&
  4819. courseDetail.state != 6 &&
  4820. chapInfoList[courseType].chapterInfo[0]
  4821. .taskJson[taskCount].eList &&
  4822. chapInfoList[courseType].chapterInfo[0]
  4823. .taskJson[taskCount].eList.length
  4824. "
  4825. :class="{
  4826. rightW:
  4827. w.userid == userid ||
  4828. tType == 1 ||
  4829. tType == 4 ||
  4830. w.ateacher == userid
  4831. }"
  4832. >
  4833. 评分
  4834. </div>
  4835. <!-- <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"> -->
  4836. <div
  4837. v-else-if="
  4838. (courseDetail.userid == userid ||
  4839. (courseDetail.course_teacher &&
  4840. courseDetail.course_teacher.indexOf(userid) !=
  4841. -1) ||
  4842. (w.userid == userid && sIsOpen)) &&
  4843. courseDetail.state == 6 &&
  4844. ((chapInfoList[courseType].chapterInfo[0]
  4845. .taskJson[taskCount].eList &&
  4846. chapInfoList[courseType].chapterInfo[0]
  4847. .taskJson[taskCount].eList.length) ||
  4848. (tool.eList && tool.eList.length))
  4849. "
  4850. >
  4851. <el-popover
  4852. placement="top"
  4853. width="318"
  4854. :disabled="AIloading[toolIndex][wIndex].loading"
  4855. trigger="hover"
  4856. >
  4857. <markScore
  4858. :loading="AIloading[toolIndex][wIndex].loading"
  4859. :markScoreVisible="markScoreVisible"
  4860. :ref="`markSco${toolIndex}${wIndex}`"
  4861. @updateLoading="updateLoading"
  4862. @updateDocSco="updateDocSco"
  4863. @refreshOther="refreshOther"
  4864. @markScoreDig="markScoreDig"
  4865. :tool="tool"
  4866. :wIndex="wIndex"
  4867. :scoCon="w"
  4868. :toolIndex="toolIndex"
  4869. :key="refreshKey"
  4870. :stage="courseType"
  4871. :task="taskCount"
  4872. :scoTit="
  4873. chapInfoList[courseType].chapterInfo[0]
  4874. .taskJson[taskCount].eList
  4875. "
  4876. >
  4877. </markScore>
  4878. <div
  4879. class="answerScore"
  4880. @click="
  4881. markScoreDig2(
  4882. w.sName,
  4883. worksStudent,
  4884. w.userid,
  4885. toolIndex,
  4886. chapInfoList[courseType].chapterInfo[0]
  4887. .taskJson[taskCount].eList,
  4888. AIloading[toolIndex][wIndex].loading,
  4889. tool
  4890. )
  4891. "
  4892. slot="reference"
  4893. :class="{
  4894. rightW:
  4895. w.userid == userid ||
  4896. tType == 1 ||
  4897. tType == 4 ||
  4898. w.ateacher == userid
  4899. }"
  4900. >
  4901. <span v-if="AIloading[toolIndex][wIndex].sco">
  4902. {{
  4903. AIloading[toolIndex][wIndex].loading
  4904. ? "评分中"
  4905. : AIloading[toolIndex][wIndex].sco + "分"
  4906. }}
  4907. </span>
  4908. <span v-else>
  4909. {{
  4910. AIloading[toolIndex][wIndex].loading
  4911. ? "评分中"
  4912. : "评分"
  4913. }}
  4914. </span>
  4915. </div>
  4916. </el-popover>
  4917. </div>
  4918. <img
  4919. class="deleteImg"
  4920. src="../../assets/deleteworks.png"
  4921. v-if="
  4922. w.userid == userid || tType == 1 || tType == 4
  4923. "
  4924. @click.stop="deleteWorks(w.wid)"
  4925. alt
  4926. />
  4927. </div>
  4928. <div
  4929. class="workImg"
  4930. style="cursor: pointer"
  4931. v-if="w.type == 1"
  4932. >
  4933. <img :src="word" @click="openFile(w.works)" alt />
  4934. <!-- @click="openFile(w.works)" -->
  4935. <div
  4936. class="answerScore"
  4937. v-if="w.score"
  4938. @click.stop="openScore(w)"
  4939. :class="{
  4940. rightW:
  4941. w.userid == userid ||
  4942. tType == 1 ||
  4943. tType == 4 ||
  4944. w.ateacher == userid
  4945. }"
  4946. >
  4947. {{ JSON.parse(w.score).wScore }}分
  4948. </div>
  4949. <div
  4950. class="answerScore"
  4951. @click.stop="openScore(w)"
  4952. v-else-if="
  4953. courseDetail.userid == userid &&
  4954. courseDetail.state != 6 &&
  4955. chapInfoList[courseType].chapterInfo[0]
  4956. .taskJson[taskCount].eList &&
  4957. chapInfoList[courseType].chapterInfo[0]
  4958. .taskJson[taskCount].eList.length
  4959. "
  4960. :class="{
  4961. rightW:
  4962. w.userid == userid ||
  4963. tType == 1 ||
  4964. tType == 4 ||
  4965. w.ateacher == userid
  4966. }"
  4967. >
  4968. 评分
  4969. </div>
  4970. <!-- <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"> -->
  4971. <div
  4972. v-else-if="
  4973. (courseDetail.userid == userid ||
  4974. (courseDetail.course_teacher &&
  4975. courseDetail.course_teacher.indexOf(userid) !=
  4976. -1) ||
  4977. (w.userid == userid && sIsOpen)) &&
  4978. courseDetail.state == 6 &&
  4979. ((chapInfoList[courseType].chapterInfo[0]
  4980. .taskJson[taskCount].eList &&
  4981. chapInfoList[courseType].chapterInfo[0]
  4982. .taskJson[taskCount].eList.length) ||
  4983. (tool.eList && tool.eList.length))
  4984. "
  4985. >
  4986. <el-popover
  4987. placement="top"
  4988. width="318"
  4989. :disabled="AIloading[toolIndex][wIndex].loading"
  4990. trigger="hover"
  4991. >
  4992. <markScore
  4993. :loading="AIloading[toolIndex][wIndex].loading"
  4994. :markScoreVisible="markScoreVisible"
  4995. :ref="`markSco${toolIndex}${wIndex}`"
  4996. @updateLoading="updateLoading"
  4997. @updateDocSco="updateDocSco"
  4998. @refreshOther="refreshOther"
  4999. @markScoreDig="markScoreDig"
  5000. :tool="tool"
  5001. :wIndex="wIndex"
  5002. :scoCon="w"
  5003. :toolIndex="toolIndex"
  5004. :key="refreshKey"
  5005. :stage="courseType"
  5006. :task="taskCount"
  5007. :scoTit="
  5008. chapInfoList[courseType].chapterInfo[0]
  5009. .taskJson[taskCount].eList
  5010. "
  5011. >
  5012. </markScore>
  5013. <div
  5014. class="answerScore"
  5015. @click="
  5016. markScoreDig2(
  5017. w.sName,
  5018. worksStudent,
  5019. w.userid,
  5020. toolIndex,
  5021. chapInfoList[courseType].chapterInfo[0]
  5022. .taskJson[taskCount].eList,
  5023. AIloading[toolIndex][wIndex].loading,
  5024. tool
  5025. )
  5026. "
  5027. slot="reference"
  5028. :class="{
  5029. rightW:
  5030. w.userid == userid ||
  5031. tType == 1 ||
  5032. tType == 4 ||
  5033. w.ateacher == userid
  5034. }"
  5035. >
  5036. <span v-if="AIloading[toolIndex][wIndex].sco">
  5037. {{
  5038. AIloading[toolIndex][wIndex].loading
  5039. ? "评分中"
  5040. : AIloading[toolIndex][wIndex].sco + "分"
  5041. }}
  5042. </span>
  5043. <span v-else>
  5044. {{
  5045. AIloading[toolIndex][wIndex].loading
  5046. ? "评分中"
  5047. : "评分"
  5048. }}
  5049. </span>
  5050. </div>
  5051. </el-popover>
  5052. </div>
  5053. <img
  5054. class="deleteImg"
  5055. src="../../assets/deleteworks.png"
  5056. v-if="
  5057. w.userid == userid || tType == 1 || tType == 4
  5058. "
  5059. @click.stop="deleteWorks(w.wid)"
  5060. alt
  5061. />
  5062. </div>
  5063. <div class="workImg" v-if="w.type == 3">
  5064. <img
  5065. style="cursor: pointer"
  5066. :src="video"
  5067. @click="openVideo(w)"
  5068. alt
  5069. />
  5070. <!-- @click="openVideo(w.works)" -->
  5071. <div
  5072. class="answerScore"
  5073. v-if="w.score"
  5074. @click.stop="openScore(w)"
  5075. :class="{
  5076. rightW:
  5077. w.userid == userid ||
  5078. tType == 1 ||
  5079. tType == 4 ||
  5080. w.ateacher == userid
  5081. }"
  5082. >
  5083. {{ JSON.parse(w.score).wScore }}分
  5084. </div>
  5085. <div
  5086. class="answerScore"
  5087. @click.stop="openScore(w)"
  5088. v-else-if="
  5089. courseDetail.userid == userid &&
  5090. courseDetail.state != 6 &&
  5091. chapInfoList[courseType].chapterInfo[0]
  5092. .taskJson[taskCount].eList &&
  5093. chapInfoList[courseType].chapterInfo[0]
  5094. .taskJson[taskCount].eList.length
  5095. "
  5096. :class="{
  5097. rightW:
  5098. w.userid == userid ||
  5099. tType == 1 ||
  5100. tType == 4 ||
  5101. w.ateacher == userid
  5102. }"
  5103. >
  5104. 评分
  5105. </div>
  5106. <!-- <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"> -->
  5107. <div
  5108. v-else-if="
  5109. (courseDetail.userid == userid ||
  5110. (courseDetail.course_teacher &&
  5111. courseDetail.course_teacher.indexOf(userid) !=
  5112. -1) ||
  5113. (w.userid == userid && sIsOpen)) &&
  5114. courseDetail.state == 6 &&
  5115. ((chapInfoList[courseType].chapterInfo[0]
  5116. .taskJson[taskCount].eList &&
  5117. chapInfoList[courseType].chapterInfo[0]
  5118. .taskJson[taskCount].eList.length) ||
  5119. (tool.eList && tool.eList.length))
  5120. "
  5121. >
  5122. <el-popover
  5123. placement="top"
  5124. width="318"
  5125. :disabled="AIloading[toolIndex][wIndex].loading"
  5126. trigger="hover"
  5127. >
  5128. <markScore
  5129. :loading="AIloading[toolIndex][wIndex].loading"
  5130. :markScoreVisible="markScoreVisible"
  5131. :ref="`markSco${toolIndex}${wIndex}`"
  5132. @updateLoading="updateLoading"
  5133. @updateDocSco="updateDocSco"
  5134. @refreshOther="refreshOther"
  5135. @markScoreDig="markScoreDig"
  5136. :tool="tool"
  5137. :wIndex="wIndex"
  5138. :scoCon="w"
  5139. :toolIndex="toolIndex"
  5140. :key="refreshKey"
  5141. :stage="courseType"
  5142. :task="taskCount"
  5143. :scoTit="
  5144. chapInfoList[courseType].chapterInfo[0]
  5145. .taskJson[taskCount].eList
  5146. "
  5147. >
  5148. </markScore>
  5149. <div
  5150. class="answerScore"
  5151. @click="
  5152. markScoreDig2(
  5153. w.sName,
  5154. worksStudent,
  5155. w.userid,
  5156. toolIndex,
  5157. chapInfoList[courseType].chapterInfo[0]
  5158. .taskJson[taskCount].eList,
  5159. AIloading[toolIndex][wIndex].loading,
  5160. tool
  5161. )
  5162. "
  5163. slot="reference"
  5164. :class="{
  5165. rightW:
  5166. w.userid == userid ||
  5167. tType == 1 ||
  5168. tType == 4 ||
  5169. w.ateacher == userid
  5170. }"
  5171. >
  5172. <span v-if="AIloading[toolIndex][wIndex].sco">
  5173. {{
  5174. AIloading[toolIndex][wIndex].loading
  5175. ? "评分中"
  5176. : AIloading[toolIndex][wIndex].sco + "分"
  5177. }}
  5178. </span>
  5179. <span v-else>
  5180. {{
  5181. AIloading[toolIndex][wIndex].loading
  5182. ? "评分中"
  5183. : "评分"
  5184. }}
  5185. </span>
  5186. </div>
  5187. </el-popover>
  5188. </div>
  5189. <img
  5190. class="deleteImg"
  5191. src="../../assets/deleteworks.png"
  5192. v-if="
  5193. w.userid == userid || tType == 1 || tType == 4
  5194. "
  5195. @click.stop="deleteWorks(w.wid)"
  5196. alt
  5197. />
  5198. </div>
  5199. <div class="comment" style="min-width: 200px">
  5200. <div class="worksName">
  5201. <div
  5202. style="cursor: pointer"
  5203. @click="
  5204. openSname(w.sName, w.wid, toolIndex, w.userid)
  5205. "
  5206. >
  5207. {{ w.sName }}
  5208. </div>
  5209. </div>
  5210. <div class="commentList">
  5211. <div class="commentList">
  5212. <div
  5213. class="commentImg"
  5214. @click="
  5215. isLikes(
  5216. w.wid,
  5217. userid,
  5218. 1,
  5219. null,
  5220. w.isLikes,
  5221. w.sName
  5222. )
  5223. "
  5224. >
  5225. <img
  5226. :src="w.isLikes == true ? likes : noLikes"
  5227. alt=""
  5228. />
  5229. </div>
  5230. <div>{{ w.likesCount }}</div>
  5231. </div>
  5232. <div class="commentList" style="margin-right: 15px">
  5233. <div
  5234. class="commentImg"
  5235. @click="commentOther(w, toolIndex, wIndex)"
  5236. >
  5237. <img
  5238. src="../../assets/icon/comment/comment.png"
  5239. alt=""
  5240. />
  5241. </div>
  5242. <div>{{ w.commentCount }}</div>
  5243. </div>
  5244. </div>
  5245. </div>
  5246. </div>
  5247. </div>
  5248. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5249. 未提交
  5250. </div>
  5251. <div
  5252. class="noWorksS"
  5253. v-if="noWorksS && noWorksS[toolIndex].length"
  5254. >
  5255. <div
  5256. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5257. :key="sIndex"
  5258. class="noWorksName"
  5259. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5260. >
  5261. <el-tooltip
  5262. effect="dark"
  5263. :content="s.student"
  5264. placement="top"
  5265. >
  5266. <span>{{ s.student }}</span>
  5267. </el-tooltip>
  5268. </div>
  5269. </div>
  5270. </div>
  5271. <div
  5272. v-if="
  5273. tType &&
  5274. ((tType == 2 && sIsOpen == true) ||
  5275. tType == 1 ||
  5276. tType == 4) &&
  5277. tool.tool.indexOf(4) != -1 &&
  5278. (tool.askJson[0].answer ||
  5279. tool.askJson[0].answer === 0) &&
  5280. checkJson[toolIndex].length
  5281. "
  5282. class="xuan_right_box"
  5283. >
  5284. <div
  5285. class="tool_right_box"
  5286. v-for="(item, index) in tool.askJson"
  5287. :key="index"
  5288. >
  5289. <div style="width: calc(100% - 30px);">
  5290. <el-tooltip
  5291. effect="light"
  5292. :content="index + 1 + '、' + item.askstitle"
  5293. placement="top"
  5294. popper-class="text_tooltip"
  5295. >
  5296. <div
  5297. style="
  5298. width: calc(100% - 130px);
  5299. display: block;
  5300. white-space: nowrap;
  5301. overflow: hidden;
  5302. text-overflow: ellipsis;
  5303. word-break: break-word;
  5304. cursor: pointer;
  5305. "
  5306. >
  5307. {{ index + 1 + "、" + item.askstitle }}
  5308. </div>
  5309. </el-tooltip>
  5310. </div>
  5311. <div class="right_box_xuan">
  5312. <span>正确率</span>
  5313. <span>{{
  5314. (checkJson[toolIndex][index].right
  5315. ? checkJson[toolIndex][index].right
  5316. : 0) + "%"
  5317. }}</span>
  5318. </div>
  5319. </div>
  5320. </div>
  5321. <div
  5322. class="xuan_right_box"
  5323. style="background: unset; padding: 0 10px"
  5324. v-if="
  5325. tType &&
  5326. ((tType == 2 && sIsOpen == true) ||
  5327. tType == 1 ||
  5328. tType == 4) &&
  5329. tool.tool.indexOf(4) != -1
  5330. "
  5331. >
  5332. <AskStatic
  5333. v-if="
  5334. worksStudent.length &&
  5335. worksStudent[toolIndex].length > 0
  5336. "
  5337. :askJSON="tool"
  5338. :checkJson="checkJson[toolIndex]"
  5339. ></AskStatic>
  5340. </div>
  5341. <div
  5342. v-if="
  5343. tType &&
  5344. ((tType == 2 && sIsOpen == true) ||
  5345. tType == 1 ||
  5346. tType == 4) &&
  5347. tool.tool.indexOf(4) != -1
  5348. "
  5349. class="worksBox"
  5350. >
  5351. <div
  5352. class="zuoyeYulan"
  5353. v-if="
  5354. worksStudent.length &&
  5355. worksStudent[toolIndex].length > 0
  5356. "
  5357. >
  5358. <div class="worksTop">
  5359. <div>作业预览</div>
  5360. <div
  5361. class="corOpen"
  5362. @click="contract(toolIndex)"
  5363. v-if="
  5364. isCloseList[toolIndex].isCloseBoolean &&
  5365. isCloseList[toolIndex].isClose == 0
  5366. "
  5367. >
  5368. 折叠
  5369. </div>
  5370. <div
  5371. class="corOpen"
  5372. @click="contract(toolIndex)"
  5373. v-if="isCloseList[toolIndex].isClose == 1"
  5374. >
  5375. 展开
  5376. </div>
  5377. </div>
  5378. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5379. </div>
  5380. <div>
  5381. <div
  5382. :id="'tool-' + toolIndex"
  5383. :style="{
  5384. height:
  5385. isCloseList[toolIndex].isClose == 1
  5386. ? retrnToolHeight('tool-' + toolIndex)
  5387. : 'auto',
  5388. overflow:
  5389. isCloseList[toolIndex].isClose == 1
  5390. ? 'hidden'
  5391. : 'unset'
  5392. }"
  5393. class="worksDetailBox"
  5394. v-if="
  5395. worksStudent.length &&
  5396. worksStudent[toolIndex].length > 0
  5397. "
  5398. >
  5399. <div
  5400. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5401. :key="wIndex"
  5402. class="isWorksName2"
  5403. @click="
  5404. openTools(4, toolIndex, taskCount, w.works, w.sName)
  5405. "
  5406. >
  5407. {{ w.sName }}
  5408. <img
  5409. class="deleteImg deleteImg2"
  5410. src="../../assets/deleteworks.png"
  5411. v-if="
  5412. w.userid == userid || tType == 1 || tType == 4
  5413. "
  5414. @click.stop="deleteWorks(w.wid)"
  5415. alt
  5416. />
  5417. </div>
  5418. <!-- <div class="works" style="
  5419. width: 200px;
  5420. height: 140px;
  5421. border-radius: 10px;
  5422. box-shadow: 0 0 6px 1px #dfdada;
  5423. overflow: hidden;
  5424. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  5425. <div class="workImg">
  5426. <img src="../../assets/icon/works/noImg.png" @click="
  5427. openTools(
  5428. 4,
  5429. toolIndex,
  5430. taskCount,
  5431. w.works,
  5432. w.sName
  5433. )
  5434. " alt />
  5435. </div>
  5436. <div class="worksName">
  5437. <div>{{ w.sName }}</div>
  5438. <div>{{ w.time }}</div>
  5439. </div>
  5440. </div> -->
  5441. </div>
  5442. </div>
  5443. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5444. 未提交
  5445. </div>
  5446. <div
  5447. class="noWorksS"
  5448. v-if="noWorksS && noWorksS[toolIndex].length"
  5449. >
  5450. <div
  5451. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5452. :key="sIndex"
  5453. class="noWorksName"
  5454. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  5455. >
  5456. <el-tooltip
  5457. effect="dark"
  5458. :content="s.student"
  5459. placement="top"
  5460. >
  5461. <span>{{ s.student }}</span>
  5462. </el-tooltip>
  5463. </div>
  5464. </div>
  5465. </div>
  5466. <div
  5467. v-if="
  5468. tType &&
  5469. ((tType == 2 && sIsOpen == true) ||
  5470. tType == 1 ||
  5471. tType == 4) &&
  5472. tool.tool.indexOf(45) != -1 &&
  5473. (tool.testJson.testJson[0].answer ||
  5474. tool.testJson.testJson[0].answer === 0) &&
  5475. checkJson[toolIndex].length
  5476. "
  5477. class="xuan_right_box"
  5478. >
  5479. <div
  5480. class="tool_right_box"
  5481. v-for="(item, index) in tool.testJson.testJson"
  5482. :key="index"
  5483. >
  5484. <div class="right_box_xuan" style="margin-right: 10px">
  5485. <span>正确率</span>
  5486. <span>{{
  5487. (checkJson[toolIndex][index].right
  5488. ? checkJson[toolIndex][index].right
  5489. : 0) + "%"
  5490. }}</span>
  5491. </div>
  5492. <div style="width: calc(100% - 30px);">
  5493. <el-tooltip
  5494. effect="light"
  5495. :content="index + 1 + '、' + item.teststitle"
  5496. placement="top"
  5497. popper-class="text_tooltip"
  5498. >
  5499. <div
  5500. style="
  5501. width: calc(100% - 130px);
  5502. display: block;
  5503. white-space: nowrap;
  5504. overflow: hidden;
  5505. text-overflow: ellipsis;
  5506. word-break: break-word;
  5507. cursor: pointer;
  5508. "
  5509. >
  5510. {{ index + 1 + "、" + item.teststitle }}
  5511. </div>
  5512. </el-tooltip>
  5513. </div>
  5514. </div>
  5515. </div>
  5516. <div
  5517. class="xuan_right_box"
  5518. style="background: unset; padding: 0 10px; width: 91.5%"
  5519. v-if="
  5520. tType &&
  5521. ((tType == 2 && sIsOpen == true) ||
  5522. tType == 1 ||
  5523. tType == 4) &&
  5524. tool.tool.indexOf(45) != -1
  5525. "
  5526. >
  5527. <AskStatic2
  5528. v-if="
  5529. worksStudent.length &&
  5530. worksStudent[toolIndex].length > 0
  5531. "
  5532. :askJSON="tool"
  5533. :checkJson="checkJson[toolIndex]"
  5534. ></AskStatic2>
  5535. </div>
  5536. <div
  5537. v-if="
  5538. tType &&
  5539. ((tType == 2 && sIsOpen == true) ||
  5540. tType == 1 ||
  5541. tType == 4) &&
  5542. tool.tool.indexOf(45) != -1
  5543. "
  5544. class="worksBox"
  5545. >
  5546. <div
  5547. class="zuoyeYulan"
  5548. v-if="
  5549. worksStudent.length &&
  5550. worksStudent[toolIndex].length > 0
  5551. "
  5552. >
  5553. <div class="worksTop">
  5554. <div>作业预览</div>
  5555. <div
  5556. class="corOpen"
  5557. @click="contract(toolIndex)"
  5558. v-if="
  5559. isCloseList[toolIndex].isCloseBoolean &&
  5560. isCloseList[toolIndex].isClose == 0
  5561. "
  5562. >
  5563. 折叠
  5564. </div>
  5565. <div
  5566. class="corOpen"
  5567. @click="contract(toolIndex)"
  5568. v-if="isCloseList[toolIndex].isClose == 1"
  5569. >
  5570. 展开
  5571. </div>
  5572. </div>
  5573. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5574. </div>
  5575. <div>
  5576. <div
  5577. :id="'tool-' + toolIndex"
  5578. :style="{
  5579. height:
  5580. isCloseList[toolIndex].isClose == 1
  5581. ? retrnToolHeight('tool-' + toolIndex)
  5582. : 'auto',
  5583. overflow:
  5584. isCloseList[toolIndex].isClose == 1
  5585. ? 'hidden'
  5586. : 'unset'
  5587. }"
  5588. class="worksDetailBox"
  5589. v-if="
  5590. worksStudent.length &&
  5591. worksStudent[toolIndex].length > 0
  5592. "
  5593. >
  5594. <div
  5595. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5596. :key="wIndex"
  5597. class="isWorksName2"
  5598. @click="
  5599. openTools(
  5600. 45,
  5601. toolIndex,
  5602. taskCount,
  5603. w.works,
  5604. w.sName
  5605. )
  5606. "
  5607. >
  5608. {{ w.sName }}
  5609. <img
  5610. class="deleteImg deleteImg2"
  5611. src="../../assets/deleteworks.png"
  5612. v-if="
  5613. w.userid == userid || tType == 1 || tType == 4
  5614. "
  5615. @click.stop="deleteWorks(w.wid)"
  5616. alt
  5617. />
  5618. </div>
  5619. </div>
  5620. </div>
  5621. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5622. 未提交
  5623. </div>
  5624. <div
  5625. class="noWorksS"
  5626. v-if="noWorksS && noWorksS[toolIndex].length"
  5627. >
  5628. <div
  5629. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5630. :key="sIndex"
  5631. class="noWorksName"
  5632. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  5633. >
  5634. <el-tooltip
  5635. effect="dark"
  5636. :content="s.student"
  5637. placement="top"
  5638. >
  5639. <span>{{ s.student }}</span>
  5640. </el-tooltip>
  5641. </div>
  5642. </div>
  5643. </div>
  5644. <div
  5645. v-if="
  5646. tType &&
  5647. ((tType == 2 && sIsOpen == true) ||
  5648. tType == 1 ||
  5649. tType == 4) &&
  5650. tool.tool.indexOf(69) != -1
  5651. "
  5652. class="worksBox"
  5653. >
  5654. <div
  5655. class="zuoyeYulan"
  5656. v-if="
  5657. worksStudent.length &&
  5658. worksStudent[toolIndex].length > 0
  5659. "
  5660. >
  5661. <div class="worksTop">
  5662. <div>作业预览</div>
  5663. <div
  5664. class="corOpen"
  5665. @click="contract(toolIndex)"
  5666. v-if="
  5667. isCloseList[toolIndex].isCloseBoolean &&
  5668. isCloseList[toolIndex].isClose == 0
  5669. "
  5670. >
  5671. 折叠
  5672. </div>
  5673. <div
  5674. class="corOpen"
  5675. @click="contract(toolIndex)"
  5676. v-if="isCloseList[toolIndex].isClose == 1"
  5677. >
  5678. 展开
  5679. </div>
  5680. </div>
  5681. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5682. </div>
  5683. <div>
  5684. <div
  5685. :id="'tool-' + toolIndex"
  5686. :style="{
  5687. height:
  5688. isCloseList[toolIndex].isClose == 1
  5689. ? retrnToolHeight('tool-' + toolIndex)
  5690. : 'auto',
  5691. overflow:
  5692. isCloseList[toolIndex].isClose == 1
  5693. ? 'hidden'
  5694. : 'unset'
  5695. }"
  5696. class="worksDetailBox"
  5697. v-if="
  5698. worksStudent.length &&
  5699. worksStudent[toolIndex].length > 0
  5700. "
  5701. >
  5702. <div
  5703. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5704. :key="wIndex"
  5705. class="isWorksName2"
  5706. style="width: 160px;height: 65px;line-height: 65px;"
  5707. @click="
  5708. openTools(
  5709. 69,
  5710. toolIndex,
  5711. taskCount,
  5712. w.works,
  5713. w.sName,
  5714. w.wid
  5715. )
  5716. "
  5717. >
  5718. {{ w.sName }}
  5719. <img
  5720. class="deleteImg1"
  5721. src="../../assets/evaEnglish.png"
  5722. @click.stop="openEnglishEva(w.wid, toolIndex)"
  5723. alt
  5724. v-if="
  5725. (courseDetail &&
  5726. (courseDetail.userid == userid ||
  5727. (courseDetail.course_teacher &&
  5728. courseDetail.course_teacher.indexOf(
  5729. userid
  5730. ) != -1))) ||
  5731. w.aiCode || w.teacherCode
  5732. "
  5733. />
  5734. <img
  5735. class="deleteImg deleteImg2"
  5736. src="../../assets/deleteworks.png"
  5737. v-if="
  5738. w.userid == userid || tType == 1 || tType == 4
  5739. "
  5740. @click.stop="deleteWorks(w.wid)"
  5741. alt
  5742. />
  5743. </div>
  5744. </div>
  5745. </div>
  5746. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5747. 未提交
  5748. </div>
  5749. <div
  5750. class="noWorksS"
  5751. v-if="noWorksS && noWorksS[toolIndex].length"
  5752. >
  5753. <div
  5754. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5755. :key="sIndex"
  5756. class="noWorksName"
  5757. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  5758. >
  5759. <el-tooltip
  5760. effect="dark"
  5761. :content="s.student"
  5762. placement="top"
  5763. >
  5764. <span>{{ s.student }}</span>
  5765. </el-tooltip>
  5766. </div>
  5767. </div>
  5768. </div>
  5769. <div
  5770. v-if="
  5771. tType &&
  5772. ((tType == 2 && sIsOpen == true) ||
  5773. tType == 1 ||
  5774. tType == 4) &&
  5775. tool.tool.indexOf(15) != -1
  5776. "
  5777. class="worksBox"
  5778. >
  5779. <div
  5780. class="zuoyeYulan"
  5781. v-if="
  5782. (worksStudent.length &&
  5783. worksStudent[toolIndex].length > 0) ||
  5784. (courseGroup.group && courseGroup.group.length)
  5785. "
  5786. >
  5787. <div class="worksTop">
  5788. <div>作业预览</div>
  5789. <div
  5790. class="corOpen"
  5791. @click="contract(toolIndex)"
  5792. v-if="
  5793. isCloseList[toolIndex].isCloseBoolean &&
  5794. isCloseList[toolIndex].isClose == 0
  5795. "
  5796. >
  5797. 折叠
  5798. </div>
  5799. <div
  5800. class="corOpen"
  5801. @click="contract(toolIndex)"
  5802. v-if="isCloseList[toolIndex].isClose == 1"
  5803. >
  5804. 展开
  5805. </div>
  5806. </div>
  5807. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5808. </div>
  5809. <div
  5810. class="group_workBox"
  5811. v-for="(g, gindex) in courseGroup.group"
  5812. :key="gindex"
  5813. >
  5814. <div class="group_box">
  5815. <div class="group_title">
  5816. <el-tooltip
  5817. class="item"
  5818. effect="light"
  5819. :content="g.name"
  5820. placement="top"
  5821. >
  5822. <div class="group_name">{{ g.name }}</div>
  5823. </el-tooltip>
  5824. </div>
  5825. <div
  5826. class="group_work"
  5827. v-if="
  5828. g.works &&
  5829. g.works.length &&
  5830. g.works[toolIndex].length
  5831. "
  5832. >
  5833. <div
  5834. class="works"
  5835. v-for="(w, wIndex) in g.works[toolIndex]"
  5836. :key="wIndex"
  5837. >
  5838. <div
  5839. class="workImg"
  5840. style="
  5841. border-radius: 15px;
  5842. box-shadow: 0px 0px 5px 5px #eee;
  5843. "
  5844. >
  5845. <div
  5846. class="answerBg"
  5847. style="border-radius: 15px 15px 0 0"
  5848. @click="
  5849. commentOther(w, toolIndex, wIndex, null, g.id)
  5850. "
  5851. >
  5852. <div class="answerContent">
  5853. {{ JSON.parse(w.works)[0].answer }}
  5854. </div>
  5855. <div
  5856. class="answerScore"
  5857. v-if="w.score"
  5858. @click.stop="openScore(w)"
  5859. :class="{
  5860. rightW:
  5861. w.userid == userid ||
  5862. tType == 1 ||
  5863. tType == 4
  5864. }"
  5865. >
  5866. {{ JSON.parse(w.score).wScore }}分
  5867. </div>
  5868. <div
  5869. class="answerScore"
  5870. @click.stop="openScore(w)"
  5871. v-else-if="
  5872. courseDetail.userid == userid &&
  5873. courseDetail.state != 6 &&
  5874. chapInfoList[courseType].chapterInfo[0]
  5875. .taskJson[taskCount].eList &&
  5876. chapInfoList[courseType].chapterInfo[0]
  5877. .taskJson[taskCount].eList.length
  5878. "
  5879. :class="{
  5880. rightW:
  5881. w.userid == userid ||
  5882. tType == 1 ||
  5883. tType == 4
  5884. }"
  5885. >
  5886. 评分
  5887. </div>
  5888. <!-- <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"> -->
  5889. <div
  5890. v-else-if="
  5891. (courseDetail.userid == userid ||
  5892. (courseDetail.course_teacher &&
  5893. courseDetail.course_teacher.indexOf(
  5894. userid
  5895. ) != -1) ||
  5896. (w.userid == userid && sIsOpen)) &&
  5897. courseDetail.state == 6 &&
  5898. ((chapInfoList[courseType].chapterInfo[0]
  5899. .taskJson[taskCount].eList &&
  5900. chapInfoList[courseType].chapterInfo[0]
  5901. .taskJson[taskCount].eList.length) ||
  5902. (tool.eList && tool.eList.length))
  5903. "
  5904. >
  5905. <el-popover
  5906. placement="top"
  5907. width="318"
  5908. :disabled="
  5909. AIloading[toolIndex][wIndex].loading
  5910. "
  5911. trigger="hover"
  5912. >
  5913. <markScore
  5914. :loading="
  5915. AIloading[toolIndex][wIndex].loading
  5916. "
  5917. :markScoreVisible="markScoreVisible"
  5918. :ref="`markSco${toolIndex}${wIndex}`"
  5919. @updateLoading="updateLoading"
  5920. @updateDocSco="updateDocSco"
  5921. @refreshOther="refreshOther"
  5922. @markScoreDig="markScoreDig"
  5923. :tool="tool"
  5924. :wIndex="wIndex"
  5925. :scoCon="w"
  5926. :toolIndex="toolIndex"
  5927. :key="refreshKey"
  5928. :stage="courseType"
  5929. :task="taskCount"
  5930. :scoTit="
  5931. chapInfoList[courseType].chapterInfo[0]
  5932. .taskJson[taskCount].eList
  5933. "
  5934. >
  5935. </markScore>
  5936. <div
  5937. class="answerScore"
  5938. @click.stop="
  5939. markScoreDig2(
  5940. w.sName,
  5941. worksStudent,
  5942. w.userid,
  5943. toolIndex,
  5944. chapInfoList[courseType]
  5945. .chapterInfo[0].taskJson[taskCount]
  5946. .eList,
  5947. AIloading[toolIndex][wIndex].loading,
  5948. tool
  5949. )
  5950. "
  5951. slot="reference"
  5952. :class="{
  5953. rightW:
  5954. w.userid == userid ||
  5955. tType == 1 ||
  5956. tType == 4 ||
  5957. w.ateacher == userid
  5958. }"
  5959. >
  5960. <span
  5961. v-if="AIloading[toolIndex][wIndex].sco"
  5962. >
  5963. {{
  5964. AIloading[toolIndex][wIndex].loading
  5965. ? "评分中"
  5966. : AIloading[toolIndex][wIndex].sco +
  5967. "分"
  5968. }}
  5969. </span>
  5970. <span v-else>
  5971. {{
  5972. AIloading[toolIndex][wIndex].loading
  5973. ? "评分中"
  5974. : "评分"
  5975. }}
  5976. </span>
  5977. </div>
  5978. </el-popover>
  5979. </div>
  5980. <img
  5981. class="deleteImg"
  5982. src="../../assets/deleteworks.png"
  5983. v-if="
  5984. w.userid == userid ||
  5985. tType == 1 ||
  5986. tType == 4
  5987. "
  5988. @click.stop="deleteWorks(w.wid)"
  5989. alt
  5990. />
  5991. </div>
  5992. <div class="comment">
  5993. <div class="worksName">
  5994. <div>{{ w.sName }}</div>
  5995. </div>
  5996. <div class="commentList">
  5997. <div
  5998. class="commentImg"
  5999. @click="
  6000. isLikes(
  6001. w.wid,
  6002. userid,
  6003. 1,
  6004. null,
  6005. w.isLikes,
  6006. w.sName
  6007. )
  6008. "
  6009. >
  6010. <img
  6011. :src="w.isLikes == true ? likes : noLikes"
  6012. alt=""
  6013. />
  6014. </div>
  6015. <div>{{ w.likesCount }}</div>
  6016. </div>
  6017. <div
  6018. class="commentList"
  6019. style="margin-right: 15px"
  6020. >
  6021. <div
  6022. class="commentImg"
  6023. @click="
  6024. commentOther(
  6025. w,
  6026. toolIndex,
  6027. wIndex,
  6028. null,
  6029. g.id
  6030. )
  6031. "
  6032. >
  6033. <img
  6034. src="../../assets/icon/comment/comment.png"
  6035. alt=""
  6036. />
  6037. </div>
  6038. <div>{{ w.commentCount }}</div>
  6039. </div>
  6040. </div>
  6041. </div>
  6042. </div>
  6043. </div>
  6044. <div class="group_work" v-else>暂无提交作业</div>
  6045. </div>
  6046. </div>
  6047. <div
  6048. :id="'tool-' + toolIndex"
  6049. :style="{
  6050. height:
  6051. isCloseList[toolIndex].isClose == 1
  6052. ? retrnToolHeight('tool-' + toolIndex)
  6053. : 'auto',
  6054. overflow:
  6055. isCloseList[toolIndex].isClose == 1
  6056. ? 'hidden'
  6057. : 'unset'
  6058. }"
  6059. class="worksDetailBox"
  6060. v-if="
  6061. worksStudent.length &&
  6062. worksStudent[toolIndex].length > 0
  6063. "
  6064. >
  6065. <div
  6066. class="works"
  6067. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6068. :key="wIndex"
  6069. >
  6070. <div
  6071. class="workImg"
  6072. style="
  6073. border-radius: 15px;
  6074. box-shadow: 0px 0px 5px 5px #eee;
  6075. "
  6076. >
  6077. <!-- <img
  6078. src="../../assets/icon/works/noImg.png"
  6079. @click="openTools(15, toolIndex, taskCount, w.works)"
  6080. alt=""
  6081. />-->
  6082. <div
  6083. class="answerBg"
  6084. style="border-radius: 15px 15px 0 0"
  6085. @click="commentOther(w, toolIndex, wIndex)"
  6086. >
  6087. <!-- <div>{{ w.sName }}</div> -->
  6088. <div class="answerContent">
  6089. {{ JSON.parse(w.works)[0].answer }}
  6090. </div>
  6091. <div
  6092. class="answerScore"
  6093. v-if="w.score"
  6094. @click.stop="openScore(w)"
  6095. :class="{
  6096. rightW:
  6097. w.userid == userid || tType == 1 || tType == 4
  6098. }"
  6099. >
  6100. {{ JSON.parse(w.score).wScore }}分
  6101. </div>
  6102. <div
  6103. class="answerScore"
  6104. @click.stop="openScore(w)"
  6105. v-else-if="
  6106. courseDetail.userid == userid &&
  6107. courseDetail.state != 6 &&
  6108. chapInfoList[courseType].chapterInfo[0]
  6109. .taskJson[taskCount].eList &&
  6110. chapInfoList[courseType].chapterInfo[0]
  6111. .taskJson[taskCount].eList.length
  6112. "
  6113. :class="{
  6114. rightW:
  6115. w.userid == userid || tType == 1 || tType == 4
  6116. }"
  6117. >
  6118. 评分
  6119. </div>
  6120. <!-- <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"> -->
  6121. <div
  6122. v-else-if="
  6123. (courseDetail.userid == userid ||
  6124. (courseDetail.course_teacher &&
  6125. courseDetail.course_teacher.indexOf(
  6126. userid
  6127. ) != -1) ||
  6128. (w.userid == userid && sIsOpen)) &&
  6129. courseDetail.state == 6 &&
  6130. ((chapInfoList[courseType].chapterInfo[0]
  6131. .taskJson[taskCount].eList &&
  6132. chapInfoList[courseType].chapterInfo[0]
  6133. .taskJson[taskCount].eList.length) ||
  6134. (tool.eList && tool.eList.length))
  6135. "
  6136. >
  6137. <el-popover
  6138. placement="top"
  6139. width="318"
  6140. :disabled="AIloading[toolIndex][wIndex].loading"
  6141. trigger="hover"
  6142. >
  6143. <markScore
  6144. :loading="
  6145. AIloading[toolIndex][wIndex].loading
  6146. "
  6147. :markScoreVisible="markScoreVisible"
  6148. :ref="`markSco${toolIndex}${wIndex}`"
  6149. @updateLoading="updateLoading"
  6150. @updateDocSco="updateDocSco"
  6151. @refreshOther="refreshOther"
  6152. @markScoreDig="markScoreDig"
  6153. :tool="tool"
  6154. :wIndex="wIndex"
  6155. :scoCon="w"
  6156. :toolIndex="toolIndex"
  6157. :key="refreshKey"
  6158. :stage="courseType"
  6159. :task="taskCount"
  6160. :scoTit="
  6161. chapInfoList[courseType].chapterInfo[0]
  6162. .taskJson[taskCount].eList
  6163. "
  6164. >
  6165. </markScore>
  6166. <div
  6167. class="answerScore"
  6168. @click.stop="
  6169. markScoreDig2(
  6170. w.sName,
  6171. worksStudent,
  6172. w.userid,
  6173. toolIndex,
  6174. chapInfoList[courseType].chapterInfo[0]
  6175. .taskJson[taskCount].eList,
  6176. AIloading[toolIndex][wIndex].loading,
  6177. tool
  6178. )
  6179. "
  6180. slot="reference"
  6181. :class="{
  6182. rightW:
  6183. w.userid == userid ||
  6184. tType == 1 ||
  6185. tType == 4 ||
  6186. w.ateacher == userid
  6187. }"
  6188. >
  6189. <span v-if="AIloading[toolIndex][wIndex].sco">
  6190. {{
  6191. AIloading[toolIndex][wIndex].loading
  6192. ? "评分中"
  6193. : AIloading[toolIndex][wIndex].sco +
  6194. "分"
  6195. }}
  6196. </span>
  6197. <span v-else>
  6198. {{
  6199. AIloading[toolIndex][wIndex].loading
  6200. ? "评分中"
  6201. : "评分"
  6202. }}
  6203. </span>
  6204. </div>
  6205. </el-popover>
  6206. </div>
  6207. <img
  6208. class="deleteImg"
  6209. src="../../assets/deleteworks.png"
  6210. v-if="
  6211. w.userid == userid || tType == 1 || tType == 4
  6212. "
  6213. @click.stop="deleteWorks(w.wid)"
  6214. alt
  6215. />
  6216. </div>
  6217. <div class="comment">
  6218. <div class="worksName">
  6219. <div>{{ w.sName }}</div>
  6220. </div>
  6221. <div class="commentList">
  6222. <div
  6223. class="commentImg"
  6224. @click="
  6225. isLikes(
  6226. w.wid,
  6227. userid,
  6228. 1,
  6229. null,
  6230. w.isLikes,
  6231. w.sName
  6232. )
  6233. "
  6234. >
  6235. <img
  6236. :src="w.isLikes == true ? likes : noLikes"
  6237. alt=""
  6238. />
  6239. </div>
  6240. <div>{{ w.likesCount }}</div>
  6241. </div>
  6242. <div class="commentList" style="margin-right: 15px">
  6243. <div
  6244. class="commentImg"
  6245. @click="commentOther(w, toolIndex, wIndex)"
  6246. >
  6247. <img
  6248. src="../../assets/icon/comment/comment.png"
  6249. alt=""
  6250. />
  6251. </div>
  6252. <div>{{ w.commentCount }}</div>
  6253. </div>
  6254. </div>
  6255. </div>
  6256. </div>
  6257. </div>
  6258. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6259. 未提交
  6260. </div>
  6261. <div
  6262. class="noWorksS"
  6263. v-if="noWorksS && noWorksS[toolIndex].length"
  6264. >
  6265. <div
  6266. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6267. :key="sIndex"
  6268. class="noWorksName"
  6269. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6270. >
  6271. <el-tooltip
  6272. effect="dark"
  6273. :content="s.student"
  6274. placement="top"
  6275. >
  6276. <span>{{ s.student }}</span>
  6277. </el-tooltip>
  6278. </div>
  6279. </div>
  6280. </div>
  6281. <div
  6282. v-if="
  6283. tType &&
  6284. ((tType == 2 && sIsOpen == true) ||
  6285. tType == 1 ||
  6286. tType == 4) &&
  6287. tool.tool.indexOf(1) != -1
  6288. "
  6289. class="worksBox"
  6290. >
  6291. <div
  6292. class="zuoyeYulan"
  6293. style="display: flex;justify-content: space-between;align-items: center;"
  6294. v-if="
  6295. (worksStudent.length &&
  6296. worksStudent[toolIndex].length > 0) ||
  6297. (courseGroup.group && courseGroup.group.length)
  6298. "
  6299. >
  6300. <div class="worksTop">
  6301. <div>作业预览</div>
  6302. <div
  6303. class="corOpen"
  6304. @click="contract(toolIndex)"
  6305. v-if="
  6306. isCloseList[toolIndex].isCloseBoolean &&
  6307. isCloseList[toolIndex].isClose == 0
  6308. "
  6309. >
  6310. 折叠
  6311. </div>
  6312. <div
  6313. class="corOpen"
  6314. @click="contract(toolIndex)"
  6315. v-if="isCloseList[toolIndex].isClose == 1"
  6316. >
  6317. 展开
  6318. </div>
  6319. </div>
  6320. <div
  6321. style="display: flex;"
  6322. v-if="
  6323. (courseDetail.userid == userid ||
  6324. (courseDetail.course_teacher &&
  6325. courseDetail.course_teacher.indexOf(userid) !=
  6326. -1)) &&
  6327. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6328. taskCount
  6329. ].eList &&
  6330. chapInfoList[courseType].chapterInfo[0].taskJson[
  6331. taskCount
  6332. ].eList.length) ||
  6333. (tool.eList && tool.eList.length)) &&
  6334. courseDetail.state == 6
  6335. "
  6336. >
  6337. <div
  6338. style="margin-right:10px"
  6339. class="ScoreBtn"
  6340. @click="
  6341. resetLoopEva(
  6342. worksStudent[toolIndex],
  6343. chapInfoList[courseType].chapterInfo[0].taskJson[
  6344. taskCount
  6345. ].eList,
  6346. courseType,
  6347. taskCount,
  6348. toolIndex,
  6349. tool.toolDetail,
  6350. worksStudent
  6351. )
  6352. "
  6353. >
  6354. 一键重置
  6355. </div>
  6356. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6357. <img
  6358. src="../../assets/icon/newIcons/rootImg.png"
  6359. alt=""
  6360. />
  6361. AI评分
  6362. </div>
  6363. <div
  6364. class="ScoreBtn"
  6365. v-else-if="!loopLoading[toolIndex].loading"
  6366. @click="
  6367. loopEva(
  6368. worksStudent[toolIndex],
  6369. chapInfoList[courseType].chapterInfo[0].taskJson[
  6370. taskCount
  6371. ].eList,
  6372. courseType,
  6373. taskCount,
  6374. toolIndex,
  6375. tool.toolDetail,
  6376. chapInfoList[courseType].chapterInfo[0].taskJson[
  6377. taskCount
  6378. ].taskDetail,
  6379. tool
  6380. )
  6381. "
  6382. >
  6383. <img
  6384. src="../../assets/icon/newIcons/rootImg.png"
  6385. alt=""
  6386. />
  6387. AI评分
  6388. </div>
  6389. <div class="ScoreBtn" v-else>
  6390. <img
  6391. src="../../assets/icon/newIcons/rootImg.png"
  6392. alt=""
  6393. />
  6394. 正在评分
  6395. </div>
  6396. </div>
  6397. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6398. </div>
  6399. <div
  6400. class="group_workBox"
  6401. v-for="(g, gindex) in courseGroup.group"
  6402. :key="gindex"
  6403. >
  6404. <div class="group_box">
  6405. <div class="group_title">
  6406. <el-tooltip
  6407. class="item"
  6408. effect="light"
  6409. :content="g.name"
  6410. placement="top"
  6411. >
  6412. <div class="group_name">{{ g.name }}</div>
  6413. </el-tooltip>
  6414. </div>
  6415. <div
  6416. class="group_work"
  6417. v-if="
  6418. g.works &&
  6419. g.works.length &&
  6420. g.works[toolIndex].length
  6421. "
  6422. >
  6423. <div
  6424. class="works"
  6425. style="
  6426. width: 200px;
  6427. height: 140px;
  6428. margin: 10px 10px 10px 0;
  6429. border-radius: 15px;
  6430. box-shadow: 0 0 6px 1px #dfdada;
  6431. "
  6432. v-for="(w, wIndex) in g.works[toolIndex]"
  6433. :key="wIndex"
  6434. :class="w.type == 1 ? 'isTypeOne' : ''"
  6435. >
  6436. <div class="workImg">
  6437. <img
  6438. :src="w.works"
  6439. @click="previewImg(w.works, w)"
  6440. alt
  6441. />
  6442. <div
  6443. class="answerScore"
  6444. v-if="w.score"
  6445. @click.stop="openScore(w)"
  6446. :class="{
  6447. rightW:
  6448. w.userid == userid ||
  6449. tType == 1 ||
  6450. tType == 4
  6451. }"
  6452. >
  6453. {{ JSON.parse(w.score).wScore }}分
  6454. </div>
  6455. <div
  6456. class="answerScore"
  6457. @click.stop="openScore(w)"
  6458. v-else-if="courseDetail.userid == userid"
  6459. :class="{
  6460. rightW:
  6461. w.userid == userid ||
  6462. tType == 1 ||
  6463. tType == 4
  6464. }"
  6465. >
  6466. 评分
  6467. </div>
  6468. <img
  6469. class="deleteImg"
  6470. src="../../assets/deleteworks.png"
  6471. v-if="
  6472. w.userid == userid || tType == 1 || tType == 4
  6473. "
  6474. @click.stop="deleteWorks(w.wid)"
  6475. alt
  6476. />
  6477. </div>
  6478. <div class="comment" style="min-width: 200px">
  6479. <div class="worksName">
  6480. <div>{{ w.sName }}</div>
  6481. </div>
  6482. <div class="commentList">
  6483. <div class="commentList">
  6484. <div
  6485. class="commentImg"
  6486. @click="
  6487. isLikes(
  6488. w.wid,
  6489. userid,
  6490. 1,
  6491. null,
  6492. w.isLikes,
  6493. w.sName
  6494. )
  6495. "
  6496. >
  6497. <img
  6498. :src="w.isLikes == true ? likes : noLikes"
  6499. alt=""
  6500. />
  6501. </div>
  6502. <div>{{ w.likesCount }}</div>
  6503. </div>
  6504. <div
  6505. class="commentList"
  6506. style="margin-right: 15px"
  6507. >
  6508. <div
  6509. class="commentImg"
  6510. @click="
  6511. commentOther(
  6512. w,
  6513. toolIndex,
  6514. wIndex,
  6515. null,
  6516. g.id
  6517. )
  6518. "
  6519. >
  6520. <img
  6521. src="../../assets/icon/comment/comment.png"
  6522. alt=""
  6523. />
  6524. </div>
  6525. <div>{{ w.commentCount }}</div>
  6526. </div>
  6527. </div>
  6528. </div>
  6529. </div>
  6530. </div>
  6531. <div class="group_work" v-else>暂无提交作业</div>
  6532. </div>
  6533. </div>
  6534. <div
  6535. :id="'tool-' + toolIndex"
  6536. :style="{
  6537. height:
  6538. isCloseList[toolIndex].isClose == 1
  6539. ? retrnToolHeight('tool-' + toolIndex)
  6540. : 'auto',
  6541. overflow:
  6542. isCloseList[toolIndex].isClose == 1
  6543. ? 'hidden'
  6544. : 'unset'
  6545. }"
  6546. class="worksDetailBox"
  6547. v-if="
  6548. worksStudent.length &&
  6549. worksStudent[toolIndex].length > 0
  6550. "
  6551. >
  6552. <div
  6553. class="works"
  6554. style="
  6555. width: 200px;
  6556. height: 140px;
  6557. margin: 10px 10px 10px 0;
  6558. border-radius: 15px;
  6559. box-shadow: 0 0 6px 1px #dfdada;
  6560. "
  6561. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6562. :key="wIndex"
  6563. >
  6564. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6565. <div class="workImg">
  6566. <img
  6567. :src="w.works"
  6568. @click="previewImg(w.works, w)"
  6569. alt
  6570. />
  6571. <div
  6572. class="answerScore"
  6573. v-if="w.score"
  6574. @click.stop="openScore(w)"
  6575. :class="{
  6576. rightW:
  6577. w.userid == userid || tType == 1 || tType == 4
  6578. }"
  6579. >
  6580. {{ JSON.parse(w.score).wScore }}分
  6581. </div>
  6582. <div
  6583. class="answerScore"
  6584. @click.stop="openScore(w)"
  6585. v-else-if="
  6586. courseDetail.userid == userid &&
  6587. courseDetail.state != 6 &&
  6588. chapInfoList[courseType].chapterInfo[0]
  6589. .taskJson[taskCount].eList &&
  6590. chapInfoList[courseType].chapterInfo[0]
  6591. .taskJson[taskCount].eList.length
  6592. "
  6593. :class="{
  6594. rightW:
  6595. w.userid == userid || tType == 1 || tType == 4
  6596. }"
  6597. >
  6598. 评分
  6599. </div>
  6600. <div
  6601. v-else-if="
  6602. (courseDetail.userid == userid ||
  6603. (courseDetail.course_teacher &&
  6604. courseDetail.course_teacher.indexOf(userid) !=
  6605. -1) ||
  6606. (courseDetail.course_teacher &&
  6607. courseDetail.course_teacher.indexOf(userid) !=
  6608. -1) ||
  6609. (courseDetail.course_teacher &&
  6610. courseDetail.course_teacher.indexOf(userid) !=
  6611. -1) ||
  6612. (w.userid == userid && sIsOpen)) &&
  6613. courseDetail.state == 6 &&
  6614. ((chapInfoList[courseType].chapterInfo[0]
  6615. .taskJson[taskCount].eList &&
  6616. chapInfoList[courseType].chapterInfo[0]
  6617. .taskJson[taskCount].eList.length) ||
  6618. (tool.eList && tool.eList.length))
  6619. "
  6620. >
  6621. <el-popover
  6622. placement="top"
  6623. width="318"
  6624. :disabled="AIloading[toolIndex][wIndex].loading"
  6625. trigger="hover"
  6626. >
  6627. <markScore
  6628. :loading="AIloading[toolIndex][wIndex].loading"
  6629. :markScoreVisible="markScoreVisible"
  6630. :ref="`markSco${toolIndex}${wIndex}`"
  6631. @updateLoading="updateLoading"
  6632. @updateDocSco="updateDocSco"
  6633. @refreshOther="refreshOther"
  6634. @markScoreDig="markScoreDig"
  6635. :tool="tool"
  6636. :wIndex="wIndex"
  6637. :scoCon="w"
  6638. :toolIndex="toolIndex"
  6639. :key="refreshKey"
  6640. :stage="courseType"
  6641. :task="taskCount"
  6642. :scoTit="
  6643. chapInfoList[courseType].chapterInfo[0]
  6644. .taskJson[taskCount].eList
  6645. "
  6646. >
  6647. </markScore>
  6648. <div
  6649. class="answerScore"
  6650. @click="
  6651. markScoreDig2(
  6652. w.sName,
  6653. worksStudent,
  6654. w.userid,
  6655. toolIndex,
  6656. chapInfoList[courseType].chapterInfo[0]
  6657. .taskJson[taskCount].eList,
  6658. AIloading[toolIndex][wIndex].loading,
  6659. tool
  6660. )
  6661. "
  6662. slot="reference"
  6663. :class="{
  6664. rightW:
  6665. w.userid == userid ||
  6666. tType == 1 ||
  6667. tType == 4 ||
  6668. w.ateacher == userid
  6669. }"
  6670. >
  6671. <span v-if="AIloading[toolIndex][wIndex].sco">
  6672. {{
  6673. AIloading[toolIndex][wIndex].loading
  6674. ? "评分中"
  6675. : AIloading[toolIndex][wIndex].sco + "分"
  6676. }}
  6677. </span>
  6678. <span v-else>
  6679. {{
  6680. AIloading[toolIndex][wIndex].loading
  6681. ? "评分中"
  6682. : "评分"
  6683. }}
  6684. </span>
  6685. </div>
  6686. </el-popover>
  6687. </div>
  6688. <img
  6689. class="deleteImg"
  6690. src="../../assets/deleteworks.png"
  6691. v-if="
  6692. w.userid == userid || tType == 1 || tType == 4
  6693. "
  6694. @click.stop="deleteWorks(w.wid)"
  6695. alt
  6696. />
  6697. </div>
  6698. <div class="comment" style="min-width: 200px">
  6699. <div class="worksName">
  6700. <div>{{ w.sName }}</div>
  6701. </div>
  6702. <div class="commentList">
  6703. <div class="commentList">
  6704. <div
  6705. class="commentImg"
  6706. @click="
  6707. isLikes(
  6708. w.wid,
  6709. userid,
  6710. 1,
  6711. null,
  6712. w.isLikes,
  6713. w.sName
  6714. )
  6715. "
  6716. >
  6717. <img
  6718. :src="w.isLikes == true ? likes : noLikes"
  6719. alt=""
  6720. />
  6721. </div>
  6722. <div>{{ w.likesCount }}</div>
  6723. </div>
  6724. <div class="commentList" style="margin-right: 15px">
  6725. <div
  6726. class="commentImg"
  6727. @click="commentOther(w, toolIndex, wIndex)"
  6728. >
  6729. <img
  6730. src="../../assets/icon/comment/comment.png"
  6731. alt=""
  6732. />
  6733. </div>
  6734. <div>{{ w.commentCount }}</div>
  6735. </div>
  6736. </div>
  6737. </div>
  6738. </div>
  6739. </div>
  6740. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6741. 未提交
  6742. </div>
  6743. <div
  6744. class="noWorksS"
  6745. v-if="noWorksS && noWorksS[toolIndex].length"
  6746. >
  6747. <div
  6748. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6749. :key="sIndex"
  6750. class="noWorksName"
  6751. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  6752. >
  6753. <el-tooltip
  6754. effect="dark"
  6755. :content="s.student"
  6756. placement="top"
  6757. >
  6758. <span>{{ s.student }}</span>
  6759. </el-tooltip>
  6760. </div>
  6761. </div>
  6762. </div>
  6763. <div
  6764. v-if="
  6765. tType &&
  6766. ((tType == 2 && sIsOpen == true) ||
  6767. tType == 1 ||
  6768. tType == 4) &&
  6769. tool.tool.indexOf(3) != -1
  6770. "
  6771. class="worksBox"
  6772. >
  6773. <div
  6774. class="zuoyeYulan"
  6775. style="display: flex;justify-content: space-between;align-items: center;"
  6776. v-if="
  6777. (worksStudent.length &&
  6778. worksStudent[toolIndex].length > 0) ||
  6779. (courseGroup.group && courseGroup.group.length)
  6780. "
  6781. >
  6782. <div class="worksTop">
  6783. <div>作业预览</div>
  6784. <div
  6785. class="corOpen"
  6786. @click="contract(toolIndex)"
  6787. v-if="
  6788. isCloseList[toolIndex].isCloseBoolean &&
  6789. isCloseList[toolIndex].isClose == 0
  6790. "
  6791. >
  6792. 折叠
  6793. </div>
  6794. <div
  6795. class="corOpen"
  6796. @click="contract(toolIndex)"
  6797. v-if="isCloseList[toolIndex].isClose == 1"
  6798. >
  6799. 展开
  6800. </div>
  6801. </div>
  6802. <div
  6803. style="display: flex;"
  6804. v-if="
  6805. (courseDetail.userid == userid ||
  6806. (courseDetail.course_teacher &&
  6807. courseDetail.course_teacher.indexOf(userid) !=
  6808. -1)) &&
  6809. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6810. taskCount
  6811. ].eList &&
  6812. chapInfoList[courseType].chapterInfo[0].taskJson[
  6813. taskCount
  6814. ].eList.length) ||
  6815. (tool.eList && tool.eList.length)) &&
  6816. courseDetail.state == 6
  6817. "
  6818. >
  6819. <div
  6820. style="margin-right:10px"
  6821. class="ScoreBtn"
  6822. @click="
  6823. resetLoopEva(
  6824. worksStudent[toolIndex],
  6825. chapInfoList[courseType].chapterInfo[0].taskJson[
  6826. taskCount
  6827. ].eList,
  6828. courseType,
  6829. taskCount,
  6830. toolIndex,
  6831. tool.toolDetail,
  6832. worksStudent
  6833. )
  6834. "
  6835. >
  6836. 一键重置
  6837. </div>
  6838. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6839. <img
  6840. src="../../assets/icon/newIcons/rootImg.png"
  6841. alt=""
  6842. />
  6843. AI评分
  6844. </div>
  6845. <div
  6846. class="ScoreBtn"
  6847. v-else-if="!loopLoading[toolIndex].loading"
  6848. @click="
  6849. loopEva(
  6850. worksStudent[toolIndex],
  6851. chapInfoList[courseType].chapterInfo[0].taskJson[
  6852. taskCount
  6853. ].eList,
  6854. courseType,
  6855. taskCount,
  6856. toolIndex,
  6857. tool.toolDetail,
  6858. chapInfoList[courseType].chapterInfo[0].taskJson[
  6859. taskCount
  6860. ].taskDetail,
  6861. tool
  6862. )
  6863. "
  6864. >
  6865. <img
  6866. src="../../assets/icon/newIcons/rootImg.png"
  6867. alt=""
  6868. />
  6869. AI评分
  6870. </div>
  6871. <div class="ScoreBtn" v-else>
  6872. <img
  6873. src="../../assets/icon/newIcons/rootImg.png"
  6874. alt=""
  6875. />
  6876. 正在评分
  6877. </div>
  6878. </div>
  6879. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6880. </div>
  6881. <div
  6882. class="group_workBox"
  6883. v-for="(g, gindex) in courseGroup.group"
  6884. :key="gindex"
  6885. >
  6886. <div class="group_box">
  6887. <div class="group_title">
  6888. <el-tooltip
  6889. class="item"
  6890. effect="light"
  6891. :content="g.name"
  6892. placement="top"
  6893. >
  6894. <div class="group_name">{{ g.name }}</div>
  6895. </el-tooltip>
  6896. </div>
  6897. <div
  6898. class="group_work"
  6899. v-if="
  6900. g.works &&
  6901. g.works.length &&
  6902. g.works[toolIndex].length
  6903. "
  6904. >
  6905. <div
  6906. class="works"
  6907. style="
  6908. width: 200px;
  6909. height: 140px;
  6910. margin: 10px 10px 10px 0;
  6911. border-radius: 15px;
  6912. box-shadow: 0 0 6px 1px #dfdada;
  6913. "
  6914. v-for="(w, wIndex) in g.works[toolIndex]"
  6915. :key="wIndex"
  6916. :class="w.type == 1 ? 'isTypeOne' : ''"
  6917. >
  6918. <div class="workImg">
  6919. <img
  6920. :src="w.works"
  6921. @click="previewImg(w.works, w)"
  6922. alt
  6923. />
  6924. <div
  6925. class="answerScore"
  6926. v-if="w.score"
  6927. @click.stop="openScore(w)"
  6928. :class="{
  6929. rightW:
  6930. w.userid == userid ||
  6931. tType == 1 ||
  6932. tType == 4
  6933. }"
  6934. >
  6935. {{ JSON.parse(w.score).wScore }}分
  6936. </div>
  6937. <div
  6938. class="answerScore"
  6939. @click.stop="openScore(w)"
  6940. v-else-if="courseDetail.userid == userid"
  6941. :class="{
  6942. rightW:
  6943. w.userid == userid ||
  6944. tType == 1 ||
  6945. tType == 4
  6946. }"
  6947. >
  6948. 评分
  6949. </div>
  6950. <img
  6951. class="deleteImg"
  6952. src="../../assets/deleteworks.png"
  6953. v-if="
  6954. w.userid == userid || tType == 1 || tType == 4
  6955. "
  6956. @click.stop="deleteWorks(w.wid)"
  6957. alt
  6958. />
  6959. </div>
  6960. <div class="comment" style="min-width: 200px">
  6961. <div class="worksName">
  6962. <div>{{ w.sName }}</div>
  6963. </div>
  6964. <div class="commentList">
  6965. <div class="commentList">
  6966. <div
  6967. class="commentImg"
  6968. @click="
  6969. isLikes(
  6970. w.wid,
  6971. userid,
  6972. 1,
  6973. null,
  6974. w.isLikes,
  6975. w.sName
  6976. )
  6977. "
  6978. >
  6979. <img
  6980. :src="w.isLikes == true ? likes : noLikes"
  6981. alt=""
  6982. />
  6983. </div>
  6984. <div>{{ w.likesCount }}</div>
  6985. </div>
  6986. <div
  6987. class="commentList"
  6988. style="margin-right: 15px"
  6989. >
  6990. <div
  6991. class="commentImg"
  6992. @click="
  6993. commentOther(
  6994. w,
  6995. toolIndex,
  6996. wIndex,
  6997. null,
  6998. g.id
  6999. )
  7000. "
  7001. >
  7002. <img
  7003. src="../../assets/icon/comment/comment.png"
  7004. alt=""
  7005. />
  7006. </div>
  7007. <div>{{ w.commentCount }}</div>
  7008. </div>
  7009. </div>
  7010. </div>
  7011. </div>
  7012. </div>
  7013. <div class="group_work" v-else>暂无提交作业</div>
  7014. </div>
  7015. </div>
  7016. <div
  7017. :id="'tool-' + toolIndex"
  7018. :style="{
  7019. height:
  7020. isCloseList[toolIndex].isClose == 1
  7021. ? retrnToolHeight('tool-' + toolIndex)
  7022. : 'auto',
  7023. overflow:
  7024. isCloseList[toolIndex].isClose == 1
  7025. ? 'hidden'
  7026. : 'unset'
  7027. }"
  7028. class="worksDetailBox"
  7029. v-if="
  7030. worksStudent.length &&
  7031. worksStudent[toolIndex].length > 0
  7032. "
  7033. >
  7034. <div
  7035. class="works"
  7036. style="
  7037. width: 200px;
  7038. height: 140px;
  7039. margin: 10px 10px 10px 0;
  7040. border-radius: 15px;
  7041. box-shadow: 0 0 6px 1px #dfdada;
  7042. "
  7043. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7044. :key="wIndex"
  7045. >
  7046. <!-- @click="previewImg(w.works)" -->
  7047. <div class="workImg">
  7048. <img
  7049. :src="w.works"
  7050. @click="previewImg(w.works, w)"
  7051. alt
  7052. />
  7053. <div
  7054. class="answerScore"
  7055. v-if="w.score"
  7056. @click.stop="openScore(w)"
  7057. :class="{
  7058. rightW:
  7059. w.userid == userid || tType == 1 || tType == 4
  7060. }"
  7061. >
  7062. {{ JSON.parse(w.score).wScore }}分
  7063. </div>
  7064. <div
  7065. class="answerScore"
  7066. @click.stop="openScore(w)"
  7067. v-else-if="
  7068. courseDetail.userid == userid &&
  7069. courseDetail.state != 6 &&
  7070. chapInfoList[courseType].chapterInfo[0]
  7071. .taskJson[taskCount].eList &&
  7072. chapInfoList[courseType].chapterInfo[0]
  7073. .taskJson[taskCount].eList.length
  7074. "
  7075. :class="{
  7076. rightW:
  7077. w.userid == userid || tType == 1 || tType == 4
  7078. }"
  7079. >
  7080. 评分
  7081. </div>
  7082. <!-- <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"> -->
  7083. <div
  7084. v-else-if="
  7085. (courseDetail.userid == userid ||
  7086. (courseDetail.course_teacher &&
  7087. courseDetail.course_teacher.indexOf(userid) !=
  7088. -1) ||
  7089. (w.userid == userid && sIsOpen)) &&
  7090. courseDetail.state == 6 &&
  7091. ((chapInfoList[courseType].chapterInfo[0]
  7092. .taskJson[taskCount].eList &&
  7093. chapInfoList[courseType].chapterInfo[0]
  7094. .taskJson[taskCount].eList.length) ||
  7095. (tool.eList && tool.eList.length))
  7096. "
  7097. >
  7098. <el-popover
  7099. placement="top"
  7100. width="318"
  7101. :disabled="AIloading[toolIndex][wIndex].loading"
  7102. trigger="hover"
  7103. >
  7104. <markScore
  7105. :loading="AIloading[toolIndex][wIndex].loading"
  7106. :markScoreVisible="markScoreVisible"
  7107. :ref="`markSco${toolIndex}${wIndex}`"
  7108. @updateLoading="updateLoading"
  7109. @updateDocSco="updateDocSco"
  7110. @refreshOther="refreshOther"
  7111. @markScoreDig="markScoreDig"
  7112. :tool="tool"
  7113. :wIndex="wIndex"
  7114. :scoCon="w"
  7115. :toolIndex="toolIndex"
  7116. :key="refreshKey"
  7117. :stage="courseType"
  7118. :task="taskCount"
  7119. :scoTit="
  7120. chapInfoList[courseType].chapterInfo[0]
  7121. .taskJson[taskCount].eList
  7122. "
  7123. >
  7124. </markScore>
  7125. <div
  7126. class="answerScore"
  7127. @click="
  7128. markScoreDig2(
  7129. w.sName,
  7130. worksStudent,
  7131. w.userid,
  7132. toolIndex,
  7133. chapInfoList[courseType].chapterInfo[0]
  7134. .taskJson[taskCount].eList,
  7135. AIloading[toolIndex][wIndex].loading,
  7136. tool
  7137. )
  7138. "
  7139. slot="reference"
  7140. :class="{
  7141. rightW:
  7142. w.userid == userid ||
  7143. tType == 1 ||
  7144. tType == 4 ||
  7145. w.ateacher == userid
  7146. }"
  7147. >
  7148. <span v-if="AIloading[toolIndex][wIndex].sco">
  7149. {{
  7150. AIloading[toolIndex][wIndex].loading
  7151. ? "评分中"
  7152. : AIloading[toolIndex][wIndex].sco + "分"
  7153. }}
  7154. </span>
  7155. <span v-else>
  7156. {{
  7157. AIloading[toolIndex][wIndex].loading
  7158. ? "评分中"
  7159. : "评分"
  7160. }}
  7161. </span>
  7162. </div>
  7163. </el-popover>
  7164. </div>
  7165. <img
  7166. class="deleteImg"
  7167. src="../../assets/deleteworks.png"
  7168. v-if="
  7169. w.userid == userid || tType == 1 || tType == 4
  7170. "
  7171. @click.stop="deleteWorks(w.wid)"
  7172. alt
  7173. />
  7174. </div>
  7175. <div class="comment" style="min-width: 200px">
  7176. <div class="worksName">
  7177. <div>{{ w.sName }}</div>
  7178. </div>
  7179. <div class="commentList">
  7180. <div class="commentList">
  7181. <div
  7182. class="commentImg"
  7183. @click="
  7184. isLikes(
  7185. w.wid,
  7186. userid,
  7187. 1,
  7188. null,
  7189. w.isLikes,
  7190. w.sName
  7191. )
  7192. "
  7193. >
  7194. <img
  7195. :src="w.isLikes == true ? likes : noLikes"
  7196. alt=""
  7197. />
  7198. </div>
  7199. <div>{{ w.likesCount }}</div>
  7200. </div>
  7201. <div class="commentList" style="margin-right: 15px">
  7202. <div
  7203. class="commentImg"
  7204. @click="commentOther(w, toolIndex, wIndex)"
  7205. >
  7206. <img
  7207. src="../../assets/icon/comment/comment.png"
  7208. alt=""
  7209. />
  7210. </div>
  7211. <div>{{ w.commentCount }}</div>
  7212. </div>
  7213. </div>
  7214. </div>
  7215. </div>
  7216. </div>
  7217. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7218. 未提交
  7219. </div>
  7220. <div
  7221. class="noWorksS"
  7222. v-if="noWorksS && noWorksS[toolIndex].length"
  7223. >
  7224. <div
  7225. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7226. :key="sIndex"
  7227. class="noWorksName"
  7228. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7229. >
  7230. <el-tooltip
  7231. effect="dark"
  7232. :content="s.student"
  7233. placement="top"
  7234. >
  7235. <span>{{ s.student }}</span>
  7236. </el-tooltip>
  7237. </div>
  7238. </div>
  7239. </div>
  7240. <div
  7241. v-if="
  7242. tType &&
  7243. ((tType == 2 && sIsOpen == true) ||
  7244. tType == 1 ||
  7245. tType == 4) &&
  7246. tool.tool.indexOf(6) != -1
  7247. "
  7248. class="worksBox"
  7249. >
  7250. <div
  7251. class="zuoyeYulan"
  7252. v-if="
  7253. (worksStudent.length &&
  7254. worksStudent[toolIndex].length > 0) ||
  7255. (courseGroup.group && courseGroup.group.length)
  7256. "
  7257. >
  7258. <div class="worksTop">
  7259. <div>作业预览</div>
  7260. <div
  7261. class="corOpen"
  7262. @click="contract(toolIndex)"
  7263. v-if="
  7264. isCloseList[toolIndex].isCloseBoolean &&
  7265. isCloseList[toolIndex].isClose == 0
  7266. "
  7267. >
  7268. 折叠
  7269. </div>
  7270. <div
  7271. class="corOpen"
  7272. @click="contract(toolIndex)"
  7273. v-if="isCloseList[toolIndex].isClose == 1"
  7274. >
  7275. 展开
  7276. </div>
  7277. </div>
  7278. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7279. </div>
  7280. <div
  7281. class="group_workBox"
  7282. v-for="(g, gindex) in courseGroup.group"
  7283. :key="gindex"
  7284. >
  7285. <div class="group_box">
  7286. <div class="group_title">
  7287. <el-tooltip
  7288. class="item"
  7289. effect="light"
  7290. :content="g.name"
  7291. placement="top"
  7292. >
  7293. <div class="group_name">{{ g.name }}</div>
  7294. </el-tooltip>
  7295. </div>
  7296. <div
  7297. class="group_work"
  7298. v-if="
  7299. g.works &&
  7300. g.works.length &&
  7301. g.works[toolIndex].length
  7302. "
  7303. >
  7304. <div
  7305. class="works"
  7306. style="
  7307. width: 200px;
  7308. height: 140px;
  7309. margin: 10px 10px 10px 0;
  7310. border-radius: 15px;
  7311. box-shadow: 0 0 6px 1px #dfdada;
  7312. "
  7313. v-for="(w, wIndex) in g.works[toolIndex]"
  7314. :key="wIndex"
  7315. :class="w.type == 1 ? 'isTypeOne' : ''"
  7316. >
  7317. <div class="workImg">
  7318. <img
  7319. :src="w.works"
  7320. @click="previewImg(w.works, w)"
  7321. alt
  7322. />
  7323. <div
  7324. class="answerScore"
  7325. v-if="w.score"
  7326. @click.stop="openScore(w)"
  7327. :class="{
  7328. rightW:
  7329. w.userid == userid ||
  7330. tType == 1 ||
  7331. tType == 4
  7332. }"
  7333. >
  7334. {{ JSON.parse(w.score).wScore }}分
  7335. </div>
  7336. <div
  7337. class="answerScore"
  7338. @click.stop="openScore(w)"
  7339. v-else-if="courseDetail.userid == userid"
  7340. :class="{
  7341. rightW:
  7342. w.userid == userid ||
  7343. tType == 1 ||
  7344. tType == 4
  7345. }"
  7346. >
  7347. 评分
  7348. </div>
  7349. <img
  7350. class="deleteImg"
  7351. src="../../assets/deleteworks.png"
  7352. v-if="
  7353. w.userid == userid || tType == 1 || tType == 4
  7354. "
  7355. @click.stop="deleteWorks(w.wid)"
  7356. alt
  7357. />
  7358. </div>
  7359. <div class="comment" style="min-width: 200px">
  7360. <div class="worksName">
  7361. <div>{{ w.sName }}</div>
  7362. </div>
  7363. <div class="commentList">
  7364. <div class="commentList">
  7365. <div
  7366. class="commentImg"
  7367. @click="
  7368. isLikes(
  7369. w.wid,
  7370. userid,
  7371. 1,
  7372. null,
  7373. w.isLikes,
  7374. w.sName
  7375. )
  7376. "
  7377. >
  7378. <img
  7379. :src="w.isLikes == true ? likes : noLikes"
  7380. alt=""
  7381. />
  7382. </div>
  7383. <div>{{ w.likesCount }}</div>
  7384. </div>
  7385. <div
  7386. class="commentList"
  7387. style="margin-right: 15px"
  7388. >
  7389. <div
  7390. class="commentImg"
  7391. @click="
  7392. commentOther(
  7393. w,
  7394. toolIndex,
  7395. wIndex,
  7396. null,
  7397. g.id
  7398. )
  7399. "
  7400. >
  7401. <img
  7402. src="../../assets/icon/comment/comment.png"
  7403. alt=""
  7404. />
  7405. </div>
  7406. <div>{{ w.commentCount }}</div>
  7407. </div>
  7408. </div>
  7409. </div>
  7410. </div>
  7411. </div>
  7412. <div class="group_work" v-else>暂无提交作业</div>
  7413. </div>
  7414. </div>
  7415. <div
  7416. :id="'tool-' + toolIndex"
  7417. :style="{
  7418. height:
  7419. isCloseList[toolIndex].isClose == 1
  7420. ? retrnToolHeight('tool-' + toolIndex)
  7421. : 'auto',
  7422. overflow:
  7423. isCloseList[toolIndex].isClose == 1
  7424. ? 'hidden'
  7425. : 'unset'
  7426. }"
  7427. class="worksDetailBox"
  7428. v-if="
  7429. worksStudent.length &&
  7430. worksStudent[toolIndex].length > 0
  7431. "
  7432. >
  7433. <div
  7434. class="works"
  7435. style="
  7436. width: 200px;
  7437. height: 140px;
  7438. margin: 10px 10px 10px 0;
  7439. border-radius: 15px;
  7440. box-shadow: 0 0 6px 1px #dfdada;
  7441. "
  7442. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7443. :key="wIndex"
  7444. >
  7445. <!-- @click="previewImg(w.works)" -->
  7446. <div class="workImg">
  7447. <img
  7448. :src="w.works"
  7449. @click="previewImg(w.works, w)"
  7450. alt
  7451. />
  7452. <div
  7453. class="answerScore"
  7454. v-if="w.score"
  7455. @click.stop="openScore(w)"
  7456. :class="{
  7457. rightW:
  7458. w.userid == userid || tType == 1 || tType == 4
  7459. }"
  7460. >
  7461. {{ JSON.parse(w.score).wScore }}分
  7462. </div>
  7463. <div
  7464. class="answerScore"
  7465. @click.stop="openScore(w)"
  7466. v-else-if="courseDetail.userid == userid"
  7467. :class="{
  7468. rightW:
  7469. w.userid == userid || tType == 1 || tType == 4
  7470. }"
  7471. >
  7472. 评分
  7473. </div>
  7474. <img
  7475. class="deleteImg"
  7476. src="../../assets/deleteworks.png"
  7477. v-if="
  7478. w.userid == userid || tType == 1 || tType == 4
  7479. "
  7480. @click.stop="deleteWorks(w.wid)"
  7481. alt
  7482. />
  7483. </div>
  7484. <div class="comment" style="min-width: 200px">
  7485. <div class="worksName">
  7486. <div>{{ w.sName }}</div>
  7487. </div>
  7488. <div class="commentList">
  7489. <div class="commentList">
  7490. <div
  7491. class="commentImg"
  7492. @click="
  7493. isLikes(
  7494. w.wid,
  7495. userid,
  7496. 1,
  7497. null,
  7498. w.isLikes,
  7499. w.sName
  7500. )
  7501. "
  7502. >
  7503. <img
  7504. :src="w.isLikes == true ? likes : noLikes"
  7505. alt=""
  7506. />
  7507. </div>
  7508. <div>{{ w.likesCount }}</div>
  7509. </div>
  7510. <div class="commentList" style="margin-right: 15px">
  7511. <div
  7512. class="commentImg"
  7513. @click="commentOther(w, toolIndex, wIndex)"
  7514. >
  7515. <img
  7516. src="../../assets/icon/comment/comment.png"
  7517. alt=""
  7518. />
  7519. </div>
  7520. <div>{{ w.commentCount }}</div>
  7521. </div>
  7522. </div>
  7523. </div>
  7524. </div>
  7525. </div>
  7526. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7527. 未提交
  7528. </div>
  7529. <div
  7530. class="noWorksS"
  7531. v-if="noWorksS && noWorksS[toolIndex].length"
  7532. >
  7533. <div
  7534. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7535. :key="sIndex"
  7536. class="noWorksName"
  7537. >
  7538. <el-tooltip
  7539. effect="dark"
  7540. :content="s.student"
  7541. placement="top"
  7542. >
  7543. <span>{{ s.student }}</span>
  7544. </el-tooltip>
  7545. </div>
  7546. </div>
  7547. </div>
  7548. <div
  7549. v-if="
  7550. tType &&
  7551. ((tType == 2 && sIsOpen == true) ||
  7552. tType == 1 ||
  7553. tType == 4) &&
  7554. tool.tool.indexOf(7) != -1
  7555. "
  7556. class="worksBox"
  7557. >
  7558. <div
  7559. class="zuoyeYulan"
  7560. style="display: flex;justify-content: space-between;align-items: center;"
  7561. v-if="
  7562. (worksStudent.length &&
  7563. worksStudent[toolIndex].length > 0) ||
  7564. (courseGroup.group && courseGroup.group.length)
  7565. "
  7566. >
  7567. <div class="worksTop">
  7568. <div>作业预览</div>
  7569. <div
  7570. class="corOpen"
  7571. @click="contract(toolIndex)"
  7572. v-if="
  7573. isCloseList[toolIndex].isCloseBoolean &&
  7574. isCloseList[toolIndex].isClose == 0
  7575. "
  7576. >
  7577. 折叠
  7578. </div>
  7579. <div
  7580. class="corOpen"
  7581. @click="contract(toolIndex)"
  7582. v-if="isCloseList[toolIndex].isClose == 1"
  7583. >
  7584. 展开
  7585. </div>
  7586. </div>
  7587. <div
  7588. style="display: flex;"
  7589. v-if="
  7590. (courseDetail.userid == userid ||
  7591. (courseDetail.course_teacher &&
  7592. courseDetail.course_teacher.indexOf(userid) !=
  7593. -1)) &&
  7594. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7595. taskCount
  7596. ].eList &&
  7597. chapInfoList[courseType].chapterInfo[0].taskJson[
  7598. taskCount
  7599. ].eList.length) ||
  7600. (tool.eList && tool.eList.length)) &&
  7601. courseDetail.state == 6
  7602. "
  7603. >
  7604. <div
  7605. style="margin-right:10px"
  7606. class="ScoreBtn"
  7607. @click="
  7608. resetLoopEva(
  7609. worksStudent[toolIndex],
  7610. chapInfoList[courseType].chapterInfo[0].taskJson[
  7611. taskCount
  7612. ].eList,
  7613. courseType,
  7614. taskCount,
  7615. toolIndex,
  7616. tool.toolDetail,
  7617. worksStudent
  7618. )
  7619. "
  7620. >
  7621. 一键重置
  7622. </div>
  7623. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7624. <img
  7625. src="../../assets/icon/newIcons/rootImg.png"
  7626. alt=""
  7627. />
  7628. AI评分
  7629. </div>
  7630. <div
  7631. class="ScoreBtn"
  7632. v-else-if="!loopLoading[toolIndex].loading"
  7633. @click="
  7634. loopEva(
  7635. worksStudent[toolIndex],
  7636. chapInfoList[courseType].chapterInfo[0].taskJson[
  7637. taskCount
  7638. ].eList,
  7639. courseType,
  7640. taskCount,
  7641. toolIndex,
  7642. tool.toolDetail,
  7643. chapInfoList[courseType].chapterInfo[0].taskJson[
  7644. taskCount
  7645. ].taskDetail,
  7646. tool
  7647. )
  7648. "
  7649. >
  7650. <img
  7651. src="../../assets/icon/newIcons/rootImg.png"
  7652. alt=""
  7653. />
  7654. AI评分
  7655. </div>
  7656. <div class="ScoreBtn" v-else>
  7657. <img
  7658. src="../../assets/icon/newIcons/rootImg.png"
  7659. alt=""
  7660. />
  7661. 正在评分
  7662. </div>
  7663. </div>
  7664. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7665. </div>
  7666. <div
  7667. class="group_workBox"
  7668. v-for="(g, gindex) in courseGroup.group"
  7669. :key="gindex"
  7670. >
  7671. <div class="group_box">
  7672. <div class="group_title">
  7673. <el-tooltip
  7674. class="item"
  7675. effect="light"
  7676. :content="g.name"
  7677. placement="top"
  7678. >
  7679. <div class="group_name">{{ g.name }}</div>
  7680. </el-tooltip>
  7681. </div>
  7682. <div
  7683. class="group_work"
  7684. v-if="
  7685. g.works &&
  7686. g.works.length &&
  7687. g.works[toolIndex].length
  7688. "
  7689. >
  7690. <div
  7691. class="works"
  7692. style="
  7693. width: 200px;
  7694. height: 140px;
  7695. margin: 10px 10px 10px 0;
  7696. border-radius: 15px;
  7697. box-shadow: 0 0 6px 1px #dfdada;
  7698. "
  7699. v-for="(w, wIndex) in g.works[toolIndex]"
  7700. :key="wIndex"
  7701. :class="w.type == 1 ? 'isTypeOne' : ''"
  7702. >
  7703. <div class="workImg">
  7704. <img
  7705. :src="w.works"
  7706. @click="previewImg(w.works, w)"
  7707. alt
  7708. />
  7709. <div
  7710. class="answerScore"
  7711. v-if="w.score"
  7712. @click.stop="openScore(w)"
  7713. :class="{
  7714. rightW:
  7715. w.userid == userid ||
  7716. tType == 1 ||
  7717. tType == 4
  7718. }"
  7719. >
  7720. {{ JSON.parse(w.score).wScore }}分
  7721. </div>
  7722. <div
  7723. class="answerScore"
  7724. @click.stop="openScore(w)"
  7725. v-else-if="courseDetail.userid == userid"
  7726. :class="{
  7727. rightW:
  7728. w.userid == userid ||
  7729. tType == 1 ||
  7730. tType == 4
  7731. }"
  7732. >
  7733. 评分
  7734. </div>
  7735. <img
  7736. class="deleteImg"
  7737. src="../../assets/deleteworks.png"
  7738. v-if="
  7739. w.userid == userid || tType == 1 || tType == 4
  7740. "
  7741. @click.stop="deleteWorks(w.wid)"
  7742. alt
  7743. />
  7744. </div>
  7745. <div class="comment" style="min-width: 200px">
  7746. <div class="worksName">
  7747. <div>{{ w.sName }}</div>
  7748. </div>
  7749. <div class="commentList">
  7750. <div class="commentList">
  7751. <div
  7752. class="commentImg"
  7753. @click="
  7754. isLikes(
  7755. w.wid,
  7756. userid,
  7757. 1,
  7758. null,
  7759. w.isLikes,
  7760. w.sName
  7761. )
  7762. "
  7763. >
  7764. <img
  7765. :src="w.isLikes == true ? likes : noLikes"
  7766. alt=""
  7767. />
  7768. </div>
  7769. <div>{{ w.likesCount }}</div>
  7770. </div>
  7771. <div
  7772. class="commentList"
  7773. style="margin-right: 15px"
  7774. >
  7775. <div
  7776. class="commentImg"
  7777. @click="
  7778. commentOther(
  7779. w,
  7780. toolIndex,
  7781. wIndex,
  7782. null,
  7783. g.id
  7784. )
  7785. "
  7786. >
  7787. <img
  7788. src="../../assets/icon/comment/comment.png"
  7789. alt=""
  7790. />
  7791. </div>
  7792. <div>{{ w.commentCount }}</div>
  7793. </div>
  7794. </div>
  7795. </div>
  7796. </div>
  7797. </div>
  7798. <div class="group_work" v-else>暂无提交作业</div>
  7799. </div>
  7800. </div>
  7801. <div
  7802. :id="'tool-' + toolIndex"
  7803. :style="{
  7804. height:
  7805. isCloseList[toolIndex].isClose == 1
  7806. ? retrnToolHeight('tool-' + toolIndex)
  7807. : 'auto',
  7808. overflow:
  7809. isCloseList[toolIndex].isClose == 1
  7810. ? 'hidden'
  7811. : 'unset'
  7812. }"
  7813. class="worksDetailBox"
  7814. v-if="
  7815. worksStudent.length &&
  7816. worksStudent[toolIndex].length > 0
  7817. "
  7818. >
  7819. <div
  7820. class="works"
  7821. style="
  7822. width: 200px;
  7823. height: 140px;
  7824. margin: 10px 10px 10px 0;
  7825. border-radius: 15px;
  7826. box-shadow: 0 0 6px 1px #dfdada;
  7827. "
  7828. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7829. :key="wIndex"
  7830. >
  7831. <!-- @click="previewImg(w.works)" -->
  7832. <div class="workImg">
  7833. <img
  7834. :src="w.works"
  7835. @click="previewImg(w.works, w)"
  7836. alt
  7837. />
  7838. <div
  7839. class="answerScore"
  7840. v-if="w.score"
  7841. @click.stop="openScore(w)"
  7842. :class="{
  7843. rightW:
  7844. w.userid == userid || tType == 1 || tType == 4
  7845. }"
  7846. >
  7847. {{ JSON.parse(w.score).wScore }}分
  7848. </div>
  7849. <div
  7850. class="answerScore"
  7851. @click.stop="openScore(w)"
  7852. v-else-if="
  7853. courseDetail.userid == userid &&
  7854. courseDetail.state != 6 &&
  7855. chapInfoList[courseType].chapterInfo[0]
  7856. .taskJson[taskCount].eList &&
  7857. chapInfoList[courseType].chapterInfo[0]
  7858. .taskJson[taskCount].eList.length
  7859. "
  7860. :class="{
  7861. rightW:
  7862. w.userid == userid || tType == 1 || tType == 4
  7863. }"
  7864. >
  7865. 评分
  7866. </div>
  7867. <!-- <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"> -->
  7868. <div
  7869. v-else-if="
  7870. (courseDetail.userid == userid ||
  7871. (courseDetail.course_teacher &&
  7872. courseDetail.course_teacher.indexOf(userid) !=
  7873. -1) ||
  7874. (w.userid == userid && sIsOpen)) &&
  7875. courseDetail.state == 6 &&
  7876. ((chapInfoList[courseType].chapterInfo[0]
  7877. .taskJson[taskCount].eList &&
  7878. chapInfoList[courseType].chapterInfo[0]
  7879. .taskJson[taskCount].eList.length) ||
  7880. (tool.eList && tool.eList.length))
  7881. "
  7882. >
  7883. <el-popover
  7884. placement="top"
  7885. width="318"
  7886. :disabled="AIloading[toolIndex][wIndex].loading"
  7887. trigger="hover"
  7888. >
  7889. <markScore
  7890. :loading="AIloading[toolIndex][wIndex].loading"
  7891. :markScoreVisible="markScoreVisible"
  7892. :ref="`markSco${toolIndex}${wIndex}`"
  7893. @updateLoading="updateLoading"
  7894. @updateDocSco="updateDocSco"
  7895. @refreshOther="refreshOther"
  7896. @markScoreDig="markScoreDig"
  7897. :tool="tool"
  7898. :wIndex="wIndex"
  7899. :scoCon="w"
  7900. :toolIndex="toolIndex"
  7901. :key="refreshKey"
  7902. :stage="courseType"
  7903. :task="taskCount"
  7904. :scoTit="
  7905. chapInfoList[courseType].chapterInfo[0]
  7906. .taskJson[taskCount].eList
  7907. "
  7908. >
  7909. </markScore>
  7910. <div
  7911. class="answerScore"
  7912. @click="
  7913. markScoreDig2(
  7914. w.sName,
  7915. worksStudent,
  7916. w.userid,
  7917. toolIndex,
  7918. chapInfoList[courseType].chapterInfo[0]
  7919. .taskJson[taskCount].eList,
  7920. AIloading[toolIndex][wIndex].loading,
  7921. tool
  7922. )
  7923. "
  7924. slot="reference"
  7925. :class="{
  7926. rightW:
  7927. w.userid == userid ||
  7928. tType == 1 ||
  7929. tType == 4 ||
  7930. w.ateacher == userid
  7931. }"
  7932. >
  7933. <span v-if="AIloading[toolIndex][wIndex].sco">
  7934. {{
  7935. AIloading[toolIndex][wIndex].loading
  7936. ? "评分中"
  7937. : AIloading[toolIndex][wIndex].sco + "分"
  7938. }}
  7939. </span>
  7940. <span v-else>
  7941. {{
  7942. AIloading[toolIndex][wIndex].loading
  7943. ? "评分中"
  7944. : "评分"
  7945. }}
  7946. </span>
  7947. </div>
  7948. </el-popover>
  7949. </div>
  7950. <img
  7951. class="deleteImg"
  7952. src="../../assets/deleteworks.png"
  7953. v-if="
  7954. w.userid == userid || tType == 1 || tType == 4
  7955. "
  7956. @click.stop="deleteWorks(w.wid)"
  7957. alt
  7958. />
  7959. </div>
  7960. <div class="comment" style="min-width: 200px">
  7961. <div class="worksName">
  7962. <div>{{ w.sName }}</div>
  7963. </div>
  7964. <div class="commentList">
  7965. <div class="commentList">
  7966. <div
  7967. class="commentImg"
  7968. @click="
  7969. isLikes(
  7970. w.wid,
  7971. userid,
  7972. 1,
  7973. null,
  7974. w.isLikes,
  7975. w.sName
  7976. )
  7977. "
  7978. >
  7979. <img
  7980. :src="w.isLikes == true ? likes : noLikes"
  7981. alt=""
  7982. />
  7983. </div>
  7984. <div>{{ w.likesCount }}</div>
  7985. </div>
  7986. <div class="commentList" style="margin-right: 15px">
  7987. <div
  7988. class="commentImg"
  7989. @click="commentOther(w, toolIndex, wIndex)"
  7990. >
  7991. <img
  7992. src="../../assets/icon/comment/comment.png"
  7993. alt=""
  7994. />
  7995. </div>
  7996. <div>{{ w.commentCount }}</div>
  7997. </div>
  7998. </div>
  7999. </div>
  8000. </div>
  8001. </div>
  8002. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8003. 未提交
  8004. </div>
  8005. <div
  8006. class="noWorksS"
  8007. v-if="noWorksS && noWorksS[toolIndex].length"
  8008. >
  8009. <div
  8010. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8011. :key="sIndex"
  8012. class="noWorksName"
  8013. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8014. >
  8015. <el-tooltip
  8016. effect="dark"
  8017. :content="s.student"
  8018. placement="top"
  8019. >
  8020. <span>{{ s.student }}</span>
  8021. </el-tooltip>
  8022. </div>
  8023. </div>
  8024. </div>
  8025. <div
  8026. v-if="
  8027. tType &&
  8028. ((tType == 2 && sIsOpen == true) ||
  8029. tType == 1 ||
  8030. tType == 4) &&
  8031. tool.tool.indexOf(26) != -1
  8032. "
  8033. class="worksBox"
  8034. >
  8035. <div
  8036. class="zuoyeYulan"
  8037. v-if="
  8038. worksStudent.length &&
  8039. worksStudent[toolIndex].length > 0
  8040. "
  8041. >
  8042. <div class="worksTop">
  8043. <div>作业预览</div>
  8044. <div
  8045. class="corOpen"
  8046. @click="contract(toolIndex)"
  8047. v-if="
  8048. isCloseList[toolIndex].isCloseBoolean &&
  8049. isCloseList[toolIndex].isClose == 0
  8050. "
  8051. >
  8052. 折叠
  8053. </div>
  8054. <div
  8055. class="corOpen"
  8056. @click="contract(toolIndex)"
  8057. v-if="isCloseList[toolIndex].isClose == 1"
  8058. >
  8059. 展开
  8060. </div>
  8061. </div>
  8062. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8063. </div>
  8064. <div
  8065. :id="'tool-' + toolIndex"
  8066. :style="{
  8067. height:
  8068. isCloseList[toolIndex].isClose == 1
  8069. ? retrnToolHeight('tool-' + toolIndex)
  8070. : 'auto',
  8071. overflow:
  8072. isCloseList[toolIndex].isClose == 1
  8073. ? 'hidden'
  8074. : 'unset'
  8075. }"
  8076. class="worksDetailBox"
  8077. v-if="
  8078. worksStudent.length &&
  8079. worksStudent[toolIndex].length > 0
  8080. "
  8081. >
  8082. <div
  8083. class="works"
  8084. style="width: 240px; height: 140px; overflow: hidden"
  8085. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8086. :key="wIndex"
  8087. :class="w.type == 1 ? 'isTypeOne' : ''"
  8088. >
  8089. <div class="workImg" v-if="w.type == 0">
  8090. <img
  8091. :src="w.works"
  8092. @click="previewImg(w.works, w)"
  8093. alt
  8094. />
  8095. <img
  8096. class="deleteImg"
  8097. src="../../assets/deleteworks.png"
  8098. v-if="
  8099. w.userid == userid || tType == 1 || tType == 4
  8100. "
  8101. @click.stop="deleteWorks(w.wid)"
  8102. alt
  8103. />
  8104. </div>
  8105. <div class="workImg" v-if="w.type == 1">
  8106. <img :src="word" @click="openFile(w.works)" alt />
  8107. <img
  8108. class="deleteImg"
  8109. src="../../assets/deleteworks.png"
  8110. v-if="
  8111. w.userid == userid || tType == 1 || tType == 4
  8112. "
  8113. @click.stop="deleteWorks(w.wid)"
  8114. alt
  8115. />
  8116. </div>
  8117. <div class="worksName">
  8118. <div>{{ w.sName }}</div>
  8119. </div>
  8120. </div>
  8121. </div>
  8122. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8123. 未提交
  8124. </div>
  8125. <div
  8126. class="noWorksS"
  8127. v-if="noWorksS && noWorksS[toolIndex].length"
  8128. >
  8129. <div
  8130. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8131. :key="sIndex"
  8132. class="noWorksName"
  8133. >
  8134. <el-tooltip
  8135. effect="dark"
  8136. :content="s.student"
  8137. placement="top"
  8138. >
  8139. <span>{{ s.student }}</span>
  8140. </el-tooltip>
  8141. </div>
  8142. </div>
  8143. </div>
  8144. <div
  8145. v-if="
  8146. tType &&
  8147. ((tType == 2 && sIsOpen == true) ||
  8148. tType == 1 ||
  8149. tType == 4) &&
  8150. tool.tool.indexOf(40) != -1
  8151. "
  8152. class="worksBox"
  8153. >
  8154. <div
  8155. class="zuoyeYulan"
  8156. v-if="
  8157. worksStudent.length &&
  8158. worksStudent[toolIndex].length > 0
  8159. "
  8160. >
  8161. <div class="worksTop">
  8162. <div>作业预览</div>
  8163. <div
  8164. class="corOpen"
  8165. @click="contract(toolIndex)"
  8166. v-if="
  8167. isCloseList[toolIndex].isCloseBoolean &&
  8168. isCloseList[toolIndex].isClose == 0
  8169. "
  8170. >
  8171. 折叠
  8172. </div>
  8173. <div
  8174. class="corOpen"
  8175. @click="contract(toolIndex)"
  8176. v-if="isCloseList[toolIndex].isClose == 1"
  8177. >
  8178. 展开
  8179. </div>
  8180. </div>
  8181. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8182. </div>
  8183. <div
  8184. :id="'tool-' + toolIndex"
  8185. :style="{
  8186. height:
  8187. isCloseList[toolIndex].isClose == 1
  8188. ? retrnToolHeight('tool-' + toolIndex)
  8189. : 'auto',
  8190. overflow:
  8191. isCloseList[toolIndex].isClose == 1
  8192. ? 'hidden'
  8193. : 'unset'
  8194. }"
  8195. class="worksDetailBox"
  8196. v-if="
  8197. worksStudent.length &&
  8198. worksStudent[toolIndex].length > 0
  8199. "
  8200. >
  8201. <div
  8202. class="works"
  8203. style="
  8204. width: 200px;
  8205. height: 140px;
  8206. margin: 10px 10px 10px 0;
  8207. border-radius: 15px;
  8208. box-shadow: 0 0 6px 1px #dfdada;
  8209. "
  8210. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8211. :key="wIndex"
  8212. :class="w.type == 1 ? 'isTypeOne' : ''"
  8213. >
  8214. <div class="workImg">
  8215. <img
  8216. src="../../assets/icon/works/noImg.png"
  8217. @click="openPj(w.works, toolIndex)"
  8218. alt
  8219. />
  8220. <img
  8221. class="deleteImg"
  8222. src="../../assets/deleteworks.png"
  8223. v-if="
  8224. w.userid == userid || tType == 1 || tType == 4
  8225. "
  8226. @click.stop="deleteWorks(w.wid)"
  8227. alt
  8228. />
  8229. </div>
  8230. <div class="comment" style="min-width: 200px">
  8231. <div class="worksName">
  8232. <div>{{ w.sName }}</div>
  8233. </div>
  8234. <div class="commentList">
  8235. <div class="commentList">
  8236. <div
  8237. class="commentImg"
  8238. @click="
  8239. isLikes(
  8240. w.wid,
  8241. userid,
  8242. 1,
  8243. null,
  8244. w.isLikes,
  8245. w.sName
  8246. )
  8247. "
  8248. >
  8249. <img
  8250. :src="w.isLikes == true ? likes : noLikes"
  8251. alt=""
  8252. />
  8253. </div>
  8254. <div>{{ w.likesCount }}</div>
  8255. </div>
  8256. <div class="commentList" style="margin-right: 15px">
  8257. <div
  8258. class="commentImg"
  8259. @click="commentOther(w, toolIndex, wIndex)"
  8260. >
  8261. <img
  8262. src="../../assets/icon/comment/comment.png"
  8263. alt=""
  8264. />
  8265. </div>
  8266. <div>{{ w.commentCount }}</div>
  8267. </div>
  8268. </div>
  8269. </div>
  8270. </div>
  8271. </div>
  8272. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8273. 未提交
  8274. </div>
  8275. <div
  8276. class="noWorksS"
  8277. v-if="noWorksS && noWorksS[toolIndex].length"
  8278. >
  8279. <div
  8280. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8281. :key="sIndex"
  8282. class="noWorksName"
  8283. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8284. >
  8285. <el-tooltip
  8286. effect="dark"
  8287. :content="s.student"
  8288. placement="top"
  8289. >
  8290. <span>{{ s.student }}</span>
  8291. </el-tooltip>
  8292. </div>
  8293. </div>
  8294. </div>
  8295. <div
  8296. v-if="
  8297. tType &&
  8298. tType == 2 &&
  8299. !sIsOpen &&
  8300. tool.tool.indexOf(40) != -1
  8301. "
  8302. class="worksBox"
  8303. >
  8304. <div
  8305. class="zuoyeYulan"
  8306. v-if="workStudent[toolIndex].length > 0"
  8307. >
  8308. <span class="worksTitle">作业预览</span>
  8309. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8310. </div>
  8311. <div
  8312. class="worksDetailBox"
  8313. v-if="workStudent[toolIndex].length > 0"
  8314. >
  8315. <div
  8316. class="works"
  8317. style="
  8318. width: 200px;
  8319. height: 140px;
  8320. margin: 10px 10px 10px 0;
  8321. "
  8322. v-for="(w, wIndex) in workStudent[toolIndex]"
  8323. :key="wIndex"
  8324. >
  8325. <div class="workImg">
  8326. <img
  8327. src="../../assets/icon/works/noImg.png"
  8328. @click="openPj(w.works, toolIndex)"
  8329. alt
  8330. />
  8331. <img
  8332. class="deleteImg"
  8333. src="../../assets/deleteworks.png"
  8334. v-if="
  8335. w.userid == userid || tType == 1 || tType == 4
  8336. "
  8337. @click.stop="deleteWorks(w.wid)"
  8338. alt
  8339. />
  8340. </div>
  8341. <div class="worksName">
  8342. <div>{{ w.sName }}</div>
  8343. </div>
  8344. </div>
  8345. </div>
  8346. </div>
  8347. <div
  8348. v-if="
  8349. tType &&
  8350. ((tType == 2 && sIsOpen == true) ||
  8351. tType == 1 ||
  8352. tType == 4) &&
  8353. tool.tool.indexOf(41) != -1
  8354. "
  8355. >
  8356. <AnswerData2
  8357. v-if="
  8358. worksStudent.length &&
  8359. worksStudent[toolIndex].length > 0
  8360. "
  8361. :problemJson="tool.selectJson.answer"
  8362. :people="worksStudent[toolIndex]"
  8363. ></AnswerData2>
  8364. </div>
  8365. <div
  8366. v-if="
  8367. tType &&
  8368. ((tType == 2 && sIsOpen == true) ||
  8369. tType == 1 ||
  8370. tType == 4) &&
  8371. tool.tool.indexOf(41) != -1
  8372. "
  8373. class="worksBox"
  8374. >
  8375. <div
  8376. class="zuoyeYulan"
  8377. v-if="
  8378. worksStudent.length &&
  8379. worksStudent[toolIndex].length > 0
  8380. "
  8381. >
  8382. <div class="worksTop">
  8383. <div>作业预览</div>
  8384. <div
  8385. class="corOpen"
  8386. @click="contract(toolIndex)"
  8387. v-if="
  8388. isCloseList[toolIndex].isCloseBoolean &&
  8389. isCloseList[toolIndex].isClose == 0
  8390. "
  8391. >
  8392. 折叠
  8393. </div>
  8394. <div
  8395. class="corOpen"
  8396. @click="contract(toolIndex)"
  8397. v-if="isCloseList[toolIndex].isClose == 1"
  8398. >
  8399. 展开
  8400. </div>
  8401. </div>
  8402. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8403. </div>
  8404. <div
  8405. :id="'tool-' + toolIndex"
  8406. :style="{
  8407. height:
  8408. isCloseList[toolIndex].isClose == 1
  8409. ? retrnToolHeight('tool-' + toolIndex)
  8410. : 'auto',
  8411. overflow:
  8412. isCloseList[toolIndex].isClose == 1
  8413. ? 'hidden'
  8414. : 'unset'
  8415. }"
  8416. class="worksDetailBox"
  8417. v-if="
  8418. worksStudent.length &&
  8419. worksStudent[toolIndex].length > 0
  8420. "
  8421. >
  8422. <div
  8423. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8424. :key="wIndex"
  8425. class="isWorksName2"
  8426. @click="openXz(w, toolIndex)"
  8427. >
  8428. {{ w.sName }}
  8429. <img
  8430. class="deleteImg deleteImg2"
  8431. src="../../assets/deleteworks.png"
  8432. v-if="w.userid == userid || tType == 1 || tType == 4"
  8433. @click.stop="deleteWorks(w.wid)"
  8434. alt
  8435. />
  8436. </div>
  8437. <!-- <div
  8438. class="works"
  8439. style="
  8440. width: 200px;
  8441. height: 140px;
  8442. margin: 10px 10px 10px 0;
  8443. border-radius: 15px;
  8444. box-shadow: 0 0 6px 1px #dfdada;
  8445. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  8446. :class="w.type == 5 ? 'isTypeOne' : ''">
  8447. <div class="workImg">
  8448. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  8449. </div>
  8450. <div class="worksName">
  8451. <div>{{ w.sName }}</div>
  8452. </div>
  8453. </div> -->
  8454. </div>
  8455. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8456. 未提交
  8457. </div>
  8458. <div
  8459. class="noWorksS"
  8460. v-if="noWorksS && noWorksS[toolIndex].length"
  8461. >
  8462. <div
  8463. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8464. :key="sIndex"
  8465. class="noWorksName"
  8466. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  8467. >
  8468. <el-tooltip
  8469. effect="dark"
  8470. :content="s.student"
  8471. placement="top"
  8472. >
  8473. <span>{{ s.student }}</span>
  8474. </el-tooltip>
  8475. </div>
  8476. </div>
  8477. </div>
  8478. <div
  8479. v-if="
  8480. tType &&
  8481. tType == 2 &&
  8482. !sIsOpen &&
  8483. tool.tool.indexOf(41) != -1
  8484. "
  8485. class="worksBox"
  8486. >
  8487. <div
  8488. class="zuoyeYulan"
  8489. v-if="workStudent[toolIndex].length > 0"
  8490. >
  8491. <span class="worksTitle">作业预览</span>
  8492. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8493. </div>
  8494. <div
  8495. class="worksDetailBox"
  8496. v-if="workStudent[toolIndex].length > 0"
  8497. >
  8498. <div
  8499. class="works"
  8500. style="
  8501. width: 200px;
  8502. height: 140px;
  8503. margin: 10px 10px 10px 0;
  8504. "
  8505. v-for="(w, wIndex) in workStudent[toolIndex]"
  8506. :key="wIndex"
  8507. >
  8508. <div class="workImg">
  8509. <img
  8510. src="../../assets/icon/works/noImg.png"
  8511. @click="openXz(w, toolIndex)"
  8512. alt
  8513. />
  8514. <img
  8515. class="deleteImg"
  8516. src="../../assets/deleteworks.png"
  8517. v-if="
  8518. w.userid == userid || tType == 1 || tType == 4
  8519. "
  8520. @click.stop="deleteWorks(w.wid)"
  8521. alt
  8522. />
  8523. </div>
  8524. <div class="worksName">
  8525. <div>{{ w.sName }}</div>
  8526. </div>
  8527. </div>
  8528. </div>
  8529. </div>
  8530. <div v-if="false" class="xuan_right_box">
  8531. <div
  8532. class="tool_right_box"
  8533. v-for="(item, index) in tool.sentenceList"
  8534. :key="index"
  8535. >
  8536. <div>
  8537. <span
  8538. style="word-break: break-all; white-space: normal"
  8539. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  8540. >
  8541. </div>
  8542. <div class="right_box_xuan">
  8543. <span>正确率</span>
  8544. <span>{{
  8545. (checkJson[toolIndex][index].right
  8546. ? checkJson[toolIndex][index].right
  8547. : 0) + "%"
  8548. }}</span>
  8549. </div>
  8550. <div class="right_box_xuan">
  8551. <span>答对人数</span>
  8552. <span>{{
  8553. checkJson[toolIndex][index].rightPerson.length
  8554. }}</span>
  8555. </div>
  8556. </div>
  8557. </div>
  8558. <div
  8559. v-if="
  8560. tType &&
  8561. ((tType == 2 && sIsOpen == true) ||
  8562. tType == 1 ||
  8563. tType == 4) &&
  8564. tool.tool.indexOf(47) != -1
  8565. "
  8566. >
  8567. <AnswerData
  8568. v-if="
  8569. checkJson[toolIndex].length &&
  8570. (tool.sentenceList || tool.sentenceList.length > 0)
  8571. "
  8572. :people="checkJson[toolIndex]"
  8573. ></AnswerData>
  8574. </div>
  8575. <div
  8576. v-if="
  8577. tType &&
  8578. tType == 2 &&
  8579. !sIsOpen &&
  8580. tool.tool.indexOf(47) != -1
  8581. "
  8582. class="worksBox"
  8583. >
  8584. <div
  8585. class="zuoyeYulan"
  8586. v-if="workStudent[toolIndex].length > 0"
  8587. >
  8588. <span class="worksTitle">作业预览</span>
  8589. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8590. </div>
  8591. <div
  8592. class="worksDetailBox"
  8593. v-if="workStudent[toolIndex].length > 0"
  8594. >
  8595. <div
  8596. class="works"
  8597. style="
  8598. width: 200px;
  8599. height: 140px;
  8600. margin: 10px 10px 10px 0;
  8601. "
  8602. v-for="(w, wIndex) in workStudent[toolIndex]"
  8603. :key="wIndex"
  8604. >
  8605. <!-- @click="openXz(w, toolIndex)" -->
  8606. <div class="workImg" @click="openSen(w, toolIndex)">
  8607. <img src="../../assets/icon/works/noImg.png" alt />
  8608. <img
  8609. class="deleteImg"
  8610. src="../../assets/deleteworks.png"
  8611. v-if="
  8612. w.userid == userid || tType == 1 || tType == 4
  8613. "
  8614. @click.stop="deleteWorks(w.wid)"
  8615. alt
  8616. />
  8617. </div>
  8618. <div class="worksName">
  8619. <div>
  8620. {{ w.sName }}
  8621. </div>
  8622. </div>
  8623. </div>
  8624. </div>
  8625. </div>
  8626. <div
  8627. v-if="
  8628. tType &&
  8629. ((tType == 2 && sIsOpen == true) ||
  8630. tType == 1 ||
  8631. tType == 4) &&
  8632. tool.tool.indexOf(47) != -1
  8633. "
  8634. class="worksBox"
  8635. >
  8636. <div
  8637. class="zuoyeYulan"
  8638. v-if="
  8639. worksStudent.length &&
  8640. worksStudent[toolIndex].length > 0
  8641. "
  8642. >
  8643. <div class="worksTop">
  8644. <div>作业预览</div>
  8645. <div
  8646. class="corOpen"
  8647. @click="contract(toolIndex)"
  8648. v-if="
  8649. isCloseList[toolIndex].isCloseBoolean &&
  8650. isCloseList[toolIndex].isClose == 0
  8651. "
  8652. >
  8653. 折叠
  8654. </div>
  8655. <div
  8656. class="corOpen"
  8657. @click="contract(toolIndex)"
  8658. v-if="isCloseList[toolIndex].isClose == 1"
  8659. >
  8660. 展开
  8661. </div>
  8662. </div>
  8663. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8664. </div>
  8665. <div
  8666. :id="'tool-' + toolIndex"
  8667. :style="{
  8668. height:
  8669. isCloseList[toolIndex].isClose == 1
  8670. ? retrnToolHeight('tool-' + toolIndex)
  8671. : 'auto',
  8672. overflow:
  8673. isCloseList[toolIndex].isClose == 1
  8674. ? 'hidden'
  8675. : 'unset'
  8676. }"
  8677. class="worksDetailBox"
  8678. v-if="
  8679. worksStudent.length &&
  8680. worksStudent[toolIndex].length > 0
  8681. "
  8682. >
  8683. <!-- @click="openXz(w, toolIndex)" -->
  8684. <div
  8685. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8686. :key="wIndex"
  8687. class="isWorksName2"
  8688. @click="openSen(w, toolIndex)"
  8689. >
  8690. {{ w.sName }}
  8691. <img
  8692. class="deleteImg deleteImg2"
  8693. src="../../assets/deleteworks.png"
  8694. v-if="w.userid == userid || tType == 1 || tType == 4"
  8695. @click.stop="deleteWorks(w.wid)"
  8696. alt
  8697. />
  8698. </div>
  8699. </div>
  8700. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8701. 未提交
  8702. </div>
  8703. <div
  8704. class="noWorksS"
  8705. v-if="noWorksS && noWorksS[toolIndex].length"
  8706. >
  8707. <div
  8708. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8709. :key="sIndex"
  8710. class="noWorksName"
  8711. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8712. >
  8713. <el-tooltip
  8714. effect="dark"
  8715. :content="s.student"
  8716. placement="top"
  8717. >
  8718. <span>{{ s.student }}</span>
  8719. </el-tooltip>
  8720. </div>
  8721. </div>
  8722. </div>
  8723. <div
  8724. v-if="
  8725. tType &&
  8726. ((tType == 2 && sIsOpen == true) ||
  8727. tType == 1 ||
  8728. tType == 4) &&
  8729. tool.tool.indexOf(48) != -1
  8730. "
  8731. class="worksBox"
  8732. >
  8733. <div
  8734. class="zuoyeYulan"
  8735. style="display: flex;justify-content: space-between;align-items: center;"
  8736. v-if="
  8737. worksStudent.length &&
  8738. worksStudent[toolIndex].length > 0
  8739. "
  8740. >
  8741. <div class="worksTop">
  8742. <div>作业预览</div>
  8743. <div
  8744. class="corOpen"
  8745. @click="contract(toolIndex)"
  8746. v-if="
  8747. isCloseList[toolIndex].isCloseBoolean &&
  8748. isCloseList[toolIndex].isClose == 0
  8749. "
  8750. >
  8751. 折叠
  8752. </div>
  8753. <div
  8754. class="corOpen"
  8755. @click="contract(toolIndex)"
  8756. v-if="isCloseList[toolIndex].isClose == 1"
  8757. >
  8758. 展开
  8759. </div>
  8760. </div>
  8761. <div
  8762. style="display: flex;"
  8763. v-if="
  8764. (courseDetail.userid == userid ||
  8765. (courseDetail.course_teacher &&
  8766. courseDetail.course_teacher.indexOf(userid) !=
  8767. -1)) &&
  8768. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8769. taskCount
  8770. ].eList &&
  8771. chapInfoList[courseType].chapterInfo[0].taskJson[
  8772. taskCount
  8773. ].eList.length) ||
  8774. (tool.eList && tool.eList.length)) &&
  8775. courseDetail.state == 6
  8776. "
  8777. >
  8778. <div
  8779. style="margin-right:10px"
  8780. class="ScoreBtn"
  8781. @click="
  8782. resetLoopEva(
  8783. worksStudent[toolIndex],
  8784. chapInfoList[courseType].chapterInfo[0].taskJson[
  8785. taskCount
  8786. ].eList,
  8787. courseType,
  8788. taskCount,
  8789. toolIndex,
  8790. tool.toolDetail,
  8791. worksStudent
  8792. )
  8793. "
  8794. >
  8795. 一键重置
  8796. </div>
  8797. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8798. <img
  8799. src="../../assets/icon/newIcons/rootImg.png"
  8800. alt=""
  8801. />
  8802. AI评分
  8803. </div>
  8804. <div
  8805. class="ScoreBtn"
  8806. v-else-if="!loopLoading[toolIndex].loading"
  8807. @click="
  8808. loopEva(
  8809. worksStudent[toolIndex],
  8810. chapInfoList[courseType].chapterInfo[0].taskJson[
  8811. taskCount
  8812. ].eList,
  8813. courseType,
  8814. taskCount,
  8815. toolIndex,
  8816. tool.toolDetail,
  8817. chapInfoList[courseType].chapterInfo[0].taskJson[
  8818. taskCount
  8819. ].taskDetail,
  8820. tool
  8821. )
  8822. "
  8823. >
  8824. <img
  8825. src="../../assets/icon/newIcons/rootImg.png"
  8826. alt=""
  8827. />
  8828. AI评分
  8829. </div>
  8830. <div class="ScoreBtn" v-else>
  8831. <img
  8832. src="../../assets/icon/newIcons/rootImg.png"
  8833. alt=""
  8834. />
  8835. 正在评分
  8836. </div>
  8837. </div>
  8838. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8839. </div>
  8840. <div
  8841. :id="'tool-' + toolIndex"
  8842. :style="{
  8843. height:
  8844. isCloseList[toolIndex].isClose == 1
  8845. ? retrnToolHeight('tool-' + toolIndex)
  8846. : 'auto',
  8847. overflow:
  8848. isCloseList[toolIndex].isClose == 1
  8849. ? 'hidden'
  8850. : 'unset'
  8851. }"
  8852. class="worksDetailBox"
  8853. v-if="
  8854. worksStudent.length &&
  8855. worksStudent[toolIndex].length > 0
  8856. "
  8857. >
  8858. <div
  8859. class="works"
  8860. style="
  8861. width: 200px;
  8862. height: 140px;
  8863. margin: 10px 10px 10px 0;
  8864. border-radius: 15px;
  8865. box-shadow: 0 0 6px 1px #dfdada;
  8866. "
  8867. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8868. :key="wIndex"
  8869. :class="w.type == 1 ? 'isTypeOne' : ''"
  8870. >
  8871. <div class="workImg">
  8872. <img :src="word" @click="openTable(w)" alt />
  8873. <!-- @click="openFile(w.works)" -->
  8874. <div
  8875. class="answerScore"
  8876. v-if="w.score"
  8877. @click.stop="openScore(w)"
  8878. :class="{
  8879. rightW:
  8880. w.userid == userid ||
  8881. tType == 1 ||
  8882. tType == 4 ||
  8883. w.ateacher == userid
  8884. }"
  8885. >
  8886. {{ JSON.parse(w.score).wScore }}分
  8887. </div>
  8888. <div
  8889. class="answerScore"
  8890. @click.stop="openScore(w)"
  8891. v-else-if="
  8892. courseDetail.userid == userid &&
  8893. courseDetail.state != 6 &&
  8894. chapInfoList[courseType].chapterInfo[0]
  8895. .taskJson[taskCount].eList &&
  8896. chapInfoList[courseType].chapterInfo[0]
  8897. .taskJson[taskCount].eList.length
  8898. "
  8899. :class="{
  8900. rightW:
  8901. w.userid == userid ||
  8902. tType == 1 ||
  8903. tType == 4 ||
  8904. w.ateacher == userid
  8905. }"
  8906. >
  8907. 评分
  8908. </div>
  8909. <!-- <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"> -->
  8910. <div
  8911. v-else-if="
  8912. (courseDetail.userid == userid ||
  8913. (courseDetail.course_teacher &&
  8914. courseDetail.course_teacher.indexOf(userid) !=
  8915. -1) ||
  8916. (w.userid == userid && sIsOpen)) &&
  8917. courseDetail.state == 6 &&
  8918. ((chapInfoList[courseType].chapterInfo[0]
  8919. .taskJson[taskCount].eList &&
  8920. chapInfoList[courseType].chapterInfo[0]
  8921. .taskJson[taskCount].eList.length) ||
  8922. (tool.eList && tool.eList.length))
  8923. "
  8924. >
  8925. <el-popover
  8926. placement="top"
  8927. width="318"
  8928. :disabled="AIloading[toolIndex][wIndex].loading"
  8929. trigger="hover"
  8930. >
  8931. <markScore
  8932. :loading="AIloading[toolIndex][wIndex].loading"
  8933. :markScoreVisible="markScoreVisible"
  8934. :ref="`markSco${toolIndex}${wIndex}`"
  8935. @updateLoading="updateLoading"
  8936. @updateDocSco="updateDocSco"
  8937. @refreshOther="refreshOther"
  8938. @markScoreDig="markScoreDig"
  8939. :tool="tool"
  8940. :wIndex="wIndex"
  8941. :scoCon="w"
  8942. :toolIndex="toolIndex"
  8943. :key="refreshKey"
  8944. :stage="courseType"
  8945. :task="taskCount"
  8946. :scoTit="
  8947. chapInfoList[courseType].chapterInfo[0]
  8948. .taskJson[taskCount].eList
  8949. "
  8950. >
  8951. </markScore>
  8952. <div
  8953. class="answerScore"
  8954. @click="
  8955. markScoreDig2(
  8956. w.sName,
  8957. worksStudent,
  8958. w.userid,
  8959. toolIndex,
  8960. chapInfoList[courseType].chapterInfo[0]
  8961. .taskJson[taskCount].eList,
  8962. AIloading[toolIndex][wIndex].loading,
  8963. tool
  8964. )
  8965. "
  8966. slot="reference"
  8967. :class="{
  8968. rightW:
  8969. w.userid == userid ||
  8970. tType == 1 ||
  8971. tType == 4 ||
  8972. w.ateacher == userid
  8973. }"
  8974. >
  8975. <span v-if="AIloading[toolIndex][wIndex].sco">
  8976. {{
  8977. AIloading[toolIndex][wIndex].loading
  8978. ? "评分中"
  8979. : AIloading[toolIndex][wIndex].sco + "分"
  8980. }}
  8981. </span>
  8982. <span v-else>
  8983. {{
  8984. AIloading[toolIndex][wIndex].loading
  8985. ? "评分中"
  8986. : "评分"
  8987. }}
  8988. </span>
  8989. </div>
  8990. </el-popover>
  8991. </div>
  8992. <img
  8993. class="deleteImg"
  8994. src="../../assets/deleteworks.png"
  8995. v-if="
  8996. w.userid == userid || tType == 1 || tType == 4
  8997. "
  8998. @click.stop="deleteWorks(w.wid)"
  8999. alt
  9000. />
  9001. </div>
  9002. <div class="comment" style="min-width: 200px">
  9003. <div class="worksName">
  9004. <div>{{ w.sName }}</div>
  9005. </div>
  9006. <div class="commentList">
  9007. <div class="commentList">
  9008. <div
  9009. class="commentImg"
  9010. @click="
  9011. isLikes(
  9012. w.wid,
  9013. userid,
  9014. 1,
  9015. null,
  9016. w.isLikes,
  9017. w.sName
  9018. )
  9019. "
  9020. >
  9021. <img
  9022. :src="w.isLikes == true ? likes : noLikes"
  9023. alt=""
  9024. />
  9025. </div>
  9026. <div>{{ w.likesCount }}</div>
  9027. </div>
  9028. <div class="commentList" style="margin-right: 15px">
  9029. <div
  9030. class="commentImg"
  9031. @click="commentOther(w, toolIndex, wIndex)"
  9032. >
  9033. <img
  9034. src="../../assets/icon/comment/comment.png"
  9035. alt=""
  9036. />
  9037. </div>
  9038. <div>{{ w.commentCount }}</div>
  9039. </div>
  9040. </div>
  9041. </div>
  9042. </div>
  9043. </div>
  9044. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9045. 未提交
  9046. </div>
  9047. <div
  9048. class="noWorksS"
  9049. v-if="noWorksS && noWorksS[toolIndex].length"
  9050. >
  9051. <div
  9052. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9053. :key="sIndex"
  9054. class="noWorksName"
  9055. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9056. >
  9057. <el-tooltip
  9058. effect="dark"
  9059. :content="s.student"
  9060. placement="top"
  9061. >
  9062. <span>{{ s.student }}</span>
  9063. </el-tooltip>
  9064. </div>
  9065. </div>
  9066. </div>
  9067. <div
  9068. v-if="
  9069. tType &&
  9070. tType == 2 &&
  9071. !sIsOpen &&
  9072. tool.tool.indexOf(48) != -1
  9073. "
  9074. class="worksBox"
  9075. >
  9076. <div
  9077. class="zuoyeYulan"
  9078. v-if="workStudent[toolIndex].length > 0"
  9079. >
  9080. <span class="worksTitle">作业预览</span>
  9081. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9082. </div>
  9083. <div
  9084. class="worksDetailBox"
  9085. v-if="workStudent[toolIndex].length > 0"
  9086. >
  9087. <div
  9088. class="works"
  9089. style="
  9090. width: 200px;
  9091. height: 140px;
  9092. margin: 10px 10px 10px 0;
  9093. box-shadow: 0 0 6px 1px #dfdada;
  9094. "
  9095. v-for="(w, wIndex) in workStudent[toolIndex]"
  9096. :key="wIndex"
  9097. >
  9098. <div class="workImg">
  9099. <img :src="word" @click="openTable(w)" alt />
  9100. <div
  9101. class="answerScore"
  9102. v-if="w.score"
  9103. @click.stop="openScore(w)"
  9104. :class="{
  9105. rightW:
  9106. w.userid == userid || tType == 1 || tType == 4
  9107. }"
  9108. >
  9109. {{ JSON.parse(w.score).wScore }}分
  9110. </div>
  9111. <div
  9112. class="answerScore"
  9113. @click.stop="openScore(w)"
  9114. v-else-if="courseDetail.userid == userid"
  9115. :class="{
  9116. rightW:
  9117. w.userid == userid || tType == 1 || tType == 4
  9118. }"
  9119. >
  9120. 评分
  9121. </div>
  9122. <div
  9123. class="stuLookScore"
  9124. v-if="
  9125. w.userid == userid ||
  9126. (tType == 1 &&
  9127. courseDetail.state == 6 &&
  9128. ((chapInfoList[courseType].chapterInfo[0]
  9129. .taskJson[taskCount].eList &&
  9130. chapInfoList[courseType].chapterInfo[0]
  9131. .taskJson[taskCount].eList.length) ||
  9132. (tool.eList && tool.eList.length)))
  9133. "
  9134. >
  9135. <el-popover
  9136. placement="top"
  9137. width="318"
  9138. trigger="hover"
  9139. >
  9140. <markScore
  9141. :loading="AIloading[toolIndex][wIndex].loading"
  9142. :markScoreVisible="markScoreVisible"
  9143. :ref="`markSco${toolIndex}${wIndex}`"
  9144. @updateLoading="updateLoading"
  9145. @updateDocSco="updateDocSco"
  9146. @refreshOther="refreshOther"
  9147. @markScoreDig="markScoreDig"
  9148. :tool="tool"
  9149. :wIndex="wIndex"
  9150. :scoCon="w"
  9151. :toolIndex="toolIndex"
  9152. :key="refreshKey"
  9153. :stage="courseType"
  9154. :task="taskCount"
  9155. :scoTit="
  9156. chapInfoList[courseType].chapterInfo[0]
  9157. .taskJson[taskCount].eList
  9158. "
  9159. >
  9160. </markScore>
  9161. <div
  9162. @click="
  9163. markScoreDig2(
  9164. w.sName,
  9165. worksStudent,
  9166. w.userid,
  9167. toolIndex,
  9168. chapInfoList[courseType].chapterInfo[0]
  9169. .taskJson[taskCount].eList,
  9170. AIloading[toolIndex][wIndex].loading,
  9171. tool
  9172. )
  9173. "
  9174. slot="reference"
  9175. >
  9176. <span v-if="AIloading[toolIndex][wIndex].sco">
  9177. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9178. </span>
  9179. <span v-else>
  9180. 评分
  9181. </span>
  9182. </div>
  9183. </el-popover>
  9184. </div>
  9185. <img
  9186. class="deleteImg"
  9187. src="../../assets/deleteworks.png"
  9188. v-if="
  9189. w.userid == userid || tType == 1 || tType == 4
  9190. "
  9191. @click.stop="deleteWorks(w.wid)"
  9192. alt
  9193. />
  9194. </div>
  9195. <div class="worksName">
  9196. <div>{{ w.sName }}</div>
  9197. </div>
  9198. </div>
  9199. </div>
  9200. </div>
  9201. <div
  9202. v-if="
  9203. tType &&
  9204. ((tType == 2 && sIsOpen == true) ||
  9205. tType == 1 ||
  9206. tType == 4) &&
  9207. tool.tool.indexOf(52) != -1
  9208. "
  9209. class="worksBox"
  9210. >
  9211. <div
  9212. class="zuoyeYulan"
  9213. style="display: flex;justify-content: space-between;align-items: center;"
  9214. v-if="
  9215. worksStudent.length &&
  9216. worksStudent[toolIndex].length > 0
  9217. "
  9218. >
  9219. <div class="worksTop">
  9220. <div>作业预览</div>
  9221. <div
  9222. class="corOpen"
  9223. @click="contract(toolIndex)"
  9224. v-if="
  9225. isCloseList[toolIndex].isCloseBoolean &&
  9226. isCloseList[toolIndex].isClose == 0
  9227. "
  9228. >
  9229. 折叠
  9230. </div>
  9231. <div
  9232. class="corOpen"
  9233. @click="contract(toolIndex)"
  9234. v-if="isCloseList[toolIndex].isClose == 1"
  9235. >
  9236. 展开
  9237. </div>
  9238. </div>
  9239. <div
  9240. style="display: flex;"
  9241. v-if="
  9242. (courseDetail.userid == userid ||
  9243. (courseDetail.course_teacher &&
  9244. courseDetail.course_teacher.indexOf(userid) !=
  9245. -1)) &&
  9246. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9247. taskCount
  9248. ].eList &&
  9249. chapInfoList[courseType].chapterInfo[0].taskJson[
  9250. taskCount
  9251. ].eList.length) ||
  9252. (tool.eList && tool.eList.length)) &&
  9253. courseDetail.state == 6
  9254. "
  9255. >
  9256. <!-- <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"> -->
  9257. <div
  9258. @click="
  9259. resetLoopEva(
  9260. worksStudent[toolIndex],
  9261. chapInfoList[courseType].chapterInfo[0].taskJson[
  9262. taskCount
  9263. ].eList,
  9264. courseType,
  9265. taskCount,
  9266. toolIndex,
  9267. tool.toolDetail,
  9268. tool
  9269. )
  9270. "
  9271. style="margin-right:10px"
  9272. class="ScoreBtn"
  9273. >
  9274. 一键重置
  9275. </div>
  9276. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9277. <img
  9278. src="../../assets/icon/newIcons/rootImg.png"
  9279. alt=""
  9280. />
  9281. AI评分
  9282. </div>
  9283. <div
  9284. class="ScoreBtn"
  9285. v-else-if="!loopLoading[toolIndex].loading"
  9286. @click="
  9287. loopEva(
  9288. worksStudent[toolIndex],
  9289. chapInfoList[courseType].chapterInfo[0].taskJson[
  9290. taskCount
  9291. ].eList,
  9292. courseType,
  9293. taskCount,
  9294. toolIndex,
  9295. tool.toolDetail,
  9296. chapInfoList[courseType].chapterInfo[0].taskJson[
  9297. taskCount
  9298. ].taskDetail,
  9299. tool
  9300. )
  9301. "
  9302. >
  9303. <img
  9304. src="../../assets/icon/newIcons/rootImg.png"
  9305. alt=""
  9306. />
  9307. AI评分
  9308. </div>
  9309. <div class="ScoreBtn" v-else>
  9310. <img
  9311. src="../../assets/icon/newIcons/rootImg.png"
  9312. alt=""
  9313. />
  9314. 正在评分
  9315. </div>
  9316. </div>
  9317. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9318. </div>
  9319. <div
  9320. :id="'tool-' + toolIndex"
  9321. :style="{
  9322. height:
  9323. isCloseList[toolIndex].isClose == 1
  9324. ? retrnToolHeight('tool-' + toolIndex)
  9325. : 'auto',
  9326. overflow:
  9327. isCloseList[toolIndex].isClose == 1
  9328. ? 'hidden'
  9329. : 'unset'
  9330. }"
  9331. class="worksDetailBox"
  9332. v-if="
  9333. worksStudent.length &&
  9334. worksStudent[toolIndex].length > 0
  9335. "
  9336. >
  9337. <div
  9338. class="works"
  9339. style="
  9340. width: 200px;
  9341. height: 140px;
  9342. margin: 10px 10px 10px 0;
  9343. border-radius: 15px;
  9344. box-shadow: 0 0 6px 1px #dfdada;
  9345. "
  9346. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9347. :key="wIndex"
  9348. :class="w.type == 1 ? 'isTypeOne' : ''"
  9349. >
  9350. <div class="workImg">
  9351. <img :src="word" @click="openWord(w)" alt />
  9352. <!-- @click="openFile(w.works)" -->
  9353. <div
  9354. class="answerScore"
  9355. v-if="w.score"
  9356. @click.stop="openScore(w)"
  9357. :class="{
  9358. rightW:
  9359. w.userid == userid ||
  9360. tType == 1 ||
  9361. tType == 4 ||
  9362. w.ateacher == userid
  9363. }"
  9364. >
  9365. {{ JSON.parse(w.score).wScore }}分
  9366. </div>
  9367. <div
  9368. class="answerScore"
  9369. @click.stop="openScore(w)"
  9370. v-else-if="
  9371. courseDetail.userid == userid &&
  9372. courseDetail.state != 6 &&
  9373. chapInfoList[courseType].chapterInfo[0]
  9374. .taskJson[taskCount].eList &&
  9375. chapInfoList[courseType].chapterInfo[0]
  9376. .taskJson[taskCount].eList.length
  9377. "
  9378. :class="{
  9379. rightW:
  9380. w.userid == userid ||
  9381. tType == 1 ||
  9382. tType == 4 ||
  9383. w.ateacher == userid
  9384. }"
  9385. >
  9386. 评分
  9387. </div>
  9388. <!-- <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"> -->
  9389. <div
  9390. v-else-if="
  9391. (courseDetail.userid == userid ||
  9392. (courseDetail.course_teacher &&
  9393. courseDetail.course_teacher.indexOf(userid) !=
  9394. -1) ||
  9395. (w.userid == userid && sIsOpen)) &&
  9396. courseDetail.state == 6 &&
  9397. ((chapInfoList[courseType].chapterInfo[0]
  9398. .taskJson[taskCount].eList &&
  9399. chapInfoList[courseType].chapterInfo[0]
  9400. .taskJson[taskCount].eList.length) ||
  9401. (tool.eList && tool.eList.length))
  9402. "
  9403. >
  9404. <!-- <div
  9405. class="answerScore"
  9406. @click="markScoreDig(w.userid,toolIndex)"
  9407. :class="{
  9408. rightW:
  9409. w.userid == userid ||
  9410. tType == 1 ||
  9411. tType == 4 ||
  9412. w.ateacher == userid,
  9413. }"
  9414. >
  9415. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  9416. </div> -->
  9417. <!-- @show="handleShow(toolIndex,wIndex)"
  9418. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  9419. <el-popover
  9420. placement="top"
  9421. width="318"
  9422. :disabled="AIloading[toolIndex][wIndex].loading"
  9423. trigger="hover"
  9424. >
  9425. <markScore
  9426. :loading="AIloading[toolIndex][wIndex].loading"
  9427. :markScoreVisible="markScoreVisible"
  9428. :ref="`markSco${toolIndex}${wIndex}`"
  9429. @updateLoading="updateLoading"
  9430. @updateDocSco="updateDocSco"
  9431. @refreshOther="refreshOther"
  9432. @markScoreDig="markScoreDig"
  9433. :tool="tool"
  9434. :wIndex="wIndex"
  9435. :scoCon="w"
  9436. :toolIndex="toolIndex"
  9437. :key="refreshKey"
  9438. :stage="courseType"
  9439. :task="taskCount"
  9440. :scoTit="
  9441. chapInfoList[courseType].chapterInfo[0]
  9442. .taskJson[taskCount].eList
  9443. "
  9444. >
  9445. </markScore>
  9446. <div
  9447. class="answerScore"
  9448. @click="
  9449. markScoreDig2(
  9450. w.sName,
  9451. worksStudent,
  9452. w.userid,
  9453. toolIndex,
  9454. chapInfoList[courseType].chapterInfo[0]
  9455. .taskJson[taskCount].eList,
  9456. AIloading[toolIndex][wIndex].loading,
  9457. tool
  9458. )
  9459. "
  9460. slot="reference"
  9461. :class="{
  9462. rightW:
  9463. w.userid == userid ||
  9464. tType == 1 ||
  9465. tType == 4 ||
  9466. w.ateacher == userid
  9467. }"
  9468. >
  9469. <span v-if="AIloading[toolIndex][wIndex].sco">
  9470. {{
  9471. AIloading[toolIndex][wIndex].loading
  9472. ? "评分中"
  9473. : AIloading[toolIndex][wIndex].sco + "分"
  9474. }}
  9475. </span>
  9476. <span v-else>
  9477. {{
  9478. AIloading[toolIndex][wIndex].loading
  9479. ? "评分中"
  9480. : "评分"
  9481. }}
  9482. </span>
  9483. </div>
  9484. </el-popover>
  9485. </div>
  9486. <img
  9487. class="deleteImg"
  9488. src="../../assets/deleteworks.png"
  9489. v-if="
  9490. w.userid == userid || tType == 1 || tType == 4
  9491. "
  9492. @click.stop="deleteWorks(w.wid)"
  9493. alt
  9494. />
  9495. </div>
  9496. <div class="comment" style="min-width: 200px">
  9497. <div class="worksName">
  9498. <div>{{ w.sName }}</div>
  9499. </div>
  9500. <div class="commentList">
  9501. <div class="commentList">
  9502. <div
  9503. class="commentImg"
  9504. @click="
  9505. isLikes(
  9506. w.wid,
  9507. userid,
  9508. 1,
  9509. null,
  9510. w.isLikes,
  9511. w.sName
  9512. )
  9513. "
  9514. >
  9515. <img
  9516. :src="w.isLikes == true ? likes : noLikes"
  9517. alt=""
  9518. />
  9519. </div>
  9520. <div>{{ w.likesCount }}</div>
  9521. </div>
  9522. <div class="commentList" style="margin-right: 15px">
  9523. <div
  9524. class="commentImg"
  9525. @click="commentOther(w, toolIndex, wIndex)"
  9526. >
  9527. <img
  9528. src="../../assets/icon/comment/comment.png"
  9529. alt=""
  9530. />
  9531. </div>
  9532. <div>{{ w.commentCount }}</div>
  9533. </div>
  9534. </div>
  9535. </div>
  9536. </div>
  9537. </div>
  9538. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9539. 未提交
  9540. </div>
  9541. <div
  9542. class="noWorksS"
  9543. v-if="noWorksS && noWorksS[toolIndex].length"
  9544. >
  9545. <div
  9546. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9547. :key="sIndex"
  9548. class="noWorksName"
  9549. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  9550. >
  9551. <el-tooltip
  9552. effect="dark"
  9553. :content="s.student"
  9554. placement="top"
  9555. >
  9556. <span>{{ s.student }}</span>
  9557. </el-tooltip>
  9558. </div>
  9559. </div>
  9560. </div>
  9561. <div
  9562. v-if="
  9563. tType &&
  9564. tType == 2 &&
  9565. !sIsOpen &&
  9566. tool.tool.indexOf(52) != -1
  9567. "
  9568. class="worksBox"
  9569. >
  9570. <div
  9571. class="zuoyeYulan"
  9572. v-if="workStudent[toolIndex].length > 0"
  9573. >
  9574. <span class="worksTitle">作业预览</span>
  9575. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9576. </div>
  9577. <div
  9578. class="worksDetailBox"
  9579. v-if="workStudent[toolIndex].length > 0"
  9580. >
  9581. <div
  9582. class="works"
  9583. style="
  9584. width: 200px;
  9585. height: 140px;
  9586. margin: 10px 10px 10px 0;
  9587. box-shadow: 0 0 6px 1px #dfdada;
  9588. "
  9589. v-for="(w, wIndex) in workStudent[toolIndex]"
  9590. :key="wIndex"
  9591. >
  9592. <div class="workImg">
  9593. <img :src="word" @click="openWord(w)" alt />
  9594. <div
  9595. class="answerScore"
  9596. v-if="w.score"
  9597. @click.stop="openScore(w)"
  9598. :class="{
  9599. rightW:
  9600. w.userid == userid || tType == 1 || tType == 4
  9601. }"
  9602. >
  9603. {{ JSON.parse(w.score).wScore }}分
  9604. </div>
  9605. <div
  9606. class="answerScore"
  9607. @click.stop="openScore(w)"
  9608. v-else-if="courseDetail.userid == userid"
  9609. :class="{
  9610. rightW:
  9611. w.userid == userid || tType == 1 || tType == 4
  9612. }"
  9613. >
  9614. 评分
  9615. </div>
  9616. <div
  9617. class="stuLookScore"
  9618. v-if="
  9619. w.userid == userid ||
  9620. (tType == 1 &&
  9621. courseDetail.state == 6 &&
  9622. ((chapInfoList[courseType].chapterInfo[0]
  9623. .taskJson[taskCount].eList &&
  9624. chapInfoList[courseType].chapterInfo[0]
  9625. .taskJson[taskCount].eList.length) ||
  9626. (tool.eList && tool.eList.length)))
  9627. "
  9628. >
  9629. <el-popover
  9630. placement="top"
  9631. width="318"
  9632. trigger="hover"
  9633. >
  9634. <markScore
  9635. :loading="AIloading[toolIndex][wIndex].loading"
  9636. :markScoreVisible="markScoreVisible"
  9637. :ref="`markSco${toolIndex}${wIndex}`"
  9638. @updateLoading="updateLoading"
  9639. @updateDocSco="updateDocSco"
  9640. @refreshOther="refreshOther"
  9641. @markScoreDig="markScoreDig"
  9642. :tool="tool"
  9643. :wIndex="wIndex"
  9644. :scoCon="w"
  9645. :toolIndex="toolIndex"
  9646. :key="refreshKey"
  9647. :stage="courseType"
  9648. :task="taskCount"
  9649. :scoTit="
  9650. chapInfoList[courseType].chapterInfo[0]
  9651. .taskJson[taskCount].eList
  9652. "
  9653. >
  9654. </markScore>
  9655. <div
  9656. @click="
  9657. markScoreDig2(
  9658. w.sName,
  9659. worksStudent,
  9660. w.userid,
  9661. toolIndex,
  9662. chapInfoList[courseType].chapterInfo[0]
  9663. .taskJson[taskCount].eList,
  9664. AIloading[toolIndex][wIndex].loading,
  9665. tool
  9666. )
  9667. "
  9668. slot="reference"
  9669. >
  9670. <span v-if="AIloading[toolIndex][wIndex].sco">
  9671. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9672. </span>
  9673. <span v-else>
  9674. 评分
  9675. </span>
  9676. </div>
  9677. </el-popover>
  9678. </div>
  9679. <img
  9680. class="deleteImg"
  9681. src="../../assets/deleteworks.png"
  9682. v-if="
  9683. w.userid == userid || tType == 1 || tType == 4
  9684. "
  9685. @click.stop="deleteWorks(w.wid)"
  9686. alt
  9687. />
  9688. </div>
  9689. <div class="worksName">
  9690. <div>{{ w.sName }}</div>
  9691. </div>
  9692. </div>
  9693. </div>
  9694. </div>
  9695. <div
  9696. v-if="tool.tool.indexOf(49) != -1"
  9697. class="xuan_right_box"
  9698. style="margin: 0 15px 0 25px; width: 93%"
  9699. >
  9700. <div
  9701. v-if="courseDetail.userid == userid"
  9702. style="
  9703. display: flex;
  9704. justify-content: flex-end;
  9705. margin-right: 10px;
  9706. "
  9707. >
  9708. <el-button
  9709. type="primary"
  9710. size="small"
  9711. @click="addTools(49, toolIndex, taskCount)"
  9712. >分组设置</el-button
  9713. >
  9714. </div>
  9715. <div
  9716. v-if="groupStudentUid[toolIndex]"
  9717. class="group_staic_box"
  9718. >
  9719. <div
  9720. v-for="(gp, gd) in tool.groupJson.group"
  9721. :key="gd"
  9722. class="group_staic"
  9723. >
  9724. <span> {{ gp.name }}</span>
  9725. <span>
  9726. 目前人数{{
  9727. groupStudentUid[toolIndex][gd].length
  9728. }}人</span
  9729. >
  9730. </div>
  9731. </div>
  9732. </div>
  9733. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  9734. <div
  9735. class="zuoyeYulan"
  9736. v-if="
  9737. worksStudent.length &&
  9738. worksStudent[toolIndex].length > 0
  9739. "
  9740. >
  9741. <span class="worksTitle">作业预览</span>
  9742. </div>
  9743. <div>
  9744. <div
  9745. class="group_workBox"
  9746. v-for="(g, gindex) in tool.groupJson.group"
  9747. :key="gindex"
  9748. >
  9749. <div
  9750. class="group_box"
  9751. v-if="
  9752. groupStudentUid[toolIndex] &&
  9753. worksStudent[toolIndex] &&
  9754. (worksStudent[toolIndex][gindex].length ||
  9755. groupStudentUid[toolIndex][gindex].indexOf(
  9756. userid
  9757. ) != -1)
  9758. "
  9759. >
  9760. <div class="group_title">
  9761. <el-tooltip
  9762. class="item"
  9763. effect="light"
  9764. :content="g.name"
  9765. placement="top"
  9766. >
  9767. <div class="group_name">{{ g.name }}</div>
  9768. </el-tooltip>
  9769. <el-button
  9770. type="primary"
  9771. v-if="
  9772. groupStudentUid[toolIndex][gindex].indexOf(
  9773. userid
  9774. ) != -1
  9775. "
  9776. @click="groupUpload(toolIndex, taskCount, gindex)"
  9777. >上传作业</el-button
  9778. >
  9779. </div>
  9780. <div class="group_work">
  9781. <div
  9782. class="works"
  9783. style="
  9784. width: 200px;
  9785. height: 140px;
  9786. margin: 10px 10px 10px 0;
  9787. border-radius: 15px;
  9788. box-shadow: 0 0 6px 1px #dfdada;
  9789. "
  9790. v-for="(w, wIndex) in worksStudent[toolIndex][
  9791. gindex
  9792. ]"
  9793. :key="wIndex"
  9794. :class="w.type == 1 ? 'isTypeOne' : ''"
  9795. >
  9796. <div class="workImg" v-if="w.type == 0">
  9797. <img
  9798. :src="w.works"
  9799. @click="previewImg(w.works, w)"
  9800. alt
  9801. />
  9802. <div
  9803. class="answerScore"
  9804. v-if="w.score"
  9805. @click.stop="openScore(w)"
  9806. :class="{
  9807. rightW:
  9808. w.userid == userid ||
  9809. tType == 1 ||
  9810. tType == 4 ||
  9811. w.ateacher == userid
  9812. }"
  9813. >
  9814. {{ JSON.parse(w.score).wScore }}分
  9815. </div>
  9816. <div
  9817. class="answerScore"
  9818. @click.stop="openScore(w)"
  9819. v-else-if="courseDetail.userid == userid"
  9820. :class="{
  9821. rightW:
  9822. w.userid == userid ||
  9823. tType == 1 ||
  9824. tType == 4 ||
  9825. w.ateacher == userid
  9826. }"
  9827. >
  9828. 评分
  9829. </div>
  9830. <img
  9831. class="deleteImg"
  9832. src="../../assets/deleteworks.png"
  9833. v-if="
  9834. w.userid == userid ||
  9835. tType == 1 ||
  9836. tType == 4
  9837. "
  9838. @click.stop="deleteWorks(w.wid)"
  9839. alt
  9840. />
  9841. </div>
  9842. <div class="workImg" v-if="w.type == 1">
  9843. <img
  9844. :src="word"
  9845. @click="openFile(w.works)"
  9846. alt
  9847. />
  9848. <!-- @click="openFile(w.works)" -->
  9849. <div
  9850. class="answerScore"
  9851. v-if="w.score"
  9852. @click.stop="openScore(w)"
  9853. :class="{
  9854. rightW:
  9855. w.userid == userid ||
  9856. tType == 1 ||
  9857. tType == 4 ||
  9858. w.ateacher == userid
  9859. }"
  9860. >
  9861. {{ JSON.parse(w.score).wScore }}分
  9862. </div>
  9863. <div
  9864. class="answerScore"
  9865. @click.stop="openScore(w)"
  9866. v-else-if="courseDetail.userid == userid"
  9867. :class="{
  9868. rightW:
  9869. w.userid == userid ||
  9870. tType == 1 ||
  9871. tType == 4 ||
  9872. w.ateacher == userid
  9873. }"
  9874. >
  9875. 评分
  9876. </div>
  9877. <img
  9878. class="deleteImg"
  9879. src="../../assets/deleteworks.png"
  9880. v-if="
  9881. w.userid == userid ||
  9882. tType == 1 ||
  9883. tType == 4
  9884. "
  9885. @click.stop="deleteWorks(w.wid)"
  9886. alt
  9887. />
  9888. </div>
  9889. <div class="workImg" v-if="w.type == 3">
  9890. <img
  9891. style="cursor: pointer"
  9892. :src="video"
  9893. @click="openVideo(w)"
  9894. alt
  9895. />
  9896. <!-- @click="openVideo(w.works)" -->
  9897. <div
  9898. class="answerScore"
  9899. v-if="w.score"
  9900. @click.stop="openScore(w)"
  9901. :class="{
  9902. rightW:
  9903. w.userid == userid ||
  9904. tType == 1 ||
  9905. tType == 4 ||
  9906. w.ateacher == userid
  9907. }"
  9908. >
  9909. {{ JSON.parse(w.score).wScore }}分
  9910. </div>
  9911. <div
  9912. class="answerScore"
  9913. @click.stop="openScore(w)"
  9914. v-else-if="courseDetail.userid == userid"
  9915. :class="{
  9916. rightW:
  9917. w.userid == userid ||
  9918. tType == 1 ||
  9919. tType == 4 ||
  9920. w.ateacher == userid
  9921. }"
  9922. >
  9923. 评分
  9924. </div>
  9925. <img
  9926. class="deleteImg"
  9927. src="../../assets/deleteworks.png"
  9928. v-if="
  9929. w.userid == userid ||
  9930. tType == 1 ||
  9931. tType == 4
  9932. "
  9933. @click.stop="deleteWorks(w.wid)"
  9934. alt
  9935. />
  9936. </div>
  9937. <div class="workImg" v-if="w.type == 12">
  9938. <img
  9939. style="cursor: pointer"
  9940. :src="word2"
  9941. @click="downloadFile(w.works)"
  9942. alt
  9943. />
  9944. <!-- @click="openVideo(w.works)" -->
  9945. <div
  9946. class="answerScore"
  9947. v-if="w.score"
  9948. @click.stop="openScore(w)"
  9949. :class="{
  9950. rightW:
  9951. w.userid == userid ||
  9952. tType == 1 ||
  9953. tType == 4 ||
  9954. w.ateacher == userid
  9955. }"
  9956. >
  9957. {{ JSON.parse(w.score).wScore }}分
  9958. </div>
  9959. <div
  9960. class="answerScore"
  9961. @click.stop="openScore(w)"
  9962. v-else-if="courseDetail.userid == userid"
  9963. :class="{
  9964. rightW:
  9965. w.userid == userid ||
  9966. tType == 1 ||
  9967. tType == 4 ||
  9968. w.ateacher == userid
  9969. }"
  9970. >
  9971. 评分
  9972. </div>
  9973. <img
  9974. class="deleteImg"
  9975. src="../../assets/deleteworks.png"
  9976. v-if="
  9977. w.userid == userid ||
  9978. tType == 1 ||
  9979. tType == 4
  9980. "
  9981. @click.stop="deleteWorks(w.wid)"
  9982. alt
  9983. />
  9984. </div>
  9985. <div class="comment" style="min-width: 200px">
  9986. <div class="worksName">
  9987. <div>{{ w.sName }}</div>
  9988. </div>
  9989. <div class="commentList">
  9990. <div class="commentList">
  9991. <div
  9992. class="commentImg"
  9993. @click="
  9994. isLikes(
  9995. w.wid,
  9996. userid,
  9997. 1,
  9998. null,
  9999. w.isLikes,
  10000. w.sName
  10001. )
  10002. "
  10003. >
  10004. <img
  10005. :src="
  10006. w.isLikes == true ? likes : noLikes
  10007. "
  10008. alt=""
  10009. />
  10010. </div>
  10011. <div>{{ w.likesCount }}</div>
  10012. </div>
  10013. <div
  10014. class="commentList"
  10015. style="margin-right: 15px"
  10016. >
  10017. <div
  10018. class="commentImg"
  10019. @click="
  10020. commentOther(
  10021. w,
  10022. toolIndex,
  10023. wIndex,
  10024. gindex
  10025. )
  10026. "
  10027. >
  10028. <img
  10029. src="../../assets/icon/comment/comment.png"
  10030. alt=""
  10031. />
  10032. </div>
  10033. <div>{{ w.commentCount }}</div>
  10034. </div>
  10035. </div>
  10036. </div>
  10037. </div>
  10038. </div>
  10039. </div>
  10040. </div>
  10041. </div>
  10042. </div>
  10043. <div
  10044. style="width:92%;margin: 0 0 0 40px;"
  10045. v-if="
  10046. courseDetail.state == 6 && tool.eList && tool.eList.length
  10047. "
  10048. >
  10049. <evaTable :eList="tool.eList"></evaTable>
  10050. </div>
  10051. </div>
  10052. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10053. 上传文件
  10054. <input
  10055. type="file"
  10056. accept="image/png, image/gif, image/jpeg"
  10057. style="display: none"
  10058. @change="beforeUpload1($event, 2, index)"
  10059. />
  10060. </div>-->
  10061. </div>
  10062. </div>
  10063. <!-- <div
  10064. class="vedioBox"
  10065. style="margin-top: 10px"
  10066. v-if="
  10067. courseDetail.userid == userid ||
  10068. (courseDetail.course_teacher &&
  10069. courseDetail.course_teacher.indexOf(userid) != -1)
  10070. "
  10071. :style="{
  10072. borderRadius:
  10073. !(
  10074. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10075. .toolChoose[0].tool &&
  10076. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10077. .toolChoose[0].tool.length > 0
  10078. ) &&
  10079. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10080. .taskDetail == '' &&
  10081. vChapterData[taskCount].length == 0 &&
  10082. fileC[taskCount].length == 0
  10083. ? '0 0 20px 20px'
  10084. : '20px',
  10085. }"
  10086. >
  10087. <div
  10088. class="queTop"
  10089. @click="isClose = !isClose"
  10090. style="
  10091. padding: 15px 0 15px 37px;
  10092. justify-content: space-between;
  10093. "
  10094. >
  10095. <div class="queTopTitle">新增工具</div>
  10096. <div class="queTopRight">
  10097. <div class="queTopClose" v-if="isClose == 0">
  10098. 展开
  10099. <div class="closeImg">
  10100. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10101. </div>
  10102. </div>
  10103. <div class="queTopClose" v-if="isClose == 1">
  10104. 折叠
  10105. <div class="openImg">
  10106. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10107. </div>
  10108. </div>
  10109. <el-button
  10110. style="margin: 0 30px 0 auto"
  10111. type="primary"
  10112. size="small"
  10113. v-if="isClose == 1 && checktoolArray.length > 0"
  10114. @click.stop="addToolChoose"
  10115. >确定</el-button
  10116. >
  10117. </div>
  10118. </div>
  10119. <div
  10120. class="tool_work_box"
  10121. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10122. >
  10123. <div class="tool_box">
  10124. <div class="tool_type_box">
  10125. <div class="chooseWho">
  10126. <div
  10127. :class="toolType == 0 ? 'isChooseActive' : ''"
  10128. @click="(toolType = 0), $forceUpdate()"
  10129. >
  10130. 互动类
  10131. </div>
  10132. <div
  10133. :class="toolType == 1 ? 'isChooseActive' : ''"
  10134. @click="(toolType = 1), $forceUpdate()"
  10135. >
  10136. 思维类
  10137. </div>
  10138. <div
  10139. :class="toolType == 2 ? 'isChooseActive' : ''"
  10140. @click="(toolType = 2), $forceUpdate()"
  10141. >
  10142. 测评类
  10143. </div>
  10144. <div
  10145. :class="toolType == 3 ? 'isChooseActive' : ''"
  10146. @click="(toolType = 3), $forceUpdate()"
  10147. >
  10148. 编程类
  10149. </div>
  10150. <div
  10151. :class="toolType == 5 ? 'isChooseActive' : ''"
  10152. @click="(toolType = 5), $forceUpdate()"
  10153. >
  10154. 学科类
  10155. </div>
  10156. </div>
  10157. </div>
  10158. <div>
  10159. <div class="toolSort" v-if="toolType == 0">
  10160. <div class="tool">
  10161. <div class="whiteBIcon" @click="addTools2(10)">
  10162. <img
  10163. src="../../assets/icon/thirdToolList/time.png"
  10164. alt
  10165. />
  10166. <div style="margin: 5px 0">倒计时</div>
  10167. </div>
  10168. <div class="check" @click="addTools2(10)">
  10169. <img
  10170. src="../../assets/icon/checkNo.png"
  10171. alt
  10172. v-if="checktoolArray.indexOf(10) == -1"
  10173. />
  10174. <div class="checkDiv" v-else>
  10175. <img src="../../assets/icon/checkedIs.png" alt /><span
  10176. >已选择</span
  10177. >
  10178. </div>
  10179. </div>
  10180. </div>
  10181. <div class="tool">
  10182. <div class="whiteBIcon" @click="addTools2(65)">
  10183. <img
  10184. src="../../assets/icon/firstToolList/pickPeople.png"
  10185. alt
  10186. />
  10187. <div style="margin: 5px 0">挑人</div>
  10188. </div>
  10189. <div class="check" @click="addTools2(65)">
  10190. <img
  10191. src="../../assets/icon/checkNo.png"
  10192. alt
  10193. v-if="checktoolArray.indexOf(65) == -1"
  10194. />
  10195. <div class="checkDiv" v-else>
  10196. <img src="../../assets/icon/checkedIs.png" alt /><span
  10197. >已选择</span
  10198. >
  10199. </div>
  10200. </div>
  10201. </div>
  10202. </div>
  10203. <div class="toolSort" v-if="toolType == 1">
  10204. <div class="tool">
  10205. <div class="whiteBIcon" @click="addTools2(7)">
  10206. <img
  10207. src="../../assets/icon/secondToolList/mindNetwork.png"
  10208. alt
  10209. />
  10210. <div style="margin: 5px 0">思维网格</div>
  10211. </div>
  10212. <div class="check" @click="addTools2(7)">
  10213. <img
  10214. src="../../assets/icon/checkNo.png"
  10215. alt
  10216. v-if="checktoolArray.indexOf(7) == -1"
  10217. />
  10218. <div class="checkDiv" v-else>
  10219. <img src="../../assets/icon/checkedIs.png" alt /><span
  10220. >已选择</span
  10221. >
  10222. </div>
  10223. </div>
  10224. </div>
  10225. <div class="tool">
  10226. <div class="whiteBIcon" @click="addTools2(1)">
  10227. <img
  10228. src="../../assets/icon/secondToolList/whiteBoard.png"
  10229. alt
  10230. />
  10231. <div style="margin: 5px 0">电子白板</div>
  10232. </div>
  10233. <div class="check" @click="addTools2(1)">
  10234. <img
  10235. src="../../assets/icon/checkNo.png"
  10236. alt
  10237. v-if="checktoolArray.indexOf(1) == -1"
  10238. />
  10239. <div class="checkDiv" v-else>
  10240. <img src="../../assets/icon/checkedIs.png" alt /><span
  10241. >已选择</span
  10242. >
  10243. </div>
  10244. </div>
  10245. </div>
  10246. <div class="tool">
  10247. <div class="whiteBIcon" @click="addTools2(52)">
  10248. <img
  10249. src="../../assets/icon/fourthToolList/text.png"
  10250. alt
  10251. />
  10252. <div style="margin: 5px 0">文档</div>
  10253. </div>
  10254. <div class="check" @click="addTools2(52)">
  10255. <img
  10256. src="../../assets/icon/checkNo.png"
  10257. alt
  10258. v-if="checktoolArray.indexOf(52) == -1"
  10259. />
  10260. <div class="checkDiv" v-else>
  10261. <img src="../../assets/icon/checkedIs.png" alt /><span
  10262. >已选择</span
  10263. >
  10264. </div>
  10265. </div>
  10266. </div>
  10267. <div class="tool">
  10268. <div class="whiteBIcon" @click="addTools2(3)">
  10269. <img
  10270. src="../../assets/icon/secondToolList/mindMapping.png"
  10271. alt
  10272. />
  10273. <div style="margin: 5px 0">思维导图</div>
  10274. </div>
  10275. <div class="check" @click="addTools2(3)">
  10276. <img
  10277. src="../../assets/icon/checkNo.png"
  10278. alt
  10279. v-if="checktoolArray.indexOf(3) == -1"
  10280. />
  10281. <div class="checkDiv" v-else>
  10282. <img src="../../assets/icon/checkedIs.png" alt /><span
  10283. >已选择</span
  10284. >
  10285. </div>
  10286. </div>
  10287. </div>
  10288. <div class="tool">
  10289. <div class="whiteBIcon" @click="addTools2(48)">
  10290. <img
  10291. src="../../assets/icon/fourthToolList/table.png"
  10292. alt
  10293. />
  10294. <div style="margin: 5px 0">表格</div>
  10295. </div>
  10296. <div class="check" @click="addTools2(48)">
  10297. <img
  10298. src="../../assets/icon/checkNo.png"
  10299. alt
  10300. v-if="checktoolArray.indexOf(48) == -1"
  10301. />
  10302. <div class="checkDiv" v-else>
  10303. <img src="../../assets/icon/checkedIs.png" alt /><span
  10304. >已选择</span
  10305. >
  10306. </div>
  10307. </div>
  10308. </div>
  10309. </div>
  10310. <div class="toolSort" v-if="toolType == 6">
  10311. <div v-show="tooC == 49">
  10312. <img
  10313. @click="addTools(tooC, toolIndex, taskCount)"
  10314. src="../../assets/icon/fourthToolList/group.png"
  10315. alt
  10316. />
  10317. <div style="margin: 5px 0">学生分组</div>
  10318. </div>
  10319. </div>
  10320. <div class="toolSort" v-if="toolType == 2">
  10321. <div class="tool">
  10322. <div class="whiteBIcon" @click="addTools2(16)">
  10323. <img
  10324. src="../../assets/icon/thirdToolList/work.png"
  10325. alt
  10326. />
  10327. <div style="margin: 5px 0">作业提交</div>
  10328. </div>
  10329. <div class="check" @click="addTools2(16)">
  10330. <img
  10331. src="../../assets/icon/checkNo.png"
  10332. alt
  10333. v-if="checktoolArray.indexOf(16) == -1"
  10334. />
  10335. <div class="checkDiv" v-else>
  10336. <img src="../../assets/icon/checkedIs.png" alt /><span
  10337. >已选择</span
  10338. >
  10339. </div>
  10340. </div>
  10341. </div>
  10342. <div class="tool">
  10343. <div class="whiteBIcon" @click="addTools2(50)">
  10344. <img
  10345. src="../../assets/icon/thirdToolList/plwork.png"
  10346. alt
  10347. />
  10348. <div style="margin: 5px 0">批量上传</div>
  10349. </div>
  10350. <div class="check" @click="addTools2(50)">
  10351. <img
  10352. src="../../assets/icon/checkNo.png"
  10353. alt
  10354. v-if="checktoolArray.indexOf(50) == -1"
  10355. />
  10356. <div class="checkDiv" v-else>
  10357. <img src="../../assets/icon/checkedIs.png" alt /><span
  10358. >已选择</span
  10359. >
  10360. </div>
  10361. </div>
  10362. </div>
  10363. </div>
  10364. <div class="toolSort" v-if="toolType == 3">
  10365. <div class="tool">
  10366. <div class="whiteBIcon" @click="addTools2(18)">
  10367. <img
  10368. src="../../assets/icon/thirdToolList/trainPlatform.png"
  10369. alt
  10370. />
  10371. <div style="margin: 5px 0">训练平台</div>
  10372. </div>
  10373. <div class="check" @click="addTools2(18)">
  10374. <img
  10375. src="../../assets/icon/checkNo.png"
  10376. alt
  10377. v-if="checktoolArray.indexOf(18) == -1"
  10378. />
  10379. <div class="checkDiv" v-else>
  10380. <img src="../../assets/icon/checkedIs.png" alt /><span
  10381. >已选择</span
  10382. >
  10383. </div>
  10384. </div>
  10385. </div>
  10386. <div class="tool">
  10387. <div class="whiteBIcon" @click="addTools2(21)">
  10388. <img
  10389. src="../../assets/icon/fourthToolList/program.png"
  10390. alt
  10391. />
  10392. <div style="margin: 5px 0">AIoT Blockly</div>
  10393. </div>
  10394. <div class="check" @click="addTools2(21)">
  10395. <img
  10396. src="../../assets/icon/checkNo.png"
  10397. alt
  10398. v-if="checktoolArray.indexOf(21) == -1"
  10399. />
  10400. <div class="checkDiv" v-else>
  10401. <img src="../../assets/icon/checkedIs.png" alt /><span
  10402. >已选择</span
  10403. >
  10404. </div>
  10405. </div>
  10406. </div>
  10407. <div class="tool">
  10408. <div class="whiteBIcon" @click="addTools2(23)">
  10409. <img
  10410. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  10411. alt
  10412. />
  10413. <div style="margin: 5px 0">AI Python</div>
  10414. </div>
  10415. <div class="check" @click="addTools2(23)">
  10416. <img
  10417. src="../../assets/icon/checkNo.png"
  10418. alt
  10419. v-if="checktoolArray.indexOf(23) == -1"
  10420. />
  10421. <div class="checkDiv" v-else>
  10422. <img src="../../assets/icon/checkedIs.png" alt /><span
  10423. >已选择</span
  10424. >
  10425. </div>
  10426. </div>
  10427. </div>
  10428. <div class="tool">
  10429. <div class="whiteBIcon" @click="addTools2(24)">
  10430. <img
  10431. src="../../assets/icon/fourthToolList/AIprogram.png"
  10432. alt
  10433. />
  10434. <div style="margin: 5px 0">AI Blockly</div>
  10435. </div>
  10436. <div class="check" @click="addTools2(24)">
  10437. <img
  10438. src="../../assets/icon/checkNo.png"
  10439. alt
  10440. v-if="checktoolArray.indexOf(24) == -1"
  10441. />
  10442. <div class="checkDiv" v-else>
  10443. <img src="../../assets/icon/checkedIs.png" alt /><span
  10444. >已选择</span
  10445. >
  10446. </div>
  10447. </div>
  10448. </div>
  10449. <div class="tool">
  10450. <div class="whiteBIcon" @click="addTools2(32)">
  10451. <img
  10452. src="../../assets/icon/thirdToolList/code.png"
  10453. alt
  10454. />
  10455. <div style="margin: 5px 0">源码编辑</div>
  10456. </div>
  10457. <div class="check" @click="addTools2(32)">
  10458. <img
  10459. src="../../assets/icon/checkNo.png"
  10460. alt
  10461. v-if="checktoolArray.indexOf(32) == -1"
  10462. />
  10463. <div class="checkDiv" v-else>
  10464. <img src="../../assets/icon/checkedIs.png" alt /><span
  10465. >已选择</span
  10466. >
  10467. </div>
  10468. </div>
  10469. </div>
  10470. <div class="tool">
  10471. <div class="whiteBIcon" @click="addTools2(57)">
  10472. <img
  10473. src="../../assets/icon/fourthToolList/cocopi.png"
  10474. alt
  10475. />
  10476. <div style="margin: 5px 0">CocoPi</div>
  10477. </div>
  10478. <div class="check" @click="addTools2(57)">
  10479. <img
  10480. src="../../assets/icon/checkNo.png"
  10481. alt
  10482. v-if="checktoolArray.indexOf(57) == -1"
  10483. />
  10484. <div class="checkDiv" v-else>
  10485. <img src="../../assets/icon/checkedIs.png" alt /><span
  10486. >已选择</span
  10487. >
  10488. </div>
  10489. </div>
  10490. </div>
  10491. <div class="tool">
  10492. <div class="whiteBIcon" @click="addTools2(63)">
  10493. <img
  10494. src="../../assets/icon/fourthToolList/Wood.png"
  10495. alt
  10496. />
  10497. <div style="margin: 5px 0">海龟编程</div>
  10498. </div>
  10499. <div class="check" @click="addTools2(63)">
  10500. <img
  10501. src="../../assets/icon/checkNo.png"
  10502. alt
  10503. v-if="checktoolArray.indexOf(63) == -1"
  10504. />
  10505. <div class="checkDiv" v-else>
  10506. <img src="../../assets/icon/checkedIs.png" alt /><span
  10507. >已选择</span
  10508. >
  10509. </div>
  10510. </div>
  10511. </div>
  10512. </div>
  10513. <div class="toolSort" v-if="toolType == 5">
  10514. <div class="tool">
  10515. <div class="whiteBIcon" @click="addTools2(28)">
  10516. <img
  10517. src="../../assets/icon/secondToolList/translation.png"
  10518. alt
  10519. />
  10520. <div style="margin: 5px 0">翻译</div>
  10521. </div>
  10522. <div class="check" @click="addTools2(28)">
  10523. <img
  10524. src="../../assets/icon/checkNo.png"
  10525. alt
  10526. v-if="checktoolArray.indexOf(28) == -1"
  10527. />
  10528. <div class="checkDiv" v-else>
  10529. <img src="../../assets/icon/checkedIs.png" alt /><span
  10530. >已选择</span
  10531. >
  10532. </div>
  10533. </div>
  10534. </div>
  10535. <div class="tool">
  10536. <div class="whiteBIcon" @click="addTools2(31)">
  10537. <img
  10538. src="../../assets/icon/secondToolList/networkPanel.png"
  10539. alt
  10540. />
  10541. <div style="margin: 5px 0">数字画板</div>
  10542. </div>
  10543. <div class="check" @click="addTools2(31)">
  10544. <img
  10545. src="../../assets/icon/checkNo.png"
  10546. alt
  10547. v-if="checktoolArray.indexOf(31) == -1"
  10548. />
  10549. <div class="checkDiv" v-else>
  10550. <img src="../../assets/icon/checkedIs.png" alt /><span
  10551. >已选择</span
  10552. >
  10553. </div>
  10554. </div>
  10555. </div>
  10556. <div class="tool">
  10557. <div class="whiteBIcon" @click="addTools2(39)">
  10558. <img
  10559. src="../../assets/icon/secondToolList/GeoGebra.png"
  10560. alt
  10561. />
  10562. <div style="margin: 5px 0">GeoGebra</div>
  10563. </div>
  10564. <div class="check" @click="addTools2(39)">
  10565. <img
  10566. src="../../assets/icon/checkNo.png"
  10567. alt
  10568. v-if="checktoolArray.indexOf(39) == -1"
  10569. />
  10570. <div class="checkDiv" v-else>
  10571. <img src="../../assets/icon/checkedIs.png" alt /><span
  10572. >已选择</span
  10573. >
  10574. </div>
  10575. </div>
  10576. </div>
  10577. <div class="tool">
  10578. <div class="whiteBIcon" @click="addTools2(66)">
  10579. <img
  10580. src="../../assets/icon/secondToolList/formulaEdi.png"
  10581. alt
  10582. />
  10583. <div style="margin: 5px 0">公式编辑</div>
  10584. </div>
  10585. <div class="check" @click="addTools2(66)">
  10586. <img
  10587. src="../../assets/icon/checkNo.png"
  10588. alt
  10589. v-if="checktoolArray.indexOf(66) == -1"
  10590. />
  10591. <div class="checkDiv" v-else>
  10592. <img src="../../assets/icon/checkedIs.png" alt /><span
  10593. >已选择</span
  10594. >
  10595. </div>
  10596. </div>
  10597. </div>
  10598. <div class="tool">
  10599. <div class="whiteBIcon" @click="addTools2(67)">
  10600. <img
  10601. src="../../assets/icon/secondToolList/molStr.png"
  10602. alt
  10603. />
  10604. <div style="margin: 5px 0">分子结构</div>
  10605. </div>
  10606. <div class="check" @click="addTools2(67)">
  10607. <img
  10608. src="../../assets/icon/checkNo.png"
  10609. alt
  10610. v-if="checktoolArray.indexOf(67) == -1"
  10611. />
  10612. <div class="checkDiv" v-else>
  10613. <img src="../../assets/icon/checkedIs.png" alt /><span
  10614. >已选择</span
  10615. >
  10616. </div>
  10617. </div>
  10618. </div>
  10619. <div class="tool">
  10620. <div class="whiteBIcon" @click="addTools2(68)">
  10621. <img
  10622. src="../../assets/icon/secondToolList/timeAxis.png"
  10623. alt
  10624. />
  10625. <div style="margin: 5px 0">时间轴</div>
  10626. </div>
  10627. <div class="check" @click="addTools2(68)">
  10628. <img
  10629. src="../../assets/icon/checkNo.png"
  10630. alt
  10631. v-if="checktoolArray.indexOf(68) == -1"
  10632. />
  10633. <div class="checkDiv" v-else>
  10634. <img src="../../assets/icon/checkedIs.png" alt /><span
  10635. >已选择</span
  10636. >
  10637. </div>
  10638. </div>
  10639. </div>
  10640. </div>
  10641. <div class="toolSort" v-if="toolType == 7">
  10642. <div class="tool">
  10643. <div class="whiteBIcon" @click="addTools2(40)">
  10644. <img
  10645. src="../../assets/icon/secondToolList/eval.png"
  10646. alt
  10647. />
  10648. <div style="margin: 5px 0">个人评价</div>
  10649. </div>
  10650. <div class="check" @click="addTools2(40)">
  10651. <img
  10652. src="../../assets/icon/checkNo.png"
  10653. alt
  10654. v-if="checktoolArray.indexOf(40) == -1"
  10655. />
  10656. <div class="checkDiv" v-else>
  10657. <img src="../../assets/icon/checkedIs.png" alt /><span
  10658. >已选择</span
  10659. >
  10660. </div>
  10661. </div>
  10662. </div>
  10663. </div>
  10664. <div class="toolSort" v-if="toolType == 4">
  10665. <div class="tool">
  10666. <div class="whiteBIcon" @click="addTools2(26)">
  10667. <img
  10668. src="../../assets/icon/thirdToolList/courseDesign.png"
  10669. alt
  10670. />
  10671. <div style="margin: 5px 0">课程设计</div>
  10672. </div>
  10673. <div class="check" @click="addTools2(26)">
  10674. <img
  10675. src="../../assets/icon/checkNo.png"
  10676. alt
  10677. v-if="checktoolArray.indexOf(26) == -1"
  10678. />
  10679. <div class="checkDiv" v-else>
  10680. <img src="../../assets/icon/checkedIs.png" alt /><span
  10681. >已选择</span
  10682. >
  10683. </div>
  10684. </div>
  10685. </div>
  10686. <div class="tool">
  10687. <div class="whiteBIcon" @click="addTools2(25)">
  10688. <img
  10689. src="../../assets/icon/thirdToolList/evalua.png"
  10690. alt
  10691. />
  10692. <div style="margin: 5px 0">目标管理</div>
  10693. </div>
  10694. <div class="check" @click="addTools2(25)">
  10695. <img
  10696. src="../../assets/icon/checkNo.png"
  10697. alt
  10698. v-if="checktoolArray.indexOf(25) == -1"
  10699. />
  10700. <div class="checkDiv" v-else>
  10701. <img src="../../assets/icon/checkedIs.png" alt /><span
  10702. >已选择</span
  10703. >
  10704. </div>
  10705. </div>
  10706. </div>
  10707. </div>
  10708. </div>
  10709. </div>
  10710. </div>
  10711. </div> -->
  10712. <div
  10713. class="vedioBox"
  10714. style="margin-top: 10px; border-radius: 20px"
  10715. v-if="
  10716. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10717. .eList &&
  10718. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10719. .eList.length &&
  10720. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10721. .eList.length > 0 &&
  10722. tType != 2
  10723. "
  10724. >
  10725. <div
  10726. class="queTop"
  10727. style="
  10728. font-size: 20px;
  10729. padding: 15px 0 15px 37px;
  10730. font-weight: bold;
  10731. "
  10732. >
  10733. <!-- <div class="question" style="width: 30px">
  10734. <img src="../assets/icon/toolIcon.png" alt />
  10735. </div>
  10736. <div class="queTitle">
  10737. <div>工具</div>
  10738. </div>-->
  10739. 评一评
  10740. </div>
  10741. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  10742. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  10743. <el-table
  10744. :data="
  10745. chapInfoList[courseType].chapterInfo[0].taskJson[
  10746. taskCount
  10747. ].eList
  10748. "
  10749. :header-cell-style="{ background: '#F0F4FA' }"
  10750. :row-class-name="tableRowClassName"
  10751. border
  10752. stripe
  10753. style="width: 100%"
  10754. >
  10755. <el-table-column
  10756. label="评价名称"
  10757. align="center"
  10758. >
  10759. <template slot-scope="scope"
  10760. ><div>{{ scope.row.value }}</div></template
  10761. >
  10762. </el-table-column>
  10763. <el-table-column
  10764. label="评价描述"
  10765. align="center"
  10766. >
  10767. <template slot-scope="scope"
  10768. ><div>
  10769. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  10770. </div></template
  10771. >
  10772. </el-table-column>
  10773. <el-table-column label="目标" align="center">
  10774. <template slot-scope="scope"
  10775. ><div>
  10776. {{
  10777. scope.row.target
  10778. ? scope.row.target[scope.row.target.length - 1]
  10779. : "-"
  10780. }}
  10781. </div></template
  10782. ></el-table-column
  10783. >
  10784. </el-table>
  10785. <!-- <div
  10786. v-for="(eItem, eIndex) in chapInfoList[courseType]
  10787. .chapterInfo[0].taskJson[taskCount].eList"
  10788. :key="eIndex"
  10789. class="elist_input_box"
  10790. >
  10791. <div style="width: 95%">
  10792. <div
  10793. style="
  10794. display: flex;
  10795. flex-direction: row;
  10796. flex-wrap: nowrap;
  10797. align-items: center;
  10798. "
  10799. >
  10800. <div style="max-width: calc(100% - 285px)">
  10801. <span>{{ eItem.value }}</span>
  10802. </div>
  10803. <div
  10804. style="
  10805. padding-left: 25px;
  10806. display: flex;
  10807. flex-direction: row;
  10808. align-items: center;
  10809. "
  10810. >
  10811. <el-rate
  10812. v-model="eItem.score"
  10813. :colors="colors"
  10814. disabled
  10815. ></el-rate>
  10816. </div>
  10817. </div>
  10818. <div class="elist_inptu_text" style="padding-left: 10px">
  10819. <span v-if="eItem.detail != ''">{{
  10820. eItem.detail
  10821. }}</span>
  10822. <span v-else style="color: #b2b1b3; font-size: 14px"
  10823. >暂无描述...</span
  10824. >
  10825. </div>
  10826. </div>
  10827. </div> -->
  10828. </div>
  10829. <div
  10830. v-if="evalua"
  10831. style="
  10832. border: 1px solid #e5e5e5;
  10833. max-width: 650px;
  10834. width: 100%;
  10835. margin-top: 20px;
  10836. box-shadow: 3px 1px 15px 3px #e0e0e0;
  10837. "
  10838. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  10839. >
  10840. <div class="e_add_top">
  10841. <div class="e_add_title" style="width: 100%">
  10842. <!-- <span>目标管理名称</span> -->
  10843. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  10844. <img
  10845. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  10846. src="../../assets/line.png"
  10847. class="cru_line"
  10848. style="
  10849. width: 125px;
  10850. height: 20px;
  10851. bottom: -10px;
  10852. left: 5px;
  10853. "
  10854. />
  10855. <!-- <el-input
  10856. v-model="eTitle"
  10857. placeholder="请输入名称"
  10858. @change="setMindData"
  10859. ></el-input>-->
  10860. <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>
  10861. <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>
  10862. </div>
  10863. </div>
  10864. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  10865. <div class="e_add_list_pbox">
  10866. <div class="e_add_list_pbox_title">
  10867. <!-- <span class="type_title">切换模式</span> -->
  10868. <div class="type_content">
  10869. <span
  10870. :class="{ active: typeMode == 1 }"
  10871. @click="typeMode = 1"
  10872. >目标树</span
  10873. >
  10874. <span
  10875. :class="{ active: typeMode == 2 }"
  10876. @click="typeMode = 2"
  10877. >目标罗盘</span
  10878. >
  10879. <!-- <span
  10880. :class="{ active: typeMode == 3 }"
  10881. @click="typeMode = 3"
  10882. >目标看板</span
  10883. > -->
  10884. </div>
  10885. </div>
  10886. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  10887. <Mind
  10888. :showBar="false"
  10889. :mindData="data"
  10890. style="width: 100%"
  10891. v-show="typeMode == 1"
  10892. ></Mind>
  10893. <Sunburst
  10894. :Josn="eJson"
  10895. :num="eJSONNum"
  10896. style="width: 100%"
  10897. v-if="typeMode == 2"
  10898. ></Sunburst>
  10899. <SeeBoard
  10900. :Josn="eJson"
  10901. :num="eJSONNum"
  10902. :ename="eTitle"
  10903. style="width: 100%"
  10904. v-if="typeMode == 3"
  10905. >
  10906. </SeeBoard>
  10907. </div>
  10908. </div>
  10909. </div>
  10910. </div>
  10911. </div>
  10912. </div>
  10913. <!-- <div
  10914. class="project_box"
  10915. style="margin-top: 15px; padding-bottom: 30px"
  10916. >
  10917. <div
  10918. style="
  10919. display: flex;
  10920. flex-wrap: nowrap;
  10921. flex-direction: column;
  10922. position: relative;
  10923. "
  10924. >
  10925. <div class="queTop">
  10926. <div class="question">
  10927. <img src="../../assets/icon/homeWork.png" alt="" />
  10928. </div>
  10929. <div class="queTitle">
  10930. <div>作业提交<span>(提交图文视频等)</span></div>
  10931. <div>:任务:{{ task.task }}</div>
  10932. </div>
  10933. </div>
  10934. <div class="ediBottom">
  10935. <div
  10936. class="addEditor"
  10937. style="margin-top: 23px"
  10938. @click="openAddWork"
  10939. v-if="!isNoHomeWork"
  10940. >
  10941. 选择文件
  10942. </div>
  10943. <div
  10944. class="addEditor"
  10945. style="margin-top: 23px"
  10946. @click="openAddWork"
  10947. v-else
  10948. >
  10949. 已提交
  10950. </div>
  10951. </div>
  10952. </div>
  10953. </div>-->
  10954. </div>
  10955. </div>
  10956. <el-dialog
  10957. title="作业提交"
  10958. :visible.sync="dialogVisible"
  10959. :append-to-body="true"
  10960. width="500px"
  10961. :before-close="handleClose"
  10962. class="dialog_change"
  10963. >
  10964. <div class="marginT">
  10965. <div>上传文件</div>
  10966. <div
  10967. class="chapter_add"
  10968. @click="addImg($event)"
  10969. v-if="studyJuri[0].cover.length == 0"
  10970. >
  10971. <div class="up_photo">
  10972. <img src="../../assets/icon/uploadImg.png" alt />
  10973. </div>
  10974. <!-- <input
  10975. type="file"
  10976. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10977. style="display: none"
  10978. @change="beforeUpload1($event, 1)"
  10979. /> -->
  10980. <input
  10981. type="file"
  10982. accept="*"
  10983. style="display: none"
  10984. @change="beforeUpload1($event, 1)"
  10985. />
  10986. <!-- <input
  10987. type="file"
  10988. accept="image/*"
  10989. capture="camera"
  10990. style="display: none"
  10991. @change="beforeUpload1($event, 1)"
  10992. /> -->
  10993. </div>
  10994. <div
  10995. class="chapter_add"
  10996. style="
  10997. display: flex;
  10998. width: 100%;
  10999. flex-direction: row;
  11000. flex-wrap: wrap;
  11001. justify-content: flex-start;
  11002. padding: 15px 0;
  11003. "
  11004. v-if="studyJuri[0].cover.length > 0"
  11005. >
  11006. <div class="upCover">
  11007. <img
  11008. :src="studyJuri[0].cover[0].url"
  11009. alt
  11010. v-if="fileType == 0"
  11011. />
  11012. <img :src="word" alt v-else-if="fileType == 1" />
  11013. <img :src="video" alt v-else-if="fileType == 2" />
  11014. <img :src="word2" alt v-else-if="fileType == 3" />
  11015. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11016. <div class="deleteWord" @click="clean(1)">
  11017. <img src="../../assets/icon/deleteWorks.png" alt />
  11018. </div>
  11019. </div>
  11020. </div>
  11021. </div>
  11022. <div
  11023. class="upload_send"
  11024. @click="addCourseWorksCopy(taskCount)"
  11025. v-if="!proVisible"
  11026. >
  11027. 提交
  11028. </div>
  11029. </el-dialog>
  11030. </div>
  11031. </div>
  11032. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11033. <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(
  11034. '/courseDetail?userid=' +
  11035. userid +
  11036. '&oid=' +
  11037. oid +
  11038. '&org=' +
  11039. org +
  11040. '&cid=' +
  11041. classId +
  11042. '&courseId=' +
  11043. id +
  11044. '&tType=' +
  11045. tType +
  11046. '&screenType=' +
  11047. screenType
  11048. )"></classRoomHelper>
  11049. <div
  11050. class="pButton"
  11051. @click="(pzDialog = true), selectPz()"
  11052. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11053. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11054. >
  11055. <!-- 批 -->
  11056. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11057. </div>
  11058. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  11059. <div class="pzTop2">
  11060. <!-- <div>评论</div>
  11061. <div @click="pzDialog = false">
  11062. <img src="../../assets/close1.png" alt="" />
  11063. </div> -->
  11064. <div class="checkbox">
  11065. <!-- <div class="check" style="font-size: 25px; position: unset">
  11066. 评论
  11067. </div> -->
  11068. <div class="cb-tabList">
  11069. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  11070. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11071. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11072. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  11073. </div>
  11074. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  11075. <el-option label="时间降序" :value="1"></el-option>
  11076. <el-option label="时间升序" :value="2"></el-option>
  11077. <el-option label="我的评课" :value="3"></el-option>
  11078. </el-select>
  11079. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11080. </div>
  11081. </div>
  11082. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  11083. <div class="pzListBox" v-if="pzList && pzList.length">
  11084. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11085. <div class="pzNavTop">
  11086. <div>评</div>
  11087. <div>
  11088. {{
  11089. pz.username && pz.username.length > 5
  11090. ? pz.username.substring(0, 5) + "..."
  11091. : pz.username
  11092. }}的评论
  11093. </div>
  11094. <div
  11095. class="pzDelete"
  11096. v-if="pz.userid == userid"
  11097. @click="deletePz(pz.id)"
  11098. >
  11099. 删除
  11100. </div>
  11101. </div>
  11102. <div
  11103. @click="checkImg(getImgList(pz.content))"
  11104. class="pzContent cont"
  11105. v-html="pz.content"
  11106. v-if="pz.type == '1'"
  11107. ></div>
  11108. <div class="pzContent" v-if="pz.type == '2'">
  11109. <audio :src="pz.content" controls="controls" ref="audio">
  11110. Your browser does not support the audio element.
  11111. </audio>
  11112. </div>
  11113. <div class="pzContent" v-if="pz.type == '3'">
  11114. <img
  11115. :src="pz.content"
  11116. style="width: 90%; margin: 0 auto; display: block"
  11117. @click="previewImg(pz.content)"
  11118. />
  11119. </div>
  11120. <div class="timeAndReply">
  11121. <div class="time">
  11122. {{ pz.time }}
  11123. </div>
  11124. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11125. </div>
  11126. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11127. <div
  11128. v-for="(h, hIndex) in pz.hfList"
  11129. :key="hIndex"
  11130. class="hfItem"
  11131. >
  11132. <div class="whoReplyWho">
  11133. <div class="hfName">{{ h.username }}</div>
  11134. <div class="hfImg">
  11135. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11136. </div>
  11137. <div class="hfName">{{ pz.username }}</div>
  11138. </div>
  11139. <div class="hfContent" v-html="h.content"></div>
  11140. <div class="hfBottom">
  11141. <div class="hfTime">{{ h.time }}</div>
  11142. <div
  11143. class="deleteHfItem"
  11144. @click="deleteReply(h.id)"
  11145. v-if="userid == h.userid"
  11146. >
  11147. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11148. </div>
  11149. </div>
  11150. </div>
  11151. </div>
  11152. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11153. <div class="replyInput">
  11154. <el-input v-model="reply[pzIndex]"></el-input>
  11155. </div>
  11156. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11157. </div> -->
  11158. </div>
  11159. </div>
  11160. <div class="noPz" v-else>
  11161. <img src="../../assets/icon/noPz.png" alt="" />
  11162. </div>
  11163. <div class="addPzButton">
  11164. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11165. 添加评论
  11166. </div>
  11167. <!-- <div class="img1">
  11168. <div @click="(addPzDialog = true), (pzType = 2)">
  11169. <img src="../../assets/audio.png" /><span>音频</span>
  11170. </div>
  11171. </div> -->
  11172. </div>
  11173. </div>
  11174. <div class="scoreList" v-if="commentTagShow==1">
  11175. <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"/>
  11176. </div>
  11177. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  11178. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  11179. </div>
  11180. </div>
  11181. <div
  11182. v-if="toolDialogVisible == true"
  11183. class="toolMask"
  11184. @click="toolDialogVisible = false"
  11185. ></div>
  11186. <div v-if="toolDialogVisible == true" class="addToolCss">
  11187. <div class="toolTop">
  11188. <div style="font-weight: bold">新增工具</div>
  11189. <div @click="toolDialogVisible = false">
  11190. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11191. </div>
  11192. </div>
  11193. <div class="tool_box">
  11194. <div class="tool_type_box">
  11195. <div class="chooseWho">
  11196. <div
  11197. :class="toolType == 0 ? 'isChooseActive' : ''"
  11198. @click="(toolType = 0), $forceUpdate()"
  11199. >
  11200. 互动类
  11201. </div>
  11202. <div
  11203. :class="toolType == 1 ? 'isChooseActive' : ''"
  11204. @click="(toolType = 1), $forceUpdate()"
  11205. >
  11206. 思维类
  11207. </div>
  11208. <div
  11209. :class="toolType == 2 ? 'isChooseActive' : ''"
  11210. @click="(toolType = 2), $forceUpdate()"
  11211. >
  11212. 测评类
  11213. </div>
  11214. <div
  11215. :class="toolType == 3 ? 'isChooseActive' : ''"
  11216. @click="(toolType = 3), $forceUpdate()"
  11217. >
  11218. 编程类
  11219. </div>
  11220. <div
  11221. :class="toolType == 5 ? 'isChooseActive' : ''"
  11222. @click="(toolType = 5), $forceUpdate()"
  11223. >
  11224. 学科类
  11225. </div>
  11226. </div>
  11227. </div>
  11228. <div>
  11229. <div class="toolSort" v-if="toolType == 0">
  11230. <div
  11231. class="tool"
  11232. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11233. @click="addTools2(10)"
  11234. >
  11235. <div class="whiteBIcon">
  11236. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11237. <div style="margin: 5px 0">倒计时</div>
  11238. </div>
  11239. <div class="check">
  11240. <div
  11241. v-if="checktoolArray.indexOf(10) == -1"
  11242. class="noChoose"
  11243. ></div>
  11244. <div v-else class="isChoose"></div>
  11245. </div>
  11246. </div>
  11247. <div
  11248. class="tool"
  11249. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11250. @click="addTools2(65)"
  11251. >
  11252. <div class="whiteBIcon">
  11253. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11254. <div style="margin: 5px 0">挑人</div>
  11255. </div>
  11256. <div class="check">
  11257. <div
  11258. v-if="checktoolArray.indexOf(65) == -1"
  11259. class="noChoose"
  11260. ></div>
  11261. <div v-else class="isChoose"></div>
  11262. </div>
  11263. </div>
  11264. </div>
  11265. <div class="toolSort" v-if="toolType == 1">
  11266. <div
  11267. class="tool"
  11268. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11269. @click="addTools2(7)"
  11270. >
  11271. <div class="whiteBIcon">
  11272. <img
  11273. src="../../assets/icon/secondToolList/mindNetwork.png"
  11274. alt
  11275. />
  11276. <div style="margin: 5px 0">思维网格</div>
  11277. </div>
  11278. <div class="check">
  11279. <div
  11280. v-if="checktoolArray.indexOf(7) == -1"
  11281. class="noChoose"
  11282. ></div>
  11283. <div v-else class="isChoose"></div>
  11284. </div>
  11285. </div>
  11286. <div
  11287. class="tool"
  11288. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11289. @click="addTools2(1)"
  11290. >
  11291. <div class="whiteBIcon">
  11292. <img
  11293. src="../../assets/icon/secondToolList/whiteBoard.png"
  11294. alt
  11295. />
  11296. <div style="margin: 5px 0">电子白板</div>
  11297. </div>
  11298. <div class="check">
  11299. <div
  11300. v-if="checktoolArray.indexOf(1) == -1"
  11301. class="noChoose"
  11302. ></div>
  11303. <div v-else class="isChoose"></div>
  11304. </div>
  11305. </div>
  11306. <div
  11307. class="tool"
  11308. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  11309. @click="addTools2(52)"
  11310. >
  11311. <div class="whiteBIcon">
  11312. <img src="../../assets/icon/fourthToolList/text.png" alt />
  11313. <div style="margin: 5px 0">文档</div>
  11314. </div>
  11315. <div class="check">
  11316. <div
  11317. v-if="checktoolArray.indexOf(52) == -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(3) != -1 }"
  11326. @click="addTools2(3)"
  11327. >
  11328. <div class="whiteBIcon">
  11329. <img
  11330. src="../../assets/icon/secondToolList/mindMapping.png"
  11331. alt
  11332. />
  11333. <div style="margin: 5px 0">思维导图</div>
  11334. </div>
  11335. <div class="check">
  11336. <div
  11337. v-if="checktoolArray.indexOf(3) == -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(48) != -1 }"
  11346. @click="addTools2(48)"
  11347. >
  11348. <div class="whiteBIcon">
  11349. <img src="../../assets/icon/fourthToolList/table.png" alt />
  11350. <div style="margin: 5px 0">表格</div>
  11351. </div>
  11352. <div class="check">
  11353. <div
  11354. v-if="checktoolArray.indexOf(48) == -1"
  11355. class="noChoose"
  11356. ></div>
  11357. <div v-else class="isChoose"></div>
  11358. </div>
  11359. </div>
  11360. </div>
  11361. <div class="toolSort" v-if="toolType == 6">
  11362. <div v-show="tooC == 49">
  11363. <img
  11364. @click="addTools(tooC, toolIndex, taskCount)"
  11365. src="../../assets/icon/fourthToolList/group.png"
  11366. alt
  11367. />
  11368. <div style="margin: 5px 0">学生分组</div>
  11369. </div>
  11370. </div>
  11371. <div class="toolSort" v-if="toolType == 2">
  11372. <div
  11373. class="tool"
  11374. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  11375. @click="addTools2(16)"
  11376. >
  11377. <div class="whiteBIcon">
  11378. <img src="../../assets/icon/thirdToolList/work.png" alt />
  11379. <div style="margin: 5px 0">作业提交</div>
  11380. </div>
  11381. <div class="check">
  11382. <div
  11383. v-if="checktoolArray.indexOf(16) == -1"
  11384. class="noChoose"
  11385. ></div>
  11386. <div v-else class="isChoose"></div>
  11387. </div>
  11388. </div>
  11389. <div
  11390. class="tool"
  11391. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  11392. @click="addTools2(50)"
  11393. >
  11394. <div class="whiteBIcon">
  11395. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  11396. <div style="margin: 5px 0">批量上传</div>
  11397. </div>
  11398. <div class="check">
  11399. <div
  11400. v-if="checktoolArray.indexOf(50) == -1"
  11401. class="noChoose"
  11402. ></div>
  11403. <div v-else class="isChoose"></div>
  11404. </div>
  11405. </div>
  11406. </div>
  11407. <div class="toolSort" v-if="toolType == 3">
  11408. <div
  11409. class="tool"
  11410. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  11411. @click="addTools2(18)"
  11412. >
  11413. <div class="whiteBIcon">
  11414. <img
  11415. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11416. alt
  11417. />
  11418. <div style="margin: 5px 0">训练平台</div>
  11419. </div>
  11420. <div class="check">
  11421. <div
  11422. v-if="checktoolArray.indexOf(18) == -1"
  11423. class="noChoose"
  11424. ></div>
  11425. <div v-else class="isChoose"></div>
  11426. </div>
  11427. </div>
  11428. <div
  11429. class="tool"
  11430. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  11431. @click="addTools2(21)"
  11432. >
  11433. <div class="whiteBIcon">
  11434. <img src="../../assets/icon/fourthToolList/program.png" alt />
  11435. <div style="margin: 5px 0">AIoT Blockly</div>
  11436. </div>
  11437. <div class="check">
  11438. <div
  11439. v-if="checktoolArray.indexOf(21) == -1"
  11440. class="noChoose"
  11441. ></div>
  11442. <div v-else class="isChoose"></div>
  11443. </div>
  11444. </div>
  11445. <div
  11446. class="tool"
  11447. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  11448. @click="addTools2(23)"
  11449. >
  11450. <div class="whiteBIcon">
  11451. <img
  11452. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11453. alt
  11454. />
  11455. <div style="margin: 5px 0">AI Python</div>
  11456. </div>
  11457. <div class="check">
  11458. <div
  11459. v-if="checktoolArray.indexOf(23) == -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(24) != -1 }"
  11468. @click="addTools2(24)"
  11469. >
  11470. <div class="whiteBIcon">
  11471. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  11472. <div style="margin: 5px 0">AI Blockly</div>
  11473. </div>
  11474. <div class="check">
  11475. <div
  11476. v-if="checktoolArray.indexOf(24) == -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(32) != -1 }"
  11485. @click="addTools2(32)"
  11486. >
  11487. <div class="whiteBIcon">
  11488. <img src="../../assets/icon/thirdToolList/code.png" alt />
  11489. <div style="margin: 5px 0">源码编辑</div>
  11490. </div>
  11491. <div class="check">
  11492. <div
  11493. v-if="checktoolArray.indexOf(32) == -1"
  11494. class="noChoose"
  11495. ></div>
  11496. <div v-else class="isChoose"></div>
  11497. </div>
  11498. </div>
  11499. <div
  11500. class="tool"
  11501. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  11502. @click="addTools2(57)"
  11503. >
  11504. <div class="whiteBIcon">
  11505. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  11506. <div style="margin: 5px 0">CocoPi</div>
  11507. </div>
  11508. <div class="check">
  11509. <div
  11510. v-if="checktoolArray.indexOf(57) == -1"
  11511. class="noChoose"
  11512. ></div>
  11513. <div v-else class="isChoose"></div>
  11514. </div>
  11515. </div>
  11516. <div
  11517. class="tool"
  11518. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  11519. @click="addTools2(63)"
  11520. >
  11521. <div class="whiteBIcon">
  11522. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  11523. <div style="margin: 5px 0">海龟编程</div>
  11524. </div>
  11525. <div class="check">
  11526. <div
  11527. v-if="checktoolArray.indexOf(63) == -1"
  11528. class="noChoose"
  11529. ></div>
  11530. <div v-else class="isChoose"></div>
  11531. </div>
  11532. </div>
  11533. <div
  11534. class="tool"
  11535. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  11536. @click="addTools2(71)"
  11537. >
  11538. <div class="whiteBIcon">
  11539. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  11540. <div style="margin: 5px 0">AI智能体</div>
  11541. </div>
  11542. <div class="check">
  11543. <div
  11544. v-if="checktoolArray.indexOf(71) == -1"
  11545. class="noChoose"
  11546. ></div>
  11547. <div v-else class="isChoose"></div>
  11548. </div>
  11549. </div>
  11550. </div>
  11551. <div class="toolSort" v-if="toolType == 7">
  11552. <div
  11553. class="tool"
  11554. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  11555. @click="addTools2(40)"
  11556. >
  11557. <div class="whiteBIcon">
  11558. <img src="../../assets/icon/secondToolList/eval.png" alt />
  11559. <div style="margin: 5px 0">个人评价</div>
  11560. </div>
  11561. <div class="check">
  11562. <div
  11563. v-if="checktoolArray.indexOf(40) == -1"
  11564. class="noChoose"
  11565. ></div>
  11566. <div v-else class="isChoose"></div>
  11567. </div>
  11568. </div>
  11569. </div>
  11570. <div class="toolSort" v-if="toolType == 5">
  11571. <div
  11572. class="tool"
  11573. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  11574. @click="addTools2(28)"
  11575. >
  11576. <div class="whiteBIcon">
  11577. <img
  11578. src="../../assets/icon/secondToolList/translation.png"
  11579. alt
  11580. />
  11581. <div style="margin: 5px 0">翻译</div>
  11582. </div>
  11583. <div class="check">
  11584. <div
  11585. v-if="checktoolArray.indexOf(28) == -1"
  11586. class="noChoose"
  11587. ></div>
  11588. <div v-else class="isChoose"></div>
  11589. </div>
  11590. </div>
  11591. <div
  11592. class="tool"
  11593. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  11594. @click="addTools2(31)"
  11595. >
  11596. <div class="whiteBIcon">
  11597. <img
  11598. src="../../assets/icon/secondToolList/networkPanel.png"
  11599. alt
  11600. />
  11601. <div style="margin: 5px 0">数字画板</div>
  11602. </div>
  11603. <div class="check">
  11604. <div
  11605. v-if="checktoolArray.indexOf(31) == -1"
  11606. class="noChoose"
  11607. ></div>
  11608. <div v-else class="isChoose"></div>
  11609. </div>
  11610. </div>
  11611. <div
  11612. class="tool"
  11613. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  11614. @click="addTools2(39)"
  11615. >
  11616. <div class="whiteBIcon">
  11617. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  11618. <div style="margin: 5px 0">GeoGebra</div>
  11619. </div>
  11620. <div class="check">
  11621. <div
  11622. v-if="checktoolArray.indexOf(39) == -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(66) != -1 }"
  11631. @click="addTools2(66)"
  11632. >
  11633. <div class="whiteBIcon">
  11634. <img
  11635. src="../../assets/icon/secondToolList/formulaEdi.png"
  11636. alt
  11637. />
  11638. <div style="margin: 5px 0">公式编辑</div>
  11639. </div>
  11640. <div class="check">
  11641. <div
  11642. v-if="checktoolArray.indexOf(66) == -1"
  11643. class="noChoose"
  11644. ></div>
  11645. <div v-else class="isChoose"></div>
  11646. </div>
  11647. </div>
  11648. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  11649. <div class="whiteBIcon" @click="addTools2(67)">
  11650. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  11651. <div style="margin: 5px 0">分子结构</div>
  11652. </div>
  11653. <div class="check" @click="addTools2(67)">
  11654. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  11655. <div v-else class="isChoose"></div>
  11656. </div>
  11657. </div> -->
  11658. <div
  11659. class="tool"
  11660. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  11661. @click="addTools2(68)"
  11662. >
  11663. <div class="whiteBIcon">
  11664. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  11665. <div style="margin: 5px 0">时间轴</div>
  11666. </div>
  11667. <div class="check">
  11668. <div
  11669. v-if="checktoolArray.indexOf(68) == -1"
  11670. class="noChoose"
  11671. ></div>
  11672. <div v-else class="isChoose"></div>
  11673. </div>
  11674. </div>
  11675. <!-- <div
  11676. class="tool"
  11677. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  11678. @click="addTools2(69)"
  11679. >
  11680. <div class="whiteBIcon">
  11681. <img src="../../assets/icon/secondToolList/english.png" alt />
  11682. <div style="margin: 5px 0">英语写作</div>
  11683. </div>
  11684. <div class="check">
  11685. <div
  11686. v-if="checktoolArray.indexOf(69) == -1"
  11687. class="noChoose"
  11688. ></div>
  11689. <div v-else class="isChoose"></div>
  11690. </div>
  11691. </div> -->
  11692. </div>
  11693. <div class="toolSort" v-if="toolType == 4">
  11694. <div
  11695. class="tool"
  11696. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  11697. @click="addTools2(26)"
  11698. >
  11699. <div class="whiteBIcon">
  11700. <img
  11701. src="../../assets/icon/thirdToolList/courseDesign.png"
  11702. alt
  11703. />
  11704. <div style="margin: 5px 0">课程设计</div>
  11705. </div>
  11706. <div class="check">
  11707. <div
  11708. v-if="checktoolArray.indexOf(26) == -1"
  11709. class="noChoose"
  11710. ></div>
  11711. <div v-else class="isChoose"></div>
  11712. </div>
  11713. </div>
  11714. <div
  11715. class="tool"
  11716. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  11717. @click="addTools2(25)"
  11718. >
  11719. <div class="whiteBIcon">
  11720. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  11721. <div style="margin: 5px 0">目标管理</div>
  11722. </div>
  11723. <div class="check">
  11724. <div
  11725. v-if="checktoolArray.indexOf(25) == -1"
  11726. class="noChoose"
  11727. ></div>
  11728. <div v-else class="isChoose"></div>
  11729. </div>
  11730. </div>
  11731. </div>
  11732. </div>
  11733. </div>
  11734. <span
  11735. slot="footer"
  11736. class="dialog-footer"
  11737. style="display: block; text-align: center; padding: 0 0 10px 0"
  11738. >
  11739. <el-button @click="toolDialogVisible = false">取 消</el-button>
  11740. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  11741. </span>
  11742. </div>
  11743. <div
  11744. v-if="replyDialogVisible == true"
  11745. class="addDialogCss"
  11746. v-el-drag-dialog
  11747. >
  11748. <div class="pzTop">
  11749. <div class="teacherPz">
  11750. <div class="teacherPzImg">
  11751. <img src="../../assets/icon/teacherPz.png" alt="" />
  11752. </div>
  11753. <div style="margin-left: 10px; height: 25px">添加回复</div>
  11754. </div>
  11755. <div @click="replyDialogVisible = false">
  11756. <img src="../../assets/close1.png" class="pzClose" alt="" />
  11757. </div>
  11758. </div>
  11759. <div class="addPzBox">
  11760. <!-- <div class="addPzCheck">
  11761. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  11762. >文本</span
  11763. >
  11764. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  11765. >音频</span
  11766. >
  11767. </div> -->
  11768. <div style="height: calc(100% - 50px)">
  11769. <editor-bar
  11770. class="binfo_input pzConText"
  11771. style="width: 100% !important; margin: 0 auto"
  11772. placeholder="请输入回复描述"
  11773. v-model="reply"
  11774. @change="change"
  11775. ></editor-bar>
  11776. </div>
  11777. <div class="addTextCss" @click="addHf">确定</div>
  11778. </div>
  11779. </div>
  11780. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  11781. <div class="pzTop">
  11782. <div class="teacherPz">
  11783. <div class="teacherPzImg">
  11784. <img src="../../assets/icon/teacherPz.png" alt="" />
  11785. </div>
  11786. <div style="margin-left: 10px; height: 25px">教师评论</div>
  11787. </div>
  11788. <div @click="addPzDialog = false">
  11789. <img src="../../assets/close1.png" class="pzClose" alt="" />
  11790. </div>
  11791. </div>
  11792. <div class="addPzBox">
  11793. <div class="addPzCheck">
  11794. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  11795. >文本</span
  11796. >
  11797. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  11798. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  11799. >音频</span
  11800. >
  11801. </div>
  11802. <div style="height: calc(100% - 95px)">
  11803. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  11804. v-if="pzType == 1"></textarea> -->
  11805. <editor-bar
  11806. class="binfo_input pzConText"
  11807. style="width: 100% !important"
  11808. placeholder="请输入任务描述"
  11809. v-model="pzConText"
  11810. @change="change"
  11811. v-if="pzType == 1"
  11812. ></editor-bar>
  11813. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  11814. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  11815. <div @click="addImg($event)">
  11816. <el-button type="primary">上传图片</el-button>
  11817. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  11818. @change="beforeUpload1($event, 4)" />
  11819. </div>
  11820. </div> -->
  11821. </div>
  11822. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  11823. 确定
  11824. </div>
  11825. </div>
  11826. </div>
  11827. <div v-if="proVisible" class="mask">
  11828. <div class="progressBox">
  11829. <!-- <div id="closePro" class="closeCss">
  11830. <img src="../../assets/icon/close.png" alt />
  11831. </div> -->
  11832. <div class="lbox">
  11833. <img src="../../assets/loading.gif" />上传中,请稍后
  11834. </div>
  11835. <div style="margin-bottom: 10px">
  11836. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  11837. </div>
  11838. <el-progress
  11839. :text-inside="true"
  11840. :stroke-width="20"
  11841. :percentage="progress"
  11842. style="width: 80%"
  11843. ></el-progress>
  11844. </div>
  11845. </div>
  11846. <div v-if="proVisible2" class="mask">
  11847. <div class="progressBox">
  11848. <div class="lbox">
  11849. <img src="../../assets/loading.gif" />上传中,请稍后
  11850. </div>
  11851. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  11852. </div>
  11853. </div>
  11854. <el-dialog :visible.sync="pictureDialog" size="tiny">
  11855. <img width="100%" :src="dialogImageUrl" alt />
  11856. </el-dialog>
  11857. <el-dialog
  11858. :title="noteName != '' ? noteName : '查看问卷'"
  11859. :visible.sync="dialogVisible5"
  11860. :append-to-body="true"
  11861. width="1000px"
  11862. :before-close="handleClose"
  11863. class="dialog_diy dialog_diy3"
  11864. >
  11865. <div>
  11866. <div
  11867. class="a_add_title"
  11868. style="
  11869. display: flex;
  11870. flex-direction: row;
  11871. align-items: center;
  11872. justify-content: center;
  11873. "
  11874. >
  11875. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  11876. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  11877. </div>
  11878. <div class="a_addBox">
  11879. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  11880. 题目内容
  11881. </div>
  11882. <div
  11883. class="a_add_box"
  11884. v-for="(item1, index1) in askJson.askCount"
  11885. :key="index1"
  11886. >
  11887. <div class="a_add_head">
  11888. <div style="display: flex">
  11889. <span class="askIndex"> {{ index1 + 1 }}</span>
  11890. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  11891. </div>
  11892. <img
  11893. v-if="askJson.askJson[index1].img"
  11894. :src="askJson.askJson[index1].img"
  11895. style="height: 300px; margin-top: 10px; max-width: 100%"
  11896. />
  11897. </div>
  11898. <div class="a_add_body">
  11899. <div class="a_add_input">
  11900. <el-radio-group
  11901. v-model="radio[index1]"
  11902. v-if="
  11903. askJson.askJson[index1].type == '1' ||
  11904. !askJson.askJson[index1].type
  11905. "
  11906. >
  11907. <el-radio
  11908. v-for="(item2, checkIndex) in askJson.askJson[index1]
  11909. .checkList"
  11910. :key="checkIndex"
  11911. :label="checkIndex"
  11912. :disabled="isAnswer"
  11913. class="redioStyle"
  11914. ><span v-html="item2"></span
  11915. ></el-radio>
  11916. </el-radio-group>
  11917. <el-checkbox-group
  11918. v-model="radio[index1]"
  11919. v-if="askJson.askJson[index1].type == '2'"
  11920. >
  11921. <el-checkbox
  11922. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  11923. .checkList"
  11924. :key="checkIndex1"
  11925. :label="checkIndex1"
  11926. :disabled="isAnswer"
  11927. class="redioStyle"
  11928. ><span v-html="item2"></span>
  11929. </el-checkbox>
  11930. </el-checkbox-group>
  11931. </div>
  11932. </div>
  11933. </div>
  11934. </div>
  11935. </div>
  11936. <span slot="footer" class="dialog-footer">
  11937. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  11938. >取 消</el-button
  11939. >
  11940. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  11941. >确 定</el-button
  11942. >
  11943. </span>
  11944. </el-dialog>
  11945. <el-dialog
  11946. :title="noteName != '' ? noteName : '查看问卷'"
  11947. :visible.sync="dialogVisible5Teacher"
  11948. :append-to-body="true"
  11949. width="1000px"
  11950. :before-close="handleClose"
  11951. class="dialog_diy dialog_diy3"
  11952. >
  11953. <div>
  11954. <div class="w_name">
  11955. 学生姓名:<span>{{ sStudent.student }}</span>
  11956. </div>
  11957. <div
  11958. class="a_add_title"
  11959. style="
  11960. display: flex;
  11961. flex-direction: row;
  11962. align-items: center;
  11963. justify-content: center;
  11964. "
  11965. >
  11966. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  11967. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  11968. </div>
  11969. <div class="a_addBox">
  11970. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  11971. 题目内容
  11972. </div>
  11973. <div
  11974. class="a_add_box"
  11975. v-for="(item1, index1) in askJson.askCount"
  11976. :key="index1"
  11977. >
  11978. <div class="a_add_head">
  11979. <div style="display: flex">
  11980. <span class="askIndex">{{ index1 + 1 }}</span>
  11981. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  11982. </div>
  11983. <img
  11984. v-if="askJson.askJson[index1].img"
  11985. :src="askJson.askJson[index1].img"
  11986. style="height: 300px; margin-top: 10px; max-width: 100%"
  11987. />
  11988. </div>
  11989. <div class="a_add_body">
  11990. <div class="a_add_input">
  11991. <el-radio-group
  11992. v-model="radio[index1]"
  11993. v-if="
  11994. askJson.askJson[index1].type == '1' ||
  11995. !askJson.askJson[index1].type
  11996. "
  11997. >
  11998. <el-radio
  11999. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12000. .checkList"
  12001. :key="checkIndex"
  12002. :label="checkIndex"
  12003. :disabled="isAnswer"
  12004. class="redioStyle"
  12005. ><span v-html="item2"></span
  12006. ></el-radio>
  12007. </el-radio-group>
  12008. <el-checkbox-group
  12009. v-model="radio[index1]"
  12010. v-if="askJson.askJson[index1].type == '2'"
  12011. >
  12012. <el-checkbox
  12013. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12014. .checkList"
  12015. :key="checkIndex1"
  12016. :label="checkIndex1"
  12017. :disabled="isAnswer"
  12018. class="redioStyle"
  12019. ><span v-html="item2"></span>
  12020. </el-checkbox>
  12021. </el-checkbox-group>
  12022. </div>
  12023. </div>
  12024. </div>
  12025. </div>
  12026. </div>
  12027. <span slot="footer" class="dialog-footer">
  12028. <el-button
  12029. @click="dialogVisible5Teacher = false"
  12030. v-show="noteName == ''"
  12031. >取 消</el-button
  12032. >
  12033. <el-button
  12034. type="primary"
  12035. @click="addStudentAskTeacher"
  12036. v-show="noteName == ''"
  12037. >确 定</el-button
  12038. >
  12039. </span>
  12040. </el-dialog>
  12041. <el-dialog
  12042. :title="noteName != '' ? noteName : '查看选择题'"
  12043. :visible.sync="dialogVisibleChoice"
  12044. :append-to-body="true"
  12045. width="1000px"
  12046. :before-close="handleClose"
  12047. class="dialog_diy dialog_diy3"
  12048. >
  12049. <div>
  12050. <!-- <div class="a_add_title" style="
  12051. display: flex;
  12052. flex-direction: row;
  12053. align-items: center;
  12054. justify-content: center;
  12055. ">
  12056. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12057. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12058. </div> -->
  12059. <div class="a_addBox">
  12060. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12061. 题目内容
  12062. </div>
  12063. <div
  12064. class="a_add_box"
  12065. v-for="(item1, index1) in testJson.testCount"
  12066. :key="index1"
  12067. >
  12068. <div class="a_add_head">
  12069. <div style="display: flex">
  12070. <span class="askIndex">{{ index1 + 1 }}</span>
  12071. <div
  12072. v-if="testJson.testJson[index1].type == '1'"
  12073. style="margin-right: 5px; min-width: 70px"
  12074. >
  12075. (单选题)
  12076. </div>
  12077. <div
  12078. v-if="testJson.testJson[index1].type == '2'"
  12079. style="margin-right: 5px; min-width: 70px"
  12080. >
  12081. (多选题)
  12082. </div>
  12083. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12084. </div>
  12085. <img
  12086. v-if="testJson.testJson[index1].img"
  12087. :src="testJson.testJson[index1].img"
  12088. style="height: 300px; margin-top: 10px; max-width: 100%"
  12089. />
  12090. </div>
  12091. <div
  12092. class="timuImgBox"
  12093. v-if="
  12094. testJson.testJson[index1].timuList &&
  12095. testJson.testJson[index1].timuList.length
  12096. "
  12097. >
  12098. <div
  12099. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12100. :key="tIndex"
  12101. class="timuImg"
  12102. @click.stop="previewImg(timg.src)"
  12103. >
  12104. <img :src="timg.src" alt="" />
  12105. </div>
  12106. </div>
  12107. <div class="a_add_body">
  12108. <div class="a_add_input">
  12109. <el-radio-group
  12110. v-model="radio[index1]"
  12111. v-if="testJson.testJson[index1].type == '1'"
  12112. >
  12113. <div class="radioBox">
  12114. <el-radio
  12115. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12116. .checkList"
  12117. :key="checkIndex"
  12118. :label="checkIndex"
  12119. :disabled="isAnswer"
  12120. class="redioStyle"
  12121. >
  12122. <div
  12123. style="margin-right: 10px"
  12124. v-if="item2 && item2.imgType && item2.imgType == 1"
  12125. >
  12126. <div class="inImg" @click.stop="previewImg(item2.src)">
  12127. <img :src="item2.src" alt="" />
  12128. </div>
  12129. </div>
  12130. <span v-else v-html="item2"></span>
  12131. </el-radio>
  12132. </div>
  12133. </el-radio-group>
  12134. <el-checkbox-group
  12135. v-model="radio[index1]"
  12136. v-if="testJson.testJson[index1].type == '2'"
  12137. >
  12138. <div class="radioBox">
  12139. <el-checkbox
  12140. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12141. .checkList"
  12142. :key="checkIndex"
  12143. :label="checkIndex"
  12144. :disabled="isAnswer"
  12145. class="redioStyle"
  12146. >
  12147. <div
  12148. style="margin-right: 10px"
  12149. v-if="item2 && item2.imgType && item2.imgType == 1"
  12150. >
  12151. <div class="inImg" @click.stop="previewImg(item2.src)">
  12152. <img :src="item2.src" alt="" />
  12153. </div>
  12154. </div>
  12155. <span v-else v-html="item2"></span>
  12156. </el-checkbox>
  12157. </div>
  12158. </el-checkbox-group>
  12159. </div>
  12160. </div>
  12161. </div>
  12162. </div>
  12163. </div>
  12164. <span slot="footer" class="dialog-footer">
  12165. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12166. >取 消</el-button
  12167. >
  12168. <el-button
  12169. type="primary"
  12170. @click="addStudentTest"
  12171. v-show="noteName == ''"
  12172. >确 定</el-button
  12173. >
  12174. </span>
  12175. </el-dialog>
  12176. <el-dialog
  12177. :title="noteName != '' ? noteName : '查看选择题'"
  12178. :visible.sync="dialogVisibleChoiceTeacher"
  12179. :append-to-body="true"
  12180. width="1000px"
  12181. :before-close="handleClose"
  12182. class="dialog_diy dialog_diy3"
  12183. >
  12184. <div>
  12185. <div class="w_name">
  12186. 学生姓名:<span>{{ sStudent.student }}</span>
  12187. </div>
  12188. <div class="a_addBox">
  12189. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12190. 题目内容
  12191. </div>
  12192. <div
  12193. class="a_add_box"
  12194. v-for="(item1, index1) in testJson.testCount"
  12195. :key="index1"
  12196. >
  12197. <div class="a_add_head">
  12198. <div style="display: flex">
  12199. <span class="askIndex">{{ index1 + 1 }}</span>
  12200. <div
  12201. v-if="testJson.testJson[index1].type == '1'"
  12202. style="margin-right: 5px; min-width: 70px"
  12203. >
  12204. (单选题)
  12205. </div>
  12206. <div
  12207. v-if="testJson.testJson[index1].type == '2'"
  12208. style="margin-right: 5px; min-width: 70px"
  12209. >
  12210. (多选题)
  12211. </div>
  12212. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12213. </div>
  12214. <img
  12215. v-if="testJson.testJson[index1].img"
  12216. :src="testJson.testJson[index1].img"
  12217. style="height: 300px; margin-top: 10px; max-width: 100%"
  12218. />
  12219. </div>
  12220. <div
  12221. class="timuImgBox"
  12222. v-if="
  12223. testJson.testJson[index1].timuList &&
  12224. testJson.testJson[index1].timuList.length
  12225. "
  12226. >
  12227. <div
  12228. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12229. :key="tIndex"
  12230. class="timuImg"
  12231. @click.stop="previewImg(timg.src)"
  12232. >
  12233. <img :src="timg.src" alt="" />
  12234. </div>
  12235. </div>
  12236. <div class="a_add_body">
  12237. <div class="a_add_input">
  12238. <el-radio-group
  12239. v-model="radio[index1]"
  12240. v-if="testJson.testJson[index1].type == '1'"
  12241. >
  12242. <div class="radioBox">
  12243. <el-radio
  12244. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12245. .checkList"
  12246. :key="checkIndex"
  12247. :label="checkIndex"
  12248. :disabled="isAnswer"
  12249. class="redioStyle"
  12250. >
  12251. <div
  12252. style="margin-right: 10px"
  12253. v-if="item2 && item2.imgType && item2.imgType == 1"
  12254. >
  12255. <div class="inImg" @click.stop="previewImg(item2.src)">
  12256. <img :src="item2.src" alt="" />
  12257. </div>
  12258. </div>
  12259. <span v-else v-html="item2"></span>
  12260. </el-radio>
  12261. </div>
  12262. </el-radio-group>
  12263. <el-checkbox-group
  12264. v-model="radio[index1]"
  12265. v-if="testJson.testJson[index1].type == '2'"
  12266. >
  12267. <div class="radioBox">
  12268. <el-checkbox
  12269. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12270. .checkList"
  12271. :key="checkIndex"
  12272. :label="checkIndex"
  12273. :disabled="isAnswer"
  12274. class="redioStyle"
  12275. >
  12276. <div
  12277. style="margin-right: 10px"
  12278. v-if="item2 && item2.imgType && item2.imgType == 1"
  12279. >
  12280. <div class="inImg" @click.stop="previewImg(item2.src)">
  12281. <img :src="item2.src" alt="" />
  12282. </div>
  12283. </div>
  12284. <span v-else v-html="item2"></span>
  12285. </el-checkbox>
  12286. </div>
  12287. </el-checkbox-group>
  12288. </div>
  12289. </div>
  12290. </div>
  12291. </div>
  12292. </div>
  12293. <span slot="footer" class="dialog-footer">
  12294. <el-button
  12295. @click="dialogVisibleChoiceTeacher = false"
  12296. v-show="noteName == ''"
  12297. >取 消</el-button
  12298. >
  12299. <el-button
  12300. type="primary"
  12301. @click="addStudentTestTeacher"
  12302. v-show="noteName == ''"
  12303. >确 定</el-button
  12304. >
  12305. </span>
  12306. </el-dialog>
  12307. <el-dialog
  12308. title="查看富文本"
  12309. :visible.sync="dialogVisible1"
  12310. :append-to-body="true"
  12311. width="500px"
  12312. :before-close="handleClose"
  12313. class="dialog_diy textCss"
  12314. >
  12315. <el-form style="font-size: 20px">
  12316. <el-form-item label="文本标题" class="textTitle">
  12317. <div style="font-size: 20px">{{ text.name }}</div>
  12318. </el-form-item>
  12319. <div>富文本内容</div>
  12320. <div
  12321. v-html="text.url"
  12322. style="font-size: 18px; padding: 40px 0 0 0"
  12323. ></div>
  12324. </el-form>
  12325. <span slot="footer" class="dialog-footer">
  12326. <el-button type="primary" @click="dialogVisible1 = false"
  12327. >确定</el-button
  12328. >
  12329. </span>
  12330. </el-dialog>
  12331. <el-dialog
  12332. title="文件预览"
  12333. :visible.sync="dialogVisible3"
  12334. width="50%"
  12335. :before-close="handleClose"
  12336. class="dialog_diy"
  12337. :class="{ fullStyle: full }"
  12338. >
  12339. <div slot="title" class="header-title">
  12340. <div style="color: #fff">文件预览</div>
  12341. <div style="position: absolute; top: 19px; right: 50px">
  12342. <img
  12343. src="../../assets/full.png"
  12344. style="height: 16px; cursor: pointer"
  12345. alt=""
  12346. @click="fullTools"
  12347. />
  12348. </div>
  12349. </div>
  12350. <pdf
  12351. v-if="showPDF"
  12352. :pdfUrl="pptImgUrl"
  12353. style="width: 100%; height: 520px; overflow: auto"
  12354. :class="{ fullStyle: full }"
  12355. ></pdf>
  12356. <iframe
  12357. v-else
  12358. :src="pptImgUrl"
  12359. frameborder="0"
  12360. width="100%"
  12361. height="600"
  12362. :class="{ fullStyle: full }"
  12363. ></iframe>
  12364. </el-dialog>
  12365. <el-dialog
  12366. title="文件预览"
  12367. :visible.sync="dialogVisible6"
  12368. width="50%"
  12369. :before-close="handleClose"
  12370. class="dialog_diy"
  12371. >
  12372. <iframe
  12373. :src="pptImgUrl1"
  12374. frameborder="0"
  12375. width="100%"
  12376. height="600"
  12377. ></iframe>
  12378. </el-dialog>
  12379. <el-dialog
  12380. title="提示"
  12381. :visible.sync="dialogVisible4"
  12382. :append-to-body="true"
  12383. width="800px"
  12384. :before-close="handleClose"
  12385. class="dialog_diy notice"
  12386. >
  12387. <div>此功能暂未开放!</div>
  12388. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  12389. </el-dialog>
  12390. <el-dialog
  12391. title="问答"
  12392. :visible.sync="answerDialogVisible"
  12393. :append-to-body="true"
  12394. width="800px"
  12395. :before-close="handleClose"
  12396. class="dialog_diy"
  12397. >
  12398. <div>
  12399. <div
  12400. style="
  12401. display: flex;
  12402. flex-wrap: nowrap;
  12403. flex-direction: column;
  12404. position: relative;
  12405. "
  12406. >
  12407. <div class="queTop" style="padding: 20px 0 20px 0">
  12408. <div class="question">
  12409. <img src="../../assets/icon/question.png" alt />
  12410. </div>
  12411. <div class="queTitle">
  12412. <div style="width: 90px; min-width: 90px">提问:</div>
  12413. <div>{{ answerQ }}</div>
  12414. </div>
  12415. </div>
  12416. <div class="ediBottom">
  12417. <textarea
  12418. rows="6"
  12419. class="binfo_input"
  12420. cols
  12421. style="width: 95%; height: 120px"
  12422. v-model="questionAnswer"
  12423. ></textarea>
  12424. </div>
  12425. </div>
  12426. </div>
  12427. <div slot="footer">
  12428. <el-button @click="answerDialogVisible = false">取 消</el-button>
  12429. <el-button type="primary" @click="addQuestion">提 交</el-button>
  12430. </div>
  12431. </el-dialog>
  12432. <el-dialog
  12433. title="问答"
  12434. :visible.sync="answerDialogVisibleTeacher"
  12435. :append-to-body="true"
  12436. width="800px"
  12437. :before-close="handleClose"
  12438. class="dialog_diy"
  12439. >
  12440. <div>
  12441. <div class="w_name">
  12442. 学生姓名:<span>{{ sStudent.student }}</span>
  12443. </div>
  12444. <div
  12445. style="
  12446. display: flex;
  12447. flex-wrap: nowrap;
  12448. flex-direction: column;
  12449. position: relative;
  12450. "
  12451. >
  12452. <div class="queTop" style="padding: 20px 0 20px 0">
  12453. <div class="question">
  12454. <img src="../../assets/icon/question.png" alt />
  12455. </div>
  12456. <div class="queTitle">
  12457. <div style="width: 90px; min-width: 90px">提问:</div>
  12458. <div>{{ answerQ }}</div>
  12459. </div>
  12460. </div>
  12461. <div class="ediBottom">
  12462. <textarea
  12463. rows="6"
  12464. class="binfo_input"
  12465. cols
  12466. style="width: 95%; height: 120px"
  12467. v-model="questionAnswer"
  12468. ></textarea>
  12469. </div>
  12470. </div>
  12471. </div>
  12472. <div slot="footer">
  12473. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  12474. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  12475. </div>
  12476. </el-dialog>
  12477. <el-dialog
  12478. title="倒计时"
  12479. :visible.sync="timeDialogVisible"
  12480. :append-to-body="true"
  12481. width="800px"
  12482. :before-close="handleClose"
  12483. class="dialog_diy"
  12484. >
  12485. <div>
  12486. <div style="margin-bottom: 20px; color: #999">
  12487. 提示:点击“+”或“-”修改倒计时时长。
  12488. </div>
  12489. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  12490. </div>
  12491. <div slot="footer">
  12492. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  12493. </div>
  12494. </el-dialog>
  12495. <el-dialog
  12496. title="权限设置"
  12497. :visible.sync="juriVisible"
  12498. :append-to-body="true"
  12499. width="400px"
  12500. :before-close="handleClose"
  12501. class="dialog_diy"
  12502. >
  12503. <div>
  12504. <div class="open_box">
  12505. <div class="switch_box">
  12506. <span>允许学生查看所有作业</span>
  12507. <el-switch
  12508. v-model="sIsOpen"
  12509. active-text=""
  12510. class="switchCss"
  12511. @change="updateSLook"
  12512. ></el-switch>
  12513. </div>
  12514. <div
  12515. class="switch_box"
  12516. v-if="
  12517. courseDetail.userid == userid ||
  12518. (courseDetail.course_teacher &&
  12519. courseDetail.course_teacher.indexOf(userid) != -1)
  12520. "
  12521. >
  12522. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  12523. <span>禁止学生查看所有阶段</span>
  12524. <el-switch
  12525. v-model="IsLookOpen"
  12526. active-text=""
  12527. class="switchCss"
  12528. @change="updateLookOpen"
  12529. ></el-switch>
  12530. </div>
  12531. <div class="switch_box" v-if="courseDetail.userid == userid">
  12532. <span>开启跟随模式</span>
  12533. <el-switch
  12534. v-model="IsFollow"
  12535. active-text=""
  12536. class="switchCss"
  12537. @change="updateFollow"
  12538. ></el-switch>
  12539. </div>
  12540. </div>
  12541. </div>
  12542. <div slot="footer">
  12543. <el-button
  12544. style="background: #409efe; color: #fff"
  12545. @click="juriVisible = false"
  12546. >关 闭</el-button
  12547. >
  12548. </div>
  12549. </el-dialog>
  12550. <el-dialog
  12551. title="查看视频"
  12552. :visible.sync="videoVisible"
  12553. :append-to-body="true"
  12554. width="1000px"
  12555. :before-close="handleClose"
  12556. class="dialog_diy1"
  12557. >
  12558. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  12559. <video-player
  12560. class="video-player vjs-custom-skin"
  12561. :playsinline="true"
  12562. :options="videoDetail"
  12563. @play="onPlayerPlay($event)"
  12564. style="width: 100%; height: 100%"
  12565. ></video-player>
  12566. </div>
  12567. <div slot="footer">
  12568. <el-button
  12569. style="background: #409efe; color: #fff"
  12570. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  12571. >
  12572. 关 闭</el-button
  12573. >
  12574. </div>
  12575. </el-dialog>
  12576. <el-dialog
  12577. title="查看详情"
  12578. :visible.sync="commentDialogVisible"
  12579. :append-to-body="true"
  12580. width="800px"
  12581. :before-close="handleClose"
  12582. class="dialog_diy"
  12583. >
  12584. <div class="commentTop">
  12585. <div class="studentDetail">
  12586. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  12587. <div class="nameAndTime">
  12588. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  12589. <div>{{ commentDetail.time }}</div>
  12590. </div>
  12591. <div
  12592. class="returnBtn"
  12593. style="margin-left: auto; width: 80px"
  12594. v-if="
  12595. commentDetail.works &&
  12596. commentDetail.type == 0 &&
  12597. (tType == 1 || tType == 4)
  12598. "
  12599. @click="
  12600. showPicturePaint(
  12601. commentDetail.img ? commentDetail.img : commentDetail.works
  12602. )
  12603. "
  12604. >
  12605. 教师批注
  12606. </div>
  12607. </div>
  12608. <div
  12609. class="worksAnswer"
  12610. v-if="commentDetail.works && commentDetail.type == 2"
  12611. >
  12612. {{ JSON.parse(commentDetail.works)[0].answer }}
  12613. </div>
  12614. <div
  12615. class="worksAnswer"
  12616. v-if="commentDetail.works && commentDetail.type == 1"
  12617. >
  12618. <img
  12619. src="../../assets/teacherWork.png"
  12620. v-if="commentDetail.ateacher"
  12621. class="w_teachert"
  12622. />
  12623. <pdf
  12624. v-if="showPDF"
  12625. :pdfUrl="pptImgUrl"
  12626. style="width: 100%; height: 520px; overflow: auto"
  12627. :class="{ fullStyle: full }"
  12628. ></pdf>
  12629. <iframe
  12630. v-else
  12631. :src="pptImgUrl"
  12632. frameborder="0"
  12633. width="100%"
  12634. height="600"
  12635. :class="{ fullStyle: full }"
  12636. ></iframe>
  12637. </div>
  12638. <div
  12639. class="worksAnswer"
  12640. v-if="commentDetail.works && commentDetail.type == 0"
  12641. >
  12642. <img
  12643. src="../../assets/teacherWork.png"
  12644. v-if="commentDetail.ateacher"
  12645. class="w_teachert"
  12646. style="right: 105px"
  12647. />
  12648. <img
  12649. :src="commentDetail.works"
  12650. alt=""
  12651. @click="previewImg(commentDetail.works)"
  12652. />
  12653. </div>
  12654. <div
  12655. class="worksAnswer"
  12656. v-if="commentDetail.works && commentDetail.type == 3"
  12657. >
  12658. <img
  12659. src="../../assets/teacherWork.png"
  12660. v-if="commentDetail.ateacher"
  12661. class="w_teachert"
  12662. />
  12663. <video-player
  12664. class="video-player vjs-custom-skin"
  12665. :playsinline="true"
  12666. :options="videoDetail"
  12667. @play="onPlayerPlay($event)"
  12668. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  12669. ></video-player>
  12670. </div>
  12671. <div
  12672. class="worksAnswer"
  12673. v-if="commentDetail.works && commentDetail.type == 10"
  12674. >
  12675. <div class="cont" v-html="commentDetail.works.text"></div>
  12676. </div>
  12677. <div
  12678. class="worksAnswer codeFileBox"
  12679. v-if="commentDetail.works && commentDetail.type == 12"
  12680. @click="downloadFile(commentDetail.works)"
  12681. >
  12682. <img src="../../assets/icon/codeFile.png" />
  12683. <div>点击下载文件</div>
  12684. </div>
  12685. <div
  12686. class="worksAnswer codeFileBox"
  12687. v-if="commentDetail.works && commentDetail.type == 15"
  12688. @click="
  12689. openCocoPi(
  12690. 57,
  12691. commentIndexJson.toolIndex,
  12692. commentDetail.userid,
  12693. commentDetail.sName
  12694. )
  12695. "
  12696. >
  12697. <img src="../../assets/icon/codeFile.png" />
  12698. <div>点击打开CocoPi</div>
  12699. </div>
  12700. <div
  12701. class="worksAnswer"
  12702. v-if="commentDetail.works && commentDetail.type == 13"
  12703. >
  12704. <div v-html="JSON.parse(commentDetail.works).text"></div>
  12705. </div>
  12706. <div
  12707. class="worksAnswer"
  12708. v-if="commentDetail.works && commentDetail.type == 4"
  12709. >
  12710. <div class="evalCss">
  12711. <div class="nav">请选择星星进行评分</div>
  12712. <div class="middleBox" v-if="eScore.eStar">
  12713. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  12714. <div class="nameAndrate">
  12715. <div>{{ e.value }}</div>
  12716. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  12717. </div>
  12718. <div v-if="e.detail">{{ e.detail }}</div>
  12719. </div>
  12720. <div class="bz">
  12721. <textarea
  12722. disabled
  12723. rows="4"
  12724. class="pj"
  12725. style="
  12726. padding: 10px 5px;
  12727. width: 70%;
  12728. background: #f7f6f9;
  12729. font-size: 14px;
  12730. text-indent: 10px;
  12731. color: #000;
  12732. "
  12733. cols
  12734. v-model="eScore.eBzText"
  12735. placeholder="请输入评价内容..."
  12736. ></textarea>
  12737. </div>
  12738. </div>
  12739. </div>
  12740. </div>
  12741. <div class="comment">
  12742. <div class="commentList">
  12743. <div class="commentImg">
  12744. <img
  12745. @click="
  12746. isLikes(
  12747. commentDetail.wid,
  12748. userid,
  12749. 1,
  12750. null,
  12751. commentDetail.isLikes,
  12752. commentDetail.sName
  12753. )
  12754. "
  12755. :src="commentDetail.isLikes == true ? likes : noLikes"
  12756. alt=""
  12757. />
  12758. </div>
  12759. <div>{{ commentDetail.likesCount }}</div>
  12760. </div>
  12761. <div class="commentList">
  12762. <div class="commentImg">
  12763. <img src="../../assets/icon/comment/comment.png" alt="" />
  12764. </div>
  12765. <div>{{ commentDetail.commentCount }}</div>
  12766. </div>
  12767. </div>
  12768. <div class="drawPBox" v-if="commentDetail.img">
  12769. <span>教师批注</span>
  12770. <img
  12771. :src="commentDetail.img"
  12772. alt=""
  12773. @click="previewImg(commentDetail.img)"
  12774. />
  12775. <span
  12776. class="deleteImg"
  12777. v-if="tType == 1 || tType == 4"
  12778. @click.stop="deletePicturePaint(commentDetail.wid)"
  12779. style="
  12780. font-size: 14px;
  12781. width: auto !important;
  12782. color: #b4b4b4;
  12783. top: unset;
  12784. bottom: 0;
  12785. border: none;
  12786. padding: 0;
  12787. height: auto !important;
  12788. margin: 0;
  12789. "
  12790. >删除</span
  12791. >
  12792. </div>
  12793. </div>
  12794. <div class="commentBox">
  12795. <div class="pl">评论:</div>
  12796. <div style="max-height: 200px; overflow: auto">
  12797. <div
  12798. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  12799. style="padding: 10px 0 0 0"
  12800. >
  12801. <div
  12802. class="studentDetail"
  12803. style="padding-top: 10px"
  12804. v-for="(co, coIndex) in commentDetail.commentJson"
  12805. :key="coIndex"
  12806. >
  12807. <div class="tx" style="min-width: 50px">
  12808. <img src="../../assets/avatar.png" alt="" />
  12809. </div>
  12810. <div class="plPerson">
  12811. <div class="plName">
  12812. <div>{{ co.commentPeople }}</div>
  12813. <div style="margin-left: 5px">
  12814. {{ co.commentTime }}
  12815. </div>
  12816. <div
  12817. class="deleteComment"
  12818. v-if="userid == co.userid"
  12819. @click="deleteComment(co.wid)"
  12820. >
  12821. 删除
  12822. </div>
  12823. </div>
  12824. <div class="plContent">{{ co.commentText }}</div>
  12825. </div>
  12826. </div>
  12827. </div>
  12828. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  12829. </div>
  12830. </div>
  12831. <div style="margin-top: 10px">
  12832. <div class="displayBox">
  12833. <div
  12834. style="
  12835. color: #556db4;
  12836. font-size: 14px;
  12837. font-weight: bold;
  12838. padding-bottom: 10px;
  12839. "
  12840. >
  12841. 评价
  12842. </div>
  12843. <div class="easy_comment" v-if="false">
  12844. <div
  12845. v-for="(p, pIndex) in PlTextList"
  12846. :key="pIndex"
  12847. @click="fastText(p, 1)"
  12848. >
  12849. {{ p }}
  12850. </div>
  12851. </div>
  12852. </div>
  12853. <div>
  12854. <textarea
  12855. rows="3"
  12856. class="pj"
  12857. style="padding: 10px 5px"
  12858. cols
  12859. v-model="commentText"
  12860. placeholder="请输入评论"
  12861. ></textarea>
  12862. </div>
  12863. </div>
  12864. <div slot="footer">
  12865. <el-button
  12866. @click="
  12867. (commentDialogVisible = false),
  12868. (commentIndexJson = {}),
  12869. videoDetail.sources && videoDetail.sources[0]
  12870. ? (videoDetail.sources[0].src = '')
  12871. : ''
  12872. "
  12873. >取 消</el-button
  12874. >
  12875. <el-button
  12876. type="primary"
  12877. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  12878. >确 定</el-button
  12879. >
  12880. </div>
  12881. </el-dialog>
  12882. <el-dialog
  12883. title="查看文档"
  12884. :visible.sync="fullDialogVisible"
  12885. :append-to-body="true"
  12886. width="100%"
  12887. :before-close="handleClose"
  12888. :show-close="false"
  12889. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  12890. >
  12891. <div slot="title" class="header-title">
  12892. <div style="color: #fff">查看文档</div>
  12893. <div
  12894. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  12895. style="
  12896. cursor: pointer;
  12897. position: absolute;
  12898. top: 20px;
  12899. right: 20px;
  12900. color: #fff;
  12901. "
  12902. >
  12903. 退出全屏
  12904. </div>
  12905. </div>
  12906. <div style="height: 100%;position: relative;">
  12907. <el-button
  12908. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  12909. size="medium"
  12910. type="primary"
  12911. @click="
  12912. () => {
  12913. (fullDialogVisible = false),
  12914. changeSplitScreenBehavior({ code: 99 });
  12915. }
  12916. "
  12917. style="
  12918. cursor: pointer;
  12919. position: absolute;
  12920. top: 10px;
  12921. right: 20px;
  12922. color: #fff;
  12923. "
  12924. >
  12925. 退出全屏
  12926. </el-button>
  12927. <div
  12928. class="wheel"
  12929. v-if="
  12930. fulltype == 2 &&
  12931. fullUrl.indexOf(
  12932. 'https://view.officeapps.live.com/op/view.aspx?src='
  12933. ) != -1
  12934. "
  12935. style="width: 100%;height:100%; margin: 0 auto"
  12936. >
  12937. <iframe
  12938. style="width: 100%; height: 100%; border: none"
  12939. :src="fullUrl"
  12940. ></iframe>
  12941. </div>
  12942. <iframe
  12943. v-else-if="fulltype == 2"
  12944. style="width: 100%; height: 100%; border: none"
  12945. :src="fullUrl"
  12946. security="restricted"
  12947. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  12948. ></iframe>
  12949. <pdf
  12950. v-else-if="fulltype == 3"
  12951. :pdfUrl="fullUrl"
  12952. style="width: 100%; height: 100%; overflow: auto"
  12953. ></pdf>
  12954. <div
  12955. class="wheel"
  12956. v-if="fulltype == 1"
  12957. style="
  12958. box-shadow: 0 0 6px 1px #f2f2f2;
  12959. height:100%;
  12960. width: 100%;
  12961. background: #f1f1f1;
  12962. "
  12963. >
  12964. <div class="title" style="width: 100%; box-sizing: border-box">
  12965. 查看文档
  12966. </div>
  12967. <el-form class="textBox" style="height: 90%">
  12968. <el-form-item class="textTitle">
  12969. <div style="font-size: 22px">
  12970. {{ fullUrl.name }}
  12971. </div>
  12972. </el-form-item>
  12973. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  12974. <div
  12975. v-html="fullUrl.url"
  12976. class="textContent"
  12977. style="height: auto"
  12978. ></div>
  12979. </el-form>
  12980. </div>
  12981. </div>
  12982. <!-- <div slot="footer">
  12983. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  12984. </div> -->
  12985. </el-dialog>
  12986. <el-dialog
  12987. title="个人评价"
  12988. :visible.sync="studentEvalDialogVisible"
  12989. :append-to-body="true"
  12990. width="800px"
  12991. :before-close="handleClose"
  12992. class="dialog_diy"
  12993. >
  12994. <div class="evalCss">
  12995. <div class="nav">请选择星星进行评分</div>
  12996. <div class="middleBox" v-if="eScore.eStar">
  12997. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  12998. <div class="nameAndrate">
  12999. <div>{{ e.value }}</div>
  13000. <el-rate
  13001. v-model="eScore.eStar[eIndex]"
  13002. :disabled="isStar"
  13003. ></el-rate>
  13004. </div>
  13005. <div v-if="e.detail">{{ e.detail }}</div>
  13006. </div>
  13007. <div class="easy_comment" v-if="false">
  13008. <div
  13009. v-for="(p, pIndex) in PlTextList"
  13010. :key="pIndex"
  13011. @click="fastText(p, 2)"
  13012. >
  13013. {{ p }}
  13014. </div>
  13015. </div>
  13016. <div class="bz">
  13017. <textarea
  13018. :disabled="isStar"
  13019. rows="4"
  13020. class="pj"
  13021. style="
  13022. padding: 10px 5px;
  13023. width: 70%;
  13024. background: #f7f6f9;
  13025. font-size: 14px;
  13026. text-indent: 10px;
  13027. "
  13028. cols
  13029. v-model="eScore.eBzText"
  13030. placeholder="请输入评价内容..."
  13031. ></textarea>
  13032. </div>
  13033. </div>
  13034. </div>
  13035. <div slot="footer">
  13036. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13037. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13038. >确 定</el-button
  13039. >
  13040. </div>
  13041. </el-dialog>
  13042. <el-dialog
  13043. title="个人评价"
  13044. :visible.sync="studentEvalDialogVisibleTeacher"
  13045. :append-to-body="true"
  13046. width="800px"
  13047. :before-close="handleClose"
  13048. class="dialog_diy"
  13049. >
  13050. <div class="w_name">
  13051. 学生姓名:<span>{{ sStudent.student }}</span>
  13052. </div>
  13053. <div class="evalCss">
  13054. <div class="nav">请选择星星进行评分</div>
  13055. <div class="middleBox" v-if="eScore.eStar">
  13056. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13057. <div class="nameAndrate">
  13058. <div>{{ e.value }}</div>
  13059. <el-rate
  13060. v-model="eScore.eStar[eIndex]"
  13061. :disabled="isStar"
  13062. ></el-rate>
  13063. </div>
  13064. <div v-if="e.detail">{{ e.detail }}</div>
  13065. </div>
  13066. <div class="easy_comment" v-if="false">
  13067. <div
  13068. v-for="(p, pIndex) in PlTextList"
  13069. :key="pIndex"
  13070. @click="fastText(p, 2)"
  13071. >
  13072. {{ p }}
  13073. </div>
  13074. </div>
  13075. <div class="bz">
  13076. <textarea
  13077. :disabled="isStar"
  13078. rows="4"
  13079. class="pj"
  13080. style="
  13081. padding: 10px 5px;
  13082. width: 70%;
  13083. background: #f7f6f9;
  13084. font-size: 14px;
  13085. text-indent: 10px;
  13086. "
  13087. cols
  13088. v-model="eScore.eBzText"
  13089. placeholder="请输入评价内容..."
  13090. ></textarea>
  13091. </div>
  13092. </div>
  13093. </div>
  13094. <div slot="footer">
  13095. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13096. >取 消</el-button
  13097. >
  13098. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13099. >确 定</el-button
  13100. >
  13101. </div>
  13102. </el-dialog>
  13103. <el-dialog
  13104. title="选择匹配"
  13105. :visible.sync="dialogVisibleSelect"
  13106. :append-to-body="true"
  13107. width="90%"
  13108. :before-close="handleClose"
  13109. class="dialog_diy dialog_diy3"
  13110. >
  13111. <div v-if="selectJson">
  13112. <div class="select_box2">
  13113. <div class="select_box2_title">
  13114. <div>选择匹配</div>
  13115. <div>请选择对应的答案进行答题!</div>
  13116. </div>
  13117. <div class="select_box2_box">
  13118. <div class="select_box2_img">
  13119. <img
  13120. :src="selectJson.url"
  13121. @click="previewImg(selectJson.url)"
  13122. alt=""
  13123. />
  13124. </div>
  13125. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13126. <div style="padding-top: 15px">
  13127. <div class="select_answer_title" v-if="isSelect">
  13128. {{ selectAnswer.stu }}
  13129. </div>
  13130. <div class="select_answer_title" v-else>
  13131. 根据题目选择对应答案
  13132. </div>
  13133. <div
  13134. class="select_box2_answer_box"
  13135. v-for="(item2, checkIndex) in selectJson.select"
  13136. :key="checkIndex"
  13137. >
  13138. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13139. <el-select
  13140. :disabled="isSelect"
  13141. v-model="selectAnswer.answer[checkIndex]"
  13142. placeholder="请选择正确答案"
  13143. >
  13144. <el-option
  13145. v-for="(e, eIndex) in selectJson.select"
  13146. :key="eIndex"
  13147. :label="e"
  13148. :value="eIndex"
  13149. >
  13150. </el-option>
  13151. </el-select>
  13152. </div>
  13153. </div>
  13154. <div
  13155. class="rightAnswerCss"
  13156. v-if="isSelect && (tType == 1 || tType == 4)"
  13157. >
  13158. <div
  13159. v-for="(a, aIndex) in selectJson.answer"
  13160. :key="aIndex"
  13161. class="rightAnswer"
  13162. >
  13163. <div
  13164. v-if="selectAnswer.answer[aIndex] === a"
  13165. style="color: #767de1"
  13166. >
  13167. 回答正确
  13168. </div>
  13169. <div v-else>回答错误</div>
  13170. <div
  13171. style="margin-left: 10px"
  13172. v-if="selectAnswer.answer[aIndex] !== a"
  13173. >
  13174. 正确答案:
  13175. </div>
  13176. <div
  13177. :class="
  13178. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13179. "
  13180. >
  13181. {{ selectJson.select[a] }}
  13182. </div>
  13183. </div>
  13184. </div>
  13185. </div>
  13186. <div class="upAnswerCss">
  13187. <el-button
  13188. type="primary"
  13189. @click="addSelectAnswer"
  13190. v-if="!isSelect"
  13191. >提交答案</el-button
  13192. >
  13193. </div>
  13194. </div>
  13195. </div>
  13196. </div>
  13197. </el-dialog>
  13198. <el-dialog
  13199. title="选择匹配"
  13200. :visible.sync="dialogVisibleSelectTeacher"
  13201. :append-to-body="true"
  13202. width="90%"
  13203. :before-close="handleClose"
  13204. class="dialog_diy dialog_diy3"
  13205. >
  13206. <div v-if="selectJson">
  13207. <div class="w_name">
  13208. 学生姓名:<span>{{ sStudent.student }}</span>
  13209. </div>
  13210. <div class="select_box2">
  13211. <div class="select_box2_title">
  13212. <div>选择匹配</div>
  13213. <div>请选择对应的答案进行答题!</div>
  13214. </div>
  13215. <div class="select_box2_box">
  13216. <div class="select_box2_img">
  13217. <img
  13218. :src="selectJson.url"
  13219. @click="previewImg(selectJson.url)"
  13220. alt=""
  13221. />
  13222. </div>
  13223. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13224. <div style="padding-top: 15px">
  13225. <div class="select_answer_title" v-if="isSelect">
  13226. {{ selectAnswer.stu }}
  13227. </div>
  13228. <div class="select_answer_title" v-else>
  13229. 根据题目选择对应答案
  13230. </div>
  13231. <div
  13232. class="select_box2_answer_box"
  13233. v-for="(item2, checkIndex) in selectJson.select"
  13234. :key="checkIndex"
  13235. >
  13236. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13237. <el-select
  13238. :disabled="isSelect"
  13239. v-model="selectAnswer.answer[checkIndex]"
  13240. placeholder="请选择正确答案"
  13241. >
  13242. <el-option
  13243. v-for="(e, eIndex) in selectJson.select"
  13244. :key="eIndex"
  13245. :label="e"
  13246. :value="eIndex"
  13247. >
  13248. </el-option>
  13249. </el-select>
  13250. </div>
  13251. </div>
  13252. <div
  13253. class="rightAnswerCss"
  13254. v-if="isSelect && (tType == 1 || tType == 4)"
  13255. >
  13256. <div
  13257. v-for="(a, aIndex) in selectJson.answer"
  13258. :key="aIndex"
  13259. class="rightAnswer"
  13260. >
  13261. <div
  13262. v-if="selectAnswer.answer[aIndex] === a"
  13263. style="color: #767de1"
  13264. >
  13265. 回答正确
  13266. </div>
  13267. <div v-else>回答错误</div>
  13268. <div
  13269. style="margin-left: 10px"
  13270. v-if="selectAnswer.answer[aIndex] !== a"
  13271. >
  13272. 正确答案:
  13273. </div>
  13274. <div
  13275. :class="
  13276. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13277. "
  13278. >
  13279. {{ selectJson.select[a] }}
  13280. </div>
  13281. </div>
  13282. </div>
  13283. </div>
  13284. <div class="upAnswerCss">
  13285. <el-button
  13286. type="primary"
  13287. @click="addSelectAnswerTeacher"
  13288. v-if="!isSelect"
  13289. >提交答案</el-button
  13290. >
  13291. </div>
  13292. </div>
  13293. </div>
  13294. </div>
  13295. </el-dialog>
  13296. <el-dialog
  13297. title="教师评分"
  13298. :visible.sync="dialogVisibleScore"
  13299. :append-to-body="true"
  13300. width="800px"
  13301. :before-close="handleClose"
  13302. class="dialog_diy"
  13303. >
  13304. <div>
  13305. <div class="studentDetail">
  13306. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13307. <div class="nameAndTime">
  13308. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13309. <div>{{ commentDetail.time }}</div>
  13310. </div>
  13311. </div>
  13312. <div
  13313. class="worksAnswer"
  13314. v-if="commentDetail.works && commentDetail.type == 2"
  13315. >
  13316. {{ JSON.parse(commentDetail.works)[0].answer }}
  13317. </div>
  13318. <div
  13319. class="worksAnswer"
  13320. v-if="commentDetail.works && commentDetail.type == 1"
  13321. >
  13322. <pdf
  13323. v-if="showPDF"
  13324. :pdfUrl="pptImgUrl"
  13325. style="width: 100%; height: 520px; overflow: auto"
  13326. :class="{ fullStyle: full }"
  13327. ></pdf>
  13328. <iframe
  13329. v-else
  13330. :src="pptImgUrl"
  13331. frameborder="0"
  13332. width="100%"
  13333. height="600"
  13334. :class="{ fullStyle: full }"
  13335. ></iframe>
  13336. </div>
  13337. <div
  13338. class="worksAnswer"
  13339. v-if="commentDetail.works && commentDetail.type == 0"
  13340. >
  13341. <img
  13342. :src="commentDetail.works"
  13343. alt=""
  13344. @click="previewImg(commentDetail.works)"
  13345. />
  13346. </div>
  13347. <div
  13348. class="worksAnswer"
  13349. v-if="commentDetail.works && commentDetail.type == 3"
  13350. >
  13351. <video-player
  13352. class="video-player vjs-custom-skin"
  13353. :playsinline="true"
  13354. :options="videoDetail"
  13355. @play="onPlayerPlay($event)"
  13356. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13357. ></video-player>
  13358. </div>
  13359. <div
  13360. class="worksAnswer codeFileBox"
  13361. v-if="commentDetail.works && commentDetail.type == 12"
  13362. @click="downloadFile(commentDetail.works)"
  13363. >
  13364. <img src="../../assets/icon/codeFile.png" />
  13365. <div>点击下载文件</div>
  13366. </div>
  13367. <div
  13368. class="worksAnswer codeFileBox"
  13369. v-if="commentDetail.works && commentDetail.type == 15"
  13370. @click="
  13371. openCocoPi(
  13372. 57,
  13373. commentIndexJson.toolIndex,
  13374. commentDetail.userid,
  13375. commentDetail.sName
  13376. )
  13377. "
  13378. >
  13379. <img src="../../assets/icon/codeFile.png" />
  13380. <div>点击打开CocoPi</div>
  13381. </div>
  13382. <div
  13383. class="worksAnswer"
  13384. v-if="commentDetail.works && commentDetail.type == 13"
  13385. >
  13386. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13387. </div>
  13388. <div class="scoreBox">
  13389. <span class="t">请输入分数</span>
  13390. <el-input-number
  13391. :disabled="courseDetail.userid != userid"
  13392. v-model="wScore"
  13393. :controls="false"
  13394. :min="0"
  13395. :max="100"
  13396. ></el-input-number>
  13397. </div>
  13398. <div class="scoreDetailBox">
  13399. <span class="t">评分评论</span>
  13400. <el-input
  13401. type="textarea"
  13402. :rows="5"
  13403. :disabled="courseDetail.userid != userid"
  13404. resize="none"
  13405. v-model="scoreDetail"
  13406. placeholder="请输入对学生的评价"
  13407. >
  13408. </el-input>
  13409. </div>
  13410. </div>
  13411. <span slot="footer" class="dialog-footer">
  13412. <el-button
  13413. @click="
  13414. (dialogVisibleScore = false),
  13415. (commentIndexJson = {}),
  13416. videoDetail.sources && videoDetail.sources[0]
  13417. ? (videoDetail.sources[0].src = '')
  13418. : ''
  13419. "
  13420. >取 消</el-button
  13421. >
  13422. <el-button
  13423. type="primary"
  13424. v-if="courseDetail.userid == userid"
  13425. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  13426. >确 定
  13427. </el-button>
  13428. </span>
  13429. </el-dialog>
  13430. <el-dialog
  13431. title="排序"
  13432. :visible.sync="dialogVisibleSentence"
  13433. :append-to-body="true"
  13434. width="1000px"
  13435. :before-close="handleClose"
  13436. class="dialog_diy dialog_diy3"
  13437. >
  13438. <div>
  13439. <div class="sentenBox">
  13440. <div
  13441. v-for="(st, stIndex) in sentenceList"
  13442. :key="stIndex"
  13443. style="padding-bottom: 20px"
  13444. >
  13445. <div
  13446. style="padding: 15px 0 10px 20px"
  13447. class="sentenceTitle"
  13448. :index="stIndex + 1"
  13449. >
  13450. 题目{{ stIndex + 1 }}:请选择正确顺序
  13451. </div>
  13452. <div class="cardList" v-if="st.chooseSenList">
  13453. <div class="cardBox">
  13454. <div
  13455. v-for="(r, rIndex) in st.chooseSenList"
  13456. :key="rIndex"
  13457. @click="returnCard(r, stIndex, rIndex)"
  13458. >
  13459. <el-tooltip
  13460. class="item"
  13461. effect="light"
  13462. :content="r"
  13463. placement="top"
  13464. v-if="r != '' && r != undefined"
  13465. >
  13466. <div
  13467. :class="{
  13468. isCard: r,
  13469. isChooseCard: r == '' || r == undefined,
  13470. }"
  13471. >
  13472. <div>{{ r }}</div>
  13473. </div>
  13474. </el-tooltip>
  13475. <div
  13476. :class="{
  13477. isCard: r,
  13478. isChooseCard: r == '' || r == undefined,
  13479. }"
  13480. v-else
  13481. >
  13482. <div>{{ r }}</div>
  13483. </div>
  13484. </div>
  13485. </div>
  13486. </div>
  13487. <div class="cardList" v-if="st.addChangeSen">
  13488. <div class="cardBox">
  13489. <div
  13490. v-for="(s, sIndex) in st.addChangeSen"
  13491. :key="sIndex"
  13492. @click="setRightAnswer(s, stIndex, sIndex)"
  13493. >
  13494. <el-tooltip
  13495. class="item"
  13496. effect="light"
  13497. :content="s"
  13498. placement="top"
  13499. v-if="s != '' && s != undefined"
  13500. >
  13501. <div
  13502. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13503. >
  13504. <div>{{ s }}</div>
  13505. </div>
  13506. </el-tooltip>
  13507. <div
  13508. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13509. v-else
  13510. >
  13511. <div>{{ s }}</div>
  13512. </div>
  13513. </div>
  13514. </div>
  13515. </div>
  13516. </div>
  13517. </div>
  13518. </div>
  13519. <span slot="footer" class="dialog-footer">
  13520. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  13521. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  13522. </span>
  13523. </el-dialog>
  13524. <el-dialog
  13525. title="排序"
  13526. :visible.sync="dialogVisibleSentenceTeacher"
  13527. :append-to-body="true"
  13528. width="1000px"
  13529. :before-close="handleClose"
  13530. class="dialog_diy dialog_diy3"
  13531. >
  13532. <div>
  13533. <div class="w_name">
  13534. 学生姓名:<span>{{ sStudent.student }}</span>
  13535. </div>
  13536. <div class="sentenBox">
  13537. <div
  13538. v-for="(st, stIndex) in sentenceList"
  13539. :key="stIndex"
  13540. style="padding-bottom: 20px"
  13541. >
  13542. <div
  13543. style="padding: 15px 0 10px 20px"
  13544. class="sentenceTitle"
  13545. :index="stIndex + 1"
  13546. >
  13547. 题目{{ stIndex + 1 }}:请选择正确顺序
  13548. </div>
  13549. <div class="cardList" v-if="st.chooseSenList">
  13550. <div class="cardBox">
  13551. <div
  13552. v-for="(r, rIndex) in st.chooseSenList"
  13553. :key="rIndex"
  13554. @click="returnCard(r, stIndex, rIndex)"
  13555. >
  13556. <el-tooltip
  13557. class="item"
  13558. effect="light"
  13559. :content="r"
  13560. placement="top"
  13561. v-if="r != '' && r != undefined"
  13562. >
  13563. <div
  13564. :class="{
  13565. isCard: r,
  13566. isChooseCard: r == '' || r == undefined,
  13567. }"
  13568. >
  13569. <div>{{ r }}</div>
  13570. </div>
  13571. </el-tooltip>
  13572. <div
  13573. :class="{
  13574. isCard: r,
  13575. isChooseCard: r == '' || r == undefined,
  13576. }"
  13577. v-else
  13578. >
  13579. <div>{{ r }}</div>
  13580. </div>
  13581. </div>
  13582. </div>
  13583. </div>
  13584. <div class="cardList" v-if="st.addChangeSen">
  13585. <div class="cardBox">
  13586. <div
  13587. v-for="(s, sIndex) in st.addChangeSen"
  13588. :key="sIndex"
  13589. @click="setRightAnswer(s, stIndex, sIndex)"
  13590. >
  13591. <el-tooltip
  13592. class="item"
  13593. effect="light"
  13594. :content="s"
  13595. placement="top"
  13596. v-if="s != '' && s != undefined"
  13597. >
  13598. <div
  13599. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13600. >
  13601. <div>{{ s }}</div>
  13602. </div>
  13603. </el-tooltip>
  13604. <div
  13605. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13606. v-else
  13607. >
  13608. <div>{{ s }}</div>
  13609. </div>
  13610. </div>
  13611. </div>
  13612. </div>
  13613. </div>
  13614. </div>
  13615. </div>
  13616. <span slot="footer" class="dialog-footer">
  13617. <el-button @click="dialogVisibleSentenceTeacher = false"
  13618. >取 消</el-button
  13619. >
  13620. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  13621. </span>
  13622. </el-dialog>
  13623. <el-dialog
  13624. title="排序"
  13625. :visible.sync="dialogVisibleSentence1"
  13626. :append-to-body="true"
  13627. width="1000px"
  13628. :before-close="handleClose"
  13629. class="dialog_diy dialog_diy3"
  13630. >
  13631. <div>
  13632. <div class="sentenBox">
  13633. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13634. {{ sentenceList1.stuName }}的作业
  13635. </div>
  13636. <div
  13637. v-for="(st, stIndex) in sentenceList1"
  13638. :key="stIndex"
  13639. style="padding-bottom: 20px"
  13640. >
  13641. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13642. 第{{ stIndex + 1 }}题
  13643. </div>
  13644. <div class="isWrong">
  13645. <div class="cardList1" v-if="st.chooseSenList">
  13646. <div class="cardBox">
  13647. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  13648. <el-tooltip
  13649. class="item"
  13650. effect="light"
  13651. :content="s"
  13652. placement="top"
  13653. >
  13654. <div class="isCard">
  13655. <div>{{ s }}</div>
  13656. </div>
  13657. </el-tooltip>
  13658. </div>
  13659. </div>
  13660. <div class="cardAnswerBox">
  13661. 组成句子:{{ st.chooseSenList.join(" ") }}
  13662. </div>
  13663. </div>
  13664. <div v-if="tType == 2" class="isTj">
  13665. <div class="isTjImg">
  13666. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13667. </div>
  13668. <div>已提交</div>
  13669. </div>
  13670. <div
  13671. class="answerRight isTj"
  13672. v-if="
  13673. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  13674. (tType == 1 || tType == 4)
  13675. "
  13676. >
  13677. <div class="isTjImg">
  13678. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13679. </div>
  13680. <div>回答正确</div>
  13681. </div>
  13682. <div
  13683. class="answerRight isTj"
  13684. v-if="
  13685. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13686. (tType == 1 || tType == 4)
  13687. "
  13688. >
  13689. <div class="isTjImg">
  13690. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  13691. </div>
  13692. <div>回答错误</div>
  13693. </div>
  13694. </div>
  13695. <div
  13696. v-if="
  13697. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13698. (tType == 1 || tType == 4)
  13699. "
  13700. >
  13701. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  13702. <div
  13703. class="cardList"
  13704. v-if="st.rightAnswer"
  13705. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  13706. >
  13707. <div class="cardBox">
  13708. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  13709. <el-tooltip
  13710. class="item"
  13711. effect="light"
  13712. :content="r"
  13713. placement="top"
  13714. >
  13715. <div class="isCard1">
  13716. <div>{{ r }}</div>
  13717. </div>
  13718. </el-tooltip>
  13719. </div>
  13720. </div>
  13721. <div class="cardAnswerBox">
  13722. 组成句子:{{ st.rightAnswer.join(" ") }}
  13723. </div>
  13724. </div>
  13725. </div>
  13726. </div>
  13727. </div>
  13728. </div>
  13729. <span slot="footer" class="dialog-footer">
  13730. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  13731. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  13732. >确 定</el-button
  13733. >
  13734. </span>
  13735. </el-dialog>
  13736. <el-dialog
  13737. title="教师提交作业"
  13738. :visible.sync="dialogVisibleWorks"
  13739. :append-to-body="true"
  13740. width="500px"
  13741. :before-close="handleClose"
  13742. class="dialog_change"
  13743. >
  13744. <div class="marginT">
  13745. <div class="w_name">
  13746. 学生姓名:<span>{{ sStudent.student }}</span>
  13747. </div>
  13748. <div>上传文件</div>
  13749. <div
  13750. class="chapter_add"
  13751. @click="addImg($event)"
  13752. v-if="studyJuri[0].cover.length == 0"
  13753. >
  13754. <div class="up_photo">
  13755. <img src="../../assets/uploadImg2.png" alt />
  13756. </div>
  13757. <!-- <input
  13758. type="file"
  13759. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  13760. style="display: none"
  13761. @change="beforeUpload1($event, 1)"
  13762. /> -->
  13763. <input
  13764. type="file"
  13765. accept="*"
  13766. style="display: none"
  13767. @change="beforeUpload1($event, 1)"
  13768. />
  13769. </div>
  13770. <!-- capture="camera" -->
  13771. <div
  13772. class="chapter_add"
  13773. style="
  13774. display: flex;
  13775. width: 100%;
  13776. flex-direction: row;
  13777. flex-wrap: wrap;
  13778. justify-content: flex-start;
  13779. padding: 15px 0;
  13780. "
  13781. v-if="studyJuri[0].cover.length > 0"
  13782. >
  13783. <div class="upCover">
  13784. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  13785. <img :src="word" alt v-else-if="fileType == 1" />
  13786. <img :src="video" alt v-else-if="fileType == 2" />
  13787. <img :src="word2" alt v-else-if="fileType == 3" />
  13788. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  13789. <div class="deleteWord" @click="clean(1)">
  13790. <img src="../../assets/icon/deleteWorks.png" alt />
  13791. </div>
  13792. </div>
  13793. </div>
  13794. </div>
  13795. <div
  13796. class="upload_send"
  13797. @click="addCourseWorksTeacher(taskCount)"
  13798. v-if="!proVisible"
  13799. >
  13800. 提交
  13801. </div>
  13802. </el-dialog>
  13803. <ImgDraw
  13804. :drawShow="drawShow"
  13805. @closeDraw="closeDraw"
  13806. @addImgDraw="addImgDraw"
  13807. :bg="bg"
  13808. ></ImgDraw>
  13809. <el-dialog
  13810. title="表格"
  13811. :visible.sync="dialogVisibleTable"
  13812. :append-to-body="true"
  13813. width="95%"
  13814. :before-close="handleClose"
  13815. class="dialog_diy"
  13816. >
  13817. <el-form>
  13818. <div
  13819. style="
  13820. display: flex;
  13821. align-items: center;
  13822. justify-content: space-between;
  13823. "
  13824. >
  13825. <span>表格内容</span>
  13826. <el-button type="primary" size="small" @click="returnTableText"
  13827. >还原模板</el-button
  13828. >
  13829. </div>
  13830. <Table
  13831. v-model="tableJson.text"
  13832. @change="change"
  13833. v-if="dialogVisibleTable"
  13834. ></Table>
  13835. </el-form>
  13836. <span slot="footer" class="dialog-footer">
  13837. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  13838. <el-button type="primary" @click="addTableWorks">确定</el-button>
  13839. </span>
  13840. </el-dialog>
  13841. <el-dialog
  13842. title="表格"
  13843. :visible.sync="dialogVisibleTableTeacher"
  13844. :append-to-body="true"
  13845. width="95%"
  13846. :before-close="handleClose"
  13847. class="dialog_diy"
  13848. >
  13849. <el-form>
  13850. <div class="w_name">
  13851. 学生姓名:<span>{{ sStudent.student }}</span>
  13852. </div>
  13853. <div>表格内容</div>
  13854. <Table
  13855. v-model="tableJson.text"
  13856. @change="change"
  13857. v-if="dialogVisibleTableTeacher"
  13858. ></Table>
  13859. </el-form>
  13860. <span slot="footer" class="dialog-footer">
  13861. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  13862. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  13863. </span>
  13864. </el-dialog>
  13865. <el-dialog
  13866. title="文档"
  13867. :visible.sync="dialogVisibleWord"
  13868. :append-to-body="true"
  13869. width="95%"
  13870. :before-close="handleClose"
  13871. class="dialog_diy"
  13872. >
  13873. <el-form>
  13874. <div
  13875. style="
  13876. display: flex;
  13877. align-items: center;
  13878. justify-content: space-between;
  13879. "
  13880. >
  13881. <span>文档内容</span>
  13882. <el-button type="primary" size="small" @click="returnWordText"
  13883. >还原模板</el-button
  13884. >
  13885. </div>
  13886. <editor-bar
  13887. v-model="wordJson.text"
  13888. v-if="dialogVisibleWord"
  13889. ></editor-bar>
  13890. </el-form>
  13891. <span slot="footer" class="dialog-footer">
  13892. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  13893. <el-button type="primary" @click="addWordWorks">确定</el-button>
  13894. </span>
  13895. </el-dialog>
  13896. <el-dialog
  13897. title="文档"
  13898. :visible.sync="dialogVisibleWordTeacher"
  13899. :append-to-body="true"
  13900. width="95%"
  13901. :before-close="handleClose"
  13902. class="dialog_diy"
  13903. >
  13904. <el-form>
  13905. <div class="w_name">
  13906. 学生姓名:<span>{{ sStudent.student }}</span>
  13907. </div>
  13908. <div>文档内容</div>
  13909. <editor-bar
  13910. v-model="wordJson.text"
  13911. v-if="dialogVisibleWordTeacher"
  13912. ></editor-bar>
  13913. </el-form>
  13914. <span slot="footer" class="dialog-footer">
  13915. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  13916. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  13917. </span>
  13918. </el-dialog>
  13919. <el-dialog
  13920. title="表格"
  13921. :visible.sync="dialogVisibleTable2"
  13922. :append-to-body="true"
  13923. width="95%"
  13924. :before-close="handleClose"
  13925. class="dialog_diy"
  13926. >
  13927. <el-form>
  13928. <div class="cont" v-html="tableJson.text"></div>
  13929. </el-form>
  13930. <span slot="footer" class="dialog-footer">
  13931. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  13932. </span>
  13933. </el-dialog>
  13934. <el-dialog
  13935. title="文档"
  13936. :visible.sync="dialogVisibleTable3"
  13937. :append-to-body="true"
  13938. width="95%"
  13939. :before-close="handleClose"
  13940. class="dialog_diy"
  13941. >
  13942. <el-form>
  13943. <div class="cont" v-html="tableJson.text"></div>
  13944. </el-form>
  13945. <span slot="footer" class="dialog-footer">
  13946. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  13947. </span>
  13948. </el-dialog>
  13949. <el-dialog
  13950. title="分组设置"
  13951. :visible.sync="dialogVisibleGroup"
  13952. :append-to-body="true"
  13953. width="95%"
  13954. :before-close="handleClose"
  13955. class="dialog_diy"
  13956. >
  13957. <div v-if="dialogVisibleGroup">
  13958. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  13959. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  13960. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  13961. </div>
  13962. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  13963. @click="lockChair">
  13964. 锁定位置
  13965. </div>
  13966. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  13967. 解锁位置
  13968. </div> -->
  13969. <div class="group_switch">
  13970. <span>开放选座</span>
  13971. <el-switch
  13972. v-model="islock"
  13973. active-text=""
  13974. class="switchCss"
  13975. @change="lockChair"
  13976. ></el-switch>
  13977. </div>
  13978. <div
  13979. type="primary"
  13980. @click="updateGroup"
  13981. class="returnBtn"
  13982. style="background-color: #225bc7"
  13983. >
  13984. 分组设置
  13985. </div>
  13986. </div>
  13987. <div>
  13988. <div
  13989. class="g_d_box"
  13990. v-if="groupJson.group && groupStudent[toolindex]"
  13991. >
  13992. <div
  13993. class="g_d_group"
  13994. v-for="(g, gindex) in groupJson.group"
  13995. :key="gindex"
  13996. >
  13997. <div class="g_d_group_chair">
  13998. <div v-if="groupJson.number > 1">
  13999. <span
  14000. :class="{
  14001. isChair:
  14002. groupStudent[toolindex][gindex] &&
  14003. groupStudent[toolindex][gindex][0],
  14004. updateChair:
  14005. courseDetail.userid == userid &&
  14006. groupStudent[toolindex][gindex] &&
  14007. groupStudent[toolindex][gindex][0] &&
  14008. groupJson.islock == 2,
  14009. }"
  14010. ><span
  14011. class="updateChairBtn"
  14012. @click="
  14013. updateGroupChair(
  14014. groupStudent[toolindex][gindex] &&
  14015. groupStudent[toolindex][gindex][0]
  14016. )
  14017. "
  14018. >修改</span
  14019. ></span
  14020. ><span>{{
  14021. groupStudent[toolindex][gindex] &&
  14022. groupStudent[toolindex][gindex][0]
  14023. ? groupStudent[toolindex][gindex] &&
  14024. groupStudent[toolindex][gindex][0].name
  14025. : "空位置"
  14026. }}</span>
  14027. </div>
  14028. <div v-if="groupJson.number > 4">
  14029. <span
  14030. :class="{
  14031. isChair:
  14032. groupStudent[toolindex][gindex] &&
  14033. groupStudent[toolindex][gindex][4],
  14034. updateChair:
  14035. courseDetail.userid == userid &&
  14036. groupStudent[toolindex][gindex] &&
  14037. groupStudent[toolindex][gindex][4] &&
  14038. groupJson.islock == 2,
  14039. }"
  14040. ><span
  14041. class="updateChairBtn"
  14042. @click="
  14043. updateGroupChair(
  14044. groupStudent[toolindex][gindex] &&
  14045. groupStudent[toolindex][gindex][4]
  14046. )
  14047. "
  14048. >修改</span
  14049. ></span
  14050. ><span>{{
  14051. groupStudent[toolindex][gindex] &&
  14052. groupStudent[toolindex][gindex][4]
  14053. ? groupStudent[toolindex][gindex] &&
  14054. groupStudent[toolindex][gindex][4].name
  14055. : "空位置"
  14056. }}</span>
  14057. </div>
  14058. <div v-if="groupJson.number > 8">
  14059. <span
  14060. :class="{
  14061. isChair:
  14062. groupStudent[toolindex][gindex] &&
  14063. groupStudent[toolindex][gindex][8],
  14064. updateChair:
  14065. courseDetail.userid == userid &&
  14066. groupStudent[toolindex][gindex] &&
  14067. groupStudent[toolindex][gindex][8] &&
  14068. groupJson.islock == 2,
  14069. }"
  14070. ><span
  14071. class="updateChairBtn"
  14072. @click="
  14073. updateGroupChair(
  14074. groupStudent[toolindex][gindex] &&
  14075. groupStudent[toolindex][gindex][8]
  14076. )
  14077. "
  14078. >修改</span
  14079. ></span
  14080. ><span>{{
  14081. groupStudent[toolindex][gindex] &&
  14082. groupStudent[toolindex][gindex][8]
  14083. ? groupStudent[toolindex][gindex] &&
  14084. groupStudent[toolindex][gindex][8].name
  14085. : "空位置"
  14086. }}</span>
  14087. </div>
  14088. </div>
  14089. <div class="g_d_group_tableBox">
  14090. <div class="g_d_group_chair2">
  14091. <div v-if="groupJson.number > 2">
  14092. <span
  14093. :class="{
  14094. isChair:
  14095. groupStudent[toolindex][gindex] &&
  14096. groupStudent[toolindex][gindex][2],
  14097. updateChair:
  14098. courseDetail.userid == userid &&
  14099. groupStudent[toolindex][gindex] &&
  14100. groupStudent[toolindex][gindex][2] &&
  14101. groupJson.islock == 2,
  14102. }"
  14103. ><span
  14104. class="updateChairBtn"
  14105. @click="
  14106. updateGroupChair(
  14107. groupStudent[toolindex][gindex] &&
  14108. groupStudent[toolindex][gindex][2]
  14109. )
  14110. "
  14111. >修改</span
  14112. ></span
  14113. ><span>{{
  14114. groupStudent[toolindex][gindex] &&
  14115. groupStudent[toolindex][gindex][2]
  14116. ? groupStudent[toolindex][gindex] &&
  14117. groupStudent[toolindex][gindex][2].name
  14118. : "空位置"
  14119. }}</span>
  14120. </div>
  14121. <div v-if="groupJson.number > 6">
  14122. <span
  14123. :class="{
  14124. isChair:
  14125. groupStudent[toolindex][gindex] &&
  14126. groupStudent[toolindex][gindex][6],
  14127. updateChair:
  14128. courseDetail.userid == userid &&
  14129. groupStudent[toolindex][gindex] &&
  14130. groupStudent[toolindex][gindex][6] &&
  14131. groupJson.islock == 2,
  14132. }"
  14133. ><span
  14134. class="updateChairBtn"
  14135. @click="
  14136. updateGroupChair(
  14137. groupStudent[toolindex][gindex] &&
  14138. groupStudent[toolindex][gindex][6]
  14139. )
  14140. "
  14141. >修改</span
  14142. ></span
  14143. ><span>{{
  14144. groupStudent[toolindex][gindex] &&
  14145. groupStudent[toolindex][gindex][6]
  14146. ? groupStudent[toolindex][gindex] &&
  14147. groupStudent[toolindex][gindex][6].name
  14148. : "空位置"
  14149. }}</span>
  14150. </div>
  14151. </div>
  14152. <div class="g_d_group_table">
  14153. <div>
  14154. {{ g.name }}
  14155. </div>
  14156. <div>
  14157. <div
  14158. v-if="
  14159. courseDetail.userid == userid && groupJson.islock == 2
  14160. "
  14161. @click="deleteGroupChair(gindex)"
  14162. >
  14163. 移除组员
  14164. </div>
  14165. <div
  14166. @click="selectGroup(gindex)"
  14167. v-else-if="
  14168. groupStudentUid[toolindex] &&
  14169. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  14170. "
  14171. >
  14172. 加入分组
  14173. </div>
  14174. <div
  14175. @click="
  14176. exitGroup(
  14177. groupStudent[toolindex][gindex] &&
  14178. groupStudent[toolindex][gindex][
  14179. groupStudentUid[toolindex][gindex].indexOf(userid)
  14180. ].id
  14181. )
  14182. "
  14183. v-else-if="
  14184. groupStudentUid[toolindex] &&
  14185. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  14186. "
  14187. >
  14188. 退出分组
  14189. </div>
  14190. </div>
  14191. </div>
  14192. <div class="g_d_group_chair2">
  14193. <div v-if="groupJson.number > 3">
  14194. <span
  14195. :class="{
  14196. isChair:
  14197. groupStudent[toolindex][gindex] &&
  14198. groupStudent[toolindex][gindex][3],
  14199. updateChair:
  14200. courseDetail.userid == userid &&
  14201. groupStudent[toolindex][gindex] &&
  14202. groupStudent[toolindex][gindex][3] &&
  14203. groupJson.islock == 2,
  14204. }"
  14205. ><span
  14206. class="updateChairBtn"
  14207. @click="
  14208. updateGroupChair(
  14209. groupStudent[toolindex][gindex] &&
  14210. groupStudent[toolindex][gindex][3]
  14211. )
  14212. "
  14213. >修改</span
  14214. ></span
  14215. ><span>{{
  14216. groupStudent[toolindex][gindex] &&
  14217. groupStudent[toolindex][gindex][3]
  14218. ? groupStudent[toolindex][gindex] &&
  14219. groupStudent[toolindex][gindex][3].name
  14220. : "空位置"
  14221. }}</span>
  14222. </div>
  14223. <div v-if="groupJson.number > 7">
  14224. <span
  14225. :class="{
  14226. isChair:
  14227. groupStudent[toolindex][gindex] &&
  14228. groupStudent[toolindex][gindex][7],
  14229. updateChair:
  14230. courseDetail.userid == userid &&
  14231. groupStudent[toolindex][gindex] &&
  14232. groupStudent[toolindex][gindex][7] &&
  14233. groupJson.islock == 2,
  14234. }"
  14235. ><span
  14236. class="updateChairBtn"
  14237. @click="
  14238. updateGroupChair(
  14239. groupStudent[toolindex][gindex] &&
  14240. groupStudent[toolindex][gindex][7]
  14241. )
  14242. "
  14243. >修改</span
  14244. ></span
  14245. ><span>{{
  14246. groupStudent[toolindex][gindex] &&
  14247. groupStudent[toolindex][gindex][7]
  14248. ? groupStudent[toolindex][gindex] &&
  14249. groupStudent[toolindex][gindex][7].name
  14250. : "空位置"
  14251. }}</span>
  14252. </div>
  14253. </div>
  14254. </div>
  14255. <div class="g_d_group_chair">
  14256. <div v-if="groupJson.number > 1">
  14257. <span
  14258. :class="{
  14259. isChair:
  14260. groupStudent[toolindex][gindex] &&
  14261. groupStudent[toolindex][gindex][1],
  14262. updateChair:
  14263. courseDetail.userid == userid &&
  14264. groupStudent[toolindex][gindex] &&
  14265. groupStudent[toolindex][gindex][1] &&
  14266. groupJson.islock == 2,
  14267. }"
  14268. ><span
  14269. class="updateChairBtn"
  14270. @click="
  14271. updateGroupChair(
  14272. groupStudent[toolindex][gindex] &&
  14273. groupStudent[toolindex][gindex][1]
  14274. )
  14275. "
  14276. >修改</span
  14277. ></span
  14278. ><span>{{
  14279. groupStudent[toolindex][gindex] &&
  14280. groupStudent[toolindex][gindex][1]
  14281. ? groupStudent[toolindex][gindex] &&
  14282. groupStudent[toolindex][gindex][1].name
  14283. : "空位置"
  14284. }}</span>
  14285. </div>
  14286. <div v-if="groupJson.number > 5">
  14287. <span
  14288. :class="{
  14289. isChair:
  14290. groupStudent[toolindex][gindex] &&
  14291. groupStudent[toolindex][gindex][5],
  14292. updateChair:
  14293. courseDetail.userid == userid &&
  14294. groupStudent[toolindex][gindex] &&
  14295. groupStudent[toolindex][gindex][5] &&
  14296. groupJson.islock == 2,
  14297. }"
  14298. ><span
  14299. class="updateChairBtn"
  14300. @click="
  14301. updateGroupChair(
  14302. groupStudent[toolindex][gindex] &&
  14303. groupStudent[toolindex][gindex][5]
  14304. )
  14305. "
  14306. >修改</span
  14307. ></span
  14308. ><span>{{
  14309. groupStudent[toolindex][gindex] &&
  14310. groupStudent[toolindex][gindex][5]
  14311. ? groupStudent[toolindex][gindex] &&
  14312. groupStudent[toolindex][gindex][5].name
  14313. : "空位置"
  14314. }}</span>
  14315. </div>
  14316. <div v-if="groupJson.number > 9">
  14317. <span
  14318. :class="{
  14319. isChair:
  14320. groupStudent[toolindex][gindex] &&
  14321. groupStudent[toolindex][gindex][9],
  14322. updateChair:
  14323. courseDetail.userid == userid &&
  14324. groupStudent[toolindex][gindex] &&
  14325. groupStudent[toolindex][gindex][9] &&
  14326. groupJson.islock == 2,
  14327. }"
  14328. ><span
  14329. class="updateChairBtn"
  14330. @click="
  14331. updateGroupChair(
  14332. groupStudent[toolindex][gindex] &&
  14333. groupStudent[toolindex][gindex][9]
  14334. )
  14335. "
  14336. >修改</span
  14337. ></span
  14338. ><span>{{
  14339. groupStudent[toolindex][gindex] &&
  14340. groupStudent[toolindex][gindex][9]
  14341. ? groupStudent[toolindex][gindex] &&
  14342. groupStudent[toolindex][gindex][9].name
  14343. : "空位置"
  14344. }}</span>
  14345. </div>
  14346. </div>
  14347. </div>
  14348. </div>
  14349. </div>
  14350. </div>
  14351. <span slot="footer" class="dialog-footer">
  14352. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  14353. </span>
  14354. </el-dialog>
  14355. <el-dialog
  14356. title="分组设置"
  14357. :visible.sync="dialogVisibleGroup2"
  14358. :append-to-body="true"
  14359. width="650px"
  14360. :before-close="handleClose"
  14361. class="dialog_diy"
  14362. >
  14363. <div class="groupBox">
  14364. <div v-if="groupJson2.group" class="groupContent">
  14365. <div class="groupTitle">请设置小组数量及名称</div>
  14366. <div
  14367. v-for="(item, index) in groupJson2.group"
  14368. :key="index"
  14369. class="groupName"
  14370. >
  14371. <span class="groupn">第{{ index + 1 }}组名称:</span>
  14372. <el-input
  14373. v-model="item.name"
  14374. placeholder="请输入名称..."
  14375. style="width: 250px"
  14376. ></el-input>
  14377. <!-- <div class="groupBtn">
  14378. <el-button type="primary" size="small" @click="addGroup(index)">
  14379. 添加</el-button>
  14380. <el-button type="primary" size="small" @click="deleteGroup(index)"
  14381. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  14382. </div> -->
  14383. </div>
  14384. </div>
  14385. <div class="groupContent">
  14386. <div class="groupTitle">请设置每组人数</div>
  14387. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  14388. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  14389. <el-input
  14390. v-model="groupJson2.number"
  14391. style="width: 150px"
  14392. placeholder="请输入2-10的数字"
  14393. @change="numberPan"
  14394. ></el-input>
  14395. </div>
  14396. </div>
  14397. <span slot="footer" class="dialog-footer">
  14398. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  14399. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  14400. </span>
  14401. </el-dialog>
  14402. <el-dialog
  14403. title="作业提交"
  14404. :visible.sync="dialogVisibleGroupWork"
  14405. :append-to-body="true"
  14406. width="500px"
  14407. :before-close="handleClose"
  14408. class="dialog_change"
  14409. >
  14410. <div class="marginT">
  14411. <div>上传文件</div>
  14412. <div
  14413. class="chapter_add"
  14414. @click="addImg($event)"
  14415. v-if="studyJuri[0].cover.length == 0"
  14416. >
  14417. <div class="up_photo">
  14418. <img src="../../assets/icon/uploadImg.png" alt />
  14419. </div>
  14420. <!-- <input
  14421. type="file"
  14422. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14423. style="display: none"
  14424. @change="beforeUpload1($event, 1)"
  14425. /> -->
  14426. <input
  14427. type="file"
  14428. accept="*"
  14429. style="display: none"
  14430. @change="beforeUpload1($event, 1)"
  14431. />
  14432. </div>
  14433. <!-- capture="camera" -->
  14434. <div
  14435. class="chapter_add"
  14436. style="
  14437. display: flex;
  14438. width: 100%;
  14439. flex-direction: row;
  14440. flex-wrap: wrap;
  14441. justify-content: flex-start;
  14442. padding: 15px 0;
  14443. "
  14444. v-if="studyJuri[0].cover.length > 0"
  14445. >
  14446. <div class="upCover">
  14447. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14448. <img :src="word" alt v-else-if="fileType == 1" />
  14449. <img :src="video" alt v-else-if="fileType == 2" />
  14450. <img :src="word2" alt v-else-if="fileType == 3" />
  14451. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14452. <div class="deleteWord" @click="clean(1)">
  14453. <img src="../../assets/icon/deleteWorks.png" alt />
  14454. </div>
  14455. </div>
  14456. </div>
  14457. </div>
  14458. <div
  14459. class="upload_send"
  14460. @click="addCourseWorks2(taskCount)"
  14461. v-if="!proVisible"
  14462. >
  14463. 提交
  14464. </div>
  14465. </el-dialog>
  14466. <el-dialog
  14467. title="修改分组"
  14468. :visible.sync="dialogVisibleUpdateGroup"
  14469. :append-to-body="true"
  14470. width="350px"
  14471. :before-close="handleClose"
  14472. class="dialog_diy"
  14473. >
  14474. <div>
  14475. <h2>
  14476. {{ this.updateGroupUser.name }}
  14477. </h2>
  14478. <div style="color: rgb(171 171 171); margin-top: 10px">
  14479. 请选择要进入的分组
  14480. </div>
  14481. <el-radio-group v-model="checkChair">
  14482. <el-radio
  14483. style="display: block; margin-top: 20px"
  14484. v-for="(item, index) in updateGroupArray"
  14485. :label="item.label"
  14486. :key="index"
  14487. >{{ item.name }}</el-radio
  14488. >
  14489. </el-radio-group>
  14490. </div>
  14491. <span slot="footer" class="dialog-footer">
  14492. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  14493. <el-button type="primary" @click="updateChair">确定</el-button>
  14494. </span>
  14495. </el-dialog>
  14496. <el-dialog
  14497. title="移除组员"
  14498. :visible.sync="dialogVisibleDeleteGroup"
  14499. :append-to-body="true"
  14500. width="350px"
  14501. :before-close="handleClose"
  14502. class="dialog_diy"
  14503. >
  14504. <div>
  14505. <h2>
  14506. {{ this.deleteGroupArray.name }}
  14507. </h2>
  14508. <div style="color: rgb(171 171 171); margin-top: 10px">
  14509. 请选择要删除的组员
  14510. </div>
  14511. <el-checkbox-group v-model="checkDeleteGroup">
  14512. <el-checkbox
  14513. style="display: flex; margin-top: 20px"
  14514. v-for="(item, index) in deleteGroupUser"
  14515. :label="item.userid"
  14516. :key="index"
  14517. >{{ item.name }}</el-checkbox
  14518. >
  14519. </el-checkbox-group>
  14520. </div>
  14521. <span slot="footer" class="dialog-footer">
  14522. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  14523. <el-button type="primary" @click="deleteChair">确定</el-button>
  14524. </span>
  14525. </el-dialog>
  14526. <el-dialog
  14527. title="批量上传"
  14528. :visible.sync="dialogVisiblePl"
  14529. :append-to-body="true"
  14530. width="700px"
  14531. :before-close="handleClose"
  14532. class="dialog_change"
  14533. >
  14534. <div class="marginT">
  14535. <div class="plworkBox">
  14536. <div
  14537. class="chapter_add"
  14538. style="
  14539. display: flex;
  14540. width: 150px;
  14541. flex-direction: row;
  14542. flex-wrap: wrap;
  14543. justify-content: flex-start;
  14544. margin: 0 10px 10px 0;
  14545. "
  14546. v-for="(item, index) in plworkFile"
  14547. :key="index"
  14548. >
  14549. <div class="upCover2">
  14550. <img
  14551. :src="item.url"
  14552. alt
  14553. v-if="item.fileType == 1"
  14554. @click="previewImg(item.url)"
  14555. />
  14556. <img :src="word" alt v-else-if="item.fileType == 4" />
  14557. <img :src="video" alt v-else />
  14558. <!-- <span class="picName">{{ item.name }}</span> -->
  14559. <!-- <el-input
  14560. v-model="item.username"
  14561. placeholder="请输入学生名字"
  14562. style="margin-top: 10px"
  14563. ></el-input> -->
  14564. <div
  14565. class="pl_select_box"
  14566. @click="
  14567. getUpdateMore(true, checkUpload(), item.username, index)
  14568. "
  14569. >
  14570. {{ getSName(item.username) }}
  14571. </div>
  14572. <!-- <el-select
  14573. style="margin-top: 10px"
  14574. v-model="item.username"
  14575. filterable
  14576. allow-create
  14577. placeholder="请选择学生"
  14578. >
  14579. <el-option
  14580. v-for="item1 in checkUpload()"
  14581. :key="item1.userid"
  14582. :label="item1.name ? item1.name : item1.username"
  14583. :value="item1.userid"
  14584. >
  14585. </el-option>
  14586. </el-select> -->
  14587. <div class="deleteWord" @click="clean2(index)">
  14588. <img src="../../assets/icon/deleteWorks.png" alt />
  14589. </div>
  14590. </div>
  14591. </div>
  14592. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  14593. <div class="up_photo2">
  14594. <img src="../../assets/icon/plwork.png" alt />
  14595. <span>点击上传文件</span>
  14596. </div>
  14597. <input
  14598. type="file"
  14599. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14600. multiple="multiple"
  14601. style="display: none"
  14602. @change="beforeUpload3($event, 6)"
  14603. />
  14604. </div>
  14605. </div>
  14606. </div>
  14607. <!-- capture="camera" -->
  14608. <div
  14609. class="upload_send"
  14610. @click="addCourseWorksPl(taskCount)"
  14611. v-if="!proVisible2"
  14612. >
  14613. 提交
  14614. </div>
  14615. </el-dialog>
  14616. <el-dialog
  14617. title="修改名称"
  14618. :visible.sync="dialogVisibleSname"
  14619. width="500px"
  14620. :before-close="handleClose"
  14621. class="dialog_diy"
  14622. center
  14623. >
  14624. <div
  14625. style="
  14626. text-align: center;
  14627. display: flex;
  14628. align-items: center;
  14629. justify-content: center;
  14630. "
  14631. >
  14632. <span class="tian1">名称</span>
  14633. <div
  14634. class="pl_select_box"
  14635. style="margin-left: 10px; width: 200px"
  14636. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  14637. >
  14638. {{ getSName(worksSName) }}
  14639. </div>
  14640. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  14641. placeholder="请选择学生">
  14642. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  14643. :value="item.userid">
  14644. </el-option>
  14645. </el-select> -->
  14646. <!-- <el-input
  14647. v-model="worksSName"
  14648. style="width: 250px; margin: 15px 0px"
  14649. ></el-input> -->
  14650. </div>
  14651. <span slot="footer" class="dialog-footer">
  14652. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  14653. <el-button type="primary" @click="updateName">确 定</el-button>
  14654. </span>
  14655. </el-dialog>
  14656. <el-dialog
  14657. title="英语写作"
  14658. :visible.sync="engDialogVisible"
  14659. :append-to-body="true"
  14660. width="800px"
  14661. :before-close="handleClose"
  14662. class="dialog_diy"
  14663. >
  14664. <onlineWrite
  14665. v-if="engDialogVisible"
  14666. :englishList="englishList"
  14667. :myAnswerList1="myAnswerList1"
  14668. ref="engJson"
  14669. ></onlineWrite>
  14670. <span slot="footer" class="dialog-footer" style="text-align: center;">
  14671. <el-button @click="engDialogVisible = false">取 消</el-button>
  14672. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  14673. </span>
  14674. </el-dialog>
  14675. <el-dialog
  14676. title="英语写作"
  14677. :visible.sync="engUpdateDialogVisible"
  14678. :append-to-body="true"
  14679. width="800px"
  14680. :before-close="handleClose"
  14681. class="dialog_diy fullStyle"
  14682. >
  14683. <div class="engUpBox">
  14684. <div class="engUpTop">
  14685. <div class="engTitle">
  14686. <div>作文题目:</div>
  14687. <div>{{ englishList1.engTitle }}</div>
  14688. </div>
  14689. <div class="engText">
  14690. <div>作文内容:</div>
  14691. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  14692. </div>
  14693. </div>
  14694. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  14695. <div class="oldBox">
  14696. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  14697. <div class="oldText">
  14698. <div class="detailBox">
  14699. <div class="oldDetail">
  14700. <div>标题:</div>
  14701. <div>{{ oldEnglishJson.engTitle }} </div>
  14702. </div>
  14703. <div class="oldDetail1">
  14704. <div>正文:</div>
  14705. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  14706. </div>
  14707. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  14708. <div>图片:</div>
  14709. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  14710. </div>
  14711. </div>
  14712. </div>
  14713. </div>
  14714. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  14715. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  14716. <div class="oldText">
  14717. <div class="detailBox" style="position: relative;">
  14718. <div class="oldDetail">
  14719. <div>标题:</div>
  14720. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  14721. <div v-else v-html="newEnglishList.engTitle"></div>
  14722. </div>
  14723. <div class="oldDetail">
  14724. <div>正文:</div>
  14725. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  14726. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  14727. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  14728. </div>
  14729. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  14730. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  14731. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  14732. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  14733. </div>
  14734. </div>
  14735. </div>
  14736. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  14737. <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">
  14738. <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>
  14739. <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>
  14740. </div>
  14741. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  14742. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  14743. <div class="detailBox" style="position: relative;">
  14744. <div class="oldDetail">
  14745. <div>标题:</div>
  14746. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  14747. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  14748. </div>
  14749. <div class="oldDetail">
  14750. <div>正文:</div>
  14751. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  14752. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  14753. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  14754. </div>
  14755. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  14756. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  14757. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  14758. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  14759. </div>
  14760. </div>
  14761. <div class="oldText" v-else-if="newEngIndex == -1">
  14762. <div class="detailBox" style="position: relative;">
  14763. <div class="oldDetail">
  14764. <div>标题:</div>
  14765. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  14766. <div v-else v-html="newEnglishList.engTitle"></div>
  14767. </div>
  14768. <div class="oldDetail">
  14769. <div>正文:</div>
  14770. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  14771. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  14772. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  14773. </div>
  14774. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  14775. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  14776. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  14777. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  14778. </div>
  14779. </div>
  14780. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  14781. <div class="detailBox" style="position: relative;">
  14782. <div class="oldDetail">
  14783. <div>标题:</div>
  14784. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  14785. <div v-else>
  14786. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  14787. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  14788. </div>
  14789. </div>
  14790. <div class="oldDetail">
  14791. <div>正文:</div>
  14792. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  14793. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  14794. <div v-else>
  14795. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  14796. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  14797. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  14798. </div>
  14799. </div>
  14800. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  14801. <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>
  14802. <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>
  14803. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  14804. </div>
  14805. </div>
  14806. </div>
  14807. </div>
  14808. </div>
  14809. <span slot="footer" class="dialog-footer">
  14810. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  14811. <el-button type="primary" @click="addCorrect">确 定</el-button>
  14812. </span>
  14813. </el-dialog>
  14814. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  14815. <interVideo
  14816. :dialogVisibleVideo.sync="dialogVisibleVideo"
  14817. :videoJson="videoJson"
  14818. :userid="userid"
  14819. :id="id"
  14820. :courseType="courseType"
  14821. :taskCount="taskCount"
  14822. :toolindex="toolindex"
  14823. :videoType="videoType"
  14824. ></interVideo>
  14825. <UpdateMore
  14826. :dialogVisibleMember.sync="dialogVisibleMember"
  14827. :cList="uploadStudentJuri"
  14828. :userid="userid"
  14829. :searchTN="worksSName2"
  14830. @setPlname="setPlname"
  14831. ></UpdateMore>
  14832. <wordCloud
  14833. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  14834. :data="wordCloudData"
  14835. ></wordCloud>
  14836. <el-dialog
  14837. title="挑人"
  14838. :visible.sync="dialogVisiblePickPeople"
  14839. width="650px"
  14840. :before-close="handleClose"
  14841. class="dialog_diy"
  14842. center
  14843. >
  14844. <div class="pick_box">
  14845. <div
  14846. class="noWorksName"
  14847. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  14848. v-for="(item, index) in uploadStudentJuri"
  14849. :key="index"
  14850. @click="pickStudent(item)"
  14851. >
  14852. {{ item.name }}
  14853. </div>
  14854. </div>
  14855. </el-dialog>
  14856. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  14857. :englishVoiceJson='englishVoiceJson'
  14858. :userid="userid"
  14859. :id="id"
  14860. :courseType="courseType"
  14861. :taskCount="taskCount"
  14862. :toolindex="toolindex"
  14863. @selectSWorks="selectSWorks"
  14864. @selectStudent="selectStudent"
  14865. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  14866. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  14867. :userid="userid"
  14868. :dialogVisibleENScore.sync='dialogVisibleENScore'
  14869. :commentDetail="commentDetail"
  14870. :courseDetail="courseDetail"
  14871. :wScore="wScore"
  14872. :scoreDetail="scoreDetail"
  14873. @selectSWorks="selectSWorks"
  14874. @selectStudent="selectStudent"></checkEnglishVoice>
  14875. <el-dialog
  14876. title="教师评分"
  14877. :visible.sync="markScoreVisible"
  14878. :append-to-body="true"
  14879. width="1000px"
  14880. :fullscreen="markfullscreen"
  14881. :before-close="markScorehandleClose"
  14882. class="markScore_diy"
  14883. >
  14884. <div slot="title">
  14885. <div class="markScore_diyTit">
  14886. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  14887. <div @click="markFullScreenBtn" style="cursor: pointer;">
  14888. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  14889. </div>
  14890. </div>
  14891. </div>
  14892. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  14893. <!-- @updateDocSco="updateDocSco" -->
  14894. <markDialog
  14895. :key="markScoreVisible.toString()"
  14896. :uid="markScoreUid"
  14897. :toolIndex="markScoretoolIndex"
  14898. :stage="courseType"
  14899. :task="taskCount"
  14900. :taskDetail="
  14901. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  14902. "
  14903. :tool="toolListS"
  14904. :languageSetting="languageSetting"
  14905. :scoTit="markScoreTit"
  14906. :tType="tType"
  14907. :sIsOpen="sIsOpen"
  14908. :markScoreworksStudent="markScoreworksStudent"
  14909. :markScoreVisible="markScoreVisible"
  14910. ></markDialog>
  14911. </el-dialog>
  14912. <!-- 查看Txt,md等文件 -->
  14913. <el-dialog
  14914. title="文件预览"
  14915. :visible.sync="dialogVisibleTxt"
  14916. width="50%"
  14917. :before-close="handleCloseTxt"
  14918. class="dialog_diy"
  14919. :class="{ fullStyle: full }"
  14920. >
  14921. <div slot="title" class="header-title">
  14922. <div style="color: #fff">文件预览</div>
  14923. <div style="position: absolute; top: 19px; right: 50px">
  14924. <img
  14925. src="../../assets/full.png"
  14926. style="height: 16px; cursor: pointer"
  14927. alt=""
  14928. @click="fullTools"
  14929. />
  14930. </div>
  14931. </div>
  14932. <div>{{ TxtMd }}</div>
  14933. </el-dialog>
  14934. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  14935. <choseWorksDetailDialog
  14936. ref="choseWorksDetailDialogRef"
  14937. :worksStudentData="this.worksStudent"
  14938. :noWorksSData="noWorksS"
  14939. :chapInfoListData="chapInfoList"
  14940. :courseType="courseType"
  14941. :taskCount="taskCount"
  14942. @openWord="openWord"
  14943. @openScore="openScore"
  14944. @deleteWorks="deleteWorks"
  14945. @openTools="openTools"
  14946. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  14947. />
  14948. </div>
  14949. </template>
  14950. <script>
  14951. import "../../common/aws-sdk-2.235.1.min.js";
  14952. // import pdf from "../components/pdf3";
  14953. import pdf from "../components/vpdf";
  14954. import AskStatic from "../components/askStatic";
  14955. import AskStatic2 from "../components/askStatic2";
  14956. import AnswerData2 from "../components/answerData2";
  14957. import AnswerData from "../components/answerData";
  14958. import EditorBar from "../tools/wangEnduit.vue";
  14959. import Table from "../tools/table.vue";
  14960. import Time from "../tools/time.vue";
  14961. import Mind from "../tools/jsmind.vue";
  14962. import Sunburst from "../tools/sunburst";
  14963. import SeeBoard from "../tools/seeBoard";
  14964. import * as imageConversion from "image-conversion";
  14965. import Audio from "../components/audio.vue";
  14966. import ImgDraw from "../tools/imgDraw/imgDraw";
  14967. import { Empty } from "element-ui";
  14968. import RecordRTC from "recordrtc";
  14969. import interVideo from "../interVideo/index.vue";
  14970. import UpdateMore from "../updateMore/updateMore.vue";
  14971. import wordCloud from "../wordCloud/index.vue";
  14972. import axios from "axios";
  14973. import JSZip from "jszip";
  14974. import FileSaver from "file-saver";
  14975. import onlineWrite from "./commpont/onlineWrite";
  14976. import englishEva from "../components/englishEva";
  14977. import * as Diff from 'diff'
  14978. import EnglishVoice from '../EnglishVoice2/index.vue'
  14979. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  14980. import correctText from '../components/correctText.vue'
  14981. import scoreItem from '../scoreList/scoreItem.vue'
  14982. import scoreZong from '../scoreZong/index.vue'
  14983. import classRoomHelper from '../classRoomHelper/index.vue'
  14984. import MarkdownIt from "markdown-it";
  14985. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  14986. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  14987. import { v4 as uuidv4 } from "uuid";
  14988. import markScore from "./commpont/markScore";
  14989. import markDialog from "./commpont/markDialog";
  14990. import evaTable from "./commpont/evaTable";
  14991. const getFile = (url) => {
  14992. return new Promise((resolve, reject) => {
  14993. var credentials = {
  14994. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14995. secretAccessKey: "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",
  14996. }; //秘钥形式的登录上传
  14997. window.AWS.config.update(credentials);
  14998. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14999. let url2 = url;
  15000. let _url2 = "";
  15001. if (
  15002. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15003. ) {
  15004. _url2 = url2.split(
  15005. "https://view.officeapps.live.com/op/view.aspx?src="
  15006. )[1];
  15007. } else {
  15008. _url2 = url2;
  15009. }
  15010. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15011. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  15012. var params = {
  15013. Bucket: "ccrb",
  15014. Key: name
  15015. };
  15016. s3.getObject(params, function (err, data) {
  15017. if (err) {
  15018. console.log(err, err.stack)
  15019. resolve({ data: 1 });
  15020. }else {
  15021. resolve({ data: data.Body });
  15022. console.log(data);
  15023. } // sxuccessful response
  15024. });
  15025. // axios({
  15026. // method: "get",
  15027. // url,
  15028. // responseType: "blob",
  15029. // })
  15030. // .then((data) => {
  15031. // resolve({ data: data.data });
  15032. // })
  15033. // .catch((error) => {
  15034. // resolve({ data: 1 });
  15035. // // reject(error.toString());
  15036. // });
  15037. });
  15038. };
  15039. export default {
  15040. components: {
  15041. EditorBar,
  15042. Time,
  15043. pdf,
  15044. AskStatic,
  15045. AskStatic2,
  15046. Mind,
  15047. Sunburst,
  15048. SeeBoard,
  15049. AnswerData2,
  15050. AnswerData,
  15051. Audio,
  15052. ImgDraw,
  15053. Table,
  15054. interVideo,
  15055. UpdateMore,
  15056. wordCloud,
  15057. onlineWrite,
  15058. englishEva,
  15059. EnglishVoice,
  15060. checkEnglishVoice,
  15061. correctText,
  15062. scoreItem,
  15063. classRoomHelper,
  15064. scoreZong,
  15065. markScore,
  15066. markDialog,
  15067. evaTable,
  15068. statisticalAnalysis,
  15069. choseWorksDetailDialog,
  15070. },
  15071. data() {
  15072. return {
  15073. bg: null,
  15074. drawShow: false,
  15075. dialogVisible: false,
  15076. dialogVisiblePl: false,
  15077. commentDialogVisible: false,
  15078. dialogVisibleMember: false,
  15079. dialogVisibleWordCloud: false,
  15080. videoVisible: false,
  15081. isStar: false,
  15082. studentEvalDialogVisible: false,
  15083. studentEvalDialogVisibleTeacher: false,
  15084. dialogVisibleSelect: false,
  15085. dialogVisibleSelectTeacher: false,
  15086. dialogVisibleScore: false,
  15087. dialogVisibleENScore: false,
  15088. dialogVisibleSentence: false,
  15089. dialogVisibleSentenceTeacher: false,
  15090. dialogVisibleSentence1: false,
  15091. dialogVisibleWorks: false,
  15092. dialogVisibleTable: false,
  15093. dialogVisibleTableTeacher: false,
  15094. dialogVisibleWord: false,
  15095. dialogVisibleWordTeacher: false,
  15096. dialogVisibleTable2: false,
  15097. dialogVisibleTable3: false,
  15098. dialogVisibleGroupWork: false,
  15099. dialogVisibleUpdateGroup: false,
  15100. dialogVisibleDeleteGroup: false,
  15101. dialogVisibleSname: false,
  15102. dialogVisibleVideo: false,
  15103. dialogVisiblePickPeople: false,
  15104. worksSName: "",
  15105. classJuri: [],
  15106. uploadStudentJuri: [],
  15107. uploadCid: "",
  15108. snameWid: "",
  15109. sStudent: {},
  15110. sTool: "",
  15111. bzText: "",
  15112. commentDetail: [],
  15113. selectAnswer: [],
  15114. videoDetail: {},
  15115. selectJson: {},
  15116. eScore: { eBzText: "", eStar: [] },
  15117. id: this.$route.query.courseId,
  15118. userid: this.$route.query.userid,
  15119. classId: this.$route.query.cid,
  15120. // courseTypeLine: this.$route.query.type,
  15121. oid: this.$route.query.oid,
  15122. org: this.$route.query.org,
  15123. tType: this.$route.query.tType,
  15124. courseType: this.$route.query.type,
  15125. screenType: this.$route.query.screenType,
  15126. tcid2: this.$route.query.tcid,
  15127. tcid: "",
  15128. pptImgUrl: "",
  15129. pptImgUrl1: "",
  15130. commentText: "",
  15131. full: false,
  15132. sIsOpen: false,
  15133. IsLookOpen: false,
  15134. IsFollow: false,
  15135. pzDialog: false,
  15136. contentDialog: false,
  15137. mlDialog: false,
  15138. type: 1,
  15139. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15140. sentenceList1: [],
  15141. tableJson: [],
  15142. tableJsonO: [],
  15143. wordJson: [],
  15144. wordJsonO: [],
  15145. vedio: [],
  15146. text: [],
  15147. textList: [],
  15148. line: [],
  15149. lineList: [],
  15150. chapTools: [],
  15151. chapToolList: [],
  15152. file: [],
  15153. fileC: [],
  15154. vedioTime: [],
  15155. upToolImg: "",
  15156. preTime: 0,
  15157. rateList: {
  15158. ca: 0,
  15159. },
  15160. rateParams: [],
  15161. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15162. studyJuri: [
  15163. {
  15164. content: "",
  15165. cover: [],
  15166. upVedio: [],
  15167. upFile: [],
  15168. },
  15169. ],
  15170. isClose: 0,
  15171. plworkFile: [],
  15172. mr: require("../../assets/vedioPic.png"),
  15173. word: require("../../assets/icon/isWord.png"),
  15174. word2: require("../../assets/icon/word2.png"),
  15175. video: require("../../assets/icon/isVideo.png"),
  15176. noLikes: require("../../assets/icon/comment/noLikes.png"),
  15177. likes: require("../../assets/icon/comment/likes.png"),
  15178. scoreImg: require("../../assets/score.png"),
  15179. courseDetail: {},
  15180. reply: "",
  15181. isSelect: false,
  15182. chapInfo: [],
  15183. chapInfoList: [],
  15184. taskCount: 0,
  15185. imgList: [],
  15186. noImgList: [],
  15187. pzList: [],
  15188. timeWorkList: [],
  15189. PlTextList: [
  15190. "Excellent!",
  15191. "nice!",
  15192. "很有创意!",
  15193. "还不错哦~",
  15194. "继续努力哦~",
  15195. ],
  15196. isClickNav: "",
  15197. navId: "",
  15198. playerOptions: {
  15199. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15200. autoplay: false, //如果true,浏览器准备好时开始回放。
  15201. muted: false, // 默认情况下将会消除任何音频。
  15202. loop: false, // 导致视频一结束就重新开始。
  15203. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15204. language: "zh-CN",
  15205. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15206. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15207. sources: [
  15208. {
  15209. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15210. src: "", //url地址require("../../../assets/media/aaa.mp4")
  15211. },
  15212. ],
  15213. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15214. // poster: dataRes.imgUrl, //你的封面地址
  15215. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15216. controlBar: {
  15217. timeDivider: true, //当前时间和持续时间的分隔符
  15218. durationDisplay: true, //显示持续时间
  15219. remainingTimeDisplay: false, //是否显示剩余时间功能
  15220. fullscreenToggle: true, //全屏按钮
  15221. },
  15222. },
  15223. playerOptions1: {
  15224. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15225. autoplay: false, //如果true,浏览器准备好时开始回放。
  15226. muted: false, // 默认情况下将会消除任何音频。
  15227. loop: false, // 导致视频一结束就重新开始。
  15228. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15229. language: "zh-CN",
  15230. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15231. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15232. sources: [
  15233. {
  15234. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15235. src: "", //url地址require("../../../assets/media/aaa.mp4")
  15236. },
  15237. ],
  15238. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15239. // poster: dataRes.imgUrl, //你的封面地址
  15240. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15241. controlBar: {
  15242. timeDivider: true, //当前时间和持续时间的分隔符
  15243. durationDisplay: true, //显示持续时间
  15244. remainingTimeDisplay: false, //是否显示剩余时间功能
  15245. fullscreenToggle: true, //全屏按钮
  15246. },
  15247. },
  15248. playerO: {},
  15249. noneBtnImg: false,
  15250. proVisible: false,
  15251. proVisible2: false,
  15252. progress: 0,
  15253. isFinishSize: 0,
  15254. isAllSize: 0,
  15255. questionAnswer: "",
  15256. answerQ: "", //问答标题
  15257. rateJson: [],
  15258. wbCount: 0,
  15259. wordCount: 0,
  15260. mindCount: 0,
  15261. askCount: 0,
  15262. noteCount: 0,
  15263. mindNetWorkCount: 0,
  15264. libraryCount: 0,
  15265. workCount: 0,
  15266. timeCount: 0,
  15267. answerCount: 0,
  15268. trainCount: 0,
  15269. evalCount: 0,
  15270. dialogImageUrl: "",
  15271. pictureDialog: false,
  15272. toolTypeList: [],
  15273. dialogVisible1: false,
  15274. dialogVisible2: false,
  15275. dialogVisible3: false,
  15276. dialogVisible6: false,
  15277. dialogVisible4: false,
  15278. isNoHomeWork: false,
  15279. dialogVisible5: false,
  15280. dialogVisible5Teacher: false,
  15281. dialogVisibleChoice: false,
  15282. dialogVisibleChoiceTeacher: false,
  15283. answerDialogVisible: false,
  15284. answerDialogVisibleTeacher: false,
  15285. juriVisible: false,
  15286. timeDialogVisible: false,
  15287. replyDialogVisible: false,
  15288. toolDialogVisible: false,
  15289. engDialogVisible: false,
  15290. engUpdateDialogVisible:false,
  15291. engEvaDialogVisible: false,
  15292. evaEngJson: {
  15293. teacherJson: {},
  15294. studentJson: {},
  15295. message: {},
  15296. },
  15297. isNoUserid:false,
  15298. engListLength:0,
  15299. engWid:"",
  15300. newEnglishList:{
  15301. engTitle:"",
  15302. engText:"",
  15303. },
  15304. newEnglishList1:[],
  15305. oldEnglishJson:{},
  15306. oldEnglishJson1:{},
  15307. englishList1:{},
  15308. englishList:{},
  15309. myAnswerList1:{},
  15310. topHeight:0,
  15311. newEngIndex:-1,
  15312. englishToolIndex:0,
  15313. userMes:{},
  15314. englishToolIndex:0,
  15315. replyIndex: 0,
  15316. replyPid: "",
  15317. radio: [],
  15318. isAsk: false,
  15319. askJson: {
  15320. askCount: 1,
  15321. askTitle: "",
  15322. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  15323. },
  15324. testJson: {},
  15325. englishList: {},
  15326. topHeight:0,
  15327. checkJson: [],
  15328. askList: [],
  15329. answerList: [],
  15330. navList: [],
  15331. addPzDialog: false,
  15332. pzConText: "",
  15333. worksStudent: [],
  15334. isCloseList: [],
  15335. workStudent: [],
  15336. groupStudent: [],
  15337. groupStudentUid: [],
  15338. noWorksS: [],
  15339. isWorksS: [],
  15340. noWorksStudent: [],
  15341. toolindex: 0,
  15342. toolDetailIndex: null,
  15343. groupIndex: 0,
  15344. workTypeB: false,
  15345. workTypeC: false,
  15346. isAnswer: false,
  15347. isHovered: false,
  15348. isHovered1: false,
  15349. isHovered2: false,
  15350. commentTagShow:0,
  15351. timer: null,
  15352. opertimer: null,
  15353. showType: '',
  15354. fileType: 0,
  15355. showPDF: false,
  15356. noteName: "",
  15357. evaJuri: [],
  15358. evalua: "",
  15359. eTitle: "",
  15360. eName: "",
  15361. eJson: {},
  15362. fid: "", //一级
  15363. sid: "", //二级
  15364. tid: "", //二级
  15365. typeMode: 1,
  15366. eJSONNum: 0,
  15367. Etype: 1,
  15368. data: {
  15369. meta: {
  15370. name: "example",
  15371. author: "dd@163.com",
  15372. version: "0.2",
  15373. },
  15374. format: "node_array",
  15375. data: [{ id: "root", isroot: true, topic: "" }],
  15376. },
  15377. fullDialogVisible: false,
  15378. fulltype: "",
  15379. fullUrl: "",
  15380. commentIndexJson: {},
  15381. Stbodywidth: 0,
  15382. ispzType: 0,
  15383. pzType: 1,
  15384. wScore: 0,
  15385. scoreDetail: "",
  15386. videoStart: false,
  15387. recorder: null,
  15388. groupJson: {},
  15389. islock: false,
  15390. groupJson2: {},
  15391. dialogVisibleGroup: false,
  15392. dialogVisibleGroup2: false,
  15393. updateGroupArray: [],
  15394. updateGroupUser: {},
  15395. deleteGroupUser: [],
  15396. deleteGroupArray: {},
  15397. checkChair: "",
  15398. checkDeleteGroup: [],
  15399. inviteCode: "",
  15400. courseGroupStudent: [],
  15401. courseGroupStudentUid: [],
  15402. courseGroup: {},
  15403. isGroup: false,
  15404. toolIndex: null,
  15405. tool: {},
  15406. isWorkTool: [
  15407. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  15408. ], //, 40
  15409. videoJson: {},
  15410. videoType:0,
  15411. toolType: 0,
  15412. checktoolArray: [],
  15413. vChapterData: [],
  15414. isUpdateToolDetail: false,
  15415. isUpdateToolDetail1: false,
  15416. updateToolDetailInner: "",
  15417. checkboxList: [],
  15418. plIndex: "",
  15419. worksSName2: "",
  15420. worksSid: "",
  15421. wordCloudData: [],
  15422. isPickStudent: [],
  15423. pzStype: 1,
  15424. myAnList: {},
  15425. downLoading: false,
  15426. greyType: false,
  15427. correctWord: [],
  15428. EnglishVoiceDialog: false,
  15429. englishVoiceJson: {},
  15430. englishVoiceJsonWork:[],
  15431. scoreList:{
  15432. listdata:[],
  15433. isScoreList:[],
  15434. },
  15435. classRoomHelperWidth: '85px',
  15436. orgArray:[],
  15437. oidArray:[],
  15438. splitScreenData:{
  15439. isOpen:false,
  15440. userId:"",
  15441. uid:"",
  15442. myUid:"",
  15443. loading:false,
  15444. behavior:null,
  15445. },
  15446. refreshKey: 0,
  15447. AIloading: [],
  15448. worksStudentCopy: [],
  15449. loopLoading: [],
  15450. markScoreVisible: false,
  15451. markScoretoolIndex: 0,
  15452. markScoreUid: "",
  15453. markScoreTit: {},
  15454. markfullscreen: false,
  15455. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  15456. markScoreworksStudent: [],
  15457. finalMarkList: -1,
  15458. isaiNum: 0,
  15459. dialogVisibleTxt: false,
  15460. TxtMd: "",
  15461. languageSetting: 0, //0中文 1繁体 2英文
  15462. toolListS: [],
  15463. commentDetailCopy: "",
  15464. };
  15465. },
  15466. methods: {
  15467. getAIJ() {
  15468. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  15469. let oid = res.data[0];
  15470. let org = res.data[1];
  15471. let oidArray = [];
  15472. let orgArray = [];
  15473. oid.forEach(i => oidArray.push(i.oid));
  15474. org.forEach(i => orgArray.push(i.oid));
  15475. this.orgArray = orgArray;
  15476. this.oidArray = oidArray;
  15477. });
  15478. },
  15479. // 评分弹框全屏
  15480. markFullScreenBtn() {
  15481. this.markfullscreen = !this.markfullscreen;
  15482. },
  15483. insertMemorandum(_html) {
  15484. //保存行为操作
  15485. //variable
  15486. //btn
  15487. let params = [
  15488. {
  15489. uid: this.userid,
  15490. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  15491. content: _html
  15492. }
  15493. ];
  15494. console.log(params);
  15495. this.ajax
  15496. .post(
  15497. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  15498. params
  15499. )
  15500. .then(res => {
  15501. if (res.data == 1) {
  15502. console.log("保存操作成功");
  15503. } else {
  15504. console.log("保存操作失败");
  15505. }
  15506. })
  15507. .catch(e => {
  15508. console.log("保存操作失败");
  15509. console.log(e);
  15510. });
  15511. },
  15512. // 获取文档id
  15513. createFileid(url) {
  15514. let _this = this;
  15515. return new Promise((resolve, reject) => {
  15516. try {
  15517. _this.ajax
  15518. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  15519. url: url
  15520. })
  15521. .then(res => {
  15522. let _data = res.data.FunctionResponse;
  15523. if (_data.result && _data.result.id) {
  15524. resolve(_data.result.id);
  15525. } else {
  15526. resolve(1);
  15527. }
  15528. })
  15529. .catch(function(error) {
  15530. resolve(1);
  15531. });
  15532. } catch (e) {
  15533. resolve(1);
  15534. }
  15535. });
  15536. },
  15537. // 一键重置
  15538. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  15539. let jude = false;
  15540. this.AIloading.forEach((e, index) => {
  15541. if (index == toolIndex) {
  15542. e.forEach(k => {
  15543. if (k.loading == true) jude = true;
  15544. });
  15545. }
  15546. });
  15547. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  15548. this.$confirm("确认一键重置?")
  15549. .then(_ => {
  15550. this.allEmptyScoBtn(con, stage, task, toolIndex);
  15551. })
  15552. .catch(_ => {});
  15553. },
  15554. // 一键重置
  15555. async allEmptyScoBtn(con, stage, task, toolIndex) {
  15556. for (let index = 0; index < con.length; index++) {
  15557. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  15558. }
  15559. this.$message.success("重置完成");
  15560. // this.refreshAssembly();
  15561. this.worksStudent.forEach((e, index) => {
  15562. if (toolIndex == index) {
  15563. console.log("6666");
  15564. e.forEach((i, inx) => {
  15565. let mk = `markSco${index}${inx}`;
  15566. this.$refs[mk][0].getData();
  15567. });
  15568. }
  15569. });
  15570. },
  15571. // 一键重置
  15572. allEmptySco(uid, stage, task, toolIndex) {
  15573. let params = [
  15574. {
  15575. cid: this.id,
  15576. uid: uid,
  15577. s: stage,
  15578. t: task,
  15579. tool: toolIndex ? toolIndex : ""
  15580. }
  15581. ];
  15582. return new Promise(resolve => {
  15583. this.ajax
  15584. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  15585. .then(res => {
  15586. resolve(1);
  15587. })
  15588. .catch(err => {
  15589. console.error(err);
  15590. });
  15591. }).catch(error => {
  15592. console.log(error);
  15593. });
  15594. },
  15595. // AI评分循环打分
  15596. async loopEva(
  15597. con,
  15598. tit,
  15599. stage,
  15600. task,
  15601. toolIndex,
  15602. toolDetail,
  15603. taskDetail,
  15604. toolList
  15605. ) {
  15606. let jude = false;
  15607. this.AIloading.forEach((e, index) => {
  15608. if (index == toolIndex) {
  15609. e.forEach(k => {
  15610. if (k.loading == true) jude = true;
  15611. });
  15612. }
  15613. });
  15614. if (jude) return this.$message.info("请勿同时间进行AI评分");
  15615. this.AIloading.forEach((e, index) => {
  15616. if (index == toolIndex) {
  15617. e.forEach(k => {
  15618. k.loading = true;
  15619. });
  15620. }
  15621. });
  15622. this.loopLoading[toolIndex].loading = true;
  15623. let laws = "";
  15624. let std = "";
  15625. let text = "";
  15626. if (toolList && toolList.eList && toolList.eList.length) {
  15627. for (let i = 0; i < toolList.eList.length; i++) {
  15628. if (toolList.eList[i].isai == 1) {
  15629. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  15630. }
  15631. }
  15632. for (let i = 0; i < toolList.eList.length; i++) {
  15633. if (toolList.eList[i].isai == 1) {
  15634. let a = toolList.eList[i].detail;
  15635. if (isNaN(parseFloat(a)) && a) {
  15636. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15637. } else {
  15638. var result = a;
  15639. }
  15640. std += `纬度${i}:“${result}”, \n`;
  15641. }
  15642. }
  15643. for (let i = 0; i < toolList.eList.length; i++) {
  15644. if (toolList.eList[i].isai == 1) {
  15645. let a = toolList.eList[i].detail;
  15646. if (isNaN(parseFloat(a)) && a) {
  15647. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15648. } else {
  15649. var result = a;
  15650. }
  15651. text += `{'${result}' : '评价等级0-5(数字)'},`;
  15652. }
  15653. }
  15654. } else {
  15655. let titRule = 0;
  15656. let titRule2 = 0;
  15657. tit.forEach((e, index) => {
  15658. if (!e.isai) {
  15659. e.isai = 1;
  15660. }
  15661. });
  15662. tit.forEach((e, index) => {
  15663. if (e.isai == 1) {
  15664. titRule2++;
  15665. if (e.rule) {
  15666. titRule++;
  15667. }
  15668. }
  15669. });
  15670. if (titRule != titRule2) {
  15671. this.AIloading.forEach((e, index) => {
  15672. if (index == toolIndex) {
  15673. e.forEach(k => {
  15674. k.loading = false;
  15675. });
  15676. }
  15677. });
  15678. this.loopLoading[toolIndex].loading = false;
  15679. this.$message.info("细则努力生成中,请稍候……");
  15680. return;
  15681. }
  15682. for (let i = 0; i < tit.length; i++) {
  15683. if (tit[i].isai == 1) {
  15684. laws += ` 细则${i}:${tit[i].rule}, \n`;
  15685. }
  15686. }
  15687. for (let i = 0; i < tit.length; i++) {
  15688. if (tit[i].isai == 1) {
  15689. let a = tit[i].detail;
  15690. if (isNaN(parseFloat(a)) && a) {
  15691. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15692. } else {
  15693. var result = a;
  15694. }
  15695. std += `纬度${i}:“${result}”, \n`;
  15696. }
  15697. }
  15698. for (let i = 0; i < tit.length; i++) {
  15699. if (tit[i].isai == 1) {
  15700. let a = tit[i].detail;
  15701. if (isNaN(parseFloat(a)) && a) {
  15702. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15703. } else {
  15704. var result = a;
  15705. }
  15706. text += `{'${result}' : '评价等级0-5(数字)'},`;
  15707. }
  15708. }
  15709. }
  15710. let forAllList = [];
  15711. // console.log('con',con)
  15712. for (let i = 0; i < con.length; i++) {
  15713. let _fileid = "";
  15714. let wok = con[i].works;
  15715. // console.log('con',con);
  15716. // console.log('con[i].type',con[i].type);
  15717. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  15718. let a = wok.slice(wok.lastIndexOf(".") + 1);
  15719. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  15720. _fileid = await this.createFileid(con[i].works);
  15721. } else {
  15722. this.AIloading[toolIndex][i].loading = false;
  15723. continue;
  15724. }
  15725. }
  15726. // console.log('con[i].type',con[i])
  15727. // console.log('con[i].type',con[i].type)
  15728. if (_fileid == 1 || con[i].type == 3) {
  15729. this.AIloading[toolIndex][i].loading = false;
  15730. continue;
  15731. }
  15732. let msg = `NOTICE
  15733. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  15734. Language: ${this.getLang()}
  15735. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  15736. Instruction: Based on the context, follow "Format example", write content.
  15737. #目标#
  15738. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  15739. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  15740. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  15741. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  15742. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  15743. #评分资料#
  15744. 评价标准:${std}
  15745. 评价细则:${laws}
  15746. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  15747. 任务描述:${taskDetail}
  15748. 工具描述:${toolDetail}
  15749. #输出要求#
  15750. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  15751. “评语”控制在150字左右。
  15752. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  15753. #输出格式#
  15754. [${text}{'comment':'评语(150个汉字左右)'}]
  15755. `;
  15756. let mk = `markSco${toolIndex}${i}`;
  15757. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  15758. msg,
  15759. con[i].userid,
  15760. stage,
  15761. task,
  15762. _fileid,
  15763. con[i].type
  15764. );
  15765. forAllList.push(mkAwit);
  15766. }
  15767. Promise.all(forAllList)
  15768. .then(values => {
  15769. console.log("values", values);
  15770. this.$message({
  15771. message: "评价成功",
  15772. type: "success"
  15773. });
  15774. // this.refreshKey++
  15775. // this.worksStudent.forEach((e,index)=>{
  15776. // if(toolIndex == index){
  15777. // e.forEach((i,inx)=>{
  15778. // let mk = `markSco${index}${inx}`
  15779. // this.$refs[mk][0].getData()
  15780. // })
  15781. // }
  15782. // })
  15783. this.AIloading[toolIndex].forEach(e => {
  15784. e.loading = false;
  15785. });
  15786. this.loopLoading[toolIndex].loading = false;
  15787. })
  15788. .catch(reason => {
  15789. console.error("reasonreasonreasonreasonreason", reason);
  15790. // 输出“失败原因”
  15791. });
  15792. },
  15793. // 获取评价细则
  15794. againEva(i, k) {
  15795. let msg = `NOTICE
  15796. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  15797. Language: ${this.getLang()}
  15798. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  15799. Instruction: Based on the context, follow "Format example", write content.
  15800. #Context
  15801. ##要求
  15802. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  15803. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  15804. ##制定标准资料
  15805. 评价维度:${
  15806. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  15807. }
  15808. 维度描述:${
  15809. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  15810. }
  15811. # Format example
  15812. ==
  15813. 0 星,作业内容与作业要求无关;
  15814. 1 星,没有识别问题和需求;
  15815. 2 星,问题或需求没有被清晰理解或准确识别;
  15816. 3 星,问题或需求的一部分被识别;
  15817. 4 星,问题或需求的大部分被识别;
  15818. 5 星,问题或需求都被识别。
  15819. ==
  15820. `;
  15821. let params = {
  15822. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  15823. message: [
  15824. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  15825. ],
  15826. session_name: uuidv4(),
  15827. userId: this.userid,
  15828. file_ids: [],
  15829. model: "gpt-4o-2024-11-20"
  15830. };
  15831. // console.log('params',params);
  15832. this.ajax
  15833. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  15834. .then(response => {
  15835. let data = response.data.FunctionResponse;
  15836. // console.log("data", data);
  15837. if (data.message) {
  15838. let content = data.message;
  15839. var regex = new RegExp("==([^=]+)==");
  15840. let match = content.match(regex);
  15841. if (match) {
  15842. content = match[1].trim().replaceAll(" ", "");
  15843. // 获取匹配到的内容并去除两端空格
  15844. // console.log('contentInsideDoubleEquals', content);
  15845. if (
  15846. content.indexOf("0星") == -1 ||
  15847. content.indexOf("2星") == -1 ||
  15848. content.indexOf("3星") == -1 ||
  15849. content.indexOf("4星") == -1 ||
  15850. content.indexOf("5星") == -1
  15851. ) {
  15852. console.log("未有星级。");
  15853. this.againEva(i, k);
  15854. return;
  15855. }
  15856. // return
  15857. } else {
  15858. console.log("未找到匹配的内容。");
  15859. this.againEva(i, k);
  15860. return;
  15861. }
  15862. let elist = JSON.parse(
  15863. JSON.stringify(
  15864. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  15865. )
  15866. );
  15867. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  15868. elist.rule = JSON.parse(
  15869. JSON.stringify(content.replaceAll("#", ""))
  15870. );
  15871. this.$set(
  15872. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  15873. k,
  15874. elist
  15875. );
  15876. this.$forceUpdate();
  15877. let params2 = [
  15878. {
  15879. cid: this.id,
  15880. chapters: JSON.stringify(this.chapInfoList),
  15881. uid: this.userid,
  15882. unitIndex: this.courseType
  15883. }
  15884. ];
  15885. this.ajax
  15886. .post(this.$store.state.api + "updateWorkNew4", params2)
  15887. .then(res => {
  15888. this.getCourseDetail(2);
  15889. this.$forceUpdate();
  15890. })
  15891. .catch(err => {
  15892. this.$message.error("网络不佳");
  15893. console.error(err);
  15894. });
  15895. // 进行进一步处理或解析outputContent
  15896. // } else {
  15897. // console.log("No match found for # Output section.");
  15898. // }
  15899. }
  15900. })
  15901. .catch(error => {
  15902. console.log(error);
  15903. });
  15904. },
  15905. // 关闭评分弹框
  15906. markScorehandleClose(done) {
  15907. // this.refreshKey++
  15908. this.worksStudent.forEach((e, index) => {
  15909. if (this.markScoretoolIndex == index) {
  15910. e.forEach((i, inx) => {
  15911. let mk = `markSco${index}${inx}`;
  15912. if (this.$refs[mk] && this.$refs[mk][0]) {
  15913. this.$refs[mk][0].getData();
  15914. }
  15915. });
  15916. }
  15917. });
  15918. done();
  15919. },
  15920. // 关闭txtMd预览弹框
  15921. handleCloseTxt(done) {
  15922. this.TxtMd = "";
  15923. done();
  15924. },
  15925. // Txt,Md作业查看
  15926. lookTxt(val) {
  15927. this.dialogVisibleTxt = true;
  15928. this.TxtMd = "";
  15929. getFile(val).then(res => {
  15930. this.TxtMd = res.data;
  15931. });
  15932. },
  15933. // 组件刷新
  15934. refreshAssembly(val) {
  15935. this.refreshKey++;
  15936. // console.log(this.refreshKey)
  15937. },
  15938. updateLoading(payload) {
  15939. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  15940. },
  15941. handleShow(toolIndex, val) {
  15942. let mk = `markSco${toolIndex}${val}`;
  15943. // console.log(mk);
  15944. this.$refs[mk][0].getData();
  15945. },
  15946. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  15947. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  15948. // console.log('this.AIloading',this.AIloading)
  15949. let jude = false;
  15950. this.AIloading.forEach((e, index) => {
  15951. if (index == tidx) {
  15952. e.forEach(k => {
  15953. if (k.loading == true) jude = true;
  15954. });
  15955. }
  15956. });
  15957. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  15958. if (val) return;
  15959. // console.log(uname,worksStudent,uid,tidx,titlist)
  15960. this.markScoreTit = titlist;
  15961. this.markScoreUid = uid;
  15962. this.toolListS = toolList;
  15963. this.markScoretoolIndex = tidx;
  15964. this.markScoreworksStudent = worksStudent;
  15965. this.markfullscreen = false;
  15966. this.markScoreVisible = true;
  15967. if (this.tType == 1) {
  15968. this.insertMemorandum(
  15969. `查看<span class="variable">${uname}</span>的作业`
  15970. );
  15971. }
  15972. },
  15973. // 点击markScore显示评分框
  15974. markScoreDig(data) {
  15975. // console.log('data',data)
  15976. let jude = false;
  15977. this.AIloading.forEach((e, index) => {
  15978. if (index == data.val2) {
  15979. e.forEach(k => {
  15980. if (k.loading == true) jude = true;
  15981. });
  15982. }
  15983. });
  15984. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  15985. this.markScoreTit = data.tit;
  15986. this.markScoreUid = data.val;
  15987. this.markScoretoolIndex = data.val2;
  15988. this.markfullscreen = false;
  15989. this.markScoreVisible = true;
  15990. this.insertMemorandum(
  15991. `查看<span class="variable">${data.uname}</span>的作业`
  15992. );
  15993. },
  15994. // 刷新其他组件分数
  15995. refreshOther(v) {
  15996. // console.log('v',v)
  15997. this.AIloading[v.tid].forEach((e, i) => {
  15998. if (i == v.wid) {
  15999. e.loading = false;
  16000. }
  16001. });
  16002. // this.worksStudent.forEach((e,index)=>{
  16003. // if(toolIndex != index){
  16004. // e.forEach((i,inx)=>{
  16005. // let mk = `markSco${index}${inx}`
  16006. // this.$refs[mk][0].getData()
  16007. // })
  16008. // }
  16009. // })
  16010. },
  16011. updateDocSco(payload) {
  16012. // console.log('payload',payload)
  16013. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16014. },
  16015. gx(){
  16016. this.$forceUpdate();
  16017. },
  16018. isUpdateCorrect(t,p){
  16019. if(this.greyType == false){
  16020. this.isUpdateText = t;
  16021. this.greyType = true;
  16022. }else{
  16023. if(p == 1){
  16024. this.newEnglishList.engText = this.isUpdateText;
  16025. }else if(p == 2){
  16026. this.oldEnglishJson1.engText = this.isUpdateText;
  16027. }else if(p == 3){
  16028. this.newEnglishList.engText = this.isUpdateText;
  16029. }else{
  16030. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  16031. }
  16032. this.greyType = false
  16033. }
  16034. },
  16035. aiCorrect(t,p){
  16036. let aiText = "";
  16037. const loading = this.$loading.service({
  16038. background: "rgba(255, 255, 255)",
  16039. target: document.querySelectorAll(".loadingText")[0],
  16040. });
  16041. let param = {
  16042. model: "gpt-3.5-turbo",
  16043. temperature: 0,
  16044. max_tokens: 2048,
  16045. top_p: 1,
  16046. frequency_penalty: 0,
  16047. presence_penalty: 0,
  16048. messages: [
  16049. {
  16050. role: "user",
  16051. content:
  16052.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  16053. },
  16054. ],
  16055. uid: this.userid,
  16056. stream: false,
  16057. };
  16058. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  16059. (res) => {
  16060. if (
  16061. res.data.FunctionResponse &&
  16062. res.data.FunctionResponse.result &&
  16063. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  16064. ) {
  16065. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  16066. return;
  16067. }
  16068. aiText =
  16069. res.data.FunctionResponse.choices[0].message.content;
  16070. aiText = aiText.replace(/%/g,"%25");
  16071. // let w = "";
  16072. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  16073. // for(var k = 0;k<a.length;k++){
  16074. // //diffWordsWithSpace
  16075. // if(a.length > 1){
  16076. // if(a[k].added == true){
  16077. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  16078. // }else if(a[k].removed == true){
  16079. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  16080. // }else{
  16081. // w += '<span>' + a[k].value + '</span>';
  16082. // }
  16083. // }else{
  16084. // if(p == 1){
  16085. // w = this.newEnglishList.engText;
  16086. // }else if(p == 2){
  16087. // w = this.oldEnglishJson1.engText;
  16088. // }else if(p == 3){
  16089. // w = this.newEnglishList.engText;
  16090. // }else{
  16091. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  16092. // }
  16093. // }
  16094. // }
  16095. if(p == 1){
  16096. this.newEnglishList.engText = aiText;
  16097. }else if(p == 2){
  16098. this.oldEnglishJson1.engText = aiText;
  16099. }else if(p == 3){
  16100. this.newEnglishList.engText = aiText;
  16101. }else{
  16102. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  16103. }
  16104. loading.close();
  16105. },
  16106. (err) => {
  16107. console.log(err);
  16108. loading.close();
  16109. }
  16110. );
  16111. },
  16112. addToolChoose() {
  16113. if (!this.checktoolArray.length) {
  16114. this.$message.error("请选择要添加的任务");
  16115. return;
  16116. }
  16117. if (
  16118. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16119. this.taskCount
  16120. ].toolChoose[0].tool.length
  16121. ) {
  16122. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16123. this.taskCount
  16124. ].toolChoose[0].tool = this.checktoolArray;
  16125. } else {
  16126. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16127. this.taskCount
  16128. ].toolChoose.push({
  16129. tool: this.checktoolArray,
  16130. toolDetail: "",
  16131. toolType: 0,
  16132. askCount: 1,
  16133. askTitle: "",
  16134. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  16135. });
  16136. }
  16137. let params = [
  16138. {
  16139. cid: this.id,
  16140. chapters: JSON.stringify(this.chapInfoList),
  16141. uid: this.userid,
  16142. unitIndex: this.courseType,
  16143. },
  16144. ];
  16145. this.ajax
  16146. .post(this.$store.state.api + "updateWorkNew4", params)
  16147. .then((res) => {
  16148. this.$message({
  16149. message: "添加成功",
  16150. type: "success",
  16151. });
  16152. this.checktoolArray = [];
  16153. this.getCourseDetail(2);
  16154. this.checkBz(
  16155. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16156. this.taskCount
  16157. ].toolChoose.length - 1
  16158. );
  16159. this.toolDialogVisible = false;
  16160. this.refreshCourse();
  16161. this.$forceUpdate();
  16162. })
  16163. .catch((err) => {
  16164. console.error(err);
  16165. });
  16166. },
  16167. checkBz(index) {
  16168. this.isUpdateToolDetail = false;
  16169. this.$forceUpdate();
  16170. setTimeout(() => {
  16171. document.scrollingElement.scrollTop =
  16172. document.querySelectorAll(".filebox")[index].offsetTop +
  16173. document.querySelector(".student_body").offsetTop;
  16174. }, 500);
  16175. },
  16176. updateToolDetail(i, type) {
  16177. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  16178. this.toolDetailIndex = i
  16179. this.isUpdateToolDetail1 = true;
  16180. setTimeout(() => {
  16181. this.updateToolDetailInner = JSON.parse(
  16182. JSON.stringify(
  16183. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16184. this.taskCount
  16185. ].toolChoose[i].toolDetail
  16186. )
  16187. );
  16188. document.querySelector(".checkTextArea").focus();
  16189. }, 0);
  16190. } else if((this.isUpdateToolDetail1 && type != 2)){
  16191. // this.toolDetailIndex = i;
  16192. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16193. this.taskCount
  16194. ].toolChoose[i].toolDetail = JSON.parse(
  16195. JSON.stringify(this.updateToolDetailInner)
  16196. );
  16197. let params = [
  16198. {
  16199. cid: this.id,
  16200. chapters: JSON.stringify(this.chapInfoList),
  16201. uid: this.userid,
  16202. unitIndex: this.courseType,
  16203. },
  16204. ];
  16205. this.ajax
  16206. .post(this.$store.state.api + "updateWorkNew4", params)
  16207. .then((res) => {
  16208. this.isUpdateToolDetail1 = false;
  16209. this.$message({
  16210. message: "修改成功",
  16211. type: "success",
  16212. });
  16213. this.toolDetailIndex = null;
  16214. this.updateToolDetailInner = "";
  16215. this.getCourseDetail(2);
  16216. this.$forceUpdate();
  16217. })
  16218. .catch((err) => {
  16219. console.error(err);
  16220. });
  16221. } else if((this.isUpdateToolDetail1 && type == 2)){
  16222. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16223. this.taskCount
  16224. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  16225. JSON.stringify(this.updateToolDetailInner)
  16226. );
  16227. let params = [
  16228. {
  16229. cid: this.id,
  16230. chapters: JSON.stringify(this.chapInfoList),
  16231. uid: this.userid,
  16232. unitIndex: this.courseType,
  16233. },
  16234. ];
  16235. this.ajax
  16236. .post(this.$store.state.api + "updateWorkNew4", params)
  16237. .then((res) => {
  16238. this.$message({
  16239. message: "修改成功",
  16240. type: "success",
  16241. });
  16242. this.toolDetailIndex = i;
  16243. this.isUpdateToolDetail1 = true;
  16244. setTimeout(() => {
  16245. this.updateToolDetailInner = JSON.parse(
  16246. JSON.stringify(
  16247. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16248. this.taskCount
  16249. ].toolChoose[i].toolDetail
  16250. )
  16251. );
  16252. document.querySelector(".checkTextArea").focus();
  16253. }, 0);
  16254. this.getCourseDetail(2);
  16255. this.$forceUpdate();
  16256. })
  16257. .catch((err) => {
  16258. console.error(err);
  16259. });
  16260. }
  16261. },
  16262. jumpGj(i, j, k, l) {
  16263. this.refreshAssembly();
  16264. for (var z = 0; z < this.navList.length; z++) {
  16265. for (var q = 0; q < this.navList[z].task.length; q++) {
  16266. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16267. this.navList[z].task[q].tool[w].isTool = false;
  16268. }
  16269. }
  16270. }
  16271. console.log(this.navList);
  16272. this.navList[i].task[j].tool[k].isTool =
  16273. !this.navList[i].task[j].tool[k].isTool;
  16274. var a = document.scrollingElement;
  16275. let target = document.querySelector(`#gj${k}`);
  16276. if (target) {
  16277. target.scrollIntoView(true);
  16278. setTimeout(() => {
  16279. a.scrollTop = a.scrollTop - 150;
  16280. }, 0);
  16281. }
  16282. this.navId = ""
  16283. let flag = this.courseType == i;
  16284. let flag2 = this.taskCount == j
  16285. if (l) {
  16286. this.courseType = i;
  16287. // this.navId = l;
  16288. this.taskCount = j;
  16289. this.selectPz();
  16290. this.getHomeWork();
  16291. this.getCourseDetail(2);
  16292. if(flag){
  16293. if(flag2){
  16294. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  16295. }else{
  16296. 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>`)
  16297. }
  16298. }else{
  16299. 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>`)
  16300. }
  16301. }
  16302. // var b = this.$refs["bz" + k][0];
  16303. // a.scrollTop = b.offsetTop;
  16304. },
  16305. addTools2(i) {
  16306. if (i == 4) {
  16307. // this.openTools2(4);
  16308. this.$message.error("暂未开放");
  16309. return;
  16310. }
  16311. if (i == 45) {
  16312. // this.openTools2(45);
  16313. this.$message.error("暂未开放");
  16314. return;
  16315. }
  16316. if (i == 47) {
  16317. // this.openTools2(47);
  16318. this.$message.error("暂未开放");
  16319. return;
  16320. }
  16321. if (i == 49) {
  16322. // this.openTools2(49);
  16323. this.$message.error("暂未开放");
  16324. return;
  16325. }
  16326. if (i == 62) {
  16327. // this.openTools(itemTaskIndex, 62, toolIndex);
  16328. this.$message.error("暂未开放");
  16329. return;
  16330. }
  16331. if (i == 15) {
  16332. // this.openTools(itemTaskIndex, 15, toolIndex);
  16333. this.$message.error("暂未开放");
  16334. return;
  16335. }
  16336. if (i == 40) {
  16337. // this.openTools(itemTaskIndex, 40, toolIndex);
  16338. this.$message.error("暂未开放");
  16339. return;
  16340. }
  16341. if (i == 41) {
  16342. // this.openTools(itemTaskIndex, 41, toolIndex);
  16343. this.$message.error("暂未开放");
  16344. return;
  16345. }
  16346. if (i == 42) {
  16347. // this.openTools(itemTaskIndex, 42, toolIndex);
  16348. this.$message.error("暂未开放");
  16349. return;
  16350. }
  16351. if (this.checktoolArray.length > 0) {
  16352. if (this.checktoolArray.indexOf(i) != -1) {
  16353. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  16354. } else {
  16355. this.checktoolArray = [];
  16356. this.checktoolArray.push(i);
  16357. }
  16358. } else {
  16359. this.checktoolArray.push(i);
  16360. }
  16361. this.$forceUpdate();
  16362. },
  16363. jump() {
  16364. window.parent.postMessage({ tools: "43" }, "*");
  16365. },
  16366. getUpdateMore(f, checkboxList, searchTN, index) {
  16367. this.dialogVisibleMember = f;
  16368. this.checkboxList = checkboxList;
  16369. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  16370. this.plIndex = index;
  16371. },
  16372. setPlname(a) {
  16373. if (this.plworkFile.length) {
  16374. this.plworkFile[this.plIndex].username = a;
  16375. } else {
  16376. this.worksSName = a;
  16377. }
  16378. this.dialogVisibleMember = false;
  16379. },
  16380. previewImg(url,w) {
  16381. this.$hevueImgPreview(url);
  16382. if(w){
  16383. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  16384. }
  16385. },
  16386. checkImg(list) {
  16387. if (!list.length) {
  16388. return;
  16389. }
  16390. this.$hevueImgPreview({
  16391. multiple: true, // 开启多图预览模式
  16392. imgList: list, // 需要预览的多图数组
  16393. });
  16394. },
  16395. change(val) {
  16396. console.log(val);
  16397. },
  16398. goTo(path) {
  16399. this.$router.push(path);
  16400. },
  16401. handlePictureCardPreview(url) {
  16402. this.dialogImageUrl = url;
  16403. this.pictureDialog = true;
  16404. },
  16405. clean(type) {
  16406. if (type == 1) {
  16407. this.studyJuri[0].cover.splice(0, 1);
  16408. } else if (type == 2) {
  16409. this.studyJuri[0].upVedio.splice(0, 1);
  16410. } else {
  16411. this.studyJuri[0].upFile.splice(0, 1);
  16412. }
  16413. },
  16414. clean2(index) {
  16415. this.plworkFile.splice(index, 1);
  16416. },
  16417. handleClose(done) {
  16418. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  16419. this.videoDetail.sources[0].src = "";
  16420. }
  16421. this.commentIndexJson = {};
  16422. done();
  16423. },
  16424. fullTools() {
  16425. this.full = !this.full;
  16426. },
  16427. imgChange(file, fileList, type) {
  16428. if (type == 1) {
  16429. var _tmp = this.studyJuri[0].cover;
  16430. } else if (type == 2) {
  16431. var _tmp = this.studyJuri[0].upVedio;
  16432. } else {
  16433. var _tmp = this.studyJuri[0].upFile;
  16434. }
  16435. this.noneBtnImg = _tmp.length >= 1;
  16436. },
  16437. setContent(bool) {
  16438. this.contentDialog = bool;
  16439. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  16440. document.querySelector(".workd_media").style.height = "650px";
  16441. } else if (document.querySelector(".workd_media")) {
  16442. document.querySelector(".workd_media").style.height = "auto";
  16443. }
  16444. },
  16445. setContent2(bool) {
  16446. this.mlDialog = bool;
  16447. if (
  16448. bool &&
  16449. this.contentDialog &&
  16450. document.querySelector(".workd_media")
  16451. ) {
  16452. document.querySelector(".workd_media").style.height = "650px";
  16453. } else if (document.querySelector(".workd_media")) {
  16454. document.querySelector(".workd_media").style.height = "auto";
  16455. }
  16456. },
  16457. openToolAll() {
  16458. this.toolDialogVisible = true;
  16459. },
  16460. addImg(e) {
  16461. var el = e.currentTarget;
  16462. // this.$message.success('触发上传')
  16463. el.getElementsByTagName("input")[0].click();
  16464. e.target.value = "";
  16465. },
  16466. addSelectAnswer() {
  16467. let params = [
  16468. {
  16469. uid: this.userid,
  16470. cid: this.id,
  16471. stage: this.courseType,
  16472. task: this.taskCount,
  16473. tool: this.toolindex,
  16474. content: this.selectAnswer.answer,
  16475. type: 7,
  16476. },
  16477. ];
  16478. this.ajax
  16479. .post(this.$store.state.api + "addCourseWorks", params)
  16480. .then((res) => {
  16481. this.$message({
  16482. message: "提交成功",
  16483. type: "success",
  16484. });
  16485. this.dialogVisibleSelect = false;
  16486. // this.selectAnswer = {};
  16487. this.selectSWorks();
  16488. this.selectStudent();
  16489. })
  16490. .catch((err) => {
  16491. this.$message.error("提交失败");
  16492. console.error(err);
  16493. });
  16494. },
  16495. addSelectAnswerTeacher() {
  16496. let params = [
  16497. {
  16498. uid: this.sStudent.userid,
  16499. cid: this.id,
  16500. stage: this.courseType,
  16501. task: this.taskCount,
  16502. tool: this.toolindex,
  16503. content: this.selectAnswer.answer,
  16504. type: 7,
  16505. },
  16506. ];
  16507. this.ajax
  16508. .post(this.$store.state.api + "addCourseWorks", params)
  16509. .then((res) => {
  16510. this.$message({
  16511. message: "提交成功",
  16512. type: "success",
  16513. });
  16514. this.dialogVisibleSelectTeacher = false;
  16515. // this.selectAnswer = {};
  16516. this.selectSWorks();
  16517. this.selectStudent();
  16518. })
  16519. .catch((err) => {
  16520. this.$message.error("提交失败");
  16521. console.error(err);
  16522. });
  16523. },
  16524. addSenWorks() {
  16525. for (var i = 0; i < this.sentenceList.length; i++) {
  16526. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  16527. if (
  16528. this.sentenceList[i].chooseSenList[j] == undefined ||
  16529. this.sentenceList[i].chooseSenList[j] == ""
  16530. ) {
  16531. this.$message.error("请将答案填写完整!");
  16532. return;
  16533. }
  16534. }
  16535. }
  16536. let params = [
  16537. {
  16538. uid: this.userid,
  16539. cid: this.id,
  16540. stage: this.courseType,
  16541. task: this.taskCount,
  16542. tool: this.toolindex,
  16543. content: JSON.stringify(this.sentenceList),
  16544. type: 9,
  16545. },
  16546. ];
  16547. this.ajax
  16548. .post(this.$store.state.api + "addCourseWorks", params)
  16549. .then((res) => {
  16550. this.$message({
  16551. message: "提交成功",
  16552. type: "success",
  16553. });
  16554. this.dialogVisibleSentence = false;
  16555. // this.selectAnswer = {};
  16556. this.selectSWorks();
  16557. this.selectStudent();
  16558. })
  16559. .catch((err) => {
  16560. this.$message.error("提交失败");
  16561. console.error(err);
  16562. });
  16563. },
  16564. addSenWorksTeacher() {
  16565. for (var i = 0; i < this.sentenceList.length; i++) {
  16566. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  16567. if (
  16568. this.sentenceList[i].chooseSenList[j] == undefined ||
  16569. this.sentenceList[i].chooseSenList[j] == ""
  16570. ) {
  16571. this.$message.error("请将答案填写完整!");
  16572. return;
  16573. }
  16574. }
  16575. }
  16576. let params = [
  16577. {
  16578. uid: this.sStudent.userid,
  16579. cid: this.id,
  16580. stage: this.courseType,
  16581. task: this.taskCount,
  16582. tool: this.toolindex,
  16583. content: JSON.stringify(this.sentenceList),
  16584. type: 9,
  16585. },
  16586. ];
  16587. this.ajax
  16588. .post(this.$store.state.api + "addCourseWorks", params)
  16589. .then((res) => {
  16590. this.$message({
  16591. message: "提交成功",
  16592. type: "success",
  16593. });
  16594. this.dialogVisibleSentenceTeacher = false;
  16595. // this.selectAnswer = {};
  16596. this.selectSWorks();
  16597. this.selectStudent();
  16598. })
  16599. .catch((err) => {
  16600. this.$message.error("提交失败");
  16601. console.error(err);
  16602. });
  16603. },
  16604. returnTableText() {
  16605. this.$confirm("确定还原此模板吗?", "提示", {
  16606. confirmButtonText: "确定",
  16607. cancelButtonText: "取消",
  16608. type: "warning",
  16609. })
  16610. .then(() => {
  16611. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  16612. })
  16613. .catch(() => {});
  16614. },
  16615. addTableWorks() {
  16616. let params = [
  16617. {
  16618. uid: this.userid,
  16619. cid: this.id,
  16620. stage: this.courseType,
  16621. task: this.taskCount,
  16622. tool: this.toolindex,
  16623. content: JSON.stringify(this.tableJson),
  16624. type: 10,
  16625. },
  16626. ];
  16627. this.ajax
  16628. .post(this.$store.state.api + "addCourseWorks", params)
  16629. .then((res) => {
  16630. this.$message({
  16631. message: "提交成功",
  16632. type: "success",
  16633. });
  16634. this.dialogVisibleTable = false;
  16635. // this.selectAnswer = {};
  16636. this.selectSWorks();
  16637. this.selectStudent();
  16638. })
  16639. .catch((err) => {
  16640. this.$message.error("提交失败");
  16641. console.error(err);
  16642. });
  16643. },
  16644. tableRowClassName({ row, rowIndex }) {
  16645. if ((rowIndex + 1) % 2 === 0) {
  16646. return "even_row";
  16647. } else {
  16648. return "";
  16649. }
  16650. },
  16651. addTableWorksTeacher() {
  16652. let params = [
  16653. {
  16654. uid: this.sStudent.userid,
  16655. cid: this.id,
  16656. stage: this.courseType,
  16657. task: this.taskCount,
  16658. tool: this.toolindex,
  16659. content: JSON.stringify(this.tableJson),
  16660. type: 10,
  16661. },
  16662. ];
  16663. this.ajax
  16664. .post(this.$store.state.api + "addCourseWorks", params)
  16665. .then((res) => {
  16666. this.$message({
  16667. message: "提交成功",
  16668. type: "success",
  16669. });
  16670. this.dialogVisibleTableTeacher = false;
  16671. // this.selectAnswer = {};
  16672. this.selectSWorks();
  16673. this.selectStudent();
  16674. })
  16675. .catch((err) => {
  16676. this.$message.error("提交失败");
  16677. console.error(err);
  16678. });
  16679. },
  16680. returnWordText() {
  16681. this.$confirm("确定还原此模板吗?", "提示", {
  16682. confirmButtonText: "确定",
  16683. cancelButtonText: "取消",
  16684. type: "warning",
  16685. })
  16686. .then(() => {
  16687. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  16688. })
  16689. .catch(() => {});
  16690. },
  16691. addWordWorks() {
  16692. let params = [
  16693. {
  16694. uid: this.userid,
  16695. cid: this.id,
  16696. stage: this.courseType,
  16697. task: this.taskCount,
  16698. tool: this.toolindex,
  16699. content: JSON.stringify(this.wordJson),
  16700. type: 13,
  16701. atool: 52,
  16702. },
  16703. ];
  16704. this.ajax
  16705. .post(this.$store.state.api + "addCourseWorks3-2", params)
  16706. .then((res) => {
  16707. this.$message({
  16708. message: "提交成功",
  16709. type: "success",
  16710. });
  16711. this.dialogVisibleWord = false;
  16712. // this.selectAnswer = {};
  16713. this.selectSWorks();
  16714. this.selectStudent();
  16715. })
  16716. .catch((err) => {
  16717. this.$message.error("提交失败");
  16718. console.error(err);
  16719. });
  16720. },
  16721. addWordWorksTeacher() {
  16722. let params = [
  16723. {
  16724. uid: this.sStudent.userid,
  16725. cid: this.id,
  16726. stage: this.courseType,
  16727. task: this.taskCount,
  16728. tool: this.toolindex,
  16729. content: JSON.stringify(this.wordJson),
  16730. type: 13,
  16731. atool: 52,
  16732. },
  16733. ];
  16734. this.ajax
  16735. .post(this.$store.state.api + "addCourseWorks3-2", params)
  16736. .then((res) => {
  16737. this.$message({
  16738. message: "提交成功",
  16739. type: "success",
  16740. });
  16741. this.dialogVisibleWordTeacher = false;
  16742. // this.selectAnswer = {};
  16743. this.selectSWorks();
  16744. this.selectStudent();
  16745. })
  16746. .catch((err) => {
  16747. this.$message.error("提交失败");
  16748. console.error(err);
  16749. });
  16750. },
  16751. addCourseWorksCopy(i) {
  16752. let arr = this.workStudent[this.toolindex].filter(e => {
  16753. return (e.userid = this.userid);
  16754. });
  16755. if (arr.length > 0) {
  16756. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  16757. confirmButtonText: "确定",
  16758. cancelButtonText: "取消",
  16759. type: "warning"
  16760. })
  16761. .then(() => {
  16762. this.addCourseWorks(i);
  16763. })
  16764. .catch(() => {});
  16765. } else {
  16766. this.addCourseWorks(i);
  16767. }
  16768. },
  16769. addCourseWorks(i) {
  16770. var typesql;
  16771. if (this.fileType === 0) {
  16772. typesql = 1;
  16773. } else if (this.fileType === 1) {
  16774. typesql = 4;
  16775. } else if (this.fileType === 2) {
  16776. typesql = 5;
  16777. } else if (this.fileType === 3) {
  16778. typesql = 12;
  16779. }
  16780. if (!this.studyJuri[0].cover[0].url) {
  16781. this.$message.error("请上传文件");
  16782. return;
  16783. }
  16784. let params = [
  16785. {
  16786. uid: this.userid,
  16787. cid: this.id,
  16788. stage: this.courseType,
  16789. task: i,
  16790. tool: this.toolindex,
  16791. content: this.studyJuri[0].cover[0].url,
  16792. type: typesql,
  16793. },
  16794. ];
  16795. this.ajax
  16796. .post(this.$store.state.api + "addCourseWorksR", params)
  16797. .then((res) => {
  16798. this.$message({
  16799. message: "提交成功",
  16800. type: "success",
  16801. });
  16802. this.studyJuri[0].cover = [];
  16803. this.dialogVisible = false;
  16804. this.getCourseDetail(2);
  16805. })
  16806. .catch((err) => {
  16807. this.$message.error("提交失败");
  16808. console.error(err);
  16809. });
  16810. },
  16811. addCourseWorksPl(i) {
  16812. let _files = this.plworkFile;
  16813. var c = 1;
  16814. for (var k = 0; k < _files.length; k++) {
  16815. if (!_files[k].username) {
  16816. c = 2;
  16817. }
  16818. }
  16819. if (c == 2) {
  16820. this.$message.error("请填写学生姓名");
  16821. return;
  16822. }
  16823. let params = [
  16824. {
  16825. ateacher: this.userid,
  16826. cid: this.id,
  16827. stage: this.courseType,
  16828. task: i,
  16829. tool: this.toolindex,
  16830. content: JSON.stringify(_files),
  16831. },
  16832. ];
  16833. this.ajax
  16834. .post(this.$store.state.api + "addCourseWorksPl", params)
  16835. .then((res) => {
  16836. this.$message({
  16837. message: "提交成功",
  16838. type: "success",
  16839. });
  16840. this.plworkFile = [];
  16841. this.dialogVisiblePl = false;
  16842. this.getCourseDetail(2);
  16843. })
  16844. .catch((err) => {
  16845. this.$message.error("提交失败");
  16846. console.error(err);
  16847. });
  16848. },
  16849. addCourseWorks2(i) {
  16850. var typesql;
  16851. if (this.fileType === 0) {
  16852. typesql = 0;
  16853. } else if (this.fileType === 1) {
  16854. typesql = 1;
  16855. } else if (this.fileType === 2) {
  16856. typesql = 3;
  16857. } else if (this.fileType === 3) {
  16858. typesql = 12;
  16859. }
  16860. if (!this.studyJuri[0].cover[0].url) {
  16861. this.$message.error("请上传文件");
  16862. return;
  16863. }
  16864. let params = [
  16865. {
  16866. uid: this.userid,
  16867. cid: this.id,
  16868. stage: this.courseType,
  16869. task: i,
  16870. tool: this.toolindex,
  16871. content: JSON.stringify({
  16872. type: typesql,
  16873. groupIndex: this.groupIndex,
  16874. url: this.studyJuri[0].cover[0].url,
  16875. }),
  16876. type: 11,
  16877. atool: 49,
  16878. text: "",
  16879. },
  16880. ];
  16881. this.ajax
  16882. .post(this.$store.state.api + "addCourseWorks5", params)
  16883. .then((res) => {
  16884. this.$message({
  16885. message: "提交成功",
  16886. type: "success",
  16887. });
  16888. this.studyJuri[0].cover = [];
  16889. this.dialogVisibleGroupWork = false;
  16890. this.getCourseDetail(2);
  16891. })
  16892. .catch((err) => {
  16893. this.$message.error("提交失败");
  16894. console.error(err);
  16895. });
  16896. },
  16897. addEnglishWork() {
  16898. this.myAnList = this.$refs['engJson'].myAnswerList;
  16899. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  16900. this.$message.error("请输入作文标题和正文!");
  16901. return;
  16902. }
  16903. let params = [
  16904. {
  16905. uid: this.userid,
  16906. cid: this.id,
  16907. stage: this.courseType,
  16908. task: this.taskCount,
  16909. tool: this.englishToolIndex,
  16910. content: JSON.stringify(this.myAnList),
  16911. type: 16,
  16912. atool: 69,
  16913. text: "",
  16914. },
  16915. ];
  16916. this.ajax
  16917. .post(this.$store.state.api + "addCourseWorks5", params)
  16918. .then((res) => {
  16919. this.$message({
  16920. message: "提交成功",
  16921. type: "success",
  16922. });
  16923. this.myAnList = {};
  16924. this.englishList = {};
  16925. this.englishToolIndex = 0;
  16926. this.engDialogVisible = false;
  16927. this.selectSWorks();
  16928. this.selectStudent();
  16929. })
  16930. .catch((err) => {
  16931. this.$message.error("提交失败");
  16932. console.error(err);
  16933. });
  16934. },
  16935. addCourseWorksGong(i, data, tool) {
  16936. let params = [
  16937. {
  16938. uid: this.userid,
  16939. cid: this.id,
  16940. stage: this.courseType,
  16941. task: this.taskCount,
  16942. tool: i,
  16943. content: data,
  16944. type: 12,
  16945. atool: tool,
  16946. text: "",
  16947. },
  16948. ];
  16949. this.ajax
  16950. .post(this.$store.state.api + "addCourseWorks5", params)
  16951. .then((res) => {
  16952. this.$message({
  16953. message: "提交成功",
  16954. type: "success",
  16955. });
  16956. this.studyJuri[0].cover = [];
  16957. this.selectSWorks();
  16958. this.selectStudent();
  16959. })
  16960. .catch((err) => {
  16961. this.$message.error("提交失败");
  16962. console.error(err);
  16963. });
  16964. },
  16965. addCourseWorksGongTeacher(i, data, tool) {
  16966. let params = [
  16967. {
  16968. uid: this.sStudent.userid,
  16969. cid: this.id,
  16970. stage: this.courseType,
  16971. task: this.taskCount,
  16972. tool: i,
  16973. content: data,
  16974. type: 12,
  16975. atool: tool,
  16976. text: "",
  16977. },
  16978. ];
  16979. this.ajax
  16980. .post(this.$store.state.api + "addCourseWorks5", params)
  16981. .then((res) => {
  16982. this.$message({
  16983. message: "提交成功",
  16984. type: "success",
  16985. });
  16986. this.studyJuri[0].cover = [];
  16987. this.dialogVisibleWorks = false;
  16988. this.selectSWorks();
  16989. this.selectStudent();
  16990. })
  16991. .catch((err) => {
  16992. this.$message.error("提交失败");
  16993. console.error(err);
  16994. });
  16995. },
  16996. addCourseWorksGongPl(i, data, tool, type) {
  16997. let params = [
  16998. {
  16999. uid: this.sStudent.userid,
  17000. cid: this.id,
  17001. stage: this.courseType,
  17002. task: this.taskCount,
  17003. tool: i,
  17004. content: data,
  17005. type: type,
  17006. atool: tool,
  17007. text: "",
  17008. },
  17009. ];
  17010. this.ajax
  17011. .post(this.$store.state.api + "addCourseWorks5", params)
  17012. .then((res) => {
  17013. this.$message({
  17014. message: "提交成功",
  17015. type: "success",
  17016. });
  17017. this.studyJuri[0].cover = [];
  17018. this.dialogVisibleWorks = false;
  17019. this.selectSWorks();
  17020. this.selectStudent();
  17021. })
  17022. .catch((err) => {
  17023. this.$message.error("提交失败");
  17024. console.error(err);
  17025. });
  17026. },
  17027. addCourseWorksTeacher(i) {
  17028. var typesql;
  17029. if (this.sTool == 32) {
  17030. this.addCourseWorksGongTeacher(
  17031. this.toolindex,
  17032. this.studyJuri[0].cover[0].url,
  17033. this.sTool
  17034. );
  17035. return;
  17036. }
  17037. if (this.fileType === 0) {
  17038. typesql = 1;
  17039. } else if (this.fileType === 1) {
  17040. typesql = 4;
  17041. } else if (this.fileType === 2) {
  17042. typesql = 5;
  17043. } else if (this.fileType === 3) {
  17044. typesql = 12;
  17045. }
  17046. if (this.sTool == 50) {
  17047. this.addCourseWorksGongPl(
  17048. this.toolindex,
  17049. this.studyJuri[0].cover[0].url,
  17050. this.sTool,
  17051. typesql
  17052. );
  17053. return;
  17054. }
  17055. if (!this.studyJuri[0].cover[0].url) {
  17056. this.$message.error("请上传文件");
  17057. return;
  17058. }
  17059. let params = [
  17060. {
  17061. uid: this.sStudent.userid,
  17062. cid: this.id,
  17063. stage: this.courseType,
  17064. task: i,
  17065. tool: this.toolindex,
  17066. content: this.studyJuri[0].cover[0].url,
  17067. type: typesql,
  17068. ateacher: this.userid,
  17069. },
  17070. ];
  17071. this.ajax
  17072. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17073. .then((res) => {
  17074. this.$message({
  17075. message: "提交成功",
  17076. type: "success",
  17077. });
  17078. this.studyJuri[0].cover = [];
  17079. this.dialogVisibleWorks = false;
  17080. this.getCourseDetail(2);
  17081. })
  17082. .catch((err) => {
  17083. this.$message.error("提交失败");
  17084. console.error(err);
  17085. });
  17086. },
  17087. selectUploadStudent(type) {
  17088. const loading = this.$loading.service({
  17089. background: "rgba(255, 255, 255, 0.7)",
  17090. target: document.body,
  17091. });
  17092. let params = {
  17093. cid: this.uploadCid,
  17094. oid: this.oid,
  17095. cn: "",
  17096. };
  17097. this.ajax
  17098. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17099. .then((res) => {
  17100. loading.close();
  17101. var studentK = [];
  17102. if (this.isWorksS[this.toolindex].length > 0) {
  17103. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  17104. studentK.push(this.isWorksS[this.toolindex][z].uid);
  17105. }
  17106. studentK = studentK.join(",");
  17107. }
  17108. this.uploadStudentJuri = res.data[0].filter((el) => {
  17109. return studentK.indexOf(el.userid) == -1;
  17110. });
  17111. if (this.worksSName && this.worksSid) {
  17112. this.uploadStudentJuri.push({
  17113. userid: this.worksSid,
  17114. name: this.worksSName,
  17115. });
  17116. }
  17117. if (type == 1) {
  17118. this.plworkFile = [];
  17119. this.dialogVisibleSname = true;
  17120. } else if (type == 2) {
  17121. this.dialogVisiblePl = true;
  17122. }
  17123. })
  17124. .catch((err) => {
  17125. loading.close();
  17126. console.error(err);
  17127. });
  17128. },
  17129. selectPickStudent() {
  17130. const loading = this.$loading.service({
  17131. background: "rgba(255, 255, 255, 0.7)",
  17132. target: document.body,
  17133. });
  17134. let params = {
  17135. cid: this.uploadCid,
  17136. oid: this.oid,
  17137. cn: "",
  17138. };
  17139. this.ajax
  17140. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17141. .then((res) => {
  17142. loading.close();
  17143. this.uploadStudentJuri = res.data[0];
  17144. this.dialogVisiblePickPeople = true;
  17145. })
  17146. .catch((err) => {
  17147. loading.close();
  17148. console.error(err);
  17149. });
  17150. },
  17151. arrayToArray(arrayo, arrayt) {
  17152. let array1 = arrayo;
  17153. let array2 = arrayt;
  17154. let commonElements = [];
  17155. for (let i = 0; i < array1.length; i++) {
  17156. for (let j = 0; j < array2.length; j++) {
  17157. if (array1[i] === array2[j]) {
  17158. commonElements.push(array1[i]);
  17159. }
  17160. }
  17161. }
  17162. return commonElements;
  17163. },
  17164. selectWorksStudent() {
  17165. let params = {
  17166. oid: this.oid,
  17167. cid: this.courseDetail.juri,
  17168. };
  17169. this.ajax
  17170. .get(this.$store.state.api + "selectWorksStudent", params)
  17171. .then((res) => {
  17172. var a = res.data[0];
  17173. for (var i = 0; i < this.isWorksS.length; i++) {
  17174. this.noWorksS[i] = [];
  17175. var studentK = [];
  17176. if (this.isWorksS[i].length > 0) {
  17177. for (var z = 0; z < this.isWorksS[i].length; z++) {
  17178. studentK.push(this.isWorksS[i][z].uid);
  17179. }
  17180. studentK = studentK.join(",");
  17181. for (var j = 0; j < a.length; j++) {
  17182. if (studentK.indexOf(a[j].userid) == -1) {
  17183. if (this.tcid) {
  17184. // a[j].classid.indexOf(this.tcid) != -1
  17185. if (
  17186. this.arrayToArray(
  17187. a[j].classid.split(","),
  17188. this.tcid.split(",")
  17189. ).length
  17190. ) {
  17191. this.noWorksS[i].push({
  17192. student: a[j].name,
  17193. userid: a[j].userid,
  17194. });
  17195. }
  17196. } else {
  17197. this.noWorksS[i].push({
  17198. student: a[j].name,
  17199. userid: a[j].userid,
  17200. });
  17201. }
  17202. }
  17203. }
  17204. } else {
  17205. for (var k = 0; k < a.length; k++) {
  17206. if (this.tcid) {
  17207. if (
  17208. this.arrayToArray(
  17209. a[k].classid.split(","),
  17210. this.tcid.split(",")
  17211. ).length
  17212. ) {
  17213. this.noWorksS[i].push({
  17214. student: a[k].name,
  17215. userid: a[k].userid,
  17216. });
  17217. }
  17218. } else {
  17219. this.noWorksS[i].push({
  17220. student: a[k].name,
  17221. userid: a[k].userid,
  17222. });
  17223. }
  17224. }
  17225. }
  17226. }
  17227. this.$forceUpdate();
  17228. if (
  17229. Object.keys(this.commentDetail).length &&
  17230. Object.keys(this.commentIndexJson).length &&
  17231. !this.dialogVisibleScore && !this.dialogVisibleENScore
  17232. ) {
  17233. let a = 1;
  17234. let c = this.commentIndexJson;
  17235. if (
  17236. this.commentIndexJson.gindex ||
  17237. this.commentIndexJson.gindex === 0
  17238. ) {
  17239. for (
  17240. var i = 0;
  17241. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17242. i++
  17243. ) {
  17244. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  17245. groupA: for (var k = 0; k < _el.length; k++) {
  17246. let el = _el[k];
  17247. if (el.wid == this.commentDetail.wid) {
  17248. a = 2;
  17249. this.commentOther(
  17250. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  17251. this.commentIndexJson.toolIndex,
  17252. k,
  17253. this.commentIndexJson.gindex
  17254. );
  17255. break groupA;
  17256. }
  17257. }
  17258. }
  17259. if (a === 1) {
  17260. this.commentDetail = [];
  17261. this.commentIndexJson = {};
  17262. this.commentDialogVisible = false;
  17263. this.$message("此作业已被删除");
  17264. }
  17265. } else {
  17266. if (this.isGroup && this.commentIndexJson.gid) {
  17267. groupA: for (
  17268. var i = 0;
  17269. i < this.courseGroup.group.length;
  17270. i++
  17271. ) {
  17272. let _group = this.courseGroup.group[i];
  17273. if (_group.id == this.commentIndexJson.gid) {
  17274. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  17275. for (var k = 0; k < _el2.length; k++) {
  17276. let el2 = _el2[k];
  17277. if (el2.wid == this.commentDetail.wid) {
  17278. a = 2;
  17279. this.commentOther(
  17280. _el2[k],
  17281. this.commentIndexJson.toolIndex,
  17282. k,
  17283. null,
  17284. this.commentIndexJson.gid
  17285. );
  17286. break groupA;
  17287. }
  17288. }
  17289. }
  17290. }
  17291. }
  17292. if (a == 1) {
  17293. for (
  17294. var i = 0;
  17295. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17296. i++
  17297. ) {
  17298. let el =
  17299. this.worksStudent[this.commentIndexJson.toolIndex][i];
  17300. if (el.wid == this.commentDetail.wid) {
  17301. a = 2;
  17302. this.commentOther(
  17303. this.worksStudent[this.commentIndexJson.toolIndex][i],
  17304. this.commentIndexJson.toolIndex,
  17305. i
  17306. );
  17307. break;
  17308. }
  17309. }
  17310. }
  17311. if (a === 1) {
  17312. this.commentDetail = [];
  17313. this.commentIndexJson = {};
  17314. this.commentDialogVisible = false;
  17315. this.$message("此作业已被删除");
  17316. }
  17317. }
  17318. }
  17319. })
  17320. .catch((err) => {
  17321. console.error(err);
  17322. });
  17323. },
  17324. selectStudent() {
  17325. //学生查看自己作业
  17326. let params = {
  17327. uid: this.userid,
  17328. cid: this.id,
  17329. s: this.courseType,
  17330. t: this.taskCount,
  17331. };
  17332. this.ajax
  17333. .get(this.$store.state.api + "selectStudentWorks", params)
  17334. .then((res) => {
  17335. var a =
  17336. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17337. this.taskCount
  17338. ].toolChoose;
  17339. var b = res.data[0];
  17340. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17341. var y = [
  17342. "AVI",
  17343. "NAVI",
  17344. "MPEG",
  17345. "ASF",
  17346. "MOV",
  17347. "WMV",
  17348. "3GP",
  17349. "RM",
  17350. "RMVB",
  17351. "FLV",
  17352. "F4V",
  17353. "H.264",
  17354. "H.265",
  17355. "REAL VIDEO",
  17356. "MKV",
  17357. "WebM",
  17358. "HDDVD",
  17359. "MP4",
  17360. "MPG",
  17361. "M4V",
  17362. "MGV",
  17363. "OGV",
  17364. "QTM",
  17365. "STR",
  17366. "AMC",
  17367. "DVX",
  17368. "EVO",
  17369. "DAT",
  17370. "OGG",
  17371. "OGM",
  17372. ];
  17373. for (var i = 0; i < a.length; i++) {
  17374. this.workStudent[i] = [];
  17375. for (var j = 0; j < b.length; j++) {
  17376. if (i == b[j].tool) {
  17377. if (
  17378. (b[j].type == 1 ||
  17379. b[j].type == 4 ||
  17380. b[j].type == 5 ||
  17381. b[j].type == 6 ||
  17382. b[j].type == 12 ||
  17383. b[j].type == 7) &&
  17384. a[i].tool[0] != 15 &&
  17385. a[i].tool[0] != 4 &&
  17386. a[i].tool[0] != 45 &&
  17387. a[i].tool[0] != 50 &&
  17388. a[i].tool[0] != 32 &&
  17389. a[i].tool[0] != 57 &&
  17390. a[i].tool[0] != 52 &&
  17391. a[i].tool[0] != 69
  17392. ) {
  17393. if (
  17394. c.indexOf(
  17395. b[j].content
  17396. .split(".")
  17397. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17398. ) != -1 &&
  17399. a[i].tool[0] == 16 &&
  17400. b[j].atool != 50
  17401. ) {
  17402. this.workStudent[i].push({
  17403. works: b[j].content,
  17404. sName: b[j].name,
  17405. score: b[j].score,
  17406. img: b[j].img,
  17407. type: 1,
  17408. time: b[j].time,
  17409. userid: b[j].userid,
  17410. wid: b[j].id,
  17411. });
  17412. } else if (
  17413. y.indexOf(
  17414. b[j].content
  17415. .split(".")
  17416. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17417. ) != -1 &&
  17418. a[i].tool[0] == 16 &&
  17419. b[j].atool != 50
  17420. ) {
  17421. this.workStudent[i].push({
  17422. userid: b[j].userid,
  17423. wid: b[j].id,
  17424. works: b[j].content,
  17425. sName: b[j].name,
  17426. score: b[j].score,
  17427. img: b[j].img,
  17428. type: 3,
  17429. time: b[j].time,
  17430. });
  17431. } else if (b[j].type == 6 && b[j].atool != 50) {
  17432. this.workStudent[i].push({
  17433. userid: b[j].userid,
  17434. wid: b[j].id,
  17435. works: b[j].content,
  17436. sName: b[j].name,
  17437. score: b[j].score,
  17438. img: b[j].img,
  17439. type: 4,
  17440. time: b[j].time,
  17441. });
  17442. } else if (b[j].type == 7 && b[j].atool != 50) {
  17443. this.workStudent[i].push({
  17444. userid: b[j].userid,
  17445. wid: b[j].id,
  17446. works: b[j].content,
  17447. sName: b[j].name,
  17448. score: b[j].score,
  17449. img: b[j].img,
  17450. type: 5,
  17451. time: b[j].time,
  17452. });
  17453. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  17454. this.workStudent[i].push({
  17455. works: b[j].content,
  17456. sName: b[j].name,
  17457. score: b[j].score,
  17458. img: b[j].img,
  17459. type: 12,
  17460. time: b[j].time,
  17461. userid: b[j].userid,
  17462. wid: b[j].id,
  17463. });
  17464. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  17465. this.workStudent[i].push({
  17466. works: b[j].content,
  17467. sName: b[j].name,
  17468. score: b[j].score,
  17469. img: b[j].img,
  17470. type: 0,
  17471. time: b[j].time,
  17472. userid: b[j].userid,
  17473. wid: b[j].id,
  17474. });
  17475. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  17476. this.workStudent[i].push({
  17477. works: b[j].content,
  17478. sName: b[j].name,
  17479. score: b[j].score,
  17480. img: b[j].img,
  17481. type: 0,
  17482. time: b[j].time,
  17483. userid: b[j].userid,
  17484. wid: b[j].id,
  17485. });
  17486. }
  17487. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  17488. this.workStudent[i].push({
  17489. works: b[j].content,
  17490. sName: b[j].name,
  17491. score: b[j].score,
  17492. img: b[j].img,
  17493. type: 2,
  17494. time: b[j].time,
  17495. userid: b[j].userid,
  17496. wid: b[j].id,
  17497. });
  17498. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  17499. //问卷
  17500. this.workStudent[i].push({
  17501. works: b[j].content,
  17502. sName: b[j].name,
  17503. score: b[j].score,
  17504. img: b[j].img,
  17505. type: 2,
  17506. time: b[j].time,
  17507. userid: b[j].userid,
  17508. wid: b[j].id,
  17509. });
  17510. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  17511. //选择题
  17512. this.workStudent[i].push({
  17513. works: b[j].content,
  17514. sName: b[j].name,
  17515. score: b[j].score,
  17516. img: b[j].img,
  17517. type: 8,
  17518. time: b[j].time,
  17519. userid: b[j].userid,
  17520. wid: b[j].id,
  17521. });
  17522. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  17523. //选择题
  17524. this.workStudent[i].push({
  17525. works: b[j].content,
  17526. sName: b[j].name,
  17527. score: b[j].score,
  17528. img: b[j].img,
  17529. type: 9,
  17530. time: b[j].time,
  17531. userid: b[j].userid,
  17532. wid: b[j].id,
  17533. });
  17534. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  17535. //选择题
  17536. this.workStudent[i].push({
  17537. works: b[j].content,
  17538. sName: b[j].name,
  17539. score: b[j].score,
  17540. img: b[j].img,
  17541. type: 10,
  17542. time: b[j].time,
  17543. userid: b[j].userid,
  17544. wid: b[j].id,
  17545. });
  17546. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  17547. //选择题
  17548. this.workStudent[i].push({
  17549. works: b[j].content,
  17550. sName: b[j].name,
  17551. score: b[j].score,
  17552. img: b[j].img,
  17553. type: 13,
  17554. time: b[j].time,
  17555. userid: b[j].userid,
  17556. wid: b[j].id,
  17557. });
  17558. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  17559. //选择题
  17560. this.workStudent[i].push({
  17561. works: b[j].content,
  17562. sName: b[j].name,
  17563. score: b[j].score,
  17564. img: b[j].img,
  17565. type: 12,
  17566. time: b[j].time,
  17567. userid: b[j].userid,
  17568. wid: b[j].id,
  17569. });
  17570. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  17571. //选择题
  17572. this.workStudent[i].push({
  17573. works: b[j].content,
  17574. sName: b[j].name,
  17575. score: b[j].score,
  17576. img: b[j].img,
  17577. type: 12,
  17578. time: b[j].time,
  17579. userid: b[j].userid,
  17580. wid: b[j].id,
  17581. });
  17582. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  17583. //选择题
  17584. this.workStudent[i].push({
  17585. works: b[j].content,
  17586. sName: b[j].name,
  17587. score: b[j].score,
  17588. img: b[j].img,
  17589. type: 15,
  17590. time: b[j].time,
  17591. userid: b[j].userid,
  17592. wid: b[j].id,
  17593. });
  17594. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  17595. //英语写作
  17596. this.workStudent[i].push({
  17597. works: b[j].content,
  17598. sName: b[j].name,
  17599. score: b[j].score,
  17600. img: b[j].img,
  17601. type: 16,
  17602. time: b[j].time,
  17603. userid: b[j].userid,
  17604. wid: b[j].id,
  17605. aiCode: b[j].aiCode,
  17606. teacherCode: b[j].teacherCode
  17607. });
  17608. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  17609. //英语口语
  17610. this.workStudent[i].push({
  17611. works: b[j].content,
  17612. sName: b[j].name,
  17613. score: b[j].score,
  17614. img: b[j].img,
  17615. type: 17,
  17616. time: b[j].time,
  17617. userid: b[j].userid,
  17618. wid: b[j].id,
  17619. });
  17620. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  17621. //交互视频
  17622. this.workStudent[i].push({
  17623. works: b[j].content,
  17624. sName: b[j].name,
  17625. score: b[j].score,
  17626. img: b[j].img,
  17627. type: 14,
  17628. time: b[j].time,
  17629. userid: b[j].userid,
  17630. wid: b[j].id,
  17631. });
  17632. }
  17633. }
  17634. }
  17635. }
  17636. })
  17637. .catch((err) => {
  17638. console.error(err);
  17639. });
  17640. },
  17641. openVideo(w) {
  17642. this.videoDetail = {};
  17643. this.playerOptions1.sources[0].src = w.works;
  17644. this.videoDetail = this.playerOptions1;
  17645. this.videoVisible = true;
  17646. },
  17647. isLikes(wid, uid, t, c, isLikes,sName) {
  17648. if (isLikes == false) {
  17649. let params = [
  17650. {
  17651. wid: wid,
  17652. lid: uid,
  17653. t: t,
  17654. c: c,
  17655. },
  17656. ];
  17657. this.ajax
  17658. .post(this.$store.state.api + "insertComment", params)
  17659. .then((res) => {
  17660. this.$message({
  17661. message: "点赞成功",
  17662. type: "success",
  17663. });
  17664. this.selectSWorks();
  17665. this.selectStudent();
  17666. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  17667. })
  17668. .catch((err) => {
  17669. this.$message.error("点赞失败");
  17670. console.error(err);
  17671. });
  17672. } else {
  17673. let params = {
  17674. wid: wid,
  17675. lid: uid,
  17676. type: t,
  17677. };
  17678. this.ajax
  17679. .get(this.$store.state.api + "deleteComment", params)
  17680. .then((res) => {
  17681. this.$message({
  17682. message: "取消点赞成功",
  17683. type: "success",
  17684. });
  17685. this.selectSWorks();
  17686. this.selectStudent();
  17687. })
  17688. .catch((err) => {
  17689. console.error(err);
  17690. });
  17691. }
  17692. },
  17693. deleteComment(wid) {
  17694. this.$confirm("确定删除此评论吗?", "提示", {
  17695. confirmButtonText: "确定",
  17696. cancelButtonText: "取消",
  17697. type: "warning",
  17698. })
  17699. .then(() => {
  17700. let params = {
  17701. id: wid,
  17702. };
  17703. this.ajax
  17704. .get(this.$store.state.api + "deleteComment2", params)
  17705. .then((res) => {
  17706. this.$message({
  17707. message: "删除评论成功",
  17708. type: "success",
  17709. });
  17710. this.selectSWorks();
  17711. this.selectStudent();
  17712. })
  17713. .catch((err) => {
  17714. console.error(err);
  17715. });
  17716. })
  17717. .catch(() => {});
  17718. },
  17719. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  17720. this.commentIndexJson = {
  17721. toolIndex: toolIndex,
  17722. wIndex: wIndex,
  17723. gindex: gindex,
  17724. gid: gid,
  17725. };
  17726. this.commentDetail = [];
  17727. this.commentDialogVisible = true;
  17728. this.commentDetail = w;
  17729. if (w.works && w.type == 1) {
  17730. // this.pptImgUrl = "";
  17731. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17732. if (
  17733. a.indexOf(
  17734. w.works
  17735. .split(".")
  17736. [w.works.split(".").length - 1].toLocaleUpperCase()
  17737. ) != -1
  17738. ) {
  17739. let _uuurl = await this.checkLink(w.works);
  17740. console.log(_uuurl)
  17741. this.pptImgUrl =
  17742. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17743. this.showPDF = false;
  17744. } else if (
  17745. w.works
  17746. .split(".")
  17747. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17748. ) {
  17749. this.pptImgUrl = w.works;
  17750. this.showPDF = true;
  17751. }
  17752. } else if (w.works && w.type == 3) {
  17753. this.videoDetail = {};
  17754. this.playerOptions1.sources[0].src = w.works;
  17755. this.videoDetail = this.playerOptions1;
  17756. // this.videoVisible = true;
  17757. } else if (w.works && w.type == 4) {
  17758. this.eScore = JSON.parse(w.works);
  17759. this.rateJson =
  17760. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17761. this.taskCount
  17762. ].toolChoose[toolIndex].rateJson;
  17763. } else if (w.works && w.type == 10) {
  17764. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  17765. } else if (w.works && w.type == 13) {
  17766. this.wordJson =
  17767. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17768. this.taskCount
  17769. ].toolChoose[toolIndex].wordJson;
  17770. }
  17771. },
  17772. async openScore(w, index) {
  17773. this.wScore = 0;
  17774. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  17775. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  17776. this.commentDetail = [];
  17777. if(w.type == 17){
  17778. this.dialogVisibleENScore = true;
  17779. }else{
  17780. this.dialogVisibleScore = true;
  17781. }
  17782. this.commentDetail = w;
  17783. if (w.works && w.type == 1) {
  17784. this.pptImgUrl = "";
  17785. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17786. if (
  17787. a.indexOf(
  17788. w.works
  17789. .split(".")
  17790. [w.works.split(".").length - 1].toLocaleUpperCase()
  17791. ) != -1
  17792. ) {
  17793. let _uuurl = await this.checkLink(w.works);
  17794. console.log(_uuurl)
  17795. this.pptImgUrl =
  17796. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17797. this.showPDF = false;
  17798. } else if (
  17799. w.works
  17800. .split(".")
  17801. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17802. ) {
  17803. this.pptImgUrl = w.works;
  17804. this.showPDF = true;
  17805. }
  17806. } else if (w.works && w.type == 3) {
  17807. this.videoDetail = {};
  17808. this.playerOptions1.sources[0].src = w.works;
  17809. this.videoDetail = this.playerOptions1;
  17810. }else if(w.type == 17){
  17811. let englishVoiceJson = {}
  17812. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17813. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  17814. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  17815. .toolChoose[index].englishVoiceJson
  17816. : {};
  17817. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  17818. }
  17819. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17820. },
  17821. addComment(wid, uid, t,detail) {
  17822. if (this.commentText == "") {
  17823. this.$message.error("请输入评论");
  17824. return;
  17825. }
  17826. let params2 = [
  17827. {
  17828. wid: wid,
  17829. lid: uid,
  17830. t: t,
  17831. },
  17832. ];
  17833. this.ajax
  17834. .post(this.$store.state.api + "getComment", params2)
  17835. .then((res) => {
  17836. if (res.data[0].length > 0) {
  17837. this.$message.error("一个作业只能评论一条");
  17838. } else {
  17839. let params = [
  17840. {
  17841. wid: wid,
  17842. lid: uid,
  17843. t: t,
  17844. c: this.commentText,
  17845. },
  17846. ];
  17847. this.ajax
  17848. .post(this.$store.state.api + "insertComment", params)
  17849. .then((res) => {
  17850. this.$message({
  17851. message: "评论成功",
  17852. type: "success",
  17853. });
  17854. this.commentText = "";
  17855. this.selectSWorks();
  17856. this.selectStudent();
  17857. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  17858. })
  17859. .catch((err) => {
  17860. this.$message.error("评论失败");
  17861. console.error(err);
  17862. });
  17863. }
  17864. })
  17865. .catch((err) => {
  17866. // this.$message.error("评论失败");
  17867. console.error(err);
  17868. });
  17869. },
  17870. scoreWork(wid,sName) {
  17871. if (this.wScore == 0) {
  17872. this.$message.error("请评分");
  17873. return;
  17874. }
  17875. let params = [
  17876. {
  17877. wid: wid,
  17878. score: JSON.stringify({
  17879. wScore: this.wScore,
  17880. detail: this.scoreDetail,
  17881. }),
  17882. },
  17883. ];
  17884. this.ajax
  17885. .post(this.$store.state.api + "scoreWork", params)
  17886. .then((res) => {
  17887. this.$message({
  17888. message: "评分成功",
  17889. type: "success",
  17890. });
  17891. this.wScore = 0;
  17892. this.scoreDetail = "";
  17893. this.dialogVisibleScore = false;
  17894. this.selectSWorks();
  17895. this.selectStudent();
  17896. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  17897. })
  17898. .catch((err) => {
  17899. this.$message.error("评分失败");
  17900. console.error(err);
  17901. });
  17902. },
  17903. openXz(w, i) {
  17904. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17905. .taskJson[this.taskCount].toolChoose[i].selectJson
  17906. ? JSON.parse(
  17907. JSON.stringify(
  17908. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17909. this.taskCount
  17910. ].toolChoose[i].selectJson
  17911. )
  17912. )
  17913. : { url: "", select: [], answer: [] };
  17914. var a = w.works.split(",");
  17915. for (var k = 0; k < a.length; k++) {
  17916. a[k] = parseInt(a[k]);
  17917. }
  17918. this.selectAnswer = { answer: a, stu: w.sName };
  17919. this.isSelect = true;
  17920. this.dialogVisibleSelect = true;
  17921. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17922. },
  17923. openSen(w, i) {
  17924. this.sentenceList1 = JSON.parse(w.works);
  17925. this.sentenceList1.stuName = w.sName;
  17926. this.dialogVisibleSentence1 = true;
  17927. },
  17928. openPj(w, toolindex) {
  17929. this.isStar = true;
  17930. this.eScore = JSON.parse(w);
  17931. this.rateJson =
  17932. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17933. this.taskCount
  17934. ].toolChoose[toolindex].rateJson;
  17935. this.studentEvalDialogVisible = true;
  17936. },
  17937. openEnglishEva(id,i){
  17938. let params = {
  17939. wid: id
  17940. };
  17941. this.ajax
  17942. .get(this.$store.state.api + "selectEngWork", params)
  17943. .then((res) => {
  17944. this.evaEngJson.message = res.data[0][0];
  17945. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  17946. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  17947. .toolChoose[i].englishList;
  17948. this.engEvaDialogVisible = true;
  17949. })
  17950. .catch((err) => {
  17951. console.error(err);
  17952. });
  17953. },
  17954. deleteWorks(id) {
  17955. this.$confirm("确定删除此作业吗?", "提示", {
  17956. confirmButtonText: "确定",
  17957. cancelButtonText: "取消",
  17958. type: "warning",
  17959. })
  17960. .then(() => {
  17961. let params = [
  17962. {
  17963. id: id,
  17964. },
  17965. ];
  17966. this.ajax
  17967. .post(this.$store.state.api + "deleteCourseWork", params)
  17968. .then((res) => {
  17969. this.$message({
  17970. message: "删除成功",
  17971. type: "success",
  17972. });
  17973. this.selectStudent();
  17974. this.selectSWorks();
  17975. this.selectSLook();
  17976. })
  17977. .catch((err) => {
  17978. this.$message.error("网络异常");
  17979. console.error(err);
  17980. });
  17981. })
  17982. .catch(() => {});
  17983. },
  17984. noIsAi() {
  17985. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  17986. },
  17987. getLang() {
  17988. let lang = "";
  17989. if (this.languageSetting == 0) {
  17990. lang = "Chinese.";
  17991. } else if (this.languageSetting == 1) {
  17992. lang = "Traditional Chinese.";
  17993. } else if (this.languageSetting == 2) {
  17994. lang = "English.";
  17995. }
  17996. return lang;
  17997. },
  17998. selectSWorks(gindex) {
  17999. //教师查看全部作业
  18000. let params = {
  18001. cid: this.id,
  18002. s: this.courseType,
  18003. t: this.taskCount
  18004. };
  18005. this.ajax
  18006. .get(this.$store.state.api + "selectSWorks", params)
  18007. .then(res => {
  18008. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18009. this.taskCount
  18010. ].toolChoose;
  18011. var b = res.data[0];
  18012. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18013. var y = [
  18014. "AVI",
  18015. "NAVI",
  18016. "MPEG",
  18017. "ASF",
  18018. "MOV",
  18019. "WMV",
  18020. "3GP",
  18021. "RM",
  18022. "RMVB",
  18023. "FLV",
  18024. "F4V",
  18025. "H.264",
  18026. "H.265",
  18027. "REAL VIDEO",
  18028. "MKV",
  18029. "WebM",
  18030. "HDDVD",
  18031. "MP4",
  18032. "MPG",
  18033. "M4V",
  18034. "MGV",
  18035. "OGV",
  18036. "QTM",
  18037. "STR",
  18038. "AMC",
  18039. "DVX",
  18040. "EVO",
  18041. "DAT",
  18042. "OGG",
  18043. "OGM"
  18044. ];
  18045. var d = res.data[1];
  18046. var e = res.data[2];
  18047. var f = res.data[3];
  18048. let _worksStudent = [];
  18049. var _worksStudent2 = [];
  18050. for (var i = 0; i < a.length; i++) {
  18051. _worksStudent[i] = [];
  18052. _worksStudent2[i] = [];
  18053. if (
  18054. !this.isCloseList[i] ||
  18055. this.isCloseList[i].isClose == undefined
  18056. ) {
  18057. this.isCloseList[i] = { isClose: 0 };
  18058. }
  18059. this.groupStudent[i] = [];
  18060. this.groupStudentUid[i] = [];
  18061. if (this.isGroup) {
  18062. for (
  18063. var groupI = 0;
  18064. groupI < this.courseGroup.group.length;
  18065. groupI++
  18066. ) {
  18067. this.courseGroup.group[groupI].works[i] = [];
  18068. }
  18069. }
  18070. this.isWorksS[i] = [];
  18071. this.checkJson[i] = [];
  18072. if (a[i].tool[0] == 49) {
  18073. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  18074. this.groupStudent[i][gA] = [];
  18075. this.groupStudentUid[i][gA] = [];
  18076. _worksStudent[i][gA] = [];
  18077. _worksStudent2[i][gA] = [];
  18078. this.isCloseList[i][gA] = [];
  18079. for (var g = 0; g < f.length; g++) {
  18080. if (
  18081. f[g].ttype == 2 &&
  18082. this.tcid &&
  18083. this.arrayToArray(
  18084. f[g].classid ? f[g].classid.split(",") : [],
  18085. this.tcid.split(",")
  18086. ).length == 0
  18087. ) {
  18088. continue;
  18089. }
  18090. let _classId = this.arrayToArray(
  18091. this.courseDetail.juri
  18092. ? this.courseDetail.juri.split(",")
  18093. : [],
  18094. this.classId ? this.classId.split(",") : []
  18095. );
  18096. if (
  18097. gA == f[g].group &&
  18098. f[g].tool == i &&
  18099. (this.arrayToArray(
  18100. f[g].classid ? f[g].classid.split(",") : [],
  18101. this.tcid.split(",")
  18102. ).length !== 0 ||
  18103. this.arrayToArray(
  18104. f[g].classid ? f[g].classid.split(",") : [],
  18105. _classId
  18106. ).length !== 0 ||
  18107. (!this.tcid && this.tType == "1") ||
  18108. this.courseDetail.juri === "" ||
  18109. f[g].ttype == 1)
  18110. ) {
  18111. this.groupStudent[i][gA].push(f[g]);
  18112. this.groupStudentUid[i][gA].push(f[g].userid);
  18113. }
  18114. }
  18115. }
  18116. this.$forceUpdate();
  18117. }
  18118. for (var j = 0; j < b.length; j++) {
  18119. if (
  18120. b[j].ttype == 2 &&
  18121. this.tcid &&
  18122. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  18123. .length == 0
  18124. ) {
  18125. continue;
  18126. }
  18127. var likesCount = 0;
  18128. var commentCount = 0;
  18129. var isLikes = false;
  18130. var commentJson = [];
  18131. var likeJson = [];
  18132. var data = b[j];
  18133. if (i == b[j].tool) {
  18134. if (data.type == 2 && a[i].tool[0] == 4) {
  18135. // if(JSON.parse(data.content)[0].anwer){
  18136. var checkL =
  18137. JSON.parse(data.content)[0].anwer instanceof Array
  18138. ? JSON.parse(data.content)[0].anwer
  18139. : JSON.parse(data.content)[0].anwer.split(",");
  18140. for (var z = 0; z < checkL.length; z++) {
  18141. if (!this.checkJson[i][z]) {
  18142. this.checkJson[i].push({
  18143. checkCount: [],
  18144. checkPerson: [],
  18145. rightPerson: []
  18146. });
  18147. }
  18148. if (!this.checkJson[i][z].checkCount.length) {
  18149. this.checkJson[i][z].checkCount = [];
  18150. let _askItemCount = JSON.parse(data.content)[0].askJson
  18151. .askJson[z].askItem;
  18152. for (var aic = 0; aic < _askItemCount; aic++) {
  18153. this.checkJson[i][z].checkCount.push(0);
  18154. }
  18155. }
  18156. if (checkL[z] instanceof Array) {
  18157. if (
  18158. JSON.parse(data.content)[0]
  18159. .anwer.sort()
  18160. .join(",") == checkL[z].sort().join(",")
  18161. ) {
  18162. this.checkJson[i][z].rightPerson.push(data.name);
  18163. }
  18164. for (var q = 0; q < checkL[z].length; q++) {
  18165. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18166. ? this.checkJson[i][z].checkPerson[
  18167. parseInt(checkL[z][q])
  18168. ].push(data.name)
  18169. : (this.checkJson[i][z].checkPerson[
  18170. parseInt(checkL[z][q])
  18171. ] = [data.name]);
  18172. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18173. ? this.checkJson[i][z].checkCount[
  18174. parseInt(checkL[z][q])
  18175. ]++
  18176. : (this.checkJson[i][z].checkCount[
  18177. parseInt(checkL[z][q])
  18178. ] = 1);
  18179. }
  18180. } else {
  18181. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  18182. this.checkJson[i][z].rightPerson.push(data.name);
  18183. }
  18184. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18185. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18186. ? this.checkJson[i][z].checkPerson[
  18187. parseInt(checkL[z])
  18188. ].push(data.name)
  18189. : (this.checkJson[i][z].checkPerson[
  18190. parseInt(checkL[z])
  18191. ] = [data.name]);
  18192. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18193. ? this.checkJson[i][z].checkCount[
  18194. parseInt(checkL[z])
  18195. ]++
  18196. : (this.checkJson[i][z].checkCount[
  18197. parseInt(checkL[z])
  18198. ] = 1);
  18199. }
  18200. }
  18201. }
  18202. } else if (data.type == 8 && a[i].tool[0] == 45) {
  18203. var checkL = JSON.parse(data.content)[0].anwer;
  18204. for (var z = 0; z < checkL.length; z++) {
  18205. if (!this.checkJson[i][z]) {
  18206. this.checkJson[i].push({
  18207. checkCount: [],
  18208. checkPerson: [],
  18209. rightPerson: []
  18210. });
  18211. }
  18212. if (!this.checkJson[i][z].checkCount.length) {
  18213. this.checkJson[i][z].checkCount = [];
  18214. let _askItemCount = JSON.parse(data.content)[0].testJson
  18215. .testJson[z].testItem;
  18216. for (var aic = 0; aic < _askItemCount; aic++) {
  18217. this.checkJson[i][z].checkCount.push(0);
  18218. }
  18219. }
  18220. if (checkL[z] instanceof Array) {
  18221. if (
  18222. JSON.parse(data.content)[0]
  18223. .testJson.testJson[z].answer.sort()
  18224. .join(",") == checkL[z].sort().join(",")
  18225. ) {
  18226. this.checkJson[i][z].rightPerson.push(data.name);
  18227. }
  18228. for (var q = 0; q < checkL[z].length; q++) {
  18229. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18230. ? this.checkJson[i][z].checkPerson[
  18231. parseInt(checkL[z][q])
  18232. ].push(data.name)
  18233. : (this.checkJson[i][z].checkPerson[
  18234. parseInt(checkL[z][q])
  18235. ] = [data.name]);
  18236. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18237. ? this.checkJson[i][z].checkCount[
  18238. parseInt(checkL[z][q])
  18239. ]++
  18240. : (this.checkJson[i][z].checkCount[
  18241. parseInt(checkL[z][q])
  18242. ] = 1);
  18243. }
  18244. } else {
  18245. if (
  18246. JSON.parse(data.content)[0].testJson.testJson[z]
  18247. .answer == checkL[z]
  18248. ) {
  18249. this.checkJson[i][z].rightPerson.push(data.name);
  18250. }
  18251. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18252. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18253. ? this.checkJson[i][z].checkPerson[
  18254. parseInt(checkL[z])
  18255. ].push(data.name)
  18256. : (this.checkJson[i][z].checkPerson[
  18257. parseInt(checkL[z])
  18258. ] = [data.name]);
  18259. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18260. ? this.checkJson[i][z].checkCount[
  18261. parseInt(checkL[z])
  18262. ]++
  18263. : (this.checkJson[i][z].checkCount[
  18264. parseInt(checkL[z])
  18265. ] = 1);
  18266. }
  18267. }
  18268. }
  18269. } else if (data.type == 9 && a[i].tool[0] == 47) {
  18270. var checkL = JSON.parse(data.content);
  18271. for (var z = 0; z < checkL.length; z++) {
  18272. if (!this.checkJson[i][z]) {
  18273. this.checkJson[i].push({
  18274. checkCount: [],
  18275. checkPerson: [],
  18276. rightPerson: []
  18277. });
  18278. }
  18279. this.checkJson[i][z].checkPerson.push(data.name);
  18280. if (
  18281. checkL[z].chooseSenList.toString() ==
  18282. checkL[z].rightAnswer.toString()
  18283. ) {
  18284. this.checkJson[i][z].rightPerson.push(data.name);
  18285. }
  18286. }
  18287. }
  18288. for (var k = 0; k < d.length; k++) {
  18289. //点赞
  18290. if (d[k].workId == b[j].id) {
  18291. likesCount++;
  18292. likeJson.push(d[k]);
  18293. if (d[k].likesId == this.userid) {
  18294. isLikes = true;
  18295. }
  18296. }
  18297. }
  18298. for (var l = 0; l < e.length; l++) {
  18299. //评论
  18300. if (e[l].workId == b[j].id) {
  18301. if (e[l].comment != "") {
  18302. commentCount++;
  18303. commentJson.push({
  18304. commentText: e[l].comment,
  18305. commentTime: e[l].commentTime,
  18306. commentPeople: e[l].commentPeople,
  18307. userid: e[l].userid,
  18308. wid: e[l].id
  18309. });
  18310. }
  18311. }
  18312. }
  18313. if (
  18314. (b[j].type == 1 ||
  18315. b[j].type == 4 ||
  18316. b[j].type == 5 ||
  18317. b[j].type == 6 ||
  18318. b[j].type == 12 ||
  18319. b[j].type == 7) &&
  18320. a[i].tool[0] != 15 &&
  18321. a[i].tool[0] != 4 &&
  18322. a[i].tool[0] != 45 &&
  18323. a[i].tool[0] != 50 &&
  18324. a[i].tool[0] != 32 &&
  18325. a[i].tool[0] != 57 &&
  18326. a[i].tool[0] != 52
  18327. ) {
  18328. if (
  18329. c.indexOf(
  18330. b[j].content
  18331. .split(".")
  18332. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18333. ) != -1 &&
  18334. a[i].tool[0] == 16 &&
  18335. b[j].atool != 50
  18336. ) {
  18337. let _works = {
  18338. userid: b[j].userid,
  18339. ateacher: b[j].ateacher,
  18340. wid: b[j].id,
  18341. works: b[j].content,
  18342. sName: b[j].name,
  18343. type: 1,
  18344. ttype: b[j].ttype,
  18345. time: b[j].time,
  18346. score: b[j].score,
  18347. img: b[j].img,
  18348. likesCount: likesCount,
  18349. commentCount: commentCount,
  18350. isLikes: isLikes,
  18351. commentJson: commentJson,
  18352. likeJson: likeJson
  18353. };
  18354. if (this.isGroup) {
  18355. let isGw = 1;
  18356. for (
  18357. var groupI = 0;
  18358. groupI < this.courseGroup.group.length;
  18359. groupI++
  18360. ) {
  18361. let gid = this.courseGroup.group[groupI].id;
  18362. if (
  18363. this.courseGroupStudentUid[gid].indexOf(
  18364. b[j].userid
  18365. ) != -1
  18366. ) {
  18367. isGw = 2;
  18368. this.courseGroup.group[groupI].works[i].push(_works);
  18369. break;
  18370. }
  18371. }
  18372. if (isGw == 1) {
  18373. _worksStudent[i].push(_works);
  18374. }
  18375. } else {
  18376. _worksStudent[i].push(_works);
  18377. }
  18378. _worksStudent2[i].push(_works);
  18379. this.isWorksS[i].push({
  18380. uid: b[j].userid,
  18381. sName: b[j].name
  18382. });
  18383. } else if (
  18384. y.indexOf(
  18385. b[j].content
  18386. .split(".")
  18387. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18388. ) != -1 &&
  18389. a[i].tool[0] == 16 &&
  18390. b[j].atool != 50
  18391. ) {
  18392. let _works = {
  18393. userid: b[j].userid,
  18394. ateacher: b[j].ateacher,
  18395. wid: b[j].id,
  18396. works: b[j].content,
  18397. sName: b[j].name,
  18398. type: 3,
  18399. ttype: b[j].ttype,
  18400. time: b[j].time,
  18401. score: b[j].score,
  18402. img: b[j].img,
  18403. likesCount: likesCount,
  18404. commentCount: commentCount,
  18405. isLikes: isLikes,
  18406. commentJson: commentJson,
  18407. likeJson: likeJson
  18408. };
  18409. if (this.isGroup) {
  18410. let isGw = 1;
  18411. for (
  18412. var groupI = 0;
  18413. groupI < this.courseGroup.group.length;
  18414. groupI++
  18415. ) {
  18416. let gid = this.courseGroup.group[groupI].id;
  18417. if (
  18418. this.courseGroupStudentUid[gid].indexOf(
  18419. b[j].userid
  18420. ) != -1
  18421. ) {
  18422. isGw = 2;
  18423. this.courseGroup.group[groupI].works[i].push(_works);
  18424. break;
  18425. }
  18426. }
  18427. if (isGw == 1) {
  18428. _worksStudent[i].push(_works);
  18429. }
  18430. } else {
  18431. _worksStudent[i].push(_works);
  18432. }
  18433. _worksStudent2[i].push(_works);
  18434. this.isWorksS[i].push({
  18435. uid: b[j].userid,
  18436. sName: b[j].name
  18437. });
  18438. } else if (b[j].type == 6 && b[j].atool != 50) {
  18439. let _works = {
  18440. userid: b[j].userid,
  18441. ateacher: b[j].ateacher,
  18442. wid: b[j].id,
  18443. works: b[j].content,
  18444. sName: b[j].name,
  18445. type: 4,
  18446. ttype: b[j].ttype,
  18447. time: b[j].time,
  18448. score: b[j].score,
  18449. img: b[j].img,
  18450. likesCount: likesCount,
  18451. commentCount: commentCount,
  18452. isLikes: isLikes,
  18453. commentJson: commentJson,
  18454. likeJson: likeJson
  18455. };
  18456. _worksStudent[i].push(_works);
  18457. _worksStudent2[i].push(_works);
  18458. this.isWorksS[i].push({
  18459. uid: b[j].userid,
  18460. sName: b[j].name
  18461. });
  18462. } else if (b[j].type == 7 && b[j].atool != 50) {
  18463. let _work = {
  18464. userid: b[j].userid,
  18465. ateacher: b[j].ateacher,
  18466. wid: b[j].id,
  18467. works: b[j].content,
  18468. sName: b[j].name,
  18469. type: 5,
  18470. ttype: b[j].ttype,
  18471. time: b[j].time,
  18472. score: b[j].score,
  18473. img: b[j].img,
  18474. likesCount: likesCount,
  18475. commentCount: commentCount,
  18476. isLikes: isLikes,
  18477. commentJson: commentJson,
  18478. likeJson: likeJson
  18479. };
  18480. _worksStudent[i].push(_work);
  18481. _worksStudent2[i].push(_work);
  18482. this.isWorksS[i].push({
  18483. uid: b[j].userid,
  18484. sName: b[j].name
  18485. });
  18486. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18487. let _works = {
  18488. userid: b[j].userid,
  18489. ateacher: b[j].ateacher,
  18490. wid: b[j].id,
  18491. works: b[j].content,
  18492. sName: b[j].name,
  18493. type: 12,
  18494. ttype: b[j].ttype,
  18495. time: b[j].time,
  18496. score: b[j].score,
  18497. img: b[j].img,
  18498. likesCount: likesCount,
  18499. commentCount: commentCount,
  18500. isLikes: isLikes,
  18501. commentJson: commentJson,
  18502. likeJson: likeJson
  18503. };
  18504. if (this.isGroup) {
  18505. let isGw = 1;
  18506. for (
  18507. var groupI = 0;
  18508. groupI < this.courseGroup.group.length;
  18509. groupI++
  18510. ) {
  18511. let gid = this.courseGroup.group[groupI].id;
  18512. if (
  18513. this.courseGroupStudentUid[gid].indexOf(
  18514. b[j].userid
  18515. ) != -1
  18516. ) {
  18517. isGw = 2;
  18518. this.courseGroup.group[groupI].works[i].push(_works);
  18519. break;
  18520. }
  18521. }
  18522. if (isGw == 1) {
  18523. _worksStudent[i].push(_works);
  18524. }
  18525. } else {
  18526. _worksStudent[i].push(_works);
  18527. }
  18528. _worksStudent2[i].push(_works);
  18529. this.isWorksS[i].push({
  18530. uid: b[j].userid,
  18531. sName: b[j].name
  18532. });
  18533. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18534. let _works = {
  18535. userid: b[j].userid,
  18536. ateacher: b[j].ateacher,
  18537. wid: b[j].id,
  18538. works: b[j].content,
  18539. sName: b[j].name,
  18540. type: 0,
  18541. ttype: b[j].ttype,
  18542. time: b[j].time,
  18543. score: b[j].score,
  18544. img: b[j].img,
  18545. likesCount: likesCount,
  18546. commentCount: commentCount,
  18547. isLikes: isLikes,
  18548. commentJson: commentJson,
  18549. likeJson: likeJson
  18550. };
  18551. if (this.isGroup) {
  18552. let isGw = 1;
  18553. for (
  18554. var groupI = 0;
  18555. groupI < this.courseGroup.group.length;
  18556. groupI++
  18557. ) {
  18558. let gid = this.courseGroup.group[groupI].id;
  18559. if (
  18560. this.courseGroupStudentUid[gid].indexOf(
  18561. b[j].userid
  18562. ) != -1
  18563. ) {
  18564. isGw = 2;
  18565. this.courseGroup.group[groupI].works[i].push(_works);
  18566. break;
  18567. }
  18568. }
  18569. if (isGw == 1) {
  18570. _worksStudent[i].push(_works);
  18571. }
  18572. } else {
  18573. _worksStudent[i].push(_works);
  18574. }
  18575. _worksStudent2[i].push(_works);
  18576. this.isWorksS[i].push({
  18577. uid: b[j].userid,
  18578. sName: b[j].name
  18579. });
  18580. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18581. let _works = {
  18582. userid: b[j].userid,
  18583. ateacher: b[j].ateacher,
  18584. wid: b[j].id,
  18585. works: b[j].content,
  18586. sName: b[j].name,
  18587. type: 0,
  18588. ttype: b[j].ttype,
  18589. time: b[j].time,
  18590. score: b[j].score,
  18591. img: b[j].img,
  18592. likesCount: likesCount,
  18593. commentCount: commentCount,
  18594. isLikes: isLikes,
  18595. commentJson: commentJson,
  18596. likeJson: likeJson
  18597. };
  18598. if (this.isGroup) {
  18599. let isGw = 1;
  18600. for (
  18601. var groupI = 0;
  18602. groupI < this.courseGroup.group.length;
  18603. groupI++
  18604. ) {
  18605. let gid = this.courseGroup.group[groupI].id;
  18606. if (
  18607. this.courseGroupStudentUid[gid].indexOf(
  18608. b[j].userid
  18609. ) != -1
  18610. ) {
  18611. isGw = 2;
  18612. this.courseGroup.group[groupI].works[i].push(_works);
  18613. break;
  18614. }
  18615. }
  18616. if (isGw == 1) {
  18617. _worksStudent[i].push(_works);
  18618. }
  18619. } else {
  18620. _worksStudent[i].push(_works);
  18621. }
  18622. _worksStudent2[i].push(_works);
  18623. this.isWorksS[i].push({
  18624. uid: b[j].userid,
  18625. sName: b[j].name
  18626. });
  18627. }
  18628. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18629. let _works = {
  18630. userid: b[j].userid,
  18631. ateacher: b[j].ateacher,
  18632. wid: b[j].id,
  18633. works: b[j].content,
  18634. sName: b[j].name,
  18635. type: 2,
  18636. ttype: b[j].ttype,
  18637. time: b[j].time,
  18638. score: b[j].score,
  18639. img: b[j].img,
  18640. likesCount: likesCount,
  18641. commentCount: commentCount,
  18642. isLikes: isLikes,
  18643. commentJson: commentJson,
  18644. likeJson: likeJson
  18645. };
  18646. if (this.isGroup) {
  18647. let isGw = 1;
  18648. for (
  18649. var groupI = 0;
  18650. groupI < this.courseGroup.group.length;
  18651. groupI++
  18652. ) {
  18653. let gid = this.courseGroup.group[groupI].id;
  18654. if (
  18655. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  18656. -1
  18657. ) {
  18658. isGw = 2;
  18659. this.courseGroup.group[groupI].works[i].push(_works);
  18660. break;
  18661. }
  18662. }
  18663. if (isGw == 1) {
  18664. _worksStudent[i].push(_works);
  18665. }
  18666. } else {
  18667. _worksStudent[i].push(_works);
  18668. }
  18669. _worksStudent2[i].push(_works);
  18670. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18671. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18672. //问卷
  18673. let _work = {
  18674. userid: b[j].userid,
  18675. ateacher: b[j].ateacher,
  18676. wid: b[j].id,
  18677. works: b[j].content,
  18678. sName: b[j].name,
  18679. type: 2,
  18680. ttype: b[j].ttype,
  18681. time: b[j].time,
  18682. score: b[j].score,
  18683. img: b[j].img,
  18684. likesCount: likesCount,
  18685. commentCount: commentCount,
  18686. isLikes: isLikes,
  18687. commentJson: commentJson,
  18688. likeJson: likeJson
  18689. };
  18690. _worksStudent[i].push(_work);
  18691. _worksStudent2[i].push(_work);
  18692. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18693. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18694. //选择题
  18695. let _work = {
  18696. userid: b[j].userid,
  18697. ateacher: b[j].ateacher,
  18698. wid: b[j].id,
  18699. works: b[j].content,
  18700. sName: b[j].name,
  18701. type: 8,
  18702. ttype: b[j].ttype,
  18703. time: b[j].time,
  18704. score: b[j].score,
  18705. img: b[j].img,
  18706. likesCount: likesCount,
  18707. commentCount: commentCount,
  18708. isLikes: isLikes,
  18709. commentJson: commentJson,
  18710. likeJson: likeJson
  18711. };
  18712. _worksStudent[i].push(_work);
  18713. _worksStudent2[i].push(_work);
  18714. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18715. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  18716. //选择题
  18717. let _work = {
  18718. userid: b[j].userid,
  18719. ateacher: b[j].ateacher,
  18720. wid: b[j].id,
  18721. works: b[j].content,
  18722. sName: b[j].name,
  18723. type: 9,
  18724. ttype: b[j].ttype,
  18725. time: b[j].time,
  18726. score: b[j].score,
  18727. img: b[j].img,
  18728. likesCount: likesCount,
  18729. commentCount: commentCount,
  18730. isLikes: isLikes,
  18731. commentJson: commentJson,
  18732. likeJson: likeJson
  18733. };
  18734. _worksStudent[i].push(_work);
  18735. _worksStudent2[i].push(_work);
  18736. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18737. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  18738. //选择题
  18739. let _work = {
  18740. userid: b[j].userid,
  18741. ateacher: b[j].ateacher,
  18742. wid: b[j].id,
  18743. works: b[j].content,
  18744. sName: b[j].name,
  18745. type: 10,
  18746. ttype: b[j].ttype,
  18747. time: b[j].time,
  18748. score: b[j].score,
  18749. img: b[j].img,
  18750. likesCount: likesCount,
  18751. commentCount: commentCount,
  18752. isLikes: isLikes,
  18753. commentJson: commentJson,
  18754. likeJson: likeJson
  18755. };
  18756. _worksStudent[i].push(_work);
  18757. _worksStudent2[i].push(_work);
  18758. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18759. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18760. //选择题
  18761. let _work = {
  18762. userid: b[j].userid,
  18763. ateacher: b[j].ateacher,
  18764. wid: b[j].id,
  18765. works: b[j].content,
  18766. sName: b[j].name,
  18767. type: 13,
  18768. ttype: b[j].ttype,
  18769. time: b[j].time,
  18770. score: b[j].score,
  18771. img: b[j].img,
  18772. likesCount: likesCount,
  18773. commentCount: commentCount,
  18774. isLikes: isLikes,
  18775. commentJson: commentJson,
  18776. likeJson: likeJson
  18777. };
  18778. _worksStudent[i].push(_work);
  18779. _worksStudent2[i].push(_work);
  18780. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18781. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18782. //选择题
  18783. let _work = {
  18784. userid: b[j].userid,
  18785. ateacher: b[j].ateacher,
  18786. wid: b[j].id,
  18787. works: b[j].content,
  18788. sName: b[j].name,
  18789. type: 16,
  18790. ttype: b[j].ttype,
  18791. time: b[j].time,
  18792. score: b[j].score,
  18793. img: b[j].img,
  18794. likesCount: likesCount,
  18795. commentCount: commentCount,
  18796. isLikes: isLikes,
  18797. commentJson: commentJson,
  18798. aiCode: b[j].aiCode,
  18799. teacherCode: b[j].teacherCode,
  18800. likeJson: likeJson
  18801. };
  18802. _worksStudent[i].push(_work);
  18803. _worksStudent2[i].push(_work);
  18804. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18805. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18806. //选择题
  18807. let _work = {
  18808. userid: b[j].userid,
  18809. ateacher: b[j].ateacher,
  18810. wid: b[j].id,
  18811. works: b[j].content,
  18812. sName: b[j].name,
  18813. type: 17,
  18814. ttype: b[j].ttype,
  18815. time: b[j].time,
  18816. score: b[j].score,
  18817. img: b[j].img,
  18818. likesCount: likesCount,
  18819. commentCount: commentCount,
  18820. isLikes: isLikes,
  18821. commentJson: commentJson,
  18822. likeJson: likeJson
  18823. };
  18824. _worksStudent[i].push(_work);
  18825. _worksStudent2[i].push(_work);
  18826. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18827. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18828. //交互视频
  18829. let _work = {
  18830. userid: b[j].userid,
  18831. ateacher: b[j].ateacher,
  18832. wid: b[j].id,
  18833. works: b[j].content,
  18834. sName: b[j].name,
  18835. type: 14,
  18836. ttype: b[j].ttype,
  18837. time: b[j].time,
  18838. score: b[j].score,
  18839. img: b[j].img,
  18840. likesCount: likesCount,
  18841. commentCount: commentCount,
  18842. isLikes: isLikes,
  18843. commentJson: commentJson,
  18844. likeJson: likeJson
  18845. };
  18846. _worksStudent[i].push(_work);
  18847. _worksStudent2[i].push(_work);
  18848. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18849. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  18850. let _gindex = JSON.parse(b[j].content);
  18851. if (
  18852. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  18853. b[j].userid
  18854. ) != -1
  18855. ) {
  18856. let _work = {
  18857. userid: b[j].userid,
  18858. ateacher: b[j].ateacher,
  18859. wid: b[j].id,
  18860. works: _gindex.url,
  18861. sName: b[j].name,
  18862. type: _gindex.type,
  18863. ttype: b[j].ttype,
  18864. time: b[j].time,
  18865. score: b[j].score,
  18866. img: b[j].img,
  18867. likesCount: likesCount,
  18868. commentCount: commentCount,
  18869. isLikes: isLikes,
  18870. commentJson: commentJson,
  18871. likeJson: likeJson
  18872. };
  18873. _worksStudent[i][_gindex.groupIndex].push(_work);
  18874. _worksStudent2[i][_gindex.groupIndex].push(_work);
  18875. }
  18876. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18877. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  18878. let _work = {
  18879. userid: b[j].userid,
  18880. ateacher: b[j].ateacher,
  18881. wid: b[j].id,
  18882. works: b[j].content,
  18883. sName: b[j].name ? b[j].name : b[j].userid,
  18884. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  18885. ttype: b[j].ttype,
  18886. time: b[j].time,
  18887. score: b[j].score,
  18888. img: b[j].img,
  18889. likesCount: likesCount,
  18890. commentCount: commentCount,
  18891. isLikes: isLikes,
  18892. commentJson: commentJson,
  18893. likeJson: likeJson
  18894. };
  18895. _worksStudent[i].push(_work);
  18896. _worksStudent2[i].push(_work);
  18897. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18898. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  18899. let _work = {
  18900. userid: b[j].userid,
  18901. ateacher: b[j].ateacher,
  18902. wid: b[j].id,
  18903. works: b[j].content,
  18904. sName: b[j].name ? b[j].name : b[j].userid,
  18905. type: 12,
  18906. ttype: b[j].ttype,
  18907. time: b[j].time,
  18908. score: b[j].score,
  18909. img: b[j].img,
  18910. likesCount: likesCount,
  18911. commentCount: commentCount,
  18912. isLikes: isLikes,
  18913. commentJson: commentJson,
  18914. likeJson: likeJson
  18915. };
  18916. _worksStudent[i].push(_work);
  18917. _worksStudent2[i].push(_work);
  18918. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18919. } else if (
  18920. a[i].tool[0] == 57 &&
  18921. b[j].atool == 57 &&
  18922. b[j].type == 12
  18923. ) {
  18924. let _work = {
  18925. userid: b[j].userid,
  18926. ateacher: b[j].ateacher,
  18927. wid: b[j].id,
  18928. works: b[j].content,
  18929. sName: b[j].name ? b[j].name : b[j].userid,
  18930. type: 12,
  18931. ttype: b[j].ttype,
  18932. time: b[j].time,
  18933. score: b[j].score,
  18934. img: b[j].img,
  18935. likesCount: likesCount,
  18936. commentCount: commentCount,
  18937. isLikes: isLikes,
  18938. commentJson: commentJson,
  18939. likeJson: likeJson
  18940. };
  18941. _worksStudent[i].push(_work);
  18942. _worksStudent2[i].push(_work);
  18943. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18944. } else if (
  18945. a[i].tool[0] == 57 &&
  18946. b[j].atool == 57 &&
  18947. b[j].type == 15
  18948. ) {
  18949. let _work = {
  18950. userid: b[j].userid,
  18951. ateacher: b[j].ateacher,
  18952. wid: b[j].id,
  18953. works: b[j].content,
  18954. sName: b[j].name ? b[j].name : b[j].userid,
  18955. type: 15,
  18956. ttype: b[j].ttype,
  18957. time: b[j].time,
  18958. score: b[j].score,
  18959. img: b[j].img,
  18960. likesCount: likesCount,
  18961. commentCount: commentCount,
  18962. isLikes: isLikes,
  18963. commentJson: commentJson,
  18964. likeJson: likeJson
  18965. };
  18966. _worksStudent[i].push(_work);
  18967. _worksStudent2[i].push(_work);
  18968. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  18969. }
  18970. }
  18971. }
  18972. if (_worksStudent[i] && _worksStudent[i].length) {
  18973. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  18974. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  18975. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  18976. var scoreA = parseFloat(jscoreA);
  18977. var scoreB = parseFloat(jscoreB);
  18978. if (scoreA == scoreB) {
  18979. return b.likesCount - a.likesCount;
  18980. }
  18981. return scoreB - scoreA;
  18982. });
  18983. if (this.isGroup) {
  18984. for (
  18985. var groupI = 0;
  18986. groupI < this.courseGroup.group.length;
  18987. groupI++
  18988. ) {
  18989. this.courseGroup.group[groupI].works[
  18990. i
  18991. ] = this.courseGroup.group[groupI].works[i].sort(function(
  18992. a,
  18993. b
  18994. ) {
  18995. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  18996. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  18997. var scoreA = parseFloat(jscoreA);
  18998. var scoreB = parseFloat(jscoreB);
  18999. if (scoreA == scoreB) {
  19000. return b.likesCount - a.likesCount;
  19001. }
  19002. return scoreB - scoreA;
  19003. });
  19004. }
  19005. }
  19006. }
  19007. }
  19008. this.timeWorkList = _worksStudent2;
  19009. for (var i = 0; i < a.length; i++) {
  19010. for (var j = 0; j < b.length; j++) {
  19011. var data = b[j];
  19012. if (i == b[j].tool) {
  19013. if (data.type == 2 || data.type == 8) {
  19014. for (var z = 0; z < this.checkJson[i].length; z++) {
  19015. this.checkJson[i][z].checkPerent = [];
  19016. this.checkJson[i][z].right = Math.round(
  19017. (this.checkJson[i][z].rightPerson.length /
  19018. parseInt(_worksStudent[i].length)) *
  19019. 100
  19020. );
  19021. let aaaa = this.checkJson[i][z];
  19022. for (
  19023. var k = 0;
  19024. k < this.checkJson[i][z].checkCount.length;
  19025. k++
  19026. ) {
  19027. this.checkJson[i][z].checkPerent.push(
  19028. Math.round(
  19029. (this.checkJson[i][z].checkCount[k] /
  19030. parseInt(_worksStudent[i].length)) *
  19031. 100
  19032. )
  19033. );
  19034. }
  19035. }
  19036. } else if (data.type == 9) {
  19037. for (var z = 0; z < this.checkJson[i].length; z++) {
  19038. this.checkJson[i][z].checkPerent = [];
  19039. this.checkJson[i][z].right = Math.round(
  19040. (this.checkJson[i][z].rightPerson.length /
  19041. this.checkJson[i][z].checkPerson.length) *
  19042. 100
  19043. );
  19044. }
  19045. }
  19046. }
  19047. }
  19048. }
  19049. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  19050. this.joinGroup(gindex);
  19051. }
  19052. this.worksStudent = _worksStudent;
  19053. if (
  19054. JSON.stringify(this.worksStudentCopy) !=
  19055. JSON.stringify(this.worksStudent)
  19056. ) {
  19057. console.log("88888999999");
  19058. this.worksStudentCopy = this.worksStudent;
  19059. this.AIloading = [];
  19060. this.loopLoading = [];
  19061. this.worksStudent.forEach((e, index) => {
  19062. this.loopLoading.push({ loading: false });
  19063. this.AIloading.push([]);
  19064. e.forEach(k => {
  19065. this.AIloading[index].push({ loading: false, sco: 0 });
  19066. });
  19067. });
  19068. this.refreshAssembly();
  19069. }
  19070. this.selectWorksStudent();
  19071. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  19072. this.$nextTick(() => {
  19073. setTimeout(() => {
  19074. setTimeout(() => {
  19075. this.panToolHeight("tool-" + ci);
  19076. }, 500);
  19077. }, 0);
  19078. });
  19079. }
  19080. })
  19081. .catch(err => {
  19082. console.error(err);
  19083. });
  19084. },
  19085. pngToWhiteBg(file) {
  19086. const _file = file;
  19087. let read = new FileReader();
  19088. read.readAsDataURL(file); // 文件转base64
  19089. return new Promise((resolve, reject) => {
  19090. read.onload = (e) => {
  19091. let img = new Image();
  19092. img.src = e.target.result;
  19093. img.onload = async () => {
  19094. // 生成canvas
  19095. let canvas = document.createElement("canvas");
  19096. let context = canvas.getContext("2d");
  19097. // 绘制图片到canvas上
  19098. canvas.width = img.width;
  19099. canvas.height = img.height;
  19100. // 在canvas绘制前填充白色背景
  19101. context.fillStyle = "#fff";
  19102. context.fillRect(0, 0, canvas.width, canvas.height);
  19103. context.drawImage(img, 0, 0);
  19104. let base64 = canvas.toDataURL(file["type"], 1);
  19105. let newFile = this.dataUrlToFile(base64, _file);
  19106. resolve(newFile);
  19107. };
  19108. };
  19109. });
  19110. },
  19111. dataUrlToFile(dataurl, file) {
  19112. let arr = dataurl.split(","),
  19113. mime = arr[0].match(/:(.*?);/)[1],
  19114. bstr = atob(arr[1]),
  19115. n = bstr.length,
  19116. u8arr = new Uint8Array(n);
  19117. while (n--) {
  19118. u8arr[n] = bstr.charCodeAt(n);
  19119. }
  19120. // return new Blob([u8arr], { type: mime });
  19121. return new File([new Blob([u8arr], { type: mime })], file.name, {
  19122. type: mime,
  19123. });
  19124. },
  19125. async beforeUpload1(event, type, i) {
  19126. // this.$message.success('进入上传')
  19127. var file = "";
  19128. if (type == 5) {
  19129. file = event;
  19130. } else {
  19131. file = event.target.files[0];
  19132. }
  19133. var credentials = {
  19134. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19135. secretAccessKey: "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",
  19136. }; //秘钥形式的登录上传
  19137. window.AWS.config.update(credentials);
  19138. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19139. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19140. var _this = this;
  19141. _this.progress = 0;
  19142. _this.proVisible = true;
  19143. _this.isFinishSize = 0;
  19144. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  19145. var b = [
  19146. "DOC",
  19147. "DOCX",
  19148. "DOCM",
  19149. "DOTM",
  19150. "DOTX",
  19151. "PPTX",
  19152. "PPSX",
  19153. "PPT",
  19154. "PPS",
  19155. "PPTM",
  19156. "POTM",
  19157. "PPAM",
  19158. "POTX",
  19159. "PPSM",
  19160. ];
  19161. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19162. var photoA = [
  19163. "BMP",
  19164. "GIF",
  19165. "PNG",
  19166. "JPEG",
  19167. "JPEG",
  19168. "JPG",
  19169. "TIF",
  19170. "PCX",
  19171. "TGA",
  19172. "EXIF",
  19173. "FPX",
  19174. "SVG",
  19175. "APNG",
  19176. ];
  19177. // if (
  19178. // b.indexOf(
  19179. // file.name
  19180. // .split(".")
  19181. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19182. // ) != -1
  19183. // ) {
  19184. // if (file.size / 1024 / 1024 > 10) {
  19185. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  19186. // return;
  19187. // }
  19188. // } else if (
  19189. // excelA.indexOf(
  19190. // file.name
  19191. // .split(".")
  19192. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19193. // ) != "-1"
  19194. // ) {
  19195. // if (file.size / 1024 / 1024 > 5) {
  19196. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  19197. // return;
  19198. // }
  19199. // }
  19200. if (
  19201. photoA.indexOf(
  19202. file.name
  19203. .split(".")
  19204. [file.name.split(".").length - 1].toLocaleUpperCase()
  19205. ) != -1 &&
  19206. type != 4
  19207. ) {
  19208. // const blob = await imageConversion.compress(file, 0.8)
  19209. file = await this.pngToWhiteBg(file);
  19210. const blob = await imageConversion.compressAccurately(file, 256);
  19211. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19212. file = new File([blob], file.name, { type: file.type });
  19213. }
  19214. if (file) {
  19215. var params = {
  19216. Key:
  19217. file.name.split(".")[0] +
  19218. new Date().getTime() +
  19219. "." +
  19220. file.name.split(".")[file.name.split(".").length - 1],
  19221. ContentType: file.type,
  19222. Body: file,
  19223. "Access-Control-Allow-Credentials": "*",
  19224. ACL: "public-read",
  19225. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19226. var options = {
  19227. // partSize: 2048 * 1024 * 1024,
  19228. partSize: 1024 * 1024 * 1024,
  19229. queueSize: 2,
  19230. leavePartsOnError: true,
  19231. };
  19232. bucket
  19233. .upload(params, options)
  19234. .on("httpUploadProgress", function (evt) {
  19235. //这里可以写进度条
  19236. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19237. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  19238. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  19239. })
  19240. .send(function (err, data) {
  19241. _this.progress = 100;
  19242. _this.isFinishSize = _this.isAllSize;
  19243. setTimeout(() => {
  19244. _this.proVisible = false;
  19245. }, 1000);
  19246. if (err) {
  19247. var a = _this.$refs.upload1.uploadFiles;
  19248. a.splice(a.length - 1, a.length);
  19249. _this.$message.error("上传失败");
  19250. } else {
  19251. // _this.$message.success('上传成功')
  19252. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19253. var c = [
  19254. "AVI",
  19255. "NAVI",
  19256. "MPEG",
  19257. "ASF",
  19258. "MOV",
  19259. "WMV",
  19260. "3GP",
  19261. "RM",
  19262. "RMVB",
  19263. "FLV",
  19264. "F4V",
  19265. "H.264",
  19266. "H.265",
  19267. "REAL VIDEO",
  19268. "MKV",
  19269. "WebM",
  19270. "HDDVD",
  19271. "MP4",
  19272. "MPG",
  19273. "M4V",
  19274. "MGV",
  19275. "OGV",
  19276. "QTM",
  19277. "STR",
  19278. "AMC",
  19279. "DVX",
  19280. "EVO",
  19281. "DAT",
  19282. "OGG",
  19283. "OGM",
  19284. ];
  19285. if (type == 1) {
  19286. _this.studyJuri[0].cover.push({
  19287. name: file.name,
  19288. url: data.Location,
  19289. uid: file.uid,
  19290. });
  19291. if (
  19292. c.indexOf(
  19293. _this.studyJuri[0].cover[0].url
  19294. .split(".")
  19295. [
  19296. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19297. ].toLocaleUpperCase()
  19298. ) != -1
  19299. ) {
  19300. _this.fileType = 2;
  19301. } else if (
  19302. b.indexOf(
  19303. _this.studyJuri[0].cover[0].url
  19304. .split(".")
  19305. [
  19306. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19307. ].toLocaleUpperCase()
  19308. ) != -1
  19309. ) {
  19310. _this.fileType = 1;
  19311. } else if (
  19312. photoA.indexOf(
  19313. _this.studyJuri[0].cover[0].url
  19314. .split(".")
  19315. [
  19316. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19317. ].toLocaleUpperCase()
  19318. ) != -1
  19319. ) {
  19320. _this.fileType = 0;
  19321. } else {
  19322. _this.fileType = 3;
  19323. }
  19324. _this.imgChange(null, null, type);
  19325. } else if (type == 2) {
  19326. _this.upToolImg = data.Location;
  19327. _this.imgChange(null, null, type);
  19328. _this.addCourseWorks(i);
  19329. } else if (type == 4) {
  19330. _this.addPz("3", data.Location);
  19331. } else if (type == 5) {
  19332. _this.addImgDrawImG(data.Location);
  19333. } else if (type == 6) {
  19334. var _ftype = 1;
  19335. if (
  19336. c.indexOf(
  19337. data.Location.split(".")[
  19338. data.Location.split(".").length - 1
  19339. ].toLocaleUpperCase()
  19340. ) != -1
  19341. ) {
  19342. _ftype = 5;
  19343. } else if (
  19344. b.indexOf(
  19345. data.Location.split(".")[
  19346. data.Location.split(".").length - 1
  19347. ].toLocaleUpperCase()
  19348. ) != -1
  19349. ) {
  19350. _ftype = 4;
  19351. } else {
  19352. _ftype = 1;
  19353. }
  19354. _this.plworkFile.push({
  19355. name: file.name,
  19356. url: data.Location,
  19357. uid: file.uid,
  19358. fileType: _ftype,
  19359. username:
  19360. _this.plworkFile.length > 10
  19361. ? _this.plworkFile.length + 1
  19362. : "0" + (_this.plworkFile.length + 1),
  19363. });
  19364. } else if (type == 7) {
  19365. _this.addCourseWorksGong(i, data.Location, 32);
  19366. } else if (type == 8) {
  19367. _this.addCourseWorksGong(i, data.Location, 57);
  19368. }
  19369. _this.imgChange(null, null, type);
  19370. console.log(data.Location);
  19371. // _this.$message.success('上传成功'+data.Location)
  19372. }
  19373. });
  19374. }
  19375. },
  19376. async beforeUpload3(event, type, i) {
  19377. // this.$message.success('进入上传')
  19378. let file = "";
  19379. let cfindex2 = 0;
  19380. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  19381. file = event.target.files[cfindex];
  19382. var credentials = {
  19383. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19384. secretAccessKey: "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",
  19385. }; //秘钥形式的登录上传
  19386. window.AWS.config.update(credentials);
  19387. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19388. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19389. var _this = this;
  19390. // _this.progress = 0;
  19391. _this.proVisible2 = true;
  19392. var b = [
  19393. "DOC",
  19394. "DOCX",
  19395. "DOCM",
  19396. "DOTM",
  19397. "DOTX",
  19398. "PPTX",
  19399. "PPSX",
  19400. "PPT",
  19401. "PPS",
  19402. "PPTM",
  19403. "POTM",
  19404. "PPAM",
  19405. "POTX",
  19406. "PPSM",
  19407. ];
  19408. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19409. var photoA = [
  19410. "BMP",
  19411. "GIF",
  19412. "PNG",
  19413. "JPEG",
  19414. "JPG",
  19415. "TIF",
  19416. "PCX",
  19417. "TGA",
  19418. "EXIF",
  19419. "FPX",
  19420. "SVG",
  19421. "APNG",
  19422. ];
  19423. if (
  19424. photoA.indexOf(
  19425. file.name
  19426. .split(".")
  19427. [file.name.split(".").length - 1].toLocaleUpperCase()
  19428. ) != -1 &&
  19429. type != 4
  19430. ) {
  19431. // const blob = await imageConversion.compress(file, 0.8)
  19432. file = await this.pngToWhiteBg(file);
  19433. const blob = await imageConversion.compressAccurately(file, 256);
  19434. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19435. file = new File([blob], file.name, { type: file.type });
  19436. }
  19437. if (file) {
  19438. var params = {
  19439. Key:
  19440. file.name.split(".")[0] +
  19441. new Date().getTime() +
  19442. "." +
  19443. file.name.split(".")[file.name.split(".").length - 1],
  19444. ContentType: file.type,
  19445. Body: file,
  19446. "Access-Control-Allow-Credentials": "*",
  19447. ACL: "public-read",
  19448. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19449. var options = {
  19450. // partSize: 2048 * 1024 * 1024,
  19451. partSize: 1024 * 1024 * 1024,
  19452. queueSize: 2,
  19453. leavePartsOnError: true,
  19454. };
  19455. bucket
  19456. .upload(params, options)
  19457. .on("httpUploadProgress", function (evt) {
  19458. //这里可以写进度条
  19459. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19460. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  19461. })
  19462. .send(function (err, data) {
  19463. // _this.progress = 100;
  19464. cfindex2++;
  19465. setTimeout(() => {
  19466. if (
  19467. cfindex2 == event.target.files.length - 1 ||
  19468. cfindex2 > event.target.files.length - 1
  19469. ) {
  19470. _this.proVisible2 = false;
  19471. }
  19472. }, 1000);
  19473. if (err) {
  19474. var a = _this.$refs.upload1.uploadFiles;
  19475. a.splice(a.length - 1, a.length);
  19476. _this.$message.error("上传失败");
  19477. } else {
  19478. // _this.$message.success('上传成功')
  19479. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19480. var c = [
  19481. "AVI",
  19482. "NAVI",
  19483. "MPEG",
  19484. "ASF",
  19485. "MOV",
  19486. "WMV",
  19487. "3GP",
  19488. "RM",
  19489. "RMVB",
  19490. "FLV",
  19491. "F4V",
  19492. "H.264",
  19493. "H.265",
  19494. "REAL VIDEO",
  19495. "MKV",
  19496. "WebM",
  19497. "HDDVD",
  19498. "MP4",
  19499. "MPG",
  19500. "M4V",
  19501. "MGV",
  19502. "OGV",
  19503. "QTM",
  19504. "STR",
  19505. "AMC",
  19506. "DVX",
  19507. "EVO",
  19508. "DAT",
  19509. "OGG",
  19510. "OGM",
  19511. ];
  19512. if (type == 1) {
  19513. _this.studyJuri[0].cover.push({
  19514. name: file.name,
  19515. url: data.Location,
  19516. uid: file.uid,
  19517. });
  19518. if (
  19519. c.indexOf(
  19520. _this.studyJuri[0].cover[0].url
  19521. .split(".")
  19522. [
  19523. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19524. ].toLocaleUpperCase()
  19525. ) != -1
  19526. ) {
  19527. _this.fileType = 2;
  19528. } else if (
  19529. b.indexOf(
  19530. _this.studyJuri[0].cover[0].url
  19531. .split(".")
  19532. [
  19533. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19534. ].toLocaleUpperCase()
  19535. ) != -1
  19536. ) {
  19537. _this.fileType = 1;
  19538. } else {
  19539. _this.fileType = 0;
  19540. }
  19541. _this.imgChange(null, null, type);
  19542. } else if (type == 2) {
  19543. _this.upToolImg = data.Location;
  19544. _this.imgChange(null, null, type);
  19545. _this.addCourseWorks(i);
  19546. } else if (type == 4) {
  19547. _this.addPz("3", data.Location);
  19548. } else if (type == 5) {
  19549. _this.addImgDrawImG(data.Location);
  19550. } else if (type == 6) {
  19551. var _ftype = 1;
  19552. if (
  19553. c.indexOf(
  19554. data.Location.split(".")[
  19555. data.Location.split(".").length - 1
  19556. ].toLocaleUpperCase()
  19557. ) != -1
  19558. ) {
  19559. _ftype = 5;
  19560. } else if (
  19561. b.indexOf(
  19562. data.Location.split(".")[
  19563. data.Location.split(".").length - 1
  19564. ].toLocaleUpperCase()
  19565. ) != -1
  19566. ) {
  19567. _ftype = 4;
  19568. } else {
  19569. _ftype = 1;
  19570. }
  19571. _this.plworkFile.push({
  19572. name: file.name,
  19573. url: data.Location,
  19574. uid: file.uid,
  19575. fileType: _ftype,
  19576. username:
  19577. _this.plworkFile.length + 1 > 9
  19578. ? _this.plworkFile.length + 1
  19579. : "0" + (_this.plworkFile.length + 1),
  19580. });
  19581. }
  19582. _this.imgChange(null, null, type);
  19583. console.log(data.Location);
  19584. // _this.$message.success('上传成功'+data.Location)
  19585. }
  19586. });
  19587. }
  19588. }
  19589. },
  19590. beforeUpload2(event, type) {
  19591. var file = event.target.files[0];
  19592. var credentials = {
  19593. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19594. secretAccessKey: "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",
  19595. }; //秘钥形式的登录上传
  19596. window.AWS.config.update(credentials);
  19597. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19598. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19599. var _this = this;
  19600. _this.progress = 0;
  19601. _this.proVisible = true;
  19602. if (file) {
  19603. var params = {
  19604. Key:
  19605. file.name.split(".")[0] +
  19606. new Date().getTime() +
  19607. "." +
  19608. file.name.split(".")[file.name.split(".").length - 1],
  19609. ContentType: file.type,
  19610. Body: file,
  19611. "Access-Control-Allow-Credentials": "*",
  19612. ACL: "public-read",
  19613. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19614. var options = {
  19615. partSize: 2048 * 1024 * 1024,
  19616. queueSize: 2,
  19617. leavePartsOnError: true,
  19618. };
  19619. bucket
  19620. .upload(params, options)
  19621. .on("httpUploadProgress", function (evt) {
  19622. //这里可以写进度条
  19623. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19624. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  19625. })
  19626. .send(function (err, data) {
  19627. _this.progress = 100;
  19628. setTimeout(() => {
  19629. _this.proVisible = false;
  19630. }, 1000);
  19631. if (err) {
  19632. var a = _this.$refs.upload1.uploadFiles;
  19633. a.splice(a.length - 1, a.length);
  19634. _this.$message.error("上传失败");
  19635. } else {
  19636. if (type == 2) {
  19637. _this.studyJuri[0].upVedio.push({
  19638. name: file.name,
  19639. url: data.Location,
  19640. uid: file.uid,
  19641. });
  19642. _this.imgChange(null, null, type);
  19643. } else if (type == 3) {
  19644. _this.studyJuri[0].upFile.push({
  19645. name: file.name,
  19646. url: data.Location,
  19647. uid: file.uid,
  19648. });
  19649. _this.imgChange(null, null, type);
  19650. }
  19651. console.log(data.Location);
  19652. }
  19653. });
  19654. }
  19655. },
  19656. allScrell() {
  19657. window.parent.postMessage({ allScreen: this.screenType }, "*");
  19658. },
  19659. nextOrpreSteps(t) {
  19660. if (this.IsFollow && this.tType == 2) {
  19661. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  19662. return;
  19663. }
  19664. var b = this.chapInfoList.length - 1;
  19665. if (t == 0) {
  19666. if (this.courseType == 0) {
  19667. if (this.taskCount == 0) {
  19668. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  19669. if (this.IsLookOpen) {
  19670. if (
  19671. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  19672. ) {
  19673. if (
  19674. this.courseDetail.userid != this.userid &&
  19675. (!this.courseDetail.course_teacher ||
  19676. (this.courseDetail.course_teacher &&
  19677. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  19678. ) {
  19679. this.$message.error("任务未解锁");
  19680. } else {
  19681. this.$message.error("上一任务未解锁");
  19682. }
  19683. return;
  19684. }
  19685. }
  19686. this.navList[this.courseType].isOpen = false;
  19687. this.courseType = b;
  19688. this.taskCount =
  19689. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  19690. .length - 1;
  19691. this.navList[this.courseType].isOpen = true;
  19692. } else {
  19693. this.taskCount--;
  19694. }
  19695. } else {
  19696. if (this.taskCount == 0) {
  19697. this.navList[this.courseType].isOpen = false;
  19698. this.courseType--;
  19699. this.taskCount =
  19700. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  19701. .length - 1;
  19702. this.navList[this.courseType].isOpen = true;
  19703. } else {
  19704. this.taskCount--;
  19705. }
  19706. }
  19707. } else {
  19708. if (this.courseType == b) {
  19709. if (
  19710. this.taskCount ==
  19711. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  19712. 1
  19713. ) {
  19714. this.navList[this.courseType].isOpen = false;
  19715. this.courseType = 0;
  19716. this.taskCount = 0;
  19717. this.navList[this.courseType].isOpen = true;
  19718. } else {
  19719. var bbb = parseInt(this.taskCount) + 1;
  19720. if (
  19721. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  19722. .isLook &&
  19723. this.courseDetail.userid != this.userid &&
  19724. (!this.courseDetail.course_teacher ||
  19725. (this.courseDetail.course_teacher &&
  19726. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  19727. this.IsLookOpen
  19728. ) {
  19729. this.$message.error("任务未解锁");
  19730. return;
  19731. }
  19732. this.taskCount++;
  19733. if (this.IsLookOpen) {
  19734. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19735. this.taskCount
  19736. ].isLook = true;
  19737. this.addCourseState(3);
  19738. }
  19739. }
  19740. } else {
  19741. if (
  19742. this.taskCount ==
  19743. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  19744. 1
  19745. ) {
  19746. var bbb = parseInt(this.courseType) + 1;
  19747. if (
  19748. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  19749. this.courseDetail.userid != this.userid &&
  19750. (!this.courseDetail.course_teacher ||
  19751. (this.courseDetail.course_teacher &&
  19752. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  19753. this.IsLookOpen
  19754. ) {
  19755. this.$message.error("任务未解锁");
  19756. return;
  19757. }
  19758. this.navList[this.courseType].isOpen = false;
  19759. this.courseType++;
  19760. this.taskCount = 0;
  19761. this.navList[this.courseType].isOpen = true;
  19762. } else {
  19763. var bbb = parseInt(this.taskCount) + 1;
  19764. if (
  19765. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  19766. .isLook &&
  19767. this.courseDetail.userid != this.userid &&
  19768. (!this.courseDetail.course_teacher ||
  19769. (this.courseDetail.course_teacher &&
  19770. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  19771. this.IsLookOpen
  19772. ) {
  19773. this.$message.error("任务未解锁");
  19774. return;
  19775. }
  19776. this.taskCount++;
  19777. }
  19778. if (this.IsLookOpen) {
  19779. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19780. this.taskCount
  19781. ].isLook = true;
  19782. this.addCourseState(3);
  19783. }
  19784. }
  19785. // if (
  19786. // this.taskCount ==
  19787. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  19788. // ) {
  19789. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  19790. // } else {
  19791. // this.taskCount++;
  19792. // }
  19793. }
  19794. document.scrollingElement.scrollTop = 0;
  19795. this.showType = 7;
  19796. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  19797. // if (this.vedio[this.taskCount].length > 0) {
  19798. // var a =
  19799. // document.getElementsByClassName("box_course")[this.taskCount]
  19800. // .offsetHeight;
  19801. // document.getElementsByClassName("vedioList")[
  19802. // this.taskCount
  19803. // ].style.height = a + "px";
  19804. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  19805. // a - 40 + "px";
  19806. // }
  19807. this.isNoHomeWork = false;
  19808. (this.studyJuri = [
  19809. {
  19810. content: "",
  19811. cover: [],
  19812. upVedio: [],
  19813. upFile: [],
  19814. },
  19815. ]),
  19816. (this.radio = []);
  19817. this.isClickNav = "";
  19818. this.selectPz();
  19819. this.getHomeWork();
  19820. this.getCourseDetail(2);
  19821. this.$forceUpdate();
  19822. },
  19823. openTask(s, n, i) {
  19824. if (this.IsFollow && this.tType == 2) {
  19825. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  19826. return;
  19827. }
  19828. if (this.IsLookOpen) {
  19829. if (
  19830. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  19831. this.courseDetail.userid != this.userid &&
  19832. (!this.courseDetail.course_teacher ||
  19833. (this.courseDetail.course_teacher &&
  19834. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  19835. ) {
  19836. this.$message.error("任务未解锁");
  19837. return;
  19838. }
  19839. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  19840. if (
  19841. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  19842. .isLook
  19843. ) {
  19844. this.$message.error("上一任务未解锁");
  19845. return;
  19846. }
  19847. } else if (s > this.courseType) {
  19848. if (n > 0) {
  19849. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  19850. this.$message.error("上一任务未解锁");
  19851. return;
  19852. }
  19853. } else {
  19854. if (
  19855. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  19856. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  19857. ].isLook
  19858. ) {
  19859. this.$message.error("上一任务未解锁");
  19860. return;
  19861. }
  19862. }
  19863. }
  19864. }
  19865. if (this.navList[s].task[n].isOpen == true) {
  19866. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  19867. return;
  19868. }
  19869. let flag = this.courseType==s;
  19870. this.courseType = s;
  19871. this.navId = i;
  19872. this.taskCount = n;
  19873. this.navList[this.courseType].task[this.taskCount].isOpen =
  19874. !this.navList[this.courseType].task[this.taskCount].isOpen;
  19875. if (this.IsLookOpen) {
  19876. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19877. this.taskCount
  19878. ].isLook = true;
  19879. this.addCourseState(3);
  19880. }
  19881. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  19882. this.isCloseList[ci].isClose = 0;
  19883. this.isCloseList[ci].isCloseBoolean = false;
  19884. this.$nextTick(()=>{
  19885. setTimeout(()=>{
  19886. setTimeout(()=>{
  19887. this.panToolHeight('tool-'+ci);
  19888. }, 0)
  19889. }, 0)
  19890. })
  19891. }
  19892. this.showType = 7;
  19893. this.isNoHomeWork = false;
  19894. (this.studyJuri = [
  19895. {
  19896. content: "",
  19897. cover: [],
  19898. upVedio: [],
  19899. upFile: [],
  19900. },
  19901. ]),
  19902. (this.radio = []);
  19903. document.scrollingElement.scrollTop = 0;
  19904. // setTimeout(() => {
  19905. // let a = document.getElementById(i);
  19906. // if (a.offsetTop - 110 == 0) {
  19907. // window.scrollTo(0, 0);
  19908. // } else {
  19909. // window.scrollTo(0, a.offsetTop);
  19910. // }
  19911. // }, 0);
  19912. for (var z = 0; z < this.navList.length; z++) {
  19913. for (var q = 0; q < this.navList[z].task.length; q++) {
  19914. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  19915. this.navList[z].task[q].tool[w].isTool = false;
  19916. }
  19917. }
  19918. }
  19919. this.selectPz();
  19920. this.getHomeWork();
  19921. this.getCourseDetail(2);
  19922. if(flag){
  19923. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  19924. }else{
  19925. 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>`)
  19926. }
  19927. },
  19928. get(i) {
  19929. if (this.IsFollow && this.tType == 2) {
  19930. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  19931. return;
  19932. }
  19933. // for(var k=0;k<this.navList.length;k++){
  19934. // this.navList[k].isOpen = false;
  19935. // }
  19936. // this.navList[i].isOpen = true;
  19937. this.navList[i].isOpen = !this.navList[i].isOpen;
  19938. if (this.navList[i].isOpen) {
  19939. this.openTask(i, 0, i + "-0");
  19940. }
  19941. },
  19942. addQuestion() {
  19943. this.answerList.push({
  19944. answerTitle: this.answerQ,
  19945. answer: this.questionAnswer,
  19946. });
  19947. let params = [
  19948. {
  19949. uid: this.userid,
  19950. cid: this.id,
  19951. stage: this.courseType,
  19952. task: this.taskCount,
  19953. tool: this.toolindex,
  19954. content: JSON.stringify(this.answerList),
  19955. type: 3,
  19956. },
  19957. ];
  19958. this.ajax
  19959. .post(this.$store.state.api + "addCourseWorks", params)
  19960. .then((res) => {
  19961. this.$message({
  19962. message: "提交成功",
  19963. type: "success",
  19964. });
  19965. this.answerList = [];
  19966. this.answerDialogVisible = false;
  19967. this.selectStudent();
  19968. this.selectSWorks();
  19969. this.selectSLook();
  19970. })
  19971. .catch((err) => {
  19972. this.$message.error("提交失败");
  19973. console.error(err);
  19974. });
  19975. },
  19976. addQuestionTeacher() {
  19977. this.answerList.push({
  19978. answerTitle: this.answerQ,
  19979. answer: this.questionAnswer,
  19980. });
  19981. let params = [
  19982. {
  19983. uid: this.sStudent.userid,
  19984. cid: this.id,
  19985. stage: this.courseType,
  19986. task: this.taskCount,
  19987. tool: this.toolindex,
  19988. content: JSON.stringify(this.answerList),
  19989. type: 3,
  19990. ateacher: this.userid,
  19991. },
  19992. ];
  19993. this.ajax
  19994. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  19995. .then((res) => {
  19996. this.$message({
  19997. message: "提交成功",
  19998. type: "success",
  19999. });
  20000. this.answerList = [];
  20001. this.questionAnswer = "";
  20002. this.answerDialogVisibleTeacher = false;
  20003. this.selectStudent();
  20004. this.selectSWorks();
  20005. this.selectSLook();
  20006. })
  20007. .catch((err) => {
  20008. this.$message.error("提交失败");
  20009. console.error(err);
  20010. });
  20011. },
  20012. refreshCourse() {
  20013. // window.location.reload();
  20014. this.navList = [];
  20015. this.getCourseDetail(1);
  20016. },
  20017. getCourseDetail(type, gindex) {
  20018. let loading;
  20019. if (type != 2) {
  20020. loading = this.$loading.service({
  20021. background: "rgba(255, 255, 255, 0.7)",
  20022. target: document.querySelector(".student_table"),
  20023. });
  20024. }
  20025. this.downLoading = false
  20026. // this.navList[0].isOpen = false;
  20027. // this.navList[this.courseType].isOpen = true;
  20028. // this.courseType = this.courseTypeLine;
  20029. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20030. let params = {
  20031. courseId: this.id,
  20032. };
  20033. this.ajax
  20034. .get(this.$store.state.api + "selectCourseDetail3", params)
  20035. .then((res) => {
  20036. if (type != 2) {
  20037. loading.close();
  20038. if (
  20039. this.courseType >
  20040. JSON.parse(res.data[0][0].chapters).length - 1
  20041. ) {
  20042. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  20043. }
  20044. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20045. .chapterInfo[0].taskJson;
  20046. var b = [
  20047. "AVI",
  20048. "NAVI",
  20049. "MPEG",
  20050. "ASF",
  20051. "MOV",
  20052. "WMV",
  20053. "3GP",
  20054. "RM",
  20055. "RMVB",
  20056. "FLV",
  20057. "F4V",
  20058. "H.264",
  20059. "H.265",
  20060. "REAL VIDEO",
  20061. "MKV",
  20062. "WebM",
  20063. "HDDVD",
  20064. "MP4",
  20065. "MPG",
  20066. "M4V",
  20067. "MGV",
  20068. "OGV",
  20069. "QTM",
  20070. "STR",
  20071. "AMC",
  20072. "DVX",
  20073. "EVO",
  20074. "DAT",
  20075. "OGG",
  20076. "OGM",
  20077. "MP3",
  20078. ];
  20079. let _chapterData = [];
  20080. for (var i = 0; i < a.length; i++) {
  20081. var c = a[i].chapterData;
  20082. this.vedio[i] = [];
  20083. this.textList[i] = [];
  20084. this.lineList[i] = [];
  20085. this.chapToolList[i] = [];
  20086. this.file[i] = [];
  20087. this.fileC[i] = [];
  20088. _chapterData[i] = c.filter((el) => {
  20089. return el.type != 12;
  20090. });
  20091. this.fileC[i] = c.filter((el) => {
  20092. return el.type == 12;
  20093. });
  20094. // else if (c[j].type == 12) {
  20095. // this.fileC[i].push(c[j]);
  20096. // }
  20097. for (var j = 0; j < c.length; j++) {
  20098. if (c[j].type == 7) {
  20099. this.chapToolList[i].push(c[j]);
  20100. } else if (c[j].type == 8 || c[j].type == 14) {
  20101. this.lineList[i].push(c[j]);
  20102. } else if (c[j].type == 6) {
  20103. this.textList[i].push(c[j]);
  20104. } else {
  20105. if (
  20106. b.indexOf(
  20107. c[j].url
  20108. .split(".")
  20109. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20110. ) != -1
  20111. ) {
  20112. this.vedio[i].push(c[j]);
  20113. } else {
  20114. this.file[i].push(c[j]);
  20115. }
  20116. }
  20117. }
  20118. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20119. d.sources[0].src =
  20120. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20121. this.playerO[i] = d;
  20122. }
  20123. this.courseDetail = res.data[0][0];
  20124. this.tcid = this.arrayToArray(
  20125. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20126. this.tcid2 ? this.tcid2.split(",") : []
  20127. ).join(",");
  20128. this.evalua = res.data[0][0].evaId;
  20129. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  20130. this.courseType
  20131. ];
  20132. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20133. if (this.tcid && res.data[1].length) {
  20134. let _inviteA = [];
  20135. for (var ik = 0; ik < res.data[1].length; ik++) {
  20136. _inviteA.push({
  20137. cid: res.data[1][ik].classid,
  20138. ic: res.data[1][ik].code,
  20139. });
  20140. }
  20141. for (var ik = 0; ik < _inviteA.length; ik++) {
  20142. if (
  20143. this.arrayToArray(
  20144. _inviteA[ik].cid.split(","),
  20145. this.tcid.split(",")
  20146. ).length
  20147. ) {
  20148. this.inviteCode = _inviteA[ik].ic;
  20149. break;
  20150. }
  20151. }
  20152. }
  20153. for (var l = 0; l < this.chapInfoList.length; l++) {
  20154. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  20155. for (var m = 0; m < w.length; m++) {
  20156. w[m].id = l + "-" + m;
  20157. }
  20158. }
  20159. let taskCount = 0;
  20160. if (
  20161. _chapterData[taskCount].length &&
  20162. _chapterData[taskCount][0].type == 2
  20163. ) {
  20164. this.showType = 0;
  20165. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  20166. } else {
  20167. if (_chapterData[taskCount].length > 0) {
  20168. let _url = _chapterData[taskCount][0].url;
  20169. if (
  20170. _chapterData[taskCount][0].type == 8 ||
  20171. _chapterData[taskCount][0].type == 14
  20172. ) {
  20173. this.showType = 2;
  20174. if (
  20175. _url.indexOf("https://") == -1 &&
  20176. _url.indexOf("http://") == -1
  20177. ) {
  20178. _url = "https://" + _url;
  20179. }
  20180. this.pptImgUrl1 = _url;
  20181. } else if (_chapterData[taskCount][0].type == 3) {
  20182. if (
  20183. _url
  20184. .split(".")
  20185. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20186. ) {
  20187. this.showType = 3;
  20188. this.pptImgUrl1 = _url;
  20189. } else if (
  20190. this.isAssetTypeAnImage(
  20191. _url
  20192. .split(".")
  20193. [_url.split(".").length - 1].toLocaleLowerCase()
  20194. )
  20195. ) {
  20196. this.showType = 4;
  20197. this.pptImgUrl1 = _url;
  20198. } else {
  20199. this.showType = 2;
  20200. this.pptImgUrl1 =
  20201. "https://view.officeapps.live.com/op/view.aspx?src=" +
  20202. encodeURIComponent(_url);
  20203. }
  20204. } else if (_chapterData[taskCount][0].type == 13) {
  20205. this.showType = 4;
  20206. this.pptImgUrl1 = _url;
  20207. } else if (_chapterData[taskCount][0].type == 6) {
  20208. this.showType = 1;
  20209. this.text = this.textList[taskCount][0];
  20210. }
  20211. }
  20212. }
  20213. this.isClickNav = 0;
  20214. if (
  20215. !_chapterData[taskCount].length ||
  20216. _chapterData[taskCount][0].type == 12
  20217. ) {
  20218. this.isClickNav = "";
  20219. this.showType = "";
  20220. }
  20221. this.vChapterData = _chapterData;
  20222. } else {
  20223. this.showType = 0;
  20224. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20225. .chapterInfo[0].taskJson;
  20226. var b = [
  20227. "AVI",
  20228. "NAVI",
  20229. "MPEG",
  20230. "ASF",
  20231. "MOV",
  20232. "WMV",
  20233. "3GP",
  20234. "RM",
  20235. "RMVB",
  20236. "FLV",
  20237. "F4V",
  20238. "H.264",
  20239. "H.265",
  20240. "REAL VIDEO",
  20241. "MKV",
  20242. "WebM",
  20243. "HDDVD",
  20244. "MP4",
  20245. "MPG",
  20246. "M4V",
  20247. "MGV",
  20248. "OGV",
  20249. "QTM",
  20250. "STR",
  20251. "AMC",
  20252. "DVX",
  20253. "EVO",
  20254. "DAT",
  20255. "OGG",
  20256. "OGM",
  20257. "MP3",
  20258. ];
  20259. let _chapterData = [];
  20260. for (var i = 0; i < a.length; i++) {
  20261. var c = a[i].chapterData;
  20262. this.vedio[i] = [];
  20263. this.textList[i] = [];
  20264. this.lineList[i] = [];
  20265. this.chapToolList[i] = [];
  20266. this.file[i] = [];
  20267. this.fileC[i] = [];
  20268. _chapterData[i] = c.filter((el) => {
  20269. return el.type != 12;
  20270. });
  20271. this.fileC[i] = c.filter((el) => {
  20272. return el.type == 12;
  20273. });
  20274. for (var j = 0; j < c.length; j++) {
  20275. if (c[j].type == 7) {
  20276. this.chapToolList[i].push(c[j]);
  20277. } else if (c[j].type == 8 || c[j].type == 14) {
  20278. this.lineList[i].push(c[j]);
  20279. } else if (c[j].type == 6) {
  20280. this.textList[i].push(c[j]);
  20281. } else {
  20282. if (
  20283. b.indexOf(
  20284. c[j].url
  20285. .split(".")
  20286. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20287. ) != -1
  20288. ) {
  20289. this.vedio[i].push(c[j]);
  20290. } else {
  20291. this.file[i].push(c[j]);
  20292. }
  20293. }
  20294. }
  20295. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20296. d.sources[0].src =
  20297. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20298. this.playerO[i] = d;
  20299. }
  20300. let taskCount = 0;
  20301. if (
  20302. _chapterData[taskCount].length &&
  20303. _chapterData[taskCount][0].type == 2
  20304. ) {
  20305. this.showType = 0;
  20306. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  20307. } else {
  20308. if (_chapterData[taskCount].length > 0) {
  20309. let _url = _chapterData[taskCount][0].url;
  20310. if (
  20311. _chapterData[taskCount][0].type == 8 ||
  20312. _chapterData[taskCount][0].type == 14
  20313. ) {
  20314. this.showType = 2;
  20315. if (
  20316. _url.indexOf("https://") == -1 &&
  20317. _url.indexOf("http://") == -1
  20318. ) {
  20319. _url = "https://" + _url;
  20320. }
  20321. this.pptImgUrl1 = _url;
  20322. } else if (_chapterData[taskCount][0].type == 3) {
  20323. if (
  20324. _url
  20325. .split(".")
  20326. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20327. ) {
  20328. this.showType = 3;
  20329. this.pptImgUrl1 = _url;
  20330. } else if (
  20331. this.isAssetTypeAnImage(
  20332. _url
  20333. .split(".")
  20334. [_url.split(".").length - 1].toLocaleLowerCase()
  20335. )
  20336. ) {
  20337. this.showType = 4;
  20338. this.pptImgUrl1 = _url;
  20339. } else {
  20340. this.showType = 2;
  20341. this.pptImgUrl1 =
  20342. "https://view.officeapps.live.com/op/view.aspx?src=" +
  20343. encodeURIComponent(_url);
  20344. }
  20345. } else if (_chapterData[taskCount][0].type == 13) {
  20346. this.showType = 4;
  20347. this.pptImgUrl1 = _url;
  20348. } else if (_chapterData[taskCount][0].type == 6) {
  20349. this.showType = 1;
  20350. this.text = this.textList[taskCount][0];
  20351. }
  20352. }
  20353. }
  20354. this.isClickNav = 0;
  20355. if (
  20356. !_chapterData[taskCount].length ||
  20357. _chapterData[taskCount][0].type == 12
  20358. ) {
  20359. this.isClickNav = "";
  20360. this.showType = "";
  20361. }
  20362. this.vChapterData = _chapterData;
  20363. this.$forceUpdate();
  20364. }
  20365. if (res.data[0][0].setting) {
  20366. try {
  20367. this.languageSetting =
  20368. JSON.parse(res.data[0][0].setting).languageSetting ||
  20369. JSON.parse(res.data[0][0].setting).languageSetting == 0
  20370. ? JSON.parse(res.data[0][0].setting).languageSetting
  20371. : 0;
  20372. } catch (error) {
  20373. console.error(error);
  20374. }
  20375. }
  20376. // finalMarkList用来判断哪个工具为评分工具
  20377. if (this.courseDetail.state == 6) {
  20378. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  20379. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  20380. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  20381. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  20382. // // 没有的话在选其他工具为评分工具
  20383. // if(adc.length > 0){
  20384. // for (let k = chap.length - 1; k >= 0; k--) {
  20385. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  20386. // this.finalMarkList = k;
  20387. // break;
  20388. // }
  20389. // }
  20390. // }else{
  20391. // for (let k = chap.length - 1; k >= 0; k--) {
  20392. // 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) {
  20393. // this.finalMarkList = k;
  20394. // break;
  20395. // }
  20396. // }
  20397. // }
  20398. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  20399. // 不然会无限循环报错,会很难受
  20400. let aiSNum = 0;
  20401. if (
  20402. chapInfoListCopy[this.taskCount].eList &&
  20403. chapInfoListCopy[this.taskCount].eList.length
  20404. ) {
  20405. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  20406. if (e.isai == 2) {
  20407. aiSNum++;
  20408. }
  20409. });
  20410. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  20411. this.isaiNum = aiSNum;
  20412. } else {
  20413. this.isaiNum = 0;
  20414. }
  20415. // for (
  20416. // let k = 0;
  20417. // k < chapInfoListCopy[this.taskCount].eList.length;
  20418. // k++
  20419. // ) {
  20420. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  20421. // this.againEva(this.taskCount, k);
  20422. // }
  20423. // }
  20424. }
  20425. }
  20426. // else {
  20427. // this.courseDetail = res.data[0][0];
  20428. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20429. // }
  20430. let _this = this;
  20431. if (_this.timer) {
  20432. clearInterval(_this.timer);
  20433. _this.timer = null;
  20434. }
  20435. if (_this.tcid) {
  20436. _this.getCourseGroup(gindex);
  20437. } else {
  20438. _this.selectSWorks(gindex);
  20439. }
  20440. _this.selectStudent();
  20441. _this.selectSLook();
  20442. _this.getPick();
  20443. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  20444. _this.setCTask();
  20445. }
  20446. if (_this.dialogVisibleGroup) {
  20447. _this.groupJson =
  20448. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  20449. _this.taskCount
  20450. ].toolChoose[_this.toolindex].groupJson;
  20451. }
  20452. _this.$nextTick(() => {
  20453. setTimeout(() => {
  20454. _this.checkEva();
  20455. }, 1000);
  20456. });
  20457. _this.timer = setInterval(function () {
  20458. // _this.getCourseDetail(2);
  20459. if (_this.tcid) {
  20460. _this.getCourseGroup(gindex);
  20461. } else {
  20462. _this.selectSWorks(gindex);
  20463. }
  20464. _this.selectStudent();
  20465. _this.selectSLook();
  20466. _this.getPick();
  20467. _this.getSplitScreenData();//获取分屏数据
  20468. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  20469. _this.setCTask();
  20470. }
  20471. if (_this.dialogVisibleGroup) {
  20472. _this.groupJson =
  20473. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  20474. _this.taskCount
  20475. ].toolChoose[_this.toolindex].groupJson;
  20476. }
  20477. if (_this.tType == 4 || _this.ispzType == 4) {
  20478. _this.selectPz();
  20479. }
  20480. }, 5000);
  20481. _this.$nextTick(function () {
  20482. setTimeout(() => {
  20483. // var a =
  20484. // document.getElementsByClassName("box_course")[0].offsetHeight;
  20485. // document.getElementsByClassName("vedioList")[0].style.height =
  20486. // a + "px";
  20487. // document.getElementsByClassName("navBox")[0].style.height =
  20488. // a - 40 + "px";
  20489. // if (_this.vedio[_this.taskCount].length > 0) {
  20490. // _this.vedioTime = [];
  20491. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20492. // _this.vedioTime[i] = document.getElementsByClassName(
  20493. // "vjs-duration-display"
  20494. // )[i].textContent;
  20495. // }
  20496. // }
  20497. }, 1000);
  20498. });
  20499. })
  20500. .catch((err) => {
  20501. loading.close();
  20502. console.error(err);
  20503. });
  20504. },
  20505. getCourseGroup(gindex) {
  20506. let params = {
  20507. cid: this.id,
  20508. classid: this.tcid ? this.tcid : "1",
  20509. };
  20510. this.ajax
  20511. .get(this.$store.state.api + "getCourseGroup", params)
  20512. .then((res) => {
  20513. if (res.data && res.data[0].length) {
  20514. if (!this.isGroup) {
  20515. let courseGroup = JSON.parse(res.data[0][0].group);
  20516. courseGroup.group = courseGroup.group.filter((el) => {
  20517. el.works = [];
  20518. return el;
  20519. });
  20520. if (courseGroup.isopen == 2) {
  20521. this.isGroup = false;
  20522. this.selectSWorks(gindex);
  20523. return;
  20524. }
  20525. this.courseGroup = courseGroup;
  20526. let groupPerson = res.data[1];
  20527. let group = JSON.parse(res.data[0][0].group).group;
  20528. let courseGroupStudent = {};
  20529. let courseGroupStudentUid = {};
  20530. for (var i = 0; i < group.length; i++) {
  20531. courseGroupStudent[group[i].id] = [];
  20532. courseGroupStudentUid[group[i].id] = [];
  20533. for (var j = 0; j < groupPerson.length; j++) {
  20534. if (groupPerson[j].groupCid == group[i].id) {
  20535. courseGroupStudent[group[i].id].push(groupPerson[j]);
  20536. courseGroupStudentUid[group[i].id].push(
  20537. groupPerson[j].userid
  20538. );
  20539. }
  20540. }
  20541. }
  20542. this.courseGroupStudent = courseGroupStudent;
  20543. this.courseGroupStudentUid = courseGroupStudentUid;
  20544. }
  20545. if (this.courseGroup.isopen == 2) {
  20546. this.isGroup = false;
  20547. } else {
  20548. this.isGroup = true;
  20549. }
  20550. this.selectSWorks(gindex);
  20551. } else {
  20552. this.selectSWorks(gindex);
  20553. this.isGroup = false;
  20554. }
  20555. })
  20556. .catch((err) => {
  20557. // this.$message.error("网络不佳");
  20558. console.error(err);
  20559. });
  20560. },
  20561. setOperationTime() {
  20562. let _this = this;
  20563. if (_this.opertimer) {
  20564. clearInterval(_this.opertimer);
  20565. _this.opertimer = null;
  20566. }
  20567. _this.opertimer = setInterval(() => {
  20568. _this.setoTime("600");
  20569. }, 600000);
  20570. },
  20571. setoTime(time) {
  20572. let params = [
  20573. {
  20574. uid: this.userid,
  20575. cid: this.id,
  20576. type: "2",
  20577. time: time,
  20578. },
  20579. ];
  20580. this.ajax
  20581. .post(this.$store.state.api + "addOperationTimeT2", params)
  20582. .then((res) => {})
  20583. .catch((err) => {
  20584. console.error(err);
  20585. });
  20586. },
  20587. addPz(type, content) {
  20588. if (type == "1" && this.pzConText == "") {
  20589. this.$message.error("评论不能为空!");
  20590. return;
  20591. }
  20592. let params = [
  20593. {
  20594. cid: this.id,
  20595. uid: this.userid,
  20596. s: this.courseType,
  20597. t: this.taskCount,
  20598. c: type == "1" ? this.pzConText : content,
  20599. type: type,
  20600. },
  20601. ];
  20602. this.ajax
  20603. .post(this.$store.state.api + "addPz2", params)
  20604. .then((res) => {
  20605. this.$message({
  20606. message: "添加成功",
  20607. type: "success",
  20608. });
  20609. this.pzConText = "";
  20610. this.addPzDialog = false;
  20611. this.selectPz();
  20612. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  20613. })
  20614. .catch((err) => {
  20615. this.$message.error("添加失败");
  20616. console.error(err);
  20617. });
  20618. },
  20619. setReplyIndex(id, i) {
  20620. this.replyIndex = i;
  20621. this.replyPid = id;
  20622. this.replyDialogVisible = true;
  20623. },
  20624. addHf() {
  20625. if (this.reply == "") {
  20626. this.$message.error("回复不能为空!");
  20627. return;
  20628. }
  20629. let params = [
  20630. {
  20631. cid: this.id,
  20632. uid: this.userid,
  20633. s: this.courseType,
  20634. t: this.taskCount,
  20635. type: "1",
  20636. ct: 2,
  20637. pid: this.replyPid,
  20638. c: this.reply,
  20639. },
  20640. ];
  20641. this.ajax
  20642. .post(this.$store.state.api + "addHf", params)
  20643. .then((res) => {
  20644. this.reply = "";
  20645. this.$message({
  20646. message: "回复成功",
  20647. type: "success",
  20648. });
  20649. this.replyDialogVisible = false;
  20650. this.selectPz();
  20651. })
  20652. .catch((err) => {
  20653. this.$message.error("回复失败");
  20654. console.error(err);
  20655. });
  20656. },
  20657. deletePz(id) {
  20658. this.$confirm("确定删除此评论吗?", "提示", {
  20659. confirmButtonText: "确定",
  20660. cancelButtonText: "取消",
  20661. type: "warning",
  20662. })
  20663. .then(() => {
  20664. let params = [
  20665. {
  20666. id: id,
  20667. },
  20668. ];
  20669. this.ajax
  20670. .post(this.$store.state.api + "deletePz", params)
  20671. .then((res) => {
  20672. this.$message({
  20673. message: "删除成功",
  20674. type: "success",
  20675. });
  20676. this.selectPz();
  20677. })
  20678. .catch((err) => {
  20679. this.$message.error("网络异常");
  20680. console.error(err);
  20681. });
  20682. })
  20683. .catch(() => {});
  20684. },
  20685. deleteReply(id) {
  20686. this.$confirm("确定删除此回复吗?", "提示", {
  20687. confirmButtonText: "确定",
  20688. cancelButtonText: "取消",
  20689. type: "warning",
  20690. })
  20691. .then(() => {
  20692. let params = [
  20693. {
  20694. id: id,
  20695. },
  20696. ];
  20697. this.ajax
  20698. .post(this.$store.state.api + "deleteReply", params)
  20699. .then((res) => {
  20700. this.$message({
  20701. message: "删除成功",
  20702. type: "success",
  20703. });
  20704. this.selectPz();
  20705. })
  20706. .catch((err) => {
  20707. this.$message.error("网络异常");
  20708. console.error(err);
  20709. });
  20710. })
  20711. .catch(() => {});
  20712. },
  20713. setPz() {
  20714. if (this.ispzType == 4) {
  20715. this.ispzType = 0;
  20716. this.pzDialog = false;
  20717. return;
  20718. }
  20719. this.ispzType = 4;
  20720. this.pzDialog = true;
  20721. this.selectPz();
  20722. },
  20723. selectPz() {
  20724. let params = {
  20725. cid: this.id,
  20726. s: this.courseType,
  20727. t: this.taskCount,
  20728. type: this.pzStype,
  20729. uid: this.userid,
  20730. };
  20731. this.ajax
  20732. .get(this.$store.state.api + "selectPzListType", params)
  20733. .then((res) => {
  20734. this.pzList = res.data[0];
  20735. var a = res.data[1];
  20736. for (var i = 0; i < a.length; i++) {
  20737. for (var j = 0; j < this.pzList.length; j++) {
  20738. if (!this.pzList[j].hfList) {
  20739. this.pzList[j].hfList = [];
  20740. }
  20741. if (a[i].pid == this.pzList[j].id) {
  20742. this.pzList[j].hfList.push(a[i]);
  20743. }
  20744. }
  20745. }
  20746. })
  20747. .catch((err) => {
  20748. console.error(err);
  20749. });
  20750. },
  20751. // selectHf() {
  20752. // let params = {
  20753. // cid: this.id,
  20754. // s: this.courseType,
  20755. // t: this.taskCount,
  20756. // };
  20757. // this.ajax
  20758. // .get(this.$store.state.api + "selectHfList", params)
  20759. // .then((res) => {
  20760. // var a = res.data[0];
  20761. // for (var i = 0; i < a.length; i++) {
  20762. // for (var j = 0; j < this.pzList.length; j++) {
  20763. // if (!this.pzList[i].hfList) {
  20764. // this.pzList[i].hfList = [];
  20765. // }
  20766. // if (a[i].pid == this.pzList[j].id) {
  20767. // this.pzList[i].hfList.push(a[i]);
  20768. // }
  20769. // }
  20770. // }
  20771. // })
  20772. // .catch((err) => {
  20773. // console.error(err);
  20774. // });
  20775. // },
  20776. updateSLook() {
  20777. let params = {
  20778. sopen: this.sIsOpen == false ? 1 : 2,
  20779. cid: this.id,
  20780. };
  20781. this.ajax
  20782. .get(this.$store.state.api + "updateCourseSLook", params)
  20783. .then((res) => {
  20784. if (this.sIsOpen == true) {
  20785. this.$message({
  20786. message: "权限设置成功",
  20787. type: "success",
  20788. });
  20789. } else {
  20790. this.$message({
  20791. message: "权限关闭成功",
  20792. type: "success",
  20793. });
  20794. }
  20795. })
  20796. .catch((err) => {
  20797. console.error(err);
  20798. });
  20799. },
  20800. updateFollow() {
  20801. let params = [
  20802. {
  20803. sopen: this.IsFollow == false ? 1 : 2,
  20804. cid: this.id,
  20805. },
  20806. ];
  20807. this.ajax
  20808. .post(this.$store.state.api + "updateCourseFollow", params)
  20809. .then((res) => {
  20810. if (this.IsFollow == true) {
  20811. this.$message({
  20812. message: "开启成功",
  20813. type: "success",
  20814. });
  20815. } else {
  20816. this.$message({
  20817. message: "关闭成功",
  20818. type: "success",
  20819. });
  20820. }
  20821. this.setCTask();
  20822. })
  20823. .catch((err) => {
  20824. console.error(err);
  20825. });
  20826. },
  20827. setCTask() {
  20828. let params = [
  20829. {
  20830. sopen: this.courseType + "-" + this.taskCount,
  20831. cid: this.id,
  20832. },
  20833. ];
  20834. this.ajax
  20835. .post(this.$store.state.api + "updateCourseFollowC", params)
  20836. .then((res) => {})
  20837. .catch((err) => {
  20838. console.error(err);
  20839. });
  20840. },
  20841. updateLookOpen() {
  20842. let params = [
  20843. {
  20844. sopen: this.IsLookOpen == false ? 1 : 2,
  20845. cid: this.id,
  20846. },
  20847. ];
  20848. this.ajax
  20849. .post(this.$store.state.api + "updateCourseLookOpen", params)
  20850. .then((res) => {
  20851. if (this.IsLookOpen == true) {
  20852. // if (this.courseType != 0 && this.taskCount != 0) {
  20853. // this.openTask(0, 0, "0-0");
  20854. // }
  20855. this.$message({
  20856. message: "权限设置成功",
  20857. type: "success",
  20858. });
  20859. } else {
  20860. this.$message({
  20861. message: "权限关闭成功",
  20862. type: "success",
  20863. });
  20864. }
  20865. this.getCourseState(2);
  20866. })
  20867. .catch((err) => {
  20868. console.error(err);
  20869. });
  20870. },
  20871. selectSLook() {
  20872. let params = {
  20873. cid: this.id,
  20874. };
  20875. this.ajax
  20876. .get(this.$store.state.api + "selectCourseSLook", params)
  20877. .then((res) => {
  20878. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  20879. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  20880. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  20881. if (!this.IsLookOpen) {
  20882. this.setNavList();
  20883. } else {
  20884. this.getCourseState(1);
  20885. }
  20886. if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
  20887. this.setContent2(false);
  20888. let _followC = res.data[0][0].followC.split("-");
  20889. if (
  20890. this.courseType != _followC[0] ||
  20891. this.taskCount != _followC[1]
  20892. ) {
  20893. this.navList[this.courseType].isOpen = false;
  20894. this.courseType = _followC[0];
  20895. this.navList[this.courseType].isOpen = true;
  20896. this.taskCount = parseInt(_followC[1]);
  20897. this.navId = res.data[0][0].followC;
  20898. document.scrollingElement.scrollTop = 0;
  20899. this.getCourseDetail(2);
  20900. }
  20901. }
  20902. })
  20903. .catch((err) => {
  20904. console.error(err);
  20905. });
  20906. },
  20907. setNavList() {
  20908. if (this.navList.length == 0) {
  20909. this.navList = [];
  20910. var copyList = [];
  20911. for (var l = 0; l < this.chapInfoList.length; l++) {
  20912. var q = this.chapInfoList[l].dyName;
  20913. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  20914. var e;
  20915. copyList.push({
  20916. dyName: q,
  20917. isOpen: l === 0 ? true : false,
  20918. task: [],
  20919. });
  20920. for (var r = 0; r < w.length; r++) {
  20921. e = w[r].task;
  20922. if (this.chapInfoList[l].easy == 1) {
  20923. copyList[l].task.push({
  20924. taskName: q,
  20925. id: l + "-" + r,
  20926. isLook: w[r].isLook,
  20927. isOpen: r === 0 ? true : false,
  20928. tool: [],
  20929. });
  20930. } else {
  20931. copyList[l].task.push({
  20932. taskName: e,
  20933. id: l + "-" + r,
  20934. isLook: w[r].isLook,
  20935. isOpen: r === 0 ? true : false,
  20936. tool: [],
  20937. });
  20938. }
  20939. var t = w[r].toolChoose;
  20940. for (var k = 0; k < t.length; k++) {
  20941. var tool = t[k].tool[0];
  20942. copyList[l].task[r].tool.push({
  20943. tool: tool,
  20944. isTool: false,
  20945. });
  20946. }
  20947. // this.navId = this.navId ? this.navId : l + "-" + r;
  20948. // this.navId = l + "-" + r;
  20949. }
  20950. }
  20951. this.navList = copyList;
  20952. this.navList[0].isOpen = false;
  20953. this.navList[this.courseType].isOpen = true;
  20954. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20955. } else {
  20956. this.setNavList2();
  20957. }
  20958. },
  20959. setNavList2() {
  20960. for (var l = 0; l < this.chapInfoList.length; l++) {
  20961. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  20962. for (var r = 0; r < w.length; r++) {
  20963. this.navList[l].task[r].isLook = w[r].isLook;
  20964. }
  20965. }
  20966. if (
  20967. this.IsLookOpen &&
  20968. !this.navList[this.courseType].task[this.taskCount].isLook
  20969. ) {
  20970. this.openTask(0, 0, "0-0");
  20971. }
  20972. this.$forceUpdate();
  20973. },
  20974. getCourseState(type) {
  20975. let params = {
  20976. cid: this.id,
  20977. };
  20978. this.ajax
  20979. .get(this.$store.state.api + "getCourseState", params)
  20980. .then((res) => {
  20981. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  20982. this.chapInfoList = JSON.parse(res.data[0][0].state);
  20983. this.setNavList();
  20984. this.$forceUpdate();
  20985. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  20986. this.addCourseState(2);
  20987. } else {
  20988. this.addCourseState(1);
  20989. }
  20990. })
  20991. .catch((err) => {
  20992. console.error(err);
  20993. });
  20994. },
  20995. addCourseState(type) {
  20996. let _state = this.chapInfoList;
  20997. // this.courseType this.taskCount
  20998. if (type == 1 || type == 2) {
  20999. for (var i = 0; i < _state.length; i++) {
  21000. let el = _state[i].chapterInfo[0].taskJson;
  21001. for (var j = 0; j < el.length; j++) {
  21002. // if (i == 0 && j == 0) {
  21003. // el[j].isLook = true;
  21004. // } else {
  21005. // el[j].isLook = false;
  21006. // }
  21007. if (
  21008. this.courseType > i ||
  21009. (this.courseType == i && this.taskCount + 1 > j)
  21010. ) {
  21011. el[j].isLook = true;
  21012. } else {
  21013. el[j].isLook = false;
  21014. }
  21015. }
  21016. }
  21017. }
  21018. let params = [
  21019. {
  21020. cid: this.id,
  21021. state: JSON.stringify(_state),
  21022. },
  21023. ];
  21024. this.ajax
  21025. .post(
  21026. this.$store.state.api +
  21027. (type == 1 ? "addCourseState" : "updateCourseSate"),
  21028. params
  21029. )
  21030. .then((res) => {
  21031. if (this.IsLookOpen) {
  21032. this.setNavList();
  21033. }
  21034. if (type == 3 && type == 2) {
  21035. this.getCourseState(1);
  21036. }
  21037. })
  21038. .catch((err) => {
  21039. console.error(err);
  21040. });
  21041. },
  21042. getHomeWork() {
  21043. let params = {
  21044. cid: this.id,
  21045. stage: this.courseType,
  21046. task: this.taskCount,
  21047. uid: this.userid,
  21048. };
  21049. this.ajax
  21050. .get(this.$store.state.api + "selectWork", params)
  21051. .then((res) => {
  21052. if (res.data[0].length > 0) {
  21053. this.studyJuri = JSON.parse(res.data[0][0].content);
  21054. this.isNoHomeWork = true;
  21055. }
  21056. })
  21057. .catch((err) => {
  21058. console.error(err);
  21059. });
  21060. },
  21061. isAssetTypeAnImage(ext) {
  21062. return (
  21063. [
  21064. "png",
  21065. "jpg",
  21066. "jpeg",
  21067. "bmp",
  21068. "gif",
  21069. "webp",
  21070. "psd",
  21071. "svg",
  21072. "tiff",
  21073. ].indexOf(ext) !== -1
  21074. );
  21075. },
  21076. switchVideo(media) {
  21077. this.playerO = {};
  21078. this.playerOptions.poster = "";
  21079. this.playerOptions.sources[0].src = media;
  21080. this.playerO = this.playerOptions;
  21081. },
  21082. onPlayerPlay() {},
  21083. onPlayerTimeupdate(player) {
  21084. let gklog = player.cache_.currentTime; //当前播放的秒数
  21085. let a = player.cache_.duration; //视频的总时长
  21086. let gklog2 = parseInt(gklog);
  21087. // if(gklog2 == '3'){
  21088. // player.pause()
  21089. // setTimeout(()=>{
  21090. // player.currentTime(gklog2+1)
  21091. // player.play()
  21092. // },1000)
  21093. // }
  21094. console.log(" onPlayerTimeupdate!", gklog);
  21095. console.log(" onPlayerTimeupdate!", gklog2);
  21096. },
  21097. lookVedio(u, i) {
  21098. this.isClickNav = "";
  21099. // this.playerOptions.sources[0].src = u;
  21100. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21101. d.sources[0].src = u;
  21102. this.playerO[0] = d;
  21103. this.showType = 0;
  21104. // this.isClickNav = "video" + i;
  21105. this.isClickNav = i;
  21106. this.$forceUpdate();
  21107. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  21108. },
  21109. lookText(i, t) {
  21110. this.isClickNav = "";
  21111. // this.text = this.textList[i][t];
  21112. this.text = this.vChapterData[i][t];
  21113. // this.dialogVisible1 = true;
  21114. this.showType = 1;
  21115. // this.isClickNav = "text" + t;
  21116. this.isClickNav = t;
  21117. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  21118. },
  21119. lookTools(i, t) {
  21120. this.chapTools = this.chapToolList[i][t];
  21121. this.dialogVisible2 = true;
  21122. },
  21123. async openFile(f) {
  21124. this.pptImgUrl = "";
  21125. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  21126. if (
  21127. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  21128. -1
  21129. ) {
  21130. let _uuurl = await this.checkLink(f);
  21131. console.log(_uuurl)
  21132. this.pptImgUrl =
  21133. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  21134. this.showPDF = false;
  21135. this.dialogVisible3 = true;
  21136. } else if (
  21137. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21138. ) {
  21139. this.pptImgUrl = f;
  21140. this.showPDF = true;
  21141. this.dialogVisible3 = true;
  21142. }
  21143. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  21144. },
  21145. openTable(f) {
  21146. this.tableJson = JSON.parse(f.works);
  21147. this.dialogVisibleTable2 = true;
  21148. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  21149. },
  21150. openWord(f) {
  21151. this.tableJson = JSON.parse(f.works);
  21152. this.dialogVisibleTable3 = true;
  21153. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  21154. },
  21155. doUrl(url, i) {
  21156. this.isClickNav = "";
  21157. this.pptImgUrl1 = "";
  21158. this.showType = 2;
  21159. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  21160. url = "https://" + url;
  21161. }
  21162. this.pptImgUrl1 = "";
  21163. setTimeout(() => {
  21164. this.pptImgUrl1 = url;
  21165. }, 500);
  21166. // this.isClickNav = "line" + i;
  21167. this.isClickNav = i;
  21168. this.$forceUpdate();
  21169. },
  21170. checkPhoto(f, i) {
  21171. this.showType = 4;
  21172. this.pptImgUrl1 = f.url;
  21173. this.isClickNav = i;
  21174. this.$forceUpdate();
  21175. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  21176. },
  21177. async downFile(f, i) {
  21178. this.isClickNav = "";
  21179. this.pptImgUrl1 = "";
  21180. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  21181. if (
  21182. a.indexOf(
  21183. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  21184. ) != -1
  21185. ) {
  21186. let _uuurl = await this.checkLink(f.url);
  21187. console.log(_uuurl)
  21188. this.pptImgUrl1 =
  21189. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  21190. // this.dialogVisible3 = true;
  21191. this.showType = 2;
  21192. } else if (
  21193. this.isAssetTypeAnImage(
  21194. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  21195. )
  21196. ) {
  21197. this.showType = 4;
  21198. this.pptImgUrl1 = f.url;
  21199. } else if (
  21200. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  21201. "PDF"
  21202. ) {
  21203. this.pptImgUrl1 = f.url;
  21204. // this.dialogVisible3 = true;
  21205. this.showType = 3;
  21206. } else {
  21207. window.open(this.file[i].url);
  21208. }
  21209. // this.isClickNav = "word" + i;
  21210. this.isClickNav = i;
  21211. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  21212. },
  21213. downFileList(i) {
  21214. window.open(this.noImgList[i].url);
  21215. },
  21216. openAddWork() {
  21217. this.dialogVisible = true;
  21218. },
  21219. addBzWorks() {
  21220. let params = [
  21221. {
  21222. uid: this.userid,
  21223. cid: this.id,
  21224. stage: this.courseType,
  21225. task: this.taskCount,
  21226. tool: this.toolindex,
  21227. content: JSON.stringify(this.eScore),
  21228. type: 6,
  21229. },
  21230. ];
  21231. this.ajax
  21232. .post(this.$store.state.api + "addCourseWorks", params)
  21233. .then((res) => {
  21234. this.$message({
  21235. message: "提交成功",
  21236. type: "success",
  21237. });
  21238. this.eScore = { eBzText: "", eStar: [] };
  21239. this.studentEvalDialogVisible = false;
  21240. this.selectSWorks();
  21241. })
  21242. .catch((err) => {
  21243. this.$message.error("提交失败");
  21244. console.error(err);
  21245. });
  21246. },
  21247. addBzWorksTeacher() {
  21248. let params = [
  21249. {
  21250. uid: this.sStudent.userid,
  21251. cid: this.id,
  21252. stage: this.courseType,
  21253. task: this.taskCount,
  21254. tool: this.toolindex,
  21255. content: JSON.stringify(this.eScore),
  21256. type: 6,
  21257. },
  21258. ];
  21259. this.ajax
  21260. .post(this.$store.state.api + "addCourseWorks", params)
  21261. .then((res) => {
  21262. this.$message({
  21263. message: "提交成功",
  21264. type: "success",
  21265. });
  21266. this.eScore = { eBzText: "", eStar: [] };
  21267. this.studentEvalDialogVisibleTeacher = false;
  21268. this.selectSWorks();
  21269. })
  21270. .catch((err) => {
  21271. this.$message.error("提交失败");
  21272. console.error(err);
  21273. });
  21274. },
  21275. addStudentAsk() {
  21276. if (!this.radio.length) {
  21277. this.$message.error("请选择选项");
  21278. return;
  21279. }
  21280. for (var i = 0; i < this.askJson.askCount; i++) {
  21281. if (
  21282. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21283. (this.radio[i] !== 0 && !this.radio[i])
  21284. ) {
  21285. this.$message.error("请选择选项");
  21286. return;
  21287. }
  21288. }
  21289. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  21290. let params = [
  21291. {
  21292. uid: this.userid,
  21293. cid: this.id,
  21294. stage: this.courseType,
  21295. task: this.taskCount,
  21296. tool: this.toolindex,
  21297. content: JSON.stringify(this.askList),
  21298. type: 2,
  21299. },
  21300. ];
  21301. this.ajax
  21302. .post(this.$store.state.api + "addCourseWorks", params)
  21303. .then((res) => {
  21304. this.$message({
  21305. message: "提交成功",
  21306. type: "success",
  21307. });
  21308. this.askList = [];
  21309. this.dialogVisible5 = false;
  21310. this.selectStudent();
  21311. this.selectSWorks();
  21312. this.selectSLook();
  21313. })
  21314. .catch((err) => {
  21315. this.$message.error("提交失败");
  21316. console.error(err);
  21317. });
  21318. },
  21319. addStudentAskTeacher() {
  21320. if (!this.radio.length) {
  21321. this.$message.error("请选择选项");
  21322. return;
  21323. }
  21324. for (var i = 0; i < this.askJson.askCount; i++) {
  21325. if (
  21326. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21327. (this.radio[i] !== 0 && !this.radio[i])
  21328. ) {
  21329. this.$message.error("请选择选项");
  21330. return;
  21331. }
  21332. }
  21333. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  21334. let params = [
  21335. {
  21336. uid: this.sStudent.userid,
  21337. cid: this.id,
  21338. stage: this.courseType,
  21339. task: this.taskCount,
  21340. tool: this.toolindex,
  21341. content: JSON.stringify(this.askList),
  21342. type: 2,
  21343. },
  21344. ];
  21345. this.ajax
  21346. .post(this.$store.state.api + "addCourseWorks", params)
  21347. .then((res) => {
  21348. this.$message({
  21349. message: "提交成功",
  21350. type: "success",
  21351. });
  21352. this.askList = [];
  21353. this.dialogVisible5Teacher = false;
  21354. this.selectStudent();
  21355. this.selectSWorks();
  21356. this.selectSLook();
  21357. })
  21358. .catch((err) => {
  21359. this.$message.error("提交失败");
  21360. console.error(err);
  21361. });
  21362. },
  21363. addStudentTest() {
  21364. if (!this.radio.length) {
  21365. this.$message.error("请选择选项");
  21366. return;
  21367. }
  21368. for (var i = 0; i < this.testJson.testCount; i++) {
  21369. if (
  21370. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21371. (this.radio[i] !== 0 && !this.radio[i])
  21372. ) {
  21373. this.$message.error("请选择选项");
  21374. return;
  21375. }
  21376. }
  21377. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  21378. let params = [
  21379. {
  21380. uid: this.userid,
  21381. cid: this.id,
  21382. stage: this.courseType,
  21383. task: this.taskCount,
  21384. tool: this.toolindex,
  21385. content: JSON.stringify(this.askList),
  21386. type: 8,
  21387. },
  21388. ];
  21389. this.ajax
  21390. .post(this.$store.state.api + "addCourseWorks", params)
  21391. .then((res) => {
  21392. this.$message({
  21393. message: "提交成功",
  21394. type: "success",
  21395. });
  21396. this.askList = [];
  21397. this.dialogVisibleChoice = false;
  21398. this.selectStudent();
  21399. this.selectSWorks();
  21400. this.selectSLook();
  21401. })
  21402. .catch((err) => {
  21403. this.$message.error("提交失败");
  21404. console.error(err);
  21405. });
  21406. },
  21407. addStudentTestTeacher() {
  21408. if (!this.radio.length) {
  21409. this.$message.error("请选择选项");
  21410. return;
  21411. }
  21412. for (var i = 0; i < this.testJson.testCount; i++) {
  21413. if (
  21414. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21415. (this.radio[i] !== 0 && !this.radio[i])
  21416. ) {
  21417. this.$message.error("请选择选项");
  21418. return;
  21419. }
  21420. }
  21421. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  21422. let params = [
  21423. {
  21424. uid: this.sStudent.userid,
  21425. cid: this.id,
  21426. stage: this.courseType,
  21427. task: this.taskCount,
  21428. tool: this.toolindex,
  21429. content: JSON.stringify(this.askList),
  21430. type: 8,
  21431. },
  21432. ];
  21433. this.ajax
  21434. .post(this.$store.state.api + "addCourseWorks", params)
  21435. .then((res) => {
  21436. this.$message({
  21437. message: "提交成功",
  21438. type: "success",
  21439. });
  21440. this.askList = [];
  21441. this.dialogVisibleChoiceTeacher = false;
  21442. this.selectStudent();
  21443. this.selectSWorks();
  21444. this.selectSLook();
  21445. })
  21446. .catch((err) => {
  21447. this.$message.error("提交失败");
  21448. console.error(err);
  21449. });
  21450. },
  21451. addWork() {
  21452. if (this.studyJuri[0].content == "") {
  21453. this.$message.error("请将信息填写完整");
  21454. return;
  21455. } else if (this.studyJuri[0].cover.length == 0) {
  21456. this.$message.error("请将信息填写完整");
  21457. return;
  21458. } else if (this.studyJuri[0].upVedio.length == 0) {
  21459. this.$message.error("请将信息填写完整");
  21460. return;
  21461. }
  21462. if (this.isNoHomeWork) {
  21463. this.$confirm(
  21464. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  21465. "提示",
  21466. {
  21467. confirmButtonText: "确定",
  21468. cancelButtonText: "取消",
  21469. type: "warning",
  21470. }
  21471. )
  21472. .then(() => {
  21473. let params = [
  21474. {
  21475. uid: this.userid,
  21476. cid: this.id,
  21477. stage: this.courseType,
  21478. task: this.taskCount,
  21479. content: JSON.stringify(this.studyJuri),
  21480. },
  21481. ];
  21482. this.ajax
  21483. .post(this.$store.state.api + "addWorks", params)
  21484. .then((res) => {
  21485. this.$message({
  21486. message: "提交成功",
  21487. type: "success",
  21488. });
  21489. this.isNoHomeWork = true;
  21490. this.dialogVisible = false;
  21491. })
  21492. .catch((err) => {
  21493. this.$message.error("提交失败");
  21494. console.error(err);
  21495. });
  21496. })
  21497. .catch(() => {});
  21498. } else {
  21499. let params = [
  21500. {
  21501. uid: this.userid,
  21502. cid: this.id,
  21503. stage: this.courseType,
  21504. task: this.taskCount,
  21505. content: JSON.stringify(this.studyJuri),
  21506. },
  21507. ];
  21508. this.ajax
  21509. .post(this.$store.state.api + "addWorks", params)
  21510. .then((res) => {
  21511. this.$message({
  21512. message: "提交成功",
  21513. type: "success",
  21514. });
  21515. this.isNoHomeWork = true;
  21516. this.dialogVisible = false;
  21517. })
  21518. .catch((err) => {
  21519. this.$message.error("提交失败");
  21520. console.error(err);
  21521. });
  21522. }
  21523. },
  21524. selectCount() {
  21525. let params = {
  21526. cid: this.id,
  21527. chid: this.courseType,
  21528. uid: this.userid,
  21529. };
  21530. this.ajax
  21531. .get(this.$store.state.api + "selectToolsCount", params)
  21532. .then((res) => {
  21533. for (var i = 0; i < res.data[0].length; i++) {
  21534. if (res.data[0][i].tools == 1) {
  21535. this.wbCount = res.data[0][i].count;
  21536. } else if (res.data[0][i].tools == 2) {
  21537. this.wordCount = res.data[0][i].count;
  21538. } else if (res.data[0][i].tools == 3) {
  21539. this.mindCount = res.data[0][i].count;
  21540. } else if (res.data[0][i].tools == 4) {
  21541. this.askCount = res.data[0][i].count;
  21542. } else if (res.data[0][i].tools == 6) {
  21543. this.noteCount = res.data[0][i].count;
  21544. } else if (res.data[0][i].tools == 7) {
  21545. this.mindNetWorkCount = res.data[0][i].count;
  21546. } else if (res.data[0][i].tools == 8) {
  21547. this.libraryCount = res.data[0][i].count;
  21548. } else if (res.data[0][i].tools == 16) {
  21549. this.workCount = res.data[0][i].count;
  21550. } else if (res.data[0][i].tools == 10) {
  21551. this.timeCount = res.data[0][i].count;
  21552. } else if (res.data[0][i].tools == 15) {
  21553. this.answerCount = res.data[0][i].count;
  21554. } else if (res.data[0][i].tools == 18) {
  21555. this.trainCount = res.data[0][i].count;
  21556. }
  21557. }
  21558. })
  21559. .catch((err) => {
  21560. console.error(err);
  21561. });
  21562. },
  21563. openTools(t, i, index, c, sName,id) {
  21564. var z = JSON.parse(c);
  21565. this.noteName = sName;
  21566. if (t == 4) {
  21567. this.radio = [];
  21568. this.isAnswer = false;
  21569. let b = z[0].anwer;
  21570. this.radio = b;
  21571. this.askJson = z[0].askJson;
  21572. this.isAnswer = true;
  21573. this.dialogVisible5 = true;
  21574. } else if (t == 45) {
  21575. this.radio = [];
  21576. this.isAnswer = false;
  21577. let b = z[0].anwer;
  21578. this.radio = b;
  21579. this.testJson = z[0].testJson;
  21580. this.isAnswer = true;
  21581. this.dialogVisibleChoice = true;
  21582. }else if(t == 69){
  21583. this.oldEnglishJson1 = {}
  21584. this.oldEnglishJson = {}
  21585. this.englishList1 = {}
  21586. this.newEngIndex = -1;
  21587. this.isNoUserid = false;
  21588. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  21589. .toolChoose[i].englishList;
  21590. this.oldEnglishJson = z;
  21591. this.engWid = id;
  21592. this.newEnglishList = { engTitle:"",engText:"" }
  21593. this.newEnglishList1 = []
  21594. this.selectEngC(id,z);
  21595. }else if(t == 62){
  21596. this.videoType = 1;
  21597. this.videoJson = {};
  21598. this.videoJson = JSON.parse(c);
  21599. // this.videoJson =
  21600. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21601. // index
  21602. // ].toolChoose[i].videoJson;
  21603. this.dialogVisibleVideo = true;
  21604. }
  21605. // else if (t == 15) {
  21606. // this.answerQ = "";
  21607. // this.questionAnswer = "";
  21608. // this.answerQ = z[0].answerTitle;
  21609. // this.questionAnswer = z[0].answer;
  21610. // this.answerDialogVisible = true;
  21611. // }
  21612. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  21613. },
  21614. fastText(p, t) {
  21615. if (t == 1) {
  21616. this.commentText += p;
  21617. } else {
  21618. this.eScore.eBzText += p;
  21619. }
  21620. },
  21621. addTools(t, i, index) {
  21622. var a = 0;
  21623. // this.taskCount = index;
  21624. this.toolindex = i;
  21625. if (t == 1) {
  21626. if (this.wbCount > 0) {
  21627. this.updateCount(this.wbCount, t);
  21628. } else {
  21629. this.wbCount++;
  21630. a = this.wbCount;
  21631. this.toolsCount(a, t);
  21632. }
  21633. window.parent.postMessage(
  21634. {
  21635. tools: "1",
  21636. cid: this.id,
  21637. stage: this.courseType,
  21638. task: this.taskCount,
  21639. tool: i,
  21640. },
  21641. "*"
  21642. );
  21643. } else if (t == 2) {
  21644. if (this.wordCount > 0) {
  21645. this.updateCount(this.wordCount, t);
  21646. } else {
  21647. this.wordCount++;
  21648. a = this.wordCount;
  21649. this.toolsCount(a, t);
  21650. }
  21651. window.parent.postMessage({ tools: "2" }, "*");
  21652. } else if (t == 3) {
  21653. if (this.mindCount > 0) {
  21654. this.updateCount(this.mindCount, t);
  21655. } else {
  21656. this.mindCount++;
  21657. a = this.mindCount;
  21658. this.toolsCount(a, t);
  21659. }
  21660. window.parent.postMessage(
  21661. {
  21662. tools: "3",
  21663. cid: this.id,
  21664. stage: this.courseType,
  21665. task: this.taskCount,
  21666. tool: i,
  21667. },
  21668. "*"
  21669. );
  21670. } else if (t == 4) {
  21671. this.radio = [];
  21672. this.noteName = "";
  21673. this.isAnswer = false;
  21674. if (this.askCount > 0) {
  21675. this.updateCount(this.askCount, t);
  21676. } else {
  21677. this.askCount++;
  21678. a = this.askCount;
  21679. this.toolsCount(a, t);
  21680. }
  21681. if (!this.dialogVisible2) {
  21682. this.askJson.askJson =
  21683. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21684. index
  21685. ].toolChoose[i].askJson;
  21686. this.askJson.askTitle =
  21687. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21688. index
  21689. ].toolChoose[i].askTitle;
  21690. this.askJson.askCount =
  21691. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21692. index
  21693. ].toolChoose[i].askCount;
  21694. } else {
  21695. this.askJson.askJson = this.chapTools.askJson.askJson;
  21696. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  21697. this.askJson.askCount = this.chapTools.askJson.askCount;
  21698. }
  21699. for (var k = 0; k < this.askJson.askJson.length; k++) {
  21700. if (this.askJson.askJson[k].type == "2") {
  21701. this.radio.push([]);
  21702. } else {
  21703. this.radio.push("");
  21704. }
  21705. }
  21706. this.dialogVisible5 = true;
  21707. // window.parent.postMessage({ tools: "4" }, "*");
  21708. } else if (t == 45) {
  21709. this.noteName = "";
  21710. this.radio = [];
  21711. this.isAnswer = false;
  21712. if (this.askCount > 0) {
  21713. this.updateCount(this.askCount, t);
  21714. } else {
  21715. this.askCount++;
  21716. a = this.askCount;
  21717. this.toolsCount(a, t);
  21718. }
  21719. this.testJson =
  21720. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21721. index
  21722. ].toolChoose[i].testJson;
  21723. for (var k = 0; k < this.testJson.testJson.length; k++) {
  21724. if (this.testJson.testJson[k].type == "2") {
  21725. this.radio.push([]);
  21726. } else {
  21727. this.radio.push("");
  21728. }
  21729. }
  21730. this.dialogVisibleChoice = true;
  21731. // window.parent.postMessage({ tools: "4" }, "*");
  21732. } else if (t == 5) {
  21733. if (this.scoreCount > 0) {
  21734. this.updateCount(this.scoreCount, t);
  21735. } else {
  21736. this.scoreCount++;
  21737. a = this.scoreCount;
  21738. this.toolsCount(a, t);
  21739. }
  21740. this.dialogVisible4 = true;
  21741. // window.parent.postMessage({ tools: "5" }, "*");
  21742. } else if (t == 6) {
  21743. if (this.noteCount > 0) {
  21744. this.updateCount(this.noteCount, t);
  21745. } else {
  21746. this.noteCount++;
  21747. a = this.noteCount;
  21748. this.toolsCount(a, t);
  21749. }
  21750. window.parent.postMessage(
  21751. {
  21752. tools: "6",
  21753. cid: this.id,
  21754. stage: this.courseType,
  21755. task: this.taskCount,
  21756. tool: i,
  21757. },
  21758. "*"
  21759. );
  21760. } else if (t == 7) {
  21761. if (this.mindNetWorkCount > 0) {
  21762. this.updateCount(this.mindNetWorkCount, t);
  21763. } else {
  21764. this.mindNetWorkCount++;
  21765. a = this.mindNetWorkCount;
  21766. this.toolsCount(a, t);
  21767. }
  21768. window.parent.postMessage(
  21769. {
  21770. tools: "7",
  21771. cid: this.id,
  21772. stage: this.courseType,
  21773. task: this.taskCount,
  21774. tool: i,
  21775. },
  21776. "*"
  21777. );
  21778. } else if (t == 16) {
  21779. if (this.workCount > 0) {
  21780. this.updateCount(this.workCount, t);
  21781. } else {
  21782. this.workCount++;
  21783. a = this.workCount;
  21784. this.toolsCount(a, t);
  21785. }
  21786. this.dialogVisible = true;
  21787. } else if (t == 50) {
  21788. if (this.tType == 2) {
  21789. this.$message.error("不支持学生使用");
  21790. return;
  21791. }
  21792. this.plworkFile = [];
  21793. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  21794. if (!this.uploadCid) {
  21795. this.$message.error(
  21796. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  21797. );
  21798. return;
  21799. }
  21800. // this.uploadCid =
  21801. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21802. // index
  21803. // ].toolChoose[i].uploadJson[0];
  21804. this.selectUploadStudent(2);
  21805. } else if (t == 8) {
  21806. if (this.libraryCount > 0) {
  21807. this.updateCount(this.libraryCount, t);
  21808. } else {
  21809. this.libraryCount++;
  21810. a = this.libraryCount;
  21811. this.toolsCount(a, t);
  21812. }
  21813. window.parent.postMessage({ tools: "8" }, "*");
  21814. } else if (t == 17) {
  21815. if (this.libraryCount > 0) {
  21816. this.updateCount(this.libraryCount, t);
  21817. } else {
  21818. this.libraryCount++;
  21819. a = this.libraryCount;
  21820. this.toolsCount(a, t);
  21821. }
  21822. window.parent.postMessage({ tools: "17" }, "*");
  21823. } else if (t == 18) {
  21824. if (this.trainCount > 0) {
  21825. this.updateCount(this.trainCount, t);
  21826. } else {
  21827. this.trainCount++;
  21828. a = this.trainCount;
  21829. this.toolsCount(a, t);
  21830. }
  21831. window.parent.postMessage({ tools: "18" }, "*");
  21832. } else if (t == 10) {
  21833. if (this.timeCount > 0) {
  21834. this.updateCount(this.timeCount, t);
  21835. } else {
  21836. this.timeCount++;
  21837. a = this.timeCount;
  21838. this.toolsCount(a, t);
  21839. }
  21840. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  21841. .taskJson[index].toolChoose[i].preTime
  21842. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  21843. .toolChoose[i].preTime
  21844. : "";
  21845. this.timeDialogVisible = true;
  21846. } else if (t == 15) {
  21847. this.answerQ = "";
  21848. this.questionAnswer = "";
  21849. if (this.answerCount > 0) {
  21850. this.updateCount(this.answerCount, t);
  21851. } else {
  21852. this.answerCount++;
  21853. a = this.answerCount;
  21854. this.toolsCount(a, t);
  21855. }
  21856. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  21857. .taskJson[index].toolChoose[i].answerQ
  21858. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  21859. .toolChoose[i].answerQ
  21860. : "";
  21861. this.answerDialogVisible = true;
  21862. } else if (t == 21) {
  21863. window.parent.postMessage({ tools: "21" }, "*");
  21864. } else if (t == 22) {
  21865. window.parent.postMessage({ tools: "22" }, "*");
  21866. } else if (t == 23) {
  21867. window.parent.postMessage({ tools: "23" }, "*");
  21868. } else if (t == 24) {
  21869. window.parent.postMessage({ tools: "24" }, "*");
  21870. } else if (t == 25) {
  21871. window.parent.postMessage({ tools: "25" }, "*");
  21872. } else if (t == 31) {
  21873. window.parent.postMessage({ tools: "31" }, "*");
  21874. } else if (t == 28) {
  21875. window.parent.postMessage({ tools: "28" }, "*");
  21876. } else if (t == 37) {
  21877. window.parent.postMessage({ tools: "37" }, "*");
  21878. } else if (t == 38) {
  21879. window.parent.postMessage({ tools: "38" }, "*");
  21880. } else if (t == 39) {
  21881. window.parent.postMessage({ tools: "39" }, "*");
  21882. } else if (t == 32) {
  21883. window.parent.postMessage({ tools: "32" }, "*");
  21884. } else if (t == 66) {
  21885. window.parent.postMessage({ tools: "66" }, "*");
  21886. } else if (t == 67) {
  21887. window.parent.postMessage({ tools: "67" }, "*");
  21888. } else if (t == 68) {
  21889. window.parent.postMessage({ tools: "68" }, "*");
  21890. } else if (t == 57) {
  21891. // window.parent.postMessage({ tools: "57" }, "*");
  21892. window.parent.postMessage(
  21893. {
  21894. tools: "57u",
  21895. cid: this.id,
  21896. stage: this.courseType,
  21897. task: this.taskCount,
  21898. tool: i,
  21899. },
  21900. "*"
  21901. );
  21902. } else if (t == 58) {
  21903. window.parent.postMessage({ tools: "58" }, "*");
  21904. } else if (t == 59) {
  21905. window.parent.postMessage({ tools: "59" }, "*");
  21906. } else if (t == 60) {
  21907. window.parent.postMessage({ tools: "60" }, "*");
  21908. } else if (t == 61) {
  21909. window.parent.postMessage({ tools: "61" }, "*");
  21910. } else if (t == 63) {
  21911. window.parent.postMessage({ tools: "63" }, "*");
  21912. } else if (t == 71) {
  21913. if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  21914. this.$message.error("该工具不可使用");
  21915. return
  21916. }
  21917. window.parent.postMessage({ tools: "71" }, "*");
  21918. } else if (t == 69) {
  21919. if (this.worksStudent[i].length) {
  21920. for (var k = 0; k < this.worksStudent[i].length; k++) {
  21921. if (this.userid == this.worksStudent[i][k].userid) {
  21922. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  21923. break;
  21924. } else {
  21925. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  21926. }
  21927. }
  21928. } else {
  21929. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  21930. }
  21931. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  21932. .taskJson[index].toolChoose[i].englishList
  21933. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  21934. .toolChoose[i].englishList
  21935. : {};
  21936. this.englishToolIndex = i;
  21937. this.myAnList = this.myAnswerList1;
  21938. this.engDialogVisible = true;
  21939. } else if (t == 70) {
  21940. if (this.worksStudent[i].length) {
  21941. for (var k = 0; k < this.worksStudent[i].length; k++) {
  21942. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  21943. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  21944. break;
  21945. } else {
  21946. this.englishVoiceJsonWork = [];
  21947. }
  21948. }
  21949. } else {
  21950. this.englishVoiceJsonWork = [];
  21951. }
  21952. let englishVoiceJson = {}
  21953. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  21954. .taskJson[index].toolChoose[i].englishVoiceJson
  21955. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  21956. .toolChoose[i].englishVoiceJson
  21957. : {};
  21958. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  21959. this.EnglishVoiceDialog = true;
  21960. } else if (t == 65) {
  21961. if (this.tType == 2) {
  21962. this.$message.error("不支持学生使用");
  21963. return;
  21964. }
  21965. this.uploadCid = this.tcid;
  21966. if (!this.uploadCid) {
  21967. this.$message.error(
  21968. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  21969. );
  21970. return;
  21971. }
  21972. this.selectPickStudent();
  21973. } else if (t == 26) {
  21974. window.parent.postMessage(
  21975. {
  21976. tools: "26",
  21977. cid: this.id,
  21978. stage: this.courseType,
  21979. task: this.taskCount,
  21980. tool: i,
  21981. },
  21982. "*"
  21983. );
  21984. } else if (t == 40) {
  21985. if (this.evalCount > 0) {
  21986. this.updateCount(this.evalCount, t);
  21987. } else {
  21988. this.evalCount++;
  21989. a = this.evalCount;
  21990. this.toolsCount(a, t);
  21991. }
  21992. this.eScore = { eBzText: "", eStar: [] };
  21993. if (this.worksStudent[i].length) {
  21994. for (var k = 0; k < this.worksStudent[i].length; k++) {
  21995. if (this.userid == this.worksStudent[i][k].userid) {
  21996. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  21997. this.rateJson =
  21998. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21999. index
  22000. ].toolChoose[i].rateJson;
  22001. break;
  22002. } else {
  22003. this.rateJson =
  22004. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22005. index
  22006. ].toolChoose[i].rateJson;
  22007. }
  22008. }
  22009. } else {
  22010. this.rateJson =
  22011. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22012. index
  22013. ].toolChoose[i].rateJson;
  22014. }
  22015. this.isStar = false;
  22016. this.studentEvalDialogVisible = true;
  22017. } else if (t == 41) {
  22018. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22019. .taskJson[index].toolChoose[i].selectJson
  22020. ? JSON.parse(
  22021. JSON.stringify(
  22022. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22023. index
  22024. ].toolChoose[i].selectJson
  22025. )
  22026. )
  22027. : { url: "", select: [], answer: [] };
  22028. if (this.worksStudent[i].length) {
  22029. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22030. if (this.userid == this.worksStudent[i][k].userid) {
  22031. var a = this.worksStudent[i][k].works.split(",");
  22032. for (var ki = 0; ki < a.length; ki++) {
  22033. a[ki] = parseInt(a[ki]);
  22034. }
  22035. this.selectAnswer = {
  22036. answer: a,
  22037. stu: this.worksStudent[i][k].sName,
  22038. };
  22039. break;
  22040. } else {
  22041. this.selectAnswer = { answer: [], stu: "" };
  22042. }
  22043. }
  22044. } else {
  22045. this.selectAnswer = { answer: [], stu: "" };
  22046. }
  22047. this.isSelect = false;
  22048. this.dialogVisibleSelect = true;
  22049. } else if (t == 44) {
  22050. window.parent.postMessage({ tools: "44" }, "*");
  22051. } else if (t == 47) {
  22052. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22053. .taskJson[index].toolChoose[i].sentenceList
  22054. ? JSON.parse(
  22055. JSON.stringify(
  22056. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22057. index
  22058. ].toolChoose[i].sentenceList
  22059. )
  22060. )
  22061. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22062. for (var q = 0; q < this.sentenceList.length; q++) {
  22063. this.sentenceList[q].chooseSenList = [];
  22064. this.sentenceList[q].addChangeSen = [];
  22065. this.sentenceList[q].addChangeSen = JSON.parse(
  22066. JSON.stringify(this.sentenceList[q].addSentence)
  22067. );
  22068. this.sentenceList[q].chooseSenList.length =
  22069. this.sentenceList[q].rightAnswer.length;
  22070. }
  22071. this.dialogVisibleSentence = true;
  22072. } else if (t == 48) {
  22073. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22074. .taskJson[index].toolChoose[i].tableJson
  22075. ? JSON.parse(
  22076. JSON.stringify(
  22077. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22078. index
  22079. ].toolChoose[i].tableJson
  22080. )
  22081. )
  22082. : { text: "" };
  22083. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  22084. if (this.worksStudent[i].length) {
  22085. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22086. if (this.userid == this.worksStudent[i][k].userid) {
  22087. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22088. break;
  22089. }
  22090. }
  22091. }
  22092. this.dialogVisibleTable = true;
  22093. } else if (t == 52) {
  22094. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22095. .taskJson[index].toolChoose[i].wordJson
  22096. ? JSON.parse(
  22097. JSON.stringify(
  22098. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22099. index
  22100. ].toolChoose[i].wordJson
  22101. )
  22102. )
  22103. : { text: "" };
  22104. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  22105. if (this.worksStudent[i].length) {
  22106. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22107. if (this.userid == this.worksStudent[i][k].userid) {
  22108. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22109. break;
  22110. }
  22111. }
  22112. }
  22113. this.dialogVisibleWord = true;
  22114. } else if (t == 49) {
  22115. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  22116. return
  22117. }
  22118. this.groupJson =
  22119. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22120. index
  22121. ].toolChoose[i].groupJson;
  22122. this.islock = this.groupJson.islock == 1 ? true : false;
  22123. this.dialogVisibleGroup = true;
  22124. } else if (t == 62) {
  22125. this.videoType = 0;
  22126. this.videoJson = {};
  22127. this.videoJson =
  22128. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22129. index
  22130. ].toolChoose[i].videoJson;
  22131. this.dialogVisibleVideo = true;
  22132. }
  22133. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  22134. },
  22135. teacherWorkSubmit(t, i, index, s) {
  22136. this.sStudent = s;
  22137. this.toolindex = i;
  22138. this.sTool = t;
  22139. if (this.tType !== "1" && this.tType !== "4") {
  22140. return;
  22141. }
  22142. if (t == 16 || t == 32 || t == 50) {
  22143. this.dialogVisibleWorks = true;
  22144. } else if (t == 15) {
  22145. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22146. .taskJson[index].toolChoose[i].answerQ
  22147. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22148. .toolChoose[i].answerQ
  22149. : "";
  22150. this.questionAnswer = "";
  22151. this.answerDialogVisibleTeacher = true; //问答
  22152. } else if (t == 52) {
  22153. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22154. .taskJson[index].toolChoose[i].wordJson
  22155. ? JSON.parse(
  22156. JSON.stringify(
  22157. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22158. index
  22159. ].toolChoose[i].wordJson
  22160. )
  22161. )
  22162. : { text: "" };
  22163. if (this.worksStudent[i].length) {
  22164. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22165. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22166. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22167. break;
  22168. }
  22169. }
  22170. }
  22171. this.dialogVisibleWordTeacher = true; //文档
  22172. } else if (t == 4) {
  22173. this.radio = [];
  22174. this.noteName = "";
  22175. this.isAnswer = false;
  22176. if (this.askCount > 0) {
  22177. this.updateCount(this.askCount, t);
  22178. } else {
  22179. this.askCount++;
  22180. a = this.askCount;
  22181. this.toolsCount(a, t);
  22182. }
  22183. if (!this.dialogVisible2) {
  22184. this.askJson.askJson =
  22185. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22186. index
  22187. ].toolChoose[i].askJson;
  22188. this.askJson.askTitle =
  22189. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22190. index
  22191. ].toolChoose[i].askTitle;
  22192. this.askJson.askCount =
  22193. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22194. index
  22195. ].toolChoose[i].askCount;
  22196. } else {
  22197. this.askJson.askJson = this.chapTools.askJson.askJson;
  22198. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22199. this.askJson.askCount = this.chapTools.askJson.askCount;
  22200. }
  22201. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22202. if (this.askJson.askJson[k].type == "2") {
  22203. this.radio.push([]);
  22204. } else {
  22205. this.radio.push("");
  22206. }
  22207. }
  22208. this.dialogVisible5Teacher = true;
  22209. } else if (t == 45) {
  22210. this.noteName = "";
  22211. this.radio = [];
  22212. this.isAnswer = false;
  22213. if (this.askCount > 0) {
  22214. this.updateCount(this.askCount, t);
  22215. } else {
  22216. this.askCount++;
  22217. a = this.askCount;
  22218. this.toolsCount(a, t);
  22219. }
  22220. this.testJson =
  22221. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22222. index
  22223. ].toolChoose[i].testJson;
  22224. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22225. if (this.testJson.testJson[k].type == "2") {
  22226. this.radio.push([]);
  22227. } else {
  22228. this.radio.push("");
  22229. }
  22230. }
  22231. this.dialogVisibleChoiceTeacher = true;
  22232. } else if (t == 41) {
  22233. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22234. .taskJson[index].toolChoose[i].selectJson
  22235. ? JSON.parse(
  22236. JSON.stringify(
  22237. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22238. index
  22239. ].toolChoose[i].selectJson
  22240. )
  22241. )
  22242. : { url: "", select: [], answer: [] };
  22243. if (this.worksStudent[i].length) {
  22244. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22245. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22246. var a = this.worksStudent[i][k].works.split(",");
  22247. for (var ki = 0; ki < a.length; ki++) {
  22248. a[ki] = parseInt(a[ki]);
  22249. }
  22250. this.selectAnswer = {
  22251. answer: a,
  22252. stu: this.worksStudent[i][k].sName,
  22253. };
  22254. break;
  22255. } else {
  22256. this.selectAnswer = { answer: [], stu: "" };
  22257. }
  22258. }
  22259. } else {
  22260. this.selectAnswer = { answer: [], stu: "" };
  22261. }
  22262. this.isSelect = false;
  22263. this.dialogVisibleSelectTeacher = true;
  22264. } else if (t == 47) {
  22265. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22266. .taskJson[index].toolChoose[i].sentenceList
  22267. ? JSON.parse(
  22268. JSON.stringify(
  22269. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22270. index
  22271. ].toolChoose[i].sentenceList
  22272. )
  22273. )
  22274. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22275. for (var q = 0; q < this.sentenceList.length; q++) {
  22276. this.sentenceList[q].chooseSenList = [];
  22277. this.sentenceList[q].addChangeSen = [];
  22278. this.sentenceList[q].addChangeSen = JSON.parse(
  22279. JSON.stringify(this.sentenceList[q].addSentence)
  22280. );
  22281. this.sentenceList[q].chooseSenList.length =
  22282. this.sentenceList[q].rightAnswer.length;
  22283. }
  22284. this.dialogVisibleSentenceTeacher = true;
  22285. } else if (t == 48) {
  22286. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22287. .taskJson[index].toolChoose[i].tableJson
  22288. ? JSON.parse(
  22289. JSON.stringify(
  22290. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22291. index
  22292. ].toolChoose[i].tableJson
  22293. )
  22294. )
  22295. : { text: "" };
  22296. if (this.worksStudent[i].length) {
  22297. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22298. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22299. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22300. break;
  22301. }
  22302. }
  22303. }
  22304. this.dialogVisibleTableTeacher = true;
  22305. } else if (t == 40) {
  22306. if (this.evalCount > 0) {
  22307. this.updateCount(this.evalCount, t);
  22308. } else {
  22309. this.evalCount++;
  22310. a = this.evalCount;
  22311. this.toolsCount(a, t);
  22312. }
  22313. this.eScore = { eBzText: "", eStar: [] };
  22314. if (this.worksStudent[i].length) {
  22315. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22316. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22317. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  22318. this.rateJson =
  22319. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22320. index
  22321. ].toolChoose[i].rateJson;
  22322. break;
  22323. } else {
  22324. this.rateJson =
  22325. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22326. index
  22327. ].toolChoose[i].rateJson;
  22328. }
  22329. }
  22330. } else {
  22331. this.rateJson =
  22332. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22333. index
  22334. ].toolChoose[i].rateJson;
  22335. }
  22336. this.isStar = false;
  22337. this.studentEvalDialogVisibleTeacher = true;
  22338. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  22339. window.parent.postMessage(
  22340. {
  22341. tools: t + "teacher",
  22342. cid: this.id,
  22343. stage: this.courseType,
  22344. task: this.taskCount,
  22345. tool: i,
  22346. student: this.sStudent,
  22347. },
  22348. "*"
  22349. );
  22350. }
  22351. },
  22352. openCocoPi(tool, i, uid, uname) {
  22353. let student = {
  22354. userid: uid,
  22355. student: uname,
  22356. };
  22357. if (tool == 57) {
  22358. window.parent.postMessage(
  22359. {
  22360. tools: tool + "teacher",
  22361. cid: this.id,
  22362. stage: this.courseType,
  22363. task: this.taskCount,
  22364. tool: i,
  22365. student: student,
  22366. },
  22367. "*"
  22368. );
  22369. }
  22370. },
  22371. setRightAnswer(s, i, j) {
  22372. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  22373. if (
  22374. this.sentenceList[i].chooseSenList[q] == undefined ||
  22375. this.sentenceList[i].chooseSenList[q] == ""
  22376. ) {
  22377. this.sentenceList[i].chooseSenList[q] = s;
  22378. this.sentenceList[i].addChangeSen[j] = "";
  22379. break;
  22380. }
  22381. }
  22382. this.$forceUpdate();
  22383. },
  22384. returnCard(r, i, j) {
  22385. var a = this.sentenceList[i].addSentence.indexOf(r);
  22386. this.sentenceList[i].chooseSenList[j] = "";
  22387. this.sentenceList[i].addChangeSen[a] = r;
  22388. this.$forceUpdate();
  22389. },
  22390. // addSentenceTool() {
  22391. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22392. // this.taskCount
  22393. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  22394. // this.sentenceList = [
  22395. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  22396. // ];
  22397. // this.dialogVisibleSentence = false;
  22398. // },
  22399. toolsCount(a, t) {
  22400. let params = {
  22401. cid: this.id,
  22402. chid: this.courseType,
  22403. uid: this.userid,
  22404. tid: t,
  22405. count: a,
  22406. };
  22407. this.ajax
  22408. .get(this.$store.state.api + "insertToolsCount", params)
  22409. .then((res) => {
  22410. this.selectCount();
  22411. })
  22412. .catch((err) => {
  22413. console.error(err);
  22414. });
  22415. },
  22416. updateCount(c, t) {
  22417. c++;
  22418. let params = {
  22419. cid: this.id,
  22420. chid: this.courseType,
  22421. uid: this.userid,
  22422. tid: t,
  22423. count: c,
  22424. };
  22425. this.ajax
  22426. .get(this.$store.state.api + "updateToolsCount", params)
  22427. .then((res) => {
  22428. this.selectCount();
  22429. })
  22430. .catch((err) => {
  22431. console.error(err);
  22432. });
  22433. },
  22434. checkEva() {
  22435. if (this.evalua != "") {
  22436. for (var i = 0; i < this.evaJuri.length; i++) {
  22437. if (this.evalua == this.evaJuri[i].id) {
  22438. this.eTitle = this.evaJuri[i].title;
  22439. this.eJson = JSON.parse(this.evaJuri[i].content);
  22440. }
  22441. }
  22442. this.$forceUpdate();
  22443. setTimeout(() => {
  22444. this.setMindData();
  22445. }, 0);
  22446. }
  22447. },
  22448. selectEva() {
  22449. let params = {
  22450. oid: this.oid,
  22451. };
  22452. this.ajax
  22453. .get(this.$store.state.api + "selectAllEvaluation", params)
  22454. .then((res) => {
  22455. this.evaJuri = res.data[0];
  22456. })
  22457. .catch((err) => {
  22458. console.error(err);
  22459. });
  22460. },
  22461. setMindData() {
  22462. this.data.data = [];
  22463. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  22464. let _eJson = Object.keys(this.eJson);
  22465. let _e = this.eJson;
  22466. for (let i = 0; i < _eJson.length; i++) {
  22467. let element = _e[_eJson[i]];
  22468. this.data.data.push({
  22469. id: element.id,
  22470. parentid: "root",
  22471. topic: element.name,
  22472. });
  22473. let _eJsonc = Object.keys(element.child);
  22474. let _e2 = element.child;
  22475. for (let j = 0; j < _eJsonc.length; j++) {
  22476. let _ec = _e2[_eJsonc[j]];
  22477. this.data.data.push({
  22478. id: _ec.id,
  22479. parentid: element.id,
  22480. topic: _ec.name,
  22481. });
  22482. let _eJsonz = Object.keys(_ec.child);
  22483. let _e3 = _ec.child;
  22484. for (let z = 0; z < _eJsonz.length; z++) {
  22485. let _ez = _e3[_eJsonz[z]];
  22486. this.data.data.push({
  22487. id: _ez.id,
  22488. parentid: _ec.id,
  22489. topic: _ez.name,
  22490. });
  22491. }
  22492. }
  22493. }
  22494. this.$forceUpdate();
  22495. },
  22496. checkFileFull(type, url) {
  22497. this.fullDialogVisible = true;
  22498. this.fulltype = type;
  22499. this.fullUrl = url;
  22500. },
  22501. async checkFileFull1(t, f) {
  22502. this.fullDialogVisible = true;
  22503. if (t == 6) {
  22504. this.fulltype = 1;
  22505. this.fullUrl = JSON.parse(JSON.stringify(f));
  22506. } else if (t == 8) {
  22507. this.fulltype = 2;
  22508. this.fullUrl = f.url;
  22509. } else if (
  22510. t == 3 &&
  22511. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  22512. "PDF"
  22513. ) {
  22514. this.fulltype = 3;
  22515. this.fullUrl = f.url;
  22516. } else if (t == 3) {
  22517. this.fulltype = 2;
  22518. let _uuurl = await this.checkLink(f.url);
  22519. console.log(_uuurl)
  22520. this.fullUrl =
  22521. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  22522. }
  22523. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  22524. },
  22525. openSname(n, id, i, uid) {
  22526. this.snameWid = id;
  22527. this.worksSName = n;
  22528. this.worksSid = uid == n ? "" : uid;
  22529. this.toolindex = i;
  22530. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  22531. if (!this.uploadCid) {
  22532. this.$message.error(
  22533. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  22534. );
  22535. return;
  22536. }
  22537. this.selectUploadStudent(1);
  22538. },
  22539. updateName() {
  22540. let params = {
  22541. n: this.worksSName,
  22542. cid: this.snameWid,
  22543. };
  22544. this.ajax
  22545. .get(this.$store.state.api + "updateCourseWorksName", params)
  22546. .then((res) => {
  22547. this.$message({
  22548. message: "修改成功",
  22549. type: "success",
  22550. });
  22551. this.dialogVisibleSname = false;
  22552. this.getCourseDetail(2);
  22553. this.snameWid = "";
  22554. this.worksSName = "";
  22555. })
  22556. .catch((err) => {
  22557. console.error(err);
  22558. });
  22559. },
  22560. downloadFile2(f) {
  22561. // const loading = this.$loading.service({
  22562. // background: "rgba(255, 255, 255, 0.7)",
  22563. // target: document.body,
  22564. // text: "文件加载中...",
  22565. // });
  22566. // let url2 = f.url;
  22567. // let _url2 = "";
  22568. // if (
  22569. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  22570. // ) {
  22571. // _url2 = url2.split(
  22572. // "https://view.officeapps.live.com/op/view.aspx?src="
  22573. // )[1];
  22574. // } else {
  22575. // _url2 = url2;
  22576. // }
  22577. // let params = {
  22578. // url: _url2,
  22579. // name: f.name,
  22580. // };
  22581. // this.ajax
  22582. // .get(this.$store.state.api + "download", params)
  22583. // .then((res) => {
  22584. // loading.close();
  22585. // let content = res.data.data.data;
  22586. // let ab = new ArrayBuffer(content.length);
  22587. // let view = new Uint8Array(ab);
  22588. // for (var i = 0; i < content.length; ++i) {
  22589. // view[i] = content[i];
  22590. // }
  22591. // let elink = document.createElement("a");
  22592. // elink.download = f.name;
  22593. // elink.style.display = "none";
  22594. // let blob = new Blob([ab], {
  22595. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  22596. // });
  22597. // elink.href = URL.createObjectURL(blob);
  22598. // document.body.appendChild(elink);
  22599. // elink.click();
  22600. // document.body.removeChild(elink);
  22601. // })
  22602. // .catch((err) => {
  22603. // loading.close();
  22604. // console.error(err);
  22605. // });
  22606. var credentials = {
  22607. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  22608. secretAccessKey: "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",
  22609. }; //秘钥形式的登录上传
  22610. window.AWS.config.update(credentials);
  22611. window.AWS.config.region = "cn-northwest-1"; //设置区域
  22612. let url2 = f.url;
  22613. let _url2 = "";
  22614. if (
  22615. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  22616. ) {
  22617. _url2 = url2.split(
  22618. "https://view.officeapps.live.com/op/view.aspx?src="
  22619. )[1];
  22620. } else {
  22621. _url2 = url2;
  22622. }
  22623. let _this = this;
  22624. _this.downLoading = true
  22625. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  22626. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  22627. var params = {
  22628. Bucket: "ccrb",
  22629. Key: name
  22630. };
  22631. s3.getObject(params, function (err, data) {
  22632. _this.downLoading = false
  22633. if (err) console.log(err, err.stack); // an error occurred
  22634. else {
  22635. let url = window.URL.createObjectURL(new Blob([data.Body]));
  22636. let a = document.createElement("a");
  22637. a.name = f.name;
  22638. a.href = url;
  22639. a.download = f.name;
  22640. a.click();
  22641. console.log(data);
  22642. } // sxuccessful response
  22643. });
  22644. return;
  22645. let url = f.url;
  22646. let _url = "";
  22647. if (
  22648. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  22649. ) {
  22650. _url = url.split(
  22651. "https://view.officeapps.live.com/op/view.aspx?src="
  22652. )[1];
  22653. } else {
  22654. _url = url;
  22655. }
  22656. _this.downLoading = true
  22657. // const loading = _this.$loading.service({
  22658. // background: "rgba(255, 255, 255, 0.7)",
  22659. // target: document.body,
  22660. // text: "文件加载中...",
  22661. // });
  22662. let x = new XMLHttpRequest();
  22663. x.open("GET", _url, true);
  22664. x.responseType = "blob";
  22665. x.onload = function () {
  22666. _this.downLoading = false
  22667. // loading.close();
  22668. let url = window.URL.createObjectURL(new Blob([x.response]));
  22669. let a = document.createElement("a");
  22670. a.name = f.name;
  22671. a.href = url;
  22672. a.download = f.name;
  22673. a.click();
  22674. };
  22675. x.send();
  22676. },
  22677. downloadFile(url) {
  22678. let hz = url.substring(url.lastIndexOf(".") + 1);
  22679. if (hz == "txt" || hz == "md") {
  22680. this.lookTxt(url);
  22681. return;
  22682. }
  22683. var credentials = {
  22684. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  22685. secretAccessKey: "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",
  22686. }; //秘钥形式的登录上传
  22687. window.AWS.config.update(credentials);
  22688. window.AWS.config.region = "cn-northwest-1"; //设置区域
  22689. let url2 = url;
  22690. let _url2 = "";
  22691. if (
  22692. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  22693. ) {
  22694. _url2 = url2.split(
  22695. "https://view.officeapps.live.com/op/view.aspx?src="
  22696. )[1];
  22697. } else {
  22698. _url2 = url2;
  22699. }
  22700. const loading2 = this.$loading.service({
  22701. background: "rgba(255, 255, 255, 0.7)",
  22702. target: document.body,
  22703. text: "文件加载中...",
  22704. });
  22705. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  22706. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  22707. var params = {
  22708. Bucket: "ccrb",
  22709. Key: name
  22710. };
  22711. s3.getObject(params, function (err, data) {
  22712. loading2.close();
  22713. if (err) console.log(err, err.stack); // an error occurred
  22714. else {
  22715. let url = window.URL.createObjectURL(new Blob([data.Body]));
  22716. let a = document.createElement("a");
  22717. a.name = name;
  22718. a.href = url;
  22719. a.download = name;
  22720. a.click();
  22721. console.log(data);
  22722. } // sxuccessful response
  22723. });
  22724. return;
  22725. let _this = this;
  22726. let _url = "";
  22727. if (
  22728. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  22729. ) {
  22730. _url = url.split(
  22731. "https://view.officeapps.live.com/op/view.aspx?src="
  22732. )[1];
  22733. } else {
  22734. _url = url;
  22735. }
  22736. const x = new XMLHttpRequest();
  22737. x.open("GET", _url, true);
  22738. x.responseType = "blob";
  22739. // this.downLoading = true
  22740. const loading = _this.$loading.service({
  22741. background: "rgba(255, 255, 255, 0.7)",
  22742. target: document.body,
  22743. text: "文件加载中...",
  22744. });
  22745. // _this.$message.success("文件下载中...");
  22746. x.onload = function (e) {
  22747. this.downLoading = false
  22748. loading.close();
  22749. let content = x.response;
  22750. let elink = document.createElement("a");
  22751. elink.download = decodeURI(
  22752. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  22753. );
  22754. elink.style.display = "none";
  22755. let blob = new Blob([content]);
  22756. elink.href = URL.createObjectURL(blob);
  22757. document.body.appendChild(elink);
  22758. elink.click();
  22759. document.body.removeChild(elink);
  22760. };
  22761. x.send();
  22762. },
  22763. openLine(url) {
  22764. window.open(url);
  22765. },
  22766. resize() {
  22767. if (document.getElementsByClassName("box_course").length) {
  22768. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  22769. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  22770. if (this.showType == 2 || this.showType == 3) {
  22771. document.getElementsByClassName("navBox")[0].style.height =
  22772. a - 40 + 0+ "px";
  22773. } else {
  22774. document.getElementsByClassName("navBox")[0].style.height =
  22775. a - 40 + "px";
  22776. }
  22777. }
  22778. this.Stbodywidth =
  22779. document.getElementsByClassName("student_body").length &&
  22780. document.getElementsByClassName("student_body")[0].offsetWidth;
  22781. },
  22782. closeDraw() {
  22783. this.bg = null;
  22784. this.drawShow = false;
  22785. },
  22786. showPicturePaint(url) {
  22787. let params = {
  22788. img: url,
  22789. };
  22790. this.ajax
  22791. .get(this.$store.state.api + "imgToBase64", params)
  22792. .then((res) => {
  22793. this.drawShow = true;
  22794. this.bg = res.data[0].img;
  22795. })
  22796. .catch((err) => {
  22797. console.error(err);
  22798. });
  22799. },
  22800. addImgDraw(base64) {
  22801. let file = { name: "批注图.png" };
  22802. let img = this.dataUrlToFile(base64, file);
  22803. this.beforeUpload1(img, 5);
  22804. },
  22805. addImgDrawImG(url) {
  22806. // console.log(url);
  22807. let params = [
  22808. {
  22809. wid: this.commentDetail.wid,
  22810. img: url,
  22811. },
  22812. ];
  22813. this.ajax
  22814. .post(this.$store.state.api + "updateCourseWorks", params)
  22815. .then((res) => {
  22816. this.$message({
  22817. message: "提交成功",
  22818. type: "success",
  22819. });
  22820. this.drawShow = false;
  22821. this.bg = "";
  22822. this.selectSWorks();
  22823. this.selectStudent();
  22824. })
  22825. .catch((err) => {
  22826. this.$message.error("提交失败");
  22827. console.error(err);
  22828. });
  22829. },
  22830. deletePicturePaint() {
  22831. this.$confirm("确定删除此批注吗?", "提示", {
  22832. confirmButtonText: "确定",
  22833. cancelButtonText: "取消",
  22834. type: "warning",
  22835. })
  22836. .then(() => {
  22837. let params = [
  22838. {
  22839. wid: this.commentDetail.wid,
  22840. img: "",
  22841. },
  22842. ];
  22843. this.ajax
  22844. .post(this.$store.state.api + "updateCourseWorks", params)
  22845. .then((res) => {
  22846. this.$message({
  22847. message: "删除成功",
  22848. type: "success",
  22849. });
  22850. this.selectSWorks();
  22851. this.selectStudent();
  22852. })
  22853. .catch((err) => {
  22854. this.$message.error("删除失败");
  22855. console.error(err);
  22856. });
  22857. })
  22858. .catch(() => {});
  22859. },
  22860. getAudioVideo(constraintsData) {
  22861. if (navigator.mediaDevices === undefined) {
  22862. navigator.mediaDevices = {};
  22863. }
  22864. if (navigator.mediaDevices.getUserMedia === undefined) {
  22865. navigator.mediaDevices.getUserMedia = function (constraints) {
  22866. // 首先,如果有getUserMedia的话,就获得它
  22867. var getUserMedia =
  22868. navigator.getUserMedia ||
  22869. navigator.webkitGetUserMedia ||
  22870. navigator.mozGetUserMedia ||
  22871. navigator.msGetUserMedia;
  22872. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  22873. if (!getUserMedia) {
  22874. return Promise.reject({ code: 404 });
  22875. }
  22876. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  22877. return new Promise(function (resolve, reject) {
  22878. getUserMedia.call(navigator, constraints, resolve, reject);
  22879. });
  22880. };
  22881. }
  22882. return navigator.mediaDevices.getUserMedia(constraintsData);
  22883. },
  22884. /**
  22885. * 开始录制
  22886. */
  22887. startRecording(callback) {
  22888. let _function = (screenStream) => {
  22889. this.addStreamStopListener(screenStream, () => {
  22890. console.log("流停止监听");
  22891. this.stopRecording();
  22892. this.$emit("streamStop", {});
  22893. // this.stopRecording();
  22894. });
  22895. var options = {
  22896. type: "video",
  22897. mimeType: "video/webm",
  22898. disableLogs: false,
  22899. getNativeBlob: false, // enable it for longer recordings
  22900. ignoreMutedMedia: false,
  22901. };
  22902. // this.video.srcObject = screenStream;
  22903. this.recorder = RecordRTC(screenStream, options);
  22904. this.recorder.startRecording();
  22905. this.recorder.screen = screenStream;
  22906. this.videoStart = true;
  22907. // callback(true);
  22908. };
  22909. this.getAudioVideo({ audio: true })
  22910. .then((res) => {
  22911. this.captureScreen(_function, true);
  22912. console.log("已点击允许,开启成功");
  22913. })
  22914. .catch((err) => {
  22915. // console.log('浏览器不支持,请更换浏览器')
  22916. // } else {
  22917. this.captureScreen(_function, false);
  22918. console.log("请检查是否存在麦克风");
  22919. });
  22920. },
  22921. /**
  22922. * 停止录制
  22923. */
  22924. stopRecording(callback) {
  22925. this.recorder.stopRecording(() => {
  22926. // this.video.src = this.video.srcObject = null;
  22927. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  22928. const url = URL.createObjectURL(this.recorder.getBlob());
  22929. const a = document.createElement("a"); //this.fileName+
  22930. let videoFile = new File(
  22931. [this.recorder.getBlob()],
  22932. this.courseDetail.title + "录屏.mp4",
  22933. {
  22934. type: "video/mp4",
  22935. }
  22936. );
  22937. let downloadUrl = URL.createObjectURL(videoFile);
  22938. if(this.$refs.classRoomHelperRef){
  22939. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  22940. }
  22941. document.body.appendChild(a);
  22942. a.style.display = "none";
  22943. a.href = url;
  22944. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  22945. a.click();
  22946. this.recorder.screen.stop();
  22947. this.recorder.destroy();
  22948. this.recorder = null;
  22949. this.videoStart = false;
  22950. // callback(false);
  22951. });
  22952. },
  22953. //初始化
  22954. captureScreen(callback, type) {
  22955. if (navigator.getDisplayMedia) {
  22956. //录制结束,文件下载
  22957. navigator
  22958. .getDisplayMedia({
  22959. video: true,
  22960. })
  22961. .then((screenStream) => {
  22962. if (type) {
  22963. navigator.mediaDevices
  22964. .getUserMedia({ audio: true })
  22965. .then((mic) => {
  22966. screenStream.addTrack(mic.getTracks()[0]);
  22967. callback(screenStream);
  22968. });
  22969. } else {
  22970. callback(screenStream);
  22971. }
  22972. })
  22973. .catch(function (error) {
  22974. console.log("error", error);
  22975. });
  22976. } else if (navigator.mediaDevices.getDisplayMedia) {
  22977. navigator.mediaDevices
  22978. .getDisplayMedia({
  22979. video: true,
  22980. })
  22981. .then((screenStream) => {
  22982. if (type) {
  22983. navigator.mediaDevices
  22984. .getUserMedia({ audio: true })
  22985. .then((mic) => {
  22986. screenStream.addTrack(mic.getTracks()[0]);
  22987. callback(screenStream);
  22988. });
  22989. } else {
  22990. callback(screenStream);
  22991. }
  22992. })
  22993. .catch(function (error) {
  22994. console.log("error", error);
  22995. });
  22996. } else {
  22997. var error = "getDisplayMedia API are not supported in this browser.";
  22998. console.log("error", error);
  22999. alert(error);
  23000. }
  23001. },
  23002. //流监听
  23003. addStreamStopListener(stream, callback) {
  23004. stream.addEventListener(
  23005. "ended",
  23006. function () {
  23007. callback();
  23008. callback = function () {};
  23009. },
  23010. false
  23011. );
  23012. stream.addEventListener(
  23013. "inactive",
  23014. function () {
  23015. callback();
  23016. callback = function () {};
  23017. },
  23018. false
  23019. );
  23020. stream.getTracks().forEach(function (track) {
  23021. track.addEventListener(
  23022. "ended",
  23023. function () {
  23024. callback();
  23025. callback = function () {};
  23026. },
  23027. false
  23028. );
  23029. track.addEventListener(
  23030. "inactive",
  23031. function () {
  23032. callback();
  23033. callback = function () {};
  23034. },
  23035. false
  23036. );
  23037. });
  23038. },
  23039. updateGroup() {
  23040. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23041. this.dialogVisibleGroup2 = true;
  23042. },
  23043. numberPan() {
  23044. if (
  23045. /[^\d]/.test(this.groupJson.number) ||
  23046. this.groupJson.number < 2 ||
  23047. this.groupJson.number > 10
  23048. ) {
  23049. this.$message.error("请输入2-10的数字");
  23050. this.groupJson.number = "";
  23051. }
  23052. },
  23053. updateGroupJson() {
  23054. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  23055. if (
  23056. this.groupStudentUid[this.toolindex][i].length >
  23057. this.groupJson2.number
  23058. ) {
  23059. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  23060. return;
  23061. }
  23062. }
  23063. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  23064. this.islock = this.groupJson.islock == 1 ? true : false;
  23065. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23066. this.taskCount
  23067. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  23068. let params = [
  23069. {
  23070. cid: this.id,
  23071. chapters: JSON.stringify(this.chapInfoList),
  23072. uid: this.userid,
  23073. unitIndex: this.courseType,
  23074. },
  23075. ];
  23076. this.ajax
  23077. .post(this.$store.state.api + "updateWorkNew4", params)
  23078. .then((res) => {
  23079. this.$message.success("设置成功");
  23080. this.getCourseDetail(2);
  23081. this.dialogVisibleGroup2 = false;
  23082. this.groupJson2 = {};
  23083. this.$forceUpdate();
  23084. })
  23085. .catch((err) => {
  23086. this.$message.error("网络不佳");
  23087. console.error(err);
  23088. });
  23089. },
  23090. lockChair() {
  23091. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23092. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  23093. this.updateGroupJson();
  23094. },
  23095. selectGroup(index) {
  23096. this.getCourseDetail(2, index);
  23097. },
  23098. joinGroup(index) {
  23099. if (this.groupJson.islock == 2) {
  23100. this.$message.error("位置已被锁定,无法加入");
  23101. return;
  23102. }
  23103. if (
  23104. this.groupStudent[this.toolindex][index].length >
  23105. this.groupJson.number ||
  23106. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  23107. ) {
  23108. this.$message.error("位置已满,无法加入");
  23109. return;
  23110. }
  23111. let params = [
  23112. {
  23113. cid: this.id,
  23114. stage: this.courseType,
  23115. task: this.taskCount,
  23116. tool: this.toolindex,
  23117. g: index,
  23118. uid: this.userid,
  23119. },
  23120. ];
  23121. this.ajax
  23122. .post(this.$store.state.api + "joinGroup", params)
  23123. .then((res) => {
  23124. this.$message.success("加入成功");
  23125. this.getCourseDetail(2);
  23126. })
  23127. .catch((err) => {
  23128. this.$message.error("网络不佳");
  23129. console.error(err);
  23130. });
  23131. },
  23132. exitGroup(id) {
  23133. if (this.groupJson.islock == 2) {
  23134. this.$message.error("位置已被锁定,无法退出");
  23135. return;
  23136. }
  23137. let params = [
  23138. {
  23139. gid: id,
  23140. },
  23141. ];
  23142. this.ajax
  23143. .post(this.$store.state.api + "exitGroup", params)
  23144. .then((res) => {
  23145. this.$message.success("退出成功");
  23146. this.getCourseDetail(2);
  23147. })
  23148. .catch((err) => {
  23149. this.$message.error("网络不佳");
  23150. console.error(err);
  23151. });
  23152. },
  23153. groupUpload(index, task, gindex) {
  23154. this.taskCount = task;
  23155. this.toolindex = index;
  23156. this.groupIndex = gindex;
  23157. this.dialogVisibleGroupWork = true;
  23158. },
  23159. updateGroupChair(user) {
  23160. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  23161. el.label = index;
  23162. return index != user.group;
  23163. });
  23164. this.updateGroupUser = user;
  23165. this.dialogVisibleUpdateGroup = true;
  23166. },
  23167. updateChair() {
  23168. if (
  23169. this.groupStudent[this.toolindex][this.checkChair].length >
  23170. this.groupJson.number ||
  23171. this.groupStudent[this.toolindex][this.checkChair].length ==
  23172. this.groupJson.number
  23173. ) {
  23174. this.$message.error("位置已满,无法加入");
  23175. return;
  23176. }
  23177. let params = [
  23178. {
  23179. cid: this.id,
  23180. stage: this.courseType,
  23181. task: this.taskCount,
  23182. tool: this.toolindex,
  23183. g: this.checkChair,
  23184. uid: this.updateGroupUser.userid,
  23185. },
  23186. ];
  23187. this.ajax
  23188. .post(this.$store.state.api + "joinGroup", params)
  23189. .then((res) => {
  23190. this.$message.success("修改成功");
  23191. this.updateGroupUser = {};
  23192. this.checkChair = "";
  23193. this.updateGroupArray = {};
  23194. this.dialogVisibleUpdateGroup = false;
  23195. this.getCourseDetail(2);
  23196. })
  23197. .catch((err) => {
  23198. this.$message.error("网络不佳");
  23199. console.error(err);
  23200. });
  23201. },
  23202. deleteGroupChair(gindex) {
  23203. this.checkDeleteGroup = [];
  23204. this.deleteGroupUser = JSON.parse(
  23205. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  23206. );
  23207. this.deleteGroupArray = this.groupJson.group[gindex];
  23208. this.groupIndex = gindex;
  23209. this.dialogVisibleDeleteGroup = true;
  23210. },
  23211. async deleteChair() {
  23212. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  23213. const gid =
  23214. this.groupStudent[this.toolindex][this.groupIndex][
  23215. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  23216. this.checkDeleteGroup[i]
  23217. )
  23218. ];
  23219. let params = [
  23220. {
  23221. gid: gid.id,
  23222. },
  23223. ];
  23224. var a = await this.deleteChairA(params);
  23225. if (i == this.checkDeleteGroup.length - 1) {
  23226. this.$message.success("退出成功");
  23227. this.dialogVisibleDeleteGroup = false;
  23228. this.deleteGroupUser = [];
  23229. this.deleteGroupArray = {};
  23230. this.groupIndex = "";
  23231. this.checkDeleteGroup = [];
  23232. this.getCourseDetail(2);
  23233. }
  23234. }
  23235. },
  23236. deleteChairA(params) {
  23237. return new Promise((resolve, reject) => {
  23238. this.ajax
  23239. .post(this.$store.state.api + "exitGroup", params)
  23240. .then((res) => {
  23241. resolve(1);
  23242. })
  23243. .catch((err) => {
  23244. this.$message.error("网络不佳");
  23245. console.error(err);
  23246. });
  23247. });
  23248. },
  23249. contract(i) {
  23250. if (this.isCloseList[i].isClose == 0) {
  23251. this.isCloseList[i].isClose = 1;
  23252. } else {
  23253. this.isCloseList[i].isClose = 0;
  23254. }
  23255. this.$forceUpdate();
  23256. },
  23257. openWordCloud(toolindex) {
  23258. let array = [];
  23259. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  23260. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  23261. array.push({ name: works });
  23262. }
  23263. if (this.isGroup) {
  23264. for (var i = 0; i < this.courseGroup.group.length; i++) {
  23265. let works = this.courseGroup.group[i].works[toolindex];
  23266. for (var j = 0; j < works.length; j++) {
  23267. let answer = JSON.parse(works[j].works)[0].answer;
  23268. array.push({ name: answer });
  23269. }
  23270. }
  23271. }
  23272. console.log('array',array);
  23273. this.wordCloudData = array;
  23274. this.dialogVisibleWordCloud = true;
  23275. },
  23276. uploadWorks(i) {
  23277. this.$confirm("确定导出作业吗?", "提示", {
  23278. confirmButtonText: "确定",
  23279. cancelButtonText: "取消",
  23280. type: "warning",
  23281. })
  23282. .then(() => {
  23283. const loading = this.$loading.service({
  23284. background: "rgba(255, 255, 255, 0.7)",
  23285. target: document.body,
  23286. text: "文件加载中...",
  23287. });
  23288. const _worksStudent = this.worksStudent;
  23289. let url = [];
  23290. var counts = {};
  23291. for (var l = 0; l < _worksStudent[i].length; l++) {
  23292. var item = _worksStudent[i][l];
  23293. var name = item.sName;
  23294. if (!counts.hasOwnProperty(name)) {
  23295. counts[name] = 0;
  23296. } else {
  23297. counts[name]++;
  23298. }
  23299. if (counts[name] > 0) {
  23300. item.sName += " (" + counts[name] + ")";
  23301. }
  23302. }
  23303. for (var l = 0; l < _worksStudent[i].length; l++) {
  23304. var item = _worksStudent[i][l];
  23305. if (
  23306. item.works.indexOf(
  23307. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  23308. ) !== -1 &&
  23309. item.works.indexOf("img") === -1
  23310. ) {
  23311. url.push({ name: item.sName, url: item.works });
  23312. }
  23313. }
  23314. // var toolList = [
  23315. // { name: "电子白板", tool: 1 },
  23316. // { name: "思维导图", tool: 3 },
  23317. // { name: "协同文档", tool: 6 },
  23318. // { name: "思维网格", tool: 7 },
  23319. // { name: "素材库", tool: 8 },
  23320. // { name: "学习资料", tool: 17 },
  23321. // { name: "便签", tool: 2 },
  23322. // { name: "问卷调查", tool: 4 },
  23323. // { name: "选择题", tool: 45 },
  23324. // { name: "倒计时", tool: 10 },
  23325. // { name: "问答", tool: 15 },
  23326. // { name: "课程设计", tool: 26 },
  23327. // { name: "训练服务器", tool: 18 },
  23328. // { name: "作业提交", tool: 16 },
  23329. // { name: "批量上传", tool: 50 },
  23330. // { name: "AIoT Blockly", tool: 21 },
  23331. // { name: "AI Python", tool: 23 },
  23332. // { name: "AI Blockly", tool: 24 },
  23333. // { name: "目标管理", tool: 25 },
  23334. // { name: "数学画板", tool: 31 },
  23335. // { name: "翻译", tool: 28 },
  23336. // { name: "魔盒识字", tool: 37 },
  23337. // { name: "数学画板", tool: 31 },
  23338. // { name: "24点", tool: 38 },
  23339. // { name: "GeoGebra", tool: 39 },
  23340. // { name: "源码编辑", tool: 32 },
  23341. // { name: "个人评价", tool: 40 },
  23342. // { name: "选择匹配", tool: 41 },
  23343. // { name: "汉字宫", tool: 44 },
  23344. // { name: "排序", tool: 47 },
  23345. // { name: "表格", tool: 48 },
  23346. // { name: "文档", tool: 52 },
  23347. // { name: "学生分组", tool: 49 },
  23348. // { name: "CocoPi", tool: 57 },
  23349. // { name: "模拟驾驶", tool: 58 },
  23350. // { name: "路径搜索", tool: 59 },
  23351. // { name: "深度学习", tool: 60 },
  23352. // { name: "全历史", tool: 61 },
  23353. // { name: "交互视频", tool: 62 },
  23354. // { name: "海龟编程", tool: 63 },
  23355. // { name: "挑人", tool: 65 },
  23356. // { name: "公式编辑", tool: 66 },
  23357. // { name: "分子结构", tool: 67 },
  23358. // { name: "时间轴", tool: 68 },
  23359. // ];
  23360. // var toolName = "";
  23361. // for(var w = 0;w<toolList.length;w++){
  23362. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  23363. // toolName = toolList[w].name;
  23364. // }
  23365. // }
  23366. console.log(url);
  23367. this.downLoadAll(url, loading);
  23368. })
  23369. .catch(() => {});
  23370. },
  23371. downLoadAll(url, loading) {
  23372. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  23373. const zip = new JSZip();
  23374. const cache = {};
  23375. const promises = [];
  23376. data.forEach((item) => {
  23377. const promise = getFile(item.url).then((data) => {
  23378. if (data.data != 1) {
  23379. // 下载文件, 并存成ArrayBuffer对象
  23380. const file_name =
  23381. item.name +
  23382. "." +
  23383. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  23384. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  23385. cache[file_name] = data.data;
  23386. }
  23387. });
  23388. promises.push(promise);
  23389. });
  23390. Promise.all(promises).then(() => {
  23391. zip.generateAsync({ type: "blob" }).then((content) => {
  23392. // 生成二进制流
  23393. FileSaver.saveAs(
  23394. content,
  23395. this.courseDetail.title + "-" + "作业提交工具.zip"
  23396. ); // 利用file-saver保存文件 自定义文件名
  23397. setTimeout(() => {
  23398. loading.close();
  23399. }, 2000);
  23400. });
  23401. });
  23402. },
  23403. pickStudent(stu) {
  23404. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  23405. return;
  23406. }
  23407. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  23408. confirmButtonText: "确定",
  23409. cancelButtonText: "取消",
  23410. type: "warning",
  23411. })
  23412. .then(() => {
  23413. let params = [
  23414. {
  23415. uid: stu.userid,
  23416. cid: this.id,
  23417. stage: this.courseType,
  23418. task: this.taskCount,
  23419. tool: this.toolindex,
  23420. },
  23421. ];
  23422. this.ajax
  23423. .post(this.$store.state.api + "updateCoursePick", params)
  23424. .then((res) => {
  23425. this.$message.success("操作成功");
  23426. this.getPick();
  23427. })
  23428. .catch((err) => {
  23429. this.$message.error("网络不佳");
  23430. console.error(err);
  23431. });
  23432. })
  23433. .catch(() => {});
  23434. },
  23435. selectUser(){
  23436. let params = {
  23437. userid: this.userid,
  23438. };
  23439. this.ajax
  23440. .get(this.$store.state.api + "selectUser", params)
  23441. .then((res) => {
  23442. this.userMes = res.data[0];
  23443. })
  23444. .catch((err) => {
  23445. console.error(err);
  23446. });
  23447. },
  23448. setEngText(i){
  23449. this.newEngIndex = i;
  23450. this.$forceUpdate();
  23451. },
  23452. addCorrect(){
  23453. this.$confirm("你确定提交批改嘛?", "提示", {
  23454. confirmButtonText: "确定",
  23455. showCancelButton: false,
  23456. closeOnClickModal: false,
  23457. type: "warning",
  23458. })
  23459. .then(() => {
  23460. let params = {
  23461. cid: this.id,
  23462. s: parseInt(this.courseType),
  23463. t: this.taskCount,
  23464. tool: this.toolindex,
  23465. wid: this.engWid,
  23466. c: this.userid,
  23467. 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) : "",
  23468. };
  23469. this.ajax
  23470. .get(this.$store.state.api + "addEngC", params)
  23471. .then((res) => {
  23472. this.$message.success("提交成功");
  23473. this.engUpdateDialogVisible = false;
  23474. })
  23475. .catch((err) => {
  23476. console.error(err);
  23477. });
  23478. })
  23479. .catch(() => {});
  23480. },
  23481. selectEngC(id,z){
  23482. let params = {
  23483. workid: id,
  23484. };
  23485. this.ajax
  23486. .get(this.$store.state.api + "selectEngC", params)
  23487. .then((res) => {
  23488. if(res.data[0].length == 0){
  23489. this.newEnglishList.engTitle = z.engTitle;
  23490. this.newEnglishList.engText = z.engText;
  23491. }else{
  23492. var a = res.data[0];
  23493. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  23494. if(this.userMes[0].type == 2){
  23495. var snum = 0;
  23496. for(var i = 0;i<a.length;i++){
  23497. if(this.userMes[0].userid == a[i].correct){
  23498. this.newEnglishList = JSON.parse(a[i].cWork);
  23499. snum = 1;
  23500. }
  23501. }
  23502. if(snum == 0){
  23503. this.newEnglishList = { engTitle:"",engText:"" };
  23504. this.newEnglishList.engTitle = z.engTitle;
  23505. this.newEnglishList.engText = z.engText;
  23506. }
  23507. }else if(this.userMes[0].type == 1){
  23508. var num = 0;
  23509. for(var w= 0;w<a.length;w++){
  23510. if(this.userMes[0].userid == a[w].correct){
  23511. num = 1;
  23512. }
  23513. }
  23514. if(num == 0){
  23515. this.isNoUserid = true;
  23516. var c = JSON.parse(JSON.stringify(z));
  23517. this.oldEnglishJson1 = c;
  23518. }else{
  23519. this.isNoUserid = false;
  23520. }
  23521. var b = a.sort((item, index) => {
  23522. console.log(item)
  23523. if (item.correct === this.userMes[0].userid) {
  23524. return -1; // 将a移到前面
  23525. } else if (index.correct === this.userMes[0].userid) {
  23526. return 1; // 将b移到前面
  23527. } else {
  23528. return 0; // 保持默认顺序
  23529. }
  23530. });
  23531. for(var p = 0;p<b.length;p++){
  23532. for(var y = 0;y<ppp.length;y++){
  23533. if(b[p].id == ppp[y].id){
  23534. b[p].cWork = JSON.parse(ppp[y].cWork);
  23535. break
  23536. }
  23537. }
  23538. }
  23539. this.newEnglishList1 = b;
  23540. }
  23541. }
  23542. this.greyType = false;
  23543. setTimeout(() => {
  23544. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  23545. if(this.newEnglishList1.length > 0){
  23546. if(this.isNoUserid == true){
  23547. this.engListLength = this.newEnglishList1.length + 1;
  23548. this.newEngIndex = -1;
  23549. }else{
  23550. this.engListLength = this.newEnglishList1.length;
  23551. this.newEngIndex = 0;
  23552. }
  23553. }
  23554. if(this.userMes[0].type == 2){
  23555. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  23556. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  23557. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  23558. }else if(this.newEngIndex == -1){
  23559. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  23560. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  23561. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  23562. }
  23563. }, 500);
  23564. this.engUpdateDialogVisible = true;
  23565. this.$forceUpdate();
  23566. })
  23567. .catch((err) => {
  23568. console.error(err);
  23569. });
  23570. },
  23571. getPick() {
  23572. let params = {
  23573. cid: this.id,
  23574. };
  23575. this.ajax
  23576. .get(this.$store.state.api + "getPick", params)
  23577. .then((res) => {
  23578. let array = [];
  23579. for (var i = 0; i < res.data[0].length; i++) {
  23580. array.push(res.data[0][i].userid);
  23581. }
  23582. this.isPickStudent = array;
  23583. if (array.indexOf(this.userid) !== -1) {
  23584. this.$confirm("你被老师选到啦!", "提示", {
  23585. confirmButtonText: "确定",
  23586. showCancelButton: false,
  23587. closeOnClickModal: false,
  23588. type: "warning",
  23589. })
  23590. .then(() => {
  23591. let pa = [
  23592. {
  23593. uid: this.userid,
  23594. cid: this.id,
  23595. },
  23596. ];
  23597. this.ajax
  23598. .post(this.$store.state.api + "deletePick", pa)
  23599. .then((res) => {
  23600. this.getPick();
  23601. })
  23602. .catch((err) => {
  23603. this.$message.error("网络不佳");
  23604. console.error(err);
  23605. });
  23606. })
  23607. .catch(() => {});
  23608. }
  23609. })
  23610. .catch((err) => {
  23611. this.$message.error("网络不佳");
  23612. console.error(err);
  23613. });
  23614. },
  23615. foldEva() {
  23616. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  23617. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  23618. } else {
  23619. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  23620. setTimeout(() => {
  23621. this.checkEva();
  23622. setTimeout(() => {
  23623. this.checkEva();
  23624. }, 500);
  23625. }, 0);
  23626. }
  23627. this.$forceUpdate();
  23628. },
  23629. panToolHeight(tool) {
  23630. var _tool = document.querySelectorAll('#'+tool)[0]
  23631. var _toolA = _tool ? _tool.offsetHeight : 0
  23632. var _toolC = 0
  23633. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  23634. let boolean2 = (_toolA > _toolC) ? true : false
  23635. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  23636. this.$forceUpdate();
  23637. },
  23638. async checkLink(url) {
  23639. // console.log(url)
  23640. let _url = url
  23641. try {
  23642. const response = await fetch(url);
  23643. if(!response.ok){
  23644. _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]))
  23645. }
  23646. // console.log(response.ok)
  23647. } catch (error) {
  23648. console.error('Error checking link:', error);
  23649. // console.log(false)
  23650. _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]))
  23651. }
  23652. // console.log(_url)
  23653. return _url
  23654. },
  23655. getScoreList(){
  23656. let params = {
  23657. cid: this.id,
  23658. };
  23659. this.ajax
  23660. .get(this.$store.state.api + "selectTestCourseByCid", params)
  23661. .then((res) => {
  23662. let result = res.data;
  23663. this.scoreList.datalist = result[0];
  23664. this.scoreList.isScoreList = result[1];
  23665. })
  23666. .catch((err) => {
  23667. console.error(err);
  23668. });
  23669. },
  23670. setClassRoomHelperWidth(width){
  23671. this.classRoomHelperWidth = width
  23672. },
  23673. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  23674. this.$refs.choseWorksDetailDialogRef.open({
  23675. toolType:tooc,
  23676. tType: this.tType,
  23677. toolIndex: toolIndex
  23678. });
  23679. this.changeSplitScreenBehavior({
  23680. code: 1,
  23681. form: {
  23682. toolType:tooc,
  23683. toolIndex: toolIndex,
  23684. courseType: this.courseType,
  23685. taskCount: this.taskCount,
  23686. type: 0
  23687. }
  23688. });
  23689. },
  23690. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  23691. this.$refs.statisticalAnalysisRef.open({
  23692. worksStudent: this.worksStudent[toolIndex],
  23693. tType: this.tType,
  23694. toolIndex: toolIndex
  23695. });
  23696. this.changeSplitScreenBehavior({
  23697. code: 2,
  23698. form: {
  23699. toolType:4,
  23700. courseType: this.courseType,
  23701. taskCount: this.taskCount,
  23702. toolIndex: toolIndex,
  23703. type: 0
  23704. }
  23705. });
  23706. },
  23707. statisticalAnalysisRefresh(toolIndex) {
  23708. this.$refs.statisticalAnalysisRef.refreshData({
  23709. worksStudent: this.worksStudent[toolIndex],
  23710. tType: this.tType,
  23711. toolIndex: toolIndex
  23712. });
  23713. },
  23714. async splitScreenBehavior(type = 0) {
  23715. // return;
  23716. if (this.splitScreenData.loading)
  23717. return this.$message.info("操作过快,请稍等");
  23718. if (type == 0) {
  23719. //关闭分屏
  23720. this.splitScreenData.isOpen = false;
  23721. // this.splitScreenData.userId = "";
  23722. // this.splitScreenData.uid = "";
  23723. this.splitScreenData.behavior = null;
  23724. await this.updateSplitScreenData(1);
  23725. this.$message.success("已关闭分屏模式");
  23726. this.studentFreePreview(false);
  23727. this.OpenJobPreview(false);
  23728. // this.followingMode(false);
  23729. } else if (type == 1) {
  23730. //开启分屏
  23731. this.splitScreenData.isOpen = true;
  23732. this.splitScreenData.userId = this.userid;
  23733. this.splitScreenData.uid = this.splitScreenData.myUid;
  23734. this.splitScreenData.behavior = null;
  23735. let status = await this.updateSplitScreenData(0);
  23736. if (status == 1) {
  23737. this.$message.success("已开启分屏");
  23738. this.studentFreePreview(true);
  23739. this.OpenJobPreview(true);
  23740. // this.followingMode(true);
  23741. } else {
  23742. this.splitScreenData.isOpen = false;
  23743. this.splitScreenData.userId = "";
  23744. this.splitScreenData.uid = "";
  23745. this.splitScreenData.behavior = null;
  23746. this.$message.success("分屏开启失败");
  23747. }
  23748. }
  23749. },
  23750. getSplitScreenData() {
  23751. // return;
  23752. if (this.tType != 1) return;
  23753. let params = {
  23754. cid: this.id
  23755. };
  23756. this.ajax
  23757. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  23758. .then(async res => {
  23759. let data = res.data[0][0]["splitScreenData"];
  23760. console.log("获取了分屏数:", data);
  23761. if (data) {
  23762. data = JSON.parse(data);
  23763. if (
  23764. !this.splitScreenData.isOpen &&
  23765. data.isOpen &&
  23766. this.splitScreenData.myUid == data.uid
  23767. ) {
  23768. this.splitScreenData.isOpen = false;
  23769. this.splitScreenData.userId = "";
  23770. this.splitScreenData.uid = "";
  23771. this.splitScreenData.behavior = null;
  23772. await this.updateSplitScreenData(1);
  23773. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  23774. this.splitScreenData.isOpen = true;
  23775. this.splitScreenData.uid = data.uid;
  23776. this.splitScreenData.userId = data.userId;
  23777. this.splitScreenData.behavior = data.behavior;
  23778. this.$message.success("分屏模式已开启");
  23779. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  23780. this.splitScreenData.isOpen = false;
  23781. this.splitScreenData.userId = "";
  23782. this.splitScreenData.uid = "";
  23783. this.splitScreenData.behavior = null;
  23784. this.$message.error("已结束分屏模式");
  23785. } else if (this.splitScreenData.isOpen && data.isOpen) {
  23786. this.splitScreenData.isOpen = true;
  23787. this.splitScreenData.uid = data.uid;
  23788. this.splitScreenData.userId = data.userId;
  23789. this.splitScreenData.behavior = data.behavior;
  23790. }
  23791. this.doSplitScreenBehavior();
  23792. } else {
  23793. if (this.splitScreenData.isOpen) {
  23794. this.splitScreenData.isOpen = false;
  23795. this.splitScreenData.userId = "";
  23796. this.splitScreenData.uid = "";
  23797. this.splitScreenData.behavior = null;
  23798. this.$message.error("已结束分屏模式");
  23799. }
  23800. }
  23801. })
  23802. .catch(e => {
  23803. console.log("获取分屏数出错:", e);
  23804. });
  23805. },
  23806. doSplitScreenBehavior() {
  23807. if (
  23808. this.splitScreenData.isOpen &&
  23809. this.splitScreenData.uid != this.splitScreenData.myUid
  23810. ) {
  23811. let behavior = this.splitScreenData.behavior;
  23812. if (behavior) {
  23813. if (behavior.code === 99) {
  23814. //初始化
  23815. this.fullDialogVisible = false;
  23816. if(this.$refs.choseWorksDetailDialogRef.show){
  23817. this.$refs.choseWorksDetailDialogRef.close();
  23818. }
  23819. if(this.$refs.statisticalAnalysisRef.show){
  23820. this.$refs.statisticalAnalysisRef.close();
  23821. }
  23822. } else if (behavior.code === 0) {
  23823. //开启内容列表弹窗
  23824. this.checkFileFull1(behavior.form.t, behavior.form.f);
  23825. } else if (behavior.code === 1) {
  23826. //关于选择题的作业详细的操作
  23827. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  23828. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  23829. this.courseType = behavior.form.courseType;
  23830. this.taskCount = behavior.form.taskCount;
  23831. }
  23832. this.$nextTick(() => {
  23833. if (this.$refs.choseWorksDetailDialogRef.show) {
  23834. //已经打开了
  23835. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  23836. } else {
  23837. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  23838. }
  23839. });
  23840. }else if(behavior.code === 2){
  23841. if(this.$refs.statisticalAnalysisRef.show){
  23842. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  23843. }else{
  23844. this.$refs.statisticalAnalysisRef.open({
  23845. worksStudent: this.worksStudent[behavior.form.toolIndex],
  23846. tType: this.tType,
  23847. toolIndex: behavior.form.toolIndex
  23848. });
  23849. }
  23850. }
  23851. } else {
  23852. }
  23853. }
  23854. },
  23855. updateSplitScreenData(empty = 0) {
  23856. return new Promise(resolve => {
  23857. if(this.userid!==this.courseDetail.userid){
  23858. if(!this.courseDetail.userid){
  23859. return setTimeout(()=>{
  23860. this.updateSplitScreenData(empty)
  23861. },2000)
  23862. }
  23863. return;
  23864. };
  23865. if (
  23866. this.splitScreenData.uid == this.splitScreenData.myUid &&
  23867. this.splitScreenData.userId == this.userid
  23868. ) {
  23869. this.splitScreenData.loading = true;
  23870. let params = [
  23871. {
  23872. cid: this.id,
  23873. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  23874. }
  23875. ];
  23876. this.ajax
  23877. .post(
  23878. this.$store.state.api + "update_courseSplitScreenData",
  23879. params
  23880. )
  23881. .then(res => {
  23882. this.splitScreenData.loading = false;
  23883. if (res.data == 1) {
  23884. resolve(1);
  23885. console.log("修改分屏数据成功");
  23886. }
  23887. })
  23888. .catch(e => {
  23889. this.splitScreenData.loading = false;
  23890. console.log("修改分屏数据失败", e);
  23891. resoleve(0);
  23892. });
  23893. } else if (empty == 2 && this.tType == 1) {
  23894. let params = [
  23895. {
  23896. cid: this.id,
  23897. nData: ""
  23898. }
  23899. ];
  23900. return this.ajax
  23901. .post(
  23902. this.$store.state.api + "update_courseSplitScreenData",
  23903. params
  23904. )
  23905. .then(_ => resolve(1))
  23906. .catch(_ => resolve(0));
  23907. } else {
  23908. return resolve(0);
  23909. }
  23910. });
  23911. },
  23912. changeSplitScreenBehavior(newValue) {
  23913. if (
  23914. this.splitScreenData.isOpen &&
  23915. this.splitScreenData.uid == this.splitScreenData.myUid
  23916. ) {
  23917. this.splitScreenData.behavior = newValue;
  23918. this.updateSplitScreenData(0);
  23919. }
  23920. },
  23921. studentFreePreview(flag) {
  23922. this.IsLookOpen = flag;
  23923. this.followingMode(flag)
  23924. this.updateLookOpen();
  23925. },
  23926. OpenJobPreview(flag) {
  23927. this.sIsOpen = flag;
  23928. this.updateSLook();
  23929. },
  23930. followingMode(flag) {
  23931. this.IsFollow = flag;
  23932. this.updateFollow();
  23933. }
  23934. },
  23935. directives: {
  23936. // 使用局部注册指令的方式
  23937. resize: {
  23938. // 指令的名称
  23939. bind(el, binding) {
  23940. // el为绑定的元素,binding为绑定给指令的对象
  23941. let width = "",
  23942. height = "";
  23943. function isReize() {
  23944. const style = document.defaultView.getComputedStyle(el);
  23945. if (width !== style.width || height !== style.height) {
  23946. binding.value(); // 关键
  23947. }
  23948. width = style.width;
  23949. height = style.height;
  23950. }
  23951. el.__vueSetInterval__ = setInterval(isReize, 300);
  23952. },
  23953. unbind(el) {
  23954. clearInterval(el.__vueSetInterval__);
  23955. },
  23956. },
  23957. autoHeight: {
  23958. update(el, binding) {
  23959. const { value } = binding
  23960. if (value && typeof value === 'number') {
  23961. el.style.height = `${value}px`
  23962. } else {
  23963. el.style.height = 'auto'
  23964. }
  23965. },
  23966. componentUpdated(el) {
  23967. el.style.height = `${el.scrollHeight + 5}px`
  23968. },
  23969. },
  23970. },
  23971. beforeDestroy() {
  23972. window.onresize = null;
  23973. clearInterval(this.timer);
  23974. this.timer = null;
  23975. clearInterval(this.opertimer);
  23976. this.opertimer = null;
  23977. this.updateSplitScreenData(1);
  23978. },
  23979. computed: {
  23980. getHeight(){
  23981. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  23982. },
  23983. contentConvent() {
  23984. return function (c) {
  23985. return c
  23986. ? c
  23987. .replaceAll(/\r\n/g, "<br/>")
  23988. .replaceAll(/\n/g, "<br/>")
  23989. .replaceAll(/\s/g, " &nbsp")
  23990. : "";
  23991. };
  23992. },
  23993. MarkdownT() {
  23994. return function (c) {
  23995. let md = new MarkdownIt();
  23996. return c
  23997. ? md.render(c) : "";
  23998. };
  23999. },
  24000. commentRight(){
  24001. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  24002. return "35px";
  24003. }
  24004. return `calc(${this.classRoomHelperWidth} + 5px)`
  24005. // if(this.$refs["classRoomHelperRef"].type==0){
  24006. // return "100px";
  24007. // }else if(this.$refs["classRoomHelperRef"].type==1){
  24008. // return "502px"
  24009. // }else{
  24010. // return "0px"
  24011. // }
  24012. },
  24013. checkUpload() {
  24014. return function () {
  24015. var studentK = [];
  24016. if (this.plworkFile.length > 0) {
  24017. for (var z = 0; z < this.plworkFile.length; z++) {
  24018. studentK.push(this.plworkFile[z].username);
  24019. }
  24020. studentK = studentK.join(",");
  24021. }
  24022. var a = this.uploadStudentJuri.filter((el) => {
  24023. return studentK.indexOf(el.userid) == -1;
  24024. });
  24025. return a;
  24026. };
  24027. },
  24028. getSName() {
  24029. return function (name) {
  24030. var check = name;
  24031. this.uploadStudentJuri.forEach((el) => {
  24032. if (el.userid == check) {
  24033. check = el.name ? el.name : el.username;
  24034. }
  24035. });
  24036. return check;
  24037. };
  24038. },
  24039. getImgList() {
  24040. return function (val) {
  24041. let srcList = []; // 定义一个数组用来接收后面的img地址
  24042. val.replace(
  24043. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  24044. function (match, capture) {
  24045. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  24046. srcList.push(capture);
  24047. }
  24048. );
  24049. return srcList;
  24050. };
  24051. },
  24052. retrnToolHeight(){
  24053. return function (tool) {
  24054. var _tool = document.querySelectorAll('#'+tool)[0]
  24055. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  24056. };
  24057. },
  24058. Correct() {
  24059. return function (c,d) {
  24060. let w = "";
  24061. let a = this.correctWord;
  24062. for(var k = 0;k<a.length;k++){
  24063. //diffWordsWithSpace
  24064. if(a.length > 1){
  24065. if(a[k].added == true){
  24066. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24067. }else if(a[k].removed == true){
  24068. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24069. }else{
  24070. w += '<span>' + a[k].value + '</span>';
  24071. }
  24072. }else{
  24073. w = c
  24074. }
  24075. console.log("👇👇!+++==")
  24076. console.log(w)
  24077. //diffChars方法
  24078. // if(w == ""){
  24079. // if(a.length > 1){
  24080. // if(a[k].added == true){
  24081. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24082. // }else if(a[k].removed == true){
  24083. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24084. // }
  24085. // }else{
  24086. // w = c
  24087. // }
  24088. // }else{
  24089. // if(k == a.length - 1){
  24090. // if(a[k].added == true){
  24091. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24092. // }else if(a[k].removed == true){
  24093. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24094. // }
  24095. // }else{
  24096. // if(a[k].added == true){
  24097. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24098. // }else if(a[k].removed == true){
  24099. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24100. // }
  24101. // }
  24102. // }
  24103. }
  24104. c = w;
  24105. return c;
  24106. };
  24107. },
  24108. },
  24109. mounted() {
  24110. document.body.addEventListener("click", (e) => {
  24111. if (this.isUpdateToolDetail1) {
  24112. this.updateToolDetail(this.toolDetailIndex);
  24113. }
  24114. });
  24115. if (this.screenType == 2) {
  24116. window.parent.postMessage({ allScreen: 4 }, "*");
  24117. } else if (this.screenType == 3) {
  24118. window.parent.postMessage({ allScreen: 5 }, "*");
  24119. } else if (this.screenType == 1) {
  24120. window.parent.postMessage({ allScreen: 6 }, "*");
  24121. }
  24122. this.setOperationTime();
  24123. this.selectEva();
  24124. this.getCourseDetail();
  24125. this.selectCount();
  24126. this.getHomeWork();
  24127. this.selectUser();
  24128. this.getAIJ();
  24129. this.contentDialog = true;
  24130. this.setContent2(true);
  24131. if (this.tType == 4) {
  24132. this.pzDialog = true;
  24133. this.selectPz();
  24134. }
  24135. // 获取评分列表
  24136. this.getScoreList()
  24137. this.updateSplitScreenData(2);
  24138. this.splitScreenData.myUid = uuidv4();
  24139. document.scrollingElement.scrollTop = 0;
  24140. window.addEventListener("resize", () => {
  24141. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  24142. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  24143. if (this.showType == 2 || this.showType == 3) {
  24144. document.getElementsByClassName("navBox")[0].style.height =
  24145. a - 40 + 0+ "px";
  24146. } else {
  24147. document.getElementsByClassName("navBox")[0].style.height =
  24148. a - 40 + "px";
  24149. }
  24150. });
  24151. let _this = this;
  24152. setTimeout(() => {
  24153. // _this.vedioTime = [];
  24154. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  24155. // _this.vedioTime[i] = document.getElementsByClassName(
  24156. // "vjs-duration-display"
  24157. // )[i].textContent;
  24158. // }
  24159. }, 1000);
  24160. },
  24161. };
  24162. </script>
  24163. <style scoped>
  24164. @media screen and (max-width: 1280px) {
  24165. /* .courseIndex > div:first-child(2) {
  24166. width: 15% !important;
  24167. } */
  24168. /* .navText {
  24169. width: 120px !important;
  24170. } */
  24171. .evaCss {
  24172. flex-direction: column !important;
  24173. align-items: center !important;
  24174. }
  24175. .elist_input {
  24176. width: 90% !important;
  24177. }
  24178. .dialog_diy1 >>> .el-dialog {
  24179. width: 100% !important;
  24180. }
  24181. .rightWidthCss {
  24182. width: 100% !important;
  24183. }
  24184. .dialog_diy3 >>> .el-dialog {
  24185. width: 100% !important;
  24186. }
  24187. .addToolCss {
  24188. right: 0 !important;
  24189. width: 100% !important;
  24190. min-width: unset !important;
  24191. }
  24192. }
  24193. .evaCssMax {
  24194. flex-direction: column !important;
  24195. align-items: center !important;
  24196. }
  24197. .dialog_diy >>> .el-dialog {
  24198. /* margin-top: 10vh !important; */
  24199. }
  24200. .body_student {
  24201. width: 77%;
  24202. height: 100%;
  24203. position: absolute;
  24204. left: 22%;
  24205. top: 0;
  24206. }
  24207. .student_head {
  24208. width: 100%;
  24209. margin: 20px auto 0;
  24210. padding-bottom: 20px;
  24211. display: flex;
  24212. flex-direction: column;
  24213. flex-wrap: nowrap;
  24214. align-items: flex-start;
  24215. justify-content: flex-start;
  24216. }
  24217. .pb_left {
  24218. width: 20%;
  24219. margin-right: 10px;
  24220. background: rgb(255, 255, 255);
  24221. position: fixed;
  24222. height: calc(100% - 40px);
  24223. border-radius: 20px;
  24224. padding-bottom: 15px;
  24225. box-sizing: border-box;
  24226. }
  24227. .wheel > img,
  24228. .project > img,
  24229. .star > img,
  24230. .evaluate > img,
  24231. .up_photo > img,
  24232. .chapter_add > img,
  24233. .deleteWord > img,
  24234. .question > img,
  24235. .homework > img {
  24236. width: 100%;
  24237. height: 100%;
  24238. }
  24239. .upCover > img {
  24240. width: 131px;
  24241. height: 69px;
  24242. object-fit: cover;
  24243. }
  24244. .upCover {
  24245. width: calc(100% / 3.5);
  24246. position: relative;
  24247. margin: 0 15px 10px 0;
  24248. display: flex;
  24249. flex-direction: column;
  24250. flex-wrap: nowrap;
  24251. justify-content: center;
  24252. align-content: center;
  24253. align-items: center;
  24254. height: fit-content;
  24255. }
  24256. .upCover2 {
  24257. width: 100%;
  24258. position: relative;
  24259. margin: 0 15px 10px 0;
  24260. display: flex;
  24261. flex-direction: column;
  24262. flex-wrap: nowrap;
  24263. justify-content: center;
  24264. align-content: center;
  24265. align-items: center;
  24266. }
  24267. .upCover2 > img {
  24268. width: 100%;
  24269. height: 90px;
  24270. object-fit: contain;
  24271. }
  24272. .chapter_add {
  24273. width: 120px;
  24274. position: relative;
  24275. text-align: center;
  24276. }
  24277. .isAddThings {
  24278. margin-top: 20px;
  24279. position: relative;
  24280. text-align: center;
  24281. background: #f7f8fa;
  24282. height: 90px;
  24283. width: 90px;
  24284. display: flex;
  24285. flex-direction: column;
  24286. justify-content: center;
  24287. }
  24288. .deleteWord {
  24289. width: 22px;
  24290. height: 22px;
  24291. position: absolute;
  24292. right: -5px;
  24293. top: -5px;
  24294. cursor: pointer;
  24295. }
  24296. .box_course {
  24297. /* width: 60%; */
  24298. width: calc(100% - 300px);
  24299. }
  24300. .wheel {
  24301. width: 100%;
  24302. /* height: 100%; */
  24303. height: 650px;
  24304. }
  24305. .right_box {
  24306. display: flex;
  24307. flex-direction: column;
  24308. margin-left: 30px;
  24309. justify-content: space-around;
  24310. }
  24311. .right_box_title {
  24312. font-size: 23px;
  24313. }
  24314. .people {
  24315. display: flex;
  24316. }
  24317. .student_body {
  24318. width: 100%;
  24319. margin: 0 auto;
  24320. margin-top: 10px;
  24321. padding: 0 0 20px;
  24322. }
  24323. .study_top {
  24324. margin-top: 100px;
  24325. width: 100%;
  24326. height: auto;
  24327. padding-bottom: 20px;
  24328. margin-left: 2px;
  24329. }
  24330. .study_top .checkbox {
  24331. display: flex;
  24332. align-items: center;
  24333. padding: 15px 0 15px 30px;
  24334. flex: 0 0 auto;
  24335. font-weight: bold;
  24336. border-bottom: 1px solid #eee;
  24337. }
  24338. .study_top .check {
  24339. padding-bottom: 5px;
  24340. text-align: center;
  24341. cursor: pointer;
  24342. height: 30px;
  24343. box-sizing: border-box;
  24344. display: flex;
  24345. }
  24346. .study_top .checked {
  24347. border-bottom: 4px solid #3fc6a0;
  24348. padding-bottom: 5px;
  24349. color: #3fc6a0;
  24350. display: flex;
  24351. height: 35px;
  24352. }
  24353. .study_top .checked > div,
  24354. .study_top .check > div {
  24355. margin-right: 5px;
  24356. }
  24357. .videoTop {
  24358. display: flex;
  24359. flex-direction: row;
  24360. justify-content: space-between;
  24361. background: #fff;
  24362. align-items: center;
  24363. width: 95%;
  24364. padding: 20px;
  24365. }
  24366. .filebox {
  24367. display: flex;
  24368. flex-wrap: wrap;
  24369. flex-direction: column;
  24370. padding: 0 0 5px;
  24371. position: relative;
  24372. }
  24373. .filebox:before {
  24374. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  24375. position: absolute;
  24376. top: 20px;
  24377. left: 13px;
  24378. border-left: 2px dotted #cad1dc;
  24379. height: calc(100% - 15px);
  24380. }
  24381. .toolHeng2 > div:last-child::before {
  24382. height: calc(100% - 43px);
  24383. }
  24384. .filebox .tooldetail {
  24385. width: calc(100%);
  24386. margin: 0px 12px;
  24387. padding: 12px;
  24388. line-height: 30px;
  24389. word-break: break-word;
  24390. background: #ffffff;
  24391. border-radius: 8px 8px 8px 8px;
  24392. opacity: 1;
  24393. border: 1px solid #cad1dc;
  24394. overflow:hidden;
  24395. box-sizing:border-box;
  24396. }
  24397. .file {
  24398. display: flex;
  24399. flex-direction: column;
  24400. align-items: center;
  24401. justify-content: center;
  24402. cursor: pointer;
  24403. width: 200px;
  24404. }
  24405. .file div {
  24406. margin-top: 10px;
  24407. width: 150px;
  24408. text-align: center;
  24409. overflow: hidden;
  24410. white-space: nowrap;
  24411. text-overflow: ellipsis;
  24412. }
  24413. .media {
  24414. display: flex;
  24415. flex-direction: column;
  24416. align-items: center;
  24417. justify-content: center;
  24418. margin: 0 20px 20px 0;
  24419. cursor: pointer;
  24420. margin: 12px 0 5px 15px;
  24421. overflow: hidden;
  24422. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  24423. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  24424. box-sizing: border-box;
  24425. }
  24426. .media img {
  24427. height: 90px;
  24428. width: 160px;
  24429. object-fit: cover;
  24430. }
  24431. .media .title {
  24432. padding: 5px;
  24433. text-align: left;
  24434. width: 100%;
  24435. box-sizing: border-box;
  24436. }
  24437. .media .btn {
  24438. width: 100%;
  24439. height: 35px;
  24440. line-height: 35px;
  24441. color: #fff;
  24442. background: #606060;
  24443. text-align: center;
  24444. overflow: hidden;
  24445. white-space: nowrap;
  24446. text-overflow: ellipsis;
  24447. }
  24448. .detail_content_top {
  24449. width: 100%;
  24450. padding: 25px 0 25px 0;
  24451. }
  24452. .detail_title {
  24453. text-align: center;
  24454. font-size: 24px;
  24455. }
  24456. .detail_time {
  24457. font-size: 13px;
  24458. padding: 15px 0 0 40px;
  24459. }
  24460. .detail_content {
  24461. line-height: 2pc;
  24462. width: 90%;
  24463. margin: 0 auto;
  24464. padding-top: 30px;
  24465. text-indent: 30px;
  24466. overflow: auto;
  24467. height: 200px;
  24468. }
  24469. .score_box >>> .el-rate {
  24470. margin-left: 10px;
  24471. }
  24472. .dialog_change >>> .el-dialog {
  24473. border-radius: 5px;
  24474. }
  24475. .dialog_change >>> .el-dialog__header {
  24476. background: #f2f2f2;
  24477. text-align: center;
  24478. }
  24479. .dialog_change >>> .el-dialog__title {
  24480. line-height: 5px;
  24481. }
  24482. .dialog_change >>> .el-dialog__body {
  24483. background: #fff;
  24484. padding: 10px 20px;
  24485. }
  24486. .score_box {
  24487. display: flex;
  24488. align-items: center;
  24489. margin-bottom: 18px;
  24490. margin-top: 20px;
  24491. }
  24492. .up_photo {
  24493. width: 120px;
  24494. cursor: pointer;
  24495. margin-top: 10px;
  24496. }
  24497. .up_photo2 {
  24498. width: 180px;
  24499. box-sizing: border-box;
  24500. min-width: 180px;
  24501. height: 180px;
  24502. max-height: 180px;
  24503. min-height: 180px;
  24504. cursor: pointer;
  24505. display: flex;
  24506. flex-direction: column;
  24507. align-items: center;
  24508. justify-content: center;
  24509. background: rgb(242, 246, 255);
  24510. /* padding: 25px; */
  24511. margin-bottom: 10px;
  24512. }
  24513. .up_photo2 img {
  24514. width: 50%;
  24515. height: auto;
  24516. }
  24517. .up_photo2 span {
  24518. color: #898989;
  24519. }
  24520. .plworkBox {
  24521. display: flex;
  24522. align-items: center;
  24523. margin-top: 10px;
  24524. flex-wrap: wrap;
  24525. }
  24526. .upload_send {
  24527. margin: 30px auto 30px;
  24528. width: 60%;
  24529. background: #3681fc;
  24530. text-align: center;
  24531. height: 35px;
  24532. line-height: 35px;
  24533. color: #fff;
  24534. border-radius: 5px;
  24535. cursor: pointer;
  24536. }
  24537. .marginT {
  24538. margin-top: 20px;
  24539. }
  24540. .cd_content_steps {
  24541. display: flex;
  24542. width: 90%;
  24543. justify-content: space-around;
  24544. border-top: 1px solid #eeeeee;
  24545. }
  24546. .cd_steps_box {
  24547. display: flex;
  24548. justify-content: center;
  24549. align-items: center;
  24550. flex-direction: column;
  24551. cursor: pointer;
  24552. }
  24553. .first {
  24554. display: flex;
  24555. align-items: center;
  24556. margin: 15px 0 20px 0;
  24557. font-size: 20px;
  24558. }
  24559. .first > div:nth-child(2) {
  24560. font-size: 16px !important;
  24561. padding-left: 10px;
  24562. line-height: 26px;
  24563. box-sizing: border-box;
  24564. }
  24565. .blue_box_one {
  24566. text-align: center;
  24567. color: #fff;
  24568. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  24569. border-radius: 7px;
  24570. margin: 10px;
  24571. cursor: pointer;
  24572. width: 95%;
  24573. height: 45px;
  24574. display: flex;
  24575. flex-direction: row;
  24576. justify-content: flex-start;
  24577. align-items: center;
  24578. }
  24579. .blue_box_one > div:nth-child(1) {
  24580. line-height: 30px;
  24581. margin: 0 5px 0 10px;
  24582. width: 30%;
  24583. min-width: 70px;
  24584. border-radius: 4px;
  24585. }
  24586. .blue_box_one > div:nth-child(2) {
  24587. white-space: nowrap;
  24588. text-overflow: ellipsis;
  24589. overflow: hidden;
  24590. word-break: break-all;
  24591. width: 70%;
  24592. text-align: left;
  24593. margin-right: 10px;
  24594. max-width: calc(100% - 85px);
  24595. }
  24596. .blue_box_one > div:nth-child(2):hover {
  24597. overflow: hidden;
  24598. text-overflow: ellipsis;
  24599. white-space: nowrap;
  24600. cursor: pointer;
  24601. }
  24602. .upFile {
  24603. margin: 0 auto;
  24604. width: 120px;
  24605. background: #3681fc;
  24606. color: #fff;
  24607. height: 30px;
  24608. text-align: center;
  24609. line-height: 30px;
  24610. border-radius: 5px;
  24611. font-size: 14px;
  24612. cursor: pointer;
  24613. }
  24614. .courseTitle {
  24615. width: 85%;
  24616. margin: 10px auto 26px auto;
  24617. display: flex;
  24618. flex-direction: row;
  24619. align-items: center;
  24620. justify-content: space-between;
  24621. text-align: center;
  24622. }
  24623. .courseTitle .ctitle {
  24624. font-size: 20px;
  24625. font-weight: bold;
  24626. color: #0e1e33;
  24627. white-space: nowrap;
  24628. overflow: hidden;
  24629. text-overflow: ellipsis;
  24630. }
  24631. .inviteBox {
  24632. font-size: 14px;
  24633. /* margin-top: 5px; */
  24634. color: #00000099;
  24635. text-align: center;
  24636. }
  24637. .courseTitle >>> .el-tooltip {
  24638. width: 100%;
  24639. white-space: nowrap;
  24640. overflow: hidden;
  24641. text-overflow: ellipsis;
  24642. word-break: break-word;
  24643. }
  24644. .ml {
  24645. margin-left: 20px;
  24646. color: #5b7dba;
  24647. border-left: 3px solid #5b7dba;
  24648. padding-left: 5px;
  24649. font-weight: bold;
  24650. }
  24651. .return {
  24652. width: 2rem;
  24653. height: 2rem;
  24654. cursor: pointer;
  24655. }
  24656. .return > img {
  24657. width: 100%;
  24658. height: 100%;
  24659. }
  24660. .returnBtn {
  24661. width: 86px;
  24662. height: 36px;
  24663. background: #3681fc;
  24664. border-radius: 4px;
  24665. color: #fff;
  24666. text-align: center;
  24667. line-height: 36px;
  24668. margin-right: 20px;
  24669. cursor: pointer;
  24670. font-size: 14px;
  24671. font-weight: 400;
  24672. display: flex;
  24673. flex-direction: row;
  24674. flex-wrap: nowrap;
  24675. align-items: center;
  24676. justify-content: center;
  24677. }
  24678. .reBtnIcon,
  24679. .commentIcon,
  24680. .vedioIcon,
  24681. .vedioIcon1 {
  24682. /* width: 36px; */
  24683. height: 36px;
  24684. border-radius: 4px;
  24685. position: relative;
  24686. /* background: #e0eafb; */
  24687. background: #0061ff;
  24688. cursor: pointer;
  24689. margin-right: 12px;
  24690. display: flex;
  24691. align-items: center;
  24692. padding: 0 10px;
  24693. box-sizing: border-box;
  24694. font-size: 14px;
  24695. color: #fff;
  24696. }
  24697. .reBtnIcon::before,
  24698. .commentIcon::before,
  24699. .vedioIcon::before,
  24700. .vedioIcon1::before {
  24701. content: "";
  24702. display: block;
  24703. background-size: 100% 100%;
  24704. background-repeat: no-repeat;
  24705. width: 20px;
  24706. height: 20px;
  24707. margin-right: 5px;
  24708. /* position: absolute; */
  24709. /* top: 8px;
  24710. left: 8px; */
  24711. }
  24712. .vedioIcon1 {
  24713. background: #f63564;
  24714. }
  24715. .reBtnIcon::before {
  24716. background-image: url("../../assets/icon/newIcons/refresh.png");
  24717. }
  24718. .commentIcon::before {
  24719. background-image: url("../../assets/icon/newIcons/comment.png");
  24720. }
  24721. .vedioIcon::before {
  24722. background-image: url("../../assets/icon/newIcons/transcribe.png");
  24723. }
  24724. .vedioIcon1::before {
  24725. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  24726. background-image: url("../../assets/icon/newIcons/transcribe.png");
  24727. }
  24728. .tool {
  24729. display: flex;
  24730. flex-direction: column;
  24731. flex-wrap: nowrap;
  24732. width: 13%;
  24733. margin: 0 30px;
  24734. align-items: center;
  24735. position: relative;
  24736. padding: 10px 25px;
  24737. cursor: pointer;
  24738. }
  24739. .whiteBIcon {
  24740. width: 150px;
  24741. }
  24742. .whiteBIcon > img {
  24743. width: 100%;
  24744. height: 100%;
  24745. }
  24746. .mask {
  24747. background-color: rgba(0, 0, 0, 0);
  24748. position: fixed;
  24749. top: 0;
  24750. left: 0;
  24751. width: 100%;
  24752. height: 100%;
  24753. z-index: 20000;
  24754. display: flex;
  24755. align-items: center;
  24756. justify-content: center;
  24757. }
  24758. .progressBox {
  24759. width: 500px;
  24760. height: 180px;
  24761. background: #fff;
  24762. border-radius: 10px;
  24763. box-shadow: 0 0 6px 1px #bfbfbf;
  24764. display: flex;
  24765. align-items: center;
  24766. justify-content: center;
  24767. flex-direction: column;
  24768. position: relative;
  24769. color: #6c6c6c;
  24770. }
  24771. .progressBox >>> .el-progress-bar__outer {
  24772. background-color: #d1dfff !important;
  24773. }
  24774. .progressBox .lbox {
  24775. height: 50px;
  24776. font-size: 19px;
  24777. display: flex;
  24778. align-items: center;
  24779. color: #747474;
  24780. }
  24781. .progressBox .lbox img {
  24782. width: 40px;
  24783. margin-right: 20px;
  24784. }
  24785. .closeCss {
  24786. position: absolute;
  24787. top: 8px;
  24788. right: 8px;
  24789. cursor: pointer;
  24790. width: 20px;
  24791. height: 20px;
  24792. }
  24793. .closeCss > img {
  24794. width: 100%;
  24795. height: 100%;
  24796. }
  24797. .uploadVedio {
  24798. display: flex;
  24799. flex-direction: column;
  24800. flex-wrap: nowrap;
  24801. justify-content: center;
  24802. align-items: center;
  24803. margin: 0 15px 10px 0;
  24804. }
  24805. .uploadVedio > img {
  24806. width: 30px;
  24807. height: 30px;
  24808. }
  24809. .uploadVedio > span {
  24810. white-space: nowrap;
  24811. overflow: hidden;
  24812. text-overflow: ellipsis;
  24813. width: 75px;
  24814. margin-top: 7px;
  24815. }
  24816. .picName {
  24817. white-space: nowrap;
  24818. overflow: hidden;
  24819. text-overflow: ellipsis;
  24820. width: 75px;
  24821. margin-top: 7px;
  24822. }
  24823. .new_top {
  24824. display: flex;
  24825. background: #fff;
  24826. flex-direction: row;
  24827. justify-content: flex-start;
  24828. align-items: center;
  24829. height: 60px;
  24830. position: fixed;
  24831. top: 20px;
  24832. left: 22%;
  24833. width: 77%;
  24834. z-index: 999;
  24835. border-radius: 12px 12px 0 0;
  24836. border-bottom: 1px solid #cad1dc;
  24837. padding: 10px 0;
  24838. }
  24839. .new_topFixed {
  24840. width: 100%;
  24841. height: 40px;
  24842. position: fixed;
  24843. top: 0px;
  24844. display: block;
  24845. background: #f2f2f2;
  24846. z-index: 998;
  24847. }
  24848. .before {
  24849. position: absolute;
  24850. background: #c3dad4;
  24851. width: 6px;
  24852. height: 100%;
  24853. }
  24854. .courseIndex {
  24855. display: flex;
  24856. flex-direction: row;
  24857. align-items: center;
  24858. width: calc(100% - 745px);
  24859. }
  24860. .courseIndex > div:nth-child(1) {
  24861. margin: 0 0 0 10px;
  24862. font-size: 20px;
  24863. min-width: 100px;
  24864. font-weight: bold;
  24865. border-left: 4px solid #3363b9;
  24866. height: 32px;
  24867. text-align: center;
  24868. line-height: 35px;
  24869. }
  24870. .courseIndex > div:nth-child(2) {
  24871. font-size: 20px;
  24872. /* width: 300px; */
  24873. max-width: calc(100% - 105px);
  24874. white-space: nowrap;
  24875. overflow: hidden;
  24876. text-overflow: ellipsis;
  24877. }
  24878. .courseIndex > div:nth-child(3) {
  24879. border-bottom: 1px solid #d7d7d7;
  24880. padding-bottom: 5px;
  24881. background: #3681fc;
  24882. width: 55px;
  24883. min-width: 55px;
  24884. border-radius: 5px;
  24885. color: #fff;
  24886. text-align: center;
  24887. height: 20px;
  24888. line-height: 26px;
  24889. font-size: 14px;
  24890. margin: 0 0 0 10px;
  24891. }
  24892. .course_text {
  24893. padding: 20px 0 0 15px;
  24894. text-indent: 30px;
  24895. width: 80%;
  24896. min-height: 20px;
  24897. }
  24898. .vedioList {
  24899. background: #f2f2f2;
  24900. border: 1px solid #ececec;
  24901. /* width: 38.8%; */
  24902. /* width: 300px; */
  24903. width: 100%;
  24904. height: 445px;
  24905. border-radius: 10px;
  24906. overflow: hidden;
  24907. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  24908. }
  24909. .vedioNav {
  24910. margin: 10px 0 0 15px;
  24911. border-bottom: 1px solid #d7d7d7;
  24912. padding-bottom: 5px;
  24913. background: #3681fc;
  24914. width: 55px;
  24915. min-width: 55px;
  24916. border-radius: 5px;
  24917. color: #fff;
  24918. text-align: center;
  24919. height: 20px;
  24920. line-height: 26px;
  24921. font-size: 14px;
  24922. }
  24923. .queTop {
  24924. display: flex;
  24925. padding: 20px 0 20px 30px;
  24926. width: 100%;
  24927. flex-direction: row;
  24928. justify-content: flex-start;
  24929. align-items: center;
  24930. box-sizing: border-box;
  24931. }
  24932. .queTopTitle {
  24933. display: flex;
  24934. flex-direction: row;
  24935. flex-wrap: nowrap;
  24936. align-items: center;
  24937. font-weight: bold;
  24938. font-size: 20px;
  24939. color: rgb(14, 30, 51);
  24940. }
  24941. .queTopTitle::before {
  24942. content: "";
  24943. width: 2px;
  24944. height: 22px;
  24945. background: #3681fc;
  24946. border-radius: 3px;
  24947. display: block;
  24948. margin: 2px 6px 0 0;
  24949. }
  24950. .queTopRight {
  24951. display: flex;
  24952. flex-direction: row;
  24953. flex-wrap: nowrap;
  24954. align-items: center;
  24955. }
  24956. .queTopClose {
  24957. margin-right: 20px;
  24958. cursor: pointer;
  24959. position: relative;
  24960. display: flex;
  24961. }
  24962. .closeImg,
  24963. .openImg {
  24964. width: 25px;
  24965. height: 25px;
  24966. position: absolute;
  24967. left: -20px;
  24968. top: -1px;
  24969. }
  24970. .closeImg > img,
  24971. .openImg > img {
  24972. width: 100%;
  24973. height: 100%;
  24974. }
  24975. .question {
  24976. width: 40px;
  24977. margin-right: 10px;
  24978. margin-top: 7px;
  24979. }
  24980. .queTitle {
  24981. margin-left: 5px;
  24982. font-size: 25px;
  24983. display: flex;
  24984. align-items: center;
  24985. }
  24986. .addEditor {
  24987. width: 100px;
  24988. height: 30px;
  24989. background: #42cda6;
  24990. color: #fff;
  24991. border-radius: 5px;
  24992. text-align: center;
  24993. line-height: 30px;
  24994. box-shadow: 1px 3px 6px 1px #bfbfbf;
  24995. cursor: pointer;
  24996. }
  24997. /* .vedioName {
  24998. cursor: pointer;
  24999. margin: 0px 0px 10px 5px;
  25000. white-space: nowrap;
  25001. overflow: hidden;
  25002. text-overflow: ellipsis;
  25003. width: 100%;
  25004. } */
  25005. .vedioTime {
  25006. width: 35px;
  25007. position: absolute;
  25008. color: #fff;
  25009. bottom: 0px;
  25010. right: 0px;
  25011. text-align: center;
  25012. background: #46411f;
  25013. height: 20px;
  25014. font-size: 14px;
  25015. line-height: 20px;
  25016. }
  25017. .homework {
  25018. width: 200px;
  25019. display: flex;
  25020. flex-direction: column;
  25021. flex-wrap: nowrap;
  25022. align-items: center;
  25023. cursor: pointer;
  25024. }
  25025. .homebox {
  25026. display: flex;
  25027. flex-wrap: wrap;
  25028. flex-direction: row;
  25029. justify-content: flex-start;
  25030. align-items: center;
  25031. padding: 15px 0;
  25032. }
  25033. .isChooseActive {
  25034. color: #3681fc !important;
  25035. font-weight: bold !important;
  25036. }
  25037. .chooseWho {
  25038. display: flex;
  25039. width: 100%;
  25040. flex-direction: row;
  25041. flex-wrap: nowrap;
  25042. justify-content: flex-start;
  25043. padding-bottom: 10px;
  25044. }
  25045. .chooseWho > div {
  25046. cursor: pointer;
  25047. padding-bottom: 10px;
  25048. margin: 0 30px 0 0;
  25049. font-weight: 400;
  25050. color: #0e1e33;
  25051. }
  25052. .addPoint > div > img {
  25053. cursor: pointer;
  25054. width: 85px;
  25055. border-radius: 15px;
  25056. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  25057. }
  25058. .addPoint > div {
  25059. display: flex;
  25060. flex-direction: column;
  25061. flex-wrap: nowrap;
  25062. align-items: center;
  25063. }
  25064. .isBorder > div {
  25065. margin: 0 0 10px 0;
  25066. align-items: flex-start !important;
  25067. }
  25068. .noiframeBox {
  25069. display: flex;
  25070. flex-wrap: wrap;
  25071. }
  25072. .iframeBox iframe {
  25073. width: 100%;
  25074. height: 800px;
  25075. border: none;
  25076. margin-bottom: 20px;
  25077. border: 1px solid #ccc;
  25078. }
  25079. .upload_toolBtn {
  25080. background: #3681fc;
  25081. color: #fff;
  25082. width: 110px;
  25083. text-align: center;
  25084. height: 35px;
  25085. line-height: 35px;
  25086. font-size: 14px;
  25087. border-radius: 5px;
  25088. cursor: pointer;
  25089. position: absolute;
  25090. right: 10px;
  25091. bottom: 0;
  25092. }
  25093. .binfo_input,
  25094. .pj {
  25095. font: inherit;
  25096. color: currentColor;
  25097. width: 100%;
  25098. margin: 0;
  25099. padding: 15px 14px;
  25100. display: block;
  25101. min-width: 0;
  25102. outline: none;
  25103. box-sizing: content-box;
  25104. background: none;
  25105. -webkit-tap-highlight-color: transparent;
  25106. border: 1px solid rgba(0, 0, 0, 0.23);
  25107. border-radius: 4px;
  25108. box-sizing: border-box;
  25109. resize: none;
  25110. }
  25111. .binfo_input:focus-visible {
  25112. border: 1px solid rgba(61, 103, 188);
  25113. }
  25114. .dialog_diy >>> .el-dialog__header,
  25115. .dialog_diy1 >>> .el-dialog__header {
  25116. background: #454545 !important;
  25117. padding: 15px 20px;
  25118. }
  25119. .dialog_diy >>> .el-dialog__title,
  25120. .dialog_diy1 >>> .el-dialog__title {
  25121. color: #fff;
  25122. }
  25123. .dialog_diy >>> .el-dialog__headerbtn,
  25124. .dialog_diy1 >>> .el-dialog__headerbtn {
  25125. top: 19px;
  25126. }
  25127. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  25128. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  25129. color: #fff;
  25130. }
  25131. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  25132. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  25133. color: #fff;
  25134. }
  25135. .dialog_diy1 >>> .el-dialog__body {
  25136. padding: 0;
  25137. }
  25138. .dialog_diy >>> .el-dialog__body,
  25139. .dialog_diy >>> .el-dialog__footer,
  25140. .dialog_diy1 >>> .el-dialog__footer {
  25141. background: #fafafa;
  25142. }
  25143. .markScore_diy >>> .el-dialog {
  25144. border-radius: 10px;
  25145. }
  25146. .markScore_diy >>> .el-dialog__body {
  25147. padding: 0;
  25148. height: 621px;
  25149. min-height: calc(100% - 60px);
  25150. }
  25151. .markScore_diy >>> .el-dialog__header {
  25152. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  25153. }
  25154. .markScore_diy >>> .markScore_diyTit {
  25155. width: calc(100% - 60px);
  25156. display: flex;
  25157. justify-content: space-between;
  25158. align-items: center;
  25159. }
  25160. .a_addBox {
  25161. padding: 0 0 0 15px;
  25162. }
  25163. .a_add_box {
  25164. padding: 10px;
  25165. background: #fff;
  25166. margin-bottom: 10px;
  25167. border-radius: 5px;
  25168. box-shadow: 0 0 5px 0 #d5d5d5;
  25169. }
  25170. .a_add_head {
  25171. display: flex;
  25172. align-items: flex-start;
  25173. /* justify-content: space-between; */
  25174. flex-direction: column;
  25175. /* flex-direction: row; */
  25176. margin: 10px 0 20px 0;
  25177. font-size: 18px;
  25178. width: 100%;
  25179. }
  25180. .askIndex {
  25181. background: #3681fc;
  25182. border-radius: 50%;
  25183. color: #fff;
  25184. width: 25px;
  25185. height: 25px;
  25186. min-width: 25px;
  25187. min-height: 25px;
  25188. text-align: center;
  25189. line-height: 25px;
  25190. margin-right: 5px;
  25191. }
  25192. .a_add_head .a_add_head_input {
  25193. width: 300px;
  25194. }
  25195. .a_add_head .a_add_head_div {
  25196. display: flex;
  25197. align-items: center;
  25198. justify-content: space-between;
  25199. }
  25200. .a_add_body {
  25201. display: flex;
  25202. align-items: center;
  25203. }
  25204. .a_add_input {
  25205. display: flex;
  25206. align-items: center;
  25207. flex-wrap: wrap;
  25208. width: 100%;
  25209. }
  25210. .a_add_input >>> .el-radio-group,
  25211. .a_add_input >>> .el-checkbox-group {
  25212. width: 100%;
  25213. }
  25214. .a_add_input >>> .el-radio,
  25215. .a_add_input >>> .el-checkbox {
  25216. display: flex;
  25217. flex-direction: row;
  25218. flex-wrap: nowrap;
  25219. align-items: center;
  25220. padding: 15px 0;
  25221. }
  25222. .a_add_input >>> .el-radio:not(:last-child),
  25223. .a_add_input >>> .el-checkbox:not(:last-child) {
  25224. width: 100%;
  25225. border-bottom: 1px solid #efefef;
  25226. }
  25227. .redioStyle >>> .el-radio__label {
  25228. font-size: 18px;
  25229. }
  25230. .redioStyle >>> .el-radio__label > span,
  25231. .redioStyle >>> .el-checkbox__label > span {
  25232. word-break: break-all;
  25233. white-space: normal;
  25234. }
  25235. .redioStyle >>> .el-checkbox__label {
  25236. font-size: 18px;
  25237. }
  25238. .toolHeng2 {
  25239. width: 100%;
  25240. padding-left: 15px;
  25241. box-sizing: border-box;
  25242. }
  25243. .workNav {
  25244. font-size: 20px;
  25245. font-weight: bold;
  25246. color: #0e1e33;
  25247. display: flex;
  25248. flex-direction: row;
  25249. flex-wrap: nowrap;
  25250. align-items: center;
  25251. padding: 15px 0 15px 0;
  25252. }
  25253. .workNav::before {
  25254. content: "";
  25255. width: 2px;
  25256. height: 22px;
  25257. background: #3681fc;
  25258. border-radius: 3px;
  25259. display: block;
  25260. margin: 2px 6px 0 0;
  25261. }
  25262. .toolHeng {
  25263. display: flex;
  25264. flex-direction: row;
  25265. flex-wrap: wrap;
  25266. justify-content: flex-start;
  25267. align-items: center;
  25268. width: 100%;
  25269. }
  25270. .toolHeng > div {
  25271. padding-left: 20px;
  25272. }
  25273. .isWidth {
  25274. width: 20%;
  25275. }
  25276. .textTitle {
  25277. display: flex;
  25278. flex-direction: row;
  25279. flex-wrap: nowrap;
  25280. align-items: center;
  25281. width: 95%;
  25282. }
  25283. .textTitle >>> .el-form-item__label {
  25284. font-size: 22px;
  25285. color: #918f8f;
  25286. width: 100px;
  25287. }
  25288. .textTitle >>> .el-form-item__content {
  25289. width: calc(100% - 100px);
  25290. }
  25291. .textCss >>> .el-dialog {
  25292. width: 800px !important;
  25293. height: 400px;
  25294. background: #fafafa;
  25295. }
  25296. .textCss >>> .el-dialog__body {
  25297. margin: 55px 8% 0 8%;
  25298. padding: 0 !important;
  25299. }
  25300. .textCss >>> .el-dialog__footer {
  25301. padding-top: 38px;
  25302. }
  25303. .toolsCss >>> .el-dialog__body {
  25304. padding: 20px;
  25305. }
  25306. .lineCss >>> .el-dialog__body {
  25307. display: flex;
  25308. flex-direction: row;
  25309. align-items: center;
  25310. justify-content: center;
  25311. }
  25312. .newNav {
  25313. display: flex;
  25314. flex-direction: row;
  25315. align-items: baseline;
  25316. justify-content: flex-start;
  25317. }
  25318. .navListItem {
  25319. width: calc(100% - 20px);
  25320. height: 50px;
  25321. margin: 0px auto 10px;
  25322. display: flex;
  25323. flex-direction: row;
  25324. flex-wrap: nowrap;
  25325. align-items: center;
  25326. justify-content: space-between;
  25327. background: #f0f4fa;
  25328. border-radius: 6px 6px 6px 6px;
  25329. }
  25330. .navText {
  25331. cursor: pointer;
  25332. white-space: nowrap;
  25333. overflow: hidden;
  25334. text-overflow: ellipsis;
  25335. width: 220px;
  25336. padding: 0 10px;
  25337. font-weight: 400;
  25338. color: #0e1e33;
  25339. }
  25340. .downIcon {
  25341. width: 20px;
  25342. min-width: 20px;
  25343. height: 20px;
  25344. margin-right: 15px;
  25345. cursor: pointer;
  25346. }
  25347. .downIcon > img {
  25348. width: 100%;
  25349. height: 100%;
  25350. }
  25351. .noVedio {
  25352. display: flex;
  25353. flex-direction: row;
  25354. justify-content: center;
  25355. align-content: center;
  25356. }
  25357. .noNavText {
  25358. cursor: pointer;
  25359. margin: 0px 0px 10px 5px;
  25360. width: 112px;
  25361. }
  25362. .listNoVedio {
  25363. margin: 0 0 0 30px;
  25364. width: 97%;
  25365. }
  25366. .video-player >>> .video-js {
  25367. height: 100%;
  25368. }
  25369. .hangVedioList {
  25370. width: 90% !important;
  25371. height: 150px !important;
  25372. margin: 20px 0 0 30px;
  25373. }
  25374. .hangVedio {
  25375. width: 100%;
  25376. height: 170px !important;
  25377. align-items: flex-start !important;
  25378. }
  25379. .hangHand {
  25380. height: 150px !important;
  25381. }
  25382. .twoChild {
  25383. width: 95%;
  25384. margin: 10px;
  25385. border-radius: 5px;
  25386. background: #f2f2f2;
  25387. display: flex;
  25388. flex-direction: column;
  25389. flex-wrap: nowrap;
  25390. justify-content: flex-start;
  25391. align-items: flex-start;
  25392. transition: all 0.5s;
  25393. overflow: hidden;
  25394. height: 0;
  25395. background: #e7f3ff;
  25396. }
  25397. .twoChild > div:nth-child(1) {
  25398. margin-top: 5px;
  25399. }
  25400. .navChild {
  25401. width: 100%;
  25402. cursor: pointer;
  25403. margin-bottom: 10px;
  25404. position: relative;
  25405. }
  25406. .navChild img {
  25407. position: absolute;
  25408. right: 11px;
  25409. width: 15px;
  25410. top: 50%;
  25411. transform: translateY(-50%);
  25412. }
  25413. .navActive,
  25414. .toolActive {
  25415. height: auto !important;
  25416. overflow: auto !important;
  25417. /* padding-bottom: 16px; */
  25418. }
  25419. .toolActive {
  25420. padding: 0;
  25421. }
  25422. .navTask {
  25423. display: flex;
  25424. flex-direction: row;
  25425. flex-wrap: nowrap;
  25426. align-items: center;
  25427. align-content: flex-start;
  25428. height: 40px;
  25429. justify-content: flex-start;
  25430. padding: 0 10px;
  25431. width: 100%;
  25432. box-sizing: border-box;
  25433. }
  25434. .navTaskname {
  25435. white-space: nowrap;
  25436. text-overflow: ellipsis;
  25437. overflow: hidden;
  25438. word-break: break-all;
  25439. padding-left: 5px;
  25440. }
  25441. .openTaskActive {
  25442. /* background-color: #e0eafb !important;
  25443. color: #0061ff; */
  25444. color:#fff;
  25445. background: rgb(55, 129, 252) !important;
  25446. }
  25447. .iframeName {
  25448. margin: 5px 0;
  25449. border-left: 4px solid #41c4a4;
  25450. padding-left: 4px;
  25451. }
  25452. .toolTitle {
  25453. margin: 0px 0px 20px;
  25454. font-size: 20px;
  25455. font-weight: 500;
  25456. border-left: 4px solid #41c4a4;
  25457. padding-left: 4px;
  25458. }
  25459. .cru_selectBox {
  25460. overflow: auto;
  25461. width: 95%;
  25462. margin: 17px auto 0;
  25463. height: calc(100% - 40px - 21px - 20px - 17px);
  25464. background: #fff;
  25465. border-radius: 8px;
  25466. }
  25467. .cru_selectBox::-webkit-scrollbar,
  25468. .study_top::-webkit-scrollbar,
  25469. .textContent::-webkit-scrollbar {
  25470. /*滚动条整体样式*/
  25471. width: 6px;
  25472. /*高宽分别对应横竖滚动条的尺寸*/
  25473. height: 6px;
  25474. }
  25475. /*定义滚动条轨道 内阴影+圆角*/
  25476. .cru_selectBox::-webkit-scrollbar-track,
  25477. .study_top::-webkit-scrollbar-track,
  25478. .textContent::-webkit-scrollbar {
  25479. border-radius: 10px;
  25480. background-color: #b8bdc9;
  25481. }
  25482. /*定义滑块 内阴影+圆角*/
  25483. .cru_selectBox::-webkit-scrollbar-thumb,
  25484. .study_top::-webkit-scrollbar-thumb,
  25485. .textContent::-webkit-scrollbar-thumb {
  25486. border-radius: 10px;
  25487. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  25488. background-color: #2c5ab3;
  25489. }
  25490. .vedioBox {
  25491. border-radius: 0 0 20px 20px;
  25492. background: #fff;
  25493. overflow: auto;
  25494. }
  25495. .taskBox {
  25496. width: 98%;
  25497. background: #f0f4fa;
  25498. margin: 10px auto;
  25499. padding: 0 10px;
  25500. border-radius: 4px;
  25501. box-sizing: border-box;
  25502. }
  25503. .vedioTaskBox {
  25504. width: 100%;
  25505. display: flex;
  25506. flex-direction: row;
  25507. flex-wrap: nowrap;
  25508. align-items: flex-start;
  25509. position: relative;
  25510. }
  25511. .toolBox {
  25512. margin: 15px 0 0 25px;
  25513. display: flex;
  25514. position: relative;
  25515. padding: 18px 20px;
  25516. border-top-left-radius: 5px;
  25517. border-top-right-radius: 5px;
  25518. width: 90%;
  25519. }
  25520. .btnAll {
  25521. position: absolute;
  25522. right: 0;
  25523. display: flex;
  25524. flex-direction: row;
  25525. flex-wrap: nowrap;
  25526. align-items: center;
  25527. }
  25528. .btnLeft,
  25529. .btnRight {
  25530. display: flex;
  25531. flex-direction: row;
  25532. flex-wrap: nowrap;
  25533. align-items: center;
  25534. padding: 5px 0;
  25535. }
  25536. .btnLeft {
  25537. border-right: 1px solid #cad1dc;
  25538. }
  25539. .btnLeft > .custom-tooltip {
  25540. background: #3681fc;
  25541. color: #fff;
  25542. }
  25543. .last:hover {
  25544. background: #3383fa !important;
  25545. color: #fff;
  25546. border: 1px solid #3383fa !important;
  25547. }
  25548. .last,
  25549. .returnBtn1 {
  25550. width: 90px;
  25551. height: 36px;
  25552. background: #ffffff;
  25553. border-radius: 4px;
  25554. border: 1px solid #0061ff;
  25555. color: #0061ff;
  25556. cursor: pointer;
  25557. display: flex;
  25558. flex-direction: row;
  25559. flex-wrap: nowrap;
  25560. align-items: center;
  25561. justify-content: center;
  25562. margin-left: 12px;
  25563. }
  25564. .returnBtn1 {
  25565. background: #f0f4fa;
  25566. border-radius: 4px;
  25567. border: 1px solid #cad1dc;
  25568. margin: 0 12px;
  25569. }
  25570. .lastImg {
  25571. min-width: 15px;
  25572. width: 15px;
  25573. height: 15px;
  25574. display: flex;
  25575. }
  25576. .lastText {
  25577. padding: 0 5px 0 5px;
  25578. box-sizing: border-box;
  25579. font-size: 14px;
  25580. }
  25581. .lastImg > img {
  25582. width: 100%;
  25583. height: 100%;
  25584. }
  25585. /* .vedioTimeBox {
  25586. display: flex;
  25587. flex-direction: row;
  25588. align-items: center;
  25589. flex-wrap: nowrap;
  25590. position: relative;
  25591. } */
  25592. .navBox {
  25593. background: #fff;
  25594. height: calc(100% - 40px);
  25595. overflow-y: auto;
  25596. overflow-x: hidden;
  25597. }
  25598. .worksBox {
  25599. margin: 0 0 10px 25px;
  25600. border-bottom: 1px solid #eeeeee;
  25601. padding: 18px 20px;
  25602. border-radius: 4px;
  25603. width: 90%;
  25604. }
  25605. .worksBTitle {
  25606. font-size: 20px;
  25607. padding-bottom: 15px;
  25608. border-bottom: 1px solid #eeeeee;
  25609. display: flex;
  25610. align-items: center;
  25611. }
  25612. .greenBox {
  25613. width: 5px;
  25614. height: 30px;
  25615. background: #63b6fa;
  25616. margin-right: 5px;
  25617. }
  25618. .worksDetailBox {
  25619. display: flex;
  25620. width: 100%;
  25621. flex-direction: row;
  25622. flex-wrap: wrap;
  25623. align-items: flex-end;
  25624. justify-content: flex-start;
  25625. padding: 15px 5px;
  25626. box-sizing: border-box;
  25627. }
  25628. .works {
  25629. display: flex;
  25630. flex-direction: column;
  25631. flex-wrap: nowrap;
  25632. align-items: flex-start;
  25633. justify-content: flex-start;
  25634. align-content: center;
  25635. max-width: 240px;
  25636. width: calc(100% / 3 - 10px);
  25637. height: auto;
  25638. margin-right: 10px;
  25639. margin-bottom: 10px;
  25640. overflow: hidden;
  25641. height: 140px;
  25642. box-shadow: 0 0 6px 1px #dfdada;
  25643. border-radius: 15px;
  25644. }
  25645. .workImg {
  25646. width: 100%;
  25647. /* height: calc(100% - 40px); */
  25648. height: 105px;
  25649. position: relative;
  25650. }
  25651. .workImg > img {
  25652. width: 100%;
  25653. height: 100%;
  25654. object-fit: contain;
  25655. cursor: pointer;
  25656. }
  25657. .worksName {
  25658. height: 40px;
  25659. line-height: 40px;
  25660. display: flex;
  25661. width: 100%;
  25662. flex-direction: row;
  25663. flex-wrap: nowrap;
  25664. justify-content: space-between;
  25665. align-items: center;
  25666. margin: 0 0 0 10px;
  25667. }
  25668. .worksName > div:nth-child(1) {
  25669. width: 110px;
  25670. white-space: nowrap;
  25671. overflow: hidden;
  25672. text-overflow: ellipsis;
  25673. }
  25674. .worksName > div:nth-child(2) {
  25675. color: #b7b4b5;
  25676. }
  25677. .noWorksS {
  25678. padding: 15px 0;
  25679. display: flex;
  25680. flex-direction: row;
  25681. flex-wrap: wrap;
  25682. align-items: center;
  25683. justify-content: flex-start;
  25684. }
  25685. .noWorksName,
  25686. .isWorksName,
  25687. .isWorksName2 {
  25688. background: #ddebf8;
  25689. color: #000;
  25690. width: 90px;
  25691. height: 25px;
  25692. text-align: center;
  25693. line-height: 25px;
  25694. border-radius: 4px;
  25695. margin: 10px 15px 10px 0;
  25696. white-space: nowrap;
  25697. overflow: hidden;
  25698. padding: 5px;
  25699. text-overflow: ellipsis;
  25700. cursor: pointer;
  25701. border: 1px solid #ddebf8;
  25702. }
  25703. .noWorksName {
  25704. background: #fff;
  25705. color: #0061ff;
  25706. border: 1px solid #0061ff;
  25707. }
  25708. .noWorksName > span{
  25709. max-width: 100%;
  25710. display: block;
  25711. overflow: hidden;
  25712. text-overflow: ellipsis;
  25713. white-space: nowrap;
  25714. }
  25715. .isWorksName2 {
  25716. width: 100px;
  25717. height: 40px;
  25718. line-height: 40px;
  25719. position: relative;
  25720. background: #dae6f9;
  25721. }
  25722. .isWorksName {
  25723. background: #e7ebf1 !important;
  25724. width: 100px;
  25725. height: 40px;
  25726. line-height: 40px;
  25727. position: relative;
  25728. color: #acb4bf;
  25729. border: 1px solid #cad1dc !important;
  25730. }
  25731. .isSelectName,
  25732. .noWorksName:hover {
  25733. background: #3383fa !important;
  25734. color: #fff !important;
  25735. border: 1px solid #3383fa !important;
  25736. }
  25737. .title {
  25738. background: #1e5cc9;
  25739. /* width: 98%; */
  25740. height: 45px;
  25741. color: #fff;
  25742. line-height: 45px;
  25743. padding-left: 20px;
  25744. box-sizing: border-box;
  25745. }
  25746. .textBox {
  25747. font-size: 20px;
  25748. width: 90%;
  25749. display: flex;
  25750. flex-direction: column;
  25751. align-items: center;
  25752. margin: 20px auto 0;
  25753. max-height: calc(100% - 75px);
  25754. overflow: auto;
  25755. }
  25756. .textContent {
  25757. font-size: 18px;
  25758. width: 95%;
  25759. max-width: 95%;
  25760. }
  25761. .answerBg {
  25762. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  25763. background-size: 100% 100%;
  25764. width: 100%;
  25765. height: 100%;
  25766. color: #fff;
  25767. text-align: center;
  25768. display: flex;
  25769. flex-direction: column;
  25770. flex-wrap: nowrap;
  25771. align-items: center;
  25772. position: relative;
  25773. justify-content: center;
  25774. }
  25775. .answerBg > div:nth-child(1) {
  25776. /* font-size: 22px;
  25777. padding: 25px 0 10px; */
  25778. }
  25779. .answerContent {
  25780. width: 215px;
  25781. max-height: 60px;
  25782. word-break: break-all;
  25783. text-align: center;
  25784. /* white-space: nowrap; */
  25785. overflow: hidden;
  25786. text-overflow: ellipsis;
  25787. /* padding: 23px 0 0; */
  25788. -webkit-line-clamp: 3;
  25789. -webkit-box-orient: vertical;
  25790. display: -webkit-box;
  25791. font-size: 15px;
  25792. cursor: pointer;
  25793. }
  25794. .elist_input_box {
  25795. display: flex;
  25796. align-items: flex-start;
  25797. flex-wrap: nowrap;
  25798. padding: 10px 0 15px 30px;
  25799. flex-direction: column;
  25800. }
  25801. .elist_input {
  25802. /* width: 40%; */
  25803. width: 45%;
  25804. margin: 20px;
  25805. }
  25806. .elist_input .elist_input_box input {
  25807. font: inherit;
  25808. color: currentColor;
  25809. width: 200px;
  25810. padding: 8px 14px;
  25811. display: block;
  25812. min-width: 0;
  25813. outline: none;
  25814. border: 1px solid rgba(0, 0, 0, 0.23);
  25815. border-radius: 4px;
  25816. box-sizing: border-box;
  25817. background: #fff;
  25818. margin: 0 20px 0 0;
  25819. }
  25820. .elist_input .elist_input_box span {
  25821. height: 36px;
  25822. line-height: 36px;
  25823. color: rgb(82, 82, 82);
  25824. }
  25825. .elist_input .elist_input_box .remove {
  25826. height: 20px;
  25827. width: 20px;
  25828. background-size: 100% 100%;
  25829. background-position: unset;
  25830. margin-left: 5px;
  25831. }
  25832. .elist_input_box >>> .el-rate {
  25833. display: flex;
  25834. height: 36px;
  25835. align-items: center;
  25836. }
  25837. .elist_input_box .elist_inptu_text {
  25838. min-height: 50px;
  25839. /* width: 500px;
  25840. max-height: 150px; */
  25841. width: 100%;
  25842. line-height: 50px;
  25843. color: rgb(82, 82, 82);
  25844. overflow: auto;
  25845. text-indent: 5px;
  25846. background: #f7f6f9;
  25847. border-radius: 10px;
  25848. }
  25849. .elist_input_box .elist_inptu_text input {
  25850. width: 500px;
  25851. }
  25852. .elist_input_box >>> .el-rate__icon {
  25853. font-size: 24px;
  25854. }
  25855. .isClick {
  25856. background: #4d9def;
  25857. }
  25858. .bzBox {
  25859. display: flex;
  25860. flex-direction: row;
  25861. align-items: center;
  25862. }
  25863. .bzBox .yCss {
  25864. width: 7px;
  25865. height: 7px;
  25866. background: #fff;
  25867. margin: 0 16px 0 6px;
  25868. border-radius: 50%;
  25869. border: 5px solid #3681fc;
  25870. z-index: 99;
  25871. }
  25872. .bzBox > div:nth-child(2) {
  25873. font-size: 18px;
  25874. font-weight: bold;
  25875. color: #0e1e33;
  25876. }
  25877. .navTitile {
  25878. padding: 0 0px 0 15px;
  25879. font-size: 16px;
  25880. font-weight: bold;
  25881. color: #0e1e33;
  25882. height: 40px;
  25883. line-height: 40px;
  25884. }
  25885. .isTypeOne {
  25886. width: 240px;
  25887. height: 170px;
  25888. /* border: 1px solid #f8f8f8; */
  25889. border-radius: 10px;
  25890. box-shadow: 0 0 6px 1px #dfdada;
  25891. }
  25892. .e_add_top {
  25893. display: flex;
  25894. justify-content: space-between;
  25895. padding: 10px 20px;
  25896. border-radius: 3px;
  25897. background: #fff;
  25898. }
  25899. .e_add_title2 {
  25900. display: flex;
  25901. align-items: center;
  25902. }
  25903. .e_add_title2 span {
  25904. width: 40px;
  25905. }
  25906. .e_add_title {
  25907. display: flex;
  25908. align-items: center;
  25909. color: #b8b8b8;
  25910. font-size: 18px;
  25911. position: relative;
  25912. height: 40px;
  25913. }
  25914. .e_add_title span {
  25915. margin-right: 10px;
  25916. }
  25917. .e_add_title .el_input {
  25918. width: 300px;
  25919. }
  25920. .e_add_title >>> .el-input__inner {
  25921. width: 400px;
  25922. }
  25923. .e_add_btn {
  25924. }
  25925. .e_add_content {
  25926. display: flex;
  25927. width: 100%;
  25928. max-width: 650px;
  25929. height: 550px;
  25930. }
  25931. .e_add_list {
  25932. background: #fff;
  25933. height: 500px;
  25934. width: 210px;
  25935. position: relative;
  25936. margin: 15px 5px 0 0;
  25937. flex-shrink: 0;
  25938. display: flex;
  25939. flex-direction: column;
  25940. }
  25941. .e_add_list_title {
  25942. font-size: 20px;
  25943. width: 100%;
  25944. box-sizing: border-box;
  25945. padding: 15px 40px;
  25946. text-align: center;
  25947. border-bottom: 1px solid #eaeaea;
  25948. position: relative;
  25949. display: flex;
  25950. align-items: center;
  25951. justify-content: center;
  25952. height: 57px;
  25953. background: #f6f6f6;
  25954. }
  25955. .e_add_list_title span {
  25956. overflow: hidden;
  25957. white-space: nowrap;
  25958. text-overflow: ellipsis;
  25959. }
  25960. .e_add_list_title img {
  25961. position: absolute;
  25962. right: 15px;
  25963. width: 25px;
  25964. cursor: pointer;
  25965. top: 50%;
  25966. transform: translateY(-50%);
  25967. }
  25968. .e_add_list_body {
  25969. height: calc(100% - 187px);
  25970. overflow: auto;
  25971. }
  25972. .e_add_list_child {
  25973. width: 100%;
  25974. display: flex;
  25975. align-items: center;
  25976. justify-content: center;
  25977. position: relative;
  25978. box-sizing: border-box;
  25979. padding: 15px 40px;
  25980. text-align: center;
  25981. }
  25982. .e_add_list_child span {
  25983. overflow: hidden;
  25984. white-space: nowrap;
  25985. text-overflow: ellipsis;
  25986. cursor: pointer;
  25987. }
  25988. .e_add_list_child img {
  25989. position: absolute;
  25990. right: 10px;
  25991. width: 21px;
  25992. cursor: pointer;
  25993. top: 50%;
  25994. transform: translateY(-50%);
  25995. }
  25996. .e_add_list_child + .e_add_list_child {
  25997. border-top: 1px solid #eaeaea;
  25998. }
  25999. .e_add_list_child .active {
  26000. color: #409eff;
  26001. }
  26002. .e_add_list_btn {
  26003. position: absolute;
  26004. bottom: 0;
  26005. height: 50px;
  26006. background: rgb(120, 120, 254);
  26007. width: 100%;
  26008. color: #fff;
  26009. font-size: 16px;
  26010. text-align: center;
  26011. line-height: 50px;
  26012. cursor: pointer;
  26013. }
  26014. .e_add_list_detail {
  26015. position: absolute;
  26016. bottom: 0;
  26017. height: 130px;
  26018. background: rgb(120, 120, 254);
  26019. width: 100%;
  26020. color: #fff;
  26021. font-size: 16px;
  26022. display: flex;
  26023. align-items: center;
  26024. justify-content: center;
  26025. }
  26026. .e_add_list_detail textarea {
  26027. height: 90%;
  26028. width: 95%;
  26029. border: none;
  26030. resize: none;
  26031. outline: none;
  26032. padding: 5px;
  26033. box-sizing: border-box;
  26034. }
  26035. .e_add_list_pbox {
  26036. width: 100%;
  26037. max-width: 650px;
  26038. /* height: 600px; */
  26039. }
  26040. .e_add_list_pbox_title {
  26041. height: 50px;
  26042. background: #fff;
  26043. display: flex;
  26044. align-items: center;
  26045. width: 100%;
  26046. box-sizing: border-box;
  26047. padding: 0 20px;
  26048. }
  26049. .type_title {
  26050. font-size: 18px;
  26051. font-weight: 700;
  26052. }
  26053. .type_content {
  26054. font-size: 16px;
  26055. /* margin-left: 30px; */
  26056. }
  26057. .type_content span + span {
  26058. margin-left: 20px;
  26059. }
  26060. .type_content span {
  26061. cursor: pointer;
  26062. padding-bottom: 5px;
  26063. box-sizing: border-box;
  26064. }
  26065. .type_content .active {
  26066. color: #409eff;
  26067. border-bottom: 2px solid #409eff;
  26068. }
  26069. .e_add_list_pbox_content {
  26070. height: calc(100% - 50px);
  26071. display: flex;
  26072. align-items: center;
  26073. width: 100%;
  26074. background: #fff;
  26075. }
  26076. .evaCss {
  26077. display: flex;
  26078. flex-direction: row;
  26079. flex-wrap: nowrap;
  26080. align-items: flex-start;
  26081. padding: 0 0 20px;
  26082. }
  26083. .cru_line {
  26084. position: absolute;
  26085. bottom: 0px;
  26086. transition: all 0.5s;
  26087. left: 0px;
  26088. width: 125px;
  26089. margin-left: -25px;
  26090. }
  26091. .isNoMessage {
  26092. width: 20%;
  26093. margin: 25% auto 0;
  26094. }
  26095. .isNoMessage > img {
  26096. width: 100%;
  26097. height: 100%;
  26098. }
  26099. .fullStyle >>> .el-dialog__body {
  26100. height: 100% !important;
  26101. }
  26102. .fullStyle >>> .el-dialog,
  26103. .fullStyle {
  26104. width: 100% !important;
  26105. max-width: 100% !important;
  26106. height: 100% !important;
  26107. margin: 0 !important;
  26108. }
  26109. .full_diy >>> .el-dialog {
  26110. margin: 0 !important;
  26111. height: 100%;
  26112. padding: 4px;
  26113. }
  26114. .full_diy >>> .el-dialog__body {
  26115. height: calc(100% - 100px);
  26116. }
  26117. .full_diy2 >>> .el-dialog__body {
  26118. height: calc(100% - 50px);
  26119. padding: 0;
  26120. }
  26121. .switchCss {
  26122. /* width: 100%; */
  26123. display: flex;
  26124. flex-direction: row;
  26125. flex-wrap: nowrap;
  26126. align-items: center;
  26127. /* justify-content: center; */
  26128. }
  26129. .isClickNav {
  26130. /* color: #499eef; */
  26131. color: #000;
  26132. }
  26133. .commentImg {
  26134. width: 25px;
  26135. height: 25px;
  26136. cursor: pointer;
  26137. }
  26138. .commentImg > img {
  26139. width: 100%;
  26140. height: 100%;
  26141. }
  26142. .comment {
  26143. background: #f9f9f9;
  26144. border-radius: 0 0 4px 4px;
  26145. display: flex;
  26146. flex-direction: row;
  26147. flex-wrap: nowrap;
  26148. align-items: center;
  26149. justify-content: flex-end;
  26150. height: 35px;
  26151. }
  26152. .commentList {
  26153. display: flex;
  26154. flex-direction: row;
  26155. flex-wrap: nowrap;
  26156. align-items: center;
  26157. justify-content: center;
  26158. align-content: center;
  26159. /* margin-left: 15px; */
  26160. /* margin-left: 8px; */
  26161. }
  26162. .scoreImg {
  26163. width: 17px;
  26164. height: 17px;
  26165. }
  26166. .studentDetail {
  26167. display: flex;
  26168. flex-direction: row;
  26169. flex-wrap: nowrap;
  26170. /* align-items: center; */
  26171. align-items: flex-start;
  26172. }
  26173. .tx {
  26174. width: 50px;
  26175. }
  26176. .tx > img {
  26177. width: 100%;
  26178. height: 100%;
  26179. }
  26180. .nameAndTime {
  26181. display: flex;
  26182. flex-direction: column;
  26183. flex-wrap: nowrap;
  26184. align-items: flex-start;
  26185. margin-left: 10px;
  26186. }
  26187. .worksAnswer {
  26188. color: #4078dd;
  26189. margin: 10px 0;
  26190. font-size: 16px;
  26191. position: relative;
  26192. }
  26193. .worksAnswer > img {
  26194. width: 500px;
  26195. height: 300px;
  26196. object-fit: contain;
  26197. margin: 0 auto;
  26198. display: block;
  26199. }
  26200. .commentTop {
  26201. border-bottom: 1px solid #eaeaea;
  26202. padding-bottom: 10px;
  26203. }
  26204. .commentBox {
  26205. padding-top: 15px;
  26206. }
  26207. .pl {
  26208. font-size: 18px;
  26209. }
  26210. .plPerson {
  26211. width: 100%;
  26212. }
  26213. .plName {
  26214. display: flex;
  26215. flex-direction: row;
  26216. flex-wrap: nowrap;
  26217. align-items: baseline;
  26218. color: #78787a;
  26219. width: 100%;
  26220. }
  26221. .deleteComment {
  26222. cursor: pointer;
  26223. margin-left: auto;
  26224. color: #237ade;
  26225. }
  26226. .plContent {
  26227. margin-top: 5px;
  26228. }
  26229. .evalCss {
  26230. background: #fff;
  26231. font-size: 18px;
  26232. }
  26233. .nav {
  26234. color: #9d9d9d;
  26235. padding: 5px 0 15px 20px;
  26236. }
  26237. .middleBox {
  26238. padding: 5px 0 15px 20px;
  26239. }
  26240. .pfBox {
  26241. padding-bottom: 30px;
  26242. }
  26243. .nameAndrate {
  26244. display: flex;
  26245. flex-direction: row;
  26246. flex-wrap: nowrap;
  26247. align-items: center;
  26248. padding-bottom: 10px;
  26249. height: 30px;
  26250. line-height: 30px;
  26251. }
  26252. .nameAndrate > div {
  26253. margin-left: 10px;
  26254. color: #000;
  26255. height: 30px;
  26256. }
  26257. .nameAndrate >>> .el-rate__icon {
  26258. font-size: 28px !important;
  26259. }
  26260. .pfBox > div:nth-child(2) {
  26261. background: #f7f6f9;
  26262. width: 400px;
  26263. min-height: 45px;
  26264. border-radius: 10px;
  26265. font-size: 16px;
  26266. display: flex;
  26267. flex-wrap: wrap;
  26268. align-items: center;
  26269. padding: 10px 20px;
  26270. box-sizing: border-box;
  26271. color: #000;
  26272. }
  26273. .bz {
  26274. display: flex;
  26275. flex-direction: row;
  26276. flex-wrap: nowrap;
  26277. align-items: flex-start;
  26278. }
  26279. .bz > div {
  26280. padding: 0 10px;
  26281. }
  26282. .select_box2_title {
  26283. background: #fff;
  26284. border-radius: 5px;
  26285. padding: 15px 10px;
  26286. box-sizing: border-box;
  26287. margin-bottom: 10px;
  26288. display: flex;
  26289. flex-direction: row;
  26290. flex-wrap: nowrap;
  26291. align-items: center;
  26292. }
  26293. .select_box2_title > div:nth-child(2) {
  26294. margin-left: 10px;
  26295. color: #c4c4c4;
  26296. }
  26297. .select_box2_box {
  26298. display: flex;
  26299. height: 500px;
  26300. }
  26301. .select_box2_img {
  26302. width: calc(100% - 310px);
  26303. height: 100%;
  26304. overflow: auto;
  26305. background: #fff;
  26306. border-radius: 5px;
  26307. }
  26308. .select_box2_img img {
  26309. width: 100%;
  26310. }
  26311. .select_box2_answer {
  26312. background: #fff;
  26313. margin-left: 10px;
  26314. border-radius: 5px;
  26315. width: 300px;
  26316. overflow: auto;
  26317. height: 90%;
  26318. display: flex;
  26319. flex-direction: column;
  26320. align-items: flex-start;
  26321. padding-top: 10px;
  26322. box-sizing: border-box;
  26323. position: relative;
  26324. }
  26325. .select_answer_title {
  26326. padding: 0 0 15px 20px;
  26327. color: #c4c4c4;
  26328. }
  26329. .select_box2_answer_box {
  26330. margin: 0 0 10px 20px;
  26331. width: 85%;
  26332. display: flex;
  26333. flex-direction: row;
  26334. flex-wrap: nowrap;
  26335. align-items: center;
  26336. }
  26337. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  26338. color: #000;
  26339. }
  26340. .upAnswerCss {
  26341. position: absolute;
  26342. bottom: 15px;
  26343. right: 15px;
  26344. }
  26345. .upAnswerCss >>> .el-button {
  26346. width: 95px;
  26347. height: 35px;
  26348. line-height: 35px;
  26349. padding: 0;
  26350. }
  26351. .rightWidthCss {
  26352. width: 60%;
  26353. display: flex;
  26354. flex-direction: row;
  26355. align-items: flex-start;
  26356. }
  26357. .rightAnswer {
  26358. display: flex;
  26359. flex-direction: row;
  26360. flex-wrap: nowrap;
  26361. align-items: center;
  26362. color: red;
  26363. margin-bottom: 31px;
  26364. }
  26365. .rightAnswerCss {
  26366. display: flex;
  26367. flex-direction: column;
  26368. flex-wrap: nowrap;
  26369. padding-top: 60px;
  26370. }
  26371. .blueCss {
  26372. color: #767de1;
  26373. margin-left: 10px;
  26374. }
  26375. .redCss {
  26376. color: red;
  26377. }
  26378. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  26379. color: rgb(0 123 255) !important;
  26380. }
  26381. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  26382. color: rgb(0 123 255) !important;
  26383. }
  26384. .zuoyeYulan {
  26385. padding-top: 0;
  26386. font-size: 18px;
  26387. display: flex;
  26388. align-items: flex-end;
  26389. }
  26390. .buttonA {
  26391. margin-left: 10px;
  26392. padding: 0;
  26393. }
  26394. .displayBox {
  26395. margin-bottom: 10px;
  26396. display: block;
  26397. border-bottom: 3px solid #eee;
  26398. display: flex;
  26399. align-items: center;
  26400. }
  26401. .easy_comment {
  26402. width: calc(100% - 90px);
  26403. margin-left: 10px;
  26404. display: flex;
  26405. flex-wrap: wrap;
  26406. }
  26407. .easy_comment > div {
  26408. border: 1px solid #4a4a4a;
  26409. color: #666;
  26410. border-radius: 15px;
  26411. padding: 5px 10px;
  26412. font-size: 16px;
  26413. margin-bottom: 10px;
  26414. margin-right: 5px;
  26415. cursor: pointer;
  26416. }
  26417. .easy_comment div:hover {
  26418. border: 1px solid #f7ba2a;
  26419. color: #c69217;
  26420. }
  26421. .xuan_right_box {
  26422. padding: 10px 0;
  26423. background: #f0f4fa;
  26424. margin: 0 15px 0 25px;
  26425. border-bottom-left-radius: 5px;
  26426. border-bottom-right-radius: 5px;
  26427. width: 91.5%;
  26428. }
  26429. .tool_right_box {
  26430. display: flex;
  26431. align-items: center;
  26432. }
  26433. .tool_right_box + .tool_right_box {
  26434. margin-top: 10px;
  26435. }
  26436. .right_box_xuan {
  26437. border-radius: 5px;
  26438. padding: 5px;
  26439. margin-left: 10px;
  26440. min-width: 85px;
  26441. background: #fff;
  26442. color: #0061ff;
  26443. border: 1px solid #0061ff;
  26444. font-size: 14px;
  26445. }
  26446. .pButton:hover {
  26447. opacity: 1 !important;
  26448. }
  26449. .pButton {
  26450. position: fixed;
  26451. text-align: center;
  26452. cursor: pointer;
  26453. z-index: 999;
  26454. right: 20px;
  26455. top: 110px;
  26456. width: 50px;
  26457. height: 50px;
  26458. display: flex;
  26459. align-items: center;
  26460. justify-content: center;
  26461. border-radius: 5px;
  26462. }
  26463. .pzClass {
  26464. width: calc(100% - 340px);
  26465. }
  26466. .newDialogCss {
  26467. /* position: fixed;
  26468. right: 5%;
  26469. top: 50%;
  26470. width: 340px;
  26471. transform: translateY(-50%);
  26472. height: 60%;
  26473. box-shadow: 0px 0 8px 0px #555555;
  26474. border-radius: 15px;
  26475. z-index: 999; */
  26476. position: fixed;
  26477. right: 20px;
  26478. top: 101px;
  26479. width: 330px;
  26480. height: calc(100% - 80px);
  26481. z-index: 999;
  26482. background: #fff;
  26483. border-top-right-radius: 0px;
  26484. border-bottom-right-radius: 0px;
  26485. overflow: hidden;
  26486. }
  26487. .newDialogCss>.scoreList{
  26488. width:100%;
  26489. height:100%;
  26490. box-sizing:border-box;
  26491. padding:10px 15px;
  26492. overflow:auto;
  26493. padding-bottom:80px;
  26494. }
  26495. .pzTop {
  26496. color: #fff;
  26497. background: #000;
  26498. display: flex;
  26499. flex-direction: row;
  26500. flex-wrap: nowrap;
  26501. align-items: center;
  26502. justify-content: space-between;
  26503. height: 40px;
  26504. border-radius: 15px 15px 0 0;
  26505. user-select: none;
  26506. }
  26507. .pzTop2 .checkbox {
  26508. display: flex;
  26509. align-items: center;
  26510. padding: 5px 10px;
  26511. flex: 0 0 auto;
  26512. font-weight: bold;
  26513. border-bottom: 1px solid #eee;
  26514. justify-content: space-between;
  26515. }
  26516. .checkbox>.cb-tabList{
  26517. display:flex;
  26518. align-items:center;
  26519. }
  26520. .cb-tabList>div{
  26521. margin-right:20px;
  26522. font-weight:400;
  26523. cursor:pointer;
  26524. }
  26525. .cb-tabList>.cb-tabItem{
  26526. color:#1684FC;
  26527. position:relative;
  26528. }
  26529. .cb-tabItem::after{
  26530. content:"";
  26531. width:100%;
  26532. height:2px;
  26533. background:#1684FC;
  26534. position:absolute;
  26535. bottom:-5px;
  26536. left:0
  26537. }
  26538. .pzTop2 .check {
  26539. text-align: center;
  26540. cursor: pointer;
  26541. box-sizing: border-box;
  26542. display: flex;
  26543. }
  26544. .pzTop2 img {
  26545. width: 25px;
  26546. cursor: pointer;
  26547. }
  26548. .pzTop > div:nth-child(1) {
  26549. padding-left: 10px;
  26550. }
  26551. .pzTop > div:nth-child(2) {
  26552. width: 15px;
  26553. height: 15px;
  26554. padding-right: 10px;
  26555. cursor: pointer;
  26556. }
  26557. .pzTop > div:nth-child(2) > img {
  26558. width: 100%;
  26559. height: 100%;
  26560. }
  26561. .pzBox,
  26562. .noPzBox {
  26563. height: calc(100% - 60px);
  26564. /* background: #ededed; */
  26565. background: #fff;
  26566. /* border-radius: 0 0 15px 15px; */
  26567. }
  26568. .noPzBox {
  26569. display: flex;
  26570. flex-direction: column;
  26571. flex-wrap: nowrap;
  26572. justify-content: center;
  26573. align-items: center;
  26574. }
  26575. .pzList {
  26576. background: #f7f7f7;
  26577. width: 90%;
  26578. margin: 0 auto 15px;
  26579. border-radius: 5px;
  26580. }
  26581. .pzNavTop {
  26582. display: flex;
  26583. flex-direction: row;
  26584. flex-wrap: nowrap;
  26585. padding: 10px 10px 0 10px;
  26586. align-items: center;
  26587. }
  26588. .pzDelete {
  26589. cursor: pointer;
  26590. margin-left: auto;
  26591. font-size: 14px;
  26592. color: #afafaf;
  26593. }
  26594. .pzNavTop > div:nth-child(1) {
  26595. background: #3760af;
  26596. width: 35px;
  26597. height: 35px;
  26598. color: #fff;
  26599. text-align: center;
  26600. line-height: 35px;
  26601. border-radius: 50%;
  26602. font-size: 14px;
  26603. }
  26604. .pzNavTop > div:nth-child(2) {
  26605. font-size: 18px;
  26606. color: #959595;
  26607. margin-left: 5px;
  26608. }
  26609. .pzContent {
  26610. padding: 10px;
  26611. word-break: break-word;
  26612. }
  26613. .pzContent audio {
  26614. width: 100%;
  26615. }
  26616. .pzContent audio::-webkit-media-controls-panel {
  26617. background: #fff;
  26618. }
  26619. .pzContent >>> img {
  26620. max-width: 100%;
  26621. }
  26622. .pzListBox {
  26623. padding-top: 15px;
  26624. height: calc(100% - 110px);
  26625. overflow: auto;
  26626. }
  26627. .addPzButton {
  26628. position: relative;
  26629. margin-top: 3px;
  26630. width: 100%;
  26631. }
  26632. .addPzButton .img1 {
  26633. position: absolute;
  26634. top: 50%;
  26635. right: 25px;
  26636. transform: translateY(-50%);
  26637. height: 100%;
  26638. display: flex;
  26639. align-items: center;
  26640. }
  26641. .addPzButton .img1 div {
  26642. display: flex;
  26643. }
  26644. .addPzButton .img1 div img {
  26645. width: 28px;
  26646. margin-left: 10px;
  26647. cursor: pointer;
  26648. }
  26649. .addPzButton .img1 div span {
  26650. font-size: 14px;
  26651. margin: 4px 0 0 3px;
  26652. color: #afafaf;
  26653. }
  26654. .addPz {
  26655. background: #4b79ce;
  26656. width: 100px;
  26657. color: #fff;
  26658. font-size: 12px;
  26659. height: 30px;
  26660. margin: 0 auto;
  26661. text-align: center;
  26662. line-height: 30px;
  26663. border-radius: 10px;
  26664. cursor: pointer;
  26665. }
  26666. .addDialogCss {
  26667. position: fixed;
  26668. width: 600px;
  26669. height: 70%;
  26670. min-height: 450px;
  26671. box-shadow: 0px 0 8px 0px #555555;
  26672. border-radius: 15px;
  26673. z-index: 999;
  26674. left: 50%;
  26675. top: 50%;
  26676. margin: -18% 0 0 -300px;
  26677. }
  26678. .teacherPz {
  26679. display: flex;
  26680. flex-direction: row;
  26681. align-items: center;
  26682. flex-wrap: nowrap;
  26683. }
  26684. .teacherPzImg {
  26685. width: 30px;
  26686. height: 30px;
  26687. }
  26688. .teacherPzImg > img {
  26689. width: 100%;
  26690. height: 100%;
  26691. }
  26692. .addPzBox {
  26693. height: calc(100% - 40px);
  26694. background: #ededed;
  26695. border-bottom-left-radius: 15px;
  26696. border-bottom-right-radius: 15px;
  26697. }
  26698. .pzAudioClass {
  26699. margin: 15px 14px;
  26700. background: #fff;
  26701. height: 100%;
  26702. display: flex;
  26703. justify-content: center;
  26704. align-items: center;
  26705. }
  26706. .pzConText {
  26707. width: 95%;
  26708. height: 100%;
  26709. margin: 10px auto 0;
  26710. border: none;
  26711. background: #fff;
  26712. border-radius: 0px;
  26713. }
  26714. .pzConText >>> .text {
  26715. height: calc(100% - 82px);
  26716. }
  26717. .addTextCss {
  26718. background: #4b79ce;
  26719. width: 80px;
  26720. height: 30px;
  26721. text-align: center;
  26722. color: #fff;
  26723. line-height: 30px;
  26724. border-radius: 10px;
  26725. margin: 10px auto 0;
  26726. cursor: pointer;
  26727. }
  26728. .pzConText:focus-visible {
  26729. border: none !important;
  26730. }
  26731. .maxWidth {
  26732. width: 1000px;
  26733. }
  26734. .noPz {
  26735. width: 150px;
  26736. margin: 0 auto 20%;
  26737. }
  26738. .noPz > img {
  26739. width: 100%;
  26740. height: 100%;
  26741. }
  26742. .timeAndReply {
  26743. display: flex;
  26744. flex-direction: row;
  26745. flex-wrap: nowrap;
  26746. justify-content: space-between;
  26747. align-items: center;
  26748. font-size: 14px;
  26749. box-sizing: border-box;
  26750. padding: 0 10px 10px 0px;
  26751. }
  26752. .timeAndReply .time {
  26753. color: #bfbfbf;
  26754. padding: 0 0 0 10px;
  26755. box-sizing: border-box;
  26756. }
  26757. .timeAndReply > div:last-child {
  26758. cursor: pointer;
  26759. color: #777;
  26760. }
  26761. /* table 样式 */
  26762. .cont >>> table {
  26763. border-top: 1px solid #ccc;
  26764. border-left: 1px solid #ccc;
  26765. }
  26766. .cont >>> table td,
  26767. .cont >>> table th {
  26768. border-bottom: 1px solid #ccc;
  26769. border-right: 1px solid #ccc;
  26770. /* padding: 20px 5px; */
  26771. padding: 5px 10px;
  26772. max-width: 0px;
  26773. height: 30px;
  26774. vertical-align: baseline;
  26775. box-sizing: border-box;
  26776. }
  26777. .cont >>> table th {
  26778. border-bottom: 2px solid #ccc;
  26779. text-align: center;
  26780. }
  26781. /* blockquote 样式 */
  26782. .cont >>> blockquote {
  26783. display: block;
  26784. border-left: 8px solid #d0e5f2;
  26785. padding: 5px 10px;
  26786. margin: 10px 0;
  26787. line-height: 1.4;
  26788. font-size: 100%;
  26789. background-color: #f1f1f1;
  26790. }
  26791. /* code 样式 */
  26792. .cont >>> code {
  26793. display: inline-block;
  26794. /* *display: inline; */
  26795. zoom: 1;
  26796. background-color: #f1f1f1;
  26797. border-radius: 3px;
  26798. padding: 3px 5px;
  26799. margin: 0 3px;
  26800. }
  26801. .cont >>> pre code {
  26802. display: block;
  26803. }
  26804. /* ul ol 样式 */
  26805. .cont >>> ul,
  26806. ol {
  26807. margin: 10px 0 10px 20px;
  26808. }
  26809. .addPzCheck {
  26810. display: flex;
  26811. flex-direction: row;
  26812. flex-wrap: nowrap;
  26813. padding: 10px 15px 0;
  26814. }
  26815. .addPzCheck span {
  26816. cursor: pointer;
  26817. padding-bottom: 5px;
  26818. font-weight: bold;
  26819. }
  26820. .addPzCheck span + span {
  26821. margin-left: 10px;
  26822. }
  26823. .addPzCheck .isChooseActive {
  26824. color: #3e88f4;
  26825. border-bottom: 2px solid #2f80f3;
  26826. }
  26827. /* code 样式 */
  26828. .cont {
  26829. /* -webkit-user-modify: read-write; */
  26830. overflow-wrap: break-word;
  26831. -webkit-line-break: after-white-space;
  26832. word-break: break-word;
  26833. white-space: pre-line;
  26834. }
  26835. .scoreBox,
  26836. .scoreDetailBox {
  26837. display: flex;
  26838. align-items: center;
  26839. justify-content: flex-start;
  26840. margin-top: 20px;
  26841. font-size: 18px;
  26842. width: 100%;
  26843. }
  26844. .scoreBox .t,
  26845. .scoreDetailBox .t {
  26846. margin-right: 10px;
  26847. width: 100px;
  26848. text-align: right;
  26849. }
  26850. .scoreDetailBox {
  26851. align-items: flex-start;
  26852. }
  26853. .scoreDetailBox >>> .el-textarea {
  26854. width: calc(100% - 200px);
  26855. }
  26856. .scoreBox >>> .el-input {
  26857. width: 130px;
  26858. font-size: 38px;
  26859. }
  26860. .scoreBox >>> .el-input__inner {
  26861. height: 60px;
  26862. }
  26863. .answerScore {
  26864. position: absolute;
  26865. top: 10px;
  26866. right: 10px;
  26867. background: #0000008f;
  26868. border-radius: 5px;
  26869. padding: 3px 5px;
  26870. font-size: 14px;
  26871. color: #fff;
  26872. cursor: pointer;
  26873. }
  26874. .open_box .switch_box {
  26875. width: 100%;
  26876. margin: 0 auto;
  26877. display: flex;
  26878. justify-content: space-between;
  26879. }
  26880. .open_box .switch_box + .switch_box {
  26881. margin-top: 10px;
  26882. }
  26883. .deleteImg,.deleteImg1 {
  26884. width: 25px !important;
  26885. height: 25px !important;
  26886. cursor: pointer;
  26887. position: absolute;
  26888. top: 10px;
  26889. right: 10px;
  26890. }
  26891. .deleteImg2 {
  26892. width: 23px !important;
  26893. height: 23px !important;
  26894. top: 5px;
  26895. right: 5px;
  26896. }
  26897. .deleteImg1{
  26898. width: 23px !important;
  26899. height: 23px !important;
  26900. top: 5px !important;
  26901. right: 30px !important;
  26902. }
  26903. .rightW {
  26904. right: 40px;
  26905. }
  26906. .drawPBox {
  26907. display: flex;
  26908. flex-direction: column;
  26909. position: relative;
  26910. }
  26911. .drawPBox span {
  26912. font-size: 18px;
  26913. color: #606266;
  26914. padding-bottom: 10px;
  26915. margin: 10px 0;
  26916. border-bottom: 1px solid #eaeaea;
  26917. }
  26918. .drawPBox img {
  26919. width: 500px;
  26920. height: 300px;
  26921. object-fit: contain;
  26922. cursor: pointer;
  26923. margin: 0 auto;
  26924. }
  26925. .sentenBox {
  26926. background: #fff;
  26927. height: 450px;
  26928. overflow: auto;
  26929. background-image: url("../../assets/icon/conSentences/stuBg.png");
  26930. background-position: 102%;
  26931. background-repeat: no-repeat;
  26932. background-size: 60%;
  26933. }
  26934. .addSen {
  26935. background: #409efe;
  26936. width: 90px;
  26937. color: #fff;
  26938. height: 35px;
  26939. text-align: center;
  26940. line-height: 35px;
  26941. border-radius: 5px;
  26942. float: right;
  26943. margin: 10px 20px 0 0;
  26944. cursor: pointer;
  26945. }
  26946. .sentenTop {
  26947. display: flex;
  26948. flex-direction: row;
  26949. flex-wrap: nowrap;
  26950. align-items: center;
  26951. padding: 55px 0 0 20px;
  26952. box-sizing: border-box;
  26953. }
  26954. .sentenTop > div:nth-child(2) {
  26955. width: 300px;
  26956. margin: 0 15px;
  26957. }
  26958. .sentenTop > div:nth-child(3) {
  26959. background: #409efe;
  26960. color: #fff;
  26961. width: 65px;
  26962. height: 35px;
  26963. text-align: center;
  26964. line-height: 35px;
  26965. border-radius: 5px;
  26966. cursor: pointer;
  26967. }
  26968. .cardList,
  26969. .cardList1 {
  26970. padding: 10px 0 10px 0;
  26971. display: flex;
  26972. flex-direction: row;
  26973. flex-wrap: wrap;
  26974. align-items: center;
  26975. box-sizing: border-box;
  26976. border-bottom: 1px solid #f4f4f4;
  26977. width: 98%;
  26978. margin: 0 auto;
  26979. min-width: 60%;
  26980. max-width: 85%;
  26981. }
  26982. .cardList1 {
  26983. padding: 10px 0 10px 10px !important;
  26984. margin: 0 !important;
  26985. }
  26986. .cardBox {
  26987. display: flex;
  26988. flex-direction: row;
  26989. flex-wrap: wrap;
  26990. align-items: center;
  26991. align-content: center;
  26992. }
  26993. .cardBox > div {
  26994. margin-bottom: 10px;
  26995. }
  26996. .isCard,
  26997. .isChooseCard,
  26998. .noCard,
  26999. .isCard1 {
  27000. min-width: 130px;
  27001. width: auto;
  27002. height: 60px;
  27003. text-align: center;
  27004. line-height: 60px;
  27005. font-size: 20px;
  27006. cursor: pointer;
  27007. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  27008. background-size: cover;
  27009. transition: all 2s;
  27010. margin-right: 20px;
  27011. background-size: 100% 100%;
  27012. padding: 0 20px;
  27013. box-sizing: border-box;
  27014. }
  27015. .isCard > div,
  27016. .noCard > div,
  27017. .isCard1 > div {
  27018. white-space: nowrap;
  27019. overflow: hidden;
  27020. text-overflow: ellipsis;
  27021. width: 100%;
  27022. margin: 0 auto;
  27023. }
  27024. .noCard {
  27025. background-image: none;
  27026. }
  27027. .isCard1 {
  27028. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  27029. }
  27030. .isChooseCard {
  27031. background-image: none;
  27032. border: 1px dashed #b9b9b9;
  27033. border-radius: 10px;
  27034. }
  27035. .card {
  27036. width: 130px;
  27037. height: 60px;
  27038. }
  27039. .card > img {
  27040. width: 100%;
  27041. height: 100%;
  27042. }
  27043. .rightCardBox {
  27044. margin: 10px 0 0 10px;
  27045. }
  27046. .rightCardBox > div:nth-child(1) {
  27047. margin-bottom: 10px;
  27048. }
  27049. .cardCss {
  27050. display: flex;
  27051. flex-direction: column;
  27052. flex-wrap: nowrap;
  27053. align-items: center;
  27054. border-bottom: 3px solid #b4c3d3;
  27055. padding: 0 0 5px 0;
  27056. margin-right: 10px;
  27057. }
  27058. .cardCss > div:nth-child(2) {
  27059. background: #5b7b9d;
  27060. color: #fff;
  27061. width: 20px;
  27062. height: 20px;
  27063. border-radius: 50%;
  27064. text-align: center;
  27065. line-height: 20px;
  27066. }
  27067. .isWrong {
  27068. display: flex;
  27069. flex-direction: row;
  27070. flex-wrap: nowrap;
  27071. align-content: center;
  27072. align-items: center;
  27073. }
  27074. .answerRight {
  27075. width: 25%;
  27076. }
  27077. .isTj {
  27078. display: flex;
  27079. flex-direction: row;
  27080. flex-wrap: nowrap;
  27081. align-items: center;
  27082. }
  27083. .isTj > div:nth-child(2) {
  27084. color: #727070;
  27085. margin-left: 10px;
  27086. }
  27087. .isTjImg {
  27088. width: 30px;
  27089. height: 30px;
  27090. }
  27091. .isTjImg > img {
  27092. width: 100%;
  27093. height: 100%;
  27094. }
  27095. .cardAnswerBox {
  27096. font-size: 18px;
  27097. width: 97%;
  27098. border: 5px;
  27099. padding: 0;
  27100. border-radius: 5px;
  27101. margin: 10px auto;
  27102. word-break: break-word;
  27103. }
  27104. .w_name {
  27105. margin-bottom: 10px;
  27106. }
  27107. .w_name span {
  27108. font-size: 16px;
  27109. }
  27110. .w_teachert {
  27111. width: 50px !important;
  27112. position: absolute;
  27113. height: auto !important;
  27114. z-index: 10;
  27115. right: 25px;
  27116. top: -25px;
  27117. }
  27118. /* .group_workBox {
  27119. } */
  27120. .group_workBox + .group_workBox {
  27121. margin-top: 20px;
  27122. }
  27123. .group_box {
  27124. padding-bottom: 20px;
  27125. border-bottom: 2px solid #f0f0f0;
  27126. margin-top: 10px;
  27127. }
  27128. .group_title {
  27129. display: flex;
  27130. align-items: center;
  27131. justify-content: space-between;
  27132. width: 95%;
  27133. }
  27134. .group_name {
  27135. background-image: url(../../assets/icon/groupN.png);
  27136. width: 220px;
  27137. background-size: 100% 100%;
  27138. height: 67px;
  27139. padding: 0 20px 0 43px;
  27140. box-sizing: border-box;
  27141. line-height: 63px;
  27142. color: #fff;
  27143. overflow: hidden;
  27144. white-space: nowrap;
  27145. text-overflow: ellipsis;
  27146. }
  27147. .group_work {
  27148. width: 100%;
  27149. padding: 0 10px;
  27150. box-sizing: border-box;
  27151. display: flex;
  27152. flex-wrap: wrap;
  27153. }
  27154. .g_d_box {
  27155. display: flex;
  27156. flex-flow: wrap;
  27157. justify-content: space-around;
  27158. }
  27159. .g_d_box .isChair {
  27160. background-image: url(../../assets/avatar.png) !important;
  27161. }
  27162. .g_d_group {
  27163. width: 500px;
  27164. margin-bottom: 80px;
  27165. }
  27166. .g_d_group_chair {
  27167. display: flex;
  27168. align-items: center;
  27169. justify-content: center;
  27170. }
  27171. .g_d_group_chair > div + div {
  27172. margin-left: 30px;
  27173. }
  27174. .g_d_group_chair > div,
  27175. .g_d_group_chair2 > div {
  27176. display: flex;
  27177. flex-direction: column;
  27178. align-items: center;
  27179. }
  27180. .g_d_group_chair > div > span:nth-child(1),
  27181. .g_d_group_chair2 > div > span:nth-child(1) {
  27182. background-image: url(../../assets/icon/chair.png);
  27183. width: 50px;
  27184. height: 50px;
  27185. display: block;
  27186. background-size: 100% 100%;
  27187. }
  27188. .g_d_group_tableBox {
  27189. display: flex;
  27190. align-items: center;
  27191. justify-content: center;
  27192. }
  27193. .g_d_group_chair2 {
  27194. display: flex;
  27195. flex-direction: column;
  27196. align-items: center;
  27197. justify-content: center;
  27198. }
  27199. .g_d_group_chair2 > div + div {
  27200. margin-top: 10px;
  27201. }
  27202. .g_d_group_table {
  27203. background-image: url(../../assets/icon/groupBg.png);
  27204. width: 354px;
  27205. height: 196px;
  27206. background-size: 100% 100%;
  27207. display: flex;
  27208. align-items: center;
  27209. justify-content: center;
  27210. flex-direction: column;
  27211. color: #fff;
  27212. }
  27213. .g_d_group_table > div:nth-child(1) {
  27214. font-size: 24px;
  27215. margin-bottom: 5px;
  27216. }
  27217. .g_d_group_table > div:nth-child(2) div {
  27218. cursor: pointer;
  27219. background: #2e77bf;
  27220. padding: 4px 10px;
  27221. border-radius: 5px;
  27222. }
  27223. /* .groupBox {
  27224. } */
  27225. .groupContent + .groupContent {
  27226. margin-top: 30px;
  27227. }
  27228. .groupTitle {
  27229. font-size: 24px;
  27230. color: rgb(80, 80, 80);
  27231. margin-bottom: 20px;
  27232. }
  27233. .groupName {
  27234. display: flex;
  27235. align-items: center;
  27236. }
  27237. .groupn {
  27238. font-size: 15px;
  27239. margin-right: 10px;
  27240. }
  27241. .groupName + .groupName {
  27242. margin-top: 15px;
  27243. }
  27244. .groupBtn {
  27245. margin-left: 10px;
  27246. }
  27247. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  27248. text-align: left;
  27249. }
  27250. .g_d_btnBox {
  27251. display: flex;
  27252. justify-content: flex-end;
  27253. align-items: center;
  27254. margin-bottom: 20px;
  27255. }
  27256. .updateChair {
  27257. position: relative;
  27258. }
  27259. .updateChairBtn {
  27260. position: absolute;
  27261. width: 50px;
  27262. height: 50px;
  27263. overflow: hidden;
  27264. /* display: flex; */
  27265. align-items: center;
  27266. justify-content: center;
  27267. background: #00000087;
  27268. color: #fff;
  27269. border-radius: 50px;
  27270. display: none;
  27271. cursor: pointer;
  27272. }
  27273. .updateChair:hover .updateChairBtn {
  27274. display: flex;
  27275. }
  27276. .group_staic_box {
  27277. display: flex;
  27278. padding: 30px 40px 10px;
  27279. flex-wrap: wrap;
  27280. }
  27281. .group_staic {
  27282. /* width: 50%; */
  27283. margin-bottom: 20px;
  27284. display: flex;
  27285. align-items: center;
  27286. }
  27287. .group_staic span:nth-child(1) {
  27288. width: 150px;
  27289. text-align: right;
  27290. margin-right: 15px;
  27291. }
  27292. .group_staic span:nth-child(2) {
  27293. background: rgb(0 123 255);
  27294. color: #fff;
  27295. border-radius: 5px;
  27296. padding: 5px;
  27297. }
  27298. .codeFileBox {
  27299. height: 300px;
  27300. background: #fff;
  27301. display: flex;
  27302. align-items: center;
  27303. justify-content: center;
  27304. }
  27305. .codeFileBox img {
  27306. width: 200px;
  27307. margin: 0;
  27308. height: auto;
  27309. }
  27310. .codeFileBox div {
  27311. background: rgb(80, 142, 226);
  27312. color: #fff;
  27313. padding: 10px 20px;
  27314. border-radius: 25px;
  27315. cursor: pointer;
  27316. margin-left: 15px;
  27317. }
  27318. .radioBox {
  27319. display: flex;
  27320. flex-direction: column;
  27321. flex-wrap: nowrap;
  27322. align-items: flex-start;
  27323. }
  27324. .radioBox > div {
  27325. margin: 10px 0 0 10px;
  27326. }
  27327. /* .radioBox >>> .el-radio__input,
  27328. .radioBox >>> .el-checkbox__inner {
  27329. margin-left: 10px;
  27330. } */
  27331. .radioBox >>> .el-radio__label,
  27332. .radioBox >>> .el-checkbox__label {
  27333. display: flex;
  27334. align-items: center;
  27335. width: 100%;
  27336. }
  27337. .radioBox >>> .el-radio__label > span {
  27338. width: 100%;
  27339. display: -webkit-box;
  27340. overflow: hidden;
  27341. white-space: normal !important;
  27342. text-overflow: ellipsis;
  27343. word-wrap: break-word;
  27344. }
  27345. .inImg {
  27346. width: 100px;
  27347. cursor: pointer;
  27348. }
  27349. .inImg > img {
  27350. width: 100%;
  27351. height: 100%;
  27352. object-fit: cover;
  27353. }
  27354. .timuImgBox {
  27355. margin: 10px 0;
  27356. display: flex;
  27357. flex-direction: column;
  27358. flex-wrap: wrap;
  27359. align-items: flex-start;
  27360. }
  27361. .timuImg {
  27362. width: 150px;
  27363. margin: 5px 0;
  27364. cursor: pointer;
  27365. }
  27366. .timuImg > img {
  27367. width: 100%;
  27368. height: 100%;
  27369. object-fit: cover;
  27370. }
  27371. .worksTop {
  27372. display: flex;
  27373. flex-direction: row;
  27374. align-items: flex-end;
  27375. }
  27376. .worksTitle {
  27377. display: flex;
  27378. flex-direction: row;
  27379. flex-wrap: nowrap;
  27380. align-items: center;
  27381. }
  27382. .worksTitle::before,
  27383. .worksTop::before {
  27384. content: "";
  27385. display: block;
  27386. width: 3px;
  27387. height: 20px;
  27388. background: #0061ff;
  27389. border-radius: 3px;
  27390. margin: 0 5px 0 0;
  27391. }
  27392. .corOpen {
  27393. margin: 0 0 0 10px;
  27394. font-size: 14px;
  27395. cursor: pointer;
  27396. color: #505050;
  27397. }
  27398. .corOpen:hover {
  27399. color: #499eef;
  27400. }
  27401. .navCorOpenBox {
  27402. display: flex;
  27403. flex-direction: row;
  27404. align-items: center;
  27405. justify-content: space-between;
  27406. height: 55px;
  27407. background: #ffffff;
  27408. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  27409. border-radius: 8px 8px 0px 0px;
  27410. z-index: 9;
  27411. position: relative;
  27412. }
  27413. .navCorOpen {
  27414. padding-right: 15px;
  27415. cursor: pointer;
  27416. width: 45px;
  27417. display: flex;
  27418. }
  27419. .navCorOpen > img {
  27420. width: 100%;
  27421. height: 100%;
  27422. }
  27423. .mlImg {
  27424. width: 40px !important;
  27425. min-width: 40px;
  27426. cursor: pointer;
  27427. transform: rotate(180deg);
  27428. }
  27429. .mlImg > img {
  27430. width: 100%;
  27431. height: 100%;
  27432. }
  27433. .navLeftCss {
  27434. width: 100% !important;
  27435. left: 0 !important;
  27436. }
  27437. .isContentCss {
  27438. width: 100% !important;
  27439. }
  27440. .isAllWidth {
  27441. width: 100% !important;
  27442. }
  27443. .group_switch {
  27444. margin-right: 10px;
  27445. height: 30px;
  27446. display: flex;
  27447. align-items: center;
  27448. }
  27449. .group_switch > span {
  27450. margin-right: 5px;
  27451. }
  27452. .fileC_box {
  27453. padding-top: 15px;
  27454. }
  27455. .fileC_box > .fileC_title {
  27456. padding: 10px 5px 14px 10px;
  27457. border-top: 1px solid #cad1dc;
  27458. font-size: 14px;
  27459. font-weight: 400;
  27460. color: #cad1dc;
  27461. width: calc(100% - 20px);
  27462. margin: 0 auto;
  27463. box-sizing: border-box;
  27464. }
  27465. .pl_select_box {
  27466. height: 40px;
  27467. line-height: 40px;
  27468. width: 100%;
  27469. cursor: pointer;
  27470. padding: 0 20px;
  27471. box-sizing: border-box;
  27472. border-radius: 5px;
  27473. border: 1px solid #d6d6d6;
  27474. white-space: nowrap;
  27475. overflow: hidden;
  27476. text-overflow: ellipsis;
  27477. background: #fff;
  27478. text-align: left;
  27479. }
  27480. .newButton {
  27481. width: 102px;
  27482. height: 36px;
  27483. background: #e7ebf1;
  27484. border-radius: 4px;
  27485. color: #0e1e33;
  27486. font-weight: 400;
  27487. font-size: 14px;
  27488. border: none;
  27489. float: right;
  27490. margin-left: 10px;
  27491. }
  27492. .el-table >>> .even_row {
  27493. background-color: #f0f4fa;
  27494. }
  27495. .stageBoxCss,
  27496. .stageBoxIsCss {
  27497. display: flex;
  27498. flex-direction: row;
  27499. flex-wrap: nowrap;
  27500. align-items: center;
  27501. height: 50px;
  27502. border-bottom: 1px solid #e2f5fc;
  27503. cursor: pointer;
  27504. width: 100%;
  27505. }
  27506. .stageBoxIsCss {
  27507. background: #0061ff;
  27508. color: #fff;
  27509. border-radius: 8px;
  27510. }
  27511. .closeTri,
  27512. .closeTri1 {
  27513. min-width: 15px;
  27514. width: 15px;
  27515. height: 15px;
  27516. }
  27517. .closeTri1 {
  27518. padding-left: 10px;
  27519. cursor: pointer;
  27520. }
  27521. .closeTri > img,
  27522. .closeTri1 > img {
  27523. width: 100%;
  27524. height: 100%;
  27525. /* transition: all .5s; */
  27526. }
  27527. .noToolBlue {
  27528. min-width: 10px;
  27529. width: 10px;
  27530. height: 10px;
  27531. background: #0061ff;
  27532. border-radius: 50%;
  27533. margin-left: 13px;
  27534. }
  27535. .stageChild,
  27536. .toolChild {
  27537. height: 0;
  27538. overflow: hidden;
  27539. transition: all 0.5s;
  27540. }
  27541. /* .toolChild { */
  27542. /* margin: 0 0 0 17px;
  27543. padding: 0 0 0 20px;
  27544. border-left: 1px solid #d7d7d7; */
  27545. /* } */
  27546. .toolChild > div + div{
  27547. margin-top:5px;
  27548. }
  27549. .gjCss {
  27550. display: flex;
  27551. flex-direction: row;
  27552. flex-wrap: nowrap;
  27553. align-items: center;
  27554. padding: 10px 0 10px 40px;
  27555. box-sizing: border-box;
  27556. font-size: 14px;
  27557. cursor: pointer;
  27558. border-radius:5px;
  27559. }
  27560. .toolChild > div {
  27561. position: relative;
  27562. width: 100%;
  27563. }
  27564. /* .toolChild > div::before { */
  27565. /* content: "";
  27566. width: 15px;
  27567. height: 1px;
  27568. background: #cad1dc;
  27569. position: absolute;
  27570. top: 24px;
  27571. left: -20px;
  27572. display: block; */
  27573. /* } */
  27574. .isGjCss {
  27575. /* color: #0061ff; */
  27576. color:#fff;
  27577. background: rgb(55, 129, 252);
  27578. /* background-color: #e0eafb !important;
  27579. color: #0061ff !important; */
  27580. }
  27581. .navItem {
  27582. background: #ffffff;
  27583. border-radius: 4px;
  27584. width: 100%;
  27585. margin: 10px auto;
  27586. position: relative;
  27587. height: 40px;
  27588. display: flex;
  27589. flex-direction: row;
  27590. flex-wrap: nowrap;
  27591. align-items: center;
  27592. }
  27593. .navItemList {
  27594. display: flex;
  27595. flex-direction: row;
  27596. flex-wrap: nowrap;
  27597. align-items: center;
  27598. padding: 0 13px;
  27599. cursor: pointer;
  27600. width: calc(100% - 60px);
  27601. height: 100%;
  27602. }
  27603. .navItemList > div:first-child {
  27604. min-width: 60px;
  27605. }
  27606. .navItemList > div:last-child {
  27607. width: calc(100% - 80px);
  27608. white-space: nowrap;
  27609. overflow: hidden;
  27610. text-overflow: ellipsis;
  27611. word-break: break-word;
  27612. }
  27613. /* .isItemList > div {
  27614. color: #fff !important;
  27615. } */
  27616. .tool_work_box {
  27617. width: 100%;
  27618. padding: 0 37px 0;
  27619. box-sizing: border-box;
  27620. }
  27621. .tool_box {
  27622. width: 100%;
  27623. padding: 0 0 0 20px;
  27624. }
  27625. .tool_type_box {
  27626. display: flex;
  27627. flex-direction: row;
  27628. align-items: baseline;
  27629. flex-wrap: nowrap;
  27630. justify-content: flex-start;
  27631. position: relative;
  27632. }
  27633. .toolSort {
  27634. display: flex;
  27635. flex-direction: row;
  27636. flex-wrap: wrap;
  27637. justify-content: flex-start;
  27638. align-items: flex-start;
  27639. padding: 0 0 15px 0;
  27640. }
  27641. .toolSort > div {
  27642. margin: 0 10px 0 0;
  27643. width: 135px;
  27644. box-sizing: border-box;
  27645. border: 2px solid transparent;
  27646. }
  27647. .tools {
  27648. width: 100%;
  27649. display: flex;
  27650. flex-direction: column;
  27651. flex-wrap: nowrap;
  27652. align-items: flex-start;
  27653. }
  27654. .whiteBIcon {
  27655. width: fit-content;
  27656. cursor: pointer;
  27657. display: flex;
  27658. flex-direction: column;
  27659. flex-wrap: nowrap;
  27660. align-items: center;
  27661. font-size: 14px;
  27662. }
  27663. .tool:hover {
  27664. border: 2px solid #a5c7ff;
  27665. border-radius: 5px;
  27666. }
  27667. .whiteBIcon > img {
  27668. width: 65px;
  27669. height: 100%;
  27670. }
  27671. .whiteBIcon > img {
  27672. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  27673. border-radius: 15px;
  27674. }
  27675. .check {
  27676. /* width: 20px;
  27677. height: 20px; */
  27678. cursor: pointer;
  27679. margin: 10px 0;
  27680. position: absolute;
  27681. right: 2px;
  27682. top: -5px;
  27683. }
  27684. .noChoose,
  27685. .isChoose {
  27686. width: 15px;
  27687. height: 15px;
  27688. border-radius: 50%;
  27689. border: 1px solid #adadad;
  27690. }
  27691. .isChoose {
  27692. border: 4px solid #0363ff !important;
  27693. width: 10px;
  27694. height: 10px;
  27695. }
  27696. .isToolChoose {
  27697. border: 2px solid #5394ff !important;
  27698. border-radius: 5px;
  27699. box-shadow: 0 0 6px 0px #5394ff;
  27700. }
  27701. .checkDiv {
  27702. display: flex;
  27703. align-items: center;
  27704. }
  27705. .checkDiv span {
  27706. margin-left: 5px;
  27707. color: #858585;
  27708. }
  27709. .check img {
  27710. width: 20px;
  27711. height: 20px;
  27712. }
  27713. .lockTaskIcon {
  27714. width: 20px;
  27715. height: 20px;
  27716. position: absolute;
  27717. right: 10px;
  27718. top: 10px;
  27719. }
  27720. .lockTaskIcon > img {
  27721. width: 100%;
  27722. height: 100%;
  27723. }
  27724. .pick_box {
  27725. display: flex;
  27726. align-items: flex-start;
  27727. flex-wrap: wrap;
  27728. }
  27729. .selectBox {
  27730. width: 110px;
  27731. margin-left: 10px;
  27732. margin: 0 10px 0 auto;
  27733. }
  27734. .selectBox >>> .el-input__inner {
  27735. height: 30px;
  27736. line-height: 30px;
  27737. }
  27738. .selectBox >>> .el-input__icon {
  27739. line-height: 30px;
  27740. }
  27741. .sentenceTitle {
  27742. display: flex;
  27743. flex-direction: row;
  27744. flex-wrap: nowrap;
  27745. align-items: center;
  27746. }
  27747. .sentenceTitle::before {
  27748. content: attr(index);
  27749. background: #3681fc;
  27750. border-radius: 50%;
  27751. color: #fff;
  27752. width: 25px;
  27753. height: 25px;
  27754. min-width: 25px;
  27755. min-height: 25px;
  27756. text-align: center;
  27757. line-height: 25px;
  27758. margin-right: 5px;
  27759. }
  27760. .hfBox {
  27761. padding: 10px;
  27762. box-sizing: border-box;
  27763. }
  27764. .whoReplyWho {
  27765. display: flex;
  27766. flex-direction: row;
  27767. flex-wrap: nowrap;
  27768. align-items: baseline;
  27769. justify-content: flex-start;
  27770. }
  27771. .hfBottom {
  27772. display: flex;
  27773. flex-direction: row;
  27774. flex-wrap: nowrap;
  27775. align-items: center;
  27776. justify-content: space-between;
  27777. font-size: 14px;
  27778. }
  27779. .deleteHfItem {
  27780. cursor: pointer;
  27781. width: 20px;
  27782. height: 20px;
  27783. }
  27784. .deleteHfItem > img {
  27785. width: 100%;
  27786. height: 100%;
  27787. }
  27788. .whoReplyWho > .hfImg {
  27789. width: 12px;
  27790. height: 12px;
  27791. margin: 0 5px;
  27792. }
  27793. .whoReplyWho > .hfImg > img {
  27794. width: 100%;
  27795. height: 100%;
  27796. }
  27797. .hfContent {
  27798. padding-top: 10px;
  27799. box-sizing: border-box;
  27800. display: -webkit-box;
  27801. overflow: hidden;
  27802. white-space: normal !important;
  27803. text-overflow: ellipsis;
  27804. word-wrap: break-word;
  27805. -webkit-box-orient: vertical;
  27806. }
  27807. .hfTime {
  27808. text-align: left;
  27809. box-sizing: border-box;
  27810. padding: 10px 0 10px 0px;
  27811. color: #bfbfbf;
  27812. font-size: 14px;
  27813. }
  27814. .btnAllNT {
  27815. position: fixed;
  27816. bottom: 100px;
  27817. right: 40px;
  27818. z-index: 999;
  27819. display: flex;
  27820. flex-direction: row;
  27821. }
  27822. .btnAllNT > img {
  27823. cursor: pointer;
  27824. width: 80px;
  27825. }
  27826. .toolMask {
  27827. position: fixed;
  27828. width: 100%;
  27829. height: 100%;
  27830. background: #3f3c3c;
  27831. opacity: 0.5;
  27832. top: 0;
  27833. left: 0;
  27834. z-index: 999;
  27835. }
  27836. .addToolCss {
  27837. position: fixed;
  27838. z-index: 999;
  27839. background: #fff;
  27840. right: 5%;
  27841. bottom: 18%;
  27842. min-width: 1035px;
  27843. min-height: 300px;
  27844. border-radius: 10px;
  27845. box-shadow: 0 0 8px 1px #b2b2b2;
  27846. }
  27847. .toolTop {
  27848. display: flex;
  27849. flex-direction: row;
  27850. flex-wrap: nowrap;
  27851. justify-content: space-between;
  27852. align-items: center;
  27853. padding: 20px;
  27854. }
  27855. .toolTop > div:nth-child(2) {
  27856. width: 15px;
  27857. height: 15px;
  27858. padding-right: 10px;
  27859. cursor: pointer;
  27860. }
  27861. .toolTop > div:nth-child(2) > img {
  27862. width: 100%;
  27863. height: 100%;
  27864. }
  27865. .fullStyle>>>.el-dialog__body {
  27866. height: calc(100% - 125px) !important;
  27867. box-sizing: border-box;
  27868. padding: 30px 0 !important;
  27869. background: #fff !important;
  27870. }
  27871. .fullStyle>>>.el-dialog {
  27872. width: 100% !important;
  27873. max-width: 100% !important;
  27874. height: 100% !important;
  27875. margin: 0 !important;
  27876. }
  27877. .fullStyle {
  27878. width: 100% !important;
  27879. max-width: 100% !important;
  27880. height: 100% !important;
  27881. margin: 0 auto !important;
  27882. }
  27883. .fullStyle>>>.el-dialog__footer{
  27884. background: #fff !important;
  27885. }
  27886. .engUpBox {
  27887. width: 100%;
  27888. height: 100%;
  27889. }
  27890. .engTitle,
  27891. .engText {
  27892. display: flex;
  27893. flex-direction: row;
  27894. flex-wrap: nowrap;
  27895. align-items: flex-start;
  27896. padding: 0 20px 20px 20px;
  27897. box-sizing: border-box;
  27898. }
  27899. .engTitle > .div:first-child,
  27900. .engText > div:first-child {
  27901. min-width: 75px;
  27902. }
  27903. .correctBox{
  27904. width: 100%;
  27905. display: flex;
  27906. flex-direction: row;
  27907. flex-wrap: nowrap;
  27908. align-items: flex-start;
  27909. }
  27910. .oldBox{
  27911. width: 50%;
  27912. height: 100%;
  27913. display: flex;
  27914. flex-direction: column;
  27915. flex-wrap: nowrap;
  27916. align-items: center;
  27917. border-top: 1px solid #d9d9d9;
  27918. border-left: 1px solid #d9d9d9;
  27919. border-right: 1px solid #d9d9d9;
  27920. }
  27921. .oldBox>div:first-child{
  27922. width: 100%;
  27923. text-align: center;
  27924. background: #d9d9d9;
  27925. height: 35px;
  27926. line-height: 35px;
  27927. font-weight: bold;
  27928. }
  27929. .oldText{
  27930. width: 100%;
  27931. height: calc(100% - 35px);
  27932. overflow: auto;
  27933. margin: 10px 0;
  27934. display: flex;
  27935. flex-direction: column;
  27936. flex-wrap: nowrap;
  27937. align-content: center;
  27938. align-items: center;
  27939. }
  27940. .detailBox{
  27941. width: 50%;
  27942. padding: 10px;
  27943. background: #f6f6f6;
  27944. border-radius: 5px;
  27945. }
  27946. .oldDetail,.oldDetail1{
  27947. padding-bottom: 30px;
  27948. }
  27949. .oldImg{
  27950. width:30px;
  27951. height: 30px;
  27952. }
  27953. .oldImg>img{
  27954. width: 100%;
  27955. height: 100%;
  27956. }
  27957. .allName{
  27958. min-width: 200px;
  27959. white-space: nowrap;
  27960. overflow: hidden;
  27961. text-overflow: ellipsis;
  27962. word-break: break-word;
  27963. cursor: pointer;
  27964. text-align: center;
  27965. border: 1px solid #bcc2cc;
  27966. box-sizing: border-box;
  27967. }
  27968. .engUpTop{
  27969. max-height: 300px;
  27970. overflow: auto;
  27971. }
  27972. .isUpdateToolDetailClass{
  27973. padding: 0 !important;
  27974. }
  27975. .isUpdateToolDetailClass textarea{
  27976. padding:12px;
  27977. font-size: 16px;
  27978. min-height:100%;
  27979. width: 100%;
  27980. box-sizing:border-box;
  27981. outline: none;
  27982. border:none;
  27983. line-height: 30px;
  27984. resize: none;
  27985. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  27986. color: #838383;
  27987. }
  27988. .show_taskD {
  27989. min-width: fit-content;
  27990. margin-left: 10px;
  27991. display: flex;
  27992. align-items: center;
  27993. font-size: 14px;
  27994. cursor: pointer;
  27995. color: #717c8d;
  27996. }
  27997. .show_taskD > img {
  27998. width: 15px;
  27999. margin-right: 5px;
  28000. transition: 0.2s all;
  28001. transform: rotate(-90deg);
  28002. }
  28003. .show_taskD.show > img {
  28004. transform: rotate(0deg);
  28005. }
  28006. .correctCss{
  28007. position: absolute;
  28008. bottom: -70px;
  28009. background: #409eff;
  28010. color: #fff;
  28011. }
  28012. .ScoreBtn {
  28013. background: rgba(87, 159, 248, 1);
  28014. display: flex;
  28015. justify-content: center;
  28016. align-items: center;
  28017. color: #fff;
  28018. font-size: 14px;
  28019. padding: 8px 12px;
  28020. border-radius: 5px;
  28021. cursor: pointer;
  28022. }
  28023. .max-height-popover .el-popover {
  28024. min-height: 200px;
  28025. max-height: 400px; /* 设置最大高度 */
  28026. overflow: auto; /* 超出部分显示滚动条 */
  28027. }
  28028. .stuLookScore {
  28029. position: absolute;
  28030. top: 12px;
  28031. right: 40px;
  28032. background: #0000008f;
  28033. border-radius: 5px;
  28034. padding: 3px 5px;
  28035. font-size: 14px;
  28036. color: #fff;
  28037. cursor: pointer;
  28038. }
  28039. .dialog_diyCopy >>> .el-dialog__header {
  28040. display: none !important;
  28041. }
  28042. .dialog_diyCopy >>> .el-dialog__body {
  28043. padding: 0 !important;
  28044. height: 100% !important;
  28045. }
  28046. div::-webkit-scrollbar {
  28047. width: 10px;
  28048. height: 6px;
  28049. }
  28050. </style>