studyStudent.vue 336 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div class="pb_content_body" style="display: flex; height: 900px; position: relative">
  4. <div class="btnAllNT">
  5. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  6. <img src="../../assets/icon/learn/last.png" @click="nextOrpreSteps(0)" />
  7. <img src="../../assets/icon/learn/next.png" @click="nextOrpreSteps(1)" />
  8. <img src="../../assets/icon/learn/return.png" @click.stop="goTo(
  9. '/courseDetail?userid=' +
  10. userid +
  11. '&oid=' +
  12. oid +
  13. '&org=' +
  14. org +
  15. '&cid=' +
  16. classId +
  17. '&courseId=' +
  18. id +
  19. '&tType=' +
  20. tType +
  21. '&screenType=' +
  22. screenType
  23. )
  24. " />
  25. </div>
  26. <div class="pButton" style="
  27. left: 0;
  28. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  29. " v-if="mlDialog == false" @click="setContent2(true)">
  30. <!-- 批 , getCourseDetail()-->
  31. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  32. </div>
  33. <div class="pb_left" v-else>
  34. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  35. <div class="courseTitle">
  36. <div style="width:calc(100% - 25px)">
  37. <el-tooltip effect="light" :content="courseDetail.title" placement="top">
  38. <div class="ctitle">{{ courseDetail.title }}</div>
  39. </el-tooltip>
  40. <!-- <div class="inviteBox" v-if="tcid && inviteCode">
  41. <div><span>随机码:{{ inviteCode }}</span></div>
  42. </div> -->
  43. </div>
  44. <el-tooltip effect="light" content="收缩" placement="top">
  45. <div class="mlImg" @click="setContent2(false)">
  46. <img src="../../assets/mlBtn.png" alt="" />
  47. </div>
  48. </el-tooltip>
  49. </div>
  50. <div class="ml">目录</div>
  51. <div class="cru_selectBox">
  52. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  53. <div class="blue_box_one" @click="get(stageIndex)">
  54. <div v-if="courseDetail.state == 1">第{{ stageIndex + 1 }}阶段</div>
  55. <div v-if="courseDetail.state == 2">任务查看</div>
  56. <div>{{ item.dyName }}</div>
  57. </div>
  58. <div class="twoChild" :class="{ navActive: item.isOpen }">
  59. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  60. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  61. openTaskActive:
  62. navIndex == taskCount &&
  63. nav.id == navId &&
  64. stageIndex == courseType,
  65. }">
  66. <div class="vedioNav" :class="{
  67. isClick:
  68. navIndex == taskCount &&
  69. nav.id == navId &&
  70. stageIndex == courseType,
  71. }" style="margin: 0">
  72. 任务{{ navIndex + 1 }}
  73. </div>
  74. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  75. <div :style="{
  76. width:
  77. IsLookOpen && !nav.isLook
  78. ? 'calc(100% - 75px)'
  79. : 'auto',
  80. }">
  81. {{ nav.taskName }}
  82. </div>
  83. </el-tooltip>
  84. <img src="../../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  92. <div class="new_top" style="
  93. position: fixed;
  94. top: 0;
  95. left: 20.7%;
  96. width: 80%;
  97. z-index: 999;
  98. box-shadow: 0px 9px 0 0 #f2f2f2;
  99. " :class="{ navLeftCss: !mlDialog }">
  100. <div class="courseIndex">
  101. <div>第{{ courseType - 0 + 1 }}阶段</div>
  102. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  103. <div>{{ chapInfoList[courseType].dyName }}</div>
  104. </el-tooltip>
  105. <div>任务{{ taskCount + 1 }}</div>
  106. </div>
  107. <div class="btnAll">
  108. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  109. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  110. <div class="returnBtn" @click="refreshCourse">刷新</div>
  111.             <div class="returnBtn" @click="setPz" v-if="tType == 1">评论</div>
  112. <!-- <div class="returnBtn" @click="allScrell">全屏</div> -->
  113. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  114. 开始录制
  115. </div>
  116. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  117. style="background: #ee5255">
  118. 下载录制
  119. </div>
  120. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  121. 权限
  122. </div> -->
  123. <div class="returnBtn" style="background: #225bc7" @click.stop="goTo(
  124. '/courseDetail?userid=' +
  125. userid +
  126. '&oid=' +
  127. oid +
  128. '&org=' +
  129. org +
  130. '&cid=' +
  131. classId +
  132. '&courseId=' +
  133. id +
  134. '&tType=' +
  135. tType +
  136. '&screenType=' +
  137. screenType
  138. )
  139. ">
  140. 返回
  141. </div>
  142. </div>
  143. </div>
  144. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  145. .taskJson"
  146. :key="index"-->
  147. <div class="isNoMessage" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  148. .chapterData.length == 0 &&
  149. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  150. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  151. .taskDetail == '' &&
  152. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  153. ">
  154. <img src="../../assets/icon/isNoMessage.png" alt />
  155. </div>
  156. <div class="study_top" :class="{ pzClass: pzDialog }">
  157. <div class="vedioBox" v-if="vedio[taskCount].length > 0 ||
  158. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  159. .taskDetail != '' ||
  160. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  161. .chapterData.length > 0
  162. ">
  163. <div class="checkbox">
  164. <div class="check" style="font-size: 25px" :id="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  165. ">
  166. 学一学
  167. </div>
  168. </div>
  169. <div class="student_head" v-if="vedio[taskCount].length > 0 ||
  170. textList[taskCount].length > 0 ||
  171. lineList[taskCount].length > 0 ||
  172. file[taskCount].length > 0 ||
  173. fileC[taskCount].length > 0 ||
  174. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  175. .taskDetail != ''
  176. ">
  177. <div class="taskBox">
  178. <div style="
  179. display: flex;
  180. flex-wrap: nowrap;
  181. flex-direction: column;
  182. position: relative;
  183. ">
  184. <div style="padding: 15px 0 15px 20px; line-height: 25px" class="cont" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
  185. taskCount
  186. ].taskDetail != ''
  187. " v-html="chapInfoList[courseType].chapterInfo[0].taskJson[
  188. taskCount
  189. ].taskDetail
  190. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  191. taskCount
  192. ].taskDetail
  193. : '暂无描述'
  194. "></div>
  195. </div>
  196. </div>
  197. <div class="vedioTaskBox">
  198. <div :class="contentDialog == false
  199. ? 'box_course isContentCss'
  200. : 'box_course'
  201. " v-if="vedio[taskCount].length > 0 ||
  202. textList[taskCount].length > 0 ||
  203. lineList[taskCount].length > 0 ||
  204. file[taskCount].length > 0
  205. ">
  206. <div class="wheel" style="height: auto;" v-if="vedio.length &&
  207. vedio[taskCount] &&
  208. vedio[taskCount].length > 0 &&
  209. showType == 0
  210. ">
  211. <div class="workd_media" style="height: 650px; width: calc(100% - 50px)">
  212. <video-player class="video-player vjs-custom-skin"
  213. :class="contentDialog == false ? 'isAllWidth' : ''" :playsinline="true"
  214. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  215. style="width: 100%; height: 100%; margin: 0 0 0 30px"></video-player>
  216. </div>
  217. </div>
  218. <div class="wheel" v-if="showType == 1" style="
  219. box-shadow: 0 0 6px 1px #f2f2f2;
  220. width: 95%;
  221. margin: 0 auto;
  222. background: #f1f1f1;
  223. ">
  224. <div class="title">查看文档</div>
  225. <el-form class="textBox">
  226. <el-form-item class="textTitle">
  227. <div style="font-size: 22px">
  228. {{ text.name }}
  229. </div>
  230. </el-form-item>
  231. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  232. <div v-html="text.url" class="textContent cont"></div>
  233. </el-form>
  234. </div>
  235. <div class="wheel"
  236. v-if="pptImgUrl1.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && showType == 2"
  237. style="width: 95%; margin: 0 auto">
  238. <iframe style="width: 100%; height: 100%; border: none" :src="pptImgUrl1"></iframe>
  239. </div>
  240. <div class="wheel" v-else-if="showType == 2" style="width: 95%; margin: 0 auto">
  241. <iframe style="width: 100%; height: 100%; border: none" security="restricted"
  242. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  243. :src="pptImgUrl1"></iframe>
  244. </div>
  245. <div class="wheel" v-if="showType == 3" style="width: 95%; margin: 0 auto">
  246. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  247. </div>
  248. <div class="wheel" v-if="showType == 4" style="width: 95%; margin: 0 auto">
  249. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  250. </div>
  251. </div>
  252. <div class="pButton" style="
  253. position: absolute;
  254. right: 20px;
  255. top: 0;
  256. background: #205cc6;
  257. z-index: 998;
  258. opacity: .8;
  259. " v-if="!contentDialog" @click="setContent(true)">
  260. <!-- 批 -->
  261. <img src="../../assets/navBtn2.png" style="width: 25px" alt="" />
  262. </div>
  263. <div v-if="contentDialog == true" :style="{
  264. width: (!vedio[taskCount].length > 0 &&
  265. !textList[taskCount].length > 0 &&
  266. !lineList[taskCount].length > 0 &&
  267. !file[taskCount].length > 0 && fileC[taskCount].length) ? 'calc(100%)' : 'calc(100% - 83%)', margin: (!vedio[taskCount].length > 0 &&
  268. !textList[taskCount].length > 0 &&
  269. !lineList[taskCount].length > 0 &&
  270. !file[taskCount].length > 0 && fileC[taskCount].length) ? '0 15px' : '0 15px 0 0'
  271. }">
  272. <div class="vedioList" v-if="(vedio.length &&
  273. vedio[taskCount] &&
  274. vedio[taskCount].length > 0) ||
  275. (textList.length &&
  276. textList[taskCount] &&
  277. textList[taskCount].length > 0) ||
  278. (lineList.length &&
  279. lineList[taskCount] &&
  280. lineList[taskCount].length > 0) ||
  281. (file.length &&
  282. file[taskCount] &&
  283. file[taskCount].length > 0) ||
  284. (fileC.length &&
  285. fileC[taskCount] &&
  286. fileC[taskCount].length > 0)
  287. " style="height: 650px">
  288. <div class="navCorOpenBox">
  289. <div class="navTitile">内容列表:</div>
  290. <div class="navCorOpen" @click="setContent(false)">
  291. <img src="../../assets/navBtn2.png" alt="" />
  292. </div>
  293. </div>
  294. <div class="navBox">
  295. <div v-show="vedio.length &&
  296. vedio[taskCount] &&
  297. vedio[taskCount].length > 0
  298. ">
  299. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  300. @click="lookVedio(media.url, vedioIndex)">
  301. <div class="vedioName" :class="isClickNav == 'video' + vedioIndex
  302. ? 'isClickNav'
  303. : ''
  304. ">
  305. <span v-if="media.text">{{ media.text }}-</span>{{ media.name }}
  306. </div>
  307. </div>
  308. </div>
  309. <div v-show="textList.length &&
  310. textList[taskCount] &&
  311. textList[taskCount].length > 0
  312. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  313. @click="lookText(taskCount, textIndex)">
  314. <div style="width: calc(100% - 0px)">
  315. <div class="navText" :class="isClickNav == 'text' + textIndex
  316. ? 'isClickNav'
  317. : ''
  318. ">
  319. {{
  320. textList[taskCount].length > 0 ? text.name : ""
  321. }}.doc
  322. </div>
  323. </div>
  324. </div>
  325. <div v-show="lineList.length &&
  326. lineList[taskCount] &&
  327. lineList[taskCount].length > 0
  328. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  329. @click="doUrl(lines.url, lineIndex)">
  330. <div style="width: calc(100% - 0px)">
  331. <div class="navText" :class="isClickNav == 'line' + lineIndex
  332. ? 'isClickNav'
  333. : ''
  334. ">
  335. {{ lines.title ? lines.title : lines.url }}
  336. </div>
  337. </div>
  338. </div>
  339. <div class="newNav" v-show="file.length &&
  340. file[taskCount] &&
  341. file[taskCount].length > 0
  342. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  343. <div style="width: calc(100% - 0px)">
  344. <div class="navText" :class="isClickNav == 'word' + fileIndex
  345. ? 'isClickNav'
  346. : ''
  347. ">
  348. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  349. </div>
  350. </div>
  351. </div>
  352. <div class="newNav" v-show="fileC.length &&
  353. fileC[taskCount] &&
  354. fileC[taskCount].length > 0
  355. " v-for="(f, fileIndex) in fileC[taskCount]" :key="fileIndex" @click="downloadFile2(f)">
  356. <div style="width: calc(100% - 0px)">
  357. <div class="navText">
  358. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  359. </div>
  360. </div>
  361. </div>
  362. </div>
  363. </div>
  364. </div>
  365. </div>
  366. <div style="width: 81%">
  367. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 2 || showType == 3">
  368. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  369. <el-button type="primary" @click="downloadFile(pptImgUrl1)"
  370. v-if="isClickNav.indexOf('line') == -1">文件下载</el-button>
  371. <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
  372. </el-button>
  373. </div>
  374. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 1">
  375. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  376. </div>
  377. </div>
  378. </div>
  379. </div>
  380. <div class="student_body" v-resize="resize" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  381. .chapterData.length">
  382. <div class="vedioBox">
  383. <div class="queTop" style="
  384. font-size: 25px;
  385. padding: 15px 0 15px 30px;
  386. font-weight: bold;
  387. ">
  388. 教师工作区
  389. </div>
  390. <div class="tool_work_box">
  391. <div class="tool_box">
  392. <div class="tool_type_box">
  393. <div class="chooseWho">
  394. <div :class="toolType == 0 ? 'isChooseActive' : ''
  395. " @click="(toolType = 0), $forceUpdate()">
  396. 互动类
  397. </div>
  398. <div :class="toolType == 1 ? 'isChooseActive' : ''
  399. " @click="(toolType = 1), $forceUpdate()">
  400. 思维类
  401. </div>
  402. <div :class="toolType == 2 ? 'isChooseActive' : ''
  403. " @click="(toolType = 2), $forceUpdate()">
  404. 评价类
  405. </div>
  406. <div :class="toolType == 3 ? 'isChooseActive' : ''
  407. " @click="(toolType = 3), $forceUpdate()">
  408. 编程类
  409. </div>
  410. <div :class="toolType == 5 ? 'isChooseActive' : ''
  411. " @click="(toolType = 5), $forceUpdate()">
  412. 学科类
  413. </div>
  414. <div :class="toolType == 4 ? 'isChooseActive' : ''
  415. " @click="(toolType = 4), $forceUpdate()">
  416. 其他
  417. </div>
  418. </div>
  419. </div>
  420. <div>
  421. <div class="toolSort" v-if="toolType == 0">
  422. <div class="tool">
  423. <div class="whiteBIcon">
  424. <img src="../../assets/icon/thirdToolList/time.png" alt />
  425. <div style="margin: 5px 0">倒计时</div>
  426. </div>
  427. </div>
  428. <div class="tool">
  429. <div class="whiteBIcon">
  430. <img src="../../assets/icon/fourthToolList/group.png" alt />
  431. <div style="margin: 5px 0">学生分组</div>
  432. </div>
  433. </div>
  434. <div class="tool">
  435. <div class="whiteBIcon">
  436. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  437. <div style="margin: 5px 0">交互视频</div>
  438. </div>
  439. </div>
  440. </div>
  441. <div class="toolSort" v-if="toolType == 1">
  442. <div class="tool">
  443. <div class="whiteBIcon">
  444. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  445. <div style="margin: 5px 0">思维网格</div>
  446. </div>
  447. </div>
  448. <div class="tool">
  449. <div class="whiteBIcon" @click="addTools(1, 0, taskCount)">
  450. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  451. <div style="margin: 5px 0">电子白板</div>
  452. </div>
  453. </div>
  454. <div class="tool">
  455. <div class="whiteBIcon">
  456. <img src="../../assets/icon/fourthToolList/text.png" alt />
  457. <div style="margin: 5px 0">文档</div>
  458. </div>
  459. </div>
  460. <div class="tool">
  461. <div class="whiteBIcon" @click="addTools(3, 0, taskCount)">
  462. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  463. <div style="margin: 5px 0">思维导图</div>
  464. </div>
  465. </div>
  466. <div class="tool">
  467. <div class="whiteBIcon">
  468. <img src="../../assets/icon/fourthToolList/table.png" alt />
  469. <div style="margin: 5px 0">表格</div>
  470. </div>
  471. </div>
  472. </div>
  473. <div class="toolSort" v-if="toolType == 2">
  474. <div class="tool">
  475. <div class="whiteBIcon">
  476. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  477. <div style="margin: 5px 0">问卷调查</div>
  478. </div>
  479. </div>
  480. <div class="tool">
  481. <div class="whiteBIcon">
  482. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  483. <div style="margin: 5px 0">选择题</div>
  484. </div>
  485. </div>
  486. <div class="tool">
  487. <div class="whiteBIcon">
  488. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  489. <div style="margin: 5px 0">问答工具</div>
  490. </div>
  491. </div>
  492. <div class="tool">
  493. <div class="whiteBIcon">
  494. <img src="../../assets/icon/thirdToolList/work.png" alt />
  495. <div style="margin: 5px 0">作业提交</div>
  496. </div>
  497. </div>
  498. <div class="tool">
  499. <div class="whiteBIcon">
  500. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  501. <div style="margin: 5px 0">批量上传</div>
  502. </div>
  503. </div>
  504. <div class="tool">
  505. <div class="whiteBIcon">
  506. <img src="../../assets/icon/secondToolList/eval.png" alt />
  507. <div style="margin: 5px 0">个人评价</div>
  508. </div>
  509. </div>
  510. <div class="tool">
  511. <div class="whiteBIcon">
  512. <img src="../../assets/icon/thirdToolList/select.png" alt />
  513. <div style="margin: 5px 0">选择填空</div>
  514. </div>
  515. </div>
  516. <div class="tool">
  517. <div class="whiteBIcon">
  518. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  519. <div style="margin: 5px 0">连词成句</div>
  520. </div>
  521. </div>
  522. </div>
  523. <div class="toolSort" v-if="toolType == 3">
  524. <div class="tool">
  525. <div class="whiteBIcon">
  526. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  527. <div style="margin: 5px 0">训练平台</div>
  528. </div>
  529. </div>
  530. <div class="tool">
  531. <div class="whiteBIcon">
  532. <img src="../../assets/icon/fourthToolList/program.png" alt />
  533. <div style="margin: 5px 0">编程平台</div>
  534. </div>
  535. </div>
  536. <div class="tool">
  537. <div class="whiteBIcon">
  538. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  539. <div style="margin: 5px 0">AI体验</div>
  540. </div>
  541. </div>
  542. <div class="tool">
  543. <div class="whiteBIcon">
  544. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  545. <div style="margin: 5px 0">Python</div>
  546. </div>
  547. </div>
  548. <div class="tool">
  549. <div class="whiteBIcon">
  550. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  551. <div style="margin: 5px 0">AI平台</div>
  552. </div>
  553. </div>
  554. <div class="tool">
  555. <div class="whiteBIcon">
  556. <img src="../../assets/icon/thirdToolList/code.png" alt />
  557. <div style="margin: 5px 0">源码编辑</div>
  558. </div>
  559. </div>
  560. <div class="tool">
  561. <div class="whiteBIcon">
  562. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  563. <div style="margin: 5px 0">CocoPi</div>
  564. </div>
  565. </div>
  566. <div class="tool">
  567. <div class="whiteBIcon">
  568. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  569. <div style="margin: 5px 0">海龟编程</div>
  570. </div>
  571. </div>
  572. </div>
  573. <div class="toolSort" v-if="toolType == 5">
  574. <div class="tool">
  575. <div class="whiteBIcon">
  576. <img src="../../assets/icon/secondToolList/translation.png" alt />
  577. <div style="margin: 5px 0">翻译</div>
  578. </div>
  579. </div>
  580. <div class="tool">
  581. <div class="whiteBIcon">
  582. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  583. <div style="margin: 5px 0">魔盒识字</div>
  584. </div>
  585. </div>
  586. <div class="tool">
  587. <div class="whiteBIcon">
  588. <img src="../../assets/icon/secondToolList/24game.png" alt />
  589. <div style="margin: 5px 0">24点</div>
  590. </div>
  591. </div>
  592. <div class="tool">
  593. <div class="whiteBIcon">
  594. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  595. <div style="margin: 5px 0">数学画板</div>
  596. </div>
  597. </div>
  598. <div class="tool">
  599. <div class="whiteBIcon">
  600. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  601. <div style="margin: 5px 0">GeoGebra</div>
  602. </div>
  603. </div>
  604. <div class="tool">
  605. <div class="whiteBIcon">
  606. <img src="../../assets/icon/fourthToolList/car.png" alt />
  607. <div style="margin: 5px 0">模拟驾驶</div>
  608. </div>
  609. </div>
  610. <div class="tool">
  611. <div class="whiteBIcon">
  612. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  613. <div style="margin: 5px 0">路径搜索</div>
  614. </div>
  615. </div>
  616. <div class="tool">
  617. <div class="whiteBIcon">
  618. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  619. <div style="margin: 5px 0">深度学习</div>
  620. </div>
  621. </div>
  622. <div class="tool">
  623. <div class="whiteBIcon">
  624. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  625. <div style="margin: 5px 0">全历史</div>
  626. </div>
  627. </div>
  628. </div>
  629. <div class="toolSort" v-if="toolType == 4">
  630. <div class="tool">
  631. <div class="whiteBIcon">
  632. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  633. <div style="margin: 5px 0">课程设计</div>
  634. </div>
  635. </div>
  636. <div class="tool">
  637. <div class="whiteBIcon">
  638. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  639. <div style="margin: 5px 0">目标管理</div>
  640. </div>
  641. </div>
  642. </div>
  643. </div>
  644. </div>
  645. <div class="tool_works_box" v-if="worksTeacher.length">
  646. <div class="zuoyeYulan">
  647. <div class="worksTop">
  648. <div>作业预览</div>
  649. </div>
  650. </div>
  651. <div class="worksDetailBox">
  652. <div class="works" style="
  653. width: 200px;
  654. height: 140px;
  655. margin: 10px 10px 10px 0;
  656. border-radius: 15px;
  657. box-shadow: 0 0 6px 1px #dfdada;
  658. " v-for="(w, wIndex) in worksTeacher" :key="wIndex"
  659. :class="w.type == 1 ? 'isTypeOne' : ''">
  660. <div class="workImg" v-if="w.type == 0">
  661. <img :src="w.works" @click="previewImg(w.works)" alt />
  662. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  663. rightW:
  664. w.userid == userid || tType == 1 || tType == 4,
  665. }">
  666. {{ JSON.parse(w.score).wScore }}分
  667. </div>
  668. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  669. :class="{
  670. rightW:
  671. w.userid == userid || tType == 1 || tType == 4,
  672. }">
  673. 评分
  674. </div>
  675. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  676. " @click.stop="deleteWorks(w.wid)" alt />
  677. </div>
  678. <div class="comment" style="min-width: 200px">
  679. <div class="worksName">
  680. <div>{{ w.sName }}</div>
  681. </div>
  682. <div class="commentList">
  683. <div class="commentList">
  684. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  685. ">
  686. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  687. </div>
  688. <div>{{ w.likesCount }}</div>
  689. </div>
  690. <div class="commentList" style="margin-right: 15px">
  691. <div class="commentImg" @click="commentOther(w, 0, wIndex)">
  692. <img src="../../assets/icon/comment/comment.png" alt="" />
  693. </div>
  694. <div>{{ w.commentCount }}</div>
  695. </div>
  696. </div>
  697. </div>
  698. </div>
  699. </div>
  700. </div>
  701. </div>
  702. </div>
  703. <div class="vedioBox">
  704. <div class="queTop" style="
  705. font-size: 25px;
  706. padding: 15px 0 15px 30px;
  707. font-weight: bold;
  708. ">
  709. 学生工作区
  710. </div>
  711. <div class="tool_work_box">
  712. <div class="noWorksS">
  713. <div v-for="(s, sIndex) in noWorksS" :key="sIndex" class="noWorksName"
  714. :class="{ isWork: s.type == '2' }" @click="openStudentTool(s)">
  715. {{ s.student }}
  716. </div>
  717. </div>
  718. <div class="tool_works_box" v-if="worksStudent2.length">
  719. <div class="zuoyeYulan">
  720. <div class="worksTop">
  721. <div>作业预览</div>
  722. </div>
  723. </div>
  724. <div class="worksDetailBox">
  725. <div class="works" style="
  726. width: 200px;
  727. height: 140px;
  728. margin: 10px 10px 10px 0;
  729. border-radius: 15px;
  730. box-shadow: 0 0 6px 1px #dfdada;
  731. " v-for="(w, wIndex) in worksStudent2" :key="wIndex"
  732. :class="w.type == 1 ? 'isTypeOne' : ''">
  733. <div class="workImg" v-if="w.type == 0">
  734. <img :src="w.works" @click="previewImg(w.works)" alt />
  735. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  736. rightW:
  737. w.userid == userid || tType == 1 || tType == 4,
  738. }">
  739. {{ JSON.parse(w.score).wScore }}分
  740. </div>
  741. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  742. :class="{
  743. rightW:
  744. w.userid == userid || tType == 1 || tType == 4,
  745. }">
  746. 评分
  747. </div>
  748. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  749. " @click.stop="deleteWorks(w.wid)" alt />
  750. </div>
  751. <div class="comment" style="min-width: 200px">
  752. <div class="worksName">
  753. <div>{{ w.sName }}</div>
  754. </div>
  755. <div class="commentList">
  756. <div class="commentList">
  757. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  758. ">
  759. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  760. </div>
  761. <div>{{ w.likesCount }}</div>
  762. </div>
  763. <div class="commentList" style="margin-right: 15px">
  764. <div class="commentImg" @click="commentOther(w, 0, wIndex)">
  765. <img src="../../assets/icon/comment/comment.png" alt="" />
  766. </div>
  767. <div>{{ w.commentCount }}</div>
  768. </div>
  769. </div>
  770. </div>
  771. </div>
  772. </div>
  773. </div>
  774. </div>
  775. </div>
  776. </div>
  777. </div>
  778. <el-dialog title="作业提交" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  779. :before-close="handleClose" class="dialog_change">
  780. <div class="marginT">
  781. <div>上传文件</div>
  782. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  783. <div class="up_photo">
  784. <img src="../../assets/icon/uploadImg.png" alt />
  785. </div>
  786. <!-- <input
  787. type="file"
  788. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  789. style="display: none"
  790. @change="beforeUpload1($event, 1)"
  791. /> -->
  792. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  793. <!-- <input
  794. type="file"
  795. accept="image/*"
  796. capture="camera"
  797. style="display: none"
  798. @change="beforeUpload1($event, 1)"
  799. /> -->
  800. </div>
  801. <div class="chapter_add" style="
  802. display: flex;
  803. width: 100%;
  804. flex-direction: row;
  805. flex-wrap: wrap;
  806. justify-content: flex-start;
  807. padding: 15px 0;
  808. " v-if="studyJuri[0].cover.length > 0">
  809. <div class="upCover">
  810. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  811. <img :src="word" alt v-else-if="fileType == 1" />
  812. <img :src="video" alt v-else-if="fileType == 2" />
  813. <img :src="word2" alt v-else-if="fileType == 3" />
  814. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  815. <div class="deleteWord" @click="clean(1)">
  816. <img src="../../assets/icon/deleteWorks.png" alt />
  817. </div>
  818. </div>
  819. </div>
  820. </div>
  821. <div class="upload_send" @click="addCourseWorks(taskCount)" v-if="!proVisible">
  822. 提交
  823. </div>
  824. </el-dialog>
  825. </div>
  826. </div>
  827. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4 || ispzType == 4">
  828. <!-- 批 -->
  829. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  830. </div>
  831. <div v-if="pzDialog == true" class="newDialogCss">
  832. <div class="pzTop2">
  833. <!-- <div>批注</div>
  834. <div @click="pzDialog = false">
  835. <img src="../../assets/close1.png" alt="" />
  836. </div> -->
  837. <div class="checkbox">
  838. <div class="check" style="font-size: 25px">评课笔记</div>
  839. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  840. </div>
  841. </div>
  842. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  843. <div class="pzListBox" v-if="pzList && pzList.length">
  844. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  845. <div class="pzNavTop">
  846. <div>批</div>
  847. <div>
  848. {{
  849. pz.username && pz.username.length > 5
  850. ? pz.username.substring(0, 5) + "..."
  851. : pz.username
  852. }}的批注
  853. </div>
  854. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  855. 删除
  856. </div>
  857. </div>
  858. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
  859. <div class="pzContent" v-if="pz.type == '2'">
  860. <audio :src="pz.content" controls="controls" ref="audio">
  861. Your browser does not support the audio element.
  862. </audio>
  863. </div>
  864. <div class="pzContent" v-if="pz.type == '3'">
  865. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block" @click="previewImg(pz.content)" />
  866. </div>
  867. <div class="time">
  868. {{ pz.time }}
  869. </div>
  870. </div>
  871. </div>
  872. <div class="noPz" v-else>
  873. <img src="../../assets/icon/noPz.png" alt="" />
  874. </div>
  875. <div class="addPzButton">
  876. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  877. 添加批注
  878. </div>
  879. <!-- <div class="img1">
  880. <div @click="(addPzDialog = true), (pzType = 2)">
  881. <img src="../../assets/audio.png" /><span>音频</span>
  882. </div>
  883. </div> -->
  884. </div>
  885. </div>
  886. </div>
  887. <div v-if="addPzDialog == true" class="addDialogCss">
  888. <div class="pzTop">
  889. <div class="teacherPz">
  890. <div class="teacherPzImg">
  891. <img src="../../assets/icon/teacherPz.png" alt="" />
  892. </div>
  893. <div style="margin-left: 10px; height: 25px">教师批注</div>
  894. </div>
  895. <div @click="addPzDialog = false">
  896. <img src="../../assets/close1.png" alt="" />
  897. </div>
  898. </div>
  899. <div class="addPzBox">
  900. <div class="addPzCheck">
  901. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  902. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  903. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  904. </div>
  905. <div style="height: calc(100% - 95px)">
  906. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  907. v-if="pzType == 1"></textarea> -->
  908. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  909. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  910. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  911. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  912. <div @click="addImg($event)">
  913. <el-button type="primary">上传图片</el-button>
  914. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  915. @change="beforeUpload1($event, 4)" />
  916. </div>
  917. </div> -->
  918. </div>
  919. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  920. 确定
  921. </div>
  922. </div>
  923. </div>
  924. <div v-if="proVisible" class="mask">
  925. <div class="progressBox">
  926. <!-- <div id="closePro" class="closeCss">
  927. <img src="../../assets/icon/close.png" alt />
  928. </div> -->
  929. <div class="lbox">
  930. <img src="../../assets/loading.gif" />上传中,请稍后
  931. </div>
  932. <div style="margin-bottom: 10px">
  933. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  934. </div>
  935. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  936. </div>
  937. </div>
  938. <div v-if="proVisible2" class="mask">
  939. <div class="progressBox">
  940. <div class="lbox">
  941. <img src="../../assets/loading.gif" />上传中,请稍后
  942. </div>
  943. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  944. </div>
  945. </div>
  946. <el-dialog :visible.sync="pictureDialog" size="tiny">
  947. <img width="100%" :src="dialogImageUrl" alt />
  948. </el-dialog>
  949. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  950. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  951. <div>
  952. <div class="a_add_title" style="
  953. display: flex;
  954. flex-direction: row;
  955. align-items: center;
  956. justify-content: center;
  957. ">
  958. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  959. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  960. </div>
  961. <div class="a_addBox">
  962. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  963. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  964. <div class="a_add_head">
  965. <div style="display: flex">
  966. {{ index1 + 1 + "、" }}
  967. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  968. </div>
  969. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  970. style="height: 300px; margin-top: 10px; max-width: 100%" />
  971. </div>
  972. <div class="a_add_body">
  973. <div class="a_add_input">
  974. <el-radio-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '1' ||
  975. !askJson.askJson[index1].type
  976. ">
  977. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  978. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  979. v-html="item2"></span></el-radio>
  980. </el-radio-group>
  981. <el-checkbox-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '2'">
  982. <el-checkbox v-for="(item2, checkIndex1) in askJson.askJson[index1]
  983. .checkList" :key="checkIndex1" :label="checkIndex1" :disabled="isAnswer" class="redioStyle"><span
  984. v-html="item2"></span>
  985. </el-checkbox>
  986. </el-checkbox-group>
  987. </div>
  988. </div>
  989. </div>
  990. </div>
  991. </div>
  992. <span slot="footer" class="dialog-footer">
  993. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  994. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  995. </span>
  996. </el-dialog>
  997. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5Teacher" :append-to-body="true"
  998. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  999. <div>
  1000. <div class="w_name">
  1001. 学生姓名:<span>{{ sStudent.student }}</span>
  1002. </div>
  1003. <div class="a_add_title" style="
  1004. display: flex;
  1005. flex-direction: row;
  1006. align-items: center;
  1007. justify-content: center;
  1008. ">
  1009. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1010. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  1011. </div>
  1012. <div class="a_addBox">
  1013. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  1014. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1015. <div class="a_add_head">
  1016. <div style="display: flex">
  1017. {{ index1 + 1 + "、" }}
  1018. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  1019. </div>
  1020. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  1021. style="height: 300px; margin-top: 10px; max-width: 100%" />
  1022. </div>
  1023. <div class="a_add_body">
  1024. <div class="a_add_input">
  1025. <el-radio-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '1' ||
  1026. !askJson.askJson[index1].type
  1027. ">
  1028. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  1029. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  1030. v-html="item2"></span></el-radio>
  1031. </el-radio-group>
  1032. <el-checkbox-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '2'">
  1033. <el-checkbox v-for="(item2, checkIndex1) in askJson.askJson[index1]
  1034. .checkList" :key="checkIndex1" :label="checkIndex1" :disabled="isAnswer" class="redioStyle"><span
  1035. v-html="item2"></span>
  1036. </el-checkbox>
  1037. </el-checkbox-group>
  1038. </div>
  1039. </div>
  1040. </div>
  1041. </div>
  1042. </div>
  1043. <span slot="footer" class="dialog-footer">
  1044. <el-button @click="dialogVisible5Teacher = false" v-show="noteName == ''">取 消</el-button>
  1045. <el-button type="primary" @click="addStudentAskTeacher" v-show="noteName == ''">确 定</el-button>
  1046. </span>
  1047. </el-dialog>
  1048. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  1049. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  1050. <div>
  1051. <div class="a_addBox">
  1052. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  1053. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1054. <div class="a_add_head">
  1055. <div style="display: flex">
  1056. {{ index1 + 1 + "、" }}
  1057. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px;min-width: 70px;">
  1058. (单选题)
  1059. </div>
  1060. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px;min-width: 70px;">
  1061. (多选题)
  1062. </div>
  1063. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  1064. </div>
  1065. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  1066. style="height: 300px; margin-top: 10px; max-width: 100%" />
  1067. </div>
  1068. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  1069. testJson.testJson[index1].timuList.length
  1070. ">
  1071. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  1072. @click.stop="previewImg(timg.src)">
  1073. <img :src="timg.src" alt="" />
  1074. </div>
  1075. </div>
  1076. <div class="a_add_body">
  1077. <div class="a_add_input">
  1078. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  1079. <div class="radioBox">
  1080. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1081. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  1082. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  1083. <div class="inImg" @click.stop="previewImg(item2.src)">
  1084. <img :src="item2.src" alt="" />
  1085. </div>
  1086. </div>
  1087. <span v-else v-html="item2"></span>
  1088. </el-radio>
  1089. </div>
  1090. </el-radio-group>
  1091. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  1092. <div class="radioBox">
  1093. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  1094. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  1095. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  1096. <div class="inImg" @click.stop="previewImg(item2.src)">
  1097. <img :src="item2.src" alt="" />
  1098. </div>
  1099. </div>
  1100. <span v-else v-html="item2"></span>
  1101. </el-checkbox>
  1102. </div>
  1103. </el-checkbox-group>
  1104. </div>
  1105. </div>
  1106. </div>
  1107. </div>
  1108. </div>
  1109. <span slot="footer" class="dialog-footer">
  1110. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  1111. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  1112. </span>
  1113. </el-dialog>
  1114. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoiceTeacher"
  1115. :append-to-body="true" width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  1116. <div>
  1117. <div class="w_name">
  1118. 学生姓名:<span>{{ sStudent.student }}</span>
  1119. </div>
  1120. <div class="a_addBox">
  1121. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  1122. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1123. <div class="a_add_head">
  1124. <div style="display: flex">
  1125. {{ index1 + 1 + "、" }}
  1126. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px">
  1127. (单选题)
  1128. </div>
  1129. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  1130. (多选题)
  1131. </div>
  1132. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  1133. </div>
  1134. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  1135. style="height: 300px; margin-top: 10px; max-width: 100%" />
  1136. </div>
  1137. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  1138. testJson.testJson[index1].timuList.length
  1139. ">
  1140. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  1141. @click.stop="previewImg(timg.src)">
  1142. <img :src="timg.src" alt="" />
  1143. </div>
  1144. </div>
  1145. <div class="a_add_body">
  1146. <div class="a_add_input">
  1147. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  1148. <div class="radioBox">
  1149. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1150. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  1151. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  1152. <div class="inImg" @click.stop="previewImg(item2.src)">
  1153. <img :src="item2.src" alt="" />
  1154. </div>
  1155. </div>
  1156. <span v-else v-html="item2"></span>
  1157. </el-radio>
  1158. </div>
  1159. </el-radio-group>
  1160. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  1161. <div class="radioBox">
  1162. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  1163. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  1164. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  1165. <div class="inImg" @click.stop="previewImg(item2.src)">
  1166. <img :src="item2.src" alt="" />
  1167. </div>
  1168. </div>
  1169. <span v-else v-html="item2"></span>
  1170. </el-checkbox>
  1171. </div>
  1172. </el-checkbox-group>
  1173. </div>
  1174. </div>
  1175. </div>
  1176. </div>
  1177. </div>
  1178. <span slot="footer" class="dialog-footer">
  1179. <el-button @click="dialogVisibleChoiceTeacher = false" v-show="noteName == ''">取 消</el-button>
  1180. <el-button type="primary" @click="addStudentTestTeacher" v-show="noteName == ''">确 定</el-button>
  1181. </span>
  1182. </el-dialog>
  1183. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  1184. :before-close="handleClose" class="dialog_diy textCss">
  1185. <el-form style="font-size: 20px">
  1186. <el-form-item label="文本标题" class="textTitle">
  1187. <div style="font-size: 20px">{{ text.name }}</div>
  1188. </el-form-item>
  1189. <div>富文本内容</div>
  1190. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  1191. </el-form>
  1192. <span slot="footer" class="dialog-footer">
  1193. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  1194. </span>
  1195. </el-dialog>
  1196. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  1197. :class="{ fullStyle: full }">
  1198. <div slot="title" class="header-title">
  1199. <div style="color: #fff">文件预览</div>
  1200. <div style="position: absolute; top: 19px; right: 50px">
  1201. <img src="../../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  1202. </div>
  1203. </div>
  1204. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  1205. :class="{ fullStyle: full }"></pdf>
  1206. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  1207. </el-dialog>
  1208. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  1209. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
  1210. </el-dialog>
  1211. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px" :before-close="handleClose"
  1212. class="dialog_diy notice">
  1213. <div>此功能暂未开放!</div>
  1214. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  1215. </el-dialog>
  1216. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  1217. :before-close="handleClose" class="dialog_diy">
  1218. <div>
  1219. <div style="
  1220. display: flex;
  1221. flex-wrap: nowrap;
  1222. flex-direction: column;
  1223. position: relative;
  1224. ">
  1225. <div class="queTop" style="padding: 20px 0 20px 0">
  1226. <div class="question">
  1227. <img src="../../assets/icon/question.png" alt />
  1228. </div>
  1229. <div class="queTitle">
  1230. <div style="width: 90px; min-width: 90px">提问:</div>
  1231. <div>{{ answerQ }}</div>
  1232. </div>
  1233. </div>
  1234. <div class="ediBottom">
  1235. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  1236. v-model="questionAnswer"></textarea>
  1237. </div>
  1238. </div>
  1239. </div>
  1240. <div slot="footer">
  1241. <el-button @click="answerDialogVisible = false">取 消</el-button>
  1242. <el-button type="primary" @click="addQuestion">提 交</el-button>
  1243. </div>
  1244. </el-dialog>
  1245. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  1246. :before-close="handleClose" class="dialog_diy">
  1247. <div>
  1248. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  1249. </div>
  1250. <div slot="footer">
  1251. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  1252. </div>
  1253. </el-dialog>
  1254. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  1255. class="dialog_diy">
  1256. <div>
  1257. <div class="open_box">
  1258. <div class="switch_box">
  1259. <span>允许学生查看所有作业</span>
  1260. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  1261. </div>
  1262. <div class="switch_box" v-if="courseDetail.userid == userid ||
  1263. (courseDetail.course_teacher &&
  1264. courseDetail.course_teacher.indexOf(userid) != -1)
  1265. ">
  1266. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  1267. <span>禁止学生查看所有阶段</span>
  1268. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  1269. </div>
  1270. <div class="switch_box" v-if="courseDetail.userid == userid">
  1271. <span>开启跟随模式</span>
  1272. <el-switch v-model="IsFollow" active-text="" class="switchCss" @change="updateFollow"></el-switch>
  1273. </div>
  1274. </div>
  1275. </div>
  1276. <div slot="footer">
  1277. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  1278. </div>
  1279. </el-dialog>
  1280. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  1281. class="dialog_diy1">
  1282. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  1283. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  1284. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  1285. </div>
  1286. <div slot="footer">
  1287. <el-button style="background: #409efe; color: #fff"
  1288. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  1289. 关 闭</el-button>
  1290. </div>
  1291. </el-dialog>
  1292. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  1293. :before-close="handleClose" class="dialog_diy">
  1294. <div class="commentTop">
  1295. <div class="studentDetail">
  1296. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  1297. <div class="nameAndTime">
  1298. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  1299. <div>{{ commentDetail.time }}</div>
  1300. </div>
  1301. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="commentDetail.works &&
  1302. commentDetail.type == 0 &&
  1303. (tType == 1 || tType == 4)
  1304. " @click="showPicturePaint(
  1305. commentDetail.img ? commentDetail.img : commentDetail.works
  1306. )
  1307. ">
  1308. 教师批注
  1309. </div>
  1310. </div>
  1311. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  1312. {{ JSON.parse(commentDetail.works)[0].answer }}
  1313. </div>
  1314. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  1315. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  1316. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  1317. :class="{ fullStyle: full }"></pdf>
  1318. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  1319. </div>
  1320. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  1321. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" style="right: 105px" />
  1322. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  1323. </div>
  1324. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  1325. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  1326. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  1327. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  1328. </div>
  1329. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 10">
  1330. <div class="cont" v-html="commentDetail.works.text"></div>
  1331. </div>
  1332. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  1333. @click="downloadFile(commentDetail.works)">
  1334. <img src="../../assets/icon/codeFile.png" />
  1335. <div>点击下载文件</div>
  1336. </div>
  1337. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  1338. <div v-html="JSON.parse(commentDetail.works).text"></div>
  1339. </div>
  1340. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  1341. <div class="evalCss">
  1342. <div class="nav">请选择星星进行评分</div>
  1343. <div class="middleBox" v-if="eScore.eStar">
  1344. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  1345. <div class="nameAndrate">
  1346. <div>{{ e.value }}</div>
  1347. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  1348. </div>
  1349. <div v-if="e.detail">{{ e.detail }}</div>
  1350. </div>
  1351. <div class="bz">
  1352. <textarea disabled rows="4" class="pj" style="
  1353. padding: 10px 5px;
  1354. width: 70%;
  1355. background: #f7f6f9;
  1356. font-size: 14px;
  1357. text-indent: 10px;
  1358. color: #000;
  1359. " cols v-model="eScore.eBzText"
  1360. placeholder="请输入评价内容..."></textarea>
  1361. </div>
  1362. </div>
  1363. </div>
  1364. </div>
  1365. <div class="comment">
  1366. <div class="commentList">
  1367. <div class="commentImg">
  1368. <img @click="isLikes(
  1369. commentDetail.wid,
  1370. userid,
  1371. 1,
  1372. null,
  1373. commentDetail.isLikes
  1374. )
  1375. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  1376. </div>
  1377. <div>{{ commentDetail.likesCount }}</div>
  1378. </div>
  1379. <div class="commentList">
  1380. <div class="commentImg">
  1381. <img src="../../assets/icon/comment/comment.png" alt="" />
  1382. </div>
  1383. <div>{{ commentDetail.commentCount }}</div>
  1384. </div>
  1385. </div>
  1386. <div class="drawPBox" v-if="commentDetail.img">
  1387. <span>教师批注</span>
  1388. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  1389. <span class="deleteImg" v-if="tType == 1 || tType == 4" @click.stop="deletePicturePaint(commentDetail.wid)"
  1390. style="
  1391. font-size: 14px;
  1392. width: auto !important;
  1393. color: #b4b4b4;
  1394. top: unset;
  1395. bottom: 0;
  1396. border: none;
  1397. padding: 0;
  1398. height: auto !important;
  1399. margin: 0;
  1400. ">删除</span>
  1401. </div>
  1402. </div>
  1403. <div class="commentBox">
  1404. <div class="pl">评论:</div>
  1405. <div style="max-height: 200px; overflow: auto">
  1406. <div v-if="commentDetail.commentJson && commentDetail.commentJson.length" style="padding: 10px 0 0 0">
  1407. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  1408. :key="coIndex">
  1409. <div class="tx" style="min-width: 50px">
  1410. <img src="../../assets/avatar.png" alt="" />
  1411. </div>
  1412. <div class="plPerson">
  1413. <div class="plName">
  1414. <div>{{ co.commentPeople }}</div>
  1415. <div style="margin-left: 5px">
  1416. {{ co.commentTime }}
  1417. </div>
  1418. <div class="deleteComment" v-if="userid == co.userid" @click="deleteComment(co.wid)">删除</div>
  1419. </div>
  1420. <div class="plContent">{{ co.commentText }}</div>
  1421. </div>
  1422. </div>
  1423. </div>
  1424. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  1425. </div>
  1426. </div>
  1427. <div style="margin-top: 10px">
  1428. <div class="displayBox">
  1429. <div style="
  1430. color: #556db4;
  1431. font-size: 14px;
  1432. font-weight: bold;
  1433. padding-bottom: 10px;
  1434. ">
  1435. 评价
  1436. </div>
  1437. <div class="easy_comment" v-if="false">
  1438. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  1439. {{ p }}
  1440. </div>
  1441. </div>
  1442. </div>
  1443. <div>
  1444. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  1445. placeholder="请输入评论"></textarea>
  1446. </div>
  1447. </div>
  1448. <div slot="footer">
  1449. <el-button @click="(commentDialogVisible = false),
  1450. (commentIndexJson = {}),
  1451. videoDetail.sources && videoDetail.sources[0]
  1452. ? (videoDetail.sources[0].src = '')
  1453. : ''
  1454. ">取 消</el-button>
  1455. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  1456. </div>
  1457. </el-dialog>
  1458. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  1459. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 3 }">
  1460. <div slot="title" class="header-title">
  1461. <div style="color: #fff">查看文档</div>
  1462. <div @click="fullDialogVisible = false" style="
  1463. cursor: pointer;
  1464. position: absolute;
  1465. top: 20px;
  1466. right: 20px;
  1467. color: #fff;
  1468. ">
  1469. 退出全屏
  1470. </div>
  1471. </div>
  1472. <div style="height: 100%">
  1473. <div class="wheel"
  1474. v-if="fullUrl.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && fulltype == 2"
  1475. style="width: 95%; margin: 0 auto">
  1476. <iframe style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  1477. </div>
  1478. <iframe v-else-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl"
  1479. security="restricted"
  1480. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  1481. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  1482. <div class="wheel" v-if="fulltype == 1" style="
  1483. box-shadow: 0 0 6px 1px #f2f2f2;
  1484. width: 100%;
  1485. background: #f1f1f1;
  1486. ">
  1487. <div class="title" style="width: 100%; box-sizing: border-box">
  1488. 查看文档
  1489. </div>
  1490. <el-form class="textBox" style="height: 90%">
  1491. <el-form-item class="textTitle">
  1492. <div style="font-size: 22px">
  1493. {{ fullUrl.name }}
  1494. </div>
  1495. </el-form-item>
  1496. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  1497. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  1498. </el-form>
  1499. </div>
  1500. </div>
  1501. <!-- <div slot="footer">
  1502. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  1503. </div> -->
  1504. </el-dialog>
  1505. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  1506. :before-close="handleClose" class="dialog_diy">
  1507. <div class="evalCss">
  1508. <div class="nav">请选择星星进行评分</div>
  1509. <div class="middleBox" v-if="eScore.eStar">
  1510. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  1511. <div class="nameAndrate">
  1512. <div>{{ e.value }}</div>
  1513. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  1514. </div>
  1515. <div v-if="e.detail">{{ e.detail }}</div>
  1516. </div>
  1517. <div class="easy_comment" v-if="false">
  1518. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  1519. {{ p }}
  1520. </div>
  1521. </div>
  1522. <div class="bz">
  1523. <textarea :disabled="isStar" rows="4" class="pj" style="
  1524. padding: 10px 5px;
  1525. width: 70%;
  1526. background: #f7f6f9;
  1527. font-size: 14px;
  1528. text-indent: 10px;
  1529. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  1530. </div>
  1531. </div>
  1532. </div>
  1533. <div slot="footer">
  1534. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  1535. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  1536. </div>
  1537. </el-dialog>
  1538. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisibleTeacher" :append-to-body="true" width="800px"
  1539. :before-close="handleClose" class="dialog_diy">
  1540. <div class="w_name">
  1541. 学生姓名:<span>{{ sStudent.student }}</span>
  1542. </div>
  1543. <div class="evalCss">
  1544. <div class="nav">请选择星星进行评分</div>
  1545. <div class="middleBox" v-if="eScore.eStar">
  1546. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  1547. <div class="nameAndrate">
  1548. <div>{{ e.value }}</div>
  1549. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  1550. </div>
  1551. <div v-if="e.detail">{{ e.detail }}</div>
  1552. </div>
  1553. <div class="easy_comment" v-if="false">
  1554. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  1555. {{ p }}
  1556. </div>
  1557. </div>
  1558. <div class="bz">
  1559. <textarea :disabled="isStar" rows="4" class="pj" style="
  1560. padding: 10px 5px;
  1561. width: 70%;
  1562. background: #f7f6f9;
  1563. font-size: 14px;
  1564. text-indent: 10px;
  1565. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  1566. </div>
  1567. </div>
  1568. </div>
  1569. <div slot="footer">
  1570. <el-button @click="studentEvalDialogVisibleTeacher = false">取 消</el-button>
  1571. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar">确 定</el-button>
  1572. </div>
  1573. </el-dialog>
  1574. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  1575. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1576. <div v-if="selectJson">
  1577. <div class="select_box2">
  1578. <div class="select_box2_title">
  1579. <div>选择填空</div>
  1580. <div>请选择对应的答案进行答题!</div>
  1581. </div>
  1582. <div class="select_box2_box">
  1583. <div class="select_box2_img">
  1584. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  1585. </div>
  1586. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  1587. <div style="padding-top: 15px">
  1588. <div class="select_answer_title" v-if="isSelect">
  1589. {{ selectAnswer.stu }}
  1590. </div>
  1591. <div class="select_answer_title" v-else>
  1592. 根据题目选择对应答案
  1593. </div>
  1594. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  1595. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  1596. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  1597. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  1598. </el-option>
  1599. </el-select>
  1600. </div>
  1601. </div>
  1602. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  1603. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  1604. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  1605. 回答正确
  1606. </div>
  1607. <div v-else>回答错误</div>
  1608. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  1609. 正确答案:
  1610. </div>
  1611. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  1612. ">
  1613. {{ selectJson.select[a] }}
  1614. </div>
  1615. </div>
  1616. </div>
  1617. </div>
  1618. <div class="upAnswerCss">
  1619. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  1620. </div>
  1621. </div>
  1622. </div>
  1623. </div>
  1624. </el-dialog>
  1625. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelectTeacher" :append-to-body="true" width="90%"
  1626. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1627. <div v-if="selectJson">
  1628. <div class="w_name">
  1629. 学生姓名:<span>{{ sStudent.student }}</span>
  1630. </div>
  1631. <div class="select_box2">
  1632. <div class="select_box2_title">
  1633. <div>选择填空</div>
  1634. <div>请选择对应的答案进行答题!</div>
  1635. </div>
  1636. <div class="select_box2_box">
  1637. <div class="select_box2_img">
  1638. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  1639. </div>
  1640. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  1641. <div style="padding-top: 15px">
  1642. <div class="select_answer_title" v-if="isSelect">
  1643. {{ selectAnswer.stu }}
  1644. </div>
  1645. <div class="select_answer_title" v-else>
  1646. 根据题目选择对应答案
  1647. </div>
  1648. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  1649. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  1650. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  1651. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  1652. </el-option>
  1653. </el-select>
  1654. </div>
  1655. </div>
  1656. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  1657. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  1658. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  1659. 回答正确
  1660. </div>
  1661. <div v-else>回答错误</div>
  1662. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  1663. 正确答案:
  1664. </div>
  1665. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  1666. ">
  1667. {{ selectJson.select[a] }}
  1668. </div>
  1669. </div>
  1670. </div>
  1671. </div>
  1672. <div class="upAnswerCss">
  1673. <el-button type="primary" @click="addSelectAnswerTeacher" v-if="!isSelect">提交答案</el-button>
  1674. </div>
  1675. </div>
  1676. </div>
  1677. </div>
  1678. </el-dialog>
  1679. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  1680. :before-close="handleClose" class="dialog_diy">
  1681. <div>
  1682. <div class="studentDetail">
  1683. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  1684. <div class="nameAndTime">
  1685. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  1686. <div>{{ commentDetail.time }}</div>
  1687. </div>
  1688. </div>
  1689. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  1690. {{ JSON.parse(commentDetail.works)[0].answer }}
  1691. </div>
  1692. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  1693. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  1694. :class="{ fullStyle: full }"></pdf>
  1695. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  1696. </div>
  1697. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  1698. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  1699. </div>
  1700. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  1701. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  1702. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  1703. </div>
  1704. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  1705. @click="downloadFile(commentDetail.works)">
  1706. <img src="../../assets/icon/codeFile.png" />
  1707. <div>点击下载文件</div>
  1708. </div>
  1709. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  1710. <div v-html="JSON.parse(commentDetail.works).text"></div>
  1711. </div>
  1712. <div class="scoreBox">
  1713. <span class="t">请输入分数</span>
  1714. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  1715. :max="100"></el-input-number>
  1716. </div>
  1717. <div class="scoreDetailBox">
  1718. <span class="t">评分评论</span>
  1719. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  1720. v-model="scoreDetail" placeholder="请输入对学生的评价">
  1721. </el-input>
  1722. </div>
  1723. </div>
  1724. <span slot="footer" class="dialog-footer">
  1725. <el-button @click="(dialogVisibleScore = false),
  1726. (commentIndexJson = {}),
  1727. videoDetail.sources && videoDetail.sources[0]
  1728. ? (videoDetail.sources[0].src = '')
  1729. : ''
  1730. ">取 消</el-button>
  1731. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  1732. </el-button>
  1733. </span>
  1734. </el-dialog>
  1735. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  1736. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1737. <div>
  1738. <div class="sentenBox">
  1739. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  1740. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  1741. <div class="cardList" v-if="st.chooseSenList">
  1742. <div class="cardBox">
  1743. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  1744. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  1745. <div :class="{
  1746. isCard: r,
  1747. isChooseCard: r == '' || r == undefined,
  1748. }">
  1749. <div>{{ r }}</div>
  1750. </div>
  1751. </el-tooltip>
  1752. <div :class="{
  1753. isCard: r,
  1754. isChooseCard: r == '' || r == undefined,
  1755. }" v-else>
  1756. <div>{{ r }}</div>
  1757. </div>
  1758. </div>
  1759. </div>
  1760. </div>
  1761. <div class="cardList" v-if="st.addChangeSen">
  1762. <div class="cardBox">
  1763. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  1764. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  1765. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  1766. <div>{{ s }}</div>
  1767. </div>
  1768. </el-tooltip>
  1769. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  1770. <div>{{ s }}</div>
  1771. </div>
  1772. </div>
  1773. </div>
  1774. </div>
  1775. </div>
  1776. </div>
  1777. </div>
  1778. <span slot="footer" class="dialog-footer">
  1779. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  1780. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  1781. </span>
  1782. </el-dialog>
  1783. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentenceTeacher" :append-to-body="true" width="1000px"
  1784. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1785. <div>
  1786. <div class="w_name">
  1787. 学生姓名:<span>{{ sStudent.student }}</span>
  1788. </div>
  1789. <div class="sentenBox">
  1790. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  1791. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  1792. <div class="cardList" v-if="st.chooseSenList">
  1793. <div class="cardBox">
  1794. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  1795. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  1796. <div :class="{
  1797. isCard: r,
  1798. isChooseCard: r == '' || r == undefined,
  1799. }">
  1800. <div>{{ r }}</div>
  1801. </div>
  1802. </el-tooltip>
  1803. <div :class="{
  1804. isCard: r,
  1805. isChooseCard: r == '' || r == undefined,
  1806. }" v-else>
  1807. <div>{{ r }}</div>
  1808. </div>
  1809. </div>
  1810. </div>
  1811. </div>
  1812. <div class="cardList" v-if="st.addChangeSen">
  1813. <div class="cardBox">
  1814. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  1815. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  1816. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  1817. <div>{{ s }}</div>
  1818. </div>
  1819. </el-tooltip>
  1820. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  1821. <div>{{ s }}</div>
  1822. </div>
  1823. </div>
  1824. </div>
  1825. </div>
  1826. </div>
  1827. </div>
  1828. </div>
  1829. <span slot="footer" class="dialog-footer">
  1830. <el-button @click="dialogVisibleSentenceTeacher = false">取 消</el-button>
  1831. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  1832. </span>
  1833. </el-dialog>
  1834. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  1835. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1836. <div>
  1837. <div class="sentenBox">
  1838. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  1839. {{ sentenceList1.stuName }}的作业
  1840. </div>
  1841. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  1842. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  1843. 第{{ stIndex + 1 }}题
  1844. </div>
  1845. <div class="isWrong">
  1846. <div class="cardList1" v-if="st.chooseSenList">
  1847. <div class="cardBox">
  1848. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  1849. <el-tooltip class="item" effect="light" :content="s" placement="top">
  1850. <div class="isCard">
  1851. <div>{{ s }}</div>
  1852. </div>
  1853. </el-tooltip>
  1854. </div>
  1855. </div>
  1856. <div class="cardAnswerBox">
  1857. 组成句子:{{ st.chooseSenList.join(" ") }}
  1858. </div>
  1859. </div>
  1860. <div class="answerRight isTj" v-if="st.chooseSenList.toString() == st.rightAnswer.toString() &&
  1861. (tType == 1 || tType == 4)
  1862. ">
  1863. <div class="isTjImg">
  1864. <img src="../../assets/icon/conSentences/right.png" alt="" />
  1865. </div>
  1866. <div>回答正确</div>
  1867. </div>
  1868. <div class="answerRight isTj" v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  1869. (tType == 1 || tType == 4)
  1870. ">
  1871. <div class="isTjImg">
  1872. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  1873. </div>
  1874. <div>回答错误</div>
  1875. </div>
  1876. </div>
  1877. <div v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  1878. (tType == 1 || tType == 4)
  1879. ">
  1880. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  1881. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  1882. <div class="cardBox">
  1883. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  1884. <el-tooltip class="item" effect="light" :content="r" placement="top">
  1885. <div class="isCard1">
  1886. <div>{{ r }}</div>
  1887. </div>
  1888. </el-tooltip>
  1889. </div>
  1890. </div>
  1891. <div class="cardAnswerBox">
  1892. 组成句子:{{ st.rightAnswer.join(" ") }}
  1893. </div>
  1894. </div>
  1895. </div>
  1896. </div>
  1897. </div>
  1898. </div>
  1899. <span slot="footer" class="dialog-footer">
  1900. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  1901. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  1902. </span>
  1903. </el-dialog>
  1904. <el-dialog title="提交作业" :visible.sync="dialogVisibleWorks" :append-to-body="true" width="500px"
  1905. :before-close="handleClose" class="dialog_change">
  1906. <div class="marginT">
  1907. <div class="w_name">
  1908. 学生姓名:<span>{{ sStudent.student }}</span>
  1909. </div>
  1910. <div>上传文件</div>
  1911. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  1912. <div class="up_photo">
  1913. <img src="../../assets/uploadImg2.png" alt />
  1914. </div>
  1915. <!-- <input
  1916. type="file"
  1917. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  1918. style="display: none"
  1919. @change="beforeUpload1($event, 1)"
  1920. /> -->
  1921. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  1922. </div>
  1923. <!-- capture="camera" -->
  1924. <div class="chapter_add" style="
  1925. display: flex;
  1926. width: 100%;
  1927. flex-direction: row;
  1928. flex-wrap: wrap;
  1929. justify-content: flex-start;
  1930. padding: 15px 0;
  1931. " v-if="studyJuri[0].cover.length > 0">
  1932. <div class="upCover">
  1933. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  1934. <img :src="word" alt v-else-if="fileType == 1" />
  1935. <img :src="video" alt v-else-if="fileType == 2" />
  1936. <img :src="word2" alt v-else-if="fileType == 3" />
  1937. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  1938. <div class="deleteWord" @click="clean(1)">
  1939. <img src="../../assets/icon/deleteWorks.png" alt />
  1940. </div>
  1941. </div>
  1942. </div>
  1943. </div>
  1944. <div class="upload_send" @click="addCourseWorksTeacher(taskCount)" v-if="!proVisible">
  1945. 提交
  1946. </div>
  1947. </el-dialog>
  1948. <el-dialog title="问答" :visible.sync="answerDialogVisibleTeacher" :append-to-body="true" width="800px"
  1949. :before-close="handleClose" class="dialog_diy">
  1950. <div>
  1951. <div class="w_name">
  1952. 学生姓名:<span>{{ sStudent.student }}</span>
  1953. </div>
  1954. <div style="
  1955. display: flex;
  1956. flex-wrap: nowrap;
  1957. flex-direction: column;
  1958. position: relative;
  1959. ">
  1960. <div class="queTop" style="padding: 20px 0 20px 0">
  1961. <div class="question">
  1962. <img src="../../assets/icon/question.png" alt />
  1963. </div>
  1964. <div class="queTitle">
  1965. <div style="width: 90px; min-width: 90px">提问:</div>
  1966. <div>{{ answerQ }}</div>
  1967. </div>
  1968. </div>
  1969. <div class="ediBottom">
  1970. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  1971. v-model="questionAnswer"></textarea>
  1972. </div>
  1973. </div>
  1974. </div>
  1975. <div slot="footer">
  1976. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  1977. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  1978. </div>
  1979. </el-dialog>
  1980. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  1981. <el-dialog title="表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  1982. :before-close="handleClose" class="dialog_diy">
  1983. <el-form>
  1984. <div>表格内容</div>
  1985. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
  1986. </el-form>
  1987. <span slot="footer" class="dialog-footer">
  1988. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  1989. <el-button type="primary" @click="addTableWorks">确定</el-button>
  1990. </span>
  1991. </el-dialog>
  1992. <el-dialog title="表格" :visible.sync="dialogVisibleTableTeacher" :append-to-body="true" width="95%"
  1993. :before-close="handleClose" class="dialog_diy">
  1994. <el-form>
  1995. <div class="w_name">
  1996. 学生姓名:<span>{{ sStudent.student }}</span>
  1997. </div>
  1998. <div>表格内容</div>
  1999. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTableTeacher"></Table>
  2000. </el-form>
  2001. <span slot="footer" class="dialog-footer">
  2002. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  2003. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  2004. </span>
  2005. </el-dialog>
  2006. <el-dialog title="文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%" :before-close="handleClose"
  2007. class="dialog_diy">
  2008. <el-form>
  2009. <div>文档内容</div>
  2010. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWord"></editor-bar>
  2011. </el-form>
  2012. <span slot="footer" class="dialog-footer">
  2013. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  2014. <el-button type="primary" @click="addWordWorks">确定</el-button>
  2015. </span>
  2016. </el-dialog>
  2017. <el-dialog title="文档" :visible.sync="dialogVisibleWordTeacher" :append-to-body="true" width="95%"
  2018. :before-close="handleClose" class="dialog_diy">
  2019. <el-form>
  2020. <div class="w_name">
  2021. 学生姓名:<span>{{ sStudent.student }}</span>
  2022. </div>
  2023. <div>文档内容</div>
  2024. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWordTeacher"></editor-bar>
  2025. </el-form>
  2026. <span slot="footer" class="dialog-footer">
  2027. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  2028. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  2029. </span>
  2030. </el-dialog>
  2031. <el-dialog title="表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  2032. :before-close="handleClose" class="dialog_diy">
  2033. <el-form>
  2034. <div class="cont" v-html="tableJson.text"></div>
  2035. </el-form>
  2036. <span slot="footer" class="dialog-footer">
  2037. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  2038. </span>
  2039. </el-dialog>
  2040. <el-dialog title="文档" :visible.sync="dialogVisibleTable3" :append-to-body="true" width="95%"
  2041. :before-close="handleClose" class="dialog_diy">
  2042. <el-form>
  2043. <div class="cont" v-html="tableJson.text"></div>
  2044. </el-form>
  2045. <span slot="footer" class="dialog-footer">
  2046. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  2047. </span>
  2048. </el-dialog>
  2049. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="95%"
  2050. :before-close="handleClose" class="dialog_diy">
  2051. <div v-if="dialogVisibleGroup">
  2052. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  2053. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  2054. 提示:需要锁定位置,才能点击头像修改座位。
  2055. </div>
  2056. <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  2057. @click="lockChair">
  2058. 锁定位置
  2059. </div>
  2060. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  2061. 解锁位置
  2062. </div>
  2063. <div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
  2064. 分组设置
  2065. </div>
  2066. </div>
  2067. <div>
  2068. <div class="g_d_box" v-if="groupJson.group && groupStudent[toolindex]">
  2069. <div class="g_d_group" v-for="(g, gindex) in groupJson.group" :key="gindex">
  2070. <div class="g_d_group_chair">
  2071. <div v-if="groupJson.number > 1">
  2072. <span :class="{
  2073. isChair:
  2074. groupStudent[toolindex][gindex] &&
  2075. groupStudent[toolindex][gindex][0],
  2076. updateChair:
  2077. courseDetail.userid == userid &&
  2078. groupStudent[toolindex][gindex] &&
  2079. groupStudent[toolindex][gindex][0] &&
  2080. groupJson.islock == 2,
  2081. }"><span class="updateChairBtn" @click="updateGroupChair(
  2082. groupStudent[toolindex][gindex] &&
  2083. groupStudent[toolindex][gindex][0]
  2084. )
  2085. ">修改</span></span><span>{{
  2086. groupStudent[toolindex][gindex] &&
  2087. groupStudent[toolindex][gindex][0]
  2088. ? groupStudent[toolindex][gindex] &&
  2089. groupStudent[toolindex][gindex][0].name
  2090. : "空位置"
  2091. }}</span>
  2092. </div>
  2093. <div v-if="groupJson.number > 4">
  2094. <span :class="{
  2095. isChair:
  2096. groupStudent[toolindex][gindex] &&
  2097. groupStudent[toolindex][gindex][4],
  2098. updateChair:
  2099. courseDetail.userid == userid &&
  2100. groupStudent[toolindex][gindex] &&
  2101. groupStudent[toolindex][gindex][4] &&
  2102. groupJson.islock == 2,
  2103. }"><span class="updateChairBtn" @click="updateGroupChair(
  2104. groupStudent[toolindex][gindex] &&
  2105. groupStudent[toolindex][gindex][4]
  2106. )
  2107. ">修改</span></span><span>{{
  2108. groupStudent[toolindex][gindex] &&
  2109. groupStudent[toolindex][gindex][4]
  2110. ? groupStudent[toolindex][gindex] &&
  2111. groupStudent[toolindex][gindex][4].name
  2112. : "空位置"
  2113. }}</span>
  2114. </div>
  2115. <div v-if="groupJson.number > 8">
  2116. <span :class="{
  2117. isChair:
  2118. groupStudent[toolindex][gindex] &&
  2119. groupStudent[toolindex][gindex][8],
  2120. updateChair:
  2121. courseDetail.userid == userid &&
  2122. groupStudent[toolindex][gindex] &&
  2123. groupStudent[toolindex][gindex][8] &&
  2124. groupJson.islock == 2,
  2125. }"><span class="updateChairBtn" @click="updateGroupChair(
  2126. groupStudent[toolindex][gindex] &&
  2127. groupStudent[toolindex][gindex][8]
  2128. )
  2129. ">修改</span></span><span>{{
  2130. groupStudent[toolindex][gindex] &&
  2131. groupStudent[toolindex][gindex][8]
  2132. ? groupStudent[toolindex][gindex] &&
  2133. groupStudent[toolindex][gindex][8].name
  2134. : "空位置"
  2135. }}</span>
  2136. </div>
  2137. </div>
  2138. <div class="g_d_group_tableBox">
  2139. <div class="g_d_group_chair2">
  2140. <div v-if="groupJson.number > 2">
  2141. <span :class="{
  2142. isChair:
  2143. groupStudent[toolindex][gindex] &&
  2144. groupStudent[toolindex][gindex][2],
  2145. updateChair:
  2146. courseDetail.userid == userid &&
  2147. groupStudent[toolindex][gindex] &&
  2148. groupStudent[toolindex][gindex][2] &&
  2149. groupJson.islock == 2,
  2150. }"><span class="updateChairBtn" @click="updateGroupChair(
  2151. groupStudent[toolindex][gindex] &&
  2152. groupStudent[toolindex][gindex][2]
  2153. )
  2154. ">修改</span></span><span>{{
  2155. groupStudent[toolindex][gindex] &&
  2156. groupStudent[toolindex][gindex][2]
  2157. ? groupStudent[toolindex][gindex] &&
  2158. groupStudent[toolindex][gindex][2].name
  2159. : "空位置"
  2160. }}</span>
  2161. </div>
  2162. <div v-if="groupJson.number > 6">
  2163. <span :class="{
  2164. isChair:
  2165. groupStudent[toolindex][gindex] &&
  2166. groupStudent[toolindex][gindex][6],
  2167. updateChair:
  2168. courseDetail.userid == userid &&
  2169. groupStudent[toolindex][gindex] &&
  2170. groupStudent[toolindex][gindex][6] &&
  2171. groupJson.islock == 2,
  2172. }"><span class="updateChairBtn" @click="updateGroupChair(
  2173. groupStudent[toolindex][gindex] &&
  2174. groupStudent[toolindex][gindex][6]
  2175. )
  2176. ">修改</span></span><span>{{
  2177. groupStudent[toolindex][gindex] &&
  2178. groupStudent[toolindex][gindex][6]
  2179. ? groupStudent[toolindex][gindex] &&
  2180. groupStudent[toolindex][gindex][6].name
  2181. : "空位置"
  2182. }}</span>
  2183. </div>
  2184. </div>
  2185. <div class="g_d_group_table">
  2186. <div>
  2187. {{ g.name }}
  2188. </div>
  2189. <div>
  2190. <div v-if="courseDetail.userid == userid && groupJson.islock == 2
  2191. " @click="deleteGroupChair(gindex)">
  2192. 移除组员
  2193. </div>
  2194. <div @click="selectGroup(gindex)" v-else-if="groupStudentUid[toolindex] &&
  2195. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  2196. ">
  2197. 加入分组
  2198. </div>
  2199. <div @click="exitGroup(
  2200. groupStudent[toolindex][gindex] &&
  2201. groupStudent[toolindex][gindex][
  2202. groupStudentUid[toolindex][gindex].indexOf(userid)
  2203. ].id
  2204. )
  2205. " v-else-if="groupStudentUid[toolindex] &&
  2206. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  2207. ">
  2208. 退出分组
  2209. </div>
  2210. </div>
  2211. </div>
  2212. <div class="g_d_group_chair2">
  2213. <div v-if="groupJson.number > 3">
  2214. <span :class="{
  2215. isChair:
  2216. groupStudent[toolindex][gindex] &&
  2217. groupStudent[toolindex][gindex][3],
  2218. updateChair:
  2219. courseDetail.userid == userid &&
  2220. groupStudent[toolindex][gindex] &&
  2221. groupStudent[toolindex][gindex][3] &&
  2222. groupJson.islock == 2,
  2223. }"><span class="updateChairBtn" @click="updateGroupChair(
  2224. groupStudent[toolindex][gindex] &&
  2225. groupStudent[toolindex][gindex][3]
  2226. )
  2227. ">修改</span></span><span>{{
  2228. groupStudent[toolindex][gindex] &&
  2229. groupStudent[toolindex][gindex][3]
  2230. ? groupStudent[toolindex][gindex] &&
  2231. groupStudent[toolindex][gindex][3].name
  2232. : "空位置"
  2233. }}</span>
  2234. </div>
  2235. <div v-if="groupJson.number > 7">
  2236. <span :class="{
  2237. isChair:
  2238. groupStudent[toolindex][gindex] &&
  2239. groupStudent[toolindex][gindex][7],
  2240. updateChair:
  2241. courseDetail.userid == userid &&
  2242. groupStudent[toolindex][gindex] &&
  2243. groupStudent[toolindex][gindex][7] &&
  2244. groupJson.islock == 2,
  2245. }"><span class="updateChairBtn" @click="updateGroupChair(
  2246. groupStudent[toolindex][gindex] &&
  2247. groupStudent[toolindex][gindex][7]
  2248. )
  2249. ">修改</span></span><span>{{
  2250. groupStudent[toolindex][gindex] &&
  2251. groupStudent[toolindex][gindex][7]
  2252. ? groupStudent[toolindex][gindex] &&
  2253. groupStudent[toolindex][gindex][7].name
  2254. : "空位置"
  2255. }}</span>
  2256. </div>
  2257. </div>
  2258. </div>
  2259. <div class="g_d_group_chair">
  2260. <div v-if="groupJson.number > 1">
  2261. <span :class="{
  2262. isChair:
  2263. groupStudent[toolindex][gindex] &&
  2264. groupStudent[toolindex][gindex][1],
  2265. updateChair:
  2266. courseDetail.userid == userid &&
  2267. groupStudent[toolindex][gindex] &&
  2268. groupStudent[toolindex][gindex][1] &&
  2269. groupJson.islock == 2,
  2270. }"><span class="updateChairBtn" @click="updateGroupChair(
  2271. groupStudent[toolindex][gindex] &&
  2272. groupStudent[toolindex][gindex][1]
  2273. )
  2274. ">修改</span></span><span>{{
  2275. groupStudent[toolindex][gindex] &&
  2276. groupStudent[toolindex][gindex][1]
  2277. ? groupStudent[toolindex][gindex] &&
  2278. groupStudent[toolindex][gindex][1].name
  2279. : "空位置"
  2280. }}</span>
  2281. </div>
  2282. <div v-if="groupJson.number > 5">
  2283. <span :class="{
  2284. isChair:
  2285. groupStudent[toolindex][gindex] &&
  2286. groupStudent[toolindex][gindex][5],
  2287. updateChair:
  2288. courseDetail.userid == userid &&
  2289. groupStudent[toolindex][gindex] &&
  2290. groupStudent[toolindex][gindex][5] &&
  2291. groupJson.islock == 2,
  2292. }"><span class="updateChairBtn" @click="updateGroupChair(
  2293. groupStudent[toolindex][gindex] &&
  2294. groupStudent[toolindex][gindex][5]
  2295. )
  2296. ">修改</span></span><span>{{
  2297. groupStudent[toolindex][gindex] &&
  2298. groupStudent[toolindex][gindex][5]
  2299. ? groupStudent[toolindex][gindex] &&
  2300. groupStudent[toolindex][gindex][5].name
  2301. : "空位置"
  2302. }}</span>
  2303. </div>
  2304. <div v-if="groupJson.number > 9">
  2305. <span :class="{
  2306. isChair:
  2307. groupStudent[toolindex][gindex] &&
  2308. groupStudent[toolindex][gindex][9],
  2309. updateChair:
  2310. courseDetail.userid == userid &&
  2311. groupStudent[toolindex][gindex] &&
  2312. groupStudent[toolindex][gindex][9] &&
  2313. groupJson.islock == 2,
  2314. }"><span class="updateChairBtn" @click="updateGroupChair(
  2315. groupStudent[toolindex][gindex] &&
  2316. groupStudent[toolindex][gindex][9]
  2317. )
  2318. ">修改</span></span><span>{{
  2319. groupStudent[toolindex][gindex] &&
  2320. groupStudent[toolindex][gindex][9]
  2321. ? groupStudent[toolindex][gindex] &&
  2322. groupStudent[toolindex][gindex][9].name
  2323. : "空位置"
  2324. }}</span>
  2325. </div>
  2326. </div>
  2327. </div>
  2328. </div>
  2329. </div>
  2330. </div>
  2331. <span slot="footer" class="dialog-footer">
  2332. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  2333. </span>
  2334. </el-dialog>
  2335. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
  2336. :before-close="handleClose" class="dialog_diy">
  2337. <div class="groupBox">
  2338. <div v-if="groupJson2.group" class="groupContent">
  2339. <div class="groupTitle">请设置小组数量</div>
  2340. <div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
  2341. <span class="groupn">组{{ index + 1 }}名称:</span>
  2342. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  2343. <!-- <div class="groupBtn">
  2344. <el-button type="primary" size="small" @click="addGroup(index)">
  2345. 添加</el-button>
  2346. <el-button type="primary" size="small" @click="deleteGroup(index)"
  2347. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  2348. </div> -->
  2349. </div>
  2350. </div>
  2351. <div class="groupContent">
  2352. <div class="groupTitle">请设置每组人数数量</div>
  2353. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  2354. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  2355. <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
  2356. placeholder="2-10人以内"></el-input-number>
  2357. </div>
  2358. </div>
  2359. <span slot="footer" class="dialog-footer">
  2360. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  2361. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  2362. </span>
  2363. </el-dialog>
  2364. <el-dialog title="作业提交" :visible.sync="dialogVisibleGroupWork" :append-to-body="true" width="500px"
  2365. :before-close="handleClose" class="dialog_change">
  2366. <div class="marginT">
  2367. <div>上传文件</div>
  2368. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  2369. <div class="up_photo">
  2370. <img src="../../assets/icon/uploadImg.png" alt />
  2371. </div>
  2372. <!-- <input
  2373. type="file"
  2374. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  2375. style="display: none"
  2376. @change="beforeUpload1($event, 1)"
  2377. /> -->
  2378. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  2379. </div>
  2380. <!-- capture="camera" -->
  2381. <div class="chapter_add" style="
  2382. display: flex;
  2383. width: 100%;
  2384. flex-direction: row;
  2385. flex-wrap: wrap;
  2386. justify-content: flex-start;
  2387. padding: 15px 0;
  2388. " v-if="studyJuri[0].cover.length > 0">
  2389. <div class="upCover">
  2390. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  2391. <img :src="word" alt v-else-if="fileType == 1" />
  2392. <img :src="video" alt v-else-if="fileType == 2" />
  2393. <img :src="word2" alt v-else-if="fileType == 3" />
  2394. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  2395. <div class="deleteWord" @click="clean(1)">
  2396. <img src="../../assets/icon/deleteWorks.png" alt />
  2397. </div>
  2398. </div>
  2399. </div>
  2400. </div>
  2401. <div class="upload_send" @click="addCourseWorks2(taskCount)" v-if="!proVisible">
  2402. 提交
  2403. </div>
  2404. </el-dialog>
  2405. <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
  2406. :before-close="handleClose" class="dialog_diy">
  2407. <div>
  2408. <h2>
  2409. {{ this.updateGroupUser.name }}
  2410. </h2>
  2411. <div style="color: rgb(171 171 171); margin-top: 10px">
  2412. 请选择要进入的分组
  2413. </div>
  2414. <el-radio-group v-model="checkChair">
  2415. <el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray" :label="item.label"
  2416. :key="index">{{ item.name }}</el-radio>
  2417. </el-radio-group>
  2418. </div>
  2419. <span slot="footer" class="dialog-footer">
  2420. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  2421. <el-button type="primary" @click="updateChair">确定</el-button>
  2422. </span>
  2423. </el-dialog>
  2424. <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
  2425. :before-close="handleClose" class="dialog_diy">
  2426. <div>
  2427. <h2>
  2428. {{ this.deleteGroupArray.name }}
  2429. </h2>
  2430. <div style="color: rgb(171 171 171); margin-top: 10px">
  2431. 请选择要删除的组员
  2432. </div>
  2433. <el-checkbox-group v-model="checkDeleteGroup">
  2434. <el-checkbox style="display: block; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
  2435. :label="item.userid" :key="index">{{ item.name }}</el-checkbox>
  2436. </el-checkbox-group>
  2437. </div>
  2438. <span slot="footer" class="dialog-footer">
  2439. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  2440. <el-button type="primary" @click="deleteChair">确定</el-button>
  2441. </span>
  2442. </el-dialog>
  2443. <el-dialog title="批量上传" :visible.sync="dialogVisiblePl" :append-to-body="true" width="700px"
  2444. :before-close="handleClose" class="dialog_change">
  2445. <div class="marginT">
  2446. <div class="plworkBox">
  2447. <div class="chapter_add" style="
  2448. display: flex;
  2449. width: 150px;
  2450. flex-direction: row;
  2451. flex-wrap: wrap;
  2452. justify-content: flex-start;
  2453. margin: 0 10px 10px 0;
  2454. " v-for="(item, index) in plworkFile" :key="index">
  2455. <div class="upCover2">
  2456. <img :src="item.url" alt v-if="item.fileType == 1" />
  2457. <img :src="word" alt v-else-if="item.fileType == 4" />
  2458. <img :src="video" alt v-else />
  2459. <!-- <span class="picName">{{ item.name }}</span> -->
  2460. <!-- <el-input
  2461. v-model="item.username"
  2462. placeholder="请输入学生名字"
  2463. style="margin-top: 10px"
  2464. ></el-input> -->
  2465. <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  2466. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  2467. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  2468. </el-option>
  2469. </el-select>
  2470. <div class="deleteWord" @click="clean2(index)">
  2471. <img src="../../assets/icon/deleteWorks.png" alt />
  2472. </div>
  2473. </div>
  2474. </div>
  2475. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  2476. <div class="up_photo2">
  2477. <img src="../../assets/icon/plwork.png" alt />
  2478. <span>点击上传文件</span>
  2479. </div>
  2480. <input type="file"
  2481. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  2482. multiple="multiple" style="display: none" @change="beforeUpload3($event, 6)" />
  2483. </div>
  2484. </div>
  2485. </div>
  2486. <!-- capture="camera" -->
  2487. <div class="upload_send" @click="addCourseWorksPl(taskCount)" v-if="!proVisible2">
  2488. 提交
  2489. </div>
  2490. </el-dialog>
  2491. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  2492. class="dialog_diy" center>
  2493. <div style="text-align: center">
  2494. <span class="tian1">名称</span>
  2495. <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  2496. placeholder="请选择学生">
  2497. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  2498. :value="item.userid">
  2499. </el-option>
  2500. </el-select>
  2501. <!-- <el-input
  2502. v-model="worksSName"
  2503. style="width: 250px; margin: 15px 0px"
  2504. ></el-input> -->
  2505. </div>
  2506. <span slot="footer" class="dialog-footer">
  2507. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  2508. <el-button type="primary" @click="updateName">确 定</el-button>
  2509. </span>
  2510. </el-dialog>
  2511. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" :userid="userid" :id="id"
  2512. :courseType="courseType" :taskCount="taskCount" :toolindex="toolindex" v-if="dialogVisibleVideo"></interVideo>
  2513. <el-dialog :title="sStudent.student" :visible.sync="dialogVisibleStudentTool" :append-to-body="true" width="700px"
  2514. :before-close="handleClose" class="dialog_diy">
  2515. <div>
  2516. <div class="dia_tool_box">
  2517. <div class="tool" @click="teacherWorkSubmit(1, 0, taskCount)">
  2518. <div class="whiteBIcon">
  2519. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2520. <div style="margin: 5px 0">电子白板</div>
  2521. </div>
  2522. </div>
  2523. <div class="tool">
  2524. <div class="whiteBIcon" @click="teacherWorkSubmit(3, 0, taskCount)">
  2525. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2526. <div style="margin: 5px 0">思维导图</div>
  2527. </div>
  2528. </div>
  2529. <div class="tool">
  2530. <div class="whiteBIcon">
  2531. <img src="../../assets/icon/fourthToolList/text.png" alt />
  2532. <div style="margin: 5px 0">文档</div>
  2533. </div>
  2534. </div>
  2535. </div>
  2536. </div>
  2537. </el-dialog>
  2538. </div>
  2539. </template>
  2540. <script>
  2541. import "../../common/aws-sdk-2.235.1.min.js";
  2542. // import pdf from "../components/pdf3";
  2543. import pdf from "../components/vpdf";
  2544. import AskStatic from "../components/askStatic";
  2545. import AskStatic2 from "../components/askStatic2";
  2546. import AnswerData2 from "../components/answerData2";
  2547. import AnswerData from "../components/answerData";
  2548. import EditorBar from "../tools/wangEnduit.vue";
  2549. import Table from "../tools/table.vue";
  2550. import Time from "../tools/time.vue";
  2551. import Mind from "../tools/jsmind.vue";
  2552. import Sunburst from "../tools/sunburst";
  2553. import SeeBoard from "../tools/seeBoard";
  2554. import * as imageConversion from "image-conversion";
  2555. import Audio from "../components/audio.vue";
  2556. import ImgDraw from "../tools/imgDraw/imgDraw";
  2557. import { Empty } from "element-ui";
  2558. import RecordRTC from "recordrtc";
  2559. import interVideo from "../interVideo/index.vue"
  2560. export default {
  2561. components: {
  2562. EditorBar,
  2563. Time,
  2564. pdf,
  2565. AskStatic,
  2566. AskStatic2,
  2567. Mind,
  2568. Sunburst,
  2569. SeeBoard,
  2570. AnswerData2,
  2571. AnswerData,
  2572. Audio,
  2573. ImgDraw,
  2574. Table,
  2575. interVideo
  2576. },
  2577. data() {
  2578. return {
  2579. bg: null,
  2580. drawShow: false,
  2581. dialogVisible: false,
  2582. dialogVisiblePl: false,
  2583. commentDialogVisible: false,
  2584. videoVisible: false,
  2585. isStar: false,
  2586. studentEvalDialogVisible: false,
  2587. studentEvalDialogVisibleTeacher: false,
  2588. dialogVisibleSelect: false,
  2589. dialogVisibleSelectTeacher: false,
  2590. dialogVisibleScore: false,
  2591. dialogVisibleSentence: false,
  2592. dialogVisibleSentenceTeacher: false,
  2593. dialogVisibleSentence1: false,
  2594. dialogVisibleWorks: false,
  2595. answerDialogVisibleTeacher: false,
  2596. dialogVisibleTable: false,
  2597. dialogVisibleTableTeacher: false,
  2598. dialogVisibleWord: false,
  2599. dialogVisibleWordTeacher: false,
  2600. dialogVisibleTable2: false,
  2601. dialogVisibleTable3: false,
  2602. dialogVisibleGroupWork: false,
  2603. dialogVisibleUpdateGroup: false,
  2604. dialogVisibleDeleteGroup: false,
  2605. dialogVisibleSname: false,
  2606. dialogVisibleVideo: false,
  2607. dialogVisibleStudentTool: false,
  2608. worksSName: "",
  2609. classJuri: [],
  2610. uploadStudentJuri: [],
  2611. uploadCid: "",
  2612. snameWid: "",
  2613. sStudent: {},
  2614. sTool: "",
  2615. bzText: "",
  2616. commentDetail: [],
  2617. selectAnswer: [],
  2618. videoDetail: {},
  2619. selectJson: {},
  2620. eScore: { eBzText: "", eStar: [] },
  2621. id: this.$route.query.courseId,
  2622. userid: this.$route.query.userid,
  2623. classId: this.$route.query.cid,
  2624. // courseTypeLine: this.$route.query.type,
  2625. oid: this.$route.query.oid,
  2626. org: this.$route.query.org,
  2627. tType: this.$route.query.tType,
  2628. courseType: this.$route.query.type,
  2629. screenType: this.$route.query.screenType,
  2630. tcid2: this.$route.query.tcid,
  2631. tcid: "",
  2632. pptImgUrl: "",
  2633. pptImgUrl1: "",
  2634. commentText: "",
  2635. full: false,
  2636. sIsOpen: false,
  2637. IsLookOpen: false,
  2638. IsFollow: false,
  2639. pzDialog: false,
  2640. contentDialog: false,
  2641. mlDialog: false,
  2642. type: 1,
  2643. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  2644. sentenceList1: [],
  2645. tableJson: [],
  2646. wordJson: [],
  2647. vedio: [],
  2648. text: [],
  2649. textList: [],
  2650. line: [],
  2651. lineList: [],
  2652. chapTools: [],
  2653. chapToolList: [],
  2654. file: [],
  2655. fileC: [],
  2656. vedioTime: [],
  2657. upToolImg: "",
  2658. preTime: 0,
  2659. rateList: {
  2660. ca: 0,
  2661. },
  2662. rateParams: [],
  2663. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  2664. studyJuri: [
  2665. {
  2666. content: "",
  2667. cover: [],
  2668. upVedio: [],
  2669. upFile: [],
  2670. },
  2671. ],
  2672. plworkFile: [],
  2673. mr: require("../../assets/vedioPic.png"),
  2674. word: require("../../assets/icon/isWord.png"),
  2675. word2: require("../../assets/icon/word2.png"),
  2676. video: require("../../assets/icon/isVideo.png"),
  2677. noLikes: require("../../assets/icon/comment/noLikes.png"),
  2678. likes: require("../../assets/icon/comment/likes.png"),
  2679. scoreImg: require("../../assets/score.png"),
  2680. courseDetail: {},
  2681. isSelect: false,
  2682. chapInfo: [],
  2683. chapInfoList: [],
  2684. taskCount: 0,
  2685. imgList: [],
  2686. noImgList: [],
  2687. pzList: [],
  2688. PlTextList: [
  2689. "Excellent!",
  2690. "nice!",
  2691. "很有创意!",
  2692. "还不错哦~",
  2693. "继续努力哦~",
  2694. ],
  2695. isClickNav: "",
  2696. navId: "",
  2697. playerOptions: {
  2698. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  2699. autoplay: false, //如果true,浏览器准备好时开始回放。
  2700. muted: false, // 默认情况下将会消除任何音频。
  2701. loop: false, // 导致视频一结束就重新开始。
  2702. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  2703. language: "zh-CN",
  2704. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  2705. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  2706. sources: [
  2707. {
  2708. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  2709. src: "", //url地址require("../../../assets/media/aaa.mp4")
  2710. },
  2711. ],
  2712. // poster: require("../../../assets/tu31.png"), //你的封面地址
  2713. // poster: dataRes.imgUrl, //你的封面地址
  2714. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  2715. controlBar: {
  2716. timeDivider: true, //当前时间和持续时间的分隔符
  2717. durationDisplay: true, //显示持续时间
  2718. remainingTimeDisplay: false, //是否显示剩余时间功能
  2719. fullscreenToggle: true, //全屏按钮
  2720. },
  2721. },
  2722. playerOptions1: {
  2723. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  2724. autoplay: false, //如果true,浏览器准备好时开始回放。
  2725. muted: false, // 默认情况下将会消除任何音频。
  2726. loop: false, // 导致视频一结束就重新开始。
  2727. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  2728. language: "zh-CN",
  2729. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  2730. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  2731. sources: [
  2732. {
  2733. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  2734. src: "", //url地址require("../../../assets/media/aaa.mp4")
  2735. },
  2736. ],
  2737. // poster: require("../../../assets/tu31.png"), //你的封面地址
  2738. // poster: dataRes.imgUrl, //你的封面地址
  2739. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  2740. controlBar: {
  2741. timeDivider: true, //当前时间和持续时间的分隔符
  2742. durationDisplay: true, //显示持续时间
  2743. remainingTimeDisplay: false, //是否显示剩余时间功能
  2744. fullscreenToggle: true, //全屏按钮
  2745. },
  2746. },
  2747. playerO: {},
  2748. noneBtnImg: false,
  2749. proVisible: false,
  2750. proVisible2: false,
  2751. progress: 0,
  2752. isFinishSize: 0,
  2753. isAllSize: 0,
  2754. questionAnswer: "",
  2755. answerQ: "", //问答标题
  2756. rateJson: [],
  2757. wbCount: 0,
  2758. wordCount: 0,
  2759. mindCount: 0,
  2760. askCount: 0,
  2761. noteCount: 0,
  2762. mindNetWorkCount: 0,
  2763. libraryCount: 0,
  2764. workCount: 0,
  2765. timeCount: 0,
  2766. answerCount: 0,
  2767. trainCount: 0,
  2768. evalCount: 0,
  2769. dialogImageUrl: "",
  2770. pictureDialog: false,
  2771. toolType: 0,
  2772. toolTypeList: [],
  2773. dialogVisible1: false,
  2774. dialogVisible2: false,
  2775. dialogVisible3: false,
  2776. dialogVisible6: false,
  2777. dialogVisible4: false,
  2778. isNoHomeWork: false,
  2779. dialogVisible5: false,
  2780. dialogVisible5Teacher: false,
  2781. dialogVisibleChoice: false,
  2782. dialogVisibleChoiceTeacher: false,
  2783. answerDialogVisible: false,
  2784. juriVisible: false,
  2785. timeDialogVisible: false,
  2786. radio: [],
  2787. isAsk: false,
  2788. askJson: {
  2789. askCount: 1,
  2790. askTitle: "",
  2791. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2792. },
  2793. testJson: {},
  2794. checkJson: [],
  2795. askList: [],
  2796. answerList: [],
  2797. navList: [],
  2798. addPzDialog: false,
  2799. ispzType: 1,
  2800. pzConText: "",
  2801. worksStudent: [],
  2802. worksStudent2: [],
  2803. worksTeacher: [],
  2804. isCloseList: [],
  2805. workStudent: [],
  2806. groupStudent: [],
  2807. groupStudentUid: [],
  2808. noWorksS: [],
  2809. isWorksS: [],
  2810. noWorksStudent: [],
  2811. toolindex: 0,
  2812. groupIndex: 0,
  2813. workTypeB: false,
  2814. workTypeC: false,
  2815. isAnswer: false,
  2816. timer: null,
  2817. opertimer: null,
  2818. showType: 0,
  2819. fileType: 0,
  2820. showPDF: false,
  2821. noteName: "",
  2822. evaJuri: [],
  2823. evalua: "",
  2824. eTitle: "",
  2825. eName: "",
  2826. eJson: {},
  2827. fid: "", //一级
  2828. sid: "", //二级
  2829. tid: "", //二级
  2830. typeMode: 1,
  2831. eJSONNum: 0,
  2832. Etype: 1,
  2833. data: {
  2834. meta: {
  2835. name: "example",
  2836. author: "dd@163.com",
  2837. version: "0.2",
  2838. },
  2839. format: "node_array",
  2840. data: [{ id: "root", isroot: true, topic: "" }],
  2841. },
  2842. fullDialogVisible: false,
  2843. fulltype: "",
  2844. fullUrl: "",
  2845. commentIndexJson: {},
  2846. Stbodywidth: 0,
  2847. pzType: 1,
  2848. wScore: 0,
  2849. scoreDetail: "",
  2850. videoStart: false,
  2851. recorder: null,
  2852. groupJson: {},
  2853. groupJson2: {},
  2854. dialogVisibleGroup: false,
  2855. dialogVisibleGroup2: false,
  2856. updateGroupArray: [],
  2857. updateGroupUser: {},
  2858. deleteGroupUser: [],
  2859. deleteGroupArray: {},
  2860. checkChair: "",
  2861. checkDeleteGroup: [],
  2862. inviteCode: "",
  2863. courseGroupStudent: [],
  2864. courseGroupStudentUid: [],
  2865. courseGroup: {},
  2866. isGroup: false,
  2867. toolIndex: null,
  2868. tool: {},
  2869. isWorkTool: [16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40],//, 40
  2870. videoJson: {},
  2871. };
  2872. },
  2873. methods: {
  2874. jump() {
  2875. window.parent.postMessage({ tools: "43" }, "*");
  2876. },
  2877. previewImg(url) {
  2878. this.$hevueImgPreview(url);
  2879. },
  2880. change(val) {
  2881. console.log(val);
  2882. },
  2883. goTo(path) {
  2884. this.$router.push(path);
  2885. },
  2886. handlePictureCardPreview(url) {
  2887. this.dialogImageUrl = url;
  2888. this.pictureDialog = true;
  2889. },
  2890. clean(type) {
  2891. if (type == 1) {
  2892. this.studyJuri[0].cover.splice(0, 1);
  2893. } else if (type == 2) {
  2894. this.studyJuri[0].upVedio.splice(0, 1);
  2895. } else {
  2896. this.studyJuri[0].upFile.splice(0, 1);
  2897. }
  2898. },
  2899. clean2(index) {
  2900. this.plworkFile.splice(index, 1);
  2901. },
  2902. handleClose(done) {
  2903. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  2904. this.videoDetail.sources[0].src = "";
  2905. }
  2906. this.commentIndexJson = {};
  2907. done();
  2908. },
  2909. fullTools() {
  2910. this.full = !this.full;
  2911. },
  2912. imgChange(file, fileList, type) {
  2913. if (type == 1) {
  2914. var _tmp = this.studyJuri[0].cover;
  2915. } else if (type == 2) {
  2916. var _tmp = this.studyJuri[0].upVedio;
  2917. } else {
  2918. var _tmp = this.studyJuri[0].upFile;
  2919. }
  2920. this.noneBtnImg = _tmp.length >= 1;
  2921. },
  2922. setContent(bool) {
  2923. this.contentDialog = bool
  2924. if (bool && this.mlDialog) {
  2925. document.querySelector('.workd_media').style.height = "650px"
  2926. } else {
  2927. document.querySelector('.workd_media').style.height = "auto"
  2928. }
  2929. },
  2930. setContent2(bool) {
  2931. this.mlDialog = bool
  2932. if (bool && this.contentDialog) {
  2933. document.querySelector('.workd_media').style.height = "650px"
  2934. } else {
  2935. document.querySelector('.workd_media').style.height = "auto"
  2936. }
  2937. },
  2938. addImg(e) {
  2939. var el = e.currentTarget;
  2940. // this.$message.success('触发上传')
  2941. el.getElementsByTagName("input")[0].click();
  2942. e.target.value = "";
  2943. },
  2944. addSelectAnswer() {
  2945. let params = [
  2946. {
  2947. uid: this.userid,
  2948. cid: this.id,
  2949. stage: this.courseType,
  2950. task: this.taskCount,
  2951. tool: this.toolindex,
  2952. content: this.selectAnswer.answer,
  2953. type: 7,
  2954. },
  2955. ];
  2956. this.ajax
  2957. .post(this.$store.state.api + "addCourseWorks", params)
  2958. .then((res) => {
  2959. this.$message({
  2960. message: "提交成功",
  2961. type: "success",
  2962. });
  2963. this.dialogVisibleSelect = false;
  2964. // this.selectAnswer = {};
  2965. this.selectSWorks();
  2966. this.selectStudent();
  2967. })
  2968. .catch((err) => {
  2969. this.$message.error("提交失败");
  2970. console.error(err);
  2971. });
  2972. },
  2973. addSelectAnswerTeacher() {
  2974. let params = [
  2975. {
  2976. uid: this.sStudent.userid,
  2977. cid: this.id,
  2978. stage: this.courseType,
  2979. task: this.taskCount,
  2980. tool: this.toolindex,
  2981. content: this.selectAnswer.answer,
  2982. type: 7,
  2983. },
  2984. ];
  2985. this.ajax
  2986. .post(this.$store.state.api + "addCourseWorks", params)
  2987. .then((res) => {
  2988. this.$message({
  2989. message: "提交成功",
  2990. type: "success",
  2991. });
  2992. this.dialogVisibleSelectTeacher = false;
  2993. // this.selectAnswer = {};
  2994. this.selectSWorks();
  2995. this.selectStudent();
  2996. })
  2997. .catch((err) => {
  2998. this.$message.error("提交失败");
  2999. console.error(err);
  3000. });
  3001. },
  3002. addSenWorks() {
  3003. for (var i = 0; i < this.sentenceList.length; i++) {
  3004. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  3005. if (
  3006. this.sentenceList[i].chooseSenList[j] == undefined ||
  3007. this.sentenceList[i].chooseSenList[j] == ""
  3008. ) {
  3009. this.$message.error("请将答案填写完整!");
  3010. return;
  3011. }
  3012. }
  3013. }
  3014. let params = [
  3015. {
  3016. uid: this.userid,
  3017. cid: this.id,
  3018. stage: this.courseType,
  3019. task: this.taskCount,
  3020. tool: this.toolindex,
  3021. content: JSON.stringify(this.sentenceList),
  3022. type: 9,
  3023. },
  3024. ];
  3025. this.ajax
  3026. .post(this.$store.state.api + "addCourseWorks", params)
  3027. .then((res) => {
  3028. this.$message({
  3029. message: "提交成功",
  3030. type: "success",
  3031. });
  3032. this.dialogVisibleSentence = false;
  3033. // this.selectAnswer = {};
  3034. this.selectSWorks();
  3035. this.selectStudent();
  3036. })
  3037. .catch((err) => {
  3038. this.$message.error("提交失败");
  3039. console.error(err);
  3040. });
  3041. },
  3042. addSenWorksTeacher() {
  3043. for (var i = 0; i < this.sentenceList.length; i++) {
  3044. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  3045. if (
  3046. this.sentenceList[i].chooseSenList[j] == undefined ||
  3047. this.sentenceList[i].chooseSenList[j] == ""
  3048. ) {
  3049. this.$message.error("请将答案填写完整!");
  3050. return;
  3051. }
  3052. }
  3053. }
  3054. let params = [
  3055. {
  3056. uid: this.sStudent.userid,
  3057. cid: this.id,
  3058. stage: this.courseType,
  3059. task: this.taskCount,
  3060. tool: this.toolindex,
  3061. content: JSON.stringify(this.sentenceList),
  3062. type: 9,
  3063. },
  3064. ];
  3065. this.ajax
  3066. .post(this.$store.state.api + "addCourseWorks", params)
  3067. .then((res) => {
  3068. this.$message({
  3069. message: "提交成功",
  3070. type: "success",
  3071. });
  3072. this.dialogVisibleSentenceTeacher = false;
  3073. // this.selectAnswer = {};
  3074. this.selectSWorks();
  3075. this.selectStudent();
  3076. })
  3077. .catch((err) => {
  3078. this.$message.error("提交失败");
  3079. console.error(err);
  3080. });
  3081. },
  3082. addTableWorks() {
  3083. let params = [
  3084. {
  3085. uid: this.userid,
  3086. cid: this.id,
  3087. stage: this.courseType,
  3088. task: this.taskCount,
  3089. tool: this.toolindex,
  3090. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  3091. type: 10,
  3092. },
  3093. ];
  3094. this.ajax
  3095. .post(this.$store.state.api + "addCourseWorks", params)
  3096. .then((res) => {
  3097. this.$message({
  3098. message: "提交成功",
  3099. type: "success",
  3100. });
  3101. this.dialogVisibleTable = false;
  3102. // this.selectAnswer = {};
  3103. this.selectSWorks();
  3104. this.selectStudent();
  3105. })
  3106. .catch((err) => {
  3107. this.$message.error("提交失败");
  3108. console.error(err);
  3109. });
  3110. },
  3111. addTableWorksTeacher() {
  3112. let params = [
  3113. {
  3114. uid: this.sStudent.userid,
  3115. cid: this.id,
  3116. stage: this.courseType,
  3117. task: this.taskCount,
  3118. tool: this.toolindex,
  3119. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  3120. type: 10,
  3121. },
  3122. ];
  3123. this.ajax
  3124. .post(this.$store.state.api + "addCourseWorks", params)
  3125. .then((res) => {
  3126. this.$message({
  3127. message: "提交成功",
  3128. type: "success",
  3129. });
  3130. this.dialogVisibleTableTeacher = false;
  3131. // this.selectAnswer = {};
  3132. this.selectSWorks();
  3133. this.selectStudent();
  3134. })
  3135. .catch((err) => {
  3136. this.$message.error("提交失败");
  3137. console.error(err);
  3138. });
  3139. },
  3140. addWordWorks() {
  3141. let params = [{
  3142. uid: this.userid,
  3143. cid: this.id,
  3144. stage: this.courseType,
  3145. task: this.taskCount,
  3146. tool: this.toolindex,
  3147. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  3148. type: 13,
  3149. atool: 52,
  3150. }];
  3151. console.log(params);
  3152. this.ajax
  3153. .post(this.$store.state.api + "addCourseWorks3-2", params)
  3154. .then((res) => {
  3155. this.$message({
  3156. message: "提交成功",
  3157. type: "success",
  3158. });
  3159. this.dialogVisibleWord = false;
  3160. // this.selectAnswer = {};
  3161. this.selectSWorks();
  3162. this.selectStudent();
  3163. })
  3164. .catch((err) => {
  3165. this.$message.error("提交失败");
  3166. console.error(err);
  3167. });
  3168. },
  3169. addWordWorksTeacher() {
  3170. let params = [{
  3171. uid: this.sStudent.userid,
  3172. cid: this.id,
  3173. stage: this.courseType,
  3174. task: this.taskCount,
  3175. tool: this.toolindex,
  3176. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  3177. type: 13,
  3178. atool: 52,
  3179. }];
  3180. console.log(params);
  3181. this.ajax
  3182. .post(this.$store.state.api + "addCourseWorks3-2", params)
  3183. .then((res) => {
  3184. this.$message({
  3185. message: "提交成功",
  3186. type: "success",
  3187. });
  3188. this.dialogVisibleWordTeacher = false;
  3189. // this.selectAnswer = {};
  3190. this.selectSWorks();
  3191. this.selectStudent();
  3192. })
  3193. .catch((err) => {
  3194. this.$message.error("提交失败");
  3195. console.error(err);
  3196. });
  3197. },
  3198. addCourseWorks(i) {
  3199. var typesql;
  3200. if (this.fileType === 0) {
  3201. typesql = 1;
  3202. } else if (this.fileType === 1) {
  3203. typesql = 4;
  3204. } else if (this.fileType === 2) {
  3205. typesql = 5;
  3206. } else if (this.fileType === 3) {
  3207. typesql = 12;
  3208. }
  3209. if (!this.studyJuri[0].cover[0].url) {
  3210. this.$message.error("请上传文件");
  3211. return;
  3212. }
  3213. let params = [
  3214. {
  3215. uid: this.userid,
  3216. cid: this.id,
  3217. stage: this.courseType,
  3218. task: i,
  3219. tool: this.toolindex,
  3220. content: this.studyJuri[0].cover[0].url,
  3221. type: typesql,
  3222. },
  3223. ];
  3224. this.ajax
  3225. .post(this.$store.state.api + "addCourseWorksR", params)
  3226. .then((res) => {
  3227. this.$message({
  3228. message: "提交成功",
  3229. type: "success",
  3230. });
  3231. this.studyJuri[0].cover = [];
  3232. this.dialogVisible = false;
  3233. this.getCourseDetail();
  3234. })
  3235. .catch((err) => {
  3236. this.$message.error("提交失败");
  3237. console.error(err);
  3238. });
  3239. },
  3240. addCourseWorksPl(i) {
  3241. let _files = this.plworkFile;
  3242. var c = 1;
  3243. for (var k = 0; k < _files.length; k++) {
  3244. if (!_files[k].username) {
  3245. c = 2;
  3246. }
  3247. }
  3248. if (c == 2) {
  3249. this.$message.error("请填写学生姓名");
  3250. return;
  3251. }
  3252. let params = [
  3253. {
  3254. ateacher: this.userid,
  3255. cid: this.id,
  3256. stage: this.courseType,
  3257. task: i,
  3258. tool: this.toolindex,
  3259. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  3260. },
  3261. ];
  3262. this.ajax
  3263. .post(this.$store.state.api + "addCourseWorksPl", params)
  3264. .then((res) => {
  3265. this.$message({
  3266. message: "提交成功",
  3267. type: "success",
  3268. });
  3269. this.plworkFile = [];
  3270. this.dialogVisiblePl = false;
  3271. this.getCourseDetail();
  3272. })
  3273. .catch((err) => {
  3274. this.$message.error("提交失败");
  3275. console.error(err);
  3276. });
  3277. },
  3278. addCourseWorks2(i) {
  3279. var typesql;
  3280. if (this.fileType === 0) {
  3281. typesql = 0;
  3282. } else if (this.fileType === 1) {
  3283. typesql = 1;
  3284. } else if (this.fileType === 2) {
  3285. typesql = 3;
  3286. } else if (this.fileType === 3) {
  3287. typesql = 12;
  3288. }
  3289. if (!this.studyJuri[0].cover[0].url) {
  3290. this.$message.error("请上传文件");
  3291. return;
  3292. }
  3293. let params = [
  3294. {
  3295. uid: this.userid,
  3296. cid: this.id,
  3297. stage: this.courseType,
  3298. task: i,
  3299. tool: this.toolindex,
  3300. content: JSON.stringify({
  3301. type: typesql,
  3302. groupIndex: this.groupIndex,
  3303. url: this.studyJuri[0].cover[0].url,
  3304. }).replaceAll(/%/g, "%25"),
  3305. type: 11,
  3306. atool: 49,
  3307. text: "",
  3308. },
  3309. ];
  3310. this.ajax
  3311. .post(this.$store.state.api + "addCourseWorks5", params)
  3312. .then((res) => {
  3313. this.$message({
  3314. message: "提交成功",
  3315. type: "success",
  3316. });
  3317. this.studyJuri[0].cover = [];
  3318. this.dialogVisibleGroupWork = false;
  3319. this.getCourseDetail();
  3320. })
  3321. .catch((err) => {
  3322. this.$message.error("提交失败");
  3323. console.error(err);
  3324. });
  3325. },
  3326. addCourseWorksGong(i, data, tool) {
  3327. let params = [
  3328. {
  3329. uid: this.userid,
  3330. cid: this.id,
  3331. stage: this.courseType,
  3332. task: this.taskCount,
  3333. tool: i,
  3334. content: data,
  3335. type: 12,
  3336. atool: tool,
  3337. text: "",
  3338. },
  3339. ];
  3340. this.ajax
  3341. .post(this.$store.state.api + "addCourseWorks5", params)
  3342. .then((res) => {
  3343. this.$message({
  3344. message: "提交成功",
  3345. type: "success",
  3346. });
  3347. this.studyJuri[0].cover = [];
  3348. this.selectSWorks();
  3349. this.selectStudent();
  3350. })
  3351. .catch((err) => {
  3352. this.$message.error("提交失败");
  3353. console.error(err);
  3354. });
  3355. },
  3356. addCourseWorksGongTeacher(i, data, tool) {
  3357. let params = [
  3358. {
  3359. uid: this.sStudent.userid,
  3360. cid: this.id,
  3361. stage: this.courseType,
  3362. task: this.taskCount,
  3363. tool: i,
  3364. content: data,
  3365. type: 12,
  3366. atool: tool,
  3367. text: "",
  3368. },
  3369. ];
  3370. this.ajax
  3371. .post(this.$store.state.api + "addCourseWorks5", params)
  3372. .then((res) => {
  3373. this.$message({
  3374. message: "提交成功",
  3375. type: "success",
  3376. });
  3377. this.studyJuri[0].cover = [];
  3378. this.dialogVisibleWorks = false;
  3379. this.selectSWorks();
  3380. this.selectStudent();
  3381. })
  3382. .catch((err) => {
  3383. this.$message.error("提交失败");
  3384. console.error(err);
  3385. });
  3386. },
  3387. addCourseWorksGongPl(i, data, tool, type) {
  3388. let params = [
  3389. {
  3390. uid: this.sStudent.userid,
  3391. cid: this.id,
  3392. stage: this.courseType,
  3393. task: this.taskCount,
  3394. tool: i,
  3395. content: data,
  3396. type: type,
  3397. atool: tool,
  3398. text: "",
  3399. },
  3400. ];
  3401. this.ajax
  3402. .post(this.$store.state.api + "addCourseWorks5", params)
  3403. .then((res) => {
  3404. this.$message({
  3405. message: "提交成功",
  3406. type: "success",
  3407. });
  3408. this.studyJuri[0].cover = [];
  3409. this.dialogVisibleWorks = false;
  3410. this.selectSWorks();
  3411. this.selectStudent();
  3412. })
  3413. .catch((err) => {
  3414. this.$message.error("提交失败");
  3415. console.error(err);
  3416. });
  3417. },
  3418. addCourseWorksTeacher(i) {
  3419. var typesql;
  3420. if (this.sTool == 32 || this.sTool == 57) {
  3421. this.addCourseWorksGongTeacher(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool);
  3422. return;
  3423. }
  3424. if (this.fileType === 0) {
  3425. typesql = 1;
  3426. } else if (this.fileType === 1) {
  3427. typesql = 4;
  3428. } else if (this.fileType === 2) {
  3429. typesql = 5;
  3430. } else if (this.fileType === 3) {
  3431. typesql = 12;
  3432. }
  3433. if (this.sTool == 50) {
  3434. this.addCourseWorksGongPl(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool, typesql);
  3435. return;
  3436. }
  3437. if (!this.studyJuri[0].cover[0].url) {
  3438. this.$message.error("请上传文件");
  3439. return;
  3440. }
  3441. let params = [
  3442. {
  3443. uid: this.sStudent.userid,
  3444. cid: this.id,
  3445. stage: this.courseType,
  3446. task: i,
  3447. tool: this.toolindex,
  3448. content: this.studyJuri[0].cover[0].url,
  3449. type: typesql,
  3450. ateacher: this.userid,
  3451. },
  3452. ];
  3453. this.ajax
  3454. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  3455. .then((res) => {
  3456. this.$message({
  3457. message: "提交成功",
  3458. type: "success",
  3459. });
  3460. this.studyJuri[0].cover = [];
  3461. this.dialogVisibleWorks = false;
  3462. this.getCourseDetail();
  3463. })
  3464. .catch((err) => {
  3465. this.$message.error("提交失败");
  3466. console.error(err);
  3467. });
  3468. },
  3469. selectUploadStudent() {
  3470. let params = {
  3471. cid: this.tcid ? this.tcid : this.courseDetail.juri,
  3472. oid: this.oid,
  3473. cn: '',
  3474. };
  3475. this.ajax
  3476. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  3477. .then((res) => {
  3478. var studentK = [];
  3479. if (this.isWorksS[this.toolindex].length > 0) {
  3480. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  3481. studentK.push(this.isWorksS[this.toolindex][z].uid);
  3482. }
  3483. studentK = studentK.join(",");
  3484. }
  3485. this.uploadStudentJuri = res.data[0].filter((el) => {
  3486. return studentK.indexOf(el.userid) == -1
  3487. });
  3488. })
  3489. .catch((err) => {
  3490. console.error(err);
  3491. });
  3492. },
  3493. arrayToArray(arrayo, arrayt) {
  3494. let array1 = arrayo;
  3495. let array2 = arrayt;
  3496. let commonElements = [];
  3497. for (let i = 0; i < array1.length; i++) {
  3498. for (let j = 0; j < array2.length; j++) {
  3499. if (array1[i] === array2[j]) {
  3500. commonElements.push(array1[i]);
  3501. }
  3502. }
  3503. }
  3504. return commonElements
  3505. },
  3506. selectWorksStudent() {
  3507. let params = {
  3508. oid: this.oid,
  3509. cid: this.courseDetail.juri,
  3510. };
  3511. this.ajax
  3512. .get(this.$store.state.api + "selectWorksStudent", params)
  3513. .then((res) => {
  3514. var a = res.data[0];
  3515. this.noWorksS = [];
  3516. var studentK = [];
  3517. if (this.isWorksS.length > 0) {
  3518. for (var z = 0; z < this.isWorksS.length; z++) {
  3519. studentK.push(this.isWorksS[z].uid);
  3520. }
  3521. studentK = studentK.join(",");
  3522. for (var j = 0; j < a.length; j++) {
  3523. // if (studentK.indexOf(a[j].userid) == -1) {
  3524. if (this.tcid) {
  3525. // a[j].classid.indexOf(this.tcid) != -1
  3526. if (this.arrayToArray(a[j].classid.split(","), this.tcid.split(",")).length) {
  3527. this.noWorksS.push({
  3528. student: a[j].name,
  3529. userid: a[j].userid,
  3530. type: studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  3531. });
  3532. }
  3533. } else {
  3534. this.noWorksS.push({
  3535. student: a[j].name,
  3536. userid: a[j].userid,
  3537. type: studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  3538. });
  3539. }
  3540. // }
  3541. }
  3542. } else {
  3543. for (var k = 0; k < a.length; k++) {
  3544. if (this.tcid) {
  3545. if (this.arrayToArray(a[k].classid.split(","), this.tcid.split(",")).length) {
  3546. this.noWorksS.push({
  3547. student: a[k].name,
  3548. userid: a[k].userid,
  3549. type: '1'
  3550. });
  3551. }
  3552. } else {
  3553. this.noWorksS.push({
  3554. student: a[k].name,
  3555. userid: a[k].userid,
  3556. type: '1'
  3557. });
  3558. }
  3559. }
  3560. }
  3561. // this.noWorksS = this.noWorksS.sort(function (a, b) {
  3562. // let jscoreA = parseInt(a.type);
  3563. // let jscoreB = parseInt(b.type);
  3564. // return jscoreB - jscoreA;
  3565. // });
  3566. this.$forceUpdate();
  3567. if (
  3568. Object.keys(this.commentDetail).length &&
  3569. Object.keys(this.commentIndexJson).length &&
  3570. !this.dialogVisibleScore
  3571. ) {
  3572. let a = 1;
  3573. let c = this.commentIndexJson;
  3574. console.log(c);
  3575. if (
  3576. this.commentIndexJson.gindex ||
  3577. this.commentIndexJson.gindex === 0
  3578. ) {
  3579. for (
  3580. var i = 0;
  3581. i < this.worksStudent.length;
  3582. i++
  3583. ) {
  3584. let _el = this.worksStudent[i];
  3585. groupA: for (var k = 0; k < _el.length; k++) {
  3586. let el = _el[k];
  3587. if (el.wid == this.commentDetail.wid) {
  3588. a = 2;
  3589. this.commentOther(
  3590. this.worksStudent[i][k],
  3591. this.commentIndexJson.toolIndex,
  3592. k,
  3593. this.commentIndexJson.gindex
  3594. );
  3595. break groupA;
  3596. }
  3597. }
  3598. }
  3599. if (a === 1) {
  3600. this.commentDetail = [];
  3601. this.commentIndexJson = {};
  3602. this.commentDialogVisible = false;
  3603. this.$message("此作业已被删除");
  3604. }
  3605. } else {
  3606. if (this.isGroup && this.commentIndexJson.gid) {
  3607. groupA: for (
  3608. var i = 0;
  3609. i < this.courseGroup.group.length;
  3610. i++
  3611. ) {
  3612. let _group = this.courseGroup.group[i]
  3613. if (_group.id == this.commentIndexJson.gid) {
  3614. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  3615. for (var k = 0; k < _el2.length; k++) {
  3616. let el2 = _el2[k];
  3617. if (el2.wid == this.commentDetail.wid) {
  3618. a = 2;
  3619. this.commentOther(
  3620. _el2[k],
  3621. this.commentIndexJson.toolIndex,
  3622. k,
  3623. null,
  3624. this.commentIndexJson.gid
  3625. );
  3626. break groupA;
  3627. }
  3628. }
  3629. }
  3630. }
  3631. }
  3632. if (a == 1) {
  3633. for (
  3634. var i = 0;
  3635. i < this.worksStudent.length;
  3636. i++
  3637. ) {
  3638. let el = this.worksStudent[i];
  3639. if (el.wid == this.commentDetail.wid) {
  3640. a = 2;
  3641. this.commentOther(
  3642. this.worksStudent[i],
  3643. this.commentIndexJson.toolIndex,
  3644. i
  3645. );
  3646. break;
  3647. }
  3648. }
  3649. }
  3650. if (a === 1) {
  3651. this.commentDetail = [];
  3652. this.commentIndexJson = {};
  3653. this.commentDialogVisible = false;
  3654. this.$message("此作业已被删除");
  3655. }
  3656. }
  3657. }
  3658. })
  3659. .catch((err) => {
  3660. console.error(err);
  3661. });
  3662. },
  3663. selectStudent() {
  3664. },
  3665. openVideo(w) {
  3666. this.videoDetail = {};
  3667. this.playerOptions1.sources[0].src = w.works;
  3668. this.videoDetail = this.playerOptions1;
  3669. this.videoVisible = true;
  3670. },
  3671. isLikes(wid, uid, t, c, isLikes) {
  3672. if (isLikes == false) {
  3673. let params = [
  3674. {
  3675. wid: wid,
  3676. lid: uid,
  3677. t: t,
  3678. c: c,
  3679. },
  3680. ];
  3681. this.ajax
  3682. .post(this.$store.state.api + "insertComment", params)
  3683. .then((res) => {
  3684. this.$message({
  3685. message: "点赞成功",
  3686. type: "success",
  3687. });
  3688. this.selectSWorks();
  3689. this.selectStudent();
  3690. })
  3691. .catch((err) => {
  3692. this.$message.error("点赞失败");
  3693. console.error(err);
  3694. });
  3695. } else {
  3696. let params = {
  3697. wid: wid,
  3698. lid: uid,
  3699. type: t,
  3700. };
  3701. this.ajax
  3702. .get(this.$store.state.api + "deleteComment", params)
  3703. .then((res) => {
  3704. this.$message({
  3705. message: "取消点赞成功",
  3706. type: "success",
  3707. });
  3708. this.selectSWorks();
  3709. this.selectStudent();
  3710. })
  3711. .catch((err) => {
  3712. console.error(err);
  3713. });
  3714. }
  3715. },
  3716. deleteComment(wid) {
  3717. this.$confirm("确定删除此评论吗?", "提示", {
  3718. confirmButtonText: "确定",
  3719. cancelButtonText: "取消",
  3720. type: "warning",
  3721. })
  3722. .then(() => {
  3723. let params = {
  3724. id: wid,
  3725. };
  3726. this.ajax
  3727. .get(this.$store.state.api + "deleteComment2", params)
  3728. .then((res) => {
  3729. this.$message({
  3730. message: "删除评论成功",
  3731. type: "success",
  3732. });
  3733. this.selectSWorks();
  3734. this.selectStudent();
  3735. })
  3736. .catch((err) => {
  3737. console.error(err);
  3738. });
  3739. })
  3740. .catch(() => { });
  3741. },
  3742. commentOther(w, toolIndex, wIndex, gindex, gid) {
  3743. this.commentIndexJson = {
  3744. toolIndex: toolIndex,
  3745. wIndex: wIndex,
  3746. gindex: gindex,
  3747. gid: gid
  3748. };
  3749. this.commentDetail = [];
  3750. this.commentDialogVisible = true;
  3751. this.commentDetail = w;
  3752. if (w.works && w.type == 1) {
  3753. this.pptImgUrl = "";
  3754. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  3755. if (
  3756. a.indexOf(
  3757. w.works
  3758. .split(".")
  3759. [w.works.split(".").length - 1].toLocaleUpperCase()
  3760. ) != -1
  3761. ) {
  3762. this.pptImgUrl =
  3763. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  3764. this.showPDF = false;
  3765. } else if (
  3766. w.works
  3767. .split(".")
  3768. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  3769. ) {
  3770. this.pptImgUrl = w.works;
  3771. this.showPDF = true;
  3772. }
  3773. } else if (w.works && w.type == 3) {
  3774. this.videoDetail = {};
  3775. this.playerOptions1.sources[0].src = w.works;
  3776. this.videoDetail = this.playerOptions1;
  3777. // this.videoVisible = true;
  3778. } else if (w.works && w.type == 4) {
  3779. this.eScore = JSON.parse(w.works);
  3780. this.rateJson =
  3781. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3782. this.taskCount
  3783. ].toolChoose[toolIndex].rateJson;
  3784. } else if (w.works && w.type == 10) {
  3785. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  3786. } else if (w.works && w.type == 13) {
  3787. this.wordJson =
  3788. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3789. this.taskCount
  3790. ].toolChoose[toolIndex].wordJson;
  3791. }
  3792. },
  3793. openScore(w) {
  3794. this.wScore = 0;
  3795. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  3796. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  3797. this.commentDetail = [];
  3798. this.dialogVisibleScore = true;
  3799. this.commentDetail = w;
  3800. if (w.works && w.type == 1) {
  3801. this.pptImgUrl = "";
  3802. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  3803. if (
  3804. a.indexOf(
  3805. w.works
  3806. .split(".")
  3807. [w.works.split(".").length - 1].toLocaleUpperCase()
  3808. ) != -1
  3809. ) {
  3810. this.pptImgUrl =
  3811. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  3812. this.showPDF = false;
  3813. } else if (
  3814. w.works
  3815. .split(".")
  3816. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  3817. ) {
  3818. this.pptImgUrl = w.works;
  3819. this.showPDF = true;
  3820. }
  3821. } else if (w.works && w.type == 3) {
  3822. this.videoDetail = {};
  3823. this.playerOptions1.sources[0].src = w.works;
  3824. this.videoDetail = this.playerOptions1;
  3825. }
  3826. },
  3827. addComment(wid, uid, t) {
  3828. if (this.commentText == "") {
  3829. this.$message.error("请输入评论");
  3830. return;
  3831. }
  3832. let params2 = [
  3833. {
  3834. wid: wid,
  3835. lid: uid,
  3836. t: t,
  3837. },
  3838. ];
  3839. this.ajax
  3840. .post(this.$store.state.api + "getComment", params2)
  3841. .then((res) => {
  3842. if (res.data[0].length > 0) {
  3843. this.$message.error("一个作业只能评论一条");
  3844. } else {
  3845. let params = [
  3846. {
  3847. wid: wid,
  3848. lid: uid,
  3849. t: t,
  3850. c: this.commentText,
  3851. },
  3852. ];
  3853. this.ajax
  3854. .post(this.$store.state.api + "insertComment", params)
  3855. .then((res) => {
  3856. this.$message({
  3857. message: "评论成功",
  3858. type: "success",
  3859. });
  3860. this.commentText = "";
  3861. this.selectSWorks();
  3862. this.selectStudent();
  3863. })
  3864. .catch((err) => {
  3865. this.$message.error("评论失败");
  3866. console.error(err);
  3867. });
  3868. }
  3869. })
  3870. .catch((err) => {
  3871. // this.$message.error("评论失败");
  3872. console.error(err);
  3873. });
  3874. },
  3875. scoreWork(wid) {
  3876. if (this.wScore == 0) {
  3877. this.$message.error("请评分");
  3878. return;
  3879. }
  3880. let params = [
  3881. {
  3882. wid: wid,
  3883. score: JSON.stringify({
  3884. wScore: this.wScore,
  3885. detail: this.scoreDetail,
  3886. }),
  3887. },
  3888. ];
  3889. this.ajax
  3890. .post(this.$store.state.api + "scoreWork", params)
  3891. .then((res) => {
  3892. this.$message({
  3893. message: "评分成功",
  3894. type: "success",
  3895. });
  3896. this.wScore = 0;
  3897. this.scoreDetail = "";
  3898. this.dialogVisibleScore = false;
  3899. this.selectSWorks();
  3900. this.selectStudent();
  3901. })
  3902. .catch((err) => {
  3903. this.$message.error("评分失败");
  3904. console.error(err);
  3905. });
  3906. },
  3907. openXz(w, i) {
  3908. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  3909. .taskJson[this.taskCount].toolChoose[i].selectJson
  3910. ? JSON.parse(
  3911. JSON.stringify(
  3912. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3913. this.taskCount
  3914. ].toolChoose[i].selectJson
  3915. )
  3916. )
  3917. : { url: "", select: [], answer: [] };
  3918. var a = w.works.split(",");
  3919. for (var k = 0; k < a.length; k++) {
  3920. a[k] = parseInt(a[k]);
  3921. }
  3922. this.selectAnswer = { answer: a, stu: w.sName };
  3923. this.isSelect = true;
  3924. this.dialogVisibleSelect = true;
  3925. },
  3926. openSen(w, i) {
  3927. this.sentenceList1 = JSON.parse(w.works);
  3928. this.sentenceList1.stuName = w.sName;
  3929. this.dialogVisibleSentence1 = true;
  3930. },
  3931. openPj(w, toolindex) {
  3932. this.isStar = true;
  3933. this.eScore = JSON.parse(w);
  3934. this.rateJson =
  3935. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3936. this.taskCount
  3937. ].toolChoose[toolindex].rateJson;
  3938. this.studentEvalDialogVisible = true;
  3939. },
  3940. deleteWorks(id) {
  3941. this.$confirm("确定删除此作业吗?", "提示", {
  3942. confirmButtonText: "确定",
  3943. cancelButtonText: "取消",
  3944. type: "warning",
  3945. })
  3946. .then(() => {
  3947. let params = [
  3948. {
  3949. id: id,
  3950. },
  3951. ];
  3952. this.ajax
  3953. .post(this.$store.state.api + "deleteCourseWork", params)
  3954. .then((res) => {
  3955. this.$message({
  3956. message: "删除成功",
  3957. type: "success",
  3958. });
  3959. this.selectStudent();
  3960. this.selectSWorks();
  3961. this.selectSLook();
  3962. })
  3963. .catch((err) => {
  3964. this.$message.error("网络异常");
  3965. console.error(err);
  3966. });
  3967. })
  3968. .catch(() => { });
  3969. },
  3970. selectSWorks(gindex) {
  3971. //教师查看全部作业
  3972. let params = {
  3973. cid: this.id,
  3974. s: this.courseType,
  3975. t: this.taskCount,
  3976. };
  3977. this.ajax
  3978. .get(this.$store.state.api + "selectSWorks", params)
  3979. .then((res) => {
  3980. var a = 1;
  3981. var b = res.data[0];
  3982. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  3983. var y = [
  3984. "AVI",
  3985. "NAVI",
  3986. "MPEG",
  3987. "ASF",
  3988. "MOV",
  3989. "WMV",
  3990. "3GP",
  3991. "RM",
  3992. "RMVB",
  3993. "FLV",
  3994. "F4V",
  3995. "H.264",
  3996. "H.265",
  3997. "REAL VIDEO",
  3998. "MKV",
  3999. "WebM",
  4000. "HDDVD",
  4001. "MP4",
  4002. "MPG",
  4003. "M4V",
  4004. "MGV",
  4005. "OGV",
  4006. "QTM",
  4007. "STR",
  4008. "AMC",
  4009. "DVX",
  4010. "EVO",
  4011. "DAT",
  4012. "OGG",
  4013. "OGM",
  4014. ];
  4015. var d = res.data[1];
  4016. var e = res.data[2];
  4017. var f = res.data[3];
  4018. let worksStudent = [];
  4019. let worksTeacher = [];
  4020. let worksStudent2 = [];
  4021. if (
  4022. !this.isCloseList ||
  4023. this.isCloseList.isClose == undefined
  4024. ) {
  4025. this.isCloseList = { isClose: 0 };
  4026. }
  4027. this.groupStudent = [];
  4028. this.groupStudentUid = [];
  4029. this.isWorksS = [];
  4030. this.checkJson = [];
  4031. for (var j = 0; j < b.length; j++) {
  4032. if (b[j].ttype == 2 && this.tcid && this.arrayToArray(b[j].classid.split(","), this.tcid.split(",")).length == 0) {
  4033. continue;
  4034. }
  4035. var likesCount = 0;
  4036. var commentCount = 0;
  4037. var isLikes = false;
  4038. var commentJson = [];
  4039. var data = b[j];
  4040. for (var k = 0; k < d.length; k++) {
  4041. //点赞
  4042. if (d[k].workId == b[j].id) {
  4043. likesCount++;
  4044. if (d[k].likesId == this.userid) {
  4045. isLikes = true;
  4046. }
  4047. }
  4048. }
  4049. for (var l = 0; l < e.length; l++) {
  4050. //评论
  4051. if (e[l].workId == b[j].id) {
  4052. if (e[l].comment != "") {
  4053. commentCount++;
  4054. commentJson.push({
  4055. commentText: e[l].comment,
  4056. commentTime: e[l].commentTime,
  4057. commentPeople: e[l].commentPeople,
  4058. userid: e[l].userid,
  4059. wid: e[l].id,
  4060. });
  4061. }
  4062. }
  4063. }
  4064. if (b[j].type == 1 && (b[j].atool == 1 || b[j].atool == 3)) {
  4065. let _works = {
  4066. userid: b[j].userid,
  4067. ateacher: b[j].ateacher,
  4068. wid: b[j].id,
  4069. works: b[j].content,
  4070. sName: b[j].name,
  4071. type: 0,
  4072. time: b[j].time,
  4073. score: b[j].score,
  4074. img: b[j].img,
  4075. likesCount: likesCount,
  4076. commentCount: commentCount,
  4077. isLikes: isLikes,
  4078. commentJson: commentJson,
  4079. }
  4080. if (b[j].ttype == 1) {
  4081. worksTeacher.push(_works);
  4082. } else {
  4083. worksStudent2.push(_works);
  4084. }
  4085. worksStudent.push(_works);
  4086. this.isWorksS.push({ uid: b[j].userid, sName: b[j].name });
  4087. }
  4088. }
  4089. if (worksStudent && worksStudent.length) {
  4090. worksStudent = worksStudent.sort(function (a, b) {
  4091. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  4092. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  4093. var scoreA = parseFloat(jscoreA);
  4094. var scoreB = parseFloat(jscoreB);
  4095. if (scoreA == scoreB) {
  4096. return b.likesCount - a.likesCount;
  4097. }
  4098. return scoreB - scoreA;
  4099. });
  4100. }
  4101. if (worksStudent2 && worksStudent2.length) {
  4102. worksStudent2 = worksStudent2.sort(function (a, b) {
  4103. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  4104. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  4105. var scoreA = parseFloat(jscoreA);
  4106. var scoreB = parseFloat(jscoreB);
  4107. if (scoreA == scoreB) {
  4108. return b.likesCount - a.likesCount;
  4109. }
  4110. return scoreB - scoreA;
  4111. });
  4112. }
  4113. if (worksTeacher && worksTeacher.length) {
  4114. worksTeacher = worksTeacher.sort(function (a, b) {
  4115. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  4116. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  4117. var scoreA = parseFloat(jscoreA);
  4118. var scoreB = parseFloat(jscoreB);
  4119. if (scoreA == scoreB) {
  4120. return b.likesCount - a.likesCount;
  4121. }
  4122. return scoreB - scoreA;
  4123. });
  4124. }
  4125. this.worksStudent = worksStudent
  4126. this.worksTeacher = worksTeacher
  4127. this.worksStudent2 = worksStudent2
  4128. this.$forceUpdate()
  4129. this.selectWorksStudent();
  4130. })
  4131. .catch((err) => {
  4132. console.error(err);
  4133. });
  4134. },
  4135. pngToWhiteBg(file) {
  4136. const _file = file;
  4137. let read = new FileReader();
  4138. read.readAsDataURL(file); // 文件转base64
  4139. return new Promise((resolve, reject) => {
  4140. read.onload = (e) => {
  4141. let img = new Image();
  4142. img.src = e.target.result;
  4143. img.onload = async () => {
  4144. // 生成canvas
  4145. let canvas = document.createElement("canvas");
  4146. let context = canvas.getContext("2d");
  4147. // 绘制图片到canvas上
  4148. canvas.width = img.width;
  4149. canvas.height = img.height;
  4150. // 在canvas绘制前填充白色背景
  4151. context.fillStyle = "#fff";
  4152. context.fillRect(0, 0, canvas.width, canvas.height);
  4153. context.drawImage(img, 0, 0);
  4154. let base64 = canvas.toDataURL(file["type"], 1);
  4155. let newFile = this.dataUrlToFile(base64, _file);
  4156. resolve(newFile);
  4157. };
  4158. };
  4159. });
  4160. },
  4161. dataUrlToFile(dataurl, file) {
  4162. let arr = dataurl.split(","),
  4163. mime = arr[0].match(/:(.*?);/)[1],
  4164. bstr = atob(arr[1]),
  4165. n = bstr.length,
  4166. u8arr = new Uint8Array(n);
  4167. while (n--) {
  4168. u8arr[n] = bstr.charCodeAt(n);
  4169. }
  4170. // return new Blob([u8arr], { type: mime });
  4171. return new File([new Blob([u8arr], { type: mime })], file.name, {
  4172. type: mime,
  4173. });
  4174. },
  4175. async beforeUpload1(event, type, i) {
  4176. // this.$message.success('进入上传')
  4177. var file = "";
  4178. if (type == 5) {
  4179. file = event;
  4180. } else {
  4181. file = event.target.files[0];
  4182. }
  4183. var credentials = {
  4184. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4185. secretAccessKey: "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",
  4186. }; //秘钥形式的登录上传
  4187. window.AWS.config.update(credentials);
  4188. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4189. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4190. var _this = this;
  4191. _this.progress = 0;
  4192. _this.proVisible = true;
  4193. _this.isFinishSize = 0;
  4194. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4195. var b = [
  4196. "DOC",
  4197. "DOCX",
  4198. "DOCM",
  4199. "DOTM",
  4200. "DOTX",
  4201. "PPTX",
  4202. "PPSX",
  4203. "PPT",
  4204. "PPS",
  4205. "PPTM",
  4206. "POTM",
  4207. "PPAM",
  4208. "POTX",
  4209. "PPSM",
  4210. ];
  4211. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  4212. var photoA = [
  4213. "BMP",
  4214. "GIF",
  4215. "PNG",
  4216. "JPGE",
  4217. "JPG",
  4218. "TIF",
  4219. "PCX",
  4220. "TGA",
  4221. "EXIF",
  4222. "FPX",
  4223. "SVG",
  4224. "APNG",
  4225. ];
  4226. // if (
  4227. // b.indexOf(
  4228. // file.name
  4229. // .split(".")
  4230. // [file.name.split(".").length - 1].toLocaleUpperCase()
  4231. // ) != -1
  4232. // ) {
  4233. // if (file.size / 1024 / 1024 > 10) {
  4234. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  4235. // return;
  4236. // }
  4237. // } else if (
  4238. // excelA.indexOf(
  4239. // file.name
  4240. // .split(".")
  4241. // [file.name.split(".").length - 1].toLocaleUpperCase()
  4242. // ) != "-1"
  4243. // ) {
  4244. // if (file.size / 1024 / 1024 > 5) {
  4245. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  4246. // return;
  4247. // }
  4248. // }
  4249. if (
  4250. photoA.indexOf(
  4251. file.name
  4252. .split(".")
  4253. [file.name.split(".").length - 1].toLocaleUpperCase()
  4254. ) != -1 &&
  4255. type != 4
  4256. ) {
  4257. // const blob = await imageConversion.compress(file, 0.8)
  4258. file = await this.pngToWhiteBg(file);
  4259. const blob = await imageConversion.compressAccurately(file, 256);
  4260. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  4261. file = new File([blob], file.name, { type: file.type });
  4262. }
  4263. if (file) {
  4264. var params = {
  4265. Key:
  4266. file.name.split(".")[0] +
  4267. new Date().getTime() +
  4268. "." +
  4269. file.name.split(".")[file.name.split(".").length - 1],
  4270. ContentType: file.type,
  4271. Body: file,
  4272. "Access-Control-Allow-Credentials": "*",
  4273. ACL: "public-read",
  4274. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4275. var options = {
  4276. // partSize: 2048 * 1024 * 1024,
  4277. partSize: 1024 * 1024 * 1024,
  4278. queueSize: 2,
  4279. leavePartsOnError: true,
  4280. };
  4281. bucket
  4282. .upload(params, options)
  4283. .on("httpUploadProgress", function (evt) {
  4284. //这里可以写进度条
  4285. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4286. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  4287. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4288. })
  4289. .send(function (err, data) {
  4290. _this.progress = 100;
  4291. _this.isFinishSize = _this.isAllSize;
  4292. setTimeout(() => {
  4293. _this.proVisible = false;
  4294. }, 1000);
  4295. if (err) {
  4296. var a = _this.$refs.upload1.uploadFiles;
  4297. a.splice(a.length - 1, a.length);
  4298. _this.$message.error("上传失败");
  4299. } else {
  4300. // _this.$message.success('上传成功')
  4301. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4302. var c = [
  4303. "AVI",
  4304. "NAVI",
  4305. "MPEG",
  4306. "ASF",
  4307. "MOV",
  4308. "WMV",
  4309. "3GP",
  4310. "RM",
  4311. "RMVB",
  4312. "FLV",
  4313. "F4V",
  4314. "H.264",
  4315. "H.265",
  4316. "REAL VIDEO",
  4317. "MKV",
  4318. "WebM",
  4319. "HDDVD",
  4320. "MP4",
  4321. "MPG",
  4322. "M4V",
  4323. "MGV",
  4324. "OGV",
  4325. "QTM",
  4326. "STR",
  4327. "AMC",
  4328. "DVX",
  4329. "EVO",
  4330. "DAT",
  4331. "OGG",
  4332. "OGM",
  4333. ];
  4334. if (type == 1) {
  4335. _this.studyJuri[0].cover.push({
  4336. name: file.name,
  4337. url: data.Location,
  4338. uid: file.uid,
  4339. });
  4340. if (
  4341. c.indexOf(
  4342. _this.studyJuri[0].cover[0].url
  4343. .split(".")
  4344. [
  4345. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4346. ].toLocaleUpperCase()
  4347. ) != -1
  4348. ) {
  4349. _this.fileType = 2;
  4350. } else if (
  4351. b.indexOf(
  4352. _this.studyJuri[0].cover[0].url
  4353. .split(".")
  4354. [
  4355. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4356. ].toLocaleUpperCase()
  4357. ) != -1
  4358. ) {
  4359. _this.fileType = 1;
  4360. } else if (photoA.indexOf(
  4361. _this.studyJuri[0].cover[0].url
  4362. .split(".")
  4363. [
  4364. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4365. ].toLocaleUpperCase()
  4366. ) != -1) {
  4367. _this.fileType = 0;
  4368. } else {
  4369. _this.fileType = 3;
  4370. }
  4371. _this.imgChange(null, null, type);
  4372. } else if (type == 2) {
  4373. _this.upToolImg = data.Location;
  4374. _this.imgChange(null, null, type);
  4375. _this.addCourseWorks(i);
  4376. } else if (type == 4) {
  4377. _this.addPz("3", data.Location);
  4378. } else if (type == 5) {
  4379. _this.addImgDrawImG(data.Location);
  4380. } else if (type == 6) {
  4381. var _ftype = 1;
  4382. if (
  4383. c.indexOf(
  4384. data.Location.split(".")[
  4385. data.Location.split(".").length - 1
  4386. ].toLocaleUpperCase()
  4387. ) != -1
  4388. ) {
  4389. _ftype = 5;
  4390. } else if (
  4391. b.indexOf(
  4392. data.Location.split(".")[
  4393. data.Location.split(".").length - 1
  4394. ].toLocaleUpperCase()
  4395. ) != -1
  4396. ) {
  4397. _ftype = 4;
  4398. } else {
  4399. _ftype = 1;
  4400. }
  4401. _this.plworkFile.push({
  4402. name: file.name,
  4403. url: data.Location,
  4404. uid: file.uid,
  4405. fileType: _ftype,
  4406. username:
  4407. _this.plworkFile.length + 1 > 10
  4408. ? _this.plworkFile.length + 1
  4409. : "0" + (_this.plworkFile.length + 1),
  4410. });
  4411. } else if (type == 7) {
  4412. _this.addCourseWorksGong(i, data.Location, 32);
  4413. } else if (type == 8) {
  4414. _this.addCourseWorksGong(i, data.Location, 57);
  4415. }
  4416. _this.imgChange(null, null, type);
  4417. console.log(data.Location);
  4418. // _this.$message.success('上传成功'+data.Location)
  4419. }
  4420. });
  4421. }
  4422. },
  4423. async beforeUpload3(event, type, i) {
  4424. // this.$message.success('进入上传')
  4425. let file = "";
  4426. let cfindex2 = 0;
  4427. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  4428. file = event.target.files[cfindex];
  4429. var credentials = {
  4430. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4431. secretAccessKey: "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",
  4432. }; //秘钥形式的登录上传
  4433. window.AWS.config.update(credentials);
  4434. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4435. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4436. var _this = this;
  4437. // _this.progress = 0;
  4438. _this.proVisible2 = true;
  4439. var b = [
  4440. "DOC",
  4441. "DOCX",
  4442. "DOCM",
  4443. "DOTM",
  4444. "DOTX",
  4445. "PPTX",
  4446. "PPSX",
  4447. "PPT",
  4448. "PPS",
  4449. "PPTM",
  4450. "POTM",
  4451. "PPAM",
  4452. "POTX",
  4453. "PPSM",
  4454. ];
  4455. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  4456. var photoA = [
  4457. "BMP",
  4458. "GIF",
  4459. "PNG",
  4460. "JPGE",
  4461. "JPG",
  4462. "TIF",
  4463. "PCX",
  4464. "TGA",
  4465. "EXIF",
  4466. "FPX",
  4467. "SVG",
  4468. "APNG",
  4469. ];
  4470. if (
  4471. photoA.indexOf(
  4472. file.name
  4473. .split(".")
  4474. [file.name.split(".").length - 1].toLocaleUpperCase()
  4475. ) != -1 &&
  4476. type != 4
  4477. ) {
  4478. // const blob = await imageConversion.compress(file, 0.8)
  4479. file = await this.pngToWhiteBg(file);
  4480. const blob = await imageConversion.compressAccurately(file, 256);
  4481. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  4482. file = new File([blob], file.name, { type: file.type });
  4483. }
  4484. if (file) {
  4485. var params = {
  4486. Key:
  4487. file.name.split(".")[0] +
  4488. new Date().getTime() +
  4489. "." +
  4490. file.name.split(".")[file.name.split(".").length - 1],
  4491. ContentType: file.type,
  4492. Body: file,
  4493. "Access-Control-Allow-Credentials": "*",
  4494. ACL: "public-read",
  4495. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4496. var options = {
  4497. // partSize: 2048 * 1024 * 1024,
  4498. partSize: 1024 * 1024 * 1024,
  4499. queueSize: 2,
  4500. leavePartsOnError: true,
  4501. };
  4502. bucket
  4503. .upload(params, options)
  4504. .on("httpUploadProgress", function (evt) {
  4505. //这里可以写进度条
  4506. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4507. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  4508. })
  4509. .send(function (err, data) {
  4510. // _this.progress = 100;
  4511. cfindex2++;
  4512. setTimeout(() => {
  4513. if (
  4514. cfindex2 == event.target.files.length - 1 ||
  4515. cfindex2 > event.target.files.length - 1
  4516. ) {
  4517. _this.proVisible2 = false;
  4518. }
  4519. }, 1000);
  4520. if (err) {
  4521. var a = _this.$refs.upload1.uploadFiles;
  4522. a.splice(a.length - 1, a.length);
  4523. _this.$message.error("上传失败");
  4524. } else {
  4525. // _this.$message.success('上传成功')
  4526. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4527. var c = [
  4528. "AVI",
  4529. "NAVI",
  4530. "MPEG",
  4531. "ASF",
  4532. "MOV",
  4533. "WMV",
  4534. "3GP",
  4535. "RM",
  4536. "RMVB",
  4537. "FLV",
  4538. "F4V",
  4539. "H.264",
  4540. "H.265",
  4541. "REAL VIDEO",
  4542. "MKV",
  4543. "WebM",
  4544. "HDDVD",
  4545. "MP4",
  4546. "MPG",
  4547. "M4V",
  4548. "MGV",
  4549. "OGV",
  4550. "QTM",
  4551. "STR",
  4552. "AMC",
  4553. "DVX",
  4554. "EVO",
  4555. "DAT",
  4556. "OGG",
  4557. "OGM",
  4558. ];
  4559. if (type == 1) {
  4560. _this.studyJuri[0].cover.push({
  4561. name: file.name,
  4562. url: data.Location,
  4563. uid: file.uid,
  4564. });
  4565. if (
  4566. c.indexOf(
  4567. _this.studyJuri[0].cover[0].url
  4568. .split(".")
  4569. [
  4570. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4571. ].toLocaleUpperCase()
  4572. ) != -1
  4573. ) {
  4574. _this.fileType = 2;
  4575. } else if (
  4576. b.indexOf(
  4577. _this.studyJuri[0].cover[0].url
  4578. .split(".")
  4579. [
  4580. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4581. ].toLocaleUpperCase()
  4582. ) != -1
  4583. ) {
  4584. _this.fileType = 1;
  4585. } else {
  4586. _this.fileType = 0;
  4587. }
  4588. _this.imgChange(null, null, type);
  4589. } else if (type == 2) {
  4590. _this.upToolImg = data.Location;
  4591. _this.imgChange(null, null, type);
  4592. _this.addCourseWorks(i);
  4593. } else if (type == 4) {
  4594. _this.addPz("3", data.Location);
  4595. } else if (type == 5) {
  4596. _this.addImgDrawImG(data.Location);
  4597. } else if (type == 6) {
  4598. var _ftype = 1;
  4599. if (
  4600. c.indexOf(
  4601. data.Location.split(".")[
  4602. data.Location.split(".").length - 1
  4603. ].toLocaleUpperCase()
  4604. ) != -1
  4605. ) {
  4606. _ftype = 5;
  4607. } else if (
  4608. b.indexOf(
  4609. data.Location.split(".")[
  4610. data.Location.split(".").length - 1
  4611. ].toLocaleUpperCase()
  4612. ) != -1
  4613. ) {
  4614. _ftype = 4;
  4615. } else {
  4616. _ftype = 1;
  4617. }
  4618. _this.plworkFile.push({
  4619. name: file.name,
  4620. url: data.Location,
  4621. uid: file.uid,
  4622. fileType: _ftype,
  4623. username:
  4624. _this.plworkFile.length + 1 > 9
  4625. ? _this.plworkFile.length + 1
  4626. : "0" + (_this.plworkFile.length + 1),
  4627. });
  4628. }
  4629. _this.imgChange(null, null, type);
  4630. console.log(data.Location);
  4631. // _this.$message.success('上传成功'+data.Location)
  4632. }
  4633. });
  4634. }
  4635. }
  4636. },
  4637. beforeUpload2(event, type) {
  4638. var file = event.target.files[0];
  4639. var credentials = {
  4640. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4641. secretAccessKey: "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",
  4642. }; //秘钥形式的登录上传
  4643. window.AWS.config.update(credentials);
  4644. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4645. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4646. var _this = this;
  4647. _this.progress = 0;
  4648. _this.proVisible = true;
  4649. if (file) {
  4650. var params = {
  4651. Key:
  4652. file.name.split(".")[0] +
  4653. new Date().getTime() +
  4654. "." +
  4655. file.name.split(".")[file.name.split(".").length - 1],
  4656. ContentType: file.type,
  4657. Body: file,
  4658. "Access-Control-Allow-Credentials": "*",
  4659. ACL: "public-read",
  4660. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4661. var options = {
  4662. partSize: 2048 * 1024 * 1024,
  4663. queueSize: 2,
  4664. leavePartsOnError: true,
  4665. };
  4666. bucket
  4667. .upload(params, options)
  4668. .on("httpUploadProgress", function (evt) {
  4669. //这里可以写进度条
  4670. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4671. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  4672. })
  4673. .send(function (err, data) {
  4674. _this.progress = 100;
  4675. setTimeout(() => {
  4676. _this.proVisible = false;
  4677. }, 1000);
  4678. if (err) {
  4679. var a = _this.$refs.upload1.uploadFiles;
  4680. a.splice(a.length - 1, a.length);
  4681. _this.$message.error("上传失败");
  4682. } else {
  4683. if (type == 2) {
  4684. _this.studyJuri[0].upVedio.push({
  4685. name: file.name,
  4686. url: data.Location,
  4687. uid: file.uid,
  4688. });
  4689. _this.imgChange(null, null, type);
  4690. } else if (type == 3) {
  4691. _this.studyJuri[0].upFile.push({
  4692. name: file.name,
  4693. url: data.Location,
  4694. uid: file.uid,
  4695. });
  4696. _this.imgChange(null, null, type);
  4697. }
  4698. console.log(data.Location);
  4699. }
  4700. });
  4701. }
  4702. },
  4703. allScrell() {
  4704. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  4705. },
  4706. nextToolindex(type) {
  4707. this.$forceUpdate();
  4708. },
  4709. checkBz(index) {
  4710. this.$forceUpdate();
  4711. },
  4712. nextOrpreSteps(t) {
  4713. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  4714. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  4715. return;
  4716. }
  4717. var b = this.chapInfoList.length - 1;
  4718. if (t == 0) {
  4719. if (this.courseType == 0) {
  4720. if (this.taskCount == 0) {
  4721. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  4722. if (this.IsLookOpen) {
  4723. if (
  4724. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  4725. ) {
  4726. if (
  4727. this.courseDetail.userid != this.userid &&
  4728. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  4729. ) {
  4730. this.$message.error("任务未解锁");
  4731. } else {
  4732. this.$message.error("上一任务未解锁");
  4733. }
  4734. return;
  4735. }
  4736. }
  4737. this.navList[this.courseType].isOpen = false;
  4738. this.courseType = b;
  4739. this.taskCount =
  4740. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  4741. .length - 1;
  4742. this.navList[this.courseType].isOpen = true;
  4743. } else {
  4744. this.taskCount--;
  4745. }
  4746. } else {
  4747. if (this.taskCount == 0) {
  4748. this.navList[this.courseType].isOpen = false;
  4749. this.courseType--;
  4750. this.taskCount =
  4751. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  4752. .length - 1;
  4753. this.navList[this.courseType].isOpen = true;
  4754. } else {
  4755. this.taskCount--;
  4756. }
  4757. }
  4758. } else {
  4759. if (this.courseType == b) {
  4760. if (
  4761. this.taskCount ==
  4762. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  4763. 1
  4764. ) {
  4765. this.navList[this.courseType].isOpen = false;
  4766. this.courseType = 0;
  4767. this.taskCount = 0;
  4768. this.navList[this.courseType].isOpen = true;
  4769. } else {
  4770. var bbb = parseInt(this.taskCount) + 1;
  4771. if (
  4772. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  4773. .isLook &&
  4774. this.courseDetail.userid != this.userid &&
  4775. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  4776. this.IsLookOpen
  4777. ) {
  4778. this.$message.error("任务未解锁");
  4779. return;
  4780. }
  4781. this.taskCount++;
  4782. if (this.IsLookOpen) {
  4783. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4784. this.taskCount
  4785. ].isLook = true;
  4786. this.addCourseState(3);
  4787. }
  4788. }
  4789. } else {
  4790. if (
  4791. this.taskCount ==
  4792. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  4793. 1
  4794. ) {
  4795. var bbb = parseInt(this.courseType) + 1;
  4796. if (
  4797. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  4798. this.courseDetail.userid != this.userid &&
  4799. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  4800. this.IsLookOpen
  4801. ) {
  4802. this.$message.error("任务未解锁");
  4803. return;
  4804. }
  4805. this.navList[this.courseType].isOpen = false;
  4806. this.courseType++;
  4807. this.taskCount = 0;
  4808. this.navList[this.courseType].isOpen = true;
  4809. } else {
  4810. var bbb = parseInt(this.taskCount) + 1;
  4811. if (
  4812. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  4813. .isLook &&
  4814. this.courseDetail.userid != this.userid &&
  4815. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  4816. this.IsLookOpen
  4817. ) {
  4818. this.$message.error("任务未解锁");
  4819. return;
  4820. }
  4821. this.taskCount++;
  4822. }
  4823. if (this.IsLookOpen) {
  4824. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4825. this.taskCount
  4826. ].isLook = true;
  4827. this.addCourseState(3);
  4828. }
  4829. }
  4830. }
  4831. document.scrollingElement.scrollTop = 0;
  4832. this.showType = 0;
  4833. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  4834. this.toolIndex = null
  4835. this.isNoHomeWork = false;
  4836. (this.studyJuri = [
  4837. {
  4838. content: "",
  4839. cover: [],
  4840. upVedio: [],
  4841. upFile: [],
  4842. },
  4843. ]),
  4844. (this.radio = []);
  4845. this.isClickNav = "";
  4846. this.selectPz();
  4847. this.getHomeWork();
  4848. this.getCourseDetail();
  4849. this.$forceUpdate();
  4850. },
  4851. openTask(s, n, i) {
  4852. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  4853. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  4854. return;
  4855. }
  4856. if (this.IsLookOpen) {
  4857. if (
  4858. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  4859. this.courseDetail.userid != this.userid &&
  4860. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  4861. ) {
  4862. this.$message.error("任务未解锁");
  4863. return;
  4864. }
  4865. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  4866. if (
  4867. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  4868. .isLook
  4869. ) {
  4870. this.$message.error("上一任务未解锁");
  4871. return;
  4872. }
  4873. } else if (s > this.courseType) {
  4874. if (n > 0) {
  4875. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  4876. this.$message.error("上一任务未解锁");
  4877. return;
  4878. }
  4879. } else {
  4880. if (
  4881. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  4882. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  4883. ].isLook
  4884. ) {
  4885. this.$message.error("上一任务未解锁");
  4886. return;
  4887. }
  4888. }
  4889. }
  4890. }
  4891. this.courseType = s;
  4892. this.navId = i;
  4893. this.taskCount = n;
  4894. if (this.IsLookOpen) {
  4895. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4896. this.taskCount
  4897. ].isLook = true;
  4898. this.addCourseState(3);
  4899. }
  4900. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  4901. this.isCloseList[ci].isClose = 0;
  4902. }
  4903. this.showType = 0;
  4904. this.isNoHomeWork = false;
  4905. (this.studyJuri = [
  4906. {
  4907. content: "",
  4908. cover: [],
  4909. upVedio: [],
  4910. upFile: [],
  4911. },
  4912. ]),
  4913. (this.radio = []);
  4914. document.scrollingElement.scrollTop = 0;
  4915. this.toolIndex = null
  4916. // setTimeout(() => {
  4917. // let a = document.getElementById(i);
  4918. // if (a.offsetTop - 110 == 0) {
  4919. // window.scrollTo(0, 0);
  4920. // } else {
  4921. // window.scrollTo(0, a.offsetTop);
  4922. // }
  4923. // }, 0);
  4924. this.selectPz();
  4925. this.getHomeWork();
  4926. this.getCourseDetail();
  4927. },
  4928. get(i) {
  4929. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  4930. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  4931. return;
  4932. }
  4933. this.navList[i].isOpen = !this.navList[i].isOpen;
  4934. },
  4935. addQuestion() {
  4936. this.answerList.push({
  4937. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  4938. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  4939. });
  4940. let params = [
  4941. {
  4942. uid: this.userid,
  4943. cid: this.id,
  4944. stage: this.courseType,
  4945. task: this.taskCount,
  4946. tool: this.toolindex,
  4947. content: JSON.stringify(this.answerList),
  4948. type: 3,
  4949. },
  4950. ];
  4951. this.ajax
  4952. .post(this.$store.state.api + "addCourseWorks", params)
  4953. .then((res) => {
  4954. this.$message({
  4955. message: "提交成功",
  4956. type: "success",
  4957. });
  4958. this.answerList = [];
  4959. this.questionAnswer = ""
  4960. this.answerDialogVisible = false;
  4961. this.selectStudent();
  4962. this.selectSWorks();
  4963. this.selectSLook();
  4964. })
  4965. .catch((err) => {
  4966. this.$message.error("提交失败");
  4967. console.error(err);
  4968. });
  4969. },
  4970. addQuestionTeacher() {
  4971. this.answerList.push({
  4972. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  4973. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  4974. });
  4975. let params = [
  4976. {
  4977. uid: this.sStudent.userid,
  4978. cid: this.id,
  4979. stage: this.courseType,
  4980. task: this.taskCount,
  4981. tool: this.toolindex,
  4982. content: JSON.stringify(this.answerList),
  4983. type: 3,
  4984. ateacher: this.userid,
  4985. },
  4986. ];
  4987. this.ajax
  4988. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  4989. .then((res) => {
  4990. this.$message({
  4991. message: "提交成功",
  4992. type: "success",
  4993. });
  4994. this.answerList = [];
  4995. this.questionAnswer = ""
  4996. this.answerDialogVisibleTeacher = false;
  4997. this.selectStudent();
  4998. this.selectSWorks();
  4999. this.selectSLook();
  5000. })
  5001. .catch((err) => {
  5002. this.$message.error("提交失败");
  5003. console.error(err);
  5004. });
  5005. },
  5006. refreshCourse() {
  5007. // window.location.reload();
  5008. this.navList = [];
  5009. this.getCourseDetail(1)
  5010. },
  5011. setPz() {
  5012. if (this.ispzType == 4) {
  5013. this.ispzType = 0
  5014. this.pzDialog = false
  5015. return;
  5016. }
  5017. this.ispzType = 4
  5018. this.pzDialog = true
  5019. this.selectPz();
  5020. },
  5021. getCourseDetail(type, gindex) {
  5022. let loading;
  5023. if (type != 2) {
  5024. loading = this.$loading.service({
  5025. background: "rgba(255, 255, 255, 0.7)",
  5026. target: document.querySelector(".student_table"),
  5027. });
  5028. }
  5029. let params = {
  5030. courseId: this.id,
  5031. };
  5032. this.ajax
  5033. .get(this.$store.state.api + "selectCourseDetail3", params)
  5034. .then((res) => {
  5035. if (type != 2) {
  5036. loading.close();
  5037. if (this.courseType > (JSON.parse(res.data[0][0].chapters).length - 1)) {
  5038. this.courseType = (JSON.parse(res.data[0][0].chapters).length - 1)
  5039. }
  5040. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  5041. .chapterInfo[0].taskJson;
  5042. var b = [
  5043. "AVI",
  5044. "NAVI",
  5045. "MPEG",
  5046. "ASF",
  5047. "MOV",
  5048. "WMV",
  5049. "3GP",
  5050. "RM",
  5051. "RMVB",
  5052. "FLV",
  5053. "F4V",
  5054. "H.264",
  5055. "H.265",
  5056. "REAL VIDEO",
  5057. "MKV",
  5058. "WebM",
  5059. "HDDVD",
  5060. "MP4",
  5061. "MPG",
  5062. "M4V",
  5063. "MGV",
  5064. "OGV",
  5065. "QTM",
  5066. "STR",
  5067. "AMC",
  5068. "DVX",
  5069. "EVO",
  5070. "DAT",
  5071. "OGG",
  5072. "OGM",
  5073. "MP3",
  5074. ];
  5075. for (var i = 0; i < a.length; i++) {
  5076. var c = a[i].chapterData;
  5077. this.vedio[i] = [];
  5078. this.textList[i] = [];
  5079. this.lineList[i] = [];
  5080. this.chapToolList[i] = [];
  5081. this.file[i] = [];
  5082. this.fileC[i] = [];
  5083. for (var j = 0; j < c.length; j++) {
  5084. if (c[j].type == 7) {
  5085. this.chapToolList[i].push(c[j]);
  5086. } else if (c[j].type == 8) {
  5087. this.lineList[i].push(c[j]);
  5088. } else if (c[j].type == 6) {
  5089. this.textList[i].push(c[j]);
  5090. } else if (c[j].type == 12) {
  5091. this.fileC[i].push(c[j]);
  5092. } else {
  5093. if (
  5094. b.indexOf(
  5095. c[j].url
  5096. .split(".")
  5097. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  5098. ) != -1
  5099. ) {
  5100. this.vedio[i].push(c[j]);
  5101. } else {
  5102. this.file[i].push(c[j]);
  5103. }
  5104. }
  5105. }
  5106. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5107. d.sources[0].src =
  5108. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  5109. this.playerO[i] = d;
  5110. }
  5111. this.courseDetail = res.data[0][0];
  5112. this.tcid = this.arrayToArray(this.courseDetail.juri ? this.courseDetail.juri.split(",") : [], this.tcid2 ? this.tcid2.split(",") : []).join(",")
  5113. console.log(this.tcid);
  5114. this.evalua = res.data[0][0].evaId;
  5115. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  5116. this.courseType
  5117. ];
  5118. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  5119. if (this.tcid && res.data[1].length) {
  5120. let _inviteA = []
  5121. for (var ik = 0; ik < res.data[1].length; ik++) {
  5122. _inviteA.push({ cid: res.data[1][ik].classid, ic: res.data[1][ik].code });
  5123. }
  5124. for (var ik = 0; ik < _inviteA.length; ik++) {
  5125. if (this.arrayToArray(_inviteA[ik].cid.split(","), this.tcid.split(",")).length) {
  5126. this.inviteCode = _inviteA[ik].ic
  5127. break;
  5128. }
  5129. }
  5130. }
  5131. for (var l = 0; l < this.chapInfoList.length; l++) {
  5132. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5133. for (var m = 0; m < w.length; m++) {
  5134. w[m].id = l + "-" + m;
  5135. }
  5136. }
  5137. if (
  5138. !this.vedio[this.taskCount][0] ||
  5139. this.vedio[this.taskCount][0].url == ""
  5140. ) {
  5141. if (
  5142. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5143. this.taskCount
  5144. ].chapterData.length > 0
  5145. ) {
  5146. // if (
  5147. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5148. // this.taskCount
  5149. // ].chapterData[0].type != 8
  5150. // ) {
  5151. let _url =
  5152. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5153. this.taskCount
  5154. ].chapterData[0].url;
  5155. if (
  5156. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5157. this.taskCount
  5158. ].chapterData[0].type == 8
  5159. ) {
  5160. this.showType = 2;
  5161. if (
  5162. _url.indexOf("https://") == -1 &&
  5163. _url.indexOf("http://") == -1
  5164. ) {
  5165. _url = "https://" + _url;
  5166. }
  5167. this.pptImgUrl1 = _url;
  5168. this.isClickNav = "line0";
  5169. } else if (
  5170. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5171. this.taskCount
  5172. ].chapterData[0].type == 3
  5173. ) {
  5174. if (
  5175. _url
  5176. .split(".")
  5177. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5178. ) {
  5179. this.showType = 3;
  5180. this.pptImgUrl1 = _url;
  5181. this.isClickNav = "word0";
  5182. } else if (
  5183. this.isAssetTypeAnImage(
  5184. _url
  5185. .split(".")
  5186. [_url.split(".").length - 1].toLocaleLowerCase()
  5187. )
  5188. ) {
  5189. this.showType = 4;
  5190. this.pptImgUrl1 = _url;
  5191. this.isClickNav = "word0";
  5192. } else {
  5193. this.showType = 2;
  5194. this.pptImgUrl1 =
  5195. "https://view.officeapps.live.com/op/view.aspx?src=" +
  5196. _url;
  5197. this.isClickNav = "word0";
  5198. }
  5199. } else if (
  5200. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5201. this.taskCount
  5202. ].chapterData[0].type == 6
  5203. ) {
  5204. this.showType = 1;
  5205. this.text = this.textList[this.taskCount][0];
  5206. this.isClickNav = "text0";
  5207. }
  5208. }
  5209. } else {
  5210. this.isClickNav = "video0";
  5211. }
  5212. if (this.toolIndex == null && this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length) {
  5213. this.toolIndex = 0
  5214. // this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  5215. }
  5216. this.toolType = 0
  5217. } else {
  5218. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  5219. .chapterInfo[0].taskJson;
  5220. var b = [
  5221. "AVI",
  5222. "NAVI",
  5223. "MPEG",
  5224. "ASF",
  5225. "MOV",
  5226. "WMV",
  5227. "3GP",
  5228. "RM",
  5229. "RMVB",
  5230. "FLV",
  5231. "F4V",
  5232. "H.264",
  5233. "H.265",
  5234. "REAL VIDEO",
  5235. "MKV",
  5236. "WebM",
  5237. "HDDVD",
  5238. "MP4",
  5239. "MPG",
  5240. "M4V",
  5241. "MGV",
  5242. "OGV",
  5243. "QTM",
  5244. "STR",
  5245. "AMC",
  5246. "DVX",
  5247. "EVO",
  5248. "DAT",
  5249. "OGG",
  5250. "OGM",
  5251. "MP3",
  5252. ];
  5253. for (var i = 0; i < a.length; i++) {
  5254. var c = a[i].chapterData;
  5255. this.vedio[i] = [];
  5256. this.textList[i] = [];
  5257. this.lineList[i] = [];
  5258. this.chapToolList[i] = [];
  5259. this.file[i] = [];
  5260. this.fileC[i] = [];
  5261. for (var j = 0; j < c.length; j++) {
  5262. if (c[j].type == 7) {
  5263. this.chapToolList[i].push(c[j]);
  5264. } else if (c[j].type == 8) {
  5265. this.lineList[i].push(c[j]);
  5266. } else if (c[j].type == 6) {
  5267. this.textList[i].push(c[j]);
  5268. } else if (c[j].type == 12) {
  5269. this.fileC[i].push(c[j]);
  5270. } else {
  5271. if (
  5272. b.indexOf(
  5273. c[j].url
  5274. .split(".")
  5275. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  5276. ) != -1
  5277. ) {
  5278. this.vedio[i].push(c[j]);
  5279. } else {
  5280. this.file[i].push(c[j]);
  5281. }
  5282. }
  5283. }
  5284. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5285. d.sources[0].src =
  5286. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  5287. this.playerO[i] = d;
  5288. }
  5289. if (
  5290. !this.vedio[this.taskCount][0] ||
  5291. this.vedio[this.taskCount][0].url == ""
  5292. ) {
  5293. if (
  5294. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5295. this.taskCount
  5296. ].chapterData.length > 0
  5297. ) {
  5298. // if (
  5299. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5300. // this.taskCount
  5301. // ].chapterData[0].type != 8
  5302. // ) {
  5303. let _url =
  5304. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5305. this.taskCount
  5306. ].chapterData[0].url;
  5307. if (
  5308. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5309. this.taskCount
  5310. ].chapterData[0].type == 8
  5311. ) {
  5312. this.showType = 2;
  5313. if (
  5314. _url.indexOf("https://") == -1 &&
  5315. _url.indexOf("http://") == -1
  5316. ) {
  5317. _url = "https://" + _url;
  5318. }
  5319. this.pptImgUrl1 = _url;
  5320. this.isClickNav = "line0";
  5321. } else if (
  5322. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5323. this.taskCount
  5324. ].chapterData[0].type == 3
  5325. ) {
  5326. if (
  5327. _url
  5328. .split(".")
  5329. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5330. ) {
  5331. this.showType = 3;
  5332. this.pptImgUrl1 = _url;
  5333. this.isClickNav = "word0";
  5334. } else if (
  5335. this.isAssetTypeAnImage(
  5336. _url
  5337. .split(".")
  5338. [_url.split(".").length - 1].toLocaleLowerCase()
  5339. )
  5340. ) {
  5341. this.showType = 4;
  5342. this.pptImgUrl1 = _url;
  5343. this.isClickNav = "word0";
  5344. } else {
  5345. this.showType = 2;
  5346. this.pptImgUrl1 =
  5347. "https://view.officeapps.live.com/op/view.aspx?src=" +
  5348. _url;
  5349. this.isClickNav = "word0";
  5350. }
  5351. } else if (
  5352. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5353. this.taskCount
  5354. ].chapterData[0].type == 6
  5355. ) {
  5356. this.showType = 1;
  5357. this.text = this.textList[this.taskCount][0];
  5358. this.isClickNav = "text0";
  5359. }
  5360. }
  5361. } else {
  5362. this.isClickNav = "video0";
  5363. }
  5364. this.toolType = 0
  5365. this.$forceUpdate();
  5366. }
  5367. this.$nextTick(() => {
  5368. setTimeout(() => {
  5369. this.checkEva();
  5370. }, 1000);
  5371. });
  5372. let _this = this;
  5373. if (_this.timer) {
  5374. clearInterval(_this.timer);
  5375. _this.timer = null;
  5376. }
  5377. _this.selectSWorks(gindex);
  5378. _this.selectStudent();
  5379. _this.selectSLook();
  5380. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  5381. _this.setCTask();
  5382. }
  5383. if (_this.dialogVisibleGroup) {
  5384. _this.groupJson =
  5385. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  5386. _this.taskCount
  5387. ].toolChoose[_this.toolindex].groupJson;
  5388. }
  5389. _this.timer = setInterval(function () {
  5390. _this.selectSWorks(gindex);
  5391. if (_this.tType == 4 || _this.ispzType == 4) {
  5392. _this.selectPz();
  5393. }
  5394. }, 5000);
  5395. })
  5396. .catch((err) => {
  5397. loading.close();
  5398. console.error(err);
  5399. });
  5400. },
  5401. getCourseGroup(gindex) {
  5402. let params = {
  5403. cid: this.id,
  5404. classid: this.tcid ? this.tcid : '1',
  5405. };
  5406. this.ajax
  5407. .get(this.$store.state.api + "getCourseGroup", params)
  5408. .then((res) => {
  5409. if (res.data && res.data[0].length) {
  5410. if (!this.isGroup) {
  5411. let courseGroup = JSON.parse(res.data[0][0].group)
  5412. courseGroup.group = courseGroup.group.filter(el => {
  5413. el.works = []
  5414. return el
  5415. });
  5416. this.courseGroup = courseGroup
  5417. let groupPerson = res.data[1]
  5418. let group = JSON.parse(res.data[0][0].group).group
  5419. let courseGroupStudent = {}
  5420. let courseGroupStudentUid = {}
  5421. for (var i = 0; i < group.length; i++) {
  5422. courseGroupStudent[group[i].id] = []
  5423. courseGroupStudentUid[group[i].id] = []
  5424. for (var j = 0; j < groupPerson.length; j++) {
  5425. if (groupPerson[j].groupCid == group[i].id) {
  5426. courseGroupStudent[group[i].id].push(groupPerson[j])
  5427. courseGroupStudentUid[group[i].id].push(groupPerson[j].userid)
  5428. }
  5429. }
  5430. }
  5431. this.courseGroupStudent = courseGroupStudent
  5432. this.courseGroupStudentUid = courseGroupStudentUid
  5433. }
  5434. this.isGroup = true
  5435. this.selectSWorks(gindex);
  5436. } else {
  5437. this.selectSWorks(gindex);
  5438. this.isGroup = false
  5439. }
  5440. })
  5441. .catch((err) => {
  5442. // this.$message.error("网络不佳");
  5443. console.error(err);
  5444. });
  5445. },
  5446. setOperationTime() {
  5447. let _this = this
  5448. if (_this.opertimer) {
  5449. clearInterval(_this.opertimer);
  5450. _this.opertimer = null;
  5451. }
  5452. _this.opertimer = setInterval(() => {
  5453. _this.setoTime('600')
  5454. }, 600000);
  5455. },
  5456. setoTime(time) {
  5457. let params = [
  5458. {
  5459. uid: this.userid,
  5460. cid: this.id,
  5461. type: '2',
  5462. time: time,
  5463. },
  5464. ];
  5465. this.ajax
  5466. .post(this.$store.state.api + "addOperationTimeT2", params)
  5467. .then((res) => {
  5468. })
  5469. .catch((err) => {
  5470. console.error(err);
  5471. });
  5472. },
  5473. addPz(type, content) {
  5474. if (type == "1" && this.pzConText == "") {
  5475. this.$message.error("批注不能为空!");
  5476. return;
  5477. }
  5478. let params = [
  5479. {
  5480. cid: this.id,
  5481. uid: this.userid,
  5482. s: this.courseType,
  5483. t: this.taskCount,
  5484. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  5485. type: type,
  5486. },
  5487. ];
  5488. this.ajax
  5489. .post(this.$store.state.api + "addPz2", params)
  5490. .then((res) => {
  5491. this.$message({
  5492. message: "添加成功",
  5493. type: "success",
  5494. });
  5495. this.pzConText = "";
  5496. this.addPzDialog = false;
  5497. this.selectPz();
  5498. })
  5499. .catch((err) => {
  5500. this.$message.error("添加失败");
  5501. console.error(err);
  5502. });
  5503. },
  5504. deletePz(id) {
  5505. this.$confirm("确定删除此批注吗?", "提示", {
  5506. confirmButtonText: "确定",
  5507. cancelButtonText: "取消",
  5508. type: "warning",
  5509. })
  5510. .then(() => {
  5511. let params = [
  5512. {
  5513. id: id,
  5514. },
  5515. ];
  5516. this.ajax
  5517. .post(this.$store.state.api + "deletePz", params)
  5518. .then((res) => {
  5519. this.$message({
  5520. message: "删除成功",
  5521. type: "success",
  5522. });
  5523. this.selectPz();
  5524. })
  5525. .catch((err) => {
  5526. this.$message.error("网络异常");
  5527. console.error(err);
  5528. });
  5529. })
  5530. .catch(() => { });
  5531. },
  5532. selectPz() {
  5533. let params = {
  5534. cid: this.id,
  5535. s: this.courseType,
  5536. t: this.taskCount,
  5537. };
  5538. this.ajax
  5539. .get(this.$store.state.api + "selectPzList", params)
  5540. .then((res) => {
  5541. this.pzList = res.data[0];
  5542. })
  5543. .catch((err) => {
  5544. console.error(err);
  5545. });
  5546. },
  5547. updateSLook() {
  5548. let params = {
  5549. sopen: this.sIsOpen == false ? 1 : 2,
  5550. cid: this.id,
  5551. };
  5552. this.ajax
  5553. .get(this.$store.state.api + "updateCourseSLook", params)
  5554. .then((res) => {
  5555. if (this.sIsOpen == true) {
  5556. this.$message({
  5557. message: "权限设置成功",
  5558. type: "success",
  5559. });
  5560. } else {
  5561. this.$message({
  5562. message: "权限关闭成功",
  5563. type: "success",
  5564. });
  5565. }
  5566. })
  5567. .catch((err) => {
  5568. console.error(err);
  5569. });
  5570. },
  5571. updateFollow() {
  5572. let params = [
  5573. {
  5574. sopen: this.IsFollow == false ? 1 : 2,
  5575. cid: this.id,
  5576. },
  5577. ];
  5578. this.ajax
  5579. .post(this.$store.state.api + "updateCourseFollow", params)
  5580. .then((res) => {
  5581. if (this.IsFollow == true) {
  5582. this.$message({
  5583. message: "开启成功",
  5584. type: "success",
  5585. });
  5586. } else {
  5587. this.$message({
  5588. message: "关闭成功",
  5589. type: "success",
  5590. });
  5591. }
  5592. this.setCTask();
  5593. })
  5594. .catch((err) => {
  5595. console.error(err);
  5596. });
  5597. },
  5598. setCTask() {
  5599. let params = [
  5600. {
  5601. sopen: this.courseType + '-' + this.taskCount,
  5602. cid: this.id,
  5603. },
  5604. ];
  5605. this.ajax
  5606. .post(this.$store.state.api + "updateCourseFollowC", params)
  5607. .then((res) => {
  5608. })
  5609. .catch((err) => {
  5610. console.error(err);
  5611. });
  5612. },
  5613. updateLookOpen() {
  5614. let params = [
  5615. {
  5616. sopen: this.IsLookOpen == false ? 1 : 2,
  5617. cid: this.id,
  5618. },
  5619. ];
  5620. this.ajax
  5621. .post(this.$store.state.api + "updateCourseLookOpen", params)
  5622. .then((res) => {
  5623. if (this.IsLookOpen == true) {
  5624. // if (this.courseType != 0 && this.taskCount != 0) {
  5625. // this.openTask(0, 0, "0-0");
  5626. // }
  5627. this.$message({
  5628. message: "权限设置成功",
  5629. type: "success",
  5630. });
  5631. } else {
  5632. this.$message({
  5633. message: "权限关闭成功",
  5634. type: "success",
  5635. });
  5636. }
  5637. this.getCourseState(2);
  5638. })
  5639. .catch((err) => {
  5640. console.error(err);
  5641. });
  5642. },
  5643. selectSLook() {
  5644. let params = {
  5645. cid: this.id,
  5646. };
  5647. this.ajax
  5648. .get(this.$store.state.api + "selectCourseSLook", params)
  5649. .then((res) => {
  5650. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  5651. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  5652. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  5653. if (!this.IsLookOpen) {
  5654. this.setNavList();
  5655. } else {
  5656. this.getCourseState(1);
  5657. }
  5658. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  5659. let _followC = res.data[0][0].followC.split('-')
  5660. if (this.courseType != _followC[0] || this.taskCount != _followC[1]) {
  5661. this.navList[this.courseType].isOpen = false;
  5662. this.courseType = _followC[0]
  5663. this.navList[this.courseType].isOpen = true;
  5664. this.taskCount = parseInt(_followC[1])
  5665. this.navId = res.data[0][0].followC;
  5666. this.getCourseDetail()
  5667. }
  5668. }
  5669. })
  5670. .catch((err) => {
  5671. console.error(err);
  5672. });
  5673. },
  5674. setNavList() {
  5675. if (this.navList.length == 0) {
  5676. this.navList = [];
  5677. for (var l = 0; l < this.chapInfoList.length; l++) {
  5678. var q = this.chapInfoList[l].dyName;
  5679. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5680. var e;
  5681. this.navList.push({
  5682. dyName: q,
  5683. isOpen: l === 0 ? true : false,
  5684. task: [],
  5685. });
  5686. for (var r = 0; r < w.length; r++) {
  5687. e = w[r].task;
  5688. if (this.chapInfoList[l].easy == 1) {
  5689. this.navList[l].task.push({
  5690. taskName: q,
  5691. id: l + "-" + r,
  5692. isLook: w[r].isLook,
  5693. });
  5694. } else {
  5695. this.navList[l].task.push({
  5696. taskName: e,
  5697. id: l + "-" + r,
  5698. isLook: w[r].isLook,
  5699. });
  5700. }
  5701. // this.navId = this.navId ? this.navId : l + "-" + r;
  5702. // this.navId = l + "-" + r;
  5703. }
  5704. }
  5705. this.navList[0].isOpen = false;
  5706. this.navList[this.courseType].isOpen = true;
  5707. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  5708. } else {
  5709. this.setNavList2();
  5710. }
  5711. },
  5712. setNavList2() {
  5713. for (var l = 0; l < this.chapInfoList.length; l++) {
  5714. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5715. for (var r = 0; r < w.length; r++) {
  5716. this.navList[l].task[r].isLook = w[r].isLook;
  5717. }
  5718. }
  5719. if (
  5720. this.IsLookOpen &&
  5721. !this.navList[this.courseType].task[this.taskCount].isLook
  5722. ) {
  5723. this.openTask(0, 0, "0-0");
  5724. }
  5725. this.$forceUpdate();
  5726. },
  5727. getCourseState(type) {
  5728. let params = {
  5729. cid: this.id,
  5730. };
  5731. this.ajax
  5732. .get(this.$store.state.api + "getCourseState", params)
  5733. .then((res) => {
  5734. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  5735. this.chapInfoList = JSON.parse(res.data[0][0].state);
  5736. this.setNavList();
  5737. this.$forceUpdate();
  5738. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  5739. this.addCourseState(2);
  5740. } else {
  5741. this.addCourseState(1);
  5742. }
  5743. })
  5744. .catch((err) => {
  5745. console.error(err);
  5746. });
  5747. },
  5748. addCourseState(type) {
  5749. let _state = this.chapInfoList;
  5750. // this.courseType this.taskCount
  5751. if (type == 1 || type == 2) {
  5752. for (var i = 0; i < _state.length; i++) {
  5753. let el = _state[i].chapterInfo[0].taskJson;
  5754. for (var j = 0; j < el.length; j++) {
  5755. // if (i == 0 && j == 0) {
  5756. // el[j].isLook = true;
  5757. // } else {
  5758. // el[j].isLook = false;
  5759. // }
  5760. if (
  5761. this.courseType > i ||
  5762. (this.courseType == i && this.taskCount + 1 > j)
  5763. ) {
  5764. el[j].isLook = true;
  5765. } else {
  5766. el[j].isLook = false;
  5767. }
  5768. }
  5769. }
  5770. }
  5771. let params = [
  5772. {
  5773. cid: this.id,
  5774. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  5775. },
  5776. ];
  5777. this.ajax
  5778. .post(
  5779. this.$store.state.api +
  5780. (type == 1 ? "addCourseState" : "updateCourseSate"),
  5781. params
  5782. )
  5783. .then((res) => {
  5784. if (this.IsLookOpen) {
  5785. this.setNavList();
  5786. }
  5787. if (type == 3 && type == 2) {
  5788. this.getCourseState(1);
  5789. }
  5790. })
  5791. .catch((err) => {
  5792. console.error(err);
  5793. });
  5794. },
  5795. getHomeWork() {
  5796. let params = {
  5797. cid: this.id,
  5798. stage: this.courseType,
  5799. task: this.taskCount,
  5800. uid: this.userid,
  5801. };
  5802. this.ajax
  5803. .get(this.$store.state.api + "selectWork", params)
  5804. .then((res) => {
  5805. if (res.data[0].length > 0) {
  5806. this.studyJuri = JSON.parse(res.data[0][0].content);
  5807. this.isNoHomeWork = true;
  5808. }
  5809. })
  5810. .catch((err) => {
  5811. console.error(err);
  5812. });
  5813. },
  5814. isAssetTypeAnImage(ext) {
  5815. return (
  5816. [
  5817. "png",
  5818. "jpg",
  5819. "jpeg",
  5820. "bmp",
  5821. "gif",
  5822. "webp",
  5823. "psd",
  5824. "svg",
  5825. "tiff",
  5826. ].indexOf(ext) !== -1
  5827. );
  5828. },
  5829. switchVideo(media) {
  5830. this.playerO = {};
  5831. this.playerOptions.poster = "";
  5832. this.playerOptions.sources[0].src = media;
  5833. this.playerO = this.playerOptions;
  5834. },
  5835. onPlayerPlay() { },
  5836. lookVedio(u, i) {
  5837. this.isClickNav = "";
  5838. // this.playerOptions.sources[0].src = u;
  5839. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5840. d.sources[0].src = u;
  5841. this.playerO[this.taskCount] = d;
  5842. this.showType = 0;
  5843. this.isClickNav = "video" + i;
  5844. this.$forceUpdate();
  5845. },
  5846. lookText(i, t) {
  5847. this.isClickNav = "";
  5848. this.text = this.textList[i][t];
  5849. // this.dialogVisible1 = true;
  5850. this.showType = 1;
  5851. this.isClickNav = "text" + t;
  5852. },
  5853. lookTools(i, t) {
  5854. this.chapTools = this.chapToolList[i][t];
  5855. this.dialogVisible2 = true;
  5856. },
  5857. openFile(f) {
  5858. this.pptImgUrl = "";
  5859. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  5860. if (
  5861. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  5862. -1
  5863. ) {
  5864. this.pptImgUrl =
  5865. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  5866. this.showPDF = false;
  5867. this.dialogVisible3 = true;
  5868. } else if (
  5869. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5870. ) {
  5871. this.pptImgUrl = f;
  5872. this.showPDF = true;
  5873. this.dialogVisible3 = true;
  5874. }
  5875. },
  5876. openTable(f) {
  5877. this.tableJson = JSON.parse(f.works);
  5878. this.$forceUpdate();
  5879. this.dialogVisibleTable2 = true;
  5880. },
  5881. openWord(f) {
  5882. this.tableJson = JSON.parse(f.works);
  5883. this.$forceUpdate();
  5884. this.dialogVisibleTable3 = true;
  5885. },
  5886. doUrl(url, i) {
  5887. this.isClickNav = "";
  5888. this.pptImgUrl1 = "";
  5889. this.showType = 2;
  5890. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  5891. url = "https://" + url;
  5892. }
  5893. this.pptImgUrl1 = url;
  5894. this.isClickNav = "line" + i;
  5895. },
  5896. downFile(f, i) {
  5897. this.isClickNav = "";
  5898. this.pptImgUrl1 = "";
  5899. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  5900. if (
  5901. a.indexOf(
  5902. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  5903. ) != -1
  5904. ) {
  5905. this.pptImgUrl1 =
  5906. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  5907. // this.dialogVisible3 = true;
  5908. this.showType = 2;
  5909. } else if (
  5910. this.isAssetTypeAnImage(
  5911. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  5912. )
  5913. ) {
  5914. this.showType = 4;
  5915. this.pptImgUrl1 = f.url;
  5916. } else if (
  5917. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  5918. "PDF"
  5919. ) {
  5920. this.pptImgUrl1 = f.url;
  5921. // this.dialogVisible3 = true;
  5922. this.showType = 3;
  5923. } else {
  5924. window.open(this.file[i].url);
  5925. }
  5926. this.isClickNav = "word" + i;
  5927. },
  5928. downFileList(i) {
  5929. window.open(this.noImgList[i].url);
  5930. },
  5931. openAddWork() {
  5932. this.dialogVisible = true;
  5933. },
  5934. addBzWorks() {
  5935. let params = [
  5936. {
  5937. uid: this.userid,
  5938. cid: this.id,
  5939. stage: this.courseType,
  5940. task: this.taskCount,
  5941. tool: this.toolindex,
  5942. content: JSON.stringify(this.eScore),
  5943. type: 6,
  5944. },
  5945. ];
  5946. this.ajax
  5947. .post(this.$store.state.api + "addCourseWorks", params)
  5948. .then((res) => {
  5949. this.$message({
  5950. message: "提交成功",
  5951. type: "success",
  5952. });
  5953. this.eScore = { eBzText: "", eStar: [] };
  5954. this.studentEvalDialogVisible = false;
  5955. this.selectSWorks();
  5956. })
  5957. .catch((err) => {
  5958. this.$message.error("提交失败");
  5959. console.error(err);
  5960. });
  5961. },
  5962. addBzWorksTeacher() {
  5963. let params = [
  5964. {
  5965. uid: this.sStudent.userid,
  5966. cid: this.id,
  5967. stage: this.courseType,
  5968. task: this.taskCount,
  5969. tool: this.toolindex,
  5970. content: JSON.stringify(this.eScore),
  5971. type: 6,
  5972. },
  5973. ];
  5974. this.ajax
  5975. .post(this.$store.state.api + "addCourseWorks", params)
  5976. .then((res) => {
  5977. this.$message({
  5978. message: "提交成功",
  5979. type: "success",
  5980. });
  5981. this.eScore = { eBzText: "", eStar: [] };
  5982. this.studentEvalDialogVisibleTeacher = false;
  5983. this.selectSWorks();
  5984. })
  5985. .catch((err) => {
  5986. this.$message.error("提交失败");
  5987. console.error(err);
  5988. });
  5989. },
  5990. addStudentAsk() {
  5991. if (!this.radio.length) {
  5992. this.$message.error("请选择选项");
  5993. return;
  5994. }
  5995. for (var i = 0; i < this.askJson.askCount; i++) {
  5996. if (
  5997. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  5998. (this.radio[i] !== 0 && !this.radio[i])
  5999. ) {
  6000. this.$message.error("请选择选项");
  6001. return;
  6002. }
  6003. }
  6004. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  6005. let params = [
  6006. {
  6007. uid: this.userid,
  6008. cid: this.id,
  6009. stage: this.courseType,
  6010. task: this.taskCount,
  6011. tool: this.toolindex,
  6012. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  6013. type: 2,
  6014. },
  6015. ];
  6016. this.ajax
  6017. .post(this.$store.state.api + "addCourseWorks", params)
  6018. .then((res) => {
  6019. this.$message({
  6020. message: "提交成功",
  6021. type: "success",
  6022. });
  6023. this.askList = [];
  6024. this.dialogVisible5 = false;
  6025. this.selectStudent();
  6026. this.selectSWorks();
  6027. this.selectSLook();
  6028. })
  6029. .catch((err) => {
  6030. this.$message.error("提交失败");
  6031. console.error(err);
  6032. });
  6033. },
  6034. addStudentAskTeacher() {
  6035. if (!this.radio.length) {
  6036. this.$message.error("请选择选项");
  6037. return;
  6038. }
  6039. for (var i = 0; i < this.askJson.askCount; i++) {
  6040. if (
  6041. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  6042. (this.radio[i] !== 0 && !this.radio[i])
  6043. ) {
  6044. this.$message.error("请选择选项");
  6045. return;
  6046. }
  6047. }
  6048. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  6049. let params = [
  6050. {
  6051. uid: this.sStudent.userid,
  6052. cid: this.id,
  6053. stage: this.courseType,
  6054. task: this.taskCount,
  6055. tool: this.toolindex,
  6056. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  6057. type: 2,
  6058. },
  6059. ];
  6060. this.ajax
  6061. .post(this.$store.state.api + "addCourseWorks", params)
  6062. .then((res) => {
  6063. this.$message({
  6064. message: "提交成功",
  6065. type: "success",
  6066. });
  6067. this.askList = [];
  6068. this.dialogVisible5Teacher = false;
  6069. this.selectStudent();
  6070. this.selectSWorks();
  6071. this.selectSLook();
  6072. })
  6073. .catch((err) => {
  6074. this.$message.error("提交失败");
  6075. console.error(err);
  6076. });
  6077. },
  6078. addStudentTest() {
  6079. if (!this.radio.length) {
  6080. this.$message.error("请选择选项");
  6081. return;
  6082. }
  6083. for (var i = 0; i < this.testJson.testCount; i++) {
  6084. if (
  6085. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  6086. (this.radio[i] !== 0 && !this.radio[i])
  6087. ) {
  6088. this.$message.error("请选择选项");
  6089. return;
  6090. }
  6091. }
  6092. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  6093. let params = [
  6094. {
  6095. uid: this.userid,
  6096. cid: this.id,
  6097. stage: this.courseType,
  6098. task: this.taskCount,
  6099. tool: this.toolindex,
  6100. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  6101. type: 8,
  6102. },
  6103. ];
  6104. this.ajax
  6105. .post(this.$store.state.api + "addCourseWorks", params)
  6106. .then((res) => {
  6107. this.$message({
  6108. message: "提交成功",
  6109. type: "success",
  6110. });
  6111. this.askList = [];
  6112. this.dialogVisibleChoice = false;
  6113. this.selectStudent();
  6114. this.selectSWorks();
  6115. this.selectSLook();
  6116. })
  6117. .catch((err) => {
  6118. this.$message.error("提交失败");
  6119. console.error(err);
  6120. });
  6121. },
  6122. addStudentTestTeacher() {
  6123. if (!this.radio.length) {
  6124. this.$message.error("请选择选项");
  6125. return;
  6126. }
  6127. for (var i = 0; i < this.testJson.testCount; i++) {
  6128. if (
  6129. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  6130. (this.radio[i] !== 0 && !this.radio[i])
  6131. ) {
  6132. this.$message.error("请选择选项");
  6133. return;
  6134. }
  6135. }
  6136. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  6137. let params = [
  6138. {
  6139. uid: this.sStudent.userid,
  6140. cid: this.id,
  6141. stage: this.courseType,
  6142. task: this.taskCount,
  6143. tool: this.toolindex,
  6144. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  6145. type: 8,
  6146. },
  6147. ];
  6148. this.ajax
  6149. .post(this.$store.state.api + "addCourseWorks", params)
  6150. .then((res) => {
  6151. this.$message({
  6152. message: "提交成功",
  6153. type: "success",
  6154. });
  6155. this.askList = [];
  6156. this.dialogVisibleChoiceTeacher = false;
  6157. this.selectStudent();
  6158. this.selectSWorks();
  6159. this.selectSLook();
  6160. })
  6161. .catch((err) => {
  6162. this.$message.error("提交失败");
  6163. console.error(err);
  6164. });
  6165. },
  6166. addWork() {
  6167. if (this.studyJuri[0].content == "") {
  6168. this.$message.error("请将信息填写完整");
  6169. return;
  6170. } else if (this.studyJuri[0].cover.length == 0) {
  6171. this.$message.error("请将信息填写完整");
  6172. return;
  6173. } else if (this.studyJuri[0].upVedio.length == 0) {
  6174. this.$message.error("请将信息填写完整");
  6175. return;
  6176. }
  6177. if (this.isNoHomeWork) {
  6178. this.$confirm(
  6179. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  6180. "提示",
  6181. {
  6182. confirmButtonText: "确定",
  6183. cancelButtonText: "取消",
  6184. type: "warning",
  6185. }
  6186. )
  6187. .then(() => {
  6188. let params = [
  6189. {
  6190. uid: this.userid,
  6191. cid: this.id,
  6192. stage: this.courseType,
  6193. task: this.taskCount,
  6194. content: JSON.stringify(this.studyJuri),
  6195. },
  6196. ];
  6197. this.ajax
  6198. .post(this.$store.state.api + "addWorks", params)
  6199. .then((res) => {
  6200. this.$message({
  6201. message: "提交成功",
  6202. type: "success",
  6203. });
  6204. this.isNoHomeWork = true;
  6205. this.dialogVisible = false;
  6206. })
  6207. .catch((err) => {
  6208. this.$message.error("提交失败");
  6209. console.error(err);
  6210. });
  6211. })
  6212. .catch(() => { });
  6213. } else {
  6214. let params = [
  6215. {
  6216. uid: this.userid,
  6217. cid: this.id,
  6218. stage: this.courseType,
  6219. task: this.taskCount,
  6220. content: JSON.stringify(this.studyJuri),
  6221. },
  6222. ];
  6223. this.ajax
  6224. .post(this.$store.state.api + "addWorks", params)
  6225. .then((res) => {
  6226. this.$message({
  6227. message: "提交成功",
  6228. type: "success",
  6229. });
  6230. this.isNoHomeWork = true;
  6231. this.dialogVisible = false;
  6232. })
  6233. .catch((err) => {
  6234. this.$message.error("提交失败");
  6235. console.error(err);
  6236. });
  6237. }
  6238. },
  6239. selectCount() {
  6240. let params = {
  6241. cid: this.id,
  6242. chid: this.courseType,
  6243. uid: this.userid,
  6244. };
  6245. this.ajax
  6246. .get(this.$store.state.api + "selectToolsCount", params)
  6247. .then((res) => {
  6248. for (var i = 0; i < res.data[0].length; i++) {
  6249. if (res.data[0][i].tools == 1) {
  6250. this.wbCount = res.data[0][i].count;
  6251. } else if (res.data[0][i].tools == 2) {
  6252. this.wordCount = res.data[0][i].count;
  6253. } else if (res.data[0][i].tools == 3) {
  6254. this.mindCount = res.data[0][i].count;
  6255. } else if (res.data[0][i].tools == 4) {
  6256. this.askCount = res.data[0][i].count;
  6257. } else if (res.data[0][i].tools == 6) {
  6258. this.noteCount = res.data[0][i].count;
  6259. } else if (res.data[0][i].tools == 7) {
  6260. this.mindNetWorkCount = res.data[0][i].count;
  6261. } else if (res.data[0][i].tools == 8) {
  6262. this.libraryCount = res.data[0][i].count;
  6263. } else if (res.data[0][i].tools == 16) {
  6264. this.workCount = res.data[0][i].count;
  6265. } else if (res.data[0][i].tools == 10) {
  6266. this.timeCount = res.data[0][i].count;
  6267. } else if (res.data[0][i].tools == 15) {
  6268. this.answerCount = res.data[0][i].count;
  6269. } else if (res.data[0][i].tools == 18) {
  6270. this.trainCount = res.data[0][i].count;
  6271. }
  6272. }
  6273. })
  6274. .catch((err) => {
  6275. console.error(err);
  6276. });
  6277. },
  6278. openTools(t, i, index, c, sName) {
  6279. var z = JSON.parse(c);
  6280. this.noteName = sName;
  6281. if (t == 4) {
  6282. this.radio = [];
  6283. this.isAnswer = false;
  6284. let b = z[0].anwer;
  6285. this.radio = b;
  6286. this.askJson = z[0].askJson;
  6287. this.isAnswer = true;
  6288. this.dialogVisible5 = true;
  6289. } else if (t == 45) {
  6290. this.radio = [];
  6291. this.isAnswer = false;
  6292. let b = z[0].anwer;
  6293. this.radio = b;
  6294. this.testJson = z[0].testJson;
  6295. this.isAnswer = true;
  6296. this.dialogVisibleChoice = true;
  6297. }
  6298. // else if (t == 15) {
  6299. // this.answerQ = "";
  6300. // this.questionAnswer = "";
  6301. // this.answerQ = z[0].answerTitle;
  6302. // this.questionAnswer = z[0].answer;
  6303. // this.answerDialogVisible = true;
  6304. // }
  6305. },
  6306. fastText(p, t) {
  6307. if (t == 1) {
  6308. this.commentText += p;
  6309. } else {
  6310. this.eScore.eBzText += p;
  6311. }
  6312. },
  6313. addTools(t, i, index) {
  6314. var a = 0;
  6315. // this.taskCount = index;
  6316. this.toolindex = i;
  6317. if (t == 1) {
  6318. if (this.wbCount > 0) {
  6319. this.updateCount(this.wbCount, t);
  6320. } else {
  6321. this.wbCount++;
  6322. a = this.wbCount;
  6323. this.toolsCount(a, t);
  6324. }
  6325. window.parent.postMessage(
  6326. {
  6327. tools: "1E",
  6328. cid: this.id,
  6329. stage: this.courseType,
  6330. task: this.taskCount,
  6331. tool: i,
  6332. },
  6333. "*"
  6334. );
  6335. } else if (t == 2) {
  6336. if (this.wordCount > 0) {
  6337. this.updateCount(this.wordCount, t);
  6338. } else {
  6339. this.wordCount++;
  6340. a = this.wordCount;
  6341. this.toolsCount(a, t);
  6342. }
  6343. window.parent.postMessage({ tools: "2" }, "*");
  6344. } else if (t == 3) {
  6345. if (this.mindCount > 0) {
  6346. this.updateCount(this.mindCount, t);
  6347. } else {
  6348. this.mindCount++;
  6349. a = this.mindCount;
  6350. this.toolsCount(a, t);
  6351. }
  6352. window.parent.postMessage(
  6353. {
  6354. tools: "3E",
  6355. cid: this.id,
  6356. stage: this.courseType,
  6357. task: this.taskCount,
  6358. tool: i,
  6359. },
  6360. "*"
  6361. );
  6362. } else if (t == 4) {
  6363. this.radio = [];
  6364. this.noteName = "";
  6365. this.isAnswer = false;
  6366. if (this.askCount > 0) {
  6367. this.updateCount(this.askCount, t);
  6368. } else {
  6369. this.askCount++;
  6370. a = this.askCount;
  6371. this.toolsCount(a, t);
  6372. }
  6373. this.askJson.askJson =
  6374. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6375. index
  6376. ].toolChoose[i].askJson;
  6377. this.askJson.askTitle =
  6378. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6379. index
  6380. ].toolChoose[i].askTitle;
  6381. this.askJson.askCount =
  6382. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6383. index
  6384. ].toolChoose[i].askCount;
  6385. for (var k = 0; k < this.askJson.askJson.length; k++) {
  6386. if (this.askJson.askJson[k].type == "2") {
  6387. this.radio.push([]);
  6388. } else {
  6389. this.radio.push("");
  6390. }
  6391. }
  6392. this.dialogVisible5 = true;
  6393. // window.parent.postMessage({ tools: "4" }, "*");
  6394. } else if (t == 45) {
  6395. this.noteName = "";
  6396. this.radio = [];
  6397. this.isAnswer = false;
  6398. if (this.askCount > 0) {
  6399. this.updateCount(this.askCount, t);
  6400. } else {
  6401. this.askCount++;
  6402. a = this.askCount;
  6403. this.toolsCount(a, t);
  6404. }
  6405. this.testJson =
  6406. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6407. index
  6408. ].toolChoose[i].testJson;
  6409. for (var k = 0; k < this.testJson.testJson.length; k++) {
  6410. if (this.testJson.testJson[k].type == "2") {
  6411. this.radio.push([]);
  6412. } else {
  6413. this.radio.push("");
  6414. }
  6415. }
  6416. this.dialogVisibleChoice = true;
  6417. // window.parent.postMessage({ tools: "4" }, "*");
  6418. } else if (t == 5) {
  6419. if (this.scoreCount > 0) {
  6420. this.updateCount(this.scoreCount, t);
  6421. } else {
  6422. this.scoreCount++;
  6423. a = this.scoreCount;
  6424. this.toolsCount(a, t);
  6425. }
  6426. this.dialogVisible4 = true;
  6427. // window.parent.postMessage({ tools: "5" }, "*");
  6428. } else if (t == 6) {
  6429. if (this.noteCount > 0) {
  6430. this.updateCount(this.noteCount, t);
  6431. } else {
  6432. this.noteCount++;
  6433. a = this.noteCount;
  6434. this.toolsCount(a, t);
  6435. }
  6436. window.parent.postMessage(
  6437. {
  6438. tools: "6",
  6439. cid: this.id,
  6440. stage: this.courseType,
  6441. task: this.taskCount,
  6442. tool: i,
  6443. },
  6444. "*"
  6445. );
  6446. } else if (t == 7) {
  6447. if (this.mindNetWorkCount > 0) {
  6448. this.updateCount(this.mindNetWorkCount, t);
  6449. } else {
  6450. this.mindNetWorkCount++;
  6451. a = this.mindNetWorkCount;
  6452. this.toolsCount(a, t);
  6453. }
  6454. window.parent.postMessage(
  6455. {
  6456. tools: "7",
  6457. cid: this.id,
  6458. stage: this.courseType,
  6459. task: this.taskCount,
  6460. tool: i,
  6461. },
  6462. "*"
  6463. );
  6464. } else if (t == 16) {
  6465. if (this.workCount > 0) {
  6466. this.updateCount(this.workCount, t);
  6467. } else {
  6468. this.workCount++;
  6469. a = this.workCount;
  6470. this.toolsCount(a, t);
  6471. }
  6472. this.dialogVisible = true;
  6473. } else if (t == 50) {
  6474. if (this.tType == 2) {
  6475. this.$message.error("不支持学生使用");
  6476. return;
  6477. }
  6478. this.plworkFile = [];
  6479. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  6480. this.selectUploadStudent();
  6481. this.dialogVisiblePl = true;
  6482. } else if (t == 8) {
  6483. if (this.libraryCount > 0) {
  6484. this.updateCount(this.libraryCount, t);
  6485. } else {
  6486. this.libraryCount++;
  6487. a = this.libraryCount;
  6488. this.toolsCount(a, t);
  6489. }
  6490. window.parent.postMessage({ tools: "8" }, "*");
  6491. } else if (t == 17) {
  6492. if (this.libraryCount > 0) {
  6493. this.updateCount(this.libraryCount, t);
  6494. } else {
  6495. this.libraryCount++;
  6496. a = this.libraryCount;
  6497. this.toolsCount(a, t);
  6498. }
  6499. window.parent.postMessage({ tools: "17" }, "*");
  6500. } else if (t == 18) {
  6501. if (this.trainCount > 0) {
  6502. this.updateCount(this.trainCount, t);
  6503. } else {
  6504. this.trainCount++;
  6505. a = this.trainCount;
  6506. this.toolsCount(a, t);
  6507. }
  6508. window.parent.postMessage({ tools: "18" }, "*");
  6509. } else if (t == 10) {
  6510. if (this.timeCount > 0) {
  6511. this.updateCount(this.timeCount, t);
  6512. } else {
  6513. this.timeCount++;
  6514. a = this.timeCount;
  6515. this.toolsCount(a, t);
  6516. }
  6517. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  6518. .taskJson[index].toolChoose[i].preTime
  6519. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  6520. .toolChoose[i].preTime
  6521. : "";
  6522. this.timeDialogVisible = true;
  6523. } else if (t == 15) {
  6524. this.answerQ = "";
  6525. this.questionAnswer = "";
  6526. if (this.answerCount > 0) {
  6527. this.updateCount(this.answerCount, t);
  6528. } else {
  6529. this.answerCount++;
  6530. a = this.answerCount;
  6531. this.toolsCount(a, t);
  6532. }
  6533. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  6534. .taskJson[index].toolChoose[i].answerQ
  6535. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  6536. .toolChoose[i].answerQ
  6537. : "";
  6538. this.answerDialogVisible = true;
  6539. } else if (t == 21) {
  6540. window.parent.postMessage({ tools: "21" }, "*");
  6541. } else if (t == 22) {
  6542. window.parent.postMessage({ tools: "22" }, "*");
  6543. } else if (t == 23) {
  6544. window.parent.postMessage({ tools: "23" }, "*");
  6545. } else if (t == 24) {
  6546. window.parent.postMessage({ tools: "24" }, "*");
  6547. } else if (t == 25) {
  6548. window.parent.postMessage({ tools: "25" }, "*");
  6549. } else if (t == 31) {
  6550. window.parent.postMessage({ tools: "31" }, "*");
  6551. } else if (t == 28) {
  6552. window.parent.postMessage({ tools: "28" }, "*");
  6553. } else if (t == 37) {
  6554. window.parent.postMessage({ tools: "37" }, "*");
  6555. } else if (t == 38) {
  6556. window.parent.postMessage({ tools: "38" }, "*");
  6557. } else if (t == 39) {
  6558. window.parent.postMessage({ tools: "39" }, "*");
  6559. } else if (t == 32) {
  6560. window.parent.postMessage({ tools: "32" }, "*");
  6561. } else if (t == 57) {
  6562. window.parent.postMessage({ tools: "57" }, "*");
  6563. } else if (t == 58) {
  6564. window.parent.postMessage({ tools: "58" }, "*");
  6565. } else if (t == 59) {
  6566. window.parent.postMessage({ tools: "59" }, "*");
  6567. } else if (t == 60) {
  6568. window.parent.postMessage({ tools: "60" }, "*");
  6569. } else if (t == 61) {
  6570. window.parent.postMessage({ tools: "61" }, "*");
  6571. } else if (t == 63) {
  6572. window.parent.postMessage({ tools: "63" }, "*");
  6573. } else if (t == 26) {
  6574. window.parent.postMessage(
  6575. {
  6576. tools: "26",
  6577. cid: this.id,
  6578. stage: this.courseType,
  6579. task: this.taskCount,
  6580. tool: i,
  6581. },
  6582. "*"
  6583. );
  6584. } else if (t == 40) {
  6585. if (this.evalCount > 0) {
  6586. this.updateCount(this.evalCount, t);
  6587. } else {
  6588. this.evalCount++;
  6589. a = this.evalCount;
  6590. this.toolsCount(a, t);
  6591. }
  6592. this.eScore = { eBzText: "", eStar: [] };
  6593. if (this.worksStudent.length) {
  6594. for (var k = 0; k < this.worksStudent.length; k++) {
  6595. if (this.userid == this.worksStudent[k].userid) {
  6596. this.eScore = JSON.parse(this.worksStudent[k].works);
  6597. this.rateJson =
  6598. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6599. index
  6600. ].toolChoose[i].rateJson;
  6601. break;
  6602. } else {
  6603. this.rateJson =
  6604. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6605. index
  6606. ].toolChoose[i].rateJson;
  6607. }
  6608. }
  6609. } else {
  6610. this.rateJson =
  6611. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6612. index
  6613. ].toolChoose[i].rateJson;
  6614. }
  6615. this.isStar = false;
  6616. this.studentEvalDialogVisible = true;
  6617. } else if (t == 41) {
  6618. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6619. .taskJson[index].toolChoose[i].selectJson
  6620. ? JSON.parse(
  6621. JSON.stringify(
  6622. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6623. index
  6624. ].toolChoose[i].selectJson
  6625. )
  6626. )
  6627. : { url: "", select: [], answer: [] };
  6628. if (this.worksStudent.length) {
  6629. for (var k = 0; k < this.worksStudent.length; k++) {
  6630. if (this.userid == this.worksStudent[k].userid) {
  6631. var a = this.worksStudent[k].works.split(",");
  6632. for (var ki = 0; ki < a.length; ki++) {
  6633. a[ki] = parseInt(a[ki]);
  6634. }
  6635. this.selectAnswer = {
  6636. answer: a,
  6637. stu: this.worksStudent[k].sName,
  6638. };
  6639. break;
  6640. } else {
  6641. this.selectAnswer = { answer: [], stu: "" };
  6642. }
  6643. }
  6644. } else {
  6645. this.selectAnswer = { answer: [], stu: "" };
  6646. }
  6647. this.isSelect = false;
  6648. this.dialogVisibleSelect = true;
  6649. } else if (t == 44) {
  6650. window.parent.postMessage({ tools: "44" }, "*");
  6651. } else if (t == 47) {
  6652. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  6653. .taskJson[index].toolChoose[i].sentenceList
  6654. ? JSON.parse(
  6655. JSON.stringify(
  6656. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6657. index
  6658. ].toolChoose[i].sentenceList
  6659. )
  6660. )
  6661. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  6662. for (var q = 0; q < this.sentenceList.length; q++) {
  6663. this.sentenceList[q].chooseSenList = [];
  6664. this.sentenceList[q].addChangeSen = [];
  6665. this.sentenceList[q].addChangeSen = JSON.parse(
  6666. JSON.stringify(this.sentenceList[q].addSentence)
  6667. );
  6668. this.sentenceList[q].chooseSenList.length =
  6669. this.sentenceList[q].rightAnswer.length;
  6670. }
  6671. this.dialogVisibleSentence = true;
  6672. } else if (t == 48) {
  6673. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6674. .taskJson[index].toolChoose[i].tableJson
  6675. ? JSON.parse(
  6676. JSON.stringify(
  6677. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6678. index
  6679. ].toolChoose[i].tableJson
  6680. )
  6681. )
  6682. : { text: "" };
  6683. if (this.worksStudent.length) {
  6684. for (var k = 0; k < this.worksStudent.length; k++) {
  6685. if (this.userid == this.worksStudent[k].userid) {
  6686. this.tableJson = JSON.parse(this.worksStudent[k].works);
  6687. break;
  6688. }
  6689. }
  6690. }
  6691. this.dialogVisibleTable = true;
  6692. } else if (t == 52) {
  6693. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6694. .taskJson[index].toolChoose[i].wordJson
  6695. ? JSON.parse(
  6696. JSON.stringify(
  6697. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6698. index
  6699. ].toolChoose[i].wordJson
  6700. )
  6701. )
  6702. : { text: "" };
  6703. this.dialogVisibleWord = true;
  6704. } else if (t == 49) {
  6705. this.groupJson =
  6706. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6707. index
  6708. ].toolChoose[i].groupJson;
  6709. this.dialogVisibleGroup = true;
  6710. } else if (t == 62) {
  6711. this.videoJson =
  6712. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6713. index
  6714. ].toolChoose[i].videoJson;
  6715. this.dialogVisibleVideo = true;
  6716. }
  6717. },
  6718. teacherWorkSubmit(t, i, index) {
  6719. this.sTool = t;
  6720. this.toolindex = i;
  6721. if (this.tType !== "1" && this.tType !== "4") {
  6722. return;
  6723. }
  6724. if (t == 16 || t == 32 || t == 57 || t == 50) {
  6725. this.dialogVisibleWorks = true; //作业提交
  6726. } else if (t == 15) {
  6727. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  6728. .taskJson[index].toolChoose[i].answerQ
  6729. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  6730. .toolChoose[i].answerQ
  6731. : "";
  6732. this.questionAnswer = ''
  6733. this.answerDialogVisibleTeacher = true;//问答
  6734. } else if (t == 52) {
  6735. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6736. .taskJson[index].toolChoose[i].wordJson
  6737. ? JSON.parse(
  6738. JSON.stringify(
  6739. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6740. index
  6741. ].toolChoose[i].wordJson
  6742. )
  6743. )
  6744. : { text: "" };
  6745. this.dialogVisibleWordTeacher = true;//文档
  6746. } else if (t == 4) {
  6747. this.radio = [];
  6748. this.noteName = "";
  6749. this.isAnswer = false;
  6750. if (this.askCount > 0) {
  6751. this.updateCount(this.askCount, t);
  6752. } else {
  6753. this.askCount++;
  6754. a = this.askCount;
  6755. this.toolsCount(a, t);
  6756. }
  6757. if (!this.dialogVisible2) {
  6758. this.askJson.askJson =
  6759. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6760. index
  6761. ].toolChoose[i].askJson;
  6762. this.askJson.askTitle =
  6763. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6764. index
  6765. ].toolChoose[i].askTitle;
  6766. this.askJson.askCount =
  6767. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6768. index
  6769. ].toolChoose[i].askCount;
  6770. } else {
  6771. this.askJson.askJson = this.chapTools.askJson.askJson;
  6772. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  6773. this.askJson.askCount = this.chapTools.askJson.askCount;
  6774. }
  6775. this.dialogVisible5Teacher = true;
  6776. } else if (t == 45) {
  6777. this.noteName = "";
  6778. this.radio = [];
  6779. this.isAnswer = false;
  6780. if (this.askCount > 0) {
  6781. this.updateCount(this.askCount, t);
  6782. } else {
  6783. this.askCount++;
  6784. a = this.askCount;
  6785. this.toolsCount(a, t);
  6786. }
  6787. this.testJson =
  6788. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6789. index
  6790. ].toolChoose[i].testJson;
  6791. for (var k = 0; k < this.testJson.testJson.length; k++) {
  6792. if (this.testJson.testJson[k].type == "2") {
  6793. this.radio.push([]);
  6794. } else {
  6795. this.radio.push("");
  6796. }
  6797. }
  6798. this.dialogVisibleChoiceTeacher = true;
  6799. } else if (t == 41) {
  6800. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6801. .taskJson[index].toolChoose[i].selectJson
  6802. ? JSON.parse(
  6803. JSON.stringify(
  6804. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6805. index
  6806. ].toolChoose[i].selectJson
  6807. )
  6808. )
  6809. : { url: "", select: [], answer: [] };
  6810. if (this.worksStudent.length) {
  6811. for (var k = 0; k < this.worksStudent.length; k++) {
  6812. if (this.sStudent.userid == this.worksStudent[k].userid) {
  6813. var a = this.worksStudent[k].works.split(",");
  6814. for (var ki = 0; ki < a.length; ki++) {
  6815. a[ki] = parseInt(a[ki]);
  6816. }
  6817. this.selectAnswer = {
  6818. answer: a,
  6819. stu: this.worksStudent[k].sName,
  6820. };
  6821. break;
  6822. } else {
  6823. this.selectAnswer = { answer: [], stu: "" };
  6824. }
  6825. }
  6826. } else {
  6827. this.selectAnswer = { answer: [], stu: "" };
  6828. }
  6829. this.isSelect = false;
  6830. this.dialogVisibleSelectTeacher = true;
  6831. } else if (t == 47) {
  6832. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  6833. .taskJson[index].toolChoose[i].sentenceList
  6834. ? JSON.parse(
  6835. JSON.stringify(
  6836. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6837. index
  6838. ].toolChoose[i].sentenceList
  6839. )
  6840. )
  6841. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  6842. for (var q = 0; q < this.sentenceList.length; q++) {
  6843. this.sentenceList[q].chooseSenList = [];
  6844. this.sentenceList[q].addChangeSen = [];
  6845. this.sentenceList[q].addChangeSen = JSON.parse(
  6846. JSON.stringify(this.sentenceList[q].addSentence)
  6847. );
  6848. this.sentenceList[q].chooseSenList.length =
  6849. this.sentenceList[q].rightAnswer.length;
  6850. }
  6851. this.dialogVisibleSentenceTeacher = true;
  6852. } else if (t == 48) {
  6853. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6854. .taskJson[index].toolChoose[i].tableJson
  6855. ? JSON.parse(
  6856. JSON.stringify(
  6857. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6858. index
  6859. ].toolChoose[i].tableJson
  6860. )
  6861. )
  6862. : { text: "" };
  6863. if (this.worksStudent.length) {
  6864. for (var k = 0; k < this.worksStudent.length; k++) {
  6865. if (this.sStudent.userid == this.worksStudent[k].userid) {
  6866. this.tableJson = JSON.parse(this.worksStudent[k].works);
  6867. break;
  6868. }
  6869. }
  6870. }
  6871. this.dialogVisibleTableTeacher = true;
  6872. } else if (t == 40) {
  6873. if (this.evalCount > 0) {
  6874. this.updateCount(this.evalCount, t);
  6875. } else {
  6876. this.evalCount++;
  6877. a = this.evalCount;
  6878. this.toolsCount(a, t);
  6879. }
  6880. this.eScore = { eBzText: "", eStar: [] };
  6881. if (this.worksStudent.length) {
  6882. for (var k = 0; k < this.worksStudent.length; k++) {
  6883. if (this.sStudent.userid == this.worksStudent[k].userid) {
  6884. this.eScore = JSON.parse(this.worksStudent[k].works);
  6885. this.rateJson =
  6886. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6887. index
  6888. ].toolChoose[i].rateJson;
  6889. break;
  6890. } else {
  6891. this.rateJson =
  6892. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6893. index
  6894. ].toolChoose[i].rateJson;
  6895. }
  6896. }
  6897. } else {
  6898. this.rateJson =
  6899. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6900. index
  6901. ].toolChoose[i].rateJson;
  6902. }
  6903. this.isStar = false;
  6904. this.studentEvalDialogVisibleTeacher = true;
  6905. } else if (t == 3 || t == 1 || t == 7) {
  6906. window.parent.postMessage(
  6907. {
  6908. tools: t + 'teacherE',
  6909. cid: this.id,
  6910. stage: this.courseType,
  6911. task: this.taskCount,
  6912. tool: i,
  6913. student: this.sStudent,
  6914. },
  6915. "*"
  6916. );
  6917. }
  6918. },
  6919. openStudentTool(s) {
  6920. this.sStudent = s;
  6921. this.dialogVisibleStudentTool = true;
  6922. },
  6923. setRightAnswer(s, i, j) {
  6924. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  6925. if (
  6926. this.sentenceList[i].chooseSenList[q] == undefined ||
  6927. this.sentenceList[i].chooseSenList[q] == ""
  6928. ) {
  6929. this.sentenceList[i].chooseSenList[q] = s;
  6930. this.sentenceList[i].addChangeSen[j] = "";
  6931. break;
  6932. }
  6933. }
  6934. this.$forceUpdate();
  6935. },
  6936. returnCard(r, i, j) {
  6937. var a = this.sentenceList[i].addSentence.indexOf(r);
  6938. this.sentenceList[i].chooseSenList[j] = "";
  6939. this.sentenceList[i].addChangeSen[a] = r;
  6940. this.$forceUpdate();
  6941. },
  6942. // addSentenceTool() {
  6943. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6944. // this.taskCount
  6945. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  6946. // this.sentenceList = [
  6947. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  6948. // ];
  6949. // this.dialogVisibleSentence = false;
  6950. // },
  6951. toolsCount(a, t) {
  6952. let params = {
  6953. cid: this.id,
  6954. chid: this.courseType,
  6955. uid: this.userid,
  6956. tid: t,
  6957. count: a,
  6958. };
  6959. this.ajax
  6960. .get(this.$store.state.api + "insertToolsCount", params)
  6961. .then((res) => {
  6962. this.selectCount();
  6963. })
  6964. .catch((err) => {
  6965. console.error(err);
  6966. });
  6967. },
  6968. updateCount(c, t) {
  6969. c++;
  6970. let params = {
  6971. cid: this.id,
  6972. chid: this.courseType,
  6973. uid: this.userid,
  6974. tid: t,
  6975. count: c,
  6976. };
  6977. this.ajax
  6978. .get(this.$store.state.api + "updateToolsCount", params)
  6979. .then((res) => {
  6980. this.selectCount();
  6981. })
  6982. .catch((err) => {
  6983. console.error(err);
  6984. });
  6985. },
  6986. checkEva() {
  6987. if (this.evalua != "") {
  6988. for (var i = 0; i < this.evaJuri.length; i++) {
  6989. if (this.evalua == this.evaJuri[i].id) {
  6990. this.eTitle = this.evaJuri[i].title;
  6991. this.eJson = JSON.parse(this.evaJuri[i].content);
  6992. }
  6993. }
  6994. this.$forceUpdate();
  6995. setTimeout(() => {
  6996. this.setMindData();
  6997. }, 0);
  6998. }
  6999. },
  7000. selectEva() {
  7001. let params = {
  7002. oid: this.oid,
  7003. };
  7004. this.ajax
  7005. .get(this.$store.state.api + "selectAllEvaluation", params)
  7006. .then((res) => {
  7007. this.evaJuri = res.data[0];
  7008. })
  7009. .catch((err) => {
  7010. console.error(err);
  7011. });
  7012. },
  7013. setMindData() {
  7014. this.data.data = [];
  7015. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  7016. let _eJson = Object.keys(this.eJson);
  7017. let _e = this.eJson;
  7018. for (let i = 0; i < _eJson.length; i++) {
  7019. let element = _e[_eJson[i]];
  7020. this.data.data.push({
  7021. id: element.id,
  7022. parentid: "root",
  7023. topic: element.name,
  7024. });
  7025. let _eJsonc = Object.keys(element.child);
  7026. let _e2 = element.child;
  7027. for (let j = 0; j < _eJsonc.length; j++) {
  7028. let _ec = _e2[_eJsonc[j]];
  7029. this.data.data.push({
  7030. id: _ec.id,
  7031. parentid: element.id,
  7032. topic: _ec.name,
  7033. });
  7034. let _eJsonz = Object.keys(_ec.child);
  7035. let _e3 = _ec.child;
  7036. for (let z = 0; z < _eJsonz.length; z++) {
  7037. let _ez = _e3[_eJsonz[z]];
  7038. this.data.data.push({
  7039. id: _ez.id,
  7040. parentid: _ec.id,
  7041. topic: _ez.name,
  7042. });
  7043. }
  7044. }
  7045. }
  7046. this.$forceUpdate();
  7047. },
  7048. checkFileFull(type, url) {
  7049. this.fullDialogVisible = true;
  7050. this.fulltype = type;
  7051. this.fullUrl = url;
  7052. },
  7053. openSname(n, id, i) {
  7054. this.snameWid = id;
  7055. this.worksSName = n;
  7056. this.toolindex = i
  7057. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  7058. this.selectUploadStudent()
  7059. this.dialogVisibleSname = true;
  7060. },
  7061. updateName() {
  7062. let params = {
  7063. n: this.worksSName,
  7064. cid: this.snameWid,
  7065. };
  7066. this.ajax
  7067. .get(this.$store.state.api + "updateCourseWorksName", params)
  7068. .then((res) => {
  7069. this.$message({
  7070. message: "修改成功",
  7071. type: "success",
  7072. });
  7073. this.dialogVisibleSname = false;
  7074. this.getCourseDetail();
  7075. this.snameWid = "";
  7076. this.worksSName = "";
  7077. })
  7078. .catch((err) => {
  7079. console.error(err);
  7080. });
  7081. },
  7082. downloadFile2(f) {
  7083. let url = f.url
  7084. let _this = this;
  7085. let _url = "";
  7086. if (
  7087. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  7088. ) {
  7089. _url = url.split(
  7090. "https://view.officeapps.live.com/op/view.aspx?src="
  7091. )[1];
  7092. } else {
  7093. _url = url;
  7094. }
  7095. const x = new XMLHttpRequest();
  7096. x.open("GET", _url, true);
  7097. x.responseType = "blob";
  7098. const loading = _this.$loading.service({
  7099. background: "rgba(255, 255, 255, 0.7)",
  7100. target: document.body,
  7101. text: "文件加载中...",
  7102. });
  7103. // _this.$message.success("文件下载中...");
  7104. x.onload = function (e) {
  7105. loading.close();
  7106. let content = x.response;
  7107. let elink = document.createElement("a");
  7108. elink.download = f.name;
  7109. elink.style.display = "none";
  7110. let blob = new Blob([content]);
  7111. elink.href = URL.createObjectURL(blob);
  7112. document.body.appendChild(elink);
  7113. elink.click();
  7114. document.body.removeChild(elink);
  7115. };
  7116. x.send();
  7117. },
  7118. downloadFile(url) {
  7119. let _this = this;
  7120. let _url = "";
  7121. if (
  7122. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  7123. ) {
  7124. _url = url.split(
  7125. "https://view.officeapps.live.com/op/view.aspx?src="
  7126. )[1];
  7127. } else {
  7128. _url = url;
  7129. }
  7130. const x = new XMLHttpRequest();
  7131. x.open("GET", _url, true);
  7132. x.responseType = "blob";
  7133. const loading = _this.$loading.service({
  7134. background: "rgba(255, 255, 255, 0.7)",
  7135. target: document.body,
  7136. text: "文件加载中...",
  7137. });
  7138. // _this.$message.success("文件下载中...");
  7139. x.onload = function (e) {
  7140. loading.close();
  7141. // const url = window.URL.createObjectURL(x.response);
  7142. // const a = document.createElement("a");
  7143. // a.href = url;
  7144. // a.target = "_blank";
  7145. // a.download = url;
  7146. // a.click();
  7147. // a.remove();
  7148. let content = x.response;
  7149. let elink = document.createElement("a");
  7150. elink.download = decodeURI(
  7151. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  7152. );
  7153. elink.style.display = "none";
  7154. let blob = new Blob([content]);
  7155. elink.href = URL.createObjectURL(blob);
  7156. document.body.appendChild(elink);
  7157. elink.click();
  7158. document.body.removeChild(elink);
  7159. };
  7160. x.send();
  7161. },
  7162. openLine(url) {
  7163. window.open(url);
  7164. },
  7165. resize() {
  7166. if (document.getElementsByClassName("box_course").length) {
  7167. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  7168. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  7169. document.getElementsByClassName("navBox")[0].style.height =
  7170. a - 40 + "px";
  7171. }
  7172. this.Stbodywidth =
  7173. document.getElementsByClassName("student_body").length &&
  7174. document.getElementsByClassName("student_body")[0].offsetWidth;
  7175. },
  7176. closeDraw() {
  7177. this.bg = null;
  7178. this.drawShow = false;
  7179. },
  7180. showPicturePaint(url) {
  7181. let params = {
  7182. img: url,
  7183. };
  7184. this.ajax
  7185. .get(this.$store.state.api + "imgToBase64", params)
  7186. .then((res) => {
  7187. console.log(res);
  7188. this.drawShow = true;
  7189. this.bg = res.data[0].img;
  7190. })
  7191. .catch((err) => {
  7192. console.error(err);
  7193. });
  7194. },
  7195. addImgDraw(base64) {
  7196. let file = { name: "批注图.png" };
  7197. let img = this.dataUrlToFile(base64, file);
  7198. this.beforeUpload1(img, 5);
  7199. },
  7200. addImgDrawImG(url) {
  7201. // console.log(url);
  7202. let params = [
  7203. {
  7204. wid: this.commentDetail.wid,
  7205. img: url,
  7206. },
  7207. ];
  7208. this.ajax
  7209. .post(this.$store.state.api + "updateCourseWorks", params)
  7210. .then((res) => {
  7211. this.$message({
  7212. message: "提交成功",
  7213. type: "success",
  7214. });
  7215. this.drawShow = false;
  7216. this.bg = "";
  7217. this.selectSWorks();
  7218. this.selectStudent();
  7219. })
  7220. .catch((err) => {
  7221. this.$message.error("提交失败");
  7222. console.error(err);
  7223. });
  7224. },
  7225. deletePicturePaint() {
  7226. this.$confirm("确定删除此批注吗?", "提示", {
  7227. confirmButtonText: "确定",
  7228. cancelButtonText: "取消",
  7229. type: "warning",
  7230. })
  7231. .then(() => {
  7232. let params = [
  7233. {
  7234. wid: this.commentDetail.wid,
  7235. img: "",
  7236. },
  7237. ];
  7238. this.ajax
  7239. .post(this.$store.state.api + "updateCourseWorks", params)
  7240. .then((res) => {
  7241. this.$message({
  7242. message: "删除成功",
  7243. type: "success",
  7244. });
  7245. this.selectSWorks();
  7246. this.selectStudent();
  7247. })
  7248. .catch((err) => {
  7249. this.$message.error("删除失败");
  7250. console.error(err);
  7251. });
  7252. })
  7253. .catch(() => { });
  7254. },
  7255. getAudioVideo(constraintsData) {
  7256. if (navigator.mediaDevices === undefined) {
  7257. navigator.mediaDevices = {};
  7258. }
  7259. if (navigator.mediaDevices.getUserMedia === undefined) {
  7260. navigator.mediaDevices.getUserMedia = function (constraints) {
  7261. // 首先,如果有getUserMedia的话,就获得它
  7262. var getUserMedia =
  7263. navigator.getUserMedia ||
  7264. navigator.webkitGetUserMedia ||
  7265. navigator.mozGetUserMedia ||
  7266. navigator.msGetUserMedia;
  7267. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  7268. if (!getUserMedia) {
  7269. return Promise.reject({ code: 404 });
  7270. }
  7271. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  7272. return new Promise(function (resolve, reject) {
  7273. getUserMedia.call(navigator, constraints, resolve, reject);
  7274. });
  7275. };
  7276. }
  7277. return navigator.mediaDevices.getUserMedia(constraintsData);
  7278. },
  7279. /**
  7280. * 开始录制
  7281. */
  7282. startRecording(callback) {
  7283. let _function = (screenStream) => {
  7284. this.addStreamStopListener(screenStream, () => {
  7285. console.log("流停止监听");
  7286. this.stopRecording();
  7287. this.$emit("streamStop", {});
  7288. // this.stopRecording();
  7289. });
  7290. var options = {
  7291. type: "video",
  7292. mimeType: "video/webm",
  7293. disableLogs: false,
  7294. getNativeBlob: false, // enable it for longer recordings
  7295. ignoreMutedMedia: false,
  7296. };
  7297. // this.video.srcObject = screenStream;
  7298. this.recorder = RecordRTC(screenStream, options);
  7299. this.recorder.startRecording();
  7300. this.recorder.screen = screenStream;
  7301. this.videoStart = true;
  7302. // callback(true);
  7303. };
  7304. this.getAudioVideo({ audio: true })
  7305. .then((res) => {
  7306. this.captureScreen(_function, true);
  7307. console.log("已点击允许,开启成功");
  7308. })
  7309. .catch((err) => {
  7310. // console.log('浏览器不支持,请更换浏览器')
  7311. // } else {
  7312. this.captureScreen(_function, false);
  7313. console.log("请检查是否存在麦克风");
  7314. });
  7315. },
  7316. /**
  7317. * 停止录制
  7318. */
  7319. stopRecording(callback) {
  7320. this.recorder.stopRecording(() => {
  7321. // this.video.src = this.video.srcObject = null;
  7322. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  7323. const url = URL.createObjectURL(this.recorder.getBlob());
  7324. const a = document.createElement("a"); //this.fileName+
  7325. let videoFile = new File(
  7326. [this.recorder.getBlob()],
  7327. this.courseDetail.title + "录屏.mp4",
  7328. {
  7329. type: "video/mp4",
  7330. }
  7331. );
  7332. let downloadUrl = URL.createObjectURL(videoFile);
  7333. document.body.appendChild(a);
  7334. a.style.display = "none";
  7335. a.href = url;
  7336. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  7337. a.click();
  7338. this.recorder.screen.stop();
  7339. this.recorder.destroy();
  7340. this.recorder = null;
  7341. this.videoStart = false;
  7342. // callback(false);
  7343. });
  7344. },
  7345. //初始化
  7346. captureScreen(callback, type) {
  7347. if (navigator.getDisplayMedia) {
  7348. //录制结束,文件下载
  7349. navigator
  7350. .getDisplayMedia({
  7351. video: true,
  7352. })
  7353. .then((screenStream) => {
  7354. if (type) {
  7355. navigator.mediaDevices
  7356. .getUserMedia({ audio: true })
  7357. .then((mic) => {
  7358. screenStream.addTrack(mic.getTracks()[0]);
  7359. callback(screenStream);
  7360. });
  7361. } else {
  7362. callback(screenStream);
  7363. }
  7364. })
  7365. .catch(function (error) {
  7366. console.log("error", error);
  7367. });
  7368. } else if (navigator.mediaDevices.getDisplayMedia) {
  7369. navigator.mediaDevices
  7370. .getDisplayMedia({
  7371. video: true,
  7372. })
  7373. .then((screenStream) => {
  7374. if (type) {
  7375. navigator.mediaDevices
  7376. .getUserMedia({ audio: true })
  7377. .then((mic) => {
  7378. screenStream.addTrack(mic.getTracks()[0]);
  7379. callback(screenStream);
  7380. });
  7381. } else {
  7382. callback(screenStream);
  7383. }
  7384. })
  7385. .catch(function (error) {
  7386. console.log("error", error);
  7387. });
  7388. } else {
  7389. var error = "getDisplayMedia API are not supported in this browser.";
  7390. console.log("error", error);
  7391. alert(error);
  7392. }
  7393. },
  7394. //流监听
  7395. addStreamStopListener(stream, callback) {
  7396. stream.addEventListener(
  7397. "ended",
  7398. function () {
  7399. callback();
  7400. callback = function () { };
  7401. },
  7402. false
  7403. );
  7404. stream.addEventListener(
  7405. "inactive",
  7406. function () {
  7407. callback();
  7408. callback = function () { };
  7409. },
  7410. false
  7411. );
  7412. stream.getTracks().forEach(function (track) {
  7413. track.addEventListener(
  7414. "ended",
  7415. function () {
  7416. callback();
  7417. callback = function () { };
  7418. },
  7419. false
  7420. );
  7421. track.addEventListener(
  7422. "inactive",
  7423. function () {
  7424. callback();
  7425. callback = function () { };
  7426. },
  7427. false
  7428. );
  7429. });
  7430. },
  7431. updateGroup() {
  7432. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  7433. this.dialogVisibleGroup2 = true;
  7434. },
  7435. updateGroupJson() {
  7436. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  7437. if (
  7438. this.groupStudentUid[this.toolindex][i].length >
  7439. this.groupJson2.number
  7440. ) {
  7441. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  7442. return;
  7443. }
  7444. }
  7445. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  7446. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7447. this.taskCount
  7448. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  7449. let params = [
  7450. {
  7451. cid: this.id,
  7452. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  7453. uid: this.userid,
  7454. unitIndex: this.courseType,
  7455. },
  7456. ];
  7457. this.ajax
  7458. .post(this.$store.state.api + "updateWorkNew4", params)
  7459. .then((res) => {
  7460. this.$message.success("设置成功");
  7461. this.getCourseDetail(2);
  7462. this.dialogVisibleGroup2 = false;
  7463. this.groupJson2 = {};
  7464. this.$forceUpdate();
  7465. })
  7466. .catch((err) => {
  7467. this.$message.error("网络不佳");
  7468. console.error(err);
  7469. });
  7470. },
  7471. lockChair() {
  7472. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  7473. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  7474. this.updateGroupJson();
  7475. },
  7476. selectGroup(index) {
  7477. this.getCourseDetail(2, index);
  7478. },
  7479. joinGroup(index) {
  7480. if (this.groupJson.islock == 2) {
  7481. this.$message.error("位置已被锁定,无法加入");
  7482. return;
  7483. }
  7484. if (
  7485. this.groupStudent[this.toolindex][index].length >
  7486. this.groupJson.number ||
  7487. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  7488. ) {
  7489. this.$message.error("位置已满,无法加入");
  7490. return;
  7491. }
  7492. let params = [
  7493. {
  7494. cid: this.id,
  7495. stage: this.courseType,
  7496. task: this.taskCount,
  7497. tool: this.toolindex,
  7498. g: index,
  7499. uid: this.userid,
  7500. },
  7501. ];
  7502. this.ajax
  7503. .post(this.$store.state.api + "joinGroup", params)
  7504. .then((res) => {
  7505. this.$message.success("加入成功");
  7506. this.getCourseDetail();
  7507. })
  7508. .catch((err) => {
  7509. this.$message.error("网络不佳");
  7510. console.error(err);
  7511. });
  7512. },
  7513. exitGroup(id) {
  7514. if (this.groupJson.islock == 2) {
  7515. this.$message.error("位置已被锁定,无法退出");
  7516. return;
  7517. }
  7518. let params = [
  7519. {
  7520. gid: id,
  7521. },
  7522. ];
  7523. this.ajax
  7524. .post(this.$store.state.api + "exitGroup", params)
  7525. .then((res) => {
  7526. this.$message.success("退出成功");
  7527. this.getCourseDetail();
  7528. })
  7529. .catch((err) => {
  7530. this.$message.error("网络不佳");
  7531. console.error(err);
  7532. });
  7533. },
  7534. groupUpload(index, task, gindex) {
  7535. this.taskCount = task;
  7536. this.toolindex = index;
  7537. this.groupIndex = gindex;
  7538. this.dialogVisibleGroupWork = true;
  7539. },
  7540. updateGroupChair(user) {
  7541. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  7542. el.label = index;
  7543. return index != user.group;
  7544. });
  7545. this.updateGroupUser = user;
  7546. this.dialogVisibleUpdateGroup = true;
  7547. },
  7548. updateChair() {
  7549. if (
  7550. this.groupStudent[this.toolindex][this.checkChair].length >
  7551. this.groupJson.number ||
  7552. this.groupStudent[this.toolindex][this.checkChair].length ==
  7553. this.groupJson.number
  7554. ) {
  7555. this.$message.error("位置已满,无法加入");
  7556. return;
  7557. }
  7558. let params = [
  7559. {
  7560. cid: this.id,
  7561. stage: this.courseType,
  7562. task: this.taskCount,
  7563. tool: this.toolindex,
  7564. g: this.checkChair,
  7565. uid: this.updateGroupUser.userid,
  7566. },
  7567. ];
  7568. this.ajax
  7569. .post(this.$store.state.api + "joinGroup", params)
  7570. .then((res) => {
  7571. this.$message.success("修改成功");
  7572. this.updateGroupUser = {};
  7573. this.checkChair = "";
  7574. this.updateGroupArray = {};
  7575. this.dialogVisibleUpdateGroup = false;
  7576. this.getCourseDetail();
  7577. })
  7578. .catch((err) => {
  7579. this.$message.error("网络不佳");
  7580. console.error(err);
  7581. });
  7582. },
  7583. deleteGroupChair(gindex) {
  7584. this.checkDeleteGroup = [];
  7585. this.deleteGroupUser = JSON.parse(
  7586. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  7587. );
  7588. this.deleteGroupArray = this.groupJson.group[gindex];
  7589. this.groupIndex = gindex;
  7590. this.dialogVisibleDeleteGroup = true;
  7591. },
  7592. async deleteChair() {
  7593. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  7594. const gid =
  7595. this.groupStudent[this.toolindex][this.groupIndex][
  7596. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  7597. this.checkDeleteGroup[i]
  7598. )
  7599. ];
  7600. let params = [
  7601. {
  7602. gid: gid.id,
  7603. },
  7604. ];
  7605. var a = await this.deleteChairA(params);
  7606. if (i == this.checkDeleteGroup.length - 1) {
  7607. this.$message.success("退出成功");
  7608. this.dialogVisibleDeleteGroup = false;
  7609. this.deleteGroupUser = [];
  7610. this.deleteGroupArray = {};
  7611. this.groupIndex = "";
  7612. this.checkDeleteGroup = [];
  7613. this.getCourseDetail();
  7614. }
  7615. }
  7616. },
  7617. deleteChairA(params) {
  7618. return new Promise((resolve, reject) => {
  7619. this.ajax
  7620. .post(this.$store.state.api + "exitGroup", params)
  7621. .then((res) => {
  7622. resolve(1);
  7623. })
  7624. .catch((err) => {
  7625. this.$message.error("网络不佳");
  7626. console.error(err);
  7627. });
  7628. });
  7629. },
  7630. contract(i) {
  7631. if (this.isCloseList.isClose == 0) {
  7632. this.isCloseList.isClose = 1;
  7633. } else {
  7634. this.isCloseList.isClose = 0;
  7635. }
  7636. this.$forceUpdate();
  7637. },
  7638. },
  7639. directives: {
  7640. // 使用局部注册指令的方式
  7641. resize: {
  7642. // 指令的名称
  7643. bind(el, binding) {
  7644. // el为绑定的元素,binding为绑定给指令的对象
  7645. let width = "",
  7646. height = "";
  7647. function isReize() {
  7648. const style = document.defaultView.getComputedStyle(el);
  7649. if (width !== style.width || height !== style.height) {
  7650. binding.value(); // 关键
  7651. }
  7652. width = style.width;
  7653. height = style.height;
  7654. }
  7655. el.__vueSetInterval__ = setInterval(isReize, 300);
  7656. },
  7657. unbind(el) {
  7658. clearInterval(el.__vueSetInterval__);
  7659. },
  7660. },
  7661. },
  7662. beforeDestroy() {
  7663. window.onresize = null;
  7664. clearInterval(this.timer);
  7665. this.timer = null;
  7666. clearInterval(this.opertimer);
  7667. this.opertimer = null;
  7668. },
  7669. computed: {
  7670. contentConvent() {
  7671. return function (c) {
  7672. return c
  7673. ? c
  7674. .replaceAll(/\r\n/g, "<br/>")
  7675. .replaceAll(/\n/g, "<br/>")
  7676. .replaceAll(/\s/g, " &nbsp")
  7677. : "";
  7678. };
  7679. },
  7680. checkUpload() {
  7681. return function () {
  7682. var studentK = [];
  7683. if (this.plworkFile.length > 0) {
  7684. for (var z = 0; z < this.plworkFile.length; z++) {
  7685. studentK.push(this.plworkFile[z].username);
  7686. }
  7687. studentK = studentK.join(",");
  7688. }
  7689. var a = this.uploadStudentJuri.filter((el) => {
  7690. return studentK.indexOf(el.userid) == -1
  7691. });
  7692. return a
  7693. }
  7694. }
  7695. },
  7696. mounted() {
  7697. if (this.screenType == 2) {
  7698. window.parent.postMessage({ allScreen: 4 }, "*");
  7699. } else if (this.screenType == 3) {
  7700. window.parent.postMessage({ allScreen: 5 }, "*");
  7701. } else if (this.screenType == 1) {
  7702. window.parent.postMessage({ allScreen: 6 }, "*");
  7703. }
  7704. this.setOperationTime();
  7705. this.selectEva();
  7706. this.getCourseDetail();
  7707. this.selectCount();
  7708. this.getHomeWork();
  7709. this.toolIndex = null
  7710. this.contentDialog = true;
  7711. this.setContent2(true)
  7712. if (this.tType == 4) {
  7713. this.pzDialog = true;
  7714. this.selectPz();
  7715. }
  7716. document.scrollingElement.scrollTop = 0;
  7717. window.addEventListener("resize", () => {
  7718. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  7719. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  7720. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  7721. });
  7722. let _this = this;
  7723. setTimeout(() => {
  7724. // _this.vedioTime = [];
  7725. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  7726. // _this.vedioTime[i] = document.getElementsByClassName(
  7727. // "vjs-duration-display"
  7728. // )[i].textContent;
  7729. // }
  7730. }, 1000);
  7731. },
  7732. };
  7733. </script>
  7734. <style scoped>
  7735. @media screen and (max-width: 1280px) {
  7736. /* .courseIndex > div:first-child(2) {
  7737. width: 15% !important;
  7738. } */
  7739. /* .navText {
  7740. width: 120px !important;
  7741. } */
  7742. .evaCss {
  7743. flex-direction: column !important;
  7744. align-items: center !important;
  7745. }
  7746. .dialog_diy1>>>.el-dialog {
  7747. width: 100% !important;
  7748. }
  7749. .rightWidthCss {
  7750. width: 100% !important;
  7751. }
  7752. .dialog_diy3>>>.el-dialog {
  7753. width: 100% !important;
  7754. }
  7755. /* .textTitle >>> .el-form-item__label {
  7756. width: 150px !important;
  7757. } */
  7758. }
  7759. .evaCssMax {
  7760. flex-direction: column !important;
  7761. align-items: center !important;
  7762. }
  7763. .dialog_diy>>>.el-dialog {
  7764. margin-top: 10vh !important;
  7765. }
  7766. .body_student {
  7767. width: 77%;
  7768. height: 100%;
  7769. position: absolute;
  7770. left: 22%;
  7771. top: 0;
  7772. }
  7773. .student_head {
  7774. width: 100%;
  7775. margin: 0 auto;
  7776. padding-bottom: 20px;
  7777. display: flex;
  7778. flex-direction: column;
  7779. flex-wrap: nowrap;
  7780. align-items: flex-start;
  7781. justify-content: flex-start;
  7782. }
  7783. .pb_left {
  7784. width: 20%;
  7785. margin-right: 10px;
  7786. background: rgb(255, 255, 255);
  7787. padding-right: 10px;
  7788. position: fixed;
  7789. height: 100%;
  7790. }
  7791. .wheel>img,
  7792. .project>img,
  7793. .star>img,
  7794. .evaluate>img,
  7795. .up_photo>img,
  7796. .chapter_add>img,
  7797. .deleteWord>img,
  7798. .question>img,
  7799. .homework>img {
  7800. width: 100%;
  7801. height: 100%;
  7802. }
  7803. .upCover>img {
  7804. width: 131px;
  7805. height: 69px;
  7806. object-fit: cover;
  7807. }
  7808. .upCover {
  7809. width: calc(100% / 3.5);
  7810. position: relative;
  7811. margin: 0 15px 10px 0;
  7812. display: flex;
  7813. flex-direction: column;
  7814. flex-wrap: nowrap;
  7815. justify-content: center;
  7816. align-content: center;
  7817. align-items: center;
  7818. height: fit-content;
  7819. }
  7820. .upCover2 {
  7821. width: 100%;
  7822. position: relative;
  7823. margin: 0 15px 10px 0;
  7824. display: flex;
  7825. flex-direction: column;
  7826. flex-wrap: nowrap;
  7827. justify-content: center;
  7828. align-content: center;
  7829. align-items: center;
  7830. }
  7831. .upCover2>img {
  7832. width: 100%;
  7833. height: 90px;
  7834. object-fit: contain;
  7835. }
  7836. .chapter_add {
  7837. width: 120px;
  7838. position: relative;
  7839. text-align: center;
  7840. }
  7841. .isAddThings {
  7842. margin-top: 20px;
  7843. position: relative;
  7844. text-align: center;
  7845. background: #f7f8fa;
  7846. height: 90px;
  7847. width: 90px;
  7848. display: flex;
  7849. flex-direction: column;
  7850. justify-content: center;
  7851. }
  7852. .deleteWord {
  7853. width: 22px;
  7854. height: 22px;
  7855. position: absolute;
  7856. right: -5px;
  7857. top: -5px;
  7858. cursor: pointer;
  7859. }
  7860. .box_course {
  7861. /* width: 60%; */
  7862. width: 81%;
  7863. }
  7864. .wheel {
  7865. width: 100%;
  7866. /* height: 100%; */
  7867. height: 650px;
  7868. }
  7869. .right_box {
  7870. display: flex;
  7871. flex-direction: column;
  7872. margin-left: 30px;
  7873. justify-content: space-around;
  7874. }
  7875. .right_box_title {
  7876. font-size: 23px;
  7877. }
  7878. .people {
  7879. display: flex;
  7880. }
  7881. .student_body {
  7882. width: 100%;
  7883. margin: 0 auto;
  7884. margin-top: 10px;
  7885. padding: 0 0 20px;
  7886. }
  7887. .study_top {
  7888. margin-top: 70px;
  7889. width: 100%;
  7890. /* overflow: auto; */
  7891. height: auto;
  7892. }
  7893. .study_top .checkbox {
  7894. display: flex;
  7895. align-items: center;
  7896. padding: 15px 0 15px 30px;
  7897. flex: 0 0 auto;
  7898. font-weight: bold;
  7899. border-bottom: 1px solid #eee;
  7900. }
  7901. .study_top .check {
  7902. padding-bottom: 5px;
  7903. text-align: center;
  7904. cursor: pointer;
  7905. height: 30px;
  7906. box-sizing: border-box;
  7907. display: flex;
  7908. }
  7909. .study_top .checked {
  7910. border-bottom: 4px solid #3fc6a0;
  7911. padding-bottom: 5px;
  7912. color: #3fc6a0;
  7913. display: flex;
  7914. height: 35px;
  7915. }
  7916. .study_top .checked>div,
  7917. .study_top .check>div {
  7918. margin-right: 5px;
  7919. }
  7920. .videoTop {
  7921. display: flex;
  7922. flex-direction: row;
  7923. justify-content: space-between;
  7924. background: #fff;
  7925. align-items: center;
  7926. width: 95%;
  7927. padding: 20px;
  7928. }
  7929. .upbtn {
  7930. margin: 25px;
  7931. background: #70afdb;
  7932. color: #fff;
  7933. width: 120px;
  7934. text-align: center;
  7935. height: 30px;
  7936. line-height: 30px;
  7937. font-size: 13px;
  7938. border-radius: 5px;
  7939. cursor: pointer;
  7940. }
  7941. .filebox {
  7942. display: flex;
  7943. flex-wrap: wrap;
  7944. flex-direction: column;
  7945. padding: 15px 0 5px;
  7946. }
  7947. .filebox .tooldetail {
  7948. width: 100%;
  7949. margin: 0px 12px;
  7950. background: rgb(247, 247, 247);
  7951. padding: 20px;
  7952. line-height: 30px;
  7953. word-break: break-word;
  7954. }
  7955. .file {
  7956. display: flex;
  7957. flex-direction: column;
  7958. align-items: center;
  7959. justify-content: center;
  7960. cursor: pointer;
  7961. width: 200px;
  7962. }
  7963. .file div {
  7964. margin-top: 10px;
  7965. width: 150px;
  7966. text-align: center;
  7967. overflow: hidden;
  7968. white-space: nowrap;
  7969. text-overflow: ellipsis;
  7970. }
  7971. .media {
  7972. display: flex;
  7973. flex-direction: column;
  7974. align-items: center;
  7975. justify-content: center;
  7976. margin: 0 20px 20px 0;
  7977. cursor: pointer;
  7978. margin: 12px 0 5px 15px;
  7979. overflow: hidden;
  7980. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  7981. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  7982. box-sizing: border-box;
  7983. }
  7984. .media img {
  7985. height: 90px;
  7986. width: 160px;
  7987. object-fit: cover;
  7988. }
  7989. .media .title {
  7990. padding: 5px;
  7991. text-align: left;
  7992. width: 100%;
  7993. box-sizing: border-box;
  7994. }
  7995. .media .btn {
  7996. width: 100%;
  7997. height: 35px;
  7998. line-height: 35px;
  7999. color: #fff;
  8000. background: #606060;
  8001. text-align: center;
  8002. overflow: hidden;
  8003. white-space: nowrap;
  8004. text-overflow: ellipsis;
  8005. }
  8006. .detail_content_top {
  8007. width: 100%;
  8008. padding: 25px 0 25px 0;
  8009. }
  8010. .detail_title {
  8011. text-align: center;
  8012. font-size: 24px;
  8013. }
  8014. .detail_time {
  8015. font-size: 13px;
  8016. padding: 15px 0 0 40px;
  8017. }
  8018. .detail_content {
  8019. line-height: 2pc;
  8020. width: 90%;
  8021. margin: 0 auto;
  8022. padding-top: 30px;
  8023. text-indent: 30px;
  8024. overflow: auto;
  8025. height: 200px;
  8026. }
  8027. .score_box>>>.el-rate {
  8028. margin-left: 10px;
  8029. }
  8030. .dialog_change>>>.el-dialog {
  8031. border-radius: 5px;
  8032. }
  8033. .dialog_change>>>.el-dialog__header {
  8034. background: #f2f2f2;
  8035. text-align: center;
  8036. }
  8037. .dialog_change>>>.el-dialog__title {
  8038. line-height: 5px;
  8039. }
  8040. .dialog_change>>>.el-dialog__body {
  8041. background: #fff;
  8042. padding: 10px 20px;
  8043. }
  8044. .score_box {
  8045. display: flex;
  8046. align-items: center;
  8047. margin-bottom: 18px;
  8048. margin-top: 20px;
  8049. }
  8050. .up_photo {
  8051. width: 120px;
  8052. cursor: pointer;
  8053. margin-top: 10px;
  8054. }
  8055. .up_photo2 {
  8056. width: 180px;
  8057. box-sizing: border-box;
  8058. min-width: 180px;
  8059. height: 180px;
  8060. max-height: 180px;
  8061. min-height: 180px;
  8062. cursor: pointer;
  8063. display: flex;
  8064. flex-direction: column;
  8065. align-items: center;
  8066. justify-content: center;
  8067. background: rgb(242, 246, 255);
  8068. /* padding: 25px; */
  8069. margin-bottom: 10px;
  8070. }
  8071. .up_photo2 img {
  8072. width: 50%;
  8073. height: auto;
  8074. }
  8075. .up_photo2 span {
  8076. color: #898989;
  8077. }
  8078. .plworkBox {
  8079. display: flex;
  8080. align-items: center;
  8081. margin-top: 10px;
  8082. flex-wrap: wrap;
  8083. }
  8084. .upload_send {
  8085. margin: 30px auto 30px;
  8086. width: 60%;
  8087. background: #169bd6;
  8088. text-align: center;
  8089. height: 35px;
  8090. line-height: 35px;
  8091. color: #fff;
  8092. border-radius: 5px;
  8093. cursor: pointer;
  8094. }
  8095. .marginT {
  8096. margin-top: 20px;
  8097. }
  8098. .cd_content_steps {
  8099. display: flex;
  8100. width: 90%;
  8101. justify-content: space-around;
  8102. border-top: 1px solid #eeeeee;
  8103. }
  8104. .cd_steps_box {
  8105. display: flex;
  8106. justify-content: center;
  8107. align-items: center;
  8108. flex-direction: column;
  8109. cursor: pointer;
  8110. }
  8111. .first {
  8112. display: flex;
  8113. align-items: center;
  8114. margin: 15px 0 20px 0;
  8115. font-size: 20px;
  8116. }
  8117. .first>div:nth-child(2) {
  8118. font-size: 16px !important;
  8119. padding-left: 10px;
  8120. line-height: 26px;
  8121. box-sizing: border-box;
  8122. }
  8123. .blue_box_one {
  8124. text-align: center;
  8125. color: #fff;
  8126. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  8127. border-radius: 7px;
  8128. margin: 10px;
  8129. cursor: pointer;
  8130. width: 95%;
  8131. height: 45px;
  8132. display: flex;
  8133. flex-direction: row;
  8134. justify-content: flex-start;
  8135. align-items: center;
  8136. }
  8137. .blue_box_one>div:nth-child(1) {
  8138. line-height: 30px;
  8139. margin: 0 5px 0 10px;
  8140. width: 30%;
  8141. min-width: 70px;
  8142. border-radius: 4px;
  8143. }
  8144. .blue_box_one>div:nth-child(2) {
  8145. white-space: nowrap;
  8146. text-overflow: ellipsis;
  8147. overflow: hidden;
  8148. word-break: break-all;
  8149. width: 70%;
  8150. text-align: left;
  8151. margin-right: 10px;
  8152. max-width: calc(100% - 85px);
  8153. }
  8154. .blue_box_one>div:nth-child(2):hover {
  8155. overflow: hidden;
  8156. text-overflow: ellipsis;
  8157. white-space: nowrap;
  8158. cursor: pointer;
  8159. }
  8160. .upFile {
  8161. margin: 0 auto;
  8162. width: 120px;
  8163. background: #70afdb;
  8164. color: #fff;
  8165. height: 30px;
  8166. text-align: center;
  8167. line-height: 30px;
  8168. border-radius: 5px;
  8169. font-size: 14px;
  8170. cursor: pointer;
  8171. }
  8172. .courseTitle {
  8173. background: #205cc6;
  8174. width: 85%;
  8175. margin: 10px auto;
  8176. color: #fff;
  8177. border-radius: 5px;
  8178. padding: 10px 10px;
  8179. display: flex;
  8180. flex-direction: row;
  8181. align-items: center;
  8182. justify-content: space-between;
  8183. text-align: center;
  8184. }
  8185. .courseTitle .ctitle {
  8186. font-weight: bold;
  8187. font-size: 20px;
  8188. white-space: nowrap;
  8189. overflow: hidden;
  8190. text-overflow: ellipsis;
  8191. }
  8192. .courseTitle .inviteBox {
  8193. font-size: 14px;
  8194. margin-top: 5px;
  8195. color: #a6cbff;
  8196. }
  8197. .courseTitle>>>.el-tooltip {
  8198. width: 100%;
  8199. white-space: nowrap;
  8200. overflow: hidden;
  8201. text-overflow: ellipsis;
  8202. word-break: break-word;
  8203. }
  8204. .ml {
  8205. margin-left: 20px;
  8206. color: #5b7dba;
  8207. border-left: 3px solid #5b7dba;
  8208. padding-left: 5px;
  8209. font-weight: bold;
  8210. }
  8211. .return {
  8212. width: 2rem;
  8213. height: 2rem;
  8214. cursor: pointer;
  8215. }
  8216. .return>img {
  8217. width: 100%;
  8218. height: 100%;
  8219. }
  8220. .returnBtn {
  8221. background: #499eef;
  8222. width: 65px;
  8223. height: 30px;
  8224. color: #fff;
  8225. text-align: center;
  8226. line-height: 32px;
  8227. margin-right: 20px;
  8228. cursor: pointer;
  8229. border-radius: 5px;
  8230. font-size: 14px;
  8231. }
  8232. .mask {
  8233. background-color: rgba(0, 0, 0, 0);
  8234. position: fixed;
  8235. top: 0;
  8236. left: 0;
  8237. width: 100%;
  8238. height: 100%;
  8239. z-index: 20000;
  8240. display: flex;
  8241. align-items: center;
  8242. justify-content: center;
  8243. }
  8244. .progressBox {
  8245. width: 500px;
  8246. height: 180px;
  8247. background: #fff;
  8248. border-radius: 10px;
  8249. box-shadow: 0 0 6px 1px #bfbfbf;
  8250. display: flex;
  8251. align-items: center;
  8252. justify-content: center;
  8253. flex-direction: column;
  8254. position: relative;
  8255. color: #6c6c6c;
  8256. }
  8257. .progressBox>>>.el-progress-bar__outer {
  8258. background-color: #d1dfff !important;
  8259. }
  8260. .progressBox .lbox {
  8261. height: 50px;
  8262. font-size: 19px;
  8263. display: flex;
  8264. align-items: center;
  8265. color: #747474;
  8266. }
  8267. .progressBox .lbox img {
  8268. width: 40px;
  8269. margin-right: 20px;
  8270. }
  8271. .closeCss {
  8272. position: absolute;
  8273. top: 8px;
  8274. right: 8px;
  8275. cursor: pointer;
  8276. width: 20px;
  8277. height: 20px;
  8278. }
  8279. .closeCss>img {
  8280. width: 100%;
  8281. height: 100%;
  8282. }
  8283. .uploadVedio {
  8284. display: flex;
  8285. flex-direction: column;
  8286. flex-wrap: nowrap;
  8287. justify-content: center;
  8288. align-items: center;
  8289. margin: 0 15px 10px 0;
  8290. }
  8291. .uploadVedio>img {
  8292. width: 30px;
  8293. height: 30px;
  8294. }
  8295. .uploadVedio>span {
  8296. white-space: nowrap;
  8297. overflow: hidden;
  8298. text-overflow: ellipsis;
  8299. width: 75px;
  8300. margin-top: 7px;
  8301. }
  8302. .picName {
  8303. white-space: nowrap;
  8304. overflow: hidden;
  8305. text-overflow: ellipsis;
  8306. width: 75px;
  8307. margin-top: 7px;
  8308. }
  8309. .new_top {
  8310. display: flex;
  8311. background: #fff;
  8312. flex-direction: row;
  8313. justify-content: flex-start;
  8314. align-items: center;
  8315. height: 60px;
  8316. position: relative;
  8317. }
  8318. .before {
  8319. position: absolute;
  8320. background: #c3dad4;
  8321. width: 6px;
  8322. height: 100%;
  8323. }
  8324. .courseIndex {
  8325. display: flex;
  8326. flex-direction: row;
  8327. align-items: center;
  8328. width: calc(100% - 520px);
  8329. }
  8330. .courseIndex>div:nth-child(1) {
  8331. margin: 0 20px;
  8332. padding-left: 5px;
  8333. font-size: 24px;
  8334. min-width: 100px;
  8335. font-weight: bold;
  8336. border-left: 4px solid #3363b9;
  8337. height: 35px;
  8338. text-align: center;
  8339. line-height: 35px;
  8340. }
  8341. .courseIndex>div:nth-child(2) {
  8342. font-size: 23px;
  8343. /* width: 300px; */
  8344. max-width: calc(100% - 180px);
  8345. white-space: nowrap;
  8346. overflow: hidden;
  8347. text-overflow: ellipsis;
  8348. }
  8349. .courseIndex>div:nth-child(3) {
  8350. border-bottom: 1px solid #d7d7d7;
  8351. padding-bottom: 5px;
  8352. background: #49a0f0;
  8353. width: 55px;
  8354. min-width: 55px;
  8355. border-radius: 5px;
  8356. color: #fff;
  8357. text-align: center;
  8358. height: 20px;
  8359. line-height: 26px;
  8360. font-size: 14px;
  8361. margin: 0 0 0 10px;
  8362. }
  8363. .course_text {
  8364. padding: 20px 0 0 15px;
  8365. text-indent: 30px;
  8366. width: 80%;
  8367. min-height: 20px;
  8368. }
  8369. .vedioList {
  8370. background: #f2f2f2;
  8371. border: 1px solid #ececec;
  8372. /* width: 38.8%; */
  8373. width: 100%;
  8374. height: 445px;
  8375. border-radius: 10px;
  8376. overflow: hidden;
  8377. }
  8378. .vedioNav {
  8379. margin: 10px 0 0 15px;
  8380. border-bottom: 1px solid #d7d7d7;
  8381. padding-bottom: 5px;
  8382. background: #96d1ff;
  8383. width: 55px;
  8384. min-width: 55px;
  8385. border-radius: 5px;
  8386. color: #fff;
  8387. text-align: center;
  8388. height: 20px;
  8389. line-height: 26px;
  8390. font-size: 14px;
  8391. }
  8392. .queTop {
  8393. display: flex;
  8394. padding: 20px 0 20px 30px;
  8395. width: 100%;
  8396. flex-direction: row;
  8397. justify-content: flex-start;
  8398. align-items: center;
  8399. border-bottom: 1px solid #eeeeee;
  8400. box-sizing: border-box;
  8401. }
  8402. .question {
  8403. width: 40px;
  8404. margin-right: 10px;
  8405. margin-top: 7px;
  8406. }
  8407. .queTitle {
  8408. margin-left: 5px;
  8409. font-size: 25px;
  8410. display: flex;
  8411. align-items: center;
  8412. }
  8413. .addEditor {
  8414. width: 100px;
  8415. height: 30px;
  8416. background: #42cda6;
  8417. color: #fff;
  8418. border-radius: 5px;
  8419. text-align: center;
  8420. line-height: 30px;
  8421. box-shadow: 1px 3px 6px 1px #bfbfbf;
  8422. cursor: pointer;
  8423. }
  8424. .vedioName {
  8425. /* text-overflow: ellipsis;
  8426. top: 8px;
  8427. font-size: 14px;
  8428. overflow: hidden;
  8429. width: 100%;
  8430. word-break: break-all;
  8431. white-space: nowrap; */
  8432. cursor: pointer;
  8433. margin: 0px 0px 10px 5px;
  8434. white-space: nowrap;
  8435. overflow: hidden;
  8436. text-overflow: ellipsis;
  8437. width: 100%;
  8438. }
  8439. .vedioTime {
  8440. width: 35px;
  8441. position: absolute;
  8442. color: #fff;
  8443. bottom: 0px;
  8444. right: 0px;
  8445. text-align: center;
  8446. background: #46411f;
  8447. height: 20px;
  8448. font-size: 14px;
  8449. line-height: 20px;
  8450. }
  8451. .homework {
  8452. width: 200px;
  8453. display: flex;
  8454. flex-direction: column;
  8455. flex-wrap: nowrap;
  8456. align-items: center;
  8457. cursor: pointer;
  8458. }
  8459. .homebox {
  8460. display: flex;
  8461. flex-wrap: wrap;
  8462. flex-direction: row;
  8463. justify-content: flex-start;
  8464. align-items: center;
  8465. padding: 15px 0;
  8466. }
  8467. .isChooseActive {
  8468. color: #3e88f4;
  8469. border-bottom: 2px solid #2f80f3;
  8470. }
  8471. .tool_box {
  8472. width: 100%;
  8473. margin-top: 20px
  8474. }
  8475. .tool_type_box {
  8476. display: flex;
  8477. flex-direction: row;
  8478. align-items: baseline;
  8479. flex-wrap: nowrap;
  8480. justify-content: flex-start;
  8481. position: relative;
  8482. }
  8483. .addPoint>div>img {
  8484. cursor: pointer;
  8485. margin: 0 10px;
  8486. width: 85px;
  8487. border-radius: 15px;
  8488. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  8489. }
  8490. .addPoint>div {
  8491. display: flex;
  8492. flex-direction: column;
  8493. flex-wrap: nowrap;
  8494. align-items: center;
  8495. }
  8496. .isBorder>div {
  8497. margin: 0 0 10px 0;
  8498. align-items: flex-start !important;
  8499. }
  8500. .noiframeBox {
  8501. display: flex;
  8502. flex-wrap: wrap;
  8503. }
  8504. .iframeBox iframe {
  8505. width: 100%;
  8506. height: 800px;
  8507. border: none;
  8508. margin-bottom: 20px;
  8509. border: 1px solid #ccc;
  8510. }
  8511. .upload_toolBtn {
  8512. background: #6b92c9;
  8513. color: #fff;
  8514. width: 110px;
  8515. text-align: center;
  8516. height: 35px;
  8517. line-height: 35px;
  8518. font-size: 14px;
  8519. border-radius: 5px;
  8520. cursor: pointer;
  8521. position: absolute;
  8522. right: 10px;
  8523. bottom: 0;
  8524. }
  8525. .binfo_input,
  8526. .pj {
  8527. font: inherit;
  8528. color: currentColor;
  8529. width: 100%;
  8530. margin: 0;
  8531. padding: 15px 14px;
  8532. display: block;
  8533. min-width: 0;
  8534. outline: none;
  8535. box-sizing: content-box;
  8536. background: none;
  8537. -webkit-tap-highlight-color: transparent;
  8538. border: 1px solid rgba(0, 0, 0, 0.23);
  8539. border-radius: 4px;
  8540. box-sizing: border-box;
  8541. resize: none;
  8542. }
  8543. .binfo_input:focus-visible {
  8544. border: 1px solid rgba(61, 103, 188);
  8545. }
  8546. .dialog_diy>>>.el-dialog__header,
  8547. .dialog_diy1>>>.el-dialog__header {
  8548. background: #454545 !important;
  8549. padding: 15px 20px;
  8550. }
  8551. .dialog_diy>>>.el-dialog__title,
  8552. .dialog_diy1>>>.el-dialog__title {
  8553. color: #fff;
  8554. }
  8555. .dialog_diy>>>.el-dialog__headerbtn,
  8556. .dialog_diy1>>>.el-dialog__headerbtn {
  8557. top: 19px;
  8558. }
  8559. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  8560. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  8561. color: #fff;
  8562. }
  8563. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  8564. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8565. color: #fff;
  8566. }
  8567. .dialog_diy1>>>.el-dialog__body {
  8568. padding: 0;
  8569. }
  8570. .dialog_diy>>>.el-dialog__body,
  8571. .dialog_diy>>>.el-dialog__footer,
  8572. .dialog_diy1>>>.el-dialog__footer {
  8573. background: #fafafa;
  8574. }
  8575. .a_addBox {
  8576. margin: 10px 0;
  8577. background: #fff;
  8578. padding: 15px;
  8579. }
  8580. .a_add_box {
  8581. border-bottom: 2px solid #eee;
  8582. padding-bottom: 10px;
  8583. }
  8584. .a_add_head {
  8585. display: flex;
  8586. align-items: flex-start;
  8587. /* justify-content: space-between; */
  8588. flex-direction: column;
  8589. /* flex-direction: row; */
  8590. margin: 10px 0 20px 0;
  8591. font-size: 18px;
  8592. width: 100%;
  8593. }
  8594. .a_add_head .a_add_head_input {
  8595. width: 300px;
  8596. }
  8597. .a_add_head .a_add_head_div {
  8598. display: flex;
  8599. align-items: center;
  8600. justify-content: space-between;
  8601. }
  8602. .a_add_body {
  8603. display: flex;
  8604. align-items: center;
  8605. }
  8606. .a_add_input {
  8607. display: flex;
  8608. align-items: center;
  8609. flex-wrap: wrap;
  8610. }
  8611. .a_add_input>>>el-radio-group {
  8612. margin: 10px 0;
  8613. }
  8614. .a_add_input>>>.el-radio,
  8615. .a_add_input>>>.el-checkbox {
  8616. margin-bottom: 10px;
  8617. display: flex;
  8618. flex-direction: row;
  8619. flex-wrap: nowrap;
  8620. align-items: center;
  8621. }
  8622. .redioStyle>>>.el-radio__label {
  8623. font-size: 18px;
  8624. }
  8625. .redioStyle>>>.el-checkbox__label {
  8626. font-size: 18px;
  8627. }
  8628. .toolHeng2 {
  8629. width: 100%;
  8630. }
  8631. .toolHeng {
  8632. display: flex;
  8633. flex-direction: row;
  8634. flex-wrap: wrap;
  8635. justify-content: flex-start;
  8636. align-items: center;
  8637. width: 100%;
  8638. }
  8639. .toolHeng>div {
  8640. padding-left: 20px;
  8641. }
  8642. .isWidth {
  8643. width: 20%;
  8644. }
  8645. .textTitle {
  8646. display: flex;
  8647. flex-direction: row;
  8648. flex-wrap: nowrap;
  8649. align-items: center;
  8650. width: 95%;
  8651. }
  8652. .textTitle>>>.el-form-item__label {
  8653. font-size: 22px;
  8654. color: #918f8f;
  8655. width: 100px;
  8656. }
  8657. .textTitle>>>.el-form-item__content {
  8658. width: calc(100% - 100px);
  8659. }
  8660. .textCss>>>.el-dialog {
  8661. width: 800px !important;
  8662. height: 400px;
  8663. background: #fafafa;
  8664. }
  8665. .textCss>>>.el-dialog__body {
  8666. margin: 55px 8% 0 8%;
  8667. padding: 0 !important;
  8668. }
  8669. .textCss>>>.el-dialog__footer {
  8670. padding-top: 38px;
  8671. }
  8672. .toolsCss>>>.el-dialog__body {
  8673. padding: 20px;
  8674. }
  8675. .lineCss>>>.el-dialog__body {
  8676. display: flex;
  8677. flex-direction: row;
  8678. align-items: center;
  8679. justify-content: center;
  8680. }
  8681. .newNav {
  8682. display: flex;
  8683. flex-direction: row;
  8684. align-items: baseline;
  8685. justify-content: flex-start;
  8686. }
  8687. .navText {
  8688. cursor: pointer;
  8689. margin: 0px 0px 10px 5px;
  8690. white-space: nowrap;
  8691. overflow: hidden;
  8692. text-overflow: ellipsis;
  8693. /* width: 300px; */
  8694. width: 100%;
  8695. }
  8696. .noVedio {
  8697. display: flex;
  8698. flex-direction: row;
  8699. justify-content: center;
  8700. align-content: center;
  8701. }
  8702. .noNavText {
  8703. cursor: pointer;
  8704. margin: 0px 0px 10px 5px;
  8705. width: 112px;
  8706. }
  8707. .listNoVedio {
  8708. margin: 0 0 0 30px;
  8709. width: 97%;
  8710. }
  8711. .video-player>>>.video-js {
  8712. height: 100%;
  8713. }
  8714. .hangVedioList {
  8715. width: 90% !important;
  8716. height: 150px !important;
  8717. margin: 20px 0 0 30px;
  8718. }
  8719. .hangVedio {
  8720. width: 100%;
  8721. height: 170px !important;
  8722. align-items: flex-start !important;
  8723. }
  8724. .hangHand {
  8725. height: 150px !important;
  8726. }
  8727. .twoChild {
  8728. width: 95%;
  8729. margin: 10px;
  8730. border-radius: 5px;
  8731. background: #f2f2f2;
  8732. display: flex;
  8733. flex-direction: column;
  8734. flex-wrap: nowrap;
  8735. justify-content: flex-start;
  8736. align-items: flex-start;
  8737. transition: all 0.5s;
  8738. overflow: hidden;
  8739. height: 0;
  8740. background: #e7f3ff;
  8741. }
  8742. .twoChild>div:nth-child(1) {
  8743. margin-top: 5px;
  8744. }
  8745. .navChild {
  8746. width: 100%;
  8747. cursor: pointer;
  8748. margin-bottom: 10px;
  8749. position: relative;
  8750. }
  8751. .navChild img {
  8752. position: absolute;
  8753. right: 11px;
  8754. width: 15px;
  8755. top: 50%;
  8756. transform: translateY(-50%);
  8757. }
  8758. .navActive {
  8759. height: auto;
  8760. }
  8761. .navTask {
  8762. display: flex;
  8763. flex-direction: row;
  8764. flex-wrap: nowrap;
  8765. align-items: center;
  8766. align-content: flex-start;
  8767. height: 40px;
  8768. justify-content: flex-start;
  8769. padding: 0 10px;
  8770. width: 100%;
  8771. box-sizing: border-box;
  8772. }
  8773. .navTaskname {
  8774. white-space: nowrap;
  8775. text-overflow: ellipsis;
  8776. overflow: hidden;
  8777. word-break: break-all;
  8778. padding-left: 5px;
  8779. }
  8780. .openTaskActive {
  8781. color: #4386e6;
  8782. }
  8783. .iframeName {
  8784. margin: 5px 0;
  8785. border-left: 4px solid #41c4a4;
  8786. padding-left: 4px;
  8787. }
  8788. .toolTitle {
  8789. margin: 0px 0px 20px;
  8790. font-size: 20px;
  8791. font-weight: 500;
  8792. border-left: 4px solid #41c4a4;
  8793. padding-left: 4px;
  8794. }
  8795. .cru_selectBox {
  8796. overflow: auto;
  8797. width: 96%;
  8798. margin: 0 auto;
  8799. height: calc(100% - 40px - 21px - 20px);
  8800. }
  8801. .cru_selectBox::-webkit-scrollbar,
  8802. .study_top::-webkit-scrollbar,
  8803. .textContent::-webkit-scrollbar {
  8804. /*滚动条整体样式*/
  8805. width: 6px;
  8806. /*高宽分别对应横竖滚动条的尺寸*/
  8807. height: 6px;
  8808. }
  8809. /*定义滚动条轨道 内阴影+圆角*/
  8810. .cru_selectBox::-webkit-scrollbar-track,
  8811. .study_top::-webkit-scrollbar-track,
  8812. .textContent::-webkit-scrollbar {
  8813. border-radius: 10px;
  8814. background-color: #b8bdc9;
  8815. }
  8816. /*定义滑块 内阴影+圆角*/
  8817. .cru_selectBox::-webkit-scrollbar-thumb,
  8818. .study_top::-webkit-scrollbar-thumb,
  8819. .textContent::-webkit-scrollbar-thumb {
  8820. border-radius: 10px;
  8821. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  8822. background-color: #2c5ab3;
  8823. }
  8824. .vedioBox {
  8825. border-radius: 20px;
  8826. background: #fff;
  8827. margin-bottom: 10px;
  8828. overflow: auto;
  8829. }
  8830. .taskBox {
  8831. margin: 15px auto 20px;
  8832. background: #f7f7f7;
  8833. width: 97%;
  8834. border-radius: 10px;
  8835. }
  8836. .vedioTaskBox {
  8837. width: 100%;
  8838. display: flex;
  8839. flex-direction: row;
  8840. flex-wrap: nowrap;
  8841. align-items: flex-start;
  8842. position: relative;
  8843. }
  8844. .toolBox {
  8845. padding: 20px 60px 15px;
  8846. display: flex;
  8847. position: relative;
  8848. }
  8849. .btnAll {
  8850. position: absolute;
  8851. right: 0;
  8852. display: flex;
  8853. flex-direction: row;
  8854. flex-wrap: nowrap;
  8855. align-items: center;
  8856. }
  8857. .btnAllNT {
  8858. position: fixed;
  8859. bottom: 50px;
  8860. right: 40px;
  8861. z-index: 999;
  8862. display: flex;
  8863. flex-direction: row;
  8864. }
  8865. .btnAllNT>img {
  8866. cursor: pointer;
  8867. width: 80px;
  8868. }
  8869. .vedioTimeBox {
  8870. display: flex;
  8871. flex-direction: row;
  8872. align-items: center;
  8873. flex-wrap: nowrap;
  8874. position: relative;
  8875. }
  8876. .navBox {
  8877. background: #fff;
  8878. height: calc(100% - 40px);
  8879. padding: 5px 1px 0;
  8880. overflow-y: auto;
  8881. overflow-x: hidden;
  8882. }
  8883. .tool_work_box {
  8884. width: 100%;
  8885. padding: 0 30px 10px;
  8886. box-sizing: border-box;
  8887. }
  8888. .worksBox {
  8889. padding: 5px 0;
  8890. border-bottom: 1px solid #eeeeee;
  8891. }
  8892. .worksBTitle {
  8893. font-size: 20px;
  8894. padding-bottom: 15px;
  8895. border-bottom: 1px solid #eeeeee;
  8896. display: flex;
  8897. align-items: center;
  8898. }
  8899. .greenBox {
  8900. width: 5px;
  8901. height: 30px;
  8902. background: #63b6fa;
  8903. margin-right: 5px;
  8904. }
  8905. .worksDetailBox {
  8906. display: flex;
  8907. width: 100%;
  8908. flex-direction: row;
  8909. flex-wrap: wrap;
  8910. align-items: flex-end;
  8911. justify-content: flex-start;
  8912. padding: 15px 0;
  8913. }
  8914. .works {
  8915. display: flex;
  8916. flex-direction: column;
  8917. flex-wrap: nowrap;
  8918. align-items: flex-start;
  8919. justify-content: flex-start;
  8920. align-content: center;
  8921. max-width: 240px;
  8922. width: calc(100% / 3 - 10px);
  8923. height: auto;
  8924. margin-right: 10px;
  8925. margin-bottom: 10px;
  8926. overflow: hidden;
  8927. height: 140px;
  8928. box-shadow: 0 0 6px 1px #dfdada;
  8929. border-radius: 15px;
  8930. }
  8931. .workImg {
  8932. width: 100%;
  8933. /* height: calc(100% - 40px); */
  8934. height: 105px;
  8935. position: relative;
  8936. }
  8937. .workImg>img {
  8938. width: 100%;
  8939. height: 100%;
  8940. object-fit: contain;
  8941. cursor: pointer;
  8942. }
  8943. .worksName {
  8944. height: 40px;
  8945. line-height: 40px;
  8946. display: flex;
  8947. width: 100%;
  8948. flex-direction: row;
  8949. flex-wrap: nowrap;
  8950. justify-content: space-between;
  8951. align-items: center;
  8952. margin: 0 0 0 10px;
  8953. }
  8954. .worksName>div:nth-child(1) {
  8955. width: 110px;
  8956. white-space: nowrap;
  8957. overflow: hidden;
  8958. text-overflow: ellipsis;
  8959. }
  8960. .worksName>div:nth-child(2) {
  8961. color: #b7b4b5;
  8962. }
  8963. .noWorksS {
  8964. padding: 15px 0 0;
  8965. display: flex;
  8966. flex-direction: row;
  8967. flex-wrap: wrap;
  8968. align-items: center;
  8969. justify-content: flex-start;
  8970. }
  8971. .noWorksS>div {
  8972. cursor: pointer;
  8973. }
  8974. .noWorksName,
  8975. .isWorksName {
  8976. background: #7cbcf1;
  8977. color: #fff;
  8978. width: 90px;
  8979. height: 25px;
  8980. text-align: center;
  8981. line-height: 25px;
  8982. border-radius: 5px;
  8983. margin: 10px 15px 10px 0;
  8984. white-space: nowrap;
  8985. overflow: hidden;
  8986. padding: 5px;
  8987. text-overflow: ellipsis;
  8988. }
  8989. .noWorksName.isWork {
  8990. background: #165d96 !important;
  8991. }
  8992. .isWorksName {
  8993. cursor: pointer;
  8994. background: #46a1eb !important;
  8995. width: 100px;
  8996. height: 40px;
  8997. line-height: 40px;
  8998. position: relative;
  8999. }
  9000. .noWorksName:hover {
  9001. background: #46a1eb !important;
  9002. }
  9003. .title {
  9004. background: #1e5cc9;
  9005. /* width: 98%; */
  9006. height: 45px;
  9007. color: #fff;
  9008. line-height: 45px;
  9009. padding-left: 20px;
  9010. box-sizing: border-box;
  9011. }
  9012. .textBox {
  9013. font-size: 20px;
  9014. width: 90%;
  9015. display: flex;
  9016. flex-direction: column;
  9017. align-items: center;
  9018. margin: 20px auto 0;
  9019. max-height: 500px;
  9020. overflow: auto;
  9021. }
  9022. .textContent {
  9023. font-size: 18px;
  9024. width: 95%;
  9025. max-width: 95%;
  9026. }
  9027. .answerBg {
  9028. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  9029. background-size: 100% 100%;
  9030. width: 100%;
  9031. height: 100%;
  9032. color: #fff;
  9033. text-align: center;
  9034. display: flex;
  9035. flex-direction: column;
  9036. flex-wrap: nowrap;
  9037. align-items: center;
  9038. position: relative;
  9039. justify-content: center;
  9040. }
  9041. .answerBg>div:nth-child(1) {
  9042. /* font-size: 22px;
  9043. padding: 25px 0 10px; */
  9044. }
  9045. .answerContent {
  9046. width: 215px;
  9047. max-height: 60px;
  9048. word-break: break-all;
  9049. text-align: center;
  9050. /* white-space: nowrap; */
  9051. overflow: hidden;
  9052. text-overflow: ellipsis;
  9053. /* padding: 23px 0 0; */
  9054. -webkit-line-clamp: 3;
  9055. -webkit-box-orient: vertical;
  9056. display: -webkit-box;
  9057. font-size: 15px;
  9058. cursor: pointer;
  9059. }
  9060. .elist_input_box {
  9061. display: flex;
  9062. align-items: flex-start;
  9063. flex-wrap: nowrap;
  9064. padding: 10px 0 15px 30px;
  9065. flex-direction: column;
  9066. }
  9067. .elist_input {
  9068. /* width: 40%; */
  9069. width: 100%;
  9070. }
  9071. .elist_input .elist_input_box input {
  9072. font: inherit;
  9073. color: currentColor;
  9074. width: 200px;
  9075. padding: 8px 14px;
  9076. display: block;
  9077. min-width: 0;
  9078. outline: none;
  9079. border: 1px solid rgba(0, 0, 0, 0.23);
  9080. border-radius: 4px;
  9081. box-sizing: border-box;
  9082. background: #fff;
  9083. margin: 0 20px 0 0;
  9084. }
  9085. .elist_input .elist_input_box span {
  9086. height: 36px;
  9087. line-height: 36px;
  9088. color: rgb(82, 82, 82);
  9089. }
  9090. .elist_input .elist_input_box .remove {
  9091. height: 20px;
  9092. width: 20px;
  9093. background-size: 100% 100%;
  9094. background-position: unset;
  9095. margin-left: 5px;
  9096. }
  9097. .elist_input_box>>>.el-rate {
  9098. display: flex;
  9099. height: 36px;
  9100. align-items: center;
  9101. }
  9102. .elist_input_box .elist_inptu_text {
  9103. min-height: 50px;
  9104. /* width: 500px;
  9105. max-height: 150px; */
  9106. width: 100%;
  9107. line-height: 50px;
  9108. color: rgb(82, 82, 82);
  9109. overflow: auto;
  9110. text-indent: 5px;
  9111. background: #f7f6f9;
  9112. border-radius: 10px;
  9113. }
  9114. .elist_input_box .elist_inptu_text input {
  9115. width: 500px;
  9116. }
  9117. .elist_input_box>>>.el-rate__icon {
  9118. font-size: 24px;
  9119. }
  9120. .isClick {
  9121. background: #4d9def;
  9122. }
  9123. /*定义滚动条轨道 内阴影+圆角*/
  9124. .bzTypeBox::-webkit-scrollbar {
  9125. /*滚动条整体样式*/
  9126. width: 6px;
  9127. /*高宽分别对应横竖滚动条的尺寸*/
  9128. height: 6px;
  9129. }
  9130. /*定义滚动条轨道 内阴影+圆角*/
  9131. .bzTypeBox::-webkit-scrollbar-track {
  9132. border-radius: 10px;
  9133. background-color: rgba(0, 0, 0, 0.1);
  9134. }
  9135. /*定义滑块 内阴影+圆角*/
  9136. .bzTypeBox::-webkit-scrollbar-thumb {
  9137. border-radius: 10px;
  9138. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  9139. background-color: rgba(0, 0, 0, 0.1);
  9140. }
  9141. .choiceBox {
  9142. display: flex;
  9143. margin: 20px 0;
  9144. width: 100%;
  9145. }
  9146. .bzTypeBox {
  9147. display: flex;
  9148. width: 100%;
  9149. overflow: auto;
  9150. white-space: nowrap;
  9151. }
  9152. .bzChild {
  9153. cursor: pointer;
  9154. box-sizing: border-box;
  9155. padding-bottom: 10px;
  9156. font-weight: bold;
  9157. min-width: fit-content;
  9158. }
  9159. .bzChild.active {
  9160. color: #3e88f4;
  9161. border-bottom: 2px solid #2f80f3;
  9162. }
  9163. .bzChild+.bzChild {
  9164. margin-left: 25px;
  9165. }
  9166. .bzBox {
  9167. display: flex;
  9168. flex-direction: row;
  9169. align-items: center;
  9170. }
  9171. .bzBox>div:nth-child(1) {
  9172. width: 4px;
  9173. height: 40px;
  9174. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  9175. }
  9176. .bzBox>div:nth-child(2) {
  9177. font-size: 23px;
  9178. font-weight: bold;
  9179. padding: 0px 0px 0 10px;
  9180. }
  9181. .navTitile {
  9182. padding: 0 0px 0 15px;
  9183. color: #fff;
  9184. height: 40px;
  9185. line-height: 40px;
  9186. }
  9187. .isTypeOne {
  9188. width: 240px;
  9189. height: 170px;
  9190. /* border: 1px solid #f8f8f8; */
  9191. border-radius: 10px;
  9192. box-shadow: 0 0 6px 1px #dfdada;
  9193. }
  9194. .e_add_top {
  9195. display: flex;
  9196. justify-content: space-between;
  9197. padding: 20px 20px 0 20px;
  9198. border-radius: 3px;
  9199. background: #fff;
  9200. }
  9201. .e_add_title2 {
  9202. display: flex;
  9203. align-items: center;
  9204. }
  9205. .e_add_title2 span {
  9206. width: 40px;
  9207. }
  9208. .e_add_title {
  9209. display: flex;
  9210. align-items: center;
  9211. color: #b8b8b8;
  9212. font-size: 18px;
  9213. position: relative;
  9214. height: 40px;
  9215. }
  9216. .e_add_title span {
  9217. margin-right: 10px;
  9218. }
  9219. .e_add_title .el_input {
  9220. width: 300px;
  9221. }
  9222. .e_add_title>>>.el-input__inner {
  9223. width: 400px;
  9224. }
  9225. .e_add_btn {}
  9226. .e_add_content {
  9227. display: flex;
  9228. width: 100%;
  9229. max-width: 650px;
  9230. height: 550px;
  9231. }
  9232. .e_add_list {
  9233. background: #fff;
  9234. height: 500px;
  9235. width: 210px;
  9236. position: relative;
  9237. margin: 15px 5px 0 0;
  9238. flex-shrink: 0;
  9239. display: flex;
  9240. flex-direction: column;
  9241. }
  9242. .e_add_list_title {
  9243. font-size: 20px;
  9244. width: 100%;
  9245. box-sizing: border-box;
  9246. padding: 15px 40px;
  9247. text-align: center;
  9248. border-bottom: 1px solid #eaeaea;
  9249. position: relative;
  9250. display: flex;
  9251. align-items: center;
  9252. justify-content: center;
  9253. height: 57px;
  9254. background: #f6f6f6;
  9255. }
  9256. .e_add_list_title span {
  9257. overflow: hidden;
  9258. white-space: nowrap;
  9259. text-overflow: ellipsis;
  9260. }
  9261. .e_add_list_title img {
  9262. position: absolute;
  9263. right: 15px;
  9264. width: 25px;
  9265. cursor: pointer;
  9266. top: 50%;
  9267. transform: translateY(-50%);
  9268. }
  9269. .e_add_list_body {
  9270. height: calc(100% - 187px);
  9271. overflow: auto;
  9272. }
  9273. .e_add_list_child {
  9274. width: 100%;
  9275. display: flex;
  9276. align-items: center;
  9277. justify-content: center;
  9278. position: relative;
  9279. box-sizing: border-box;
  9280. padding: 15px 40px;
  9281. text-align: center;
  9282. }
  9283. .e_add_list_child span {
  9284. overflow: hidden;
  9285. white-space: nowrap;
  9286. text-overflow: ellipsis;
  9287. cursor: pointer;
  9288. }
  9289. .e_add_list_child img {
  9290. position: absolute;
  9291. right: 10px;
  9292. width: 21px;
  9293. cursor: pointer;
  9294. top: 50%;
  9295. transform: translateY(-50%);
  9296. }
  9297. .e_add_list_child+.e_add_list_child {
  9298. border-top: 1px solid #eaeaea;
  9299. }
  9300. .e_add_list_child .active {
  9301. color: #409eff;
  9302. }
  9303. .e_add_list_btn {
  9304. position: absolute;
  9305. bottom: 0;
  9306. height: 50px;
  9307. background: rgb(120, 120, 254);
  9308. width: 100%;
  9309. color: #fff;
  9310. font-size: 16px;
  9311. text-align: center;
  9312. line-height: 50px;
  9313. cursor: pointer;
  9314. }
  9315. .e_add_list_detail {
  9316. position: absolute;
  9317. bottom: 0;
  9318. height: 130px;
  9319. background: rgb(120, 120, 254);
  9320. width: 100%;
  9321. color: #fff;
  9322. font-size: 16px;
  9323. display: flex;
  9324. align-items: center;
  9325. justify-content: center;
  9326. }
  9327. .e_add_list_detail textarea {
  9328. height: 90%;
  9329. width: 95%;
  9330. border: none;
  9331. resize: none;
  9332. outline: none;
  9333. padding: 5px;
  9334. box-sizing: border-box;
  9335. }
  9336. .e_add_list_pbox {
  9337. width: 100%;
  9338. max-width: 650px;
  9339. /* height: 600px; */
  9340. }
  9341. .e_add_list_pbox_title {
  9342. height: 50px;
  9343. background: #fff;
  9344. display: flex;
  9345. align-items: center;
  9346. width: 100%;
  9347. box-sizing: border-box;
  9348. padding: 0 20px;
  9349. }
  9350. .type_title {
  9351. font-size: 18px;
  9352. font-weight: 700;
  9353. }
  9354. .type_content {
  9355. font-size: 16px;
  9356. margin-left: 30px;
  9357. }
  9358. .type_content span+span {
  9359. margin-left: 20px;
  9360. }
  9361. .type_content span {
  9362. cursor: pointer;
  9363. padding-bottom: 5px;
  9364. box-sizing: border-box;
  9365. }
  9366. .type_content .active {
  9367. color: #409eff;
  9368. border-bottom: 2px solid #409eff;
  9369. }
  9370. .e_add_list_pbox_content {
  9371. height: calc(100% - 50px);
  9372. display: flex;
  9373. align-items: center;
  9374. width: 100%;
  9375. background: #fff;
  9376. }
  9377. .evaCss {
  9378. display: flex;
  9379. flex-direction: row;
  9380. flex-wrap: nowrap;
  9381. align-items: flex-start;
  9382. }
  9383. .cru_line {
  9384. position: absolute;
  9385. bottom: 0px;
  9386. transition: all 0.5s;
  9387. left: 0px;
  9388. width: 125px;
  9389. margin-left: -25px;
  9390. }
  9391. .isNoMessage {
  9392. width: 20%;
  9393. margin: 25% auto 0;
  9394. }
  9395. .isNoMessage>img {
  9396. width: 100%;
  9397. height: 100%;
  9398. }
  9399. .fullStyle>>>.el-dialog__body {
  9400. height: 100% !important;
  9401. }
  9402. .fullStyle>>>.el-dialog,
  9403. .fullStyle {
  9404. width: 100% !important;
  9405. max-width: 100% !important;
  9406. height: 100% !important;
  9407. margin: 0 !important;
  9408. }
  9409. .full_diy>>>.el-dialog {
  9410. margin: 0 !important;
  9411. height: 100%;
  9412. padding: 4px;
  9413. }
  9414. .full_diy>>>.el-dialog__body {
  9415. height: calc(100% - 100px);
  9416. }
  9417. .full_diy2>>>.el-dialog__body {
  9418. height: calc(100% - 50px);
  9419. padding: 0;
  9420. }
  9421. .switchCss {
  9422. /* width: 100%; */
  9423. display: flex;
  9424. flex-direction: row;
  9425. flex-wrap: nowrap;
  9426. align-items: center;
  9427. /* justify-content: center; */
  9428. }
  9429. .isClickNav {
  9430. color: #499eef;
  9431. }
  9432. .commentImg {
  9433. width: 25px;
  9434. height: 25px;
  9435. cursor: pointer;
  9436. }
  9437. .commentImg>img {
  9438. width: 100%;
  9439. height: 100%;
  9440. }
  9441. .comment {
  9442. background: #f9f9f9;
  9443. border-radius: 0 0 15px 15px;
  9444. display: flex;
  9445. flex-direction: row;
  9446. flex-wrap: nowrap;
  9447. align-items: center;
  9448. justify-content: flex-end;
  9449. height: 35px;
  9450. }
  9451. .commentList {
  9452. display: flex;
  9453. flex-direction: row;
  9454. flex-wrap: nowrap;
  9455. align-items: center;
  9456. justify-content: center;
  9457. align-content: center;
  9458. /* margin-left: 15px; */
  9459. /* margin-left: 8px; */
  9460. }
  9461. .scoreImg {
  9462. width: 17px;
  9463. height: 17px;
  9464. }
  9465. .studentDetail {
  9466. display: flex;
  9467. flex-direction: row;
  9468. flex-wrap: nowrap;
  9469. /* align-items: center; */
  9470. align-items: flex-start;
  9471. }
  9472. .tx {
  9473. width: 50px;
  9474. }
  9475. .tx>img {
  9476. width: 100%;
  9477. height: 100%;
  9478. }
  9479. .nameAndTime {
  9480. display: flex;
  9481. flex-direction: column;
  9482. flex-wrap: nowrap;
  9483. align-items: flex-start;
  9484. margin-left: 10px;
  9485. }
  9486. .worksAnswer {
  9487. color: #4078dd;
  9488. margin: 10px 0;
  9489. font-size: 16px;
  9490. position: relative;
  9491. }
  9492. .worksAnswer>img {
  9493. width: 500px;
  9494. height: 300px;
  9495. object-fit: contain;
  9496. margin: 0 auto;
  9497. display: block;
  9498. }
  9499. .commentTop {
  9500. border-bottom: 1px solid #eaeaea;
  9501. padding-bottom: 10px;
  9502. }
  9503. .commentBox {
  9504. padding-top: 15px;
  9505. }
  9506. .pl {
  9507. font-size: 18px;
  9508. }
  9509. .plPerson {
  9510. width: 100%;
  9511. }
  9512. .plName {
  9513. display: flex;
  9514. flex-direction: row;
  9515. flex-wrap: nowrap;
  9516. align-items: baseline;
  9517. color: #78787a;
  9518. width: 100%;
  9519. }
  9520. .deleteComment {
  9521. cursor: pointer;
  9522. margin-left: auto;
  9523. color: #237ade;
  9524. }
  9525. .plContent {
  9526. margin-top: 5px;
  9527. }
  9528. .evalCss {
  9529. background: #fff;
  9530. font-size: 18px;
  9531. }
  9532. .nav {
  9533. color: #9d9d9d;
  9534. padding: 5px 0 15px 20px;
  9535. }
  9536. .middleBox {
  9537. padding: 5px 0 15px 20px;
  9538. }
  9539. .pfBox {
  9540. padding-bottom: 30px;
  9541. }
  9542. .nameAndrate {
  9543. display: flex;
  9544. flex-direction: row;
  9545. flex-wrap: nowrap;
  9546. align-items: center;
  9547. padding-bottom: 10px;
  9548. height: 30px;
  9549. line-height: 30px;
  9550. }
  9551. .nameAndrate>div {
  9552. margin-left: 10px;
  9553. color: #000;
  9554. height: 30px;
  9555. }
  9556. .nameAndrate>>>.el-rate__icon {
  9557. font-size: 28px !important;
  9558. }
  9559. .pfBox>div:nth-child(2) {
  9560. background: #f7f6f9;
  9561. width: 400px;
  9562. min-height: 45px;
  9563. border-radius: 10px;
  9564. font-size: 16px;
  9565. display: flex;
  9566. flex-wrap: wrap;
  9567. align-items: center;
  9568. padding: 10px 20px;
  9569. box-sizing: border-box;
  9570. color: #000;
  9571. }
  9572. .bz {
  9573. display: flex;
  9574. flex-direction: row;
  9575. flex-wrap: nowrap;
  9576. align-items: flex-start;
  9577. }
  9578. .bz>div {
  9579. padding: 0 10px;
  9580. }
  9581. .select_box2_title {
  9582. background: #fff;
  9583. border-radius: 5px;
  9584. padding: 15px 10px;
  9585. box-sizing: border-box;
  9586. margin-bottom: 10px;
  9587. display: flex;
  9588. flex-direction: row;
  9589. flex-wrap: nowrap;
  9590. align-items: center;
  9591. }
  9592. .select_box2_title>div:nth-child(2) {
  9593. margin-left: 10px;
  9594. color: #c4c4c4;
  9595. }
  9596. .select_box2_box {
  9597. display: flex;
  9598. height: 500px;
  9599. }
  9600. .select_box2_img {
  9601. width: calc(100% - 310px);
  9602. height: 100%;
  9603. overflow: auto;
  9604. background: #fff;
  9605. border-radius: 5px;
  9606. }
  9607. .select_box2_img img {
  9608. width: 100%;
  9609. }
  9610. .select_box2_answer {
  9611. background: #fff;
  9612. margin-left: 10px;
  9613. border-radius: 5px;
  9614. width: 300px;
  9615. overflow: auto;
  9616. height: 90%;
  9617. display: flex;
  9618. flex-direction: column;
  9619. align-items: flex-start;
  9620. padding-top: 10px;
  9621. box-sizing: border-box;
  9622. position: relative;
  9623. }
  9624. .select_answer_title {
  9625. padding: 0 0 15px 20px;
  9626. color: #c4c4c4;
  9627. }
  9628. .select_box2_answer_box {
  9629. margin: 0 0 10px 20px;
  9630. width: 85%;
  9631. display: flex;
  9632. flex-direction: row;
  9633. flex-wrap: nowrap;
  9634. align-items: center;
  9635. }
  9636. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  9637. color: #000;
  9638. }
  9639. .upAnswerCss {
  9640. position: absolute;
  9641. bottom: 15px;
  9642. right: 15px;
  9643. }
  9644. .upAnswerCss>>>.el-button {
  9645. width: 95px;
  9646. height: 35px;
  9647. line-height: 35px;
  9648. padding: 0;
  9649. }
  9650. .rightWidthCss {
  9651. width: 60%;
  9652. display: flex;
  9653. flex-direction: row;
  9654. align-items: flex-start;
  9655. }
  9656. .rightAnswer {
  9657. display: flex;
  9658. flex-direction: row;
  9659. flex-wrap: nowrap;
  9660. align-items: center;
  9661. color: red;
  9662. margin-bottom: 31px;
  9663. }
  9664. .rightAnswerCss {
  9665. display: flex;
  9666. flex-direction: column;
  9667. flex-wrap: nowrap;
  9668. padding-top: 60px;
  9669. }
  9670. .blueCss {
  9671. color: #767de1;
  9672. margin-left: 10px;
  9673. }
  9674. .redCss {
  9675. color: red;
  9676. }
  9677. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  9678. color: rgb(0 123 255) !important;
  9679. }
  9680. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  9681. color: rgb(0 123 255) !important;
  9682. }
  9683. .zuoyeYulan {
  9684. padding-top: 15px;
  9685. font-size: 18px;
  9686. display: flex;
  9687. align-items: flex-end;
  9688. }
  9689. .buttonA {
  9690. margin-left: 10px;
  9691. padding: 0;
  9692. }
  9693. .displayBox {
  9694. margin-bottom: 10px;
  9695. display: block;
  9696. border-bottom: 3px solid #eee;
  9697. display: flex;
  9698. align-items: center;
  9699. }
  9700. .easy_comment {
  9701. width: calc(100% - 90px);
  9702. margin-left: 10px;
  9703. display: flex;
  9704. flex-wrap: wrap;
  9705. }
  9706. .easy_comment>div {
  9707. border: 1px solid #4a4a4a;
  9708. color: #666;
  9709. border-radius: 15px;
  9710. padding: 5px 10px;
  9711. font-size: 16px;
  9712. margin-bottom: 10px;
  9713. margin-right: 5px;
  9714. cursor: pointer;
  9715. }
  9716. .easy_comment div:hover {
  9717. border: 1px solid #f7ba2a;
  9718. color: #c69217;
  9719. }
  9720. .xuan_right_box {
  9721. padding: 10px;
  9722. background: rgb(247, 247, 247);
  9723. margin: 10px 12px;
  9724. border-radius: 5px;
  9725. }
  9726. .tool_right_box {
  9727. display: flex;
  9728. align-items: center;
  9729. }
  9730. .tool_right_box+.tool_right_box {
  9731. margin-top: 10px;
  9732. }
  9733. .right_box_xuan {
  9734. background: rgb(0 123 255);
  9735. color: #fff;
  9736. border-radius: 5px;
  9737. padding: 5px;
  9738. margin-left: 10px;
  9739. }
  9740. .pButton:hover {
  9741. opacity: 1 !important;
  9742. }
  9743. .pButton {
  9744. position: fixed;
  9745. /* right: 5%; */
  9746. /* bottom: 5%; */
  9747. color: #fff;
  9748. /* width: 50px;
  9749. height: 50px; */
  9750. /* border-radius: 50%; */
  9751. text-align: center;
  9752. /* line-height: 50px; */
  9753. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  9754. cursor: pointer;
  9755. z-index: 999;
  9756. right: 0;
  9757. top: 83px;
  9758. width: 50px;
  9759. height: 50px;
  9760. background: #fff;
  9761. display: flex;
  9762. align-items: center;
  9763. justify-content: center;
  9764. box-shadow: 0px 0 8px 2px #c5c5c5;
  9765. border-radius: 5px;
  9766. }
  9767. .pzClass {
  9768. width: calc(100% - 340px);
  9769. }
  9770. .newDialogCss {
  9771. /* position: fixed;
  9772. right: 5%;
  9773. top: 50%;
  9774. width: 340px;
  9775. transform: translateY(-50%);
  9776. height: 60%;
  9777. box-shadow: 0px 0 8px 0px #555555;
  9778. border-radius: 15px;
  9779. z-index: 999; */
  9780. position: fixed;
  9781. right: 0;
  9782. top: 70px;
  9783. width: 340px;
  9784. height: calc(100% - 80px);
  9785. z-index: 999;
  9786. background: #fff;
  9787. border-radius: 15px;
  9788. border-top-right-radius: 0px;
  9789. border-bottom-right-radius: 0px;
  9790. overflow: hidden;
  9791. }
  9792. .pzTop {
  9793. color: #fff;
  9794. background: #000;
  9795. display: flex;
  9796. flex-direction: row;
  9797. flex-wrap: nowrap;
  9798. align-items: center;
  9799. justify-content: space-between;
  9800. height: 40px;
  9801. border-radius: 15px 15px 0 0;
  9802. }
  9803. .pzTop2 .checkbox {
  9804. display: flex;
  9805. align-items: center;
  9806. padding: 15px 30px;
  9807. flex: 0 0 auto;
  9808. font-weight: bold;
  9809. border-bottom: 1px solid #eee;
  9810. justify-content: space-between;
  9811. }
  9812. .pzTop2 .check {
  9813. text-align: center;
  9814. cursor: pointer;
  9815. box-sizing: border-box;
  9816. display: flex;
  9817. }
  9818. .pzTop2 img {
  9819. width: 25px;
  9820. cursor: pointer;
  9821. }
  9822. .pzTop>div:nth-child(1) {
  9823. padding-left: 10px;
  9824. }
  9825. .pzTop>div:nth-child(2) {
  9826. width: 15px;
  9827. height: 15px;
  9828. padding-right: 10px;
  9829. cursor: pointer;
  9830. }
  9831. .pzTop>div:nth-child(2)>img {
  9832. width: 100%;
  9833. height: 100%;
  9834. }
  9835. .pzBox,
  9836. .noPzBox {
  9837. height: calc(100% - 60px);
  9838. /* background: #ededed; */
  9839. background: #fff;
  9840. /* border-radius: 0 0 15px 15px; */
  9841. }
  9842. .noPzBox {
  9843. display: flex;
  9844. flex-direction: column;
  9845. flex-wrap: nowrap;
  9846. justify-content: center;
  9847. align-items: center;
  9848. }
  9849. .pzList {
  9850. background: #f7f7f7;
  9851. width: 90%;
  9852. margin: 0 auto 15px;
  9853. border-radius: 5px;
  9854. }
  9855. .pzNavTop {
  9856. display: flex;
  9857. flex-direction: row;
  9858. flex-wrap: nowrap;
  9859. padding: 10px 10px 0 10px;
  9860. align-items: center;
  9861. }
  9862. .pzDelete {
  9863. cursor: pointer;
  9864. margin-left: auto;
  9865. font-size: 14px;
  9866. color: #afafaf;
  9867. }
  9868. .pzNavTop>div:nth-child(1) {
  9869. background: #3760af;
  9870. width: 35px;
  9871. height: 35px;
  9872. color: #fff;
  9873. text-align: center;
  9874. line-height: 35px;
  9875. border-radius: 50%;
  9876. font-size: 14px;
  9877. }
  9878. .pzNavTop>div:nth-child(2) {
  9879. font-size: 18px;
  9880. color: #959595;
  9881. margin-left: 5px;
  9882. }
  9883. .pzContent {
  9884. padding: 10px;
  9885. word-break: break-word;
  9886. }
  9887. .pzContent audio {
  9888. width: 100%;
  9889. }
  9890. .pzContent audio::-webkit-media-controls-panel {
  9891. background: #fff;
  9892. }
  9893. .pzListBox {
  9894. padding-top: 15px;
  9895. height: calc(100% - 60px);
  9896. overflow: auto;
  9897. }
  9898. .addPzButton {
  9899. position: relative;
  9900. margin-top: 3px;
  9901. width: 100%;
  9902. }
  9903. .addPzButton .img1 {
  9904. position: absolute;
  9905. top: 50%;
  9906. right: 25px;
  9907. transform: translateY(-50%);
  9908. height: 100%;
  9909. display: flex;
  9910. align-items: center;
  9911. }
  9912. .addPzButton .img1 div {
  9913. display: flex;
  9914. }
  9915. .addPzButton .img1 div img {
  9916. width: 28px;
  9917. margin-left: 10px;
  9918. cursor: pointer;
  9919. }
  9920. .addPzButton .img1 div span {
  9921. font-size: 14px;
  9922. margin: 4px 0 0 3px;
  9923. color: #afafaf;
  9924. }
  9925. .addPz {
  9926. background: #4b79ce;
  9927. width: 100px;
  9928. color: #fff;
  9929. font-size: 12px;
  9930. height: 30px;
  9931. margin: 0 auto;
  9932. text-align: center;
  9933. line-height: 30px;
  9934. border-radius: 10px;
  9935. cursor: pointer;
  9936. }
  9937. .addDialogCss {
  9938. position: fixed;
  9939. right: 37%;
  9940. top: 50%;
  9941. width: 600px;
  9942. transform: translateY(-50%);
  9943. height: 70%;
  9944. min-height: 450px;
  9945. box-shadow: 0px 0 8px 0px #555555;
  9946. border-radius: 15px;
  9947. z-index: 999;
  9948. }
  9949. .teacherPz {
  9950. display: flex;
  9951. flex-direction: row;
  9952. align-items: center;
  9953. flex-wrap: nowrap;
  9954. }
  9955. .teacherPzImg {
  9956. width: 30px;
  9957. height: 30px;
  9958. }
  9959. .teacherPzImg>img {
  9960. width: 100%;
  9961. height: 100%;
  9962. }
  9963. .addPzBox {
  9964. height: calc(100% - 40px);
  9965. background: #ededed;
  9966. }
  9967. .pzAudioClass {
  9968. margin: 15px 14px;
  9969. background: #fff;
  9970. height: 100%;
  9971. display: flex;
  9972. justify-content: center;
  9973. align-items: center;
  9974. }
  9975. .pzConText {
  9976. width: 95%;
  9977. height: 100%;
  9978. margin: 10px auto 0;
  9979. border: none;
  9980. background: #fff;
  9981. border-radius: 0px;
  9982. }
  9983. .pzConText>>>.text {
  9984. height: calc(100% - 82px);
  9985. }
  9986. .addTextCss {
  9987. background: #4b79ce;
  9988. width: 80px;
  9989. height: 30px;
  9990. text-align: center;
  9991. color: #fff;
  9992. line-height: 30px;
  9993. border-radius: 10px;
  9994. margin: 10px auto 0;
  9995. cursor: pointer;
  9996. }
  9997. .pzConText:focus-visible {
  9998. border: none !important;
  9999. }
  10000. .maxWidth {
  10001. width: 1000px;
  10002. }
  10003. .noPz {
  10004. width: 150px;
  10005. margin: 0 auto 20%;
  10006. }
  10007. .noPz>img {
  10008. width: 100%;
  10009. height: 100%;
  10010. }
  10011. .pzList .time {
  10012. text-align: right;
  10013. box-sizing: border-box;
  10014. padding: 0 10px 10px 0px;
  10015. color: #949494;
  10016. font-size: 14px;
  10017. }
  10018. /* table 样式 */
  10019. .cont>>>table {
  10020. border-top: 1px solid #ccc;
  10021. border-left: 1px solid #ccc;
  10022. }
  10023. .cont>>>table td,
  10024. .cont>>>table th {
  10025. border-bottom: 1px solid #ccc;
  10026. border-right: 1px solid #ccc;
  10027. padding: 15px 5px;
  10028. max-width: 0px;
  10029. }
  10030. .cont>>>table th {
  10031. border-bottom: 2px solid #ccc;
  10032. text-align: center;
  10033. }
  10034. /* blockquote 样式 */
  10035. .cont>>>blockquote {
  10036. display: block;
  10037. border-left: 8px solid #d0e5f2;
  10038. padding: 5px 10px;
  10039. margin: 10px 0;
  10040. line-height: 1.4;
  10041. font-size: 100%;
  10042. background-color: #f1f1f1;
  10043. }
  10044. .addPzCheck {
  10045. display: flex;
  10046. flex-direction: row;
  10047. flex-wrap: nowrap;
  10048. padding: 10px 15px 0;
  10049. }
  10050. .addPzCheck span {
  10051. cursor: pointer;
  10052. padding-bottom: 5px;
  10053. font-weight: bold;
  10054. }
  10055. .addPzCheck span+span {
  10056. margin-left: 10px;
  10057. }
  10058. .addPzCheck .isChooseActive {
  10059. color: #3e88f4;
  10060. border-bottom: 2px solid #2f80f3;
  10061. }
  10062. /* code 样式 */
  10063. .cont>>>code {
  10064. display: inline-block;
  10065. *display: inline;
  10066. *zoom: 1;
  10067. background-color: #f1f1f1;
  10068. border-radius: 3px;
  10069. padding: 3px 5px;
  10070. margin: 0 3px;
  10071. }
  10072. .cont>>>pre code {
  10073. display: block;
  10074. }
  10075. /* ul ol 样式 */
  10076. .cont>>>ul,
  10077. ol {
  10078. margin: 10px 0 10px 20px;
  10079. }
  10080. .scoreBox,
  10081. .scoreDetailBox {
  10082. display: flex;
  10083. align-items: center;
  10084. justify-content: flex-start;
  10085. margin-top: 20px;
  10086. font-size: 18px;
  10087. width: 100%;
  10088. }
  10089. .scoreBox .t,
  10090. .scoreDetailBox .t {
  10091. margin-right: 10px;
  10092. width: 100px;
  10093. text-align: right;
  10094. }
  10095. .scoreDetailBox {
  10096. align-items: flex-start;
  10097. }
  10098. .scoreDetailBox>>>.el-textarea {
  10099. width: calc(100% - 200px);
  10100. }
  10101. .scoreBox>>>.el-input {
  10102. width: 130px;
  10103. font-size: 38px;
  10104. }
  10105. .scoreBox>>>.el-input__inner {
  10106. height: 60px;
  10107. }
  10108. .answerScore {
  10109. position: absolute;
  10110. top: 10px;
  10111. right: 10px;
  10112. background: #0000008f;
  10113. border-radius: 5px;
  10114. padding: 3px 5px;
  10115. font-size: 14px;
  10116. color: #fff;
  10117. cursor: pointer;
  10118. }
  10119. .open_box .switch_box {
  10120. width: 100%;
  10121. margin: 0 auto;
  10122. display: flex;
  10123. justify-content: space-between;
  10124. }
  10125. .open_box .switch_box+.switch_box {
  10126. margin-top: 10px;
  10127. }
  10128. .deleteImg {
  10129. width: 25px !important;
  10130. height: 25px !important;
  10131. cursor: pointer;
  10132. position: absolute;
  10133. top: 10px;
  10134. right: 10px;
  10135. }
  10136. .deleteImg2 {
  10137. width: 15px !important;
  10138. height: 15px !important;
  10139. top: 5px;
  10140. right: 5px;
  10141. }
  10142. .rightW {
  10143. right: 40px;
  10144. }
  10145. .drawPBox {
  10146. display: flex;
  10147. flex-direction: column;
  10148. position: relative;
  10149. }
  10150. .drawPBox span {
  10151. font-size: 18px;
  10152. color: #606266;
  10153. padding-bottom: 10px;
  10154. margin: 10px 0;
  10155. border-bottom: 1px solid #eaeaea;
  10156. }
  10157. .drawPBox img {
  10158. width: 500px;
  10159. height: 300px;
  10160. object-fit: contain;
  10161. cursor: pointer;
  10162. margin: 0 auto;
  10163. }
  10164. .sentenBox {
  10165. background: #fff;
  10166. height: 450px;
  10167. overflow: auto;
  10168. background-image: url("../../assets/icon/conSentences/stuBg.png");
  10169. background-position: 102%;
  10170. background-repeat: no-repeat;
  10171. background-size: 60%;
  10172. }
  10173. .addSen {
  10174. background: #409efe;
  10175. width: 90px;
  10176. color: #fff;
  10177. height: 35px;
  10178. text-align: center;
  10179. line-height: 35px;
  10180. border-radius: 5px;
  10181. float: right;
  10182. margin: 10px 20px 0 0;
  10183. cursor: pointer;
  10184. }
  10185. .sentenTop {
  10186. display: flex;
  10187. flex-direction: row;
  10188. flex-wrap: nowrap;
  10189. align-items: center;
  10190. padding: 55px 0 0 20px;
  10191. box-sizing: border-box;
  10192. }
  10193. .sentenTop>div:nth-child(2) {
  10194. width: 300px;
  10195. margin: 0 15px;
  10196. }
  10197. .sentenTop>div:nth-child(3) {
  10198. background: #409efe;
  10199. color: #fff;
  10200. width: 65px;
  10201. height: 35px;
  10202. text-align: center;
  10203. line-height: 35px;
  10204. border-radius: 5px;
  10205. cursor: pointer;
  10206. }
  10207. .cardList,
  10208. .cardList1 {
  10209. padding: 10px 0 10px 0;
  10210. display: flex;
  10211. flex-direction: row;
  10212. flex-wrap: wrap;
  10213. align-items: center;
  10214. box-sizing: border-box;
  10215. border-bottom: 1px solid #f4f4f4;
  10216. width: 98%;
  10217. margin: 0 auto;
  10218. min-width: 60%;
  10219. max-width: 85%;
  10220. }
  10221. .cardList1 {
  10222. padding: 10px 0 10px 10px !important;
  10223. margin: 0 !important;
  10224. }
  10225. .cardBox {
  10226. display: flex;
  10227. flex-direction: row;
  10228. flex-wrap: wrap;
  10229. align-items: center;
  10230. align-content: center;
  10231. }
  10232. .cardBox>div {
  10233. margin-bottom: 10px;
  10234. }
  10235. .isCard,
  10236. .isChooseCard,
  10237. .noCard,
  10238. .isCard1 {
  10239. width: 130px;
  10240. height: 60px;
  10241. text-align: center;
  10242. line-height: 60px;
  10243. font-size: 20px;
  10244. cursor: pointer;
  10245. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  10246. background-size: cover;
  10247. transition: all 2s;
  10248. margin-right: 20px;
  10249. }
  10250. .isCard>div,
  10251. .noCard>div,
  10252. .isCard1>div {
  10253. white-space: nowrap;
  10254. overflow: hidden;
  10255. text-overflow: ellipsis;
  10256. width: 75%;
  10257. margin: 0 auto;
  10258. }
  10259. .noCard {
  10260. background-image: none;
  10261. }
  10262. .isCard1 {
  10263. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  10264. }
  10265. .isChooseCard {
  10266. background-image: none;
  10267. border: 1px dashed #b9b9b9;
  10268. border-radius: 10px;
  10269. }
  10270. .card {
  10271. width: 130px;
  10272. height: 60px;
  10273. }
  10274. .card>img {
  10275. width: 100%;
  10276. height: 100%;
  10277. }
  10278. .rightCardBox {
  10279. margin: 10px 0 0 10px;
  10280. }
  10281. .rightCardBox>div:nth-child(1) {
  10282. margin-bottom: 10px;
  10283. }
  10284. .cardCss {
  10285. display: flex;
  10286. flex-direction: column;
  10287. flex-wrap: nowrap;
  10288. align-items: center;
  10289. border-bottom: 3px solid #b4c3d3;
  10290. padding: 0 0 5px 0;
  10291. margin-right: 10px;
  10292. }
  10293. .cardCss>div:nth-child(2) {
  10294. background: #5b7b9d;
  10295. color: #fff;
  10296. width: 20px;
  10297. height: 20px;
  10298. border-radius: 50%;
  10299. text-align: center;
  10300. line-height: 20px;
  10301. }
  10302. .isWrong {
  10303. display: flex;
  10304. flex-direction: row;
  10305. flex-wrap: nowrap;
  10306. align-content: center;
  10307. align-items: center;
  10308. }
  10309. .answerRight {
  10310. width: 25%;
  10311. }
  10312. .isTj {
  10313. display: flex;
  10314. flex-direction: row;
  10315. flex-wrap: nowrap;
  10316. align-items: center;
  10317. }
  10318. .isTj>div:nth-child(2) {
  10319. color: #727070;
  10320. margin-left: 10px;
  10321. }
  10322. .isTjImg {
  10323. width: 30px;
  10324. height: 30px;
  10325. }
  10326. .isTjImg>img {
  10327. width: 100%;
  10328. height: 100%;
  10329. }
  10330. .cardAnswerBox {
  10331. font-size: 18px;
  10332. width: 97%;
  10333. border: 5px;
  10334. padding: 0;
  10335. border-radius: 5px;
  10336. margin: 10px auto;
  10337. word-break: break-word;
  10338. }
  10339. .w_name {
  10340. margin-bottom: 10px;
  10341. }
  10342. .w_name span {
  10343. font-size: 16px;
  10344. }
  10345. .w_teachert {
  10346. width: 50px !important;
  10347. position: absolute;
  10348. height: auto !important;
  10349. z-index: 10;
  10350. right: 25px;
  10351. top: -25px;
  10352. }
  10353. .group_workBox {}
  10354. .group_workBox+.group_workBox {
  10355. margin-top: 20px;
  10356. }
  10357. .group_box {
  10358. padding-bottom: 20px;
  10359. border-bottom: 2px solid #f0f0f0;
  10360. }
  10361. .group_title {
  10362. display: flex;
  10363. align-items: center;
  10364. justify-content: space-between;
  10365. }
  10366. .group_name {
  10367. background-image: url(../../assets/icon/groupN.png);
  10368. width: 220px;
  10369. background-size: 100% 100%;
  10370. height: 67px;
  10371. padding: 0 20px 0 43px;
  10372. box-sizing: border-box;
  10373. line-height: 63px;
  10374. color: #fff;
  10375. overflow: hidden;
  10376. white-space: nowrap;
  10377. text-overflow: ellipsis;
  10378. }
  10379. .group_work {
  10380. width: 100%;
  10381. padding: 0 10px;
  10382. box-sizing: border-box;
  10383. display: flex;
  10384. flex-wrap: wrap;
  10385. }
  10386. .g_d_box {
  10387. display: flex;
  10388. flex-flow: wrap;
  10389. justify-content: space-around;
  10390. }
  10391. .g_d_box .isChair {
  10392. background-image: url(../../assets/avatar.png) !important;
  10393. }
  10394. .g_d_group {
  10395. width: 500px;
  10396. margin-bottom: 80px;
  10397. }
  10398. .g_d_group_chair {
  10399. display: flex;
  10400. align-items: center;
  10401. justify-content: center;
  10402. }
  10403. .g_d_group_chair>div+div {
  10404. margin-left: 30px;
  10405. }
  10406. .g_d_group_chair>div,
  10407. .g_d_group_chair2>div {
  10408. display: flex;
  10409. flex-direction: column;
  10410. align-items: center;
  10411. }
  10412. .g_d_group_chair>div>span:nth-child(1),
  10413. .g_d_group_chair2>div>span:nth-child(1) {
  10414. background-image: url(../../assets/icon/chair.png);
  10415. width: 50px;
  10416. height: 50px;
  10417. display: block;
  10418. background-size: 100% 100%;
  10419. }
  10420. .g_d_group_tableBox {
  10421. display: flex;
  10422. align-items: center;
  10423. justify-content: center;
  10424. }
  10425. .g_d_group_chair2 {
  10426. display: flex;
  10427. flex-direction: column;
  10428. align-items: center;
  10429. justify-content: center;
  10430. }
  10431. .g_d_group_chair2>div+div {
  10432. margin-top: 10px;
  10433. }
  10434. .g_d_group_table {
  10435. background-image: url(../../assets/icon/groupBg.png);
  10436. width: 354px;
  10437. height: 196px;
  10438. background-size: 100% 100%;
  10439. display: flex;
  10440. align-items: center;
  10441. justify-content: center;
  10442. flex-direction: column;
  10443. color: #fff;
  10444. }
  10445. .g_d_group_table>div:nth-child(1) {
  10446. font-size: 24px;
  10447. margin-bottom: 5px;
  10448. }
  10449. .g_d_group_table>div:nth-child(2) div {
  10450. cursor: pointer;
  10451. background: #2e77bf;
  10452. padding: 4px 10px;
  10453. border-radius: 5px;
  10454. }
  10455. .groupBox {}
  10456. .groupContent+.groupContent {
  10457. margin-top: 30px;
  10458. }
  10459. .groupTitle {
  10460. font-size: 24px;
  10461. color: rgb(80, 80, 80);
  10462. margin-bottom: 20px;
  10463. }
  10464. .groupName {
  10465. display: flex;
  10466. align-items: center;
  10467. }
  10468. .groupn {
  10469. font-size: 15px;
  10470. margin-right: 10px;
  10471. }
  10472. .groupName+.groupName {
  10473. margin-top: 15px;
  10474. }
  10475. .groupBtn {
  10476. margin-left: 10px;
  10477. }
  10478. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10479. text-align: left;
  10480. }
  10481. .g_d_btnBox {
  10482. display: flex;
  10483. justify-content: flex-end;
  10484. align-items: flex-end;
  10485. margin-bottom: 20px;
  10486. }
  10487. .updateChair {
  10488. position: relative;
  10489. }
  10490. .updateChairBtn {
  10491. position: absolute;
  10492. width: 50px;
  10493. height: 50px;
  10494. overflow: hidden;
  10495. /* display: flex; */
  10496. align-items: center;
  10497. justify-content: center;
  10498. background: #00000087;
  10499. color: #fff;
  10500. border-radius: 50px;
  10501. display: none;
  10502. cursor: pointer;
  10503. }
  10504. .updateChair:hover .updateChairBtn {
  10505. display: flex;
  10506. }
  10507. .group_staic_box {
  10508. display: flex;
  10509. padding: 30px 40px 10px;
  10510. flex-wrap: wrap;
  10511. }
  10512. .group_staic {
  10513. /* width: 50%; */
  10514. margin-bottom: 20px;
  10515. display: flex;
  10516. align-items: center;
  10517. }
  10518. .group_staic span:nth-child(1) {
  10519. width: 150px;
  10520. text-align: right;
  10521. margin-right: 15px;
  10522. }
  10523. .group_staic span:nth-child(2) {
  10524. background: rgb(0 123 255);
  10525. color: #fff;
  10526. border-radius: 5px;
  10527. padding: 5px;
  10528. }
  10529. .codeFileBox {
  10530. height: 300px;
  10531. background: #fff;
  10532. display: flex;
  10533. align-items: center;
  10534. justify-content: center;
  10535. }
  10536. .codeFileBox img {
  10537. width: 200px;
  10538. margin: 0;
  10539. height: auto;
  10540. }
  10541. .codeFileBox div {
  10542. background: rgb(80, 142, 226);
  10543. color: #fff;
  10544. padding: 10px 20px;
  10545. border-radius: 25px;
  10546. cursor: pointer;
  10547. margin-left: 15px;
  10548. }
  10549. .radioBox {
  10550. display: flex;
  10551. flex-direction: column;
  10552. flex-wrap: nowrap;
  10553. align-items: flex-start;
  10554. }
  10555. .radioBox>div {
  10556. margin: 10px 0 0 10px;
  10557. }
  10558. /* .radioBox >>> .el-radio__input,
  10559. .radioBox >>> .el-checkbox__inner {
  10560. margin-left: 10px;
  10561. } */
  10562. .radioBox>>>.el-radio__label,
  10563. .radioBox>>>.el-checkbox__label {
  10564. display: flex;
  10565. align-items: center;
  10566. }
  10567. .radioBox >>> .el-radio__label > span {
  10568. width: 100%;
  10569. display: -webkit-box;
  10570. overflow: hidden;
  10571. white-space: normal !important;
  10572. text-overflow: ellipsis;
  10573. word-wrap: break-word;
  10574. }
  10575. .inImg {
  10576. width: 100px;
  10577. cursor: pointer;
  10578. }
  10579. .inImg>img {
  10580. width: 100%;
  10581. height: 100%;
  10582. object-fit: cover;
  10583. }
  10584. .timuImgBox {
  10585. margin: 10px 0;
  10586. display: flex;
  10587. flex-direction: column;
  10588. flex-wrap: wrap;
  10589. align-items: flex-start;
  10590. }
  10591. .timuImg {
  10592. width: 150px;
  10593. margin: 5px 0;
  10594. cursor: pointer;
  10595. }
  10596. .timuImg>img {
  10597. width: 100%;
  10598. height: 100%;
  10599. object-fit: cover;
  10600. }
  10601. .worksTop {
  10602. display: flex;
  10603. flex-direction: row;
  10604. align-items: flex-end;
  10605. }
  10606. .corOpen {
  10607. margin: 0 0 0 10px;
  10608. font-size: 14px;
  10609. cursor: pointer;
  10610. color: #505050;
  10611. }
  10612. .corOpen:hover {
  10613. color: #499eef;
  10614. }
  10615. .navCorOpenBox {
  10616. display: flex;
  10617. flex-direction: row;
  10618. align-items: center;
  10619. background: #1e5cc9;
  10620. justify-content: space-between;
  10621. }
  10622. .navCorOpen {
  10623. padding-right: 15px;
  10624. cursor: pointer;
  10625. width: 20px;
  10626. display: flex;
  10627. }
  10628. .navCorOpen>img {
  10629. width: 100%;
  10630. height: 100%;
  10631. }
  10632. .mlImg {
  10633. width: 25px !important;
  10634. cursor: pointer;
  10635. margin-top: 5px;
  10636. }
  10637. .mlImg>img {
  10638. width: 100%;
  10639. height: 100%;
  10640. }
  10641. .navLeftCss {
  10642. width: 100% !important;
  10643. left: 0 !important;
  10644. }
  10645. .isContentCss {
  10646. width: 100% !important;
  10647. }
  10648. .isAllWidth {
  10649. width: 100% !important;
  10650. }
  10651. .toolBoxSteps {
  10652. position: absolute;
  10653. top: 50%;
  10654. transform: translateY(-50%);
  10655. cursor: pointer;
  10656. width: 60px;
  10657. display: flex;
  10658. align-items: center;
  10659. justify-content: center;
  10660. }
  10661. .toolBoxSteps:nth-child(1)>img,
  10662. .toolBoxSteps:nth-child(2)>img {
  10663. width: 24px;
  10664. }
  10665. .toolBoxSteps:nth-child(1) {
  10666. left: 0;
  10667. }
  10668. .toolBoxSteps:nth-child(2) {
  10669. right: 0;
  10670. }
  10671. .chooseWho {
  10672. display: flex;
  10673. width: 380px;
  10674. flex-direction: row;
  10675. flex-wrap: nowrap;
  10676. justify-content: space-between;
  10677. padding-bottom: 10px;
  10678. }
  10679. .chooseWho>div {
  10680. cursor: pointer;
  10681. padding-bottom: 10px;
  10682. font-weight: bold;
  10683. }
  10684. .isChooseActive {
  10685. color: #3e88f4;
  10686. border-bottom: 2px solid #2f80f3;
  10687. }
  10688. .toolSort {
  10689. display: flex;
  10690. flex-direction: row;
  10691. flex-wrap: wrap;
  10692. justify-content: flex-start;
  10693. align-items: flex-start;
  10694. }
  10695. .toolSort>div {
  10696. margin-right: 45px;
  10697. }
  10698. .tools {
  10699. width: 100%;
  10700. display: flex;
  10701. flex-direction: column;
  10702. flex-wrap: nowrap;
  10703. align-items: flex-start;
  10704. }
  10705. .whiteBIcon {
  10706. width: 80px;
  10707. cursor: pointer;
  10708. display: flex;
  10709. flex-direction: column;
  10710. flex-wrap: nowrap;
  10711. align-items: center;
  10712. }
  10713. .whiteBIcon>img {
  10714. width: 100%;
  10715. height: 100%;
  10716. }
  10717. .whiteBIcon>img {
  10718. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  10719. border-radius: 15px;
  10720. }
  10721. .dia_tool_box {
  10722. display: flex;
  10723. flex-wrap: wrap;
  10724. width: 100%;
  10725. }
  10726. .dia_tool_box>div {
  10727. margin-right: 40px;
  10728. }
  10729. </style>