studyStudent.vue 613 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="display: flex; height: 900px; position: relative"
  6. >
  7. <div
  8. class="pButton"
  9. style="
  10. left: 0;
  11. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  12. "
  13. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  14. @click="setContent2(true)"
  15. >
  16. <!-- 批 , getCourseDetail()-->
  17. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  18. </div>
  19. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  20. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  21. <div class="courseTitle">
  22. <div style="width: calc(100% - 25px)">
  23. <el-tooltip
  24. effect="light"
  25. :content="courseDetail.title"
  26. placement="top"
  27. >
  28. <div class="ctitle">{{ courseDetail.title }}</div>
  29. </el-tooltip>
  30. <div class="inviteBox" v-if="tcid && inviteCode">
  31. <div>
  32. <span>随机码:{{ inviteCode }}</span>
  33. </div>
  34. </div>
  35. </div>
  36. <el-tooltip effect="light" content="收缩" placement="top">
  37. <div class="mlImg" @click="setContent2(false)">
  38. <img src="../assets/mlBtn.png" alt="" />
  39. </div>
  40. </el-tooltip>
  41. </div>
  42. <div class="ml">目录</div>
  43. <div class="cru_selectBox">
  44. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  45. <div class="blue_box_one" @click="get(stageIndex)">
  46. <div>第{{ stageIndex + 1 }}阶段</div>
  47. <div>{{ item.dyName }}</div>
  48. </div>
  49. <div class="twoChild" :class="{ navActive: item.isOpen }">
  50. <div
  51. class="navChild"
  52. v-for="(nav, navIndex) in item.task"
  53. :key="navIndex"
  54. >
  55. <div
  56. class="navTask"
  57. @click="openTask(stageIndex, navIndex, nav.id)"
  58. :class="{
  59. openTaskActive:
  60. navIndex == taskCount &&
  61. nav.id == navId &&
  62. stageIndex == courseType,
  63. }"
  64. >
  65. <div
  66. class="vedioNav"
  67. :class="{
  68. isClick:
  69. navIndex == taskCount &&
  70. nav.id == navId &&
  71. stageIndex == courseType,
  72. }"
  73. style="margin: 0"
  74. >
  75. 任务{{ navIndex + 1 }}
  76. </div>
  77. <el-tooltip
  78. class="navTaskname item"
  79. effect="light"
  80. :content="nav.taskName"
  81. placement="top"
  82. >
  83. <div
  84. :style="{
  85. width:
  86. IsLookOpen && !nav.isLook
  87. ? 'calc(100% - 75px)'
  88. : 'auto',
  89. }"
  90. >
  91. {{ nav.taskName }}
  92. </div>
  93. </el-tooltip>
  94. <img
  95. src="../assets/lock.png"
  96. v-if="IsLookOpen && !nav.isLook"
  97. alt=""
  98. />
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  106. <div
  107. class="new_top"
  108. style="
  109. position: fixed;
  110. top: 0;
  111. left: 20.7%;
  112. width: 80%;
  113. z-index: 999;
  114. box-shadow: 0px 9px 0 0 #f2f2f2;
  115. "
  116. :class="{ navLeftCss: !mlDialog }"
  117. >
  118. <div class="courseIndex">
  119. <div>第{{ courseType - 0 + 1 }}阶段</div>
  120. <el-tooltip
  121. effect="light"
  122. :content="chapInfoList[courseType].dyName"
  123. placement="top"
  124. >
  125. <div>{{ chapInfoList[courseType].dyName }}</div>
  126. </el-tooltip>
  127. <div>任务{{ taskCount + 1 }}</div>
  128. </div>
  129. <div class="btnAll">
  130. <div
  131. class="returnBtn"
  132. @click="nextOrpreSteps(0)"
  133. v-if="!(IsFollow && tType == 2)"
  134. >
  135. 上一步
  136. </div>
  137. <div
  138. class="returnBtn"
  139. @click="nextOrpreSteps(1)"
  140. v-if="!(IsFollow && tType == 2)"
  141. >
  142. 下一步
  143. </div>
  144. <div
  145. class="returnBtn"
  146. @click="allScrell"
  147. v-if="!(IsFollow && tType == 2)"
  148. >
  149. 全屏
  150. </div>
  151. <div
  152. class="returnBtn"
  153. @click="startRecording"
  154. v-if="!videoStart && (tType == 1 || tType == 4)"
  155. >
  156. 开始录制
  157. </div>
  158. <div
  159. class="returnBtn"
  160. @click="stopRecording"
  161. v-else-if="tType == 1 || tType == 4"
  162. style="background: #ee5255"
  163. >
  164. 下载录制
  165. </div>
  166. <div
  167. class="returnBtn"
  168. @click="juriVisible = true"
  169. v-if="tType == 1"
  170. >
  171. 权限
  172. </div>
  173. <div
  174. class="returnBtn"
  175. style="background: #225bc7"
  176. @click.stop="
  177. goTo(
  178. '/courseDetail?userid=' +
  179. userid +
  180. '&oid=' +
  181. oid +
  182. '&org=' +
  183. org +
  184. '&cid=' +
  185. classId +
  186. '&courseId=' +
  187. id +
  188. '&tType=' +
  189. tType +
  190. '&screenType=' +
  191. screenType
  192. )
  193. "
  194. >
  195. 返回
  196. </div>
  197. </div>
  198. </div>
  199. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  200. .taskJson"
  201. :key="index"-->
  202. <div
  203. class="isNoMessage"
  204. v-if="
  205. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  206. .chapterData.length == 0 &&
  207. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  208. .toolChoose[0].tool.length == 0 &&
  209. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  210. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  211. .taskDetail == '' &&
  212. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  213. "
  214. >
  215. <img src="../assets/icon/isNoMessage.png" alt />
  216. </div>
  217. <div class="study_top" :class="{ pzClass: pzDialog }">
  218. <div
  219. class="vedioBox"
  220. v-if="
  221. vedio[taskCount].length > 0 ||
  222. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  223. .taskDetail != '' ||
  224. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  225. .chapterData.length > 0
  226. "
  227. >
  228. <div class="checkbox">
  229. <div
  230. class="check"
  231. style="font-size: 25px"
  232. :id="
  233. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  234. "
  235. >
  236. <!-- {{ taskCount + 1 }}
  237. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
  238. 学一学
  239. </div>
  240. </div>
  241. <div
  242. class="student_head"
  243. v-if="
  244. vedio[taskCount].length > 0 ||
  245. textList[taskCount].length > 0 ||
  246. lineList[taskCount].length > 0 ||
  247. file[taskCount].length > 0 ||
  248. fileC[taskCount].length > 0 ||
  249. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  250. .taskDetail != ''
  251. "
  252. >
  253. <div class="taskBox">
  254. <div
  255. style="
  256. display: flex;
  257. flex-wrap: nowrap;
  258. flex-direction: column;
  259. position: relative;
  260. "
  261. >
  262. <div
  263. style="padding: 15px 0 15px 20px; line-height: 25px"
  264. class="cont"
  265. v-if="
  266. chapInfoList[courseType].chapterInfo[0].taskJson[
  267. taskCount
  268. ].taskDetail != ''
  269. "
  270. v-html="
  271. chapInfoList[courseType].chapterInfo[0].taskJson[
  272. taskCount
  273. ].taskDetail
  274. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  275. taskCount
  276. ].taskDetail
  277. : '暂无描述'
  278. "
  279. ></div>
  280. </div>
  281. </div>
  282. <div class="vedioTaskBox">
  283. <div
  284. :class="
  285. contentDialog == false
  286. ? 'box_course isContentCss'
  287. : 'box_course'
  288. "
  289. v-if="
  290. vedio[taskCount].length > 0 ||
  291. textList[taskCount].length > 0 ||
  292. lineList[taskCount].length > 0 ||
  293. file[taskCount].length > 0
  294. "
  295. >
  296. <div
  297. class="wheel"
  298. style="height: auto"
  299. v-if="
  300. vedio.length &&
  301. vedio[taskCount] &&
  302. vedio[taskCount].length > 0 &&
  303. showType == 0
  304. "
  305. >
  306. <div
  307. class="workd_media"
  308. style="height: 650px; width: calc(100% - 50px)"
  309. >
  310. <video-player
  311. class="video-player vjs-custom-skin"
  312. :class="contentDialog == false ? 'isAllWidth' : ''"
  313. :playsinline="true"
  314. :options="playerO[taskCount]"
  315. @play="onPlayerPlay($event)"
  316. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  317. ></video-player>
  318. </div>
  319. </div>
  320. <div
  321. class="wheel"
  322. v-if="showType == 1"
  323. style="
  324. box-shadow: 0 0 6px 1px #f2f2f2;
  325. width: 95%;
  326. margin: 0 auto;
  327. background: #f1f1f1;
  328. "
  329. >
  330. <div class="title">查看文档</div>
  331. <el-form class="textBox">
  332. <el-form-item class="textTitle">
  333. <div style="font-size: 22px">
  334. {{ text.name }}
  335. </div>
  336. </el-form-item>
  337. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  338. <div v-html="text.url" class="textContent cont"></div>
  339. </el-form>
  340. </div>
  341. <div
  342. class="wheel"
  343. v-if="
  344. pptImgUrl1.indexOf(
  345. 'https://view.officeapps.live.com/op/view.aspx?src='
  346. ) != -1 && showType == 2
  347. "
  348. style="width: 95%; margin: 0 auto"
  349. >
  350. <iframe
  351. style="width: 100%; height: 100%; border: none"
  352. :src="pptImgUrl1"
  353. ></iframe>
  354. </div>
  355. <div
  356. class="wheel"
  357. v-else-if="showType == 2"
  358. style="width: 95%; margin: 0 auto"
  359. >
  360. <iframe
  361. style="width: 100%; height: 100%; border: none"
  362. security="restricted"
  363. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  364. :src="pptImgUrl1"
  365. ></iframe>
  366. </div>
  367. <div
  368. class="wheel"
  369. v-if="showType == 3"
  370. style="width: 95%; margin: 0 auto"
  371. >
  372. <pdf
  373. :pdfUrl="pptImgUrl1"
  374. style="width: 100%; height: 100%; overflow: auto"
  375. ></pdf>
  376. </div>
  377. <div
  378. class="wheel"
  379. v-if="showType == 4"
  380. style="width: 95%; margin: 0 auto"
  381. >
  382. <el-image
  383. :src="pptImgUrl1"
  384. fit="cover"
  385. style="width: 100%"
  386. ></el-image>
  387. </div>
  388. </div>
  389. <div
  390. class="pButton"
  391. style="
  392. position: absolute;
  393. right: 20px;
  394. top: 0;
  395. background: #205cc6;
  396. z-index: 998;
  397. opacity: 0.8;
  398. "
  399. v-if="!contentDialog"
  400. @click="setContent(true)"
  401. >
  402. <!-- 批 -->
  403. <img src="../assets/navBtn2.png" style="width: 25px" alt="" />
  404. </div>
  405. <div
  406. v-if="contentDialog == true"
  407. :style="{
  408. width:
  409. !vedio[taskCount].length > 0 &&
  410. !textList[taskCount].length > 0 &&
  411. !lineList[taskCount].length > 0 &&
  412. !file[taskCount].length > 0 &&
  413. fileC[taskCount].length
  414. ? 'calc(100%)'
  415. : 'calc(100% - 83%)',
  416. margin:
  417. !vedio[taskCount].length > 0 &&
  418. !textList[taskCount].length > 0 &&
  419. !lineList[taskCount].length > 0 &&
  420. !file[taskCount].length > 0 &&
  421. fileC[taskCount].length
  422. ? '0 15px'
  423. : '0 15px 0 0',
  424. }"
  425. >
  426. <div
  427. class="vedioList"
  428. v-if="
  429. (vedio.length &&
  430. vedio[taskCount] &&
  431. vedio[taskCount].length > 0) ||
  432. (textList.length &&
  433. textList[taskCount] &&
  434. textList[taskCount].length > 0) ||
  435. (lineList.length &&
  436. lineList[taskCount] &&
  437. lineList[taskCount].length > 0) ||
  438. (file.length &&
  439. file[taskCount] &&
  440. file[taskCount].length > 0) ||
  441. (fileC.length &&
  442. fileC[taskCount] &&
  443. fileC[taskCount].length > 0)
  444. "
  445. style="height: 650px"
  446. >
  447. <div class="navCorOpenBox">
  448. <div class="navTitile">内容列表:</div>
  449. <div class="navCorOpen" @click="setContent(false)">
  450. <img src="../assets/navBtn2.png" alt="" />
  451. </div>
  452. </div>
  453. <div class="navBox">
  454. <div
  455. v-show="
  456. vedio.length &&
  457. vedio[taskCount] &&
  458. vedio[taskCount].length > 0
  459. "
  460. >
  461. <div
  462. class="vedioTimeBox"
  463. v-for="(media, vedioIndex) in vedio[taskCount]"
  464. :key="vedioIndex + '1'"
  465. @click="lookVedio(media.url, vedioIndex)"
  466. >
  467. <div
  468. class="vedioName"
  469. :class="
  470. isClickNav == 'video' + vedioIndex
  471. ? 'isClickNav'
  472. : ''
  473. "
  474. >
  475. <span v-if="media.text">{{ media.text }}-</span
  476. >{{ media.name }}
  477. </div>
  478. </div>
  479. </div>
  480. <div
  481. v-show="
  482. textList.length &&
  483. textList[taskCount] &&
  484. textList[taskCount].length > 0
  485. "
  486. class="newNav"
  487. v-for="(text, textIndex) in textList[taskCount]"
  488. :key="textIndex + '2'"
  489. @click="lookText(taskCount, textIndex)"
  490. >
  491. <div style="width: calc(100% - 0px)">
  492. <div
  493. class="navText"
  494. :class="
  495. isClickNav == 'text' + textIndex
  496. ? 'isClickNav'
  497. : ''
  498. "
  499. >
  500. {{
  501. textList[taskCount].length > 0 ? text.name : ""
  502. }}.doc
  503. </div>
  504. </div>
  505. </div>
  506. <div
  507. v-show="
  508. lineList.length &&
  509. lineList[taskCount] &&
  510. lineList[taskCount].length > 0
  511. "
  512. class="newNav"
  513. v-for="(lines, lineIndex) in lineList[taskCount]"
  514. :key="lineIndex + '4'"
  515. @click="doUrl(lines.url, lineIndex)"
  516. >
  517. <div style="width: calc(100% - 0px)">
  518. <div
  519. class="navText"
  520. :class="
  521. isClickNav == 'line' + lineIndex
  522. ? 'isClickNav'
  523. : ''
  524. "
  525. >
  526. {{ lines.title ? lines.title : lines.url }}
  527. </div>
  528. </div>
  529. </div>
  530. <div
  531. class="newNav"
  532. v-show="
  533. file.length &&
  534. file[taskCount] &&
  535. file[taskCount].length > 0
  536. "
  537. v-for="(f, fileIndex) in file[taskCount]"
  538. :key="fileIndex"
  539. @click="downFile(f, fileIndex)"
  540. >
  541. <div style="width: calc(100% - 0px)">
  542. <div
  543. class="navText"
  544. :class="
  545. isClickNav == 'word' + fileIndex
  546. ? 'isClickNav'
  547. : ''
  548. "
  549. >
  550. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  551. </div>
  552. </div>
  553. </div>
  554. <div
  555. class="newNav"
  556. v-show="
  557. fileC.length &&
  558. fileC[taskCount] &&
  559. fileC[taskCount].length > 0
  560. "
  561. v-for="(f, fileIndex) in fileC[taskCount]"
  562. :key="fileIndex"
  563. @click="downloadFile2(f)"
  564. >
  565. <div style="width: calc(100% - 0px)">
  566. <div class="navText">
  567. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  568. </div>
  569. </div>
  570. </div>
  571. </div>
  572. </div>
  573. </div>
  574. </div>
  575. <div style="width: 81%">
  576. <div
  577. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  578. v-if="showType == 2 || showType == 3"
  579. >
  580. <el-button
  581. type="primary"
  582. @click="checkFileFull(showType, pptImgUrl1)"
  583. >全屏查看</el-button
  584. >
  585. <el-button
  586. type="primary"
  587. @click="downloadFile(pptImgUrl1)"
  588. v-if="isClickNav.indexOf('line') == -1"
  589. >文件下载</el-button
  590. >
  591. <el-button
  592. v-if="isClickNav.indexOf('line') != -1"
  593. type="primary"
  594. @click="openLine(pptImgUrl1)"
  595. >打开链接
  596. </el-button>
  597. </div>
  598. <div
  599. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  600. v-if="showType == 1"
  601. >
  602. <el-button
  603. type="primary"
  604. @click="checkFileFull(showType, text)"
  605. >全屏查看</el-button
  606. >
  607. </div>
  608. </div>
  609. </div>
  610. </div>
  611. <div class="student_body" v-resize="resize">
  612. <!-- <div
  613. class="vedioBox"
  614. v-if="
  615. file.length && file[taskCount] && file[taskCount].length > 0
  616. "
  617. >
  618. <div class="queTop">
  619. <div class="question" style="width: 30px; margin-top: 5px">
  620. <img src="../assets/icon/fileIcon.png" alt />
  621. </div>
  622. <div class="queTitle">
  623. <div>附件</div>
  624. </div>
  625. </div>
  626. <div class="filebox" style="width: 100%">
  627. <div
  628. class="file"
  629. v-for="(f, fileIndex) in file[taskCount]"
  630. :key="fileIndex"
  631. @click="downFile(f, fileIndex)"
  632. >
  633. <img :src="require('../assets/file.png')" alt />
  634. <div>{{ f.name }}</div>
  635. </div>
  636. </div>
  637. <div class="upFile" v-if="type == 3">提交</div>
  638. </div>-->
  639. <div
  640. class="vedioBox"
  641. v-if="
  642. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  643. .toolChoose[0].tool &&
  644. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  645. .toolChoose[0].tool.length &&
  646. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  647. .toolChoose[0].tool.length > 0
  648. "
  649. >
  650. <div
  651. class="queTop"
  652. style="
  653. font-size: 25px;
  654. padding: 15px 0 15px 30px;
  655. font-weight: bold;
  656. "
  657. >
  658. <!-- <div class="question" style="width: 30px">
  659. <img src="../assets/icon/toolIcon.png" alt />
  660. </div>
  661. <div class="queTitle">
  662. <div>工具</div>
  663. </div>-->
  664. 练一练
  665. </div>
  666. <div class="toolHeng2" style="position: relative">
  667. <div
  668. class="filebox"
  669. style="flex-wrap: nowrap; margin: 0 20px"
  670. v-for="(tool, toolIndex) in chapInfoList[courseType]
  671. .chapterInfo[0].taskJson[taskCount].toolChoose"
  672. :key="toolIndex"
  673. >
  674. <div class="bzBox">
  675. <div></div>
  676. <div>步骤{{ toolIndex + 1 }}</div>
  677. </div>
  678. <div class="toolBox">
  679. <div>
  680. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  681. :key="indexTool"-->
  682. <!-- <div class="iframeBox">
  683. <div
  684. class="addPoint isBorder"
  685. v-for="(tooC, toolCIndex) in tool.tool"
  686. :key="toolCIndex"
  687. >
  688. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  689. <div
  690. class="iframeName"
  691. >
  692. 电子白板
  693. </div>
  694. <iframe
  695. src="https://iwb.cocorobo.cn/"
  696. ref="whiteBoard"
  697. ></iframe>
  698. </div>
  699. </div>
  700. </div>-->
  701. <div class="noiframeBox">
  702. <div
  703. class="addPoint"
  704. v-for="(tooC, toolCIndex) in tool.tool"
  705. :key="toolCIndex"
  706. >
  707. <div v-if="tooC == 1">
  708. <img
  709. src="../assets/icon/secondToolList/whiteBoard.png"
  710. alt
  711. @click="addTools(tooC, toolIndex, taskCount)"
  712. />
  713. <div style="margin: 5px 0">电子白板</div>
  714. </div>
  715. <div v-if="tooC == 3">
  716. <img
  717. src="../assets/icon/secondToolList/mindMapping.png"
  718. alt
  719. @click="addTools(tooC, toolIndex, taskCount)"
  720. />
  721. <div style="margin: 5px 0">思维导图</div>
  722. </div>
  723. <div v-if="tooC == 6">
  724. <img
  725. src="../assets/icon/secondToolList/doc.png"
  726. alt
  727. @click="addTools(tooC, toolIndex, taskCount)"
  728. />
  729. <div style="margin: 5px 0">协同文档</div>
  730. </div>
  731. <div v-if="tooC == 7">
  732. <img
  733. src="../assets/icon/secondToolList/mindNetwork.png"
  734. alt
  735. @click="addTools(tooC, toolIndex, taskCount)"
  736. />
  737. <div style="margin: 5px 0">思维网格</div>
  738. </div>
  739. <div v-if="tooC == 8">
  740. <img
  741. src="../assets/icon/secondToolList/library.png"
  742. alt
  743. @click="addTools(tooC, toolIndex, taskCount)"
  744. />
  745. <div style="margin: 5px 0">素材库</div>
  746. </div>
  747. <div v-if="tooC == 17">
  748. <img
  749. src="../assets/icon/secondToolList/library.png"
  750. alt
  751. @click="addTools(tooC, toolIndex, taskCount)"
  752. />
  753. <div style="margin: 5px 0">学习资料</div>
  754. </div>
  755. <div v-if="tooC == 2">
  756. <img
  757. @click="addTools(tooC, toolIndex, taskCount)"
  758. src="../assets/icon/secondToolList/note.png"
  759. alt
  760. />
  761. <div style="margin: 5px 0">便签</div>
  762. </div>
  763. <div v-if="tooC == 4">
  764. <img
  765. @click="addTools(tooC, toolIndex, taskCount)"
  766. src="../assets/icon/thirdToolList/ask.png"
  767. alt
  768. />
  769. <div style="margin: 5px 0">问卷调查</div>
  770. </div>
  771. <div v-if="tooC == 45">
  772. <img
  773. @click="addTools(tooC, toolIndex, taskCount)"
  774. src="../assets/icon/thirdToolList/choose.png"
  775. alt
  776. />
  777. <div style="margin: 5px 0">选择题</div>
  778. </div>
  779. <!-- <div v-if="tooC == 5">
  780. <img
  781. @click="addTools(tooC, toolIndex, taskCount)"
  782. src="../assets/icon/thirdToolList/score.png"
  783. alt
  784. />
  785. <div style="margin: 5px 0">量规评分</div>
  786. </div> -->
  787. <div v-if="tooC == 10">
  788. <img
  789. @click="addTools(tooC, toolIndex, taskCount)"
  790. src="../assets/icon/thirdToolList/time.png"
  791. alt
  792. />
  793. <div style="margin: 5px 0">倒计时</div>
  794. </div>
  795. <div v-if="tooC == 15">
  796. <img
  797. @click="addTools(tooC, toolIndex, taskCount)"
  798. src="../assets/icon/thirdToolList/answer.png"
  799. alt
  800. />
  801. <div style="margin: 5px 0">问答工具</div>
  802. </div>
  803. <div v-if="tooC == 26">
  804. <img
  805. @click="addTools(tooC, toolIndex, taskCount)"
  806. src="../assets/icon/thirdToolList/courseDesign.png"
  807. alt
  808. />
  809. <div style="margin: 5px 0">课程设计</div>
  810. </div>
  811. <div v-if="tooC == 18">
  812. <img
  813. @click="addTools(tooC, toolIndex, taskCount)"
  814. src="../assets/icon/thirdToolList/trainPlatform.png"
  815. alt
  816. />
  817. <div style="margin: 5px 0">训练服务器</div>
  818. </div>
  819. <div v-if="tooC == 16">
  820. <img
  821. @click="addTools(tooC, toolIndex, taskCount)"
  822. src="../assets/icon/thirdToolList/work.png"
  823. alt
  824. />
  825. <div style="margin: 5px 0">作业提交</div>
  826. </div>
  827. <div v-if="tooC == 50">
  828. <img
  829. @click="addTools(tooC, toolIndex, taskCount)"
  830. src="../assets/icon/thirdToolList/plwork.png"
  831. alt
  832. />
  833. <div style="margin: 5px 0">批量上传</div>
  834. </div>
  835. <div v-if="tooC == 21">
  836. <img
  837. @click="addTools(tooC, toolIndex, taskCount)"
  838. src="../assets/icon/fourthToolList/program.png"
  839. alt
  840. />
  841. <div style="margin: 5px 0">编程平台</div>
  842. </div>
  843. <div v-if="tooC == 22">
  844. <img
  845. @click="addTools(tooC, toolIndex, taskCount)"
  846. src="../assets/icon/fourthToolList/program.png"
  847. alt
  848. />
  849. <div style="margin: 5px 0">AI体验</div>
  850. </div>
  851. <div v-if="tooC == 23">
  852. <img
  853. @click="addTools(tooC, toolIndex, taskCount)"
  854. src="../assets/icon/fourthToolList/program.png"
  855. alt
  856. />
  857. <div style="margin: 5px 0">Python</div>
  858. </div>
  859. <div v-if="tooC == 24">
  860. <img
  861. @click="addTools(tooC, toolIndex, taskCount)"
  862. src="../assets/icon/fourthToolList/AIprogram.png"
  863. alt
  864. />
  865. <div style="margin: 5px 0">AI平台</div>
  866. </div>
  867. <div v-if="tooC == 25">
  868. <img
  869. @click="addTools(tooC, toolIndex, taskCount)"
  870. src="../assets/icon/thirdToolList/evalua.png"
  871. alt
  872. />
  873. <div style="margin: 5px 0">目标管理</div>
  874. </div>
  875. <div v-if="tooC == 31">
  876. <img
  877. @click="addTools(tooC, toolIndex, taskCount)"
  878. src="../assets/icon/secondToolList/networkPanel.png"
  879. alt
  880. />
  881. <div style="margin: 5px 0">数学画板</div>
  882. </div>
  883. <div v-if="tooC == 28">
  884. <img
  885. @click="addTools(tooC, toolIndex, taskCount)"
  886. src="../assets/icon/secondToolList/translation.png"
  887. alt
  888. />
  889. <div style="margin: 5px 0">翻译</div>
  890. </div>
  891. <div v-if="tooC == 37">
  892. <img
  893. @click="addTools(tooC, toolIndex, taskCount)"
  894. src="../assets/icon/secondToolList/mohe.png"
  895. alt
  896. />
  897. <div style="margin: 5px 0">魔盒识字</div>
  898. </div>
  899. <div v-if="tooC == 38">
  900. <img
  901. @click="addTools(tooC, toolIndex, taskCount)"
  902. src="../assets/icon/secondToolList/24game.png"
  903. alt
  904. />
  905. <div style="margin: 5px 0">24点</div>
  906. </div>
  907. <div v-if="tooC == 39">
  908. <img
  909. @click="addTools(tooC, toolIndex, taskCount)"
  910. src="../assets/icon/secondToolList/GeoGebra.png"
  911. alt
  912. />
  913. <div style="margin: 5px 0">GeoGebra</div>
  914. </div>
  915. <div v-if="tooC == 32">
  916. <img
  917. @click="addTools(tooC, toolIndex, taskCount)"
  918. src="../assets/icon/thirdToolList/code.png"
  919. alt
  920. />
  921. <div style="margin: 5px 0">源码编辑</div>
  922. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  923. style="position: absolute;left: 110px;bottom: 30px;">
  924. 上传文件
  925. <input type="file" accept="*" style="display: none"
  926. @change="beforeUpload1($event, 7, toolIndex)" />
  927. </div> -->
  928. </div>
  929. <div v-if="tooC == 40">
  930. <img
  931. @click="addTools(tooC, toolIndex, taskCount)"
  932. src="../assets/icon/secondToolList/eval.png"
  933. alt
  934. />
  935. <div style="margin: 5px 0">个人评价</div>
  936. </div>
  937. <div v-if="tooC == 41">
  938. <img
  939. @click="addTools(tooC, toolIndex, taskCount)"
  940. src="../assets/icon/thirdToolList/select.png"
  941. alt
  942. />
  943. <div style="margin: 5px 0">选择填空</div>
  944. </div>
  945. <div v-if="tooC == 44">
  946. <img
  947. @click="addTools(tooC, toolIndex, taskCount)"
  948. src="../assets/icon/thirdToolList/hanClass.png"
  949. alt
  950. />
  951. <div style="margin: 5px 0">汉字宫</div>
  952. </div>
  953. <div v-if="tooC == 47">
  954. <img
  955. @click="addTools(tooC, toolIndex, taskCount)"
  956. src="../assets/icon/fourthToolList/conSentences.png"
  957. alt
  958. />
  959. <div style="margin: 5px 0">连词成句</div>
  960. </div>
  961. <div v-if="tooC == 48">
  962. <img
  963. @click="addTools(tooC, toolIndex, taskCount)"
  964. src="../assets/icon/fourthToolList/table.png"
  965. alt
  966. />
  967. <div style="margin: 5px 0">表格</div>
  968. </div>
  969. <div v-if="tooC == 52">
  970. <img
  971. @click="addTools(tooC, toolIndex, taskCount)"
  972. src="../assets/icon/fourthToolList/text.png"
  973. alt
  974. />
  975. <div style="margin: 5px 0">文档</div>
  976. </div>
  977. <div v-if="tooC == 49">
  978. <img
  979. @click="addTools(tooC, toolIndex, taskCount)"
  980. src="../assets/icon/fourthToolList/group.png"
  981. alt
  982. />
  983. <div style="margin: 5px 0">学生分组</div>
  984. </div>
  985. <div v-if="tooC == 57">
  986. <img
  987. @click="addTools(tooC, toolIndex, taskCount)"
  988. src="../assets/icon/fourthToolList/cocopi.png"
  989. alt
  990. />
  991. <div style="margin: 5px 0">CocoPi</div>
  992. </div>
  993. <div v-if="tooC == 58">
  994. <img
  995. @click="addTools(tooC, toolIndex, taskCount)"
  996. src="../assets/icon/fourthToolList/car.png"
  997. alt
  998. />
  999. <div style="margin: 5px 0">模拟驾驶</div>
  1000. </div>
  1001. <div v-if="tooC == 59">
  1002. <img
  1003. @click="addTools(tooC, toolIndex, taskCount)"
  1004. src="../assets/icon/fourthToolList/lineSearch.png"
  1005. alt
  1006. />
  1007. <div style="margin: 5px 0">路径搜索</div>
  1008. </div>
  1009. <div v-if="tooC == 60">
  1010. <img
  1011. @click="addTools(tooC, toolIndex, taskCount)"
  1012. src="../assets/icon/fourthToolList/deepLearning.png"
  1013. alt
  1014. />
  1015. <div style="margin: 5px 0">深度学习</div>
  1016. </div>
  1017. <div v-if="tooC == 61">
  1018. <img
  1019. @click="addTools(tooC, toolIndex, taskCount)"
  1020. src="../assets/icon/fourthToolList/allHistory.png"
  1021. alt
  1022. />
  1023. <div style="margin: 5px 0">全历史</div>
  1024. </div>
  1025. </div>
  1026. </div>
  1027. </div>
  1028. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1029. <!-- <div class="toolTitle">工具描述</div> -->
  1030. <div v-html="contentConvent(tool.toolDetail)"></div>
  1031. </div>
  1032. <el-button
  1033. type="primary"
  1034. v-if="tool.tool[0] == 32"
  1035. style="
  1036. position: absolute;
  1037. right: 30px;
  1038. transform: translateY(-130%);
  1039. "
  1040. @click="addImg($event)"
  1041. >上传作业<input
  1042. type="file"
  1043. accept="*"
  1044. style="display: none"
  1045. @change="beforeUpload1($event, 7, toolIndex)"
  1046. /></el-button>
  1047. <el-button
  1048. type="primary"
  1049. v-if="tool.tool[0] == 57"
  1050. style="
  1051. position: absolute;
  1052. right: 30px;
  1053. transform: translateY(-130%);
  1054. "
  1055. @click="addImg($event)"
  1056. >上传作业<input
  1057. type="file"
  1058. accept="*"
  1059. style="display: none"
  1060. @change="beforeUpload1($event, 8, toolIndex)"
  1061. /></el-button>
  1062. </div>
  1063. <div
  1064. v-if="
  1065. tType &&
  1066. tType == 2 &&
  1067. !sIsOpen &&
  1068. tool.tool.indexOf(16) != -1
  1069. "
  1070. class="worksBox"
  1071. >
  1072. <div
  1073. class="zuoyeYulan"
  1074. v-if="workStudent[toolIndex].length > 0"
  1075. >
  1076. <span>作业预览</span>
  1077. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1078. </div>
  1079. <div
  1080. class="worksDetailBox"
  1081. v-if="workStudent[toolIndex].length > 0"
  1082. >
  1083. <div
  1084. class="works"
  1085. style="
  1086. width: 200px;
  1087. height: 140px;
  1088. margin: 10px 10px 10px 0;
  1089. box-shadow: 0 0 6px 1px #dfdada;
  1090. "
  1091. v-for="(w, wIndex) in workStudent[toolIndex]"
  1092. :key="wIndex"
  1093. >
  1094. <div class="workImg" v-if="w.type == 0">
  1095. <img
  1096. :src="w.works"
  1097. @click="previewImg(w.works)"
  1098. alt
  1099. />
  1100. <div
  1101. class="answerScore"
  1102. v-if="w.score"
  1103. @click.stop="openScore(w)"
  1104. :class="{
  1105. rightW:
  1106. w.userid == userid || tType == 1 || tType == 4,
  1107. }"
  1108. >
  1109. {{ JSON.parse(w.score).wScore }}分
  1110. </div>
  1111. <div
  1112. class="answerScore"
  1113. @click.stop="openScore(w)"
  1114. v-else-if="courseDetail.userid == userid"
  1115. :class="{
  1116. rightW:
  1117. w.userid == userid || tType == 1 || tType == 4,
  1118. }"
  1119. >
  1120. 评分
  1121. </div>
  1122. <img
  1123. class="deleteImg"
  1124. src="../assets/deleteworks.png"
  1125. v-if="
  1126. w.userid == userid || tType == 1 || tType == 4
  1127. "
  1128. @click.stop="deleteWorks(w.wid)"
  1129. alt
  1130. />
  1131. </div>
  1132. <div class="workImg" v-if="w.type == 1">
  1133. <img :src="word" @click="openFile(w.works)" alt />
  1134. <div
  1135. class="answerScore"
  1136. v-if="w.score"
  1137. @click.stop="openScore(w)"
  1138. :class="{
  1139. rightW:
  1140. w.userid == userid || tType == 1 || tType == 4,
  1141. }"
  1142. >
  1143. {{ JSON.parse(w.score).wScore }}分
  1144. </div>
  1145. <div
  1146. class="answerScore"
  1147. @click.stop="openScore(w)"
  1148. v-else-if="courseDetail.userid == userid"
  1149. :class="{
  1150. rightW:
  1151. w.userid == userid || tType == 1 || tType == 4,
  1152. }"
  1153. >
  1154. 评分
  1155. </div>
  1156. <img
  1157. class="deleteImg"
  1158. src="../assets/deleteworks.png"
  1159. v-if="
  1160. w.userid == userid || tType == 1 || tType == 4
  1161. "
  1162. @click.stop="deleteWorks(w.wid)"
  1163. alt
  1164. />
  1165. </div>
  1166. <div class="workImg" v-if="w.type == 3">
  1167. <img
  1168. style="cursor: pointer"
  1169. :src="video"
  1170. @click="openVideo(w)"
  1171. alt
  1172. />
  1173. <div
  1174. class="answerScore"
  1175. v-if="w.score"
  1176. @click.stop="openScore(w)"
  1177. :class="{
  1178. rightW:
  1179. w.userid == userid || tType == 1 || tType == 4,
  1180. }"
  1181. >
  1182. {{ JSON.parse(w.score).wScore }}分
  1183. </div>
  1184. <div
  1185. class="answerScore"
  1186. @click.stop="openScore(w)"
  1187. v-else-if="courseDetail.userid == userid"
  1188. :class="{
  1189. rightW:
  1190. w.userid == userid || tType == 1 || tType == 4,
  1191. }"
  1192. >
  1193. 评分
  1194. </div>
  1195. <img
  1196. class="deleteImg"
  1197. src="../assets/deleteworks.png"
  1198. v-if="
  1199. w.userid == userid || tType == 1 || tType == 4
  1200. "
  1201. @click.stop="deleteWorks(w.wid)"
  1202. alt
  1203. />
  1204. </div>
  1205. <div class="workImg" v-if="w.type == 12">
  1206. <img
  1207. style="cursor: pointer"
  1208. :src="word2"
  1209. @click="downloadFile(w.works)"
  1210. alt
  1211. />
  1212. <div
  1213. class="answerScore"
  1214. v-if="w.score"
  1215. @click.stop="openScore(w)"
  1216. :class="{
  1217. rightW:
  1218. w.userid == userid || tType == 1 || tType == 4,
  1219. }"
  1220. >
  1221. {{ JSON.parse(w.score).wScore }}分
  1222. </div>
  1223. <div
  1224. class="answerScore"
  1225. @click.stop="openScore(w)"
  1226. v-else-if="courseDetail.userid == userid"
  1227. :class="{
  1228. rightW:
  1229. w.userid == userid || tType == 1 || tType == 4,
  1230. }"
  1231. >
  1232. 评分
  1233. </div>
  1234. <img
  1235. class="deleteImg"
  1236. src="../assets/deleteworks.png"
  1237. v-if="
  1238. w.userid == userid || tType == 1 || tType == 4
  1239. "
  1240. @click.stop="deleteWorks(w.wid)"
  1241. alt
  1242. />
  1243. </div>
  1244. <div class="worksName">
  1245. <div>{{ w.sName }}</div>
  1246. </div>
  1247. </div>
  1248. </div>
  1249. </div>
  1250. <div
  1251. v-if="
  1252. tType &&
  1253. tType == 2 &&
  1254. !sIsOpen &&
  1255. tool.tool.indexOf(32) != -1
  1256. "
  1257. class="worksBox"
  1258. >
  1259. <div
  1260. class="zuoyeYulan"
  1261. v-if="workStudent[toolIndex].length > 0"
  1262. >
  1263. <span>作业预览</span>
  1264. </div>
  1265. <div
  1266. class="worksDetailBox"
  1267. v-if="workStudent[toolIndex].length > 0"
  1268. >
  1269. <div
  1270. class="works"
  1271. style="
  1272. width: 200px;
  1273. height: 140px;
  1274. margin: 10px 10px 10px 0;
  1275. box-shadow: 0 0 6px 1px #dfdada;
  1276. "
  1277. v-for="(w, wIndex) in workStudent[toolIndex]"
  1278. :key="wIndex"
  1279. >
  1280. <div class="workImg">
  1281. <img
  1282. :src="word2"
  1283. @click="downloadFile(w.works)"
  1284. alt
  1285. />
  1286. <div
  1287. class="answerScore"
  1288. v-if="w.score"
  1289. @click.stop="openScore(w)"
  1290. :class="{
  1291. rightW:
  1292. w.userid == userid || tType == 1 || tType == 4,
  1293. }"
  1294. >
  1295. {{ JSON.parse(w.score).wScore }}分
  1296. </div>
  1297. <div
  1298. class="answerScore"
  1299. @click.stop="openScore(w)"
  1300. v-else-if="courseDetail.userid == userid"
  1301. :class="{
  1302. rightW:
  1303. w.userid == userid || tType == 1 || tType == 4,
  1304. }"
  1305. >
  1306. 评分
  1307. </div>
  1308. <img
  1309. class="deleteImg"
  1310. src="../assets/deleteworks.png"
  1311. v-if="
  1312. w.userid == userid || tType == 1 || tType == 4
  1313. "
  1314. @click.stop="deleteWorks(w.wid)"
  1315. alt
  1316. />
  1317. </div>
  1318. <div class="worksName">
  1319. <div>{{ w.sName }}</div>
  1320. </div>
  1321. </div>
  1322. </div>
  1323. </div>
  1324. <div
  1325. v-if="
  1326. tType &&
  1327. tType == 2 &&
  1328. !sIsOpen &&
  1329. tool.tool.indexOf(57) != -1
  1330. "
  1331. class="worksBox"
  1332. >
  1333. <div
  1334. class="zuoyeYulan"
  1335. v-if="workStudent[toolIndex].length > 0"
  1336. >
  1337. <span>作业预览</span>
  1338. </div>
  1339. <div
  1340. class="worksDetailBox"
  1341. v-if="workStudent[toolIndex].length > 0"
  1342. >
  1343. <div
  1344. class="works"
  1345. style="
  1346. width: 200px;
  1347. height: 140px;
  1348. margin: 10px 10px 10px 0;
  1349. box-shadow: 0 0 6px 1px #dfdada;
  1350. "
  1351. v-for="(w, wIndex) in workStudent[toolIndex]"
  1352. :key="wIndex"
  1353. >
  1354. <div class="workImg">
  1355. <img
  1356. :src="word2"
  1357. @click="downloadFile(w.works)"
  1358. alt
  1359. />
  1360. <div
  1361. class="answerScore"
  1362. v-if="w.score"
  1363. @click.stop="openScore(w)"
  1364. :class="{
  1365. rightW:
  1366. w.userid == userid || tType == 1 || tType == 4,
  1367. }"
  1368. >
  1369. {{ JSON.parse(w.score).wScore }}分
  1370. </div>
  1371. <div
  1372. class="answerScore"
  1373. @click.stop="openScore(w)"
  1374. v-else-if="courseDetail.userid == userid"
  1375. :class="{
  1376. rightW:
  1377. w.userid == userid || tType == 1 || tType == 4,
  1378. }"
  1379. >
  1380. 评分
  1381. </div>
  1382. <img
  1383. class="deleteImg"
  1384. src="../assets/deleteworks.png"
  1385. v-if="
  1386. w.userid == userid || tType == 1 || tType == 4
  1387. "
  1388. @click.stop="deleteWorks(w.wid)"
  1389. alt
  1390. />
  1391. </div>
  1392. <div class="worksName">
  1393. <div>{{ w.sName }}</div>
  1394. </div>
  1395. </div>
  1396. </div>
  1397. </div>
  1398. <div
  1399. v-if="
  1400. tType &&
  1401. tType == 2 &&
  1402. !sIsOpen &&
  1403. tool.tool.indexOf(4) != -1
  1404. "
  1405. class="worksBox"
  1406. >
  1407. <div
  1408. class="zuoyeYulan"
  1409. v-if="workStudent[toolIndex].length > 0"
  1410. >
  1411. <span>作业预览</span>
  1412. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1413. </div>
  1414. <div
  1415. class="worksDetailBox"
  1416. v-if="workStudent[toolIndex].length > 0"
  1417. >
  1418. <div
  1419. class="isWorksName"
  1420. v-for="(w, wIndex) in workStudent[toolIndex]"
  1421. :key="wIndex"
  1422. @click="
  1423. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1424. "
  1425. >
  1426. {{ w.sName }}
  1427. <img
  1428. class="deleteImg deleteImg2"
  1429. src="../assets/deleteworks.png"
  1430. v-if="w.userid == userid || tType == 1 || tType == 4"
  1431. @click.stop="deleteWorks(w.wid)"
  1432. alt
  1433. />
  1434. </div>
  1435. <!-- <div
  1436. class="works"
  1437. style="
  1438. width: 200px;
  1439. height: 140px;
  1440. border-radius: 10px;
  1441. box-shadow: 0 0 6px 1px #dfdada;
  1442. overflow: hidden;
  1443. "
  1444. v-for="(w, wIndex) in workStudent[toolIndex]"
  1445. :key="wIndex"
  1446. >
  1447. <div class="workImg">
  1448. <img
  1449. src="../assets/icon/works/noImg.png"
  1450. @click="
  1451. openTools(
  1452. 4,
  1453. toolIndex,
  1454. taskCount,
  1455. w.works,
  1456. w.sName
  1457. )
  1458. "
  1459. alt
  1460. />
  1461. </div>
  1462. <div class="worksName">
  1463. <div>{{ w.sName }}</div>
  1464. <div>{{ w.time }}</div>
  1465. </div>
  1466. </div> -->
  1467. </div>
  1468. </div>
  1469. <div
  1470. v-if="
  1471. tType &&
  1472. tType == 2 &&
  1473. !sIsOpen &&
  1474. tool.tool.indexOf(45) != -1
  1475. "
  1476. class="worksBox"
  1477. >
  1478. <div
  1479. class="zuoyeYulan"
  1480. v-if="workStudent[toolIndex].length > 0"
  1481. >
  1482. <span>作业预览</span>
  1483. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1484. </div>
  1485. <div
  1486. class="worksDetailBox"
  1487. v-if="workStudent[toolIndex].length > 0"
  1488. >
  1489. <div
  1490. class="isWorksName"
  1491. v-for="(w, wIndex) in workStudent[toolIndex]"
  1492. :key="wIndex"
  1493. @click="
  1494. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1495. "
  1496. >
  1497. {{ w.sName }}
  1498. <img
  1499. class="deleteImg deleteImg2"
  1500. src="../assets/deleteworks.png"
  1501. v-if="w.userid == userid || tType == 1 || tType == 4"
  1502. @click.stop="deleteWorks(w.wid)"
  1503. alt
  1504. />
  1505. </div>
  1506. </div>
  1507. </div>
  1508. <div
  1509. v-if="
  1510. tType &&
  1511. tType == 2 &&
  1512. !sIsOpen &&
  1513. tool.tool.indexOf(15) != -1
  1514. "
  1515. class="worksBox"
  1516. >
  1517. <div
  1518. class="zuoyeYulan"
  1519. v-if="workStudent[toolIndex].length > 0"
  1520. >
  1521. <span>作业预览</span>
  1522. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1523. </div>
  1524. <div
  1525. class="worksDetailBox"
  1526. v-if="workStudent[toolIndex].length > 0"
  1527. >
  1528. <div
  1529. class="works"
  1530. v-for="(w, wIndex) in workStudent[toolIndex]"
  1531. :key="wIndex"
  1532. >
  1533. <div class="workImg">
  1534. <!-- <img
  1535. src="../assets/icon/works/noImg.png"
  1536. @click="openTools(15, toolIndex, taskCount, w.works)"
  1537. alt=""
  1538. />-->
  1539. <div class="answerBg">
  1540. <!-- <div>{{ w.sName }}</div> -->
  1541. <el-tooltip
  1542. class="item"
  1543. effect="light"
  1544. :content="JSON.parse(w.works)[0].answer"
  1545. placement="top"
  1546. >
  1547. <div class="answerContent">
  1548. {{ JSON.parse(w.works)[0].answer }}
  1549. </div>
  1550. </el-tooltip>
  1551. <div
  1552. class="answerScore"
  1553. v-if="w.score"
  1554. @click.stop="openScore(w)"
  1555. :class="{
  1556. rightW:
  1557. w.userid == userid ||
  1558. tType == 1 ||
  1559. tType == 4,
  1560. }"
  1561. >
  1562. {{ JSON.parse(w.score).wScore }}分
  1563. </div>
  1564. <div
  1565. class="answerScore"
  1566. @click.stop="openScore(w)"
  1567. v-else-if="courseDetail.userid == userid"
  1568. :class="{
  1569. rightW:
  1570. w.userid == userid ||
  1571. tType == 1 ||
  1572. tType == 4,
  1573. }"
  1574. >
  1575. 评分
  1576. </div>
  1577. <img
  1578. class="deleteImg"
  1579. src="../assets/deleteworks.png"
  1580. v-if="
  1581. w.userid == userid || tType == 1 || tType == 4
  1582. "
  1583. @click.stop="deleteWorks(w.wid)"
  1584. alt
  1585. />
  1586. </div>
  1587. <div class="comment">
  1588. <div class="worksName">
  1589. <div>{{ w.sName }}</div>
  1590. </div>
  1591. </div>
  1592. </div>
  1593. </div>
  1594. </div>
  1595. </div>
  1596. <div
  1597. v-if="
  1598. tType &&
  1599. tType == 2 &&
  1600. !sIsOpen &&
  1601. tool.tool.indexOf(1) != -1
  1602. "
  1603. class="worksBox"
  1604. >
  1605. <div
  1606. class="zuoyeYulan"
  1607. v-if="workStudent[toolIndex].length > 0"
  1608. >
  1609. <span>作业预览</span>
  1610. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1611. </div>
  1612. <div
  1613. class="worksDetailBox"
  1614. v-if="workStudent[toolIndex].length > 0"
  1615. >
  1616. <div
  1617. class="works"
  1618. style="
  1619. width: 200px;
  1620. height: 140px;
  1621. margin: 10px 10px 10px 0;
  1622. box-shadow: 0 0 6px 1px #dfdada;
  1623. "
  1624. v-for="(w, wIndex) in workStudent[toolIndex]"
  1625. :key="wIndex"
  1626. >
  1627. <div class="workImg">
  1628. <img
  1629. :src="w.works"
  1630. @click="previewImg(w.works)"
  1631. alt
  1632. />
  1633. <div
  1634. class="answerScore"
  1635. v-if="w.score"
  1636. @click.stop="openScore(w)"
  1637. :class="{
  1638. rightW:
  1639. w.userid == userid || tType == 1 || tType == 4,
  1640. }"
  1641. >
  1642. {{ JSON.parse(w.score).wScore }}分
  1643. </div>
  1644. <div
  1645. class="answerScore"
  1646. @click.stop="openScore(w)"
  1647. v-else-if="courseDetail.userid == userid"
  1648. :class="{
  1649. rightW:
  1650. w.userid == userid || tType == 1 || tType == 4,
  1651. }"
  1652. >
  1653. 评分
  1654. </div>
  1655. <img
  1656. class="deleteImg"
  1657. src="../assets/deleteworks.png"
  1658. v-if="
  1659. w.userid == userid || tType == 1 || tType == 4
  1660. "
  1661. @click.stop="deleteWorks(w.wid)"
  1662. alt
  1663. />
  1664. </div>
  1665. <div class="worksName">
  1666. <div>{{ w.sName }}</div>
  1667. </div>
  1668. </div>
  1669. </div>
  1670. </div>
  1671. <div
  1672. v-if="
  1673. tType &&
  1674. tType == 2 &&
  1675. !sIsOpen &&
  1676. tool.tool.indexOf(3) != -1
  1677. "
  1678. class="worksBox"
  1679. >
  1680. <div
  1681. class="zuoyeYulan"
  1682. v-if="workStudent[toolIndex].length > 0"
  1683. >
  1684. <span>作业预览</span>
  1685. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1686. </div>
  1687. <div
  1688. class="worksDetailBox"
  1689. v-if="workStudent[toolIndex].length > 0"
  1690. >
  1691. <div
  1692. class="works"
  1693. style="
  1694. width: 200px;
  1695. height: 140px;
  1696. margin: 10px 10px 10px 0;
  1697. box-shadow: 0 0 6px 1px #dfdada;
  1698. "
  1699. v-for="(w, wIndex) in workStudent[toolIndex]"
  1700. :key="wIndex"
  1701. >
  1702. <div class="workImg">
  1703. <img
  1704. :src="w.works"
  1705. @click="previewImg(w.works)"
  1706. alt
  1707. />
  1708. <div
  1709. class="answerScore"
  1710. v-if="w.score"
  1711. @click.stop="openScore(w)"
  1712. :class="{
  1713. rightW:
  1714. w.userid == userid || tType == 1 || tType == 4,
  1715. }"
  1716. >
  1717. {{ JSON.parse(w.score).wScore }}分
  1718. </div>
  1719. <div
  1720. class="answerScore"
  1721. @click.stop="openScore(w)"
  1722. v-else-if="courseDetail.userid == userid"
  1723. :class="{
  1724. rightW:
  1725. w.userid == userid || tType == 1 || tType == 4,
  1726. }"
  1727. >
  1728. 评分
  1729. </div>
  1730. <img
  1731. class="deleteImg"
  1732. src="../assets/deleteworks.png"
  1733. v-if="
  1734. w.userid == userid || tType == 1 || tType == 4
  1735. "
  1736. @click.stop="deleteWorks(w.wid)"
  1737. alt
  1738. />
  1739. </div>
  1740. <div class="worksName">
  1741. <div>{{ w.sName }}</div>
  1742. </div>
  1743. </div>
  1744. </div>
  1745. </div>
  1746. <div
  1747. v-if="
  1748. tType &&
  1749. tType == 2 &&
  1750. !sIsOpen &&
  1751. tool.tool.indexOf(6) != -1
  1752. "
  1753. class="worksBox"
  1754. >
  1755. <div
  1756. class="zuoyeYulan"
  1757. v-if="workStudent[toolIndex].length > 0"
  1758. >
  1759. <span>作业预览</span>
  1760. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1761. </div>
  1762. <div
  1763. class="worksDetailBox"
  1764. v-if="workStudent[toolIndex].length > 0"
  1765. >
  1766. <div
  1767. class="works"
  1768. style="
  1769. width: 200px;
  1770. height: 140px;
  1771. margin: 10px 10px 10px 0;
  1772. box-shadow: 0 0 6px 1px #dfdada;
  1773. "
  1774. v-for="(w, wIndex) in workStudent[toolIndex]"
  1775. :key="wIndex"
  1776. >
  1777. <div class="workImg">
  1778. <img
  1779. :src="w.works"
  1780. @click="previewImg(w.works)"
  1781. alt
  1782. />
  1783. <div
  1784. class="answerScore"
  1785. v-if="w.score"
  1786. @click.stop="openScore(w)"
  1787. :class="{
  1788. rightW:
  1789. w.userid == userid || tType == 1 || tType == 4,
  1790. }"
  1791. >
  1792. {{ JSON.parse(w.score).wScore }}分
  1793. </div>
  1794. <div
  1795. class="answerScore"
  1796. @click.stop="openScore(w)"
  1797. v-else-if="courseDetail.userid == userid"
  1798. :class="{
  1799. rightW:
  1800. w.userid == userid || tType == 1 || tType == 4,
  1801. }"
  1802. >
  1803. 评分
  1804. </div>
  1805. <img
  1806. class="deleteImg"
  1807. src="../assets/deleteworks.png"
  1808. v-if="
  1809. w.userid == userid || tType == 1 || tType == 4
  1810. "
  1811. @click.stop="deleteWorks(w.wid)"
  1812. alt
  1813. />
  1814. </div>
  1815. <div class="worksName">
  1816. <div>{{ w.sName }}</div>
  1817. </div>
  1818. </div>
  1819. </div>
  1820. </div>
  1821. <div
  1822. v-if="
  1823. tType &&
  1824. tType == 2 &&
  1825. !sIsOpen &&
  1826. tool.tool.indexOf(7) != -1
  1827. "
  1828. class="worksBox"
  1829. >
  1830. <div
  1831. class="zuoyeYulan"
  1832. v-if="workStudent[toolIndex].length > 0"
  1833. >
  1834. <span>作业预览</span>
  1835. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1836. </div>
  1837. <div
  1838. class="worksDetailBox"
  1839. v-if="workStudent[toolIndex].length > 0"
  1840. >
  1841. <div
  1842. class="works"
  1843. style="
  1844. width: 200px;
  1845. height: 140px;
  1846. margin: 10px 10px 10px 0;
  1847. box-shadow: 0 0 6px 1px #dfdada;
  1848. "
  1849. v-for="(w, wIndex) in workStudent[toolIndex]"
  1850. :key="wIndex"
  1851. >
  1852. <div class="workImg">
  1853. <img
  1854. :src="w.works"
  1855. @click="previewImg(w.works)"
  1856. alt
  1857. />
  1858. <div
  1859. class="answerScore"
  1860. v-if="w.score"
  1861. @click.stop="openScore(w)"
  1862. :class="{
  1863. rightW:
  1864. w.userid == userid || tType == 1 || tType == 4,
  1865. }"
  1866. >
  1867. {{ JSON.parse(w.score).wScore }}分
  1868. </div>
  1869. <div
  1870. class="answerScore"
  1871. @click.stop="openScore(w)"
  1872. v-else-if="courseDetail.userid == userid"
  1873. :class="{
  1874. rightW:
  1875. w.userid == userid || tType == 1 || tType == 4,
  1876. }"
  1877. >
  1878. 评分
  1879. </div>
  1880. <img
  1881. class="deleteImg"
  1882. src="../assets/deleteworks.png"
  1883. v-if="
  1884. w.userid == userid || tType == 1 || tType == 4
  1885. "
  1886. @click.stop="deleteWorks(w.wid)"
  1887. alt
  1888. />
  1889. </div>
  1890. <div class="worksName">
  1891. <div>{{ w.sName }}</div>
  1892. </div>
  1893. </div>
  1894. </div>
  1895. </div>
  1896. <div
  1897. v-if="
  1898. tType &&
  1899. tType == 2 &&
  1900. !sIsOpen &&
  1901. tool.tool.indexOf(26) != -1
  1902. "
  1903. class="worksBox"
  1904. >
  1905. <div
  1906. class="zuoyeYulan"
  1907. v-if="workStudent[toolIndex].length > 0"
  1908. >
  1909. <span>作业预览</span>
  1910. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1911. </div>
  1912. <div
  1913. class="worksDetailBox"
  1914. v-if="workStudent[toolIndex].length > 0"
  1915. >
  1916. <div
  1917. class="works"
  1918. style="
  1919. width: 200px;
  1920. height: 140px;
  1921. margin: 10px 10px 10px 0;
  1922. box-shadow: 0 0 6px 1px #dfdada;
  1923. "
  1924. v-for="(w, wIndex) in workStudent[toolIndex]"
  1925. :key="wIndex"
  1926. >
  1927. <div class="workImg">
  1928. <img
  1929. :src="w.works"
  1930. @click="previewImg(w.works)"
  1931. alt
  1932. />
  1933. <img
  1934. class="deleteImg"
  1935. src="../assets/deleteworks.png"
  1936. v-if="
  1937. w.userid == userid || tType == 1 || tType == 4
  1938. "
  1939. @click.stop="deleteWorks(w.wid)"
  1940. alt
  1941. />
  1942. </div>
  1943. <div class="worksName">
  1944. <div>{{ w.sName }}</div>
  1945. </div>
  1946. </div>
  1947. </div>
  1948. </div>
  1949. <div
  1950. v-if="
  1951. tType &&
  1952. ((tType == 2 && sIsOpen == true) ||
  1953. tType == 1 ||
  1954. tType == 4) &&
  1955. tool.tool.indexOf(16) != -1
  1956. "
  1957. class="worksBox"
  1958. >
  1959. <div
  1960. class="zuoyeYulan"
  1961. v-if="
  1962. worksStudent.length &&
  1963. worksStudent[toolIndex].length > 0
  1964. "
  1965. >
  1966. <div class="worksTop">
  1967. <div>作业预览</div>
  1968. <div
  1969. class="corOpen"
  1970. @click="contract(toolIndex)"
  1971. v-if="
  1972. worksStudent[toolIndex].length > 6 &&
  1973. isCloseList[toolIndex].isClose == 0
  1974. "
  1975. >
  1976. 收缩
  1977. </div>
  1978. <div
  1979. class="corOpen"
  1980. @click="contract(toolIndex)"
  1981. v-if="isCloseList[toolIndex].isClose == 1"
  1982. >
  1983. 展开
  1984. </div>
  1985. </div>
  1986. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1987. </div>
  1988. <div
  1989. class="group_workBox"
  1990. v-for="(g, gindex) in courseGroup.group"
  1991. :key="gindex"
  1992. >
  1993. <div class="group_box">
  1994. <div class="group_title">
  1995. <el-tooltip
  1996. class="item"
  1997. effect="light"
  1998. :content="g.name"
  1999. placement="top"
  2000. >
  2001. <div class="group_name">{{ g.name }}</div>
  2002. </el-tooltip>
  2003. </div>
  2004. <div
  2005. class="group_work"
  2006. v-if="
  2007. g.works &&
  2008. g.works.length &&
  2009. g.works[toolIndex].length
  2010. "
  2011. >
  2012. <div
  2013. class="works"
  2014. style="
  2015. width: 200px;
  2016. height: 140px;
  2017. margin: 10px 10px 10px 0;
  2018. border-radius: 15px;
  2019. box-shadow: 0 0 6px 1px #dfdada;
  2020. "
  2021. v-for="(w, wIndex) in g.works[toolIndex]"
  2022. :key="wIndex"
  2023. :class="w.type == 1 ? 'isTypeOne' : ''"
  2024. >
  2025. <div class="workImg" v-if="w.type == 0">
  2026. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2027. <img
  2028. :src="w.works"
  2029. @click="previewImg(w.works)"
  2030. alt
  2031. />
  2032. <div
  2033. class="answerScore"
  2034. v-if="w.score"
  2035. @click.stop="openScore(w)"
  2036. :class="{
  2037. rightW:
  2038. w.userid == userid ||
  2039. tType == 1 ||
  2040. tType == 4 ||
  2041. w.ateacher == userid,
  2042. }"
  2043. >
  2044. {{ JSON.parse(w.score).wScore }}分
  2045. </div>
  2046. <div
  2047. class="answerScore"
  2048. @click.stop="openScore(w)"
  2049. v-else-if="courseDetail.userid == userid"
  2050. :class="{
  2051. rightW:
  2052. w.userid == userid ||
  2053. tType == 1 ||
  2054. tType == 4 ||
  2055. w.ateacher == userid,
  2056. }"
  2057. >
  2058. 评分
  2059. </div>
  2060. <img
  2061. class="deleteImg"
  2062. src="../assets/deleteworks.png"
  2063. v-if="
  2064. w.userid == userid || tType == 1 || tType == 4
  2065. "
  2066. @click.stop="deleteWorks(w.wid)"
  2067. alt
  2068. />
  2069. </div>
  2070. <div class="workImg" v-if="w.type == 1">
  2071. <img :src="word" @click="openFile(w.works)" alt />
  2072. <!-- @click="openFile(w.works)" -->
  2073. <div
  2074. class="answerScore"
  2075. v-if="w.score"
  2076. @click.stop="openScore(w)"
  2077. :class="{
  2078. rightW:
  2079. w.userid == userid ||
  2080. tType == 1 ||
  2081. tType == 4 ||
  2082. w.ateacher == userid,
  2083. }"
  2084. >
  2085. {{ JSON.parse(w.score).wScore }}分
  2086. </div>
  2087. <div
  2088. class="answerScore"
  2089. @click.stop="openScore(w)"
  2090. v-else-if="courseDetail.userid == userid"
  2091. :class="{
  2092. rightW:
  2093. w.userid == userid ||
  2094. tType == 1 ||
  2095. tType == 4 ||
  2096. w.ateacher == userid,
  2097. }"
  2098. >
  2099. 评分
  2100. </div>
  2101. <img
  2102. class="deleteImg"
  2103. src="../assets/deleteworks.png"
  2104. v-if="
  2105. w.userid == userid || tType == 1 || tType == 4
  2106. "
  2107. @click.stop="deleteWorks(w.wid)"
  2108. alt
  2109. />
  2110. </div>
  2111. <div class="workImg" v-if="w.type == 3">
  2112. <img
  2113. style="cursor: pointer"
  2114. :src="video"
  2115. @click="openVideo(w)"
  2116. alt
  2117. />
  2118. <!-- @click="openVideo(w.works)" -->
  2119. <div
  2120. class="answerScore"
  2121. v-if="w.score"
  2122. @click.stop="openScore(w)"
  2123. :class="{
  2124. rightW:
  2125. w.userid == userid ||
  2126. tType == 1 ||
  2127. tType == 4 ||
  2128. w.ateacher == userid,
  2129. }"
  2130. >
  2131. {{ JSON.parse(w.score).wScore }}分
  2132. </div>
  2133. <div
  2134. class="answerScore"
  2135. @click.stop="openScore(w)"
  2136. v-else-if="courseDetail.userid == userid"
  2137. :class="{
  2138. rightW:
  2139. w.userid == userid ||
  2140. tType == 1 ||
  2141. tType == 4 ||
  2142. w.ateacher == userid,
  2143. }"
  2144. >
  2145. 评分
  2146. </div>
  2147. <img
  2148. class="deleteImg"
  2149. src="../assets/deleteworks.png"
  2150. v-if="
  2151. w.userid == userid || tType == 1 || tType == 4
  2152. "
  2153. @click.stop="deleteWorks(w.wid)"
  2154. alt
  2155. />
  2156. </div>
  2157. <div class="workImg" v-if="w.type == 12">
  2158. <img
  2159. style="cursor: pointer"
  2160. :src="word2"
  2161. @click="downloadFile(w.works)"
  2162. alt
  2163. />
  2164. <!-- @click="openVideo(w.works)" -->
  2165. <div
  2166. class="answerScore"
  2167. v-if="w.score"
  2168. @click.stop="openScore(w)"
  2169. :class="{
  2170. rightW:
  2171. w.userid == userid ||
  2172. tType == 1 ||
  2173. tType == 4 ||
  2174. w.ateacher == userid,
  2175. }"
  2176. >
  2177. {{ JSON.parse(w.score).wScore }}分
  2178. </div>
  2179. <div
  2180. class="answerScore"
  2181. @click.stop="openScore(w)"
  2182. v-else-if="courseDetail.userid == userid"
  2183. :class="{
  2184. rightW:
  2185. w.userid == userid ||
  2186. tType == 1 ||
  2187. tType == 4 ||
  2188. w.ateacher == userid,
  2189. }"
  2190. >
  2191. 评分
  2192. </div>
  2193. <img
  2194. class="deleteImg"
  2195. src="../assets/deleteworks.png"
  2196. v-if="
  2197. w.userid == userid || tType == 1 || tType == 4
  2198. "
  2199. @click.stop="deleteWorks(w.wid)"
  2200. alt
  2201. />
  2202. </div>
  2203. <div class="comment" style="min-width: 200px">
  2204. <div class="worksName">
  2205. <div>{{ w.sName }}</div>
  2206. </div>
  2207. <div class="commentList">
  2208. <div class="commentList">
  2209. <div
  2210. class="commentImg"
  2211. @click="
  2212. isLikes(w.wid, userid, 1, null, w.isLikes)
  2213. "
  2214. >
  2215. <img
  2216. :src="w.isLikes == true ? likes : noLikes"
  2217. alt=""
  2218. />
  2219. </div>
  2220. <div>{{ w.likesCount }}</div>
  2221. </div>
  2222. <div
  2223. class="commentList"
  2224. style="margin-right: 15px"
  2225. >
  2226. <div
  2227. class="commentImg"
  2228. @click="
  2229. commentOther(
  2230. w,
  2231. toolIndex,
  2232. wIndex,
  2233. null,
  2234. g.id
  2235. )
  2236. "
  2237. >
  2238. <img
  2239. src="../assets/icon/comment/comment.png"
  2240. alt=""
  2241. />
  2242. </div>
  2243. <div>{{ w.commentCount }}</div>
  2244. </div>
  2245. </div>
  2246. </div>
  2247. </div>
  2248. </div>
  2249. <div class="group_work" v-else>暂无提交作业</div>
  2250. </div>
  2251. </div>
  2252. <div
  2253. class="worksDetailBox"
  2254. v-if="
  2255. worksStudent.length &&
  2256. worksStudent[toolIndex].length > 0
  2257. "
  2258. >
  2259. <div
  2260. class="works"
  2261. style="
  2262. width: 200px;
  2263. height: 140px;
  2264. margin: 10px 10px 10px 0;
  2265. border-radius: 15px;
  2266. box-shadow: 0 0 6px 1px #dfdada;
  2267. "
  2268. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2269. 0
  2270. ? worksStudent[toolIndex]
  2271. : worksStudent[toolIndex].slice(0, 6)"
  2272. :key="wIndex"
  2273. :class="w.type == 1 ? 'isTypeOne' : ''"
  2274. >
  2275. <div class="workImg" v-if="w.type == 0">
  2276. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2277. <img
  2278. :src="w.works"
  2279. @click="previewImg(w.works)"
  2280. alt
  2281. />
  2282. <div
  2283. class="answerScore"
  2284. v-if="w.score"
  2285. @click.stop="openScore(w)"
  2286. :class="{
  2287. rightW:
  2288. w.userid == userid ||
  2289. tType == 1 ||
  2290. tType == 4 ||
  2291. w.ateacher == userid,
  2292. }"
  2293. >
  2294. {{ JSON.parse(w.score).wScore }}分
  2295. </div>
  2296. <div
  2297. class="answerScore"
  2298. @click.stop="openScore(w)"
  2299. v-else-if="courseDetail.userid == userid"
  2300. :class="{
  2301. rightW:
  2302. w.userid == userid ||
  2303. tType == 1 ||
  2304. tType == 4 ||
  2305. w.ateacher == userid,
  2306. }"
  2307. >
  2308. 评分
  2309. </div>
  2310. <img
  2311. class="deleteImg"
  2312. src="../assets/deleteworks.png"
  2313. v-if="
  2314. w.userid == userid || tType == 1 || tType == 4
  2315. "
  2316. @click.stop="deleteWorks(w.wid)"
  2317. alt
  2318. />
  2319. </div>
  2320. <div class="workImg" v-if="w.type == 1">
  2321. <img :src="word" @click="openFile(w.works)" alt />
  2322. <!-- @click="openFile(w.works)" -->
  2323. <div
  2324. class="answerScore"
  2325. v-if="w.score"
  2326. @click.stop="openScore(w)"
  2327. :class="{
  2328. rightW:
  2329. w.userid == userid ||
  2330. tType == 1 ||
  2331. tType == 4 ||
  2332. w.ateacher == userid,
  2333. }"
  2334. >
  2335. {{ JSON.parse(w.score).wScore }}分
  2336. </div>
  2337. <div
  2338. class="answerScore"
  2339. @click.stop="openScore(w)"
  2340. v-else-if="courseDetail.userid == userid"
  2341. :class="{
  2342. rightW:
  2343. w.userid == userid ||
  2344. tType == 1 ||
  2345. tType == 4 ||
  2346. w.ateacher == userid,
  2347. }"
  2348. >
  2349. 评分
  2350. </div>
  2351. <img
  2352. class="deleteImg"
  2353. src="../assets/deleteworks.png"
  2354. v-if="
  2355. w.userid == userid || tType == 1 || tType == 4
  2356. "
  2357. @click.stop="deleteWorks(w.wid)"
  2358. alt
  2359. />
  2360. </div>
  2361. <div class="workImg" v-if="w.type == 3">
  2362. <img
  2363. style="cursor: pointer"
  2364. :src="video"
  2365. @click="openVideo(w)"
  2366. alt
  2367. />
  2368. <!-- @click="openVideo(w.works)" -->
  2369. <div
  2370. class="answerScore"
  2371. v-if="w.score"
  2372. @click.stop="openScore(w)"
  2373. :class="{
  2374. rightW:
  2375. w.userid == userid ||
  2376. tType == 1 ||
  2377. tType == 4 ||
  2378. w.ateacher == userid,
  2379. }"
  2380. >
  2381. {{ JSON.parse(w.score).wScore }}分
  2382. </div>
  2383. <div
  2384. class="answerScore"
  2385. @click.stop="openScore(w)"
  2386. v-else-if="courseDetail.userid == userid"
  2387. :class="{
  2388. rightW:
  2389. w.userid == userid ||
  2390. tType == 1 ||
  2391. tType == 4 ||
  2392. w.ateacher == userid,
  2393. }"
  2394. >
  2395. 评分
  2396. </div>
  2397. <img
  2398. class="deleteImg"
  2399. src="../assets/deleteworks.png"
  2400. v-if="
  2401. w.userid == userid || tType == 1 || tType == 4
  2402. "
  2403. @click.stop="deleteWorks(w.wid)"
  2404. alt
  2405. />
  2406. </div>
  2407. <div class="workImg" v-if="w.type == 12">
  2408. <img
  2409. style="cursor: pointer"
  2410. :src="word2"
  2411. @click="downloadFile(w.works)"
  2412. alt
  2413. />
  2414. <!-- @click="openVideo(w.works)" -->
  2415. <div
  2416. class="answerScore"
  2417. v-if="w.score"
  2418. @click.stop="openScore(w)"
  2419. :class="{
  2420. rightW:
  2421. w.userid == userid ||
  2422. tType == 1 ||
  2423. tType == 4 ||
  2424. w.ateacher == userid,
  2425. }"
  2426. >
  2427. {{ JSON.parse(w.score).wScore }}分
  2428. </div>
  2429. <div
  2430. class="answerScore"
  2431. @click.stop="openScore(w)"
  2432. v-else-if="courseDetail.userid == userid"
  2433. :class="{
  2434. rightW:
  2435. w.userid == userid ||
  2436. tType == 1 ||
  2437. tType == 4 ||
  2438. w.ateacher == userid,
  2439. }"
  2440. >
  2441. 评分
  2442. </div>
  2443. <img
  2444. class="deleteImg"
  2445. src="../assets/deleteworks.png"
  2446. v-if="
  2447. w.userid == userid || tType == 1 || tType == 4
  2448. "
  2449. @click.stop="deleteWorks(w.wid)"
  2450. alt
  2451. />
  2452. </div>
  2453. <div class="comment" style="min-width: 200px">
  2454. <div class="worksName">
  2455. <div>{{ w.sName }}</div>
  2456. </div>
  2457. <div class="commentList">
  2458. <div class="commentList">
  2459. <div
  2460. class="commentImg"
  2461. @click="
  2462. isLikes(w.wid, userid, 1, null, w.isLikes)
  2463. "
  2464. >
  2465. <img
  2466. :src="w.isLikes == true ? likes : noLikes"
  2467. alt=""
  2468. />
  2469. </div>
  2470. <div>{{ w.likesCount }}</div>
  2471. </div>
  2472. <div class="commentList" style="margin-right: 15px">
  2473. <div
  2474. class="commentImg"
  2475. @click="commentOther(w, toolIndex, wIndex)"
  2476. >
  2477. <img
  2478. src="../assets/icon/comment/comment.png"
  2479. alt=""
  2480. />
  2481. </div>
  2482. <div>{{ w.commentCount }}</div>
  2483. </div>
  2484. </div>
  2485. </div>
  2486. </div>
  2487. </div>
  2488. <div style="font-size: 18px">未提交</div>
  2489. <div class="noWorksS">
  2490. <div
  2491. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2492. :key="sIndex"
  2493. class="noWorksName"
  2494. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2495. >
  2496. {{ s.student }}
  2497. </div>
  2498. </div>
  2499. </div>
  2500. <div
  2501. v-if="
  2502. tType &&
  2503. ((tType == 2 && sIsOpen == true) ||
  2504. tType == 1 ||
  2505. tType == 4) &&
  2506. tool.tool.indexOf(32) != -1
  2507. "
  2508. class="worksBox"
  2509. >
  2510. <div
  2511. class="zuoyeYulan"
  2512. v-if="
  2513. worksStudent.length &&
  2514. worksStudent[toolIndex].length > 0
  2515. "
  2516. >
  2517. <div class="worksTop">
  2518. <div>作业预览</div>
  2519. <div
  2520. class="corOpen"
  2521. @click="contract(toolIndex)"
  2522. v-if="
  2523. worksStudent[toolIndex].length > 6 &&
  2524. isCloseList[toolIndex].isClose == 0
  2525. "
  2526. >
  2527. 收缩
  2528. </div>
  2529. <div
  2530. class="corOpen"
  2531. @click="contract(toolIndex)"
  2532. v-if="isCloseList[toolIndex].isClose == 1"
  2533. >
  2534. 展开
  2535. </div>
  2536. </div>
  2537. </div>
  2538. <div
  2539. class="worksDetailBox"
  2540. v-if="
  2541. worksStudent.length &&
  2542. worksStudent[toolIndex].length > 0
  2543. "
  2544. >
  2545. <div
  2546. class="works"
  2547. style="
  2548. width: 200px;
  2549. height: 140px;
  2550. margin: 10px 10px 10px 0;
  2551. border-radius: 15px;
  2552. box-shadow: 0 0 6px 1px #dfdada;
  2553. "
  2554. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2555. 0
  2556. ? worksStudent[toolIndex]
  2557. : worksStudent[toolIndex].slice(0, 6)"
  2558. :key="wIndex"
  2559. :class="w.type == 1 ? 'isTypeOne' : ''"
  2560. >
  2561. <div class="workImg">
  2562. <img
  2563. :src="word2"
  2564. @click="downloadFile(w.works)"
  2565. alt
  2566. />
  2567. <div
  2568. class="answerScore"
  2569. v-if="w.score"
  2570. @click.stop="openScore(w)"
  2571. :class="{
  2572. rightW:
  2573. w.userid == userid ||
  2574. tType == 1 ||
  2575. tType == 4 ||
  2576. w.ateacher == userid,
  2577. }"
  2578. >
  2579. {{ JSON.parse(w.score).wScore }}分
  2580. </div>
  2581. <div
  2582. class="answerScore"
  2583. @click.stop="openScore(w)"
  2584. v-else-if="courseDetail.userid == userid"
  2585. :class="{
  2586. rightW:
  2587. w.userid == userid ||
  2588. tType == 1 ||
  2589. tType == 4 ||
  2590. w.ateacher == userid,
  2591. }"
  2592. >
  2593. 评分
  2594. </div>
  2595. <img
  2596. class="deleteImg"
  2597. src="../assets/deleteworks.png"
  2598. v-if="
  2599. w.userid == userid || tType == 1 || tType == 4
  2600. "
  2601. @click.stop="deleteWorks(w.wid)"
  2602. alt
  2603. />
  2604. </div>
  2605. <div class="comment" style="min-width: 200px">
  2606. <div class="worksName">
  2607. <div>{{ w.sName }}</div>
  2608. </div>
  2609. <div class="commentList">
  2610. <div class="commentList">
  2611. <div
  2612. class="commentImg"
  2613. @click="
  2614. isLikes(w.wid, userid, 1, null, w.isLikes)
  2615. "
  2616. >
  2617. <img
  2618. :src="w.isLikes == true ? likes : noLikes"
  2619. alt=""
  2620. />
  2621. </div>
  2622. <div>{{ w.likesCount }}</div>
  2623. </div>
  2624. <div class="commentList" style="margin-right: 15px">
  2625. <div
  2626. class="commentImg"
  2627. @click="commentOther(w, toolIndex, wIndex)"
  2628. >
  2629. <img
  2630. src="../assets/icon/comment/comment.png"
  2631. alt=""
  2632. />
  2633. </div>
  2634. <div>{{ w.commentCount }}</div>
  2635. </div>
  2636. </div>
  2637. </div>
  2638. </div>
  2639. </div>
  2640. <div style="font-size: 18px">未提交</div>
  2641. <div class="noWorksS">
  2642. <div
  2643. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2644. :key="sIndex"
  2645. class="noWorksName"
  2646. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2647. >
  2648. {{ s.student }}
  2649. </div>
  2650. </div>
  2651. </div>
  2652. <div
  2653. v-if="
  2654. tType &&
  2655. ((tType == 2 && sIsOpen == true) ||
  2656. tType == 1 ||
  2657. tType == 4) &&
  2658. tool.tool.indexOf(57) != -1
  2659. "
  2660. class="worksBox"
  2661. >
  2662. <div
  2663. class="zuoyeYulan"
  2664. v-if="
  2665. worksStudent.length &&
  2666. worksStudent[toolIndex].length > 0
  2667. "
  2668. >
  2669. <div class="worksTop">
  2670. <div>作业预览</div>
  2671. <div
  2672. class="corOpen"
  2673. @click="contract(toolIndex)"
  2674. v-if="
  2675. worksStudent[toolIndex].length > 6 &&
  2676. isCloseList[toolIndex].isClose == 0
  2677. "
  2678. >
  2679. 收缩
  2680. </div>
  2681. <div
  2682. class="corOpen"
  2683. @click="contract(toolIndex)"
  2684. v-if="isCloseList[toolIndex].isClose == 1"
  2685. >
  2686. 展开
  2687. </div>
  2688. </div>
  2689. </div>
  2690. <div
  2691. class="worksDetailBox"
  2692. v-if="
  2693. worksStudent.length &&
  2694. worksStudent[toolIndex].length > 0
  2695. "
  2696. >
  2697. <div
  2698. class="works"
  2699. style="
  2700. width: 200px;
  2701. height: 140px;
  2702. margin: 10px 10px 10px 0;
  2703. border-radius: 15px;
  2704. box-shadow: 0 0 6px 1px #dfdada;
  2705. "
  2706. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2707. 0
  2708. ? worksStudent[toolIndex]
  2709. : worksStudent[toolIndex].slice(0, 6)"
  2710. :key="wIndex"
  2711. :class="w.type == 1 ? 'isTypeOne' : ''"
  2712. >
  2713. <div class="workImg">
  2714. <img
  2715. :src="word2"
  2716. @click="downloadFile(w.works)"
  2717. alt
  2718. />
  2719. <div
  2720. class="answerScore"
  2721. v-if="w.score"
  2722. @click.stop="openScore(w)"
  2723. :class="{
  2724. rightW:
  2725. w.userid == userid ||
  2726. tType == 1 ||
  2727. tType == 4 ||
  2728. w.ateacher == userid,
  2729. }"
  2730. >
  2731. {{ JSON.parse(w.score).wScore }}分
  2732. </div>
  2733. <div
  2734. class="answerScore"
  2735. @click.stop="openScore(w)"
  2736. v-else-if="courseDetail.userid == userid"
  2737. :class="{
  2738. rightW:
  2739. w.userid == userid ||
  2740. tType == 1 ||
  2741. tType == 4 ||
  2742. w.ateacher == userid,
  2743. }"
  2744. >
  2745. 评分
  2746. </div>
  2747. <img
  2748. class="deleteImg"
  2749. src="../assets/deleteworks.png"
  2750. v-if="
  2751. w.userid == userid || tType == 1 || tType == 4
  2752. "
  2753. @click.stop="deleteWorks(w.wid)"
  2754. alt
  2755. />
  2756. </div>
  2757. <div class="comment" style="min-width: 200px">
  2758. <div class="worksName">
  2759. <div>{{ w.sName }}</div>
  2760. </div>
  2761. <div class="commentList">
  2762. <div class="commentList">
  2763. <div
  2764. class="commentImg"
  2765. @click="
  2766. isLikes(w.wid, userid, 1, null, w.isLikes)
  2767. "
  2768. >
  2769. <img
  2770. :src="w.isLikes == true ? likes : noLikes"
  2771. alt=""
  2772. />
  2773. </div>
  2774. <div>{{ w.likesCount }}</div>
  2775. </div>
  2776. <div class="commentList" style="margin-right: 15px">
  2777. <div
  2778. class="commentImg"
  2779. @click="commentOther(w, toolIndex, wIndex)"
  2780. >
  2781. <img
  2782. src="../assets/icon/comment/comment.png"
  2783. alt=""
  2784. />
  2785. </div>
  2786. <div>{{ w.commentCount }}</div>
  2787. </div>
  2788. </div>
  2789. </div>
  2790. </div>
  2791. </div>
  2792. <div style="font-size: 18px">未提交</div>
  2793. <div class="noWorksS">
  2794. <div
  2795. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2796. :key="sIndex"
  2797. class="noWorksName"
  2798. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  2799. >
  2800. {{ s.student }}
  2801. </div>
  2802. </div>
  2803. </div>
  2804. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2805. <div
  2806. class="zuoyeYulan"
  2807. v-if="
  2808. worksStudent.length &&
  2809. worksStudent[toolIndex].length > 0
  2810. "
  2811. >
  2812. <span>作业预览</span>
  2813. <div
  2814. class="corOpen"
  2815. @click="contract(toolIndex)"
  2816. v-if="
  2817. worksStudent[toolIndex].length > 6 &&
  2818. isCloseList[toolIndex].isClose == 0
  2819. "
  2820. >
  2821. 收缩
  2822. </div>
  2823. <div
  2824. class="corOpen"
  2825. @click="contract(toolIndex)"
  2826. v-if="isCloseList[toolIndex].isClose == 1"
  2827. >
  2828. 展开
  2829. </div>
  2830. </div>
  2831. <div
  2832. class="worksDetailBox"
  2833. v-if="
  2834. worksStudent.length &&
  2835. worksStudent[toolIndex].length > 0
  2836. "
  2837. >
  2838. <div
  2839. class="works"
  2840. style="
  2841. width: 200px;
  2842. height: 140px;
  2843. margin: 10px 10px 10px 0;
  2844. border-radius: 15px;
  2845. box-shadow: 0 0 6px 1px #dfdada;
  2846. "
  2847. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2848. 0
  2849. ? worksStudent[toolIndex]
  2850. : worksStudent[toolIndex].slice(0, 6)"
  2851. :key="wIndex"
  2852. :class="w.type == 1 ? 'isTypeOne' : ''"
  2853. >
  2854. <div class="workImg" v-if="w.type == 0">
  2855. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2856. <img
  2857. :src="w.works"
  2858. @click="previewImg(w.works)"
  2859. alt
  2860. />
  2861. <div
  2862. class="answerScore"
  2863. v-if="w.score"
  2864. @click.stop="openScore(w)"
  2865. :class="{
  2866. rightW:
  2867. w.userid == userid ||
  2868. tType == 1 ||
  2869. tType == 4 ||
  2870. w.ateacher == userid,
  2871. }"
  2872. >
  2873. {{ JSON.parse(w.score).wScore }}分
  2874. </div>
  2875. <div
  2876. class="answerScore"
  2877. @click.stop="openScore(w)"
  2878. v-else-if="courseDetail.userid == userid"
  2879. :class="{
  2880. rightW:
  2881. w.userid == userid ||
  2882. tType == 1 ||
  2883. tType == 4 ||
  2884. w.ateacher == userid,
  2885. }"
  2886. >
  2887. 评分
  2888. </div>
  2889. <img
  2890. class="deleteImg"
  2891. src="../assets/deleteworks.png"
  2892. v-if="
  2893. w.userid == userid || tType == 1 || tType == 4
  2894. "
  2895. @click.stop="deleteWorks(w.wid)"
  2896. alt
  2897. />
  2898. </div>
  2899. <div
  2900. class="workImg"
  2901. style="cursor: pointer"
  2902. v-if="w.type == 1"
  2903. >
  2904. <img :src="word" @click="openFile(w.works)" alt />
  2905. <!-- @click="openFile(w.works)" -->
  2906. <div
  2907. class="answerScore"
  2908. v-if="w.score"
  2909. @click.stop="openScore(w)"
  2910. :class="{
  2911. rightW:
  2912. w.userid == userid ||
  2913. tType == 1 ||
  2914. tType == 4 ||
  2915. w.ateacher == userid,
  2916. }"
  2917. >
  2918. {{ JSON.parse(w.score).wScore }}分
  2919. </div>
  2920. <div
  2921. class="answerScore"
  2922. @click.stop="openScore(w)"
  2923. v-else-if="courseDetail.userid == userid"
  2924. :class="{
  2925. rightW:
  2926. w.userid == userid ||
  2927. tType == 1 ||
  2928. tType == 4 ||
  2929. w.ateacher == userid,
  2930. }"
  2931. >
  2932. 评分
  2933. </div>
  2934. <img
  2935. class="deleteImg"
  2936. src="../assets/deleteworks.png"
  2937. v-if="
  2938. w.userid == userid || tType == 1 || tType == 4
  2939. "
  2940. @click.stop="deleteWorks(w.wid)"
  2941. alt
  2942. />
  2943. </div>
  2944. <div class="workImg" v-if="w.type == 3">
  2945. <img
  2946. style="cursor: pointer"
  2947. :src="video"
  2948. @click="openVideo(w)"
  2949. alt
  2950. />
  2951. <!-- @click="openVideo(w.works)" -->
  2952. <div
  2953. class="answerScore"
  2954. v-if="w.score"
  2955. @click.stop="openScore(w)"
  2956. :class="{
  2957. rightW:
  2958. w.userid == userid ||
  2959. tType == 1 ||
  2960. tType == 4 ||
  2961. w.ateacher == userid,
  2962. }"
  2963. >
  2964. {{ JSON.parse(w.score).wScore }}分
  2965. </div>
  2966. <div
  2967. class="answerScore"
  2968. @click.stop="openScore(w)"
  2969. v-else-if="courseDetail.userid == userid"
  2970. :class="{
  2971. rightW:
  2972. w.userid == userid ||
  2973. tType == 1 ||
  2974. tType == 4 ||
  2975. w.ateacher == userid,
  2976. }"
  2977. >
  2978. 评分
  2979. </div>
  2980. <img
  2981. class="deleteImg"
  2982. src="../assets/deleteworks.png"
  2983. v-if="
  2984. w.userid == userid || tType == 1 || tType == 4
  2985. "
  2986. @click.stop="deleteWorks(w.wid)"
  2987. alt
  2988. />
  2989. </div>
  2990. <div class="comment" style="min-width: 200px">
  2991. <div class="worksName">
  2992. <div
  2993. style="cursor: pointer"
  2994. @click="openSname(w.sName, w.wid, toolIndex)"
  2995. >
  2996. {{ w.sName }}
  2997. </div>
  2998. </div>
  2999. <div class="commentList">
  3000. <div class="commentList">
  3001. <div
  3002. class="commentImg"
  3003. @click="
  3004. isLikes(w.wid, userid, 1, null, w.isLikes)
  3005. "
  3006. >
  3007. <img
  3008. :src="w.isLikes == true ? likes : noLikes"
  3009. alt=""
  3010. />
  3011. </div>
  3012. <div>{{ w.likesCount }}</div>
  3013. </div>
  3014. <div class="commentList" style="margin-right: 15px">
  3015. <div
  3016. class="commentImg"
  3017. @click="commentOther(w, toolIndex, wIndex)"
  3018. >
  3019. <img
  3020. src="../assets/icon/comment/comment.png"
  3021. alt=""
  3022. />
  3023. </div>
  3024. <div>{{ w.commentCount }}</div>
  3025. </div>
  3026. </div>
  3027. </div>
  3028. </div>
  3029. </div>
  3030. <div style="font-size: 18px">未提交</div>
  3031. <div class="noWorksS">
  3032. <div
  3033. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3034. :key="sIndex"
  3035. class="noWorksName"
  3036. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3037. >
  3038. {{ s.student }}
  3039. </div>
  3040. </div>
  3041. </div>
  3042. <div
  3043. v-if="
  3044. tType &&
  3045. ((tType == 2 && sIsOpen == true) ||
  3046. tType == 1 ||
  3047. tType == 4) &&
  3048. tool.tool.indexOf(4) != -1 &&
  3049. (tool.askJson[0].answer ||
  3050. tool.askJson[0].answer === 0) &&
  3051. checkJson[toolIndex].length
  3052. "
  3053. class="xuan_right_box"
  3054. >
  3055. <div
  3056. class="tool_right_box"
  3057. v-for="(item, index) in tool.askJson"
  3058. :key="index"
  3059. >
  3060. <div>
  3061. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  3062. </div>
  3063. <div class="right_box_xuan">
  3064. <span>正确率</span>
  3065. <span>{{
  3066. (checkJson[toolIndex][index].right
  3067. ? checkJson[toolIndex][index].right
  3068. : 0) + "%"
  3069. }}</span>
  3070. </div>
  3071. </div>
  3072. </div>
  3073. <div
  3074. class="xuan_right_box"
  3075. style="background: unset"
  3076. v-if="
  3077. tType &&
  3078. ((tType == 2 && sIsOpen == true) ||
  3079. tType == 1 ||
  3080. tType == 4) &&
  3081. tool.tool.indexOf(4) != -1
  3082. "
  3083. >
  3084. <AskStatic
  3085. v-if="
  3086. worksStudent.length &&
  3087. worksStudent[toolIndex].length > 0
  3088. "
  3089. :askJSON="tool"
  3090. :checkJson="checkJson[toolIndex]"
  3091. ></AskStatic>
  3092. </div>
  3093. <div
  3094. v-if="
  3095. tType &&
  3096. ((tType == 2 && sIsOpen == true) ||
  3097. tType == 1 ||
  3098. tType == 4) &&
  3099. tool.tool.indexOf(4) != -1
  3100. "
  3101. class="worksBox"
  3102. >
  3103. <div
  3104. class="zuoyeYulan"
  3105. v-if="
  3106. worksStudent.length &&
  3107. worksStudent[toolIndex].length > 0
  3108. "
  3109. >
  3110. <div class="worksTop">
  3111. <div>作业预览</div>
  3112. <div
  3113. class="corOpen"
  3114. @click="contract(toolIndex)"
  3115. v-if="
  3116. worksStudent[toolIndex].length > 6 &&
  3117. isCloseList[toolIndex].isClose == 0
  3118. "
  3119. >
  3120. 收缩
  3121. </div>
  3122. <div
  3123. class="corOpen"
  3124. @click="contract(toolIndex)"
  3125. v-if="isCloseList[toolIndex].isClose == 1"
  3126. >
  3127. 展开
  3128. </div>
  3129. </div>
  3130. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3131. </div>
  3132. <div>
  3133. <div
  3134. class="worksDetailBox"
  3135. v-if="
  3136. worksStudent.length &&
  3137. worksStudent[toolIndex].length > 0
  3138. "
  3139. >
  3140. <div
  3141. v-for="(w, wIndex) in isCloseList[toolIndex]
  3142. .isClose == 0
  3143. ? worksStudent[toolIndex]
  3144. : worksStudent[toolIndex].slice(0, 6)"
  3145. :key="wIndex"
  3146. class="isWorksName"
  3147. @click="
  3148. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3149. "
  3150. >
  3151. {{ w.sName }}
  3152. <img
  3153. class="deleteImg deleteImg2"
  3154. src="../assets/deleteworks.png"
  3155. v-if="
  3156. w.userid == userid || tType == 1 || tType == 4
  3157. "
  3158. @click.stop="deleteWorks(w.wid)"
  3159. alt
  3160. />
  3161. </div>
  3162. <!-- <div class="works" style="
  3163. width: 200px;
  3164. height: 140px;
  3165. border-radius: 10px;
  3166. box-shadow: 0 0 6px 1px #dfdada;
  3167. overflow: hidden;
  3168. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3169. <div class="workImg">
  3170. <img src="../assets/icon/works/noImg.png" @click="
  3171. openTools(
  3172. 4,
  3173. toolIndex,
  3174. taskCount,
  3175. w.works,
  3176. w.sName
  3177. )
  3178. " alt />
  3179. </div>
  3180. <div class="worksName">
  3181. <div>{{ w.sName }}</div>
  3182. <div>{{ w.time }}</div>
  3183. </div>
  3184. </div> -->
  3185. </div>
  3186. </div>
  3187. <div style="font-size: 18px">未提交</div>
  3188. <div class="noWorksS">
  3189. <div
  3190. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3191. :key="sIndex"
  3192. class="noWorksName"
  3193. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3194. >
  3195. {{ s.student }}
  3196. </div>
  3197. </div>
  3198. </div>
  3199. <div
  3200. v-if="
  3201. tType &&
  3202. ((tType == 2 && sIsOpen == true) ||
  3203. tType == 1 ||
  3204. tType == 4) &&
  3205. tool.tool.indexOf(45) != -1 &&
  3206. (tool.testJson.testJson[0].answer ||
  3207. tool.testJson.testJson[0].answer === 0) &&
  3208. checkJson[toolIndex].length
  3209. "
  3210. class="xuan_right_box"
  3211. >
  3212. <div
  3213. class="tool_right_box"
  3214. v-for="(item, index) in tool.testJson.testJson"
  3215. :key="index"
  3216. >
  3217. <div>
  3218. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  3219. </div>
  3220. <div class="right_box_xuan">
  3221. <span>正确率</span>
  3222. <span>{{
  3223. (checkJson[toolIndex][index].right
  3224. ? checkJson[toolIndex][index].right
  3225. : 0) + "%"
  3226. }}</span>
  3227. </div>
  3228. </div>
  3229. </div>
  3230. <div
  3231. class="xuan_right_box"
  3232. style="background: unset"
  3233. v-if="
  3234. tType &&
  3235. ((tType == 2 && sIsOpen == true) ||
  3236. tType == 1 ||
  3237. tType == 4) &&
  3238. tool.tool.indexOf(45) != -1
  3239. "
  3240. >
  3241. <AskStatic2
  3242. v-if="
  3243. worksStudent.length &&
  3244. worksStudent[toolIndex].length > 0
  3245. "
  3246. :askJSON="tool"
  3247. :checkJson="checkJson[toolIndex]"
  3248. ></AskStatic2>
  3249. </div>
  3250. <div
  3251. v-if="
  3252. tType &&
  3253. ((tType == 2 && sIsOpen == true) ||
  3254. tType == 1 ||
  3255. tType == 4) &&
  3256. tool.tool.indexOf(45) != -1
  3257. "
  3258. class="worksBox"
  3259. >
  3260. <div
  3261. class="zuoyeYulan"
  3262. v-if="
  3263. worksStudent.length &&
  3264. worksStudent[toolIndex].length > 0
  3265. "
  3266. >
  3267. <div class="worksTop">
  3268. <div>作业预览</div>
  3269. <div
  3270. class="corOpen"
  3271. @click="contract(toolIndex)"
  3272. v-if="
  3273. worksStudent[toolIndex].length > 6 &&
  3274. isCloseList[toolIndex].isClose == 0
  3275. "
  3276. >
  3277. 收缩
  3278. </div>
  3279. <div
  3280. class="corOpen"
  3281. @click="contract(toolIndex)"
  3282. v-if="isCloseList[toolIndex].isClose == 1"
  3283. >
  3284. 展开
  3285. </div>
  3286. </div>
  3287. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3288. </div>
  3289. <div>
  3290. <div
  3291. class="worksDetailBox"
  3292. v-if="
  3293. worksStudent.length &&
  3294. worksStudent[toolIndex].length > 0
  3295. "
  3296. >
  3297. <div
  3298. v-for="(w, wIndex) in isCloseList[toolIndex]
  3299. .isClose == 0
  3300. ? worksStudent[toolIndex]
  3301. : worksStudent[toolIndex].slice(0, 6)"
  3302. :key="wIndex"
  3303. class="isWorksName"
  3304. @click="
  3305. openTools(
  3306. 45,
  3307. toolIndex,
  3308. taskCount,
  3309. w.works,
  3310. w.sName
  3311. )
  3312. "
  3313. >
  3314. {{ w.sName }}
  3315. <img
  3316. class="deleteImg deleteImg2"
  3317. src="../assets/deleteworks.png"
  3318. v-if="
  3319. w.userid == userid || tType == 1 || tType == 4
  3320. "
  3321. @click.stop="deleteWorks(w.wid)"
  3322. alt
  3323. />
  3324. </div>
  3325. </div>
  3326. </div>
  3327. <div style="font-size: 18px">未提交</div>
  3328. <div class="noWorksS">
  3329. <div
  3330. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3331. :key="sIndex"
  3332. class="noWorksName"
  3333. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3334. >
  3335. {{ s.student }}
  3336. </div>
  3337. </div>
  3338. </div>
  3339. <div
  3340. v-if="
  3341. tType &&
  3342. ((tType == 2 && sIsOpen == true) ||
  3343. tType == 1 ||
  3344. tType == 4) &&
  3345. tool.tool.indexOf(15) != -1
  3346. "
  3347. class="worksBox"
  3348. >
  3349. <div
  3350. class="zuoyeYulan"
  3351. v-if="
  3352. worksStudent.length &&
  3353. worksStudent[toolIndex].length > 0
  3354. "
  3355. >
  3356. <div class="worksTop">
  3357. <div>作业预览</div>
  3358. <div
  3359. class="corOpen"
  3360. @click="contract(toolIndex)"
  3361. v-if="
  3362. worksStudent[toolIndex].length > 6 &&
  3363. isCloseList[toolIndex].isClose == 0
  3364. "
  3365. >
  3366. 收缩
  3367. </div>
  3368. <div
  3369. class="corOpen"
  3370. @click="contract(toolIndex)"
  3371. v-if="isCloseList[toolIndex].isClose == 1"
  3372. >
  3373. 展开
  3374. </div>
  3375. </div>
  3376. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3377. </div>
  3378. <div
  3379. class="group_workBox"
  3380. v-for="(g, gindex) in courseGroup.group"
  3381. :key="gindex"
  3382. >
  3383. <div class="group_box">
  3384. <div class="group_title">
  3385. <el-tooltip
  3386. class="item"
  3387. effect="light"
  3388. :content="g.name"
  3389. placement="top"
  3390. >
  3391. <div class="group_name">{{ g.name }}</div>
  3392. </el-tooltip>
  3393. </div>
  3394. <div
  3395. class="group_work"
  3396. v-if="
  3397. g.works &&
  3398. g.works.length &&
  3399. g.works[toolIndex].length
  3400. "
  3401. >
  3402. <div
  3403. class="works"
  3404. v-for="(w, wIndex) in g.works[toolIndex]"
  3405. :key="wIndex"
  3406. >
  3407. <div
  3408. class="workImg"
  3409. style="
  3410. border-radius: 15px;
  3411. box-shadow: #eee 0px 0px 5px 5px;
  3412. "
  3413. >
  3414. <div
  3415. class="answerBg"
  3416. style="border-radius: 15px 15px 0 0"
  3417. @click="commentOther(w, toolIndex, wIndex)"
  3418. >
  3419. <el-tooltip
  3420. class="item"
  3421. effect="light"
  3422. :content="JSON.parse(w.works)[0].answer"
  3423. placement="top"
  3424. >
  3425. <div class="answerContent">
  3426. {{ JSON.parse(w.works)[0].answer }}
  3427. </div>
  3428. </el-tooltip>
  3429. <div
  3430. class="answerScore"
  3431. v-if="w.score"
  3432. @click.stop="openScore(w)"
  3433. :class="{
  3434. rightW:
  3435. w.userid == userid ||
  3436. tType == 1 ||
  3437. tType == 4,
  3438. }"
  3439. >
  3440. {{ JSON.parse(w.score).wScore }}分
  3441. </div>
  3442. <div
  3443. class="answerScore"
  3444. @click.stop="openScore(w)"
  3445. v-else-if="courseDetail.userid == userid"
  3446. :class="{
  3447. rightW:
  3448. w.userid == userid ||
  3449. tType == 1 ||
  3450. tType == 4,
  3451. }"
  3452. >
  3453. 评分
  3454. </div>
  3455. <img
  3456. class="deleteImg"
  3457. src="../assets/deleteworks.png"
  3458. v-if="
  3459. w.userid == userid ||
  3460. tType == 1 ||
  3461. tType == 4
  3462. "
  3463. @click.stop="deleteWorks(w.wid)"
  3464. alt
  3465. />
  3466. </div>
  3467. <div class="comment">
  3468. <div class="worksName">
  3469. <div>{{ w.sName }}</div>
  3470. </div>
  3471. <div class="commentList">
  3472. <div
  3473. class="commentImg"
  3474. @click="
  3475. isLikes(w.wid, userid, 1, null, w.isLikes)
  3476. "
  3477. >
  3478. <img
  3479. :src="w.isLikes == true ? likes : noLikes"
  3480. alt=""
  3481. />
  3482. </div>
  3483. <div>{{ w.likesCount }}</div>
  3484. </div>
  3485. <div
  3486. class="commentList"
  3487. style="margin-right: 15px"
  3488. >
  3489. <div
  3490. class="commentImg"
  3491. @click="
  3492. commentOther(
  3493. w,
  3494. toolIndex,
  3495. wIndex,
  3496. null,
  3497. g.id
  3498. )
  3499. "
  3500. >
  3501. <img
  3502. src="../assets/icon/comment/comment.png"
  3503. alt=""
  3504. />
  3505. </div>
  3506. <div>{{ w.commentCount }}</div>
  3507. </div>
  3508. </div>
  3509. </div>
  3510. </div>
  3511. </div>
  3512. <div class="group_work" v-else>暂无提交作业</div>
  3513. </div>
  3514. </div>
  3515. <div
  3516. class="worksDetailBox"
  3517. v-if="
  3518. worksStudent.length &&
  3519. worksStudent[toolIndex].length > 0
  3520. "
  3521. >
  3522. <div
  3523. class="works"
  3524. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3525. 0
  3526. ? worksStudent[toolIndex]
  3527. : worksStudent[toolIndex].slice(0, 6)"
  3528. :key="wIndex"
  3529. >
  3530. <div
  3531. class="workImg"
  3532. style="
  3533. border-radius: 15px;
  3534. box-shadow: #eee 0px 0px 5px 5px;
  3535. "
  3536. >
  3537. <!-- <img
  3538. src="../assets/icon/works/noImg.png"
  3539. @click="openTools(15, toolIndex, taskCount, w.works)"
  3540. alt=""
  3541. />-->
  3542. <div
  3543. class="answerBg"
  3544. style="border-radius: 15px 15px 0 0"
  3545. @click="commentOther(w, toolIndex, wIndex)"
  3546. >
  3547. <!-- <div>{{ w.sName }}</div> -->
  3548. <el-tooltip
  3549. class="item"
  3550. effect="light"
  3551. :content="JSON.parse(w.works)[0].answer"
  3552. placement="top"
  3553. >
  3554. <div class="answerContent">
  3555. {{ JSON.parse(w.works)[0].answer }}
  3556. </div>
  3557. </el-tooltip>
  3558. <div
  3559. class="answerScore"
  3560. v-if="w.score"
  3561. @click.stop="openScore(w)"
  3562. :class="{
  3563. rightW:
  3564. w.userid == userid ||
  3565. tType == 1 ||
  3566. tType == 4,
  3567. }"
  3568. >
  3569. {{ JSON.parse(w.score).wScore }}分
  3570. </div>
  3571. <div
  3572. class="answerScore"
  3573. @click.stop="openScore(w)"
  3574. v-else-if="courseDetail.userid == userid"
  3575. :class="{
  3576. rightW:
  3577. w.userid == userid ||
  3578. tType == 1 ||
  3579. tType == 4,
  3580. }"
  3581. >
  3582. 评分
  3583. </div>
  3584. <img
  3585. class="deleteImg"
  3586. src="../assets/deleteworks.png"
  3587. v-if="
  3588. w.userid == userid || tType == 1 || tType == 4
  3589. "
  3590. @click.stop="deleteWorks(w.wid)"
  3591. alt
  3592. />
  3593. </div>
  3594. <div class="comment">
  3595. <div class="worksName">
  3596. <div>{{ w.sName }}</div>
  3597. </div>
  3598. <div class="commentList">
  3599. <div
  3600. class="commentImg"
  3601. @click="
  3602. isLikes(w.wid, userid, 1, null, w.isLikes)
  3603. "
  3604. >
  3605. <img
  3606. :src="w.isLikes == true ? likes : noLikes"
  3607. alt=""
  3608. />
  3609. </div>
  3610. <div>{{ w.likesCount }}</div>
  3611. </div>
  3612. <div class="commentList" style="margin-right: 15px">
  3613. <div
  3614. class="commentImg"
  3615. @click="commentOther(w, toolIndex, wIndex)"
  3616. >
  3617. <img
  3618. src="../assets/icon/comment/comment.png"
  3619. alt=""
  3620. />
  3621. </div>
  3622. <div>{{ w.commentCount }}</div>
  3623. </div>
  3624. </div>
  3625. </div>
  3626. </div>
  3627. </div>
  3628. <div style="font-size: 18px">未提交</div>
  3629. <div class="noWorksS">
  3630. <div
  3631. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3632. :key="sIndex"
  3633. class="noWorksName"
  3634. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  3635. >
  3636. {{ s.student }}
  3637. </div>
  3638. </div>
  3639. </div>
  3640. <div
  3641. v-if="
  3642. tType &&
  3643. ((tType == 2 && sIsOpen == true) ||
  3644. tType == 1 ||
  3645. tType == 4) &&
  3646. tool.tool.indexOf(1) != -1
  3647. "
  3648. class="worksBox"
  3649. >
  3650. <div
  3651. class="zuoyeYulan"
  3652. v-if="
  3653. worksStudent.length &&
  3654. worksStudent[toolIndex].length > 0
  3655. "
  3656. >
  3657. <div class="worksTop">
  3658. <div>作业预览</div>
  3659. <div
  3660. class="corOpen"
  3661. @click="contract(toolIndex)"
  3662. v-if="
  3663. worksStudent[toolIndex].length > 6 &&
  3664. isCloseList[toolIndex].isClose == 0
  3665. "
  3666. >
  3667. 收缩
  3668. </div>
  3669. <div
  3670. class="corOpen"
  3671. @click="contract(toolIndex)"
  3672. v-if="isCloseList[toolIndex].isClose == 1"
  3673. >
  3674. 展开
  3675. </div>
  3676. </div>
  3677. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3678. </div>
  3679. <div
  3680. class="group_workBox"
  3681. v-for="(g, gindex) in courseGroup.group"
  3682. :key="gindex"
  3683. >
  3684. <div class="group_box">
  3685. <div class="group_title">
  3686. <el-tooltip
  3687. class="item"
  3688. effect="light"
  3689. :content="g.name"
  3690. placement="top"
  3691. >
  3692. <div class="group_name">{{ g.name }}</div>
  3693. </el-tooltip>
  3694. </div>
  3695. <div
  3696. class="group_work"
  3697. v-if="
  3698. g.works &&
  3699. g.works.length &&
  3700. g.works[toolIndex].length
  3701. "
  3702. >
  3703. <div
  3704. class="works"
  3705. style="
  3706. width: 200px;
  3707. height: 140px;
  3708. margin: 10px 10px 10px 0;
  3709. border-radius: 15px;
  3710. box-shadow: 0 0 6px 1px #dfdada;
  3711. "
  3712. v-for="(w, wIndex) in g.works[toolIndex]"
  3713. :key="wIndex"
  3714. :class="w.type == 1 ? 'isTypeOne' : ''"
  3715. >
  3716. <div class="workImg">
  3717. <img
  3718. :src="w.works"
  3719. @click="previewImg(w.works)"
  3720. alt
  3721. />
  3722. <div
  3723. class="answerScore"
  3724. v-if="w.score"
  3725. @click.stop="openScore(w)"
  3726. :class="{
  3727. rightW:
  3728. w.userid == userid ||
  3729. tType == 1 ||
  3730. tType == 4,
  3731. }"
  3732. >
  3733. {{ JSON.parse(w.score).wScore }}分
  3734. </div>
  3735. <div
  3736. class="answerScore"
  3737. @click.stop="openScore(w)"
  3738. v-else-if="courseDetail.userid == userid"
  3739. :class="{
  3740. rightW:
  3741. w.userid == userid ||
  3742. tType == 1 ||
  3743. tType == 4,
  3744. }"
  3745. >
  3746. 评分
  3747. </div>
  3748. <img
  3749. class="deleteImg"
  3750. src="../assets/deleteworks.png"
  3751. v-if="
  3752. w.userid == userid || tType == 1 || tType == 4
  3753. "
  3754. @click.stop="deleteWorks(w.wid)"
  3755. alt
  3756. />
  3757. </div>
  3758. <div class="comment" style="min-width: 200px">
  3759. <div class="worksName">
  3760. <div>{{ w.sName }}</div>
  3761. </div>
  3762. <div class="commentList">
  3763. <div class="commentList">
  3764. <div
  3765. class="commentImg"
  3766. @click="
  3767. isLikes(w.wid, userid, 1, null, w.isLikes)
  3768. "
  3769. >
  3770. <img
  3771. :src="w.isLikes == true ? likes : noLikes"
  3772. alt=""
  3773. />
  3774. </div>
  3775. <div>{{ w.likesCount }}</div>
  3776. </div>
  3777. <div
  3778. class="commentList"
  3779. style="margin-right: 15px"
  3780. >
  3781. <div
  3782. class="commentImg"
  3783. @click="commentOther(w, toolIndex, wIndex)"
  3784. >
  3785. <img
  3786. src="../assets/icon/comment/comment.png"
  3787. alt=""
  3788. />
  3789. </div>
  3790. <div>{{ w.commentCount }}</div>
  3791. </div>
  3792. </div>
  3793. </div>
  3794. </div>
  3795. </div>
  3796. <div class="group_work" v-else>暂无提交作业</div>
  3797. </div>
  3798. </div>
  3799. <div
  3800. class="worksDetailBox"
  3801. v-if="
  3802. worksStudent.length &&
  3803. worksStudent[toolIndex].length > 0
  3804. "
  3805. >
  3806. <div
  3807. class="works"
  3808. style="
  3809. width: 200px;
  3810. height: 140px;
  3811. margin: 10px 10px 10px 0;
  3812. border-radius: 15px;
  3813. box-shadow: 0 0 6px 1px #dfdada;
  3814. "
  3815. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3816. 0
  3817. ? worksStudent[toolIndex]
  3818. : worksStudent[toolIndex].slice(0, 6)"
  3819. :key="wIndex"
  3820. >
  3821. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  3822. <div class="workImg">
  3823. <img
  3824. :src="w.works"
  3825. @click="previewImg(w.works)"
  3826. alt
  3827. />
  3828. <div
  3829. class="answerScore"
  3830. v-if="w.score"
  3831. @click.stop="openScore(w)"
  3832. :class="{
  3833. rightW:
  3834. w.userid == userid || tType == 1 || tType == 4,
  3835. }"
  3836. >
  3837. {{ JSON.parse(w.score).wScore }}分
  3838. </div>
  3839. <div
  3840. class="answerScore"
  3841. @click.stop="openScore(w)"
  3842. v-else-if="courseDetail.userid == userid"
  3843. :class="{
  3844. rightW:
  3845. w.userid == userid || tType == 1 || tType == 4,
  3846. }"
  3847. >
  3848. 评分
  3849. </div>
  3850. <img
  3851. class="deleteImg"
  3852. src="../assets/deleteworks.png"
  3853. v-if="
  3854. w.userid == userid || tType == 1 || tType == 4
  3855. "
  3856. @click.stop="deleteWorks(w.wid)"
  3857. alt
  3858. />
  3859. </div>
  3860. <div class="comment" style="min-width: 200px">
  3861. <div class="worksName">
  3862. <div>{{ w.sName }}</div>
  3863. </div>
  3864. <div class="commentList">
  3865. <div class="commentList">
  3866. <div
  3867. class="commentImg"
  3868. @click="
  3869. isLikes(w.wid, userid, 1, null, w.isLikes)
  3870. "
  3871. >
  3872. <img
  3873. :src="w.isLikes == true ? likes : noLikes"
  3874. alt=""
  3875. />
  3876. </div>
  3877. <div>{{ w.likesCount }}</div>
  3878. </div>
  3879. <div class="commentList" style="margin-right: 15px">
  3880. <div
  3881. class="commentImg"
  3882. @click="commentOther(w, toolIndex, wIndex)"
  3883. >
  3884. <img
  3885. src="../assets/icon/comment/comment.png"
  3886. alt=""
  3887. />
  3888. </div>
  3889. <div>{{ w.commentCount }}</div>
  3890. </div>
  3891. </div>
  3892. </div>
  3893. </div>
  3894. </div>
  3895. <div style="font-size: 18px">未提交</div>
  3896. <div class="noWorksS">
  3897. <div
  3898. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3899. :key="sIndex"
  3900. class="noWorksName"
  3901. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  3902. >
  3903. {{ s.student }}
  3904. </div>
  3905. </div>
  3906. </div>
  3907. <div
  3908. v-if="
  3909. tType &&
  3910. ((tType == 2 && sIsOpen == true) ||
  3911. tType == 1 ||
  3912. tType == 4) &&
  3913. tool.tool.indexOf(3) != -1
  3914. "
  3915. class="worksBox"
  3916. >
  3917. <div
  3918. class="zuoyeYulan"
  3919. v-if="
  3920. worksStudent.length &&
  3921. worksStudent[toolIndex].length > 0
  3922. "
  3923. >
  3924. <div class="worksTop">
  3925. <div>作业预览</div>
  3926. <div
  3927. class="corOpen"
  3928. @click="contract(toolIndex)"
  3929. v-if="
  3930. worksStudent[toolIndex].length > 6 &&
  3931. isCloseList[toolIndex].isClose == 0
  3932. "
  3933. >
  3934. 收缩
  3935. </div>
  3936. <div
  3937. class="corOpen"
  3938. @click="contract(toolIndex)"
  3939. v-if="isCloseList[toolIndex].isClose == 1"
  3940. >
  3941. 展开
  3942. </div>
  3943. </div>
  3944. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3945. </div>
  3946. <div
  3947. class="group_workBox"
  3948. v-for="(g, gindex) in courseGroup.group"
  3949. :key="gindex"
  3950. >
  3951. <div class="group_box">
  3952. <div class="group_title">
  3953. <el-tooltip
  3954. class="item"
  3955. effect="light"
  3956. :content="g.name"
  3957. placement="top"
  3958. >
  3959. <div class="group_name">{{ g.name }}</div>
  3960. </el-tooltip>
  3961. </div>
  3962. <div
  3963. class="group_work"
  3964. v-if="
  3965. g.works &&
  3966. g.works.length &&
  3967. g.works[toolIndex].length
  3968. "
  3969. >
  3970. <div
  3971. class="works"
  3972. style="
  3973. width: 200px;
  3974. height: 140px;
  3975. margin: 10px 10px 10px 0;
  3976. border-radius: 15px;
  3977. box-shadow: 0 0 6px 1px #dfdada;
  3978. "
  3979. v-for="(w, wIndex) in g.works[toolIndex]"
  3980. :key="wIndex"
  3981. :class="w.type == 1 ? 'isTypeOne' : ''"
  3982. >
  3983. <div class="workImg">
  3984. <img
  3985. :src="w.works"
  3986. @click="previewImg(w.works)"
  3987. alt
  3988. />
  3989. <div
  3990. class="answerScore"
  3991. v-if="w.score"
  3992. @click.stop="openScore(w)"
  3993. :class="{
  3994. rightW:
  3995. w.userid == userid ||
  3996. tType == 1 ||
  3997. tType == 4,
  3998. }"
  3999. >
  4000. {{ JSON.parse(w.score).wScore }}分
  4001. </div>
  4002. <div
  4003. class="answerScore"
  4004. @click.stop="openScore(w)"
  4005. v-else-if="courseDetail.userid == userid"
  4006. :class="{
  4007. rightW:
  4008. w.userid == userid ||
  4009. tType == 1 ||
  4010. tType == 4,
  4011. }"
  4012. >
  4013. 评分
  4014. </div>
  4015. <img
  4016. class="deleteImg"
  4017. src="../assets/deleteworks.png"
  4018. v-if="
  4019. w.userid == userid || tType == 1 || tType == 4
  4020. "
  4021. @click.stop="deleteWorks(w.wid)"
  4022. alt
  4023. />
  4024. </div>
  4025. <div class="comment" style="min-width: 200px">
  4026. <div class="worksName">
  4027. <div>{{ w.sName }}</div>
  4028. </div>
  4029. <div class="commentList">
  4030. <div class="commentList">
  4031. <div
  4032. class="commentImg"
  4033. @click="
  4034. isLikes(w.wid, userid, 1, null, w.isLikes)
  4035. "
  4036. >
  4037. <img
  4038. :src="w.isLikes == true ? likes : noLikes"
  4039. alt=""
  4040. />
  4041. </div>
  4042. <div>{{ w.likesCount }}</div>
  4043. </div>
  4044. <div
  4045. class="commentList"
  4046. style="margin-right: 15px"
  4047. >
  4048. <div
  4049. class="commentImg"
  4050. @click="commentOther(w, toolIndex, wIndex)"
  4051. >
  4052. <img
  4053. src="../assets/icon/comment/comment.png"
  4054. alt=""
  4055. />
  4056. </div>
  4057. <div>{{ w.commentCount }}</div>
  4058. </div>
  4059. </div>
  4060. </div>
  4061. </div>
  4062. </div>
  4063. <div class="group_work" v-else>暂无提交作业</div>
  4064. </div>
  4065. </div>
  4066. <div
  4067. class="worksDetailBox"
  4068. v-if="
  4069. worksStudent.length &&
  4070. worksStudent[toolIndex].length > 0
  4071. "
  4072. >
  4073. <div
  4074. class="works"
  4075. style="
  4076. width: 200px;
  4077. height: 140px;
  4078. margin: 10px 10px 10px 0;
  4079. border-radius: 15px;
  4080. box-shadow: 0 0 6px 1px #dfdada;
  4081. "
  4082. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4083. 0
  4084. ? worksStudent[toolIndex]
  4085. : worksStudent[toolIndex].slice(0, 6)"
  4086. :key="wIndex"
  4087. >
  4088. <!-- @click="previewImg(w.works)" -->
  4089. <div class="workImg">
  4090. <img
  4091. :src="w.works"
  4092. @click="previewImg(w.works)"
  4093. alt
  4094. />
  4095. <div
  4096. class="answerScore"
  4097. v-if="w.score"
  4098. @click.stop="openScore(w)"
  4099. :class="{
  4100. rightW:
  4101. w.userid == userid || tType == 1 || tType == 4,
  4102. }"
  4103. >
  4104. {{ JSON.parse(w.score).wScore }}分
  4105. </div>
  4106. <div
  4107. class="answerScore"
  4108. @click.stop="openScore(w)"
  4109. v-else-if="courseDetail.userid == userid"
  4110. :class="{
  4111. rightW:
  4112. w.userid == userid || tType == 1 || tType == 4,
  4113. }"
  4114. >
  4115. 评分
  4116. </div>
  4117. <img
  4118. class="deleteImg"
  4119. src="../assets/deleteworks.png"
  4120. v-if="
  4121. w.userid == userid || tType == 1 || tType == 4
  4122. "
  4123. @click.stop="deleteWorks(w.wid)"
  4124. alt
  4125. />
  4126. </div>
  4127. <div class="comment" style="min-width: 200px">
  4128. <div class="worksName">
  4129. <div>{{ w.sName }}</div>
  4130. </div>
  4131. <div class="commentList">
  4132. <div class="commentList">
  4133. <div
  4134. class="commentImg"
  4135. @click="
  4136. isLikes(w.wid, userid, 1, null, w.isLikes)
  4137. "
  4138. >
  4139. <img
  4140. :src="w.isLikes == true ? likes : noLikes"
  4141. alt=""
  4142. />
  4143. </div>
  4144. <div>{{ w.likesCount }}</div>
  4145. </div>
  4146. <div class="commentList" style="margin-right: 15px">
  4147. <div
  4148. class="commentImg"
  4149. @click="commentOther(w, toolIndex, wIndex)"
  4150. >
  4151. <img
  4152. src="../assets/icon/comment/comment.png"
  4153. alt=""
  4154. />
  4155. </div>
  4156. <div>{{ w.commentCount }}</div>
  4157. </div>
  4158. </div>
  4159. </div>
  4160. </div>
  4161. </div>
  4162. <div style="font-size: 18px">未提交</div>
  4163. <div class="noWorksS">
  4164. <div
  4165. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4166. :key="sIndex"
  4167. class="noWorksName"
  4168. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4169. >
  4170. {{ s.student }}
  4171. </div>
  4172. </div>
  4173. </div>
  4174. <div
  4175. v-if="
  4176. tType &&
  4177. ((tType == 2 && sIsOpen == true) ||
  4178. tType == 1 ||
  4179. tType == 4) &&
  4180. tool.tool.indexOf(6) != -1
  4181. "
  4182. class="worksBox"
  4183. >
  4184. <div
  4185. class="zuoyeYulan"
  4186. v-if="
  4187. worksStudent.length &&
  4188. worksStudent[toolIndex].length > 0
  4189. "
  4190. >
  4191. <div class="worksTop">
  4192. <div>作业预览</div>
  4193. <div
  4194. class="corOpen"
  4195. @click="contract(toolIndex)"
  4196. v-if="
  4197. worksStudent[toolIndex].length > 6 &&
  4198. isCloseList[toolIndex].isClose == 0
  4199. "
  4200. >
  4201. 收缩
  4202. </div>
  4203. <div
  4204. class="corOpen"
  4205. @click="contract(toolIndex)"
  4206. v-if="isCloseList[toolIndex].isClose == 1"
  4207. >
  4208. 展开
  4209. </div>
  4210. </div>
  4211. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4212. </div>
  4213. <div
  4214. class="group_workBox"
  4215. v-for="(g, gindex) in courseGroup.group"
  4216. :key="gindex"
  4217. >
  4218. <div class="group_box">
  4219. <div class="group_title">
  4220. <el-tooltip
  4221. class="item"
  4222. effect="light"
  4223. :content="g.name"
  4224. placement="top"
  4225. >
  4226. <div class="group_name">{{ g.name }}</div>
  4227. </el-tooltip>
  4228. </div>
  4229. <div
  4230. class="group_work"
  4231. v-if="
  4232. g.works &&
  4233. g.works.length &&
  4234. g.works[toolIndex].length
  4235. "
  4236. >
  4237. <div
  4238. class="works"
  4239. style="
  4240. width: 200px;
  4241. height: 140px;
  4242. margin: 10px 10px 10px 0;
  4243. border-radius: 15px;
  4244. box-shadow: 0 0 6px 1px #dfdada;
  4245. "
  4246. v-for="(w, wIndex) in g.works[toolIndex]"
  4247. :key="wIndex"
  4248. :class="w.type == 1 ? 'isTypeOne' : ''"
  4249. >
  4250. <div class="workImg">
  4251. <img
  4252. :src="w.works"
  4253. @click="previewImg(w.works)"
  4254. alt
  4255. />
  4256. <div
  4257. class="answerScore"
  4258. v-if="w.score"
  4259. @click.stop="openScore(w)"
  4260. :class="{
  4261. rightW:
  4262. w.userid == userid ||
  4263. tType == 1 ||
  4264. tType == 4,
  4265. }"
  4266. >
  4267. {{ JSON.parse(w.score).wScore }}分
  4268. </div>
  4269. <div
  4270. class="answerScore"
  4271. @click.stop="openScore(w)"
  4272. v-else-if="courseDetail.userid == userid"
  4273. :class="{
  4274. rightW:
  4275. w.userid == userid ||
  4276. tType == 1 ||
  4277. tType == 4,
  4278. }"
  4279. >
  4280. 评分
  4281. </div>
  4282. <img
  4283. class="deleteImg"
  4284. src="../assets/deleteworks.png"
  4285. v-if="
  4286. w.userid == userid || tType == 1 || tType == 4
  4287. "
  4288. @click.stop="deleteWorks(w.wid)"
  4289. alt
  4290. />
  4291. </div>
  4292. <div class="comment" style="min-width: 200px">
  4293. <div class="worksName">
  4294. <div>{{ w.sName }}</div>
  4295. </div>
  4296. <div class="commentList">
  4297. <div class="commentList">
  4298. <div
  4299. class="commentImg"
  4300. @click="
  4301. isLikes(w.wid, userid, 1, null, w.isLikes)
  4302. "
  4303. >
  4304. <img
  4305. :src="w.isLikes == true ? likes : noLikes"
  4306. alt=""
  4307. />
  4308. </div>
  4309. <div>{{ w.likesCount }}</div>
  4310. </div>
  4311. <div
  4312. class="commentList"
  4313. style="margin-right: 15px"
  4314. >
  4315. <div
  4316. class="commentImg"
  4317. @click="commentOther(w, toolIndex, wIndex)"
  4318. >
  4319. <img
  4320. src="../assets/icon/comment/comment.png"
  4321. alt=""
  4322. />
  4323. </div>
  4324. <div>{{ w.commentCount }}</div>
  4325. </div>
  4326. </div>
  4327. </div>
  4328. </div>
  4329. </div>
  4330. <div class="group_work" v-else>暂无提交作业</div>
  4331. </div>
  4332. </div>
  4333. <div
  4334. class="worksDetailBox"
  4335. v-if="
  4336. worksStudent.length &&
  4337. worksStudent[toolIndex].length > 0
  4338. "
  4339. >
  4340. <div
  4341. class="works"
  4342. style="
  4343. width: 200px;
  4344. height: 140px;
  4345. margin: 10px 10px 10px 0;
  4346. border-radius: 15px;
  4347. box-shadow: 0 0 6px 1px #dfdada;
  4348. "
  4349. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4350. 0
  4351. ? worksStudent[toolIndex]
  4352. : worksStudent[toolIndex].slice(0, 6)"
  4353. :key="wIndex"
  4354. >
  4355. <!-- @click="previewImg(w.works)" -->
  4356. <div class="workImg">
  4357. <img
  4358. :src="w.works"
  4359. @click="previewImg(w.works)"
  4360. alt
  4361. />
  4362. <div
  4363. class="answerScore"
  4364. v-if="w.score"
  4365. @click.stop="openScore(w)"
  4366. :class="{
  4367. rightW:
  4368. w.userid == userid || tType == 1 || tType == 4,
  4369. }"
  4370. >
  4371. {{ JSON.parse(w.score).wScore }}分
  4372. </div>
  4373. <div
  4374. class="answerScore"
  4375. @click.stop="openScore(w)"
  4376. v-else-if="courseDetail.userid == userid"
  4377. :class="{
  4378. rightW:
  4379. w.userid == userid || tType == 1 || tType == 4,
  4380. }"
  4381. >
  4382. 评分
  4383. </div>
  4384. <img
  4385. class="deleteImg"
  4386. src="../assets/deleteworks.png"
  4387. v-if="
  4388. w.userid == userid || tType == 1 || tType == 4
  4389. "
  4390. @click.stop="deleteWorks(w.wid)"
  4391. alt
  4392. />
  4393. </div>
  4394. <div class="comment" style="min-width: 200px">
  4395. <div class="worksName">
  4396. <div>{{ w.sName }}</div>
  4397. </div>
  4398. <div class="commentList">
  4399. <div class="commentList">
  4400. <div
  4401. class="commentImg"
  4402. @click="
  4403. isLikes(w.wid, userid, 1, null, w.isLikes)
  4404. "
  4405. >
  4406. <img
  4407. :src="w.isLikes == true ? likes : noLikes"
  4408. alt=""
  4409. />
  4410. </div>
  4411. <div>{{ w.likesCount }}</div>
  4412. </div>
  4413. <div class="commentList" style="margin-right: 15px">
  4414. <div
  4415. class="commentImg"
  4416. @click="commentOther(w, toolIndex, wIndex)"
  4417. >
  4418. <img
  4419. src="../assets/icon/comment/comment.png"
  4420. alt=""
  4421. />
  4422. </div>
  4423. <div>{{ w.commentCount }}</div>
  4424. </div>
  4425. </div>
  4426. </div>
  4427. </div>
  4428. </div>
  4429. <div style="font-size: 18px">未提交</div>
  4430. <div class="noWorksS">
  4431. <div
  4432. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4433. :key="sIndex"
  4434. class="noWorksName"
  4435. >
  4436. {{ s.student }}
  4437. </div>
  4438. </div>
  4439. </div>
  4440. <div
  4441. v-if="
  4442. tType &&
  4443. ((tType == 2 && sIsOpen == true) ||
  4444. tType == 1 ||
  4445. tType == 4) &&
  4446. tool.tool.indexOf(7) != -1
  4447. "
  4448. class="worksBox"
  4449. >
  4450. <div
  4451. class="zuoyeYulan"
  4452. v-if="
  4453. worksStudent.length &&
  4454. worksStudent[toolIndex].length > 0
  4455. "
  4456. >
  4457. <div class="worksTop">
  4458. <div>作业预览</div>
  4459. <div
  4460. class="corOpen"
  4461. @click="contract(toolIndex)"
  4462. v-if="
  4463. worksStudent[toolIndex].length > 6 &&
  4464. isCloseList[toolIndex].isClose == 0
  4465. "
  4466. >
  4467. 收缩
  4468. </div>
  4469. <div
  4470. class="corOpen"
  4471. @click="contract(toolIndex)"
  4472. v-if="isCloseList[toolIndex].isClose == 1"
  4473. >
  4474. 展开
  4475. </div>
  4476. </div>
  4477. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4478. </div>
  4479. <div
  4480. class="group_workBox"
  4481. v-for="(g, gindex) in courseGroup.group"
  4482. :key="gindex"
  4483. >
  4484. <div class="group_box">
  4485. <div class="group_title">
  4486. <el-tooltip
  4487. class="item"
  4488. effect="light"
  4489. :content="g.name"
  4490. placement="top"
  4491. >
  4492. <div class="group_name">{{ g.name }}</div>
  4493. </el-tooltip>
  4494. </div>
  4495. <div
  4496. class="group_work"
  4497. v-if="
  4498. g.works &&
  4499. g.works.length &&
  4500. g.works[toolIndex].length
  4501. "
  4502. >
  4503. <div
  4504. class="works"
  4505. style="
  4506. width: 200px;
  4507. height: 140px;
  4508. margin: 10px 10px 10px 0;
  4509. border-radius: 15px;
  4510. box-shadow: 0 0 6px 1px #dfdada;
  4511. "
  4512. v-for="(w, wIndex) in g.works[toolIndex]"
  4513. :key="wIndex"
  4514. :class="w.type == 1 ? 'isTypeOne' : ''"
  4515. >
  4516. <div class="workImg">
  4517. <img
  4518. :src="w.works"
  4519. @click="previewImg(w.works)"
  4520. alt
  4521. />
  4522. <div
  4523. class="answerScore"
  4524. v-if="w.score"
  4525. @click.stop="openScore(w)"
  4526. :class="{
  4527. rightW:
  4528. w.userid == userid ||
  4529. tType == 1 ||
  4530. tType == 4,
  4531. }"
  4532. >
  4533. {{ JSON.parse(w.score).wScore }}分
  4534. </div>
  4535. <div
  4536. class="answerScore"
  4537. @click.stop="openScore(w)"
  4538. v-else-if="courseDetail.userid == userid"
  4539. :class="{
  4540. rightW:
  4541. w.userid == userid ||
  4542. tType == 1 ||
  4543. tType == 4,
  4544. }"
  4545. >
  4546. 评分
  4547. </div>
  4548. <img
  4549. class="deleteImg"
  4550. src="../assets/deleteworks.png"
  4551. v-if="
  4552. w.userid == userid || tType == 1 || tType == 4
  4553. "
  4554. @click.stop="deleteWorks(w.wid)"
  4555. alt
  4556. />
  4557. </div>
  4558. <div class="comment" style="min-width: 200px">
  4559. <div class="worksName">
  4560. <div>{{ w.sName }}</div>
  4561. </div>
  4562. <div class="commentList">
  4563. <div class="commentList">
  4564. <div
  4565. class="commentImg"
  4566. @click="
  4567. isLikes(w.wid, userid, 1, null, w.isLikes)
  4568. "
  4569. >
  4570. <img
  4571. :src="w.isLikes == true ? likes : noLikes"
  4572. alt=""
  4573. />
  4574. </div>
  4575. <div>{{ w.likesCount }}</div>
  4576. </div>
  4577. <div
  4578. class="commentList"
  4579. style="margin-right: 15px"
  4580. >
  4581. <div
  4582. class="commentImg"
  4583. @click="commentOther(w, toolIndex, wIndex)"
  4584. >
  4585. <img
  4586. src="../assets/icon/comment/comment.png"
  4587. alt=""
  4588. />
  4589. </div>
  4590. <div>{{ w.commentCount }}</div>
  4591. </div>
  4592. </div>
  4593. </div>
  4594. </div>
  4595. </div>
  4596. <div class="group_work" v-else>暂无提交作业</div>
  4597. </div>
  4598. </div>
  4599. <div
  4600. class="worksDetailBox"
  4601. v-if="
  4602. worksStudent.length &&
  4603. worksStudent[toolIndex].length > 0
  4604. "
  4605. >
  4606. <div
  4607. class="works"
  4608. style="
  4609. width: 200px;
  4610. height: 140px;
  4611. margin: 10px 10px 10px 0;
  4612. border-radius: 15px;
  4613. box-shadow: 0 0 6px 1px #dfdada;
  4614. "
  4615. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4616. 0
  4617. ? worksStudent[toolIndex]
  4618. : worksStudent[toolIndex].slice(0, 6)"
  4619. :key="wIndex"
  4620. >
  4621. <!-- @click="previewImg(w.works)" -->
  4622. <div class="workImg">
  4623. <img
  4624. :src="w.works"
  4625. @click="previewImg(w.works)"
  4626. alt
  4627. />
  4628. <div
  4629. class="answerScore"
  4630. v-if="w.score"
  4631. @click.stop="openScore(w)"
  4632. :class="{
  4633. rightW:
  4634. w.userid == userid || tType == 1 || tType == 4,
  4635. }"
  4636. >
  4637. {{ JSON.parse(w.score).wScore }}分
  4638. </div>
  4639. <div
  4640. class="answerScore"
  4641. @click.stop="openScore(w)"
  4642. v-else-if="courseDetail.userid == userid"
  4643. :class="{
  4644. rightW:
  4645. w.userid == userid || tType == 1 || tType == 4,
  4646. }"
  4647. >
  4648. 评分
  4649. </div>
  4650. <img
  4651. class="deleteImg"
  4652. src="../assets/deleteworks.png"
  4653. v-if="
  4654. w.userid == userid || tType == 1 || tType == 4
  4655. "
  4656. @click.stop="deleteWorks(w.wid)"
  4657. alt
  4658. />
  4659. </div>
  4660. <div class="comment" style="min-width: 200px">
  4661. <div class="worksName">
  4662. <div>{{ w.sName }}</div>
  4663. </div>
  4664. <div class="commentList">
  4665. <div class="commentList">
  4666. <div
  4667. class="commentImg"
  4668. @click="
  4669. isLikes(w.wid, userid, 1, null, w.isLikes)
  4670. "
  4671. >
  4672. <img
  4673. :src="w.isLikes == true ? likes : noLikes"
  4674. alt=""
  4675. />
  4676. </div>
  4677. <div>{{ w.likesCount }}</div>
  4678. </div>
  4679. <div class="commentList" style="margin-right: 15px">
  4680. <div
  4681. class="commentImg"
  4682. @click="commentOther(w, toolIndex, wIndex)"
  4683. >
  4684. <img
  4685. src="../assets/icon/comment/comment.png"
  4686. alt=""
  4687. />
  4688. </div>
  4689. <div>{{ w.commentCount }}</div>
  4690. </div>
  4691. </div>
  4692. </div>
  4693. </div>
  4694. </div>
  4695. <div style="font-size: 18px">未提交</div>
  4696. <div class="noWorksS">
  4697. <div
  4698. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4699. :key="sIndex"
  4700. class="noWorksName"
  4701. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  4702. >
  4703. {{ s.student }}
  4704. </div>
  4705. </div>
  4706. </div>
  4707. <div
  4708. v-if="
  4709. tType &&
  4710. ((tType == 2 && sIsOpen == true) ||
  4711. tType == 1 ||
  4712. tType == 4) &&
  4713. tool.tool.indexOf(26) != -1
  4714. "
  4715. class="worksBox"
  4716. >
  4717. <div
  4718. class="zuoyeYulan"
  4719. v-if="
  4720. worksStudent.length &&
  4721. worksStudent[toolIndex].length > 0
  4722. "
  4723. >
  4724. <div class="worksTop">
  4725. <div>作业预览</div>
  4726. <div
  4727. class="corOpen"
  4728. @click="contract(toolIndex)"
  4729. v-if="
  4730. worksStudent[toolIndex].length > 6 &&
  4731. isCloseList[toolIndex].isClose == 0
  4732. "
  4733. >
  4734. 收缩
  4735. </div>
  4736. <div
  4737. class="corOpen"
  4738. @click="contract(toolIndex)"
  4739. v-if="isCloseList[toolIndex].isClose == 1"
  4740. >
  4741. 展开
  4742. </div>
  4743. </div>
  4744. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4745. </div>
  4746. <div
  4747. class="worksDetailBox"
  4748. v-if="
  4749. worksStudent.length &&
  4750. worksStudent[toolIndex].length > 0
  4751. "
  4752. >
  4753. <div
  4754. class="works"
  4755. style="width: 240px; height: 140px; overflow: hidden"
  4756. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4757. 0
  4758. ? worksStudent[toolIndex]
  4759. : worksStudent[toolIndex].slice(0, 6)"
  4760. :key="wIndex"
  4761. :class="w.type == 1 ? 'isTypeOne' : ''"
  4762. >
  4763. <div class="workImg" v-if="w.type == 0">
  4764. <img
  4765. :src="w.works"
  4766. @click="previewImg(w.works)"
  4767. alt
  4768. />
  4769. <img
  4770. class="deleteImg"
  4771. src="../assets/deleteworks.png"
  4772. v-if="
  4773. w.userid == userid || tType == 1 || tType == 4
  4774. "
  4775. @click.stop="deleteWorks(w.wid)"
  4776. alt
  4777. />
  4778. </div>
  4779. <div class="workImg" v-if="w.type == 1">
  4780. <img :src="word" @click="openFile(w.works)" alt />
  4781. <img
  4782. class="deleteImg"
  4783. src="../assets/deleteworks.png"
  4784. v-if="
  4785. w.userid == userid || tType == 1 || tType == 4
  4786. "
  4787. @click.stop="deleteWorks(w.wid)"
  4788. alt
  4789. />
  4790. </div>
  4791. <div class="worksName">
  4792. <div>{{ w.sName }}</div>
  4793. </div>
  4794. </div>
  4795. </div>
  4796. <div style="font-size: 18px">未提交</div>
  4797. <div class="noWorksS">
  4798. <div
  4799. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4800. :key="sIndex"
  4801. class="noWorksName"
  4802. >
  4803. {{ s.student }}
  4804. </div>
  4805. </div>
  4806. </div>
  4807. <div
  4808. v-if="
  4809. tType &&
  4810. ((tType == 2 && sIsOpen == true) ||
  4811. tType == 1 ||
  4812. tType == 4) &&
  4813. tool.tool.indexOf(40) != -1
  4814. "
  4815. class="worksBox"
  4816. >
  4817. <div
  4818. class="zuoyeYulan"
  4819. v-if="
  4820. worksStudent.length &&
  4821. worksStudent[toolIndex].length > 0
  4822. "
  4823. >
  4824. <div class="worksTop">
  4825. <div>作业预览</div>
  4826. <div
  4827. class="corOpen"
  4828. @click="contract(toolIndex)"
  4829. v-if="
  4830. worksStudent[toolIndex].length > 6 &&
  4831. isCloseList[toolIndex].isClose == 0
  4832. "
  4833. >
  4834. 收缩
  4835. </div>
  4836. <div
  4837. class="corOpen"
  4838. @click="contract(toolIndex)"
  4839. v-if="isCloseList[toolIndex].isClose == 1"
  4840. >
  4841. 展开
  4842. </div>
  4843. </div>
  4844. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4845. </div>
  4846. <div
  4847. class="worksDetailBox"
  4848. v-if="
  4849. worksStudent.length &&
  4850. worksStudent[toolIndex].length > 0
  4851. "
  4852. >
  4853. <div
  4854. class="works"
  4855. style="
  4856. width: 200px;
  4857. height: 140px;
  4858. margin: 10px 10px 10px 0;
  4859. border-radius: 15px;
  4860. box-shadow: 0 0 6px 1px #dfdada;
  4861. "
  4862. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4863. 0
  4864. ? worksStudent[toolIndex]
  4865. : worksStudent[toolIndex].slice(0, 6)"
  4866. :key="wIndex"
  4867. :class="w.type == 1 ? 'isTypeOne' : ''"
  4868. >
  4869. <div class="workImg">
  4870. <img
  4871. src="../assets/icon/works/noImg.png"
  4872. @click="openPj(w.works, toolIndex)"
  4873. alt
  4874. />
  4875. <img
  4876. class="deleteImg"
  4877. src="../assets/deleteworks.png"
  4878. v-if="
  4879. w.userid == userid || tType == 1 || tType == 4
  4880. "
  4881. @click.stop="deleteWorks(w.wid)"
  4882. alt
  4883. />
  4884. </div>
  4885. <div class="comment" style="min-width: 200px">
  4886. <div class="worksName">
  4887. <div>{{ w.sName }}</div>
  4888. </div>
  4889. <div class="commentList">
  4890. <div class="commentList">
  4891. <div
  4892. class="commentImg"
  4893. @click="
  4894. isLikes(w.wid, userid, 1, null, w.isLikes)
  4895. "
  4896. >
  4897. <img
  4898. :src="w.isLikes == true ? likes : noLikes"
  4899. alt=""
  4900. />
  4901. </div>
  4902. <div>{{ w.likesCount }}</div>
  4903. </div>
  4904. <div class="commentList" style="margin-right: 15px">
  4905. <div
  4906. class="commentImg"
  4907. @click="commentOther(w, toolIndex, wIndex)"
  4908. >
  4909. <img
  4910. src="../assets/icon/comment/comment.png"
  4911. alt=""
  4912. />
  4913. </div>
  4914. <div>{{ w.commentCount }}</div>
  4915. </div>
  4916. </div>
  4917. </div>
  4918. </div>
  4919. </div>
  4920. <div style="font-size: 18px">未提交</div>
  4921. <div class="noWorksS">
  4922. <div
  4923. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4924. :key="sIndex"
  4925. class="noWorksName"
  4926. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  4927. >
  4928. {{ s.student }}
  4929. </div>
  4930. </div>
  4931. </div>
  4932. <div
  4933. v-if="
  4934. tType &&
  4935. tType == 2 &&
  4936. !sIsOpen &&
  4937. tool.tool.indexOf(40) != -1
  4938. "
  4939. class="worksBox"
  4940. >
  4941. <div
  4942. class="zuoyeYulan"
  4943. v-if="workStudent[toolIndex].length > 0"
  4944. >
  4945. <span>作业预览</span>
  4946. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4947. </div>
  4948. <div
  4949. class="worksDetailBox"
  4950. v-if="workStudent[toolIndex].length > 0"
  4951. >
  4952. <div
  4953. class="works"
  4954. style="
  4955. width: 200px;
  4956. height: 140px;
  4957. margin: 10px 10px 10px 0;
  4958. "
  4959. v-for="(w, wIndex) in workStudent[toolIndex]"
  4960. :key="wIndex"
  4961. >
  4962. <div class="workImg">
  4963. <img
  4964. src="../assets/icon/works/noImg.png"
  4965. @click="openPj(w.works, toolIndex)"
  4966. alt
  4967. />
  4968. <img
  4969. class="deleteImg"
  4970. src="../assets/deleteworks.png"
  4971. v-if="
  4972. w.userid == userid || tType == 1 || tType == 4
  4973. "
  4974. @click.stop="deleteWorks(w.wid)"
  4975. alt
  4976. />
  4977. </div>
  4978. <div class="worksName">
  4979. <div>{{ w.sName }}</div>
  4980. </div>
  4981. </div>
  4982. </div>
  4983. </div>
  4984. <div
  4985. v-if="
  4986. tType &&
  4987. ((tType == 2 && sIsOpen == true) ||
  4988. tType == 1 ||
  4989. tType == 4) &&
  4990. tool.tool.indexOf(41) != -1
  4991. "
  4992. >
  4993. <AnswerData2
  4994. v-if="
  4995. worksStudent.length &&
  4996. worksStudent[toolIndex].length > 0
  4997. "
  4998. :problemJson="tool.selectJson.answer"
  4999. :people="worksStudent[toolIndex]"
  5000. ></AnswerData2>
  5001. </div>
  5002. <div
  5003. v-if="
  5004. tType &&
  5005. ((tType == 2 && sIsOpen == true) ||
  5006. tType == 1 ||
  5007. tType == 4) &&
  5008. tool.tool.indexOf(41) != -1
  5009. "
  5010. class="worksBox"
  5011. >
  5012. <div
  5013. class="zuoyeYulan"
  5014. v-if="
  5015. worksStudent.length &&
  5016. worksStudent[toolIndex].length > 0
  5017. "
  5018. >
  5019. <div class="worksTop">
  5020. <div>作业预览</div>
  5021. <div
  5022. class="corOpen"
  5023. @click="contract(toolIndex)"
  5024. v-if="
  5025. worksStudent[toolIndex].length > 6 &&
  5026. isCloseList[toolIndex].isClose == 0
  5027. "
  5028. >
  5029. 收缩
  5030. </div>
  5031. <div
  5032. class="corOpen"
  5033. @click="contract(toolIndex)"
  5034. v-if="isCloseList[toolIndex].isClose == 1"
  5035. >
  5036. 展开
  5037. </div>
  5038. </div>
  5039. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5040. </div>
  5041. <div
  5042. class="worksDetailBox"
  5043. v-if="
  5044. worksStudent.length &&
  5045. worksStudent[toolIndex].length > 0
  5046. "
  5047. >
  5048. <div
  5049. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5050. 0
  5051. ? worksStudent[toolIndex]
  5052. : worksStudent[toolIndex].slice(0, 6)"
  5053. :key="wIndex"
  5054. class="isWorksName"
  5055. @click="openXz(w, toolIndex)"
  5056. >
  5057. {{ w.sName }}
  5058. <img
  5059. class="deleteImg deleteImg2"
  5060. src="../assets/deleteworks.png"
  5061. v-if="w.userid == userid || tType == 1 || tType == 4"
  5062. @click.stop="deleteWorks(w.wid)"
  5063. alt
  5064. />
  5065. </div>
  5066. <!-- <div
  5067. class="works"
  5068. style="
  5069. width: 200px;
  5070. height: 140px;
  5071. margin: 10px 10px 10px 0;
  5072. border-radius: 15px;
  5073. box-shadow: 0 0 6px 1px #dfdada;
  5074. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5075. :class="w.type == 5 ? 'isTypeOne' : ''">
  5076. <div class="workImg">
  5077. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5078. </div>
  5079. <div class="worksName">
  5080. <div>{{ w.sName }}</div>
  5081. </div>
  5082. </div> -->
  5083. </div>
  5084. <div style="font-size: 18px">未提交</div>
  5085. <div class="noWorksS">
  5086. <div
  5087. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5088. :key="sIndex"
  5089. class="noWorksName"
  5090. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5091. >
  5092. {{ s.student }}
  5093. </div>
  5094. </div>
  5095. </div>
  5096. <div
  5097. v-if="
  5098. tType &&
  5099. tType == 2 &&
  5100. !sIsOpen &&
  5101. tool.tool.indexOf(41) != -1
  5102. "
  5103. class="worksBox"
  5104. >
  5105. <div
  5106. class="zuoyeYulan"
  5107. v-if="workStudent[toolIndex].length > 0"
  5108. >
  5109. <span>作业预览</span>
  5110. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5111. </div>
  5112. <div
  5113. class="worksDetailBox"
  5114. v-if="workStudent[toolIndex].length > 0"
  5115. >
  5116. <div
  5117. class="works"
  5118. style="
  5119. width: 200px;
  5120. height: 140px;
  5121. margin: 10px 10px 10px 0;
  5122. "
  5123. v-for="(w, wIndex) in workStudent[toolIndex]"
  5124. :key="wIndex"
  5125. >
  5126. <div class="workImg">
  5127. <img
  5128. src="../assets/icon/works/noImg.png"
  5129. @click="openXz(w, toolIndex)"
  5130. alt
  5131. />
  5132. <img
  5133. class="deleteImg"
  5134. src="../assets/deleteworks.png"
  5135. v-if="
  5136. w.userid == userid || tType == 1 || tType == 4
  5137. "
  5138. @click.stop="deleteWorks(w.wid)"
  5139. alt
  5140. />
  5141. </div>
  5142. <div class="worksName">
  5143. <div>{{ w.sName }}</div>
  5144. </div>
  5145. </div>
  5146. </div>
  5147. </div>
  5148. <div v-if="false" class="xuan_right_box">
  5149. <div
  5150. class="tool_right_box"
  5151. v-for="(item, index) in tool.sentenceList"
  5152. :key="index"
  5153. >
  5154. <div>
  5155. <span>{{ index + 1 + "、" + item.sentenceTitle }}</span>
  5156. </div>
  5157. <div class="right_box_xuan">
  5158. <span>正确率</span>
  5159. <span>{{
  5160. (checkJson[toolIndex][index].right
  5161. ? checkJson[toolIndex][index].right
  5162. : 0) + "%"
  5163. }}</span>
  5164. </div>
  5165. <div class="right_box_xuan">
  5166. <span>答对人数</span>
  5167. <span>{{
  5168. checkJson[toolIndex][index].rightPerson.length
  5169. }}</span>
  5170. </div>
  5171. </div>
  5172. </div>
  5173. <div
  5174. v-if="
  5175. tType &&
  5176. ((tType == 2 && sIsOpen == true) ||
  5177. tType == 1 ||
  5178. tType == 4) &&
  5179. tool.tool.indexOf(47) != -1
  5180. "
  5181. >
  5182. <AnswerData
  5183. v-if="
  5184. checkJson[toolIndex].length &&
  5185. (tool.sentenceList || tool.sentenceList.length > 0)
  5186. "
  5187. :people="checkJson[toolIndex]"
  5188. ></AnswerData>
  5189. </div>
  5190. <div
  5191. v-if="
  5192. tType &&
  5193. tType == 2 &&
  5194. !sIsOpen &&
  5195. tool.tool.indexOf(47) != -1
  5196. "
  5197. class="worksBox"
  5198. >
  5199. <div
  5200. class="zuoyeYulan"
  5201. v-if="workStudent[toolIndex].length > 0"
  5202. >
  5203. <span>作业预览</span>
  5204. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5205. </div>
  5206. <div
  5207. class="worksDetailBox"
  5208. v-if="workStudent[toolIndex].length > 0"
  5209. >
  5210. <div
  5211. class="works"
  5212. style="
  5213. width: 200px;
  5214. height: 140px;
  5215. margin: 10px 10px 10px 0;
  5216. "
  5217. v-for="(w, wIndex) in workStudent[toolIndex]"
  5218. :key="wIndex"
  5219. >
  5220. <!-- @click="openXz(w, toolIndex)" -->
  5221. <div class="workImg" @click="openSen(w, toolIndex)">
  5222. <img src="../assets/icon/works/noImg.png" alt />
  5223. <img
  5224. class="deleteImg"
  5225. src="../assets/deleteworks.png"
  5226. v-if="
  5227. w.userid == userid || tType == 1 || tType == 4
  5228. "
  5229. @click.stop="deleteWorks(w.wid)"
  5230. alt
  5231. />
  5232. </div>
  5233. <div class="worksName">
  5234. <div>
  5235. {{ w.sName }}
  5236. </div>
  5237. </div>
  5238. </div>
  5239. </div>
  5240. </div>
  5241. <div
  5242. v-if="
  5243. tType &&
  5244. ((tType == 2 && sIsOpen == true) ||
  5245. tType == 1 ||
  5246. tType == 4) &&
  5247. tool.tool.indexOf(47) != -1
  5248. "
  5249. class="worksBox"
  5250. >
  5251. <div
  5252. class="zuoyeYulan"
  5253. v-if="
  5254. worksStudent.length &&
  5255. worksStudent[toolIndex].length > 0
  5256. "
  5257. >
  5258. <div class="worksTop">
  5259. <div>作业预览</div>
  5260. <div
  5261. class="corOpen"
  5262. @click="contract(toolIndex)"
  5263. v-if="
  5264. worksStudent[toolIndex].length > 6 &&
  5265. isCloseList[toolIndex].isClose == 0
  5266. "
  5267. >
  5268. 收缩
  5269. </div>
  5270. <div
  5271. class="corOpen"
  5272. @click="contract(toolIndex)"
  5273. v-if="isCloseList[toolIndex].isClose == 1"
  5274. >
  5275. 展开
  5276. </div>
  5277. </div>
  5278. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5279. </div>
  5280. <div
  5281. class="worksDetailBox"
  5282. v-if="
  5283. worksStudent.length &&
  5284. worksStudent[toolIndex].length > 0
  5285. "
  5286. >
  5287. <!-- @click="openXz(w, toolIndex)" -->
  5288. <div
  5289. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5290. 0
  5291. ? worksStudent[toolIndex]
  5292. : worksStudent[toolIndex].slice(0, 6)"
  5293. :key="wIndex"
  5294. class="isWorksName"
  5295. @click="openSen(w, toolIndex)"
  5296. >
  5297. {{ w.sName }}
  5298. <img
  5299. class="deleteImg deleteImg2"
  5300. src="../assets/deleteworks.png"
  5301. v-if="w.userid == userid || tType == 1 || tType == 4"
  5302. @click.stop="deleteWorks(w.wid)"
  5303. alt
  5304. />
  5305. </div>
  5306. </div>
  5307. <div style="font-size: 18px">未提交</div>
  5308. <div class="noWorksS">
  5309. <div
  5310. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5311. :key="sIndex"
  5312. class="noWorksName"
  5313. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5314. >
  5315. {{ s.student }}
  5316. </div>
  5317. </div>
  5318. </div>
  5319. <div
  5320. v-if="
  5321. tType &&
  5322. ((tType == 2 && sIsOpen == true) ||
  5323. tType == 1 ||
  5324. tType == 4) &&
  5325. tool.tool.indexOf(48) != -1
  5326. "
  5327. class="worksBox"
  5328. >
  5329. <div
  5330. class="zuoyeYulan"
  5331. v-if="
  5332. worksStudent.length &&
  5333. worksStudent[toolIndex].length > 0
  5334. "
  5335. >
  5336. <div class="worksTop">
  5337. <div>作业预览</div>
  5338. <div
  5339. class="corOpen"
  5340. @click="contract(toolIndex)"
  5341. v-if="
  5342. worksStudent[toolIndex].length > 6 &&
  5343. isCloseList[toolIndex].isClose == 0
  5344. "
  5345. >
  5346. 收缩
  5347. </div>
  5348. <div
  5349. class="corOpen"
  5350. @click="contract(toolIndex)"
  5351. v-if="isCloseList[toolIndex].isClose == 1"
  5352. >
  5353. 展开
  5354. </div>
  5355. </div>
  5356. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5357. </div>
  5358. <div
  5359. class="worksDetailBox"
  5360. v-if="
  5361. worksStudent.length &&
  5362. worksStudent[toolIndex].length > 0
  5363. "
  5364. >
  5365. <div
  5366. class="works"
  5367. style="
  5368. width: 200px;
  5369. height: 140px;
  5370. margin: 10px 10px 10px 0;
  5371. border-radius: 15px;
  5372. box-shadow: 0 0 6px 1px #dfdada;
  5373. "
  5374. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5375. 0
  5376. ? worksStudent[toolIndex]
  5377. : worksStudent[toolIndex].slice(0, 6)"
  5378. :key="wIndex"
  5379. :class="w.type == 1 ? 'isTypeOne' : ''"
  5380. >
  5381. <div class="workImg">
  5382. <img :src="word" @click="openTable(w)" alt />
  5383. <!-- @click="openFile(w.works)" -->
  5384. <div
  5385. class="answerScore"
  5386. v-if="w.score"
  5387. @click.stop="openScore(w)"
  5388. :class="{
  5389. rightW:
  5390. w.userid == userid ||
  5391. tType == 1 ||
  5392. tType == 4 ||
  5393. w.ateacher == userid,
  5394. }"
  5395. >
  5396. {{ JSON.parse(w.score).wScore }}分
  5397. </div>
  5398. <div
  5399. class="answerScore"
  5400. @click.stop="openScore(w)"
  5401. v-else-if="courseDetail.userid == userid"
  5402. :class="{
  5403. rightW:
  5404. w.userid == userid ||
  5405. tType == 1 ||
  5406. tType == 4 ||
  5407. w.ateacher == userid,
  5408. }"
  5409. >
  5410. 评分
  5411. </div>
  5412. <img
  5413. class="deleteImg"
  5414. src="../assets/deleteworks.png"
  5415. v-if="
  5416. w.userid == userid || tType == 1 || tType == 4
  5417. "
  5418. @click.stop="deleteWorks(w.wid)"
  5419. alt
  5420. />
  5421. </div>
  5422. <div class="comment" style="min-width: 200px">
  5423. <div class="worksName">
  5424. <div>{{ w.sName }}</div>
  5425. </div>
  5426. <div class="commentList">
  5427. <div class="commentList">
  5428. <div
  5429. class="commentImg"
  5430. @click="
  5431. isLikes(w.wid, userid, 1, null, w.isLikes)
  5432. "
  5433. >
  5434. <img
  5435. :src="w.isLikes == true ? likes : noLikes"
  5436. alt=""
  5437. />
  5438. </div>
  5439. <div>{{ w.likesCount }}</div>
  5440. </div>
  5441. <div class="commentList" style="margin-right: 15px">
  5442. <div
  5443. class="commentImg"
  5444. @click="commentOther(w, toolIndex, wIndex)"
  5445. >
  5446. <img
  5447. src="../assets/icon/comment/comment.png"
  5448. alt=""
  5449. />
  5450. </div>
  5451. <div>{{ w.commentCount }}</div>
  5452. </div>
  5453. </div>
  5454. </div>
  5455. </div>
  5456. </div>
  5457. <div style="font-size: 18px">未提交</div>
  5458. <div class="noWorksS">
  5459. <div
  5460. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5461. :key="sIndex"
  5462. class="noWorksName"
  5463. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5464. >
  5465. {{ s.student }}
  5466. </div>
  5467. </div>
  5468. </div>
  5469. <div
  5470. v-if="
  5471. tType &&
  5472. tType == 2 &&
  5473. !sIsOpen &&
  5474. tool.tool.indexOf(48) != -1
  5475. "
  5476. class="worksBox"
  5477. >
  5478. <div
  5479. class="zuoyeYulan"
  5480. v-if="workStudent[toolIndex].length > 0"
  5481. >
  5482. <span>作业预览</span>
  5483. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5484. </div>
  5485. <div
  5486. class="worksDetailBox"
  5487. v-if="workStudent[toolIndex].length > 0"
  5488. >
  5489. <div
  5490. class="works"
  5491. style="
  5492. width: 200px;
  5493. height: 140px;
  5494. margin: 10px 10px 10px 0;
  5495. box-shadow: 0 0 6px 1px #dfdada;
  5496. "
  5497. v-for="(w, wIndex) in workStudent[toolIndex]"
  5498. :key="wIndex"
  5499. >
  5500. <div class="workImg">
  5501. <img :src="word" @click="openTable(w)" alt />
  5502. <div
  5503. class="answerScore"
  5504. v-if="w.score"
  5505. @click.stop="openScore(w)"
  5506. :class="{
  5507. rightW:
  5508. w.userid == userid || tType == 1 || tType == 4,
  5509. }"
  5510. >
  5511. {{ JSON.parse(w.score).wScore }}分
  5512. </div>
  5513. <div
  5514. class="answerScore"
  5515. @click.stop="openScore(w)"
  5516. v-else-if="courseDetail.userid == userid"
  5517. :class="{
  5518. rightW:
  5519. w.userid == userid || tType == 1 || tType == 4,
  5520. }"
  5521. >
  5522. 评分
  5523. </div>
  5524. <img
  5525. class="deleteImg"
  5526. src="../assets/deleteworks.png"
  5527. v-if="
  5528. w.userid == userid || tType == 1 || tType == 4
  5529. "
  5530. @click.stop="deleteWorks(w.wid)"
  5531. alt
  5532. />
  5533. </div>
  5534. <div class="worksName">
  5535. <div>{{ w.sName }}</div>
  5536. </div>
  5537. </div>
  5538. </div>
  5539. </div>
  5540. <div
  5541. v-if="
  5542. tType &&
  5543. ((tType == 2 && sIsOpen == true) ||
  5544. tType == 1 ||
  5545. tType == 4) &&
  5546. tool.tool.indexOf(52) != -1
  5547. "
  5548. class="worksBox"
  5549. >
  5550. <div
  5551. class="zuoyeYulan"
  5552. v-if="
  5553. worksStudent.length &&
  5554. worksStudent[toolIndex].length > 0
  5555. "
  5556. >
  5557. <div class="worksTop">
  5558. <div>作业预览</div>
  5559. <div
  5560. class="corOpen"
  5561. @click="contract(toolIndex)"
  5562. v-if="
  5563. worksStudent[toolIndex].length > 6 &&
  5564. isCloseList[toolIndex].isClose == 0
  5565. "
  5566. >
  5567. 收缩
  5568. </div>
  5569. <div
  5570. class="corOpen"
  5571. @click="contract(toolIndex)"
  5572. v-if="isCloseList[toolIndex].isClose == 1"
  5573. >
  5574. 展开
  5575. </div>
  5576. </div>
  5577. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5578. </div>
  5579. <div
  5580. class="worksDetailBox"
  5581. v-if="
  5582. worksStudent.length &&
  5583. worksStudent[toolIndex].length > 0
  5584. "
  5585. >
  5586. <div
  5587. class="works"
  5588. style="
  5589. width: 200px;
  5590. height: 140px;
  5591. margin: 10px 10px 10px 0;
  5592. border-radius: 15px;
  5593. box-shadow: 0 0 6px 1px #dfdada;
  5594. "
  5595. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5596. 0
  5597. ? worksStudent[toolIndex]
  5598. : worksStudent[toolIndex].slice(0, 6)"
  5599. :key="wIndex"
  5600. :class="w.type == 1 ? 'isTypeOne' : ''"
  5601. >
  5602. <div class="workImg">
  5603. <img :src="word" @click="openTable(w)" alt />
  5604. <!-- @click="openFile(w.works)" -->
  5605. <div
  5606. class="answerScore"
  5607. v-if="w.score"
  5608. @click.stop="openScore(w)"
  5609. :class="{
  5610. rightW:
  5611. w.userid == userid ||
  5612. tType == 1 ||
  5613. tType == 4 ||
  5614. w.ateacher == userid,
  5615. }"
  5616. >
  5617. {{ JSON.parse(w.score).wScore }}分
  5618. </div>
  5619. <div
  5620. class="answerScore"
  5621. @click.stop="openScore(w)"
  5622. v-else-if="courseDetail.userid == userid"
  5623. :class="{
  5624. rightW:
  5625. w.userid == userid ||
  5626. tType == 1 ||
  5627. tType == 4 ||
  5628. w.ateacher == userid,
  5629. }"
  5630. >
  5631. 评分
  5632. </div>
  5633. <img
  5634. class="deleteImg"
  5635. src="../assets/deleteworks.png"
  5636. v-if="
  5637. w.userid == userid || tType == 1 || tType == 4
  5638. "
  5639. @click.stop="deleteWorks(w.wid)"
  5640. alt
  5641. />
  5642. </div>
  5643. <div class="comment" style="min-width: 200px">
  5644. <div class="worksName">
  5645. <div>{{ w.sName }}</div>
  5646. </div>
  5647. <div class="commentList">
  5648. <div class="commentList">
  5649. <div
  5650. class="commentImg"
  5651. @click="
  5652. isLikes(w.wid, userid, 1, null, w.isLikes)
  5653. "
  5654. >
  5655. <img
  5656. :src="w.isLikes == true ? likes : noLikes"
  5657. alt=""
  5658. />
  5659. </div>
  5660. <div>{{ w.likesCount }}</div>
  5661. </div>
  5662. <div class="commentList" style="margin-right: 15px">
  5663. <div
  5664. class="commentImg"
  5665. @click="commentOther(w, toolIndex, wIndex)"
  5666. >
  5667. <img
  5668. src="../assets/icon/comment/comment.png"
  5669. alt=""
  5670. />
  5671. </div>
  5672. <div>{{ w.commentCount }}</div>
  5673. </div>
  5674. </div>
  5675. </div>
  5676. </div>
  5677. </div>
  5678. <div style="font-size: 18px">未提交</div>
  5679. <div class="noWorksS">
  5680. <div
  5681. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5682. :key="sIndex"
  5683. class="noWorksName"
  5684. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5685. >
  5686. {{ s.student }}
  5687. </div>
  5688. </div>
  5689. </div>
  5690. <div
  5691. v-if="
  5692. tType &&
  5693. tType == 2 &&
  5694. !sIsOpen &&
  5695. tool.tool.indexOf(52) != -1
  5696. "
  5697. class="worksBox"
  5698. >
  5699. <div
  5700. class="zuoyeYulan"
  5701. v-if="workStudent[toolIndex].length > 0"
  5702. >
  5703. <span>作业预览</span>
  5704. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5705. </div>
  5706. <div
  5707. class="worksDetailBox"
  5708. v-if="workStudent[toolIndex].length > 0"
  5709. >
  5710. <div
  5711. class="works"
  5712. style="
  5713. width: 200px;
  5714. height: 140px;
  5715. margin: 10px 10px 10px 0;
  5716. box-shadow: 0 0 6px 1px #dfdada;
  5717. "
  5718. v-for="(w, wIndex) in workStudent[toolIndex]"
  5719. :key="wIndex"
  5720. >
  5721. <div class="workImg">
  5722. <img :src="word" @click="openTable(w)" alt />
  5723. <div
  5724. class="answerScore"
  5725. v-if="w.score"
  5726. @click.stop="openScore(w)"
  5727. :class="{
  5728. rightW:
  5729. w.userid == userid || tType == 1 || tType == 4,
  5730. }"
  5731. >
  5732. {{ JSON.parse(w.score).wScore }}分
  5733. </div>
  5734. <div
  5735. class="answerScore"
  5736. @click.stop="openScore(w)"
  5737. v-else-if="courseDetail.userid == userid"
  5738. :class="{
  5739. rightW:
  5740. w.userid == userid || tType == 1 || tType == 4,
  5741. }"
  5742. >
  5743. 评分
  5744. </div>
  5745. <img
  5746. class="deleteImg"
  5747. src="../assets/deleteworks.png"
  5748. v-if="
  5749. w.userid == userid || tType == 1 || tType == 4
  5750. "
  5751. @click.stop="deleteWorks(w.wid)"
  5752. alt
  5753. />
  5754. </div>
  5755. <div class="worksName">
  5756. <div>{{ w.sName }}</div>
  5757. </div>
  5758. </div>
  5759. </div>
  5760. </div>
  5761. <div
  5762. v-if="tool.tool.indexOf(49) != -1"
  5763. class="xuan_right_box"
  5764. >
  5765. <div
  5766. v-if="courseDetail.userid == userid"
  5767. style="display: flex; justify-content: flex-end"
  5768. >
  5769. <el-button
  5770. type="primary"
  5771. size="small"
  5772. @click="addTools(49, toolIndex, taskCount)"
  5773. >分组设置</el-button
  5774. >
  5775. </div>
  5776. <div
  5777. v-if="groupStudentUid[toolIndex]"
  5778. class="group_staic_box"
  5779. >
  5780. <div
  5781. v-for="(gp, gd) in tool.groupJson.group"
  5782. :key="gd"
  5783. class="group_staic"
  5784. >
  5785. <span> {{ gp.name }}</span>
  5786. <span>
  5787. 目前人数{{
  5788. groupStudentUid[toolIndex][gd].length
  5789. }}人</span
  5790. >
  5791. </div>
  5792. </div>
  5793. </div>
  5794. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  5795. <div
  5796. class="zuoyeYulan"
  5797. v-if="
  5798. worksStudent.length &&
  5799. worksStudent[toolIndex].length > 0
  5800. "
  5801. >
  5802. <span>作业预览</span>
  5803. </div>
  5804. <div>
  5805. <div
  5806. class="group_workBox"
  5807. v-for="(g, gindex) in tool.groupJson.group"
  5808. :key="gindex"
  5809. >
  5810. <div
  5811. class="group_box"
  5812. v-if="
  5813. groupStudentUid[toolIndex] &&
  5814. worksStudent[toolIndex] &&
  5815. (worksStudent[toolIndex][gindex].length ||
  5816. groupStudentUid[toolIndex][gindex].indexOf(
  5817. userid
  5818. ) != -1)
  5819. "
  5820. >
  5821. <div class="group_title">
  5822. <el-tooltip
  5823. class="item"
  5824. effect="light"
  5825. :content="g.name"
  5826. placement="top"
  5827. >
  5828. <div class="group_name">{{ g.name }}</div>
  5829. </el-tooltip>
  5830. <el-button
  5831. type="primary"
  5832. v-if="
  5833. groupStudentUid[toolIndex][gindex].indexOf(
  5834. userid
  5835. ) != -1
  5836. "
  5837. @click="groupUpload(toolIndex, taskCount, gindex)"
  5838. >上传作业</el-button
  5839. >
  5840. </div>
  5841. <div class="group_work">
  5842. <div
  5843. class="works"
  5844. style="
  5845. width: 200px;
  5846. height: 140px;
  5847. margin: 10px 10px 10px 0;
  5848. border-radius: 15px;
  5849. box-shadow: 0 0 6px 1px #dfdada;
  5850. "
  5851. v-for="(w, wIndex) in worksStudent[toolIndex][
  5852. gindex
  5853. ]"
  5854. :key="wIndex"
  5855. :class="w.type == 1 ? 'isTypeOne' : ''"
  5856. >
  5857. <div class="workImg" v-if="w.type == 0">
  5858. <img
  5859. :src="w.works"
  5860. @click="previewImg(w.works)"
  5861. alt
  5862. />
  5863. <div
  5864. class="answerScore"
  5865. v-if="w.score"
  5866. @click.stop="openScore(w)"
  5867. :class="{
  5868. rightW:
  5869. w.userid == userid ||
  5870. tType == 1 ||
  5871. tType == 4 ||
  5872. w.ateacher == userid,
  5873. }"
  5874. >
  5875. {{ JSON.parse(w.score).wScore }}分
  5876. </div>
  5877. <div
  5878. class="answerScore"
  5879. @click.stop="openScore(w)"
  5880. v-else-if="courseDetail.userid == userid"
  5881. :class="{
  5882. rightW:
  5883. w.userid == userid ||
  5884. tType == 1 ||
  5885. tType == 4 ||
  5886. w.ateacher == userid,
  5887. }"
  5888. >
  5889. 评分
  5890. </div>
  5891. <img
  5892. class="deleteImg"
  5893. src="../assets/deleteworks.png"
  5894. v-if="
  5895. w.userid == userid ||
  5896. tType == 1 ||
  5897. tType == 4
  5898. "
  5899. @click.stop="deleteWorks(w.wid)"
  5900. alt
  5901. />
  5902. </div>
  5903. <div class="workImg" v-if="w.type == 1">
  5904. <img
  5905. :src="word"
  5906. @click="openFile(w.works)"
  5907. alt
  5908. />
  5909. <!-- @click="openFile(w.works)" -->
  5910. <div
  5911. class="answerScore"
  5912. v-if="w.score"
  5913. @click.stop="openScore(w)"
  5914. :class="{
  5915. rightW:
  5916. w.userid == userid ||
  5917. tType == 1 ||
  5918. tType == 4 ||
  5919. w.ateacher == userid,
  5920. }"
  5921. >
  5922. {{ JSON.parse(w.score).wScore }}分
  5923. </div>
  5924. <div
  5925. class="answerScore"
  5926. @click.stop="openScore(w)"
  5927. v-else-if="courseDetail.userid == userid"
  5928. :class="{
  5929. rightW:
  5930. w.userid == userid ||
  5931. tType == 1 ||
  5932. tType == 4 ||
  5933. w.ateacher == userid,
  5934. }"
  5935. >
  5936. 评分
  5937. </div>
  5938. <img
  5939. class="deleteImg"
  5940. src="../assets/deleteworks.png"
  5941. v-if="
  5942. w.userid == userid ||
  5943. tType == 1 ||
  5944. tType == 4
  5945. "
  5946. @click.stop="deleteWorks(w.wid)"
  5947. alt
  5948. />
  5949. </div>
  5950. <div class="workImg" v-if="w.type == 3">
  5951. <img
  5952. style="cursor: pointer"
  5953. :src="video"
  5954. @click="openVideo(w)"
  5955. alt
  5956. />
  5957. <!-- @click="openVideo(w.works)" -->
  5958. <div
  5959. class="answerScore"
  5960. v-if="w.score"
  5961. @click.stop="openScore(w)"
  5962. :class="{
  5963. rightW:
  5964. w.userid == userid ||
  5965. tType == 1 ||
  5966. tType == 4 ||
  5967. w.ateacher == userid,
  5968. }"
  5969. >
  5970. {{ JSON.parse(w.score).wScore }}分
  5971. </div>
  5972. <div
  5973. class="answerScore"
  5974. @click.stop="openScore(w)"
  5975. v-else-if="courseDetail.userid == userid"
  5976. :class="{
  5977. rightW:
  5978. w.userid == userid ||
  5979. tType == 1 ||
  5980. tType == 4 ||
  5981. w.ateacher == userid,
  5982. }"
  5983. >
  5984. 评分
  5985. </div>
  5986. <img
  5987. class="deleteImg"
  5988. src="../assets/deleteworks.png"
  5989. v-if="
  5990. w.userid == userid ||
  5991. tType == 1 ||
  5992. tType == 4
  5993. "
  5994. @click.stop="deleteWorks(w.wid)"
  5995. alt
  5996. />
  5997. </div>
  5998. <div class="workImg" v-if="w.type == 12">
  5999. <img
  6000. style="cursor: pointer"
  6001. :src="word2"
  6002. @click="downloadFile(w.works)"
  6003. alt
  6004. />
  6005. <!-- @click="openVideo(w.works)" -->
  6006. <div
  6007. class="answerScore"
  6008. v-if="w.score"
  6009. @click.stop="openScore(w)"
  6010. :class="{
  6011. rightW:
  6012. w.userid == userid ||
  6013. tType == 1 ||
  6014. tType == 4 ||
  6015. w.ateacher == userid,
  6016. }"
  6017. >
  6018. {{ JSON.parse(w.score).wScore }}分
  6019. </div>
  6020. <div
  6021. class="answerScore"
  6022. @click.stop="openScore(w)"
  6023. v-else-if="courseDetail.userid == userid"
  6024. :class="{
  6025. rightW:
  6026. w.userid == userid ||
  6027. tType == 1 ||
  6028. tType == 4 ||
  6029. w.ateacher == userid,
  6030. }"
  6031. >
  6032. 评分
  6033. </div>
  6034. <img
  6035. class="deleteImg"
  6036. src="../assets/deleteworks.png"
  6037. v-if="
  6038. w.userid == userid ||
  6039. tType == 1 ||
  6040. tType == 4
  6041. "
  6042. @click.stop="deleteWorks(w.wid)"
  6043. alt
  6044. />
  6045. </div>
  6046. <div class="comment" style="min-width: 200px">
  6047. <div class="worksName">
  6048. <div>{{ w.sName }}</div>
  6049. </div>
  6050. <div class="commentList">
  6051. <div class="commentList">
  6052. <div
  6053. class="commentImg"
  6054. @click="
  6055. isLikes(
  6056. w.wid,
  6057. userid,
  6058. 1,
  6059. null,
  6060. w.isLikes
  6061. )
  6062. "
  6063. >
  6064. <img
  6065. :src="
  6066. w.isLikes == true ? likes : noLikes
  6067. "
  6068. alt=""
  6069. />
  6070. </div>
  6071. <div>{{ w.likesCount }}</div>
  6072. </div>
  6073. <div
  6074. class="commentList"
  6075. style="margin-right: 15px"
  6076. >
  6077. <div
  6078. class="commentImg"
  6079. @click="
  6080. commentOther(
  6081. w,
  6082. toolIndex,
  6083. wIndex,
  6084. gindex
  6085. )
  6086. "
  6087. >
  6088. <img
  6089. src="../assets/icon/comment/comment.png"
  6090. alt=""
  6091. />
  6092. </div>
  6093. <div>{{ w.commentCount }}</div>
  6094. </div>
  6095. </div>
  6096. </div>
  6097. </div>
  6098. </div>
  6099. </div>
  6100. </div>
  6101. </div>
  6102. </div>
  6103. </div>
  6104. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6105. 上传文件
  6106. <input
  6107. type="file"
  6108. accept="image/png, image/gif, image/jpeg"
  6109. style="display: none"
  6110. @change="beforeUpload1($event, 2, index)"
  6111. />
  6112. </div>-->
  6113. </div>
  6114. </div>
  6115. <div
  6116. class="vedioBox"
  6117. v-if="
  6118. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6119. .eList &&
  6120. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6121. .eList.length &&
  6122. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6123. .eList.length > 0 &&
  6124. tType != 2
  6125. "
  6126. >
  6127. <div
  6128. class="queTop"
  6129. style="
  6130. font-size: 25px;
  6131. padding: 15px 0 15px 30px;
  6132. font-weight: bold;
  6133. "
  6134. >
  6135. <!-- <div class="question" style="width: 30px">
  6136. <img src="../assets/icon/toolIcon.png" alt />
  6137. </div>
  6138. <div class="queTitle">
  6139. <div>工具</div>
  6140. </div>-->
  6141. 评一评
  6142. </div>
  6143. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  6144. <div class="elist_input">
  6145. <div
  6146. v-for="(eItem, eIndex) in chapInfoList[courseType]
  6147. .chapterInfo[0].taskJson[taskCount].eList"
  6148. :key="eIndex"
  6149. class="elist_input_box"
  6150. >
  6151. <div style="width: 95%">
  6152. <div
  6153. style="
  6154. display: flex;
  6155. flex-direction: row;
  6156. flex-wrap: nowrap;
  6157. align-items: center;
  6158. "
  6159. >
  6160. <div style="max-width: calc(100% - 285px)">
  6161. <span>{{ eItem.value }}</span>
  6162. </div>
  6163. <div
  6164. style="
  6165. padding-left: 25px;
  6166. display: flex;
  6167. flex-direction: row;
  6168. align-items: center;
  6169. "
  6170. >
  6171. <el-rate
  6172. v-model="eItem.score"
  6173. :colors="colors"
  6174. disabled
  6175. ></el-rate>
  6176. </div>
  6177. </div>
  6178. <div class="elist_inptu_text" style="padding-left: 10px">
  6179. <span v-if="eItem.detail != ''">{{
  6180. eItem.detail
  6181. }}</span>
  6182. <span v-else style="color: #b2b1b3; font-size: 14px"
  6183. >暂无描述...</span
  6184. >
  6185. </div>
  6186. </div>
  6187. </div>
  6188. </div>
  6189. <div
  6190. v-if="evalua"
  6191. style="
  6192. border: 1px solid #e5e5e5;
  6193. max-width: 650px;
  6194. width: 100%;
  6195. margin-top: 20px;
  6196. box-shadow: 3px 1px 15px 3px #e0e0e0;
  6197. "
  6198. >
  6199. <div class="e_add_top">
  6200. <div class="e_add_title">
  6201. <span>目标管理名称</span>
  6202. <span>{{ eTitle }}</span>
  6203. <img
  6204. src="../assets/line.png"
  6205. class="cru_line"
  6206. style="
  6207. width: 125px;
  6208. height: 20px;
  6209. bottom: -10px;
  6210. left: 120px;
  6211. "
  6212. />
  6213. <!-- <el-input
  6214. v-model="eTitle"
  6215. placeholder="请输入名称"
  6216. @change="setMindData"
  6217. ></el-input>-->
  6218. </div>
  6219. </div>
  6220. <div class="e_add_content">
  6221. <div class="e_add_list_pbox">
  6222. <div class="e_add_list_pbox_title">
  6223. <span class="type_title">切换模式</span>
  6224. <div class="type_content">
  6225. <span
  6226. :class="{ active: typeMode == 1 }"
  6227. @click="typeMode = 1"
  6228. >目标树</span
  6229. >
  6230. <span
  6231. :class="{ active: typeMode == 2 }"
  6232. @click="typeMode = 2"
  6233. >目标罗盘</span
  6234. >
  6235. <span
  6236. :class="{ active: typeMode == 3 }"
  6237. @click="typeMode = 3"
  6238. >目标看板</span
  6239. >
  6240. </div>
  6241. </div>
  6242. <div class="e_add_list_pbox_content">
  6243. <Mind
  6244. :showBar="false"
  6245. :mindData="data"
  6246. style="width: 100%"
  6247. v-show="typeMode == 1"
  6248. ></Mind>
  6249. <Sunburst
  6250. :Josn="eJson"
  6251. :num="eJSONNum"
  6252. style="width: 100%"
  6253. v-if="typeMode == 2"
  6254. ></Sunburst>
  6255. <SeeBoard
  6256. :Josn="eJson"
  6257. :num="eJSONNum"
  6258. :ename="eTitle"
  6259. style="width: 100%"
  6260. v-if="typeMode == 3"
  6261. >
  6262. </SeeBoard>
  6263. </div>
  6264. </div>
  6265. </div>
  6266. </div>
  6267. </div>
  6268. </div>
  6269. <!-- <div
  6270. class="project_box"
  6271. style="margin-top: 15px; padding-bottom: 30px"
  6272. >
  6273. <div
  6274. style="
  6275. display: flex;
  6276. flex-wrap: nowrap;
  6277. flex-direction: column;
  6278. position: relative;
  6279. "
  6280. >
  6281. <div class="queTop">
  6282. <div class="question">
  6283. <img src="../assets/icon/homeWork.png" alt="" />
  6284. </div>
  6285. <div class="queTitle">
  6286. <div>作业提交<span>(提交图文视频等)</span></div>
  6287. <div>:任务:{{ task.task }}</div>
  6288. </div>
  6289. </div>
  6290. <div class="ediBottom">
  6291. <div
  6292. class="addEditor"
  6293. style="margin-top: 23px"
  6294. @click="openAddWork"
  6295. v-if="!isNoHomeWork"
  6296. >
  6297. 选择文件
  6298. </div>
  6299. <div
  6300. class="addEditor"
  6301. style="margin-top: 23px"
  6302. @click="openAddWork"
  6303. v-else
  6304. >
  6305. 已提交
  6306. </div>
  6307. </div>
  6308. </div>
  6309. </div>-->
  6310. </div>
  6311. </div>
  6312. <el-dialog
  6313. title="作业提交"
  6314. :visible.sync="dialogVisible"
  6315. :append-to-body="true"
  6316. width="500px"
  6317. :before-close="handleClose"
  6318. class="dialog_change"
  6319. >
  6320. <div class="marginT">
  6321. <div>上传文件</div>
  6322. <div
  6323. class="chapter_add"
  6324. @click="addImg($event)"
  6325. v-if="studyJuri[0].cover.length == 0"
  6326. >
  6327. <div class="up_photo">
  6328. <img src="../assets/icon/uploadImg.png" alt />
  6329. </div>
  6330. <!-- <input
  6331. type="file"
  6332. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  6333. style="display: none"
  6334. @change="beforeUpload1($event, 1)"
  6335. /> -->
  6336. <input
  6337. type="file"
  6338. accept="*"
  6339. style="display: none"
  6340. @change="beforeUpload1($event, 1)"
  6341. />
  6342. <!-- <input
  6343. type="file"
  6344. accept="image/*"
  6345. capture="camera"
  6346. style="display: none"
  6347. @change="beforeUpload1($event, 1)"
  6348. /> -->
  6349. </div>
  6350. <div
  6351. class="chapter_add"
  6352. style="
  6353. display: flex;
  6354. width: 100%;
  6355. flex-direction: row;
  6356. flex-wrap: wrap;
  6357. justify-content: flex-start;
  6358. padding: 15px 0;
  6359. "
  6360. v-if="studyJuri[0].cover.length > 0"
  6361. >
  6362. <div class="upCover">
  6363. <img
  6364. :src="studyJuri[0].cover[0].url"
  6365. alt
  6366. v-if="fileType == 0"
  6367. />
  6368. <img :src="word" alt v-else-if="fileType == 1" />
  6369. <img :src="video" alt v-else-if="fileType == 2" />
  6370. <img :src="word2" alt v-else-if="fileType == 3" />
  6371. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  6372. <div class="deleteWord" @click="clean(1)">
  6373. <img src="../assets/icon/deleteWorks.png" alt />
  6374. </div>
  6375. </div>
  6376. </div>
  6377. </div>
  6378. <div
  6379. class="upload_send"
  6380. @click="addCourseWorks(taskCount)"
  6381. v-if="!proVisible"
  6382. >
  6383. 提交
  6384. </div>
  6385. </el-dialog>
  6386. </div>
  6387. </div>
  6388. <div
  6389. class="pButton"
  6390. @click="(pzDialog = true), selectPz()"
  6391. v-if="tType == 4"
  6392. >
  6393. <!-- 批 -->
  6394. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  6395. </div>
  6396. <div v-if="pzDialog == true" class="newDialogCss">
  6397. <div class="pzTop2">
  6398. <!-- <div>批注</div>
  6399. <div @click="pzDialog = false">
  6400. <img src="../assets/close1.png" alt="" />
  6401. </div> -->
  6402. <div class="checkbox">
  6403. <div class="check" style="font-size: 25px">评课笔记</div>
  6404. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  6405. </div>
  6406. </div>
  6407. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  6408. <div class="pzListBox" v-if="pzList && pzList.length">
  6409. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  6410. <div class="pzNavTop">
  6411. <div>批</div>
  6412. <div>
  6413. {{
  6414. pz.username && pz.username.length > 5
  6415. ? pz.username.substring(0, 5) + "..."
  6416. : pz.username
  6417. }}的批注
  6418. </div>
  6419. <div
  6420. class="pzDelete"
  6421. v-if="pz.userid == userid"
  6422. @click="deletePz(pz.id)"
  6423. >
  6424. 删除
  6425. </div>
  6426. </div>
  6427. <div
  6428. class="pzContent cont"
  6429. v-html="pz.content"
  6430. v-if="pz.type == '1'"
  6431. ></div>
  6432. <div class="pzContent" v-if="pz.type == '2'">
  6433. <audio :src="pz.content" controls="controls" ref="audio">
  6434. Your browser does not support the audio element.
  6435. </audio>
  6436. </div>
  6437. <div class="pzContent" v-if="pz.type == '3'">
  6438. <img
  6439. :src="pz.content"
  6440. style="width: 90%; margin: 0 auto; display: block"
  6441. @click="previewImg(pz.content)"
  6442. />
  6443. </div>
  6444. <div class="time">
  6445. {{ pz.time }}
  6446. </div>
  6447. </div>
  6448. </div>
  6449. <div class="noPz" v-else>
  6450. <img src="../assets/icon/noPz.png" alt="" />
  6451. </div>
  6452. <div class="addPzButton">
  6453. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  6454. 添加批注
  6455. </div>
  6456. <!-- <div class="img1">
  6457. <div @click="(addPzDialog = true), (pzType = 2)">
  6458. <img src="../assets/audio.png" /><span>音频</span>
  6459. </div>
  6460. </div> -->
  6461. </div>
  6462. </div>
  6463. </div>
  6464. <div v-if="addPzDialog == true" class="addDialogCss">
  6465. <div class="pzTop">
  6466. <div class="teacherPz">
  6467. <div class="teacherPzImg">
  6468. <img src="../assets/icon/teacherPz.png" alt="" />
  6469. </div>
  6470. <div style="margin-left: 10px; height: 25px">教师批注</div>
  6471. </div>
  6472. <div @click="addPzDialog = false">
  6473. <img src="../assets/close1.png" alt="" />
  6474. </div>
  6475. </div>
  6476. <div class="addPzBox">
  6477. <div class="addPzCheck">
  6478. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  6479. >文本</span
  6480. >
  6481. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  6482. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  6483. >音频</span
  6484. >
  6485. </div>
  6486. <div style="height: calc(100% - 95px)">
  6487. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  6488. v-if="pzType == 1"></textarea> -->
  6489. <editor-bar
  6490. class="binfo_input pzConText"
  6491. style="width: 100% !important"
  6492. placeholder="请输入任务描述"
  6493. v-model="pzConText"
  6494. @change="change"
  6495. v-if="pzType == 1"
  6496. ></editor-bar>
  6497. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  6498. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  6499. <div @click="addImg($event)">
  6500. <el-button type="primary">上传图片</el-button>
  6501. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  6502. @change="beforeUpload1($event, 4)" />
  6503. </div>
  6504. </div> -->
  6505. </div>
  6506. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  6507. 确定
  6508. </div>
  6509. </div>
  6510. </div>
  6511. <div v-if="proVisible" class="mask">
  6512. <div class="progressBox">
  6513. <!-- <div id="closePro" class="closeCss">
  6514. <img src="../assets/icon/close.png" alt />
  6515. </div> -->
  6516. <div class="lbox">
  6517. <img src="../assets/loading.gif" />上传中,请稍后
  6518. </div>
  6519. <div style="margin-bottom: 10px">
  6520. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  6521. </div>
  6522. <el-progress
  6523. :text-inside="true"
  6524. :stroke-width="20"
  6525. :percentage="progress"
  6526. style="width: 80%"
  6527. ></el-progress>
  6528. </div>
  6529. </div>
  6530. <div v-if="proVisible2" class="mask">
  6531. <div class="progressBox">
  6532. <div class="lbox">
  6533. <img src="../assets/loading.gif" />上传中,请稍后
  6534. </div>
  6535. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  6536. </div>
  6537. </div>
  6538. <el-dialog :visible.sync="pictureDialog" size="tiny">
  6539. <img width="100%" :src="dialogImageUrl" alt />
  6540. </el-dialog>
  6541. <el-dialog
  6542. :title="noteName != '' ? noteName : '查看问卷'"
  6543. :visible.sync="dialogVisible5"
  6544. :append-to-body="true"
  6545. width="1000px"
  6546. :before-close="handleClose"
  6547. class="dialog_diy dialog_diy3"
  6548. >
  6549. <div>
  6550. <div
  6551. class="a_add_title"
  6552. style="
  6553. display: flex;
  6554. flex-direction: row;
  6555. align-items: center;
  6556. justify-content: center;
  6557. "
  6558. >
  6559. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  6560. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  6561. </div>
  6562. <div class="a_addBox">
  6563. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6564. <div
  6565. class="a_add_box"
  6566. v-for="(item1, index1) in askJson.askCount"
  6567. :key="index1"
  6568. >
  6569. <div class="a_add_head">
  6570. <div style="display: flex">
  6571. {{ index1 + 1 + "、" }}
  6572. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  6573. </div>
  6574. <img
  6575. v-if="askJson.askJson[index1].img"
  6576. :src="askJson.askJson[index1].img"
  6577. style="height: 300px; margin-top: 10px; max-width: 100%"
  6578. />
  6579. </div>
  6580. <div class="a_add_body">
  6581. <div class="a_add_input">
  6582. <el-radio-group
  6583. v-model="radio[index1]"
  6584. v-if="
  6585. askJson.askJson[index1].type == '1' ||
  6586. !askJson.askJson[index1].type
  6587. "
  6588. >
  6589. <el-radio
  6590. v-for="(item2, checkIndex) in askJson.askJson[index1]
  6591. .askItem"
  6592. :key="checkIndex"
  6593. :label="checkIndex"
  6594. :disabled="isAnswer"
  6595. class="redioStyle"
  6596. ><span v-html="item2"></span
  6597. ></el-radio>
  6598. </el-radio-group>
  6599. <el-checkbox-group
  6600. v-model="radio[index1]"
  6601. v-if="askJson.askJson[index1].type == '2'"
  6602. >
  6603. <el-checkbox
  6604. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  6605. .askItem"
  6606. :key="checkIndex1"
  6607. :label="checkIndex1"
  6608. :disabled="isAnswer"
  6609. class="redioStyle"
  6610. ><span v-html="item2"></span>
  6611. </el-checkbox>
  6612. </el-checkbox-group>
  6613. </div>
  6614. </div>
  6615. </div>
  6616. </div>
  6617. </div>
  6618. <span slot="footer" class="dialog-footer">
  6619. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  6620. >取 消</el-button
  6621. >
  6622. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  6623. >确 定</el-button
  6624. >
  6625. </span>
  6626. </el-dialog>
  6627. <el-dialog
  6628. :title="noteName != '' ? noteName : '查看问卷'"
  6629. :visible.sync="dialogVisible5Teacher"
  6630. :append-to-body="true"
  6631. width="1000px"
  6632. :before-close="handleClose"
  6633. class="dialog_diy dialog_diy3"
  6634. >
  6635. <div>
  6636. <div class="w_name">
  6637. 学生姓名:<span>{{ sStudent.student }}</span>
  6638. </div>
  6639. <div
  6640. class="a_add_title"
  6641. style="
  6642. display: flex;
  6643. flex-direction: row;
  6644. align-items: center;
  6645. justify-content: center;
  6646. "
  6647. >
  6648. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  6649. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  6650. </div>
  6651. <div class="a_addBox">
  6652. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6653. <div
  6654. class="a_add_box"
  6655. v-for="(item1, index1) in askJson.askCount"
  6656. :key="index1"
  6657. >
  6658. <div class="a_add_head">
  6659. <div style="display: flex">
  6660. {{ index1 + 1 + "、" }}
  6661. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  6662. </div>
  6663. <img
  6664. v-if="askJson.askJson[index1].img"
  6665. :src="askJson.askJson[index1].img"
  6666. style="height: 300px; margin-top: 10px; max-width: 100%"
  6667. />
  6668. </div>
  6669. <div class="a_add_body">
  6670. <div class="a_add_input">
  6671. <el-radio-group
  6672. v-model="radio[index1]"
  6673. v-if="
  6674. askJson.askJson[index1].type == '1' ||
  6675. !askJson.askJson[index1].type
  6676. "
  6677. >
  6678. <el-radio
  6679. v-for="(item2, checkIndex) in askJson.askJson[index1]
  6680. .askItem"
  6681. :key="checkIndex"
  6682. :label="checkIndex"
  6683. :disabled="isAnswer"
  6684. class="redioStyle"
  6685. ><span v-html="item2"></span
  6686. ></el-radio>
  6687. </el-radio-group>
  6688. <el-checkbox-group
  6689. v-model="radio[index1]"
  6690. v-if="askJson.askJson[index1].type == '2'"
  6691. >
  6692. <el-checkbox
  6693. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  6694. .askItem"
  6695. :key="checkIndex1"
  6696. :label="checkIndex1"
  6697. :disabled="isAnswer"
  6698. class="redioStyle"
  6699. ><span v-html="item2"></span>
  6700. </el-checkbox>
  6701. </el-checkbox-group>
  6702. </div>
  6703. </div>
  6704. </div>
  6705. </div>
  6706. </div>
  6707. <span slot="footer" class="dialog-footer">
  6708. <el-button
  6709. @click="dialogVisible5Teacher = false"
  6710. v-show="noteName == ''"
  6711. >取 消</el-button
  6712. >
  6713. <el-button
  6714. type="primary"
  6715. @click="addStudentAskTeacher"
  6716. v-show="noteName == ''"
  6717. >确 定</el-button
  6718. >
  6719. </span>
  6720. </el-dialog>
  6721. <el-dialog
  6722. :title="noteName != '' ? noteName : '查看选择题'"
  6723. :visible.sync="dialogVisibleChoice"
  6724. :append-to-body="true"
  6725. width="1000px"
  6726. :before-close="handleClose"
  6727. class="dialog_diy dialog_diy3"
  6728. >
  6729. <div>
  6730. <!-- <div class="a_add_title" style="
  6731. display: flex;
  6732. flex-direction: row;
  6733. align-items: center;
  6734. justify-content: center;
  6735. ">
  6736. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  6737. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  6738. </div> -->
  6739. <div class="a_addBox">
  6740. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6741. <div
  6742. class="a_add_box"
  6743. v-for="(item1, index1) in testJson.testCount"
  6744. :key="index1"
  6745. >
  6746. <div class="a_add_head">
  6747. <div style="display: flex">
  6748. {{ index1 + 1 + "、" }}
  6749. <div
  6750. v-if="testJson.testJson[index1].type == '1'"
  6751. style="margin-right: 5px"
  6752. >
  6753. (单选题)
  6754. </div>
  6755. <div
  6756. v-if="testJson.testJson[index1].type == '2'"
  6757. style="margin-right: 5px"
  6758. >
  6759. (多选题)
  6760. </div>
  6761. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  6762. </div>
  6763. <img
  6764. v-if="testJson.testJson[index1].img"
  6765. :src="testJson.testJson[index1].img"
  6766. style="height: 300px; margin-top: 10px; max-width: 100%"
  6767. />
  6768. </div>
  6769. <div
  6770. class="timuImgBox"
  6771. v-if="
  6772. testJson.testJson[index1].timuList &&
  6773. testJson.testJson[index1].timuList.length
  6774. "
  6775. >
  6776. <div
  6777. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  6778. :key="tIndex"
  6779. class="timuImg"
  6780. @click.stop="previewImg(timg.src)"
  6781. >
  6782. <img :src="timg.src" alt="" />
  6783. </div>
  6784. </div>
  6785. <div class="a_add_body">
  6786. <div class="a_add_input">
  6787. <el-radio-group
  6788. v-model="radio[index1]"
  6789. v-if="testJson.testJson[index1].type == '1'"
  6790. >
  6791. <div class="radioBox">
  6792. <el-radio
  6793. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6794. .checkList"
  6795. :key="checkIndex"
  6796. :label="checkIndex"
  6797. :disabled="isAnswer"
  6798. class="redioStyle"
  6799. >
  6800. <div
  6801. style="margin-right: 10px"
  6802. v-if="item2 && item2.imgType && item2.imgType == 1"
  6803. >
  6804. <div class="inImg" @click.stop="previewImg(item2.src)">
  6805. <img :src="item2.src" alt="" />
  6806. </div>
  6807. </div>
  6808. <span v-else v-html="item2"></span>
  6809. </el-radio>
  6810. </div>
  6811. </el-radio-group>
  6812. <el-checkbox-group
  6813. v-model="radio[index1]"
  6814. v-if="testJson.testJson[index1].type == '2'"
  6815. >
  6816. <div class="radioBox">
  6817. <el-checkbox
  6818. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6819. .checkList"
  6820. :key="checkIndex"
  6821. :label="checkIndex"
  6822. :disabled="isAnswer"
  6823. class="redioStyle"
  6824. >
  6825. <div
  6826. style="margin-right: 10px"
  6827. v-if="item2 && item2.imgType && item2.imgType == 1"
  6828. >
  6829. <div class="inImg" @click.stop="previewImg(item2.src)">
  6830. <img :src="item2.src" alt="" />
  6831. </div>
  6832. </div>
  6833. <span v-else v-html="item2"></span>
  6834. </el-checkbox>
  6835. </div>
  6836. </el-checkbox-group>
  6837. </div>
  6838. </div>
  6839. </div>
  6840. </div>
  6841. </div>
  6842. <span slot="footer" class="dialog-footer">
  6843. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  6844. >取 消</el-button
  6845. >
  6846. <el-button
  6847. type="primary"
  6848. @click="addStudentTest"
  6849. v-show="noteName == ''"
  6850. >确 定</el-button
  6851. >
  6852. </span>
  6853. </el-dialog>
  6854. <el-dialog
  6855. :title="noteName != '' ? noteName : '查看选择题'"
  6856. :visible.sync="dialogVisibleChoiceTeacher"
  6857. :append-to-body="true"
  6858. width="1000px"
  6859. :before-close="handleClose"
  6860. class="dialog_diy dialog_diy3"
  6861. >
  6862. <div>
  6863. <div class="w_name">
  6864. 学生姓名:<span>{{ sStudent.student }}</span>
  6865. </div>
  6866. <div class="a_addBox">
  6867. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6868. <div
  6869. class="a_add_box"
  6870. v-for="(item1, index1) in testJson.testCount"
  6871. :key="index1"
  6872. >
  6873. <div class="a_add_head">
  6874. <div style="display: flex">
  6875. {{ index1 + 1 + "、" }}
  6876. <div
  6877. v-if="testJson.testJson[index1].type == '1'"
  6878. style="margin-right: 5px"
  6879. >
  6880. (单选题)
  6881. </div>
  6882. <div
  6883. v-if="testJson.testJson[index1].type == '2'"
  6884. style="margin-right: 5px"
  6885. >
  6886. (多选题)
  6887. </div>
  6888. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  6889. </div>
  6890. <img
  6891. v-if="testJson.testJson[index1].img"
  6892. :src="testJson.testJson[index1].img"
  6893. style="height: 300px; margin-top: 10px; max-width: 100%"
  6894. />
  6895. </div>
  6896. <div
  6897. class="timuImgBox"
  6898. v-if="
  6899. testJson.testJson[index1].timuList &&
  6900. testJson.testJson[index1].timuList.length
  6901. "
  6902. >
  6903. <div
  6904. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  6905. :key="tIndex"
  6906. class="timuImg"
  6907. @click.stop="previewImg(timg.src)"
  6908. >
  6909. <img :src="timg.src" alt="" />
  6910. </div>
  6911. </div>
  6912. <div class="a_add_body">
  6913. <div class="a_add_input">
  6914. <el-radio-group
  6915. v-model="radio[index1]"
  6916. v-if="testJson.testJson[index1].type == '1'"
  6917. >
  6918. <div class="radioBox">
  6919. <el-radio
  6920. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6921. .checkList"
  6922. :key="checkIndex"
  6923. :label="checkIndex"
  6924. :disabled="isAnswer"
  6925. class="redioStyle"
  6926. >
  6927. <div
  6928. style="margin-right: 10px"
  6929. v-if="item2 && item2.imgType && item2.imgType == 1"
  6930. >
  6931. <div class="inImg" @click.stop="previewImg(item2.src)">
  6932. <img :src="item2.src" alt="" />
  6933. </div>
  6934. </div>
  6935. <span v-else v-html="item2"></span>
  6936. </el-radio>
  6937. </div>
  6938. </el-radio-group>
  6939. <el-checkbox-group
  6940. v-model="radio[index1]"
  6941. v-if="testJson.testJson[index1].type == '2'"
  6942. >
  6943. <div class="radioBox">
  6944. <el-checkbox
  6945. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6946. .checkList"
  6947. :key="checkIndex"
  6948. :label="checkIndex"
  6949. :disabled="isAnswer"
  6950. class="redioStyle"
  6951. >
  6952. <div
  6953. style="margin-right: 10px"
  6954. v-if="item2 && item2.imgType && item2.imgType == 1"
  6955. >
  6956. <div class="inImg" @click.stop="previewImg(item2.src)">
  6957. <img :src="item2.src" alt="" />
  6958. </div>
  6959. </div>
  6960. <span v-else v-html="item2"></span>
  6961. </el-checkbox>
  6962. </div>
  6963. </el-checkbox-group>
  6964. </div>
  6965. </div>
  6966. </div>
  6967. </div>
  6968. </div>
  6969. <span slot="footer" class="dialog-footer">
  6970. <el-button
  6971. @click="dialogVisibleChoiceTeacher = false"
  6972. v-show="noteName == ''"
  6973. >取 消</el-button
  6974. >
  6975. <el-button
  6976. type="primary"
  6977. @click="addStudentTestTeacher"
  6978. v-show="noteName == ''"
  6979. >确 定</el-button
  6980. >
  6981. </span>
  6982. </el-dialog>
  6983. <el-dialog
  6984. title="查看富文本"
  6985. :visible.sync="dialogVisible1"
  6986. :append-to-body="true"
  6987. width="500px"
  6988. :before-close="handleClose"
  6989. class="dialog_diy textCss"
  6990. >
  6991. <el-form style="font-size: 20px">
  6992. <el-form-item label="文本标题" class="textTitle">
  6993. <div style="font-size: 20px">{{ text.name }}</div>
  6994. </el-form-item>
  6995. <div>富文本内容</div>
  6996. <div
  6997. v-html="text.url"
  6998. style="font-size: 18px; padding: 40px 0 0 0"
  6999. ></div>
  7000. </el-form>
  7001. <span slot="footer" class="dialog-footer">
  7002. <el-button type="primary" @click="dialogVisible1 = false"
  7003. >确定</el-button
  7004. >
  7005. </span>
  7006. </el-dialog>
  7007. <el-dialog
  7008. title="文件预览"
  7009. :visible.sync="dialogVisible3"
  7010. width="50%"
  7011. :before-close="handleClose"
  7012. class="dialog_diy"
  7013. :class="{ fullStyle: full }"
  7014. >
  7015. <div slot="title" class="header-title">
  7016. <div style="color: #fff">文件预览</div>
  7017. <div style="position: absolute; top: 19px; right: 50px">
  7018. <img
  7019. src="../assets/full.png"
  7020. style="height: 16px; cursor: pointer"
  7021. alt=""
  7022. @click="fullTools"
  7023. />
  7024. </div>
  7025. </div>
  7026. <pdf
  7027. v-if="showPDF"
  7028. :pdfUrl="pptImgUrl"
  7029. style="width: 100%; height: 520px; overflow: auto"
  7030. :class="{ fullStyle: full }"
  7031. ></pdf>
  7032. <iframe
  7033. v-else
  7034. :src="pptImgUrl"
  7035. frameborder="0"
  7036. width="100%"
  7037. height="600"
  7038. :class="{ fullStyle: full }"
  7039. ></iframe>
  7040. </el-dialog>
  7041. <el-dialog
  7042. title="文件预览"
  7043. :visible.sync="dialogVisible6"
  7044. width="50%"
  7045. :before-close="handleClose"
  7046. class="dialog_diy"
  7047. >
  7048. <iframe
  7049. :src="pptImgUrl1"
  7050. frameborder="0"
  7051. width="100%"
  7052. height="600"
  7053. ></iframe>
  7054. </el-dialog>
  7055. <el-dialog
  7056. title="提示"
  7057. :visible.sync="dialogVisible4"
  7058. :append-to-body="true"
  7059. width="800px"
  7060. :before-close="handleClose"
  7061. class="dialog_diy notice"
  7062. >
  7063. <div>此功能暂未开放!</div>
  7064. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  7065. </el-dialog>
  7066. <el-dialog
  7067. title="问答"
  7068. :visible.sync="answerDialogVisible"
  7069. :append-to-body="true"
  7070. width="800px"
  7071. :before-close="handleClose"
  7072. class="dialog_diy"
  7073. >
  7074. <div>
  7075. <div
  7076. style="
  7077. display: flex;
  7078. flex-wrap: nowrap;
  7079. flex-direction: column;
  7080. position: relative;
  7081. "
  7082. >
  7083. <div class="queTop" style="padding: 20px 0 20px 0">
  7084. <div class="question">
  7085. <img src="../assets/icon/question.png" alt />
  7086. </div>
  7087. <div class="queTitle">
  7088. <div style="width: 90px; min-width: 90px">提问:</div>
  7089. <div>{{ answerQ }}</div>
  7090. </div>
  7091. </div>
  7092. <div class="ediBottom">
  7093. <textarea
  7094. rows="6"
  7095. class="binfo_input"
  7096. cols
  7097. style="width: 95%; height: 120px"
  7098. v-model="questionAnswer"
  7099. ></textarea>
  7100. </div>
  7101. </div>
  7102. </div>
  7103. <div slot="footer">
  7104. <el-button @click="answerDialogVisible = false">取 消</el-button>
  7105. <el-button type="primary" @click="addQuestion">提 交</el-button>
  7106. </div>
  7107. </el-dialog>
  7108. <el-dialog
  7109. title="问答"
  7110. :visible.sync="answerDialogVisibleTeacher"
  7111. :append-to-body="true"
  7112. width="800px"
  7113. :before-close="handleClose"
  7114. class="dialog_diy"
  7115. >
  7116. <div>
  7117. <div class="w_name">
  7118. 学生姓名:<span>{{ sStudent.student }}</span>
  7119. </div>
  7120. <div
  7121. style="
  7122. display: flex;
  7123. flex-wrap: nowrap;
  7124. flex-direction: column;
  7125. position: relative;
  7126. "
  7127. >
  7128. <div class="queTop" style="padding: 20px 0 20px 0">
  7129. <div class="question">
  7130. <img src="../assets/icon/question.png" alt />
  7131. </div>
  7132. <div class="queTitle">
  7133. <div style="width: 90px; min-width: 90px">提问:</div>
  7134. <div>{{ answerQ }}</div>
  7135. </div>
  7136. </div>
  7137. <div class="ediBottom">
  7138. <textarea
  7139. rows="6"
  7140. class="binfo_input"
  7141. cols
  7142. style="width: 95%; height: 120px"
  7143. v-model="questionAnswer"
  7144. ></textarea>
  7145. </div>
  7146. </div>
  7147. </div>
  7148. <div slot="footer">
  7149. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  7150. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  7151. </div>
  7152. </el-dialog>
  7153. <el-dialog
  7154. title="倒计时"
  7155. :visible.sync="timeDialogVisible"
  7156. :append-to-body="true"
  7157. width="800px"
  7158. :before-close="handleClose"
  7159. class="dialog_diy"
  7160. >
  7161. <div>
  7162. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  7163. </div>
  7164. <div slot="footer">
  7165. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  7166. </div>
  7167. </el-dialog>
  7168. <el-dialog
  7169. title="权限设置"
  7170. :visible.sync="juriVisible"
  7171. :append-to-body="true"
  7172. width="400px"
  7173. :before-close="handleClose"
  7174. class="dialog_diy"
  7175. >
  7176. <div>
  7177. <div class="open_box">
  7178. <div class="switch_box">
  7179. <span>允许学生查看所有作业</span>
  7180. <el-switch
  7181. v-model="sIsOpen"
  7182. active-text=""
  7183. class="switchCss"
  7184. @change="updateSLook"
  7185. ></el-switch>
  7186. </div>
  7187. <div
  7188. class="switch_box"
  7189. v-if="
  7190. courseDetail.userid == userid ||
  7191. (courseDetail.course_teacher &&
  7192. courseDetail.course_teacher.indexOf(userid) != -1)
  7193. "
  7194. >
  7195. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  7196. <span>禁止学生查看所有阶段</span>
  7197. <el-switch
  7198. v-model="IsLookOpen"
  7199. active-text=""
  7200. class="switchCss"
  7201. @change="updateLookOpen"
  7202. ></el-switch>
  7203. </div>
  7204. <div class="switch_box" v-if="courseDetail.userid == userid">
  7205. <span>开启跟随模式</span>
  7206. <el-switch
  7207. v-model="IsFollow"
  7208. active-text=""
  7209. class="switchCss"
  7210. @change="updateFollow"
  7211. ></el-switch>
  7212. </div>
  7213. </div>
  7214. </div>
  7215. <div slot="footer">
  7216. <el-button
  7217. style="background: #409efe; color: #fff"
  7218. @click="juriVisible = false"
  7219. >关 闭</el-button
  7220. >
  7221. </div>
  7222. </el-dialog>
  7223. <el-dialog
  7224. title="查看视频"
  7225. :visible.sync="videoVisible"
  7226. :append-to-body="true"
  7227. width="1000px"
  7228. :before-close="handleClose"
  7229. class="dialog_diy1"
  7230. >
  7231. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  7232. <video-player
  7233. class="video-player vjs-custom-skin"
  7234. :playsinline="true"
  7235. :options="videoDetail"
  7236. @play="onPlayerPlay($event)"
  7237. style="width: 100%; height: 100%"
  7238. ></video-player>
  7239. </div>
  7240. <div slot="footer">
  7241. <el-button
  7242. style="background: #409efe; color: #fff"
  7243. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  7244. >
  7245. 关 闭</el-button
  7246. >
  7247. </div>
  7248. </el-dialog>
  7249. <el-dialog
  7250. title="查看详情"
  7251. :visible.sync="commentDialogVisible"
  7252. :append-to-body="true"
  7253. width="800px"
  7254. :before-close="handleClose"
  7255. class="dialog_diy"
  7256. >
  7257. <div class="commentTop">
  7258. <div class="studentDetail">
  7259. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  7260. <div class="nameAndTime">
  7261. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  7262. <div>{{ commentDetail.time }}</div>
  7263. </div>
  7264. <div
  7265. class="returnBtn"
  7266. style="margin-left: auto; width: 80px"
  7267. v-if="
  7268. commentDetail.works &&
  7269. commentDetail.type == 0 &&
  7270. (tType == 1 || tType == 4)
  7271. "
  7272. @click="
  7273. showPicturePaint(
  7274. commentDetail.img ? commentDetail.img : commentDetail.works
  7275. )
  7276. "
  7277. >
  7278. 教师批注
  7279. </div>
  7280. </div>
  7281. <div
  7282. class="worksAnswer"
  7283. v-if="commentDetail.works && commentDetail.type == 2"
  7284. >
  7285. {{ JSON.parse(commentDetail.works)[0].answer }}
  7286. </div>
  7287. <div
  7288. class="worksAnswer"
  7289. v-if="commentDetail.works && commentDetail.type == 1"
  7290. >
  7291. <img
  7292. src="../assets/teacherWork.png"
  7293. v-if="commentDetail.ateacher"
  7294. class="w_teachert"
  7295. />
  7296. <pdf
  7297. v-if="showPDF"
  7298. :pdfUrl="pptImgUrl"
  7299. style="width: 100%; height: 520px; overflow: auto"
  7300. :class="{ fullStyle: full }"
  7301. ></pdf>
  7302. <iframe
  7303. v-else
  7304. :src="pptImgUrl"
  7305. frameborder="0"
  7306. width="100%"
  7307. height="600"
  7308. :class="{ fullStyle: full }"
  7309. ></iframe>
  7310. </div>
  7311. <div
  7312. class="worksAnswer"
  7313. v-if="commentDetail.works && commentDetail.type == 0"
  7314. >
  7315. <img
  7316. src="../assets/teacherWork.png"
  7317. v-if="commentDetail.ateacher"
  7318. class="w_teachert"
  7319. style="right: 105px"
  7320. />
  7321. <img
  7322. :src="commentDetail.works"
  7323. alt=""
  7324. @click="previewImg(commentDetail.works)"
  7325. />
  7326. </div>
  7327. <div
  7328. class="worksAnswer"
  7329. v-if="commentDetail.works && commentDetail.type == 3"
  7330. >
  7331. <img
  7332. src="../assets/teacherWork.png"
  7333. v-if="commentDetail.ateacher"
  7334. class="w_teachert"
  7335. />
  7336. <video-player
  7337. class="video-player vjs-custom-skin"
  7338. :playsinline="true"
  7339. :options="videoDetail"
  7340. @play="onPlayerPlay($event)"
  7341. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  7342. ></video-player>
  7343. </div>
  7344. <div
  7345. class="worksAnswer"
  7346. v-if="commentDetail.works && commentDetail.type == 10"
  7347. >
  7348. <div class="cont" v-html="commentDetail.works.text"></div>
  7349. </div>
  7350. <div
  7351. class="worksAnswer codeFileBox"
  7352. v-if="commentDetail.works && commentDetail.type == 12"
  7353. @click="downloadFile(commentDetail.works)"
  7354. >
  7355. <img src="../assets/icon/codeFile.png" />
  7356. <div>点击下载文件</div>
  7357. </div>
  7358. <div
  7359. class="worksAnswer"
  7360. v-if="commentDetail.works && commentDetail.type == 13"
  7361. >
  7362. <div v-html="JSON.parse(commentDetail.works).text"></div>
  7363. </div>
  7364. <div
  7365. class="worksAnswer"
  7366. v-if="commentDetail.works && commentDetail.type == 4"
  7367. >
  7368. <div class="evalCss">
  7369. <div class="nav">请选择星星进行评分</div>
  7370. <div class="middleBox" v-if="eScore.eStar">
  7371. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  7372. <div class="nameAndrate">
  7373. <div>{{ e.value }}</div>
  7374. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  7375. </div>
  7376. <div v-if="e.detail">{{ e.detail }}</div>
  7377. </div>
  7378. <div class="bz">
  7379. <textarea
  7380. disabled
  7381. rows="4"
  7382. class="pj"
  7383. style="
  7384. padding: 10px 5px;
  7385. width: 70%;
  7386. background: #f7f6f9;
  7387. font-size: 14px;
  7388. text-indent: 10px;
  7389. color: #000;
  7390. "
  7391. cols
  7392. v-model="eScore.eBzText"
  7393. placeholder="请输入评价内容..."
  7394. ></textarea>
  7395. </div>
  7396. </div>
  7397. </div>
  7398. </div>
  7399. <div class="comment">
  7400. <div class="commentList">
  7401. <div class="commentImg">
  7402. <img
  7403. @click="
  7404. isLikes(
  7405. commentDetail.wid,
  7406. userid,
  7407. 1,
  7408. null,
  7409. commentDetail.isLikes
  7410. )
  7411. "
  7412. :src="commentDetail.isLikes == true ? likes : noLikes"
  7413. alt=""
  7414. />
  7415. </div>
  7416. <div>{{ commentDetail.likesCount }}</div>
  7417. </div>
  7418. <div class="commentList">
  7419. <div class="commentImg">
  7420. <img src="../assets/icon/comment/comment.png" alt="" />
  7421. </div>
  7422. <div>{{ commentDetail.commentCount }}</div>
  7423. </div>
  7424. </div>
  7425. <div class="drawPBox" v-if="commentDetail.img">
  7426. <span>教师批注</span>
  7427. <img
  7428. :src="commentDetail.img"
  7429. alt=""
  7430. @click="previewImg(commentDetail.img)"
  7431. />
  7432. <span
  7433. class="deleteImg"
  7434. v-if="tType == 1 || tType == 4"
  7435. @click.stop="deletePicturePaint(commentDetail.wid)"
  7436. style="
  7437. font-size: 14px;
  7438. width: auto !important;
  7439. color: #b4b4b4;
  7440. top: unset;
  7441. bottom: 0;
  7442. border: none;
  7443. padding: 0;
  7444. height: auto !important;
  7445. margin: 0;
  7446. "
  7447. >删除</span
  7448. >
  7449. </div>
  7450. </div>
  7451. <div class="commentBox">
  7452. <div class="pl">评论:</div>
  7453. <div style="max-height: 200px; overflow: auto">
  7454. <div
  7455. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  7456. style="padding: 10px 0 0 0"
  7457. >
  7458. <div
  7459. class="studentDetail"
  7460. style="padding-top: 10px"
  7461. v-for="(co, coIndex) in commentDetail.commentJson"
  7462. :key="coIndex"
  7463. >
  7464. <div class="tx" style="min-width: 50px">
  7465. <img src="../assets/avatar.png" alt="" />
  7466. </div>
  7467. <div class="plPerson">
  7468. <div class="plName">
  7469. <div>{{ co.commentPeople }}</div>
  7470. <div style="margin-left: 5px">
  7471. {{ co.commentTime }}
  7472. </div>
  7473. <div
  7474. class="deleteComment"
  7475. v-if="userid == co.userid"
  7476. @click="deleteComment(co.wid)"
  7477. >
  7478. 删除
  7479. </div>
  7480. </div>
  7481. <div class="plContent">{{ co.commentText }}</div>
  7482. </div>
  7483. </div>
  7484. </div>
  7485. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  7486. </div>
  7487. </div>
  7488. <div style="margin-top: 10px">
  7489. <div class="displayBox">
  7490. <div
  7491. style="
  7492. color: #556db4;
  7493. font-size: 14px;
  7494. font-weight: bold;
  7495. padding-bottom: 10px;
  7496. "
  7497. >
  7498. 评价
  7499. </div>
  7500. <div class="easy_comment" v-if="false">
  7501. <div
  7502. v-for="(p, pIndex) in PlTextList"
  7503. :key="pIndex"
  7504. @click="fastText(p, 1)"
  7505. >
  7506. {{ p }}
  7507. </div>
  7508. </div>
  7509. </div>
  7510. <div>
  7511. <textarea
  7512. rows="3"
  7513. class="pj"
  7514. style="padding: 10px 5px"
  7515. cols
  7516. v-model="commentText"
  7517. placeholder="请输入对该学生的评价"
  7518. ></textarea>
  7519. </div>
  7520. </div>
  7521. <div slot="footer">
  7522. <el-button
  7523. @click="
  7524. (commentDialogVisible = false),
  7525. (commentIndexJson = {}),
  7526. videoDetail.sources && videoDetail.sources[0]
  7527. ? (videoDetail.sources[0].src = '')
  7528. : ''
  7529. "
  7530. >取 消</el-button
  7531. >
  7532. <el-button
  7533. type="primary"
  7534. @click="addComment(commentDetail.wid, userid, 2)"
  7535. >确 定</el-button
  7536. >
  7537. </div>
  7538. </el-dialog>
  7539. <el-dialog
  7540. title="查看文档"
  7541. :visible.sync="fullDialogVisible"
  7542. :append-to-body="true"
  7543. width="100%"
  7544. :before-close="handleClose"
  7545. :show-close="false"
  7546. class="dialog_diy full_diy"
  7547. :class="{ full_diy2: fulltype == 3 }"
  7548. >
  7549. <div slot="title" class="header-title">
  7550. <div style="color: #fff">查看文档</div>
  7551. <div
  7552. @click="fullDialogVisible = false"
  7553. style="
  7554. cursor: pointer;
  7555. position: absolute;
  7556. top: 20px;
  7557. right: 20px;
  7558. color: #fff;
  7559. "
  7560. >
  7561. 退出全屏
  7562. </div>
  7563. </div>
  7564. <div style="height: 100%">
  7565. <div
  7566. class="wheel"
  7567. v-if="
  7568. fulltype == 2 &&
  7569. fullUrl.indexOf(
  7570. 'https://view.officeapps.live.com/op/view.aspx?src='
  7571. ) != -1
  7572. "
  7573. style="width: 95%; margin: 0 auto"
  7574. >
  7575. <iframe
  7576. style="width: 100%; height: 100%; border: none"
  7577. :src="fullUrl"
  7578. ></iframe>
  7579. </div>
  7580. <iframe
  7581. v-else-if="fulltype == 2"
  7582. style="width: 100%; height: 100%; border: none"
  7583. :src="fullUrl"
  7584. security="restricted"
  7585. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  7586. ></iframe>
  7587. <pdf
  7588. v-else-if="fulltype == 3"
  7589. :pdfUrl="fullUrl"
  7590. style="width: 100%; height: 100%; overflow: auto"
  7591. ></pdf>
  7592. <div
  7593. class="wheel"
  7594. v-if="fulltype == 1"
  7595. style="
  7596. box-shadow: 0 0 6px 1px #f2f2f2;
  7597. width: 100%;
  7598. background: #f1f1f1;
  7599. "
  7600. >
  7601. <div class="title" style="width: 100%; box-sizing: border-box">
  7602. 查看文档
  7603. </div>
  7604. <el-form class="textBox" style="height: 90%">
  7605. <el-form-item class="textTitle">
  7606. <div style="font-size: 22px">
  7607. {{ fullUrl.name }}
  7608. </div>
  7609. </el-form-item>
  7610. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  7611. <div
  7612. v-html="fullUrl.url"
  7613. class="textContent"
  7614. style="height: auto"
  7615. ></div>
  7616. </el-form>
  7617. </div>
  7618. </div>
  7619. <!-- <div slot="footer">
  7620. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  7621. </div> -->
  7622. </el-dialog>
  7623. <el-dialog
  7624. title="个人评价"
  7625. :visible.sync="studentEvalDialogVisible"
  7626. :append-to-body="true"
  7627. width="800px"
  7628. :before-close="handleClose"
  7629. class="dialog_diy"
  7630. >
  7631. <div class="evalCss">
  7632. <div class="nav">请选择星星进行评分</div>
  7633. <div class="middleBox" v-if="eScore.eStar">
  7634. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  7635. <div class="nameAndrate">
  7636. <div>{{ e.value }}</div>
  7637. <el-rate
  7638. v-model="eScore.eStar[eIndex]"
  7639. :disabled="isStar"
  7640. ></el-rate>
  7641. </div>
  7642. <div v-if="e.detail">{{ e.detail }}</div>
  7643. </div>
  7644. <div class="easy_comment" v-if="false">
  7645. <div
  7646. v-for="(p, pIndex) in PlTextList"
  7647. :key="pIndex"
  7648. @click="fastText(p, 2)"
  7649. >
  7650. {{ p }}
  7651. </div>
  7652. </div>
  7653. <div class="bz">
  7654. <textarea
  7655. :disabled="isStar"
  7656. rows="4"
  7657. class="pj"
  7658. style="
  7659. padding: 10px 5px;
  7660. width: 70%;
  7661. background: #f7f6f9;
  7662. font-size: 14px;
  7663. text-indent: 10px;
  7664. "
  7665. cols
  7666. v-model="eScore.eBzText"
  7667. placeholder="请输入评价内容..."
  7668. ></textarea>
  7669. </div>
  7670. </div>
  7671. </div>
  7672. <div slot="footer">
  7673. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  7674. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  7675. >确 定</el-button
  7676. >
  7677. </div>
  7678. </el-dialog>
  7679. <el-dialog
  7680. title="个人评价"
  7681. :visible.sync="studentEvalDialogVisibleTeacher"
  7682. :append-to-body="true"
  7683. width="800px"
  7684. :before-close="handleClose"
  7685. class="dialog_diy"
  7686. >
  7687. <div class="w_name">
  7688. 学生姓名:<span>{{ sStudent.student }}</span>
  7689. </div>
  7690. <div class="evalCss">
  7691. <div class="nav">请选择星星进行评分</div>
  7692. <div class="middleBox" v-if="eScore.eStar">
  7693. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  7694. <div class="nameAndrate">
  7695. <div>{{ e.value }}</div>
  7696. <el-rate
  7697. v-model="eScore.eStar[eIndex]"
  7698. :disabled="isStar"
  7699. ></el-rate>
  7700. </div>
  7701. <div v-if="e.detail">{{ e.detail }}</div>
  7702. </div>
  7703. <div class="easy_comment" v-if="false">
  7704. <div
  7705. v-for="(p, pIndex) in PlTextList"
  7706. :key="pIndex"
  7707. @click="fastText(p, 2)"
  7708. >
  7709. {{ p }}
  7710. </div>
  7711. </div>
  7712. <div class="bz">
  7713. <textarea
  7714. :disabled="isStar"
  7715. rows="4"
  7716. class="pj"
  7717. style="
  7718. padding: 10px 5px;
  7719. width: 70%;
  7720. background: #f7f6f9;
  7721. font-size: 14px;
  7722. text-indent: 10px;
  7723. "
  7724. cols
  7725. v-model="eScore.eBzText"
  7726. placeholder="请输入评价内容..."
  7727. ></textarea>
  7728. </div>
  7729. </div>
  7730. </div>
  7731. <div slot="footer">
  7732. <el-button @click="studentEvalDialogVisibleTeacher = false"
  7733. >取 消</el-button
  7734. >
  7735. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  7736. >确 定</el-button
  7737. >
  7738. </div>
  7739. </el-dialog>
  7740. <el-dialog
  7741. title="选择填空"
  7742. :visible.sync="dialogVisibleSelect"
  7743. :append-to-body="true"
  7744. width="90%"
  7745. :before-close="handleClose"
  7746. class="dialog_diy dialog_diy3"
  7747. >
  7748. <div v-if="selectJson">
  7749. <div class="select_box2">
  7750. <div class="select_box2_title">
  7751. <div>选择填空</div>
  7752. <div>请选择对应的答案进行答题!</div>
  7753. </div>
  7754. <div class="select_box2_box">
  7755. <div class="select_box2_img">
  7756. <img
  7757. :src="selectJson.url"
  7758. @click="previewImg(selectJson.url)"
  7759. alt=""
  7760. />
  7761. </div>
  7762. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  7763. <div style="padding-top: 15px">
  7764. <div class="select_answer_title" v-if="isSelect">
  7765. {{ selectAnswer.stu }}
  7766. </div>
  7767. <div class="select_answer_title" v-else>
  7768. 根据题目选择对应答案
  7769. </div>
  7770. <div
  7771. class="select_box2_answer_box"
  7772. v-for="(item2, checkIndex) in selectJson.select"
  7773. :key="checkIndex"
  7774. >
  7775. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  7776. <el-select
  7777. :disabled="isSelect"
  7778. v-model="selectAnswer.answer[checkIndex]"
  7779. placeholder="请选择正确答案"
  7780. >
  7781. <el-option
  7782. v-for="(e, eIndex) in selectJson.select"
  7783. :key="eIndex"
  7784. :label="e"
  7785. :value="eIndex"
  7786. >
  7787. </el-option>
  7788. </el-select>
  7789. </div>
  7790. </div>
  7791. <div
  7792. class="rightAnswerCss"
  7793. v-if="isSelect && (tType == 1 || tType == 4)"
  7794. >
  7795. <div
  7796. v-for="(a, aIndex) in selectJson.answer"
  7797. :key="aIndex"
  7798. class="rightAnswer"
  7799. >
  7800. <div
  7801. v-if="selectAnswer.answer[aIndex] === a"
  7802. style="color: #767de1"
  7803. >
  7804. 回答正确
  7805. </div>
  7806. <div v-else>回答错误</div>
  7807. <div
  7808. style="margin-left: 10px"
  7809. v-if="selectAnswer.answer[aIndex] !== a"
  7810. >
  7811. 正确答案:
  7812. </div>
  7813. <div
  7814. :class="
  7815. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  7816. "
  7817. >
  7818. {{ selectJson.select[a] }}
  7819. </div>
  7820. </div>
  7821. </div>
  7822. </div>
  7823. <div class="upAnswerCss">
  7824. <el-button
  7825. type="primary"
  7826. @click="addSelectAnswer"
  7827. v-if="!isSelect"
  7828. >提交答案</el-button
  7829. >
  7830. </div>
  7831. </div>
  7832. </div>
  7833. </div>
  7834. </el-dialog>
  7835. <el-dialog
  7836. title="选择填空"
  7837. :visible.sync="dialogVisibleSelectTeacher"
  7838. :append-to-body="true"
  7839. width="90%"
  7840. :before-close="handleClose"
  7841. class="dialog_diy dialog_diy3"
  7842. >
  7843. <div v-if="selectJson">
  7844. <div class="w_name">
  7845. 学生姓名:<span>{{ sStudent.student }}</span>
  7846. </div>
  7847. <div class="select_box2">
  7848. <div class="select_box2_title">
  7849. <div>选择填空</div>
  7850. <div>请选择对应的答案进行答题!</div>
  7851. </div>
  7852. <div class="select_box2_box">
  7853. <div class="select_box2_img">
  7854. <img
  7855. :src="selectJson.url"
  7856. @click="previewImg(selectJson.url)"
  7857. alt=""
  7858. />
  7859. </div>
  7860. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  7861. <div style="padding-top: 15px">
  7862. <div class="select_answer_title" v-if="isSelect">
  7863. {{ selectAnswer.stu }}
  7864. </div>
  7865. <div class="select_answer_title" v-else>
  7866. 根据题目选择对应答案
  7867. </div>
  7868. <div
  7869. class="select_box2_answer_box"
  7870. v-for="(item2, checkIndex) in selectJson.select"
  7871. :key="checkIndex"
  7872. >
  7873. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  7874. <el-select
  7875. :disabled="isSelect"
  7876. v-model="selectAnswer.answer[checkIndex]"
  7877. placeholder="请选择正确答案"
  7878. >
  7879. <el-option
  7880. v-for="(e, eIndex) in selectJson.select"
  7881. :key="eIndex"
  7882. :label="e"
  7883. :value="eIndex"
  7884. >
  7885. </el-option>
  7886. </el-select>
  7887. </div>
  7888. </div>
  7889. <div
  7890. class="rightAnswerCss"
  7891. v-if="isSelect && (tType == 1 || tType == 4)"
  7892. >
  7893. <div
  7894. v-for="(a, aIndex) in selectJson.answer"
  7895. :key="aIndex"
  7896. class="rightAnswer"
  7897. >
  7898. <div
  7899. v-if="selectAnswer.answer[aIndex] === a"
  7900. style="color: #767de1"
  7901. >
  7902. 回答正确
  7903. </div>
  7904. <div v-else>回答错误</div>
  7905. <div
  7906. style="margin-left: 10px"
  7907. v-if="selectAnswer.answer[aIndex] !== a"
  7908. >
  7909. 正确答案:
  7910. </div>
  7911. <div
  7912. :class="
  7913. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  7914. "
  7915. >
  7916. {{ selectJson.select[a] }}
  7917. </div>
  7918. </div>
  7919. </div>
  7920. </div>
  7921. <div class="upAnswerCss">
  7922. <el-button
  7923. type="primary"
  7924. @click="addSelectAnswerTeacher"
  7925. v-if="!isSelect"
  7926. >提交答案</el-button
  7927. >
  7928. </div>
  7929. </div>
  7930. </div>
  7931. </div>
  7932. </el-dialog>
  7933. <el-dialog
  7934. title="教师评分"
  7935. :visible.sync="dialogVisibleScore"
  7936. :append-to-body="true"
  7937. width="800px"
  7938. :before-close="handleClose"
  7939. class="dialog_diy"
  7940. >
  7941. <div>
  7942. <div class="studentDetail">
  7943. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  7944. <div class="nameAndTime">
  7945. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  7946. <div>{{ commentDetail.time }}</div>
  7947. </div>
  7948. </div>
  7949. <div
  7950. class="worksAnswer"
  7951. v-if="commentDetail.works && commentDetail.type == 2"
  7952. >
  7953. {{ JSON.parse(commentDetail.works)[0].answer }}
  7954. </div>
  7955. <div
  7956. class="worksAnswer"
  7957. v-if="commentDetail.works && commentDetail.type == 1"
  7958. >
  7959. <pdf
  7960. v-if="showPDF"
  7961. :pdfUrl="pptImgUrl"
  7962. style="width: 100%; height: 520px; overflow: auto"
  7963. :class="{ fullStyle: full }"
  7964. ></pdf>
  7965. <iframe
  7966. v-else
  7967. :src="pptImgUrl"
  7968. frameborder="0"
  7969. width="100%"
  7970. height="600"
  7971. :class="{ fullStyle: full }"
  7972. ></iframe>
  7973. </div>
  7974. <div
  7975. class="worksAnswer"
  7976. v-if="commentDetail.works && commentDetail.type == 0"
  7977. >
  7978. <img
  7979. :src="commentDetail.works"
  7980. alt=""
  7981. @click="previewImg(commentDetail.works)"
  7982. />
  7983. </div>
  7984. <div
  7985. class="worksAnswer"
  7986. v-if="commentDetail.works && commentDetail.type == 3"
  7987. >
  7988. <video-player
  7989. class="video-player vjs-custom-skin"
  7990. :playsinline="true"
  7991. :options="videoDetail"
  7992. @play="onPlayerPlay($event)"
  7993. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  7994. ></video-player>
  7995. </div>
  7996. <div
  7997. class="worksAnswer codeFileBox"
  7998. v-if="commentDetail.works && commentDetail.type == 12"
  7999. @click="downloadFile(commentDetail.works)"
  8000. >
  8001. <img src="../assets/icon/codeFile.png" />
  8002. <div>点击下载文件</div>
  8003. </div>
  8004. <div
  8005. class="worksAnswer"
  8006. v-if="commentDetail.works && commentDetail.type == 13"
  8007. >
  8008. <div v-html="JSON.parse(commentDetail.works).text"></div>
  8009. </div>
  8010. <div class="scoreBox">
  8011. <span class="t">请输入分数</span>
  8012. <el-input-number
  8013. :disabled="courseDetail.userid != userid"
  8014. v-model="wScore"
  8015. :controls="false"
  8016. :min="0"
  8017. :max="100"
  8018. ></el-input-number>
  8019. </div>
  8020. <div class="scoreDetailBox">
  8021. <span class="t">评分评论</span>
  8022. <el-input
  8023. type="textarea"
  8024. :rows="5"
  8025. :disabled="courseDetail.userid != userid"
  8026. resize="none"
  8027. v-model="scoreDetail"
  8028. placeholder="请输入对学生的评价"
  8029. >
  8030. </el-input>
  8031. </div>
  8032. </div>
  8033. <span slot="footer" class="dialog-footer">
  8034. <el-button
  8035. @click="
  8036. (dialogVisibleScore = false),
  8037. (commentIndexJson = {}),
  8038. videoDetail.sources && videoDetail.sources[0]
  8039. ? (videoDetail.sources[0].src = '')
  8040. : ''
  8041. "
  8042. >取 消</el-button
  8043. >
  8044. <el-button
  8045. type="primary"
  8046. v-if="courseDetail.userid == userid"
  8047. @click="scoreWork(commentDetail.wid)"
  8048. >确 定
  8049. </el-button>
  8050. </span>
  8051. </el-dialog>
  8052. <el-dialog
  8053. title="连词成句"
  8054. :visible.sync="dialogVisibleSentence"
  8055. :append-to-body="true"
  8056. width="1000px"
  8057. :before-close="handleClose"
  8058. class="dialog_diy dialog_diy3"
  8059. >
  8060. <div>
  8061. <div class="sentenBox">
  8062. <div
  8063. v-for="(st, stIndex) in sentenceList"
  8064. :key="stIndex"
  8065. style="padding-bottom: 20px"
  8066. >
  8067. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  8068. <div class="cardList" v-if="st.chooseSenList">
  8069. <div class="cardBox">
  8070. <div
  8071. v-for="(r, rIndex) in st.chooseSenList"
  8072. :key="rIndex"
  8073. @click="returnCard(r, stIndex, rIndex)"
  8074. >
  8075. <el-tooltip
  8076. class="item"
  8077. effect="light"
  8078. :content="r"
  8079. placement="top"
  8080. v-if="r != '' && r != undefined"
  8081. >
  8082. <div
  8083. :class="{
  8084. isCard: r,
  8085. isChooseCard: r == '' || r == undefined,
  8086. }"
  8087. >
  8088. <div>{{ r }}</div>
  8089. </div>
  8090. </el-tooltip>
  8091. <div
  8092. :class="{
  8093. isCard: r,
  8094. isChooseCard: r == '' || r == undefined,
  8095. }"
  8096. v-else
  8097. >
  8098. <div>{{ r }}</div>
  8099. </div>
  8100. </div>
  8101. </div>
  8102. </div>
  8103. <div class="cardList" v-if="st.addChangeSen">
  8104. <div class="cardBox">
  8105. <div
  8106. v-for="(s, sIndex) in st.addChangeSen"
  8107. :key="sIndex"
  8108. @click="setRightAnswer(s, stIndex, sIndex)"
  8109. >
  8110. <el-tooltip
  8111. class="item"
  8112. effect="light"
  8113. :content="s"
  8114. placement="top"
  8115. v-if="s != '' && s != undefined"
  8116. >
  8117. <div
  8118. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8119. >
  8120. <div>{{ s }}</div>
  8121. </div>
  8122. </el-tooltip>
  8123. <div
  8124. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8125. v-else
  8126. >
  8127. <div>{{ s }}</div>
  8128. </div>
  8129. </div>
  8130. </div>
  8131. </div>
  8132. </div>
  8133. </div>
  8134. </div>
  8135. <span slot="footer" class="dialog-footer">
  8136. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  8137. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  8138. </span>
  8139. </el-dialog>
  8140. <el-dialog
  8141. title="连词成句"
  8142. :visible.sync="dialogVisibleSentenceTeacher"
  8143. :append-to-body="true"
  8144. width="1000px"
  8145. :before-close="handleClose"
  8146. class="dialog_diy dialog_diy3"
  8147. >
  8148. <div>
  8149. <div class="w_name">
  8150. 学生姓名:<span>{{ sStudent.student }}</span>
  8151. </div>
  8152. <div class="sentenBox">
  8153. <div
  8154. v-for="(st, stIndex) in sentenceList"
  8155. :key="stIndex"
  8156. style="padding-bottom: 20px"
  8157. >
  8158. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  8159. <div class="cardList" v-if="st.chooseSenList">
  8160. <div class="cardBox">
  8161. <div
  8162. v-for="(r, rIndex) in st.chooseSenList"
  8163. :key="rIndex"
  8164. @click="returnCard(r, stIndex, rIndex)"
  8165. >
  8166. <el-tooltip
  8167. class="item"
  8168. effect="light"
  8169. :content="r"
  8170. placement="top"
  8171. v-if="r != '' && r != undefined"
  8172. >
  8173. <div
  8174. :class="{
  8175. isCard: r,
  8176. isChooseCard: r == '' || r == undefined,
  8177. }"
  8178. >
  8179. <div>{{ r }}</div>
  8180. </div>
  8181. </el-tooltip>
  8182. <div
  8183. :class="{
  8184. isCard: r,
  8185. isChooseCard: r == '' || r == undefined,
  8186. }"
  8187. v-else
  8188. >
  8189. <div>{{ r }}</div>
  8190. </div>
  8191. </div>
  8192. </div>
  8193. </div>
  8194. <div class="cardList" v-if="st.addChangeSen">
  8195. <div class="cardBox">
  8196. <div
  8197. v-for="(s, sIndex) in st.addChangeSen"
  8198. :key="sIndex"
  8199. @click="setRightAnswer(s, stIndex, sIndex)"
  8200. >
  8201. <el-tooltip
  8202. class="item"
  8203. effect="light"
  8204. :content="s"
  8205. placement="top"
  8206. v-if="s != '' && s != undefined"
  8207. >
  8208. <div
  8209. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8210. >
  8211. <div>{{ s }}</div>
  8212. </div>
  8213. </el-tooltip>
  8214. <div
  8215. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8216. v-else
  8217. >
  8218. <div>{{ s }}</div>
  8219. </div>
  8220. </div>
  8221. </div>
  8222. </div>
  8223. </div>
  8224. </div>
  8225. </div>
  8226. <span slot="footer" class="dialog-footer">
  8227. <el-button @click="dialogVisibleSentenceTeacher = false"
  8228. >取 消</el-button
  8229. >
  8230. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  8231. </span>
  8232. </el-dialog>
  8233. <el-dialog
  8234. title="连词成句"
  8235. :visible.sync="dialogVisibleSentence1"
  8236. :append-to-body="true"
  8237. width="1000px"
  8238. :before-close="handleClose"
  8239. class="dialog_diy dialog_diy3"
  8240. >
  8241. <div>
  8242. <div class="sentenBox">
  8243. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  8244. {{ sentenceList1.stuName }}的作业
  8245. </div>
  8246. <div
  8247. v-for="(st, stIndex) in sentenceList1"
  8248. :key="stIndex"
  8249. style="padding-bottom: 20px"
  8250. >
  8251. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  8252. 第{{ stIndex + 1 }}题
  8253. </div>
  8254. <div class="isWrong">
  8255. <div class="cardList1" v-if="st.chooseSenList">
  8256. <div class="cardBox">
  8257. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  8258. <el-tooltip
  8259. class="item"
  8260. effect="light"
  8261. :content="s"
  8262. placement="top"
  8263. >
  8264. <div class="isCard">
  8265. <div>{{ s }}</div>
  8266. </div>
  8267. </el-tooltip>
  8268. </div>
  8269. </div>
  8270. <div class="cardAnswerBox">
  8271. 组成句子:{{ st.chooseSenList.join(" ") }}
  8272. </div>
  8273. </div>
  8274. <div v-if="tType == 2" class="isTj">
  8275. <div class="isTjImg">
  8276. <img src="../assets/icon/conSentences/right.png" alt="" />
  8277. </div>
  8278. <div>已提交</div>
  8279. </div>
  8280. <div
  8281. class="answerRight isTj"
  8282. v-if="
  8283. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  8284. (tType == 1 || tType == 4)
  8285. "
  8286. >
  8287. <div class="isTjImg">
  8288. <img src="../assets/icon/conSentences/right.png" alt="" />
  8289. </div>
  8290. <div>回答正确</div>
  8291. </div>
  8292. <div
  8293. class="answerRight isTj"
  8294. v-if="
  8295. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  8296. (tType == 1 || tType == 4)
  8297. "
  8298. >
  8299. <div class="isTjImg">
  8300. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  8301. </div>
  8302. <div>回答错误</div>
  8303. </div>
  8304. </div>
  8305. <div
  8306. v-if="
  8307. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  8308. (tType == 1 || tType == 4)
  8309. "
  8310. >
  8311. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  8312. <div
  8313. class="cardList"
  8314. v-if="st.rightAnswer"
  8315. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  8316. >
  8317. <div class="cardBox">
  8318. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  8319. <el-tooltip
  8320. class="item"
  8321. effect="light"
  8322. :content="r"
  8323. placement="top"
  8324. >
  8325. <div class="isCard1">
  8326. <div>{{ r }}</div>
  8327. </div>
  8328. </el-tooltip>
  8329. </div>
  8330. </div>
  8331. <div class="cardAnswerBox">
  8332. 组成句子:{{ st.rightAnswer.join(" ") }}
  8333. </div>
  8334. </div>
  8335. </div>
  8336. </div>
  8337. </div>
  8338. </div>
  8339. <span slot="footer" class="dialog-footer">
  8340. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  8341. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  8342. >确 定</el-button
  8343. >
  8344. </span>
  8345. </el-dialog>
  8346. <el-dialog
  8347. title="教师提交作业"
  8348. :visible.sync="dialogVisibleWorks"
  8349. :append-to-body="true"
  8350. width="500px"
  8351. :before-close="handleClose"
  8352. class="dialog_change"
  8353. >
  8354. <div class="marginT">
  8355. <div class="w_name">
  8356. 学生姓名:<span>{{ sStudent.student }}</span>
  8357. </div>
  8358. <div>上传文件</div>
  8359. <div
  8360. class="chapter_add"
  8361. @click="addImg($event)"
  8362. v-if="studyJuri[0].cover.length == 0"
  8363. >
  8364. <div class="up_photo">
  8365. <img src="../assets/uploadImg2.png" alt />
  8366. </div>
  8367. <!-- <input
  8368. type="file"
  8369. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8370. style="display: none"
  8371. @change="beforeUpload1($event, 1)"
  8372. /> -->
  8373. <input
  8374. type="file"
  8375. accept="*"
  8376. style="display: none"
  8377. @change="beforeUpload1($event, 1)"
  8378. />
  8379. </div>
  8380. <!-- capture="camera" -->
  8381. <div
  8382. class="chapter_add"
  8383. style="
  8384. display: flex;
  8385. width: 100%;
  8386. flex-direction: row;
  8387. flex-wrap: wrap;
  8388. justify-content: flex-start;
  8389. padding: 15px 0;
  8390. "
  8391. v-if="studyJuri[0].cover.length > 0"
  8392. >
  8393. <div class="upCover">
  8394. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  8395. <img :src="word" alt v-else-if="fileType == 1" />
  8396. <img :src="video" alt v-else-if="fileType == 2" />
  8397. <img :src="word2" alt v-else-if="fileType == 3" />
  8398. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8399. <div class="deleteWord" @click="clean(1)">
  8400. <img src="../assets/icon/deleteWorks.png" alt />
  8401. </div>
  8402. </div>
  8403. </div>
  8404. </div>
  8405. <div
  8406. class="upload_send"
  8407. @click="addCourseWorksTeacher(taskCount)"
  8408. v-if="!proVisible"
  8409. >
  8410. 提交
  8411. </div>
  8412. </el-dialog>
  8413. <ImgDraw
  8414. :drawShow="drawShow"
  8415. @closeDraw="closeDraw"
  8416. @addImgDraw="addImgDraw"
  8417. :bg="bg"
  8418. ></ImgDraw>
  8419. <el-dialog
  8420. title="表格"
  8421. :visible.sync="dialogVisibleTable"
  8422. :append-to-body="true"
  8423. width="95%"
  8424. :before-close="handleClose"
  8425. class="dialog_diy"
  8426. >
  8427. <el-form>
  8428. <div>表格内容</div>
  8429. <Table
  8430. v-model="tableJson.text"
  8431. @change="change"
  8432. v-if="dialogVisibleTable"
  8433. ></Table>
  8434. </el-form>
  8435. <span slot="footer" class="dialog-footer">
  8436. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  8437. <el-button type="primary" @click="addTableWorks">确定</el-button>
  8438. </span>
  8439. </el-dialog>
  8440. <el-dialog
  8441. title="表格"
  8442. :visible.sync="dialogVisibleTableTeacher"
  8443. :append-to-body="true"
  8444. width="95%"
  8445. :before-close="handleClose"
  8446. class="dialog_diy"
  8447. >
  8448. <el-form>
  8449. <div class="w_name">
  8450. 学生姓名:<span>{{ sStudent.student }}</span>
  8451. </div>
  8452. <div>表格内容</div>
  8453. <Table
  8454. v-model="tableJson.text"
  8455. @change="change"
  8456. v-if="dialogVisibleTableTeacher"
  8457. ></Table>
  8458. </el-form>
  8459. <span slot="footer" class="dialog-footer">
  8460. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  8461. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  8462. </span>
  8463. </el-dialog>
  8464. <el-dialog
  8465. title="文档"
  8466. :visible.sync="dialogVisibleWord"
  8467. :append-to-body="true"
  8468. width="95%"
  8469. :before-close="handleClose"
  8470. class="dialog_diy"
  8471. >
  8472. <el-form>
  8473. <div>文档内容</div>
  8474. <editor-bar
  8475. v-model="wordJson.text"
  8476. v-if="dialogVisibleWord"
  8477. ></editor-bar>
  8478. </el-form>
  8479. <span slot="footer" class="dialog-footer">
  8480. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  8481. <el-button type="primary" @click="addWordWorks">确定</el-button>
  8482. </span>
  8483. </el-dialog>
  8484. <el-dialog
  8485. title="文档"
  8486. :visible.sync="dialogVisibleWordTeacher"
  8487. :append-to-body="true"
  8488. width="95%"
  8489. :before-close="handleClose"
  8490. class="dialog_diy"
  8491. >
  8492. <el-form>
  8493. <div class="w_name">
  8494. 学生姓名:<span>{{ sStudent.student }}</span>
  8495. </div>
  8496. <div>文档内容</div>
  8497. <editor-bar
  8498. v-model="wordJson.text"
  8499. v-if="dialogVisibleWordTeacher"
  8500. ></editor-bar>
  8501. </el-form>
  8502. <span slot="footer" class="dialog-footer">
  8503. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  8504. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  8505. </span>
  8506. </el-dialog>
  8507. <el-dialog
  8508. title="表格"
  8509. :visible.sync="dialogVisibleTable2"
  8510. :append-to-body="true"
  8511. width="95%"
  8512. :before-close="handleClose"
  8513. class="dialog_diy"
  8514. >
  8515. <el-form>
  8516. <div class="cont" v-html="tableJson.text"></div>
  8517. </el-form>
  8518. <span slot="footer" class="dialog-footer">
  8519. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  8520. </span>
  8521. </el-dialog>
  8522. <el-dialog
  8523. title="分组设置"
  8524. :visible.sync="dialogVisibleGroup"
  8525. :append-to-body="true"
  8526. width="95%"
  8527. :before-close="handleClose"
  8528. class="dialog_diy"
  8529. >
  8530. <div v-if="dialogVisibleGroup">
  8531. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  8532. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  8533. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  8534. </div>
  8535. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  8536. @click="lockChair">
  8537. 锁定位置
  8538. </div>
  8539. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  8540. 解锁位置
  8541. </div> -->
  8542. <div class="group_switch">
  8543. <span>开放选座</span>
  8544. <el-switch
  8545. v-model="islock"
  8546. active-text=""
  8547. class="switchCss"
  8548. @change="lockChair"
  8549. ></el-switch>
  8550. </div>
  8551. <div
  8552. type="primary"
  8553. @click="updateGroup"
  8554. class="returnBtn"
  8555. style="background-color: #225bc7"
  8556. >
  8557. 分组设置
  8558. </div>
  8559. </div>
  8560. <div>
  8561. <div
  8562. class="g_d_box"
  8563. v-if="groupJson.group && groupStudent[toolindex]"
  8564. >
  8565. <div
  8566. class="g_d_group"
  8567. v-for="(g, gindex) in groupJson.group"
  8568. :key="gindex"
  8569. >
  8570. <div class="g_d_group_chair">
  8571. <div v-if="groupJson.number > 1">
  8572. <span
  8573. :class="{
  8574. isChair:
  8575. groupStudent[toolindex][gindex] &&
  8576. groupStudent[toolindex][gindex][0],
  8577. updateChair:
  8578. courseDetail.userid == userid &&
  8579. groupStudent[toolindex][gindex] &&
  8580. groupStudent[toolindex][gindex][0] &&
  8581. groupJson.islock == 2,
  8582. }"
  8583. ><span
  8584. class="updateChairBtn"
  8585. @click="
  8586. updateGroupChair(
  8587. groupStudent[toolindex][gindex] &&
  8588. groupStudent[toolindex][gindex][0]
  8589. )
  8590. "
  8591. >修改</span
  8592. ></span
  8593. ><span>{{
  8594. groupStudent[toolindex][gindex] &&
  8595. groupStudent[toolindex][gindex][0]
  8596. ? groupStudent[toolindex][gindex] &&
  8597. groupStudent[toolindex][gindex][0].name
  8598. : "空位置"
  8599. }}</span>
  8600. </div>
  8601. <div v-if="groupJson.number > 4">
  8602. <span
  8603. :class="{
  8604. isChair:
  8605. groupStudent[toolindex][gindex] &&
  8606. groupStudent[toolindex][gindex][4],
  8607. updateChair:
  8608. courseDetail.userid == userid &&
  8609. groupStudent[toolindex][gindex] &&
  8610. groupStudent[toolindex][gindex][4] &&
  8611. groupJson.islock == 2,
  8612. }"
  8613. ><span
  8614. class="updateChairBtn"
  8615. @click="
  8616. updateGroupChair(
  8617. groupStudent[toolindex][gindex] &&
  8618. groupStudent[toolindex][gindex][4]
  8619. )
  8620. "
  8621. >修改</span
  8622. ></span
  8623. ><span>{{
  8624. groupStudent[toolindex][gindex] &&
  8625. groupStudent[toolindex][gindex][4]
  8626. ? groupStudent[toolindex][gindex] &&
  8627. groupStudent[toolindex][gindex][4].name
  8628. : "空位置"
  8629. }}</span>
  8630. </div>
  8631. <div v-if="groupJson.number > 8">
  8632. <span
  8633. :class="{
  8634. isChair:
  8635. groupStudent[toolindex][gindex] &&
  8636. groupStudent[toolindex][gindex][8],
  8637. updateChair:
  8638. courseDetail.userid == userid &&
  8639. groupStudent[toolindex][gindex] &&
  8640. groupStudent[toolindex][gindex][8] &&
  8641. groupJson.islock == 2,
  8642. }"
  8643. ><span
  8644. class="updateChairBtn"
  8645. @click="
  8646. updateGroupChair(
  8647. groupStudent[toolindex][gindex] &&
  8648. groupStudent[toolindex][gindex][8]
  8649. )
  8650. "
  8651. >修改</span
  8652. ></span
  8653. ><span>{{
  8654. groupStudent[toolindex][gindex] &&
  8655. groupStudent[toolindex][gindex][8]
  8656. ? groupStudent[toolindex][gindex] &&
  8657. groupStudent[toolindex][gindex][8].name
  8658. : "空位置"
  8659. }}</span>
  8660. </div>
  8661. </div>
  8662. <div class="g_d_group_tableBox">
  8663. <div class="g_d_group_chair2">
  8664. <div v-if="groupJson.number > 2">
  8665. <span
  8666. :class="{
  8667. isChair:
  8668. groupStudent[toolindex][gindex] &&
  8669. groupStudent[toolindex][gindex][2],
  8670. updateChair:
  8671. courseDetail.userid == userid &&
  8672. groupStudent[toolindex][gindex] &&
  8673. groupStudent[toolindex][gindex][2] &&
  8674. groupJson.islock == 2,
  8675. }"
  8676. ><span
  8677. class="updateChairBtn"
  8678. @click="
  8679. updateGroupChair(
  8680. groupStudent[toolindex][gindex] &&
  8681. groupStudent[toolindex][gindex][2]
  8682. )
  8683. "
  8684. >修改</span
  8685. ></span
  8686. ><span>{{
  8687. groupStudent[toolindex][gindex] &&
  8688. groupStudent[toolindex][gindex][2]
  8689. ? groupStudent[toolindex][gindex] &&
  8690. groupStudent[toolindex][gindex][2].name
  8691. : "空位置"
  8692. }}</span>
  8693. </div>
  8694. <div v-if="groupJson.number > 6">
  8695. <span
  8696. :class="{
  8697. isChair:
  8698. groupStudent[toolindex][gindex] &&
  8699. groupStudent[toolindex][gindex][6],
  8700. updateChair:
  8701. courseDetail.userid == userid &&
  8702. groupStudent[toolindex][gindex] &&
  8703. groupStudent[toolindex][gindex][6] &&
  8704. groupJson.islock == 2,
  8705. }"
  8706. ><span
  8707. class="updateChairBtn"
  8708. @click="
  8709. updateGroupChair(
  8710. groupStudent[toolindex][gindex] &&
  8711. groupStudent[toolindex][gindex][6]
  8712. )
  8713. "
  8714. >修改</span
  8715. ></span
  8716. ><span>{{
  8717. groupStudent[toolindex][gindex] &&
  8718. groupStudent[toolindex][gindex][6]
  8719. ? groupStudent[toolindex][gindex] &&
  8720. groupStudent[toolindex][gindex][6].name
  8721. : "空位置"
  8722. }}</span>
  8723. </div>
  8724. </div>
  8725. <div class="g_d_group_table">
  8726. <div>
  8727. {{ g.name }}
  8728. </div>
  8729. <div>
  8730. <div
  8731. v-if="
  8732. courseDetail.userid == userid && groupJson.islock == 2
  8733. "
  8734. @click="deleteGroupChair(gindex)"
  8735. >
  8736. 移除组员
  8737. </div>
  8738. <div
  8739. @click="selectGroup(gindex)"
  8740. v-else-if="
  8741. groupStudentUid[toolindex] &&
  8742. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  8743. "
  8744. >
  8745. 加入分组
  8746. </div>
  8747. <div
  8748. @click="
  8749. exitGroup(
  8750. groupStudent[toolindex][gindex] &&
  8751. groupStudent[toolindex][gindex][
  8752. groupStudentUid[toolindex][gindex].indexOf(userid)
  8753. ].id
  8754. )
  8755. "
  8756. v-else-if="
  8757. groupStudentUid[toolindex] &&
  8758. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  8759. "
  8760. >
  8761. 退出分组
  8762. </div>
  8763. </div>
  8764. </div>
  8765. <div class="g_d_group_chair2">
  8766. <div v-if="groupJson.number > 3">
  8767. <span
  8768. :class="{
  8769. isChair:
  8770. groupStudent[toolindex][gindex] &&
  8771. groupStudent[toolindex][gindex][3],
  8772. updateChair:
  8773. courseDetail.userid == userid &&
  8774. groupStudent[toolindex][gindex] &&
  8775. groupStudent[toolindex][gindex][3] &&
  8776. groupJson.islock == 2,
  8777. }"
  8778. ><span
  8779. class="updateChairBtn"
  8780. @click="
  8781. updateGroupChair(
  8782. groupStudent[toolindex][gindex] &&
  8783. groupStudent[toolindex][gindex][3]
  8784. )
  8785. "
  8786. >修改</span
  8787. ></span
  8788. ><span>{{
  8789. groupStudent[toolindex][gindex] &&
  8790. groupStudent[toolindex][gindex][3]
  8791. ? groupStudent[toolindex][gindex] &&
  8792. groupStudent[toolindex][gindex][3].name
  8793. : "空位置"
  8794. }}</span>
  8795. </div>
  8796. <div v-if="groupJson.number > 7">
  8797. <span
  8798. :class="{
  8799. isChair:
  8800. groupStudent[toolindex][gindex] &&
  8801. groupStudent[toolindex][gindex][7],
  8802. updateChair:
  8803. courseDetail.userid == userid &&
  8804. groupStudent[toolindex][gindex] &&
  8805. groupStudent[toolindex][gindex][7] &&
  8806. groupJson.islock == 2,
  8807. }"
  8808. ><span
  8809. class="updateChairBtn"
  8810. @click="
  8811. updateGroupChair(
  8812. groupStudent[toolindex][gindex] &&
  8813. groupStudent[toolindex][gindex][7]
  8814. )
  8815. "
  8816. >修改</span
  8817. ></span
  8818. ><span>{{
  8819. groupStudent[toolindex][gindex] &&
  8820. groupStudent[toolindex][gindex][7]
  8821. ? groupStudent[toolindex][gindex] &&
  8822. groupStudent[toolindex][gindex][7].name
  8823. : "空位置"
  8824. }}</span>
  8825. </div>
  8826. </div>
  8827. </div>
  8828. <div class="g_d_group_chair">
  8829. <div v-if="groupJson.number > 1">
  8830. <span
  8831. :class="{
  8832. isChair:
  8833. groupStudent[toolindex][gindex] &&
  8834. groupStudent[toolindex][gindex][1],
  8835. updateChair:
  8836. courseDetail.userid == userid &&
  8837. groupStudent[toolindex][gindex] &&
  8838. groupStudent[toolindex][gindex][1] &&
  8839. groupJson.islock == 2,
  8840. }"
  8841. ><span
  8842. class="updateChairBtn"
  8843. @click="
  8844. updateGroupChair(
  8845. groupStudent[toolindex][gindex] &&
  8846. groupStudent[toolindex][gindex][1]
  8847. )
  8848. "
  8849. >修改</span
  8850. ></span
  8851. ><span>{{
  8852. groupStudent[toolindex][gindex] &&
  8853. groupStudent[toolindex][gindex][1]
  8854. ? groupStudent[toolindex][gindex] &&
  8855. groupStudent[toolindex][gindex][1].name
  8856. : "空位置"
  8857. }}</span>
  8858. </div>
  8859. <div v-if="groupJson.number > 5">
  8860. <span
  8861. :class="{
  8862. isChair:
  8863. groupStudent[toolindex][gindex] &&
  8864. groupStudent[toolindex][gindex][5],
  8865. updateChair:
  8866. courseDetail.userid == userid &&
  8867. groupStudent[toolindex][gindex] &&
  8868. groupStudent[toolindex][gindex][5] &&
  8869. groupJson.islock == 2,
  8870. }"
  8871. ><span
  8872. class="updateChairBtn"
  8873. @click="
  8874. updateGroupChair(
  8875. groupStudent[toolindex][gindex] &&
  8876. groupStudent[toolindex][gindex][5]
  8877. )
  8878. "
  8879. >修改</span
  8880. ></span
  8881. ><span>{{
  8882. groupStudent[toolindex][gindex] &&
  8883. groupStudent[toolindex][gindex][5]
  8884. ? groupStudent[toolindex][gindex] &&
  8885. groupStudent[toolindex][gindex][5].name
  8886. : "空位置"
  8887. }}</span>
  8888. </div>
  8889. <div v-if="groupJson.number > 9">
  8890. <span
  8891. :class="{
  8892. isChair:
  8893. groupStudent[toolindex][gindex] &&
  8894. groupStudent[toolindex][gindex][9],
  8895. updateChair:
  8896. courseDetail.userid == userid &&
  8897. groupStudent[toolindex][gindex] &&
  8898. groupStudent[toolindex][gindex][9] &&
  8899. groupJson.islock == 2,
  8900. }"
  8901. ><span
  8902. class="updateChairBtn"
  8903. @click="
  8904. updateGroupChair(
  8905. groupStudent[toolindex][gindex] &&
  8906. groupStudent[toolindex][gindex][9]
  8907. )
  8908. "
  8909. >修改</span
  8910. ></span
  8911. ><span>{{
  8912. groupStudent[toolindex][gindex] &&
  8913. groupStudent[toolindex][gindex][9]
  8914. ? groupStudent[toolindex][gindex] &&
  8915. groupStudent[toolindex][gindex][9].name
  8916. : "空位置"
  8917. }}</span>
  8918. </div>
  8919. </div>
  8920. </div>
  8921. </div>
  8922. </div>
  8923. </div>
  8924. <span slot="footer" class="dialog-footer">
  8925. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  8926. </span>
  8927. </el-dialog>
  8928. <el-dialog
  8929. title="分组设置"
  8930. :visible.sync="dialogVisibleGroup2"
  8931. :append-to-body="true"
  8932. width="650px"
  8933. :before-close="handleClose"
  8934. class="dialog_diy"
  8935. >
  8936. <div class="groupBox">
  8937. <div v-if="groupJson2.group" class="groupContent">
  8938. <div class="groupTitle">请设置小组数量</div>
  8939. <div
  8940. v-for="(item, index) in groupJson2.group"
  8941. :key="index"
  8942. class="groupName"
  8943. >
  8944. <span class="groupn">组{{ index + 1 }}名称:</span>
  8945. <el-input
  8946. v-model="item.name"
  8947. placeholder="请输入名称..."
  8948. style="width: 250px"
  8949. ></el-input>
  8950. <!-- <div class="groupBtn">
  8951. <el-button type="primary" size="small" @click="addGroup(index)">
  8952. 添加</el-button>
  8953. <el-button type="primary" size="small" @click="deleteGroup(index)"
  8954. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  8955. </div> -->
  8956. </div>
  8957. </div>
  8958. <div class="groupContent">
  8959. <div class="groupTitle">请设置每组人数数量</div>
  8960. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  8961. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  8962. <el-input-number
  8963. v-model="groupJson2.number"
  8964. :controls="false"
  8965. :min="2"
  8966. :max="10"
  8967. placeholder="2-10人以内"
  8968. ></el-input-number>
  8969. </div>
  8970. </div>
  8971. <span slot="footer" class="dialog-footer">
  8972. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  8973. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  8974. </span>
  8975. </el-dialog>
  8976. <el-dialog
  8977. title="作业提交"
  8978. :visible.sync="dialogVisibleGroupWork"
  8979. :append-to-body="true"
  8980. width="500px"
  8981. :before-close="handleClose"
  8982. class="dialog_change"
  8983. >
  8984. <div class="marginT">
  8985. <div>上传文件</div>
  8986. <div
  8987. class="chapter_add"
  8988. @click="addImg($event)"
  8989. v-if="studyJuri[0].cover.length == 0"
  8990. >
  8991. <div class="up_photo">
  8992. <img src="../assets/icon/uploadImg.png" alt />
  8993. </div>
  8994. <!-- <input
  8995. type="file"
  8996. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8997. style="display: none"
  8998. @change="beforeUpload1($event, 1)"
  8999. /> -->
  9000. <input
  9001. type="file"
  9002. accept="*"
  9003. style="display: none"
  9004. @change="beforeUpload1($event, 1)"
  9005. />
  9006. </div>
  9007. <!-- capture="camera" -->
  9008. <div
  9009. class="chapter_add"
  9010. style="
  9011. display: flex;
  9012. width: 100%;
  9013. flex-direction: row;
  9014. flex-wrap: wrap;
  9015. justify-content: flex-start;
  9016. padding: 15px 0;
  9017. "
  9018. v-if="studyJuri[0].cover.length > 0"
  9019. >
  9020. <div class="upCover">
  9021. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  9022. <img :src="word" alt v-else-if="fileType == 1" />
  9023. <img :src="video" alt v-else-if="fileType == 2" />
  9024. <img :src="word2" alt v-else-if="fileType == 3" />
  9025. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9026. <div class="deleteWord" @click="clean(1)">
  9027. <img src="../assets/icon/deleteWorks.png" alt />
  9028. </div>
  9029. </div>
  9030. </div>
  9031. </div>
  9032. <div
  9033. class="upload_send"
  9034. @click="addCourseWorks2(taskCount)"
  9035. v-if="!proVisible"
  9036. >
  9037. 提交
  9038. </div>
  9039. </el-dialog>
  9040. <el-dialog
  9041. title="修改分组"
  9042. :visible.sync="dialogVisibleUpdateGroup"
  9043. :append-to-body="true"
  9044. width="350px"
  9045. :before-close="handleClose"
  9046. class="dialog_diy"
  9047. >
  9048. <div>
  9049. <h2>
  9050. {{ this.updateGroupUser.name }}
  9051. </h2>
  9052. <div style="color: rgb(171 171 171); margin-top: 10px">
  9053. 请选择要进入的分组
  9054. </div>
  9055. <el-radio-group v-model="checkChair">
  9056. <el-radio
  9057. style="display: block; margin-top: 20px"
  9058. v-for="(item, index) in updateGroupArray"
  9059. :label="item.label"
  9060. :key="index"
  9061. >{{ item.name }}</el-radio
  9062. >
  9063. </el-radio-group>
  9064. </div>
  9065. <span slot="footer" class="dialog-footer">
  9066. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  9067. <el-button type="primary" @click="updateChair">确定</el-button>
  9068. </span>
  9069. </el-dialog>
  9070. <el-dialog
  9071. title="移除组员"
  9072. :visible.sync="dialogVisibleDeleteGroup"
  9073. :append-to-body="true"
  9074. width="350px"
  9075. :before-close="handleClose"
  9076. class="dialog_diy"
  9077. >
  9078. <div>
  9079. <h2>
  9080. {{ this.deleteGroupArray.name }}
  9081. </h2>
  9082. <div style="color: rgb(171 171 171); margin-top: 10px">
  9083. 请选择要删除的组员
  9084. </div>
  9085. <el-checkbox-group v-model="checkDeleteGroup">
  9086. <el-checkbox
  9087. style="display: block; margin-top: 20px"
  9088. v-for="(item, index) in deleteGroupUser"
  9089. :label="item.userid"
  9090. :key="index"
  9091. >{{ item.name }}</el-checkbox
  9092. >
  9093. </el-checkbox-group>
  9094. </div>
  9095. <span slot="footer" class="dialog-footer">
  9096. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  9097. <el-button type="primary" @click="deleteChair">确定</el-button>
  9098. </span>
  9099. </el-dialog>
  9100. <el-dialog
  9101. title="批量上传"
  9102. :visible.sync="dialogVisiblePl"
  9103. :append-to-body="true"
  9104. width="700px"
  9105. :before-close="handleClose"
  9106. class="dialog_change"
  9107. >
  9108. <div class="marginT">
  9109. <div>上传文件</div>
  9110. <div class="plworkBox">
  9111. <div
  9112. class="chapter_add"
  9113. style="
  9114. display: flex;
  9115. width: 150px;
  9116. flex-direction: row;
  9117. flex-wrap: wrap;
  9118. justify-content: flex-start;
  9119. margin: 0 10px 10px 0;
  9120. "
  9121. v-for="(item, index) in plworkFile"
  9122. :key="index"
  9123. >
  9124. <div class="upCover2">
  9125. <img :src="item.url" alt v-if="item.fileType == 1" />
  9126. <img :src="word" alt v-else-if="item.fileType == 4" />
  9127. <img :src="video" alt v-else />
  9128. <!-- <span class="picName">{{ item.name }}</span> -->
  9129. <!-- <el-input
  9130. v-model="item.username"
  9131. placeholder="请输入学生名字"
  9132. style="margin-top: 10px"
  9133. ></el-input> -->
  9134. <el-select
  9135. style="margin-top: 10px"
  9136. v-model="item.username"
  9137. filterable
  9138. allow-create
  9139. placeholder="请选择学生"
  9140. >
  9141. <el-option
  9142. v-for="item1 in checkUpload()"
  9143. :key="item1.userid"
  9144. :label="item1.name ? item1.name : item1.username"
  9145. :value="item1.userid"
  9146. >
  9147. </el-option>
  9148. </el-select>
  9149. <div class="deleteWord" @click="clean2(index)">
  9150. <img src="../assets/icon/deleteWorks.png" alt />
  9151. </div>
  9152. </div>
  9153. </div>
  9154. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  9155. <div class="up_photo2">
  9156. <img src="../assets/icon/plwork.png" alt />
  9157. <span>点击批量上传文件</span>
  9158. </div>
  9159. <input
  9160. type="file"
  9161. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9162. multiple="multiple"
  9163. style="display: none"
  9164. @change="beforeUpload3($event, 6)"
  9165. />
  9166. </div>
  9167. </div>
  9168. </div>
  9169. <!-- capture="camera" -->
  9170. <div
  9171. class="upload_send"
  9172. @click="addCourseWorksPl(taskCount)"
  9173. v-if="!proVisible2"
  9174. >
  9175. 提交
  9176. </div>
  9177. </el-dialog>
  9178. <el-dialog
  9179. title="修改名称"
  9180. :visible.sync="dialogVisibleSname"
  9181. width="500px"
  9182. :before-close="handleClose"
  9183. class="dialog_diy"
  9184. center
  9185. >
  9186. <div style="text-align: center">
  9187. <span class="tian1">名称</span>
  9188. <el-select
  9189. v-model="worksSName"
  9190. filterable
  9191. allow-create
  9192. style="width: 250px; margin: 15px 0px"
  9193. placeholder="请选择学生"
  9194. >
  9195. <el-option
  9196. v-for="item in uploadStudentJuri"
  9197. :key="item.userid"
  9198. :label="item.name ? item.name : item.username"
  9199. :value="item.userid"
  9200. >
  9201. </el-option>
  9202. </el-select>
  9203. <!-- <el-input
  9204. v-model="worksSName"
  9205. style="width: 250px; margin: 15px 0px"
  9206. ></el-input> -->
  9207. </div>
  9208. <span slot="footer" class="dialog-footer">
  9209. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  9210. <el-button type="primary" @click="updateName">确 定</el-button>
  9211. </span>
  9212. </el-dialog>
  9213. </div>
  9214. </template>
  9215. <script>
  9216. import "../common/aws-sdk-2.235.1.min.js";
  9217. // import pdf from "./components/pdf3";
  9218. import pdf from "./components/vpdf";
  9219. import AskStatic from "./components/askStatic";
  9220. import AskStatic2 from "./components/askStatic2";
  9221. import AnswerData2 from "./components/answerData2";
  9222. import AnswerData from "./components/answerData";
  9223. import EditorBar from "./tools/wangEnduit.vue";
  9224. import Table from "./tools/table.vue";
  9225. import Time from "./tools/time.vue";
  9226. import Mind from "./tools/jsmind.vue";
  9227. import Sunburst from "./tools/sunburst";
  9228. import SeeBoard from "./tools/seeBoard";
  9229. import * as imageConversion from "image-conversion";
  9230. import Audio from "./components/audio.vue";
  9231. import ImgDraw from "./tools/imgDraw/imgDraw";
  9232. import { Empty } from "element-ui";
  9233. import RecordRTC from "recordrtc";
  9234. export default {
  9235. components: {
  9236. EditorBar,
  9237. Time,
  9238. pdf,
  9239. AskStatic,
  9240. AskStatic2,
  9241. Mind,
  9242. Sunburst,
  9243. SeeBoard,
  9244. AnswerData2,
  9245. AnswerData,
  9246. Audio,
  9247. ImgDraw,
  9248. Table,
  9249. },
  9250. data() {
  9251. return {
  9252. bg: null,
  9253. drawShow: false,
  9254. dialogVisible: false,
  9255. dialogVisiblePl: false,
  9256. commentDialogVisible: false,
  9257. videoVisible: false,
  9258. isStar: false,
  9259. studentEvalDialogVisible: false,
  9260. studentEvalDialogVisibleTeacher: false,
  9261. dialogVisibleSelect: false,
  9262. dialogVisibleSelectTeacher: false,
  9263. dialogVisibleScore: false,
  9264. dialogVisibleSentence: false,
  9265. dialogVisibleSentenceTeacher: false,
  9266. dialogVisibleSentence1: false,
  9267. dialogVisibleWorks: false,
  9268. dialogVisibleTable: false,
  9269. dialogVisibleTableTeacher: false,
  9270. dialogVisibleWord: false,
  9271. dialogVisibleWordTeacher: false,
  9272. dialogVisibleTable2: false,
  9273. dialogVisibleGroupWork: false,
  9274. dialogVisibleUpdateGroup: false,
  9275. dialogVisibleDeleteGroup: false,
  9276. dialogVisibleSname: false,
  9277. worksSName: "",
  9278. classJuri: [],
  9279. uploadStudentJuri: [],
  9280. uploadCid: "",
  9281. snameWid: "",
  9282. sStudent: {},
  9283. sTool: "",
  9284. bzText: "",
  9285. commentDetail: [],
  9286. selectAnswer: [],
  9287. videoDetail: {},
  9288. selectJson: {},
  9289. eScore: { eBzText: "", eStar: [] },
  9290. id: this.$route.query.courseId,
  9291. userid: this.$route.query.userid,
  9292. classId: this.$route.query.cid,
  9293. // courseTypeLine: this.$route.query.type,
  9294. oid: this.$route.query.oid,
  9295. org: this.$route.query.org,
  9296. tType: this.$route.query.tType,
  9297. courseType: this.$route.query.type,
  9298. screenType: this.$route.query.screenType,
  9299. tcid2: this.$route.query.tcid,
  9300. tcid: "",
  9301. pptImgUrl: "",
  9302. pptImgUrl1: "",
  9303. commentText: "",
  9304. full: false,
  9305. sIsOpen: false,
  9306. IsLookOpen: false,
  9307. IsFollow: false,
  9308. pzDialog: false,
  9309. contentDialog: false,
  9310. mlDialog: false,
  9311. type: 1,
  9312. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  9313. sentenceList1: [],
  9314. tableJson: [],
  9315. wordJson: [],
  9316. vedio: [],
  9317. text: [],
  9318. textList: [],
  9319. line: [],
  9320. lineList: [],
  9321. chapTools: [],
  9322. chapToolList: [],
  9323. file: [],
  9324. fileC: [],
  9325. vedioTime: [],
  9326. upToolImg: "",
  9327. preTime: 0,
  9328. rateList: {
  9329. ca: 0,
  9330. },
  9331. rateParams: [],
  9332. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  9333. studyJuri: [
  9334. {
  9335. content: "",
  9336. cover: [],
  9337. upVedio: [],
  9338. upFile: [],
  9339. },
  9340. ],
  9341. plworkFile: [],
  9342. mr: require("../assets/vedioPic.png"),
  9343. word: require("../assets/icon/isWord.png"),
  9344. word2: require("../assets/icon/word2.png"),
  9345. video: require("../assets/icon/isVideo.png"),
  9346. noLikes: require("../assets/icon/comment/noLikes.png"),
  9347. likes: require("../assets/icon/comment/likes.png"),
  9348. scoreImg: require("../assets/score.png"),
  9349. courseDetail: {},
  9350. isSelect: false,
  9351. chapInfo: [],
  9352. chapInfoList: [],
  9353. taskCount: 0,
  9354. imgList: [],
  9355. noImgList: [],
  9356. pzList: [],
  9357. PlTextList: [
  9358. "Excellent!",
  9359. "nice!",
  9360. "很有创意!",
  9361. "还不错哦~",
  9362. "继续努力哦~",
  9363. ],
  9364. isClickNav: "",
  9365. navId: "",
  9366. playerOptions: {
  9367. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  9368. autoplay: false, //如果true,浏览器准备好时开始回放。
  9369. muted: false, // 默认情况下将会消除任何音频。
  9370. loop: false, // 导致视频一结束就重新开始。
  9371. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  9372. language: "zh-CN",
  9373. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  9374. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  9375. sources: [
  9376. {
  9377. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  9378. src: "", //url地址require("../../assets/media/aaa.mp4")
  9379. },
  9380. ],
  9381. // poster: require("../../assets/tu31.png"), //你的封面地址
  9382. // poster: dataRes.imgUrl, //你的封面地址
  9383. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  9384. controlBar: {
  9385. timeDivider: true, //当前时间和持续时间的分隔符
  9386. durationDisplay: true, //显示持续时间
  9387. remainingTimeDisplay: false, //是否显示剩余时间功能
  9388. fullscreenToggle: true, //全屏按钮
  9389. },
  9390. },
  9391. playerOptions1: {
  9392. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  9393. autoplay: false, //如果true,浏览器准备好时开始回放。
  9394. muted: false, // 默认情况下将会消除任何音频。
  9395. loop: false, // 导致视频一结束就重新开始。
  9396. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  9397. language: "zh-CN",
  9398. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  9399. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  9400. sources: [
  9401. {
  9402. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  9403. src: "", //url地址require("../../assets/media/aaa.mp4")
  9404. },
  9405. ],
  9406. // poster: require("../../assets/tu31.png"), //你的封面地址
  9407. // poster: dataRes.imgUrl, //你的封面地址
  9408. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  9409. controlBar: {
  9410. timeDivider: true, //当前时间和持续时间的分隔符
  9411. durationDisplay: true, //显示持续时间
  9412. remainingTimeDisplay: false, //是否显示剩余时间功能
  9413. fullscreenToggle: true, //全屏按钮
  9414. },
  9415. },
  9416. playerO: {},
  9417. noneBtnImg: false,
  9418. proVisible: false,
  9419. proVisible2: false,
  9420. progress: 0,
  9421. isFinishSize: 0,
  9422. isAllSize: 0,
  9423. questionAnswer: "",
  9424. answerQ: "", //问答标题
  9425. rateJson: [],
  9426. wbCount: 0,
  9427. wordCount: 0,
  9428. mindCount: 0,
  9429. askCount: 0,
  9430. noteCount: 0,
  9431. mindNetWorkCount: 0,
  9432. libraryCount: 0,
  9433. workCount: 0,
  9434. timeCount: 0,
  9435. answerCount: 0,
  9436. trainCount: 0,
  9437. evalCount: 0,
  9438. dialogImageUrl: "",
  9439. pictureDialog: false,
  9440. toolTypeList: [],
  9441. dialogVisible1: false,
  9442. dialogVisible2: false,
  9443. dialogVisible3: false,
  9444. dialogVisible6: false,
  9445. dialogVisible4: false,
  9446. isNoHomeWork: false,
  9447. dialogVisible5: false,
  9448. dialogVisible5Teacher: false,
  9449. dialogVisibleChoice: false,
  9450. dialogVisibleChoiceTeacher: false,
  9451. answerDialogVisible: false,
  9452. answerDialogVisibleTeacher: false,
  9453. juriVisible: false,
  9454. timeDialogVisible: false,
  9455. radio: [],
  9456. isAsk: false,
  9457. askJson: {
  9458. askCount: 1,
  9459. askTitle: "",
  9460. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9461. },
  9462. testJson: {},
  9463. checkJson: [],
  9464. askList: [],
  9465. answerList: [],
  9466. navList: [],
  9467. addPzDialog: false,
  9468. pzConText: "",
  9469. worksStudent: [],
  9470. isCloseList: [],
  9471. workStudent: [],
  9472. groupStudent: [],
  9473. groupStudentUid: [],
  9474. noWorksS: [],
  9475. isWorksS: [],
  9476. noWorksStudent: [],
  9477. toolindex: 0,
  9478. groupIndex: 0,
  9479. workTypeB: false,
  9480. workTypeC: false,
  9481. isAnswer: false,
  9482. timer: null,
  9483. opertimer: null,
  9484. showType: 0,
  9485. fileType: 0,
  9486. showPDF: false,
  9487. noteName: "",
  9488. evaJuri: [],
  9489. evalua: "",
  9490. eTitle: "",
  9491. eName: "",
  9492. eJson: {},
  9493. fid: "", //一级
  9494. sid: "", //二级
  9495. tid: "", //二级
  9496. typeMode: 1,
  9497. eJSONNum: 0,
  9498. Etype: 1,
  9499. data: {
  9500. meta: {
  9501. name: "example",
  9502. author: "dd@163.com",
  9503. version: "0.2",
  9504. },
  9505. format: "node_array",
  9506. data: [{ id: "root", isroot: true, topic: "" }],
  9507. },
  9508. fullDialogVisible: false,
  9509. fulltype: "",
  9510. fullUrl: "",
  9511. commentIndexJson: {},
  9512. Stbodywidth: 0,
  9513. pzType: 1,
  9514. wScore: 0,
  9515. scoreDetail: "",
  9516. videoStart: false,
  9517. recorder: null,
  9518. groupJson: {},
  9519. islock: false,
  9520. groupJson2: {},
  9521. dialogVisibleGroup: false,
  9522. dialogVisibleGroup2: false,
  9523. updateGroupArray: [],
  9524. updateGroupUser: {},
  9525. deleteGroupUser: [],
  9526. deleteGroupArray: {},
  9527. checkChair: "",
  9528. checkDeleteGroup: [],
  9529. inviteCode: "",
  9530. courseGroupStudent: [],
  9531. courseGroupStudentUid: [],
  9532. courseGroup: {},
  9533. isGroup: false,
  9534. };
  9535. },
  9536. methods: {
  9537. jump() {
  9538. window.parent.postMessage({ tools: "43" }, "*");
  9539. },
  9540. previewImg(url) {
  9541. this.$hevueImgPreview(url);
  9542. },
  9543. change(val) {
  9544. console.log(val);
  9545. },
  9546. goTo(path) {
  9547. this.$router.push(path);
  9548. },
  9549. handlePictureCardPreview(url) {
  9550. this.dialogImageUrl = url;
  9551. this.pictureDialog = true;
  9552. },
  9553. clean(type) {
  9554. if (type == 1) {
  9555. this.studyJuri[0].cover.splice(0, 1);
  9556. } else if (type == 2) {
  9557. this.studyJuri[0].upVedio.splice(0, 1);
  9558. } else {
  9559. this.studyJuri[0].upFile.splice(0, 1);
  9560. }
  9561. },
  9562. clean2(index) {
  9563. this.plworkFile.splice(index, 1);
  9564. },
  9565. handleClose(done) {
  9566. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  9567. this.videoDetail.sources[0].src = "";
  9568. }
  9569. this.commentIndexJson = {};
  9570. done();
  9571. },
  9572. fullTools() {
  9573. this.full = !this.full;
  9574. },
  9575. imgChange(file, fileList, type) {
  9576. if (type == 1) {
  9577. var _tmp = this.studyJuri[0].cover;
  9578. } else if (type == 2) {
  9579. var _tmp = this.studyJuri[0].upVedio;
  9580. } else {
  9581. var _tmp = this.studyJuri[0].upFile;
  9582. }
  9583. this.noneBtnImg = _tmp.length >= 1;
  9584. },
  9585. setContent(bool) {
  9586. this.contentDialog = bool;
  9587. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  9588. document.querySelector(".workd_media").style.height = "650px";
  9589. } else if (document.querySelector(".workd_media")) {
  9590. document.querySelector(".workd_media").style.height = "auto";
  9591. }
  9592. },
  9593. setContent2(bool) {
  9594. this.mlDialog = bool;
  9595. if (
  9596. bool &&
  9597. this.contentDialog &&
  9598. document.querySelector(".workd_media")
  9599. ) {
  9600. document.querySelector(".workd_media").style.height = "650px";
  9601. } else if (document.querySelector(".workd_media")) {
  9602. document.querySelector(".workd_media").style.height = "auto";
  9603. }
  9604. },
  9605. addImg(e) {
  9606. var el = e.currentTarget;
  9607. // this.$message.success('触发上传')
  9608. el.getElementsByTagName("input")[0].click();
  9609. e.target.value = "";
  9610. },
  9611. addSelectAnswer() {
  9612. let params = [
  9613. {
  9614. uid: this.userid,
  9615. cid: this.id,
  9616. stage: this.courseType,
  9617. task: this.taskCount,
  9618. tool: this.toolindex,
  9619. content: this.selectAnswer.answer,
  9620. type: 7,
  9621. },
  9622. ];
  9623. this.ajax
  9624. .post(this.$store.state.api + "addCourseWorks", params)
  9625. .then((res) => {
  9626. this.$message({
  9627. message: "提交成功",
  9628. type: "success",
  9629. });
  9630. this.dialogVisibleSelect = false;
  9631. // this.selectAnswer = {};
  9632. this.selectSWorks();
  9633. this.selectStudent();
  9634. })
  9635. .catch((err) => {
  9636. this.$message.error("提交失败");
  9637. console.error(err);
  9638. });
  9639. },
  9640. addSelectAnswerTeacher() {
  9641. let params = [
  9642. {
  9643. uid: this.sStudent.userid,
  9644. cid: this.id,
  9645. stage: this.courseType,
  9646. task: this.taskCount,
  9647. tool: this.toolindex,
  9648. content: this.selectAnswer.answer,
  9649. type: 7,
  9650. },
  9651. ];
  9652. this.ajax
  9653. .post(this.$store.state.api + "addCourseWorks", params)
  9654. .then((res) => {
  9655. this.$message({
  9656. message: "提交成功",
  9657. type: "success",
  9658. });
  9659. this.dialogVisibleSelectTeacher = false;
  9660. // this.selectAnswer = {};
  9661. this.selectSWorks();
  9662. this.selectStudent();
  9663. })
  9664. .catch((err) => {
  9665. this.$message.error("提交失败");
  9666. console.error(err);
  9667. });
  9668. },
  9669. addSenWorks() {
  9670. for (var i = 0; i < this.sentenceList.length; i++) {
  9671. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  9672. if (
  9673. this.sentenceList[i].chooseSenList[j] == undefined ||
  9674. this.sentenceList[i].chooseSenList[j] == ""
  9675. ) {
  9676. this.$message.error("请将答案填写完整!");
  9677. return;
  9678. }
  9679. }
  9680. }
  9681. let params = [
  9682. {
  9683. uid: this.userid,
  9684. cid: this.id,
  9685. stage: this.courseType,
  9686. task: this.taskCount,
  9687. tool: this.toolindex,
  9688. content: JSON.stringify(this.sentenceList),
  9689. type: 9,
  9690. },
  9691. ];
  9692. this.ajax
  9693. .post(this.$store.state.api + "addCourseWorks", params)
  9694. .then((res) => {
  9695. this.$message({
  9696. message: "提交成功",
  9697. type: "success",
  9698. });
  9699. this.dialogVisibleSentence = false;
  9700. // this.selectAnswer = {};
  9701. this.selectSWorks();
  9702. this.selectStudent();
  9703. })
  9704. .catch((err) => {
  9705. this.$message.error("提交失败");
  9706. console.error(err);
  9707. });
  9708. },
  9709. addSenWorksTeacher() {
  9710. for (var i = 0; i < this.sentenceList.length; i++) {
  9711. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  9712. if (
  9713. this.sentenceList[i].chooseSenList[j] == undefined ||
  9714. this.sentenceList[i].chooseSenList[j] == ""
  9715. ) {
  9716. this.$message.error("请将答案填写完整!");
  9717. return;
  9718. }
  9719. }
  9720. }
  9721. let params = [
  9722. {
  9723. uid: this.sStudent.userid,
  9724. cid: this.id,
  9725. stage: this.courseType,
  9726. task: this.taskCount,
  9727. tool: this.toolindex,
  9728. content: JSON.stringify(this.sentenceList),
  9729. type: 9,
  9730. },
  9731. ];
  9732. this.ajax
  9733. .post(this.$store.state.api + "addCourseWorks", params)
  9734. .then((res) => {
  9735. this.$message({
  9736. message: "提交成功",
  9737. type: "success",
  9738. });
  9739. this.dialogVisibleSentenceTeacher = false;
  9740. // this.selectAnswer = {};
  9741. this.selectSWorks();
  9742. this.selectStudent();
  9743. })
  9744. .catch((err) => {
  9745. this.$message.error("提交失败");
  9746. console.error(err);
  9747. });
  9748. },
  9749. addTableWorks() {
  9750. let params = [
  9751. {
  9752. uid: this.userid,
  9753. cid: this.id,
  9754. stage: this.courseType,
  9755. task: this.taskCount,
  9756. tool: this.toolindex,
  9757. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  9758. type: 10,
  9759. },
  9760. ];
  9761. this.ajax
  9762. .post(this.$store.state.api + "addCourseWorks", params)
  9763. .then((res) => {
  9764. this.$message({
  9765. message: "提交成功",
  9766. type: "success",
  9767. });
  9768. this.dialogVisibleTable = false;
  9769. // this.selectAnswer = {};
  9770. this.selectSWorks();
  9771. this.selectStudent();
  9772. })
  9773. .catch((err) => {
  9774. this.$message.error("提交失败");
  9775. console.error(err);
  9776. });
  9777. },
  9778. addTableWorksTeacher() {
  9779. let params = [
  9780. {
  9781. uid: this.sStudent.userid,
  9782. cid: this.id,
  9783. stage: this.courseType,
  9784. task: this.taskCount,
  9785. tool: this.toolindex,
  9786. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  9787. type: 10,
  9788. },
  9789. ];
  9790. this.ajax
  9791. .post(this.$store.state.api + "addCourseWorks", params)
  9792. .then((res) => {
  9793. this.$message({
  9794. message: "提交成功",
  9795. type: "success",
  9796. });
  9797. this.dialogVisibleTableTeacher = false;
  9798. // this.selectAnswer = {};
  9799. this.selectSWorks();
  9800. this.selectStudent();
  9801. })
  9802. .catch((err) => {
  9803. this.$message.error("提交失败");
  9804. console.error(err);
  9805. });
  9806. },
  9807. addWordWorks() {
  9808. let params = [{
  9809. uid: this.userid,
  9810. cid: this.id,
  9811. stage: this.courseType,
  9812. task: this.taskCount,
  9813. tool: this.toolindex,
  9814. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  9815. type: 13,
  9816. atool: 52,
  9817. }];
  9818. console.log(params);
  9819. this.ajax
  9820. .post(this.$store.state.api + "addCourseWorks3-2", params)
  9821. .then((res) => {
  9822. this.$message({
  9823. message: "提交成功",
  9824. type: "success",
  9825. });
  9826. this.dialogVisibleWord = false;
  9827. // this.selectAnswer = {};
  9828. this.selectSWorks();
  9829. this.selectStudent();
  9830. })
  9831. .catch((err) => {
  9832. this.$message.error("提交失败");
  9833. console.error(err);
  9834. });
  9835. },
  9836. addWordWorksTeacher() {
  9837. let params = [{
  9838. uid: this.sStudent.userid,
  9839. cid: this.id,
  9840. stage: this.courseType,
  9841. task: this.taskCount,
  9842. tool: this.toolindex,
  9843. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  9844. type: 13,
  9845. atool: 52,
  9846. }];
  9847. console.log(params);
  9848. this.ajax
  9849. .post(this.$store.state.api + "addCourseWorks3-2", params)
  9850. .then((res) => {
  9851. this.$message({
  9852. message: "提交成功",
  9853. type: "success",
  9854. });
  9855. this.dialogVisibleWordTeacher = false;
  9856. // this.selectAnswer = {};
  9857. this.selectSWorks();
  9858. this.selectStudent();
  9859. })
  9860. .catch((err) => {
  9861. this.$message.error("提交失败");
  9862. console.error(err);
  9863. });
  9864. },
  9865. addCourseWorks(i) {
  9866. var typesql;
  9867. if (this.fileType === 0) {
  9868. typesql = 1;
  9869. } else if (this.fileType === 1) {
  9870. typesql = 4;
  9871. } else if (this.fileType === 2) {
  9872. typesql = 5;
  9873. } else if (this.fileType === 3) {
  9874. typesql = 12;
  9875. }
  9876. if (!this.studyJuri[0].cover[0].url) {
  9877. this.$message.error("请上传文件");
  9878. return;
  9879. }
  9880. let params = [
  9881. {
  9882. uid: this.userid,
  9883. cid: this.id,
  9884. stage: this.courseType,
  9885. task: i,
  9886. tool: this.toolindex,
  9887. content: this.studyJuri[0].cover[0].url,
  9888. type: typesql,
  9889. },
  9890. ];
  9891. this.ajax
  9892. .post(this.$store.state.api + "addCourseWorksR", params)
  9893. .then((res) => {
  9894. this.$message({
  9895. message: "提交成功",
  9896. type: "success",
  9897. });
  9898. this.studyJuri[0].cover = [];
  9899. this.dialogVisible = false;
  9900. this.getCourseDetail(2);
  9901. })
  9902. .catch((err) => {
  9903. this.$message.error("提交失败");
  9904. console.error(err);
  9905. });
  9906. },
  9907. addCourseWorksPl(i) {
  9908. let _files = this.plworkFile;
  9909. var c = 1;
  9910. for (var k = 0; k < _files.length; k++) {
  9911. if (!_files[k].username) {
  9912. c = 2;
  9913. }
  9914. }
  9915. if (c == 2) {
  9916. this.$message.error("请填写学生姓名");
  9917. return;
  9918. }
  9919. let params = [
  9920. {
  9921. ateacher: this.userid,
  9922. cid: this.id,
  9923. stage: this.courseType,
  9924. task: i,
  9925. tool: this.toolindex,
  9926. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  9927. },
  9928. ];
  9929. this.ajax
  9930. .post(this.$store.state.api + "addCourseWorksPl", params)
  9931. .then((res) => {
  9932. this.$message({
  9933. message: "提交成功",
  9934. type: "success",
  9935. });
  9936. this.plworkFile = [];
  9937. this.dialogVisiblePl = false;
  9938. this.getCourseDetail(2);
  9939. })
  9940. .catch((err) => {
  9941. this.$message.error("提交失败");
  9942. console.error(err);
  9943. });
  9944. },
  9945. addCourseWorks2(i) {
  9946. var typesql;
  9947. if (this.fileType === 0) {
  9948. typesql = 0;
  9949. } else if (this.fileType === 1) {
  9950. typesql = 1;
  9951. } else if (this.fileType === 2) {
  9952. typesql = 3;
  9953. } else if (this.fileType === 3) {
  9954. typesql = 12;
  9955. }
  9956. if (!this.studyJuri[0].cover[0].url) {
  9957. this.$message.error("请上传文件");
  9958. return;
  9959. }
  9960. let params = [
  9961. {
  9962. uid: this.userid,
  9963. cid: this.id,
  9964. stage: this.courseType,
  9965. task: i,
  9966. tool: this.toolindex,
  9967. content: JSON.stringify({
  9968. type: typesql,
  9969. groupIndex: this.groupIndex,
  9970. url: this.studyJuri[0].cover[0].url,
  9971. }).replaceAll(/%/g, "%25"),
  9972. type: 11,
  9973. atool: 49,
  9974. text: "",
  9975. },
  9976. ];
  9977. this.ajax
  9978. .post(this.$store.state.api + "addCourseWorks5", params)
  9979. .then((res) => {
  9980. this.$message({
  9981. message: "提交成功",
  9982. type: "success",
  9983. });
  9984. this.studyJuri[0].cover = [];
  9985. this.dialogVisibleGroupWork = false;
  9986. this.getCourseDetail(2);
  9987. })
  9988. .catch((err) => {
  9989. this.$message.error("提交失败");
  9990. console.error(err);
  9991. });
  9992. },
  9993. addCourseWorksGong(i, data, tool) {
  9994. let params = [
  9995. {
  9996. uid: this.userid,
  9997. cid: this.id,
  9998. stage: this.courseType,
  9999. task: this.taskCount,
  10000. tool: i,
  10001. content: data,
  10002. type: 12,
  10003. atool: tool,
  10004. text: "",
  10005. },
  10006. ];
  10007. this.ajax
  10008. .post(this.$store.state.api + "addCourseWorks5", params)
  10009. .then((res) => {
  10010. this.$message({
  10011. message: "提交成功",
  10012. type: "success",
  10013. });
  10014. this.studyJuri[0].cover = [];
  10015. this.selectSWorks();
  10016. this.selectStudent();
  10017. })
  10018. .catch((err) => {
  10019. this.$message.error("提交失败");
  10020. console.error(err);
  10021. });
  10022. },
  10023. addCourseWorksGongTeacher(i, data, tool) {
  10024. let params = [
  10025. {
  10026. uid: this.sStudent.userid,
  10027. cid: this.id,
  10028. stage: this.courseType,
  10029. task: this.taskCount,
  10030. tool: i,
  10031. content: data,
  10032. type: 12,
  10033. atool: tool,
  10034. text: "",
  10035. },
  10036. ];
  10037. this.ajax
  10038. .post(this.$store.state.api + "addCourseWorks5", params)
  10039. .then((res) => {
  10040. this.$message({
  10041. message: "提交成功",
  10042. type: "success",
  10043. });
  10044. this.studyJuri[0].cover = [];
  10045. this.dialogVisibleWorks = false;
  10046. this.selectSWorks();
  10047. this.selectStudent();
  10048. })
  10049. .catch((err) => {
  10050. this.$message.error("提交失败");
  10051. console.error(err);
  10052. });
  10053. },
  10054. addCourseWorksGongPl(i, data, tool, type) {
  10055. let params = [
  10056. {
  10057. uid: this.sStudent.userid,
  10058. cid: this.id,
  10059. stage: this.courseType,
  10060. task: this.taskCount,
  10061. tool: i,
  10062. content: data,
  10063. type: type,
  10064. atool: tool,
  10065. text: "",
  10066. },
  10067. ];
  10068. this.ajax
  10069. .post(this.$store.state.api + "addCourseWorks5", params)
  10070. .then((res) => {
  10071. this.$message({
  10072. message: "提交成功",
  10073. type: "success",
  10074. });
  10075. this.studyJuri[0].cover = [];
  10076. this.dialogVisibleWorks = false;
  10077. this.selectSWorks();
  10078. this.selectStudent();
  10079. })
  10080. .catch((err) => {
  10081. this.$message.error("提交失败");
  10082. console.error(err);
  10083. });
  10084. },
  10085. addCourseWorksTeacher(i) {
  10086. var typesql;
  10087. if (this.sTool == 32 || this.sTool == 57) {
  10088. this.addCourseWorksGongTeacher(
  10089. this.toolindex,
  10090. this.studyJuri[0].cover[0].url,
  10091. this.sTool
  10092. );
  10093. return;
  10094. }
  10095. if (this.fileType === 0) {
  10096. typesql = 1;
  10097. } else if (this.fileType === 1) {
  10098. typesql = 4;
  10099. } else if (this.fileType === 2) {
  10100. typesql = 5;
  10101. } else if (this.fileType === 3) {
  10102. typesql = 12;
  10103. }
  10104. if (this.sTool == 50) {
  10105. this.addCourseWorksGongPl(
  10106. this.toolindex,
  10107. this.studyJuri[0].cover[0].url,
  10108. this.sTool,
  10109. typesql
  10110. );
  10111. return;
  10112. }
  10113. if (!this.studyJuri[0].cover[0].url) {
  10114. this.$message.error("请上传文件");
  10115. return;
  10116. }
  10117. let params = [
  10118. {
  10119. uid: this.sStudent.userid,
  10120. cid: this.id,
  10121. stage: this.courseType,
  10122. task: i,
  10123. tool: this.toolindex,
  10124. content: this.studyJuri[0].cover[0].url,
  10125. type: typesql,
  10126. ateacher: this.userid,
  10127. },
  10128. ];
  10129. this.ajax
  10130. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  10131. .then((res) => {
  10132. this.$message({
  10133. message: "提交成功",
  10134. type: "success",
  10135. });
  10136. this.studyJuri[0].cover = [];
  10137. this.dialogVisibleWorks = false;
  10138. this.getCourseDetail(2);
  10139. })
  10140. .catch((err) => {
  10141. this.$message.error("提交失败");
  10142. console.error(err);
  10143. });
  10144. },
  10145. selectUploadStudent() {
  10146. let params = {
  10147. cid: this.uploadCid,
  10148. oid: this.oid,
  10149. cn: "",
  10150. };
  10151. this.ajax
  10152. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  10153. .then((res) => {
  10154. var studentK = [];
  10155. if (this.isWorksS[this.toolindex].length > 0) {
  10156. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  10157. studentK.push(this.isWorksS[this.toolindex][z].uid);
  10158. }
  10159. studentK = studentK.join(",");
  10160. }
  10161. this.uploadStudentJuri = res.data[0].filter((el) => {
  10162. return studentK.indexOf(el.userid) == -1;
  10163. });
  10164. })
  10165. .catch((err) => {
  10166. console.error(err);
  10167. });
  10168. },
  10169. arrayToArray(arrayo, arrayt) {
  10170. let array1 = arrayo;
  10171. let array2 = arrayt;
  10172. let commonElements = [];
  10173. for (let i = 0; i < array1.length; i++) {
  10174. for (let j = 0; j < array2.length; j++) {
  10175. if (array1[i] === array2[j]) {
  10176. commonElements.push(array1[i]);
  10177. }
  10178. }
  10179. }
  10180. return commonElements;
  10181. },
  10182. selectWorksStudent() {
  10183. let params = {
  10184. oid: this.oid,
  10185. cid: this.courseDetail.juri,
  10186. };
  10187. this.ajax
  10188. .get(this.$store.state.api + "selectWorksStudent", params)
  10189. .then((res) => {
  10190. var a = res.data[0];
  10191. for (var i = 0; i < this.isWorksS.length; i++) {
  10192. this.noWorksS[i] = [];
  10193. var studentK = [];
  10194. if (this.isWorksS[i].length > 0) {
  10195. for (var z = 0; z < this.isWorksS[i].length; z++) {
  10196. studentK.push(this.isWorksS[i][z].uid);
  10197. }
  10198. studentK = studentK.join(",");
  10199. for (var j = 0; j < a.length; j++) {
  10200. if (studentK.indexOf(a[j].userid) == -1) {
  10201. if (this.tcid) {
  10202. // a[j].classid.indexOf(this.tcid) != -1
  10203. if (
  10204. this.arrayToArray(
  10205. a[j].classid.split(","),
  10206. this.tcid.split(",")
  10207. ).length
  10208. ) {
  10209. this.noWorksS[i].push({
  10210. student: a[j].name,
  10211. userid: a[j].userid,
  10212. });
  10213. }
  10214. } else {
  10215. this.noWorksS[i].push({
  10216. student: a[j].name,
  10217. userid: a[j].userid,
  10218. });
  10219. }
  10220. }
  10221. }
  10222. } else {
  10223. for (var k = 0; k < a.length; k++) {
  10224. if (this.tcid) {
  10225. if (
  10226. this.arrayToArray(
  10227. a[k].classid.split(","),
  10228. this.tcid.split(",")
  10229. ).length
  10230. ) {
  10231. this.noWorksS[i].push({
  10232. student: a[k].name,
  10233. userid: a[k].userid,
  10234. });
  10235. }
  10236. } else {
  10237. this.noWorksS[i].push({
  10238. student: a[k].name,
  10239. userid: a[k].userid,
  10240. });
  10241. }
  10242. }
  10243. }
  10244. }
  10245. this.$forceUpdate();
  10246. if (
  10247. Object.keys(this.commentDetail).length &&
  10248. Object.keys(this.commentIndexJson).length &&
  10249. !this.dialogVisibleScore
  10250. ) {
  10251. let a = 1;
  10252. let c = this.commentIndexJson;
  10253. console.log(c);
  10254. if (
  10255. this.commentIndexJson.gindex ||
  10256. this.commentIndexJson.gindex === 0
  10257. ) {
  10258. for (
  10259. var i = 0;
  10260. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  10261. i++
  10262. ) {
  10263. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  10264. groupA: for (var k = 0; k < _el.length; k++) {
  10265. let el = _el[k];
  10266. if (el.wid == this.commentDetail.wid) {
  10267. a = 2;
  10268. this.commentOther(
  10269. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  10270. this.commentIndexJson.toolIndex,
  10271. k,
  10272. this.commentIndexJson.gindex
  10273. );
  10274. break groupA;
  10275. }
  10276. }
  10277. }
  10278. if (a === 1) {
  10279. this.commentDetail = [];
  10280. this.commentIndexJson = {};
  10281. this.commentDialogVisible = false;
  10282. this.$message("此作业已被删除");
  10283. }
  10284. } else {
  10285. if (this.isGroup && this.commentIndexJson.gid) {
  10286. groupA: for (
  10287. var i = 0;
  10288. i < this.courseGroup.group.length;
  10289. i++
  10290. ) {
  10291. let _group = this.courseGroup.group[i];
  10292. if (_group.id == this.commentIndexJson.gid) {
  10293. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  10294. for (var k = 0; k < _el2.length; k++) {
  10295. let el2 = _el2[k];
  10296. if (el2.wid == this.commentDetail.wid) {
  10297. a = 2;
  10298. this.commentOther(
  10299. _el2[k],
  10300. this.commentIndexJson.toolIndex,
  10301. k,
  10302. null,
  10303. this.commentIndexJson.gid
  10304. );
  10305. break groupA;
  10306. }
  10307. }
  10308. }
  10309. }
  10310. }
  10311. if (a == 1) {
  10312. for (
  10313. var i = 0;
  10314. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  10315. i++
  10316. ) {
  10317. let el =
  10318. this.worksStudent[this.commentIndexJson.toolIndex][i];
  10319. if (el.wid == this.commentDetail.wid) {
  10320. a = 2;
  10321. this.commentOther(
  10322. this.worksStudent[this.commentIndexJson.toolIndex][i],
  10323. this.commentIndexJson.toolIndex,
  10324. i
  10325. );
  10326. break;
  10327. }
  10328. }
  10329. }
  10330. if (a === 1) {
  10331. this.commentDetail = [];
  10332. this.commentIndexJson = {};
  10333. this.commentDialogVisible = false;
  10334. this.$message("此作业已被删除");
  10335. }
  10336. }
  10337. }
  10338. })
  10339. .catch((err) => {
  10340. console.error(err);
  10341. });
  10342. },
  10343. selectStudent() {
  10344. //学生查看自己作业
  10345. let params = {
  10346. uid: this.userid,
  10347. cid: this.id,
  10348. s: this.courseType,
  10349. t: this.taskCount,
  10350. };
  10351. this.ajax
  10352. .get(this.$store.state.api + "selectStudentWorks", params)
  10353. .then((res) => {
  10354. var a =
  10355. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10356. this.taskCount
  10357. ].toolChoose;
  10358. var b = res.data[0];
  10359. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  10360. var y = [
  10361. "AVI",
  10362. "NAVI",
  10363. "MPEG",
  10364. "ASF",
  10365. "MOV",
  10366. "WMV",
  10367. "3GP",
  10368. "RM",
  10369. "RMVB",
  10370. "FLV",
  10371. "F4V",
  10372. "H.264",
  10373. "H.265",
  10374. "REAL VIDEO",
  10375. "MKV",
  10376. "WebM",
  10377. "HDDVD",
  10378. "MP4",
  10379. "MPG",
  10380. "M4V",
  10381. "MGV",
  10382. "OGV",
  10383. "QTM",
  10384. "STR",
  10385. "AMC",
  10386. "DVX",
  10387. "EVO",
  10388. "DAT",
  10389. "OGG",
  10390. "OGM",
  10391. ];
  10392. for (var i = 0; i < a.length; i++) {
  10393. this.workStudent[i] = [];
  10394. for (var j = 0; j < b.length; j++) {
  10395. if (i == b[j].tool) {
  10396. if (
  10397. (b[j].type == 1 ||
  10398. b[j].type == 4 ||
  10399. b[j].type == 5 ||
  10400. b[j].type == 6 ||
  10401. b[j].type == 12 ||
  10402. b[j].type == 7) &&
  10403. a[i].tool[0] != 15 &&
  10404. a[i].tool[0] != 4 &&
  10405. a[i].tool[0] != 45 &&
  10406. a[i].tool[0] != 50 &&
  10407. a[i].tool[0] != 32 &&
  10408. a[i].tool[0] != 57 &&
  10409. a[i].tool[0] != 52
  10410. ) {
  10411. if (
  10412. c.indexOf(
  10413. b[j].content
  10414. .split(".")
  10415. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  10416. ) != -1 &&
  10417. a[i].tool[0] == 16 &&
  10418. b[j].atool != 50
  10419. ) {
  10420. this.workStudent[i].push({
  10421. works: b[j].content,
  10422. sName: b[j].name,
  10423. score: b[j].score,
  10424. img: b[j].img,
  10425. type: 1,
  10426. time: b[j].time,
  10427. userid: b[j].userid,
  10428. wid: b[j].id,
  10429. });
  10430. } else if (
  10431. y.indexOf(
  10432. b[j].content
  10433. .split(".")
  10434. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  10435. ) != -1 &&
  10436. a[i].tool[0] == 16 &&
  10437. b[j].atool != 50
  10438. ) {
  10439. this.workStudent[i].push({
  10440. userid: b[j].userid,
  10441. wid: b[j].id,
  10442. works: b[j].content,
  10443. sName: b[j].name,
  10444. score: b[j].score,
  10445. img: b[j].img,
  10446. type: 3,
  10447. time: b[j].time,
  10448. });
  10449. } else if (b[j].type == 6 && b[j].atool != 50) {
  10450. this.workStudent[i].push({
  10451. userid: b[j].userid,
  10452. wid: b[j].id,
  10453. works: b[j].content,
  10454. sName: b[j].name,
  10455. score: b[j].score,
  10456. img: b[j].img,
  10457. type: 4,
  10458. time: b[j].time,
  10459. });
  10460. } else if (b[j].type == 7 && b[j].atool != 50) {
  10461. this.workStudent[i].push({
  10462. userid: b[j].userid,
  10463. wid: b[j].id,
  10464. works: b[j].content,
  10465. sName: b[j].name,
  10466. score: b[j].score,
  10467. img: b[j].img,
  10468. type: 5,
  10469. time: b[j].time,
  10470. });
  10471. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  10472. this.workStudent[i].push({
  10473. works: b[j].content,
  10474. sName: b[j].name,
  10475. score: b[j].score,
  10476. img: b[j].img,
  10477. type: 12,
  10478. time: b[j].time,
  10479. userid: b[j].userid,
  10480. wid: b[j].id,
  10481. });
  10482. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  10483. this.workStudent[i].push({
  10484. works: b[j].content,
  10485. sName: b[j].name,
  10486. score: b[j].score,
  10487. img: b[j].img,
  10488. type: 0,
  10489. time: b[j].time,
  10490. userid: b[j].userid,
  10491. wid: b[j].id,
  10492. });
  10493. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  10494. this.workStudent[i].push({
  10495. works: b[j].content,
  10496. sName: b[j].name,
  10497. score: b[j].score,
  10498. img: b[j].img,
  10499. type: 0,
  10500. time: b[j].time,
  10501. userid: b[j].userid,
  10502. wid: b[j].id,
  10503. });
  10504. }
  10505. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  10506. this.workStudent[i].push({
  10507. works: b[j].content,
  10508. sName: b[j].name,
  10509. score: b[j].score,
  10510. img: b[j].img,
  10511. type: 2,
  10512. time: b[j].time,
  10513. userid: b[j].userid,
  10514. wid: b[j].id,
  10515. });
  10516. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  10517. //问卷
  10518. this.workStudent[i].push({
  10519. works: b[j].content,
  10520. sName: b[j].name,
  10521. score: b[j].score,
  10522. img: b[j].img,
  10523. type: 2,
  10524. time: b[j].time,
  10525. userid: b[j].userid,
  10526. wid: b[j].id,
  10527. });
  10528. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  10529. //选择题
  10530. this.workStudent[i].push({
  10531. works: b[j].content,
  10532. sName: b[j].name,
  10533. score: b[j].score,
  10534. img: b[j].img,
  10535. type: 8,
  10536. time: b[j].time,
  10537. userid: b[j].userid,
  10538. wid: b[j].id,
  10539. });
  10540. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  10541. //选择题
  10542. this.workStudent[i].push({
  10543. works: b[j].content,
  10544. sName: b[j].name,
  10545. score: b[j].score,
  10546. img: b[j].img,
  10547. type: 9,
  10548. time: b[j].time,
  10549. userid: b[j].userid,
  10550. wid: b[j].id,
  10551. });
  10552. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  10553. //选择题
  10554. this.workStudent[i].push({
  10555. works: b[j].content,
  10556. sName: b[j].name,
  10557. score: b[j].score,
  10558. img: b[j].img,
  10559. type: 10,
  10560. time: b[j].time,
  10561. userid: b[j].userid,
  10562. wid: b[j].id,
  10563. });
  10564. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  10565. //选择题
  10566. this.workStudent[i].push({
  10567. works: b[j].content,
  10568. sName: b[j].name,
  10569. score: b[j].score,
  10570. img: b[j].img,
  10571. type: 13,
  10572. time: b[j].time,
  10573. userid: b[j].userid,
  10574. wid: b[j].id,
  10575. });
  10576. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  10577. //选择题
  10578. this.workStudent[i].push({
  10579. works: b[j].content,
  10580. sName: b[j].name,
  10581. score: b[j].score,
  10582. img: b[j].img,
  10583. type: 12,
  10584. time: b[j].time,
  10585. userid: b[j].userid,
  10586. wid: b[j].id,
  10587. });
  10588. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  10589. //选择题
  10590. this.workStudent[i].push({
  10591. works: b[j].content,
  10592. sName: b[j].name,
  10593. score: b[j].score,
  10594. img: b[j].img,
  10595. type: 12,
  10596. time: b[j].time,
  10597. userid: b[j].userid,
  10598. wid: b[j].id,
  10599. });
  10600. }
  10601. }
  10602. }
  10603. }
  10604. })
  10605. .catch((err) => {
  10606. console.error(err);
  10607. });
  10608. },
  10609. openVideo(w) {
  10610. this.videoDetail = {};
  10611. this.playerOptions1.sources[0].src = w.works;
  10612. this.videoDetail = this.playerOptions1;
  10613. this.videoVisible = true;
  10614. },
  10615. isLikes(wid, uid, t, c, isLikes) {
  10616. if (isLikes == false) {
  10617. let params = [
  10618. {
  10619. wid: wid,
  10620. lid: uid,
  10621. t: t,
  10622. c: c,
  10623. },
  10624. ];
  10625. this.ajax
  10626. .post(this.$store.state.api + "insertComment", params)
  10627. .then((res) => {
  10628. this.$message({
  10629. message: "点赞成功",
  10630. type: "success",
  10631. });
  10632. this.selectSWorks();
  10633. this.selectStudent();
  10634. })
  10635. .catch((err) => {
  10636. this.$message.error("点赞失败");
  10637. console.error(err);
  10638. });
  10639. } else {
  10640. let params = {
  10641. wid: wid,
  10642. lid: uid,
  10643. type: t,
  10644. };
  10645. this.ajax
  10646. .get(this.$store.state.api + "deleteComment", params)
  10647. .then((res) => {
  10648. this.$message({
  10649. message: "取消点赞成功",
  10650. type: "success",
  10651. });
  10652. this.selectSWorks();
  10653. this.selectStudent();
  10654. })
  10655. .catch((err) => {
  10656. console.error(err);
  10657. });
  10658. }
  10659. },
  10660. deleteComment(wid) {
  10661. this.$confirm("确定删除此评论吗?", "提示", {
  10662. confirmButtonText: "确定",
  10663. cancelButtonText: "取消",
  10664. type: "warning",
  10665. })
  10666. .then(() => {
  10667. let params = {
  10668. id: wid,
  10669. };
  10670. this.ajax
  10671. .get(this.$store.state.api + "deleteComment2", params)
  10672. .then((res) => {
  10673. this.$message({
  10674. message: "删除评论成功",
  10675. type: "success",
  10676. });
  10677. this.selectSWorks();
  10678. this.selectStudent();
  10679. })
  10680. .catch((err) => {
  10681. console.error(err);
  10682. });
  10683. })
  10684. .catch(() => {});
  10685. },
  10686. commentOther(w, toolIndex, wIndex, gindex, gid) {
  10687. this.commentIndexJson = {
  10688. toolIndex: toolIndex,
  10689. wIndex: wIndex,
  10690. gindex: gindex,
  10691. gid: gid,
  10692. };
  10693. this.commentDetail = [];
  10694. this.commentDialogVisible = true;
  10695. this.commentDetail = w;
  10696. if (w.works && w.type == 1) {
  10697. this.pptImgUrl = "";
  10698. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  10699. if (
  10700. a.indexOf(
  10701. w.works
  10702. .split(".")
  10703. [w.works.split(".").length - 1].toLocaleUpperCase()
  10704. ) != -1
  10705. ) {
  10706. this.pptImgUrl =
  10707. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  10708. this.showPDF = false;
  10709. } else if (
  10710. w.works
  10711. .split(".")
  10712. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  10713. ) {
  10714. this.pptImgUrl = w.works;
  10715. this.showPDF = true;
  10716. }
  10717. } else if (w.works && w.type == 3) {
  10718. this.videoDetail = {};
  10719. this.playerOptions1.sources[0].src = w.works;
  10720. this.videoDetail = this.playerOptions1;
  10721. // this.videoVisible = true;
  10722. } else if (w.works && w.type == 4) {
  10723. this.eScore = JSON.parse(w.works);
  10724. this.rateJson =
  10725. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10726. this.taskCount
  10727. ].toolChoose[toolIndex].rateJson;
  10728. } else if (w.works && w.type == 10) {
  10729. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  10730. } else if (w.works && w.type == 13) {
  10731. this.wordJson =
  10732. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10733. this.taskCount
  10734. ].toolChoose[toolIndex].wordJson;
  10735. }
  10736. },
  10737. openScore(w) {
  10738. this.wScore = 0;
  10739. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  10740. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  10741. this.commentDetail = [];
  10742. this.dialogVisibleScore = true;
  10743. this.commentDetail = w;
  10744. if (w.works && w.type == 1) {
  10745. this.pptImgUrl = "";
  10746. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  10747. if (
  10748. a.indexOf(
  10749. w.works
  10750. .split(".")
  10751. [w.works.split(".").length - 1].toLocaleUpperCase()
  10752. ) != -1
  10753. ) {
  10754. this.pptImgUrl =
  10755. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  10756. this.showPDF = false;
  10757. } else if (
  10758. w.works
  10759. .split(".")
  10760. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  10761. ) {
  10762. this.pptImgUrl = w.works;
  10763. this.showPDF = true;
  10764. }
  10765. } else if (w.works && w.type == 3) {
  10766. this.videoDetail = {};
  10767. this.playerOptions1.sources[0].src = w.works;
  10768. this.videoDetail = this.playerOptions1;
  10769. }
  10770. },
  10771. addComment(wid, uid, t) {
  10772. if (this.commentText == "") {
  10773. this.$message.error("请输入对该学生的评价");
  10774. return;
  10775. }
  10776. let params2 = [
  10777. {
  10778. wid: wid,
  10779. lid: uid,
  10780. t: t,
  10781. },
  10782. ];
  10783. this.ajax
  10784. .post(this.$store.state.api + "getComment", params2)
  10785. .then((res) => {
  10786. if (res.data[0].length > 0) {
  10787. this.$message.error("一个作业只能评论一条");
  10788. } else {
  10789. let params = [
  10790. {
  10791. wid: wid,
  10792. lid: uid,
  10793. t: t,
  10794. c: this.commentText,
  10795. },
  10796. ];
  10797. this.ajax
  10798. .post(this.$store.state.api + "insertComment", params)
  10799. .then((res) => {
  10800. this.$message({
  10801. message: "评论成功",
  10802. type: "success",
  10803. });
  10804. this.commentText = "";
  10805. this.selectSWorks();
  10806. this.selectStudent();
  10807. })
  10808. .catch((err) => {
  10809. this.$message.error("评论失败");
  10810. console.error(err);
  10811. });
  10812. }
  10813. })
  10814. .catch((err) => {
  10815. // this.$message.error("评论失败");
  10816. console.error(err);
  10817. });
  10818. },
  10819. scoreWork(wid) {
  10820. if (this.wScore == 0) {
  10821. this.$message.error("请评分");
  10822. return;
  10823. }
  10824. let params = [
  10825. {
  10826. wid: wid,
  10827. score: JSON.stringify({
  10828. wScore: this.wScore,
  10829. detail: this.scoreDetail,
  10830. }),
  10831. },
  10832. ];
  10833. this.ajax
  10834. .post(this.$store.state.api + "scoreWork", params)
  10835. .then((res) => {
  10836. this.$message({
  10837. message: "评分成功",
  10838. type: "success",
  10839. });
  10840. this.wScore = 0;
  10841. this.scoreDetail = "";
  10842. this.dialogVisibleScore = false;
  10843. this.selectSWorks();
  10844. this.selectStudent();
  10845. })
  10846. .catch((err) => {
  10847. this.$message.error("评分失败");
  10848. console.error(err);
  10849. });
  10850. },
  10851. openXz(w, i) {
  10852. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10853. .taskJson[this.taskCount].toolChoose[i].selectJson
  10854. ? JSON.parse(
  10855. JSON.stringify(
  10856. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10857. this.taskCount
  10858. ].toolChoose[i].selectJson
  10859. )
  10860. )
  10861. : { url: "", select: [], answer: [] };
  10862. var a = w.works.split(",");
  10863. for (var k = 0; k < a.length; k++) {
  10864. a[k] = parseInt(a[k]);
  10865. }
  10866. this.selectAnswer = { answer: a, stu: w.sName };
  10867. this.isSelect = true;
  10868. this.dialogVisibleSelect = true;
  10869. },
  10870. openSen(w, i) {
  10871. this.sentenceList1 = JSON.parse(w.works);
  10872. this.sentenceList1.stuName = w.sName;
  10873. this.dialogVisibleSentence1 = true;
  10874. },
  10875. openPj(w, toolindex) {
  10876. this.isStar = true;
  10877. this.eScore = JSON.parse(w);
  10878. this.rateJson =
  10879. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10880. this.taskCount
  10881. ].toolChoose[toolindex].rateJson;
  10882. this.studentEvalDialogVisible = true;
  10883. },
  10884. deleteWorks(id) {
  10885. this.$confirm("确定删除此作业吗?", "提示", {
  10886. confirmButtonText: "确定",
  10887. cancelButtonText: "取消",
  10888. type: "warning",
  10889. })
  10890. .then(() => {
  10891. let params = [
  10892. {
  10893. id: id,
  10894. },
  10895. ];
  10896. this.ajax
  10897. .post(this.$store.state.api + "deleteCourseWork", params)
  10898. .then((res) => {
  10899. this.$message({
  10900. message: "删除成功",
  10901. type: "success",
  10902. });
  10903. this.selectStudent();
  10904. this.selectSWorks();
  10905. this.selectSLook();
  10906. })
  10907. .catch((err) => {
  10908. this.$message.error("网络异常");
  10909. console.error(err);
  10910. });
  10911. })
  10912. .catch(() => {});
  10913. },
  10914. selectSWorks(gindex) {
  10915. //教师查看全部作业
  10916. let params = {
  10917. cid: this.id,
  10918. s: this.courseType,
  10919. t: this.taskCount,
  10920. };
  10921. this.ajax
  10922. .get(this.$store.state.api + "selectSWorks", params)
  10923. .then((res) => {
  10924. var a =
  10925. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10926. this.taskCount
  10927. ].toolChoose;
  10928. var b = res.data[0];
  10929. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  10930. var y = [
  10931. "AVI",
  10932. "NAVI",
  10933. "MPEG",
  10934. "ASF",
  10935. "MOV",
  10936. "WMV",
  10937. "3GP",
  10938. "RM",
  10939. "RMVB",
  10940. "FLV",
  10941. "F4V",
  10942. "H.264",
  10943. "H.265",
  10944. "REAL VIDEO",
  10945. "MKV",
  10946. "WebM",
  10947. "HDDVD",
  10948. "MP4",
  10949. "MPG",
  10950. "M4V",
  10951. "MGV",
  10952. "OGV",
  10953. "QTM",
  10954. "STR",
  10955. "AMC",
  10956. "DVX",
  10957. "EVO",
  10958. "DAT",
  10959. "OGG",
  10960. "OGM",
  10961. ];
  10962. var d = res.data[1];
  10963. var e = res.data[2];
  10964. var f = res.data[3];
  10965. for (var i = 0; i < a.length; i++) {
  10966. this.worksStudent[i] = [];
  10967. if (
  10968. !this.isCloseList[i] ||
  10969. this.isCloseList[i].isClose == undefined
  10970. ) {
  10971. this.isCloseList[i] = { isClose: 0 };
  10972. }
  10973. this.groupStudent[i] = [];
  10974. this.groupStudentUid[i] = [];
  10975. if (this.isGroup) {
  10976. for (
  10977. var groupI = 0;
  10978. groupI < this.courseGroup.group.length;
  10979. groupI++
  10980. ) {
  10981. this.courseGroup.group[groupI].works[i] = [];
  10982. }
  10983. }
  10984. this.isWorksS[i] = [];
  10985. this.checkJson[i] = [];
  10986. if (a[i].tool[0] == 49) {
  10987. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  10988. this.groupStudent[i][gA] = [];
  10989. this.groupStudentUid[i][gA] = [];
  10990. this.worksStudent[i][gA] = [];
  10991. this.isCloseList[i][gA] = [];
  10992. for (var g = 0; g < f.length; g++) {
  10993. if (
  10994. f[g].ttype == 2 &&
  10995. this.tcid &&
  10996. this.arrayToArray(
  10997. f[g].classid.split(","),
  10998. this.tcid.split(",")
  10999. ).length == 0
  11000. ) {
  11001. continue;
  11002. }
  11003. if (gA == f[g].group && f[g].tool == i) {
  11004. this.groupStudent[i][gA].push(f[g]);
  11005. this.groupStudentUid[i][gA].push(f[g].userid);
  11006. }
  11007. }
  11008. }
  11009. this.$forceUpdate();
  11010. }
  11011. for (var j = 0; j < b.length; j++) {
  11012. if (
  11013. b[j].ttype == 2 &&
  11014. this.tcid &&
  11015. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  11016. .length == 0
  11017. ) {
  11018. continue;
  11019. }
  11020. var likesCount = 0;
  11021. var commentCount = 0;
  11022. var isLikes = false;
  11023. var commentJson = [];
  11024. var data = b[j];
  11025. if (i == b[j].tool) {
  11026. if (data.type == 2 && a[i].tool[0] == 4) {
  11027. // if(JSON.parse(data.content)[0].anwer){
  11028. var checkL = JSON.parse(data.content)[0].anwer;
  11029. for (var z = 0; z < checkL.length; z++) {
  11030. if (!this.checkJson[i][z]) {
  11031. this.checkJson[i].push({
  11032. checkCount: [],
  11033. checkPerson: [],
  11034. rightPerson: [],
  11035. });
  11036. }
  11037. if (!this.checkJson[i][z].checkCount.length) {
  11038. this.checkJson[i][z].checkCount = [];
  11039. let _askItemCount = JSON.parse(data.content)[0].askJson
  11040. .askJson[z].askItem;
  11041. for (var aic = 0; aic < _askItemCount; aic++) {
  11042. this.checkJson[i][z].checkCount.push(0);
  11043. }
  11044. }
  11045. if (checkL[z] instanceof Array) {
  11046. if (
  11047. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  11048. checkL[z].sort().join(",")
  11049. ) {
  11050. this.checkJson[i][z].rightPerson.push(data.name);
  11051. }
  11052. for (var q = 0; q < checkL[z].length; q++) {
  11053. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  11054. ? this.checkJson[i][z].checkPerson[
  11055. parseInt(checkL[z][q])
  11056. ].push(data.name)
  11057. : (this.checkJson[i][z].checkPerson[
  11058. parseInt(checkL[z][q])
  11059. ] = [data.name]);
  11060. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  11061. ? this.checkJson[i][z].checkCount[
  11062. parseInt(checkL[z][q])
  11063. ]++
  11064. : (this.checkJson[i][z].checkCount[
  11065. parseInt(checkL[z][q])
  11066. ] = 1);
  11067. }
  11068. } else {
  11069. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  11070. this.checkJson[i][z].rightPerson.push(data.name);
  11071. }
  11072. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  11073. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  11074. ? this.checkJson[i][z].checkPerson[
  11075. parseInt(checkL[z])
  11076. ].push(data.name)
  11077. : (this.checkJson[i][z].checkPerson[
  11078. parseInt(checkL[z])
  11079. ] = [data.name]);
  11080. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  11081. ? this.checkJson[i][z].checkCount[
  11082. parseInt(checkL[z])
  11083. ]++
  11084. : (this.checkJson[i][z].checkCount[
  11085. parseInt(checkL[z])
  11086. ] = 1);
  11087. }
  11088. }
  11089. }
  11090. } else if (data.type == 8 && a[i].tool[0] == 45) {
  11091. var checkL = JSON.parse(data.content)[0].anwer;
  11092. for (var z = 0; z < checkL.length; z++) {
  11093. if (!this.checkJson[i][z]) {
  11094. this.checkJson[i].push({
  11095. checkCount: [],
  11096. checkPerson: [],
  11097. rightPerson: [],
  11098. });
  11099. }
  11100. if (!this.checkJson[i][z].checkCount.length) {
  11101. this.checkJson[i][z].checkCount = [];
  11102. let _askItemCount = JSON.parse(data.content)[0].testJson
  11103. .testJson[z].testItem;
  11104. console.log(_askItemCount);
  11105. for (var aic = 0; aic < _askItemCount; aic++) {
  11106. this.checkJson[i][z].checkCount.push(0);
  11107. }
  11108. }
  11109. if (checkL[z] instanceof Array) {
  11110. if (
  11111. JSON.parse(data.content)[0]
  11112. .testJson.testJson[z].answer.sort()
  11113. .join(",") == checkL[z].sort().join(",")
  11114. ) {
  11115. this.checkJson[i][z].rightPerson.push(data.name);
  11116. }
  11117. for (var q = 0; q < checkL[z].length; q++) {
  11118. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  11119. ? this.checkJson[i][z].checkPerson[
  11120. parseInt(checkL[z][q])
  11121. ].push(data.name)
  11122. : (this.checkJson[i][z].checkPerson[
  11123. parseInt(checkL[z][q])
  11124. ] = [data.name]);
  11125. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  11126. ? this.checkJson[i][z].checkCount[
  11127. parseInt(checkL[z][q])
  11128. ]++
  11129. : (this.checkJson[i][z].checkCount[
  11130. parseInt(checkL[z][q])
  11131. ] = 1);
  11132. }
  11133. } else {
  11134. if (
  11135. JSON.parse(data.content)[0].testJson.testJson[z]
  11136. .answer == checkL[z]
  11137. ) {
  11138. this.checkJson[i][z].rightPerson.push(data.name);
  11139. }
  11140. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  11141. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  11142. ? this.checkJson[i][z].checkPerson[
  11143. parseInt(checkL[z])
  11144. ].push(data.name)
  11145. : (this.checkJson[i][z].checkPerson[
  11146. parseInt(checkL[z])
  11147. ] = [data.name]);
  11148. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  11149. ? this.checkJson[i][z].checkCount[
  11150. parseInt(checkL[z])
  11151. ]++
  11152. : (this.checkJson[i][z].checkCount[
  11153. parseInt(checkL[z])
  11154. ] = 1);
  11155. }
  11156. }
  11157. }
  11158. } else if (data.type == 9 && a[i].tool[0] == 47) {
  11159. var checkL = JSON.parse(data.content);
  11160. for (var z = 0; z < checkL.length; z++) {
  11161. if (!this.checkJson[i][z]) {
  11162. this.checkJson[i].push({
  11163. checkCount: [],
  11164. checkPerson: [],
  11165. rightPerson: [],
  11166. });
  11167. }
  11168. this.checkJson[i][z].checkPerson.push(data.name);
  11169. if (
  11170. checkL[z].chooseSenList.toString() ==
  11171. checkL[z].rightAnswer.toString()
  11172. ) {
  11173. this.checkJson[i][z].rightPerson.push(data.name);
  11174. }
  11175. }
  11176. }
  11177. for (var k = 0; k < d.length; k++) {
  11178. //点赞
  11179. if (d[k].workId == b[j].id) {
  11180. likesCount++;
  11181. if (d[k].likesId == this.userid) {
  11182. isLikes = true;
  11183. }
  11184. }
  11185. }
  11186. for (var l = 0; l < e.length; l++) {
  11187. //评论
  11188. if (e[l].workId == b[j].id) {
  11189. if (e[l].comment != "") {
  11190. commentCount++;
  11191. commentJson.push({
  11192. commentText: e[l].comment,
  11193. commentTime: e[l].commentTime,
  11194. commentPeople: e[l].commentPeople,
  11195. userid: e[l].userid,
  11196. wid: e[l].id,
  11197. });
  11198. }
  11199. }
  11200. }
  11201. if (
  11202. (b[j].type == 1 ||
  11203. b[j].type == 4 ||
  11204. b[j].type == 5 ||
  11205. b[j].type == 6 ||
  11206. b[j].type == 12 ||
  11207. b[j].type == 7) &&
  11208. a[i].tool[0] != 15 &&
  11209. a[i].tool[0] != 4 &&
  11210. a[i].tool[0] != 45 &&
  11211. a[i].tool[0] != 50 &&
  11212. a[i].tool[0] != 32 &&
  11213. a[i].tool[0] != 57 &&
  11214. a[i].tool[0] != 52
  11215. ) {
  11216. if (
  11217. c.indexOf(
  11218. b[j].content
  11219. .split(".")
  11220. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11221. ) != -1 &&
  11222. a[i].tool[0] == 16 &&
  11223. b[j].atool != 50
  11224. ) {
  11225. let _works = {
  11226. userid: b[j].userid,
  11227. ateacher: b[j].ateacher,
  11228. wid: b[j].id,
  11229. works: b[j].content,
  11230. sName: b[j].name,
  11231. type: 1,
  11232. time: b[j].time,
  11233. score: b[j].score,
  11234. img: b[j].img,
  11235. likesCount: likesCount,
  11236. commentCount: commentCount,
  11237. isLikes: isLikes,
  11238. commentJson: commentJson,
  11239. };
  11240. if (this.isGroup) {
  11241. let isGw = 1;
  11242. for (
  11243. var groupI = 0;
  11244. groupI < this.courseGroup.group.length;
  11245. groupI++
  11246. ) {
  11247. let gid = this.courseGroup.group[groupI].id;
  11248. if (
  11249. this.courseGroupStudentUid[gid].indexOf(
  11250. b[j].userid
  11251. ) != -1
  11252. ) {
  11253. isGw = 2;
  11254. this.courseGroup.group[groupI].works[i].push(_works);
  11255. break;
  11256. }
  11257. }
  11258. if (isGw == 1) {
  11259. this.worksStudent[i].push(_works);
  11260. }
  11261. } else {
  11262. this.worksStudent[i].push(_works);
  11263. }
  11264. this.isWorksS[i].push({
  11265. uid: b[j].userid,
  11266. sName: b[j].name,
  11267. });
  11268. } else if (
  11269. y.indexOf(
  11270. b[j].content
  11271. .split(".")
  11272. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11273. ) != -1 &&
  11274. a[i].tool[0] == 16 &&
  11275. b[j].atool != 50
  11276. ) {
  11277. let _works = {
  11278. userid: b[j].userid,
  11279. ateacher: b[j].ateacher,
  11280. wid: b[j].id,
  11281. works: b[j].content,
  11282. sName: b[j].name,
  11283. type: 3,
  11284. time: b[j].time,
  11285. score: b[j].score,
  11286. img: b[j].img,
  11287. likesCount: likesCount,
  11288. commentCount: commentCount,
  11289. isLikes: isLikes,
  11290. commentJson: commentJson,
  11291. };
  11292. if (this.isGroup) {
  11293. let isGw = 1;
  11294. for (
  11295. var groupI = 0;
  11296. groupI < this.courseGroup.group.length;
  11297. groupI++
  11298. ) {
  11299. let gid = this.courseGroup.group[groupI].id;
  11300. if (
  11301. this.courseGroupStudentUid[gid].indexOf(
  11302. b[j].userid
  11303. ) != -1
  11304. ) {
  11305. isGw = 2;
  11306. this.courseGroup.group[groupI].works[i].push(_works);
  11307. break;
  11308. }
  11309. }
  11310. if (isGw == 1) {
  11311. this.worksStudent[i].push(_works);
  11312. }
  11313. } else {
  11314. this.worksStudent[i].push(_works);
  11315. }
  11316. this.isWorksS[i].push({
  11317. uid: b[j].userid,
  11318. sName: b[j].name,
  11319. });
  11320. } else if (b[j].type == 6 && b[j].atool != 50) {
  11321. this.worksStudent[i].push({
  11322. userid: b[j].userid,
  11323. ateacher: b[j].ateacher,
  11324. wid: b[j].id,
  11325. works: b[j].content,
  11326. sName: b[j].name,
  11327. type: 4,
  11328. time: b[j].time,
  11329. score: b[j].score,
  11330. img: b[j].img,
  11331. likesCount: likesCount,
  11332. commentCount: commentCount,
  11333. isLikes: isLikes,
  11334. commentJson: commentJson,
  11335. });
  11336. this.isWorksS[i].push({
  11337. uid: b[j].userid,
  11338. sName: b[j].name,
  11339. });
  11340. } else if (b[j].type == 7 && b[j].atool != 50) {
  11341. this.worksStudent[i].push({
  11342. userid: b[j].userid,
  11343. ateacher: b[j].ateacher,
  11344. wid: b[j].id,
  11345. works: b[j].content,
  11346. sName: b[j].name,
  11347. type: 5,
  11348. time: b[j].time,
  11349. score: b[j].score,
  11350. img: b[j].img,
  11351. likesCount: likesCount,
  11352. commentCount: commentCount,
  11353. isLikes: isLikes,
  11354. commentJson: commentJson,
  11355. });
  11356. this.isWorksS[i].push({
  11357. uid: b[j].userid,
  11358. sName: b[j].name,
  11359. });
  11360. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  11361. let _works = {
  11362. userid: b[j].userid,
  11363. ateacher: b[j].ateacher,
  11364. wid: b[j].id,
  11365. works: b[j].content,
  11366. sName: b[j].name,
  11367. type: 12,
  11368. time: b[j].time,
  11369. score: b[j].score,
  11370. img: b[j].img,
  11371. likesCount: likesCount,
  11372. commentCount: commentCount,
  11373. isLikes: isLikes,
  11374. commentJson: commentJson,
  11375. };
  11376. if (this.isGroup) {
  11377. let isGw = 1;
  11378. for (
  11379. var groupI = 0;
  11380. groupI < this.courseGroup.group.length;
  11381. groupI++
  11382. ) {
  11383. let gid = this.courseGroup.group[groupI].id;
  11384. if (
  11385. this.courseGroupStudentUid[gid].indexOf(
  11386. b[j].userid
  11387. ) != -1
  11388. ) {
  11389. isGw = 2;
  11390. this.courseGroup.group[groupI].works[i].push(_works);
  11391. break;
  11392. }
  11393. }
  11394. if (isGw == 1) {
  11395. this.worksStudent[i].push(_works);
  11396. }
  11397. } else {
  11398. this.worksStudent[i].push(_works);
  11399. }
  11400. this.isWorksS[i].push({
  11401. uid: b[j].userid,
  11402. sName: b[j].name,
  11403. });
  11404. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  11405. let _works = {
  11406. userid: b[j].userid,
  11407. ateacher: b[j].ateacher,
  11408. wid: b[j].id,
  11409. works: b[j].content,
  11410. sName: b[j].name,
  11411. type: 0,
  11412. time: b[j].time,
  11413. score: b[j].score,
  11414. img: b[j].img,
  11415. likesCount: likesCount,
  11416. commentCount: commentCount,
  11417. isLikes: isLikes,
  11418. commentJson: commentJson,
  11419. };
  11420. if (this.isGroup) {
  11421. let isGw = 1;
  11422. for (
  11423. var groupI = 0;
  11424. groupI < this.courseGroup.group.length;
  11425. groupI++
  11426. ) {
  11427. let gid = this.courseGroup.group[groupI].id;
  11428. if (
  11429. this.courseGroupStudentUid[gid].indexOf(
  11430. b[j].userid
  11431. ) != -1
  11432. ) {
  11433. isGw = 2;
  11434. this.courseGroup.group[groupI].works[i].push(_works);
  11435. break;
  11436. }
  11437. }
  11438. if (isGw == 1) {
  11439. this.worksStudent[i].push(_works);
  11440. }
  11441. } else {
  11442. this.worksStudent[i].push(_works);
  11443. }
  11444. this.isWorksS[i].push({
  11445. uid: b[j].userid,
  11446. sName: b[j].name,
  11447. });
  11448. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  11449. let _works = {
  11450. userid: b[j].userid,
  11451. ateacher: b[j].ateacher,
  11452. wid: b[j].id,
  11453. works: b[j].content,
  11454. sName: b[j].name,
  11455. type: 0,
  11456. time: b[j].time,
  11457. score: b[j].score,
  11458. img: b[j].img,
  11459. likesCount: likesCount,
  11460. commentCount: commentCount,
  11461. isLikes: isLikes,
  11462. commentJson: commentJson,
  11463. };
  11464. if (this.isGroup) {
  11465. let isGw = 1;
  11466. for (
  11467. var groupI = 0;
  11468. groupI < this.courseGroup.group.length;
  11469. groupI++
  11470. ) {
  11471. let gid = this.courseGroup.group[groupI].id;
  11472. if (
  11473. this.courseGroupStudentUid[gid].indexOf(
  11474. b[j].userid
  11475. ) != -1
  11476. ) {
  11477. isGw = 2;
  11478. this.courseGroup.group[groupI].works[i].push(_works);
  11479. break;
  11480. }
  11481. }
  11482. if (isGw == 1) {
  11483. this.worksStudent[i].push(_works);
  11484. }
  11485. } else {
  11486. this.worksStudent[i].push(_works);
  11487. }
  11488. this.isWorksS[i].push({
  11489. uid: b[j].userid,
  11490. sName: b[j].name,
  11491. });
  11492. }
  11493. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  11494. let _works = {
  11495. userid: b[j].userid,
  11496. ateacher: b[j].ateacher,
  11497. wid: b[j].id,
  11498. works: b[j].content,
  11499. sName: b[j].name,
  11500. type: 2,
  11501. time: b[j].time,
  11502. score: b[j].score,
  11503. img: b[j].img,
  11504. likesCount: likesCount,
  11505. commentCount: commentCount,
  11506. isLikes: isLikes,
  11507. commentJson: commentJson,
  11508. };
  11509. if (this.isGroup) {
  11510. let isGw = 1;
  11511. for (
  11512. var groupI = 0;
  11513. groupI < this.courseGroup.group.length;
  11514. groupI++
  11515. ) {
  11516. let gid = this.courseGroup.group[groupI].id;
  11517. if (
  11518. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  11519. -1
  11520. ) {
  11521. isGw = 2;
  11522. this.courseGroup.group[groupI].works[i].push(_works);
  11523. break;
  11524. }
  11525. }
  11526. if (isGw == 1) {
  11527. this.worksStudent[i].push(_works);
  11528. }
  11529. } else {
  11530. this.worksStudent[i].push(_works);
  11531. }
  11532. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11533. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  11534. //问卷
  11535. this.worksStudent[i].push({
  11536. userid: b[j].userid,
  11537. ateacher: b[j].ateacher,
  11538. wid: b[j].id,
  11539. works: b[j].content,
  11540. sName: b[j].name,
  11541. type: 2,
  11542. time: b[j].time,
  11543. score: b[j].score,
  11544. img: b[j].img,
  11545. likesCount: likesCount,
  11546. commentCount: commentCount,
  11547. isLikes: isLikes,
  11548. commentJson: commentJson,
  11549. });
  11550. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11551. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  11552. //选择题
  11553. this.worksStudent[i].push({
  11554. userid: b[j].userid,
  11555. ateacher: b[j].ateacher,
  11556. wid: b[j].id,
  11557. works: b[j].content,
  11558. sName: b[j].name,
  11559. type: 8,
  11560. time: b[j].time,
  11561. score: b[j].score,
  11562. img: b[j].img,
  11563. likesCount: likesCount,
  11564. commentCount: commentCount,
  11565. isLikes: isLikes,
  11566. commentJson: commentJson,
  11567. });
  11568. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11569. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  11570. //选择题
  11571. this.worksStudent[i].push({
  11572. userid: b[j].userid,
  11573. ateacher: b[j].ateacher,
  11574. wid: b[j].id,
  11575. works: b[j].content,
  11576. sName: b[j].name,
  11577. type: 9,
  11578. time: b[j].time,
  11579. score: b[j].score,
  11580. img: b[j].img,
  11581. likesCount: likesCount,
  11582. commentCount: commentCount,
  11583. isLikes: isLikes,
  11584. commentJson: commentJson,
  11585. });
  11586. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11587. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  11588. //选择题
  11589. this.worksStudent[i].push({
  11590. userid: b[j].userid,
  11591. ateacher: b[j].ateacher,
  11592. wid: b[j].id,
  11593. works: b[j].content,
  11594. sName: b[j].name,
  11595. type: 10,
  11596. time: b[j].time,
  11597. score: b[j].score,
  11598. img: b[j].img,
  11599. likesCount: likesCount,
  11600. commentCount: commentCount,
  11601. isLikes: isLikes,
  11602. commentJson: commentJson,
  11603. });
  11604. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11605. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  11606. //选择题
  11607. this.worksStudent[i].push({
  11608. userid: b[j].userid,
  11609. ateacher: b[j].ateacher,
  11610. wid: b[j].id,
  11611. works: b[j].content,
  11612. sName: b[j].name,
  11613. type: 13,
  11614. time: b[j].time,
  11615. score: b[j].score,
  11616. img: b[j].img,
  11617. likesCount: likesCount,
  11618. commentCount: commentCount,
  11619. isLikes: isLikes,
  11620. commentJson: commentJson,
  11621. });
  11622. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11623. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  11624. let _gindex = JSON.parse(b[j].content);
  11625. if (
  11626. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  11627. b[j].userid
  11628. ) != -1
  11629. ) {
  11630. this.worksStudent[i][_gindex.groupIndex].push({
  11631. userid: b[j].userid,
  11632. ateacher: b[j].ateacher,
  11633. wid: b[j].id,
  11634. works: _gindex.url,
  11635. sName: b[j].name,
  11636. type: _gindex.type,
  11637. time: b[j].time,
  11638. score: b[j].score,
  11639. img: b[j].img,
  11640. likesCount: likesCount,
  11641. commentCount: commentCount,
  11642. isLikes: isLikes,
  11643. commentJson: commentJson,
  11644. });
  11645. }
  11646. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11647. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  11648. this.worksStudent[i].push({
  11649. userid: b[j].userid,
  11650. ateacher: b[j].ateacher,
  11651. wid: b[j].id,
  11652. works: b[j].content,
  11653. sName: b[j].name ? b[j].name : b[j].userid,
  11654. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  11655. time: b[j].time,
  11656. score: b[j].score,
  11657. img: b[j].img,
  11658. likesCount: likesCount,
  11659. commentCount: commentCount,
  11660. isLikes: isLikes,
  11661. commentJson: commentJson,
  11662. });
  11663. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11664. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  11665. this.worksStudent[i].push({
  11666. userid: b[j].userid,
  11667. ateacher: b[j].ateacher,
  11668. wid: b[j].id,
  11669. works: b[j].content,
  11670. sName: b[j].name ? b[j].name : b[j].userid,
  11671. type: 12,
  11672. time: b[j].time,
  11673. score: b[j].score,
  11674. img: b[j].img,
  11675. likesCount: likesCount,
  11676. commentCount: commentCount,
  11677. isLikes: isLikes,
  11678. commentJson: commentJson,
  11679. });
  11680. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11681. } else if (a[i].tool[0] == 57 && b[j].atool == 57) {
  11682. this.worksStudent[i].push({
  11683. userid: b[j].userid,
  11684. ateacher: b[j].ateacher,
  11685. wid: b[j].id,
  11686. works: b[j].content,
  11687. sName: b[j].name ? b[j].name : b[j].userid,
  11688. type: 12,
  11689. time: b[j].time,
  11690. score: b[j].score,
  11691. img: b[j].img,
  11692. likesCount: likesCount,
  11693. commentCount: commentCount,
  11694. isLikes: isLikes,
  11695. commentJson: commentJson,
  11696. });
  11697. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11698. }
  11699. }
  11700. }
  11701. if (this.worksStudent[i] && this.worksStudent[i].length) {
  11702. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  11703. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  11704. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  11705. var scoreA = parseFloat(jscoreA);
  11706. var scoreB = parseFloat(jscoreB);
  11707. if (scoreA == scoreB) {
  11708. return b.likesCount - a.likesCount;
  11709. }
  11710. return scoreB - scoreA;
  11711. });
  11712. if (this.isGroup) {
  11713. for (
  11714. var groupI = 0;
  11715. groupI < this.courseGroup.group.length;
  11716. groupI++
  11717. ) {
  11718. this.courseGroup.group[groupI].works[i] =
  11719. this.courseGroup.group[groupI].works[i].sort(function (
  11720. a,
  11721. b
  11722. ) {
  11723. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  11724. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  11725. var scoreA = parseFloat(jscoreA);
  11726. var scoreB = parseFloat(jscoreB);
  11727. if (scoreA == scoreB) {
  11728. return b.likesCount - a.likesCount;
  11729. }
  11730. return scoreB - scoreA;
  11731. });
  11732. }
  11733. }
  11734. }
  11735. }
  11736. for (var i = 0; i < a.length; i++) {
  11737. for (var j = 0; j < b.length; j++) {
  11738. var data = b[j];
  11739. if (i == b[j].tool) {
  11740. if (data.type == 2 || data.type == 8) {
  11741. for (var z = 0; z < this.checkJson[i].length; z++) {
  11742. this.checkJson[i][z].checkPerent = [];
  11743. this.checkJson[i][z].right = Math.round(
  11744. (this.checkJson[i][z].rightPerson.length /
  11745. parseInt(this.worksStudent[i].length)) *
  11746. 100
  11747. );
  11748. let aaaa = this.checkJson[i][z];
  11749. console.log(aaaa);
  11750. for (
  11751. var k = 0;
  11752. k < this.checkJson[i][z].checkCount.length;
  11753. k++
  11754. ) {
  11755. this.checkJson[i][z].checkPerent.push(
  11756. Math.round(
  11757. (this.checkJson[i][z].checkCount[k] /
  11758. parseInt(this.worksStudent[i].length)) *
  11759. 100
  11760. )
  11761. );
  11762. }
  11763. }
  11764. } else if (data.type == 9) {
  11765. for (var z = 0; z < this.checkJson[i].length; z++) {
  11766. this.checkJson[i][z].checkPerent = [];
  11767. this.checkJson[i][z].right = Math.round(
  11768. (this.checkJson[i][z].rightPerson.length /
  11769. this.checkJson[i][z].checkPerson.length) *
  11770. 100
  11771. );
  11772. }
  11773. }
  11774. }
  11775. }
  11776. }
  11777. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  11778. this.joinGroup(gindex);
  11779. }
  11780. this.selectWorksStudent();
  11781. })
  11782. .catch((err) => {
  11783. console.error(err);
  11784. });
  11785. },
  11786. pngToWhiteBg(file) {
  11787. const _file = file;
  11788. let read = new FileReader();
  11789. read.readAsDataURL(file); // 文件转base64
  11790. return new Promise((resolve, reject) => {
  11791. read.onload = (e) => {
  11792. let img = new Image();
  11793. img.src = e.target.result;
  11794. img.onload = async () => {
  11795. // 生成canvas
  11796. let canvas = document.createElement("canvas");
  11797. let context = canvas.getContext("2d");
  11798. // 绘制图片到canvas上
  11799. canvas.width = img.width;
  11800. canvas.height = img.height;
  11801. // 在canvas绘制前填充白色背景
  11802. context.fillStyle = "#fff";
  11803. context.fillRect(0, 0, canvas.width, canvas.height);
  11804. context.drawImage(img, 0, 0);
  11805. let base64 = canvas.toDataURL(file["type"], 1);
  11806. let newFile = this.dataUrlToFile(base64, _file);
  11807. resolve(newFile);
  11808. };
  11809. };
  11810. });
  11811. },
  11812. dataUrlToFile(dataurl, file) {
  11813. let arr = dataurl.split(","),
  11814. mime = arr[0].match(/:(.*?);/)[1],
  11815. bstr = atob(arr[1]),
  11816. n = bstr.length,
  11817. u8arr = new Uint8Array(n);
  11818. while (n--) {
  11819. u8arr[n] = bstr.charCodeAt(n);
  11820. }
  11821. // return new Blob([u8arr], { type: mime });
  11822. return new File([new Blob([u8arr], { type: mime })], file.name, {
  11823. type: mime,
  11824. });
  11825. },
  11826. async beforeUpload1(event, type, i) {
  11827. // this.$message.success('进入上传')
  11828. var file = "";
  11829. if (type == 5) {
  11830. file = event;
  11831. } else {
  11832. file = event.target.files[0];
  11833. }
  11834. var credentials = {
  11835. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11836. secretAccessKey: "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",
  11837. }; //秘钥形式的登录上传
  11838. window.AWS.config.update(credentials);
  11839. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11840. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  11841. var _this = this;
  11842. _this.progress = 0;
  11843. _this.proVisible = true;
  11844. _this.isFinishSize = 0;
  11845. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  11846. var b = [
  11847. "DOC",
  11848. "DOCX",
  11849. "DOCM",
  11850. "DOTM",
  11851. "DOTX",
  11852. "PPTX",
  11853. "PPSX",
  11854. "PPT",
  11855. "PPS",
  11856. "PPTM",
  11857. "POTM",
  11858. "PPAM",
  11859. "POTX",
  11860. "PPSM",
  11861. ];
  11862. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  11863. var photoA = [
  11864. "BMP",
  11865. "GIF",
  11866. "PNG",
  11867. "JPGE",
  11868. "JPG",
  11869. "TIF",
  11870. "PCX",
  11871. "TGA",
  11872. "EXIF",
  11873. "FPX",
  11874. "SVG",
  11875. "APNG",
  11876. ];
  11877. // if (
  11878. // b.indexOf(
  11879. // file.name
  11880. // .split(".")
  11881. // [file.name.split(".").length - 1].toLocaleUpperCase()
  11882. // ) != -1
  11883. // ) {
  11884. // if (file.size / 1024 / 1024 > 10) {
  11885. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  11886. // return;
  11887. // }
  11888. // } else if (
  11889. // excelA.indexOf(
  11890. // file.name
  11891. // .split(".")
  11892. // [file.name.split(".").length - 1].toLocaleUpperCase()
  11893. // ) != "-1"
  11894. // ) {
  11895. // if (file.size / 1024 / 1024 > 5) {
  11896. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  11897. // return;
  11898. // }
  11899. // }
  11900. if (
  11901. photoA.indexOf(
  11902. file.name
  11903. .split(".")
  11904. [file.name.split(".").length - 1].toLocaleUpperCase()
  11905. ) != -1 &&
  11906. type != 4
  11907. ) {
  11908. // const blob = await imageConversion.compress(file, 0.8)
  11909. file = await this.pngToWhiteBg(file);
  11910. const blob = await imageConversion.compressAccurately(file, 256);
  11911. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  11912. file = new File([blob], file.name, { type: file.type });
  11913. }
  11914. if (file) {
  11915. var params = {
  11916. Key:
  11917. file.name.split(".")[0] +
  11918. new Date().getTime() +
  11919. "." +
  11920. file.name.split(".")[file.name.split(".").length - 1],
  11921. ContentType: file.type,
  11922. Body: file,
  11923. "Access-Control-Allow-Credentials": "*",
  11924. ACL: "public-read",
  11925. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  11926. var options = {
  11927. // partSize: 2048 * 1024 * 1024,
  11928. partSize: 1024 * 1024 * 1024,
  11929. queueSize: 2,
  11930. leavePartsOnError: true,
  11931. };
  11932. bucket
  11933. .upload(params, options)
  11934. .on("httpUploadProgress", function (evt) {
  11935. //这里可以写进度条
  11936. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  11937. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  11938. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  11939. })
  11940. .send(function (err, data) {
  11941. _this.progress = 100;
  11942. _this.isFinishSize = _this.isAllSize;
  11943. setTimeout(() => {
  11944. _this.proVisible = false;
  11945. }, 1000);
  11946. if (err) {
  11947. var a = _this.$refs.upload1.uploadFiles;
  11948. a.splice(a.length - 1, a.length);
  11949. _this.$message.error("上传失败");
  11950. } else {
  11951. // _this.$message.success('上传成功')
  11952. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  11953. var c = [
  11954. "AVI",
  11955. "NAVI",
  11956. "MPEG",
  11957. "ASF",
  11958. "MOV",
  11959. "WMV",
  11960. "3GP",
  11961. "RM",
  11962. "RMVB",
  11963. "FLV",
  11964. "F4V",
  11965. "H.264",
  11966. "H.265",
  11967. "REAL VIDEO",
  11968. "MKV",
  11969. "WebM",
  11970. "HDDVD",
  11971. "MP4",
  11972. "MPG",
  11973. "M4V",
  11974. "MGV",
  11975. "OGV",
  11976. "QTM",
  11977. "STR",
  11978. "AMC",
  11979. "DVX",
  11980. "EVO",
  11981. "DAT",
  11982. "OGG",
  11983. "OGM",
  11984. ];
  11985. if (type == 1) {
  11986. _this.studyJuri[0].cover.push({
  11987. name: file.name,
  11988. url: data.Location,
  11989. uid: file.uid,
  11990. });
  11991. if (
  11992. c.indexOf(
  11993. _this.studyJuri[0].cover[0].url
  11994. .split(".")
  11995. [
  11996. _this.studyJuri[0].cover[0].url.split(".").length - 1
  11997. ].toLocaleUpperCase()
  11998. ) != -1
  11999. ) {
  12000. _this.fileType = 2;
  12001. } else if (
  12002. b.indexOf(
  12003. _this.studyJuri[0].cover[0].url
  12004. .split(".")
  12005. [
  12006. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12007. ].toLocaleUpperCase()
  12008. ) != -1
  12009. ) {
  12010. _this.fileType = 1;
  12011. } else if (
  12012. photoA.indexOf(
  12013. _this.studyJuri[0].cover[0].url
  12014. .split(".")
  12015. [
  12016. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12017. ].toLocaleUpperCase()
  12018. ) != -1
  12019. ) {
  12020. _this.fileType = 0;
  12021. } else {
  12022. _this.fileType = 3;
  12023. }
  12024. _this.imgChange(null, null, type);
  12025. } else if (type == 2) {
  12026. _this.upToolImg = data.Location;
  12027. _this.imgChange(null, null, type);
  12028. _this.addCourseWorks(i);
  12029. } else if (type == 4) {
  12030. _this.addPz("3", data.Location);
  12031. } else if (type == 5) {
  12032. _this.addImgDrawImG(data.Location);
  12033. } else if (type == 6) {
  12034. var _ftype = 1;
  12035. if (
  12036. c.indexOf(
  12037. data.Location.split(".")[
  12038. data.Location.split(".").length - 1
  12039. ].toLocaleUpperCase()
  12040. ) != -1
  12041. ) {
  12042. _ftype = 5;
  12043. } else if (
  12044. b.indexOf(
  12045. data.Location.split(".")[
  12046. data.Location.split(".").length - 1
  12047. ].toLocaleUpperCase()
  12048. ) != -1
  12049. ) {
  12050. _ftype = 4;
  12051. } else {
  12052. _ftype = 1;
  12053. }
  12054. _this.plworkFile.push({
  12055. name: file.name,
  12056. url: data.Location,
  12057. uid: file.uid,
  12058. fileType: _ftype,
  12059. username:
  12060. _this.plworkFile.length > 10
  12061. ? _this.plworkFile.length + 1
  12062. : "0" + (_this.plworkFile.length + 1),
  12063. });
  12064. } else if (type == 7) {
  12065. _this.addCourseWorksGong(i, data.Location, 32);
  12066. } else if (type == 8) {
  12067. _this.addCourseWorksGong(i, data.Location, 57);
  12068. }
  12069. _this.imgChange(null, null, type);
  12070. console.log(data.Location);
  12071. // _this.$message.success('上传成功'+data.Location)
  12072. }
  12073. });
  12074. }
  12075. },
  12076. async beforeUpload3(event, type, i) {
  12077. // this.$message.success('进入上传')
  12078. let file = "";
  12079. let cfindex2 = 0;
  12080. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  12081. file = event.target.files[cfindex];
  12082. var credentials = {
  12083. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12084. secretAccessKey: "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",
  12085. }; //秘钥形式的登录上传
  12086. window.AWS.config.update(credentials);
  12087. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12088. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  12089. var _this = this;
  12090. // _this.progress = 0;
  12091. _this.proVisible2 = true;
  12092. var b = [
  12093. "DOC",
  12094. "DOCX",
  12095. "DOCM",
  12096. "DOTM",
  12097. "DOTX",
  12098. "PPTX",
  12099. "PPSX",
  12100. "PPT",
  12101. "PPS",
  12102. "PPTM",
  12103. "POTM",
  12104. "PPAM",
  12105. "POTX",
  12106. "PPSM",
  12107. ];
  12108. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  12109. var photoA = [
  12110. "BMP",
  12111. "GIF",
  12112. "PNG",
  12113. "JPGE",
  12114. "JPG",
  12115. "TIF",
  12116. "PCX",
  12117. "TGA",
  12118. "EXIF",
  12119. "FPX",
  12120. "SVG",
  12121. "APNG",
  12122. ];
  12123. if (
  12124. photoA.indexOf(
  12125. file.name
  12126. .split(".")
  12127. [file.name.split(".").length - 1].toLocaleUpperCase()
  12128. ) != -1 &&
  12129. type != 4
  12130. ) {
  12131. // const blob = await imageConversion.compress(file, 0.8)
  12132. file = await this.pngToWhiteBg(file);
  12133. const blob = await imageConversion.compressAccurately(file, 256);
  12134. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  12135. file = new File([blob], file.name, { type: file.type });
  12136. }
  12137. if (file) {
  12138. var params = {
  12139. Key:
  12140. file.name.split(".")[0] +
  12141. new Date().getTime() +
  12142. "." +
  12143. file.name.split(".")[file.name.split(".").length - 1],
  12144. ContentType: file.type,
  12145. Body: file,
  12146. "Access-Control-Allow-Credentials": "*",
  12147. ACL: "public-read",
  12148. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  12149. var options = {
  12150. // partSize: 2048 * 1024 * 1024,
  12151. partSize: 1024 * 1024 * 1024,
  12152. queueSize: 2,
  12153. leavePartsOnError: true,
  12154. };
  12155. bucket
  12156. .upload(params, options)
  12157. .on("httpUploadProgress", function (evt) {
  12158. //这里可以写进度条
  12159. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  12160. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  12161. })
  12162. .send(function (err, data) {
  12163. // _this.progress = 100;
  12164. cfindex2++;
  12165. setTimeout(() => {
  12166. if (
  12167. cfindex2 == event.target.files.length - 1 ||
  12168. cfindex2 > event.target.files.length - 1
  12169. ) {
  12170. _this.proVisible2 = false;
  12171. }
  12172. }, 1000);
  12173. if (err) {
  12174. var a = _this.$refs.upload1.uploadFiles;
  12175. a.splice(a.length - 1, a.length);
  12176. _this.$message.error("上传失败");
  12177. } else {
  12178. // _this.$message.success('上传成功')
  12179. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12180. var c = [
  12181. "AVI",
  12182. "NAVI",
  12183. "MPEG",
  12184. "ASF",
  12185. "MOV",
  12186. "WMV",
  12187. "3GP",
  12188. "RM",
  12189. "RMVB",
  12190. "FLV",
  12191. "F4V",
  12192. "H.264",
  12193. "H.265",
  12194. "REAL VIDEO",
  12195. "MKV",
  12196. "WebM",
  12197. "HDDVD",
  12198. "MP4",
  12199. "MPG",
  12200. "M4V",
  12201. "MGV",
  12202. "OGV",
  12203. "QTM",
  12204. "STR",
  12205. "AMC",
  12206. "DVX",
  12207. "EVO",
  12208. "DAT",
  12209. "OGG",
  12210. "OGM",
  12211. ];
  12212. if (type == 1) {
  12213. _this.studyJuri[0].cover.push({
  12214. name: file.name,
  12215. url: data.Location,
  12216. uid: file.uid,
  12217. });
  12218. if (
  12219. c.indexOf(
  12220. _this.studyJuri[0].cover[0].url
  12221. .split(".")
  12222. [
  12223. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12224. ].toLocaleUpperCase()
  12225. ) != -1
  12226. ) {
  12227. _this.fileType = 2;
  12228. } else if (
  12229. b.indexOf(
  12230. _this.studyJuri[0].cover[0].url
  12231. .split(".")
  12232. [
  12233. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12234. ].toLocaleUpperCase()
  12235. ) != -1
  12236. ) {
  12237. _this.fileType = 1;
  12238. } else {
  12239. _this.fileType = 0;
  12240. }
  12241. _this.imgChange(null, null, type);
  12242. } else if (type == 2) {
  12243. _this.upToolImg = data.Location;
  12244. _this.imgChange(null, null, type);
  12245. _this.addCourseWorks(i);
  12246. } else if (type == 4) {
  12247. _this.addPz("3", data.Location);
  12248. } else if (type == 5) {
  12249. _this.addImgDrawImG(data.Location);
  12250. } else if (type == 6) {
  12251. var _ftype = 1;
  12252. if (
  12253. c.indexOf(
  12254. data.Location.split(".")[
  12255. data.Location.split(".").length - 1
  12256. ].toLocaleUpperCase()
  12257. ) != -1
  12258. ) {
  12259. _ftype = 5;
  12260. } else if (
  12261. b.indexOf(
  12262. data.Location.split(".")[
  12263. data.Location.split(".").length - 1
  12264. ].toLocaleUpperCase()
  12265. ) != -1
  12266. ) {
  12267. _ftype = 4;
  12268. } else {
  12269. _ftype = 1;
  12270. }
  12271. _this.plworkFile.push({
  12272. name: file.name,
  12273. url: data.Location,
  12274. uid: file.uid,
  12275. fileType: _ftype,
  12276. username:
  12277. _this.plworkFile.length + 1 > 9
  12278. ? _this.plworkFile.length + 1
  12279. : "0" + (_this.plworkFile.length + 1),
  12280. });
  12281. }
  12282. _this.imgChange(null, null, type);
  12283. console.log(data.Location);
  12284. // _this.$message.success('上传成功'+data.Location)
  12285. }
  12286. });
  12287. }
  12288. }
  12289. },
  12290. beforeUpload2(event, type) {
  12291. var file = event.target.files[0];
  12292. var credentials = {
  12293. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12294. secretAccessKey: "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",
  12295. }; //秘钥形式的登录上传
  12296. window.AWS.config.update(credentials);
  12297. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12298. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  12299. var _this = this;
  12300. _this.progress = 0;
  12301. _this.proVisible = true;
  12302. if (file) {
  12303. var params = {
  12304. Key:
  12305. file.name.split(".")[0] +
  12306. new Date().getTime() +
  12307. "." +
  12308. file.name.split(".")[file.name.split(".").length - 1],
  12309. ContentType: file.type,
  12310. Body: file,
  12311. "Access-Control-Allow-Credentials": "*",
  12312. ACL: "public-read",
  12313. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  12314. var options = {
  12315. partSize: 2048 * 1024 * 1024,
  12316. queueSize: 2,
  12317. leavePartsOnError: true,
  12318. };
  12319. bucket
  12320. .upload(params, options)
  12321. .on("httpUploadProgress", function (evt) {
  12322. //这里可以写进度条
  12323. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  12324. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  12325. })
  12326. .send(function (err, data) {
  12327. _this.progress = 100;
  12328. setTimeout(() => {
  12329. _this.proVisible = false;
  12330. }, 1000);
  12331. if (err) {
  12332. var a = _this.$refs.upload1.uploadFiles;
  12333. a.splice(a.length - 1, a.length);
  12334. _this.$message.error("上传失败");
  12335. } else {
  12336. if (type == 2) {
  12337. _this.studyJuri[0].upVedio.push({
  12338. name: file.name,
  12339. url: data.Location,
  12340. uid: file.uid,
  12341. });
  12342. _this.imgChange(null, null, type);
  12343. } else if (type == 3) {
  12344. _this.studyJuri[0].upFile.push({
  12345. name: file.name,
  12346. url: data.Location,
  12347. uid: file.uid,
  12348. });
  12349. _this.imgChange(null, null, type);
  12350. }
  12351. console.log(data.Location);
  12352. }
  12353. });
  12354. }
  12355. },
  12356. allScrell() {
  12357. window.parent.postMessage({ allScreen: this.screenType }, "*");
  12358. },
  12359. nextOrpreSteps(t) {
  12360. if (this.IsFollow && this.tType == 2) {
  12361. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  12362. return;
  12363. }
  12364. var b = this.chapInfoList.length - 1;
  12365. if (t == 0) {
  12366. if (this.courseType == 0) {
  12367. if (this.taskCount == 0) {
  12368. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  12369. if (this.IsLookOpen) {
  12370. if (
  12371. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  12372. ) {
  12373. if (
  12374. this.courseDetail.userid != this.userid &&
  12375. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  12376. ) {
  12377. this.$message.error("任务未解锁");
  12378. } else {
  12379. this.$message.error("上一任务未解锁");
  12380. }
  12381. return;
  12382. }
  12383. }
  12384. this.navList[this.courseType].isOpen = false;
  12385. this.courseType = b;
  12386. this.taskCount =
  12387. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  12388. .length - 1;
  12389. this.navList[this.courseType].isOpen = true;
  12390. } else {
  12391. this.taskCount--;
  12392. }
  12393. } else {
  12394. if (this.taskCount == 0) {
  12395. this.navList[this.courseType].isOpen = false;
  12396. this.courseType--;
  12397. this.taskCount =
  12398. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  12399. .length - 1;
  12400. this.navList[this.courseType].isOpen = true;
  12401. } else {
  12402. this.taskCount--;
  12403. }
  12404. }
  12405. } else {
  12406. if (this.courseType == b) {
  12407. if (
  12408. this.taskCount ==
  12409. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  12410. 1
  12411. ) {
  12412. this.navList[this.courseType].isOpen = false;
  12413. this.courseType = 0;
  12414. this.taskCount = 0;
  12415. this.navList[this.courseType].isOpen = true;
  12416. } else {
  12417. var bbb = parseInt(this.taskCount) + 1;
  12418. if (
  12419. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  12420. .isLook &&
  12421. this.courseDetail.userid != this.userid &&
  12422. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  12423. this.IsLookOpen
  12424. ) {
  12425. this.$message.error("任务未解锁");
  12426. return;
  12427. }
  12428. this.taskCount++;
  12429. if (this.IsLookOpen) {
  12430. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12431. this.taskCount
  12432. ].isLook = true;
  12433. this.addCourseState(3);
  12434. }
  12435. }
  12436. } else {
  12437. if (
  12438. this.taskCount ==
  12439. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  12440. 1
  12441. ) {
  12442. var bbb = parseInt(this.courseType) + 1;
  12443. if (
  12444. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  12445. this.courseDetail.userid != this.userid &&
  12446. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  12447. this.IsLookOpen
  12448. ) {
  12449. this.$message.error("任务未解锁");
  12450. return;
  12451. }
  12452. this.navList[this.courseType].isOpen = false;
  12453. this.courseType++;
  12454. this.taskCount = 0;
  12455. this.navList[this.courseType].isOpen = true;
  12456. } else {
  12457. var bbb = parseInt(this.taskCount) + 1;
  12458. if (
  12459. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  12460. .isLook &&
  12461. this.courseDetail.userid != this.userid &&
  12462. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  12463. this.IsLookOpen
  12464. ) {
  12465. this.$message.error("任务未解锁");
  12466. return;
  12467. }
  12468. this.taskCount++;
  12469. }
  12470. if (this.IsLookOpen) {
  12471. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12472. this.taskCount
  12473. ].isLook = true;
  12474. this.addCourseState(3);
  12475. }
  12476. }
  12477. // if (
  12478. // this.taskCount ==
  12479. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  12480. // ) {
  12481. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  12482. // } else {
  12483. // this.taskCount++;
  12484. // }
  12485. }
  12486. document.scrollingElement.scrollTop = 0;
  12487. this.showType = 0;
  12488. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  12489. // if (this.vedio[this.taskCount].length > 0) {
  12490. // var a =
  12491. // document.getElementsByClassName("box_course")[this.taskCount]
  12492. // .offsetHeight;
  12493. // document.getElementsByClassName("vedioList")[
  12494. // this.taskCount
  12495. // ].style.height = a + "px";
  12496. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  12497. // a - 40 + "px";
  12498. // }
  12499. this.isNoHomeWork = false;
  12500. (this.studyJuri = [
  12501. {
  12502. content: "",
  12503. cover: [],
  12504. upVedio: [],
  12505. upFile: [],
  12506. },
  12507. ]),
  12508. (this.radio = []);
  12509. this.isClickNav = "";
  12510. this.selectPz();
  12511. this.getHomeWork();
  12512. this.getCourseDetail(2);
  12513. this.$forceUpdate();
  12514. },
  12515. openTask(s, n, i) {
  12516. if (this.IsFollow && this.tType == 2) {
  12517. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  12518. return;
  12519. }
  12520. if (this.IsLookOpen) {
  12521. if (
  12522. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  12523. this.courseDetail.userid != this.userid &&
  12524. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  12525. ) {
  12526. this.$message.error("任务未解锁");
  12527. return;
  12528. }
  12529. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  12530. if (
  12531. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  12532. .isLook
  12533. ) {
  12534. this.$message.error("上一任务未解锁");
  12535. return;
  12536. }
  12537. } else if (s > this.courseType) {
  12538. if (n > 0) {
  12539. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  12540. this.$message.error("上一任务未解锁");
  12541. return;
  12542. }
  12543. } else {
  12544. if (
  12545. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  12546. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  12547. ].isLook
  12548. ) {
  12549. this.$message.error("上一任务未解锁");
  12550. return;
  12551. }
  12552. }
  12553. }
  12554. }
  12555. this.courseType = s;
  12556. this.navId = i;
  12557. this.taskCount = n;
  12558. if (this.IsLookOpen) {
  12559. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12560. this.taskCount
  12561. ].isLook = true;
  12562. this.addCourseState(3);
  12563. }
  12564. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  12565. this.isCloseList[ci].isClose = 0;
  12566. }
  12567. this.showType = 0;
  12568. this.isNoHomeWork = false;
  12569. (this.studyJuri = [
  12570. {
  12571. content: "",
  12572. cover: [],
  12573. upVedio: [],
  12574. upFile: [],
  12575. },
  12576. ]),
  12577. (this.radio = []);
  12578. document.scrollingElement.scrollTop = 0;
  12579. // setTimeout(() => {
  12580. // let a = document.getElementById(i);
  12581. // if (a.offsetTop - 110 == 0) {
  12582. // window.scrollTo(0, 0);
  12583. // } else {
  12584. // window.scrollTo(0, a.offsetTop);
  12585. // }
  12586. // }, 0);
  12587. this.selectPz();
  12588. this.getHomeWork();
  12589. this.getCourseDetail(2);
  12590. },
  12591. get(i) {
  12592. if (this.IsFollow && this.tType == 2) {
  12593. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  12594. return;
  12595. }
  12596. this.navList[i].isOpen = !this.navList[i].isOpen;
  12597. },
  12598. addQuestion() {
  12599. this.answerList.push({
  12600. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  12601. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  12602. });
  12603. let params = [
  12604. {
  12605. uid: this.userid,
  12606. cid: this.id,
  12607. stage: this.courseType,
  12608. task: this.taskCount,
  12609. tool: this.toolindex,
  12610. content: JSON.stringify(this.answerList),
  12611. type: 3,
  12612. },
  12613. ];
  12614. this.ajax
  12615. .post(this.$store.state.api + "addCourseWorks", params)
  12616. .then((res) => {
  12617. this.$message({
  12618. message: "提交成功",
  12619. type: "success",
  12620. });
  12621. this.answerList = [];
  12622. this.answerDialogVisible = false;
  12623. this.selectStudent();
  12624. this.selectSWorks();
  12625. this.selectSLook();
  12626. })
  12627. .catch((err) => {
  12628. this.$message.error("提交失败");
  12629. console.error(err);
  12630. });
  12631. },
  12632. addQuestionTeacher() {
  12633. this.answerList.push({
  12634. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  12635. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  12636. });
  12637. let params = [
  12638. {
  12639. uid: this.sStudent.userid,
  12640. cid: this.id,
  12641. stage: this.courseType,
  12642. task: this.taskCount,
  12643. tool: this.toolindex,
  12644. content: JSON.stringify(this.answerList),
  12645. type: 3,
  12646. ateacher: this.userid,
  12647. },
  12648. ];
  12649. this.ajax
  12650. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12651. .then((res) => {
  12652. this.$message({
  12653. message: "提交成功",
  12654. type: "success",
  12655. });
  12656. this.answerList = [];
  12657. this.questionAnswer = "";
  12658. this.answerDialogVisibleTeacher = false;
  12659. this.selectStudent();
  12660. this.selectSWorks();
  12661. this.selectSLook();
  12662. })
  12663. .catch((err) => {
  12664. this.$message.error("提交失败");
  12665. console.error(err);
  12666. });
  12667. },
  12668. getCourseDetail(type, gindex) {
  12669. let loading;
  12670. if (type != 2) {
  12671. loading = this.$loading.service({
  12672. background: "rgba(255, 255, 255, 0.7)",
  12673. target: document.querySelector(".student_table"),
  12674. });
  12675. }
  12676. // this.navList[0].isOpen = false;
  12677. // this.navList[this.courseType].isOpen = true;
  12678. // this.courseType = this.courseTypeLine;
  12679. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  12680. let params = {
  12681. courseId: this.id,
  12682. };
  12683. this.ajax
  12684. .get(this.$store.state.api + "selectCourseDetail3", params)
  12685. .then((res) => {
  12686. if (type != 2) {
  12687. loading.close();
  12688. if (
  12689. this.courseType >
  12690. JSON.parse(res.data[0][0].chapters).length - 1
  12691. ) {
  12692. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  12693. }
  12694. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  12695. .chapterInfo[0].taskJson;
  12696. var b = [
  12697. "AVI",
  12698. "NAVI",
  12699. "MPEG",
  12700. "ASF",
  12701. "MOV",
  12702. "WMV",
  12703. "3GP",
  12704. "RM",
  12705. "RMVB",
  12706. "FLV",
  12707. "F4V",
  12708. "H.264",
  12709. "H.265",
  12710. "REAL VIDEO",
  12711. "MKV",
  12712. "WebM",
  12713. "HDDVD",
  12714. "MP4",
  12715. "MPG",
  12716. "M4V",
  12717. "MGV",
  12718. "OGV",
  12719. "QTM",
  12720. "STR",
  12721. "AMC",
  12722. "DVX",
  12723. "EVO",
  12724. "DAT",
  12725. "OGG",
  12726. "OGM",
  12727. "MP3",
  12728. ];
  12729. for (var i = 0; i < a.length; i++) {
  12730. var c = a[i].chapterData;
  12731. this.vedio[i] = [];
  12732. this.textList[i] = [];
  12733. this.lineList[i] = [];
  12734. this.chapToolList[i] = [];
  12735. this.file[i] = [];
  12736. this.fileC[i] = [];
  12737. for (var j = 0; j < c.length; j++) {
  12738. if (c[j].type == 7) {
  12739. this.chapToolList[i].push(c[j]);
  12740. } else if (c[j].type == 8) {
  12741. this.lineList[i].push(c[j]);
  12742. } else if (c[j].type == 6) {
  12743. this.textList[i].push(c[j]);
  12744. } else if (c[j].type == 12) {
  12745. this.fileC[i].push(c[j]);
  12746. } else {
  12747. if (
  12748. b.indexOf(
  12749. c[j].url
  12750. .split(".")
  12751. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  12752. ) != -1
  12753. ) {
  12754. this.vedio[i].push(c[j]);
  12755. } else {
  12756. this.file[i].push(c[j]);
  12757. }
  12758. }
  12759. }
  12760. var d = JSON.parse(JSON.stringify(this.playerOptions));
  12761. d.sources[0].src =
  12762. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  12763. this.playerO[i] = d;
  12764. }
  12765. this.courseDetail = res.data[0][0];
  12766. this.tcid = this.arrayToArray(
  12767. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  12768. this.tcid2 ? this.tcid2.split(",") : []
  12769. ).join(",");
  12770. console.log(this.tcid);
  12771. this.evalua = res.data[0][0].evaId;
  12772. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  12773. this.courseType
  12774. ];
  12775. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  12776. if (this.tcid && res.data[1].length) {
  12777. let _inviteA = [];
  12778. for (var ik = 0; ik < res.data[1].length; ik++) {
  12779. _inviteA.push({
  12780. cid: res.data[1][ik].classid,
  12781. ic: res.data[1][ik].code,
  12782. });
  12783. }
  12784. for (var ik = 0; ik < _inviteA.length; ik++) {
  12785. if (
  12786. this.arrayToArray(
  12787. _inviteA[ik].cid.split(","),
  12788. this.tcid.split(",")
  12789. ).length
  12790. ) {
  12791. this.inviteCode = _inviteA[ik].ic;
  12792. break;
  12793. }
  12794. }
  12795. }
  12796. for (var l = 0; l < this.chapInfoList.length; l++) {
  12797. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  12798. for (var m = 0; m < w.length; m++) {
  12799. w[m].id = l + "-" + m;
  12800. }
  12801. }
  12802. if (
  12803. !this.vedio[this.taskCount][0] ||
  12804. this.vedio[this.taskCount][0].url == ""
  12805. ) {
  12806. if (
  12807. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12808. this.taskCount
  12809. ].chapterData.length > 0
  12810. ) {
  12811. // if (
  12812. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12813. // this.taskCount
  12814. // ].chapterData[0].type != 8
  12815. // ) {
  12816. let _url =
  12817. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12818. this.taskCount
  12819. ].chapterData[0].url;
  12820. if (
  12821. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12822. this.taskCount
  12823. ].chapterData[0].type == 8
  12824. ) {
  12825. this.showType = 2;
  12826. if (
  12827. _url.indexOf("https://") == -1 &&
  12828. _url.indexOf("http://") == -1
  12829. ) {
  12830. _url = "https://" + _url;
  12831. }
  12832. this.pptImgUrl1 = _url;
  12833. this.isClickNav = "line0";
  12834. } else if (
  12835. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12836. this.taskCount
  12837. ].chapterData[0].type == 3
  12838. ) {
  12839. if (
  12840. _url
  12841. .split(".")
  12842. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12843. ) {
  12844. this.showType = 3;
  12845. this.pptImgUrl1 = _url;
  12846. this.isClickNav = "word0";
  12847. } else if (
  12848. this.isAssetTypeAnImage(
  12849. _url
  12850. .split(".")
  12851. [_url.split(".").length - 1].toLocaleLowerCase()
  12852. )
  12853. ) {
  12854. this.showType = 4;
  12855. this.pptImgUrl1 = _url;
  12856. this.isClickNav = "word0";
  12857. } else {
  12858. this.showType = 2;
  12859. this.pptImgUrl1 =
  12860. "https://view.officeapps.live.com/op/view.aspx?src=" +
  12861. _url;
  12862. this.isClickNav = "word0";
  12863. }
  12864. } else if (
  12865. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12866. this.taskCount
  12867. ].chapterData[0].type == 6
  12868. ) {
  12869. this.showType = 1;
  12870. this.text = this.textList[this.taskCount][0];
  12871. this.isClickNav = "text0";
  12872. }
  12873. }
  12874. } else {
  12875. this.showType = 0;
  12876. this.isClickNav = "video0";
  12877. }
  12878. } else {
  12879. this.showType = 0;
  12880. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  12881. .chapterInfo[0].taskJson;
  12882. var b = [
  12883. "AVI",
  12884. "NAVI",
  12885. "MPEG",
  12886. "ASF",
  12887. "MOV",
  12888. "WMV",
  12889. "3GP",
  12890. "RM",
  12891. "RMVB",
  12892. "FLV",
  12893. "F4V",
  12894. "H.264",
  12895. "H.265",
  12896. "REAL VIDEO",
  12897. "MKV",
  12898. "WebM",
  12899. "HDDVD",
  12900. "MP4",
  12901. "MPG",
  12902. "M4V",
  12903. "MGV",
  12904. "OGV",
  12905. "QTM",
  12906. "STR",
  12907. "AMC",
  12908. "DVX",
  12909. "EVO",
  12910. "DAT",
  12911. "OGG",
  12912. "OGM",
  12913. "MP3",
  12914. ];
  12915. for (var i = 0; i < a.length; i++) {
  12916. var c = a[i].chapterData;
  12917. this.vedio[i] = [];
  12918. this.textList[i] = [];
  12919. this.lineList[i] = [];
  12920. this.chapToolList[i] = [];
  12921. this.file[i] = [];
  12922. this.fileC[i] = [];
  12923. for (var j = 0; j < c.length; j++) {
  12924. if (c[j].type == 7) {
  12925. this.chapToolList[i].push(c[j]);
  12926. } else if (c[j].type == 8) {
  12927. this.lineList[i].push(c[j]);
  12928. } else if (c[j].type == 6) {
  12929. this.textList[i].push(c[j]);
  12930. } else if (c[j].type == 12) {
  12931. this.fileC[i].push(c[j]);
  12932. } else {
  12933. if (
  12934. b.indexOf(
  12935. c[j].url
  12936. .split(".")
  12937. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  12938. ) != -1
  12939. ) {
  12940. this.vedio[i].push(c[j]);
  12941. } else {
  12942. this.file[i].push(c[j]);
  12943. }
  12944. }
  12945. }
  12946. var d = JSON.parse(JSON.stringify(this.playerOptions));
  12947. d.sources[0].src =
  12948. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  12949. this.playerO[i] = d;
  12950. }
  12951. if (
  12952. !this.vedio[this.taskCount][0] ||
  12953. this.vedio[this.taskCount][0].url == ""
  12954. ) {
  12955. if (
  12956. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12957. this.taskCount
  12958. ].chapterData.length > 0
  12959. ) {
  12960. // if (
  12961. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12962. // this.taskCount
  12963. // ].chapterData[0].type != 8
  12964. // ) {
  12965. let _url =
  12966. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12967. this.taskCount
  12968. ].chapterData[0].url;
  12969. if (
  12970. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12971. this.taskCount
  12972. ].chapterData[0].type == 8
  12973. ) {
  12974. this.showType = 2;
  12975. if (
  12976. _url.indexOf("https://") == -1 &&
  12977. _url.indexOf("http://") == -1
  12978. ) {
  12979. _url = "https://" + _url;
  12980. }
  12981. this.pptImgUrl1 = _url;
  12982. this.isClickNav = "line0";
  12983. } else if (
  12984. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12985. this.taskCount
  12986. ].chapterData[0].type == 3
  12987. ) {
  12988. if (
  12989. _url
  12990. .split(".")
  12991. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12992. ) {
  12993. this.showType = 3;
  12994. this.pptImgUrl1 = _url;
  12995. this.isClickNav = "word0";
  12996. } else if (
  12997. this.isAssetTypeAnImage(
  12998. _url
  12999. .split(".")
  13000. [_url.split(".").length - 1].toLocaleLowerCase()
  13001. )
  13002. ) {
  13003. this.showType = 4;
  13004. this.pptImgUrl1 = _url;
  13005. this.isClickNav = "word0";
  13006. } else {
  13007. this.showType = 2;
  13008. this.pptImgUrl1 =
  13009. "https://view.officeapps.live.com/op/view.aspx?src=" +
  13010. _url;
  13011. this.isClickNav = "word0";
  13012. }
  13013. } else if (
  13014. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13015. this.taskCount
  13016. ].chapterData[0].type == 6
  13017. ) {
  13018. this.showType = 1;
  13019. this.text = this.textList[this.taskCount][0];
  13020. this.isClickNav = "text0";
  13021. }
  13022. }
  13023. } else {
  13024. this.showType = 0;
  13025. this.isClickNav = "video0";
  13026. }
  13027. this.$forceUpdate();
  13028. }
  13029. // else {
  13030. // this.courseDetail = res.data[0][0];
  13031. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  13032. // }
  13033. let _this = this;
  13034. if (_this.timer) {
  13035. clearInterval(_this.timer);
  13036. _this.timer = null;
  13037. }
  13038. if (_this.tcid) {
  13039. _this.getCourseGroup(gindex);
  13040. } else {
  13041. _this.selectSWorks(gindex);
  13042. }
  13043. _this.selectStudent();
  13044. _this.selectSLook();
  13045. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  13046. _this.setCTask();
  13047. }
  13048. if (_this.dialogVisibleGroup) {
  13049. _this.groupJson =
  13050. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  13051. _this.taskCount
  13052. ].toolChoose[_this.toolindex].groupJson;
  13053. }
  13054. _this.$nextTick(() => {
  13055. setTimeout(() => {
  13056. _this.checkEva();
  13057. }, 1000);
  13058. });
  13059. _this.timer = setInterval(function () {
  13060. // _this.getCourseDetail(2);
  13061. if (_this.tcid) {
  13062. _this.getCourseGroup(gindex);
  13063. } else {
  13064. _this.selectSWorks(gindex);
  13065. }
  13066. _this.selectStudent();
  13067. _this.selectSLook();
  13068. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  13069. _this.setCTask();
  13070. }
  13071. if (_this.dialogVisibleGroup) {
  13072. _this.groupJson =
  13073. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  13074. _this.taskCount
  13075. ].toolChoose[_this.toolindex].groupJson;
  13076. }
  13077. if (_this.tType == 4) {
  13078. _this.selectPz();
  13079. }
  13080. }, 5000);
  13081. _this.$nextTick(function () {
  13082. setTimeout(() => {
  13083. // var a =
  13084. // document.getElementsByClassName("box_course")[0].offsetHeight;
  13085. // document.getElementsByClassName("vedioList")[0].style.height =
  13086. // a + "px";
  13087. // document.getElementsByClassName("navBox")[0].style.height =
  13088. // a - 40 + "px";
  13089. // if (_this.vedio[_this.taskCount].length > 0) {
  13090. // _this.vedioTime = [];
  13091. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  13092. // _this.vedioTime[i] = document.getElementsByClassName(
  13093. // "vjs-duration-display"
  13094. // )[i].textContent;
  13095. // }
  13096. // }
  13097. }, 1000);
  13098. });
  13099. })
  13100. .catch((err) => {
  13101. loading.close();
  13102. console.error(err);
  13103. });
  13104. },
  13105. getCourseGroup(gindex) {
  13106. let params = {
  13107. cid: this.id,
  13108. classid: this.tcid ? this.tcid : "1",
  13109. };
  13110. this.ajax
  13111. .get(this.$store.state.api + "getCourseGroup", params)
  13112. .then((res) => {
  13113. if (res.data && res.data[0].length) {
  13114. if (!this.isGroup) {
  13115. let courseGroup = JSON.parse(res.data[0][0].group);
  13116. courseGroup.group = courseGroup.group.filter((el) => {
  13117. el.works = [];
  13118. return el;
  13119. });
  13120. this.courseGroup = courseGroup;
  13121. let groupPerson = res.data[1];
  13122. let group = JSON.parse(res.data[0][0].group).group;
  13123. let courseGroupStudent = {};
  13124. let courseGroupStudentUid = {};
  13125. for (var i = 0; i < group.length; i++) {
  13126. courseGroupStudent[group[i].id] = [];
  13127. courseGroupStudentUid[group[i].id] = [];
  13128. for (var j = 0; j < groupPerson.length; j++) {
  13129. if (groupPerson[j].groupCid == group[i].id) {
  13130. courseGroupStudent[group[i].id].push(groupPerson[j]);
  13131. courseGroupStudentUid[group[i].id].push(
  13132. groupPerson[j].userid
  13133. );
  13134. }
  13135. }
  13136. }
  13137. this.courseGroupStudent = courseGroupStudent;
  13138. this.courseGroupStudentUid = courseGroupStudentUid;
  13139. }
  13140. this.isGroup = true;
  13141. this.selectSWorks(gindex);
  13142. } else {
  13143. this.selectSWorks(gindex);
  13144. this.isGroup = false;
  13145. }
  13146. })
  13147. .catch((err) => {
  13148. // this.$message.error("网络不佳");
  13149. console.error(err);
  13150. });
  13151. },
  13152. setOperationTime() {
  13153. let _this = this;
  13154. if (_this.opertimer) {
  13155. clearInterval(_this.opertimer);
  13156. _this.opertimer = null;
  13157. }
  13158. _this.opertimer = setInterval(() => {
  13159. _this.setoTime("600");
  13160. }, 600000);
  13161. },
  13162. setoTime(time) {
  13163. let params = [
  13164. {
  13165. uid: this.userid,
  13166. cid: this.id,
  13167. type: "2",
  13168. time: time,
  13169. },
  13170. ];
  13171. this.ajax
  13172. .post(this.$store.state.api + "addOperationTimeT2", params)
  13173. .then((res) => {})
  13174. .catch((err) => {
  13175. console.error(err);
  13176. });
  13177. },
  13178. addPz(type, content) {
  13179. if (type == "1" && this.pzConText == "") {
  13180. this.$message.error("批注不能为空!");
  13181. return;
  13182. }
  13183. let params = [
  13184. {
  13185. cid: this.id,
  13186. uid: this.userid,
  13187. s: this.courseType,
  13188. t: this.taskCount,
  13189. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  13190. type: type,
  13191. },
  13192. ];
  13193. this.ajax
  13194. .post(this.$store.state.api + "addPz2", params)
  13195. .then((res) => {
  13196. this.$message({
  13197. message: "添加成功",
  13198. type: "success",
  13199. });
  13200. this.pzConText = "";
  13201. this.addPzDialog = false;
  13202. this.selectPz();
  13203. })
  13204. .catch((err) => {
  13205. this.$message.error("添加失败");
  13206. console.error(err);
  13207. });
  13208. },
  13209. deletePz(id) {
  13210. this.$confirm("确定删除此批注吗?", "提示", {
  13211. confirmButtonText: "确定",
  13212. cancelButtonText: "取消",
  13213. type: "warning",
  13214. })
  13215. .then(() => {
  13216. let params = [
  13217. {
  13218. id: id,
  13219. },
  13220. ];
  13221. this.ajax
  13222. .post(this.$store.state.api + "deletePz", params)
  13223. .then((res) => {
  13224. this.$message({
  13225. message: "删除成功",
  13226. type: "success",
  13227. });
  13228. this.selectPz();
  13229. })
  13230. .catch((err) => {
  13231. this.$message.error("网络异常");
  13232. console.error(err);
  13233. });
  13234. })
  13235. .catch(() => {});
  13236. },
  13237. selectPz() {
  13238. let params = {
  13239. cid: this.id,
  13240. s: this.courseType,
  13241. t: this.taskCount,
  13242. };
  13243. this.ajax
  13244. .get(this.$store.state.api + "selectPzList", params)
  13245. .then((res) => {
  13246. this.pzList = res.data[0];
  13247. })
  13248. .catch((err) => {
  13249. console.error(err);
  13250. });
  13251. },
  13252. updateSLook() {
  13253. let params = {
  13254. sopen: this.sIsOpen == false ? 1 : 2,
  13255. cid: this.id,
  13256. };
  13257. this.ajax
  13258. .get(this.$store.state.api + "updateCourseSLook", params)
  13259. .then((res) => {
  13260. if (this.sIsOpen == true) {
  13261. this.$message({
  13262. message: "权限设置成功",
  13263. type: "success",
  13264. });
  13265. } else {
  13266. this.$message({
  13267. message: "权限关闭成功",
  13268. type: "success",
  13269. });
  13270. }
  13271. })
  13272. .catch((err) => {
  13273. console.error(err);
  13274. });
  13275. },
  13276. updateFollow() {
  13277. let params = [
  13278. {
  13279. sopen: this.IsFollow == false ? 1 : 2,
  13280. cid: this.id,
  13281. },
  13282. ];
  13283. this.ajax
  13284. .post(this.$store.state.api + "updateCourseFollow", params)
  13285. .then((res) => {
  13286. if (this.IsFollow == true) {
  13287. this.$message({
  13288. message: "开启成功",
  13289. type: "success",
  13290. });
  13291. } else {
  13292. this.$message({
  13293. message: "关闭成功",
  13294. type: "success",
  13295. });
  13296. }
  13297. this.setCTask();
  13298. })
  13299. .catch((err) => {
  13300. console.error(err);
  13301. });
  13302. },
  13303. setCTask() {
  13304. let params = [
  13305. {
  13306. sopen: this.courseType + "-" + this.taskCount,
  13307. cid: this.id,
  13308. },
  13309. ];
  13310. this.ajax
  13311. .post(this.$store.state.api + "updateCourseFollowC", params)
  13312. .then((res) => {})
  13313. .catch((err) => {
  13314. console.error(err);
  13315. });
  13316. },
  13317. updateLookOpen() {
  13318. let params = [
  13319. {
  13320. sopen: this.IsLookOpen == false ? 1 : 2,
  13321. cid: this.id,
  13322. },
  13323. ];
  13324. this.ajax
  13325. .post(this.$store.state.api + "updateCourseLookOpen", params)
  13326. .then((res) => {
  13327. if (this.IsLookOpen == true) {
  13328. // if (this.courseType != 0 && this.taskCount != 0) {
  13329. // this.openTask(0, 0, "0-0");
  13330. // }
  13331. this.$message({
  13332. message: "权限设置成功",
  13333. type: "success",
  13334. });
  13335. } else {
  13336. this.$message({
  13337. message: "权限关闭成功",
  13338. type: "success",
  13339. });
  13340. }
  13341. this.getCourseState(2);
  13342. })
  13343. .catch((err) => {
  13344. console.error(err);
  13345. });
  13346. },
  13347. selectSLook() {
  13348. let params = {
  13349. cid: this.id,
  13350. };
  13351. this.ajax
  13352. .get(this.$store.state.api + "selectCourseSLook", params)
  13353. .then((res) => {
  13354. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  13355. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  13356. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  13357. if (!this.IsLookOpen) {
  13358. this.setNavList();
  13359. } else {
  13360. this.getCourseState(1);
  13361. }
  13362. if (this.IsFollow && this.tType == 2) {
  13363. this.setContent2(false);
  13364. let _followC = res.data[0][0].followC.split("-");
  13365. if (
  13366. this.courseType != _followC[0] ||
  13367. this.taskCount != _followC[1]
  13368. ) {
  13369. this.navList[this.courseType].isOpen = false;
  13370. this.courseType = _followC[0];
  13371. this.navList[this.courseType].isOpen = true;
  13372. this.taskCount = parseInt(_followC[1]);
  13373. this.navId = res.data[0][0].followC;
  13374. document.scrollingElement.scrollTop = 0;
  13375. this.getCourseDetail(2);
  13376. }
  13377. }
  13378. })
  13379. .catch((err) => {
  13380. console.error(err);
  13381. });
  13382. },
  13383. setNavList() {
  13384. if (this.navList.length == 0) {
  13385. this.navList = [];
  13386. for (var l = 0; l < this.chapInfoList.length; l++) {
  13387. var q = this.chapInfoList[l].dyName;
  13388. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  13389. var e;
  13390. this.navList.push({
  13391. dyName: q,
  13392. isOpen: l === 0 ? true : false,
  13393. task: [],
  13394. });
  13395. for (var r = 0; r < w.length; r++) {
  13396. e = w[r].task;
  13397. if (this.chapInfoList[l].easy == 1) {
  13398. this.navList[l].task.push({
  13399. taskName: q,
  13400. id: l + "-" + r,
  13401. isLook: w[r].isLook,
  13402. });
  13403. } else {
  13404. this.navList[l].task.push({
  13405. taskName: e,
  13406. id: l + "-" + r,
  13407. isLook: w[r].isLook,
  13408. });
  13409. }
  13410. // this.navId = this.navId ? this.navId : l + "-" + r;
  13411. // this.navId = l + "-" + r;
  13412. }
  13413. }
  13414. this.navList[0].isOpen = false;
  13415. this.navList[this.courseType].isOpen = true;
  13416. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  13417. } else {
  13418. this.setNavList2();
  13419. }
  13420. },
  13421. setNavList2() {
  13422. for (var l = 0; l < this.chapInfoList.length; l++) {
  13423. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  13424. for (var r = 0; r < w.length; r++) {
  13425. this.navList[l].task[r].isLook = w[r].isLook;
  13426. }
  13427. }
  13428. if (
  13429. this.IsLookOpen &&
  13430. !this.navList[this.courseType].task[this.taskCount].isLook
  13431. ) {
  13432. this.openTask(0, 0, "0-0");
  13433. }
  13434. this.$forceUpdate();
  13435. },
  13436. getCourseState(type) {
  13437. let params = {
  13438. cid: this.id,
  13439. };
  13440. this.ajax
  13441. .get(this.$store.state.api + "getCourseState", params)
  13442. .then((res) => {
  13443. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  13444. this.chapInfoList = JSON.parse(res.data[0][0].state);
  13445. this.setNavList();
  13446. this.$forceUpdate();
  13447. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  13448. this.addCourseState(2);
  13449. } else {
  13450. this.addCourseState(1);
  13451. }
  13452. })
  13453. .catch((err) => {
  13454. console.error(err);
  13455. });
  13456. },
  13457. addCourseState(type) {
  13458. let _state = this.chapInfoList;
  13459. // this.courseType this.taskCount
  13460. if (type == 1 || type == 2) {
  13461. for (var i = 0; i < _state.length; i++) {
  13462. let el = _state[i].chapterInfo[0].taskJson;
  13463. for (var j = 0; j < el.length; j++) {
  13464. // if (i == 0 && j == 0) {
  13465. // el[j].isLook = true;
  13466. // } else {
  13467. // el[j].isLook = false;
  13468. // }
  13469. if (
  13470. this.courseType > i ||
  13471. (this.courseType == i && this.taskCount + 1 > j)
  13472. ) {
  13473. el[j].isLook = true;
  13474. } else {
  13475. el[j].isLook = false;
  13476. }
  13477. }
  13478. }
  13479. }
  13480. let params = [
  13481. {
  13482. cid: this.id,
  13483. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  13484. },
  13485. ];
  13486. this.ajax
  13487. .post(
  13488. this.$store.state.api +
  13489. (type == 1 ? "addCourseState" : "updateCourseSate"),
  13490. params
  13491. )
  13492. .then((res) => {
  13493. if (this.IsLookOpen) {
  13494. this.setNavList();
  13495. }
  13496. if (type == 3 && type == 2) {
  13497. this.getCourseState(1);
  13498. }
  13499. })
  13500. .catch((err) => {
  13501. console.error(err);
  13502. });
  13503. },
  13504. getHomeWork() {
  13505. let params = {
  13506. cid: this.id,
  13507. stage: this.courseType,
  13508. task: this.taskCount,
  13509. uid: this.userid,
  13510. };
  13511. this.ajax
  13512. .get(this.$store.state.api + "selectWork", params)
  13513. .then((res) => {
  13514. if (res.data[0].length > 0) {
  13515. this.studyJuri = JSON.parse(res.data[0][0].content);
  13516. this.isNoHomeWork = true;
  13517. }
  13518. })
  13519. .catch((err) => {
  13520. console.error(err);
  13521. });
  13522. },
  13523. isAssetTypeAnImage(ext) {
  13524. return (
  13525. [
  13526. "png",
  13527. "jpg",
  13528. "jpeg",
  13529. "bmp",
  13530. "gif",
  13531. "webp",
  13532. "psd",
  13533. "svg",
  13534. "tiff",
  13535. ].indexOf(ext) !== -1
  13536. );
  13537. },
  13538. switchVideo(media) {
  13539. this.playerO = {};
  13540. this.playerOptions.poster = "";
  13541. this.playerOptions.sources[0].src = media;
  13542. this.playerO = this.playerOptions;
  13543. },
  13544. onPlayerPlay() {},
  13545. lookVedio(u, i) {
  13546. this.isClickNav = "";
  13547. // this.playerOptions.sources[0].src = u;
  13548. var d = JSON.parse(JSON.stringify(this.playerOptions));
  13549. d.sources[0].src = u;
  13550. this.playerO[this.taskCount] = d;
  13551. this.showType = 0;
  13552. this.isClickNav = "video" + i;
  13553. this.$forceUpdate();
  13554. },
  13555. lookText(i, t) {
  13556. this.isClickNav = "";
  13557. this.text = this.textList[i][t];
  13558. // this.dialogVisible1 = true;
  13559. this.showType = 1;
  13560. this.isClickNav = "text" + t;
  13561. },
  13562. lookTools(i, t) {
  13563. this.chapTools = this.chapToolList[i][t];
  13564. this.dialogVisible2 = true;
  13565. },
  13566. openFile(f) {
  13567. this.pptImgUrl = "";
  13568. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13569. if (
  13570. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  13571. -1
  13572. ) {
  13573. this.pptImgUrl =
  13574. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  13575. this.showPDF = false;
  13576. this.dialogVisible3 = true;
  13577. } else if (
  13578. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13579. ) {
  13580. this.pptImgUrl = f;
  13581. this.showPDF = true;
  13582. this.dialogVisible3 = true;
  13583. }
  13584. },
  13585. openTable(f) {
  13586. this.tableJson = JSON.parse(f.works);
  13587. this.dialogVisibleTable2 = true;
  13588. },
  13589. doUrl(url, i) {
  13590. this.isClickNav = "";
  13591. this.pptImgUrl1 = "";
  13592. this.showType = 2;
  13593. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  13594. url = "https://" + url;
  13595. }
  13596. this.pptImgUrl1 = url;
  13597. this.isClickNav = "line" + i;
  13598. },
  13599. downFile(f, i) {
  13600. this.isClickNav = "";
  13601. this.pptImgUrl1 = "";
  13602. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  13603. if (
  13604. a.indexOf(
  13605. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  13606. ) != -1
  13607. ) {
  13608. this.pptImgUrl1 =
  13609. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  13610. // this.dialogVisible3 = true;
  13611. this.showType = 2;
  13612. } else if (
  13613. this.isAssetTypeAnImage(
  13614. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  13615. )
  13616. ) {
  13617. this.showType = 4;
  13618. this.pptImgUrl1 = f.url;
  13619. } else if (
  13620. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  13621. "PDF"
  13622. ) {
  13623. this.pptImgUrl1 = f.url;
  13624. // this.dialogVisible3 = true;
  13625. this.showType = 3;
  13626. } else {
  13627. window.open(this.file[i].url);
  13628. }
  13629. this.isClickNav = "word" + i;
  13630. },
  13631. downFileList(i) {
  13632. window.open(this.noImgList[i].url);
  13633. },
  13634. openAddWork() {
  13635. this.dialogVisible = true;
  13636. },
  13637. addBzWorks() {
  13638. let params = [
  13639. {
  13640. uid: this.userid,
  13641. cid: this.id,
  13642. stage: this.courseType,
  13643. task: this.taskCount,
  13644. tool: this.toolindex,
  13645. content: JSON.stringify(this.eScore),
  13646. type: 6,
  13647. },
  13648. ];
  13649. this.ajax
  13650. .post(this.$store.state.api + "addCourseWorks", params)
  13651. .then((res) => {
  13652. this.$message({
  13653. message: "提交成功",
  13654. type: "success",
  13655. });
  13656. this.eScore = { eBzText: "", eStar: [] };
  13657. this.studentEvalDialogVisible = false;
  13658. this.selectSWorks();
  13659. })
  13660. .catch((err) => {
  13661. this.$message.error("提交失败");
  13662. console.error(err);
  13663. });
  13664. },
  13665. addBzWorksTeacher() {
  13666. let params = [
  13667. {
  13668. uid: this.sStudent.userid,
  13669. cid: this.id,
  13670. stage: this.courseType,
  13671. task: this.taskCount,
  13672. tool: this.toolindex,
  13673. content: JSON.stringify(this.eScore),
  13674. type: 6,
  13675. },
  13676. ];
  13677. this.ajax
  13678. .post(this.$store.state.api + "addCourseWorks", params)
  13679. .then((res) => {
  13680. this.$message({
  13681. message: "提交成功",
  13682. type: "success",
  13683. });
  13684. this.eScore = { eBzText: "", eStar: [] };
  13685. this.studentEvalDialogVisibleTeacher = false;
  13686. this.selectSWorks();
  13687. })
  13688. .catch((err) => {
  13689. this.$message.error("提交失败");
  13690. console.error(err);
  13691. });
  13692. },
  13693. addStudentAsk() {
  13694. if (!this.radio.length) {
  13695. this.$message.error("请选择选项");
  13696. return;
  13697. }
  13698. for (var i = 0; i < this.askJson.askCount; i++) {
  13699. if (
  13700. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13701. (this.radio[i] !== 0 && !this.radio[i])
  13702. ) {
  13703. this.$message.error("请选择选项");
  13704. return;
  13705. }
  13706. }
  13707. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  13708. let params = [
  13709. {
  13710. uid: this.userid,
  13711. cid: this.id,
  13712. stage: this.courseType,
  13713. task: this.taskCount,
  13714. tool: this.toolindex,
  13715. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13716. type: 2,
  13717. },
  13718. ];
  13719. this.ajax
  13720. .post(this.$store.state.api + "addCourseWorks", params)
  13721. .then((res) => {
  13722. this.$message({
  13723. message: "提交成功",
  13724. type: "success",
  13725. });
  13726. this.askList = [];
  13727. this.dialogVisible5 = false;
  13728. this.selectStudent();
  13729. this.selectSWorks();
  13730. this.selectSLook();
  13731. })
  13732. .catch((err) => {
  13733. this.$message.error("提交失败");
  13734. console.error(err);
  13735. });
  13736. },
  13737. addStudentAskTeacher() {
  13738. if (!this.radio.length) {
  13739. this.$message.error("请选择选项");
  13740. return;
  13741. }
  13742. for (var i = 0; i < this.askJson.askCount; i++) {
  13743. if (
  13744. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13745. (this.radio[i] !== 0 && !this.radio[i])
  13746. ) {
  13747. this.$message.error("请选择选项");
  13748. return;
  13749. }
  13750. }
  13751. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  13752. let params = [
  13753. {
  13754. uid: this.sStudent.userid,
  13755. cid: this.id,
  13756. stage: this.courseType,
  13757. task: this.taskCount,
  13758. tool: this.toolindex,
  13759. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13760. type: 2,
  13761. },
  13762. ];
  13763. this.ajax
  13764. .post(this.$store.state.api + "addCourseWorks", params)
  13765. .then((res) => {
  13766. this.$message({
  13767. message: "提交成功",
  13768. type: "success",
  13769. });
  13770. this.askList = [];
  13771. this.dialogVisible5Teacher = false;
  13772. this.selectStudent();
  13773. this.selectSWorks();
  13774. this.selectSLook();
  13775. })
  13776. .catch((err) => {
  13777. this.$message.error("提交失败");
  13778. console.error(err);
  13779. });
  13780. },
  13781. addStudentTest() {
  13782. if (!this.radio.length) {
  13783. this.$message.error("请选择选项");
  13784. return;
  13785. }
  13786. for (var i = 0; i < this.testJson.testCount; i++) {
  13787. if (
  13788. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13789. (this.radio[i] !== 0 && !this.radio[i])
  13790. ) {
  13791. this.$message.error("请选择选项");
  13792. return;
  13793. }
  13794. }
  13795. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  13796. let params = [
  13797. {
  13798. uid: this.userid,
  13799. cid: this.id,
  13800. stage: this.courseType,
  13801. task: this.taskCount,
  13802. tool: this.toolindex,
  13803. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13804. type: 8,
  13805. },
  13806. ];
  13807. this.ajax
  13808. .post(this.$store.state.api + "addCourseWorks", params)
  13809. .then((res) => {
  13810. this.$message({
  13811. message: "提交成功",
  13812. type: "success",
  13813. });
  13814. this.askList = [];
  13815. this.dialogVisibleChoice = false;
  13816. this.selectStudent();
  13817. this.selectSWorks();
  13818. this.selectSLook();
  13819. })
  13820. .catch((err) => {
  13821. this.$message.error("提交失败");
  13822. console.error(err);
  13823. });
  13824. },
  13825. addStudentTestTeacher() {
  13826. if (!this.radio.length) {
  13827. this.$message.error("请选择选项");
  13828. return;
  13829. }
  13830. for (var i = 0; i < this.testJson.testCount; i++) {
  13831. if (
  13832. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13833. (this.radio[i] !== 0 && !this.radio[i])
  13834. ) {
  13835. this.$message.error("请选择选项");
  13836. return;
  13837. }
  13838. }
  13839. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  13840. let params = [
  13841. {
  13842. uid: this.sStudent.userid,
  13843. cid: this.id,
  13844. stage: this.courseType,
  13845. task: this.taskCount,
  13846. tool: this.toolindex,
  13847. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13848. type: 8,
  13849. },
  13850. ];
  13851. this.ajax
  13852. .post(this.$store.state.api + "addCourseWorks", params)
  13853. .then((res) => {
  13854. this.$message({
  13855. message: "提交成功",
  13856. type: "success",
  13857. });
  13858. this.askList = [];
  13859. this.dialogVisibleChoiceTeacher = false;
  13860. this.selectStudent();
  13861. this.selectSWorks();
  13862. this.selectSLook();
  13863. })
  13864. .catch((err) => {
  13865. this.$message.error("提交失败");
  13866. console.error(err);
  13867. });
  13868. },
  13869. addWork() {
  13870. if (this.studyJuri[0].content == "") {
  13871. this.$message.error("请将信息填写完整");
  13872. return;
  13873. } else if (this.studyJuri[0].cover.length == 0) {
  13874. this.$message.error("请将信息填写完整");
  13875. return;
  13876. } else if (this.studyJuri[0].upVedio.length == 0) {
  13877. this.$message.error("请将信息填写完整");
  13878. return;
  13879. }
  13880. if (this.isNoHomeWork) {
  13881. this.$confirm(
  13882. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  13883. "提示",
  13884. {
  13885. confirmButtonText: "确定",
  13886. cancelButtonText: "取消",
  13887. type: "warning",
  13888. }
  13889. )
  13890. .then(() => {
  13891. let params = [
  13892. {
  13893. uid: this.userid,
  13894. cid: this.id,
  13895. stage: this.courseType,
  13896. task: this.taskCount,
  13897. content: JSON.stringify(this.studyJuri),
  13898. },
  13899. ];
  13900. this.ajax
  13901. .post(this.$store.state.api + "addWorks", params)
  13902. .then((res) => {
  13903. this.$message({
  13904. message: "提交成功",
  13905. type: "success",
  13906. });
  13907. this.isNoHomeWork = true;
  13908. this.dialogVisible = false;
  13909. })
  13910. .catch((err) => {
  13911. this.$message.error("提交失败");
  13912. console.error(err);
  13913. });
  13914. })
  13915. .catch(() => {});
  13916. } else {
  13917. let params = [
  13918. {
  13919. uid: this.userid,
  13920. cid: this.id,
  13921. stage: this.courseType,
  13922. task: this.taskCount,
  13923. content: JSON.stringify(this.studyJuri),
  13924. },
  13925. ];
  13926. this.ajax
  13927. .post(this.$store.state.api + "addWorks", params)
  13928. .then((res) => {
  13929. this.$message({
  13930. message: "提交成功",
  13931. type: "success",
  13932. });
  13933. this.isNoHomeWork = true;
  13934. this.dialogVisible = false;
  13935. })
  13936. .catch((err) => {
  13937. this.$message.error("提交失败");
  13938. console.error(err);
  13939. });
  13940. }
  13941. },
  13942. selectCount() {
  13943. let params = {
  13944. cid: this.id,
  13945. chid: this.courseType,
  13946. uid: this.userid,
  13947. };
  13948. this.ajax
  13949. .get(this.$store.state.api + "selectToolsCount", params)
  13950. .then((res) => {
  13951. for (var i = 0; i < res.data[0].length; i++) {
  13952. if (res.data[0][i].tools == 1) {
  13953. this.wbCount = res.data[0][i].count;
  13954. } else if (res.data[0][i].tools == 2) {
  13955. this.wordCount = res.data[0][i].count;
  13956. } else if (res.data[0][i].tools == 3) {
  13957. this.mindCount = res.data[0][i].count;
  13958. } else if (res.data[0][i].tools == 4) {
  13959. this.askCount = res.data[0][i].count;
  13960. } else if (res.data[0][i].tools == 6) {
  13961. this.noteCount = res.data[0][i].count;
  13962. } else if (res.data[0][i].tools == 7) {
  13963. this.mindNetWorkCount = res.data[0][i].count;
  13964. } else if (res.data[0][i].tools == 8) {
  13965. this.libraryCount = res.data[0][i].count;
  13966. } else if (res.data[0][i].tools == 16) {
  13967. this.workCount = res.data[0][i].count;
  13968. } else if (res.data[0][i].tools == 10) {
  13969. this.timeCount = res.data[0][i].count;
  13970. } else if (res.data[0][i].tools == 15) {
  13971. this.answerCount = res.data[0][i].count;
  13972. } else if (res.data[0][i].tools == 18) {
  13973. this.trainCount = res.data[0][i].count;
  13974. }
  13975. }
  13976. })
  13977. .catch((err) => {
  13978. console.error(err);
  13979. });
  13980. },
  13981. openTools(t, i, index, c, sName) {
  13982. var z = JSON.parse(c);
  13983. this.noteName = sName;
  13984. if (t == 4) {
  13985. this.radio = [];
  13986. this.isAnswer = false;
  13987. let b = z[0].anwer;
  13988. this.radio = b;
  13989. this.askJson = z[0].askJson;
  13990. this.isAnswer = true;
  13991. this.dialogVisible5 = true;
  13992. } else if (t == 45) {
  13993. this.radio = [];
  13994. this.isAnswer = false;
  13995. let b = z[0].anwer;
  13996. this.radio = b;
  13997. this.testJson = z[0].testJson;
  13998. this.isAnswer = true;
  13999. this.dialogVisibleChoice = true;
  14000. }
  14001. // else if (t == 15) {
  14002. // this.answerQ = "";
  14003. // this.questionAnswer = "";
  14004. // this.answerQ = z[0].answerTitle;
  14005. // this.questionAnswer = z[0].answer;
  14006. // this.answerDialogVisible = true;
  14007. // }
  14008. },
  14009. fastText(p, t) {
  14010. if (t == 1) {
  14011. this.commentText += p;
  14012. } else {
  14013. this.eScore.eBzText += p;
  14014. }
  14015. },
  14016. addTools(t, i, index) {
  14017. var a = 0;
  14018. // this.taskCount = index;
  14019. this.toolindex = i;
  14020. if (t == 1) {
  14021. if (this.wbCount > 0) {
  14022. this.updateCount(this.wbCount, t);
  14023. } else {
  14024. this.wbCount++;
  14025. a = this.wbCount;
  14026. this.toolsCount(a, t);
  14027. }
  14028. window.parent.postMessage(
  14029. {
  14030. tools: "1",
  14031. cid: this.id,
  14032. stage: this.courseType,
  14033. task: this.taskCount,
  14034. tool: i,
  14035. },
  14036. "*"
  14037. );
  14038. } else if (t == 2) {
  14039. if (this.wordCount > 0) {
  14040. this.updateCount(this.wordCount, t);
  14041. } else {
  14042. this.wordCount++;
  14043. a = this.wordCount;
  14044. this.toolsCount(a, t);
  14045. }
  14046. window.parent.postMessage({ tools: "2" }, "*");
  14047. } else if (t == 3) {
  14048. if (this.mindCount > 0) {
  14049. this.updateCount(this.mindCount, t);
  14050. } else {
  14051. this.mindCount++;
  14052. a = this.mindCount;
  14053. this.toolsCount(a, t);
  14054. }
  14055. window.parent.postMessage(
  14056. {
  14057. tools: "3",
  14058. cid: this.id,
  14059. stage: this.courseType,
  14060. task: this.taskCount,
  14061. tool: i,
  14062. },
  14063. "*"
  14064. );
  14065. } else if (t == 4) {
  14066. this.radio = [];
  14067. this.noteName = "";
  14068. this.isAnswer = false;
  14069. if (this.askCount > 0) {
  14070. this.updateCount(this.askCount, t);
  14071. } else {
  14072. this.askCount++;
  14073. a = this.askCount;
  14074. this.toolsCount(a, t);
  14075. }
  14076. if (!this.dialogVisible2) {
  14077. this.askJson.askJson =
  14078. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14079. index
  14080. ].toolChoose[i].askJson;
  14081. this.askJson.askTitle =
  14082. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14083. index
  14084. ].toolChoose[i].askTitle;
  14085. this.askJson.askCount =
  14086. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14087. index
  14088. ].toolChoose[i].askCount;
  14089. } else {
  14090. this.askJson.askJson = this.chapTools.askJson.askJson;
  14091. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  14092. this.askJson.askCount = this.chapTools.askJson.askCount;
  14093. }
  14094. for (var k = 0; k < this.askJson.askJson.length; k++) {
  14095. if (this.askJson.askJson[k].type == "2") {
  14096. this.radio.push([]);
  14097. } else {
  14098. this.radio.push("");
  14099. }
  14100. }
  14101. this.dialogVisible5 = true;
  14102. // window.parent.postMessage({ tools: "4" }, "*");
  14103. } else if (t == 45) {
  14104. this.noteName = "";
  14105. this.radio = [];
  14106. this.isAnswer = false;
  14107. if (this.askCount > 0) {
  14108. this.updateCount(this.askCount, t);
  14109. } else {
  14110. this.askCount++;
  14111. a = this.askCount;
  14112. this.toolsCount(a, t);
  14113. }
  14114. this.testJson =
  14115. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14116. index
  14117. ].toolChoose[i].testJson;
  14118. for (var k = 0; k < this.testJson.testJson.length; k++) {
  14119. if (this.testJson.testJson[k].type == "2") {
  14120. this.radio.push([]);
  14121. } else {
  14122. this.radio.push("");
  14123. }
  14124. }
  14125. this.dialogVisibleChoice = true;
  14126. // window.parent.postMessage({ tools: "4" }, "*");
  14127. } else if (t == 5) {
  14128. if (this.scoreCount > 0) {
  14129. this.updateCount(this.scoreCount, t);
  14130. } else {
  14131. this.scoreCount++;
  14132. a = this.scoreCount;
  14133. this.toolsCount(a, t);
  14134. }
  14135. this.dialogVisible4 = true;
  14136. // window.parent.postMessage({ tools: "5" }, "*");
  14137. } else if (t == 6) {
  14138. if (this.noteCount > 0) {
  14139. this.updateCount(this.noteCount, t);
  14140. } else {
  14141. this.noteCount++;
  14142. a = this.noteCount;
  14143. this.toolsCount(a, t);
  14144. }
  14145. window.parent.postMessage(
  14146. {
  14147. tools: "6",
  14148. cid: this.id,
  14149. stage: this.courseType,
  14150. task: this.taskCount,
  14151. tool: i,
  14152. },
  14153. "*"
  14154. );
  14155. } else if (t == 7) {
  14156. if (this.mindNetWorkCount > 0) {
  14157. this.updateCount(this.mindNetWorkCount, t);
  14158. } else {
  14159. this.mindNetWorkCount++;
  14160. a = this.mindNetWorkCount;
  14161. this.toolsCount(a, t);
  14162. }
  14163. window.parent.postMessage(
  14164. {
  14165. tools: "7",
  14166. cid: this.id,
  14167. stage: this.courseType,
  14168. task: this.taskCount,
  14169. tool: i,
  14170. },
  14171. "*"
  14172. );
  14173. } else if (t == 16) {
  14174. if (this.workCount > 0) {
  14175. this.updateCount(this.workCount, t);
  14176. } else {
  14177. this.workCount++;
  14178. a = this.workCount;
  14179. this.toolsCount(a, t);
  14180. }
  14181. this.dialogVisible = true;
  14182. } else if (t == 50) {
  14183. if (this.tType == 2) {
  14184. this.$message.error("不支持学生使用");
  14185. return;
  14186. }
  14187. this.plworkFile = [];
  14188. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  14189. // this.uploadCid =
  14190. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14191. // index
  14192. // ].toolChoose[i].uploadJson[0];
  14193. this.selectUploadStudent();
  14194. this.dialogVisiblePl = true;
  14195. } else if (t == 8) {
  14196. if (this.libraryCount > 0) {
  14197. this.updateCount(this.libraryCount, t);
  14198. } else {
  14199. this.libraryCount++;
  14200. a = this.libraryCount;
  14201. this.toolsCount(a, t);
  14202. }
  14203. window.parent.postMessage({ tools: "8" }, "*");
  14204. } else if (t == 17) {
  14205. if (this.libraryCount > 0) {
  14206. this.updateCount(this.libraryCount, t);
  14207. } else {
  14208. this.libraryCount++;
  14209. a = this.libraryCount;
  14210. this.toolsCount(a, t);
  14211. }
  14212. window.parent.postMessage({ tools: "17" }, "*");
  14213. } else if (t == 18) {
  14214. if (this.trainCount > 0) {
  14215. this.updateCount(this.trainCount, t);
  14216. } else {
  14217. this.trainCount++;
  14218. a = this.trainCount;
  14219. this.toolsCount(a, t);
  14220. }
  14221. window.parent.postMessage({ tools: "18" }, "*");
  14222. } else if (t == 10) {
  14223. if (this.timeCount > 0) {
  14224. this.updateCount(this.timeCount, t);
  14225. } else {
  14226. this.timeCount++;
  14227. a = this.timeCount;
  14228. this.toolsCount(a, t);
  14229. }
  14230. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  14231. .taskJson[index].toolChoose[i].preTime
  14232. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  14233. .toolChoose[i].preTime
  14234. : "";
  14235. this.timeDialogVisible = true;
  14236. } else if (t == 15) {
  14237. this.answerQ = "";
  14238. this.questionAnswer = "";
  14239. if (this.answerCount > 0) {
  14240. this.updateCount(this.answerCount, t);
  14241. } else {
  14242. this.answerCount++;
  14243. a = this.answerCount;
  14244. this.toolsCount(a, t);
  14245. }
  14246. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  14247. .taskJson[index].toolChoose[i].answerQ
  14248. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  14249. .toolChoose[i].answerQ
  14250. : "";
  14251. this.answerDialogVisible = true;
  14252. } else if (t == 21) {
  14253. window.parent.postMessage({ tools: "21" }, "*");
  14254. } else if (t == 22) {
  14255. window.parent.postMessage({ tools: "22" }, "*");
  14256. } else if (t == 23) {
  14257. window.parent.postMessage({ tools: "23" }, "*");
  14258. } else if (t == 24) {
  14259. window.parent.postMessage({ tools: "24" }, "*");
  14260. } else if (t == 25) {
  14261. window.parent.postMessage({ tools: "25" }, "*");
  14262. } else if (t == 31) {
  14263. window.parent.postMessage({ tools: "31" }, "*");
  14264. } else if (t == 28) {
  14265. window.parent.postMessage({ tools: "28" }, "*");
  14266. } else if (t == 37) {
  14267. window.parent.postMessage({ tools: "37" }, "*");
  14268. } else if (t == 38) {
  14269. window.parent.postMessage({ tools: "38" }, "*");
  14270. } else if (t == 39) {
  14271. window.parent.postMessage({ tools: "39" }, "*");
  14272. } else if (t == 32) {
  14273. window.parent.postMessage({ tools: "32" }, "*");
  14274. } else if (t == 57) {
  14275. window.parent.postMessage({ tools: "57" }, "*");
  14276. } else if (t == 58) {
  14277. window.parent.postMessage({ tools: "58" }, "*");
  14278. } else if (t == 59) {
  14279. window.parent.postMessage({ tools: "59" }, "*");
  14280. } else if (t == 60) {
  14281. window.parent.postMessage({ tools: "60" }, "*");
  14282. } else if (t == 61) {
  14283. window.parent.postMessage({ tools: "61" }, "*");
  14284. } else if (t == 26) {
  14285. window.parent.postMessage(
  14286. {
  14287. tools: "26",
  14288. cid: this.id,
  14289. stage: this.courseType,
  14290. task: this.taskCount,
  14291. tool: i,
  14292. },
  14293. "*"
  14294. );
  14295. } else if (t == 40) {
  14296. if (this.evalCount > 0) {
  14297. this.updateCount(this.evalCount, t);
  14298. } else {
  14299. this.evalCount++;
  14300. a = this.evalCount;
  14301. this.toolsCount(a, t);
  14302. }
  14303. this.eScore = { eBzText: "", eStar: [] };
  14304. if (this.worksStudent[i].length) {
  14305. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14306. if (this.userid == this.worksStudent[i][k].userid) {
  14307. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  14308. this.rateJson =
  14309. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14310. index
  14311. ].toolChoose[i].rateJson;
  14312. break;
  14313. } else {
  14314. this.rateJson =
  14315. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14316. index
  14317. ].toolChoose[i].rateJson;
  14318. }
  14319. }
  14320. } else {
  14321. this.rateJson =
  14322. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14323. index
  14324. ].toolChoose[i].rateJson;
  14325. }
  14326. this.isStar = false;
  14327. this.studentEvalDialogVisible = true;
  14328. } else if (t == 41) {
  14329. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14330. .taskJson[index].toolChoose[i].selectJson
  14331. ? JSON.parse(
  14332. JSON.stringify(
  14333. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14334. index
  14335. ].toolChoose[i].selectJson
  14336. )
  14337. )
  14338. : { url: "", select: [], answer: [] };
  14339. if (this.worksStudent[i].length) {
  14340. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14341. if (this.userid == this.worksStudent[i][k].userid) {
  14342. var a = this.worksStudent[i][k].works.split(",");
  14343. for (var ki = 0; ki < a.length; ki++) {
  14344. a[ki] = parseInt(a[ki]);
  14345. }
  14346. this.selectAnswer = {
  14347. answer: a,
  14348. stu: this.worksStudent[i][k].sName,
  14349. };
  14350. break;
  14351. } else {
  14352. this.selectAnswer = { answer: [], stu: "" };
  14353. }
  14354. }
  14355. } else {
  14356. this.selectAnswer = { answer: [], stu: "" };
  14357. }
  14358. this.isSelect = false;
  14359. this.dialogVisibleSelect = true;
  14360. } else if (t == 44) {
  14361. window.parent.postMessage({ tools: "44" }, "*");
  14362. } else if (t == 47) {
  14363. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  14364. .taskJson[index].toolChoose[i].sentenceList
  14365. ? JSON.parse(
  14366. JSON.stringify(
  14367. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14368. index
  14369. ].toolChoose[i].sentenceList
  14370. )
  14371. )
  14372. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  14373. for (var q = 0; q < this.sentenceList.length; q++) {
  14374. this.sentenceList[q].chooseSenList = [];
  14375. this.sentenceList[q].addChangeSen = [];
  14376. this.sentenceList[q].addChangeSen = JSON.parse(
  14377. JSON.stringify(this.sentenceList[q].addSentence)
  14378. );
  14379. this.sentenceList[q].chooseSenList.length =
  14380. this.sentenceList[q].rightAnswer.length;
  14381. }
  14382. this.dialogVisibleSentence = true;
  14383. } else if (t == 48) {
  14384. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14385. .taskJson[index].toolChoose[i].tableJson
  14386. ? JSON.parse(
  14387. JSON.stringify(
  14388. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14389. index
  14390. ].toolChoose[i].tableJson
  14391. )
  14392. )
  14393. : { text: "" };
  14394. if (this.worksStudent[i].length) {
  14395. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14396. if (this.userid == this.worksStudent[i][k].userid) {
  14397. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  14398. break;
  14399. }
  14400. }
  14401. }
  14402. this.dialogVisibleTable = true;
  14403. } else if (t == 52) {
  14404. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14405. .taskJson[index].toolChoose[i].wordJson
  14406. ? JSON.parse(
  14407. JSON.stringify(
  14408. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14409. index
  14410. ].toolChoose[i].wordJson
  14411. )
  14412. )
  14413. : { text: "" };
  14414. this.dialogVisibleWord = true;
  14415. } else if (t == 49) {
  14416. this.groupJson =
  14417. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14418. index
  14419. ].toolChoose[i].groupJson;
  14420. this.islock = this.groupJson.islock == 1 ? true : false;
  14421. this.dialogVisibleGroup = true;
  14422. }
  14423. },
  14424. teacherWorkSubmit(t, i, index, s) {
  14425. this.sStudent = s;
  14426. this.toolindex = i;
  14427. this.sTool = t;
  14428. if (this.tType !== "1" && this.tType !== "4") {
  14429. return;
  14430. }
  14431. if (t == 16 || t == 32 || t == 57 || t == 50) {
  14432. this.dialogVisibleWorks = true;
  14433. } else if (t == 15) {
  14434. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  14435. .taskJson[index].toolChoose[i].answerQ
  14436. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  14437. .toolChoose[i].answerQ
  14438. : "";
  14439. this.questionAnswer = "";
  14440. this.answerDialogVisibleTeacher = true; //问答
  14441. } else if (t == 52) {
  14442. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14443. .taskJson[index].toolChoose[i].wordJson
  14444. ? JSON.parse(
  14445. JSON.stringify(
  14446. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14447. index
  14448. ].toolChoose[i].wordJson
  14449. )
  14450. )
  14451. : { text: "" };
  14452. this.dialogVisibleWordTeacher = true; //文档
  14453. } else if (t == 4) {
  14454. this.radio = [];
  14455. this.noteName = "";
  14456. this.isAnswer = false;
  14457. if (this.askCount > 0) {
  14458. this.updateCount(this.askCount, t);
  14459. } else {
  14460. this.askCount++;
  14461. a = this.askCount;
  14462. this.toolsCount(a, t);
  14463. }
  14464. if (!this.dialogVisible2) {
  14465. this.askJson.askJson =
  14466. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14467. index
  14468. ].toolChoose[i].askJson;
  14469. this.askJson.askTitle =
  14470. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14471. index
  14472. ].toolChoose[i].askTitle;
  14473. this.askJson.askCount =
  14474. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14475. index
  14476. ].toolChoose[i].askCount;
  14477. } else {
  14478. this.askJson.askJson = this.chapTools.askJson.askJson;
  14479. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  14480. this.askJson.askCount = this.chapTools.askJson.askCount;
  14481. }
  14482. this.dialogVisible5Teacher = true;
  14483. } else if (t == 45) {
  14484. this.noteName = "";
  14485. this.radio = [];
  14486. this.isAnswer = false;
  14487. if (this.askCount > 0) {
  14488. this.updateCount(this.askCount, t);
  14489. } else {
  14490. this.askCount++;
  14491. a = this.askCount;
  14492. this.toolsCount(a, t);
  14493. }
  14494. this.testJson =
  14495. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14496. index
  14497. ].toolChoose[i].testJson;
  14498. for (var k = 0; k < this.testJson.testJson.length; k++) {
  14499. if (this.testJson.testJson[k].type == "2") {
  14500. this.radio.push([]);
  14501. } else {
  14502. this.radio.push("");
  14503. }
  14504. }
  14505. this.dialogVisibleChoiceTeacher = true;
  14506. } else if (t == 41) {
  14507. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14508. .taskJson[index].toolChoose[i].selectJson
  14509. ? JSON.parse(
  14510. JSON.stringify(
  14511. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14512. index
  14513. ].toolChoose[i].selectJson
  14514. )
  14515. )
  14516. : { url: "", select: [], answer: [] };
  14517. if (this.worksStudent[i].length) {
  14518. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14519. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14520. var a = this.worksStudent[i][k].works.split(",");
  14521. for (var ki = 0; ki < a.length; ki++) {
  14522. a[ki] = parseInt(a[ki]);
  14523. }
  14524. this.selectAnswer = {
  14525. answer: a,
  14526. stu: this.worksStudent[i][k].sName,
  14527. };
  14528. break;
  14529. } else {
  14530. this.selectAnswer = { answer: [], stu: "" };
  14531. }
  14532. }
  14533. } else {
  14534. this.selectAnswer = { answer: [], stu: "" };
  14535. }
  14536. this.isSelect = false;
  14537. this.dialogVisibleSelectTeacher = true;
  14538. } else if (t == 47) {
  14539. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  14540. .taskJson[index].toolChoose[i].sentenceList
  14541. ? JSON.parse(
  14542. JSON.stringify(
  14543. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14544. index
  14545. ].toolChoose[i].sentenceList
  14546. )
  14547. )
  14548. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  14549. for (var q = 0; q < this.sentenceList.length; q++) {
  14550. this.sentenceList[q].chooseSenList = [];
  14551. this.sentenceList[q].addChangeSen = [];
  14552. this.sentenceList[q].addChangeSen = JSON.parse(
  14553. JSON.stringify(this.sentenceList[q].addSentence)
  14554. );
  14555. this.sentenceList[q].chooseSenList.length =
  14556. this.sentenceList[q].rightAnswer.length;
  14557. }
  14558. this.dialogVisibleSentenceTeacher = true;
  14559. } else if (t == 48) {
  14560. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14561. .taskJson[index].toolChoose[i].tableJson
  14562. ? JSON.parse(
  14563. JSON.stringify(
  14564. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14565. index
  14566. ].toolChoose[i].tableJson
  14567. )
  14568. )
  14569. : { text: "" };
  14570. if (this.worksStudent[i].length) {
  14571. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14572. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14573. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  14574. break;
  14575. }
  14576. }
  14577. }
  14578. this.dialogVisibleTableTeacher = true;
  14579. } else if (t == 40) {
  14580. if (this.evalCount > 0) {
  14581. this.updateCount(this.evalCount, t);
  14582. } else {
  14583. this.evalCount++;
  14584. a = this.evalCount;
  14585. this.toolsCount(a, t);
  14586. }
  14587. this.eScore = { eBzText: "", eStar: [] };
  14588. if (this.worksStudent[i].length) {
  14589. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14590. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14591. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  14592. this.rateJson =
  14593. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14594. index
  14595. ].toolChoose[i].rateJson;
  14596. break;
  14597. } else {
  14598. this.rateJson =
  14599. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14600. index
  14601. ].toolChoose[i].rateJson;
  14602. }
  14603. }
  14604. } else {
  14605. this.rateJson =
  14606. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14607. index
  14608. ].toolChoose[i].rateJson;
  14609. }
  14610. this.isStar = false;
  14611. this.studentEvalDialogVisibleTeacher = true;
  14612. } else if (t == 3 || t == 1 || t == 7) {
  14613. window.parent.postMessage(
  14614. {
  14615. tools: t + "teacher",
  14616. cid: this.id,
  14617. stage: this.courseType,
  14618. task: this.taskCount,
  14619. tool: i,
  14620. student: this.sStudent,
  14621. },
  14622. "*"
  14623. );
  14624. }
  14625. },
  14626. setRightAnswer(s, i, j) {
  14627. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  14628. if (
  14629. this.sentenceList[i].chooseSenList[q] == undefined ||
  14630. this.sentenceList[i].chooseSenList[q] == ""
  14631. ) {
  14632. this.sentenceList[i].chooseSenList[q] = s;
  14633. this.sentenceList[i].addChangeSen[j] = "";
  14634. break;
  14635. }
  14636. }
  14637. this.$forceUpdate();
  14638. },
  14639. returnCard(r, i, j) {
  14640. var a = this.sentenceList[i].addSentence.indexOf(r);
  14641. this.sentenceList[i].chooseSenList[j] = "";
  14642. this.sentenceList[i].addChangeSen[a] = r;
  14643. this.$forceUpdate();
  14644. },
  14645. // addSentenceTool() {
  14646. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14647. // this.taskCount
  14648. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  14649. // this.sentenceList = [
  14650. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  14651. // ];
  14652. // this.dialogVisibleSentence = false;
  14653. // },
  14654. toolsCount(a, t) {
  14655. let params = {
  14656. cid: this.id,
  14657. chid: this.courseType,
  14658. uid: this.userid,
  14659. tid: t,
  14660. count: a,
  14661. };
  14662. this.ajax
  14663. .get(this.$store.state.api + "insertToolsCount", params)
  14664. .then((res) => {
  14665. this.selectCount();
  14666. })
  14667. .catch((err) => {
  14668. console.error(err);
  14669. });
  14670. },
  14671. updateCount(c, t) {
  14672. c++;
  14673. let params = {
  14674. cid: this.id,
  14675. chid: this.courseType,
  14676. uid: this.userid,
  14677. tid: t,
  14678. count: c,
  14679. };
  14680. this.ajax
  14681. .get(this.$store.state.api + "updateToolsCount", params)
  14682. .then((res) => {
  14683. this.selectCount();
  14684. })
  14685. .catch((err) => {
  14686. console.error(err);
  14687. });
  14688. },
  14689. checkEva() {
  14690. if (this.evalua != "") {
  14691. for (var i = 0; i < this.evaJuri.length; i++) {
  14692. if (this.evalua == this.evaJuri[i].id) {
  14693. this.eTitle = this.evaJuri[i].title;
  14694. this.eJson = JSON.parse(this.evaJuri[i].content);
  14695. }
  14696. }
  14697. this.$forceUpdate();
  14698. setTimeout(() => {
  14699. this.setMindData();
  14700. }, 0);
  14701. }
  14702. },
  14703. selectEva() {
  14704. let params = {
  14705. oid: this.oid,
  14706. };
  14707. this.ajax
  14708. .get(this.$store.state.api + "selectAllEvaluation", params)
  14709. .then((res) => {
  14710. this.evaJuri = res.data[0];
  14711. })
  14712. .catch((err) => {
  14713. console.error(err);
  14714. });
  14715. },
  14716. setMindData() {
  14717. this.data.data = [];
  14718. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  14719. let _eJson = Object.keys(this.eJson);
  14720. let _e = this.eJson;
  14721. for (let i = 0; i < _eJson.length; i++) {
  14722. let element = _e[_eJson[i]];
  14723. this.data.data.push({
  14724. id: element.id,
  14725. parentid: "root",
  14726. topic: element.name,
  14727. });
  14728. let _eJsonc = Object.keys(element.child);
  14729. let _e2 = element.child;
  14730. for (let j = 0; j < _eJsonc.length; j++) {
  14731. let _ec = _e2[_eJsonc[j]];
  14732. this.data.data.push({
  14733. id: _ec.id,
  14734. parentid: element.id,
  14735. topic: _ec.name,
  14736. });
  14737. let _eJsonz = Object.keys(_ec.child);
  14738. let _e3 = _ec.child;
  14739. for (let z = 0; z < _eJsonz.length; z++) {
  14740. let _ez = _e3[_eJsonz[z]];
  14741. this.data.data.push({
  14742. id: _ez.id,
  14743. parentid: _ec.id,
  14744. topic: _ez.name,
  14745. });
  14746. }
  14747. }
  14748. }
  14749. this.$forceUpdate();
  14750. },
  14751. checkFileFull(type, url) {
  14752. this.fullDialogVisible = true;
  14753. this.fulltype = type;
  14754. this.fullUrl = url;
  14755. },
  14756. openSname(n, id, i) {
  14757. this.snameWid = id;
  14758. this.worksSName = n;
  14759. this.toolindex = i;
  14760. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  14761. this.selectUploadStudent();
  14762. this.dialogVisibleSname = true;
  14763. },
  14764. updateName() {
  14765. let params = {
  14766. n: this.worksSName,
  14767. cid: this.snameWid,
  14768. };
  14769. this.ajax
  14770. .get(this.$store.state.api + "updateCourseWorksName", params)
  14771. .then((res) => {
  14772. this.$message({
  14773. message: "修改成功",
  14774. type: "success",
  14775. });
  14776. this.dialogVisibleSname = false;
  14777. this.getCourseDetail(2);
  14778. this.snameWid = "";
  14779. this.worksSName = "";
  14780. })
  14781. .catch((err) => {
  14782. console.error(err);
  14783. });
  14784. },
  14785. downloadFile2(f) {
  14786. let url = f.url;
  14787. let _this = this;
  14788. let _url = "";
  14789. if (
  14790. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  14791. ) {
  14792. _url = url.split(
  14793. "https://view.officeapps.live.com/op/view.aspx?src="
  14794. )[1];
  14795. } else {
  14796. _url = url;
  14797. }
  14798. const x = new XMLHttpRequest();
  14799. x.open("GET", _url, true);
  14800. x.responseType = "blob";
  14801. const loading = _this.$loading.service({
  14802. background: "rgba(255, 255, 255, 0.7)",
  14803. target: document.body,
  14804. text: "文件加载中...",
  14805. });
  14806. // _this.$message.success("文件下载中...");
  14807. x.onload = function (e) {
  14808. loading.close();
  14809. let content = x.response;
  14810. let elink = document.createElement("a");
  14811. elink.download = f.name;
  14812. elink.style.display = "none";
  14813. let blob = new Blob([content]);
  14814. elink.href = URL.createObjectURL(blob);
  14815. document.body.appendChild(elink);
  14816. elink.click();
  14817. document.body.removeChild(elink);
  14818. };
  14819. x.send();
  14820. },
  14821. downloadFile(url) {
  14822. let _this = this;
  14823. let _url = "";
  14824. if (
  14825. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  14826. ) {
  14827. _url = url.split(
  14828. "https://view.officeapps.live.com/op/view.aspx?src="
  14829. )[1];
  14830. } else {
  14831. _url = url;
  14832. }
  14833. const x = new XMLHttpRequest();
  14834. x.open("GET", _url, true);
  14835. x.responseType = "blob";
  14836. const loading = _this.$loading.service({
  14837. background: "rgba(255, 255, 255, 0.7)",
  14838. target: document.body,
  14839. text: "文件加载中...",
  14840. });
  14841. // _this.$message.success("文件下载中...");
  14842. x.onload = function (e) {
  14843. loading.close();
  14844. // const url = window.URL.createObjectURL(x.response);
  14845. // const a = document.createElement("a");
  14846. // a.href = url;
  14847. // a.target = "_blank";
  14848. // a.download = url;
  14849. // a.click();
  14850. // a.remove();
  14851. let content = x.response;
  14852. let elink = document.createElement("a");
  14853. elink.download = decodeURI(
  14854. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  14855. );
  14856. elink.style.display = "none";
  14857. let blob = new Blob([content]);
  14858. elink.href = URL.createObjectURL(blob);
  14859. document.body.appendChild(elink);
  14860. elink.click();
  14861. document.body.removeChild(elink);
  14862. };
  14863. x.send();
  14864. },
  14865. openLine(url) {
  14866. window.open(url);
  14867. },
  14868. resize() {
  14869. if (document.getElementsByClassName("box_course").length) {
  14870. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  14871. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  14872. document.getElementsByClassName("navBox")[0].style.height =
  14873. a - 40 + "px";
  14874. }
  14875. this.Stbodywidth =
  14876. document.getElementsByClassName("student_body").length &&
  14877. document.getElementsByClassName("student_body")[0].offsetWidth;
  14878. },
  14879. closeDraw() {
  14880. this.bg = null;
  14881. this.drawShow = false;
  14882. },
  14883. showPicturePaint(url) {
  14884. let params = {
  14885. img: url,
  14886. };
  14887. this.ajax
  14888. .get(this.$store.state.api + "imgToBase64", params)
  14889. .then((res) => {
  14890. console.log(res);
  14891. this.drawShow = true;
  14892. this.bg = res.data[0].img;
  14893. })
  14894. .catch((err) => {
  14895. console.error(err);
  14896. });
  14897. },
  14898. addImgDraw(base64) {
  14899. let file = { name: "批注图.png" };
  14900. let img = this.dataUrlToFile(base64, file);
  14901. this.beforeUpload1(img, 5);
  14902. },
  14903. addImgDrawImG(url) {
  14904. // console.log(url);
  14905. let params = [
  14906. {
  14907. wid: this.commentDetail.wid,
  14908. img: url,
  14909. },
  14910. ];
  14911. this.ajax
  14912. .post(this.$store.state.api + "updateCourseWorks", params)
  14913. .then((res) => {
  14914. this.$message({
  14915. message: "提交成功",
  14916. type: "success",
  14917. });
  14918. this.drawShow = false;
  14919. this.bg = "";
  14920. this.selectSWorks();
  14921. this.selectStudent();
  14922. })
  14923. .catch((err) => {
  14924. this.$message.error("提交失败");
  14925. console.error(err);
  14926. });
  14927. },
  14928. deletePicturePaint() {
  14929. this.$confirm("确定删除此批注吗?", "提示", {
  14930. confirmButtonText: "确定",
  14931. cancelButtonText: "取消",
  14932. type: "warning",
  14933. })
  14934. .then(() => {
  14935. let params = [
  14936. {
  14937. wid: this.commentDetail.wid,
  14938. img: "",
  14939. },
  14940. ];
  14941. this.ajax
  14942. .post(this.$store.state.api + "updateCourseWorks", params)
  14943. .then((res) => {
  14944. this.$message({
  14945. message: "删除成功",
  14946. type: "success",
  14947. });
  14948. this.selectSWorks();
  14949. this.selectStudent();
  14950. })
  14951. .catch((err) => {
  14952. this.$message.error("删除失败");
  14953. console.error(err);
  14954. });
  14955. })
  14956. .catch(() => {});
  14957. },
  14958. getAudioVideo(constraintsData) {
  14959. if (navigator.mediaDevices === undefined) {
  14960. navigator.mediaDevices = {};
  14961. }
  14962. if (navigator.mediaDevices.getUserMedia === undefined) {
  14963. navigator.mediaDevices.getUserMedia = function (constraints) {
  14964. // 首先,如果有getUserMedia的话,就获得它
  14965. var getUserMedia =
  14966. navigator.getUserMedia ||
  14967. navigator.webkitGetUserMedia ||
  14968. navigator.mozGetUserMedia ||
  14969. navigator.msGetUserMedia;
  14970. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  14971. if (!getUserMedia) {
  14972. return Promise.reject({ code: 404 });
  14973. }
  14974. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  14975. return new Promise(function (resolve, reject) {
  14976. getUserMedia.call(navigator, constraints, resolve, reject);
  14977. });
  14978. };
  14979. }
  14980. return navigator.mediaDevices.getUserMedia(constraintsData);
  14981. },
  14982. /**
  14983. * 开始录制
  14984. */
  14985. startRecording(callback) {
  14986. let _function = (screenStream) => {
  14987. this.addStreamStopListener(screenStream, () => {
  14988. console.log("流停止监听");
  14989. this.stopRecording();
  14990. this.$emit("streamStop", {});
  14991. // this.stopRecording();
  14992. });
  14993. var options = {
  14994. type: "video",
  14995. mimeType: "video/webm",
  14996. disableLogs: false,
  14997. getNativeBlob: false, // enable it for longer recordings
  14998. ignoreMutedMedia: false,
  14999. };
  15000. // this.video.srcObject = screenStream;
  15001. this.recorder = RecordRTC(screenStream, options);
  15002. this.recorder.startRecording();
  15003. this.recorder.screen = screenStream;
  15004. this.videoStart = true;
  15005. // callback(true);
  15006. };
  15007. this.getAudioVideo({ audio: true })
  15008. .then((res) => {
  15009. this.captureScreen(_function, true);
  15010. console.log("已点击允许,开启成功");
  15011. })
  15012. .catch((err) => {
  15013. // console.log('浏览器不支持,请更换浏览器')
  15014. // } else {
  15015. this.captureScreen(_function, false);
  15016. console.log("请检查是否存在麦克风");
  15017. });
  15018. },
  15019. /**
  15020. * 停止录制
  15021. */
  15022. stopRecording(callback) {
  15023. this.recorder.stopRecording(() => {
  15024. // this.video.src = this.video.srcObject = null;
  15025. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  15026. const url = URL.createObjectURL(this.recorder.getBlob());
  15027. const a = document.createElement("a"); //this.fileName+
  15028. let videoFile = new File(
  15029. [this.recorder.getBlob()],
  15030. this.courseDetail.title + "录屏.mp4",
  15031. {
  15032. type: "video/mp4",
  15033. }
  15034. );
  15035. let downloadUrl = URL.createObjectURL(videoFile);
  15036. document.body.appendChild(a);
  15037. a.style.display = "none";
  15038. a.href = url;
  15039. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  15040. a.click();
  15041. this.recorder.screen.stop();
  15042. this.recorder.destroy();
  15043. this.recorder = null;
  15044. this.videoStart = false;
  15045. // callback(false);
  15046. });
  15047. },
  15048. //初始化
  15049. captureScreen(callback, type) {
  15050. if (navigator.getDisplayMedia) {
  15051. //录制结束,文件下载
  15052. navigator
  15053. .getDisplayMedia({
  15054. video: true,
  15055. })
  15056. .then((screenStream) => {
  15057. if (type) {
  15058. navigator.mediaDevices
  15059. .getUserMedia({ audio: true })
  15060. .then((mic) => {
  15061. screenStream.addTrack(mic.getTracks()[0]);
  15062. callback(screenStream);
  15063. });
  15064. } else {
  15065. callback(screenStream);
  15066. }
  15067. })
  15068. .catch(function (error) {
  15069. console.log("error", error);
  15070. });
  15071. } else if (navigator.mediaDevices.getDisplayMedia) {
  15072. navigator.mediaDevices
  15073. .getDisplayMedia({
  15074. video: true,
  15075. })
  15076. .then((screenStream) => {
  15077. if (type) {
  15078. navigator.mediaDevices
  15079. .getUserMedia({ audio: true })
  15080. .then((mic) => {
  15081. screenStream.addTrack(mic.getTracks()[0]);
  15082. callback(screenStream);
  15083. });
  15084. } else {
  15085. callback(screenStream);
  15086. }
  15087. })
  15088. .catch(function (error) {
  15089. console.log("error", error);
  15090. });
  15091. } else {
  15092. var error = "getDisplayMedia API are not supported in this browser.";
  15093. console.log("error", error);
  15094. alert(error);
  15095. }
  15096. },
  15097. //流监听
  15098. addStreamStopListener(stream, callback) {
  15099. stream.addEventListener(
  15100. "ended",
  15101. function () {
  15102. callback();
  15103. callback = function () {};
  15104. },
  15105. false
  15106. );
  15107. stream.addEventListener(
  15108. "inactive",
  15109. function () {
  15110. callback();
  15111. callback = function () {};
  15112. },
  15113. false
  15114. );
  15115. stream.getTracks().forEach(function (track) {
  15116. track.addEventListener(
  15117. "ended",
  15118. function () {
  15119. callback();
  15120. callback = function () {};
  15121. },
  15122. false
  15123. );
  15124. track.addEventListener(
  15125. "inactive",
  15126. function () {
  15127. callback();
  15128. callback = function () {};
  15129. },
  15130. false
  15131. );
  15132. });
  15133. },
  15134. updateGroup() {
  15135. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  15136. this.dialogVisibleGroup2 = true;
  15137. },
  15138. updateGroupJson() {
  15139. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  15140. if (
  15141. this.groupStudentUid[this.toolindex][i].length >
  15142. this.groupJson2.number
  15143. ) {
  15144. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  15145. return;
  15146. }
  15147. }
  15148. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  15149. this.islock = this.groupJson.islock == 1 ? true : false;
  15150. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15151. this.taskCount
  15152. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  15153. let params = [
  15154. {
  15155. cid: this.id,
  15156. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  15157. uid: this.userid,
  15158. unitIndex: this.courseType,
  15159. },
  15160. ];
  15161. this.ajax
  15162. .post(this.$store.state.api + "updateWorkNew4", params)
  15163. .then((res) => {
  15164. this.$message.success("设置成功");
  15165. this.getCourseDetail(2);
  15166. this.dialogVisibleGroup2 = false;
  15167. this.groupJson2 = {};
  15168. this.$forceUpdate();
  15169. })
  15170. .catch((err) => {
  15171. this.$message.error("网络不佳");
  15172. console.error(err);
  15173. });
  15174. },
  15175. lockChair() {
  15176. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  15177. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  15178. this.updateGroupJson();
  15179. },
  15180. selectGroup(index) {
  15181. this.getCourseDetail(2, index);
  15182. },
  15183. joinGroup(index) {
  15184. if (this.groupJson.islock == 2) {
  15185. this.$message.error("位置已被锁定,无法加入");
  15186. return;
  15187. }
  15188. if (
  15189. this.groupStudent[this.toolindex][index].length >
  15190. this.groupJson.number ||
  15191. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  15192. ) {
  15193. this.$message.error("位置已满,无法加入");
  15194. return;
  15195. }
  15196. let params = [
  15197. {
  15198. cid: this.id,
  15199. stage: this.courseType,
  15200. task: this.taskCount,
  15201. tool: this.toolindex,
  15202. g: index,
  15203. uid: this.userid,
  15204. },
  15205. ];
  15206. this.ajax
  15207. .post(this.$store.state.api + "joinGroup", params)
  15208. .then((res) => {
  15209. this.$message.success("加入成功");
  15210. this.getCourseDetail(2);
  15211. })
  15212. .catch((err) => {
  15213. this.$message.error("网络不佳");
  15214. console.error(err);
  15215. });
  15216. },
  15217. exitGroup(id) {
  15218. if (this.groupJson.islock == 2) {
  15219. this.$message.error("位置已被锁定,无法退出");
  15220. return;
  15221. }
  15222. let params = [
  15223. {
  15224. gid: id,
  15225. },
  15226. ];
  15227. this.ajax
  15228. .post(this.$store.state.api + "exitGroup", params)
  15229. .then((res) => {
  15230. this.$message.success("退出成功");
  15231. this.getCourseDetail(2);
  15232. })
  15233. .catch((err) => {
  15234. this.$message.error("网络不佳");
  15235. console.error(err);
  15236. });
  15237. },
  15238. groupUpload(index, task, gindex) {
  15239. this.taskCount = task;
  15240. this.toolindex = index;
  15241. this.groupIndex = gindex;
  15242. this.dialogVisibleGroupWork = true;
  15243. },
  15244. updateGroupChair(user) {
  15245. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  15246. el.label = index;
  15247. return index != user.group;
  15248. });
  15249. this.updateGroupUser = user;
  15250. this.dialogVisibleUpdateGroup = true;
  15251. },
  15252. updateChair() {
  15253. if (
  15254. this.groupStudent[this.toolindex][this.checkChair].length >
  15255. this.groupJson.number ||
  15256. this.groupStudent[this.toolindex][this.checkChair].length ==
  15257. this.groupJson.number
  15258. ) {
  15259. this.$message.error("位置已满,无法加入");
  15260. return;
  15261. }
  15262. let params = [
  15263. {
  15264. cid: this.id,
  15265. stage: this.courseType,
  15266. task: this.taskCount,
  15267. tool: this.toolindex,
  15268. g: this.checkChair,
  15269. uid: this.updateGroupUser.userid,
  15270. },
  15271. ];
  15272. this.ajax
  15273. .post(this.$store.state.api + "joinGroup", params)
  15274. .then((res) => {
  15275. this.$message.success("修改成功");
  15276. this.updateGroupUser = {};
  15277. this.checkChair = "";
  15278. this.updateGroupArray = {};
  15279. this.dialogVisibleUpdateGroup = false;
  15280. this.getCourseDetail(2);
  15281. })
  15282. .catch((err) => {
  15283. this.$message.error("网络不佳");
  15284. console.error(err);
  15285. });
  15286. },
  15287. deleteGroupChair(gindex) {
  15288. this.checkDeleteGroup = [];
  15289. this.deleteGroupUser = JSON.parse(
  15290. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  15291. );
  15292. this.deleteGroupArray = this.groupJson.group[gindex];
  15293. this.groupIndex = gindex;
  15294. this.dialogVisibleDeleteGroup = true;
  15295. },
  15296. async deleteChair() {
  15297. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  15298. const gid =
  15299. this.groupStudent[this.toolindex][this.groupIndex][
  15300. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  15301. this.checkDeleteGroup[i]
  15302. )
  15303. ];
  15304. let params = [
  15305. {
  15306. gid: gid.id,
  15307. },
  15308. ];
  15309. var a = await this.deleteChairA(params);
  15310. if (i == this.checkDeleteGroup.length - 1) {
  15311. this.$message.success("退出成功");
  15312. this.dialogVisibleDeleteGroup = false;
  15313. this.deleteGroupUser = [];
  15314. this.deleteGroupArray = {};
  15315. this.groupIndex = "";
  15316. this.checkDeleteGroup = [];
  15317. this.getCourseDetail(2);
  15318. }
  15319. }
  15320. },
  15321. deleteChairA(params) {
  15322. return new Promise((resolve, reject) => {
  15323. this.ajax
  15324. .post(this.$store.state.api + "exitGroup", params)
  15325. .then((res) => {
  15326. resolve(1);
  15327. })
  15328. .catch((err) => {
  15329. this.$message.error("网络不佳");
  15330. console.error(err);
  15331. });
  15332. });
  15333. },
  15334. contract(i) {
  15335. if (this.isCloseList[i].isClose == 0) {
  15336. this.isCloseList[i].isClose = 1;
  15337. } else {
  15338. this.isCloseList[i].isClose = 0;
  15339. }
  15340. this.$forceUpdate();
  15341. },
  15342. },
  15343. directives: {
  15344. // 使用局部注册指令的方式
  15345. resize: {
  15346. // 指令的名称
  15347. bind(el, binding) {
  15348. // el为绑定的元素,binding为绑定给指令的对象
  15349. let width = "",
  15350. height = "";
  15351. function isReize() {
  15352. const style = document.defaultView.getComputedStyle(el);
  15353. if (width !== style.width || height !== style.height) {
  15354. binding.value(); // 关键
  15355. }
  15356. width = style.width;
  15357. height = style.height;
  15358. }
  15359. el.__vueSetInterval__ = setInterval(isReize, 300);
  15360. },
  15361. unbind(el) {
  15362. clearInterval(el.__vueSetInterval__);
  15363. },
  15364. },
  15365. },
  15366. beforeDestroy() {
  15367. window.onresize = null;
  15368. clearInterval(this.timer);
  15369. this.timer = null;
  15370. clearInterval(this.opertimer);
  15371. this.opertimer = null;
  15372. },
  15373. computed: {
  15374. contentConvent() {
  15375. return function (c) {
  15376. return c
  15377. ? c
  15378. .replaceAll(/\r\n/g, "<br/>")
  15379. .replaceAll(/\n/g, "<br/>")
  15380. .replaceAll(/\s/g, " &nbsp")
  15381. : "";
  15382. };
  15383. },
  15384. checkUpload() {
  15385. return function () {
  15386. var studentK = [];
  15387. if (this.plworkFile.length > 0) {
  15388. for (var z = 0; z < this.plworkFile.length; z++) {
  15389. studentK.push(this.plworkFile[z].username);
  15390. }
  15391. studentK = studentK.join(",");
  15392. }
  15393. var a = this.uploadStudentJuri.filter((el) => {
  15394. return studentK.indexOf(el.userid) == -1;
  15395. });
  15396. return a;
  15397. };
  15398. },
  15399. },
  15400. mounted() {
  15401. if (this.screenType == 2) {
  15402. window.parent.postMessage({ allScreen: 4 }, "*");
  15403. } else if (this.screenType == 3) {
  15404. window.parent.postMessage({ allScreen: 5 }, "*");
  15405. } else if (this.screenType == 1) {
  15406. window.parent.postMessage({ allScreen: 6 }, "*");
  15407. }
  15408. this.setOperationTime();
  15409. this.selectEva();
  15410. this.getCourseDetail();
  15411. this.selectCount();
  15412. this.getHomeWork();
  15413. this.contentDialog = true;
  15414. this.setContent2(true);
  15415. if (this.tType == 4) {
  15416. this.pzDialog = true;
  15417. this.selectPz();
  15418. }
  15419. document.scrollingElement.scrollTop = 0;
  15420. window.addEventListener("resize", () => {
  15421. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  15422. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  15423. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  15424. });
  15425. let _this = this;
  15426. setTimeout(() => {
  15427. // _this.vedioTime = [];
  15428. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  15429. // _this.vedioTime[i] = document.getElementsByClassName(
  15430. // "vjs-duration-display"
  15431. // )[i].textContent;
  15432. // }
  15433. }, 1000);
  15434. },
  15435. };
  15436. </script>
  15437. <style scoped>
  15438. @media screen and (max-width: 1280px) {
  15439. /* .courseIndex > div:first-child(2) {
  15440. width: 15% !important;
  15441. } */
  15442. /* .navText {
  15443. width: 120px !important;
  15444. } */
  15445. .evaCss {
  15446. flex-direction: column !important;
  15447. align-items: center !important;
  15448. }
  15449. .dialog_diy1 >>> .el-dialog {
  15450. width: 100% !important;
  15451. }
  15452. .rightWidthCss {
  15453. width: 100% !important;
  15454. }
  15455. .dialog_diy3 >>> .el-dialog {
  15456. width: 100% !important;
  15457. }
  15458. /* .textTitle >>> .el-form-item__label {
  15459. width: 150px !important;
  15460. } */
  15461. }
  15462. .evaCssMax {
  15463. flex-direction: column !important;
  15464. align-items: center !important;
  15465. }
  15466. .dialog_diy >>> .el-dialog {
  15467. margin-top: 10vh !important;
  15468. }
  15469. .body_student {
  15470. width: 77%;
  15471. height: 100%;
  15472. position: absolute;
  15473. left: 22%;
  15474. top: 0;
  15475. }
  15476. .student_head {
  15477. width: 100%;
  15478. margin: 0 auto;
  15479. padding-bottom: 20px;
  15480. display: flex;
  15481. flex-direction: column;
  15482. flex-wrap: nowrap;
  15483. align-items: flex-start;
  15484. justify-content: flex-start;
  15485. }
  15486. .pb_left {
  15487. width: 20%;
  15488. margin-right: 10px;
  15489. background: rgb(255, 255, 255);
  15490. padding-right: 10px;
  15491. position: fixed;
  15492. height: 100%;
  15493. }
  15494. .wheel > img,
  15495. .project > img,
  15496. .star > img,
  15497. .evaluate > img,
  15498. .up_photo > img,
  15499. .chapter_add > img,
  15500. .deleteWord > img,
  15501. .question > img,
  15502. .homework > img {
  15503. width: 100%;
  15504. height: 100%;
  15505. }
  15506. .upCover > img {
  15507. width: 131px;
  15508. height: 69px;
  15509. object-fit: cover;
  15510. }
  15511. .upCover {
  15512. width: calc(100% / 3.5);
  15513. position: relative;
  15514. margin: 0 15px 10px 0;
  15515. display: flex;
  15516. flex-direction: column;
  15517. flex-wrap: nowrap;
  15518. justify-content: center;
  15519. align-content: center;
  15520. align-items: center;
  15521. height: fit-content;
  15522. }
  15523. .upCover2 {
  15524. width: 100%;
  15525. position: relative;
  15526. margin: 0 15px 10px 0;
  15527. display: flex;
  15528. flex-direction: column;
  15529. flex-wrap: nowrap;
  15530. justify-content: center;
  15531. align-content: center;
  15532. align-items: center;
  15533. }
  15534. .upCover2 > img {
  15535. width: 100%;
  15536. height: 90px;
  15537. object-fit: contain;
  15538. }
  15539. .chapter_add {
  15540. width: 120px;
  15541. position: relative;
  15542. text-align: center;
  15543. }
  15544. .isAddThings {
  15545. margin-top: 20px;
  15546. position: relative;
  15547. text-align: center;
  15548. background: #f7f8fa;
  15549. height: 90px;
  15550. width: 90px;
  15551. display: flex;
  15552. flex-direction: column;
  15553. justify-content: center;
  15554. }
  15555. .deleteWord {
  15556. width: 22px;
  15557. height: 22px;
  15558. position: absolute;
  15559. right: -5px;
  15560. top: -5px;
  15561. cursor: pointer;
  15562. }
  15563. .box_course {
  15564. /* width: 60%; */
  15565. width: 81%;
  15566. }
  15567. .wheel {
  15568. width: 100%;
  15569. /* height: 100%; */
  15570. height: 650px;
  15571. }
  15572. .right_box {
  15573. display: flex;
  15574. flex-direction: column;
  15575. margin-left: 30px;
  15576. justify-content: space-around;
  15577. }
  15578. .right_box_title {
  15579. font-size: 23px;
  15580. }
  15581. .people {
  15582. display: flex;
  15583. }
  15584. .student_body {
  15585. width: 100%;
  15586. margin: 0 auto;
  15587. margin-top: 10px;
  15588. padding: 0 0 20px;
  15589. }
  15590. .study_top {
  15591. margin-top: 70px;
  15592. width: 100%;
  15593. /* overflow: auto; */
  15594. height: auto;
  15595. }
  15596. .study_top .checkbox {
  15597. display: flex;
  15598. align-items: center;
  15599. padding: 15px 0 15px 30px;
  15600. flex: 0 0 auto;
  15601. font-weight: bold;
  15602. border-bottom: 1px solid #eee;
  15603. }
  15604. .study_top .check {
  15605. padding-bottom: 5px;
  15606. text-align: center;
  15607. cursor: pointer;
  15608. height: 30px;
  15609. box-sizing: border-box;
  15610. display: flex;
  15611. }
  15612. .study_top .checked {
  15613. border-bottom: 4px solid #3fc6a0;
  15614. padding-bottom: 5px;
  15615. color: #3fc6a0;
  15616. display: flex;
  15617. height: 35px;
  15618. }
  15619. .study_top .checked > div,
  15620. .study_top .check > div {
  15621. margin-right: 5px;
  15622. }
  15623. .videoTop {
  15624. display: flex;
  15625. flex-direction: row;
  15626. justify-content: space-between;
  15627. background: #fff;
  15628. align-items: center;
  15629. width: 95%;
  15630. padding: 20px;
  15631. }
  15632. .upbtn {
  15633. margin: 25px;
  15634. background: #70afdb;
  15635. color: #fff;
  15636. width: 120px;
  15637. text-align: center;
  15638. height: 30px;
  15639. line-height: 30px;
  15640. font-size: 13px;
  15641. border-radius: 5px;
  15642. cursor: pointer;
  15643. }
  15644. .filebox {
  15645. display: flex;
  15646. flex-wrap: wrap;
  15647. flex-direction: column;
  15648. padding: 15px 0 5px;
  15649. }
  15650. .filebox .tooldetail {
  15651. width: 100%;
  15652. margin: 0px 12px;
  15653. background: rgb(247, 247, 247);
  15654. padding: 20px;
  15655. line-height: 30px;
  15656. word-break: break-word;
  15657. }
  15658. .file {
  15659. display: flex;
  15660. flex-direction: column;
  15661. align-items: center;
  15662. justify-content: center;
  15663. cursor: pointer;
  15664. width: 200px;
  15665. }
  15666. .file div {
  15667. margin-top: 10px;
  15668. width: 150px;
  15669. text-align: center;
  15670. overflow: hidden;
  15671. white-space: nowrap;
  15672. text-overflow: ellipsis;
  15673. }
  15674. .media {
  15675. display: flex;
  15676. flex-direction: column;
  15677. align-items: center;
  15678. justify-content: center;
  15679. margin: 0 20px 20px 0;
  15680. cursor: pointer;
  15681. margin: 12px 0 5px 15px;
  15682. overflow: hidden;
  15683. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  15684. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  15685. box-sizing: border-box;
  15686. }
  15687. .media img {
  15688. height: 90px;
  15689. width: 160px;
  15690. object-fit: cover;
  15691. }
  15692. .media .title {
  15693. padding: 5px;
  15694. text-align: left;
  15695. width: 100%;
  15696. box-sizing: border-box;
  15697. }
  15698. .media .btn {
  15699. width: 100%;
  15700. height: 35px;
  15701. line-height: 35px;
  15702. color: #fff;
  15703. background: #606060;
  15704. text-align: center;
  15705. overflow: hidden;
  15706. white-space: nowrap;
  15707. text-overflow: ellipsis;
  15708. }
  15709. .detail_content_top {
  15710. width: 100%;
  15711. padding: 25px 0 25px 0;
  15712. }
  15713. .detail_title {
  15714. text-align: center;
  15715. font-size: 24px;
  15716. }
  15717. .detail_time {
  15718. font-size: 13px;
  15719. padding: 15px 0 0 40px;
  15720. }
  15721. .detail_content {
  15722. line-height: 2pc;
  15723. width: 90%;
  15724. margin: 0 auto;
  15725. padding-top: 30px;
  15726. text-indent: 30px;
  15727. overflow: auto;
  15728. height: 200px;
  15729. }
  15730. .score_box >>> .el-rate {
  15731. margin-left: 10px;
  15732. }
  15733. .dialog_change >>> .el-dialog {
  15734. border-radius: 5px;
  15735. }
  15736. .dialog_change >>> .el-dialog__header {
  15737. background: #f2f2f2;
  15738. text-align: center;
  15739. }
  15740. .dialog_change >>> .el-dialog__title {
  15741. line-height: 5px;
  15742. }
  15743. .dialog_change >>> .el-dialog__body {
  15744. background: #fff;
  15745. padding: 10px 20px;
  15746. }
  15747. .score_box {
  15748. display: flex;
  15749. align-items: center;
  15750. margin-bottom: 18px;
  15751. margin-top: 20px;
  15752. }
  15753. .up_photo {
  15754. width: 120px;
  15755. cursor: pointer;
  15756. margin-top: 10px;
  15757. }
  15758. .up_photo2 {
  15759. width: 180px;
  15760. box-sizing: border-box;
  15761. min-width: 180px;
  15762. height: 180px;
  15763. max-height: 180px;
  15764. min-height: 180px;
  15765. cursor: pointer;
  15766. display: flex;
  15767. flex-direction: column;
  15768. align-items: center;
  15769. justify-content: center;
  15770. background: rgb(242, 246, 255);
  15771. /* padding: 25px; */
  15772. margin-bottom: 10px;
  15773. }
  15774. .up_photo2 img {
  15775. width: 50%;
  15776. height: auto;
  15777. }
  15778. .up_photo2 span {
  15779. color: #898989;
  15780. }
  15781. .plworkBox {
  15782. display: flex;
  15783. align-items: center;
  15784. margin-top: 10px;
  15785. flex-wrap: wrap;
  15786. }
  15787. .upload_send {
  15788. margin: 30px auto 30px;
  15789. width: 60%;
  15790. background: #169bd6;
  15791. text-align: center;
  15792. height: 35px;
  15793. line-height: 35px;
  15794. color: #fff;
  15795. border-radius: 5px;
  15796. cursor: pointer;
  15797. }
  15798. .marginT {
  15799. margin-top: 20px;
  15800. }
  15801. .cd_content_steps {
  15802. display: flex;
  15803. width: 90%;
  15804. justify-content: space-around;
  15805. border-top: 1px solid #eeeeee;
  15806. }
  15807. .cd_steps_box {
  15808. display: flex;
  15809. justify-content: center;
  15810. align-items: center;
  15811. flex-direction: column;
  15812. cursor: pointer;
  15813. }
  15814. .first {
  15815. display: flex;
  15816. align-items: center;
  15817. margin: 15px 0 20px 0;
  15818. font-size: 20px;
  15819. }
  15820. .first > div:nth-child(2) {
  15821. font-size: 16px !important;
  15822. padding-left: 10px;
  15823. line-height: 26px;
  15824. box-sizing: border-box;
  15825. }
  15826. .blue_box_one {
  15827. text-align: center;
  15828. color: #fff;
  15829. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  15830. border-radius: 7px;
  15831. margin: 10px;
  15832. cursor: pointer;
  15833. width: 95%;
  15834. height: 45px;
  15835. display: flex;
  15836. flex-direction: row;
  15837. justify-content: flex-start;
  15838. align-items: center;
  15839. }
  15840. .blue_box_one > div:nth-child(1) {
  15841. line-height: 30px;
  15842. margin: 0 5px 0 10px;
  15843. width: 30%;
  15844. min-width: 70px;
  15845. border-radius: 4px;
  15846. }
  15847. .blue_box_one > div:nth-child(2) {
  15848. white-space: nowrap;
  15849. text-overflow: ellipsis;
  15850. overflow: hidden;
  15851. word-break: break-all;
  15852. width: 70%;
  15853. text-align: left;
  15854. margin-right: 10px;
  15855. max-width: calc(100% - 85px);
  15856. }
  15857. .blue_box_one > div:nth-child(2):hover {
  15858. overflow: hidden;
  15859. text-overflow: ellipsis;
  15860. white-space: nowrap;
  15861. cursor: pointer;
  15862. }
  15863. .upFile {
  15864. margin: 0 auto;
  15865. width: 120px;
  15866. background: #70afdb;
  15867. color: #fff;
  15868. height: 30px;
  15869. text-align: center;
  15870. line-height: 30px;
  15871. border-radius: 5px;
  15872. font-size: 14px;
  15873. cursor: pointer;
  15874. }
  15875. .courseTitle {
  15876. background: #205cc6;
  15877. width: 85%;
  15878. margin: 10px auto;
  15879. color: #fff;
  15880. border-radius: 5px;
  15881. padding: 10px 10px;
  15882. display: flex;
  15883. flex-direction: row;
  15884. align-items: center;
  15885. justify-content: space-between;
  15886. text-align: center;
  15887. }
  15888. .courseTitle .ctitle {
  15889. font-weight: bold;
  15890. font-size: 20px;
  15891. white-space: nowrap;
  15892. overflow: hidden;
  15893. text-overflow: ellipsis;
  15894. }
  15895. .courseTitle .inviteBox {
  15896. font-size: 14px;
  15897. margin-top: 5px;
  15898. color: #a6cbff;
  15899. }
  15900. .courseTitle >>> .el-tooltip {
  15901. width: 100%;
  15902. white-space: nowrap;
  15903. overflow: hidden;
  15904. text-overflow: ellipsis;
  15905. word-break: break-word;
  15906. }
  15907. .ml {
  15908. margin-left: 20px;
  15909. color: #5b7dba;
  15910. border-left: 3px solid #5b7dba;
  15911. padding-left: 5px;
  15912. font-weight: bold;
  15913. }
  15914. .return {
  15915. width: 2rem;
  15916. height: 2rem;
  15917. cursor: pointer;
  15918. }
  15919. .return > img {
  15920. width: 100%;
  15921. height: 100%;
  15922. }
  15923. .returnBtn {
  15924. background: #499eef;
  15925. width: 65px;
  15926. height: 30px;
  15927. color: #fff;
  15928. text-align: center;
  15929. line-height: 32px;
  15930. margin-right: 20px;
  15931. cursor: pointer;
  15932. border-radius: 5px;
  15933. font-size: 14px;
  15934. }
  15935. .tool {
  15936. display: flex;
  15937. flex-direction: column;
  15938. flex-wrap: nowrap;
  15939. width: 13%;
  15940. margin: 0 30px;
  15941. align-items: center;
  15942. }
  15943. .whiteBIcon {
  15944. width: 150px;
  15945. cursor: pointer;
  15946. }
  15947. .whiteBIcon > img {
  15948. width: 100%;
  15949. height: 100%;
  15950. }
  15951. .mask {
  15952. background-color: rgba(0, 0, 0, 0);
  15953. position: fixed;
  15954. top: 0;
  15955. left: 0;
  15956. width: 100%;
  15957. height: 100%;
  15958. z-index: 20000;
  15959. display: flex;
  15960. align-items: center;
  15961. justify-content: center;
  15962. }
  15963. .progressBox {
  15964. width: 500px;
  15965. height: 180px;
  15966. background: #fff;
  15967. border-radius: 10px;
  15968. box-shadow: 0 0 6px 1px #bfbfbf;
  15969. display: flex;
  15970. align-items: center;
  15971. justify-content: center;
  15972. flex-direction: column;
  15973. position: relative;
  15974. color: #6c6c6c;
  15975. }
  15976. .progressBox >>> .el-progress-bar__outer {
  15977. background-color: #d1dfff !important;
  15978. }
  15979. .progressBox .lbox {
  15980. height: 50px;
  15981. font-size: 19px;
  15982. display: flex;
  15983. align-items: center;
  15984. color: #747474;
  15985. }
  15986. .progressBox .lbox img {
  15987. width: 40px;
  15988. margin-right: 20px;
  15989. }
  15990. .closeCss {
  15991. position: absolute;
  15992. top: 8px;
  15993. right: 8px;
  15994. cursor: pointer;
  15995. width: 20px;
  15996. height: 20px;
  15997. }
  15998. .closeCss > img {
  15999. width: 100%;
  16000. height: 100%;
  16001. }
  16002. .uploadVedio {
  16003. display: flex;
  16004. flex-direction: column;
  16005. flex-wrap: nowrap;
  16006. justify-content: center;
  16007. align-items: center;
  16008. margin: 0 15px 10px 0;
  16009. }
  16010. .uploadVedio > img {
  16011. width: 30px;
  16012. height: 30px;
  16013. }
  16014. .uploadVedio > span {
  16015. white-space: nowrap;
  16016. overflow: hidden;
  16017. text-overflow: ellipsis;
  16018. width: 75px;
  16019. margin-top: 7px;
  16020. }
  16021. .picName {
  16022. white-space: nowrap;
  16023. overflow: hidden;
  16024. text-overflow: ellipsis;
  16025. width: 75px;
  16026. margin-top: 7px;
  16027. }
  16028. .new_top {
  16029. display: flex;
  16030. background: #fff;
  16031. flex-direction: row;
  16032. justify-content: flex-start;
  16033. align-items: center;
  16034. height: 60px;
  16035. position: relative;
  16036. }
  16037. .before {
  16038. position: absolute;
  16039. background: #c3dad4;
  16040. width: 6px;
  16041. height: 100%;
  16042. }
  16043. .courseIndex {
  16044. display: flex;
  16045. flex-direction: row;
  16046. align-items: center;
  16047. width: calc(100% - 520px);
  16048. }
  16049. .courseIndex > div:nth-child(1) {
  16050. margin: 0 20px;
  16051. padding-left: 5px;
  16052. font-size: 24px;
  16053. min-width: 100px;
  16054. font-weight: bold;
  16055. border-left: 4px solid #3363b9;
  16056. height: 35px;
  16057. text-align: center;
  16058. line-height: 35px;
  16059. }
  16060. .courseIndex > div:nth-child(2) {
  16061. font-size: 23px;
  16062. /* width: 300px; */
  16063. max-width: calc(100% - 180px);
  16064. white-space: nowrap;
  16065. overflow: hidden;
  16066. text-overflow: ellipsis;
  16067. }
  16068. .courseIndex > div:nth-child(3) {
  16069. border-bottom: 1px solid #d7d7d7;
  16070. padding-bottom: 5px;
  16071. background: #49a0f0;
  16072. width: 55px;
  16073. min-width: 55px;
  16074. border-radius: 5px;
  16075. color: #fff;
  16076. text-align: center;
  16077. height: 20px;
  16078. line-height: 26px;
  16079. font-size: 14px;
  16080. margin: 0 0 0 10px;
  16081. }
  16082. .course_text {
  16083. padding: 20px 0 0 15px;
  16084. text-indent: 30px;
  16085. width: 80%;
  16086. min-height: 20px;
  16087. }
  16088. .vedioList {
  16089. background: #f2f2f2;
  16090. border: 1px solid #ececec;
  16091. /* width: 38.8%; */
  16092. width: 100%;
  16093. height: 445px;
  16094. border-radius: 10px;
  16095. overflow: hidden;
  16096. }
  16097. .vedioNav {
  16098. margin: 10px 0 0 15px;
  16099. border-bottom: 1px solid #d7d7d7;
  16100. padding-bottom: 5px;
  16101. background: #96d1ff;
  16102. width: 55px;
  16103. min-width: 55px;
  16104. border-radius: 5px;
  16105. color: #fff;
  16106. text-align: center;
  16107. height: 20px;
  16108. line-height: 26px;
  16109. font-size: 14px;
  16110. }
  16111. .queTop {
  16112. display: flex;
  16113. padding: 20px 0 20px 30px;
  16114. width: 100%;
  16115. flex-direction: row;
  16116. justify-content: flex-start;
  16117. align-items: center;
  16118. border-bottom: 1px solid #eeeeee;
  16119. box-sizing: border-box;
  16120. }
  16121. .question {
  16122. width: 40px;
  16123. margin-right: 10px;
  16124. margin-top: 7px;
  16125. }
  16126. .queTitle {
  16127. margin-left: 5px;
  16128. font-size: 25px;
  16129. display: flex;
  16130. align-items: center;
  16131. }
  16132. .addEditor {
  16133. width: 100px;
  16134. height: 30px;
  16135. background: #42cda6;
  16136. color: #fff;
  16137. border-radius: 5px;
  16138. text-align: center;
  16139. line-height: 30px;
  16140. box-shadow: 1px 3px 6px 1px #bfbfbf;
  16141. cursor: pointer;
  16142. }
  16143. .vedioName {
  16144. /* text-overflow: ellipsis;
  16145. top: 8px;
  16146. font-size: 14px;
  16147. overflow: hidden;
  16148. width: 100%;
  16149. word-break: break-all;
  16150. white-space: nowrap; */
  16151. cursor: pointer;
  16152. margin: 0px 0px 10px 5px;
  16153. white-space: nowrap;
  16154. overflow: hidden;
  16155. text-overflow: ellipsis;
  16156. width: 100%;
  16157. }
  16158. .vedioTime {
  16159. width: 35px;
  16160. position: absolute;
  16161. color: #fff;
  16162. bottom: 0px;
  16163. right: 0px;
  16164. text-align: center;
  16165. background: #46411f;
  16166. height: 20px;
  16167. font-size: 14px;
  16168. line-height: 20px;
  16169. }
  16170. .homework {
  16171. width: 200px;
  16172. display: flex;
  16173. flex-direction: column;
  16174. flex-wrap: nowrap;
  16175. align-items: center;
  16176. cursor: pointer;
  16177. }
  16178. .homebox {
  16179. display: flex;
  16180. flex-wrap: wrap;
  16181. flex-direction: row;
  16182. justify-content: flex-start;
  16183. align-items: center;
  16184. padding: 15px 0;
  16185. }
  16186. .isChooseActive {
  16187. color: #3e88f4;
  16188. border-bottom: 2px solid #2f80f3;
  16189. }
  16190. .chooseWho {
  16191. display: flex;
  16192. width: 100%;
  16193. flex-direction: row;
  16194. flex-wrap: nowrap;
  16195. justify-content: flex-start;
  16196. padding-bottom: 10px;
  16197. }
  16198. .chooseWho > div {
  16199. cursor: pointer;
  16200. padding-bottom: 10px;
  16201. margin: 0 30px;
  16202. }
  16203. .addPoint > div > img {
  16204. cursor: pointer;
  16205. margin: 0 10px;
  16206. width: 85px;
  16207. border-radius: 15px;
  16208. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  16209. }
  16210. .addPoint > div {
  16211. display: flex;
  16212. flex-direction: column;
  16213. flex-wrap: nowrap;
  16214. align-items: center;
  16215. }
  16216. .isBorder > div {
  16217. margin: 0 0 10px 0;
  16218. align-items: flex-start !important;
  16219. }
  16220. .noiframeBox {
  16221. display: flex;
  16222. flex-wrap: wrap;
  16223. }
  16224. .iframeBox iframe {
  16225. width: 100%;
  16226. height: 800px;
  16227. border: none;
  16228. margin-bottom: 20px;
  16229. border: 1px solid #ccc;
  16230. }
  16231. .upload_toolBtn {
  16232. background: #6b92c9;
  16233. color: #fff;
  16234. width: 110px;
  16235. text-align: center;
  16236. height: 35px;
  16237. line-height: 35px;
  16238. font-size: 14px;
  16239. border-radius: 5px;
  16240. cursor: pointer;
  16241. position: absolute;
  16242. right: 10px;
  16243. bottom: 0;
  16244. }
  16245. .binfo_input,
  16246. .pj {
  16247. font: inherit;
  16248. color: currentColor;
  16249. width: 100%;
  16250. margin: 0;
  16251. padding: 15px 14px;
  16252. display: block;
  16253. min-width: 0;
  16254. outline: none;
  16255. box-sizing: content-box;
  16256. background: none;
  16257. -webkit-tap-highlight-color: transparent;
  16258. border: 1px solid rgba(0, 0, 0, 0.23);
  16259. border-radius: 4px;
  16260. box-sizing: border-box;
  16261. resize: none;
  16262. }
  16263. .binfo_input:focus-visible {
  16264. border: 1px solid rgba(61, 103, 188);
  16265. }
  16266. .dialog_diy >>> .el-dialog__header,
  16267. .dialog_diy1 >>> .el-dialog__header {
  16268. background: #454545 !important;
  16269. padding: 15px 20px;
  16270. }
  16271. .dialog_diy >>> .el-dialog__title,
  16272. .dialog_diy1 >>> .el-dialog__title {
  16273. color: #fff;
  16274. }
  16275. .dialog_diy >>> .el-dialog__headerbtn,
  16276. .dialog_diy1 >>> .el-dialog__headerbtn {
  16277. top: 19px;
  16278. }
  16279. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  16280. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  16281. color: #fff;
  16282. }
  16283. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  16284. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  16285. color: #fff;
  16286. }
  16287. .dialog_diy1 >>> .el-dialog__body {
  16288. padding: 0;
  16289. }
  16290. .dialog_diy >>> .el-dialog__body,
  16291. .dialog_diy >>> .el-dialog__footer,
  16292. .dialog_diy1 >>> .el-dialog__footer {
  16293. background: #fafafa;
  16294. }
  16295. .a_addBox {
  16296. margin: 10px 0;
  16297. background: #fff;
  16298. padding: 15px;
  16299. max-height: 400px;
  16300. overflow: auto;
  16301. }
  16302. .a_add_box {
  16303. border-bottom: 2px solid #eee;
  16304. padding-bottom: 10px;
  16305. }
  16306. .a_add_head {
  16307. display: flex;
  16308. align-items: flex-start;
  16309. /* justify-content: space-between; */
  16310. flex-direction: column;
  16311. /* flex-direction: row; */
  16312. margin: 10px 0 20px 0;
  16313. font-size: 18px;
  16314. width: 100%;
  16315. }
  16316. .a_add_head .a_add_head_input {
  16317. width: 300px;
  16318. }
  16319. .a_add_head .a_add_head_div {
  16320. display: flex;
  16321. align-items: center;
  16322. justify-content: space-between;
  16323. }
  16324. .a_add_body {
  16325. display: flex;
  16326. align-items: center;
  16327. }
  16328. .a_add_input {
  16329. display: flex;
  16330. align-items: center;
  16331. flex-wrap: wrap;
  16332. }
  16333. .a_add_input >>> el-radio-group {
  16334. margin: 10px 0;
  16335. }
  16336. .a_add_input >>> .el-radio,
  16337. .a_add_input >>> .el-checkbox {
  16338. margin-bottom: 10px;
  16339. display: flex;
  16340. flex-direction: row;
  16341. flex-wrap: nowrap;
  16342. align-items: center;
  16343. }
  16344. .redioStyle >>> .el-radio__label {
  16345. font-size: 18px;
  16346. }
  16347. .redioStyle >>> .el-checkbox__label {
  16348. font-size: 18px;
  16349. }
  16350. .toolHeng2 {
  16351. width: 100%;
  16352. }
  16353. .toolHeng {
  16354. display: flex;
  16355. flex-direction: row;
  16356. flex-wrap: wrap;
  16357. justify-content: flex-start;
  16358. align-items: center;
  16359. width: 100%;
  16360. }
  16361. .toolHeng > div {
  16362. padding-left: 20px;
  16363. }
  16364. .isWidth {
  16365. width: 20%;
  16366. }
  16367. .textTitle {
  16368. display: flex;
  16369. flex-direction: row;
  16370. flex-wrap: nowrap;
  16371. align-items: center;
  16372. width: 95%;
  16373. }
  16374. .textTitle >>> .el-form-item__label {
  16375. font-size: 22px;
  16376. color: #918f8f;
  16377. width: 100px;
  16378. }
  16379. .textTitle >>> .el-form-item__content {
  16380. width: calc(100% - 100px);
  16381. }
  16382. .textCss >>> .el-dialog {
  16383. width: 800px !important;
  16384. height: 400px;
  16385. background: #fafafa;
  16386. }
  16387. .textCss >>> .el-dialog__body {
  16388. margin: 55px 8% 0 8%;
  16389. padding: 0 !important;
  16390. }
  16391. .textCss >>> .el-dialog__footer {
  16392. padding-top: 38px;
  16393. }
  16394. .toolsCss >>> .el-dialog__body {
  16395. padding: 20px;
  16396. }
  16397. .lineCss >>> .el-dialog__body {
  16398. display: flex;
  16399. flex-direction: row;
  16400. align-items: center;
  16401. justify-content: center;
  16402. }
  16403. .newNav {
  16404. display: flex;
  16405. flex-direction: row;
  16406. align-items: baseline;
  16407. justify-content: flex-start;
  16408. }
  16409. .navText {
  16410. cursor: pointer;
  16411. margin: 0px 0px 10px 5px;
  16412. white-space: nowrap;
  16413. overflow: hidden;
  16414. text-overflow: ellipsis;
  16415. /* width: 300px; */
  16416. width: 100%;
  16417. }
  16418. .noVedio {
  16419. display: flex;
  16420. flex-direction: row;
  16421. justify-content: center;
  16422. align-content: center;
  16423. }
  16424. .noNavText {
  16425. cursor: pointer;
  16426. margin: 0px 0px 10px 5px;
  16427. width: 112px;
  16428. }
  16429. .listNoVedio {
  16430. margin: 0 0 0 30px;
  16431. width: 97%;
  16432. }
  16433. .video-player >>> .video-js {
  16434. height: 100%;
  16435. }
  16436. .hangVedioList {
  16437. width: 90% !important;
  16438. height: 150px !important;
  16439. margin: 20px 0 0 30px;
  16440. }
  16441. .hangVedio {
  16442. width: 100%;
  16443. height: 170px !important;
  16444. align-items: flex-start !important;
  16445. }
  16446. .hangHand {
  16447. height: 150px !important;
  16448. }
  16449. .twoChild {
  16450. width: 95%;
  16451. margin: 10px;
  16452. border-radius: 5px;
  16453. background: #f2f2f2;
  16454. display: flex;
  16455. flex-direction: column;
  16456. flex-wrap: nowrap;
  16457. justify-content: flex-start;
  16458. align-items: flex-start;
  16459. transition: all 0.5s;
  16460. overflow: hidden;
  16461. height: 0;
  16462. background: #e7f3ff;
  16463. }
  16464. .twoChild > div:nth-child(1) {
  16465. margin-top: 5px;
  16466. }
  16467. .navChild {
  16468. width: 100%;
  16469. cursor: pointer;
  16470. margin-bottom: 10px;
  16471. position: relative;
  16472. }
  16473. .navChild img {
  16474. position: absolute;
  16475. right: 11px;
  16476. width: 15px;
  16477. top: 50%;
  16478. transform: translateY(-50%);
  16479. }
  16480. .navActive {
  16481. height: auto;
  16482. }
  16483. .navTask {
  16484. display: flex;
  16485. flex-direction: row;
  16486. flex-wrap: nowrap;
  16487. align-items: center;
  16488. align-content: flex-start;
  16489. height: 40px;
  16490. justify-content: flex-start;
  16491. padding: 0 10px;
  16492. width: 100%;
  16493. box-sizing: border-box;
  16494. }
  16495. .navTaskname {
  16496. white-space: nowrap;
  16497. text-overflow: ellipsis;
  16498. overflow: hidden;
  16499. word-break: break-all;
  16500. padding-left: 5px;
  16501. }
  16502. .openTaskActive {
  16503. color: #4386e6;
  16504. }
  16505. .iframeName {
  16506. margin: 5px 0;
  16507. border-left: 4px solid #41c4a4;
  16508. padding-left: 4px;
  16509. }
  16510. .toolTitle {
  16511. margin: 0px 0px 20px;
  16512. font-size: 20px;
  16513. font-weight: 500;
  16514. border-left: 4px solid #41c4a4;
  16515. padding-left: 4px;
  16516. }
  16517. .cru_selectBox {
  16518. overflow: auto;
  16519. width: 96%;
  16520. margin: 0 auto;
  16521. height: calc(100% - 40px - 21px - 20px);
  16522. }
  16523. .cru_selectBox::-webkit-scrollbar,
  16524. .study_top::-webkit-scrollbar,
  16525. .textContent::-webkit-scrollbar {
  16526. /*滚动条整体样式*/
  16527. width: 6px;
  16528. /*高宽分别对应横竖滚动条的尺寸*/
  16529. height: 6px;
  16530. }
  16531. /*定义滚动条轨道 内阴影+圆角*/
  16532. .cru_selectBox::-webkit-scrollbar-track,
  16533. .study_top::-webkit-scrollbar-track,
  16534. .textContent::-webkit-scrollbar {
  16535. border-radius: 10px;
  16536. background-color: #b8bdc9;
  16537. }
  16538. /*定义滑块 内阴影+圆角*/
  16539. .cru_selectBox::-webkit-scrollbar-thumb,
  16540. .study_top::-webkit-scrollbar-thumb,
  16541. .textContent::-webkit-scrollbar-thumb {
  16542. border-radius: 10px;
  16543. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  16544. background-color: #2c5ab3;
  16545. }
  16546. .vedioBox {
  16547. border-radius: 20px;
  16548. background: #fff;
  16549. margin-bottom: 10px;
  16550. }
  16551. .taskBox {
  16552. margin: 15px auto 20px;
  16553. background: #f7f7f7;
  16554. width: 97%;
  16555. border-radius: 10px;
  16556. }
  16557. .vedioTaskBox {
  16558. width: 100%;
  16559. display: flex;
  16560. flex-direction: row;
  16561. flex-wrap: nowrap;
  16562. align-items: flex-start;
  16563. position: relative;
  16564. }
  16565. .toolBox {
  16566. padding: 20px 0 0 0;
  16567. display: flex;
  16568. }
  16569. .btnAll {
  16570. position: absolute;
  16571. right: 0;
  16572. display: flex;
  16573. flex-direction: row;
  16574. flex-wrap: nowrap;
  16575. align-items: center;
  16576. }
  16577. .vedioTimeBox {
  16578. display: flex;
  16579. flex-direction: row;
  16580. align-items: center;
  16581. flex-wrap: nowrap;
  16582. position: relative;
  16583. }
  16584. .navBox {
  16585. background: #fff;
  16586. height: calc(100% - 40px);
  16587. padding: 5px 1px 0;
  16588. overflow-y: auto;
  16589. overflow-x: hidden;
  16590. }
  16591. .worksBox {
  16592. padding: 5px 0 0 10px;
  16593. border-bottom: 1px solid #eeeeee;
  16594. }
  16595. .worksBTitle {
  16596. font-size: 20px;
  16597. padding-bottom: 15px;
  16598. border-bottom: 1px solid #eeeeee;
  16599. display: flex;
  16600. align-items: center;
  16601. }
  16602. .greenBox {
  16603. width: 5px;
  16604. height: 30px;
  16605. background: #63b6fa;
  16606. margin-right: 5px;
  16607. }
  16608. .worksDetailBox {
  16609. display: flex;
  16610. width: 100%;
  16611. flex-direction: row;
  16612. flex-wrap: wrap;
  16613. align-items: flex-end;
  16614. justify-content: flex-start;
  16615. padding: 15px 0;
  16616. }
  16617. .works {
  16618. display: flex;
  16619. flex-direction: column;
  16620. flex-wrap: nowrap;
  16621. align-items: flex-start;
  16622. justify-content: flex-start;
  16623. align-content: center;
  16624. max-width: 240px;
  16625. width: calc(100% / 3 - 10px);
  16626. height: auto;
  16627. margin-right: 10px;
  16628. margin-bottom: 10px;
  16629. overflow: hidden;
  16630. height: 140px;
  16631. box-shadow: 0 0 6px 1px #dfdada;
  16632. border-radius: 15px;
  16633. }
  16634. .workImg {
  16635. width: 100%;
  16636. /* height: calc(100% - 40px); */
  16637. height: 105px;
  16638. position: relative;
  16639. }
  16640. .workImg > img {
  16641. width: 100%;
  16642. height: 100%;
  16643. object-fit: contain;
  16644. cursor: pointer;
  16645. }
  16646. .worksName {
  16647. height: 40px;
  16648. line-height: 40px;
  16649. display: flex;
  16650. width: 100%;
  16651. flex-direction: row;
  16652. flex-wrap: nowrap;
  16653. justify-content: space-between;
  16654. align-items: center;
  16655. margin: 0 0 0 10px;
  16656. }
  16657. .worksName > div:nth-child(1) {
  16658. width: 110px;
  16659. white-space: nowrap;
  16660. overflow: hidden;
  16661. text-overflow: ellipsis;
  16662. }
  16663. .worksName > div:nth-child(2) {
  16664. color: #b7b4b5;
  16665. }
  16666. .noWorksS {
  16667. padding: 15px 0;
  16668. display: flex;
  16669. flex-direction: row;
  16670. flex-wrap: wrap;
  16671. align-items: center;
  16672. justify-content: flex-start;
  16673. }
  16674. .noWorksName,
  16675. .isWorksName {
  16676. background: #7cbcf1;
  16677. color: #fff;
  16678. width: 90px;
  16679. height: 25px;
  16680. text-align: center;
  16681. line-height: 25px;
  16682. border-radius: 5px;
  16683. margin: 10px 15px 10px 0;
  16684. white-space: nowrap;
  16685. overflow: hidden;
  16686. padding: 5px;
  16687. text-overflow: ellipsis;
  16688. cursor: pointer;
  16689. }
  16690. .isWorksName {
  16691. background: #46a1eb !important;
  16692. width: 100px;
  16693. height: 40px;
  16694. line-height: 40px;
  16695. position: relative;
  16696. }
  16697. .noWorksName:hover {
  16698. background: #46a1eb !important;
  16699. }
  16700. .title {
  16701. background: #1e5cc9;
  16702. /* width: 98%; */
  16703. height: 45px;
  16704. color: #fff;
  16705. line-height: 45px;
  16706. padding-left: 20px;
  16707. box-sizing: border-box;
  16708. }
  16709. .textBox {
  16710. font-size: 20px;
  16711. width: 90%;
  16712. display: flex;
  16713. flex-direction: column;
  16714. align-items: center;
  16715. margin: 20px auto 0;
  16716. max-height: 500px;
  16717. overflow: auto;
  16718. }
  16719. .textContent {
  16720. font-size: 18px;
  16721. width: 95%;
  16722. max-width: 95%;
  16723. }
  16724. .answerBg {
  16725. background: url("../assets/icon/answerBgNew.png") no-repeat;
  16726. background-size: 100% 100%;
  16727. width: 100%;
  16728. height: 100%;
  16729. color: #fff;
  16730. text-align: center;
  16731. display: flex;
  16732. flex-direction: column;
  16733. flex-wrap: nowrap;
  16734. align-items: center;
  16735. position: relative;
  16736. justify-content: center;
  16737. }
  16738. .answerBg > div:nth-child(1) {
  16739. /* font-size: 22px;
  16740. padding: 25px 0 10px; */
  16741. }
  16742. .answerContent {
  16743. width: 215px;
  16744. max-height: 60px;
  16745. word-break: break-all;
  16746. text-align: center;
  16747. /* white-space: nowrap; */
  16748. overflow: hidden;
  16749. text-overflow: ellipsis;
  16750. /* padding: 23px 0 0; */
  16751. -webkit-line-clamp: 3;
  16752. -webkit-box-orient: vertical;
  16753. display: -webkit-box;
  16754. font-size: 15px;
  16755. }
  16756. .elist_input_box {
  16757. display: flex;
  16758. align-items: flex-start;
  16759. flex-wrap: nowrap;
  16760. padding: 10px 0 15px 30px;
  16761. flex-direction: column;
  16762. }
  16763. .elist_input {
  16764. /* width: 40%; */
  16765. width: 100%;
  16766. }
  16767. .elist_input .elist_input_box input {
  16768. font: inherit;
  16769. color: currentColor;
  16770. width: 200px;
  16771. padding: 8px 14px;
  16772. display: block;
  16773. min-width: 0;
  16774. outline: none;
  16775. border: 1px solid rgba(0, 0, 0, 0.23);
  16776. border-radius: 4px;
  16777. box-sizing: border-box;
  16778. background: #fff;
  16779. margin: 0 20px 0 0;
  16780. }
  16781. .elist_input .elist_input_box span {
  16782. height: 36px;
  16783. line-height: 36px;
  16784. color: rgb(82, 82, 82);
  16785. }
  16786. .elist_input .elist_input_box .remove {
  16787. height: 20px;
  16788. width: 20px;
  16789. background-size: 100% 100%;
  16790. background-position: unset;
  16791. margin-left: 5px;
  16792. }
  16793. .elist_input_box >>> .el-rate {
  16794. display: flex;
  16795. height: 36px;
  16796. align-items: center;
  16797. }
  16798. .elist_input_box .elist_inptu_text {
  16799. min-height: 50px;
  16800. /* width: 500px;
  16801. max-height: 150px; */
  16802. width: 100%;
  16803. line-height: 50px;
  16804. color: rgb(82, 82, 82);
  16805. overflow: auto;
  16806. text-indent: 5px;
  16807. background: #f7f6f9;
  16808. border-radius: 10px;
  16809. }
  16810. .elist_input_box .elist_inptu_text input {
  16811. width: 500px;
  16812. }
  16813. .elist_input_box >>> .el-rate__icon {
  16814. font-size: 24px;
  16815. }
  16816. .isClick {
  16817. background: #4d9def;
  16818. }
  16819. .bzBox {
  16820. display: flex;
  16821. flex-direction: row;
  16822. align-items: center;
  16823. }
  16824. .bzBox > div:nth-child(1) {
  16825. width: 4px;
  16826. height: 40px;
  16827. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  16828. }
  16829. .bzBox > div:nth-child(2) {
  16830. font-size: 23px;
  16831. font-weight: bold;
  16832. padding: 0px 0px 0 10px;
  16833. }
  16834. .navTitile {
  16835. padding: 0 0px 0 15px;
  16836. color: #fff;
  16837. height: 40px;
  16838. line-height: 40px;
  16839. }
  16840. .isTypeOne {
  16841. width: 240px;
  16842. height: 170px;
  16843. /* border: 1px solid #f8f8f8; */
  16844. border-radius: 10px;
  16845. box-shadow: 0 0 6px 1px #dfdada;
  16846. }
  16847. .e_add_top {
  16848. display: flex;
  16849. justify-content: space-between;
  16850. padding: 20px 20px 0 20px;
  16851. border-radius: 3px;
  16852. background: #fff;
  16853. }
  16854. .e_add_title2 {
  16855. display: flex;
  16856. align-items: center;
  16857. }
  16858. .e_add_title2 span {
  16859. width: 40px;
  16860. }
  16861. .e_add_title {
  16862. display: flex;
  16863. align-items: center;
  16864. color: #b8b8b8;
  16865. font-size: 18px;
  16866. position: relative;
  16867. height: 40px;
  16868. }
  16869. .e_add_title span {
  16870. margin-right: 10px;
  16871. }
  16872. .e_add_title .el_input {
  16873. width: 300px;
  16874. }
  16875. .e_add_title >>> .el-input__inner {
  16876. width: 400px;
  16877. }
  16878. .e_add_btn {
  16879. }
  16880. .e_add_content {
  16881. display: flex;
  16882. width: 100%;
  16883. max-width: 650px;
  16884. height: 550px;
  16885. }
  16886. .e_add_list {
  16887. background: #fff;
  16888. height: 500px;
  16889. width: 210px;
  16890. position: relative;
  16891. margin: 15px 5px 0 0;
  16892. flex-shrink: 0;
  16893. display: flex;
  16894. flex-direction: column;
  16895. }
  16896. .e_add_list_title {
  16897. font-size: 20px;
  16898. width: 100%;
  16899. box-sizing: border-box;
  16900. padding: 15px 40px;
  16901. text-align: center;
  16902. border-bottom: 1px solid #eaeaea;
  16903. position: relative;
  16904. display: flex;
  16905. align-items: center;
  16906. justify-content: center;
  16907. height: 57px;
  16908. background: #f6f6f6;
  16909. }
  16910. .e_add_list_title span {
  16911. overflow: hidden;
  16912. white-space: nowrap;
  16913. text-overflow: ellipsis;
  16914. }
  16915. .e_add_list_title img {
  16916. position: absolute;
  16917. right: 15px;
  16918. width: 25px;
  16919. cursor: pointer;
  16920. top: 50%;
  16921. transform: translateY(-50%);
  16922. }
  16923. .e_add_list_body {
  16924. height: calc(100% - 187px);
  16925. overflow: auto;
  16926. }
  16927. .e_add_list_child {
  16928. width: 100%;
  16929. display: flex;
  16930. align-items: center;
  16931. justify-content: center;
  16932. position: relative;
  16933. box-sizing: border-box;
  16934. padding: 15px 40px;
  16935. text-align: center;
  16936. }
  16937. .e_add_list_child span {
  16938. overflow: hidden;
  16939. white-space: nowrap;
  16940. text-overflow: ellipsis;
  16941. cursor: pointer;
  16942. }
  16943. .e_add_list_child img {
  16944. position: absolute;
  16945. right: 10px;
  16946. width: 21px;
  16947. cursor: pointer;
  16948. top: 50%;
  16949. transform: translateY(-50%);
  16950. }
  16951. .e_add_list_child + .e_add_list_child {
  16952. border-top: 1px solid #eaeaea;
  16953. }
  16954. .e_add_list_child .active {
  16955. color: #409eff;
  16956. }
  16957. .e_add_list_btn {
  16958. position: absolute;
  16959. bottom: 0;
  16960. height: 50px;
  16961. background: rgb(120, 120, 254);
  16962. width: 100%;
  16963. color: #fff;
  16964. font-size: 16px;
  16965. text-align: center;
  16966. line-height: 50px;
  16967. cursor: pointer;
  16968. }
  16969. .e_add_list_detail {
  16970. position: absolute;
  16971. bottom: 0;
  16972. height: 130px;
  16973. background: rgb(120, 120, 254);
  16974. width: 100%;
  16975. color: #fff;
  16976. font-size: 16px;
  16977. display: flex;
  16978. align-items: center;
  16979. justify-content: center;
  16980. }
  16981. .e_add_list_detail textarea {
  16982. height: 90%;
  16983. width: 95%;
  16984. border: none;
  16985. resize: none;
  16986. outline: none;
  16987. padding: 5px;
  16988. box-sizing: border-box;
  16989. }
  16990. .e_add_list_pbox {
  16991. width: 100%;
  16992. max-width: 650px;
  16993. /* height: 600px; */
  16994. }
  16995. .e_add_list_pbox_title {
  16996. height: 50px;
  16997. background: #fff;
  16998. display: flex;
  16999. align-items: center;
  17000. width: 100%;
  17001. box-sizing: border-box;
  17002. padding: 0 20px;
  17003. }
  17004. .type_title {
  17005. font-size: 18px;
  17006. font-weight: 700;
  17007. }
  17008. .type_content {
  17009. font-size: 16px;
  17010. margin-left: 30px;
  17011. }
  17012. .type_content span + span {
  17013. margin-left: 20px;
  17014. }
  17015. .type_content span {
  17016. cursor: pointer;
  17017. padding-bottom: 5px;
  17018. box-sizing: border-box;
  17019. }
  17020. .type_content .active {
  17021. color: #409eff;
  17022. border-bottom: 2px solid #409eff;
  17023. }
  17024. .e_add_list_pbox_content {
  17025. height: calc(100% - 50px);
  17026. display: flex;
  17027. align-items: center;
  17028. width: 100%;
  17029. background: #fff;
  17030. }
  17031. .evaCss {
  17032. display: flex;
  17033. flex-direction: row;
  17034. flex-wrap: nowrap;
  17035. align-items: flex-start;
  17036. }
  17037. .cru_line {
  17038. position: absolute;
  17039. bottom: 0px;
  17040. transition: all 0.5s;
  17041. left: 0px;
  17042. width: 125px;
  17043. margin-left: -25px;
  17044. }
  17045. .isNoMessage {
  17046. width: 20%;
  17047. margin: 25% auto 0;
  17048. }
  17049. .isNoMessage > img {
  17050. width: 100%;
  17051. height: 100%;
  17052. }
  17053. .fullStyle >>> .el-dialog__body {
  17054. height: 100% !important;
  17055. }
  17056. .fullStyle >>> .el-dialog,
  17057. .fullStyle {
  17058. width: 100% !important;
  17059. max-width: 100% !important;
  17060. height: 100% !important;
  17061. margin: 0 !important;
  17062. }
  17063. .full_diy >>> .el-dialog {
  17064. margin: 0 !important;
  17065. height: 100%;
  17066. padding: 4px;
  17067. }
  17068. .full_diy >>> .el-dialog__body {
  17069. height: calc(100% - 100px);
  17070. }
  17071. .full_diy2 >>> .el-dialog__body {
  17072. height: calc(100% - 50px);
  17073. padding: 0;
  17074. }
  17075. .switchCss {
  17076. /* width: 100%; */
  17077. display: flex;
  17078. flex-direction: row;
  17079. flex-wrap: nowrap;
  17080. align-items: center;
  17081. /* justify-content: center; */
  17082. }
  17083. .isClickNav {
  17084. color: #499eef;
  17085. }
  17086. .commentImg {
  17087. width: 25px;
  17088. height: 25px;
  17089. cursor: pointer;
  17090. }
  17091. .commentImg > img {
  17092. width: 100%;
  17093. height: 100%;
  17094. }
  17095. .comment {
  17096. background: #f9f9f9;
  17097. border-radius: 0 0 15px 15px;
  17098. display: flex;
  17099. flex-direction: row;
  17100. flex-wrap: nowrap;
  17101. align-items: center;
  17102. justify-content: flex-end;
  17103. height: 35px;
  17104. }
  17105. .commentList {
  17106. display: flex;
  17107. flex-direction: row;
  17108. flex-wrap: nowrap;
  17109. align-items: center;
  17110. justify-content: center;
  17111. align-content: center;
  17112. /* margin-left: 15px; */
  17113. /* margin-left: 8px; */
  17114. }
  17115. .scoreImg {
  17116. width: 17px;
  17117. height: 17px;
  17118. }
  17119. .studentDetail {
  17120. display: flex;
  17121. flex-direction: row;
  17122. flex-wrap: nowrap;
  17123. /* align-items: center; */
  17124. align-items: flex-start;
  17125. }
  17126. .tx {
  17127. width: 50px;
  17128. }
  17129. .tx > img {
  17130. width: 100%;
  17131. height: 100%;
  17132. }
  17133. .nameAndTime {
  17134. display: flex;
  17135. flex-direction: column;
  17136. flex-wrap: nowrap;
  17137. align-items: flex-start;
  17138. margin-left: 10px;
  17139. }
  17140. .worksAnswer {
  17141. color: #4078dd;
  17142. margin: 10px 0;
  17143. font-size: 16px;
  17144. position: relative;
  17145. }
  17146. .worksAnswer > img {
  17147. width: 500px;
  17148. height: 300px;
  17149. object-fit: contain;
  17150. margin: 0 auto;
  17151. display: block;
  17152. }
  17153. .commentTop {
  17154. border-bottom: 1px solid #eaeaea;
  17155. padding-bottom: 10px;
  17156. }
  17157. .commentBox {
  17158. padding-top: 15px;
  17159. }
  17160. .pl {
  17161. font-size: 18px;
  17162. }
  17163. .plPerson {
  17164. width: 100%;
  17165. }
  17166. .plName {
  17167. display: flex;
  17168. flex-direction: row;
  17169. flex-wrap: nowrap;
  17170. align-items: baseline;
  17171. color: #78787a;
  17172. width: 100%;
  17173. }
  17174. .deleteComment {
  17175. cursor: pointer;
  17176. margin-left: auto;
  17177. color: #237ade;
  17178. }
  17179. .plContent {
  17180. margin-top: 5px;
  17181. }
  17182. .evalCss {
  17183. background: #fff;
  17184. font-size: 18px;
  17185. }
  17186. .nav {
  17187. color: #9d9d9d;
  17188. padding: 5px 0 15px 20px;
  17189. }
  17190. .middleBox {
  17191. padding: 5px 0 15px 20px;
  17192. }
  17193. .pfBox {
  17194. padding-bottom: 30px;
  17195. }
  17196. .nameAndrate {
  17197. display: flex;
  17198. flex-direction: row;
  17199. flex-wrap: nowrap;
  17200. align-items: center;
  17201. padding-bottom: 10px;
  17202. height: 30px;
  17203. line-height: 30px;
  17204. }
  17205. .nameAndrate > div {
  17206. margin-left: 10px;
  17207. color: #000;
  17208. height: 30px;
  17209. }
  17210. .nameAndrate >>> .el-rate__icon {
  17211. font-size: 28px !important;
  17212. }
  17213. .pfBox > div:nth-child(2) {
  17214. background: #f7f6f9;
  17215. width: 400px;
  17216. min-height: 45px;
  17217. border-radius: 10px;
  17218. font-size: 16px;
  17219. display: flex;
  17220. flex-wrap: wrap;
  17221. align-items: center;
  17222. padding: 10px 20px;
  17223. box-sizing: border-box;
  17224. color: #000;
  17225. }
  17226. .bz {
  17227. display: flex;
  17228. flex-direction: row;
  17229. flex-wrap: nowrap;
  17230. align-items: flex-start;
  17231. }
  17232. .bz > div {
  17233. padding: 0 10px;
  17234. }
  17235. .select_box2_title {
  17236. background: #fff;
  17237. border-radius: 5px;
  17238. padding: 15px 10px;
  17239. box-sizing: border-box;
  17240. margin-bottom: 10px;
  17241. display: flex;
  17242. flex-direction: row;
  17243. flex-wrap: nowrap;
  17244. align-items: center;
  17245. }
  17246. .select_box2_title > div:nth-child(2) {
  17247. margin-left: 10px;
  17248. color: #c4c4c4;
  17249. }
  17250. .select_box2_box {
  17251. display: flex;
  17252. height: 500px;
  17253. }
  17254. .select_box2_img {
  17255. width: calc(100% - 310px);
  17256. height: 100%;
  17257. overflow: auto;
  17258. background: #fff;
  17259. border-radius: 5px;
  17260. }
  17261. .select_box2_img img {
  17262. width: 100%;
  17263. }
  17264. .select_box2_answer {
  17265. background: #fff;
  17266. margin-left: 10px;
  17267. border-radius: 5px;
  17268. width: 300px;
  17269. overflow: auto;
  17270. height: 90%;
  17271. display: flex;
  17272. flex-direction: column;
  17273. align-items: flex-start;
  17274. padding-top: 10px;
  17275. box-sizing: border-box;
  17276. position: relative;
  17277. }
  17278. .select_answer_title {
  17279. padding: 0 0 15px 20px;
  17280. color: #c4c4c4;
  17281. }
  17282. .select_box2_answer_box {
  17283. margin: 0 0 10px 20px;
  17284. width: 85%;
  17285. display: flex;
  17286. flex-direction: row;
  17287. flex-wrap: nowrap;
  17288. align-items: center;
  17289. }
  17290. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  17291. color: #000;
  17292. }
  17293. .upAnswerCss {
  17294. position: absolute;
  17295. bottom: 15px;
  17296. right: 15px;
  17297. }
  17298. .upAnswerCss >>> .el-button {
  17299. width: 95px;
  17300. height: 35px;
  17301. line-height: 35px;
  17302. padding: 0;
  17303. }
  17304. .rightWidthCss {
  17305. width: 60%;
  17306. display: flex;
  17307. flex-direction: row;
  17308. align-items: flex-start;
  17309. }
  17310. .rightAnswer {
  17311. display: flex;
  17312. flex-direction: row;
  17313. flex-wrap: nowrap;
  17314. align-items: center;
  17315. color: red;
  17316. margin-bottom: 31px;
  17317. }
  17318. .rightAnswerCss {
  17319. display: flex;
  17320. flex-direction: column;
  17321. flex-wrap: nowrap;
  17322. padding-top: 60px;
  17323. }
  17324. .blueCss {
  17325. color: #767de1;
  17326. margin-left: 10px;
  17327. }
  17328. .redCss {
  17329. color: red;
  17330. }
  17331. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  17332. color: rgb(0 123 255) !important;
  17333. }
  17334. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  17335. color: rgb(0 123 255) !important;
  17336. }
  17337. .zuoyeYulan {
  17338. padding-top: 15px;
  17339. font-size: 18px;
  17340. display: flex;
  17341. align-items: flex-end;
  17342. }
  17343. .buttonA {
  17344. margin-left: 10px;
  17345. padding: 0;
  17346. }
  17347. .displayBox {
  17348. margin-bottom: 10px;
  17349. display: block;
  17350. border-bottom: 3px solid #eee;
  17351. display: flex;
  17352. align-items: center;
  17353. }
  17354. .easy_comment {
  17355. width: calc(100% - 90px);
  17356. margin-left: 10px;
  17357. display: flex;
  17358. flex-wrap: wrap;
  17359. }
  17360. .easy_comment > div {
  17361. border: 1px solid #4a4a4a;
  17362. color: #666;
  17363. border-radius: 15px;
  17364. padding: 5px 10px;
  17365. font-size: 16px;
  17366. margin-bottom: 10px;
  17367. margin-right: 5px;
  17368. cursor: pointer;
  17369. }
  17370. .easy_comment div:hover {
  17371. border: 1px solid #f7ba2a;
  17372. color: #c69217;
  17373. }
  17374. .xuan_right_box {
  17375. padding: 10px;
  17376. background: rgb(247, 247, 247);
  17377. margin: 10px 12px;
  17378. border-radius: 5px;
  17379. }
  17380. .tool_right_box {
  17381. display: flex;
  17382. align-items: center;
  17383. }
  17384. .tool_right_box + .tool_right_box {
  17385. margin-top: 10px;
  17386. }
  17387. .right_box_xuan {
  17388. background: rgb(0 123 255);
  17389. color: #fff;
  17390. border-radius: 5px;
  17391. padding: 5px;
  17392. margin-left: 10px;
  17393. }
  17394. .pButton:hover {
  17395. opacity: 1 !important;
  17396. }
  17397. .pButton {
  17398. position: fixed;
  17399. /* right: 5%; */
  17400. /* bottom: 5%; */
  17401. color: #fff;
  17402. /* width: 50px;
  17403. height: 50px; */
  17404. /* border-radius: 50%; */
  17405. text-align: center;
  17406. /* line-height: 50px; */
  17407. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  17408. cursor: pointer;
  17409. z-index: 999;
  17410. right: 0;
  17411. top: 83px;
  17412. width: 50px;
  17413. height: 50px;
  17414. background: #fff;
  17415. display: flex;
  17416. align-items: center;
  17417. justify-content: center;
  17418. box-shadow: 0px 0 8px 2px #c5c5c5;
  17419. border-radius: 5px;
  17420. }
  17421. .pzClass {
  17422. width: calc(100% - 340px);
  17423. }
  17424. .newDialogCss {
  17425. /* position: fixed;
  17426. right: 5%;
  17427. top: 50%;
  17428. width: 340px;
  17429. transform: translateY(-50%);
  17430. height: 60%;
  17431. box-shadow: 0px 0 8px 0px #555555;
  17432. border-radius: 15px;
  17433. z-index: 999; */
  17434. position: fixed;
  17435. right: 0;
  17436. top: 70px;
  17437. width: 340px;
  17438. height: calc(100% - 80px);
  17439. z-index: 999;
  17440. background: #fff;
  17441. border-radius: 15px;
  17442. border-top-right-radius: 0px;
  17443. border-bottom-right-radius: 0px;
  17444. overflow: hidden;
  17445. }
  17446. .pzTop {
  17447. color: #fff;
  17448. background: #000;
  17449. display: flex;
  17450. flex-direction: row;
  17451. flex-wrap: nowrap;
  17452. align-items: center;
  17453. justify-content: space-between;
  17454. height: 40px;
  17455. border-radius: 15px 15px 0 0;
  17456. }
  17457. .pzTop2 .checkbox {
  17458. display: flex;
  17459. align-items: center;
  17460. padding: 15px 30px;
  17461. flex: 0 0 auto;
  17462. font-weight: bold;
  17463. border-bottom: 1px solid #eee;
  17464. justify-content: space-between;
  17465. }
  17466. .pzTop2 .check {
  17467. text-align: center;
  17468. cursor: pointer;
  17469. box-sizing: border-box;
  17470. display: flex;
  17471. }
  17472. .pzTop2 img {
  17473. width: 25px;
  17474. cursor: pointer;
  17475. }
  17476. .pzTop > div:nth-child(1) {
  17477. padding-left: 10px;
  17478. }
  17479. .pzTop > div:nth-child(2) {
  17480. width: 15px;
  17481. height: 15px;
  17482. padding-right: 10px;
  17483. cursor: pointer;
  17484. }
  17485. .pzTop > div:nth-child(2) > img {
  17486. width: 100%;
  17487. height: 100%;
  17488. }
  17489. .pzBox,
  17490. .noPzBox {
  17491. height: calc(100% - 60px);
  17492. /* background: #ededed; */
  17493. background: #fff;
  17494. /* border-radius: 0 0 15px 15px; */
  17495. }
  17496. .noPzBox {
  17497. display: flex;
  17498. flex-direction: column;
  17499. flex-wrap: nowrap;
  17500. justify-content: center;
  17501. align-items: center;
  17502. }
  17503. .pzList {
  17504. background: #f7f7f7;
  17505. width: 90%;
  17506. margin: 0 auto 15px;
  17507. border-radius: 5px;
  17508. }
  17509. .pzNavTop {
  17510. display: flex;
  17511. flex-direction: row;
  17512. flex-wrap: nowrap;
  17513. padding: 10px 10px 0 10px;
  17514. align-items: center;
  17515. }
  17516. .pzDelete {
  17517. cursor: pointer;
  17518. margin-left: auto;
  17519. font-size: 14px;
  17520. color: #afafaf;
  17521. }
  17522. .pzNavTop > div:nth-child(1) {
  17523. background: #3760af;
  17524. width: 35px;
  17525. height: 35px;
  17526. color: #fff;
  17527. text-align: center;
  17528. line-height: 35px;
  17529. border-radius: 50%;
  17530. font-size: 14px;
  17531. }
  17532. .pzNavTop > div:nth-child(2) {
  17533. font-size: 18px;
  17534. color: #959595;
  17535. margin-left: 5px;
  17536. }
  17537. .pzContent {
  17538. padding: 10px;
  17539. word-break: break-word;
  17540. }
  17541. .pzContent audio {
  17542. width: 100%;
  17543. }
  17544. .pzContent audio::-webkit-media-controls-panel {
  17545. background: #fff;
  17546. }
  17547. .pzListBox {
  17548. padding-top: 15px;
  17549. height: calc(100% - 60px);
  17550. overflow: auto;
  17551. }
  17552. .addPzButton {
  17553. position: relative;
  17554. margin-top: 3px;
  17555. width: 100%;
  17556. }
  17557. .addPzButton .img1 {
  17558. position: absolute;
  17559. top: 50%;
  17560. right: 25px;
  17561. transform: translateY(-50%);
  17562. height: 100%;
  17563. display: flex;
  17564. align-items: center;
  17565. }
  17566. .addPzButton .img1 div {
  17567. display: flex;
  17568. }
  17569. .addPzButton .img1 div img {
  17570. width: 28px;
  17571. margin-left: 10px;
  17572. cursor: pointer;
  17573. }
  17574. .addPzButton .img1 div span {
  17575. font-size: 14px;
  17576. margin: 4px 0 0 3px;
  17577. color: #afafaf;
  17578. }
  17579. .addPz {
  17580. background: #4b79ce;
  17581. width: 100px;
  17582. color: #fff;
  17583. font-size: 12px;
  17584. height: 30px;
  17585. margin: 0 auto;
  17586. text-align: center;
  17587. line-height: 30px;
  17588. border-radius: 10px;
  17589. cursor: pointer;
  17590. }
  17591. .addDialogCss {
  17592. position: fixed;
  17593. right: 37%;
  17594. top: 50%;
  17595. width: 600px;
  17596. transform: translateY(-50%);
  17597. height: 70%;
  17598. min-height: 450px;
  17599. box-shadow: 0px 0 8px 0px #555555;
  17600. border-radius: 15px;
  17601. z-index: 999;
  17602. }
  17603. .teacherPz {
  17604. display: flex;
  17605. flex-direction: row;
  17606. align-items: center;
  17607. flex-wrap: nowrap;
  17608. }
  17609. .teacherPzImg {
  17610. width: 30px;
  17611. height: 30px;
  17612. }
  17613. .teacherPzImg > img {
  17614. width: 100%;
  17615. height: 100%;
  17616. }
  17617. .addPzBox {
  17618. height: calc(100% - 40px);
  17619. background: #ededed;
  17620. }
  17621. .pzAudioClass {
  17622. margin: 15px 14px;
  17623. background: #fff;
  17624. height: 100%;
  17625. display: flex;
  17626. justify-content: center;
  17627. align-items: center;
  17628. }
  17629. .pzConText {
  17630. width: 95%;
  17631. height: 100%;
  17632. margin: 10px auto 0;
  17633. border: none;
  17634. background: #fff;
  17635. border-radius: 0px;
  17636. }
  17637. .pzConText >>> .text {
  17638. height: calc(100% - 82px);
  17639. }
  17640. .addTextCss {
  17641. background: #4b79ce;
  17642. width: 80px;
  17643. height: 30px;
  17644. text-align: center;
  17645. color: #fff;
  17646. line-height: 30px;
  17647. border-radius: 10px;
  17648. margin: 10px auto 0;
  17649. cursor: pointer;
  17650. }
  17651. .pzConText:focus-visible {
  17652. border: none !important;
  17653. }
  17654. .maxWidth {
  17655. width: 1000px;
  17656. }
  17657. .noPz {
  17658. width: 150px;
  17659. margin: 0 auto 20%;
  17660. }
  17661. .noPz > img {
  17662. width: 100%;
  17663. height: 100%;
  17664. }
  17665. .pzList .time {
  17666. text-align: right;
  17667. box-sizing: border-box;
  17668. padding: 0 10px 10px 0px;
  17669. color: #949494;
  17670. font-size: 14px;
  17671. }
  17672. /* table 样式 */
  17673. .cont >>> table {
  17674. border-top: 1px solid #ccc;
  17675. border-left: 1px solid #ccc;
  17676. }
  17677. .cont >>> table td,
  17678. .cont >>> table th {
  17679. border-bottom: 1px solid #ccc;
  17680. border-right: 1px solid #ccc;
  17681. padding: 15px 5px;
  17682. max-width: 0px;
  17683. }
  17684. .cont >>> table th {
  17685. border-bottom: 2px solid #ccc;
  17686. text-align: center;
  17687. }
  17688. /* blockquote 样式 */
  17689. .cont >>> blockquote {
  17690. display: block;
  17691. border-left: 8px solid #d0e5f2;
  17692. padding: 5px 10px;
  17693. margin: 10px 0;
  17694. line-height: 1.4;
  17695. font-size: 100%;
  17696. background-color: #f1f1f1;
  17697. }
  17698. .addPzCheck {
  17699. display: flex;
  17700. flex-direction: row;
  17701. flex-wrap: nowrap;
  17702. padding: 10px 15px 0;
  17703. }
  17704. .addPzCheck span {
  17705. cursor: pointer;
  17706. padding-bottom: 5px;
  17707. font-weight: bold;
  17708. }
  17709. .addPzCheck span + span {
  17710. margin-left: 10px;
  17711. }
  17712. .addPzCheck .isChooseActive {
  17713. color: #3e88f4;
  17714. border-bottom: 2px solid #2f80f3;
  17715. }
  17716. /* code 样式 */
  17717. .cont >>> code {
  17718. display: inline-block;
  17719. *display: inline;
  17720. *zoom: 1;
  17721. background-color: #f1f1f1;
  17722. border-radius: 3px;
  17723. padding: 3px 5px;
  17724. margin: 0 3px;
  17725. }
  17726. .cont >>> pre code {
  17727. display: block;
  17728. }
  17729. /* ul ol 样式 */
  17730. .cont >>> ul,
  17731. ol {
  17732. margin: 10px 0 10px 20px;
  17733. }
  17734. .scoreBox,
  17735. .scoreDetailBox {
  17736. display: flex;
  17737. align-items: center;
  17738. justify-content: flex-start;
  17739. margin-top: 20px;
  17740. font-size: 18px;
  17741. width: 100%;
  17742. }
  17743. .scoreBox .t,
  17744. .scoreDetailBox .t {
  17745. margin-right: 10px;
  17746. width: 100px;
  17747. text-align: right;
  17748. }
  17749. .scoreDetailBox {
  17750. align-items: flex-start;
  17751. }
  17752. .scoreDetailBox >>> .el-textarea {
  17753. width: calc(100% - 200px);
  17754. }
  17755. .scoreBox >>> .el-input {
  17756. width: 130px;
  17757. font-size: 38px;
  17758. }
  17759. .scoreBox >>> .el-input__inner {
  17760. height: 60px;
  17761. }
  17762. .answerScore {
  17763. position: absolute;
  17764. top: 10px;
  17765. right: 10px;
  17766. background: #0000008f;
  17767. border-radius: 5px;
  17768. padding: 3px 5px;
  17769. font-size: 14px;
  17770. color: #fff;
  17771. cursor: pointer;
  17772. }
  17773. .open_box .switch_box {
  17774. width: 100%;
  17775. margin: 0 auto;
  17776. display: flex;
  17777. justify-content: space-between;
  17778. }
  17779. .open_box .switch_box + .switch_box {
  17780. margin-top: 10px;
  17781. }
  17782. .deleteImg {
  17783. width: 25px !important;
  17784. height: 25px !important;
  17785. cursor: pointer;
  17786. position: absolute;
  17787. top: 10px;
  17788. right: 10px;
  17789. }
  17790. .deleteImg2 {
  17791. width: 15px !important;
  17792. height: 15px !important;
  17793. top: 5px;
  17794. right: 5px;
  17795. }
  17796. .rightW {
  17797. right: 40px;
  17798. }
  17799. .drawPBox {
  17800. display: flex;
  17801. flex-direction: column;
  17802. position: relative;
  17803. }
  17804. .drawPBox span {
  17805. font-size: 18px;
  17806. color: #606266;
  17807. padding-bottom: 10px;
  17808. margin: 10px 0;
  17809. border-bottom: 1px solid #eaeaea;
  17810. }
  17811. .drawPBox img {
  17812. width: 500px;
  17813. height: 300px;
  17814. object-fit: contain;
  17815. cursor: pointer;
  17816. margin: 0 auto;
  17817. }
  17818. .sentenBox {
  17819. background: #fff;
  17820. height: 450px;
  17821. overflow: auto;
  17822. background-image: url("../assets/icon/conSentences/stuBg.png");
  17823. background-position: 102%;
  17824. background-repeat: no-repeat;
  17825. background-size: 60%;
  17826. }
  17827. .addSen {
  17828. background: #409efe;
  17829. width: 90px;
  17830. color: #fff;
  17831. height: 35px;
  17832. text-align: center;
  17833. line-height: 35px;
  17834. border-radius: 5px;
  17835. float: right;
  17836. margin: 10px 20px 0 0;
  17837. cursor: pointer;
  17838. }
  17839. .sentenTop {
  17840. display: flex;
  17841. flex-direction: row;
  17842. flex-wrap: nowrap;
  17843. align-items: center;
  17844. padding: 55px 0 0 20px;
  17845. box-sizing: border-box;
  17846. }
  17847. .sentenTop > div:nth-child(2) {
  17848. width: 300px;
  17849. margin: 0 15px;
  17850. }
  17851. .sentenTop > div:nth-child(3) {
  17852. background: #409efe;
  17853. color: #fff;
  17854. width: 65px;
  17855. height: 35px;
  17856. text-align: center;
  17857. line-height: 35px;
  17858. border-radius: 5px;
  17859. cursor: pointer;
  17860. }
  17861. .cardList,
  17862. .cardList1 {
  17863. padding: 10px 0 10px 0;
  17864. display: flex;
  17865. flex-direction: row;
  17866. flex-wrap: wrap;
  17867. align-items: center;
  17868. box-sizing: border-box;
  17869. border-bottom: 1px solid #f4f4f4;
  17870. width: 98%;
  17871. margin: 0 auto;
  17872. min-width: 60%;
  17873. max-width: 85%;
  17874. }
  17875. .cardList1 {
  17876. padding: 10px 0 10px 10px !important;
  17877. margin: 0 !important;
  17878. }
  17879. .cardBox {
  17880. display: flex;
  17881. flex-direction: row;
  17882. flex-wrap: wrap;
  17883. align-items: center;
  17884. align-content: center;
  17885. }
  17886. .cardBox > div {
  17887. margin-bottom: 10px;
  17888. }
  17889. .isCard,
  17890. .isChooseCard,
  17891. .noCard,
  17892. .isCard1 {
  17893. width: 130px;
  17894. height: 60px;
  17895. text-align: center;
  17896. line-height: 60px;
  17897. font-size: 20px;
  17898. cursor: pointer;
  17899. background-image: url("../assets/icon/conSentences/titleBorder.png");
  17900. background-size: cover;
  17901. transition: all 2s;
  17902. margin-right: 20px;
  17903. }
  17904. .isCard > div,
  17905. .noCard > div,
  17906. .isCard1 > div {
  17907. white-space: nowrap;
  17908. overflow: hidden;
  17909. text-overflow: ellipsis;
  17910. width: 75%;
  17911. margin: 0 auto;
  17912. }
  17913. .noCard {
  17914. background-image: none;
  17915. }
  17916. .isCard1 {
  17917. background-image: url("../assets/icon/conSentences/answerBorder.png");
  17918. }
  17919. .isChooseCard {
  17920. background-image: none;
  17921. border: 1px dashed #b9b9b9;
  17922. border-radius: 10px;
  17923. }
  17924. .card {
  17925. width: 130px;
  17926. height: 60px;
  17927. }
  17928. .card > img {
  17929. width: 100%;
  17930. height: 100%;
  17931. }
  17932. .rightCardBox {
  17933. margin: 10px 0 0 10px;
  17934. }
  17935. .rightCardBox > div:nth-child(1) {
  17936. margin-bottom: 10px;
  17937. }
  17938. .cardCss {
  17939. display: flex;
  17940. flex-direction: column;
  17941. flex-wrap: nowrap;
  17942. align-items: center;
  17943. border-bottom: 3px solid #b4c3d3;
  17944. padding: 0 0 5px 0;
  17945. margin-right: 10px;
  17946. }
  17947. .cardCss > div:nth-child(2) {
  17948. background: #5b7b9d;
  17949. color: #fff;
  17950. width: 20px;
  17951. height: 20px;
  17952. border-radius: 50%;
  17953. text-align: center;
  17954. line-height: 20px;
  17955. }
  17956. .isWrong {
  17957. display: flex;
  17958. flex-direction: row;
  17959. flex-wrap: nowrap;
  17960. align-content: center;
  17961. align-items: center;
  17962. }
  17963. .answerRight {
  17964. width: 25%;
  17965. }
  17966. .isTj {
  17967. display: flex;
  17968. flex-direction: row;
  17969. flex-wrap: nowrap;
  17970. align-items: center;
  17971. }
  17972. .isTj > div:nth-child(2) {
  17973. color: #727070;
  17974. margin-left: 10px;
  17975. }
  17976. .isTjImg {
  17977. width: 30px;
  17978. height: 30px;
  17979. }
  17980. .isTjImg > img {
  17981. width: 100%;
  17982. height: 100%;
  17983. }
  17984. .cardAnswerBox {
  17985. font-size: 18px;
  17986. width: 97%;
  17987. border: 5px;
  17988. padding: 0;
  17989. border-radius: 5px;
  17990. margin: 10px auto;
  17991. word-break: break-word;
  17992. }
  17993. .w_name {
  17994. margin-bottom: 10px;
  17995. }
  17996. .w_name span {
  17997. font-size: 16px;
  17998. }
  17999. .w_teachert {
  18000. width: 50px !important;
  18001. position: absolute;
  18002. height: auto !important;
  18003. z-index: 10;
  18004. right: 25px;
  18005. top: -25px;
  18006. }
  18007. .group_workBox {
  18008. }
  18009. .group_workBox + .group_workBox {
  18010. margin-top: 20px;
  18011. }
  18012. .group_box {
  18013. padding-bottom: 20px;
  18014. border-bottom: 2px solid #f0f0f0;
  18015. }
  18016. .group_title {
  18017. display: flex;
  18018. align-items: center;
  18019. justify-content: space-between;
  18020. }
  18021. .group_name {
  18022. background-image: url(../assets/icon/groupN.png);
  18023. width: 220px;
  18024. background-size: 100% 100%;
  18025. height: 67px;
  18026. padding: 0 20px 0 43px;
  18027. box-sizing: border-box;
  18028. line-height: 63px;
  18029. color: #fff;
  18030. overflow: hidden;
  18031. white-space: nowrap;
  18032. text-overflow: ellipsis;
  18033. }
  18034. .group_work {
  18035. width: 100%;
  18036. padding: 0 10px;
  18037. box-sizing: border-box;
  18038. display: flex;
  18039. flex-wrap: wrap;
  18040. }
  18041. .g_d_box {
  18042. display: flex;
  18043. flex-flow: wrap;
  18044. justify-content: space-around;
  18045. }
  18046. .g_d_box .isChair {
  18047. background-image: url(../assets/avatar.png) !important;
  18048. }
  18049. .g_d_group {
  18050. width: 500px;
  18051. margin-bottom: 80px;
  18052. }
  18053. .g_d_group_chair {
  18054. display: flex;
  18055. align-items: center;
  18056. justify-content: center;
  18057. }
  18058. .g_d_group_chair > div + div {
  18059. margin-left: 30px;
  18060. }
  18061. .g_d_group_chair > div,
  18062. .g_d_group_chair2 > div {
  18063. display: flex;
  18064. flex-direction: column;
  18065. align-items: center;
  18066. }
  18067. .g_d_group_chair > div > span:nth-child(1),
  18068. .g_d_group_chair2 > div > span:nth-child(1) {
  18069. background-image: url(../assets/icon/chair.png);
  18070. width: 50px;
  18071. height: 50px;
  18072. display: block;
  18073. background-size: 100% 100%;
  18074. }
  18075. .g_d_group_tableBox {
  18076. display: flex;
  18077. align-items: center;
  18078. justify-content: center;
  18079. }
  18080. .g_d_group_chair2 {
  18081. display: flex;
  18082. flex-direction: column;
  18083. align-items: center;
  18084. justify-content: center;
  18085. }
  18086. .g_d_group_chair2 > div + div {
  18087. margin-top: 10px;
  18088. }
  18089. .g_d_group_table {
  18090. background-image: url(../assets/icon/groupBg.png);
  18091. width: 354px;
  18092. height: 196px;
  18093. background-size: 100% 100%;
  18094. display: flex;
  18095. align-items: center;
  18096. justify-content: center;
  18097. flex-direction: column;
  18098. color: #fff;
  18099. }
  18100. .g_d_group_table > div:nth-child(1) {
  18101. font-size: 24px;
  18102. margin-bottom: 5px;
  18103. }
  18104. .g_d_group_table > div:nth-child(2) div {
  18105. cursor: pointer;
  18106. background: #2e77bf;
  18107. padding: 4px 10px;
  18108. border-radius: 5px;
  18109. }
  18110. .groupBox {
  18111. }
  18112. .groupContent + .groupContent {
  18113. margin-top: 30px;
  18114. }
  18115. .groupTitle {
  18116. font-size: 24px;
  18117. color: rgb(80, 80, 80);
  18118. margin-bottom: 20px;
  18119. }
  18120. .groupName {
  18121. display: flex;
  18122. align-items: center;
  18123. }
  18124. .groupn {
  18125. font-size: 15px;
  18126. margin-right: 10px;
  18127. }
  18128. .groupName + .groupName {
  18129. margin-top: 15px;
  18130. }
  18131. .groupBtn {
  18132. margin-left: 10px;
  18133. }
  18134. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  18135. text-align: left;
  18136. }
  18137. .g_d_btnBox {
  18138. display: flex;
  18139. justify-content: flex-end;
  18140. align-items: flex-end;
  18141. margin-bottom: 20px;
  18142. }
  18143. .updateChair {
  18144. position: relative;
  18145. }
  18146. .updateChairBtn {
  18147. position: absolute;
  18148. width: 50px;
  18149. height: 50px;
  18150. overflow: hidden;
  18151. /* display: flex; */
  18152. align-items: center;
  18153. justify-content: center;
  18154. background: #00000087;
  18155. color: #fff;
  18156. border-radius: 50px;
  18157. display: none;
  18158. cursor: pointer;
  18159. }
  18160. .updateChair:hover .updateChairBtn {
  18161. display: flex;
  18162. }
  18163. .group_staic_box {
  18164. display: flex;
  18165. padding: 30px 40px 10px;
  18166. flex-wrap: wrap;
  18167. }
  18168. .group_staic {
  18169. /* width: 50%; */
  18170. margin-bottom: 20px;
  18171. display: flex;
  18172. align-items: center;
  18173. }
  18174. .group_staic span:nth-child(1) {
  18175. width: 150px;
  18176. text-align: right;
  18177. margin-right: 15px;
  18178. }
  18179. .group_staic span:nth-child(2) {
  18180. background: rgb(0 123 255);
  18181. color: #fff;
  18182. border-radius: 5px;
  18183. padding: 5px;
  18184. }
  18185. .codeFileBox {
  18186. height: 300px;
  18187. background: #fff;
  18188. display: flex;
  18189. align-items: center;
  18190. justify-content: center;
  18191. }
  18192. .codeFileBox img {
  18193. width: 200px;
  18194. margin: 0;
  18195. height: auto;
  18196. }
  18197. .codeFileBox div {
  18198. background: rgb(80, 142, 226);
  18199. color: #fff;
  18200. padding: 10px 20px;
  18201. border-radius: 25px;
  18202. cursor: pointer;
  18203. margin-left: 15px;
  18204. }
  18205. .radioBox {
  18206. display: flex;
  18207. flex-direction: row;
  18208. flex-wrap: nowrap;
  18209. align-items: center;
  18210. }
  18211. .radioBox > div {
  18212. margin: 10px 0 0 10px;
  18213. }
  18214. /* .radioBox >>> .el-radio__input,
  18215. .radioBox >>> .el-checkbox__inner {
  18216. margin-left: 10px;
  18217. } */
  18218. .radioBox >>> .el-radio__label,
  18219. .radioBox >>> .el-checkbox__label {
  18220. display: flex;
  18221. align-items: center;
  18222. }
  18223. .inImg {
  18224. width: 100px;
  18225. cursor: pointer;
  18226. }
  18227. .inImg > img {
  18228. width: 100%;
  18229. height: 100%;
  18230. object-fit: cover;
  18231. }
  18232. .timuImgBox {
  18233. margin: 10px 0;
  18234. display: flex;
  18235. flex-direction: column;
  18236. flex-wrap: wrap;
  18237. align-items: flex-start;
  18238. }
  18239. .timuImg {
  18240. width: 100px;
  18241. margin: 5px 0;
  18242. cursor: pointer;
  18243. }
  18244. .timuImg > img {
  18245. width: 100%;
  18246. height: 100%;
  18247. object-fit: cover;
  18248. }
  18249. .worksTop {
  18250. display: flex;
  18251. flex-direction: row;
  18252. align-items: flex-end;
  18253. }
  18254. .corOpen {
  18255. margin: 0 0 0 10px;
  18256. font-size: 14px;
  18257. cursor: pointer;
  18258. color: #505050;
  18259. }
  18260. .corOpen:hover {
  18261. color: #499eef;
  18262. }
  18263. .navCorOpenBox {
  18264. display: flex;
  18265. flex-direction: row;
  18266. align-items: center;
  18267. background: #1e5cc9;
  18268. justify-content: space-between;
  18269. }
  18270. .navCorOpen {
  18271. padding-right: 15px;
  18272. cursor: pointer;
  18273. width: 20px;
  18274. display: flex;
  18275. }
  18276. .navCorOpen > img {
  18277. width: 100%;
  18278. height: 100%;
  18279. }
  18280. .mlImg {
  18281. width: 25px !important;
  18282. cursor: pointer;
  18283. margin-top: 5px;
  18284. }
  18285. .mlImg > img {
  18286. width: 100%;
  18287. height: 100%;
  18288. }
  18289. .navLeftCss {
  18290. width: 100% !important;
  18291. left: 0 !important;
  18292. }
  18293. .isContentCss {
  18294. width: 100% !important;
  18295. }
  18296. .isAllWidth {
  18297. width: 100% !important;
  18298. }
  18299. .group_switch {
  18300. margin-right: 10px;
  18301. height: 30px;
  18302. display: flex;
  18303. align-items: center;
  18304. }
  18305. .group_switch > span {
  18306. margin-right: 5px;
  18307. }
  18308. </style>