studyStudent.vue 393 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976
  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="pb_left">
  5. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  6. <el-tooltip class="courseTitle" effect="light" :content="courseDetail.title" placement="top">
  7. <div>{{ courseDetail.title }}</div>
  8. </el-tooltip>
  9. <div class="ml">目录</div>
  10. <div class="cru_selectBox">
  11. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  12. <div class="blue_box_one" @click="get(stageIndex)">
  13. <div>第{{ stageIndex + 1 }}阶段</div>
  14. <div>{{ item.dyName }}</div>
  15. </div>
  16. <div class="twoChild" :class="{ navActive: item.isOpen }">
  17. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  18. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  19. openTaskActive:
  20. navIndex == taskCount &&
  21. nav.id == navId &&
  22. stageIndex == courseType,
  23. }">
  24. <div class="vedioNav" :class="{
  25. isClick:
  26. navIndex == taskCount &&
  27. nav.id == navId &&
  28. stageIndex == courseType,
  29. }" style="margin: 0">
  30. 任务{{ navIndex + 1 }}
  31. </div>
  32. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  33. <div :style="{
  34. width:
  35. IsLookOpen && !nav.isLook
  36. ? 'calc(100% - 75px)'
  37. : 'auto',
  38. }">
  39. {{ nav.taskName }}
  40. </div>
  41. </el-tooltip>
  42. <img src="../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="body_student">
  50. <div class="new_top" style="
  51. position: fixed;
  52. top: 0;
  53. left: 20.7%;
  54. width: 80%;
  55. z-index: 999;
  56. box-shadow: 0px 9px 0 0 #f2f2f2;
  57. ">
  58. <div class="courseIndex">
  59. <div>第{{ courseType - 0 + 1 }}阶段</div>
  60. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  61. <div>{{ chapInfoList[courseType].dyName }}</div>
  62. </el-tooltip>
  63. <div>任务{{ taskCount + 1 }}</div>
  64. </div>
  65. <div class="btnAll">
  66. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  67. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  68. <div class="returnBtn" @click="allScrell">全屏</div>
  69. <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  70. 开始录制
  71. </div>
  72. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  73. style="background: #ee5255">
  74. 下载录制
  75. </div>
  76. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  77. 权限
  78. </div>
  79. <div class="returnBtn" style="background: #225bc7" @click.stop="
  80. goTo(
  81. '/courseDetail?userid=' +
  82. userid +
  83. '&oid=' +
  84. oid +
  85. '&org=' +
  86. org +
  87. '&cid=' +
  88. classId +
  89. '&courseId=' +
  90. id +
  91. '&tType=' +
  92. tType +
  93. '&screenType=' +
  94. screenType
  95. )
  96. ">
  97. 返回
  98. </div>
  99. </div>
  100. </div>
  101. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  102. .taskJson"
  103. :key="index"-->
  104. <div class="isNoMessage" v-if="
  105. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  106. .chapterData.length == 0 &&
  107. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  108. .toolChoose[0].tool.length == 0 &&
  109. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  110. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  111. .taskDetail == '' &&
  112. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  113. ">
  114. <img src="../assets/icon/isNoMessage.png" alt />
  115. </div>
  116. <div class="study_top" :class="{ pzClass: pzDialog }">
  117. <div class="vedioBox" v-if="
  118. vedio[taskCount].length > 0 ||
  119. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  120. .taskDetail != '' ||
  121. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  122. .chapterData.length > 0
  123. ">
  124. <div class="checkbox">
  125. <div class="check" style="font-size: 25px" :id="
  126. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  127. ">
  128. <!-- {{ taskCount + 1 }}
  129. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
  130. 学一学
  131. </div>
  132. </div>
  133. <div class="student_head" v-if="
  134. vedio[taskCount].length > 0 ||
  135. textList[taskCount].length > 0 ||
  136. lineList[taskCount].length > 0 ||
  137. file[taskCount].length > 0 ||
  138. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  139. .taskDetail != ''
  140. ">
  141. <div class="taskBox">
  142. <div style="
  143. display: flex;
  144. flex-wrap: nowrap;
  145. flex-direction: column;
  146. position: relative;
  147. ">
  148. <div style="padding: 15px 0 15px 20px" v-if="
  149. chapInfoList[courseType].chapterInfo[0].taskJson[
  150. taskCount
  151. ].taskDetail != ''
  152. " v-html="
  153. chapInfoList[courseType].chapterInfo[0].taskJson[
  154. taskCount
  155. ].taskDetail
  156. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  157. taskCount
  158. ].taskDetail
  159. : '暂无描述'
  160. ">
  161. <!-- <span style="color: #cbcbcb">任务描述</span> -->
  162. <!-- {{
  163. chapInfoList[courseType].chapterInfo[0].taskJson[
  164. taskCount
  165. ].taskDetail
  166. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  167. taskCount
  168. ].taskDetail
  169. : "暂无描述"
  170. }}-->
  171. </div>
  172. </div>
  173. </div>
  174. <div class="vedioTaskBox">
  175. <div class="box_course" v-if="
  176. vedio[taskCount].length > 0 ||
  177. textList[taskCount].length > 0 ||
  178. lineList[taskCount].length > 0 ||
  179. file[taskCount].length > 0
  180. ">
  181. <div class="wheel" v-if="
  182. vedio.length &&
  183. vedio[taskCount] &&
  184. vedio[taskCount].length > 0 &&
  185. showType == 0
  186. ">
  187. <div class="workd_media" style="height: 100%">
  188. <video-player class="video-player vjs-custom-skin" :playsinline="true"
  189. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  190. style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  191. </div>
  192. </div>
  193. <div class="wheel" v-if="showType == 1" style="
  194. box-shadow: 0 0 6px 1px #f2f2f2;
  195. width: 95%;
  196. margin: 0 auto;
  197. background: #f1f1f1;
  198. ">
  199. <div class="title">查看文档</div>
  200. <el-form class="textBox">
  201. <el-form-item class="textTitle">
  202. <div style="
  203. font-size: 22px;
  204. max-height: 100px;
  205. overflow: auto;
  206. ">
  207. {{ text.name }}
  208. </div>
  209. </el-form-item>
  210. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  211. <div v-html="text.url" class="textContent cont"></div>
  212. </el-form>
  213. </div>
  214. <div class="wheel" v-if="showType == 2" style="height: 650px; width: 95%; margin: 0 auto">
  215. <iframe style="width: 100%; height: 100%; border: none" :src="pptImgUrl1"></iframe>
  216. </div>
  217. <div class="wheel" v-if="showType == 3" style="height: 650px; width: 95%; margin: 0 auto">
  218. <!-- <iframe
  219. style="width: 100%; height: 100%; border: none"
  220. :src="pptImgUrl1"
  221. ></iframe>-->
  222. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  223. </div>
  224. <div class="wheel" v-if="showType == 4" style="height: 650px; width: 95%; margin: 0 auto">
  225. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  226. </div>
  227. </div>
  228. <!-- :class="
  229. vedio[taskCount].length == 0 && file[taskCount].length == 0
  230. ? 'listNoVedio'
  231. : ''
  232. "-->
  233. <!-- :class="
  234. vedio[taskCount].length == 0 &&
  235. file[taskCount].length == 0 &&
  236. textList[taskCount].length == 0
  237. ? 'listNoVedio'
  238. : ''
  239. " -->
  240. <div class="vedioList" v-if="
  241. (vedio.length &&
  242. vedio[taskCount] &&
  243. vedio[taskCount].length > 0) ||
  244. (textList.length &&
  245. textList[taskCount] &&
  246. textList[taskCount].length > 0) ||
  247. (lineList.length &&
  248. lineList[taskCount] &&
  249. lineList[taskCount].length > 0) ||
  250. (file.length &&
  251. file[taskCount] &&
  252. file[taskCount].length > 0)
  253. ">
  254. <div class="navTitile">内容列表:</div>
  255. <div class="navBox">
  256. <div v-show="
  257. vedio.length &&
  258. vedio[taskCount] &&
  259. vedio[taskCount].length > 0
  260. ">
  261. <!-- <div
  262. class="vedioNav"
  263. style="
  264. width: 80px;
  265. min-width: 80px;
  266. height: 30px;
  267. line-height: 36px;
  268. font-size: 16px;
  269. border-radius: 10px;
  270. "
  271. >
  272. 视频
  273. </div> -->
  274. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  275. @click="lookVedio(media.url, vedioIndex)">
  276. <!-- <div class="media" style="width: 90px; height: 60px; position: relative">
  277. <img style="height: 90px; width: 160px" :src="
  278. media.cover != null && media.cover != ''
  279. ? JSON.parse(media.cover).length > 0
  280. ? JSON.parse(media.cover)[0].url
  281. : mr
  282. : mr
  283. " alt />
  284. </div> -->
  285. <!-- <div class="vedioTime">
  286. {{ vedioTime[vedioIndex] }}
  287. </div> -->
  288. <!-- <div class="vedioName">{{ media.name }}</div> -->
  289. <div class="vedioName" :class="
  290. isClickNav == 'video' + vedioIndex
  291. ? 'isClickNav'
  292. : ''
  293. ">
  294. {{ media.name }}
  295. </div>
  296. </div>
  297. </div>
  298. <div v-show="
  299. textList.length &&
  300. textList[taskCount] &&
  301. textList[taskCount].length > 0
  302. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  303. @click="lookText(taskCount, textIndex)">
  304. <!-- <div
  305. class="vedioNav"
  306. style="
  307. width: 80px;
  308. min-width: 80px;
  309. height: 30px;
  310. line-height: 36px;
  311. font-size: 16px;
  312. border-radius: 10px;
  313. "
  314. >
  315. 文档
  316. </div> -->
  317. <div style="width: calc(100% - 0px)">
  318. <div class="navText" :class="
  319. isClickNav == 'text' + textIndex ? 'isClickNav' : ''
  320. ">
  321. {{
  322. textList[taskCount].length > 0 ? text.name : ""
  323. }}.doc
  324. </div>
  325. </div>
  326. </div>
  327. <!-- <div
  328. v-show="
  329. chapInfoList.length &&
  330. chapToolList[taskCount] &&
  331. chapToolList[taskCount].length > 0
  332. "
  333. class="newNav"
  334. v-for="(tools, toolsIndex) in chapToolList[taskCount]"
  335. :key="toolsIndex + '3'"
  336. >
  337. <div class="vedioNav">工具</div>
  338. <div>
  339. <div
  340. class="navText"
  341. @click="lookTools(taskCount, toolsIndex)"
  342. >
  343. {{
  344. chapToolList[taskCount].length > 0 ? tools.name : ""
  345. }}
  346. </div>
  347. </div>
  348. </div>-->
  349. <div v-show="
  350. lineList.length &&
  351. lineList[taskCount] &&
  352. lineList[taskCount].length > 0
  353. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  354. @click="doUrl(lines.url, lineIndex)">
  355. <!-- <div
  356. class="vedioNav"
  357. style="
  358. width: 80px;
  359. min-width: 80px;
  360. height: 30px;
  361. line-height: 36px;
  362. font-size: 16px;
  363. border-radius: 10px;
  364. "
  365. >
  366. 链接
  367. </div> -->
  368. <!-- <div style="width: calc(100% - 0px)">
  369. <div
  370. class="navText"
  371. :class="isClickNav == lineIndex ? 'isClickNav' : ''"
  372. >
  373. <a
  374. style="text-decoration: none; color: #000"
  375. target="_Blank"
  376. >{{ lines.url }}</a
  377. >
  378. </div>
  379. </div> -->
  380. <div style="width: calc(100% - 0px)">
  381. <div class="navText" :class="
  382. isClickNav == 'line' + lineIndex ? 'isClickNav' : ''
  383. ">
  384. {{ lines.title ? lines.title : lines.url }}
  385. </div>
  386. </div>
  387. </div>
  388. <div class="newNav" v-show="
  389. file.length &&
  390. file[taskCount] &&
  391. file[taskCount].length > 0
  392. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  393. <!-- <div
  394. class="vedioNav"
  395. style="
  396. width: 80px;
  397. min-width: 80px;
  398. height: 30px;
  399. line-height: 36px;
  400. font-size: 16px;
  401. border-radius: 10px;
  402. "
  403. >
  404. 文档
  405. </div> -->
  406. <div style="width: calc(100% - 0px)">
  407. <div class="navText" :class="
  408. isClickNav == 'word' + fileIndex ? 'isClickNav' : ''
  409. ">
  410. {{ f.name }}
  411. </div>
  412. </div>
  413. </div>
  414. </div>
  415. </div>
  416. </div>
  417. <div style="width:81%">
  418. <div style="padding: 10px 0 0;width:95%;margin: 0 auto;" v-if="showType == 2 || showType == 3">
  419. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  420. <el-button type="primary" @click="downloadFile(pptImgUrl1)"
  421. v-if="isClickNav.indexOf('line') == -1">文件下载</el-button>
  422. <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
  423. </el-button>
  424. </div>
  425. <div style="padding: 10px 0 0;width:95%;margin: 0 auto;" v-if="showType == 1">
  426. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  427. </div>
  428. </div>
  429. </div>
  430. </div>
  431. <div class="student_body" v-resize="resize">
  432. <!-- <div
  433. class="vedioBox"
  434. v-if="
  435. file.length && file[taskCount] && file[taskCount].length > 0
  436. "
  437. >
  438. <div class="queTop">
  439. <div class="question" style="width: 30px; margin-top: 5px">
  440. <img src="../assets/icon/fileIcon.png" alt />
  441. </div>
  442. <div class="queTitle">
  443. <div>附件</div>
  444. </div>
  445. </div>
  446. <div class="filebox" style="width: 100%">
  447. <div
  448. class="file"
  449. v-for="(f, fileIndex) in file[taskCount]"
  450. :key="fileIndex"
  451. @click="downFile(f, fileIndex)"
  452. >
  453. <img :src="require('../assets/file.png')" alt />
  454. <div>{{ f.name }}</div>
  455. </div>
  456. </div>
  457. <div class="upFile" v-if="type == 3">提交</div>
  458. </div>-->
  459. <div class="vedioBox" v-if="
  460. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  461. .toolChoose[0].tool &&
  462. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  463. .toolChoose[0].tool.length &&
  464. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  465. .toolChoose[0].tool.length > 0
  466. ">
  467. <div class="queTop" style="
  468. font-size: 25px;
  469. padding: 15px 0 15px 30px;
  470. font-weight: bold;
  471. ">
  472. <!-- <div class="question" style="width: 30px">
  473. <img src="../assets/icon/toolIcon.png" alt />
  474. </div>
  475. <div class="queTitle">
  476. <div>工具</div>
  477. </div>-->
  478. 练一练
  479. </div>
  480. <div class="toolHeng2" style="position: relative">
  481. <div class="filebox" style="flex-wrap: nowrap; margin: 0 20px" v-for="(tool, toolIndex) in chapInfoList[courseType]
  482. .chapterInfo[0].taskJson[taskCount].toolChoose" :key="toolIndex">
  483. <div class="bzBox">
  484. <div></div>
  485. <div>步骤{{ toolIndex + 1 }}</div>
  486. </div>
  487. <div class="toolBox">
  488. <div>
  489. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  490. :key="indexTool"-->
  491. <!-- <div class="iframeBox">
  492. <div
  493. class="addPoint isBorder"
  494. v-for="(tooC, toolCIndex) in tool.tool"
  495. :key="toolCIndex"
  496. >
  497. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  498. <div
  499. class="iframeName"
  500. >
  501. 电子白板
  502. </div>
  503. <iframe
  504. src="https://iwb.cocorobo.cn/"
  505. ref="whiteBoard"
  506. ></iframe>
  507. </div>
  508. </div>
  509. </div>-->
  510. <div class="noiframeBox">
  511. <div class="addPoint" v-for="(tooC, toolCIndex) in tool.tool" :key="toolCIndex">
  512. <div v-if="tooC == 1">
  513. <img src="../assets/icon/secondToolList/whiteBoard.png" alt
  514. @click="addTools(tooC, toolIndex, taskCount)" />
  515. <div style="margin: 5px 0">电子白板</div>
  516. </div>
  517. <div v-if="tooC == 3">
  518. <img src="../assets/icon/secondToolList/mindMapping.png" alt
  519. @click="addTools(tooC, toolIndex, taskCount)" />
  520. <div style="margin: 5px 0">思维导图</div>
  521. </div>
  522. <div v-if="tooC == 6">
  523. <img src="../assets/icon/secondToolList/doc.png" alt
  524. @click="addTools(tooC, toolIndex, taskCount)" />
  525. <div style="margin: 5px 0">协同文档</div>
  526. </div>
  527. <div v-if="tooC == 7">
  528. <img src="../assets/icon/secondToolList/mindNetwork.png" alt
  529. @click="addTools(tooC, toolIndex, taskCount)" />
  530. <div style="margin: 5px 0">思维网格</div>
  531. </div>
  532. <div v-if="tooC == 8">
  533. <img src="../assets/icon/secondToolList/library.png" alt
  534. @click="addTools(tooC, toolIndex, taskCount)" />
  535. <div style="margin: 5px 0">素材库</div>
  536. </div>
  537. <div v-if="tooC == 17">
  538. <img src="../assets/icon/secondToolList/library.png" alt
  539. @click="addTools(tooC, toolIndex, taskCount)" />
  540. <div style="margin: 5px 0">学习资料</div>
  541. </div>
  542. <div v-if="tooC == 2">
  543. <img @click="addTools(tooC, toolIndex, taskCount)"
  544. src="../assets/icon/secondToolList/note.png" alt />
  545. <div style="margin: 5px 0">便签</div>
  546. </div>
  547. <div v-if="tooC == 4">
  548. <img @click="addTools(tooC, toolIndex, taskCount)"
  549. src="../assets/icon/thirdToolList/ask.png" alt />
  550. <div style="margin: 5px 0">问卷调查</div>
  551. </div>
  552. <div v-if="tooC == 45">
  553. <img @click="addTools(tooC, toolIndex, taskCount)"
  554. src="../assets/icon/thirdToolList/choose.png" alt />
  555. <div style="margin: 5px 0">选择题</div>
  556. </div>
  557. <!-- <div v-if="tooC == 5">
  558. <img
  559. @click="addTools(tooC, toolIndex, taskCount)"
  560. src="../assets/icon/thirdToolList/score.png"
  561. alt
  562. />
  563. <div style="margin: 5px 0">量规评分</div>
  564. </div> -->
  565. <div v-if="tooC == 10">
  566. <img @click="addTools(tooC, toolIndex, taskCount)"
  567. src="../assets/icon/thirdToolList/time.png" alt />
  568. <div style="margin: 5px 0">倒计时</div>
  569. </div>
  570. <div v-if="tooC == 15">
  571. <img @click="addTools(tooC, toolIndex, taskCount)"
  572. src="../assets/icon/thirdToolList/answer.png" alt />
  573. <div style="margin: 5px 0">问答工具</div>
  574. </div>
  575. <div v-if="tooC == 26">
  576. <img @click="addTools(tooC, toolIndex, taskCount)"
  577. src="../assets/icon/thirdToolList/courseDesign.png" alt />
  578. <div style="margin: 5px 0">课程设计</div>
  579. </div>
  580. <div v-if="tooC == 18">
  581. <img @click="addTools(tooC, toolIndex, taskCount)"
  582. src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  583. <div style="margin: 5px 0">训练服务器</div>
  584. </div>
  585. <div v-if="tooC == 16">
  586. <img @click="addTools(tooC, toolIndex, taskCount)"
  587. src="../assets/icon/thirdToolList/work.png" alt />
  588. <div style="margin: 5px 0">作业提交</div>
  589. </div>
  590. <div v-if="tooC == 50">
  591. <img @click="addTools(tooC, toolIndex, taskCount)"
  592. src="../assets/icon/thirdToolList/plwork.png" alt />
  593. <div style="margin: 5px 0">批量上传</div>
  594. </div>
  595. <div v-if="tooC == 21">
  596. <img @click="addTools(tooC, toolIndex, taskCount)"
  597. src="../assets/icon/fourthToolList/program.png" alt />
  598. <div style="margin: 5px 0">编程平台</div>
  599. </div>
  600. <div v-if="tooC == 22">
  601. <img @click="addTools(tooC, toolIndex, taskCount)"
  602. src="../assets/icon/fourthToolList/program.png" alt />
  603. <div style="margin: 5px 0">AI体验</div>
  604. </div>
  605. <div v-if="tooC == 23">
  606. <img @click="addTools(tooC, toolIndex, taskCount)"
  607. src="../assets/icon/fourthToolList/program.png" alt />
  608. <div style="margin: 5px 0">Python</div>
  609. </div>
  610. <div v-if="tooC == 24">
  611. <img @click="addTools(tooC, toolIndex, taskCount)"
  612. src="../assets/icon/fourthToolList/AIprogram.png" alt />
  613. <div style="margin: 5px 0">AI平台</div>
  614. </div>
  615. <div v-if="tooC == 25">
  616. <img @click="addTools(tooC, toolIndex, taskCount)"
  617. src="../assets/icon/thirdToolList/evalua.png" alt />
  618. <div style="margin: 5px 0">目标管理</div>
  619. </div>
  620. <div v-if="tooC == 31">
  621. <img @click="addTools(tooC, toolIndex, taskCount)"
  622. src="../assets/icon/secondToolList/networkPanel.png" alt />
  623. <div style="margin: 5px 0">数学画板</div>
  624. </div>
  625. <div v-if="tooC == 28">
  626. <img @click="addTools(tooC, toolIndex, taskCount)"
  627. src="../assets/icon/secondToolList/translation.png" alt />
  628. <div style="margin: 5px 0">翻译</div>
  629. </div>
  630. <div v-if="tooC == 37">
  631. <img @click="addTools(tooC, toolIndex, taskCount)"
  632. src="../assets/icon/secondToolList/mohe.png" alt />
  633. <div style="margin: 5px 0">魔盒识字</div>
  634. </div>
  635. <div v-if="tooC == 38">
  636. <img @click="addTools(tooC, toolIndex, taskCount)"
  637. src="../assets/icon/secondToolList/24game.png" alt />
  638. <div style="margin: 5px 0">24点</div>
  639. </div>
  640. <div v-if="tooC == 39">
  641. <img @click="addTools(tooC, toolIndex, taskCount)"
  642. src="../assets/icon/secondToolList/GeoGebra.png" alt />
  643. <div style="margin: 5px 0">GeoGebra</div>
  644. </div>
  645. <div v-if="tooC == 32">
  646. <img @click="addTools(tooC, toolIndex, taskCount)"
  647. src="../assets/icon/thirdToolList/code.png" alt />
  648. <div style="margin: 5px 0">源码编辑</div>
  649. </div>
  650. <div v-if="tooC == 40">
  651. <img @click="addTools(tooC, toolIndex, taskCount)"
  652. src="../assets/icon/secondToolList/eval.png" alt />
  653. <div style="margin: 5px 0">个人评价</div>
  654. </div>
  655. <div v-if="tooC == 41">
  656. <img @click="addTools(tooC, toolIndex, taskCount)"
  657. src="../assets/icon/thirdToolList/select.png" alt />
  658. <div style="margin: 5px 0">选择填空</div>
  659. </div>
  660. <div v-if="tooC == 44">
  661. <img @click="addTools(tooC, toolIndex, taskCount)"
  662. src="../assets/icon/thirdToolList/hanClass.png" alt />
  663. <div style="margin: 5px 0">汉字宫</div>
  664. </div>
  665. <div v-if="tooC == 47">
  666. <img @click="addTools(tooC, toolIndex, taskCount)"
  667. src="../assets/icon/fourthToolList/conSentences.png" alt />
  668. <div style="margin: 5px 0">连词成句</div>
  669. </div>
  670. <div v-if="tooC == 48">
  671. <img @click="addTools(tooC, toolIndex, taskCount)"
  672. src="../assets/icon/fourthToolList/table.png" alt />
  673. <div style="margin: 5px 0">表格</div>
  674. </div>
  675. <div v-if="tooC == 49">
  676. <img @click="addTools(tooC, toolIndex, taskCount)"
  677. src="../assets/icon/fourthToolList/group.png" alt />
  678. <div style="margin: 5px 0">学生分组</div>
  679. </div>
  680. </div>
  681. </div>
  682. </div>
  683. <div class="tooldetail" v-if="tool.toolDetail != ''">
  684. <!-- <div class="toolTitle">工具描述</div> -->
  685. <div v-html="contentConvent(tool.toolDetail)">
  686. <!-- {{ contentConvent(tool.toolDetail) }} -->
  687. </div>
  688. </div>
  689. </div>
  690. <div v-if="
  691. tType &&
  692. tType == 2 &&
  693. !sIsOpen &&
  694. tool.tool.indexOf(16) != -1
  695. " class="worksBox">
  696. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  697. <span>作业预览</span>
  698. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  699. </div>
  700. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  701. <div class="works" style="
  702. width: 200px;
  703. height: 140px;
  704. margin: 10px 10px 10px 0;
  705. box-shadow: 0 0 6px 1px #dfdada;
  706. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  707. <div class="workImg" v-if="w.type == 0">
  708. <img :src="w.works" @click="previewImg(w.works)" alt />
  709. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  710. rightW:
  711. w.userid == userid || tType == 1 || tType == 4,
  712. }">
  713. {{ JSON.parse(w.score).wScore }}分
  714. </div>
  715. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  716. :class="{
  717. rightW:
  718. w.userid == userid ||
  719. tType == 1 ||
  720. tType == 4 ||
  721. tType == 2 ||
  722. tType == 4,
  723. }">
  724. 评分
  725. </div>
  726. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  727. w.userid == userid || tType == 1 || tType == 4
  728. " @click.stop="deleteWorks(w.wid)" alt />
  729. </div>
  730. <div class="workImg" v-if="w.type == 1">
  731. <img :src="word" @click="openFile(w.works)" alt />
  732. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  733. rightW:
  734. w.userid == userid || tType == 1 || tType == 4,
  735. }">
  736. {{ JSON.parse(w.score).wScore }}分
  737. </div>
  738. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  739. :class="{
  740. rightW:
  741. w.userid == userid || tType == 1 || tType == 4,
  742. }">
  743. 评分
  744. </div>
  745. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  746. w.userid == userid || tType == 1 || tType == 4
  747. " @click.stop="deleteWorks(w.wid)" alt />
  748. </div>
  749. <div class="workImg" v-if="w.type == 3">
  750. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  751. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  752. rightW:
  753. w.userid == userid || tType == 1 || tType == 4,
  754. }">
  755. {{ JSON.parse(w.score).wScore }}分
  756. </div>
  757. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  758. :class="{
  759. rightW:
  760. w.userid == userid || tType == 1 || tType == 4,
  761. }">
  762. 评分
  763. </div>
  764. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  765. w.userid == userid || tType == 1 || tType == 4
  766. " @click.stop="deleteWorks(w.wid)" alt />
  767. </div>
  768. <div class="worksName">
  769. <div>{{ w.sName }}</div>
  770. </div>
  771. </div>
  772. </div>
  773. </div>
  774. <div v-if="
  775. tType &&
  776. tType == 2 &&
  777. !sIsOpen &&
  778. tool.tool.indexOf(4) != -1
  779. " class="worksBox">
  780. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  781. <span>作业预览</span>
  782. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  783. </div>
  784. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  785. <div class="isWorksName" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex" @click="
  786. openTools(4, toolIndex, taskCount, w.works, w.sName)
  787. ">
  788. {{ w.sName }}
  789. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  790. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  791. </div>
  792. <!-- <div
  793. class="works"
  794. style="
  795. width: 200px;
  796. height: 140px;
  797. border-radius: 10px;
  798. box-shadow: 0 0 6px 1px #dfdada;
  799. overflow: hidden;
  800. "
  801. v-for="(w, wIndex) in workStudent[toolIndex]"
  802. :key="wIndex"
  803. >
  804. <div class="workImg">
  805. <img
  806. src="../assets/icon/works/noImg.png"
  807. @click="
  808. openTools(
  809. 4,
  810. toolIndex,
  811. taskCount,
  812. w.works,
  813. w.sName
  814. )
  815. "
  816. alt
  817. />
  818. </div>
  819. <div class="worksName">
  820. <div>{{ w.sName }}</div>
  821. <div>{{ w.time }}</div>
  822. </div>
  823. </div> -->
  824. </div>
  825. </div>
  826. <div v-if="
  827. tType &&
  828. tType == 2 &&
  829. !sIsOpen &&
  830. tool.tool.indexOf(45) != -1
  831. " class="worksBox">
  832. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  833. <span>作业预览</span>
  834. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  835. </div>
  836. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  837. <div class="isWorksName" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex" @click="
  838. openTools(45, toolIndex, taskCount, w.works, w.sName)
  839. ">
  840. {{ w.sName }}
  841. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  842. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  843. </div>
  844. </div>
  845. </div>
  846. <div v-if="
  847. tType &&
  848. tType == 2 &&
  849. !sIsOpen &&
  850. tool.tool.indexOf(15) != -1
  851. " class="worksBox">
  852. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  853. <span>作业预览</span>
  854. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  855. </div>
  856. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  857. <div class="works" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  858. <div class="workImg">
  859. <!-- <img
  860. src="../assets/icon/works/noImg.png"
  861. @click="openTools(15, toolIndex, taskCount, w.works)"
  862. alt=""
  863. />-->
  864. <div class="answerBg">
  865. <!-- <div>{{ w.sName }}</div> -->
  866. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  867. placement="top">
  868. <div class="answerContent">
  869. {{ JSON.parse(w.works)[0].answer }}
  870. </div>
  871. </el-tooltip>
  872. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  873. rightW:
  874. w.userid == userid ||
  875. tType == 1 ||
  876. tType == 4,
  877. }">
  878. {{ JSON.parse(w.score).wScore }}分
  879. </div>
  880. <div class="answerScore" @click.stop="openScore(w)"
  881. v-else-if="courseDetail.userid == userid" :class="{
  882. rightW:
  883. w.userid == userid ||
  884. tType == 1 ||
  885. tType == 4,
  886. }">
  887. 评分
  888. </div>
  889. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  890. w.userid == userid || tType == 1 || tType == 4
  891. " @click.stop="deleteWorks(w.wid)" alt />
  892. </div>
  893. <div class="comment">
  894. <div class="worksName">
  895. <div>{{ w.sName }}</div>
  896. </div>
  897. </div>
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. <div v-if="
  903. tType &&
  904. tType == 2 &&
  905. !sIsOpen &&
  906. tool.tool.indexOf(1) != -1
  907. " class="worksBox">
  908. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  909. <span>作业预览</span>
  910. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  911. </div>
  912. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  913. <div class="works" style="
  914. width: 200px;
  915. height: 140px;
  916. margin: 10px 10px 10px 0;
  917. box-shadow: 0 0 6px 1px #dfdada;
  918. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  919. <div class="workImg">
  920. <img :src="w.works" @click="previewImg(w.works)" alt />
  921. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  922. rightW:
  923. w.userid == userid || tType == 1 || tType == 4,
  924. }">
  925. {{ JSON.parse(w.score).wScore }}分
  926. </div>
  927. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  928. :class="{
  929. rightW:
  930. w.userid == userid || tType == 1 || tType == 4,
  931. }">
  932. 评分
  933. </div>
  934. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  935. w.userid == userid || tType == 1 || tType == 4
  936. " @click.stop="deleteWorks(w.wid)" alt />
  937. </div>
  938. <div class="worksName">
  939. <div>{{ w.sName }}</div>
  940. </div>
  941. </div>
  942. </div>
  943. </div>
  944. <div v-if="
  945. tType &&
  946. tType == 2 &&
  947. !sIsOpen &&
  948. tool.tool.indexOf(3) != -1
  949. " class="worksBox">
  950. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  951. <span>作业预览</span>
  952. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  953. </div>
  954. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  955. <div class="works" style="
  956. width: 200px;
  957. height: 140px;
  958. margin: 10px 10px 10px 0;
  959. box-shadow: 0 0 6px 1px #dfdada;
  960. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  961. <div class="workImg">
  962. <img :src="w.works" @click="previewImg(w.works)" alt />
  963. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  964. rightW:
  965. w.userid == userid || tType == 1 || tType == 4,
  966. }">
  967. {{ JSON.parse(w.score).wScore }}分
  968. </div>
  969. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  970. :class="{
  971. rightW:
  972. w.userid == userid || tType == 1 || tType == 4,
  973. }">
  974. 评分
  975. </div>
  976. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  977. w.userid == userid || tType == 1 || tType == 4
  978. " @click.stop="deleteWorks(w.wid)" alt />
  979. </div>
  980. <div class="worksName">
  981. <div>{{ w.sName }}</div>
  982. </div>
  983. </div>
  984. </div>
  985. </div>
  986. <div v-if="
  987. tType &&
  988. tType == 2 &&
  989. !sIsOpen &&
  990. tool.tool.indexOf(6) != -1
  991. " class="worksBox">
  992. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  993. <span>作业预览</span>
  994. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  995. </div>
  996. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  997. <div class="works" style="
  998. width: 200px;
  999. height: 140px;
  1000. margin: 10px 10px 10px 0;
  1001. box-shadow: 0 0 6px 1px #dfdada;
  1002. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1003. <div class="workImg">
  1004. <img :src="w.works" @click="previewImg(w.works)" alt />
  1005. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1006. rightW:
  1007. w.userid == userid || tType == 1 || tType == 4,
  1008. }">
  1009. {{ JSON.parse(w.score).wScore }}分
  1010. </div>
  1011. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1012. :class="{
  1013. rightW:
  1014. w.userid == userid || tType == 1 || tType == 4,
  1015. }">
  1016. 评分
  1017. </div>
  1018. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1019. w.userid == userid || tType == 1 || tType == 4
  1020. " @click.stop="deleteWorks(w.wid)" alt />
  1021. </div>
  1022. <div class="worksName">
  1023. <div>{{ w.sName }}</div>
  1024. </div>
  1025. </div>
  1026. </div>
  1027. </div>
  1028. <div v-if="
  1029. tType &&
  1030. tType == 2 &&
  1031. !sIsOpen &&
  1032. tool.tool.indexOf(7) != -1
  1033. " class="worksBox">
  1034. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1035. <span>作业预览</span>
  1036. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1037. </div>
  1038. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1039. <div class="works" style="
  1040. width: 200px;
  1041. height: 140px;
  1042. margin: 10px 10px 10px 0;
  1043. box-shadow: 0 0 6px 1px #dfdada;
  1044. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1045. <div class="workImg">
  1046. <img :src="w.works" @click="previewImg(w.works)" alt />
  1047. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1048. rightW:
  1049. w.userid == userid || tType == 1 || tType == 4,
  1050. }">
  1051. {{ JSON.parse(w.score).wScore }}分
  1052. </div>
  1053. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1054. :class="{
  1055. rightW:
  1056. w.userid == userid || tType == 1 || tType == 4,
  1057. }">
  1058. 评分
  1059. </div>
  1060. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1061. w.userid == userid || tType == 1 || tType == 4
  1062. " @click.stop="deleteWorks(w.wid)" alt />
  1063. </div>
  1064. <div class="worksName">
  1065. <div>{{ w.sName }}</div>
  1066. </div>
  1067. </div>
  1068. </div>
  1069. </div>
  1070. <div v-if="
  1071. tType &&
  1072. tType == 2 &&
  1073. !sIsOpen &&
  1074. tool.tool.indexOf(26) != -1
  1075. " class="worksBox">
  1076. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1077. <span>作业预览</span>
  1078. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1079. </div>
  1080. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1081. <div class="works" style="
  1082. width: 200px;
  1083. height: 140px;
  1084. margin: 10px 10px 10px 0;
  1085. box-shadow: 0 0 6px 1px #dfdada;
  1086. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1087. <div class="workImg">
  1088. <img :src="w.works" @click="previewImg(w.works)" alt />
  1089. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1090. w.userid == userid || tType == 1 || tType == 4
  1091. " @click.stop="deleteWorks(w.wid)" alt />
  1092. </div>
  1093. <div class="worksName">
  1094. <div>{{ w.sName }}</div>
  1095. </div>
  1096. </div>
  1097. </div>
  1098. </div>
  1099. <div v-if="
  1100. tType &&
  1101. ((tType == 2 && sIsOpen == true) ||
  1102. tType == 1 ||
  1103. tType == 4) &&
  1104. tool.tool.indexOf(16) != -1
  1105. " class="worksBox">
  1106. <div class="zuoyeYulan" v-if="
  1107. worksStudent.length &&
  1108. worksStudent[toolIndex].length > 0
  1109. ">
  1110. <span>作业预览</span>
  1111. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1112. </div>
  1113. <div class="worksDetailBox" v-if="
  1114. worksStudent.length &&
  1115. worksStudent[toolIndex].length > 0
  1116. ">
  1117. <div class="works" style="
  1118. width: 200px;
  1119. height: 140px;
  1120. margin: 10px 10px 10px 0;
  1121. border-radius: 15px;
  1122. box-shadow: 0 0 6px 1px #dfdada;
  1123. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1124. :class="w.type == 1 ? 'isTypeOne' : ''">
  1125. <div class="workImg" v-if="w.type == 0">
  1126. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1127. <img :src="w.works" @click="previewImg(w.works)" alt />
  1128. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1129. rightW:
  1130. w.userid == userid ||
  1131. tType == 1 ||
  1132. tType == 4 ||
  1133. w.ateacher == userid,
  1134. }">
  1135. {{ JSON.parse(w.score).wScore }}分
  1136. </div>
  1137. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1138. :class="{
  1139. rightW:
  1140. w.userid == userid ||
  1141. tType == 1 ||
  1142. tType == 4 ||
  1143. w.ateacher == userid,
  1144. }">
  1145. 评分
  1146. </div>
  1147. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1148. w.userid == userid || tType == 1 || tType == 4
  1149. " @click.stop="deleteWorks(w.wid)" alt />
  1150. </div>
  1151. <div class="workImg" v-if="w.type == 1">
  1152. <img :src="word" @click="openFile(w.works)" alt />
  1153. <!-- @click="openFile(w.works)" -->
  1154. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1155. rightW:
  1156. w.userid == userid ||
  1157. tType == 1 ||
  1158. tType == 4 ||
  1159. w.ateacher == userid,
  1160. }">
  1161. {{ JSON.parse(w.score).wScore }}分
  1162. </div>
  1163. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1164. :class="{
  1165. rightW:
  1166. w.userid == userid ||
  1167. tType == 1 ||
  1168. tType == 4 ||
  1169. w.ateacher == userid,
  1170. }">
  1171. 评分
  1172. </div>
  1173. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1174. w.userid == userid || tType == 1 || tType == 4
  1175. " @click.stop="deleteWorks(w.wid)" alt />
  1176. </div>
  1177. <div class="workImg" v-if="w.type == 3">
  1178. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1179. <!-- @click="openVideo(w.works)" -->
  1180. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1181. rightW:
  1182. w.userid == userid ||
  1183. tType == 1 ||
  1184. tType == 4 ||
  1185. w.ateacher == userid,
  1186. }">
  1187. {{ JSON.parse(w.score).wScore }}分
  1188. </div>
  1189. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1190. :class="{
  1191. rightW:
  1192. w.userid == userid ||
  1193. tType == 1 ||
  1194. tType == 4 ||
  1195. w.ateacher == userid,
  1196. }">
  1197. 评分
  1198. </div>
  1199. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1200. w.userid == userid || tType == 1 || tType == 4
  1201. " @click.stop="deleteWorks(w.wid)" alt />
  1202. </div>
  1203. <div class="comment" style="min-width: 200px">
  1204. <div class="worksName">
  1205. <div>{{ w.sName }}</div>
  1206. </div>
  1207. <div class="commentList">
  1208. <div class="commentList">
  1209. <div class="commentImg" @click="
  1210. isLikes(w.wid, userid, 1, null, w.isLikes)
  1211. ">
  1212. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1213. </div>
  1214. <div>{{ w.likesCount }}</div>
  1215. </div>
  1216. <div class="commentList" style="margin-right: 15px">
  1217. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1218. <img src="../assets/icon/comment/comment.png" alt="" />
  1219. </div>
  1220. <div>{{ w.commentCount }}</div>
  1221. </div>
  1222. </div>
  1223. </div>
  1224. </div>
  1225. </div>
  1226. <div style="font-size: 18px">未提交</div>
  1227. <div class="noWorksS">
  1228. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1229. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)">
  1230. {{ s.student }}
  1231. </div>
  1232. </div>
  1233. </div>
  1234. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  1235. <div class="zuoyeYulan" v-if="
  1236. worksStudent.length &&
  1237. worksStudent[toolIndex].length > 0
  1238. ">
  1239. <span>作业预览</span>
  1240. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1241. </div>
  1242. <div class="worksDetailBox" v-if="
  1243. worksStudent.length &&
  1244. worksStudent[toolIndex].length > 0
  1245. ">
  1246. <div class="works" style="
  1247. width: 200px;
  1248. height: 140px;
  1249. margin: 10px 10px 10px 0;
  1250. border-radius: 15px;
  1251. box-shadow: 0 0 6px 1px #dfdada;
  1252. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1253. :class="w.type == 1 ? 'isTypeOne' : ''">
  1254. <div class="workImg" v-if="w.type == 0">
  1255. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1256. <img :src="w.works" @click="previewImg(w.works)" alt />
  1257. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1258. rightW:
  1259. w.userid == userid ||
  1260. tType == 1 ||
  1261. tType == 4 ||
  1262. w.ateacher == userid,
  1263. }">
  1264. {{ JSON.parse(w.score).wScore }}分
  1265. </div>
  1266. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1267. :class="{
  1268. rightW:
  1269. w.userid == userid ||
  1270. tType == 1 ||
  1271. tType == 4 ||
  1272. w.ateacher == userid,
  1273. }">
  1274. 评分
  1275. </div>
  1276. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1277. w.userid == userid || tType == 1 || tType == 4
  1278. " @click.stop="deleteWorks(w.wid)" alt />
  1279. </div>
  1280. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  1281. <img :src="word" @click="openFile(w.works)" alt />
  1282. <!-- @click="openFile(w.works)" -->
  1283. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1284. rightW:
  1285. w.userid == userid ||
  1286. tType == 1 ||
  1287. tType == 4 ||
  1288. w.ateacher == userid,
  1289. }">
  1290. {{ JSON.parse(w.score).wScore }}分
  1291. </div>
  1292. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1293. :class="{
  1294. rightW:
  1295. w.userid == userid ||
  1296. tType == 1 ||
  1297. tType == 4 ||
  1298. w.ateacher == userid,
  1299. }">
  1300. 评分
  1301. </div>
  1302. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1303. w.userid == userid || tType == 1 || tType == 4
  1304. " @click.stop="deleteWorks(w.wid)" alt />
  1305. </div>
  1306. <div class="workImg" v-if="w.type == 3">
  1307. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1308. <!-- @click="openVideo(w.works)" -->
  1309. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1310. rightW:
  1311. w.userid == userid ||
  1312. tType == 1 ||
  1313. tType == 4 ||
  1314. w.ateacher == userid,
  1315. }">
  1316. {{ JSON.parse(w.score).wScore }}分
  1317. </div>
  1318. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1319. :class="{
  1320. rightW:
  1321. w.userid == userid ||
  1322. tType == 1 ||
  1323. tType == 4 ||
  1324. w.ateacher == userid,
  1325. }">
  1326. 评分
  1327. </div>
  1328. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1329. w.userid == userid || tType == 1 || tType == 4
  1330. " @click.stop="deleteWorks(w.wid)" alt />
  1331. </div>
  1332. <div class="comment" style="min-width: 200px">
  1333. <div class="worksName">
  1334. <div style="cursor: pointer" @click="openSname(w.sName, w.wid)">
  1335. {{ w.sName }}
  1336. </div>
  1337. </div>
  1338. <div class="commentList">
  1339. <div class="commentList">
  1340. <div class="commentImg" @click="
  1341. isLikes(w.wid, userid, 1, null, w.isLikes)
  1342. ">
  1343. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1344. </div>
  1345. <div>{{ w.likesCount }}</div>
  1346. </div>
  1347. <div class="commentList" style="margin-right: 15px">
  1348. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1349. <img src="../assets/icon/comment/comment.png" alt="" />
  1350. </div>
  1351. <div>{{ w.commentCount }}</div>
  1352. </div>
  1353. </div>
  1354. </div>
  1355. </div>
  1356. </div>
  1357. <div style="font-size: 18px">未提交</div>
  1358. <div class="noWorksS">
  1359. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1360. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)">
  1361. {{ s.student }}
  1362. </div>
  1363. </div>
  1364. </div>
  1365. <div v-if="
  1366. tType &&
  1367. ((tType == 2 && sIsOpen == true) ||
  1368. tType == 1 ||
  1369. tType == 4) &&
  1370. tool.tool.indexOf(4) != -1 &&
  1371. (tool.askJson[0].answer ||
  1372. tool.askJson[0].answer === 0) &&
  1373. checkJson[toolIndex].length
  1374. " class="xuan_right_box">
  1375. <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
  1376. <div>
  1377. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  1378. </div>
  1379. <div class="right_box_xuan">
  1380. <span>正确率</span>
  1381. <span>{{
  1382. (checkJson[toolIndex][index].right
  1383. ? checkJson[toolIndex][index].right
  1384. : 0) + "%"
  1385. }}</span>
  1386. </div>
  1387. </div>
  1388. </div>
  1389. <div class="xuan_right_box" style="background: unset" v-if="
  1390. tType &&
  1391. ((tType == 2 && sIsOpen == true) ||
  1392. tType == 1 ||
  1393. tType == 4) &&
  1394. tool.tool.indexOf(4) != -1
  1395. ">
  1396. <AskStatic v-if="
  1397. worksStudent.length &&
  1398. worksStudent[toolIndex].length > 0
  1399. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic>
  1400. </div>
  1401. <div v-if="
  1402. tType &&
  1403. ((tType == 2 && sIsOpen == true) ||
  1404. tType == 1 ||
  1405. tType == 4) &&
  1406. tool.tool.indexOf(4) != -1
  1407. " class="worksBox">
  1408. <div class="zuoyeYulan" v-if="
  1409. worksStudent.length &&
  1410. worksStudent[toolIndex].length > 0
  1411. ">
  1412. <span>作业预览</span>
  1413. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1414. </div>
  1415. <div>
  1416. <div class="worksDetailBox" v-if="
  1417. worksStudent.length &&
  1418. worksStudent[toolIndex].length > 0
  1419. ">
  1420. <div v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex" class="isWorksName" @click="
  1421. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1422. ">
  1423. {{ w.sName }}
  1424. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="
  1425. w.userid == userid || tType == 1 || tType == 4
  1426. " @click.stop="deleteWorks(w.wid)" alt />
  1427. </div>
  1428. <!-- <div class="works" style="
  1429. width: 200px;
  1430. height: 140px;
  1431. border-radius: 10px;
  1432. box-shadow: 0 0 6px 1px #dfdada;
  1433. overflow: hidden;
  1434. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1435. <div class="workImg">
  1436. <img src="../assets/icon/works/noImg.png" @click="
  1437. openTools(
  1438. 4,
  1439. toolIndex,
  1440. taskCount,
  1441. w.works,
  1442. w.sName
  1443. )
  1444. " alt />
  1445. </div>
  1446. <div class="worksName">
  1447. <div>{{ w.sName }}</div>
  1448. <div>{{ w.time }}</div>
  1449. </div>
  1450. </div> -->
  1451. </div>
  1452. </div>
  1453. <div style="font-size: 18px">未提交</div>
  1454. <div class="noWorksS">
  1455. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1456. {{ s.student }}
  1457. </div>
  1458. </div>
  1459. </div>
  1460. <div v-if="
  1461. tType &&
  1462. ((tType == 2 && sIsOpen == true) ||
  1463. tType == 1 ||
  1464. tType == 4) &&
  1465. tool.tool.indexOf(45) != -1 &&
  1466. (tool.testJson.testJson[0].answer ||
  1467. tool.testJson.testJson[0].answer === 0) &&
  1468. checkJson[toolIndex].length
  1469. " class="xuan_right_box">
  1470. <div class="tool_right_box" v-for="(item, index) in tool.testJson.testJson" :key="index">
  1471. <div>
  1472. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  1473. </div>
  1474. <div class="right_box_xuan">
  1475. <span>正确率</span>
  1476. <span>{{
  1477. (checkJson[toolIndex][index].right
  1478. ? checkJson[toolIndex][index].right
  1479. : 0) + "%"
  1480. }}</span>
  1481. </div>
  1482. </div>
  1483. </div>
  1484. <div class="xuan_right_box" style="background: unset" v-if="
  1485. tType &&
  1486. ((tType == 2 && sIsOpen == true) ||
  1487. tType == 1 ||
  1488. tType == 4) &&
  1489. tool.tool.indexOf(45) != -1
  1490. ">
  1491. <AskStatic2 v-if="
  1492. worksStudent.length &&
  1493. worksStudent[toolIndex].length > 0
  1494. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic2>
  1495. </div>
  1496. <div v-if="
  1497. tType &&
  1498. ((tType == 2 && sIsOpen == true) ||
  1499. tType == 1 ||
  1500. tType == 4) &&
  1501. tool.tool.indexOf(45) != -1
  1502. " class="worksBox">
  1503. <div class="zuoyeYulan" v-if="
  1504. worksStudent.length &&
  1505. worksStudent[toolIndex].length > 0
  1506. ">
  1507. <span>作业预览</span>
  1508. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1509. </div>
  1510. <div>
  1511. <div class="worksDetailBox" v-if="
  1512. worksStudent.length &&
  1513. worksStudent[toolIndex].length > 0
  1514. ">
  1515. <div v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex" class="isWorksName" @click="
  1516. openTools(
  1517. 45,
  1518. toolIndex,
  1519. taskCount,
  1520. w.works,
  1521. w.sName
  1522. )
  1523. ">
  1524. {{ w.sName }}
  1525. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="
  1526. w.userid == userid || tType == 1 || tType == 4
  1527. " @click.stop="deleteWorks(w.wid)" alt />
  1528. </div>
  1529. </div>
  1530. </div>
  1531. <div style="font-size: 18px">未提交</div>
  1532. <div class="noWorksS">
  1533. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1534. {{ s.student }}
  1535. </div>
  1536. </div>
  1537. </div>
  1538. <div v-if="
  1539. tType &&
  1540. ((tType == 2 && sIsOpen == true) ||
  1541. tType == 1 ||
  1542. tType == 4) &&
  1543. tool.tool.indexOf(15) != -1
  1544. " class="worksBox">
  1545. <div class="zuoyeYulan" v-if="
  1546. worksStudent.length &&
  1547. worksStudent[toolIndex].length > 0
  1548. ">
  1549. <span>作业预览</span>
  1550. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1551. </div>
  1552. <div class="worksDetailBox" v-if="
  1553. worksStudent.length &&
  1554. worksStudent[toolIndex].length > 0
  1555. ">
  1556. <div class="works" v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1557. <div class="workImg" style="
  1558. border-radius: 15px;
  1559. box-shadow: #eee 0px 0px 5px 5px;
  1560. ">
  1561. <!-- <img
  1562. src="../assets/icon/works/noImg.png"
  1563. @click="openTools(15, toolIndex, taskCount, w.works)"
  1564. alt=""
  1565. />-->
  1566. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  1567. @click="commentOther(w, toolIndex, wIndex)">
  1568. <!-- <div>{{ w.sName }}</div> -->
  1569. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  1570. placement="top">
  1571. <div class="answerContent">
  1572. {{ JSON.parse(w.works)[0].answer }}
  1573. </div>
  1574. </el-tooltip>
  1575. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1576. rightW:
  1577. w.userid == userid ||
  1578. tType == 1 ||
  1579. tType == 4,
  1580. }">
  1581. {{ JSON.parse(w.score).wScore }}分
  1582. </div>
  1583. <div class="answerScore" @click.stop="openScore(w)"
  1584. v-else-if="courseDetail.userid == userid" :class="{
  1585. rightW:
  1586. w.userid == userid ||
  1587. tType == 1 ||
  1588. tType == 4,
  1589. }">
  1590. 评分
  1591. </div>
  1592. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1593. w.userid == userid || tType == 1 || tType == 4
  1594. " @click.stop="deleteWorks(w.wid)" alt />
  1595. </div>
  1596. <div class="comment">
  1597. <div class="worksName">
  1598. <div>{{ w.sName }}</div>
  1599. </div>
  1600. <div class="commentList">
  1601. <div class="commentImg" @click="
  1602. isLikes(w.wid, userid, 1, null, w.isLikes)
  1603. ">
  1604. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1605. </div>
  1606. <div>{{ w.likesCount }}</div>
  1607. </div>
  1608. <div class="commentList" style="margin-right: 15px">
  1609. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1610. <img src="../assets/icon/comment/comment.png" alt="" />
  1611. </div>
  1612. <div>{{ w.commentCount }}</div>
  1613. </div>
  1614. </div>
  1615. </div>
  1616. </div>
  1617. </div>
  1618. <div style="font-size: 18px">未提交</div>
  1619. <div class="noWorksS">
  1620. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1621. {{ s.student }}
  1622. </div>
  1623. </div>
  1624. </div>
  1625. <div v-if="
  1626. tType &&
  1627. ((tType == 2 && sIsOpen == true) ||
  1628. tType == 1 ||
  1629. tType == 4) &&
  1630. tool.tool.indexOf(1) != -1
  1631. " class="worksBox">
  1632. <div class="zuoyeYulan" v-if="
  1633. worksStudent.length &&
  1634. worksStudent[toolIndex].length > 0
  1635. ">
  1636. <span>作业预览</span>
  1637. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1638. </div>
  1639. <div class="worksDetailBox" v-if="
  1640. worksStudent.length &&
  1641. worksStudent[toolIndex].length > 0
  1642. ">
  1643. <div class="works" style="
  1644. width: 200px;
  1645. height: 140px;
  1646. margin: 10px 10px 10px 0;
  1647. border-radius: 15px;
  1648. box-shadow: 0 0 6px 1px #dfdada;
  1649. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1650. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  1651. <div class="workImg">
  1652. <img :src="w.works" @click="previewImg(w.works)" alt />
  1653. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1654. rightW:
  1655. w.userid == userid || tType == 1 || tType == 4,
  1656. }">
  1657. {{ JSON.parse(w.score).wScore }}分
  1658. </div>
  1659. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1660. :class="{
  1661. rightW:
  1662. w.userid == userid || tType == 1 || tType == 4,
  1663. }">
  1664. 评分
  1665. </div>
  1666. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1667. w.userid == userid || tType == 1 || tType == 4
  1668. " @click.stop="deleteWorks(w.wid)" alt />
  1669. </div>
  1670. <div class="comment" style="min-width: 200px">
  1671. <div class="worksName">
  1672. <div>{{ w.sName }}</div>
  1673. </div>
  1674. <div class="commentList">
  1675. <div class="commentList">
  1676. <div class="commentImg" @click="
  1677. isLikes(w.wid, userid, 1, null, w.isLikes)
  1678. ">
  1679. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1680. </div>
  1681. <div>{{ w.likesCount }}</div>
  1682. </div>
  1683. <div class="commentList" style="margin-right: 15px">
  1684. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1685. <img src="../assets/icon/comment/comment.png" alt="" />
  1686. </div>
  1687. <div>{{ w.commentCount }}</div>
  1688. </div>
  1689. </div>
  1690. </div>
  1691. </div>
  1692. </div>
  1693. <div style="font-size: 18px">未提交</div>
  1694. <div class="noWorksS">
  1695. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1696. {{ s.student }}
  1697. </div>
  1698. </div>
  1699. </div>
  1700. <div v-if="
  1701. tType &&
  1702. ((tType == 2 && sIsOpen == true) ||
  1703. tType == 1 ||
  1704. tType == 4) &&
  1705. tool.tool.indexOf(3) != -1
  1706. " class="worksBox">
  1707. <div class="zuoyeYulan" v-if="
  1708. worksStudent.length &&
  1709. worksStudent[toolIndex].length > 0
  1710. ">
  1711. <span>作业预览</span>
  1712. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1713. </div>
  1714. <div class="worksDetailBox" v-if="
  1715. worksStudent.length &&
  1716. worksStudent[toolIndex].length > 0
  1717. ">
  1718. <div class="works" style="
  1719. width: 200px;
  1720. height: 140px;
  1721. margin: 10px 10px 10px 0;
  1722. border-radius: 15px;
  1723. box-shadow: 0 0 6px 1px #dfdada;
  1724. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1725. <!-- @click="previewImg(w.works)" -->
  1726. <div class="workImg">
  1727. <img :src="w.works" @click="previewImg(w.works)" alt />
  1728. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1729. rightW:
  1730. w.userid == userid || tType == 1 || tType == 4,
  1731. }">
  1732. {{ JSON.parse(w.score).wScore }}分
  1733. </div>
  1734. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1735. :class="{
  1736. rightW:
  1737. w.userid == userid || tType == 1 || tType == 4,
  1738. }">
  1739. 评分
  1740. </div>
  1741. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1742. w.userid == userid || tType == 1 || tType == 4
  1743. " @click.stop="deleteWorks(w.wid)" alt />
  1744. </div>
  1745. <div class="comment" style="min-width: 200px">
  1746. <div class="worksName">
  1747. <div>{{ w.sName }}</div>
  1748. </div>
  1749. <div class="commentList">
  1750. <div class="commentList">
  1751. <div class="commentImg" @click="
  1752. isLikes(w.wid, userid, 1, null, w.isLikes)
  1753. ">
  1754. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1755. </div>
  1756. <div>{{ w.likesCount }}</div>
  1757. </div>
  1758. <div class="commentList" style="margin-right: 15px">
  1759. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1760. <img src="../assets/icon/comment/comment.png" alt="" />
  1761. </div>
  1762. <div>{{ w.commentCount }}</div>
  1763. </div>
  1764. </div>
  1765. </div>
  1766. </div>
  1767. </div>
  1768. <div style="font-size: 18px">未提交</div>
  1769. <div class="noWorksS">
  1770. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1771. {{ s.student }}
  1772. </div>
  1773. </div>
  1774. </div>
  1775. <div v-if="
  1776. tType &&
  1777. ((tType == 2 && sIsOpen == true) ||
  1778. tType == 1 ||
  1779. tType == 4) &&
  1780. tool.tool.indexOf(6) != -1
  1781. " class="worksBox">
  1782. <div class="zuoyeYulan" v-if="
  1783. worksStudent.length &&
  1784. worksStudent[toolIndex].length > 0
  1785. ">
  1786. <span>作业预览</span>
  1787. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1788. </div>
  1789. <div class="worksDetailBox" v-if="
  1790. worksStudent.length &&
  1791. worksStudent[toolIndex].length > 0
  1792. ">
  1793. <div class="works" style="
  1794. width: 200px;
  1795. height: 140px;
  1796. margin: 10px 10px 10px 0;
  1797. border-radius: 15px;
  1798. box-shadow: 0 0 6px 1px #dfdada;
  1799. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1800. <!-- @click="previewImg(w.works)" -->
  1801. <div class="workImg">
  1802. <img :src="w.works" @click="previewImg(w.works)" alt />
  1803. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1804. rightW:
  1805. w.userid == userid || tType == 1 || tType == 4,
  1806. }">
  1807. {{ JSON.parse(w.score).wScore }}分
  1808. </div>
  1809. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1810. :class="{
  1811. rightW:
  1812. w.userid == userid || tType == 1 || tType == 4,
  1813. }">
  1814. 评分
  1815. </div>
  1816. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1817. w.userid == userid || tType == 1 || tType == 4
  1818. " @click.stop="deleteWorks(w.wid)" alt />
  1819. </div>
  1820. <div class="comment" style="min-width: 200px">
  1821. <div class="worksName">
  1822. <div>{{ w.sName }}</div>
  1823. </div>
  1824. <div class="commentList">
  1825. <div class="commentList">
  1826. <div class="commentImg" @click="
  1827. isLikes(w.wid, userid, 1, null, w.isLikes)
  1828. ">
  1829. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1830. </div>
  1831. <div>{{ w.likesCount }}</div>
  1832. </div>
  1833. <div class="commentList" style="margin-right: 15px">
  1834. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1835. <img src="../assets/icon/comment/comment.png" alt="" />
  1836. </div>
  1837. <div>{{ w.commentCount }}</div>
  1838. </div>
  1839. </div>
  1840. </div>
  1841. </div>
  1842. </div>
  1843. <div style="font-size: 18px">未提交</div>
  1844. <div class="noWorksS">
  1845. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1846. {{ s.student }}
  1847. </div>
  1848. </div>
  1849. </div>
  1850. <div v-if="
  1851. tType &&
  1852. ((tType == 2 && sIsOpen == true) ||
  1853. tType == 1 ||
  1854. tType == 4) &&
  1855. tool.tool.indexOf(7) != -1
  1856. " class="worksBox">
  1857. <div class="zuoyeYulan" v-if="
  1858. worksStudent.length &&
  1859. worksStudent[toolIndex].length > 0
  1860. ">
  1861. <span>作业预览</span>
  1862. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1863. </div>
  1864. <div class="worksDetailBox" v-if="
  1865. worksStudent.length &&
  1866. worksStudent[toolIndex].length > 0
  1867. ">
  1868. <div class="works" style="
  1869. width: 200px;
  1870. height: 140px;
  1871. margin: 10px 10px 10px 0;
  1872. border-radius: 15px;
  1873. box-shadow: 0 0 6px 1px #dfdada;
  1874. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1875. <!-- @click="previewImg(w.works)" -->
  1876. <div class="workImg">
  1877. <img :src="w.works" @click="previewImg(w.works)" alt />
  1878. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1879. rightW:
  1880. w.userid == userid || tType == 1 || tType == 4,
  1881. }">
  1882. {{ JSON.parse(w.score).wScore }}分
  1883. </div>
  1884. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1885. :class="{
  1886. rightW:
  1887. w.userid == userid || tType == 1 || tType == 4,
  1888. }">
  1889. 评分
  1890. </div>
  1891. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1892. w.userid == userid || tType == 1 || tType == 4
  1893. " @click.stop="deleteWorks(w.wid)" alt />
  1894. </div>
  1895. <div class="comment" style="min-width: 200px">
  1896. <div class="worksName">
  1897. <div>{{ w.sName }}</div>
  1898. </div>
  1899. <div class="commentList">
  1900. <div class="commentList">
  1901. <div class="commentImg" @click="
  1902. isLikes(w.wid, userid, 1, null, w.isLikes)
  1903. ">
  1904. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1905. </div>
  1906. <div>{{ w.likesCount }}</div>
  1907. </div>
  1908. <div class="commentList" style="margin-right: 15px">
  1909. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1910. <img src="../assets/icon/comment/comment.png" alt="" />
  1911. </div>
  1912. <div>{{ w.commentCount }}</div>
  1913. </div>
  1914. </div>
  1915. </div>
  1916. </div>
  1917. </div>
  1918. <div style="font-size: 18px">未提交</div>
  1919. <div class="noWorksS">
  1920. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1921. {{ s.student }}
  1922. </div>
  1923. </div>
  1924. </div>
  1925. <div v-if="
  1926. tType &&
  1927. ((tType == 2 && sIsOpen == true) ||
  1928. tType == 1 ||
  1929. tType == 4) &&
  1930. tool.tool.indexOf(26) != -1
  1931. " class="worksBox">
  1932. <div class="zuoyeYulan" v-if="
  1933. worksStudent.length &&
  1934. worksStudent[toolIndex].length > 0
  1935. ">
  1936. <span>作业预览</span>
  1937. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1938. </div>
  1939. <div class="worksDetailBox" v-if="
  1940. worksStudent.length &&
  1941. worksStudent[toolIndex].length > 0
  1942. ">
  1943. <div class="works" style="width: 240px; height: 140px; overflow: hidden"
  1944. v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1945. :class="w.type == 1 ? 'isTypeOne' : ''">
  1946. <div class="workImg" v-if="w.type == 0">
  1947. <img :src="w.works" @click="previewImg(w.works)" alt />
  1948. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1949. w.userid == userid || tType == 1 || tType == 4
  1950. " @click.stop="deleteWorks(w.wid)" alt />
  1951. </div>
  1952. <div class="workImg" v-if="w.type == 1">
  1953. <img :src="word" @click="openFile(w.works)" alt />
  1954. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1955. w.userid == userid || tType == 1 || tType == 4
  1956. " @click.stop="deleteWorks(w.wid)" alt />
  1957. </div>
  1958. <div class="worksName">
  1959. <div>{{ w.sName }}</div>
  1960. </div>
  1961. </div>
  1962. </div>
  1963. <div style="font-size: 18px">未提交</div>
  1964. <div class="noWorksS">
  1965. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1966. {{ s.student }}
  1967. </div>
  1968. </div>
  1969. </div>
  1970. <div v-if="
  1971. tType &&
  1972. ((tType == 2 && sIsOpen == true) ||
  1973. tType == 1 ||
  1974. tType == 4) &&
  1975. tool.tool.indexOf(40) != -1
  1976. " class="worksBox">
  1977. <div class="zuoyeYulan" v-if="
  1978. worksStudent.length &&
  1979. worksStudent[toolIndex].length > 0
  1980. ">
  1981. <span>作业预览</span>
  1982. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1983. </div>
  1984. <div class="worksDetailBox" v-if="
  1985. worksStudent.length &&
  1986. worksStudent[toolIndex].length > 0
  1987. ">
  1988. <div class="works" style="
  1989. width: 200px;
  1990. height: 140px;
  1991. margin: 10px 10px 10px 0;
  1992. border-radius: 15px;
  1993. box-shadow: 0 0 6px 1px #dfdada;
  1994. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1995. :class="w.type == 1 ? 'isTypeOne' : ''">
  1996. <div class="workImg">
  1997. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  1998. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1999. w.userid == userid || tType == 1 || tType == 4
  2000. " @click.stop="deleteWorks(w.wid)" alt />
  2001. </div>
  2002. <div class="comment" style="min-width: 200px">
  2003. <div class="worksName">
  2004. <div>{{ w.sName }}</div>
  2005. </div>
  2006. <div class="commentList">
  2007. <div class="commentList">
  2008. <div class="commentImg" @click="
  2009. isLikes(w.wid, userid, 1, null, w.isLikes)
  2010. ">
  2011. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2012. </div>
  2013. <div>{{ w.likesCount }}</div>
  2014. </div>
  2015. <div class="commentList" style="margin-right: 15px">
  2016. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2017. <img src="../assets/icon/comment/comment.png" alt="" />
  2018. </div>
  2019. <div>{{ w.commentCount }}</div>
  2020. </div>
  2021. </div>
  2022. </div>
  2023. </div>
  2024. </div>
  2025. <div style="font-size: 18px">未提交</div>
  2026. <div class="noWorksS">
  2027. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2028. {{ s.student }}
  2029. </div>
  2030. </div>
  2031. </div>
  2032. <div v-if="
  2033. tType &&
  2034. tType == 2 &&
  2035. !sIsOpen &&
  2036. tool.tool.indexOf(40) != -1
  2037. " class="worksBox">
  2038. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  2039. <span>作业预览</span>
  2040. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2041. </div>
  2042. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  2043. <div class="works" style="
  2044. width: 200px;
  2045. height: 140px;
  2046. margin: 10px 10px 10px 0;
  2047. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  2048. <div class="workImg">
  2049. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  2050. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2051. w.userid == userid || tType == 1 || tType == 4
  2052. " @click.stop="deleteWorks(w.wid)" alt />
  2053. </div>
  2054. <div class="worksName">
  2055. <div>{{ w.sName }}</div>
  2056. </div>
  2057. </div>
  2058. </div>
  2059. </div>
  2060. <div v-if="
  2061. tType &&
  2062. ((tType == 2 && sIsOpen == true) ||
  2063. tType == 1 ||
  2064. tType == 4) &&
  2065. tool.tool.indexOf(41) != -1
  2066. ">
  2067. <AnswerData2 v-if="
  2068. worksStudent.length &&
  2069. worksStudent[toolIndex].length > 0
  2070. " :problemJson="tool.selectJson.answer" :people="worksStudent[toolIndex]"></AnswerData2>
  2071. </div>
  2072. <div v-if="
  2073. tType &&
  2074. ((tType == 2 && sIsOpen == true) ||
  2075. tType == 1 ||
  2076. tType == 4) &&
  2077. tool.tool.indexOf(41) != -1
  2078. " class="worksBox">
  2079. <div class="zuoyeYulan" v-if="
  2080. worksStudent.length &&
  2081. worksStudent[toolIndex].length > 0
  2082. ">
  2083. <span>作业预览</span>
  2084. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2085. </div>
  2086. <div class="worksDetailBox" v-if="
  2087. worksStudent.length &&
  2088. worksStudent[toolIndex].length > 0
  2089. ">
  2090. <div v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex" class="isWorksName"
  2091. @click="openXz(w, toolIndex)">
  2092. {{ w.sName }}
  2093. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  2094. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  2095. </div>
  2096. <!-- <div
  2097. class="works"
  2098. style="
  2099. width: 200px;
  2100. height: 140px;
  2101. margin: 10px 10px 10px 0;
  2102. border-radius: 15px;
  2103. box-shadow: 0 0 6px 1px #dfdada;
  2104. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  2105. :class="w.type == 5 ? 'isTypeOne' : ''">
  2106. <div class="workImg">
  2107. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  2108. </div>
  2109. <div class="worksName">
  2110. <div>{{ w.sName }}</div>
  2111. </div>
  2112. </div> -->
  2113. </div>
  2114. <div style="font-size: 18px">未提交</div>
  2115. <div class="noWorksS">
  2116. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2117. {{ s.student }}
  2118. </div>
  2119. </div>
  2120. </div>
  2121. <div v-if="
  2122. tType &&
  2123. tType == 2 &&
  2124. !sIsOpen &&
  2125. tool.tool.indexOf(41) != -1
  2126. " class="worksBox">
  2127. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  2128. <span>作业预览</span>
  2129. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2130. </div>
  2131. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  2132. <div class="works" style="
  2133. width: 200px;
  2134. height: 140px;
  2135. margin: 10px 10px 10px 0;
  2136. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  2137. <div class="workImg">
  2138. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  2139. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2140. w.userid == userid || tType == 1 || tType == 4
  2141. " @click.stop="deleteWorks(w.wid)" alt />
  2142. </div>
  2143. <div class="worksName">
  2144. <div>{{ w.sName }}</div>
  2145. </div>
  2146. </div>
  2147. </div>
  2148. </div>
  2149. <div v-if="false" class="xuan_right_box">
  2150. <div class="tool_right_box" v-for="(item, index) in tool.sentenceList" :key="index">
  2151. <div>
  2152. <span>{{ index + 1 + "、" + item.sentenceTitle }}</span>
  2153. </div>
  2154. <div class="right_box_xuan">
  2155. <span>正确率</span>
  2156. <span>{{
  2157. (checkJson[toolIndex][index].right
  2158. ? checkJson[toolIndex][index].right
  2159. : 0) + "%"
  2160. }}</span>
  2161. </div>
  2162. <div class="right_box_xuan">
  2163. <span>答对人数</span>
  2164. <span>{{
  2165. checkJson[toolIndex][index].rightPerson.length
  2166. }}</span>
  2167. </div>
  2168. </div>
  2169. </div>
  2170. <div v-if="
  2171. tType &&
  2172. ((tType == 2 && sIsOpen == true) ||
  2173. tType == 1 ||
  2174. tType == 4) &&
  2175. tool.tool.indexOf(47) != -1
  2176. ">
  2177. <AnswerData v-if="
  2178. checkJson[toolIndex].length &&
  2179. (tool.sentenceList || tool.sentenceList.length > 0)
  2180. " :people="checkJson[toolIndex]"></AnswerData>
  2181. </div>
  2182. <div v-if="
  2183. tType &&
  2184. tType == 2 &&
  2185. !sIsOpen &&
  2186. tool.tool.indexOf(47) != -1
  2187. " class="worksBox">
  2188. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  2189. <span>作业预览</span>
  2190. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2191. </div>
  2192. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  2193. <div class="works" style="
  2194. width: 200px;
  2195. height: 140px;
  2196. margin: 10px 10px 10px 0;
  2197. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  2198. <!-- @click="openXz(w, toolIndex)" -->
  2199. <div class="workImg" @click="openSen(w, toolIndex)">
  2200. <img src="../assets/icon/works/noImg.png" alt />
  2201. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2202. w.userid == userid || tType == 1 || tType == 4
  2203. " @click.stop="deleteWorks(w.wid)" alt />
  2204. </div>
  2205. <div class="worksName">
  2206. <div>
  2207. {{ w.sName }}
  2208. </div>
  2209. </div>
  2210. </div>
  2211. </div>
  2212. </div>
  2213. <div v-if="
  2214. tType &&
  2215. ((tType == 2 && sIsOpen == true) ||
  2216. tType == 1 ||
  2217. tType == 4) &&
  2218. tool.tool.indexOf(47) != -1
  2219. " class="worksBox">
  2220. <div class="zuoyeYulan" v-if="
  2221. worksStudent.length &&
  2222. worksStudent[toolIndex].length > 0
  2223. ">
  2224. <span>作业预览</span>
  2225. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2226. </div>
  2227. <div class="worksDetailBox" v-if="
  2228. worksStudent.length &&
  2229. worksStudent[toolIndex].length > 0
  2230. ">
  2231. <!-- @click="openXz(w, toolIndex)" -->
  2232. <div v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex" class="isWorksName"
  2233. @click="openSen(w, toolIndex)">
  2234. {{ w.sName }}
  2235. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  2236. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  2237. </div>
  2238. </div>
  2239. <div style="font-size: 18px">未提交</div>
  2240. <div class="noWorksS">
  2241. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2242. {{ s.student }}
  2243. </div>
  2244. </div>
  2245. </div>
  2246. <div v-if="
  2247. tType &&
  2248. ((tType == 2 && sIsOpen == true) ||
  2249. tType == 1 ||
  2250. tType == 4) &&
  2251. tool.tool.indexOf(48) != -1
  2252. " class="worksBox">
  2253. <div class="zuoyeYulan" v-if="
  2254. worksStudent.length &&
  2255. worksStudent[toolIndex].length > 0
  2256. ">
  2257. <span>作业预览</span>
  2258. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2259. </div>
  2260. <div class="worksDetailBox" v-if="
  2261. worksStudent.length &&
  2262. worksStudent[toolIndex].length > 0
  2263. ">
  2264. <div class="works" style="
  2265. width: 200px;
  2266. height: 140px;
  2267. margin: 10px 10px 10px 0;
  2268. border-radius: 15px;
  2269. box-shadow: 0 0 6px 1px #dfdada;
  2270. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  2271. :class="w.type == 1 ? 'isTypeOne' : ''">
  2272. <div class="workImg">
  2273. <img :src="word" @click="openTable(w)" alt />
  2274. <!-- @click="openFile(w.works)" -->
  2275. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2276. rightW:
  2277. w.userid == userid ||
  2278. tType == 1 ||
  2279. tType == 4 ||
  2280. w.ateacher == userid,
  2281. }">
  2282. {{ JSON.parse(w.score).wScore }}分
  2283. </div>
  2284. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2285. :class="{
  2286. rightW:
  2287. w.userid == userid ||
  2288. tType == 1 ||
  2289. tType == 4 ||
  2290. w.ateacher == userid,
  2291. }">
  2292. 评分
  2293. </div>
  2294. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2295. w.userid == userid || tType == 1 || tType == 4
  2296. " @click.stop="deleteWorks(w.wid)" alt />
  2297. </div>
  2298. <div class="comment" style="min-width: 200px">
  2299. <div class="worksName">
  2300. <div>{{ w.sName }}</div>
  2301. </div>
  2302. <div class="commentList">
  2303. <div class="commentList">
  2304. <div class="commentImg" @click="
  2305. isLikes(w.wid, userid, 1, null, w.isLikes)
  2306. ">
  2307. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2308. </div>
  2309. <div>{{ w.likesCount }}</div>
  2310. </div>
  2311. <div class="commentList" style="margin-right: 15px">
  2312. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2313. <img src="../assets/icon/comment/comment.png" alt="" />
  2314. </div>
  2315. <div>{{ w.commentCount }}</div>
  2316. </div>
  2317. </div>
  2318. </div>
  2319. </div>
  2320. </div>
  2321. <div style="font-size: 18px">未提交</div>
  2322. <div class="noWorksS">
  2323. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2324. {{ s.student }}
  2325. </div>
  2326. </div>
  2327. </div>
  2328. <div v-if="
  2329. tType &&
  2330. tType == 2 &&
  2331. !sIsOpen &&
  2332. tool.tool.indexOf(48) != -1
  2333. " class="worksBox">
  2334. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  2335. <span>作业预览</span>
  2336. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2337. </div>
  2338. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  2339. <div class="works" style="
  2340. width: 200px;
  2341. height: 140px;
  2342. margin: 10px 10px 10px 0;
  2343. box-shadow: 0 0 6px 1px #dfdada;
  2344. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  2345. <div class="workImg">
  2346. <img :src="word" @click="openTable(w)" alt />
  2347. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2348. rightW:
  2349. w.userid == userid || tType == 1 || tType == 4,
  2350. }">
  2351. {{ JSON.parse(w.score).wScore }}分
  2352. </div>
  2353. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2354. :class="{
  2355. rightW:
  2356. w.userid == userid || tType == 1 || tType == 4,
  2357. }">
  2358. 评分
  2359. </div>
  2360. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2361. w.userid == userid || tType == 1 || tType == 4
  2362. " @click.stop="deleteWorks(w.wid)" alt />
  2363. </div>
  2364. <div class="worksName">
  2365. <div>{{ w.sName }}</div>
  2366. </div>
  2367. </div>
  2368. </div>
  2369. </div>
  2370. <div v-if="tool.tool.indexOf(49) != -1" class="xuan_right_box">
  2371. <div v-if="courseDetail.userid == userid" style="display: flex; justify-content: flex-end">
  2372. <el-button type="primary" size="small"
  2373. @click="addTools(49, toolIndex, taskCount)">分组设置</el-button>
  2374. </div>
  2375. <div v-if="groupStudentUid[toolIndex]" class="group_staic_box">
  2376. <div v-for="(gp, gd) in tool.groupJson.group" :key="gd" class="group_staic">
  2377. <span> {{ gp.name }}</span>
  2378. <span>
  2379. 目前人数{{
  2380. groupStudentUid[toolIndex][gd].length
  2381. }}人</span>
  2382. </div>
  2383. </div>
  2384. </div>
  2385. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  2386. <div class="zuoyeYulan" v-if="
  2387. worksStudent.length &&
  2388. worksStudent[toolIndex].length > 0
  2389. ">
  2390. <span>作业预览</span>
  2391. </div>
  2392. <div>
  2393. <div class="group_workBox" v-for="(g, gindex) in tool.groupJson.group" :key="gindex">
  2394. <div class="group_box" v-if="
  2395. groupStudentUid[toolIndex] &&
  2396. worksStudent[toolIndex] &&
  2397. (worksStudent[toolIndex][gindex].length ||
  2398. groupStudentUid[toolIndex][gindex].indexOf(
  2399. userid
  2400. ) != -1)
  2401. ">
  2402. <div class="group_title">
  2403. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  2404. <div class="group_name">{{ g.name }}</div>
  2405. </el-tooltip>
  2406. <el-button type="primary" v-if="
  2407. groupStudentUid[toolIndex][gindex].indexOf(
  2408. userid
  2409. ) != -1
  2410. " @click="groupUpload(toolIndex, taskCount, gindex)">上传作业</el-button>
  2411. </div>
  2412. <div class="group_work">
  2413. <div class="works" style="
  2414. width: 200px;
  2415. height: 140px;
  2416. margin: 10px 10px 10px 0;
  2417. border-radius: 15px;
  2418. box-shadow: 0 0 6px 1px #dfdada;
  2419. " v-for="(w, wIndex) in worksStudent[toolIndex][
  2420. gindex
  2421. ]" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  2422. <div class="workImg" v-if="w.type == 0">
  2423. <img :src="w.works" @click="previewImg(w.works)" alt />
  2424. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2425. rightW:
  2426. w.userid == userid ||
  2427. tType == 1 ||
  2428. tType == 4 ||
  2429. w.ateacher == userid,
  2430. }">
  2431. {{ JSON.parse(w.score).wScore }}分
  2432. </div>
  2433. <div class="answerScore" @click.stop="openScore(w)"
  2434. v-else-if="courseDetail.userid == userid" :class="{
  2435. rightW:
  2436. w.userid == userid ||
  2437. tType == 1 ||
  2438. tType == 4 ||
  2439. w.ateacher == userid,
  2440. }">
  2441. 评分
  2442. </div>
  2443. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2444. w.userid == userid ||
  2445. tType == 1 ||
  2446. tType == 4
  2447. " @click.stop="deleteWorks(w.wid)" alt />
  2448. </div>
  2449. <div class="workImg" v-if="w.type == 1">
  2450. <img :src="word" @click="openFile(w.works)" alt />
  2451. <!-- @click="openFile(w.works)" -->
  2452. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2453. rightW:
  2454. w.userid == userid ||
  2455. tType == 1 ||
  2456. tType == 4 ||
  2457. w.ateacher == userid,
  2458. }">
  2459. {{ JSON.parse(w.score).wScore }}分
  2460. </div>
  2461. <div class="answerScore" @click.stop="openScore(w)"
  2462. v-else-if="courseDetail.userid == userid" :class="{
  2463. rightW:
  2464. w.userid == userid ||
  2465. tType == 1 ||
  2466. tType == 4 ||
  2467. w.ateacher == userid,
  2468. }">
  2469. 评分
  2470. </div>
  2471. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2472. w.userid == userid ||
  2473. tType == 1 ||
  2474. tType == 4
  2475. " @click.stop="deleteWorks(w.wid)" alt />
  2476. </div>
  2477. <div class="workImg" v-if="w.type == 3">
  2478. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  2479. <!-- @click="openVideo(w.works)" -->
  2480. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2481. rightW:
  2482. w.userid == userid ||
  2483. tType == 1 ||
  2484. tType == 4 ||
  2485. w.ateacher == userid,
  2486. }">
  2487. {{ JSON.parse(w.score).wScore }}分
  2488. </div>
  2489. <div class="answerScore" @click.stop="openScore(w)"
  2490. v-else-if="courseDetail.userid == userid" :class="{
  2491. rightW:
  2492. w.userid == userid ||
  2493. tType == 1 ||
  2494. tType == 4 ||
  2495. w.ateacher == userid,
  2496. }">
  2497. 评分
  2498. </div>
  2499. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2500. w.userid == userid ||
  2501. tType == 1 ||
  2502. tType == 4
  2503. " @click.stop="deleteWorks(w.wid)" alt />
  2504. </div>
  2505. <div class="comment" style="min-width: 200px">
  2506. <div class="worksName">
  2507. <div>{{ w.sName }}</div>
  2508. </div>
  2509. <div class="commentList">
  2510. <div class="commentList">
  2511. <div class="commentImg" @click="
  2512. isLikes(
  2513. w.wid,
  2514. userid,
  2515. 1,
  2516. null,
  2517. w.isLikes
  2518. )
  2519. ">
  2520. <img :src="
  2521. w.isLikes == true ? likes : noLikes
  2522. " alt="" />
  2523. </div>
  2524. <div>{{ w.likesCount }}</div>
  2525. </div>
  2526. <div class="commentList" style="margin-right: 15px">
  2527. <div class="commentImg" @click="
  2528. commentOther(
  2529. w,
  2530. toolIndex,
  2531. wIndex,
  2532. gindex
  2533. )
  2534. ">
  2535. <img src="../assets/icon/comment/comment.png" alt="" />
  2536. </div>
  2537. <div>{{ w.commentCount }}</div>
  2538. </div>
  2539. </div>
  2540. </div>
  2541. </div>
  2542. </div>
  2543. </div>
  2544. </div>
  2545. </div>
  2546. </div>
  2547. </div>
  2548. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  2549. 上传文件
  2550. <input
  2551. type="file"
  2552. accept="image/png, image/gif, image/jpeg"
  2553. style="display: none"
  2554. @change="beforeUpload1($event, 2, index)"
  2555. />
  2556. </div>-->
  2557. </div>
  2558. </div>
  2559. <div class="vedioBox" v-if="
  2560. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  2561. .eList &&
  2562. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  2563. .eList.length &&
  2564. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  2565. .eList.length > 0 &&
  2566. tType != 2
  2567. ">
  2568. <div class="queTop" style="
  2569. font-size: 25px;
  2570. padding: 15px 0 15px 30px;
  2571. font-weight: bold;
  2572. ">
  2573. <!-- <div class="question" style="width: 30px">
  2574. <img src="../assets/icon/toolIcon.png" alt />
  2575. </div>
  2576. <div class="queTitle">
  2577. <div>工具</div>
  2578. </div>-->
  2579. 评一评
  2580. </div>
  2581. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  2582. <div class="elist_input">
  2583. <div v-for="(eItem, eIndex) in chapInfoList[courseType]
  2584. .chapterInfo[0].taskJson[taskCount].eList" :key="eIndex" class="elist_input_box">
  2585. <div style="width: 95%">
  2586. <div style="
  2587. display: flex;
  2588. flex-direction: row;
  2589. flex-wrap: nowrap;
  2590. align-items: center;
  2591. ">
  2592. <div style="max-width: calc(100% - 285px)">
  2593. <span>{{ eItem.value }}</span>
  2594. </div>
  2595. <div style="
  2596. padding-left: 25px;
  2597. display: flex;
  2598. flex-direction: row;
  2599. align-items: center;
  2600. ">
  2601. <el-rate v-model="eItem.score" :colors="colors" disabled></el-rate>
  2602. </div>
  2603. </div>
  2604. <div class="elist_inptu_text" style="padding-left: 10px">
  2605. <span v-if="eItem.detail != ''">{{
  2606. eItem.detail
  2607. }}</span>
  2608. <span v-else style="color: #b2b1b3; font-size: 14px">暂无描述...</span>
  2609. </div>
  2610. </div>
  2611. </div>
  2612. </div>
  2613. <div v-if="evalua" style="
  2614. border: 1px solid #e5e5e5;
  2615. max-width: 650px;
  2616. width: 100%;
  2617. margin-top: 20px;
  2618. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2619. ">
  2620. <div class="e_add_top">
  2621. <div class="e_add_title">
  2622. <span>目标管理名称</span>
  2623. <span>{{ eTitle }}</span>
  2624. <img src="../assets/line.png" class="cru_line" style="
  2625. width: 125px;
  2626. height: 20px;
  2627. bottom: -10px;
  2628. left: 120px;
  2629. " />
  2630. <!-- <el-input
  2631. v-model="eTitle"
  2632. placeholder="请输入名称"
  2633. @change="setMindData"
  2634. ></el-input>-->
  2635. </div>
  2636. </div>
  2637. <div class="e_add_content">
  2638. <div class="e_add_list_pbox">
  2639. <div class="e_add_list_pbox_title">
  2640. <span class="type_title">切换模式</span>
  2641. <div class="type_content">
  2642. <span :class="{ active: typeMode == 1 }" @click="typeMode = 1">目标树</span>
  2643. <span :class="{ active: typeMode == 2 }" @click="typeMode = 2">目标罗盘</span>
  2644. <span :class="{ active: typeMode == 3 }" @click="typeMode = 3">目标看板</span>
  2645. </div>
  2646. </div>
  2647. <div class="e_add_list_pbox_content">
  2648. <Mind :showBar="false" :mindData="data" style="width: 100%" v-show="typeMode == 1"></Mind>
  2649. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  2650. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2651. v-if="typeMode == 3"></SeeBoard>
  2652. </div>
  2653. </div>
  2654. </div>
  2655. </div>
  2656. </div>
  2657. </div>
  2658. <!-- <div
  2659. class="project_box"
  2660. style="margin-top: 15px; padding-bottom: 30px"
  2661. >
  2662. <div
  2663. style="
  2664. display: flex;
  2665. flex-wrap: nowrap;
  2666. flex-direction: column;
  2667. position: relative;
  2668. "
  2669. >
  2670. <div class="queTop">
  2671. <div class="question">
  2672. <img src="../assets/icon/homeWork.png" alt="" />
  2673. </div>
  2674. <div class="queTitle">
  2675. <div>作业提交<span>(提交图文视频等)</span></div>
  2676. <div>:任务:{{ task.task }}</div>
  2677. </div>
  2678. </div>
  2679. <div class="ediBottom">
  2680. <div
  2681. class="addEditor"
  2682. style="margin-top: 23px"
  2683. @click="openAddWork"
  2684. v-if="!isNoHomeWork"
  2685. >
  2686. 选择文件
  2687. </div>
  2688. <div
  2689. class="addEditor"
  2690. style="margin-top: 23px"
  2691. @click="openAddWork"
  2692. v-else
  2693. >
  2694. 已提交
  2695. </div>
  2696. </div>
  2697. </div>
  2698. </div>-->
  2699. </div>
  2700. </div>
  2701. <el-dialog title="作业提交" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  2702. :before-close="handleClose" class="dialog_change">
  2703. <div class="marginT">
  2704. <div>上传文件</div>
  2705. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  2706. <div class="up_photo">
  2707. <img src="../assets/icon/uploadImg.png" alt />
  2708. </div>
  2709. <input type="file"
  2710. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  2711. capture="camera" style="display: none" @change="beforeUpload1($event, 1)" />
  2712. <!-- <input
  2713. type="file"
  2714. accept="image/*"
  2715. capture="camera"
  2716. style="display: none"
  2717. @change="beforeUpload1($event, 1)"
  2718. /> -->
  2719. </div>
  2720. <div class="chapter_add" style="
  2721. display: flex;
  2722. width: 100%;
  2723. flex-direction: row;
  2724. flex-wrap: wrap;
  2725. justify-content: flex-start;
  2726. padding: 15px 0;
  2727. " v-if="studyJuri[0].cover.length > 0">
  2728. <div class="upCover">
  2729. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  2730. <img :src="word" alt v-else-if="fileType == 1" />
  2731. <img :src="video" alt v-else />
  2732. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  2733. <div class="deleteWord" @click="clean(1)">
  2734. <img src="../assets/icon/deleteWorks.png" alt />
  2735. </div>
  2736. </div>
  2737. </div>
  2738. </div>
  2739. <!-- <div class="first">
  2740. <div>作业名称:</div>
  2741. <div>{{ chapInfoList[courseType].dyName }}</div>
  2742. </div>
  2743. <div style="font-size: 20px; margin-bottom: 10px">上传作业</div>
  2744. <el-input
  2745. type="textarea"
  2746. resize="none"
  2747. rows="7"
  2748. placeholder="输入文字描述..."
  2749. v-model="studyJuri[0].content"
  2750. ></el-input>
  2751. <div class="marginT">
  2752. <div>上传图片</div>
  2753. <div class="chapter_add" @click="addImg($event)">
  2754. <div class="up_photo">
  2755. <img src="../assets/photo.png" alt />
  2756. </div>
  2757. <input
  2758. type="file"
  2759. accept="image/png, image/gif, image/jpeg"
  2760. style="display: none"
  2761. @change="beforeUpload1($event, 1)"
  2762. />
  2763. </div>
  2764. <div
  2765. class="chapter_add"
  2766. style="
  2767. display: flex;
  2768. width: 100%;
  2769. flex-direction: row;
  2770. flex-wrap: wrap;
  2771. justify-content: flex-start;
  2772. "
  2773. v-if="studyJuri[0].cover.length > 0"
  2774. >
  2775. <div
  2776. v-for="(c, cIndex) in studyJuri[0].cover"
  2777. :key="cIndex"
  2778. class="upCover"
  2779. >
  2780. <img :src="c.url != null && c.url != '' ? c.url : mr" alt />
  2781. <span class="picName">{{ c.name }}</span>
  2782. <div class="deleteWord" @click="clean(1)">
  2783. <img src="../assets/icon/delete.png" alt />
  2784. </div>
  2785. </div>
  2786. </div>
  2787. </div>
  2788. <div class="marginT">
  2789. <div>上传视频</div>
  2790. <div class="chapter_add" @click="addImg($event)">
  2791. <div class="up_photo">
  2792. <img src="../assets/vidio.png" alt />
  2793. </div>
  2794. <input
  2795. type="file"
  2796. accept="video/mp4, video/quicktime, video/x-msvideo"
  2797. style="display: none"
  2798. @change="beforeUpload2($event, 2)"
  2799. />
  2800. </div>
  2801. <div
  2802. class="chapter_add"
  2803. style="
  2804. display: flex;
  2805. flex-direction: row;
  2806. flex-wrap: wrap;
  2807. width: 100%;
  2808. justify-content: flex-start;
  2809. "
  2810. v-if="studyJuri[0].upVedio.length > 0"
  2811. >
  2812. <div
  2813. style="
  2814. width: 100%;
  2815. display: flex;
  2816. flex-direction: row;
  2817. flex-wrap: wrap;
  2818. align-content: flex-start;
  2819. justify-content: flex-start;
  2820. align-items: center;
  2821. "
  2822. >
  2823. <div
  2824. class="uploadVedio isAddThings"
  2825. v-for="(v, vIndex) in studyJuri[0].upVedio"
  2826. :key="vIndex"
  2827. >
  2828. <img src="../assets/uploadMp4.png" alt />
  2829. <span>{{ v.name }}</span>
  2830. <div class="deleteWord" @click="clean(2)">
  2831. <img src="../assets/icon/delete.png" alt />
  2832. </div>
  2833. </div>
  2834. </div>
  2835. </div>
  2836. </div>-->
  2837. <div class="upload_send" @click="addCourseWorks(taskCount)" v-if="!proVisible">
  2838. 提交
  2839. </div>
  2840. </el-dialog>
  2841. </div>
  2842. </div>
  2843. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4">
  2844. <!-- 批 -->
  2845. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  2846. </div>
  2847. <div v-if="pzDialog == true" class="newDialogCss">
  2848. <div class="pzTop2">
  2849. <!-- <div>批注</div>
  2850. <div @click="pzDialog = false">
  2851. <img src="../assets/close1.png" alt="" />
  2852. </div> -->
  2853. <div class="checkbox">
  2854. <div class="check" style="font-size: 25px">评课笔记</div>
  2855. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  2856. </div>
  2857. </div>
  2858. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  2859. <div class="pzListBox" v-if="pzList && pzList.length">
  2860. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  2861. <div class="pzNavTop">
  2862. <div>批</div>
  2863. <div>
  2864. {{
  2865. pz.username.length > 5
  2866. ? pz.username.substring(0, 5) + "..."
  2867. : pz.username
  2868. }}的批注
  2869. </div>
  2870. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  2871. 删除
  2872. </div>
  2873. </div>
  2874. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'">
  2875. <!-- {{ }} -->
  2876. </div>
  2877. <div class="pzContent" v-if="pz.type == '2'">
  2878. <audio :src="pz.content" controls="controls" ref="audio">
  2879. Your browser does not support the audio element.
  2880. </audio>
  2881. </div>
  2882. <div class="pzContent" v-if="pz.type == '3'">
  2883. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block"
  2884. @click="previewImg(pz.content)" />
  2885. </div>
  2886. <div class="time">
  2887. {{ pz.time }}
  2888. </div>
  2889. </div>
  2890. </div>
  2891. <div class="noPz" v-else>
  2892. <img src="../assets/icon/noPz.png" alt="" />
  2893. </div>
  2894. <div class="addPzButton">
  2895. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  2896. 添加批注
  2897. </div>
  2898. <div class="img1">
  2899. <div @click="(addPzDialog = true), (pzType = 2)">
  2900. <img src="../assets/audio.png" /><span>音频</span>
  2901. </div>
  2902. <!-- <img src="../assets/picture.png" @click="addPzDialog = true,pzType = 3" /> -->
  2903. </div>
  2904. </div>
  2905. </div>
  2906. </div>
  2907. <div v-if="addPzDialog == true" class="addDialogCss">
  2908. <div class="pzTop">
  2909. <div class="teacherPz">
  2910. <div class="teacherPzImg">
  2911. <img src="../assets/icon/teacherPz.png" alt="" />
  2912. </div>
  2913. <div style="margin-left: 10px; height: 25px">教师批注</div>
  2914. </div>
  2915. <div @click="addPzDialog = false">
  2916. <img src="../assets/close1.png" alt="" />
  2917. </div>
  2918. </div>
  2919. <div class="addPzBox">
  2920. <div class="addPzCheck">
  2921. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  2922. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  2923. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  2924. </div>
  2925. <div style="height: calc(100% - 95px)">
  2926. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  2927. v-if="pzType == 1"></textarea> -->
  2928. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  2929. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  2930. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  2931. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  2932. <div @click="addImg($event)">
  2933. <el-button type="primary">上传图片</el-button>
  2934. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  2935. @change="beforeUpload1($event, 4)" />
  2936. </div>
  2937. </div> -->
  2938. </div>
  2939. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  2940. 确定
  2941. </div>
  2942. </div>
  2943. </div>
  2944. <div v-if="proVisible" class="mask">
  2945. <div class="progressBox">
  2946. <div class="lbox">
  2947. <img src="../assets/loading.gif" />上传中,请稍后
  2948. </div>
  2949. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  2950. </div>
  2951. </div>
  2952. <div v-if="proVisible2" class="mask">
  2953. <div class="progressBox">
  2954. <div class="lbox">
  2955. <img src="../assets/loading.gif" />上传中,请稍后
  2956. </div>
  2957. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  2958. </div>
  2959. </div>
  2960. <el-dialog :visible.sync="pictureDialog" size="tiny">
  2961. <img width="100%" :src="dialogImageUrl" alt />
  2962. </el-dialog>
  2963. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  2964. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  2965. <div>
  2966. <div class="a_add_title" style="
  2967. display: flex;
  2968. flex-direction: row;
  2969. align-items: center;
  2970. justify-content: center;
  2971. ">
  2972. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2973. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  2974. </div>
  2975. <div class="a_addBox">
  2976. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  2977. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2978. <div class="a_add_head">
  2979. <div style="display: flex">
  2980. {{ index1 + 1 + "、" }}
  2981. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  2982. </div>
  2983. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  2984. style="height: 300px; margin-top: 10px; max-width: 100%" />
  2985. </div>
  2986. <div class="a_add_body">
  2987. <div class="a_add_input">
  2988. <el-radio-group v-model="radio[index1]">
  2989. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  2990. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  2991. v-html="item2"></span></el-radio>
  2992. </el-radio-group>
  2993. </div>
  2994. </div>
  2995. </div>
  2996. </div>
  2997. </div>
  2998. <span slot="footer" class="dialog-footer">
  2999. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  3000. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  3001. </span>
  3002. </el-dialog>
  3003. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  3004. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3005. <div>
  3006. <!-- <div class="a_add_title" style="
  3007. display: flex;
  3008. flex-direction: row;
  3009. align-items: center;
  3010. justify-content: center;
  3011. ">
  3012. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3013. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  3014. </div> -->
  3015. <div class="a_addBox">
  3016. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3017. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3018. <div class="a_add_head">
  3019. <div style="display: flex">
  3020. {{ index1 + 1 + "、" }}
  3021. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  3022. </div>
  3023. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  3024. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3025. </div>
  3026. <div class="a_add_body">
  3027. <div class="a_add_input">
  3028. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  3029. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3030. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  3031. v-html="item2"></span></el-radio>
  3032. </el-radio-group>
  3033. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  3034. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  3035. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3036. <span v-html="item2"></span>
  3037. </el-checkbox>
  3038. </el-checkbox-group>
  3039. </div>
  3040. </div>
  3041. </div>
  3042. </div>
  3043. </div>
  3044. <span slot="footer" class="dialog-footer">
  3045. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  3046. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  3047. </span>
  3048. </el-dialog>
  3049. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  3050. :before-close="handleClose" class="dialog_diy textCss">
  3051. <el-form style="font-size: 20px">
  3052. <el-form-item label="文本标题" class="textTitle">
  3053. <div style="font-size: 20px">{{ text.name }}</div>
  3054. </el-form-item>
  3055. <div>富文本内容</div>
  3056. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  3057. </el-form>
  3058. <span slot="footer" class="dialog-footer">
  3059. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  3060. </span>
  3061. </el-dialog>
  3062. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  3063. :class="{ fullStyle: full }">
  3064. <div slot="title" class="header-title">
  3065. <div style="color: #fff">文件预览</div>
  3066. <div style="position: absolute; top: 19px; right: 50px">
  3067. <img src="../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  3068. </div>
  3069. </div>
  3070. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  3071. :class="{ fullStyle: full }"></pdf>
  3072. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  3073. </el-dialog>
  3074. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  3075. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
  3076. </el-dialog>
  3077. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px"
  3078. :before-close="handleClose" class="dialog_diy notice">
  3079. <div>此功能暂未开放!</div>
  3080. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  3081. </el-dialog>
  3082. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  3083. :before-close="handleClose" class="dialog_diy">
  3084. <div>
  3085. <div style="
  3086. display: flex;
  3087. flex-wrap: nowrap;
  3088. flex-direction: column;
  3089. position: relative;
  3090. ">
  3091. <div class="queTop" style="padding: 20px 0 20px 0">
  3092. <div class="question">
  3093. <img src="../assets/icon/question.png" alt />
  3094. </div>
  3095. <div class="queTitle">
  3096. <div style="width: 90px; min-width: 90px">提问:</div>
  3097. <div>{{ answerQ }}</div>
  3098. </div>
  3099. </div>
  3100. <div class="ediBottom">
  3101. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  3102. v-model="questionAnswer"></textarea>
  3103. </div>
  3104. </div>
  3105. </div>
  3106. <div slot="footer">
  3107. <el-button @click="answerDialogVisible = false">取 消</el-button>
  3108. <el-button type="primary" @click="addQuestion">提 交</el-button>
  3109. </div>
  3110. </el-dialog>
  3111. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  3112. :before-close="handleClose" class="dialog_diy">
  3113. <div>
  3114. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  3115. </div>
  3116. <div slot="footer">
  3117. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  3118. </div>
  3119. </el-dialog>
  3120. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  3121. class="dialog_diy">
  3122. <div>
  3123. <div class="open_box">
  3124. <div class="switch_box">
  3125. <span>允许学生查看所有作业</span>
  3126. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  3127. </div>
  3128. <div class="switch_box" v-if="
  3129. courseDetail.userid == userid ||
  3130. courseDetail.course_teacher.indexOf(userid) != -1
  3131. ">
  3132. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  3133. <span>禁止学生查看所有阶段</span>
  3134. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  3135. </div>
  3136. </div>
  3137. </div>
  3138. <div slot="footer">
  3139. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  3140. </div>
  3141. </el-dialog>
  3142. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px"
  3143. :before-close="handleClose" class="dialog_diy1">
  3144. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  3145. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  3146. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  3147. </div>
  3148. <div slot="footer">
  3149. <el-button style="background: #409efe; color: #fff"
  3150. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  3151. 关 闭</el-button>
  3152. </div>
  3153. </el-dialog>
  3154. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  3155. :before-close="handleClose" class="dialog_diy">
  3156. <div class="commentTop">
  3157. <div class="studentDetail">
  3158. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  3159. <div class="nameAndTime">
  3160. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  3161. <div>{{ commentDetail.time }}</div>
  3162. </div>
  3163. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="
  3164. commentDetail.works &&
  3165. commentDetail.type == 0 &&
  3166. (tType == 1 || tType == 4)
  3167. " @click="
  3168. showPicturePaint(
  3169. commentDetail.img ? commentDetail.img : commentDetail.works
  3170. )
  3171. ">
  3172. 教师批注
  3173. </div>
  3174. </div>
  3175. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  3176. {{ JSON.parse(commentDetail.works)[0].answer }}
  3177. </div>
  3178. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  3179. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  3180. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  3181. :class="{ fullStyle: full }"></pdf>
  3182. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600"
  3183. :class="{ fullStyle: full }"></iframe>
  3184. </div>
  3185. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  3186. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" style="right: 105px" />
  3187. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  3188. </div>
  3189. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  3190. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  3191. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  3192. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  3193. </div>
  3194. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 10">
  3195. <div class="cont" v-html="commentDetail.works.text"></div>
  3196. </div>
  3197. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  3198. <div class="evalCss">
  3199. <div class="nav">请选择星星进行评分</div>
  3200. <div class="middleBox" v-if="eScore.eStar">
  3201. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  3202. <div class="nameAndrate">
  3203. <div>{{ e.value }}</div>
  3204. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  3205. </div>
  3206. <div v-if="e.detail">{{ e.detail }}</div>
  3207. </div>
  3208. <div class="bz">
  3209. <textarea disabled rows="4" class="pj" style="
  3210. padding: 10px 5px;
  3211. width: 70%;
  3212. background: #f7f6f9;
  3213. font-size: 14px;
  3214. text-indent: 10px;
  3215. color: #000;
  3216. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  3217. </div>
  3218. </div>
  3219. </div>
  3220. </div>
  3221. <div class="comment">
  3222. <div class="commentList">
  3223. <div class="commentImg">
  3224. <img @click="
  3225. isLikes(
  3226. commentDetail.wid,
  3227. userid,
  3228. 1,
  3229. null,
  3230. commentDetail.isLikes
  3231. )
  3232. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  3233. </div>
  3234. <div>{{ commentDetail.likesCount }}</div>
  3235. </div>
  3236. <div class="commentList">
  3237. <div class="commentImg">
  3238. <img src="../assets/icon/comment/comment.png" alt="" />
  3239. </div>
  3240. <div>{{ commentDetail.commentCount }}</div>
  3241. </div>
  3242. </div>
  3243. <div class="drawPBox" v-if="commentDetail.img">
  3244. <span>教师批注</span>
  3245. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  3246. <span class="deleteImg" v-if="tType == 1 || tType == 4" @click.stop="deletePicturePaint(commentDetail.wid)"
  3247. style="
  3248. font-size: 14px;
  3249. width: auto !important;
  3250. color: #b4b4b4;
  3251. top: unset;
  3252. bottom: 0;
  3253. border: none;
  3254. padding: 0;
  3255. height: auto !important;
  3256. margin: 0;
  3257. ">删除</span>
  3258. </div>
  3259. </div>
  3260. <div class="commentBox">
  3261. <div class="pl">评论:</div>
  3262. <div style="max-height: 200px; overflow: auto">
  3263. <div v-if="commentDetail.commentJson" style="padding: 10px 0 0 0">
  3264. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  3265. :key="coIndex">
  3266. <div class="tx" style="min-width: 50px">
  3267. <img src="../assets/avatar.png" alt="" />
  3268. </div>
  3269. <div class="plPerson">
  3270. <div class="plName">
  3271. <div>{{ co.commentPeople }}</div>
  3272. <div style="margin-left: 5px">
  3273. {{ co.commentTime }}
  3274. </div>
  3275. </div>
  3276. <div class="plContent">{{ co.commentText }}</div>
  3277. </div>
  3278. </div>
  3279. </div>
  3280. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  3281. </div>
  3282. </div>
  3283. <div style="margin-top: 10px">
  3284. <div class="displayBox">
  3285. <div style="
  3286. color: #556db4;
  3287. font-size: 14px;
  3288. font-weight: bold;
  3289. padding-bottom: 10px;
  3290. ">
  3291. 评价
  3292. </div>
  3293. <div class="easy_comment">
  3294. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  3295. {{ p }}
  3296. </div>
  3297. </div>
  3298. </div>
  3299. <div>
  3300. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  3301. placeholder="请输入对该学生的评价"></textarea>
  3302. </div>
  3303. </div>
  3304. <div slot="footer">
  3305. <el-button @click="
  3306. (commentDialogVisible = false),
  3307. (commentIndexJson = {}),
  3308. videoDetail.sources && videoDetail.sources[0]
  3309. ? (videoDetail.sources[0].src = '')
  3310. : ''
  3311. ">取 消</el-button>
  3312. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  3313. </div>
  3314. </el-dialog>
  3315. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  3316. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 3 }">
  3317. <div slot="title" class="header-title">
  3318. <div style="color: #fff">查看文档</div>
  3319. <div @click="fullDialogVisible = false" style="
  3320. cursor: pointer;
  3321. position: absolute;
  3322. top: 20px;
  3323. right: 20px;
  3324. color: #fff;
  3325. ">
  3326. 退出全屏
  3327. </div>
  3328. </div>
  3329. <div style="height: 100%">
  3330. <iframe v-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  3331. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  3332. <div class="wheel" v-if="fulltype == 1" style="
  3333. box-shadow: 0 0 6px 1px #f2f2f2;
  3334. width: 100%;
  3335. background: #f1f1f1;
  3336. ">
  3337. <div class="title" style="width: 100%; box-sizing: border-box">
  3338. 查看文档
  3339. </div>
  3340. <el-form class="textBox" style="height: 90%">
  3341. <el-form-item class="textTitle">
  3342. <div style="font-size: 22px; max-height: 100px; overflow: auto">
  3343. {{ fullUrl.name }}
  3344. </div>
  3345. </el-form-item>
  3346. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  3347. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  3348. </el-form>
  3349. </div>
  3350. </div>
  3351. <!-- <div slot="footer">
  3352. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  3353. </div> -->
  3354. </el-dialog>
  3355. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  3356. :before-close="handleClose" class="dialog_diy">
  3357. <div class="evalCss">
  3358. <div class="nav">请选择星星进行评分</div>
  3359. <div class="middleBox" v-if="eScore.eStar">
  3360. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  3361. <div class="nameAndrate">
  3362. <div>{{ e.value }}</div>
  3363. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  3364. </div>
  3365. <div v-if="e.detail">{{ e.detail }}</div>
  3366. </div>
  3367. <div class="easy_comment" v-if="isStar == false">
  3368. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  3369. {{ p }}
  3370. </div>
  3371. </div>
  3372. <div class="bz">
  3373. <textarea :disabled="isStar" rows="4" class="pj" style="
  3374. padding: 10px 5px;
  3375. width: 70%;
  3376. background: #f7f6f9;
  3377. font-size: 14px;
  3378. text-indent: 10px;
  3379. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  3380. </div>
  3381. </div>
  3382. </div>
  3383. <div slot="footer">
  3384. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  3385. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  3386. </div>
  3387. </el-dialog>
  3388. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  3389. :before-close="handleClose" class="dialog_diy dialog_diy3">
  3390. <div v-if="selectJson">
  3391. <div class="select_box2">
  3392. <div class="select_box2_title">
  3393. <div>选择填空</div>
  3394. <div>请选择对应的答案进行答题!</div>
  3395. </div>
  3396. <div class="select_box2_box">
  3397. <div class="select_box2_img">
  3398. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  3399. </div>
  3400. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  3401. <div style="padding-top: 15px">
  3402. <div class="select_answer_title" v-if="isSelect">
  3403. {{ selectAnswer.stu }}
  3404. </div>
  3405. <div class="select_answer_title" v-else>
  3406. 根据题目选择对应答案
  3407. </div>
  3408. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3409. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  3410. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  3411. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3412. </el-option>
  3413. </el-select>
  3414. </div>
  3415. </div>
  3416. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  3417. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  3418. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  3419. 回答正确
  3420. </div>
  3421. <div v-else>回答错误</div>
  3422. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  3423. 正确答案:
  3424. </div>
  3425. <div :class="
  3426. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  3427. ">
  3428. {{ selectJson.select[a] }}
  3429. </div>
  3430. </div>
  3431. </div>
  3432. </div>
  3433. <div class="upAnswerCss">
  3434. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  3435. </div>
  3436. </div>
  3437. </div>
  3438. </div>
  3439. </el-dialog>
  3440. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  3441. :before-close="handleClose" class="dialog_diy">
  3442. <div>
  3443. <div class="studentDetail">
  3444. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  3445. <div class="nameAndTime">
  3446. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  3447. <div>{{ commentDetail.time }}</div>
  3448. </div>
  3449. </div>
  3450. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  3451. {{ JSON.parse(commentDetail.works)[0].answer }}
  3452. </div>
  3453. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  3454. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  3455. :class="{ fullStyle: full }"></pdf>
  3456. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600"
  3457. :class="{ fullStyle: full }"></iframe>
  3458. </div>
  3459. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  3460. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  3461. </div>
  3462. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  3463. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  3464. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  3465. </div>
  3466. <div class="scoreBox">
  3467. <span class="t">请输入分数</span>
  3468. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  3469. :max="100"></el-input-number>
  3470. </div>
  3471. <div class="scoreDetailBox">
  3472. <span class="t">评分评论</span>
  3473. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  3474. v-model="scoreDetail" placeholder="请输入对学生的评价">
  3475. </el-input>
  3476. </div>
  3477. </div>
  3478. <span slot="footer" class="dialog-footer">
  3479. <el-button @click="
  3480. (dialogVisibleScore = false),
  3481. (commentIndexJson = {}),
  3482. videoDetail.sources && videoDetail.sources[0]
  3483. ? (videoDetail.sources[0].src = '')
  3484. : ''
  3485. ">取 消</el-button>
  3486. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  3487. </el-button>
  3488. </span>
  3489. </el-dialog>
  3490. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3491. :before-close="handleClose" class="dialog_diy dialog_diy3">
  3492. <div>
  3493. <div class="sentenBox">
  3494. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  3495. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  3496. <div class="cardList" v-if="st.chooseSenList">
  3497. <div class="cardBox">
  3498. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  3499. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  3500. <div :class="{
  3501. isCard: r,
  3502. isChooseCard: r == '' || r == undefined,
  3503. }">
  3504. <div>{{ r }}</div>
  3505. </div>
  3506. </el-tooltip>
  3507. <div :class="{
  3508. isCard: r,
  3509. isChooseCard: r == '' || r == undefined,
  3510. }" v-else>
  3511. <div>{{ r }}</div>
  3512. </div>
  3513. </div>
  3514. </div>
  3515. </div>
  3516. <div class="cardList" v-if="st.addChangeSen">
  3517. <div class="cardBox">
  3518. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  3519. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  3520. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  3521. <div>{{ s }}</div>
  3522. </div>
  3523. </el-tooltip>
  3524. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  3525. <div>{{ s }}</div>
  3526. </div>
  3527. </div>
  3528. </div>
  3529. </div>
  3530. </div>
  3531. </div>
  3532. </div>
  3533. <span slot="footer" class="dialog-footer">
  3534. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  3535. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  3536. </span>
  3537. </el-dialog>
  3538. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  3539. :before-close="handleClose" class="dialog_diy dialog_diy3">
  3540. <div>
  3541. <div class="sentenBox">
  3542. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  3543. {{ sentenceList1.stuName }}的作业
  3544. </div>
  3545. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  3546. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  3547. 第{{ stIndex + 1 }}题
  3548. </div>
  3549. <div class="isWrong">
  3550. <div class="cardList1" v-if="st.chooseSenList">
  3551. <div class="cardBox">
  3552. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  3553. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3554. <div class="isCard">
  3555. <div>{{ s }}</div>
  3556. </div>
  3557. </el-tooltip>
  3558. </div>
  3559. </div>
  3560. <div class="cardAnswerBox">
  3561. 组成句子:{{ st.chooseSenList.join(" ") }}
  3562. </div>
  3563. </div>
  3564. <div v-if="tType == 2" class="isTj">
  3565. <div class="isTjImg">
  3566. <img src="../assets/icon/conSentences/right.png" alt="" />
  3567. </div>
  3568. <div>已提交</div>
  3569. </div>
  3570. <div class="answerRight isTj" v-if="
  3571. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  3572. (tType == 1 || tType == 4)
  3573. ">
  3574. <div class="isTjImg">
  3575. <img src="../assets/icon/conSentences/right.png" alt="" />
  3576. </div>
  3577. <div>回答正确</div>
  3578. </div>
  3579. <div class="answerRight isTj" v-if="
  3580. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  3581. (tType == 1 || tType == 4)
  3582. ">
  3583. <div class="isTjImg">
  3584. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  3585. </div>
  3586. <div>回答错误</div>
  3587. </div>
  3588. </div>
  3589. <div v-if="
  3590. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  3591. (tType == 1 || tType == 4)
  3592. ">
  3593. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  3594. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  3595. <div class="cardBox">
  3596. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  3597. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3598. <div class="isCard1">
  3599. <div>{{ r }}</div>
  3600. </div>
  3601. </el-tooltip>
  3602. </div>
  3603. </div>
  3604. <div class="cardAnswerBox">
  3605. 组成句子:{{ st.rightAnswer.join(" ") }}
  3606. </div>
  3607. </div>
  3608. </div>
  3609. </div>
  3610. </div>
  3611. </div>
  3612. <span slot="footer" class="dialog-footer">
  3613. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  3614. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  3615. </span>
  3616. </el-dialog>
  3617. <el-dialog title="教师提交作业" :visible.sync="dialogVisibleWorks" :append-to-body="true" width="500px"
  3618. :before-close="handleClose" class="dialog_change">
  3619. <div class="marginT">
  3620. <div class="w_name">
  3621. 学生姓名:<span>{{ sStudent.student }}</span>
  3622. </div>
  3623. <div>上传文件</div>
  3624. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  3625. <div class="up_photo">
  3626. <img src="../assets/uploadImg2.png" alt />
  3627. </div>
  3628. <input type="file"
  3629. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  3630. capture="camera" style="display: none" @change="beforeUpload1($event, 1)" />
  3631. </div>
  3632. <div class="chapter_add" style="
  3633. display: flex;
  3634. width: 100%;
  3635. flex-direction: row;
  3636. flex-wrap: wrap;
  3637. justify-content: flex-start;
  3638. padding: 15px 0;
  3639. " v-if="studyJuri[0].cover.length > 0">
  3640. <div class="upCover">
  3641. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  3642. <img :src="word" alt v-else-if="fileType == 1" />
  3643. <img :src="video" alt v-else />
  3644. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  3645. <div class="deleteWord" @click="clean(1)">
  3646. <img src="../assets/icon/deleteWorks.png" alt />
  3647. </div>
  3648. </div>
  3649. </div>
  3650. </div>
  3651. <div class="upload_send" @click="addCourseWorksTeacher(taskCount)" v-if="!proVisible">
  3652. 提交
  3653. </div>
  3654. </el-dialog>
  3655. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  3656. <el-dialog title="表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3657. :before-close="handleClose" class="dialog_diy">
  3658. <el-form>
  3659. <div>表格内容</div>
  3660. <Table v-model="tableJson.text" @change="change"></Table>
  3661. </el-form>
  3662. <span slot="footer" class="dialog-footer">
  3663. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3664. <el-button type="primary" @click="addTableWorks">确定</el-button>
  3665. </span>
  3666. </el-dialog>
  3667. <el-dialog title="表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  3668. :before-close="handleClose" class="dialog_diy">
  3669. <el-form>
  3670. <div class="cont" v-html="tableJson.text"></div>
  3671. </el-form>
  3672. <span slot="footer" class="dialog-footer">
  3673. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  3674. </span>
  3675. </el-dialog>
  3676. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="95%"
  3677. :before-close="handleClose" class="dialog_diy">
  3678. <div>
  3679. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  3680. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  3681. 提示:需要锁定位置,才能点击头像修改座位。
  3682. </div>
  3683. <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  3684. @click="lockChair">
  3685. 锁定位置
  3686. </div>
  3687. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  3688. 解锁位置
  3689. </div>
  3690. <div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
  3691. 分组设置
  3692. </div>
  3693. </div>
  3694. <div>
  3695. <div class="g_d_box" v-if="groupJson.group && groupStudent[toolindex]">
  3696. <div class="g_d_group" v-for="(g, gindex) in groupJson.group" :key="gindex">
  3697. <div class="g_d_group_chair">
  3698. <div v-if="groupJson.number > 1">
  3699. <span :class="{
  3700. isChair:
  3701. groupStudent[toolindex][gindex] &&
  3702. groupStudent[toolindex][gindex][0],
  3703. updateChair:
  3704. courseDetail.userid == userid &&
  3705. groupStudent[toolindex][gindex] &&
  3706. groupStudent[toolindex][gindex][0] &&
  3707. groupJson.islock == 2,
  3708. }"><span class="updateChairBtn" @click="
  3709. updateGroupChair(
  3710. groupStudent[toolindex][gindex] &&
  3711. groupStudent[toolindex][gindex][0]
  3712. )
  3713. ">修改</span></span><span>{{
  3714. groupStudent[toolindex][gindex] &&
  3715. groupStudent[toolindex][gindex][0]
  3716. ? groupStudent[toolindex][gindex] &&
  3717. groupStudent[toolindex][gindex][0].name
  3718. : "空位置"
  3719. }}</span>
  3720. </div>
  3721. <div v-if="groupJson.number > 4">
  3722. <span :class="{
  3723. isChair:
  3724. groupStudent[toolindex][gindex] &&
  3725. groupStudent[toolindex][gindex][4],
  3726. updateChair:
  3727. courseDetail.userid == userid &&
  3728. groupStudent[toolindex][gindex] &&
  3729. groupStudent[toolindex][gindex][4] &&
  3730. groupJson.islock == 2,
  3731. }"><span class="updateChairBtn" @click="
  3732. updateGroupChair(
  3733. groupStudent[toolindex][gindex] &&
  3734. groupStudent[toolindex][gindex][4]
  3735. )
  3736. ">修改</span></span><span>{{
  3737. groupStudent[toolindex][gindex] &&
  3738. groupStudent[toolindex][gindex][4]
  3739. ? groupStudent[toolindex][gindex] &&
  3740. groupStudent[toolindex][gindex][4].name
  3741. : "空位置"
  3742. }}</span>
  3743. </div>
  3744. <div v-if="groupJson.number > 8">
  3745. <span :class="{
  3746. isChair:
  3747. groupStudent[toolindex][gindex] &&
  3748. groupStudent[toolindex][gindex][8],
  3749. updateChair:
  3750. courseDetail.userid == userid &&
  3751. groupStudent[toolindex][gindex] &&
  3752. groupStudent[toolindex][gindex][8] &&
  3753. groupJson.islock == 2,
  3754. }"><span class="updateChairBtn" @click="
  3755. updateGroupChair(
  3756. groupStudent[toolindex][gindex] &&
  3757. groupStudent[toolindex][gindex][8]
  3758. )
  3759. ">修改</span></span><span>{{
  3760. groupStudent[toolindex][gindex] &&
  3761. groupStudent[toolindex][gindex][8]
  3762. ? groupStudent[toolindex][gindex] &&
  3763. groupStudent[toolindex][gindex][8].name
  3764. : "空位置"
  3765. }}</span>
  3766. </div>
  3767. </div>
  3768. <div class="g_d_group_tableBox">
  3769. <div class="g_d_group_chair2">
  3770. <div v-if="groupJson.number > 2">
  3771. <span :class="{
  3772. isChair:
  3773. groupStudent[toolindex][gindex] &&
  3774. groupStudent[toolindex][gindex][2],
  3775. updateChair:
  3776. courseDetail.userid == userid &&
  3777. groupStudent[toolindex][gindex] &&
  3778. groupStudent[toolindex][gindex][2] &&
  3779. groupJson.islock == 2,
  3780. }"><span class="updateChairBtn" @click="
  3781. updateGroupChair(
  3782. groupStudent[toolindex][gindex] &&
  3783. groupStudent[toolindex][gindex][2]
  3784. )
  3785. ">修改</span></span><span>{{
  3786. groupStudent[toolindex][gindex] &&
  3787. groupStudent[toolindex][gindex][2]
  3788. ? groupStudent[toolindex][gindex] &&
  3789. groupStudent[toolindex][gindex][2].name
  3790. : "空位置"
  3791. }}</span>
  3792. </div>
  3793. <div v-if="groupJson.number > 6">
  3794. <span :class="{
  3795. isChair:
  3796. groupStudent[toolindex][gindex] &&
  3797. groupStudent[toolindex][gindex][6],
  3798. updateChair:
  3799. courseDetail.userid == userid &&
  3800. groupStudent[toolindex][gindex] &&
  3801. groupStudent[toolindex][gindex][6] &&
  3802. groupJson.islock == 2,
  3803. }"><span class="updateChairBtn" @click="
  3804. updateGroupChair(
  3805. groupStudent[toolindex][gindex] &&
  3806. groupStudent[toolindex][gindex][6]
  3807. )
  3808. ">修改</span></span><span>{{
  3809. groupStudent[toolindex][gindex] &&
  3810. groupStudent[toolindex][gindex][6]
  3811. ? groupStudent[toolindex][gindex] &&
  3812. groupStudent[toolindex][gindex][6].name
  3813. : "空位置"
  3814. }}</span>
  3815. </div>
  3816. </div>
  3817. <div class="g_d_group_table">
  3818. <div>
  3819. {{ g.name }}
  3820. </div>
  3821. <div>
  3822. <div v-if="
  3823. courseDetail.userid == userid && groupJson.islock == 2
  3824. " @click="deleteGroupChair(gindex)">
  3825. 移除组员
  3826. </div>
  3827. <div @click="selectGroup(gindex)" v-else-if="
  3828. groupStudentUid[toolindex] &&
  3829. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  3830. ">
  3831. 加入分组
  3832. </div>
  3833. <div @click="
  3834. exitGroup(
  3835. groupStudent[toolindex][gindex] &&
  3836. groupStudent[toolindex][gindex][
  3837. groupStudentUid[toolindex][gindex].indexOf(userid)
  3838. ].id
  3839. )
  3840. " v-else-if="
  3841. groupStudentUid[toolindex] &&
  3842. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  3843. ">
  3844. 退出分组
  3845. </div>
  3846. </div>
  3847. </div>
  3848. <div class="g_d_group_chair2">
  3849. <div v-if="groupJson.number > 3">
  3850. <span :class="{
  3851. isChair:
  3852. groupStudent[toolindex][gindex] &&
  3853. groupStudent[toolindex][gindex][3],
  3854. updateChair:
  3855. courseDetail.userid == userid &&
  3856. groupStudent[toolindex][gindex] &&
  3857. groupStudent[toolindex][gindex][3] &&
  3858. groupJson.islock == 2,
  3859. }"><span class="updateChairBtn" @click="
  3860. updateGroupChair(
  3861. groupStudent[toolindex][gindex] &&
  3862. groupStudent[toolindex][gindex][3]
  3863. )
  3864. ">修改</span></span><span>{{
  3865. groupStudent[toolindex][gindex] &&
  3866. groupStudent[toolindex][gindex][3]
  3867. ? groupStudent[toolindex][gindex] &&
  3868. groupStudent[toolindex][gindex][3].name
  3869. : "空位置"
  3870. }}</span>
  3871. </div>
  3872. <div v-if="groupJson.number > 7">
  3873. <span :class="{
  3874. isChair:
  3875. groupStudent[toolindex][gindex] &&
  3876. groupStudent[toolindex][gindex][7],
  3877. updateChair:
  3878. courseDetail.userid == userid &&
  3879. groupStudent[toolindex][gindex] &&
  3880. groupStudent[toolindex][gindex][7] &&
  3881. groupJson.islock == 2,
  3882. }"><span class="updateChairBtn" @click="
  3883. updateGroupChair(
  3884. groupStudent[toolindex][gindex] &&
  3885. groupStudent[toolindex][gindex][7]
  3886. )
  3887. ">修改</span></span><span>{{
  3888. groupStudent[toolindex][gindex] &&
  3889. groupStudent[toolindex][gindex][7]
  3890. ? groupStudent[toolindex][gindex] &&
  3891. groupStudent[toolindex][gindex][7].name
  3892. : "空位置"
  3893. }}</span>
  3894. </div>
  3895. </div>
  3896. </div>
  3897. <div class="g_d_group_chair">
  3898. <div v-if="groupJson.number > 1">
  3899. <span :class="{
  3900. isChair:
  3901. groupStudent[toolindex][gindex] &&
  3902. groupStudent[toolindex][gindex][1],
  3903. updateChair:
  3904. courseDetail.userid == userid &&
  3905. groupStudent[toolindex][gindex] &&
  3906. groupStudent[toolindex][gindex][1] &&
  3907. groupJson.islock == 2,
  3908. }"><span class="updateChairBtn" @click="
  3909. updateGroupChair(
  3910. groupStudent[toolindex][gindex] &&
  3911. groupStudent[toolindex][gindex][1]
  3912. )
  3913. ">修改</span></span><span>{{
  3914. groupStudent[toolindex][gindex] &&
  3915. groupStudent[toolindex][gindex][1]
  3916. ? groupStudent[toolindex][gindex] &&
  3917. groupStudent[toolindex][gindex][1].name
  3918. : "空位置"
  3919. }}</span>
  3920. </div>
  3921. <div v-if="groupJson.number > 5">
  3922. <span :class="{
  3923. isChair:
  3924. groupStudent[toolindex][gindex] &&
  3925. groupStudent[toolindex][gindex][5],
  3926. updateChair:
  3927. courseDetail.userid == userid &&
  3928. groupStudent[toolindex][gindex] &&
  3929. groupStudent[toolindex][gindex][5] &&
  3930. groupJson.islock == 2,
  3931. }"><span class="updateChairBtn" @click="
  3932. updateGroupChair(
  3933. groupStudent[toolindex][gindex] &&
  3934. groupStudent[toolindex][gindex][5]
  3935. )
  3936. ">修改</span></span><span>{{
  3937. groupStudent[toolindex][gindex] &&
  3938. groupStudent[toolindex][gindex][5]
  3939. ? groupStudent[toolindex][gindex] &&
  3940. groupStudent[toolindex][gindex][5].name
  3941. : "空位置"
  3942. }}</span>
  3943. </div>
  3944. <div v-if="groupJson.number > 9">
  3945. <span :class="{
  3946. isChair:
  3947. groupStudent[toolindex][gindex] &&
  3948. groupStudent[toolindex][gindex][9],
  3949. updateChair:
  3950. courseDetail.userid == userid &&
  3951. groupStudent[toolindex][gindex] &&
  3952. groupStudent[toolindex][gindex][9] &&
  3953. groupJson.islock == 2,
  3954. }"><span class="updateChairBtn" @click="
  3955. updateGroupChair(
  3956. groupStudent[toolindex][gindex] &&
  3957. groupStudent[toolindex][gindex][9]
  3958. )
  3959. ">修改</span></span><span>{{
  3960. groupStudent[toolindex][gindex] &&
  3961. groupStudent[toolindex][gindex][9]
  3962. ? groupStudent[toolindex][gindex] &&
  3963. groupStudent[toolindex][gindex][9].name
  3964. : "空位置"
  3965. }}</span>
  3966. </div>
  3967. </div>
  3968. </div>
  3969. </div>
  3970. </div>
  3971. </div>
  3972. <span slot="footer" class="dialog-footer">
  3973. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  3974. </span>
  3975. </el-dialog>
  3976. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
  3977. :before-close="handleClose" class="dialog_diy">
  3978. <div class="groupBox">
  3979. <div v-if="groupJson2.group" class="groupContent">
  3980. <div class="groupTitle">请设置小组数量</div>
  3981. <div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
  3982. <span class="groupn">组{{ index + 1 }}名称:</span>
  3983. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3984. <!-- <div class="groupBtn">
  3985. <el-button type="primary" size="small" @click="addGroup(index)">
  3986. 添加</el-button>
  3987. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3988. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  3989. </div> -->
  3990. </div>
  3991. </div>
  3992. <div class="groupContent">
  3993. <div class="groupTitle">请设置每组人数数量</div>
  3994. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3995. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3996. <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
  3997. placeholder="2-10人以内"></el-input-number>
  3998. </div>
  3999. </div>
  4000. <span slot="footer" class="dialog-footer">
  4001. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  4002. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  4003. </span>
  4004. </el-dialog>
  4005. <el-dialog title="作业提交" :visible.sync="dialogVisibleGroupWork" :append-to-body="true" width="500px"
  4006. :before-close="handleClose" class="dialog_change">
  4007. <div class="marginT">
  4008. <div>上传文件</div>
  4009. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  4010. <div class="up_photo">
  4011. <img src="../assets/icon/uploadImg.png" alt />
  4012. </div>
  4013. <input type="file"
  4014. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4015. capture="camera" style="display: none" @change="beforeUpload1($event, 1)" />
  4016. </div>
  4017. <div class="chapter_add" style="
  4018. display: flex;
  4019. width: 100%;
  4020. flex-direction: row;
  4021. flex-wrap: wrap;
  4022. justify-content: flex-start;
  4023. padding: 15px 0;
  4024. " v-if="studyJuri[0].cover.length > 0">
  4025. <div class="upCover">
  4026. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  4027. <img :src="word" alt v-else-if="fileType == 1" />
  4028. <img :src="video" alt v-else />
  4029. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  4030. <div class="deleteWord" @click="clean(1)">
  4031. <img src="../assets/icon/deleteWorks.png" alt />
  4032. </div>
  4033. </div>
  4034. </div>
  4035. </div>
  4036. <div class="upload_send" @click="addCourseWorks2(taskCount)" v-if="!proVisible">
  4037. 提交
  4038. </div>
  4039. </el-dialog>
  4040. <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
  4041. :before-close="handleClose" class="dialog_diy">
  4042. <div>
  4043. <h2>
  4044. {{ this.updateGroupUser.name }}
  4045. </h2>
  4046. <div style="color: rgb(171 171 171); margin-top: 10px">
  4047. 请选择要进入的分组
  4048. </div>
  4049. <el-radio-group v-model="checkChair">
  4050. <el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray"
  4051. :label="item.label" :key="index">{{ item.name }}</el-radio>
  4052. </el-radio-group>
  4053. </div>
  4054. <span slot="footer" class="dialog-footer">
  4055. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  4056. <el-button type="primary" @click="updateChair">确定</el-button>
  4057. </span>
  4058. </el-dialog>
  4059. <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
  4060. :before-close="handleClose" class="dialog_diy">
  4061. <div>
  4062. <h2>
  4063. {{ this.deleteGroupArray.name }}
  4064. </h2>
  4065. <div style="color: rgb(171 171 171); margin-top: 10px">
  4066. 请选择要删除的组员
  4067. </div>
  4068. <el-checkbox-group v-model="checkDeleteGroup">
  4069. <el-checkbox style="display: block; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
  4070. :label="item.userid" :key="index">{{ item.name }}</el-checkbox>
  4071. </el-checkbox-group>
  4072. </div>
  4073. <span slot="footer" class="dialog-footer">
  4074. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  4075. <el-button type="primary" @click="deleteChair">确定</el-button>
  4076. </span>
  4077. </el-dialog>
  4078. <el-dialog title="批量上传" :visible.sync="dialogVisiblePl" :append-to-body="true" width="700px"
  4079. :before-close="handleClose" class="dialog_change">
  4080. <div class="marginT">
  4081. <div>上传文件</div>
  4082. <div class="plworkBox">
  4083. <div class="chapter_add" style="
  4084. display: flex;
  4085. width: 150px;
  4086. flex-direction: row;
  4087. flex-wrap: wrap;
  4088. justify-content: flex-start;
  4089. margin: 0 10px 10px 0;
  4090. " v-for="(item, index) in plworkFile" :key="index">
  4091. <div class="upCover2">
  4092. <img :src="item.url" alt v-if="item.fileType == 1" />
  4093. <img :src="word" alt v-else-if="item.fileType == 4" />
  4094. <img :src="video" alt v-else />
  4095. <!-- <span class="picName">{{ item.name }}</span> -->
  4096. <!-- <el-input
  4097. v-model="item.username"
  4098. placeholder="请输入学生名字"
  4099. style="margin-top: 10px"
  4100. ></el-input> -->
  4101. <el-select style="margin-top:10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  4102. <el-option v-for="item1 in classJuri" :key="item1.userid"
  4103. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  4104. </el-option>
  4105. </el-select>
  4106. <div class="deleteWord" @click="clean2(index)">
  4107. <img src="../assets/icon/deleteWorks.png" alt />
  4108. </div>
  4109. </div>
  4110. </div>
  4111. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  4112. <div class="up_photo2">
  4113. <img src="../assets/icon/plwork.png" alt />
  4114. <span>点击批量上传文件</span>
  4115. </div>
  4116. <input type="file"
  4117. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4118. capture="camera" multiple="multiple" style="display: none" @change="beforeUpload3($event, 6)" />
  4119. </div>
  4120. </div>
  4121. </div>
  4122. <div class="upload_send" @click="addCourseWorksPl(taskCount)" v-if="!proVisible2">
  4123. 提交
  4124. </div>
  4125. </el-dialog>
  4126. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  4127. class="dialog_diy" center>
  4128. <div style="text-align: center">
  4129. <span class="tian1">名称</span>
  4130. <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  4131. placeholder="请选择学生">
  4132. <el-option v-for="item in classJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  4133. :value="item.userid">
  4134. </el-option>
  4135. </el-select>
  4136. <!-- <el-input
  4137. v-model="worksSName"
  4138. style="width: 250px; margin: 15px 0px"
  4139. ></el-input> -->
  4140. </div>
  4141. <span slot="footer" class="dialog-footer">
  4142. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  4143. <el-button type="primary" @click="updateName">确 定</el-button>
  4144. </span>
  4145. </el-dialog>
  4146. </div>
  4147. </template>
  4148. <script>
  4149. import "../common/aws-sdk-2.235.1.min.js";
  4150. // import pdf from "./components/pdf3";
  4151. import pdf from "./components/vpdf";
  4152. import AskStatic from "./components/askStatic";
  4153. import AskStatic2 from "./components/askStatic2";
  4154. import AnswerData2 from "./components/answerData2";
  4155. import AnswerData from "./components/answerData";
  4156. import EditorBar from "./tools/wangEnduit.vue";
  4157. import Table from "./tools/table.vue";
  4158. import Time from "./tools/time.vue";
  4159. import Mind from "./tools/jsmind.vue";
  4160. import Sunburst from "./tools/sunburst";
  4161. import SeeBoard from "./tools/seeBoard";
  4162. import * as imageConversion from "image-conversion";
  4163. import Audio from "./components/audio.vue";
  4164. import ImgDraw from "./tools/imgDraw/imgDraw";
  4165. import { Empty } from "element-ui";
  4166. import RecordRTC from "recordrtc";
  4167. export default {
  4168. components: {
  4169. EditorBar,
  4170. Time,
  4171. pdf,
  4172. AskStatic,
  4173. AskStatic2,
  4174. Mind,
  4175. Sunburst,
  4176. SeeBoard,
  4177. AnswerData2,
  4178. AnswerData,
  4179. Audio,
  4180. ImgDraw,
  4181. Table,
  4182. },
  4183. data() {
  4184. return {
  4185. bg: null,
  4186. drawShow: false,
  4187. dialogVisible: false,
  4188. dialogVisiblePl: false,
  4189. commentDialogVisible: false,
  4190. videoVisible: false,
  4191. isStar: false,
  4192. studentEvalDialogVisible: false,
  4193. dialogVisibleSelect: false,
  4194. dialogVisibleScore: false,
  4195. dialogVisibleSentence: false,
  4196. dialogVisibleSentence1: false,
  4197. dialogVisibleWorks: false,
  4198. dialogVisibleTable: false,
  4199. dialogVisibleTable2: false,
  4200. dialogVisibleGroupWork: false,
  4201. dialogVisibleUpdateGroup: false,
  4202. dialogVisibleDeleteGroup: false,
  4203. dialogVisibleSname: false,
  4204. worksSName: "",
  4205. classJuri: [],
  4206. snameWid: "",
  4207. sStudent: {},
  4208. bzText: "",
  4209. commentDetail: [],
  4210. selectAnswer: [],
  4211. videoDetail: {},
  4212. selectJson: {},
  4213. eScore: { eBzText: "", eStar: [] },
  4214. id: this.$route.query.courseId,
  4215. userid: this.$route.query.userid,
  4216. classId: this.$route.query.cid,
  4217. // courseTypeLine: this.$route.query.type,
  4218. oid: this.$route.query.oid,
  4219. org: this.$route.query.org,
  4220. tType: this.$route.query.tType,
  4221. courseType: this.$route.query.type,
  4222. screenType: this.$route.query.screenType,
  4223. pptImgUrl: "",
  4224. pptImgUrl1: "",
  4225. commentText: "",
  4226. full: false,
  4227. sIsOpen: false,
  4228. IsLookOpen: false,
  4229. pzDialog: false,
  4230. type: 1,
  4231. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  4232. sentenceList1: [],
  4233. tableJson: [],
  4234. vedio: [],
  4235. text: [],
  4236. textList: [],
  4237. line: [],
  4238. lineList: [],
  4239. chapTools: [],
  4240. chapToolList: [],
  4241. file: [],
  4242. vedioTime: [],
  4243. upToolImg: "",
  4244. preTime:0,
  4245. rateList: {
  4246. ca: 0,
  4247. },
  4248. rateParams: [],
  4249. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  4250. studyJuri: [
  4251. {
  4252. content: "",
  4253. cover: [],
  4254. upVedio: [],
  4255. upFile: [],
  4256. },
  4257. ],
  4258. plworkFile: [],
  4259. mr: require("../assets/vedioPic.png"),
  4260. word: require("../assets/icon/isWord.png"),
  4261. video: require("../assets/icon/isVideo.png"),
  4262. noLikes: require("../assets/icon/comment/noLikes.png"),
  4263. likes: require("../assets/icon/comment/likes.png"),
  4264. scoreImg: require("../assets/score.png"),
  4265. courseDetail: {},
  4266. isSelect: false,
  4267. chapInfo: [],
  4268. chapInfoList: [],
  4269. taskCount: 0,
  4270. imgList: [],
  4271. noImgList: [],
  4272. pzList: [],
  4273. PlTextList: [
  4274. "Excellent!",
  4275. "nice!",
  4276. "很有创意!",
  4277. "还不错哦~",
  4278. "继续努力哦~",
  4279. ],
  4280. isClickNav: "",
  4281. navId: "",
  4282. playerOptions: {
  4283. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  4284. autoplay: false, //如果true,浏览器准备好时开始回放。
  4285. muted: false, // 默认情况下将会消除任何音频。
  4286. loop: false, // 导致视频一结束就重新开始。
  4287. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  4288. language: "zh-CN",
  4289. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  4290. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  4291. sources: [
  4292. {
  4293. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  4294. src: "", //url地址require("../../assets/media/aaa.mp4")
  4295. },
  4296. ],
  4297. // poster: require("../../assets/tu31.png"), //你的封面地址
  4298. // poster: dataRes.imgUrl, //你的封面地址
  4299. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  4300. controlBar: {
  4301. timeDivider: true, //当前时间和持续时间的分隔符
  4302. durationDisplay: true, //显示持续时间
  4303. remainingTimeDisplay: false, //是否显示剩余时间功能
  4304. fullscreenToggle: true, //全屏按钮
  4305. },
  4306. },
  4307. playerOptions1: {
  4308. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  4309. autoplay: false, //如果true,浏览器准备好时开始回放。
  4310. muted: false, // 默认情况下将会消除任何音频。
  4311. loop: false, // 导致视频一结束就重新开始。
  4312. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  4313. language: "zh-CN",
  4314. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  4315. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  4316. sources: [
  4317. {
  4318. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  4319. src: "", //url地址require("../../assets/media/aaa.mp4")
  4320. },
  4321. ],
  4322. // poster: require("../../assets/tu31.png"), //你的封面地址
  4323. // poster: dataRes.imgUrl, //你的封面地址
  4324. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  4325. controlBar: {
  4326. timeDivider: true, //当前时间和持续时间的分隔符
  4327. durationDisplay: true, //显示持续时间
  4328. remainingTimeDisplay: false, //是否显示剩余时间功能
  4329. fullscreenToggle: true, //全屏按钮
  4330. },
  4331. },
  4332. playerO: {},
  4333. noneBtnImg: false,
  4334. proVisible: false,
  4335. proVisible2: false,
  4336. progress: 0,
  4337. questionAnswer: "",
  4338. answerQ: "", //问答标题
  4339. rateJson: [],
  4340. wbCount: 0,
  4341. wordCount: 0,
  4342. mindCount: 0,
  4343. askCount: 0,
  4344. noteCount: 0,
  4345. mindNetWorkCount: 0,
  4346. libraryCount: 0,
  4347. workCount: 0,
  4348. timeCount: 0,
  4349. answerCount: 0,
  4350. trainCount: 0,
  4351. evalCount: 0,
  4352. dialogImageUrl: "",
  4353. pictureDialog: false,
  4354. toolTypeList: [],
  4355. dialogVisible1: false,
  4356. dialogVisible2: false,
  4357. dialogVisible3: false,
  4358. dialogVisible6: false,
  4359. dialogVisible4: false,
  4360. isNoHomeWork: false,
  4361. dialogVisible5: false,
  4362. dialogVisibleChoice: false,
  4363. answerDialogVisible: false,
  4364. juriVisible: false,
  4365. timeDialogVisible: false,
  4366. radio: [],
  4367. isAsk: false,
  4368. askJson: {
  4369. askCount: 1,
  4370. askTitle: "",
  4371. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4372. },
  4373. testJson: {},
  4374. checkJson: [],
  4375. askList: [],
  4376. answerList: [],
  4377. navList: [],
  4378. addPzDialog: false,
  4379. pzConText: "",
  4380. worksStudent: [],
  4381. workStudent: [],
  4382. groupStudent: [],
  4383. groupStudentUid: [],
  4384. noWorksS: [],
  4385. isWorksS: [],
  4386. noWorksStudent: [],
  4387. toolindex: 0,
  4388. groupIndex: 0,
  4389. workTypeB: false,
  4390. workTypeC: false,
  4391. isAnswer: false,
  4392. timer: null,
  4393. showType: 0,
  4394. fileType: 0,
  4395. showPDF: false,
  4396. noteName: "",
  4397. evaJuri: [],
  4398. evalua: "",
  4399. eTitle: "",
  4400. eName: "",
  4401. eJson: {},
  4402. fid: "", //一级
  4403. sid: "", //二级
  4404. tid: "", //二级
  4405. typeMode: 1,
  4406. eJSONNum: 0,
  4407. Etype: 1,
  4408. data: {
  4409. meta: {
  4410. name: "example",
  4411. author: "dd@163.com",
  4412. version: "0.2",
  4413. },
  4414. format: "node_array",
  4415. data: [{ id: "root", isroot: true, topic: "" }],
  4416. },
  4417. fullDialogVisible: false,
  4418. fulltype: "",
  4419. fullUrl: "",
  4420. commentIndexJson: {},
  4421. Stbodywidth: 0,
  4422. pzType: 1,
  4423. wScore: 0,
  4424. scoreDetail: "",
  4425. videoStart: false,
  4426. recorder: null,
  4427. groupJson: {},
  4428. groupJson2: {},
  4429. dialogVisibleGroup: false,
  4430. dialogVisibleGroup2: false,
  4431. updateGroupArray: [],
  4432. updateGroupUser: {},
  4433. deleteGroupUser: [],
  4434. deleteGroupArray: {},
  4435. checkChair: "",
  4436. checkDeleteGroup: [],
  4437. };
  4438. },
  4439. methods: {
  4440. jump() {
  4441. window.parent.postMessage({ tools: "43" }, "*");
  4442. },
  4443. previewImg(url) {
  4444. this.$hevueImgPreview(url);
  4445. },
  4446. change(val) {
  4447. console.log(val);
  4448. },
  4449. goTo(path) {
  4450. this.$router.push(path);
  4451. },
  4452. handlePictureCardPreview(url) {
  4453. this.dialogImageUrl = url;
  4454. this.pictureDialog = true;
  4455. },
  4456. clean(type) {
  4457. if (type == 1) {
  4458. this.studyJuri[0].cover.splice(0, 1);
  4459. } else if (type == 2) {
  4460. this.studyJuri[0].upVedio.splice(0, 1);
  4461. } else {
  4462. this.studyJuri[0].upFile.splice(0, 1);
  4463. }
  4464. },
  4465. clean2(index) {
  4466. this.plworkFile.splice(index, 1);
  4467. },
  4468. handleClose(done) {
  4469. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  4470. this.videoDetail.sources[0].src = "";
  4471. }
  4472. this.commentIndexJson = {};
  4473. done();
  4474. },
  4475. fullTools() {
  4476. this.full = !this.full;
  4477. },
  4478. imgChange(file, fileList, type) {
  4479. if (type == 1) {
  4480. var _tmp = this.studyJuri[0].cover;
  4481. } else if (type == 2) {
  4482. var _tmp = this.studyJuri[0].upVedio;
  4483. } else {
  4484. var _tmp = this.studyJuri[0].upFile;
  4485. }
  4486. this.noneBtnImg = _tmp.length >= 1;
  4487. },
  4488. addImg(e) {
  4489. var el = e.currentTarget;
  4490. // this.$message.success('触发上传')
  4491. el.getElementsByTagName("input")[0].click();
  4492. e.target.value = "";
  4493. },
  4494. addSelectAnswer() {
  4495. let params = [
  4496. {
  4497. uid: this.userid,
  4498. cid: this.id,
  4499. stage: this.courseType,
  4500. task: this.taskCount,
  4501. tool: this.toolindex,
  4502. content: this.selectAnswer.answer,
  4503. type: 7,
  4504. },
  4505. ];
  4506. this.ajax
  4507. .post(this.$store.state.api + "addCourseWorks", params)
  4508. .then((res) => {
  4509. this.$message({
  4510. message: "提交成功",
  4511. type: "success",
  4512. });
  4513. this.dialogVisibleSelect = false;
  4514. // this.selectAnswer = {};
  4515. this.selectSWorks();
  4516. this.selectStudent();
  4517. })
  4518. .catch((err) => {
  4519. this.$message.error("提交失败");
  4520. console.error(err);
  4521. });
  4522. },
  4523. addSenWorks() {
  4524. for (var i = 0; i < this.sentenceList.length; i++) {
  4525. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  4526. if (
  4527. this.sentenceList[i].chooseSenList[j] == undefined ||
  4528. this.sentenceList[i].chooseSenList[j] == ""
  4529. ) {
  4530. this.$message.error("请将答案填写完整!");
  4531. return;
  4532. }
  4533. }
  4534. }
  4535. let params = [
  4536. {
  4537. uid: this.userid,
  4538. cid: this.id,
  4539. stage: this.courseType,
  4540. task: this.taskCount,
  4541. tool: this.toolindex,
  4542. content: JSON.stringify(this.sentenceList),
  4543. type: 9,
  4544. },
  4545. ];
  4546. this.ajax
  4547. .post(this.$store.state.api + "addCourseWorks", params)
  4548. .then((res) => {
  4549. this.$message({
  4550. message: "提交成功",
  4551. type: "success",
  4552. });
  4553. this.dialogVisibleSentence = false;
  4554. // this.selectAnswer = {};
  4555. this.selectSWorks();
  4556. this.selectStudent();
  4557. })
  4558. .catch((err) => {
  4559. this.$message.error("提交失败");
  4560. console.error(err);
  4561. });
  4562. },
  4563. addTableWorks() {
  4564. let params = [
  4565. {
  4566. uid: this.userid,
  4567. cid: this.id,
  4568. stage: this.courseType,
  4569. task: this.taskCount,
  4570. tool: this.toolindex,
  4571. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  4572. type: 10,
  4573. },
  4574. ];
  4575. this.ajax
  4576. .post(this.$store.state.api + "addCourseWorks", params)
  4577. .then((res) => {
  4578. this.$message({
  4579. message: "提交成功",
  4580. type: "success",
  4581. });
  4582. this.dialogVisibleTable = false;
  4583. // this.selectAnswer = {};
  4584. this.selectSWorks();
  4585. this.selectStudent();
  4586. })
  4587. .catch((err) => {
  4588. this.$message.error("提交失败");
  4589. console.error(err);
  4590. });
  4591. },
  4592. addCourseWorks(i) {
  4593. var typesql;
  4594. if (this.fileType === 0) {
  4595. typesql = 1;
  4596. } else if (this.fileType === 1) {
  4597. typesql = 4;
  4598. } else {
  4599. typesql = 5;
  4600. }
  4601. if (!this.studyJuri[0].cover[0].url) {
  4602. this.$message.error("请上传文件");
  4603. return;
  4604. }
  4605. let params = [
  4606. {
  4607. uid: this.userid,
  4608. cid: this.id,
  4609. stage: this.courseType,
  4610. task: i,
  4611. tool: this.toolindex,
  4612. content: this.studyJuri[0].cover[0].url,
  4613. type: typesql,
  4614. },
  4615. ];
  4616. this.ajax
  4617. .post(this.$store.state.api + "addCourseWorksR", params)
  4618. .then((res) => {
  4619. this.$message({
  4620. message: "提交成功",
  4621. type: "success",
  4622. });
  4623. this.studyJuri[0].cover = [];
  4624. this.dialogVisible = false;
  4625. this.getCourseDetail();
  4626. })
  4627. .catch((err) => {
  4628. this.$message.error("提交失败");
  4629. console.error(err);
  4630. });
  4631. },
  4632. addCourseWorksPl(i) {
  4633. let _files = this.plworkFile;
  4634. var c = 1;
  4635. for (var k = 0; k < _files.length; k++) {
  4636. if (!_files[k].username) {
  4637. c = 2;
  4638. }
  4639. }
  4640. if (c == 2) {
  4641. this.$message.error("请填写学生姓名");
  4642. return;
  4643. }
  4644. let params = [
  4645. {
  4646. ateacher: this.userid,
  4647. cid: this.id,
  4648. stage: this.courseType,
  4649. task: i,
  4650. tool: this.toolindex,
  4651. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  4652. },
  4653. ];
  4654. this.ajax
  4655. .post(this.$store.state.api + "addCourseWorksPl", params)
  4656. .then((res) => {
  4657. this.$message({
  4658. message: "提交成功",
  4659. type: "success",
  4660. });
  4661. this.plworkFile = [];
  4662. this.dialogVisiblePl = false;
  4663. this.getCourseDetail();
  4664. })
  4665. .catch((err) => {
  4666. this.$message.error("提交失败");
  4667. console.error(err);
  4668. });
  4669. },
  4670. addCourseWorks2(i) {
  4671. var typesql;
  4672. if (this.fileType === 0) {
  4673. typesql = 0;
  4674. } else if (this.fileType === 1) {
  4675. typesql = 1;
  4676. } else {
  4677. typesql = 3;
  4678. }
  4679. if (!this.studyJuri[0].cover[0].url) {
  4680. this.$message.error("请上传文件");
  4681. return;
  4682. }
  4683. let params = [
  4684. {
  4685. uid: this.userid,
  4686. cid: this.id,
  4687. stage: this.courseType,
  4688. task: i,
  4689. tool: this.toolindex,
  4690. content: JSON.stringify({
  4691. type: typesql,
  4692. groupIndex: this.groupIndex,
  4693. url: this.studyJuri[0].cover[0].url,
  4694. }).replaceAll(/%/g, "%25"),
  4695. type: 11,
  4696. atool: 49,
  4697. text: "",
  4698. },
  4699. ];
  4700. this.ajax
  4701. .post(this.$store.state.api + "addCourseWorks5", params)
  4702. .then((res) => {
  4703. this.$message({
  4704. message: "提交成功",
  4705. type: "success",
  4706. });
  4707. this.studyJuri[0].cover = [];
  4708. this.dialogVisibleGroupWork = false;
  4709. this.getCourseDetail();
  4710. })
  4711. .catch((err) => {
  4712. this.$message.error("提交失败");
  4713. console.error(err);
  4714. });
  4715. },
  4716. addCourseWorksTeacher(i) {
  4717. var typesql;
  4718. if (this.fileType === 0) {
  4719. typesql = 1;
  4720. } else if (this.fileType === 1) {
  4721. typesql = 4;
  4722. } else {
  4723. typesql = 5;
  4724. }
  4725. if (!this.studyJuri[0].cover[0].url) {
  4726. this.$message.error("请上传文件");
  4727. return;
  4728. }
  4729. let params = [
  4730. {
  4731. uid: this.sStudent.userid,
  4732. cid: this.id,
  4733. stage: this.courseType,
  4734. task: i,
  4735. tool: this.toolindex,
  4736. content: this.studyJuri[0].cover[0].url,
  4737. type: typesql,
  4738. ateacher: this.userid,
  4739. },
  4740. ];
  4741. this.ajax
  4742. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  4743. .then((res) => {
  4744. this.$message({
  4745. message: "提交成功",
  4746. type: "success",
  4747. });
  4748. this.studyJuri[0].cover = [];
  4749. this.dialogVisibleWorks = false;
  4750. this.getCourseDetail();
  4751. })
  4752. .catch((err) => {
  4753. this.$message.error("提交失败");
  4754. console.error(err);
  4755. });
  4756. },
  4757. selectCStudent() {
  4758. let params = {
  4759. cid: this.classId,
  4760. };
  4761. this.ajax
  4762. .get(this.$store.state.api + "selectSnameByCid", params)
  4763. .then((res) => {
  4764. this.classJuri = res.data[0];
  4765. })
  4766. .catch((err) => {
  4767. console.error(err);
  4768. });
  4769. },
  4770. selectWorksStudent() {
  4771. let params = {
  4772. oid: this.oid,
  4773. cid: this.courseDetail.juri,
  4774. };
  4775. this.ajax
  4776. .get(this.$store.state.api + "selectWorksStudent", params)
  4777. .then((res) => {
  4778. var a = res.data[0];
  4779. for (var i = 0; i < this.isWorksS.length; i++) {
  4780. this.noWorksS[i] = [];
  4781. var studentK = [];
  4782. if (this.isWorksS[i].length > 0) {
  4783. for (var z = 0; z < this.isWorksS[i].length; z++) {
  4784. studentK.push(this.isWorksS[i][z].uid);
  4785. }
  4786. studentK = studentK.join(",");
  4787. for (var j = 0; j < a.length; j++) {
  4788. if (studentK.indexOf(a[j].userid) == -1) {
  4789. this.noWorksS[i].push({
  4790. student: a[j].name,
  4791. userid: a[j].userid,
  4792. });
  4793. }
  4794. }
  4795. } else {
  4796. for (var k = 0; k < a.length; k++) {
  4797. this.noWorksS[i].push({
  4798. student: a[k].name,
  4799. userid: a[k].userid,
  4800. });
  4801. }
  4802. }
  4803. }
  4804. this.$forceUpdate();
  4805. if (
  4806. Object.keys(this.commentDetail).length &&
  4807. Object.keys(this.commentIndexJson).length &&
  4808. !this.dialogVisibleScore
  4809. ) {
  4810. let a = 1;
  4811. let c = this.commentIndexJson;
  4812. console.log(c);
  4813. if (
  4814. this.commentIndexJson.gindex ||
  4815. this.commentIndexJson.gindex === 0
  4816. ) {
  4817. for (
  4818. var i = 0;
  4819. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  4820. i++
  4821. ) {
  4822. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  4823. for (var k = 0; k < _el.length; k++) {
  4824. let el = _el[k];
  4825. if (el.wid == this.commentDetail.wid) {
  4826. a = 2;
  4827. this.commentOther(
  4828. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  4829. this.commentIndexJson.toolIndex,
  4830. k,
  4831. this.commentIndexJson.gindex
  4832. );
  4833. }
  4834. break;
  4835. }
  4836. }
  4837. if (a === 1) {
  4838. this.commentDetail = [];
  4839. this.commentIndexJson = {};
  4840. this.commentDialogVisible = false;
  4841. this.$message("此作业已被删除");
  4842. }
  4843. } else {
  4844. for (
  4845. var i = 0;
  4846. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  4847. i++
  4848. ) {
  4849. let el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  4850. if (el.wid == this.commentDetail.wid) {
  4851. a = 2;
  4852. this.commentOther(
  4853. this.worksStudent[this.commentIndexJson.toolIndex][i],
  4854. this.commentIndexJson.toolIndex,
  4855. i
  4856. );
  4857. break;
  4858. }
  4859. }
  4860. if (a === 1) {
  4861. this.commentDetail = [];
  4862. this.commentIndexJson = {};
  4863. this.commentDialogVisible = false;
  4864. this.$message("此作业已被删除");
  4865. }
  4866. }
  4867. }
  4868. })
  4869. .catch((err) => {
  4870. console.error(err);
  4871. });
  4872. },
  4873. selectStudent() {
  4874. //学生查看自己作业
  4875. let params = {
  4876. uid: this.userid,
  4877. cid: this.id,
  4878. s: this.courseType,
  4879. t: this.taskCount,
  4880. };
  4881. this.ajax
  4882. .get(this.$store.state.api + "selectStudentWorks", params)
  4883. .then((res) => {
  4884. var a =
  4885. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4886. this.taskCount
  4887. ].toolChoose;
  4888. var b = res.data[0];
  4889. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4890. var y = [
  4891. "AVI",
  4892. "NAVI",
  4893. "MPEG",
  4894. "ASF",
  4895. "MOV",
  4896. "WMV",
  4897. "3GP",
  4898. "RM",
  4899. "RMVB",
  4900. "FLV",
  4901. "F4V",
  4902. "H.264",
  4903. "H.265",
  4904. "REAL VIDEO",
  4905. "MKV",
  4906. "WebM",
  4907. "HDDVD",
  4908. "MP4",
  4909. "MPG",
  4910. "M4V",
  4911. "MGV",
  4912. "OGV",
  4913. "QTM",
  4914. "STR",
  4915. "AMC",
  4916. "DVX",
  4917. "EVO",
  4918. "DAT",
  4919. "OGG",
  4920. "OGM",
  4921. ];
  4922. for (var i = 0; i < a.length; i++) {
  4923. this.workStudent[i] = [];
  4924. for (var j = 0; j < b.length; j++) {
  4925. if (i == b[j].tool) {
  4926. if (
  4927. (b[j].type == 1 ||
  4928. b[j].type == 4 ||
  4929. b[j].type == 5 ||
  4930. b[j].type == 6 ||
  4931. b[j].type == 7) &&
  4932. a[i].tool[0] != 15 &&
  4933. a[i].tool[0] != 4 &&
  4934. a[i].tool[0] != 45 &&
  4935. a[i].tool[0] != 50
  4936. ) {
  4937. if (
  4938. c.indexOf(
  4939. b[j].content
  4940. .split(".")
  4941. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  4942. ) != -1 &&
  4943. a[i].tool[0] == 16 && b[j].atool != 50
  4944. ) {
  4945. this.workStudent[i].push({
  4946. works: b[j].content,
  4947. sName: b[j].name,
  4948. score: b[j].score,
  4949. img: b[j].img,
  4950. type: 1,
  4951. time: b[j].time,
  4952. userid: b[j].userid,
  4953. wid: b[j].id,
  4954. });
  4955. } else if (
  4956. y.indexOf(
  4957. b[j].content
  4958. .split(".")
  4959. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  4960. ) != -1 &&
  4961. a[i].tool[0] == 16 && b[j].atool != 50
  4962. ) {
  4963. this.workStudent[i].push({
  4964. userid: b[j].userid,
  4965. wid: b[j].id,
  4966. works: b[j].content,
  4967. sName: b[j].name,
  4968. score: b[j].score,
  4969. img: b[j].img,
  4970. type: 3,
  4971. time: b[j].time,
  4972. });
  4973. } else if (b[j].type == 6 && b[j].atool != 50) {
  4974. this.workStudent[i].push({
  4975. userid: b[j].userid,
  4976. wid: b[j].id,
  4977. works: b[j].content,
  4978. sName: b[j].name,
  4979. score: b[j].score,
  4980. img: b[j].img,
  4981. type: 4,
  4982. time: b[j].time,
  4983. });
  4984. } else if (b[j].type == 7 && b[j].atool != 50) {
  4985. this.workStudent[i].push({
  4986. userid: b[j].userid,
  4987. wid: b[j].id,
  4988. works: b[j].content,
  4989. sName: b[j].name,
  4990. score: b[j].score,
  4991. img: b[j].img,
  4992. type: 5,
  4993. time: b[j].time,
  4994. });
  4995. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  4996. this.workStudent[i].push({
  4997. works: b[j].content,
  4998. sName: b[j].name,
  4999. score: b[j].score,
  5000. img: b[j].img,
  5001. type: 0,
  5002. time: b[j].time,
  5003. userid: b[j].userid,
  5004. wid: b[j].id,
  5005. });
  5006. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  5007. this.workStudent[i].push({
  5008. works: b[j].content,
  5009. sName: b[j].name,
  5010. score: b[j].score,
  5011. img: b[j].img,
  5012. type: 0,
  5013. time: b[j].time,
  5014. userid: b[j].userid,
  5015. wid: b[j].id,
  5016. });
  5017. }
  5018. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  5019. this.workStudent[i].push({
  5020. works: b[j].content,
  5021. sName: b[j].name,
  5022. score: b[j].score,
  5023. img: b[j].img,
  5024. type: 2,
  5025. time: b[j].time,
  5026. userid: b[j].userid,
  5027. wid: b[j].id,
  5028. });
  5029. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  5030. //问卷
  5031. this.workStudent[i].push({
  5032. works: b[j].content,
  5033. sName: b[j].name,
  5034. score: b[j].score,
  5035. img: b[j].img,
  5036. type: 2,
  5037. time: b[j].time,
  5038. userid: b[j].userid,
  5039. wid: b[j].id,
  5040. });
  5041. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  5042. //选择题
  5043. this.workStudent[i].push({
  5044. works: b[j].content,
  5045. sName: b[j].name,
  5046. score: b[j].score,
  5047. img: b[j].img,
  5048. type: 8,
  5049. time: b[j].time,
  5050. userid: b[j].userid,
  5051. wid: b[j].id,
  5052. });
  5053. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  5054. //选择题
  5055. this.workStudent[i].push({
  5056. works: b[j].content,
  5057. sName: b[j].name,
  5058. score: b[j].score,
  5059. img: b[j].img,
  5060. type: 9,
  5061. time: b[j].time,
  5062. userid: b[j].userid,
  5063. wid: b[j].id,
  5064. });
  5065. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  5066. //选择题
  5067. this.workStudent[i].push({
  5068. works: b[j].content,
  5069. sName: b[j].name,
  5070. score: b[j].score,
  5071. img: b[j].img,
  5072. type: 10,
  5073. time: b[j].time,
  5074. userid: b[j].userid,
  5075. wid: b[j].id,
  5076. });
  5077. }
  5078. }
  5079. }
  5080. }
  5081. })
  5082. .catch((err) => {
  5083. console.error(err);
  5084. });
  5085. },
  5086. openVideo(w) {
  5087. this.videoDetail = {};
  5088. this.playerOptions1.sources[0].src = w.works;
  5089. this.videoDetail = this.playerOptions1;
  5090. this.videoVisible = true;
  5091. },
  5092. isLikes(wid, uid, t, c, isLikes) {
  5093. if (isLikes == false) {
  5094. let params = [
  5095. {
  5096. wid: wid,
  5097. lid: uid,
  5098. t: t,
  5099. c: c,
  5100. },
  5101. ];
  5102. this.ajax
  5103. .post(this.$store.state.api + "insertComment", params)
  5104. .then((res) => {
  5105. this.$message({
  5106. message: "点赞成功",
  5107. type: "success",
  5108. });
  5109. this.selectSWorks();
  5110. this.selectStudent();
  5111. })
  5112. .catch((err) => {
  5113. this.$message.error("点赞失败");
  5114. console.error(err);
  5115. });
  5116. } else {
  5117. let params = {
  5118. wid: wid,
  5119. lid: uid,
  5120. type: t,
  5121. };
  5122. this.ajax
  5123. .get(this.$store.state.api + "deleteComment", params)
  5124. .then((res) => {
  5125. this.$message({
  5126. message: "取消点赞成功",
  5127. type: "success",
  5128. });
  5129. this.selectSWorks();
  5130. this.selectStudent();
  5131. })
  5132. .catch((err) => {
  5133. console.error(err);
  5134. });
  5135. }
  5136. },
  5137. commentOther(w, toolIndex, wIndex, gindex) {
  5138. this.commentIndexJson = {
  5139. toolIndex: toolIndex,
  5140. wIndex: wIndex,
  5141. gindex: gindex,
  5142. };
  5143. this.commentDetail = [];
  5144. this.commentDialogVisible = true;
  5145. this.commentDetail = w;
  5146. if (w.works && w.type == 1) {
  5147. this.pptImgUrl = "";
  5148. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  5149. if (
  5150. a.indexOf(
  5151. w.works
  5152. .split(".")
  5153. [w.works.split(".").length - 1].toLocaleUpperCase()
  5154. ) != -1
  5155. ) {
  5156. this.pptImgUrl =
  5157. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  5158. this.showPDF = false;
  5159. } else if (
  5160. w.works
  5161. .split(".")
  5162. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5163. ) {
  5164. this.pptImgUrl = w.works;
  5165. this.showPDF = true;
  5166. }
  5167. } else if (w.works && w.type == 3) {
  5168. this.videoDetail = {};
  5169. this.playerOptions1.sources[0].src = w.works;
  5170. this.videoDetail = this.playerOptions1;
  5171. // this.videoVisible = true;
  5172. } else if (w.works && w.type == 4) {
  5173. this.eScore = JSON.parse(w.works);
  5174. this.rateJson =
  5175. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5176. this.taskCount
  5177. ].toolChoose[toolIndex].rateJson;
  5178. } else if (w.works && w.type == 10) {
  5179. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  5180. }
  5181. },
  5182. openScore(w) {
  5183. this.wScore = 0;
  5184. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  5185. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  5186. this.commentDetail = [];
  5187. this.dialogVisibleScore = true;
  5188. this.commentDetail = w;
  5189. if (w.works && w.type == 1) {
  5190. this.pptImgUrl = "";
  5191. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  5192. if (
  5193. a.indexOf(
  5194. w.works
  5195. .split(".")
  5196. [w.works.split(".").length - 1].toLocaleUpperCase()
  5197. ) != -1
  5198. ) {
  5199. this.pptImgUrl =
  5200. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  5201. this.showPDF = false;
  5202. } else if (
  5203. w.works
  5204. .split(".")
  5205. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5206. ) {
  5207. this.pptImgUrl = w.works;
  5208. this.showPDF = true;
  5209. }
  5210. } else if (w.works && w.type == 3) {
  5211. this.videoDetail = {};
  5212. this.playerOptions1.sources[0].src = w.works;
  5213. this.videoDetail = this.playerOptions1;
  5214. }
  5215. },
  5216. addComment(wid, uid, t) {
  5217. if (this.commentText == "") {
  5218. this.$message.error("请输入对该学生的评价");
  5219. return;
  5220. }
  5221. let params2 = [
  5222. {
  5223. wid: wid,
  5224. lid: uid,
  5225. t: t,
  5226. },
  5227. ];
  5228. this.ajax
  5229. .post(this.$store.state.api + "getComment", params2)
  5230. .then((res) => {
  5231. if (res.data[0].length > 0) {
  5232. this.$message.error("一个作业只能评论一条");
  5233. } else {
  5234. let params = [
  5235. {
  5236. wid: wid,
  5237. lid: uid,
  5238. t: t,
  5239. c: this.commentText,
  5240. },
  5241. ];
  5242. this.ajax
  5243. .post(this.$store.state.api + "insertComment", params)
  5244. .then((res) => {
  5245. this.$message({
  5246. message: "评论成功",
  5247. type: "success",
  5248. });
  5249. this.commentText = "";
  5250. this.selectSWorks();
  5251. this.selectStudent();
  5252. })
  5253. .catch((err) => {
  5254. this.$message.error("评论失败");
  5255. console.error(err);
  5256. });
  5257. }
  5258. })
  5259. .catch((err) => {
  5260. // this.$message.error("评论失败");
  5261. console.error(err);
  5262. });
  5263. },
  5264. scoreWork(wid) {
  5265. if (this.wScore == 0) {
  5266. this.$message.error("请评分");
  5267. return;
  5268. }
  5269. let params = [
  5270. {
  5271. wid: wid,
  5272. score: JSON.stringify({
  5273. wScore: this.wScore,
  5274. detail: this.scoreDetail,
  5275. }),
  5276. },
  5277. ];
  5278. this.ajax
  5279. .post(this.$store.state.api + "scoreWork", params)
  5280. .then((res) => {
  5281. this.$message({
  5282. message: "评分成功",
  5283. type: "success",
  5284. });
  5285. this.wScore = 0;
  5286. this.scoreDetail = "";
  5287. this.dialogVisibleScore = false;
  5288. this.selectSWorks();
  5289. this.selectStudent();
  5290. })
  5291. .catch((err) => {
  5292. this.$message.error("评分失败");
  5293. console.error(err);
  5294. });
  5295. },
  5296. openXz(w, i) {
  5297. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  5298. .taskJson[this.taskCount].toolChoose[i].selectJson
  5299. ? JSON.parse(
  5300. JSON.stringify(
  5301. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5302. this.taskCount
  5303. ].toolChoose[i].selectJson
  5304. )
  5305. )
  5306. : { url: "", select: [], answer: [] };
  5307. var a = w.works.split(",");
  5308. for (var k = 0; k < a.length; k++) {
  5309. a[k] = parseInt(a[k]);
  5310. }
  5311. this.selectAnswer = { answer: a, stu: w.sName };
  5312. this.isSelect = true;
  5313. this.dialogVisibleSelect = true;
  5314. },
  5315. openSen(w, i) {
  5316. this.sentenceList1 = JSON.parse(w.works);
  5317. this.sentenceList1.stuName = w.sName;
  5318. this.dialogVisibleSentence1 = true;
  5319. },
  5320. openPj(w, toolindex) {
  5321. this.isStar = true;
  5322. this.eScore = JSON.parse(w);
  5323. this.rateJson =
  5324. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5325. this.taskCount
  5326. ].toolChoose[toolindex].rateJson;
  5327. this.studentEvalDialogVisible = true;
  5328. },
  5329. deleteWorks(id) {
  5330. this.$confirm("确定删除此作业吗?", "提示", {
  5331. confirmButtonText: "确定",
  5332. cancelButtonText: "取消",
  5333. type: "warning",
  5334. })
  5335. .then(() => {
  5336. let params = [
  5337. {
  5338. id: id,
  5339. },
  5340. ];
  5341. this.ajax
  5342. .post(this.$store.state.api + "deleteCourseWork", params)
  5343. .then((res) => {
  5344. this.$message({
  5345. message: "删除成功",
  5346. type: "success",
  5347. });
  5348. this.selectStudent();
  5349. this.selectSWorks();
  5350. this.selectSLook();
  5351. })
  5352. .catch((err) => {
  5353. this.$message.error("网络异常");
  5354. console.error(err);
  5355. });
  5356. })
  5357. .catch(() => { });
  5358. },
  5359. selectSWorks(gindex) {
  5360. //教师查看全部作业
  5361. let params = {
  5362. cid: this.id,
  5363. s: this.courseType,
  5364. t: this.taskCount,
  5365. };
  5366. this.ajax
  5367. .get(this.$store.state.api + "selectSWorks", params)
  5368. .then((res) => {
  5369. var a =
  5370. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5371. this.taskCount
  5372. ].toolChoose;
  5373. var b = res.data[0];
  5374. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  5375. var y = [
  5376. "AVI",
  5377. "NAVI",
  5378. "MPEG",
  5379. "ASF",
  5380. "MOV",
  5381. "WMV",
  5382. "3GP",
  5383. "RM",
  5384. "RMVB",
  5385. "FLV",
  5386. "F4V",
  5387. "H.264",
  5388. "H.265",
  5389. "REAL VIDEO",
  5390. "MKV",
  5391. "WebM",
  5392. "HDDVD",
  5393. "MP4",
  5394. "MPG",
  5395. "M4V",
  5396. "MGV",
  5397. "OGV",
  5398. "QTM",
  5399. "STR",
  5400. "AMC",
  5401. "DVX",
  5402. "EVO",
  5403. "DAT",
  5404. "OGG",
  5405. "OGM",
  5406. ];
  5407. var d = res.data[1];
  5408. var e = res.data[2];
  5409. var f = res.data[3];
  5410. for (var i = 0; i < a.length; i++) {
  5411. this.worksStudent[i] = [];
  5412. this.groupStudent[i] = [];
  5413. this.groupStudentUid[i] = [];
  5414. this.isWorksS[i] = [];
  5415. this.checkJson[i] = [];
  5416. if (a[i].tool[0] == 49) {
  5417. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  5418. this.groupStudent[i][gA] = [];
  5419. this.groupStudentUid[i][gA] = [];
  5420. this.worksStudent[i][gA] = [];
  5421. for (var g = 0; g < f.length; g++) {
  5422. if (gA == f[g].group && f[g].tool == i) {
  5423. this.groupStudent[i][gA].push(f[g]);
  5424. this.groupStudentUid[i][gA].push(f[g].userid);
  5425. }
  5426. }
  5427. }
  5428. this.$forceUpdate();
  5429. }
  5430. for (var j = 0; j < b.length; j++) {
  5431. var likesCount = 0;
  5432. var commentCount = 0;
  5433. var isLikes = false;
  5434. var commentJson = [];
  5435. var data = b[j];
  5436. if (i == b[j].tool) {
  5437. if (data.type == 2 && a[i].tool[0] == 4) {
  5438. // if(JSON.parse(data.content)[0].anwer){
  5439. var checkL = JSON.parse(data.content)[0].anwer.split(",");
  5440. for (var z = 0; z < checkL.length; z++) {
  5441. if (!this.checkJson[i][z]) {
  5442. this.checkJson[i].push({
  5443. checkCount: [],
  5444. checkPerson: [],
  5445. rightPerson: [],
  5446. });
  5447. }
  5448. if (!this.checkJson[i][z].checkCount.length) {
  5449. this.checkJson[i][z].checkCount = [];
  5450. let _askItemCount = JSON.parse(data.content)[0].askJson
  5451. .askJson[z].askItem;
  5452. for (var aic = 0; aic < _askItemCount; aic++) {
  5453. this.checkJson[i][z].checkCount.push(0);
  5454. }
  5455. }
  5456. if (
  5457. (JSON.parse(data.content)[0].askJson.askJson[z].answer ||
  5458. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  5459. 0) &&
  5460. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  5461. checkL[z]
  5462. ) {
  5463. this.checkJson[i][z].rightPerson.push(data.name);
  5464. }
  5465. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  5466. ? this.checkJson[i][z].checkPerson[
  5467. parseInt(checkL[z])
  5468. ].push(data.name)
  5469. : (this.checkJson[i][z].checkPerson[parseInt(checkL[z])] =
  5470. [data.name]);
  5471. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  5472. ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
  5473. : (this.checkJson[i][z].checkCount[
  5474. parseInt(checkL[z])
  5475. ] = 1);
  5476. // }
  5477. }
  5478. } else if (data.type == 8 && a[i].tool[0] == 45) {
  5479. var checkL = JSON.parse(data.content)[0].anwer;
  5480. for (var z = 0; z < checkL.length; z++) {
  5481. if (!this.checkJson[i][z]) {
  5482. this.checkJson[i].push({
  5483. checkCount: [],
  5484. checkPerson: [],
  5485. rightPerson: [],
  5486. });
  5487. }
  5488. if (!this.checkJson[i][z].checkCount.length) {
  5489. this.checkJson[i][z].checkCount = [];
  5490. let _askItemCount = JSON.parse(data.content)[0].testJson
  5491. .testJson[z].testItem;
  5492. for (var aic = 0; aic < _askItemCount; aic++) {
  5493. this.checkJson[i][z].checkCount.push(0);
  5494. }
  5495. }
  5496. if (checkL[z] instanceof Array) {
  5497. if (
  5498. JSON.parse(data.content)[0].testJson.testJson[
  5499. z
  5500. ].answer.join(",") == checkL[z].join(",")
  5501. ) {
  5502. this.checkJson[i][z].rightPerson.push(data.name);
  5503. }
  5504. for (var q = 0; q < checkL[z].length; q++) {
  5505. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  5506. ? this.checkJson[i][z].checkPerson[
  5507. parseInt(checkL[z][q])
  5508. ].push(data.name)
  5509. : (this.checkJson[i][z].checkPerson[
  5510. parseInt(checkL[z][q])
  5511. ] = [data.name]);
  5512. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  5513. ? this.checkJson[i][z].checkCount[
  5514. parseInt(checkL[z][q])
  5515. ]++
  5516. : (this.checkJson[i][z].checkCount[
  5517. parseInt(checkL[z][q])
  5518. ] = 1);
  5519. }
  5520. } else {
  5521. if (
  5522. JSON.parse(data.content)[0].testJson.testJson[z]
  5523. .answer == checkL[z]
  5524. ) {
  5525. this.checkJson[i][z].rightPerson.push(data.name);
  5526. }
  5527. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  5528. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  5529. ? this.checkJson[i][z].checkPerson[
  5530. parseInt(checkL[z])
  5531. ].push(data.name)
  5532. : (this.checkJson[i][z].checkPerson[
  5533. parseInt(checkL[z])
  5534. ] = [data.name]);
  5535. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  5536. ? this.checkJson[i][z].checkCount[
  5537. parseInt(checkL[z])
  5538. ]++
  5539. : (this.checkJson[i][z].checkCount[
  5540. parseInt(checkL[z])
  5541. ] = 1);
  5542. }
  5543. }
  5544. }
  5545. } else if (data.type == 9 && a[i].tool[0] == 47) {
  5546. var checkL = JSON.parse(data.content);
  5547. for (var z = 0; z < checkL.length; z++) {
  5548. if (!this.checkJson[i][z]) {
  5549. this.checkJson[i].push({
  5550. checkCount: [],
  5551. checkPerson: [],
  5552. rightPerson: [],
  5553. });
  5554. }
  5555. this.checkJson[i][z].checkPerson.push(data.name);
  5556. if (
  5557. checkL[z].chooseSenList.toString() ==
  5558. checkL[z].rightAnswer.toString()
  5559. ) {
  5560. this.checkJson[i][z].rightPerson.push(data.name);
  5561. }
  5562. }
  5563. }
  5564. for (var k = 0; k < d.length; k++) {
  5565. //点赞
  5566. if (d[k].workId == b[j].id) {
  5567. likesCount++;
  5568. if (d[k].likesId == this.userid) {
  5569. isLikes = true;
  5570. }
  5571. }
  5572. }
  5573. for (var l = 0; l < e.length; l++) {
  5574. //评论
  5575. if (e[l].workId == b[j].id) {
  5576. if (e[l].comment != "") {
  5577. commentCount++;
  5578. commentJson.push({
  5579. commentText: e[l].comment,
  5580. commentTime: e[l].commentTime,
  5581. commentPeople: e[l].commentPeople,
  5582. });
  5583. }
  5584. }
  5585. }
  5586. if (
  5587. (b[j].type == 1 ||
  5588. b[j].type == 4 ||
  5589. b[j].type == 5 ||
  5590. b[j].type == 6 ||
  5591. b[j].type == 7) &&
  5592. a[i].tool[0] != 15 &&
  5593. a[i].tool[0] != 4 &&
  5594. a[i].tool[0] != 45 &&
  5595. a[i].tool[0] != 50
  5596. ) {
  5597. if (
  5598. c.indexOf(
  5599. b[j].content
  5600. .split(".")
  5601. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  5602. ) != -1 &&
  5603. a[i].tool[0] == 16 &&
  5604. b[j].atool != 50
  5605. ) {
  5606. this.worksStudent[i].push({
  5607. userid: b[j].userid,
  5608. ateacher: b[j].ateacher,
  5609. wid: b[j].id,
  5610. works: b[j].content,
  5611. sName: b[j].name,
  5612. type: 1,
  5613. time: b[j].time,
  5614. score: b[j].score,
  5615. img: b[j].img,
  5616. likesCount: likesCount,
  5617. commentCount: commentCount,
  5618. isLikes: isLikes,
  5619. commentJson: commentJson,
  5620. });
  5621. } else if (
  5622. y.indexOf(
  5623. b[j].content
  5624. .split(".")
  5625. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  5626. ) != -1 &&
  5627. a[i].tool[0] == 16 && b[j].atool != 50
  5628. ) {
  5629. this.worksStudent[i].push({
  5630. userid: b[j].userid,
  5631. ateacher: b[j].ateacher,
  5632. wid: b[j].id,
  5633. works: b[j].content,
  5634. sName: b[j].name,
  5635. type: 3,
  5636. time: b[j].time,
  5637. score: b[j].score,
  5638. img: b[j].img,
  5639. likesCount: likesCount,
  5640. commentCount: commentCount,
  5641. isLikes: isLikes,
  5642. commentJson: commentJson,
  5643. });
  5644. } else if (b[j].type == 6 && b[j].atool != 50) {
  5645. this.worksStudent[i].push({
  5646. userid: b[j].userid,
  5647. ateacher: b[j].ateacher,
  5648. wid: b[j].id,
  5649. works: b[j].content,
  5650. sName: b[j].name,
  5651. type: 4,
  5652. time: b[j].time,
  5653. score: b[j].score,
  5654. img: b[j].img,
  5655. likesCount: likesCount,
  5656. commentCount: commentCount,
  5657. isLikes: isLikes,
  5658. commentJson: commentJson,
  5659. });
  5660. } else if (b[j].type == 7 && b[j].atool != 50) {
  5661. this.worksStudent[i].push({
  5662. userid: b[j].userid,
  5663. ateacher: b[j].ateacher,
  5664. wid: b[j].id,
  5665. works: b[j].content,
  5666. sName: b[j].name,
  5667. type: 5,
  5668. time: b[j].time,
  5669. score: b[j].score,
  5670. img: b[j].img,
  5671. likesCount: likesCount,
  5672. commentCount: commentCount,
  5673. isLikes: isLikes,
  5674. commentJson: commentJson,
  5675. });
  5676. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  5677. this.worksStudent[i].push({
  5678. userid: b[j].userid,
  5679. ateacher: b[j].ateacher,
  5680. wid: b[j].id,
  5681. works: b[j].content,
  5682. sName: b[j].name,
  5683. type: 0,
  5684. time: b[j].time,
  5685. score: b[j].score,
  5686. img: b[j].img,
  5687. likesCount: likesCount,
  5688. commentCount: commentCount,
  5689. isLikes: isLikes,
  5690. commentJson: commentJson,
  5691. });
  5692. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  5693. this.worksStudent[i].push({
  5694. userid: b[j].userid,
  5695. ateacher: b[j].ateacher,
  5696. wid: b[j].id,
  5697. works: b[j].content,
  5698. sName: b[j].name,
  5699. type: 0,
  5700. time: b[j].time,
  5701. score: b[j].score,
  5702. img: b[j].img,
  5703. likesCount: likesCount,
  5704. commentCount: commentCount,
  5705. isLikes: isLikes,
  5706. commentJson: commentJson,
  5707. });
  5708. }
  5709. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  5710. this.worksStudent[i].push({
  5711. userid: b[j].userid,
  5712. ateacher: b[j].ateacher,
  5713. wid: b[j].id,
  5714. works: b[j].content,
  5715. sName: b[j].name,
  5716. type: 2,
  5717. time: b[j].time,
  5718. score: b[j].score,
  5719. img: b[j].img,
  5720. likesCount: likesCount,
  5721. commentCount: commentCount,
  5722. isLikes: isLikes,
  5723. commentJson: commentJson,
  5724. });
  5725. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  5726. //问卷
  5727. this.worksStudent[i].push({
  5728. userid: b[j].userid,
  5729. ateacher: b[j].ateacher,
  5730. wid: b[j].id,
  5731. works: b[j].content,
  5732. sName: b[j].name,
  5733. type: 2,
  5734. time: b[j].time,
  5735. score: b[j].score,
  5736. img: b[j].img,
  5737. likesCount: likesCount,
  5738. commentCount: commentCount,
  5739. isLikes: isLikes,
  5740. commentJson: commentJson,
  5741. });
  5742. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  5743. //选择题
  5744. this.worksStudent[i].push({
  5745. userid: b[j].userid,
  5746. ateacher: b[j].ateacher,
  5747. wid: b[j].id,
  5748. works: b[j].content,
  5749. sName: b[j].name,
  5750. type: 8,
  5751. time: b[j].time,
  5752. score: b[j].score,
  5753. img: b[j].img,
  5754. likesCount: likesCount,
  5755. commentCount: commentCount,
  5756. isLikes: isLikes,
  5757. commentJson: commentJson,
  5758. });
  5759. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  5760. //选择题
  5761. this.worksStudent[i].push({
  5762. userid: b[j].userid,
  5763. ateacher: b[j].ateacher,
  5764. wid: b[j].id,
  5765. works: b[j].content,
  5766. sName: b[j].name,
  5767. type: 9,
  5768. time: b[j].time,
  5769. score: b[j].score,
  5770. img: b[j].img,
  5771. likesCount: likesCount,
  5772. commentCount: commentCount,
  5773. isLikes: isLikes,
  5774. commentJson: commentJson,
  5775. });
  5776. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  5777. //选择题
  5778. this.worksStudent[i].push({
  5779. userid: b[j].userid,
  5780. ateacher: b[j].ateacher,
  5781. wid: b[j].id,
  5782. works: b[j].content,
  5783. sName: b[j].name,
  5784. type: 10,
  5785. time: b[j].time,
  5786. score: b[j].score,
  5787. img: b[j].img,
  5788. likesCount: likesCount,
  5789. commentCount: commentCount,
  5790. isLikes: isLikes,
  5791. commentJson: commentJson,
  5792. });
  5793. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  5794. let _gindex = JSON.parse(b[j].content);
  5795. if (
  5796. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  5797. b[j].userid
  5798. ) != -1
  5799. ) {
  5800. this.worksStudent[i][_gindex.groupIndex].push({
  5801. userid: b[j].userid,
  5802. ateacher: b[j].ateacher,
  5803. wid: b[j].id,
  5804. works: _gindex.url,
  5805. sName: b[j].name,
  5806. type: _gindex.type,
  5807. time: b[j].time,
  5808. score: b[j].score,
  5809. img: b[j].img,
  5810. likesCount: likesCount,
  5811. commentCount: commentCount,
  5812. isLikes: isLikes,
  5813. commentJson: commentJson,
  5814. });
  5815. }
  5816. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  5817. this.worksStudent[i].push({
  5818. userid: b[j].userid,
  5819. ateacher: b[j].ateacher,
  5820. wid: b[j].id,
  5821. works: b[j].content,
  5822. sName: b[j].name ? b[j].name : b[j].userid,
  5823. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  5824. time: b[j].time,
  5825. score: b[j].score,
  5826. img: b[j].img,
  5827. likesCount: likesCount,
  5828. commentCount: commentCount,
  5829. isLikes: isLikes,
  5830. commentJson: commentJson,
  5831. });
  5832. }
  5833. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  5834. }
  5835. }
  5836. if (this.worksStudent[i] && this.worksStudent[i].length) {
  5837. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  5838. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  5839. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  5840. var scoreA = parseFloat(jscoreA);
  5841. var scoreB = parseFloat(jscoreB);
  5842. if (scoreA == scoreB) {
  5843. return b.likesCount - a.likesCount;
  5844. }
  5845. return scoreB - scoreA;
  5846. });
  5847. }
  5848. }
  5849. for (var i = 0; i < a.length; i++) {
  5850. for (var j = 0; j < b.length; j++) {
  5851. var data = b[j];
  5852. if (i == b[j].tool) {
  5853. if (data.type == 2 || data.type == 8) {
  5854. for (var z = 0; z < this.checkJson[i].length; z++) {
  5855. this.checkJson[i][z].checkPerent = [];
  5856. this.checkJson[i][z].right = Math.round(
  5857. (this.checkJson[i][z].rightPerson.length /
  5858. parseInt(this.worksStudent[i].length)) *
  5859. 100
  5860. );
  5861. let aaaa = this.checkJson[i][z];
  5862. console.log(aaaa);
  5863. for (
  5864. var k = 0;
  5865. k < this.checkJson[i][z].checkCount.length;
  5866. k++
  5867. ) {
  5868. this.checkJson[i][z].checkPerent.push(
  5869. Math.round(
  5870. (this.checkJson[i][z].checkCount[k] /
  5871. parseInt(this.worksStudent[i].length)) *
  5872. 100
  5873. )
  5874. );
  5875. }
  5876. }
  5877. } else if (data.type == 9) {
  5878. for (var z = 0; z < this.checkJson[i].length; z++) {
  5879. this.checkJson[i][z].checkPerent = [];
  5880. this.checkJson[i][z].right = Math.round(
  5881. (this.checkJson[i][z].rightPerson.length /
  5882. this.checkJson[i][z].checkPerson.length) *
  5883. 100
  5884. );
  5885. }
  5886. }
  5887. }
  5888. }
  5889. }
  5890. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  5891. this.joinGroup(gindex);
  5892. }
  5893. this.selectWorksStudent();
  5894. })
  5895. .catch((err) => {
  5896. console.error(err);
  5897. });
  5898. },
  5899. pngToWhiteBg(file) {
  5900. const _file = file;
  5901. let read = new FileReader();
  5902. read.readAsDataURL(file); // 文件转base64
  5903. return new Promise((resolve, reject) => {
  5904. read.onload = (e) => {
  5905. let img = new Image();
  5906. img.src = e.target.result;
  5907. img.onload = async () => {
  5908. // 生成canvas
  5909. let canvas = document.createElement("canvas");
  5910. let context = canvas.getContext("2d");
  5911. // 绘制图片到canvas上
  5912. canvas.width = img.width;
  5913. canvas.height = img.height;
  5914. // 在canvas绘制前填充白色背景
  5915. context.fillStyle = "#fff";
  5916. context.fillRect(0, 0, canvas.width, canvas.height);
  5917. context.drawImage(img, 0, 0);
  5918. let base64 = canvas.toDataURL(file["type"], 1);
  5919. let newFile = this.dataUrlToFile(base64, _file);
  5920. resolve(newFile);
  5921. };
  5922. };
  5923. });
  5924. },
  5925. dataUrlToFile(dataurl, file) {
  5926. let arr = dataurl.split(","),
  5927. mime = arr[0].match(/:(.*?);/)[1],
  5928. bstr = atob(arr[1]),
  5929. n = bstr.length,
  5930. u8arr = new Uint8Array(n);
  5931. while (n--) {
  5932. u8arr[n] = bstr.charCodeAt(n);
  5933. }
  5934. // return new Blob([u8arr], { type: mime });
  5935. return new File([new Blob([u8arr], { type: mime })], file.name, {
  5936. type: mime,
  5937. });
  5938. },
  5939. async beforeUpload1(event, type, i) {
  5940. // this.$message.success('进入上传')
  5941. var file = "";
  5942. if (type == 5) {
  5943. file = event;
  5944. } else {
  5945. file = event.target.files[0];
  5946. }
  5947. var credentials = {
  5948. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5949. secretAccessKey: "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",
  5950. }; //秘钥形式的登录上传
  5951. window.AWS.config.update(credentials);
  5952. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5953. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5954. var _this = this;
  5955. _this.progress = 0;
  5956. _this.proVisible = true;
  5957. var b = [
  5958. "DOC",
  5959. "DOCX",
  5960. "DOCM",
  5961. "DOTM",
  5962. "DOTX",
  5963. "PPTX",
  5964. "PPSX",
  5965. "PPT",
  5966. "PPS",
  5967. "PPTM",
  5968. "POTM",
  5969. "PPAM",
  5970. "POTX",
  5971. "PPSM",
  5972. ];
  5973. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  5974. var photoA = [
  5975. "BMP",
  5976. "GIF",
  5977. "PNG",
  5978. "JPGE",
  5979. "JPG",
  5980. "TIF",
  5981. "PCX",
  5982. "TGA",
  5983. "EXIF",
  5984. "FPX",
  5985. "SVG",
  5986. "APNG",
  5987. ];
  5988. // if (
  5989. // b.indexOf(
  5990. // file.name
  5991. // .split(".")
  5992. // [file.name.split(".").length - 1].toLocaleUpperCase()
  5993. // ) != -1
  5994. // ) {
  5995. // if (file.size / 1024 / 1024 > 10) {
  5996. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  5997. // return;
  5998. // }
  5999. // } else if (
  6000. // excelA.indexOf(
  6001. // file.name
  6002. // .split(".")
  6003. // [file.name.split(".").length - 1].toLocaleUpperCase()
  6004. // ) != "-1"
  6005. // ) {
  6006. // if (file.size / 1024 / 1024 > 5) {
  6007. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  6008. // return;
  6009. // }
  6010. // }
  6011. if (
  6012. photoA.indexOf(
  6013. file.name
  6014. .split(".")
  6015. [file.name.split(".").length - 1].toLocaleUpperCase()
  6016. ) != -1 &&
  6017. type != 4
  6018. ) {
  6019. // const blob = await imageConversion.compress(file, 0.8)
  6020. file = await this.pngToWhiteBg(file);
  6021. const blob = await imageConversion.compressAccurately(file, 256);
  6022. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  6023. file = new File([blob], file.name, { type: file.type });
  6024. }
  6025. if (file) {
  6026. var params = {
  6027. Key:
  6028. file.name.split(".")[0] +
  6029. new Date().getTime() +
  6030. "." +
  6031. file.name.split(".")[file.name.split(".").length - 1],
  6032. ContentType: file.type,
  6033. Body: file,
  6034. "Access-Control-Allow-Credentials": "*",
  6035. ACL: "public-read",
  6036. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6037. var options = {
  6038. // partSize: 2048 * 1024 * 1024,
  6039. partSize: 1024 * 1024 * 1024,
  6040. queueSize: 2,
  6041. leavePartsOnError: true,
  6042. };
  6043. bucket
  6044. .upload(params, options)
  6045. .on("httpUploadProgress", function (evt) {
  6046. //这里可以写进度条
  6047. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6048. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  6049. })
  6050. .send(function (err, data) {
  6051. _this.progress = 100;
  6052. setTimeout(() => {
  6053. _this.proVisible = false;
  6054. }, 1000);
  6055. if (err) {
  6056. var a = _this.$refs.upload1.uploadFiles;
  6057. a.splice(a.length - 1, a.length);
  6058. _this.$message.error("上传失败");
  6059. } else {
  6060. // _this.$message.success('上传成功')
  6061. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  6062. var c = [
  6063. "AVI",
  6064. "NAVI",
  6065. "MPEG",
  6066. "ASF",
  6067. "MOV",
  6068. "WMV",
  6069. "3GP",
  6070. "RM",
  6071. "RMVB",
  6072. "FLV",
  6073. "F4V",
  6074. "H.264",
  6075. "H.265",
  6076. "REAL VIDEO",
  6077. "MKV",
  6078. "WebM",
  6079. "HDDVD",
  6080. "MP4",
  6081. "MPG",
  6082. "M4V",
  6083. "MGV",
  6084. "OGV",
  6085. "QTM",
  6086. "STR",
  6087. "AMC",
  6088. "DVX",
  6089. "EVO",
  6090. "DAT",
  6091. "OGG",
  6092. "OGM",
  6093. ];
  6094. if (type == 1) {
  6095. _this.studyJuri[0].cover.push({
  6096. name: file.name,
  6097. url: data.Location,
  6098. uid: file.uid,
  6099. });
  6100. if (
  6101. c.indexOf(
  6102. _this.studyJuri[0].cover[0].url
  6103. .split(".")
  6104. [
  6105. _this.studyJuri[0].cover[0].url.split(".").length - 1
  6106. ].toLocaleUpperCase()
  6107. ) != -1
  6108. ) {
  6109. _this.fileType = 2;
  6110. } else if (
  6111. b.indexOf(
  6112. _this.studyJuri[0].cover[0].url
  6113. .split(".")
  6114. [
  6115. _this.studyJuri[0].cover[0].url.split(".").length - 1
  6116. ].toLocaleUpperCase()
  6117. ) != -1
  6118. ) {
  6119. _this.fileType = 1;
  6120. } else {
  6121. _this.fileType = 0;
  6122. }
  6123. _this.imgChange(null, null, type);
  6124. } else if (type == 2) {
  6125. _this.upToolImg = data.Location;
  6126. _this.imgChange(null, null, type);
  6127. _this.addCourseWorks(i);
  6128. } else if (type == 4) {
  6129. _this.addPz("3", data.Location);
  6130. } else if (type == 5) {
  6131. _this.addImgDrawImG(data.Location);
  6132. } else if (type == 6) {
  6133. var _ftype = 1;
  6134. if (
  6135. c.indexOf(
  6136. data.Location.split(".")[
  6137. data.Location.split(".").length - 1
  6138. ].toLocaleUpperCase()
  6139. ) != -1
  6140. ) {
  6141. _ftype = 5;
  6142. } else if (
  6143. b.indexOf(
  6144. data.Location.split(".")[
  6145. data.Location.split(".").length - 1
  6146. ].toLocaleUpperCase()
  6147. ) != -1
  6148. ) {
  6149. _ftype = 4;
  6150. } else {
  6151. _ftype = 1;
  6152. }
  6153. _this.plworkFile.push({
  6154. name: file.name,
  6155. url: data.Location,
  6156. uid: file.uid,
  6157. fileType: _ftype,
  6158. username:
  6159. _this.plworkFile.length + 1 > 10
  6160. ? _this.plworkFile.length + 1
  6161. : "0" + (_this.plworkFile.length + 1),
  6162. });
  6163. }
  6164. _this.imgChange(null, null, type);
  6165. console.log(data.Location);
  6166. // _this.$message.success('上传成功'+data.Location)
  6167. }
  6168. });
  6169. }
  6170. },
  6171. async beforeUpload3(event, type, i) {
  6172. // this.$message.success('进入上传')
  6173. let file = "";
  6174. let cfindex2 = 0;
  6175. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  6176. file = event.target.files[cfindex];
  6177. var credentials = {
  6178. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6179. secretAccessKey: "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",
  6180. }; //秘钥形式的登录上传
  6181. window.AWS.config.update(credentials);
  6182. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6183. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6184. var _this = this;
  6185. // _this.progress = 0;
  6186. _this.proVisible2 = true;
  6187. var b = [
  6188. "DOC",
  6189. "DOCX",
  6190. "DOCM",
  6191. "DOTM",
  6192. "DOTX",
  6193. "PPTX",
  6194. "PPSX",
  6195. "PPT",
  6196. "PPS",
  6197. "PPTM",
  6198. "POTM",
  6199. "PPAM",
  6200. "POTX",
  6201. "PPSM",
  6202. ];
  6203. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  6204. var photoA = [
  6205. "BMP",
  6206. "GIF",
  6207. "PNG",
  6208. "JPGE",
  6209. "JPG",
  6210. "TIF",
  6211. "PCX",
  6212. "TGA",
  6213. "EXIF",
  6214. "FPX",
  6215. "SVG",
  6216. "APNG",
  6217. ];
  6218. if (
  6219. photoA.indexOf(
  6220. file.name
  6221. .split(".")
  6222. [file.name.split(".").length - 1].toLocaleUpperCase()
  6223. ) != -1 &&
  6224. type != 4
  6225. ) {
  6226. // const blob = await imageConversion.compress(file, 0.8)
  6227. file = await this.pngToWhiteBg(file);
  6228. const blob = await imageConversion.compressAccurately(file, 256);
  6229. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  6230. file = new File([blob], file.name, { type: file.type });
  6231. }
  6232. if (file) {
  6233. var params = {
  6234. Key:
  6235. file.name.split(".")[0] +
  6236. new Date().getTime() +
  6237. "." +
  6238. file.name.split(".")[file.name.split(".").length - 1],
  6239. ContentType: file.type,
  6240. Body: file,
  6241. "Access-Control-Allow-Credentials": "*",
  6242. ACL: "public-read",
  6243. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6244. var options = {
  6245. // partSize: 2048 * 1024 * 1024,
  6246. partSize: 1024 * 1024 * 1024,
  6247. queueSize: 2,
  6248. leavePartsOnError: true,
  6249. };
  6250. bucket
  6251. .upload(params, options)
  6252. .on("httpUploadProgress", function (evt) {
  6253. //这里可以写进度条
  6254. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6255. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  6256. })
  6257. .send(function (err, data) {
  6258. // _this.progress = 100;
  6259. cfindex2++;
  6260. setTimeout(() => {
  6261. if (
  6262. cfindex2 == event.target.files.length - 1 ||
  6263. cfindex2 > event.target.files.length - 1
  6264. ) {
  6265. _this.proVisible2 = false;
  6266. }
  6267. }, 1000);
  6268. if (err) {
  6269. var a = _this.$refs.upload1.uploadFiles;
  6270. a.splice(a.length - 1, a.length);
  6271. _this.$message.error("上传失败");
  6272. } else {
  6273. // _this.$message.success('上传成功')
  6274. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  6275. var c = [
  6276. "AVI",
  6277. "NAVI",
  6278. "MPEG",
  6279. "ASF",
  6280. "MOV",
  6281. "WMV",
  6282. "3GP",
  6283. "RM",
  6284. "RMVB",
  6285. "FLV",
  6286. "F4V",
  6287. "H.264",
  6288. "H.265",
  6289. "REAL VIDEO",
  6290. "MKV",
  6291. "WebM",
  6292. "HDDVD",
  6293. "MP4",
  6294. "MPG",
  6295. "M4V",
  6296. "MGV",
  6297. "OGV",
  6298. "QTM",
  6299. "STR",
  6300. "AMC",
  6301. "DVX",
  6302. "EVO",
  6303. "DAT",
  6304. "OGG",
  6305. "OGM",
  6306. ];
  6307. if (type == 1) {
  6308. _this.studyJuri[0].cover.push({
  6309. name: file.name,
  6310. url: data.Location,
  6311. uid: file.uid,
  6312. });
  6313. if (
  6314. c.indexOf(
  6315. _this.studyJuri[0].cover[0].url
  6316. .split(".")
  6317. [
  6318. _this.studyJuri[0].cover[0].url.split(".").length - 1
  6319. ].toLocaleUpperCase()
  6320. ) != -1
  6321. ) {
  6322. _this.fileType = 2;
  6323. } else if (
  6324. b.indexOf(
  6325. _this.studyJuri[0].cover[0].url
  6326. .split(".")
  6327. [
  6328. _this.studyJuri[0].cover[0].url.split(".").length - 1
  6329. ].toLocaleUpperCase()
  6330. ) != -1
  6331. ) {
  6332. _this.fileType = 1;
  6333. } else {
  6334. _this.fileType = 0;
  6335. }
  6336. _this.imgChange(null, null, type);
  6337. } else if (type == 2) {
  6338. _this.upToolImg = data.Location;
  6339. _this.imgChange(null, null, type);
  6340. _this.addCourseWorks(i);
  6341. } else if (type == 4) {
  6342. _this.addPz("3", data.Location);
  6343. } else if (type == 5) {
  6344. _this.addImgDrawImG(data.Location);
  6345. } else if (type == 6) {
  6346. var _ftype = 1;
  6347. if (
  6348. c.indexOf(
  6349. data.Location.split(".")[
  6350. data.Location.split(".").length - 1
  6351. ].toLocaleUpperCase()
  6352. ) != -1
  6353. ) {
  6354. _ftype = 5;
  6355. } else if (
  6356. b.indexOf(
  6357. data.Location.split(".")[
  6358. data.Location.split(".").length - 1
  6359. ].toLocaleUpperCase()
  6360. ) != -1
  6361. ) {
  6362. _ftype = 4;
  6363. } else {
  6364. _ftype = 1;
  6365. }
  6366. _this.plworkFile.push({
  6367. name: file.name,
  6368. url: data.Location,
  6369. uid: file.uid,
  6370. fileType: _ftype,
  6371. username:
  6372. _this.plworkFile.length + 1 > 10
  6373. ? _this.plworkFile.length + 1
  6374. : "0" + (_this.plworkFile.length + 1),
  6375. });
  6376. }
  6377. _this.imgChange(null, null, type);
  6378. console.log(data.Location);
  6379. // _this.$message.success('上传成功'+data.Location)
  6380. }
  6381. });
  6382. }
  6383. }
  6384. },
  6385. beforeUpload2(event, type) {
  6386. var file = event.target.files[0];
  6387. var credentials = {
  6388. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6389. secretAccessKey: "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",
  6390. }; //秘钥形式的登录上传
  6391. window.AWS.config.update(credentials);
  6392. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6393. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6394. var _this = this;
  6395. _this.progress = 0;
  6396. _this.proVisible = true;
  6397. if (file) {
  6398. var params = {
  6399. Key:
  6400. file.name.split(".")[0] +
  6401. new Date().getTime() +
  6402. "." +
  6403. file.name.split(".")[file.name.split(".").length - 1],
  6404. ContentType: file.type,
  6405. Body: file,
  6406. "Access-Control-Allow-Credentials": "*",
  6407. ACL: "public-read",
  6408. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6409. var options = {
  6410. partSize: 2048 * 1024 * 1024,
  6411. queueSize: 2,
  6412. leavePartsOnError: true,
  6413. };
  6414. bucket
  6415. .upload(params, options)
  6416. .on("httpUploadProgress", function (evt) {
  6417. //这里可以写进度条
  6418. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6419. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  6420. })
  6421. .send(function (err, data) {
  6422. _this.progress = 100;
  6423. setTimeout(() => {
  6424. _this.proVisible = false;
  6425. }, 1000);
  6426. if (err) {
  6427. var a = _this.$refs.upload1.uploadFiles;
  6428. a.splice(a.length - 1, a.length);
  6429. _this.$message.error("上传失败");
  6430. } else {
  6431. if (type == 2) {
  6432. _this.studyJuri[0].upVedio.push({
  6433. name: file.name,
  6434. url: data.Location,
  6435. uid: file.uid,
  6436. });
  6437. _this.imgChange(null, null, type);
  6438. } else if (type == 3) {
  6439. _this.studyJuri[0].upFile.push({
  6440. name: file.name,
  6441. url: data.Location,
  6442. uid: file.uid,
  6443. });
  6444. _this.imgChange(null, null, type);
  6445. }
  6446. console.log(data.Location);
  6447. }
  6448. });
  6449. }
  6450. },
  6451. allScrell() {
  6452. window.parent.postMessage({ allScreen: this.screenType }, "*");
  6453. },
  6454. nextOrpreSteps(t) {
  6455. var b = this.chapInfoList.length - 1;
  6456. if (t == 0) {
  6457. if (this.courseType == 0) {
  6458. if (this.taskCount == 0) {
  6459. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  6460. if (this.IsLookOpen) {
  6461. if (
  6462. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  6463. ) {
  6464. if (this.courseDetail.userid != this.userid) {
  6465. this.$message.error("任务未解锁");
  6466. } else {
  6467. this.$message.error("上一任务未解锁");
  6468. }
  6469. return;
  6470. }
  6471. }
  6472. this.navList[this.courseType].isOpen = false;
  6473. this.courseType = b;
  6474. this.taskCount =
  6475. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  6476. .length - 1;
  6477. this.navList[this.courseType].isOpen = true;
  6478. } else {
  6479. this.taskCount--;
  6480. }
  6481. } else {
  6482. if (this.taskCount == 0) {
  6483. this.navList[this.courseType].isOpen = false;
  6484. this.courseType--;
  6485. this.taskCount =
  6486. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  6487. .length - 1;
  6488. this.navList[this.courseType].isOpen = true;
  6489. } else {
  6490. this.taskCount--;
  6491. }
  6492. }
  6493. } else {
  6494. if (this.courseType == b) {
  6495. if (
  6496. this.taskCount ==
  6497. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  6498. 1
  6499. ) {
  6500. this.navList[this.courseType].isOpen = false;
  6501. this.courseType = 0;
  6502. this.taskCount = 0;
  6503. this.navList[this.courseType].isOpen = true;
  6504. } else {
  6505. var bbb = parseInt(this.taskCount) + 1;
  6506. if (
  6507. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  6508. .isLook &&
  6509. this.courseDetail.userid != this.userid &&
  6510. this.IsLookOpen
  6511. ) {
  6512. this.$message.error("任务未解锁");
  6513. return;
  6514. }
  6515. this.taskCount++;
  6516. if (this.IsLookOpen) {
  6517. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6518. this.taskCount
  6519. ].isLook = true;
  6520. this.addCourseState(3);
  6521. }
  6522. }
  6523. } else {
  6524. if (
  6525. this.taskCount ==
  6526. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  6527. 1
  6528. ) {
  6529. var bbb = parseInt(this.courseType) + 1;
  6530. if (
  6531. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  6532. this.courseDetail.userid != this.userid &&
  6533. this.IsLookOpen
  6534. ) {
  6535. this.$message.error("任务未解锁");
  6536. return;
  6537. }
  6538. this.navList[this.courseType].isOpen = false;
  6539. this.courseType++;
  6540. this.taskCount = 0;
  6541. this.navList[this.courseType].isOpen = true;
  6542. } else {
  6543. var bbb = parseInt(this.taskCount) + 1;
  6544. if (
  6545. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  6546. .isLook &&
  6547. this.courseDetail.userid != this.userid &&
  6548. this.IsLookOpen
  6549. ) {
  6550. this.$message.error("任务未解锁");
  6551. return;
  6552. }
  6553. this.taskCount++;
  6554. }
  6555. if (this.IsLookOpen) {
  6556. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6557. this.taskCount
  6558. ].isLook = true;
  6559. this.addCourseState(3);
  6560. }
  6561. }
  6562. // if (
  6563. // this.taskCount ==
  6564. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  6565. // ) {
  6566. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  6567. // } else {
  6568. // this.taskCount++;
  6569. // }
  6570. }
  6571. document.scrollingElement.scrollTop = 0;
  6572. this.showType = 0;
  6573. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  6574. // if (this.vedio[this.taskCount].length > 0) {
  6575. // var a =
  6576. // document.getElementsByClassName("box_course")[this.taskCount]
  6577. // .offsetHeight;
  6578. // document.getElementsByClassName("vedioList")[
  6579. // this.taskCount
  6580. // ].style.height = a + "px";
  6581. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  6582. // a - 40 + "px";
  6583. // }
  6584. this.isNoHomeWork = false;
  6585. (this.studyJuri = [
  6586. {
  6587. content: "",
  6588. cover: [],
  6589. upVedio: [],
  6590. upFile: [],
  6591. },
  6592. ]),
  6593. (this.radio = []);
  6594. this.isClickNav = "";
  6595. this.selectPz();
  6596. this.getHomeWork();
  6597. this.getCourseDetail();
  6598. this.$forceUpdate();
  6599. },
  6600. openTask(s, n, i) {
  6601. if (this.IsLookOpen) {
  6602. if (
  6603. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  6604. this.courseDetail.userid != this.userid
  6605. ) {
  6606. this.$message.error("任务未解锁");
  6607. return;
  6608. }
  6609. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  6610. if (
  6611. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  6612. .isLook
  6613. ) {
  6614. this.$message.error("上一任务未解锁");
  6615. return;
  6616. }
  6617. } else if (s > this.courseType) {
  6618. if (n > 0) {
  6619. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  6620. this.$message.error("上一任务未解锁");
  6621. return;
  6622. }
  6623. } else {
  6624. if (
  6625. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  6626. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  6627. ].isLook
  6628. ) {
  6629. this.$message.error("上一任务未解锁");
  6630. return;
  6631. }
  6632. }
  6633. }
  6634. }
  6635. this.courseType = s;
  6636. this.navId = i;
  6637. this.taskCount = n;
  6638. if (this.IsLookOpen) {
  6639. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6640. this.taskCount
  6641. ].isLook = true;
  6642. this.addCourseState(3);
  6643. }
  6644. this.showType = 0;
  6645. this.isNoHomeWork = false;
  6646. (this.studyJuri = [
  6647. {
  6648. content: "",
  6649. cover: [],
  6650. upVedio: [],
  6651. upFile: [],
  6652. },
  6653. ]),
  6654. (this.radio = []);
  6655. document.scrollingElement.scrollTop = 0;
  6656. // setTimeout(() => {
  6657. // let a = document.getElementById(i);
  6658. // if (a.offsetTop - 110 == 0) {
  6659. // window.scrollTo(0, 0);
  6660. // } else {
  6661. // window.scrollTo(0, a.offsetTop);
  6662. // }
  6663. // }, 0);
  6664. this.selectPz();
  6665. this.getHomeWork();
  6666. this.getCourseDetail();
  6667. },
  6668. get(i) {
  6669. this.navList[i].isOpen = !this.navList[i].isOpen;
  6670. },
  6671. addQuestion() {
  6672. this.answerList.push({
  6673. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  6674. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  6675. });
  6676. let params = [
  6677. {
  6678. uid: this.userid,
  6679. cid: this.id,
  6680. stage: this.courseType,
  6681. task: this.taskCount,
  6682. tool: this.toolindex,
  6683. content: JSON.stringify(this.answerList),
  6684. type: 3,
  6685. },
  6686. ];
  6687. this.ajax
  6688. .post(this.$store.state.api + "addCourseWorks", params)
  6689. .then((res) => {
  6690. this.$message({
  6691. message: "提交成功",
  6692. type: "success",
  6693. });
  6694. this.answerList = [];
  6695. this.answerDialogVisible = false;
  6696. this.selectStudent();
  6697. this.selectSWorks();
  6698. this.selectSLook();
  6699. })
  6700. .catch((err) => {
  6701. this.$message.error("提交失败");
  6702. console.error(err);
  6703. });
  6704. },
  6705. getCourseDetail(type, gindex) {
  6706. let loading;
  6707. if (type != 2) {
  6708. loading = this.$loading.service({
  6709. background: "rgba(255, 255, 255, 0.7)",
  6710. target: document.querySelector(".student_table"),
  6711. });
  6712. }
  6713. // this.navList[0].isOpen = false;
  6714. // this.navList[this.courseType].isOpen = true;
  6715. // this.courseType = this.courseTypeLine;
  6716. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  6717. let params = {
  6718. courseId: this.id,
  6719. };
  6720. this.ajax
  6721. .get(this.$store.state.api + "selectCourseDetail", params)
  6722. .then((res) => {
  6723. if (type != 2) {
  6724. loading.close();
  6725. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  6726. .chapterInfo[0].taskJson;
  6727. var b = [
  6728. "AVI",
  6729. "NAVI",
  6730. "MPEG",
  6731. "ASF",
  6732. "MOV",
  6733. "WMV",
  6734. "3GP",
  6735. "RM",
  6736. "RMVB",
  6737. "FLV",
  6738. "F4V",
  6739. "H.264",
  6740. "H.265",
  6741. "REAL VIDEO",
  6742. "MKV",
  6743. "WebM",
  6744. "HDDVD",
  6745. "MP4",
  6746. "MPG",
  6747. "M4V",
  6748. "MGV",
  6749. "OGV",
  6750. "QTM",
  6751. "STR",
  6752. "AMC",
  6753. "DVX",
  6754. "EVO",
  6755. "DAT",
  6756. "OGG",
  6757. "OGM",
  6758. ];
  6759. for (var i = 0; i < a.length; i++) {
  6760. var c = a[i].chapterData;
  6761. this.vedio[i] = [];
  6762. this.textList[i] = [];
  6763. this.lineList[i] = [];
  6764. this.chapToolList[i] = [];
  6765. this.file[i] = [];
  6766. for (var j = 0; j < c.length; j++) {
  6767. if (c[j].type == 7) {
  6768. this.chapToolList[i].push(c[j]);
  6769. } else if (c[j].type == 8) {
  6770. this.lineList[i].push(c[j]);
  6771. } else if (c[j].type == 6) {
  6772. this.textList[i].push(c[j]);
  6773. } else {
  6774. if (
  6775. b.indexOf(
  6776. c[j].url
  6777. .split(".")
  6778. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  6779. ) != -1
  6780. ) {
  6781. this.vedio[i].push(c[j]);
  6782. } else {
  6783. this.file[i].push(c[j]);
  6784. }
  6785. }
  6786. }
  6787. var d = JSON.parse(JSON.stringify(this.playerOptions));
  6788. d.sources[0].src =
  6789. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  6790. this.playerO[i] = d;
  6791. }
  6792. this.courseDetail = res.data[0][0];
  6793. this.evalua = res.data[0][0].evaId;
  6794. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  6795. this.courseType
  6796. ];
  6797. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  6798. // if (this.navList.length == 0) {
  6799. // this.navList = [];
  6800. // for (var l = 0; l < this.chapInfoList.length; l++) {
  6801. // var q = this.chapInfoList[l].dyName;
  6802. // var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  6803. // var e;
  6804. // this.navList.push({
  6805. // dyName: q,
  6806. // isOpen: l === 0 ? true : false,
  6807. // task: [],
  6808. // });
  6809. // for (var r = 0; r < w.length; r++) {
  6810. // e = w[r].task;
  6811. // this.navList[l].task.push({ taskName: e, id: l + "-" + r });
  6812. // this.navId = this.navId ? this.navId : l + "-" + r;
  6813. // }
  6814. // }
  6815. // }
  6816. // this.navList[0].isOpen = false;
  6817. // this.navList[this.courseType].isOpen = true;
  6818. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  6819. for (var l = 0; l < this.chapInfoList.length; l++) {
  6820. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  6821. for (var m = 0; m < w.length; m++) {
  6822. w[m].id = l + "-" + m;
  6823. }
  6824. }
  6825. if (
  6826. !this.vedio[this.taskCount][0] ||
  6827. this.vedio[this.taskCount][0].url == ""
  6828. ) {
  6829. if (
  6830. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6831. this.taskCount
  6832. ].chapterData.length > 0
  6833. ) {
  6834. // if (
  6835. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6836. // this.taskCount
  6837. // ].chapterData[0].type != 8
  6838. // ) {
  6839. let _url =
  6840. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6841. this.taskCount
  6842. ].chapterData[0].url;
  6843. if (
  6844. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6845. this.taskCount
  6846. ].chapterData[0].type == 8
  6847. ) {
  6848. this.showType = 2;
  6849. if (
  6850. _url.indexOf("https://") == -1 &&
  6851. _url.indexOf("http://") == -1
  6852. ) {
  6853. _url = "https://" + _url;
  6854. }
  6855. this.pptImgUrl1 = _url;
  6856. this.isClickNav = "line0";
  6857. } else if (
  6858. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6859. this.taskCount
  6860. ].chapterData[0].type == 3
  6861. ) {
  6862. if (
  6863. _url
  6864. .split(".")
  6865. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6866. ) {
  6867. this.showType = 3;
  6868. this.pptImgUrl1 = _url;
  6869. this.isClickNav = "word0";
  6870. } else if (
  6871. this.isAssetTypeAnImage(
  6872. _url
  6873. .split(".")
  6874. [_url.split(".").length - 1].toLocaleLowerCase()
  6875. )
  6876. ) {
  6877. this.showType = 4;
  6878. this.pptImgUrl1 = _url;
  6879. this.isClickNav = "word0";
  6880. } else {
  6881. this.showType = 2;
  6882. this.pptImgUrl1 =
  6883. "https://view.officeapps.live.com/op/view.aspx?src=" +
  6884. _url;
  6885. this.isClickNav = "word0";
  6886. }
  6887. } else if (
  6888. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6889. this.taskCount
  6890. ].chapterData[0].type == 6
  6891. ) {
  6892. this.showType = 1;
  6893. this.text = this.textList[this.taskCount][0];
  6894. this.isClickNav = "text0";
  6895. }
  6896. // }
  6897. // else {
  6898. // for (
  6899. // var y = 0;
  6900. // y <
  6901. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6902. // this.taskCount
  6903. // ].chapterData.length;
  6904. // y++
  6905. // ) {
  6906. // if (
  6907. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6908. // this.taskCount
  6909. // ].chapterData[y].type != 8
  6910. // ) {
  6911. // if (
  6912. // this.chapInfoList[this.courseType].chapterInfo[0]
  6913. // .taskJson[this.taskCount].chapterData[y].type == 3
  6914. // ) {
  6915. // let _url =
  6916. // this.chapInfoList[this.courseType].chapterInfo[0]
  6917. // .taskJson[this.taskCount].chapterData[y].url;
  6918. // if (
  6919. // _url
  6920. // .split(".")
  6921. // [_url.split(".").length - 1].toLocaleUpperCase() ==
  6922. // "PDF"
  6923. // ) {
  6924. // this.showType = 3;
  6925. // this.pptImgUrl1 = _url;
  6926. // } else if (
  6927. // this.isAssetTypeAnImage(
  6928. // _url
  6929. // .split(".")
  6930. // [_url.split(".").length - 1].toLocaleLowerCase()
  6931. // )
  6932. // ) {
  6933. // this.showType = 4;
  6934. // this.pptImgUrl1 = _url;
  6935. // } else {
  6936. // this.showType = 2;
  6937. // this.pptImgUrl1 =
  6938. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  6939. // _url;
  6940. // }
  6941. // } else if (
  6942. // this.chapInfoList[this.courseType].chapterInfo[0]
  6943. // .taskJson[this.taskCount].chapterData[y].type == 6
  6944. // ) {
  6945. // this.showType = 1;
  6946. // this.text = this.textList[this.taskCount][0];
  6947. // }
  6948. // } else {
  6949. // this.showType = 2;
  6950. // this.pptImgUrl1 =
  6951. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  6952. // _url;
  6953. // }
  6954. // }
  6955. // }
  6956. }
  6957. } else {
  6958. this.isClickNav = "video0";
  6959. }
  6960. } else {
  6961. this.courseDetail = res.data[0][0];
  6962. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  6963. }
  6964. this.$nextTick(() => {
  6965. setTimeout(() => {
  6966. this.checkEva();
  6967. }, 1000);
  6968. });
  6969. this.selectStudent();
  6970. this.selectSWorks(gindex);
  6971. this.selectSLook();
  6972. let _this = this;
  6973. if (_this.timer) {
  6974. clearInterval(_this.timer);
  6975. _this.timer = null;
  6976. }
  6977. if (this.dialogVisibleGroup) {
  6978. this.groupJson =
  6979. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6980. this.taskCount
  6981. ].toolChoose[this.toolindex].groupJson;
  6982. // this.$forceUpdate();
  6983. }
  6984. _this.timer = setInterval(function () {
  6985. // _this.selectSWorks();
  6986. // _this.selectStudent();
  6987. // _this.selectSLook();
  6988. _this.getCourseDetail(2);
  6989. if (_this.tType == 4) {
  6990. _this.selectPz();
  6991. }
  6992. }, 5000);
  6993. _this.$nextTick(function () {
  6994. setTimeout(() => {
  6995. var a =
  6996. document.getElementsByClassName("box_course")[0].offsetHeight;
  6997. document.getElementsByClassName("vedioList")[0].style.height =
  6998. a + "px";
  6999. document.getElementsByClassName("navBox")[0].style.height =
  7000. a - 40 + "px";
  7001. if (_this.vedio[_this.taskCount].length > 0) {
  7002. _this.vedioTime = [];
  7003. for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  7004. _this.vedioTime[i] = document.getElementsByClassName(
  7005. "vjs-duration-display"
  7006. )[i].textContent;
  7007. }
  7008. }
  7009. }, 500);
  7010. });
  7011. })
  7012. .catch((err) => {
  7013. loading.close();
  7014. console.error(err);
  7015. });
  7016. },
  7017. addPz(type, content) {
  7018. if (type == "1" && this.pzConText == "") {
  7019. this.$message.error("批注不能为空!");
  7020. return;
  7021. }
  7022. let params = [
  7023. {
  7024. cid: this.id,
  7025. uid: this.userid,
  7026. s: this.courseType,
  7027. t: this.taskCount,
  7028. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  7029. type: type,
  7030. },
  7031. ];
  7032. this.ajax
  7033. .post(this.$store.state.api + "addPz2", params)
  7034. .then((res) => {
  7035. this.$message({
  7036. message: "添加成功",
  7037. type: "success",
  7038. });
  7039. this.pzConText = "";
  7040. this.addPzDialog = false;
  7041. this.selectPz();
  7042. })
  7043. .catch((err) => {
  7044. this.$message.error("添加失败");
  7045. console.error(err);
  7046. });
  7047. },
  7048. deletePz(id) {
  7049. this.$confirm("确定删除此批注吗?", "提示", {
  7050. confirmButtonText: "确定",
  7051. cancelButtonText: "取消",
  7052. type: "warning",
  7053. })
  7054. .then(() => {
  7055. let params = [
  7056. {
  7057. id: id,
  7058. },
  7059. ];
  7060. this.ajax
  7061. .post(this.$store.state.api + "deletePz", params)
  7062. .then((res) => {
  7063. this.$message({
  7064. message: "删除成功",
  7065. type: "success",
  7066. });
  7067. this.selectPz();
  7068. })
  7069. .catch((err) => {
  7070. this.$message.error("网络异常");
  7071. console.error(err);
  7072. });
  7073. })
  7074. .catch(() => { });
  7075. },
  7076. selectPz() {
  7077. let params = {
  7078. cid: this.id,
  7079. s: this.courseType,
  7080. t: this.taskCount,
  7081. };
  7082. this.ajax
  7083. .get(this.$store.state.api + "selectPzList", params)
  7084. .then((res) => {
  7085. this.pzList = res.data[0];
  7086. })
  7087. .catch((err) => {
  7088. console.error(err);
  7089. });
  7090. },
  7091. updateSLook() {
  7092. let params = {
  7093. sopen: this.sIsOpen == false ? 1 : 2,
  7094. cid: this.id,
  7095. };
  7096. this.ajax
  7097. .get(this.$store.state.api + "updateCourseSLook", params)
  7098. .then((res) => {
  7099. if (this.sIsOpen == true) {
  7100. this.$message({
  7101. message: "权限设置成功",
  7102. type: "success",
  7103. });
  7104. } else {
  7105. this.$message({
  7106. message: "权限关闭成功",
  7107. type: "success",
  7108. });
  7109. }
  7110. })
  7111. .catch((err) => {
  7112. console.error(err);
  7113. });
  7114. },
  7115. updateLookOpen() {
  7116. let params = [
  7117. {
  7118. sopen: this.IsLookOpen == false ? 1 : 2,
  7119. cid: this.id,
  7120. },
  7121. ];
  7122. this.ajax
  7123. .post(this.$store.state.api + "updateCourseLookOpen", params)
  7124. .then((res) => {
  7125. if (this.IsLookOpen == true) {
  7126. // if (this.courseType != 0 && this.taskCount != 0) {
  7127. // this.openTask(0, 0, "0-0");
  7128. // }
  7129. this.$message({
  7130. message: "权限设置成功",
  7131. type: "success",
  7132. });
  7133. } else {
  7134. this.$message({
  7135. message: "权限关闭成功",
  7136. type: "success",
  7137. });
  7138. }
  7139. this.getCourseState(2);
  7140. })
  7141. .catch((err) => {
  7142. console.error(err);
  7143. });
  7144. },
  7145. selectSLook() {
  7146. let params = {
  7147. cid: this.id,
  7148. };
  7149. this.ajax
  7150. .get(this.$store.state.api + "selectCourseSLook", params)
  7151. .then((res) => {
  7152. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  7153. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  7154. if (!this.IsLookOpen) {
  7155. this.setNavList();
  7156. } else {
  7157. this.getCourseState(1);
  7158. }
  7159. })
  7160. .catch((err) => {
  7161. console.error(err);
  7162. });
  7163. },
  7164. setNavList() {
  7165. if (this.navList.length == 0) {
  7166. this.navList = [];
  7167. for (var l = 0; l < this.chapInfoList.length; l++) {
  7168. var q = this.chapInfoList[l].dyName;
  7169. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  7170. var e;
  7171. this.navList.push({
  7172. dyName: q,
  7173. isOpen: l === 0 ? true : false,
  7174. task: [],
  7175. });
  7176. for (var r = 0; r < w.length; r++) {
  7177. e = w[r].task;
  7178. this.navList[l].task.push({
  7179. taskName: e,
  7180. id: l + "-" + r,
  7181. isLook: w[r].isLook,
  7182. });
  7183. // this.navId = this.navId ? this.navId : l + "-" + r;
  7184. // this.navId = l + "-" + r;
  7185. }
  7186. }
  7187. this.navList[0].isOpen = false;
  7188. this.navList[this.courseType].isOpen = true;
  7189. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  7190. } else {
  7191. this.setNavList2();
  7192. }
  7193. },
  7194. setNavList2() {
  7195. for (var l = 0; l < this.chapInfoList.length; l++) {
  7196. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  7197. for (var r = 0; r < w.length; r++) {
  7198. this.navList[l].task[r].isLook = w[r].isLook;
  7199. }
  7200. }
  7201. if (
  7202. this.IsLookOpen &&
  7203. !this.navList[this.courseType].task[this.taskCount].isLook
  7204. ) {
  7205. this.openTask(0, 0, "0-0");
  7206. }
  7207. this.$forceUpdate();
  7208. },
  7209. getCourseState(type) {
  7210. let params = {
  7211. cid: this.id,
  7212. };
  7213. this.ajax
  7214. .get(this.$store.state.api + "getCourseState", params)
  7215. .then((res) => {
  7216. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  7217. this.chapInfoList = JSON.parse(res.data[0][0].state);
  7218. this.setNavList();
  7219. this.$forceUpdate();
  7220. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  7221. this.addCourseState(2);
  7222. } else {
  7223. this.addCourseState(1);
  7224. }
  7225. })
  7226. .catch((err) => {
  7227. console.error(err);
  7228. });
  7229. },
  7230. addCourseState(type) {
  7231. let _state = this.chapInfoList;
  7232. // this.courseType this.taskCount
  7233. if (type == 1 || type == 2) {
  7234. for (var i = 0; i < _state.length; i++) {
  7235. let el = _state[i].chapterInfo[0].taskJson;
  7236. for (var j = 0; j < el.length; j++) {
  7237. // if (i == 0 && j == 0) {
  7238. // el[j].isLook = true;
  7239. // } else {
  7240. // el[j].isLook = false;
  7241. // }
  7242. if (
  7243. this.courseType > i ||
  7244. (this.courseType == i && this.taskCount + 1 > j)
  7245. ) {
  7246. el[j].isLook = true;
  7247. } else {
  7248. el[j].isLook = false;
  7249. }
  7250. }
  7251. }
  7252. }
  7253. let params = [
  7254. {
  7255. cid: this.id,
  7256. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  7257. },
  7258. ];
  7259. this.ajax
  7260. .post(
  7261. this.$store.state.api +
  7262. (type == 1 ? "addCourseState" : "updateCourseSate"),
  7263. params
  7264. )
  7265. .then((res) => {
  7266. if (this.IsLookOpen) {
  7267. this.setNavList();
  7268. }
  7269. if (type == 3 && type == 2) {
  7270. this.getCourseState(1);
  7271. }
  7272. })
  7273. .catch((err) => {
  7274. console.error(err);
  7275. });
  7276. },
  7277. getHomeWork() {
  7278. let params = {
  7279. cid: this.id,
  7280. stage: this.courseType,
  7281. task: this.taskCount,
  7282. uid: this.userid,
  7283. };
  7284. this.ajax
  7285. .get(this.$store.state.api + "selectWork", params)
  7286. .then((res) => {
  7287. if (res.data[0].length > 0) {
  7288. this.studyJuri = JSON.parse(res.data[0][0].content);
  7289. this.isNoHomeWork = true;
  7290. }
  7291. })
  7292. .catch((err) => {
  7293. console.error(err);
  7294. });
  7295. },
  7296. isAssetTypeAnImage(ext) {
  7297. return (
  7298. [
  7299. "png",
  7300. "jpg",
  7301. "jpeg",
  7302. "bmp",
  7303. "gif",
  7304. "webp",
  7305. "psd",
  7306. "svg",
  7307. "tiff",
  7308. ].indexOf(ext) !== -1
  7309. );
  7310. },
  7311. switchVideo(media) {
  7312. this.playerO = {};
  7313. this.playerOptions.poster = "";
  7314. this.playerOptions.sources[0].src = media;
  7315. this.playerO = this.playerOptions;
  7316. },
  7317. onPlayerPlay() { },
  7318. lookVedio(u, i) {
  7319. this.isClickNav = "";
  7320. // this.playerOptions.sources[0].src = u;
  7321. var d = JSON.parse(JSON.stringify(this.playerOptions));
  7322. d.sources[0].src = u;
  7323. this.playerO[this.taskCount] = d;
  7324. this.showType = 0;
  7325. this.isClickNav = "video" + i;
  7326. this.$forceUpdate();
  7327. },
  7328. lookText(i, t) {
  7329. this.isClickNav = "";
  7330. this.text = this.textList[i][t];
  7331. // this.dialogVisible1 = true;
  7332. this.showType = 1;
  7333. this.isClickNav = "text" + t;
  7334. },
  7335. lookTools(i, t) {
  7336. this.chapTools = this.chapToolList[i][t];
  7337. this.dialogVisible2 = true;
  7338. },
  7339. openFile(f) {
  7340. this.pptImgUrl = "";
  7341. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  7342. if (
  7343. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  7344. -1
  7345. ) {
  7346. this.pptImgUrl =
  7347. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  7348. this.showPDF = false;
  7349. this.dialogVisible3 = true;
  7350. } else if (
  7351. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  7352. ) {
  7353. this.pptImgUrl = f;
  7354. this.showPDF = true;
  7355. this.dialogVisible3 = true;
  7356. }
  7357. },
  7358. openTable(f) {
  7359. this.tableJson = JSON.parse(f.works);
  7360. this.dialogVisibleTable2 = true;
  7361. },
  7362. doUrl(url, i) {
  7363. this.isClickNav = "";
  7364. this.pptImgUrl1 = "";
  7365. this.showType = 2;
  7366. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  7367. url = "https://" + url;
  7368. }
  7369. this.pptImgUrl1 = url;
  7370. this.isClickNav = "line" + i;
  7371. },
  7372. downFile(f, i) {
  7373. this.isClickNav = "";
  7374. this.pptImgUrl1 = "";
  7375. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  7376. if (
  7377. a.indexOf(
  7378. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  7379. ) != -1
  7380. ) {
  7381. this.pptImgUrl1 =
  7382. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  7383. // this.dialogVisible3 = true;
  7384. this.showType = 2;
  7385. } else if (
  7386. this.isAssetTypeAnImage(
  7387. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  7388. )
  7389. ) {
  7390. this.showType = 4;
  7391. this.pptImgUrl1 = f.url;
  7392. } else if (
  7393. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  7394. "PDF"
  7395. ) {
  7396. this.pptImgUrl1 = f.url;
  7397. // this.dialogVisible3 = true;
  7398. this.showType = 3;
  7399. } else {
  7400. window.open(this.file[i].url);
  7401. }
  7402. this.isClickNav = "word" + i;
  7403. },
  7404. downFileList(i) {
  7405. window.open(this.noImgList[i].url);
  7406. },
  7407. openAddWork() {
  7408. this.dialogVisible = true;
  7409. },
  7410. addBzWorks() {
  7411. let params = [
  7412. {
  7413. uid: this.userid,
  7414. cid: this.id,
  7415. stage: this.courseType,
  7416. task: this.taskCount,
  7417. tool: this.toolindex,
  7418. content: JSON.stringify(this.eScore),
  7419. type: 6,
  7420. },
  7421. ];
  7422. this.ajax
  7423. .post(this.$store.state.api + "addCourseWorks", params)
  7424. .then((res) => {
  7425. this.$message({
  7426. message: "提交成功",
  7427. type: "success",
  7428. });
  7429. this.eScore = { eBzText: "", eStar: [] };
  7430. this.studentEvalDialogVisible = false;
  7431. this.selectSWorks();
  7432. })
  7433. .catch((err) => {
  7434. this.$message.error("提交失败");
  7435. console.error(err);
  7436. });
  7437. },
  7438. addStudentAsk() {
  7439. if (!this.radio.length) {
  7440. this.$message.error("请选择选项");
  7441. return;
  7442. }
  7443. for (var i = 0; i < this.askJson.askCount; i++) {
  7444. if (this.radio[i] !== 0 && !this.radio[i]) {
  7445. this.$message.error("请选择选项");
  7446. return;
  7447. }
  7448. }
  7449. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  7450. let params = [
  7451. {
  7452. uid: this.userid,
  7453. cid: this.id,
  7454. stage: this.courseType,
  7455. task: this.taskCount,
  7456. tool: this.toolindex,
  7457. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  7458. type: 2,
  7459. },
  7460. ];
  7461. this.ajax
  7462. .post(this.$store.state.api + "addCourseWorks", params)
  7463. .then((res) => {
  7464. this.$message({
  7465. message: "提交成功",
  7466. type: "success",
  7467. });
  7468. this.askList = [];
  7469. this.dialogVisible5 = false;
  7470. this.selectStudent();
  7471. this.selectSWorks();
  7472. this.selectSLook();
  7473. })
  7474. .catch((err) => {
  7475. this.$message.error("提交失败");
  7476. console.error(err);
  7477. });
  7478. },
  7479. addStudentTest() {
  7480. if (!this.radio.length) {
  7481. this.$message.error("请选择选项");
  7482. return;
  7483. }
  7484. for (var i = 0; i < this.testJson.testCount; i++) {
  7485. if (
  7486. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  7487. (this.radio[i] !== 0 && !this.radio[i])
  7488. ) {
  7489. this.$message.error("请选择选项");
  7490. return;
  7491. }
  7492. }
  7493. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  7494. let params = [
  7495. {
  7496. uid: this.userid,
  7497. cid: this.id,
  7498. stage: this.courseType,
  7499. task: this.taskCount,
  7500. tool: this.toolindex,
  7501. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  7502. type: 8,
  7503. },
  7504. ];
  7505. this.ajax
  7506. .post(this.$store.state.api + "addCourseWorks", params)
  7507. .then((res) => {
  7508. this.$message({
  7509. message: "提交成功",
  7510. type: "success",
  7511. });
  7512. this.askList = [];
  7513. this.dialogVisibleChoice = false;
  7514. this.selectStudent();
  7515. this.selectSWorks();
  7516. this.selectSLook();
  7517. })
  7518. .catch((err) => {
  7519. this.$message.error("提交失败");
  7520. console.error(err);
  7521. });
  7522. },
  7523. addWork() {
  7524. if (this.studyJuri[0].content == "") {
  7525. this.$message.error("请将信息填写完整");
  7526. return;
  7527. } else if (this.studyJuri[0].cover.length == 0) {
  7528. this.$message.error("请将信息填写完整");
  7529. return;
  7530. } else if (this.studyJuri[0].upVedio.length == 0) {
  7531. this.$message.error("请将信息填写完整");
  7532. return;
  7533. }
  7534. if (this.isNoHomeWork) {
  7535. this.$confirm(
  7536. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  7537. "提示",
  7538. {
  7539. confirmButtonText: "确定",
  7540. cancelButtonText: "取消",
  7541. type: "warning",
  7542. }
  7543. )
  7544. .then(() => {
  7545. let params = [
  7546. {
  7547. uid: this.userid,
  7548. cid: this.id,
  7549. stage: this.courseType,
  7550. task: this.taskCount,
  7551. content: JSON.stringify(this.studyJuri),
  7552. },
  7553. ];
  7554. this.ajax
  7555. .post(this.$store.state.api + "addWorks", params)
  7556. .then((res) => {
  7557. this.$message({
  7558. message: "提交成功",
  7559. type: "success",
  7560. });
  7561. this.isNoHomeWork = true;
  7562. this.dialogVisible = false;
  7563. })
  7564. .catch((err) => {
  7565. this.$message.error("提交失败");
  7566. console.error(err);
  7567. });
  7568. })
  7569. .catch(() => { });
  7570. } else {
  7571. let params = [
  7572. {
  7573. uid: this.userid,
  7574. cid: this.id,
  7575. stage: this.courseType,
  7576. task: this.taskCount,
  7577. content: JSON.stringify(this.studyJuri),
  7578. },
  7579. ];
  7580. this.ajax
  7581. .post(this.$store.state.api + "addWorks", params)
  7582. .then((res) => {
  7583. this.$message({
  7584. message: "提交成功",
  7585. type: "success",
  7586. });
  7587. this.isNoHomeWork = true;
  7588. this.dialogVisible = false;
  7589. })
  7590. .catch((err) => {
  7591. this.$message.error("提交失败");
  7592. console.error(err);
  7593. });
  7594. }
  7595. },
  7596. selectCount() {
  7597. let params = {
  7598. cid: this.id,
  7599. chid: this.courseType,
  7600. uid: this.userid,
  7601. };
  7602. this.ajax
  7603. .get(this.$store.state.api + "selectToolsCount", params)
  7604. .then((res) => {
  7605. for (var i = 0; i < res.data[0].length; i++) {
  7606. if (res.data[0][i].tools == 1) {
  7607. this.wbCount = res.data[0][i].count;
  7608. } else if (res.data[0][i].tools == 2) {
  7609. this.wordCount = res.data[0][i].count;
  7610. } else if (res.data[0][i].tools == 3) {
  7611. this.mindCount = res.data[0][i].count;
  7612. } else if (res.data[0][i].tools == 4) {
  7613. this.askCount = res.data[0][i].count;
  7614. } else if (res.data[0][i].tools == 6) {
  7615. this.noteCount = res.data[0][i].count;
  7616. } else if (res.data[0][i].tools == 7) {
  7617. this.mindNetWorkCount = res.data[0][i].count;
  7618. } else if (res.data[0][i].tools == 8) {
  7619. this.libraryCount = res.data[0][i].count;
  7620. } else if (res.data[0][i].tools == 16) {
  7621. this.workCount = res.data[0][i].count;
  7622. } else if (res.data[0][i].tools == 10) {
  7623. this.timeCount = res.data[0][i].count;
  7624. } else if (res.data[0][i].tools == 15) {
  7625. this.answerCount = res.data[0][i].count;
  7626. } else if (res.data[0][i].tools == 18) {
  7627. this.trainCount = res.data[0][i].count;
  7628. }
  7629. }
  7630. })
  7631. .catch((err) => {
  7632. console.error(err);
  7633. });
  7634. },
  7635. openTools(t, i, index, c, sName) {
  7636. var z = JSON.parse(c);
  7637. this.noteName = sName;
  7638. if (t == 4) {
  7639. this.radio = [];
  7640. this.isAnswer = false;
  7641. for (var i = 0; i < z.length; i++) {
  7642. let a = z[i];
  7643. let b = a.anwer.split(",");
  7644. let d = [];
  7645. for (var j = 0; j < b.length; j++) {
  7646. d.push(parseInt(b[j]));
  7647. }
  7648. this.radio = d;
  7649. this.askJson = a.askJson;
  7650. }
  7651. this.isAnswer = true;
  7652. this.dialogVisible5 = true;
  7653. } else if (t == 45) {
  7654. this.radio = [];
  7655. this.isAnswer = false;
  7656. let b = z[0].anwer;
  7657. this.radio = b;
  7658. this.testJson = z[0].testJson;
  7659. this.isAnswer = true;
  7660. this.dialogVisibleChoice = true;
  7661. }
  7662. // else if (t == 15) {
  7663. // this.answerQ = "";
  7664. // this.questionAnswer = "";
  7665. // this.answerQ = z[0].answerTitle;
  7666. // this.questionAnswer = z[0].answer;
  7667. // this.answerDialogVisible = true;
  7668. // }
  7669. },
  7670. fastText(p, t) {
  7671. if (t == 1) {
  7672. this.commentText += p;
  7673. } else {
  7674. this.eScore.eBzText += p;
  7675. }
  7676. },
  7677. addTools(t, i, index) {
  7678. var a = 0;
  7679. // this.taskCount = index;
  7680. this.toolindex = i;
  7681. if (t == 1) {
  7682. if (this.wbCount > 0) {
  7683. this.updateCount(this.wbCount, t);
  7684. } else {
  7685. this.wbCount++;
  7686. a = this.wbCount;
  7687. this.toolsCount(a, t);
  7688. }
  7689. window.parent.postMessage(
  7690. {
  7691. tools: "1",
  7692. cid: this.id,
  7693. stage: this.courseType,
  7694. task: this.taskCount,
  7695. tool: i,
  7696. },
  7697. "*"
  7698. );
  7699. } else if (t == 2) {
  7700. if (this.wordCount > 0) {
  7701. this.updateCount(this.wordCount, t);
  7702. } else {
  7703. this.wordCount++;
  7704. a = this.wordCount;
  7705. this.toolsCount(a, t);
  7706. }
  7707. window.parent.postMessage({ tools: "2" }, "*");
  7708. } else if (t == 3) {
  7709. if (this.mindCount > 0) {
  7710. this.updateCount(this.mindCount, t);
  7711. } else {
  7712. this.mindCount++;
  7713. a = this.mindCount;
  7714. this.toolsCount(a, t);
  7715. }
  7716. window.parent.postMessage(
  7717. {
  7718. tools: "3",
  7719. cid: this.id,
  7720. stage: this.courseType,
  7721. task: this.taskCount,
  7722. tool: i,
  7723. },
  7724. "*"
  7725. );
  7726. } else if (t == 4) {
  7727. this.radio = [];
  7728. this.noteName = "";
  7729. this.isAnswer = false;
  7730. if (this.askCount > 0) {
  7731. this.updateCount(this.askCount, t);
  7732. } else {
  7733. this.askCount++;
  7734. a = this.askCount;
  7735. this.toolsCount(a, t);
  7736. }
  7737. if (!this.dialogVisible2) {
  7738. this.askJson.askJson =
  7739. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7740. index
  7741. ].toolChoose[i].askJson;
  7742. this.askJson.askTitle =
  7743. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7744. index
  7745. ].toolChoose[i].askTitle;
  7746. this.askJson.askCount =
  7747. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7748. index
  7749. ].toolChoose[i].askCount;
  7750. } else {
  7751. this.askJson.askJson = this.chapTools.askJson.askJson;
  7752. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  7753. this.askJson.askCount = this.chapTools.askJson.askCount;
  7754. }
  7755. this.dialogVisible5 = true;
  7756. // window.parent.postMessage({ tools: "4" }, "*");
  7757. } else if (t == 45) {
  7758. this.noteName = "";
  7759. this.radio = [];
  7760. this.isAnswer = false;
  7761. if (this.askCount > 0) {
  7762. this.updateCount(this.askCount, t);
  7763. } else {
  7764. this.askCount++;
  7765. a = this.askCount;
  7766. this.toolsCount(a, t);
  7767. }
  7768. this.testJson =
  7769. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7770. index
  7771. ].toolChoose[i].testJson;
  7772. for (var k = 0; k < this.testJson.testJson.length; k++) {
  7773. if (this.testJson.testJson[k].type == "2") {
  7774. this.radio.push([]);
  7775. } else {
  7776. this.radio.push("");
  7777. }
  7778. }
  7779. this.dialogVisibleChoice = true;
  7780. // window.parent.postMessage({ tools: "4" }, "*");
  7781. } else if (t == 5) {
  7782. if (this.scoreCount > 0) {
  7783. this.updateCount(this.scoreCount, t);
  7784. } else {
  7785. this.scoreCount++;
  7786. a = this.scoreCount;
  7787. this.toolsCount(a, t);
  7788. }
  7789. this.dialogVisible4 = true;
  7790. // window.parent.postMessage({ tools: "5" }, "*");
  7791. } else if (t == 6) {
  7792. if (this.noteCount > 0) {
  7793. this.updateCount(this.noteCount, t);
  7794. } else {
  7795. this.noteCount++;
  7796. a = this.noteCount;
  7797. this.toolsCount(a, t);
  7798. }
  7799. window.parent.postMessage(
  7800. {
  7801. tools: "6",
  7802. cid: this.id,
  7803. stage: this.courseType,
  7804. task: this.taskCount,
  7805. tool: i,
  7806. },
  7807. "*"
  7808. );
  7809. } else if (t == 7) {
  7810. if (this.mindNetWorkCount > 0) {
  7811. this.updateCount(this.mindNetWorkCount, t);
  7812. } else {
  7813. this.mindNetWorkCount++;
  7814. a = this.mindNetWorkCount;
  7815. this.toolsCount(a, t);
  7816. }
  7817. window.parent.postMessage(
  7818. {
  7819. tools: "7",
  7820. cid: this.id,
  7821. stage: this.courseType,
  7822. task: this.taskCount,
  7823. tool: i,
  7824. },
  7825. "*"
  7826. );
  7827. } else if (t == 16) {
  7828. if (this.workCount > 0) {
  7829. this.updateCount(this.workCount, t);
  7830. } else {
  7831. this.workCount++;
  7832. a = this.workCount;
  7833. this.toolsCount(a, t);
  7834. }
  7835. this.dialogVisible = true;
  7836. } else if (t == 50) {
  7837. if (this.tType == 2) {
  7838. this.$message.error("不支持学生使用");
  7839. return;
  7840. }
  7841. this.plworkFile = [];
  7842. this.dialogVisiblePl = true;
  7843. } else if (t == 8) {
  7844. if (this.libraryCount > 0) {
  7845. this.updateCount(this.libraryCount, t);
  7846. } else {
  7847. this.libraryCount++;
  7848. a = this.libraryCount;
  7849. this.toolsCount(a, t);
  7850. }
  7851. window.parent.postMessage({ tools: "8" }, "*");
  7852. } else if (t == 17) {
  7853. if (this.libraryCount > 0) {
  7854. this.updateCount(this.libraryCount, t);
  7855. } else {
  7856. this.libraryCount++;
  7857. a = this.libraryCount;
  7858. this.toolsCount(a, t);
  7859. }
  7860. window.parent.postMessage({ tools: "17" }, "*");
  7861. } else if (t == 18) {
  7862. if (this.trainCount > 0) {
  7863. this.updateCount(this.trainCount, t);
  7864. } else {
  7865. this.trainCount++;
  7866. a = this.trainCount;
  7867. this.toolsCount(a, t);
  7868. }
  7869. window.parent.postMessage({ tools: "18" }, "*");
  7870. } else if (t == 10) {
  7871. if (this.timeCount > 0) {
  7872. this.updateCount(this.timeCount, t);
  7873. } else {
  7874. this.timeCount++;
  7875. a = this.timeCount;
  7876. this.toolsCount(a, t);
  7877. }
  7878. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  7879. .taskJson[index].toolChoose[i].preTime
  7880. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  7881. .toolChoose[i].preTime
  7882. : "";
  7883. this.timeDialogVisible = true;
  7884. } else if (t == 15) {
  7885. this.answerQ = "";
  7886. this.questionAnswer = "";
  7887. if (this.answerCount > 0) {
  7888. this.updateCount(this.answerCount, t);
  7889. } else {
  7890. this.answerCount++;
  7891. a = this.answerCount;
  7892. this.toolsCount(a, t);
  7893. }
  7894. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  7895. .taskJson[index].toolChoose[i].answerQ
  7896. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  7897. .toolChoose[i].answerQ
  7898. : "";
  7899. this.answerDialogVisible = true;
  7900. } else if (t == 21) {
  7901. window.parent.postMessage({ tools: "21" }, "*");
  7902. } else if (t == 22) {
  7903. window.parent.postMessage({ tools: "22" }, "*");
  7904. } else if (t == 23) {
  7905. window.parent.postMessage({ tools: "23" }, "*");
  7906. } else if (t == 24) {
  7907. window.parent.postMessage({ tools: "24" }, "*");
  7908. } else if (t == 25) {
  7909. window.parent.postMessage({ tools: "25" }, "*");
  7910. } else if (t == 31) {
  7911. window.parent.postMessage({ tools: "31" }, "*");
  7912. } else if (t == 28) {
  7913. window.parent.postMessage({ tools: "28" }, "*");
  7914. } else if (t == 37) {
  7915. window.parent.postMessage({ tools: "37" }, "*");
  7916. } else if (t == 38) {
  7917. window.parent.postMessage({ tools: "38" }, "*");
  7918. } else if (t == 39) {
  7919. window.parent.postMessage({ tools: "39" }, "*");
  7920. } else if (t == 32) {
  7921. window.parent.postMessage({ tools: "32" }, "*");
  7922. } else if (t == 26) {
  7923. window.parent.postMessage(
  7924. {
  7925. tools: "26",
  7926. cid: this.id,
  7927. stage: this.courseType,
  7928. task: this.taskCount,
  7929. tool: i,
  7930. },
  7931. "*"
  7932. );
  7933. } else if (t == 40) {
  7934. if (this.evalCount > 0) {
  7935. this.updateCount(this.evalCount, t);
  7936. } else {
  7937. this.evalCount++;
  7938. a = this.evalCount;
  7939. this.toolsCount(a, t);
  7940. }
  7941. this.eScore = { eBzText: "", eStar: [] };
  7942. if (this.worksStudent[i].length) {
  7943. for (var k = 0; k < this.worksStudent[i].length; k++) {
  7944. if (this.userid == this.worksStudent[i][k].userid) {
  7945. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  7946. this.rateJson =
  7947. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7948. index
  7949. ].toolChoose[i].rateJson;
  7950. break;
  7951. } else {
  7952. this.rateJson =
  7953. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7954. index
  7955. ].toolChoose[i].rateJson;
  7956. }
  7957. }
  7958. } else {
  7959. this.rateJson =
  7960. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7961. index
  7962. ].toolChoose[i].rateJson;
  7963. }
  7964. this.isStar = false;
  7965. this.studentEvalDialogVisible = true;
  7966. } else if (t == 41) {
  7967. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  7968. .taskJson[index].toolChoose[i].selectJson
  7969. ? JSON.parse(
  7970. JSON.stringify(
  7971. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7972. index
  7973. ].toolChoose[i].selectJson
  7974. )
  7975. )
  7976. : { url: "", select: [], answer: [] };
  7977. if (this.worksStudent[i].length) {
  7978. for (var k = 0; k < this.worksStudent[i].length; k++) {
  7979. if (this.userid == this.worksStudent[i][k].userid) {
  7980. var a = this.worksStudent[i][k].works.split(",");
  7981. for (var ki = 0; ki < a.length; ki++) {
  7982. a[ki] = parseInt(a[ki]);
  7983. }
  7984. this.selectAnswer = {
  7985. answer: a,
  7986. stu: this.worksStudent[i][k].sName,
  7987. };
  7988. break;
  7989. } else {
  7990. this.selectAnswer = { answer: [], stu: "" };
  7991. }
  7992. }
  7993. } else {
  7994. this.selectAnswer = { answer: [], stu: "" };
  7995. }
  7996. this.isSelect = false;
  7997. this.dialogVisibleSelect = true;
  7998. } else if (t == 44) {
  7999. window.parent.postMessage({ tools: "44" }, "*");
  8000. } else if (t == 47) {
  8001. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  8002. .taskJson[index].toolChoose[i].sentenceList
  8003. ? JSON.parse(
  8004. JSON.stringify(
  8005. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8006. index
  8007. ].toolChoose[i].sentenceList
  8008. )
  8009. )
  8010. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  8011. for (var q = 0; q < this.sentenceList.length; q++) {
  8012. this.sentenceList[q].chooseSenList = [];
  8013. this.sentenceList[q].addChangeSen = [];
  8014. this.sentenceList[q].addChangeSen = JSON.parse(
  8015. JSON.stringify(this.sentenceList[q].addSentence)
  8016. );
  8017. this.sentenceList[q].chooseSenList.length =
  8018. this.sentenceList[q].rightAnswer.length;
  8019. }
  8020. this.dialogVisibleSentence = true;
  8021. } else if (t == 48) {
  8022. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  8023. .taskJson[index].toolChoose[i].tableJson
  8024. ? JSON.parse(
  8025. JSON.stringify(
  8026. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8027. index
  8028. ].toolChoose[i].tableJson
  8029. )
  8030. )
  8031. : { text: "" };
  8032. this.dialogVisibleTable = true;
  8033. } else if (t == 49) {
  8034. this.groupJson =
  8035. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8036. index
  8037. ].toolChoose[i].groupJson;
  8038. this.dialogVisibleGroup = true;
  8039. }
  8040. },
  8041. teacherWorkSubmit(t, i, index, s) {
  8042. this.sStudent = s;
  8043. this.toolindex = i;
  8044. if (this.tType !== "1" && this.tType !== "4") {
  8045. return;
  8046. }
  8047. if (t == 16) {
  8048. // if (this.workCount > 0) {
  8049. // this.updateCount(this.workCount, t);
  8050. // } else {
  8051. // this.workCount++;
  8052. // a = this.workCount;
  8053. // this.toolsCount(a, t);
  8054. // }
  8055. this.dialogVisibleWorks = true;
  8056. }
  8057. },
  8058. setRightAnswer(s, i, j) {
  8059. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  8060. if (
  8061. this.sentenceList[i].chooseSenList[q] == undefined ||
  8062. this.sentenceList[i].chooseSenList[q] == ""
  8063. ) {
  8064. this.sentenceList[i].chooseSenList[q] = s;
  8065. this.sentenceList[i].addChangeSen[j] = "";
  8066. break;
  8067. }
  8068. }
  8069. this.$forceUpdate();
  8070. },
  8071. returnCard(r, i, j) {
  8072. var a = this.sentenceList[i].addSentence.indexOf(r);
  8073. this.sentenceList[i].chooseSenList[j] = "";
  8074. this.sentenceList[i].addChangeSen[a] = r;
  8075. this.$forceUpdate();
  8076. },
  8077. // addSentenceTool() {
  8078. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8079. // this.taskCount
  8080. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  8081. // this.sentenceList = [
  8082. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  8083. // ];
  8084. // this.dialogVisibleSentence = false;
  8085. // },
  8086. toolsCount(a, t) {
  8087. let params = {
  8088. cid: this.id,
  8089. chid: this.courseType,
  8090. uid: this.userid,
  8091. tid: t,
  8092. count: a,
  8093. };
  8094. this.ajax
  8095. .get(this.$store.state.api + "insertToolsCount", params)
  8096. .then((res) => {
  8097. this.selectCount();
  8098. })
  8099. .catch((err) => {
  8100. console.error(err);
  8101. });
  8102. },
  8103. updateCount(c, t) {
  8104. c++;
  8105. let params = {
  8106. cid: this.id,
  8107. chid: this.courseType,
  8108. uid: this.userid,
  8109. tid: t,
  8110. count: c,
  8111. };
  8112. this.ajax
  8113. .get(this.$store.state.api + "updateToolsCount", params)
  8114. .then((res) => {
  8115. this.selectCount();
  8116. })
  8117. .catch((err) => {
  8118. console.error(err);
  8119. });
  8120. },
  8121. checkEva() {
  8122. if (this.evalua != "") {
  8123. for (var i = 0; i < this.evaJuri.length; i++) {
  8124. if (this.evalua == this.evaJuri[i].id) {
  8125. this.eTitle = this.evaJuri[i].title;
  8126. this.eJson = JSON.parse(this.evaJuri[i].content);
  8127. }
  8128. }
  8129. this.$forceUpdate();
  8130. setTimeout(() => {
  8131. this.setMindData();
  8132. }, 0);
  8133. }
  8134. },
  8135. selectEva() {
  8136. let params = {
  8137. oid: this.oid,
  8138. };
  8139. this.ajax
  8140. .get(this.$store.state.api + "selectAllEvaluation", params)
  8141. .then((res) => {
  8142. this.evaJuri = res.data[0];
  8143. })
  8144. .catch((err) => {
  8145. console.error(err);
  8146. });
  8147. },
  8148. setMindData() {
  8149. this.data.data = [];
  8150. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  8151. let _eJson = Object.keys(this.eJson);
  8152. let _e = this.eJson;
  8153. for (let i = 0; i < _eJson.length; i++) {
  8154. let element = _e[_eJson[i]];
  8155. this.data.data.push({
  8156. id: element.id,
  8157. parentid: "root",
  8158. topic: element.name,
  8159. });
  8160. let _eJsonc = Object.keys(element.child);
  8161. let _e2 = element.child;
  8162. for (let j = 0; j < _eJsonc.length; j++) {
  8163. let _ec = _e2[_eJsonc[j]];
  8164. this.data.data.push({
  8165. id: _ec.id,
  8166. parentid: element.id,
  8167. topic: _ec.name,
  8168. });
  8169. let _eJsonz = Object.keys(_ec.child);
  8170. let _e3 = _ec.child;
  8171. for (let z = 0; z < _eJsonz.length; z++) {
  8172. let _ez = _e3[_eJsonz[z]];
  8173. this.data.data.push({
  8174. id: _ez.id,
  8175. parentid: _ec.id,
  8176. topic: _ez.name,
  8177. });
  8178. }
  8179. }
  8180. }
  8181. this.$forceUpdate();
  8182. },
  8183. checkFileFull(type, url) {
  8184. this.fullDialogVisible = true;
  8185. this.fulltype = type;
  8186. this.fullUrl = url;
  8187. },
  8188. openSname(n, id) {
  8189. this.snameWid = id;
  8190. this.worksSName = n;
  8191. this.dialogVisibleSname = true;
  8192. },
  8193. updateName() {
  8194. let params = {
  8195. n: this.worksSName,
  8196. cid: this.snameWid,
  8197. };
  8198. this.ajax
  8199. .get(this.$store.state.api + "updateCourseWorksName", params)
  8200. .then((res) => {
  8201. this.$message({
  8202. message: "修改成功",
  8203. type: "success",
  8204. });
  8205. this.dialogVisibleSname = false;
  8206. this.getCourseDetail();
  8207. this.snameWid = "";
  8208. this.worksSName = "";
  8209. })
  8210. .catch((err) => {
  8211. console.error(err);
  8212. });
  8213. },
  8214. downloadFile(url) {
  8215. let _url = "";
  8216. if (
  8217. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  8218. ) {
  8219. _url = url.split(
  8220. "https://view.officeapps.live.com/op/view.aspx?src="
  8221. )[1];
  8222. } else {
  8223. _url = url;
  8224. }
  8225. const x = new XMLHttpRequest();
  8226. x.open("GET", _url, true);
  8227. x.responseType = "blob";
  8228. x.onload = function (e) {
  8229. // const url = window.URL.createObjectURL(x.response);
  8230. // const a = document.createElement("a");
  8231. // a.href = url;
  8232. // a.target = "_blank";
  8233. // a.download = url;
  8234. // a.click();
  8235. // a.remove();
  8236. let content = x.response;
  8237. let elink = document.createElement("a");
  8238. elink.download = decodeURI(
  8239. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  8240. );
  8241. elink.style.display = "none";
  8242. let blob = new Blob([content]);
  8243. elink.href = URL.createObjectURL(blob);
  8244. document.body.appendChild(elink);
  8245. elink.click();
  8246. document.body.removeChild(elink);
  8247. };
  8248. x.send();
  8249. },
  8250. openLine(url) {
  8251. window.open(url);
  8252. },
  8253. resize() {
  8254. if (document.getElementsByClassName("box_course").length) {
  8255. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  8256. document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  8257. document.getElementsByClassName("navBox")[0].style.height =
  8258. a - 40 + "px";
  8259. }
  8260. this.Stbodywidth =
  8261. document.getElementsByClassName("student_body").length &&
  8262. document.getElementsByClassName("student_body")[0].offsetWidth;
  8263. },
  8264. closeDraw() {
  8265. this.bg = null;
  8266. this.drawShow = false;
  8267. },
  8268. showPicturePaint(url) {
  8269. let params = {
  8270. img: url,
  8271. };
  8272. this.ajax
  8273. .get(this.$store.state.api + "imgToBase64", params)
  8274. .then((res) => {
  8275. console.log(res);
  8276. this.drawShow = true;
  8277. this.bg = res.data[0].img;
  8278. })
  8279. .catch((err) => {
  8280. console.error(err);
  8281. });
  8282. },
  8283. addImgDraw(base64) {
  8284. let file = { name: "批注图.png" };
  8285. let img = this.dataUrlToFile(base64, file);
  8286. this.beforeUpload1(img, 5);
  8287. },
  8288. addImgDrawImG(url) {
  8289. // console.log(url);
  8290. let params = [
  8291. {
  8292. wid: this.commentDetail.wid,
  8293. img: url,
  8294. },
  8295. ];
  8296. this.ajax
  8297. .post(this.$store.state.api + "updateCourseWorks", params)
  8298. .then((res) => {
  8299. this.$message({
  8300. message: "提交成功",
  8301. type: "success",
  8302. });
  8303. this.drawShow = false;
  8304. this.bg = "";
  8305. this.selectSWorks();
  8306. this.selectStudent();
  8307. })
  8308. .catch((err) => {
  8309. this.$message.error("提交失败");
  8310. console.error(err);
  8311. });
  8312. },
  8313. deletePicturePaint() {
  8314. this.$confirm("确定删除此批注吗?", "提示", {
  8315. confirmButtonText: "确定",
  8316. cancelButtonText: "取消",
  8317. type: "warning",
  8318. })
  8319. .then(() => {
  8320. let params = [
  8321. {
  8322. wid: this.commentDetail.wid,
  8323. img: "",
  8324. },
  8325. ];
  8326. this.ajax
  8327. .post(this.$store.state.api + "updateCourseWorks", params)
  8328. .then((res) => {
  8329. this.$message({
  8330. message: "删除成功",
  8331. type: "success",
  8332. });
  8333. this.selectSWorks();
  8334. this.selectStudent();
  8335. })
  8336. .catch((err) => {
  8337. this.$message.error("删除失败");
  8338. console.error(err);
  8339. });
  8340. })
  8341. .catch(() => { });
  8342. },
  8343. getAudioVideo(constraintsData) {
  8344. if (navigator.mediaDevices === undefined) {
  8345. navigator.mediaDevices = {};
  8346. }
  8347. if (navigator.mediaDevices.getUserMedia === undefined) {
  8348. navigator.mediaDevices.getUserMedia = function (constraints) {
  8349. // 首先,如果有getUserMedia的话,就获得它
  8350. var getUserMedia =
  8351. navigator.getUserMedia ||
  8352. navigator.webkitGetUserMedia ||
  8353. navigator.mozGetUserMedia ||
  8354. navigator.msGetUserMedia;
  8355. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  8356. if (!getUserMedia) {
  8357. return Promise.reject({ code: 404 });
  8358. }
  8359. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  8360. return new Promise(function (resolve, reject) {
  8361. getUserMedia.call(navigator, constraints, resolve, reject);
  8362. });
  8363. };
  8364. }
  8365. return navigator.mediaDevices.getUserMedia(constraintsData);
  8366. },
  8367. /**
  8368. * 开始录制
  8369. */
  8370. startRecording(callback) {
  8371. let _function = (screenStream) => {
  8372. this.addStreamStopListener(screenStream, () => {
  8373. console.log("流停止监听");
  8374. this.stopRecording();
  8375. this.$emit("streamStop", {});
  8376. // this.stopRecording();
  8377. });
  8378. var options = {
  8379. type: "video",
  8380. mimeType: "video/webm",
  8381. disableLogs: false,
  8382. getNativeBlob: false, // enable it for longer recordings
  8383. ignoreMutedMedia: false,
  8384. };
  8385. // this.video.srcObject = screenStream;
  8386. this.recorder = RecordRTC(screenStream, options);
  8387. this.recorder.startRecording();
  8388. this.recorder.screen = screenStream;
  8389. this.videoStart = true;
  8390. // callback(true);
  8391. };
  8392. this.getAudioVideo({ audio: true })
  8393. .then((res) => {
  8394. this.captureScreen(_function, true);
  8395. console.log("已点击允许,开启成功");
  8396. })
  8397. .catch((err) => {
  8398. // console.log('浏览器不支持,请更换浏览器')
  8399. // } else {
  8400. this.captureScreen(_function, false);
  8401. console.log("请检查是否存在麦克风");
  8402. });
  8403. },
  8404. /**
  8405. * 停止录制
  8406. */
  8407. stopRecording(callback) {
  8408. this.recorder.stopRecording(() => {
  8409. // this.video.src = this.video.srcObject = null;
  8410. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  8411. const url = URL.createObjectURL(this.recorder.getBlob());
  8412. const a = document.createElement("a"); //this.fileName+
  8413. let videoFile = new File(
  8414. [this.recorder.getBlob()],
  8415. this.courseDetail.title + "录屏.mp4",
  8416. {
  8417. type: "video/mp4",
  8418. }
  8419. );
  8420. let downloadUrl = URL.createObjectURL(videoFile);
  8421. document.body.appendChild(a);
  8422. a.style.display = "none";
  8423. a.href = url;
  8424. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  8425. a.click();
  8426. this.recorder.screen.stop();
  8427. this.recorder.destroy();
  8428. this.recorder = null;
  8429. this.videoStart = false;
  8430. // callback(false);
  8431. });
  8432. },
  8433. //初始化
  8434. captureScreen(callback, type) {
  8435. if (navigator.getDisplayMedia) {
  8436. //录制结束,文件下载
  8437. navigator
  8438. .getDisplayMedia({
  8439. video: true,
  8440. })
  8441. .then((screenStream) => {
  8442. if (type) {
  8443. navigator.mediaDevices
  8444. .getUserMedia({ audio: true })
  8445. .then((mic) => {
  8446. screenStream.addTrack(mic.getTracks()[0]);
  8447. callback(screenStream);
  8448. });
  8449. } else {
  8450. callback(screenStream);
  8451. }
  8452. })
  8453. .catch(function (error) {
  8454. console.log("error", error);
  8455. });
  8456. } else if (navigator.mediaDevices.getDisplayMedia) {
  8457. navigator.mediaDevices
  8458. .getDisplayMedia({
  8459. video: true,
  8460. })
  8461. .then((screenStream) => {
  8462. if (type) {
  8463. navigator.mediaDevices
  8464. .getUserMedia({ audio: true })
  8465. .then((mic) => {
  8466. screenStream.addTrack(mic.getTracks()[0]);
  8467. callback(screenStream);
  8468. });
  8469. } else {
  8470. callback(screenStream);
  8471. }
  8472. })
  8473. .catch(function (error) {
  8474. console.log("error", error);
  8475. });
  8476. } else {
  8477. var error = "getDisplayMedia API are not supported in this browser.";
  8478. console.log("error", error);
  8479. alert(error);
  8480. }
  8481. },
  8482. //流监听
  8483. addStreamStopListener(stream, callback) {
  8484. stream.addEventListener(
  8485. "ended",
  8486. function () {
  8487. callback();
  8488. callback = function () { };
  8489. },
  8490. false
  8491. );
  8492. stream.addEventListener(
  8493. "inactive",
  8494. function () {
  8495. callback();
  8496. callback = function () { };
  8497. },
  8498. false
  8499. );
  8500. stream.getTracks().forEach(function (track) {
  8501. track.addEventListener(
  8502. "ended",
  8503. function () {
  8504. callback();
  8505. callback = function () { };
  8506. },
  8507. false
  8508. );
  8509. track.addEventListener(
  8510. "inactive",
  8511. function () {
  8512. callback();
  8513. callback = function () { };
  8514. },
  8515. false
  8516. );
  8517. });
  8518. },
  8519. updateGroup() {
  8520. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  8521. this.dialogVisibleGroup2 = true;
  8522. },
  8523. updateGroupJson() {
  8524. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  8525. if (
  8526. this.groupStudentUid[this.toolindex][i].length >
  8527. this.groupJson2.number
  8528. ) {
  8529. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  8530. return;
  8531. }
  8532. }
  8533. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  8534. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8535. this.taskCount
  8536. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  8537. let params = [
  8538. {
  8539. cid: this.id,
  8540. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  8541. uid: this.userid,
  8542. unitIndex: this.courseType,
  8543. },
  8544. ];
  8545. this.ajax
  8546. .post(this.$store.state.api + "updateWorkNew4", params)
  8547. .then((res) => {
  8548. this.$message.success("设置成功");
  8549. this.getCourseDetail(2);
  8550. this.dialogVisibleGroup2 = false;
  8551. this.groupJson2 = {};
  8552. this.$forceUpdate();
  8553. })
  8554. .catch((err) => {
  8555. this.$message.error("网络不佳");
  8556. console.error(err);
  8557. });
  8558. },
  8559. lockChair() {
  8560. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  8561. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  8562. this.updateGroupJson();
  8563. },
  8564. selectGroup(index) {
  8565. this.getCourseDetail(2, index);
  8566. },
  8567. joinGroup(index) {
  8568. if (this.groupJson.islock == 2) {
  8569. this.$message.error("位置已被锁定,无法加入");
  8570. return;
  8571. }
  8572. if (
  8573. this.groupStudent[this.toolindex][index].length >
  8574. this.groupJson.number ||
  8575. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  8576. ) {
  8577. this.$message.error("位置已满,无法加入");
  8578. return;
  8579. }
  8580. let params = [
  8581. {
  8582. cid: this.id,
  8583. stage: this.courseType,
  8584. task: this.taskCount,
  8585. tool: this.toolindex,
  8586. g: index,
  8587. uid: this.userid,
  8588. },
  8589. ];
  8590. this.ajax
  8591. .post(this.$store.state.api + "joinGroup", params)
  8592. .then((res) => {
  8593. this.$message.success("加入成功");
  8594. this.getCourseDetail();
  8595. })
  8596. .catch((err) => {
  8597. this.$message.error("网络不佳");
  8598. console.error(err);
  8599. });
  8600. },
  8601. exitGroup(id) {
  8602. if (this.groupJson.islock == 2) {
  8603. this.$message.error("位置已被锁定,无法退出");
  8604. return;
  8605. }
  8606. let params = [
  8607. {
  8608. gid: id,
  8609. },
  8610. ];
  8611. this.ajax
  8612. .post(this.$store.state.api + "exitGroup", params)
  8613. .then((res) => {
  8614. this.$message.success("退出成功");
  8615. this.getCourseDetail();
  8616. })
  8617. .catch((err) => {
  8618. this.$message.error("网络不佳");
  8619. console.error(err);
  8620. });
  8621. },
  8622. groupUpload(index, task, gindex) {
  8623. this.taskCount = task;
  8624. this.toolindex = index;
  8625. this.groupIndex = gindex;
  8626. this.dialogVisibleGroupWork = true;
  8627. },
  8628. updateGroupChair(user) {
  8629. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  8630. el.label = index;
  8631. return index != user.group;
  8632. });
  8633. this.updateGroupUser = user;
  8634. this.dialogVisibleUpdateGroup = true;
  8635. },
  8636. updateChair() {
  8637. if (
  8638. this.groupStudent[this.toolindex][this.checkChair].length >
  8639. this.groupJson.number ||
  8640. this.groupStudent[this.toolindex][this.checkChair].length ==
  8641. this.groupJson.number
  8642. ) {
  8643. this.$message.error("位置已满,无法加入");
  8644. return;
  8645. }
  8646. let params = [
  8647. {
  8648. cid: this.id,
  8649. stage: this.courseType,
  8650. task: this.taskCount,
  8651. tool: this.toolindex,
  8652. g: this.checkChair,
  8653. uid: this.updateGroupUser.userid,
  8654. },
  8655. ];
  8656. this.ajax
  8657. .post(this.$store.state.api + "joinGroup", params)
  8658. .then((res) => {
  8659. this.$message.success("修改成功");
  8660. this.updateGroupUser = {};
  8661. this.checkChair = "";
  8662. this.updateGroupArray = {};
  8663. this.dialogVisibleUpdateGroup = false;
  8664. this.getCourseDetail();
  8665. })
  8666. .catch((err) => {
  8667. this.$message.error("网络不佳");
  8668. console.error(err);
  8669. });
  8670. },
  8671. deleteGroupChair(gindex) {
  8672. this.checkDeleteGroup = [];
  8673. this.deleteGroupUser = JSON.parse(
  8674. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  8675. );
  8676. this.deleteGroupArray = this.groupJson.group[gindex];
  8677. this.groupIndex = gindex;
  8678. this.dialogVisibleDeleteGroup = true;
  8679. },
  8680. async deleteChair() {
  8681. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  8682. const gid =
  8683. this.groupStudent[this.toolindex][this.groupIndex][
  8684. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  8685. this.checkDeleteGroup[i]
  8686. )
  8687. ];
  8688. let params = [
  8689. {
  8690. gid: gid.id,
  8691. },
  8692. ];
  8693. var a = await this.deleteChairA(params);
  8694. if (i == this.checkDeleteGroup.length - 1) {
  8695. this.$message.success("退出成功");
  8696. this.dialogVisibleDeleteGroup = false;
  8697. this.deleteGroupUser = [];
  8698. this.deleteGroupArray = {};
  8699. this.groupIndex = "";
  8700. this.checkDeleteGroup = [];
  8701. this.getCourseDetail();
  8702. }
  8703. }
  8704. },
  8705. deleteChairA(params) {
  8706. return new Promise((resolve, reject) => {
  8707. this.ajax
  8708. .post(this.$store.state.api + "exitGroup", params)
  8709. .then((res) => {
  8710. resolve(1);
  8711. })
  8712. .catch((err) => {
  8713. this.$message.error("网络不佳");
  8714. console.error(err);
  8715. });
  8716. });
  8717. },
  8718. },
  8719. directives: {
  8720. // 使用局部注册指令的方式
  8721. resize: {
  8722. // 指令的名称
  8723. bind(el, binding) {
  8724. // el为绑定的元素,binding为绑定给指令的对象
  8725. let width = "",
  8726. height = "";
  8727. function isReize() {
  8728. const style = document.defaultView.getComputedStyle(el);
  8729. if (width !== style.width || height !== style.height) {
  8730. binding.value(); // 关键
  8731. }
  8732. width = style.width;
  8733. height = style.height;
  8734. }
  8735. el.__vueSetInterval__ = setInterval(isReize, 300);
  8736. },
  8737. unbind(el) {
  8738. clearInterval(el.__vueSetInterval__);
  8739. },
  8740. },
  8741. },
  8742. beforeDestroy() {
  8743. window.onresize = null;
  8744. clearInterval(this.timer);
  8745. this.timer = null;
  8746. },
  8747. computed: {
  8748. contentConvent() {
  8749. return function (c) {
  8750. return c
  8751. ? c
  8752. .replaceAll(/\r\n/g, "<br/>")
  8753. .replaceAll(/\n/g, "<br/>")
  8754. .replaceAll(/\s/g, " &nbsp")
  8755. : "";
  8756. };
  8757. },
  8758. },
  8759. mounted() {
  8760. if (this.screenType == 2) {
  8761. window.parent.postMessage({ allScreen: 4 }, "*");
  8762. } else if (this.screenType == 3) {
  8763. window.parent.postMessage({ allScreen: 5 }, "*");
  8764. } else if (this.screenType == 1) {
  8765. window.parent.postMessage({ allScreen: 6 }, "*");
  8766. }
  8767. this.selectEva();
  8768. this.getCourseDetail();
  8769. this.selectCount();
  8770. this.getHomeWork();
  8771. this.selectCStudent();
  8772. if (this.tType == 4) {
  8773. this.pzDialog = true;
  8774. this.selectPz();
  8775. }
  8776. document.scrollingElement.scrollTop = 0;
  8777. window.addEventListener("resize", () => {
  8778. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  8779. document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  8780. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  8781. });
  8782. let _this = this;
  8783. setTimeout(() => {
  8784. _this.vedioTime = [];
  8785. for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  8786. _this.vedioTime[i] = document.getElementsByClassName(
  8787. "vjs-duration-display"
  8788. )[i].textContent;
  8789. }
  8790. }, 1000);
  8791. },
  8792. };
  8793. </script>
  8794. <style scoped>
  8795. @media screen and (max-width: 1280px) {
  8796. /* .courseIndex > div:first-child(2) {
  8797. width: 15% !important;
  8798. } */
  8799. /* .navText {
  8800. width: 120px !important;
  8801. } */
  8802. .evaCss {
  8803. flex-direction: column !important;
  8804. align-items: center !important;
  8805. }
  8806. .dialog_diy1>>>.el-dialog {
  8807. width: 100% !important;
  8808. }
  8809. .rightWidthCss {
  8810. width: 100% !important;
  8811. }
  8812. .dialog_diy3>>>.el-dialog {
  8813. width: 100% !important;
  8814. }
  8815. /* .textTitle >>> .el-form-item__label {
  8816. width: 150px !important;
  8817. } */
  8818. }
  8819. .evaCssMax {
  8820. flex-direction: column !important;
  8821. align-items: center !important;
  8822. }
  8823. .dialog_diy>>>.el-dialog {
  8824. margin-top: 10vh !important;
  8825. }
  8826. .body_student {
  8827. width: 77%;
  8828. height: 100%;
  8829. position: absolute;
  8830. left: 22%;
  8831. top: 0;
  8832. }
  8833. .student_head {
  8834. width: 100%;
  8835. margin: 0 auto;
  8836. padding-bottom: 50px;
  8837. display: flex;
  8838. flex-direction: column;
  8839. flex-wrap: nowrap;
  8840. align-items: flex-start;
  8841. justify-content: flex-start;
  8842. }
  8843. .pb_left {
  8844. width: 20%;
  8845. margin-right: 10px;
  8846. background: rgb(255, 255, 255);
  8847. padding-right: 10px;
  8848. position: fixed;
  8849. height: 100%;
  8850. }
  8851. .wheel>img,
  8852. .project>img,
  8853. .star>img,
  8854. .evaluate>img,
  8855. .up_photo>img,
  8856. .chapter_add>img,
  8857. .upCover>img,
  8858. .deleteWord>img,
  8859. .question>img,
  8860. .homework>img {
  8861. width: 100%;
  8862. height: 100%;
  8863. }
  8864. .upCover {
  8865. width: calc(100% / 3.5);
  8866. position: relative;
  8867. margin: 0 15px 10px 0;
  8868. display: flex;
  8869. flex-direction: column;
  8870. flex-wrap: nowrap;
  8871. justify-content: center;
  8872. align-content: center;
  8873. align-items: center;
  8874. }
  8875. .upCover2 {
  8876. width: 100%;
  8877. position: relative;
  8878. margin: 0 15px 10px 0;
  8879. display: flex;
  8880. flex-direction: column;
  8881. flex-wrap: nowrap;
  8882. justify-content: center;
  8883. align-content: center;
  8884. align-items: center;
  8885. }
  8886. .upCover2>img {
  8887. width: 100%;
  8888. height: 90px;
  8889. object-fit: contain;
  8890. }
  8891. .chapter_add {
  8892. width: 120px;
  8893. position: relative;
  8894. text-align: center;
  8895. }
  8896. .isAddThings {
  8897. margin-top: 20px;
  8898. position: relative;
  8899. text-align: center;
  8900. background: #f7f8fa;
  8901. height: 90px;
  8902. width: 90px;
  8903. display: flex;
  8904. flex-direction: column;
  8905. justify-content: center;
  8906. }
  8907. .deleteWord {
  8908. width: 22px;
  8909. height: 22px;
  8910. position: absolute;
  8911. right: -5px;
  8912. top: -5px;
  8913. cursor: pointer;
  8914. }
  8915. .box_course {
  8916. /* width: 60%; */
  8917. width: 81%;
  8918. }
  8919. .wheel {
  8920. width: 100%;
  8921. height: 100%;
  8922. }
  8923. .right_box {
  8924. display: flex;
  8925. flex-direction: column;
  8926. margin-left: 30px;
  8927. justify-content: space-around;
  8928. }
  8929. .right_box_title {
  8930. font-size: 23px;
  8931. }
  8932. .people {
  8933. display: flex;
  8934. }
  8935. .student_body {
  8936. width: 100%;
  8937. margin: 0 auto;
  8938. margin-top: 10px;
  8939. padding: 0 0 20px;
  8940. }
  8941. .study_top {
  8942. margin-top: 70px;
  8943. width: 100%;
  8944. /* overflow: auto; */
  8945. height: auto;
  8946. }
  8947. .study_top .checkbox {
  8948. display: flex;
  8949. align-items: center;
  8950. padding: 15px 0 15px 30px;
  8951. flex: 0 0 auto;
  8952. font-weight: bold;
  8953. border-bottom: 1px solid #eee;
  8954. }
  8955. .study_top .check {
  8956. padding-bottom: 5px;
  8957. text-align: center;
  8958. cursor: pointer;
  8959. height: 30px;
  8960. box-sizing: border-box;
  8961. display: flex;
  8962. }
  8963. .study_top .checked {
  8964. border-bottom: 4px solid #3fc6a0;
  8965. padding-bottom: 5px;
  8966. color: #3fc6a0;
  8967. display: flex;
  8968. height: 35px;
  8969. }
  8970. .study_top .checked>div,
  8971. .study_top .check>div {
  8972. margin-right: 5px;
  8973. }
  8974. .videoTop {
  8975. display: flex;
  8976. flex-direction: row;
  8977. justify-content: space-between;
  8978. background: #fff;
  8979. align-items: center;
  8980. width: 95%;
  8981. padding: 20px;
  8982. }
  8983. .upbtn {
  8984. margin: 25px;
  8985. background: #70afdb;
  8986. color: #fff;
  8987. width: 120px;
  8988. text-align: center;
  8989. height: 30px;
  8990. line-height: 30px;
  8991. font-size: 13px;
  8992. border-radius: 5px;
  8993. cursor: pointer;
  8994. }
  8995. .filebox {
  8996. display: flex;
  8997. flex-wrap: wrap;
  8998. flex-direction: column;
  8999. padding: 15px 0 5px;
  9000. }
  9001. .filebox .tooldetail {
  9002. width: 100%;
  9003. margin: 0px 12px;
  9004. background: rgb(247, 247, 247);
  9005. padding: 20px;
  9006. line-height: 30px;
  9007. word-break: break-word;
  9008. }
  9009. .file {
  9010. display: flex;
  9011. flex-direction: column;
  9012. align-items: center;
  9013. justify-content: center;
  9014. cursor: pointer;
  9015. width: 200px;
  9016. }
  9017. .file div {
  9018. margin-top: 10px;
  9019. width: 150px;
  9020. text-align: center;
  9021. overflow: hidden;
  9022. white-space: nowrap;
  9023. text-overflow: ellipsis;
  9024. }
  9025. .media {
  9026. display: flex;
  9027. flex-direction: column;
  9028. align-items: center;
  9029. justify-content: center;
  9030. margin: 0 20px 20px 0;
  9031. cursor: pointer;
  9032. margin: 12px 0 5px 15px;
  9033. overflow: hidden;
  9034. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  9035. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  9036. box-sizing: border-box;
  9037. }
  9038. .media img {
  9039. height: 90px;
  9040. width: 160px;
  9041. object-fit: cover;
  9042. }
  9043. .media .title {
  9044. padding: 5px;
  9045. text-align: left;
  9046. width: 100%;
  9047. box-sizing: border-box;
  9048. }
  9049. .media .btn {
  9050. width: 100%;
  9051. height: 35px;
  9052. line-height: 35px;
  9053. color: #fff;
  9054. background: #606060;
  9055. text-align: center;
  9056. overflow: hidden;
  9057. white-space: nowrap;
  9058. text-overflow: ellipsis;
  9059. }
  9060. .detail_content_top {
  9061. width: 100%;
  9062. padding: 25px 0 25px 0;
  9063. }
  9064. .detail_title {
  9065. text-align: center;
  9066. font-size: 24px;
  9067. }
  9068. .detail_time {
  9069. font-size: 13px;
  9070. padding: 15px 0 0 40px;
  9071. }
  9072. .detail_content {
  9073. line-height: 2pc;
  9074. width: 90%;
  9075. margin: 0 auto;
  9076. padding-top: 30px;
  9077. text-indent: 30px;
  9078. overflow: auto;
  9079. height: 200px;
  9080. }
  9081. .score_box>>>.el-rate {
  9082. margin-left: 10px;
  9083. }
  9084. .dialog_change>>>.el-dialog {
  9085. border-radius: 5px;
  9086. }
  9087. .dialog_change>>>.el-dialog__header {
  9088. background: #f2f2f2;
  9089. text-align: center;
  9090. }
  9091. .dialog_change>>>.el-dialog__title {
  9092. line-height: 5px;
  9093. }
  9094. .dialog_change>>>.el-dialog__body {
  9095. background: #fff;
  9096. padding: 10px 20px;
  9097. }
  9098. .score_box {
  9099. display: flex;
  9100. align-items: center;
  9101. margin-bottom: 18px;
  9102. margin-top: 20px;
  9103. }
  9104. .up_photo {
  9105. width: 120px;
  9106. cursor: pointer;
  9107. margin-top: 10px;
  9108. }
  9109. .up_photo2 {
  9110. width: 120px;
  9111. min-width: 120px;
  9112. cursor: pointer;
  9113. display: flex;
  9114. flex-direction: column;
  9115. align-items: center;
  9116. justify-content: center;
  9117. background: rgb(242, 246, 255);
  9118. padding: 25px;
  9119. margin-bottom: 10px;
  9120. }
  9121. .up_photo2 img {
  9122. width: 60%;
  9123. height: auto;
  9124. }
  9125. .up_photo2 span {
  9126. color: #898989;
  9127. }
  9128. .plworkBox {
  9129. display: flex;
  9130. align-items: center;
  9131. margin-top: 10px;
  9132. flex-wrap: wrap;
  9133. }
  9134. .upload_send {
  9135. margin: 30px auto 30px;
  9136. width: 60%;
  9137. background: #169bd6;
  9138. text-align: center;
  9139. height: 35px;
  9140. line-height: 35px;
  9141. color: #fff;
  9142. border-radius: 5px;
  9143. cursor: pointer;
  9144. }
  9145. .marginT {
  9146. margin-top: 20px;
  9147. }
  9148. .cd_content_steps {
  9149. display: flex;
  9150. width: 90%;
  9151. justify-content: space-around;
  9152. border-top: 1px solid #eeeeee;
  9153. }
  9154. .cd_steps_box {
  9155. display: flex;
  9156. justify-content: center;
  9157. align-items: center;
  9158. flex-direction: column;
  9159. cursor: pointer;
  9160. }
  9161. .first {
  9162. display: flex;
  9163. align-items: center;
  9164. margin: 15px 0 20px 0;
  9165. font-size: 20px;
  9166. }
  9167. .first>div:nth-child(2) {
  9168. font-size: 16px !important;
  9169. padding-left: 10px;
  9170. line-height: 26px;
  9171. box-sizing: border-box;
  9172. }
  9173. .blue_box_one {
  9174. text-align: center;
  9175. color: #fff;
  9176. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  9177. border-radius: 7px;
  9178. margin: 10px;
  9179. cursor: pointer;
  9180. width: 95%;
  9181. height: 45px;
  9182. display: flex;
  9183. flex-direction: row;
  9184. justify-content: flex-start;
  9185. align-items: center;
  9186. }
  9187. .blue_box_one>div:nth-child(1) {
  9188. line-height: 30px;
  9189. margin: 0 5px 0 10px;
  9190. width: 30%;
  9191. min-width: 70px;
  9192. border-radius: 4px;
  9193. }
  9194. .blue_box_one>div:nth-child(2) {
  9195. white-space: nowrap;
  9196. text-overflow: ellipsis;
  9197. overflow: hidden;
  9198. word-break: break-all;
  9199. width: 70%;
  9200. text-align: left;
  9201. margin-right: 10px;
  9202. max-width: calc(100% - 85px);
  9203. }
  9204. .blue_box_one>div:nth-child(2):hover {
  9205. overflow: hidden;
  9206. text-overflow: ellipsis;
  9207. white-space: nowrap;
  9208. cursor: pointer;
  9209. }
  9210. .upFile {
  9211. margin: 0 auto;
  9212. width: 120px;
  9213. background: #70afdb;
  9214. color: #fff;
  9215. height: 30px;
  9216. text-align: center;
  9217. line-height: 30px;
  9218. border-radius: 5px;
  9219. font-size: 14px;
  9220. cursor: pointer;
  9221. }
  9222. .courseTitle {
  9223. background: #205cc6;
  9224. width: 85%;
  9225. margin: 10px auto;
  9226. height: 50px;
  9227. color: #fff;
  9228. line-height: 50px;
  9229. text-align: center;
  9230. font-size: 20px;
  9231. font-weight: bold;
  9232. border-radius: 5px;
  9233. cursor: pointer;
  9234. white-space: nowrap;
  9235. overflow: hidden;
  9236. text-overflow: ellipsis;
  9237. padding: 0 10px;
  9238. }
  9239. .ml {
  9240. margin-left: 20px;
  9241. color: #5b7dba;
  9242. border-left: 3px solid #5b7dba;
  9243. padding-left: 5px;
  9244. font-weight: bold;
  9245. }
  9246. .return {
  9247. width: 2rem;
  9248. height: 2rem;
  9249. cursor: pointer;
  9250. }
  9251. .return>img {
  9252. width: 100%;
  9253. height: 100%;
  9254. }
  9255. .returnBtn {
  9256. background: #499eef;
  9257. width: 65px;
  9258. height: 30px;
  9259. color: #fff;
  9260. text-align: center;
  9261. line-height: 32px;
  9262. margin-right: 20px;
  9263. cursor: pointer;
  9264. border-radius: 5px;
  9265. font-size: 14px;
  9266. }
  9267. .tool {
  9268. display: flex;
  9269. flex-direction: column;
  9270. flex-wrap: nowrap;
  9271. width: 13%;
  9272. margin: 0 30px;
  9273. align-items: center;
  9274. }
  9275. .whiteBIcon {
  9276. width: 150px;
  9277. cursor: pointer;
  9278. }
  9279. .whiteBIcon>img {
  9280. width: 100%;
  9281. height: 100%;
  9282. }
  9283. .mask {
  9284. background-color: rgba(0, 0, 0, 0);
  9285. position: fixed;
  9286. top: 0;
  9287. left: 0;
  9288. width: 100%;
  9289. height: 100%;
  9290. z-index: 20000;
  9291. display: flex;
  9292. align-items: center;
  9293. justify-content: center;
  9294. }
  9295. .progressBox {
  9296. width: 500px;
  9297. height: 180px;
  9298. background: #fff;
  9299. border-radius: 10px;
  9300. box-shadow: 0 0 6px 1px #bfbfbf;
  9301. display: flex;
  9302. align-items: center;
  9303. justify-content: center;
  9304. flex-direction: column;
  9305. }
  9306. .progressBox .lbox {
  9307. height: 100px;
  9308. font-size: 19px;
  9309. display: flex;
  9310. align-items: center;
  9311. }
  9312. .progressBox .lbox img {
  9313. width: 40px;
  9314. margin-right: 20px;
  9315. }
  9316. .progressBox>>>.el-progress-bar__outer {
  9317. background-color: #d1dfff !important;
  9318. }
  9319. .progressBox .lbox {
  9320. height: 100px;
  9321. font-size: 19px;
  9322. display: flex;
  9323. align-items: center;
  9324. }
  9325. .progressBox .lbox img {
  9326. width: 40px;
  9327. margin-right: 20px;
  9328. }
  9329. .uploadVedio {
  9330. display: flex;
  9331. flex-direction: column;
  9332. flex-wrap: nowrap;
  9333. justify-content: center;
  9334. align-items: center;
  9335. margin: 0 15px 10px 0;
  9336. }
  9337. .uploadVedio>img {
  9338. width: 30px;
  9339. height: 30px;
  9340. }
  9341. .uploadVedio>span {
  9342. white-space: nowrap;
  9343. overflow: hidden;
  9344. text-overflow: ellipsis;
  9345. width: 75px;
  9346. margin-top: 7px;
  9347. }
  9348. .picName {
  9349. white-space: nowrap;
  9350. overflow: hidden;
  9351. text-overflow: ellipsis;
  9352. width: 75px;
  9353. margin-top: 7px;
  9354. }
  9355. .new_top {
  9356. display: flex;
  9357. background: #fff;
  9358. flex-direction: row;
  9359. justify-content: flex-start;
  9360. align-items: center;
  9361. height: 60px;
  9362. position: relative;
  9363. }
  9364. .before {
  9365. position: absolute;
  9366. background: #c3dad4;
  9367. width: 6px;
  9368. height: 100%;
  9369. }
  9370. .courseIndex {
  9371. display: flex;
  9372. flex-direction: row;
  9373. align-items: center;
  9374. width: calc(100% - 520px);
  9375. }
  9376. .courseIndex>div:nth-child(1) {
  9377. margin: 0 20px;
  9378. padding-left: 5px;
  9379. font-size: 24px;
  9380. min-width: 100px;
  9381. font-weight: bold;
  9382. border-left: 4px solid #3363b9;
  9383. height: 35px;
  9384. text-align: center;
  9385. line-height: 35px;
  9386. }
  9387. .courseIndex>div:nth-child(2) {
  9388. font-size: 23px;
  9389. /* width: 300px; */
  9390. max-width: calc(100% - 180px);
  9391. white-space: nowrap;
  9392. overflow: hidden;
  9393. text-overflow: ellipsis;
  9394. }
  9395. .courseIndex>div:nth-child(3) {
  9396. border-bottom: 1px solid #d7d7d7;
  9397. padding-bottom: 5px;
  9398. background: #49a0f0;
  9399. width: 55px;
  9400. min-width: 55px;
  9401. border-radius: 5px;
  9402. color: #fff;
  9403. text-align: center;
  9404. height: 20px;
  9405. line-height: 26px;
  9406. font-size: 14px;
  9407. margin: 0 0 0 10px;
  9408. }
  9409. .course_text {
  9410. padding: 20px 0 0 15px;
  9411. text-indent: 30px;
  9412. width: 80%;
  9413. min-height: 20px;
  9414. }
  9415. .vedioList {
  9416. background: #f2f2f2;
  9417. border: 1px solid #ececec;
  9418. /* width: 38.8%; */
  9419. width: calc(100% - 83%);
  9420. height: 445px;
  9421. border-radius: 10px;
  9422. overflow: hidden;
  9423. }
  9424. .vedioNav {
  9425. margin: 10px 0 0 15px;
  9426. border-bottom: 1px solid #d7d7d7;
  9427. padding-bottom: 5px;
  9428. background: #96d1ff;
  9429. width: 55px;
  9430. min-width: 55px;
  9431. border-radius: 5px;
  9432. color: #fff;
  9433. text-align: center;
  9434. height: 20px;
  9435. line-height: 26px;
  9436. font-size: 14px;
  9437. }
  9438. .queTop {
  9439. display: flex;
  9440. padding: 20px 0 20px 30px;
  9441. width: 100%;
  9442. flex-direction: row;
  9443. justify-content: flex-start;
  9444. align-items: center;
  9445. border-bottom: 1px solid #eeeeee;
  9446. box-sizing: border-box;
  9447. }
  9448. .question {
  9449. width: 40px;
  9450. margin-right: 10px;
  9451. margin-top: 7px;
  9452. }
  9453. .queTitle {
  9454. margin-left: 5px;
  9455. font-size: 25px;
  9456. display: flex;
  9457. align-items: center;
  9458. }
  9459. .addEditor {
  9460. width: 100px;
  9461. height: 30px;
  9462. background: #42cda6;
  9463. color: #fff;
  9464. border-radius: 5px;
  9465. text-align: center;
  9466. line-height: 30px;
  9467. box-shadow: 1px 3px 6px 1px #bfbfbf;
  9468. cursor: pointer;
  9469. }
  9470. .vedioName {
  9471. /* text-overflow: ellipsis;
  9472. top: 8px;
  9473. font-size: 14px;
  9474. overflow: hidden;
  9475. width: 100%;
  9476. word-break: break-all;
  9477. white-space: nowrap; */
  9478. cursor: pointer;
  9479. margin: 0px 0px 10px 5px;
  9480. white-space: nowrap;
  9481. overflow: hidden;
  9482. text-overflow: ellipsis;
  9483. width: 100%;
  9484. }
  9485. .vedioTime {
  9486. width: 35px;
  9487. position: absolute;
  9488. color: #fff;
  9489. bottom: 0px;
  9490. right: 0px;
  9491. text-align: center;
  9492. background: #46411f;
  9493. height: 20px;
  9494. font-size: 14px;
  9495. line-height: 20px;
  9496. }
  9497. .homework {
  9498. width: 200px;
  9499. display: flex;
  9500. flex-direction: column;
  9501. flex-wrap: nowrap;
  9502. align-items: center;
  9503. cursor: pointer;
  9504. }
  9505. .homebox {
  9506. display: flex;
  9507. flex-wrap: wrap;
  9508. flex-direction: row;
  9509. justify-content: flex-start;
  9510. align-items: center;
  9511. padding: 15px 0;
  9512. }
  9513. .isChooseActive {
  9514. color: #3e88f4;
  9515. border-bottom: 2px solid #2f80f3;
  9516. }
  9517. .chooseWho {
  9518. display: flex;
  9519. width: 100%;
  9520. flex-direction: row;
  9521. flex-wrap: nowrap;
  9522. justify-content: flex-start;
  9523. padding-bottom: 10px;
  9524. }
  9525. .chooseWho>div {
  9526. cursor: pointer;
  9527. padding-bottom: 10px;
  9528. margin: 0 30px;
  9529. }
  9530. .addPoint>div>img {
  9531. cursor: pointer;
  9532. margin: 0 10px;
  9533. width: 85px;
  9534. border-radius: 15px;
  9535. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  9536. }
  9537. .addPoint>div {
  9538. display: flex;
  9539. flex-direction: column;
  9540. flex-wrap: nowrap;
  9541. align-items: center;
  9542. }
  9543. .isBorder>div {
  9544. margin: 0 0 10px 0;
  9545. align-items: flex-start !important;
  9546. }
  9547. .noiframeBox {
  9548. display: flex;
  9549. flex-wrap: wrap;
  9550. }
  9551. .iframeBox iframe {
  9552. width: 100%;
  9553. height: 800px;
  9554. border: none;
  9555. margin-bottom: 20px;
  9556. border: 1px solid #ccc;
  9557. }
  9558. .upload_toolBtn {
  9559. background: #6b92c9;
  9560. color: #fff;
  9561. width: 110px;
  9562. text-align: center;
  9563. height: 35px;
  9564. line-height: 35px;
  9565. font-size: 14px;
  9566. border-radius: 5px;
  9567. cursor: pointer;
  9568. position: absolute;
  9569. right: 10px;
  9570. bottom: 0;
  9571. }
  9572. .binfo_input,
  9573. .pj {
  9574. font: inherit;
  9575. color: currentColor;
  9576. width: 100%;
  9577. margin: 0;
  9578. padding: 15px 14px;
  9579. display: block;
  9580. min-width: 0;
  9581. outline: none;
  9582. box-sizing: content-box;
  9583. background: none;
  9584. -webkit-tap-highlight-color: transparent;
  9585. border: 1px solid rgba(0, 0, 0, 0.23);
  9586. border-radius: 4px;
  9587. box-sizing: border-box;
  9588. resize: none;
  9589. }
  9590. .binfo_input:focus-visible {
  9591. border: 1px solid rgba(61, 103, 188);
  9592. }
  9593. .dialog_diy>>>.el-dialog__header,
  9594. .dialog_diy1>>>.el-dialog__header {
  9595. background: #454545 !important;
  9596. padding: 15px 20px;
  9597. }
  9598. .dialog_diy>>>.el-dialog__title,
  9599. .dialog_diy1>>>.el-dialog__title {
  9600. color: #fff;
  9601. }
  9602. .dialog_diy>>>.el-dialog__headerbtn,
  9603. .dialog_diy1>>>.el-dialog__headerbtn {
  9604. top: 19px;
  9605. }
  9606. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  9607. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  9608. color: #fff;
  9609. }
  9610. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  9611. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  9612. color: #fff;
  9613. }
  9614. .dialog_diy1>>>.el-dialog__body {
  9615. padding: 0;
  9616. }
  9617. .dialog_diy>>>.el-dialog__body,
  9618. .dialog_diy>>>.el-dialog__footer,
  9619. .dialog_diy1>>>.el-dialog__footer {
  9620. background: #fafafa;
  9621. }
  9622. .a_addBox {
  9623. margin: 10px 0;
  9624. background: #fff;
  9625. padding: 15px;
  9626. max-height: 400px;
  9627. overflow: auto;
  9628. }
  9629. .a_add_box {
  9630. border-bottom: 2px solid #eee;
  9631. padding-bottom: 10px;
  9632. }
  9633. .a_add_head {
  9634. display: flex;
  9635. align-items: flex-start;
  9636. /* justify-content: space-between; */
  9637. flex-direction: column;
  9638. margin: 10px 0;
  9639. font-size: 18px;
  9640. width: 100%;
  9641. }
  9642. .a_add_head .a_add_head_input {
  9643. width: 300px;
  9644. }
  9645. .a_add_head .a_add_head_div {
  9646. display: flex;
  9647. align-items: center;
  9648. justify-content: space-between;
  9649. }
  9650. .a_add_body {
  9651. display: flex;
  9652. align-items: center;
  9653. }
  9654. .a_add_input {
  9655. display: flex;
  9656. align-items: center;
  9657. flex-wrap: wrap;
  9658. }
  9659. .a_add_input>>>el-radio-group {
  9660. margin: 10px 0;
  9661. }
  9662. .a_add_input>>>.el-radio {
  9663. margin-bottom: 10px;
  9664. }
  9665. .redioStyle>>>.el-radio__label {
  9666. font-size: 18px;
  9667. }
  9668. .redioStyle>>>.el-checkbox__label {
  9669. font-size: 18px;
  9670. }
  9671. .toolHeng2 {
  9672. width: 100%;
  9673. }
  9674. .toolHeng {
  9675. display: flex;
  9676. flex-direction: row;
  9677. flex-wrap: wrap;
  9678. justify-content: flex-start;
  9679. align-items: center;
  9680. width: 100%;
  9681. }
  9682. .toolHeng>div {
  9683. padding-left: 20px;
  9684. }
  9685. .isWidth {
  9686. width: 20%;
  9687. }
  9688. .textTitle {
  9689. display: flex;
  9690. flex-direction: row;
  9691. flex-wrap: nowrap;
  9692. align-items: center;
  9693. width: 95%;
  9694. }
  9695. .textTitle>>>.el-form-item__label {
  9696. font-size: 22px;
  9697. color: #918f8f;
  9698. width: 100px;
  9699. }
  9700. .textTitle>>>.el-form-item__content {
  9701. width: calc(100% - 100px);
  9702. }
  9703. .textCss>>>.el-dialog {
  9704. width: 800px !important;
  9705. height: 400px;
  9706. background: #fafafa;
  9707. }
  9708. .textCss>>>.el-dialog__body {
  9709. margin: 55px 8% 0 8%;
  9710. padding: 0 !important;
  9711. }
  9712. .textCss>>>.el-dialog__footer {
  9713. padding-top: 38px;
  9714. }
  9715. .toolsCss>>>.el-dialog__body {
  9716. padding: 20px;
  9717. }
  9718. .lineCss>>>.el-dialog__body {
  9719. display: flex;
  9720. flex-direction: row;
  9721. align-items: center;
  9722. justify-content: center;
  9723. }
  9724. .newNav {
  9725. display: flex;
  9726. flex-direction: row;
  9727. align-items: baseline;
  9728. justify-content: flex-start;
  9729. }
  9730. .navText {
  9731. cursor: pointer;
  9732. margin: 0px 0px 10px 5px;
  9733. white-space: nowrap;
  9734. overflow: hidden;
  9735. text-overflow: ellipsis;
  9736. /* width: 300px; */
  9737. width: 100%;
  9738. }
  9739. .noVedio {
  9740. display: flex;
  9741. flex-direction: row;
  9742. justify-content: center;
  9743. align-content: center;
  9744. }
  9745. .noNavText {
  9746. cursor: pointer;
  9747. margin: 0px 0px 10px 5px;
  9748. width: 112px;
  9749. }
  9750. .listNoVedio {
  9751. margin: 0 0 0 30px;
  9752. width: 97%;
  9753. }
  9754. .video-player>>>.video-js {
  9755. height: 100%;
  9756. }
  9757. .hangVedioList {
  9758. width: 90% !important;
  9759. height: 150px !important;
  9760. margin: 20px 0 0 30px;
  9761. }
  9762. .hangVedio {
  9763. width: 100%;
  9764. height: 170px !important;
  9765. align-items: flex-start !important;
  9766. }
  9767. .hangHand {
  9768. height: 150px !important;
  9769. }
  9770. .twoChild {
  9771. width: 95%;
  9772. margin: 10px;
  9773. border-radius: 5px;
  9774. background: #f2f2f2;
  9775. display: flex;
  9776. flex-direction: column;
  9777. flex-wrap: nowrap;
  9778. justify-content: flex-start;
  9779. align-items: flex-start;
  9780. transition: all 0.5s;
  9781. overflow: hidden;
  9782. height: 0;
  9783. background: #e7f3ff;
  9784. }
  9785. .twoChild>div:nth-child(1) {
  9786. margin-top: 5px;
  9787. }
  9788. .navChild {
  9789. width: 100%;
  9790. cursor: pointer;
  9791. margin-bottom: 10px;
  9792. position: relative;
  9793. }
  9794. .navChild img {
  9795. position: absolute;
  9796. right: 11px;
  9797. width: 15px;
  9798. top: 50%;
  9799. transform: translateY(-50%);
  9800. }
  9801. .navActive {
  9802. height: auto;
  9803. }
  9804. .navTask {
  9805. display: flex;
  9806. flex-direction: row;
  9807. flex-wrap: nowrap;
  9808. align-items: center;
  9809. align-content: flex-start;
  9810. height: 40px;
  9811. justify-content: flex-start;
  9812. padding: 0 10px;
  9813. width: 100%;
  9814. box-sizing: border-box;
  9815. }
  9816. .navTaskname {
  9817. white-space: nowrap;
  9818. text-overflow: ellipsis;
  9819. overflow: hidden;
  9820. word-break: break-all;
  9821. padding-left: 5px;
  9822. }
  9823. .openTaskActive {
  9824. color: #4386e6;
  9825. }
  9826. .iframeName {
  9827. margin: 5px 0;
  9828. border-left: 4px solid #41c4a4;
  9829. padding-left: 4px;
  9830. }
  9831. .toolTitle {
  9832. margin: 0px 0px 20px;
  9833. font-size: 20px;
  9834. font-weight: 500;
  9835. border-left: 4px solid #41c4a4;
  9836. padding-left: 4px;
  9837. }
  9838. .cru_selectBox {
  9839. overflow: auto;
  9840. width: 96%;
  9841. margin: 0 auto;
  9842. height: calc(100% - 40px - 21px - 20px);
  9843. }
  9844. .cru_selectBox::-webkit-scrollbar,
  9845. .study_top::-webkit-scrollbar,
  9846. .textContent::-webkit-scrollbar {
  9847. /*滚动条整体样式*/
  9848. width: 6px;
  9849. /*高宽分别对应横竖滚动条的尺寸*/
  9850. height: 6px;
  9851. }
  9852. /*定义滚动条轨道 内阴影+圆角*/
  9853. .cru_selectBox::-webkit-scrollbar-track,
  9854. .study_top::-webkit-scrollbar-track,
  9855. .textContent::-webkit-scrollbar {
  9856. border-radius: 10px;
  9857. background-color: #b8bdc9;
  9858. }
  9859. /*定义滑块 内阴影+圆角*/
  9860. .cru_selectBox::-webkit-scrollbar-thumb,
  9861. .study_top::-webkit-scrollbar-thumb,
  9862. .textContent::-webkit-scrollbar-thumb {
  9863. border-radius: 10px;
  9864. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  9865. background-color: #2c5ab3;
  9866. }
  9867. .vedioBox {
  9868. border-radius: 20px;
  9869. background: #fff;
  9870. margin-bottom: 10px;
  9871. }
  9872. .taskBox {
  9873. margin: 15px auto 20px;
  9874. background: #f7f7f7;
  9875. width: 97%;
  9876. border-radius: 10px;
  9877. }
  9878. .vedioTaskBox {
  9879. width: 100%;
  9880. display: flex;
  9881. flex-direction: row;
  9882. flex-wrap: nowrap;
  9883. align-items: center;
  9884. }
  9885. .toolBox {
  9886. padding: 20px 0 0 0;
  9887. display: flex;
  9888. }
  9889. .btnAll {
  9890. position: absolute;
  9891. right: 0;
  9892. display: flex;
  9893. flex-direction: row;
  9894. flex-wrap: nowrap;
  9895. align-items: center;
  9896. }
  9897. .vedioTimeBox {
  9898. display: flex;
  9899. flex-direction: row;
  9900. align-items: center;
  9901. flex-wrap: nowrap;
  9902. position: relative;
  9903. }
  9904. .navBox {
  9905. background: rgb(255, 255, 255);
  9906. height: 400px;
  9907. padding: 5px 1px 0 1px;
  9908. overflow: auto;
  9909. }
  9910. .worksBox {
  9911. padding: 5px 0 0 10px;
  9912. border-bottom: 1px solid #eeeeee;
  9913. }
  9914. .worksBTitle {
  9915. font-size: 20px;
  9916. padding-bottom: 15px;
  9917. border-bottom: 1px solid #eeeeee;
  9918. display: flex;
  9919. align-items: center;
  9920. }
  9921. .greenBox {
  9922. width: 5px;
  9923. height: 30px;
  9924. background: #63b6fa;
  9925. margin-right: 5px;
  9926. }
  9927. .worksDetailBox {
  9928. display: flex;
  9929. width: 100%;
  9930. flex-direction: row;
  9931. flex-wrap: wrap;
  9932. align-items: center;
  9933. justify-content: flex-start;
  9934. padding: 15px 0;
  9935. }
  9936. .works {
  9937. display: flex;
  9938. flex-direction: column;
  9939. flex-wrap: nowrap;
  9940. align-items: flex-start;
  9941. justify-content: flex-start;
  9942. align-content: center;
  9943. max-width: 240px;
  9944. width: calc(100% / 3 - 10px);
  9945. height: auto;
  9946. margin-right: 10px;
  9947. margin-bottom: 10px;
  9948. overflow: hidden;
  9949. height: 140px;
  9950. box-shadow: 0 0 6px 1px #dfdada;
  9951. border-radius: 15px;
  9952. }
  9953. .workImg {
  9954. width: 100%;
  9955. /* height: calc(100% - 40px); */
  9956. height: 105px;
  9957. position: relative;
  9958. }
  9959. .workImg>img {
  9960. width: 100%;
  9961. height: 100%;
  9962. object-fit: contain;
  9963. }
  9964. .worksName {
  9965. height: 40px;
  9966. line-height: 40px;
  9967. display: flex;
  9968. width: 92%;
  9969. flex-direction: row;
  9970. flex-wrap: nowrap;
  9971. justify-content: space-between;
  9972. align-items: center;
  9973. margin: 0 10px;
  9974. }
  9975. .worksName>div:nth-child(1) {
  9976. width: 120px;
  9977. white-space: nowrap;
  9978. overflow: hidden;
  9979. text-overflow: ellipsis;
  9980. }
  9981. .worksName>div:nth-child(2) {
  9982. color: #b7b4b5;
  9983. }
  9984. .noWorksS {
  9985. padding: 15px 0;
  9986. display: flex;
  9987. flex-direction: row;
  9988. flex-wrap: wrap;
  9989. align-items: center;
  9990. justify-content: flex-start;
  9991. }
  9992. .noWorksName,
  9993. .isWorksName {
  9994. background: #7cbcf1;
  9995. color: #fff;
  9996. width: 90px;
  9997. height: 25px;
  9998. text-align: center;
  9999. line-height: 25px;
  10000. border-radius: 5px;
  10001. margin: 10px 15px 10px 0;
  10002. white-space: nowrap;
  10003. overflow: hidden;
  10004. padding: 5px;
  10005. text-overflow: ellipsis;
  10006. }
  10007. .isWorksName {
  10008. cursor: pointer;
  10009. background: #46a1eb !important;
  10010. width: 100px;
  10011. height: 40px;
  10012. line-height: 40px;
  10013. position: relative;
  10014. }
  10015. .noWorksName:hover {
  10016. background: #46a1eb !important;
  10017. }
  10018. .title {
  10019. background: #1e5cc9;
  10020. /* width: 98%; */
  10021. height: 45px;
  10022. color: #fff;
  10023. line-height: 45px;
  10024. padding-left: 20px;
  10025. box-sizing: border-box;
  10026. }
  10027. .textBox {
  10028. font-size: 20px;
  10029. width: 90%;
  10030. display: flex;
  10031. flex-direction: column;
  10032. align-items: center;
  10033. margin: 20px auto 0;
  10034. }
  10035. .textContent {
  10036. font-size: 18px;
  10037. height: 450px;
  10038. width: 95%;
  10039. max-width: 95%;
  10040. overflow: auto;
  10041. line-height: 30px;
  10042. }
  10043. .answerBg {
  10044. background: url("../assets/icon/answerBgNew.png") no-repeat;
  10045. background-size: 100% 100%;
  10046. width: 100%;
  10047. height: 100%;
  10048. color: #fff;
  10049. text-align: center;
  10050. display: flex;
  10051. flex-direction: column;
  10052. flex-wrap: nowrap;
  10053. align-items: center;
  10054. position: relative;
  10055. justify-content: center;
  10056. }
  10057. .answerBg>div:nth-child(1) {
  10058. /* font-size: 22px;
  10059. padding: 25px 0 10px; */
  10060. }
  10061. .answerContent {
  10062. width: 215px;
  10063. max-height: 60px;
  10064. word-break: break-all;
  10065. text-align: center;
  10066. /* white-space: nowrap; */
  10067. overflow: hidden;
  10068. text-overflow: ellipsis;
  10069. /* padding: 23px 0 0; */
  10070. -webkit-line-clamp: 3;
  10071. -webkit-box-orient: vertical;
  10072. display: -webkit-box;
  10073. font-size: 15px;
  10074. }
  10075. .elist_input_box {
  10076. display: flex;
  10077. align-items: flex-start;
  10078. flex-wrap: nowrap;
  10079. padding: 10px 0 15px 30px;
  10080. flex-direction: column;
  10081. }
  10082. .elist_input {
  10083. /* width: 40%; */
  10084. width: 100%;
  10085. }
  10086. .elist_input .elist_input_box input {
  10087. font: inherit;
  10088. color: currentColor;
  10089. width: 200px;
  10090. padding: 8px 14px;
  10091. display: block;
  10092. min-width: 0;
  10093. outline: none;
  10094. border: 1px solid rgba(0, 0, 0, 0.23);
  10095. border-radius: 4px;
  10096. box-sizing: border-box;
  10097. background: #fff;
  10098. margin: 0 20px 0 0;
  10099. }
  10100. .elist_input .elist_input_box span {
  10101. height: 36px;
  10102. line-height: 36px;
  10103. color: rgb(82, 82, 82);
  10104. }
  10105. .elist_input .elist_input_box .remove {
  10106. height: 20px;
  10107. width: 20px;
  10108. background-size: 100% 100%;
  10109. background-position: unset;
  10110. margin-left: 5px;
  10111. }
  10112. .elist_input_box>>>.el-rate {
  10113. display: flex;
  10114. height: 36px;
  10115. align-items: center;
  10116. }
  10117. .elist_input_box .elist_inptu_text {
  10118. min-height: 50px;
  10119. /* width: 500px;
  10120. max-height: 150px; */
  10121. width: 100%;
  10122. line-height: 50px;
  10123. color: rgb(82, 82, 82);
  10124. overflow: auto;
  10125. text-indent: 5px;
  10126. background: #f7f6f9;
  10127. border-radius: 10px;
  10128. }
  10129. .elist_input_box .elist_inptu_text input {
  10130. width: 500px;
  10131. }
  10132. .elist_input_box>>>.el-rate__icon {
  10133. font-size: 24px;
  10134. }
  10135. .isClick {
  10136. background: #4d9def;
  10137. }
  10138. .bzBox {
  10139. display: flex;
  10140. flex-direction: row;
  10141. align-items: center;
  10142. }
  10143. .bzBox>div:nth-child(1) {
  10144. width: 4px;
  10145. height: 40px;
  10146. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  10147. }
  10148. .bzBox>div:nth-child(2) {
  10149. font-size: 23px;
  10150. font-weight: bold;
  10151. padding: 0px 0px 0 10px;
  10152. }
  10153. .navTitile {
  10154. padding: 0 0px 0 15px;
  10155. background: #1e5cc9;
  10156. color: #fff;
  10157. height: 40px;
  10158. line-height: 40px;
  10159. border-top-left-radius: 10px;
  10160. border-top-right-radius: 10px;
  10161. }
  10162. .isTypeOne {
  10163. width: 240px;
  10164. height: 170px;
  10165. /* border: 1px solid #f8f8f8; */
  10166. border-radius: 10px;
  10167. box-shadow: 0 0 6px 1px #dfdada;
  10168. }
  10169. .e_add_top {
  10170. display: flex;
  10171. justify-content: space-between;
  10172. padding: 20px 20px 0 20px;
  10173. border-radius: 3px;
  10174. background: #fff;
  10175. }
  10176. .e_add_title2 {
  10177. display: flex;
  10178. align-items: center;
  10179. }
  10180. .e_add_title2 span {
  10181. width: 40px;
  10182. }
  10183. .e_add_title {
  10184. display: flex;
  10185. align-items: center;
  10186. color: #b8b8b8;
  10187. font-size: 18px;
  10188. position: relative;
  10189. height: 40px;
  10190. }
  10191. .e_add_title span {
  10192. margin-right: 10px;
  10193. }
  10194. .e_add_title .el_input {
  10195. width: 300px;
  10196. }
  10197. .e_add_title>>>.el-input__inner {
  10198. width: 400px;
  10199. }
  10200. .e_add_btn {}
  10201. .e_add_content {
  10202. display: flex;
  10203. width: 100%;
  10204. max-width: 650px;
  10205. height: 550px;
  10206. }
  10207. .e_add_list {
  10208. background: #fff;
  10209. height: 500px;
  10210. width: 210px;
  10211. position: relative;
  10212. margin: 15px 5px 0 0;
  10213. flex-shrink: 0;
  10214. display: flex;
  10215. flex-direction: column;
  10216. }
  10217. .e_add_list_title {
  10218. font-size: 20px;
  10219. width: 100%;
  10220. box-sizing: border-box;
  10221. padding: 15px 40px;
  10222. text-align: center;
  10223. border-bottom: 1px solid #eaeaea;
  10224. position: relative;
  10225. display: flex;
  10226. align-items: center;
  10227. justify-content: center;
  10228. height: 57px;
  10229. background: #f6f6f6;
  10230. }
  10231. .e_add_list_title span {
  10232. overflow: hidden;
  10233. white-space: nowrap;
  10234. text-overflow: ellipsis;
  10235. }
  10236. .e_add_list_title img {
  10237. position: absolute;
  10238. right: 15px;
  10239. width: 25px;
  10240. cursor: pointer;
  10241. top: 50%;
  10242. transform: translateY(-50%);
  10243. }
  10244. .e_add_list_body {
  10245. height: calc(100% - 187px);
  10246. overflow: auto;
  10247. }
  10248. .e_add_list_child {
  10249. width: 100%;
  10250. display: flex;
  10251. align-items: center;
  10252. justify-content: center;
  10253. position: relative;
  10254. box-sizing: border-box;
  10255. padding: 15px 40px;
  10256. text-align: center;
  10257. }
  10258. .e_add_list_child span {
  10259. overflow: hidden;
  10260. white-space: nowrap;
  10261. text-overflow: ellipsis;
  10262. cursor: pointer;
  10263. }
  10264. .e_add_list_child img {
  10265. position: absolute;
  10266. right: 10px;
  10267. width: 21px;
  10268. cursor: pointer;
  10269. top: 50%;
  10270. transform: translateY(-50%);
  10271. }
  10272. .e_add_list_child+.e_add_list_child {
  10273. border-top: 1px solid #eaeaea;
  10274. }
  10275. .e_add_list_child .active {
  10276. color: #409eff;
  10277. }
  10278. .e_add_list_btn {
  10279. position: absolute;
  10280. bottom: 0;
  10281. height: 50px;
  10282. background: rgb(120, 120, 254);
  10283. width: 100%;
  10284. color: #fff;
  10285. font-size: 16px;
  10286. text-align: center;
  10287. line-height: 50px;
  10288. cursor: pointer;
  10289. }
  10290. .e_add_list_detail {
  10291. position: absolute;
  10292. bottom: 0;
  10293. height: 130px;
  10294. background: rgb(120, 120, 254);
  10295. width: 100%;
  10296. color: #fff;
  10297. font-size: 16px;
  10298. display: flex;
  10299. align-items: center;
  10300. justify-content: center;
  10301. }
  10302. .e_add_list_detail textarea {
  10303. height: 90%;
  10304. width: 95%;
  10305. border: none;
  10306. resize: none;
  10307. outline: none;
  10308. padding: 5px;
  10309. box-sizing: border-box;
  10310. }
  10311. .e_add_list_pbox {
  10312. width: 100%;
  10313. max-width: 650px;
  10314. /* height: 600px; */
  10315. }
  10316. .e_add_list_pbox_title {
  10317. height: 50px;
  10318. background: #fff;
  10319. display: flex;
  10320. align-items: center;
  10321. width: 100%;
  10322. box-sizing: border-box;
  10323. padding: 0 20px;
  10324. }
  10325. .type_title {
  10326. font-size: 18px;
  10327. font-weight: 700;
  10328. }
  10329. .type_content {
  10330. font-size: 16px;
  10331. margin-left: 30px;
  10332. }
  10333. .type_content span+span {
  10334. margin-left: 20px;
  10335. }
  10336. .type_content span {
  10337. cursor: pointer;
  10338. padding-bottom: 5px;
  10339. box-sizing: border-box;
  10340. }
  10341. .type_content .active {
  10342. color: #409eff;
  10343. border-bottom: 2px solid #409eff;
  10344. }
  10345. .e_add_list_pbox_content {
  10346. height: calc(100% - 50px);
  10347. display: flex;
  10348. align-items: center;
  10349. width: 100%;
  10350. background: #fff;
  10351. }
  10352. .evaCss {
  10353. display: flex;
  10354. flex-direction: row;
  10355. flex-wrap: nowrap;
  10356. align-items: flex-start;
  10357. }
  10358. .cru_line {
  10359. position: absolute;
  10360. bottom: 0px;
  10361. transition: all 0.5s;
  10362. left: 0px;
  10363. width: 125px;
  10364. margin-left: -25px;
  10365. }
  10366. .isNoMessage {
  10367. width: 20%;
  10368. margin: 25% auto 0;
  10369. }
  10370. .isNoMessage>img {
  10371. width: 100%;
  10372. height: 100%;
  10373. }
  10374. .fullStyle>>>.el-dialog__body {
  10375. height: 100% !important;
  10376. }
  10377. .fullStyle>>>.el-dialog,
  10378. .fullStyle {
  10379. width: 100% !important;
  10380. max-width: 100% !important;
  10381. height: 100% !important;
  10382. margin: 0 !important;
  10383. }
  10384. .full_diy>>>.el-dialog {
  10385. margin: 0 !important;
  10386. height: 100%;
  10387. padding: 4px;
  10388. }
  10389. .full_diy>>>.el-dialog__body {
  10390. height: calc(100% - 100px);
  10391. }
  10392. .full_diy2>>>.el-dialog__body {
  10393. height: calc(100% - 50px);
  10394. padding: 0;
  10395. }
  10396. .switchCss {
  10397. /* width: 100%; */
  10398. display: flex;
  10399. flex-direction: row;
  10400. flex-wrap: nowrap;
  10401. align-items: center;
  10402. /* justify-content: center; */
  10403. }
  10404. .isClickNav {
  10405. color: #499eef;
  10406. }
  10407. .commentImg {
  10408. width: 25px;
  10409. height: 25px;
  10410. cursor: pointer;
  10411. }
  10412. .commentImg>img {
  10413. width: 100%;
  10414. height: 100%;
  10415. }
  10416. .comment {
  10417. background: #f9f9f9;
  10418. border-radius: 0 0 15px 15px;
  10419. display: flex;
  10420. flex-direction: row;
  10421. flex-wrap: nowrap;
  10422. align-items: center;
  10423. justify-content: flex-end;
  10424. height: 35px;
  10425. }
  10426. .commentList {
  10427. display: flex;
  10428. flex-direction: row;
  10429. flex-wrap: nowrap;
  10430. align-items: center;
  10431. justify-content: center;
  10432. align-content: center;
  10433. /* margin-left: 15px; */
  10434. margin-left: 8px;
  10435. }
  10436. .scoreImg {
  10437. width: 17px;
  10438. height: 17px;
  10439. }
  10440. .studentDetail {
  10441. display: flex;
  10442. flex-direction: row;
  10443. flex-wrap: nowrap;
  10444. /* align-items: center; */
  10445. align-items: flex-start;
  10446. }
  10447. .tx {
  10448. width: 50px;
  10449. }
  10450. .tx>img {
  10451. width: 100%;
  10452. height: 100%;
  10453. }
  10454. .nameAndTime {
  10455. display: flex;
  10456. flex-direction: column;
  10457. flex-wrap: nowrap;
  10458. align-items: flex-start;
  10459. margin-left: 10px;
  10460. }
  10461. .worksAnswer {
  10462. color: #4078dd;
  10463. margin: 10px 0;
  10464. font-size: 16px;
  10465. position: relative;
  10466. }
  10467. .worksAnswer>img {
  10468. width: 500px;
  10469. height: 300px;
  10470. object-fit: contain;
  10471. margin: 0 auto;
  10472. display: block;
  10473. }
  10474. .commentTop {
  10475. border-bottom: 1px solid #eaeaea;
  10476. padding-bottom: 10px;
  10477. }
  10478. .commentBox {
  10479. padding-top: 15px;
  10480. }
  10481. .pl {
  10482. font-size: 18px;
  10483. }
  10484. .plName {
  10485. display: flex;
  10486. flex-direction: row;
  10487. flex-wrap: nowrap;
  10488. align-items: baseline;
  10489. color: #78787a;
  10490. }
  10491. .evalCss {
  10492. background: #fff;
  10493. font-size: 18px;
  10494. }
  10495. .nav {
  10496. color: #9d9d9d;
  10497. padding: 5px 0 15px 20px;
  10498. }
  10499. .middleBox {
  10500. padding: 5px 0 15px 20px;
  10501. }
  10502. .pfBox {
  10503. padding-bottom: 30px;
  10504. }
  10505. .nameAndrate {
  10506. display: flex;
  10507. flex-direction: row;
  10508. flex-wrap: nowrap;
  10509. align-items: center;
  10510. padding-bottom: 10px;
  10511. }
  10512. .nameAndrate>div {
  10513. margin-left: 10px;
  10514. color: #000;
  10515. }
  10516. .pfBox>div:nth-child(2) {
  10517. background: #f7f6f9;
  10518. width: 400px;
  10519. min-height: 45px;
  10520. border-radius: 10px;
  10521. font-size: 16px;
  10522. display: flex;
  10523. flex-wrap: wrap;
  10524. align-items: center;
  10525. padding: 10px 20px;
  10526. box-sizing: border-box;
  10527. color: #000;
  10528. }
  10529. .bz {
  10530. display: flex;
  10531. flex-direction: row;
  10532. flex-wrap: nowrap;
  10533. align-items: flex-start;
  10534. }
  10535. .bz>div {
  10536. padding: 0 10px;
  10537. }
  10538. .select_box2_title {
  10539. background: #fff;
  10540. border-radius: 5px;
  10541. padding: 15px 10px;
  10542. box-sizing: border-box;
  10543. margin-bottom: 10px;
  10544. display: flex;
  10545. flex-direction: row;
  10546. flex-wrap: nowrap;
  10547. align-items: center;
  10548. }
  10549. .select_box2_title>div:nth-child(2) {
  10550. margin-left: 10px;
  10551. color: #c4c4c4;
  10552. }
  10553. .select_box2_box {
  10554. display: flex;
  10555. height: 500px;
  10556. }
  10557. .select_box2_img {
  10558. width: calc(100% - 310px);
  10559. height: 100%;
  10560. overflow: auto;
  10561. background: #fff;
  10562. border-radius: 5px;
  10563. }
  10564. .select_box2_img img {
  10565. width: 100%;
  10566. }
  10567. .select_box2_answer {
  10568. background: #fff;
  10569. margin-left: 10px;
  10570. border-radius: 5px;
  10571. width: 300px;
  10572. overflow: auto;
  10573. height: 90%;
  10574. display: flex;
  10575. flex-direction: column;
  10576. align-items: flex-start;
  10577. padding-top: 10px;
  10578. box-sizing: border-box;
  10579. position: relative;
  10580. }
  10581. .select_answer_title {
  10582. padding: 0 0 15px 20px;
  10583. color: #c4c4c4;
  10584. }
  10585. .select_box2_answer_box {
  10586. margin: 0 0 10px 20px;
  10587. width: 85%;
  10588. display: flex;
  10589. flex-direction: row;
  10590. flex-wrap: nowrap;
  10591. align-items: center;
  10592. }
  10593. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  10594. color: #000;
  10595. }
  10596. .upAnswerCss {
  10597. position: absolute;
  10598. bottom: 15px;
  10599. right: 15px;
  10600. }
  10601. .upAnswerCss>>>.el-button {
  10602. width: 95px;
  10603. height: 35px;
  10604. line-height: 35px;
  10605. padding: 0;
  10606. }
  10607. .rightWidthCss {
  10608. width: 60%;
  10609. display: flex;
  10610. flex-direction: row;
  10611. align-items: flex-start;
  10612. }
  10613. .rightAnswer {
  10614. display: flex;
  10615. flex-direction: row;
  10616. flex-wrap: nowrap;
  10617. align-items: center;
  10618. color: red;
  10619. margin-bottom: 31px;
  10620. }
  10621. .rightAnswerCss {
  10622. display: flex;
  10623. flex-direction: column;
  10624. flex-wrap: nowrap;
  10625. padding-top: 60px;
  10626. }
  10627. .blueCss {
  10628. color: #767de1;
  10629. margin-left: 10px;
  10630. }
  10631. .redCss {
  10632. color: red;
  10633. }
  10634. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  10635. color: rgb(0 123 255) !important;
  10636. }
  10637. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  10638. color: rgb(0 123 255) !important;
  10639. }
  10640. .zuoyeYulan {
  10641. padding-top: 15px;
  10642. font-size: 18px;
  10643. display: flex;
  10644. align-items: flex-end;
  10645. }
  10646. .buttonA {
  10647. margin-left: 10px;
  10648. padding: 0;
  10649. }
  10650. .displayBox {
  10651. margin-bottom: 10px;
  10652. display: block;
  10653. border-bottom: 3px solid #eee;
  10654. display: flex;
  10655. align-items: center;
  10656. }
  10657. .easy_comment {
  10658. width: calc(100% - 90px);
  10659. margin-left: 10px;
  10660. display: flex;
  10661. flex-wrap: wrap;
  10662. }
  10663. .easy_comment>div {
  10664. border: 1px solid #4a4a4a;
  10665. color: #666;
  10666. border-radius: 15px;
  10667. padding: 5px 10px;
  10668. font-size: 16px;
  10669. margin-bottom: 10px;
  10670. margin-right: 5px;
  10671. cursor: pointer;
  10672. }
  10673. .easy_comment div:hover {
  10674. border: 1px solid #f7ba2a;
  10675. color: #c69217;
  10676. }
  10677. .xuan_right_box {
  10678. padding: 10px;
  10679. background: rgb(247, 247, 247);
  10680. margin: 10px 12px;
  10681. border-radius: 5px;
  10682. }
  10683. .tool_right_box {
  10684. display: flex;
  10685. align-items: center;
  10686. }
  10687. .tool_right_box+.tool_right_box {
  10688. margin-top: 10px;
  10689. }
  10690. .right_box_xuan {
  10691. background: rgb(0 123 255);
  10692. color: #fff;
  10693. border-radius: 5px;
  10694. padding: 5px;
  10695. margin-left: 10px;
  10696. }
  10697. .pButton {
  10698. position: fixed;
  10699. /* right: 5%; */
  10700. /* bottom: 5%; */
  10701. color: #fff;
  10702. /* width: 50px;
  10703. height: 50px; */
  10704. /* border-radius: 50%; */
  10705. text-align: center;
  10706. /* line-height: 50px; */
  10707. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  10708. cursor: pointer;
  10709. z-index: 999;
  10710. right: 0;
  10711. top: 83px;
  10712. width: 50px;
  10713. height: 50px;
  10714. background: #fff;
  10715. display: flex;
  10716. align-items: center;
  10717. justify-content: center;
  10718. box-shadow: 0px 0 8px 0px #c5c5c5;
  10719. }
  10720. .pzClass {
  10721. width: calc(100% - 340px);
  10722. }
  10723. .newDialogCss {
  10724. /* position: fixed;
  10725. right: 5%;
  10726. top: 50%;
  10727. width: 340px;
  10728. transform: translateY(-50%);
  10729. height: 60%;
  10730. box-shadow: 0px 0 8px 0px #555555;
  10731. border-radius: 15px;
  10732. z-index: 999; */
  10733. position: fixed;
  10734. right: 0;
  10735. top: 70px;
  10736. width: 340px;
  10737. height: calc(100% - 80px);
  10738. z-index: 999;
  10739. background: #fff;
  10740. border-radius: 15px;
  10741. border-top-right-radius: 0px;
  10742. border-bottom-right-radius: 0px;
  10743. overflow: hidden;
  10744. }
  10745. .pzTop {
  10746. color: #fff;
  10747. background: #000;
  10748. display: flex;
  10749. flex-direction: row;
  10750. flex-wrap: nowrap;
  10751. align-items: center;
  10752. justify-content: space-between;
  10753. height: 40px;
  10754. border-radius: 15px 15px 0 0;
  10755. }
  10756. .pzTop2 .checkbox {
  10757. display: flex;
  10758. align-items: center;
  10759. padding: 15px 30px;
  10760. flex: 0 0 auto;
  10761. font-weight: bold;
  10762. border-bottom: 1px solid #eee;
  10763. justify-content: space-between;
  10764. }
  10765. .pzTop2 .check {
  10766. text-align: center;
  10767. cursor: pointer;
  10768. box-sizing: border-box;
  10769. display: flex;
  10770. }
  10771. .pzTop2 img {
  10772. width: 25px;
  10773. cursor: pointer;
  10774. }
  10775. .pzTop>div:nth-child(1) {
  10776. padding-left: 10px;
  10777. }
  10778. .pzTop>div:nth-child(2) {
  10779. width: 15px;
  10780. height: 15px;
  10781. padding-right: 10px;
  10782. cursor: pointer;
  10783. }
  10784. .pzTop>div:nth-child(2)>img {
  10785. width: 100%;
  10786. height: 100%;
  10787. }
  10788. .pzBox,
  10789. .noPzBox {
  10790. height: calc(100% - 60px);
  10791. /* background: #ededed; */
  10792. background: #fff;
  10793. /* border-radius: 0 0 15px 15px; */
  10794. }
  10795. .noPzBox {
  10796. display: flex;
  10797. flex-direction: column;
  10798. flex-wrap: nowrap;
  10799. justify-content: center;
  10800. align-items: center;
  10801. }
  10802. .pzList {
  10803. background: #f7f7f7;
  10804. width: 90%;
  10805. margin: 0 auto 15px;
  10806. border-radius: 5px;
  10807. }
  10808. .pzNavTop {
  10809. display: flex;
  10810. flex-direction: row;
  10811. flex-wrap: nowrap;
  10812. padding: 10px 10px 0 10px;
  10813. align-items: center;
  10814. }
  10815. .pzDelete {
  10816. cursor: pointer;
  10817. margin-left: auto;
  10818. font-size: 14px;
  10819. color: #afafaf;
  10820. }
  10821. .pzNavTop>div:nth-child(1) {
  10822. background: #3760af;
  10823. width: 35px;
  10824. height: 35px;
  10825. color: #fff;
  10826. text-align: center;
  10827. line-height: 35px;
  10828. border-radius: 50%;
  10829. font-size: 14px;
  10830. }
  10831. .pzNavTop>div:nth-child(2) {
  10832. font-size: 18px;
  10833. color: #959595;
  10834. margin-left: 5px;
  10835. }
  10836. .pzContent {
  10837. padding: 10px;
  10838. word-break: break-word;
  10839. }
  10840. .pzContent audio {
  10841. width: 100%;
  10842. }
  10843. .pzContent audio::-webkit-media-controls-panel {
  10844. background: #fff;
  10845. }
  10846. .pzListBox {
  10847. padding-top: 15px;
  10848. height: calc(100% - 60px);
  10849. overflow: auto;
  10850. }
  10851. .addPzButton {
  10852. position: relative;
  10853. margin-top: 3px;
  10854. width: 100%;
  10855. }
  10856. .addPzButton .img1 {
  10857. position: absolute;
  10858. top: 50%;
  10859. right: 25px;
  10860. transform: translateY(-50%);
  10861. height: 100%;
  10862. display: flex;
  10863. align-items: center;
  10864. }
  10865. .addPzButton .img1 div {
  10866. display: flex;
  10867. }
  10868. .addPzButton .img1 div img {
  10869. width: 28px;
  10870. margin-left: 10px;
  10871. cursor: pointer;
  10872. }
  10873. .addPzButton .img1 div span {
  10874. font-size: 14px;
  10875. margin: 4px 0 0 3px;
  10876. color: #afafaf;
  10877. }
  10878. .addPz {
  10879. background: #4b79ce;
  10880. width: 100px;
  10881. color: #fff;
  10882. font-size: 12px;
  10883. height: 30px;
  10884. margin: 0 auto;
  10885. text-align: center;
  10886. line-height: 30px;
  10887. border-radius: 10px;
  10888. cursor: pointer;
  10889. }
  10890. .addDialogCss {
  10891. position: fixed;
  10892. right: 37%;
  10893. top: 50%;
  10894. width: 600px;
  10895. transform: translateY(-50%);
  10896. height: 70%;
  10897. min-height: 450px;
  10898. box-shadow: 0px 0 8px 0px #555555;
  10899. border-radius: 15px;
  10900. z-index: 999;
  10901. }
  10902. .teacherPz {
  10903. display: flex;
  10904. flex-direction: row;
  10905. align-items: center;
  10906. flex-wrap: nowrap;
  10907. }
  10908. .teacherPzImg {
  10909. width: 30px;
  10910. height: 30px;
  10911. }
  10912. .teacherPzImg>img {
  10913. width: 100%;
  10914. height: 100%;
  10915. }
  10916. .addPzBox {
  10917. height: calc(100% - 40px);
  10918. background: #ededed;
  10919. }
  10920. .pzAudioClass {
  10921. margin: 15px 14px;
  10922. background: #fff;
  10923. height: 100%;
  10924. display: flex;
  10925. justify-content: center;
  10926. align-items: center;
  10927. }
  10928. .pzConText {
  10929. width: 95%;
  10930. height: 100%;
  10931. margin: 10px auto 0;
  10932. border: none;
  10933. background: #fff;
  10934. border-radius: 0px;
  10935. }
  10936. .pzConText>>>.text {
  10937. height: calc(100% - 82px);
  10938. }
  10939. .addTextCss {
  10940. background: #4b79ce;
  10941. width: 80px;
  10942. height: 30px;
  10943. text-align: center;
  10944. color: #fff;
  10945. line-height: 30px;
  10946. border-radius: 10px;
  10947. margin: 10px auto 0;
  10948. cursor: pointer;
  10949. }
  10950. .pzConText:focus-visible {
  10951. border: none !important;
  10952. }
  10953. .maxWidth {
  10954. width: 1000px;
  10955. }
  10956. .noPz {
  10957. width: 150px;
  10958. margin: 0 auto 20%;
  10959. }
  10960. .noPz>img {
  10961. width: 100%;
  10962. height: 100%;
  10963. }
  10964. .pzList .time {
  10965. text-align: right;
  10966. box-sizing: border-box;
  10967. padding: 0 10px 10px 0px;
  10968. color: #949494;
  10969. font-size: 14px;
  10970. }
  10971. /* table 样式 */
  10972. .cont>>>table {
  10973. border-top: 1px solid #ccc;
  10974. border-left: 1px solid #ccc;
  10975. }
  10976. .cont>>>table td,
  10977. .cont>>>table th {
  10978. border-bottom: 1px solid #ccc;
  10979. border-right: 1px solid #ccc;
  10980. padding: 15px 5px;
  10981. max-width: 0px;
  10982. }
  10983. .cont>>>table th {
  10984. border-bottom: 2px solid #ccc;
  10985. text-align: center;
  10986. }
  10987. /* blockquote 样式 */
  10988. .cont>>>blockquote {
  10989. display: block;
  10990. border-left: 8px solid #d0e5f2;
  10991. padding: 5px 10px;
  10992. margin: 10px 0;
  10993. line-height: 1.4;
  10994. font-size: 100%;
  10995. background-color: #f1f1f1;
  10996. }
  10997. .addPzCheck {
  10998. display: flex;
  10999. flex-direction: row;
  11000. flex-wrap: nowrap;
  11001. padding: 10px 15px 0;
  11002. }
  11003. .addPzCheck span {
  11004. cursor: pointer;
  11005. padding-bottom: 5px;
  11006. font-weight: bold;
  11007. }
  11008. .addPzCheck span+span {
  11009. margin-left: 10px;
  11010. }
  11011. .addPzCheck .isChooseActive {
  11012. color: #3e88f4;
  11013. border-bottom: 2px solid #2f80f3;
  11014. }
  11015. /* code 样式 */
  11016. .cont>>>code {
  11017. display: inline-block;
  11018. *display: inline;
  11019. *zoom: 1;
  11020. background-color: #f1f1f1;
  11021. border-radius: 3px;
  11022. padding: 3px 5px;
  11023. margin: 0 3px;
  11024. }
  11025. .cont>>>pre code {
  11026. display: block;
  11027. }
  11028. /* ul ol 样式 */
  11029. .cont>>>ul,
  11030. ol {
  11031. margin: 10px 0 10px 20px;
  11032. }
  11033. .scoreBox,
  11034. .scoreDetailBox {
  11035. display: flex;
  11036. align-items: center;
  11037. justify-content: flex-start;
  11038. margin-top: 20px;
  11039. font-size: 18px;
  11040. width: 100%;
  11041. }
  11042. .scoreBox .t,
  11043. .scoreDetailBox .t {
  11044. margin-right: 10px;
  11045. width: 100px;
  11046. text-align: right;
  11047. }
  11048. .scoreDetailBox {
  11049. align-items: flex-start;
  11050. }
  11051. .scoreDetailBox>>>.el-textarea {
  11052. width: calc(100% - 200px);
  11053. }
  11054. .scoreBox>>>.el-input {
  11055. width: 130px;
  11056. font-size: 38px;
  11057. }
  11058. .scoreBox>>>.el-input__inner {
  11059. height: 60px;
  11060. }
  11061. .answerScore {
  11062. position: absolute;
  11063. top: 10px;
  11064. right: 10px;
  11065. background: #0000008f;
  11066. border-radius: 5px;
  11067. padding: 3px 5px;
  11068. font-size: 14px;
  11069. color: #fff;
  11070. cursor: pointer;
  11071. }
  11072. .open_box .switch_box {
  11073. width: 100%;
  11074. margin: 0 auto;
  11075. display: flex;
  11076. justify-content: space-between;
  11077. }
  11078. .open_box .switch_box+.switch_box {
  11079. margin-top: 10px;
  11080. }
  11081. .deleteImg {
  11082. width: 25px !important;
  11083. height: 25px !important;
  11084. cursor: pointer;
  11085. position: absolute;
  11086. top: 10px;
  11087. right: 10px;
  11088. }
  11089. .deleteImg2 {
  11090. width: 15px !important;
  11091. height: 15px !important;
  11092. top: 5px;
  11093. right: 5px;
  11094. }
  11095. .rightW {
  11096. right: 40px;
  11097. }
  11098. .drawPBox {
  11099. display: flex;
  11100. flex-direction: column;
  11101. position: relative;
  11102. }
  11103. .drawPBox span {
  11104. font-size: 18px;
  11105. color: #606266;
  11106. padding-bottom: 10px;
  11107. margin: 10px 0;
  11108. border-bottom: 1px solid #eaeaea;
  11109. }
  11110. .drawPBox img {
  11111. width: 500px;
  11112. height: 300px;
  11113. object-fit: contain;
  11114. cursor: pointer;
  11115. margin: 0 auto;
  11116. }
  11117. .sentenBox {
  11118. background: #fff;
  11119. height: 450px;
  11120. overflow: auto;
  11121. background-image: url("../assets/icon/conSentences/stuBg.png");
  11122. background-position: 102%;
  11123. background-repeat: no-repeat;
  11124. background-size: 60%;
  11125. }
  11126. .addSen {
  11127. background: #409efe;
  11128. width: 90px;
  11129. color: #fff;
  11130. height: 35px;
  11131. text-align: center;
  11132. line-height: 35px;
  11133. border-radius: 5px;
  11134. float: right;
  11135. margin: 10px 20px 0 0;
  11136. cursor: pointer;
  11137. }
  11138. .sentenTop {
  11139. display: flex;
  11140. flex-direction: row;
  11141. flex-wrap: nowrap;
  11142. align-items: center;
  11143. padding: 55px 0 0 20px;
  11144. box-sizing: border-box;
  11145. }
  11146. .sentenTop>div:nth-child(2) {
  11147. width: 300px;
  11148. margin: 0 15px;
  11149. }
  11150. .sentenTop>div:nth-child(3) {
  11151. background: #409efe;
  11152. color: #fff;
  11153. width: 65px;
  11154. height: 35px;
  11155. text-align: center;
  11156. line-height: 35px;
  11157. border-radius: 5px;
  11158. cursor: pointer;
  11159. }
  11160. .cardList,
  11161. .cardList1 {
  11162. padding: 10px 0 10px 0;
  11163. display: flex;
  11164. flex-direction: row;
  11165. flex-wrap: wrap;
  11166. align-items: center;
  11167. box-sizing: border-box;
  11168. border-bottom: 1px solid #f4f4f4;
  11169. width: 98%;
  11170. margin: 0 auto;
  11171. min-width: 60%;
  11172. max-width: 85%;
  11173. }
  11174. .cardList1 {
  11175. padding: 10px 0 10px 10px !important;
  11176. margin: 0 !important;
  11177. }
  11178. .cardBox {
  11179. display: flex;
  11180. flex-direction: row;
  11181. flex-wrap: wrap;
  11182. align-items: center;
  11183. align-content: center;
  11184. }
  11185. .cardBox>div {
  11186. margin-bottom: 10px;
  11187. }
  11188. .isCard,
  11189. .isChooseCard,
  11190. .noCard,
  11191. .isCard1 {
  11192. width: 130px;
  11193. height: 60px;
  11194. text-align: center;
  11195. line-height: 60px;
  11196. font-size: 20px;
  11197. cursor: pointer;
  11198. background-image: url("../assets/icon/conSentences/titleBorder.png");
  11199. background-size: cover;
  11200. transition: all 2s;
  11201. margin-right: 20px;
  11202. }
  11203. .isCard>div,
  11204. .noCard>div,
  11205. .isCard1>div {
  11206. white-space: nowrap;
  11207. overflow: hidden;
  11208. text-overflow: ellipsis;
  11209. width: 75%;
  11210. margin: 0 auto;
  11211. }
  11212. .noCard {
  11213. background-image: none;
  11214. }
  11215. .isCard1 {
  11216. background-image: url("../assets/icon/conSentences/answerBorder.png");
  11217. }
  11218. .isChooseCard {
  11219. background-image: none;
  11220. border: 1px dashed #b9b9b9;
  11221. border-radius: 10px;
  11222. }
  11223. .card {
  11224. width: 130px;
  11225. height: 60px;
  11226. }
  11227. .card>img {
  11228. width: 100%;
  11229. height: 100%;
  11230. }
  11231. .rightCardBox {
  11232. margin: 10px 0 0 10px;
  11233. }
  11234. .rightCardBox>div:nth-child(1) {
  11235. margin-bottom: 10px;
  11236. }
  11237. .cardCss {
  11238. display: flex;
  11239. flex-direction: column;
  11240. flex-wrap: nowrap;
  11241. align-items: center;
  11242. border-bottom: 3px solid #b4c3d3;
  11243. padding: 0 0 5px 0;
  11244. margin-right: 10px;
  11245. }
  11246. .cardCss>div:nth-child(2) {
  11247. background: #5b7b9d;
  11248. color: #fff;
  11249. width: 20px;
  11250. height: 20px;
  11251. border-radius: 50%;
  11252. text-align: center;
  11253. line-height: 20px;
  11254. }
  11255. .isWrong {
  11256. display: flex;
  11257. flex-direction: row;
  11258. flex-wrap: nowrap;
  11259. align-content: center;
  11260. align-items: center;
  11261. }
  11262. .answerRight {
  11263. width: 25%;
  11264. }
  11265. .isTj {
  11266. display: flex;
  11267. flex-direction: row;
  11268. flex-wrap: nowrap;
  11269. align-items: center;
  11270. }
  11271. .isTj>div:nth-child(2) {
  11272. color: #727070;
  11273. margin-left: 10px;
  11274. }
  11275. .isTjImg {
  11276. width: 30px;
  11277. height: 30px;
  11278. }
  11279. .isTjImg>img {
  11280. width: 100%;
  11281. height: 100%;
  11282. }
  11283. .cardAnswerBox {
  11284. font-size: 18px;
  11285. width: 97%;
  11286. border: 5px;
  11287. padding: 0;
  11288. border-radius: 5px;
  11289. margin: 10px auto;
  11290. word-break: break-word;
  11291. }
  11292. .w_name {
  11293. margin-bottom: 10px;
  11294. }
  11295. .w_name span {
  11296. font-size: 16px;
  11297. }
  11298. .w_teachert {
  11299. width: 50px !important;
  11300. position: absolute;
  11301. height: auto !important;
  11302. z-index: 10;
  11303. right: 25px;
  11304. top: -25px;
  11305. }
  11306. .group_workBox {}
  11307. .group_workBox+.group_workBox {
  11308. margin-top: 20px;
  11309. }
  11310. .group_box {
  11311. padding-bottom: 20px;
  11312. border-bottom: 2px solid #f0f0f0;
  11313. }
  11314. .group_title {
  11315. display: flex;
  11316. align-items: center;
  11317. justify-content: space-between;
  11318. }
  11319. .group_name {
  11320. background-image: url(../assets/icon/groupN.png);
  11321. width: 220px;
  11322. background-size: 100% 100%;
  11323. height: 67px;
  11324. padding: 0 20px 0 43px;
  11325. box-sizing: border-box;
  11326. line-height: 63px;
  11327. color: #fff;
  11328. overflow: hidden;
  11329. white-space: nowrap;
  11330. text-overflow: ellipsis;
  11331. }
  11332. .group_work {
  11333. width: 100%;
  11334. padding: 0 10px;
  11335. box-sizing: border-box;
  11336. display: flex;
  11337. flex-wrap: wrap;
  11338. }
  11339. .g_d_box {
  11340. display: flex;
  11341. flex-flow: wrap;
  11342. justify-content: space-around;
  11343. }
  11344. .g_d_box .isChair {
  11345. background-image: url(../assets/avatar.png) !important;
  11346. }
  11347. .g_d_group {
  11348. width: 500px;
  11349. margin-bottom: 80px;
  11350. }
  11351. .g_d_group_chair {
  11352. display: flex;
  11353. align-items: center;
  11354. justify-content: center;
  11355. }
  11356. .g_d_group_chair>div+div {
  11357. margin-left: 30px;
  11358. }
  11359. .g_d_group_chair>div,
  11360. .g_d_group_chair2>div {
  11361. display: flex;
  11362. flex-direction: column;
  11363. align-items: center;
  11364. }
  11365. .g_d_group_chair>div>span:nth-child(1),
  11366. .g_d_group_chair2>div>span:nth-child(1) {
  11367. background-image: url(../assets/icon/chair.png);
  11368. width: 50px;
  11369. height: 50px;
  11370. display: block;
  11371. background-size: 100% 100%;
  11372. }
  11373. .g_d_group_tableBox {
  11374. display: flex;
  11375. align-items: center;
  11376. justify-content: center;
  11377. }
  11378. .g_d_group_chair2 {
  11379. display: flex;
  11380. flex-direction: column;
  11381. align-items: center;
  11382. justify-content: center;
  11383. }
  11384. .g_d_group_chair2>div+div {
  11385. margin-top: 10px;
  11386. }
  11387. .g_d_group_table {
  11388. background-image: url(../assets/icon/groupBg.png);
  11389. width: 354px;
  11390. height: 196px;
  11391. background-size: 100% 100%;
  11392. display: flex;
  11393. align-items: center;
  11394. justify-content: center;
  11395. flex-direction: column;
  11396. color: #fff;
  11397. }
  11398. .g_d_group_table>div:nth-child(1) {
  11399. font-size: 24px;
  11400. margin-bottom: 5px;
  11401. }
  11402. .g_d_group_table>div:nth-child(2) div {
  11403. cursor: pointer;
  11404. background: #2e77bf;
  11405. padding: 4px 10px;
  11406. border-radius: 5px;
  11407. }
  11408. .groupBox {}
  11409. .groupContent+.groupContent {
  11410. margin-top: 30px;
  11411. }
  11412. .groupTitle {
  11413. font-size: 24px;
  11414. color: rgb(80, 80, 80);
  11415. margin-bottom: 20px;
  11416. }
  11417. .groupName {
  11418. display: flex;
  11419. align-items: center;
  11420. }
  11421. .groupn {
  11422. font-size: 15px;
  11423. margin-right: 10px;
  11424. }
  11425. .groupName+.groupName {
  11426. margin-top: 15px;
  11427. }
  11428. .groupBtn {
  11429. margin-left: 10px;
  11430. }
  11431. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  11432. text-align: left;
  11433. }
  11434. .g_d_btnBox {
  11435. display: flex;
  11436. justify-content: flex-end;
  11437. align-items: flex-end;
  11438. margin-bottom: 20px;
  11439. }
  11440. .updateChair {
  11441. position: relative;
  11442. }
  11443. .updateChairBtn {
  11444. position: absolute;
  11445. width: 50px;
  11446. height: 50px;
  11447. overflow: hidden;
  11448. /* display: flex; */
  11449. align-items: center;
  11450. justify-content: center;
  11451. background: #00000087;
  11452. color: #fff;
  11453. border-radius: 50px;
  11454. display: none;
  11455. cursor: pointer;
  11456. }
  11457. .updateChair:hover .updateChairBtn {
  11458. display: flex;
  11459. }
  11460. .group_staic_box {
  11461. display: flex;
  11462. padding: 30px 40px 10px;
  11463. flex-wrap: wrap;
  11464. }
  11465. .group_staic {
  11466. /* width: 50%; */
  11467. margin-bottom: 20px;
  11468. display: flex;
  11469. align-items: center;
  11470. }
  11471. .group_staic span:nth-child(1) {
  11472. width: 150px;
  11473. text-align: right;
  11474. margin-right: 15px;
  11475. }
  11476. .group_staic span:nth-child(2) {
  11477. background: rgb(0 123 255);
  11478. color: #fff;
  11479. border-radius: 5px;
  11480. padding: 5px;
  11481. }
  11482. </style>