studyStudent.vue 613 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854
  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. ref="iframeC"
  352. style="width: 100%; height: 100%; border: none"
  353. :src="pptImgUrl1"
  354. ></iframe>
  355. </div>
  356. <div
  357. class="wheel"
  358. v-else-if="showType == 2"
  359. style="width: 95%; margin: 0 auto"
  360. >
  361. <iframe
  362. style="width: 100%; height: 100%; border: none"
  363. security="restricted"
  364. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  365. :src="pptImgUrl1"
  366. ></iframe>
  367. </div>
  368. <div
  369. class="wheel"
  370. v-if="showType == 3"
  371. style="width: 95%; margin: 0 auto"
  372. >
  373. <pdf
  374. :pdfUrl="pptImgUrl1"
  375. style="width: 100%; height: 100%; overflow: auto"
  376. ></pdf>
  377. </div>
  378. <div
  379. class="wheel"
  380. v-if="showType == 4"
  381. style="width: 95%; margin: 0 auto"
  382. >
  383. <el-image
  384. :src="pptImgUrl1"
  385. fit="cover"
  386. style="width: 100%"
  387. ></el-image>
  388. </div>
  389. </div>
  390. <div
  391. class="pButton"
  392. style="
  393. position: absolute;
  394. right: 20px;
  395. top: 0;
  396. background: #205cc6;
  397. z-index: 998;
  398. opacity: 0.8;
  399. "
  400. v-if="!contentDialog"
  401. @click="setContent(true)"
  402. >
  403. <!-- 批 -->
  404. <img src="../assets/navBtn2.png" style="width: 25px" alt="" />
  405. </div>
  406. <div
  407. v-if="contentDialog == true"
  408. :style="{
  409. width:
  410. !vedio[taskCount].length > 0 &&
  411. !textList[taskCount].length > 0 &&
  412. !lineList[taskCount].length > 0 &&
  413. !file[taskCount].length > 0 &&
  414. fileC[taskCount].length
  415. ? 'calc(100%)'
  416. : 'calc(100% - 83%)',
  417. margin:
  418. !vedio[taskCount].length > 0 &&
  419. !textList[taskCount].length > 0 &&
  420. !lineList[taskCount].length > 0 &&
  421. !file[taskCount].length > 0 &&
  422. fileC[taskCount].length
  423. ? '0 15px'
  424. : '0 15px 0 0',
  425. }"
  426. >
  427. <div
  428. class="vedioList"
  429. v-if="
  430. (vedio.length &&
  431. vedio[taskCount] &&
  432. vedio[taskCount].length > 0) ||
  433. (textList.length &&
  434. textList[taskCount] &&
  435. textList[taskCount].length > 0) ||
  436. (lineList.length &&
  437. lineList[taskCount] &&
  438. lineList[taskCount].length > 0) ||
  439. (file.length &&
  440. file[taskCount] &&
  441. file[taskCount].length > 0) ||
  442. (fileC.length &&
  443. fileC[taskCount] &&
  444. fileC[taskCount].length > 0)
  445. "
  446. style="height: 650px"
  447. >
  448. <div class="navCorOpenBox">
  449. <div class="navTitile">内容列表:</div>
  450. <div class="navCorOpen" @click="setContent(false)">
  451. <img src="../assets/navBtn2.png" alt="" />
  452. </div>
  453. </div>
  454. <div class="navBox">
  455. <div
  456. v-show="
  457. vedio.length &&
  458. vedio[taskCount] &&
  459. vedio[taskCount].length > 0
  460. "
  461. >
  462. <div
  463. class="vedioTimeBox"
  464. v-for="(media, vedioIndex) in vedio[taskCount]"
  465. :key="vedioIndex + '1'"
  466. @click="lookVedio(media.url, vedioIndex)"
  467. >
  468. <div
  469. class="vedioName"
  470. :class="
  471. isClickNav == 'video' + vedioIndex
  472. ? 'isClickNav'
  473. : ''
  474. "
  475. >
  476. <span v-if="media.text">{{ media.text }}-</span
  477. >{{ media.name }}
  478. </div>
  479. </div>
  480. </div>
  481. <div
  482. v-show="
  483. textList.length &&
  484. textList[taskCount] &&
  485. textList[taskCount].length > 0
  486. "
  487. class="newNav"
  488. v-for="(text, textIndex) in textList[taskCount]"
  489. :key="textIndex + '2'"
  490. @click="lookText(taskCount, textIndex)"
  491. >
  492. <div style="width: calc(100% - 0px)">
  493. <div
  494. class="navText"
  495. :class="
  496. isClickNav == 'text' + textIndex
  497. ? 'isClickNav'
  498. : ''
  499. "
  500. >
  501. {{
  502. textList[taskCount].length > 0 ? text.name : ""
  503. }}.doc
  504. </div>
  505. </div>
  506. </div>
  507. <div
  508. v-show="
  509. lineList.length &&
  510. lineList[taskCount] &&
  511. lineList[taskCount].length > 0
  512. "
  513. class="newNav"
  514. v-for="(lines, lineIndex) in lineList[taskCount]"
  515. :key="lineIndex + '4'"
  516. @click="doUrl(lines.url, lineIndex)"
  517. >
  518. <div style="width: calc(100% - 0px)">
  519. <div
  520. class="navText"
  521. :class="
  522. isClickNav == 'line' + lineIndex
  523. ? 'isClickNav'
  524. : ''
  525. "
  526. >
  527. {{ lines.title ? lines.title : lines.url }}
  528. </div>
  529. </div>
  530. </div>
  531. <div
  532. class="newNav"
  533. v-show="
  534. file.length &&
  535. file[taskCount] &&
  536. file[taskCount].length > 0
  537. "
  538. v-for="(f, fileIndex) in file[taskCount]"
  539. :key="fileIndex"
  540. @click="downFile(f, fileIndex)"
  541. >
  542. <div style="width: calc(100% - 0px)">
  543. <div
  544. class="navText"
  545. :class="
  546. isClickNav == 'word' + fileIndex
  547. ? 'isClickNav'
  548. : ''
  549. "
  550. >
  551. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  552. </div>
  553. </div>
  554. </div>
  555. <div
  556. class="newNav"
  557. v-show="
  558. fileC.length &&
  559. fileC[taskCount] &&
  560. fileC[taskCount].length > 0
  561. "
  562. v-for="(f, fileIndex) in fileC[taskCount]"
  563. :key="fileIndex"
  564. @click="downloadFile2(f)"
  565. >
  566. <div style="width: calc(100% - 0px)">
  567. <div class="navText">
  568. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  569. </div>
  570. </div>
  571. </div>
  572. </div>
  573. </div>
  574. </div>
  575. </div>
  576. <div style="width: 81%">
  577. <div
  578. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  579. v-if="showType == 2 || showType == 3"
  580. >
  581. <el-button
  582. type="primary"
  583. @click="checkFileFull(showType, pptImgUrl1)"
  584. >全屏查看</el-button
  585. >
  586. <el-button
  587. type="primary"
  588. @click="downloadFile(pptImgUrl1)"
  589. v-if="isClickNav.indexOf('line') == -1"
  590. >文件下载</el-button
  591. >
  592. <el-button
  593. v-if="isClickNav.indexOf('line') != -1"
  594. type="primary"
  595. @click="openLine(pptImgUrl1)"
  596. >打开链接
  597. </el-button>
  598. </div>
  599. <div
  600. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  601. v-if="showType == 1"
  602. >
  603. <el-button
  604. type="primary"
  605. @click="checkFileFull(showType, text)"
  606. >全屏查看</el-button
  607. >
  608. </div>
  609. </div>
  610. </div>
  611. </div>
  612. <div class="student_body" v-resize="resize">
  613. <!-- <div
  614. class="vedioBox"
  615. v-if="
  616. file.length && file[taskCount] && file[taskCount].length > 0
  617. "
  618. >
  619. <div class="queTop">
  620. <div class="question" style="width: 30px; margin-top: 5px">
  621. <img src="../assets/icon/fileIcon.png" alt />
  622. </div>
  623. <div class="queTitle">
  624. <div>附件</div>
  625. </div>
  626. </div>
  627. <div class="filebox" style="width: 100%">
  628. <div
  629. class="file"
  630. v-for="(f, fileIndex) in file[taskCount]"
  631. :key="fileIndex"
  632. @click="downFile(f, fileIndex)"
  633. >
  634. <img :src="require('../assets/file.png')" alt />
  635. <div>{{ f.name }}</div>
  636. </div>
  637. </div>
  638. <div class="upFile" v-if="type == 3">提交</div>
  639. </div>-->
  640. <div
  641. class="vedioBox"
  642. v-if="
  643. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  644. .toolChoose[0].tool &&
  645. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  646. .toolChoose[0].tool.length &&
  647. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  648. .toolChoose[0].tool.length > 0
  649. "
  650. >
  651. <div
  652. class="queTop"
  653. style="
  654. font-size: 25px;
  655. padding: 15px 0 15px 30px;
  656. font-weight: bold;
  657. "
  658. >
  659. <!-- <div class="question" style="width: 30px">
  660. <img src="../assets/icon/toolIcon.png" alt />
  661. </div>
  662. <div class="queTitle">
  663. <div>工具</div>
  664. </div>-->
  665. 练一练
  666. </div>
  667. <div class="toolHeng2" style="position: relative">
  668. <div
  669. class="filebox"
  670. style="flex-wrap: nowrap; margin: 0 20px"
  671. v-for="(tool, toolIndex) in chapInfoList[courseType]
  672. .chapterInfo[0].taskJson[taskCount].toolChoose"
  673. :key="toolIndex"
  674. >
  675. <div class="bzBox">
  676. <div></div>
  677. <div>步骤{{ toolIndex + 1 }}</div>
  678. </div>
  679. <div class="toolBox">
  680. <div>
  681. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  682. :key="indexTool"-->
  683. <!-- <div class="iframeBox">
  684. <div
  685. class="addPoint isBorder"
  686. v-for="(tooC, toolCIndex) in tool.tool"
  687. :key="toolCIndex"
  688. >
  689. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  690. <div
  691. class="iframeName"
  692. >
  693. 电子白板
  694. </div>
  695. <iframe
  696. src="https://iwb.cocorobo.cn/"
  697. ref="whiteBoard"
  698. ></iframe>
  699. </div>
  700. </div>
  701. </div>-->
  702. <div class="noiframeBox">
  703. <div
  704. class="addPoint"
  705. v-for="(tooC, toolCIndex) in tool.tool"
  706. :key="toolCIndex"
  707. >
  708. <div v-if="tooC == 1">
  709. <img
  710. src="../assets/icon/secondToolList/whiteBoard.png"
  711. alt
  712. @click="addTools(tooC, toolIndex, taskCount)"
  713. />
  714. <div style="margin: 5px 0">电子白板</div>
  715. </div>
  716. <div v-if="tooC == 3">
  717. <img
  718. src="../assets/icon/secondToolList/mindMapping.png"
  719. alt
  720. @click="addTools(tooC, toolIndex, taskCount)"
  721. />
  722. <div style="margin: 5px 0">思维导图</div>
  723. </div>
  724. <div v-if="tooC == 6">
  725. <img
  726. src="../assets/icon/secondToolList/doc.png"
  727. alt
  728. @click="addTools(tooC, toolIndex, taskCount)"
  729. />
  730. <div style="margin: 5px 0">协同文档</div>
  731. </div>
  732. <div v-if="tooC == 7">
  733. <img
  734. src="../assets/icon/secondToolList/mindNetwork.png"
  735. alt
  736. @click="addTools(tooC, toolIndex, taskCount)"
  737. />
  738. <div style="margin: 5px 0">思维网格</div>
  739. </div>
  740. <div v-if="tooC == 8">
  741. <img
  742. src="../assets/icon/secondToolList/library.png"
  743. alt
  744. @click="addTools(tooC, toolIndex, taskCount)"
  745. />
  746. <div style="margin: 5px 0">素材库</div>
  747. </div>
  748. <div v-if="tooC == 17">
  749. <img
  750. src="../assets/icon/secondToolList/library.png"
  751. alt
  752. @click="addTools(tooC, toolIndex, taskCount)"
  753. />
  754. <div style="margin: 5px 0">学习资料</div>
  755. </div>
  756. <div v-if="tooC == 2">
  757. <img
  758. @click="addTools(tooC, toolIndex, taskCount)"
  759. src="../assets/icon/secondToolList/note.png"
  760. alt
  761. />
  762. <div style="margin: 5px 0">便签</div>
  763. </div>
  764. <div v-if="tooC == 4">
  765. <img
  766. @click="addTools(tooC, toolIndex, taskCount)"
  767. src="../assets/icon/thirdToolList/ask.png"
  768. alt
  769. />
  770. <div style="margin: 5px 0">问卷调查</div>
  771. </div>
  772. <div v-if="tooC == 45">
  773. <img
  774. @click="addTools(tooC, toolIndex, taskCount)"
  775. src="../assets/icon/thirdToolList/choose.png"
  776. alt
  777. />
  778. <div style="margin: 5px 0">选择题</div>
  779. </div>
  780. <!-- <div v-if="tooC == 5">
  781. <img
  782. @click="addTools(tooC, toolIndex, taskCount)"
  783. src="../assets/icon/thirdToolList/score.png"
  784. alt
  785. />
  786. <div style="margin: 5px 0">量规评分</div>
  787. </div> -->
  788. <div v-if="tooC == 10">
  789. <img
  790. @click="addTools(tooC, toolIndex, taskCount)"
  791. src="../assets/icon/thirdToolList/time.png"
  792. alt
  793. />
  794. <div style="margin: 5px 0">倒计时</div>
  795. </div>
  796. <div v-if="tooC == 15">
  797. <img
  798. @click="addTools(tooC, toolIndex, taskCount)"
  799. src="../assets/icon/thirdToolList/answer.png"
  800. alt
  801. />
  802. <div style="margin: 5px 0">问答工具</div>
  803. </div>
  804. <div v-if="tooC == 26">
  805. <img
  806. @click="addTools(tooC, toolIndex, taskCount)"
  807. src="../assets/icon/thirdToolList/courseDesign.png"
  808. alt
  809. />
  810. <div style="margin: 5px 0">课程设计</div>
  811. </div>
  812. <div v-if="tooC == 18">
  813. <img
  814. @click="addTools(tooC, toolIndex, taskCount)"
  815. src="../assets/icon/thirdToolList/trainPlatform.png"
  816. alt
  817. />
  818. <div style="margin: 5px 0">训练服务器</div>
  819. </div>
  820. <div v-if="tooC == 16">
  821. <img
  822. @click="addTools(tooC, toolIndex, taskCount)"
  823. src="../assets/icon/thirdToolList/work.png"
  824. alt
  825. />
  826. <div style="margin: 5px 0">作业提交</div>
  827. </div>
  828. <div v-if="tooC == 50">
  829. <img
  830. @click="addTools(tooC, toolIndex, taskCount)"
  831. src="../assets/icon/thirdToolList/plwork.png"
  832. alt
  833. />
  834. <div style="margin: 5px 0">批量上传</div>
  835. </div>
  836. <div v-if="tooC == 21">
  837. <img
  838. @click="addTools(tooC, toolIndex, taskCount)"
  839. src="../assets/icon/fourthToolList/program.png"
  840. alt
  841. />
  842. <div style="margin: 5px 0">编程平台</div>
  843. </div>
  844. <div v-if="tooC == 22">
  845. <img
  846. @click="addTools(tooC, toolIndex, taskCount)"
  847. src="../assets/icon/fourthToolList/program.png"
  848. alt
  849. />
  850. <div style="margin: 5px 0">AI体验</div>
  851. </div>
  852. <div v-if="tooC == 23">
  853. <img
  854. @click="addTools(tooC, toolIndex, taskCount)"
  855. src="../assets/icon/fourthToolList/program.png"
  856. alt
  857. />
  858. <div style="margin: 5px 0">Python</div>
  859. </div>
  860. <div v-if="tooC == 24">
  861. <img
  862. @click="addTools(tooC, toolIndex, taskCount)"
  863. src="../assets/icon/fourthToolList/AIprogram.png"
  864. alt
  865. />
  866. <div style="margin: 5px 0">AI平台</div>
  867. </div>
  868. <div v-if="tooC == 25">
  869. <img
  870. @click="addTools(tooC, toolIndex, taskCount)"
  871. src="../assets/icon/thirdToolList/evalua.png"
  872. alt
  873. />
  874. <div style="margin: 5px 0">目标管理</div>
  875. </div>
  876. <div v-if="tooC == 31">
  877. <img
  878. @click="addTools(tooC, toolIndex, taskCount)"
  879. src="../assets/icon/secondToolList/networkPanel.png"
  880. alt
  881. />
  882. <div style="margin: 5px 0">数学画板</div>
  883. </div>
  884. <div v-if="tooC == 28">
  885. <img
  886. @click="addTools(tooC, toolIndex, taskCount)"
  887. src="../assets/icon/secondToolList/translation.png"
  888. alt
  889. />
  890. <div style="margin: 5px 0">翻译</div>
  891. </div>
  892. <div v-if="tooC == 37">
  893. <img
  894. @click="addTools(tooC, toolIndex, taskCount)"
  895. src="../assets/icon/secondToolList/mohe.png"
  896. alt
  897. />
  898. <div style="margin: 5px 0">魔盒识字</div>
  899. </div>
  900. <div v-if="tooC == 38">
  901. <img
  902. @click="addTools(tooC, toolIndex, taskCount)"
  903. src="../assets/icon/secondToolList/24game.png"
  904. alt
  905. />
  906. <div style="margin: 5px 0">24点</div>
  907. </div>
  908. <div v-if="tooC == 39">
  909. <img
  910. @click="addTools(tooC, toolIndex, taskCount)"
  911. src="../assets/icon/secondToolList/GeoGebra.png"
  912. alt
  913. />
  914. <div style="margin: 5px 0">GeoGebra</div>
  915. </div>
  916. <div v-if="tooC == 32">
  917. <img
  918. @click="addTools(tooC, toolIndex, taskCount)"
  919. src="../assets/icon/thirdToolList/code.png"
  920. alt
  921. />
  922. <div style="margin: 5px 0">源码编辑</div>
  923. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  924. style="position: absolute;left: 110px;bottom: 30px;">
  925. 上传文件
  926. <input type="file" accept="*" style="display: none"
  927. @change="beforeUpload1($event, 7, toolIndex)" />
  928. </div> -->
  929. </div>
  930. <div v-if="tooC == 40">
  931. <img
  932. @click="addTools(tooC, toolIndex, taskCount)"
  933. src="../assets/icon/secondToolList/eval.png"
  934. alt
  935. />
  936. <div style="margin: 5px 0">个人评价</div>
  937. </div>
  938. <div v-if="tooC == 41">
  939. <img
  940. @click="addTools(tooC, toolIndex, taskCount)"
  941. src="../assets/icon/thirdToolList/select.png"
  942. alt
  943. />
  944. <div style="margin: 5px 0">选择填空</div>
  945. </div>
  946. <div v-if="tooC == 44">
  947. <img
  948. @click="addTools(tooC, toolIndex, taskCount)"
  949. src="../assets/icon/thirdToolList/hanClass.png"
  950. alt
  951. />
  952. <div style="margin: 5px 0">汉字宫</div>
  953. </div>
  954. <div v-if="tooC == 47">
  955. <img
  956. @click="addTools(tooC, toolIndex, taskCount)"
  957. src="../assets/icon/fourthToolList/conSentences.png"
  958. alt
  959. />
  960. <div style="margin: 5px 0">连词成句</div>
  961. </div>
  962. <div v-if="tooC == 48">
  963. <img
  964. @click="addTools(tooC, toolIndex, taskCount)"
  965. src="../assets/icon/fourthToolList/table.png"
  966. alt
  967. />
  968. <div style="margin: 5px 0">表格</div>
  969. </div>
  970. <div v-if="tooC == 52">
  971. <img
  972. @click="addTools(tooC, toolIndex, taskCount)"
  973. src="../assets/icon/fourthToolList/text.png"
  974. alt
  975. />
  976. <div style="margin: 5px 0">文档</div>
  977. </div>
  978. <div v-if="tooC == 49">
  979. <img
  980. @click="addTools(tooC, toolIndex, taskCount)"
  981. src="../assets/icon/fourthToolList/group.png"
  982. alt
  983. />
  984. <div style="margin: 5px 0">学生分组</div>
  985. </div>
  986. <div v-if="tooC == 57">
  987. <img
  988. @click="addTools(tooC, toolIndex, taskCount)"
  989. src="../assets/icon/fourthToolList/cocopi.png"
  990. alt
  991. />
  992. <div style="margin: 5px 0">CocoPi</div>
  993. </div>
  994. <div v-if="tooC == 58">
  995. <img
  996. @click="addTools(tooC, toolIndex, taskCount)"
  997. src="../assets/icon/fourthToolList/car.png"
  998. alt
  999. />
  1000. <div style="margin: 5px 0">模拟驾驶</div>
  1001. </div>
  1002. <div v-if="tooC == 59">
  1003. <img
  1004. @click="addTools(tooC, toolIndex, taskCount)"
  1005. src="../assets/icon/fourthToolList/lineSearch.png"
  1006. alt
  1007. />
  1008. <div style="margin: 5px 0">路径搜索</div>
  1009. </div>
  1010. <div v-if="tooC == 60">
  1011. <img
  1012. @click="addTools(tooC, toolIndex, taskCount)"
  1013. src="../assets/icon/fourthToolList/deepLearning.png"
  1014. alt
  1015. />
  1016. <div style="margin: 5px 0">深度学习</div>
  1017. </div>
  1018. <div v-if="tooC == 61">
  1019. <img
  1020. @click="addTools(tooC, toolIndex, taskCount)"
  1021. src="../assets/icon/fourthToolList/allHistory.png"
  1022. alt
  1023. />
  1024. <div style="margin: 5px 0">全历史</div>
  1025. </div>
  1026. </div>
  1027. </div>
  1028. </div>
  1029. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1030. <!-- <div class="toolTitle">工具描述</div> -->
  1031. <div v-html="contentConvent(tool.toolDetail)"></div>
  1032. </div>
  1033. <el-button
  1034. type="primary"
  1035. v-if="tool.tool[0] == 32"
  1036. style="
  1037. position: absolute;
  1038. right: 30px;
  1039. transform: translateY(-130%);
  1040. "
  1041. @click="addImg($event)"
  1042. >上传作业<input
  1043. type="file"
  1044. accept="*"
  1045. style="display: none"
  1046. @change="beforeUpload1($event, 7, toolIndex)"
  1047. /></el-button>
  1048. <el-button
  1049. type="primary"
  1050. v-if="tool.tool[0] == 57"
  1051. style="
  1052. position: absolute;
  1053. right: 30px;
  1054. transform: translateY(-130%);
  1055. "
  1056. @click="addImg($event)"
  1057. >上传作业<input
  1058. type="file"
  1059. accept="*"
  1060. style="display: none"
  1061. @change="beforeUpload1($event, 8, toolIndex)"
  1062. /></el-button>
  1063. </div>
  1064. <div
  1065. v-if="
  1066. tType &&
  1067. tType == 2 &&
  1068. !sIsOpen &&
  1069. tool.tool.indexOf(16) != -1
  1070. "
  1071. class="worksBox"
  1072. >
  1073. <div
  1074. class="zuoyeYulan"
  1075. v-if="workStudent[toolIndex].length > 0"
  1076. >
  1077. <span>作业预览</span>
  1078. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1079. </div>
  1080. <div
  1081. class="worksDetailBox"
  1082. v-if="workStudent[toolIndex].length > 0"
  1083. >
  1084. <div
  1085. class="works"
  1086. style="
  1087. width: 200px;
  1088. height: 140px;
  1089. margin: 10px 10px 10px 0;
  1090. box-shadow: 0 0 6px 1px #dfdada;
  1091. "
  1092. v-for="(w, wIndex) in workStudent[toolIndex]"
  1093. :key="wIndex"
  1094. >
  1095. <div class="workImg" v-if="w.type == 0">
  1096. <img
  1097. :src="w.works"
  1098. @click="previewImg(w.works)"
  1099. alt
  1100. />
  1101. <div
  1102. class="answerScore"
  1103. v-if="w.score"
  1104. @click.stop="openScore(w)"
  1105. :class="{
  1106. rightW:
  1107. w.userid == userid || tType == 1 || tType == 4,
  1108. }"
  1109. >
  1110. {{ JSON.parse(w.score).wScore }}分
  1111. </div>
  1112. <div
  1113. class="answerScore"
  1114. @click.stop="openScore(w)"
  1115. v-else-if="courseDetail.userid == userid"
  1116. :class="{
  1117. rightW:
  1118. w.userid == userid || tType == 1 || tType == 4,
  1119. }"
  1120. >
  1121. 评分
  1122. </div>
  1123. <img
  1124. class="deleteImg"
  1125. src="../assets/deleteworks.png"
  1126. v-if="
  1127. w.userid == userid || tType == 1 || tType == 4
  1128. "
  1129. @click.stop="deleteWorks(w.wid)"
  1130. alt
  1131. />
  1132. </div>
  1133. <div class="workImg" v-if="w.type == 1">
  1134. <img :src="word" @click="openFile(w.works)" alt />
  1135. <div
  1136. class="answerScore"
  1137. v-if="w.score"
  1138. @click.stop="openScore(w)"
  1139. :class="{
  1140. rightW:
  1141. w.userid == userid || tType == 1 || tType == 4,
  1142. }"
  1143. >
  1144. {{ JSON.parse(w.score).wScore }}分
  1145. </div>
  1146. <div
  1147. class="answerScore"
  1148. @click.stop="openScore(w)"
  1149. v-else-if="courseDetail.userid == userid"
  1150. :class="{
  1151. rightW:
  1152. w.userid == userid || tType == 1 || tType == 4,
  1153. }"
  1154. >
  1155. 评分
  1156. </div>
  1157. <img
  1158. class="deleteImg"
  1159. src="../assets/deleteworks.png"
  1160. v-if="
  1161. w.userid == userid || tType == 1 || tType == 4
  1162. "
  1163. @click.stop="deleteWorks(w.wid)"
  1164. alt
  1165. />
  1166. </div>
  1167. <div class="workImg" v-if="w.type == 3">
  1168. <img
  1169. style="cursor: pointer"
  1170. :src="video"
  1171. @click="openVideo(w)"
  1172. alt
  1173. />
  1174. <div
  1175. class="answerScore"
  1176. v-if="w.score"
  1177. @click.stop="openScore(w)"
  1178. :class="{
  1179. rightW:
  1180. w.userid == userid || tType == 1 || tType == 4,
  1181. }"
  1182. >
  1183. {{ JSON.parse(w.score).wScore }}分
  1184. </div>
  1185. <div
  1186. class="answerScore"
  1187. @click.stop="openScore(w)"
  1188. v-else-if="courseDetail.userid == userid"
  1189. :class="{
  1190. rightW:
  1191. w.userid == userid || tType == 1 || tType == 4,
  1192. }"
  1193. >
  1194. 评分
  1195. </div>
  1196. <img
  1197. class="deleteImg"
  1198. src="../assets/deleteworks.png"
  1199. v-if="
  1200. w.userid == userid || tType == 1 || tType == 4
  1201. "
  1202. @click.stop="deleteWorks(w.wid)"
  1203. alt
  1204. />
  1205. </div>
  1206. <div class="workImg" v-if="w.type == 12">
  1207. <img
  1208. style="cursor: pointer"
  1209. :src="word2"
  1210. @click="downloadFile(w.works)"
  1211. alt
  1212. />
  1213. <div
  1214. class="answerScore"
  1215. v-if="w.score"
  1216. @click.stop="openScore(w)"
  1217. :class="{
  1218. rightW:
  1219. w.userid == userid || tType == 1 || tType == 4,
  1220. }"
  1221. >
  1222. {{ JSON.parse(w.score).wScore }}分
  1223. </div>
  1224. <div
  1225. class="answerScore"
  1226. @click.stop="openScore(w)"
  1227. v-else-if="courseDetail.userid == userid"
  1228. :class="{
  1229. rightW:
  1230. w.userid == userid || tType == 1 || tType == 4,
  1231. }"
  1232. >
  1233. 评分
  1234. </div>
  1235. <img
  1236. class="deleteImg"
  1237. src="../assets/deleteworks.png"
  1238. v-if="
  1239. w.userid == userid || tType == 1 || tType == 4
  1240. "
  1241. @click.stop="deleteWorks(w.wid)"
  1242. alt
  1243. />
  1244. </div>
  1245. <div class="worksName">
  1246. <div>{{ w.sName }}</div>
  1247. </div>
  1248. </div>
  1249. </div>
  1250. </div>
  1251. <div
  1252. v-if="
  1253. tType &&
  1254. tType == 2 &&
  1255. !sIsOpen &&
  1256. tool.tool.indexOf(32) != -1
  1257. "
  1258. class="worksBox"
  1259. >
  1260. <div
  1261. class="zuoyeYulan"
  1262. v-if="workStudent[toolIndex].length > 0"
  1263. >
  1264. <span>作业预览</span>
  1265. </div>
  1266. <div
  1267. class="worksDetailBox"
  1268. v-if="workStudent[toolIndex].length > 0"
  1269. >
  1270. <div
  1271. class="works"
  1272. style="
  1273. width: 200px;
  1274. height: 140px;
  1275. margin: 10px 10px 10px 0;
  1276. box-shadow: 0 0 6px 1px #dfdada;
  1277. "
  1278. v-for="(w, wIndex) in workStudent[toolIndex]"
  1279. :key="wIndex"
  1280. >
  1281. <div class="workImg">
  1282. <img
  1283. :src="word2"
  1284. @click="downloadFile(w.works)"
  1285. alt
  1286. />
  1287. <div
  1288. class="answerScore"
  1289. v-if="w.score"
  1290. @click.stop="openScore(w)"
  1291. :class="{
  1292. rightW:
  1293. w.userid == userid || tType == 1 || tType == 4,
  1294. }"
  1295. >
  1296. {{ JSON.parse(w.score).wScore }}分
  1297. </div>
  1298. <div
  1299. class="answerScore"
  1300. @click.stop="openScore(w)"
  1301. v-else-if="courseDetail.userid == userid"
  1302. :class="{
  1303. rightW:
  1304. w.userid == userid || tType == 1 || tType == 4,
  1305. }"
  1306. >
  1307. 评分
  1308. </div>
  1309. <img
  1310. class="deleteImg"
  1311. src="../assets/deleteworks.png"
  1312. v-if="
  1313. w.userid == userid || tType == 1 || tType == 4
  1314. "
  1315. @click.stop="deleteWorks(w.wid)"
  1316. alt
  1317. />
  1318. </div>
  1319. <div class="worksName">
  1320. <div>{{ w.sName }}</div>
  1321. </div>
  1322. </div>
  1323. </div>
  1324. </div>
  1325. <div
  1326. v-if="
  1327. tType &&
  1328. tType == 2 &&
  1329. !sIsOpen &&
  1330. tool.tool.indexOf(57) != -1
  1331. "
  1332. class="worksBox"
  1333. >
  1334. <div
  1335. class="zuoyeYulan"
  1336. v-if="workStudent[toolIndex].length > 0"
  1337. >
  1338. <span>作业预览</span>
  1339. </div>
  1340. <div
  1341. class="worksDetailBox"
  1342. v-if="workStudent[toolIndex].length > 0"
  1343. >
  1344. <div
  1345. class="works"
  1346. style="
  1347. width: 200px;
  1348. height: 140px;
  1349. margin: 10px 10px 10px 0;
  1350. box-shadow: 0 0 6px 1px #dfdada;
  1351. "
  1352. v-for="(w, wIndex) in workStudent[toolIndex]"
  1353. :key="wIndex"
  1354. >
  1355. <div class="workImg">
  1356. <img
  1357. :src="word2"
  1358. @click="downloadFile(w.works)"
  1359. alt
  1360. />
  1361. <div
  1362. class="answerScore"
  1363. v-if="w.score"
  1364. @click.stop="openScore(w)"
  1365. :class="{
  1366. rightW:
  1367. w.userid == userid || tType == 1 || tType == 4,
  1368. }"
  1369. >
  1370. {{ JSON.parse(w.score).wScore }}分
  1371. </div>
  1372. <div
  1373. class="answerScore"
  1374. @click.stop="openScore(w)"
  1375. v-else-if="courseDetail.userid == userid"
  1376. :class="{
  1377. rightW:
  1378. w.userid == userid || tType == 1 || tType == 4,
  1379. }"
  1380. >
  1381. 评分
  1382. </div>
  1383. <img
  1384. class="deleteImg"
  1385. src="../assets/deleteworks.png"
  1386. v-if="
  1387. w.userid == userid || tType == 1 || tType == 4
  1388. "
  1389. @click.stop="deleteWorks(w.wid)"
  1390. alt
  1391. />
  1392. </div>
  1393. <div class="worksName">
  1394. <div>{{ w.sName }}</div>
  1395. </div>
  1396. </div>
  1397. </div>
  1398. </div>
  1399. <div
  1400. v-if="
  1401. tType &&
  1402. tType == 2 &&
  1403. !sIsOpen &&
  1404. tool.tool.indexOf(4) != -1
  1405. "
  1406. class="worksBox"
  1407. >
  1408. <div
  1409. class="zuoyeYulan"
  1410. v-if="workStudent[toolIndex].length > 0"
  1411. >
  1412. <span>作业预览</span>
  1413. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1414. </div>
  1415. <div
  1416. class="worksDetailBox"
  1417. v-if="workStudent[toolIndex].length > 0"
  1418. >
  1419. <div
  1420. class="isWorksName"
  1421. v-for="(w, wIndex) in workStudent[toolIndex]"
  1422. :key="wIndex"
  1423. @click="
  1424. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1425. "
  1426. >
  1427. {{ w.sName }}
  1428. <img
  1429. class="deleteImg deleteImg2"
  1430. src="../assets/deleteworks.png"
  1431. v-if="w.userid == userid || tType == 1 || tType == 4"
  1432. @click.stop="deleteWorks(w.wid)"
  1433. alt
  1434. />
  1435. </div>
  1436. <!-- <div
  1437. class="works"
  1438. style="
  1439. width: 200px;
  1440. height: 140px;
  1441. border-radius: 10px;
  1442. box-shadow: 0 0 6px 1px #dfdada;
  1443. overflow: hidden;
  1444. "
  1445. v-for="(w, wIndex) in workStudent[toolIndex]"
  1446. :key="wIndex"
  1447. >
  1448. <div class="workImg">
  1449. <img
  1450. src="../assets/icon/works/noImg.png"
  1451. @click="
  1452. openTools(
  1453. 4,
  1454. toolIndex,
  1455. taskCount,
  1456. w.works,
  1457. w.sName
  1458. )
  1459. "
  1460. alt
  1461. />
  1462. </div>
  1463. <div class="worksName">
  1464. <div>{{ w.sName }}</div>
  1465. <div>{{ w.time }}</div>
  1466. </div>
  1467. </div> -->
  1468. </div>
  1469. </div>
  1470. <div
  1471. v-if="
  1472. tType &&
  1473. tType == 2 &&
  1474. !sIsOpen &&
  1475. tool.tool.indexOf(45) != -1
  1476. "
  1477. class="worksBox"
  1478. >
  1479. <div
  1480. class="zuoyeYulan"
  1481. v-if="workStudent[toolIndex].length > 0"
  1482. >
  1483. <span>作业预览</span>
  1484. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1485. </div>
  1486. <div
  1487. class="worksDetailBox"
  1488. v-if="workStudent[toolIndex].length > 0"
  1489. >
  1490. <div
  1491. class="isWorksName"
  1492. v-for="(w, wIndex) in workStudent[toolIndex]"
  1493. :key="wIndex"
  1494. @click="
  1495. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1496. "
  1497. >
  1498. {{ w.sName }}
  1499. <img
  1500. class="deleteImg deleteImg2"
  1501. src="../assets/deleteworks.png"
  1502. v-if="w.userid == userid || tType == 1 || tType == 4"
  1503. @click.stop="deleteWorks(w.wid)"
  1504. alt
  1505. />
  1506. </div>
  1507. </div>
  1508. </div>
  1509. <div
  1510. v-if="
  1511. tType &&
  1512. tType == 2 &&
  1513. !sIsOpen &&
  1514. tool.tool.indexOf(15) != -1
  1515. "
  1516. class="worksBox"
  1517. >
  1518. <div
  1519. class="zuoyeYulan"
  1520. v-if="workStudent[toolIndex].length > 0"
  1521. >
  1522. <span>作业预览</span>
  1523. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1524. </div>
  1525. <div
  1526. class="worksDetailBox"
  1527. v-if="workStudent[toolIndex].length > 0"
  1528. >
  1529. <div
  1530. class="works"
  1531. v-for="(w, wIndex) in workStudent[toolIndex]"
  1532. :key="wIndex"
  1533. >
  1534. <div class="workImg">
  1535. <!-- <img
  1536. src="../assets/icon/works/noImg.png"
  1537. @click="openTools(15, toolIndex, taskCount, w.works)"
  1538. alt=""
  1539. />-->
  1540. <div class="answerBg">
  1541. <!-- <div>{{ w.sName }}</div> -->
  1542. <el-tooltip
  1543. class="item"
  1544. effect="light"
  1545. :content="JSON.parse(w.works)[0].answer"
  1546. placement="top"
  1547. >
  1548. <div class="answerContent">
  1549. {{ JSON.parse(w.works)[0].answer }}
  1550. </div>
  1551. </el-tooltip>
  1552. <div
  1553. class="answerScore"
  1554. v-if="w.score"
  1555. @click.stop="openScore(w)"
  1556. :class="{
  1557. rightW:
  1558. w.userid == userid ||
  1559. tType == 1 ||
  1560. tType == 4,
  1561. }"
  1562. >
  1563. {{ JSON.parse(w.score).wScore }}分
  1564. </div>
  1565. <div
  1566. class="answerScore"
  1567. @click.stop="openScore(w)"
  1568. v-else-if="courseDetail.userid == userid"
  1569. :class="{
  1570. rightW:
  1571. w.userid == userid ||
  1572. tType == 1 ||
  1573. tType == 4,
  1574. }"
  1575. >
  1576. 评分
  1577. </div>
  1578. <img
  1579. class="deleteImg"
  1580. src="../assets/deleteworks.png"
  1581. v-if="
  1582. w.userid == userid || tType == 1 || tType == 4
  1583. "
  1584. @click.stop="deleteWorks(w.wid)"
  1585. alt
  1586. />
  1587. </div>
  1588. <div class="comment">
  1589. <div class="worksName">
  1590. <div>{{ w.sName }}</div>
  1591. </div>
  1592. </div>
  1593. </div>
  1594. </div>
  1595. </div>
  1596. </div>
  1597. <div
  1598. v-if="
  1599. tType &&
  1600. tType == 2 &&
  1601. !sIsOpen &&
  1602. tool.tool.indexOf(1) != -1
  1603. "
  1604. class="worksBox"
  1605. >
  1606. <div
  1607. class="zuoyeYulan"
  1608. v-if="workStudent[toolIndex].length > 0"
  1609. >
  1610. <span>作业预览</span>
  1611. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1612. </div>
  1613. <div
  1614. class="worksDetailBox"
  1615. v-if="workStudent[toolIndex].length > 0"
  1616. >
  1617. <div
  1618. class="works"
  1619. style="
  1620. width: 200px;
  1621. height: 140px;
  1622. margin: 10px 10px 10px 0;
  1623. box-shadow: 0 0 6px 1px #dfdada;
  1624. "
  1625. v-for="(w, wIndex) in workStudent[toolIndex]"
  1626. :key="wIndex"
  1627. >
  1628. <div class="workImg">
  1629. <img
  1630. :src="w.works"
  1631. @click="previewImg(w.works)"
  1632. alt
  1633. />
  1634. <div
  1635. class="answerScore"
  1636. v-if="w.score"
  1637. @click.stop="openScore(w)"
  1638. :class="{
  1639. rightW:
  1640. w.userid == userid || tType == 1 || tType == 4,
  1641. }"
  1642. >
  1643. {{ JSON.parse(w.score).wScore }}分
  1644. </div>
  1645. <div
  1646. class="answerScore"
  1647. @click.stop="openScore(w)"
  1648. v-else-if="courseDetail.userid == userid"
  1649. :class="{
  1650. rightW:
  1651. w.userid == userid || tType == 1 || tType == 4,
  1652. }"
  1653. >
  1654. 评分
  1655. </div>
  1656. <img
  1657. class="deleteImg"
  1658. src="../assets/deleteworks.png"
  1659. v-if="
  1660. w.userid == userid || tType == 1 || tType == 4
  1661. "
  1662. @click.stop="deleteWorks(w.wid)"
  1663. alt
  1664. />
  1665. </div>
  1666. <div class="worksName">
  1667. <div>{{ w.sName }}</div>
  1668. </div>
  1669. </div>
  1670. </div>
  1671. </div>
  1672. <div
  1673. v-if="
  1674. tType &&
  1675. tType == 2 &&
  1676. !sIsOpen &&
  1677. tool.tool.indexOf(3) != -1
  1678. "
  1679. class="worksBox"
  1680. >
  1681. <div
  1682. class="zuoyeYulan"
  1683. v-if="workStudent[toolIndex].length > 0"
  1684. >
  1685. <span>作业预览</span>
  1686. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1687. </div>
  1688. <div
  1689. class="worksDetailBox"
  1690. v-if="workStudent[toolIndex].length > 0"
  1691. >
  1692. <div
  1693. class="works"
  1694. style="
  1695. width: 200px;
  1696. height: 140px;
  1697. margin: 10px 10px 10px 0;
  1698. box-shadow: 0 0 6px 1px #dfdada;
  1699. "
  1700. v-for="(w, wIndex) in workStudent[toolIndex]"
  1701. :key="wIndex"
  1702. >
  1703. <div class="workImg">
  1704. <img
  1705. :src="w.works"
  1706. @click="previewImg(w.works)"
  1707. alt
  1708. />
  1709. <div
  1710. class="answerScore"
  1711. v-if="w.score"
  1712. @click.stop="openScore(w)"
  1713. :class="{
  1714. rightW:
  1715. w.userid == userid || tType == 1 || tType == 4,
  1716. }"
  1717. >
  1718. {{ JSON.parse(w.score).wScore }}分
  1719. </div>
  1720. <div
  1721. class="answerScore"
  1722. @click.stop="openScore(w)"
  1723. v-else-if="courseDetail.userid == userid"
  1724. :class="{
  1725. rightW:
  1726. w.userid == userid || tType == 1 || tType == 4,
  1727. }"
  1728. >
  1729. 评分
  1730. </div>
  1731. <img
  1732. class="deleteImg"
  1733. src="../assets/deleteworks.png"
  1734. v-if="
  1735. w.userid == userid || tType == 1 || tType == 4
  1736. "
  1737. @click.stop="deleteWorks(w.wid)"
  1738. alt
  1739. />
  1740. </div>
  1741. <div class="worksName">
  1742. <div>{{ w.sName }}</div>
  1743. </div>
  1744. </div>
  1745. </div>
  1746. </div>
  1747. <div
  1748. v-if="
  1749. tType &&
  1750. tType == 2 &&
  1751. !sIsOpen &&
  1752. tool.tool.indexOf(6) != -1
  1753. "
  1754. class="worksBox"
  1755. >
  1756. <div
  1757. class="zuoyeYulan"
  1758. v-if="workStudent[toolIndex].length > 0"
  1759. >
  1760. <span>作业预览</span>
  1761. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1762. </div>
  1763. <div
  1764. class="worksDetailBox"
  1765. v-if="workStudent[toolIndex].length > 0"
  1766. >
  1767. <div
  1768. class="works"
  1769. style="
  1770. width: 200px;
  1771. height: 140px;
  1772. margin: 10px 10px 10px 0;
  1773. box-shadow: 0 0 6px 1px #dfdada;
  1774. "
  1775. v-for="(w, wIndex) in workStudent[toolIndex]"
  1776. :key="wIndex"
  1777. >
  1778. <div class="workImg">
  1779. <img
  1780. :src="w.works"
  1781. @click="previewImg(w.works)"
  1782. alt
  1783. />
  1784. <div
  1785. class="answerScore"
  1786. v-if="w.score"
  1787. @click.stop="openScore(w)"
  1788. :class="{
  1789. rightW:
  1790. w.userid == userid || tType == 1 || tType == 4,
  1791. }"
  1792. >
  1793. {{ JSON.parse(w.score).wScore }}分
  1794. </div>
  1795. <div
  1796. class="answerScore"
  1797. @click.stop="openScore(w)"
  1798. v-else-if="courseDetail.userid == userid"
  1799. :class="{
  1800. rightW:
  1801. w.userid == userid || tType == 1 || tType == 4,
  1802. }"
  1803. >
  1804. 评分
  1805. </div>
  1806. <img
  1807. class="deleteImg"
  1808. src="../assets/deleteworks.png"
  1809. v-if="
  1810. w.userid == userid || tType == 1 || tType == 4
  1811. "
  1812. @click.stop="deleteWorks(w.wid)"
  1813. alt
  1814. />
  1815. </div>
  1816. <div class="worksName">
  1817. <div>{{ w.sName }}</div>
  1818. </div>
  1819. </div>
  1820. </div>
  1821. </div>
  1822. <div
  1823. v-if="
  1824. tType &&
  1825. tType == 2 &&
  1826. !sIsOpen &&
  1827. tool.tool.indexOf(7) != -1
  1828. "
  1829. class="worksBox"
  1830. >
  1831. <div
  1832. class="zuoyeYulan"
  1833. v-if="workStudent[toolIndex].length > 0"
  1834. >
  1835. <span>作业预览</span>
  1836. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1837. </div>
  1838. <div
  1839. class="worksDetailBox"
  1840. v-if="workStudent[toolIndex].length > 0"
  1841. >
  1842. <div
  1843. class="works"
  1844. style="
  1845. width: 200px;
  1846. height: 140px;
  1847. margin: 10px 10px 10px 0;
  1848. box-shadow: 0 0 6px 1px #dfdada;
  1849. "
  1850. v-for="(w, wIndex) in workStudent[toolIndex]"
  1851. :key="wIndex"
  1852. >
  1853. <div class="workImg">
  1854. <img
  1855. :src="w.works"
  1856. @click="previewImg(w.works)"
  1857. alt
  1858. />
  1859. <div
  1860. class="answerScore"
  1861. v-if="w.score"
  1862. @click.stop="openScore(w)"
  1863. :class="{
  1864. rightW:
  1865. w.userid == userid || tType == 1 || tType == 4,
  1866. }"
  1867. >
  1868. {{ JSON.parse(w.score).wScore }}分
  1869. </div>
  1870. <div
  1871. class="answerScore"
  1872. @click.stop="openScore(w)"
  1873. v-else-if="courseDetail.userid == userid"
  1874. :class="{
  1875. rightW:
  1876. w.userid == userid || tType == 1 || tType == 4,
  1877. }"
  1878. >
  1879. 评分
  1880. </div>
  1881. <img
  1882. class="deleteImg"
  1883. src="../assets/deleteworks.png"
  1884. v-if="
  1885. w.userid == userid || tType == 1 || tType == 4
  1886. "
  1887. @click.stop="deleteWorks(w.wid)"
  1888. alt
  1889. />
  1890. </div>
  1891. <div class="worksName">
  1892. <div>{{ w.sName }}</div>
  1893. </div>
  1894. </div>
  1895. </div>
  1896. </div>
  1897. <div
  1898. v-if="
  1899. tType &&
  1900. tType == 2 &&
  1901. !sIsOpen &&
  1902. tool.tool.indexOf(26) != -1
  1903. "
  1904. class="worksBox"
  1905. >
  1906. <div
  1907. class="zuoyeYulan"
  1908. v-if="workStudent[toolIndex].length > 0"
  1909. >
  1910. <span>作业预览</span>
  1911. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1912. </div>
  1913. <div
  1914. class="worksDetailBox"
  1915. v-if="workStudent[toolIndex].length > 0"
  1916. >
  1917. <div
  1918. class="works"
  1919. style="
  1920. width: 200px;
  1921. height: 140px;
  1922. margin: 10px 10px 10px 0;
  1923. box-shadow: 0 0 6px 1px #dfdada;
  1924. "
  1925. v-for="(w, wIndex) in workStudent[toolIndex]"
  1926. :key="wIndex"
  1927. >
  1928. <div class="workImg">
  1929. <img
  1930. :src="w.works"
  1931. @click="previewImg(w.works)"
  1932. alt
  1933. />
  1934. <img
  1935. class="deleteImg"
  1936. src="../assets/deleteworks.png"
  1937. v-if="
  1938. w.userid == userid || tType == 1 || tType == 4
  1939. "
  1940. @click.stop="deleteWorks(w.wid)"
  1941. alt
  1942. />
  1943. </div>
  1944. <div class="worksName">
  1945. <div>{{ w.sName }}</div>
  1946. </div>
  1947. </div>
  1948. </div>
  1949. </div>
  1950. <div
  1951. v-if="
  1952. tType &&
  1953. ((tType == 2 && sIsOpen == true) ||
  1954. tType == 1 ||
  1955. tType == 4) &&
  1956. tool.tool.indexOf(16) != -1
  1957. "
  1958. class="worksBox"
  1959. >
  1960. <div
  1961. class="zuoyeYulan"
  1962. v-if="
  1963. worksStudent.length &&
  1964. worksStudent[toolIndex].length > 0
  1965. "
  1966. >
  1967. <div class="worksTop">
  1968. <div>作业预览</div>
  1969. <div
  1970. class="corOpen"
  1971. @click="contract(toolIndex)"
  1972. v-if="
  1973. worksStudent[toolIndex].length > 6 &&
  1974. isCloseList[toolIndex].isClose == 0
  1975. "
  1976. >
  1977. 收缩
  1978. </div>
  1979. <div
  1980. class="corOpen"
  1981. @click="contract(toolIndex)"
  1982. v-if="isCloseList[toolIndex].isClose == 1"
  1983. >
  1984. 展开
  1985. </div>
  1986. </div>
  1987. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1988. </div>
  1989. <div
  1990. class="group_workBox"
  1991. v-for="(g, gindex) in courseGroup.group"
  1992. :key="gindex"
  1993. >
  1994. <div class="group_box">
  1995. <div class="group_title">
  1996. <el-tooltip
  1997. class="item"
  1998. effect="light"
  1999. :content="g.name"
  2000. placement="top"
  2001. >
  2002. <div class="group_name">{{ g.name }}</div>
  2003. </el-tooltip>
  2004. </div>
  2005. <div
  2006. class="group_work"
  2007. v-if="
  2008. g.works &&
  2009. g.works.length &&
  2010. g.works[toolIndex].length
  2011. "
  2012. >
  2013. <div
  2014. class="works"
  2015. style="
  2016. width: 200px;
  2017. height: 140px;
  2018. margin: 10px 10px 10px 0;
  2019. border-radius: 15px;
  2020. box-shadow: 0 0 6px 1px #dfdada;
  2021. "
  2022. v-for="(w, wIndex) in g.works[toolIndex]"
  2023. :key="wIndex"
  2024. :class="w.type == 1 ? 'isTypeOne' : ''"
  2025. >
  2026. <div class="workImg" v-if="w.type == 0">
  2027. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2028. <img
  2029. :src="w.works"
  2030. @click="previewImg(w.works)"
  2031. alt
  2032. />
  2033. <div
  2034. class="answerScore"
  2035. v-if="w.score"
  2036. @click.stop="openScore(w)"
  2037. :class="{
  2038. rightW:
  2039. w.userid == userid ||
  2040. tType == 1 ||
  2041. tType == 4 ||
  2042. w.ateacher == userid,
  2043. }"
  2044. >
  2045. {{ JSON.parse(w.score).wScore }}分
  2046. </div>
  2047. <div
  2048. class="answerScore"
  2049. @click.stop="openScore(w)"
  2050. v-else-if="courseDetail.userid == userid"
  2051. :class="{
  2052. rightW:
  2053. w.userid == userid ||
  2054. tType == 1 ||
  2055. tType == 4 ||
  2056. w.ateacher == userid,
  2057. }"
  2058. >
  2059. 评分
  2060. </div>
  2061. <img
  2062. class="deleteImg"
  2063. src="../assets/deleteworks.png"
  2064. v-if="
  2065. w.userid == userid || tType == 1 || tType == 4
  2066. "
  2067. @click.stop="deleteWorks(w.wid)"
  2068. alt
  2069. />
  2070. </div>
  2071. <div class="workImg" v-if="w.type == 1">
  2072. <img :src="word" @click="openFile(w.works)" alt />
  2073. <!-- @click="openFile(w.works)" -->
  2074. <div
  2075. class="answerScore"
  2076. v-if="w.score"
  2077. @click.stop="openScore(w)"
  2078. :class="{
  2079. rightW:
  2080. w.userid == userid ||
  2081. tType == 1 ||
  2082. tType == 4 ||
  2083. w.ateacher == userid,
  2084. }"
  2085. >
  2086. {{ JSON.parse(w.score).wScore }}分
  2087. </div>
  2088. <div
  2089. class="answerScore"
  2090. @click.stop="openScore(w)"
  2091. v-else-if="courseDetail.userid == userid"
  2092. :class="{
  2093. rightW:
  2094. w.userid == userid ||
  2095. tType == 1 ||
  2096. tType == 4 ||
  2097. w.ateacher == userid,
  2098. }"
  2099. >
  2100. 评分
  2101. </div>
  2102. <img
  2103. class="deleteImg"
  2104. src="../assets/deleteworks.png"
  2105. v-if="
  2106. w.userid == userid || tType == 1 || tType == 4
  2107. "
  2108. @click.stop="deleteWorks(w.wid)"
  2109. alt
  2110. />
  2111. </div>
  2112. <div class="workImg" v-if="w.type == 3">
  2113. <img
  2114. style="cursor: pointer"
  2115. :src="video"
  2116. @click="openVideo(w)"
  2117. alt
  2118. />
  2119. <!-- @click="openVideo(w.works)" -->
  2120. <div
  2121. class="answerScore"
  2122. v-if="w.score"
  2123. @click.stop="openScore(w)"
  2124. :class="{
  2125. rightW:
  2126. w.userid == userid ||
  2127. tType == 1 ||
  2128. tType == 4 ||
  2129. w.ateacher == userid,
  2130. }"
  2131. >
  2132. {{ JSON.parse(w.score).wScore }}分
  2133. </div>
  2134. <div
  2135. class="answerScore"
  2136. @click.stop="openScore(w)"
  2137. v-else-if="courseDetail.userid == userid"
  2138. :class="{
  2139. rightW:
  2140. w.userid == userid ||
  2141. tType == 1 ||
  2142. tType == 4 ||
  2143. w.ateacher == userid,
  2144. }"
  2145. >
  2146. 评分
  2147. </div>
  2148. <img
  2149. class="deleteImg"
  2150. src="../assets/deleteworks.png"
  2151. v-if="
  2152. w.userid == userid || tType == 1 || tType == 4
  2153. "
  2154. @click.stop="deleteWorks(w.wid)"
  2155. alt
  2156. />
  2157. </div>
  2158. <div class="workImg" v-if="w.type == 12">
  2159. <img
  2160. style="cursor: pointer"
  2161. :src="word2"
  2162. @click="downloadFile(w.works)"
  2163. alt
  2164. />
  2165. <!-- @click="openVideo(w.works)" -->
  2166. <div
  2167. class="answerScore"
  2168. v-if="w.score"
  2169. @click.stop="openScore(w)"
  2170. :class="{
  2171. rightW:
  2172. w.userid == userid ||
  2173. tType == 1 ||
  2174. tType == 4 ||
  2175. w.ateacher == userid,
  2176. }"
  2177. >
  2178. {{ JSON.parse(w.score).wScore }}分
  2179. </div>
  2180. <div
  2181. class="answerScore"
  2182. @click.stop="openScore(w)"
  2183. v-else-if="courseDetail.userid == userid"
  2184. :class="{
  2185. rightW:
  2186. w.userid == userid ||
  2187. tType == 1 ||
  2188. tType == 4 ||
  2189. w.ateacher == userid,
  2190. }"
  2191. >
  2192. 评分
  2193. </div>
  2194. <img
  2195. class="deleteImg"
  2196. src="../assets/deleteworks.png"
  2197. v-if="
  2198. w.userid == userid || tType == 1 || tType == 4
  2199. "
  2200. @click.stop="deleteWorks(w.wid)"
  2201. alt
  2202. />
  2203. </div>
  2204. <div class="comment" style="min-width: 200px">
  2205. <div class="worksName">
  2206. <div>{{ w.sName }}</div>
  2207. </div>
  2208. <div class="commentList">
  2209. <div class="commentList">
  2210. <div
  2211. class="commentImg"
  2212. @click="
  2213. isLikes(w.wid, userid, 1, null, w.isLikes)
  2214. "
  2215. >
  2216. <img
  2217. :src="w.isLikes == true ? likes : noLikes"
  2218. alt=""
  2219. />
  2220. </div>
  2221. <div>{{ w.likesCount }}</div>
  2222. </div>
  2223. <div
  2224. class="commentList"
  2225. style="margin-right: 15px"
  2226. >
  2227. <div
  2228. class="commentImg"
  2229. @click="
  2230. commentOther(
  2231. w,
  2232. toolIndex,
  2233. wIndex,
  2234. null,
  2235. g.id
  2236. )
  2237. "
  2238. >
  2239. <img
  2240. src="../assets/icon/comment/comment.png"
  2241. alt=""
  2242. />
  2243. </div>
  2244. <div>{{ w.commentCount }}</div>
  2245. </div>
  2246. </div>
  2247. </div>
  2248. </div>
  2249. </div>
  2250. <div class="group_work" v-else>暂无提交作业</div>
  2251. </div>
  2252. </div>
  2253. <div
  2254. class="worksDetailBox"
  2255. v-if="
  2256. worksStudent.length &&
  2257. worksStudent[toolIndex].length > 0
  2258. "
  2259. >
  2260. <div
  2261. class="works"
  2262. style="
  2263. width: 200px;
  2264. height: 140px;
  2265. margin: 10px 10px 10px 0;
  2266. border-radius: 15px;
  2267. box-shadow: 0 0 6px 1px #dfdada;
  2268. "
  2269. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2270. 0
  2271. ? worksStudent[toolIndex]
  2272. : worksStudent[toolIndex].slice(0, 6)"
  2273. :key="wIndex"
  2274. :class="w.type == 1 ? 'isTypeOne' : ''"
  2275. >
  2276. <div class="workImg" v-if="w.type == 0">
  2277. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2278. <img
  2279. :src="w.works"
  2280. @click="previewImg(w.works)"
  2281. alt
  2282. />
  2283. <div
  2284. class="answerScore"
  2285. v-if="w.score"
  2286. @click.stop="openScore(w)"
  2287. :class="{
  2288. rightW:
  2289. w.userid == userid ||
  2290. tType == 1 ||
  2291. tType == 4 ||
  2292. w.ateacher == userid,
  2293. }"
  2294. >
  2295. {{ JSON.parse(w.score).wScore }}分
  2296. </div>
  2297. <div
  2298. class="answerScore"
  2299. @click.stop="openScore(w)"
  2300. v-else-if="courseDetail.userid == userid"
  2301. :class="{
  2302. rightW:
  2303. w.userid == userid ||
  2304. tType == 1 ||
  2305. tType == 4 ||
  2306. w.ateacher == userid,
  2307. }"
  2308. >
  2309. 评分
  2310. </div>
  2311. <img
  2312. class="deleteImg"
  2313. src="../assets/deleteworks.png"
  2314. v-if="
  2315. w.userid == userid || tType == 1 || tType == 4
  2316. "
  2317. @click.stop="deleteWorks(w.wid)"
  2318. alt
  2319. />
  2320. </div>
  2321. <div class="workImg" v-if="w.type == 1">
  2322. <img :src="word" @click="openFile(w.works)" alt />
  2323. <!-- @click="openFile(w.works)" -->
  2324. <div
  2325. class="answerScore"
  2326. v-if="w.score"
  2327. @click.stop="openScore(w)"
  2328. :class="{
  2329. rightW:
  2330. w.userid == userid ||
  2331. tType == 1 ||
  2332. tType == 4 ||
  2333. w.ateacher == userid,
  2334. }"
  2335. >
  2336. {{ JSON.parse(w.score).wScore }}分
  2337. </div>
  2338. <div
  2339. class="answerScore"
  2340. @click.stop="openScore(w)"
  2341. v-else-if="courseDetail.userid == userid"
  2342. :class="{
  2343. rightW:
  2344. w.userid == userid ||
  2345. tType == 1 ||
  2346. tType == 4 ||
  2347. w.ateacher == userid,
  2348. }"
  2349. >
  2350. 评分
  2351. </div>
  2352. <img
  2353. class="deleteImg"
  2354. src="../assets/deleteworks.png"
  2355. v-if="
  2356. w.userid == userid || tType == 1 || tType == 4
  2357. "
  2358. @click.stop="deleteWorks(w.wid)"
  2359. alt
  2360. />
  2361. </div>
  2362. <div class="workImg" v-if="w.type == 3">
  2363. <img
  2364. style="cursor: pointer"
  2365. :src="video"
  2366. @click="openVideo(w)"
  2367. alt
  2368. />
  2369. <!-- @click="openVideo(w.works)" -->
  2370. <div
  2371. class="answerScore"
  2372. v-if="w.score"
  2373. @click.stop="openScore(w)"
  2374. :class="{
  2375. rightW:
  2376. w.userid == userid ||
  2377. tType == 1 ||
  2378. tType == 4 ||
  2379. w.ateacher == userid,
  2380. }"
  2381. >
  2382. {{ JSON.parse(w.score).wScore }}分
  2383. </div>
  2384. <div
  2385. class="answerScore"
  2386. @click.stop="openScore(w)"
  2387. v-else-if="courseDetail.userid == userid"
  2388. :class="{
  2389. rightW:
  2390. w.userid == userid ||
  2391. tType == 1 ||
  2392. tType == 4 ||
  2393. w.ateacher == userid,
  2394. }"
  2395. >
  2396. 评分
  2397. </div>
  2398. <img
  2399. class="deleteImg"
  2400. src="../assets/deleteworks.png"
  2401. v-if="
  2402. w.userid == userid || tType == 1 || tType == 4
  2403. "
  2404. @click.stop="deleteWorks(w.wid)"
  2405. alt
  2406. />
  2407. </div>
  2408. <div class="workImg" v-if="w.type == 12">
  2409. <img
  2410. style="cursor: pointer"
  2411. :src="word2"
  2412. @click="downloadFile(w.works)"
  2413. alt
  2414. />
  2415. <!-- @click="openVideo(w.works)" -->
  2416. <div
  2417. class="answerScore"
  2418. v-if="w.score"
  2419. @click.stop="openScore(w)"
  2420. :class="{
  2421. rightW:
  2422. w.userid == userid ||
  2423. tType == 1 ||
  2424. tType == 4 ||
  2425. w.ateacher == userid,
  2426. }"
  2427. >
  2428. {{ JSON.parse(w.score).wScore }}分
  2429. </div>
  2430. <div
  2431. class="answerScore"
  2432. @click.stop="openScore(w)"
  2433. v-else-if="courseDetail.userid == userid"
  2434. :class="{
  2435. rightW:
  2436. w.userid == userid ||
  2437. tType == 1 ||
  2438. tType == 4 ||
  2439. w.ateacher == userid,
  2440. }"
  2441. >
  2442. 评分
  2443. </div>
  2444. <img
  2445. class="deleteImg"
  2446. src="../assets/deleteworks.png"
  2447. v-if="
  2448. w.userid == userid || tType == 1 || tType == 4
  2449. "
  2450. @click.stop="deleteWorks(w.wid)"
  2451. alt
  2452. />
  2453. </div>
  2454. <div class="comment" style="min-width: 200px">
  2455. <div class="worksName">
  2456. <div>{{ w.sName }}</div>
  2457. </div>
  2458. <div class="commentList">
  2459. <div class="commentList">
  2460. <div
  2461. class="commentImg"
  2462. @click="
  2463. isLikes(w.wid, userid, 1, null, w.isLikes)
  2464. "
  2465. >
  2466. <img
  2467. :src="w.isLikes == true ? likes : noLikes"
  2468. alt=""
  2469. />
  2470. </div>
  2471. <div>{{ w.likesCount }}</div>
  2472. </div>
  2473. <div class="commentList" style="margin-right: 15px">
  2474. <div
  2475. class="commentImg"
  2476. @click="commentOther(w, toolIndex, wIndex)"
  2477. >
  2478. <img
  2479. src="../assets/icon/comment/comment.png"
  2480. alt=""
  2481. />
  2482. </div>
  2483. <div>{{ w.commentCount }}</div>
  2484. </div>
  2485. </div>
  2486. </div>
  2487. </div>
  2488. </div>
  2489. <div style="font-size: 18px">未提交</div>
  2490. <div class="noWorksS">
  2491. <div
  2492. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2493. :key="sIndex"
  2494. class="noWorksName"
  2495. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2496. >
  2497. {{ s.student }}
  2498. </div>
  2499. </div>
  2500. </div>
  2501. <div
  2502. v-if="
  2503. tType &&
  2504. ((tType == 2 && sIsOpen == true) ||
  2505. tType == 1 ||
  2506. tType == 4) &&
  2507. tool.tool.indexOf(32) != -1
  2508. "
  2509. class="worksBox"
  2510. >
  2511. <div
  2512. class="zuoyeYulan"
  2513. v-if="
  2514. worksStudent.length &&
  2515. worksStudent[toolIndex].length > 0
  2516. "
  2517. >
  2518. <div class="worksTop">
  2519. <div>作业预览</div>
  2520. <div
  2521. class="corOpen"
  2522. @click="contract(toolIndex)"
  2523. v-if="
  2524. worksStudent[toolIndex].length > 6 &&
  2525. isCloseList[toolIndex].isClose == 0
  2526. "
  2527. >
  2528. 收缩
  2529. </div>
  2530. <div
  2531. class="corOpen"
  2532. @click="contract(toolIndex)"
  2533. v-if="isCloseList[toolIndex].isClose == 1"
  2534. >
  2535. 展开
  2536. </div>
  2537. </div>
  2538. </div>
  2539. <div
  2540. class="worksDetailBox"
  2541. v-if="
  2542. worksStudent.length &&
  2543. worksStudent[toolIndex].length > 0
  2544. "
  2545. >
  2546. <div
  2547. class="works"
  2548. style="
  2549. width: 200px;
  2550. height: 140px;
  2551. margin: 10px 10px 10px 0;
  2552. border-radius: 15px;
  2553. box-shadow: 0 0 6px 1px #dfdada;
  2554. "
  2555. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2556. 0
  2557. ? worksStudent[toolIndex]
  2558. : worksStudent[toolIndex].slice(0, 6)"
  2559. :key="wIndex"
  2560. :class="w.type == 1 ? 'isTypeOne' : ''"
  2561. >
  2562. <div class="workImg">
  2563. <img
  2564. :src="word2"
  2565. @click="downloadFile(w.works)"
  2566. alt
  2567. />
  2568. <div
  2569. class="answerScore"
  2570. v-if="w.score"
  2571. @click.stop="openScore(w)"
  2572. :class="{
  2573. rightW:
  2574. w.userid == userid ||
  2575. tType == 1 ||
  2576. tType == 4 ||
  2577. w.ateacher == userid,
  2578. }"
  2579. >
  2580. {{ JSON.parse(w.score).wScore }}分
  2581. </div>
  2582. <div
  2583. class="answerScore"
  2584. @click.stop="openScore(w)"
  2585. v-else-if="courseDetail.userid == userid"
  2586. :class="{
  2587. rightW:
  2588. w.userid == userid ||
  2589. tType == 1 ||
  2590. tType == 4 ||
  2591. w.ateacher == userid,
  2592. }"
  2593. >
  2594. 评分
  2595. </div>
  2596. <img
  2597. class="deleteImg"
  2598. src="../assets/deleteworks.png"
  2599. v-if="
  2600. w.userid == userid || tType == 1 || tType == 4
  2601. "
  2602. @click.stop="deleteWorks(w.wid)"
  2603. alt
  2604. />
  2605. </div>
  2606. <div class="comment" style="min-width: 200px">
  2607. <div class="worksName">
  2608. <div>{{ w.sName }}</div>
  2609. </div>
  2610. <div class="commentList">
  2611. <div class="commentList">
  2612. <div
  2613. class="commentImg"
  2614. @click="
  2615. isLikes(w.wid, userid, 1, null, w.isLikes)
  2616. "
  2617. >
  2618. <img
  2619. :src="w.isLikes == true ? likes : noLikes"
  2620. alt=""
  2621. />
  2622. </div>
  2623. <div>{{ w.likesCount }}</div>
  2624. </div>
  2625. <div class="commentList" style="margin-right: 15px">
  2626. <div
  2627. class="commentImg"
  2628. @click="commentOther(w, toolIndex, wIndex)"
  2629. >
  2630. <img
  2631. src="../assets/icon/comment/comment.png"
  2632. alt=""
  2633. />
  2634. </div>
  2635. <div>{{ w.commentCount }}</div>
  2636. </div>
  2637. </div>
  2638. </div>
  2639. </div>
  2640. </div>
  2641. <div style="font-size: 18px">未提交</div>
  2642. <div class="noWorksS">
  2643. <div
  2644. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2645. :key="sIndex"
  2646. class="noWorksName"
  2647. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2648. >
  2649. {{ s.student }}
  2650. </div>
  2651. </div>
  2652. </div>
  2653. <div
  2654. v-if="
  2655. tType &&
  2656. ((tType == 2 && sIsOpen == true) ||
  2657. tType == 1 ||
  2658. tType == 4) &&
  2659. tool.tool.indexOf(57) != -1
  2660. "
  2661. class="worksBox"
  2662. >
  2663. <div
  2664. class="zuoyeYulan"
  2665. v-if="
  2666. worksStudent.length &&
  2667. worksStudent[toolIndex].length > 0
  2668. "
  2669. >
  2670. <div class="worksTop">
  2671. <div>作业预览</div>
  2672. <div
  2673. class="corOpen"
  2674. @click="contract(toolIndex)"
  2675. v-if="
  2676. worksStudent[toolIndex].length > 6 &&
  2677. isCloseList[toolIndex].isClose == 0
  2678. "
  2679. >
  2680. 收缩
  2681. </div>
  2682. <div
  2683. class="corOpen"
  2684. @click="contract(toolIndex)"
  2685. v-if="isCloseList[toolIndex].isClose == 1"
  2686. >
  2687. 展开
  2688. </div>
  2689. </div>
  2690. </div>
  2691. <div
  2692. class="worksDetailBox"
  2693. v-if="
  2694. worksStudent.length &&
  2695. worksStudent[toolIndex].length > 0
  2696. "
  2697. >
  2698. <div
  2699. class="works"
  2700. style="
  2701. width: 200px;
  2702. height: 140px;
  2703. margin: 10px 10px 10px 0;
  2704. border-radius: 15px;
  2705. box-shadow: 0 0 6px 1px #dfdada;
  2706. "
  2707. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2708. 0
  2709. ? worksStudent[toolIndex]
  2710. : worksStudent[toolIndex].slice(0, 6)"
  2711. :key="wIndex"
  2712. :class="w.type == 1 ? 'isTypeOne' : ''"
  2713. >
  2714. <div class="workImg">
  2715. <img
  2716. :src="word2"
  2717. @click="downloadFile(w.works)"
  2718. alt
  2719. />
  2720. <div
  2721. class="answerScore"
  2722. v-if="w.score"
  2723. @click.stop="openScore(w)"
  2724. :class="{
  2725. rightW:
  2726. w.userid == userid ||
  2727. tType == 1 ||
  2728. tType == 4 ||
  2729. w.ateacher == userid,
  2730. }"
  2731. >
  2732. {{ JSON.parse(w.score).wScore }}分
  2733. </div>
  2734. <div
  2735. class="answerScore"
  2736. @click.stop="openScore(w)"
  2737. v-else-if="courseDetail.userid == userid"
  2738. :class="{
  2739. rightW:
  2740. w.userid == userid ||
  2741. tType == 1 ||
  2742. tType == 4 ||
  2743. w.ateacher == userid,
  2744. }"
  2745. >
  2746. 评分
  2747. </div>
  2748. <img
  2749. class="deleteImg"
  2750. src="../assets/deleteworks.png"
  2751. v-if="
  2752. w.userid == userid || tType == 1 || tType == 4
  2753. "
  2754. @click.stop="deleteWorks(w.wid)"
  2755. alt
  2756. />
  2757. </div>
  2758. <div class="comment" style="min-width: 200px">
  2759. <div class="worksName">
  2760. <div>{{ w.sName }}</div>
  2761. </div>
  2762. <div class="commentList">
  2763. <div class="commentList">
  2764. <div
  2765. class="commentImg"
  2766. @click="
  2767. isLikes(w.wid, userid, 1, null, w.isLikes)
  2768. "
  2769. >
  2770. <img
  2771. :src="w.isLikes == true ? likes : noLikes"
  2772. alt=""
  2773. />
  2774. </div>
  2775. <div>{{ w.likesCount }}</div>
  2776. </div>
  2777. <div class="commentList" style="margin-right: 15px">
  2778. <div
  2779. class="commentImg"
  2780. @click="commentOther(w, toolIndex, wIndex)"
  2781. >
  2782. <img
  2783. src="../assets/icon/comment/comment.png"
  2784. alt=""
  2785. />
  2786. </div>
  2787. <div>{{ w.commentCount }}</div>
  2788. </div>
  2789. </div>
  2790. </div>
  2791. </div>
  2792. </div>
  2793. <div style="font-size: 18px">未提交</div>
  2794. <div class="noWorksS">
  2795. <div
  2796. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2797. :key="sIndex"
  2798. class="noWorksName"
  2799. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  2800. >
  2801. {{ s.student }}
  2802. </div>
  2803. </div>
  2804. </div>
  2805. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2806. <div
  2807. class="zuoyeYulan"
  2808. v-if="
  2809. worksStudent.length &&
  2810. worksStudent[toolIndex].length > 0
  2811. "
  2812. >
  2813. <span>作业预览</span>
  2814. <div
  2815. class="corOpen"
  2816. @click="contract(toolIndex)"
  2817. v-if="
  2818. worksStudent[toolIndex].length > 6 &&
  2819. isCloseList[toolIndex].isClose == 0
  2820. "
  2821. >
  2822. 收缩
  2823. </div>
  2824. <div
  2825. class="corOpen"
  2826. @click="contract(toolIndex)"
  2827. v-if="isCloseList[toolIndex].isClose == 1"
  2828. >
  2829. 展开
  2830. </div>
  2831. </div>
  2832. <div
  2833. class="worksDetailBox"
  2834. v-if="
  2835. worksStudent.length &&
  2836. worksStudent[toolIndex].length > 0
  2837. "
  2838. >
  2839. <div
  2840. class="works"
  2841. style="
  2842. width: 200px;
  2843. height: 140px;
  2844. margin: 10px 10px 10px 0;
  2845. border-radius: 15px;
  2846. box-shadow: 0 0 6px 1px #dfdada;
  2847. "
  2848. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2849. 0
  2850. ? worksStudent[toolIndex]
  2851. : worksStudent[toolIndex].slice(0, 6)"
  2852. :key="wIndex"
  2853. :class="w.type == 1 ? 'isTypeOne' : ''"
  2854. >
  2855. <div class="workImg" v-if="w.type == 0">
  2856. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2857. <img
  2858. :src="w.works"
  2859. @click="previewImg(w.works)"
  2860. alt
  2861. />
  2862. <div
  2863. class="answerScore"
  2864. v-if="w.score"
  2865. @click.stop="openScore(w)"
  2866. :class="{
  2867. rightW:
  2868. w.userid == userid ||
  2869. tType == 1 ||
  2870. tType == 4 ||
  2871. w.ateacher == userid,
  2872. }"
  2873. >
  2874. {{ JSON.parse(w.score).wScore }}分
  2875. </div>
  2876. <div
  2877. class="answerScore"
  2878. @click.stop="openScore(w)"
  2879. v-else-if="courseDetail.userid == userid"
  2880. :class="{
  2881. rightW:
  2882. w.userid == userid ||
  2883. tType == 1 ||
  2884. tType == 4 ||
  2885. w.ateacher == userid,
  2886. }"
  2887. >
  2888. 评分
  2889. </div>
  2890. <img
  2891. class="deleteImg"
  2892. src="../assets/deleteworks.png"
  2893. v-if="
  2894. w.userid == userid || tType == 1 || tType == 4
  2895. "
  2896. @click.stop="deleteWorks(w.wid)"
  2897. alt
  2898. />
  2899. </div>
  2900. <div
  2901. class="workImg"
  2902. style="cursor: pointer"
  2903. v-if="w.type == 1"
  2904. >
  2905. <img :src="word" @click="openFile(w.works)" alt />
  2906. <!-- @click="openFile(w.works)" -->
  2907. <div
  2908. class="answerScore"
  2909. v-if="w.score"
  2910. @click.stop="openScore(w)"
  2911. :class="{
  2912. rightW:
  2913. w.userid == userid ||
  2914. tType == 1 ||
  2915. tType == 4 ||
  2916. w.ateacher == userid,
  2917. }"
  2918. >
  2919. {{ JSON.parse(w.score).wScore }}分
  2920. </div>
  2921. <div
  2922. class="answerScore"
  2923. @click.stop="openScore(w)"
  2924. v-else-if="courseDetail.userid == userid"
  2925. :class="{
  2926. rightW:
  2927. w.userid == userid ||
  2928. tType == 1 ||
  2929. tType == 4 ||
  2930. w.ateacher == userid,
  2931. }"
  2932. >
  2933. 评分
  2934. </div>
  2935. <img
  2936. class="deleteImg"
  2937. src="../assets/deleteworks.png"
  2938. v-if="
  2939. w.userid == userid || tType == 1 || tType == 4
  2940. "
  2941. @click.stop="deleteWorks(w.wid)"
  2942. alt
  2943. />
  2944. </div>
  2945. <div class="workImg" v-if="w.type == 3">
  2946. <img
  2947. style="cursor: pointer"
  2948. :src="video"
  2949. @click="openVideo(w)"
  2950. alt
  2951. />
  2952. <!-- @click="openVideo(w.works)" -->
  2953. <div
  2954. class="answerScore"
  2955. v-if="w.score"
  2956. @click.stop="openScore(w)"
  2957. :class="{
  2958. rightW:
  2959. w.userid == userid ||
  2960. tType == 1 ||
  2961. tType == 4 ||
  2962. w.ateacher == userid,
  2963. }"
  2964. >
  2965. {{ JSON.parse(w.score).wScore }}分
  2966. </div>
  2967. <div
  2968. class="answerScore"
  2969. @click.stop="openScore(w)"
  2970. v-else-if="courseDetail.userid == userid"
  2971. :class="{
  2972. rightW:
  2973. w.userid == userid ||
  2974. tType == 1 ||
  2975. tType == 4 ||
  2976. w.ateacher == userid,
  2977. }"
  2978. >
  2979. 评分
  2980. </div>
  2981. <img
  2982. class="deleteImg"
  2983. src="../assets/deleteworks.png"
  2984. v-if="
  2985. w.userid == userid || tType == 1 || tType == 4
  2986. "
  2987. @click.stop="deleteWorks(w.wid)"
  2988. alt
  2989. />
  2990. </div>
  2991. <div class="comment" style="min-width: 200px">
  2992. <div class="worksName">
  2993. <div
  2994. style="cursor: pointer"
  2995. @click="openSname(w.sName, w.wid, toolIndex)"
  2996. >
  2997. {{ w.sName }}
  2998. </div>
  2999. </div>
  3000. <div class="commentList">
  3001. <div class="commentList">
  3002. <div
  3003. class="commentImg"
  3004. @click="
  3005. isLikes(w.wid, userid, 1, null, w.isLikes)
  3006. "
  3007. >
  3008. <img
  3009. :src="w.isLikes == true ? likes : noLikes"
  3010. alt=""
  3011. />
  3012. </div>
  3013. <div>{{ w.likesCount }}</div>
  3014. </div>
  3015. <div class="commentList" style="margin-right: 15px">
  3016. <div
  3017. class="commentImg"
  3018. @click="commentOther(w, toolIndex, wIndex)"
  3019. >
  3020. <img
  3021. src="../assets/icon/comment/comment.png"
  3022. alt=""
  3023. />
  3024. </div>
  3025. <div>{{ w.commentCount }}</div>
  3026. </div>
  3027. </div>
  3028. </div>
  3029. </div>
  3030. </div>
  3031. <div style="font-size: 18px">未提交</div>
  3032. <div class="noWorksS">
  3033. <div
  3034. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3035. :key="sIndex"
  3036. class="noWorksName"
  3037. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3038. >
  3039. {{ s.student }}
  3040. </div>
  3041. </div>
  3042. </div>
  3043. <div
  3044. v-if="
  3045. tType &&
  3046. ((tType == 2 && sIsOpen == true) ||
  3047. tType == 1 ||
  3048. tType == 4) &&
  3049. tool.tool.indexOf(4) != -1 &&
  3050. (tool.askJson[0].answer ||
  3051. tool.askJson[0].answer === 0) &&
  3052. checkJson[toolIndex].length
  3053. "
  3054. class="xuan_right_box"
  3055. >
  3056. <div
  3057. class="tool_right_box"
  3058. v-for="(item, index) in tool.askJson"
  3059. :key="index"
  3060. >
  3061. <div>
  3062. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  3063. </div>
  3064. <div class="right_box_xuan">
  3065. <span>正确率</span>
  3066. <span>{{
  3067. (checkJson[toolIndex][index].right
  3068. ? checkJson[toolIndex][index].right
  3069. : 0) + "%"
  3070. }}</span>
  3071. </div>
  3072. </div>
  3073. </div>
  3074. <div
  3075. class="xuan_right_box"
  3076. style="background: unset"
  3077. v-if="
  3078. tType &&
  3079. ((tType == 2 && sIsOpen == true) ||
  3080. tType == 1 ||
  3081. tType == 4) &&
  3082. tool.tool.indexOf(4) != -1
  3083. "
  3084. >
  3085. <AskStatic
  3086. v-if="
  3087. worksStudent.length &&
  3088. worksStudent[toolIndex].length > 0
  3089. "
  3090. :askJSON="tool"
  3091. :checkJson="checkJson[toolIndex]"
  3092. ></AskStatic>
  3093. </div>
  3094. <div
  3095. v-if="
  3096. tType &&
  3097. ((tType == 2 && sIsOpen == true) ||
  3098. tType == 1 ||
  3099. tType == 4) &&
  3100. tool.tool.indexOf(4) != -1
  3101. "
  3102. class="worksBox"
  3103. >
  3104. <div
  3105. class="zuoyeYulan"
  3106. v-if="
  3107. worksStudent.length &&
  3108. worksStudent[toolIndex].length > 0
  3109. "
  3110. >
  3111. <div class="worksTop">
  3112. <div>作业预览</div>
  3113. <div
  3114. class="corOpen"
  3115. @click="contract(toolIndex)"
  3116. v-if="
  3117. worksStudent[toolIndex].length > 6 &&
  3118. isCloseList[toolIndex].isClose == 0
  3119. "
  3120. >
  3121. 收缩
  3122. </div>
  3123. <div
  3124. class="corOpen"
  3125. @click="contract(toolIndex)"
  3126. v-if="isCloseList[toolIndex].isClose == 1"
  3127. >
  3128. 展开
  3129. </div>
  3130. </div>
  3131. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3132. </div>
  3133. <div>
  3134. <div
  3135. class="worksDetailBox"
  3136. v-if="
  3137. worksStudent.length &&
  3138. worksStudent[toolIndex].length > 0
  3139. "
  3140. >
  3141. <div
  3142. v-for="(w, wIndex) in isCloseList[toolIndex]
  3143. .isClose == 0
  3144. ? worksStudent[toolIndex]
  3145. : worksStudent[toolIndex].slice(0, 6)"
  3146. :key="wIndex"
  3147. class="isWorksName"
  3148. @click="
  3149. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3150. "
  3151. >
  3152. {{ w.sName }}
  3153. <img
  3154. class="deleteImg deleteImg2"
  3155. src="../assets/deleteworks.png"
  3156. v-if="
  3157. w.userid == userid || tType == 1 || tType == 4
  3158. "
  3159. @click.stop="deleteWorks(w.wid)"
  3160. alt
  3161. />
  3162. </div>
  3163. <!-- <div class="works" style="
  3164. width: 200px;
  3165. height: 140px;
  3166. border-radius: 10px;
  3167. box-shadow: 0 0 6px 1px #dfdada;
  3168. overflow: hidden;
  3169. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3170. <div class="workImg">
  3171. <img src="../assets/icon/works/noImg.png" @click="
  3172. openTools(
  3173. 4,
  3174. toolIndex,
  3175. taskCount,
  3176. w.works,
  3177. w.sName
  3178. )
  3179. " alt />
  3180. </div>
  3181. <div class="worksName">
  3182. <div>{{ w.sName }}</div>
  3183. <div>{{ w.time }}</div>
  3184. </div>
  3185. </div> -->
  3186. </div>
  3187. </div>
  3188. <div style="font-size: 18px">未提交</div>
  3189. <div class="noWorksS">
  3190. <div
  3191. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3192. :key="sIndex"
  3193. class="noWorksName"
  3194. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3195. >
  3196. {{ s.student }}
  3197. </div>
  3198. </div>
  3199. </div>
  3200. <div
  3201. v-if="
  3202. tType &&
  3203. ((tType == 2 && sIsOpen == true) ||
  3204. tType == 1 ||
  3205. tType == 4) &&
  3206. tool.tool.indexOf(45) != -1 &&
  3207. (tool.testJson.testJson[0].answer ||
  3208. tool.testJson.testJson[0].answer === 0) &&
  3209. checkJson[toolIndex].length
  3210. "
  3211. class="xuan_right_box"
  3212. >
  3213. <div
  3214. class="tool_right_box"
  3215. v-for="(item, index) in tool.testJson.testJson"
  3216. :key="index"
  3217. >
  3218. <div>
  3219. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  3220. </div>
  3221. <div class="right_box_xuan">
  3222. <span>正确率</span>
  3223. <span>{{
  3224. (checkJson[toolIndex][index].right
  3225. ? checkJson[toolIndex][index].right
  3226. : 0) + "%"
  3227. }}</span>
  3228. </div>
  3229. </div>
  3230. </div>
  3231. <div
  3232. class="xuan_right_box"
  3233. style="background: unset"
  3234. v-if="
  3235. tType &&
  3236. ((tType == 2 && sIsOpen == true) ||
  3237. tType == 1 ||
  3238. tType == 4) &&
  3239. tool.tool.indexOf(45) != -1
  3240. "
  3241. >
  3242. <AskStatic2
  3243. v-if="
  3244. worksStudent.length &&
  3245. worksStudent[toolIndex].length > 0
  3246. "
  3247. :askJSON="tool"
  3248. :checkJson="checkJson[toolIndex]"
  3249. ></AskStatic2>
  3250. </div>
  3251. <div
  3252. v-if="
  3253. tType &&
  3254. ((tType == 2 && sIsOpen == true) ||
  3255. tType == 1 ||
  3256. tType == 4) &&
  3257. tool.tool.indexOf(45) != -1
  3258. "
  3259. class="worksBox"
  3260. >
  3261. <div
  3262. class="zuoyeYulan"
  3263. v-if="
  3264. worksStudent.length &&
  3265. worksStudent[toolIndex].length > 0
  3266. "
  3267. >
  3268. <div class="worksTop">
  3269. <div>作业预览</div>
  3270. <div
  3271. class="corOpen"
  3272. @click="contract(toolIndex)"
  3273. v-if="
  3274. worksStudent[toolIndex].length > 6 &&
  3275. isCloseList[toolIndex].isClose == 0
  3276. "
  3277. >
  3278. 收缩
  3279. </div>
  3280. <div
  3281. class="corOpen"
  3282. @click="contract(toolIndex)"
  3283. v-if="isCloseList[toolIndex].isClose == 1"
  3284. >
  3285. 展开
  3286. </div>
  3287. </div>
  3288. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3289. </div>
  3290. <div>
  3291. <div
  3292. class="worksDetailBox"
  3293. v-if="
  3294. worksStudent.length &&
  3295. worksStudent[toolIndex].length > 0
  3296. "
  3297. >
  3298. <div
  3299. v-for="(w, wIndex) in isCloseList[toolIndex]
  3300. .isClose == 0
  3301. ? worksStudent[toolIndex]
  3302. : worksStudent[toolIndex].slice(0, 6)"
  3303. :key="wIndex"
  3304. class="isWorksName"
  3305. @click="
  3306. openTools(
  3307. 45,
  3308. toolIndex,
  3309. taskCount,
  3310. w.works,
  3311. w.sName
  3312. )
  3313. "
  3314. >
  3315. {{ w.sName }}
  3316. <img
  3317. class="deleteImg deleteImg2"
  3318. src="../assets/deleteworks.png"
  3319. v-if="
  3320. w.userid == userid || tType == 1 || tType == 4
  3321. "
  3322. @click.stop="deleteWorks(w.wid)"
  3323. alt
  3324. />
  3325. </div>
  3326. </div>
  3327. </div>
  3328. <div style="font-size: 18px">未提交</div>
  3329. <div class="noWorksS">
  3330. <div
  3331. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3332. :key="sIndex"
  3333. class="noWorksName"
  3334. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3335. >
  3336. {{ s.student }}
  3337. </div>
  3338. </div>
  3339. </div>
  3340. <div
  3341. v-if="
  3342. tType &&
  3343. ((tType == 2 && sIsOpen == true) ||
  3344. tType == 1 ||
  3345. tType == 4) &&
  3346. tool.tool.indexOf(15) != -1
  3347. "
  3348. class="worksBox"
  3349. >
  3350. <div
  3351. class="zuoyeYulan"
  3352. v-if="
  3353. worksStudent.length &&
  3354. worksStudent[toolIndex].length > 0
  3355. "
  3356. >
  3357. <div class="worksTop">
  3358. <div>作业预览</div>
  3359. <div
  3360. class="corOpen"
  3361. @click="contract(toolIndex)"
  3362. v-if="
  3363. worksStudent[toolIndex].length > 6 &&
  3364. isCloseList[toolIndex].isClose == 0
  3365. "
  3366. >
  3367. 收缩
  3368. </div>
  3369. <div
  3370. class="corOpen"
  3371. @click="contract(toolIndex)"
  3372. v-if="isCloseList[toolIndex].isClose == 1"
  3373. >
  3374. 展开
  3375. </div>
  3376. </div>
  3377. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3378. </div>
  3379. <div
  3380. class="group_workBox"
  3381. v-for="(g, gindex) in courseGroup.group"
  3382. :key="gindex"
  3383. >
  3384. <div class="group_box">
  3385. <div class="group_title">
  3386. <el-tooltip
  3387. class="item"
  3388. effect="light"
  3389. :content="g.name"
  3390. placement="top"
  3391. >
  3392. <div class="group_name">{{ g.name }}</div>
  3393. </el-tooltip>
  3394. </div>
  3395. <div
  3396. class="group_work"
  3397. v-if="
  3398. g.works &&
  3399. g.works.length &&
  3400. g.works[toolIndex].length
  3401. "
  3402. >
  3403. <div
  3404. class="works"
  3405. v-for="(w, wIndex) in g.works[toolIndex]"
  3406. :key="wIndex"
  3407. >
  3408. <div
  3409. class="workImg"
  3410. style="
  3411. border-radius: 15px;
  3412. box-shadow: #eee 0px 0px 5px 5px;
  3413. "
  3414. >
  3415. <div
  3416. class="answerBg"
  3417. style="border-radius: 15px 15px 0 0"
  3418. @click="commentOther(w, toolIndex, wIndex)"
  3419. >
  3420. <el-tooltip
  3421. class="item"
  3422. effect="light"
  3423. :content="JSON.parse(w.works)[0].answer"
  3424. placement="top"
  3425. >
  3426. <div class="answerContent">
  3427. {{ JSON.parse(w.works)[0].answer }}
  3428. </div>
  3429. </el-tooltip>
  3430. <div
  3431. class="answerScore"
  3432. v-if="w.score"
  3433. @click.stop="openScore(w)"
  3434. :class="{
  3435. rightW:
  3436. w.userid == userid ||
  3437. tType == 1 ||
  3438. tType == 4,
  3439. }"
  3440. >
  3441. {{ JSON.parse(w.score).wScore }}分
  3442. </div>
  3443. <div
  3444. class="answerScore"
  3445. @click.stop="openScore(w)"
  3446. v-else-if="courseDetail.userid == userid"
  3447. :class="{
  3448. rightW:
  3449. w.userid == userid ||
  3450. tType == 1 ||
  3451. tType == 4,
  3452. }"
  3453. >
  3454. 评分
  3455. </div>
  3456. <img
  3457. class="deleteImg"
  3458. src="../assets/deleteworks.png"
  3459. v-if="
  3460. w.userid == userid ||
  3461. tType == 1 ||
  3462. tType == 4
  3463. "
  3464. @click.stop="deleteWorks(w.wid)"
  3465. alt
  3466. />
  3467. </div>
  3468. <div class="comment">
  3469. <div class="worksName">
  3470. <div>{{ w.sName }}</div>
  3471. </div>
  3472. <div class="commentList">
  3473. <div
  3474. class="commentImg"
  3475. @click="
  3476. isLikes(w.wid, userid, 1, null, w.isLikes)
  3477. "
  3478. >
  3479. <img
  3480. :src="w.isLikes == true ? likes : noLikes"
  3481. alt=""
  3482. />
  3483. </div>
  3484. <div>{{ w.likesCount }}</div>
  3485. </div>
  3486. <div
  3487. class="commentList"
  3488. style="margin-right: 15px"
  3489. >
  3490. <div
  3491. class="commentImg"
  3492. @click="
  3493. commentOther(
  3494. w,
  3495. toolIndex,
  3496. wIndex,
  3497. null,
  3498. g.id
  3499. )
  3500. "
  3501. >
  3502. <img
  3503. src="../assets/icon/comment/comment.png"
  3504. alt=""
  3505. />
  3506. </div>
  3507. <div>{{ w.commentCount }}</div>
  3508. </div>
  3509. </div>
  3510. </div>
  3511. </div>
  3512. </div>
  3513. <div class="group_work" v-else>暂无提交作业</div>
  3514. </div>
  3515. </div>
  3516. <div
  3517. class="worksDetailBox"
  3518. v-if="
  3519. worksStudent.length &&
  3520. worksStudent[toolIndex].length > 0
  3521. "
  3522. >
  3523. <div
  3524. class="works"
  3525. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3526. 0
  3527. ? worksStudent[toolIndex]
  3528. : worksStudent[toolIndex].slice(0, 6)"
  3529. :key="wIndex"
  3530. >
  3531. <div
  3532. class="workImg"
  3533. style="
  3534. border-radius: 15px;
  3535. box-shadow: #eee 0px 0px 5px 5px;
  3536. "
  3537. >
  3538. <!-- <img
  3539. src="../assets/icon/works/noImg.png"
  3540. @click="openTools(15, toolIndex, taskCount, w.works)"
  3541. alt=""
  3542. />-->
  3543. <div
  3544. class="answerBg"
  3545. style="border-radius: 15px 15px 0 0"
  3546. @click="commentOther(w, toolIndex, wIndex)"
  3547. >
  3548. <!-- <div>{{ w.sName }}</div> -->
  3549. <el-tooltip
  3550. class="item"
  3551. effect="light"
  3552. :content="JSON.parse(w.works)[0].answer"
  3553. placement="top"
  3554. >
  3555. <div class="answerContent">
  3556. {{ JSON.parse(w.works)[0].answer }}
  3557. </div>
  3558. </el-tooltip>
  3559. <div
  3560. class="answerScore"
  3561. v-if="w.score"
  3562. @click.stop="openScore(w)"
  3563. :class="{
  3564. rightW:
  3565. w.userid == userid ||
  3566. tType == 1 ||
  3567. tType == 4,
  3568. }"
  3569. >
  3570. {{ JSON.parse(w.score).wScore }}分
  3571. </div>
  3572. <div
  3573. class="answerScore"
  3574. @click.stop="openScore(w)"
  3575. v-else-if="courseDetail.userid == userid"
  3576. :class="{
  3577. rightW:
  3578. w.userid == userid ||
  3579. tType == 1 ||
  3580. tType == 4,
  3581. }"
  3582. >
  3583. 评分
  3584. </div>
  3585. <img
  3586. class="deleteImg"
  3587. src="../assets/deleteworks.png"
  3588. v-if="
  3589. w.userid == userid || tType == 1 || tType == 4
  3590. "
  3591. @click.stop="deleteWorks(w.wid)"
  3592. alt
  3593. />
  3594. </div>
  3595. <div class="comment">
  3596. <div class="worksName">
  3597. <div>{{ w.sName }}</div>
  3598. </div>
  3599. <div class="commentList">
  3600. <div
  3601. class="commentImg"
  3602. @click="
  3603. isLikes(w.wid, userid, 1, null, w.isLikes)
  3604. "
  3605. >
  3606. <img
  3607. :src="w.isLikes == true ? likes : noLikes"
  3608. alt=""
  3609. />
  3610. </div>
  3611. <div>{{ w.likesCount }}</div>
  3612. </div>
  3613. <div class="commentList" style="margin-right: 15px">
  3614. <div
  3615. class="commentImg"
  3616. @click="commentOther(w, toolIndex, wIndex)"
  3617. >
  3618. <img
  3619. src="../assets/icon/comment/comment.png"
  3620. alt=""
  3621. />
  3622. </div>
  3623. <div>{{ w.commentCount }}</div>
  3624. </div>
  3625. </div>
  3626. </div>
  3627. </div>
  3628. </div>
  3629. <div style="font-size: 18px">未提交</div>
  3630. <div class="noWorksS">
  3631. <div
  3632. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3633. :key="sIndex"
  3634. class="noWorksName"
  3635. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  3636. >
  3637. {{ s.student }}
  3638. </div>
  3639. </div>
  3640. </div>
  3641. <div
  3642. v-if="
  3643. tType &&
  3644. ((tType == 2 && sIsOpen == true) ||
  3645. tType == 1 ||
  3646. tType == 4) &&
  3647. tool.tool.indexOf(1) != -1
  3648. "
  3649. class="worksBox"
  3650. >
  3651. <div
  3652. class="zuoyeYulan"
  3653. v-if="
  3654. worksStudent.length &&
  3655. worksStudent[toolIndex].length > 0
  3656. "
  3657. >
  3658. <div class="worksTop">
  3659. <div>作业预览</div>
  3660. <div
  3661. class="corOpen"
  3662. @click="contract(toolIndex)"
  3663. v-if="
  3664. worksStudent[toolIndex].length > 6 &&
  3665. isCloseList[toolIndex].isClose == 0
  3666. "
  3667. >
  3668. 收缩
  3669. </div>
  3670. <div
  3671. class="corOpen"
  3672. @click="contract(toolIndex)"
  3673. v-if="isCloseList[toolIndex].isClose == 1"
  3674. >
  3675. 展开
  3676. </div>
  3677. </div>
  3678. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3679. </div>
  3680. <div
  3681. class="group_workBox"
  3682. v-for="(g, gindex) in courseGroup.group"
  3683. :key="gindex"
  3684. >
  3685. <div class="group_box">
  3686. <div class="group_title">
  3687. <el-tooltip
  3688. class="item"
  3689. effect="light"
  3690. :content="g.name"
  3691. placement="top"
  3692. >
  3693. <div class="group_name">{{ g.name }}</div>
  3694. </el-tooltip>
  3695. </div>
  3696. <div
  3697. class="group_work"
  3698. v-if="
  3699. g.works &&
  3700. g.works.length &&
  3701. g.works[toolIndex].length
  3702. "
  3703. >
  3704. <div
  3705. class="works"
  3706. style="
  3707. width: 200px;
  3708. height: 140px;
  3709. margin: 10px 10px 10px 0;
  3710. border-radius: 15px;
  3711. box-shadow: 0 0 6px 1px #dfdada;
  3712. "
  3713. v-for="(w, wIndex) in g.works[toolIndex]"
  3714. :key="wIndex"
  3715. :class="w.type == 1 ? 'isTypeOne' : ''"
  3716. >
  3717. <div class="workImg">
  3718. <img
  3719. :src="w.works"
  3720. @click="previewImg(w.works)"
  3721. alt
  3722. />
  3723. <div
  3724. class="answerScore"
  3725. v-if="w.score"
  3726. @click.stop="openScore(w)"
  3727. :class="{
  3728. rightW:
  3729. w.userid == userid ||
  3730. tType == 1 ||
  3731. tType == 4,
  3732. }"
  3733. >
  3734. {{ JSON.parse(w.score).wScore }}分
  3735. </div>
  3736. <div
  3737. class="answerScore"
  3738. @click.stop="openScore(w)"
  3739. v-else-if="courseDetail.userid == userid"
  3740. :class="{
  3741. rightW:
  3742. w.userid == userid ||
  3743. tType == 1 ||
  3744. tType == 4,
  3745. }"
  3746. >
  3747. 评分
  3748. </div>
  3749. <img
  3750. class="deleteImg"
  3751. src="../assets/deleteworks.png"
  3752. v-if="
  3753. w.userid == userid || tType == 1 || tType == 4
  3754. "
  3755. @click.stop="deleteWorks(w.wid)"
  3756. alt
  3757. />
  3758. </div>
  3759. <div class="comment" style="min-width: 200px">
  3760. <div class="worksName">
  3761. <div>{{ w.sName }}</div>
  3762. </div>
  3763. <div class="commentList">
  3764. <div class="commentList">
  3765. <div
  3766. class="commentImg"
  3767. @click="
  3768. isLikes(w.wid, userid, 1, null, w.isLikes)
  3769. "
  3770. >
  3771. <img
  3772. :src="w.isLikes == true ? likes : noLikes"
  3773. alt=""
  3774. />
  3775. </div>
  3776. <div>{{ w.likesCount }}</div>
  3777. </div>
  3778. <div
  3779. class="commentList"
  3780. style="margin-right: 15px"
  3781. >
  3782. <div
  3783. class="commentImg"
  3784. @click="commentOther(w, toolIndex, wIndex)"
  3785. >
  3786. <img
  3787. src="../assets/icon/comment/comment.png"
  3788. alt=""
  3789. />
  3790. </div>
  3791. <div>{{ w.commentCount }}</div>
  3792. </div>
  3793. </div>
  3794. </div>
  3795. </div>
  3796. </div>
  3797. <div class="group_work" v-else>暂无提交作业</div>
  3798. </div>
  3799. </div>
  3800. <div
  3801. class="worksDetailBox"
  3802. v-if="
  3803. worksStudent.length &&
  3804. worksStudent[toolIndex].length > 0
  3805. "
  3806. >
  3807. <div
  3808. class="works"
  3809. style="
  3810. width: 200px;
  3811. height: 140px;
  3812. margin: 10px 10px 10px 0;
  3813. border-radius: 15px;
  3814. box-shadow: 0 0 6px 1px #dfdada;
  3815. "
  3816. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3817. 0
  3818. ? worksStudent[toolIndex]
  3819. : worksStudent[toolIndex].slice(0, 6)"
  3820. :key="wIndex"
  3821. >
  3822. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  3823. <div class="workImg">
  3824. <img
  3825. :src="w.works"
  3826. @click="previewImg(w.works)"
  3827. alt
  3828. />
  3829. <div
  3830. class="answerScore"
  3831. v-if="w.score"
  3832. @click.stop="openScore(w)"
  3833. :class="{
  3834. rightW:
  3835. w.userid == userid || tType == 1 || tType == 4,
  3836. }"
  3837. >
  3838. {{ JSON.parse(w.score).wScore }}分
  3839. </div>
  3840. <div
  3841. class="answerScore"
  3842. @click.stop="openScore(w)"
  3843. v-else-if="courseDetail.userid == userid"
  3844. :class="{
  3845. rightW:
  3846. w.userid == userid || tType == 1 || tType == 4,
  3847. }"
  3848. >
  3849. 评分
  3850. </div>
  3851. <img
  3852. class="deleteImg"
  3853. src="../assets/deleteworks.png"
  3854. v-if="
  3855. w.userid == userid || tType == 1 || tType == 4
  3856. "
  3857. @click.stop="deleteWorks(w.wid)"
  3858. alt
  3859. />
  3860. </div>
  3861. <div class="comment" style="min-width: 200px">
  3862. <div class="worksName">
  3863. <div>{{ w.sName }}</div>
  3864. </div>
  3865. <div class="commentList">
  3866. <div class="commentList">
  3867. <div
  3868. class="commentImg"
  3869. @click="
  3870. isLikes(w.wid, userid, 1, null, w.isLikes)
  3871. "
  3872. >
  3873. <img
  3874. :src="w.isLikes == true ? likes : noLikes"
  3875. alt=""
  3876. />
  3877. </div>
  3878. <div>{{ w.likesCount }}</div>
  3879. </div>
  3880. <div class="commentList" style="margin-right: 15px">
  3881. <div
  3882. class="commentImg"
  3883. @click="commentOther(w, toolIndex, wIndex)"
  3884. >
  3885. <img
  3886. src="../assets/icon/comment/comment.png"
  3887. alt=""
  3888. />
  3889. </div>
  3890. <div>{{ w.commentCount }}</div>
  3891. </div>
  3892. </div>
  3893. </div>
  3894. </div>
  3895. </div>
  3896. <div style="font-size: 18px">未提交</div>
  3897. <div class="noWorksS">
  3898. <div
  3899. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3900. :key="sIndex"
  3901. class="noWorksName"
  3902. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  3903. >
  3904. {{ s.student }}
  3905. </div>
  3906. </div>
  3907. </div>
  3908. <div
  3909. v-if="
  3910. tType &&
  3911. ((tType == 2 && sIsOpen == true) ||
  3912. tType == 1 ||
  3913. tType == 4) &&
  3914. tool.tool.indexOf(3) != -1
  3915. "
  3916. class="worksBox"
  3917. >
  3918. <div
  3919. class="zuoyeYulan"
  3920. v-if="
  3921. worksStudent.length &&
  3922. worksStudent[toolIndex].length > 0
  3923. "
  3924. >
  3925. <div class="worksTop">
  3926. <div>作业预览</div>
  3927. <div
  3928. class="corOpen"
  3929. @click="contract(toolIndex)"
  3930. v-if="
  3931. worksStudent[toolIndex].length > 6 &&
  3932. isCloseList[toolIndex].isClose == 0
  3933. "
  3934. >
  3935. 收缩
  3936. </div>
  3937. <div
  3938. class="corOpen"
  3939. @click="contract(toolIndex)"
  3940. v-if="isCloseList[toolIndex].isClose == 1"
  3941. >
  3942. 展开
  3943. </div>
  3944. </div>
  3945. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3946. </div>
  3947. <div
  3948. class="group_workBox"
  3949. v-for="(g, gindex) in courseGroup.group"
  3950. :key="gindex"
  3951. >
  3952. <div class="group_box">
  3953. <div class="group_title">
  3954. <el-tooltip
  3955. class="item"
  3956. effect="light"
  3957. :content="g.name"
  3958. placement="top"
  3959. >
  3960. <div class="group_name">{{ g.name }}</div>
  3961. </el-tooltip>
  3962. </div>
  3963. <div
  3964. class="group_work"
  3965. v-if="
  3966. g.works &&
  3967. g.works.length &&
  3968. g.works[toolIndex].length
  3969. "
  3970. >
  3971. <div
  3972. class="works"
  3973. style="
  3974. width: 200px;
  3975. height: 140px;
  3976. margin: 10px 10px 10px 0;
  3977. border-radius: 15px;
  3978. box-shadow: 0 0 6px 1px #dfdada;
  3979. "
  3980. v-for="(w, wIndex) in g.works[toolIndex]"
  3981. :key="wIndex"
  3982. :class="w.type == 1 ? 'isTypeOne' : ''"
  3983. >
  3984. <div class="workImg">
  3985. <img
  3986. :src="w.works"
  3987. @click="previewImg(w.works)"
  3988. alt
  3989. />
  3990. <div
  3991. class="answerScore"
  3992. v-if="w.score"
  3993. @click.stop="openScore(w)"
  3994. :class="{
  3995. rightW:
  3996. w.userid == userid ||
  3997. tType == 1 ||
  3998. tType == 4,
  3999. }"
  4000. >
  4001. {{ JSON.parse(w.score).wScore }}分
  4002. </div>
  4003. <div
  4004. class="answerScore"
  4005. @click.stop="openScore(w)"
  4006. v-else-if="courseDetail.userid == userid"
  4007. :class="{
  4008. rightW:
  4009. w.userid == userid ||
  4010. tType == 1 ||
  4011. tType == 4,
  4012. }"
  4013. >
  4014. 评分
  4015. </div>
  4016. <img
  4017. class="deleteImg"
  4018. src="../assets/deleteworks.png"
  4019. v-if="
  4020. w.userid == userid || tType == 1 || tType == 4
  4021. "
  4022. @click.stop="deleteWorks(w.wid)"
  4023. alt
  4024. />
  4025. </div>
  4026. <div class="comment" style="min-width: 200px">
  4027. <div class="worksName">
  4028. <div>{{ w.sName }}</div>
  4029. </div>
  4030. <div class="commentList">
  4031. <div class="commentList">
  4032. <div
  4033. class="commentImg"
  4034. @click="
  4035. isLikes(w.wid, userid, 1, null, w.isLikes)
  4036. "
  4037. >
  4038. <img
  4039. :src="w.isLikes == true ? likes : noLikes"
  4040. alt=""
  4041. />
  4042. </div>
  4043. <div>{{ w.likesCount }}</div>
  4044. </div>
  4045. <div
  4046. class="commentList"
  4047. style="margin-right: 15px"
  4048. >
  4049. <div
  4050. class="commentImg"
  4051. @click="commentOther(w, toolIndex, wIndex)"
  4052. >
  4053. <img
  4054. src="../assets/icon/comment/comment.png"
  4055. alt=""
  4056. />
  4057. </div>
  4058. <div>{{ w.commentCount }}</div>
  4059. </div>
  4060. </div>
  4061. </div>
  4062. </div>
  4063. </div>
  4064. <div class="group_work" v-else>暂无提交作业</div>
  4065. </div>
  4066. </div>
  4067. <div
  4068. class="worksDetailBox"
  4069. v-if="
  4070. worksStudent.length &&
  4071. worksStudent[toolIndex].length > 0
  4072. "
  4073. >
  4074. <div
  4075. class="works"
  4076. style="
  4077. width: 200px;
  4078. height: 140px;
  4079. margin: 10px 10px 10px 0;
  4080. border-radius: 15px;
  4081. box-shadow: 0 0 6px 1px #dfdada;
  4082. "
  4083. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4084. 0
  4085. ? worksStudent[toolIndex]
  4086. : worksStudent[toolIndex].slice(0, 6)"
  4087. :key="wIndex"
  4088. >
  4089. <!-- @click="previewImg(w.works)" -->
  4090. <div class="workImg">
  4091. <img
  4092. :src="w.works"
  4093. @click="previewImg(w.works)"
  4094. alt
  4095. />
  4096. <div
  4097. class="answerScore"
  4098. v-if="w.score"
  4099. @click.stop="openScore(w)"
  4100. :class="{
  4101. rightW:
  4102. w.userid == userid || tType == 1 || tType == 4,
  4103. }"
  4104. >
  4105. {{ JSON.parse(w.score).wScore }}分
  4106. </div>
  4107. <div
  4108. class="answerScore"
  4109. @click.stop="openScore(w)"
  4110. v-else-if="courseDetail.userid == userid"
  4111. :class="{
  4112. rightW:
  4113. w.userid == userid || tType == 1 || tType == 4,
  4114. }"
  4115. >
  4116. 评分
  4117. </div>
  4118. <img
  4119. class="deleteImg"
  4120. src="../assets/deleteworks.png"
  4121. v-if="
  4122. w.userid == userid || tType == 1 || tType == 4
  4123. "
  4124. @click.stop="deleteWorks(w.wid)"
  4125. alt
  4126. />
  4127. </div>
  4128. <div class="comment" style="min-width: 200px">
  4129. <div class="worksName">
  4130. <div>{{ w.sName }}</div>
  4131. </div>
  4132. <div class="commentList">
  4133. <div class="commentList">
  4134. <div
  4135. class="commentImg"
  4136. @click="
  4137. isLikes(w.wid, userid, 1, null, w.isLikes)
  4138. "
  4139. >
  4140. <img
  4141. :src="w.isLikes == true ? likes : noLikes"
  4142. alt=""
  4143. />
  4144. </div>
  4145. <div>{{ w.likesCount }}</div>
  4146. </div>
  4147. <div class="commentList" style="margin-right: 15px">
  4148. <div
  4149. class="commentImg"
  4150. @click="commentOther(w, toolIndex, wIndex)"
  4151. >
  4152. <img
  4153. src="../assets/icon/comment/comment.png"
  4154. alt=""
  4155. />
  4156. </div>
  4157. <div>{{ w.commentCount }}</div>
  4158. </div>
  4159. </div>
  4160. </div>
  4161. </div>
  4162. </div>
  4163. <div style="font-size: 18px">未提交</div>
  4164. <div class="noWorksS">
  4165. <div
  4166. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4167. :key="sIndex"
  4168. class="noWorksName"
  4169. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4170. >
  4171. {{ s.student }}
  4172. </div>
  4173. </div>
  4174. </div>
  4175. <div
  4176. v-if="
  4177. tType &&
  4178. ((tType == 2 && sIsOpen == true) ||
  4179. tType == 1 ||
  4180. tType == 4) &&
  4181. tool.tool.indexOf(6) != -1
  4182. "
  4183. class="worksBox"
  4184. >
  4185. <div
  4186. class="zuoyeYulan"
  4187. v-if="
  4188. worksStudent.length &&
  4189. worksStudent[toolIndex].length > 0
  4190. "
  4191. >
  4192. <div class="worksTop">
  4193. <div>作业预览</div>
  4194. <div
  4195. class="corOpen"
  4196. @click="contract(toolIndex)"
  4197. v-if="
  4198. worksStudent[toolIndex].length > 6 &&
  4199. isCloseList[toolIndex].isClose == 0
  4200. "
  4201. >
  4202. 收缩
  4203. </div>
  4204. <div
  4205. class="corOpen"
  4206. @click="contract(toolIndex)"
  4207. v-if="isCloseList[toolIndex].isClose == 1"
  4208. >
  4209. 展开
  4210. </div>
  4211. </div>
  4212. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4213. </div>
  4214. <div
  4215. class="group_workBox"
  4216. v-for="(g, gindex) in courseGroup.group"
  4217. :key="gindex"
  4218. >
  4219. <div class="group_box">
  4220. <div class="group_title">
  4221. <el-tooltip
  4222. class="item"
  4223. effect="light"
  4224. :content="g.name"
  4225. placement="top"
  4226. >
  4227. <div class="group_name">{{ g.name }}</div>
  4228. </el-tooltip>
  4229. </div>
  4230. <div
  4231. class="group_work"
  4232. v-if="
  4233. g.works &&
  4234. g.works.length &&
  4235. g.works[toolIndex].length
  4236. "
  4237. >
  4238. <div
  4239. class="works"
  4240. style="
  4241. width: 200px;
  4242. height: 140px;
  4243. margin: 10px 10px 10px 0;
  4244. border-radius: 15px;
  4245. box-shadow: 0 0 6px 1px #dfdada;
  4246. "
  4247. v-for="(w, wIndex) in g.works[toolIndex]"
  4248. :key="wIndex"
  4249. :class="w.type == 1 ? 'isTypeOne' : ''"
  4250. >
  4251. <div class="workImg">
  4252. <img
  4253. :src="w.works"
  4254. @click="previewImg(w.works)"
  4255. alt
  4256. />
  4257. <div
  4258. class="answerScore"
  4259. v-if="w.score"
  4260. @click.stop="openScore(w)"
  4261. :class="{
  4262. rightW:
  4263. w.userid == userid ||
  4264. tType == 1 ||
  4265. tType == 4,
  4266. }"
  4267. >
  4268. {{ JSON.parse(w.score).wScore }}分
  4269. </div>
  4270. <div
  4271. class="answerScore"
  4272. @click.stop="openScore(w)"
  4273. v-else-if="courseDetail.userid == userid"
  4274. :class="{
  4275. rightW:
  4276. w.userid == userid ||
  4277. tType == 1 ||
  4278. tType == 4,
  4279. }"
  4280. >
  4281. 评分
  4282. </div>
  4283. <img
  4284. class="deleteImg"
  4285. src="../assets/deleteworks.png"
  4286. v-if="
  4287. w.userid == userid || tType == 1 || tType == 4
  4288. "
  4289. @click.stop="deleteWorks(w.wid)"
  4290. alt
  4291. />
  4292. </div>
  4293. <div class="comment" style="min-width: 200px">
  4294. <div class="worksName">
  4295. <div>{{ w.sName }}</div>
  4296. </div>
  4297. <div class="commentList">
  4298. <div class="commentList">
  4299. <div
  4300. class="commentImg"
  4301. @click="
  4302. isLikes(w.wid, userid, 1, null, w.isLikes)
  4303. "
  4304. >
  4305. <img
  4306. :src="w.isLikes == true ? likes : noLikes"
  4307. alt=""
  4308. />
  4309. </div>
  4310. <div>{{ w.likesCount }}</div>
  4311. </div>
  4312. <div
  4313. class="commentList"
  4314. style="margin-right: 15px"
  4315. >
  4316. <div
  4317. class="commentImg"
  4318. @click="commentOther(w, toolIndex, wIndex)"
  4319. >
  4320. <img
  4321. src="../assets/icon/comment/comment.png"
  4322. alt=""
  4323. />
  4324. </div>
  4325. <div>{{ w.commentCount }}</div>
  4326. </div>
  4327. </div>
  4328. </div>
  4329. </div>
  4330. </div>
  4331. <div class="group_work" v-else>暂无提交作业</div>
  4332. </div>
  4333. </div>
  4334. <div
  4335. class="worksDetailBox"
  4336. v-if="
  4337. worksStudent.length &&
  4338. worksStudent[toolIndex].length > 0
  4339. "
  4340. >
  4341. <div
  4342. class="works"
  4343. style="
  4344. width: 200px;
  4345. height: 140px;
  4346. margin: 10px 10px 10px 0;
  4347. border-radius: 15px;
  4348. box-shadow: 0 0 6px 1px #dfdada;
  4349. "
  4350. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4351. 0
  4352. ? worksStudent[toolIndex]
  4353. : worksStudent[toolIndex].slice(0, 6)"
  4354. :key="wIndex"
  4355. >
  4356. <!-- @click="previewImg(w.works)" -->
  4357. <div class="workImg">
  4358. <img
  4359. :src="w.works"
  4360. @click="previewImg(w.works)"
  4361. alt
  4362. />
  4363. <div
  4364. class="answerScore"
  4365. v-if="w.score"
  4366. @click.stop="openScore(w)"
  4367. :class="{
  4368. rightW:
  4369. w.userid == userid || tType == 1 || tType == 4,
  4370. }"
  4371. >
  4372. {{ JSON.parse(w.score).wScore }}分
  4373. </div>
  4374. <div
  4375. class="answerScore"
  4376. @click.stop="openScore(w)"
  4377. v-else-if="courseDetail.userid == userid"
  4378. :class="{
  4379. rightW:
  4380. w.userid == userid || tType == 1 || tType == 4,
  4381. }"
  4382. >
  4383. 评分
  4384. </div>
  4385. <img
  4386. class="deleteImg"
  4387. src="../assets/deleteworks.png"
  4388. v-if="
  4389. w.userid == userid || tType == 1 || tType == 4
  4390. "
  4391. @click.stop="deleteWorks(w.wid)"
  4392. alt
  4393. />
  4394. </div>
  4395. <div class="comment" style="min-width: 200px">
  4396. <div class="worksName">
  4397. <div>{{ w.sName }}</div>
  4398. </div>
  4399. <div class="commentList">
  4400. <div class="commentList">
  4401. <div
  4402. class="commentImg"
  4403. @click="
  4404. isLikes(w.wid, userid, 1, null, w.isLikes)
  4405. "
  4406. >
  4407. <img
  4408. :src="w.isLikes == true ? likes : noLikes"
  4409. alt=""
  4410. />
  4411. </div>
  4412. <div>{{ w.likesCount }}</div>
  4413. </div>
  4414. <div class="commentList" style="margin-right: 15px">
  4415. <div
  4416. class="commentImg"
  4417. @click="commentOther(w, toolIndex, wIndex)"
  4418. >
  4419. <img
  4420. src="../assets/icon/comment/comment.png"
  4421. alt=""
  4422. />
  4423. </div>
  4424. <div>{{ w.commentCount }}</div>
  4425. </div>
  4426. </div>
  4427. </div>
  4428. </div>
  4429. </div>
  4430. <div style="font-size: 18px">未提交</div>
  4431. <div class="noWorksS">
  4432. <div
  4433. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4434. :key="sIndex"
  4435. class="noWorksName"
  4436. >
  4437. {{ s.student }}
  4438. </div>
  4439. </div>
  4440. </div>
  4441. <div
  4442. v-if="
  4443. tType &&
  4444. ((tType == 2 && sIsOpen == true) ||
  4445. tType == 1 ||
  4446. tType == 4) &&
  4447. tool.tool.indexOf(7) != -1
  4448. "
  4449. class="worksBox"
  4450. >
  4451. <div
  4452. class="zuoyeYulan"
  4453. v-if="
  4454. worksStudent.length &&
  4455. worksStudent[toolIndex].length > 0
  4456. "
  4457. >
  4458. <div class="worksTop">
  4459. <div>作业预览</div>
  4460. <div
  4461. class="corOpen"
  4462. @click="contract(toolIndex)"
  4463. v-if="
  4464. worksStudent[toolIndex].length > 6 &&
  4465. isCloseList[toolIndex].isClose == 0
  4466. "
  4467. >
  4468. 收缩
  4469. </div>
  4470. <div
  4471. class="corOpen"
  4472. @click="contract(toolIndex)"
  4473. v-if="isCloseList[toolIndex].isClose == 1"
  4474. >
  4475. 展开
  4476. </div>
  4477. </div>
  4478. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4479. </div>
  4480. <div
  4481. class="group_workBox"
  4482. v-for="(g, gindex) in courseGroup.group"
  4483. :key="gindex"
  4484. >
  4485. <div class="group_box">
  4486. <div class="group_title">
  4487. <el-tooltip
  4488. class="item"
  4489. effect="light"
  4490. :content="g.name"
  4491. placement="top"
  4492. >
  4493. <div class="group_name">{{ g.name }}</div>
  4494. </el-tooltip>
  4495. </div>
  4496. <div
  4497. class="group_work"
  4498. v-if="
  4499. g.works &&
  4500. g.works.length &&
  4501. g.works[toolIndex].length
  4502. "
  4503. >
  4504. <div
  4505. class="works"
  4506. style="
  4507. width: 200px;
  4508. height: 140px;
  4509. margin: 10px 10px 10px 0;
  4510. border-radius: 15px;
  4511. box-shadow: 0 0 6px 1px #dfdada;
  4512. "
  4513. v-for="(w, wIndex) in g.works[toolIndex]"
  4514. :key="wIndex"
  4515. :class="w.type == 1 ? 'isTypeOne' : ''"
  4516. >
  4517. <div class="workImg">
  4518. <img
  4519. :src="w.works"
  4520. @click="previewImg(w.works)"
  4521. alt
  4522. />
  4523. <div
  4524. class="answerScore"
  4525. v-if="w.score"
  4526. @click.stop="openScore(w)"
  4527. :class="{
  4528. rightW:
  4529. w.userid == userid ||
  4530. tType == 1 ||
  4531. tType == 4,
  4532. }"
  4533. >
  4534. {{ JSON.parse(w.score).wScore }}分
  4535. </div>
  4536. <div
  4537. class="answerScore"
  4538. @click.stop="openScore(w)"
  4539. v-else-if="courseDetail.userid == userid"
  4540. :class="{
  4541. rightW:
  4542. w.userid == userid ||
  4543. tType == 1 ||
  4544. tType == 4,
  4545. }"
  4546. >
  4547. 评分
  4548. </div>
  4549. <img
  4550. class="deleteImg"
  4551. src="../assets/deleteworks.png"
  4552. v-if="
  4553. w.userid == userid || tType == 1 || tType == 4
  4554. "
  4555. @click.stop="deleteWorks(w.wid)"
  4556. alt
  4557. />
  4558. </div>
  4559. <div class="comment" style="min-width: 200px">
  4560. <div class="worksName">
  4561. <div>{{ w.sName }}</div>
  4562. </div>
  4563. <div class="commentList">
  4564. <div class="commentList">
  4565. <div
  4566. class="commentImg"
  4567. @click="
  4568. isLikes(w.wid, userid, 1, null, w.isLikes)
  4569. "
  4570. >
  4571. <img
  4572. :src="w.isLikes == true ? likes : noLikes"
  4573. alt=""
  4574. />
  4575. </div>
  4576. <div>{{ w.likesCount }}</div>
  4577. </div>
  4578. <div
  4579. class="commentList"
  4580. style="margin-right: 15px"
  4581. >
  4582. <div
  4583. class="commentImg"
  4584. @click="commentOther(w, toolIndex, wIndex)"
  4585. >
  4586. <img
  4587. src="../assets/icon/comment/comment.png"
  4588. alt=""
  4589. />
  4590. </div>
  4591. <div>{{ w.commentCount }}</div>
  4592. </div>
  4593. </div>
  4594. </div>
  4595. </div>
  4596. </div>
  4597. <div class="group_work" v-else>暂无提交作业</div>
  4598. </div>
  4599. </div>
  4600. <div
  4601. class="worksDetailBox"
  4602. v-if="
  4603. worksStudent.length &&
  4604. worksStudent[toolIndex].length > 0
  4605. "
  4606. >
  4607. <div
  4608. class="works"
  4609. style="
  4610. width: 200px;
  4611. height: 140px;
  4612. margin: 10px 10px 10px 0;
  4613. border-radius: 15px;
  4614. box-shadow: 0 0 6px 1px #dfdada;
  4615. "
  4616. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4617. 0
  4618. ? worksStudent[toolIndex]
  4619. : worksStudent[toolIndex].slice(0, 6)"
  4620. :key="wIndex"
  4621. >
  4622. <!-- @click="previewImg(w.works)" -->
  4623. <div class="workImg">
  4624. <img
  4625. :src="w.works"
  4626. @click="previewImg(w.works)"
  4627. alt
  4628. />
  4629. <div
  4630. class="answerScore"
  4631. v-if="w.score"
  4632. @click.stop="openScore(w)"
  4633. :class="{
  4634. rightW:
  4635. w.userid == userid || tType == 1 || tType == 4,
  4636. }"
  4637. >
  4638. {{ JSON.parse(w.score).wScore }}分
  4639. </div>
  4640. <div
  4641. class="answerScore"
  4642. @click.stop="openScore(w)"
  4643. v-else-if="courseDetail.userid == userid"
  4644. :class="{
  4645. rightW:
  4646. w.userid == userid || tType == 1 || tType == 4,
  4647. }"
  4648. >
  4649. 评分
  4650. </div>
  4651. <img
  4652. class="deleteImg"
  4653. src="../assets/deleteworks.png"
  4654. v-if="
  4655. w.userid == userid || tType == 1 || tType == 4
  4656. "
  4657. @click.stop="deleteWorks(w.wid)"
  4658. alt
  4659. />
  4660. </div>
  4661. <div class="comment" style="min-width: 200px">
  4662. <div class="worksName">
  4663. <div>{{ w.sName }}</div>
  4664. </div>
  4665. <div class="commentList">
  4666. <div class="commentList">
  4667. <div
  4668. class="commentImg"
  4669. @click="
  4670. isLikes(w.wid, userid, 1, null, w.isLikes)
  4671. "
  4672. >
  4673. <img
  4674. :src="w.isLikes == true ? likes : noLikes"
  4675. alt=""
  4676. />
  4677. </div>
  4678. <div>{{ w.likesCount }}</div>
  4679. </div>
  4680. <div class="commentList" style="margin-right: 15px">
  4681. <div
  4682. class="commentImg"
  4683. @click="commentOther(w, toolIndex, wIndex)"
  4684. >
  4685. <img
  4686. src="../assets/icon/comment/comment.png"
  4687. alt=""
  4688. />
  4689. </div>
  4690. <div>{{ w.commentCount }}</div>
  4691. </div>
  4692. </div>
  4693. </div>
  4694. </div>
  4695. </div>
  4696. <div style="font-size: 18px">未提交</div>
  4697. <div class="noWorksS">
  4698. <div
  4699. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4700. :key="sIndex"
  4701. class="noWorksName"
  4702. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  4703. >
  4704. {{ s.student }}
  4705. </div>
  4706. </div>
  4707. </div>
  4708. <div
  4709. v-if="
  4710. tType &&
  4711. ((tType == 2 && sIsOpen == true) ||
  4712. tType == 1 ||
  4713. tType == 4) &&
  4714. tool.tool.indexOf(26) != -1
  4715. "
  4716. class="worksBox"
  4717. >
  4718. <div
  4719. class="zuoyeYulan"
  4720. v-if="
  4721. worksStudent.length &&
  4722. worksStudent[toolIndex].length > 0
  4723. "
  4724. >
  4725. <div class="worksTop">
  4726. <div>作业预览</div>
  4727. <div
  4728. class="corOpen"
  4729. @click="contract(toolIndex)"
  4730. v-if="
  4731. worksStudent[toolIndex].length > 6 &&
  4732. isCloseList[toolIndex].isClose == 0
  4733. "
  4734. >
  4735. 收缩
  4736. </div>
  4737. <div
  4738. class="corOpen"
  4739. @click="contract(toolIndex)"
  4740. v-if="isCloseList[toolIndex].isClose == 1"
  4741. >
  4742. 展开
  4743. </div>
  4744. </div>
  4745. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4746. </div>
  4747. <div
  4748. class="worksDetailBox"
  4749. v-if="
  4750. worksStudent.length &&
  4751. worksStudent[toolIndex].length > 0
  4752. "
  4753. >
  4754. <div
  4755. class="works"
  4756. style="width: 240px; height: 140px; overflow: hidden"
  4757. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4758. 0
  4759. ? worksStudent[toolIndex]
  4760. : worksStudent[toolIndex].slice(0, 6)"
  4761. :key="wIndex"
  4762. :class="w.type == 1 ? 'isTypeOne' : ''"
  4763. >
  4764. <div class="workImg" v-if="w.type == 0">
  4765. <img
  4766. :src="w.works"
  4767. @click="previewImg(w.works)"
  4768. alt
  4769. />
  4770. <img
  4771. class="deleteImg"
  4772. src="../assets/deleteworks.png"
  4773. v-if="
  4774. w.userid == userid || tType == 1 || tType == 4
  4775. "
  4776. @click.stop="deleteWorks(w.wid)"
  4777. alt
  4778. />
  4779. </div>
  4780. <div class="workImg" v-if="w.type == 1">
  4781. <img :src="word" @click="openFile(w.works)" alt />
  4782. <img
  4783. class="deleteImg"
  4784. src="../assets/deleteworks.png"
  4785. v-if="
  4786. w.userid == userid || tType == 1 || tType == 4
  4787. "
  4788. @click.stop="deleteWorks(w.wid)"
  4789. alt
  4790. />
  4791. </div>
  4792. <div class="worksName">
  4793. <div>{{ w.sName }}</div>
  4794. </div>
  4795. </div>
  4796. </div>
  4797. <div style="font-size: 18px">未提交</div>
  4798. <div class="noWorksS">
  4799. <div
  4800. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4801. :key="sIndex"
  4802. class="noWorksName"
  4803. >
  4804. {{ s.student }}
  4805. </div>
  4806. </div>
  4807. </div>
  4808. <div
  4809. v-if="
  4810. tType &&
  4811. ((tType == 2 && sIsOpen == true) ||
  4812. tType == 1 ||
  4813. tType == 4) &&
  4814. tool.tool.indexOf(40) != -1
  4815. "
  4816. class="worksBox"
  4817. >
  4818. <div
  4819. class="zuoyeYulan"
  4820. v-if="
  4821. worksStudent.length &&
  4822. worksStudent[toolIndex].length > 0
  4823. "
  4824. >
  4825. <div class="worksTop">
  4826. <div>作业预览</div>
  4827. <div
  4828. class="corOpen"
  4829. @click="contract(toolIndex)"
  4830. v-if="
  4831. worksStudent[toolIndex].length > 6 &&
  4832. isCloseList[toolIndex].isClose == 0
  4833. "
  4834. >
  4835. 收缩
  4836. </div>
  4837. <div
  4838. class="corOpen"
  4839. @click="contract(toolIndex)"
  4840. v-if="isCloseList[toolIndex].isClose == 1"
  4841. >
  4842. 展开
  4843. </div>
  4844. </div>
  4845. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4846. </div>
  4847. <div
  4848. class="worksDetailBox"
  4849. v-if="
  4850. worksStudent.length &&
  4851. worksStudent[toolIndex].length > 0
  4852. "
  4853. >
  4854. <div
  4855. class="works"
  4856. style="
  4857. width: 200px;
  4858. height: 140px;
  4859. margin: 10px 10px 10px 0;
  4860. border-radius: 15px;
  4861. box-shadow: 0 0 6px 1px #dfdada;
  4862. "
  4863. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4864. 0
  4865. ? worksStudent[toolIndex]
  4866. : worksStudent[toolIndex].slice(0, 6)"
  4867. :key="wIndex"
  4868. :class="w.type == 1 ? 'isTypeOne' : ''"
  4869. >
  4870. <div class="workImg">
  4871. <img
  4872. src="../assets/icon/works/noImg.png"
  4873. @click="openPj(w.works, toolIndex)"
  4874. alt
  4875. />
  4876. <img
  4877. class="deleteImg"
  4878. src="../assets/deleteworks.png"
  4879. v-if="
  4880. w.userid == userid || tType == 1 || tType == 4
  4881. "
  4882. @click.stop="deleteWorks(w.wid)"
  4883. alt
  4884. />
  4885. </div>
  4886. <div class="comment" style="min-width: 200px">
  4887. <div class="worksName">
  4888. <div>{{ w.sName }}</div>
  4889. </div>
  4890. <div class="commentList">
  4891. <div class="commentList">
  4892. <div
  4893. class="commentImg"
  4894. @click="
  4895. isLikes(w.wid, userid, 1, null, w.isLikes)
  4896. "
  4897. >
  4898. <img
  4899. :src="w.isLikes == true ? likes : noLikes"
  4900. alt=""
  4901. />
  4902. </div>
  4903. <div>{{ w.likesCount }}</div>
  4904. </div>
  4905. <div class="commentList" style="margin-right: 15px">
  4906. <div
  4907. class="commentImg"
  4908. @click="commentOther(w, toolIndex, wIndex)"
  4909. >
  4910. <img
  4911. src="../assets/icon/comment/comment.png"
  4912. alt=""
  4913. />
  4914. </div>
  4915. <div>{{ w.commentCount }}</div>
  4916. </div>
  4917. </div>
  4918. </div>
  4919. </div>
  4920. </div>
  4921. <div style="font-size: 18px">未提交</div>
  4922. <div class="noWorksS">
  4923. <div
  4924. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4925. :key="sIndex"
  4926. class="noWorksName"
  4927. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  4928. >
  4929. {{ s.student }}
  4930. </div>
  4931. </div>
  4932. </div>
  4933. <div
  4934. v-if="
  4935. tType &&
  4936. tType == 2 &&
  4937. !sIsOpen &&
  4938. tool.tool.indexOf(40) != -1
  4939. "
  4940. class="worksBox"
  4941. >
  4942. <div
  4943. class="zuoyeYulan"
  4944. v-if="workStudent[toolIndex].length > 0"
  4945. >
  4946. <span>作业预览</span>
  4947. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4948. </div>
  4949. <div
  4950. class="worksDetailBox"
  4951. v-if="workStudent[toolIndex].length > 0"
  4952. >
  4953. <div
  4954. class="works"
  4955. style="
  4956. width: 200px;
  4957. height: 140px;
  4958. margin: 10px 10px 10px 0;
  4959. "
  4960. v-for="(w, wIndex) in workStudent[toolIndex]"
  4961. :key="wIndex"
  4962. >
  4963. <div class="workImg">
  4964. <img
  4965. src="../assets/icon/works/noImg.png"
  4966. @click="openPj(w.works, toolIndex)"
  4967. alt
  4968. />
  4969. <img
  4970. class="deleteImg"
  4971. src="../assets/deleteworks.png"
  4972. v-if="
  4973. w.userid == userid || tType == 1 || tType == 4
  4974. "
  4975. @click.stop="deleteWorks(w.wid)"
  4976. alt
  4977. />
  4978. </div>
  4979. <div class="worksName">
  4980. <div>{{ w.sName }}</div>
  4981. </div>
  4982. </div>
  4983. </div>
  4984. </div>
  4985. <div
  4986. v-if="
  4987. tType &&
  4988. ((tType == 2 && sIsOpen == true) ||
  4989. tType == 1 ||
  4990. tType == 4) &&
  4991. tool.tool.indexOf(41) != -1
  4992. "
  4993. >
  4994. <AnswerData2
  4995. v-if="
  4996. worksStudent.length &&
  4997. worksStudent[toolIndex].length > 0
  4998. "
  4999. :problemJson="tool.selectJson.answer"
  5000. :people="worksStudent[toolIndex]"
  5001. ></AnswerData2>
  5002. </div>
  5003. <div
  5004. v-if="
  5005. tType &&
  5006. ((tType == 2 && sIsOpen == true) ||
  5007. tType == 1 ||
  5008. tType == 4) &&
  5009. tool.tool.indexOf(41) != -1
  5010. "
  5011. class="worksBox"
  5012. >
  5013. <div
  5014. class="zuoyeYulan"
  5015. v-if="
  5016. worksStudent.length &&
  5017. worksStudent[toolIndex].length > 0
  5018. "
  5019. >
  5020. <div class="worksTop">
  5021. <div>作业预览</div>
  5022. <div
  5023. class="corOpen"
  5024. @click="contract(toolIndex)"
  5025. v-if="
  5026. worksStudent[toolIndex].length > 6 &&
  5027. isCloseList[toolIndex].isClose == 0
  5028. "
  5029. >
  5030. 收缩
  5031. </div>
  5032. <div
  5033. class="corOpen"
  5034. @click="contract(toolIndex)"
  5035. v-if="isCloseList[toolIndex].isClose == 1"
  5036. >
  5037. 展开
  5038. </div>
  5039. </div>
  5040. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5041. </div>
  5042. <div
  5043. class="worksDetailBox"
  5044. v-if="
  5045. worksStudent.length &&
  5046. worksStudent[toolIndex].length > 0
  5047. "
  5048. >
  5049. <div
  5050. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5051. 0
  5052. ? worksStudent[toolIndex]
  5053. : worksStudent[toolIndex].slice(0, 6)"
  5054. :key="wIndex"
  5055. class="isWorksName"
  5056. @click="openXz(w, toolIndex)"
  5057. >
  5058. {{ w.sName }}
  5059. <img
  5060. class="deleteImg deleteImg2"
  5061. src="../assets/deleteworks.png"
  5062. v-if="w.userid == userid || tType == 1 || tType == 4"
  5063. @click.stop="deleteWorks(w.wid)"
  5064. alt
  5065. />
  5066. </div>
  5067. <!-- <div
  5068. class="works"
  5069. style="
  5070. width: 200px;
  5071. height: 140px;
  5072. margin: 10px 10px 10px 0;
  5073. border-radius: 15px;
  5074. box-shadow: 0 0 6px 1px #dfdada;
  5075. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5076. :class="w.type == 5 ? 'isTypeOne' : ''">
  5077. <div class="workImg">
  5078. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5079. </div>
  5080. <div class="worksName">
  5081. <div>{{ w.sName }}</div>
  5082. </div>
  5083. </div> -->
  5084. </div>
  5085. <div style="font-size: 18px">未提交</div>
  5086. <div class="noWorksS">
  5087. <div
  5088. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5089. :key="sIndex"
  5090. class="noWorksName"
  5091. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5092. >
  5093. {{ s.student }}
  5094. </div>
  5095. </div>
  5096. </div>
  5097. <div
  5098. v-if="
  5099. tType &&
  5100. tType == 2 &&
  5101. !sIsOpen &&
  5102. tool.tool.indexOf(41) != -1
  5103. "
  5104. class="worksBox"
  5105. >
  5106. <div
  5107. class="zuoyeYulan"
  5108. v-if="workStudent[toolIndex].length > 0"
  5109. >
  5110. <span>作业预览</span>
  5111. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5112. </div>
  5113. <div
  5114. class="worksDetailBox"
  5115. v-if="workStudent[toolIndex].length > 0"
  5116. >
  5117. <div
  5118. class="works"
  5119. style="
  5120. width: 200px;
  5121. height: 140px;
  5122. margin: 10px 10px 10px 0;
  5123. "
  5124. v-for="(w, wIndex) in workStudent[toolIndex]"
  5125. :key="wIndex"
  5126. >
  5127. <div class="workImg">
  5128. <img
  5129. src="../assets/icon/works/noImg.png"
  5130. @click="openXz(w, toolIndex)"
  5131. alt
  5132. />
  5133. <img
  5134. class="deleteImg"
  5135. src="../assets/deleteworks.png"
  5136. v-if="
  5137. w.userid == userid || tType == 1 || tType == 4
  5138. "
  5139. @click.stop="deleteWorks(w.wid)"
  5140. alt
  5141. />
  5142. </div>
  5143. <div class="worksName">
  5144. <div>{{ w.sName }}</div>
  5145. </div>
  5146. </div>
  5147. </div>
  5148. </div>
  5149. <div v-if="false" class="xuan_right_box">
  5150. <div
  5151. class="tool_right_box"
  5152. v-for="(item, index) in tool.sentenceList"
  5153. :key="index"
  5154. >
  5155. <div>
  5156. <span>{{ index + 1 + "、" + item.sentenceTitle }}</span>
  5157. </div>
  5158. <div class="right_box_xuan">
  5159. <span>正确率</span>
  5160. <span>{{
  5161. (checkJson[toolIndex][index].right
  5162. ? checkJson[toolIndex][index].right
  5163. : 0) + "%"
  5164. }}</span>
  5165. </div>
  5166. <div class="right_box_xuan">
  5167. <span>答对人数</span>
  5168. <span>{{
  5169. checkJson[toolIndex][index].rightPerson.length
  5170. }}</span>
  5171. </div>
  5172. </div>
  5173. </div>
  5174. <div
  5175. v-if="
  5176. tType &&
  5177. ((tType == 2 && sIsOpen == true) ||
  5178. tType == 1 ||
  5179. tType == 4) &&
  5180. tool.tool.indexOf(47) != -1
  5181. "
  5182. >
  5183. <AnswerData
  5184. v-if="
  5185. checkJson[toolIndex].length &&
  5186. (tool.sentenceList || tool.sentenceList.length > 0)
  5187. "
  5188. :people="checkJson[toolIndex]"
  5189. ></AnswerData>
  5190. </div>
  5191. <div
  5192. v-if="
  5193. tType &&
  5194. tType == 2 &&
  5195. !sIsOpen &&
  5196. tool.tool.indexOf(47) != -1
  5197. "
  5198. class="worksBox"
  5199. >
  5200. <div
  5201. class="zuoyeYulan"
  5202. v-if="workStudent[toolIndex].length > 0"
  5203. >
  5204. <span>作业预览</span>
  5205. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5206. </div>
  5207. <div
  5208. class="worksDetailBox"
  5209. v-if="workStudent[toolIndex].length > 0"
  5210. >
  5211. <div
  5212. class="works"
  5213. style="
  5214. width: 200px;
  5215. height: 140px;
  5216. margin: 10px 10px 10px 0;
  5217. "
  5218. v-for="(w, wIndex) in workStudent[toolIndex]"
  5219. :key="wIndex"
  5220. >
  5221. <!-- @click="openXz(w, toolIndex)" -->
  5222. <div class="workImg" @click="openSen(w, toolIndex)">
  5223. <img src="../assets/icon/works/noImg.png" alt />
  5224. <img
  5225. class="deleteImg"
  5226. src="../assets/deleteworks.png"
  5227. v-if="
  5228. w.userid == userid || tType == 1 || tType == 4
  5229. "
  5230. @click.stop="deleteWorks(w.wid)"
  5231. alt
  5232. />
  5233. </div>
  5234. <div class="worksName">
  5235. <div>
  5236. {{ w.sName }}
  5237. </div>
  5238. </div>
  5239. </div>
  5240. </div>
  5241. </div>
  5242. <div
  5243. v-if="
  5244. tType &&
  5245. ((tType == 2 && sIsOpen == true) ||
  5246. tType == 1 ||
  5247. tType == 4) &&
  5248. tool.tool.indexOf(47) != -1
  5249. "
  5250. class="worksBox"
  5251. >
  5252. <div
  5253. class="zuoyeYulan"
  5254. v-if="
  5255. worksStudent.length &&
  5256. worksStudent[toolIndex].length > 0
  5257. "
  5258. >
  5259. <div class="worksTop">
  5260. <div>作业预览</div>
  5261. <div
  5262. class="corOpen"
  5263. @click="contract(toolIndex)"
  5264. v-if="
  5265. worksStudent[toolIndex].length > 6 &&
  5266. isCloseList[toolIndex].isClose == 0
  5267. "
  5268. >
  5269. 收缩
  5270. </div>
  5271. <div
  5272. class="corOpen"
  5273. @click="contract(toolIndex)"
  5274. v-if="isCloseList[toolIndex].isClose == 1"
  5275. >
  5276. 展开
  5277. </div>
  5278. </div>
  5279. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5280. </div>
  5281. <div
  5282. class="worksDetailBox"
  5283. v-if="
  5284. worksStudent.length &&
  5285. worksStudent[toolIndex].length > 0
  5286. "
  5287. >
  5288. <!-- @click="openXz(w, toolIndex)" -->
  5289. <div
  5290. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5291. 0
  5292. ? worksStudent[toolIndex]
  5293. : worksStudent[toolIndex].slice(0, 6)"
  5294. :key="wIndex"
  5295. class="isWorksName"
  5296. @click="openSen(w, toolIndex)"
  5297. >
  5298. {{ w.sName }}
  5299. <img
  5300. class="deleteImg deleteImg2"
  5301. src="../assets/deleteworks.png"
  5302. v-if="w.userid == userid || tType == 1 || tType == 4"
  5303. @click.stop="deleteWorks(w.wid)"
  5304. alt
  5305. />
  5306. </div>
  5307. </div>
  5308. <div style="font-size: 18px">未提交</div>
  5309. <div class="noWorksS">
  5310. <div
  5311. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5312. :key="sIndex"
  5313. class="noWorksName"
  5314. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5315. >
  5316. {{ s.student }}
  5317. </div>
  5318. </div>
  5319. </div>
  5320. <div
  5321. v-if="
  5322. tType &&
  5323. ((tType == 2 && sIsOpen == true) ||
  5324. tType == 1 ||
  5325. tType == 4) &&
  5326. tool.tool.indexOf(48) != -1
  5327. "
  5328. class="worksBox"
  5329. >
  5330. <div
  5331. class="zuoyeYulan"
  5332. v-if="
  5333. worksStudent.length &&
  5334. worksStudent[toolIndex].length > 0
  5335. "
  5336. >
  5337. <div class="worksTop">
  5338. <div>作业预览</div>
  5339. <div
  5340. class="corOpen"
  5341. @click="contract(toolIndex)"
  5342. v-if="
  5343. worksStudent[toolIndex].length > 6 &&
  5344. isCloseList[toolIndex].isClose == 0
  5345. "
  5346. >
  5347. 收缩
  5348. </div>
  5349. <div
  5350. class="corOpen"
  5351. @click="contract(toolIndex)"
  5352. v-if="isCloseList[toolIndex].isClose == 1"
  5353. >
  5354. 展开
  5355. </div>
  5356. </div>
  5357. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5358. </div>
  5359. <div
  5360. class="worksDetailBox"
  5361. v-if="
  5362. worksStudent.length &&
  5363. worksStudent[toolIndex].length > 0
  5364. "
  5365. >
  5366. <div
  5367. class="works"
  5368. style="
  5369. width: 200px;
  5370. height: 140px;
  5371. margin: 10px 10px 10px 0;
  5372. border-radius: 15px;
  5373. box-shadow: 0 0 6px 1px #dfdada;
  5374. "
  5375. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5376. 0
  5377. ? worksStudent[toolIndex]
  5378. : worksStudent[toolIndex].slice(0, 6)"
  5379. :key="wIndex"
  5380. :class="w.type == 1 ? 'isTypeOne' : ''"
  5381. >
  5382. <div class="workImg">
  5383. <img :src="word" @click="openTable(w)" alt />
  5384. <!-- @click="openFile(w.works)" -->
  5385. <div
  5386. class="answerScore"
  5387. v-if="w.score"
  5388. @click.stop="openScore(w)"
  5389. :class="{
  5390. rightW:
  5391. w.userid == userid ||
  5392. tType == 1 ||
  5393. tType == 4 ||
  5394. w.ateacher == userid,
  5395. }"
  5396. >
  5397. {{ JSON.parse(w.score).wScore }}分
  5398. </div>
  5399. <div
  5400. class="answerScore"
  5401. @click.stop="openScore(w)"
  5402. v-else-if="courseDetail.userid == userid"
  5403. :class="{
  5404. rightW:
  5405. w.userid == userid ||
  5406. tType == 1 ||
  5407. tType == 4 ||
  5408. w.ateacher == userid,
  5409. }"
  5410. >
  5411. 评分
  5412. </div>
  5413. <img
  5414. class="deleteImg"
  5415. src="../assets/deleteworks.png"
  5416. v-if="
  5417. w.userid == userid || tType == 1 || tType == 4
  5418. "
  5419. @click.stop="deleteWorks(w.wid)"
  5420. alt
  5421. />
  5422. </div>
  5423. <div class="comment" style="min-width: 200px">
  5424. <div class="worksName">
  5425. <div>{{ w.sName }}</div>
  5426. </div>
  5427. <div class="commentList">
  5428. <div class="commentList">
  5429. <div
  5430. class="commentImg"
  5431. @click="
  5432. isLikes(w.wid, userid, 1, null, w.isLikes)
  5433. "
  5434. >
  5435. <img
  5436. :src="w.isLikes == true ? likes : noLikes"
  5437. alt=""
  5438. />
  5439. </div>
  5440. <div>{{ w.likesCount }}</div>
  5441. </div>
  5442. <div class="commentList" style="margin-right: 15px">
  5443. <div
  5444. class="commentImg"
  5445. @click="commentOther(w, toolIndex, wIndex)"
  5446. >
  5447. <img
  5448. src="../assets/icon/comment/comment.png"
  5449. alt=""
  5450. />
  5451. </div>
  5452. <div>{{ w.commentCount }}</div>
  5453. </div>
  5454. </div>
  5455. </div>
  5456. </div>
  5457. </div>
  5458. <div style="font-size: 18px">未提交</div>
  5459. <div class="noWorksS">
  5460. <div
  5461. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5462. :key="sIndex"
  5463. class="noWorksName"
  5464. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5465. >
  5466. {{ s.student }}
  5467. </div>
  5468. </div>
  5469. </div>
  5470. <div
  5471. v-if="
  5472. tType &&
  5473. tType == 2 &&
  5474. !sIsOpen &&
  5475. tool.tool.indexOf(48) != -1
  5476. "
  5477. class="worksBox"
  5478. >
  5479. <div
  5480. class="zuoyeYulan"
  5481. v-if="workStudent[toolIndex].length > 0"
  5482. >
  5483. <span>作业预览</span>
  5484. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5485. </div>
  5486. <div
  5487. class="worksDetailBox"
  5488. v-if="workStudent[toolIndex].length > 0"
  5489. >
  5490. <div
  5491. class="works"
  5492. style="
  5493. width: 200px;
  5494. height: 140px;
  5495. margin: 10px 10px 10px 0;
  5496. box-shadow: 0 0 6px 1px #dfdada;
  5497. "
  5498. v-for="(w, wIndex) in workStudent[toolIndex]"
  5499. :key="wIndex"
  5500. >
  5501. <div class="workImg">
  5502. <img :src="word" @click="openTable(w)" alt />
  5503. <div
  5504. class="answerScore"
  5505. v-if="w.score"
  5506. @click.stop="openScore(w)"
  5507. :class="{
  5508. rightW:
  5509. w.userid == userid || tType == 1 || tType == 4,
  5510. }"
  5511. >
  5512. {{ JSON.parse(w.score).wScore }}分
  5513. </div>
  5514. <div
  5515. class="answerScore"
  5516. @click.stop="openScore(w)"
  5517. v-else-if="courseDetail.userid == userid"
  5518. :class="{
  5519. rightW:
  5520. w.userid == userid || tType == 1 || tType == 4,
  5521. }"
  5522. >
  5523. 评分
  5524. </div>
  5525. <img
  5526. class="deleteImg"
  5527. src="../assets/deleteworks.png"
  5528. v-if="
  5529. w.userid == userid || tType == 1 || tType == 4
  5530. "
  5531. @click.stop="deleteWorks(w.wid)"
  5532. alt
  5533. />
  5534. </div>
  5535. <div class="worksName">
  5536. <div>{{ w.sName }}</div>
  5537. </div>
  5538. </div>
  5539. </div>
  5540. </div>
  5541. <div
  5542. v-if="
  5543. tType &&
  5544. ((tType == 2 && sIsOpen == true) ||
  5545. tType == 1 ||
  5546. tType == 4) &&
  5547. tool.tool.indexOf(52) != -1
  5548. "
  5549. class="worksBox"
  5550. >
  5551. <div
  5552. class="zuoyeYulan"
  5553. v-if="
  5554. worksStudent.length &&
  5555. worksStudent[toolIndex].length > 0
  5556. "
  5557. >
  5558. <div class="worksTop">
  5559. <div>作业预览</div>
  5560. <div
  5561. class="corOpen"
  5562. @click="contract(toolIndex)"
  5563. v-if="
  5564. worksStudent[toolIndex].length > 6 &&
  5565. isCloseList[toolIndex].isClose == 0
  5566. "
  5567. >
  5568. 收缩
  5569. </div>
  5570. <div
  5571. class="corOpen"
  5572. @click="contract(toolIndex)"
  5573. v-if="isCloseList[toolIndex].isClose == 1"
  5574. >
  5575. 展开
  5576. </div>
  5577. </div>
  5578. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5579. </div>
  5580. <div
  5581. class="worksDetailBox"
  5582. v-if="
  5583. worksStudent.length &&
  5584. worksStudent[toolIndex].length > 0
  5585. "
  5586. >
  5587. <div
  5588. class="works"
  5589. style="
  5590. width: 200px;
  5591. height: 140px;
  5592. margin: 10px 10px 10px 0;
  5593. border-radius: 15px;
  5594. box-shadow: 0 0 6px 1px #dfdada;
  5595. "
  5596. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5597. 0
  5598. ? worksStudent[toolIndex]
  5599. : worksStudent[toolIndex].slice(0, 6)"
  5600. :key="wIndex"
  5601. :class="w.type == 1 ? 'isTypeOne' : ''"
  5602. >
  5603. <div class="workImg">
  5604. <img :src="word" @click="openTable(w)" alt />
  5605. <!-- @click="openFile(w.works)" -->
  5606. <div
  5607. class="answerScore"
  5608. v-if="w.score"
  5609. @click.stop="openScore(w)"
  5610. :class="{
  5611. rightW:
  5612. w.userid == userid ||
  5613. tType == 1 ||
  5614. tType == 4 ||
  5615. w.ateacher == userid,
  5616. }"
  5617. >
  5618. {{ JSON.parse(w.score).wScore }}分
  5619. </div>
  5620. <div
  5621. class="answerScore"
  5622. @click.stop="openScore(w)"
  5623. v-else-if="courseDetail.userid == userid"
  5624. :class="{
  5625. rightW:
  5626. w.userid == userid ||
  5627. tType == 1 ||
  5628. tType == 4 ||
  5629. w.ateacher == userid,
  5630. }"
  5631. >
  5632. 评分
  5633. </div>
  5634. <img
  5635. class="deleteImg"
  5636. src="../assets/deleteworks.png"
  5637. v-if="
  5638. w.userid == userid || tType == 1 || tType == 4
  5639. "
  5640. @click.stop="deleteWorks(w.wid)"
  5641. alt
  5642. />
  5643. </div>
  5644. <div class="comment" style="min-width: 200px">
  5645. <div class="worksName">
  5646. <div>{{ w.sName }}</div>
  5647. </div>
  5648. <div class="commentList">
  5649. <div class="commentList">
  5650. <div
  5651. class="commentImg"
  5652. @click="
  5653. isLikes(w.wid, userid, 1, null, w.isLikes)
  5654. "
  5655. >
  5656. <img
  5657. :src="w.isLikes == true ? likes : noLikes"
  5658. alt=""
  5659. />
  5660. </div>
  5661. <div>{{ w.likesCount }}</div>
  5662. </div>
  5663. <div class="commentList" style="margin-right: 15px">
  5664. <div
  5665. class="commentImg"
  5666. @click="commentOther(w, toolIndex, wIndex)"
  5667. >
  5668. <img
  5669. src="../assets/icon/comment/comment.png"
  5670. alt=""
  5671. />
  5672. </div>
  5673. <div>{{ w.commentCount }}</div>
  5674. </div>
  5675. </div>
  5676. </div>
  5677. </div>
  5678. </div>
  5679. <div style="font-size: 18px">未提交</div>
  5680. <div class="noWorksS">
  5681. <div
  5682. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5683. :key="sIndex"
  5684. class="noWorksName"
  5685. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5686. >
  5687. {{ s.student }}
  5688. </div>
  5689. </div>
  5690. </div>
  5691. <div
  5692. v-if="
  5693. tType &&
  5694. tType == 2 &&
  5695. !sIsOpen &&
  5696. tool.tool.indexOf(52) != -1
  5697. "
  5698. class="worksBox"
  5699. >
  5700. <div
  5701. class="zuoyeYulan"
  5702. v-if="workStudent[toolIndex].length > 0"
  5703. >
  5704. <span>作业预览</span>
  5705. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5706. </div>
  5707. <div
  5708. class="worksDetailBox"
  5709. v-if="workStudent[toolIndex].length > 0"
  5710. >
  5711. <div
  5712. class="works"
  5713. style="
  5714. width: 200px;
  5715. height: 140px;
  5716. margin: 10px 10px 10px 0;
  5717. box-shadow: 0 0 6px 1px #dfdada;
  5718. "
  5719. v-for="(w, wIndex) in workStudent[toolIndex]"
  5720. :key="wIndex"
  5721. >
  5722. <div class="workImg">
  5723. <img :src="word" @click="openTable(w)" alt />
  5724. <div
  5725. class="answerScore"
  5726. v-if="w.score"
  5727. @click.stop="openScore(w)"
  5728. :class="{
  5729. rightW:
  5730. w.userid == userid || tType == 1 || tType == 4,
  5731. }"
  5732. >
  5733. {{ JSON.parse(w.score).wScore }}分
  5734. </div>
  5735. <div
  5736. class="answerScore"
  5737. @click.stop="openScore(w)"
  5738. v-else-if="courseDetail.userid == userid"
  5739. :class="{
  5740. rightW:
  5741. w.userid == userid || tType == 1 || tType == 4,
  5742. }"
  5743. >
  5744. 评分
  5745. </div>
  5746. <img
  5747. class="deleteImg"
  5748. src="../assets/deleteworks.png"
  5749. v-if="
  5750. w.userid == userid || tType == 1 || tType == 4
  5751. "
  5752. @click.stop="deleteWorks(w.wid)"
  5753. alt
  5754. />
  5755. </div>
  5756. <div class="worksName">
  5757. <div>{{ w.sName }}</div>
  5758. </div>
  5759. </div>
  5760. </div>
  5761. </div>
  5762. <div
  5763. v-if="tool.tool.indexOf(49) != -1"
  5764. class="xuan_right_box"
  5765. >
  5766. <div
  5767. v-if="courseDetail.userid == userid"
  5768. style="display: flex; justify-content: flex-end"
  5769. >
  5770. <el-button
  5771. type="primary"
  5772. size="small"
  5773. @click="addTools(49, toolIndex, taskCount)"
  5774. >分组设置</el-button
  5775. >
  5776. </div>
  5777. <div
  5778. v-if="groupStudentUid[toolIndex]"
  5779. class="group_staic_box"
  5780. >
  5781. <div
  5782. v-for="(gp, gd) in tool.groupJson.group"
  5783. :key="gd"
  5784. class="group_staic"
  5785. >
  5786. <span> {{ gp.name }}</span>
  5787. <span>
  5788. 目前人数{{
  5789. groupStudentUid[toolIndex][gd].length
  5790. }}人</span
  5791. >
  5792. </div>
  5793. </div>
  5794. </div>
  5795. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  5796. <div
  5797. class="zuoyeYulan"
  5798. v-if="
  5799. worksStudent.length &&
  5800. worksStudent[toolIndex].length > 0
  5801. "
  5802. >
  5803. <span>作业预览</span>
  5804. </div>
  5805. <div>
  5806. <div
  5807. class="group_workBox"
  5808. v-for="(g, gindex) in tool.groupJson.group"
  5809. :key="gindex"
  5810. >
  5811. <div
  5812. class="group_box"
  5813. v-if="
  5814. groupStudentUid[toolIndex] &&
  5815. worksStudent[toolIndex] &&
  5816. (worksStudent[toolIndex][gindex].length ||
  5817. groupStudentUid[toolIndex][gindex].indexOf(
  5818. userid
  5819. ) != -1)
  5820. "
  5821. >
  5822. <div class="group_title">
  5823. <el-tooltip
  5824. class="item"
  5825. effect="light"
  5826. :content="g.name"
  5827. placement="top"
  5828. >
  5829. <div class="group_name">{{ g.name }}</div>
  5830. </el-tooltip>
  5831. <el-button
  5832. type="primary"
  5833. v-if="
  5834. groupStudentUid[toolIndex][gindex].indexOf(
  5835. userid
  5836. ) != -1
  5837. "
  5838. @click="groupUpload(toolIndex, taskCount, gindex)"
  5839. >上传作业</el-button
  5840. >
  5841. </div>
  5842. <div class="group_work">
  5843. <div
  5844. class="works"
  5845. style="
  5846. width: 200px;
  5847. height: 140px;
  5848. margin: 10px 10px 10px 0;
  5849. border-radius: 15px;
  5850. box-shadow: 0 0 6px 1px #dfdada;
  5851. "
  5852. v-for="(w, wIndex) in worksStudent[toolIndex][
  5853. gindex
  5854. ]"
  5855. :key="wIndex"
  5856. :class="w.type == 1 ? 'isTypeOne' : ''"
  5857. >
  5858. <div class="workImg" v-if="w.type == 0">
  5859. <img
  5860. :src="w.works"
  5861. @click="previewImg(w.works)"
  5862. alt
  5863. />
  5864. <div
  5865. class="answerScore"
  5866. v-if="w.score"
  5867. @click.stop="openScore(w)"
  5868. :class="{
  5869. rightW:
  5870. w.userid == userid ||
  5871. tType == 1 ||
  5872. tType == 4 ||
  5873. w.ateacher == userid,
  5874. }"
  5875. >
  5876. {{ JSON.parse(w.score).wScore }}分
  5877. </div>
  5878. <div
  5879. class="answerScore"
  5880. @click.stop="openScore(w)"
  5881. v-else-if="courseDetail.userid == userid"
  5882. :class="{
  5883. rightW:
  5884. w.userid == userid ||
  5885. tType == 1 ||
  5886. tType == 4 ||
  5887. w.ateacher == userid,
  5888. }"
  5889. >
  5890. 评分
  5891. </div>
  5892. <img
  5893. class="deleteImg"
  5894. src="../assets/deleteworks.png"
  5895. v-if="
  5896. w.userid == userid ||
  5897. tType == 1 ||
  5898. tType == 4
  5899. "
  5900. @click.stop="deleteWorks(w.wid)"
  5901. alt
  5902. />
  5903. </div>
  5904. <div class="workImg" v-if="w.type == 1">
  5905. <img
  5906. :src="word"
  5907. @click="openFile(w.works)"
  5908. alt
  5909. />
  5910. <!-- @click="openFile(w.works)" -->
  5911. <div
  5912. class="answerScore"
  5913. v-if="w.score"
  5914. @click.stop="openScore(w)"
  5915. :class="{
  5916. rightW:
  5917. w.userid == userid ||
  5918. tType == 1 ||
  5919. tType == 4 ||
  5920. w.ateacher == userid,
  5921. }"
  5922. >
  5923. {{ JSON.parse(w.score).wScore }}分
  5924. </div>
  5925. <div
  5926. class="answerScore"
  5927. @click.stop="openScore(w)"
  5928. v-else-if="courseDetail.userid == userid"
  5929. :class="{
  5930. rightW:
  5931. w.userid == userid ||
  5932. tType == 1 ||
  5933. tType == 4 ||
  5934. w.ateacher == userid,
  5935. }"
  5936. >
  5937. 评分
  5938. </div>
  5939. <img
  5940. class="deleteImg"
  5941. src="../assets/deleteworks.png"
  5942. v-if="
  5943. w.userid == userid ||
  5944. tType == 1 ||
  5945. tType == 4
  5946. "
  5947. @click.stop="deleteWorks(w.wid)"
  5948. alt
  5949. />
  5950. </div>
  5951. <div class="workImg" v-if="w.type == 3">
  5952. <img
  5953. style="cursor: pointer"
  5954. :src="video"
  5955. @click="openVideo(w)"
  5956. alt
  5957. />
  5958. <!-- @click="openVideo(w.works)" -->
  5959. <div
  5960. class="answerScore"
  5961. v-if="w.score"
  5962. @click.stop="openScore(w)"
  5963. :class="{
  5964. rightW:
  5965. w.userid == userid ||
  5966. tType == 1 ||
  5967. tType == 4 ||
  5968. w.ateacher == userid,
  5969. }"
  5970. >
  5971. {{ JSON.parse(w.score).wScore }}分
  5972. </div>
  5973. <div
  5974. class="answerScore"
  5975. @click.stop="openScore(w)"
  5976. v-else-if="courseDetail.userid == userid"
  5977. :class="{
  5978. rightW:
  5979. w.userid == userid ||
  5980. tType == 1 ||
  5981. tType == 4 ||
  5982. w.ateacher == userid,
  5983. }"
  5984. >
  5985. 评分
  5986. </div>
  5987. <img
  5988. class="deleteImg"
  5989. src="../assets/deleteworks.png"
  5990. v-if="
  5991. w.userid == userid ||
  5992. tType == 1 ||
  5993. tType == 4
  5994. "
  5995. @click.stop="deleteWorks(w.wid)"
  5996. alt
  5997. />
  5998. </div>
  5999. <div class="workImg" v-if="w.type == 12">
  6000. <img
  6001. style="cursor: pointer"
  6002. :src="word2"
  6003. @click="downloadFile(w.works)"
  6004. alt
  6005. />
  6006. <!-- @click="openVideo(w.works)" -->
  6007. <div
  6008. class="answerScore"
  6009. v-if="w.score"
  6010. @click.stop="openScore(w)"
  6011. :class="{
  6012. rightW:
  6013. w.userid == userid ||
  6014. tType == 1 ||
  6015. tType == 4 ||
  6016. w.ateacher == userid,
  6017. }"
  6018. >
  6019. {{ JSON.parse(w.score).wScore }}分
  6020. </div>
  6021. <div
  6022. class="answerScore"
  6023. @click.stop="openScore(w)"
  6024. v-else-if="courseDetail.userid == userid"
  6025. :class="{
  6026. rightW:
  6027. w.userid == userid ||
  6028. tType == 1 ||
  6029. tType == 4 ||
  6030. w.ateacher == userid,
  6031. }"
  6032. >
  6033. 评分
  6034. </div>
  6035. <img
  6036. class="deleteImg"
  6037. src="../assets/deleteworks.png"
  6038. v-if="
  6039. w.userid == userid ||
  6040. tType == 1 ||
  6041. tType == 4
  6042. "
  6043. @click.stop="deleteWorks(w.wid)"
  6044. alt
  6045. />
  6046. </div>
  6047. <div class="comment" style="min-width: 200px">
  6048. <div class="worksName">
  6049. <div>{{ w.sName }}</div>
  6050. </div>
  6051. <div class="commentList">
  6052. <div class="commentList">
  6053. <div
  6054. class="commentImg"
  6055. @click="
  6056. isLikes(
  6057. w.wid,
  6058. userid,
  6059. 1,
  6060. null,
  6061. w.isLikes
  6062. )
  6063. "
  6064. >
  6065. <img
  6066. :src="
  6067. w.isLikes == true ? likes : noLikes
  6068. "
  6069. alt=""
  6070. />
  6071. </div>
  6072. <div>{{ w.likesCount }}</div>
  6073. </div>
  6074. <div
  6075. class="commentList"
  6076. style="margin-right: 15px"
  6077. >
  6078. <div
  6079. class="commentImg"
  6080. @click="
  6081. commentOther(
  6082. w,
  6083. toolIndex,
  6084. wIndex,
  6085. gindex
  6086. )
  6087. "
  6088. >
  6089. <img
  6090. src="../assets/icon/comment/comment.png"
  6091. alt=""
  6092. />
  6093. </div>
  6094. <div>{{ w.commentCount }}</div>
  6095. </div>
  6096. </div>
  6097. </div>
  6098. </div>
  6099. </div>
  6100. </div>
  6101. </div>
  6102. </div>
  6103. </div>
  6104. </div>
  6105. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6106. 上传文件
  6107. <input
  6108. type="file"
  6109. accept="image/png, image/gif, image/jpeg"
  6110. style="display: none"
  6111. @change="beforeUpload1($event, 2, index)"
  6112. />
  6113. </div>-->
  6114. </div>
  6115. </div>
  6116. <div
  6117. class="vedioBox"
  6118. v-if="
  6119. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6120. .eList &&
  6121. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6122. .eList.length &&
  6123. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6124. .eList.length > 0 &&
  6125. tType != 2
  6126. "
  6127. >
  6128. <div
  6129. class="queTop"
  6130. style="
  6131. font-size: 25px;
  6132. padding: 15px 0 15px 30px;
  6133. font-weight: bold;
  6134. "
  6135. >
  6136. <!-- <div class="question" style="width: 30px">
  6137. <img src="../assets/icon/toolIcon.png" alt />
  6138. </div>
  6139. <div class="queTitle">
  6140. <div>工具</div>
  6141. </div>-->
  6142. 评一评
  6143. </div>
  6144. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  6145. <div class="elist_input">
  6146. <div
  6147. v-for="(eItem, eIndex) in chapInfoList[courseType]
  6148. .chapterInfo[0].taskJson[taskCount].eList"
  6149. :key="eIndex"
  6150. class="elist_input_box"
  6151. >
  6152. <div style="width: 95%">
  6153. <div
  6154. style="
  6155. display: flex;
  6156. flex-direction: row;
  6157. flex-wrap: nowrap;
  6158. align-items: center;
  6159. "
  6160. >
  6161. <div style="max-width: calc(100% - 285px)">
  6162. <span>{{ eItem.value }}</span>
  6163. </div>
  6164. <div
  6165. style="
  6166. padding-left: 25px;
  6167. display: flex;
  6168. flex-direction: row;
  6169. align-items: center;
  6170. "
  6171. >
  6172. <el-rate
  6173. v-model="eItem.score"
  6174. :colors="colors"
  6175. disabled
  6176. ></el-rate>
  6177. </div>
  6178. </div>
  6179. <div class="elist_inptu_text" style="padding-left: 10px">
  6180. <span v-if="eItem.detail != ''">{{
  6181. eItem.detail
  6182. }}</span>
  6183. <span v-else style="color: #b2b1b3; font-size: 14px"
  6184. >暂无描述...</span
  6185. >
  6186. </div>
  6187. </div>
  6188. </div>
  6189. </div>
  6190. <div
  6191. v-if="evalua"
  6192. style="
  6193. border: 1px solid #e5e5e5;
  6194. max-width: 650px;
  6195. width: 100%;
  6196. margin-top: 20px;
  6197. box-shadow: 3px 1px 15px 3px #e0e0e0;
  6198. "
  6199. >
  6200. <div class="e_add_top">
  6201. <div class="e_add_title">
  6202. <span>目标管理名称</span>
  6203. <span>{{ eTitle }}</span>
  6204. <img
  6205. src="../assets/line.png"
  6206. class="cru_line"
  6207. style="
  6208. width: 125px;
  6209. height: 20px;
  6210. bottom: -10px;
  6211. left: 120px;
  6212. "
  6213. />
  6214. <!-- <el-input
  6215. v-model="eTitle"
  6216. placeholder="请输入名称"
  6217. @change="setMindData"
  6218. ></el-input>-->
  6219. </div>
  6220. </div>
  6221. <div class="e_add_content">
  6222. <div class="e_add_list_pbox">
  6223. <div class="e_add_list_pbox_title">
  6224. <span class="type_title">切换模式</span>
  6225. <div class="type_content">
  6226. <span
  6227. :class="{ active: typeMode == 1 }"
  6228. @click="typeMode = 1"
  6229. >目标树</span
  6230. >
  6231. <span
  6232. :class="{ active: typeMode == 2 }"
  6233. @click="typeMode = 2"
  6234. >目标罗盘</span
  6235. >
  6236. <span
  6237. :class="{ active: typeMode == 3 }"
  6238. @click="typeMode = 3"
  6239. >目标看板</span
  6240. >
  6241. </div>
  6242. </div>
  6243. <div class="e_add_list_pbox_content">
  6244. <Mind
  6245. :showBar="false"
  6246. :mindData="data"
  6247. style="width: 100%"
  6248. v-show="typeMode == 1"
  6249. ></Mind>
  6250. <Sunburst
  6251. :Josn="eJson"
  6252. :num="eJSONNum"
  6253. style="width: 100%"
  6254. v-if="typeMode == 2"
  6255. ></Sunburst>
  6256. <SeeBoard
  6257. :Josn="eJson"
  6258. :num="eJSONNum"
  6259. :ename="eTitle"
  6260. style="width: 100%"
  6261. v-if="typeMode == 3"
  6262. >
  6263. </SeeBoard>
  6264. </div>
  6265. </div>
  6266. </div>
  6267. </div>
  6268. </div>
  6269. </div>
  6270. <!-- <div
  6271. class="project_box"
  6272. style="margin-top: 15px; padding-bottom: 30px"
  6273. >
  6274. <div
  6275. style="
  6276. display: flex;
  6277. flex-wrap: nowrap;
  6278. flex-direction: column;
  6279. position: relative;
  6280. "
  6281. >
  6282. <div class="queTop">
  6283. <div class="question">
  6284. <img src="../assets/icon/homeWork.png" alt="" />
  6285. </div>
  6286. <div class="queTitle">
  6287. <div>作业提交<span>(提交图文视频等)</span></div>
  6288. <div>:任务:{{ task.task }}</div>
  6289. </div>
  6290. </div>
  6291. <div class="ediBottom">
  6292. <div
  6293. class="addEditor"
  6294. style="margin-top: 23px"
  6295. @click="openAddWork"
  6296. v-if="!isNoHomeWork"
  6297. >
  6298. 选择文件
  6299. </div>
  6300. <div
  6301. class="addEditor"
  6302. style="margin-top: 23px"
  6303. @click="openAddWork"
  6304. v-else
  6305. >
  6306. 已提交
  6307. </div>
  6308. </div>
  6309. </div>
  6310. </div>-->
  6311. </div>
  6312. </div>
  6313. <el-dialog
  6314. title="作业提交"
  6315. :visible.sync="dialogVisible"
  6316. :append-to-body="true"
  6317. width="500px"
  6318. :before-close="handleClose"
  6319. class="dialog_change"
  6320. >
  6321. <div class="marginT">
  6322. <div>上传文件</div>
  6323. <div
  6324. class="chapter_add"
  6325. @click="addImg($event)"
  6326. v-if="studyJuri[0].cover.length == 0"
  6327. >
  6328. <div class="up_photo">
  6329. <img src="../assets/icon/uploadImg.png" alt />
  6330. </div>
  6331. <!-- <input
  6332. type="file"
  6333. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  6334. style="display: none"
  6335. @change="beforeUpload1($event, 1)"
  6336. /> -->
  6337. <input
  6338. type="file"
  6339. accept="*"
  6340. style="display: none"
  6341. @change="beforeUpload1($event, 1)"
  6342. />
  6343. <!-- <input
  6344. type="file"
  6345. accept="image/*"
  6346. capture="camera"
  6347. style="display: none"
  6348. @change="beforeUpload1($event, 1)"
  6349. /> -->
  6350. </div>
  6351. <div
  6352. class="chapter_add"
  6353. style="
  6354. display: flex;
  6355. width: 100%;
  6356. flex-direction: row;
  6357. flex-wrap: wrap;
  6358. justify-content: flex-start;
  6359. padding: 15px 0;
  6360. "
  6361. v-if="studyJuri[0].cover.length > 0"
  6362. >
  6363. <div class="upCover">
  6364. <img
  6365. :src="studyJuri[0].cover[0].url"
  6366. alt
  6367. v-if="fileType == 0"
  6368. />
  6369. <img :src="word" alt v-else-if="fileType == 1" />
  6370. <img :src="video" alt v-else-if="fileType == 2" />
  6371. <img :src="word2" alt v-else-if="fileType == 3" />
  6372. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  6373. <div class="deleteWord" @click="clean(1)">
  6374. <img src="../assets/icon/deleteWorks.png" alt />
  6375. </div>
  6376. </div>
  6377. </div>
  6378. </div>
  6379. <div
  6380. class="upload_send"
  6381. @click="addCourseWorks(taskCount)"
  6382. v-if="!proVisible"
  6383. >
  6384. 提交
  6385. </div>
  6386. </el-dialog>
  6387. </div>
  6388. </div>
  6389. <div
  6390. class="pButton"
  6391. @click="(pzDialog = true), selectPz()"
  6392. v-if="tType == 4"
  6393. >
  6394. <!-- 批 -->
  6395. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  6396. </div>
  6397. <div v-if="pzDialog == true" class="newDialogCss">
  6398. <div class="pzTop2">
  6399. <!-- <div>批注</div>
  6400. <div @click="pzDialog = false">
  6401. <img src="../assets/close1.png" alt="" />
  6402. </div> -->
  6403. <div class="checkbox">
  6404. <div class="check" style="font-size: 25px">评课笔记</div>
  6405. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  6406. </div>
  6407. </div>
  6408. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  6409. <div class="pzListBox" v-if="pzList && pzList.length">
  6410. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  6411. <div class="pzNavTop">
  6412. <div>批</div>
  6413. <div>
  6414. {{
  6415. pz.username && pz.username.length > 5
  6416. ? pz.username.substring(0, 5) + "..."
  6417. : pz.username
  6418. }}的批注
  6419. </div>
  6420. <div
  6421. class="pzDelete"
  6422. v-if="pz.userid == userid"
  6423. @click="deletePz(pz.id)"
  6424. >
  6425. 删除
  6426. </div>
  6427. </div>
  6428. <div
  6429. class="pzContent cont"
  6430. v-html="pz.content"
  6431. v-if="pz.type == '1'"
  6432. ></div>
  6433. <div class="pzContent" v-if="pz.type == '2'">
  6434. <audio :src="pz.content" controls="controls" ref="audio">
  6435. Your browser does not support the audio element.
  6436. </audio>
  6437. </div>
  6438. <div class="pzContent" v-if="pz.type == '3'">
  6439. <img
  6440. :src="pz.content"
  6441. style="width: 90%; margin: 0 auto; display: block"
  6442. @click="previewImg(pz.content)"
  6443. />
  6444. </div>
  6445. <div class="time">
  6446. {{ pz.time }}
  6447. </div>
  6448. </div>
  6449. </div>
  6450. <div class="noPz" v-else>
  6451. <img src="../assets/icon/noPz.png" alt="" />
  6452. </div>
  6453. <div class="addPzButton">
  6454. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  6455. 添加批注
  6456. </div>
  6457. <!-- <div class="img1">
  6458. <div @click="(addPzDialog = true), (pzType = 2)">
  6459. <img src="../assets/audio.png" /><span>音频</span>
  6460. </div>
  6461. </div> -->
  6462. </div>
  6463. </div>
  6464. </div>
  6465. <div v-if="addPzDialog == true" class="addDialogCss">
  6466. <div class="pzTop">
  6467. <div class="teacherPz">
  6468. <div class="teacherPzImg">
  6469. <img src="../assets/icon/teacherPz.png" alt="" />
  6470. </div>
  6471. <div style="margin-left: 10px; height: 25px">教师批注</div>
  6472. </div>
  6473. <div @click="addPzDialog = false">
  6474. <img src="../assets/close1.png" alt="" />
  6475. </div>
  6476. </div>
  6477. <div class="addPzBox">
  6478. <div class="addPzCheck">
  6479. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  6480. >文本</span
  6481. >
  6482. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  6483. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  6484. >音频</span
  6485. >
  6486. </div>
  6487. <div style="height: calc(100% - 95px)">
  6488. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  6489. v-if="pzType == 1"></textarea> -->
  6490. <editor-bar
  6491. class="binfo_input pzConText"
  6492. style="width: 100% !important"
  6493. placeholder="请输入任务描述"
  6494. v-model="pzConText"
  6495. @change="change"
  6496. v-if="pzType == 1"
  6497. ></editor-bar>
  6498. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  6499. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  6500. <div @click="addImg($event)">
  6501. <el-button type="primary">上传图片</el-button>
  6502. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  6503. @change="beforeUpload1($event, 4)" />
  6504. </div>
  6505. </div> -->
  6506. </div>
  6507. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  6508. 确定
  6509. </div>
  6510. </div>
  6511. </div>
  6512. <div v-if="proVisible" class="mask">
  6513. <div class="progressBox">
  6514. <!-- <div id="closePro" class="closeCss">
  6515. <img src="../assets/icon/close.png" alt />
  6516. </div> -->
  6517. <div class="lbox">
  6518. <img src="../assets/loading.gif" />上传中,请稍后
  6519. </div>
  6520. <div style="margin-bottom: 10px">
  6521. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  6522. </div>
  6523. <el-progress
  6524. :text-inside="true"
  6525. :stroke-width="20"
  6526. :percentage="progress"
  6527. style="width: 80%"
  6528. ></el-progress>
  6529. </div>
  6530. </div>
  6531. <div v-if="proVisible2" class="mask">
  6532. <div class="progressBox">
  6533. <div class="lbox">
  6534. <img src="../assets/loading.gif" />上传中,请稍后
  6535. </div>
  6536. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  6537. </div>
  6538. </div>
  6539. <el-dialog :visible.sync="pictureDialog" size="tiny">
  6540. <img width="100%" :src="dialogImageUrl" alt />
  6541. </el-dialog>
  6542. <el-dialog
  6543. :title="noteName != '' ? noteName : '查看问卷'"
  6544. :visible.sync="dialogVisible5"
  6545. :append-to-body="true"
  6546. width="1000px"
  6547. :before-close="handleClose"
  6548. class="dialog_diy dialog_diy3"
  6549. >
  6550. <div>
  6551. <div
  6552. class="a_add_title"
  6553. style="
  6554. display: flex;
  6555. flex-direction: row;
  6556. align-items: center;
  6557. justify-content: center;
  6558. "
  6559. >
  6560. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  6561. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  6562. </div>
  6563. <div class="a_addBox">
  6564. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6565. <div
  6566. class="a_add_box"
  6567. v-for="(item1, index1) in askJson.askCount"
  6568. :key="index1"
  6569. >
  6570. <div class="a_add_head">
  6571. <div style="display: flex">
  6572. {{ index1 + 1 + "、" }}
  6573. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  6574. </div>
  6575. <img
  6576. v-if="askJson.askJson[index1].img"
  6577. :src="askJson.askJson[index1].img"
  6578. style="height: 300px; margin-top: 10px; max-width: 100%"
  6579. />
  6580. </div>
  6581. <div class="a_add_body">
  6582. <div class="a_add_input">
  6583. <el-radio-group
  6584. v-model="radio[index1]"
  6585. v-if="
  6586. askJson.askJson[index1].type == '1' ||
  6587. !askJson.askJson[index1].type
  6588. "
  6589. >
  6590. <el-radio
  6591. v-for="(item2, checkIndex) in askJson.askJson[index1]
  6592. .askItem"
  6593. :key="checkIndex"
  6594. :label="checkIndex"
  6595. :disabled="isAnswer"
  6596. class="redioStyle"
  6597. ><span v-html="item2"></span
  6598. ></el-radio>
  6599. </el-radio-group>
  6600. <el-checkbox-group
  6601. v-model="radio[index1]"
  6602. v-if="askJson.askJson[index1].type == '2'"
  6603. >
  6604. <el-checkbox
  6605. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  6606. .askItem"
  6607. :key="checkIndex1"
  6608. :label="checkIndex1"
  6609. :disabled="isAnswer"
  6610. class="redioStyle"
  6611. ><span v-html="item2"></span>
  6612. </el-checkbox>
  6613. </el-checkbox-group>
  6614. </div>
  6615. </div>
  6616. </div>
  6617. </div>
  6618. </div>
  6619. <span slot="footer" class="dialog-footer">
  6620. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  6621. >取 消</el-button
  6622. >
  6623. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  6624. >确 定</el-button
  6625. >
  6626. </span>
  6627. </el-dialog>
  6628. <el-dialog
  6629. :title="noteName != '' ? noteName : '查看问卷'"
  6630. :visible.sync="dialogVisible5Teacher"
  6631. :append-to-body="true"
  6632. width="1000px"
  6633. :before-close="handleClose"
  6634. class="dialog_diy dialog_diy3"
  6635. >
  6636. <div>
  6637. <div class="w_name">
  6638. 学生姓名:<span>{{ sStudent.student }}</span>
  6639. </div>
  6640. <div
  6641. class="a_add_title"
  6642. style="
  6643. display: flex;
  6644. flex-direction: row;
  6645. align-items: center;
  6646. justify-content: center;
  6647. "
  6648. >
  6649. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  6650. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  6651. </div>
  6652. <div class="a_addBox">
  6653. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6654. <div
  6655. class="a_add_box"
  6656. v-for="(item1, index1) in askJson.askCount"
  6657. :key="index1"
  6658. >
  6659. <div class="a_add_head">
  6660. <div style="display: flex">
  6661. {{ index1 + 1 + "、" }}
  6662. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  6663. </div>
  6664. <img
  6665. v-if="askJson.askJson[index1].img"
  6666. :src="askJson.askJson[index1].img"
  6667. style="height: 300px; margin-top: 10px; max-width: 100%"
  6668. />
  6669. </div>
  6670. <div class="a_add_body">
  6671. <div class="a_add_input">
  6672. <el-radio-group
  6673. v-model="radio[index1]"
  6674. v-if="
  6675. askJson.askJson[index1].type == '1' ||
  6676. !askJson.askJson[index1].type
  6677. "
  6678. >
  6679. <el-radio
  6680. v-for="(item2, checkIndex) in askJson.askJson[index1]
  6681. .askItem"
  6682. :key="checkIndex"
  6683. :label="checkIndex"
  6684. :disabled="isAnswer"
  6685. class="redioStyle"
  6686. ><span v-html="item2"></span
  6687. ></el-radio>
  6688. </el-radio-group>
  6689. <el-checkbox-group
  6690. v-model="radio[index1]"
  6691. v-if="askJson.askJson[index1].type == '2'"
  6692. >
  6693. <el-checkbox
  6694. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  6695. .askItem"
  6696. :key="checkIndex1"
  6697. :label="checkIndex1"
  6698. :disabled="isAnswer"
  6699. class="redioStyle"
  6700. ><span v-html="item2"></span>
  6701. </el-checkbox>
  6702. </el-checkbox-group>
  6703. </div>
  6704. </div>
  6705. </div>
  6706. </div>
  6707. </div>
  6708. <span slot="footer" class="dialog-footer">
  6709. <el-button
  6710. @click="dialogVisible5Teacher = false"
  6711. v-show="noteName == ''"
  6712. >取 消</el-button
  6713. >
  6714. <el-button
  6715. type="primary"
  6716. @click="addStudentAskTeacher"
  6717. v-show="noteName == ''"
  6718. >确 定</el-button
  6719. >
  6720. </span>
  6721. </el-dialog>
  6722. <el-dialog
  6723. :title="noteName != '' ? noteName : '查看选择题'"
  6724. :visible.sync="dialogVisibleChoice"
  6725. :append-to-body="true"
  6726. width="1000px"
  6727. :before-close="handleClose"
  6728. class="dialog_diy dialog_diy3"
  6729. >
  6730. <div>
  6731. <!-- <div class="a_add_title" style="
  6732. display: flex;
  6733. flex-direction: row;
  6734. align-items: center;
  6735. justify-content: center;
  6736. ">
  6737. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  6738. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  6739. </div> -->
  6740. <div class="a_addBox">
  6741. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6742. <div
  6743. class="a_add_box"
  6744. v-for="(item1, index1) in testJson.testCount"
  6745. :key="index1"
  6746. >
  6747. <div class="a_add_head">
  6748. <div style="display: flex">
  6749. {{ index1 + 1 + "、" }}
  6750. <div
  6751. v-if="testJson.testJson[index1].type == '1'"
  6752. style="margin-right: 5px"
  6753. >
  6754. (单选题)
  6755. </div>
  6756. <div
  6757. v-if="testJson.testJson[index1].type == '2'"
  6758. style="margin-right: 5px"
  6759. >
  6760. (多选题)
  6761. </div>
  6762. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  6763. </div>
  6764. <img
  6765. v-if="testJson.testJson[index1].img"
  6766. :src="testJson.testJson[index1].img"
  6767. style="height: 300px; margin-top: 10px; max-width: 100%"
  6768. />
  6769. </div>
  6770. <div
  6771. class="timuImgBox"
  6772. v-if="
  6773. testJson.testJson[index1].timuList &&
  6774. testJson.testJson[index1].timuList.length
  6775. "
  6776. >
  6777. <div
  6778. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  6779. :key="tIndex"
  6780. class="timuImg"
  6781. @click.stop="previewImg(timg.src)"
  6782. >
  6783. <img :src="timg.src" alt="" />
  6784. </div>
  6785. </div>
  6786. <div class="a_add_body">
  6787. <div class="a_add_input">
  6788. <el-radio-group
  6789. v-model="radio[index1]"
  6790. v-if="testJson.testJson[index1].type == '1'"
  6791. >
  6792. <div class="radioBox">
  6793. <el-radio
  6794. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6795. .checkList"
  6796. :key="checkIndex"
  6797. :label="checkIndex"
  6798. :disabled="isAnswer"
  6799. class="redioStyle"
  6800. >
  6801. <div
  6802. style="margin-right: 10px"
  6803. v-if="item2 && item2.imgType && item2.imgType == 1"
  6804. >
  6805. <div class="inImg" @click.stop="previewImg(item2.src)">
  6806. <img :src="item2.src" alt="" />
  6807. </div>
  6808. </div>
  6809. <span v-else v-html="item2"></span>
  6810. </el-radio>
  6811. </div>
  6812. </el-radio-group>
  6813. <el-checkbox-group
  6814. v-model="radio[index1]"
  6815. v-if="testJson.testJson[index1].type == '2'"
  6816. >
  6817. <div class="radioBox">
  6818. <el-checkbox
  6819. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6820. .checkList"
  6821. :key="checkIndex"
  6822. :label="checkIndex"
  6823. :disabled="isAnswer"
  6824. class="redioStyle"
  6825. >
  6826. <div
  6827. style="margin-right: 10px"
  6828. v-if="item2 && item2.imgType && item2.imgType == 1"
  6829. >
  6830. <div class="inImg" @click.stop="previewImg(item2.src)">
  6831. <img :src="item2.src" alt="" />
  6832. </div>
  6833. </div>
  6834. <span v-else v-html="item2"></span>
  6835. </el-checkbox>
  6836. </div>
  6837. </el-checkbox-group>
  6838. </div>
  6839. </div>
  6840. </div>
  6841. </div>
  6842. </div>
  6843. <span slot="footer" class="dialog-footer">
  6844. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  6845. >取 消</el-button
  6846. >
  6847. <el-button
  6848. type="primary"
  6849. @click="addStudentTest"
  6850. v-show="noteName == ''"
  6851. >确 定</el-button
  6852. >
  6853. </span>
  6854. </el-dialog>
  6855. <el-dialog
  6856. :title="noteName != '' ? noteName : '查看选择题'"
  6857. :visible.sync="dialogVisibleChoiceTeacher"
  6858. :append-to-body="true"
  6859. width="1000px"
  6860. :before-close="handleClose"
  6861. class="dialog_diy dialog_diy3"
  6862. >
  6863. <div>
  6864. <div class="w_name">
  6865. 学生姓名:<span>{{ sStudent.student }}</span>
  6866. </div>
  6867. <div class="a_addBox">
  6868. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6869. <div
  6870. class="a_add_box"
  6871. v-for="(item1, index1) in testJson.testCount"
  6872. :key="index1"
  6873. >
  6874. <div class="a_add_head">
  6875. <div style="display: flex">
  6876. {{ index1 + 1 + "、" }}
  6877. <div
  6878. v-if="testJson.testJson[index1].type == '1'"
  6879. style="margin-right: 5px"
  6880. >
  6881. (单选题)
  6882. </div>
  6883. <div
  6884. v-if="testJson.testJson[index1].type == '2'"
  6885. style="margin-right: 5px"
  6886. >
  6887. (多选题)
  6888. </div>
  6889. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  6890. </div>
  6891. <img
  6892. v-if="testJson.testJson[index1].img"
  6893. :src="testJson.testJson[index1].img"
  6894. style="height: 300px; margin-top: 10px; max-width: 100%"
  6895. />
  6896. </div>
  6897. <div
  6898. class="timuImgBox"
  6899. v-if="
  6900. testJson.testJson[index1].timuList &&
  6901. testJson.testJson[index1].timuList.length
  6902. "
  6903. >
  6904. <div
  6905. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  6906. :key="tIndex"
  6907. class="timuImg"
  6908. @click.stop="previewImg(timg.src)"
  6909. >
  6910. <img :src="timg.src" alt="" />
  6911. </div>
  6912. </div>
  6913. <div class="a_add_body">
  6914. <div class="a_add_input">
  6915. <el-radio-group
  6916. v-model="radio[index1]"
  6917. v-if="testJson.testJson[index1].type == '1'"
  6918. >
  6919. <div class="radioBox">
  6920. <el-radio
  6921. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6922. .checkList"
  6923. :key="checkIndex"
  6924. :label="checkIndex"
  6925. :disabled="isAnswer"
  6926. class="redioStyle"
  6927. >
  6928. <div
  6929. style="margin-right: 10px"
  6930. v-if="item2 && item2.imgType && item2.imgType == 1"
  6931. >
  6932. <div class="inImg" @click.stop="previewImg(item2.src)">
  6933. <img :src="item2.src" alt="" />
  6934. </div>
  6935. </div>
  6936. <span v-else v-html="item2"></span>
  6937. </el-radio>
  6938. </div>
  6939. </el-radio-group>
  6940. <el-checkbox-group
  6941. v-model="radio[index1]"
  6942. v-if="testJson.testJson[index1].type == '2'"
  6943. >
  6944. <div class="radioBox">
  6945. <el-checkbox
  6946. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6947. .checkList"
  6948. :key="checkIndex"
  6949. :label="checkIndex"
  6950. :disabled="isAnswer"
  6951. class="redioStyle"
  6952. >
  6953. <div
  6954. style="margin-right: 10px"
  6955. v-if="item2 && item2.imgType && item2.imgType == 1"
  6956. >
  6957. <div class="inImg" @click.stop="previewImg(item2.src)">
  6958. <img :src="item2.src" alt="" />
  6959. </div>
  6960. </div>
  6961. <span v-else v-html="item2"></span>
  6962. </el-checkbox>
  6963. </div>
  6964. </el-checkbox-group>
  6965. </div>
  6966. </div>
  6967. </div>
  6968. </div>
  6969. </div>
  6970. <span slot="footer" class="dialog-footer">
  6971. <el-button
  6972. @click="dialogVisibleChoiceTeacher = false"
  6973. v-show="noteName == ''"
  6974. >取 消</el-button
  6975. >
  6976. <el-button
  6977. type="primary"
  6978. @click="addStudentTestTeacher"
  6979. v-show="noteName == ''"
  6980. >确 定</el-button
  6981. >
  6982. </span>
  6983. </el-dialog>
  6984. <el-dialog
  6985. title="查看富文本"
  6986. :visible.sync="dialogVisible1"
  6987. :append-to-body="true"
  6988. width="500px"
  6989. :before-close="handleClose"
  6990. class="dialog_diy textCss"
  6991. >
  6992. <el-form style="font-size: 20px">
  6993. <el-form-item label="文本标题" class="textTitle">
  6994. <div style="font-size: 20px">{{ text.name }}</div>
  6995. </el-form-item>
  6996. <div>富文本内容</div>
  6997. <div
  6998. v-html="text.url"
  6999. style="font-size: 18px; padding: 40px 0 0 0"
  7000. ></div>
  7001. </el-form>
  7002. <span slot="footer" class="dialog-footer">
  7003. <el-button type="primary" @click="dialogVisible1 = false"
  7004. >确定</el-button
  7005. >
  7006. </span>
  7007. </el-dialog>
  7008. <el-dialog
  7009. title="文件预览"
  7010. :visible.sync="dialogVisible3"
  7011. width="50%"
  7012. :before-close="handleClose"
  7013. class="dialog_diy"
  7014. :class="{ fullStyle: full }"
  7015. >
  7016. <div slot="title" class="header-title">
  7017. <div style="color: #fff">文件预览</div>
  7018. <div style="position: absolute; top: 19px; right: 50px">
  7019. <img
  7020. src="../assets/full.png"
  7021. style="height: 16px; cursor: pointer"
  7022. alt=""
  7023. @click="fullTools"
  7024. />
  7025. </div>
  7026. </div>
  7027. <pdf
  7028. v-if="showPDF"
  7029. :pdfUrl="pptImgUrl"
  7030. style="width: 100%; height: 520px; overflow: auto"
  7031. :class="{ fullStyle: full }"
  7032. ></pdf>
  7033. <iframe
  7034. v-else
  7035. :src="pptImgUrl"
  7036. frameborder="0"
  7037. width="100%"
  7038. height="600"
  7039. :class="{ fullStyle: full }"
  7040. ></iframe>
  7041. </el-dialog>
  7042. <el-dialog
  7043. title="文件预览"
  7044. :visible.sync="dialogVisible6"
  7045. width="50%"
  7046. :before-close="handleClose"
  7047. class="dialog_diy"
  7048. >
  7049. <iframe
  7050. :src="pptImgUrl1"
  7051. frameborder="0"
  7052. width="100%"
  7053. height="600"
  7054. ></iframe>
  7055. </el-dialog>
  7056. <el-dialog
  7057. title="提示"
  7058. :visible.sync="dialogVisible4"
  7059. :append-to-body="true"
  7060. width="800px"
  7061. :before-close="handleClose"
  7062. class="dialog_diy notice"
  7063. >
  7064. <div>此功能暂未开放!</div>
  7065. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  7066. </el-dialog>
  7067. <el-dialog
  7068. title="问答"
  7069. :visible.sync="answerDialogVisible"
  7070. :append-to-body="true"
  7071. width="800px"
  7072. :before-close="handleClose"
  7073. class="dialog_diy"
  7074. >
  7075. <div>
  7076. <div
  7077. style="
  7078. display: flex;
  7079. flex-wrap: nowrap;
  7080. flex-direction: column;
  7081. position: relative;
  7082. "
  7083. >
  7084. <div class="queTop" style="padding: 20px 0 20px 0">
  7085. <div class="question">
  7086. <img src="../assets/icon/question.png" alt />
  7087. </div>
  7088. <div class="queTitle">
  7089. <div style="width: 90px; min-width: 90px">提问:</div>
  7090. <div>{{ answerQ }}</div>
  7091. </div>
  7092. </div>
  7093. <div class="ediBottom">
  7094. <textarea
  7095. rows="6"
  7096. class="binfo_input"
  7097. cols
  7098. style="width: 95%; height: 120px"
  7099. v-model="questionAnswer"
  7100. ></textarea>
  7101. </div>
  7102. </div>
  7103. </div>
  7104. <div slot="footer">
  7105. <el-button @click="answerDialogVisible = false">取 消</el-button>
  7106. <el-button type="primary" @click="addQuestion">提 交</el-button>
  7107. </div>
  7108. </el-dialog>
  7109. <el-dialog
  7110. title="问答"
  7111. :visible.sync="answerDialogVisibleTeacher"
  7112. :append-to-body="true"
  7113. width="800px"
  7114. :before-close="handleClose"
  7115. class="dialog_diy"
  7116. >
  7117. <div>
  7118. <div class="w_name">
  7119. 学生姓名:<span>{{ sStudent.student }}</span>
  7120. </div>
  7121. <div
  7122. style="
  7123. display: flex;
  7124. flex-wrap: nowrap;
  7125. flex-direction: column;
  7126. position: relative;
  7127. "
  7128. >
  7129. <div class="queTop" style="padding: 20px 0 20px 0">
  7130. <div class="question">
  7131. <img src="../assets/icon/question.png" alt />
  7132. </div>
  7133. <div class="queTitle">
  7134. <div style="width: 90px; min-width: 90px">提问:</div>
  7135. <div>{{ answerQ }}</div>
  7136. </div>
  7137. </div>
  7138. <div class="ediBottom">
  7139. <textarea
  7140. rows="6"
  7141. class="binfo_input"
  7142. cols
  7143. style="width: 95%; height: 120px"
  7144. v-model="questionAnswer"
  7145. ></textarea>
  7146. </div>
  7147. </div>
  7148. </div>
  7149. <div slot="footer">
  7150. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  7151. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  7152. </div>
  7153. </el-dialog>
  7154. <el-dialog
  7155. title="倒计时"
  7156. :visible.sync="timeDialogVisible"
  7157. :append-to-body="true"
  7158. width="800px"
  7159. :before-close="handleClose"
  7160. class="dialog_diy"
  7161. >
  7162. <div>
  7163. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  7164. </div>
  7165. <div slot="footer">
  7166. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  7167. </div>
  7168. </el-dialog>
  7169. <el-dialog
  7170. title="权限设置"
  7171. :visible.sync="juriVisible"
  7172. :append-to-body="true"
  7173. width="400px"
  7174. :before-close="handleClose"
  7175. class="dialog_diy"
  7176. >
  7177. <div>
  7178. <div class="open_box">
  7179. <div class="switch_box">
  7180. <span>允许学生查看所有作业</span>
  7181. <el-switch
  7182. v-model="sIsOpen"
  7183. active-text=""
  7184. class="switchCss"
  7185. @change="updateSLook"
  7186. ></el-switch>
  7187. </div>
  7188. <div
  7189. class="switch_box"
  7190. v-if="
  7191. courseDetail.userid == userid ||
  7192. (courseDetail.course_teacher &&
  7193. courseDetail.course_teacher.indexOf(userid) != -1)
  7194. "
  7195. >
  7196. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  7197. <span>禁止学生查看所有阶段</span>
  7198. <el-switch
  7199. v-model="IsLookOpen"
  7200. active-text=""
  7201. class="switchCss"
  7202. @change="updateLookOpen"
  7203. ></el-switch>
  7204. </div>
  7205. <div class="switch_box" v-if="courseDetail.userid == userid">
  7206. <span>开启跟随模式</span>
  7207. <el-switch
  7208. v-model="IsFollow"
  7209. active-text=""
  7210. class="switchCss"
  7211. @change="updateFollow"
  7212. ></el-switch>
  7213. </div>
  7214. </div>
  7215. </div>
  7216. <div slot="footer">
  7217. <el-button
  7218. style="background: #409efe; color: #fff"
  7219. @click="juriVisible = false"
  7220. >关 闭</el-button
  7221. >
  7222. </div>
  7223. </el-dialog>
  7224. <el-dialog
  7225. title="查看视频"
  7226. :visible.sync="videoVisible"
  7227. :append-to-body="true"
  7228. width="1000px"
  7229. :before-close="handleClose"
  7230. class="dialog_diy1"
  7231. >
  7232. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  7233. <video-player
  7234. class="video-player vjs-custom-skin"
  7235. :playsinline="true"
  7236. :options="videoDetail"
  7237. @play="onPlayerPlay($event)"
  7238. style="width: 100%; height: 100%"
  7239. ></video-player>
  7240. </div>
  7241. <div slot="footer">
  7242. <el-button
  7243. style="background: #409efe; color: #fff"
  7244. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  7245. >
  7246. 关 闭</el-button
  7247. >
  7248. </div>
  7249. </el-dialog>
  7250. <el-dialog
  7251. title="查看详情"
  7252. :visible.sync="commentDialogVisible"
  7253. :append-to-body="true"
  7254. width="800px"
  7255. :before-close="handleClose"
  7256. class="dialog_diy"
  7257. >
  7258. <div class="commentTop">
  7259. <div class="studentDetail">
  7260. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  7261. <div class="nameAndTime">
  7262. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  7263. <div>{{ commentDetail.time }}</div>
  7264. </div>
  7265. <div
  7266. class="returnBtn"
  7267. style="margin-left: auto; width: 80px"
  7268. v-if="
  7269. commentDetail.works &&
  7270. commentDetail.type == 0 &&
  7271. (tType == 1 || tType == 4)
  7272. "
  7273. @click="
  7274. showPicturePaint(
  7275. commentDetail.img ? commentDetail.img : commentDetail.works
  7276. )
  7277. "
  7278. >
  7279. 教师批注
  7280. </div>
  7281. </div>
  7282. <div
  7283. class="worksAnswer"
  7284. v-if="commentDetail.works && commentDetail.type == 2"
  7285. >
  7286. {{ JSON.parse(commentDetail.works)[0].answer }}
  7287. </div>
  7288. <div
  7289. class="worksAnswer"
  7290. v-if="commentDetail.works && commentDetail.type == 1"
  7291. >
  7292. <img
  7293. src="../assets/teacherWork.png"
  7294. v-if="commentDetail.ateacher"
  7295. class="w_teachert"
  7296. />
  7297. <pdf
  7298. v-if="showPDF"
  7299. :pdfUrl="pptImgUrl"
  7300. style="width: 100%; height: 520px; overflow: auto"
  7301. :class="{ fullStyle: full }"
  7302. ></pdf>
  7303. <iframe
  7304. v-else
  7305. :src="pptImgUrl"
  7306. frameborder="0"
  7307. width="100%"
  7308. height="600"
  7309. :class="{ fullStyle: full }"
  7310. ></iframe>
  7311. </div>
  7312. <div
  7313. class="worksAnswer"
  7314. v-if="commentDetail.works && commentDetail.type == 0"
  7315. >
  7316. <img
  7317. src="../assets/teacherWork.png"
  7318. v-if="commentDetail.ateacher"
  7319. class="w_teachert"
  7320. style="right: 105px"
  7321. />
  7322. <img
  7323. :src="commentDetail.works"
  7324. alt=""
  7325. @click="previewImg(commentDetail.works)"
  7326. />
  7327. </div>
  7328. <div
  7329. class="worksAnswer"
  7330. v-if="commentDetail.works && commentDetail.type == 3"
  7331. >
  7332. <img
  7333. src="../assets/teacherWork.png"
  7334. v-if="commentDetail.ateacher"
  7335. class="w_teachert"
  7336. />
  7337. <video-player
  7338. class="video-player vjs-custom-skin"
  7339. :playsinline="true"
  7340. :options="videoDetail"
  7341. @play="onPlayerPlay($event)"
  7342. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  7343. ></video-player>
  7344. </div>
  7345. <div
  7346. class="worksAnswer"
  7347. v-if="commentDetail.works && commentDetail.type == 10"
  7348. >
  7349. <div class="cont" v-html="commentDetail.works.text"></div>
  7350. </div>
  7351. <div
  7352. class="worksAnswer codeFileBox"
  7353. v-if="commentDetail.works && commentDetail.type == 12"
  7354. @click="downloadFile(commentDetail.works)"
  7355. >
  7356. <img src="../assets/icon/codeFile.png" />
  7357. <div>点击下载文件</div>
  7358. </div>
  7359. <div
  7360. class="worksAnswer"
  7361. v-if="commentDetail.works && commentDetail.type == 13"
  7362. >
  7363. <div v-html="JSON.parse(commentDetail.works).text"></div>
  7364. </div>
  7365. <div
  7366. class="worksAnswer"
  7367. v-if="commentDetail.works && commentDetail.type == 4"
  7368. >
  7369. <div class="evalCss">
  7370. <div class="nav">请选择星星进行评分</div>
  7371. <div class="middleBox" v-if="eScore.eStar">
  7372. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  7373. <div class="nameAndrate">
  7374. <div>{{ e.value }}</div>
  7375. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  7376. </div>
  7377. <div v-if="e.detail">{{ e.detail }}</div>
  7378. </div>
  7379. <div class="bz">
  7380. <textarea
  7381. disabled
  7382. rows="4"
  7383. class="pj"
  7384. style="
  7385. padding: 10px 5px;
  7386. width: 70%;
  7387. background: #f7f6f9;
  7388. font-size: 14px;
  7389. text-indent: 10px;
  7390. color: #000;
  7391. "
  7392. cols
  7393. v-model="eScore.eBzText"
  7394. placeholder="请输入评价内容..."
  7395. ></textarea>
  7396. </div>
  7397. </div>
  7398. </div>
  7399. </div>
  7400. <div class="comment">
  7401. <div class="commentList">
  7402. <div class="commentImg">
  7403. <img
  7404. @click="
  7405. isLikes(
  7406. commentDetail.wid,
  7407. userid,
  7408. 1,
  7409. null,
  7410. commentDetail.isLikes
  7411. )
  7412. "
  7413. :src="commentDetail.isLikes == true ? likes : noLikes"
  7414. alt=""
  7415. />
  7416. </div>
  7417. <div>{{ commentDetail.likesCount }}</div>
  7418. </div>
  7419. <div class="commentList">
  7420. <div class="commentImg">
  7421. <img src="../assets/icon/comment/comment.png" alt="" />
  7422. </div>
  7423. <div>{{ commentDetail.commentCount }}</div>
  7424. </div>
  7425. </div>
  7426. <div class="drawPBox" v-if="commentDetail.img">
  7427. <span>教师批注</span>
  7428. <img
  7429. :src="commentDetail.img"
  7430. alt=""
  7431. @click="previewImg(commentDetail.img)"
  7432. />
  7433. <span
  7434. class="deleteImg"
  7435. v-if="tType == 1 || tType == 4"
  7436. @click.stop="deletePicturePaint(commentDetail.wid)"
  7437. style="
  7438. font-size: 14px;
  7439. width: auto !important;
  7440. color: #b4b4b4;
  7441. top: unset;
  7442. bottom: 0;
  7443. border: none;
  7444. padding: 0;
  7445. height: auto !important;
  7446. margin: 0;
  7447. "
  7448. >删除</span
  7449. >
  7450. </div>
  7451. </div>
  7452. <div class="commentBox">
  7453. <div class="pl">评论:</div>
  7454. <div style="max-height: 200px; overflow: auto">
  7455. <div
  7456. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  7457. style="padding: 10px 0 0 0"
  7458. >
  7459. <div
  7460. class="studentDetail"
  7461. style="padding-top: 10px"
  7462. v-for="(co, coIndex) in commentDetail.commentJson"
  7463. :key="coIndex"
  7464. >
  7465. <div class="tx" style="min-width: 50px">
  7466. <img src="../assets/avatar.png" alt="" />
  7467. </div>
  7468. <div class="plPerson">
  7469. <div class="plName">
  7470. <div>{{ co.commentPeople }}</div>
  7471. <div style="margin-left: 5px">
  7472. {{ co.commentTime }}
  7473. </div>
  7474. <div
  7475. class="deleteComment"
  7476. v-if="userid == co.userid"
  7477. @click="deleteComment(co.wid)"
  7478. >
  7479. 删除
  7480. </div>
  7481. </div>
  7482. <div class="plContent">{{ co.commentText }}</div>
  7483. </div>
  7484. </div>
  7485. </div>
  7486. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  7487. </div>
  7488. </div>
  7489. <div style="margin-top: 10px">
  7490. <div class="displayBox">
  7491. <div
  7492. style="
  7493. color: #556db4;
  7494. font-size: 14px;
  7495. font-weight: bold;
  7496. padding-bottom: 10px;
  7497. "
  7498. >
  7499. 评价
  7500. </div>
  7501. <div class="easy_comment" v-if="false">
  7502. <div
  7503. v-for="(p, pIndex) in PlTextList"
  7504. :key="pIndex"
  7505. @click="fastText(p, 1)"
  7506. >
  7507. {{ p }}
  7508. </div>
  7509. </div>
  7510. </div>
  7511. <div>
  7512. <textarea
  7513. rows="3"
  7514. class="pj"
  7515. style="padding: 10px 5px"
  7516. cols
  7517. v-model="commentText"
  7518. placeholder="请输入对该学生的评价"
  7519. ></textarea>
  7520. </div>
  7521. </div>
  7522. <div slot="footer">
  7523. <el-button
  7524. @click="
  7525. (commentDialogVisible = false),
  7526. (commentIndexJson = {}),
  7527. videoDetail.sources && videoDetail.sources[0]
  7528. ? (videoDetail.sources[0].src = '')
  7529. : ''
  7530. "
  7531. >取 消</el-button
  7532. >
  7533. <el-button
  7534. type="primary"
  7535. @click="addComment(commentDetail.wid, userid, 2)"
  7536. >确 定</el-button
  7537. >
  7538. </div>
  7539. </el-dialog>
  7540. <el-dialog
  7541. title="查看文档"
  7542. :visible.sync="fullDialogVisible"
  7543. :append-to-body="true"
  7544. width="100%"
  7545. :before-close="handleClose"
  7546. :show-close="false"
  7547. class="dialog_diy full_diy"
  7548. :class="{ full_diy2: fulltype == 3 }"
  7549. >
  7550. <div slot="title" class="header-title">
  7551. <div style="color: #fff">查看文档</div>
  7552. <div
  7553. @click="fullDialogVisible = false"
  7554. style="
  7555. cursor: pointer;
  7556. position: absolute;
  7557. top: 20px;
  7558. right: 20px;
  7559. color: #fff;
  7560. "
  7561. >
  7562. 退出全屏
  7563. </div>
  7564. </div>
  7565. <div style="height: 100%">
  7566. <div
  7567. class="wheel"
  7568. v-if="
  7569. fulltype == 2 &&
  7570. fullUrl.indexOf(
  7571. 'https://view.officeapps.live.com/op/view.aspx?src='
  7572. ) != -1
  7573. "
  7574. style="width: 95%; margin: 0 auto"
  7575. >
  7576. <iframe
  7577. style="width: 100%; height: 100%; border: none"
  7578. :src="fullUrl"
  7579. ></iframe>
  7580. </div>
  7581. <iframe
  7582. v-else-if="fulltype == 2"
  7583. style="width: 100%; height: 100%; border: none"
  7584. :src="fullUrl"
  7585. security="restricted"
  7586. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  7587. ></iframe>
  7588. <pdf
  7589. v-else-if="fulltype == 3"
  7590. :pdfUrl="fullUrl"
  7591. style="width: 100%; height: 100%; overflow: auto"
  7592. ></pdf>
  7593. <div
  7594. class="wheel"
  7595. v-if="fulltype == 1"
  7596. style="
  7597. box-shadow: 0 0 6px 1px #f2f2f2;
  7598. width: 100%;
  7599. background: #f1f1f1;
  7600. "
  7601. >
  7602. <div class="title" style="width: 100%; box-sizing: border-box">
  7603. 查看文档
  7604. </div>
  7605. <el-form class="textBox" style="height: 90%">
  7606. <el-form-item class="textTitle">
  7607. <div style="font-size: 22px">
  7608. {{ fullUrl.name }}
  7609. </div>
  7610. </el-form-item>
  7611. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  7612. <div
  7613. v-html="fullUrl.url"
  7614. class="textContent"
  7615. style="height: auto"
  7616. ></div>
  7617. </el-form>
  7618. </div>
  7619. </div>
  7620. <!-- <div slot="footer">
  7621. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  7622. </div> -->
  7623. </el-dialog>
  7624. <el-dialog
  7625. title="个人评价"
  7626. :visible.sync="studentEvalDialogVisible"
  7627. :append-to-body="true"
  7628. width="800px"
  7629. :before-close="handleClose"
  7630. class="dialog_diy"
  7631. >
  7632. <div class="evalCss">
  7633. <div class="nav">请选择星星进行评分</div>
  7634. <div class="middleBox" v-if="eScore.eStar">
  7635. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  7636. <div class="nameAndrate">
  7637. <div>{{ e.value }}</div>
  7638. <el-rate
  7639. v-model="eScore.eStar[eIndex]"
  7640. :disabled="isStar"
  7641. ></el-rate>
  7642. </div>
  7643. <div v-if="e.detail">{{ e.detail }}</div>
  7644. </div>
  7645. <div class="easy_comment" v-if="false">
  7646. <div
  7647. v-for="(p, pIndex) in PlTextList"
  7648. :key="pIndex"
  7649. @click="fastText(p, 2)"
  7650. >
  7651. {{ p }}
  7652. </div>
  7653. </div>
  7654. <div class="bz">
  7655. <textarea
  7656. :disabled="isStar"
  7657. rows="4"
  7658. class="pj"
  7659. style="
  7660. padding: 10px 5px;
  7661. width: 70%;
  7662. background: #f7f6f9;
  7663. font-size: 14px;
  7664. text-indent: 10px;
  7665. "
  7666. cols
  7667. v-model="eScore.eBzText"
  7668. placeholder="请输入评价内容..."
  7669. ></textarea>
  7670. </div>
  7671. </div>
  7672. </div>
  7673. <div slot="footer">
  7674. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  7675. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  7676. >确 定</el-button
  7677. >
  7678. </div>
  7679. </el-dialog>
  7680. <el-dialog
  7681. title="个人评价"
  7682. :visible.sync="studentEvalDialogVisibleTeacher"
  7683. :append-to-body="true"
  7684. width="800px"
  7685. :before-close="handleClose"
  7686. class="dialog_diy"
  7687. >
  7688. <div class="w_name">
  7689. 学生姓名:<span>{{ sStudent.student }}</span>
  7690. </div>
  7691. <div class="evalCss">
  7692. <div class="nav">请选择星星进行评分</div>
  7693. <div class="middleBox" v-if="eScore.eStar">
  7694. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  7695. <div class="nameAndrate">
  7696. <div>{{ e.value }}</div>
  7697. <el-rate
  7698. v-model="eScore.eStar[eIndex]"
  7699. :disabled="isStar"
  7700. ></el-rate>
  7701. </div>
  7702. <div v-if="e.detail">{{ e.detail }}</div>
  7703. </div>
  7704. <div class="easy_comment" v-if="false">
  7705. <div
  7706. v-for="(p, pIndex) in PlTextList"
  7707. :key="pIndex"
  7708. @click="fastText(p, 2)"
  7709. >
  7710. {{ p }}
  7711. </div>
  7712. </div>
  7713. <div class="bz">
  7714. <textarea
  7715. :disabled="isStar"
  7716. rows="4"
  7717. class="pj"
  7718. style="
  7719. padding: 10px 5px;
  7720. width: 70%;
  7721. background: #f7f6f9;
  7722. font-size: 14px;
  7723. text-indent: 10px;
  7724. "
  7725. cols
  7726. v-model="eScore.eBzText"
  7727. placeholder="请输入评价内容..."
  7728. ></textarea>
  7729. </div>
  7730. </div>
  7731. </div>
  7732. <div slot="footer">
  7733. <el-button @click="studentEvalDialogVisibleTeacher = false"
  7734. >取 消</el-button
  7735. >
  7736. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  7737. >确 定</el-button
  7738. >
  7739. </div>
  7740. </el-dialog>
  7741. <el-dialog
  7742. title="选择填空"
  7743. :visible.sync="dialogVisibleSelect"
  7744. :append-to-body="true"
  7745. width="90%"
  7746. :before-close="handleClose"
  7747. class="dialog_diy dialog_diy3"
  7748. >
  7749. <div v-if="selectJson">
  7750. <div class="select_box2">
  7751. <div class="select_box2_title">
  7752. <div>选择填空</div>
  7753. <div>请选择对应的答案进行答题!</div>
  7754. </div>
  7755. <div class="select_box2_box">
  7756. <div class="select_box2_img">
  7757. <img
  7758. :src="selectJson.url"
  7759. @click="previewImg(selectJson.url)"
  7760. alt=""
  7761. />
  7762. </div>
  7763. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  7764. <div style="padding-top: 15px">
  7765. <div class="select_answer_title" v-if="isSelect">
  7766. {{ selectAnswer.stu }}
  7767. </div>
  7768. <div class="select_answer_title" v-else>
  7769. 根据题目选择对应答案
  7770. </div>
  7771. <div
  7772. class="select_box2_answer_box"
  7773. v-for="(item2, checkIndex) in selectJson.select"
  7774. :key="checkIndex"
  7775. >
  7776. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  7777. <el-select
  7778. :disabled="isSelect"
  7779. v-model="selectAnswer.answer[checkIndex]"
  7780. placeholder="请选择正确答案"
  7781. >
  7782. <el-option
  7783. v-for="(e, eIndex) in selectJson.select"
  7784. :key="eIndex"
  7785. :label="e"
  7786. :value="eIndex"
  7787. >
  7788. </el-option>
  7789. </el-select>
  7790. </div>
  7791. </div>
  7792. <div
  7793. class="rightAnswerCss"
  7794. v-if="isSelect && (tType == 1 || tType == 4)"
  7795. >
  7796. <div
  7797. v-for="(a, aIndex) in selectJson.answer"
  7798. :key="aIndex"
  7799. class="rightAnswer"
  7800. >
  7801. <div
  7802. v-if="selectAnswer.answer[aIndex] === a"
  7803. style="color: #767de1"
  7804. >
  7805. 回答正确
  7806. </div>
  7807. <div v-else>回答错误</div>
  7808. <div
  7809. style="margin-left: 10px"
  7810. v-if="selectAnswer.answer[aIndex] !== a"
  7811. >
  7812. 正确答案:
  7813. </div>
  7814. <div
  7815. :class="
  7816. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  7817. "
  7818. >
  7819. {{ selectJson.select[a] }}
  7820. </div>
  7821. </div>
  7822. </div>
  7823. </div>
  7824. <div class="upAnswerCss">
  7825. <el-button
  7826. type="primary"
  7827. @click="addSelectAnswer"
  7828. v-if="!isSelect"
  7829. >提交答案</el-button
  7830. >
  7831. </div>
  7832. </div>
  7833. </div>
  7834. </div>
  7835. </el-dialog>
  7836. <el-dialog
  7837. title="选择填空"
  7838. :visible.sync="dialogVisibleSelectTeacher"
  7839. :append-to-body="true"
  7840. width="90%"
  7841. :before-close="handleClose"
  7842. class="dialog_diy dialog_diy3"
  7843. >
  7844. <div v-if="selectJson">
  7845. <div class="w_name">
  7846. 学生姓名:<span>{{ sStudent.student }}</span>
  7847. </div>
  7848. <div class="select_box2">
  7849. <div class="select_box2_title">
  7850. <div>选择填空</div>
  7851. <div>请选择对应的答案进行答题!</div>
  7852. </div>
  7853. <div class="select_box2_box">
  7854. <div class="select_box2_img">
  7855. <img
  7856. :src="selectJson.url"
  7857. @click="previewImg(selectJson.url)"
  7858. alt=""
  7859. />
  7860. </div>
  7861. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  7862. <div style="padding-top: 15px">
  7863. <div class="select_answer_title" v-if="isSelect">
  7864. {{ selectAnswer.stu }}
  7865. </div>
  7866. <div class="select_answer_title" v-else>
  7867. 根据题目选择对应答案
  7868. </div>
  7869. <div
  7870. class="select_box2_answer_box"
  7871. v-for="(item2, checkIndex) in selectJson.select"
  7872. :key="checkIndex"
  7873. >
  7874. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  7875. <el-select
  7876. :disabled="isSelect"
  7877. v-model="selectAnswer.answer[checkIndex]"
  7878. placeholder="请选择正确答案"
  7879. >
  7880. <el-option
  7881. v-for="(e, eIndex) in selectJson.select"
  7882. :key="eIndex"
  7883. :label="e"
  7884. :value="eIndex"
  7885. >
  7886. </el-option>
  7887. </el-select>
  7888. </div>
  7889. </div>
  7890. <div
  7891. class="rightAnswerCss"
  7892. v-if="isSelect && (tType == 1 || tType == 4)"
  7893. >
  7894. <div
  7895. v-for="(a, aIndex) in selectJson.answer"
  7896. :key="aIndex"
  7897. class="rightAnswer"
  7898. >
  7899. <div
  7900. v-if="selectAnswer.answer[aIndex] === a"
  7901. style="color: #767de1"
  7902. >
  7903. 回答正确
  7904. </div>
  7905. <div v-else>回答错误</div>
  7906. <div
  7907. style="margin-left: 10px"
  7908. v-if="selectAnswer.answer[aIndex] !== a"
  7909. >
  7910. 正确答案:
  7911. </div>
  7912. <div
  7913. :class="
  7914. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  7915. "
  7916. >
  7917. {{ selectJson.select[a] }}
  7918. </div>
  7919. </div>
  7920. </div>
  7921. </div>
  7922. <div class="upAnswerCss">
  7923. <el-button
  7924. type="primary"
  7925. @click="addSelectAnswerTeacher"
  7926. v-if="!isSelect"
  7927. >提交答案</el-button
  7928. >
  7929. </div>
  7930. </div>
  7931. </div>
  7932. </div>
  7933. </el-dialog>
  7934. <el-dialog
  7935. title="教师评分"
  7936. :visible.sync="dialogVisibleScore"
  7937. :append-to-body="true"
  7938. width="800px"
  7939. :before-close="handleClose"
  7940. class="dialog_diy"
  7941. >
  7942. <div>
  7943. <div class="studentDetail">
  7944. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  7945. <div class="nameAndTime">
  7946. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  7947. <div>{{ commentDetail.time }}</div>
  7948. </div>
  7949. </div>
  7950. <div
  7951. class="worksAnswer"
  7952. v-if="commentDetail.works && commentDetail.type == 2"
  7953. >
  7954. {{ JSON.parse(commentDetail.works)[0].answer }}
  7955. </div>
  7956. <div
  7957. class="worksAnswer"
  7958. v-if="commentDetail.works && commentDetail.type == 1"
  7959. >
  7960. <pdf
  7961. v-if="showPDF"
  7962. :pdfUrl="pptImgUrl"
  7963. style="width: 100%; height: 520px; overflow: auto"
  7964. :class="{ fullStyle: full }"
  7965. ></pdf>
  7966. <iframe
  7967. v-else
  7968. :src="pptImgUrl"
  7969. frameborder="0"
  7970. width="100%"
  7971. height="600"
  7972. :class="{ fullStyle: full }"
  7973. ></iframe>
  7974. </div>
  7975. <div
  7976. class="worksAnswer"
  7977. v-if="commentDetail.works && commentDetail.type == 0"
  7978. >
  7979. <img
  7980. :src="commentDetail.works"
  7981. alt=""
  7982. @click="previewImg(commentDetail.works)"
  7983. />
  7984. </div>
  7985. <div
  7986. class="worksAnswer"
  7987. v-if="commentDetail.works && commentDetail.type == 3"
  7988. >
  7989. <video-player
  7990. class="video-player vjs-custom-skin"
  7991. :playsinline="true"
  7992. :options="videoDetail"
  7993. @play="onPlayerPlay($event)"
  7994. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  7995. ></video-player>
  7996. </div>
  7997. <div
  7998. class="worksAnswer codeFileBox"
  7999. v-if="commentDetail.works && commentDetail.type == 12"
  8000. @click="downloadFile(commentDetail.works)"
  8001. >
  8002. <img src="../assets/icon/codeFile.png" />
  8003. <div>点击下载文件</div>
  8004. </div>
  8005. <div
  8006. class="worksAnswer"
  8007. v-if="commentDetail.works && commentDetail.type == 13"
  8008. >
  8009. <div v-html="JSON.parse(commentDetail.works).text"></div>
  8010. </div>
  8011. <div class="scoreBox">
  8012. <span class="t">请输入分数</span>
  8013. <el-input-number
  8014. :disabled="courseDetail.userid != userid"
  8015. v-model="wScore"
  8016. :controls="false"
  8017. :min="0"
  8018. :max="100"
  8019. ></el-input-number>
  8020. </div>
  8021. <div class="scoreDetailBox">
  8022. <span class="t">评分评论</span>
  8023. <el-input
  8024. type="textarea"
  8025. :rows="5"
  8026. :disabled="courseDetail.userid != userid"
  8027. resize="none"
  8028. v-model="scoreDetail"
  8029. placeholder="请输入对学生的评价"
  8030. >
  8031. </el-input>
  8032. </div>
  8033. </div>
  8034. <span slot="footer" class="dialog-footer">
  8035. <el-button
  8036. @click="
  8037. (dialogVisibleScore = false),
  8038. (commentIndexJson = {}),
  8039. videoDetail.sources && videoDetail.sources[0]
  8040. ? (videoDetail.sources[0].src = '')
  8041. : ''
  8042. "
  8043. >取 消</el-button
  8044. >
  8045. <el-button
  8046. type="primary"
  8047. v-if="courseDetail.userid == userid"
  8048. @click="scoreWork(commentDetail.wid)"
  8049. >确 定
  8050. </el-button>
  8051. </span>
  8052. </el-dialog>
  8053. <el-dialog
  8054. title="连词成句"
  8055. :visible.sync="dialogVisibleSentence"
  8056. :append-to-body="true"
  8057. width="1000px"
  8058. :before-close="handleClose"
  8059. class="dialog_diy dialog_diy3"
  8060. >
  8061. <div>
  8062. <div class="sentenBox">
  8063. <div
  8064. v-for="(st, stIndex) in sentenceList"
  8065. :key="stIndex"
  8066. style="padding-bottom: 20px"
  8067. >
  8068. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  8069. <div class="cardList" v-if="st.chooseSenList">
  8070. <div class="cardBox">
  8071. <div
  8072. v-for="(r, rIndex) in st.chooseSenList"
  8073. :key="rIndex"
  8074. @click="returnCard(r, stIndex, rIndex)"
  8075. >
  8076. <el-tooltip
  8077. class="item"
  8078. effect="light"
  8079. :content="r"
  8080. placement="top"
  8081. v-if="r != '' && r != undefined"
  8082. >
  8083. <div
  8084. :class="{
  8085. isCard: r,
  8086. isChooseCard: r == '' || r == undefined,
  8087. }"
  8088. >
  8089. <div>{{ r }}</div>
  8090. </div>
  8091. </el-tooltip>
  8092. <div
  8093. :class="{
  8094. isCard: r,
  8095. isChooseCard: r == '' || r == undefined,
  8096. }"
  8097. v-else
  8098. >
  8099. <div>{{ r }}</div>
  8100. </div>
  8101. </div>
  8102. </div>
  8103. </div>
  8104. <div class="cardList" v-if="st.addChangeSen">
  8105. <div class="cardBox">
  8106. <div
  8107. v-for="(s, sIndex) in st.addChangeSen"
  8108. :key="sIndex"
  8109. @click="setRightAnswer(s, stIndex, sIndex)"
  8110. >
  8111. <el-tooltip
  8112. class="item"
  8113. effect="light"
  8114. :content="s"
  8115. placement="top"
  8116. v-if="s != '' && s != undefined"
  8117. >
  8118. <div
  8119. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8120. >
  8121. <div>{{ s }}</div>
  8122. </div>
  8123. </el-tooltip>
  8124. <div
  8125. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8126. v-else
  8127. >
  8128. <div>{{ s }}</div>
  8129. </div>
  8130. </div>
  8131. </div>
  8132. </div>
  8133. </div>
  8134. </div>
  8135. </div>
  8136. <span slot="footer" class="dialog-footer">
  8137. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  8138. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  8139. </span>
  8140. </el-dialog>
  8141. <el-dialog
  8142. title="连词成句"
  8143. :visible.sync="dialogVisibleSentenceTeacher"
  8144. :append-to-body="true"
  8145. width="1000px"
  8146. :before-close="handleClose"
  8147. class="dialog_diy dialog_diy3"
  8148. >
  8149. <div>
  8150. <div class="w_name">
  8151. 学生姓名:<span>{{ sStudent.student }}</span>
  8152. </div>
  8153. <div class="sentenBox">
  8154. <div
  8155. v-for="(st, stIndex) in sentenceList"
  8156. :key="stIndex"
  8157. style="padding-bottom: 20px"
  8158. >
  8159. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  8160. <div class="cardList" v-if="st.chooseSenList">
  8161. <div class="cardBox">
  8162. <div
  8163. v-for="(r, rIndex) in st.chooseSenList"
  8164. :key="rIndex"
  8165. @click="returnCard(r, stIndex, rIndex)"
  8166. >
  8167. <el-tooltip
  8168. class="item"
  8169. effect="light"
  8170. :content="r"
  8171. placement="top"
  8172. v-if="r != '' && r != undefined"
  8173. >
  8174. <div
  8175. :class="{
  8176. isCard: r,
  8177. isChooseCard: r == '' || r == undefined,
  8178. }"
  8179. >
  8180. <div>{{ r }}</div>
  8181. </div>
  8182. </el-tooltip>
  8183. <div
  8184. :class="{
  8185. isCard: r,
  8186. isChooseCard: r == '' || r == undefined,
  8187. }"
  8188. v-else
  8189. >
  8190. <div>{{ r }}</div>
  8191. </div>
  8192. </div>
  8193. </div>
  8194. </div>
  8195. <div class="cardList" v-if="st.addChangeSen">
  8196. <div class="cardBox">
  8197. <div
  8198. v-for="(s, sIndex) in st.addChangeSen"
  8199. :key="sIndex"
  8200. @click="setRightAnswer(s, stIndex, sIndex)"
  8201. >
  8202. <el-tooltip
  8203. class="item"
  8204. effect="light"
  8205. :content="s"
  8206. placement="top"
  8207. v-if="s != '' && s != undefined"
  8208. >
  8209. <div
  8210. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8211. >
  8212. <div>{{ s }}</div>
  8213. </div>
  8214. </el-tooltip>
  8215. <div
  8216. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8217. v-else
  8218. >
  8219. <div>{{ s }}</div>
  8220. </div>
  8221. </div>
  8222. </div>
  8223. </div>
  8224. </div>
  8225. </div>
  8226. </div>
  8227. <span slot="footer" class="dialog-footer">
  8228. <el-button @click="dialogVisibleSentenceTeacher = false"
  8229. >取 消</el-button
  8230. >
  8231. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  8232. </span>
  8233. </el-dialog>
  8234. <el-dialog
  8235. title="连词成句"
  8236. :visible.sync="dialogVisibleSentence1"
  8237. :append-to-body="true"
  8238. width="1000px"
  8239. :before-close="handleClose"
  8240. class="dialog_diy dialog_diy3"
  8241. >
  8242. <div>
  8243. <div class="sentenBox">
  8244. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  8245. {{ sentenceList1.stuName }}的作业
  8246. </div>
  8247. <div
  8248. v-for="(st, stIndex) in sentenceList1"
  8249. :key="stIndex"
  8250. style="padding-bottom: 20px"
  8251. >
  8252. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  8253. 第{{ stIndex + 1 }}题
  8254. </div>
  8255. <div class="isWrong">
  8256. <div class="cardList1" v-if="st.chooseSenList">
  8257. <div class="cardBox">
  8258. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  8259. <el-tooltip
  8260. class="item"
  8261. effect="light"
  8262. :content="s"
  8263. placement="top"
  8264. >
  8265. <div class="isCard">
  8266. <div>{{ s }}</div>
  8267. </div>
  8268. </el-tooltip>
  8269. </div>
  8270. </div>
  8271. <div class="cardAnswerBox">
  8272. 组成句子:{{ st.chooseSenList.join(" ") }}
  8273. </div>
  8274. </div>
  8275. <div v-if="tType == 2" class="isTj">
  8276. <div class="isTjImg">
  8277. <img src="../assets/icon/conSentences/right.png" alt="" />
  8278. </div>
  8279. <div>已提交</div>
  8280. </div>
  8281. <div
  8282. class="answerRight isTj"
  8283. v-if="
  8284. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  8285. (tType == 1 || tType == 4)
  8286. "
  8287. >
  8288. <div class="isTjImg">
  8289. <img src="../assets/icon/conSentences/right.png" alt="" />
  8290. </div>
  8291. <div>回答正确</div>
  8292. </div>
  8293. <div
  8294. class="answerRight isTj"
  8295. v-if="
  8296. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  8297. (tType == 1 || tType == 4)
  8298. "
  8299. >
  8300. <div class="isTjImg">
  8301. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  8302. </div>
  8303. <div>回答错误</div>
  8304. </div>
  8305. </div>
  8306. <div
  8307. v-if="
  8308. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  8309. (tType == 1 || tType == 4)
  8310. "
  8311. >
  8312. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  8313. <div
  8314. class="cardList"
  8315. v-if="st.rightAnswer"
  8316. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  8317. >
  8318. <div class="cardBox">
  8319. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  8320. <el-tooltip
  8321. class="item"
  8322. effect="light"
  8323. :content="r"
  8324. placement="top"
  8325. >
  8326. <div class="isCard1">
  8327. <div>{{ r }}</div>
  8328. </div>
  8329. </el-tooltip>
  8330. </div>
  8331. </div>
  8332. <div class="cardAnswerBox">
  8333. 组成句子:{{ st.rightAnswer.join(" ") }}
  8334. </div>
  8335. </div>
  8336. </div>
  8337. </div>
  8338. </div>
  8339. </div>
  8340. <span slot="footer" class="dialog-footer">
  8341. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  8342. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  8343. >确 定</el-button
  8344. >
  8345. </span>
  8346. </el-dialog>
  8347. <el-dialog
  8348. title="教师提交作业"
  8349. :visible.sync="dialogVisibleWorks"
  8350. :append-to-body="true"
  8351. width="500px"
  8352. :before-close="handleClose"
  8353. class="dialog_change"
  8354. >
  8355. <div class="marginT">
  8356. <div class="w_name">
  8357. 学生姓名:<span>{{ sStudent.student }}</span>
  8358. </div>
  8359. <div>上传文件</div>
  8360. <div
  8361. class="chapter_add"
  8362. @click="addImg($event)"
  8363. v-if="studyJuri[0].cover.length == 0"
  8364. >
  8365. <div class="up_photo">
  8366. <img src="../assets/uploadImg2.png" alt />
  8367. </div>
  8368. <!-- <input
  8369. type="file"
  8370. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8371. style="display: none"
  8372. @change="beforeUpload1($event, 1)"
  8373. /> -->
  8374. <input
  8375. type="file"
  8376. accept="*"
  8377. style="display: none"
  8378. @change="beforeUpload1($event, 1)"
  8379. />
  8380. </div>
  8381. <!-- capture="camera" -->
  8382. <div
  8383. class="chapter_add"
  8384. style="
  8385. display: flex;
  8386. width: 100%;
  8387. flex-direction: row;
  8388. flex-wrap: wrap;
  8389. justify-content: flex-start;
  8390. padding: 15px 0;
  8391. "
  8392. v-if="studyJuri[0].cover.length > 0"
  8393. >
  8394. <div class="upCover">
  8395. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  8396. <img :src="word" alt v-else-if="fileType == 1" />
  8397. <img :src="video" alt v-else-if="fileType == 2" />
  8398. <img :src="word2" alt v-else-if="fileType == 3" />
  8399. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8400. <div class="deleteWord" @click="clean(1)">
  8401. <img src="../assets/icon/deleteWorks.png" alt />
  8402. </div>
  8403. </div>
  8404. </div>
  8405. </div>
  8406. <div
  8407. class="upload_send"
  8408. @click="addCourseWorksTeacher(taskCount)"
  8409. v-if="!proVisible"
  8410. >
  8411. 提交
  8412. </div>
  8413. </el-dialog>
  8414. <ImgDraw
  8415. :drawShow="drawShow"
  8416. @closeDraw="closeDraw"
  8417. @addImgDraw="addImgDraw"
  8418. :bg="bg"
  8419. ></ImgDraw>
  8420. <el-dialog
  8421. title="表格"
  8422. :visible.sync="dialogVisibleTable"
  8423. :append-to-body="true"
  8424. width="95%"
  8425. :before-close="handleClose"
  8426. class="dialog_diy"
  8427. >
  8428. <el-form>
  8429. <div>表格内容</div>
  8430. <Table
  8431. v-model="tableJson.text"
  8432. @change="change"
  8433. v-if="dialogVisibleTable"
  8434. ></Table>
  8435. </el-form>
  8436. <span slot="footer" class="dialog-footer">
  8437. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  8438. <el-button type="primary" @click="addTableWorks">确定</el-button>
  8439. </span>
  8440. </el-dialog>
  8441. <el-dialog
  8442. title="表格"
  8443. :visible.sync="dialogVisibleTableTeacher"
  8444. :append-to-body="true"
  8445. width="95%"
  8446. :before-close="handleClose"
  8447. class="dialog_diy"
  8448. >
  8449. <el-form>
  8450. <div class="w_name">
  8451. 学生姓名:<span>{{ sStudent.student }}</span>
  8452. </div>
  8453. <div>表格内容</div>
  8454. <Table
  8455. v-model="tableJson.text"
  8456. @change="change"
  8457. v-if="dialogVisibleTableTeacher"
  8458. ></Table>
  8459. </el-form>
  8460. <span slot="footer" class="dialog-footer">
  8461. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  8462. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  8463. </span>
  8464. </el-dialog>
  8465. <el-dialog
  8466. title="文档"
  8467. :visible.sync="dialogVisibleWord"
  8468. :append-to-body="true"
  8469. width="95%"
  8470. :before-close="handleClose"
  8471. class="dialog_diy"
  8472. >
  8473. <el-form>
  8474. <div>文档内容</div>
  8475. <editor-bar
  8476. v-model="wordJson.text"
  8477. v-if="dialogVisibleWord"
  8478. ></editor-bar>
  8479. </el-form>
  8480. <span slot="footer" class="dialog-footer">
  8481. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  8482. <el-button type="primary" @click="addWordWorks">确定</el-button>
  8483. </span>
  8484. </el-dialog>
  8485. <el-dialog
  8486. title="文档"
  8487. :visible.sync="dialogVisibleWordTeacher"
  8488. :append-to-body="true"
  8489. width="95%"
  8490. :before-close="handleClose"
  8491. class="dialog_diy"
  8492. >
  8493. <el-form>
  8494. <div class="w_name">
  8495. 学生姓名:<span>{{ sStudent.student }}</span>
  8496. </div>
  8497. <div>文档内容</div>
  8498. <editor-bar
  8499. v-model="wordJson.text"
  8500. v-if="dialogVisibleWordTeacher"
  8501. ></editor-bar>
  8502. </el-form>
  8503. <span slot="footer" class="dialog-footer">
  8504. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  8505. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  8506. </span>
  8507. </el-dialog>
  8508. <el-dialog
  8509. title="表格"
  8510. :visible.sync="dialogVisibleTable2"
  8511. :append-to-body="true"
  8512. width="95%"
  8513. :before-close="handleClose"
  8514. class="dialog_diy"
  8515. >
  8516. <el-form>
  8517. <div class="cont" v-html="tableJson.text"></div>
  8518. </el-form>
  8519. <span slot="footer" class="dialog-footer">
  8520. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  8521. </span>
  8522. </el-dialog>
  8523. <el-dialog
  8524. title="分组设置"
  8525. :visible.sync="dialogVisibleGroup"
  8526. :append-to-body="true"
  8527. width="95%"
  8528. :before-close="handleClose"
  8529. class="dialog_diy"
  8530. >
  8531. <div v-if="dialogVisibleGroup">
  8532. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  8533. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  8534. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  8535. </div>
  8536. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  8537. @click="lockChair">
  8538. 锁定位置
  8539. </div>
  8540. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  8541. 解锁位置
  8542. </div> -->
  8543. <div class="group_switch">
  8544. <span>开放选座</span>
  8545. <el-switch
  8546. v-model="islock"
  8547. active-text=""
  8548. class="switchCss"
  8549. @change="lockChair"
  8550. ></el-switch>
  8551. </div>
  8552. <div
  8553. type="primary"
  8554. @click="updateGroup"
  8555. class="returnBtn"
  8556. style="background-color: #225bc7"
  8557. >
  8558. 分组设置
  8559. </div>
  8560. </div>
  8561. <div>
  8562. <div
  8563. class="g_d_box"
  8564. v-if="groupJson.group && groupStudent[toolindex]"
  8565. >
  8566. <div
  8567. class="g_d_group"
  8568. v-for="(g, gindex) in groupJson.group"
  8569. :key="gindex"
  8570. >
  8571. <div class="g_d_group_chair">
  8572. <div v-if="groupJson.number > 1">
  8573. <span
  8574. :class="{
  8575. isChair:
  8576. groupStudent[toolindex][gindex] &&
  8577. groupStudent[toolindex][gindex][0],
  8578. updateChair:
  8579. courseDetail.userid == userid &&
  8580. groupStudent[toolindex][gindex] &&
  8581. groupStudent[toolindex][gindex][0] &&
  8582. groupJson.islock == 2,
  8583. }"
  8584. ><span
  8585. class="updateChairBtn"
  8586. @click="
  8587. updateGroupChair(
  8588. groupStudent[toolindex][gindex] &&
  8589. groupStudent[toolindex][gindex][0]
  8590. )
  8591. "
  8592. >修改</span
  8593. ></span
  8594. ><span>{{
  8595. groupStudent[toolindex][gindex] &&
  8596. groupStudent[toolindex][gindex][0]
  8597. ? groupStudent[toolindex][gindex] &&
  8598. groupStudent[toolindex][gindex][0].name
  8599. : "空位置"
  8600. }}</span>
  8601. </div>
  8602. <div v-if="groupJson.number > 4">
  8603. <span
  8604. :class="{
  8605. isChair:
  8606. groupStudent[toolindex][gindex] &&
  8607. groupStudent[toolindex][gindex][4],
  8608. updateChair:
  8609. courseDetail.userid == userid &&
  8610. groupStudent[toolindex][gindex] &&
  8611. groupStudent[toolindex][gindex][4] &&
  8612. groupJson.islock == 2,
  8613. }"
  8614. ><span
  8615. class="updateChairBtn"
  8616. @click="
  8617. updateGroupChair(
  8618. groupStudent[toolindex][gindex] &&
  8619. groupStudent[toolindex][gindex][4]
  8620. )
  8621. "
  8622. >修改</span
  8623. ></span
  8624. ><span>{{
  8625. groupStudent[toolindex][gindex] &&
  8626. groupStudent[toolindex][gindex][4]
  8627. ? groupStudent[toolindex][gindex] &&
  8628. groupStudent[toolindex][gindex][4].name
  8629. : "空位置"
  8630. }}</span>
  8631. </div>
  8632. <div v-if="groupJson.number > 8">
  8633. <span
  8634. :class="{
  8635. isChair:
  8636. groupStudent[toolindex][gindex] &&
  8637. groupStudent[toolindex][gindex][8],
  8638. updateChair:
  8639. courseDetail.userid == userid &&
  8640. groupStudent[toolindex][gindex] &&
  8641. groupStudent[toolindex][gindex][8] &&
  8642. groupJson.islock == 2,
  8643. }"
  8644. ><span
  8645. class="updateChairBtn"
  8646. @click="
  8647. updateGroupChair(
  8648. groupStudent[toolindex][gindex] &&
  8649. groupStudent[toolindex][gindex][8]
  8650. )
  8651. "
  8652. >修改</span
  8653. ></span
  8654. ><span>{{
  8655. groupStudent[toolindex][gindex] &&
  8656. groupStudent[toolindex][gindex][8]
  8657. ? groupStudent[toolindex][gindex] &&
  8658. groupStudent[toolindex][gindex][8].name
  8659. : "空位置"
  8660. }}</span>
  8661. </div>
  8662. </div>
  8663. <div class="g_d_group_tableBox">
  8664. <div class="g_d_group_chair2">
  8665. <div v-if="groupJson.number > 2">
  8666. <span
  8667. :class="{
  8668. isChair:
  8669. groupStudent[toolindex][gindex] &&
  8670. groupStudent[toolindex][gindex][2],
  8671. updateChair:
  8672. courseDetail.userid == userid &&
  8673. groupStudent[toolindex][gindex] &&
  8674. groupStudent[toolindex][gindex][2] &&
  8675. groupJson.islock == 2,
  8676. }"
  8677. ><span
  8678. class="updateChairBtn"
  8679. @click="
  8680. updateGroupChair(
  8681. groupStudent[toolindex][gindex] &&
  8682. groupStudent[toolindex][gindex][2]
  8683. )
  8684. "
  8685. >修改</span
  8686. ></span
  8687. ><span>{{
  8688. groupStudent[toolindex][gindex] &&
  8689. groupStudent[toolindex][gindex][2]
  8690. ? groupStudent[toolindex][gindex] &&
  8691. groupStudent[toolindex][gindex][2].name
  8692. : "空位置"
  8693. }}</span>
  8694. </div>
  8695. <div v-if="groupJson.number > 6">
  8696. <span
  8697. :class="{
  8698. isChair:
  8699. groupStudent[toolindex][gindex] &&
  8700. groupStudent[toolindex][gindex][6],
  8701. updateChair:
  8702. courseDetail.userid == userid &&
  8703. groupStudent[toolindex][gindex] &&
  8704. groupStudent[toolindex][gindex][6] &&
  8705. groupJson.islock == 2,
  8706. }"
  8707. ><span
  8708. class="updateChairBtn"
  8709. @click="
  8710. updateGroupChair(
  8711. groupStudent[toolindex][gindex] &&
  8712. groupStudent[toolindex][gindex][6]
  8713. )
  8714. "
  8715. >修改</span
  8716. ></span
  8717. ><span>{{
  8718. groupStudent[toolindex][gindex] &&
  8719. groupStudent[toolindex][gindex][6]
  8720. ? groupStudent[toolindex][gindex] &&
  8721. groupStudent[toolindex][gindex][6].name
  8722. : "空位置"
  8723. }}</span>
  8724. </div>
  8725. </div>
  8726. <div class="g_d_group_table">
  8727. <div>
  8728. {{ g.name }}
  8729. </div>
  8730. <div>
  8731. <div
  8732. v-if="
  8733. courseDetail.userid == userid && groupJson.islock == 2
  8734. "
  8735. @click="deleteGroupChair(gindex)"
  8736. >
  8737. 移除组员
  8738. </div>
  8739. <div
  8740. @click="selectGroup(gindex)"
  8741. v-else-if="
  8742. groupStudentUid[toolindex] &&
  8743. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  8744. "
  8745. >
  8746. 加入分组
  8747. </div>
  8748. <div
  8749. @click="
  8750. exitGroup(
  8751. groupStudent[toolindex][gindex] &&
  8752. groupStudent[toolindex][gindex][
  8753. groupStudentUid[toolindex][gindex].indexOf(userid)
  8754. ].id
  8755. )
  8756. "
  8757. v-else-if="
  8758. groupStudentUid[toolindex] &&
  8759. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  8760. "
  8761. >
  8762. 退出分组
  8763. </div>
  8764. </div>
  8765. </div>
  8766. <div class="g_d_group_chair2">
  8767. <div v-if="groupJson.number > 3">
  8768. <span
  8769. :class="{
  8770. isChair:
  8771. groupStudent[toolindex][gindex] &&
  8772. groupStudent[toolindex][gindex][3],
  8773. updateChair:
  8774. courseDetail.userid == userid &&
  8775. groupStudent[toolindex][gindex] &&
  8776. groupStudent[toolindex][gindex][3] &&
  8777. groupJson.islock == 2,
  8778. }"
  8779. ><span
  8780. class="updateChairBtn"
  8781. @click="
  8782. updateGroupChair(
  8783. groupStudent[toolindex][gindex] &&
  8784. groupStudent[toolindex][gindex][3]
  8785. )
  8786. "
  8787. >修改</span
  8788. ></span
  8789. ><span>{{
  8790. groupStudent[toolindex][gindex] &&
  8791. groupStudent[toolindex][gindex][3]
  8792. ? groupStudent[toolindex][gindex] &&
  8793. groupStudent[toolindex][gindex][3].name
  8794. : "空位置"
  8795. }}</span>
  8796. </div>
  8797. <div v-if="groupJson.number > 7">
  8798. <span
  8799. :class="{
  8800. isChair:
  8801. groupStudent[toolindex][gindex] &&
  8802. groupStudent[toolindex][gindex][7],
  8803. updateChair:
  8804. courseDetail.userid == userid &&
  8805. groupStudent[toolindex][gindex] &&
  8806. groupStudent[toolindex][gindex][7] &&
  8807. groupJson.islock == 2,
  8808. }"
  8809. ><span
  8810. class="updateChairBtn"
  8811. @click="
  8812. updateGroupChair(
  8813. groupStudent[toolindex][gindex] &&
  8814. groupStudent[toolindex][gindex][7]
  8815. )
  8816. "
  8817. >修改</span
  8818. ></span
  8819. ><span>{{
  8820. groupStudent[toolindex][gindex] &&
  8821. groupStudent[toolindex][gindex][7]
  8822. ? groupStudent[toolindex][gindex] &&
  8823. groupStudent[toolindex][gindex][7].name
  8824. : "空位置"
  8825. }}</span>
  8826. </div>
  8827. </div>
  8828. </div>
  8829. <div class="g_d_group_chair">
  8830. <div v-if="groupJson.number > 1">
  8831. <span
  8832. :class="{
  8833. isChair:
  8834. groupStudent[toolindex][gindex] &&
  8835. groupStudent[toolindex][gindex][1],
  8836. updateChair:
  8837. courseDetail.userid == userid &&
  8838. groupStudent[toolindex][gindex] &&
  8839. groupStudent[toolindex][gindex][1] &&
  8840. groupJson.islock == 2,
  8841. }"
  8842. ><span
  8843. class="updateChairBtn"
  8844. @click="
  8845. updateGroupChair(
  8846. groupStudent[toolindex][gindex] &&
  8847. groupStudent[toolindex][gindex][1]
  8848. )
  8849. "
  8850. >修改</span
  8851. ></span
  8852. ><span>{{
  8853. groupStudent[toolindex][gindex] &&
  8854. groupStudent[toolindex][gindex][1]
  8855. ? groupStudent[toolindex][gindex] &&
  8856. groupStudent[toolindex][gindex][1].name
  8857. : "空位置"
  8858. }}</span>
  8859. </div>
  8860. <div v-if="groupJson.number > 5">
  8861. <span
  8862. :class="{
  8863. isChair:
  8864. groupStudent[toolindex][gindex] &&
  8865. groupStudent[toolindex][gindex][5],
  8866. updateChair:
  8867. courseDetail.userid == userid &&
  8868. groupStudent[toolindex][gindex] &&
  8869. groupStudent[toolindex][gindex][5] &&
  8870. groupJson.islock == 2,
  8871. }"
  8872. ><span
  8873. class="updateChairBtn"
  8874. @click="
  8875. updateGroupChair(
  8876. groupStudent[toolindex][gindex] &&
  8877. groupStudent[toolindex][gindex][5]
  8878. )
  8879. "
  8880. >修改</span
  8881. ></span
  8882. ><span>{{
  8883. groupStudent[toolindex][gindex] &&
  8884. groupStudent[toolindex][gindex][5]
  8885. ? groupStudent[toolindex][gindex] &&
  8886. groupStudent[toolindex][gindex][5].name
  8887. : "空位置"
  8888. }}</span>
  8889. </div>
  8890. <div v-if="groupJson.number > 9">
  8891. <span
  8892. :class="{
  8893. isChair:
  8894. groupStudent[toolindex][gindex] &&
  8895. groupStudent[toolindex][gindex][9],
  8896. updateChair:
  8897. courseDetail.userid == userid &&
  8898. groupStudent[toolindex][gindex] &&
  8899. groupStudent[toolindex][gindex][9] &&
  8900. groupJson.islock == 2,
  8901. }"
  8902. ><span
  8903. class="updateChairBtn"
  8904. @click="
  8905. updateGroupChair(
  8906. groupStudent[toolindex][gindex] &&
  8907. groupStudent[toolindex][gindex][9]
  8908. )
  8909. "
  8910. >修改</span
  8911. ></span
  8912. ><span>{{
  8913. groupStudent[toolindex][gindex] &&
  8914. groupStudent[toolindex][gindex][9]
  8915. ? groupStudent[toolindex][gindex] &&
  8916. groupStudent[toolindex][gindex][9].name
  8917. : "空位置"
  8918. }}</span>
  8919. </div>
  8920. </div>
  8921. </div>
  8922. </div>
  8923. </div>
  8924. </div>
  8925. <span slot="footer" class="dialog-footer">
  8926. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  8927. </span>
  8928. </el-dialog>
  8929. <el-dialog
  8930. title="分组设置"
  8931. :visible.sync="dialogVisibleGroup2"
  8932. :append-to-body="true"
  8933. width="650px"
  8934. :before-close="handleClose"
  8935. class="dialog_diy"
  8936. >
  8937. <div class="groupBox">
  8938. <div v-if="groupJson2.group" class="groupContent">
  8939. <div class="groupTitle">请设置小组数量</div>
  8940. <div
  8941. v-for="(item, index) in groupJson2.group"
  8942. :key="index"
  8943. class="groupName"
  8944. >
  8945. <span class="groupn">组{{ index + 1 }}名称:</span>
  8946. <el-input
  8947. v-model="item.name"
  8948. placeholder="请输入名称..."
  8949. style="width: 250px"
  8950. ></el-input>
  8951. <!-- <div class="groupBtn">
  8952. <el-button type="primary" size="small" @click="addGroup(index)">
  8953. 添加</el-button>
  8954. <el-button type="primary" size="small" @click="deleteGroup(index)"
  8955. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  8956. </div> -->
  8957. </div>
  8958. </div>
  8959. <div class="groupContent">
  8960. <div class="groupTitle">请设置每组人数数量</div>
  8961. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  8962. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  8963. <el-input-number
  8964. v-model="groupJson2.number"
  8965. :controls="false"
  8966. :min="2"
  8967. :max="10"
  8968. placeholder="2-10人以内"
  8969. ></el-input-number>
  8970. </div>
  8971. </div>
  8972. <span slot="footer" class="dialog-footer">
  8973. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  8974. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  8975. </span>
  8976. </el-dialog>
  8977. <el-dialog
  8978. title="作业提交"
  8979. :visible.sync="dialogVisibleGroupWork"
  8980. :append-to-body="true"
  8981. width="500px"
  8982. :before-close="handleClose"
  8983. class="dialog_change"
  8984. >
  8985. <div class="marginT">
  8986. <div>上传文件</div>
  8987. <div
  8988. class="chapter_add"
  8989. @click="addImg($event)"
  8990. v-if="studyJuri[0].cover.length == 0"
  8991. >
  8992. <div class="up_photo">
  8993. <img src="../assets/icon/uploadImg.png" alt />
  8994. </div>
  8995. <!-- <input
  8996. type="file"
  8997. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8998. style="display: none"
  8999. @change="beforeUpload1($event, 1)"
  9000. /> -->
  9001. <input
  9002. type="file"
  9003. accept="*"
  9004. style="display: none"
  9005. @change="beforeUpload1($event, 1)"
  9006. />
  9007. </div>
  9008. <!-- capture="camera" -->
  9009. <div
  9010. class="chapter_add"
  9011. style="
  9012. display: flex;
  9013. width: 100%;
  9014. flex-direction: row;
  9015. flex-wrap: wrap;
  9016. justify-content: flex-start;
  9017. padding: 15px 0;
  9018. "
  9019. v-if="studyJuri[0].cover.length > 0"
  9020. >
  9021. <div class="upCover">
  9022. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  9023. <img :src="word" alt v-else-if="fileType == 1" />
  9024. <img :src="video" alt v-else-if="fileType == 2" />
  9025. <img :src="word2" alt v-else-if="fileType == 3" />
  9026. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9027. <div class="deleteWord" @click="clean(1)">
  9028. <img src="../assets/icon/deleteWorks.png" alt />
  9029. </div>
  9030. </div>
  9031. </div>
  9032. </div>
  9033. <div
  9034. class="upload_send"
  9035. @click="addCourseWorks2(taskCount)"
  9036. v-if="!proVisible"
  9037. >
  9038. 提交
  9039. </div>
  9040. </el-dialog>
  9041. <el-dialog
  9042. title="修改分组"
  9043. :visible.sync="dialogVisibleUpdateGroup"
  9044. :append-to-body="true"
  9045. width="350px"
  9046. :before-close="handleClose"
  9047. class="dialog_diy"
  9048. >
  9049. <div>
  9050. <h2>
  9051. {{ this.updateGroupUser.name }}
  9052. </h2>
  9053. <div style="color: rgb(171 171 171); margin-top: 10px">
  9054. 请选择要进入的分组
  9055. </div>
  9056. <el-radio-group v-model="checkChair">
  9057. <el-radio
  9058. style="display: block; margin-top: 20px"
  9059. v-for="(item, index) in updateGroupArray"
  9060. :label="item.label"
  9061. :key="index"
  9062. >{{ item.name }}</el-radio
  9063. >
  9064. </el-radio-group>
  9065. </div>
  9066. <span slot="footer" class="dialog-footer">
  9067. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  9068. <el-button type="primary" @click="updateChair">确定</el-button>
  9069. </span>
  9070. </el-dialog>
  9071. <el-dialog
  9072. title="移除组员"
  9073. :visible.sync="dialogVisibleDeleteGroup"
  9074. :append-to-body="true"
  9075. width="350px"
  9076. :before-close="handleClose"
  9077. class="dialog_diy"
  9078. >
  9079. <div>
  9080. <h2>
  9081. {{ this.deleteGroupArray.name }}
  9082. </h2>
  9083. <div style="color: rgb(171 171 171); margin-top: 10px">
  9084. 请选择要删除的组员
  9085. </div>
  9086. <el-checkbox-group v-model="checkDeleteGroup">
  9087. <el-checkbox
  9088. style="display: block; margin-top: 20px"
  9089. v-for="(item, index) in deleteGroupUser"
  9090. :label="item.userid"
  9091. :key="index"
  9092. >{{ item.name }}</el-checkbox
  9093. >
  9094. </el-checkbox-group>
  9095. </div>
  9096. <span slot="footer" class="dialog-footer">
  9097. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  9098. <el-button type="primary" @click="deleteChair">确定</el-button>
  9099. </span>
  9100. </el-dialog>
  9101. <el-dialog
  9102. title="批量上传"
  9103. :visible.sync="dialogVisiblePl"
  9104. :append-to-body="true"
  9105. width="700px"
  9106. :before-close="handleClose"
  9107. class="dialog_change"
  9108. >
  9109. <div class="marginT">
  9110. <div>上传文件</div>
  9111. <div class="plworkBox">
  9112. <div
  9113. class="chapter_add"
  9114. style="
  9115. display: flex;
  9116. width: 150px;
  9117. flex-direction: row;
  9118. flex-wrap: wrap;
  9119. justify-content: flex-start;
  9120. margin: 0 10px 10px 0;
  9121. "
  9122. v-for="(item, index) in plworkFile"
  9123. :key="index"
  9124. >
  9125. <div class="upCover2">
  9126. <img :src="item.url" alt v-if="item.fileType == 1" />
  9127. <img :src="word" alt v-else-if="item.fileType == 4" />
  9128. <img :src="video" alt v-else />
  9129. <!-- <span class="picName">{{ item.name }}</span> -->
  9130. <!-- <el-input
  9131. v-model="item.username"
  9132. placeholder="请输入学生名字"
  9133. style="margin-top: 10px"
  9134. ></el-input> -->
  9135. <el-select
  9136. style="margin-top: 10px"
  9137. v-model="item.username"
  9138. filterable
  9139. allow-create
  9140. placeholder="请选择学生"
  9141. >
  9142. <el-option
  9143. v-for="item1 in checkUpload()"
  9144. :key="item1.userid"
  9145. :label="item1.name ? item1.name : item1.username"
  9146. :value="item1.userid"
  9147. >
  9148. </el-option>
  9149. </el-select>
  9150. <div class="deleteWord" @click="clean2(index)">
  9151. <img src="../assets/icon/deleteWorks.png" alt />
  9152. </div>
  9153. </div>
  9154. </div>
  9155. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  9156. <div class="up_photo2">
  9157. <img src="../assets/icon/plwork.png" alt />
  9158. <span>点击批量上传文件</span>
  9159. </div>
  9160. <input
  9161. type="file"
  9162. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9163. multiple="multiple"
  9164. style="display: none"
  9165. @change="beforeUpload3($event, 6)"
  9166. />
  9167. </div>
  9168. </div>
  9169. </div>
  9170. <!-- capture="camera" -->
  9171. <div
  9172. class="upload_send"
  9173. @click="addCourseWorksPl(taskCount)"
  9174. v-if="!proVisible2"
  9175. >
  9176. 提交
  9177. </div>
  9178. </el-dialog>
  9179. <el-dialog
  9180. title="修改名称"
  9181. :visible.sync="dialogVisibleSname"
  9182. width="500px"
  9183. :before-close="handleClose"
  9184. class="dialog_diy"
  9185. center
  9186. >
  9187. <div style="text-align: center">
  9188. <span class="tian1">名称</span>
  9189. <el-select
  9190. v-model="worksSName"
  9191. filterable
  9192. allow-create
  9193. style="width: 250px; margin: 15px 0px"
  9194. placeholder="请选择学生"
  9195. >
  9196. <el-option
  9197. v-for="item in uploadStudentJuri"
  9198. :key="item.userid"
  9199. :label="item.name ? item.name : item.username"
  9200. :value="item.userid"
  9201. >
  9202. </el-option>
  9203. </el-select>
  9204. <!-- <el-input
  9205. v-model="worksSName"
  9206. style="width: 250px; margin: 15px 0px"
  9207. ></el-input> -->
  9208. </div>
  9209. <span slot="footer" class="dialog-footer">
  9210. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  9211. <el-button type="primary" @click="updateName">确 定</el-button>
  9212. </span>
  9213. </el-dialog>
  9214. </div>
  9215. </template>
  9216. <script>
  9217. import "../common/aws-sdk-2.235.1.min.js";
  9218. // import pdf from "./components/pdf3";
  9219. import pdf from "./components/vpdf";
  9220. import AskStatic from "./components/askStatic";
  9221. import AskStatic2 from "./components/askStatic2";
  9222. import AnswerData2 from "./components/answerData2";
  9223. import AnswerData from "./components/answerData";
  9224. import EditorBar from "./tools/wangEnduit.vue";
  9225. import Table from "./tools/table.vue";
  9226. import Time from "./tools/time.vue";
  9227. import Mind from "./tools/jsmind.vue";
  9228. import Sunburst from "./tools/sunburst";
  9229. import SeeBoard from "./tools/seeBoard";
  9230. import * as imageConversion from "image-conversion";
  9231. import Audio from "./components/audio.vue";
  9232. import ImgDraw from "./tools/imgDraw/imgDraw";
  9233. import { Empty } from "element-ui";
  9234. import RecordRTC from "recordrtc";
  9235. export default {
  9236. components: {
  9237. EditorBar,
  9238. Time,
  9239. pdf,
  9240. AskStatic,
  9241. AskStatic2,
  9242. Mind,
  9243. Sunburst,
  9244. SeeBoard,
  9245. AnswerData2,
  9246. AnswerData,
  9247. Audio,
  9248. ImgDraw,
  9249. Table,
  9250. },
  9251. data() {
  9252. return {
  9253. bg: null,
  9254. drawShow: false,
  9255. dialogVisible: false,
  9256. dialogVisiblePl: false,
  9257. commentDialogVisible: false,
  9258. videoVisible: false,
  9259. isStar: false,
  9260. studentEvalDialogVisible: false,
  9261. studentEvalDialogVisibleTeacher: false,
  9262. dialogVisibleSelect: false,
  9263. dialogVisibleSelectTeacher: false,
  9264. dialogVisibleScore: false,
  9265. dialogVisibleSentence: false,
  9266. dialogVisibleSentenceTeacher: false,
  9267. dialogVisibleSentence1: false,
  9268. dialogVisibleWorks: false,
  9269. dialogVisibleTable: false,
  9270. dialogVisibleTableTeacher: false,
  9271. dialogVisibleWord: false,
  9272. dialogVisibleWordTeacher: false,
  9273. dialogVisibleTable2: false,
  9274. dialogVisibleGroupWork: false,
  9275. dialogVisibleUpdateGroup: false,
  9276. dialogVisibleDeleteGroup: false,
  9277. dialogVisibleSname: false,
  9278. worksSName: "",
  9279. classJuri: [],
  9280. uploadStudentJuri: [],
  9281. uploadCid: "",
  9282. snameWid: "",
  9283. sStudent: {},
  9284. sTool: "",
  9285. bzText: "",
  9286. commentDetail: [],
  9287. selectAnswer: [],
  9288. videoDetail: {},
  9289. selectJson: {},
  9290. eScore: { eBzText: "", eStar: [] },
  9291. id: this.$route.query.courseId,
  9292. userid: this.$route.query.userid,
  9293. classId: this.$route.query.cid,
  9294. // courseTypeLine: this.$route.query.type,
  9295. oid: this.$route.query.oid,
  9296. org: this.$route.query.org,
  9297. tType: this.$route.query.tType,
  9298. courseType: this.$route.query.type,
  9299. screenType: this.$route.query.screenType,
  9300. tcid2: this.$route.query.tcid,
  9301. tcid: "",
  9302. pptImgUrl: "",
  9303. pptImgUrl1: "",
  9304. commentText: "",
  9305. full: false,
  9306. sIsOpen: false,
  9307. IsLookOpen: false,
  9308. IsFollow: false,
  9309. pzDialog: false,
  9310. contentDialog: false,
  9311. mlDialog: false,
  9312. type: 1,
  9313. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  9314. sentenceList1: [],
  9315. tableJson: [],
  9316. wordJson: [],
  9317. vedio: [],
  9318. text: [],
  9319. textList: [],
  9320. line: [],
  9321. lineList: [],
  9322. chapTools: [],
  9323. chapToolList: [],
  9324. file: [],
  9325. fileC: [],
  9326. vedioTime: [],
  9327. upToolImg: "",
  9328. preTime: 0,
  9329. rateList: {
  9330. ca: 0,
  9331. },
  9332. rateParams: [],
  9333. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  9334. studyJuri: [
  9335. {
  9336. content: "",
  9337. cover: [],
  9338. upVedio: [],
  9339. upFile: [],
  9340. },
  9341. ],
  9342. plworkFile: [],
  9343. mr: require("../assets/vedioPic.png"),
  9344. word: require("../assets/icon/isWord.png"),
  9345. word2: require("../assets/icon/word2.png"),
  9346. video: require("../assets/icon/isVideo.png"),
  9347. noLikes: require("../assets/icon/comment/noLikes.png"),
  9348. likes: require("../assets/icon/comment/likes.png"),
  9349. scoreImg: require("../assets/score.png"),
  9350. courseDetail: {},
  9351. isSelect: false,
  9352. chapInfo: [],
  9353. chapInfoList: [],
  9354. taskCount: 0,
  9355. imgList: [],
  9356. noImgList: [],
  9357. pzList: [],
  9358. PlTextList: [
  9359. "Excellent!",
  9360. "nice!",
  9361. "很有创意!",
  9362. "还不错哦~",
  9363. "继续努力哦~",
  9364. ],
  9365. isClickNav: "",
  9366. navId: "",
  9367. playerOptions: {
  9368. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  9369. autoplay: false, //如果true,浏览器准备好时开始回放。
  9370. muted: false, // 默认情况下将会消除任何音频。
  9371. loop: false, // 导致视频一结束就重新开始。
  9372. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  9373. language: "zh-CN",
  9374. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  9375. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  9376. sources: [
  9377. {
  9378. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  9379. src: "", //url地址require("../../assets/media/aaa.mp4")
  9380. },
  9381. ],
  9382. // poster: require("../../assets/tu31.png"), //你的封面地址
  9383. // poster: dataRes.imgUrl, //你的封面地址
  9384. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  9385. controlBar: {
  9386. timeDivider: true, //当前时间和持续时间的分隔符
  9387. durationDisplay: true, //显示持续时间
  9388. remainingTimeDisplay: false, //是否显示剩余时间功能
  9389. fullscreenToggle: true, //全屏按钮
  9390. },
  9391. },
  9392. playerOptions1: {
  9393. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  9394. autoplay: false, //如果true,浏览器准备好时开始回放。
  9395. muted: false, // 默认情况下将会消除任何音频。
  9396. loop: false, // 导致视频一结束就重新开始。
  9397. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  9398. language: "zh-CN",
  9399. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  9400. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  9401. sources: [
  9402. {
  9403. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  9404. src: "", //url地址require("../../assets/media/aaa.mp4")
  9405. },
  9406. ],
  9407. // poster: require("../../assets/tu31.png"), //你的封面地址
  9408. // poster: dataRes.imgUrl, //你的封面地址
  9409. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  9410. controlBar: {
  9411. timeDivider: true, //当前时间和持续时间的分隔符
  9412. durationDisplay: true, //显示持续时间
  9413. remainingTimeDisplay: false, //是否显示剩余时间功能
  9414. fullscreenToggle: true, //全屏按钮
  9415. },
  9416. },
  9417. playerO: {},
  9418. noneBtnImg: false,
  9419. proVisible: false,
  9420. proVisible2: false,
  9421. progress: 0,
  9422. isFinishSize: 0,
  9423. isAllSize: 0,
  9424. questionAnswer: "",
  9425. answerQ: "", //问答标题
  9426. rateJson: [],
  9427. wbCount: 0,
  9428. wordCount: 0,
  9429. mindCount: 0,
  9430. askCount: 0,
  9431. noteCount: 0,
  9432. mindNetWorkCount: 0,
  9433. libraryCount: 0,
  9434. workCount: 0,
  9435. timeCount: 0,
  9436. answerCount: 0,
  9437. trainCount: 0,
  9438. evalCount: 0,
  9439. dialogImageUrl: "",
  9440. pictureDialog: false,
  9441. toolTypeList: [],
  9442. dialogVisible1: false,
  9443. dialogVisible2: false,
  9444. dialogVisible3: false,
  9445. dialogVisible6: false,
  9446. dialogVisible4: false,
  9447. isNoHomeWork: false,
  9448. dialogVisible5: false,
  9449. dialogVisible5Teacher: false,
  9450. dialogVisibleChoice: false,
  9451. dialogVisibleChoiceTeacher: false,
  9452. answerDialogVisible: false,
  9453. answerDialogVisibleTeacher: false,
  9454. juriVisible: false,
  9455. timeDialogVisible: false,
  9456. radio: [],
  9457. isAsk: false,
  9458. askJson: {
  9459. askCount: 1,
  9460. askTitle: "",
  9461. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9462. },
  9463. testJson: {},
  9464. checkJson: [],
  9465. askList: [],
  9466. answerList: [],
  9467. navList: [],
  9468. addPzDialog: false,
  9469. pzConText: "",
  9470. worksStudent: [],
  9471. isCloseList: [],
  9472. workStudent: [],
  9473. groupStudent: [],
  9474. groupStudentUid: [],
  9475. noWorksS: [],
  9476. isWorksS: [],
  9477. noWorksStudent: [],
  9478. toolindex: 0,
  9479. groupIndex: 0,
  9480. workTypeB: false,
  9481. workTypeC: false,
  9482. isAnswer: false,
  9483. timer: null,
  9484. opertimer: null,
  9485. showType: 0,
  9486. fileType: 0,
  9487. showPDF: false,
  9488. noteName: "",
  9489. evaJuri: [],
  9490. evalua: "",
  9491. eTitle: "",
  9492. eName: "",
  9493. eJson: {},
  9494. fid: "", //一级
  9495. sid: "", //二级
  9496. tid: "", //二级
  9497. typeMode: 1,
  9498. eJSONNum: 0,
  9499. Etype: 1,
  9500. data: {
  9501. meta: {
  9502. name: "example",
  9503. author: "dd@163.com",
  9504. version: "0.2",
  9505. },
  9506. format: "node_array",
  9507. data: [{ id: "root", isroot: true, topic: "" }],
  9508. },
  9509. fullDialogVisible: false,
  9510. fulltype: "",
  9511. fullUrl: "",
  9512. commentIndexJson: {},
  9513. Stbodywidth: 0,
  9514. pzType: 1,
  9515. wScore: 0,
  9516. scoreDetail: "",
  9517. videoStart: false,
  9518. recorder: null,
  9519. groupJson: {},
  9520. islock: false,
  9521. groupJson2: {},
  9522. dialogVisibleGroup: false,
  9523. dialogVisibleGroup2: false,
  9524. updateGroupArray: [],
  9525. updateGroupUser: {},
  9526. deleteGroupUser: [],
  9527. deleteGroupArray: {},
  9528. checkChair: "",
  9529. checkDeleteGroup: [],
  9530. inviteCode: "",
  9531. courseGroupStudent: [],
  9532. courseGroupStudentUid: [],
  9533. courseGroup: {},
  9534. isGroup: false,
  9535. };
  9536. },
  9537. methods: {
  9538. jump() {
  9539. window.parent.postMessage({ tools: "43" }, "*");
  9540. },
  9541. previewImg(url) {
  9542. this.$hevueImgPreview(url);
  9543. },
  9544. change(val) {
  9545. console.log(val);
  9546. },
  9547. goTo(path) {
  9548. this.$router.push(path);
  9549. },
  9550. handlePictureCardPreview(url) {
  9551. this.dialogImageUrl = url;
  9552. this.pictureDialog = true;
  9553. },
  9554. clean(type) {
  9555. if (type == 1) {
  9556. this.studyJuri[0].cover.splice(0, 1);
  9557. } else if (type == 2) {
  9558. this.studyJuri[0].upVedio.splice(0, 1);
  9559. } else {
  9560. this.studyJuri[0].upFile.splice(0, 1);
  9561. }
  9562. },
  9563. clean2(index) {
  9564. this.plworkFile.splice(index, 1);
  9565. },
  9566. handleClose(done) {
  9567. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  9568. this.videoDetail.sources[0].src = "";
  9569. }
  9570. this.commentIndexJson = {};
  9571. done();
  9572. },
  9573. fullTools() {
  9574. this.full = !this.full;
  9575. },
  9576. imgChange(file, fileList, type) {
  9577. if (type == 1) {
  9578. var _tmp = this.studyJuri[0].cover;
  9579. } else if (type == 2) {
  9580. var _tmp = this.studyJuri[0].upVedio;
  9581. } else {
  9582. var _tmp = this.studyJuri[0].upFile;
  9583. }
  9584. this.noneBtnImg = _tmp.length >= 1;
  9585. },
  9586. setContent(bool) {
  9587. this.contentDialog = bool;
  9588. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  9589. document.querySelector(".workd_media").style.height = "650px";
  9590. } else if (document.querySelector(".workd_media")) {
  9591. document.querySelector(".workd_media").style.height = "auto";
  9592. }
  9593. },
  9594. setContent2(bool) {
  9595. this.mlDialog = bool;
  9596. if (
  9597. bool &&
  9598. this.contentDialog &&
  9599. document.querySelector(".workd_media")
  9600. ) {
  9601. document.querySelector(".workd_media").style.height = "650px";
  9602. } else if (document.querySelector(".workd_media")) {
  9603. document.querySelector(".workd_media").style.height = "auto";
  9604. }
  9605. },
  9606. addImg(e) {
  9607. var el = e.currentTarget;
  9608. // this.$message.success('触发上传')
  9609. el.getElementsByTagName("input")[0].click();
  9610. e.target.value = "";
  9611. },
  9612. addSelectAnswer() {
  9613. let params = [
  9614. {
  9615. uid: this.userid,
  9616. cid: this.id,
  9617. stage: this.courseType,
  9618. task: this.taskCount,
  9619. tool: this.toolindex,
  9620. content: this.selectAnswer.answer,
  9621. type: 7,
  9622. },
  9623. ];
  9624. this.ajax
  9625. .post(this.$store.state.api + "addCourseWorks", params)
  9626. .then((res) => {
  9627. this.$message({
  9628. message: "提交成功",
  9629. type: "success",
  9630. });
  9631. this.dialogVisibleSelect = false;
  9632. // this.selectAnswer = {};
  9633. this.selectSWorks();
  9634. this.selectStudent();
  9635. })
  9636. .catch((err) => {
  9637. this.$message.error("提交失败");
  9638. console.error(err);
  9639. });
  9640. },
  9641. addSelectAnswerTeacher() {
  9642. let params = [
  9643. {
  9644. uid: this.sStudent.userid,
  9645. cid: this.id,
  9646. stage: this.courseType,
  9647. task: this.taskCount,
  9648. tool: this.toolindex,
  9649. content: this.selectAnswer.answer,
  9650. type: 7,
  9651. },
  9652. ];
  9653. this.ajax
  9654. .post(this.$store.state.api + "addCourseWorks", params)
  9655. .then((res) => {
  9656. this.$message({
  9657. message: "提交成功",
  9658. type: "success",
  9659. });
  9660. this.dialogVisibleSelectTeacher = false;
  9661. // this.selectAnswer = {};
  9662. this.selectSWorks();
  9663. this.selectStudent();
  9664. })
  9665. .catch((err) => {
  9666. this.$message.error("提交失败");
  9667. console.error(err);
  9668. });
  9669. },
  9670. addSenWorks() {
  9671. for (var i = 0; i < this.sentenceList.length; i++) {
  9672. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  9673. if (
  9674. this.sentenceList[i].chooseSenList[j] == undefined ||
  9675. this.sentenceList[i].chooseSenList[j] == ""
  9676. ) {
  9677. this.$message.error("请将答案填写完整!");
  9678. return;
  9679. }
  9680. }
  9681. }
  9682. let params = [
  9683. {
  9684. uid: this.userid,
  9685. cid: this.id,
  9686. stage: this.courseType,
  9687. task: this.taskCount,
  9688. tool: this.toolindex,
  9689. content: JSON.stringify(this.sentenceList),
  9690. type: 9,
  9691. },
  9692. ];
  9693. this.ajax
  9694. .post(this.$store.state.api + "addCourseWorks", params)
  9695. .then((res) => {
  9696. this.$message({
  9697. message: "提交成功",
  9698. type: "success",
  9699. });
  9700. this.dialogVisibleSentence = false;
  9701. // this.selectAnswer = {};
  9702. this.selectSWorks();
  9703. this.selectStudent();
  9704. })
  9705. .catch((err) => {
  9706. this.$message.error("提交失败");
  9707. console.error(err);
  9708. });
  9709. },
  9710. addSenWorksTeacher() {
  9711. for (var i = 0; i < this.sentenceList.length; i++) {
  9712. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  9713. if (
  9714. this.sentenceList[i].chooseSenList[j] == undefined ||
  9715. this.sentenceList[i].chooseSenList[j] == ""
  9716. ) {
  9717. this.$message.error("请将答案填写完整!");
  9718. return;
  9719. }
  9720. }
  9721. }
  9722. let params = [
  9723. {
  9724. uid: this.sStudent.userid,
  9725. cid: this.id,
  9726. stage: this.courseType,
  9727. task: this.taskCount,
  9728. tool: this.toolindex,
  9729. content: JSON.stringify(this.sentenceList),
  9730. type: 9,
  9731. },
  9732. ];
  9733. this.ajax
  9734. .post(this.$store.state.api + "addCourseWorks", params)
  9735. .then((res) => {
  9736. this.$message({
  9737. message: "提交成功",
  9738. type: "success",
  9739. });
  9740. this.dialogVisibleSentenceTeacher = false;
  9741. // this.selectAnswer = {};
  9742. this.selectSWorks();
  9743. this.selectStudent();
  9744. })
  9745. .catch((err) => {
  9746. this.$message.error("提交失败");
  9747. console.error(err);
  9748. });
  9749. },
  9750. addTableWorks() {
  9751. let params = [
  9752. {
  9753. uid: this.userid,
  9754. cid: this.id,
  9755. stage: this.courseType,
  9756. task: this.taskCount,
  9757. tool: this.toolindex,
  9758. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  9759. type: 10,
  9760. },
  9761. ];
  9762. this.ajax
  9763. .post(this.$store.state.api + "addCourseWorks", params)
  9764. .then((res) => {
  9765. this.$message({
  9766. message: "提交成功",
  9767. type: "success",
  9768. });
  9769. this.dialogVisibleTable = false;
  9770. // this.selectAnswer = {};
  9771. this.selectSWorks();
  9772. this.selectStudent();
  9773. })
  9774. .catch((err) => {
  9775. this.$message.error("提交失败");
  9776. console.error(err);
  9777. });
  9778. },
  9779. addTableWorksTeacher() {
  9780. let params = [
  9781. {
  9782. uid: this.sStudent.userid,
  9783. cid: this.id,
  9784. stage: this.courseType,
  9785. task: this.taskCount,
  9786. tool: this.toolindex,
  9787. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  9788. type: 10,
  9789. },
  9790. ];
  9791. this.ajax
  9792. .post(this.$store.state.api + "addCourseWorks", params)
  9793. .then((res) => {
  9794. this.$message({
  9795. message: "提交成功",
  9796. type: "success",
  9797. });
  9798. this.dialogVisibleTableTeacher = false;
  9799. // this.selectAnswer = {};
  9800. this.selectSWorks();
  9801. this.selectStudent();
  9802. })
  9803. .catch((err) => {
  9804. this.$message.error("提交失败");
  9805. console.error(err);
  9806. });
  9807. },
  9808. addWordWorks() {
  9809. let params = [{
  9810. uid: this.userid,
  9811. cid: this.id,
  9812. stage: this.courseType,
  9813. task: this.taskCount,
  9814. tool: this.toolindex,
  9815. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  9816. type: 13,
  9817. atool: 52,
  9818. }];
  9819. console.log(params);
  9820. this.ajax
  9821. .post(this.$store.state.api + "addCourseWorks3-2", params)
  9822. .then((res) => {
  9823. this.$message({
  9824. message: "提交成功",
  9825. type: "success",
  9826. });
  9827. this.dialogVisibleWord = false;
  9828. // this.selectAnswer = {};
  9829. this.selectSWorks();
  9830. this.selectStudent();
  9831. })
  9832. .catch((err) => {
  9833. this.$message.error("提交失败");
  9834. console.error(err);
  9835. });
  9836. },
  9837. addWordWorksTeacher() {
  9838. let params = [{
  9839. uid: this.sStudent.userid,
  9840. cid: this.id,
  9841. stage: this.courseType,
  9842. task: this.taskCount,
  9843. tool: this.toolindex,
  9844. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  9845. type: 13,
  9846. atool: 52,
  9847. }];
  9848. console.log(params);
  9849. this.ajax
  9850. .post(this.$store.state.api + "addCourseWorks3-2", params)
  9851. .then((res) => {
  9852. this.$message({
  9853. message: "提交成功",
  9854. type: "success",
  9855. });
  9856. this.dialogVisibleWordTeacher = false;
  9857. // this.selectAnswer = {};
  9858. this.selectSWorks();
  9859. this.selectStudent();
  9860. })
  9861. .catch((err) => {
  9862. this.$message.error("提交失败");
  9863. console.error(err);
  9864. });
  9865. },
  9866. addCourseWorks(i) {
  9867. var typesql;
  9868. if (this.fileType === 0) {
  9869. typesql = 1;
  9870. } else if (this.fileType === 1) {
  9871. typesql = 4;
  9872. } else if (this.fileType === 2) {
  9873. typesql = 5;
  9874. } else if (this.fileType === 3) {
  9875. typesql = 12;
  9876. }
  9877. if (!this.studyJuri[0].cover[0].url) {
  9878. this.$message.error("请上传文件");
  9879. return;
  9880. }
  9881. let params = [
  9882. {
  9883. uid: this.userid,
  9884. cid: this.id,
  9885. stage: this.courseType,
  9886. task: i,
  9887. tool: this.toolindex,
  9888. content: this.studyJuri[0].cover[0].url,
  9889. type: typesql,
  9890. },
  9891. ];
  9892. this.ajax
  9893. .post(this.$store.state.api + "addCourseWorksR", params)
  9894. .then((res) => {
  9895. this.$message({
  9896. message: "提交成功",
  9897. type: "success",
  9898. });
  9899. this.studyJuri[0].cover = [];
  9900. this.dialogVisible = false;
  9901. this.getCourseDetail(2);
  9902. })
  9903. .catch((err) => {
  9904. this.$message.error("提交失败");
  9905. console.error(err);
  9906. });
  9907. },
  9908. addCourseWorksPl(i) {
  9909. let _files = this.plworkFile;
  9910. var c = 1;
  9911. for (var k = 0; k < _files.length; k++) {
  9912. if (!_files[k].username) {
  9913. c = 2;
  9914. }
  9915. }
  9916. if (c == 2) {
  9917. this.$message.error("请填写学生姓名");
  9918. return;
  9919. }
  9920. let params = [
  9921. {
  9922. ateacher: this.userid,
  9923. cid: this.id,
  9924. stage: this.courseType,
  9925. task: i,
  9926. tool: this.toolindex,
  9927. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  9928. },
  9929. ];
  9930. this.ajax
  9931. .post(this.$store.state.api + "addCourseWorksPl", params)
  9932. .then((res) => {
  9933. this.$message({
  9934. message: "提交成功",
  9935. type: "success",
  9936. });
  9937. this.plworkFile = [];
  9938. this.dialogVisiblePl = false;
  9939. this.getCourseDetail(2);
  9940. })
  9941. .catch((err) => {
  9942. this.$message.error("提交失败");
  9943. console.error(err);
  9944. });
  9945. },
  9946. addCourseWorks2(i) {
  9947. var typesql;
  9948. if (this.fileType === 0) {
  9949. typesql = 0;
  9950. } else if (this.fileType === 1) {
  9951. typesql = 1;
  9952. } else if (this.fileType === 2) {
  9953. typesql = 3;
  9954. } else if (this.fileType === 3) {
  9955. typesql = 12;
  9956. }
  9957. if (!this.studyJuri[0].cover[0].url) {
  9958. this.$message.error("请上传文件");
  9959. return;
  9960. }
  9961. let params = [
  9962. {
  9963. uid: this.userid,
  9964. cid: this.id,
  9965. stage: this.courseType,
  9966. task: i,
  9967. tool: this.toolindex,
  9968. content: JSON.stringify({
  9969. type: typesql,
  9970. groupIndex: this.groupIndex,
  9971. url: this.studyJuri[0].cover[0].url,
  9972. }).replaceAll(/%/g, "%25"),
  9973. type: 11,
  9974. atool: 49,
  9975. text: "",
  9976. },
  9977. ];
  9978. this.ajax
  9979. .post(this.$store.state.api + "addCourseWorks5", params)
  9980. .then((res) => {
  9981. this.$message({
  9982. message: "提交成功",
  9983. type: "success",
  9984. });
  9985. this.studyJuri[0].cover = [];
  9986. this.dialogVisibleGroupWork = false;
  9987. this.getCourseDetail(2);
  9988. })
  9989. .catch((err) => {
  9990. this.$message.error("提交失败");
  9991. console.error(err);
  9992. });
  9993. },
  9994. addCourseWorksGong(i, data, tool) {
  9995. let params = [
  9996. {
  9997. uid: this.userid,
  9998. cid: this.id,
  9999. stage: this.courseType,
  10000. task: this.taskCount,
  10001. tool: i,
  10002. content: data,
  10003. type: 12,
  10004. atool: tool,
  10005. text: "",
  10006. },
  10007. ];
  10008. this.ajax
  10009. .post(this.$store.state.api + "addCourseWorks5", params)
  10010. .then((res) => {
  10011. this.$message({
  10012. message: "提交成功",
  10013. type: "success",
  10014. });
  10015. this.studyJuri[0].cover = [];
  10016. this.selectSWorks();
  10017. this.selectStudent();
  10018. })
  10019. .catch((err) => {
  10020. this.$message.error("提交失败");
  10021. console.error(err);
  10022. });
  10023. },
  10024. addCourseWorksGongTeacher(i, data, tool) {
  10025. let params = [
  10026. {
  10027. uid: this.sStudent.userid,
  10028. cid: this.id,
  10029. stage: this.courseType,
  10030. task: this.taskCount,
  10031. tool: i,
  10032. content: data,
  10033. type: 12,
  10034. atool: tool,
  10035. text: "",
  10036. },
  10037. ];
  10038. this.ajax
  10039. .post(this.$store.state.api + "addCourseWorks5", params)
  10040. .then((res) => {
  10041. this.$message({
  10042. message: "提交成功",
  10043. type: "success",
  10044. });
  10045. this.studyJuri[0].cover = [];
  10046. this.dialogVisibleWorks = false;
  10047. this.selectSWorks();
  10048. this.selectStudent();
  10049. })
  10050. .catch((err) => {
  10051. this.$message.error("提交失败");
  10052. console.error(err);
  10053. });
  10054. },
  10055. addCourseWorksGongPl(i, data, tool, type) {
  10056. let params = [
  10057. {
  10058. uid: this.sStudent.userid,
  10059. cid: this.id,
  10060. stage: this.courseType,
  10061. task: this.taskCount,
  10062. tool: i,
  10063. content: data,
  10064. type: type,
  10065. atool: tool,
  10066. text: "",
  10067. },
  10068. ];
  10069. this.ajax
  10070. .post(this.$store.state.api + "addCourseWorks5", params)
  10071. .then((res) => {
  10072. this.$message({
  10073. message: "提交成功",
  10074. type: "success",
  10075. });
  10076. this.studyJuri[0].cover = [];
  10077. this.dialogVisibleWorks = false;
  10078. this.selectSWorks();
  10079. this.selectStudent();
  10080. })
  10081. .catch((err) => {
  10082. this.$message.error("提交失败");
  10083. console.error(err);
  10084. });
  10085. },
  10086. addCourseWorksTeacher(i) {
  10087. var typesql;
  10088. if (this.sTool == 32 || this.sTool == 57) {
  10089. this.addCourseWorksGongTeacher(
  10090. this.toolindex,
  10091. this.studyJuri[0].cover[0].url,
  10092. this.sTool
  10093. );
  10094. return;
  10095. }
  10096. if (this.fileType === 0) {
  10097. typesql = 1;
  10098. } else if (this.fileType === 1) {
  10099. typesql = 4;
  10100. } else if (this.fileType === 2) {
  10101. typesql = 5;
  10102. } else if (this.fileType === 3) {
  10103. typesql = 12;
  10104. }
  10105. if (this.sTool == 50) {
  10106. this.addCourseWorksGongPl(
  10107. this.toolindex,
  10108. this.studyJuri[0].cover[0].url,
  10109. this.sTool,
  10110. typesql
  10111. );
  10112. return;
  10113. }
  10114. if (!this.studyJuri[0].cover[0].url) {
  10115. this.$message.error("请上传文件");
  10116. return;
  10117. }
  10118. let params = [
  10119. {
  10120. uid: this.sStudent.userid,
  10121. cid: this.id,
  10122. stage: this.courseType,
  10123. task: i,
  10124. tool: this.toolindex,
  10125. content: this.studyJuri[0].cover[0].url,
  10126. type: typesql,
  10127. ateacher: this.userid,
  10128. },
  10129. ];
  10130. this.ajax
  10131. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  10132. .then((res) => {
  10133. this.$message({
  10134. message: "提交成功",
  10135. type: "success",
  10136. });
  10137. this.studyJuri[0].cover = [];
  10138. this.dialogVisibleWorks = false;
  10139. this.getCourseDetail(2);
  10140. })
  10141. .catch((err) => {
  10142. this.$message.error("提交失败");
  10143. console.error(err);
  10144. });
  10145. },
  10146. selectUploadStudent() {
  10147. let params = {
  10148. cid: this.uploadCid,
  10149. oid: this.oid,
  10150. cn: "",
  10151. };
  10152. this.ajax
  10153. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  10154. .then((res) => {
  10155. var studentK = [];
  10156. if (this.isWorksS[this.toolindex].length > 0) {
  10157. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  10158. studentK.push(this.isWorksS[this.toolindex][z].uid);
  10159. }
  10160. studentK = studentK.join(",");
  10161. }
  10162. this.uploadStudentJuri = res.data[0].filter((el) => {
  10163. return studentK.indexOf(el.userid) == -1;
  10164. });
  10165. })
  10166. .catch((err) => {
  10167. console.error(err);
  10168. });
  10169. },
  10170. arrayToArray(arrayo, arrayt) {
  10171. let array1 = arrayo;
  10172. let array2 = arrayt;
  10173. let commonElements = [];
  10174. for (let i = 0; i < array1.length; i++) {
  10175. for (let j = 0; j < array2.length; j++) {
  10176. if (array1[i] === array2[j]) {
  10177. commonElements.push(array1[i]);
  10178. }
  10179. }
  10180. }
  10181. return commonElements;
  10182. },
  10183. selectWorksStudent() {
  10184. let params = {
  10185. oid: this.oid,
  10186. cid: this.courseDetail.juri,
  10187. };
  10188. this.ajax
  10189. .get(this.$store.state.api + "selectWorksStudent", params)
  10190. .then((res) => {
  10191. var a = res.data[0];
  10192. for (var i = 0; i < this.isWorksS.length; i++) {
  10193. this.noWorksS[i] = [];
  10194. var studentK = [];
  10195. if (this.isWorksS[i].length > 0) {
  10196. for (var z = 0; z < this.isWorksS[i].length; z++) {
  10197. studentK.push(this.isWorksS[i][z].uid);
  10198. }
  10199. studentK = studentK.join(",");
  10200. for (var j = 0; j < a.length; j++) {
  10201. if (studentK.indexOf(a[j].userid) == -1) {
  10202. if (this.tcid) {
  10203. // a[j].classid.indexOf(this.tcid) != -1
  10204. if (
  10205. this.arrayToArray(
  10206. a[j].classid.split(","),
  10207. this.tcid.split(",")
  10208. ).length
  10209. ) {
  10210. this.noWorksS[i].push({
  10211. student: a[j].name,
  10212. userid: a[j].userid,
  10213. });
  10214. }
  10215. } else {
  10216. this.noWorksS[i].push({
  10217. student: a[j].name,
  10218. userid: a[j].userid,
  10219. });
  10220. }
  10221. }
  10222. }
  10223. } else {
  10224. for (var k = 0; k < a.length; k++) {
  10225. if (this.tcid) {
  10226. if (
  10227. this.arrayToArray(
  10228. a[k].classid.split(","),
  10229. this.tcid.split(",")
  10230. ).length
  10231. ) {
  10232. this.noWorksS[i].push({
  10233. student: a[k].name,
  10234. userid: a[k].userid,
  10235. });
  10236. }
  10237. } else {
  10238. this.noWorksS[i].push({
  10239. student: a[k].name,
  10240. userid: a[k].userid,
  10241. });
  10242. }
  10243. }
  10244. }
  10245. }
  10246. this.$forceUpdate();
  10247. if (
  10248. Object.keys(this.commentDetail).length &&
  10249. Object.keys(this.commentIndexJson).length &&
  10250. !this.dialogVisibleScore
  10251. ) {
  10252. let a = 1;
  10253. let c = this.commentIndexJson;
  10254. console.log(c);
  10255. if (
  10256. this.commentIndexJson.gindex ||
  10257. this.commentIndexJson.gindex === 0
  10258. ) {
  10259. for (
  10260. var i = 0;
  10261. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  10262. i++
  10263. ) {
  10264. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  10265. groupA: for (var k = 0; k < _el.length; k++) {
  10266. let el = _el[k];
  10267. if (el.wid == this.commentDetail.wid) {
  10268. a = 2;
  10269. this.commentOther(
  10270. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  10271. this.commentIndexJson.toolIndex,
  10272. k,
  10273. this.commentIndexJson.gindex
  10274. );
  10275. break groupA;
  10276. }
  10277. }
  10278. }
  10279. if (a === 1) {
  10280. this.commentDetail = [];
  10281. this.commentIndexJson = {};
  10282. this.commentDialogVisible = false;
  10283. this.$message("此作业已被删除");
  10284. }
  10285. } else {
  10286. if (this.isGroup && this.commentIndexJson.gid) {
  10287. groupA: for (
  10288. var i = 0;
  10289. i < this.courseGroup.group.length;
  10290. i++
  10291. ) {
  10292. let _group = this.courseGroup.group[i];
  10293. if (_group.id == this.commentIndexJson.gid) {
  10294. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  10295. for (var k = 0; k < _el2.length; k++) {
  10296. let el2 = _el2[k];
  10297. if (el2.wid == this.commentDetail.wid) {
  10298. a = 2;
  10299. this.commentOther(
  10300. _el2[k],
  10301. this.commentIndexJson.toolIndex,
  10302. k,
  10303. null,
  10304. this.commentIndexJson.gid
  10305. );
  10306. break groupA;
  10307. }
  10308. }
  10309. }
  10310. }
  10311. }
  10312. if (a == 1) {
  10313. for (
  10314. var i = 0;
  10315. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  10316. i++
  10317. ) {
  10318. let el =
  10319. this.worksStudent[this.commentIndexJson.toolIndex][i];
  10320. if (el.wid == this.commentDetail.wid) {
  10321. a = 2;
  10322. this.commentOther(
  10323. this.worksStudent[this.commentIndexJson.toolIndex][i],
  10324. this.commentIndexJson.toolIndex,
  10325. i
  10326. );
  10327. break;
  10328. }
  10329. }
  10330. }
  10331. if (a === 1) {
  10332. this.commentDetail = [];
  10333. this.commentIndexJson = {};
  10334. this.commentDialogVisible = false;
  10335. this.$message("此作业已被删除");
  10336. }
  10337. }
  10338. }
  10339. })
  10340. .catch((err) => {
  10341. console.error(err);
  10342. });
  10343. },
  10344. selectStudent() {
  10345. //学生查看自己作业
  10346. let params = {
  10347. uid: this.userid,
  10348. cid: this.id,
  10349. s: this.courseType,
  10350. t: this.taskCount,
  10351. };
  10352. this.ajax
  10353. .get(this.$store.state.api + "selectStudentWorks", params)
  10354. .then((res) => {
  10355. var a =
  10356. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10357. this.taskCount
  10358. ].toolChoose;
  10359. var b = res.data[0];
  10360. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  10361. var y = [
  10362. "AVI",
  10363. "NAVI",
  10364. "MPEG",
  10365. "ASF",
  10366. "MOV",
  10367. "WMV",
  10368. "3GP",
  10369. "RM",
  10370. "RMVB",
  10371. "FLV",
  10372. "F4V",
  10373. "H.264",
  10374. "H.265",
  10375. "REAL VIDEO",
  10376. "MKV",
  10377. "WebM",
  10378. "HDDVD",
  10379. "MP4",
  10380. "MPG",
  10381. "M4V",
  10382. "MGV",
  10383. "OGV",
  10384. "QTM",
  10385. "STR",
  10386. "AMC",
  10387. "DVX",
  10388. "EVO",
  10389. "DAT",
  10390. "OGG",
  10391. "OGM",
  10392. ];
  10393. for (var i = 0; i < a.length; i++) {
  10394. this.workStudent[i] = [];
  10395. for (var j = 0; j < b.length; j++) {
  10396. if (i == b[j].tool) {
  10397. if (
  10398. (b[j].type == 1 ||
  10399. b[j].type == 4 ||
  10400. b[j].type == 5 ||
  10401. b[j].type == 6 ||
  10402. b[j].type == 12 ||
  10403. b[j].type == 7) &&
  10404. a[i].tool[0] != 15 &&
  10405. a[i].tool[0] != 4 &&
  10406. a[i].tool[0] != 45 &&
  10407. a[i].tool[0] != 50 &&
  10408. a[i].tool[0] != 32 &&
  10409. a[i].tool[0] != 57 &&
  10410. a[i].tool[0] != 52
  10411. ) {
  10412. if (
  10413. c.indexOf(
  10414. b[j].content
  10415. .split(".")
  10416. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  10417. ) != -1 &&
  10418. a[i].tool[0] == 16 &&
  10419. b[j].atool != 50
  10420. ) {
  10421. this.workStudent[i].push({
  10422. works: b[j].content,
  10423. sName: b[j].name,
  10424. score: b[j].score,
  10425. img: b[j].img,
  10426. type: 1,
  10427. time: b[j].time,
  10428. userid: b[j].userid,
  10429. wid: b[j].id,
  10430. });
  10431. } else if (
  10432. y.indexOf(
  10433. b[j].content
  10434. .split(".")
  10435. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  10436. ) != -1 &&
  10437. a[i].tool[0] == 16 &&
  10438. b[j].atool != 50
  10439. ) {
  10440. this.workStudent[i].push({
  10441. userid: b[j].userid,
  10442. wid: b[j].id,
  10443. works: b[j].content,
  10444. sName: b[j].name,
  10445. score: b[j].score,
  10446. img: b[j].img,
  10447. type: 3,
  10448. time: b[j].time,
  10449. });
  10450. } else if (b[j].type == 6 && b[j].atool != 50) {
  10451. this.workStudent[i].push({
  10452. userid: b[j].userid,
  10453. wid: b[j].id,
  10454. works: b[j].content,
  10455. sName: b[j].name,
  10456. score: b[j].score,
  10457. img: b[j].img,
  10458. type: 4,
  10459. time: b[j].time,
  10460. });
  10461. } else if (b[j].type == 7 && b[j].atool != 50) {
  10462. this.workStudent[i].push({
  10463. userid: b[j].userid,
  10464. wid: b[j].id,
  10465. works: b[j].content,
  10466. sName: b[j].name,
  10467. score: b[j].score,
  10468. img: b[j].img,
  10469. type: 5,
  10470. time: b[j].time,
  10471. });
  10472. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  10473. this.workStudent[i].push({
  10474. works: b[j].content,
  10475. sName: b[j].name,
  10476. score: b[j].score,
  10477. img: b[j].img,
  10478. type: 12,
  10479. time: b[j].time,
  10480. userid: b[j].userid,
  10481. wid: b[j].id,
  10482. });
  10483. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  10484. this.workStudent[i].push({
  10485. works: b[j].content,
  10486. sName: b[j].name,
  10487. score: b[j].score,
  10488. img: b[j].img,
  10489. type: 0,
  10490. time: b[j].time,
  10491. userid: b[j].userid,
  10492. wid: b[j].id,
  10493. });
  10494. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  10495. this.workStudent[i].push({
  10496. works: b[j].content,
  10497. sName: b[j].name,
  10498. score: b[j].score,
  10499. img: b[j].img,
  10500. type: 0,
  10501. time: b[j].time,
  10502. userid: b[j].userid,
  10503. wid: b[j].id,
  10504. });
  10505. }
  10506. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  10507. this.workStudent[i].push({
  10508. works: b[j].content,
  10509. sName: b[j].name,
  10510. score: b[j].score,
  10511. img: b[j].img,
  10512. type: 2,
  10513. time: b[j].time,
  10514. userid: b[j].userid,
  10515. wid: b[j].id,
  10516. });
  10517. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  10518. //问卷
  10519. this.workStudent[i].push({
  10520. works: b[j].content,
  10521. sName: b[j].name,
  10522. score: b[j].score,
  10523. img: b[j].img,
  10524. type: 2,
  10525. time: b[j].time,
  10526. userid: b[j].userid,
  10527. wid: b[j].id,
  10528. });
  10529. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  10530. //选择题
  10531. this.workStudent[i].push({
  10532. works: b[j].content,
  10533. sName: b[j].name,
  10534. score: b[j].score,
  10535. img: b[j].img,
  10536. type: 8,
  10537. time: b[j].time,
  10538. userid: b[j].userid,
  10539. wid: b[j].id,
  10540. });
  10541. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  10542. //选择题
  10543. this.workStudent[i].push({
  10544. works: b[j].content,
  10545. sName: b[j].name,
  10546. score: b[j].score,
  10547. img: b[j].img,
  10548. type: 9,
  10549. time: b[j].time,
  10550. userid: b[j].userid,
  10551. wid: b[j].id,
  10552. });
  10553. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  10554. //选择题
  10555. this.workStudent[i].push({
  10556. works: b[j].content,
  10557. sName: b[j].name,
  10558. score: b[j].score,
  10559. img: b[j].img,
  10560. type: 10,
  10561. time: b[j].time,
  10562. userid: b[j].userid,
  10563. wid: b[j].id,
  10564. });
  10565. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  10566. //选择题
  10567. this.workStudent[i].push({
  10568. works: b[j].content,
  10569. sName: b[j].name,
  10570. score: b[j].score,
  10571. img: b[j].img,
  10572. type: 13,
  10573. time: b[j].time,
  10574. userid: b[j].userid,
  10575. wid: b[j].id,
  10576. });
  10577. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  10578. //选择题
  10579. this.workStudent[i].push({
  10580. works: b[j].content,
  10581. sName: b[j].name,
  10582. score: b[j].score,
  10583. img: b[j].img,
  10584. type: 12,
  10585. time: b[j].time,
  10586. userid: b[j].userid,
  10587. wid: b[j].id,
  10588. });
  10589. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  10590. //选择题
  10591. this.workStudent[i].push({
  10592. works: b[j].content,
  10593. sName: b[j].name,
  10594. score: b[j].score,
  10595. img: b[j].img,
  10596. type: 12,
  10597. time: b[j].time,
  10598. userid: b[j].userid,
  10599. wid: b[j].id,
  10600. });
  10601. }
  10602. }
  10603. }
  10604. }
  10605. })
  10606. .catch((err) => {
  10607. console.error(err);
  10608. });
  10609. },
  10610. openVideo(w) {
  10611. this.videoDetail = {};
  10612. this.playerOptions1.sources[0].src = w.works;
  10613. this.videoDetail = this.playerOptions1;
  10614. this.videoVisible = true;
  10615. },
  10616. isLikes(wid, uid, t, c, isLikes) {
  10617. if (isLikes == false) {
  10618. let params = [
  10619. {
  10620. wid: wid,
  10621. lid: uid,
  10622. t: t,
  10623. c: c,
  10624. },
  10625. ];
  10626. this.ajax
  10627. .post(this.$store.state.api + "insertComment", params)
  10628. .then((res) => {
  10629. this.$message({
  10630. message: "点赞成功",
  10631. type: "success",
  10632. });
  10633. this.selectSWorks();
  10634. this.selectStudent();
  10635. })
  10636. .catch((err) => {
  10637. this.$message.error("点赞失败");
  10638. console.error(err);
  10639. });
  10640. } else {
  10641. let params = {
  10642. wid: wid,
  10643. lid: uid,
  10644. type: t,
  10645. };
  10646. this.ajax
  10647. .get(this.$store.state.api + "deleteComment", params)
  10648. .then((res) => {
  10649. this.$message({
  10650. message: "取消点赞成功",
  10651. type: "success",
  10652. });
  10653. this.selectSWorks();
  10654. this.selectStudent();
  10655. })
  10656. .catch((err) => {
  10657. console.error(err);
  10658. });
  10659. }
  10660. },
  10661. deleteComment(wid) {
  10662. this.$confirm("确定删除此评论吗?", "提示", {
  10663. confirmButtonText: "确定",
  10664. cancelButtonText: "取消",
  10665. type: "warning",
  10666. })
  10667. .then(() => {
  10668. let params = {
  10669. id: wid,
  10670. };
  10671. this.ajax
  10672. .get(this.$store.state.api + "deleteComment2", params)
  10673. .then((res) => {
  10674. this.$message({
  10675. message: "删除评论成功",
  10676. type: "success",
  10677. });
  10678. this.selectSWorks();
  10679. this.selectStudent();
  10680. })
  10681. .catch((err) => {
  10682. console.error(err);
  10683. });
  10684. })
  10685. .catch(() => {});
  10686. },
  10687. commentOther(w, toolIndex, wIndex, gindex, gid) {
  10688. this.commentIndexJson = {
  10689. toolIndex: toolIndex,
  10690. wIndex: wIndex,
  10691. gindex: gindex,
  10692. gid: gid,
  10693. };
  10694. this.commentDetail = [];
  10695. this.commentDialogVisible = true;
  10696. this.commentDetail = w;
  10697. if (w.works && w.type == 1) {
  10698. this.pptImgUrl = "";
  10699. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  10700. if (
  10701. a.indexOf(
  10702. w.works
  10703. .split(".")
  10704. [w.works.split(".").length - 1].toLocaleUpperCase()
  10705. ) != -1
  10706. ) {
  10707. this.pptImgUrl =
  10708. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  10709. this.showPDF = false;
  10710. } else if (
  10711. w.works
  10712. .split(".")
  10713. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  10714. ) {
  10715. this.pptImgUrl = w.works;
  10716. this.showPDF = true;
  10717. }
  10718. } else if (w.works && w.type == 3) {
  10719. this.videoDetail = {};
  10720. this.playerOptions1.sources[0].src = w.works;
  10721. this.videoDetail = this.playerOptions1;
  10722. // this.videoVisible = true;
  10723. } else if (w.works && w.type == 4) {
  10724. this.eScore = JSON.parse(w.works);
  10725. this.rateJson =
  10726. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10727. this.taskCount
  10728. ].toolChoose[toolIndex].rateJson;
  10729. } else if (w.works && w.type == 10) {
  10730. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  10731. } else if (w.works && w.type == 13) {
  10732. this.wordJson =
  10733. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10734. this.taskCount
  10735. ].toolChoose[toolIndex].wordJson;
  10736. }
  10737. },
  10738. openScore(w) {
  10739. this.wScore = 0;
  10740. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  10741. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  10742. this.commentDetail = [];
  10743. this.dialogVisibleScore = true;
  10744. this.commentDetail = w;
  10745. if (w.works && w.type == 1) {
  10746. this.pptImgUrl = "";
  10747. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  10748. if (
  10749. a.indexOf(
  10750. w.works
  10751. .split(".")
  10752. [w.works.split(".").length - 1].toLocaleUpperCase()
  10753. ) != -1
  10754. ) {
  10755. this.pptImgUrl =
  10756. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  10757. this.showPDF = false;
  10758. } else if (
  10759. w.works
  10760. .split(".")
  10761. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  10762. ) {
  10763. this.pptImgUrl = w.works;
  10764. this.showPDF = true;
  10765. }
  10766. } else if (w.works && w.type == 3) {
  10767. this.videoDetail = {};
  10768. this.playerOptions1.sources[0].src = w.works;
  10769. this.videoDetail = this.playerOptions1;
  10770. }
  10771. },
  10772. addComment(wid, uid, t) {
  10773. if (this.commentText == "") {
  10774. this.$message.error("请输入对该学生的评价");
  10775. return;
  10776. }
  10777. let params2 = [
  10778. {
  10779. wid: wid,
  10780. lid: uid,
  10781. t: t,
  10782. },
  10783. ];
  10784. this.ajax
  10785. .post(this.$store.state.api + "getComment", params2)
  10786. .then((res) => {
  10787. if (res.data[0].length > 0) {
  10788. this.$message.error("一个作业只能评论一条");
  10789. } else {
  10790. let params = [
  10791. {
  10792. wid: wid,
  10793. lid: uid,
  10794. t: t,
  10795. c: this.commentText,
  10796. },
  10797. ];
  10798. this.ajax
  10799. .post(this.$store.state.api + "insertComment", params)
  10800. .then((res) => {
  10801. this.$message({
  10802. message: "评论成功",
  10803. type: "success",
  10804. });
  10805. this.commentText = "";
  10806. this.selectSWorks();
  10807. this.selectStudent();
  10808. })
  10809. .catch((err) => {
  10810. this.$message.error("评论失败");
  10811. console.error(err);
  10812. });
  10813. }
  10814. })
  10815. .catch((err) => {
  10816. // this.$message.error("评论失败");
  10817. console.error(err);
  10818. });
  10819. },
  10820. scoreWork(wid) {
  10821. if (this.wScore == 0) {
  10822. this.$message.error("请评分");
  10823. return;
  10824. }
  10825. let params = [
  10826. {
  10827. wid: wid,
  10828. score: JSON.stringify({
  10829. wScore: this.wScore,
  10830. detail: this.scoreDetail,
  10831. }),
  10832. },
  10833. ];
  10834. this.ajax
  10835. .post(this.$store.state.api + "scoreWork", params)
  10836. .then((res) => {
  10837. this.$message({
  10838. message: "评分成功",
  10839. type: "success",
  10840. });
  10841. this.wScore = 0;
  10842. this.scoreDetail = "";
  10843. this.dialogVisibleScore = false;
  10844. this.selectSWorks();
  10845. this.selectStudent();
  10846. })
  10847. .catch((err) => {
  10848. this.$message.error("评分失败");
  10849. console.error(err);
  10850. });
  10851. },
  10852. openXz(w, i) {
  10853. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10854. .taskJson[this.taskCount].toolChoose[i].selectJson
  10855. ? JSON.parse(
  10856. JSON.stringify(
  10857. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10858. this.taskCount
  10859. ].toolChoose[i].selectJson
  10860. )
  10861. )
  10862. : { url: "", select: [], answer: [] };
  10863. var a = w.works.split(",");
  10864. for (var k = 0; k < a.length; k++) {
  10865. a[k] = parseInt(a[k]);
  10866. }
  10867. this.selectAnswer = { answer: a, stu: w.sName };
  10868. this.isSelect = true;
  10869. this.dialogVisibleSelect = true;
  10870. },
  10871. openSen(w, i) {
  10872. this.sentenceList1 = JSON.parse(w.works);
  10873. this.sentenceList1.stuName = w.sName;
  10874. this.dialogVisibleSentence1 = true;
  10875. },
  10876. openPj(w, toolindex) {
  10877. this.isStar = true;
  10878. this.eScore = JSON.parse(w);
  10879. this.rateJson =
  10880. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10881. this.taskCount
  10882. ].toolChoose[toolindex].rateJson;
  10883. this.studentEvalDialogVisible = true;
  10884. },
  10885. deleteWorks(id) {
  10886. this.$confirm("确定删除此作业吗?", "提示", {
  10887. confirmButtonText: "确定",
  10888. cancelButtonText: "取消",
  10889. type: "warning",
  10890. })
  10891. .then(() => {
  10892. let params = [
  10893. {
  10894. id: id,
  10895. },
  10896. ];
  10897. this.ajax
  10898. .post(this.$store.state.api + "deleteCourseWork", params)
  10899. .then((res) => {
  10900. this.$message({
  10901. message: "删除成功",
  10902. type: "success",
  10903. });
  10904. this.selectStudent();
  10905. this.selectSWorks();
  10906. this.selectSLook();
  10907. })
  10908. .catch((err) => {
  10909. this.$message.error("网络异常");
  10910. console.error(err);
  10911. });
  10912. })
  10913. .catch(() => {});
  10914. },
  10915. selectSWorks(gindex) {
  10916. //教师查看全部作业
  10917. let params = {
  10918. cid: this.id,
  10919. s: this.courseType,
  10920. t: this.taskCount,
  10921. };
  10922. this.ajax
  10923. .get(this.$store.state.api + "selectSWorks", params)
  10924. .then((res) => {
  10925. var a =
  10926. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10927. this.taskCount
  10928. ].toolChoose;
  10929. var b = res.data[0];
  10930. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  10931. var y = [
  10932. "AVI",
  10933. "NAVI",
  10934. "MPEG",
  10935. "ASF",
  10936. "MOV",
  10937. "WMV",
  10938. "3GP",
  10939. "RM",
  10940. "RMVB",
  10941. "FLV",
  10942. "F4V",
  10943. "H.264",
  10944. "H.265",
  10945. "REAL VIDEO",
  10946. "MKV",
  10947. "WebM",
  10948. "HDDVD",
  10949. "MP4",
  10950. "MPG",
  10951. "M4V",
  10952. "MGV",
  10953. "OGV",
  10954. "QTM",
  10955. "STR",
  10956. "AMC",
  10957. "DVX",
  10958. "EVO",
  10959. "DAT",
  10960. "OGG",
  10961. "OGM",
  10962. ];
  10963. var d = res.data[1];
  10964. var e = res.data[2];
  10965. var f = res.data[3];
  10966. for (var i = 0; i < a.length; i++) {
  10967. this.worksStudent[i] = [];
  10968. if (
  10969. !this.isCloseList[i] ||
  10970. this.isCloseList[i].isClose == undefined
  10971. ) {
  10972. this.isCloseList[i] = { isClose: 0 };
  10973. }
  10974. this.groupStudent[i] = [];
  10975. this.groupStudentUid[i] = [];
  10976. if (this.isGroup) {
  10977. for (
  10978. var groupI = 0;
  10979. groupI < this.courseGroup.group.length;
  10980. groupI++
  10981. ) {
  10982. this.courseGroup.group[groupI].works[i] = [];
  10983. }
  10984. }
  10985. this.isWorksS[i] = [];
  10986. this.checkJson[i] = [];
  10987. if (a[i].tool[0] == 49) {
  10988. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  10989. this.groupStudent[i][gA] = [];
  10990. this.groupStudentUid[i][gA] = [];
  10991. this.worksStudent[i][gA] = [];
  10992. this.isCloseList[i][gA] = [];
  10993. for (var g = 0; g < f.length; g++) {
  10994. if (
  10995. f[g].ttype == 2 &&
  10996. this.tcid &&
  10997. this.arrayToArray(
  10998. f[g].classid.split(","),
  10999. this.tcid.split(",")
  11000. ).length == 0
  11001. ) {
  11002. continue;
  11003. }
  11004. if (gA == f[g].group && f[g].tool == i) {
  11005. this.groupStudent[i][gA].push(f[g]);
  11006. this.groupStudentUid[i][gA].push(f[g].userid);
  11007. }
  11008. }
  11009. }
  11010. this.$forceUpdate();
  11011. }
  11012. for (var j = 0; j < b.length; j++) {
  11013. if (
  11014. b[j].ttype == 2 &&
  11015. this.tcid &&
  11016. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  11017. .length == 0
  11018. ) {
  11019. continue;
  11020. }
  11021. var likesCount = 0;
  11022. var commentCount = 0;
  11023. var isLikes = false;
  11024. var commentJson = [];
  11025. var data = b[j];
  11026. if (i == b[j].tool) {
  11027. if (data.type == 2 && a[i].tool[0] == 4) {
  11028. // if(JSON.parse(data.content)[0].anwer){
  11029. var checkL = JSON.parse(data.content)[0].anwer instanceof Array ? JSON.parse(data.content)[0].anwer : JSON.parse(data.content)[0].anwer.split(",");
  11030. for (var z = 0; z < checkL.length; z++) {
  11031. if (!this.checkJson[i][z]) {
  11032. this.checkJson[i].push({
  11033. checkCount: [],
  11034. checkPerson: [],
  11035. rightPerson: [],
  11036. });
  11037. }
  11038. if (!this.checkJson[i][z].checkCount.length) {
  11039. this.checkJson[i][z].checkCount = [];
  11040. let _askItemCount = JSON.parse(data.content)[0].askJson
  11041. .askJson[z].askItem;
  11042. for (var aic = 0; aic < _askItemCount; aic++) {
  11043. this.checkJson[i][z].checkCount.push(0);
  11044. }
  11045. }
  11046. if (checkL[z] instanceof Array) {
  11047. if (
  11048. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  11049. checkL[z].sort().join(",")
  11050. ) {
  11051. this.checkJson[i][z].rightPerson.push(data.name);
  11052. }
  11053. for (var q = 0; q < checkL[z].length; q++) {
  11054. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  11055. ? this.checkJson[i][z].checkPerson[
  11056. parseInt(checkL[z][q])
  11057. ].push(data.name)
  11058. : (this.checkJson[i][z].checkPerson[
  11059. parseInt(checkL[z][q])
  11060. ] = [data.name]);
  11061. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  11062. ? this.checkJson[i][z].checkCount[
  11063. parseInt(checkL[z][q])
  11064. ]++
  11065. : (this.checkJson[i][z].checkCount[
  11066. parseInt(checkL[z][q])
  11067. ] = 1);
  11068. }
  11069. } else {
  11070. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  11071. this.checkJson[i][z].rightPerson.push(data.name);
  11072. }
  11073. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  11074. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  11075. ? this.checkJson[i][z].checkPerson[
  11076. parseInt(checkL[z])
  11077. ].push(data.name)
  11078. : (this.checkJson[i][z].checkPerson[
  11079. parseInt(checkL[z])
  11080. ] = [data.name]);
  11081. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  11082. ? this.checkJson[i][z].checkCount[
  11083. parseInt(checkL[z])
  11084. ]++
  11085. : (this.checkJson[i][z].checkCount[
  11086. parseInt(checkL[z])
  11087. ] = 1);
  11088. }
  11089. }
  11090. }
  11091. } else if (data.type == 8 && a[i].tool[0] == 45) {
  11092. var checkL = JSON.parse(data.content)[0].anwer;
  11093. for (var z = 0; z < checkL.length; z++) {
  11094. if (!this.checkJson[i][z]) {
  11095. this.checkJson[i].push({
  11096. checkCount: [],
  11097. checkPerson: [],
  11098. rightPerson: [],
  11099. });
  11100. }
  11101. if (!this.checkJson[i][z].checkCount.length) {
  11102. this.checkJson[i][z].checkCount = [];
  11103. let _askItemCount = JSON.parse(data.content)[0].testJson
  11104. .testJson[z].testItem;
  11105. console.log(_askItemCount);
  11106. for (var aic = 0; aic < _askItemCount; aic++) {
  11107. this.checkJson[i][z].checkCount.push(0);
  11108. }
  11109. }
  11110. if (checkL[z] instanceof Array) {
  11111. if (
  11112. JSON.parse(data.content)[0]
  11113. .testJson.testJson[z].answer.sort()
  11114. .join(",") == checkL[z].sort().join(",")
  11115. ) {
  11116. this.checkJson[i][z].rightPerson.push(data.name);
  11117. }
  11118. for (var q = 0; q < checkL[z].length; q++) {
  11119. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  11120. ? this.checkJson[i][z].checkPerson[
  11121. parseInt(checkL[z][q])
  11122. ].push(data.name)
  11123. : (this.checkJson[i][z].checkPerson[
  11124. parseInt(checkL[z][q])
  11125. ] = [data.name]);
  11126. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  11127. ? this.checkJson[i][z].checkCount[
  11128. parseInt(checkL[z][q])
  11129. ]++
  11130. : (this.checkJson[i][z].checkCount[
  11131. parseInt(checkL[z][q])
  11132. ] = 1);
  11133. }
  11134. } else {
  11135. if (
  11136. JSON.parse(data.content)[0].testJson.testJson[z]
  11137. .answer == checkL[z]
  11138. ) {
  11139. this.checkJson[i][z].rightPerson.push(data.name);
  11140. }
  11141. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  11142. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  11143. ? this.checkJson[i][z].checkPerson[
  11144. parseInt(checkL[z])
  11145. ].push(data.name)
  11146. : (this.checkJson[i][z].checkPerson[
  11147. parseInt(checkL[z])
  11148. ] = [data.name]);
  11149. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  11150. ? this.checkJson[i][z].checkCount[
  11151. parseInt(checkL[z])
  11152. ]++
  11153. : (this.checkJson[i][z].checkCount[
  11154. parseInt(checkL[z])
  11155. ] = 1);
  11156. }
  11157. }
  11158. }
  11159. } else if (data.type == 9 && a[i].tool[0] == 47) {
  11160. var checkL = JSON.parse(data.content);
  11161. for (var z = 0; z < checkL.length; z++) {
  11162. if (!this.checkJson[i][z]) {
  11163. this.checkJson[i].push({
  11164. checkCount: [],
  11165. checkPerson: [],
  11166. rightPerson: [],
  11167. });
  11168. }
  11169. this.checkJson[i][z].checkPerson.push(data.name);
  11170. if (
  11171. checkL[z].chooseSenList.toString() ==
  11172. checkL[z].rightAnswer.toString()
  11173. ) {
  11174. this.checkJson[i][z].rightPerson.push(data.name);
  11175. }
  11176. }
  11177. }
  11178. for (var k = 0; k < d.length; k++) {
  11179. //点赞
  11180. if (d[k].workId == b[j].id) {
  11181. likesCount++;
  11182. if (d[k].likesId == this.userid) {
  11183. isLikes = true;
  11184. }
  11185. }
  11186. }
  11187. for (var l = 0; l < e.length; l++) {
  11188. //评论
  11189. if (e[l].workId == b[j].id) {
  11190. if (e[l].comment != "") {
  11191. commentCount++;
  11192. commentJson.push({
  11193. commentText: e[l].comment,
  11194. commentTime: e[l].commentTime,
  11195. commentPeople: e[l].commentPeople,
  11196. userid: e[l].userid,
  11197. wid: e[l].id,
  11198. });
  11199. }
  11200. }
  11201. }
  11202. if (
  11203. (b[j].type == 1 ||
  11204. b[j].type == 4 ||
  11205. b[j].type == 5 ||
  11206. b[j].type == 6 ||
  11207. b[j].type == 12 ||
  11208. b[j].type == 7) &&
  11209. a[i].tool[0] != 15 &&
  11210. a[i].tool[0] != 4 &&
  11211. a[i].tool[0] != 45 &&
  11212. a[i].tool[0] != 50 &&
  11213. a[i].tool[0] != 32 &&
  11214. a[i].tool[0] != 57 &&
  11215. a[i].tool[0] != 52
  11216. ) {
  11217. if (
  11218. c.indexOf(
  11219. b[j].content
  11220. .split(".")
  11221. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11222. ) != -1 &&
  11223. a[i].tool[0] == 16 &&
  11224. b[j].atool != 50
  11225. ) {
  11226. let _works = {
  11227. userid: b[j].userid,
  11228. ateacher: b[j].ateacher,
  11229. wid: b[j].id,
  11230. works: b[j].content,
  11231. sName: b[j].name,
  11232. type: 1,
  11233. time: b[j].time,
  11234. score: b[j].score,
  11235. img: b[j].img,
  11236. likesCount: likesCount,
  11237. commentCount: commentCount,
  11238. isLikes: isLikes,
  11239. commentJson: commentJson,
  11240. };
  11241. if (this.isGroup) {
  11242. let isGw = 1;
  11243. for (
  11244. var groupI = 0;
  11245. groupI < this.courseGroup.group.length;
  11246. groupI++
  11247. ) {
  11248. let gid = this.courseGroup.group[groupI].id;
  11249. if (
  11250. this.courseGroupStudentUid[gid].indexOf(
  11251. b[j].userid
  11252. ) != -1
  11253. ) {
  11254. isGw = 2;
  11255. this.courseGroup.group[groupI].works[i].push(_works);
  11256. break;
  11257. }
  11258. }
  11259. if (isGw == 1) {
  11260. this.worksStudent[i].push(_works);
  11261. }
  11262. } else {
  11263. this.worksStudent[i].push(_works);
  11264. }
  11265. this.isWorksS[i].push({
  11266. uid: b[j].userid,
  11267. sName: b[j].name,
  11268. });
  11269. } else if (
  11270. y.indexOf(
  11271. b[j].content
  11272. .split(".")
  11273. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11274. ) != -1 &&
  11275. a[i].tool[0] == 16 &&
  11276. b[j].atool != 50
  11277. ) {
  11278. let _works = {
  11279. userid: b[j].userid,
  11280. ateacher: b[j].ateacher,
  11281. wid: b[j].id,
  11282. works: b[j].content,
  11283. sName: b[j].name,
  11284. type: 3,
  11285. time: b[j].time,
  11286. score: b[j].score,
  11287. img: b[j].img,
  11288. likesCount: likesCount,
  11289. commentCount: commentCount,
  11290. isLikes: isLikes,
  11291. commentJson: commentJson,
  11292. };
  11293. if (this.isGroup) {
  11294. let isGw = 1;
  11295. for (
  11296. var groupI = 0;
  11297. groupI < this.courseGroup.group.length;
  11298. groupI++
  11299. ) {
  11300. let gid = this.courseGroup.group[groupI].id;
  11301. if (
  11302. this.courseGroupStudentUid[gid].indexOf(
  11303. b[j].userid
  11304. ) != -1
  11305. ) {
  11306. isGw = 2;
  11307. this.courseGroup.group[groupI].works[i].push(_works);
  11308. break;
  11309. }
  11310. }
  11311. if (isGw == 1) {
  11312. this.worksStudent[i].push(_works);
  11313. }
  11314. } else {
  11315. this.worksStudent[i].push(_works);
  11316. }
  11317. this.isWorksS[i].push({
  11318. uid: b[j].userid,
  11319. sName: b[j].name,
  11320. });
  11321. } else if (b[j].type == 6 && b[j].atool != 50) {
  11322. this.worksStudent[i].push({
  11323. userid: b[j].userid,
  11324. ateacher: b[j].ateacher,
  11325. wid: b[j].id,
  11326. works: b[j].content,
  11327. sName: b[j].name,
  11328. type: 4,
  11329. time: b[j].time,
  11330. score: b[j].score,
  11331. img: b[j].img,
  11332. likesCount: likesCount,
  11333. commentCount: commentCount,
  11334. isLikes: isLikes,
  11335. commentJson: commentJson,
  11336. });
  11337. this.isWorksS[i].push({
  11338. uid: b[j].userid,
  11339. sName: b[j].name,
  11340. });
  11341. } else if (b[j].type == 7 && b[j].atool != 50) {
  11342. this.worksStudent[i].push({
  11343. userid: b[j].userid,
  11344. ateacher: b[j].ateacher,
  11345. wid: b[j].id,
  11346. works: b[j].content,
  11347. sName: b[j].name,
  11348. type: 5,
  11349. time: b[j].time,
  11350. score: b[j].score,
  11351. img: b[j].img,
  11352. likesCount: likesCount,
  11353. commentCount: commentCount,
  11354. isLikes: isLikes,
  11355. commentJson: commentJson,
  11356. });
  11357. this.isWorksS[i].push({
  11358. uid: b[j].userid,
  11359. sName: b[j].name,
  11360. });
  11361. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  11362. let _works = {
  11363. userid: b[j].userid,
  11364. ateacher: b[j].ateacher,
  11365. wid: b[j].id,
  11366. works: b[j].content,
  11367. sName: b[j].name,
  11368. type: 12,
  11369. time: b[j].time,
  11370. score: b[j].score,
  11371. img: b[j].img,
  11372. likesCount: likesCount,
  11373. commentCount: commentCount,
  11374. isLikes: isLikes,
  11375. commentJson: commentJson,
  11376. };
  11377. if (this.isGroup) {
  11378. let isGw = 1;
  11379. for (
  11380. var groupI = 0;
  11381. groupI < this.courseGroup.group.length;
  11382. groupI++
  11383. ) {
  11384. let gid = this.courseGroup.group[groupI].id;
  11385. if (
  11386. this.courseGroupStudentUid[gid].indexOf(
  11387. b[j].userid
  11388. ) != -1
  11389. ) {
  11390. isGw = 2;
  11391. this.courseGroup.group[groupI].works[i].push(_works);
  11392. break;
  11393. }
  11394. }
  11395. if (isGw == 1) {
  11396. this.worksStudent[i].push(_works);
  11397. }
  11398. } else {
  11399. this.worksStudent[i].push(_works);
  11400. }
  11401. this.isWorksS[i].push({
  11402. uid: b[j].userid,
  11403. sName: b[j].name,
  11404. });
  11405. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  11406. let _works = {
  11407. userid: b[j].userid,
  11408. ateacher: b[j].ateacher,
  11409. wid: b[j].id,
  11410. works: b[j].content,
  11411. sName: b[j].name,
  11412. type: 0,
  11413. time: b[j].time,
  11414. score: b[j].score,
  11415. img: b[j].img,
  11416. likesCount: likesCount,
  11417. commentCount: commentCount,
  11418. isLikes: isLikes,
  11419. commentJson: commentJson,
  11420. };
  11421. if (this.isGroup) {
  11422. let isGw = 1;
  11423. for (
  11424. var groupI = 0;
  11425. groupI < this.courseGroup.group.length;
  11426. groupI++
  11427. ) {
  11428. let gid = this.courseGroup.group[groupI].id;
  11429. if (
  11430. this.courseGroupStudentUid[gid].indexOf(
  11431. b[j].userid
  11432. ) != -1
  11433. ) {
  11434. isGw = 2;
  11435. this.courseGroup.group[groupI].works[i].push(_works);
  11436. break;
  11437. }
  11438. }
  11439. if (isGw == 1) {
  11440. this.worksStudent[i].push(_works);
  11441. }
  11442. } else {
  11443. this.worksStudent[i].push(_works);
  11444. }
  11445. this.isWorksS[i].push({
  11446. uid: b[j].userid,
  11447. sName: b[j].name,
  11448. });
  11449. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  11450. let _works = {
  11451. userid: b[j].userid,
  11452. ateacher: b[j].ateacher,
  11453. wid: b[j].id,
  11454. works: b[j].content,
  11455. sName: b[j].name,
  11456. type: 0,
  11457. time: b[j].time,
  11458. score: b[j].score,
  11459. img: b[j].img,
  11460. likesCount: likesCount,
  11461. commentCount: commentCount,
  11462. isLikes: isLikes,
  11463. commentJson: commentJson,
  11464. };
  11465. if (this.isGroup) {
  11466. let isGw = 1;
  11467. for (
  11468. var groupI = 0;
  11469. groupI < this.courseGroup.group.length;
  11470. groupI++
  11471. ) {
  11472. let gid = this.courseGroup.group[groupI].id;
  11473. if (
  11474. this.courseGroupStudentUid[gid].indexOf(
  11475. b[j].userid
  11476. ) != -1
  11477. ) {
  11478. isGw = 2;
  11479. this.courseGroup.group[groupI].works[i].push(_works);
  11480. break;
  11481. }
  11482. }
  11483. if (isGw == 1) {
  11484. this.worksStudent[i].push(_works);
  11485. }
  11486. } else {
  11487. this.worksStudent[i].push(_works);
  11488. }
  11489. this.isWorksS[i].push({
  11490. uid: b[j].userid,
  11491. sName: b[j].name,
  11492. });
  11493. }
  11494. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  11495. let _works = {
  11496. userid: b[j].userid,
  11497. ateacher: b[j].ateacher,
  11498. wid: b[j].id,
  11499. works: b[j].content,
  11500. sName: b[j].name,
  11501. type: 2,
  11502. time: b[j].time,
  11503. score: b[j].score,
  11504. img: b[j].img,
  11505. likesCount: likesCount,
  11506. commentCount: commentCount,
  11507. isLikes: isLikes,
  11508. commentJson: commentJson,
  11509. };
  11510. if (this.isGroup) {
  11511. let isGw = 1;
  11512. for (
  11513. var groupI = 0;
  11514. groupI < this.courseGroup.group.length;
  11515. groupI++
  11516. ) {
  11517. let gid = this.courseGroup.group[groupI].id;
  11518. if (
  11519. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  11520. -1
  11521. ) {
  11522. isGw = 2;
  11523. this.courseGroup.group[groupI].works[i].push(_works);
  11524. break;
  11525. }
  11526. }
  11527. if (isGw == 1) {
  11528. this.worksStudent[i].push(_works);
  11529. }
  11530. } else {
  11531. this.worksStudent[i].push(_works);
  11532. }
  11533. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11534. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  11535. //问卷
  11536. this.worksStudent[i].push({
  11537. userid: b[j].userid,
  11538. ateacher: b[j].ateacher,
  11539. wid: b[j].id,
  11540. works: b[j].content,
  11541. sName: b[j].name,
  11542. type: 2,
  11543. time: b[j].time,
  11544. score: b[j].score,
  11545. img: b[j].img,
  11546. likesCount: likesCount,
  11547. commentCount: commentCount,
  11548. isLikes: isLikes,
  11549. commentJson: commentJson,
  11550. });
  11551. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11552. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  11553. //选择题
  11554. this.worksStudent[i].push({
  11555. userid: b[j].userid,
  11556. ateacher: b[j].ateacher,
  11557. wid: b[j].id,
  11558. works: b[j].content,
  11559. sName: b[j].name,
  11560. type: 8,
  11561. time: b[j].time,
  11562. score: b[j].score,
  11563. img: b[j].img,
  11564. likesCount: likesCount,
  11565. commentCount: commentCount,
  11566. isLikes: isLikes,
  11567. commentJson: commentJson,
  11568. });
  11569. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11570. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  11571. //选择题
  11572. this.worksStudent[i].push({
  11573. userid: b[j].userid,
  11574. ateacher: b[j].ateacher,
  11575. wid: b[j].id,
  11576. works: b[j].content,
  11577. sName: b[j].name,
  11578. type: 9,
  11579. time: b[j].time,
  11580. score: b[j].score,
  11581. img: b[j].img,
  11582. likesCount: likesCount,
  11583. commentCount: commentCount,
  11584. isLikes: isLikes,
  11585. commentJson: commentJson,
  11586. });
  11587. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11588. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  11589. //选择题
  11590. this.worksStudent[i].push({
  11591. userid: b[j].userid,
  11592. ateacher: b[j].ateacher,
  11593. wid: b[j].id,
  11594. works: b[j].content,
  11595. sName: b[j].name,
  11596. type: 10,
  11597. time: b[j].time,
  11598. score: b[j].score,
  11599. img: b[j].img,
  11600. likesCount: likesCount,
  11601. commentCount: commentCount,
  11602. isLikes: isLikes,
  11603. commentJson: commentJson,
  11604. });
  11605. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11606. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  11607. //选择题
  11608. this.worksStudent[i].push({
  11609. userid: b[j].userid,
  11610. ateacher: b[j].ateacher,
  11611. wid: b[j].id,
  11612. works: b[j].content,
  11613. sName: b[j].name,
  11614. type: 13,
  11615. time: b[j].time,
  11616. score: b[j].score,
  11617. img: b[j].img,
  11618. likesCount: likesCount,
  11619. commentCount: commentCount,
  11620. isLikes: isLikes,
  11621. commentJson: commentJson,
  11622. });
  11623. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11624. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  11625. let _gindex = JSON.parse(b[j].content);
  11626. if (
  11627. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  11628. b[j].userid
  11629. ) != -1
  11630. ) {
  11631. this.worksStudent[i][_gindex.groupIndex].push({
  11632. userid: b[j].userid,
  11633. ateacher: b[j].ateacher,
  11634. wid: b[j].id,
  11635. works: _gindex.url,
  11636. sName: b[j].name,
  11637. type: _gindex.type,
  11638. time: b[j].time,
  11639. score: b[j].score,
  11640. img: b[j].img,
  11641. likesCount: likesCount,
  11642. commentCount: commentCount,
  11643. isLikes: isLikes,
  11644. commentJson: commentJson,
  11645. });
  11646. }
  11647. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11648. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  11649. this.worksStudent[i].push({
  11650. userid: b[j].userid,
  11651. ateacher: b[j].ateacher,
  11652. wid: b[j].id,
  11653. works: b[j].content,
  11654. sName: b[j].name ? b[j].name : b[j].userid,
  11655. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  11656. time: b[j].time,
  11657. score: b[j].score,
  11658. img: b[j].img,
  11659. likesCount: likesCount,
  11660. commentCount: commentCount,
  11661. isLikes: isLikes,
  11662. commentJson: commentJson,
  11663. });
  11664. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11665. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  11666. this.worksStudent[i].push({
  11667. userid: b[j].userid,
  11668. ateacher: b[j].ateacher,
  11669. wid: b[j].id,
  11670. works: b[j].content,
  11671. sName: b[j].name ? b[j].name : b[j].userid,
  11672. type: 12,
  11673. time: b[j].time,
  11674. score: b[j].score,
  11675. img: b[j].img,
  11676. likesCount: likesCount,
  11677. commentCount: commentCount,
  11678. isLikes: isLikes,
  11679. commentJson: commentJson,
  11680. });
  11681. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11682. } else if (a[i].tool[0] == 57 && b[j].atool == 57) {
  11683. this.worksStudent[i].push({
  11684. userid: b[j].userid,
  11685. ateacher: b[j].ateacher,
  11686. wid: b[j].id,
  11687. works: b[j].content,
  11688. sName: b[j].name ? b[j].name : b[j].userid,
  11689. type: 12,
  11690. time: b[j].time,
  11691. score: b[j].score,
  11692. img: b[j].img,
  11693. likesCount: likesCount,
  11694. commentCount: commentCount,
  11695. isLikes: isLikes,
  11696. commentJson: commentJson,
  11697. });
  11698. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11699. }
  11700. }
  11701. }
  11702. if (this.worksStudent[i] && this.worksStudent[i].length) {
  11703. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  11704. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  11705. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  11706. var scoreA = parseFloat(jscoreA);
  11707. var scoreB = parseFloat(jscoreB);
  11708. if (scoreA == scoreB) {
  11709. return b.likesCount - a.likesCount;
  11710. }
  11711. return scoreB - scoreA;
  11712. });
  11713. if (this.isGroup) {
  11714. for (
  11715. var groupI = 0;
  11716. groupI < this.courseGroup.group.length;
  11717. groupI++
  11718. ) {
  11719. this.courseGroup.group[groupI].works[i] =
  11720. this.courseGroup.group[groupI].works[i].sort(function (
  11721. a,
  11722. b
  11723. ) {
  11724. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  11725. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  11726. var scoreA = parseFloat(jscoreA);
  11727. var scoreB = parseFloat(jscoreB);
  11728. if (scoreA == scoreB) {
  11729. return b.likesCount - a.likesCount;
  11730. }
  11731. return scoreB - scoreA;
  11732. });
  11733. }
  11734. }
  11735. }
  11736. }
  11737. for (var i = 0; i < a.length; i++) {
  11738. for (var j = 0; j < b.length; j++) {
  11739. var data = b[j];
  11740. if (i == b[j].tool) {
  11741. if (data.type == 2 || data.type == 8) {
  11742. for (var z = 0; z < this.checkJson[i].length; z++) {
  11743. this.checkJson[i][z].checkPerent = [];
  11744. this.checkJson[i][z].right = Math.round(
  11745. (this.checkJson[i][z].rightPerson.length /
  11746. parseInt(this.worksStudent[i].length)) *
  11747. 100
  11748. );
  11749. let aaaa = this.checkJson[i][z];
  11750. console.log(aaaa);
  11751. for (
  11752. var k = 0;
  11753. k < this.checkJson[i][z].checkCount.length;
  11754. k++
  11755. ) {
  11756. this.checkJson[i][z].checkPerent.push(
  11757. Math.round(
  11758. (this.checkJson[i][z].checkCount[k] /
  11759. parseInt(this.worksStudent[i].length)) *
  11760. 100
  11761. )
  11762. );
  11763. }
  11764. }
  11765. } else if (data.type == 9) {
  11766. for (var z = 0; z < this.checkJson[i].length; z++) {
  11767. this.checkJson[i][z].checkPerent = [];
  11768. this.checkJson[i][z].right = Math.round(
  11769. (this.checkJson[i][z].rightPerson.length /
  11770. this.checkJson[i][z].checkPerson.length) *
  11771. 100
  11772. );
  11773. }
  11774. }
  11775. }
  11776. }
  11777. }
  11778. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  11779. this.joinGroup(gindex);
  11780. }
  11781. this.selectWorksStudent();
  11782. })
  11783. .catch((err) => {
  11784. console.error(err);
  11785. });
  11786. },
  11787. pngToWhiteBg(file) {
  11788. const _file = file;
  11789. let read = new FileReader();
  11790. read.readAsDataURL(file); // 文件转base64
  11791. return new Promise((resolve, reject) => {
  11792. read.onload = (e) => {
  11793. let img = new Image();
  11794. img.src = e.target.result;
  11795. img.onload = async () => {
  11796. // 生成canvas
  11797. let canvas = document.createElement("canvas");
  11798. let context = canvas.getContext("2d");
  11799. // 绘制图片到canvas上
  11800. canvas.width = img.width;
  11801. canvas.height = img.height;
  11802. // 在canvas绘制前填充白色背景
  11803. context.fillStyle = "#fff";
  11804. context.fillRect(0, 0, canvas.width, canvas.height);
  11805. context.drawImage(img, 0, 0);
  11806. let base64 = canvas.toDataURL(file["type"], 1);
  11807. let newFile = this.dataUrlToFile(base64, _file);
  11808. resolve(newFile);
  11809. };
  11810. };
  11811. });
  11812. },
  11813. dataUrlToFile(dataurl, file) {
  11814. let arr = dataurl.split(","),
  11815. mime = arr[0].match(/:(.*?);/)[1],
  11816. bstr = atob(arr[1]),
  11817. n = bstr.length,
  11818. u8arr = new Uint8Array(n);
  11819. while (n--) {
  11820. u8arr[n] = bstr.charCodeAt(n);
  11821. }
  11822. // return new Blob([u8arr], { type: mime });
  11823. return new File([new Blob([u8arr], { type: mime })], file.name, {
  11824. type: mime,
  11825. });
  11826. },
  11827. async beforeUpload1(event, type, i) {
  11828. // this.$message.success('进入上传')
  11829. var file = "";
  11830. if (type == 5) {
  11831. file = event;
  11832. } else {
  11833. file = event.target.files[0];
  11834. }
  11835. var credentials = {
  11836. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11837. secretAccessKey: "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",
  11838. }; //秘钥形式的登录上传
  11839. window.AWS.config.update(credentials);
  11840. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11841. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  11842. var _this = this;
  11843. _this.progress = 0;
  11844. _this.proVisible = true;
  11845. _this.isFinishSize = 0;
  11846. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  11847. var b = [
  11848. "DOC",
  11849. "DOCX",
  11850. "DOCM",
  11851. "DOTM",
  11852. "DOTX",
  11853. "PPTX",
  11854. "PPSX",
  11855. "PPT",
  11856. "PPS",
  11857. "PPTM",
  11858. "POTM",
  11859. "PPAM",
  11860. "POTX",
  11861. "PPSM",
  11862. ];
  11863. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  11864. var photoA = [
  11865. "BMP",
  11866. "GIF",
  11867. "PNG",
  11868. "JPGE",
  11869. "JPG",
  11870. "TIF",
  11871. "PCX",
  11872. "TGA",
  11873. "EXIF",
  11874. "FPX",
  11875. "SVG",
  11876. "APNG",
  11877. ];
  11878. // if (
  11879. // b.indexOf(
  11880. // file.name
  11881. // .split(".")
  11882. // [file.name.split(".").length - 1].toLocaleUpperCase()
  11883. // ) != -1
  11884. // ) {
  11885. // if (file.size / 1024 / 1024 > 10) {
  11886. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  11887. // return;
  11888. // }
  11889. // } else if (
  11890. // excelA.indexOf(
  11891. // file.name
  11892. // .split(".")
  11893. // [file.name.split(".").length - 1].toLocaleUpperCase()
  11894. // ) != "-1"
  11895. // ) {
  11896. // if (file.size / 1024 / 1024 > 5) {
  11897. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  11898. // return;
  11899. // }
  11900. // }
  11901. if (
  11902. photoA.indexOf(
  11903. file.name
  11904. .split(".")
  11905. [file.name.split(".").length - 1].toLocaleUpperCase()
  11906. ) != -1 &&
  11907. type != 4
  11908. ) {
  11909. // const blob = await imageConversion.compress(file, 0.8)
  11910. file = await this.pngToWhiteBg(file);
  11911. const blob = await imageConversion.compressAccurately(file, 256);
  11912. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  11913. file = new File([blob], file.name, { type: file.type });
  11914. }
  11915. if (file) {
  11916. var params = {
  11917. Key:
  11918. file.name.split(".")[0] +
  11919. new Date().getTime() +
  11920. "." +
  11921. file.name.split(".")[file.name.split(".").length - 1],
  11922. ContentType: file.type,
  11923. Body: file,
  11924. "Access-Control-Allow-Credentials": "*",
  11925. ACL: "public-read",
  11926. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  11927. var options = {
  11928. // partSize: 2048 * 1024 * 1024,
  11929. partSize: 1024 * 1024 * 1024,
  11930. queueSize: 2,
  11931. leavePartsOnError: true,
  11932. };
  11933. bucket
  11934. .upload(params, options)
  11935. .on("httpUploadProgress", function (evt) {
  11936. //这里可以写进度条
  11937. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  11938. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  11939. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  11940. })
  11941. .send(function (err, data) {
  11942. _this.progress = 100;
  11943. _this.isFinishSize = _this.isAllSize;
  11944. setTimeout(() => {
  11945. _this.proVisible = false;
  11946. }, 1000);
  11947. if (err) {
  11948. var a = _this.$refs.upload1.uploadFiles;
  11949. a.splice(a.length - 1, a.length);
  11950. _this.$message.error("上传失败");
  11951. } else {
  11952. // _this.$message.success('上传成功')
  11953. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  11954. var c = [
  11955. "AVI",
  11956. "NAVI",
  11957. "MPEG",
  11958. "ASF",
  11959. "MOV",
  11960. "WMV",
  11961. "3GP",
  11962. "RM",
  11963. "RMVB",
  11964. "FLV",
  11965. "F4V",
  11966. "H.264",
  11967. "H.265",
  11968. "REAL VIDEO",
  11969. "MKV",
  11970. "WebM",
  11971. "HDDVD",
  11972. "MP4",
  11973. "MPG",
  11974. "M4V",
  11975. "MGV",
  11976. "OGV",
  11977. "QTM",
  11978. "STR",
  11979. "AMC",
  11980. "DVX",
  11981. "EVO",
  11982. "DAT",
  11983. "OGG",
  11984. "OGM",
  11985. ];
  11986. if (type == 1) {
  11987. _this.studyJuri[0].cover.push({
  11988. name: file.name,
  11989. url: data.Location,
  11990. uid: file.uid,
  11991. });
  11992. if (
  11993. c.indexOf(
  11994. _this.studyJuri[0].cover[0].url
  11995. .split(".")
  11996. [
  11997. _this.studyJuri[0].cover[0].url.split(".").length - 1
  11998. ].toLocaleUpperCase()
  11999. ) != -1
  12000. ) {
  12001. _this.fileType = 2;
  12002. } else if (
  12003. b.indexOf(
  12004. _this.studyJuri[0].cover[0].url
  12005. .split(".")
  12006. [
  12007. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12008. ].toLocaleUpperCase()
  12009. ) != -1
  12010. ) {
  12011. _this.fileType = 1;
  12012. } else if (
  12013. photoA.indexOf(
  12014. _this.studyJuri[0].cover[0].url
  12015. .split(".")
  12016. [
  12017. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12018. ].toLocaleUpperCase()
  12019. ) != -1
  12020. ) {
  12021. _this.fileType = 0;
  12022. } else {
  12023. _this.fileType = 3;
  12024. }
  12025. _this.imgChange(null, null, type);
  12026. } else if (type == 2) {
  12027. _this.upToolImg = data.Location;
  12028. _this.imgChange(null, null, type);
  12029. _this.addCourseWorks(i);
  12030. } else if (type == 4) {
  12031. _this.addPz("3", data.Location);
  12032. } else if (type == 5) {
  12033. _this.addImgDrawImG(data.Location);
  12034. } else if (type == 6) {
  12035. var _ftype = 1;
  12036. if (
  12037. c.indexOf(
  12038. data.Location.split(".")[
  12039. data.Location.split(".").length - 1
  12040. ].toLocaleUpperCase()
  12041. ) != -1
  12042. ) {
  12043. _ftype = 5;
  12044. } else if (
  12045. b.indexOf(
  12046. data.Location.split(".")[
  12047. data.Location.split(".").length - 1
  12048. ].toLocaleUpperCase()
  12049. ) != -1
  12050. ) {
  12051. _ftype = 4;
  12052. } else {
  12053. _ftype = 1;
  12054. }
  12055. _this.plworkFile.push({
  12056. name: file.name,
  12057. url: data.Location,
  12058. uid: file.uid,
  12059. fileType: _ftype,
  12060. username:
  12061. _this.plworkFile.length > 10
  12062. ? _this.plworkFile.length + 1
  12063. : "0" + (_this.plworkFile.length + 1),
  12064. });
  12065. } else if (type == 7) {
  12066. _this.addCourseWorksGong(i, data.Location, 32);
  12067. } else if (type == 8) {
  12068. _this.addCourseWorksGong(i, data.Location, 57);
  12069. }
  12070. _this.imgChange(null, null, type);
  12071. console.log(data.Location);
  12072. // _this.$message.success('上传成功'+data.Location)
  12073. }
  12074. });
  12075. }
  12076. },
  12077. async beforeUpload3(event, type, i) {
  12078. // this.$message.success('进入上传')
  12079. let file = "";
  12080. let cfindex2 = 0;
  12081. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  12082. file = event.target.files[cfindex];
  12083. var credentials = {
  12084. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12085. secretAccessKey: "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",
  12086. }; //秘钥形式的登录上传
  12087. window.AWS.config.update(credentials);
  12088. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12089. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  12090. var _this = this;
  12091. // _this.progress = 0;
  12092. _this.proVisible2 = true;
  12093. var b = [
  12094. "DOC",
  12095. "DOCX",
  12096. "DOCM",
  12097. "DOTM",
  12098. "DOTX",
  12099. "PPTX",
  12100. "PPSX",
  12101. "PPT",
  12102. "PPS",
  12103. "PPTM",
  12104. "POTM",
  12105. "PPAM",
  12106. "POTX",
  12107. "PPSM",
  12108. ];
  12109. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  12110. var photoA = [
  12111. "BMP",
  12112. "GIF",
  12113. "PNG",
  12114. "JPGE",
  12115. "JPG",
  12116. "TIF",
  12117. "PCX",
  12118. "TGA",
  12119. "EXIF",
  12120. "FPX",
  12121. "SVG",
  12122. "APNG",
  12123. ];
  12124. if (
  12125. photoA.indexOf(
  12126. file.name
  12127. .split(".")
  12128. [file.name.split(".").length - 1].toLocaleUpperCase()
  12129. ) != -1 &&
  12130. type != 4
  12131. ) {
  12132. // const blob = await imageConversion.compress(file, 0.8)
  12133. file = await this.pngToWhiteBg(file);
  12134. const blob = await imageConversion.compressAccurately(file, 256);
  12135. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  12136. file = new File([blob], file.name, { type: file.type });
  12137. }
  12138. if (file) {
  12139. var params = {
  12140. Key:
  12141. file.name.split(".")[0] +
  12142. new Date().getTime() +
  12143. "." +
  12144. file.name.split(".")[file.name.split(".").length - 1],
  12145. ContentType: file.type,
  12146. Body: file,
  12147. "Access-Control-Allow-Credentials": "*",
  12148. ACL: "public-read",
  12149. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  12150. var options = {
  12151. // partSize: 2048 * 1024 * 1024,
  12152. partSize: 1024 * 1024 * 1024,
  12153. queueSize: 2,
  12154. leavePartsOnError: true,
  12155. };
  12156. bucket
  12157. .upload(params, options)
  12158. .on("httpUploadProgress", function (evt) {
  12159. //这里可以写进度条
  12160. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  12161. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  12162. })
  12163. .send(function (err, data) {
  12164. // _this.progress = 100;
  12165. cfindex2++;
  12166. setTimeout(() => {
  12167. if (
  12168. cfindex2 == event.target.files.length - 1 ||
  12169. cfindex2 > event.target.files.length - 1
  12170. ) {
  12171. _this.proVisible2 = false;
  12172. }
  12173. }, 1000);
  12174. if (err) {
  12175. var a = _this.$refs.upload1.uploadFiles;
  12176. a.splice(a.length - 1, a.length);
  12177. _this.$message.error("上传失败");
  12178. } else {
  12179. // _this.$message.success('上传成功')
  12180. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12181. var c = [
  12182. "AVI",
  12183. "NAVI",
  12184. "MPEG",
  12185. "ASF",
  12186. "MOV",
  12187. "WMV",
  12188. "3GP",
  12189. "RM",
  12190. "RMVB",
  12191. "FLV",
  12192. "F4V",
  12193. "H.264",
  12194. "H.265",
  12195. "REAL VIDEO",
  12196. "MKV",
  12197. "WebM",
  12198. "HDDVD",
  12199. "MP4",
  12200. "MPG",
  12201. "M4V",
  12202. "MGV",
  12203. "OGV",
  12204. "QTM",
  12205. "STR",
  12206. "AMC",
  12207. "DVX",
  12208. "EVO",
  12209. "DAT",
  12210. "OGG",
  12211. "OGM",
  12212. ];
  12213. if (type == 1) {
  12214. _this.studyJuri[0].cover.push({
  12215. name: file.name,
  12216. url: data.Location,
  12217. uid: file.uid,
  12218. });
  12219. if (
  12220. c.indexOf(
  12221. _this.studyJuri[0].cover[0].url
  12222. .split(".")
  12223. [
  12224. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12225. ].toLocaleUpperCase()
  12226. ) != -1
  12227. ) {
  12228. _this.fileType = 2;
  12229. } else if (
  12230. b.indexOf(
  12231. _this.studyJuri[0].cover[0].url
  12232. .split(".")
  12233. [
  12234. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12235. ].toLocaleUpperCase()
  12236. ) != -1
  12237. ) {
  12238. _this.fileType = 1;
  12239. } else {
  12240. _this.fileType = 0;
  12241. }
  12242. _this.imgChange(null, null, type);
  12243. } else if (type == 2) {
  12244. _this.upToolImg = data.Location;
  12245. _this.imgChange(null, null, type);
  12246. _this.addCourseWorks(i);
  12247. } else if (type == 4) {
  12248. _this.addPz("3", data.Location);
  12249. } else if (type == 5) {
  12250. _this.addImgDrawImG(data.Location);
  12251. } else if (type == 6) {
  12252. var _ftype = 1;
  12253. if (
  12254. c.indexOf(
  12255. data.Location.split(".")[
  12256. data.Location.split(".").length - 1
  12257. ].toLocaleUpperCase()
  12258. ) != -1
  12259. ) {
  12260. _ftype = 5;
  12261. } else if (
  12262. b.indexOf(
  12263. data.Location.split(".")[
  12264. data.Location.split(".").length - 1
  12265. ].toLocaleUpperCase()
  12266. ) != -1
  12267. ) {
  12268. _ftype = 4;
  12269. } else {
  12270. _ftype = 1;
  12271. }
  12272. _this.plworkFile.push({
  12273. name: file.name,
  12274. url: data.Location,
  12275. uid: file.uid,
  12276. fileType: _ftype,
  12277. username:
  12278. _this.plworkFile.length + 1 > 9
  12279. ? _this.plworkFile.length + 1
  12280. : "0" + (_this.plworkFile.length + 1),
  12281. });
  12282. }
  12283. _this.imgChange(null, null, type);
  12284. console.log(data.Location);
  12285. // _this.$message.success('上传成功'+data.Location)
  12286. }
  12287. });
  12288. }
  12289. }
  12290. },
  12291. beforeUpload2(event, type) {
  12292. var file = event.target.files[0];
  12293. var credentials = {
  12294. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12295. secretAccessKey: "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",
  12296. }; //秘钥形式的登录上传
  12297. window.AWS.config.update(credentials);
  12298. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12299. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  12300. var _this = this;
  12301. _this.progress = 0;
  12302. _this.proVisible = true;
  12303. if (file) {
  12304. var params = {
  12305. Key:
  12306. file.name.split(".")[0] +
  12307. new Date().getTime() +
  12308. "." +
  12309. file.name.split(".")[file.name.split(".").length - 1],
  12310. ContentType: file.type,
  12311. Body: file,
  12312. "Access-Control-Allow-Credentials": "*",
  12313. ACL: "public-read",
  12314. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  12315. var options = {
  12316. partSize: 2048 * 1024 * 1024,
  12317. queueSize: 2,
  12318. leavePartsOnError: true,
  12319. };
  12320. bucket
  12321. .upload(params, options)
  12322. .on("httpUploadProgress", function (evt) {
  12323. //这里可以写进度条
  12324. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  12325. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  12326. })
  12327. .send(function (err, data) {
  12328. _this.progress = 100;
  12329. setTimeout(() => {
  12330. _this.proVisible = false;
  12331. }, 1000);
  12332. if (err) {
  12333. var a = _this.$refs.upload1.uploadFiles;
  12334. a.splice(a.length - 1, a.length);
  12335. _this.$message.error("上传失败");
  12336. } else {
  12337. if (type == 2) {
  12338. _this.studyJuri[0].upVedio.push({
  12339. name: file.name,
  12340. url: data.Location,
  12341. uid: file.uid,
  12342. });
  12343. _this.imgChange(null, null, type);
  12344. } else if (type == 3) {
  12345. _this.studyJuri[0].upFile.push({
  12346. name: file.name,
  12347. url: data.Location,
  12348. uid: file.uid,
  12349. });
  12350. _this.imgChange(null, null, type);
  12351. }
  12352. console.log(data.Location);
  12353. }
  12354. });
  12355. }
  12356. },
  12357. allScrell() {
  12358. window.parent.postMessage({ allScreen: this.screenType }, "*");
  12359. },
  12360. nextOrpreSteps(t) {
  12361. if (this.IsFollow && this.tType == 2) {
  12362. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  12363. return;
  12364. }
  12365. var b = this.chapInfoList.length - 1;
  12366. if (t == 0) {
  12367. if (this.courseType == 0) {
  12368. if (this.taskCount == 0) {
  12369. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  12370. if (this.IsLookOpen) {
  12371. if (
  12372. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  12373. ) {
  12374. if (
  12375. this.courseDetail.userid != this.userid &&
  12376. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  12377. ) {
  12378. this.$message.error("任务未解锁");
  12379. } else {
  12380. this.$message.error("上一任务未解锁");
  12381. }
  12382. return;
  12383. }
  12384. }
  12385. this.navList[this.courseType].isOpen = false;
  12386. this.courseType = b;
  12387. this.taskCount =
  12388. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  12389. .length - 1;
  12390. this.navList[this.courseType].isOpen = true;
  12391. } else {
  12392. this.taskCount--;
  12393. }
  12394. } else {
  12395. if (this.taskCount == 0) {
  12396. this.navList[this.courseType].isOpen = false;
  12397. this.courseType--;
  12398. this.taskCount =
  12399. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  12400. .length - 1;
  12401. this.navList[this.courseType].isOpen = true;
  12402. } else {
  12403. this.taskCount--;
  12404. }
  12405. }
  12406. } else {
  12407. if (this.courseType == b) {
  12408. if (
  12409. this.taskCount ==
  12410. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  12411. 1
  12412. ) {
  12413. this.navList[this.courseType].isOpen = false;
  12414. this.courseType = 0;
  12415. this.taskCount = 0;
  12416. this.navList[this.courseType].isOpen = true;
  12417. } else {
  12418. var bbb = parseInt(this.taskCount) + 1;
  12419. if (
  12420. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  12421. .isLook &&
  12422. this.courseDetail.userid != this.userid &&
  12423. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  12424. this.IsLookOpen
  12425. ) {
  12426. this.$message.error("任务未解锁");
  12427. return;
  12428. }
  12429. this.taskCount++;
  12430. if (this.IsLookOpen) {
  12431. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12432. this.taskCount
  12433. ].isLook = true;
  12434. this.addCourseState(3);
  12435. }
  12436. }
  12437. } else {
  12438. if (
  12439. this.taskCount ==
  12440. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  12441. 1
  12442. ) {
  12443. var bbb = parseInt(this.courseType) + 1;
  12444. if (
  12445. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  12446. this.courseDetail.userid != this.userid &&
  12447. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  12448. this.IsLookOpen
  12449. ) {
  12450. this.$message.error("任务未解锁");
  12451. return;
  12452. }
  12453. this.navList[this.courseType].isOpen = false;
  12454. this.courseType++;
  12455. this.taskCount = 0;
  12456. this.navList[this.courseType].isOpen = true;
  12457. } else {
  12458. var bbb = parseInt(this.taskCount) + 1;
  12459. if (
  12460. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  12461. .isLook &&
  12462. this.courseDetail.userid != this.userid &&
  12463. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  12464. this.IsLookOpen
  12465. ) {
  12466. this.$message.error("任务未解锁");
  12467. return;
  12468. }
  12469. this.taskCount++;
  12470. }
  12471. if (this.IsLookOpen) {
  12472. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12473. this.taskCount
  12474. ].isLook = true;
  12475. this.addCourseState(3);
  12476. }
  12477. }
  12478. // if (
  12479. // this.taskCount ==
  12480. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  12481. // ) {
  12482. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  12483. // } else {
  12484. // this.taskCount++;
  12485. // }
  12486. }
  12487. document.scrollingElement.scrollTop = 0;
  12488. this.showType = 0;
  12489. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  12490. // if (this.vedio[this.taskCount].length > 0) {
  12491. // var a =
  12492. // document.getElementsByClassName("box_course")[this.taskCount]
  12493. // .offsetHeight;
  12494. // document.getElementsByClassName("vedioList")[
  12495. // this.taskCount
  12496. // ].style.height = a + "px";
  12497. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  12498. // a - 40 + "px";
  12499. // }
  12500. this.isNoHomeWork = false;
  12501. (this.studyJuri = [
  12502. {
  12503. content: "",
  12504. cover: [],
  12505. upVedio: [],
  12506. upFile: [],
  12507. },
  12508. ]),
  12509. (this.radio = []);
  12510. this.isClickNav = "";
  12511. this.selectPz();
  12512. this.getHomeWork();
  12513. this.getCourseDetail(2);
  12514. this.$forceUpdate();
  12515. },
  12516. openTask(s, n, i) {
  12517. if (this.IsFollow && this.tType == 2) {
  12518. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  12519. return;
  12520. }
  12521. if (this.IsLookOpen) {
  12522. if (
  12523. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  12524. this.courseDetail.userid != this.userid &&
  12525. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  12526. ) {
  12527. this.$message.error("任务未解锁");
  12528. return;
  12529. }
  12530. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  12531. if (
  12532. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  12533. .isLook
  12534. ) {
  12535. this.$message.error("上一任务未解锁");
  12536. return;
  12537. }
  12538. } else if (s > this.courseType) {
  12539. if (n > 0) {
  12540. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  12541. this.$message.error("上一任务未解锁");
  12542. return;
  12543. }
  12544. } else {
  12545. if (
  12546. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  12547. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  12548. ].isLook
  12549. ) {
  12550. this.$message.error("上一任务未解锁");
  12551. return;
  12552. }
  12553. }
  12554. }
  12555. }
  12556. this.courseType = s;
  12557. this.navId = i;
  12558. this.taskCount = n;
  12559. if (this.IsLookOpen) {
  12560. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12561. this.taskCount
  12562. ].isLook = true;
  12563. this.addCourseState(3);
  12564. }
  12565. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  12566. this.isCloseList[ci].isClose = 0;
  12567. }
  12568. this.showType = 0;
  12569. this.isNoHomeWork = false;
  12570. (this.studyJuri = [
  12571. {
  12572. content: "",
  12573. cover: [],
  12574. upVedio: [],
  12575. upFile: [],
  12576. },
  12577. ]),
  12578. (this.radio = []);
  12579. document.scrollingElement.scrollTop = 0;
  12580. // setTimeout(() => {
  12581. // let a = document.getElementById(i);
  12582. // if (a.offsetTop - 110 == 0) {
  12583. // window.scrollTo(0, 0);
  12584. // } else {
  12585. // window.scrollTo(0, a.offsetTop);
  12586. // }
  12587. // }, 0);
  12588. this.selectPz();
  12589. this.getHomeWork();
  12590. this.getCourseDetail(2);
  12591. },
  12592. get(i) {
  12593. if (this.IsFollow && this.tType == 2) {
  12594. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  12595. return;
  12596. }
  12597. this.navList[i].isOpen = !this.navList[i].isOpen;
  12598. },
  12599. addQuestion() {
  12600. this.answerList.push({
  12601. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  12602. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  12603. });
  12604. let params = [
  12605. {
  12606. uid: this.userid,
  12607. cid: this.id,
  12608. stage: this.courseType,
  12609. task: this.taskCount,
  12610. tool: this.toolindex,
  12611. content: JSON.stringify(this.answerList),
  12612. type: 3,
  12613. },
  12614. ];
  12615. this.ajax
  12616. .post(this.$store.state.api + "addCourseWorks", params)
  12617. .then((res) => {
  12618. this.$message({
  12619. message: "提交成功",
  12620. type: "success",
  12621. });
  12622. this.answerList = [];
  12623. this.answerDialogVisible = false;
  12624. this.selectStudent();
  12625. this.selectSWorks();
  12626. this.selectSLook();
  12627. })
  12628. .catch((err) => {
  12629. this.$message.error("提交失败");
  12630. console.error(err);
  12631. });
  12632. },
  12633. addQuestionTeacher() {
  12634. this.answerList.push({
  12635. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  12636. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  12637. });
  12638. let params = [
  12639. {
  12640. uid: this.sStudent.userid,
  12641. cid: this.id,
  12642. stage: this.courseType,
  12643. task: this.taskCount,
  12644. tool: this.toolindex,
  12645. content: JSON.stringify(this.answerList),
  12646. type: 3,
  12647. ateacher: this.userid,
  12648. },
  12649. ];
  12650. this.ajax
  12651. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12652. .then((res) => {
  12653. this.$message({
  12654. message: "提交成功",
  12655. type: "success",
  12656. });
  12657. this.answerList = [];
  12658. this.questionAnswer = "";
  12659. this.answerDialogVisibleTeacher = false;
  12660. this.selectStudent();
  12661. this.selectSWorks();
  12662. this.selectSLook();
  12663. })
  12664. .catch((err) => {
  12665. this.$message.error("提交失败");
  12666. console.error(err);
  12667. });
  12668. },
  12669. getCourseDetail(type, gindex) {
  12670. let loading;
  12671. if (type != 2) {
  12672. loading = this.$loading.service({
  12673. background: "rgba(255, 255, 255, 0.7)",
  12674. target: document.querySelector(".student_table"),
  12675. });
  12676. }
  12677. // this.navList[0].isOpen = false;
  12678. // this.navList[this.courseType].isOpen = true;
  12679. // this.courseType = this.courseTypeLine;
  12680. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  12681. let params = {
  12682. courseId: this.id,
  12683. };
  12684. this.ajax
  12685. .get(this.$store.state.api + "selectCourseDetail3", params)
  12686. .then((res) => {
  12687. if (type != 2) {
  12688. loading.close();
  12689. if (
  12690. this.courseType >
  12691. JSON.parse(res.data[0][0].chapters).length - 1
  12692. ) {
  12693. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  12694. }
  12695. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  12696. .chapterInfo[0].taskJson;
  12697. var b = [
  12698. "AVI",
  12699. "NAVI",
  12700. "MPEG",
  12701. "ASF",
  12702. "MOV",
  12703. "WMV",
  12704. "3GP",
  12705. "RM",
  12706. "RMVB",
  12707. "FLV",
  12708. "F4V",
  12709. "H.264",
  12710. "H.265",
  12711. "REAL VIDEO",
  12712. "MKV",
  12713. "WebM",
  12714. "HDDVD",
  12715. "MP4",
  12716. "MPG",
  12717. "M4V",
  12718. "MGV",
  12719. "OGV",
  12720. "QTM",
  12721. "STR",
  12722. "AMC",
  12723. "DVX",
  12724. "EVO",
  12725. "DAT",
  12726. "OGG",
  12727. "OGM",
  12728. "MP3",
  12729. ];
  12730. for (var i = 0; i < a.length; i++) {
  12731. var c = a[i].chapterData;
  12732. this.vedio[i] = [];
  12733. this.textList[i] = [];
  12734. this.lineList[i] = [];
  12735. this.chapToolList[i] = [];
  12736. this.file[i] = [];
  12737. this.fileC[i] = [];
  12738. for (var j = 0; j < c.length; j++) {
  12739. if (c[j].type == 7) {
  12740. this.chapToolList[i].push(c[j]);
  12741. } else if (c[j].type == 8) {
  12742. this.lineList[i].push(c[j]);
  12743. } else if (c[j].type == 6) {
  12744. this.textList[i].push(c[j]);
  12745. } else if (c[j].type == 12) {
  12746. this.fileC[i].push(c[j]);
  12747. } else {
  12748. if (
  12749. b.indexOf(
  12750. c[j].url
  12751. .split(".")
  12752. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  12753. ) != -1
  12754. ) {
  12755. this.vedio[i].push(c[j]);
  12756. } else {
  12757. this.file[i].push(c[j]);
  12758. }
  12759. }
  12760. }
  12761. var d = JSON.parse(JSON.stringify(this.playerOptions));
  12762. d.sources[0].src =
  12763. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  12764. this.playerO[i] = d;
  12765. }
  12766. this.courseDetail = res.data[0][0];
  12767. this.tcid = this.arrayToArray(
  12768. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  12769. this.tcid2 ? this.tcid2.split(",") : []
  12770. ).join(",");
  12771. console.log(this.tcid);
  12772. this.evalua = res.data[0][0].evaId;
  12773. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  12774. this.courseType
  12775. ];
  12776. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  12777. if (this.tcid && res.data[1].length) {
  12778. let _inviteA = [];
  12779. for (var ik = 0; ik < res.data[1].length; ik++) {
  12780. _inviteA.push({
  12781. cid: res.data[1][ik].classid,
  12782. ic: res.data[1][ik].code,
  12783. });
  12784. }
  12785. for (var ik = 0; ik < _inviteA.length; ik++) {
  12786. if (
  12787. this.arrayToArray(
  12788. _inviteA[ik].cid.split(","),
  12789. this.tcid.split(",")
  12790. ).length
  12791. ) {
  12792. this.inviteCode = _inviteA[ik].ic;
  12793. break;
  12794. }
  12795. }
  12796. }
  12797. for (var l = 0; l < this.chapInfoList.length; l++) {
  12798. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  12799. for (var m = 0; m < w.length; m++) {
  12800. w[m].id = l + "-" + m;
  12801. }
  12802. }
  12803. if (
  12804. !this.vedio[this.taskCount][0] ||
  12805. this.vedio[this.taskCount][0].url == ""
  12806. ) {
  12807. if (
  12808. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12809. this.taskCount
  12810. ].chapterData.length > 0
  12811. ) {
  12812. // if (
  12813. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12814. // this.taskCount
  12815. // ].chapterData[0].type != 8
  12816. // ) {
  12817. let _url =
  12818. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12819. this.taskCount
  12820. ].chapterData[0].url;
  12821. if (
  12822. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12823. this.taskCount
  12824. ].chapterData[0].type == 8
  12825. ) {
  12826. this.showType = 2;
  12827. if (
  12828. _url.indexOf("https://") == -1 &&
  12829. _url.indexOf("http://") == -1
  12830. ) {
  12831. _url = "https://" + _url;
  12832. }
  12833. this.pptImgUrl1 = _url;
  12834. this.isClickNav = "line0";
  12835. } else if (
  12836. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12837. this.taskCount
  12838. ].chapterData[0].type == 3
  12839. ) {
  12840. if (
  12841. _url
  12842. .split(".")
  12843. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12844. ) {
  12845. this.showType = 3;
  12846. this.pptImgUrl1 = _url;
  12847. this.isClickNav = "word0";
  12848. } else if (
  12849. this.isAssetTypeAnImage(
  12850. _url
  12851. .split(".")
  12852. [_url.split(".").length - 1].toLocaleLowerCase()
  12853. )
  12854. ) {
  12855. this.showType = 4;
  12856. this.pptImgUrl1 = _url;
  12857. this.isClickNav = "word0";
  12858. } else {
  12859. this.showType = 2;
  12860. this.pptImgUrl1 =
  12861. "https://view.officeapps.live.com/op/view.aspx?src=" +
  12862. _url;
  12863. this.isClickNav = "word0";
  12864. }
  12865. } else if (
  12866. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12867. this.taskCount
  12868. ].chapterData[0].type == 6
  12869. ) {
  12870. this.showType = 1;
  12871. this.text = this.textList[this.taskCount][0];
  12872. this.isClickNav = "text0";
  12873. }
  12874. }
  12875. } else {
  12876. this.showType = 0;
  12877. this.isClickNav = "video0";
  12878. }
  12879. } else {
  12880. this.showType = 0;
  12881. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  12882. .chapterInfo[0].taskJson;
  12883. var b = [
  12884. "AVI",
  12885. "NAVI",
  12886. "MPEG",
  12887. "ASF",
  12888. "MOV",
  12889. "WMV",
  12890. "3GP",
  12891. "RM",
  12892. "RMVB",
  12893. "FLV",
  12894. "F4V",
  12895. "H.264",
  12896. "H.265",
  12897. "REAL VIDEO",
  12898. "MKV",
  12899. "WebM",
  12900. "HDDVD",
  12901. "MP4",
  12902. "MPG",
  12903. "M4V",
  12904. "MGV",
  12905. "OGV",
  12906. "QTM",
  12907. "STR",
  12908. "AMC",
  12909. "DVX",
  12910. "EVO",
  12911. "DAT",
  12912. "OGG",
  12913. "OGM",
  12914. "MP3",
  12915. ];
  12916. for (var i = 0; i < a.length; i++) {
  12917. var c = a[i].chapterData;
  12918. this.vedio[i] = [];
  12919. this.textList[i] = [];
  12920. this.lineList[i] = [];
  12921. this.chapToolList[i] = [];
  12922. this.file[i] = [];
  12923. this.fileC[i] = [];
  12924. for (var j = 0; j < c.length; j++) {
  12925. if (c[j].type == 7) {
  12926. this.chapToolList[i].push(c[j]);
  12927. } else if (c[j].type == 8) {
  12928. this.lineList[i].push(c[j]);
  12929. } else if (c[j].type == 6) {
  12930. this.textList[i].push(c[j]);
  12931. } else if (c[j].type == 12) {
  12932. this.fileC[i].push(c[j]);
  12933. } else {
  12934. if (
  12935. b.indexOf(
  12936. c[j].url
  12937. .split(".")
  12938. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  12939. ) != -1
  12940. ) {
  12941. this.vedio[i].push(c[j]);
  12942. } else {
  12943. this.file[i].push(c[j]);
  12944. }
  12945. }
  12946. }
  12947. var d = JSON.parse(JSON.stringify(this.playerOptions));
  12948. d.sources[0].src =
  12949. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  12950. this.playerO[i] = d;
  12951. }
  12952. if (
  12953. !this.vedio[this.taskCount][0] ||
  12954. this.vedio[this.taskCount][0].url == ""
  12955. ) {
  12956. if (
  12957. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12958. this.taskCount
  12959. ].chapterData.length > 0
  12960. ) {
  12961. // if (
  12962. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12963. // this.taskCount
  12964. // ].chapterData[0].type != 8
  12965. // ) {
  12966. let _url =
  12967. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12968. this.taskCount
  12969. ].chapterData[0].url;
  12970. if (
  12971. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12972. this.taskCount
  12973. ].chapterData[0].type == 8
  12974. ) {
  12975. this.showType = 2;
  12976. if (
  12977. _url.indexOf("https://") == -1 &&
  12978. _url.indexOf("http://") == -1
  12979. ) {
  12980. _url = "https://" + _url;
  12981. }
  12982. this.pptImgUrl1 = _url;
  12983. this.isClickNav = "line0";
  12984. } else if (
  12985. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12986. this.taskCount
  12987. ].chapterData[0].type == 3
  12988. ) {
  12989. if (
  12990. _url
  12991. .split(".")
  12992. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12993. ) {
  12994. this.showType = 3;
  12995. this.pptImgUrl1 = _url;
  12996. this.isClickNav = "word0";
  12997. } else if (
  12998. this.isAssetTypeAnImage(
  12999. _url
  13000. .split(".")
  13001. [_url.split(".").length - 1].toLocaleLowerCase()
  13002. )
  13003. ) {
  13004. this.showType = 4;
  13005. this.pptImgUrl1 = _url;
  13006. this.isClickNav = "word0";
  13007. } else {
  13008. this.showType = 2;
  13009. this.pptImgUrl1 =
  13010. "https://view.officeapps.live.com/op/view.aspx?src=" +
  13011. _url;
  13012. this.isClickNav = "word0";
  13013. }
  13014. } else if (
  13015. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13016. this.taskCount
  13017. ].chapterData[0].type == 6
  13018. ) {
  13019. this.showType = 1;
  13020. this.text = this.textList[this.taskCount][0];
  13021. this.isClickNav = "text0";
  13022. }
  13023. }
  13024. } else {
  13025. this.showType = 0;
  13026. this.isClickNav = "video0";
  13027. }
  13028. this.$forceUpdate();
  13029. }
  13030. // else {
  13031. // this.courseDetail = res.data[0][0];
  13032. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  13033. // }
  13034. let _this = this;
  13035. if (_this.timer) {
  13036. clearInterval(_this.timer);
  13037. _this.timer = null;
  13038. }
  13039. if (_this.tcid) {
  13040. _this.getCourseGroup(gindex);
  13041. } else {
  13042. _this.selectSWorks(gindex);
  13043. }
  13044. _this.selectStudent();
  13045. _this.selectSLook();
  13046. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  13047. _this.setCTask();
  13048. }
  13049. if (_this.dialogVisibleGroup) {
  13050. _this.groupJson =
  13051. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  13052. _this.taskCount
  13053. ].toolChoose[_this.toolindex].groupJson;
  13054. }
  13055. _this.$nextTick(() => {
  13056. setTimeout(() => {
  13057. _this.checkEva();
  13058. }, 1000);
  13059. });
  13060. _this.timer = setInterval(function () {
  13061. // _this.getCourseDetail(2);
  13062. if (_this.tcid) {
  13063. _this.getCourseGroup(gindex);
  13064. } else {
  13065. _this.selectSWorks(gindex);
  13066. }
  13067. _this.selectStudent();
  13068. _this.selectSLook();
  13069. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  13070. _this.setCTask();
  13071. }
  13072. if (_this.dialogVisibleGroup) {
  13073. _this.groupJson =
  13074. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  13075. _this.taskCount
  13076. ].toolChoose[_this.toolindex].groupJson;
  13077. }
  13078. if (_this.tType == 4) {
  13079. _this.selectPz();
  13080. }
  13081. }, 5000);
  13082. _this.$nextTick(function () {
  13083. setTimeout(() => {
  13084. // var a =
  13085. // document.getElementsByClassName("box_course")[0].offsetHeight;
  13086. // document.getElementsByClassName("vedioList")[0].style.height =
  13087. // a + "px";
  13088. // document.getElementsByClassName("navBox")[0].style.height =
  13089. // a - 40 + "px";
  13090. // if (_this.vedio[_this.taskCount].length > 0) {
  13091. // _this.vedioTime = [];
  13092. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  13093. // _this.vedioTime[i] = document.getElementsByClassName(
  13094. // "vjs-duration-display"
  13095. // )[i].textContent;
  13096. // }
  13097. // }
  13098. }, 1000);
  13099. });
  13100. })
  13101. .catch((err) => {
  13102. loading.close();
  13103. console.error(err);
  13104. });
  13105. },
  13106. getCourseGroup(gindex) {
  13107. let params = {
  13108. cid: this.id,
  13109. classid: this.tcid ? this.tcid : "1",
  13110. };
  13111. this.ajax
  13112. .get(this.$store.state.api + "getCourseGroup", params)
  13113. .then((res) => {
  13114. if (res.data && res.data[0].length) {
  13115. if (!this.isGroup) {
  13116. let courseGroup = JSON.parse(res.data[0][0].group);
  13117. courseGroup.group = courseGroup.group.filter((el) => {
  13118. el.works = [];
  13119. return el;
  13120. });
  13121. this.courseGroup = courseGroup;
  13122. let groupPerson = res.data[1];
  13123. let group = JSON.parse(res.data[0][0].group).group;
  13124. let courseGroupStudent = {};
  13125. let courseGroupStudentUid = {};
  13126. for (var i = 0; i < group.length; i++) {
  13127. courseGroupStudent[group[i].id] = [];
  13128. courseGroupStudentUid[group[i].id] = [];
  13129. for (var j = 0; j < groupPerson.length; j++) {
  13130. if (groupPerson[j].groupCid == group[i].id) {
  13131. courseGroupStudent[group[i].id].push(groupPerson[j]);
  13132. courseGroupStudentUid[group[i].id].push(
  13133. groupPerson[j].userid
  13134. );
  13135. }
  13136. }
  13137. }
  13138. this.courseGroupStudent = courseGroupStudent;
  13139. this.courseGroupStudentUid = courseGroupStudentUid;
  13140. }
  13141. this.isGroup = true;
  13142. this.selectSWorks(gindex);
  13143. } else {
  13144. this.selectSWorks(gindex);
  13145. this.isGroup = false;
  13146. }
  13147. })
  13148. .catch((err) => {
  13149. // this.$message.error("网络不佳");
  13150. console.error(err);
  13151. });
  13152. },
  13153. setOperationTime() {
  13154. let _this = this;
  13155. if (_this.opertimer) {
  13156. clearInterval(_this.opertimer);
  13157. _this.opertimer = null;
  13158. }
  13159. _this.opertimer = setInterval(() => {
  13160. _this.setoTime("600");
  13161. }, 600000);
  13162. },
  13163. setoTime(time) {
  13164. let params = [
  13165. {
  13166. uid: this.userid,
  13167. cid: this.id,
  13168. type: "2",
  13169. time: time,
  13170. },
  13171. ];
  13172. this.ajax
  13173. .post(this.$store.state.api + "addOperationTimeT2", params)
  13174. .then((res) => {})
  13175. .catch((err) => {
  13176. console.error(err);
  13177. });
  13178. },
  13179. addPz(type, content) {
  13180. if (type == "1" && this.pzConText == "") {
  13181. this.$message.error("批注不能为空!");
  13182. return;
  13183. }
  13184. let params = [
  13185. {
  13186. cid: this.id,
  13187. uid: this.userid,
  13188. s: this.courseType,
  13189. t: this.taskCount,
  13190. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  13191. type: type,
  13192. },
  13193. ];
  13194. this.ajax
  13195. .post(this.$store.state.api + "addPz2", params)
  13196. .then((res) => {
  13197. this.$message({
  13198. message: "添加成功",
  13199. type: "success",
  13200. });
  13201. this.pzConText = "";
  13202. this.addPzDialog = false;
  13203. this.selectPz();
  13204. })
  13205. .catch((err) => {
  13206. this.$message.error("添加失败");
  13207. console.error(err);
  13208. });
  13209. },
  13210. deletePz(id) {
  13211. this.$confirm("确定删除此批注吗?", "提示", {
  13212. confirmButtonText: "确定",
  13213. cancelButtonText: "取消",
  13214. type: "warning",
  13215. })
  13216. .then(() => {
  13217. let params = [
  13218. {
  13219. id: id,
  13220. },
  13221. ];
  13222. this.ajax
  13223. .post(this.$store.state.api + "deletePz", params)
  13224. .then((res) => {
  13225. this.$message({
  13226. message: "删除成功",
  13227. type: "success",
  13228. });
  13229. this.selectPz();
  13230. })
  13231. .catch((err) => {
  13232. this.$message.error("网络异常");
  13233. console.error(err);
  13234. });
  13235. })
  13236. .catch(() => {});
  13237. },
  13238. selectPz() {
  13239. let params = {
  13240. cid: this.id,
  13241. s: this.courseType,
  13242. t: this.taskCount,
  13243. };
  13244. this.ajax
  13245. .get(this.$store.state.api + "selectPzList", params)
  13246. .then((res) => {
  13247. this.pzList = res.data[0];
  13248. })
  13249. .catch((err) => {
  13250. console.error(err);
  13251. });
  13252. },
  13253. updateSLook() {
  13254. let params = {
  13255. sopen: this.sIsOpen == false ? 1 : 2,
  13256. cid: this.id,
  13257. };
  13258. this.ajax
  13259. .get(this.$store.state.api + "updateCourseSLook", params)
  13260. .then((res) => {
  13261. if (this.sIsOpen == true) {
  13262. this.$message({
  13263. message: "权限设置成功",
  13264. type: "success",
  13265. });
  13266. } else {
  13267. this.$message({
  13268. message: "权限关闭成功",
  13269. type: "success",
  13270. });
  13271. }
  13272. })
  13273. .catch((err) => {
  13274. console.error(err);
  13275. });
  13276. },
  13277. updateFollow() {
  13278. let params = [
  13279. {
  13280. sopen: this.IsFollow == false ? 1 : 2,
  13281. cid: this.id,
  13282. },
  13283. ];
  13284. this.ajax
  13285. .post(this.$store.state.api + "updateCourseFollow", params)
  13286. .then((res) => {
  13287. if (this.IsFollow == true) {
  13288. this.$message({
  13289. message: "开启成功",
  13290. type: "success",
  13291. });
  13292. } else {
  13293. this.$message({
  13294. message: "关闭成功",
  13295. type: "success",
  13296. });
  13297. }
  13298. this.setCTask();
  13299. })
  13300. .catch((err) => {
  13301. console.error(err);
  13302. });
  13303. },
  13304. setCTask() {
  13305. let params = [
  13306. {
  13307. sopen: this.courseType + "-" + this.taskCount,
  13308. cid: this.id,
  13309. },
  13310. ];
  13311. this.ajax
  13312. .post(this.$store.state.api + "updateCourseFollowC", params)
  13313. .then((res) => {})
  13314. .catch((err) => {
  13315. console.error(err);
  13316. });
  13317. },
  13318. updateLookOpen() {
  13319. let params = [
  13320. {
  13321. sopen: this.IsLookOpen == false ? 1 : 2,
  13322. cid: this.id,
  13323. },
  13324. ];
  13325. this.ajax
  13326. .post(this.$store.state.api + "updateCourseLookOpen", params)
  13327. .then((res) => {
  13328. if (this.IsLookOpen == true) {
  13329. // if (this.courseType != 0 && this.taskCount != 0) {
  13330. // this.openTask(0, 0, "0-0");
  13331. // }
  13332. this.$message({
  13333. message: "权限设置成功",
  13334. type: "success",
  13335. });
  13336. } else {
  13337. this.$message({
  13338. message: "权限关闭成功",
  13339. type: "success",
  13340. });
  13341. }
  13342. this.getCourseState(2);
  13343. })
  13344. .catch((err) => {
  13345. console.error(err);
  13346. });
  13347. },
  13348. selectSLook() {
  13349. let params = {
  13350. cid: this.id,
  13351. };
  13352. this.ajax
  13353. .get(this.$store.state.api + "selectCourseSLook", params)
  13354. .then((res) => {
  13355. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  13356. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  13357. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  13358. if (!this.IsLookOpen) {
  13359. this.setNavList();
  13360. } else {
  13361. this.getCourseState(1);
  13362. }
  13363. if (this.IsFollow && this.tType == 2) {
  13364. this.setContent2(false);
  13365. let _followC = res.data[0][0].followC.split("-");
  13366. if (
  13367. this.courseType != _followC[0] ||
  13368. this.taskCount != _followC[1]
  13369. ) {
  13370. this.navList[this.courseType].isOpen = false;
  13371. this.courseType = _followC[0];
  13372. this.navList[this.courseType].isOpen = true;
  13373. this.taskCount = parseInt(_followC[1]);
  13374. this.navId = res.data[0][0].followC;
  13375. document.scrollingElement.scrollTop = 0;
  13376. this.getCourseDetail(2);
  13377. }
  13378. }
  13379. })
  13380. .catch((err) => {
  13381. console.error(err);
  13382. });
  13383. },
  13384. setNavList() {
  13385. if (this.navList.length == 0) {
  13386. this.navList = [];
  13387. for (var l = 0; l < this.chapInfoList.length; l++) {
  13388. var q = this.chapInfoList[l].dyName;
  13389. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  13390. var e;
  13391. this.navList.push({
  13392. dyName: q,
  13393. isOpen: l === 0 ? true : false,
  13394. task: [],
  13395. });
  13396. for (var r = 0; r < w.length; r++) {
  13397. e = w[r].task;
  13398. if (this.chapInfoList[l].easy == 1) {
  13399. this.navList[l].task.push({
  13400. taskName: q,
  13401. id: l + "-" + r,
  13402. isLook: w[r].isLook,
  13403. });
  13404. } else {
  13405. this.navList[l].task.push({
  13406. taskName: e,
  13407. id: l + "-" + r,
  13408. isLook: w[r].isLook,
  13409. });
  13410. }
  13411. // this.navId = this.navId ? this.navId : l + "-" + r;
  13412. // this.navId = l + "-" + r;
  13413. }
  13414. }
  13415. this.navList[0].isOpen = false;
  13416. this.navList[this.courseType].isOpen = true;
  13417. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  13418. } else {
  13419. this.setNavList2();
  13420. }
  13421. },
  13422. setNavList2() {
  13423. for (var l = 0; l < this.chapInfoList.length; l++) {
  13424. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  13425. for (var r = 0; r < w.length; r++) {
  13426. this.navList[l].task[r].isLook = w[r].isLook;
  13427. }
  13428. }
  13429. if (
  13430. this.IsLookOpen &&
  13431. !this.navList[this.courseType].task[this.taskCount].isLook
  13432. ) {
  13433. this.openTask(0, 0, "0-0");
  13434. }
  13435. this.$forceUpdate();
  13436. },
  13437. getCourseState(type) {
  13438. let params = {
  13439. cid: this.id,
  13440. };
  13441. this.ajax
  13442. .get(this.$store.state.api + "getCourseState", params)
  13443. .then((res) => {
  13444. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  13445. this.chapInfoList = JSON.parse(res.data[0][0].state);
  13446. this.setNavList();
  13447. this.$forceUpdate();
  13448. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  13449. this.addCourseState(2);
  13450. } else {
  13451. this.addCourseState(1);
  13452. }
  13453. })
  13454. .catch((err) => {
  13455. console.error(err);
  13456. });
  13457. },
  13458. addCourseState(type) {
  13459. let _state = this.chapInfoList;
  13460. // this.courseType this.taskCount
  13461. if (type == 1 || type == 2) {
  13462. for (var i = 0; i < _state.length; i++) {
  13463. let el = _state[i].chapterInfo[0].taskJson;
  13464. for (var j = 0; j < el.length; j++) {
  13465. // if (i == 0 && j == 0) {
  13466. // el[j].isLook = true;
  13467. // } else {
  13468. // el[j].isLook = false;
  13469. // }
  13470. if (
  13471. this.courseType > i ||
  13472. (this.courseType == i && this.taskCount + 1 > j)
  13473. ) {
  13474. el[j].isLook = true;
  13475. } else {
  13476. el[j].isLook = false;
  13477. }
  13478. }
  13479. }
  13480. }
  13481. let params = [
  13482. {
  13483. cid: this.id,
  13484. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  13485. },
  13486. ];
  13487. this.ajax
  13488. .post(
  13489. this.$store.state.api +
  13490. (type == 1 ? "addCourseState" : "updateCourseSate"),
  13491. params
  13492. )
  13493. .then((res) => {
  13494. if (this.IsLookOpen) {
  13495. this.setNavList();
  13496. }
  13497. if (type == 3 && type == 2) {
  13498. this.getCourseState(1);
  13499. }
  13500. })
  13501. .catch((err) => {
  13502. console.error(err);
  13503. });
  13504. },
  13505. getHomeWork() {
  13506. let params = {
  13507. cid: this.id,
  13508. stage: this.courseType,
  13509. task: this.taskCount,
  13510. uid: this.userid,
  13511. };
  13512. this.ajax
  13513. .get(this.$store.state.api + "selectWork", params)
  13514. .then((res) => {
  13515. if (res.data[0].length > 0) {
  13516. this.studyJuri = JSON.parse(res.data[0][0].content);
  13517. this.isNoHomeWork = true;
  13518. }
  13519. })
  13520. .catch((err) => {
  13521. console.error(err);
  13522. });
  13523. },
  13524. isAssetTypeAnImage(ext) {
  13525. return (
  13526. [
  13527. "png",
  13528. "jpg",
  13529. "jpeg",
  13530. "bmp",
  13531. "gif",
  13532. "webp",
  13533. "psd",
  13534. "svg",
  13535. "tiff",
  13536. ].indexOf(ext) !== -1
  13537. );
  13538. },
  13539. switchVideo(media) {
  13540. this.playerO = {};
  13541. this.playerOptions.poster = "";
  13542. this.playerOptions.sources[0].src = media;
  13543. this.playerO = this.playerOptions;
  13544. },
  13545. onPlayerPlay() {},
  13546. lookVedio(u, i) {
  13547. this.isClickNav = "";
  13548. // this.playerOptions.sources[0].src = u;
  13549. var d = JSON.parse(JSON.stringify(this.playerOptions));
  13550. d.sources[0].src = u;
  13551. this.playerO[this.taskCount] = d;
  13552. this.showType = 0;
  13553. this.isClickNav = "video" + i;
  13554. this.$forceUpdate();
  13555. },
  13556. lookText(i, t) {
  13557. this.isClickNav = "";
  13558. this.text = this.textList[i][t];
  13559. // this.dialogVisible1 = true;
  13560. this.showType = 1;
  13561. this.isClickNav = "text" + t;
  13562. },
  13563. lookTools(i, t) {
  13564. this.chapTools = this.chapToolList[i][t];
  13565. this.dialogVisible2 = true;
  13566. },
  13567. openFile(f) {
  13568. this.pptImgUrl = "";
  13569. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13570. if (
  13571. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  13572. -1
  13573. ) {
  13574. this.pptImgUrl =
  13575. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  13576. this.showPDF = false;
  13577. this.dialogVisible3 = true;
  13578. } else if (
  13579. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13580. ) {
  13581. this.pptImgUrl = f;
  13582. this.showPDF = true;
  13583. this.dialogVisible3 = true;
  13584. }
  13585. },
  13586. openTable(f) {
  13587. this.tableJson = JSON.parse(f.works);
  13588. this.dialogVisibleTable2 = true;
  13589. },
  13590. doUrl(url, i) {
  13591. this.isClickNav = "";
  13592. this.pptImgUrl1 = "";
  13593. this.showType = 2;
  13594. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  13595. url = "https://" + url;
  13596. }
  13597. this.pptImgUrl1 = ""
  13598. setTimeout(() => {
  13599. this.pptImgUrl1 = url;
  13600. }, 500);
  13601. this.isClickNav = "line" + i;
  13602. this.$forceUpdate();
  13603. },
  13604. downFile(f, i) {
  13605. this.isClickNav = "";
  13606. this.pptImgUrl1 = "";
  13607. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  13608. if (
  13609. a.indexOf(
  13610. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  13611. ) != -1
  13612. ) {
  13613. this.pptImgUrl1 =
  13614. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  13615. // this.dialogVisible3 = true;
  13616. this.showType = 2;
  13617. } else if (
  13618. this.isAssetTypeAnImage(
  13619. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  13620. )
  13621. ) {
  13622. this.showType = 4;
  13623. this.pptImgUrl1 = f.url;
  13624. } else if (
  13625. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  13626. "PDF"
  13627. ) {
  13628. this.pptImgUrl1 = f.url;
  13629. // this.dialogVisible3 = true;
  13630. this.showType = 3;
  13631. } else {
  13632. window.open(this.file[i].url);
  13633. }
  13634. this.isClickNav = "word" + i;
  13635. },
  13636. downFileList(i) {
  13637. window.open(this.noImgList[i].url);
  13638. },
  13639. openAddWork() {
  13640. this.dialogVisible = true;
  13641. },
  13642. addBzWorks() {
  13643. let params = [
  13644. {
  13645. uid: this.userid,
  13646. cid: this.id,
  13647. stage: this.courseType,
  13648. task: this.taskCount,
  13649. tool: this.toolindex,
  13650. content: JSON.stringify(this.eScore),
  13651. type: 6,
  13652. },
  13653. ];
  13654. this.ajax
  13655. .post(this.$store.state.api + "addCourseWorks", params)
  13656. .then((res) => {
  13657. this.$message({
  13658. message: "提交成功",
  13659. type: "success",
  13660. });
  13661. this.eScore = { eBzText: "", eStar: [] };
  13662. this.studentEvalDialogVisible = false;
  13663. this.selectSWorks();
  13664. })
  13665. .catch((err) => {
  13666. this.$message.error("提交失败");
  13667. console.error(err);
  13668. });
  13669. },
  13670. addBzWorksTeacher() {
  13671. let params = [
  13672. {
  13673. uid: this.sStudent.userid,
  13674. cid: this.id,
  13675. stage: this.courseType,
  13676. task: this.taskCount,
  13677. tool: this.toolindex,
  13678. content: JSON.stringify(this.eScore),
  13679. type: 6,
  13680. },
  13681. ];
  13682. this.ajax
  13683. .post(this.$store.state.api + "addCourseWorks", params)
  13684. .then((res) => {
  13685. this.$message({
  13686. message: "提交成功",
  13687. type: "success",
  13688. });
  13689. this.eScore = { eBzText: "", eStar: [] };
  13690. this.studentEvalDialogVisibleTeacher = false;
  13691. this.selectSWorks();
  13692. })
  13693. .catch((err) => {
  13694. this.$message.error("提交失败");
  13695. console.error(err);
  13696. });
  13697. },
  13698. addStudentAsk() {
  13699. if (!this.radio.length) {
  13700. this.$message.error("请选择选项");
  13701. return;
  13702. }
  13703. for (var i = 0; i < this.askJson.askCount; i++) {
  13704. if (
  13705. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13706. (this.radio[i] !== 0 && !this.radio[i])
  13707. ) {
  13708. this.$message.error("请选择选项");
  13709. return;
  13710. }
  13711. }
  13712. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  13713. let params = [
  13714. {
  13715. uid: this.userid,
  13716. cid: this.id,
  13717. stage: this.courseType,
  13718. task: this.taskCount,
  13719. tool: this.toolindex,
  13720. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13721. type: 2,
  13722. },
  13723. ];
  13724. this.ajax
  13725. .post(this.$store.state.api + "addCourseWorks", params)
  13726. .then((res) => {
  13727. this.$message({
  13728. message: "提交成功",
  13729. type: "success",
  13730. });
  13731. this.askList = [];
  13732. this.dialogVisible5 = false;
  13733. this.selectStudent();
  13734. this.selectSWorks();
  13735. this.selectSLook();
  13736. })
  13737. .catch((err) => {
  13738. this.$message.error("提交失败");
  13739. console.error(err);
  13740. });
  13741. },
  13742. addStudentAskTeacher() {
  13743. if (!this.radio.length) {
  13744. this.$message.error("请选择选项");
  13745. return;
  13746. }
  13747. for (var i = 0; i < this.askJson.askCount; i++) {
  13748. if (
  13749. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13750. (this.radio[i] !== 0 && !this.radio[i])
  13751. ) {
  13752. this.$message.error("请选择选项");
  13753. return;
  13754. }
  13755. }
  13756. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  13757. let params = [
  13758. {
  13759. uid: this.sStudent.userid,
  13760. cid: this.id,
  13761. stage: this.courseType,
  13762. task: this.taskCount,
  13763. tool: this.toolindex,
  13764. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13765. type: 2,
  13766. },
  13767. ];
  13768. this.ajax
  13769. .post(this.$store.state.api + "addCourseWorks", params)
  13770. .then((res) => {
  13771. this.$message({
  13772. message: "提交成功",
  13773. type: "success",
  13774. });
  13775. this.askList = [];
  13776. this.dialogVisible5Teacher = false;
  13777. this.selectStudent();
  13778. this.selectSWorks();
  13779. this.selectSLook();
  13780. })
  13781. .catch((err) => {
  13782. this.$message.error("提交失败");
  13783. console.error(err);
  13784. });
  13785. },
  13786. addStudentTest() {
  13787. if (!this.radio.length) {
  13788. this.$message.error("请选择选项");
  13789. return;
  13790. }
  13791. for (var i = 0; i < this.testJson.testCount; i++) {
  13792. if (
  13793. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13794. (this.radio[i] !== 0 && !this.radio[i])
  13795. ) {
  13796. this.$message.error("请选择选项");
  13797. return;
  13798. }
  13799. }
  13800. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  13801. let params = [
  13802. {
  13803. uid: this.userid,
  13804. cid: this.id,
  13805. stage: this.courseType,
  13806. task: this.taskCount,
  13807. tool: this.toolindex,
  13808. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13809. type: 8,
  13810. },
  13811. ];
  13812. this.ajax
  13813. .post(this.$store.state.api + "addCourseWorks", params)
  13814. .then((res) => {
  13815. this.$message({
  13816. message: "提交成功",
  13817. type: "success",
  13818. });
  13819. this.askList = [];
  13820. this.dialogVisibleChoice = false;
  13821. this.selectStudent();
  13822. this.selectSWorks();
  13823. this.selectSLook();
  13824. })
  13825. .catch((err) => {
  13826. this.$message.error("提交失败");
  13827. console.error(err);
  13828. });
  13829. },
  13830. addStudentTestTeacher() {
  13831. if (!this.radio.length) {
  13832. this.$message.error("请选择选项");
  13833. return;
  13834. }
  13835. for (var i = 0; i < this.testJson.testCount; i++) {
  13836. if (
  13837. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13838. (this.radio[i] !== 0 && !this.radio[i])
  13839. ) {
  13840. this.$message.error("请选择选项");
  13841. return;
  13842. }
  13843. }
  13844. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  13845. let params = [
  13846. {
  13847. uid: this.sStudent.userid,
  13848. cid: this.id,
  13849. stage: this.courseType,
  13850. task: this.taskCount,
  13851. tool: this.toolindex,
  13852. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13853. type: 8,
  13854. },
  13855. ];
  13856. this.ajax
  13857. .post(this.$store.state.api + "addCourseWorks", params)
  13858. .then((res) => {
  13859. this.$message({
  13860. message: "提交成功",
  13861. type: "success",
  13862. });
  13863. this.askList = [];
  13864. this.dialogVisibleChoiceTeacher = false;
  13865. this.selectStudent();
  13866. this.selectSWorks();
  13867. this.selectSLook();
  13868. })
  13869. .catch((err) => {
  13870. this.$message.error("提交失败");
  13871. console.error(err);
  13872. });
  13873. },
  13874. addWork() {
  13875. if (this.studyJuri[0].content == "") {
  13876. this.$message.error("请将信息填写完整");
  13877. return;
  13878. } else if (this.studyJuri[0].cover.length == 0) {
  13879. this.$message.error("请将信息填写完整");
  13880. return;
  13881. } else if (this.studyJuri[0].upVedio.length == 0) {
  13882. this.$message.error("请将信息填写完整");
  13883. return;
  13884. }
  13885. if (this.isNoHomeWork) {
  13886. this.$confirm(
  13887. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  13888. "提示",
  13889. {
  13890. confirmButtonText: "确定",
  13891. cancelButtonText: "取消",
  13892. type: "warning",
  13893. }
  13894. )
  13895. .then(() => {
  13896. let params = [
  13897. {
  13898. uid: this.userid,
  13899. cid: this.id,
  13900. stage: this.courseType,
  13901. task: this.taskCount,
  13902. content: JSON.stringify(this.studyJuri),
  13903. },
  13904. ];
  13905. this.ajax
  13906. .post(this.$store.state.api + "addWorks", params)
  13907. .then((res) => {
  13908. this.$message({
  13909. message: "提交成功",
  13910. type: "success",
  13911. });
  13912. this.isNoHomeWork = true;
  13913. this.dialogVisible = false;
  13914. })
  13915. .catch((err) => {
  13916. this.$message.error("提交失败");
  13917. console.error(err);
  13918. });
  13919. })
  13920. .catch(() => {});
  13921. } else {
  13922. let params = [
  13923. {
  13924. uid: this.userid,
  13925. cid: this.id,
  13926. stage: this.courseType,
  13927. task: this.taskCount,
  13928. content: JSON.stringify(this.studyJuri),
  13929. },
  13930. ];
  13931. this.ajax
  13932. .post(this.$store.state.api + "addWorks", params)
  13933. .then((res) => {
  13934. this.$message({
  13935. message: "提交成功",
  13936. type: "success",
  13937. });
  13938. this.isNoHomeWork = true;
  13939. this.dialogVisible = false;
  13940. })
  13941. .catch((err) => {
  13942. this.$message.error("提交失败");
  13943. console.error(err);
  13944. });
  13945. }
  13946. },
  13947. selectCount() {
  13948. let params = {
  13949. cid: this.id,
  13950. chid: this.courseType,
  13951. uid: this.userid,
  13952. };
  13953. this.ajax
  13954. .get(this.$store.state.api + "selectToolsCount", params)
  13955. .then((res) => {
  13956. for (var i = 0; i < res.data[0].length; i++) {
  13957. if (res.data[0][i].tools == 1) {
  13958. this.wbCount = res.data[0][i].count;
  13959. } else if (res.data[0][i].tools == 2) {
  13960. this.wordCount = res.data[0][i].count;
  13961. } else if (res.data[0][i].tools == 3) {
  13962. this.mindCount = res.data[0][i].count;
  13963. } else if (res.data[0][i].tools == 4) {
  13964. this.askCount = res.data[0][i].count;
  13965. } else if (res.data[0][i].tools == 6) {
  13966. this.noteCount = res.data[0][i].count;
  13967. } else if (res.data[0][i].tools == 7) {
  13968. this.mindNetWorkCount = res.data[0][i].count;
  13969. } else if (res.data[0][i].tools == 8) {
  13970. this.libraryCount = res.data[0][i].count;
  13971. } else if (res.data[0][i].tools == 16) {
  13972. this.workCount = res.data[0][i].count;
  13973. } else if (res.data[0][i].tools == 10) {
  13974. this.timeCount = res.data[0][i].count;
  13975. } else if (res.data[0][i].tools == 15) {
  13976. this.answerCount = res.data[0][i].count;
  13977. } else if (res.data[0][i].tools == 18) {
  13978. this.trainCount = res.data[0][i].count;
  13979. }
  13980. }
  13981. })
  13982. .catch((err) => {
  13983. console.error(err);
  13984. });
  13985. },
  13986. openTools(t, i, index, c, sName) {
  13987. var z = JSON.parse(c);
  13988. this.noteName = sName;
  13989. if (t == 4) {
  13990. this.radio = [];
  13991. this.isAnswer = false;
  13992. let b = z[0].anwer;
  13993. this.radio = b;
  13994. this.askJson = z[0].askJson;
  13995. this.isAnswer = true;
  13996. this.dialogVisible5 = true;
  13997. } else if (t == 45) {
  13998. this.radio = [];
  13999. this.isAnswer = false;
  14000. let b = z[0].anwer;
  14001. this.radio = b;
  14002. this.testJson = z[0].testJson;
  14003. this.isAnswer = true;
  14004. this.dialogVisibleChoice = true;
  14005. }
  14006. // else if (t == 15) {
  14007. // this.answerQ = "";
  14008. // this.questionAnswer = "";
  14009. // this.answerQ = z[0].answerTitle;
  14010. // this.questionAnswer = z[0].answer;
  14011. // this.answerDialogVisible = true;
  14012. // }
  14013. },
  14014. fastText(p, t) {
  14015. if (t == 1) {
  14016. this.commentText += p;
  14017. } else {
  14018. this.eScore.eBzText += p;
  14019. }
  14020. },
  14021. addTools(t, i, index) {
  14022. var a = 0;
  14023. // this.taskCount = index;
  14024. this.toolindex = i;
  14025. if (t == 1) {
  14026. if (this.wbCount > 0) {
  14027. this.updateCount(this.wbCount, t);
  14028. } else {
  14029. this.wbCount++;
  14030. a = this.wbCount;
  14031. this.toolsCount(a, t);
  14032. }
  14033. window.parent.postMessage(
  14034. {
  14035. tools: "1",
  14036. cid: this.id,
  14037. stage: this.courseType,
  14038. task: this.taskCount,
  14039. tool: i,
  14040. },
  14041. "*"
  14042. );
  14043. } else if (t == 2) {
  14044. if (this.wordCount > 0) {
  14045. this.updateCount(this.wordCount, t);
  14046. } else {
  14047. this.wordCount++;
  14048. a = this.wordCount;
  14049. this.toolsCount(a, t);
  14050. }
  14051. window.parent.postMessage({ tools: "2" }, "*");
  14052. } else if (t == 3) {
  14053. if (this.mindCount > 0) {
  14054. this.updateCount(this.mindCount, t);
  14055. } else {
  14056. this.mindCount++;
  14057. a = this.mindCount;
  14058. this.toolsCount(a, t);
  14059. }
  14060. window.parent.postMessage(
  14061. {
  14062. tools: "3",
  14063. cid: this.id,
  14064. stage: this.courseType,
  14065. task: this.taskCount,
  14066. tool: i,
  14067. },
  14068. "*"
  14069. );
  14070. } else if (t == 4) {
  14071. this.radio = [];
  14072. this.noteName = "";
  14073. this.isAnswer = false;
  14074. if (this.askCount > 0) {
  14075. this.updateCount(this.askCount, t);
  14076. } else {
  14077. this.askCount++;
  14078. a = this.askCount;
  14079. this.toolsCount(a, t);
  14080. }
  14081. if (!this.dialogVisible2) {
  14082. this.askJson.askJson =
  14083. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14084. index
  14085. ].toolChoose[i].askJson;
  14086. this.askJson.askTitle =
  14087. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14088. index
  14089. ].toolChoose[i].askTitle;
  14090. this.askJson.askCount =
  14091. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14092. index
  14093. ].toolChoose[i].askCount;
  14094. } else {
  14095. this.askJson.askJson = this.chapTools.askJson.askJson;
  14096. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  14097. this.askJson.askCount = this.chapTools.askJson.askCount;
  14098. }
  14099. for (var k = 0; k < this.askJson.askJson.length; k++) {
  14100. if (this.askJson.askJson[k].type == "2") {
  14101. this.radio.push([]);
  14102. } else {
  14103. this.radio.push("");
  14104. }
  14105. }
  14106. this.dialogVisible5 = true;
  14107. // window.parent.postMessage({ tools: "4" }, "*");
  14108. } else if (t == 45) {
  14109. this.noteName = "";
  14110. this.radio = [];
  14111. this.isAnswer = false;
  14112. if (this.askCount > 0) {
  14113. this.updateCount(this.askCount, t);
  14114. } else {
  14115. this.askCount++;
  14116. a = this.askCount;
  14117. this.toolsCount(a, t);
  14118. }
  14119. this.testJson =
  14120. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14121. index
  14122. ].toolChoose[i].testJson;
  14123. for (var k = 0; k < this.testJson.testJson.length; k++) {
  14124. if (this.testJson.testJson[k].type == "2") {
  14125. this.radio.push([]);
  14126. } else {
  14127. this.radio.push("");
  14128. }
  14129. }
  14130. this.dialogVisibleChoice = true;
  14131. // window.parent.postMessage({ tools: "4" }, "*");
  14132. } else if (t == 5) {
  14133. if (this.scoreCount > 0) {
  14134. this.updateCount(this.scoreCount, t);
  14135. } else {
  14136. this.scoreCount++;
  14137. a = this.scoreCount;
  14138. this.toolsCount(a, t);
  14139. }
  14140. this.dialogVisible4 = true;
  14141. // window.parent.postMessage({ tools: "5" }, "*");
  14142. } else if (t == 6) {
  14143. if (this.noteCount > 0) {
  14144. this.updateCount(this.noteCount, t);
  14145. } else {
  14146. this.noteCount++;
  14147. a = this.noteCount;
  14148. this.toolsCount(a, t);
  14149. }
  14150. window.parent.postMessage(
  14151. {
  14152. tools: "6",
  14153. cid: this.id,
  14154. stage: this.courseType,
  14155. task: this.taskCount,
  14156. tool: i,
  14157. },
  14158. "*"
  14159. );
  14160. } else if (t == 7) {
  14161. if (this.mindNetWorkCount > 0) {
  14162. this.updateCount(this.mindNetWorkCount, t);
  14163. } else {
  14164. this.mindNetWorkCount++;
  14165. a = this.mindNetWorkCount;
  14166. this.toolsCount(a, t);
  14167. }
  14168. window.parent.postMessage(
  14169. {
  14170. tools: "7",
  14171. cid: this.id,
  14172. stage: this.courseType,
  14173. task: this.taskCount,
  14174. tool: i,
  14175. },
  14176. "*"
  14177. );
  14178. } else if (t == 16) {
  14179. if (this.workCount > 0) {
  14180. this.updateCount(this.workCount, t);
  14181. } else {
  14182. this.workCount++;
  14183. a = this.workCount;
  14184. this.toolsCount(a, t);
  14185. }
  14186. this.dialogVisible = true;
  14187. } else if (t == 50) {
  14188. if (this.tType == 2) {
  14189. this.$message.error("不支持学生使用");
  14190. return;
  14191. }
  14192. this.plworkFile = [];
  14193. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  14194. // this.uploadCid =
  14195. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14196. // index
  14197. // ].toolChoose[i].uploadJson[0];
  14198. this.selectUploadStudent();
  14199. this.dialogVisiblePl = true;
  14200. } else if (t == 8) {
  14201. if (this.libraryCount > 0) {
  14202. this.updateCount(this.libraryCount, t);
  14203. } else {
  14204. this.libraryCount++;
  14205. a = this.libraryCount;
  14206. this.toolsCount(a, t);
  14207. }
  14208. window.parent.postMessage({ tools: "8" }, "*");
  14209. } else if (t == 17) {
  14210. if (this.libraryCount > 0) {
  14211. this.updateCount(this.libraryCount, t);
  14212. } else {
  14213. this.libraryCount++;
  14214. a = this.libraryCount;
  14215. this.toolsCount(a, t);
  14216. }
  14217. window.parent.postMessage({ tools: "17" }, "*");
  14218. } else if (t == 18) {
  14219. if (this.trainCount > 0) {
  14220. this.updateCount(this.trainCount, t);
  14221. } else {
  14222. this.trainCount++;
  14223. a = this.trainCount;
  14224. this.toolsCount(a, t);
  14225. }
  14226. window.parent.postMessage({ tools: "18" }, "*");
  14227. } else if (t == 10) {
  14228. if (this.timeCount > 0) {
  14229. this.updateCount(this.timeCount, t);
  14230. } else {
  14231. this.timeCount++;
  14232. a = this.timeCount;
  14233. this.toolsCount(a, t);
  14234. }
  14235. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  14236. .taskJson[index].toolChoose[i].preTime
  14237. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  14238. .toolChoose[i].preTime
  14239. : "";
  14240. this.timeDialogVisible = true;
  14241. } else if (t == 15) {
  14242. this.answerQ = "";
  14243. this.questionAnswer = "";
  14244. if (this.answerCount > 0) {
  14245. this.updateCount(this.answerCount, t);
  14246. } else {
  14247. this.answerCount++;
  14248. a = this.answerCount;
  14249. this.toolsCount(a, t);
  14250. }
  14251. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  14252. .taskJson[index].toolChoose[i].answerQ
  14253. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  14254. .toolChoose[i].answerQ
  14255. : "";
  14256. this.answerDialogVisible = true;
  14257. } else if (t == 21) {
  14258. window.parent.postMessage({ tools: "21" }, "*");
  14259. } else if (t == 22) {
  14260. window.parent.postMessage({ tools: "22" }, "*");
  14261. } else if (t == 23) {
  14262. window.parent.postMessage({ tools: "23" }, "*");
  14263. } else if (t == 24) {
  14264. window.parent.postMessage({ tools: "24" }, "*");
  14265. } else if (t == 25) {
  14266. window.parent.postMessage({ tools: "25" }, "*");
  14267. } else if (t == 31) {
  14268. window.parent.postMessage({ tools: "31" }, "*");
  14269. } else if (t == 28) {
  14270. window.parent.postMessage({ tools: "28" }, "*");
  14271. } else if (t == 37) {
  14272. window.parent.postMessage({ tools: "37" }, "*");
  14273. } else if (t == 38) {
  14274. window.parent.postMessage({ tools: "38" }, "*");
  14275. } else if (t == 39) {
  14276. window.parent.postMessage({ tools: "39" }, "*");
  14277. } else if (t == 32) {
  14278. window.parent.postMessage({ tools: "32" }, "*");
  14279. } else if (t == 57) {
  14280. window.parent.postMessage({ tools: "57" }, "*");
  14281. } else if (t == 58) {
  14282. window.parent.postMessage({ tools: "58" }, "*");
  14283. } else if (t == 59) {
  14284. window.parent.postMessage({ tools: "59" }, "*");
  14285. } else if (t == 60) {
  14286. window.parent.postMessage({ tools: "60" }, "*");
  14287. } else if (t == 61) {
  14288. window.parent.postMessage({ tools: "61" }, "*");
  14289. } else if (t == 26) {
  14290. window.parent.postMessage(
  14291. {
  14292. tools: "26",
  14293. cid: this.id,
  14294. stage: this.courseType,
  14295. task: this.taskCount,
  14296. tool: i,
  14297. },
  14298. "*"
  14299. );
  14300. } else if (t == 40) {
  14301. if (this.evalCount > 0) {
  14302. this.updateCount(this.evalCount, t);
  14303. } else {
  14304. this.evalCount++;
  14305. a = this.evalCount;
  14306. this.toolsCount(a, t);
  14307. }
  14308. this.eScore = { eBzText: "", eStar: [] };
  14309. if (this.worksStudent[i].length) {
  14310. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14311. if (this.userid == this.worksStudent[i][k].userid) {
  14312. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  14313. this.rateJson =
  14314. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14315. index
  14316. ].toolChoose[i].rateJson;
  14317. break;
  14318. } else {
  14319. this.rateJson =
  14320. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14321. index
  14322. ].toolChoose[i].rateJson;
  14323. }
  14324. }
  14325. } else {
  14326. this.rateJson =
  14327. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14328. index
  14329. ].toolChoose[i].rateJson;
  14330. }
  14331. this.isStar = false;
  14332. this.studentEvalDialogVisible = true;
  14333. } else if (t == 41) {
  14334. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14335. .taskJson[index].toolChoose[i].selectJson
  14336. ? JSON.parse(
  14337. JSON.stringify(
  14338. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14339. index
  14340. ].toolChoose[i].selectJson
  14341. )
  14342. )
  14343. : { url: "", select: [], answer: [] };
  14344. if (this.worksStudent[i].length) {
  14345. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14346. if (this.userid == this.worksStudent[i][k].userid) {
  14347. var a = this.worksStudent[i][k].works.split(",");
  14348. for (var ki = 0; ki < a.length; ki++) {
  14349. a[ki] = parseInt(a[ki]);
  14350. }
  14351. this.selectAnswer = {
  14352. answer: a,
  14353. stu: this.worksStudent[i][k].sName,
  14354. };
  14355. break;
  14356. } else {
  14357. this.selectAnswer = { answer: [], stu: "" };
  14358. }
  14359. }
  14360. } else {
  14361. this.selectAnswer = { answer: [], stu: "" };
  14362. }
  14363. this.isSelect = false;
  14364. this.dialogVisibleSelect = true;
  14365. } else if (t == 44) {
  14366. window.parent.postMessage({ tools: "44" }, "*");
  14367. } else if (t == 47) {
  14368. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  14369. .taskJson[index].toolChoose[i].sentenceList
  14370. ? JSON.parse(
  14371. JSON.stringify(
  14372. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14373. index
  14374. ].toolChoose[i].sentenceList
  14375. )
  14376. )
  14377. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  14378. for (var q = 0; q < this.sentenceList.length; q++) {
  14379. this.sentenceList[q].chooseSenList = [];
  14380. this.sentenceList[q].addChangeSen = [];
  14381. this.sentenceList[q].addChangeSen = JSON.parse(
  14382. JSON.stringify(this.sentenceList[q].addSentence)
  14383. );
  14384. this.sentenceList[q].chooseSenList.length =
  14385. this.sentenceList[q].rightAnswer.length;
  14386. }
  14387. this.dialogVisibleSentence = true;
  14388. } else if (t == 48) {
  14389. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14390. .taskJson[index].toolChoose[i].tableJson
  14391. ? JSON.parse(
  14392. JSON.stringify(
  14393. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14394. index
  14395. ].toolChoose[i].tableJson
  14396. )
  14397. )
  14398. : { text: "" };
  14399. if (this.worksStudent[i].length) {
  14400. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14401. if (this.userid == this.worksStudent[i][k].userid) {
  14402. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  14403. break;
  14404. }
  14405. }
  14406. }
  14407. this.dialogVisibleTable = true;
  14408. } else if (t == 52) {
  14409. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14410. .taskJson[index].toolChoose[i].wordJson
  14411. ? JSON.parse(
  14412. JSON.stringify(
  14413. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14414. index
  14415. ].toolChoose[i].wordJson
  14416. )
  14417. )
  14418. : { text: "" };
  14419. this.dialogVisibleWord = true;
  14420. } else if (t == 49) {
  14421. this.groupJson =
  14422. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14423. index
  14424. ].toolChoose[i].groupJson;
  14425. this.islock = this.groupJson.islock == 1 ? true : false;
  14426. this.dialogVisibleGroup = true;
  14427. }
  14428. },
  14429. teacherWorkSubmit(t, i, index, s) {
  14430. this.sStudent = s;
  14431. this.toolindex = i;
  14432. this.sTool = t;
  14433. if (this.tType !== "1" && this.tType !== "4") {
  14434. return;
  14435. }
  14436. if (t == 16 || t == 32 || t == 57 || t == 50) {
  14437. this.dialogVisibleWorks = true;
  14438. } else if (t == 15) {
  14439. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  14440. .taskJson[index].toolChoose[i].answerQ
  14441. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  14442. .toolChoose[i].answerQ
  14443. : "";
  14444. this.questionAnswer = "";
  14445. this.answerDialogVisibleTeacher = true; //问答
  14446. } else if (t == 52) {
  14447. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14448. .taskJson[index].toolChoose[i].wordJson
  14449. ? JSON.parse(
  14450. JSON.stringify(
  14451. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14452. index
  14453. ].toolChoose[i].wordJson
  14454. )
  14455. )
  14456. : { text: "" };
  14457. this.dialogVisibleWordTeacher = true; //文档
  14458. } else if (t == 4) {
  14459. this.radio = [];
  14460. this.noteName = "";
  14461. this.isAnswer = false;
  14462. if (this.askCount > 0) {
  14463. this.updateCount(this.askCount, t);
  14464. } else {
  14465. this.askCount++;
  14466. a = this.askCount;
  14467. this.toolsCount(a, t);
  14468. }
  14469. if (!this.dialogVisible2) {
  14470. this.askJson.askJson =
  14471. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14472. index
  14473. ].toolChoose[i].askJson;
  14474. this.askJson.askTitle =
  14475. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14476. index
  14477. ].toolChoose[i].askTitle;
  14478. this.askJson.askCount =
  14479. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14480. index
  14481. ].toolChoose[i].askCount;
  14482. } else {
  14483. this.askJson.askJson = this.chapTools.askJson.askJson;
  14484. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  14485. this.askJson.askCount = this.chapTools.askJson.askCount;
  14486. }
  14487. this.dialogVisible5Teacher = true;
  14488. } else if (t == 45) {
  14489. this.noteName = "";
  14490. this.radio = [];
  14491. this.isAnswer = false;
  14492. if (this.askCount > 0) {
  14493. this.updateCount(this.askCount, t);
  14494. } else {
  14495. this.askCount++;
  14496. a = this.askCount;
  14497. this.toolsCount(a, t);
  14498. }
  14499. this.testJson =
  14500. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14501. index
  14502. ].toolChoose[i].testJson;
  14503. for (var k = 0; k < this.testJson.testJson.length; k++) {
  14504. if (this.testJson.testJson[k].type == "2") {
  14505. this.radio.push([]);
  14506. } else {
  14507. this.radio.push("");
  14508. }
  14509. }
  14510. this.dialogVisibleChoiceTeacher = true;
  14511. } else if (t == 41) {
  14512. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14513. .taskJson[index].toolChoose[i].selectJson
  14514. ? JSON.parse(
  14515. JSON.stringify(
  14516. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14517. index
  14518. ].toolChoose[i].selectJson
  14519. )
  14520. )
  14521. : { url: "", select: [], answer: [] };
  14522. if (this.worksStudent[i].length) {
  14523. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14524. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14525. var a = this.worksStudent[i][k].works.split(",");
  14526. for (var ki = 0; ki < a.length; ki++) {
  14527. a[ki] = parseInt(a[ki]);
  14528. }
  14529. this.selectAnswer = {
  14530. answer: a,
  14531. stu: this.worksStudent[i][k].sName,
  14532. };
  14533. break;
  14534. } else {
  14535. this.selectAnswer = { answer: [], stu: "" };
  14536. }
  14537. }
  14538. } else {
  14539. this.selectAnswer = { answer: [], stu: "" };
  14540. }
  14541. this.isSelect = false;
  14542. this.dialogVisibleSelectTeacher = true;
  14543. } else if (t == 47) {
  14544. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  14545. .taskJson[index].toolChoose[i].sentenceList
  14546. ? JSON.parse(
  14547. JSON.stringify(
  14548. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14549. index
  14550. ].toolChoose[i].sentenceList
  14551. )
  14552. )
  14553. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  14554. for (var q = 0; q < this.sentenceList.length; q++) {
  14555. this.sentenceList[q].chooseSenList = [];
  14556. this.sentenceList[q].addChangeSen = [];
  14557. this.sentenceList[q].addChangeSen = JSON.parse(
  14558. JSON.stringify(this.sentenceList[q].addSentence)
  14559. );
  14560. this.sentenceList[q].chooseSenList.length =
  14561. this.sentenceList[q].rightAnswer.length;
  14562. }
  14563. this.dialogVisibleSentenceTeacher = true;
  14564. } else if (t == 48) {
  14565. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14566. .taskJson[index].toolChoose[i].tableJson
  14567. ? JSON.parse(
  14568. JSON.stringify(
  14569. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14570. index
  14571. ].toolChoose[i].tableJson
  14572. )
  14573. )
  14574. : { text: "" };
  14575. if (this.worksStudent[i].length) {
  14576. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14577. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14578. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  14579. break;
  14580. }
  14581. }
  14582. }
  14583. this.dialogVisibleTableTeacher = true;
  14584. } else if (t == 40) {
  14585. if (this.evalCount > 0) {
  14586. this.updateCount(this.evalCount, t);
  14587. } else {
  14588. this.evalCount++;
  14589. a = this.evalCount;
  14590. this.toolsCount(a, t);
  14591. }
  14592. this.eScore = { eBzText: "", eStar: [] };
  14593. if (this.worksStudent[i].length) {
  14594. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14595. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14596. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  14597. this.rateJson =
  14598. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14599. index
  14600. ].toolChoose[i].rateJson;
  14601. break;
  14602. } else {
  14603. this.rateJson =
  14604. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14605. index
  14606. ].toolChoose[i].rateJson;
  14607. }
  14608. }
  14609. } else {
  14610. this.rateJson =
  14611. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14612. index
  14613. ].toolChoose[i].rateJson;
  14614. }
  14615. this.isStar = false;
  14616. this.studentEvalDialogVisibleTeacher = true;
  14617. } else if (t == 3 || t == 1 || t == 7) {
  14618. window.parent.postMessage(
  14619. {
  14620. tools: t + "teacher",
  14621. cid: this.id,
  14622. stage: this.courseType,
  14623. task: this.taskCount,
  14624. tool: i,
  14625. student: this.sStudent,
  14626. },
  14627. "*"
  14628. );
  14629. }
  14630. },
  14631. setRightAnswer(s, i, j) {
  14632. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  14633. if (
  14634. this.sentenceList[i].chooseSenList[q] == undefined ||
  14635. this.sentenceList[i].chooseSenList[q] == ""
  14636. ) {
  14637. this.sentenceList[i].chooseSenList[q] = s;
  14638. this.sentenceList[i].addChangeSen[j] = "";
  14639. break;
  14640. }
  14641. }
  14642. this.$forceUpdate();
  14643. },
  14644. returnCard(r, i, j) {
  14645. var a = this.sentenceList[i].addSentence.indexOf(r);
  14646. this.sentenceList[i].chooseSenList[j] = "";
  14647. this.sentenceList[i].addChangeSen[a] = r;
  14648. this.$forceUpdate();
  14649. },
  14650. // addSentenceTool() {
  14651. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14652. // this.taskCount
  14653. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  14654. // this.sentenceList = [
  14655. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  14656. // ];
  14657. // this.dialogVisibleSentence = false;
  14658. // },
  14659. toolsCount(a, t) {
  14660. let params = {
  14661. cid: this.id,
  14662. chid: this.courseType,
  14663. uid: this.userid,
  14664. tid: t,
  14665. count: a,
  14666. };
  14667. this.ajax
  14668. .get(this.$store.state.api + "insertToolsCount", params)
  14669. .then((res) => {
  14670. this.selectCount();
  14671. })
  14672. .catch((err) => {
  14673. console.error(err);
  14674. });
  14675. },
  14676. updateCount(c, t) {
  14677. c++;
  14678. let params = {
  14679. cid: this.id,
  14680. chid: this.courseType,
  14681. uid: this.userid,
  14682. tid: t,
  14683. count: c,
  14684. };
  14685. this.ajax
  14686. .get(this.$store.state.api + "updateToolsCount", params)
  14687. .then((res) => {
  14688. this.selectCount();
  14689. })
  14690. .catch((err) => {
  14691. console.error(err);
  14692. });
  14693. },
  14694. checkEva() {
  14695. if (this.evalua != "") {
  14696. for (var i = 0; i < this.evaJuri.length; i++) {
  14697. if (this.evalua == this.evaJuri[i].id) {
  14698. this.eTitle = this.evaJuri[i].title;
  14699. this.eJson = JSON.parse(this.evaJuri[i].content);
  14700. }
  14701. }
  14702. this.$forceUpdate();
  14703. setTimeout(() => {
  14704. this.setMindData();
  14705. }, 0);
  14706. }
  14707. },
  14708. selectEva() {
  14709. let params = {
  14710. oid: this.oid,
  14711. };
  14712. this.ajax
  14713. .get(this.$store.state.api + "selectAllEvaluation", params)
  14714. .then((res) => {
  14715. this.evaJuri = res.data[0];
  14716. })
  14717. .catch((err) => {
  14718. console.error(err);
  14719. });
  14720. },
  14721. setMindData() {
  14722. this.data.data = [];
  14723. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  14724. let _eJson = Object.keys(this.eJson);
  14725. let _e = this.eJson;
  14726. for (let i = 0; i < _eJson.length; i++) {
  14727. let element = _e[_eJson[i]];
  14728. this.data.data.push({
  14729. id: element.id,
  14730. parentid: "root",
  14731. topic: element.name,
  14732. });
  14733. let _eJsonc = Object.keys(element.child);
  14734. let _e2 = element.child;
  14735. for (let j = 0; j < _eJsonc.length; j++) {
  14736. let _ec = _e2[_eJsonc[j]];
  14737. this.data.data.push({
  14738. id: _ec.id,
  14739. parentid: element.id,
  14740. topic: _ec.name,
  14741. });
  14742. let _eJsonz = Object.keys(_ec.child);
  14743. let _e3 = _ec.child;
  14744. for (let z = 0; z < _eJsonz.length; z++) {
  14745. let _ez = _e3[_eJsonz[z]];
  14746. this.data.data.push({
  14747. id: _ez.id,
  14748. parentid: _ec.id,
  14749. topic: _ez.name,
  14750. });
  14751. }
  14752. }
  14753. }
  14754. this.$forceUpdate();
  14755. },
  14756. checkFileFull(type, url) {
  14757. this.fullDialogVisible = true;
  14758. this.fulltype = type;
  14759. this.fullUrl = url;
  14760. },
  14761. openSname(n, id, i) {
  14762. this.snameWid = id;
  14763. this.worksSName = n;
  14764. this.toolindex = i;
  14765. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  14766. this.selectUploadStudent();
  14767. this.dialogVisibleSname = true;
  14768. },
  14769. updateName() {
  14770. let params = {
  14771. n: this.worksSName,
  14772. cid: this.snameWid,
  14773. };
  14774. this.ajax
  14775. .get(this.$store.state.api + "updateCourseWorksName", params)
  14776. .then((res) => {
  14777. this.$message({
  14778. message: "修改成功",
  14779. type: "success",
  14780. });
  14781. this.dialogVisibleSname = false;
  14782. this.getCourseDetail(2);
  14783. this.snameWid = "";
  14784. this.worksSName = "";
  14785. })
  14786. .catch((err) => {
  14787. console.error(err);
  14788. });
  14789. },
  14790. downloadFile2(f) {
  14791. let url = f.url;
  14792. let _this = this;
  14793. let _url = "";
  14794. if (
  14795. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  14796. ) {
  14797. _url = url.split(
  14798. "https://view.officeapps.live.com/op/view.aspx?src="
  14799. )[1];
  14800. } else {
  14801. _url = url;
  14802. }
  14803. const x = new XMLHttpRequest();
  14804. x.open("GET", _url, true);
  14805. x.responseType = "blob";
  14806. const loading = _this.$loading.service({
  14807. background: "rgba(255, 255, 255, 0.7)",
  14808. target: document.body,
  14809. text: "文件加载中...",
  14810. });
  14811. // _this.$message.success("文件下载中...");
  14812. x.onload = function (e) {
  14813. loading.close();
  14814. let content = x.response;
  14815. let elink = document.createElement("a");
  14816. elink.download = f.name;
  14817. elink.style.display = "none";
  14818. let blob = new Blob([content]);
  14819. elink.href = URL.createObjectURL(blob);
  14820. document.body.appendChild(elink);
  14821. elink.click();
  14822. document.body.removeChild(elink);
  14823. };
  14824. x.send();
  14825. },
  14826. downloadFile(url) {
  14827. let _this = this;
  14828. let _url = "";
  14829. if (
  14830. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  14831. ) {
  14832. _url = url.split(
  14833. "https://view.officeapps.live.com/op/view.aspx?src="
  14834. )[1];
  14835. } else {
  14836. _url = url;
  14837. }
  14838. const x = new XMLHttpRequest();
  14839. x.open("GET", _url, true);
  14840. x.responseType = "blob";
  14841. const loading = _this.$loading.service({
  14842. background: "rgba(255, 255, 255, 0.7)",
  14843. target: document.body,
  14844. text: "文件加载中...",
  14845. });
  14846. // _this.$message.success("文件下载中...");
  14847. x.onload = function (e) {
  14848. loading.close();
  14849. // const url = window.URL.createObjectURL(x.response);
  14850. // const a = document.createElement("a");
  14851. // a.href = url;
  14852. // a.target = "_blank";
  14853. // a.download = url;
  14854. // a.click();
  14855. // a.remove();
  14856. let content = x.response;
  14857. let elink = document.createElement("a");
  14858. elink.download = decodeURI(
  14859. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  14860. );
  14861. elink.style.display = "none";
  14862. let blob = new Blob([content]);
  14863. elink.href = URL.createObjectURL(blob);
  14864. document.body.appendChild(elink);
  14865. elink.click();
  14866. document.body.removeChild(elink);
  14867. };
  14868. x.send();
  14869. },
  14870. openLine(url) {
  14871. window.open(url);
  14872. },
  14873. resize() {
  14874. if (document.getElementsByClassName("box_course").length) {
  14875. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  14876. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  14877. document.getElementsByClassName("navBox")[0].style.height =
  14878. a - 40 + "px";
  14879. }
  14880. this.Stbodywidth =
  14881. document.getElementsByClassName("student_body").length &&
  14882. document.getElementsByClassName("student_body")[0].offsetWidth;
  14883. },
  14884. closeDraw() {
  14885. this.bg = null;
  14886. this.drawShow = false;
  14887. },
  14888. showPicturePaint(url) {
  14889. let params = {
  14890. img: url,
  14891. };
  14892. this.ajax
  14893. .get(this.$store.state.api + "imgToBase64", params)
  14894. .then((res) => {
  14895. console.log(res);
  14896. this.drawShow = true;
  14897. this.bg = res.data[0].img;
  14898. })
  14899. .catch((err) => {
  14900. console.error(err);
  14901. });
  14902. },
  14903. addImgDraw(base64) {
  14904. let file = { name: "批注图.png" };
  14905. let img = this.dataUrlToFile(base64, file);
  14906. this.beforeUpload1(img, 5);
  14907. },
  14908. addImgDrawImG(url) {
  14909. // console.log(url);
  14910. let params = [
  14911. {
  14912. wid: this.commentDetail.wid,
  14913. img: url,
  14914. },
  14915. ];
  14916. this.ajax
  14917. .post(this.$store.state.api + "updateCourseWorks", params)
  14918. .then((res) => {
  14919. this.$message({
  14920. message: "提交成功",
  14921. type: "success",
  14922. });
  14923. this.drawShow = false;
  14924. this.bg = "";
  14925. this.selectSWorks();
  14926. this.selectStudent();
  14927. })
  14928. .catch((err) => {
  14929. this.$message.error("提交失败");
  14930. console.error(err);
  14931. });
  14932. },
  14933. deletePicturePaint() {
  14934. this.$confirm("确定删除此批注吗?", "提示", {
  14935. confirmButtonText: "确定",
  14936. cancelButtonText: "取消",
  14937. type: "warning",
  14938. })
  14939. .then(() => {
  14940. let params = [
  14941. {
  14942. wid: this.commentDetail.wid,
  14943. img: "",
  14944. },
  14945. ];
  14946. this.ajax
  14947. .post(this.$store.state.api + "updateCourseWorks", params)
  14948. .then((res) => {
  14949. this.$message({
  14950. message: "删除成功",
  14951. type: "success",
  14952. });
  14953. this.selectSWorks();
  14954. this.selectStudent();
  14955. })
  14956. .catch((err) => {
  14957. this.$message.error("删除失败");
  14958. console.error(err);
  14959. });
  14960. })
  14961. .catch(() => {});
  14962. },
  14963. getAudioVideo(constraintsData) {
  14964. if (navigator.mediaDevices === undefined) {
  14965. navigator.mediaDevices = {};
  14966. }
  14967. if (navigator.mediaDevices.getUserMedia === undefined) {
  14968. navigator.mediaDevices.getUserMedia = function (constraints) {
  14969. // 首先,如果有getUserMedia的话,就获得它
  14970. var getUserMedia =
  14971. navigator.getUserMedia ||
  14972. navigator.webkitGetUserMedia ||
  14973. navigator.mozGetUserMedia ||
  14974. navigator.msGetUserMedia;
  14975. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  14976. if (!getUserMedia) {
  14977. return Promise.reject({ code: 404 });
  14978. }
  14979. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  14980. return new Promise(function (resolve, reject) {
  14981. getUserMedia.call(navigator, constraints, resolve, reject);
  14982. });
  14983. };
  14984. }
  14985. return navigator.mediaDevices.getUserMedia(constraintsData);
  14986. },
  14987. /**
  14988. * 开始录制
  14989. */
  14990. startRecording(callback) {
  14991. let _function = (screenStream) => {
  14992. this.addStreamStopListener(screenStream, () => {
  14993. console.log("流停止监听");
  14994. this.stopRecording();
  14995. this.$emit("streamStop", {});
  14996. // this.stopRecording();
  14997. });
  14998. var options = {
  14999. type: "video",
  15000. mimeType: "video/webm",
  15001. disableLogs: false,
  15002. getNativeBlob: false, // enable it for longer recordings
  15003. ignoreMutedMedia: false,
  15004. };
  15005. // this.video.srcObject = screenStream;
  15006. this.recorder = RecordRTC(screenStream, options);
  15007. this.recorder.startRecording();
  15008. this.recorder.screen = screenStream;
  15009. this.videoStart = true;
  15010. // callback(true);
  15011. };
  15012. this.getAudioVideo({ audio: true })
  15013. .then((res) => {
  15014. this.captureScreen(_function, true);
  15015. console.log("已点击允许,开启成功");
  15016. })
  15017. .catch((err) => {
  15018. // console.log('浏览器不支持,请更换浏览器')
  15019. // } else {
  15020. this.captureScreen(_function, false);
  15021. console.log("请检查是否存在麦克风");
  15022. });
  15023. },
  15024. /**
  15025. * 停止录制
  15026. */
  15027. stopRecording(callback) {
  15028. this.recorder.stopRecording(() => {
  15029. // this.video.src = this.video.srcObject = null;
  15030. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  15031. const url = URL.createObjectURL(this.recorder.getBlob());
  15032. const a = document.createElement("a"); //this.fileName+
  15033. let videoFile = new File(
  15034. [this.recorder.getBlob()],
  15035. this.courseDetail.title + "录屏.mp4",
  15036. {
  15037. type: "video/mp4",
  15038. }
  15039. );
  15040. let downloadUrl = URL.createObjectURL(videoFile);
  15041. document.body.appendChild(a);
  15042. a.style.display = "none";
  15043. a.href = url;
  15044. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  15045. a.click();
  15046. this.recorder.screen.stop();
  15047. this.recorder.destroy();
  15048. this.recorder = null;
  15049. this.videoStart = false;
  15050. // callback(false);
  15051. });
  15052. },
  15053. //初始化
  15054. captureScreen(callback, type) {
  15055. if (navigator.getDisplayMedia) {
  15056. //录制结束,文件下载
  15057. navigator
  15058. .getDisplayMedia({
  15059. video: true,
  15060. })
  15061. .then((screenStream) => {
  15062. if (type) {
  15063. navigator.mediaDevices
  15064. .getUserMedia({ audio: true })
  15065. .then((mic) => {
  15066. screenStream.addTrack(mic.getTracks()[0]);
  15067. callback(screenStream);
  15068. });
  15069. } else {
  15070. callback(screenStream);
  15071. }
  15072. })
  15073. .catch(function (error) {
  15074. console.log("error", error);
  15075. });
  15076. } else if (navigator.mediaDevices.getDisplayMedia) {
  15077. navigator.mediaDevices
  15078. .getDisplayMedia({
  15079. video: true,
  15080. })
  15081. .then((screenStream) => {
  15082. if (type) {
  15083. navigator.mediaDevices
  15084. .getUserMedia({ audio: true })
  15085. .then((mic) => {
  15086. screenStream.addTrack(mic.getTracks()[0]);
  15087. callback(screenStream);
  15088. });
  15089. } else {
  15090. callback(screenStream);
  15091. }
  15092. })
  15093. .catch(function (error) {
  15094. console.log("error", error);
  15095. });
  15096. } else {
  15097. var error = "getDisplayMedia API are not supported in this browser.";
  15098. console.log("error", error);
  15099. alert(error);
  15100. }
  15101. },
  15102. //流监听
  15103. addStreamStopListener(stream, callback) {
  15104. stream.addEventListener(
  15105. "ended",
  15106. function () {
  15107. callback();
  15108. callback = function () {};
  15109. },
  15110. false
  15111. );
  15112. stream.addEventListener(
  15113. "inactive",
  15114. function () {
  15115. callback();
  15116. callback = function () {};
  15117. },
  15118. false
  15119. );
  15120. stream.getTracks().forEach(function (track) {
  15121. track.addEventListener(
  15122. "ended",
  15123. function () {
  15124. callback();
  15125. callback = function () {};
  15126. },
  15127. false
  15128. );
  15129. track.addEventListener(
  15130. "inactive",
  15131. function () {
  15132. callback();
  15133. callback = function () {};
  15134. },
  15135. false
  15136. );
  15137. });
  15138. },
  15139. updateGroup() {
  15140. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  15141. this.dialogVisibleGroup2 = true;
  15142. },
  15143. updateGroupJson() {
  15144. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  15145. if (
  15146. this.groupStudentUid[this.toolindex][i].length >
  15147. this.groupJson2.number
  15148. ) {
  15149. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  15150. return;
  15151. }
  15152. }
  15153. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  15154. this.islock = this.groupJson.islock == 1 ? true : false;
  15155. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15156. this.taskCount
  15157. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  15158. let params = [
  15159. {
  15160. cid: this.id,
  15161. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  15162. uid: this.userid,
  15163. unitIndex: this.courseType,
  15164. },
  15165. ];
  15166. this.ajax
  15167. .post(this.$store.state.api + "updateWorkNew4", params)
  15168. .then((res) => {
  15169. this.$message.success("设置成功");
  15170. this.getCourseDetail(2);
  15171. this.dialogVisibleGroup2 = false;
  15172. this.groupJson2 = {};
  15173. this.$forceUpdate();
  15174. })
  15175. .catch((err) => {
  15176. this.$message.error("网络不佳");
  15177. console.error(err);
  15178. });
  15179. },
  15180. lockChair() {
  15181. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  15182. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  15183. this.updateGroupJson();
  15184. },
  15185. selectGroup(index) {
  15186. this.getCourseDetail(2, index);
  15187. },
  15188. joinGroup(index) {
  15189. if (this.groupJson.islock == 2) {
  15190. this.$message.error("位置已被锁定,无法加入");
  15191. return;
  15192. }
  15193. if (
  15194. this.groupStudent[this.toolindex][index].length >
  15195. this.groupJson.number ||
  15196. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  15197. ) {
  15198. this.$message.error("位置已满,无法加入");
  15199. return;
  15200. }
  15201. let params = [
  15202. {
  15203. cid: this.id,
  15204. stage: this.courseType,
  15205. task: this.taskCount,
  15206. tool: this.toolindex,
  15207. g: index,
  15208. uid: this.userid,
  15209. },
  15210. ];
  15211. this.ajax
  15212. .post(this.$store.state.api + "joinGroup", params)
  15213. .then((res) => {
  15214. this.$message.success("加入成功");
  15215. this.getCourseDetail(2);
  15216. })
  15217. .catch((err) => {
  15218. this.$message.error("网络不佳");
  15219. console.error(err);
  15220. });
  15221. },
  15222. exitGroup(id) {
  15223. if (this.groupJson.islock == 2) {
  15224. this.$message.error("位置已被锁定,无法退出");
  15225. return;
  15226. }
  15227. let params = [
  15228. {
  15229. gid: id,
  15230. },
  15231. ];
  15232. this.ajax
  15233. .post(this.$store.state.api + "exitGroup", params)
  15234. .then((res) => {
  15235. this.$message.success("退出成功");
  15236. this.getCourseDetail(2);
  15237. })
  15238. .catch((err) => {
  15239. this.$message.error("网络不佳");
  15240. console.error(err);
  15241. });
  15242. },
  15243. groupUpload(index, task, gindex) {
  15244. this.taskCount = task;
  15245. this.toolindex = index;
  15246. this.groupIndex = gindex;
  15247. this.dialogVisibleGroupWork = true;
  15248. },
  15249. updateGroupChair(user) {
  15250. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  15251. el.label = index;
  15252. return index != user.group;
  15253. });
  15254. this.updateGroupUser = user;
  15255. this.dialogVisibleUpdateGroup = true;
  15256. },
  15257. updateChair() {
  15258. if (
  15259. this.groupStudent[this.toolindex][this.checkChair].length >
  15260. this.groupJson.number ||
  15261. this.groupStudent[this.toolindex][this.checkChair].length ==
  15262. this.groupJson.number
  15263. ) {
  15264. this.$message.error("位置已满,无法加入");
  15265. return;
  15266. }
  15267. let params = [
  15268. {
  15269. cid: this.id,
  15270. stage: this.courseType,
  15271. task: this.taskCount,
  15272. tool: this.toolindex,
  15273. g: this.checkChair,
  15274. uid: this.updateGroupUser.userid,
  15275. },
  15276. ];
  15277. this.ajax
  15278. .post(this.$store.state.api + "joinGroup", params)
  15279. .then((res) => {
  15280. this.$message.success("修改成功");
  15281. this.updateGroupUser = {};
  15282. this.checkChair = "";
  15283. this.updateGroupArray = {};
  15284. this.dialogVisibleUpdateGroup = false;
  15285. this.getCourseDetail(2);
  15286. })
  15287. .catch((err) => {
  15288. this.$message.error("网络不佳");
  15289. console.error(err);
  15290. });
  15291. },
  15292. deleteGroupChair(gindex) {
  15293. this.checkDeleteGroup = [];
  15294. this.deleteGroupUser = JSON.parse(
  15295. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  15296. );
  15297. this.deleteGroupArray = this.groupJson.group[gindex];
  15298. this.groupIndex = gindex;
  15299. this.dialogVisibleDeleteGroup = true;
  15300. },
  15301. async deleteChair() {
  15302. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  15303. const gid =
  15304. this.groupStudent[this.toolindex][this.groupIndex][
  15305. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  15306. this.checkDeleteGroup[i]
  15307. )
  15308. ];
  15309. let params = [
  15310. {
  15311. gid: gid.id,
  15312. },
  15313. ];
  15314. var a = await this.deleteChairA(params);
  15315. if (i == this.checkDeleteGroup.length - 1) {
  15316. this.$message.success("退出成功");
  15317. this.dialogVisibleDeleteGroup = false;
  15318. this.deleteGroupUser = [];
  15319. this.deleteGroupArray = {};
  15320. this.groupIndex = "";
  15321. this.checkDeleteGroup = [];
  15322. this.getCourseDetail(2);
  15323. }
  15324. }
  15325. },
  15326. deleteChairA(params) {
  15327. return new Promise((resolve, reject) => {
  15328. this.ajax
  15329. .post(this.$store.state.api + "exitGroup", params)
  15330. .then((res) => {
  15331. resolve(1);
  15332. })
  15333. .catch((err) => {
  15334. this.$message.error("网络不佳");
  15335. console.error(err);
  15336. });
  15337. });
  15338. },
  15339. contract(i) {
  15340. if (this.isCloseList[i].isClose == 0) {
  15341. this.isCloseList[i].isClose = 1;
  15342. } else {
  15343. this.isCloseList[i].isClose = 0;
  15344. }
  15345. this.$forceUpdate();
  15346. },
  15347. },
  15348. directives: {
  15349. // 使用局部注册指令的方式
  15350. resize: {
  15351. // 指令的名称
  15352. bind(el, binding) {
  15353. // el为绑定的元素,binding为绑定给指令的对象
  15354. let width = "",
  15355. height = "";
  15356. function isReize() {
  15357. const style = document.defaultView.getComputedStyle(el);
  15358. if (width !== style.width || height !== style.height) {
  15359. binding.value(); // 关键
  15360. }
  15361. width = style.width;
  15362. height = style.height;
  15363. }
  15364. el.__vueSetInterval__ = setInterval(isReize, 300);
  15365. },
  15366. unbind(el) {
  15367. clearInterval(el.__vueSetInterval__);
  15368. },
  15369. },
  15370. },
  15371. beforeDestroy() {
  15372. window.onresize = null;
  15373. clearInterval(this.timer);
  15374. this.timer = null;
  15375. clearInterval(this.opertimer);
  15376. this.opertimer = null;
  15377. },
  15378. computed: {
  15379. contentConvent() {
  15380. return function (c) {
  15381. return c
  15382. ? c
  15383. .replaceAll(/\r\n/g, "<br/>")
  15384. .replaceAll(/\n/g, "<br/>")
  15385. .replaceAll(/\s/g, " &nbsp")
  15386. : "";
  15387. };
  15388. },
  15389. checkUpload() {
  15390. return function () {
  15391. var studentK = [];
  15392. if (this.plworkFile.length > 0) {
  15393. for (var z = 0; z < this.plworkFile.length; z++) {
  15394. studentK.push(this.plworkFile[z].username);
  15395. }
  15396. studentK = studentK.join(",");
  15397. }
  15398. var a = this.uploadStudentJuri.filter((el) => {
  15399. return studentK.indexOf(el.userid) == -1;
  15400. });
  15401. return a;
  15402. };
  15403. },
  15404. },
  15405. mounted() {
  15406. if (this.screenType == 2) {
  15407. window.parent.postMessage({ allScreen: 4 }, "*");
  15408. } else if (this.screenType == 3) {
  15409. window.parent.postMessage({ allScreen: 5 }, "*");
  15410. } else if (this.screenType == 1) {
  15411. window.parent.postMessage({ allScreen: 6 }, "*");
  15412. }
  15413. this.setOperationTime();
  15414. this.selectEva();
  15415. this.getCourseDetail();
  15416. this.selectCount();
  15417. this.getHomeWork();
  15418. this.contentDialog = true;
  15419. this.setContent2(true);
  15420. if (this.tType == 4) {
  15421. this.pzDialog = true;
  15422. this.selectPz();
  15423. }
  15424. document.scrollingElement.scrollTop = 0;
  15425. window.addEventListener("resize", () => {
  15426. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  15427. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  15428. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  15429. });
  15430. let _this = this;
  15431. setTimeout(() => {
  15432. // _this.vedioTime = [];
  15433. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  15434. // _this.vedioTime[i] = document.getElementsByClassName(
  15435. // "vjs-duration-display"
  15436. // )[i].textContent;
  15437. // }
  15438. }, 1000);
  15439. },
  15440. };
  15441. </script>
  15442. <style scoped>
  15443. @media screen and (max-width: 1280px) {
  15444. /* .courseIndex > div:first-child(2) {
  15445. width: 15% !important;
  15446. } */
  15447. /* .navText {
  15448. width: 120px !important;
  15449. } */
  15450. .evaCss {
  15451. flex-direction: column !important;
  15452. align-items: center !important;
  15453. }
  15454. .dialog_diy1 >>> .el-dialog {
  15455. width: 100% !important;
  15456. }
  15457. .rightWidthCss {
  15458. width: 100% !important;
  15459. }
  15460. .dialog_diy3 >>> .el-dialog {
  15461. width: 100% !important;
  15462. }
  15463. /* .textTitle >>> .el-form-item__label {
  15464. width: 150px !important;
  15465. } */
  15466. }
  15467. .evaCssMax {
  15468. flex-direction: column !important;
  15469. align-items: center !important;
  15470. }
  15471. .dialog_diy >>> .el-dialog {
  15472. margin-top: 10vh !important;
  15473. }
  15474. .body_student {
  15475. width: 77%;
  15476. height: 100%;
  15477. position: absolute;
  15478. left: 22%;
  15479. top: 0;
  15480. }
  15481. .student_head {
  15482. width: 100%;
  15483. margin: 0 auto;
  15484. padding-bottom: 20px;
  15485. display: flex;
  15486. flex-direction: column;
  15487. flex-wrap: nowrap;
  15488. align-items: flex-start;
  15489. justify-content: flex-start;
  15490. }
  15491. .pb_left {
  15492. width: 20%;
  15493. margin-right: 10px;
  15494. background: rgb(255, 255, 255);
  15495. padding-right: 10px;
  15496. position: fixed;
  15497. height: 100%;
  15498. }
  15499. .wheel > img,
  15500. .project > img,
  15501. .star > img,
  15502. .evaluate > img,
  15503. .up_photo > img,
  15504. .chapter_add > img,
  15505. .deleteWord > img,
  15506. .question > img,
  15507. .homework > img {
  15508. width: 100%;
  15509. height: 100%;
  15510. }
  15511. .upCover > img {
  15512. width: 131px;
  15513. height: 69px;
  15514. object-fit: cover;
  15515. }
  15516. .upCover {
  15517. width: calc(100% / 3.5);
  15518. position: relative;
  15519. margin: 0 15px 10px 0;
  15520. display: flex;
  15521. flex-direction: column;
  15522. flex-wrap: nowrap;
  15523. justify-content: center;
  15524. align-content: center;
  15525. align-items: center;
  15526. height: fit-content;
  15527. }
  15528. .upCover2 {
  15529. width: 100%;
  15530. position: relative;
  15531. margin: 0 15px 10px 0;
  15532. display: flex;
  15533. flex-direction: column;
  15534. flex-wrap: nowrap;
  15535. justify-content: center;
  15536. align-content: center;
  15537. align-items: center;
  15538. }
  15539. .upCover2 > img {
  15540. width: 100%;
  15541. height: 90px;
  15542. object-fit: contain;
  15543. }
  15544. .chapter_add {
  15545. width: 120px;
  15546. position: relative;
  15547. text-align: center;
  15548. }
  15549. .isAddThings {
  15550. margin-top: 20px;
  15551. position: relative;
  15552. text-align: center;
  15553. background: #f7f8fa;
  15554. height: 90px;
  15555. width: 90px;
  15556. display: flex;
  15557. flex-direction: column;
  15558. justify-content: center;
  15559. }
  15560. .deleteWord {
  15561. width: 22px;
  15562. height: 22px;
  15563. position: absolute;
  15564. right: -5px;
  15565. top: -5px;
  15566. cursor: pointer;
  15567. }
  15568. .box_course {
  15569. /* width: 60%; */
  15570. width: 81%;
  15571. }
  15572. .wheel {
  15573. width: 100%;
  15574. /* height: 100%; */
  15575. height: 650px;
  15576. }
  15577. .right_box {
  15578. display: flex;
  15579. flex-direction: column;
  15580. margin-left: 30px;
  15581. justify-content: space-around;
  15582. }
  15583. .right_box_title {
  15584. font-size: 23px;
  15585. }
  15586. .people {
  15587. display: flex;
  15588. }
  15589. .student_body {
  15590. width: 100%;
  15591. margin: 0 auto;
  15592. margin-top: 10px;
  15593. padding: 0 0 20px;
  15594. }
  15595. .study_top {
  15596. margin-top: 70px;
  15597. width: 100%;
  15598. /* overflow: auto; */
  15599. height: auto;
  15600. }
  15601. .study_top .checkbox {
  15602. display: flex;
  15603. align-items: center;
  15604. padding: 15px 0 15px 30px;
  15605. flex: 0 0 auto;
  15606. font-weight: bold;
  15607. border-bottom: 1px solid #eee;
  15608. }
  15609. .study_top .check {
  15610. padding-bottom: 5px;
  15611. text-align: center;
  15612. cursor: pointer;
  15613. height: 30px;
  15614. box-sizing: border-box;
  15615. display: flex;
  15616. }
  15617. .study_top .checked {
  15618. border-bottom: 4px solid #3fc6a0;
  15619. padding-bottom: 5px;
  15620. color: #3fc6a0;
  15621. display: flex;
  15622. height: 35px;
  15623. }
  15624. .study_top .checked > div,
  15625. .study_top .check > div {
  15626. margin-right: 5px;
  15627. }
  15628. .videoTop {
  15629. display: flex;
  15630. flex-direction: row;
  15631. justify-content: space-between;
  15632. background: #fff;
  15633. align-items: center;
  15634. width: 95%;
  15635. padding: 20px;
  15636. }
  15637. .upbtn {
  15638. margin: 25px;
  15639. background: #70afdb;
  15640. color: #fff;
  15641. width: 120px;
  15642. text-align: center;
  15643. height: 30px;
  15644. line-height: 30px;
  15645. font-size: 13px;
  15646. border-radius: 5px;
  15647. cursor: pointer;
  15648. }
  15649. .filebox {
  15650. display: flex;
  15651. flex-wrap: wrap;
  15652. flex-direction: column;
  15653. padding: 15px 0 5px;
  15654. }
  15655. .filebox .tooldetail {
  15656. width: 100%;
  15657. margin: 0px 12px;
  15658. background: rgb(247, 247, 247);
  15659. padding: 20px;
  15660. line-height: 30px;
  15661. word-break: break-word;
  15662. }
  15663. .file {
  15664. display: flex;
  15665. flex-direction: column;
  15666. align-items: center;
  15667. justify-content: center;
  15668. cursor: pointer;
  15669. width: 200px;
  15670. }
  15671. .file div {
  15672. margin-top: 10px;
  15673. width: 150px;
  15674. text-align: center;
  15675. overflow: hidden;
  15676. white-space: nowrap;
  15677. text-overflow: ellipsis;
  15678. }
  15679. .media {
  15680. display: flex;
  15681. flex-direction: column;
  15682. align-items: center;
  15683. justify-content: center;
  15684. margin: 0 20px 20px 0;
  15685. cursor: pointer;
  15686. margin: 12px 0 5px 15px;
  15687. overflow: hidden;
  15688. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  15689. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  15690. box-sizing: border-box;
  15691. }
  15692. .media img {
  15693. height: 90px;
  15694. width: 160px;
  15695. object-fit: cover;
  15696. }
  15697. .media .title {
  15698. padding: 5px;
  15699. text-align: left;
  15700. width: 100%;
  15701. box-sizing: border-box;
  15702. }
  15703. .media .btn {
  15704. width: 100%;
  15705. height: 35px;
  15706. line-height: 35px;
  15707. color: #fff;
  15708. background: #606060;
  15709. text-align: center;
  15710. overflow: hidden;
  15711. white-space: nowrap;
  15712. text-overflow: ellipsis;
  15713. }
  15714. .detail_content_top {
  15715. width: 100%;
  15716. padding: 25px 0 25px 0;
  15717. }
  15718. .detail_title {
  15719. text-align: center;
  15720. font-size: 24px;
  15721. }
  15722. .detail_time {
  15723. font-size: 13px;
  15724. padding: 15px 0 0 40px;
  15725. }
  15726. .detail_content {
  15727. line-height: 2pc;
  15728. width: 90%;
  15729. margin: 0 auto;
  15730. padding-top: 30px;
  15731. text-indent: 30px;
  15732. overflow: auto;
  15733. height: 200px;
  15734. }
  15735. .score_box >>> .el-rate {
  15736. margin-left: 10px;
  15737. }
  15738. .dialog_change >>> .el-dialog {
  15739. border-radius: 5px;
  15740. }
  15741. .dialog_change >>> .el-dialog__header {
  15742. background: #f2f2f2;
  15743. text-align: center;
  15744. }
  15745. .dialog_change >>> .el-dialog__title {
  15746. line-height: 5px;
  15747. }
  15748. .dialog_change >>> .el-dialog__body {
  15749. background: #fff;
  15750. padding: 10px 20px;
  15751. }
  15752. .score_box {
  15753. display: flex;
  15754. align-items: center;
  15755. margin-bottom: 18px;
  15756. margin-top: 20px;
  15757. }
  15758. .up_photo {
  15759. width: 120px;
  15760. cursor: pointer;
  15761. margin-top: 10px;
  15762. }
  15763. .up_photo2 {
  15764. width: 180px;
  15765. box-sizing: border-box;
  15766. min-width: 180px;
  15767. height: 180px;
  15768. max-height: 180px;
  15769. min-height: 180px;
  15770. cursor: pointer;
  15771. display: flex;
  15772. flex-direction: column;
  15773. align-items: center;
  15774. justify-content: center;
  15775. background: rgb(242, 246, 255);
  15776. /* padding: 25px; */
  15777. margin-bottom: 10px;
  15778. }
  15779. .up_photo2 img {
  15780. width: 50%;
  15781. height: auto;
  15782. }
  15783. .up_photo2 span {
  15784. color: #898989;
  15785. }
  15786. .plworkBox {
  15787. display: flex;
  15788. align-items: center;
  15789. margin-top: 10px;
  15790. flex-wrap: wrap;
  15791. }
  15792. .upload_send {
  15793. margin: 30px auto 30px;
  15794. width: 60%;
  15795. background: #169bd6;
  15796. text-align: center;
  15797. height: 35px;
  15798. line-height: 35px;
  15799. color: #fff;
  15800. border-radius: 5px;
  15801. cursor: pointer;
  15802. }
  15803. .marginT {
  15804. margin-top: 20px;
  15805. }
  15806. .cd_content_steps {
  15807. display: flex;
  15808. width: 90%;
  15809. justify-content: space-around;
  15810. border-top: 1px solid #eeeeee;
  15811. }
  15812. .cd_steps_box {
  15813. display: flex;
  15814. justify-content: center;
  15815. align-items: center;
  15816. flex-direction: column;
  15817. cursor: pointer;
  15818. }
  15819. .first {
  15820. display: flex;
  15821. align-items: center;
  15822. margin: 15px 0 20px 0;
  15823. font-size: 20px;
  15824. }
  15825. .first > div:nth-child(2) {
  15826. font-size: 16px !important;
  15827. padding-left: 10px;
  15828. line-height: 26px;
  15829. box-sizing: border-box;
  15830. }
  15831. .blue_box_one {
  15832. text-align: center;
  15833. color: #fff;
  15834. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  15835. border-radius: 7px;
  15836. margin: 10px;
  15837. cursor: pointer;
  15838. width: 95%;
  15839. height: 45px;
  15840. display: flex;
  15841. flex-direction: row;
  15842. justify-content: flex-start;
  15843. align-items: center;
  15844. }
  15845. .blue_box_one > div:nth-child(1) {
  15846. line-height: 30px;
  15847. margin: 0 5px 0 10px;
  15848. width: 30%;
  15849. min-width: 70px;
  15850. border-radius: 4px;
  15851. }
  15852. .blue_box_one > div:nth-child(2) {
  15853. white-space: nowrap;
  15854. text-overflow: ellipsis;
  15855. overflow: hidden;
  15856. word-break: break-all;
  15857. width: 70%;
  15858. text-align: left;
  15859. margin-right: 10px;
  15860. max-width: calc(100% - 85px);
  15861. }
  15862. .blue_box_one > div:nth-child(2):hover {
  15863. overflow: hidden;
  15864. text-overflow: ellipsis;
  15865. white-space: nowrap;
  15866. cursor: pointer;
  15867. }
  15868. .upFile {
  15869. margin: 0 auto;
  15870. width: 120px;
  15871. background: #70afdb;
  15872. color: #fff;
  15873. height: 30px;
  15874. text-align: center;
  15875. line-height: 30px;
  15876. border-radius: 5px;
  15877. font-size: 14px;
  15878. cursor: pointer;
  15879. }
  15880. .courseTitle {
  15881. background: #205cc6;
  15882. width: 85%;
  15883. margin: 10px auto;
  15884. color: #fff;
  15885. border-radius: 5px;
  15886. padding: 10px 10px;
  15887. display: flex;
  15888. flex-direction: row;
  15889. align-items: center;
  15890. justify-content: space-between;
  15891. text-align: center;
  15892. }
  15893. .courseTitle .ctitle {
  15894. font-weight: bold;
  15895. font-size: 20px;
  15896. white-space: nowrap;
  15897. overflow: hidden;
  15898. text-overflow: ellipsis;
  15899. }
  15900. .courseTitle .inviteBox {
  15901. font-size: 14px;
  15902. margin-top: 5px;
  15903. color: #a6cbff;
  15904. }
  15905. .courseTitle >>> .el-tooltip {
  15906. width: 100%;
  15907. white-space: nowrap;
  15908. overflow: hidden;
  15909. text-overflow: ellipsis;
  15910. word-break: break-word;
  15911. }
  15912. .ml {
  15913. margin-left: 20px;
  15914. color: #5b7dba;
  15915. border-left: 3px solid #5b7dba;
  15916. padding-left: 5px;
  15917. font-weight: bold;
  15918. }
  15919. .return {
  15920. width: 2rem;
  15921. height: 2rem;
  15922. cursor: pointer;
  15923. }
  15924. .return > img {
  15925. width: 100%;
  15926. height: 100%;
  15927. }
  15928. .returnBtn {
  15929. background: #499eef;
  15930. width: 65px;
  15931. height: 30px;
  15932. color: #fff;
  15933. text-align: center;
  15934. line-height: 32px;
  15935. margin-right: 20px;
  15936. cursor: pointer;
  15937. border-radius: 5px;
  15938. font-size: 14px;
  15939. }
  15940. .tool {
  15941. display: flex;
  15942. flex-direction: column;
  15943. flex-wrap: nowrap;
  15944. width: 13%;
  15945. margin: 0 30px;
  15946. align-items: center;
  15947. }
  15948. .whiteBIcon {
  15949. width: 150px;
  15950. cursor: pointer;
  15951. }
  15952. .whiteBIcon > img {
  15953. width: 100%;
  15954. height: 100%;
  15955. }
  15956. .mask {
  15957. background-color: rgba(0, 0, 0, 0);
  15958. position: fixed;
  15959. top: 0;
  15960. left: 0;
  15961. width: 100%;
  15962. height: 100%;
  15963. z-index: 20000;
  15964. display: flex;
  15965. align-items: center;
  15966. justify-content: center;
  15967. }
  15968. .progressBox {
  15969. width: 500px;
  15970. height: 180px;
  15971. background: #fff;
  15972. border-radius: 10px;
  15973. box-shadow: 0 0 6px 1px #bfbfbf;
  15974. display: flex;
  15975. align-items: center;
  15976. justify-content: center;
  15977. flex-direction: column;
  15978. position: relative;
  15979. color: #6c6c6c;
  15980. }
  15981. .progressBox >>> .el-progress-bar__outer {
  15982. background-color: #d1dfff !important;
  15983. }
  15984. .progressBox .lbox {
  15985. height: 50px;
  15986. font-size: 19px;
  15987. display: flex;
  15988. align-items: center;
  15989. color: #747474;
  15990. }
  15991. .progressBox .lbox img {
  15992. width: 40px;
  15993. margin-right: 20px;
  15994. }
  15995. .closeCss {
  15996. position: absolute;
  15997. top: 8px;
  15998. right: 8px;
  15999. cursor: pointer;
  16000. width: 20px;
  16001. height: 20px;
  16002. }
  16003. .closeCss > img {
  16004. width: 100%;
  16005. height: 100%;
  16006. }
  16007. .uploadVedio {
  16008. display: flex;
  16009. flex-direction: column;
  16010. flex-wrap: nowrap;
  16011. justify-content: center;
  16012. align-items: center;
  16013. margin: 0 15px 10px 0;
  16014. }
  16015. .uploadVedio > img {
  16016. width: 30px;
  16017. height: 30px;
  16018. }
  16019. .uploadVedio > span {
  16020. white-space: nowrap;
  16021. overflow: hidden;
  16022. text-overflow: ellipsis;
  16023. width: 75px;
  16024. margin-top: 7px;
  16025. }
  16026. .picName {
  16027. white-space: nowrap;
  16028. overflow: hidden;
  16029. text-overflow: ellipsis;
  16030. width: 75px;
  16031. margin-top: 7px;
  16032. }
  16033. .new_top {
  16034. display: flex;
  16035. background: #fff;
  16036. flex-direction: row;
  16037. justify-content: flex-start;
  16038. align-items: center;
  16039. height: 60px;
  16040. position: relative;
  16041. }
  16042. .before {
  16043. position: absolute;
  16044. background: #c3dad4;
  16045. width: 6px;
  16046. height: 100%;
  16047. }
  16048. .courseIndex {
  16049. display: flex;
  16050. flex-direction: row;
  16051. align-items: center;
  16052. width: calc(100% - 520px);
  16053. }
  16054. .courseIndex > div:nth-child(1) {
  16055. margin: 0 20px;
  16056. padding-left: 5px;
  16057. font-size: 24px;
  16058. min-width: 100px;
  16059. font-weight: bold;
  16060. border-left: 4px solid #3363b9;
  16061. height: 35px;
  16062. text-align: center;
  16063. line-height: 35px;
  16064. }
  16065. .courseIndex > div:nth-child(2) {
  16066. font-size: 23px;
  16067. /* width: 300px; */
  16068. max-width: calc(100% - 180px);
  16069. white-space: nowrap;
  16070. overflow: hidden;
  16071. text-overflow: ellipsis;
  16072. }
  16073. .courseIndex > div:nth-child(3) {
  16074. border-bottom: 1px solid #d7d7d7;
  16075. padding-bottom: 5px;
  16076. background: #49a0f0;
  16077. width: 55px;
  16078. min-width: 55px;
  16079. border-radius: 5px;
  16080. color: #fff;
  16081. text-align: center;
  16082. height: 20px;
  16083. line-height: 26px;
  16084. font-size: 14px;
  16085. margin: 0 0 0 10px;
  16086. }
  16087. .course_text {
  16088. padding: 20px 0 0 15px;
  16089. text-indent: 30px;
  16090. width: 80%;
  16091. min-height: 20px;
  16092. }
  16093. .vedioList {
  16094. background: #f2f2f2;
  16095. border: 1px solid #ececec;
  16096. /* width: 38.8%; */
  16097. width: 100%;
  16098. height: 445px;
  16099. border-radius: 10px;
  16100. overflow: hidden;
  16101. }
  16102. .vedioNav {
  16103. margin: 10px 0 0 15px;
  16104. border-bottom: 1px solid #d7d7d7;
  16105. padding-bottom: 5px;
  16106. background: #96d1ff;
  16107. width: 55px;
  16108. min-width: 55px;
  16109. border-radius: 5px;
  16110. color: #fff;
  16111. text-align: center;
  16112. height: 20px;
  16113. line-height: 26px;
  16114. font-size: 14px;
  16115. }
  16116. .queTop {
  16117. display: flex;
  16118. padding: 20px 0 20px 30px;
  16119. width: 100%;
  16120. flex-direction: row;
  16121. justify-content: flex-start;
  16122. align-items: center;
  16123. border-bottom: 1px solid #eeeeee;
  16124. box-sizing: border-box;
  16125. }
  16126. .question {
  16127. width: 40px;
  16128. margin-right: 10px;
  16129. margin-top: 7px;
  16130. }
  16131. .queTitle {
  16132. margin-left: 5px;
  16133. font-size: 25px;
  16134. display: flex;
  16135. align-items: center;
  16136. }
  16137. .addEditor {
  16138. width: 100px;
  16139. height: 30px;
  16140. background: #42cda6;
  16141. color: #fff;
  16142. border-radius: 5px;
  16143. text-align: center;
  16144. line-height: 30px;
  16145. box-shadow: 1px 3px 6px 1px #bfbfbf;
  16146. cursor: pointer;
  16147. }
  16148. .vedioName {
  16149. /* text-overflow: ellipsis;
  16150. top: 8px;
  16151. font-size: 14px;
  16152. overflow: hidden;
  16153. width: 100%;
  16154. word-break: break-all;
  16155. white-space: nowrap; */
  16156. cursor: pointer;
  16157. margin: 0px 0px 10px 5px;
  16158. white-space: nowrap;
  16159. overflow: hidden;
  16160. text-overflow: ellipsis;
  16161. width: 100%;
  16162. }
  16163. .vedioTime {
  16164. width: 35px;
  16165. position: absolute;
  16166. color: #fff;
  16167. bottom: 0px;
  16168. right: 0px;
  16169. text-align: center;
  16170. background: #46411f;
  16171. height: 20px;
  16172. font-size: 14px;
  16173. line-height: 20px;
  16174. }
  16175. .homework {
  16176. width: 200px;
  16177. display: flex;
  16178. flex-direction: column;
  16179. flex-wrap: nowrap;
  16180. align-items: center;
  16181. cursor: pointer;
  16182. }
  16183. .homebox {
  16184. display: flex;
  16185. flex-wrap: wrap;
  16186. flex-direction: row;
  16187. justify-content: flex-start;
  16188. align-items: center;
  16189. padding: 15px 0;
  16190. }
  16191. .isChooseActive {
  16192. color: #3e88f4;
  16193. border-bottom: 2px solid #2f80f3;
  16194. }
  16195. .chooseWho {
  16196. display: flex;
  16197. width: 100%;
  16198. flex-direction: row;
  16199. flex-wrap: nowrap;
  16200. justify-content: flex-start;
  16201. padding-bottom: 10px;
  16202. }
  16203. .chooseWho > div {
  16204. cursor: pointer;
  16205. padding-bottom: 10px;
  16206. margin: 0 30px;
  16207. }
  16208. .addPoint > div > img {
  16209. cursor: pointer;
  16210. margin: 0 10px;
  16211. width: 85px;
  16212. border-radius: 15px;
  16213. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  16214. }
  16215. .addPoint > div {
  16216. display: flex;
  16217. flex-direction: column;
  16218. flex-wrap: nowrap;
  16219. align-items: center;
  16220. }
  16221. .isBorder > div {
  16222. margin: 0 0 10px 0;
  16223. align-items: flex-start !important;
  16224. }
  16225. .noiframeBox {
  16226. display: flex;
  16227. flex-wrap: wrap;
  16228. }
  16229. .iframeBox iframe {
  16230. width: 100%;
  16231. height: 800px;
  16232. border: none;
  16233. margin-bottom: 20px;
  16234. border: 1px solid #ccc;
  16235. }
  16236. .upload_toolBtn {
  16237. background: #6b92c9;
  16238. color: #fff;
  16239. width: 110px;
  16240. text-align: center;
  16241. height: 35px;
  16242. line-height: 35px;
  16243. font-size: 14px;
  16244. border-radius: 5px;
  16245. cursor: pointer;
  16246. position: absolute;
  16247. right: 10px;
  16248. bottom: 0;
  16249. }
  16250. .binfo_input,
  16251. .pj {
  16252. font: inherit;
  16253. color: currentColor;
  16254. width: 100%;
  16255. margin: 0;
  16256. padding: 15px 14px;
  16257. display: block;
  16258. min-width: 0;
  16259. outline: none;
  16260. box-sizing: content-box;
  16261. background: none;
  16262. -webkit-tap-highlight-color: transparent;
  16263. border: 1px solid rgba(0, 0, 0, 0.23);
  16264. border-radius: 4px;
  16265. box-sizing: border-box;
  16266. resize: none;
  16267. }
  16268. .binfo_input:focus-visible {
  16269. border: 1px solid rgba(61, 103, 188);
  16270. }
  16271. .dialog_diy >>> .el-dialog__header,
  16272. .dialog_diy1 >>> .el-dialog__header {
  16273. background: #454545 !important;
  16274. padding: 15px 20px;
  16275. }
  16276. .dialog_diy >>> .el-dialog__title,
  16277. .dialog_diy1 >>> .el-dialog__title {
  16278. color: #fff;
  16279. }
  16280. .dialog_diy >>> .el-dialog__headerbtn,
  16281. .dialog_diy1 >>> .el-dialog__headerbtn {
  16282. top: 19px;
  16283. }
  16284. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  16285. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  16286. color: #fff;
  16287. }
  16288. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  16289. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  16290. color: #fff;
  16291. }
  16292. .dialog_diy1 >>> .el-dialog__body {
  16293. padding: 0;
  16294. }
  16295. .dialog_diy >>> .el-dialog__body,
  16296. .dialog_diy >>> .el-dialog__footer,
  16297. .dialog_diy1 >>> .el-dialog__footer {
  16298. background: #fafafa;
  16299. }
  16300. .a_addBox {
  16301. margin: 10px 0;
  16302. background: #fff;
  16303. padding: 15px;
  16304. max-height: 400px;
  16305. overflow: auto;
  16306. }
  16307. .a_add_box {
  16308. border-bottom: 2px solid #eee;
  16309. padding-bottom: 10px;
  16310. }
  16311. .a_add_head {
  16312. display: flex;
  16313. align-items: flex-start;
  16314. /* justify-content: space-between; */
  16315. flex-direction: column;
  16316. /* flex-direction: row; */
  16317. margin: 10px 0 20px 0;
  16318. font-size: 18px;
  16319. width: 100%;
  16320. }
  16321. .a_add_head .a_add_head_input {
  16322. width: 300px;
  16323. }
  16324. .a_add_head .a_add_head_div {
  16325. display: flex;
  16326. align-items: center;
  16327. justify-content: space-between;
  16328. }
  16329. .a_add_body {
  16330. display: flex;
  16331. align-items: center;
  16332. }
  16333. .a_add_input {
  16334. display: flex;
  16335. align-items: center;
  16336. flex-wrap: wrap;
  16337. }
  16338. .a_add_input >>> el-radio-group {
  16339. margin: 10px 0;
  16340. }
  16341. .a_add_input >>> .el-radio,
  16342. .a_add_input >>> .el-checkbox {
  16343. margin-bottom: 10px;
  16344. display: flex;
  16345. flex-direction: row;
  16346. flex-wrap: nowrap;
  16347. align-items: center;
  16348. }
  16349. .redioStyle >>> .el-radio__label {
  16350. font-size: 18px;
  16351. }
  16352. .redioStyle >>> .el-checkbox__label {
  16353. font-size: 18px;
  16354. }
  16355. .toolHeng2 {
  16356. width: 100%;
  16357. }
  16358. .toolHeng {
  16359. display: flex;
  16360. flex-direction: row;
  16361. flex-wrap: wrap;
  16362. justify-content: flex-start;
  16363. align-items: center;
  16364. width: 100%;
  16365. }
  16366. .toolHeng > div {
  16367. padding-left: 20px;
  16368. }
  16369. .isWidth {
  16370. width: 20%;
  16371. }
  16372. .textTitle {
  16373. display: flex;
  16374. flex-direction: row;
  16375. flex-wrap: nowrap;
  16376. align-items: center;
  16377. width: 95%;
  16378. }
  16379. .textTitle >>> .el-form-item__label {
  16380. font-size: 22px;
  16381. color: #918f8f;
  16382. width: 100px;
  16383. }
  16384. .textTitle >>> .el-form-item__content {
  16385. width: calc(100% - 100px);
  16386. }
  16387. .textCss >>> .el-dialog {
  16388. width: 800px !important;
  16389. height: 400px;
  16390. background: #fafafa;
  16391. }
  16392. .textCss >>> .el-dialog__body {
  16393. margin: 55px 8% 0 8%;
  16394. padding: 0 !important;
  16395. }
  16396. .textCss >>> .el-dialog__footer {
  16397. padding-top: 38px;
  16398. }
  16399. .toolsCss >>> .el-dialog__body {
  16400. padding: 20px;
  16401. }
  16402. .lineCss >>> .el-dialog__body {
  16403. display: flex;
  16404. flex-direction: row;
  16405. align-items: center;
  16406. justify-content: center;
  16407. }
  16408. .newNav {
  16409. display: flex;
  16410. flex-direction: row;
  16411. align-items: baseline;
  16412. justify-content: flex-start;
  16413. }
  16414. .navText {
  16415. cursor: pointer;
  16416. margin: 0px 0px 10px 5px;
  16417. white-space: nowrap;
  16418. overflow: hidden;
  16419. text-overflow: ellipsis;
  16420. /* width: 300px; */
  16421. width: 100%;
  16422. }
  16423. .noVedio {
  16424. display: flex;
  16425. flex-direction: row;
  16426. justify-content: center;
  16427. align-content: center;
  16428. }
  16429. .noNavText {
  16430. cursor: pointer;
  16431. margin: 0px 0px 10px 5px;
  16432. width: 112px;
  16433. }
  16434. .listNoVedio {
  16435. margin: 0 0 0 30px;
  16436. width: 97%;
  16437. }
  16438. .video-player >>> .video-js {
  16439. height: 100%;
  16440. }
  16441. .hangVedioList {
  16442. width: 90% !important;
  16443. height: 150px !important;
  16444. margin: 20px 0 0 30px;
  16445. }
  16446. .hangVedio {
  16447. width: 100%;
  16448. height: 170px !important;
  16449. align-items: flex-start !important;
  16450. }
  16451. .hangHand {
  16452. height: 150px !important;
  16453. }
  16454. .twoChild {
  16455. width: 95%;
  16456. margin: 10px;
  16457. border-radius: 5px;
  16458. background: #f2f2f2;
  16459. display: flex;
  16460. flex-direction: column;
  16461. flex-wrap: nowrap;
  16462. justify-content: flex-start;
  16463. align-items: flex-start;
  16464. transition: all 0.5s;
  16465. overflow: hidden;
  16466. height: 0;
  16467. background: #e7f3ff;
  16468. }
  16469. .twoChild > div:nth-child(1) {
  16470. margin-top: 5px;
  16471. }
  16472. .navChild {
  16473. width: 100%;
  16474. cursor: pointer;
  16475. margin-bottom: 10px;
  16476. position: relative;
  16477. }
  16478. .navChild img {
  16479. position: absolute;
  16480. right: 11px;
  16481. width: 15px;
  16482. top: 50%;
  16483. transform: translateY(-50%);
  16484. }
  16485. .navActive {
  16486. height: auto;
  16487. }
  16488. .navTask {
  16489. display: flex;
  16490. flex-direction: row;
  16491. flex-wrap: nowrap;
  16492. align-items: center;
  16493. align-content: flex-start;
  16494. height: 40px;
  16495. justify-content: flex-start;
  16496. padding: 0 10px;
  16497. width: 100%;
  16498. box-sizing: border-box;
  16499. }
  16500. .navTaskname {
  16501. white-space: nowrap;
  16502. text-overflow: ellipsis;
  16503. overflow: hidden;
  16504. word-break: break-all;
  16505. padding-left: 5px;
  16506. }
  16507. .openTaskActive {
  16508. color: #4386e6;
  16509. }
  16510. .iframeName {
  16511. margin: 5px 0;
  16512. border-left: 4px solid #41c4a4;
  16513. padding-left: 4px;
  16514. }
  16515. .toolTitle {
  16516. margin: 0px 0px 20px;
  16517. font-size: 20px;
  16518. font-weight: 500;
  16519. border-left: 4px solid #41c4a4;
  16520. padding-left: 4px;
  16521. }
  16522. .cru_selectBox {
  16523. overflow: auto;
  16524. width: 96%;
  16525. margin: 0 auto;
  16526. height: calc(100% - 40px - 21px - 20px);
  16527. }
  16528. .cru_selectBox::-webkit-scrollbar,
  16529. .study_top::-webkit-scrollbar,
  16530. .textContent::-webkit-scrollbar {
  16531. /*滚动条整体样式*/
  16532. width: 6px;
  16533. /*高宽分别对应横竖滚动条的尺寸*/
  16534. height: 6px;
  16535. }
  16536. /*定义滚动条轨道 内阴影+圆角*/
  16537. .cru_selectBox::-webkit-scrollbar-track,
  16538. .study_top::-webkit-scrollbar-track,
  16539. .textContent::-webkit-scrollbar {
  16540. border-radius: 10px;
  16541. background-color: #b8bdc9;
  16542. }
  16543. /*定义滑块 内阴影+圆角*/
  16544. .cru_selectBox::-webkit-scrollbar-thumb,
  16545. .study_top::-webkit-scrollbar-thumb,
  16546. .textContent::-webkit-scrollbar-thumb {
  16547. border-radius: 10px;
  16548. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  16549. background-color: #2c5ab3;
  16550. }
  16551. .vedioBox {
  16552. border-radius: 20px;
  16553. background: #fff;
  16554. margin-bottom: 10px;
  16555. }
  16556. .taskBox {
  16557. margin: 15px auto 20px;
  16558. background: #f7f7f7;
  16559. width: 97%;
  16560. border-radius: 10px;
  16561. }
  16562. .vedioTaskBox {
  16563. width: 100%;
  16564. display: flex;
  16565. flex-direction: row;
  16566. flex-wrap: nowrap;
  16567. align-items: flex-start;
  16568. position: relative;
  16569. }
  16570. .toolBox {
  16571. padding: 20px 0 0 0;
  16572. display: flex;
  16573. }
  16574. .btnAll {
  16575. position: absolute;
  16576. right: 0;
  16577. display: flex;
  16578. flex-direction: row;
  16579. flex-wrap: nowrap;
  16580. align-items: center;
  16581. }
  16582. .vedioTimeBox {
  16583. display: flex;
  16584. flex-direction: row;
  16585. align-items: center;
  16586. flex-wrap: nowrap;
  16587. position: relative;
  16588. }
  16589. .navBox {
  16590. background: #fff;
  16591. height: calc(100% - 40px);
  16592. padding: 5px 1px 0;
  16593. overflow-y: auto;
  16594. overflow-x: hidden;
  16595. }
  16596. .worksBox {
  16597. padding: 5px 0 0 10px;
  16598. border-bottom: 1px solid #eeeeee;
  16599. }
  16600. .worksBTitle {
  16601. font-size: 20px;
  16602. padding-bottom: 15px;
  16603. border-bottom: 1px solid #eeeeee;
  16604. display: flex;
  16605. align-items: center;
  16606. }
  16607. .greenBox {
  16608. width: 5px;
  16609. height: 30px;
  16610. background: #63b6fa;
  16611. margin-right: 5px;
  16612. }
  16613. .worksDetailBox {
  16614. display: flex;
  16615. width: 100%;
  16616. flex-direction: row;
  16617. flex-wrap: wrap;
  16618. align-items: flex-end;
  16619. justify-content: flex-start;
  16620. padding: 15px 0;
  16621. }
  16622. .works {
  16623. display: flex;
  16624. flex-direction: column;
  16625. flex-wrap: nowrap;
  16626. align-items: flex-start;
  16627. justify-content: flex-start;
  16628. align-content: center;
  16629. max-width: 240px;
  16630. width: calc(100% / 3 - 10px);
  16631. height: auto;
  16632. margin-right: 10px;
  16633. margin-bottom: 10px;
  16634. overflow: hidden;
  16635. height: 140px;
  16636. box-shadow: 0 0 6px 1px #dfdada;
  16637. border-radius: 15px;
  16638. }
  16639. .workImg {
  16640. width: 100%;
  16641. /* height: calc(100% - 40px); */
  16642. height: 105px;
  16643. position: relative;
  16644. }
  16645. .workImg > img {
  16646. width: 100%;
  16647. height: 100%;
  16648. object-fit: contain;
  16649. cursor: pointer;
  16650. }
  16651. .worksName {
  16652. height: 40px;
  16653. line-height: 40px;
  16654. display: flex;
  16655. width: 100%;
  16656. flex-direction: row;
  16657. flex-wrap: nowrap;
  16658. justify-content: space-between;
  16659. align-items: center;
  16660. margin: 0 0 0 10px;
  16661. }
  16662. .worksName > div:nth-child(1) {
  16663. width: 110px;
  16664. white-space: nowrap;
  16665. overflow: hidden;
  16666. text-overflow: ellipsis;
  16667. }
  16668. .worksName > div:nth-child(2) {
  16669. color: #b7b4b5;
  16670. }
  16671. .noWorksS {
  16672. padding: 15px 0;
  16673. display: flex;
  16674. flex-direction: row;
  16675. flex-wrap: wrap;
  16676. align-items: center;
  16677. justify-content: flex-start;
  16678. }
  16679. .noWorksName,
  16680. .isWorksName {
  16681. background: #7cbcf1;
  16682. color: #fff;
  16683. width: 90px;
  16684. height: 25px;
  16685. text-align: center;
  16686. line-height: 25px;
  16687. border-radius: 5px;
  16688. margin: 10px 15px 10px 0;
  16689. white-space: nowrap;
  16690. overflow: hidden;
  16691. padding: 5px;
  16692. text-overflow: ellipsis;
  16693. cursor: pointer;
  16694. }
  16695. .isWorksName {
  16696. background: #46a1eb !important;
  16697. width: 100px;
  16698. height: 40px;
  16699. line-height: 40px;
  16700. position: relative;
  16701. }
  16702. .noWorksName:hover {
  16703. background: #46a1eb !important;
  16704. }
  16705. .title {
  16706. background: #1e5cc9;
  16707. /* width: 98%; */
  16708. height: 45px;
  16709. color: #fff;
  16710. line-height: 45px;
  16711. padding-left: 20px;
  16712. box-sizing: border-box;
  16713. }
  16714. .textBox {
  16715. font-size: 20px;
  16716. width: 90%;
  16717. display: flex;
  16718. flex-direction: column;
  16719. align-items: center;
  16720. margin: 20px auto 0;
  16721. max-height: 500px;
  16722. overflow: auto;
  16723. }
  16724. .textContent {
  16725. font-size: 18px;
  16726. width: 95%;
  16727. max-width: 95%;
  16728. }
  16729. .answerBg {
  16730. background: url("../assets/icon/answerBgNew.png") no-repeat;
  16731. background-size: 100% 100%;
  16732. width: 100%;
  16733. height: 100%;
  16734. color: #fff;
  16735. text-align: center;
  16736. display: flex;
  16737. flex-direction: column;
  16738. flex-wrap: nowrap;
  16739. align-items: center;
  16740. position: relative;
  16741. justify-content: center;
  16742. }
  16743. .answerBg > div:nth-child(1) {
  16744. /* font-size: 22px;
  16745. padding: 25px 0 10px; */
  16746. }
  16747. .answerContent {
  16748. width: 215px;
  16749. max-height: 60px;
  16750. word-break: break-all;
  16751. text-align: center;
  16752. /* white-space: nowrap; */
  16753. overflow: hidden;
  16754. text-overflow: ellipsis;
  16755. /* padding: 23px 0 0; */
  16756. -webkit-line-clamp: 3;
  16757. -webkit-box-orient: vertical;
  16758. display: -webkit-box;
  16759. font-size: 15px;
  16760. }
  16761. .elist_input_box {
  16762. display: flex;
  16763. align-items: flex-start;
  16764. flex-wrap: nowrap;
  16765. padding: 10px 0 15px 30px;
  16766. flex-direction: column;
  16767. }
  16768. .elist_input {
  16769. /* width: 40%; */
  16770. width: 100%;
  16771. }
  16772. .elist_input .elist_input_box input {
  16773. font: inherit;
  16774. color: currentColor;
  16775. width: 200px;
  16776. padding: 8px 14px;
  16777. display: block;
  16778. min-width: 0;
  16779. outline: none;
  16780. border: 1px solid rgba(0, 0, 0, 0.23);
  16781. border-radius: 4px;
  16782. box-sizing: border-box;
  16783. background: #fff;
  16784. margin: 0 20px 0 0;
  16785. }
  16786. .elist_input .elist_input_box span {
  16787. height: 36px;
  16788. line-height: 36px;
  16789. color: rgb(82, 82, 82);
  16790. }
  16791. .elist_input .elist_input_box .remove {
  16792. height: 20px;
  16793. width: 20px;
  16794. background-size: 100% 100%;
  16795. background-position: unset;
  16796. margin-left: 5px;
  16797. }
  16798. .elist_input_box >>> .el-rate {
  16799. display: flex;
  16800. height: 36px;
  16801. align-items: center;
  16802. }
  16803. .elist_input_box .elist_inptu_text {
  16804. min-height: 50px;
  16805. /* width: 500px;
  16806. max-height: 150px; */
  16807. width: 100%;
  16808. line-height: 50px;
  16809. color: rgb(82, 82, 82);
  16810. overflow: auto;
  16811. text-indent: 5px;
  16812. background: #f7f6f9;
  16813. border-radius: 10px;
  16814. }
  16815. .elist_input_box .elist_inptu_text input {
  16816. width: 500px;
  16817. }
  16818. .elist_input_box >>> .el-rate__icon {
  16819. font-size: 24px;
  16820. }
  16821. .isClick {
  16822. background: #4d9def;
  16823. }
  16824. .bzBox {
  16825. display: flex;
  16826. flex-direction: row;
  16827. align-items: center;
  16828. }
  16829. .bzBox > div:nth-child(1) {
  16830. width: 4px;
  16831. height: 40px;
  16832. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  16833. }
  16834. .bzBox > div:nth-child(2) {
  16835. font-size: 23px;
  16836. font-weight: bold;
  16837. padding: 0px 0px 0 10px;
  16838. }
  16839. .navTitile {
  16840. padding: 0 0px 0 15px;
  16841. color: #fff;
  16842. height: 40px;
  16843. line-height: 40px;
  16844. }
  16845. .isTypeOne {
  16846. width: 240px;
  16847. height: 170px;
  16848. /* border: 1px solid #f8f8f8; */
  16849. border-radius: 10px;
  16850. box-shadow: 0 0 6px 1px #dfdada;
  16851. }
  16852. .e_add_top {
  16853. display: flex;
  16854. justify-content: space-between;
  16855. padding: 20px 20px 0 20px;
  16856. border-radius: 3px;
  16857. background: #fff;
  16858. }
  16859. .e_add_title2 {
  16860. display: flex;
  16861. align-items: center;
  16862. }
  16863. .e_add_title2 span {
  16864. width: 40px;
  16865. }
  16866. .e_add_title {
  16867. display: flex;
  16868. align-items: center;
  16869. color: #b8b8b8;
  16870. font-size: 18px;
  16871. position: relative;
  16872. height: 40px;
  16873. }
  16874. .e_add_title span {
  16875. margin-right: 10px;
  16876. }
  16877. .e_add_title .el_input {
  16878. width: 300px;
  16879. }
  16880. .e_add_title >>> .el-input__inner {
  16881. width: 400px;
  16882. }
  16883. .e_add_btn {
  16884. }
  16885. .e_add_content {
  16886. display: flex;
  16887. width: 100%;
  16888. max-width: 650px;
  16889. height: 550px;
  16890. }
  16891. .e_add_list {
  16892. background: #fff;
  16893. height: 500px;
  16894. width: 210px;
  16895. position: relative;
  16896. margin: 15px 5px 0 0;
  16897. flex-shrink: 0;
  16898. display: flex;
  16899. flex-direction: column;
  16900. }
  16901. .e_add_list_title {
  16902. font-size: 20px;
  16903. width: 100%;
  16904. box-sizing: border-box;
  16905. padding: 15px 40px;
  16906. text-align: center;
  16907. border-bottom: 1px solid #eaeaea;
  16908. position: relative;
  16909. display: flex;
  16910. align-items: center;
  16911. justify-content: center;
  16912. height: 57px;
  16913. background: #f6f6f6;
  16914. }
  16915. .e_add_list_title span {
  16916. overflow: hidden;
  16917. white-space: nowrap;
  16918. text-overflow: ellipsis;
  16919. }
  16920. .e_add_list_title img {
  16921. position: absolute;
  16922. right: 15px;
  16923. width: 25px;
  16924. cursor: pointer;
  16925. top: 50%;
  16926. transform: translateY(-50%);
  16927. }
  16928. .e_add_list_body {
  16929. height: calc(100% - 187px);
  16930. overflow: auto;
  16931. }
  16932. .e_add_list_child {
  16933. width: 100%;
  16934. display: flex;
  16935. align-items: center;
  16936. justify-content: center;
  16937. position: relative;
  16938. box-sizing: border-box;
  16939. padding: 15px 40px;
  16940. text-align: center;
  16941. }
  16942. .e_add_list_child span {
  16943. overflow: hidden;
  16944. white-space: nowrap;
  16945. text-overflow: ellipsis;
  16946. cursor: pointer;
  16947. }
  16948. .e_add_list_child img {
  16949. position: absolute;
  16950. right: 10px;
  16951. width: 21px;
  16952. cursor: pointer;
  16953. top: 50%;
  16954. transform: translateY(-50%);
  16955. }
  16956. .e_add_list_child + .e_add_list_child {
  16957. border-top: 1px solid #eaeaea;
  16958. }
  16959. .e_add_list_child .active {
  16960. color: #409eff;
  16961. }
  16962. .e_add_list_btn {
  16963. position: absolute;
  16964. bottom: 0;
  16965. height: 50px;
  16966. background: rgb(120, 120, 254);
  16967. width: 100%;
  16968. color: #fff;
  16969. font-size: 16px;
  16970. text-align: center;
  16971. line-height: 50px;
  16972. cursor: pointer;
  16973. }
  16974. .e_add_list_detail {
  16975. position: absolute;
  16976. bottom: 0;
  16977. height: 130px;
  16978. background: rgb(120, 120, 254);
  16979. width: 100%;
  16980. color: #fff;
  16981. font-size: 16px;
  16982. display: flex;
  16983. align-items: center;
  16984. justify-content: center;
  16985. }
  16986. .e_add_list_detail textarea {
  16987. height: 90%;
  16988. width: 95%;
  16989. border: none;
  16990. resize: none;
  16991. outline: none;
  16992. padding: 5px;
  16993. box-sizing: border-box;
  16994. }
  16995. .e_add_list_pbox {
  16996. width: 100%;
  16997. max-width: 650px;
  16998. /* height: 600px; */
  16999. }
  17000. .e_add_list_pbox_title {
  17001. height: 50px;
  17002. background: #fff;
  17003. display: flex;
  17004. align-items: center;
  17005. width: 100%;
  17006. box-sizing: border-box;
  17007. padding: 0 20px;
  17008. }
  17009. .type_title {
  17010. font-size: 18px;
  17011. font-weight: 700;
  17012. }
  17013. .type_content {
  17014. font-size: 16px;
  17015. margin-left: 30px;
  17016. }
  17017. .type_content span + span {
  17018. margin-left: 20px;
  17019. }
  17020. .type_content span {
  17021. cursor: pointer;
  17022. padding-bottom: 5px;
  17023. box-sizing: border-box;
  17024. }
  17025. .type_content .active {
  17026. color: #409eff;
  17027. border-bottom: 2px solid #409eff;
  17028. }
  17029. .e_add_list_pbox_content {
  17030. height: calc(100% - 50px);
  17031. display: flex;
  17032. align-items: center;
  17033. width: 100%;
  17034. background: #fff;
  17035. }
  17036. .evaCss {
  17037. display: flex;
  17038. flex-direction: row;
  17039. flex-wrap: nowrap;
  17040. align-items: flex-start;
  17041. }
  17042. .cru_line {
  17043. position: absolute;
  17044. bottom: 0px;
  17045. transition: all 0.5s;
  17046. left: 0px;
  17047. width: 125px;
  17048. margin-left: -25px;
  17049. }
  17050. .isNoMessage {
  17051. width: 20%;
  17052. margin: 25% auto 0;
  17053. }
  17054. .isNoMessage > img {
  17055. width: 100%;
  17056. height: 100%;
  17057. }
  17058. .fullStyle >>> .el-dialog__body {
  17059. height: 100% !important;
  17060. }
  17061. .fullStyle >>> .el-dialog,
  17062. .fullStyle {
  17063. width: 100% !important;
  17064. max-width: 100% !important;
  17065. height: 100% !important;
  17066. margin: 0 !important;
  17067. }
  17068. .full_diy >>> .el-dialog {
  17069. margin: 0 !important;
  17070. height: 100%;
  17071. padding: 4px;
  17072. }
  17073. .full_diy >>> .el-dialog__body {
  17074. height: calc(100% - 100px);
  17075. }
  17076. .full_diy2 >>> .el-dialog__body {
  17077. height: calc(100% - 50px);
  17078. padding: 0;
  17079. }
  17080. .switchCss {
  17081. /* width: 100%; */
  17082. display: flex;
  17083. flex-direction: row;
  17084. flex-wrap: nowrap;
  17085. align-items: center;
  17086. /* justify-content: center; */
  17087. }
  17088. .isClickNav {
  17089. color: #499eef;
  17090. }
  17091. .commentImg {
  17092. width: 25px;
  17093. height: 25px;
  17094. cursor: pointer;
  17095. }
  17096. .commentImg > img {
  17097. width: 100%;
  17098. height: 100%;
  17099. }
  17100. .comment {
  17101. background: #f9f9f9;
  17102. border-radius: 0 0 15px 15px;
  17103. display: flex;
  17104. flex-direction: row;
  17105. flex-wrap: nowrap;
  17106. align-items: center;
  17107. justify-content: flex-end;
  17108. height: 35px;
  17109. }
  17110. .commentList {
  17111. display: flex;
  17112. flex-direction: row;
  17113. flex-wrap: nowrap;
  17114. align-items: center;
  17115. justify-content: center;
  17116. align-content: center;
  17117. /* margin-left: 15px; */
  17118. /* margin-left: 8px; */
  17119. }
  17120. .scoreImg {
  17121. width: 17px;
  17122. height: 17px;
  17123. }
  17124. .studentDetail {
  17125. display: flex;
  17126. flex-direction: row;
  17127. flex-wrap: nowrap;
  17128. /* align-items: center; */
  17129. align-items: flex-start;
  17130. }
  17131. .tx {
  17132. width: 50px;
  17133. }
  17134. .tx > img {
  17135. width: 100%;
  17136. height: 100%;
  17137. }
  17138. .nameAndTime {
  17139. display: flex;
  17140. flex-direction: column;
  17141. flex-wrap: nowrap;
  17142. align-items: flex-start;
  17143. margin-left: 10px;
  17144. }
  17145. .worksAnswer {
  17146. color: #4078dd;
  17147. margin: 10px 0;
  17148. font-size: 16px;
  17149. position: relative;
  17150. }
  17151. .worksAnswer > img {
  17152. width: 500px;
  17153. height: 300px;
  17154. object-fit: contain;
  17155. margin: 0 auto;
  17156. display: block;
  17157. }
  17158. .commentTop {
  17159. border-bottom: 1px solid #eaeaea;
  17160. padding-bottom: 10px;
  17161. }
  17162. .commentBox {
  17163. padding-top: 15px;
  17164. }
  17165. .pl {
  17166. font-size: 18px;
  17167. }
  17168. .plPerson {
  17169. width: 100%;
  17170. }
  17171. .plName {
  17172. display: flex;
  17173. flex-direction: row;
  17174. flex-wrap: nowrap;
  17175. align-items: baseline;
  17176. color: #78787a;
  17177. width: 100%;
  17178. }
  17179. .deleteComment {
  17180. cursor: pointer;
  17181. margin-left: auto;
  17182. color: #237ade;
  17183. }
  17184. .plContent {
  17185. margin-top: 5px;
  17186. }
  17187. .evalCss {
  17188. background: #fff;
  17189. font-size: 18px;
  17190. }
  17191. .nav {
  17192. color: #9d9d9d;
  17193. padding: 5px 0 15px 20px;
  17194. }
  17195. .middleBox {
  17196. padding: 5px 0 15px 20px;
  17197. }
  17198. .pfBox {
  17199. padding-bottom: 30px;
  17200. }
  17201. .nameAndrate {
  17202. display: flex;
  17203. flex-direction: row;
  17204. flex-wrap: nowrap;
  17205. align-items: center;
  17206. padding-bottom: 10px;
  17207. height: 30px;
  17208. line-height: 30px;
  17209. }
  17210. .nameAndrate > div {
  17211. margin-left: 10px;
  17212. color: #000;
  17213. height: 30px;
  17214. }
  17215. .nameAndrate >>> .el-rate__icon {
  17216. font-size: 28px !important;
  17217. }
  17218. .pfBox > div:nth-child(2) {
  17219. background: #f7f6f9;
  17220. width: 400px;
  17221. min-height: 45px;
  17222. border-radius: 10px;
  17223. font-size: 16px;
  17224. display: flex;
  17225. flex-wrap: wrap;
  17226. align-items: center;
  17227. padding: 10px 20px;
  17228. box-sizing: border-box;
  17229. color: #000;
  17230. }
  17231. .bz {
  17232. display: flex;
  17233. flex-direction: row;
  17234. flex-wrap: nowrap;
  17235. align-items: flex-start;
  17236. }
  17237. .bz > div {
  17238. padding: 0 10px;
  17239. }
  17240. .select_box2_title {
  17241. background: #fff;
  17242. border-radius: 5px;
  17243. padding: 15px 10px;
  17244. box-sizing: border-box;
  17245. margin-bottom: 10px;
  17246. display: flex;
  17247. flex-direction: row;
  17248. flex-wrap: nowrap;
  17249. align-items: center;
  17250. }
  17251. .select_box2_title > div:nth-child(2) {
  17252. margin-left: 10px;
  17253. color: #c4c4c4;
  17254. }
  17255. .select_box2_box {
  17256. display: flex;
  17257. height: 500px;
  17258. }
  17259. .select_box2_img {
  17260. width: calc(100% - 310px);
  17261. height: 100%;
  17262. overflow: auto;
  17263. background: #fff;
  17264. border-radius: 5px;
  17265. }
  17266. .select_box2_img img {
  17267. width: 100%;
  17268. }
  17269. .select_box2_answer {
  17270. background: #fff;
  17271. margin-left: 10px;
  17272. border-radius: 5px;
  17273. width: 300px;
  17274. overflow: auto;
  17275. height: 90%;
  17276. display: flex;
  17277. flex-direction: column;
  17278. align-items: flex-start;
  17279. padding-top: 10px;
  17280. box-sizing: border-box;
  17281. position: relative;
  17282. }
  17283. .select_answer_title {
  17284. padding: 0 0 15px 20px;
  17285. color: #c4c4c4;
  17286. }
  17287. .select_box2_answer_box {
  17288. margin: 0 0 10px 20px;
  17289. width: 85%;
  17290. display: flex;
  17291. flex-direction: row;
  17292. flex-wrap: nowrap;
  17293. align-items: center;
  17294. }
  17295. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  17296. color: #000;
  17297. }
  17298. .upAnswerCss {
  17299. position: absolute;
  17300. bottom: 15px;
  17301. right: 15px;
  17302. }
  17303. .upAnswerCss >>> .el-button {
  17304. width: 95px;
  17305. height: 35px;
  17306. line-height: 35px;
  17307. padding: 0;
  17308. }
  17309. .rightWidthCss {
  17310. width: 60%;
  17311. display: flex;
  17312. flex-direction: row;
  17313. align-items: flex-start;
  17314. }
  17315. .rightAnswer {
  17316. display: flex;
  17317. flex-direction: row;
  17318. flex-wrap: nowrap;
  17319. align-items: center;
  17320. color: red;
  17321. margin-bottom: 31px;
  17322. }
  17323. .rightAnswerCss {
  17324. display: flex;
  17325. flex-direction: column;
  17326. flex-wrap: nowrap;
  17327. padding-top: 60px;
  17328. }
  17329. .blueCss {
  17330. color: #767de1;
  17331. margin-left: 10px;
  17332. }
  17333. .redCss {
  17334. color: red;
  17335. }
  17336. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  17337. color: rgb(0 123 255) !important;
  17338. }
  17339. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  17340. color: rgb(0 123 255) !important;
  17341. }
  17342. .zuoyeYulan {
  17343. padding-top: 15px;
  17344. font-size: 18px;
  17345. display: flex;
  17346. align-items: flex-end;
  17347. }
  17348. .buttonA {
  17349. margin-left: 10px;
  17350. padding: 0;
  17351. }
  17352. .displayBox {
  17353. margin-bottom: 10px;
  17354. display: block;
  17355. border-bottom: 3px solid #eee;
  17356. display: flex;
  17357. align-items: center;
  17358. }
  17359. .easy_comment {
  17360. width: calc(100% - 90px);
  17361. margin-left: 10px;
  17362. display: flex;
  17363. flex-wrap: wrap;
  17364. }
  17365. .easy_comment > div {
  17366. border: 1px solid #4a4a4a;
  17367. color: #666;
  17368. border-radius: 15px;
  17369. padding: 5px 10px;
  17370. font-size: 16px;
  17371. margin-bottom: 10px;
  17372. margin-right: 5px;
  17373. cursor: pointer;
  17374. }
  17375. .easy_comment div:hover {
  17376. border: 1px solid #f7ba2a;
  17377. color: #c69217;
  17378. }
  17379. .xuan_right_box {
  17380. padding: 10px;
  17381. background: rgb(247, 247, 247);
  17382. margin: 10px 12px;
  17383. border-radius: 5px;
  17384. }
  17385. .tool_right_box {
  17386. display: flex;
  17387. align-items: center;
  17388. }
  17389. .tool_right_box + .tool_right_box {
  17390. margin-top: 10px;
  17391. }
  17392. .right_box_xuan {
  17393. background: rgb(0 123 255);
  17394. color: #fff;
  17395. border-radius: 5px;
  17396. padding: 5px;
  17397. margin-left: 10px;
  17398. }
  17399. .pButton:hover {
  17400. opacity: 1 !important;
  17401. }
  17402. .pButton {
  17403. position: fixed;
  17404. /* right: 5%; */
  17405. /* bottom: 5%; */
  17406. color: #fff;
  17407. /* width: 50px;
  17408. height: 50px; */
  17409. /* border-radius: 50%; */
  17410. text-align: center;
  17411. /* line-height: 50px; */
  17412. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  17413. cursor: pointer;
  17414. z-index: 999;
  17415. right: 0;
  17416. top: 83px;
  17417. width: 50px;
  17418. height: 50px;
  17419. background: #fff;
  17420. display: flex;
  17421. align-items: center;
  17422. justify-content: center;
  17423. box-shadow: 0px 0 8px 2px #c5c5c5;
  17424. border-radius: 5px;
  17425. }
  17426. .pzClass {
  17427. width: calc(100% - 340px);
  17428. }
  17429. .newDialogCss {
  17430. /* position: fixed;
  17431. right: 5%;
  17432. top: 50%;
  17433. width: 340px;
  17434. transform: translateY(-50%);
  17435. height: 60%;
  17436. box-shadow: 0px 0 8px 0px #555555;
  17437. border-radius: 15px;
  17438. z-index: 999; */
  17439. position: fixed;
  17440. right: 0;
  17441. top: 70px;
  17442. width: 340px;
  17443. height: calc(100% - 80px);
  17444. z-index: 999;
  17445. background: #fff;
  17446. border-radius: 15px;
  17447. border-top-right-radius: 0px;
  17448. border-bottom-right-radius: 0px;
  17449. overflow: hidden;
  17450. }
  17451. .pzTop {
  17452. color: #fff;
  17453. background: #000;
  17454. display: flex;
  17455. flex-direction: row;
  17456. flex-wrap: nowrap;
  17457. align-items: center;
  17458. justify-content: space-between;
  17459. height: 40px;
  17460. border-radius: 15px 15px 0 0;
  17461. }
  17462. .pzTop2 .checkbox {
  17463. display: flex;
  17464. align-items: center;
  17465. padding: 15px 30px;
  17466. flex: 0 0 auto;
  17467. font-weight: bold;
  17468. border-bottom: 1px solid #eee;
  17469. justify-content: space-between;
  17470. }
  17471. .pzTop2 .check {
  17472. text-align: center;
  17473. cursor: pointer;
  17474. box-sizing: border-box;
  17475. display: flex;
  17476. }
  17477. .pzTop2 img {
  17478. width: 25px;
  17479. cursor: pointer;
  17480. }
  17481. .pzTop > div:nth-child(1) {
  17482. padding-left: 10px;
  17483. }
  17484. .pzTop > div:nth-child(2) {
  17485. width: 15px;
  17486. height: 15px;
  17487. padding-right: 10px;
  17488. cursor: pointer;
  17489. }
  17490. .pzTop > div:nth-child(2) > img {
  17491. width: 100%;
  17492. height: 100%;
  17493. }
  17494. .pzBox,
  17495. .noPzBox {
  17496. height: calc(100% - 60px);
  17497. /* background: #ededed; */
  17498. background: #fff;
  17499. /* border-radius: 0 0 15px 15px; */
  17500. }
  17501. .noPzBox {
  17502. display: flex;
  17503. flex-direction: column;
  17504. flex-wrap: nowrap;
  17505. justify-content: center;
  17506. align-items: center;
  17507. }
  17508. .pzList {
  17509. background: #f7f7f7;
  17510. width: 90%;
  17511. margin: 0 auto 15px;
  17512. border-radius: 5px;
  17513. }
  17514. .pzNavTop {
  17515. display: flex;
  17516. flex-direction: row;
  17517. flex-wrap: nowrap;
  17518. padding: 10px 10px 0 10px;
  17519. align-items: center;
  17520. }
  17521. .pzDelete {
  17522. cursor: pointer;
  17523. margin-left: auto;
  17524. font-size: 14px;
  17525. color: #afafaf;
  17526. }
  17527. .pzNavTop > div:nth-child(1) {
  17528. background: #3760af;
  17529. width: 35px;
  17530. height: 35px;
  17531. color: #fff;
  17532. text-align: center;
  17533. line-height: 35px;
  17534. border-radius: 50%;
  17535. font-size: 14px;
  17536. }
  17537. .pzNavTop > div:nth-child(2) {
  17538. font-size: 18px;
  17539. color: #959595;
  17540. margin-left: 5px;
  17541. }
  17542. .pzContent {
  17543. padding: 10px;
  17544. word-break: break-word;
  17545. }
  17546. .pzContent audio {
  17547. width: 100%;
  17548. }
  17549. .pzContent audio::-webkit-media-controls-panel {
  17550. background: #fff;
  17551. }
  17552. .pzListBox {
  17553. padding-top: 15px;
  17554. height: calc(100% - 60px);
  17555. overflow: auto;
  17556. }
  17557. .addPzButton {
  17558. position: relative;
  17559. margin-top: 3px;
  17560. width: 100%;
  17561. }
  17562. .addPzButton .img1 {
  17563. position: absolute;
  17564. top: 50%;
  17565. right: 25px;
  17566. transform: translateY(-50%);
  17567. height: 100%;
  17568. display: flex;
  17569. align-items: center;
  17570. }
  17571. .addPzButton .img1 div {
  17572. display: flex;
  17573. }
  17574. .addPzButton .img1 div img {
  17575. width: 28px;
  17576. margin-left: 10px;
  17577. cursor: pointer;
  17578. }
  17579. .addPzButton .img1 div span {
  17580. font-size: 14px;
  17581. margin: 4px 0 0 3px;
  17582. color: #afafaf;
  17583. }
  17584. .addPz {
  17585. background: #4b79ce;
  17586. width: 100px;
  17587. color: #fff;
  17588. font-size: 12px;
  17589. height: 30px;
  17590. margin: 0 auto;
  17591. text-align: center;
  17592. line-height: 30px;
  17593. border-radius: 10px;
  17594. cursor: pointer;
  17595. }
  17596. .addDialogCss {
  17597. position: fixed;
  17598. right: 37%;
  17599. top: 50%;
  17600. width: 600px;
  17601. transform: translateY(-50%);
  17602. height: 70%;
  17603. min-height: 450px;
  17604. box-shadow: 0px 0 8px 0px #555555;
  17605. border-radius: 15px;
  17606. z-index: 999;
  17607. }
  17608. .teacherPz {
  17609. display: flex;
  17610. flex-direction: row;
  17611. align-items: center;
  17612. flex-wrap: nowrap;
  17613. }
  17614. .teacherPzImg {
  17615. width: 30px;
  17616. height: 30px;
  17617. }
  17618. .teacherPzImg > img {
  17619. width: 100%;
  17620. height: 100%;
  17621. }
  17622. .addPzBox {
  17623. height: calc(100% - 40px);
  17624. background: #ededed;
  17625. }
  17626. .pzAudioClass {
  17627. margin: 15px 14px;
  17628. background: #fff;
  17629. height: 100%;
  17630. display: flex;
  17631. justify-content: center;
  17632. align-items: center;
  17633. }
  17634. .pzConText {
  17635. width: 95%;
  17636. height: 100%;
  17637. margin: 10px auto 0;
  17638. border: none;
  17639. background: #fff;
  17640. border-radius: 0px;
  17641. }
  17642. .pzConText >>> .text {
  17643. height: calc(100% - 82px);
  17644. }
  17645. .addTextCss {
  17646. background: #4b79ce;
  17647. width: 80px;
  17648. height: 30px;
  17649. text-align: center;
  17650. color: #fff;
  17651. line-height: 30px;
  17652. border-radius: 10px;
  17653. margin: 10px auto 0;
  17654. cursor: pointer;
  17655. }
  17656. .pzConText:focus-visible {
  17657. border: none !important;
  17658. }
  17659. .maxWidth {
  17660. width: 1000px;
  17661. }
  17662. .noPz {
  17663. width: 150px;
  17664. margin: 0 auto 20%;
  17665. }
  17666. .noPz > img {
  17667. width: 100%;
  17668. height: 100%;
  17669. }
  17670. .pzList .time {
  17671. text-align: right;
  17672. box-sizing: border-box;
  17673. padding: 0 10px 10px 0px;
  17674. color: #949494;
  17675. font-size: 14px;
  17676. }
  17677. /* table 样式 */
  17678. .cont >>> table {
  17679. border-top: 1px solid #ccc;
  17680. border-left: 1px solid #ccc;
  17681. }
  17682. .cont >>> table td,
  17683. .cont >>> table th {
  17684. border-bottom: 1px solid #ccc;
  17685. border-right: 1px solid #ccc;
  17686. padding: 15px 5px;
  17687. max-width: 0px;
  17688. }
  17689. .cont >>> table th {
  17690. border-bottom: 2px solid #ccc;
  17691. text-align: center;
  17692. }
  17693. /* blockquote 样式 */
  17694. .cont >>> blockquote {
  17695. display: block;
  17696. border-left: 8px solid #d0e5f2;
  17697. padding: 5px 10px;
  17698. margin: 10px 0;
  17699. line-height: 1.4;
  17700. font-size: 100%;
  17701. background-color: #f1f1f1;
  17702. }
  17703. .addPzCheck {
  17704. display: flex;
  17705. flex-direction: row;
  17706. flex-wrap: nowrap;
  17707. padding: 10px 15px 0;
  17708. }
  17709. .addPzCheck span {
  17710. cursor: pointer;
  17711. padding-bottom: 5px;
  17712. font-weight: bold;
  17713. }
  17714. .addPzCheck span + span {
  17715. margin-left: 10px;
  17716. }
  17717. .addPzCheck .isChooseActive {
  17718. color: #3e88f4;
  17719. border-bottom: 2px solid #2f80f3;
  17720. }
  17721. /* code 样式 */
  17722. .cont >>> code {
  17723. display: inline-block;
  17724. *display: inline;
  17725. *zoom: 1;
  17726. background-color: #f1f1f1;
  17727. border-radius: 3px;
  17728. padding: 3px 5px;
  17729. margin: 0 3px;
  17730. }
  17731. .cont >>> pre code {
  17732. display: block;
  17733. }
  17734. /* ul ol 样式 */
  17735. .cont >>> ul,
  17736. ol {
  17737. margin: 10px 0 10px 20px;
  17738. }
  17739. .scoreBox,
  17740. .scoreDetailBox {
  17741. display: flex;
  17742. align-items: center;
  17743. justify-content: flex-start;
  17744. margin-top: 20px;
  17745. font-size: 18px;
  17746. width: 100%;
  17747. }
  17748. .scoreBox .t,
  17749. .scoreDetailBox .t {
  17750. margin-right: 10px;
  17751. width: 100px;
  17752. text-align: right;
  17753. }
  17754. .scoreDetailBox {
  17755. align-items: flex-start;
  17756. }
  17757. .scoreDetailBox >>> .el-textarea {
  17758. width: calc(100% - 200px);
  17759. }
  17760. .scoreBox >>> .el-input {
  17761. width: 130px;
  17762. font-size: 38px;
  17763. }
  17764. .scoreBox >>> .el-input__inner {
  17765. height: 60px;
  17766. }
  17767. .answerScore {
  17768. position: absolute;
  17769. top: 10px;
  17770. right: 10px;
  17771. background: #0000008f;
  17772. border-radius: 5px;
  17773. padding: 3px 5px;
  17774. font-size: 14px;
  17775. color: #fff;
  17776. cursor: pointer;
  17777. }
  17778. .open_box .switch_box {
  17779. width: 100%;
  17780. margin: 0 auto;
  17781. display: flex;
  17782. justify-content: space-between;
  17783. }
  17784. .open_box .switch_box + .switch_box {
  17785. margin-top: 10px;
  17786. }
  17787. .deleteImg {
  17788. width: 25px !important;
  17789. height: 25px !important;
  17790. cursor: pointer;
  17791. position: absolute;
  17792. top: 10px;
  17793. right: 10px;
  17794. }
  17795. .deleteImg2 {
  17796. width: 15px !important;
  17797. height: 15px !important;
  17798. top: 5px;
  17799. right: 5px;
  17800. }
  17801. .rightW {
  17802. right: 40px;
  17803. }
  17804. .drawPBox {
  17805. display: flex;
  17806. flex-direction: column;
  17807. position: relative;
  17808. }
  17809. .drawPBox span {
  17810. font-size: 18px;
  17811. color: #606266;
  17812. padding-bottom: 10px;
  17813. margin: 10px 0;
  17814. border-bottom: 1px solid #eaeaea;
  17815. }
  17816. .drawPBox img {
  17817. width: 500px;
  17818. height: 300px;
  17819. object-fit: contain;
  17820. cursor: pointer;
  17821. margin: 0 auto;
  17822. }
  17823. .sentenBox {
  17824. background: #fff;
  17825. height: 450px;
  17826. overflow: auto;
  17827. background-image: url("../assets/icon/conSentences/stuBg.png");
  17828. background-position: 102%;
  17829. background-repeat: no-repeat;
  17830. background-size: 60%;
  17831. }
  17832. .addSen {
  17833. background: #409efe;
  17834. width: 90px;
  17835. color: #fff;
  17836. height: 35px;
  17837. text-align: center;
  17838. line-height: 35px;
  17839. border-radius: 5px;
  17840. float: right;
  17841. margin: 10px 20px 0 0;
  17842. cursor: pointer;
  17843. }
  17844. .sentenTop {
  17845. display: flex;
  17846. flex-direction: row;
  17847. flex-wrap: nowrap;
  17848. align-items: center;
  17849. padding: 55px 0 0 20px;
  17850. box-sizing: border-box;
  17851. }
  17852. .sentenTop > div:nth-child(2) {
  17853. width: 300px;
  17854. margin: 0 15px;
  17855. }
  17856. .sentenTop > div:nth-child(3) {
  17857. background: #409efe;
  17858. color: #fff;
  17859. width: 65px;
  17860. height: 35px;
  17861. text-align: center;
  17862. line-height: 35px;
  17863. border-radius: 5px;
  17864. cursor: pointer;
  17865. }
  17866. .cardList,
  17867. .cardList1 {
  17868. padding: 10px 0 10px 0;
  17869. display: flex;
  17870. flex-direction: row;
  17871. flex-wrap: wrap;
  17872. align-items: center;
  17873. box-sizing: border-box;
  17874. border-bottom: 1px solid #f4f4f4;
  17875. width: 98%;
  17876. margin: 0 auto;
  17877. min-width: 60%;
  17878. max-width: 85%;
  17879. }
  17880. .cardList1 {
  17881. padding: 10px 0 10px 10px !important;
  17882. margin: 0 !important;
  17883. }
  17884. .cardBox {
  17885. display: flex;
  17886. flex-direction: row;
  17887. flex-wrap: wrap;
  17888. align-items: center;
  17889. align-content: center;
  17890. }
  17891. .cardBox > div {
  17892. margin-bottom: 10px;
  17893. }
  17894. .isCard,
  17895. .isChooseCard,
  17896. .noCard,
  17897. .isCard1 {
  17898. width: 130px;
  17899. height: 60px;
  17900. text-align: center;
  17901. line-height: 60px;
  17902. font-size: 20px;
  17903. cursor: pointer;
  17904. background-image: url("../assets/icon/conSentences/titleBorder.png");
  17905. background-size: cover;
  17906. transition: all 2s;
  17907. margin-right: 20px;
  17908. }
  17909. .isCard > div,
  17910. .noCard > div,
  17911. .isCard1 > div {
  17912. white-space: nowrap;
  17913. overflow: hidden;
  17914. text-overflow: ellipsis;
  17915. width: 75%;
  17916. margin: 0 auto;
  17917. }
  17918. .noCard {
  17919. background-image: none;
  17920. }
  17921. .isCard1 {
  17922. background-image: url("../assets/icon/conSentences/answerBorder.png");
  17923. }
  17924. .isChooseCard {
  17925. background-image: none;
  17926. border: 1px dashed #b9b9b9;
  17927. border-radius: 10px;
  17928. }
  17929. .card {
  17930. width: 130px;
  17931. height: 60px;
  17932. }
  17933. .card > img {
  17934. width: 100%;
  17935. height: 100%;
  17936. }
  17937. .rightCardBox {
  17938. margin: 10px 0 0 10px;
  17939. }
  17940. .rightCardBox > div:nth-child(1) {
  17941. margin-bottom: 10px;
  17942. }
  17943. .cardCss {
  17944. display: flex;
  17945. flex-direction: column;
  17946. flex-wrap: nowrap;
  17947. align-items: center;
  17948. border-bottom: 3px solid #b4c3d3;
  17949. padding: 0 0 5px 0;
  17950. margin-right: 10px;
  17951. }
  17952. .cardCss > div:nth-child(2) {
  17953. background: #5b7b9d;
  17954. color: #fff;
  17955. width: 20px;
  17956. height: 20px;
  17957. border-radius: 50%;
  17958. text-align: center;
  17959. line-height: 20px;
  17960. }
  17961. .isWrong {
  17962. display: flex;
  17963. flex-direction: row;
  17964. flex-wrap: nowrap;
  17965. align-content: center;
  17966. align-items: center;
  17967. }
  17968. .answerRight {
  17969. width: 25%;
  17970. }
  17971. .isTj {
  17972. display: flex;
  17973. flex-direction: row;
  17974. flex-wrap: nowrap;
  17975. align-items: center;
  17976. }
  17977. .isTj > div:nth-child(2) {
  17978. color: #727070;
  17979. margin-left: 10px;
  17980. }
  17981. .isTjImg {
  17982. width: 30px;
  17983. height: 30px;
  17984. }
  17985. .isTjImg > img {
  17986. width: 100%;
  17987. height: 100%;
  17988. }
  17989. .cardAnswerBox {
  17990. font-size: 18px;
  17991. width: 97%;
  17992. border: 5px;
  17993. padding: 0;
  17994. border-radius: 5px;
  17995. margin: 10px auto;
  17996. word-break: break-word;
  17997. }
  17998. .w_name {
  17999. margin-bottom: 10px;
  18000. }
  18001. .w_name span {
  18002. font-size: 16px;
  18003. }
  18004. .w_teachert {
  18005. width: 50px !important;
  18006. position: absolute;
  18007. height: auto !important;
  18008. z-index: 10;
  18009. right: 25px;
  18010. top: -25px;
  18011. }
  18012. .group_workBox {
  18013. }
  18014. .group_workBox + .group_workBox {
  18015. margin-top: 20px;
  18016. }
  18017. .group_box {
  18018. padding-bottom: 20px;
  18019. border-bottom: 2px solid #f0f0f0;
  18020. }
  18021. .group_title {
  18022. display: flex;
  18023. align-items: center;
  18024. justify-content: space-between;
  18025. }
  18026. .group_name {
  18027. background-image: url(../assets/icon/groupN.png);
  18028. width: 220px;
  18029. background-size: 100% 100%;
  18030. height: 67px;
  18031. padding: 0 20px 0 43px;
  18032. box-sizing: border-box;
  18033. line-height: 63px;
  18034. color: #fff;
  18035. overflow: hidden;
  18036. white-space: nowrap;
  18037. text-overflow: ellipsis;
  18038. }
  18039. .group_work {
  18040. width: 100%;
  18041. padding: 0 10px;
  18042. box-sizing: border-box;
  18043. display: flex;
  18044. flex-wrap: wrap;
  18045. }
  18046. .g_d_box {
  18047. display: flex;
  18048. flex-flow: wrap;
  18049. justify-content: space-around;
  18050. }
  18051. .g_d_box .isChair {
  18052. background-image: url(../assets/avatar.png) !important;
  18053. }
  18054. .g_d_group {
  18055. width: 500px;
  18056. margin-bottom: 80px;
  18057. }
  18058. .g_d_group_chair {
  18059. display: flex;
  18060. align-items: center;
  18061. justify-content: center;
  18062. }
  18063. .g_d_group_chair > div + div {
  18064. margin-left: 30px;
  18065. }
  18066. .g_d_group_chair > div,
  18067. .g_d_group_chair2 > div {
  18068. display: flex;
  18069. flex-direction: column;
  18070. align-items: center;
  18071. }
  18072. .g_d_group_chair > div > span:nth-child(1),
  18073. .g_d_group_chair2 > div > span:nth-child(1) {
  18074. background-image: url(../assets/icon/chair.png);
  18075. width: 50px;
  18076. height: 50px;
  18077. display: block;
  18078. background-size: 100% 100%;
  18079. }
  18080. .g_d_group_tableBox {
  18081. display: flex;
  18082. align-items: center;
  18083. justify-content: center;
  18084. }
  18085. .g_d_group_chair2 {
  18086. display: flex;
  18087. flex-direction: column;
  18088. align-items: center;
  18089. justify-content: center;
  18090. }
  18091. .g_d_group_chair2 > div + div {
  18092. margin-top: 10px;
  18093. }
  18094. .g_d_group_table {
  18095. background-image: url(../assets/icon/groupBg.png);
  18096. width: 354px;
  18097. height: 196px;
  18098. background-size: 100% 100%;
  18099. display: flex;
  18100. align-items: center;
  18101. justify-content: center;
  18102. flex-direction: column;
  18103. color: #fff;
  18104. }
  18105. .g_d_group_table > div:nth-child(1) {
  18106. font-size: 24px;
  18107. margin-bottom: 5px;
  18108. }
  18109. .g_d_group_table > div:nth-child(2) div {
  18110. cursor: pointer;
  18111. background: #2e77bf;
  18112. padding: 4px 10px;
  18113. border-radius: 5px;
  18114. }
  18115. .groupBox {
  18116. }
  18117. .groupContent + .groupContent {
  18118. margin-top: 30px;
  18119. }
  18120. .groupTitle {
  18121. font-size: 24px;
  18122. color: rgb(80, 80, 80);
  18123. margin-bottom: 20px;
  18124. }
  18125. .groupName {
  18126. display: flex;
  18127. align-items: center;
  18128. }
  18129. .groupn {
  18130. font-size: 15px;
  18131. margin-right: 10px;
  18132. }
  18133. .groupName + .groupName {
  18134. margin-top: 15px;
  18135. }
  18136. .groupBtn {
  18137. margin-left: 10px;
  18138. }
  18139. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  18140. text-align: left;
  18141. }
  18142. .g_d_btnBox {
  18143. display: flex;
  18144. justify-content: flex-end;
  18145. align-items: flex-end;
  18146. margin-bottom: 20px;
  18147. }
  18148. .updateChair {
  18149. position: relative;
  18150. }
  18151. .updateChairBtn {
  18152. position: absolute;
  18153. width: 50px;
  18154. height: 50px;
  18155. overflow: hidden;
  18156. /* display: flex; */
  18157. align-items: center;
  18158. justify-content: center;
  18159. background: #00000087;
  18160. color: #fff;
  18161. border-radius: 50px;
  18162. display: none;
  18163. cursor: pointer;
  18164. }
  18165. .updateChair:hover .updateChairBtn {
  18166. display: flex;
  18167. }
  18168. .group_staic_box {
  18169. display: flex;
  18170. padding: 30px 40px 10px;
  18171. flex-wrap: wrap;
  18172. }
  18173. .group_staic {
  18174. /* width: 50%; */
  18175. margin-bottom: 20px;
  18176. display: flex;
  18177. align-items: center;
  18178. }
  18179. .group_staic span:nth-child(1) {
  18180. width: 150px;
  18181. text-align: right;
  18182. margin-right: 15px;
  18183. }
  18184. .group_staic span:nth-child(2) {
  18185. background: rgb(0 123 255);
  18186. color: #fff;
  18187. border-radius: 5px;
  18188. padding: 5px;
  18189. }
  18190. .codeFileBox {
  18191. height: 300px;
  18192. background: #fff;
  18193. display: flex;
  18194. align-items: center;
  18195. justify-content: center;
  18196. }
  18197. .codeFileBox img {
  18198. width: 200px;
  18199. margin: 0;
  18200. height: auto;
  18201. }
  18202. .codeFileBox div {
  18203. background: rgb(80, 142, 226);
  18204. color: #fff;
  18205. padding: 10px 20px;
  18206. border-radius: 25px;
  18207. cursor: pointer;
  18208. margin-left: 15px;
  18209. }
  18210. .radioBox {
  18211. display: flex;
  18212. flex-direction: row;
  18213. flex-wrap: nowrap;
  18214. align-items: center;
  18215. }
  18216. .radioBox > div {
  18217. margin: 10px 0 0 10px;
  18218. }
  18219. /* .radioBox >>> .el-radio__input,
  18220. .radioBox >>> .el-checkbox__inner {
  18221. margin-left: 10px;
  18222. } */
  18223. .radioBox >>> .el-radio__label,
  18224. .radioBox >>> .el-checkbox__label {
  18225. display: flex;
  18226. align-items: center;
  18227. }
  18228. .inImg {
  18229. width: 100px;
  18230. cursor: pointer;
  18231. }
  18232. .inImg > img {
  18233. width: 100%;
  18234. height: 100%;
  18235. object-fit: cover;
  18236. }
  18237. .timuImgBox {
  18238. margin: 10px 0;
  18239. display: flex;
  18240. flex-direction: column;
  18241. flex-wrap: wrap;
  18242. align-items: flex-start;
  18243. }
  18244. .timuImg {
  18245. width: 100px;
  18246. margin: 5px 0;
  18247. cursor: pointer;
  18248. }
  18249. .timuImg > img {
  18250. width: 100%;
  18251. height: 100%;
  18252. object-fit: cover;
  18253. }
  18254. .worksTop {
  18255. display: flex;
  18256. flex-direction: row;
  18257. align-items: flex-end;
  18258. }
  18259. .corOpen {
  18260. margin: 0 0 0 10px;
  18261. font-size: 14px;
  18262. cursor: pointer;
  18263. color: #505050;
  18264. }
  18265. .corOpen:hover {
  18266. color: #499eef;
  18267. }
  18268. .navCorOpenBox {
  18269. display: flex;
  18270. flex-direction: row;
  18271. align-items: center;
  18272. background: #1e5cc9;
  18273. justify-content: space-between;
  18274. }
  18275. .navCorOpen {
  18276. padding-right: 15px;
  18277. cursor: pointer;
  18278. width: 20px;
  18279. display: flex;
  18280. }
  18281. .navCorOpen > img {
  18282. width: 100%;
  18283. height: 100%;
  18284. }
  18285. .mlImg {
  18286. width: 25px !important;
  18287. cursor: pointer;
  18288. margin-top: 5px;
  18289. }
  18290. .mlImg > img {
  18291. width: 100%;
  18292. height: 100%;
  18293. }
  18294. .navLeftCss {
  18295. width: 100% !important;
  18296. left: 0 !important;
  18297. }
  18298. .isContentCss {
  18299. width: 100% !important;
  18300. }
  18301. .isAllWidth {
  18302. width: 100% !important;
  18303. }
  18304. .group_switch {
  18305. margin-right: 10px;
  18306. height: 30px;
  18307. display: flex;
  18308. align-items: center;
  18309. }
  18310. .group_switch > span {
  18311. margin-right: 5px;
  18312. }
  18313. </style>