studyStudent.vue 621 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096
  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 class="returnBtn" @click="refreshCourse">刷新</div>
  152. <div class="returnBtn" @click="setPz" v-if="tType == 1">评论</div>
  153. <div
  154. class="returnBtn"
  155. @click="startRecording"
  156. v-if="!videoStart && (tType == 1 || tType == 4)"
  157. >
  158. 录制
  159. </div>
  160. <div
  161. class="returnBtn"
  162. @click="stopRecording"
  163. v-else-if="tType == 1 || tType == 4"
  164. style="background: #ee5255"
  165. >
  166. 下载
  167. </div>
  168. <div
  169. class="returnBtn"
  170. @click="juriVisible = true"
  171. v-if="tType == 1"
  172. >
  173. 权限
  174. </div>
  175. <div
  176. class="returnBtn"
  177. style="background: #225bc7"
  178. @click.stop="
  179. goTo(
  180. '/courseDetail?userid=' +
  181. userid +
  182. '&oid=' +
  183. oid +
  184. '&org=' +
  185. org +
  186. '&cid=' +
  187. classId +
  188. '&courseId=' +
  189. id +
  190. '&tType=' +
  191. tType +
  192. '&screenType=' +
  193. screenType
  194. )
  195. "
  196. >
  197. 返回
  198. </div>
  199. </div>
  200. </div>
  201. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  202. .taskJson"
  203. :key="index"-->
  204. <div
  205. class="isNoMessage"
  206. v-if="
  207. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  208. .chapterData.length == 0 &&
  209. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  210. .toolChoose[0].tool.length == 0 &&
  211. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  212. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  213. .taskDetail == '' &&
  214. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  215. "
  216. >
  217. <img src="../assets/icon/isNoMessage.png" alt />
  218. </div>
  219. <div class="study_top" :class="{ pzClass: pzDialog }">
  220. <div
  221. class="vedioBox"
  222. v-if="
  223. vedio[taskCount].length > 0 ||
  224. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  225. .taskDetail != '' ||
  226. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  227. .chapterData.length > 0
  228. "
  229. >
  230. <div class="checkbox">
  231. <div
  232. class="check"
  233. style="font-size: 25px"
  234. :id="
  235. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  236. "
  237. >
  238. <!-- {{ taskCount + 1 }}
  239. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
  240. 学一学
  241. </div>
  242. </div>
  243. <div
  244. class="student_head"
  245. v-if="
  246. vedio[taskCount].length > 0 ||
  247. textList[taskCount].length > 0 ||
  248. lineList[taskCount].length > 0 ||
  249. file[taskCount].length > 0 ||
  250. fileC[taskCount].length > 0 ||
  251. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  252. .taskDetail != ''
  253. "
  254. >
  255. <div class="taskBox">
  256. <div
  257. style="
  258. display: flex;
  259. flex-wrap: nowrap;
  260. flex-direction: column;
  261. position: relative;
  262. "
  263. >
  264. <div
  265. style="
  266. padding: 15px 0 15px 20px;
  267. line-height: 29px;
  268. font-size: 18px;
  269. "
  270. class="cont"
  271. v-if="
  272. chapInfoList[courseType].chapterInfo[0].taskJson[
  273. taskCount
  274. ].taskDetail != ''
  275. "
  276. v-html="
  277. chapInfoList[courseType].chapterInfo[0].taskJson[
  278. taskCount
  279. ].taskDetail
  280. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  281. taskCount
  282. ].taskDetail
  283. : '暂无描述'
  284. "
  285. ></div>
  286. </div>
  287. </div>
  288. <div class="vedioTaskBox">
  289. <div
  290. :class="
  291. contentDialog == false
  292. ? 'box_course isContentCss'
  293. : 'box_course'
  294. "
  295. v-if="
  296. vedio[taskCount].length > 0 ||
  297. textList[taskCount].length > 0 ||
  298. lineList[taskCount].length > 0 ||
  299. file[taskCount].length > 0
  300. "
  301. >
  302. <div
  303. class="wheel"
  304. style="height: auto"
  305. v-if="
  306. vedio.length &&
  307. vedio[taskCount] &&
  308. vedio[taskCount].length > 0 &&
  309. showType == 0
  310. "
  311. >
  312. <div
  313. class="workd_media"
  314. style="height: 650px; width: calc(100% - 50px)"
  315. >
  316. <video-player
  317. class="video-player vjs-custom-skin"
  318. :class="contentDialog == false ? 'isAllWidth' : ''"
  319. :playsinline="true"
  320. :options="playerO[taskCount]"
  321. @play="onPlayerPlay($event)"
  322. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  323. ></video-player>
  324. </div>
  325. </div>
  326. <div
  327. class="wheel"
  328. v-if="showType == 1"
  329. style="
  330. box-shadow: 0 0 6px 1px #f2f2f2;
  331. width: 95%;
  332. margin: 0 auto;
  333. background: #f1f1f1;
  334. "
  335. >
  336. <div class="title">查看文档</div>
  337. <el-form class="textBox">
  338. <el-form-item class="textTitle">
  339. <div style="font-size: 22px">
  340. {{ text.name }}
  341. </div>
  342. </el-form-item>
  343. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  344. <div v-html="text.url" class="textContent cont"></div>
  345. </el-form>
  346. </div>
  347. <div
  348. class="wheel"
  349. v-if="
  350. pptImgUrl1.indexOf(
  351. 'https://view.officeapps.live.com/op/view.aspx?src='
  352. ) != -1 && showType == 2
  353. "
  354. style="width: 95%; margin: 0 auto"
  355. >
  356. <iframe
  357. ref="iframeC"
  358. style="width: 100%; height: 100%; border: none"
  359. :src="pptImgUrl1"
  360. ></iframe>
  361. </div>
  362. <div
  363. class="wheel"
  364. v-else-if="showType == 2"
  365. style="width: 95%; margin: 0 auto"
  366. >
  367. <iframe
  368. style="width: 100%; height: 100%; border: none"
  369. security="restricted"
  370. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  371. :src="pptImgUrl1"
  372. ></iframe>
  373. </div>
  374. <div
  375. class="wheel"
  376. v-if="showType == 3"
  377. style="width: 95%; margin: 0 auto"
  378. >
  379. <pdf
  380. :pdfUrl="pptImgUrl1"
  381. style="width: 100%; height: 100%; overflow: auto"
  382. ></pdf>
  383. </div>
  384. <div
  385. class="wheel"
  386. v-if="showType == 4"
  387. style="width: 95%; margin: 0 auto"
  388. >
  389. <el-image
  390. :src="pptImgUrl1"
  391. fit="cover"
  392. style="width: 100%"
  393. ></el-image>
  394. </div>
  395. </div>
  396. <div
  397. class="pButton"
  398. style="
  399. position: absolute;
  400. right: 20px;
  401. top: 0;
  402. background: #205cc6;
  403. z-index: 998;
  404. opacity: 0.8;
  405. "
  406. v-if="!contentDialog"
  407. @click="setContent(true)"
  408. >
  409. <!-- 批 -->
  410. <img src="../assets/navBtn2.png" style="width: 25px" alt="" />
  411. </div>
  412. <div
  413. v-if="contentDialog == true"
  414. :style="{
  415. width:
  416. !vedio[taskCount].length > 0 &&
  417. !textList[taskCount].length > 0 &&
  418. !lineList[taskCount].length > 0 &&
  419. !file[taskCount].length > 0 &&
  420. fileC[taskCount].length
  421. ? 'calc(100%)'
  422. : 'calc(100% - 83%)',
  423. margin:
  424. !vedio[taskCount].length > 0 &&
  425. !textList[taskCount].length > 0 &&
  426. !lineList[taskCount].length > 0 &&
  427. !file[taskCount].length > 0 &&
  428. fileC[taskCount].length
  429. ? '0 15px'
  430. : '0 15px 0 0',
  431. }"
  432. >
  433. <div
  434. class="vedioList"
  435. v-if="
  436. (vedio.length &&
  437. vedio[taskCount] &&
  438. vedio[taskCount].length > 0) ||
  439. (textList.length &&
  440. textList[taskCount] &&
  441. textList[taskCount].length > 0) ||
  442. (lineList.length &&
  443. lineList[taskCount] &&
  444. lineList[taskCount].length > 0) ||
  445. (file.length &&
  446. file[taskCount] &&
  447. file[taskCount].length > 0) ||
  448. (fileC.length &&
  449. fileC[taskCount] &&
  450. fileC[taskCount].length > 0)
  451. "
  452. style="height: 650px"
  453. >
  454. <div class="navCorOpenBox">
  455. <div class="navTitile">内容列表:</div>
  456. <div class="navCorOpen" @click="setContent(false)">
  457. <img src="../assets/navBtn2.png" alt="" />
  458. </div>
  459. </div>
  460. <div class="navBox">
  461. <div
  462. v-show="
  463. vedio.length &&
  464. vedio[taskCount] &&
  465. vedio[taskCount].length > 0
  466. "
  467. >
  468. <div
  469. class="vedioTimeBox"
  470. v-for="(media, vedioIndex) in vedio[taskCount]"
  471. :key="vedioIndex + '1'"
  472. @click="lookVedio(media.url, vedioIndex)"
  473. >
  474. <div
  475. class="vedioName"
  476. :class="
  477. isClickNav == 'video' + vedioIndex
  478. ? 'isClickNav'
  479. : ''
  480. "
  481. >
  482. <span v-if="media.text">{{ media.text }}-</span
  483. >{{ media.name }}
  484. </div>
  485. </div>
  486. </div>
  487. <div
  488. v-show="
  489. textList.length &&
  490. textList[taskCount] &&
  491. textList[taskCount].length > 0
  492. "
  493. class="newNav"
  494. v-for="(text, textIndex) in textList[taskCount]"
  495. :key="textIndex + '2'"
  496. @click="lookText(taskCount, textIndex)"
  497. >
  498. <div style="width: calc(100% - 0px)">
  499. <div
  500. class="navText"
  501. :class="
  502. isClickNav == 'text' + textIndex
  503. ? 'isClickNav'
  504. : ''
  505. "
  506. >
  507. {{
  508. textList[taskCount].length > 0 ? text.name : ""
  509. }}.doc
  510. </div>
  511. </div>
  512. </div>
  513. <div
  514. v-show="
  515. lineList.length &&
  516. lineList[taskCount] &&
  517. lineList[taskCount].length > 0
  518. "
  519. class="newNav"
  520. v-for="(lines, lineIndex) in lineList[taskCount]"
  521. :key="lineIndex + '4'"
  522. @click="doUrl(lines.url, lineIndex)"
  523. >
  524. <div style="width: calc(100% - 0px)">
  525. <div
  526. class="navText"
  527. :class="
  528. isClickNav == 'line' + lineIndex
  529. ? 'isClickNav'
  530. : ''
  531. "
  532. >
  533. {{ lines.title ? lines.title : lines.url }}
  534. </div>
  535. </div>
  536. </div>
  537. <div
  538. class="newNav"
  539. v-show="
  540. file.length &&
  541. file[taskCount] &&
  542. file[taskCount].length > 0
  543. "
  544. v-for="(f, fileIndex) in file[taskCount]"
  545. :key="fileIndex"
  546. @click="downFile(f, fileIndex)"
  547. >
  548. <div style="width: calc(100% - 0px)">
  549. <div
  550. class="navText"
  551. :class="
  552. isClickNav == 'word' + fileIndex
  553. ? 'isClickNav'
  554. : ''
  555. "
  556. >
  557. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  558. </div>
  559. </div>
  560. </div>
  561. <div
  562. class="newNav"
  563. v-show="
  564. fileC.length &&
  565. fileC[taskCount] &&
  566. fileC[taskCount].length > 0
  567. "
  568. v-for="(f, fileIndex) in fileC[taskCount]"
  569. :key="fileIndex"
  570. @click="downloadFile2(f)"
  571. >
  572. <div style="width: calc(100% - 0px)">
  573. <div class="navText">
  574. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  575. </div>
  576. </div>
  577. </div>
  578. </div>
  579. </div>
  580. </div>
  581. </div>
  582. <div style="width: 81%">
  583. <div
  584. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  585. v-if="showType == 2 || showType == 3"
  586. >
  587. <el-button
  588. type="primary"
  589. @click="checkFileFull(showType, pptImgUrl1)"
  590. >全屏查看</el-button
  591. >
  592. <el-button
  593. type="primary"
  594. @click="downloadFile(pptImgUrl1)"
  595. v-if="isClickNav.indexOf('line') == -1"
  596. >文件下载</el-button
  597. >
  598. <el-button
  599. v-if="isClickNav.indexOf('line') != -1"
  600. type="primary"
  601. @click="openLine(pptImgUrl1)"
  602. >打开链接
  603. </el-button>
  604. </div>
  605. <div
  606. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  607. v-if="showType == 1"
  608. >
  609. <el-button
  610. type="primary"
  611. @click="checkFileFull(showType, text)"
  612. >全屏查看</el-button
  613. >
  614. </div>
  615. </div>
  616. </div>
  617. </div>
  618. <div class="student_body" v-resize="resize">
  619. <!-- <div
  620. class="vedioBox"
  621. v-if="
  622. file.length && file[taskCount] && file[taskCount].length > 0
  623. "
  624. >
  625. <div class="queTop">
  626. <div class="question" style="width: 30px; margin-top: 5px">
  627. <img src="../assets/icon/fileIcon.png" alt />
  628. </div>
  629. <div class="queTitle">
  630. <div>附件</div>
  631. </div>
  632. </div>
  633. <div class="filebox" style="width: 100%">
  634. <div
  635. class="file"
  636. v-for="(f, fileIndex) in file[taskCount]"
  637. :key="fileIndex"
  638. @click="downFile(f, fileIndex)"
  639. >
  640. <img :src="require('../assets/file.png')" alt />
  641. <div>{{ f.name }}</div>
  642. </div>
  643. </div>
  644. <div class="upFile" v-if="type == 3">提交</div>
  645. </div>-->
  646. <div
  647. class="vedioBox"
  648. v-if="
  649. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  650. .toolChoose[0].tool &&
  651. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  652. .toolChoose[0].tool.length &&
  653. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  654. .toolChoose[0].tool.length > 0
  655. "
  656. >
  657. <div
  658. class="queTop"
  659. style="
  660. font-size: 25px;
  661. padding: 15px 0 15px 30px;
  662. font-weight: bold;
  663. "
  664. >
  665. <!-- <div class="question" style="width: 30px">
  666. <img src="../assets/icon/toolIcon.png" alt />
  667. </div>
  668. <div class="queTitle">
  669. <div>工具</div>
  670. </div>-->
  671. 练一练
  672. </div>
  673. <div class="toolHeng2" style="position: relative">
  674. <div
  675. class="filebox"
  676. style="flex-wrap: nowrap; margin: 0 20px"
  677. v-for="(tool, toolIndex) in chapInfoList[courseType]
  678. .chapterInfo[0].taskJson[taskCount].toolChoose"
  679. :key="toolIndex"
  680. >
  681. <div class="bzBox">
  682. <div></div>
  683. <div>步骤{{ toolIndex + 1 }}</div>
  684. </div>
  685. <div class="toolBox">
  686. <div>
  687. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  688. :key="indexTool"-->
  689. <!-- <div class="iframeBox">
  690. <div
  691. class="addPoint isBorder"
  692. v-for="(tooC, toolCIndex) in tool.tool"
  693. :key="toolCIndex"
  694. >
  695. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  696. <div
  697. class="iframeName"
  698. >
  699. 电子白板
  700. </div>
  701. <iframe
  702. src="https://iwb.cocorobo.cn/"
  703. ref="whiteBoard"
  704. ></iframe>
  705. </div>
  706. </div>
  707. </div>-->
  708. <div class="noiframeBox">
  709. <div
  710. class="addPoint"
  711. v-for="(tooC, toolCIndex) in tool.tool"
  712. :key="toolCIndex"
  713. >
  714. <div v-if="tooC == 1">
  715. <img
  716. src="../assets/icon/secondToolList/whiteBoard.png"
  717. alt
  718. @click="addTools(tooC, toolIndex, taskCount)"
  719. />
  720. <div style="margin: 5px 0">电子白板</div>
  721. </div>
  722. <div v-if="tooC == 3">
  723. <img
  724. src="../assets/icon/secondToolList/mindMapping.png"
  725. alt
  726. @click="addTools(tooC, toolIndex, taskCount)"
  727. />
  728. <div style="margin: 5px 0">思维导图</div>
  729. </div>
  730. <div v-if="tooC == 6">
  731. <img
  732. src="../assets/icon/secondToolList/doc.png"
  733. alt
  734. @click="addTools(tooC, toolIndex, taskCount)"
  735. />
  736. <div style="margin: 5px 0">协同文档</div>
  737. </div>
  738. <div v-if="tooC == 7">
  739. <img
  740. src="../assets/icon/secondToolList/mindNetwork.png"
  741. alt
  742. @click="addTools(tooC, toolIndex, taskCount)"
  743. />
  744. <div style="margin: 5px 0">思维网格</div>
  745. </div>
  746. <div v-if="tooC == 8">
  747. <img
  748. src="../assets/icon/secondToolList/library.png"
  749. alt
  750. @click="addTools(tooC, toolIndex, taskCount)"
  751. />
  752. <div style="margin: 5px 0">素材库</div>
  753. </div>
  754. <div v-if="tooC == 17">
  755. <img
  756. src="../assets/icon/secondToolList/library.png"
  757. alt
  758. @click="addTools(tooC, toolIndex, taskCount)"
  759. />
  760. <div style="margin: 5px 0">学习资料</div>
  761. </div>
  762. <div v-if="tooC == 2">
  763. <img
  764. @click="addTools(tooC, toolIndex, taskCount)"
  765. src="../assets/icon/secondToolList/note.png"
  766. alt
  767. />
  768. <div style="margin: 5px 0">便签</div>
  769. </div>
  770. <div v-if="tooC == 4">
  771. <img
  772. @click="addTools(tooC, toolIndex, taskCount)"
  773. src="../assets/icon/thirdToolList/ask.png"
  774. alt
  775. />
  776. <div style="margin: 5px 0">问卷调查</div>
  777. </div>
  778. <div v-if="tooC == 45">
  779. <img
  780. @click="addTools(tooC, toolIndex, taskCount)"
  781. src="../assets/icon/thirdToolList/choose.png"
  782. alt
  783. />
  784. <div style="margin: 5px 0">选择题</div>
  785. </div>
  786. <!-- <div v-if="tooC == 5">
  787. <img
  788. @click="addTools(tooC, toolIndex, taskCount)"
  789. src="../assets/icon/thirdToolList/score.png"
  790. alt
  791. />
  792. <div style="margin: 5px 0">量规评分</div>
  793. </div> -->
  794. <div v-if="tooC == 10">
  795. <img
  796. @click="addTools(tooC, toolIndex, taskCount)"
  797. src="../assets/icon/thirdToolList/time.png"
  798. alt
  799. />
  800. <div style="margin: 5px 0">倒计时</div>
  801. </div>
  802. <div v-if="tooC == 15">
  803. <img
  804. @click="addTools(tooC, toolIndex, taskCount)"
  805. src="../assets/icon/thirdToolList/answer.png"
  806. alt
  807. />
  808. <div style="margin: 5px 0">问答工具</div>
  809. </div>
  810. <div v-if="tooC == 26">
  811. <img
  812. @click="addTools(tooC, toolIndex, taskCount)"
  813. src="../assets/icon/thirdToolList/courseDesign.png"
  814. alt
  815. />
  816. <div style="margin: 5px 0">课程设计</div>
  817. </div>
  818. <div v-if="tooC == 18">
  819. <img
  820. @click="addTools(tooC, toolIndex, taskCount)"
  821. src="../assets/icon/thirdToolList/trainPlatform.png"
  822. alt
  823. />
  824. <div style="margin: 5px 0">训练服务器</div>
  825. </div>
  826. <div v-if="tooC == 16">
  827. <img
  828. @click="addTools(tooC, toolIndex, taskCount)"
  829. src="../assets/icon/thirdToolList/work.png"
  830. alt
  831. />
  832. <div style="margin: 5px 0">作业提交</div>
  833. </div>
  834. <div v-if="tooC == 50">
  835. <img
  836. @click="addTools(tooC, toolIndex, taskCount)"
  837. src="../assets/icon/thirdToolList/plwork.png"
  838. alt
  839. />
  840. <div style="margin: 5px 0">批量上传</div>
  841. </div>
  842. <div v-if="tooC == 21">
  843. <img
  844. @click="addTools(tooC, toolIndex, taskCount)"
  845. src="../assets/icon/fourthToolList/program.png"
  846. alt
  847. />
  848. <div style="margin: 5px 0">编程平台</div>
  849. </div>
  850. <div v-if="tooC == 22">
  851. <img
  852. @click="addTools(tooC, toolIndex, taskCount)"
  853. src="../assets/icon/fourthToolList/program.png"
  854. alt
  855. />
  856. <div style="margin: 5px 0">AI体验</div>
  857. </div>
  858. <div v-if="tooC == 23">
  859. <img
  860. @click="addTools(tooC, toolIndex, taskCount)"
  861. src="../assets/icon/fourthToolList/Pythonprogram.png"
  862. alt
  863. />
  864. <div style="margin: 5px 0">Python</div>
  865. </div>
  866. <div v-if="tooC == 24">
  867. <img
  868. @click="addTools(tooC, toolIndex, taskCount)"
  869. src="../assets/icon/fourthToolList/AIprogram.png"
  870. alt
  871. />
  872. <div style="margin: 5px 0">AI平台</div>
  873. </div>
  874. <div v-if="tooC == 25">
  875. <img
  876. @click="addTools(tooC, toolIndex, taskCount)"
  877. src="../assets/icon/thirdToolList/evalua.png"
  878. alt
  879. />
  880. <div style="margin: 5px 0">目标管理</div>
  881. </div>
  882. <div v-if="tooC == 31">
  883. <img
  884. @click="addTools(tooC, toolIndex, taskCount)"
  885. src="../assets/icon/secondToolList/networkPanel.png"
  886. alt
  887. />
  888. <div style="margin: 5px 0">数学画板</div>
  889. </div>
  890. <div v-if="tooC == 28">
  891. <img
  892. @click="addTools(tooC, toolIndex, taskCount)"
  893. src="../assets/icon/secondToolList/translation.png"
  894. alt
  895. />
  896. <div style="margin: 5px 0">翻译</div>
  897. </div>
  898. <div v-if="tooC == 37">
  899. <img
  900. @click="addTools(tooC, toolIndex, taskCount)"
  901. src="../assets/icon/secondToolList/mohe.png"
  902. alt
  903. />
  904. <div style="margin: 5px 0">魔盒识字</div>
  905. </div>
  906. <div v-if="tooC == 38">
  907. <img
  908. @click="addTools(tooC, toolIndex, taskCount)"
  909. src="../assets/icon/secondToolList/24game.png"
  910. alt
  911. />
  912. <div style="margin: 5px 0">24点</div>
  913. </div>
  914. <div v-if="tooC == 39">
  915. <img
  916. @click="addTools(tooC, toolIndex, taskCount)"
  917. src="../assets/icon/secondToolList/GeoGebra.png"
  918. alt
  919. />
  920. <div style="margin: 5px 0">GeoGebra</div>
  921. </div>
  922. <div v-if="tooC == 32">
  923. <img
  924. @click="addTools(tooC, toolIndex, taskCount)"
  925. src="../assets/icon/thirdToolList/code.png"
  926. alt
  927. />
  928. <div style="margin: 5px 0">源码编辑</div>
  929. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  930. style="position: absolute;left: 110px;bottom: 30px;">
  931. 上传文件
  932. <input type="file" accept="*" style="display: none"
  933. @change="beforeUpload1($event, 7, toolIndex)" />
  934. </div> -->
  935. </div>
  936. <div v-if="tooC == 40">
  937. <img
  938. @click="addTools(tooC, toolIndex, taskCount)"
  939. src="../assets/icon/secondToolList/eval.png"
  940. alt
  941. />
  942. <div style="margin: 5px 0">个人评价</div>
  943. </div>
  944. <div v-if="tooC == 41">
  945. <img
  946. @click="addTools(tooC, toolIndex, taskCount)"
  947. src="../assets/icon/thirdToolList/select.png"
  948. alt
  949. />
  950. <div style="margin: 5px 0">选择填空</div>
  951. </div>
  952. <div v-if="tooC == 44">
  953. <img
  954. @click="addTools(tooC, toolIndex, taskCount)"
  955. src="../assets/icon/thirdToolList/hanClass.png"
  956. alt
  957. />
  958. <div style="margin: 5px 0">汉字宫</div>
  959. </div>
  960. <div v-if="tooC == 47">
  961. <img
  962. @click="addTools(tooC, toolIndex, taskCount)"
  963. src="../assets/icon/fourthToolList/conSentences.png"
  964. alt
  965. />
  966. <div style="margin: 5px 0">连词成句</div>
  967. </div>
  968. <div v-if="tooC == 48">
  969. <img
  970. @click="addTools(tooC, toolIndex, taskCount)"
  971. src="../assets/icon/fourthToolList/table.png"
  972. alt
  973. />
  974. <div style="margin: 5px 0">表格</div>
  975. </div>
  976. <div v-if="tooC == 52">
  977. <img
  978. @click="addTools(tooC, toolIndex, taskCount)"
  979. src="../assets/icon/fourthToolList/text.png"
  980. alt
  981. />
  982. <div style="margin: 5px 0">文档</div>
  983. </div>
  984. <div v-if="tooC == 49">
  985. <img
  986. @click="addTools(tooC, toolIndex, taskCount)"
  987. src="../assets/icon/fourthToolList/group.png"
  988. alt
  989. />
  990. <div style="margin: 5px 0">学生分组</div>
  991. </div>
  992. <div v-if="tooC == 57">
  993. <img
  994. @click="addTools(tooC, toolIndex, taskCount)"
  995. src="../assets/icon/fourthToolList/cocopi.png"
  996. alt
  997. />
  998. <div style="margin: 5px 0">CocoPi</div>
  999. </div>
  1000. <div v-if="tooC == 58">
  1001. <img
  1002. @click="addTools(tooC, toolIndex, taskCount)"
  1003. src="../assets/icon/fourthToolList/car.png"
  1004. alt
  1005. />
  1006. <div style="margin: 5px 0">模拟驾驶</div>
  1007. </div>
  1008. <div v-if="tooC == 59">
  1009. <img
  1010. @click="addTools(tooC, toolIndex, taskCount)"
  1011. src="../assets/icon/fourthToolList/lineSearch.png"
  1012. alt
  1013. />
  1014. <div style="margin: 5px 0">路径搜索</div>
  1015. </div>
  1016. <div v-if="tooC == 60">
  1017. <img
  1018. @click="addTools(tooC, toolIndex, taskCount)"
  1019. src="../assets/icon/fourthToolList/deepLearning.png"
  1020. alt
  1021. />
  1022. <div style="margin: 5px 0">深度学习</div>
  1023. </div>
  1024. <div v-if="tooC == 61">
  1025. <img
  1026. @click="addTools(tooC, toolIndex, taskCount)"
  1027. src="../assets/icon/fourthToolList/allHistory.png"
  1028. alt
  1029. />
  1030. <div style="margin: 5px 0">全历史</div>
  1031. </div>
  1032. <div v-if="tooC == 62">
  1033. <img
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. src="../assets/icon/fourthToolList/interVideo.png"
  1036. alt
  1037. />
  1038. <div style="margin: 5px 0">交互视频</div>
  1039. </div>
  1040. <div v-if="tooC == 63">
  1041. <img
  1042. @click="addTools(tooC, toolIndex, taskCount)"
  1043. src="../assets/icon/fourthToolList/Wood.png"
  1044. alt
  1045. />
  1046. <div style="margin: 5px 0">海龟编程</div>
  1047. </div>
  1048. </div>
  1049. </div>
  1050. </div>
  1051. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1052. <!-- <div class="toolTitle">工具描述</div> -->
  1053. <div v-html="contentConvent(tool.toolDetail)"></div>
  1054. </div>
  1055. <el-button
  1056. type="primary"
  1057. v-if="tool.tool[0] == 32"
  1058. style="
  1059. position: absolute;
  1060. right: 30px;
  1061. transform: translateY(-130%);
  1062. "
  1063. @click="addImg($event)"
  1064. >上传作业<input
  1065. type="file"
  1066. accept="*"
  1067. style="display: none"
  1068. @change="beforeUpload1($event, 7, toolIndex)"
  1069. /></el-button>
  1070. <el-button
  1071. type="primary"
  1072. v-if="tool.tool[0] == 57"
  1073. style="
  1074. position: absolute;
  1075. right: 30px;
  1076. transform: translateY(-130%);
  1077. "
  1078. @click="addImg($event)"
  1079. >上传作业<input
  1080. type="file"
  1081. accept="*"
  1082. style="display: none"
  1083. @change="beforeUpload1($event, 8, toolIndex)"
  1084. /></el-button>
  1085. </div>
  1086. <div
  1087. v-if="
  1088. tType &&
  1089. tType == 2 &&
  1090. !sIsOpen &&
  1091. tool.tool.indexOf(16) != -1
  1092. "
  1093. class="worksBox"
  1094. >
  1095. <div
  1096. class="zuoyeYulan"
  1097. v-if="workStudent[toolIndex].length > 0"
  1098. >
  1099. <span>作业预览</span>
  1100. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1101. </div>
  1102. <div
  1103. class="worksDetailBox"
  1104. v-if="workStudent[toolIndex].length > 0"
  1105. >
  1106. <div
  1107. class="works"
  1108. style="
  1109. width: 200px;
  1110. height: 140px;
  1111. margin: 10px 10px 10px 0;
  1112. box-shadow: 0 0 6px 1px #dfdada;
  1113. "
  1114. v-for="(w, wIndex) in workStudent[toolIndex]"
  1115. :key="wIndex"
  1116. >
  1117. <div class="workImg" v-if="w.type == 0">
  1118. <img
  1119. :src="w.works"
  1120. @click="previewImg(w.works)"
  1121. alt
  1122. />
  1123. <div
  1124. class="answerScore"
  1125. v-if="w.score"
  1126. @click.stop="openScore(w)"
  1127. :class="{
  1128. rightW:
  1129. w.userid == userid || tType == 1 || tType == 4,
  1130. }"
  1131. >
  1132. {{ JSON.parse(w.score).wScore }}分
  1133. </div>
  1134. <div
  1135. class="answerScore"
  1136. @click.stop="openScore(w)"
  1137. v-else-if="courseDetail.userid == userid"
  1138. :class="{
  1139. rightW:
  1140. w.userid == userid || tType == 1 || tType == 4,
  1141. }"
  1142. >
  1143. 评分
  1144. </div>
  1145. <img
  1146. class="deleteImg"
  1147. src="../assets/deleteworks.png"
  1148. v-if="
  1149. w.userid == userid || tType == 1 || tType == 4
  1150. "
  1151. @click.stop="deleteWorks(w.wid)"
  1152. alt
  1153. />
  1154. </div>
  1155. <div class="workImg" v-if="w.type == 1">
  1156. <img :src="word" @click="openFile(w.works)" alt />
  1157. <div
  1158. class="answerScore"
  1159. v-if="w.score"
  1160. @click.stop="openScore(w)"
  1161. :class="{
  1162. rightW:
  1163. w.userid == userid || tType == 1 || tType == 4,
  1164. }"
  1165. >
  1166. {{ JSON.parse(w.score).wScore }}分
  1167. </div>
  1168. <div
  1169. class="answerScore"
  1170. @click.stop="openScore(w)"
  1171. v-else-if="courseDetail.userid == userid"
  1172. :class="{
  1173. rightW:
  1174. w.userid == userid || tType == 1 || tType == 4,
  1175. }"
  1176. >
  1177. 评分
  1178. </div>
  1179. <img
  1180. class="deleteImg"
  1181. src="../assets/deleteworks.png"
  1182. v-if="
  1183. w.userid == userid || tType == 1 || tType == 4
  1184. "
  1185. @click.stop="deleteWorks(w.wid)"
  1186. alt
  1187. />
  1188. </div>
  1189. <div class="workImg" v-if="w.type == 3">
  1190. <img
  1191. style="cursor: pointer"
  1192. :src="video"
  1193. @click="openVideo(w)"
  1194. alt
  1195. />
  1196. <div
  1197. class="answerScore"
  1198. v-if="w.score"
  1199. @click.stop="openScore(w)"
  1200. :class="{
  1201. rightW:
  1202. w.userid == userid || tType == 1 || tType == 4,
  1203. }"
  1204. >
  1205. {{ JSON.parse(w.score).wScore }}分
  1206. </div>
  1207. <div
  1208. class="answerScore"
  1209. @click.stop="openScore(w)"
  1210. v-else-if="courseDetail.userid == userid"
  1211. :class="{
  1212. rightW:
  1213. w.userid == userid || tType == 1 || tType == 4,
  1214. }"
  1215. >
  1216. 评分
  1217. </div>
  1218. <img
  1219. class="deleteImg"
  1220. src="../assets/deleteworks.png"
  1221. v-if="
  1222. w.userid == userid || tType == 1 || tType == 4
  1223. "
  1224. @click.stop="deleteWorks(w.wid)"
  1225. alt
  1226. />
  1227. </div>
  1228. <div class="workImg" v-if="w.type == 12">
  1229. <img
  1230. style="cursor: pointer"
  1231. :src="word2"
  1232. @click="downloadFile(w.works)"
  1233. alt
  1234. />
  1235. <div
  1236. class="answerScore"
  1237. v-if="w.score"
  1238. @click.stop="openScore(w)"
  1239. :class="{
  1240. rightW:
  1241. w.userid == userid || tType == 1 || tType == 4,
  1242. }"
  1243. >
  1244. {{ JSON.parse(w.score).wScore }}分
  1245. </div>
  1246. <div
  1247. class="answerScore"
  1248. @click.stop="openScore(w)"
  1249. v-else-if="courseDetail.userid == userid"
  1250. :class="{
  1251. rightW:
  1252. w.userid == userid || tType == 1 || tType == 4,
  1253. }"
  1254. >
  1255. 评分
  1256. </div>
  1257. <img
  1258. class="deleteImg"
  1259. src="../assets/deleteworks.png"
  1260. v-if="
  1261. w.userid == userid || tType == 1 || tType == 4
  1262. "
  1263. @click.stop="deleteWorks(w.wid)"
  1264. alt
  1265. />
  1266. </div>
  1267. <div class="worksName">
  1268. <div>{{ w.sName }}</div>
  1269. </div>
  1270. </div>
  1271. </div>
  1272. </div>
  1273. <div
  1274. v-if="
  1275. tType &&
  1276. tType == 2 &&
  1277. !sIsOpen &&
  1278. tool.tool.indexOf(32) != -1
  1279. "
  1280. class="worksBox"
  1281. >
  1282. <div
  1283. class="zuoyeYulan"
  1284. v-if="workStudent[toolIndex].length > 0"
  1285. >
  1286. <span>作业预览</span>
  1287. </div>
  1288. <div
  1289. class="worksDetailBox"
  1290. v-if="workStudent[toolIndex].length > 0"
  1291. >
  1292. <div
  1293. class="works"
  1294. style="
  1295. width: 200px;
  1296. height: 140px;
  1297. margin: 10px 10px 10px 0;
  1298. box-shadow: 0 0 6px 1px #dfdada;
  1299. "
  1300. v-for="(w, wIndex) in workStudent[toolIndex]"
  1301. :key="wIndex"
  1302. >
  1303. <div class="workImg">
  1304. <img
  1305. :src="word2"
  1306. @click="downloadFile(w.works)"
  1307. alt
  1308. />
  1309. <div
  1310. class="answerScore"
  1311. v-if="w.score"
  1312. @click.stop="openScore(w)"
  1313. :class="{
  1314. rightW:
  1315. w.userid == userid || tType == 1 || tType == 4,
  1316. }"
  1317. >
  1318. {{ JSON.parse(w.score).wScore }}分
  1319. </div>
  1320. <div
  1321. class="answerScore"
  1322. @click.stop="openScore(w)"
  1323. v-else-if="courseDetail.userid == userid"
  1324. :class="{
  1325. rightW:
  1326. w.userid == userid || tType == 1 || tType == 4,
  1327. }"
  1328. >
  1329. 评分
  1330. </div>
  1331. <img
  1332. class="deleteImg"
  1333. src="../assets/deleteworks.png"
  1334. v-if="
  1335. w.userid == userid || tType == 1 || tType == 4
  1336. "
  1337. @click.stop="deleteWorks(w.wid)"
  1338. alt
  1339. />
  1340. </div>
  1341. <div class="worksName">
  1342. <div>{{ w.sName }}</div>
  1343. </div>
  1344. </div>
  1345. </div>
  1346. </div>
  1347. <div
  1348. v-if="
  1349. tType &&
  1350. tType == 2 &&
  1351. !sIsOpen &&
  1352. tool.tool.indexOf(57) != -1
  1353. "
  1354. class="worksBox"
  1355. >
  1356. <div
  1357. class="zuoyeYulan"
  1358. v-if="workStudent[toolIndex].length > 0"
  1359. >
  1360. <span>作业预览</span>
  1361. </div>
  1362. <div
  1363. class="worksDetailBox"
  1364. v-if="workStudent[toolIndex].length > 0"
  1365. >
  1366. <div
  1367. class="works"
  1368. style="
  1369. width: 200px;
  1370. height: 140px;
  1371. margin: 10px 10px 10px 0;
  1372. box-shadow: 0 0 6px 1px #dfdada;
  1373. "
  1374. v-for="(w, wIndex) in workStudent[toolIndex]"
  1375. :key="wIndex"
  1376. >
  1377. <div class="workImg">
  1378. <img
  1379. :src="word2"
  1380. @click="downloadFile(w.works)"
  1381. alt
  1382. />
  1383. <div
  1384. class="answerScore"
  1385. v-if="w.score"
  1386. @click.stop="openScore(w)"
  1387. :class="{
  1388. rightW:
  1389. w.userid == userid || tType == 1 || tType == 4,
  1390. }"
  1391. >
  1392. {{ JSON.parse(w.score).wScore }}分
  1393. </div>
  1394. <div
  1395. class="answerScore"
  1396. @click.stop="openScore(w)"
  1397. v-else-if="courseDetail.userid == userid"
  1398. :class="{
  1399. rightW:
  1400. w.userid == userid || tType == 1 || tType == 4,
  1401. }"
  1402. >
  1403. 评分
  1404. </div>
  1405. <img
  1406. class="deleteImg"
  1407. src="../assets/deleteworks.png"
  1408. v-if="
  1409. w.userid == userid || tType == 1 || tType == 4
  1410. "
  1411. @click.stop="deleteWorks(w.wid)"
  1412. alt
  1413. />
  1414. </div>
  1415. <div class="worksName">
  1416. <div>{{ w.sName }}</div>
  1417. </div>
  1418. </div>
  1419. </div>
  1420. </div>
  1421. <div
  1422. v-if="
  1423. tType &&
  1424. tType == 2 &&
  1425. !sIsOpen &&
  1426. tool.tool.indexOf(4) != -1
  1427. "
  1428. class="worksBox"
  1429. >
  1430. <div
  1431. class="zuoyeYulan"
  1432. v-if="workStudent[toolIndex].length > 0"
  1433. >
  1434. <span>作业预览</span>
  1435. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1436. </div>
  1437. <div
  1438. class="worksDetailBox"
  1439. v-if="workStudent[toolIndex].length > 0"
  1440. >
  1441. <div
  1442. class="isWorksName"
  1443. v-for="(w, wIndex) in workStudent[toolIndex]"
  1444. :key="wIndex"
  1445. @click="
  1446. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1447. "
  1448. >
  1449. {{ w.sName }}
  1450. <img
  1451. class="deleteImg deleteImg2"
  1452. src="../assets/deleteworks.png"
  1453. v-if="w.userid == userid || tType == 1 || tType == 4"
  1454. @click.stop="deleteWorks(w.wid)"
  1455. alt
  1456. />
  1457. </div>
  1458. <!-- <div
  1459. class="works"
  1460. style="
  1461. width: 200px;
  1462. height: 140px;
  1463. border-radius: 10px;
  1464. box-shadow: 0 0 6px 1px #dfdada;
  1465. overflow: hidden;
  1466. "
  1467. v-for="(w, wIndex) in workStudent[toolIndex]"
  1468. :key="wIndex"
  1469. >
  1470. <div class="workImg">
  1471. <img
  1472. src="../assets/icon/works/noImg.png"
  1473. @click="
  1474. openTools(
  1475. 4,
  1476. toolIndex,
  1477. taskCount,
  1478. w.works,
  1479. w.sName
  1480. )
  1481. "
  1482. alt
  1483. />
  1484. </div>
  1485. <div class="worksName">
  1486. <div>{{ w.sName }}</div>
  1487. <div>{{ w.time }}</div>
  1488. </div>
  1489. </div> -->
  1490. </div>
  1491. </div>
  1492. <div
  1493. v-if="
  1494. tType &&
  1495. tType == 2 &&
  1496. !sIsOpen &&
  1497. tool.tool.indexOf(45) != -1
  1498. "
  1499. class="worksBox"
  1500. >
  1501. <div
  1502. class="zuoyeYulan"
  1503. v-if="workStudent[toolIndex].length > 0"
  1504. >
  1505. <span>作业预览</span>
  1506. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1507. </div>
  1508. <div
  1509. class="worksDetailBox"
  1510. v-if="workStudent[toolIndex].length > 0"
  1511. >
  1512. <div
  1513. class="isWorksName"
  1514. v-for="(w, wIndex) in workStudent[toolIndex]"
  1515. :key="wIndex"
  1516. @click="
  1517. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1518. "
  1519. >
  1520. {{ w.sName }}
  1521. <img
  1522. class="deleteImg deleteImg2"
  1523. src="../assets/deleteworks.png"
  1524. v-if="w.userid == userid || tType == 1 || tType == 4"
  1525. @click.stop="deleteWorks(w.wid)"
  1526. alt
  1527. />
  1528. </div>
  1529. </div>
  1530. </div>
  1531. <div
  1532. v-if="
  1533. tType &&
  1534. tType == 2 &&
  1535. !sIsOpen &&
  1536. tool.tool.indexOf(15) != -1
  1537. "
  1538. class="worksBox"
  1539. >
  1540. <div
  1541. class="zuoyeYulan"
  1542. v-if="workStudent[toolIndex].length > 0"
  1543. >
  1544. <span>作业预览</span>
  1545. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1546. </div>
  1547. <div
  1548. class="worksDetailBox"
  1549. v-if="workStudent[toolIndex].length > 0"
  1550. >
  1551. <div
  1552. class="works"
  1553. v-for="(w, wIndex) in workStudent[toolIndex]"
  1554. :key="wIndex"
  1555. >
  1556. <div class="workImg">
  1557. <!-- <img
  1558. src="../assets/icon/works/noImg.png"
  1559. @click="openTools(15, toolIndex, taskCount, w.works)"
  1560. alt=""
  1561. />-->
  1562. <div class="answerBg">
  1563. <!-- <div>{{ w.sName }}</div> -->
  1564. <el-tooltip
  1565. class="item"
  1566. effect="light"
  1567. :content="JSON.parse(w.works)[0].answer"
  1568. placement="top"
  1569. >
  1570. <div class="answerContent">
  1571. {{ JSON.parse(w.works)[0].answer }}
  1572. </div>
  1573. </el-tooltip>
  1574. <div
  1575. class="answerScore"
  1576. v-if="w.score"
  1577. @click.stop="openScore(w)"
  1578. :class="{
  1579. rightW:
  1580. w.userid == userid ||
  1581. tType == 1 ||
  1582. tType == 4,
  1583. }"
  1584. >
  1585. {{ JSON.parse(w.score).wScore }}分
  1586. </div>
  1587. <div
  1588. class="answerScore"
  1589. @click.stop="openScore(w)"
  1590. v-else-if="courseDetail.userid == userid"
  1591. :class="{
  1592. rightW:
  1593. w.userid == userid ||
  1594. tType == 1 ||
  1595. tType == 4,
  1596. }"
  1597. >
  1598. 评分
  1599. </div>
  1600. <img
  1601. class="deleteImg"
  1602. src="../assets/deleteworks.png"
  1603. v-if="
  1604. w.userid == userid || tType == 1 || tType == 4
  1605. "
  1606. @click.stop="deleteWorks(w.wid)"
  1607. alt
  1608. />
  1609. </div>
  1610. <div class="comment">
  1611. <div class="worksName">
  1612. <div>{{ w.sName }}</div>
  1613. </div>
  1614. </div>
  1615. </div>
  1616. </div>
  1617. </div>
  1618. </div>
  1619. <div
  1620. v-if="
  1621. tType &&
  1622. tType == 2 &&
  1623. !sIsOpen &&
  1624. tool.tool.indexOf(1) != -1
  1625. "
  1626. class="worksBox"
  1627. >
  1628. <div
  1629. class="zuoyeYulan"
  1630. v-if="workStudent[toolIndex].length > 0"
  1631. >
  1632. <span>作业预览</span>
  1633. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1634. </div>
  1635. <div
  1636. class="worksDetailBox"
  1637. v-if="workStudent[toolIndex].length > 0"
  1638. >
  1639. <div
  1640. class="works"
  1641. style="
  1642. width: 200px;
  1643. height: 140px;
  1644. margin: 10px 10px 10px 0;
  1645. box-shadow: 0 0 6px 1px #dfdada;
  1646. "
  1647. v-for="(w, wIndex) in workStudent[toolIndex]"
  1648. :key="wIndex"
  1649. >
  1650. <div class="workImg">
  1651. <img
  1652. :src="w.works"
  1653. @click="previewImg(w.works)"
  1654. alt
  1655. />
  1656. <div
  1657. class="answerScore"
  1658. v-if="w.score"
  1659. @click.stop="openScore(w)"
  1660. :class="{
  1661. rightW:
  1662. w.userid == userid || tType == 1 || tType == 4,
  1663. }"
  1664. >
  1665. {{ JSON.parse(w.score).wScore }}分
  1666. </div>
  1667. <div
  1668. class="answerScore"
  1669. @click.stop="openScore(w)"
  1670. v-else-if="courseDetail.userid == userid"
  1671. :class="{
  1672. rightW:
  1673. w.userid == userid || tType == 1 || tType == 4,
  1674. }"
  1675. >
  1676. 评分
  1677. </div>
  1678. <img
  1679. class="deleteImg"
  1680. src="../assets/deleteworks.png"
  1681. v-if="
  1682. w.userid == userid || tType == 1 || tType == 4
  1683. "
  1684. @click.stop="deleteWorks(w.wid)"
  1685. alt
  1686. />
  1687. </div>
  1688. <div class="worksName">
  1689. <div>{{ w.sName }}</div>
  1690. </div>
  1691. </div>
  1692. </div>
  1693. </div>
  1694. <div
  1695. v-if="
  1696. tType &&
  1697. tType == 2 &&
  1698. !sIsOpen &&
  1699. tool.tool.indexOf(3) != -1
  1700. "
  1701. class="worksBox"
  1702. >
  1703. <div
  1704. class="zuoyeYulan"
  1705. v-if="workStudent[toolIndex].length > 0"
  1706. >
  1707. <span>作业预览</span>
  1708. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1709. </div>
  1710. <div
  1711. class="worksDetailBox"
  1712. v-if="workStudent[toolIndex].length > 0"
  1713. >
  1714. <div
  1715. class="works"
  1716. style="
  1717. width: 200px;
  1718. height: 140px;
  1719. margin: 10px 10px 10px 0;
  1720. box-shadow: 0 0 6px 1px #dfdada;
  1721. "
  1722. v-for="(w, wIndex) in workStudent[toolIndex]"
  1723. :key="wIndex"
  1724. >
  1725. <div class="workImg">
  1726. <img
  1727. :src="w.works"
  1728. @click="previewImg(w.works)"
  1729. alt
  1730. />
  1731. <div
  1732. class="answerScore"
  1733. v-if="w.score"
  1734. @click.stop="openScore(w)"
  1735. :class="{
  1736. rightW:
  1737. w.userid == userid || tType == 1 || tType == 4,
  1738. }"
  1739. >
  1740. {{ JSON.parse(w.score).wScore }}分
  1741. </div>
  1742. <div
  1743. class="answerScore"
  1744. @click.stop="openScore(w)"
  1745. v-else-if="courseDetail.userid == userid"
  1746. :class="{
  1747. rightW:
  1748. w.userid == userid || tType == 1 || tType == 4,
  1749. }"
  1750. >
  1751. 评分
  1752. </div>
  1753. <img
  1754. class="deleteImg"
  1755. src="../assets/deleteworks.png"
  1756. v-if="
  1757. w.userid == userid || tType == 1 || tType == 4
  1758. "
  1759. @click.stop="deleteWorks(w.wid)"
  1760. alt
  1761. />
  1762. </div>
  1763. <div class="worksName">
  1764. <div>{{ w.sName }}</div>
  1765. </div>
  1766. </div>
  1767. </div>
  1768. </div>
  1769. <div
  1770. v-if="
  1771. tType &&
  1772. tType == 2 &&
  1773. !sIsOpen &&
  1774. tool.tool.indexOf(6) != -1
  1775. "
  1776. class="worksBox"
  1777. >
  1778. <div
  1779. class="zuoyeYulan"
  1780. v-if="workStudent[toolIndex].length > 0"
  1781. >
  1782. <span>作业预览</span>
  1783. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1784. </div>
  1785. <div
  1786. class="worksDetailBox"
  1787. v-if="workStudent[toolIndex].length > 0"
  1788. >
  1789. <div
  1790. class="works"
  1791. style="
  1792. width: 200px;
  1793. height: 140px;
  1794. margin: 10px 10px 10px 0;
  1795. box-shadow: 0 0 6px 1px #dfdada;
  1796. "
  1797. v-for="(w, wIndex) in workStudent[toolIndex]"
  1798. :key="wIndex"
  1799. >
  1800. <div class="workImg">
  1801. <img
  1802. :src="w.works"
  1803. @click="previewImg(w.works)"
  1804. alt
  1805. />
  1806. <div
  1807. class="answerScore"
  1808. v-if="w.score"
  1809. @click.stop="openScore(w)"
  1810. :class="{
  1811. rightW:
  1812. w.userid == userid || tType == 1 || tType == 4,
  1813. }"
  1814. >
  1815. {{ JSON.parse(w.score).wScore }}分
  1816. </div>
  1817. <div
  1818. class="answerScore"
  1819. @click.stop="openScore(w)"
  1820. v-else-if="courseDetail.userid == userid"
  1821. :class="{
  1822. rightW:
  1823. w.userid == userid || tType == 1 || tType == 4,
  1824. }"
  1825. >
  1826. 评分
  1827. </div>
  1828. <img
  1829. class="deleteImg"
  1830. src="../assets/deleteworks.png"
  1831. v-if="
  1832. w.userid == userid || tType == 1 || tType == 4
  1833. "
  1834. @click.stop="deleteWorks(w.wid)"
  1835. alt
  1836. />
  1837. </div>
  1838. <div class="worksName">
  1839. <div>{{ w.sName }}</div>
  1840. </div>
  1841. </div>
  1842. </div>
  1843. </div>
  1844. <div
  1845. v-if="
  1846. tType &&
  1847. tType == 2 &&
  1848. !sIsOpen &&
  1849. tool.tool.indexOf(7) != -1
  1850. "
  1851. class="worksBox"
  1852. >
  1853. <div
  1854. class="zuoyeYulan"
  1855. v-if="workStudent[toolIndex].length > 0"
  1856. >
  1857. <span>作业预览</span>
  1858. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1859. </div>
  1860. <div
  1861. class="worksDetailBox"
  1862. v-if="workStudent[toolIndex].length > 0"
  1863. >
  1864. <div
  1865. class="works"
  1866. style="
  1867. width: 200px;
  1868. height: 140px;
  1869. margin: 10px 10px 10px 0;
  1870. box-shadow: 0 0 6px 1px #dfdada;
  1871. "
  1872. v-for="(w, wIndex) in workStudent[toolIndex]"
  1873. :key="wIndex"
  1874. >
  1875. <div class="workImg">
  1876. <img
  1877. :src="w.works"
  1878. @click="previewImg(w.works)"
  1879. alt
  1880. />
  1881. <div
  1882. class="answerScore"
  1883. v-if="w.score"
  1884. @click.stop="openScore(w)"
  1885. :class="{
  1886. rightW:
  1887. w.userid == userid || tType == 1 || tType == 4,
  1888. }"
  1889. >
  1890. {{ JSON.parse(w.score).wScore }}分
  1891. </div>
  1892. <div
  1893. class="answerScore"
  1894. @click.stop="openScore(w)"
  1895. v-else-if="courseDetail.userid == userid"
  1896. :class="{
  1897. rightW:
  1898. w.userid == userid || tType == 1 || tType == 4,
  1899. }"
  1900. >
  1901. 评分
  1902. </div>
  1903. <img
  1904. class="deleteImg"
  1905. src="../assets/deleteworks.png"
  1906. v-if="
  1907. w.userid == userid || tType == 1 || tType == 4
  1908. "
  1909. @click.stop="deleteWorks(w.wid)"
  1910. alt
  1911. />
  1912. </div>
  1913. <div class="worksName">
  1914. <div>{{ w.sName }}</div>
  1915. </div>
  1916. </div>
  1917. </div>
  1918. </div>
  1919. <div
  1920. v-if="
  1921. tType &&
  1922. tType == 2 &&
  1923. !sIsOpen &&
  1924. tool.tool.indexOf(26) != -1
  1925. "
  1926. class="worksBox"
  1927. >
  1928. <div
  1929. class="zuoyeYulan"
  1930. v-if="workStudent[toolIndex].length > 0"
  1931. >
  1932. <span>作业预览</span>
  1933. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1934. </div>
  1935. <div
  1936. class="worksDetailBox"
  1937. v-if="workStudent[toolIndex].length > 0"
  1938. >
  1939. <div
  1940. class="works"
  1941. style="
  1942. width: 200px;
  1943. height: 140px;
  1944. margin: 10px 10px 10px 0;
  1945. box-shadow: 0 0 6px 1px #dfdada;
  1946. "
  1947. v-for="(w, wIndex) in workStudent[toolIndex]"
  1948. :key="wIndex"
  1949. >
  1950. <div class="workImg">
  1951. <img
  1952. :src="w.works"
  1953. @click="previewImg(w.works)"
  1954. alt
  1955. />
  1956. <img
  1957. class="deleteImg"
  1958. src="../assets/deleteworks.png"
  1959. v-if="
  1960. w.userid == userid || tType == 1 || tType == 4
  1961. "
  1962. @click.stop="deleteWorks(w.wid)"
  1963. alt
  1964. />
  1965. </div>
  1966. <div class="worksName">
  1967. <div>{{ w.sName }}</div>
  1968. </div>
  1969. </div>
  1970. </div>
  1971. </div>
  1972. <div
  1973. v-if="
  1974. tType &&
  1975. ((tType == 2 && sIsOpen == true) ||
  1976. tType == 1 ||
  1977. tType == 4) &&
  1978. tool.tool.indexOf(16) != -1
  1979. "
  1980. class="worksBox"
  1981. >
  1982. <div
  1983. class="zuoyeYulan"
  1984. v-if="
  1985. worksStudent.length &&
  1986. worksStudent[toolIndex].length > 0
  1987. "
  1988. >
  1989. <div class="worksTop">
  1990. <div>作业预览</div>
  1991. <div
  1992. class="corOpen"
  1993. @click="contract(toolIndex)"
  1994. v-if="
  1995. worksStudent[toolIndex].length > 6 &&
  1996. isCloseList[toolIndex].isClose == 0
  1997. "
  1998. >
  1999. 收缩
  2000. </div>
  2001. <div
  2002. class="corOpen"
  2003. @click="contract(toolIndex)"
  2004. v-if="isCloseList[toolIndex].isClose == 1"
  2005. >
  2006. 展开
  2007. </div>
  2008. </div>
  2009. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2010. </div>
  2011. <div
  2012. class="group_workBox"
  2013. v-for="(g, gindex) in courseGroup.group"
  2014. :key="gindex"
  2015. >
  2016. <div class="group_box">
  2017. <div class="group_title">
  2018. <el-tooltip
  2019. class="item"
  2020. effect="light"
  2021. :content="g.name"
  2022. placement="top"
  2023. >
  2024. <div class="group_name">{{ g.name }}</div>
  2025. </el-tooltip>
  2026. </div>
  2027. <div
  2028. class="group_work"
  2029. v-if="
  2030. g.works &&
  2031. g.works.length &&
  2032. g.works[toolIndex].length
  2033. "
  2034. >
  2035. <div
  2036. class="works"
  2037. style="
  2038. width: 200px;
  2039. height: 140px;
  2040. margin: 10px 10px 10px 0;
  2041. border-radius: 15px;
  2042. box-shadow: 0 0 6px 1px #dfdada;
  2043. "
  2044. v-for="(w, wIndex) in g.works[toolIndex]"
  2045. :key="wIndex"
  2046. :class="w.type == 1 ? 'isTypeOne' : ''"
  2047. >
  2048. <div class="workImg" v-if="w.type == 0">
  2049. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2050. <img
  2051. :src="w.works"
  2052. @click="previewImg(w.works)"
  2053. alt
  2054. />
  2055. <div
  2056. class="answerScore"
  2057. v-if="w.score"
  2058. @click.stop="openScore(w)"
  2059. :class="{
  2060. rightW:
  2061. w.userid == userid ||
  2062. tType == 1 ||
  2063. tType == 4 ||
  2064. w.ateacher == userid,
  2065. }"
  2066. >
  2067. {{ JSON.parse(w.score).wScore }}分
  2068. </div>
  2069. <div
  2070. class="answerScore"
  2071. @click.stop="openScore(w)"
  2072. v-else-if="courseDetail.userid == userid"
  2073. :class="{
  2074. rightW:
  2075. w.userid == userid ||
  2076. tType == 1 ||
  2077. tType == 4 ||
  2078. w.ateacher == userid,
  2079. }"
  2080. >
  2081. 评分
  2082. </div>
  2083. <img
  2084. class="deleteImg"
  2085. src="../assets/deleteworks.png"
  2086. v-if="
  2087. w.userid == userid || tType == 1 || tType == 4
  2088. "
  2089. @click.stop="deleteWorks(w.wid)"
  2090. alt
  2091. />
  2092. </div>
  2093. <div class="workImg" v-if="w.type == 1">
  2094. <img :src="word" @click="openFile(w.works)" alt />
  2095. <!-- @click="openFile(w.works)" -->
  2096. <div
  2097. class="answerScore"
  2098. v-if="w.score"
  2099. @click.stop="openScore(w)"
  2100. :class="{
  2101. rightW:
  2102. w.userid == userid ||
  2103. tType == 1 ||
  2104. tType == 4 ||
  2105. w.ateacher == userid,
  2106. }"
  2107. >
  2108. {{ JSON.parse(w.score).wScore }}分
  2109. </div>
  2110. <div
  2111. class="answerScore"
  2112. @click.stop="openScore(w)"
  2113. v-else-if="courseDetail.userid == userid"
  2114. :class="{
  2115. rightW:
  2116. w.userid == userid ||
  2117. tType == 1 ||
  2118. tType == 4 ||
  2119. w.ateacher == userid,
  2120. }"
  2121. >
  2122. 评分
  2123. </div>
  2124. <img
  2125. class="deleteImg"
  2126. src="../assets/deleteworks.png"
  2127. v-if="
  2128. w.userid == userid || tType == 1 || tType == 4
  2129. "
  2130. @click.stop="deleteWorks(w.wid)"
  2131. alt
  2132. />
  2133. </div>
  2134. <div class="workImg" v-if="w.type == 3">
  2135. <img
  2136. style="cursor: pointer"
  2137. :src="video"
  2138. @click="openVideo(w)"
  2139. alt
  2140. />
  2141. <!-- @click="openVideo(w.works)" -->
  2142. <div
  2143. class="answerScore"
  2144. v-if="w.score"
  2145. @click.stop="openScore(w)"
  2146. :class="{
  2147. rightW:
  2148. w.userid == userid ||
  2149. tType == 1 ||
  2150. tType == 4 ||
  2151. w.ateacher == userid,
  2152. }"
  2153. >
  2154. {{ JSON.parse(w.score).wScore }}分
  2155. </div>
  2156. <div
  2157. class="answerScore"
  2158. @click.stop="openScore(w)"
  2159. v-else-if="courseDetail.userid == userid"
  2160. :class="{
  2161. rightW:
  2162. w.userid == userid ||
  2163. tType == 1 ||
  2164. tType == 4 ||
  2165. w.ateacher == userid,
  2166. }"
  2167. >
  2168. 评分
  2169. </div>
  2170. <img
  2171. class="deleteImg"
  2172. src="../assets/deleteworks.png"
  2173. v-if="
  2174. w.userid == userid || tType == 1 || tType == 4
  2175. "
  2176. @click.stop="deleteWorks(w.wid)"
  2177. alt
  2178. />
  2179. </div>
  2180. <div class="workImg" v-if="w.type == 12">
  2181. <img
  2182. style="cursor: pointer"
  2183. :src="word2"
  2184. @click="downloadFile(w.works)"
  2185. alt
  2186. />
  2187. <!-- @click="openVideo(w.works)" -->
  2188. <div
  2189. class="answerScore"
  2190. v-if="w.score"
  2191. @click.stop="openScore(w)"
  2192. :class="{
  2193. rightW:
  2194. w.userid == userid ||
  2195. tType == 1 ||
  2196. tType == 4 ||
  2197. w.ateacher == userid,
  2198. }"
  2199. >
  2200. {{ JSON.parse(w.score).wScore }}分
  2201. </div>
  2202. <div
  2203. class="answerScore"
  2204. @click.stop="openScore(w)"
  2205. v-else-if="courseDetail.userid == userid"
  2206. :class="{
  2207. rightW:
  2208. w.userid == userid ||
  2209. tType == 1 ||
  2210. tType == 4 ||
  2211. w.ateacher == userid,
  2212. }"
  2213. >
  2214. 评分
  2215. </div>
  2216. <img
  2217. class="deleteImg"
  2218. src="../assets/deleteworks.png"
  2219. v-if="
  2220. w.userid == userid || tType == 1 || tType == 4
  2221. "
  2222. @click.stop="deleteWorks(w.wid)"
  2223. alt
  2224. />
  2225. </div>
  2226. <div class="comment" style="min-width: 200px">
  2227. <div class="worksName">
  2228. <div>{{ w.sName }}</div>
  2229. </div>
  2230. <div class="commentList">
  2231. <div class="commentList">
  2232. <div
  2233. class="commentImg"
  2234. @click="
  2235. isLikes(w.wid, userid, 1, null, w.isLikes)
  2236. "
  2237. >
  2238. <img
  2239. :src="w.isLikes == true ? likes : noLikes"
  2240. alt=""
  2241. />
  2242. </div>
  2243. <div>{{ w.likesCount }}</div>
  2244. </div>
  2245. <div
  2246. class="commentList"
  2247. style="margin-right: 15px"
  2248. >
  2249. <div
  2250. class="commentImg"
  2251. @click="
  2252. commentOther(
  2253. w,
  2254. toolIndex,
  2255. wIndex,
  2256. null,
  2257. g.id
  2258. )
  2259. "
  2260. >
  2261. <img
  2262. src="../assets/icon/comment/comment.png"
  2263. alt=""
  2264. />
  2265. </div>
  2266. <div>{{ w.commentCount }}</div>
  2267. </div>
  2268. </div>
  2269. </div>
  2270. </div>
  2271. </div>
  2272. <div class="group_work" v-else>暂无提交作业</div>
  2273. </div>
  2274. </div>
  2275. <div
  2276. class="worksDetailBox"
  2277. v-if="
  2278. worksStudent.length &&
  2279. worksStudent[toolIndex].length > 0
  2280. "
  2281. >
  2282. <div
  2283. class="works"
  2284. style="
  2285. width: 200px;
  2286. height: 140px;
  2287. margin: 10px 10px 10px 0;
  2288. border-radius: 15px;
  2289. box-shadow: 0 0 6px 1px #dfdada;
  2290. "
  2291. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2292. 0
  2293. ? worksStudent[toolIndex]
  2294. : worksStudent[toolIndex].slice(0, 6)"
  2295. :key="wIndex"
  2296. :class="w.type == 1 ? 'isTypeOne' : ''"
  2297. >
  2298. <div class="workImg" v-if="w.type == 0">
  2299. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2300. <img
  2301. :src="w.works"
  2302. @click="previewImg(w.works)"
  2303. alt
  2304. />
  2305. <div
  2306. class="answerScore"
  2307. v-if="w.score"
  2308. @click.stop="openScore(w)"
  2309. :class="{
  2310. rightW:
  2311. w.userid == userid ||
  2312. tType == 1 ||
  2313. tType == 4 ||
  2314. w.ateacher == userid,
  2315. }"
  2316. >
  2317. {{ JSON.parse(w.score).wScore }}分
  2318. </div>
  2319. <div
  2320. class="answerScore"
  2321. @click.stop="openScore(w)"
  2322. v-else-if="courseDetail.userid == userid"
  2323. :class="{
  2324. rightW:
  2325. w.userid == userid ||
  2326. tType == 1 ||
  2327. tType == 4 ||
  2328. w.ateacher == userid,
  2329. }"
  2330. >
  2331. 评分
  2332. </div>
  2333. <img
  2334. class="deleteImg"
  2335. src="../assets/deleteworks.png"
  2336. v-if="
  2337. w.userid == userid || tType == 1 || tType == 4
  2338. "
  2339. @click.stop="deleteWorks(w.wid)"
  2340. alt
  2341. />
  2342. </div>
  2343. <div class="workImg" v-if="w.type == 1">
  2344. <img :src="word" @click="openFile(w.works)" alt />
  2345. <!-- @click="openFile(w.works)" -->
  2346. <div
  2347. class="answerScore"
  2348. v-if="w.score"
  2349. @click.stop="openScore(w)"
  2350. :class="{
  2351. rightW:
  2352. w.userid == userid ||
  2353. tType == 1 ||
  2354. tType == 4 ||
  2355. w.ateacher == userid,
  2356. }"
  2357. >
  2358. {{ JSON.parse(w.score).wScore }}分
  2359. </div>
  2360. <div
  2361. class="answerScore"
  2362. @click.stop="openScore(w)"
  2363. v-else-if="courseDetail.userid == userid"
  2364. :class="{
  2365. rightW:
  2366. w.userid == userid ||
  2367. tType == 1 ||
  2368. tType == 4 ||
  2369. w.ateacher == userid,
  2370. }"
  2371. >
  2372. 评分
  2373. </div>
  2374. <img
  2375. class="deleteImg"
  2376. src="../assets/deleteworks.png"
  2377. v-if="
  2378. w.userid == userid || tType == 1 || tType == 4
  2379. "
  2380. @click.stop="deleteWorks(w.wid)"
  2381. alt
  2382. />
  2383. </div>
  2384. <div class="workImg" v-if="w.type == 3">
  2385. <img
  2386. style="cursor: pointer"
  2387. :src="video"
  2388. @click="openVideo(w)"
  2389. alt
  2390. />
  2391. <!-- @click="openVideo(w.works)" -->
  2392. <div
  2393. class="answerScore"
  2394. v-if="w.score"
  2395. @click.stop="openScore(w)"
  2396. :class="{
  2397. rightW:
  2398. w.userid == userid ||
  2399. tType == 1 ||
  2400. tType == 4 ||
  2401. w.ateacher == userid,
  2402. }"
  2403. >
  2404. {{ JSON.parse(w.score).wScore }}分
  2405. </div>
  2406. <div
  2407. class="answerScore"
  2408. @click.stop="openScore(w)"
  2409. v-else-if="courseDetail.userid == userid"
  2410. :class="{
  2411. rightW:
  2412. w.userid == userid ||
  2413. tType == 1 ||
  2414. tType == 4 ||
  2415. w.ateacher == userid,
  2416. }"
  2417. >
  2418. 评分
  2419. </div>
  2420. <img
  2421. class="deleteImg"
  2422. src="../assets/deleteworks.png"
  2423. v-if="
  2424. w.userid == userid || tType == 1 || tType == 4
  2425. "
  2426. @click.stop="deleteWorks(w.wid)"
  2427. alt
  2428. />
  2429. </div>
  2430. <div class="workImg" v-if="w.type == 12">
  2431. <img
  2432. style="cursor: pointer"
  2433. :src="word2"
  2434. @click="downloadFile(w.works)"
  2435. alt
  2436. />
  2437. <!-- @click="openVideo(w.works)" -->
  2438. <div
  2439. class="answerScore"
  2440. v-if="w.score"
  2441. @click.stop="openScore(w)"
  2442. :class="{
  2443. rightW:
  2444. w.userid == userid ||
  2445. tType == 1 ||
  2446. tType == 4 ||
  2447. w.ateacher == userid,
  2448. }"
  2449. >
  2450. {{ JSON.parse(w.score).wScore }}分
  2451. </div>
  2452. <div
  2453. class="answerScore"
  2454. @click.stop="openScore(w)"
  2455. v-else-if="courseDetail.userid == userid"
  2456. :class="{
  2457. rightW:
  2458. w.userid == userid ||
  2459. tType == 1 ||
  2460. tType == 4 ||
  2461. w.ateacher == userid,
  2462. }"
  2463. >
  2464. 评分
  2465. </div>
  2466. <img
  2467. class="deleteImg"
  2468. src="../assets/deleteworks.png"
  2469. v-if="
  2470. w.userid == userid || tType == 1 || tType == 4
  2471. "
  2472. @click.stop="deleteWorks(w.wid)"
  2473. alt
  2474. />
  2475. </div>
  2476. <div class="comment" style="min-width: 200px">
  2477. <div class="worksName">
  2478. <div>{{ w.sName }}</div>
  2479. </div>
  2480. <div class="commentList">
  2481. <div class="commentList">
  2482. <div
  2483. class="commentImg"
  2484. @click="
  2485. isLikes(w.wid, userid, 1, null, w.isLikes)
  2486. "
  2487. >
  2488. <img
  2489. :src="w.isLikes == true ? likes : noLikes"
  2490. alt=""
  2491. />
  2492. </div>
  2493. <div>{{ w.likesCount }}</div>
  2494. </div>
  2495. <div class="commentList" style="margin-right: 15px">
  2496. <div
  2497. class="commentImg"
  2498. @click="commentOther(w, toolIndex, wIndex)"
  2499. >
  2500. <img
  2501. src="../assets/icon/comment/comment.png"
  2502. alt=""
  2503. />
  2504. </div>
  2505. <div>{{ w.commentCount }}</div>
  2506. </div>
  2507. </div>
  2508. </div>
  2509. </div>
  2510. </div>
  2511. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2512. 未提交
  2513. </div>
  2514. <div class="noWorksS">
  2515. <div
  2516. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2517. :key="sIndex"
  2518. class="noWorksName"
  2519. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2520. >
  2521. {{ s.student }}
  2522. </div>
  2523. </div>
  2524. </div>
  2525. <div
  2526. v-if="
  2527. tType &&
  2528. ((tType == 2 && sIsOpen == true) ||
  2529. tType == 1 ||
  2530. tType == 4) &&
  2531. tool.tool.indexOf(32) != -1
  2532. "
  2533. class="worksBox"
  2534. >
  2535. <div
  2536. class="zuoyeYulan"
  2537. v-if="
  2538. worksStudent.length &&
  2539. worksStudent[toolIndex].length > 0
  2540. "
  2541. >
  2542. <div class="worksTop">
  2543. <div>作业预览</div>
  2544. <div
  2545. class="corOpen"
  2546. @click="contract(toolIndex)"
  2547. v-if="
  2548. worksStudent[toolIndex].length > 6 &&
  2549. isCloseList[toolIndex].isClose == 0
  2550. "
  2551. >
  2552. 收缩
  2553. </div>
  2554. <div
  2555. class="corOpen"
  2556. @click="contract(toolIndex)"
  2557. v-if="isCloseList[toolIndex].isClose == 1"
  2558. >
  2559. 展开
  2560. </div>
  2561. </div>
  2562. </div>
  2563. <div
  2564. class="worksDetailBox"
  2565. v-if="
  2566. worksStudent.length &&
  2567. worksStudent[toolIndex].length > 0
  2568. "
  2569. >
  2570. <div
  2571. class="works"
  2572. style="
  2573. width: 200px;
  2574. height: 140px;
  2575. margin: 10px 10px 10px 0;
  2576. border-radius: 15px;
  2577. box-shadow: 0 0 6px 1px #dfdada;
  2578. "
  2579. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2580. 0
  2581. ? worksStudent[toolIndex]
  2582. : worksStudent[toolIndex].slice(0, 6)"
  2583. :key="wIndex"
  2584. :class="w.type == 1 ? 'isTypeOne' : ''"
  2585. >
  2586. <div class="workImg">
  2587. <img
  2588. :src="word2"
  2589. @click="downloadFile(w.works)"
  2590. alt
  2591. />
  2592. <div
  2593. class="answerScore"
  2594. v-if="w.score"
  2595. @click.stop="openScore(w)"
  2596. :class="{
  2597. rightW:
  2598. w.userid == userid ||
  2599. tType == 1 ||
  2600. tType == 4 ||
  2601. w.ateacher == userid,
  2602. }"
  2603. >
  2604. {{ JSON.parse(w.score).wScore }}分
  2605. </div>
  2606. <div
  2607. class="answerScore"
  2608. @click.stop="openScore(w)"
  2609. v-else-if="courseDetail.userid == userid"
  2610. :class="{
  2611. rightW:
  2612. w.userid == userid ||
  2613. tType == 1 ||
  2614. tType == 4 ||
  2615. w.ateacher == userid,
  2616. }"
  2617. >
  2618. 评分
  2619. </div>
  2620. <img
  2621. class="deleteImg"
  2622. src="../assets/deleteworks.png"
  2623. v-if="
  2624. w.userid == userid || tType == 1 || tType == 4
  2625. "
  2626. @click.stop="deleteWorks(w.wid)"
  2627. alt
  2628. />
  2629. </div>
  2630. <div class="comment" style="min-width: 200px">
  2631. <div class="worksName">
  2632. <div>{{ w.sName }}</div>
  2633. </div>
  2634. <div class="commentList">
  2635. <div class="commentList">
  2636. <div
  2637. class="commentImg"
  2638. @click="
  2639. isLikes(w.wid, userid, 1, null, w.isLikes)
  2640. "
  2641. >
  2642. <img
  2643. :src="w.isLikes == true ? likes : noLikes"
  2644. alt=""
  2645. />
  2646. </div>
  2647. <div>{{ w.likesCount }}</div>
  2648. </div>
  2649. <div class="commentList" style="margin-right: 15px">
  2650. <div
  2651. class="commentImg"
  2652. @click="commentOther(w, toolIndex, wIndex)"
  2653. >
  2654. <img
  2655. src="../assets/icon/comment/comment.png"
  2656. alt=""
  2657. />
  2658. </div>
  2659. <div>{{ w.commentCount }}</div>
  2660. </div>
  2661. </div>
  2662. </div>
  2663. </div>
  2664. </div>
  2665. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2666. 未提交
  2667. </div>
  2668. <div class="noWorksS">
  2669. <div
  2670. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2671. :key="sIndex"
  2672. class="noWorksName"
  2673. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2674. >
  2675. {{ s.student }}
  2676. </div>
  2677. </div>
  2678. </div>
  2679. <div
  2680. v-if="
  2681. tType &&
  2682. ((tType == 2 && sIsOpen == true) ||
  2683. tType == 1 ||
  2684. tType == 4) &&
  2685. tool.tool.indexOf(57) != -1
  2686. "
  2687. class="worksBox"
  2688. >
  2689. <div
  2690. class="zuoyeYulan"
  2691. v-if="
  2692. worksStudent.length &&
  2693. worksStudent[toolIndex].length > 0
  2694. "
  2695. >
  2696. <div class="worksTop">
  2697. <div>作业预览</div>
  2698. <div
  2699. class="corOpen"
  2700. @click="contract(toolIndex)"
  2701. v-if="
  2702. worksStudent[toolIndex].length > 6 &&
  2703. isCloseList[toolIndex].isClose == 0
  2704. "
  2705. >
  2706. 收缩
  2707. </div>
  2708. <div
  2709. class="corOpen"
  2710. @click="contract(toolIndex)"
  2711. v-if="isCloseList[toolIndex].isClose == 1"
  2712. >
  2713. 展开
  2714. </div>
  2715. </div>
  2716. </div>
  2717. <div
  2718. class="worksDetailBox"
  2719. v-if="
  2720. worksStudent.length &&
  2721. worksStudent[toolIndex].length > 0
  2722. "
  2723. >
  2724. <div
  2725. class="works"
  2726. style="
  2727. width: 200px;
  2728. height: 140px;
  2729. margin: 10px 10px 10px 0;
  2730. border-radius: 15px;
  2731. box-shadow: 0 0 6px 1px #dfdada;
  2732. "
  2733. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2734. 0
  2735. ? worksStudent[toolIndex]
  2736. : worksStudent[toolIndex].slice(0, 6)"
  2737. :key="wIndex"
  2738. :class="w.type == 1 ? 'isTypeOne' : ''"
  2739. >
  2740. <div class="workImg">
  2741. <img
  2742. :src="word2"
  2743. @click="downloadFile(w.works)"
  2744. alt
  2745. />
  2746. <div
  2747. class="answerScore"
  2748. v-if="w.score"
  2749. @click.stop="openScore(w)"
  2750. :class="{
  2751. rightW:
  2752. w.userid == userid ||
  2753. tType == 1 ||
  2754. tType == 4 ||
  2755. w.ateacher == userid,
  2756. }"
  2757. >
  2758. {{ JSON.parse(w.score).wScore }}分
  2759. </div>
  2760. <div
  2761. class="answerScore"
  2762. @click.stop="openScore(w)"
  2763. v-else-if="courseDetail.userid == userid"
  2764. :class="{
  2765. rightW:
  2766. w.userid == userid ||
  2767. tType == 1 ||
  2768. tType == 4 ||
  2769. w.ateacher == userid,
  2770. }"
  2771. >
  2772. 评分
  2773. </div>
  2774. <img
  2775. class="deleteImg"
  2776. src="../assets/deleteworks.png"
  2777. v-if="
  2778. w.userid == userid || tType == 1 || tType == 4
  2779. "
  2780. @click.stop="deleteWorks(w.wid)"
  2781. alt
  2782. />
  2783. </div>
  2784. <div class="comment" style="min-width: 200px">
  2785. <div class="worksName">
  2786. <div>{{ w.sName }}</div>
  2787. </div>
  2788. <div class="commentList">
  2789. <div class="commentList">
  2790. <div
  2791. class="commentImg"
  2792. @click="
  2793. isLikes(w.wid, userid, 1, null, w.isLikes)
  2794. "
  2795. >
  2796. <img
  2797. :src="w.isLikes == true ? likes : noLikes"
  2798. alt=""
  2799. />
  2800. </div>
  2801. <div>{{ w.likesCount }}</div>
  2802. </div>
  2803. <div class="commentList" style="margin-right: 15px">
  2804. <div
  2805. class="commentImg"
  2806. @click="commentOther(w, toolIndex, wIndex)"
  2807. >
  2808. <img
  2809. src="../assets/icon/comment/comment.png"
  2810. alt=""
  2811. />
  2812. </div>
  2813. <div>{{ w.commentCount }}</div>
  2814. </div>
  2815. </div>
  2816. </div>
  2817. </div>
  2818. </div>
  2819. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2820. 未提交
  2821. </div>
  2822. <div class="noWorksS">
  2823. <div
  2824. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2825. :key="sIndex"
  2826. class="noWorksName"
  2827. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  2828. >
  2829. {{ s.student }}
  2830. </div>
  2831. </div>
  2832. </div>
  2833. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2834. <div
  2835. class="zuoyeYulan"
  2836. v-if="
  2837. worksStudent.length &&
  2838. worksStudent[toolIndex].length > 0
  2839. "
  2840. >
  2841. <span>作业预览</span>
  2842. <div
  2843. class="corOpen"
  2844. @click="contract(toolIndex)"
  2845. v-if="
  2846. worksStudent[toolIndex].length > 6 &&
  2847. isCloseList[toolIndex].isClose == 0
  2848. "
  2849. >
  2850. 收缩
  2851. </div>
  2852. <div
  2853. class="corOpen"
  2854. @click="contract(toolIndex)"
  2855. v-if="isCloseList[toolIndex].isClose == 1"
  2856. >
  2857. 展开
  2858. </div>
  2859. </div>
  2860. <div
  2861. class="worksDetailBox"
  2862. v-if="
  2863. worksStudent.length &&
  2864. worksStudent[toolIndex].length > 0
  2865. "
  2866. >
  2867. <div
  2868. class="works"
  2869. style="
  2870. width: 200px;
  2871. height: 140px;
  2872. margin: 10px 10px 10px 0;
  2873. border-radius: 15px;
  2874. box-shadow: 0 0 6px 1px #dfdada;
  2875. "
  2876. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2877. 0
  2878. ? worksStudent[toolIndex]
  2879. : worksStudent[toolIndex].slice(0, 6)"
  2880. :key="wIndex"
  2881. :class="w.type == 1 ? 'isTypeOne' : ''"
  2882. >
  2883. <div class="workImg" v-if="w.type == 0">
  2884. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2885. <img
  2886. :src="w.works"
  2887. @click="previewImg(w.works)"
  2888. alt
  2889. />
  2890. <div
  2891. class="answerScore"
  2892. v-if="w.score"
  2893. @click.stop="openScore(w)"
  2894. :class="{
  2895. rightW:
  2896. w.userid == userid ||
  2897. tType == 1 ||
  2898. tType == 4 ||
  2899. w.ateacher == userid,
  2900. }"
  2901. >
  2902. {{ JSON.parse(w.score).wScore }}分
  2903. </div>
  2904. <div
  2905. class="answerScore"
  2906. @click.stop="openScore(w)"
  2907. v-else-if="courseDetail.userid == userid"
  2908. :class="{
  2909. rightW:
  2910. w.userid == userid ||
  2911. tType == 1 ||
  2912. tType == 4 ||
  2913. w.ateacher == userid,
  2914. }"
  2915. >
  2916. 评分
  2917. </div>
  2918. <img
  2919. class="deleteImg"
  2920. src="../assets/deleteworks.png"
  2921. v-if="
  2922. w.userid == userid || tType == 1 || tType == 4
  2923. "
  2924. @click.stop="deleteWorks(w.wid)"
  2925. alt
  2926. />
  2927. </div>
  2928. <div
  2929. class="workImg"
  2930. style="cursor: pointer"
  2931. v-if="w.type == 1"
  2932. >
  2933. <img :src="word" @click="openFile(w.works)" alt />
  2934. <!-- @click="openFile(w.works)" -->
  2935. <div
  2936. class="answerScore"
  2937. v-if="w.score"
  2938. @click.stop="openScore(w)"
  2939. :class="{
  2940. rightW:
  2941. w.userid == userid ||
  2942. tType == 1 ||
  2943. tType == 4 ||
  2944. w.ateacher == userid,
  2945. }"
  2946. >
  2947. {{ JSON.parse(w.score).wScore }}分
  2948. </div>
  2949. <div
  2950. class="answerScore"
  2951. @click.stop="openScore(w)"
  2952. v-else-if="courseDetail.userid == userid"
  2953. :class="{
  2954. rightW:
  2955. w.userid == userid ||
  2956. tType == 1 ||
  2957. tType == 4 ||
  2958. w.ateacher == userid,
  2959. }"
  2960. >
  2961. 评分
  2962. </div>
  2963. <img
  2964. class="deleteImg"
  2965. src="../assets/deleteworks.png"
  2966. v-if="
  2967. w.userid == userid || tType == 1 || tType == 4
  2968. "
  2969. @click.stop="deleteWorks(w.wid)"
  2970. alt
  2971. />
  2972. </div>
  2973. <div class="workImg" v-if="w.type == 3">
  2974. <img
  2975. style="cursor: pointer"
  2976. :src="video"
  2977. @click="openVideo(w)"
  2978. alt
  2979. />
  2980. <!-- @click="openVideo(w.works)" -->
  2981. <div
  2982. class="answerScore"
  2983. v-if="w.score"
  2984. @click.stop="openScore(w)"
  2985. :class="{
  2986. rightW:
  2987. w.userid == userid ||
  2988. tType == 1 ||
  2989. tType == 4 ||
  2990. w.ateacher == userid,
  2991. }"
  2992. >
  2993. {{ JSON.parse(w.score).wScore }}分
  2994. </div>
  2995. <div
  2996. class="answerScore"
  2997. @click.stop="openScore(w)"
  2998. v-else-if="courseDetail.userid == userid"
  2999. :class="{
  3000. rightW:
  3001. w.userid == userid ||
  3002. tType == 1 ||
  3003. tType == 4 ||
  3004. w.ateacher == userid,
  3005. }"
  3006. >
  3007. 评分
  3008. </div>
  3009. <img
  3010. class="deleteImg"
  3011. src="../assets/deleteworks.png"
  3012. v-if="
  3013. w.userid == userid || tType == 1 || tType == 4
  3014. "
  3015. @click.stop="deleteWorks(w.wid)"
  3016. alt
  3017. />
  3018. </div>
  3019. <div class="comment" style="min-width: 200px">
  3020. <div class="worksName">
  3021. <div
  3022. style="cursor: pointer"
  3023. @click="openSname(w.sName, w.wid, toolIndex)"
  3024. >
  3025. {{ w.sName }}
  3026. </div>
  3027. </div>
  3028. <div class="commentList">
  3029. <div class="commentList">
  3030. <div
  3031. class="commentImg"
  3032. @click="
  3033. isLikes(w.wid, userid, 1, null, w.isLikes)
  3034. "
  3035. >
  3036. <img
  3037. :src="w.isLikes == true ? likes : noLikes"
  3038. alt=""
  3039. />
  3040. </div>
  3041. <div>{{ w.likesCount }}</div>
  3042. </div>
  3043. <div class="commentList" style="margin-right: 15px">
  3044. <div
  3045. class="commentImg"
  3046. @click="commentOther(w, toolIndex, wIndex)"
  3047. >
  3048. <img
  3049. src="../assets/icon/comment/comment.png"
  3050. alt=""
  3051. />
  3052. </div>
  3053. <div>{{ w.commentCount }}</div>
  3054. </div>
  3055. </div>
  3056. </div>
  3057. </div>
  3058. </div>
  3059. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3060. 未提交
  3061. </div>
  3062. <div class="noWorksS">
  3063. <div
  3064. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3065. :key="sIndex"
  3066. class="noWorksName"
  3067. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3068. >
  3069. {{ s.student }}
  3070. </div>
  3071. </div>
  3072. </div>
  3073. <div
  3074. v-if="
  3075. tType &&
  3076. ((tType == 2 && sIsOpen == true) ||
  3077. tType == 1 ||
  3078. tType == 4) &&
  3079. tool.tool.indexOf(4) != -1 &&
  3080. (tool.askJson[0].answer ||
  3081. tool.askJson[0].answer === 0) &&
  3082. checkJson[toolIndex].length
  3083. "
  3084. class="xuan_right_box"
  3085. >
  3086. <div
  3087. class="tool_right_box"
  3088. v-for="(item, index) in tool.askJson"
  3089. :key="index"
  3090. >
  3091. <div>
  3092. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  3093. </div>
  3094. <div class="right_box_xuan">
  3095. <span>正确率</span>
  3096. <span>{{
  3097. (checkJson[toolIndex][index].right
  3098. ? checkJson[toolIndex][index].right
  3099. : 0) + "%"
  3100. }}</span>
  3101. </div>
  3102. </div>
  3103. </div>
  3104. <div
  3105. class="xuan_right_box"
  3106. style="background: unset"
  3107. v-if="
  3108. tType &&
  3109. ((tType == 2 && sIsOpen == true) ||
  3110. tType == 1 ||
  3111. tType == 4) &&
  3112. tool.tool.indexOf(4) != -1
  3113. "
  3114. >
  3115. <AskStatic
  3116. v-if="
  3117. worksStudent.length &&
  3118. worksStudent[toolIndex].length > 0
  3119. "
  3120. :askJSON="tool"
  3121. :checkJson="checkJson[toolIndex]"
  3122. ></AskStatic>
  3123. </div>
  3124. <div
  3125. v-if="
  3126. tType &&
  3127. ((tType == 2 && sIsOpen == true) ||
  3128. tType == 1 ||
  3129. tType == 4) &&
  3130. tool.tool.indexOf(4) != -1
  3131. "
  3132. class="worksBox"
  3133. >
  3134. <div
  3135. class="zuoyeYulan"
  3136. v-if="
  3137. worksStudent.length &&
  3138. worksStudent[toolIndex].length > 0
  3139. "
  3140. >
  3141. <div class="worksTop">
  3142. <div>作业预览</div>
  3143. <div
  3144. class="corOpen"
  3145. @click="contract(toolIndex)"
  3146. v-if="
  3147. worksStudent[toolIndex].length > 6 &&
  3148. isCloseList[toolIndex].isClose == 0
  3149. "
  3150. >
  3151. 收缩
  3152. </div>
  3153. <div
  3154. class="corOpen"
  3155. @click="contract(toolIndex)"
  3156. v-if="isCloseList[toolIndex].isClose == 1"
  3157. >
  3158. 展开
  3159. </div>
  3160. </div>
  3161. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3162. </div>
  3163. <div>
  3164. <div
  3165. class="worksDetailBox"
  3166. v-if="
  3167. worksStudent.length &&
  3168. worksStudent[toolIndex].length > 0
  3169. "
  3170. >
  3171. <div
  3172. v-for="(w, wIndex) in isCloseList[toolIndex]
  3173. .isClose == 0
  3174. ? worksStudent[toolIndex]
  3175. : worksStudent[toolIndex].slice(0, 6)"
  3176. :key="wIndex"
  3177. class="isWorksName"
  3178. @click="
  3179. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3180. "
  3181. >
  3182. {{ w.sName }}
  3183. <img
  3184. class="deleteImg deleteImg2"
  3185. src="../assets/deleteworks.png"
  3186. v-if="
  3187. w.userid == userid || tType == 1 || tType == 4
  3188. "
  3189. @click.stop="deleteWorks(w.wid)"
  3190. alt
  3191. />
  3192. </div>
  3193. <!-- <div class="works" style="
  3194. width: 200px;
  3195. height: 140px;
  3196. border-radius: 10px;
  3197. box-shadow: 0 0 6px 1px #dfdada;
  3198. overflow: hidden;
  3199. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3200. <div class="workImg">
  3201. <img src="../assets/icon/works/noImg.png" @click="
  3202. openTools(
  3203. 4,
  3204. toolIndex,
  3205. taskCount,
  3206. w.works,
  3207. w.sName
  3208. )
  3209. " alt />
  3210. </div>
  3211. <div class="worksName">
  3212. <div>{{ w.sName }}</div>
  3213. <div>{{ w.time }}</div>
  3214. </div>
  3215. </div> -->
  3216. </div>
  3217. </div>
  3218. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3219. 未提交
  3220. </div>
  3221. <div class="noWorksS">
  3222. <div
  3223. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3224. :key="sIndex"
  3225. class="noWorksName"
  3226. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3227. >
  3228. {{ s.student }}
  3229. </div>
  3230. </div>
  3231. </div>
  3232. <div
  3233. v-if="
  3234. tType &&
  3235. ((tType == 2 && sIsOpen == true) ||
  3236. tType == 1 ||
  3237. tType == 4) &&
  3238. tool.tool.indexOf(45) != -1 &&
  3239. (tool.testJson.testJson[0].answer ||
  3240. tool.testJson.testJson[0].answer === 0) &&
  3241. checkJson[toolIndex].length
  3242. "
  3243. class="xuan_right_box"
  3244. >
  3245. <div
  3246. class="tool_right_box"
  3247. v-for="(item, index) in tool.testJson.testJson"
  3248. :key="index"
  3249. >
  3250. <div>
  3251. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  3252. </div>
  3253. <div class="right_box_xuan">
  3254. <span>正确率</span>
  3255. <span>{{
  3256. (checkJson[toolIndex][index].right
  3257. ? checkJson[toolIndex][index].right
  3258. : 0) + "%"
  3259. }}</span>
  3260. </div>
  3261. </div>
  3262. </div>
  3263. <div
  3264. class="xuan_right_box"
  3265. style="background: unset"
  3266. v-if="
  3267. tType &&
  3268. ((tType == 2 && sIsOpen == true) ||
  3269. tType == 1 ||
  3270. tType == 4) &&
  3271. tool.tool.indexOf(45) != -1
  3272. "
  3273. >
  3274. <AskStatic2
  3275. v-if="
  3276. worksStudent.length &&
  3277. worksStudent[toolIndex].length > 0
  3278. "
  3279. :askJSON="tool"
  3280. :checkJson="checkJson[toolIndex]"
  3281. ></AskStatic2>
  3282. </div>
  3283. <div
  3284. v-if="
  3285. tType &&
  3286. ((tType == 2 && sIsOpen == true) ||
  3287. tType == 1 ||
  3288. tType == 4) &&
  3289. tool.tool.indexOf(45) != -1
  3290. "
  3291. class="worksBox"
  3292. >
  3293. <div
  3294. class="zuoyeYulan"
  3295. v-if="
  3296. worksStudent.length &&
  3297. worksStudent[toolIndex].length > 0
  3298. "
  3299. >
  3300. <div class="worksTop">
  3301. <div>作业预览</div>
  3302. <div
  3303. class="corOpen"
  3304. @click="contract(toolIndex)"
  3305. v-if="
  3306. worksStudent[toolIndex].length > 6 &&
  3307. isCloseList[toolIndex].isClose == 0
  3308. "
  3309. >
  3310. 收缩
  3311. </div>
  3312. <div
  3313. class="corOpen"
  3314. @click="contract(toolIndex)"
  3315. v-if="isCloseList[toolIndex].isClose == 1"
  3316. >
  3317. 展开
  3318. </div>
  3319. </div>
  3320. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3321. </div>
  3322. <div>
  3323. <div
  3324. class="worksDetailBox"
  3325. v-if="
  3326. worksStudent.length &&
  3327. worksStudent[toolIndex].length > 0
  3328. "
  3329. >
  3330. <div
  3331. v-for="(w, wIndex) in isCloseList[toolIndex]
  3332. .isClose == 0
  3333. ? worksStudent[toolIndex]
  3334. : worksStudent[toolIndex].slice(0, 6)"
  3335. :key="wIndex"
  3336. class="isWorksName"
  3337. @click="
  3338. openTools(
  3339. 45,
  3340. toolIndex,
  3341. taskCount,
  3342. w.works,
  3343. w.sName
  3344. )
  3345. "
  3346. >
  3347. {{ w.sName }}
  3348. <img
  3349. class="deleteImg deleteImg2"
  3350. src="../assets/deleteworks.png"
  3351. v-if="
  3352. w.userid == userid || tType == 1 || tType == 4
  3353. "
  3354. @click.stop="deleteWorks(w.wid)"
  3355. alt
  3356. />
  3357. </div>
  3358. </div>
  3359. </div>
  3360. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3361. 未提交
  3362. </div>
  3363. <div class="noWorksS">
  3364. <div
  3365. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3366. :key="sIndex"
  3367. class="noWorksName"
  3368. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3369. >
  3370. {{ s.student }}
  3371. </div>
  3372. </div>
  3373. </div>
  3374. <div
  3375. v-if="
  3376. tType &&
  3377. ((tType == 2 && sIsOpen == true) ||
  3378. tType == 1 ||
  3379. tType == 4) &&
  3380. tool.tool.indexOf(15) != -1
  3381. "
  3382. class="worksBox"
  3383. >
  3384. <div
  3385. class="zuoyeYulan"
  3386. v-if="
  3387. worksStudent.length &&
  3388. worksStudent[toolIndex].length > 0
  3389. "
  3390. >
  3391. <div class="worksTop">
  3392. <div>作业预览</div>
  3393. <div
  3394. class="corOpen"
  3395. @click="contract(toolIndex)"
  3396. v-if="
  3397. worksStudent[toolIndex].length > 6 &&
  3398. isCloseList[toolIndex].isClose == 0
  3399. "
  3400. >
  3401. 收缩
  3402. </div>
  3403. <div
  3404. class="corOpen"
  3405. @click="contract(toolIndex)"
  3406. v-if="isCloseList[toolIndex].isClose == 1"
  3407. >
  3408. 展开
  3409. </div>
  3410. </div>
  3411. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3412. </div>
  3413. <div
  3414. class="group_workBox"
  3415. v-for="(g, gindex) in courseGroup.group"
  3416. :key="gindex"
  3417. >
  3418. <div class="group_box">
  3419. <div class="group_title">
  3420. <el-tooltip
  3421. class="item"
  3422. effect="light"
  3423. :content="g.name"
  3424. placement="top"
  3425. >
  3426. <div class="group_name">{{ g.name }}</div>
  3427. </el-tooltip>
  3428. </div>
  3429. <div
  3430. class="group_work"
  3431. v-if="
  3432. g.works &&
  3433. g.works.length &&
  3434. g.works[toolIndex].length
  3435. "
  3436. >
  3437. <div
  3438. class="works"
  3439. v-for="(w, wIndex) in g.works[toolIndex]"
  3440. :key="wIndex"
  3441. >
  3442. <div
  3443. class="workImg"
  3444. style="
  3445. border-radius: 15px;
  3446. box-shadow: #eee 0px 0px 5px 5px;
  3447. "
  3448. >
  3449. <div
  3450. class="answerBg"
  3451. style="border-radius: 15px 15px 0 0"
  3452. @click="
  3453. commentOther(w, toolIndex, wIndex, null, g.id)
  3454. "
  3455. >
  3456. <div class="answerContent">
  3457. {{ JSON.parse(w.works)[0].answer }}
  3458. </div>
  3459. <div
  3460. class="answerScore"
  3461. v-if="w.score"
  3462. @click.stop="openScore(w)"
  3463. :class="{
  3464. rightW:
  3465. w.userid == userid ||
  3466. tType == 1 ||
  3467. tType == 4,
  3468. }"
  3469. >
  3470. {{ JSON.parse(w.score).wScore }}分
  3471. </div>
  3472. <div
  3473. class="answerScore"
  3474. @click.stop="openScore(w)"
  3475. v-else-if="courseDetail.userid == userid"
  3476. :class="{
  3477. rightW:
  3478. w.userid == userid ||
  3479. tType == 1 ||
  3480. tType == 4,
  3481. }"
  3482. >
  3483. 评分
  3484. </div>
  3485. <img
  3486. class="deleteImg"
  3487. src="../assets/deleteworks.png"
  3488. v-if="
  3489. w.userid == userid ||
  3490. tType == 1 ||
  3491. tType == 4
  3492. "
  3493. @click.stop="deleteWorks(w.wid)"
  3494. alt
  3495. />
  3496. </div>
  3497. <div class="comment">
  3498. <div class="worksName">
  3499. <div>{{ w.sName }}</div>
  3500. </div>
  3501. <div class="commentList">
  3502. <div
  3503. class="commentImg"
  3504. @click="
  3505. isLikes(w.wid, userid, 1, null, w.isLikes)
  3506. "
  3507. >
  3508. <img
  3509. :src="w.isLikes == true ? likes : noLikes"
  3510. alt=""
  3511. />
  3512. </div>
  3513. <div>{{ w.likesCount }}</div>
  3514. </div>
  3515. <div
  3516. class="commentList"
  3517. style="margin-right: 15px"
  3518. >
  3519. <div
  3520. class="commentImg"
  3521. @click="
  3522. commentOther(
  3523. w,
  3524. toolIndex,
  3525. wIndex,
  3526. null,
  3527. g.id
  3528. )
  3529. "
  3530. >
  3531. <img
  3532. src="../assets/icon/comment/comment.png"
  3533. alt=""
  3534. />
  3535. </div>
  3536. <div>{{ w.commentCount }}</div>
  3537. </div>
  3538. </div>
  3539. </div>
  3540. </div>
  3541. </div>
  3542. <div class="group_work" v-else>暂无提交作业</div>
  3543. </div>
  3544. </div>
  3545. <div
  3546. class="worksDetailBox"
  3547. v-if="
  3548. worksStudent.length &&
  3549. worksStudent[toolIndex].length > 0
  3550. "
  3551. >
  3552. <div
  3553. class="works"
  3554. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3555. 0
  3556. ? worksStudent[toolIndex]
  3557. : worksStudent[toolIndex].slice(0, 6)"
  3558. :key="wIndex"
  3559. >
  3560. <div
  3561. class="workImg"
  3562. style="
  3563. border-radius: 15px;
  3564. box-shadow: #eee 0px 0px 5px 5px;
  3565. "
  3566. >
  3567. <!-- <img
  3568. src="../assets/icon/works/noImg.png"
  3569. @click="openTools(15, toolIndex, taskCount, w.works)"
  3570. alt=""
  3571. />-->
  3572. <div
  3573. class="answerBg"
  3574. style="border-radius: 15px 15px 0 0"
  3575. @click="commentOther(w, toolIndex, wIndex)"
  3576. >
  3577. <!-- <div>{{ w.sName }}</div> -->
  3578. <div class="answerContent">
  3579. {{ JSON.parse(w.works)[0].answer }}
  3580. </div>
  3581. <div
  3582. class="answerScore"
  3583. v-if="w.score"
  3584. @click.stop="openScore(w)"
  3585. :class="{
  3586. rightW:
  3587. w.userid == userid ||
  3588. tType == 1 ||
  3589. tType == 4,
  3590. }"
  3591. >
  3592. {{ JSON.parse(w.score).wScore }}分
  3593. </div>
  3594. <div
  3595. class="answerScore"
  3596. @click.stop="openScore(w)"
  3597. v-else-if="courseDetail.userid == userid"
  3598. :class="{
  3599. rightW:
  3600. w.userid == userid ||
  3601. tType == 1 ||
  3602. tType == 4,
  3603. }"
  3604. >
  3605. 评分
  3606. </div>
  3607. <img
  3608. class="deleteImg"
  3609. src="../assets/deleteworks.png"
  3610. v-if="
  3611. w.userid == userid || tType == 1 || tType == 4
  3612. "
  3613. @click.stop="deleteWorks(w.wid)"
  3614. alt
  3615. />
  3616. </div>
  3617. <div class="comment">
  3618. <div class="worksName">
  3619. <div>{{ w.sName }}</div>
  3620. </div>
  3621. <div class="commentList">
  3622. <div
  3623. class="commentImg"
  3624. @click="
  3625. isLikes(w.wid, userid, 1, null, w.isLikes)
  3626. "
  3627. >
  3628. <img
  3629. :src="w.isLikes == true ? likes : noLikes"
  3630. alt=""
  3631. />
  3632. </div>
  3633. <div>{{ w.likesCount }}</div>
  3634. </div>
  3635. <div class="commentList" style="margin-right: 15px">
  3636. <div
  3637. class="commentImg"
  3638. @click="commentOther(w, toolIndex, wIndex)"
  3639. >
  3640. <img
  3641. src="../assets/icon/comment/comment.png"
  3642. alt=""
  3643. />
  3644. </div>
  3645. <div>{{ w.commentCount }}</div>
  3646. </div>
  3647. </div>
  3648. </div>
  3649. </div>
  3650. </div>
  3651. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3652. 未提交
  3653. </div>
  3654. <div class="noWorksS">
  3655. <div
  3656. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3657. :key="sIndex"
  3658. class="noWorksName"
  3659. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  3660. >
  3661. {{ s.student }}
  3662. </div>
  3663. </div>
  3664. </div>
  3665. <div
  3666. v-if="
  3667. tType &&
  3668. ((tType == 2 && sIsOpen == true) ||
  3669. tType == 1 ||
  3670. tType == 4) &&
  3671. tool.tool.indexOf(1) != -1
  3672. "
  3673. class="worksBox"
  3674. >
  3675. <div
  3676. class="zuoyeYulan"
  3677. v-if="
  3678. worksStudent.length &&
  3679. worksStudent[toolIndex].length > 0
  3680. "
  3681. >
  3682. <div class="worksTop">
  3683. <div>作业预览</div>
  3684. <div
  3685. class="corOpen"
  3686. @click="contract(toolIndex)"
  3687. v-if="
  3688. worksStudent[toolIndex].length > 6 &&
  3689. isCloseList[toolIndex].isClose == 0
  3690. "
  3691. >
  3692. 收缩
  3693. </div>
  3694. <div
  3695. class="corOpen"
  3696. @click="contract(toolIndex)"
  3697. v-if="isCloseList[toolIndex].isClose == 1"
  3698. >
  3699. 展开
  3700. </div>
  3701. </div>
  3702. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3703. </div>
  3704. <div
  3705. class="group_workBox"
  3706. v-for="(g, gindex) in courseGroup.group"
  3707. :key="gindex"
  3708. >
  3709. <div class="group_box">
  3710. <div class="group_title">
  3711. <el-tooltip
  3712. class="item"
  3713. effect="light"
  3714. :content="g.name"
  3715. placement="top"
  3716. >
  3717. <div class="group_name">{{ g.name }}</div>
  3718. </el-tooltip>
  3719. </div>
  3720. <div
  3721. class="group_work"
  3722. v-if="
  3723. g.works &&
  3724. g.works.length &&
  3725. g.works[toolIndex].length
  3726. "
  3727. >
  3728. <div
  3729. class="works"
  3730. style="
  3731. width: 200px;
  3732. height: 140px;
  3733. margin: 10px 10px 10px 0;
  3734. border-radius: 15px;
  3735. box-shadow: 0 0 6px 1px #dfdada;
  3736. "
  3737. v-for="(w, wIndex) in g.works[toolIndex]"
  3738. :key="wIndex"
  3739. :class="w.type == 1 ? 'isTypeOne' : ''"
  3740. >
  3741. <div class="workImg">
  3742. <img
  3743. :src="w.works"
  3744. @click="previewImg(w.works)"
  3745. alt
  3746. />
  3747. <div
  3748. class="answerScore"
  3749. v-if="w.score"
  3750. @click.stop="openScore(w)"
  3751. :class="{
  3752. rightW:
  3753. w.userid == userid ||
  3754. tType == 1 ||
  3755. tType == 4,
  3756. }"
  3757. >
  3758. {{ JSON.parse(w.score).wScore }}分
  3759. </div>
  3760. <div
  3761. class="answerScore"
  3762. @click.stop="openScore(w)"
  3763. v-else-if="courseDetail.userid == userid"
  3764. :class="{
  3765. rightW:
  3766. w.userid == userid ||
  3767. tType == 1 ||
  3768. tType == 4,
  3769. }"
  3770. >
  3771. 评分
  3772. </div>
  3773. <img
  3774. class="deleteImg"
  3775. src="../assets/deleteworks.png"
  3776. v-if="
  3777. w.userid == userid || tType == 1 || tType == 4
  3778. "
  3779. @click.stop="deleteWorks(w.wid)"
  3780. alt
  3781. />
  3782. </div>
  3783. <div class="comment" style="min-width: 200px">
  3784. <div class="worksName">
  3785. <div>{{ w.sName }}</div>
  3786. </div>
  3787. <div class="commentList">
  3788. <div class="commentList">
  3789. <div
  3790. class="commentImg"
  3791. @click="
  3792. isLikes(w.wid, userid, 1, null, w.isLikes)
  3793. "
  3794. >
  3795. <img
  3796. :src="w.isLikes == true ? likes : noLikes"
  3797. alt=""
  3798. />
  3799. </div>
  3800. <div>{{ w.likesCount }}</div>
  3801. </div>
  3802. <div
  3803. class="commentList"
  3804. style="margin-right: 15px"
  3805. >
  3806. <div
  3807. class="commentImg"
  3808. @click="
  3809. commentOther(
  3810. w,
  3811. toolIndex,
  3812. wIndex,
  3813. null,
  3814. g.id
  3815. )
  3816. "
  3817. >
  3818. <img
  3819. src="../assets/icon/comment/comment.png"
  3820. alt=""
  3821. />
  3822. </div>
  3823. <div>{{ w.commentCount }}</div>
  3824. </div>
  3825. </div>
  3826. </div>
  3827. </div>
  3828. </div>
  3829. <div class="group_work" v-else>暂无提交作业</div>
  3830. </div>
  3831. </div>
  3832. <div
  3833. class="worksDetailBox"
  3834. v-if="
  3835. worksStudent.length &&
  3836. worksStudent[toolIndex].length > 0
  3837. "
  3838. >
  3839. <div
  3840. class="works"
  3841. style="
  3842. width: 200px;
  3843. height: 140px;
  3844. margin: 10px 10px 10px 0;
  3845. border-radius: 15px;
  3846. box-shadow: 0 0 6px 1px #dfdada;
  3847. "
  3848. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3849. 0
  3850. ? worksStudent[toolIndex]
  3851. : worksStudent[toolIndex].slice(0, 6)"
  3852. :key="wIndex"
  3853. >
  3854. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  3855. <div class="workImg">
  3856. <img
  3857. :src="w.works"
  3858. @click="previewImg(w.works)"
  3859. alt
  3860. />
  3861. <div
  3862. class="answerScore"
  3863. v-if="w.score"
  3864. @click.stop="openScore(w)"
  3865. :class="{
  3866. rightW:
  3867. w.userid == userid || tType == 1 || tType == 4,
  3868. }"
  3869. >
  3870. {{ JSON.parse(w.score).wScore }}分
  3871. </div>
  3872. <div
  3873. class="answerScore"
  3874. @click.stop="openScore(w)"
  3875. v-else-if="courseDetail.userid == userid"
  3876. :class="{
  3877. rightW:
  3878. w.userid == userid || tType == 1 || tType == 4,
  3879. }"
  3880. >
  3881. 评分
  3882. </div>
  3883. <img
  3884. class="deleteImg"
  3885. src="../assets/deleteworks.png"
  3886. v-if="
  3887. w.userid == userid || tType == 1 || tType == 4
  3888. "
  3889. @click.stop="deleteWorks(w.wid)"
  3890. alt
  3891. />
  3892. </div>
  3893. <div class="comment" style="min-width: 200px">
  3894. <div class="worksName">
  3895. <div>{{ w.sName }}</div>
  3896. </div>
  3897. <div class="commentList">
  3898. <div class="commentList">
  3899. <div
  3900. class="commentImg"
  3901. @click="
  3902. isLikes(w.wid, userid, 1, null, w.isLikes)
  3903. "
  3904. >
  3905. <img
  3906. :src="w.isLikes == true ? likes : noLikes"
  3907. alt=""
  3908. />
  3909. </div>
  3910. <div>{{ w.likesCount }}</div>
  3911. </div>
  3912. <div class="commentList" style="margin-right: 15px">
  3913. <div
  3914. class="commentImg"
  3915. @click="commentOther(w, toolIndex, wIndex)"
  3916. >
  3917. <img
  3918. src="../assets/icon/comment/comment.png"
  3919. alt=""
  3920. />
  3921. </div>
  3922. <div>{{ w.commentCount }}</div>
  3923. </div>
  3924. </div>
  3925. </div>
  3926. </div>
  3927. </div>
  3928. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3929. 未提交
  3930. </div>
  3931. <div class="noWorksS">
  3932. <div
  3933. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3934. :key="sIndex"
  3935. class="noWorksName"
  3936. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  3937. >
  3938. {{ s.student }}
  3939. </div>
  3940. </div>
  3941. </div>
  3942. <div
  3943. v-if="
  3944. tType &&
  3945. ((tType == 2 && sIsOpen == true) ||
  3946. tType == 1 ||
  3947. tType == 4) &&
  3948. tool.tool.indexOf(3) != -1
  3949. "
  3950. class="worksBox"
  3951. >
  3952. <div
  3953. class="zuoyeYulan"
  3954. v-if="
  3955. worksStudent.length &&
  3956. worksStudent[toolIndex].length > 0
  3957. "
  3958. >
  3959. <div class="worksTop">
  3960. <div>作业预览</div>
  3961. <div
  3962. class="corOpen"
  3963. @click="contract(toolIndex)"
  3964. v-if="
  3965. worksStudent[toolIndex].length > 6 &&
  3966. isCloseList[toolIndex].isClose == 0
  3967. "
  3968. >
  3969. 收缩
  3970. </div>
  3971. <div
  3972. class="corOpen"
  3973. @click="contract(toolIndex)"
  3974. v-if="isCloseList[toolIndex].isClose == 1"
  3975. >
  3976. 展开
  3977. </div>
  3978. </div>
  3979. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3980. </div>
  3981. <div
  3982. class="group_workBox"
  3983. v-for="(g, gindex) in courseGroup.group"
  3984. :key="gindex"
  3985. >
  3986. <div class="group_box">
  3987. <div class="group_title">
  3988. <el-tooltip
  3989. class="item"
  3990. effect="light"
  3991. :content="g.name"
  3992. placement="top"
  3993. >
  3994. <div class="group_name">{{ g.name }}</div>
  3995. </el-tooltip>
  3996. </div>
  3997. <div
  3998. class="group_work"
  3999. v-if="
  4000. g.works &&
  4001. g.works.length &&
  4002. g.works[toolIndex].length
  4003. "
  4004. >
  4005. <div
  4006. class="works"
  4007. style="
  4008. width: 200px;
  4009. height: 140px;
  4010. margin: 10px 10px 10px 0;
  4011. border-radius: 15px;
  4012. box-shadow: 0 0 6px 1px #dfdada;
  4013. "
  4014. v-for="(w, wIndex) in g.works[toolIndex]"
  4015. :key="wIndex"
  4016. :class="w.type == 1 ? 'isTypeOne' : ''"
  4017. >
  4018. <div class="workImg">
  4019. <img
  4020. :src="w.works"
  4021. @click="previewImg(w.works)"
  4022. alt
  4023. />
  4024. <div
  4025. class="answerScore"
  4026. v-if="w.score"
  4027. @click.stop="openScore(w)"
  4028. :class="{
  4029. rightW:
  4030. w.userid == userid ||
  4031. tType == 1 ||
  4032. tType == 4,
  4033. }"
  4034. >
  4035. {{ JSON.parse(w.score).wScore }}分
  4036. </div>
  4037. <div
  4038. class="answerScore"
  4039. @click.stop="openScore(w)"
  4040. v-else-if="courseDetail.userid == userid"
  4041. :class="{
  4042. rightW:
  4043. w.userid == userid ||
  4044. tType == 1 ||
  4045. tType == 4,
  4046. }"
  4047. >
  4048. 评分
  4049. </div>
  4050. <img
  4051. class="deleteImg"
  4052. src="../assets/deleteworks.png"
  4053. v-if="
  4054. w.userid == userid || tType == 1 || tType == 4
  4055. "
  4056. @click.stop="deleteWorks(w.wid)"
  4057. alt
  4058. />
  4059. </div>
  4060. <div class="comment" style="min-width: 200px">
  4061. <div class="worksName">
  4062. <div>{{ w.sName }}</div>
  4063. </div>
  4064. <div class="commentList">
  4065. <div class="commentList">
  4066. <div
  4067. class="commentImg"
  4068. @click="
  4069. isLikes(w.wid, userid, 1, null, w.isLikes)
  4070. "
  4071. >
  4072. <img
  4073. :src="w.isLikes == true ? likes : noLikes"
  4074. alt=""
  4075. />
  4076. </div>
  4077. <div>{{ w.likesCount }}</div>
  4078. </div>
  4079. <div
  4080. class="commentList"
  4081. style="margin-right: 15px"
  4082. >
  4083. <div
  4084. class="commentImg"
  4085. @click="
  4086. commentOther(
  4087. w,
  4088. toolIndex,
  4089. wIndex,
  4090. null,
  4091. g.id
  4092. )
  4093. "
  4094. >
  4095. <img
  4096. src="../assets/icon/comment/comment.png"
  4097. alt=""
  4098. />
  4099. </div>
  4100. <div>{{ w.commentCount }}</div>
  4101. </div>
  4102. </div>
  4103. </div>
  4104. </div>
  4105. </div>
  4106. <div class="group_work" v-else>暂无提交作业</div>
  4107. </div>
  4108. </div>
  4109. <div
  4110. class="worksDetailBox"
  4111. v-if="
  4112. worksStudent.length &&
  4113. worksStudent[toolIndex].length > 0
  4114. "
  4115. >
  4116. <div
  4117. class="works"
  4118. style="
  4119. width: 200px;
  4120. height: 140px;
  4121. margin: 10px 10px 10px 0;
  4122. border-radius: 15px;
  4123. box-shadow: 0 0 6px 1px #dfdada;
  4124. "
  4125. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4126. 0
  4127. ? worksStudent[toolIndex]
  4128. : worksStudent[toolIndex].slice(0, 6)"
  4129. :key="wIndex"
  4130. >
  4131. <!-- @click="previewImg(w.works)" -->
  4132. <div class="workImg">
  4133. <img
  4134. :src="w.works"
  4135. @click="previewImg(w.works)"
  4136. alt
  4137. />
  4138. <div
  4139. class="answerScore"
  4140. v-if="w.score"
  4141. @click.stop="openScore(w)"
  4142. :class="{
  4143. rightW:
  4144. w.userid == userid || tType == 1 || tType == 4,
  4145. }"
  4146. >
  4147. {{ JSON.parse(w.score).wScore }}分
  4148. </div>
  4149. <div
  4150. class="answerScore"
  4151. @click.stop="openScore(w)"
  4152. v-else-if="courseDetail.userid == userid"
  4153. :class="{
  4154. rightW:
  4155. w.userid == userid || tType == 1 || tType == 4,
  4156. }"
  4157. >
  4158. 评分
  4159. </div>
  4160. <img
  4161. class="deleteImg"
  4162. src="../assets/deleteworks.png"
  4163. v-if="
  4164. w.userid == userid || tType == 1 || tType == 4
  4165. "
  4166. @click.stop="deleteWorks(w.wid)"
  4167. alt
  4168. />
  4169. </div>
  4170. <div class="comment" style="min-width: 200px">
  4171. <div class="worksName">
  4172. <div>{{ w.sName }}</div>
  4173. </div>
  4174. <div class="commentList">
  4175. <div class="commentList">
  4176. <div
  4177. class="commentImg"
  4178. @click="
  4179. isLikes(w.wid, userid, 1, null, w.isLikes)
  4180. "
  4181. >
  4182. <img
  4183. :src="w.isLikes == true ? likes : noLikes"
  4184. alt=""
  4185. />
  4186. </div>
  4187. <div>{{ w.likesCount }}</div>
  4188. </div>
  4189. <div class="commentList" style="margin-right: 15px">
  4190. <div
  4191. class="commentImg"
  4192. @click="commentOther(w, toolIndex, wIndex)"
  4193. >
  4194. <img
  4195. src="../assets/icon/comment/comment.png"
  4196. alt=""
  4197. />
  4198. </div>
  4199. <div>{{ w.commentCount }}</div>
  4200. </div>
  4201. </div>
  4202. </div>
  4203. </div>
  4204. </div>
  4205. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4206. 未提交
  4207. </div>
  4208. <div class="noWorksS">
  4209. <div
  4210. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4211. :key="sIndex"
  4212. class="noWorksName"
  4213. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4214. >
  4215. {{ s.student }}
  4216. </div>
  4217. </div>
  4218. </div>
  4219. <div
  4220. v-if="
  4221. tType &&
  4222. ((tType == 2 && sIsOpen == true) ||
  4223. tType == 1 ||
  4224. tType == 4) &&
  4225. tool.tool.indexOf(6) != -1
  4226. "
  4227. class="worksBox"
  4228. >
  4229. <div
  4230. class="zuoyeYulan"
  4231. v-if="
  4232. worksStudent.length &&
  4233. worksStudent[toolIndex].length > 0
  4234. "
  4235. >
  4236. <div class="worksTop">
  4237. <div>作业预览</div>
  4238. <div
  4239. class="corOpen"
  4240. @click="contract(toolIndex)"
  4241. v-if="
  4242. worksStudent[toolIndex].length > 6 &&
  4243. isCloseList[toolIndex].isClose == 0
  4244. "
  4245. >
  4246. 收缩
  4247. </div>
  4248. <div
  4249. class="corOpen"
  4250. @click="contract(toolIndex)"
  4251. v-if="isCloseList[toolIndex].isClose == 1"
  4252. >
  4253. 展开
  4254. </div>
  4255. </div>
  4256. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4257. </div>
  4258. <div
  4259. class="group_workBox"
  4260. v-for="(g, gindex) in courseGroup.group"
  4261. :key="gindex"
  4262. >
  4263. <div class="group_box">
  4264. <div class="group_title">
  4265. <el-tooltip
  4266. class="item"
  4267. effect="light"
  4268. :content="g.name"
  4269. placement="top"
  4270. >
  4271. <div class="group_name">{{ g.name }}</div>
  4272. </el-tooltip>
  4273. </div>
  4274. <div
  4275. class="group_work"
  4276. v-if="
  4277. g.works &&
  4278. g.works.length &&
  4279. g.works[toolIndex].length
  4280. "
  4281. >
  4282. <div
  4283. class="works"
  4284. style="
  4285. width: 200px;
  4286. height: 140px;
  4287. margin: 10px 10px 10px 0;
  4288. border-radius: 15px;
  4289. box-shadow: 0 0 6px 1px #dfdada;
  4290. "
  4291. v-for="(w, wIndex) in g.works[toolIndex]"
  4292. :key="wIndex"
  4293. :class="w.type == 1 ? 'isTypeOne' : ''"
  4294. >
  4295. <div class="workImg">
  4296. <img
  4297. :src="w.works"
  4298. @click="previewImg(w.works)"
  4299. alt
  4300. />
  4301. <div
  4302. class="answerScore"
  4303. v-if="w.score"
  4304. @click.stop="openScore(w)"
  4305. :class="{
  4306. rightW:
  4307. w.userid == userid ||
  4308. tType == 1 ||
  4309. tType == 4,
  4310. }"
  4311. >
  4312. {{ JSON.parse(w.score).wScore }}分
  4313. </div>
  4314. <div
  4315. class="answerScore"
  4316. @click.stop="openScore(w)"
  4317. v-else-if="courseDetail.userid == userid"
  4318. :class="{
  4319. rightW:
  4320. w.userid == userid ||
  4321. tType == 1 ||
  4322. tType == 4,
  4323. }"
  4324. >
  4325. 评分
  4326. </div>
  4327. <img
  4328. class="deleteImg"
  4329. src="../assets/deleteworks.png"
  4330. v-if="
  4331. w.userid == userid || tType == 1 || tType == 4
  4332. "
  4333. @click.stop="deleteWorks(w.wid)"
  4334. alt
  4335. />
  4336. </div>
  4337. <div class="comment" style="min-width: 200px">
  4338. <div class="worksName">
  4339. <div>{{ w.sName }}</div>
  4340. </div>
  4341. <div class="commentList">
  4342. <div class="commentList">
  4343. <div
  4344. class="commentImg"
  4345. @click="
  4346. isLikes(w.wid, userid, 1, null, w.isLikes)
  4347. "
  4348. >
  4349. <img
  4350. :src="w.isLikes == true ? likes : noLikes"
  4351. alt=""
  4352. />
  4353. </div>
  4354. <div>{{ w.likesCount }}</div>
  4355. </div>
  4356. <div
  4357. class="commentList"
  4358. style="margin-right: 15px"
  4359. >
  4360. <div
  4361. class="commentImg"
  4362. @click="
  4363. commentOther(
  4364. w,
  4365. toolIndex,
  4366. wIndex,
  4367. null,
  4368. g.id
  4369. )
  4370. "
  4371. >
  4372. <img
  4373. src="../assets/icon/comment/comment.png"
  4374. alt=""
  4375. />
  4376. </div>
  4377. <div>{{ w.commentCount }}</div>
  4378. </div>
  4379. </div>
  4380. </div>
  4381. </div>
  4382. </div>
  4383. <div class="group_work" v-else>暂无提交作业</div>
  4384. </div>
  4385. </div>
  4386. <div
  4387. class="worksDetailBox"
  4388. v-if="
  4389. worksStudent.length &&
  4390. worksStudent[toolIndex].length > 0
  4391. "
  4392. >
  4393. <div
  4394. class="works"
  4395. style="
  4396. width: 200px;
  4397. height: 140px;
  4398. margin: 10px 10px 10px 0;
  4399. border-radius: 15px;
  4400. box-shadow: 0 0 6px 1px #dfdada;
  4401. "
  4402. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4403. 0
  4404. ? worksStudent[toolIndex]
  4405. : worksStudent[toolIndex].slice(0, 6)"
  4406. :key="wIndex"
  4407. >
  4408. <!-- @click="previewImg(w.works)" -->
  4409. <div class="workImg">
  4410. <img
  4411. :src="w.works"
  4412. @click="previewImg(w.works)"
  4413. alt
  4414. />
  4415. <div
  4416. class="answerScore"
  4417. v-if="w.score"
  4418. @click.stop="openScore(w)"
  4419. :class="{
  4420. rightW:
  4421. w.userid == userid || tType == 1 || tType == 4,
  4422. }"
  4423. >
  4424. {{ JSON.parse(w.score).wScore }}分
  4425. </div>
  4426. <div
  4427. class="answerScore"
  4428. @click.stop="openScore(w)"
  4429. v-else-if="courseDetail.userid == userid"
  4430. :class="{
  4431. rightW:
  4432. w.userid == userid || tType == 1 || tType == 4,
  4433. }"
  4434. >
  4435. 评分
  4436. </div>
  4437. <img
  4438. class="deleteImg"
  4439. src="../assets/deleteworks.png"
  4440. v-if="
  4441. w.userid == userid || tType == 1 || tType == 4
  4442. "
  4443. @click.stop="deleteWorks(w.wid)"
  4444. alt
  4445. />
  4446. </div>
  4447. <div class="comment" style="min-width: 200px">
  4448. <div class="worksName">
  4449. <div>{{ w.sName }}</div>
  4450. </div>
  4451. <div class="commentList">
  4452. <div class="commentList">
  4453. <div
  4454. class="commentImg"
  4455. @click="
  4456. isLikes(w.wid, userid, 1, null, w.isLikes)
  4457. "
  4458. >
  4459. <img
  4460. :src="w.isLikes == true ? likes : noLikes"
  4461. alt=""
  4462. />
  4463. </div>
  4464. <div>{{ w.likesCount }}</div>
  4465. </div>
  4466. <div class="commentList" style="margin-right: 15px">
  4467. <div
  4468. class="commentImg"
  4469. @click="commentOther(w, toolIndex, wIndex)"
  4470. >
  4471. <img
  4472. src="../assets/icon/comment/comment.png"
  4473. alt=""
  4474. />
  4475. </div>
  4476. <div>{{ w.commentCount }}</div>
  4477. </div>
  4478. </div>
  4479. </div>
  4480. </div>
  4481. </div>
  4482. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4483. 未提交
  4484. </div>
  4485. <div class="noWorksS">
  4486. <div
  4487. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4488. :key="sIndex"
  4489. class="noWorksName"
  4490. >
  4491. {{ s.student }}
  4492. </div>
  4493. </div>
  4494. </div>
  4495. <div
  4496. v-if="
  4497. tType &&
  4498. ((tType == 2 && sIsOpen == true) ||
  4499. tType == 1 ||
  4500. tType == 4) &&
  4501. tool.tool.indexOf(7) != -1
  4502. "
  4503. class="worksBox"
  4504. >
  4505. <div
  4506. class="zuoyeYulan"
  4507. v-if="
  4508. worksStudent.length &&
  4509. worksStudent[toolIndex].length > 0
  4510. "
  4511. >
  4512. <div class="worksTop">
  4513. <div>作业预览</div>
  4514. <div
  4515. class="corOpen"
  4516. @click="contract(toolIndex)"
  4517. v-if="
  4518. worksStudent[toolIndex].length > 6 &&
  4519. isCloseList[toolIndex].isClose == 0
  4520. "
  4521. >
  4522. 收缩
  4523. </div>
  4524. <div
  4525. class="corOpen"
  4526. @click="contract(toolIndex)"
  4527. v-if="isCloseList[toolIndex].isClose == 1"
  4528. >
  4529. 展开
  4530. </div>
  4531. </div>
  4532. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4533. </div>
  4534. <div
  4535. class="group_workBox"
  4536. v-for="(g, gindex) in courseGroup.group"
  4537. :key="gindex"
  4538. >
  4539. <div class="group_box">
  4540. <div class="group_title">
  4541. <el-tooltip
  4542. class="item"
  4543. effect="light"
  4544. :content="g.name"
  4545. placement="top"
  4546. >
  4547. <div class="group_name">{{ g.name }}</div>
  4548. </el-tooltip>
  4549. </div>
  4550. <div
  4551. class="group_work"
  4552. v-if="
  4553. g.works &&
  4554. g.works.length &&
  4555. g.works[toolIndex].length
  4556. "
  4557. >
  4558. <div
  4559. class="works"
  4560. style="
  4561. width: 200px;
  4562. height: 140px;
  4563. margin: 10px 10px 10px 0;
  4564. border-radius: 15px;
  4565. box-shadow: 0 0 6px 1px #dfdada;
  4566. "
  4567. v-for="(w, wIndex) in g.works[toolIndex]"
  4568. :key="wIndex"
  4569. :class="w.type == 1 ? 'isTypeOne' : ''"
  4570. >
  4571. <div class="workImg">
  4572. <img
  4573. :src="w.works"
  4574. @click="previewImg(w.works)"
  4575. alt
  4576. />
  4577. <div
  4578. class="answerScore"
  4579. v-if="w.score"
  4580. @click.stop="openScore(w)"
  4581. :class="{
  4582. rightW:
  4583. w.userid == userid ||
  4584. tType == 1 ||
  4585. tType == 4,
  4586. }"
  4587. >
  4588. {{ JSON.parse(w.score).wScore }}分
  4589. </div>
  4590. <div
  4591. class="answerScore"
  4592. @click.stop="openScore(w)"
  4593. v-else-if="courseDetail.userid == userid"
  4594. :class="{
  4595. rightW:
  4596. w.userid == userid ||
  4597. tType == 1 ||
  4598. tType == 4,
  4599. }"
  4600. >
  4601. 评分
  4602. </div>
  4603. <img
  4604. class="deleteImg"
  4605. src="../assets/deleteworks.png"
  4606. v-if="
  4607. w.userid == userid || tType == 1 || tType == 4
  4608. "
  4609. @click.stop="deleteWorks(w.wid)"
  4610. alt
  4611. />
  4612. </div>
  4613. <div class="comment" style="min-width: 200px">
  4614. <div class="worksName">
  4615. <div>{{ w.sName }}</div>
  4616. </div>
  4617. <div class="commentList">
  4618. <div class="commentList">
  4619. <div
  4620. class="commentImg"
  4621. @click="
  4622. isLikes(w.wid, userid, 1, null, w.isLikes)
  4623. "
  4624. >
  4625. <img
  4626. :src="w.isLikes == true ? likes : noLikes"
  4627. alt=""
  4628. />
  4629. </div>
  4630. <div>{{ w.likesCount }}</div>
  4631. </div>
  4632. <div
  4633. class="commentList"
  4634. style="margin-right: 15px"
  4635. >
  4636. <div
  4637. class="commentImg"
  4638. @click="
  4639. commentOther(
  4640. w,
  4641. toolIndex,
  4642. wIndex,
  4643. null,
  4644. g.id
  4645. )
  4646. "
  4647. >
  4648. <img
  4649. src="../assets/icon/comment/comment.png"
  4650. alt=""
  4651. />
  4652. </div>
  4653. <div>{{ w.commentCount }}</div>
  4654. </div>
  4655. </div>
  4656. </div>
  4657. </div>
  4658. </div>
  4659. <div class="group_work" v-else>暂无提交作业</div>
  4660. </div>
  4661. </div>
  4662. <div
  4663. class="worksDetailBox"
  4664. v-if="
  4665. worksStudent.length &&
  4666. worksStudent[toolIndex].length > 0
  4667. "
  4668. >
  4669. <div
  4670. class="works"
  4671. style="
  4672. width: 200px;
  4673. height: 140px;
  4674. margin: 10px 10px 10px 0;
  4675. border-radius: 15px;
  4676. box-shadow: 0 0 6px 1px #dfdada;
  4677. "
  4678. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4679. 0
  4680. ? worksStudent[toolIndex]
  4681. : worksStudent[toolIndex].slice(0, 6)"
  4682. :key="wIndex"
  4683. >
  4684. <!-- @click="previewImg(w.works)" -->
  4685. <div class="workImg">
  4686. <img
  4687. :src="w.works"
  4688. @click="previewImg(w.works)"
  4689. alt
  4690. />
  4691. <div
  4692. class="answerScore"
  4693. v-if="w.score"
  4694. @click.stop="openScore(w)"
  4695. :class="{
  4696. rightW:
  4697. w.userid == userid || tType == 1 || tType == 4,
  4698. }"
  4699. >
  4700. {{ JSON.parse(w.score).wScore }}分
  4701. </div>
  4702. <div
  4703. class="answerScore"
  4704. @click.stop="openScore(w)"
  4705. v-else-if="courseDetail.userid == userid"
  4706. :class="{
  4707. rightW:
  4708. w.userid == userid || tType == 1 || tType == 4,
  4709. }"
  4710. >
  4711. 评分
  4712. </div>
  4713. <img
  4714. class="deleteImg"
  4715. src="../assets/deleteworks.png"
  4716. v-if="
  4717. w.userid == userid || tType == 1 || tType == 4
  4718. "
  4719. @click.stop="deleteWorks(w.wid)"
  4720. alt
  4721. />
  4722. </div>
  4723. <div class="comment" style="min-width: 200px">
  4724. <div class="worksName">
  4725. <div>{{ w.sName }}</div>
  4726. </div>
  4727. <div class="commentList">
  4728. <div class="commentList">
  4729. <div
  4730. class="commentImg"
  4731. @click="
  4732. isLikes(w.wid, userid, 1, null, w.isLikes)
  4733. "
  4734. >
  4735. <img
  4736. :src="w.isLikes == true ? likes : noLikes"
  4737. alt=""
  4738. />
  4739. </div>
  4740. <div>{{ w.likesCount }}</div>
  4741. </div>
  4742. <div class="commentList" style="margin-right: 15px">
  4743. <div
  4744. class="commentImg"
  4745. @click="commentOther(w, toolIndex, wIndex)"
  4746. >
  4747. <img
  4748. src="../assets/icon/comment/comment.png"
  4749. alt=""
  4750. />
  4751. </div>
  4752. <div>{{ w.commentCount }}</div>
  4753. </div>
  4754. </div>
  4755. </div>
  4756. </div>
  4757. </div>
  4758. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4759. 未提交
  4760. </div>
  4761. <div class="noWorksS">
  4762. <div
  4763. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4764. :key="sIndex"
  4765. class="noWorksName"
  4766. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  4767. >
  4768. {{ s.student }}
  4769. </div>
  4770. </div>
  4771. </div>
  4772. <div
  4773. v-if="
  4774. tType &&
  4775. ((tType == 2 && sIsOpen == true) ||
  4776. tType == 1 ||
  4777. tType == 4) &&
  4778. tool.tool.indexOf(26) != -1
  4779. "
  4780. class="worksBox"
  4781. >
  4782. <div
  4783. class="zuoyeYulan"
  4784. v-if="
  4785. worksStudent.length &&
  4786. worksStudent[toolIndex].length > 0
  4787. "
  4788. >
  4789. <div class="worksTop">
  4790. <div>作业预览</div>
  4791. <div
  4792. class="corOpen"
  4793. @click="contract(toolIndex)"
  4794. v-if="
  4795. worksStudent[toolIndex].length > 6 &&
  4796. isCloseList[toolIndex].isClose == 0
  4797. "
  4798. >
  4799. 收缩
  4800. </div>
  4801. <div
  4802. class="corOpen"
  4803. @click="contract(toolIndex)"
  4804. v-if="isCloseList[toolIndex].isClose == 1"
  4805. >
  4806. 展开
  4807. </div>
  4808. </div>
  4809. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4810. </div>
  4811. <div
  4812. class="worksDetailBox"
  4813. v-if="
  4814. worksStudent.length &&
  4815. worksStudent[toolIndex].length > 0
  4816. "
  4817. >
  4818. <div
  4819. class="works"
  4820. style="width: 240px; height: 140px; overflow: hidden"
  4821. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4822. 0
  4823. ? worksStudent[toolIndex]
  4824. : worksStudent[toolIndex].slice(0, 6)"
  4825. :key="wIndex"
  4826. :class="w.type == 1 ? 'isTypeOne' : ''"
  4827. >
  4828. <div class="workImg" v-if="w.type == 0">
  4829. <img
  4830. :src="w.works"
  4831. @click="previewImg(w.works)"
  4832. alt
  4833. />
  4834. <img
  4835. class="deleteImg"
  4836. src="../assets/deleteworks.png"
  4837. v-if="
  4838. w.userid == userid || tType == 1 || tType == 4
  4839. "
  4840. @click.stop="deleteWorks(w.wid)"
  4841. alt
  4842. />
  4843. </div>
  4844. <div class="workImg" v-if="w.type == 1">
  4845. <img :src="word" @click="openFile(w.works)" alt />
  4846. <img
  4847. class="deleteImg"
  4848. src="../assets/deleteworks.png"
  4849. v-if="
  4850. w.userid == userid || tType == 1 || tType == 4
  4851. "
  4852. @click.stop="deleteWorks(w.wid)"
  4853. alt
  4854. />
  4855. </div>
  4856. <div class="worksName">
  4857. <div>{{ w.sName }}</div>
  4858. </div>
  4859. </div>
  4860. </div>
  4861. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4862. 未提交
  4863. </div>
  4864. <div class="noWorksS">
  4865. <div
  4866. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4867. :key="sIndex"
  4868. class="noWorksName"
  4869. >
  4870. {{ s.student }}
  4871. </div>
  4872. </div>
  4873. </div>
  4874. <div
  4875. v-if="
  4876. tType &&
  4877. ((tType == 2 && sIsOpen == true) ||
  4878. tType == 1 ||
  4879. tType == 4) &&
  4880. tool.tool.indexOf(40) != -1
  4881. "
  4882. class="worksBox"
  4883. >
  4884. <div
  4885. class="zuoyeYulan"
  4886. v-if="
  4887. worksStudent.length &&
  4888. worksStudent[toolIndex].length > 0
  4889. "
  4890. >
  4891. <div class="worksTop">
  4892. <div>作业预览</div>
  4893. <div
  4894. class="corOpen"
  4895. @click="contract(toolIndex)"
  4896. v-if="
  4897. worksStudent[toolIndex].length > 6 &&
  4898. isCloseList[toolIndex].isClose == 0
  4899. "
  4900. >
  4901. 收缩
  4902. </div>
  4903. <div
  4904. class="corOpen"
  4905. @click="contract(toolIndex)"
  4906. v-if="isCloseList[toolIndex].isClose == 1"
  4907. >
  4908. 展开
  4909. </div>
  4910. </div>
  4911. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4912. </div>
  4913. <div
  4914. class="worksDetailBox"
  4915. v-if="
  4916. worksStudent.length &&
  4917. worksStudent[toolIndex].length > 0
  4918. "
  4919. >
  4920. <div
  4921. class="works"
  4922. style="
  4923. width: 200px;
  4924. height: 140px;
  4925. margin: 10px 10px 10px 0;
  4926. border-radius: 15px;
  4927. box-shadow: 0 0 6px 1px #dfdada;
  4928. "
  4929. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4930. 0
  4931. ? worksStudent[toolIndex]
  4932. : worksStudent[toolIndex].slice(0, 6)"
  4933. :key="wIndex"
  4934. :class="w.type == 1 ? 'isTypeOne' : ''"
  4935. >
  4936. <div class="workImg">
  4937. <img
  4938. src="../assets/icon/works/noImg.png"
  4939. @click="openPj(w.works, toolIndex)"
  4940. alt
  4941. />
  4942. <img
  4943. class="deleteImg"
  4944. src="../assets/deleteworks.png"
  4945. v-if="
  4946. w.userid == userid || tType == 1 || tType == 4
  4947. "
  4948. @click.stop="deleteWorks(w.wid)"
  4949. alt
  4950. />
  4951. </div>
  4952. <div class="comment" style="min-width: 200px">
  4953. <div class="worksName">
  4954. <div>{{ w.sName }}</div>
  4955. </div>
  4956. <div class="commentList">
  4957. <div class="commentList">
  4958. <div
  4959. class="commentImg"
  4960. @click="
  4961. isLikes(w.wid, userid, 1, null, w.isLikes)
  4962. "
  4963. >
  4964. <img
  4965. :src="w.isLikes == true ? likes : noLikes"
  4966. alt=""
  4967. />
  4968. </div>
  4969. <div>{{ w.likesCount }}</div>
  4970. </div>
  4971. <div class="commentList" style="margin-right: 15px">
  4972. <div
  4973. class="commentImg"
  4974. @click="commentOther(w, toolIndex, wIndex)"
  4975. >
  4976. <img
  4977. src="../assets/icon/comment/comment.png"
  4978. alt=""
  4979. />
  4980. </div>
  4981. <div>{{ w.commentCount }}</div>
  4982. </div>
  4983. </div>
  4984. </div>
  4985. </div>
  4986. </div>
  4987. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4988. 未提交
  4989. </div>
  4990. <div class="noWorksS">
  4991. <div
  4992. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4993. :key="sIndex"
  4994. class="noWorksName"
  4995. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  4996. >
  4997. {{ s.student }}
  4998. </div>
  4999. </div>
  5000. </div>
  5001. <div
  5002. v-if="
  5003. tType &&
  5004. tType == 2 &&
  5005. !sIsOpen &&
  5006. tool.tool.indexOf(40) != -1
  5007. "
  5008. class="worksBox"
  5009. >
  5010. <div
  5011. class="zuoyeYulan"
  5012. v-if="workStudent[toolIndex].length > 0"
  5013. >
  5014. <span>作业预览</span>
  5015. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5016. </div>
  5017. <div
  5018. class="worksDetailBox"
  5019. v-if="workStudent[toolIndex].length > 0"
  5020. >
  5021. <div
  5022. class="works"
  5023. style="
  5024. width: 200px;
  5025. height: 140px;
  5026. margin: 10px 10px 10px 0;
  5027. "
  5028. v-for="(w, wIndex) in workStudent[toolIndex]"
  5029. :key="wIndex"
  5030. >
  5031. <div class="workImg">
  5032. <img
  5033. src="../assets/icon/works/noImg.png"
  5034. @click="openPj(w.works, toolIndex)"
  5035. alt
  5036. />
  5037. <img
  5038. class="deleteImg"
  5039. src="../assets/deleteworks.png"
  5040. v-if="
  5041. w.userid == userid || tType == 1 || tType == 4
  5042. "
  5043. @click.stop="deleteWorks(w.wid)"
  5044. alt
  5045. />
  5046. </div>
  5047. <div class="worksName">
  5048. <div>{{ w.sName }}</div>
  5049. </div>
  5050. </div>
  5051. </div>
  5052. </div>
  5053. <div
  5054. v-if="
  5055. tType &&
  5056. ((tType == 2 && sIsOpen == true) ||
  5057. tType == 1 ||
  5058. tType == 4) &&
  5059. tool.tool.indexOf(41) != -1
  5060. "
  5061. >
  5062. <AnswerData2
  5063. v-if="
  5064. worksStudent.length &&
  5065. worksStudent[toolIndex].length > 0
  5066. "
  5067. :problemJson="tool.selectJson.answer"
  5068. :people="worksStudent[toolIndex]"
  5069. ></AnswerData2>
  5070. </div>
  5071. <div
  5072. v-if="
  5073. tType &&
  5074. ((tType == 2 && sIsOpen == true) ||
  5075. tType == 1 ||
  5076. tType == 4) &&
  5077. tool.tool.indexOf(41) != -1
  5078. "
  5079. class="worksBox"
  5080. >
  5081. <div
  5082. class="zuoyeYulan"
  5083. v-if="
  5084. worksStudent.length &&
  5085. worksStudent[toolIndex].length > 0
  5086. "
  5087. >
  5088. <div class="worksTop">
  5089. <div>作业预览</div>
  5090. <div
  5091. class="corOpen"
  5092. @click="contract(toolIndex)"
  5093. v-if="
  5094. worksStudent[toolIndex].length > 6 &&
  5095. isCloseList[toolIndex].isClose == 0
  5096. "
  5097. >
  5098. 收缩
  5099. </div>
  5100. <div
  5101. class="corOpen"
  5102. @click="contract(toolIndex)"
  5103. v-if="isCloseList[toolIndex].isClose == 1"
  5104. >
  5105. 展开
  5106. </div>
  5107. </div>
  5108. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5109. </div>
  5110. <div
  5111. class="worksDetailBox"
  5112. v-if="
  5113. worksStudent.length &&
  5114. worksStudent[toolIndex].length > 0
  5115. "
  5116. >
  5117. <div
  5118. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5119. 0
  5120. ? worksStudent[toolIndex]
  5121. : worksStudent[toolIndex].slice(0, 6)"
  5122. :key="wIndex"
  5123. class="isWorksName"
  5124. @click="openXz(w, toolIndex)"
  5125. >
  5126. {{ w.sName }}
  5127. <img
  5128. class="deleteImg deleteImg2"
  5129. src="../assets/deleteworks.png"
  5130. v-if="w.userid == userid || tType == 1 || tType == 4"
  5131. @click.stop="deleteWorks(w.wid)"
  5132. alt
  5133. />
  5134. </div>
  5135. <!-- <div
  5136. class="works"
  5137. style="
  5138. width: 200px;
  5139. height: 140px;
  5140. margin: 10px 10px 10px 0;
  5141. border-radius: 15px;
  5142. box-shadow: 0 0 6px 1px #dfdada;
  5143. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5144. :class="w.type == 5 ? 'isTypeOne' : ''">
  5145. <div class="workImg">
  5146. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5147. </div>
  5148. <div class="worksName">
  5149. <div>{{ w.sName }}</div>
  5150. </div>
  5151. </div> -->
  5152. </div>
  5153. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5154. 未提交
  5155. </div>
  5156. <div class="noWorksS">
  5157. <div
  5158. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5159. :key="sIndex"
  5160. class="noWorksName"
  5161. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5162. >
  5163. {{ s.student }}
  5164. </div>
  5165. </div>
  5166. </div>
  5167. <div
  5168. v-if="
  5169. tType &&
  5170. tType == 2 &&
  5171. !sIsOpen &&
  5172. tool.tool.indexOf(41) != -1
  5173. "
  5174. class="worksBox"
  5175. >
  5176. <div
  5177. class="zuoyeYulan"
  5178. v-if="workStudent[toolIndex].length > 0"
  5179. >
  5180. <span>作业预览</span>
  5181. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5182. </div>
  5183. <div
  5184. class="worksDetailBox"
  5185. v-if="workStudent[toolIndex].length > 0"
  5186. >
  5187. <div
  5188. class="works"
  5189. style="
  5190. width: 200px;
  5191. height: 140px;
  5192. margin: 10px 10px 10px 0;
  5193. "
  5194. v-for="(w, wIndex) in workStudent[toolIndex]"
  5195. :key="wIndex"
  5196. >
  5197. <div class="workImg">
  5198. <img
  5199. src="../assets/icon/works/noImg.png"
  5200. @click="openXz(w, toolIndex)"
  5201. alt
  5202. />
  5203. <img
  5204. class="deleteImg"
  5205. src="../assets/deleteworks.png"
  5206. v-if="
  5207. w.userid == userid || tType == 1 || tType == 4
  5208. "
  5209. @click.stop="deleteWorks(w.wid)"
  5210. alt
  5211. />
  5212. </div>
  5213. <div class="worksName">
  5214. <div>{{ w.sName }}</div>
  5215. </div>
  5216. </div>
  5217. </div>
  5218. </div>
  5219. <div v-if="false" class="xuan_right_box">
  5220. <div
  5221. class="tool_right_box"
  5222. v-for="(item, index) in tool.sentenceList"
  5223. :key="index"
  5224. >
  5225. <div>
  5226. <span>{{ index + 1 + "、" + item.sentenceTitle }}</span>
  5227. </div>
  5228. <div class="right_box_xuan">
  5229. <span>正确率</span>
  5230. <span>{{
  5231. (checkJson[toolIndex][index].right
  5232. ? checkJson[toolIndex][index].right
  5233. : 0) + "%"
  5234. }}</span>
  5235. </div>
  5236. <div class="right_box_xuan">
  5237. <span>答对人数</span>
  5238. <span>{{
  5239. checkJson[toolIndex][index].rightPerson.length
  5240. }}</span>
  5241. </div>
  5242. </div>
  5243. </div>
  5244. <div
  5245. v-if="
  5246. tType &&
  5247. ((tType == 2 && sIsOpen == true) ||
  5248. tType == 1 ||
  5249. tType == 4) &&
  5250. tool.tool.indexOf(47) != -1
  5251. "
  5252. >
  5253. <AnswerData
  5254. v-if="
  5255. checkJson[toolIndex].length &&
  5256. (tool.sentenceList || tool.sentenceList.length > 0)
  5257. "
  5258. :people="checkJson[toolIndex]"
  5259. ></AnswerData>
  5260. </div>
  5261. <div
  5262. v-if="
  5263. tType &&
  5264. tType == 2 &&
  5265. !sIsOpen &&
  5266. tool.tool.indexOf(47) != -1
  5267. "
  5268. class="worksBox"
  5269. >
  5270. <div
  5271. class="zuoyeYulan"
  5272. v-if="workStudent[toolIndex].length > 0"
  5273. >
  5274. <span>作业预览</span>
  5275. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5276. </div>
  5277. <div
  5278. class="worksDetailBox"
  5279. v-if="workStudent[toolIndex].length > 0"
  5280. >
  5281. <div
  5282. class="works"
  5283. style="
  5284. width: 200px;
  5285. height: 140px;
  5286. margin: 10px 10px 10px 0;
  5287. "
  5288. v-for="(w, wIndex) in workStudent[toolIndex]"
  5289. :key="wIndex"
  5290. >
  5291. <!-- @click="openXz(w, toolIndex)" -->
  5292. <div class="workImg" @click="openSen(w, toolIndex)">
  5293. <img src="../assets/icon/works/noImg.png" alt />
  5294. <img
  5295. class="deleteImg"
  5296. src="../assets/deleteworks.png"
  5297. v-if="
  5298. w.userid == userid || tType == 1 || tType == 4
  5299. "
  5300. @click.stop="deleteWorks(w.wid)"
  5301. alt
  5302. />
  5303. </div>
  5304. <div class="worksName">
  5305. <div>
  5306. {{ w.sName }}
  5307. </div>
  5308. </div>
  5309. </div>
  5310. </div>
  5311. </div>
  5312. <div
  5313. v-if="
  5314. tType &&
  5315. ((tType == 2 && sIsOpen == true) ||
  5316. tType == 1 ||
  5317. tType == 4) &&
  5318. tool.tool.indexOf(47) != -1
  5319. "
  5320. class="worksBox"
  5321. >
  5322. <div
  5323. class="zuoyeYulan"
  5324. v-if="
  5325. worksStudent.length &&
  5326. worksStudent[toolIndex].length > 0
  5327. "
  5328. >
  5329. <div class="worksTop">
  5330. <div>作业预览</div>
  5331. <div
  5332. class="corOpen"
  5333. @click="contract(toolIndex)"
  5334. v-if="
  5335. worksStudent[toolIndex].length > 6 &&
  5336. isCloseList[toolIndex].isClose == 0
  5337. "
  5338. >
  5339. 收缩
  5340. </div>
  5341. <div
  5342. class="corOpen"
  5343. @click="contract(toolIndex)"
  5344. v-if="isCloseList[toolIndex].isClose == 1"
  5345. >
  5346. 展开
  5347. </div>
  5348. </div>
  5349. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5350. </div>
  5351. <div
  5352. class="worksDetailBox"
  5353. v-if="
  5354. worksStudent.length &&
  5355. worksStudent[toolIndex].length > 0
  5356. "
  5357. >
  5358. <!-- @click="openXz(w, toolIndex)" -->
  5359. <div
  5360. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5361. 0
  5362. ? worksStudent[toolIndex]
  5363. : worksStudent[toolIndex].slice(0, 6)"
  5364. :key="wIndex"
  5365. class="isWorksName"
  5366. @click="openSen(w, toolIndex)"
  5367. >
  5368. {{ w.sName }}
  5369. <img
  5370. class="deleteImg deleteImg2"
  5371. src="../assets/deleteworks.png"
  5372. v-if="w.userid == userid || tType == 1 || tType == 4"
  5373. @click.stop="deleteWorks(w.wid)"
  5374. alt
  5375. />
  5376. </div>
  5377. </div>
  5378. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5379. 未提交
  5380. </div>
  5381. <div class="noWorksS">
  5382. <div
  5383. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5384. :key="sIndex"
  5385. class="noWorksName"
  5386. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5387. >
  5388. {{ s.student }}
  5389. </div>
  5390. </div>
  5391. </div>
  5392. <div
  5393. v-if="
  5394. tType &&
  5395. ((tType == 2 && sIsOpen == true) ||
  5396. tType == 1 ||
  5397. tType == 4) &&
  5398. tool.tool.indexOf(48) != -1
  5399. "
  5400. class="worksBox"
  5401. >
  5402. <div
  5403. class="zuoyeYulan"
  5404. v-if="
  5405. worksStudent.length &&
  5406. worksStudent[toolIndex].length > 0
  5407. "
  5408. >
  5409. <div class="worksTop">
  5410. <div>作业预览</div>
  5411. <div
  5412. class="corOpen"
  5413. @click="contract(toolIndex)"
  5414. v-if="
  5415. worksStudent[toolIndex].length > 6 &&
  5416. isCloseList[toolIndex].isClose == 0
  5417. "
  5418. >
  5419. 收缩
  5420. </div>
  5421. <div
  5422. class="corOpen"
  5423. @click="contract(toolIndex)"
  5424. v-if="isCloseList[toolIndex].isClose == 1"
  5425. >
  5426. 展开
  5427. </div>
  5428. </div>
  5429. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5430. </div>
  5431. <div
  5432. class="worksDetailBox"
  5433. v-if="
  5434. worksStudent.length &&
  5435. worksStudent[toolIndex].length > 0
  5436. "
  5437. >
  5438. <div
  5439. class="works"
  5440. style="
  5441. width: 200px;
  5442. height: 140px;
  5443. margin: 10px 10px 10px 0;
  5444. border-radius: 15px;
  5445. box-shadow: 0 0 6px 1px #dfdada;
  5446. "
  5447. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5448. 0
  5449. ? worksStudent[toolIndex]
  5450. : worksStudent[toolIndex].slice(0, 6)"
  5451. :key="wIndex"
  5452. :class="w.type == 1 ? 'isTypeOne' : ''"
  5453. >
  5454. <div class="workImg">
  5455. <img :src="word" @click="openTable(w)" alt />
  5456. <!-- @click="openFile(w.works)" -->
  5457. <div
  5458. class="answerScore"
  5459. v-if="w.score"
  5460. @click.stop="openScore(w)"
  5461. :class="{
  5462. rightW:
  5463. w.userid == userid ||
  5464. tType == 1 ||
  5465. tType == 4 ||
  5466. w.ateacher == userid,
  5467. }"
  5468. >
  5469. {{ JSON.parse(w.score).wScore }}分
  5470. </div>
  5471. <div
  5472. class="answerScore"
  5473. @click.stop="openScore(w)"
  5474. v-else-if="courseDetail.userid == userid"
  5475. :class="{
  5476. rightW:
  5477. w.userid == userid ||
  5478. tType == 1 ||
  5479. tType == 4 ||
  5480. w.ateacher == userid,
  5481. }"
  5482. >
  5483. 评分
  5484. </div>
  5485. <img
  5486. class="deleteImg"
  5487. src="../assets/deleteworks.png"
  5488. v-if="
  5489. w.userid == userid || tType == 1 || tType == 4
  5490. "
  5491. @click.stop="deleteWorks(w.wid)"
  5492. alt
  5493. />
  5494. </div>
  5495. <div class="comment" style="min-width: 200px">
  5496. <div class="worksName">
  5497. <div>{{ w.sName }}</div>
  5498. </div>
  5499. <div class="commentList">
  5500. <div class="commentList">
  5501. <div
  5502. class="commentImg"
  5503. @click="
  5504. isLikes(w.wid, userid, 1, null, w.isLikes)
  5505. "
  5506. >
  5507. <img
  5508. :src="w.isLikes == true ? likes : noLikes"
  5509. alt=""
  5510. />
  5511. </div>
  5512. <div>{{ w.likesCount }}</div>
  5513. </div>
  5514. <div class="commentList" style="margin-right: 15px">
  5515. <div
  5516. class="commentImg"
  5517. @click="commentOther(w, toolIndex, wIndex)"
  5518. >
  5519. <img
  5520. src="../assets/icon/comment/comment.png"
  5521. alt=""
  5522. />
  5523. </div>
  5524. <div>{{ w.commentCount }}</div>
  5525. </div>
  5526. </div>
  5527. </div>
  5528. </div>
  5529. </div>
  5530. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5531. 未提交
  5532. </div>
  5533. <div class="noWorksS">
  5534. <div
  5535. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5536. :key="sIndex"
  5537. class="noWorksName"
  5538. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5539. >
  5540. {{ s.student }}
  5541. </div>
  5542. </div>
  5543. </div>
  5544. <div
  5545. v-if="
  5546. tType &&
  5547. tType == 2 &&
  5548. !sIsOpen &&
  5549. tool.tool.indexOf(48) != -1
  5550. "
  5551. class="worksBox"
  5552. >
  5553. <div
  5554. class="zuoyeYulan"
  5555. v-if="workStudent[toolIndex].length > 0"
  5556. >
  5557. <span>作业预览</span>
  5558. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5559. </div>
  5560. <div
  5561. class="worksDetailBox"
  5562. v-if="workStudent[toolIndex].length > 0"
  5563. >
  5564. <div
  5565. class="works"
  5566. style="
  5567. width: 200px;
  5568. height: 140px;
  5569. margin: 10px 10px 10px 0;
  5570. box-shadow: 0 0 6px 1px #dfdada;
  5571. "
  5572. v-for="(w, wIndex) in workStudent[toolIndex]"
  5573. :key="wIndex"
  5574. >
  5575. <div class="workImg">
  5576. <img :src="word" @click="openTable(w)" alt />
  5577. <div
  5578. class="answerScore"
  5579. v-if="w.score"
  5580. @click.stop="openScore(w)"
  5581. :class="{
  5582. rightW:
  5583. w.userid == userid || tType == 1 || tType == 4,
  5584. }"
  5585. >
  5586. {{ JSON.parse(w.score).wScore }}分
  5587. </div>
  5588. <div
  5589. class="answerScore"
  5590. @click.stop="openScore(w)"
  5591. v-else-if="courseDetail.userid == userid"
  5592. :class="{
  5593. rightW:
  5594. w.userid == userid || tType == 1 || tType == 4,
  5595. }"
  5596. >
  5597. 评分
  5598. </div>
  5599. <img
  5600. class="deleteImg"
  5601. src="../assets/deleteworks.png"
  5602. v-if="
  5603. w.userid == userid || tType == 1 || tType == 4
  5604. "
  5605. @click.stop="deleteWorks(w.wid)"
  5606. alt
  5607. />
  5608. </div>
  5609. <div class="worksName">
  5610. <div>{{ w.sName }}</div>
  5611. </div>
  5612. </div>
  5613. </div>
  5614. </div>
  5615. <div
  5616. v-if="
  5617. tType &&
  5618. ((tType == 2 && sIsOpen == true) ||
  5619. tType == 1 ||
  5620. tType == 4) &&
  5621. tool.tool.indexOf(52) != -1
  5622. "
  5623. class="worksBox"
  5624. >
  5625. <div
  5626. class="zuoyeYulan"
  5627. v-if="
  5628. worksStudent.length &&
  5629. worksStudent[toolIndex].length > 0
  5630. "
  5631. >
  5632. <div class="worksTop">
  5633. <div>作业预览</div>
  5634. <div
  5635. class="corOpen"
  5636. @click="contract(toolIndex)"
  5637. v-if="
  5638. worksStudent[toolIndex].length > 6 &&
  5639. isCloseList[toolIndex].isClose == 0
  5640. "
  5641. >
  5642. 收缩
  5643. </div>
  5644. <div
  5645. class="corOpen"
  5646. @click="contract(toolIndex)"
  5647. v-if="isCloseList[toolIndex].isClose == 1"
  5648. >
  5649. 展开
  5650. </div>
  5651. </div>
  5652. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5653. </div>
  5654. <div
  5655. class="worksDetailBox"
  5656. v-if="
  5657. worksStudent.length &&
  5658. worksStudent[toolIndex].length > 0
  5659. "
  5660. >
  5661. <div
  5662. class="works"
  5663. style="
  5664. width: 200px;
  5665. height: 140px;
  5666. margin: 10px 10px 10px 0;
  5667. border-radius: 15px;
  5668. box-shadow: 0 0 6px 1px #dfdada;
  5669. "
  5670. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5671. 0
  5672. ? worksStudent[toolIndex]
  5673. : worksStudent[toolIndex].slice(0, 6)"
  5674. :key="wIndex"
  5675. :class="w.type == 1 ? 'isTypeOne' : ''"
  5676. >
  5677. <div class="workImg">
  5678. <img :src="word" @click="openWord(w)" alt />
  5679. <!-- @click="openFile(w.works)" -->
  5680. <div
  5681. class="answerScore"
  5682. v-if="w.score"
  5683. @click.stop="openScore(w)"
  5684. :class="{
  5685. rightW:
  5686. w.userid == userid ||
  5687. tType == 1 ||
  5688. tType == 4 ||
  5689. w.ateacher == userid,
  5690. }"
  5691. >
  5692. {{ JSON.parse(w.score).wScore }}分
  5693. </div>
  5694. <div
  5695. class="answerScore"
  5696. @click.stop="openScore(w)"
  5697. v-else-if="courseDetail.userid == userid"
  5698. :class="{
  5699. rightW:
  5700. w.userid == userid ||
  5701. tType == 1 ||
  5702. tType == 4 ||
  5703. w.ateacher == userid,
  5704. }"
  5705. >
  5706. 评分
  5707. </div>
  5708. <img
  5709. class="deleteImg"
  5710. src="../assets/deleteworks.png"
  5711. v-if="
  5712. w.userid == userid || tType == 1 || tType == 4
  5713. "
  5714. @click.stop="deleteWorks(w.wid)"
  5715. alt
  5716. />
  5717. </div>
  5718. <div class="comment" style="min-width: 200px">
  5719. <div class="worksName">
  5720. <div>{{ w.sName }}</div>
  5721. </div>
  5722. <div class="commentList">
  5723. <div class="commentList">
  5724. <div
  5725. class="commentImg"
  5726. @click="
  5727. isLikes(w.wid, userid, 1, null, w.isLikes)
  5728. "
  5729. >
  5730. <img
  5731. :src="w.isLikes == true ? likes : noLikes"
  5732. alt=""
  5733. />
  5734. </div>
  5735. <div>{{ w.likesCount }}</div>
  5736. </div>
  5737. <div class="commentList" style="margin-right: 15px">
  5738. <div
  5739. class="commentImg"
  5740. @click="commentOther(w, toolIndex, wIndex)"
  5741. >
  5742. <img
  5743. src="../assets/icon/comment/comment.png"
  5744. alt=""
  5745. />
  5746. </div>
  5747. <div>{{ w.commentCount }}</div>
  5748. </div>
  5749. </div>
  5750. </div>
  5751. </div>
  5752. </div>
  5753. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5754. 未提交
  5755. </div>
  5756. <div class="noWorksS">
  5757. <div
  5758. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5759. :key="sIndex"
  5760. class="noWorksName"
  5761. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5762. >
  5763. {{ s.student }}
  5764. </div>
  5765. </div>
  5766. </div>
  5767. <div
  5768. v-if="
  5769. tType &&
  5770. tType == 2 &&
  5771. !sIsOpen &&
  5772. tool.tool.indexOf(52) != -1
  5773. "
  5774. class="worksBox"
  5775. >
  5776. <div
  5777. class="zuoyeYulan"
  5778. v-if="workStudent[toolIndex].length > 0"
  5779. >
  5780. <span>作业预览</span>
  5781. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5782. </div>
  5783. <div
  5784. class="worksDetailBox"
  5785. v-if="workStudent[toolIndex].length > 0"
  5786. >
  5787. <div
  5788. class="works"
  5789. style="
  5790. width: 200px;
  5791. height: 140px;
  5792. margin: 10px 10px 10px 0;
  5793. box-shadow: 0 0 6px 1px #dfdada;
  5794. "
  5795. v-for="(w, wIndex) in workStudent[toolIndex]"
  5796. :key="wIndex"
  5797. >
  5798. <div class="workImg">
  5799. <img :src="word" @click="openWord(w)" alt />
  5800. <div
  5801. class="answerScore"
  5802. v-if="w.score"
  5803. @click.stop="openScore(w)"
  5804. :class="{
  5805. rightW:
  5806. w.userid == userid || tType == 1 || tType == 4,
  5807. }"
  5808. >
  5809. {{ JSON.parse(w.score).wScore }}分
  5810. </div>
  5811. <div
  5812. class="answerScore"
  5813. @click.stop="openScore(w)"
  5814. v-else-if="courseDetail.userid == userid"
  5815. :class="{
  5816. rightW:
  5817. w.userid == userid || tType == 1 || tType == 4,
  5818. }"
  5819. >
  5820. 评分
  5821. </div>
  5822. <img
  5823. class="deleteImg"
  5824. src="../assets/deleteworks.png"
  5825. v-if="
  5826. w.userid == userid || tType == 1 || tType == 4
  5827. "
  5828. @click.stop="deleteWorks(w.wid)"
  5829. alt
  5830. />
  5831. </div>
  5832. <div class="worksName">
  5833. <div>{{ w.sName }}</div>
  5834. </div>
  5835. </div>
  5836. </div>
  5837. </div>
  5838. <div
  5839. v-if="tool.tool.indexOf(49) != -1"
  5840. class="xuan_right_box"
  5841. >
  5842. <div
  5843. v-if="courseDetail.userid == userid"
  5844. style="display: flex; justify-content: flex-end"
  5845. >
  5846. <el-button
  5847. type="primary"
  5848. size="small"
  5849. @click="addTools(49, toolIndex, taskCount)"
  5850. >分组设置</el-button
  5851. >
  5852. </div>
  5853. <div
  5854. v-if="groupStudentUid[toolIndex]"
  5855. class="group_staic_box"
  5856. >
  5857. <div
  5858. v-for="(gp, gd) in tool.groupJson.group"
  5859. :key="gd"
  5860. class="group_staic"
  5861. >
  5862. <span> {{ gp.name }}</span>
  5863. <span>
  5864. 目前人数{{
  5865. groupStudentUid[toolIndex][gd].length
  5866. }}人</span
  5867. >
  5868. </div>
  5869. </div>
  5870. </div>
  5871. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  5872. <div
  5873. class="zuoyeYulan"
  5874. v-if="
  5875. worksStudent.length &&
  5876. worksStudent[toolIndex].length > 0
  5877. "
  5878. >
  5879. <span>作业预览</span>
  5880. </div>
  5881. <div>
  5882. <div
  5883. class="group_workBox"
  5884. v-for="(g, gindex) in tool.groupJson.group"
  5885. :key="gindex"
  5886. >
  5887. <div
  5888. class="group_box"
  5889. v-if="
  5890. groupStudentUid[toolIndex] &&
  5891. worksStudent[toolIndex] &&
  5892. (worksStudent[toolIndex][gindex].length ||
  5893. groupStudentUid[toolIndex][gindex].indexOf(
  5894. userid
  5895. ) != -1)
  5896. "
  5897. >
  5898. <div class="group_title">
  5899. <el-tooltip
  5900. class="item"
  5901. effect="light"
  5902. :content="g.name"
  5903. placement="top"
  5904. >
  5905. <div class="group_name">{{ g.name }}</div>
  5906. </el-tooltip>
  5907. <el-button
  5908. type="primary"
  5909. v-if="
  5910. groupStudentUid[toolIndex][gindex].indexOf(
  5911. userid
  5912. ) != -1
  5913. "
  5914. @click="groupUpload(toolIndex, taskCount, gindex)"
  5915. >上传作业</el-button
  5916. >
  5917. </div>
  5918. <div class="group_work">
  5919. <div
  5920. class="works"
  5921. style="
  5922. width: 200px;
  5923. height: 140px;
  5924. margin: 10px 10px 10px 0;
  5925. border-radius: 15px;
  5926. box-shadow: 0 0 6px 1px #dfdada;
  5927. "
  5928. v-for="(w, wIndex) in worksStudent[toolIndex][
  5929. gindex
  5930. ]"
  5931. :key="wIndex"
  5932. :class="w.type == 1 ? 'isTypeOne' : ''"
  5933. >
  5934. <div class="workImg" v-if="w.type == 0">
  5935. <img
  5936. :src="w.works"
  5937. @click="previewImg(w.works)"
  5938. alt
  5939. />
  5940. <div
  5941. class="answerScore"
  5942. v-if="w.score"
  5943. @click.stop="openScore(w)"
  5944. :class="{
  5945. rightW:
  5946. w.userid == userid ||
  5947. tType == 1 ||
  5948. tType == 4 ||
  5949. w.ateacher == userid,
  5950. }"
  5951. >
  5952. {{ JSON.parse(w.score).wScore }}分
  5953. </div>
  5954. <div
  5955. class="answerScore"
  5956. @click.stop="openScore(w)"
  5957. v-else-if="courseDetail.userid == userid"
  5958. :class="{
  5959. rightW:
  5960. w.userid == userid ||
  5961. tType == 1 ||
  5962. tType == 4 ||
  5963. w.ateacher == userid,
  5964. }"
  5965. >
  5966. 评分
  5967. </div>
  5968. <img
  5969. class="deleteImg"
  5970. src="../assets/deleteworks.png"
  5971. v-if="
  5972. w.userid == userid ||
  5973. tType == 1 ||
  5974. tType == 4
  5975. "
  5976. @click.stop="deleteWorks(w.wid)"
  5977. alt
  5978. />
  5979. </div>
  5980. <div class="workImg" v-if="w.type == 1">
  5981. <img
  5982. :src="word"
  5983. @click="openFile(w.works)"
  5984. alt
  5985. />
  5986. <!-- @click="openFile(w.works)" -->
  5987. <div
  5988. class="answerScore"
  5989. v-if="w.score"
  5990. @click.stop="openScore(w)"
  5991. :class="{
  5992. rightW:
  5993. w.userid == userid ||
  5994. tType == 1 ||
  5995. tType == 4 ||
  5996. w.ateacher == userid,
  5997. }"
  5998. >
  5999. {{ JSON.parse(w.score).wScore }}分
  6000. </div>
  6001. <div
  6002. class="answerScore"
  6003. @click.stop="openScore(w)"
  6004. v-else-if="courseDetail.userid == userid"
  6005. :class="{
  6006. rightW:
  6007. w.userid == userid ||
  6008. tType == 1 ||
  6009. tType == 4 ||
  6010. w.ateacher == userid,
  6011. }"
  6012. >
  6013. 评分
  6014. </div>
  6015. <img
  6016. class="deleteImg"
  6017. src="../assets/deleteworks.png"
  6018. v-if="
  6019. w.userid == userid ||
  6020. tType == 1 ||
  6021. tType == 4
  6022. "
  6023. @click.stop="deleteWorks(w.wid)"
  6024. alt
  6025. />
  6026. </div>
  6027. <div class="workImg" v-if="w.type == 3">
  6028. <img
  6029. style="cursor: pointer"
  6030. :src="video"
  6031. @click="openVideo(w)"
  6032. alt
  6033. />
  6034. <!-- @click="openVideo(w.works)" -->
  6035. <div
  6036. class="answerScore"
  6037. v-if="w.score"
  6038. @click.stop="openScore(w)"
  6039. :class="{
  6040. rightW:
  6041. w.userid == userid ||
  6042. tType == 1 ||
  6043. tType == 4 ||
  6044. w.ateacher == userid,
  6045. }"
  6046. >
  6047. {{ JSON.parse(w.score).wScore }}分
  6048. </div>
  6049. <div
  6050. class="answerScore"
  6051. @click.stop="openScore(w)"
  6052. v-else-if="courseDetail.userid == userid"
  6053. :class="{
  6054. rightW:
  6055. w.userid == userid ||
  6056. tType == 1 ||
  6057. tType == 4 ||
  6058. w.ateacher == userid,
  6059. }"
  6060. >
  6061. 评分
  6062. </div>
  6063. <img
  6064. class="deleteImg"
  6065. src="../assets/deleteworks.png"
  6066. v-if="
  6067. w.userid == userid ||
  6068. tType == 1 ||
  6069. tType == 4
  6070. "
  6071. @click.stop="deleteWorks(w.wid)"
  6072. alt
  6073. />
  6074. </div>
  6075. <div class="workImg" v-if="w.type == 12">
  6076. <img
  6077. style="cursor: pointer"
  6078. :src="word2"
  6079. @click="downloadFile(w.works)"
  6080. alt
  6081. />
  6082. <!-- @click="openVideo(w.works)" -->
  6083. <div
  6084. class="answerScore"
  6085. v-if="w.score"
  6086. @click.stop="openScore(w)"
  6087. :class="{
  6088. rightW:
  6089. w.userid == userid ||
  6090. tType == 1 ||
  6091. tType == 4 ||
  6092. w.ateacher == userid,
  6093. }"
  6094. >
  6095. {{ JSON.parse(w.score).wScore }}分
  6096. </div>
  6097. <div
  6098. class="answerScore"
  6099. @click.stop="openScore(w)"
  6100. v-else-if="courseDetail.userid == userid"
  6101. :class="{
  6102. rightW:
  6103. w.userid == userid ||
  6104. tType == 1 ||
  6105. tType == 4 ||
  6106. w.ateacher == userid,
  6107. }"
  6108. >
  6109. 评分
  6110. </div>
  6111. <img
  6112. class="deleteImg"
  6113. src="../assets/deleteworks.png"
  6114. v-if="
  6115. w.userid == userid ||
  6116. tType == 1 ||
  6117. tType == 4
  6118. "
  6119. @click.stop="deleteWorks(w.wid)"
  6120. alt
  6121. />
  6122. </div>
  6123. <div class="comment" style="min-width: 200px">
  6124. <div class="worksName">
  6125. <div>{{ w.sName }}</div>
  6126. </div>
  6127. <div class="commentList">
  6128. <div class="commentList">
  6129. <div
  6130. class="commentImg"
  6131. @click="
  6132. isLikes(
  6133. w.wid,
  6134. userid,
  6135. 1,
  6136. null,
  6137. w.isLikes
  6138. )
  6139. "
  6140. >
  6141. <img
  6142. :src="
  6143. w.isLikes == true ? likes : noLikes
  6144. "
  6145. alt=""
  6146. />
  6147. </div>
  6148. <div>{{ w.likesCount }}</div>
  6149. </div>
  6150. <div
  6151. class="commentList"
  6152. style="margin-right: 15px"
  6153. >
  6154. <div
  6155. class="commentImg"
  6156. @click="
  6157. commentOther(
  6158. w,
  6159. toolIndex,
  6160. wIndex,
  6161. gindex
  6162. )
  6163. "
  6164. >
  6165. <img
  6166. src="../assets/icon/comment/comment.png"
  6167. alt=""
  6168. />
  6169. </div>
  6170. <div>{{ w.commentCount }}</div>
  6171. </div>
  6172. </div>
  6173. </div>
  6174. </div>
  6175. </div>
  6176. </div>
  6177. </div>
  6178. </div>
  6179. </div>
  6180. </div>
  6181. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6182. 上传文件
  6183. <input
  6184. type="file"
  6185. accept="image/png, image/gif, image/jpeg"
  6186. style="display: none"
  6187. @change="beforeUpload1($event, 2, index)"
  6188. />
  6189. </div>-->
  6190. </div>
  6191. </div>
  6192. <div
  6193. class="vedioBox"
  6194. v-if="
  6195. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6196. .eList &&
  6197. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6198. .eList.length &&
  6199. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6200. .eList.length > 0 &&
  6201. tType != 2
  6202. "
  6203. >
  6204. <div
  6205. class="queTop"
  6206. style="
  6207. font-size: 25px;
  6208. padding: 15px 0 15px 30px;
  6209. font-weight: bold;
  6210. "
  6211. >
  6212. <!-- <div class="question" style="width: 30px">
  6213. <img src="../assets/icon/toolIcon.png" alt />
  6214. </div>
  6215. <div class="queTitle">
  6216. <div>工具</div>
  6217. </div>-->
  6218. 评一评
  6219. </div>
  6220. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  6221. <div class="elist_input">
  6222. <div
  6223. v-for="(eItem, eIndex) in chapInfoList[courseType]
  6224. .chapterInfo[0].taskJson[taskCount].eList"
  6225. :key="eIndex"
  6226. class="elist_input_box"
  6227. >
  6228. <div style="width: 95%">
  6229. <div
  6230. style="
  6231. display: flex;
  6232. flex-direction: row;
  6233. flex-wrap: nowrap;
  6234. align-items: center;
  6235. "
  6236. >
  6237. <div style="max-width: calc(100% - 285px)">
  6238. <span>{{ eItem.value }}</span>
  6239. </div>
  6240. <div
  6241. style="
  6242. padding-left: 25px;
  6243. display: flex;
  6244. flex-direction: row;
  6245. align-items: center;
  6246. "
  6247. >
  6248. <el-rate
  6249. v-model="eItem.score"
  6250. :colors="colors"
  6251. disabled
  6252. ></el-rate>
  6253. </div>
  6254. </div>
  6255. <div class="elist_inptu_text" style="padding-left: 10px">
  6256. <span v-if="eItem.detail != ''">{{
  6257. eItem.detail
  6258. }}</span>
  6259. <span v-else style="color: #b2b1b3; font-size: 14px"
  6260. >暂无描述...</span
  6261. >
  6262. </div>
  6263. </div>
  6264. </div>
  6265. </div>
  6266. <div
  6267. v-if="evalua"
  6268. style="
  6269. border: 1px solid #e5e5e5;
  6270. max-width: 650px;
  6271. width: 100%;
  6272. margin-top: 20px;
  6273. box-shadow: 3px 1px 15px 3px #e0e0e0;
  6274. "
  6275. >
  6276. <div class="e_add_top">
  6277. <div class="e_add_title">
  6278. <span>目标管理名称</span>
  6279. <span>{{ eTitle }}</span>
  6280. <img
  6281. src="../assets/line.png"
  6282. class="cru_line"
  6283. style="
  6284. width: 125px;
  6285. height: 20px;
  6286. bottom: -10px;
  6287. left: 120px;
  6288. "
  6289. />
  6290. <!-- <el-input
  6291. v-model="eTitle"
  6292. placeholder="请输入名称"
  6293. @change="setMindData"
  6294. ></el-input>-->
  6295. </div>
  6296. </div>
  6297. <div class="e_add_content">
  6298. <div class="e_add_list_pbox">
  6299. <div class="e_add_list_pbox_title">
  6300. <span class="type_title">切换模式</span>
  6301. <div class="type_content">
  6302. <span
  6303. :class="{ active: typeMode == 1 }"
  6304. @click="typeMode = 1"
  6305. >目标树</span
  6306. >
  6307. <span
  6308. :class="{ active: typeMode == 2 }"
  6309. @click="typeMode = 2"
  6310. >目标罗盘</span
  6311. >
  6312. <span
  6313. :class="{ active: typeMode == 3 }"
  6314. @click="typeMode = 3"
  6315. >目标看板</span
  6316. >
  6317. </div>
  6318. </div>
  6319. <div class="e_add_list_pbox_content">
  6320. <Mind
  6321. :showBar="false"
  6322. :mindData="data"
  6323. style="width: 100%"
  6324. v-show="typeMode == 1"
  6325. ></Mind>
  6326. <Sunburst
  6327. :Josn="eJson"
  6328. :num="eJSONNum"
  6329. style="width: 100%"
  6330. v-if="typeMode == 2"
  6331. ></Sunburst>
  6332. <SeeBoard
  6333. :Josn="eJson"
  6334. :num="eJSONNum"
  6335. :ename="eTitle"
  6336. style="width: 100%"
  6337. v-if="typeMode == 3"
  6338. >
  6339. </SeeBoard>
  6340. </div>
  6341. </div>
  6342. </div>
  6343. </div>
  6344. </div>
  6345. </div>
  6346. <!-- <div
  6347. class="project_box"
  6348. style="margin-top: 15px; padding-bottom: 30px"
  6349. >
  6350. <div
  6351. style="
  6352. display: flex;
  6353. flex-wrap: nowrap;
  6354. flex-direction: column;
  6355. position: relative;
  6356. "
  6357. >
  6358. <div class="queTop">
  6359. <div class="question">
  6360. <img src="../assets/icon/homeWork.png" alt="" />
  6361. </div>
  6362. <div class="queTitle">
  6363. <div>作业提交<span>(提交图文视频等)</span></div>
  6364. <div>:任务:{{ task.task }}</div>
  6365. </div>
  6366. </div>
  6367. <div class="ediBottom">
  6368. <div
  6369. class="addEditor"
  6370. style="margin-top: 23px"
  6371. @click="openAddWork"
  6372. v-if="!isNoHomeWork"
  6373. >
  6374. 选择文件
  6375. </div>
  6376. <div
  6377. class="addEditor"
  6378. style="margin-top: 23px"
  6379. @click="openAddWork"
  6380. v-else
  6381. >
  6382. 已提交
  6383. </div>
  6384. </div>
  6385. </div>
  6386. </div>-->
  6387. </div>
  6388. </div>
  6389. <el-dialog
  6390. title="作业提交"
  6391. :visible.sync="dialogVisible"
  6392. :append-to-body="true"
  6393. width="500px"
  6394. :before-close="handleClose"
  6395. class="dialog_change"
  6396. >
  6397. <div class="marginT">
  6398. <div>上传文件</div>
  6399. <div
  6400. class="chapter_add"
  6401. @click="addImg($event)"
  6402. v-if="studyJuri[0].cover.length == 0"
  6403. >
  6404. <div class="up_photo">
  6405. <img src="../assets/icon/uploadImg.png" alt />
  6406. </div>
  6407. <!-- <input
  6408. type="file"
  6409. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  6410. style="display: none"
  6411. @change="beforeUpload1($event, 1)"
  6412. /> -->
  6413. <input
  6414. type="file"
  6415. accept="*"
  6416. style="display: none"
  6417. @change="beforeUpload1($event, 1)"
  6418. />
  6419. <!-- <input
  6420. type="file"
  6421. accept="image/*"
  6422. capture="camera"
  6423. style="display: none"
  6424. @change="beforeUpload1($event, 1)"
  6425. /> -->
  6426. </div>
  6427. <div
  6428. class="chapter_add"
  6429. style="
  6430. display: flex;
  6431. width: 100%;
  6432. flex-direction: row;
  6433. flex-wrap: wrap;
  6434. justify-content: flex-start;
  6435. padding: 15px 0;
  6436. "
  6437. v-if="studyJuri[0].cover.length > 0"
  6438. >
  6439. <div class="upCover">
  6440. <img
  6441. :src="studyJuri[0].cover[0].url"
  6442. alt
  6443. v-if="fileType == 0"
  6444. />
  6445. <img :src="word" alt v-else-if="fileType == 1" />
  6446. <img :src="video" alt v-else-if="fileType == 2" />
  6447. <img :src="word2" alt v-else-if="fileType == 3" />
  6448. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  6449. <div class="deleteWord" @click="clean(1)">
  6450. <img src="../assets/icon/deleteWorks.png" alt />
  6451. </div>
  6452. </div>
  6453. </div>
  6454. </div>
  6455. <div
  6456. class="upload_send"
  6457. @click="addCourseWorks(taskCount)"
  6458. v-if="!proVisible"
  6459. >
  6460. 提交
  6461. </div>
  6462. </el-dialog>
  6463. </div>
  6464. </div>
  6465. <div
  6466. class="pButton"
  6467. @click="(pzDialog = true), selectPz()"
  6468. v-if="tType == 4 || ispzType == 4"
  6469. >
  6470. <!-- 批 -->
  6471. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  6472. </div>
  6473. <div v-if="pzDialog == true" class="newDialogCss">
  6474. <div class="pzTop2">
  6475. <!-- <div>批注</div>
  6476. <div @click="pzDialog = false">
  6477. <img src="../assets/close1.png" alt="" />
  6478. </div> -->
  6479. <div class="checkbox">
  6480. <div class="check" style="font-size: 25px">评课笔记</div>
  6481. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  6482. </div>
  6483. </div>
  6484. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  6485. <div class="pzListBox" v-if="pzList && pzList.length">
  6486. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  6487. <div class="pzNavTop">
  6488. <div>批</div>
  6489. <div>
  6490. {{
  6491. pz.username && pz.username.length > 5
  6492. ? pz.username.substring(0, 5) + "..."
  6493. : pz.username
  6494. }}的批注
  6495. </div>
  6496. <div
  6497. class="pzDelete"
  6498. v-if="pz.userid == userid"
  6499. @click="deletePz(pz.id)"
  6500. >
  6501. 删除
  6502. </div>
  6503. </div>
  6504. <div
  6505. class="pzContent cont"
  6506. v-html="pz.content"
  6507. v-if="pz.type == '1'"
  6508. ></div>
  6509. <div class="pzContent" v-if="pz.type == '2'">
  6510. <audio :src="pz.content" controls="controls" ref="audio">
  6511. Your browser does not support the audio element.
  6512. </audio>
  6513. </div>
  6514. <div class="pzContent" v-if="pz.type == '3'">
  6515. <img
  6516. :src="pz.content"
  6517. style="width: 90%; margin: 0 auto; display: block"
  6518. @click="previewImg(pz.content)"
  6519. />
  6520. </div>
  6521. <div class="time">
  6522. {{ pz.time }}
  6523. </div>
  6524. </div>
  6525. </div>
  6526. <div class="noPz" v-else>
  6527. <img src="../assets/icon/noPz.png" alt="" />
  6528. </div>
  6529. <div class="addPzButton">
  6530. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  6531. 添加批注
  6532. </div>
  6533. <!-- <div class="img1">
  6534. <div @click="(addPzDialog = true), (pzType = 2)">
  6535. <img src="../assets/audio.png" /><span>音频</span>
  6536. </div>
  6537. </div> -->
  6538. </div>
  6539. </div>
  6540. </div>
  6541. <div v-if="addPzDialog == true" class="addDialogCss">
  6542. <div class="pzTop">
  6543. <div class="teacherPz">
  6544. <div class="teacherPzImg">
  6545. <img src="../assets/icon/teacherPz.png" alt="" />
  6546. </div>
  6547. <div style="margin-left: 10px; height: 25px">教师批注</div>
  6548. </div>
  6549. <div @click="addPzDialog = false">
  6550. <img src="../assets/close1.png" alt="" />
  6551. </div>
  6552. </div>
  6553. <div class="addPzBox">
  6554. <div class="addPzCheck">
  6555. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  6556. >文本</span
  6557. >
  6558. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  6559. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  6560. >音频</span
  6561. >
  6562. </div>
  6563. <div style="height: calc(100% - 95px)">
  6564. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  6565. v-if="pzType == 1"></textarea> -->
  6566. <editor-bar
  6567. class="binfo_input pzConText"
  6568. style="width: 100% !important"
  6569. placeholder="请输入任务描述"
  6570. v-model="pzConText"
  6571. @change="change"
  6572. v-if="pzType == 1"
  6573. ></editor-bar>
  6574. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  6575. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  6576. <div @click="addImg($event)">
  6577. <el-button type="primary">上传图片</el-button>
  6578. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  6579. @change="beforeUpload1($event, 4)" />
  6580. </div>
  6581. </div> -->
  6582. </div>
  6583. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  6584. 确定
  6585. </div>
  6586. </div>
  6587. </div>
  6588. <div v-if="proVisible" class="mask">
  6589. <div class="progressBox">
  6590. <!-- <div id="closePro" class="closeCss">
  6591. <img src="../assets/icon/close.png" alt />
  6592. </div> -->
  6593. <div class="lbox">
  6594. <img src="../assets/loading.gif" />上传中,请稍后
  6595. </div>
  6596. <div style="margin-bottom: 10px">
  6597. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  6598. </div>
  6599. <el-progress
  6600. :text-inside="true"
  6601. :stroke-width="20"
  6602. :percentage="progress"
  6603. style="width: 80%"
  6604. ></el-progress>
  6605. </div>
  6606. </div>
  6607. <div v-if="proVisible2" class="mask">
  6608. <div class="progressBox">
  6609. <div class="lbox">
  6610. <img src="../assets/loading.gif" />上传中,请稍后
  6611. </div>
  6612. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  6613. </div>
  6614. </div>
  6615. <el-dialog :visible.sync="pictureDialog" size="tiny">
  6616. <img width="100%" :src="dialogImageUrl" alt />
  6617. </el-dialog>
  6618. <el-dialog
  6619. :title="noteName != '' ? noteName : '查看问卷'"
  6620. :visible.sync="dialogVisible5"
  6621. :append-to-body="true"
  6622. width="1000px"
  6623. :before-close="handleClose"
  6624. class="dialog_diy dialog_diy3"
  6625. >
  6626. <div>
  6627. <div
  6628. class="a_add_title"
  6629. style="
  6630. display: flex;
  6631. flex-direction: row;
  6632. align-items: center;
  6633. justify-content: center;
  6634. "
  6635. >
  6636. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  6637. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  6638. </div>
  6639. <div class="a_addBox">
  6640. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6641. <div
  6642. class="a_add_box"
  6643. v-for="(item1, index1) in askJson.askCount"
  6644. :key="index1"
  6645. >
  6646. <div class="a_add_head">
  6647. <div style="display: flex">
  6648. {{ index1 + 1 + "、" }}
  6649. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  6650. </div>
  6651. <img
  6652. v-if="askJson.askJson[index1].img"
  6653. :src="askJson.askJson[index1].img"
  6654. style="height: 300px; margin-top: 10px; max-width: 100%"
  6655. />
  6656. </div>
  6657. <div class="a_add_body">
  6658. <div class="a_add_input">
  6659. <el-radio-group
  6660. v-model="radio[index1]"
  6661. v-if="
  6662. askJson.askJson[index1].type == '1' ||
  6663. !askJson.askJson[index1].type
  6664. "
  6665. >
  6666. <el-radio
  6667. v-for="(item2, checkIndex) in askJson.askJson[index1]
  6668. .checkList"
  6669. :key="checkIndex"
  6670. :label="checkIndex"
  6671. :disabled="isAnswer"
  6672. class="redioStyle"
  6673. ><span v-html="item2"></span
  6674. ></el-radio>
  6675. </el-radio-group>
  6676. <el-checkbox-group
  6677. v-model="radio[index1]"
  6678. v-if="askJson.askJson[index1].type == '2'"
  6679. >
  6680. <el-checkbox
  6681. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  6682. .checkList"
  6683. :key="checkIndex1"
  6684. :label="checkIndex1"
  6685. :disabled="isAnswer"
  6686. class="redioStyle"
  6687. ><span v-html="item2"></span>
  6688. </el-checkbox>
  6689. </el-checkbox-group>
  6690. </div>
  6691. </div>
  6692. </div>
  6693. </div>
  6694. </div>
  6695. <span slot="footer" class="dialog-footer">
  6696. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  6697. >取 消</el-button
  6698. >
  6699. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  6700. >确 定</el-button
  6701. >
  6702. </span>
  6703. </el-dialog>
  6704. <el-dialog
  6705. :title="noteName != '' ? noteName : '查看问卷'"
  6706. :visible.sync="dialogVisible5Teacher"
  6707. :append-to-body="true"
  6708. width="1000px"
  6709. :before-close="handleClose"
  6710. class="dialog_diy dialog_diy3"
  6711. >
  6712. <div>
  6713. <div class="w_name">
  6714. 学生姓名:<span>{{ sStudent.student }}</span>
  6715. </div>
  6716. <div
  6717. class="a_add_title"
  6718. style="
  6719. display: flex;
  6720. flex-direction: row;
  6721. align-items: center;
  6722. justify-content: center;
  6723. "
  6724. >
  6725. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  6726. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  6727. </div>
  6728. <div class="a_addBox">
  6729. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6730. <div
  6731. class="a_add_box"
  6732. v-for="(item1, index1) in askJson.askCount"
  6733. :key="index1"
  6734. >
  6735. <div class="a_add_head">
  6736. <div style="display: flex">
  6737. {{ index1 + 1 + "、" }}
  6738. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  6739. </div>
  6740. <img
  6741. v-if="askJson.askJson[index1].img"
  6742. :src="askJson.askJson[index1].img"
  6743. style="height: 300px; margin-top: 10px; max-width: 100%"
  6744. />
  6745. </div>
  6746. <div class="a_add_body">
  6747. <div class="a_add_input">
  6748. <el-radio-group
  6749. v-model="radio[index1]"
  6750. v-if="
  6751. askJson.askJson[index1].type == '1' ||
  6752. !askJson.askJson[index1].type
  6753. "
  6754. >
  6755. <el-radio
  6756. v-for="(item2, checkIndex) in askJson.askJson[index1]
  6757. .checkList"
  6758. :key="checkIndex"
  6759. :label="checkIndex"
  6760. :disabled="isAnswer"
  6761. class="redioStyle"
  6762. ><span v-html="item2"></span
  6763. ></el-radio>
  6764. </el-radio-group>
  6765. <el-checkbox-group
  6766. v-model="radio[index1]"
  6767. v-if="askJson.askJson[index1].type == '2'"
  6768. >
  6769. <el-checkbox
  6770. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  6771. .checkList"
  6772. :key="checkIndex1"
  6773. :label="checkIndex1"
  6774. :disabled="isAnswer"
  6775. class="redioStyle"
  6776. ><span v-html="item2"></span>
  6777. </el-checkbox>
  6778. </el-checkbox-group>
  6779. </div>
  6780. </div>
  6781. </div>
  6782. </div>
  6783. </div>
  6784. <span slot="footer" class="dialog-footer">
  6785. <el-button
  6786. @click="dialogVisible5Teacher = false"
  6787. v-show="noteName == ''"
  6788. >取 消</el-button
  6789. >
  6790. <el-button
  6791. type="primary"
  6792. @click="addStudentAskTeacher"
  6793. v-show="noteName == ''"
  6794. >确 定</el-button
  6795. >
  6796. </span>
  6797. </el-dialog>
  6798. <el-dialog
  6799. :title="noteName != '' ? noteName : '查看选择题'"
  6800. :visible.sync="dialogVisibleChoice"
  6801. :append-to-body="true"
  6802. width="1000px"
  6803. :before-close="handleClose"
  6804. class="dialog_diy dialog_diy3"
  6805. >
  6806. <div>
  6807. <!-- <div class="a_add_title" style="
  6808. display: flex;
  6809. flex-direction: row;
  6810. align-items: center;
  6811. justify-content: center;
  6812. ">
  6813. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  6814. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  6815. </div> -->
  6816. <div class="a_addBox">
  6817. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6818. <div
  6819. class="a_add_box"
  6820. v-for="(item1, index1) in testJson.testCount"
  6821. :key="index1"
  6822. >
  6823. <div class="a_add_head">
  6824. <div style="display: flex">
  6825. {{ index1 + 1 + "、" }}
  6826. <div
  6827. v-if="testJson.testJson[index1].type == '1'"
  6828. style="margin-right: 5px; min-width: 70px"
  6829. >
  6830. (单选题)
  6831. </div>
  6832. <div
  6833. v-if="testJson.testJson[index1].type == '2'"
  6834. style="margin-right: 5px; min-width: 70px"
  6835. >
  6836. (多选题)
  6837. </div>
  6838. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  6839. </div>
  6840. <img
  6841. v-if="testJson.testJson[index1].img"
  6842. :src="testJson.testJson[index1].img"
  6843. style="height: 300px; margin-top: 10px; max-width: 100%"
  6844. />
  6845. </div>
  6846. <div
  6847. class="timuImgBox"
  6848. v-if="
  6849. testJson.testJson[index1].timuList &&
  6850. testJson.testJson[index1].timuList.length
  6851. "
  6852. >
  6853. <div
  6854. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  6855. :key="tIndex"
  6856. class="timuImg"
  6857. @click.stop="previewImg(timg.src)"
  6858. >
  6859. <img :src="timg.src" alt="" />
  6860. </div>
  6861. </div>
  6862. <div class="a_add_body">
  6863. <div class="a_add_input">
  6864. <el-radio-group
  6865. v-model="radio[index1]"
  6866. v-if="testJson.testJson[index1].type == '1'"
  6867. >
  6868. <div class="radioBox">
  6869. <el-radio
  6870. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6871. .checkList"
  6872. :key="checkIndex"
  6873. :label="checkIndex"
  6874. :disabled="isAnswer"
  6875. class="redioStyle"
  6876. >
  6877. <div
  6878. style="margin-right: 10px"
  6879. v-if="item2 && item2.imgType && item2.imgType == 1"
  6880. >
  6881. <div class="inImg" @click.stop="previewImg(item2.src)">
  6882. <img :src="item2.src" alt="" />
  6883. </div>
  6884. </div>
  6885. <span v-else v-html="item2"></span>
  6886. </el-radio>
  6887. </div>
  6888. </el-radio-group>
  6889. <el-checkbox-group
  6890. v-model="radio[index1]"
  6891. v-if="testJson.testJson[index1].type == '2'"
  6892. >
  6893. <div class="radioBox">
  6894. <el-checkbox
  6895. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6896. .checkList"
  6897. :key="checkIndex"
  6898. :label="checkIndex"
  6899. :disabled="isAnswer"
  6900. class="redioStyle"
  6901. >
  6902. <div
  6903. style="margin-right: 10px"
  6904. v-if="item2 && item2.imgType && item2.imgType == 1"
  6905. >
  6906. <div class="inImg" @click.stop="previewImg(item2.src)">
  6907. <img :src="item2.src" alt="" />
  6908. </div>
  6909. </div>
  6910. <span v-else v-html="item2"></span>
  6911. </el-checkbox>
  6912. </div>
  6913. </el-checkbox-group>
  6914. </div>
  6915. </div>
  6916. </div>
  6917. </div>
  6918. </div>
  6919. <span slot="footer" class="dialog-footer">
  6920. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  6921. >取 消</el-button
  6922. >
  6923. <el-button
  6924. type="primary"
  6925. @click="addStudentTest"
  6926. v-show="noteName == ''"
  6927. >确 定</el-button
  6928. >
  6929. </span>
  6930. </el-dialog>
  6931. <el-dialog
  6932. :title="noteName != '' ? noteName : '查看选择题'"
  6933. :visible.sync="dialogVisibleChoiceTeacher"
  6934. :append-to-body="true"
  6935. width="1000px"
  6936. :before-close="handleClose"
  6937. class="dialog_diy dialog_diy3"
  6938. >
  6939. <div>
  6940. <div class="w_name">
  6941. 学生姓名:<span>{{ sStudent.student }}</span>
  6942. </div>
  6943. <div class="a_addBox">
  6944. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6945. <div
  6946. class="a_add_box"
  6947. v-for="(item1, index1) in testJson.testCount"
  6948. :key="index1"
  6949. >
  6950. <div class="a_add_head">
  6951. <div style="display: flex">
  6952. {{ index1 + 1 + "、" }}
  6953. <div
  6954. v-if="testJson.testJson[index1].type == '1'"
  6955. style="margin-right: 5px; min-width: 70px"
  6956. >
  6957. (单选题)
  6958. </div>
  6959. <div
  6960. v-if="testJson.testJson[index1].type == '2'"
  6961. style="margin-right: 5px; min-width: 70px"
  6962. >
  6963. (多选题)
  6964. </div>
  6965. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  6966. </div>
  6967. <img
  6968. v-if="testJson.testJson[index1].img"
  6969. :src="testJson.testJson[index1].img"
  6970. style="height: 300px; margin-top: 10px; max-width: 100%"
  6971. />
  6972. </div>
  6973. <div
  6974. class="timuImgBox"
  6975. v-if="
  6976. testJson.testJson[index1].timuList &&
  6977. testJson.testJson[index1].timuList.length
  6978. "
  6979. >
  6980. <div
  6981. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  6982. :key="tIndex"
  6983. class="timuImg"
  6984. @click.stop="previewImg(timg.src)"
  6985. >
  6986. <img :src="timg.src" alt="" />
  6987. </div>
  6988. </div>
  6989. <div class="a_add_body">
  6990. <div class="a_add_input">
  6991. <el-radio-group
  6992. v-model="radio[index1]"
  6993. v-if="testJson.testJson[index1].type == '1'"
  6994. >
  6995. <div class="radioBox">
  6996. <el-radio
  6997. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6998. .checkList"
  6999. :key="checkIndex"
  7000. :label="checkIndex"
  7001. :disabled="isAnswer"
  7002. class="redioStyle"
  7003. >
  7004. <div
  7005. style="margin-right: 10px"
  7006. v-if="item2 && item2.imgType && item2.imgType == 1"
  7007. >
  7008. <div class="inImg" @click.stop="previewImg(item2.src)">
  7009. <img :src="item2.src" alt="" />
  7010. </div>
  7011. </div>
  7012. <span v-else v-html="item2"></span>
  7013. </el-radio>
  7014. </div>
  7015. </el-radio-group>
  7016. <el-checkbox-group
  7017. v-model="radio[index1]"
  7018. v-if="testJson.testJson[index1].type == '2'"
  7019. >
  7020. <div class="radioBox">
  7021. <el-checkbox
  7022. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7023. .checkList"
  7024. :key="checkIndex"
  7025. :label="checkIndex"
  7026. :disabled="isAnswer"
  7027. class="redioStyle"
  7028. >
  7029. <div
  7030. style="margin-right: 10px"
  7031. v-if="item2 && item2.imgType && item2.imgType == 1"
  7032. >
  7033. <div class="inImg" @click.stop="previewImg(item2.src)">
  7034. <img :src="item2.src" alt="" />
  7035. </div>
  7036. </div>
  7037. <span v-else v-html="item2"></span>
  7038. </el-checkbox>
  7039. </div>
  7040. </el-checkbox-group>
  7041. </div>
  7042. </div>
  7043. </div>
  7044. </div>
  7045. </div>
  7046. <span slot="footer" class="dialog-footer">
  7047. <el-button
  7048. @click="dialogVisibleChoiceTeacher = false"
  7049. v-show="noteName == ''"
  7050. >取 消</el-button
  7051. >
  7052. <el-button
  7053. type="primary"
  7054. @click="addStudentTestTeacher"
  7055. v-show="noteName == ''"
  7056. >确 定</el-button
  7057. >
  7058. </span>
  7059. </el-dialog>
  7060. <el-dialog
  7061. title="查看富文本"
  7062. :visible.sync="dialogVisible1"
  7063. :append-to-body="true"
  7064. width="500px"
  7065. :before-close="handleClose"
  7066. class="dialog_diy textCss"
  7067. >
  7068. <el-form style="font-size: 20px">
  7069. <el-form-item label="文本标题" class="textTitle">
  7070. <div style="font-size: 20px">{{ text.name }}</div>
  7071. </el-form-item>
  7072. <div>富文本内容</div>
  7073. <div
  7074. v-html="text.url"
  7075. style="font-size: 18px; padding: 40px 0 0 0"
  7076. ></div>
  7077. </el-form>
  7078. <span slot="footer" class="dialog-footer">
  7079. <el-button type="primary" @click="dialogVisible1 = false"
  7080. >确定</el-button
  7081. >
  7082. </span>
  7083. </el-dialog>
  7084. <el-dialog
  7085. title="文件预览"
  7086. :visible.sync="dialogVisible3"
  7087. width="50%"
  7088. :before-close="handleClose"
  7089. class="dialog_diy"
  7090. :class="{ fullStyle: full }"
  7091. >
  7092. <div slot="title" class="header-title">
  7093. <div style="color: #fff">文件预览</div>
  7094. <div style="position: absolute; top: 19px; right: 50px">
  7095. <img
  7096. src="../assets/full.png"
  7097. style="height: 16px; cursor: pointer"
  7098. alt=""
  7099. @click="fullTools"
  7100. />
  7101. </div>
  7102. </div>
  7103. <pdf
  7104. v-if="showPDF"
  7105. :pdfUrl="pptImgUrl"
  7106. style="width: 100%; height: 520px; overflow: auto"
  7107. :class="{ fullStyle: full }"
  7108. ></pdf>
  7109. <iframe
  7110. v-else
  7111. :src="pptImgUrl"
  7112. frameborder="0"
  7113. width="100%"
  7114. height="600"
  7115. :class="{ fullStyle: full }"
  7116. ></iframe>
  7117. </el-dialog>
  7118. <el-dialog
  7119. title="文件预览"
  7120. :visible.sync="dialogVisible6"
  7121. width="50%"
  7122. :before-close="handleClose"
  7123. class="dialog_diy"
  7124. >
  7125. <iframe
  7126. :src="pptImgUrl1"
  7127. frameborder="0"
  7128. width="100%"
  7129. height="600"
  7130. ></iframe>
  7131. </el-dialog>
  7132. <el-dialog
  7133. title="提示"
  7134. :visible.sync="dialogVisible4"
  7135. :append-to-body="true"
  7136. width="800px"
  7137. :before-close="handleClose"
  7138. class="dialog_diy notice"
  7139. >
  7140. <div>此功能暂未开放!</div>
  7141. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  7142. </el-dialog>
  7143. <el-dialog
  7144. title="问答"
  7145. :visible.sync="answerDialogVisible"
  7146. :append-to-body="true"
  7147. width="800px"
  7148. :before-close="handleClose"
  7149. class="dialog_diy"
  7150. >
  7151. <div>
  7152. <div
  7153. style="
  7154. display: flex;
  7155. flex-wrap: nowrap;
  7156. flex-direction: column;
  7157. position: relative;
  7158. "
  7159. >
  7160. <div class="queTop" style="padding: 20px 0 20px 0">
  7161. <div class="question">
  7162. <img src="../assets/icon/question.png" alt />
  7163. </div>
  7164. <div class="queTitle">
  7165. <div style="width: 90px; min-width: 90px">提问:</div>
  7166. <div>{{ answerQ }}</div>
  7167. </div>
  7168. </div>
  7169. <div class="ediBottom">
  7170. <textarea
  7171. rows="6"
  7172. class="binfo_input"
  7173. cols
  7174. style="width: 95%; height: 120px"
  7175. v-model="questionAnswer"
  7176. ></textarea>
  7177. </div>
  7178. </div>
  7179. </div>
  7180. <div slot="footer">
  7181. <el-button @click="answerDialogVisible = false">取 消</el-button>
  7182. <el-button type="primary" @click="addQuestion">提 交</el-button>
  7183. </div>
  7184. </el-dialog>
  7185. <el-dialog
  7186. title="问答"
  7187. :visible.sync="answerDialogVisibleTeacher"
  7188. :append-to-body="true"
  7189. width="800px"
  7190. :before-close="handleClose"
  7191. class="dialog_diy"
  7192. >
  7193. <div>
  7194. <div class="w_name">
  7195. 学生姓名:<span>{{ sStudent.student }}</span>
  7196. </div>
  7197. <div
  7198. style="
  7199. display: flex;
  7200. flex-wrap: nowrap;
  7201. flex-direction: column;
  7202. position: relative;
  7203. "
  7204. >
  7205. <div class="queTop" style="padding: 20px 0 20px 0">
  7206. <div class="question">
  7207. <img src="../assets/icon/question.png" alt />
  7208. </div>
  7209. <div class="queTitle">
  7210. <div style="width: 90px; min-width: 90px">提问:</div>
  7211. <div>{{ answerQ }}</div>
  7212. </div>
  7213. </div>
  7214. <div class="ediBottom">
  7215. <textarea
  7216. rows="6"
  7217. class="binfo_input"
  7218. cols
  7219. style="width: 95%; height: 120px"
  7220. v-model="questionAnswer"
  7221. ></textarea>
  7222. </div>
  7223. </div>
  7224. </div>
  7225. <div slot="footer">
  7226. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  7227. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  7228. </div>
  7229. </el-dialog>
  7230. <el-dialog
  7231. title="倒计时"
  7232. :visible.sync="timeDialogVisible"
  7233. :append-to-body="true"
  7234. width="800px"
  7235. :before-close="handleClose"
  7236. class="dialog_diy"
  7237. >
  7238. <div>
  7239. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  7240. </div>
  7241. <div slot="footer">
  7242. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  7243. </div>
  7244. </el-dialog>
  7245. <el-dialog
  7246. title="权限设置"
  7247. :visible.sync="juriVisible"
  7248. :append-to-body="true"
  7249. width="400px"
  7250. :before-close="handleClose"
  7251. class="dialog_diy"
  7252. >
  7253. <div>
  7254. <div class="open_box">
  7255. <div class="switch_box">
  7256. <span>允许学生查看所有作业</span>
  7257. <el-switch
  7258. v-model="sIsOpen"
  7259. active-text=""
  7260. class="switchCss"
  7261. @change="updateSLook"
  7262. ></el-switch>
  7263. </div>
  7264. <div
  7265. class="switch_box"
  7266. v-if="
  7267. courseDetail.userid == userid ||
  7268. (courseDetail.course_teacher &&
  7269. courseDetail.course_teacher.indexOf(userid) != -1)
  7270. "
  7271. >
  7272. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  7273. <span>禁止学生查看所有阶段</span>
  7274. <el-switch
  7275. v-model="IsLookOpen"
  7276. active-text=""
  7277. class="switchCss"
  7278. @change="updateLookOpen"
  7279. ></el-switch>
  7280. </div>
  7281. <div class="switch_box" v-if="courseDetail.userid == userid">
  7282. <span>开启跟随模式</span>
  7283. <el-switch
  7284. v-model="IsFollow"
  7285. active-text=""
  7286. class="switchCss"
  7287. @change="updateFollow"
  7288. ></el-switch>
  7289. </div>
  7290. </div>
  7291. </div>
  7292. <div slot="footer">
  7293. <el-button
  7294. style="background: #409efe; color: #fff"
  7295. @click="juriVisible = false"
  7296. >关 闭</el-button
  7297. >
  7298. </div>
  7299. </el-dialog>
  7300. <el-dialog
  7301. title="查看视频"
  7302. :visible.sync="videoVisible"
  7303. :append-to-body="true"
  7304. width="1000px"
  7305. :before-close="handleClose"
  7306. class="dialog_diy1"
  7307. >
  7308. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  7309. <video-player
  7310. class="video-player vjs-custom-skin"
  7311. :playsinline="true"
  7312. :options="videoDetail"
  7313. @play="onPlayerPlay($event)"
  7314. style="width: 100%; height: 100%"
  7315. ></video-player>
  7316. </div>
  7317. <div slot="footer">
  7318. <el-button
  7319. style="background: #409efe; color: #fff"
  7320. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  7321. >
  7322. 关 闭</el-button
  7323. >
  7324. </div>
  7325. </el-dialog>
  7326. <el-dialog
  7327. title="查看详情"
  7328. :visible.sync="commentDialogVisible"
  7329. :append-to-body="true"
  7330. width="800px"
  7331. :before-close="handleClose"
  7332. class="dialog_diy"
  7333. >
  7334. <div class="commentTop">
  7335. <div class="studentDetail">
  7336. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  7337. <div class="nameAndTime">
  7338. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  7339. <div>{{ commentDetail.time }}</div>
  7340. </div>
  7341. <div
  7342. class="returnBtn"
  7343. style="margin-left: auto; width: 80px"
  7344. v-if="
  7345. commentDetail.works &&
  7346. commentDetail.type == 0 &&
  7347. (tType == 1 || tType == 4)
  7348. "
  7349. @click="
  7350. showPicturePaint(
  7351. commentDetail.img ? commentDetail.img : commentDetail.works
  7352. )
  7353. "
  7354. >
  7355. 教师批注
  7356. </div>
  7357. </div>
  7358. <div
  7359. class="worksAnswer"
  7360. v-if="commentDetail.works && commentDetail.type == 2"
  7361. >
  7362. {{ JSON.parse(commentDetail.works)[0].answer }}
  7363. </div>
  7364. <div
  7365. class="worksAnswer"
  7366. v-if="commentDetail.works && commentDetail.type == 1"
  7367. >
  7368. <img
  7369. src="../assets/teacherWork.png"
  7370. v-if="commentDetail.ateacher"
  7371. class="w_teachert"
  7372. />
  7373. <pdf
  7374. v-if="showPDF"
  7375. :pdfUrl="pptImgUrl"
  7376. style="width: 100%; height: 520px; overflow: auto"
  7377. :class="{ fullStyle: full }"
  7378. ></pdf>
  7379. <iframe
  7380. v-else
  7381. :src="pptImgUrl"
  7382. frameborder="0"
  7383. width="100%"
  7384. height="600"
  7385. :class="{ fullStyle: full }"
  7386. ></iframe>
  7387. </div>
  7388. <div
  7389. class="worksAnswer"
  7390. v-if="commentDetail.works && commentDetail.type == 0"
  7391. >
  7392. <img
  7393. src="../assets/teacherWork.png"
  7394. v-if="commentDetail.ateacher"
  7395. class="w_teachert"
  7396. style="right: 105px"
  7397. />
  7398. <img
  7399. :src="commentDetail.works"
  7400. alt=""
  7401. @click="previewImg(commentDetail.works)"
  7402. />
  7403. </div>
  7404. <div
  7405. class="worksAnswer"
  7406. v-if="commentDetail.works && commentDetail.type == 3"
  7407. >
  7408. <img
  7409. src="../assets/teacherWork.png"
  7410. v-if="commentDetail.ateacher"
  7411. class="w_teachert"
  7412. />
  7413. <video-player
  7414. class="video-player vjs-custom-skin"
  7415. :playsinline="true"
  7416. :options="videoDetail"
  7417. @play="onPlayerPlay($event)"
  7418. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  7419. ></video-player>
  7420. </div>
  7421. <div
  7422. class="worksAnswer"
  7423. v-if="commentDetail.works && commentDetail.type == 10"
  7424. >
  7425. <div class="cont" v-html="commentDetail.works.text"></div>
  7426. </div>
  7427. <div
  7428. class="worksAnswer codeFileBox"
  7429. v-if="commentDetail.works && commentDetail.type == 12"
  7430. @click="downloadFile(commentDetail.works)"
  7431. >
  7432. <img src="../assets/icon/codeFile.png" />
  7433. <div>点击下载文件</div>
  7434. </div>
  7435. <div
  7436. class="worksAnswer"
  7437. v-if="commentDetail.works && commentDetail.type == 13"
  7438. >
  7439. <div v-html="JSON.parse(commentDetail.works).text"></div>
  7440. </div>
  7441. <div
  7442. class="worksAnswer"
  7443. v-if="commentDetail.works && commentDetail.type == 4"
  7444. >
  7445. <div class="evalCss">
  7446. <div class="nav">请选择星星进行评分</div>
  7447. <div class="middleBox" v-if="eScore.eStar">
  7448. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  7449. <div class="nameAndrate">
  7450. <div>{{ e.value }}</div>
  7451. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  7452. </div>
  7453. <div v-if="e.detail">{{ e.detail }}</div>
  7454. </div>
  7455. <div class="bz">
  7456. <textarea
  7457. disabled
  7458. rows="4"
  7459. class="pj"
  7460. style="
  7461. padding: 10px 5px;
  7462. width: 70%;
  7463. background: #f7f6f9;
  7464. font-size: 14px;
  7465. text-indent: 10px;
  7466. color: #000;
  7467. "
  7468. cols
  7469. v-model="eScore.eBzText"
  7470. placeholder="请输入评价内容..."
  7471. ></textarea>
  7472. </div>
  7473. </div>
  7474. </div>
  7475. </div>
  7476. <div class="comment">
  7477. <div class="commentList">
  7478. <div class="commentImg">
  7479. <img
  7480. @click="
  7481. isLikes(
  7482. commentDetail.wid,
  7483. userid,
  7484. 1,
  7485. null,
  7486. commentDetail.isLikes
  7487. )
  7488. "
  7489. :src="commentDetail.isLikes == true ? likes : noLikes"
  7490. alt=""
  7491. />
  7492. </div>
  7493. <div>{{ commentDetail.likesCount }}</div>
  7494. </div>
  7495. <div class="commentList">
  7496. <div class="commentImg">
  7497. <img src="../assets/icon/comment/comment.png" alt="" />
  7498. </div>
  7499. <div>{{ commentDetail.commentCount }}</div>
  7500. </div>
  7501. </div>
  7502. <div class="drawPBox" v-if="commentDetail.img">
  7503. <span>教师批注</span>
  7504. <img
  7505. :src="commentDetail.img"
  7506. alt=""
  7507. @click="previewImg(commentDetail.img)"
  7508. />
  7509. <span
  7510. class="deleteImg"
  7511. v-if="tType == 1 || tType == 4"
  7512. @click.stop="deletePicturePaint(commentDetail.wid)"
  7513. style="
  7514. font-size: 14px;
  7515. width: auto !important;
  7516. color: #b4b4b4;
  7517. top: unset;
  7518. bottom: 0;
  7519. border: none;
  7520. padding: 0;
  7521. height: auto !important;
  7522. margin: 0;
  7523. "
  7524. >删除</span
  7525. >
  7526. </div>
  7527. </div>
  7528. <div class="commentBox">
  7529. <div class="pl">评论:</div>
  7530. <div style="max-height: 200px; overflow: auto">
  7531. <div
  7532. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  7533. style="padding: 10px 0 0 0"
  7534. >
  7535. <div
  7536. class="studentDetail"
  7537. style="padding-top: 10px"
  7538. v-for="(co, coIndex) in commentDetail.commentJson"
  7539. :key="coIndex"
  7540. >
  7541. <div class="tx" style="min-width: 50px">
  7542. <img src="../assets/avatar.png" alt="" />
  7543. </div>
  7544. <div class="plPerson">
  7545. <div class="plName">
  7546. <div>{{ co.commentPeople }}</div>
  7547. <div style="margin-left: 5px">
  7548. {{ co.commentTime }}
  7549. </div>
  7550. <div
  7551. class="deleteComment"
  7552. v-if="userid == co.userid"
  7553. @click="deleteComment(co.wid)"
  7554. >
  7555. 删除
  7556. </div>
  7557. </div>
  7558. <div class="plContent">{{ co.commentText }}</div>
  7559. </div>
  7560. </div>
  7561. </div>
  7562. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  7563. </div>
  7564. </div>
  7565. <div style="margin-top: 10px">
  7566. <div class="displayBox">
  7567. <div
  7568. style="
  7569. color: #556db4;
  7570. font-size: 14px;
  7571. font-weight: bold;
  7572. padding-bottom: 10px;
  7573. "
  7574. >
  7575. 评价
  7576. </div>
  7577. <div class="easy_comment" v-if="false">
  7578. <div
  7579. v-for="(p, pIndex) in PlTextList"
  7580. :key="pIndex"
  7581. @click="fastText(p, 1)"
  7582. >
  7583. {{ p }}
  7584. </div>
  7585. </div>
  7586. </div>
  7587. <div>
  7588. <textarea
  7589. rows="3"
  7590. class="pj"
  7591. style="padding: 10px 5px"
  7592. cols
  7593. v-model="commentText"
  7594. placeholder="请输入对该学生的评价"
  7595. ></textarea>
  7596. </div>
  7597. </div>
  7598. <div slot="footer">
  7599. <el-button
  7600. @click="
  7601. (commentDialogVisible = false),
  7602. (commentIndexJson = {}),
  7603. videoDetail.sources && videoDetail.sources[0]
  7604. ? (videoDetail.sources[0].src = '')
  7605. : ''
  7606. "
  7607. >取 消</el-button
  7608. >
  7609. <el-button
  7610. type="primary"
  7611. @click="addComment(commentDetail.wid, userid, 2)"
  7612. >确 定</el-button
  7613. >
  7614. </div>
  7615. </el-dialog>
  7616. <el-dialog
  7617. title="查看文档"
  7618. :visible.sync="fullDialogVisible"
  7619. :append-to-body="true"
  7620. width="100%"
  7621. :before-close="handleClose"
  7622. :show-close="false"
  7623. class="dialog_diy full_diy"
  7624. :class="{ full_diy2: fulltype == 3 }"
  7625. >
  7626. <div slot="title" class="header-title">
  7627. <div style="color: #fff">查看文档</div>
  7628. <div
  7629. @click="fullDialogVisible = false"
  7630. style="
  7631. cursor: pointer;
  7632. position: absolute;
  7633. top: 20px;
  7634. right: 20px;
  7635. color: #fff;
  7636. "
  7637. >
  7638. 退出全屏
  7639. </div>
  7640. </div>
  7641. <div style="height: 100%">
  7642. <div
  7643. class="wheel"
  7644. v-if="
  7645. fulltype == 2 &&
  7646. fullUrl.indexOf(
  7647. 'https://view.officeapps.live.com/op/view.aspx?src='
  7648. ) != -1
  7649. "
  7650. style="width: 95%; margin: 0 auto"
  7651. >
  7652. <iframe
  7653. style="width: 100%; height: 100%; border: none"
  7654. :src="fullUrl"
  7655. ></iframe>
  7656. </div>
  7657. <iframe
  7658. v-else-if="fulltype == 2"
  7659. style="width: 100%; height: 100%; border: none"
  7660. :src="fullUrl"
  7661. security="restricted"
  7662. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  7663. ></iframe>
  7664. <pdf
  7665. v-else-if="fulltype == 3"
  7666. :pdfUrl="fullUrl"
  7667. style="width: 100%; height: 100%; overflow: auto"
  7668. ></pdf>
  7669. <div
  7670. class="wheel"
  7671. v-if="fulltype == 1"
  7672. style="
  7673. box-shadow: 0 0 6px 1px #f2f2f2;
  7674. width: 100%;
  7675. background: #f1f1f1;
  7676. "
  7677. >
  7678. <div class="title" style="width: 100%; box-sizing: border-box">
  7679. 查看文档
  7680. </div>
  7681. <el-form class="textBox" style="height: 90%">
  7682. <el-form-item class="textTitle">
  7683. <div style="font-size: 22px">
  7684. {{ fullUrl.name }}
  7685. </div>
  7686. </el-form-item>
  7687. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  7688. <div
  7689. v-html="fullUrl.url"
  7690. class="textContent"
  7691. style="height: auto"
  7692. ></div>
  7693. </el-form>
  7694. </div>
  7695. </div>
  7696. <!-- <div slot="footer">
  7697. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  7698. </div> -->
  7699. </el-dialog>
  7700. <el-dialog
  7701. title="个人评价"
  7702. :visible.sync="studentEvalDialogVisible"
  7703. :append-to-body="true"
  7704. width="800px"
  7705. :before-close="handleClose"
  7706. class="dialog_diy"
  7707. >
  7708. <div class="evalCss">
  7709. <div class="nav">请选择星星进行评分</div>
  7710. <div class="middleBox" v-if="eScore.eStar">
  7711. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  7712. <div class="nameAndrate">
  7713. <div>{{ e.value }}</div>
  7714. <el-rate
  7715. v-model="eScore.eStar[eIndex]"
  7716. :disabled="isStar"
  7717. ></el-rate>
  7718. </div>
  7719. <div v-if="e.detail">{{ e.detail }}</div>
  7720. </div>
  7721. <div class="easy_comment" v-if="false">
  7722. <div
  7723. v-for="(p, pIndex) in PlTextList"
  7724. :key="pIndex"
  7725. @click="fastText(p, 2)"
  7726. >
  7727. {{ p }}
  7728. </div>
  7729. </div>
  7730. <div class="bz">
  7731. <textarea
  7732. :disabled="isStar"
  7733. rows="4"
  7734. class="pj"
  7735. style="
  7736. padding: 10px 5px;
  7737. width: 70%;
  7738. background: #f7f6f9;
  7739. font-size: 14px;
  7740. text-indent: 10px;
  7741. "
  7742. cols
  7743. v-model="eScore.eBzText"
  7744. placeholder="请输入评价内容..."
  7745. ></textarea>
  7746. </div>
  7747. </div>
  7748. </div>
  7749. <div slot="footer">
  7750. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  7751. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  7752. >确 定</el-button
  7753. >
  7754. </div>
  7755. </el-dialog>
  7756. <el-dialog
  7757. title="个人评价"
  7758. :visible.sync="studentEvalDialogVisibleTeacher"
  7759. :append-to-body="true"
  7760. width="800px"
  7761. :before-close="handleClose"
  7762. class="dialog_diy"
  7763. >
  7764. <div class="w_name">
  7765. 学生姓名:<span>{{ sStudent.student }}</span>
  7766. </div>
  7767. <div class="evalCss">
  7768. <div class="nav">请选择星星进行评分</div>
  7769. <div class="middleBox" v-if="eScore.eStar">
  7770. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  7771. <div class="nameAndrate">
  7772. <div>{{ e.value }}</div>
  7773. <el-rate
  7774. v-model="eScore.eStar[eIndex]"
  7775. :disabled="isStar"
  7776. ></el-rate>
  7777. </div>
  7778. <div v-if="e.detail">{{ e.detail }}</div>
  7779. </div>
  7780. <div class="easy_comment" v-if="false">
  7781. <div
  7782. v-for="(p, pIndex) in PlTextList"
  7783. :key="pIndex"
  7784. @click="fastText(p, 2)"
  7785. >
  7786. {{ p }}
  7787. </div>
  7788. </div>
  7789. <div class="bz">
  7790. <textarea
  7791. :disabled="isStar"
  7792. rows="4"
  7793. class="pj"
  7794. style="
  7795. padding: 10px 5px;
  7796. width: 70%;
  7797. background: #f7f6f9;
  7798. font-size: 14px;
  7799. text-indent: 10px;
  7800. "
  7801. cols
  7802. v-model="eScore.eBzText"
  7803. placeholder="请输入评价内容..."
  7804. ></textarea>
  7805. </div>
  7806. </div>
  7807. </div>
  7808. <div slot="footer">
  7809. <el-button @click="studentEvalDialogVisibleTeacher = false"
  7810. >取 消</el-button
  7811. >
  7812. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  7813. >确 定</el-button
  7814. >
  7815. </div>
  7816. </el-dialog>
  7817. <el-dialog
  7818. title="选择填空"
  7819. :visible.sync="dialogVisibleSelect"
  7820. :append-to-body="true"
  7821. width="90%"
  7822. :before-close="handleClose"
  7823. class="dialog_diy dialog_diy3"
  7824. >
  7825. <div v-if="selectJson">
  7826. <div class="select_box2">
  7827. <div class="select_box2_title">
  7828. <div>选择填空</div>
  7829. <div>请选择对应的答案进行答题!</div>
  7830. </div>
  7831. <div class="select_box2_box">
  7832. <div class="select_box2_img">
  7833. <img
  7834. :src="selectJson.url"
  7835. @click="previewImg(selectJson.url)"
  7836. alt=""
  7837. />
  7838. </div>
  7839. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  7840. <div style="padding-top: 15px">
  7841. <div class="select_answer_title" v-if="isSelect">
  7842. {{ selectAnswer.stu }}
  7843. </div>
  7844. <div class="select_answer_title" v-else>
  7845. 根据题目选择对应答案
  7846. </div>
  7847. <div
  7848. class="select_box2_answer_box"
  7849. v-for="(item2, checkIndex) in selectJson.select"
  7850. :key="checkIndex"
  7851. >
  7852. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  7853. <el-select
  7854. :disabled="isSelect"
  7855. v-model="selectAnswer.answer[checkIndex]"
  7856. placeholder="请选择正确答案"
  7857. >
  7858. <el-option
  7859. v-for="(e, eIndex) in selectJson.select"
  7860. :key="eIndex"
  7861. :label="e"
  7862. :value="eIndex"
  7863. >
  7864. </el-option>
  7865. </el-select>
  7866. </div>
  7867. </div>
  7868. <div
  7869. class="rightAnswerCss"
  7870. v-if="isSelect && (tType == 1 || tType == 4)"
  7871. >
  7872. <div
  7873. v-for="(a, aIndex) in selectJson.answer"
  7874. :key="aIndex"
  7875. class="rightAnswer"
  7876. >
  7877. <div
  7878. v-if="selectAnswer.answer[aIndex] === a"
  7879. style="color: #767de1"
  7880. >
  7881. 回答正确
  7882. </div>
  7883. <div v-else>回答错误</div>
  7884. <div
  7885. style="margin-left: 10px"
  7886. v-if="selectAnswer.answer[aIndex] !== a"
  7887. >
  7888. 正确答案:
  7889. </div>
  7890. <div
  7891. :class="
  7892. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  7893. "
  7894. >
  7895. {{ selectJson.select[a] }}
  7896. </div>
  7897. </div>
  7898. </div>
  7899. </div>
  7900. <div class="upAnswerCss">
  7901. <el-button
  7902. type="primary"
  7903. @click="addSelectAnswer"
  7904. v-if="!isSelect"
  7905. >提交答案</el-button
  7906. >
  7907. </div>
  7908. </div>
  7909. </div>
  7910. </div>
  7911. </el-dialog>
  7912. <el-dialog
  7913. title="选择填空"
  7914. :visible.sync="dialogVisibleSelectTeacher"
  7915. :append-to-body="true"
  7916. width="90%"
  7917. :before-close="handleClose"
  7918. class="dialog_diy dialog_diy3"
  7919. >
  7920. <div v-if="selectJson">
  7921. <div class="w_name">
  7922. 学生姓名:<span>{{ sStudent.student }}</span>
  7923. </div>
  7924. <div class="select_box2">
  7925. <div class="select_box2_title">
  7926. <div>选择填空</div>
  7927. <div>请选择对应的答案进行答题!</div>
  7928. </div>
  7929. <div class="select_box2_box">
  7930. <div class="select_box2_img">
  7931. <img
  7932. :src="selectJson.url"
  7933. @click="previewImg(selectJson.url)"
  7934. alt=""
  7935. />
  7936. </div>
  7937. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  7938. <div style="padding-top: 15px">
  7939. <div class="select_answer_title" v-if="isSelect">
  7940. {{ selectAnswer.stu }}
  7941. </div>
  7942. <div class="select_answer_title" v-else>
  7943. 根据题目选择对应答案
  7944. </div>
  7945. <div
  7946. class="select_box2_answer_box"
  7947. v-for="(item2, checkIndex) in selectJson.select"
  7948. :key="checkIndex"
  7949. >
  7950. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  7951. <el-select
  7952. :disabled="isSelect"
  7953. v-model="selectAnswer.answer[checkIndex]"
  7954. placeholder="请选择正确答案"
  7955. >
  7956. <el-option
  7957. v-for="(e, eIndex) in selectJson.select"
  7958. :key="eIndex"
  7959. :label="e"
  7960. :value="eIndex"
  7961. >
  7962. </el-option>
  7963. </el-select>
  7964. </div>
  7965. </div>
  7966. <div
  7967. class="rightAnswerCss"
  7968. v-if="isSelect && (tType == 1 || tType == 4)"
  7969. >
  7970. <div
  7971. v-for="(a, aIndex) in selectJson.answer"
  7972. :key="aIndex"
  7973. class="rightAnswer"
  7974. >
  7975. <div
  7976. v-if="selectAnswer.answer[aIndex] === a"
  7977. style="color: #767de1"
  7978. >
  7979. 回答正确
  7980. </div>
  7981. <div v-else>回答错误</div>
  7982. <div
  7983. style="margin-left: 10px"
  7984. v-if="selectAnswer.answer[aIndex] !== a"
  7985. >
  7986. 正确答案:
  7987. </div>
  7988. <div
  7989. :class="
  7990. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  7991. "
  7992. >
  7993. {{ selectJson.select[a] }}
  7994. </div>
  7995. </div>
  7996. </div>
  7997. </div>
  7998. <div class="upAnswerCss">
  7999. <el-button
  8000. type="primary"
  8001. @click="addSelectAnswerTeacher"
  8002. v-if="!isSelect"
  8003. >提交答案</el-button
  8004. >
  8005. </div>
  8006. </div>
  8007. </div>
  8008. </div>
  8009. </el-dialog>
  8010. <el-dialog
  8011. title="教师评分"
  8012. :visible.sync="dialogVisibleScore"
  8013. :append-to-body="true"
  8014. width="800px"
  8015. :before-close="handleClose"
  8016. class="dialog_diy"
  8017. >
  8018. <div>
  8019. <div class="studentDetail">
  8020. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  8021. <div class="nameAndTime">
  8022. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  8023. <div>{{ commentDetail.time }}</div>
  8024. </div>
  8025. </div>
  8026. <div
  8027. class="worksAnswer"
  8028. v-if="commentDetail.works && commentDetail.type == 2"
  8029. >
  8030. {{ JSON.parse(commentDetail.works)[0].answer }}
  8031. </div>
  8032. <div
  8033. class="worksAnswer"
  8034. v-if="commentDetail.works && commentDetail.type == 1"
  8035. >
  8036. <pdf
  8037. v-if="showPDF"
  8038. :pdfUrl="pptImgUrl"
  8039. style="width: 100%; height: 520px; overflow: auto"
  8040. :class="{ fullStyle: full }"
  8041. ></pdf>
  8042. <iframe
  8043. v-else
  8044. :src="pptImgUrl"
  8045. frameborder="0"
  8046. width="100%"
  8047. height="600"
  8048. :class="{ fullStyle: full }"
  8049. ></iframe>
  8050. </div>
  8051. <div
  8052. class="worksAnswer"
  8053. v-if="commentDetail.works && commentDetail.type == 0"
  8054. >
  8055. <img
  8056. :src="commentDetail.works"
  8057. alt=""
  8058. @click="previewImg(commentDetail.works)"
  8059. />
  8060. </div>
  8061. <div
  8062. class="worksAnswer"
  8063. v-if="commentDetail.works && commentDetail.type == 3"
  8064. >
  8065. <video-player
  8066. class="video-player vjs-custom-skin"
  8067. :playsinline="true"
  8068. :options="videoDetail"
  8069. @play="onPlayerPlay($event)"
  8070. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  8071. ></video-player>
  8072. </div>
  8073. <div
  8074. class="worksAnswer codeFileBox"
  8075. v-if="commentDetail.works && commentDetail.type == 12"
  8076. @click="downloadFile(commentDetail.works)"
  8077. >
  8078. <img src="../assets/icon/codeFile.png" />
  8079. <div>点击下载文件</div>
  8080. </div>
  8081. <div
  8082. class="worksAnswer"
  8083. v-if="commentDetail.works && commentDetail.type == 13"
  8084. >
  8085. <div v-html="JSON.parse(commentDetail.works).text"></div>
  8086. </div>
  8087. <div class="scoreBox">
  8088. <span class="t">请输入分数</span>
  8089. <el-input-number
  8090. :disabled="courseDetail.userid != userid"
  8091. v-model="wScore"
  8092. :controls="false"
  8093. :min="0"
  8094. :max="100"
  8095. ></el-input-number>
  8096. </div>
  8097. <div class="scoreDetailBox">
  8098. <span class="t">评分评论</span>
  8099. <el-input
  8100. type="textarea"
  8101. :rows="5"
  8102. :disabled="courseDetail.userid != userid"
  8103. resize="none"
  8104. v-model="scoreDetail"
  8105. placeholder="请输入对学生的评价"
  8106. >
  8107. </el-input>
  8108. </div>
  8109. </div>
  8110. <span slot="footer" class="dialog-footer">
  8111. <el-button
  8112. @click="
  8113. (dialogVisibleScore = false),
  8114. (commentIndexJson = {}),
  8115. videoDetail.sources && videoDetail.sources[0]
  8116. ? (videoDetail.sources[0].src = '')
  8117. : ''
  8118. "
  8119. >取 消</el-button
  8120. >
  8121. <el-button
  8122. type="primary"
  8123. v-if="courseDetail.userid == userid"
  8124. @click="scoreWork(commentDetail.wid)"
  8125. >确 定
  8126. </el-button>
  8127. </span>
  8128. </el-dialog>
  8129. <el-dialog
  8130. title="连词成句"
  8131. :visible.sync="dialogVisibleSentence"
  8132. :append-to-body="true"
  8133. width="1000px"
  8134. :before-close="handleClose"
  8135. class="dialog_diy dialog_diy3"
  8136. >
  8137. <div>
  8138. <div class="sentenBox">
  8139. <div
  8140. v-for="(st, stIndex) in sentenceList"
  8141. :key="stIndex"
  8142. style="padding-bottom: 20px"
  8143. >
  8144. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  8145. <div class="cardList" v-if="st.chooseSenList">
  8146. <div class="cardBox">
  8147. <div
  8148. v-for="(r, rIndex) in st.chooseSenList"
  8149. :key="rIndex"
  8150. @click="returnCard(r, stIndex, rIndex)"
  8151. >
  8152. <el-tooltip
  8153. class="item"
  8154. effect="light"
  8155. :content="r"
  8156. placement="top"
  8157. v-if="r != '' && r != undefined"
  8158. >
  8159. <div
  8160. :class="{
  8161. isCard: r,
  8162. isChooseCard: r == '' || r == undefined,
  8163. }"
  8164. >
  8165. <div>{{ r }}</div>
  8166. </div>
  8167. </el-tooltip>
  8168. <div
  8169. :class="{
  8170. isCard: r,
  8171. isChooseCard: r == '' || r == undefined,
  8172. }"
  8173. v-else
  8174. >
  8175. <div>{{ r }}</div>
  8176. </div>
  8177. </div>
  8178. </div>
  8179. </div>
  8180. <div class="cardList" v-if="st.addChangeSen">
  8181. <div class="cardBox">
  8182. <div
  8183. v-for="(s, sIndex) in st.addChangeSen"
  8184. :key="sIndex"
  8185. @click="setRightAnswer(s, stIndex, sIndex)"
  8186. >
  8187. <el-tooltip
  8188. class="item"
  8189. effect="light"
  8190. :content="s"
  8191. placement="top"
  8192. v-if="s != '' && s != undefined"
  8193. >
  8194. <div
  8195. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8196. >
  8197. <div>{{ s }}</div>
  8198. </div>
  8199. </el-tooltip>
  8200. <div
  8201. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8202. v-else
  8203. >
  8204. <div>{{ s }}</div>
  8205. </div>
  8206. </div>
  8207. </div>
  8208. </div>
  8209. </div>
  8210. </div>
  8211. </div>
  8212. <span slot="footer" class="dialog-footer">
  8213. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  8214. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  8215. </span>
  8216. </el-dialog>
  8217. <el-dialog
  8218. title="连词成句"
  8219. :visible.sync="dialogVisibleSentenceTeacher"
  8220. :append-to-body="true"
  8221. width="1000px"
  8222. :before-close="handleClose"
  8223. class="dialog_diy dialog_diy3"
  8224. >
  8225. <div>
  8226. <div class="w_name">
  8227. 学生姓名:<span>{{ sStudent.student }}</span>
  8228. </div>
  8229. <div class="sentenBox">
  8230. <div
  8231. v-for="(st, stIndex) in sentenceList"
  8232. :key="stIndex"
  8233. style="padding-bottom: 20px"
  8234. >
  8235. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  8236. <div class="cardList" v-if="st.chooseSenList">
  8237. <div class="cardBox">
  8238. <div
  8239. v-for="(r, rIndex) in st.chooseSenList"
  8240. :key="rIndex"
  8241. @click="returnCard(r, stIndex, rIndex)"
  8242. >
  8243. <el-tooltip
  8244. class="item"
  8245. effect="light"
  8246. :content="r"
  8247. placement="top"
  8248. v-if="r != '' && r != undefined"
  8249. >
  8250. <div
  8251. :class="{
  8252. isCard: r,
  8253. isChooseCard: r == '' || r == undefined,
  8254. }"
  8255. >
  8256. <div>{{ r }}</div>
  8257. </div>
  8258. </el-tooltip>
  8259. <div
  8260. :class="{
  8261. isCard: r,
  8262. isChooseCard: r == '' || r == undefined,
  8263. }"
  8264. v-else
  8265. >
  8266. <div>{{ r }}</div>
  8267. </div>
  8268. </div>
  8269. </div>
  8270. </div>
  8271. <div class="cardList" v-if="st.addChangeSen">
  8272. <div class="cardBox">
  8273. <div
  8274. v-for="(s, sIndex) in st.addChangeSen"
  8275. :key="sIndex"
  8276. @click="setRightAnswer(s, stIndex, sIndex)"
  8277. >
  8278. <el-tooltip
  8279. class="item"
  8280. effect="light"
  8281. :content="s"
  8282. placement="top"
  8283. v-if="s != '' && s != undefined"
  8284. >
  8285. <div
  8286. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8287. >
  8288. <div>{{ s }}</div>
  8289. </div>
  8290. </el-tooltip>
  8291. <div
  8292. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8293. v-else
  8294. >
  8295. <div>{{ s }}</div>
  8296. </div>
  8297. </div>
  8298. </div>
  8299. </div>
  8300. </div>
  8301. </div>
  8302. </div>
  8303. <span slot="footer" class="dialog-footer">
  8304. <el-button @click="dialogVisibleSentenceTeacher = false"
  8305. >取 消</el-button
  8306. >
  8307. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  8308. </span>
  8309. </el-dialog>
  8310. <el-dialog
  8311. title="连词成句"
  8312. :visible.sync="dialogVisibleSentence1"
  8313. :append-to-body="true"
  8314. width="1000px"
  8315. :before-close="handleClose"
  8316. class="dialog_diy dialog_diy3"
  8317. >
  8318. <div>
  8319. <div class="sentenBox">
  8320. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  8321. {{ sentenceList1.stuName }}的作业
  8322. </div>
  8323. <div
  8324. v-for="(st, stIndex) in sentenceList1"
  8325. :key="stIndex"
  8326. style="padding-bottom: 20px"
  8327. >
  8328. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  8329. 第{{ stIndex + 1 }}题
  8330. </div>
  8331. <div class="isWrong">
  8332. <div class="cardList1" v-if="st.chooseSenList">
  8333. <div class="cardBox">
  8334. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  8335. <el-tooltip
  8336. class="item"
  8337. effect="light"
  8338. :content="s"
  8339. placement="top"
  8340. >
  8341. <div class="isCard">
  8342. <div>{{ s }}</div>
  8343. </div>
  8344. </el-tooltip>
  8345. </div>
  8346. </div>
  8347. <div class="cardAnswerBox">
  8348. 组成句子:{{ st.chooseSenList.join(" ") }}
  8349. </div>
  8350. </div>
  8351. <div v-if="tType == 2" class="isTj">
  8352. <div class="isTjImg">
  8353. <img src="../assets/icon/conSentences/right.png" alt="" />
  8354. </div>
  8355. <div>已提交</div>
  8356. </div>
  8357. <div
  8358. class="answerRight isTj"
  8359. v-if="
  8360. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  8361. (tType == 1 || tType == 4)
  8362. "
  8363. >
  8364. <div class="isTjImg">
  8365. <img src="../assets/icon/conSentences/right.png" alt="" />
  8366. </div>
  8367. <div>回答正确</div>
  8368. </div>
  8369. <div
  8370. class="answerRight isTj"
  8371. v-if="
  8372. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  8373. (tType == 1 || tType == 4)
  8374. "
  8375. >
  8376. <div class="isTjImg">
  8377. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  8378. </div>
  8379. <div>回答错误</div>
  8380. </div>
  8381. </div>
  8382. <div
  8383. v-if="
  8384. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  8385. (tType == 1 || tType == 4)
  8386. "
  8387. >
  8388. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  8389. <div
  8390. class="cardList"
  8391. v-if="st.rightAnswer"
  8392. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  8393. >
  8394. <div class="cardBox">
  8395. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  8396. <el-tooltip
  8397. class="item"
  8398. effect="light"
  8399. :content="r"
  8400. placement="top"
  8401. >
  8402. <div class="isCard1">
  8403. <div>{{ r }}</div>
  8404. </div>
  8405. </el-tooltip>
  8406. </div>
  8407. </div>
  8408. <div class="cardAnswerBox">
  8409. 组成句子:{{ st.rightAnswer.join(" ") }}
  8410. </div>
  8411. </div>
  8412. </div>
  8413. </div>
  8414. </div>
  8415. </div>
  8416. <span slot="footer" class="dialog-footer">
  8417. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  8418. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  8419. >确 定</el-button
  8420. >
  8421. </span>
  8422. </el-dialog>
  8423. <el-dialog
  8424. title="教师提交作业"
  8425. :visible.sync="dialogVisibleWorks"
  8426. :append-to-body="true"
  8427. width="500px"
  8428. :before-close="handleClose"
  8429. class="dialog_change"
  8430. >
  8431. <div class="marginT">
  8432. <div class="w_name">
  8433. 学生姓名:<span>{{ sStudent.student }}</span>
  8434. </div>
  8435. <div>上传文件</div>
  8436. <div
  8437. class="chapter_add"
  8438. @click="addImg($event)"
  8439. v-if="studyJuri[0].cover.length == 0"
  8440. >
  8441. <div class="up_photo">
  8442. <img src="../assets/uploadImg2.png" alt />
  8443. </div>
  8444. <!-- <input
  8445. type="file"
  8446. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8447. style="display: none"
  8448. @change="beforeUpload1($event, 1)"
  8449. /> -->
  8450. <input
  8451. type="file"
  8452. accept="*"
  8453. style="display: none"
  8454. @change="beforeUpload1($event, 1)"
  8455. />
  8456. </div>
  8457. <!-- capture="camera" -->
  8458. <div
  8459. class="chapter_add"
  8460. style="
  8461. display: flex;
  8462. width: 100%;
  8463. flex-direction: row;
  8464. flex-wrap: wrap;
  8465. justify-content: flex-start;
  8466. padding: 15px 0;
  8467. "
  8468. v-if="studyJuri[0].cover.length > 0"
  8469. >
  8470. <div class="upCover">
  8471. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  8472. <img :src="word" alt v-else-if="fileType == 1" />
  8473. <img :src="video" alt v-else-if="fileType == 2" />
  8474. <img :src="word2" alt v-else-if="fileType == 3" />
  8475. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8476. <div class="deleteWord" @click="clean(1)">
  8477. <img src="../assets/icon/deleteWorks.png" alt />
  8478. </div>
  8479. </div>
  8480. </div>
  8481. </div>
  8482. <div
  8483. class="upload_send"
  8484. @click="addCourseWorksTeacher(taskCount)"
  8485. v-if="!proVisible"
  8486. >
  8487. 提交
  8488. </div>
  8489. </el-dialog>
  8490. <ImgDraw
  8491. :drawShow="drawShow"
  8492. @closeDraw="closeDraw"
  8493. @addImgDraw="addImgDraw"
  8494. :bg="bg"
  8495. ></ImgDraw>
  8496. <el-dialog
  8497. title="表格"
  8498. :visible.sync="dialogVisibleTable"
  8499. :append-to-body="true"
  8500. width="95%"
  8501. :before-close="handleClose"
  8502. class="dialog_diy"
  8503. >
  8504. <el-form>
  8505. <div
  8506. style="
  8507. display: flex;
  8508. align-items: center;
  8509. justify-content: space-between;
  8510. "
  8511. >
  8512. <span>表格内容</span>
  8513. <el-button type="primary" size="small" @click="returnTableText"
  8514. >还原模板</el-button
  8515. >
  8516. </div>
  8517. <Table
  8518. v-model="tableJson.text"
  8519. @change="change"
  8520. v-if="dialogVisibleTable"
  8521. ></Table>
  8522. </el-form>
  8523. <span slot="footer" class="dialog-footer">
  8524. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  8525. <el-button type="primary" @click="addTableWorks">确定</el-button>
  8526. </span>
  8527. </el-dialog>
  8528. <el-dialog
  8529. title="表格"
  8530. :visible.sync="dialogVisibleTableTeacher"
  8531. :append-to-body="true"
  8532. width="95%"
  8533. :before-close="handleClose"
  8534. class="dialog_diy"
  8535. >
  8536. <el-form>
  8537. <div class="w_name">
  8538. 学生姓名:<span>{{ sStudent.student }}</span>
  8539. </div>
  8540. <div>表格内容</div>
  8541. <Table
  8542. v-model="tableJson.text"
  8543. @change="change"
  8544. v-if="dialogVisibleTableTeacher"
  8545. ></Table>
  8546. </el-form>
  8547. <span slot="footer" class="dialog-footer">
  8548. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  8549. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  8550. </span>
  8551. </el-dialog>
  8552. <el-dialog
  8553. title="文档"
  8554. :visible.sync="dialogVisibleWord"
  8555. :append-to-body="true"
  8556. width="95%"
  8557. :before-close="handleClose"
  8558. class="dialog_diy"
  8559. >
  8560. <el-form>
  8561. <div
  8562. style="
  8563. display: flex;
  8564. align-items: center;
  8565. justify-content: space-between;
  8566. "
  8567. >
  8568. <span>文档内容</span>
  8569. <el-button type="primary" size="small" @click="returnWordText"
  8570. >还原模板</el-button
  8571. >
  8572. </div>
  8573. <editor-bar
  8574. v-model="wordJson.text"
  8575. v-if="dialogVisibleWord"
  8576. ></editor-bar>
  8577. </el-form>
  8578. <span slot="footer" class="dialog-footer">
  8579. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  8580. <el-button type="primary" @click="addWordWorks">确定</el-button>
  8581. </span>
  8582. </el-dialog>
  8583. <el-dialog
  8584. title="文档"
  8585. :visible.sync="dialogVisibleWordTeacher"
  8586. :append-to-body="true"
  8587. width="95%"
  8588. :before-close="handleClose"
  8589. class="dialog_diy"
  8590. >
  8591. <el-form>
  8592. <div class="w_name">
  8593. 学生姓名:<span>{{ sStudent.student }}</span>
  8594. </div>
  8595. <div>文档内容</div>
  8596. <editor-bar
  8597. v-model="wordJson.text"
  8598. v-if="dialogVisibleWordTeacher"
  8599. ></editor-bar>
  8600. </el-form>
  8601. <span slot="footer" class="dialog-footer">
  8602. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  8603. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  8604. </span>
  8605. </el-dialog>
  8606. <el-dialog
  8607. title="表格"
  8608. :visible.sync="dialogVisibleTable2"
  8609. :append-to-body="true"
  8610. width="95%"
  8611. :before-close="handleClose"
  8612. class="dialog_diy"
  8613. >
  8614. <el-form>
  8615. <div class="cont" v-html="tableJson.text"></div>
  8616. </el-form>
  8617. <span slot="footer" class="dialog-footer">
  8618. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  8619. </span>
  8620. </el-dialog>
  8621. <el-dialog
  8622. title="文档"
  8623. :visible.sync="dialogVisibleTable3"
  8624. :append-to-body="true"
  8625. width="95%"
  8626. :before-close="handleClose"
  8627. class="dialog_diy"
  8628. >
  8629. <el-form>
  8630. <div class="cont" v-html="tableJson.text"></div>
  8631. </el-form>
  8632. <span slot="footer" class="dialog-footer">
  8633. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  8634. </span>
  8635. </el-dialog>
  8636. <el-dialog
  8637. title="分组设置"
  8638. :visible.sync="dialogVisibleGroup"
  8639. :append-to-body="true"
  8640. width="95%"
  8641. :before-close="handleClose"
  8642. class="dialog_diy"
  8643. >
  8644. <div v-if="dialogVisibleGroup">
  8645. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  8646. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  8647. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  8648. </div>
  8649. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  8650. @click="lockChair">
  8651. 锁定位置
  8652. </div>
  8653. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  8654. 解锁位置
  8655. </div> -->
  8656. <div class="group_switch">
  8657. <span>开放选座</span>
  8658. <el-switch
  8659. v-model="islock"
  8660. active-text=""
  8661. class="switchCss"
  8662. @change="lockChair"
  8663. ></el-switch>
  8664. </div>
  8665. <div
  8666. type="primary"
  8667. @click="updateGroup"
  8668. class="returnBtn"
  8669. style="background-color: #225bc7"
  8670. >
  8671. 分组设置
  8672. </div>
  8673. </div>
  8674. <div>
  8675. <div
  8676. class="g_d_box"
  8677. v-if="groupJson.group && groupStudent[toolindex]"
  8678. >
  8679. <div
  8680. class="g_d_group"
  8681. v-for="(g, gindex) in groupJson.group"
  8682. :key="gindex"
  8683. >
  8684. <div class="g_d_group_chair">
  8685. <div v-if="groupJson.number > 1">
  8686. <span
  8687. :class="{
  8688. isChair:
  8689. groupStudent[toolindex][gindex] &&
  8690. groupStudent[toolindex][gindex][0],
  8691. updateChair:
  8692. courseDetail.userid == userid &&
  8693. groupStudent[toolindex][gindex] &&
  8694. groupStudent[toolindex][gindex][0] &&
  8695. groupJson.islock == 2,
  8696. }"
  8697. ><span
  8698. class="updateChairBtn"
  8699. @click="
  8700. updateGroupChair(
  8701. groupStudent[toolindex][gindex] &&
  8702. groupStudent[toolindex][gindex][0]
  8703. )
  8704. "
  8705. >修改</span
  8706. ></span
  8707. ><span>{{
  8708. groupStudent[toolindex][gindex] &&
  8709. groupStudent[toolindex][gindex][0]
  8710. ? groupStudent[toolindex][gindex] &&
  8711. groupStudent[toolindex][gindex][0].name
  8712. : "空位置"
  8713. }}</span>
  8714. </div>
  8715. <div v-if="groupJson.number > 4">
  8716. <span
  8717. :class="{
  8718. isChair:
  8719. groupStudent[toolindex][gindex] &&
  8720. groupStudent[toolindex][gindex][4],
  8721. updateChair:
  8722. courseDetail.userid == userid &&
  8723. groupStudent[toolindex][gindex] &&
  8724. groupStudent[toolindex][gindex][4] &&
  8725. groupJson.islock == 2,
  8726. }"
  8727. ><span
  8728. class="updateChairBtn"
  8729. @click="
  8730. updateGroupChair(
  8731. groupStudent[toolindex][gindex] &&
  8732. groupStudent[toolindex][gindex][4]
  8733. )
  8734. "
  8735. >修改</span
  8736. ></span
  8737. ><span>{{
  8738. groupStudent[toolindex][gindex] &&
  8739. groupStudent[toolindex][gindex][4]
  8740. ? groupStudent[toolindex][gindex] &&
  8741. groupStudent[toolindex][gindex][4].name
  8742. : "空位置"
  8743. }}</span>
  8744. </div>
  8745. <div v-if="groupJson.number > 8">
  8746. <span
  8747. :class="{
  8748. isChair:
  8749. groupStudent[toolindex][gindex] &&
  8750. groupStudent[toolindex][gindex][8],
  8751. updateChair:
  8752. courseDetail.userid == userid &&
  8753. groupStudent[toolindex][gindex] &&
  8754. groupStudent[toolindex][gindex][8] &&
  8755. groupJson.islock == 2,
  8756. }"
  8757. ><span
  8758. class="updateChairBtn"
  8759. @click="
  8760. updateGroupChair(
  8761. groupStudent[toolindex][gindex] &&
  8762. groupStudent[toolindex][gindex][8]
  8763. )
  8764. "
  8765. >修改</span
  8766. ></span
  8767. ><span>{{
  8768. groupStudent[toolindex][gindex] &&
  8769. groupStudent[toolindex][gindex][8]
  8770. ? groupStudent[toolindex][gindex] &&
  8771. groupStudent[toolindex][gindex][8].name
  8772. : "空位置"
  8773. }}</span>
  8774. </div>
  8775. </div>
  8776. <div class="g_d_group_tableBox">
  8777. <div class="g_d_group_chair2">
  8778. <div v-if="groupJson.number > 2">
  8779. <span
  8780. :class="{
  8781. isChair:
  8782. groupStudent[toolindex][gindex] &&
  8783. groupStudent[toolindex][gindex][2],
  8784. updateChair:
  8785. courseDetail.userid == userid &&
  8786. groupStudent[toolindex][gindex] &&
  8787. groupStudent[toolindex][gindex][2] &&
  8788. groupJson.islock == 2,
  8789. }"
  8790. ><span
  8791. class="updateChairBtn"
  8792. @click="
  8793. updateGroupChair(
  8794. groupStudent[toolindex][gindex] &&
  8795. groupStudent[toolindex][gindex][2]
  8796. )
  8797. "
  8798. >修改</span
  8799. ></span
  8800. ><span>{{
  8801. groupStudent[toolindex][gindex] &&
  8802. groupStudent[toolindex][gindex][2]
  8803. ? groupStudent[toolindex][gindex] &&
  8804. groupStudent[toolindex][gindex][2].name
  8805. : "空位置"
  8806. }}</span>
  8807. </div>
  8808. <div v-if="groupJson.number > 6">
  8809. <span
  8810. :class="{
  8811. isChair:
  8812. groupStudent[toolindex][gindex] &&
  8813. groupStudent[toolindex][gindex][6],
  8814. updateChair:
  8815. courseDetail.userid == userid &&
  8816. groupStudent[toolindex][gindex] &&
  8817. groupStudent[toolindex][gindex][6] &&
  8818. groupJson.islock == 2,
  8819. }"
  8820. ><span
  8821. class="updateChairBtn"
  8822. @click="
  8823. updateGroupChair(
  8824. groupStudent[toolindex][gindex] &&
  8825. groupStudent[toolindex][gindex][6]
  8826. )
  8827. "
  8828. >修改</span
  8829. ></span
  8830. ><span>{{
  8831. groupStudent[toolindex][gindex] &&
  8832. groupStudent[toolindex][gindex][6]
  8833. ? groupStudent[toolindex][gindex] &&
  8834. groupStudent[toolindex][gindex][6].name
  8835. : "空位置"
  8836. }}</span>
  8837. </div>
  8838. </div>
  8839. <div class="g_d_group_table">
  8840. <div>
  8841. {{ g.name }}
  8842. </div>
  8843. <div>
  8844. <div
  8845. v-if="
  8846. courseDetail.userid == userid && groupJson.islock == 2
  8847. "
  8848. @click="deleteGroupChair(gindex)"
  8849. >
  8850. 移除组员
  8851. </div>
  8852. <div
  8853. @click="selectGroup(gindex)"
  8854. v-else-if="
  8855. groupStudentUid[toolindex] &&
  8856. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  8857. "
  8858. >
  8859. 加入分组
  8860. </div>
  8861. <div
  8862. @click="
  8863. exitGroup(
  8864. groupStudent[toolindex][gindex] &&
  8865. groupStudent[toolindex][gindex][
  8866. groupStudentUid[toolindex][gindex].indexOf(userid)
  8867. ].id
  8868. )
  8869. "
  8870. v-else-if="
  8871. groupStudentUid[toolindex] &&
  8872. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  8873. "
  8874. >
  8875. 退出分组
  8876. </div>
  8877. </div>
  8878. </div>
  8879. <div class="g_d_group_chair2">
  8880. <div v-if="groupJson.number > 3">
  8881. <span
  8882. :class="{
  8883. isChair:
  8884. groupStudent[toolindex][gindex] &&
  8885. groupStudent[toolindex][gindex][3],
  8886. updateChair:
  8887. courseDetail.userid == userid &&
  8888. groupStudent[toolindex][gindex] &&
  8889. groupStudent[toolindex][gindex][3] &&
  8890. groupJson.islock == 2,
  8891. }"
  8892. ><span
  8893. class="updateChairBtn"
  8894. @click="
  8895. updateGroupChair(
  8896. groupStudent[toolindex][gindex] &&
  8897. groupStudent[toolindex][gindex][3]
  8898. )
  8899. "
  8900. >修改</span
  8901. ></span
  8902. ><span>{{
  8903. groupStudent[toolindex][gindex] &&
  8904. groupStudent[toolindex][gindex][3]
  8905. ? groupStudent[toolindex][gindex] &&
  8906. groupStudent[toolindex][gindex][3].name
  8907. : "空位置"
  8908. }}</span>
  8909. </div>
  8910. <div v-if="groupJson.number > 7">
  8911. <span
  8912. :class="{
  8913. isChair:
  8914. groupStudent[toolindex][gindex] &&
  8915. groupStudent[toolindex][gindex][7],
  8916. updateChair:
  8917. courseDetail.userid == userid &&
  8918. groupStudent[toolindex][gindex] &&
  8919. groupStudent[toolindex][gindex][7] &&
  8920. groupJson.islock == 2,
  8921. }"
  8922. ><span
  8923. class="updateChairBtn"
  8924. @click="
  8925. updateGroupChair(
  8926. groupStudent[toolindex][gindex] &&
  8927. groupStudent[toolindex][gindex][7]
  8928. )
  8929. "
  8930. >修改</span
  8931. ></span
  8932. ><span>{{
  8933. groupStudent[toolindex][gindex] &&
  8934. groupStudent[toolindex][gindex][7]
  8935. ? groupStudent[toolindex][gindex] &&
  8936. groupStudent[toolindex][gindex][7].name
  8937. : "空位置"
  8938. }}</span>
  8939. </div>
  8940. </div>
  8941. </div>
  8942. <div class="g_d_group_chair">
  8943. <div v-if="groupJson.number > 1">
  8944. <span
  8945. :class="{
  8946. isChair:
  8947. groupStudent[toolindex][gindex] &&
  8948. groupStudent[toolindex][gindex][1],
  8949. updateChair:
  8950. courseDetail.userid == userid &&
  8951. groupStudent[toolindex][gindex] &&
  8952. groupStudent[toolindex][gindex][1] &&
  8953. groupJson.islock == 2,
  8954. }"
  8955. ><span
  8956. class="updateChairBtn"
  8957. @click="
  8958. updateGroupChair(
  8959. groupStudent[toolindex][gindex] &&
  8960. groupStudent[toolindex][gindex][1]
  8961. )
  8962. "
  8963. >修改</span
  8964. ></span
  8965. ><span>{{
  8966. groupStudent[toolindex][gindex] &&
  8967. groupStudent[toolindex][gindex][1]
  8968. ? groupStudent[toolindex][gindex] &&
  8969. groupStudent[toolindex][gindex][1].name
  8970. : "空位置"
  8971. }}</span>
  8972. </div>
  8973. <div v-if="groupJson.number > 5">
  8974. <span
  8975. :class="{
  8976. isChair:
  8977. groupStudent[toolindex][gindex] &&
  8978. groupStudent[toolindex][gindex][5],
  8979. updateChair:
  8980. courseDetail.userid == userid &&
  8981. groupStudent[toolindex][gindex] &&
  8982. groupStudent[toolindex][gindex][5] &&
  8983. groupJson.islock == 2,
  8984. }"
  8985. ><span
  8986. class="updateChairBtn"
  8987. @click="
  8988. updateGroupChair(
  8989. groupStudent[toolindex][gindex] &&
  8990. groupStudent[toolindex][gindex][5]
  8991. )
  8992. "
  8993. >修改</span
  8994. ></span
  8995. ><span>{{
  8996. groupStudent[toolindex][gindex] &&
  8997. groupStudent[toolindex][gindex][5]
  8998. ? groupStudent[toolindex][gindex] &&
  8999. groupStudent[toolindex][gindex][5].name
  9000. : "空位置"
  9001. }}</span>
  9002. </div>
  9003. <div v-if="groupJson.number > 9">
  9004. <span
  9005. :class="{
  9006. isChair:
  9007. groupStudent[toolindex][gindex] &&
  9008. groupStudent[toolindex][gindex][9],
  9009. updateChair:
  9010. courseDetail.userid == userid &&
  9011. groupStudent[toolindex][gindex] &&
  9012. groupStudent[toolindex][gindex][9] &&
  9013. groupJson.islock == 2,
  9014. }"
  9015. ><span
  9016. class="updateChairBtn"
  9017. @click="
  9018. updateGroupChair(
  9019. groupStudent[toolindex][gindex] &&
  9020. groupStudent[toolindex][gindex][9]
  9021. )
  9022. "
  9023. >修改</span
  9024. ></span
  9025. ><span>{{
  9026. groupStudent[toolindex][gindex] &&
  9027. groupStudent[toolindex][gindex][9]
  9028. ? groupStudent[toolindex][gindex] &&
  9029. groupStudent[toolindex][gindex][9].name
  9030. : "空位置"
  9031. }}</span>
  9032. </div>
  9033. </div>
  9034. </div>
  9035. </div>
  9036. </div>
  9037. </div>
  9038. <span slot="footer" class="dialog-footer">
  9039. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  9040. </span>
  9041. </el-dialog>
  9042. <el-dialog
  9043. title="分组设置"
  9044. :visible.sync="dialogVisibleGroup2"
  9045. :append-to-body="true"
  9046. width="650px"
  9047. :before-close="handleClose"
  9048. class="dialog_diy"
  9049. >
  9050. <div class="groupBox">
  9051. <div v-if="groupJson2.group" class="groupContent">
  9052. <div class="groupTitle">请设置小组数量</div>
  9053. <div
  9054. v-for="(item, index) in groupJson2.group"
  9055. :key="index"
  9056. class="groupName"
  9057. >
  9058. <span class="groupn">组{{ index + 1 }}名称:</span>
  9059. <el-input
  9060. v-model="item.name"
  9061. placeholder="请输入名称..."
  9062. style="width: 250px"
  9063. ></el-input>
  9064. <!-- <div class="groupBtn">
  9065. <el-button type="primary" size="small" @click="addGroup(index)">
  9066. 添加</el-button>
  9067. <el-button type="primary" size="small" @click="deleteGroup(index)"
  9068. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  9069. </div> -->
  9070. </div>
  9071. </div>
  9072. <div class="groupContent">
  9073. <div class="groupTitle">请设置每组人数数量</div>
  9074. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  9075. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  9076. <el-input-number
  9077. v-model="groupJson2.number"
  9078. :controls="false"
  9079. :min="2"
  9080. :max="10"
  9081. placeholder="2-10人以内"
  9082. ></el-input-number>
  9083. </div>
  9084. </div>
  9085. <span slot="footer" class="dialog-footer">
  9086. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  9087. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  9088. </span>
  9089. </el-dialog>
  9090. <el-dialog
  9091. title="作业提交"
  9092. :visible.sync="dialogVisibleGroupWork"
  9093. :append-to-body="true"
  9094. width="500px"
  9095. :before-close="handleClose"
  9096. class="dialog_change"
  9097. >
  9098. <div class="marginT">
  9099. <div>上传文件</div>
  9100. <div
  9101. class="chapter_add"
  9102. @click="addImg($event)"
  9103. v-if="studyJuri[0].cover.length == 0"
  9104. >
  9105. <div class="up_photo">
  9106. <img src="../assets/icon/uploadImg.png" alt />
  9107. </div>
  9108. <!-- <input
  9109. type="file"
  9110. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9111. style="display: none"
  9112. @change="beforeUpload1($event, 1)"
  9113. /> -->
  9114. <input
  9115. type="file"
  9116. accept="*"
  9117. style="display: none"
  9118. @change="beforeUpload1($event, 1)"
  9119. />
  9120. </div>
  9121. <!-- capture="camera" -->
  9122. <div
  9123. class="chapter_add"
  9124. style="
  9125. display: flex;
  9126. width: 100%;
  9127. flex-direction: row;
  9128. flex-wrap: wrap;
  9129. justify-content: flex-start;
  9130. padding: 15px 0;
  9131. "
  9132. v-if="studyJuri[0].cover.length > 0"
  9133. >
  9134. <div class="upCover">
  9135. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  9136. <img :src="word" alt v-else-if="fileType == 1" />
  9137. <img :src="video" alt v-else-if="fileType == 2" />
  9138. <img :src="word2" alt v-else-if="fileType == 3" />
  9139. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9140. <div class="deleteWord" @click="clean(1)">
  9141. <img src="../assets/icon/deleteWorks.png" alt />
  9142. </div>
  9143. </div>
  9144. </div>
  9145. </div>
  9146. <div
  9147. class="upload_send"
  9148. @click="addCourseWorks2(taskCount)"
  9149. v-if="!proVisible"
  9150. >
  9151. 提交
  9152. </div>
  9153. </el-dialog>
  9154. <el-dialog
  9155. title="修改分组"
  9156. :visible.sync="dialogVisibleUpdateGroup"
  9157. :append-to-body="true"
  9158. width="350px"
  9159. :before-close="handleClose"
  9160. class="dialog_diy"
  9161. >
  9162. <div>
  9163. <h2>
  9164. {{ this.updateGroupUser.name }}
  9165. </h2>
  9166. <div style="color: rgb(171 171 171); margin-top: 10px">
  9167. 请选择要进入的分组
  9168. </div>
  9169. <el-radio-group v-model="checkChair">
  9170. <el-radio
  9171. style="display: block; margin-top: 20px"
  9172. v-for="(item, index) in updateGroupArray"
  9173. :label="item.label"
  9174. :key="index"
  9175. >{{ item.name }}</el-radio
  9176. >
  9177. </el-radio-group>
  9178. </div>
  9179. <span slot="footer" class="dialog-footer">
  9180. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  9181. <el-button type="primary" @click="updateChair">确定</el-button>
  9182. </span>
  9183. </el-dialog>
  9184. <el-dialog
  9185. title="移除组员"
  9186. :visible.sync="dialogVisibleDeleteGroup"
  9187. :append-to-body="true"
  9188. width="350px"
  9189. :before-close="handleClose"
  9190. class="dialog_diy"
  9191. >
  9192. <div>
  9193. <h2>
  9194. {{ this.deleteGroupArray.name }}
  9195. </h2>
  9196. <div style="color: rgb(171 171 171); margin-top: 10px">
  9197. 请选择要删除的组员
  9198. </div>
  9199. <el-checkbox-group v-model="checkDeleteGroup">
  9200. <el-checkbox
  9201. style="display: block; margin-top: 20px"
  9202. v-for="(item, index) in deleteGroupUser"
  9203. :label="item.userid"
  9204. :key="index"
  9205. >{{ item.name }}</el-checkbox
  9206. >
  9207. </el-checkbox-group>
  9208. </div>
  9209. <span slot="footer" class="dialog-footer">
  9210. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  9211. <el-button type="primary" @click="deleteChair">确定</el-button>
  9212. </span>
  9213. </el-dialog>
  9214. <el-dialog
  9215. title="批量上传"
  9216. :visible.sync="dialogVisiblePl"
  9217. :append-to-body="true"
  9218. width="700px"
  9219. :before-close="handleClose"
  9220. class="dialog_change"
  9221. >
  9222. <div class="marginT">
  9223. <div class="plworkBox">
  9224. <div
  9225. class="chapter_add"
  9226. style="
  9227. display: flex;
  9228. width: 150px;
  9229. flex-direction: row;
  9230. flex-wrap: wrap;
  9231. justify-content: flex-start;
  9232. margin: 0 10px 10px 0;
  9233. "
  9234. v-for="(item, index) in plworkFile"
  9235. :key="index"
  9236. >
  9237. <div class="upCover2">
  9238. <img :src="item.url" alt v-if="item.fileType == 1" @click="previewImg(item.url)"/>
  9239. <img :src="word" alt v-else-if="item.fileType == 4" />
  9240. <img :src="video" alt v-else />
  9241. <!-- <span class="picName">{{ item.name }}</span> -->
  9242. <!-- <el-input
  9243. v-model="item.username"
  9244. placeholder="请输入学生名字"
  9245. style="margin-top: 10px"
  9246. ></el-input> -->
  9247. <el-select
  9248. style="margin-top: 10px"
  9249. v-model="item.username"
  9250. filterable
  9251. allow-create
  9252. placeholder="请选择学生"
  9253. >
  9254. <el-option
  9255. v-for="item1 in checkUpload()"
  9256. :key="item1.userid"
  9257. :label="item1.name ? item1.name : item1.username"
  9258. :value="item1.userid"
  9259. >
  9260. </el-option>
  9261. </el-select>
  9262. <div class="deleteWord" @click="clean2(index)">
  9263. <img src="../assets/icon/deleteWorks.png" alt />
  9264. </div>
  9265. </div>
  9266. </div>
  9267. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  9268. <div class="up_photo2">
  9269. <img src="../assets/icon/plwork.png" alt />
  9270. <span>点击上传文件</span>
  9271. </div>
  9272. <input
  9273. type="file"
  9274. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9275. multiple="multiple"
  9276. style="display: none"
  9277. @change="beforeUpload3($event, 6)"
  9278. />
  9279. </div>
  9280. </div>
  9281. </div>
  9282. <!-- capture="camera" -->
  9283. <div
  9284. class="upload_send"
  9285. @click="addCourseWorksPl(taskCount)"
  9286. v-if="!proVisible2"
  9287. >
  9288. 提交
  9289. </div>
  9290. </el-dialog>
  9291. <el-dialog
  9292. title="修改名称"
  9293. :visible.sync="dialogVisibleSname"
  9294. width="500px"
  9295. :before-close="handleClose"
  9296. class="dialog_diy"
  9297. center
  9298. >
  9299. <div style="text-align: center">
  9300. <span class="tian1">名称</span>
  9301. <el-select
  9302. v-model="worksSName"
  9303. filterable
  9304. allow-create
  9305. style="width: 250px; margin: 15px 0px"
  9306. placeholder="请选择学生"
  9307. >
  9308. <el-option
  9309. v-for="item in uploadStudentJuri"
  9310. :key="item.userid"
  9311. :label="item.name ? item.name : item.username"
  9312. :value="item.userid"
  9313. >
  9314. </el-option>
  9315. </el-select>
  9316. <!-- <el-input
  9317. v-model="worksSName"
  9318. style="width: 250px; margin: 15px 0px"
  9319. ></el-input> -->
  9320. </div>
  9321. <span slot="footer" class="dialog-footer">
  9322. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  9323. <el-button type="primary" @click="updateName">确 定</el-button>
  9324. </span>
  9325. </el-dialog>
  9326. <interVideo
  9327. :dialogVisibleVideo.sync="dialogVisibleVideo"
  9328. :videoJson="videoJson"
  9329. :userid="userid"
  9330. :id="id"
  9331. :courseType="courseType"
  9332. :taskCount="taskCount"
  9333. :toolindex="toolindex"
  9334. ></interVideo>
  9335. </div>
  9336. </template>
  9337. <script>
  9338. import "../common/aws-sdk-2.235.1.min.js";
  9339. // import pdf from "./components/pdf3";
  9340. import pdf from "./components/vpdf";
  9341. import AskStatic from "./components/askStatic";
  9342. import AskStatic2 from "./components/askStatic2";
  9343. import AnswerData2 from "./components/answerData2";
  9344. import AnswerData from "./components/answerData";
  9345. import EditorBar from "./tools/wangEnduit.vue";
  9346. import Table from "./tools/table.vue";
  9347. import Time from "./tools/time.vue";
  9348. import Mind from "./tools/jsmind.vue";
  9349. import Sunburst from "./tools/sunburst";
  9350. import SeeBoard from "./tools/seeBoard";
  9351. import * as imageConversion from "image-conversion";
  9352. import Audio from "./components/audio.vue";
  9353. import ImgDraw from "./tools/imgDraw/imgDraw";
  9354. import { Empty } from "element-ui";
  9355. import RecordRTC from "recordrtc";
  9356. import interVideo from "./interVideo/index.vue";
  9357. export default {
  9358. components: {
  9359. EditorBar,
  9360. Time,
  9361. pdf,
  9362. AskStatic,
  9363. AskStatic2,
  9364. Mind,
  9365. Sunburst,
  9366. SeeBoard,
  9367. AnswerData2,
  9368. AnswerData,
  9369. Audio,
  9370. ImgDraw,
  9371. Table,
  9372. interVideo,
  9373. },
  9374. data() {
  9375. return {
  9376. bg: null,
  9377. drawShow: false,
  9378. dialogVisible: false,
  9379. dialogVisiblePl: false,
  9380. commentDialogVisible: false,
  9381. videoVisible: false,
  9382. isStar: false,
  9383. studentEvalDialogVisible: false,
  9384. studentEvalDialogVisibleTeacher: false,
  9385. dialogVisibleSelect: false,
  9386. dialogVisibleSelectTeacher: false,
  9387. dialogVisibleScore: false,
  9388. dialogVisibleSentence: false,
  9389. dialogVisibleSentenceTeacher: false,
  9390. dialogVisibleSentence1: false,
  9391. dialogVisibleWorks: false,
  9392. dialogVisibleTable: false,
  9393. dialogVisibleTableTeacher: false,
  9394. dialogVisibleWord: false,
  9395. dialogVisibleWordTeacher: false,
  9396. dialogVisibleTable2: false,
  9397. dialogVisibleTable3: false,
  9398. dialogVisibleGroupWork: false,
  9399. dialogVisibleUpdateGroup: false,
  9400. dialogVisibleDeleteGroup: false,
  9401. dialogVisibleSname: false,
  9402. dialogVisibleVideo: false,
  9403. worksSName: "",
  9404. classJuri: [],
  9405. uploadStudentJuri: [],
  9406. uploadCid: "",
  9407. snameWid: "",
  9408. sStudent: {},
  9409. sTool: "",
  9410. bzText: "",
  9411. commentDetail: [],
  9412. selectAnswer: [],
  9413. videoDetail: {},
  9414. selectJson: {},
  9415. eScore: { eBzText: "", eStar: [] },
  9416. id: this.$route.query.courseId,
  9417. userid: this.$route.query.userid,
  9418. classId: this.$route.query.cid,
  9419. // courseTypeLine: this.$route.query.type,
  9420. oid: this.$route.query.oid,
  9421. org: this.$route.query.org,
  9422. tType: this.$route.query.tType,
  9423. courseType: this.$route.query.type,
  9424. screenType: this.$route.query.screenType,
  9425. tcid2: this.$route.query.tcid,
  9426. tcid: "",
  9427. pptImgUrl: "",
  9428. pptImgUrl1: "",
  9429. commentText: "",
  9430. full: false,
  9431. sIsOpen: false,
  9432. IsLookOpen: false,
  9433. IsFollow: false,
  9434. pzDialog: false,
  9435. contentDialog: false,
  9436. mlDialog: false,
  9437. type: 1,
  9438. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  9439. sentenceList1: [],
  9440. tableJson: [],
  9441. tableJsonO: [],
  9442. wordJson: [],
  9443. wordJsonO: [],
  9444. vedio: [],
  9445. text: [],
  9446. textList: [],
  9447. line: [],
  9448. lineList: [],
  9449. chapTools: [],
  9450. chapToolList: [],
  9451. file: [],
  9452. fileC: [],
  9453. vedioTime: [],
  9454. upToolImg: "",
  9455. preTime: 0,
  9456. rateList: {
  9457. ca: 0,
  9458. },
  9459. rateParams: [],
  9460. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  9461. studyJuri: [
  9462. {
  9463. content: "",
  9464. cover: [],
  9465. upVedio: [],
  9466. upFile: [],
  9467. },
  9468. ],
  9469. plworkFile: [],
  9470. mr: require("../assets/vedioPic.png"),
  9471. word: require("../assets/icon/isWord.png"),
  9472. word2: require("../assets/icon/word2.png"),
  9473. video: require("../assets/icon/isVideo.png"),
  9474. noLikes: require("../assets/icon/comment/noLikes.png"),
  9475. likes: require("../assets/icon/comment/likes.png"),
  9476. scoreImg: require("../assets/score.png"),
  9477. courseDetail: {},
  9478. isSelect: false,
  9479. chapInfo: [],
  9480. chapInfoList: [],
  9481. taskCount: 0,
  9482. imgList: [],
  9483. noImgList: [],
  9484. pzList: [],
  9485. PlTextList: [
  9486. "Excellent!",
  9487. "nice!",
  9488. "很有创意!",
  9489. "还不错哦~",
  9490. "继续努力哦~",
  9491. ],
  9492. isClickNav: "",
  9493. navId: "",
  9494. playerOptions: {
  9495. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  9496. autoplay: false, //如果true,浏览器准备好时开始回放。
  9497. muted: false, // 默认情况下将会消除任何音频。
  9498. loop: false, // 导致视频一结束就重新开始。
  9499. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  9500. language: "zh-CN",
  9501. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  9502. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  9503. sources: [
  9504. {
  9505. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  9506. src: "", //url地址require("../../assets/media/aaa.mp4")
  9507. },
  9508. ],
  9509. // poster: require("../../assets/tu31.png"), //你的封面地址
  9510. // poster: dataRes.imgUrl, //你的封面地址
  9511. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  9512. controlBar: {
  9513. timeDivider: true, //当前时间和持续时间的分隔符
  9514. durationDisplay: true, //显示持续时间
  9515. remainingTimeDisplay: false, //是否显示剩余时间功能
  9516. fullscreenToggle: true, //全屏按钮
  9517. },
  9518. },
  9519. playerOptions1: {
  9520. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  9521. autoplay: false, //如果true,浏览器准备好时开始回放。
  9522. muted: false, // 默认情况下将会消除任何音频。
  9523. loop: false, // 导致视频一结束就重新开始。
  9524. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  9525. language: "zh-CN",
  9526. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  9527. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  9528. sources: [
  9529. {
  9530. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  9531. src: "", //url地址require("../../assets/media/aaa.mp4")
  9532. },
  9533. ],
  9534. // poster: require("../../assets/tu31.png"), //你的封面地址
  9535. // poster: dataRes.imgUrl, //你的封面地址
  9536. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  9537. controlBar: {
  9538. timeDivider: true, //当前时间和持续时间的分隔符
  9539. durationDisplay: true, //显示持续时间
  9540. remainingTimeDisplay: false, //是否显示剩余时间功能
  9541. fullscreenToggle: true, //全屏按钮
  9542. },
  9543. },
  9544. playerO: {},
  9545. noneBtnImg: false,
  9546. proVisible: false,
  9547. proVisible2: false,
  9548. progress: 0,
  9549. isFinishSize: 0,
  9550. isAllSize: 0,
  9551. questionAnswer: "",
  9552. answerQ: "", //问答标题
  9553. rateJson: [],
  9554. wbCount: 0,
  9555. wordCount: 0,
  9556. mindCount: 0,
  9557. askCount: 0,
  9558. noteCount: 0,
  9559. mindNetWorkCount: 0,
  9560. libraryCount: 0,
  9561. workCount: 0,
  9562. timeCount: 0,
  9563. answerCount: 0,
  9564. trainCount: 0,
  9565. evalCount: 0,
  9566. dialogImageUrl: "",
  9567. pictureDialog: false,
  9568. toolTypeList: [],
  9569. dialogVisible1: false,
  9570. dialogVisible2: false,
  9571. dialogVisible3: false,
  9572. dialogVisible6: false,
  9573. dialogVisible4: false,
  9574. isNoHomeWork: false,
  9575. dialogVisible5: false,
  9576. dialogVisible5Teacher: false,
  9577. dialogVisibleChoice: false,
  9578. dialogVisibleChoiceTeacher: false,
  9579. answerDialogVisible: false,
  9580. answerDialogVisibleTeacher: false,
  9581. juriVisible: false,
  9582. timeDialogVisible: false,
  9583. radio: [],
  9584. isAsk: false,
  9585. askJson: {
  9586. askCount: 1,
  9587. askTitle: "",
  9588. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9589. },
  9590. testJson: {},
  9591. checkJson: [],
  9592. askList: [],
  9593. answerList: [],
  9594. navList: [],
  9595. addPzDialog: false,
  9596. pzConText: "",
  9597. worksStudent: [],
  9598. isCloseList: [],
  9599. workStudent: [],
  9600. groupStudent: [],
  9601. groupStudentUid: [],
  9602. noWorksS: [],
  9603. isWorksS: [],
  9604. noWorksStudent: [],
  9605. toolindex: 0,
  9606. groupIndex: 0,
  9607. workTypeB: false,
  9608. workTypeC: false,
  9609. isAnswer: false,
  9610. timer: null,
  9611. opertimer: null,
  9612. showType: 0,
  9613. fileType: 0,
  9614. showPDF: false,
  9615. noteName: "",
  9616. evaJuri: [],
  9617. evalua: "",
  9618. eTitle: "",
  9619. eName: "",
  9620. eJson: {},
  9621. fid: "", //一级
  9622. sid: "", //二级
  9623. tid: "", //二级
  9624. typeMode: 1,
  9625. eJSONNum: 0,
  9626. Etype: 1,
  9627. data: {
  9628. meta: {
  9629. name: "example",
  9630. author: "dd@163.com",
  9631. version: "0.2",
  9632. },
  9633. format: "node_array",
  9634. data: [{ id: "root", isroot: true, topic: "" }],
  9635. },
  9636. fullDialogVisible: false,
  9637. fulltype: "",
  9638. fullUrl: "",
  9639. commentIndexJson: {},
  9640. Stbodywidth: 0,
  9641. ispzType: 0,
  9642. pzType: 1,
  9643. wScore: 0,
  9644. scoreDetail: "",
  9645. videoStart: false,
  9646. recorder: null,
  9647. groupJson: {},
  9648. islock: false,
  9649. groupJson2: {},
  9650. dialogVisibleGroup: false,
  9651. dialogVisibleGroup2: false,
  9652. updateGroupArray: [],
  9653. updateGroupUser: {},
  9654. deleteGroupUser: [],
  9655. deleteGroupArray: {},
  9656. checkChair: "",
  9657. checkDeleteGroup: [],
  9658. inviteCode: "",
  9659. courseGroupStudent: [],
  9660. courseGroupStudentUid: [],
  9661. courseGroup: {},
  9662. isGroup: false,
  9663. videoJson: {},
  9664. };
  9665. },
  9666. methods: {
  9667. jump() {
  9668. window.parent.postMessage({ tools: "43" }, "*");
  9669. },
  9670. previewImg(url) {
  9671. this.$hevueImgPreview(url);
  9672. },
  9673. change(val) {
  9674. console.log(val);
  9675. },
  9676. goTo(path) {
  9677. this.$router.push(path);
  9678. },
  9679. handlePictureCardPreview(url) {
  9680. this.dialogImageUrl = url;
  9681. this.pictureDialog = true;
  9682. },
  9683. clean(type) {
  9684. if (type == 1) {
  9685. this.studyJuri[0].cover.splice(0, 1);
  9686. } else if (type == 2) {
  9687. this.studyJuri[0].upVedio.splice(0, 1);
  9688. } else {
  9689. this.studyJuri[0].upFile.splice(0, 1);
  9690. }
  9691. },
  9692. clean2(index) {
  9693. this.plworkFile.splice(index, 1);
  9694. },
  9695. handleClose(done) {
  9696. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  9697. this.videoDetail.sources[0].src = "";
  9698. }
  9699. this.commentIndexJson = {};
  9700. done();
  9701. },
  9702. fullTools() {
  9703. this.full = !this.full;
  9704. },
  9705. imgChange(file, fileList, type) {
  9706. if (type == 1) {
  9707. var _tmp = this.studyJuri[0].cover;
  9708. } else if (type == 2) {
  9709. var _tmp = this.studyJuri[0].upVedio;
  9710. } else {
  9711. var _tmp = this.studyJuri[0].upFile;
  9712. }
  9713. this.noneBtnImg = _tmp.length >= 1;
  9714. },
  9715. setContent(bool) {
  9716. this.contentDialog = bool;
  9717. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  9718. document.querySelector(".workd_media").style.height = "650px";
  9719. } else if (document.querySelector(".workd_media")) {
  9720. document.querySelector(".workd_media").style.height = "auto";
  9721. }
  9722. },
  9723. setContent2(bool) {
  9724. this.mlDialog = bool;
  9725. if (
  9726. bool &&
  9727. this.contentDialog &&
  9728. document.querySelector(".workd_media")
  9729. ) {
  9730. document.querySelector(".workd_media").style.height = "650px";
  9731. } else if (document.querySelector(".workd_media")) {
  9732. document.querySelector(".workd_media").style.height = "auto";
  9733. }
  9734. },
  9735. addImg(e) {
  9736. var el = e.currentTarget;
  9737. // this.$message.success('触发上传')
  9738. el.getElementsByTagName("input")[0].click();
  9739. e.target.value = "";
  9740. },
  9741. addSelectAnswer() {
  9742. let params = [
  9743. {
  9744. uid: this.userid,
  9745. cid: this.id,
  9746. stage: this.courseType,
  9747. task: this.taskCount,
  9748. tool: this.toolindex,
  9749. content: this.selectAnswer.answer,
  9750. type: 7,
  9751. },
  9752. ];
  9753. this.ajax
  9754. .post(this.$store.state.api + "addCourseWorks", params)
  9755. .then((res) => {
  9756. this.$message({
  9757. message: "提交成功",
  9758. type: "success",
  9759. });
  9760. this.dialogVisibleSelect = false;
  9761. // this.selectAnswer = {};
  9762. this.selectSWorks();
  9763. this.selectStudent();
  9764. })
  9765. .catch((err) => {
  9766. this.$message.error("提交失败");
  9767. console.error(err);
  9768. });
  9769. },
  9770. addSelectAnswerTeacher() {
  9771. let params = [
  9772. {
  9773. uid: this.sStudent.userid,
  9774. cid: this.id,
  9775. stage: this.courseType,
  9776. task: this.taskCount,
  9777. tool: this.toolindex,
  9778. content: this.selectAnswer.answer,
  9779. type: 7,
  9780. },
  9781. ];
  9782. this.ajax
  9783. .post(this.$store.state.api + "addCourseWorks", params)
  9784. .then((res) => {
  9785. this.$message({
  9786. message: "提交成功",
  9787. type: "success",
  9788. });
  9789. this.dialogVisibleSelectTeacher = false;
  9790. // this.selectAnswer = {};
  9791. this.selectSWorks();
  9792. this.selectStudent();
  9793. })
  9794. .catch((err) => {
  9795. this.$message.error("提交失败");
  9796. console.error(err);
  9797. });
  9798. },
  9799. addSenWorks() {
  9800. for (var i = 0; i < this.sentenceList.length; i++) {
  9801. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  9802. if (
  9803. this.sentenceList[i].chooseSenList[j] == undefined ||
  9804. this.sentenceList[i].chooseSenList[j] == ""
  9805. ) {
  9806. this.$message.error("请将答案填写完整!");
  9807. return;
  9808. }
  9809. }
  9810. }
  9811. let params = [
  9812. {
  9813. uid: this.userid,
  9814. cid: this.id,
  9815. stage: this.courseType,
  9816. task: this.taskCount,
  9817. tool: this.toolindex,
  9818. content: JSON.stringify(this.sentenceList),
  9819. type: 9,
  9820. },
  9821. ];
  9822. this.ajax
  9823. .post(this.$store.state.api + "addCourseWorks", params)
  9824. .then((res) => {
  9825. this.$message({
  9826. message: "提交成功",
  9827. type: "success",
  9828. });
  9829. this.dialogVisibleSentence = false;
  9830. // this.selectAnswer = {};
  9831. this.selectSWorks();
  9832. this.selectStudent();
  9833. })
  9834. .catch((err) => {
  9835. this.$message.error("提交失败");
  9836. console.error(err);
  9837. });
  9838. },
  9839. addSenWorksTeacher() {
  9840. for (var i = 0; i < this.sentenceList.length; i++) {
  9841. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  9842. if (
  9843. this.sentenceList[i].chooseSenList[j] == undefined ||
  9844. this.sentenceList[i].chooseSenList[j] == ""
  9845. ) {
  9846. this.$message.error("请将答案填写完整!");
  9847. return;
  9848. }
  9849. }
  9850. }
  9851. let params = [
  9852. {
  9853. uid: this.sStudent.userid,
  9854. cid: this.id,
  9855. stage: this.courseType,
  9856. task: this.taskCount,
  9857. tool: this.toolindex,
  9858. content: JSON.stringify(this.sentenceList),
  9859. type: 9,
  9860. },
  9861. ];
  9862. this.ajax
  9863. .post(this.$store.state.api + "addCourseWorks", params)
  9864. .then((res) => {
  9865. this.$message({
  9866. message: "提交成功",
  9867. type: "success",
  9868. });
  9869. this.dialogVisibleSentenceTeacher = false;
  9870. // this.selectAnswer = {};
  9871. this.selectSWorks();
  9872. this.selectStudent();
  9873. })
  9874. .catch((err) => {
  9875. this.$message.error("提交失败");
  9876. console.error(err);
  9877. });
  9878. },
  9879. returnTableText() {
  9880. this.$confirm("确定还原此模板吗?", "提示", {
  9881. confirmButtonText: "确定",
  9882. cancelButtonText: "取消",
  9883. type: "warning",
  9884. })
  9885. .then(() => {
  9886. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  9887. })
  9888. .catch(() => {});
  9889. },
  9890. addTableWorks() {
  9891. let params = [
  9892. {
  9893. uid: this.userid,
  9894. cid: this.id,
  9895. stage: this.courseType,
  9896. task: this.taskCount,
  9897. tool: this.toolindex,
  9898. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  9899. type: 10,
  9900. },
  9901. ];
  9902. this.ajax
  9903. .post(this.$store.state.api + "addCourseWorks", params)
  9904. .then((res) => {
  9905. this.$message({
  9906. message: "提交成功",
  9907. type: "success",
  9908. });
  9909. this.dialogVisibleTable = false;
  9910. // this.selectAnswer = {};
  9911. this.selectSWorks();
  9912. this.selectStudent();
  9913. })
  9914. .catch((err) => {
  9915. this.$message.error("提交失败");
  9916. console.error(err);
  9917. });
  9918. },
  9919. addTableWorksTeacher() {
  9920. let params = [
  9921. {
  9922. uid: this.sStudent.userid,
  9923. cid: this.id,
  9924. stage: this.courseType,
  9925. task: this.taskCount,
  9926. tool: this.toolindex,
  9927. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  9928. type: 10,
  9929. },
  9930. ];
  9931. this.ajax
  9932. .post(this.$store.state.api + "addCourseWorks", params)
  9933. .then((res) => {
  9934. this.$message({
  9935. message: "提交成功",
  9936. type: "success",
  9937. });
  9938. this.dialogVisibleTableTeacher = false;
  9939. // this.selectAnswer = {};
  9940. this.selectSWorks();
  9941. this.selectStudent();
  9942. })
  9943. .catch((err) => {
  9944. this.$message.error("提交失败");
  9945. console.error(err);
  9946. });
  9947. },
  9948. returnWordText() {
  9949. this.$confirm("确定还原此模板吗?", "提示", {
  9950. confirmButtonText: "确定",
  9951. cancelButtonText: "取消",
  9952. type: "warning",
  9953. })
  9954. .then(() => {
  9955. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  9956. })
  9957. .catch(() => {});
  9958. },
  9959. addWordWorks() {
  9960. let params = [
  9961. {
  9962. uid: this.userid,
  9963. cid: this.id,
  9964. stage: this.courseType,
  9965. task: this.taskCount,
  9966. tool: this.toolindex,
  9967. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  9968. type: 13,
  9969. atool: 52,
  9970. },
  9971. ];
  9972. console.log(params);
  9973. this.ajax
  9974. .post(this.$store.state.api + "addCourseWorks3-2", params)
  9975. .then((res) => {
  9976. this.$message({
  9977. message: "提交成功",
  9978. type: "success",
  9979. });
  9980. this.dialogVisibleWord = false;
  9981. // this.selectAnswer = {};
  9982. this.selectSWorks();
  9983. this.selectStudent();
  9984. })
  9985. .catch((err) => {
  9986. this.$message.error("提交失败");
  9987. console.error(err);
  9988. });
  9989. },
  9990. addWordWorksTeacher() {
  9991. let params = [
  9992. {
  9993. uid: this.sStudent.userid,
  9994. cid: this.id,
  9995. stage: this.courseType,
  9996. task: this.taskCount,
  9997. tool: this.toolindex,
  9998. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  9999. type: 13,
  10000. atool: 52,
  10001. },
  10002. ];
  10003. console.log(params);
  10004. this.ajax
  10005. .post(this.$store.state.api + "addCourseWorks3-2", params)
  10006. .then((res) => {
  10007. this.$message({
  10008. message: "提交成功",
  10009. type: "success",
  10010. });
  10011. this.dialogVisibleWordTeacher = false;
  10012. // this.selectAnswer = {};
  10013. this.selectSWorks();
  10014. this.selectStudent();
  10015. })
  10016. .catch((err) => {
  10017. this.$message.error("提交失败");
  10018. console.error(err);
  10019. });
  10020. },
  10021. addCourseWorks(i) {
  10022. var typesql;
  10023. if (this.fileType === 0) {
  10024. typesql = 1;
  10025. } else if (this.fileType === 1) {
  10026. typesql = 4;
  10027. } else if (this.fileType === 2) {
  10028. typesql = 5;
  10029. } else if (this.fileType === 3) {
  10030. typesql = 12;
  10031. }
  10032. if (!this.studyJuri[0].cover[0].url) {
  10033. this.$message.error("请上传文件");
  10034. return;
  10035. }
  10036. let params = [
  10037. {
  10038. uid: this.userid,
  10039. cid: this.id,
  10040. stage: this.courseType,
  10041. task: i,
  10042. tool: this.toolindex,
  10043. content: this.studyJuri[0].cover[0].url,
  10044. type: typesql,
  10045. },
  10046. ];
  10047. this.ajax
  10048. .post(this.$store.state.api + "addCourseWorksR", params)
  10049. .then((res) => {
  10050. this.$message({
  10051. message: "提交成功",
  10052. type: "success",
  10053. });
  10054. this.studyJuri[0].cover = [];
  10055. this.dialogVisible = false;
  10056. this.getCourseDetail(2);
  10057. })
  10058. .catch((err) => {
  10059. this.$message.error("提交失败");
  10060. console.error(err);
  10061. });
  10062. },
  10063. addCourseWorksPl(i) {
  10064. let _files = this.plworkFile;
  10065. var c = 1;
  10066. for (var k = 0; k < _files.length; k++) {
  10067. if (!_files[k].username) {
  10068. c = 2;
  10069. }
  10070. }
  10071. if (c == 2) {
  10072. this.$message.error("请填写学生姓名");
  10073. return;
  10074. }
  10075. let params = [
  10076. {
  10077. ateacher: this.userid,
  10078. cid: this.id,
  10079. stage: this.courseType,
  10080. task: i,
  10081. tool: this.toolindex,
  10082. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  10083. },
  10084. ];
  10085. this.ajax
  10086. .post(this.$store.state.api + "addCourseWorksPl", params)
  10087. .then((res) => {
  10088. this.$message({
  10089. message: "提交成功",
  10090. type: "success",
  10091. });
  10092. this.plworkFile = [];
  10093. this.dialogVisiblePl = false;
  10094. this.getCourseDetail(2);
  10095. })
  10096. .catch((err) => {
  10097. this.$message.error("提交失败");
  10098. console.error(err);
  10099. });
  10100. },
  10101. addCourseWorks2(i) {
  10102. var typesql;
  10103. if (this.fileType === 0) {
  10104. typesql = 0;
  10105. } else if (this.fileType === 1) {
  10106. typesql = 1;
  10107. } else if (this.fileType === 2) {
  10108. typesql = 3;
  10109. } else if (this.fileType === 3) {
  10110. typesql = 12;
  10111. }
  10112. if (!this.studyJuri[0].cover[0].url) {
  10113. this.$message.error("请上传文件");
  10114. return;
  10115. }
  10116. let params = [
  10117. {
  10118. uid: this.userid,
  10119. cid: this.id,
  10120. stage: this.courseType,
  10121. task: i,
  10122. tool: this.toolindex,
  10123. content: JSON.stringify({
  10124. type: typesql,
  10125. groupIndex: this.groupIndex,
  10126. url: this.studyJuri[0].cover[0].url,
  10127. }).replaceAll(/%/g, "%25"),
  10128. type: 11,
  10129. atool: 49,
  10130. text: "",
  10131. },
  10132. ];
  10133. this.ajax
  10134. .post(this.$store.state.api + "addCourseWorks5", params)
  10135. .then((res) => {
  10136. this.$message({
  10137. message: "提交成功",
  10138. type: "success",
  10139. });
  10140. this.studyJuri[0].cover = [];
  10141. this.dialogVisibleGroupWork = false;
  10142. this.getCourseDetail(2);
  10143. })
  10144. .catch((err) => {
  10145. this.$message.error("提交失败");
  10146. console.error(err);
  10147. });
  10148. },
  10149. addCourseWorksGong(i, data, tool) {
  10150. let params = [
  10151. {
  10152. uid: this.userid,
  10153. cid: this.id,
  10154. stage: this.courseType,
  10155. task: this.taskCount,
  10156. tool: i,
  10157. content: data,
  10158. type: 12,
  10159. atool: tool,
  10160. text: "",
  10161. },
  10162. ];
  10163. this.ajax
  10164. .post(this.$store.state.api + "addCourseWorks5", params)
  10165. .then((res) => {
  10166. this.$message({
  10167. message: "提交成功",
  10168. type: "success",
  10169. });
  10170. this.studyJuri[0].cover = [];
  10171. this.selectSWorks();
  10172. this.selectStudent();
  10173. })
  10174. .catch((err) => {
  10175. this.$message.error("提交失败");
  10176. console.error(err);
  10177. });
  10178. },
  10179. addCourseWorksGongTeacher(i, data, tool) {
  10180. let params = [
  10181. {
  10182. uid: this.sStudent.userid,
  10183. cid: this.id,
  10184. stage: this.courseType,
  10185. task: this.taskCount,
  10186. tool: i,
  10187. content: data,
  10188. type: 12,
  10189. atool: tool,
  10190. text: "",
  10191. },
  10192. ];
  10193. this.ajax
  10194. .post(this.$store.state.api + "addCourseWorks5", params)
  10195. .then((res) => {
  10196. this.$message({
  10197. message: "提交成功",
  10198. type: "success",
  10199. });
  10200. this.studyJuri[0].cover = [];
  10201. this.dialogVisibleWorks = false;
  10202. this.selectSWorks();
  10203. this.selectStudent();
  10204. })
  10205. .catch((err) => {
  10206. this.$message.error("提交失败");
  10207. console.error(err);
  10208. });
  10209. },
  10210. addCourseWorksGongPl(i, data, tool, type) {
  10211. let params = [
  10212. {
  10213. uid: this.sStudent.userid,
  10214. cid: this.id,
  10215. stage: this.courseType,
  10216. task: this.taskCount,
  10217. tool: i,
  10218. content: data,
  10219. type: type,
  10220. atool: tool,
  10221. text: "",
  10222. },
  10223. ];
  10224. this.ajax
  10225. .post(this.$store.state.api + "addCourseWorks5", params)
  10226. .then((res) => {
  10227. this.$message({
  10228. message: "提交成功",
  10229. type: "success",
  10230. });
  10231. this.studyJuri[0].cover = [];
  10232. this.dialogVisibleWorks = false;
  10233. this.selectSWorks();
  10234. this.selectStudent();
  10235. })
  10236. .catch((err) => {
  10237. this.$message.error("提交失败");
  10238. console.error(err);
  10239. });
  10240. },
  10241. addCourseWorksTeacher(i) {
  10242. var typesql;
  10243. if (this.sTool == 32 || this.sTool == 57) {
  10244. this.addCourseWorksGongTeacher(
  10245. this.toolindex,
  10246. this.studyJuri[0].cover[0].url,
  10247. this.sTool
  10248. );
  10249. return;
  10250. }
  10251. if (this.fileType === 0) {
  10252. typesql = 1;
  10253. } else if (this.fileType === 1) {
  10254. typesql = 4;
  10255. } else if (this.fileType === 2) {
  10256. typesql = 5;
  10257. } else if (this.fileType === 3) {
  10258. typesql = 12;
  10259. }
  10260. if (this.sTool == 50) {
  10261. this.addCourseWorksGongPl(
  10262. this.toolindex,
  10263. this.studyJuri[0].cover[0].url,
  10264. this.sTool,
  10265. typesql
  10266. );
  10267. return;
  10268. }
  10269. if (!this.studyJuri[0].cover[0].url) {
  10270. this.$message.error("请上传文件");
  10271. return;
  10272. }
  10273. let params = [
  10274. {
  10275. uid: this.sStudent.userid,
  10276. cid: this.id,
  10277. stage: this.courseType,
  10278. task: i,
  10279. tool: this.toolindex,
  10280. content: this.studyJuri[0].cover[0].url,
  10281. type: typesql,
  10282. ateacher: this.userid,
  10283. },
  10284. ];
  10285. this.ajax
  10286. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  10287. .then((res) => {
  10288. this.$message({
  10289. message: "提交成功",
  10290. type: "success",
  10291. });
  10292. this.studyJuri[0].cover = [];
  10293. this.dialogVisibleWorks = false;
  10294. this.getCourseDetail(2);
  10295. })
  10296. .catch((err) => {
  10297. this.$message.error("提交失败");
  10298. console.error(err);
  10299. });
  10300. },
  10301. selectUploadStudent() {
  10302. let params = {
  10303. cid: this.uploadCid,
  10304. oid: this.oid,
  10305. cn: "",
  10306. };
  10307. this.ajax
  10308. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  10309. .then((res) => {
  10310. var studentK = [];
  10311. if (this.isWorksS[this.toolindex].length > 0) {
  10312. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  10313. studentK.push(this.isWorksS[this.toolindex][z].uid);
  10314. }
  10315. studentK = studentK.join(",");
  10316. }
  10317. this.uploadStudentJuri = res.data[0].filter((el) => {
  10318. return studentK.indexOf(el.userid) == -1;
  10319. });
  10320. })
  10321. .catch((err) => {
  10322. console.error(err);
  10323. });
  10324. },
  10325. arrayToArray(arrayo, arrayt) {
  10326. let array1 = arrayo;
  10327. let array2 = arrayt;
  10328. let commonElements = [];
  10329. for (let i = 0; i < array1.length; i++) {
  10330. for (let j = 0; j < array2.length; j++) {
  10331. if (array1[i] === array2[j]) {
  10332. commonElements.push(array1[i]);
  10333. }
  10334. }
  10335. }
  10336. return commonElements;
  10337. },
  10338. selectWorksStudent() {
  10339. let params = {
  10340. oid: this.oid,
  10341. cid: this.courseDetail.juri,
  10342. };
  10343. this.ajax
  10344. .get(this.$store.state.api + "selectWorksStudent", params)
  10345. .then((res) => {
  10346. var a = res.data[0];
  10347. for (var i = 0; i < this.isWorksS.length; i++) {
  10348. this.noWorksS[i] = [];
  10349. var studentK = [];
  10350. if (this.isWorksS[i].length > 0) {
  10351. for (var z = 0; z < this.isWorksS[i].length; z++) {
  10352. studentK.push(this.isWorksS[i][z].uid);
  10353. }
  10354. studentK = studentK.join(",");
  10355. for (var j = 0; j < a.length; j++) {
  10356. if (studentK.indexOf(a[j].userid) == -1) {
  10357. if (this.tcid) {
  10358. // a[j].classid.indexOf(this.tcid) != -1
  10359. if (
  10360. this.arrayToArray(
  10361. a[j].classid.split(","),
  10362. this.tcid.split(",")
  10363. ).length
  10364. ) {
  10365. this.noWorksS[i].push({
  10366. student: a[j].name,
  10367. userid: a[j].userid,
  10368. });
  10369. }
  10370. } else {
  10371. this.noWorksS[i].push({
  10372. student: a[j].name,
  10373. userid: a[j].userid,
  10374. });
  10375. }
  10376. }
  10377. }
  10378. } else {
  10379. for (var k = 0; k < a.length; k++) {
  10380. if (this.tcid) {
  10381. if (
  10382. this.arrayToArray(
  10383. a[k].classid.split(","),
  10384. this.tcid.split(",")
  10385. ).length
  10386. ) {
  10387. this.noWorksS[i].push({
  10388. student: a[k].name,
  10389. userid: a[k].userid,
  10390. });
  10391. }
  10392. } else {
  10393. this.noWorksS[i].push({
  10394. student: a[k].name,
  10395. userid: a[k].userid,
  10396. });
  10397. }
  10398. }
  10399. }
  10400. }
  10401. this.$forceUpdate();
  10402. if (
  10403. Object.keys(this.commentDetail).length &&
  10404. Object.keys(this.commentIndexJson).length &&
  10405. !this.dialogVisibleScore
  10406. ) {
  10407. let a = 1;
  10408. let c = this.commentIndexJson;
  10409. console.log(c);
  10410. if (
  10411. this.commentIndexJson.gindex ||
  10412. this.commentIndexJson.gindex === 0
  10413. ) {
  10414. for (
  10415. var i = 0;
  10416. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  10417. i++
  10418. ) {
  10419. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  10420. groupA: for (var k = 0; k < _el.length; k++) {
  10421. let el = _el[k];
  10422. if (el.wid == this.commentDetail.wid) {
  10423. a = 2;
  10424. this.commentOther(
  10425. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  10426. this.commentIndexJson.toolIndex,
  10427. k,
  10428. this.commentIndexJson.gindex
  10429. );
  10430. break groupA;
  10431. }
  10432. }
  10433. }
  10434. if (a === 1) {
  10435. this.commentDetail = [];
  10436. this.commentIndexJson = {};
  10437. this.commentDialogVisible = false;
  10438. this.$message("此作业已被删除");
  10439. }
  10440. } else {
  10441. if (this.isGroup && this.commentIndexJson.gid) {
  10442. groupA: for (
  10443. var i = 0;
  10444. i < this.courseGroup.group.length;
  10445. i++
  10446. ) {
  10447. let _group = this.courseGroup.group[i];
  10448. if (_group.id == this.commentIndexJson.gid) {
  10449. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  10450. for (var k = 0; k < _el2.length; k++) {
  10451. let el2 = _el2[k];
  10452. if (el2.wid == this.commentDetail.wid) {
  10453. a = 2;
  10454. this.commentOther(
  10455. _el2[k],
  10456. this.commentIndexJson.toolIndex,
  10457. k,
  10458. null,
  10459. this.commentIndexJson.gid
  10460. );
  10461. break groupA;
  10462. }
  10463. }
  10464. }
  10465. }
  10466. }
  10467. if (a == 1) {
  10468. for (
  10469. var i = 0;
  10470. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  10471. i++
  10472. ) {
  10473. let el =
  10474. this.worksStudent[this.commentIndexJson.toolIndex][i];
  10475. if (el.wid == this.commentDetail.wid) {
  10476. a = 2;
  10477. this.commentOther(
  10478. this.worksStudent[this.commentIndexJson.toolIndex][i],
  10479. this.commentIndexJson.toolIndex,
  10480. i
  10481. );
  10482. break;
  10483. }
  10484. }
  10485. }
  10486. if (a === 1) {
  10487. this.commentDetail = [];
  10488. this.commentIndexJson = {};
  10489. this.commentDialogVisible = false;
  10490. this.$message("此作业已被删除");
  10491. }
  10492. }
  10493. }
  10494. })
  10495. .catch((err) => {
  10496. console.error(err);
  10497. });
  10498. },
  10499. selectStudent() {
  10500. //学生查看自己作业
  10501. let params = {
  10502. uid: this.userid,
  10503. cid: this.id,
  10504. s: this.courseType,
  10505. t: this.taskCount,
  10506. };
  10507. this.ajax
  10508. .get(this.$store.state.api + "selectStudentWorks", params)
  10509. .then((res) => {
  10510. var a =
  10511. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10512. this.taskCount
  10513. ].toolChoose;
  10514. var b = res.data[0];
  10515. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  10516. var y = [
  10517. "AVI",
  10518. "NAVI",
  10519. "MPEG",
  10520. "ASF",
  10521. "MOV",
  10522. "WMV",
  10523. "3GP",
  10524. "RM",
  10525. "RMVB",
  10526. "FLV",
  10527. "F4V",
  10528. "H.264",
  10529. "H.265",
  10530. "REAL VIDEO",
  10531. "MKV",
  10532. "WebM",
  10533. "HDDVD",
  10534. "MP4",
  10535. "MPG",
  10536. "M4V",
  10537. "MGV",
  10538. "OGV",
  10539. "QTM",
  10540. "STR",
  10541. "AMC",
  10542. "DVX",
  10543. "EVO",
  10544. "DAT",
  10545. "OGG",
  10546. "OGM",
  10547. ];
  10548. for (var i = 0; i < a.length; i++) {
  10549. this.workStudent[i] = [];
  10550. for (var j = 0; j < b.length; j++) {
  10551. if (i == b[j].tool) {
  10552. if (
  10553. (b[j].type == 1 ||
  10554. b[j].type == 4 ||
  10555. b[j].type == 5 ||
  10556. b[j].type == 6 ||
  10557. b[j].type == 12 ||
  10558. b[j].type == 7) &&
  10559. a[i].tool[0] != 15 &&
  10560. a[i].tool[0] != 4 &&
  10561. a[i].tool[0] != 45 &&
  10562. a[i].tool[0] != 50 &&
  10563. a[i].tool[0] != 32 &&
  10564. a[i].tool[0] != 57 &&
  10565. a[i].tool[0] != 52
  10566. ) {
  10567. if (
  10568. c.indexOf(
  10569. b[j].content
  10570. .split(".")
  10571. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  10572. ) != -1 &&
  10573. a[i].tool[0] == 16 &&
  10574. b[j].atool != 50
  10575. ) {
  10576. this.workStudent[i].push({
  10577. works: b[j].content,
  10578. sName: b[j].name,
  10579. score: b[j].score,
  10580. img: b[j].img,
  10581. type: 1,
  10582. time: b[j].time,
  10583. userid: b[j].userid,
  10584. wid: b[j].id,
  10585. });
  10586. } else if (
  10587. y.indexOf(
  10588. b[j].content
  10589. .split(".")
  10590. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  10591. ) != -1 &&
  10592. a[i].tool[0] == 16 &&
  10593. b[j].atool != 50
  10594. ) {
  10595. this.workStudent[i].push({
  10596. userid: b[j].userid,
  10597. wid: b[j].id,
  10598. works: b[j].content,
  10599. sName: b[j].name,
  10600. score: b[j].score,
  10601. img: b[j].img,
  10602. type: 3,
  10603. time: b[j].time,
  10604. });
  10605. } else if (b[j].type == 6 && b[j].atool != 50) {
  10606. this.workStudent[i].push({
  10607. userid: b[j].userid,
  10608. wid: b[j].id,
  10609. works: b[j].content,
  10610. sName: b[j].name,
  10611. score: b[j].score,
  10612. img: b[j].img,
  10613. type: 4,
  10614. time: b[j].time,
  10615. });
  10616. } else if (b[j].type == 7 && b[j].atool != 50) {
  10617. this.workStudent[i].push({
  10618. userid: b[j].userid,
  10619. wid: b[j].id,
  10620. works: b[j].content,
  10621. sName: b[j].name,
  10622. score: b[j].score,
  10623. img: b[j].img,
  10624. type: 5,
  10625. time: b[j].time,
  10626. });
  10627. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  10628. this.workStudent[i].push({
  10629. works: b[j].content,
  10630. sName: b[j].name,
  10631. score: b[j].score,
  10632. img: b[j].img,
  10633. type: 12,
  10634. time: b[j].time,
  10635. userid: b[j].userid,
  10636. wid: b[j].id,
  10637. });
  10638. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  10639. this.workStudent[i].push({
  10640. works: b[j].content,
  10641. sName: b[j].name,
  10642. score: b[j].score,
  10643. img: b[j].img,
  10644. type: 0,
  10645. time: b[j].time,
  10646. userid: b[j].userid,
  10647. wid: b[j].id,
  10648. });
  10649. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  10650. this.workStudent[i].push({
  10651. works: b[j].content,
  10652. sName: b[j].name,
  10653. score: b[j].score,
  10654. img: b[j].img,
  10655. type: 0,
  10656. time: b[j].time,
  10657. userid: b[j].userid,
  10658. wid: b[j].id,
  10659. });
  10660. }
  10661. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  10662. this.workStudent[i].push({
  10663. works: b[j].content,
  10664. sName: b[j].name,
  10665. score: b[j].score,
  10666. img: b[j].img,
  10667. type: 2,
  10668. time: b[j].time,
  10669. userid: b[j].userid,
  10670. wid: b[j].id,
  10671. });
  10672. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  10673. //问卷
  10674. this.workStudent[i].push({
  10675. works: b[j].content,
  10676. sName: b[j].name,
  10677. score: b[j].score,
  10678. img: b[j].img,
  10679. type: 2,
  10680. time: b[j].time,
  10681. userid: b[j].userid,
  10682. wid: b[j].id,
  10683. });
  10684. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  10685. //选择题
  10686. this.workStudent[i].push({
  10687. works: b[j].content,
  10688. sName: b[j].name,
  10689. score: b[j].score,
  10690. img: b[j].img,
  10691. type: 8,
  10692. time: b[j].time,
  10693. userid: b[j].userid,
  10694. wid: b[j].id,
  10695. });
  10696. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  10697. //选择题
  10698. this.workStudent[i].push({
  10699. works: b[j].content,
  10700. sName: b[j].name,
  10701. score: b[j].score,
  10702. img: b[j].img,
  10703. type: 9,
  10704. time: b[j].time,
  10705. userid: b[j].userid,
  10706. wid: b[j].id,
  10707. });
  10708. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  10709. //选择题
  10710. this.workStudent[i].push({
  10711. works: b[j].content,
  10712. sName: b[j].name,
  10713. score: b[j].score,
  10714. img: b[j].img,
  10715. type: 10,
  10716. time: b[j].time,
  10717. userid: b[j].userid,
  10718. wid: b[j].id,
  10719. });
  10720. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  10721. //选择题
  10722. this.workStudent[i].push({
  10723. works: b[j].content,
  10724. sName: b[j].name,
  10725. score: b[j].score,
  10726. img: b[j].img,
  10727. type: 13,
  10728. time: b[j].time,
  10729. userid: b[j].userid,
  10730. wid: b[j].id,
  10731. });
  10732. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  10733. //选择题
  10734. this.workStudent[i].push({
  10735. works: b[j].content,
  10736. sName: b[j].name,
  10737. score: b[j].score,
  10738. img: b[j].img,
  10739. type: 12,
  10740. time: b[j].time,
  10741. userid: b[j].userid,
  10742. wid: b[j].id,
  10743. });
  10744. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  10745. //选择题
  10746. this.workStudent[i].push({
  10747. works: b[j].content,
  10748. sName: b[j].name,
  10749. score: b[j].score,
  10750. img: b[j].img,
  10751. type: 12,
  10752. time: b[j].time,
  10753. userid: b[j].userid,
  10754. wid: b[j].id,
  10755. });
  10756. }
  10757. }
  10758. }
  10759. }
  10760. })
  10761. .catch((err) => {
  10762. console.error(err);
  10763. });
  10764. },
  10765. openVideo(w) {
  10766. this.videoDetail = {};
  10767. this.playerOptions1.sources[0].src = w.works;
  10768. this.videoDetail = this.playerOptions1;
  10769. this.videoVisible = true;
  10770. },
  10771. isLikes(wid, uid, t, c, isLikes) {
  10772. if (isLikes == false) {
  10773. let params = [
  10774. {
  10775. wid: wid,
  10776. lid: uid,
  10777. t: t,
  10778. c: c,
  10779. },
  10780. ];
  10781. this.ajax
  10782. .post(this.$store.state.api + "insertComment", params)
  10783. .then((res) => {
  10784. this.$message({
  10785. message: "点赞成功",
  10786. type: "success",
  10787. });
  10788. this.selectSWorks();
  10789. this.selectStudent();
  10790. })
  10791. .catch((err) => {
  10792. this.$message.error("点赞失败");
  10793. console.error(err);
  10794. });
  10795. } else {
  10796. let params = {
  10797. wid: wid,
  10798. lid: uid,
  10799. type: t,
  10800. };
  10801. this.ajax
  10802. .get(this.$store.state.api + "deleteComment", params)
  10803. .then((res) => {
  10804. this.$message({
  10805. message: "取消点赞成功",
  10806. type: "success",
  10807. });
  10808. this.selectSWorks();
  10809. this.selectStudent();
  10810. })
  10811. .catch((err) => {
  10812. console.error(err);
  10813. });
  10814. }
  10815. },
  10816. deleteComment(wid) {
  10817. this.$confirm("确定删除此评论吗?", "提示", {
  10818. confirmButtonText: "确定",
  10819. cancelButtonText: "取消",
  10820. type: "warning",
  10821. })
  10822. .then(() => {
  10823. let params = {
  10824. id: wid,
  10825. };
  10826. this.ajax
  10827. .get(this.$store.state.api + "deleteComment2", params)
  10828. .then((res) => {
  10829. this.$message({
  10830. message: "删除评论成功",
  10831. type: "success",
  10832. });
  10833. this.selectSWorks();
  10834. this.selectStudent();
  10835. })
  10836. .catch((err) => {
  10837. console.error(err);
  10838. });
  10839. })
  10840. .catch(() => {});
  10841. },
  10842. commentOther(w, toolIndex, wIndex, gindex, gid) {
  10843. this.commentIndexJson = {
  10844. toolIndex: toolIndex,
  10845. wIndex: wIndex,
  10846. gindex: gindex,
  10847. gid: gid,
  10848. };
  10849. this.commentDetail = [];
  10850. this.commentDialogVisible = true;
  10851. this.commentDetail = w;
  10852. if (w.works && w.type == 1) {
  10853. this.pptImgUrl = "";
  10854. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  10855. if (
  10856. a.indexOf(
  10857. w.works
  10858. .split(".")
  10859. [w.works.split(".").length - 1].toLocaleUpperCase()
  10860. ) != -1
  10861. ) {
  10862. this.pptImgUrl =
  10863. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  10864. this.showPDF = false;
  10865. } else if (
  10866. w.works
  10867. .split(".")
  10868. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  10869. ) {
  10870. this.pptImgUrl = w.works;
  10871. this.showPDF = true;
  10872. }
  10873. } else if (w.works && w.type == 3) {
  10874. this.videoDetail = {};
  10875. this.playerOptions1.sources[0].src = w.works;
  10876. this.videoDetail = this.playerOptions1;
  10877. // this.videoVisible = true;
  10878. } else if (w.works && w.type == 4) {
  10879. this.eScore = JSON.parse(w.works);
  10880. this.rateJson =
  10881. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10882. this.taskCount
  10883. ].toolChoose[toolIndex].rateJson;
  10884. } else if (w.works && w.type == 10) {
  10885. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  10886. } else if (w.works && w.type == 13) {
  10887. this.wordJson =
  10888. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10889. this.taskCount
  10890. ].toolChoose[toolIndex].wordJson;
  10891. }
  10892. },
  10893. openScore(w) {
  10894. this.wScore = 0;
  10895. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  10896. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  10897. this.commentDetail = [];
  10898. this.dialogVisibleScore = true;
  10899. this.commentDetail = w;
  10900. if (w.works && w.type == 1) {
  10901. this.pptImgUrl = "";
  10902. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  10903. if (
  10904. a.indexOf(
  10905. w.works
  10906. .split(".")
  10907. [w.works.split(".").length - 1].toLocaleUpperCase()
  10908. ) != -1
  10909. ) {
  10910. this.pptImgUrl =
  10911. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  10912. this.showPDF = false;
  10913. } else if (
  10914. w.works
  10915. .split(".")
  10916. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  10917. ) {
  10918. this.pptImgUrl = w.works;
  10919. this.showPDF = true;
  10920. }
  10921. } else if (w.works && w.type == 3) {
  10922. this.videoDetail = {};
  10923. this.playerOptions1.sources[0].src = w.works;
  10924. this.videoDetail = this.playerOptions1;
  10925. }
  10926. },
  10927. addComment(wid, uid, t) {
  10928. if (this.commentText == "") {
  10929. this.$message.error("请输入对该学生的评价");
  10930. return;
  10931. }
  10932. let params2 = [
  10933. {
  10934. wid: wid,
  10935. lid: uid,
  10936. t: t,
  10937. },
  10938. ];
  10939. this.ajax
  10940. .post(this.$store.state.api + "getComment", params2)
  10941. .then((res) => {
  10942. if (res.data[0].length > 0) {
  10943. this.$message.error("一个作业只能评论一条");
  10944. } else {
  10945. let params = [
  10946. {
  10947. wid: wid,
  10948. lid: uid,
  10949. t: t,
  10950. c: this.commentText,
  10951. },
  10952. ];
  10953. this.ajax
  10954. .post(this.$store.state.api + "insertComment", params)
  10955. .then((res) => {
  10956. this.$message({
  10957. message: "评论成功",
  10958. type: "success",
  10959. });
  10960. this.commentText = "";
  10961. this.selectSWorks();
  10962. this.selectStudent();
  10963. })
  10964. .catch((err) => {
  10965. this.$message.error("评论失败");
  10966. console.error(err);
  10967. });
  10968. }
  10969. })
  10970. .catch((err) => {
  10971. // this.$message.error("评论失败");
  10972. console.error(err);
  10973. });
  10974. },
  10975. scoreWork(wid) {
  10976. if (this.wScore == 0) {
  10977. this.$message.error("请评分");
  10978. return;
  10979. }
  10980. let params = [
  10981. {
  10982. wid: wid,
  10983. score: JSON.stringify({
  10984. wScore: this.wScore,
  10985. detail: this.scoreDetail,
  10986. }),
  10987. },
  10988. ];
  10989. this.ajax
  10990. .post(this.$store.state.api + "scoreWork", params)
  10991. .then((res) => {
  10992. this.$message({
  10993. message: "评分成功",
  10994. type: "success",
  10995. });
  10996. this.wScore = 0;
  10997. this.scoreDetail = "";
  10998. this.dialogVisibleScore = false;
  10999. this.selectSWorks();
  11000. this.selectStudent();
  11001. })
  11002. .catch((err) => {
  11003. this.$message.error("评分失败");
  11004. console.error(err);
  11005. });
  11006. },
  11007. openXz(w, i) {
  11008. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  11009. .taskJson[this.taskCount].toolChoose[i].selectJson
  11010. ? JSON.parse(
  11011. JSON.stringify(
  11012. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11013. this.taskCount
  11014. ].toolChoose[i].selectJson
  11015. )
  11016. )
  11017. : { url: "", select: [], answer: [] };
  11018. var a = w.works.split(",");
  11019. for (var k = 0; k < a.length; k++) {
  11020. a[k] = parseInt(a[k]);
  11021. }
  11022. this.selectAnswer = { answer: a, stu: w.sName };
  11023. this.isSelect = true;
  11024. this.dialogVisibleSelect = true;
  11025. },
  11026. openSen(w, i) {
  11027. this.sentenceList1 = JSON.parse(w.works);
  11028. this.sentenceList1.stuName = w.sName;
  11029. this.dialogVisibleSentence1 = true;
  11030. },
  11031. openPj(w, toolindex) {
  11032. this.isStar = true;
  11033. this.eScore = JSON.parse(w);
  11034. this.rateJson =
  11035. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11036. this.taskCount
  11037. ].toolChoose[toolindex].rateJson;
  11038. this.studentEvalDialogVisible = true;
  11039. },
  11040. deleteWorks(id) {
  11041. this.$confirm("确定删除此作业吗?", "提示", {
  11042. confirmButtonText: "确定",
  11043. cancelButtonText: "取消",
  11044. type: "warning",
  11045. })
  11046. .then(() => {
  11047. let params = [
  11048. {
  11049. id: id,
  11050. },
  11051. ];
  11052. this.ajax
  11053. .post(this.$store.state.api + "deleteCourseWork", params)
  11054. .then((res) => {
  11055. this.$message({
  11056. message: "删除成功",
  11057. type: "success",
  11058. });
  11059. this.selectStudent();
  11060. this.selectSWorks();
  11061. this.selectSLook();
  11062. })
  11063. .catch((err) => {
  11064. this.$message.error("网络异常");
  11065. console.error(err);
  11066. });
  11067. })
  11068. .catch(() => {});
  11069. },
  11070. selectSWorks(gindex) {
  11071. //教师查看全部作业
  11072. let params = {
  11073. cid: this.id,
  11074. s: this.courseType,
  11075. t: this.taskCount,
  11076. };
  11077. this.ajax
  11078. .get(this.$store.state.api + "selectSWorks", params)
  11079. .then((res) => {
  11080. var a =
  11081. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11082. this.taskCount
  11083. ].toolChoose;
  11084. var b = res.data[0];
  11085. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  11086. var y = [
  11087. "AVI",
  11088. "NAVI",
  11089. "MPEG",
  11090. "ASF",
  11091. "MOV",
  11092. "WMV",
  11093. "3GP",
  11094. "RM",
  11095. "RMVB",
  11096. "FLV",
  11097. "F4V",
  11098. "H.264",
  11099. "H.265",
  11100. "REAL VIDEO",
  11101. "MKV",
  11102. "WebM",
  11103. "HDDVD",
  11104. "MP4",
  11105. "MPG",
  11106. "M4V",
  11107. "MGV",
  11108. "OGV",
  11109. "QTM",
  11110. "STR",
  11111. "AMC",
  11112. "DVX",
  11113. "EVO",
  11114. "DAT",
  11115. "OGG",
  11116. "OGM",
  11117. ];
  11118. var d = res.data[1];
  11119. var e = res.data[2];
  11120. var f = res.data[3];
  11121. let _worksStudent = [];
  11122. for (var i = 0; i < a.length; i++) {
  11123. _worksStudent[i] = [];
  11124. if (
  11125. !this.isCloseList[i] ||
  11126. this.isCloseList[i].isClose == undefined
  11127. ) {
  11128. this.isCloseList[i] = { isClose: 0 };
  11129. }
  11130. this.groupStudent[i] = [];
  11131. this.groupStudentUid[i] = [];
  11132. if (this.isGroup) {
  11133. for (
  11134. var groupI = 0;
  11135. groupI < this.courseGroup.group.length;
  11136. groupI++
  11137. ) {
  11138. this.courseGroup.group[groupI].works[i] = [];
  11139. }
  11140. }
  11141. this.isWorksS[i] = [];
  11142. this.checkJson[i] = [];
  11143. if (a[i].tool[0] == 49) {
  11144. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  11145. this.groupStudent[i][gA] = [];
  11146. this.groupStudentUid[i][gA] = [];
  11147. _worksStudent[i][gA] = [];
  11148. this.isCloseList[i][gA] = [];
  11149. for (var g = 0; g < f.length; g++) {
  11150. if (
  11151. f[g].ttype == 2 &&
  11152. this.tcid &&
  11153. this.arrayToArray(
  11154. f[g].classid.split(","),
  11155. this.tcid.split(",")
  11156. ).length == 0
  11157. ) {
  11158. continue;
  11159. }
  11160. if (gA == f[g].group && f[g].tool == i) {
  11161. this.groupStudent[i][gA].push(f[g]);
  11162. this.groupStudentUid[i][gA].push(f[g].userid);
  11163. }
  11164. }
  11165. }
  11166. this.$forceUpdate();
  11167. }
  11168. for (var j = 0; j < b.length; j++) {
  11169. if (
  11170. b[j].ttype == 2 &&
  11171. this.tcid &&
  11172. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  11173. .length == 0
  11174. ) {
  11175. continue;
  11176. }
  11177. var likesCount = 0;
  11178. var commentCount = 0;
  11179. var isLikes = false;
  11180. var commentJson = [];
  11181. var data = b[j];
  11182. if (i == b[j].tool) {
  11183. if (data.type == 2 && a[i].tool[0] == 4) {
  11184. // if(JSON.parse(data.content)[0].anwer){
  11185. var checkL =
  11186. JSON.parse(data.content)[0].anwer instanceof Array
  11187. ? JSON.parse(data.content)[0].anwer
  11188. : JSON.parse(data.content)[0].anwer.split(",");
  11189. for (var z = 0; z < checkL.length; z++) {
  11190. if (!this.checkJson[i][z]) {
  11191. this.checkJson[i].push({
  11192. checkCount: [],
  11193. checkPerson: [],
  11194. rightPerson: [],
  11195. });
  11196. }
  11197. if (!this.checkJson[i][z].checkCount.length) {
  11198. this.checkJson[i][z].checkCount = [];
  11199. let _askItemCount = JSON.parse(data.content)[0].askJson
  11200. .askJson[z].askItem;
  11201. for (var aic = 0; aic < _askItemCount; aic++) {
  11202. this.checkJson[i][z].checkCount.push(0);
  11203. }
  11204. }
  11205. if (checkL[z] instanceof Array) {
  11206. if (
  11207. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  11208. checkL[z].sort().join(",")
  11209. ) {
  11210. this.checkJson[i][z].rightPerson.push(data.name);
  11211. }
  11212. for (var q = 0; q < checkL[z].length; q++) {
  11213. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  11214. ? this.checkJson[i][z].checkPerson[
  11215. parseInt(checkL[z][q])
  11216. ].push(data.name)
  11217. : (this.checkJson[i][z].checkPerson[
  11218. parseInt(checkL[z][q])
  11219. ] = [data.name]);
  11220. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  11221. ? this.checkJson[i][z].checkCount[
  11222. parseInt(checkL[z][q])
  11223. ]++
  11224. : (this.checkJson[i][z].checkCount[
  11225. parseInt(checkL[z][q])
  11226. ] = 1);
  11227. }
  11228. } else {
  11229. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  11230. this.checkJson[i][z].rightPerson.push(data.name);
  11231. }
  11232. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  11233. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  11234. ? this.checkJson[i][z].checkPerson[
  11235. parseInt(checkL[z])
  11236. ].push(data.name)
  11237. : (this.checkJson[i][z].checkPerson[
  11238. parseInt(checkL[z])
  11239. ] = [data.name]);
  11240. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  11241. ? this.checkJson[i][z].checkCount[
  11242. parseInt(checkL[z])
  11243. ]++
  11244. : (this.checkJson[i][z].checkCount[
  11245. parseInt(checkL[z])
  11246. ] = 1);
  11247. }
  11248. }
  11249. }
  11250. } else if (data.type == 8 && a[i].tool[0] == 45) {
  11251. var checkL = JSON.parse(data.content)[0].anwer;
  11252. for (var z = 0; z < checkL.length; z++) {
  11253. if (!this.checkJson[i][z]) {
  11254. this.checkJson[i].push({
  11255. checkCount: [],
  11256. checkPerson: [],
  11257. rightPerson: [],
  11258. });
  11259. }
  11260. if (!this.checkJson[i][z].checkCount.length) {
  11261. this.checkJson[i][z].checkCount = [];
  11262. let _askItemCount = JSON.parse(data.content)[0].testJson
  11263. .testJson[z].testItem;
  11264. console.log(_askItemCount);
  11265. for (var aic = 0; aic < _askItemCount; aic++) {
  11266. this.checkJson[i][z].checkCount.push(0);
  11267. }
  11268. }
  11269. if (checkL[z] instanceof Array) {
  11270. if (
  11271. JSON.parse(data.content)[0]
  11272. .testJson.testJson[z].answer.sort()
  11273. .join(",") == checkL[z].sort().join(",")
  11274. ) {
  11275. this.checkJson[i][z].rightPerson.push(data.name);
  11276. }
  11277. for (var q = 0; q < checkL[z].length; q++) {
  11278. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  11279. ? this.checkJson[i][z].checkPerson[
  11280. parseInt(checkL[z][q])
  11281. ].push(data.name)
  11282. : (this.checkJson[i][z].checkPerson[
  11283. parseInt(checkL[z][q])
  11284. ] = [data.name]);
  11285. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  11286. ? this.checkJson[i][z].checkCount[
  11287. parseInt(checkL[z][q])
  11288. ]++
  11289. : (this.checkJson[i][z].checkCount[
  11290. parseInt(checkL[z][q])
  11291. ] = 1);
  11292. }
  11293. } else {
  11294. if (
  11295. JSON.parse(data.content)[0].testJson.testJson[z]
  11296. .answer == checkL[z]
  11297. ) {
  11298. this.checkJson[i][z].rightPerson.push(data.name);
  11299. }
  11300. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  11301. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  11302. ? this.checkJson[i][z].checkPerson[
  11303. parseInt(checkL[z])
  11304. ].push(data.name)
  11305. : (this.checkJson[i][z].checkPerson[
  11306. parseInt(checkL[z])
  11307. ] = [data.name]);
  11308. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  11309. ? this.checkJson[i][z].checkCount[
  11310. parseInt(checkL[z])
  11311. ]++
  11312. : (this.checkJson[i][z].checkCount[
  11313. parseInt(checkL[z])
  11314. ] = 1);
  11315. }
  11316. }
  11317. }
  11318. } else if (data.type == 9 && a[i].tool[0] == 47) {
  11319. var checkL = JSON.parse(data.content);
  11320. for (var z = 0; z < checkL.length; z++) {
  11321. if (!this.checkJson[i][z]) {
  11322. this.checkJson[i].push({
  11323. checkCount: [],
  11324. checkPerson: [],
  11325. rightPerson: [],
  11326. });
  11327. }
  11328. this.checkJson[i][z].checkPerson.push(data.name);
  11329. if (
  11330. checkL[z].chooseSenList.toString() ==
  11331. checkL[z].rightAnswer.toString()
  11332. ) {
  11333. this.checkJson[i][z].rightPerson.push(data.name);
  11334. }
  11335. }
  11336. }
  11337. for (var k = 0; k < d.length; k++) {
  11338. //点赞
  11339. if (d[k].workId == b[j].id) {
  11340. likesCount++;
  11341. if (d[k].likesId == this.userid) {
  11342. isLikes = true;
  11343. }
  11344. }
  11345. }
  11346. for (var l = 0; l < e.length; l++) {
  11347. //评论
  11348. if (e[l].workId == b[j].id) {
  11349. if (e[l].comment != "") {
  11350. commentCount++;
  11351. commentJson.push({
  11352. commentText: e[l].comment,
  11353. commentTime: e[l].commentTime,
  11354. commentPeople: e[l].commentPeople,
  11355. userid: e[l].userid,
  11356. wid: e[l].id,
  11357. });
  11358. }
  11359. }
  11360. }
  11361. if (
  11362. (b[j].type == 1 ||
  11363. b[j].type == 4 ||
  11364. b[j].type == 5 ||
  11365. b[j].type == 6 ||
  11366. b[j].type == 12 ||
  11367. b[j].type == 7) &&
  11368. a[i].tool[0] != 15 &&
  11369. a[i].tool[0] != 4 &&
  11370. a[i].tool[0] != 45 &&
  11371. a[i].tool[0] != 50 &&
  11372. a[i].tool[0] != 32 &&
  11373. a[i].tool[0] != 57 &&
  11374. a[i].tool[0] != 52
  11375. ) {
  11376. if (
  11377. c.indexOf(
  11378. b[j].content
  11379. .split(".")
  11380. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11381. ) != -1 &&
  11382. a[i].tool[0] == 16 &&
  11383. b[j].atool != 50
  11384. ) {
  11385. let _works = {
  11386. userid: b[j].userid,
  11387. ateacher: b[j].ateacher,
  11388. wid: b[j].id,
  11389. works: b[j].content,
  11390. sName: b[j].name,
  11391. type: 1,
  11392. time: b[j].time,
  11393. score: b[j].score,
  11394. img: b[j].img,
  11395. likesCount: likesCount,
  11396. commentCount: commentCount,
  11397. isLikes: isLikes,
  11398. commentJson: commentJson,
  11399. };
  11400. if (this.isGroup) {
  11401. let isGw = 1;
  11402. for (
  11403. var groupI = 0;
  11404. groupI < this.courseGroup.group.length;
  11405. groupI++
  11406. ) {
  11407. let gid = this.courseGroup.group[groupI].id;
  11408. if (
  11409. this.courseGroupStudentUid[gid].indexOf(
  11410. b[j].userid
  11411. ) != -1
  11412. ) {
  11413. isGw = 2;
  11414. this.courseGroup.group[groupI].works[i].push(_works);
  11415. break;
  11416. }
  11417. }
  11418. if (isGw == 1) {
  11419. _worksStudent[i].push(_works);
  11420. }
  11421. } else {
  11422. _worksStudent[i].push(_works);
  11423. }
  11424. this.isWorksS[i].push({
  11425. uid: b[j].userid,
  11426. sName: b[j].name,
  11427. });
  11428. } else if (
  11429. y.indexOf(
  11430. b[j].content
  11431. .split(".")
  11432. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11433. ) != -1 &&
  11434. a[i].tool[0] == 16 &&
  11435. b[j].atool != 50
  11436. ) {
  11437. let _works = {
  11438. userid: b[j].userid,
  11439. ateacher: b[j].ateacher,
  11440. wid: b[j].id,
  11441. works: b[j].content,
  11442. sName: b[j].name,
  11443. type: 3,
  11444. time: b[j].time,
  11445. score: b[j].score,
  11446. img: b[j].img,
  11447. likesCount: likesCount,
  11448. commentCount: commentCount,
  11449. isLikes: isLikes,
  11450. commentJson: commentJson,
  11451. };
  11452. if (this.isGroup) {
  11453. let isGw = 1;
  11454. for (
  11455. var groupI = 0;
  11456. groupI < this.courseGroup.group.length;
  11457. groupI++
  11458. ) {
  11459. let gid = this.courseGroup.group[groupI].id;
  11460. if (
  11461. this.courseGroupStudentUid[gid].indexOf(
  11462. b[j].userid
  11463. ) != -1
  11464. ) {
  11465. isGw = 2;
  11466. this.courseGroup.group[groupI].works[i].push(_works);
  11467. break;
  11468. }
  11469. }
  11470. if (isGw == 1) {
  11471. _worksStudent[i].push(_works);
  11472. }
  11473. } else {
  11474. _worksStudent[i].push(_works);
  11475. }
  11476. this.isWorksS[i].push({
  11477. uid: b[j].userid,
  11478. sName: b[j].name,
  11479. });
  11480. } else if (b[j].type == 6 && b[j].atool != 50) {
  11481. _worksStudent[i].push({
  11482. userid: b[j].userid,
  11483. ateacher: b[j].ateacher,
  11484. wid: b[j].id,
  11485. works: b[j].content,
  11486. sName: b[j].name,
  11487. type: 4,
  11488. time: b[j].time,
  11489. score: b[j].score,
  11490. img: b[j].img,
  11491. likesCount: likesCount,
  11492. commentCount: commentCount,
  11493. isLikes: isLikes,
  11494. commentJson: commentJson,
  11495. });
  11496. this.isWorksS[i].push({
  11497. uid: b[j].userid,
  11498. sName: b[j].name,
  11499. });
  11500. } else if (b[j].type == 7 && b[j].atool != 50) {
  11501. _worksStudent[i].push({
  11502. userid: b[j].userid,
  11503. ateacher: b[j].ateacher,
  11504. wid: b[j].id,
  11505. works: b[j].content,
  11506. sName: b[j].name,
  11507. type: 5,
  11508. time: b[j].time,
  11509. score: b[j].score,
  11510. img: b[j].img,
  11511. likesCount: likesCount,
  11512. commentCount: commentCount,
  11513. isLikes: isLikes,
  11514. commentJson: commentJson,
  11515. });
  11516. this.isWorksS[i].push({
  11517. uid: b[j].userid,
  11518. sName: b[j].name,
  11519. });
  11520. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  11521. let _works = {
  11522. userid: b[j].userid,
  11523. ateacher: b[j].ateacher,
  11524. wid: b[j].id,
  11525. works: b[j].content,
  11526. sName: b[j].name,
  11527. type: 12,
  11528. time: b[j].time,
  11529. score: b[j].score,
  11530. img: b[j].img,
  11531. likesCount: likesCount,
  11532. commentCount: commentCount,
  11533. isLikes: isLikes,
  11534. commentJson: commentJson,
  11535. };
  11536. if (this.isGroup) {
  11537. let isGw = 1;
  11538. for (
  11539. var groupI = 0;
  11540. groupI < this.courseGroup.group.length;
  11541. groupI++
  11542. ) {
  11543. let gid = this.courseGroup.group[groupI].id;
  11544. if (
  11545. this.courseGroupStudentUid[gid].indexOf(
  11546. b[j].userid
  11547. ) != -1
  11548. ) {
  11549. isGw = 2;
  11550. this.courseGroup.group[groupI].works[i].push(_works);
  11551. break;
  11552. }
  11553. }
  11554. if (isGw == 1) {
  11555. _worksStudent[i].push(_works);
  11556. }
  11557. } else {
  11558. _worksStudent[i].push(_works);
  11559. }
  11560. this.isWorksS[i].push({
  11561. uid: b[j].userid,
  11562. sName: b[j].name,
  11563. });
  11564. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  11565. let _works = {
  11566. userid: b[j].userid,
  11567. ateacher: b[j].ateacher,
  11568. wid: b[j].id,
  11569. works: b[j].content,
  11570. sName: b[j].name,
  11571. type: 0,
  11572. time: b[j].time,
  11573. score: b[j].score,
  11574. img: b[j].img,
  11575. likesCount: likesCount,
  11576. commentCount: commentCount,
  11577. isLikes: isLikes,
  11578. commentJson: commentJson,
  11579. };
  11580. if (this.isGroup) {
  11581. let isGw = 1;
  11582. for (
  11583. var groupI = 0;
  11584. groupI < this.courseGroup.group.length;
  11585. groupI++
  11586. ) {
  11587. let gid = this.courseGroup.group[groupI].id;
  11588. if (
  11589. this.courseGroupStudentUid[gid].indexOf(
  11590. b[j].userid
  11591. ) != -1
  11592. ) {
  11593. isGw = 2;
  11594. this.courseGroup.group[groupI].works[i].push(_works);
  11595. break;
  11596. }
  11597. }
  11598. if (isGw == 1) {
  11599. _worksStudent[i].push(_works);
  11600. }
  11601. } else {
  11602. _worksStudent[i].push(_works);
  11603. }
  11604. this.isWorksS[i].push({
  11605. uid: b[j].userid,
  11606. sName: b[j].name,
  11607. });
  11608. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  11609. let _works = {
  11610. userid: b[j].userid,
  11611. ateacher: b[j].ateacher,
  11612. wid: b[j].id,
  11613. works: b[j].content,
  11614. sName: b[j].name,
  11615. type: 0,
  11616. time: b[j].time,
  11617. score: b[j].score,
  11618. img: b[j].img,
  11619. likesCount: likesCount,
  11620. commentCount: commentCount,
  11621. isLikes: isLikes,
  11622. commentJson: commentJson,
  11623. };
  11624. if (this.isGroup) {
  11625. let isGw = 1;
  11626. for (
  11627. var groupI = 0;
  11628. groupI < this.courseGroup.group.length;
  11629. groupI++
  11630. ) {
  11631. let gid = this.courseGroup.group[groupI].id;
  11632. if (
  11633. this.courseGroupStudentUid[gid].indexOf(
  11634. b[j].userid
  11635. ) != -1
  11636. ) {
  11637. isGw = 2;
  11638. this.courseGroup.group[groupI].works[i].push(_works);
  11639. break;
  11640. }
  11641. }
  11642. if (isGw == 1) {
  11643. _worksStudent[i].push(_works);
  11644. }
  11645. } else {
  11646. _worksStudent[i].push(_works);
  11647. }
  11648. this.isWorksS[i].push({
  11649. uid: b[j].userid,
  11650. sName: b[j].name,
  11651. });
  11652. }
  11653. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  11654. let _works = {
  11655. userid: b[j].userid,
  11656. ateacher: b[j].ateacher,
  11657. wid: b[j].id,
  11658. works: b[j].content,
  11659. sName: b[j].name,
  11660. type: 2,
  11661. time: b[j].time,
  11662. score: b[j].score,
  11663. img: b[j].img,
  11664. likesCount: likesCount,
  11665. commentCount: commentCount,
  11666. isLikes: isLikes,
  11667. commentJson: commentJson,
  11668. };
  11669. if (this.isGroup) {
  11670. let isGw = 1;
  11671. for (
  11672. var groupI = 0;
  11673. groupI < this.courseGroup.group.length;
  11674. groupI++
  11675. ) {
  11676. let gid = this.courseGroup.group[groupI].id;
  11677. if (
  11678. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  11679. -1
  11680. ) {
  11681. isGw = 2;
  11682. this.courseGroup.group[groupI].works[i].push(_works);
  11683. break;
  11684. }
  11685. }
  11686. if (isGw == 1) {
  11687. _worksStudent[i].push(_works);
  11688. }
  11689. } else {
  11690. _worksStudent[i].push(_works);
  11691. }
  11692. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11693. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  11694. //问卷
  11695. _worksStudent[i].push({
  11696. userid: b[j].userid,
  11697. ateacher: b[j].ateacher,
  11698. wid: b[j].id,
  11699. works: b[j].content,
  11700. sName: b[j].name,
  11701. type: 2,
  11702. time: b[j].time,
  11703. score: b[j].score,
  11704. img: b[j].img,
  11705. likesCount: likesCount,
  11706. commentCount: commentCount,
  11707. isLikes: isLikes,
  11708. commentJson: commentJson,
  11709. });
  11710. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11711. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  11712. //选择题
  11713. _worksStudent[i].push({
  11714. userid: b[j].userid,
  11715. ateacher: b[j].ateacher,
  11716. wid: b[j].id,
  11717. works: b[j].content,
  11718. sName: b[j].name,
  11719. type: 8,
  11720. time: b[j].time,
  11721. score: b[j].score,
  11722. img: b[j].img,
  11723. likesCount: likesCount,
  11724. commentCount: commentCount,
  11725. isLikes: isLikes,
  11726. commentJson: commentJson,
  11727. });
  11728. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11729. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  11730. //选择题
  11731. _worksStudent[i].push({
  11732. userid: b[j].userid,
  11733. ateacher: b[j].ateacher,
  11734. wid: b[j].id,
  11735. works: b[j].content,
  11736. sName: b[j].name,
  11737. type: 9,
  11738. time: b[j].time,
  11739. score: b[j].score,
  11740. img: b[j].img,
  11741. likesCount: likesCount,
  11742. commentCount: commentCount,
  11743. isLikes: isLikes,
  11744. commentJson: commentJson,
  11745. });
  11746. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11747. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  11748. //选择题
  11749. _worksStudent[i].push({
  11750. userid: b[j].userid,
  11751. ateacher: b[j].ateacher,
  11752. wid: b[j].id,
  11753. works: b[j].content,
  11754. sName: b[j].name,
  11755. type: 10,
  11756. time: b[j].time,
  11757. score: b[j].score,
  11758. img: b[j].img,
  11759. likesCount: likesCount,
  11760. commentCount: commentCount,
  11761. isLikes: isLikes,
  11762. commentJson: commentJson,
  11763. });
  11764. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11765. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  11766. //选择题
  11767. _worksStudent[i].push({
  11768. userid: b[j].userid,
  11769. ateacher: b[j].ateacher,
  11770. wid: b[j].id,
  11771. works: b[j].content,
  11772. sName: b[j].name,
  11773. type: 13,
  11774. time: b[j].time,
  11775. score: b[j].score,
  11776. img: b[j].img,
  11777. likesCount: likesCount,
  11778. commentCount: commentCount,
  11779. isLikes: isLikes,
  11780. commentJson: commentJson,
  11781. });
  11782. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11783. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  11784. let _gindex = JSON.parse(b[j].content);
  11785. if (
  11786. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  11787. b[j].userid
  11788. ) != -1
  11789. ) {
  11790. _worksStudent[i][_gindex.groupIndex].push({
  11791. userid: b[j].userid,
  11792. ateacher: b[j].ateacher,
  11793. wid: b[j].id,
  11794. works: _gindex.url,
  11795. sName: b[j].name,
  11796. type: _gindex.type,
  11797. time: b[j].time,
  11798. score: b[j].score,
  11799. img: b[j].img,
  11800. likesCount: likesCount,
  11801. commentCount: commentCount,
  11802. isLikes: isLikes,
  11803. commentJson: commentJson,
  11804. });
  11805. }
  11806. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11807. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  11808. _worksStudent[i].push({
  11809. userid: b[j].userid,
  11810. ateacher: b[j].ateacher,
  11811. wid: b[j].id,
  11812. works: b[j].content,
  11813. sName: b[j].name ? b[j].name : b[j].userid,
  11814. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  11815. time: b[j].time,
  11816. score: b[j].score,
  11817. img: b[j].img,
  11818. likesCount: likesCount,
  11819. commentCount: commentCount,
  11820. isLikes: isLikes,
  11821. commentJson: commentJson,
  11822. });
  11823. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11824. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  11825. _worksStudent[i].push({
  11826. userid: b[j].userid,
  11827. ateacher: b[j].ateacher,
  11828. wid: b[j].id,
  11829. works: b[j].content,
  11830. sName: b[j].name ? b[j].name : b[j].userid,
  11831. type: 12,
  11832. time: b[j].time,
  11833. score: b[j].score,
  11834. img: b[j].img,
  11835. likesCount: likesCount,
  11836. commentCount: commentCount,
  11837. isLikes: isLikes,
  11838. commentJson: commentJson,
  11839. });
  11840. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11841. } else if (a[i].tool[0] == 57 && b[j].atool == 57) {
  11842. _worksStudent[i].push({
  11843. userid: b[j].userid,
  11844. ateacher: b[j].ateacher,
  11845. wid: b[j].id,
  11846. works: b[j].content,
  11847. sName: b[j].name ? b[j].name : b[j].userid,
  11848. type: 12,
  11849. time: b[j].time,
  11850. score: b[j].score,
  11851. img: b[j].img,
  11852. likesCount: likesCount,
  11853. commentCount: commentCount,
  11854. isLikes: isLikes,
  11855. commentJson: commentJson,
  11856. });
  11857. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11858. }
  11859. }
  11860. }
  11861. if (_worksStudent[i] && _worksStudent[i].length) {
  11862. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  11863. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  11864. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  11865. var scoreA = parseFloat(jscoreA);
  11866. var scoreB = parseFloat(jscoreB);
  11867. if (scoreA == scoreB) {
  11868. return b.likesCount - a.likesCount;
  11869. }
  11870. return scoreB - scoreA;
  11871. });
  11872. if (this.isGroup) {
  11873. for (
  11874. var groupI = 0;
  11875. groupI < this.courseGroup.group.length;
  11876. groupI++
  11877. ) {
  11878. this.courseGroup.group[groupI].works[i] =
  11879. this.courseGroup.group[groupI].works[i].sort(function (
  11880. a,
  11881. b
  11882. ) {
  11883. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  11884. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  11885. var scoreA = parseFloat(jscoreA);
  11886. var scoreB = parseFloat(jscoreB);
  11887. if (scoreA == scoreB) {
  11888. return b.likesCount - a.likesCount;
  11889. }
  11890. return scoreB - scoreA;
  11891. });
  11892. }
  11893. }
  11894. }
  11895. }
  11896. for (var i = 0; i < a.length; i++) {
  11897. for (var j = 0; j < b.length; j++) {
  11898. var data = b[j];
  11899. if (i == b[j].tool) {
  11900. if (data.type == 2 || data.type == 8) {
  11901. for (var z = 0; z < this.checkJson[i].length; z++) {
  11902. this.checkJson[i][z].checkPerent = [];
  11903. this.checkJson[i][z].right = Math.round(
  11904. (this.checkJson[i][z].rightPerson.length /
  11905. parseInt(_worksStudent[i].length)) *
  11906. 100
  11907. );
  11908. let aaaa = this.checkJson[i][z];
  11909. console.log(aaaa);
  11910. for (
  11911. var k = 0;
  11912. k < this.checkJson[i][z].checkCount.length;
  11913. k++
  11914. ) {
  11915. this.checkJson[i][z].checkPerent.push(
  11916. Math.round(
  11917. (this.checkJson[i][z].checkCount[k] /
  11918. parseInt(_worksStudent[i].length)) *
  11919. 100
  11920. )
  11921. );
  11922. }
  11923. }
  11924. } else if (data.type == 9) {
  11925. for (var z = 0; z < this.checkJson[i].length; z++) {
  11926. this.checkJson[i][z].checkPerent = [];
  11927. this.checkJson[i][z].right = Math.round(
  11928. (this.checkJson[i][z].rightPerson.length /
  11929. this.checkJson[i][z].checkPerson.length) *
  11930. 100
  11931. );
  11932. }
  11933. }
  11934. }
  11935. }
  11936. }
  11937. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  11938. this.joinGroup(gindex);
  11939. }
  11940. this.worksStudent = _worksStudent;
  11941. this.selectWorksStudent();
  11942. })
  11943. .catch((err) => {
  11944. console.error(err);
  11945. });
  11946. },
  11947. pngToWhiteBg(file) {
  11948. const _file = file;
  11949. let read = new FileReader();
  11950. read.readAsDataURL(file); // 文件转base64
  11951. return new Promise((resolve, reject) => {
  11952. read.onload = (e) => {
  11953. let img = new Image();
  11954. img.src = e.target.result;
  11955. img.onload = async () => {
  11956. // 生成canvas
  11957. let canvas = document.createElement("canvas");
  11958. let context = canvas.getContext("2d");
  11959. // 绘制图片到canvas上
  11960. canvas.width = img.width;
  11961. canvas.height = img.height;
  11962. // 在canvas绘制前填充白色背景
  11963. context.fillStyle = "#fff";
  11964. context.fillRect(0, 0, canvas.width, canvas.height);
  11965. context.drawImage(img, 0, 0);
  11966. let base64 = canvas.toDataURL(file["type"], 1);
  11967. let newFile = this.dataUrlToFile(base64, _file);
  11968. resolve(newFile);
  11969. };
  11970. };
  11971. });
  11972. },
  11973. dataUrlToFile(dataurl, file) {
  11974. let arr = dataurl.split(","),
  11975. mime = arr[0].match(/:(.*?);/)[1],
  11976. bstr = atob(arr[1]),
  11977. n = bstr.length,
  11978. u8arr = new Uint8Array(n);
  11979. while (n--) {
  11980. u8arr[n] = bstr.charCodeAt(n);
  11981. }
  11982. // return new Blob([u8arr], { type: mime });
  11983. return new File([new Blob([u8arr], { type: mime })], file.name, {
  11984. type: mime,
  11985. });
  11986. },
  11987. async beforeUpload1(event, type, i) {
  11988. // this.$message.success('进入上传')
  11989. var file = "";
  11990. if (type == 5) {
  11991. file = event;
  11992. } else {
  11993. file = event.target.files[0];
  11994. }
  11995. var credentials = {
  11996. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11997. secretAccessKey: "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",
  11998. }; //秘钥形式的登录上传
  11999. window.AWS.config.update(credentials);
  12000. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12001. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  12002. var _this = this;
  12003. _this.progress = 0;
  12004. _this.proVisible = true;
  12005. _this.isFinishSize = 0;
  12006. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  12007. var b = [
  12008. "DOC",
  12009. "DOCX",
  12010. "DOCM",
  12011. "DOTM",
  12012. "DOTX",
  12013. "PPTX",
  12014. "PPSX",
  12015. "PPT",
  12016. "PPS",
  12017. "PPTM",
  12018. "POTM",
  12019. "PPAM",
  12020. "POTX",
  12021. "PPSM",
  12022. ];
  12023. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  12024. var photoA = [
  12025. "BMP",
  12026. "GIF",
  12027. "PNG",
  12028. "JPGE",
  12029. "JPEG",
  12030. "JPG",
  12031. "TIF",
  12032. "PCX",
  12033. "TGA",
  12034. "EXIF",
  12035. "FPX",
  12036. "SVG",
  12037. "APNG",
  12038. ];
  12039. // if (
  12040. // b.indexOf(
  12041. // file.name
  12042. // .split(".")
  12043. // [file.name.split(".").length - 1].toLocaleUpperCase()
  12044. // ) != -1
  12045. // ) {
  12046. // if (file.size / 1024 / 1024 > 10) {
  12047. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  12048. // return;
  12049. // }
  12050. // } else if (
  12051. // excelA.indexOf(
  12052. // file.name
  12053. // .split(".")
  12054. // [file.name.split(".").length - 1].toLocaleUpperCase()
  12055. // ) != "-1"
  12056. // ) {
  12057. // if (file.size / 1024 / 1024 > 5) {
  12058. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  12059. // return;
  12060. // }
  12061. // }
  12062. if (
  12063. photoA.indexOf(
  12064. file.name
  12065. .split(".")
  12066. [file.name.split(".").length - 1].toLocaleUpperCase()
  12067. ) != -1 &&
  12068. type != 4
  12069. ) {
  12070. // const blob = await imageConversion.compress(file, 0.8)
  12071. file = await this.pngToWhiteBg(file);
  12072. const blob = await imageConversion.compressAccurately(file, 256);
  12073. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  12074. file = new File([blob], file.name, { type: file.type });
  12075. }
  12076. if (file) {
  12077. var params = {
  12078. Key:
  12079. file.name.split(".")[0] +
  12080. new Date().getTime() +
  12081. "." +
  12082. file.name.split(".")[file.name.split(".").length - 1],
  12083. ContentType: file.type,
  12084. Body: file,
  12085. "Access-Control-Allow-Credentials": "*",
  12086. ACL: "public-read",
  12087. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  12088. var options = {
  12089. // partSize: 2048 * 1024 * 1024,
  12090. partSize: 1024 * 1024 * 1024,
  12091. queueSize: 2,
  12092. leavePartsOnError: true,
  12093. };
  12094. bucket
  12095. .upload(params, options)
  12096. .on("httpUploadProgress", function (evt) {
  12097. //这里可以写进度条
  12098. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  12099. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  12100. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  12101. })
  12102. .send(function (err, data) {
  12103. _this.progress = 100;
  12104. _this.isFinishSize = _this.isAllSize;
  12105. setTimeout(() => {
  12106. _this.proVisible = false;
  12107. }, 1000);
  12108. if (err) {
  12109. var a = _this.$refs.upload1.uploadFiles;
  12110. a.splice(a.length - 1, a.length);
  12111. _this.$message.error("上传失败");
  12112. } else {
  12113. // _this.$message.success('上传成功')
  12114. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12115. var c = [
  12116. "AVI",
  12117. "NAVI",
  12118. "MPEG",
  12119. "ASF",
  12120. "MOV",
  12121. "WMV",
  12122. "3GP",
  12123. "RM",
  12124. "RMVB",
  12125. "FLV",
  12126. "F4V",
  12127. "H.264",
  12128. "H.265",
  12129. "REAL VIDEO",
  12130. "MKV",
  12131. "WebM",
  12132. "HDDVD",
  12133. "MP4",
  12134. "MPG",
  12135. "M4V",
  12136. "MGV",
  12137. "OGV",
  12138. "QTM",
  12139. "STR",
  12140. "AMC",
  12141. "DVX",
  12142. "EVO",
  12143. "DAT",
  12144. "OGG",
  12145. "OGM",
  12146. ];
  12147. if (type == 1) {
  12148. _this.studyJuri[0].cover.push({
  12149. name: file.name,
  12150. url: data.Location,
  12151. uid: file.uid,
  12152. });
  12153. if (
  12154. c.indexOf(
  12155. _this.studyJuri[0].cover[0].url
  12156. .split(".")
  12157. [
  12158. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12159. ].toLocaleUpperCase()
  12160. ) != -1
  12161. ) {
  12162. _this.fileType = 2;
  12163. } else if (
  12164. b.indexOf(
  12165. _this.studyJuri[0].cover[0].url
  12166. .split(".")
  12167. [
  12168. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12169. ].toLocaleUpperCase()
  12170. ) != -1
  12171. ) {
  12172. _this.fileType = 1;
  12173. } else if (
  12174. photoA.indexOf(
  12175. _this.studyJuri[0].cover[0].url
  12176. .split(".")
  12177. [
  12178. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12179. ].toLocaleUpperCase()
  12180. ) != -1
  12181. ) {
  12182. _this.fileType = 0;
  12183. } else {
  12184. _this.fileType = 3;
  12185. }
  12186. _this.imgChange(null, null, type);
  12187. } else if (type == 2) {
  12188. _this.upToolImg = data.Location;
  12189. _this.imgChange(null, null, type);
  12190. _this.addCourseWorks(i);
  12191. } else if (type == 4) {
  12192. _this.addPz("3", data.Location);
  12193. } else if (type == 5) {
  12194. _this.addImgDrawImG(data.Location);
  12195. } else if (type == 6) {
  12196. var _ftype = 1;
  12197. if (
  12198. c.indexOf(
  12199. data.Location.split(".")[
  12200. data.Location.split(".").length - 1
  12201. ].toLocaleUpperCase()
  12202. ) != -1
  12203. ) {
  12204. _ftype = 5;
  12205. } else if (
  12206. b.indexOf(
  12207. data.Location.split(".")[
  12208. data.Location.split(".").length - 1
  12209. ].toLocaleUpperCase()
  12210. ) != -1
  12211. ) {
  12212. _ftype = 4;
  12213. } else {
  12214. _ftype = 1;
  12215. }
  12216. _this.plworkFile.push({
  12217. name: file.name,
  12218. url: data.Location,
  12219. uid: file.uid,
  12220. fileType: _ftype,
  12221. username:
  12222. _this.plworkFile.length > 10
  12223. ? _this.plworkFile.length + 1
  12224. : "0" + (_this.plworkFile.length + 1),
  12225. });
  12226. } else if (type == 7) {
  12227. _this.addCourseWorksGong(i, data.Location, 32);
  12228. } else if (type == 8) {
  12229. _this.addCourseWorksGong(i, data.Location, 57);
  12230. }
  12231. _this.imgChange(null, null, type);
  12232. console.log(data.Location);
  12233. // _this.$message.success('上传成功'+data.Location)
  12234. }
  12235. });
  12236. }
  12237. },
  12238. async beforeUpload3(event, type, i) {
  12239. // this.$message.success('进入上传')
  12240. let file = "";
  12241. let cfindex2 = 0;
  12242. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  12243. file = event.target.files[cfindex];
  12244. var credentials = {
  12245. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12246. secretAccessKey: "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",
  12247. }; //秘钥形式的登录上传
  12248. window.AWS.config.update(credentials);
  12249. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12250. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  12251. var _this = this;
  12252. // _this.progress = 0;
  12253. _this.proVisible2 = true;
  12254. var b = [
  12255. "DOC",
  12256. "DOCX",
  12257. "DOCM",
  12258. "DOTM",
  12259. "DOTX",
  12260. "PPTX",
  12261. "PPSX",
  12262. "PPT",
  12263. "PPS",
  12264. "PPTM",
  12265. "POTM",
  12266. "PPAM",
  12267. "POTX",
  12268. "PPSM",
  12269. ];
  12270. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  12271. var photoA = [
  12272. "BMP",
  12273. "GIF",
  12274. "PNG",
  12275. "JPGE",
  12276. "JPG",
  12277. "TIF",
  12278. "PCX",
  12279. "TGA",
  12280. "EXIF",
  12281. "FPX",
  12282. "SVG",
  12283. "APNG",
  12284. ];
  12285. if (
  12286. photoA.indexOf(
  12287. file.name
  12288. .split(".")
  12289. [file.name.split(".").length - 1].toLocaleUpperCase()
  12290. ) != -1 &&
  12291. type != 4
  12292. ) {
  12293. // const blob = await imageConversion.compress(file, 0.8)
  12294. file = await this.pngToWhiteBg(file);
  12295. const blob = await imageConversion.compressAccurately(file, 256);
  12296. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  12297. file = new File([blob], file.name, { type: file.type });
  12298. }
  12299. if (file) {
  12300. var params = {
  12301. Key:
  12302. file.name.split(".")[0] +
  12303. new Date().getTime() +
  12304. "." +
  12305. file.name.split(".")[file.name.split(".").length - 1],
  12306. ContentType: file.type,
  12307. Body: file,
  12308. "Access-Control-Allow-Credentials": "*",
  12309. ACL: "public-read",
  12310. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  12311. var options = {
  12312. // partSize: 2048 * 1024 * 1024,
  12313. partSize: 1024 * 1024 * 1024,
  12314. queueSize: 2,
  12315. leavePartsOnError: true,
  12316. };
  12317. bucket
  12318. .upload(params, options)
  12319. .on("httpUploadProgress", function (evt) {
  12320. //这里可以写进度条
  12321. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  12322. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  12323. })
  12324. .send(function (err, data) {
  12325. // _this.progress = 100;
  12326. cfindex2++;
  12327. setTimeout(() => {
  12328. if (
  12329. cfindex2 == event.target.files.length - 1 ||
  12330. cfindex2 > event.target.files.length - 1
  12331. ) {
  12332. _this.proVisible2 = false;
  12333. }
  12334. }, 1000);
  12335. if (err) {
  12336. var a = _this.$refs.upload1.uploadFiles;
  12337. a.splice(a.length - 1, a.length);
  12338. _this.$message.error("上传失败");
  12339. } else {
  12340. // _this.$message.success('上传成功')
  12341. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12342. var c = [
  12343. "AVI",
  12344. "NAVI",
  12345. "MPEG",
  12346. "ASF",
  12347. "MOV",
  12348. "WMV",
  12349. "3GP",
  12350. "RM",
  12351. "RMVB",
  12352. "FLV",
  12353. "F4V",
  12354. "H.264",
  12355. "H.265",
  12356. "REAL VIDEO",
  12357. "MKV",
  12358. "WebM",
  12359. "HDDVD",
  12360. "MP4",
  12361. "MPG",
  12362. "M4V",
  12363. "MGV",
  12364. "OGV",
  12365. "QTM",
  12366. "STR",
  12367. "AMC",
  12368. "DVX",
  12369. "EVO",
  12370. "DAT",
  12371. "OGG",
  12372. "OGM",
  12373. ];
  12374. if (type == 1) {
  12375. _this.studyJuri[0].cover.push({
  12376. name: file.name,
  12377. url: data.Location,
  12378. uid: file.uid,
  12379. });
  12380. if (
  12381. c.indexOf(
  12382. _this.studyJuri[0].cover[0].url
  12383. .split(".")
  12384. [
  12385. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12386. ].toLocaleUpperCase()
  12387. ) != -1
  12388. ) {
  12389. _this.fileType = 2;
  12390. } else if (
  12391. b.indexOf(
  12392. _this.studyJuri[0].cover[0].url
  12393. .split(".")
  12394. [
  12395. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12396. ].toLocaleUpperCase()
  12397. ) != -1
  12398. ) {
  12399. _this.fileType = 1;
  12400. } else {
  12401. _this.fileType = 0;
  12402. }
  12403. _this.imgChange(null, null, type);
  12404. } else if (type == 2) {
  12405. _this.upToolImg = data.Location;
  12406. _this.imgChange(null, null, type);
  12407. _this.addCourseWorks(i);
  12408. } else if (type == 4) {
  12409. _this.addPz("3", data.Location);
  12410. } else if (type == 5) {
  12411. _this.addImgDrawImG(data.Location);
  12412. } else if (type == 6) {
  12413. var _ftype = 1;
  12414. if (
  12415. c.indexOf(
  12416. data.Location.split(".")[
  12417. data.Location.split(".").length - 1
  12418. ].toLocaleUpperCase()
  12419. ) != -1
  12420. ) {
  12421. _ftype = 5;
  12422. } else if (
  12423. b.indexOf(
  12424. data.Location.split(".")[
  12425. data.Location.split(".").length - 1
  12426. ].toLocaleUpperCase()
  12427. ) != -1
  12428. ) {
  12429. _ftype = 4;
  12430. } else {
  12431. _ftype = 1;
  12432. }
  12433. _this.plworkFile.push({
  12434. name: file.name,
  12435. url: data.Location,
  12436. uid: file.uid,
  12437. fileType: _ftype,
  12438. username:
  12439. _this.plworkFile.length + 1 > 9
  12440. ? _this.plworkFile.length + 1
  12441. : "0" + (_this.plworkFile.length + 1),
  12442. });
  12443. }
  12444. _this.imgChange(null, null, type);
  12445. console.log(data.Location);
  12446. // _this.$message.success('上传成功'+data.Location)
  12447. }
  12448. });
  12449. }
  12450. }
  12451. },
  12452. beforeUpload2(event, type) {
  12453. var file = event.target.files[0];
  12454. var credentials = {
  12455. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12456. secretAccessKey: "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",
  12457. }; //秘钥形式的登录上传
  12458. window.AWS.config.update(credentials);
  12459. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12460. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  12461. var _this = this;
  12462. _this.progress = 0;
  12463. _this.proVisible = true;
  12464. if (file) {
  12465. var params = {
  12466. Key:
  12467. file.name.split(".")[0] +
  12468. new Date().getTime() +
  12469. "." +
  12470. file.name.split(".")[file.name.split(".").length - 1],
  12471. ContentType: file.type,
  12472. Body: file,
  12473. "Access-Control-Allow-Credentials": "*",
  12474. ACL: "public-read",
  12475. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  12476. var options = {
  12477. partSize: 2048 * 1024 * 1024,
  12478. queueSize: 2,
  12479. leavePartsOnError: true,
  12480. };
  12481. bucket
  12482. .upload(params, options)
  12483. .on("httpUploadProgress", function (evt) {
  12484. //这里可以写进度条
  12485. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  12486. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  12487. })
  12488. .send(function (err, data) {
  12489. _this.progress = 100;
  12490. setTimeout(() => {
  12491. _this.proVisible = false;
  12492. }, 1000);
  12493. if (err) {
  12494. var a = _this.$refs.upload1.uploadFiles;
  12495. a.splice(a.length - 1, a.length);
  12496. _this.$message.error("上传失败");
  12497. } else {
  12498. if (type == 2) {
  12499. _this.studyJuri[0].upVedio.push({
  12500. name: file.name,
  12501. url: data.Location,
  12502. uid: file.uid,
  12503. });
  12504. _this.imgChange(null, null, type);
  12505. } else if (type == 3) {
  12506. _this.studyJuri[0].upFile.push({
  12507. name: file.name,
  12508. url: data.Location,
  12509. uid: file.uid,
  12510. });
  12511. _this.imgChange(null, null, type);
  12512. }
  12513. console.log(data.Location);
  12514. }
  12515. });
  12516. }
  12517. },
  12518. allScrell() {
  12519. window.parent.postMessage({ allScreen: this.screenType }, "*");
  12520. },
  12521. nextOrpreSteps(t) {
  12522. if (this.IsFollow && this.tType == 2) {
  12523. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  12524. return;
  12525. }
  12526. var b = this.chapInfoList.length - 1;
  12527. if (t == 0) {
  12528. if (this.courseType == 0) {
  12529. if (this.taskCount == 0) {
  12530. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  12531. if (this.IsLookOpen) {
  12532. if (
  12533. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  12534. ) {
  12535. if (
  12536. this.courseDetail.userid != this.userid &&
  12537. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  12538. ) {
  12539. this.$message.error("任务未解锁");
  12540. } else {
  12541. this.$message.error("上一任务未解锁");
  12542. }
  12543. return;
  12544. }
  12545. }
  12546. this.navList[this.courseType].isOpen = false;
  12547. this.courseType = b;
  12548. this.taskCount =
  12549. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  12550. .length - 1;
  12551. this.navList[this.courseType].isOpen = true;
  12552. } else {
  12553. this.taskCount--;
  12554. }
  12555. } else {
  12556. if (this.taskCount == 0) {
  12557. this.navList[this.courseType].isOpen = false;
  12558. this.courseType--;
  12559. this.taskCount =
  12560. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  12561. .length - 1;
  12562. this.navList[this.courseType].isOpen = true;
  12563. } else {
  12564. this.taskCount--;
  12565. }
  12566. }
  12567. } else {
  12568. if (this.courseType == b) {
  12569. if (
  12570. this.taskCount ==
  12571. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  12572. 1
  12573. ) {
  12574. this.navList[this.courseType].isOpen = false;
  12575. this.courseType = 0;
  12576. this.taskCount = 0;
  12577. this.navList[this.courseType].isOpen = true;
  12578. } else {
  12579. var bbb = parseInt(this.taskCount) + 1;
  12580. if (
  12581. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  12582. .isLook &&
  12583. this.courseDetail.userid != this.userid &&
  12584. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  12585. this.IsLookOpen
  12586. ) {
  12587. this.$message.error("任务未解锁");
  12588. return;
  12589. }
  12590. this.taskCount++;
  12591. if (this.IsLookOpen) {
  12592. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12593. this.taskCount
  12594. ].isLook = true;
  12595. this.addCourseState(3);
  12596. }
  12597. }
  12598. } else {
  12599. if (
  12600. this.taskCount ==
  12601. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  12602. 1
  12603. ) {
  12604. var bbb = parseInt(this.courseType) + 1;
  12605. if (
  12606. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  12607. this.courseDetail.userid != this.userid &&
  12608. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  12609. this.IsLookOpen
  12610. ) {
  12611. this.$message.error("任务未解锁");
  12612. return;
  12613. }
  12614. this.navList[this.courseType].isOpen = false;
  12615. this.courseType++;
  12616. this.taskCount = 0;
  12617. this.navList[this.courseType].isOpen = true;
  12618. } else {
  12619. var bbb = parseInt(this.taskCount) + 1;
  12620. if (
  12621. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  12622. .isLook &&
  12623. this.courseDetail.userid != this.userid &&
  12624. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  12625. this.IsLookOpen
  12626. ) {
  12627. this.$message.error("任务未解锁");
  12628. return;
  12629. }
  12630. this.taskCount++;
  12631. }
  12632. if (this.IsLookOpen) {
  12633. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12634. this.taskCount
  12635. ].isLook = true;
  12636. this.addCourseState(3);
  12637. }
  12638. }
  12639. // if (
  12640. // this.taskCount ==
  12641. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  12642. // ) {
  12643. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  12644. // } else {
  12645. // this.taskCount++;
  12646. // }
  12647. }
  12648. document.scrollingElement.scrollTop = 0;
  12649. this.showType = 0;
  12650. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  12651. // if (this.vedio[this.taskCount].length > 0) {
  12652. // var a =
  12653. // document.getElementsByClassName("box_course")[this.taskCount]
  12654. // .offsetHeight;
  12655. // document.getElementsByClassName("vedioList")[
  12656. // this.taskCount
  12657. // ].style.height = a + "px";
  12658. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  12659. // a - 40 + "px";
  12660. // }
  12661. this.isNoHomeWork = false;
  12662. (this.studyJuri = [
  12663. {
  12664. content: "",
  12665. cover: [],
  12666. upVedio: [],
  12667. upFile: [],
  12668. },
  12669. ]),
  12670. (this.radio = []);
  12671. this.isClickNav = "";
  12672. this.selectPz();
  12673. this.getHomeWork();
  12674. this.getCourseDetail(2);
  12675. this.$forceUpdate();
  12676. },
  12677. openTask(s, n, i) {
  12678. if (this.IsFollow && this.tType == 2) {
  12679. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  12680. return;
  12681. }
  12682. if (this.IsLookOpen) {
  12683. if (
  12684. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  12685. this.courseDetail.userid != this.userid &&
  12686. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  12687. ) {
  12688. this.$message.error("任务未解锁");
  12689. return;
  12690. }
  12691. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  12692. if (
  12693. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  12694. .isLook
  12695. ) {
  12696. this.$message.error("上一任务未解锁");
  12697. return;
  12698. }
  12699. } else if (s > this.courseType) {
  12700. if (n > 0) {
  12701. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  12702. this.$message.error("上一任务未解锁");
  12703. return;
  12704. }
  12705. } else {
  12706. if (
  12707. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  12708. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  12709. ].isLook
  12710. ) {
  12711. this.$message.error("上一任务未解锁");
  12712. return;
  12713. }
  12714. }
  12715. }
  12716. }
  12717. this.courseType = s;
  12718. this.navId = i;
  12719. this.taskCount = n;
  12720. if (this.IsLookOpen) {
  12721. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12722. this.taskCount
  12723. ].isLook = true;
  12724. this.addCourseState(3);
  12725. }
  12726. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  12727. this.isCloseList[ci].isClose = 0;
  12728. }
  12729. this.showType = 0;
  12730. this.isNoHomeWork = false;
  12731. (this.studyJuri = [
  12732. {
  12733. content: "",
  12734. cover: [],
  12735. upVedio: [],
  12736. upFile: [],
  12737. },
  12738. ]),
  12739. (this.radio = []);
  12740. document.scrollingElement.scrollTop = 0;
  12741. // setTimeout(() => {
  12742. // let a = document.getElementById(i);
  12743. // if (a.offsetTop - 110 == 0) {
  12744. // window.scrollTo(0, 0);
  12745. // } else {
  12746. // window.scrollTo(0, a.offsetTop);
  12747. // }
  12748. // }, 0);
  12749. this.selectPz();
  12750. this.getHomeWork();
  12751. this.getCourseDetail(2);
  12752. },
  12753. get(i) {
  12754. if (this.IsFollow && this.tType == 2) {
  12755. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  12756. return;
  12757. }
  12758. this.navList[i].isOpen = !this.navList[i].isOpen;
  12759. },
  12760. addQuestion() {
  12761. this.answerList.push({
  12762. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  12763. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  12764. });
  12765. let params = [
  12766. {
  12767. uid: this.userid,
  12768. cid: this.id,
  12769. stage: this.courseType,
  12770. task: this.taskCount,
  12771. tool: this.toolindex,
  12772. content: JSON.stringify(this.answerList),
  12773. type: 3,
  12774. },
  12775. ];
  12776. this.ajax
  12777. .post(this.$store.state.api + "addCourseWorks", params)
  12778. .then((res) => {
  12779. this.$message({
  12780. message: "提交成功",
  12781. type: "success",
  12782. });
  12783. this.answerList = [];
  12784. this.answerDialogVisible = false;
  12785. this.selectStudent();
  12786. this.selectSWorks();
  12787. this.selectSLook();
  12788. })
  12789. .catch((err) => {
  12790. this.$message.error("提交失败");
  12791. console.error(err);
  12792. });
  12793. },
  12794. addQuestionTeacher() {
  12795. this.answerList.push({
  12796. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  12797. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  12798. });
  12799. let params = [
  12800. {
  12801. uid: this.sStudent.userid,
  12802. cid: this.id,
  12803. stage: this.courseType,
  12804. task: this.taskCount,
  12805. tool: this.toolindex,
  12806. content: JSON.stringify(this.answerList),
  12807. type: 3,
  12808. ateacher: this.userid,
  12809. },
  12810. ];
  12811. this.ajax
  12812. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12813. .then((res) => {
  12814. this.$message({
  12815. message: "提交成功",
  12816. type: "success",
  12817. });
  12818. this.answerList = [];
  12819. this.questionAnswer = "";
  12820. this.answerDialogVisibleTeacher = false;
  12821. this.selectStudent();
  12822. this.selectSWorks();
  12823. this.selectSLook();
  12824. })
  12825. .catch((err) => {
  12826. this.$message.error("提交失败");
  12827. console.error(err);
  12828. });
  12829. },
  12830. refreshCourse() {
  12831. // window.location.reload();
  12832. this.navList = [];
  12833. this.getCourseDetail(1);
  12834. },
  12835. getCourseDetail(type, gindex) {
  12836. let loading;
  12837. if (type != 2) {
  12838. loading = this.$loading.service({
  12839. background: "rgba(255, 255, 255, 0.7)",
  12840. target: document.querySelector(".student_table"),
  12841. });
  12842. }
  12843. // this.navList[0].isOpen = false;
  12844. // this.navList[this.courseType].isOpen = true;
  12845. // this.courseType = this.courseTypeLine;
  12846. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  12847. let params = {
  12848. courseId: this.id,
  12849. };
  12850. this.ajax
  12851. .get(this.$store.state.api + "selectCourseDetail3", params)
  12852. .then((res) => {
  12853. if (type != 2) {
  12854. loading.close();
  12855. if (
  12856. this.courseType >
  12857. JSON.parse(res.data[0][0].chapters).length - 1
  12858. ) {
  12859. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  12860. }
  12861. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  12862. .chapterInfo[0].taskJson;
  12863. var b = [
  12864. "AVI",
  12865. "NAVI",
  12866. "MPEG",
  12867. "ASF",
  12868. "MOV",
  12869. "WMV",
  12870. "3GP",
  12871. "RM",
  12872. "RMVB",
  12873. "FLV",
  12874. "F4V",
  12875. "H.264",
  12876. "H.265",
  12877. "REAL VIDEO",
  12878. "MKV",
  12879. "WebM",
  12880. "HDDVD",
  12881. "MP4",
  12882. "MPG",
  12883. "M4V",
  12884. "MGV",
  12885. "OGV",
  12886. "QTM",
  12887. "STR",
  12888. "AMC",
  12889. "DVX",
  12890. "EVO",
  12891. "DAT",
  12892. "OGG",
  12893. "OGM",
  12894. "MP3",
  12895. ];
  12896. for (var i = 0; i < a.length; i++) {
  12897. var c = a[i].chapterData;
  12898. this.vedio[i] = [];
  12899. this.textList[i] = [];
  12900. this.lineList[i] = [];
  12901. this.chapToolList[i] = [];
  12902. this.file[i] = [];
  12903. this.fileC[i] = [];
  12904. for (var j = 0; j < c.length; j++) {
  12905. if (c[j].type == 7) {
  12906. this.chapToolList[i].push(c[j]);
  12907. } else if (c[j].type == 8) {
  12908. this.lineList[i].push(c[j]);
  12909. } else if (c[j].type == 6) {
  12910. this.textList[i].push(c[j]);
  12911. } else if (c[j].type == 12) {
  12912. this.fileC[i].push(c[j]);
  12913. } else {
  12914. if (
  12915. b.indexOf(
  12916. c[j].url
  12917. .split(".")
  12918. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  12919. ) != -1
  12920. ) {
  12921. this.vedio[i].push(c[j]);
  12922. } else {
  12923. this.file[i].push(c[j]);
  12924. }
  12925. }
  12926. }
  12927. var d = JSON.parse(JSON.stringify(this.playerOptions));
  12928. d.sources[0].src =
  12929. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  12930. this.playerO[i] = d;
  12931. }
  12932. this.courseDetail = res.data[0][0];
  12933. this.tcid = this.arrayToArray(
  12934. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  12935. this.tcid2 ? this.tcid2.split(",") : []
  12936. ).join(",");
  12937. console.log(this.tcid);
  12938. this.evalua = res.data[0][0].evaId;
  12939. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  12940. this.courseType
  12941. ];
  12942. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  12943. if (this.tcid && res.data[1].length) {
  12944. let _inviteA = [];
  12945. for (var ik = 0; ik < res.data[1].length; ik++) {
  12946. _inviteA.push({
  12947. cid: res.data[1][ik].classid,
  12948. ic: res.data[1][ik].code,
  12949. });
  12950. }
  12951. for (var ik = 0; ik < _inviteA.length; ik++) {
  12952. if (
  12953. this.arrayToArray(
  12954. _inviteA[ik].cid.split(","),
  12955. this.tcid.split(",")
  12956. ).length
  12957. ) {
  12958. this.inviteCode = _inviteA[ik].ic;
  12959. break;
  12960. }
  12961. }
  12962. }
  12963. for (var l = 0; l < this.chapInfoList.length; l++) {
  12964. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  12965. for (var m = 0; m < w.length; m++) {
  12966. w[m].id = l + "-" + m;
  12967. }
  12968. }
  12969. if (
  12970. !this.vedio[this.taskCount][0] ||
  12971. this.vedio[this.taskCount][0].url == ""
  12972. ) {
  12973. if (
  12974. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12975. this.taskCount
  12976. ].chapterData.length > 0
  12977. ) {
  12978. // if (
  12979. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12980. // this.taskCount
  12981. // ].chapterData[0].type != 8
  12982. // ) {
  12983. let _url =
  12984. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12985. this.taskCount
  12986. ].chapterData[0].url;
  12987. if (
  12988. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12989. this.taskCount
  12990. ].chapterData[0].type == 8
  12991. ) {
  12992. this.showType = 2;
  12993. if (
  12994. _url.indexOf("https://") == -1 &&
  12995. _url.indexOf("http://") == -1
  12996. ) {
  12997. _url = "https://" + _url;
  12998. }
  12999. this.pptImgUrl1 = _url;
  13000. this.isClickNav = "line0";
  13001. } else if (
  13002. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13003. this.taskCount
  13004. ].chapterData[0].type == 3
  13005. ) {
  13006. if (
  13007. _url
  13008. .split(".")
  13009. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13010. ) {
  13011. this.showType = 3;
  13012. this.pptImgUrl1 = _url;
  13013. this.isClickNav = "word0";
  13014. } else if (
  13015. this.isAssetTypeAnImage(
  13016. _url
  13017. .split(".")
  13018. [_url.split(".").length - 1].toLocaleLowerCase()
  13019. )
  13020. ) {
  13021. this.showType = 4;
  13022. this.pptImgUrl1 = _url;
  13023. this.isClickNav = "word0";
  13024. } else {
  13025. this.showType = 2;
  13026. this.pptImgUrl1 =
  13027. "https://view.officeapps.live.com/op/view.aspx?src=" +
  13028. _url;
  13029. this.isClickNav = "word0";
  13030. }
  13031. } else if (
  13032. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13033. this.taskCount
  13034. ].chapterData[0].type == 6
  13035. ) {
  13036. this.showType = 1;
  13037. this.text = this.textList[this.taskCount][0];
  13038. this.isClickNav = "text0";
  13039. }
  13040. }
  13041. } else {
  13042. this.showType = 0;
  13043. this.isClickNav = "video0";
  13044. }
  13045. } else {
  13046. this.showType = 0;
  13047. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  13048. .chapterInfo[0].taskJson;
  13049. var b = [
  13050. "AVI",
  13051. "NAVI",
  13052. "MPEG",
  13053. "ASF",
  13054. "MOV",
  13055. "WMV",
  13056. "3GP",
  13057. "RM",
  13058. "RMVB",
  13059. "FLV",
  13060. "F4V",
  13061. "H.264",
  13062. "H.265",
  13063. "REAL VIDEO",
  13064. "MKV",
  13065. "WebM",
  13066. "HDDVD",
  13067. "MP4",
  13068. "MPG",
  13069. "M4V",
  13070. "MGV",
  13071. "OGV",
  13072. "QTM",
  13073. "STR",
  13074. "AMC",
  13075. "DVX",
  13076. "EVO",
  13077. "DAT",
  13078. "OGG",
  13079. "OGM",
  13080. "MP3",
  13081. ];
  13082. for (var i = 0; i < a.length; i++) {
  13083. var c = a[i].chapterData;
  13084. this.vedio[i] = [];
  13085. this.textList[i] = [];
  13086. this.lineList[i] = [];
  13087. this.chapToolList[i] = [];
  13088. this.file[i] = [];
  13089. this.fileC[i] = [];
  13090. for (var j = 0; j < c.length; j++) {
  13091. if (c[j].type == 7) {
  13092. this.chapToolList[i].push(c[j]);
  13093. } else if (c[j].type == 8) {
  13094. this.lineList[i].push(c[j]);
  13095. } else if (c[j].type == 6) {
  13096. this.textList[i].push(c[j]);
  13097. } else if (c[j].type == 12) {
  13098. this.fileC[i].push(c[j]);
  13099. } else {
  13100. if (
  13101. b.indexOf(
  13102. c[j].url
  13103. .split(".")
  13104. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  13105. ) != -1
  13106. ) {
  13107. this.vedio[i].push(c[j]);
  13108. } else {
  13109. this.file[i].push(c[j]);
  13110. }
  13111. }
  13112. }
  13113. var d = JSON.parse(JSON.stringify(this.playerOptions));
  13114. d.sources[0].src =
  13115. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  13116. this.playerO[i] = d;
  13117. }
  13118. if (
  13119. !this.vedio[this.taskCount][0] ||
  13120. this.vedio[this.taskCount][0].url == ""
  13121. ) {
  13122. if (
  13123. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13124. this.taskCount
  13125. ].chapterData.length > 0
  13126. ) {
  13127. // if (
  13128. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13129. // this.taskCount
  13130. // ].chapterData[0].type != 8
  13131. // ) {
  13132. let _url =
  13133. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13134. this.taskCount
  13135. ].chapterData[0].url;
  13136. if (
  13137. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13138. this.taskCount
  13139. ].chapterData[0].type == 8
  13140. ) {
  13141. this.showType = 2;
  13142. if (
  13143. _url.indexOf("https://") == -1 &&
  13144. _url.indexOf("http://") == -1
  13145. ) {
  13146. _url = "https://" + _url;
  13147. }
  13148. this.pptImgUrl1 = _url;
  13149. this.isClickNav = "line0";
  13150. } else if (
  13151. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13152. this.taskCount
  13153. ].chapterData[0].type == 3
  13154. ) {
  13155. if (
  13156. _url
  13157. .split(".")
  13158. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13159. ) {
  13160. this.showType = 3;
  13161. this.pptImgUrl1 = _url;
  13162. this.isClickNav = "word0";
  13163. } else if (
  13164. this.isAssetTypeAnImage(
  13165. _url
  13166. .split(".")
  13167. [_url.split(".").length - 1].toLocaleLowerCase()
  13168. )
  13169. ) {
  13170. this.showType = 4;
  13171. this.pptImgUrl1 = _url;
  13172. this.isClickNav = "word0";
  13173. } else {
  13174. this.showType = 2;
  13175. this.pptImgUrl1 =
  13176. "https://view.officeapps.live.com/op/view.aspx?src=" +
  13177. _url;
  13178. this.isClickNav = "word0";
  13179. }
  13180. } else if (
  13181. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13182. this.taskCount
  13183. ].chapterData[0].type == 6
  13184. ) {
  13185. this.showType = 1;
  13186. this.text = this.textList[this.taskCount][0];
  13187. this.isClickNav = "text0";
  13188. }
  13189. }
  13190. } else {
  13191. this.showType = 0;
  13192. this.isClickNav = "video0";
  13193. }
  13194. this.$forceUpdate();
  13195. }
  13196. // else {
  13197. // this.courseDetail = res.data[0][0];
  13198. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  13199. // }
  13200. let _this = this;
  13201. if (_this.timer) {
  13202. clearInterval(_this.timer);
  13203. _this.timer = null;
  13204. }
  13205. if (_this.tcid) {
  13206. _this.getCourseGroup(gindex);
  13207. } else {
  13208. _this.selectSWorks(gindex);
  13209. }
  13210. _this.selectStudent();
  13211. _this.selectSLook();
  13212. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  13213. _this.setCTask();
  13214. }
  13215. if (_this.dialogVisibleGroup) {
  13216. _this.groupJson =
  13217. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  13218. _this.taskCount
  13219. ].toolChoose[_this.toolindex].groupJson;
  13220. }
  13221. _this.$nextTick(() => {
  13222. setTimeout(() => {
  13223. _this.checkEva();
  13224. }, 1000);
  13225. });
  13226. _this.timer = setInterval(function () {
  13227. // _this.getCourseDetail(2);
  13228. if (_this.tcid) {
  13229. _this.getCourseGroup(gindex);
  13230. } else {
  13231. _this.selectSWorks(gindex);
  13232. }
  13233. _this.selectStudent();
  13234. _this.selectSLook();
  13235. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  13236. _this.setCTask();
  13237. }
  13238. if (_this.dialogVisibleGroup) {
  13239. _this.groupJson =
  13240. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  13241. _this.taskCount
  13242. ].toolChoose[_this.toolindex].groupJson;
  13243. }
  13244. if (_this.tType == 4 || _this.ispzType == 4) {
  13245. _this.selectPz();
  13246. }
  13247. }, 5000);
  13248. _this.$nextTick(function () {
  13249. setTimeout(() => {
  13250. // var a =
  13251. // document.getElementsByClassName("box_course")[0].offsetHeight;
  13252. // document.getElementsByClassName("vedioList")[0].style.height =
  13253. // a + "px";
  13254. // document.getElementsByClassName("navBox")[0].style.height =
  13255. // a - 40 + "px";
  13256. // if (_this.vedio[_this.taskCount].length > 0) {
  13257. // _this.vedioTime = [];
  13258. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  13259. // _this.vedioTime[i] = document.getElementsByClassName(
  13260. // "vjs-duration-display"
  13261. // )[i].textContent;
  13262. // }
  13263. // }
  13264. }, 1000);
  13265. });
  13266. })
  13267. .catch((err) => {
  13268. loading.close();
  13269. console.error(err);
  13270. });
  13271. },
  13272. getCourseGroup(gindex) {
  13273. let params = {
  13274. cid: this.id,
  13275. classid: this.tcid ? this.tcid : "1",
  13276. };
  13277. this.ajax
  13278. .get(this.$store.state.api + "getCourseGroup", params)
  13279. .then((res) => {
  13280. if (res.data && res.data[0].length) {
  13281. if (!this.isGroup) {
  13282. let courseGroup = JSON.parse(res.data[0][0].group);
  13283. courseGroup.group = courseGroup.group.filter((el) => {
  13284. el.works = [];
  13285. return el;
  13286. });
  13287. this.courseGroup = courseGroup;
  13288. let groupPerson = res.data[1];
  13289. let group = JSON.parse(res.data[0][0].group).group;
  13290. let courseGroupStudent = {};
  13291. let courseGroupStudentUid = {};
  13292. for (var i = 0; i < group.length; i++) {
  13293. courseGroupStudent[group[i].id] = [];
  13294. courseGroupStudentUid[group[i].id] = [];
  13295. for (var j = 0; j < groupPerson.length; j++) {
  13296. if (groupPerson[j].groupCid == group[i].id) {
  13297. courseGroupStudent[group[i].id].push(groupPerson[j]);
  13298. courseGroupStudentUid[group[i].id].push(
  13299. groupPerson[j].userid
  13300. );
  13301. }
  13302. }
  13303. }
  13304. this.courseGroupStudent = courseGroupStudent;
  13305. this.courseGroupStudentUid = courseGroupStudentUid;
  13306. }
  13307. this.isGroup = true;
  13308. this.selectSWorks(gindex);
  13309. } else {
  13310. this.selectSWorks(gindex);
  13311. this.isGroup = false;
  13312. }
  13313. })
  13314. .catch((err) => {
  13315. // this.$message.error("网络不佳");
  13316. console.error(err);
  13317. });
  13318. },
  13319. setOperationTime() {
  13320. let _this = this;
  13321. if (_this.opertimer) {
  13322. clearInterval(_this.opertimer);
  13323. _this.opertimer = null;
  13324. }
  13325. _this.opertimer = setInterval(() => {
  13326. _this.setoTime("600");
  13327. }, 600000);
  13328. },
  13329. setoTime(time) {
  13330. let params = [
  13331. {
  13332. uid: this.userid,
  13333. cid: this.id,
  13334. type: "2",
  13335. time: time,
  13336. },
  13337. ];
  13338. this.ajax
  13339. .post(this.$store.state.api + "addOperationTimeT2", params)
  13340. .then((res) => {})
  13341. .catch((err) => {
  13342. console.error(err);
  13343. });
  13344. },
  13345. addPz(type, content) {
  13346. if (type == "1" && this.pzConText == "") {
  13347. this.$message.error("批注不能为空!");
  13348. return;
  13349. }
  13350. let params = [
  13351. {
  13352. cid: this.id,
  13353. uid: this.userid,
  13354. s: this.courseType,
  13355. t: this.taskCount,
  13356. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  13357. type: type,
  13358. },
  13359. ];
  13360. this.ajax
  13361. .post(this.$store.state.api + "addPz2", params)
  13362. .then((res) => {
  13363. this.$message({
  13364. message: "添加成功",
  13365. type: "success",
  13366. });
  13367. this.pzConText = "";
  13368. this.addPzDialog = false;
  13369. this.selectPz();
  13370. })
  13371. .catch((err) => {
  13372. this.$message.error("添加失败");
  13373. console.error(err);
  13374. });
  13375. },
  13376. deletePz(id) {
  13377. this.$confirm("确定删除此批注吗?", "提示", {
  13378. confirmButtonText: "确定",
  13379. cancelButtonText: "取消",
  13380. type: "warning",
  13381. })
  13382. .then(() => {
  13383. let params = [
  13384. {
  13385. id: id,
  13386. },
  13387. ];
  13388. this.ajax
  13389. .post(this.$store.state.api + "deletePz", params)
  13390. .then((res) => {
  13391. this.$message({
  13392. message: "删除成功",
  13393. type: "success",
  13394. });
  13395. this.selectPz();
  13396. })
  13397. .catch((err) => {
  13398. this.$message.error("网络异常");
  13399. console.error(err);
  13400. });
  13401. })
  13402. .catch(() => {});
  13403. },
  13404. setPz() {
  13405. if (this.ispzType == 4) {
  13406. this.ispzType = 0;
  13407. this.pzDialog = false;
  13408. return;
  13409. }
  13410. this.ispzType = 4;
  13411. this.pzDialog = true;
  13412. this.selectPz();
  13413. },
  13414. selectPz() {
  13415. let params = {
  13416. cid: this.id,
  13417. s: this.courseType,
  13418. t: this.taskCount,
  13419. };
  13420. this.ajax
  13421. .get(this.$store.state.api + "selectPzList", params)
  13422. .then((res) => {
  13423. this.pzList = res.data[0];
  13424. })
  13425. .catch((err) => {
  13426. console.error(err);
  13427. });
  13428. },
  13429. updateSLook() {
  13430. let params = {
  13431. sopen: this.sIsOpen == false ? 1 : 2,
  13432. cid: this.id,
  13433. };
  13434. this.ajax
  13435. .get(this.$store.state.api + "updateCourseSLook", params)
  13436. .then((res) => {
  13437. if (this.sIsOpen == true) {
  13438. this.$message({
  13439. message: "权限设置成功",
  13440. type: "success",
  13441. });
  13442. } else {
  13443. this.$message({
  13444. message: "权限关闭成功",
  13445. type: "success",
  13446. });
  13447. }
  13448. })
  13449. .catch((err) => {
  13450. console.error(err);
  13451. });
  13452. },
  13453. updateFollow() {
  13454. let params = [
  13455. {
  13456. sopen: this.IsFollow == false ? 1 : 2,
  13457. cid: this.id,
  13458. },
  13459. ];
  13460. this.ajax
  13461. .post(this.$store.state.api + "updateCourseFollow", params)
  13462. .then((res) => {
  13463. if (this.IsFollow == true) {
  13464. this.$message({
  13465. message: "开启成功",
  13466. type: "success",
  13467. });
  13468. } else {
  13469. this.$message({
  13470. message: "关闭成功",
  13471. type: "success",
  13472. });
  13473. }
  13474. this.setCTask();
  13475. })
  13476. .catch((err) => {
  13477. console.error(err);
  13478. });
  13479. },
  13480. setCTask() {
  13481. let params = [
  13482. {
  13483. sopen: this.courseType + "-" + this.taskCount,
  13484. cid: this.id,
  13485. },
  13486. ];
  13487. this.ajax
  13488. .post(this.$store.state.api + "updateCourseFollowC", params)
  13489. .then((res) => {})
  13490. .catch((err) => {
  13491. console.error(err);
  13492. });
  13493. },
  13494. updateLookOpen() {
  13495. let params = [
  13496. {
  13497. sopen: this.IsLookOpen == false ? 1 : 2,
  13498. cid: this.id,
  13499. },
  13500. ];
  13501. this.ajax
  13502. .post(this.$store.state.api + "updateCourseLookOpen", params)
  13503. .then((res) => {
  13504. if (this.IsLookOpen == true) {
  13505. // if (this.courseType != 0 && this.taskCount != 0) {
  13506. // this.openTask(0, 0, "0-0");
  13507. // }
  13508. this.$message({
  13509. message: "权限设置成功",
  13510. type: "success",
  13511. });
  13512. } else {
  13513. this.$message({
  13514. message: "权限关闭成功",
  13515. type: "success",
  13516. });
  13517. }
  13518. this.getCourseState(2);
  13519. })
  13520. .catch((err) => {
  13521. console.error(err);
  13522. });
  13523. },
  13524. selectSLook() {
  13525. let params = {
  13526. cid: this.id,
  13527. };
  13528. this.ajax
  13529. .get(this.$store.state.api + "selectCourseSLook", params)
  13530. .then((res) => {
  13531. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  13532. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  13533. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  13534. if (!this.IsLookOpen) {
  13535. this.setNavList();
  13536. } else {
  13537. this.getCourseState(1);
  13538. }
  13539. if (this.IsFollow && this.tType == 2) {
  13540. this.setContent2(false);
  13541. let _followC = res.data[0][0].followC.split("-");
  13542. if (
  13543. this.courseType != _followC[0] ||
  13544. this.taskCount != _followC[1]
  13545. ) {
  13546. this.navList[this.courseType].isOpen = false;
  13547. this.courseType = _followC[0];
  13548. this.navList[this.courseType].isOpen = true;
  13549. this.taskCount = parseInt(_followC[1]);
  13550. this.navId = res.data[0][0].followC;
  13551. document.scrollingElement.scrollTop = 0;
  13552. this.getCourseDetail(2);
  13553. }
  13554. }
  13555. })
  13556. .catch((err) => {
  13557. console.error(err);
  13558. });
  13559. },
  13560. setNavList() {
  13561. if (this.navList.length == 0) {
  13562. this.navList = [];
  13563. for (var l = 0; l < this.chapInfoList.length; l++) {
  13564. var q = this.chapInfoList[l].dyName;
  13565. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  13566. var e;
  13567. this.navList.push({
  13568. dyName: q,
  13569. isOpen: l === 0 ? true : false,
  13570. task: [],
  13571. });
  13572. for (var r = 0; r < w.length; r++) {
  13573. e = w[r].task;
  13574. if (this.chapInfoList[l].easy == 1) {
  13575. this.navList[l].task.push({
  13576. taskName: q,
  13577. id: l + "-" + r,
  13578. isLook: w[r].isLook,
  13579. });
  13580. } else {
  13581. this.navList[l].task.push({
  13582. taskName: e,
  13583. id: l + "-" + r,
  13584. isLook: w[r].isLook,
  13585. });
  13586. }
  13587. // this.navId = this.navId ? this.navId : l + "-" + r;
  13588. // this.navId = l + "-" + r;
  13589. }
  13590. }
  13591. this.navList[0].isOpen = false;
  13592. this.navList[this.courseType].isOpen = true;
  13593. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  13594. } else {
  13595. this.setNavList2();
  13596. }
  13597. },
  13598. setNavList2() {
  13599. for (var l = 0; l < this.chapInfoList.length; l++) {
  13600. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  13601. for (var r = 0; r < w.length; r++) {
  13602. this.navList[l].task[r].isLook = w[r].isLook;
  13603. }
  13604. }
  13605. if (
  13606. this.IsLookOpen &&
  13607. !this.navList[this.courseType].task[this.taskCount].isLook
  13608. ) {
  13609. this.openTask(0, 0, "0-0");
  13610. }
  13611. this.$forceUpdate();
  13612. },
  13613. getCourseState(type) {
  13614. let params = {
  13615. cid: this.id,
  13616. };
  13617. this.ajax
  13618. .get(this.$store.state.api + "getCourseState", params)
  13619. .then((res) => {
  13620. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  13621. this.chapInfoList = JSON.parse(res.data[0][0].state);
  13622. this.setNavList();
  13623. this.$forceUpdate();
  13624. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  13625. this.addCourseState(2);
  13626. } else {
  13627. this.addCourseState(1);
  13628. }
  13629. })
  13630. .catch((err) => {
  13631. console.error(err);
  13632. });
  13633. },
  13634. addCourseState(type) {
  13635. let _state = this.chapInfoList;
  13636. // this.courseType this.taskCount
  13637. if (type == 1 || type == 2) {
  13638. for (var i = 0; i < _state.length; i++) {
  13639. let el = _state[i].chapterInfo[0].taskJson;
  13640. for (var j = 0; j < el.length; j++) {
  13641. // if (i == 0 && j == 0) {
  13642. // el[j].isLook = true;
  13643. // } else {
  13644. // el[j].isLook = false;
  13645. // }
  13646. if (
  13647. this.courseType > i ||
  13648. (this.courseType == i && this.taskCount + 1 > j)
  13649. ) {
  13650. el[j].isLook = true;
  13651. } else {
  13652. el[j].isLook = false;
  13653. }
  13654. }
  13655. }
  13656. }
  13657. let params = [
  13658. {
  13659. cid: this.id,
  13660. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  13661. },
  13662. ];
  13663. this.ajax
  13664. .post(
  13665. this.$store.state.api +
  13666. (type == 1 ? "addCourseState" : "updateCourseSate"),
  13667. params
  13668. )
  13669. .then((res) => {
  13670. if (this.IsLookOpen) {
  13671. this.setNavList();
  13672. }
  13673. if (type == 3 && type == 2) {
  13674. this.getCourseState(1);
  13675. }
  13676. })
  13677. .catch((err) => {
  13678. console.error(err);
  13679. });
  13680. },
  13681. getHomeWork() {
  13682. let params = {
  13683. cid: this.id,
  13684. stage: this.courseType,
  13685. task: this.taskCount,
  13686. uid: this.userid,
  13687. };
  13688. this.ajax
  13689. .get(this.$store.state.api + "selectWork", params)
  13690. .then((res) => {
  13691. if (res.data[0].length > 0) {
  13692. this.studyJuri = JSON.parse(res.data[0][0].content);
  13693. this.isNoHomeWork = true;
  13694. }
  13695. })
  13696. .catch((err) => {
  13697. console.error(err);
  13698. });
  13699. },
  13700. isAssetTypeAnImage(ext) {
  13701. return (
  13702. [
  13703. "png",
  13704. "jpg",
  13705. "jpeg",
  13706. "bmp",
  13707. "gif",
  13708. "webp",
  13709. "psd",
  13710. "svg",
  13711. "tiff",
  13712. ].indexOf(ext) !== -1
  13713. );
  13714. },
  13715. switchVideo(media) {
  13716. this.playerO = {};
  13717. this.playerOptions.poster = "";
  13718. this.playerOptions.sources[0].src = media;
  13719. this.playerO = this.playerOptions;
  13720. },
  13721. onPlayerPlay() {},
  13722. onPlayerTimeupdate(player) {
  13723. let gklog = player.cache_.currentTime; //当前播放的秒数
  13724. let a = player.cache_.duration; //视频的总时长
  13725. let gklog2 = parseInt(gklog);
  13726. // if(gklog2 == '3'){
  13727. // player.pause()
  13728. // setTimeout(()=>{
  13729. // player.currentTime(gklog2+1)
  13730. // player.play()
  13731. // },1000)
  13732. // }
  13733. console.log(" onPlayerTimeupdate!", gklog);
  13734. console.log(" onPlayerTimeupdate!", gklog2);
  13735. },
  13736. lookVedio(u, i) {
  13737. this.isClickNav = "";
  13738. // this.playerOptions.sources[0].src = u;
  13739. var d = JSON.parse(JSON.stringify(this.playerOptions));
  13740. d.sources[0].src = u;
  13741. this.playerO[this.taskCount] = d;
  13742. this.showType = 0;
  13743. this.isClickNav = "video" + i;
  13744. this.$forceUpdate();
  13745. },
  13746. lookText(i, t) {
  13747. this.isClickNav = "";
  13748. this.text = this.textList[i][t];
  13749. // this.dialogVisible1 = true;
  13750. this.showType = 1;
  13751. this.isClickNav = "text" + t;
  13752. },
  13753. lookTools(i, t) {
  13754. this.chapTools = this.chapToolList[i][t];
  13755. this.dialogVisible2 = true;
  13756. },
  13757. openFile(f) {
  13758. this.pptImgUrl = "";
  13759. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13760. if (
  13761. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  13762. -1
  13763. ) {
  13764. this.pptImgUrl =
  13765. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  13766. this.showPDF = false;
  13767. this.dialogVisible3 = true;
  13768. } else if (
  13769. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13770. ) {
  13771. this.pptImgUrl = f;
  13772. this.showPDF = true;
  13773. this.dialogVisible3 = true;
  13774. }
  13775. },
  13776. openTable(f) {
  13777. this.tableJson = JSON.parse(f.works);
  13778. this.dialogVisibleTable2 = true;
  13779. },
  13780. openWord(f) {
  13781. this.tableJson = JSON.parse(f.works);
  13782. this.dialogVisibleTable3 = true;
  13783. },
  13784. doUrl(url, i) {
  13785. this.isClickNav = "";
  13786. this.pptImgUrl1 = "";
  13787. this.showType = 2;
  13788. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  13789. url = "https://" + url;
  13790. }
  13791. this.pptImgUrl1 = "";
  13792. setTimeout(() => {
  13793. this.pptImgUrl1 = url;
  13794. }, 500);
  13795. this.isClickNav = "line" + i;
  13796. this.$forceUpdate();
  13797. },
  13798. downFile(f, i) {
  13799. this.isClickNav = "";
  13800. this.pptImgUrl1 = "";
  13801. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  13802. if (
  13803. a.indexOf(
  13804. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  13805. ) != -1
  13806. ) {
  13807. this.pptImgUrl1 =
  13808. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  13809. // this.dialogVisible3 = true;
  13810. this.showType = 2;
  13811. } else if (
  13812. this.isAssetTypeAnImage(
  13813. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  13814. )
  13815. ) {
  13816. this.showType = 4;
  13817. this.pptImgUrl1 = f.url;
  13818. } else if (
  13819. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  13820. "PDF"
  13821. ) {
  13822. this.pptImgUrl1 = f.url;
  13823. // this.dialogVisible3 = true;
  13824. this.showType = 3;
  13825. } else {
  13826. window.open(this.file[i].url);
  13827. }
  13828. this.isClickNav = "word" + i;
  13829. },
  13830. downFileList(i) {
  13831. window.open(this.noImgList[i].url);
  13832. },
  13833. openAddWork() {
  13834. this.dialogVisible = true;
  13835. },
  13836. addBzWorks() {
  13837. let params = [
  13838. {
  13839. uid: this.userid,
  13840. cid: this.id,
  13841. stage: this.courseType,
  13842. task: this.taskCount,
  13843. tool: this.toolindex,
  13844. content: JSON.stringify(this.eScore),
  13845. type: 6,
  13846. },
  13847. ];
  13848. this.ajax
  13849. .post(this.$store.state.api + "addCourseWorks", params)
  13850. .then((res) => {
  13851. this.$message({
  13852. message: "提交成功",
  13853. type: "success",
  13854. });
  13855. this.eScore = { eBzText: "", eStar: [] };
  13856. this.studentEvalDialogVisible = false;
  13857. this.selectSWorks();
  13858. })
  13859. .catch((err) => {
  13860. this.$message.error("提交失败");
  13861. console.error(err);
  13862. });
  13863. },
  13864. addBzWorksTeacher() {
  13865. let params = [
  13866. {
  13867. uid: this.sStudent.userid,
  13868. cid: this.id,
  13869. stage: this.courseType,
  13870. task: this.taskCount,
  13871. tool: this.toolindex,
  13872. content: JSON.stringify(this.eScore),
  13873. type: 6,
  13874. },
  13875. ];
  13876. this.ajax
  13877. .post(this.$store.state.api + "addCourseWorks", params)
  13878. .then((res) => {
  13879. this.$message({
  13880. message: "提交成功",
  13881. type: "success",
  13882. });
  13883. this.eScore = { eBzText: "", eStar: [] };
  13884. this.studentEvalDialogVisibleTeacher = false;
  13885. this.selectSWorks();
  13886. })
  13887. .catch((err) => {
  13888. this.$message.error("提交失败");
  13889. console.error(err);
  13890. });
  13891. },
  13892. addStudentAsk() {
  13893. if (!this.radio.length) {
  13894. this.$message.error("请选择选项");
  13895. return;
  13896. }
  13897. for (var i = 0; i < this.askJson.askCount; i++) {
  13898. if (
  13899. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13900. (this.radio[i] !== 0 && !this.radio[i])
  13901. ) {
  13902. this.$message.error("请选择选项");
  13903. return;
  13904. }
  13905. }
  13906. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  13907. let params = [
  13908. {
  13909. uid: this.userid,
  13910. cid: this.id,
  13911. stage: this.courseType,
  13912. task: this.taskCount,
  13913. tool: this.toolindex,
  13914. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13915. type: 2,
  13916. },
  13917. ];
  13918. this.ajax
  13919. .post(this.$store.state.api + "addCourseWorks", params)
  13920. .then((res) => {
  13921. this.$message({
  13922. message: "提交成功",
  13923. type: "success",
  13924. });
  13925. this.askList = [];
  13926. this.dialogVisible5 = false;
  13927. this.selectStudent();
  13928. this.selectSWorks();
  13929. this.selectSLook();
  13930. })
  13931. .catch((err) => {
  13932. this.$message.error("提交失败");
  13933. console.error(err);
  13934. });
  13935. },
  13936. addStudentAskTeacher() {
  13937. if (!this.radio.length) {
  13938. this.$message.error("请选择选项");
  13939. return;
  13940. }
  13941. for (var i = 0; i < this.askJson.askCount; i++) {
  13942. if (
  13943. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13944. (this.radio[i] !== 0 && !this.radio[i])
  13945. ) {
  13946. this.$message.error("请选择选项");
  13947. return;
  13948. }
  13949. }
  13950. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  13951. let params = [
  13952. {
  13953. uid: this.sStudent.userid,
  13954. cid: this.id,
  13955. stage: this.courseType,
  13956. task: this.taskCount,
  13957. tool: this.toolindex,
  13958. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13959. type: 2,
  13960. },
  13961. ];
  13962. this.ajax
  13963. .post(this.$store.state.api + "addCourseWorks", params)
  13964. .then((res) => {
  13965. this.$message({
  13966. message: "提交成功",
  13967. type: "success",
  13968. });
  13969. this.askList = [];
  13970. this.dialogVisible5Teacher = false;
  13971. this.selectStudent();
  13972. this.selectSWorks();
  13973. this.selectSLook();
  13974. })
  13975. .catch((err) => {
  13976. this.$message.error("提交失败");
  13977. console.error(err);
  13978. });
  13979. },
  13980. addStudentTest() {
  13981. if (!this.radio.length) {
  13982. this.$message.error("请选择选项");
  13983. return;
  13984. }
  13985. for (var i = 0; i < this.testJson.testCount; i++) {
  13986. if (
  13987. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13988. (this.radio[i] !== 0 && !this.radio[i])
  13989. ) {
  13990. this.$message.error("请选择选项");
  13991. return;
  13992. }
  13993. }
  13994. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  13995. let params = [
  13996. {
  13997. uid: this.userid,
  13998. cid: this.id,
  13999. stage: this.courseType,
  14000. task: this.taskCount,
  14001. tool: this.toolindex,
  14002. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  14003. type: 8,
  14004. },
  14005. ];
  14006. this.ajax
  14007. .post(this.$store.state.api + "addCourseWorks", params)
  14008. .then((res) => {
  14009. this.$message({
  14010. message: "提交成功",
  14011. type: "success",
  14012. });
  14013. this.askList = [];
  14014. this.dialogVisibleChoice = false;
  14015. this.selectStudent();
  14016. this.selectSWorks();
  14017. this.selectSLook();
  14018. })
  14019. .catch((err) => {
  14020. this.$message.error("提交失败");
  14021. console.error(err);
  14022. });
  14023. },
  14024. addStudentTestTeacher() {
  14025. if (!this.radio.length) {
  14026. this.$message.error("请选择选项");
  14027. return;
  14028. }
  14029. for (var i = 0; i < this.testJson.testCount; i++) {
  14030. if (
  14031. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  14032. (this.radio[i] !== 0 && !this.radio[i])
  14033. ) {
  14034. this.$message.error("请选择选项");
  14035. return;
  14036. }
  14037. }
  14038. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  14039. let params = [
  14040. {
  14041. uid: this.sStudent.userid,
  14042. cid: this.id,
  14043. stage: this.courseType,
  14044. task: this.taskCount,
  14045. tool: this.toolindex,
  14046. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  14047. type: 8,
  14048. },
  14049. ];
  14050. this.ajax
  14051. .post(this.$store.state.api + "addCourseWorks", params)
  14052. .then((res) => {
  14053. this.$message({
  14054. message: "提交成功",
  14055. type: "success",
  14056. });
  14057. this.askList = [];
  14058. this.dialogVisibleChoiceTeacher = false;
  14059. this.selectStudent();
  14060. this.selectSWorks();
  14061. this.selectSLook();
  14062. })
  14063. .catch((err) => {
  14064. this.$message.error("提交失败");
  14065. console.error(err);
  14066. });
  14067. },
  14068. addWork() {
  14069. if (this.studyJuri[0].content == "") {
  14070. this.$message.error("请将信息填写完整");
  14071. return;
  14072. } else if (this.studyJuri[0].cover.length == 0) {
  14073. this.$message.error("请将信息填写完整");
  14074. return;
  14075. } else if (this.studyJuri[0].upVedio.length == 0) {
  14076. this.$message.error("请将信息填写完整");
  14077. return;
  14078. }
  14079. if (this.isNoHomeWork) {
  14080. this.$confirm(
  14081. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  14082. "提示",
  14083. {
  14084. confirmButtonText: "确定",
  14085. cancelButtonText: "取消",
  14086. type: "warning",
  14087. }
  14088. )
  14089. .then(() => {
  14090. let params = [
  14091. {
  14092. uid: this.userid,
  14093. cid: this.id,
  14094. stage: this.courseType,
  14095. task: this.taskCount,
  14096. content: JSON.stringify(this.studyJuri),
  14097. },
  14098. ];
  14099. this.ajax
  14100. .post(this.$store.state.api + "addWorks", params)
  14101. .then((res) => {
  14102. this.$message({
  14103. message: "提交成功",
  14104. type: "success",
  14105. });
  14106. this.isNoHomeWork = true;
  14107. this.dialogVisible = false;
  14108. })
  14109. .catch((err) => {
  14110. this.$message.error("提交失败");
  14111. console.error(err);
  14112. });
  14113. })
  14114. .catch(() => {});
  14115. } else {
  14116. let params = [
  14117. {
  14118. uid: this.userid,
  14119. cid: this.id,
  14120. stage: this.courseType,
  14121. task: this.taskCount,
  14122. content: JSON.stringify(this.studyJuri),
  14123. },
  14124. ];
  14125. this.ajax
  14126. .post(this.$store.state.api + "addWorks", params)
  14127. .then((res) => {
  14128. this.$message({
  14129. message: "提交成功",
  14130. type: "success",
  14131. });
  14132. this.isNoHomeWork = true;
  14133. this.dialogVisible = false;
  14134. })
  14135. .catch((err) => {
  14136. this.$message.error("提交失败");
  14137. console.error(err);
  14138. });
  14139. }
  14140. },
  14141. selectCount() {
  14142. let params = {
  14143. cid: this.id,
  14144. chid: this.courseType,
  14145. uid: this.userid,
  14146. };
  14147. this.ajax
  14148. .get(this.$store.state.api + "selectToolsCount", params)
  14149. .then((res) => {
  14150. for (var i = 0; i < res.data[0].length; i++) {
  14151. if (res.data[0][i].tools == 1) {
  14152. this.wbCount = res.data[0][i].count;
  14153. } else if (res.data[0][i].tools == 2) {
  14154. this.wordCount = res.data[0][i].count;
  14155. } else if (res.data[0][i].tools == 3) {
  14156. this.mindCount = res.data[0][i].count;
  14157. } else if (res.data[0][i].tools == 4) {
  14158. this.askCount = res.data[0][i].count;
  14159. } else if (res.data[0][i].tools == 6) {
  14160. this.noteCount = res.data[0][i].count;
  14161. } else if (res.data[0][i].tools == 7) {
  14162. this.mindNetWorkCount = res.data[0][i].count;
  14163. } else if (res.data[0][i].tools == 8) {
  14164. this.libraryCount = res.data[0][i].count;
  14165. } else if (res.data[0][i].tools == 16) {
  14166. this.workCount = res.data[0][i].count;
  14167. } else if (res.data[0][i].tools == 10) {
  14168. this.timeCount = res.data[0][i].count;
  14169. } else if (res.data[0][i].tools == 15) {
  14170. this.answerCount = res.data[0][i].count;
  14171. } else if (res.data[0][i].tools == 18) {
  14172. this.trainCount = res.data[0][i].count;
  14173. }
  14174. }
  14175. })
  14176. .catch((err) => {
  14177. console.error(err);
  14178. });
  14179. },
  14180. openTools(t, i, index, c, sName) {
  14181. var z = JSON.parse(c);
  14182. this.noteName = sName;
  14183. if (t == 4) {
  14184. this.radio = [];
  14185. this.isAnswer = false;
  14186. let b = z[0].anwer;
  14187. this.radio = b;
  14188. this.askJson = z[0].askJson;
  14189. this.isAnswer = true;
  14190. this.dialogVisible5 = true;
  14191. } else if (t == 45) {
  14192. this.radio = [];
  14193. this.isAnswer = false;
  14194. let b = z[0].anwer;
  14195. this.radio = b;
  14196. this.testJson = z[0].testJson;
  14197. this.isAnswer = true;
  14198. this.dialogVisibleChoice = true;
  14199. }
  14200. // else if (t == 15) {
  14201. // this.answerQ = "";
  14202. // this.questionAnswer = "";
  14203. // this.answerQ = z[0].answerTitle;
  14204. // this.questionAnswer = z[0].answer;
  14205. // this.answerDialogVisible = true;
  14206. // }
  14207. },
  14208. fastText(p, t) {
  14209. if (t == 1) {
  14210. this.commentText += p;
  14211. } else {
  14212. this.eScore.eBzText += p;
  14213. }
  14214. },
  14215. addTools(t, i, index) {
  14216. var a = 0;
  14217. // this.taskCount = index;
  14218. this.toolindex = i;
  14219. if (t == 1) {
  14220. if (this.wbCount > 0) {
  14221. this.updateCount(this.wbCount, t);
  14222. } else {
  14223. this.wbCount++;
  14224. a = this.wbCount;
  14225. this.toolsCount(a, t);
  14226. }
  14227. window.parent.postMessage(
  14228. {
  14229. tools: "1",
  14230. cid: this.id,
  14231. stage: this.courseType,
  14232. task: this.taskCount,
  14233. tool: i,
  14234. },
  14235. "*"
  14236. );
  14237. } else if (t == 2) {
  14238. if (this.wordCount > 0) {
  14239. this.updateCount(this.wordCount, t);
  14240. } else {
  14241. this.wordCount++;
  14242. a = this.wordCount;
  14243. this.toolsCount(a, t);
  14244. }
  14245. window.parent.postMessage({ tools: "2" }, "*");
  14246. } else if (t == 3) {
  14247. if (this.mindCount > 0) {
  14248. this.updateCount(this.mindCount, t);
  14249. } else {
  14250. this.mindCount++;
  14251. a = this.mindCount;
  14252. this.toolsCount(a, t);
  14253. }
  14254. window.parent.postMessage(
  14255. {
  14256. tools: "3",
  14257. cid: this.id,
  14258. stage: this.courseType,
  14259. task: this.taskCount,
  14260. tool: i,
  14261. },
  14262. "*"
  14263. );
  14264. } else if (t == 4) {
  14265. this.radio = [];
  14266. this.noteName = "";
  14267. this.isAnswer = false;
  14268. if (this.askCount > 0) {
  14269. this.updateCount(this.askCount, t);
  14270. } else {
  14271. this.askCount++;
  14272. a = this.askCount;
  14273. this.toolsCount(a, t);
  14274. }
  14275. if (!this.dialogVisible2) {
  14276. this.askJson.askJson =
  14277. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14278. index
  14279. ].toolChoose[i].askJson;
  14280. this.askJson.askTitle =
  14281. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14282. index
  14283. ].toolChoose[i].askTitle;
  14284. this.askJson.askCount =
  14285. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14286. index
  14287. ].toolChoose[i].askCount;
  14288. } else {
  14289. this.askJson.askJson = this.chapTools.askJson.askJson;
  14290. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  14291. this.askJson.askCount = this.chapTools.askJson.askCount;
  14292. }
  14293. for (var k = 0; k < this.askJson.askJson.length; k++) {
  14294. if (this.askJson.askJson[k].type == "2") {
  14295. this.radio.push([]);
  14296. } else {
  14297. this.radio.push("");
  14298. }
  14299. }
  14300. this.dialogVisible5 = true;
  14301. // window.parent.postMessage({ tools: "4" }, "*");
  14302. } else if (t == 45) {
  14303. this.noteName = "";
  14304. this.radio = [];
  14305. this.isAnswer = false;
  14306. if (this.askCount > 0) {
  14307. this.updateCount(this.askCount, t);
  14308. } else {
  14309. this.askCount++;
  14310. a = this.askCount;
  14311. this.toolsCount(a, t);
  14312. }
  14313. this.testJson =
  14314. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14315. index
  14316. ].toolChoose[i].testJson;
  14317. for (var k = 0; k < this.testJson.testJson.length; k++) {
  14318. if (this.testJson.testJson[k].type == "2") {
  14319. this.radio.push([]);
  14320. } else {
  14321. this.radio.push("");
  14322. }
  14323. }
  14324. this.dialogVisibleChoice = true;
  14325. // window.parent.postMessage({ tools: "4" }, "*");
  14326. } else if (t == 5) {
  14327. if (this.scoreCount > 0) {
  14328. this.updateCount(this.scoreCount, t);
  14329. } else {
  14330. this.scoreCount++;
  14331. a = this.scoreCount;
  14332. this.toolsCount(a, t);
  14333. }
  14334. this.dialogVisible4 = true;
  14335. // window.parent.postMessage({ tools: "5" }, "*");
  14336. } else if (t == 6) {
  14337. if (this.noteCount > 0) {
  14338. this.updateCount(this.noteCount, t);
  14339. } else {
  14340. this.noteCount++;
  14341. a = this.noteCount;
  14342. this.toolsCount(a, t);
  14343. }
  14344. window.parent.postMessage(
  14345. {
  14346. tools: "6",
  14347. cid: this.id,
  14348. stage: this.courseType,
  14349. task: this.taskCount,
  14350. tool: i,
  14351. },
  14352. "*"
  14353. );
  14354. } else if (t == 7) {
  14355. if (this.mindNetWorkCount > 0) {
  14356. this.updateCount(this.mindNetWorkCount, t);
  14357. } else {
  14358. this.mindNetWorkCount++;
  14359. a = this.mindNetWorkCount;
  14360. this.toolsCount(a, t);
  14361. }
  14362. window.parent.postMessage(
  14363. {
  14364. tools: "7",
  14365. cid: this.id,
  14366. stage: this.courseType,
  14367. task: this.taskCount,
  14368. tool: i,
  14369. },
  14370. "*"
  14371. );
  14372. } else if (t == 16) {
  14373. if (this.workCount > 0) {
  14374. this.updateCount(this.workCount, t);
  14375. } else {
  14376. this.workCount++;
  14377. a = this.workCount;
  14378. this.toolsCount(a, t);
  14379. }
  14380. this.dialogVisible = true;
  14381. } else if (t == 50) {
  14382. if (this.tType == 2) {
  14383. this.$message.error("不支持学生使用");
  14384. return;
  14385. }
  14386. this.plworkFile = [];
  14387. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  14388. if(!this.uploadCid){
  14389. this.$message.error("提示:批量上传未添加班级权限,请添加班级或从班级入口进入。");
  14390. return;
  14391. }
  14392. // this.uploadCid =
  14393. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14394. // index
  14395. // ].toolChoose[i].uploadJson[0];
  14396. this.selectUploadStudent();
  14397. this.dialogVisiblePl = true;
  14398. } else if (t == 8) {
  14399. if (this.libraryCount > 0) {
  14400. this.updateCount(this.libraryCount, t);
  14401. } else {
  14402. this.libraryCount++;
  14403. a = this.libraryCount;
  14404. this.toolsCount(a, t);
  14405. }
  14406. window.parent.postMessage({ tools: "8" }, "*");
  14407. } else if (t == 17) {
  14408. if (this.libraryCount > 0) {
  14409. this.updateCount(this.libraryCount, t);
  14410. } else {
  14411. this.libraryCount++;
  14412. a = this.libraryCount;
  14413. this.toolsCount(a, t);
  14414. }
  14415. window.parent.postMessage({ tools: "17" }, "*");
  14416. } else if (t == 18) {
  14417. if (this.trainCount > 0) {
  14418. this.updateCount(this.trainCount, t);
  14419. } else {
  14420. this.trainCount++;
  14421. a = this.trainCount;
  14422. this.toolsCount(a, t);
  14423. }
  14424. window.parent.postMessage({ tools: "18" }, "*");
  14425. } else if (t == 10) {
  14426. if (this.timeCount > 0) {
  14427. this.updateCount(this.timeCount, t);
  14428. } else {
  14429. this.timeCount++;
  14430. a = this.timeCount;
  14431. this.toolsCount(a, t);
  14432. }
  14433. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  14434. .taskJson[index].toolChoose[i].preTime
  14435. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  14436. .toolChoose[i].preTime
  14437. : "";
  14438. this.timeDialogVisible = true;
  14439. } else if (t == 15) {
  14440. this.answerQ = "";
  14441. this.questionAnswer = "";
  14442. if (this.answerCount > 0) {
  14443. this.updateCount(this.answerCount, t);
  14444. } else {
  14445. this.answerCount++;
  14446. a = this.answerCount;
  14447. this.toolsCount(a, t);
  14448. }
  14449. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  14450. .taskJson[index].toolChoose[i].answerQ
  14451. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  14452. .toolChoose[i].answerQ
  14453. : "";
  14454. this.answerDialogVisible = true;
  14455. } else if (t == 21) {
  14456. window.parent.postMessage({ tools: "21" }, "*");
  14457. } else if (t == 22) {
  14458. window.parent.postMessage({ tools: "22" }, "*");
  14459. } else if (t == 23) {
  14460. window.parent.postMessage({ tools: "23" }, "*");
  14461. } else if (t == 24) {
  14462. window.parent.postMessage({ tools: "24" }, "*");
  14463. } else if (t == 25) {
  14464. window.parent.postMessage({ tools: "25" }, "*");
  14465. } else if (t == 31) {
  14466. window.parent.postMessage({ tools: "31" }, "*");
  14467. } else if (t == 28) {
  14468. window.parent.postMessage({ tools: "28" }, "*");
  14469. } else if (t == 37) {
  14470. window.parent.postMessage({ tools: "37" }, "*");
  14471. } else if (t == 38) {
  14472. window.parent.postMessage({ tools: "38" }, "*");
  14473. } else if (t == 39) {
  14474. window.parent.postMessage({ tools: "39" }, "*");
  14475. } else if (t == 32) {
  14476. window.parent.postMessage({ tools: "32" }, "*");
  14477. } else if (t == 57) {
  14478. window.parent.postMessage({ tools: "57" }, "*");
  14479. } else if (t == 58) {
  14480. window.parent.postMessage({ tools: "58" }, "*");
  14481. } else if (t == 59) {
  14482. window.parent.postMessage({ tools: "59" }, "*");
  14483. } else if (t == 60) {
  14484. window.parent.postMessage({ tools: "60" }, "*");
  14485. } else if (t == 61) {
  14486. window.parent.postMessage({ tools: "61" }, "*");
  14487. } else if (t == 63) {
  14488. window.parent.postMessage({ tools: "63" }, "*");
  14489. } else if (t == 26) {
  14490. window.parent.postMessage(
  14491. {
  14492. tools: "26",
  14493. cid: this.id,
  14494. stage: this.courseType,
  14495. task: this.taskCount,
  14496. tool: i,
  14497. },
  14498. "*"
  14499. );
  14500. } else if (t == 40) {
  14501. if (this.evalCount > 0) {
  14502. this.updateCount(this.evalCount, t);
  14503. } else {
  14504. this.evalCount++;
  14505. a = this.evalCount;
  14506. this.toolsCount(a, t);
  14507. }
  14508. this.eScore = { eBzText: "", eStar: [] };
  14509. if (this.worksStudent[i].length) {
  14510. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14511. if (this.userid == this.worksStudent[i][k].userid) {
  14512. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  14513. this.rateJson =
  14514. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14515. index
  14516. ].toolChoose[i].rateJson;
  14517. break;
  14518. } else {
  14519. this.rateJson =
  14520. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14521. index
  14522. ].toolChoose[i].rateJson;
  14523. }
  14524. }
  14525. } else {
  14526. this.rateJson =
  14527. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14528. index
  14529. ].toolChoose[i].rateJson;
  14530. }
  14531. this.isStar = false;
  14532. this.studentEvalDialogVisible = true;
  14533. } else if (t == 41) {
  14534. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14535. .taskJson[index].toolChoose[i].selectJson
  14536. ? JSON.parse(
  14537. JSON.stringify(
  14538. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14539. index
  14540. ].toolChoose[i].selectJson
  14541. )
  14542. )
  14543. : { url: "", select: [], answer: [] };
  14544. if (this.worksStudent[i].length) {
  14545. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14546. if (this.userid == this.worksStudent[i][k].userid) {
  14547. var a = this.worksStudent[i][k].works.split(",");
  14548. for (var ki = 0; ki < a.length; ki++) {
  14549. a[ki] = parseInt(a[ki]);
  14550. }
  14551. this.selectAnswer = {
  14552. answer: a,
  14553. stu: this.worksStudent[i][k].sName,
  14554. };
  14555. break;
  14556. } else {
  14557. this.selectAnswer = { answer: [], stu: "" };
  14558. }
  14559. }
  14560. } else {
  14561. this.selectAnswer = { answer: [], stu: "" };
  14562. }
  14563. this.isSelect = false;
  14564. this.dialogVisibleSelect = true;
  14565. } else if (t == 44) {
  14566. window.parent.postMessage({ tools: "44" }, "*");
  14567. } else if (t == 47) {
  14568. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  14569. .taskJson[index].toolChoose[i].sentenceList
  14570. ? JSON.parse(
  14571. JSON.stringify(
  14572. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14573. index
  14574. ].toolChoose[i].sentenceList
  14575. )
  14576. )
  14577. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  14578. for (var q = 0; q < this.sentenceList.length; q++) {
  14579. this.sentenceList[q].chooseSenList = [];
  14580. this.sentenceList[q].addChangeSen = [];
  14581. this.sentenceList[q].addChangeSen = JSON.parse(
  14582. JSON.stringify(this.sentenceList[q].addSentence)
  14583. );
  14584. this.sentenceList[q].chooseSenList.length =
  14585. this.sentenceList[q].rightAnswer.length;
  14586. }
  14587. this.dialogVisibleSentence = true;
  14588. } else if (t == 48) {
  14589. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14590. .taskJson[index].toolChoose[i].tableJson
  14591. ? JSON.parse(
  14592. JSON.stringify(
  14593. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14594. index
  14595. ].toolChoose[i].tableJson
  14596. )
  14597. )
  14598. : { text: "" };
  14599. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  14600. if (this.worksStudent[i].length) {
  14601. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14602. if (this.userid == this.worksStudent[i][k].userid) {
  14603. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  14604. break;
  14605. }
  14606. }
  14607. }
  14608. this.dialogVisibleTable = true;
  14609. } else if (t == 52) {
  14610. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14611. .taskJson[index].toolChoose[i].wordJson
  14612. ? JSON.parse(
  14613. JSON.stringify(
  14614. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14615. index
  14616. ].toolChoose[i].wordJson
  14617. )
  14618. )
  14619. : { text: "" };
  14620. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  14621. if (this.worksStudent[i].length) {
  14622. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14623. if (this.userid == this.worksStudent[i][k].userid) {
  14624. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  14625. break;
  14626. }
  14627. }
  14628. }
  14629. this.dialogVisibleWord = true;
  14630. } else if (t == 49) {
  14631. this.groupJson =
  14632. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14633. index
  14634. ].toolChoose[i].groupJson;
  14635. this.islock = this.groupJson.islock == 1 ? true : false;
  14636. this.dialogVisibleGroup = true;
  14637. } else if (t == 62) {
  14638. this.videoJson =
  14639. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14640. index
  14641. ].toolChoose[i].videoJson;
  14642. this.dialogVisibleVideo = true;
  14643. }
  14644. },
  14645. teacherWorkSubmit(t, i, index, s) {
  14646. this.sStudent = s;
  14647. this.toolindex = i;
  14648. this.sTool = t;
  14649. if (this.tType !== "1" && this.tType !== "4") {
  14650. return;
  14651. }
  14652. if (t == 16 || t == 32 || t == 57 || t == 50) {
  14653. this.dialogVisibleWorks = true;
  14654. } else if (t == 15) {
  14655. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  14656. .taskJson[index].toolChoose[i].answerQ
  14657. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  14658. .toolChoose[i].answerQ
  14659. : "";
  14660. this.questionAnswer = "";
  14661. this.answerDialogVisibleTeacher = true; //问答
  14662. } else if (t == 52) {
  14663. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14664. .taskJson[index].toolChoose[i].wordJson
  14665. ? JSON.parse(
  14666. JSON.stringify(
  14667. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14668. index
  14669. ].toolChoose[i].wordJson
  14670. )
  14671. )
  14672. : { text: "" };
  14673. if (this.worksStudent[i].length) {
  14674. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14675. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14676. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  14677. break;
  14678. }
  14679. }
  14680. }
  14681. this.dialogVisibleWordTeacher = true; //文档
  14682. } else if (t == 4) {
  14683. this.radio = [];
  14684. this.noteName = "";
  14685. this.isAnswer = false;
  14686. if (this.askCount > 0) {
  14687. this.updateCount(this.askCount, t);
  14688. } else {
  14689. this.askCount++;
  14690. a = this.askCount;
  14691. this.toolsCount(a, t);
  14692. }
  14693. if (!this.dialogVisible2) {
  14694. this.askJson.askJson =
  14695. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14696. index
  14697. ].toolChoose[i].askJson;
  14698. this.askJson.askTitle =
  14699. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14700. index
  14701. ].toolChoose[i].askTitle;
  14702. this.askJson.askCount =
  14703. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14704. index
  14705. ].toolChoose[i].askCount;
  14706. } else {
  14707. this.askJson.askJson = this.chapTools.askJson.askJson;
  14708. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  14709. this.askJson.askCount = this.chapTools.askJson.askCount;
  14710. }
  14711. this.dialogVisible5Teacher = true;
  14712. } else if (t == 45) {
  14713. this.noteName = "";
  14714. this.radio = [];
  14715. this.isAnswer = false;
  14716. if (this.askCount > 0) {
  14717. this.updateCount(this.askCount, t);
  14718. } else {
  14719. this.askCount++;
  14720. a = this.askCount;
  14721. this.toolsCount(a, t);
  14722. }
  14723. this.testJson =
  14724. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14725. index
  14726. ].toolChoose[i].testJson;
  14727. for (var k = 0; k < this.testJson.testJson.length; k++) {
  14728. if (this.testJson.testJson[k].type == "2") {
  14729. this.radio.push([]);
  14730. } else {
  14731. this.radio.push("");
  14732. }
  14733. }
  14734. this.dialogVisibleChoiceTeacher = true;
  14735. } else if (t == 41) {
  14736. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14737. .taskJson[index].toolChoose[i].selectJson
  14738. ? JSON.parse(
  14739. JSON.stringify(
  14740. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14741. index
  14742. ].toolChoose[i].selectJson
  14743. )
  14744. )
  14745. : { url: "", select: [], answer: [] };
  14746. if (this.worksStudent[i].length) {
  14747. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14748. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14749. var a = this.worksStudent[i][k].works.split(",");
  14750. for (var ki = 0; ki < a.length; ki++) {
  14751. a[ki] = parseInt(a[ki]);
  14752. }
  14753. this.selectAnswer = {
  14754. answer: a,
  14755. stu: this.worksStudent[i][k].sName,
  14756. };
  14757. break;
  14758. } else {
  14759. this.selectAnswer = { answer: [], stu: "" };
  14760. }
  14761. }
  14762. } else {
  14763. this.selectAnswer = { answer: [], stu: "" };
  14764. }
  14765. this.isSelect = false;
  14766. this.dialogVisibleSelectTeacher = true;
  14767. } else if (t == 47) {
  14768. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  14769. .taskJson[index].toolChoose[i].sentenceList
  14770. ? JSON.parse(
  14771. JSON.stringify(
  14772. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14773. index
  14774. ].toolChoose[i].sentenceList
  14775. )
  14776. )
  14777. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  14778. for (var q = 0; q < this.sentenceList.length; q++) {
  14779. this.sentenceList[q].chooseSenList = [];
  14780. this.sentenceList[q].addChangeSen = [];
  14781. this.sentenceList[q].addChangeSen = JSON.parse(
  14782. JSON.stringify(this.sentenceList[q].addSentence)
  14783. );
  14784. this.sentenceList[q].chooseSenList.length =
  14785. this.sentenceList[q].rightAnswer.length;
  14786. }
  14787. this.dialogVisibleSentenceTeacher = true;
  14788. } else if (t == 48) {
  14789. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14790. .taskJson[index].toolChoose[i].tableJson
  14791. ? JSON.parse(
  14792. JSON.stringify(
  14793. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14794. index
  14795. ].toolChoose[i].tableJson
  14796. )
  14797. )
  14798. : { text: "" };
  14799. if (this.worksStudent[i].length) {
  14800. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14801. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14802. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  14803. break;
  14804. }
  14805. }
  14806. }
  14807. this.dialogVisibleTableTeacher = true;
  14808. } else if (t == 40) {
  14809. if (this.evalCount > 0) {
  14810. this.updateCount(this.evalCount, t);
  14811. } else {
  14812. this.evalCount++;
  14813. a = this.evalCount;
  14814. this.toolsCount(a, t);
  14815. }
  14816. this.eScore = { eBzText: "", eStar: [] };
  14817. if (this.worksStudent[i].length) {
  14818. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14819. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14820. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  14821. this.rateJson =
  14822. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14823. index
  14824. ].toolChoose[i].rateJson;
  14825. break;
  14826. } else {
  14827. this.rateJson =
  14828. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14829. index
  14830. ].toolChoose[i].rateJson;
  14831. }
  14832. }
  14833. } else {
  14834. this.rateJson =
  14835. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14836. index
  14837. ].toolChoose[i].rateJson;
  14838. }
  14839. this.isStar = false;
  14840. this.studentEvalDialogVisibleTeacher = true;
  14841. } else if (t == 3 || t == 1 || t == 7) {
  14842. window.parent.postMessage(
  14843. {
  14844. tools: t + "teacher",
  14845. cid: this.id,
  14846. stage: this.courseType,
  14847. task: this.taskCount,
  14848. tool: i,
  14849. student: this.sStudent,
  14850. },
  14851. "*"
  14852. );
  14853. }
  14854. },
  14855. setRightAnswer(s, i, j) {
  14856. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  14857. if (
  14858. this.sentenceList[i].chooseSenList[q] == undefined ||
  14859. this.sentenceList[i].chooseSenList[q] == ""
  14860. ) {
  14861. this.sentenceList[i].chooseSenList[q] = s;
  14862. this.sentenceList[i].addChangeSen[j] = "";
  14863. break;
  14864. }
  14865. }
  14866. this.$forceUpdate();
  14867. },
  14868. returnCard(r, i, j) {
  14869. var a = this.sentenceList[i].addSentence.indexOf(r);
  14870. this.sentenceList[i].chooseSenList[j] = "";
  14871. this.sentenceList[i].addChangeSen[a] = r;
  14872. this.$forceUpdate();
  14873. },
  14874. // addSentenceTool() {
  14875. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14876. // this.taskCount
  14877. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  14878. // this.sentenceList = [
  14879. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  14880. // ];
  14881. // this.dialogVisibleSentence = false;
  14882. // },
  14883. toolsCount(a, t) {
  14884. let params = {
  14885. cid: this.id,
  14886. chid: this.courseType,
  14887. uid: this.userid,
  14888. tid: t,
  14889. count: a,
  14890. };
  14891. this.ajax
  14892. .get(this.$store.state.api + "insertToolsCount", params)
  14893. .then((res) => {
  14894. this.selectCount();
  14895. })
  14896. .catch((err) => {
  14897. console.error(err);
  14898. });
  14899. },
  14900. updateCount(c, t) {
  14901. c++;
  14902. let params = {
  14903. cid: this.id,
  14904. chid: this.courseType,
  14905. uid: this.userid,
  14906. tid: t,
  14907. count: c,
  14908. };
  14909. this.ajax
  14910. .get(this.$store.state.api + "updateToolsCount", params)
  14911. .then((res) => {
  14912. this.selectCount();
  14913. })
  14914. .catch((err) => {
  14915. console.error(err);
  14916. });
  14917. },
  14918. checkEva() {
  14919. if (this.evalua != "") {
  14920. for (var i = 0; i < this.evaJuri.length; i++) {
  14921. if (this.evalua == this.evaJuri[i].id) {
  14922. this.eTitle = this.evaJuri[i].title;
  14923. this.eJson = JSON.parse(this.evaJuri[i].content);
  14924. }
  14925. }
  14926. this.$forceUpdate();
  14927. setTimeout(() => {
  14928. this.setMindData();
  14929. }, 0);
  14930. }
  14931. },
  14932. selectEva() {
  14933. let params = {
  14934. oid: this.oid,
  14935. };
  14936. this.ajax
  14937. .get(this.$store.state.api + "selectAllEvaluation", params)
  14938. .then((res) => {
  14939. this.evaJuri = res.data[0];
  14940. })
  14941. .catch((err) => {
  14942. console.error(err);
  14943. });
  14944. },
  14945. setMindData() {
  14946. this.data.data = [];
  14947. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  14948. let _eJson = Object.keys(this.eJson);
  14949. let _e = this.eJson;
  14950. for (let i = 0; i < _eJson.length; i++) {
  14951. let element = _e[_eJson[i]];
  14952. this.data.data.push({
  14953. id: element.id,
  14954. parentid: "root",
  14955. topic: element.name,
  14956. });
  14957. let _eJsonc = Object.keys(element.child);
  14958. let _e2 = element.child;
  14959. for (let j = 0; j < _eJsonc.length; j++) {
  14960. let _ec = _e2[_eJsonc[j]];
  14961. this.data.data.push({
  14962. id: _ec.id,
  14963. parentid: element.id,
  14964. topic: _ec.name,
  14965. });
  14966. let _eJsonz = Object.keys(_ec.child);
  14967. let _e3 = _ec.child;
  14968. for (let z = 0; z < _eJsonz.length; z++) {
  14969. let _ez = _e3[_eJsonz[z]];
  14970. this.data.data.push({
  14971. id: _ez.id,
  14972. parentid: _ec.id,
  14973. topic: _ez.name,
  14974. });
  14975. }
  14976. }
  14977. }
  14978. this.$forceUpdate();
  14979. },
  14980. checkFileFull(type, url) {
  14981. this.fullDialogVisible = true;
  14982. this.fulltype = type;
  14983. this.fullUrl = url;
  14984. },
  14985. openSname(n, id, i) {
  14986. this.snameWid = id;
  14987. this.worksSName = n;
  14988. this.toolindex = i;
  14989. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  14990. if(!this.uploadCid){
  14991. this.$message.error("提示:批量上传未添加班级权限,请添加班级或从班级入口进入。");
  14992. return;
  14993. }
  14994. this.selectUploadStudent();
  14995. this.dialogVisibleSname = true;
  14996. },
  14997. updateName() {
  14998. let params = {
  14999. n: this.worksSName,
  15000. cid: this.snameWid,
  15001. };
  15002. this.ajax
  15003. .get(this.$store.state.api + "updateCourseWorksName", params)
  15004. .then((res) => {
  15005. this.$message({
  15006. message: "修改成功",
  15007. type: "success",
  15008. });
  15009. this.dialogVisibleSname = false;
  15010. this.getCourseDetail(2);
  15011. this.snameWid = "";
  15012. this.worksSName = "";
  15013. })
  15014. .catch((err) => {
  15015. console.error(err);
  15016. });
  15017. },
  15018. downloadFile2(f) {
  15019. let url = f.url;
  15020. let _this = this;
  15021. let _url = "";
  15022. if (
  15023. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15024. ) {
  15025. _url = url.split(
  15026. "https://view.officeapps.live.com/op/view.aspx?src="
  15027. )[1];
  15028. } else {
  15029. _url = url;
  15030. }
  15031. const x = new XMLHttpRequest();
  15032. x.open("GET", _url, true);
  15033. x.responseType = "blob";
  15034. const loading = _this.$loading.service({
  15035. background: "rgba(255, 255, 255, 0.7)",
  15036. target: document.body,
  15037. text: "文件加载中...",
  15038. });
  15039. // _this.$message.success("文件下载中...");
  15040. x.onload = function (e) {
  15041. loading.close();
  15042. let content = x.response;
  15043. let elink = document.createElement("a");
  15044. elink.download = f.name;
  15045. elink.style.display = "none";
  15046. let blob = new Blob([content]);
  15047. elink.href = URL.createObjectURL(blob);
  15048. document.body.appendChild(elink);
  15049. elink.click();
  15050. document.body.removeChild(elink);
  15051. };
  15052. x.send();
  15053. },
  15054. downloadFile(url) {
  15055. let _this = this;
  15056. let _url = "";
  15057. if (
  15058. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15059. ) {
  15060. _url = url.split(
  15061. "https://view.officeapps.live.com/op/view.aspx?src="
  15062. )[1];
  15063. } else {
  15064. _url = url;
  15065. }
  15066. const x = new XMLHttpRequest();
  15067. x.open("GET", _url, true);
  15068. x.responseType = "blob";
  15069. const loading = _this.$loading.service({
  15070. background: "rgba(255, 255, 255, 0.7)",
  15071. target: document.body,
  15072. text: "文件加载中...",
  15073. });
  15074. // _this.$message.success("文件下载中...");
  15075. x.onload = function (e) {
  15076. loading.close();
  15077. // const url = window.URL.createObjectURL(x.response);
  15078. // const a = document.createElement("a");
  15079. // a.href = url;
  15080. // a.target = "_blank";
  15081. // a.download = url;
  15082. // a.click();
  15083. // a.remove();
  15084. let content = x.response;
  15085. let elink = document.createElement("a");
  15086. elink.download = decodeURI(
  15087. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  15088. );
  15089. elink.style.display = "none";
  15090. let blob = new Blob([content]);
  15091. elink.href = URL.createObjectURL(blob);
  15092. document.body.appendChild(elink);
  15093. elink.click();
  15094. document.body.removeChild(elink);
  15095. };
  15096. x.send();
  15097. },
  15098. openLine(url) {
  15099. window.open(url);
  15100. },
  15101. resize() {
  15102. if (document.getElementsByClassName("box_course").length) {
  15103. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  15104. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  15105. document.getElementsByClassName("navBox")[0].style.height =
  15106. a - 40 + "px";
  15107. }
  15108. this.Stbodywidth =
  15109. document.getElementsByClassName("student_body").length &&
  15110. document.getElementsByClassName("student_body")[0].offsetWidth;
  15111. },
  15112. closeDraw() {
  15113. this.bg = null;
  15114. this.drawShow = false;
  15115. },
  15116. showPicturePaint(url) {
  15117. let params = {
  15118. img: url,
  15119. };
  15120. this.ajax
  15121. .get(this.$store.state.api + "imgToBase64", params)
  15122. .then((res) => {
  15123. console.log(res);
  15124. this.drawShow = true;
  15125. this.bg = res.data[0].img;
  15126. })
  15127. .catch((err) => {
  15128. console.error(err);
  15129. });
  15130. },
  15131. addImgDraw(base64) {
  15132. let file = { name: "批注图.png" };
  15133. let img = this.dataUrlToFile(base64, file);
  15134. this.beforeUpload1(img, 5);
  15135. },
  15136. addImgDrawImG(url) {
  15137. // console.log(url);
  15138. let params = [
  15139. {
  15140. wid: this.commentDetail.wid,
  15141. img: url,
  15142. },
  15143. ];
  15144. this.ajax
  15145. .post(this.$store.state.api + "updateCourseWorks", params)
  15146. .then((res) => {
  15147. this.$message({
  15148. message: "提交成功",
  15149. type: "success",
  15150. });
  15151. this.drawShow = false;
  15152. this.bg = "";
  15153. this.selectSWorks();
  15154. this.selectStudent();
  15155. })
  15156. .catch((err) => {
  15157. this.$message.error("提交失败");
  15158. console.error(err);
  15159. });
  15160. },
  15161. deletePicturePaint() {
  15162. this.$confirm("确定删除此批注吗?", "提示", {
  15163. confirmButtonText: "确定",
  15164. cancelButtonText: "取消",
  15165. type: "warning",
  15166. })
  15167. .then(() => {
  15168. let params = [
  15169. {
  15170. wid: this.commentDetail.wid,
  15171. img: "",
  15172. },
  15173. ];
  15174. this.ajax
  15175. .post(this.$store.state.api + "updateCourseWorks", params)
  15176. .then((res) => {
  15177. this.$message({
  15178. message: "删除成功",
  15179. type: "success",
  15180. });
  15181. this.selectSWorks();
  15182. this.selectStudent();
  15183. })
  15184. .catch((err) => {
  15185. this.$message.error("删除失败");
  15186. console.error(err);
  15187. });
  15188. })
  15189. .catch(() => {});
  15190. },
  15191. getAudioVideo(constraintsData) {
  15192. if (navigator.mediaDevices === undefined) {
  15193. navigator.mediaDevices = {};
  15194. }
  15195. if (navigator.mediaDevices.getUserMedia === undefined) {
  15196. navigator.mediaDevices.getUserMedia = function (constraints) {
  15197. // 首先,如果有getUserMedia的话,就获得它
  15198. var getUserMedia =
  15199. navigator.getUserMedia ||
  15200. navigator.webkitGetUserMedia ||
  15201. navigator.mozGetUserMedia ||
  15202. navigator.msGetUserMedia;
  15203. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  15204. if (!getUserMedia) {
  15205. return Promise.reject({ code: 404 });
  15206. }
  15207. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  15208. return new Promise(function (resolve, reject) {
  15209. getUserMedia.call(navigator, constraints, resolve, reject);
  15210. });
  15211. };
  15212. }
  15213. return navigator.mediaDevices.getUserMedia(constraintsData);
  15214. },
  15215. /**
  15216. * 开始录制
  15217. */
  15218. startRecording(callback) {
  15219. let _function = (screenStream) => {
  15220. this.addStreamStopListener(screenStream, () => {
  15221. console.log("流停止监听");
  15222. this.stopRecording();
  15223. this.$emit("streamStop", {});
  15224. // this.stopRecording();
  15225. });
  15226. var options = {
  15227. type: "video",
  15228. mimeType: "video/webm",
  15229. disableLogs: false,
  15230. getNativeBlob: false, // enable it for longer recordings
  15231. ignoreMutedMedia: false,
  15232. };
  15233. // this.video.srcObject = screenStream;
  15234. this.recorder = RecordRTC(screenStream, options);
  15235. this.recorder.startRecording();
  15236. this.recorder.screen = screenStream;
  15237. this.videoStart = true;
  15238. // callback(true);
  15239. };
  15240. this.getAudioVideo({ audio: true })
  15241. .then((res) => {
  15242. this.captureScreen(_function, true);
  15243. console.log("已点击允许,开启成功");
  15244. })
  15245. .catch((err) => {
  15246. // console.log('浏览器不支持,请更换浏览器')
  15247. // } else {
  15248. this.captureScreen(_function, false);
  15249. console.log("请检查是否存在麦克风");
  15250. });
  15251. },
  15252. /**
  15253. * 停止录制
  15254. */
  15255. stopRecording(callback) {
  15256. this.recorder.stopRecording(() => {
  15257. // this.video.src = this.video.srcObject = null;
  15258. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  15259. const url = URL.createObjectURL(this.recorder.getBlob());
  15260. const a = document.createElement("a"); //this.fileName+
  15261. let videoFile = new File(
  15262. [this.recorder.getBlob()],
  15263. this.courseDetail.title + "录屏.mp4",
  15264. {
  15265. type: "video/mp4",
  15266. }
  15267. );
  15268. let downloadUrl = URL.createObjectURL(videoFile);
  15269. document.body.appendChild(a);
  15270. a.style.display = "none";
  15271. a.href = url;
  15272. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  15273. a.click();
  15274. this.recorder.screen.stop();
  15275. this.recorder.destroy();
  15276. this.recorder = null;
  15277. this.videoStart = false;
  15278. // callback(false);
  15279. });
  15280. },
  15281. //初始化
  15282. captureScreen(callback, type) {
  15283. if (navigator.getDisplayMedia) {
  15284. //录制结束,文件下载
  15285. navigator
  15286. .getDisplayMedia({
  15287. video: true,
  15288. })
  15289. .then((screenStream) => {
  15290. if (type) {
  15291. navigator.mediaDevices
  15292. .getUserMedia({ audio: true })
  15293. .then((mic) => {
  15294. screenStream.addTrack(mic.getTracks()[0]);
  15295. callback(screenStream);
  15296. });
  15297. } else {
  15298. callback(screenStream);
  15299. }
  15300. })
  15301. .catch(function (error) {
  15302. console.log("error", error);
  15303. });
  15304. } else if (navigator.mediaDevices.getDisplayMedia) {
  15305. navigator.mediaDevices
  15306. .getDisplayMedia({
  15307. video: true,
  15308. })
  15309. .then((screenStream) => {
  15310. if (type) {
  15311. navigator.mediaDevices
  15312. .getUserMedia({ audio: true })
  15313. .then((mic) => {
  15314. screenStream.addTrack(mic.getTracks()[0]);
  15315. callback(screenStream);
  15316. });
  15317. } else {
  15318. callback(screenStream);
  15319. }
  15320. })
  15321. .catch(function (error) {
  15322. console.log("error", error);
  15323. });
  15324. } else {
  15325. var error = "getDisplayMedia API are not supported in this browser.";
  15326. console.log("error", error);
  15327. alert(error);
  15328. }
  15329. },
  15330. //流监听
  15331. addStreamStopListener(stream, callback) {
  15332. stream.addEventListener(
  15333. "ended",
  15334. function () {
  15335. callback();
  15336. callback = function () {};
  15337. },
  15338. false
  15339. );
  15340. stream.addEventListener(
  15341. "inactive",
  15342. function () {
  15343. callback();
  15344. callback = function () {};
  15345. },
  15346. false
  15347. );
  15348. stream.getTracks().forEach(function (track) {
  15349. track.addEventListener(
  15350. "ended",
  15351. function () {
  15352. callback();
  15353. callback = function () {};
  15354. },
  15355. false
  15356. );
  15357. track.addEventListener(
  15358. "inactive",
  15359. function () {
  15360. callback();
  15361. callback = function () {};
  15362. },
  15363. false
  15364. );
  15365. });
  15366. },
  15367. updateGroup() {
  15368. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  15369. this.dialogVisibleGroup2 = true;
  15370. },
  15371. updateGroupJson() {
  15372. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  15373. if (
  15374. this.groupStudentUid[this.toolindex][i].length >
  15375. this.groupJson2.number
  15376. ) {
  15377. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  15378. return;
  15379. }
  15380. }
  15381. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  15382. this.islock = this.groupJson.islock == 1 ? true : false;
  15383. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15384. this.taskCount
  15385. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  15386. let params = [
  15387. {
  15388. cid: this.id,
  15389. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  15390. uid: this.userid,
  15391. unitIndex: this.courseType,
  15392. },
  15393. ];
  15394. this.ajax
  15395. .post(this.$store.state.api + "updateWorkNew4", params)
  15396. .then((res) => {
  15397. this.$message.success("设置成功");
  15398. this.getCourseDetail(2);
  15399. this.dialogVisibleGroup2 = false;
  15400. this.groupJson2 = {};
  15401. this.$forceUpdate();
  15402. })
  15403. .catch((err) => {
  15404. this.$message.error("网络不佳");
  15405. console.error(err);
  15406. });
  15407. },
  15408. lockChair() {
  15409. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  15410. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  15411. this.updateGroupJson();
  15412. },
  15413. selectGroup(index) {
  15414. this.getCourseDetail(2, index);
  15415. },
  15416. joinGroup(index) {
  15417. if (this.groupJson.islock == 2) {
  15418. this.$message.error("位置已被锁定,无法加入");
  15419. return;
  15420. }
  15421. if (
  15422. this.groupStudent[this.toolindex][index].length >
  15423. this.groupJson.number ||
  15424. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  15425. ) {
  15426. this.$message.error("位置已满,无法加入");
  15427. return;
  15428. }
  15429. let params = [
  15430. {
  15431. cid: this.id,
  15432. stage: this.courseType,
  15433. task: this.taskCount,
  15434. tool: this.toolindex,
  15435. g: index,
  15436. uid: this.userid,
  15437. },
  15438. ];
  15439. this.ajax
  15440. .post(this.$store.state.api + "joinGroup", params)
  15441. .then((res) => {
  15442. this.$message.success("加入成功");
  15443. this.getCourseDetail(2);
  15444. })
  15445. .catch((err) => {
  15446. this.$message.error("网络不佳");
  15447. console.error(err);
  15448. });
  15449. },
  15450. exitGroup(id) {
  15451. if (this.groupJson.islock == 2) {
  15452. this.$message.error("位置已被锁定,无法退出");
  15453. return;
  15454. }
  15455. let params = [
  15456. {
  15457. gid: id,
  15458. },
  15459. ];
  15460. this.ajax
  15461. .post(this.$store.state.api + "exitGroup", params)
  15462. .then((res) => {
  15463. this.$message.success("退出成功");
  15464. this.getCourseDetail(2);
  15465. })
  15466. .catch((err) => {
  15467. this.$message.error("网络不佳");
  15468. console.error(err);
  15469. });
  15470. },
  15471. groupUpload(index, task, gindex) {
  15472. this.taskCount = task;
  15473. this.toolindex = index;
  15474. this.groupIndex = gindex;
  15475. this.dialogVisibleGroupWork = true;
  15476. },
  15477. updateGroupChair(user) {
  15478. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  15479. el.label = index;
  15480. return index != user.group;
  15481. });
  15482. this.updateGroupUser = user;
  15483. this.dialogVisibleUpdateGroup = true;
  15484. },
  15485. updateChair() {
  15486. if (
  15487. this.groupStudent[this.toolindex][this.checkChair].length >
  15488. this.groupJson.number ||
  15489. this.groupStudent[this.toolindex][this.checkChair].length ==
  15490. this.groupJson.number
  15491. ) {
  15492. this.$message.error("位置已满,无法加入");
  15493. return;
  15494. }
  15495. let params = [
  15496. {
  15497. cid: this.id,
  15498. stage: this.courseType,
  15499. task: this.taskCount,
  15500. tool: this.toolindex,
  15501. g: this.checkChair,
  15502. uid: this.updateGroupUser.userid,
  15503. },
  15504. ];
  15505. this.ajax
  15506. .post(this.$store.state.api + "joinGroup", params)
  15507. .then((res) => {
  15508. this.$message.success("修改成功");
  15509. this.updateGroupUser = {};
  15510. this.checkChair = "";
  15511. this.updateGroupArray = {};
  15512. this.dialogVisibleUpdateGroup = false;
  15513. this.getCourseDetail(2);
  15514. })
  15515. .catch((err) => {
  15516. this.$message.error("网络不佳");
  15517. console.error(err);
  15518. });
  15519. },
  15520. deleteGroupChair(gindex) {
  15521. this.checkDeleteGroup = [];
  15522. this.deleteGroupUser = JSON.parse(
  15523. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  15524. );
  15525. this.deleteGroupArray = this.groupJson.group[gindex];
  15526. this.groupIndex = gindex;
  15527. this.dialogVisibleDeleteGroup = true;
  15528. },
  15529. async deleteChair() {
  15530. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  15531. const gid =
  15532. this.groupStudent[this.toolindex][this.groupIndex][
  15533. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  15534. this.checkDeleteGroup[i]
  15535. )
  15536. ];
  15537. let params = [
  15538. {
  15539. gid: gid.id,
  15540. },
  15541. ];
  15542. var a = await this.deleteChairA(params);
  15543. if (i == this.checkDeleteGroup.length - 1) {
  15544. this.$message.success("退出成功");
  15545. this.dialogVisibleDeleteGroup = false;
  15546. this.deleteGroupUser = [];
  15547. this.deleteGroupArray = {};
  15548. this.groupIndex = "";
  15549. this.checkDeleteGroup = [];
  15550. this.getCourseDetail(2);
  15551. }
  15552. }
  15553. },
  15554. deleteChairA(params) {
  15555. return new Promise((resolve, reject) => {
  15556. this.ajax
  15557. .post(this.$store.state.api + "exitGroup", params)
  15558. .then((res) => {
  15559. resolve(1);
  15560. })
  15561. .catch((err) => {
  15562. this.$message.error("网络不佳");
  15563. console.error(err);
  15564. });
  15565. });
  15566. },
  15567. contract(i) {
  15568. if (this.isCloseList[i].isClose == 0) {
  15569. this.isCloseList[i].isClose = 1;
  15570. } else {
  15571. this.isCloseList[i].isClose = 0;
  15572. }
  15573. this.$forceUpdate();
  15574. },
  15575. },
  15576. directives: {
  15577. // 使用局部注册指令的方式
  15578. resize: {
  15579. // 指令的名称
  15580. bind(el, binding) {
  15581. // el为绑定的元素,binding为绑定给指令的对象
  15582. let width = "",
  15583. height = "";
  15584. function isReize() {
  15585. const style = document.defaultView.getComputedStyle(el);
  15586. if (width !== style.width || height !== style.height) {
  15587. binding.value(); // 关键
  15588. }
  15589. width = style.width;
  15590. height = style.height;
  15591. }
  15592. el.__vueSetInterval__ = setInterval(isReize, 300);
  15593. },
  15594. unbind(el) {
  15595. clearInterval(el.__vueSetInterval__);
  15596. },
  15597. },
  15598. },
  15599. beforeDestroy() {
  15600. window.onresize = null;
  15601. clearInterval(this.timer);
  15602. this.timer = null;
  15603. clearInterval(this.opertimer);
  15604. this.opertimer = null;
  15605. },
  15606. computed: {
  15607. contentConvent() {
  15608. return function (c) {
  15609. return c
  15610. ? c
  15611. .replaceAll(/\r\n/g, "<br/>")
  15612. .replaceAll(/\n/g, "<br/>")
  15613. .replaceAll(/\s/g, " &nbsp")
  15614. : "";
  15615. };
  15616. },
  15617. checkUpload() {
  15618. return function () {
  15619. var studentK = [];
  15620. if (this.plworkFile.length > 0) {
  15621. for (var z = 0; z < this.plworkFile.length; z++) {
  15622. studentK.push(this.plworkFile[z].username);
  15623. }
  15624. studentK = studentK.join(",");
  15625. }
  15626. var a = this.uploadStudentJuri.filter((el) => {
  15627. return studentK.indexOf(el.userid) == -1;
  15628. });
  15629. return a;
  15630. };
  15631. },
  15632. },
  15633. mounted() {
  15634. if (this.screenType == 2) {
  15635. window.parent.postMessage({ allScreen: 4 }, "*");
  15636. } else if (this.screenType == 3) {
  15637. window.parent.postMessage({ allScreen: 5 }, "*");
  15638. } else if (this.screenType == 1) {
  15639. window.parent.postMessage({ allScreen: 6 }, "*");
  15640. }
  15641. this.setOperationTime();
  15642. this.selectEva();
  15643. this.getCourseDetail();
  15644. this.selectCount();
  15645. this.getHomeWork();
  15646. this.contentDialog = true;
  15647. this.setContent2(true);
  15648. if (this.tType == 4) {
  15649. this.pzDialog = true;
  15650. this.selectPz();
  15651. }
  15652. document.scrollingElement.scrollTop = 0;
  15653. window.addEventListener("resize", () => {
  15654. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  15655. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  15656. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  15657. });
  15658. let _this = this;
  15659. setTimeout(() => {
  15660. // _this.vedioTime = [];
  15661. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  15662. // _this.vedioTime[i] = document.getElementsByClassName(
  15663. // "vjs-duration-display"
  15664. // )[i].textContent;
  15665. // }
  15666. }, 1000);
  15667. },
  15668. };
  15669. </script>
  15670. <style scoped>
  15671. @media screen and (max-width: 1280px) {
  15672. /* .courseIndex > div:first-child(2) {
  15673. width: 15% !important;
  15674. } */
  15675. /* .navText {
  15676. width: 120px !important;
  15677. } */
  15678. .evaCss {
  15679. flex-direction: column !important;
  15680. align-items: center !important;
  15681. }
  15682. .dialog_diy1 >>> .el-dialog {
  15683. width: 100% !important;
  15684. }
  15685. .rightWidthCss {
  15686. width: 100% !important;
  15687. }
  15688. .dialog_diy3 >>> .el-dialog {
  15689. width: 100% !important;
  15690. }
  15691. /* .textTitle >>> .el-form-item__label {
  15692. width: 150px !important;
  15693. } */
  15694. }
  15695. .evaCssMax {
  15696. flex-direction: column !important;
  15697. align-items: center !important;
  15698. }
  15699. .dialog_diy >>> .el-dialog {
  15700. margin-top: 10vh !important;
  15701. }
  15702. .body_student {
  15703. width: 77%;
  15704. height: 100%;
  15705. position: absolute;
  15706. left: 22%;
  15707. top: 0;
  15708. }
  15709. .student_head {
  15710. width: 100%;
  15711. margin: 0 auto;
  15712. padding-bottom: 20px;
  15713. display: flex;
  15714. flex-direction: column;
  15715. flex-wrap: nowrap;
  15716. align-items: flex-start;
  15717. justify-content: flex-start;
  15718. }
  15719. .pb_left {
  15720. width: 20%;
  15721. margin-right: 10px;
  15722. background: rgb(255, 255, 255);
  15723. padding-right: 10px;
  15724. position: fixed;
  15725. height: 100%;
  15726. }
  15727. .wheel > img,
  15728. .project > img,
  15729. .star > img,
  15730. .evaluate > img,
  15731. .up_photo > img,
  15732. .chapter_add > img,
  15733. .deleteWord > img,
  15734. .question > img,
  15735. .homework > img {
  15736. width: 100%;
  15737. height: 100%;
  15738. }
  15739. .upCover > img {
  15740. width: 131px;
  15741. height: 69px;
  15742. object-fit: cover;
  15743. }
  15744. .upCover {
  15745. width: calc(100% / 3.5);
  15746. position: relative;
  15747. margin: 0 15px 10px 0;
  15748. display: flex;
  15749. flex-direction: column;
  15750. flex-wrap: nowrap;
  15751. justify-content: center;
  15752. align-content: center;
  15753. align-items: center;
  15754. height: fit-content;
  15755. }
  15756. .upCover2 {
  15757. width: 100%;
  15758. position: relative;
  15759. margin: 0 15px 10px 0;
  15760. display: flex;
  15761. flex-direction: column;
  15762. flex-wrap: nowrap;
  15763. justify-content: center;
  15764. align-content: center;
  15765. align-items: center;
  15766. }
  15767. .upCover2 > img {
  15768. width: 100%;
  15769. height: 90px;
  15770. object-fit: contain;
  15771. }
  15772. .chapter_add {
  15773. width: 120px;
  15774. position: relative;
  15775. text-align: center;
  15776. }
  15777. .isAddThings {
  15778. margin-top: 20px;
  15779. position: relative;
  15780. text-align: center;
  15781. background: #f7f8fa;
  15782. height: 90px;
  15783. width: 90px;
  15784. display: flex;
  15785. flex-direction: column;
  15786. justify-content: center;
  15787. }
  15788. .deleteWord {
  15789. width: 22px;
  15790. height: 22px;
  15791. position: absolute;
  15792. right: -5px;
  15793. top: -5px;
  15794. cursor: pointer;
  15795. }
  15796. .box_course {
  15797. /* width: 60%; */
  15798. width: 81%;
  15799. }
  15800. .wheel {
  15801. width: 100%;
  15802. /* height: 100%; */
  15803. height: 650px;
  15804. }
  15805. .right_box {
  15806. display: flex;
  15807. flex-direction: column;
  15808. margin-left: 30px;
  15809. justify-content: space-around;
  15810. }
  15811. .right_box_title {
  15812. font-size: 23px;
  15813. }
  15814. .people {
  15815. display: flex;
  15816. }
  15817. .student_body {
  15818. width: 100%;
  15819. margin: 0 auto;
  15820. margin-top: 10px;
  15821. padding: 0 0 20px;
  15822. }
  15823. .study_top {
  15824. margin-top: 70px;
  15825. width: 100%;
  15826. /* overflow: auto; */
  15827. height: auto;
  15828. }
  15829. .study_top .checkbox {
  15830. display: flex;
  15831. align-items: center;
  15832. padding: 15px 0 15px 30px;
  15833. flex: 0 0 auto;
  15834. font-weight: bold;
  15835. border-bottom: 1px solid #eee;
  15836. }
  15837. .study_top .check {
  15838. padding-bottom: 5px;
  15839. text-align: center;
  15840. cursor: pointer;
  15841. height: 30px;
  15842. box-sizing: border-box;
  15843. display: flex;
  15844. }
  15845. .study_top .checked {
  15846. border-bottom: 4px solid #3fc6a0;
  15847. padding-bottom: 5px;
  15848. color: #3fc6a0;
  15849. display: flex;
  15850. height: 35px;
  15851. }
  15852. .study_top .checked > div,
  15853. .study_top .check > div {
  15854. margin-right: 5px;
  15855. }
  15856. .videoTop {
  15857. display: flex;
  15858. flex-direction: row;
  15859. justify-content: space-between;
  15860. background: #fff;
  15861. align-items: center;
  15862. width: 95%;
  15863. padding: 20px;
  15864. }
  15865. .upbtn {
  15866. margin: 25px;
  15867. background: #70afdb;
  15868. color: #fff;
  15869. width: 120px;
  15870. text-align: center;
  15871. height: 30px;
  15872. line-height: 30px;
  15873. font-size: 13px;
  15874. border-radius: 5px;
  15875. cursor: pointer;
  15876. }
  15877. .filebox {
  15878. display: flex;
  15879. flex-wrap: wrap;
  15880. flex-direction: column;
  15881. padding: 15px 0 5px;
  15882. }
  15883. .filebox .tooldetail {
  15884. width: 100%;
  15885. margin: 0px 12px;
  15886. background: rgb(247, 247, 247);
  15887. padding: 20px;
  15888. line-height: 30px;
  15889. word-break: break-word;
  15890. font-size: 18px;
  15891. }
  15892. .file {
  15893. display: flex;
  15894. flex-direction: column;
  15895. align-items: center;
  15896. justify-content: center;
  15897. cursor: pointer;
  15898. width: 200px;
  15899. }
  15900. .file div {
  15901. margin-top: 10px;
  15902. width: 150px;
  15903. text-align: center;
  15904. overflow: hidden;
  15905. white-space: nowrap;
  15906. text-overflow: ellipsis;
  15907. }
  15908. .media {
  15909. display: flex;
  15910. flex-direction: column;
  15911. align-items: center;
  15912. justify-content: center;
  15913. margin: 0 20px 20px 0;
  15914. cursor: pointer;
  15915. margin: 12px 0 5px 15px;
  15916. overflow: hidden;
  15917. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  15918. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  15919. box-sizing: border-box;
  15920. }
  15921. .media img {
  15922. height: 90px;
  15923. width: 160px;
  15924. object-fit: cover;
  15925. }
  15926. .media .title {
  15927. padding: 5px;
  15928. text-align: left;
  15929. width: 100%;
  15930. box-sizing: border-box;
  15931. }
  15932. .media .btn {
  15933. width: 100%;
  15934. height: 35px;
  15935. line-height: 35px;
  15936. color: #fff;
  15937. background: #606060;
  15938. text-align: center;
  15939. overflow: hidden;
  15940. white-space: nowrap;
  15941. text-overflow: ellipsis;
  15942. }
  15943. .detail_content_top {
  15944. width: 100%;
  15945. padding: 25px 0 25px 0;
  15946. }
  15947. .detail_title {
  15948. text-align: center;
  15949. font-size: 24px;
  15950. }
  15951. .detail_time {
  15952. font-size: 13px;
  15953. padding: 15px 0 0 40px;
  15954. }
  15955. .detail_content {
  15956. line-height: 2pc;
  15957. width: 90%;
  15958. margin: 0 auto;
  15959. padding-top: 30px;
  15960. text-indent: 30px;
  15961. overflow: auto;
  15962. height: 200px;
  15963. }
  15964. .score_box >>> .el-rate {
  15965. margin-left: 10px;
  15966. }
  15967. .dialog_change >>> .el-dialog {
  15968. border-radius: 5px;
  15969. }
  15970. .dialog_change >>> .el-dialog__header {
  15971. background: #f2f2f2;
  15972. text-align: center;
  15973. }
  15974. .dialog_change >>> .el-dialog__title {
  15975. line-height: 5px;
  15976. }
  15977. .dialog_change >>> .el-dialog__body {
  15978. background: #fff;
  15979. padding: 10px 20px;
  15980. }
  15981. .score_box {
  15982. display: flex;
  15983. align-items: center;
  15984. margin-bottom: 18px;
  15985. margin-top: 20px;
  15986. }
  15987. .up_photo {
  15988. width: 120px;
  15989. cursor: pointer;
  15990. margin-top: 10px;
  15991. }
  15992. .up_photo2 {
  15993. width: 180px;
  15994. box-sizing: border-box;
  15995. min-width: 180px;
  15996. height: 180px;
  15997. max-height: 180px;
  15998. min-height: 180px;
  15999. cursor: pointer;
  16000. display: flex;
  16001. flex-direction: column;
  16002. align-items: center;
  16003. justify-content: center;
  16004. background: rgb(242, 246, 255);
  16005. /* padding: 25px; */
  16006. margin-bottom: 10px;
  16007. }
  16008. .up_photo2 img {
  16009. width: 50%;
  16010. height: auto;
  16011. }
  16012. .up_photo2 span {
  16013. color: #898989;
  16014. }
  16015. .plworkBox {
  16016. display: flex;
  16017. align-items: center;
  16018. margin-top: 10px;
  16019. flex-wrap: wrap;
  16020. }
  16021. .upload_send {
  16022. margin: 30px auto 30px;
  16023. width: 60%;
  16024. background: #169bd6;
  16025. text-align: center;
  16026. height: 35px;
  16027. line-height: 35px;
  16028. color: #fff;
  16029. border-radius: 5px;
  16030. cursor: pointer;
  16031. }
  16032. .marginT {
  16033. margin-top: 20px;
  16034. }
  16035. .cd_content_steps {
  16036. display: flex;
  16037. width: 90%;
  16038. justify-content: space-around;
  16039. border-top: 1px solid #eeeeee;
  16040. }
  16041. .cd_steps_box {
  16042. display: flex;
  16043. justify-content: center;
  16044. align-items: center;
  16045. flex-direction: column;
  16046. cursor: pointer;
  16047. }
  16048. .first {
  16049. display: flex;
  16050. align-items: center;
  16051. margin: 15px 0 20px 0;
  16052. font-size: 20px;
  16053. }
  16054. .first > div:nth-child(2) {
  16055. font-size: 16px !important;
  16056. padding-left: 10px;
  16057. line-height: 26px;
  16058. box-sizing: border-box;
  16059. }
  16060. .blue_box_one {
  16061. text-align: center;
  16062. color: #fff;
  16063. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  16064. border-radius: 7px;
  16065. margin: 10px;
  16066. cursor: pointer;
  16067. width: 95%;
  16068. height: 45px;
  16069. display: flex;
  16070. flex-direction: row;
  16071. justify-content: flex-start;
  16072. align-items: center;
  16073. }
  16074. .blue_box_one > div:nth-child(1) {
  16075. line-height: 30px;
  16076. margin: 0 5px 0 10px;
  16077. width: 30%;
  16078. min-width: 70px;
  16079. border-radius: 4px;
  16080. }
  16081. .blue_box_one > div:nth-child(2) {
  16082. white-space: nowrap;
  16083. text-overflow: ellipsis;
  16084. overflow: hidden;
  16085. word-break: break-all;
  16086. width: 70%;
  16087. text-align: left;
  16088. margin-right: 10px;
  16089. max-width: calc(100% - 85px);
  16090. }
  16091. .blue_box_one > div:nth-child(2):hover {
  16092. overflow: hidden;
  16093. text-overflow: ellipsis;
  16094. white-space: nowrap;
  16095. cursor: pointer;
  16096. }
  16097. .upFile {
  16098. margin: 0 auto;
  16099. width: 120px;
  16100. background: #70afdb;
  16101. color: #fff;
  16102. height: 30px;
  16103. text-align: center;
  16104. line-height: 30px;
  16105. border-radius: 5px;
  16106. font-size: 14px;
  16107. cursor: pointer;
  16108. }
  16109. .courseTitle {
  16110. background: #205cc6;
  16111. width: 85%;
  16112. margin: 10px auto;
  16113. color: #fff;
  16114. border-radius: 5px;
  16115. padding: 10px 10px;
  16116. display: flex;
  16117. flex-direction: row;
  16118. align-items: center;
  16119. justify-content: space-between;
  16120. text-align: center;
  16121. }
  16122. .courseTitle .ctitle {
  16123. font-weight: bold;
  16124. font-size: 20px;
  16125. white-space: nowrap;
  16126. overflow: hidden;
  16127. text-overflow: ellipsis;
  16128. }
  16129. .courseTitle .inviteBox {
  16130. font-size: 14px;
  16131. margin-top: 5px;
  16132. color: #a6cbff;
  16133. }
  16134. .courseTitle >>> .el-tooltip {
  16135. width: 100%;
  16136. white-space: nowrap;
  16137. overflow: hidden;
  16138. text-overflow: ellipsis;
  16139. word-break: break-word;
  16140. }
  16141. .ml {
  16142. margin-left: 20px;
  16143. color: #5b7dba;
  16144. border-left: 3px solid #5b7dba;
  16145. padding-left: 5px;
  16146. font-weight: bold;
  16147. }
  16148. .return {
  16149. width: 2rem;
  16150. height: 2rem;
  16151. cursor: pointer;
  16152. }
  16153. .return > img {
  16154. width: 100%;
  16155. height: 100%;
  16156. }
  16157. .returnBtn {
  16158. background: #499eef;
  16159. width: 65px;
  16160. height: 30px;
  16161. color: #fff;
  16162. text-align: center;
  16163. line-height: 32px;
  16164. margin-right: 20px;
  16165. cursor: pointer;
  16166. border-radius: 5px;
  16167. font-size: 14px;
  16168. }
  16169. .tool {
  16170. display: flex;
  16171. flex-direction: column;
  16172. flex-wrap: nowrap;
  16173. width: 13%;
  16174. margin: 0 30px;
  16175. align-items: center;
  16176. }
  16177. .whiteBIcon {
  16178. width: 150px;
  16179. cursor: pointer;
  16180. }
  16181. .whiteBIcon > img {
  16182. width: 100%;
  16183. height: 100%;
  16184. }
  16185. .mask {
  16186. background-color: rgba(0, 0, 0, 0);
  16187. position: fixed;
  16188. top: 0;
  16189. left: 0;
  16190. width: 100%;
  16191. height: 100%;
  16192. z-index: 20000;
  16193. display: flex;
  16194. align-items: center;
  16195. justify-content: center;
  16196. }
  16197. .progressBox {
  16198. width: 500px;
  16199. height: 180px;
  16200. background: #fff;
  16201. border-radius: 10px;
  16202. box-shadow: 0 0 6px 1px #bfbfbf;
  16203. display: flex;
  16204. align-items: center;
  16205. justify-content: center;
  16206. flex-direction: column;
  16207. position: relative;
  16208. color: #6c6c6c;
  16209. }
  16210. .progressBox >>> .el-progress-bar__outer {
  16211. background-color: #d1dfff !important;
  16212. }
  16213. .progressBox .lbox {
  16214. height: 50px;
  16215. font-size: 19px;
  16216. display: flex;
  16217. align-items: center;
  16218. color: #747474;
  16219. }
  16220. .progressBox .lbox img {
  16221. width: 40px;
  16222. margin-right: 20px;
  16223. }
  16224. .closeCss {
  16225. position: absolute;
  16226. top: 8px;
  16227. right: 8px;
  16228. cursor: pointer;
  16229. width: 20px;
  16230. height: 20px;
  16231. }
  16232. .closeCss > img {
  16233. width: 100%;
  16234. height: 100%;
  16235. }
  16236. .uploadVedio {
  16237. display: flex;
  16238. flex-direction: column;
  16239. flex-wrap: nowrap;
  16240. justify-content: center;
  16241. align-items: center;
  16242. margin: 0 15px 10px 0;
  16243. }
  16244. .uploadVedio > img {
  16245. width: 30px;
  16246. height: 30px;
  16247. }
  16248. .uploadVedio > span {
  16249. white-space: nowrap;
  16250. overflow: hidden;
  16251. text-overflow: ellipsis;
  16252. width: 75px;
  16253. margin-top: 7px;
  16254. }
  16255. .picName {
  16256. white-space: nowrap;
  16257. overflow: hidden;
  16258. text-overflow: ellipsis;
  16259. width: 75px;
  16260. margin-top: 7px;
  16261. }
  16262. .new_top {
  16263. display: flex;
  16264. background: #fff;
  16265. flex-direction: row;
  16266. justify-content: flex-start;
  16267. align-items: center;
  16268. height: 60px;
  16269. position: relative;
  16270. }
  16271. .before {
  16272. position: absolute;
  16273. background: #c3dad4;
  16274. width: 6px;
  16275. height: 100%;
  16276. }
  16277. .courseIndex {
  16278. display: flex;
  16279. flex-direction: row;
  16280. align-items: center;
  16281. width: calc(100% - 600px);
  16282. }
  16283. .courseIndex > div:nth-child(1) {
  16284. margin: 0 20px;
  16285. padding-left: 5px;
  16286. font-size: 24px;
  16287. min-width: 100px;
  16288. font-weight: bold;
  16289. border-left: 4px solid #3363b9;
  16290. height: 35px;
  16291. text-align: center;
  16292. line-height: 35px;
  16293. }
  16294. .courseIndex > div:nth-child(2) {
  16295. font-size: 23px;
  16296. /* width: 300px; */
  16297. max-width: calc(100% - 180px);
  16298. white-space: nowrap;
  16299. overflow: hidden;
  16300. text-overflow: ellipsis;
  16301. }
  16302. .courseIndex > div:nth-child(3) {
  16303. border-bottom: 1px solid #d7d7d7;
  16304. padding-bottom: 5px;
  16305. background: #49a0f0;
  16306. width: 55px;
  16307. min-width: 55px;
  16308. border-radius: 5px;
  16309. color: #fff;
  16310. text-align: center;
  16311. height: 20px;
  16312. line-height: 26px;
  16313. font-size: 14px;
  16314. margin: 0 0 0 10px;
  16315. }
  16316. .course_text {
  16317. padding: 20px 0 0 15px;
  16318. text-indent: 30px;
  16319. width: 80%;
  16320. min-height: 20px;
  16321. }
  16322. .vedioList {
  16323. background: #f2f2f2;
  16324. border: 1px solid #ececec;
  16325. /* width: 38.8%; */
  16326. width: 100%;
  16327. height: 445px;
  16328. border-radius: 10px;
  16329. overflow: hidden;
  16330. }
  16331. .vedioNav {
  16332. margin: 10px 0 0 15px;
  16333. border-bottom: 1px solid #d7d7d7;
  16334. padding-bottom: 5px;
  16335. background: #96d1ff;
  16336. width: 55px;
  16337. min-width: 55px;
  16338. border-radius: 5px;
  16339. color: #fff;
  16340. text-align: center;
  16341. height: 20px;
  16342. line-height: 26px;
  16343. font-size: 14px;
  16344. }
  16345. .queTop {
  16346. display: flex;
  16347. padding: 20px 0 20px 30px;
  16348. width: 100%;
  16349. flex-direction: row;
  16350. justify-content: flex-start;
  16351. align-items: center;
  16352. border-bottom: 1px solid #eeeeee;
  16353. box-sizing: border-box;
  16354. }
  16355. .question {
  16356. width: 40px;
  16357. margin-right: 10px;
  16358. margin-top: 7px;
  16359. }
  16360. .queTitle {
  16361. margin-left: 5px;
  16362. font-size: 25px;
  16363. display: flex;
  16364. align-items: center;
  16365. }
  16366. .addEditor {
  16367. width: 100px;
  16368. height: 30px;
  16369. background: #42cda6;
  16370. color: #fff;
  16371. border-radius: 5px;
  16372. text-align: center;
  16373. line-height: 30px;
  16374. box-shadow: 1px 3px 6px 1px #bfbfbf;
  16375. cursor: pointer;
  16376. }
  16377. .vedioName {
  16378. /* text-overflow: ellipsis;
  16379. top: 8px;
  16380. font-size: 14px;
  16381. overflow: hidden;
  16382. width: 100%;
  16383. word-break: break-all;
  16384. white-space: nowrap; */
  16385. cursor: pointer;
  16386. margin: 0px 0px 10px 5px;
  16387. white-space: nowrap;
  16388. overflow: hidden;
  16389. text-overflow: ellipsis;
  16390. width: 100%;
  16391. }
  16392. .vedioTime {
  16393. width: 35px;
  16394. position: absolute;
  16395. color: #fff;
  16396. bottom: 0px;
  16397. right: 0px;
  16398. text-align: center;
  16399. background: #46411f;
  16400. height: 20px;
  16401. font-size: 14px;
  16402. line-height: 20px;
  16403. }
  16404. .homework {
  16405. width: 200px;
  16406. display: flex;
  16407. flex-direction: column;
  16408. flex-wrap: nowrap;
  16409. align-items: center;
  16410. cursor: pointer;
  16411. }
  16412. .homebox {
  16413. display: flex;
  16414. flex-wrap: wrap;
  16415. flex-direction: row;
  16416. justify-content: flex-start;
  16417. align-items: center;
  16418. padding: 15px 0;
  16419. }
  16420. .isChooseActive {
  16421. color: #3e88f4;
  16422. border-bottom: 2px solid #2f80f3;
  16423. }
  16424. .chooseWho {
  16425. display: flex;
  16426. width: 100%;
  16427. flex-direction: row;
  16428. flex-wrap: nowrap;
  16429. justify-content: flex-start;
  16430. padding-bottom: 10px;
  16431. }
  16432. .chooseWho > div {
  16433. cursor: pointer;
  16434. padding-bottom: 10px;
  16435. margin: 0 30px;
  16436. }
  16437. .addPoint > div > img {
  16438. cursor: pointer;
  16439. margin: 0 10px;
  16440. width: 85px;
  16441. border-radius: 15px;
  16442. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  16443. }
  16444. .addPoint > div {
  16445. display: flex;
  16446. flex-direction: column;
  16447. flex-wrap: nowrap;
  16448. align-items: center;
  16449. }
  16450. .isBorder > div {
  16451. margin: 0 0 10px 0;
  16452. align-items: flex-start !important;
  16453. }
  16454. .noiframeBox {
  16455. display: flex;
  16456. flex-wrap: wrap;
  16457. }
  16458. .iframeBox iframe {
  16459. width: 100%;
  16460. height: 800px;
  16461. border: none;
  16462. margin-bottom: 20px;
  16463. border: 1px solid #ccc;
  16464. }
  16465. .upload_toolBtn {
  16466. background: #6b92c9;
  16467. color: #fff;
  16468. width: 110px;
  16469. text-align: center;
  16470. height: 35px;
  16471. line-height: 35px;
  16472. font-size: 14px;
  16473. border-radius: 5px;
  16474. cursor: pointer;
  16475. position: absolute;
  16476. right: 10px;
  16477. bottom: 0;
  16478. }
  16479. .binfo_input,
  16480. .pj {
  16481. font: inherit;
  16482. color: currentColor;
  16483. width: 100%;
  16484. margin: 0;
  16485. padding: 15px 14px;
  16486. display: block;
  16487. min-width: 0;
  16488. outline: none;
  16489. box-sizing: content-box;
  16490. background: none;
  16491. -webkit-tap-highlight-color: transparent;
  16492. border: 1px solid rgba(0, 0, 0, 0.23);
  16493. border-radius: 4px;
  16494. box-sizing: border-box;
  16495. resize: none;
  16496. }
  16497. .binfo_input:focus-visible {
  16498. border: 1px solid rgba(61, 103, 188);
  16499. }
  16500. .dialog_diy >>> .el-dialog__header,
  16501. .dialog_diy1 >>> .el-dialog__header {
  16502. background: #454545 !important;
  16503. padding: 15px 20px;
  16504. }
  16505. .dialog_diy >>> .el-dialog__title,
  16506. .dialog_diy1 >>> .el-dialog__title {
  16507. color: #fff;
  16508. }
  16509. .dialog_diy >>> .el-dialog__headerbtn,
  16510. .dialog_diy1 >>> .el-dialog__headerbtn {
  16511. top: 19px;
  16512. }
  16513. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  16514. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  16515. color: #fff;
  16516. }
  16517. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  16518. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  16519. color: #fff;
  16520. }
  16521. .dialog_diy1 >>> .el-dialog__body {
  16522. padding: 0;
  16523. }
  16524. .dialog_diy >>> .el-dialog__body,
  16525. .dialog_diy >>> .el-dialog__footer,
  16526. .dialog_diy1 >>> .el-dialog__footer {
  16527. background: #fafafa;
  16528. }
  16529. .a_addBox {
  16530. margin: 10px 0;
  16531. background: #fff;
  16532. padding: 15px;
  16533. }
  16534. .a_add_box {
  16535. border-bottom: 2px solid #eee;
  16536. padding-bottom: 10px;
  16537. }
  16538. .a_add_head {
  16539. display: flex;
  16540. align-items: flex-start;
  16541. /* justify-content: space-between; */
  16542. flex-direction: column;
  16543. /* flex-direction: row; */
  16544. margin: 10px 0 20px 0;
  16545. font-size: 18px;
  16546. width: 100%;
  16547. }
  16548. .a_add_head .a_add_head_input {
  16549. width: 300px;
  16550. }
  16551. .a_add_head .a_add_head_div {
  16552. display: flex;
  16553. align-items: center;
  16554. justify-content: space-between;
  16555. }
  16556. .a_add_body {
  16557. display: flex;
  16558. align-items: center;
  16559. }
  16560. .a_add_input {
  16561. display: flex;
  16562. align-items: center;
  16563. flex-wrap: wrap;
  16564. }
  16565. .a_add_input >>> el-radio-group {
  16566. margin: 10px 0;
  16567. }
  16568. .a_add_input >>> .el-radio,
  16569. .a_add_input >>> .el-checkbox {
  16570. margin-bottom: 10px;
  16571. display: flex;
  16572. flex-direction: row;
  16573. flex-wrap: nowrap;
  16574. align-items: center;
  16575. }
  16576. .redioStyle >>> .el-radio__label {
  16577. font-size: 18px;
  16578. }
  16579. .redioStyle >>> .el-checkbox__label {
  16580. font-size: 18px;
  16581. }
  16582. .toolHeng2 {
  16583. width: 100%;
  16584. }
  16585. .toolHeng {
  16586. display: flex;
  16587. flex-direction: row;
  16588. flex-wrap: wrap;
  16589. justify-content: flex-start;
  16590. align-items: center;
  16591. width: 100%;
  16592. }
  16593. .toolHeng > div {
  16594. padding-left: 20px;
  16595. }
  16596. .isWidth {
  16597. width: 20%;
  16598. }
  16599. .textTitle {
  16600. display: flex;
  16601. flex-direction: row;
  16602. flex-wrap: nowrap;
  16603. align-items: center;
  16604. width: 95%;
  16605. }
  16606. .textTitle >>> .el-form-item__label {
  16607. font-size: 22px;
  16608. color: #918f8f;
  16609. width: 100px;
  16610. }
  16611. .textTitle >>> .el-form-item__content {
  16612. width: calc(100% - 100px);
  16613. }
  16614. .textCss >>> .el-dialog {
  16615. width: 800px !important;
  16616. height: 400px;
  16617. background: #fafafa;
  16618. }
  16619. .textCss >>> .el-dialog__body {
  16620. margin: 55px 8% 0 8%;
  16621. padding: 0 !important;
  16622. }
  16623. .textCss >>> .el-dialog__footer {
  16624. padding-top: 38px;
  16625. }
  16626. .toolsCss >>> .el-dialog__body {
  16627. padding: 20px;
  16628. }
  16629. .lineCss >>> .el-dialog__body {
  16630. display: flex;
  16631. flex-direction: row;
  16632. align-items: center;
  16633. justify-content: center;
  16634. }
  16635. .newNav {
  16636. display: flex;
  16637. flex-direction: row;
  16638. align-items: baseline;
  16639. justify-content: flex-start;
  16640. }
  16641. .navText {
  16642. cursor: pointer;
  16643. margin: 0px 0px 10px 5px;
  16644. white-space: nowrap;
  16645. overflow: hidden;
  16646. text-overflow: ellipsis;
  16647. /* width: 300px; */
  16648. width: 100%;
  16649. }
  16650. .noVedio {
  16651. display: flex;
  16652. flex-direction: row;
  16653. justify-content: center;
  16654. align-content: center;
  16655. }
  16656. .noNavText {
  16657. cursor: pointer;
  16658. margin: 0px 0px 10px 5px;
  16659. width: 112px;
  16660. }
  16661. .listNoVedio {
  16662. margin: 0 0 0 30px;
  16663. width: 97%;
  16664. }
  16665. .video-player >>> .video-js {
  16666. height: 100%;
  16667. }
  16668. .hangVedioList {
  16669. width: 90% !important;
  16670. height: 150px !important;
  16671. margin: 20px 0 0 30px;
  16672. }
  16673. .hangVedio {
  16674. width: 100%;
  16675. height: 170px !important;
  16676. align-items: flex-start !important;
  16677. }
  16678. .hangHand {
  16679. height: 150px !important;
  16680. }
  16681. .twoChild {
  16682. width: 95%;
  16683. margin: 10px;
  16684. border-radius: 5px;
  16685. background: #f2f2f2;
  16686. display: flex;
  16687. flex-direction: column;
  16688. flex-wrap: nowrap;
  16689. justify-content: flex-start;
  16690. align-items: flex-start;
  16691. transition: all 0.5s;
  16692. overflow: hidden;
  16693. height: 0;
  16694. background: #e7f3ff;
  16695. }
  16696. .twoChild > div:nth-child(1) {
  16697. margin-top: 5px;
  16698. }
  16699. .navChild {
  16700. width: 100%;
  16701. cursor: pointer;
  16702. margin-bottom: 10px;
  16703. position: relative;
  16704. }
  16705. .navChild img {
  16706. position: absolute;
  16707. right: 11px;
  16708. width: 15px;
  16709. top: 50%;
  16710. transform: translateY(-50%);
  16711. }
  16712. .navActive {
  16713. height: auto;
  16714. }
  16715. .navTask {
  16716. display: flex;
  16717. flex-direction: row;
  16718. flex-wrap: nowrap;
  16719. align-items: center;
  16720. align-content: flex-start;
  16721. height: 40px;
  16722. justify-content: flex-start;
  16723. padding: 0 10px;
  16724. width: 100%;
  16725. box-sizing: border-box;
  16726. }
  16727. .navTaskname {
  16728. white-space: nowrap;
  16729. text-overflow: ellipsis;
  16730. overflow: hidden;
  16731. word-break: break-all;
  16732. padding-left: 5px;
  16733. }
  16734. .openTaskActive {
  16735. color: #4386e6;
  16736. }
  16737. .iframeName {
  16738. margin: 5px 0;
  16739. border-left: 4px solid #41c4a4;
  16740. padding-left: 4px;
  16741. }
  16742. .toolTitle {
  16743. margin: 0px 0px 20px;
  16744. font-size: 20px;
  16745. font-weight: 500;
  16746. border-left: 4px solid #41c4a4;
  16747. padding-left: 4px;
  16748. }
  16749. .cru_selectBox {
  16750. overflow: auto;
  16751. width: 96%;
  16752. margin: 0 auto;
  16753. height: calc(100% - 40px - 21px - 20px);
  16754. }
  16755. .cru_selectBox::-webkit-scrollbar,
  16756. .study_top::-webkit-scrollbar,
  16757. .textContent::-webkit-scrollbar {
  16758. /*滚动条整体样式*/
  16759. width: 6px;
  16760. /*高宽分别对应横竖滚动条的尺寸*/
  16761. height: 6px;
  16762. }
  16763. /*定义滚动条轨道 内阴影+圆角*/
  16764. .cru_selectBox::-webkit-scrollbar-track,
  16765. .study_top::-webkit-scrollbar-track,
  16766. .textContent::-webkit-scrollbar {
  16767. border-radius: 10px;
  16768. background-color: #b8bdc9;
  16769. }
  16770. /*定义滑块 内阴影+圆角*/
  16771. .cru_selectBox::-webkit-scrollbar-thumb,
  16772. .study_top::-webkit-scrollbar-thumb,
  16773. .textContent::-webkit-scrollbar-thumb {
  16774. border-radius: 10px;
  16775. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  16776. background-color: #2c5ab3;
  16777. }
  16778. .vedioBox {
  16779. border-radius: 20px;
  16780. background: #fff;
  16781. margin-bottom: 10px;
  16782. }
  16783. .taskBox {
  16784. margin: 15px auto 20px;
  16785. background: #f7f7f7;
  16786. width: 97%;
  16787. border-radius: 10px;
  16788. }
  16789. .vedioTaskBox {
  16790. width: 100%;
  16791. display: flex;
  16792. flex-direction: row;
  16793. flex-wrap: nowrap;
  16794. align-items: flex-start;
  16795. position: relative;
  16796. }
  16797. .toolBox {
  16798. padding: 20px 0 0 0;
  16799. display: flex;
  16800. }
  16801. .btnAll {
  16802. position: absolute;
  16803. right: 0;
  16804. display: flex;
  16805. flex-direction: row;
  16806. flex-wrap: nowrap;
  16807. align-items: center;
  16808. }
  16809. .vedioTimeBox {
  16810. display: flex;
  16811. flex-direction: row;
  16812. align-items: center;
  16813. flex-wrap: nowrap;
  16814. position: relative;
  16815. }
  16816. .navBox {
  16817. background: #fff;
  16818. height: calc(100% - 40px);
  16819. padding: 5px 1px 0;
  16820. overflow-y: auto;
  16821. overflow-x: hidden;
  16822. }
  16823. .worksBox {
  16824. padding: 5px 0 0 10px;
  16825. border-bottom: 1px solid #eeeeee;
  16826. }
  16827. .worksBTitle {
  16828. font-size: 20px;
  16829. padding-bottom: 15px;
  16830. border-bottom: 1px solid #eeeeee;
  16831. display: flex;
  16832. align-items: center;
  16833. }
  16834. .greenBox {
  16835. width: 5px;
  16836. height: 30px;
  16837. background: #63b6fa;
  16838. margin-right: 5px;
  16839. }
  16840. .worksDetailBox {
  16841. display: flex;
  16842. width: 100%;
  16843. flex-direction: row;
  16844. flex-wrap: wrap;
  16845. align-items: flex-end;
  16846. justify-content: flex-start;
  16847. padding: 15px 0;
  16848. }
  16849. .works {
  16850. display: flex;
  16851. flex-direction: column;
  16852. flex-wrap: nowrap;
  16853. align-items: flex-start;
  16854. justify-content: flex-start;
  16855. align-content: center;
  16856. max-width: 240px;
  16857. width: calc(100% / 3 - 10px);
  16858. height: auto;
  16859. margin-right: 10px;
  16860. margin-bottom: 10px;
  16861. overflow: hidden;
  16862. height: 140px;
  16863. box-shadow: 0 0 6px 1px #dfdada;
  16864. border-radius: 15px;
  16865. }
  16866. .workImg {
  16867. width: 100%;
  16868. /* height: calc(100% - 40px); */
  16869. height: 105px;
  16870. position: relative;
  16871. }
  16872. .workImg > img {
  16873. width: 100%;
  16874. height: 100%;
  16875. object-fit: contain;
  16876. cursor: pointer;
  16877. }
  16878. .worksName {
  16879. height: 40px;
  16880. line-height: 40px;
  16881. display: flex;
  16882. width: 100%;
  16883. flex-direction: row;
  16884. flex-wrap: nowrap;
  16885. justify-content: space-between;
  16886. align-items: center;
  16887. margin: 0 0 0 10px;
  16888. }
  16889. .worksName > div:nth-child(1) {
  16890. width: 110px;
  16891. white-space: nowrap;
  16892. overflow: hidden;
  16893. text-overflow: ellipsis;
  16894. }
  16895. .worksName > div:nth-child(2) {
  16896. color: #b7b4b5;
  16897. }
  16898. .noWorksS {
  16899. padding: 15px 0;
  16900. display: flex;
  16901. flex-direction: row;
  16902. flex-wrap: wrap;
  16903. align-items: center;
  16904. justify-content: flex-start;
  16905. }
  16906. .noWorksName,
  16907. .isWorksName {
  16908. background: #7cbcf1;
  16909. color: #fff;
  16910. width: 90px;
  16911. height: 25px;
  16912. text-align: center;
  16913. line-height: 25px;
  16914. border-radius: 5px;
  16915. margin: 10px 15px 10px 0;
  16916. white-space: nowrap;
  16917. overflow: hidden;
  16918. padding: 5px;
  16919. text-overflow: ellipsis;
  16920. cursor: pointer;
  16921. }
  16922. .isWorksName {
  16923. background: #46a1eb !important;
  16924. width: 100px;
  16925. height: 40px;
  16926. line-height: 40px;
  16927. position: relative;
  16928. }
  16929. .noWorksName:hover {
  16930. background: #46a1eb !important;
  16931. }
  16932. .title {
  16933. background: #1e5cc9;
  16934. /* width: 98%; */
  16935. height: 45px;
  16936. color: #fff;
  16937. line-height: 45px;
  16938. padding-left: 20px;
  16939. box-sizing: border-box;
  16940. }
  16941. .textBox {
  16942. font-size: 20px;
  16943. width: 90%;
  16944. display: flex;
  16945. flex-direction: column;
  16946. align-items: center;
  16947. margin: 20px auto 0;
  16948. max-height: 500px;
  16949. overflow: auto;
  16950. }
  16951. .textContent {
  16952. font-size: 18px;
  16953. width: 95%;
  16954. max-width: 95%;
  16955. }
  16956. .answerBg {
  16957. background: url("../assets/icon/answerBgNew.png") no-repeat;
  16958. background-size: 100% 100%;
  16959. width: 100%;
  16960. height: 100%;
  16961. color: #fff;
  16962. text-align: center;
  16963. display: flex;
  16964. flex-direction: column;
  16965. flex-wrap: nowrap;
  16966. align-items: center;
  16967. position: relative;
  16968. justify-content: center;
  16969. }
  16970. .answerBg > div:nth-child(1) {
  16971. /* font-size: 22px;
  16972. padding: 25px 0 10px; */
  16973. }
  16974. .answerContent {
  16975. width: 215px;
  16976. max-height: 60px;
  16977. word-break: break-all;
  16978. text-align: center;
  16979. /* white-space: nowrap; */
  16980. overflow: hidden;
  16981. text-overflow: ellipsis;
  16982. /* padding: 23px 0 0; */
  16983. -webkit-line-clamp: 3;
  16984. -webkit-box-orient: vertical;
  16985. display: -webkit-box;
  16986. font-size: 15px;
  16987. cursor: pointer;
  16988. }
  16989. .elist_input_box {
  16990. display: flex;
  16991. align-items: flex-start;
  16992. flex-wrap: nowrap;
  16993. padding: 10px 0 15px 30px;
  16994. flex-direction: column;
  16995. }
  16996. .elist_input {
  16997. /* width: 40%; */
  16998. width: 100%;
  16999. }
  17000. .elist_input .elist_input_box input {
  17001. font: inherit;
  17002. color: currentColor;
  17003. width: 200px;
  17004. padding: 8px 14px;
  17005. display: block;
  17006. min-width: 0;
  17007. outline: none;
  17008. border: 1px solid rgba(0, 0, 0, 0.23);
  17009. border-radius: 4px;
  17010. box-sizing: border-box;
  17011. background: #fff;
  17012. margin: 0 20px 0 0;
  17013. }
  17014. .elist_input .elist_input_box span {
  17015. height: 36px;
  17016. line-height: 36px;
  17017. color: rgb(82, 82, 82);
  17018. }
  17019. .elist_input .elist_input_box .remove {
  17020. height: 20px;
  17021. width: 20px;
  17022. background-size: 100% 100%;
  17023. background-position: unset;
  17024. margin-left: 5px;
  17025. }
  17026. .elist_input_box >>> .el-rate {
  17027. display: flex;
  17028. height: 36px;
  17029. align-items: center;
  17030. }
  17031. .elist_input_box .elist_inptu_text {
  17032. min-height: 50px;
  17033. /* width: 500px;
  17034. max-height: 150px; */
  17035. width: 100%;
  17036. line-height: 50px;
  17037. color: rgb(82, 82, 82);
  17038. overflow: auto;
  17039. text-indent: 5px;
  17040. background: #f7f6f9;
  17041. border-radius: 10px;
  17042. }
  17043. .elist_input_box .elist_inptu_text input {
  17044. width: 500px;
  17045. }
  17046. .elist_input_box >>> .el-rate__icon {
  17047. font-size: 24px;
  17048. }
  17049. .isClick {
  17050. background: #4d9def;
  17051. }
  17052. .bzBox {
  17053. display: flex;
  17054. flex-direction: row;
  17055. align-items: center;
  17056. }
  17057. .bzBox > div:nth-child(1) {
  17058. width: 4px;
  17059. height: 40px;
  17060. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  17061. }
  17062. .bzBox > div:nth-child(2) {
  17063. font-size: 23px;
  17064. font-weight: bold;
  17065. padding: 0px 0px 0 10px;
  17066. }
  17067. .navTitile {
  17068. padding: 0 0px 0 15px;
  17069. color: #fff;
  17070. height: 40px;
  17071. line-height: 40px;
  17072. }
  17073. .isTypeOne {
  17074. width: 240px;
  17075. height: 170px;
  17076. /* border: 1px solid #f8f8f8; */
  17077. border-radius: 10px;
  17078. box-shadow: 0 0 6px 1px #dfdada;
  17079. }
  17080. .e_add_top {
  17081. display: flex;
  17082. justify-content: space-between;
  17083. padding: 20px 20px 0 20px;
  17084. border-radius: 3px;
  17085. background: #fff;
  17086. }
  17087. .e_add_title2 {
  17088. display: flex;
  17089. align-items: center;
  17090. }
  17091. .e_add_title2 span {
  17092. width: 40px;
  17093. }
  17094. .e_add_title {
  17095. display: flex;
  17096. align-items: center;
  17097. color: #b8b8b8;
  17098. font-size: 18px;
  17099. position: relative;
  17100. height: 40px;
  17101. }
  17102. .e_add_title span {
  17103. margin-right: 10px;
  17104. }
  17105. .e_add_title .el_input {
  17106. width: 300px;
  17107. }
  17108. .e_add_title >>> .el-input__inner {
  17109. width: 400px;
  17110. }
  17111. .e_add_btn {
  17112. }
  17113. .e_add_content {
  17114. display: flex;
  17115. width: 100%;
  17116. max-width: 650px;
  17117. height: 550px;
  17118. }
  17119. .e_add_list {
  17120. background: #fff;
  17121. height: 500px;
  17122. width: 210px;
  17123. position: relative;
  17124. margin: 15px 5px 0 0;
  17125. flex-shrink: 0;
  17126. display: flex;
  17127. flex-direction: column;
  17128. }
  17129. .e_add_list_title {
  17130. font-size: 20px;
  17131. width: 100%;
  17132. box-sizing: border-box;
  17133. padding: 15px 40px;
  17134. text-align: center;
  17135. border-bottom: 1px solid #eaeaea;
  17136. position: relative;
  17137. display: flex;
  17138. align-items: center;
  17139. justify-content: center;
  17140. height: 57px;
  17141. background: #f6f6f6;
  17142. }
  17143. .e_add_list_title span {
  17144. overflow: hidden;
  17145. white-space: nowrap;
  17146. text-overflow: ellipsis;
  17147. }
  17148. .e_add_list_title img {
  17149. position: absolute;
  17150. right: 15px;
  17151. width: 25px;
  17152. cursor: pointer;
  17153. top: 50%;
  17154. transform: translateY(-50%);
  17155. }
  17156. .e_add_list_body {
  17157. height: calc(100% - 187px);
  17158. overflow: auto;
  17159. }
  17160. .e_add_list_child {
  17161. width: 100%;
  17162. display: flex;
  17163. align-items: center;
  17164. justify-content: center;
  17165. position: relative;
  17166. box-sizing: border-box;
  17167. padding: 15px 40px;
  17168. text-align: center;
  17169. }
  17170. .e_add_list_child span {
  17171. overflow: hidden;
  17172. white-space: nowrap;
  17173. text-overflow: ellipsis;
  17174. cursor: pointer;
  17175. }
  17176. .e_add_list_child img {
  17177. position: absolute;
  17178. right: 10px;
  17179. width: 21px;
  17180. cursor: pointer;
  17181. top: 50%;
  17182. transform: translateY(-50%);
  17183. }
  17184. .e_add_list_child + .e_add_list_child {
  17185. border-top: 1px solid #eaeaea;
  17186. }
  17187. .e_add_list_child .active {
  17188. color: #409eff;
  17189. }
  17190. .e_add_list_btn {
  17191. position: absolute;
  17192. bottom: 0;
  17193. height: 50px;
  17194. background: rgb(120, 120, 254);
  17195. width: 100%;
  17196. color: #fff;
  17197. font-size: 16px;
  17198. text-align: center;
  17199. line-height: 50px;
  17200. cursor: pointer;
  17201. }
  17202. .e_add_list_detail {
  17203. position: absolute;
  17204. bottom: 0;
  17205. height: 130px;
  17206. background: rgb(120, 120, 254);
  17207. width: 100%;
  17208. color: #fff;
  17209. font-size: 16px;
  17210. display: flex;
  17211. align-items: center;
  17212. justify-content: center;
  17213. }
  17214. .e_add_list_detail textarea {
  17215. height: 90%;
  17216. width: 95%;
  17217. border: none;
  17218. resize: none;
  17219. outline: none;
  17220. padding: 5px;
  17221. box-sizing: border-box;
  17222. }
  17223. .e_add_list_pbox {
  17224. width: 100%;
  17225. max-width: 650px;
  17226. /* height: 600px; */
  17227. }
  17228. .e_add_list_pbox_title {
  17229. height: 50px;
  17230. background: #fff;
  17231. display: flex;
  17232. align-items: center;
  17233. width: 100%;
  17234. box-sizing: border-box;
  17235. padding: 0 20px;
  17236. }
  17237. .type_title {
  17238. font-size: 18px;
  17239. font-weight: 700;
  17240. }
  17241. .type_content {
  17242. font-size: 16px;
  17243. margin-left: 30px;
  17244. }
  17245. .type_content span + span {
  17246. margin-left: 20px;
  17247. }
  17248. .type_content span {
  17249. cursor: pointer;
  17250. padding-bottom: 5px;
  17251. box-sizing: border-box;
  17252. }
  17253. .type_content .active {
  17254. color: #409eff;
  17255. border-bottom: 2px solid #409eff;
  17256. }
  17257. .e_add_list_pbox_content {
  17258. height: calc(100% - 50px);
  17259. display: flex;
  17260. align-items: center;
  17261. width: 100%;
  17262. background: #fff;
  17263. }
  17264. .evaCss {
  17265. display: flex;
  17266. flex-direction: row;
  17267. flex-wrap: nowrap;
  17268. align-items: flex-start;
  17269. }
  17270. .cru_line {
  17271. position: absolute;
  17272. bottom: 0px;
  17273. transition: all 0.5s;
  17274. left: 0px;
  17275. width: 125px;
  17276. margin-left: -25px;
  17277. }
  17278. .isNoMessage {
  17279. width: 20%;
  17280. margin: 25% auto 0;
  17281. }
  17282. .isNoMessage > img {
  17283. width: 100%;
  17284. height: 100%;
  17285. }
  17286. .fullStyle >>> .el-dialog__body {
  17287. height: 100% !important;
  17288. }
  17289. .fullStyle >>> .el-dialog,
  17290. .fullStyle {
  17291. width: 100% !important;
  17292. max-width: 100% !important;
  17293. height: 100% !important;
  17294. margin: 0 !important;
  17295. }
  17296. .full_diy >>> .el-dialog {
  17297. margin: 0 !important;
  17298. height: 100%;
  17299. padding: 4px;
  17300. }
  17301. .full_diy >>> .el-dialog__body {
  17302. height: calc(100% - 100px);
  17303. }
  17304. .full_diy2 >>> .el-dialog__body {
  17305. height: calc(100% - 50px);
  17306. padding: 0;
  17307. }
  17308. .switchCss {
  17309. /* width: 100%; */
  17310. display: flex;
  17311. flex-direction: row;
  17312. flex-wrap: nowrap;
  17313. align-items: center;
  17314. /* justify-content: center; */
  17315. }
  17316. .isClickNav {
  17317. color: #499eef;
  17318. }
  17319. .commentImg {
  17320. width: 25px;
  17321. height: 25px;
  17322. cursor: pointer;
  17323. }
  17324. .commentImg > img {
  17325. width: 100%;
  17326. height: 100%;
  17327. }
  17328. .comment {
  17329. background: #f9f9f9;
  17330. border-radius: 0 0 15px 15px;
  17331. display: flex;
  17332. flex-direction: row;
  17333. flex-wrap: nowrap;
  17334. align-items: center;
  17335. justify-content: flex-end;
  17336. height: 35px;
  17337. }
  17338. .commentList {
  17339. display: flex;
  17340. flex-direction: row;
  17341. flex-wrap: nowrap;
  17342. align-items: center;
  17343. justify-content: center;
  17344. align-content: center;
  17345. /* margin-left: 15px; */
  17346. /* margin-left: 8px; */
  17347. }
  17348. .scoreImg {
  17349. width: 17px;
  17350. height: 17px;
  17351. }
  17352. .studentDetail {
  17353. display: flex;
  17354. flex-direction: row;
  17355. flex-wrap: nowrap;
  17356. /* align-items: center; */
  17357. align-items: flex-start;
  17358. }
  17359. .tx {
  17360. width: 50px;
  17361. }
  17362. .tx > img {
  17363. width: 100%;
  17364. height: 100%;
  17365. }
  17366. .nameAndTime {
  17367. display: flex;
  17368. flex-direction: column;
  17369. flex-wrap: nowrap;
  17370. align-items: flex-start;
  17371. margin-left: 10px;
  17372. }
  17373. .worksAnswer {
  17374. color: #4078dd;
  17375. margin: 10px 0;
  17376. font-size: 16px;
  17377. position: relative;
  17378. }
  17379. .worksAnswer > img {
  17380. width: 500px;
  17381. height: 300px;
  17382. object-fit: contain;
  17383. margin: 0 auto;
  17384. display: block;
  17385. }
  17386. .commentTop {
  17387. border-bottom: 1px solid #eaeaea;
  17388. padding-bottom: 10px;
  17389. }
  17390. .commentBox {
  17391. padding-top: 15px;
  17392. }
  17393. .pl {
  17394. font-size: 18px;
  17395. }
  17396. .plPerson {
  17397. width: 100%;
  17398. }
  17399. .plName {
  17400. display: flex;
  17401. flex-direction: row;
  17402. flex-wrap: nowrap;
  17403. align-items: baseline;
  17404. color: #78787a;
  17405. width: 100%;
  17406. }
  17407. .deleteComment {
  17408. cursor: pointer;
  17409. margin-left: auto;
  17410. color: #237ade;
  17411. }
  17412. .plContent {
  17413. margin-top: 5px;
  17414. }
  17415. .evalCss {
  17416. background: #fff;
  17417. font-size: 18px;
  17418. }
  17419. .nav {
  17420. color: #9d9d9d;
  17421. padding: 5px 0 15px 20px;
  17422. }
  17423. .middleBox {
  17424. padding: 5px 0 15px 20px;
  17425. }
  17426. .pfBox {
  17427. padding-bottom: 30px;
  17428. }
  17429. .nameAndrate {
  17430. display: flex;
  17431. flex-direction: row;
  17432. flex-wrap: nowrap;
  17433. align-items: center;
  17434. padding-bottom: 10px;
  17435. height: 30px;
  17436. line-height: 30px;
  17437. }
  17438. .nameAndrate > div {
  17439. margin-left: 10px;
  17440. color: #000;
  17441. height: 30px;
  17442. }
  17443. .nameAndrate >>> .el-rate__icon {
  17444. font-size: 28px !important;
  17445. }
  17446. .pfBox > div:nth-child(2) {
  17447. background: #f7f6f9;
  17448. width: 400px;
  17449. min-height: 45px;
  17450. border-radius: 10px;
  17451. font-size: 16px;
  17452. display: flex;
  17453. flex-wrap: wrap;
  17454. align-items: center;
  17455. padding: 10px 20px;
  17456. box-sizing: border-box;
  17457. color: #000;
  17458. }
  17459. .bz {
  17460. display: flex;
  17461. flex-direction: row;
  17462. flex-wrap: nowrap;
  17463. align-items: flex-start;
  17464. }
  17465. .bz > div {
  17466. padding: 0 10px;
  17467. }
  17468. .select_box2_title {
  17469. background: #fff;
  17470. border-radius: 5px;
  17471. padding: 15px 10px;
  17472. box-sizing: border-box;
  17473. margin-bottom: 10px;
  17474. display: flex;
  17475. flex-direction: row;
  17476. flex-wrap: nowrap;
  17477. align-items: center;
  17478. }
  17479. .select_box2_title > div:nth-child(2) {
  17480. margin-left: 10px;
  17481. color: #c4c4c4;
  17482. }
  17483. .select_box2_box {
  17484. display: flex;
  17485. height: 500px;
  17486. }
  17487. .select_box2_img {
  17488. width: calc(100% - 310px);
  17489. height: 100%;
  17490. overflow: auto;
  17491. background: #fff;
  17492. border-radius: 5px;
  17493. }
  17494. .select_box2_img img {
  17495. width: 100%;
  17496. }
  17497. .select_box2_answer {
  17498. background: #fff;
  17499. margin-left: 10px;
  17500. border-radius: 5px;
  17501. width: 300px;
  17502. overflow: auto;
  17503. height: 90%;
  17504. display: flex;
  17505. flex-direction: column;
  17506. align-items: flex-start;
  17507. padding-top: 10px;
  17508. box-sizing: border-box;
  17509. position: relative;
  17510. }
  17511. .select_answer_title {
  17512. padding: 0 0 15px 20px;
  17513. color: #c4c4c4;
  17514. }
  17515. .select_box2_answer_box {
  17516. margin: 0 0 10px 20px;
  17517. width: 85%;
  17518. display: flex;
  17519. flex-direction: row;
  17520. flex-wrap: nowrap;
  17521. align-items: center;
  17522. }
  17523. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  17524. color: #000;
  17525. }
  17526. .upAnswerCss {
  17527. position: absolute;
  17528. bottom: 15px;
  17529. right: 15px;
  17530. }
  17531. .upAnswerCss >>> .el-button {
  17532. width: 95px;
  17533. height: 35px;
  17534. line-height: 35px;
  17535. padding: 0;
  17536. }
  17537. .rightWidthCss {
  17538. width: 60%;
  17539. display: flex;
  17540. flex-direction: row;
  17541. align-items: flex-start;
  17542. }
  17543. .rightAnswer {
  17544. display: flex;
  17545. flex-direction: row;
  17546. flex-wrap: nowrap;
  17547. align-items: center;
  17548. color: red;
  17549. margin-bottom: 31px;
  17550. }
  17551. .rightAnswerCss {
  17552. display: flex;
  17553. flex-direction: column;
  17554. flex-wrap: nowrap;
  17555. padding-top: 60px;
  17556. }
  17557. .blueCss {
  17558. color: #767de1;
  17559. margin-left: 10px;
  17560. }
  17561. .redCss {
  17562. color: red;
  17563. }
  17564. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  17565. color: rgb(0 123 255) !important;
  17566. }
  17567. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  17568. color: rgb(0 123 255) !important;
  17569. }
  17570. .zuoyeYulan {
  17571. padding-top: 15px;
  17572. font-size: 18px;
  17573. display: flex;
  17574. align-items: flex-end;
  17575. }
  17576. .buttonA {
  17577. margin-left: 10px;
  17578. padding: 0;
  17579. }
  17580. .displayBox {
  17581. margin-bottom: 10px;
  17582. display: block;
  17583. border-bottom: 3px solid #eee;
  17584. display: flex;
  17585. align-items: center;
  17586. }
  17587. .easy_comment {
  17588. width: calc(100% - 90px);
  17589. margin-left: 10px;
  17590. display: flex;
  17591. flex-wrap: wrap;
  17592. }
  17593. .easy_comment > div {
  17594. border: 1px solid #4a4a4a;
  17595. color: #666;
  17596. border-radius: 15px;
  17597. padding: 5px 10px;
  17598. font-size: 16px;
  17599. margin-bottom: 10px;
  17600. margin-right: 5px;
  17601. cursor: pointer;
  17602. }
  17603. .easy_comment div:hover {
  17604. border: 1px solid #f7ba2a;
  17605. color: #c69217;
  17606. }
  17607. .xuan_right_box {
  17608. padding: 10px;
  17609. background: rgb(247, 247, 247);
  17610. margin: 10px 12px;
  17611. border-radius: 5px;
  17612. }
  17613. .tool_right_box {
  17614. display: flex;
  17615. align-items: center;
  17616. }
  17617. .tool_right_box + .tool_right_box {
  17618. margin-top: 10px;
  17619. }
  17620. .right_box_xuan {
  17621. background: rgb(0 123 255);
  17622. color: #fff;
  17623. border-radius: 5px;
  17624. padding: 5px;
  17625. margin-left: 10px;
  17626. }
  17627. .pButton:hover {
  17628. opacity: 1 !important;
  17629. }
  17630. .pButton {
  17631. position: fixed;
  17632. /* right: 5%; */
  17633. /* bottom: 5%; */
  17634. color: #fff;
  17635. /* width: 50px;
  17636. height: 50px; */
  17637. /* border-radius: 50%; */
  17638. text-align: center;
  17639. /* line-height: 50px; */
  17640. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  17641. cursor: pointer;
  17642. z-index: 999;
  17643. right: 0;
  17644. top: 83px;
  17645. width: 50px;
  17646. height: 50px;
  17647. background: #fff;
  17648. display: flex;
  17649. align-items: center;
  17650. justify-content: center;
  17651. box-shadow: 0px 0 8px 2px #c5c5c5;
  17652. border-radius: 5px;
  17653. }
  17654. .pzClass {
  17655. width: calc(100% - 340px);
  17656. }
  17657. .newDialogCss {
  17658. /* position: fixed;
  17659. right: 5%;
  17660. top: 50%;
  17661. width: 340px;
  17662. transform: translateY(-50%);
  17663. height: 60%;
  17664. box-shadow: 0px 0 8px 0px #555555;
  17665. border-radius: 15px;
  17666. z-index: 999; */
  17667. position: fixed;
  17668. right: 0;
  17669. top: 70px;
  17670. width: 340px;
  17671. height: calc(100% - 80px);
  17672. z-index: 999;
  17673. background: #fff;
  17674. border-radius: 15px;
  17675. border-top-right-radius: 0px;
  17676. border-bottom-right-radius: 0px;
  17677. overflow: hidden;
  17678. }
  17679. .pzTop {
  17680. color: #fff;
  17681. background: #000;
  17682. display: flex;
  17683. flex-direction: row;
  17684. flex-wrap: nowrap;
  17685. align-items: center;
  17686. justify-content: space-between;
  17687. height: 40px;
  17688. border-radius: 15px 15px 0 0;
  17689. }
  17690. .pzTop2 .checkbox {
  17691. display: flex;
  17692. align-items: center;
  17693. padding: 15px 30px;
  17694. flex: 0 0 auto;
  17695. font-weight: bold;
  17696. border-bottom: 1px solid #eee;
  17697. justify-content: space-between;
  17698. }
  17699. .pzTop2 .check {
  17700. text-align: center;
  17701. cursor: pointer;
  17702. box-sizing: border-box;
  17703. display: flex;
  17704. }
  17705. .pzTop2 img {
  17706. width: 25px;
  17707. cursor: pointer;
  17708. }
  17709. .pzTop > div:nth-child(1) {
  17710. padding-left: 10px;
  17711. }
  17712. .pzTop > div:nth-child(2) {
  17713. width: 15px;
  17714. height: 15px;
  17715. padding-right: 10px;
  17716. cursor: pointer;
  17717. }
  17718. .pzTop > div:nth-child(2) > img {
  17719. width: 100%;
  17720. height: 100%;
  17721. }
  17722. .pzBox,
  17723. .noPzBox {
  17724. height: calc(100% - 60px);
  17725. /* background: #ededed; */
  17726. background: #fff;
  17727. /* border-radius: 0 0 15px 15px; */
  17728. }
  17729. .noPzBox {
  17730. display: flex;
  17731. flex-direction: column;
  17732. flex-wrap: nowrap;
  17733. justify-content: center;
  17734. align-items: center;
  17735. }
  17736. .pzList {
  17737. background: #f7f7f7;
  17738. width: 90%;
  17739. margin: 0 auto 15px;
  17740. border-radius: 5px;
  17741. }
  17742. .pzNavTop {
  17743. display: flex;
  17744. flex-direction: row;
  17745. flex-wrap: nowrap;
  17746. padding: 10px 10px 0 10px;
  17747. align-items: center;
  17748. }
  17749. .pzDelete {
  17750. cursor: pointer;
  17751. margin-left: auto;
  17752. font-size: 14px;
  17753. color: #afafaf;
  17754. }
  17755. .pzNavTop > div:nth-child(1) {
  17756. background: #3760af;
  17757. width: 35px;
  17758. height: 35px;
  17759. color: #fff;
  17760. text-align: center;
  17761. line-height: 35px;
  17762. border-radius: 50%;
  17763. font-size: 14px;
  17764. }
  17765. .pzNavTop > div:nth-child(2) {
  17766. font-size: 18px;
  17767. color: #959595;
  17768. margin-left: 5px;
  17769. }
  17770. .pzContent {
  17771. padding: 10px;
  17772. word-break: break-word;
  17773. }
  17774. .pzContent audio {
  17775. width: 100%;
  17776. }
  17777. .pzContent audio::-webkit-media-controls-panel {
  17778. background: #fff;
  17779. }
  17780. .pzListBox {
  17781. padding-top: 15px;
  17782. height: calc(100% - 60px);
  17783. overflow: auto;
  17784. }
  17785. .addPzButton {
  17786. position: relative;
  17787. margin-top: 3px;
  17788. width: 100%;
  17789. }
  17790. .addPzButton .img1 {
  17791. position: absolute;
  17792. top: 50%;
  17793. right: 25px;
  17794. transform: translateY(-50%);
  17795. height: 100%;
  17796. display: flex;
  17797. align-items: center;
  17798. }
  17799. .addPzButton .img1 div {
  17800. display: flex;
  17801. }
  17802. .addPzButton .img1 div img {
  17803. width: 28px;
  17804. margin-left: 10px;
  17805. cursor: pointer;
  17806. }
  17807. .addPzButton .img1 div span {
  17808. font-size: 14px;
  17809. margin: 4px 0 0 3px;
  17810. color: #afafaf;
  17811. }
  17812. .addPz {
  17813. background: #4b79ce;
  17814. width: 100px;
  17815. color: #fff;
  17816. font-size: 12px;
  17817. height: 30px;
  17818. margin: 0 auto;
  17819. text-align: center;
  17820. line-height: 30px;
  17821. border-radius: 10px;
  17822. cursor: pointer;
  17823. }
  17824. .addDialogCss {
  17825. position: fixed;
  17826. right: 37%;
  17827. top: 50%;
  17828. width: 600px;
  17829. transform: translateY(-50%);
  17830. height: 70%;
  17831. min-height: 450px;
  17832. box-shadow: 0px 0 8px 0px #555555;
  17833. border-radius: 15px;
  17834. z-index: 999;
  17835. }
  17836. .teacherPz {
  17837. display: flex;
  17838. flex-direction: row;
  17839. align-items: center;
  17840. flex-wrap: nowrap;
  17841. }
  17842. .teacherPzImg {
  17843. width: 30px;
  17844. height: 30px;
  17845. }
  17846. .teacherPzImg > img {
  17847. width: 100%;
  17848. height: 100%;
  17849. }
  17850. .addPzBox {
  17851. height: calc(100% - 40px);
  17852. background: #ededed;
  17853. }
  17854. .pzAudioClass {
  17855. margin: 15px 14px;
  17856. background: #fff;
  17857. height: 100%;
  17858. display: flex;
  17859. justify-content: center;
  17860. align-items: center;
  17861. }
  17862. .pzConText {
  17863. width: 95%;
  17864. height: 100%;
  17865. margin: 10px auto 0;
  17866. border: none;
  17867. background: #fff;
  17868. border-radius: 0px;
  17869. }
  17870. .pzConText >>> .text {
  17871. height: calc(100% - 82px);
  17872. }
  17873. .addTextCss {
  17874. background: #4b79ce;
  17875. width: 80px;
  17876. height: 30px;
  17877. text-align: center;
  17878. color: #fff;
  17879. line-height: 30px;
  17880. border-radius: 10px;
  17881. margin: 10px auto 0;
  17882. cursor: pointer;
  17883. }
  17884. .pzConText:focus-visible {
  17885. border: none !important;
  17886. }
  17887. .maxWidth {
  17888. width: 1000px;
  17889. }
  17890. .noPz {
  17891. width: 150px;
  17892. margin: 0 auto 20%;
  17893. }
  17894. .noPz > img {
  17895. width: 100%;
  17896. height: 100%;
  17897. }
  17898. .pzList .time {
  17899. text-align: right;
  17900. box-sizing: border-box;
  17901. padding: 0 10px 10px 0px;
  17902. color: #949494;
  17903. font-size: 14px;
  17904. }
  17905. /* table 样式 */
  17906. .cont >>> table {
  17907. border-top: 1px solid #ccc;
  17908. border-left: 1px solid #ccc;
  17909. }
  17910. .cont >>> table td,
  17911. .cont >>> table th {
  17912. border-bottom: 1px solid #ccc;
  17913. border-right: 1px solid #ccc;
  17914. padding: 15px 5px;
  17915. max-width: 0px;
  17916. }
  17917. .cont >>> table th {
  17918. border-bottom: 2px solid #ccc;
  17919. text-align: center;
  17920. }
  17921. /* blockquote 样式 */
  17922. .cont >>> blockquote {
  17923. display: block;
  17924. border-left: 8px solid #d0e5f2;
  17925. padding: 5px 10px;
  17926. margin: 10px 0;
  17927. line-height: 1.4;
  17928. font-size: 100%;
  17929. background-color: #f1f1f1;
  17930. }
  17931. .addPzCheck {
  17932. display: flex;
  17933. flex-direction: row;
  17934. flex-wrap: nowrap;
  17935. padding: 10px 15px 0;
  17936. }
  17937. .addPzCheck span {
  17938. cursor: pointer;
  17939. padding-bottom: 5px;
  17940. font-weight: bold;
  17941. }
  17942. .addPzCheck span + span {
  17943. margin-left: 10px;
  17944. }
  17945. .addPzCheck .isChooseActive {
  17946. color: #3e88f4;
  17947. border-bottom: 2px solid #2f80f3;
  17948. }
  17949. /* code 样式 */
  17950. .cont {
  17951. /* -webkit-user-modify: read-write; */
  17952. overflow-wrap: break-word;
  17953. -webkit-line-break: after-white-space;
  17954. }
  17955. .cont >>> code {
  17956. display: inline-block;
  17957. *display: inline;
  17958. *zoom: 1;
  17959. background-color: #f1f1f1;
  17960. border-radius: 3px;
  17961. padding: 3px 5px;
  17962. margin: 0 3px;
  17963. }
  17964. .cont >>> pre code {
  17965. display: block;
  17966. }
  17967. /* ul ol 样式 */
  17968. .cont >>> ul,
  17969. ol {
  17970. margin: 10px 0 10px 20px;
  17971. }
  17972. .scoreBox,
  17973. .scoreDetailBox {
  17974. display: flex;
  17975. align-items: center;
  17976. justify-content: flex-start;
  17977. margin-top: 20px;
  17978. font-size: 18px;
  17979. width: 100%;
  17980. }
  17981. .scoreBox .t,
  17982. .scoreDetailBox .t {
  17983. margin-right: 10px;
  17984. width: 100px;
  17985. text-align: right;
  17986. }
  17987. .scoreDetailBox {
  17988. align-items: flex-start;
  17989. }
  17990. .scoreDetailBox >>> .el-textarea {
  17991. width: calc(100% - 200px);
  17992. }
  17993. .scoreBox >>> .el-input {
  17994. width: 130px;
  17995. font-size: 38px;
  17996. }
  17997. .scoreBox >>> .el-input__inner {
  17998. height: 60px;
  17999. }
  18000. .answerScore {
  18001. position: absolute;
  18002. top: 10px;
  18003. right: 10px;
  18004. background: #0000008f;
  18005. border-radius: 5px;
  18006. padding: 3px 5px;
  18007. font-size: 14px;
  18008. color: #fff;
  18009. cursor: pointer;
  18010. }
  18011. .open_box .switch_box {
  18012. width: 100%;
  18013. margin: 0 auto;
  18014. display: flex;
  18015. justify-content: space-between;
  18016. }
  18017. .open_box .switch_box + .switch_box {
  18018. margin-top: 10px;
  18019. }
  18020. .deleteImg {
  18021. width: 25px !important;
  18022. height: 25px !important;
  18023. cursor: pointer;
  18024. position: absolute;
  18025. top: 10px;
  18026. right: 10px;
  18027. }
  18028. .deleteImg2 {
  18029. width: 15px !important;
  18030. height: 15px !important;
  18031. top: 5px;
  18032. right: 5px;
  18033. }
  18034. .rightW {
  18035. right: 40px;
  18036. }
  18037. .drawPBox {
  18038. display: flex;
  18039. flex-direction: column;
  18040. position: relative;
  18041. }
  18042. .drawPBox span {
  18043. font-size: 18px;
  18044. color: #606266;
  18045. padding-bottom: 10px;
  18046. margin: 10px 0;
  18047. border-bottom: 1px solid #eaeaea;
  18048. }
  18049. .drawPBox img {
  18050. width: 500px;
  18051. height: 300px;
  18052. object-fit: contain;
  18053. cursor: pointer;
  18054. margin: 0 auto;
  18055. }
  18056. .sentenBox {
  18057. background: #fff;
  18058. height: 450px;
  18059. overflow: auto;
  18060. background-image: url("../assets/icon/conSentences/stuBg.png");
  18061. background-position: 102%;
  18062. background-repeat: no-repeat;
  18063. background-size: 60%;
  18064. }
  18065. .addSen {
  18066. background: #409efe;
  18067. width: 90px;
  18068. color: #fff;
  18069. height: 35px;
  18070. text-align: center;
  18071. line-height: 35px;
  18072. border-radius: 5px;
  18073. float: right;
  18074. margin: 10px 20px 0 0;
  18075. cursor: pointer;
  18076. }
  18077. .sentenTop {
  18078. display: flex;
  18079. flex-direction: row;
  18080. flex-wrap: nowrap;
  18081. align-items: center;
  18082. padding: 55px 0 0 20px;
  18083. box-sizing: border-box;
  18084. }
  18085. .sentenTop > div:nth-child(2) {
  18086. width: 300px;
  18087. margin: 0 15px;
  18088. }
  18089. .sentenTop > div:nth-child(3) {
  18090. background: #409efe;
  18091. color: #fff;
  18092. width: 65px;
  18093. height: 35px;
  18094. text-align: center;
  18095. line-height: 35px;
  18096. border-radius: 5px;
  18097. cursor: pointer;
  18098. }
  18099. .cardList,
  18100. .cardList1 {
  18101. padding: 10px 0 10px 0;
  18102. display: flex;
  18103. flex-direction: row;
  18104. flex-wrap: wrap;
  18105. align-items: center;
  18106. box-sizing: border-box;
  18107. border-bottom: 1px solid #f4f4f4;
  18108. width: 98%;
  18109. margin: 0 auto;
  18110. min-width: 60%;
  18111. max-width: 85%;
  18112. }
  18113. .cardList1 {
  18114. padding: 10px 0 10px 10px !important;
  18115. margin: 0 !important;
  18116. }
  18117. .cardBox {
  18118. display: flex;
  18119. flex-direction: row;
  18120. flex-wrap: wrap;
  18121. align-items: center;
  18122. align-content: center;
  18123. }
  18124. .cardBox > div {
  18125. margin-bottom: 10px;
  18126. }
  18127. .isCard,
  18128. .isChooseCard,
  18129. .noCard,
  18130. .isCard1 {
  18131. width: 130px;
  18132. height: 60px;
  18133. text-align: center;
  18134. line-height: 60px;
  18135. font-size: 20px;
  18136. cursor: pointer;
  18137. background-image: url("../assets/icon/conSentences/titleBorder.png");
  18138. background-size: cover;
  18139. transition: all 2s;
  18140. margin-right: 20px;
  18141. }
  18142. .isCard > div,
  18143. .noCard > div,
  18144. .isCard1 > div {
  18145. white-space: nowrap;
  18146. overflow: hidden;
  18147. text-overflow: ellipsis;
  18148. width: 75%;
  18149. margin: 0 auto;
  18150. }
  18151. .noCard {
  18152. background-image: none;
  18153. }
  18154. .isCard1 {
  18155. background-image: url("../assets/icon/conSentences/answerBorder.png");
  18156. }
  18157. .isChooseCard {
  18158. background-image: none;
  18159. border: 1px dashed #b9b9b9;
  18160. border-radius: 10px;
  18161. }
  18162. .card {
  18163. width: 130px;
  18164. height: 60px;
  18165. }
  18166. .card > img {
  18167. width: 100%;
  18168. height: 100%;
  18169. }
  18170. .rightCardBox {
  18171. margin: 10px 0 0 10px;
  18172. }
  18173. .rightCardBox > div:nth-child(1) {
  18174. margin-bottom: 10px;
  18175. }
  18176. .cardCss {
  18177. display: flex;
  18178. flex-direction: column;
  18179. flex-wrap: nowrap;
  18180. align-items: center;
  18181. border-bottom: 3px solid #b4c3d3;
  18182. padding: 0 0 5px 0;
  18183. margin-right: 10px;
  18184. }
  18185. .cardCss > div:nth-child(2) {
  18186. background: #5b7b9d;
  18187. color: #fff;
  18188. width: 20px;
  18189. height: 20px;
  18190. border-radius: 50%;
  18191. text-align: center;
  18192. line-height: 20px;
  18193. }
  18194. .isWrong {
  18195. display: flex;
  18196. flex-direction: row;
  18197. flex-wrap: nowrap;
  18198. align-content: center;
  18199. align-items: center;
  18200. }
  18201. .answerRight {
  18202. width: 25%;
  18203. }
  18204. .isTj {
  18205. display: flex;
  18206. flex-direction: row;
  18207. flex-wrap: nowrap;
  18208. align-items: center;
  18209. }
  18210. .isTj > div:nth-child(2) {
  18211. color: #727070;
  18212. margin-left: 10px;
  18213. }
  18214. .isTjImg {
  18215. width: 30px;
  18216. height: 30px;
  18217. }
  18218. .isTjImg > img {
  18219. width: 100%;
  18220. height: 100%;
  18221. }
  18222. .cardAnswerBox {
  18223. font-size: 18px;
  18224. width: 97%;
  18225. border: 5px;
  18226. padding: 0;
  18227. border-radius: 5px;
  18228. margin: 10px auto;
  18229. word-break: break-word;
  18230. }
  18231. .w_name {
  18232. margin-bottom: 10px;
  18233. }
  18234. .w_name span {
  18235. font-size: 16px;
  18236. }
  18237. .w_teachert {
  18238. width: 50px !important;
  18239. position: absolute;
  18240. height: auto !important;
  18241. z-index: 10;
  18242. right: 25px;
  18243. top: -25px;
  18244. }
  18245. .group_workBox {
  18246. }
  18247. .group_workBox + .group_workBox {
  18248. margin-top: 20px;
  18249. }
  18250. .group_box {
  18251. padding-bottom: 20px;
  18252. border-bottom: 2px solid #f0f0f0;
  18253. }
  18254. .group_title {
  18255. display: flex;
  18256. align-items: center;
  18257. justify-content: space-between;
  18258. }
  18259. .group_name {
  18260. background-image: url(../assets/icon/groupN.png);
  18261. width: 220px;
  18262. background-size: 100% 100%;
  18263. height: 67px;
  18264. padding: 0 20px 0 43px;
  18265. box-sizing: border-box;
  18266. line-height: 63px;
  18267. color: #fff;
  18268. overflow: hidden;
  18269. white-space: nowrap;
  18270. text-overflow: ellipsis;
  18271. }
  18272. .group_work {
  18273. width: 100%;
  18274. padding: 0 10px;
  18275. box-sizing: border-box;
  18276. display: flex;
  18277. flex-wrap: wrap;
  18278. }
  18279. .g_d_box {
  18280. display: flex;
  18281. flex-flow: wrap;
  18282. justify-content: space-around;
  18283. }
  18284. .g_d_box .isChair {
  18285. background-image: url(../assets/avatar.png) !important;
  18286. }
  18287. .g_d_group {
  18288. width: 500px;
  18289. margin-bottom: 80px;
  18290. }
  18291. .g_d_group_chair {
  18292. display: flex;
  18293. align-items: center;
  18294. justify-content: center;
  18295. }
  18296. .g_d_group_chair > div + div {
  18297. margin-left: 30px;
  18298. }
  18299. .g_d_group_chair > div,
  18300. .g_d_group_chair2 > div {
  18301. display: flex;
  18302. flex-direction: column;
  18303. align-items: center;
  18304. }
  18305. .g_d_group_chair > div > span:nth-child(1),
  18306. .g_d_group_chair2 > div > span:nth-child(1) {
  18307. background-image: url(../assets/icon/chair.png);
  18308. width: 50px;
  18309. height: 50px;
  18310. display: block;
  18311. background-size: 100% 100%;
  18312. }
  18313. .g_d_group_tableBox {
  18314. display: flex;
  18315. align-items: center;
  18316. justify-content: center;
  18317. }
  18318. .g_d_group_chair2 {
  18319. display: flex;
  18320. flex-direction: column;
  18321. align-items: center;
  18322. justify-content: center;
  18323. }
  18324. .g_d_group_chair2 > div + div {
  18325. margin-top: 10px;
  18326. }
  18327. .g_d_group_table {
  18328. background-image: url(../assets/icon/groupBg.png);
  18329. width: 354px;
  18330. height: 196px;
  18331. background-size: 100% 100%;
  18332. display: flex;
  18333. align-items: center;
  18334. justify-content: center;
  18335. flex-direction: column;
  18336. color: #fff;
  18337. }
  18338. .g_d_group_table > div:nth-child(1) {
  18339. font-size: 24px;
  18340. margin-bottom: 5px;
  18341. }
  18342. .g_d_group_table > div:nth-child(2) div {
  18343. cursor: pointer;
  18344. background: #2e77bf;
  18345. padding: 4px 10px;
  18346. border-radius: 5px;
  18347. }
  18348. .groupBox {
  18349. }
  18350. .groupContent + .groupContent {
  18351. margin-top: 30px;
  18352. }
  18353. .groupTitle {
  18354. font-size: 24px;
  18355. color: rgb(80, 80, 80);
  18356. margin-bottom: 20px;
  18357. }
  18358. .groupName {
  18359. display: flex;
  18360. align-items: center;
  18361. }
  18362. .groupn {
  18363. font-size: 15px;
  18364. margin-right: 10px;
  18365. }
  18366. .groupName + .groupName {
  18367. margin-top: 15px;
  18368. }
  18369. .groupBtn {
  18370. margin-left: 10px;
  18371. }
  18372. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  18373. text-align: left;
  18374. }
  18375. .g_d_btnBox {
  18376. display: flex;
  18377. justify-content: flex-end;
  18378. align-items: center;
  18379. margin-bottom: 20px;
  18380. }
  18381. .updateChair {
  18382. position: relative;
  18383. }
  18384. .updateChairBtn {
  18385. position: absolute;
  18386. width: 50px;
  18387. height: 50px;
  18388. overflow: hidden;
  18389. /* display: flex; */
  18390. align-items: center;
  18391. justify-content: center;
  18392. background: #00000087;
  18393. color: #fff;
  18394. border-radius: 50px;
  18395. display: none;
  18396. cursor: pointer;
  18397. }
  18398. .updateChair:hover .updateChairBtn {
  18399. display: flex;
  18400. }
  18401. .group_staic_box {
  18402. display: flex;
  18403. padding: 30px 40px 10px;
  18404. flex-wrap: wrap;
  18405. }
  18406. .group_staic {
  18407. /* width: 50%; */
  18408. margin-bottom: 20px;
  18409. display: flex;
  18410. align-items: center;
  18411. }
  18412. .group_staic span:nth-child(1) {
  18413. width: 150px;
  18414. text-align: right;
  18415. margin-right: 15px;
  18416. }
  18417. .group_staic span:nth-child(2) {
  18418. background: rgb(0 123 255);
  18419. color: #fff;
  18420. border-radius: 5px;
  18421. padding: 5px;
  18422. }
  18423. .codeFileBox {
  18424. height: 300px;
  18425. background: #fff;
  18426. display: flex;
  18427. align-items: center;
  18428. justify-content: center;
  18429. }
  18430. .codeFileBox img {
  18431. width: 200px;
  18432. margin: 0;
  18433. height: auto;
  18434. }
  18435. .codeFileBox div {
  18436. background: rgb(80, 142, 226);
  18437. color: #fff;
  18438. padding: 10px 20px;
  18439. border-radius: 25px;
  18440. cursor: pointer;
  18441. margin-left: 15px;
  18442. }
  18443. .radioBox {
  18444. display: flex;
  18445. flex-direction: column;
  18446. flex-wrap: nowrap;
  18447. align-items: flex-start;
  18448. }
  18449. .radioBox > div {
  18450. margin: 10px 0 0 10px;
  18451. }
  18452. /* .radioBox >>> .el-radio__input,
  18453. .radioBox >>> .el-checkbox__inner {
  18454. margin-left: 10px;
  18455. } */
  18456. .radioBox >>> .el-radio__label,
  18457. .radioBox >>> .el-checkbox__label {
  18458. display: flex;
  18459. align-items: center;
  18460. }
  18461. .radioBox >>> .el-radio__label > span {
  18462. width: 100%;
  18463. display: -webkit-box;
  18464. overflow: hidden;
  18465. white-space: normal !important;
  18466. text-overflow: ellipsis;
  18467. word-wrap: break-word;
  18468. }
  18469. .inImg {
  18470. width: 100px;
  18471. cursor: pointer;
  18472. }
  18473. .inImg > img {
  18474. width: 100%;
  18475. height: 100%;
  18476. object-fit: cover;
  18477. }
  18478. .timuImgBox {
  18479. margin: 10px 0;
  18480. display: flex;
  18481. flex-direction: column;
  18482. flex-wrap: wrap;
  18483. align-items: flex-start;
  18484. }
  18485. .timuImg {
  18486. width: 150px;
  18487. margin: 5px 0;
  18488. cursor: pointer;
  18489. }
  18490. .timuImg > img {
  18491. width: 100%;
  18492. height: 100%;
  18493. object-fit: cover;
  18494. }
  18495. .worksTop {
  18496. display: flex;
  18497. flex-direction: row;
  18498. align-items: flex-end;
  18499. }
  18500. .corOpen {
  18501. margin: 0 0 0 10px;
  18502. font-size: 14px;
  18503. cursor: pointer;
  18504. color: #505050;
  18505. }
  18506. .corOpen:hover {
  18507. color: #499eef;
  18508. }
  18509. .navCorOpenBox {
  18510. display: flex;
  18511. flex-direction: row;
  18512. align-items: center;
  18513. background: #1e5cc9;
  18514. justify-content: space-between;
  18515. }
  18516. .navCorOpen {
  18517. padding-right: 15px;
  18518. cursor: pointer;
  18519. width: 20px;
  18520. display: flex;
  18521. }
  18522. .navCorOpen > img {
  18523. width: 100%;
  18524. height: 100%;
  18525. }
  18526. .mlImg {
  18527. width: 25px !important;
  18528. cursor: pointer;
  18529. margin-top: 5px;
  18530. }
  18531. .mlImg > img {
  18532. width: 100%;
  18533. height: 100%;
  18534. }
  18535. .navLeftCss {
  18536. width: 100% !important;
  18537. left: 0 !important;
  18538. }
  18539. .isContentCss {
  18540. width: 100% !important;
  18541. }
  18542. .isAllWidth {
  18543. width: 100% !important;
  18544. }
  18545. .group_switch {
  18546. margin-right: 10px;
  18547. height: 30px;
  18548. display: flex;
  18549. align-items: center;
  18550. }
  18551. .group_switch > span {
  18552. margin-right: 5px;
  18553. }
  18554. </style>