studyStudent.vue 532 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div class="pb_content_body" style="display: flex; height: 900px; position: relative">
  4. <div class="pButton" style="
  5. left: 0;
  6. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  7. " v-if="mlDialog == false && !(IsFollow && tType == 2)" @click="setContent2(true)">
  8. <!-- 批 , getCourseDetail()-->
  9. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  10. </div>
  11. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  12. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  13. <div class="courseTitle">
  14. <div style="width:calc(100% - 25px)">
  15. <el-tooltip effect="light" :content="courseDetail.title" placement="top">
  16. <div class="ctitle">{{ courseDetail.title }}</div>
  17. </el-tooltip>
  18. <div class="inviteBox" v-if="tcid && inviteCode">
  19. <div><span>随机码:{{ inviteCode }}</span></div>
  20. </div>
  21. </div>
  22. <el-tooltip effect="light" content="收缩" placement="top">
  23. <div class="mlImg" @click="setContent2(false)">
  24. <img src="../assets/mlBtn.png" alt="" />
  25. </div>
  26. </el-tooltip>
  27. </div>
  28. <div class="ml">目录</div>
  29. <div class="cru_selectBox">
  30. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  31. <div class="blue_box_one" @click="get(stageIndex)">
  32. <div>第{{ stageIndex + 1 }}阶段</div>
  33. <div>{{ item.dyName }}</div>
  34. </div>
  35. <div class="twoChild" :class="{ navActive: item.isOpen }">
  36. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  37. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  38. openTaskActive:
  39. navIndex == taskCount &&
  40. nav.id == navId &&
  41. stageIndex == courseType,
  42. }">
  43. <div class="vedioNav" :class="{
  44. isClick:
  45. navIndex == taskCount &&
  46. nav.id == navId &&
  47. stageIndex == courseType,
  48. }" style="margin: 0">
  49. 任务{{ navIndex + 1 }}
  50. </div>
  51. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  52. <div :style="{
  53. width:
  54. IsLookOpen && !nav.isLook
  55. ? 'calc(100% - 75px)'
  56. : 'auto',
  57. }">
  58. {{ nav.taskName }}
  59. </div>
  60. </el-tooltip>
  61. <img src="../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  69. <div class="new_top" style="
  70. position: fixed;
  71. top: 0;
  72. left: 20.7%;
  73. width: 80%;
  74. z-index: 999;
  75. box-shadow: 0px 9px 0 0 #f2f2f2;
  76. " :class="{ navLeftCss: !mlDialog }">
  77. <div class="courseIndex">
  78. <div>第{{ courseType - 0 + 1 }}阶段</div>
  79. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  80. <div>{{ chapInfoList[courseType].dyName }}</div>
  81. </el-tooltip>
  82. <div>任务{{ taskCount + 1 }}</div>
  83. </div>
  84. <div class="btnAll">
  85. <div class="returnBtn" @click="nextOrpreSteps(0)" v-if="!(IsFollow && tType == 2)">上一步</div>
  86. <div class="returnBtn" @click="nextOrpreSteps(1)" v-if="!(IsFollow && tType == 2)">下一步</div>
  87. <div class="returnBtn" @click="allScrell" v-if="!(IsFollow && tType == 2)">全屏</div>
  88. <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  89. 开始录制
  90. </div>
  91. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  92. style="background: #ee5255">
  93. 下载录制
  94. </div>
  95. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  96. 权限
  97. </div>
  98. <div class="returnBtn" style="background: #225bc7" @click.stop="
  99. goTo(
  100. '/courseDetail?userid=' +
  101. userid +
  102. '&oid=' +
  103. oid +
  104. '&org=' +
  105. org +
  106. '&cid=' +
  107. classId +
  108. '&courseId=' +
  109. id +
  110. '&tType=' +
  111. tType +
  112. '&screenType=' +
  113. screenType
  114. )
  115. ">
  116. 返回
  117. </div>
  118. </div>
  119. </div>
  120. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  121. .taskJson"
  122. :key="index"-->
  123. <div class="isNoMessage" v-if="
  124. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  125. .chapterData.length == 0 &&
  126. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  127. .toolChoose[0].tool.length == 0 &&
  128. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  129. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  130. .taskDetail == '' &&
  131. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  132. ">
  133. <img src="../assets/icon/isNoMessage.png" alt />
  134. </div>
  135. <div class="study_top" :class="{ pzClass: pzDialog }">
  136. <div class="vedioBox" v-if="
  137. vedio[taskCount].length > 0 ||
  138. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  139. .taskDetail != '' ||
  140. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  141. .chapterData.length > 0
  142. ">
  143. <div class="checkbox">
  144. <div class="check" style="font-size: 25px" :id="
  145. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  146. ">
  147. <!-- {{ taskCount + 1 }}
  148. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
  149. 学一学
  150. </div>
  151. </div>
  152. <div class="student_head" v-if="
  153. vedio[taskCount].length > 0 ||
  154. textList[taskCount].length > 0 ||
  155. lineList[taskCount].length > 0 ||
  156. file[taskCount].length > 0 ||
  157. fileC[taskCount].length > 0 ||
  158. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  159. .taskDetail != ''
  160. ">
  161. <div class="taskBox">
  162. <div style="
  163. display: flex;
  164. flex-wrap: nowrap;
  165. flex-direction: column;
  166. position: relative;
  167. ">
  168. <div style="padding: 15px 0 15px 20px; line-height: 25px" class="cont" v-if="
  169. chapInfoList[courseType].chapterInfo[0].taskJson[
  170. taskCount
  171. ].taskDetail != ''
  172. " v-html="
  173. chapInfoList[courseType].chapterInfo[0].taskJson[
  174. taskCount
  175. ].taskDetail
  176. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  177. taskCount
  178. ].taskDetail
  179. : '暂无描述'
  180. "></div>
  181. </div>
  182. </div>
  183. <div class="vedioTaskBox">
  184. <div :class="
  185. contentDialog == false
  186. ? 'box_course isContentCss'
  187. : 'box_course'
  188. " v-if="
  189. vedio[taskCount].length > 0 ||
  190. textList[taskCount].length > 0 ||
  191. lineList[taskCount].length > 0 ||
  192. file[taskCount].length > 0
  193. ">
  194. <div class="wheel" style="height: auto;" v-if="
  195. vedio.length &&
  196. vedio[taskCount] &&
  197. vedio[taskCount].length > 0 &&
  198. showType == 0
  199. ">
  200. <div class="workd_media" style="height: 650px; width: calc(100% - 50px)">
  201. <video-player class="video-player vjs-custom-skin"
  202. :class="contentDialog == false ? 'isAllWidth' : ''" :playsinline="true"
  203. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  204. style="width: 100%; height: 100%; margin: 0 0 0 30px"></video-player>
  205. </div>
  206. </div>
  207. <div class="wheel" v-if="showType == 1" style="
  208. box-shadow: 0 0 6px 1px #f2f2f2;
  209. width: 95%;
  210. margin: 0 auto;
  211. background: #f1f1f1;
  212. ">
  213. <div class="title">查看文档</div>
  214. <el-form class="textBox">
  215. <el-form-item class="textTitle">
  216. <div style="font-size: 22px">
  217. {{ text.name }}
  218. </div>
  219. </el-form-item>
  220. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  221. <div v-html="text.url" class="textContent cont"></div>
  222. </el-form>
  223. </div>
  224. <div class="wheel" v-if="pptImgUrl1.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && showType == 2" style="width: 95%; margin: 0 auto">
  225. <iframe style="width: 100%; height: 100%; border: none"
  226. :src="pptImgUrl1"></iframe>
  227. </div>
  228. <div class="wheel" v-else-if="showType == 2" style="width: 95%; margin: 0 auto">
  229. <iframe style="width: 100%; height: 100%; border: none" security="restricted"
  230. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  231. :src="pptImgUrl1"></iframe>
  232. </div>
  233. <div class="wheel" v-if="showType == 3" style="width: 95%; margin: 0 auto">
  234. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  235. </div>
  236. <div class="wheel" v-if="showType == 4" style="width: 95%; margin: 0 auto">
  237. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  238. </div>
  239. </div>
  240. <div class="pButton" style="
  241. position: absolute;
  242. right: 20px;
  243. top: 0;
  244. background: #205cc6;
  245. z-index: 998;
  246. opacity: .8;
  247. " v-if="!contentDialog" @click="setContent(true)">
  248. <!-- 批 -->
  249. <img src="../assets/navBtn2.png" style="width: 25px" alt="" />
  250. </div>
  251. <div v-if="contentDialog == true" :style="{
  252. width: (!vedio[taskCount].length > 0 &&
  253. !textList[taskCount].length > 0 &&
  254. !lineList[taskCount].length > 0 &&
  255. !file[taskCount].length > 0 && fileC[taskCount].length) ? 'calc(100%)' : 'calc(100% - 83%)', margin: (!vedio[taskCount].length > 0 &&
  256. !textList[taskCount].length > 0 &&
  257. !lineList[taskCount].length > 0 &&
  258. !file[taskCount].length > 0 && fileC[taskCount].length) ? '0 15px' : '0 15px 0 0'
  259. }">
  260. <div class="vedioList" v-if="
  261. (vedio.length &&
  262. vedio[taskCount] &&
  263. vedio[taskCount].length > 0) ||
  264. (textList.length &&
  265. textList[taskCount] &&
  266. textList[taskCount].length > 0) ||
  267. (lineList.length &&
  268. lineList[taskCount] &&
  269. lineList[taskCount].length > 0) ||
  270. (file.length &&
  271. file[taskCount] &&
  272. file[taskCount].length > 0) ||
  273. (fileC.length &&
  274. fileC[taskCount] &&
  275. fileC[taskCount].length > 0)
  276. " style="height: 650px">
  277. <div class="navCorOpenBox">
  278. <div class="navTitile">内容列表:</div>
  279. <div class="navCorOpen" @click="setContent(false)">
  280. <img src="../assets/navBtn2.png" alt="" />
  281. </div>
  282. </div>
  283. <div class="navBox">
  284. <div v-show="
  285. vedio.length &&
  286. vedio[taskCount] &&
  287. vedio[taskCount].length > 0
  288. ">
  289. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  290. @click="lookVedio(media.url, vedioIndex)">
  291. <div class="vedioName" :class="
  292. isClickNav == 'video' + vedioIndex
  293. ? 'isClickNav'
  294. : ''
  295. ">
  296. <span v-if="media.text">{{ media.text }}-</span>{{ media.name }}
  297. </div>
  298. </div>
  299. </div>
  300. <div v-show="
  301. textList.length &&
  302. textList[taskCount] &&
  303. textList[taskCount].length > 0
  304. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  305. @click="lookText(taskCount, textIndex)">
  306. <div style="width: calc(100% - 0px)">
  307. <div class="navText" :class="
  308. isClickNav == 'text' + textIndex
  309. ? 'isClickNav'
  310. : ''
  311. ">
  312. {{
  313. textList[taskCount].length > 0 ? text.name : ""
  314. }}.doc
  315. </div>
  316. </div>
  317. </div>
  318. <div v-show="
  319. lineList.length &&
  320. lineList[taskCount] &&
  321. lineList[taskCount].length > 0
  322. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  323. @click="doUrl(lines.url, lineIndex)">
  324. <div style="width: calc(100% - 0px)">
  325. <div class="navText" :class="
  326. isClickNav == 'line' + lineIndex
  327. ? 'isClickNav'
  328. : ''
  329. ">
  330. {{ lines.title ? lines.title : lines.url }}
  331. </div>
  332. </div>
  333. </div>
  334. <div class="newNav" v-show="
  335. file.length &&
  336. file[taskCount] &&
  337. file[taskCount].length > 0
  338. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  339. <div style="width: calc(100% - 0px)">
  340. <div class="navText" :class="
  341. isClickNav == 'word' + fileIndex
  342. ? 'isClickNav'
  343. : ''
  344. ">
  345. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  346. </div>
  347. </div>
  348. </div>
  349. <div class="newNav" v-show="
  350. fileC.length &&
  351. fileC[taskCount] &&
  352. fileC[taskCount].length > 0
  353. " v-for="(f, fileIndex) in fileC[taskCount]" :key="fileIndex" @click="downloadFile2(f)">
  354. <div style="width: calc(100% - 0px)">
  355. <div class="navText">
  356. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  357. </div>
  358. </div>
  359. </div>
  360. </div>
  361. </div>
  362. </div>
  363. </div>
  364. <div style="width: 81%">
  365. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 2 || showType == 3">
  366. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  367. <el-button type="primary" @click="downloadFile(pptImgUrl1)"
  368. v-if="isClickNav.indexOf('line') == -1">文件下载</el-button>
  369. <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
  370. </el-button>
  371. </div>
  372. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 1">
  373. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  374. </div>
  375. </div>
  376. </div>
  377. </div>
  378. <div class="student_body" v-resize="resize">
  379. <!-- <div
  380. class="vedioBox"
  381. v-if="
  382. file.length && file[taskCount] && file[taskCount].length > 0
  383. "
  384. >
  385. <div class="queTop">
  386. <div class="question" style="width: 30px; margin-top: 5px">
  387. <img src="../assets/icon/fileIcon.png" alt />
  388. </div>
  389. <div class="queTitle">
  390. <div>附件</div>
  391. </div>
  392. </div>
  393. <div class="filebox" style="width: 100%">
  394. <div
  395. class="file"
  396. v-for="(f, fileIndex) in file[taskCount]"
  397. :key="fileIndex"
  398. @click="downFile(f, fileIndex)"
  399. >
  400. <img :src="require('../assets/file.png')" alt />
  401. <div>{{ f.name }}</div>
  402. </div>
  403. </div>
  404. <div class="upFile" v-if="type == 3">提交</div>
  405. </div>-->
  406. <div class="vedioBox" v-if="
  407. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  408. .toolChoose[0].tool &&
  409. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  410. .toolChoose[0].tool.length &&
  411. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  412. .toolChoose[0].tool.length > 0
  413. ">
  414. <div class="queTop" style="
  415. font-size: 25px;
  416. padding: 15px 0 15px 30px;
  417. font-weight: bold;
  418. ">
  419. <!-- <div class="question" style="width: 30px">
  420. <img src="../assets/icon/toolIcon.png" alt />
  421. </div>
  422. <div class="queTitle">
  423. <div>工具</div>
  424. </div>-->
  425. 练一练
  426. </div>
  427. <div class="toolHeng2" style="position: relative">
  428. <div class="filebox" style="flex-wrap: nowrap; margin: 0 20px" v-for="(tool, toolIndex) in chapInfoList[courseType]
  429. .chapterInfo[0].taskJson[taskCount].toolChoose" :key="toolIndex">
  430. <div class="bzBox">
  431. <div></div>
  432. <div>步骤{{ toolIndex + 1 }}</div>
  433. </div>
  434. <div class="toolBox">
  435. <div>
  436. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  437. :key="indexTool"-->
  438. <!-- <div class="iframeBox">
  439. <div
  440. class="addPoint isBorder"
  441. v-for="(tooC, toolCIndex) in tool.tool"
  442. :key="toolCIndex"
  443. >
  444. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  445. <div
  446. class="iframeName"
  447. >
  448. 电子白板
  449. </div>
  450. <iframe
  451. src="https://iwb.cocorobo.cn/"
  452. ref="whiteBoard"
  453. ></iframe>
  454. </div>
  455. </div>
  456. </div>-->
  457. <div class="noiframeBox">
  458. <div class="addPoint" v-for="(tooC, toolCIndex) in tool.tool" :key="toolCIndex">
  459. <div v-if="tooC == 1">
  460. <img src="../assets/icon/secondToolList/whiteBoard.png" alt
  461. @click="addTools(tooC, toolIndex, taskCount)" />
  462. <div style="margin: 5px 0">电子白板</div>
  463. </div>
  464. <div v-if="tooC == 3">
  465. <img src="../assets/icon/secondToolList/mindMapping.png" alt
  466. @click="addTools(tooC, toolIndex, taskCount)" />
  467. <div style="margin: 5px 0">思维导图</div>
  468. </div>
  469. <div v-if="tooC == 6">
  470. <img src="../assets/icon/secondToolList/doc.png" alt
  471. @click="addTools(tooC, toolIndex, taskCount)" />
  472. <div style="margin: 5px 0">协同文档</div>
  473. </div>
  474. <div v-if="tooC == 7">
  475. <img src="../assets/icon/secondToolList/mindNetwork.png" alt
  476. @click="addTools(tooC, toolIndex, taskCount)" />
  477. <div style="margin: 5px 0">思维网格</div>
  478. </div>
  479. <div v-if="tooC == 8">
  480. <img src="../assets/icon/secondToolList/library.png" alt
  481. @click="addTools(tooC, toolIndex, taskCount)" />
  482. <div style="margin: 5px 0">素材库</div>
  483. </div>
  484. <div v-if="tooC == 17">
  485. <img src="../assets/icon/secondToolList/library.png" alt
  486. @click="addTools(tooC, toolIndex, taskCount)" />
  487. <div style="margin: 5px 0">学习资料</div>
  488. </div>
  489. <div v-if="tooC == 2">
  490. <img @click="addTools(tooC, toolIndex, taskCount)"
  491. src="../assets/icon/secondToolList/note.png" alt />
  492. <div style="margin: 5px 0">便签</div>
  493. </div>
  494. <div v-if="tooC == 4">
  495. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/thirdToolList/ask.png"
  496. alt />
  497. <div style="margin: 5px 0">问卷调查</div>
  498. </div>
  499. <div v-if="tooC == 45">
  500. <img @click="addTools(tooC, toolIndex, taskCount)"
  501. src="../assets/icon/thirdToolList/choose.png" alt />
  502. <div style="margin: 5px 0">选择题</div>
  503. </div>
  504. <!-- <div v-if="tooC == 5">
  505. <img
  506. @click="addTools(tooC, toolIndex, taskCount)"
  507. src="../assets/icon/thirdToolList/score.png"
  508. alt
  509. />
  510. <div style="margin: 5px 0">量规评分</div>
  511. </div> -->
  512. <div v-if="tooC == 10">
  513. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/thirdToolList/time.png"
  514. alt />
  515. <div style="margin: 5px 0">倒计时</div>
  516. </div>
  517. <div v-if="tooC == 15">
  518. <img @click="addTools(tooC, toolIndex, taskCount)"
  519. src="../assets/icon/thirdToolList/answer.png" alt />
  520. <div style="margin: 5px 0">问答工具</div>
  521. </div>
  522. <div v-if="tooC == 26">
  523. <img @click="addTools(tooC, toolIndex, taskCount)"
  524. src="../assets/icon/thirdToolList/courseDesign.png" alt />
  525. <div style="margin: 5px 0">课程设计</div>
  526. </div>
  527. <div v-if="tooC == 18">
  528. <img @click="addTools(tooC, toolIndex, taskCount)"
  529. src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  530. <div style="margin: 5px 0">训练服务器</div>
  531. </div>
  532. <div v-if="tooC == 16">
  533. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/thirdToolList/work.png"
  534. alt />
  535. <div style="margin: 5px 0">作业提交</div>
  536. </div>
  537. <div v-if="tooC == 50">
  538. <img @click="addTools(tooC, toolIndex, taskCount)"
  539. src="../assets/icon/thirdToolList/plwork.png" alt />
  540. <div style="margin: 5px 0">批量上传</div>
  541. </div>
  542. <div v-if="tooC == 21">
  543. <img @click="addTools(tooC, toolIndex, taskCount)"
  544. src="../assets/icon/fourthToolList/program.png" alt />
  545. <div style="margin: 5px 0">编程平台</div>
  546. </div>
  547. <div v-if="tooC == 22">
  548. <img @click="addTools(tooC, toolIndex, taskCount)"
  549. src="../assets/icon/fourthToolList/program.png" alt />
  550. <div style="margin: 5px 0">AI体验</div>
  551. </div>
  552. <div v-if="tooC == 23">
  553. <img @click="addTools(tooC, toolIndex, taskCount)"
  554. src="../assets/icon/fourthToolList/program.png" alt />
  555. <div style="margin: 5px 0">Python</div>
  556. </div>
  557. <div v-if="tooC == 24">
  558. <img @click="addTools(tooC, toolIndex, taskCount)"
  559. src="../assets/icon/fourthToolList/AIprogram.png" alt />
  560. <div style="margin: 5px 0">AI平台</div>
  561. </div>
  562. <div v-if="tooC == 25">
  563. <img @click="addTools(tooC, toolIndex, taskCount)"
  564. src="../assets/icon/thirdToolList/evalua.png" alt />
  565. <div style="margin: 5px 0">目标管理</div>
  566. </div>
  567. <div v-if="tooC == 31">
  568. <img @click="addTools(tooC, toolIndex, taskCount)"
  569. src="../assets/icon/secondToolList/networkPanel.png" alt />
  570. <div style="margin: 5px 0">数学画板</div>
  571. </div>
  572. <div v-if="tooC == 28">
  573. <img @click="addTools(tooC, toolIndex, taskCount)"
  574. src="../assets/icon/secondToolList/translation.png" alt />
  575. <div style="margin: 5px 0">翻译</div>
  576. </div>
  577. <div v-if="tooC == 37">
  578. <img @click="addTools(tooC, toolIndex, taskCount)"
  579. src="../assets/icon/secondToolList/mohe.png" alt />
  580. <div style="margin: 5px 0">魔盒识字</div>
  581. </div>
  582. <div v-if="tooC == 38">
  583. <img @click="addTools(tooC, toolIndex, taskCount)"
  584. src="../assets/icon/secondToolList/24game.png" alt />
  585. <div style="margin: 5px 0">24点</div>
  586. </div>
  587. <div v-if="tooC == 39">
  588. <img @click="addTools(tooC, toolIndex, taskCount)"
  589. src="../assets/icon/secondToolList/GeoGebra.png" alt />
  590. <div style="margin: 5px 0">GeoGebra</div>
  591. </div>
  592. <div v-if="tooC == 32">
  593. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/thirdToolList/code.png"
  594. alt />
  595. <div style="margin: 5px 0">源码编辑</div>
  596. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  597. style="position: absolute;left: 110px;bottom: 30px;">
  598. 上传文件
  599. <input type="file" accept="*" style="display: none"
  600. @change="beforeUpload1($event, 7, toolIndex)" />
  601. </div> -->
  602. </div>
  603. <div v-if="tooC == 40">
  604. <img @click="addTools(tooC, toolIndex, taskCount)"
  605. src="../assets/icon/secondToolList/eval.png" alt />
  606. <div style="margin: 5px 0">个人评价</div>
  607. </div>
  608. <div v-if="tooC == 41">
  609. <img @click="addTools(tooC, toolIndex, taskCount)"
  610. src="../assets/icon/thirdToolList/select.png" alt />
  611. <div style="margin: 5px 0">选择填空</div>
  612. </div>
  613. <div v-if="tooC == 44">
  614. <img @click="addTools(tooC, toolIndex, taskCount)"
  615. src="../assets/icon/thirdToolList/hanClass.png" alt />
  616. <div style="margin: 5px 0">汉字宫</div>
  617. </div>
  618. <div v-if="tooC == 47">
  619. <img @click="addTools(tooC, toolIndex, taskCount)"
  620. src="../assets/icon/fourthToolList/conSentences.png" alt />
  621. <div style="margin: 5px 0">连词成句</div>
  622. </div>
  623. <div v-if="tooC == 48">
  624. <img @click="addTools(tooC, toolIndex, taskCount)"
  625. src="../assets/icon/fourthToolList/table.png" alt />
  626. <div style="margin: 5px 0">表格</div>
  627. </div>
  628. <div v-if="tooC == 52">
  629. <img @click="addTools(tooC, toolIndex, taskCount)"
  630. src="../assets/icon/fourthToolList/text.png" alt />
  631. <div style="margin: 5px 0">文档</div>
  632. </div>
  633. <div v-if="tooC == 49">
  634. <img @click="addTools(tooC, toolIndex, taskCount)"
  635. src="../assets/icon/fourthToolList/group.png" alt />
  636. <div style="margin: 5px 0">学生分组</div>
  637. </div>
  638. <div v-if="tooC == 57">
  639. <img @click="addTools(tooC, toolIndex, taskCount)"
  640. src="../assets/icon/fourthToolList/cocopi.png" alt />
  641. <div style="margin: 5px 0">CocoPi</div>
  642. </div>
  643. <div v-if="tooC == 58">
  644. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/fourthToolList/car.png"
  645. alt />
  646. <div style="margin: 5px 0">模拟驾驶</div>
  647. </div>
  648. <div v-if="tooC == 59">
  649. <img @click="addTools(tooC, toolIndex, taskCount)"
  650. src="../assets/icon/fourthToolList/lineSearch.png" alt />
  651. <div style="margin: 5px 0">路径搜索</div>
  652. </div>
  653. <div v-if="tooC == 60">
  654. <img @click="addTools(tooC, toolIndex, taskCount)"
  655. src="../assets/icon/fourthToolList/deepLearning.png" alt />
  656. <div style="margin: 5px 0">深度学习</div>
  657. </div>
  658. <div v-if="tooC == 61">
  659. <img @click="addTools(tooC, toolIndex, taskCount)"
  660. src="../assets/icon/fourthToolList/allHistory.png" alt />
  661. <div style="margin: 5px 0">全历史</div>
  662. </div>
  663. </div>
  664. </div>
  665. </div>
  666. <div class="tooldetail" v-if="tool.toolDetail != ''">
  667. <!-- <div class="toolTitle">工具描述</div> -->
  668. <div v-html="contentConvent(tool.toolDetail)"></div>
  669. </div>
  670. <el-button type="primary" v-if="tool.tool[0] == 32" style="
  671. position: absolute;
  672. right: 30px;
  673. transform: translateY(-130%);
  674. " @click="addImg($event)">上传作业<input type="file" accept="*"
  675. style="display: none" @change="beforeUpload1($event, 7, toolIndex)" /></el-button>
  676. <el-button type="primary" v-if="tool.tool[0] == 57" style="
  677. position: absolute;
  678. right: 30px;
  679. transform: translateY(-130%);
  680. " @click="addImg($event)">上传作业<input type="file" accept="*"
  681. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button>
  682. </div>
  683. <div v-if="
  684. tType &&
  685. tType == 2 &&
  686. !sIsOpen &&
  687. tool.tool.indexOf(16) != -1
  688. " class="worksBox">
  689. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  690. <span>作业预览</span>
  691. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  692. </div>
  693. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  694. <div class="works" style="
  695. width: 200px;
  696. height: 140px;
  697. margin: 10px 10px 10px 0;
  698. box-shadow: 0 0 6px 1px #dfdada;
  699. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  700. <div class="workImg" v-if="w.type == 0">
  701. <img :src="w.works" @click="previewImg(w.works)" alt />
  702. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  703. rightW:
  704. w.userid == userid || tType == 1 || tType == 4,
  705. }">
  706. {{ JSON.parse(w.score).wScore }}分
  707. </div>
  708. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  709. :class="{
  710. rightW:
  711. w.userid == userid || tType == 1 || tType == 4,
  712. }">
  713. 评分
  714. </div>
  715. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  716. w.userid == userid || tType == 1 || tType == 4
  717. " @click.stop="deleteWorks(w.wid)" alt />
  718. </div>
  719. <div class="workImg" v-if="w.type == 1">
  720. <img :src="word" @click="openFile(w.works)" alt />
  721. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  722. rightW:
  723. w.userid == userid || tType == 1 || tType == 4,
  724. }">
  725. {{ JSON.parse(w.score).wScore }}分
  726. </div>
  727. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  728. :class="{
  729. rightW:
  730. w.userid == userid || tType == 1 || tType == 4,
  731. }">
  732. 评分
  733. </div>
  734. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  735. w.userid == userid || tType == 1 || tType == 4
  736. " @click.stop="deleteWorks(w.wid)" alt />
  737. </div>
  738. <div class="workImg" v-if="w.type == 3">
  739. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  740. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  741. rightW:
  742. w.userid == userid || tType == 1 || tType == 4,
  743. }">
  744. {{ JSON.parse(w.score).wScore }}分
  745. </div>
  746. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  747. :class="{
  748. rightW:
  749. w.userid == userid || tType == 1 || tType == 4,
  750. }">
  751. 评分
  752. </div>
  753. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  754. w.userid == userid || tType == 1 || tType == 4
  755. " @click.stop="deleteWorks(w.wid)" alt />
  756. </div>
  757. <div class="workImg" v-if="w.type == 12">
  758. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  759. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  760. rightW:
  761. w.userid == userid || tType == 1 || tType == 4,
  762. }">
  763. {{ JSON.parse(w.score).wScore }}分
  764. </div>
  765. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  766. :class="{
  767. rightW:
  768. w.userid == userid || tType == 1 || tType == 4,
  769. }">
  770. 评分
  771. </div>
  772. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  773. w.userid == userid || tType == 1 || tType == 4
  774. " @click.stop="deleteWorks(w.wid)" alt />
  775. </div>
  776. <div class="worksName">
  777. <div>{{ w.sName }}</div>
  778. </div>
  779. </div>
  780. </div>
  781. </div>
  782. <div v-if="
  783. tType &&
  784. tType == 2 &&
  785. !sIsOpen &&
  786. tool.tool.indexOf(32) != -1
  787. " class="worksBox">
  788. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  789. <span>作业预览</span>
  790. </div>
  791. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  792. <div class="works" style="
  793. width: 200px;
  794. height: 140px;
  795. margin: 10px 10px 10px 0;
  796. box-shadow: 0 0 6px 1px #dfdada;
  797. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  798. <div class="workImg">
  799. <img :src="word2" @click="downloadFile(w.works)" alt />
  800. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  801. rightW:
  802. w.userid == userid || tType == 1 || tType == 4,
  803. }">
  804. {{ JSON.parse(w.score).wScore }}分
  805. </div>
  806. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  807. :class="{
  808. rightW:
  809. w.userid == userid || tType == 1 || tType == 4,
  810. }">
  811. 评分
  812. </div>
  813. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  814. w.userid == userid || tType == 1 || tType == 4
  815. " @click.stop="deleteWorks(w.wid)" alt />
  816. </div>
  817. <div class="worksName">
  818. <div>{{ w.sName }}</div>
  819. </div>
  820. </div>
  821. </div>
  822. </div>
  823. <div v-if="
  824. tType &&
  825. tType == 2 &&
  826. !sIsOpen &&
  827. tool.tool.indexOf(57) != -1
  828. " class="worksBox">
  829. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  830. <span>作业预览</span>
  831. </div>
  832. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  833. <div class="works" style="
  834. width: 200px;
  835. height: 140px;
  836. margin: 10px 10px 10px 0;
  837. box-shadow: 0 0 6px 1px #dfdada;
  838. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  839. <div class="workImg">
  840. <img :src="word2" @click="downloadFile(w.works)" alt />
  841. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  842. rightW:
  843. w.userid == userid || tType == 1 || tType == 4,
  844. }">
  845. {{ JSON.parse(w.score).wScore }}分
  846. </div>
  847. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  848. :class="{
  849. rightW:
  850. w.userid == userid || tType == 1 || tType == 4,
  851. }">
  852. 评分
  853. </div>
  854. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  855. w.userid == userid || tType == 1 || tType == 4
  856. " @click.stop="deleteWorks(w.wid)" alt />
  857. </div>
  858. <div class="worksName">
  859. <div>{{ w.sName }}</div>
  860. </div>
  861. </div>
  862. </div>
  863. </div>
  864. <div v-if="
  865. tType &&
  866. tType == 2 &&
  867. !sIsOpen &&
  868. tool.tool.indexOf(4) != -1
  869. " class="worksBox">
  870. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  871. <span>作业预览</span>
  872. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  873. </div>
  874. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  875. <div class="isWorksName" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex" @click="
  876. openTools(4, toolIndex, taskCount, w.works, w.sName)
  877. ">
  878. {{ w.sName }}
  879. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  880. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  881. </div>
  882. <!-- <div
  883. class="works"
  884. style="
  885. width: 200px;
  886. height: 140px;
  887. border-radius: 10px;
  888. box-shadow: 0 0 6px 1px #dfdada;
  889. overflow: hidden;
  890. "
  891. v-for="(w, wIndex) in workStudent[toolIndex]"
  892. :key="wIndex"
  893. >
  894. <div class="workImg">
  895. <img
  896. src="../assets/icon/works/noImg.png"
  897. @click="
  898. openTools(
  899. 4,
  900. toolIndex,
  901. taskCount,
  902. w.works,
  903. w.sName
  904. )
  905. "
  906. alt
  907. />
  908. </div>
  909. <div class="worksName">
  910. <div>{{ w.sName }}</div>
  911. <div>{{ w.time }}</div>
  912. </div>
  913. </div> -->
  914. </div>
  915. </div>
  916. <div v-if="
  917. tType &&
  918. tType == 2 &&
  919. !sIsOpen &&
  920. tool.tool.indexOf(45) != -1
  921. " class="worksBox">
  922. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  923. <span>作业预览</span>
  924. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  925. </div>
  926. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  927. <div class="isWorksName" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex" @click="
  928. openTools(45, toolIndex, taskCount, w.works, w.sName)
  929. ">
  930. {{ w.sName }}
  931. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  932. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  933. </div>
  934. </div>
  935. </div>
  936. <div v-if="
  937. tType &&
  938. tType == 2 &&
  939. !sIsOpen &&
  940. tool.tool.indexOf(15) != -1
  941. " class="worksBox">
  942. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  943. <span>作业预览</span>
  944. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  945. </div>
  946. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  947. <div class="works" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  948. <div class="workImg">
  949. <!-- <img
  950. src="../assets/icon/works/noImg.png"
  951. @click="openTools(15, toolIndex, taskCount, w.works)"
  952. alt=""
  953. />-->
  954. <div class="answerBg">
  955. <!-- <div>{{ w.sName }}</div> -->
  956. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  957. placement="top">
  958. <div class="answerContent">
  959. {{ JSON.parse(w.works)[0].answer }}
  960. </div>
  961. </el-tooltip>
  962. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  963. rightW:
  964. w.userid == userid ||
  965. tType == 1 ||
  966. tType == 4,
  967. }">
  968. {{ JSON.parse(w.score).wScore }}分
  969. </div>
  970. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  971. :class="{
  972. rightW:
  973. w.userid == userid ||
  974. tType == 1 ||
  975. tType == 4,
  976. }">
  977. 评分
  978. </div>
  979. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  980. w.userid == userid || tType == 1 || tType == 4
  981. " @click.stop="deleteWorks(w.wid)" alt />
  982. </div>
  983. <div class="comment">
  984. <div class="worksName">
  985. <div>{{ w.sName }}</div>
  986. </div>
  987. </div>
  988. </div>
  989. </div>
  990. </div>
  991. </div>
  992. <div v-if="
  993. tType &&
  994. tType == 2 &&
  995. !sIsOpen &&
  996. tool.tool.indexOf(1) != -1
  997. " class="worksBox">
  998. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  999. <span>作业预览</span>
  1000. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1001. </div>
  1002. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1003. <div class="works" style="
  1004. width: 200px;
  1005. height: 140px;
  1006. margin: 10px 10px 10px 0;
  1007. box-shadow: 0 0 6px 1px #dfdada;
  1008. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1009. <div class="workImg">
  1010. <img :src="w.works" @click="previewImg(w.works)" alt />
  1011. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1012. rightW:
  1013. w.userid == userid || tType == 1 || tType == 4,
  1014. }">
  1015. {{ JSON.parse(w.score).wScore }}分
  1016. </div>
  1017. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1018. :class="{
  1019. rightW:
  1020. w.userid == userid || tType == 1 || tType == 4,
  1021. }">
  1022. 评分
  1023. </div>
  1024. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1025. w.userid == userid || tType == 1 || tType == 4
  1026. " @click.stop="deleteWorks(w.wid)" alt />
  1027. </div>
  1028. <div class="worksName">
  1029. <div>{{ w.sName }}</div>
  1030. </div>
  1031. </div>
  1032. </div>
  1033. </div>
  1034. <div v-if="
  1035. tType &&
  1036. tType == 2 &&
  1037. !sIsOpen &&
  1038. tool.tool.indexOf(3) != -1
  1039. " class="worksBox">
  1040. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1041. <span>作业预览</span>
  1042. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1043. </div>
  1044. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1045. <div class="works" style="
  1046. width: 200px;
  1047. height: 140px;
  1048. margin: 10px 10px 10px 0;
  1049. box-shadow: 0 0 6px 1px #dfdada;
  1050. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1051. <div class="workImg">
  1052. <img :src="w.works" @click="previewImg(w.works)" alt />
  1053. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1054. rightW:
  1055. w.userid == userid || tType == 1 || tType == 4,
  1056. }">
  1057. {{ JSON.parse(w.score).wScore }}分
  1058. </div>
  1059. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1060. :class="{
  1061. rightW:
  1062. w.userid == userid || tType == 1 || tType == 4,
  1063. }">
  1064. 评分
  1065. </div>
  1066. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1067. w.userid == userid || tType == 1 || tType == 4
  1068. " @click.stop="deleteWorks(w.wid)" alt />
  1069. </div>
  1070. <div class="worksName">
  1071. <div>{{ w.sName }}</div>
  1072. </div>
  1073. </div>
  1074. </div>
  1075. </div>
  1076. <div v-if="
  1077. tType &&
  1078. tType == 2 &&
  1079. !sIsOpen &&
  1080. tool.tool.indexOf(6) != -1
  1081. " class="worksBox">
  1082. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1083. <span>作业预览</span>
  1084. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1085. </div>
  1086. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1087. <div class="works" style="
  1088. width: 200px;
  1089. height: 140px;
  1090. margin: 10px 10px 10px 0;
  1091. box-shadow: 0 0 6px 1px #dfdada;
  1092. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1093. <div class="workImg">
  1094. <img :src="w.works" @click="previewImg(w.works)" alt />
  1095. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1096. rightW:
  1097. w.userid == userid || tType == 1 || tType == 4,
  1098. }">
  1099. {{ JSON.parse(w.score).wScore }}分
  1100. </div>
  1101. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1102. :class="{
  1103. rightW:
  1104. w.userid == userid || tType == 1 || tType == 4,
  1105. }">
  1106. 评分
  1107. </div>
  1108. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1109. w.userid == userid || tType == 1 || tType == 4
  1110. " @click.stop="deleteWorks(w.wid)" alt />
  1111. </div>
  1112. <div class="worksName">
  1113. <div>{{ w.sName }}</div>
  1114. </div>
  1115. </div>
  1116. </div>
  1117. </div>
  1118. <div v-if="
  1119. tType &&
  1120. tType == 2 &&
  1121. !sIsOpen &&
  1122. tool.tool.indexOf(7) != -1
  1123. " class="worksBox">
  1124. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1125. <span>作业预览</span>
  1126. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1127. </div>
  1128. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1129. <div class="works" style="
  1130. width: 200px;
  1131. height: 140px;
  1132. margin: 10px 10px 10px 0;
  1133. box-shadow: 0 0 6px 1px #dfdada;
  1134. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1135. <div class="workImg">
  1136. <img :src="w.works" @click="previewImg(w.works)" alt />
  1137. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1138. rightW:
  1139. w.userid == userid || tType == 1 || tType == 4,
  1140. }">
  1141. {{ JSON.parse(w.score).wScore }}分
  1142. </div>
  1143. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1144. :class="{
  1145. rightW:
  1146. w.userid == userid || tType == 1 || tType == 4,
  1147. }">
  1148. 评分
  1149. </div>
  1150. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1151. w.userid == userid || tType == 1 || tType == 4
  1152. " @click.stop="deleteWorks(w.wid)" alt />
  1153. </div>
  1154. <div class="worksName">
  1155. <div>{{ w.sName }}</div>
  1156. </div>
  1157. </div>
  1158. </div>
  1159. </div>
  1160. <div v-if="
  1161. tType &&
  1162. tType == 2 &&
  1163. !sIsOpen &&
  1164. tool.tool.indexOf(26) != -1
  1165. " class="worksBox">
  1166. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1167. <span>作业预览</span>
  1168. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1169. </div>
  1170. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1171. <div class="works" style="
  1172. width: 200px;
  1173. height: 140px;
  1174. margin: 10px 10px 10px 0;
  1175. box-shadow: 0 0 6px 1px #dfdada;
  1176. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1177. <div class="workImg">
  1178. <img :src="w.works" @click="previewImg(w.works)" alt />
  1179. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1180. w.userid == userid || tType == 1 || tType == 4
  1181. " @click.stop="deleteWorks(w.wid)" alt />
  1182. </div>
  1183. <div class="worksName">
  1184. <div>{{ w.sName }}</div>
  1185. </div>
  1186. </div>
  1187. </div>
  1188. </div>
  1189. <div v-if="
  1190. tType &&
  1191. ((tType == 2 && sIsOpen == true) ||
  1192. tType == 1 ||
  1193. tType == 4) &&
  1194. tool.tool.indexOf(16) != -1
  1195. " class="worksBox">
  1196. <div class="zuoyeYulan" v-if="
  1197. worksStudent.length &&
  1198. worksStudent[toolIndex].length > 0
  1199. ">
  1200. <div class="worksTop">
  1201. <div>作业预览</div>
  1202. <div class="corOpen" @click="contract(toolIndex)" v-if="
  1203. worksStudent[toolIndex].length > 6 &&
  1204. isCloseList[toolIndex].isClose == 0
  1205. ">
  1206. 收缩
  1207. </div>
  1208. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1209. 展开
  1210. </div>
  1211. </div>
  1212. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1213. </div>
  1214. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  1215. <div class="group_box">
  1216. <div class="group_title">
  1217. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  1218. <div class="group_name">{{ g.name }}</div>
  1219. </el-tooltip>
  1220. </div>
  1221. <div class="group_work" v-if="
  1222. g.works && g.works.length &&
  1223. g.works[toolIndex].length
  1224. ">
  1225. <div class="works" style="
  1226. width: 200px;
  1227. height: 140px;
  1228. margin: 10px 10px 10px 0;
  1229. border-radius: 15px;
  1230. box-shadow: 0 0 6px 1px #dfdada;
  1231. " v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex"
  1232. :class="w.type == 1 ? 'isTypeOne' : ''">
  1233. <div class="workImg" v-if="w.type == 0">
  1234. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1235. <img :src="w.works" @click="previewImg(w.works)" alt />
  1236. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1237. rightW:
  1238. w.userid == userid ||
  1239. tType == 1 ||
  1240. tType == 4 ||
  1241. w.ateacher == userid,
  1242. }">
  1243. {{ JSON.parse(w.score).wScore }}分
  1244. </div>
  1245. <div class="answerScore" @click.stop="openScore(w)"
  1246. v-else-if="courseDetail.userid == userid" :class="{
  1247. rightW:
  1248. w.userid == userid ||
  1249. tType == 1 ||
  1250. tType == 4 ||
  1251. w.ateacher == userid,
  1252. }">
  1253. 评分
  1254. </div>
  1255. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1256. w.userid == userid || tType == 1 || tType == 4
  1257. " @click.stop="deleteWorks(w.wid)" alt />
  1258. </div>
  1259. <div class="workImg" v-if="w.type == 1">
  1260. <img :src="word" @click="openFile(w.works)" alt />
  1261. <!-- @click="openFile(w.works)" -->
  1262. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1263. rightW:
  1264. w.userid == userid ||
  1265. tType == 1 ||
  1266. tType == 4 ||
  1267. w.ateacher == userid,
  1268. }">
  1269. {{ JSON.parse(w.score).wScore }}分
  1270. </div>
  1271. <div class="answerScore" @click.stop="openScore(w)"
  1272. v-else-if="courseDetail.userid == userid" :class="{
  1273. rightW:
  1274. w.userid == userid ||
  1275. tType == 1 ||
  1276. tType == 4 ||
  1277. w.ateacher == userid,
  1278. }">
  1279. 评分
  1280. </div>
  1281. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1282. w.userid == userid || tType == 1 || tType == 4
  1283. " @click.stop="deleteWorks(w.wid)" alt />
  1284. </div>
  1285. <div class="workImg" v-if="w.type == 3">
  1286. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1287. <!-- @click="openVideo(w.works)" -->
  1288. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1289. rightW:
  1290. w.userid == userid ||
  1291. tType == 1 ||
  1292. tType == 4 ||
  1293. w.ateacher == userid,
  1294. }">
  1295. {{ JSON.parse(w.score).wScore }}分
  1296. </div>
  1297. <div class="answerScore" @click.stop="openScore(w)"
  1298. v-else-if="courseDetail.userid == userid" :class="{
  1299. rightW:
  1300. w.userid == userid ||
  1301. tType == 1 ||
  1302. tType == 4 ||
  1303. w.ateacher == userid,
  1304. }">
  1305. 评分
  1306. </div>
  1307. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1308. w.userid == userid || tType == 1 || tType == 4
  1309. " @click.stop="deleteWorks(w.wid)" alt />
  1310. </div>
  1311. <div class="workImg" v-if="w.type == 12">
  1312. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  1313. <!-- @click="openVideo(w.works)" -->
  1314. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1315. rightW:
  1316. w.userid == userid ||
  1317. tType == 1 ||
  1318. tType == 4 ||
  1319. w.ateacher == userid,
  1320. }">
  1321. {{ JSON.parse(w.score).wScore }}分
  1322. </div>
  1323. <div class="answerScore" @click.stop="openScore(w)"
  1324. v-else-if="courseDetail.userid == userid" :class="{
  1325. rightW:
  1326. w.userid == userid ||
  1327. tType == 1 ||
  1328. tType == 4 ||
  1329. w.ateacher == userid,
  1330. }">
  1331. 评分
  1332. </div>
  1333. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1334. w.userid == userid || tType == 1 || tType == 4
  1335. " @click.stop="deleteWorks(w.wid)" alt />
  1336. </div>
  1337. <div class="comment" style="min-width: 200px">
  1338. <div class="worksName">
  1339. <div>{{ w.sName }}</div>
  1340. </div>
  1341. <div class="commentList">
  1342. <div class="commentList">
  1343. <div class="commentImg" @click="
  1344. isLikes(w.wid, userid, 1, null, w.isLikes)
  1345. ">
  1346. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1347. </div>
  1348. <div>{{ w.likesCount }}</div>
  1349. </div>
  1350. <div class="commentList" style="margin-right: 15px">
  1351. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex, null, g.id)">
  1352. <img src="../assets/icon/comment/comment.png" alt="" />
  1353. </div>
  1354. <div>{{ w.commentCount }}</div>
  1355. </div>
  1356. </div>
  1357. </div>
  1358. </div>
  1359. </div>
  1360. <div class="group_work" v-else>暂无提交作业</div>
  1361. </div>
  1362. </div>
  1363. <div class="worksDetailBox" v-if="
  1364. worksStudent.length &&
  1365. worksStudent[toolIndex].length > 0
  1366. ">
  1367. <div class="works" style="
  1368. width: 200px;
  1369. height: 140px;
  1370. margin: 10px 10px 10px 0;
  1371. border-radius: 15px;
  1372. box-shadow: 0 0 6px 1px #dfdada;
  1373. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1374. 0
  1375. ? worksStudent[toolIndex]
  1376. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  1377. :class="w.type == 1 ? 'isTypeOne' : ''">
  1378. <div class="workImg" v-if="w.type == 0">
  1379. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1380. <img :src="w.works" @click="previewImg(w.works)" alt />
  1381. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1382. rightW:
  1383. w.userid == userid ||
  1384. tType == 1 ||
  1385. tType == 4 ||
  1386. w.ateacher == userid,
  1387. }">
  1388. {{ JSON.parse(w.score).wScore }}分
  1389. </div>
  1390. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1391. :class="{
  1392. rightW:
  1393. w.userid == userid ||
  1394. tType == 1 ||
  1395. tType == 4 ||
  1396. w.ateacher == userid,
  1397. }">
  1398. 评分
  1399. </div>
  1400. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1401. w.userid == userid || tType == 1 || tType == 4
  1402. " @click.stop="deleteWorks(w.wid)" alt />
  1403. </div>
  1404. <div class="workImg" v-if="w.type == 1">
  1405. <img :src="word" @click="openFile(w.works)" alt />
  1406. <!-- @click="openFile(w.works)" -->
  1407. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1408. rightW:
  1409. w.userid == userid ||
  1410. tType == 1 ||
  1411. tType == 4 ||
  1412. w.ateacher == userid,
  1413. }">
  1414. {{ JSON.parse(w.score).wScore }}分
  1415. </div>
  1416. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1417. :class="{
  1418. rightW:
  1419. w.userid == userid ||
  1420. tType == 1 ||
  1421. tType == 4 ||
  1422. w.ateacher == userid,
  1423. }">
  1424. 评分
  1425. </div>
  1426. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1427. w.userid == userid || tType == 1 || tType == 4
  1428. " @click.stop="deleteWorks(w.wid)" alt />
  1429. </div>
  1430. <div class="workImg" v-if="w.type == 3">
  1431. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1432. <!-- @click="openVideo(w.works)" -->
  1433. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1434. rightW:
  1435. w.userid == userid ||
  1436. tType == 1 ||
  1437. tType == 4 ||
  1438. w.ateacher == userid,
  1439. }">
  1440. {{ JSON.parse(w.score).wScore }}分
  1441. </div>
  1442. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1443. :class="{
  1444. rightW:
  1445. w.userid == userid ||
  1446. tType == 1 ||
  1447. tType == 4 ||
  1448. w.ateacher == userid,
  1449. }">
  1450. 评分
  1451. </div>
  1452. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1453. w.userid == userid || tType == 1 || tType == 4
  1454. " @click.stop="deleteWorks(w.wid)" alt />
  1455. </div>
  1456. <div class="workImg" v-if="w.type == 12">
  1457. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  1458. <!-- @click="openVideo(w.works)" -->
  1459. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1460. rightW:
  1461. w.userid == userid ||
  1462. tType == 1 ||
  1463. tType == 4 ||
  1464. w.ateacher == userid,
  1465. }">
  1466. {{ JSON.parse(w.score).wScore }}分
  1467. </div>
  1468. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1469. :class="{
  1470. rightW:
  1471. w.userid == userid ||
  1472. tType == 1 ||
  1473. tType == 4 ||
  1474. w.ateacher == userid,
  1475. }">
  1476. 评分
  1477. </div>
  1478. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1479. w.userid == userid || tType == 1 || tType == 4
  1480. " @click.stop="deleteWorks(w.wid)" alt />
  1481. </div>
  1482. <div class="comment" style="min-width: 200px">
  1483. <div class="worksName">
  1484. <div>{{ w.sName }}</div>
  1485. </div>
  1486. <div class="commentList">
  1487. <div class="commentList">
  1488. <div class="commentImg" @click="
  1489. isLikes(w.wid, userid, 1, null, w.isLikes)
  1490. ">
  1491. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1492. </div>
  1493. <div>{{ w.likesCount }}</div>
  1494. </div>
  1495. <div class="commentList" style="margin-right: 15px">
  1496. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1497. <img src="../assets/icon/comment/comment.png" alt="" />
  1498. </div>
  1499. <div>{{ w.commentCount }}</div>
  1500. </div>
  1501. </div>
  1502. </div>
  1503. </div>
  1504. </div>
  1505. <div style="font-size: 18px">未提交</div>
  1506. <div class="noWorksS">
  1507. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1508. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)">
  1509. {{ s.student }}
  1510. </div>
  1511. </div>
  1512. </div>
  1513. <div v-if="
  1514. tType &&
  1515. ((tType == 2 && sIsOpen == true) ||
  1516. tType == 1 ||
  1517. tType == 4) &&
  1518. tool.tool.indexOf(32) != -1
  1519. " class="worksBox">
  1520. <div class="zuoyeYulan" v-if="
  1521. worksStudent.length &&
  1522. worksStudent[toolIndex].length > 0
  1523. ">
  1524. <div class="worksTop">
  1525. <div>作业预览</div>
  1526. <div class="corOpen" @click="contract(toolIndex)" v-if="
  1527. worksStudent[toolIndex].length > 6 &&
  1528. isCloseList[toolIndex].isClose == 0
  1529. ">
  1530. 收缩
  1531. </div>
  1532. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1533. 展开
  1534. </div>
  1535. </div>
  1536. </div>
  1537. <div class="worksDetailBox" v-if="
  1538. worksStudent.length &&
  1539. worksStudent[toolIndex].length > 0
  1540. ">
  1541. <div class="works" style="
  1542. width: 200px;
  1543. height: 140px;
  1544. margin: 10px 10px 10px 0;
  1545. border-radius: 15px;
  1546. box-shadow: 0 0 6px 1px #dfdada;
  1547. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1548. 0
  1549. ? worksStudent[toolIndex]
  1550. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  1551. :class="w.type == 1 ? 'isTypeOne' : ''">
  1552. <div class="workImg">
  1553. <img :src="word2" @click="downloadFile(w.works)" alt />
  1554. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1555. rightW:
  1556. w.userid == userid ||
  1557. tType == 1 ||
  1558. tType == 4 ||
  1559. w.ateacher == userid,
  1560. }">
  1561. {{ JSON.parse(w.score).wScore }}分
  1562. </div>
  1563. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1564. :class="{
  1565. rightW:
  1566. w.userid == userid ||
  1567. tType == 1 ||
  1568. tType == 4 ||
  1569. w.ateacher == userid,
  1570. }">
  1571. 评分
  1572. </div>
  1573. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1574. w.userid == userid || tType == 1 || tType == 4
  1575. " @click.stop="deleteWorks(w.wid)" alt />
  1576. </div>
  1577. <div class="comment" style="min-width: 200px">
  1578. <div class="worksName">
  1579. <div>{{ w.sName }}</div>
  1580. </div>
  1581. <div class="commentList">
  1582. <div class="commentList">
  1583. <div class="commentImg" @click="
  1584. isLikes(w.wid, userid, 1, null, w.isLikes)
  1585. ">
  1586. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1587. </div>
  1588. <div>{{ w.likesCount }}</div>
  1589. </div>
  1590. <div class="commentList" style="margin-right: 15px">
  1591. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1592. <img src="../assets/icon/comment/comment.png" alt="" />
  1593. </div>
  1594. <div>{{ w.commentCount }}</div>
  1595. </div>
  1596. </div>
  1597. </div>
  1598. </div>
  1599. </div>
  1600. <div style="font-size: 18px">未提交</div>
  1601. <div class="noWorksS">
  1602. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(32, toolIndex, taskCount, s)">
  1603. {{ s.student }}
  1604. </div>
  1605. </div>
  1606. </div>
  1607. <div v-if="
  1608. tType &&
  1609. ((tType == 2 && sIsOpen == true) ||
  1610. tType == 1 ||
  1611. tType == 4) &&
  1612. tool.tool.indexOf(57) != -1
  1613. " class="worksBox">
  1614. <div class="zuoyeYulan" v-if="
  1615. worksStudent.length &&
  1616. worksStudent[toolIndex].length > 0
  1617. ">
  1618. <div class="worksTop">
  1619. <div>作业预览</div>
  1620. <div class="corOpen" @click="contract(toolIndex)" v-if="
  1621. worksStudent[toolIndex].length > 6 &&
  1622. isCloseList[toolIndex].isClose == 0
  1623. ">
  1624. 收缩
  1625. </div>
  1626. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1627. 展开
  1628. </div>
  1629. </div>
  1630. </div>
  1631. <div class="worksDetailBox" v-if="
  1632. worksStudent.length &&
  1633. worksStudent[toolIndex].length > 0
  1634. ">
  1635. <div class="works" style="
  1636. width: 200px;
  1637. height: 140px;
  1638. margin: 10px 10px 10px 0;
  1639. border-radius: 15px;
  1640. box-shadow: 0 0 6px 1px #dfdada;
  1641. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1642. 0
  1643. ? worksStudent[toolIndex]
  1644. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  1645. :class="w.type == 1 ? 'isTypeOne' : ''">
  1646. <div class="workImg">
  1647. <img :src="word2" @click="downloadFile(w.works)" alt />
  1648. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1649. rightW:
  1650. w.userid == userid ||
  1651. tType == 1 ||
  1652. tType == 4 ||
  1653. w.ateacher == userid,
  1654. }">
  1655. {{ JSON.parse(w.score).wScore }}分
  1656. </div>
  1657. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1658. :class="{
  1659. rightW:
  1660. w.userid == userid ||
  1661. tType == 1 ||
  1662. tType == 4 ||
  1663. w.ateacher == userid,
  1664. }">
  1665. 评分
  1666. </div>
  1667. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1668. w.userid == userid || tType == 1 || tType == 4
  1669. " @click.stop="deleteWorks(w.wid)" alt />
  1670. </div>
  1671. <div class="comment" style="min-width: 200px">
  1672. <div class="worksName">
  1673. <div>{{ w.sName }}</div>
  1674. </div>
  1675. <div class="commentList">
  1676. <div class="commentList">
  1677. <div class="commentImg" @click="
  1678. isLikes(w.wid, userid, 1, null, w.isLikes)
  1679. ">
  1680. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1681. </div>
  1682. <div>{{ w.likesCount }}</div>
  1683. </div>
  1684. <div class="commentList" style="margin-right: 15px">
  1685. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1686. <img src="../assets/icon/comment/comment.png" alt="" />
  1687. </div>
  1688. <div>{{ w.commentCount }}</div>
  1689. </div>
  1690. </div>
  1691. </div>
  1692. </div>
  1693. </div>
  1694. <div style="font-size: 18px">未提交</div>
  1695. <div class="noWorksS">
  1696. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(57, toolIndex, taskCount, s)">
  1697. {{ s.student }}
  1698. </div>
  1699. </div>
  1700. </div>
  1701. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  1702. <div class="zuoyeYulan" v-if="
  1703. worksStudent.length &&
  1704. worksStudent[toolIndex].length > 0
  1705. ">
  1706. <span>作业预览</span>
  1707. <div class="corOpen" @click="contract(toolIndex)" v-if="
  1708. worksStudent[toolIndex].length > 6 &&
  1709. isCloseList[toolIndex].isClose == 0
  1710. ">
  1711. 收缩
  1712. </div>
  1713. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1714. 展开
  1715. </div>
  1716. </div>
  1717. <div class="worksDetailBox" v-if="
  1718. worksStudent.length &&
  1719. worksStudent[toolIndex].length > 0
  1720. ">
  1721. <div class="works" style="
  1722. width: 200px;
  1723. height: 140px;
  1724. margin: 10px 10px 10px 0;
  1725. border-radius: 15px;
  1726. box-shadow: 0 0 6px 1px #dfdada;
  1727. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1728. 0
  1729. ? worksStudent[toolIndex]
  1730. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  1731. :class="w.type == 1 ? 'isTypeOne' : ''">
  1732. <div class="workImg" v-if="w.type == 0">
  1733. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1734. <img :src="w.works" @click="previewImg(w.works)" alt />
  1735. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1736. rightW:
  1737. w.userid == userid ||
  1738. tType == 1 ||
  1739. tType == 4 ||
  1740. w.ateacher == userid,
  1741. }">
  1742. {{ JSON.parse(w.score).wScore }}分
  1743. </div>
  1744. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1745. :class="{
  1746. rightW:
  1747. w.userid == userid ||
  1748. tType == 1 ||
  1749. tType == 4 ||
  1750. w.ateacher == userid,
  1751. }">
  1752. 评分
  1753. </div>
  1754. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1755. w.userid == userid || tType == 1 || tType == 4
  1756. " @click.stop="deleteWorks(w.wid)" alt />
  1757. </div>
  1758. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  1759. <img :src="word" @click="openFile(w.works)" alt />
  1760. <!-- @click="openFile(w.works)" -->
  1761. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1762. rightW:
  1763. w.userid == userid ||
  1764. tType == 1 ||
  1765. tType == 4 ||
  1766. w.ateacher == userid,
  1767. }">
  1768. {{ JSON.parse(w.score).wScore }}分
  1769. </div>
  1770. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1771. :class="{
  1772. rightW:
  1773. w.userid == userid ||
  1774. tType == 1 ||
  1775. tType == 4 ||
  1776. w.ateacher == userid,
  1777. }">
  1778. 评分
  1779. </div>
  1780. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1781. w.userid == userid || tType == 1 || tType == 4
  1782. " @click.stop="deleteWorks(w.wid)" alt />
  1783. </div>
  1784. <div class="workImg" v-if="w.type == 3">
  1785. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1786. <!-- @click="openVideo(w.works)" -->
  1787. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1788. rightW:
  1789. w.userid == userid ||
  1790. tType == 1 ||
  1791. tType == 4 ||
  1792. w.ateacher == userid,
  1793. }">
  1794. {{ JSON.parse(w.score).wScore }}分
  1795. </div>
  1796. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1797. :class="{
  1798. rightW:
  1799. w.userid == userid ||
  1800. tType == 1 ||
  1801. tType == 4 ||
  1802. w.ateacher == userid,
  1803. }">
  1804. 评分
  1805. </div>
  1806. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1807. w.userid == userid || tType == 1 || tType == 4
  1808. " @click.stop="deleteWorks(w.wid)" alt />
  1809. </div>
  1810. <div class="comment" style="min-width: 200px">
  1811. <div class="worksName">
  1812. <div style="cursor: pointer" @click="openSname(w.sName, w.wid, toolIndex)">
  1813. {{ w.sName }}
  1814. </div>
  1815. </div>
  1816. <div class="commentList">
  1817. <div class="commentList">
  1818. <div class="commentImg" @click="
  1819. isLikes(w.wid, userid, 1, null, w.isLikes)
  1820. ">
  1821. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1822. </div>
  1823. <div>{{ w.likesCount }}</div>
  1824. </div>
  1825. <div class="commentList" style="margin-right: 15px">
  1826. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1827. <img src="../assets/icon/comment/comment.png" alt="" />
  1828. </div>
  1829. <div>{{ w.commentCount }}</div>
  1830. </div>
  1831. </div>
  1832. </div>
  1833. </div>
  1834. </div>
  1835. <div style="font-size: 18px">未提交</div>
  1836. <div class="noWorksS">
  1837. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(50, toolIndex, taskCount, s)">
  1838. {{ s.student }}
  1839. </div>
  1840. </div>
  1841. </div>
  1842. <div v-if="
  1843. tType &&
  1844. ((tType == 2 && sIsOpen == true) ||
  1845. tType == 1 ||
  1846. tType == 4) &&
  1847. tool.tool.indexOf(4) != -1 &&
  1848. (tool.askJson[0].answer ||
  1849. tool.askJson[0].answer === 0) &&
  1850. checkJson[toolIndex].length
  1851. " class="xuan_right_box">
  1852. <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
  1853. <div>
  1854. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  1855. </div>
  1856. <div class="right_box_xuan">
  1857. <span>正确率</span>
  1858. <span>{{
  1859. (checkJson[toolIndex][index].right
  1860. ? checkJson[toolIndex][index].right
  1861. : 0) + "%"
  1862. }}</span>
  1863. </div>
  1864. </div>
  1865. </div>
  1866. <div class="xuan_right_box" style="background: unset" v-if="
  1867. tType &&
  1868. ((tType == 2 && sIsOpen == true) ||
  1869. tType == 1 ||
  1870. tType == 4) &&
  1871. tool.tool.indexOf(4) != -1
  1872. ">
  1873. <AskStatic v-if="
  1874. worksStudent.length &&
  1875. worksStudent[toolIndex].length > 0
  1876. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic>
  1877. </div>
  1878. <div v-if="
  1879. tType &&
  1880. ((tType == 2 && sIsOpen == true) ||
  1881. tType == 1 ||
  1882. tType == 4) &&
  1883. tool.tool.indexOf(4) != -1
  1884. " class="worksBox">
  1885. <div class="zuoyeYulan" v-if="
  1886. worksStudent.length &&
  1887. worksStudent[toolIndex].length > 0
  1888. ">
  1889. <div class="worksTop">
  1890. <div>作业预览</div>
  1891. <div class="corOpen" @click="contract(toolIndex)" v-if="
  1892. worksStudent[toolIndex].length > 6 &&
  1893. isCloseList[toolIndex].isClose == 0
  1894. ">
  1895. 收缩
  1896. </div>
  1897. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1898. 展开
  1899. </div>
  1900. </div>
  1901. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1902. </div>
  1903. <div>
  1904. <div class="worksDetailBox" v-if="
  1905. worksStudent.length &&
  1906. worksStudent[toolIndex].length > 0
  1907. ">
  1908. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  1909. .isClose == 0
  1910. ? worksStudent[toolIndex]
  1911. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="
  1912. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1913. ">
  1914. {{ w.sName }}
  1915. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="
  1916. w.userid == userid || tType == 1 || tType == 4
  1917. " @click.stop="deleteWorks(w.wid)" alt />
  1918. </div>
  1919. <!-- <div class="works" style="
  1920. width: 200px;
  1921. height: 140px;
  1922. border-radius: 10px;
  1923. box-shadow: 0 0 6px 1px #dfdada;
  1924. overflow: hidden;
  1925. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1926. <div class="workImg">
  1927. <img src="../assets/icon/works/noImg.png" @click="
  1928. openTools(
  1929. 4,
  1930. toolIndex,
  1931. taskCount,
  1932. w.works,
  1933. w.sName
  1934. )
  1935. " alt />
  1936. </div>
  1937. <div class="worksName">
  1938. <div>{{ w.sName }}</div>
  1939. <div>{{ w.time }}</div>
  1940. </div>
  1941. </div> -->
  1942. </div>
  1943. </div>
  1944. <div style="font-size: 18px">未提交</div>
  1945. <div class="noWorksS">
  1946. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(4, toolIndex, taskCount, s)">
  1947. {{ s.student }}
  1948. </div>
  1949. </div>
  1950. </div>
  1951. <div v-if="
  1952. tType &&
  1953. ((tType == 2 && sIsOpen == true) ||
  1954. tType == 1 ||
  1955. tType == 4) &&
  1956. tool.tool.indexOf(45) != -1 &&
  1957. (tool.testJson.testJson[0].answer ||
  1958. tool.testJson.testJson[0].answer === 0) &&
  1959. checkJson[toolIndex].length
  1960. " class="xuan_right_box">
  1961. <div class="tool_right_box" v-for="(item, index) in tool.testJson.testJson" :key="index">
  1962. <div>
  1963. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  1964. </div>
  1965. <div class="right_box_xuan">
  1966. <span>正确率</span>
  1967. <span>{{
  1968. (checkJson[toolIndex][index].right
  1969. ? checkJson[toolIndex][index].right
  1970. : 0) + "%"
  1971. }}</span>
  1972. </div>
  1973. </div>
  1974. </div>
  1975. <div class="xuan_right_box" style="background: unset" v-if="
  1976. tType &&
  1977. ((tType == 2 && sIsOpen == true) ||
  1978. tType == 1 ||
  1979. tType == 4) &&
  1980. tool.tool.indexOf(45) != -1
  1981. ">
  1982. <AskStatic2 v-if="
  1983. worksStudent.length &&
  1984. worksStudent[toolIndex].length > 0
  1985. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic2>
  1986. </div>
  1987. <div v-if="
  1988. tType &&
  1989. ((tType == 2 && sIsOpen == true) ||
  1990. tType == 1 ||
  1991. tType == 4) &&
  1992. tool.tool.indexOf(45) != -1
  1993. " class="worksBox">
  1994. <div class="zuoyeYulan" v-if="
  1995. worksStudent.length &&
  1996. worksStudent[toolIndex].length > 0
  1997. ">
  1998. <div class="worksTop">
  1999. <div>作业预览</div>
  2000. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2001. worksStudent[toolIndex].length > 6 &&
  2002. isCloseList[toolIndex].isClose == 0
  2003. ">
  2004. 收缩
  2005. </div>
  2006. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2007. 展开
  2008. </div>
  2009. </div>
  2010. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2011. </div>
  2012. <div>
  2013. <div class="worksDetailBox" v-if="
  2014. worksStudent.length &&
  2015. worksStudent[toolIndex].length > 0
  2016. ">
  2017. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  2018. .isClose == 0
  2019. ? worksStudent[toolIndex]
  2020. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="
  2021. openTools(
  2022. 45,
  2023. toolIndex,
  2024. taskCount,
  2025. w.works,
  2026. w.sName
  2027. )
  2028. ">
  2029. {{ w.sName }}
  2030. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="
  2031. w.userid == userid || tType == 1 || tType == 4
  2032. " @click.stop="deleteWorks(w.wid)" alt />
  2033. </div>
  2034. </div>
  2035. </div>
  2036. <div style="font-size: 18px">未提交</div>
  2037. <div class="noWorksS">
  2038. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(45, toolIndex, taskCount, s)">
  2039. {{ s.student }}
  2040. </div>
  2041. </div>
  2042. </div>
  2043. <div v-if="
  2044. tType &&
  2045. ((tType == 2 && sIsOpen == true) ||
  2046. tType == 1 ||
  2047. tType == 4) &&
  2048. tool.tool.indexOf(15) != -1
  2049. " class="worksBox">
  2050. <div class="zuoyeYulan" v-if="
  2051. worksStudent.length &&
  2052. worksStudent[toolIndex].length > 0
  2053. ">
  2054. <div class="worksTop">
  2055. <div>作业预览</div>
  2056. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2057. worksStudent[toolIndex].length > 6 &&
  2058. isCloseList[toolIndex].isClose == 0
  2059. ">
  2060. 收缩
  2061. </div>
  2062. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2063. 展开
  2064. </div>
  2065. </div>
  2066. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2067. </div>
  2068. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  2069. <div class="group_box">
  2070. <div class="group_title">
  2071. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  2072. <div class="group_name">{{ g.name }}</div>
  2073. </el-tooltip>
  2074. </div>
  2075. <div class="group_work" v-if="
  2076. g.works && g.works.length &&
  2077. g.works[toolIndex].length
  2078. ">
  2079. <div class="works" v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex">
  2080. <div class="workImg" style="
  2081. border-radius: 15px;
  2082. box-shadow: #eee 0px 0px 5px 5px;
  2083. ">
  2084. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  2085. @click="commentOther(w, toolIndex, wIndex)">
  2086. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  2087. placement="top">
  2088. <div class="answerContent">
  2089. {{ JSON.parse(w.works)[0].answer }}
  2090. </div>
  2091. </el-tooltip>
  2092. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2093. rightW:
  2094. w.userid == userid ||
  2095. tType == 1 ||
  2096. tType == 4,
  2097. }">
  2098. {{ JSON.parse(w.score).wScore }}分
  2099. </div>
  2100. <div class="answerScore" @click.stop="openScore(w)"
  2101. v-else-if="courseDetail.userid == userid" :class="{
  2102. rightW:
  2103. w.userid == userid ||
  2104. tType == 1 ||
  2105. tType == 4,
  2106. }">
  2107. 评分
  2108. </div>
  2109. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2110. w.userid == userid || tType == 1 || tType == 4
  2111. " @click.stop="deleteWorks(w.wid)" alt />
  2112. </div>
  2113. <div class="comment">
  2114. <div class="worksName">
  2115. <div>{{ w.sName }}</div>
  2116. </div>
  2117. <div class="commentList">
  2118. <div class="commentImg" @click="
  2119. isLikes(w.wid, userid, 1, null, w.isLikes)
  2120. ">
  2121. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2122. </div>
  2123. <div>{{ w.likesCount }}</div>
  2124. </div>
  2125. <div class="commentList" style="margin-right: 15px">
  2126. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex, null, g.id)">
  2127. <img src="../assets/icon/comment/comment.png" alt="" />
  2128. </div>
  2129. <div>{{ w.commentCount }}</div>
  2130. </div>
  2131. </div>
  2132. </div>
  2133. </div>
  2134. </div>
  2135. <div class="group_work" v-else>暂无提交作业</div>
  2136. </div>
  2137. </div>
  2138. <div class="worksDetailBox" v-if="
  2139. worksStudent.length &&
  2140. worksStudent[toolIndex].length > 0
  2141. ">
  2142. <div class="works" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2143. 0
  2144. ? worksStudent[toolIndex]
  2145. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2146. <div class="workImg" style="
  2147. border-radius: 15px;
  2148. box-shadow: #eee 0px 0px 5px 5px;
  2149. ">
  2150. <!-- <img
  2151. src="../assets/icon/works/noImg.png"
  2152. @click="openTools(15, toolIndex, taskCount, w.works)"
  2153. alt=""
  2154. />-->
  2155. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  2156. @click="commentOther(w, toolIndex, wIndex)">
  2157. <!-- <div>{{ w.sName }}</div> -->
  2158. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  2159. placement="top">
  2160. <div class="answerContent">
  2161. {{ JSON.parse(w.works)[0].answer }}
  2162. </div>
  2163. </el-tooltip>
  2164. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2165. rightW:
  2166. w.userid == userid ||
  2167. tType == 1 ||
  2168. tType == 4,
  2169. }">
  2170. {{ JSON.parse(w.score).wScore }}分
  2171. </div>
  2172. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2173. :class="{
  2174. rightW:
  2175. w.userid == userid ||
  2176. tType == 1 ||
  2177. tType == 4,
  2178. }">
  2179. 评分
  2180. </div>
  2181. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2182. w.userid == userid || tType == 1 || tType == 4
  2183. " @click.stop="deleteWorks(w.wid)" alt />
  2184. </div>
  2185. <div class="comment">
  2186. <div class="worksName">
  2187. <div>{{ w.sName }}</div>
  2188. </div>
  2189. <div class="commentList">
  2190. <div class="commentImg" @click="
  2191. isLikes(w.wid, userid, 1, null, w.isLikes)
  2192. ">
  2193. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2194. </div>
  2195. <div>{{ w.likesCount }}</div>
  2196. </div>
  2197. <div class="commentList" style="margin-right: 15px">
  2198. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2199. <img src="../assets/icon/comment/comment.png" alt="" />
  2200. </div>
  2201. <div>{{ w.commentCount }}</div>
  2202. </div>
  2203. </div>
  2204. </div>
  2205. </div>
  2206. </div>
  2207. <div style="font-size: 18px">未提交</div>
  2208. <div class="noWorksS">
  2209. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(15, toolIndex, taskCount, s)">
  2210. {{ s.student }}
  2211. </div>
  2212. </div>
  2213. </div>
  2214. <div v-if="
  2215. tType &&
  2216. ((tType == 2 && sIsOpen == true) ||
  2217. tType == 1 ||
  2218. tType == 4) &&
  2219. tool.tool.indexOf(1) != -1
  2220. " class="worksBox">
  2221. <div class="zuoyeYulan" v-if="
  2222. worksStudent.length &&
  2223. worksStudent[toolIndex].length > 0
  2224. ">
  2225. <div class="worksTop">
  2226. <div>作业预览</div>
  2227. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2228. worksStudent[toolIndex].length > 6 &&
  2229. isCloseList[toolIndex].isClose == 0
  2230. ">
  2231. 收缩
  2232. </div>
  2233. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2234. 展开
  2235. </div>
  2236. </div>
  2237. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2238. </div>
  2239. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  2240. <div class="group_box">
  2241. <div class="group_title">
  2242. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  2243. <div class="group_name">{{ g.name }}</div>
  2244. </el-tooltip>
  2245. </div>
  2246. <div class="group_work" v-if="
  2247. g.works && g.works.length &&
  2248. g.works[toolIndex].length
  2249. ">
  2250. <div class="works" style="
  2251. width: 200px;
  2252. height: 140px;
  2253. margin: 10px 10px 10px 0;
  2254. border-radius: 15px;
  2255. box-shadow: 0 0 6px 1px #dfdada;
  2256. " v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex"
  2257. :class="w.type == 1 ? 'isTypeOne' : ''">
  2258. <div class="workImg">
  2259. <img :src="w.works" @click="previewImg(w.works)" alt />
  2260. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2261. rightW:
  2262. w.userid == userid || tType == 1 || tType == 4,
  2263. }">
  2264. {{ JSON.parse(w.score).wScore }}分
  2265. </div>
  2266. <div class="answerScore" @click.stop="openScore(w)"
  2267. v-else-if="courseDetail.userid == userid" :class="{
  2268. rightW:
  2269. w.userid == userid || tType == 1 || tType == 4,
  2270. }">
  2271. 评分
  2272. </div>
  2273. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2274. w.userid == userid || tType == 1 || tType == 4
  2275. " @click.stop="deleteWorks(w.wid)" alt />
  2276. </div>
  2277. <div class="comment" style="min-width: 200px">
  2278. <div class="worksName">
  2279. <div>{{ w.sName }}</div>
  2280. </div>
  2281. <div class="commentList">
  2282. <div class="commentList">
  2283. <div class="commentImg" @click="
  2284. isLikes(w.wid, userid, 1, null, w.isLikes)
  2285. ">
  2286. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2287. </div>
  2288. <div>{{ w.likesCount }}</div>
  2289. </div>
  2290. <div class="commentList" style="margin-right: 15px">
  2291. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2292. <img src="../assets/icon/comment/comment.png" alt="" />
  2293. </div>
  2294. <div>{{ w.commentCount }}</div>
  2295. </div>
  2296. </div>
  2297. </div>
  2298. </div>
  2299. </div>
  2300. <div class="group_work" v-else>暂无提交作业</div>
  2301. </div>
  2302. </div>
  2303. <div class="worksDetailBox" v-if="
  2304. worksStudent.length &&
  2305. worksStudent[toolIndex].length > 0
  2306. ">
  2307. <div class="works" style="
  2308. width: 200px;
  2309. height: 140px;
  2310. margin: 10px 10px 10px 0;
  2311. border-radius: 15px;
  2312. box-shadow: 0 0 6px 1px #dfdada;
  2313. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2314. 0
  2315. ? worksStudent[toolIndex]
  2316. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2317. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2318. <div class="workImg">
  2319. <img :src="w.works" @click="previewImg(w.works)" alt />
  2320. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2321. rightW:
  2322. w.userid == userid || tType == 1 || tType == 4,
  2323. }">
  2324. {{ JSON.parse(w.score).wScore }}分
  2325. </div>
  2326. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2327. :class="{
  2328. rightW:
  2329. w.userid == userid || tType == 1 || tType == 4,
  2330. }">
  2331. 评分
  2332. </div>
  2333. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2334. w.userid == userid || tType == 1 || tType == 4
  2335. " @click.stop="deleteWorks(w.wid)" alt />
  2336. </div>
  2337. <div class="comment" style="min-width: 200px">
  2338. <div class="worksName">
  2339. <div>{{ w.sName }}</div>
  2340. </div>
  2341. <div class="commentList">
  2342. <div class="commentList">
  2343. <div class="commentImg" @click="
  2344. isLikes(w.wid, userid, 1, null, w.isLikes)
  2345. ">
  2346. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2347. </div>
  2348. <div>{{ w.likesCount }}</div>
  2349. </div>
  2350. <div class="commentList" style="margin-right: 15px">
  2351. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2352. <img src="../assets/icon/comment/comment.png" alt="" />
  2353. </div>
  2354. <div>{{ w.commentCount }}</div>
  2355. </div>
  2356. </div>
  2357. </div>
  2358. </div>
  2359. </div>
  2360. <div style="font-size: 18px">未提交</div>
  2361. <div class="noWorksS">
  2362. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(1, toolIndex, taskCount, s)">
  2363. {{ s.student }}
  2364. </div>
  2365. </div>
  2366. </div>
  2367. <div v-if="
  2368. tType &&
  2369. ((tType == 2 && sIsOpen == true) ||
  2370. tType == 1 ||
  2371. tType == 4) &&
  2372. tool.tool.indexOf(3) != -1
  2373. " class="worksBox">
  2374. <div class="zuoyeYulan" v-if="
  2375. worksStudent.length &&
  2376. worksStudent[toolIndex].length > 0
  2377. ">
  2378. <div class="worksTop">
  2379. <div>作业预览</div>
  2380. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2381. worksStudent[toolIndex].length > 6 &&
  2382. isCloseList[toolIndex].isClose == 0
  2383. ">
  2384. 收缩
  2385. </div>
  2386. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2387. 展开
  2388. </div>
  2389. </div>
  2390. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2391. </div>
  2392. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  2393. <div class="group_box">
  2394. <div class="group_title">
  2395. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  2396. <div class="group_name">{{ g.name }}</div>
  2397. </el-tooltip>
  2398. </div>
  2399. <div class="group_work" v-if="
  2400. g.works && g.works.length &&
  2401. g.works[toolIndex].length
  2402. ">
  2403. <div class="works" style="
  2404. width: 200px;
  2405. height: 140px;
  2406. margin: 10px 10px 10px 0;
  2407. border-radius: 15px;
  2408. box-shadow: 0 0 6px 1px #dfdada;
  2409. " v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex"
  2410. :class="w.type == 1 ? 'isTypeOne' : ''">
  2411. <div class="workImg">
  2412. <img :src="w.works" @click="previewImg(w.works)" alt />
  2413. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2414. rightW:
  2415. w.userid == userid || tType == 1 || tType == 4,
  2416. }">
  2417. {{ JSON.parse(w.score).wScore }}分
  2418. </div>
  2419. <div class="answerScore" @click.stop="openScore(w)"
  2420. v-else-if="courseDetail.userid == userid" :class="{
  2421. rightW:
  2422. w.userid == userid || tType == 1 || tType == 4,
  2423. }">
  2424. 评分
  2425. </div>
  2426. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2427. w.userid == userid || tType == 1 || tType == 4
  2428. " @click.stop="deleteWorks(w.wid)" alt />
  2429. </div>
  2430. <div class="comment" style="min-width: 200px">
  2431. <div class="worksName">
  2432. <div>{{ w.sName }}</div>
  2433. </div>
  2434. <div class="commentList">
  2435. <div class="commentList">
  2436. <div class="commentImg" @click="
  2437. isLikes(w.wid, userid, 1, null, w.isLikes)
  2438. ">
  2439. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2440. </div>
  2441. <div>{{ w.likesCount }}</div>
  2442. </div>
  2443. <div class="commentList" style="margin-right: 15px">
  2444. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2445. <img src="../assets/icon/comment/comment.png" alt="" />
  2446. </div>
  2447. <div>{{ w.commentCount }}</div>
  2448. </div>
  2449. </div>
  2450. </div>
  2451. </div>
  2452. </div>
  2453. <div class="group_work" v-else>暂无提交作业</div>
  2454. </div>
  2455. </div>
  2456. <div class="worksDetailBox" v-if="
  2457. worksStudent.length &&
  2458. worksStudent[toolIndex].length > 0
  2459. ">
  2460. <div class="works" style="
  2461. width: 200px;
  2462. height: 140px;
  2463. margin: 10px 10px 10px 0;
  2464. border-radius: 15px;
  2465. box-shadow: 0 0 6px 1px #dfdada;
  2466. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2467. 0
  2468. ? worksStudent[toolIndex]
  2469. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2470. <!-- @click="previewImg(w.works)" -->
  2471. <div class="workImg">
  2472. <img :src="w.works" @click="previewImg(w.works)" alt />
  2473. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2474. rightW:
  2475. w.userid == userid || tType == 1 || tType == 4,
  2476. }">
  2477. {{ JSON.parse(w.score).wScore }}分
  2478. </div>
  2479. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2480. :class="{
  2481. rightW:
  2482. w.userid == userid || tType == 1 || tType == 4,
  2483. }">
  2484. 评分
  2485. </div>
  2486. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2487. w.userid == userid || tType == 1 || tType == 4
  2488. " @click.stop="deleteWorks(w.wid)" alt />
  2489. </div>
  2490. <div class="comment" style="min-width: 200px">
  2491. <div class="worksName">
  2492. <div>{{ w.sName }}</div>
  2493. </div>
  2494. <div class="commentList">
  2495. <div class="commentList">
  2496. <div class="commentImg" @click="
  2497. isLikes(w.wid, userid, 1, null, w.isLikes)
  2498. ">
  2499. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2500. </div>
  2501. <div>{{ w.likesCount }}</div>
  2502. </div>
  2503. <div class="commentList" style="margin-right: 15px">
  2504. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2505. <img src="../assets/icon/comment/comment.png" alt="" />
  2506. </div>
  2507. <div>{{ w.commentCount }}</div>
  2508. </div>
  2509. </div>
  2510. </div>
  2511. </div>
  2512. </div>
  2513. <div style="font-size: 18px">未提交</div>
  2514. <div class="noWorksS">
  2515. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(3, toolIndex, taskCount, s)">
  2516. {{ s.student }}
  2517. </div>
  2518. </div>
  2519. </div>
  2520. <div v-if="
  2521. tType &&
  2522. ((tType == 2 && sIsOpen == true) ||
  2523. tType == 1 ||
  2524. tType == 4) &&
  2525. tool.tool.indexOf(6) != -1
  2526. " class="worksBox">
  2527. <div class="zuoyeYulan" v-if="
  2528. worksStudent.length &&
  2529. worksStudent[toolIndex].length > 0
  2530. ">
  2531. <div class="worksTop">
  2532. <div>作业预览</div>
  2533. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2534. worksStudent[toolIndex].length > 6 &&
  2535. isCloseList[toolIndex].isClose == 0
  2536. ">
  2537. 收缩
  2538. </div>
  2539. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2540. 展开
  2541. </div>
  2542. </div>
  2543. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2544. </div>
  2545. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  2546. <div class="group_box">
  2547. <div class="group_title">
  2548. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  2549. <div class="group_name">{{ g.name }}</div>
  2550. </el-tooltip>
  2551. </div>
  2552. <div class="group_work" v-if="
  2553. g.works && g.works.length &&
  2554. g.works[toolIndex].length
  2555. ">
  2556. <div class="works" style="
  2557. width: 200px;
  2558. height: 140px;
  2559. margin: 10px 10px 10px 0;
  2560. border-radius: 15px;
  2561. box-shadow: 0 0 6px 1px #dfdada;
  2562. " v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex"
  2563. :class="w.type == 1 ? 'isTypeOne' : ''">
  2564. <div class="workImg">
  2565. <img :src="w.works" @click="previewImg(w.works)" alt />
  2566. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2567. rightW:
  2568. w.userid == userid || tType == 1 || tType == 4,
  2569. }">
  2570. {{ JSON.parse(w.score).wScore }}分
  2571. </div>
  2572. <div class="answerScore" @click.stop="openScore(w)"
  2573. v-else-if="courseDetail.userid == userid" :class="{
  2574. rightW:
  2575. w.userid == userid || tType == 1 || tType == 4,
  2576. }">
  2577. 评分
  2578. </div>
  2579. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2580. w.userid == userid || tType == 1 || tType == 4
  2581. " @click.stop="deleteWorks(w.wid)" alt />
  2582. </div>
  2583. <div class="comment" style="min-width: 200px">
  2584. <div class="worksName">
  2585. <div>{{ w.sName }}</div>
  2586. </div>
  2587. <div class="commentList">
  2588. <div class="commentList">
  2589. <div class="commentImg" @click="
  2590. isLikes(w.wid, userid, 1, null, w.isLikes)
  2591. ">
  2592. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2593. </div>
  2594. <div>{{ w.likesCount }}</div>
  2595. </div>
  2596. <div class="commentList" style="margin-right: 15px">
  2597. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2598. <img src="../assets/icon/comment/comment.png" alt="" />
  2599. </div>
  2600. <div>{{ w.commentCount }}</div>
  2601. </div>
  2602. </div>
  2603. </div>
  2604. </div>
  2605. </div>
  2606. <div class="group_work" v-else>暂无提交作业</div>
  2607. </div>
  2608. </div>
  2609. <div class="worksDetailBox" v-if="
  2610. worksStudent.length &&
  2611. worksStudent[toolIndex].length > 0
  2612. ">
  2613. <div class="works" style="
  2614. width: 200px;
  2615. height: 140px;
  2616. margin: 10px 10px 10px 0;
  2617. border-radius: 15px;
  2618. box-shadow: 0 0 6px 1px #dfdada;
  2619. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2620. 0
  2621. ? worksStudent[toolIndex]
  2622. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2623. <!-- @click="previewImg(w.works)" -->
  2624. <div class="workImg">
  2625. <img :src="w.works" @click="previewImg(w.works)" alt />
  2626. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2627. rightW:
  2628. w.userid == userid || tType == 1 || tType == 4,
  2629. }">
  2630. {{ JSON.parse(w.score).wScore }}分
  2631. </div>
  2632. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2633. :class="{
  2634. rightW:
  2635. w.userid == userid || tType == 1 || tType == 4,
  2636. }">
  2637. 评分
  2638. </div>
  2639. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2640. w.userid == userid || tType == 1 || tType == 4
  2641. " @click.stop="deleteWorks(w.wid)" alt />
  2642. </div>
  2643. <div class="comment" style="min-width: 200px">
  2644. <div class="worksName">
  2645. <div>{{ w.sName }}</div>
  2646. </div>
  2647. <div class="commentList">
  2648. <div class="commentList">
  2649. <div class="commentImg" @click="
  2650. isLikes(w.wid, userid, 1, null, w.isLikes)
  2651. ">
  2652. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2653. </div>
  2654. <div>{{ w.likesCount }}</div>
  2655. </div>
  2656. <div class="commentList" style="margin-right: 15px">
  2657. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2658. <img src="../assets/icon/comment/comment.png" alt="" />
  2659. </div>
  2660. <div>{{ w.commentCount }}</div>
  2661. </div>
  2662. </div>
  2663. </div>
  2664. </div>
  2665. </div>
  2666. <div style="font-size: 18px">未提交</div>
  2667. <div class="noWorksS">
  2668. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2669. {{ s.student }}
  2670. </div>
  2671. </div>
  2672. </div>
  2673. <div v-if="
  2674. tType &&
  2675. ((tType == 2 && sIsOpen == true) ||
  2676. tType == 1 ||
  2677. tType == 4) &&
  2678. tool.tool.indexOf(7) != -1
  2679. " class="worksBox">
  2680. <div class="zuoyeYulan" v-if="
  2681. worksStudent.length &&
  2682. worksStudent[toolIndex].length > 0
  2683. ">
  2684. <div class="worksTop">
  2685. <div>作业预览</div>
  2686. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2687. worksStudent[toolIndex].length > 6 &&
  2688. isCloseList[toolIndex].isClose == 0
  2689. ">
  2690. 收缩
  2691. </div>
  2692. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2693. 展开
  2694. </div>
  2695. </div>
  2696. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2697. </div>
  2698. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  2699. <div class="group_box">
  2700. <div class="group_title">
  2701. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  2702. <div class="group_name">{{ g.name }}</div>
  2703. </el-tooltip>
  2704. </div>
  2705. <div class="group_work" v-if="
  2706. g.works && g.works.length &&
  2707. g.works[toolIndex].length
  2708. ">
  2709. <div class="works" style="
  2710. width: 200px;
  2711. height: 140px;
  2712. margin: 10px 10px 10px 0;
  2713. border-radius: 15px;
  2714. box-shadow: 0 0 6px 1px #dfdada;
  2715. " v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex"
  2716. :class="w.type == 1 ? 'isTypeOne' : ''">
  2717. <div class="workImg">
  2718. <img :src="w.works" @click="previewImg(w.works)" alt />
  2719. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2720. rightW:
  2721. w.userid == userid || tType == 1 || tType == 4,
  2722. }">
  2723. {{ JSON.parse(w.score).wScore }}分
  2724. </div>
  2725. <div class="answerScore" @click.stop="openScore(w)"
  2726. v-else-if="courseDetail.userid == userid" :class="{
  2727. rightW:
  2728. w.userid == userid || tType == 1 || tType == 4,
  2729. }">
  2730. 评分
  2731. </div>
  2732. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2733. w.userid == userid || tType == 1 || tType == 4
  2734. " @click.stop="deleteWorks(w.wid)" alt />
  2735. </div>
  2736. <div class="comment" style="min-width: 200px">
  2737. <div class="worksName">
  2738. <div>{{ w.sName }}</div>
  2739. </div>
  2740. <div class="commentList">
  2741. <div class="commentList">
  2742. <div class="commentImg" @click="
  2743. isLikes(w.wid, userid, 1, null, w.isLikes)
  2744. ">
  2745. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2746. </div>
  2747. <div>{{ w.likesCount }}</div>
  2748. </div>
  2749. <div class="commentList" style="margin-right: 15px">
  2750. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2751. <img src="../assets/icon/comment/comment.png" alt="" />
  2752. </div>
  2753. <div>{{ w.commentCount }}</div>
  2754. </div>
  2755. </div>
  2756. </div>
  2757. </div>
  2758. </div>
  2759. <div class="group_work" v-else>暂无提交作业</div>
  2760. </div>
  2761. </div>
  2762. <div class="worksDetailBox" v-if="
  2763. worksStudent.length &&
  2764. worksStudent[toolIndex].length > 0
  2765. ">
  2766. <div class="works" style="
  2767. width: 200px;
  2768. height: 140px;
  2769. margin: 10px 10px 10px 0;
  2770. border-radius: 15px;
  2771. box-shadow: 0 0 6px 1px #dfdada;
  2772. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2773. 0
  2774. ? worksStudent[toolIndex]
  2775. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2776. <!-- @click="previewImg(w.works)" -->
  2777. <div class="workImg">
  2778. <img :src="w.works" @click="previewImg(w.works)" alt />
  2779. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2780. rightW:
  2781. w.userid == userid || tType == 1 || tType == 4,
  2782. }">
  2783. {{ JSON.parse(w.score).wScore }}分
  2784. </div>
  2785. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2786. :class="{
  2787. rightW:
  2788. w.userid == userid || tType == 1 || tType == 4,
  2789. }">
  2790. 评分
  2791. </div>
  2792. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2793. w.userid == userid || tType == 1 || tType == 4
  2794. " @click.stop="deleteWorks(w.wid)" alt />
  2795. </div>
  2796. <div class="comment" style="min-width: 200px">
  2797. <div class="worksName">
  2798. <div>{{ w.sName }}</div>
  2799. </div>
  2800. <div class="commentList">
  2801. <div class="commentList">
  2802. <div class="commentImg" @click="
  2803. isLikes(w.wid, userid, 1, null, w.isLikes)
  2804. ">
  2805. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2806. </div>
  2807. <div>{{ w.likesCount }}</div>
  2808. </div>
  2809. <div class="commentList" style="margin-right: 15px">
  2810. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2811. <img src="../assets/icon/comment/comment.png" alt="" />
  2812. </div>
  2813. <div>{{ w.commentCount }}</div>
  2814. </div>
  2815. </div>
  2816. </div>
  2817. </div>
  2818. </div>
  2819. <div style="font-size: 18px">未提交</div>
  2820. <div class="noWorksS">
  2821. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(7, toolIndex, taskCount, s)">
  2822. {{ s.student }}
  2823. </div>
  2824. </div>
  2825. </div>
  2826. <div v-if="
  2827. tType &&
  2828. ((tType == 2 && sIsOpen == true) ||
  2829. tType == 1 ||
  2830. tType == 4) &&
  2831. tool.tool.indexOf(26) != -1
  2832. " class="worksBox">
  2833. <div class="zuoyeYulan" v-if="
  2834. worksStudent.length &&
  2835. worksStudent[toolIndex].length > 0
  2836. ">
  2837. <div class="worksTop">
  2838. <div>作业预览</div>
  2839. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2840. worksStudent[toolIndex].length > 6 &&
  2841. isCloseList[toolIndex].isClose == 0
  2842. ">
  2843. 收缩
  2844. </div>
  2845. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2846. 展开
  2847. </div>
  2848. </div>
  2849. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2850. </div>
  2851. <div class="worksDetailBox" v-if="
  2852. worksStudent.length &&
  2853. worksStudent[toolIndex].length > 0
  2854. ">
  2855. <div class="works" style="width: 240px; height: 140px; overflow: hidden" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2856. 0
  2857. ? worksStudent[toolIndex]
  2858. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  2859. <div class="workImg" v-if="w.type == 0">
  2860. <img :src="w.works" @click="previewImg(w.works)" alt />
  2861. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2862. w.userid == userid || tType == 1 || tType == 4
  2863. " @click.stop="deleteWorks(w.wid)" alt />
  2864. </div>
  2865. <div class="workImg" v-if="w.type == 1">
  2866. <img :src="word" @click="openFile(w.works)" alt />
  2867. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2868. w.userid == userid || tType == 1 || tType == 4
  2869. " @click.stop="deleteWorks(w.wid)" alt />
  2870. </div>
  2871. <div class="worksName">
  2872. <div>{{ w.sName }}</div>
  2873. </div>
  2874. </div>
  2875. </div>
  2876. <div style="font-size: 18px">未提交</div>
  2877. <div class="noWorksS">
  2878. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2879. {{ s.student }}
  2880. </div>
  2881. </div>
  2882. </div>
  2883. <div v-if="
  2884. tType &&
  2885. ((tType == 2 && sIsOpen == true) ||
  2886. tType == 1 ||
  2887. tType == 4) &&
  2888. tool.tool.indexOf(40) != -1
  2889. " class="worksBox">
  2890. <div class="zuoyeYulan" v-if="
  2891. worksStudent.length &&
  2892. worksStudent[toolIndex].length > 0
  2893. ">
  2894. <div class="worksTop">
  2895. <div>作业预览</div>
  2896. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2897. worksStudent[toolIndex].length > 6 &&
  2898. isCloseList[toolIndex].isClose == 0
  2899. ">
  2900. 收缩
  2901. </div>
  2902. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2903. 展开
  2904. </div>
  2905. </div>
  2906. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2907. </div>
  2908. <div class="worksDetailBox" v-if="
  2909. worksStudent.length &&
  2910. worksStudent[toolIndex].length > 0
  2911. ">
  2912. <div class="works" style="
  2913. width: 200px;
  2914. height: 140px;
  2915. margin: 10px 10px 10px 0;
  2916. border-radius: 15px;
  2917. box-shadow: 0 0 6px 1px #dfdada;
  2918. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2919. 0
  2920. ? worksStudent[toolIndex]
  2921. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  2922. :class="w.type == 1 ? 'isTypeOne' : ''">
  2923. <div class="workImg">
  2924. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  2925. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2926. w.userid == userid || tType == 1 || tType == 4
  2927. " @click.stop="deleteWorks(w.wid)" alt />
  2928. </div>
  2929. <div class="comment" style="min-width: 200px">
  2930. <div class="worksName">
  2931. <div>{{ w.sName }}</div>
  2932. </div>
  2933. <div class="commentList">
  2934. <div class="commentList">
  2935. <div class="commentImg" @click="
  2936. isLikes(w.wid, userid, 1, null, w.isLikes)
  2937. ">
  2938. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2939. </div>
  2940. <div>{{ w.likesCount }}</div>
  2941. </div>
  2942. <div class="commentList" style="margin-right: 15px">
  2943. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2944. <img src="../assets/icon/comment/comment.png" alt="" />
  2945. </div>
  2946. <div>{{ w.commentCount }}</div>
  2947. </div>
  2948. </div>
  2949. </div>
  2950. </div>
  2951. </div>
  2952. <div style="font-size: 18px">未提交</div>
  2953. <div class="noWorksS">
  2954. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(40, toolIndex, taskCount, s)">
  2955. {{ s.student }}
  2956. </div>
  2957. </div>
  2958. </div>
  2959. <div v-if="
  2960. tType &&
  2961. tType == 2 &&
  2962. !sIsOpen &&
  2963. tool.tool.indexOf(40) != -1
  2964. " class="worksBox">
  2965. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  2966. <span>作业预览</span>
  2967. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2968. </div>
  2969. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  2970. <div class="works" style="
  2971. width: 200px;
  2972. height: 140px;
  2973. margin: 10px 10px 10px 0;
  2974. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  2975. <div class="workImg">
  2976. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  2977. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2978. w.userid == userid || tType == 1 || tType == 4
  2979. " @click.stop="deleteWorks(w.wid)" alt />
  2980. </div>
  2981. <div class="worksName">
  2982. <div>{{ w.sName }}</div>
  2983. </div>
  2984. </div>
  2985. </div>
  2986. </div>
  2987. <div v-if="
  2988. tType &&
  2989. ((tType == 2 && sIsOpen == true) ||
  2990. tType == 1 ||
  2991. tType == 4) &&
  2992. tool.tool.indexOf(41) != -1
  2993. ">
  2994. <AnswerData2 v-if="
  2995. worksStudent.length &&
  2996. worksStudent[toolIndex].length > 0
  2997. " :problemJson="tool.selectJson.answer" :people="worksStudent[toolIndex]"></AnswerData2>
  2998. </div>
  2999. <div v-if="
  3000. tType &&
  3001. ((tType == 2 && sIsOpen == true) ||
  3002. tType == 1 ||
  3003. tType == 4) &&
  3004. tool.tool.indexOf(41) != -1
  3005. " class="worksBox">
  3006. <div class="zuoyeYulan" v-if="
  3007. worksStudent.length &&
  3008. worksStudent[toolIndex].length > 0
  3009. ">
  3010. <div class="worksTop">
  3011. <div>作业预览</div>
  3012. <div class="corOpen" @click="contract(toolIndex)" v-if="
  3013. worksStudent[toolIndex].length > 6 &&
  3014. isCloseList[toolIndex].isClose == 0
  3015. ">
  3016. 收缩
  3017. </div>
  3018. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3019. 展开
  3020. </div>
  3021. </div>
  3022. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3023. </div>
  3024. <div class="worksDetailBox" v-if="
  3025. worksStudent.length &&
  3026. worksStudent[toolIndex].length > 0
  3027. ">
  3028. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3029. 0
  3030. ? worksStudent[toolIndex]
  3031. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  3032. @click="openXz(w, toolIndex)">
  3033. {{ w.sName }}
  3034. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  3035. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  3036. </div>
  3037. <!-- <div
  3038. class="works"
  3039. style="
  3040. width: 200px;
  3041. height: 140px;
  3042. margin: 10px 10px 10px 0;
  3043. border-radius: 15px;
  3044. box-shadow: 0 0 6px 1px #dfdada;
  3045. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  3046. :class="w.type == 5 ? 'isTypeOne' : ''">
  3047. <div class="workImg">
  3048. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  3049. </div>
  3050. <div class="worksName">
  3051. <div>{{ w.sName }}</div>
  3052. </div>
  3053. </div> -->
  3054. </div>
  3055. <div style="font-size: 18px">未提交</div>
  3056. <div class="noWorksS">
  3057. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(41, toolIndex, taskCount, s)">
  3058. {{ s.student }}
  3059. </div>
  3060. </div>
  3061. </div>
  3062. <div v-if="
  3063. tType &&
  3064. tType == 2 &&
  3065. !sIsOpen &&
  3066. tool.tool.indexOf(41) != -1
  3067. " class="worksBox">
  3068. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  3069. <span>作业预览</span>
  3070. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3071. </div>
  3072. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  3073. <div class="works" style="
  3074. width: 200px;
  3075. height: 140px;
  3076. margin: 10px 10px 10px 0;
  3077. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  3078. <div class="workImg">
  3079. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  3080. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3081. w.userid == userid || tType == 1 || tType == 4
  3082. " @click.stop="deleteWorks(w.wid)" alt />
  3083. </div>
  3084. <div class="worksName">
  3085. <div>{{ w.sName }}</div>
  3086. </div>
  3087. </div>
  3088. </div>
  3089. </div>
  3090. <div v-if="false" class="xuan_right_box">
  3091. <div class="tool_right_box" v-for="(item, index) in tool.sentenceList" :key="index">
  3092. <div>
  3093. <span>{{ index + 1 + "、" + item.sentenceTitle }}</span>
  3094. </div>
  3095. <div class="right_box_xuan">
  3096. <span>正确率</span>
  3097. <span>{{
  3098. (checkJson[toolIndex][index].right
  3099. ? checkJson[toolIndex][index].right
  3100. : 0) + "%"
  3101. }}</span>
  3102. </div>
  3103. <div class="right_box_xuan">
  3104. <span>答对人数</span>
  3105. <span>{{
  3106. checkJson[toolIndex][index].rightPerson.length
  3107. }}</span>
  3108. </div>
  3109. </div>
  3110. </div>
  3111. <div v-if="
  3112. tType &&
  3113. ((tType == 2 && sIsOpen == true) ||
  3114. tType == 1 ||
  3115. tType == 4) &&
  3116. tool.tool.indexOf(47) != -1
  3117. ">
  3118. <AnswerData v-if="
  3119. checkJson[toolIndex].length &&
  3120. (tool.sentenceList || tool.sentenceList.length > 0)
  3121. " :people="checkJson[toolIndex]"></AnswerData>
  3122. </div>
  3123. <div v-if="
  3124. tType &&
  3125. tType == 2 &&
  3126. !sIsOpen &&
  3127. tool.tool.indexOf(47) != -1
  3128. " class="worksBox">
  3129. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  3130. <span>作业预览</span>
  3131. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3132. </div>
  3133. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  3134. <div class="works" style="
  3135. width: 200px;
  3136. height: 140px;
  3137. margin: 10px 10px 10px 0;
  3138. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  3139. <!-- @click="openXz(w, toolIndex)" -->
  3140. <div class="workImg" @click="openSen(w, toolIndex)">
  3141. <img src="../assets/icon/works/noImg.png" alt />
  3142. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3143. w.userid == userid || tType == 1 || tType == 4
  3144. " @click.stop="deleteWorks(w.wid)" alt />
  3145. </div>
  3146. <div class="worksName">
  3147. <div>
  3148. {{ w.sName }}
  3149. </div>
  3150. </div>
  3151. </div>
  3152. </div>
  3153. </div>
  3154. <div v-if="
  3155. tType &&
  3156. ((tType == 2 && sIsOpen == true) ||
  3157. tType == 1 ||
  3158. tType == 4) &&
  3159. tool.tool.indexOf(47) != -1
  3160. " class="worksBox">
  3161. <div class="zuoyeYulan" v-if="
  3162. worksStudent.length &&
  3163. worksStudent[toolIndex].length > 0
  3164. ">
  3165. <div class="worksTop">
  3166. <div>作业预览</div>
  3167. <div class="corOpen" @click="contract(toolIndex)" v-if="
  3168. worksStudent[toolIndex].length > 6 &&
  3169. isCloseList[toolIndex].isClose == 0
  3170. ">
  3171. 收缩
  3172. </div>
  3173. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3174. 展开
  3175. </div>
  3176. </div>
  3177. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3178. </div>
  3179. <div class="worksDetailBox" v-if="
  3180. worksStudent.length &&
  3181. worksStudent[toolIndex].length > 0
  3182. ">
  3183. <!-- @click="openXz(w, toolIndex)" -->
  3184. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3185. 0
  3186. ? worksStudent[toolIndex]
  3187. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  3188. @click="openSen(w, toolIndex)">
  3189. {{ w.sName }}
  3190. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  3191. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  3192. </div>
  3193. </div>
  3194. <div style="font-size: 18px">未提交</div>
  3195. <div class="noWorksS">
  3196. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(47, toolIndex, taskCount, s)">
  3197. {{ s.student }}
  3198. </div>
  3199. </div>
  3200. </div>
  3201. <div v-if="
  3202. tType &&
  3203. ((tType == 2 && sIsOpen == true) ||
  3204. tType == 1 ||
  3205. tType == 4) &&
  3206. tool.tool.indexOf(48) != -1
  3207. " class="worksBox">
  3208. <div class="zuoyeYulan" v-if="
  3209. worksStudent.length &&
  3210. worksStudent[toolIndex].length > 0
  3211. ">
  3212. <div class="worksTop">
  3213. <div>作业预览</div>
  3214. <div class="corOpen" @click="contract(toolIndex)" v-if="
  3215. worksStudent[toolIndex].length > 6 &&
  3216. isCloseList[toolIndex].isClose == 0
  3217. ">
  3218. 收缩
  3219. </div>
  3220. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3221. 展开
  3222. </div>
  3223. </div>
  3224. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3225. </div>
  3226. <div class="worksDetailBox" v-if="
  3227. worksStudent.length &&
  3228. worksStudent[toolIndex].length > 0
  3229. ">
  3230. <div class="works" style="
  3231. width: 200px;
  3232. height: 140px;
  3233. margin: 10px 10px 10px 0;
  3234. border-radius: 15px;
  3235. box-shadow: 0 0 6px 1px #dfdada;
  3236. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3237. 0
  3238. ? worksStudent[toolIndex]
  3239. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  3240. :class="w.type == 1 ? 'isTypeOne' : ''">
  3241. <div class="workImg">
  3242. <img :src="word" @click="openTable(w)" alt />
  3243. <!-- @click="openFile(w.works)" -->
  3244. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3245. rightW:
  3246. w.userid == userid ||
  3247. tType == 1 ||
  3248. tType == 4 ||
  3249. w.ateacher == userid,
  3250. }">
  3251. {{ JSON.parse(w.score).wScore }}分
  3252. </div>
  3253. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3254. :class="{
  3255. rightW:
  3256. w.userid == userid ||
  3257. tType == 1 ||
  3258. tType == 4 ||
  3259. w.ateacher == userid,
  3260. }">
  3261. 评分
  3262. </div>
  3263. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3264. w.userid == userid || tType == 1 || tType == 4
  3265. " @click.stop="deleteWorks(w.wid)" alt />
  3266. </div>
  3267. <div class="comment" style="min-width: 200px">
  3268. <div class="worksName">
  3269. <div>{{ w.sName }}</div>
  3270. </div>
  3271. <div class="commentList">
  3272. <div class="commentList">
  3273. <div class="commentImg" @click="
  3274. isLikes(w.wid, userid, 1, null, w.isLikes)
  3275. ">
  3276. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3277. </div>
  3278. <div>{{ w.likesCount }}</div>
  3279. </div>
  3280. <div class="commentList" style="margin-right: 15px">
  3281. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3282. <img src="../assets/icon/comment/comment.png" alt="" />
  3283. </div>
  3284. <div>{{ w.commentCount }}</div>
  3285. </div>
  3286. </div>
  3287. </div>
  3288. </div>
  3289. </div>
  3290. <div style="font-size: 18px">未提交</div>
  3291. <div class="noWorksS">
  3292. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(48, toolIndex, taskCount, s)">
  3293. {{ s.student }}
  3294. </div>
  3295. </div>
  3296. </div>
  3297. <div v-if="
  3298. tType &&
  3299. tType == 2 &&
  3300. !sIsOpen &&
  3301. tool.tool.indexOf(48) != -1
  3302. " class="worksBox">
  3303. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  3304. <span>作业预览</span>
  3305. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3306. </div>
  3307. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  3308. <div class="works" style="
  3309. width: 200px;
  3310. height: 140px;
  3311. margin: 10px 10px 10px 0;
  3312. box-shadow: 0 0 6px 1px #dfdada;
  3313. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  3314. <div class="workImg">
  3315. <img :src="word" @click="openTable(w)" alt />
  3316. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3317. rightW:
  3318. w.userid == userid || tType == 1 || tType == 4,
  3319. }">
  3320. {{ JSON.parse(w.score).wScore }}分
  3321. </div>
  3322. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3323. :class="{
  3324. rightW:
  3325. w.userid == userid || tType == 1 || tType == 4,
  3326. }">
  3327. 评分
  3328. </div>
  3329. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3330. w.userid == userid || tType == 1 || tType == 4
  3331. " @click.stop="deleteWorks(w.wid)" alt />
  3332. </div>
  3333. <div class="worksName">
  3334. <div>{{ w.sName }}</div>
  3335. </div>
  3336. </div>
  3337. </div>
  3338. </div>
  3339. <div v-if="
  3340. tType &&
  3341. ((tType == 2 && sIsOpen == true) ||
  3342. tType == 1 ||
  3343. tType == 4) &&
  3344. tool.tool.indexOf(52) != -1
  3345. " class="worksBox">
  3346. <div class="zuoyeYulan" v-if="
  3347. worksStudent.length &&
  3348. worksStudent[toolIndex].length > 0
  3349. ">
  3350. <div class="worksTop">
  3351. <div>作业预览</div>
  3352. <div class="corOpen" @click="contract(toolIndex)" v-if="
  3353. worksStudent[toolIndex].length > 6 &&
  3354. isCloseList[toolIndex].isClose == 0
  3355. ">
  3356. 收缩
  3357. </div>
  3358. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3359. 展开
  3360. </div>
  3361. </div>
  3362. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3363. </div>
  3364. <div class="worksDetailBox" v-if="
  3365. worksStudent.length &&
  3366. worksStudent[toolIndex].length > 0
  3367. ">
  3368. <div class="works" style="
  3369. width: 200px;
  3370. height: 140px;
  3371. margin: 10px 10px 10px 0;
  3372. border-radius: 15px;
  3373. box-shadow: 0 0 6px 1px #dfdada;
  3374. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3375. 0
  3376. ? worksStudent[toolIndex]
  3377. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  3378. :class="w.type == 1 ? 'isTypeOne' : ''">
  3379. <div class="workImg">
  3380. <img :src="word" @click="openTable(w)" alt />
  3381. <!-- @click="openFile(w.works)" -->
  3382. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3383. rightW:
  3384. w.userid == userid ||
  3385. tType == 1 ||
  3386. tType == 4 ||
  3387. w.ateacher == userid,
  3388. }">
  3389. {{ JSON.parse(w.score).wScore }}分
  3390. </div>
  3391. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3392. :class="{
  3393. rightW:
  3394. w.userid == userid ||
  3395. tType == 1 ||
  3396. tType == 4 ||
  3397. w.ateacher == userid,
  3398. }">
  3399. 评分
  3400. </div>
  3401. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3402. w.userid == userid || tType == 1 || tType == 4
  3403. " @click.stop="deleteWorks(w.wid)" alt />
  3404. </div>
  3405. <div class="comment" style="min-width: 200px">
  3406. <div class="worksName">
  3407. <div>{{ w.sName }}</div>
  3408. </div>
  3409. <div class="commentList">
  3410. <div class="commentList">
  3411. <div class="commentImg" @click="
  3412. isLikes(w.wid, userid, 1, null, w.isLikes)
  3413. ">
  3414. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3415. </div>
  3416. <div>{{ w.likesCount }}</div>
  3417. </div>
  3418. <div class="commentList" style="margin-right: 15px">
  3419. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3420. <img src="../assets/icon/comment/comment.png" alt="" />
  3421. </div>
  3422. <div>{{ w.commentCount }}</div>
  3423. </div>
  3424. </div>
  3425. </div>
  3426. </div>
  3427. </div>
  3428. <div style="font-size: 18px">未提交</div>
  3429. <div class="noWorksS">
  3430. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(52, toolIndex, taskCount, s)">
  3431. {{ s.student }}
  3432. </div>
  3433. </div>
  3434. </div>
  3435. <div v-if="
  3436. tType &&
  3437. tType == 2 &&
  3438. !sIsOpen &&
  3439. tool.tool.indexOf(52) != -1
  3440. " class="worksBox">
  3441. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  3442. <span>作业预览</span>
  3443. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3444. </div>
  3445. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  3446. <div class="works" style="
  3447. width: 200px;
  3448. height: 140px;
  3449. margin: 10px 10px 10px 0;
  3450. box-shadow: 0 0 6px 1px #dfdada;
  3451. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  3452. <div class="workImg">
  3453. <img :src="word" @click="openTable(w)" alt />
  3454. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3455. rightW:
  3456. w.userid == userid || tType == 1 || tType == 4,
  3457. }">
  3458. {{ JSON.parse(w.score).wScore }}分
  3459. </div>
  3460. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3461. :class="{
  3462. rightW:
  3463. w.userid == userid || tType == 1 || tType == 4,
  3464. }">
  3465. 评分
  3466. </div>
  3467. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3468. w.userid == userid || tType == 1 || tType == 4
  3469. " @click.stop="deleteWorks(w.wid)" alt />
  3470. </div>
  3471. <div class="worksName">
  3472. <div>{{ w.sName }}</div>
  3473. </div>
  3474. </div>
  3475. </div>
  3476. </div>
  3477. <div v-if="tool.tool.indexOf(49) != -1" class="xuan_right_box">
  3478. <div v-if="courseDetail.userid == userid" style="display: flex; justify-content: flex-end">
  3479. <el-button type="primary" size="small" @click="addTools(49, toolIndex, taskCount)">分组设置</el-button>
  3480. </div>
  3481. <div v-if="groupStudentUid[toolIndex]" class="group_staic_box">
  3482. <div v-for="(gp, gd) in tool.groupJson.group" :key="gd" class="group_staic">
  3483. <span> {{ gp.name }}</span>
  3484. <span>
  3485. 目前人数{{
  3486. groupStudentUid[toolIndex][gd].length
  3487. }}人</span>
  3488. </div>
  3489. </div>
  3490. </div>
  3491. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  3492. <div class="zuoyeYulan" v-if="
  3493. worksStudent.length &&
  3494. worksStudent[toolIndex].length > 0
  3495. ">
  3496. <span>作业预览</span>
  3497. </div>
  3498. <div>
  3499. <div class="group_workBox" v-for="(g, gindex) in tool.groupJson.group" :key="gindex">
  3500. <div class="group_box" v-if="
  3501. groupStudentUid[toolIndex] &&
  3502. worksStudent[toolIndex] &&
  3503. (worksStudent[toolIndex][gindex].length ||
  3504. groupStudentUid[toolIndex][gindex].indexOf(
  3505. userid
  3506. ) != -1)
  3507. ">
  3508. <div class="group_title">
  3509. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  3510. <div class="group_name">{{ g.name }}</div>
  3511. </el-tooltip>
  3512. <el-button type="primary" v-if="
  3513. groupStudentUid[toolIndex][gindex].indexOf(
  3514. userid
  3515. ) != -1
  3516. " @click="groupUpload(toolIndex, taskCount, gindex)">上传作业</el-button>
  3517. </div>
  3518. <div class="group_work">
  3519. <div class="works" style="
  3520. width: 200px;
  3521. height: 140px;
  3522. margin: 10px 10px 10px 0;
  3523. border-radius: 15px;
  3524. box-shadow: 0 0 6px 1px #dfdada;
  3525. " v-for="(w, wIndex) in worksStudent[toolIndex][
  3526. gindex
  3527. ]" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  3528. <div class="workImg" v-if="w.type == 0">
  3529. <img :src="w.works" @click="previewImg(w.works)" alt />
  3530. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3531. rightW:
  3532. w.userid == userid ||
  3533. tType == 1 ||
  3534. tType == 4 ||
  3535. w.ateacher == userid,
  3536. }">
  3537. {{ JSON.parse(w.score).wScore }}分
  3538. </div>
  3539. <div class="answerScore" @click.stop="openScore(w)"
  3540. v-else-if="courseDetail.userid == userid" :class="{
  3541. rightW:
  3542. w.userid == userid ||
  3543. tType == 1 ||
  3544. tType == 4 ||
  3545. w.ateacher == userid,
  3546. }">
  3547. 评分
  3548. </div>
  3549. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3550. w.userid == userid ||
  3551. tType == 1 ||
  3552. tType == 4
  3553. " @click.stop="deleteWorks(w.wid)" alt />
  3554. </div>
  3555. <div class="workImg" v-if="w.type == 1">
  3556. <img :src="word" @click="openFile(w.works)" alt />
  3557. <!-- @click="openFile(w.works)" -->
  3558. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3559. rightW:
  3560. w.userid == userid ||
  3561. tType == 1 ||
  3562. tType == 4 ||
  3563. w.ateacher == userid,
  3564. }">
  3565. {{ JSON.parse(w.score).wScore }}分
  3566. </div>
  3567. <div class="answerScore" @click.stop="openScore(w)"
  3568. v-else-if="courseDetail.userid == userid" :class="{
  3569. rightW:
  3570. w.userid == userid ||
  3571. tType == 1 ||
  3572. tType == 4 ||
  3573. w.ateacher == userid,
  3574. }">
  3575. 评分
  3576. </div>
  3577. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3578. w.userid == userid ||
  3579. tType == 1 ||
  3580. tType == 4
  3581. " @click.stop="deleteWorks(w.wid)" alt />
  3582. </div>
  3583. <div class="workImg" v-if="w.type == 3">
  3584. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  3585. <!-- @click="openVideo(w.works)" -->
  3586. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3587. rightW:
  3588. w.userid == userid ||
  3589. tType == 1 ||
  3590. tType == 4 ||
  3591. w.ateacher == userid,
  3592. }">
  3593. {{ JSON.parse(w.score).wScore }}分
  3594. </div>
  3595. <div class="answerScore" @click.stop="openScore(w)"
  3596. v-else-if="courseDetail.userid == userid" :class="{
  3597. rightW:
  3598. w.userid == userid ||
  3599. tType == 1 ||
  3600. tType == 4 ||
  3601. w.ateacher == userid,
  3602. }">
  3603. 评分
  3604. </div>
  3605. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3606. w.userid == userid ||
  3607. tType == 1 ||
  3608. tType == 4
  3609. " @click.stop="deleteWorks(w.wid)" alt />
  3610. </div>
  3611. <div class="workImg" v-if="w.type == 12">
  3612. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  3613. <!-- @click="openVideo(w.works)" -->
  3614. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3615. rightW:
  3616. w.userid == userid ||
  3617. tType == 1 ||
  3618. tType == 4 ||
  3619. w.ateacher == userid,
  3620. }">
  3621. {{ JSON.parse(w.score).wScore }}分
  3622. </div>
  3623. <div class="answerScore" @click.stop="openScore(w)"
  3624. v-else-if="courseDetail.userid == userid" :class="{
  3625. rightW:
  3626. w.userid == userid ||
  3627. tType == 1 ||
  3628. tType == 4 ||
  3629. w.ateacher == userid,
  3630. }">
  3631. 评分
  3632. </div>
  3633. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3634. w.userid == userid ||
  3635. tType == 1 ||
  3636. tType == 4
  3637. " @click.stop="deleteWorks(w.wid)" alt />
  3638. </div>
  3639. <div class="comment" style="min-width: 200px">
  3640. <div class="worksName">
  3641. <div>{{ w.sName }}</div>
  3642. </div>
  3643. <div class="commentList">
  3644. <div class="commentList">
  3645. <div class="commentImg" @click="
  3646. isLikes(
  3647. w.wid,
  3648. userid,
  3649. 1,
  3650. null,
  3651. w.isLikes
  3652. )
  3653. ">
  3654. <img :src="
  3655. w.isLikes == true ? likes : noLikes
  3656. " alt="" />
  3657. </div>
  3658. <div>{{ w.likesCount }}</div>
  3659. </div>
  3660. <div class="commentList" style="margin-right: 15px">
  3661. <div class="commentImg" @click="
  3662. commentOther(
  3663. w,
  3664. toolIndex,
  3665. wIndex,
  3666. gindex
  3667. )
  3668. ">
  3669. <img src="../assets/icon/comment/comment.png" alt="" />
  3670. </div>
  3671. <div>{{ w.commentCount }}</div>
  3672. </div>
  3673. </div>
  3674. </div>
  3675. </div>
  3676. </div>
  3677. </div>
  3678. </div>
  3679. </div>
  3680. </div>
  3681. </div>
  3682. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  3683. 上传文件
  3684. <input
  3685. type="file"
  3686. accept="image/png, image/gif, image/jpeg"
  3687. style="display: none"
  3688. @change="beforeUpload1($event, 2, index)"
  3689. />
  3690. </div>-->
  3691. </div>
  3692. </div>
  3693. <div class="vedioBox" v-if="
  3694. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  3695. .eList &&
  3696. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  3697. .eList.length &&
  3698. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  3699. .eList.length > 0 &&
  3700. tType != 2
  3701. ">
  3702. <div class="queTop" style="
  3703. font-size: 25px;
  3704. padding: 15px 0 15px 30px;
  3705. font-weight: bold;
  3706. ">
  3707. <!-- <div class="question" style="width: 30px">
  3708. <img src="../assets/icon/toolIcon.png" alt />
  3709. </div>
  3710. <div class="queTitle">
  3711. <div>工具</div>
  3712. </div>-->
  3713. 评一评
  3714. </div>
  3715. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  3716. <div class="elist_input">
  3717. <div v-for="(eItem, eIndex) in chapInfoList[courseType]
  3718. .chapterInfo[0].taskJson[taskCount].eList" :key="eIndex" class="elist_input_box">
  3719. <div style="width: 95%">
  3720. <div style="
  3721. display: flex;
  3722. flex-direction: row;
  3723. flex-wrap: nowrap;
  3724. align-items: center;
  3725. ">
  3726. <div style="max-width: calc(100% - 285px)">
  3727. <span>{{ eItem.value }}</span>
  3728. </div>
  3729. <div style="
  3730. padding-left: 25px;
  3731. display: flex;
  3732. flex-direction: row;
  3733. align-items: center;
  3734. ">
  3735. <el-rate v-model="eItem.score" :colors="colors" disabled></el-rate>
  3736. </div>
  3737. </div>
  3738. <div class="elist_inptu_text" style="padding-left: 10px">
  3739. <span v-if="eItem.detail != ''">{{
  3740. eItem.detail
  3741. }}</span>
  3742. <span v-else style="color: #b2b1b3; font-size: 14px">暂无描述...</span>
  3743. </div>
  3744. </div>
  3745. </div>
  3746. </div>
  3747. <div v-if="evalua" style="
  3748. border: 1px solid #e5e5e5;
  3749. max-width: 650px;
  3750. width: 100%;
  3751. margin-top: 20px;
  3752. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3753. ">
  3754. <div class="e_add_top">
  3755. <div class="e_add_title">
  3756. <span>目标管理名称</span>
  3757. <span>{{ eTitle }}</span>
  3758. <img src="../assets/line.png" class="cru_line" style="
  3759. width: 125px;
  3760. height: 20px;
  3761. bottom: -10px;
  3762. left: 120px;
  3763. " />
  3764. <!-- <el-input
  3765. v-model="eTitle"
  3766. placeholder="请输入名称"
  3767. @change="setMindData"
  3768. ></el-input>-->
  3769. </div>
  3770. </div>
  3771. <div class="e_add_content">
  3772. <div class="e_add_list_pbox">
  3773. <div class="e_add_list_pbox_title">
  3774. <span class="type_title">切换模式</span>
  3775. <div class="type_content">
  3776. <span :class="{ active: typeMode == 1 }" @click="typeMode = 1">目标树</span>
  3777. <span :class="{ active: typeMode == 2 }" @click="typeMode = 2">目标罗盘</span>
  3778. <span :class="{ active: typeMode == 3 }" @click="typeMode = 3">目标看板</span>
  3779. </div>
  3780. </div>
  3781. <div class="e_add_list_pbox_content">
  3782. <Mind :showBar="false" :mindData="data" style="width: 100%" v-show="typeMode == 1"></Mind>
  3783. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  3784. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%" v-if="typeMode == 3">
  3785. </SeeBoard>
  3786. </div>
  3787. </div>
  3788. </div>
  3789. </div>
  3790. </div>
  3791. </div>
  3792. <!-- <div
  3793. class="project_box"
  3794. style="margin-top: 15px; padding-bottom: 30px"
  3795. >
  3796. <div
  3797. style="
  3798. display: flex;
  3799. flex-wrap: nowrap;
  3800. flex-direction: column;
  3801. position: relative;
  3802. "
  3803. >
  3804. <div class="queTop">
  3805. <div class="question">
  3806. <img src="../assets/icon/homeWork.png" alt="" />
  3807. </div>
  3808. <div class="queTitle">
  3809. <div>作业提交<span>(提交图文视频等)</span></div>
  3810. <div>:任务:{{ task.task }}</div>
  3811. </div>
  3812. </div>
  3813. <div class="ediBottom">
  3814. <div
  3815. class="addEditor"
  3816. style="margin-top: 23px"
  3817. @click="openAddWork"
  3818. v-if="!isNoHomeWork"
  3819. >
  3820. 选择文件
  3821. </div>
  3822. <div
  3823. class="addEditor"
  3824. style="margin-top: 23px"
  3825. @click="openAddWork"
  3826. v-else
  3827. >
  3828. 已提交
  3829. </div>
  3830. </div>
  3831. </div>
  3832. </div>-->
  3833. </div>
  3834. </div>
  3835. <el-dialog title="作业提交" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  3836. :before-close="handleClose" class="dialog_change">
  3837. <div class="marginT">
  3838. <div>上传文件</div>
  3839. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  3840. <div class="up_photo">
  3841. <img src="../assets/icon/uploadImg.png" alt />
  3842. </div>
  3843. <!-- <input
  3844. type="file"
  3845. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  3846. style="display: none"
  3847. @change="beforeUpload1($event, 1)"
  3848. /> -->
  3849. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  3850. <!-- <input
  3851. type="file"
  3852. accept="image/*"
  3853. capture="camera"
  3854. style="display: none"
  3855. @change="beforeUpload1($event, 1)"
  3856. /> -->
  3857. </div>
  3858. <div class="chapter_add" style="
  3859. display: flex;
  3860. width: 100%;
  3861. flex-direction: row;
  3862. flex-wrap: wrap;
  3863. justify-content: flex-start;
  3864. padding: 15px 0;
  3865. " v-if="studyJuri[0].cover.length > 0">
  3866. <div class="upCover">
  3867. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  3868. <img :src="word" alt v-else-if="fileType == 1" />
  3869. <img :src="video" alt v-else-if="fileType == 2" />
  3870. <img :src="word2" alt v-else-if="fileType == 3" />
  3871. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  3872. <div class="deleteWord" @click="clean(1)">
  3873. <img src="../assets/icon/deleteWorks.png" alt />
  3874. </div>
  3875. </div>
  3876. </div>
  3877. </div>
  3878. <div class="upload_send" @click="addCourseWorks(taskCount)" v-if="!proVisible">
  3879. 提交
  3880. </div>
  3881. </el-dialog>
  3882. </div>
  3883. </div>
  3884. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4">
  3885. <!-- 批 -->
  3886. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  3887. </div>
  3888. <div v-if="pzDialog == true" class="newDialogCss">
  3889. <div class="pzTop2">
  3890. <!-- <div>批注</div>
  3891. <div @click="pzDialog = false">
  3892. <img src="../assets/close1.png" alt="" />
  3893. </div> -->
  3894. <div class="checkbox">
  3895. <div class="check" style="font-size: 25px">评课笔记</div>
  3896. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  3897. </div>
  3898. </div>
  3899. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  3900. <div class="pzListBox" v-if="pzList && pzList.length">
  3901. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  3902. <div class="pzNavTop">
  3903. <div>批</div>
  3904. <div>
  3905. {{
  3906. pz.username && pz.username.length > 5
  3907. ? pz.username.substring(0, 5) + "..."
  3908. : pz.username
  3909. }}的批注
  3910. </div>
  3911. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  3912. 删除
  3913. </div>
  3914. </div>
  3915. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
  3916. <div class="pzContent" v-if="pz.type == '2'">
  3917. <audio :src="pz.content" controls="controls" ref="audio">
  3918. Your browser does not support the audio element.
  3919. </audio>
  3920. </div>
  3921. <div class="pzContent" v-if="pz.type == '3'">
  3922. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block" @click="previewImg(pz.content)" />
  3923. </div>
  3924. <div class="time">
  3925. {{ pz.time }}
  3926. </div>
  3927. </div>
  3928. </div>
  3929. <div class="noPz" v-else>
  3930. <img src="../assets/icon/noPz.png" alt="" />
  3931. </div>
  3932. <div class="addPzButton">
  3933. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  3934. 添加批注
  3935. </div>
  3936. <!-- <div class="img1">
  3937. <div @click="(addPzDialog = true), (pzType = 2)">
  3938. <img src="../assets/audio.png" /><span>音频</span>
  3939. </div>
  3940. </div> -->
  3941. </div>
  3942. </div>
  3943. </div>
  3944. <div v-if="addPzDialog == true" class="addDialogCss">
  3945. <div class="pzTop">
  3946. <div class="teacherPz">
  3947. <div class="teacherPzImg">
  3948. <img src="../assets/icon/teacherPz.png" alt="" />
  3949. </div>
  3950. <div style="margin-left: 10px; height: 25px">教师批注</div>
  3951. </div>
  3952. <div @click="addPzDialog = false">
  3953. <img src="../assets/close1.png" alt="" />
  3954. </div>
  3955. </div>
  3956. <div class="addPzBox">
  3957. <div class="addPzCheck">
  3958. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  3959. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  3960. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  3961. </div>
  3962. <div style="height: calc(100% - 95px)">
  3963. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  3964. v-if="pzType == 1"></textarea> -->
  3965. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  3966. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  3967. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  3968. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  3969. <div @click="addImg($event)">
  3970. <el-button type="primary">上传图片</el-button>
  3971. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  3972. @change="beforeUpload1($event, 4)" />
  3973. </div>
  3974. </div> -->
  3975. </div>
  3976. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  3977. 确定
  3978. </div>
  3979. </div>
  3980. </div>
  3981. <div v-if="proVisible" class="mask">
  3982. <div class="progressBox">
  3983. <!-- <div id="closePro" class="closeCss">
  3984. <img src="../assets/icon/close.png" alt />
  3985. </div> -->
  3986. <div class="lbox">
  3987. <img src="../assets/loading.gif" />上传中,请稍后
  3988. </div>
  3989. <div style="margin-bottom: 10px">
  3990. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  3991. </div>
  3992. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  3993. </div>
  3994. </div>
  3995. <div v-if="proVisible2" class="mask">
  3996. <div class="progressBox">
  3997. <div class="lbox">
  3998. <img src="../assets/loading.gif" />上传中,请稍后
  3999. </div>
  4000. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  4001. </div>
  4002. </div>
  4003. <el-dialog :visible.sync="pictureDialog" size="tiny">
  4004. <img width="100%" :src="dialogImageUrl" alt />
  4005. </el-dialog>
  4006. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  4007. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  4008. <div>
  4009. <div class="a_add_title" style="
  4010. display: flex;
  4011. flex-direction: row;
  4012. align-items: center;
  4013. justify-content: center;
  4014. ">
  4015. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  4016. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  4017. </div>
  4018. <div class="a_addBox">
  4019. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  4020. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  4021. <div class="a_add_head">
  4022. <div style="display: flex">
  4023. {{ index1 + 1 + "、" }}
  4024. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  4025. </div>
  4026. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  4027. style="height: 300px; margin-top: 10px; max-width: 100%" />
  4028. </div>
  4029. <div class="a_add_body">
  4030. <div class="a_add_input">
  4031. <el-radio-group v-model="radio[index1]">
  4032. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  4033. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  4034. v-html="item2"></span></el-radio>
  4035. </el-radio-group>
  4036. </div>
  4037. </div>
  4038. </div>
  4039. </div>
  4040. </div>
  4041. <span slot="footer" class="dialog-footer">
  4042. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  4043. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  4044. </span>
  4045. </el-dialog>
  4046. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5Teacher" :append-to-body="true"
  4047. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  4048. <div>
  4049. <div class="w_name">
  4050. 学生姓名:<span>{{ sStudent.student }}</span>
  4051. </div>
  4052. <div class="a_add_title" style="
  4053. display: flex;
  4054. flex-direction: row;
  4055. align-items: center;
  4056. justify-content: center;
  4057. ">
  4058. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  4059. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  4060. </div>
  4061. <div class="a_addBox">
  4062. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  4063. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  4064. <div class="a_add_head">
  4065. <div style="display: flex">
  4066. {{ index1 + 1 + "、" }}
  4067. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  4068. </div>
  4069. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  4070. style="height: 300px; margin-top: 10px; max-width: 100%" />
  4071. </div>
  4072. <div class="a_add_body">
  4073. <div class="a_add_input">
  4074. <el-radio-group v-model="radio[index1]">
  4075. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  4076. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  4077. v-html="item2"></span></el-radio>
  4078. </el-radio-group>
  4079. </div>
  4080. </div>
  4081. </div>
  4082. </div>
  4083. </div>
  4084. <span slot="footer" class="dialog-footer">
  4085. <el-button @click="dialogVisible5Teacher = false" v-show="noteName == ''">取 消</el-button>
  4086. <el-button type="primary" @click="addStudentAskTeacher" v-show="noteName == ''">确 定</el-button>
  4087. </span>
  4088. </el-dialog>
  4089. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  4090. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  4091. <div>
  4092. <!-- <div class="a_add_title" style="
  4093. display: flex;
  4094. flex-direction: row;
  4095. align-items: center;
  4096. justify-content: center;
  4097. ">
  4098. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  4099. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  4100. </div> -->
  4101. <div class="a_addBox">
  4102. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  4103. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4104. <div class="a_add_head">
  4105. <div style="display: flex">
  4106. {{ index1 + 1 + "、" }}
  4107. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px">
  4108. (单选题)
  4109. </div>
  4110. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  4111. (多选题)
  4112. </div>
  4113. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  4114. </div>
  4115. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  4116. style="height: 300px; margin-top: 10px; max-width: 100%" />
  4117. </div>
  4118. <div class="timuImgBox" v-if="
  4119. testJson.testJson[index1].timuList &&
  4120. testJson.testJson[index1].timuList.length
  4121. ">
  4122. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4123. @click.stop="previewImg(timg.src)">
  4124. <img :src="timg.src" alt="" />
  4125. </div>
  4126. </div>
  4127. <div class="a_add_body">
  4128. <div class="a_add_input">
  4129. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  4130. <div class="radioBox">
  4131. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4132. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  4133. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  4134. <div class="inImg" @click.stop="previewImg(item2.src)">
  4135. <img :src="item2.src" alt="" />
  4136. </div>
  4137. </div>
  4138. <span v-else v-html="item2"></span>
  4139. </el-radio>
  4140. </div>
  4141. </el-radio-group>
  4142. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  4143. <div class="radioBox">
  4144. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  4145. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  4146. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  4147. <div class="inImg" @click.stop="previewImg(item2.src)">
  4148. <img :src="item2.src" alt="" />
  4149. </div>
  4150. </div>
  4151. <span v-else v-html="item2"></span>
  4152. </el-checkbox>
  4153. </div>
  4154. </el-checkbox-group>
  4155. </div>
  4156. </div>
  4157. </div>
  4158. </div>
  4159. </div>
  4160. <span slot="footer" class="dialog-footer">
  4161. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  4162. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  4163. </span>
  4164. </el-dialog>
  4165. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoiceTeacher"
  4166. :append-to-body="true" width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  4167. <div>
  4168. <div class="w_name">
  4169. 学生姓名:<span>{{ sStudent.student }}</span>
  4170. </div>
  4171. <div class="a_addBox">
  4172. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  4173. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4174. <div class="a_add_head">
  4175. <div style="display: flex">
  4176. {{ index1 + 1 + "、" }}
  4177. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px">
  4178. (单选题)
  4179. </div>
  4180. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  4181. (多选题)
  4182. </div>
  4183. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  4184. </div>
  4185. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  4186. style="height: 300px; margin-top: 10px; max-width: 100%" />
  4187. </div>
  4188. <div class="timuImgBox" v-if="
  4189. testJson.testJson[index1].timuList &&
  4190. testJson.testJson[index1].timuList.length
  4191. ">
  4192. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4193. @click.stop="previewImg(timg.src)">
  4194. <img :src="timg.src" alt="" />
  4195. </div>
  4196. </div>
  4197. <div class="a_add_body">
  4198. <div class="a_add_input">
  4199. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  4200. <div class="radioBox">
  4201. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4202. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  4203. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  4204. <div class="inImg" @click.stop="previewImg(item2.src)">
  4205. <img :src="item2.src" alt="" />
  4206. </div>
  4207. </div>
  4208. <span v-else v-html="item2"></span>
  4209. </el-radio>
  4210. </div>
  4211. </el-radio-group>
  4212. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  4213. <div class="radioBox">
  4214. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  4215. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  4216. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  4217. <div class="inImg" @click.stop="previewImg(item2.src)">
  4218. <img :src="item2.src" alt="" />
  4219. </div>
  4220. </div>
  4221. <span v-else v-html="item2"></span>
  4222. </el-checkbox>
  4223. </div>
  4224. </el-checkbox-group>
  4225. </div>
  4226. </div>
  4227. </div>
  4228. </div>
  4229. </div>
  4230. <span slot="footer" class="dialog-footer">
  4231. <el-button @click="dialogVisibleChoiceTeacher = false" v-show="noteName == ''">取 消</el-button>
  4232. <el-button type="primary" @click="addStudentTestTeacher" v-show="noteName == ''">确 定</el-button>
  4233. </span>
  4234. </el-dialog>
  4235. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  4236. :before-close="handleClose" class="dialog_diy textCss">
  4237. <el-form style="font-size: 20px">
  4238. <el-form-item label="文本标题" class="textTitle">
  4239. <div style="font-size: 20px">{{ text.name }}</div>
  4240. </el-form-item>
  4241. <div>富文本内容</div>
  4242. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  4243. </el-form>
  4244. <span slot="footer" class="dialog-footer">
  4245. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  4246. </span>
  4247. </el-dialog>
  4248. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  4249. :class="{ fullStyle: full }">
  4250. <div slot="title" class="header-title">
  4251. <div style="color: #fff">文件预览</div>
  4252. <div style="position: absolute; top: 19px; right: 50px">
  4253. <img src="../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  4254. </div>
  4255. </div>
  4256. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4257. :class="{ fullStyle: full }"></pdf>
  4258. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4259. </el-dialog>
  4260. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  4261. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600" ></iframe>
  4262. </el-dialog>
  4263. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px" :before-close="handleClose"
  4264. class="dialog_diy notice">
  4265. <div>此功能暂未开放!</div>
  4266. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  4267. </el-dialog>
  4268. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  4269. :before-close="handleClose" class="dialog_diy">
  4270. <div>
  4271. <div style="
  4272. display: flex;
  4273. flex-wrap: nowrap;
  4274. flex-direction: column;
  4275. position: relative;
  4276. ">
  4277. <div class="queTop" style="padding: 20px 0 20px 0">
  4278. <div class="question">
  4279. <img src="../assets/icon/question.png" alt />
  4280. </div>
  4281. <div class="queTitle">
  4282. <div style="width: 90px; min-width: 90px">提问:</div>
  4283. <div>{{ answerQ }}</div>
  4284. </div>
  4285. </div>
  4286. <div class="ediBottom">
  4287. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  4288. v-model="questionAnswer"></textarea>
  4289. </div>
  4290. </div>
  4291. </div>
  4292. <div slot="footer">
  4293. <el-button @click="answerDialogVisible = false">取 消</el-button>
  4294. <el-button type="primary" @click="addQuestion">提 交</el-button>
  4295. </div>
  4296. </el-dialog>
  4297. <el-dialog title="问答" :visible.sync="answerDialogVisibleTeacher" :append-to-body="true" width="800px"
  4298. :before-close="handleClose" class="dialog_diy">
  4299. <div>
  4300. <div class="w_name">
  4301. 学生姓名:<span>{{ sStudent.student }}</span>
  4302. </div>
  4303. <div style="
  4304. display: flex;
  4305. flex-wrap: nowrap;
  4306. flex-direction: column;
  4307. position: relative;
  4308. ">
  4309. <div class="queTop" style="padding: 20px 0 20px 0">
  4310. <div class="question">
  4311. <img src="../assets/icon/question.png" alt />
  4312. </div>
  4313. <div class="queTitle">
  4314. <div style="width: 90px; min-width: 90px">提问:</div>
  4315. <div>{{ answerQ }}</div>
  4316. </div>
  4317. </div>
  4318. <div class="ediBottom">
  4319. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  4320. v-model="questionAnswer"></textarea>
  4321. </div>
  4322. </div>
  4323. </div>
  4324. <div slot="footer">
  4325. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  4326. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  4327. </div>
  4328. </el-dialog>
  4329. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  4330. :before-close="handleClose" class="dialog_diy">
  4331. <div>
  4332. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  4333. </div>
  4334. <div slot="footer">
  4335. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  4336. </div>
  4337. </el-dialog>
  4338. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  4339. class="dialog_diy">
  4340. <div>
  4341. <div class="open_box">
  4342. <div class="switch_box">
  4343. <span>允许学生查看所有作业</span>
  4344. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  4345. </div>
  4346. <div class="switch_box" v-if="
  4347. courseDetail.userid == userid ||
  4348. (courseDetail.course_teacher &&
  4349. courseDetail.course_teacher.indexOf(userid) != -1)
  4350. ">
  4351. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  4352. <span>禁止学生查看所有阶段</span>
  4353. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  4354. </div>
  4355. <div class="switch_box" v-if="courseDetail.userid == userid">
  4356. <span>开启跟随模式</span>
  4357. <el-switch v-model="IsFollow" active-text="" class="switchCss" @change="updateFollow"></el-switch>
  4358. </div>
  4359. </div>
  4360. </div>
  4361. <div slot="footer">
  4362. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  4363. </div>
  4364. </el-dialog>
  4365. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  4366. class="dialog_diy1">
  4367. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  4368. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4369. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  4370. </div>
  4371. <div slot="footer">
  4372. <el-button style="background: #409efe; color: #fff"
  4373. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  4374. 关 闭</el-button>
  4375. </div>
  4376. </el-dialog>
  4377. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  4378. :before-close="handleClose" class="dialog_diy">
  4379. <div class="commentTop">
  4380. <div class="studentDetail">
  4381. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  4382. <div class="nameAndTime">
  4383. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  4384. <div>{{ commentDetail.time }}</div>
  4385. </div>
  4386. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="
  4387. commentDetail.works &&
  4388. commentDetail.type == 0 &&
  4389. (tType == 1 || tType == 4)
  4390. " @click="
  4391. showPicturePaint(
  4392. commentDetail.img ? commentDetail.img : commentDetail.works
  4393. )
  4394. ">
  4395. 教师批注
  4396. </div>
  4397. </div>
  4398. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  4399. {{ JSON.parse(commentDetail.works)[0].answer }}
  4400. </div>
  4401. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  4402. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  4403. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4404. :class="{ fullStyle: full }"></pdf>
  4405. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4406. </div>
  4407. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  4408. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" style="right: 105px" />
  4409. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  4410. </div>
  4411. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  4412. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  4413. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4414. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  4415. </div>
  4416. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 10">
  4417. <div class="cont" v-html="commentDetail.works.text"></div>
  4418. </div>
  4419. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  4420. @click="downloadFile(commentDetail.works)">
  4421. <img src="../assets/icon/codeFile.png" />
  4422. <div>点击下载文件</div>
  4423. </div>
  4424. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  4425. <div v-html="JSON.parse(commentDetail.works).text"></div>
  4426. </div>
  4427. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  4428. <div class="evalCss">
  4429. <div class="nav">请选择星星进行评分</div>
  4430. <div class="middleBox" v-if="eScore.eStar">
  4431. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4432. <div class="nameAndrate">
  4433. <div>{{ e.value }}</div>
  4434. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  4435. </div>
  4436. <div v-if="e.detail">{{ e.detail }}</div>
  4437. </div>
  4438. <div class="bz">
  4439. <textarea disabled rows="4" class="pj" style="
  4440. padding: 10px 5px;
  4441. width: 70%;
  4442. background: #f7f6f9;
  4443. font-size: 14px;
  4444. text-indent: 10px;
  4445. color: #000;
  4446. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4447. </div>
  4448. </div>
  4449. </div>
  4450. </div>
  4451. <div class="comment">
  4452. <div class="commentList">
  4453. <div class="commentImg">
  4454. <img @click="
  4455. isLikes(
  4456. commentDetail.wid,
  4457. userid,
  4458. 1,
  4459. null,
  4460. commentDetail.isLikes
  4461. )
  4462. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  4463. </div>
  4464. <div>{{ commentDetail.likesCount }}</div>
  4465. </div>
  4466. <div class="commentList">
  4467. <div class="commentImg">
  4468. <img src="../assets/icon/comment/comment.png" alt="" />
  4469. </div>
  4470. <div>{{ commentDetail.commentCount }}</div>
  4471. </div>
  4472. </div>
  4473. <div class="drawPBox" v-if="commentDetail.img">
  4474. <span>教师批注</span>
  4475. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  4476. <span class="deleteImg" v-if="tType == 1 || tType == 4" @click.stop="deletePicturePaint(commentDetail.wid)"
  4477. style="
  4478. font-size: 14px;
  4479. width: auto !important;
  4480. color: #b4b4b4;
  4481. top: unset;
  4482. bottom: 0;
  4483. border: none;
  4484. padding: 0;
  4485. height: auto !important;
  4486. margin: 0;
  4487. ">删除</span>
  4488. </div>
  4489. </div>
  4490. <div class="commentBox">
  4491. <div class="pl">评论:</div>
  4492. <div style="max-height: 200px; overflow: auto">
  4493. <div v-if="commentDetail.commentJson && commentDetail.commentJson.length" style="padding: 10px 0 0 0">
  4494. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  4495. :key="coIndex">
  4496. <div class="tx" style="min-width: 50px">
  4497. <img src="../assets/avatar.png" alt="" />
  4498. </div>
  4499. <div class="plPerson">
  4500. <div class="plName">
  4501. <div>{{ co.commentPeople }}</div>
  4502. <div style="margin-left: 5px">
  4503. {{ co.commentTime }}
  4504. </div>
  4505. <div class="deleteComment" v-if="userid == co.userid" @click="deleteComment(co.wid)">删除</div>
  4506. </div>
  4507. <div class="plContent">{{ co.commentText }}</div>
  4508. </div>
  4509. </div>
  4510. </div>
  4511. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  4512. </div>
  4513. </div>
  4514. <div style="margin-top: 10px">
  4515. <div class="displayBox">
  4516. <div style="
  4517. color: #556db4;
  4518. font-size: 14px;
  4519. font-weight: bold;
  4520. padding-bottom: 10px;
  4521. ">
  4522. 评价
  4523. </div>
  4524. <div class="easy_comment" v-if="false">
  4525. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  4526. {{ p }}
  4527. </div>
  4528. </div>
  4529. </div>
  4530. <div>
  4531. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  4532. placeholder="请输入对该学生的评价"></textarea>
  4533. </div>
  4534. </div>
  4535. <div slot="footer">
  4536. <el-button @click="
  4537. (commentDialogVisible = false),
  4538. (commentIndexJson = {}),
  4539. videoDetail.sources && videoDetail.sources[0]
  4540. ? (videoDetail.sources[0].src = '')
  4541. : ''
  4542. ">取 消</el-button>
  4543. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  4544. </div>
  4545. </el-dialog>
  4546. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  4547. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 3 }">
  4548. <div slot="title" class="header-title">
  4549. <div style="color: #fff">查看文档</div>
  4550. <div @click="fullDialogVisible = false" style="
  4551. cursor: pointer;
  4552. position: absolute;
  4553. top: 20px;
  4554. right: 20px;
  4555. color: #fff;
  4556. ">
  4557. 退出全屏
  4558. </div>
  4559. </div>
  4560. <div style="height: 100%">
  4561. <div class="wheel" v-if="fullUrl.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && fulltype == 2" style="width: 95%; margin: 0 auto">
  4562. <iframe style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  4563. </div>
  4564. <iframe v-else-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl" security="restricted"
  4565. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  4566. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  4567. <div class="wheel" v-if="fulltype == 1" style="
  4568. box-shadow: 0 0 6px 1px #f2f2f2;
  4569. width: 100%;
  4570. background: #f1f1f1;
  4571. ">
  4572. <div class="title" style="width: 100%; box-sizing: border-box">
  4573. 查看文档
  4574. </div>
  4575. <el-form class="textBox" style="height: 90%">
  4576. <el-form-item class="textTitle">
  4577. <div style="font-size: 22px">
  4578. {{ fullUrl.name }}
  4579. </div>
  4580. </el-form-item>
  4581. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  4582. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  4583. </el-form>
  4584. </div>
  4585. </div>
  4586. <!-- <div slot="footer">
  4587. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  4588. </div> -->
  4589. </el-dialog>
  4590. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  4591. :before-close="handleClose" class="dialog_diy">
  4592. <div class="evalCss">
  4593. <div class="nav">请选择星星进行评分</div>
  4594. <div class="middleBox" v-if="eScore.eStar">
  4595. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4596. <div class="nameAndrate">
  4597. <div>{{ e.value }}</div>
  4598. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4599. </div>
  4600. <div v-if="e.detail">{{ e.detail }}</div>
  4601. </div>
  4602. <div class="easy_comment" v-if="false">
  4603. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4604. {{ p }}
  4605. </div>
  4606. </div>
  4607. <div class="bz">
  4608. <textarea :disabled="isStar" rows="4" class="pj" style="
  4609. padding: 10px 5px;
  4610. width: 70%;
  4611. background: #f7f6f9;
  4612. font-size: 14px;
  4613. text-indent: 10px;
  4614. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4615. </div>
  4616. </div>
  4617. </div>
  4618. <div slot="footer">
  4619. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  4620. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  4621. </div>
  4622. </el-dialog>
  4623. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisibleTeacher" :append-to-body="true" width="800px"
  4624. :before-close="handleClose" class="dialog_diy">
  4625. <div class="w_name">
  4626. 学生姓名:<span>{{ sStudent.student }}</span>
  4627. </div>
  4628. <div class="evalCss">
  4629. <div class="nav">请选择星星进行评分</div>
  4630. <div class="middleBox" v-if="eScore.eStar">
  4631. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4632. <div class="nameAndrate">
  4633. <div>{{ e.value }}</div>
  4634. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4635. </div>
  4636. <div v-if="e.detail">{{ e.detail }}</div>
  4637. </div>
  4638. <div class="easy_comment" v-if="false">
  4639. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4640. {{ p }}
  4641. </div>
  4642. </div>
  4643. <div class="bz">
  4644. <textarea :disabled="isStar" rows="4" class="pj" style="
  4645. padding: 10px 5px;
  4646. width: 70%;
  4647. background: #f7f6f9;
  4648. font-size: 14px;
  4649. text-indent: 10px;
  4650. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4651. </div>
  4652. </div>
  4653. </div>
  4654. <div slot="footer">
  4655. <el-button @click="studentEvalDialogVisibleTeacher = false">取 消</el-button>
  4656. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar">确 定</el-button>
  4657. </div>
  4658. </el-dialog>
  4659. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  4660. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4661. <div v-if="selectJson">
  4662. <div class="select_box2">
  4663. <div class="select_box2_title">
  4664. <div>选择填空</div>
  4665. <div>请选择对应的答案进行答题!</div>
  4666. </div>
  4667. <div class="select_box2_box">
  4668. <div class="select_box2_img">
  4669. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4670. </div>
  4671. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4672. <div style="padding-top: 15px">
  4673. <div class="select_answer_title" v-if="isSelect">
  4674. {{ selectAnswer.stu }}
  4675. </div>
  4676. <div class="select_answer_title" v-else>
  4677. 根据题目选择对应答案
  4678. </div>
  4679. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4680. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4681. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4682. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4683. </el-option>
  4684. </el-select>
  4685. </div>
  4686. </div>
  4687. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4688. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4689. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4690. 回答正确
  4691. </div>
  4692. <div v-else>回答错误</div>
  4693. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4694. 正确答案:
  4695. </div>
  4696. <div :class="
  4697. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4698. ">
  4699. {{ selectJson.select[a] }}
  4700. </div>
  4701. </div>
  4702. </div>
  4703. </div>
  4704. <div class="upAnswerCss">
  4705. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  4706. </div>
  4707. </div>
  4708. </div>
  4709. </div>
  4710. </el-dialog>
  4711. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelectTeacher" :append-to-body="true" width="90%"
  4712. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4713. <div v-if="selectJson">
  4714. <div class="w_name">
  4715. 学生姓名:<span>{{ sStudent.student }}</span>
  4716. </div>
  4717. <div class="select_box2">
  4718. <div class="select_box2_title">
  4719. <div>选择填空</div>
  4720. <div>请选择对应的答案进行答题!</div>
  4721. </div>
  4722. <div class="select_box2_box">
  4723. <div class="select_box2_img">
  4724. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4725. </div>
  4726. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4727. <div style="padding-top: 15px">
  4728. <div class="select_answer_title" v-if="isSelect">
  4729. {{ selectAnswer.stu }}
  4730. </div>
  4731. <div class="select_answer_title" v-else>
  4732. 根据题目选择对应答案
  4733. </div>
  4734. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4735. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4736. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4737. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4738. </el-option>
  4739. </el-select>
  4740. </div>
  4741. </div>
  4742. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4743. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4744. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4745. 回答正确
  4746. </div>
  4747. <div v-else>回答错误</div>
  4748. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4749. 正确答案:
  4750. </div>
  4751. <div :class="
  4752. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4753. ">
  4754. {{ selectJson.select[a] }}
  4755. </div>
  4756. </div>
  4757. </div>
  4758. </div>
  4759. <div class="upAnswerCss">
  4760. <el-button type="primary" @click="addSelectAnswerTeacher" v-if="!isSelect">提交答案</el-button>
  4761. </div>
  4762. </div>
  4763. </div>
  4764. </div>
  4765. </el-dialog>
  4766. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  4767. :before-close="handleClose" class="dialog_diy">
  4768. <div>
  4769. <div class="studentDetail">
  4770. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  4771. <div class="nameAndTime">
  4772. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  4773. <div>{{ commentDetail.time }}</div>
  4774. </div>
  4775. </div>
  4776. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  4777. {{ JSON.parse(commentDetail.works)[0].answer }}
  4778. </div>
  4779. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  4780. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4781. :class="{ fullStyle: full }"></pdf>
  4782. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4783. </div>
  4784. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  4785. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  4786. </div>
  4787. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  4788. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4789. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  4790. </div>
  4791. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  4792. @click="downloadFile(commentDetail.works)">
  4793. <img src="../assets/icon/codeFile.png" />
  4794. <div>点击下载文件</div>
  4795. </div>
  4796. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  4797. <div v-html="JSON.parse(commentDetail.works).text"></div>
  4798. </div>
  4799. <div class="scoreBox">
  4800. <span class="t">请输入分数</span>
  4801. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  4802. :max="100"></el-input-number>
  4803. </div>
  4804. <div class="scoreDetailBox">
  4805. <span class="t">评分评论</span>
  4806. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  4807. v-model="scoreDetail" placeholder="请输入对学生的评价">
  4808. </el-input>
  4809. </div>
  4810. </div>
  4811. <span slot="footer" class="dialog-footer">
  4812. <el-button @click="
  4813. (dialogVisibleScore = false),
  4814. (commentIndexJson = {}),
  4815. videoDetail.sources && videoDetail.sources[0]
  4816. ? (videoDetail.sources[0].src = '')
  4817. : ''
  4818. ">取 消</el-button>
  4819. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  4820. </el-button>
  4821. </span>
  4822. </el-dialog>
  4823. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4824. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4825. <div>
  4826. <div class="sentenBox">
  4827. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4828. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4829. <div class="cardList" v-if="st.chooseSenList">
  4830. <div class="cardBox">
  4831. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4832. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4833. <div :class="{
  4834. isCard: r,
  4835. isChooseCard: r == '' || r == undefined,
  4836. }">
  4837. <div>{{ r }}</div>
  4838. </div>
  4839. </el-tooltip>
  4840. <div :class="{
  4841. isCard: r,
  4842. isChooseCard: r == '' || r == undefined,
  4843. }" v-else>
  4844. <div>{{ r }}</div>
  4845. </div>
  4846. </div>
  4847. </div>
  4848. </div>
  4849. <div class="cardList" v-if="st.addChangeSen">
  4850. <div class="cardBox">
  4851. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4852. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4853. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4854. <div>{{ s }}</div>
  4855. </div>
  4856. </el-tooltip>
  4857. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4858. <div>{{ s }}</div>
  4859. </div>
  4860. </div>
  4861. </div>
  4862. </div>
  4863. </div>
  4864. </div>
  4865. </div>
  4866. <span slot="footer" class="dialog-footer">
  4867. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  4868. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  4869. </span>
  4870. </el-dialog>
  4871. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentenceTeacher" :append-to-body="true" width="1000px"
  4872. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4873. <div>
  4874. <div class="w_name">
  4875. 学生姓名:<span>{{ sStudent.student }}</span>
  4876. </div>
  4877. <div class="sentenBox">
  4878. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4879. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4880. <div class="cardList" v-if="st.chooseSenList">
  4881. <div class="cardBox">
  4882. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4883. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4884. <div :class="{
  4885. isCard: r,
  4886. isChooseCard: r == '' || r == undefined,
  4887. }">
  4888. <div>{{ r }}</div>
  4889. </div>
  4890. </el-tooltip>
  4891. <div :class="{
  4892. isCard: r,
  4893. isChooseCard: r == '' || r == undefined,
  4894. }" v-else>
  4895. <div>{{ r }}</div>
  4896. </div>
  4897. </div>
  4898. </div>
  4899. </div>
  4900. <div class="cardList" v-if="st.addChangeSen">
  4901. <div class="cardBox">
  4902. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4903. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4904. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4905. <div>{{ s }}</div>
  4906. </div>
  4907. </el-tooltip>
  4908. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4909. <div>{{ s }}</div>
  4910. </div>
  4911. </div>
  4912. </div>
  4913. </div>
  4914. </div>
  4915. </div>
  4916. </div>
  4917. <span slot="footer" class="dialog-footer">
  4918. <el-button @click="dialogVisibleSentenceTeacher = false">取 消</el-button>
  4919. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  4920. </span>
  4921. </el-dialog>
  4922. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  4923. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4924. <div>
  4925. <div class="sentenBox">
  4926. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4927. {{ sentenceList1.stuName }}的作业
  4928. </div>
  4929. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  4930. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4931. 第{{ stIndex + 1 }}题
  4932. </div>
  4933. <div class="isWrong">
  4934. <div class="cardList1" v-if="st.chooseSenList">
  4935. <div class="cardBox">
  4936. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  4937. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4938. <div class="isCard">
  4939. <div>{{ s }}</div>
  4940. </div>
  4941. </el-tooltip>
  4942. </div>
  4943. </div>
  4944. <div class="cardAnswerBox">
  4945. 组成句子:{{ st.chooseSenList.join(" ") }}
  4946. </div>
  4947. </div>
  4948. <div v-if="tType == 2" class="isTj">
  4949. <div class="isTjImg">
  4950. <img src="../assets/icon/conSentences/right.png" alt="" />
  4951. </div>
  4952. <div>已提交</div>
  4953. </div>
  4954. <div class="answerRight isTj" v-if="
  4955. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  4956. (tType == 1 || tType == 4)
  4957. ">
  4958. <div class="isTjImg">
  4959. <img src="../assets/icon/conSentences/right.png" alt="" />
  4960. </div>
  4961. <div>回答正确</div>
  4962. </div>
  4963. <div class="answerRight isTj" v-if="
  4964. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4965. (tType == 1 || tType == 4)
  4966. ">
  4967. <div class="isTjImg">
  4968. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  4969. </div>
  4970. <div>回答错误</div>
  4971. </div>
  4972. </div>
  4973. <div v-if="
  4974. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4975. (tType == 1 || tType == 4)
  4976. ">
  4977. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  4978. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  4979. <div class="cardBox">
  4980. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  4981. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4982. <div class="isCard1">
  4983. <div>{{ r }}</div>
  4984. </div>
  4985. </el-tooltip>
  4986. </div>
  4987. </div>
  4988. <div class="cardAnswerBox">
  4989. 组成句子:{{ st.rightAnswer.join(" ") }}
  4990. </div>
  4991. </div>
  4992. </div>
  4993. </div>
  4994. </div>
  4995. </div>
  4996. <span slot="footer" class="dialog-footer">
  4997. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  4998. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  4999. </span>
  5000. </el-dialog>
  5001. <el-dialog title="教师提交作业" :visible.sync="dialogVisibleWorks" :append-to-body="true" width="500px"
  5002. :before-close="handleClose" class="dialog_change">
  5003. <div class="marginT">
  5004. <div class="w_name">
  5005. 学生姓名:<span>{{ sStudent.student }}</span>
  5006. </div>
  5007. <div>上传文件</div>
  5008. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  5009. <div class="up_photo">
  5010. <img src="../assets/uploadImg2.png" alt />
  5011. </div>
  5012. <!-- <input
  5013. type="file"
  5014. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  5015. style="display: none"
  5016. @change="beforeUpload1($event, 1)"
  5017. /> -->
  5018. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  5019. </div>
  5020. <!-- capture="camera" -->
  5021. <div class="chapter_add" style="
  5022. display: flex;
  5023. width: 100%;
  5024. flex-direction: row;
  5025. flex-wrap: wrap;
  5026. justify-content: flex-start;
  5027. padding: 15px 0;
  5028. " v-if="studyJuri[0].cover.length > 0">
  5029. <div class="upCover">
  5030. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  5031. <img :src="word" alt v-else-if="fileType == 1" />
  5032. <img :src="video" alt v-else-if="fileType == 2" />
  5033. <img :src="word2" alt v-else-if="fileType == 3" />
  5034. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  5035. <div class="deleteWord" @click="clean(1)">
  5036. <img src="../assets/icon/deleteWorks.png" alt />
  5037. </div>
  5038. </div>
  5039. </div>
  5040. </div>
  5041. <div class="upload_send" @click="addCourseWorksTeacher(taskCount)" v-if="!proVisible">
  5042. 提交
  5043. </div>
  5044. </el-dialog>
  5045. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  5046. <el-dialog title="表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  5047. :before-close="handleClose" class="dialog_diy">
  5048. <el-form>
  5049. <div>表格内容</div>
  5050. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
  5051. </el-form>
  5052. <span slot="footer" class="dialog-footer">
  5053. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  5054. <el-button type="primary" @click="addTableWorks">确定</el-button>
  5055. </span>
  5056. </el-dialog>
  5057. <el-dialog title="表格" :visible.sync="dialogVisibleTableTeacher" :append-to-body="true" width="95%"
  5058. :before-close="handleClose" class="dialog_diy">
  5059. <el-form>
  5060. <div class="w_name">
  5061. 学生姓名:<span>{{ sStudent.student }}</span>
  5062. </div>
  5063. <div>表格内容</div>
  5064. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTableTeacher"></Table>
  5065. </el-form>
  5066. <span slot="footer" class="dialog-footer">
  5067. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  5068. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  5069. </span>
  5070. </el-dialog>
  5071. <el-dialog title="文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%" :before-close="handleClose"
  5072. class="dialog_diy">
  5073. <el-form>
  5074. <div>文档内容</div>
  5075. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWord"></editor-bar>
  5076. </el-form>
  5077. <span slot="footer" class="dialog-footer">
  5078. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  5079. <el-button type="primary" @click="addWordWorks">确定</el-button>
  5080. </span>
  5081. </el-dialog>
  5082. <el-dialog title="文档" :visible.sync="dialogVisibleWordTeacher" :append-to-body="true" width="95%"
  5083. :before-close="handleClose" class="dialog_diy">
  5084. <el-form>
  5085. <div class="w_name">
  5086. 学生姓名:<span>{{ sStudent.student }}</span>
  5087. </div>
  5088. <div>文档内容</div>
  5089. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWordTeacher"></editor-bar>
  5090. </el-form>
  5091. <span slot="footer" class="dialog-footer">
  5092. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  5093. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  5094. </span>
  5095. </el-dialog>
  5096. <el-dialog title="表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  5097. :before-close="handleClose" class="dialog_diy">
  5098. <el-form>
  5099. <div class="cont" v-html="tableJson.text"></div>
  5100. </el-form>
  5101. <span slot="footer" class="dialog-footer">
  5102. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  5103. </span>
  5104. </el-dialog>
  5105. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="95%"
  5106. :before-close="handleClose" class="dialog_diy">
  5107. <div v-if="dialogVisibleGroup">
  5108. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  5109. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  5110. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  5111. </div>
  5112. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  5113. @click="lockChair">
  5114. 锁定位置
  5115. </div>
  5116. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  5117. 解锁位置
  5118. </div> -->
  5119. <div class="group_switch">
  5120. <span>开放选座</span>
  5121. <el-switch v-model="islock" active-text="" class="switchCss" @change="lockChair"></el-switch>
  5122. </div>
  5123. <div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
  5124. 分组设置
  5125. </div>
  5126. </div>
  5127. <div>
  5128. <div class="g_d_box" v-if="groupJson.group && groupStudent[toolindex]">
  5129. <div class="g_d_group" v-for="(g, gindex) in groupJson.group" :key="gindex">
  5130. <div class="g_d_group_chair">
  5131. <div v-if="groupJson.number > 1">
  5132. <span :class="{
  5133. isChair:
  5134. groupStudent[toolindex][gindex] &&
  5135. groupStudent[toolindex][gindex][0],
  5136. updateChair:
  5137. courseDetail.userid == userid &&
  5138. groupStudent[toolindex][gindex] &&
  5139. groupStudent[toolindex][gindex][0] &&
  5140. groupJson.islock == 2,
  5141. }"><span class="updateChairBtn" @click="
  5142. updateGroupChair(
  5143. groupStudent[toolindex][gindex] &&
  5144. groupStudent[toolindex][gindex][0]
  5145. )
  5146. ">修改</span></span><span>{{
  5147. groupStudent[toolindex][gindex] &&
  5148. groupStudent[toolindex][gindex][0]
  5149. ? groupStudent[toolindex][gindex] &&
  5150. groupStudent[toolindex][gindex][0].name
  5151. : "空位置"
  5152. }}</span>
  5153. </div>
  5154. <div v-if="groupJson.number > 4">
  5155. <span :class="{
  5156. isChair:
  5157. groupStudent[toolindex][gindex] &&
  5158. groupStudent[toolindex][gindex][4],
  5159. updateChair:
  5160. courseDetail.userid == userid &&
  5161. groupStudent[toolindex][gindex] &&
  5162. groupStudent[toolindex][gindex][4] &&
  5163. groupJson.islock == 2,
  5164. }"><span class="updateChairBtn" @click="
  5165. updateGroupChair(
  5166. groupStudent[toolindex][gindex] &&
  5167. groupStudent[toolindex][gindex][4]
  5168. )
  5169. ">修改</span></span><span>{{
  5170. groupStudent[toolindex][gindex] &&
  5171. groupStudent[toolindex][gindex][4]
  5172. ? groupStudent[toolindex][gindex] &&
  5173. groupStudent[toolindex][gindex][4].name
  5174. : "空位置"
  5175. }}</span>
  5176. </div>
  5177. <div v-if="groupJson.number > 8">
  5178. <span :class="{
  5179. isChair:
  5180. groupStudent[toolindex][gindex] &&
  5181. groupStudent[toolindex][gindex][8],
  5182. updateChair:
  5183. courseDetail.userid == userid &&
  5184. groupStudent[toolindex][gindex] &&
  5185. groupStudent[toolindex][gindex][8] &&
  5186. groupJson.islock == 2,
  5187. }"><span class="updateChairBtn" @click="
  5188. updateGroupChair(
  5189. groupStudent[toolindex][gindex] &&
  5190. groupStudent[toolindex][gindex][8]
  5191. )
  5192. ">修改</span></span><span>{{
  5193. groupStudent[toolindex][gindex] &&
  5194. groupStudent[toolindex][gindex][8]
  5195. ? groupStudent[toolindex][gindex] &&
  5196. groupStudent[toolindex][gindex][8].name
  5197. : "空位置"
  5198. }}</span>
  5199. </div>
  5200. </div>
  5201. <div class="g_d_group_tableBox">
  5202. <div class="g_d_group_chair2">
  5203. <div v-if="groupJson.number > 2">
  5204. <span :class="{
  5205. isChair:
  5206. groupStudent[toolindex][gindex] &&
  5207. groupStudent[toolindex][gindex][2],
  5208. updateChair:
  5209. courseDetail.userid == userid &&
  5210. groupStudent[toolindex][gindex] &&
  5211. groupStudent[toolindex][gindex][2] &&
  5212. groupJson.islock == 2,
  5213. }"><span class="updateChairBtn" @click="
  5214. updateGroupChair(
  5215. groupStudent[toolindex][gindex] &&
  5216. groupStudent[toolindex][gindex][2]
  5217. )
  5218. ">修改</span></span><span>{{
  5219. groupStudent[toolindex][gindex] &&
  5220. groupStudent[toolindex][gindex][2]
  5221. ? groupStudent[toolindex][gindex] &&
  5222. groupStudent[toolindex][gindex][2].name
  5223. : "空位置"
  5224. }}</span>
  5225. </div>
  5226. <div v-if="groupJson.number > 6">
  5227. <span :class="{
  5228. isChair:
  5229. groupStudent[toolindex][gindex] &&
  5230. groupStudent[toolindex][gindex][6],
  5231. updateChair:
  5232. courseDetail.userid == userid &&
  5233. groupStudent[toolindex][gindex] &&
  5234. groupStudent[toolindex][gindex][6] &&
  5235. groupJson.islock == 2,
  5236. }"><span class="updateChairBtn" @click="
  5237. updateGroupChair(
  5238. groupStudent[toolindex][gindex] &&
  5239. groupStudent[toolindex][gindex][6]
  5240. )
  5241. ">修改</span></span><span>{{
  5242. groupStudent[toolindex][gindex] &&
  5243. groupStudent[toolindex][gindex][6]
  5244. ? groupStudent[toolindex][gindex] &&
  5245. groupStudent[toolindex][gindex][6].name
  5246. : "空位置"
  5247. }}</span>
  5248. </div>
  5249. </div>
  5250. <div class="g_d_group_table">
  5251. <div>
  5252. {{ g.name }}
  5253. </div>
  5254. <div>
  5255. <div v-if="
  5256. courseDetail.userid == userid && groupJson.islock == 2
  5257. " @click="deleteGroupChair(gindex)">
  5258. 移除组员
  5259. </div>
  5260. <div @click="selectGroup(gindex)" v-else-if="
  5261. groupStudentUid[toolindex] &&
  5262. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  5263. ">
  5264. 加入分组
  5265. </div>
  5266. <div @click="
  5267. exitGroup(
  5268. groupStudent[toolindex][gindex] &&
  5269. groupStudent[toolindex][gindex][
  5270. groupStudentUid[toolindex][gindex].indexOf(userid)
  5271. ].id
  5272. )
  5273. " v-else-if="
  5274. groupStudentUid[toolindex] &&
  5275. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  5276. ">
  5277. 退出分组
  5278. </div>
  5279. </div>
  5280. </div>
  5281. <div class="g_d_group_chair2">
  5282. <div v-if="groupJson.number > 3">
  5283. <span :class="{
  5284. isChair:
  5285. groupStudent[toolindex][gindex] &&
  5286. groupStudent[toolindex][gindex][3],
  5287. updateChair:
  5288. courseDetail.userid == userid &&
  5289. groupStudent[toolindex][gindex] &&
  5290. groupStudent[toolindex][gindex][3] &&
  5291. groupJson.islock == 2,
  5292. }"><span class="updateChairBtn" @click="
  5293. updateGroupChair(
  5294. groupStudent[toolindex][gindex] &&
  5295. groupStudent[toolindex][gindex][3]
  5296. )
  5297. ">修改</span></span><span>{{
  5298. groupStudent[toolindex][gindex] &&
  5299. groupStudent[toolindex][gindex][3]
  5300. ? groupStudent[toolindex][gindex] &&
  5301. groupStudent[toolindex][gindex][3].name
  5302. : "空位置"
  5303. }}</span>
  5304. </div>
  5305. <div v-if="groupJson.number > 7">
  5306. <span :class="{
  5307. isChair:
  5308. groupStudent[toolindex][gindex] &&
  5309. groupStudent[toolindex][gindex][7],
  5310. updateChair:
  5311. courseDetail.userid == userid &&
  5312. groupStudent[toolindex][gindex] &&
  5313. groupStudent[toolindex][gindex][7] &&
  5314. groupJson.islock == 2,
  5315. }"><span class="updateChairBtn" @click="
  5316. updateGroupChair(
  5317. groupStudent[toolindex][gindex] &&
  5318. groupStudent[toolindex][gindex][7]
  5319. )
  5320. ">修改</span></span><span>{{
  5321. groupStudent[toolindex][gindex] &&
  5322. groupStudent[toolindex][gindex][7]
  5323. ? groupStudent[toolindex][gindex] &&
  5324. groupStudent[toolindex][gindex][7].name
  5325. : "空位置"
  5326. }}</span>
  5327. </div>
  5328. </div>
  5329. </div>
  5330. <div class="g_d_group_chair">
  5331. <div v-if="groupJson.number > 1">
  5332. <span :class="{
  5333. isChair:
  5334. groupStudent[toolindex][gindex] &&
  5335. groupStudent[toolindex][gindex][1],
  5336. updateChair:
  5337. courseDetail.userid == userid &&
  5338. groupStudent[toolindex][gindex] &&
  5339. groupStudent[toolindex][gindex][1] &&
  5340. groupJson.islock == 2,
  5341. }"><span class="updateChairBtn" @click="
  5342. updateGroupChair(
  5343. groupStudent[toolindex][gindex] &&
  5344. groupStudent[toolindex][gindex][1]
  5345. )
  5346. ">修改</span></span><span>{{
  5347. groupStudent[toolindex][gindex] &&
  5348. groupStudent[toolindex][gindex][1]
  5349. ? groupStudent[toolindex][gindex] &&
  5350. groupStudent[toolindex][gindex][1].name
  5351. : "空位置"
  5352. }}</span>
  5353. </div>
  5354. <div v-if="groupJson.number > 5">
  5355. <span :class="{
  5356. isChair:
  5357. groupStudent[toolindex][gindex] &&
  5358. groupStudent[toolindex][gindex][5],
  5359. updateChair:
  5360. courseDetail.userid == userid &&
  5361. groupStudent[toolindex][gindex] &&
  5362. groupStudent[toolindex][gindex][5] &&
  5363. groupJson.islock == 2,
  5364. }"><span class="updateChairBtn" @click="
  5365. updateGroupChair(
  5366. groupStudent[toolindex][gindex] &&
  5367. groupStudent[toolindex][gindex][5]
  5368. )
  5369. ">修改</span></span><span>{{
  5370. groupStudent[toolindex][gindex] &&
  5371. groupStudent[toolindex][gindex][5]
  5372. ? groupStudent[toolindex][gindex] &&
  5373. groupStudent[toolindex][gindex][5].name
  5374. : "空位置"
  5375. }}</span>
  5376. </div>
  5377. <div v-if="groupJson.number > 9">
  5378. <span :class="{
  5379. isChair:
  5380. groupStudent[toolindex][gindex] &&
  5381. groupStudent[toolindex][gindex][9],
  5382. updateChair:
  5383. courseDetail.userid == userid &&
  5384. groupStudent[toolindex][gindex] &&
  5385. groupStudent[toolindex][gindex][9] &&
  5386. groupJson.islock == 2,
  5387. }"><span class="updateChairBtn" @click="
  5388. updateGroupChair(
  5389. groupStudent[toolindex][gindex] &&
  5390. groupStudent[toolindex][gindex][9]
  5391. )
  5392. ">修改</span></span><span>{{
  5393. groupStudent[toolindex][gindex] &&
  5394. groupStudent[toolindex][gindex][9]
  5395. ? groupStudent[toolindex][gindex] &&
  5396. groupStudent[toolindex][gindex][9].name
  5397. : "空位置"
  5398. }}</span>
  5399. </div>
  5400. </div>
  5401. </div>
  5402. </div>
  5403. </div>
  5404. </div>
  5405. <span slot="footer" class="dialog-footer">
  5406. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  5407. </span>
  5408. </el-dialog>
  5409. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
  5410. :before-close="handleClose" class="dialog_diy">
  5411. <div class="groupBox">
  5412. <div v-if="groupJson2.group" class="groupContent">
  5413. <div class="groupTitle">请设置小组数量</div>
  5414. <div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
  5415. <span class="groupn">组{{ index + 1 }}名称:</span>
  5416. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  5417. <!-- <div class="groupBtn">
  5418. <el-button type="primary" size="small" @click="addGroup(index)">
  5419. 添加</el-button>
  5420. <el-button type="primary" size="small" @click="deleteGroup(index)"
  5421. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  5422. </div> -->
  5423. </div>
  5424. </div>
  5425. <div class="groupContent">
  5426. <div class="groupTitle">请设置每组人数数量</div>
  5427. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  5428. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  5429. <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
  5430. placeholder="2-10人以内"></el-input-number>
  5431. </div>
  5432. </div>
  5433. <span slot="footer" class="dialog-footer">
  5434. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  5435. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  5436. </span>
  5437. </el-dialog>
  5438. <el-dialog title="作业提交" :visible.sync="dialogVisibleGroupWork" :append-to-body="true" width="500px"
  5439. :before-close="handleClose" class="dialog_change">
  5440. <div class="marginT">
  5441. <div>上传文件</div>
  5442. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  5443. <div class="up_photo">
  5444. <img src="../assets/icon/uploadImg.png" alt />
  5445. </div>
  5446. <!-- <input
  5447. type="file"
  5448. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  5449. style="display: none"
  5450. @change="beforeUpload1($event, 1)"
  5451. /> -->
  5452. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  5453. </div>
  5454. <!-- capture="camera" -->
  5455. <div class="chapter_add" style="
  5456. display: flex;
  5457. width: 100%;
  5458. flex-direction: row;
  5459. flex-wrap: wrap;
  5460. justify-content: flex-start;
  5461. padding: 15px 0;
  5462. " v-if="studyJuri[0].cover.length > 0">
  5463. <div class="upCover">
  5464. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  5465. <img :src="word" alt v-else-if="fileType == 1" />
  5466. <img :src="video" alt v-else-if="fileType == 2" />
  5467. <img :src="word2" alt v-else-if="fileType == 3" />
  5468. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  5469. <div class="deleteWord" @click="clean(1)">
  5470. <img src="../assets/icon/deleteWorks.png" alt />
  5471. </div>
  5472. </div>
  5473. </div>
  5474. </div>
  5475. <div class="upload_send" @click="addCourseWorks2(taskCount)" v-if="!proVisible">
  5476. 提交
  5477. </div>
  5478. </el-dialog>
  5479. <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
  5480. :before-close="handleClose" class="dialog_diy">
  5481. <div>
  5482. <h2>
  5483. {{ this.updateGroupUser.name }}
  5484. </h2>
  5485. <div style="color: rgb(171 171 171); margin-top: 10px">
  5486. 请选择要进入的分组
  5487. </div>
  5488. <el-radio-group v-model="checkChair">
  5489. <el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray" :label="item.label"
  5490. :key="index">{{ item.name }}</el-radio>
  5491. </el-radio-group>
  5492. </div>
  5493. <span slot="footer" class="dialog-footer">
  5494. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  5495. <el-button type="primary" @click="updateChair">确定</el-button>
  5496. </span>
  5497. </el-dialog>
  5498. <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
  5499. :before-close="handleClose" class="dialog_diy">
  5500. <div>
  5501. <h2>
  5502. {{ this.deleteGroupArray.name }}
  5503. </h2>
  5504. <div style="color: rgb(171 171 171); margin-top: 10px">
  5505. 请选择要删除的组员
  5506. </div>
  5507. <el-checkbox-group v-model="checkDeleteGroup">
  5508. <el-checkbox style="display: block; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
  5509. :label="item.userid" :key="index">{{ item.name }}</el-checkbox>
  5510. </el-checkbox-group>
  5511. </div>
  5512. <span slot="footer" class="dialog-footer">
  5513. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  5514. <el-button type="primary" @click="deleteChair">确定</el-button>
  5515. </span>
  5516. </el-dialog>
  5517. <el-dialog title="批量上传" :visible.sync="dialogVisiblePl" :append-to-body="true" width="700px"
  5518. :before-close="handleClose" class="dialog_change">
  5519. <div class="marginT">
  5520. <div>上传文件</div>
  5521. <div class="plworkBox">
  5522. <div class="chapter_add" style="
  5523. display: flex;
  5524. width: 150px;
  5525. flex-direction: row;
  5526. flex-wrap: wrap;
  5527. justify-content: flex-start;
  5528. margin: 0 10px 10px 0;
  5529. " v-for="(item, index) in plworkFile" :key="index">
  5530. <div class="upCover2">
  5531. <img :src="item.url" alt v-if="item.fileType == 1" />
  5532. <img :src="word" alt v-else-if="item.fileType == 4" />
  5533. <img :src="video" alt v-else />
  5534. <!-- <span class="picName">{{ item.name }}</span> -->
  5535. <!-- <el-input
  5536. v-model="item.username"
  5537. placeholder="请输入学生名字"
  5538. style="margin-top: 10px"
  5539. ></el-input> -->
  5540. <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  5541. <el-option v-for="item1 in checkUpload()" :key="item1.userid"
  5542. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  5543. </el-option>
  5544. </el-select>
  5545. <div class="deleteWord" @click="clean2(index)">
  5546. <img src="../assets/icon/deleteWorks.png" alt />
  5547. </div>
  5548. </div>
  5549. </div>
  5550. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  5551. <div class="up_photo2">
  5552. <img src="../assets/icon/plwork.png" alt />
  5553. <span>点击批量上传文件</span>
  5554. </div>
  5555. <input type="file"
  5556. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  5557. multiple="multiple" style="display: none" @change="beforeUpload3($event, 6)" />
  5558. </div>
  5559. </div>
  5560. </div>
  5561. <!-- capture="camera" -->
  5562. <div class="upload_send" @click="addCourseWorksPl(taskCount)" v-if="!proVisible2">
  5563. 提交
  5564. </div>
  5565. </el-dialog>
  5566. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  5567. class="dialog_diy" center>
  5568. <div style="text-align: center">
  5569. <span class="tian1">名称</span>
  5570. <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  5571. placeholder="请选择学生">
  5572. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  5573. :value="item.userid">
  5574. </el-option>
  5575. </el-select>
  5576. <!-- <el-input
  5577. v-model="worksSName"
  5578. style="width: 250px; margin: 15px 0px"
  5579. ></el-input> -->
  5580. </div>
  5581. <span slot="footer" class="dialog-footer">
  5582. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  5583. <el-button type="primary" @click="updateName">确 定</el-button>
  5584. </span>
  5585. </el-dialog>
  5586. </div>
  5587. </template>
  5588. <script>
  5589. import "../common/aws-sdk-2.235.1.min.js";
  5590. // import pdf from "./components/pdf3";
  5591. import pdf from "./components/vpdf";
  5592. import AskStatic from "./components/askStatic";
  5593. import AskStatic2 from "./components/askStatic2";
  5594. import AnswerData2 from "./components/answerData2";
  5595. import AnswerData from "./components/answerData";
  5596. import EditorBar from "./tools/wangEnduit.vue";
  5597. import Table from "./tools/table.vue";
  5598. import Time from "./tools/time.vue";
  5599. import Mind from "./tools/jsmind.vue";
  5600. import Sunburst from "./tools/sunburst";
  5601. import SeeBoard from "./tools/seeBoard";
  5602. import * as imageConversion from "image-conversion";
  5603. import Audio from "./components/audio.vue";
  5604. import ImgDraw from "./tools/imgDraw/imgDraw";
  5605. import { Empty } from "element-ui";
  5606. import RecordRTC from "recordrtc";
  5607. export default {
  5608. components: {
  5609. EditorBar,
  5610. Time,
  5611. pdf,
  5612. AskStatic,
  5613. AskStatic2,
  5614. Mind,
  5615. Sunburst,
  5616. SeeBoard,
  5617. AnswerData2,
  5618. AnswerData,
  5619. Audio,
  5620. ImgDraw,
  5621. Table,
  5622. },
  5623. data() {
  5624. return {
  5625. bg: null,
  5626. drawShow: false,
  5627. dialogVisible: false,
  5628. dialogVisiblePl: false,
  5629. commentDialogVisible: false,
  5630. videoVisible: false,
  5631. isStar: false,
  5632. studentEvalDialogVisible: false,
  5633. studentEvalDialogVisibleTeacher:false,
  5634. dialogVisibleSelect: false,
  5635. dialogVisibleSelectTeacher:false,
  5636. dialogVisibleScore: false,
  5637. dialogVisibleSentence: false,
  5638. dialogVisibleSentenceTeacher:false,
  5639. dialogVisibleSentence1: false,
  5640. dialogVisibleWorks: false,
  5641. dialogVisibleTable: false,
  5642. dialogVisibleTableTeacher:false,
  5643. dialogVisibleWord: false,
  5644. dialogVisibleWordTeacher:false,
  5645. dialogVisibleTable2: false,
  5646. dialogVisibleGroupWork: false,
  5647. dialogVisibleUpdateGroup: false,
  5648. dialogVisibleDeleteGroup: false,
  5649. dialogVisibleSname: false,
  5650. worksSName: "",
  5651. classJuri: [],
  5652. uploadStudentJuri: [],
  5653. uploadCid: "",
  5654. snameWid: "",
  5655. sStudent: {},
  5656. sTool: "",
  5657. bzText: "",
  5658. commentDetail: [],
  5659. selectAnswer: [],
  5660. videoDetail: {},
  5661. selectJson: {},
  5662. eScore: { eBzText: "", eStar: [] },
  5663. id: this.$route.query.courseId,
  5664. userid: this.$route.query.userid,
  5665. classId: this.$route.query.cid,
  5666. // courseTypeLine: this.$route.query.type,
  5667. oid: this.$route.query.oid,
  5668. org: this.$route.query.org,
  5669. tType: this.$route.query.tType,
  5670. courseType: this.$route.query.type,
  5671. screenType: this.$route.query.screenType,
  5672. tcid2: this.$route.query.tcid,
  5673. tcid: "",
  5674. pptImgUrl: "",
  5675. pptImgUrl1: "",
  5676. commentText: "",
  5677. full: false,
  5678. sIsOpen: false,
  5679. IsLookOpen: false,
  5680. IsFollow: false,
  5681. pzDialog: false,
  5682. contentDialog: false,
  5683. mlDialog: false,
  5684. type: 1,
  5685. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5686. sentenceList1: [],
  5687. tableJson: [],
  5688. wordJson: [],
  5689. vedio: [],
  5690. text: [],
  5691. textList: [],
  5692. line: [],
  5693. lineList: [],
  5694. chapTools: [],
  5695. chapToolList: [],
  5696. file: [],
  5697. fileC: [],
  5698. vedioTime: [],
  5699. upToolImg: "",
  5700. preTime: 0,
  5701. rateList: {
  5702. ca: 0,
  5703. },
  5704. rateParams: [],
  5705. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  5706. studyJuri: [
  5707. {
  5708. content: "",
  5709. cover: [],
  5710. upVedio: [],
  5711. upFile: [],
  5712. },
  5713. ],
  5714. plworkFile: [],
  5715. mr: require("../assets/vedioPic.png"),
  5716. word: require("../assets/icon/isWord.png"),
  5717. word2: require("../assets/icon/word2.png"),
  5718. video: require("../assets/icon/isVideo.png"),
  5719. noLikes: require("../assets/icon/comment/noLikes.png"),
  5720. likes: require("../assets/icon/comment/likes.png"),
  5721. scoreImg: require("../assets/score.png"),
  5722. courseDetail: {},
  5723. isSelect: false,
  5724. chapInfo: [],
  5725. chapInfoList: [],
  5726. taskCount: 0,
  5727. imgList: [],
  5728. noImgList: [],
  5729. pzList: [],
  5730. PlTextList: [
  5731. "Excellent!",
  5732. "nice!",
  5733. "很有创意!",
  5734. "还不错哦~",
  5735. "继续努力哦~",
  5736. ],
  5737. isClickNav: "",
  5738. navId: "",
  5739. playerOptions: {
  5740. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5741. autoplay: false, //如果true,浏览器准备好时开始回放。
  5742. muted: false, // 默认情况下将会消除任何音频。
  5743. loop: false, // 导致视频一结束就重新开始。
  5744. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5745. language: "zh-CN",
  5746. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5747. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5748. sources: [
  5749. {
  5750. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5751. src: "", //url地址require("../../assets/media/aaa.mp4")
  5752. },
  5753. ],
  5754. // poster: require("../../assets/tu31.png"), //你的封面地址
  5755. // poster: dataRes.imgUrl, //你的封面地址
  5756. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5757. controlBar: {
  5758. timeDivider: true, //当前时间和持续时间的分隔符
  5759. durationDisplay: true, //显示持续时间
  5760. remainingTimeDisplay: false, //是否显示剩余时间功能
  5761. fullscreenToggle: true, //全屏按钮
  5762. },
  5763. },
  5764. playerOptions1: {
  5765. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5766. autoplay: false, //如果true,浏览器准备好时开始回放。
  5767. muted: false, // 默认情况下将会消除任何音频。
  5768. loop: false, // 导致视频一结束就重新开始。
  5769. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5770. language: "zh-CN",
  5771. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5772. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5773. sources: [
  5774. {
  5775. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5776. src: "", //url地址require("../../assets/media/aaa.mp4")
  5777. },
  5778. ],
  5779. // poster: require("../../assets/tu31.png"), //你的封面地址
  5780. // poster: dataRes.imgUrl, //你的封面地址
  5781. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5782. controlBar: {
  5783. timeDivider: true, //当前时间和持续时间的分隔符
  5784. durationDisplay: true, //显示持续时间
  5785. remainingTimeDisplay: false, //是否显示剩余时间功能
  5786. fullscreenToggle: true, //全屏按钮
  5787. },
  5788. },
  5789. playerO: {},
  5790. noneBtnImg: false,
  5791. proVisible: false,
  5792. proVisible2: false,
  5793. progress: 0,
  5794. isFinishSize: 0,
  5795. isAllSize: 0,
  5796. questionAnswer: "",
  5797. answerQ: "", //问答标题
  5798. rateJson: [],
  5799. wbCount: 0,
  5800. wordCount: 0,
  5801. mindCount: 0,
  5802. askCount: 0,
  5803. noteCount: 0,
  5804. mindNetWorkCount: 0,
  5805. libraryCount: 0,
  5806. workCount: 0,
  5807. timeCount: 0,
  5808. answerCount: 0,
  5809. trainCount: 0,
  5810. evalCount: 0,
  5811. dialogImageUrl: "",
  5812. pictureDialog: false,
  5813. toolTypeList: [],
  5814. dialogVisible1: false,
  5815. dialogVisible2: false,
  5816. dialogVisible3: false,
  5817. dialogVisible6: false,
  5818. dialogVisible4: false,
  5819. isNoHomeWork: false,
  5820. dialogVisible5: false,
  5821. dialogVisible5Teacher:false,
  5822. dialogVisibleChoice: false,
  5823. dialogVisibleChoiceTeacher:false,
  5824. answerDialogVisible: false,
  5825. answerDialogVisibleTeacher:false,
  5826. juriVisible: false,
  5827. timeDialogVisible: false,
  5828. radio: [],
  5829. isAsk: false,
  5830. askJson: {
  5831. askCount: 1,
  5832. askTitle: "",
  5833. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5834. },
  5835. testJson: {},
  5836. checkJson: [],
  5837. askList: [],
  5838. answerList: [],
  5839. navList: [],
  5840. addPzDialog: false,
  5841. pzConText: "",
  5842. worksStudent: [],
  5843. isCloseList: [],
  5844. workStudent: [],
  5845. groupStudent: [],
  5846. groupStudentUid: [],
  5847. noWorksS: [],
  5848. isWorksS: [],
  5849. noWorksStudent: [],
  5850. toolindex: 0,
  5851. groupIndex: 0,
  5852. workTypeB: false,
  5853. workTypeC: false,
  5854. isAnswer: false,
  5855. timer: null,
  5856. opertimer: null,
  5857. showType: 0,
  5858. fileType: 0,
  5859. showPDF: false,
  5860. noteName: "",
  5861. evaJuri: [],
  5862. evalua: "",
  5863. eTitle: "",
  5864. eName: "",
  5865. eJson: {},
  5866. fid: "", //一级
  5867. sid: "", //二级
  5868. tid: "", //二级
  5869. typeMode: 1,
  5870. eJSONNum: 0,
  5871. Etype: 1,
  5872. data: {
  5873. meta: {
  5874. name: "example",
  5875. author: "dd@163.com",
  5876. version: "0.2",
  5877. },
  5878. format: "node_array",
  5879. data: [{ id: "root", isroot: true, topic: "" }],
  5880. },
  5881. fullDialogVisible: false,
  5882. fulltype: "",
  5883. fullUrl: "",
  5884. commentIndexJson: {},
  5885. Stbodywidth: 0,
  5886. pzType: 1,
  5887. wScore: 0,
  5888. scoreDetail: "",
  5889. videoStart: false,
  5890. recorder: null,
  5891. groupJson: {},
  5892. islock: false,
  5893. groupJson2: {},
  5894. dialogVisibleGroup: false,
  5895. dialogVisibleGroup2: false,
  5896. updateGroupArray: [],
  5897. updateGroupUser: {},
  5898. deleteGroupUser: [],
  5899. deleteGroupArray: {},
  5900. checkChair: "",
  5901. checkDeleteGroup: [],
  5902. inviteCode: "",
  5903. courseGroupStudent: [],
  5904. courseGroupStudentUid: [],
  5905. courseGroup: {},
  5906. isGroup: false,
  5907. };
  5908. },
  5909. methods: {
  5910. jump() {
  5911. window.parent.postMessage({ tools: "43" }, "*");
  5912. },
  5913. previewImg(url) {
  5914. this.$hevueImgPreview(url);
  5915. },
  5916. change(val) {
  5917. console.log(val);
  5918. },
  5919. goTo(path) {
  5920. this.$router.push(path);
  5921. },
  5922. handlePictureCardPreview(url) {
  5923. this.dialogImageUrl = url;
  5924. this.pictureDialog = true;
  5925. },
  5926. clean(type) {
  5927. if (type == 1) {
  5928. this.studyJuri[0].cover.splice(0, 1);
  5929. } else if (type == 2) {
  5930. this.studyJuri[0].upVedio.splice(0, 1);
  5931. } else {
  5932. this.studyJuri[0].upFile.splice(0, 1);
  5933. }
  5934. },
  5935. clean2(index) {
  5936. this.plworkFile.splice(index, 1);
  5937. },
  5938. handleClose(done) {
  5939. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  5940. this.videoDetail.sources[0].src = "";
  5941. }
  5942. this.commentIndexJson = {};
  5943. done();
  5944. },
  5945. fullTools() {
  5946. this.full = !this.full;
  5947. },
  5948. imgChange(file, fileList, type) {
  5949. if (type == 1) {
  5950. var _tmp = this.studyJuri[0].cover;
  5951. } else if (type == 2) {
  5952. var _tmp = this.studyJuri[0].upVedio;
  5953. } else {
  5954. var _tmp = this.studyJuri[0].upFile;
  5955. }
  5956. this.noneBtnImg = _tmp.length >= 1;
  5957. },
  5958. setContent(bool) {
  5959. this.contentDialog = bool
  5960. if (bool && this.mlDialog && document.querySelector('.workd_media')) {
  5961. document.querySelector('.workd_media').style.height = "650px"
  5962. } else if(document.querySelector('.workd_media')){
  5963. document.querySelector('.workd_media').style.height = "auto"
  5964. }
  5965. },
  5966. setContent2(bool) {
  5967. this.mlDialog = bool
  5968. if (bool && this.contentDialog && document.querySelector('.workd_media')) {
  5969. document.querySelector('.workd_media').style.height = "650px"
  5970. } else if(document.querySelector('.workd_media')){
  5971. document.querySelector('.workd_media').style.height = "auto"
  5972. }
  5973. },
  5974. addImg(e) {
  5975. var el = e.currentTarget;
  5976. // this.$message.success('触发上传')
  5977. el.getElementsByTagName("input")[0].click();
  5978. e.target.value = "";
  5979. },
  5980. addSelectAnswer() {
  5981. let params = [
  5982. {
  5983. uid: this.userid,
  5984. cid: this.id,
  5985. stage: this.courseType,
  5986. task: this.taskCount,
  5987. tool: this.toolindex,
  5988. content: this.selectAnswer.answer,
  5989. type: 7,
  5990. },
  5991. ];
  5992. this.ajax
  5993. .post(this.$store.state.api + "addCourseWorks", params)
  5994. .then((res) => {
  5995. this.$message({
  5996. message: "提交成功",
  5997. type: "success",
  5998. });
  5999. this.dialogVisibleSelect = false;
  6000. // this.selectAnswer = {};
  6001. this.selectSWorks();
  6002. this.selectStudent();
  6003. })
  6004. .catch((err) => {
  6005. this.$message.error("提交失败");
  6006. console.error(err);
  6007. });
  6008. },
  6009. addSelectAnswerTeacher() {
  6010. let params = [
  6011. {
  6012. uid: this.sStudent.userid,
  6013. cid: this.id,
  6014. stage: this.courseType,
  6015. task: this.taskCount,
  6016. tool: this.toolindex,
  6017. content: this.selectAnswer.answer,
  6018. type: 7,
  6019. },
  6020. ];
  6021. this.ajax
  6022. .post(this.$store.state.api + "addCourseWorks", params)
  6023. .then((res) => {
  6024. this.$message({
  6025. message: "提交成功",
  6026. type: "success",
  6027. });
  6028. this.dialogVisibleSelectTeacher = false;
  6029. // this.selectAnswer = {};
  6030. this.selectSWorks();
  6031. this.selectStudent();
  6032. })
  6033. .catch((err) => {
  6034. this.$message.error("提交失败");
  6035. console.error(err);
  6036. });
  6037. },
  6038. addSenWorks() {
  6039. for (var i = 0; i < this.sentenceList.length; i++) {
  6040. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  6041. if (
  6042. this.sentenceList[i].chooseSenList[j] == undefined ||
  6043. this.sentenceList[i].chooseSenList[j] == ""
  6044. ) {
  6045. this.$message.error("请将答案填写完整!");
  6046. return;
  6047. }
  6048. }
  6049. }
  6050. let params = [
  6051. {
  6052. uid: this.userid,
  6053. cid: this.id,
  6054. stage: this.courseType,
  6055. task: this.taskCount,
  6056. tool: this.toolindex,
  6057. content: JSON.stringify(this.sentenceList),
  6058. type: 9,
  6059. },
  6060. ];
  6061. this.ajax
  6062. .post(this.$store.state.api + "addCourseWorks", params)
  6063. .then((res) => {
  6064. this.$message({
  6065. message: "提交成功",
  6066. type: "success",
  6067. });
  6068. this.dialogVisibleSentence = false;
  6069. // this.selectAnswer = {};
  6070. this.selectSWorks();
  6071. this.selectStudent();
  6072. })
  6073. .catch((err) => {
  6074. this.$message.error("提交失败");
  6075. console.error(err);
  6076. });
  6077. },
  6078. addSenWorksTeacher() {
  6079. for (var i = 0; i < this.sentenceList.length; i++) {
  6080. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  6081. if (
  6082. this.sentenceList[i].chooseSenList[j] == undefined ||
  6083. this.sentenceList[i].chooseSenList[j] == ""
  6084. ) {
  6085. this.$message.error("请将答案填写完整!");
  6086. return;
  6087. }
  6088. }
  6089. }
  6090. let params = [
  6091. {
  6092. uid: this.sStudent.userid,
  6093. cid: this.id,
  6094. stage: this.courseType,
  6095. task: this.taskCount,
  6096. tool: this.toolindex,
  6097. content: JSON.stringify(this.sentenceList),
  6098. type: 9,
  6099. },
  6100. ];
  6101. this.ajax
  6102. .post(this.$store.state.api + "addCourseWorks", params)
  6103. .then((res) => {
  6104. this.$message({
  6105. message: "提交成功",
  6106. type: "success",
  6107. });
  6108. this.dialogVisibleSentenceTeacher = false;
  6109. // this.selectAnswer = {};
  6110. this.selectSWorks();
  6111. this.selectStudent();
  6112. })
  6113. .catch((err) => {
  6114. this.$message.error("提交失败");
  6115. console.error(err);
  6116. });
  6117. },
  6118. addTableWorks() {
  6119. let params = [
  6120. {
  6121. uid: this.userid,
  6122. cid: this.id,
  6123. stage: this.courseType,
  6124. task: this.taskCount,
  6125. tool: this.toolindex,
  6126. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  6127. type: 10,
  6128. },
  6129. ];
  6130. this.ajax
  6131. .post(this.$store.state.api + "addCourseWorks", params)
  6132. .then((res) => {
  6133. this.$message({
  6134. message: "提交成功",
  6135. type: "success",
  6136. });
  6137. this.dialogVisibleTable = false;
  6138. // this.selectAnswer = {};
  6139. this.selectSWorks();
  6140. this.selectStudent();
  6141. })
  6142. .catch((err) => {
  6143. this.$message.error("提交失败");
  6144. console.error(err);
  6145. });
  6146. },
  6147. addTableWorksTeacher() {
  6148. let params = [
  6149. {
  6150. uid: this.sStudent.userid,
  6151. cid: this.id,
  6152. stage: this.courseType,
  6153. task: this.taskCount,
  6154. tool: this.toolindex,
  6155. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  6156. type: 10,
  6157. },
  6158. ];
  6159. this.ajax
  6160. .post(this.$store.state.api + "addCourseWorks", params)
  6161. .then((res) => {
  6162. this.$message({
  6163. message: "提交成功",
  6164. type: "success",
  6165. });
  6166. this.dialogVisibleTableTeacher = false;
  6167. // this.selectAnswer = {};
  6168. this.selectSWorks();
  6169. this.selectStudent();
  6170. })
  6171. .catch((err) => {
  6172. this.$message.error("提交失败");
  6173. console.error(err);
  6174. });
  6175. },
  6176. addWordWorks() {
  6177. let params = {
  6178. uid: this.userid,
  6179. cid: this.id,
  6180. stage: this.courseType,
  6181. task: this.taskCount,
  6182. tool: this.toolindex,
  6183. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  6184. type: 13,
  6185. atool: 52,
  6186. };
  6187. console.log(params);
  6188. this.ajax
  6189. .get(this.$store.state.api + "addCourseWorks3", params)
  6190. .then((res) => {
  6191. this.$message({
  6192. message: "提交成功",
  6193. type: "success",
  6194. });
  6195. this.dialogVisibleWord = false;
  6196. // this.selectAnswer = {};
  6197. this.selectSWorks();
  6198. this.selectStudent();
  6199. })
  6200. .catch((err) => {
  6201. this.$message.error("提交失败");
  6202. console.error(err);
  6203. });
  6204. },
  6205. addWordWorksTeacher() {
  6206. let params = {
  6207. uid: this.sStudent.userid,
  6208. cid: this.id,
  6209. stage: this.courseType,
  6210. task: this.taskCount,
  6211. tool: this.toolindex,
  6212. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  6213. type: 13,
  6214. atool: 52,
  6215. };
  6216. console.log(params);
  6217. this.ajax
  6218. .get(this.$store.state.api + "addCourseWorks3", params)
  6219. .then((res) => {
  6220. this.$message({
  6221. message: "提交成功",
  6222. type: "success",
  6223. });
  6224. this.dialogVisibleWordTeacher = false;
  6225. // this.selectAnswer = {};
  6226. this.selectSWorks();
  6227. this.selectStudent();
  6228. })
  6229. .catch((err) => {
  6230. this.$message.error("提交失败");
  6231. console.error(err);
  6232. });
  6233. },
  6234. addCourseWorks(i) {
  6235. var typesql;
  6236. if (this.fileType === 0) {
  6237. typesql = 1;
  6238. } else if (this.fileType === 1) {
  6239. typesql = 4;
  6240. } else if (this.fileType === 2) {
  6241. typesql = 5;
  6242. } else if (this.fileType === 3) {
  6243. typesql = 12;
  6244. }
  6245. if (!this.studyJuri[0].cover[0].url) {
  6246. this.$message.error("请上传文件");
  6247. return;
  6248. }
  6249. let params = [
  6250. {
  6251. uid: this.userid,
  6252. cid: this.id,
  6253. stage: this.courseType,
  6254. task: i,
  6255. tool: this.toolindex,
  6256. content: this.studyJuri[0].cover[0].url,
  6257. type: typesql,
  6258. },
  6259. ];
  6260. this.ajax
  6261. .post(this.$store.state.api + "addCourseWorksR", params)
  6262. .then((res) => {
  6263. this.$message({
  6264. message: "提交成功",
  6265. type: "success",
  6266. });
  6267. this.studyJuri[0].cover = [];
  6268. this.dialogVisible = false;
  6269. this.getCourseDetail(2);
  6270. })
  6271. .catch((err) => {
  6272. this.$message.error("提交失败");
  6273. console.error(err);
  6274. });
  6275. },
  6276. addCourseWorksPl(i) {
  6277. let _files = this.plworkFile;
  6278. var c = 1;
  6279. for (var k = 0; k < _files.length; k++) {
  6280. if (!_files[k].username) {
  6281. c = 2;
  6282. }
  6283. }
  6284. if (c == 2) {
  6285. this.$message.error("请填写学生姓名");
  6286. return;
  6287. }
  6288. let params = [
  6289. {
  6290. ateacher: this.userid,
  6291. cid: this.id,
  6292. stage: this.courseType,
  6293. task: i,
  6294. tool: this.toolindex,
  6295. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  6296. },
  6297. ];
  6298. this.ajax
  6299. .post(this.$store.state.api + "addCourseWorksPl", params)
  6300. .then((res) => {
  6301. this.$message({
  6302. message: "提交成功",
  6303. type: "success",
  6304. });
  6305. this.plworkFile = [];
  6306. this.dialogVisiblePl = false;
  6307. this.getCourseDetail(2);
  6308. })
  6309. .catch((err) => {
  6310. this.$message.error("提交失败");
  6311. console.error(err);
  6312. });
  6313. },
  6314. addCourseWorks2(i) {
  6315. var typesql;
  6316. if (this.fileType === 0) {
  6317. typesql = 0;
  6318. } else if (this.fileType === 1) {
  6319. typesql = 1;
  6320. } else if (this.fileType === 2) {
  6321. typesql = 3;
  6322. } else if (this.fileType === 3) {
  6323. typesql = 12;
  6324. }
  6325. if (!this.studyJuri[0].cover[0].url) {
  6326. this.$message.error("请上传文件");
  6327. return;
  6328. }
  6329. let params = [
  6330. {
  6331. uid: this.userid,
  6332. cid: this.id,
  6333. stage: this.courseType,
  6334. task: i,
  6335. tool: this.toolindex,
  6336. content: JSON.stringify({
  6337. type: typesql,
  6338. groupIndex: this.groupIndex,
  6339. url: this.studyJuri[0].cover[0].url,
  6340. }).replaceAll(/%/g, "%25"),
  6341. type: 11,
  6342. atool: 49,
  6343. text: "",
  6344. },
  6345. ];
  6346. this.ajax
  6347. .post(this.$store.state.api + "addCourseWorks5", params)
  6348. .then((res) => {
  6349. this.$message({
  6350. message: "提交成功",
  6351. type: "success",
  6352. });
  6353. this.studyJuri[0].cover = [];
  6354. this.dialogVisibleGroupWork = false;
  6355. this.getCourseDetail(2);
  6356. })
  6357. .catch((err) => {
  6358. this.$message.error("提交失败");
  6359. console.error(err);
  6360. });
  6361. },
  6362. addCourseWorksGong(i, data, tool) {
  6363. let params = [
  6364. {
  6365. uid: this.userid,
  6366. cid: this.id,
  6367. stage: this.courseType,
  6368. task: this.taskCount,
  6369. tool: i,
  6370. content: data,
  6371. type: 12,
  6372. atool: tool,
  6373. text: "",
  6374. },
  6375. ];
  6376. this.ajax
  6377. .post(this.$store.state.api + "addCourseWorks5", params)
  6378. .then((res) => {
  6379. this.$message({
  6380. message: "提交成功",
  6381. type: "success",
  6382. });
  6383. this.studyJuri[0].cover = [];
  6384. this.selectSWorks();
  6385. this.selectStudent();
  6386. })
  6387. .catch((err) => {
  6388. this.$message.error("提交失败");
  6389. console.error(err);
  6390. });
  6391. },
  6392. addCourseWorksGongTeacher(i, data, tool) {
  6393. let params = [
  6394. {
  6395. uid: this.sStudent.userid,
  6396. cid: this.id,
  6397. stage: this.courseType,
  6398. task: this.taskCount,
  6399. tool: i,
  6400. content: data,
  6401. type: 12,
  6402. atool: tool,
  6403. text: "",
  6404. },
  6405. ];
  6406. this.ajax
  6407. .post(this.$store.state.api + "addCourseWorks5", params)
  6408. .then((res) => {
  6409. this.$message({
  6410. message: "提交成功",
  6411. type: "success",
  6412. });
  6413. this.studyJuri[0].cover = [];
  6414. this.dialogVisibleWorks = false;
  6415. this.selectSWorks();
  6416. this.selectStudent();
  6417. })
  6418. .catch((err) => {
  6419. this.$message.error("提交失败");
  6420. console.error(err);
  6421. });
  6422. },
  6423. addCourseWorksGongPl(i, data, tool, type) {
  6424. let params = [
  6425. {
  6426. uid: this.sStudent.userid,
  6427. cid: this.id,
  6428. stage: this.courseType,
  6429. task: this.taskCount,
  6430. tool: i,
  6431. content: data,
  6432. type: type,
  6433. atool: tool,
  6434. text: "",
  6435. },
  6436. ];
  6437. this.ajax
  6438. .post(this.$store.state.api + "addCourseWorks5", params)
  6439. .then((res) => {
  6440. this.$message({
  6441. message: "提交成功",
  6442. type: "success",
  6443. });
  6444. this.studyJuri[0].cover = [];
  6445. this.dialogVisibleWorks = false;
  6446. this.selectSWorks();
  6447. this.selectStudent();
  6448. })
  6449. .catch((err) => {
  6450. this.$message.error("提交失败");
  6451. console.error(err);
  6452. });
  6453. },
  6454. addCourseWorksTeacher(i) {
  6455. var typesql;
  6456. if (this.sTool == 32 || this.sTool == 57) {
  6457. this.addCourseWorksGongTeacher(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool);
  6458. return;
  6459. }
  6460. if (this.fileType === 0) {
  6461. typesql = 1;
  6462. } else if (this.fileType === 1) {
  6463. typesql = 4;
  6464. } else if (this.fileType === 2) {
  6465. typesql = 5;
  6466. } else if (this.fileType === 3) {
  6467. typesql = 12;
  6468. }
  6469. if (this.sTool == 50) {
  6470. this.addCourseWorksGongPl(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool, typesql);
  6471. return;
  6472. }
  6473. if (!this.studyJuri[0].cover[0].url) {
  6474. this.$message.error("请上传文件");
  6475. return;
  6476. }
  6477. let params = [
  6478. {
  6479. uid: this.sStudent.userid,
  6480. cid: this.id,
  6481. stage: this.courseType,
  6482. task: i,
  6483. tool: this.toolindex,
  6484. content: this.studyJuri[0].cover[0].url,
  6485. type: typesql,
  6486. ateacher: this.userid,
  6487. },
  6488. ];
  6489. this.ajax
  6490. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  6491. .then((res) => {
  6492. this.$message({
  6493. message: "提交成功",
  6494. type: "success",
  6495. });
  6496. this.studyJuri[0].cover = [];
  6497. this.dialogVisibleWorks = false;
  6498. this.getCourseDetail(2);
  6499. })
  6500. .catch((err) => {
  6501. this.$message.error("提交失败");
  6502. console.error(err);
  6503. });
  6504. },
  6505. selectUploadStudent() {
  6506. let params = {
  6507. cid: this.uploadCid,
  6508. oid: this.oid,
  6509. cn: '',
  6510. };
  6511. this.ajax
  6512. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  6513. .then((res) => {
  6514. var studentK = [];
  6515. if (this.isWorksS[this.toolindex].length > 0) {
  6516. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  6517. studentK.push(this.isWorksS[this.toolindex][z].uid);
  6518. }
  6519. studentK = studentK.join(",");
  6520. }
  6521. this.uploadStudentJuri = res.data[0].filter((el)=>{
  6522. return studentK.indexOf(el.userid) == -1
  6523. });
  6524. })
  6525. .catch((err) => {
  6526. console.error(err);
  6527. });
  6528. },
  6529. arrayToArray(arrayo, arrayt) {
  6530. let array1 = arrayo;
  6531. let array2 = arrayt;
  6532. let commonElements = [];
  6533. for (let i = 0; i < array1.length; i++) {
  6534. for (let j = 0; j < array2.length; j++) {
  6535. if (array1[i] === array2[j]) {
  6536. commonElements.push(array1[i]);
  6537. }
  6538. }
  6539. }
  6540. return commonElements
  6541. },
  6542. selectWorksStudent() {
  6543. let params = {
  6544. oid: this.oid,
  6545. cid: this.courseDetail.juri,
  6546. };
  6547. this.ajax
  6548. .get(this.$store.state.api + "selectWorksStudent", params)
  6549. .then((res) => {
  6550. var a = res.data[0];
  6551. for (var i = 0; i < this.isWorksS.length; i++) {
  6552. this.noWorksS[i] = [];
  6553. var studentK = [];
  6554. if (this.isWorksS[i].length > 0) {
  6555. for (var z = 0; z < this.isWorksS[i].length; z++) {
  6556. studentK.push(this.isWorksS[i][z].uid);
  6557. }
  6558. studentK = studentK.join(",");
  6559. for (var j = 0; j < a.length; j++) {
  6560. if (studentK.indexOf(a[j].userid) == -1) {
  6561. if (this.tcid) {
  6562. // a[j].classid.indexOf(this.tcid) != -1
  6563. if (this.arrayToArray(a[j].classid.split(","), this.tcid.split(",")).length) {
  6564. this.noWorksS[i].push({
  6565. student: a[j].name,
  6566. userid: a[j].userid,
  6567. });
  6568. }
  6569. } else {
  6570. this.noWorksS[i].push({
  6571. student: a[j].name,
  6572. userid: a[j].userid,
  6573. });
  6574. }
  6575. }
  6576. }
  6577. } else {
  6578. for (var k = 0; k < a.length; k++) {
  6579. if (this.tcid) {
  6580. if (this.arrayToArray(a[k].classid.split(","), this.tcid.split(",")).length) {
  6581. this.noWorksS[i].push({
  6582. student: a[k].name,
  6583. userid: a[k].userid,
  6584. });
  6585. }
  6586. } else {
  6587. this.noWorksS[i].push({
  6588. student: a[k].name,
  6589. userid: a[k].userid,
  6590. });
  6591. }
  6592. }
  6593. }
  6594. }
  6595. this.$forceUpdate();
  6596. if (
  6597. Object.keys(this.commentDetail).length &&
  6598. Object.keys(this.commentIndexJson).length &&
  6599. !this.dialogVisibleScore
  6600. ) {
  6601. let a = 1;
  6602. let c = this.commentIndexJson;
  6603. console.log(c);
  6604. if (
  6605. this.commentIndexJson.gindex ||
  6606. this.commentIndexJson.gindex === 0
  6607. ) {
  6608. for (
  6609. var i = 0;
  6610. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6611. i++
  6612. ) {
  6613. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6614. groupA: for (var k = 0; k < _el.length; k++) {
  6615. let el = _el[k];
  6616. if (el.wid == this.commentDetail.wid) {
  6617. a = 2;
  6618. this.commentOther(
  6619. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  6620. this.commentIndexJson.toolIndex,
  6621. k,
  6622. this.commentIndexJson.gindex
  6623. );
  6624. break groupA;
  6625. }
  6626. }
  6627. }
  6628. if (a === 1) {
  6629. this.commentDetail = [];
  6630. this.commentIndexJson = {};
  6631. this.commentDialogVisible = false;
  6632. this.$message("此作业已被删除");
  6633. }
  6634. } else {
  6635. if (this.isGroup && this.commentIndexJson.gid) {
  6636. groupA: for (
  6637. var i = 0;
  6638. i < this.courseGroup.group.length;
  6639. i++
  6640. ) {
  6641. let _group = this.courseGroup.group[i]
  6642. if (_group.id == this.commentIndexJson.gid) {
  6643. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  6644. for (var k = 0; k < _el2.length; k++) {
  6645. let el2 = _el2[k];
  6646. if (el2.wid == this.commentDetail.wid) {
  6647. a = 2;
  6648. this.commentOther(
  6649. _el2[k],
  6650. this.commentIndexJson.toolIndex,
  6651. k,
  6652. null,
  6653. this.commentIndexJson.gid
  6654. );
  6655. break groupA;
  6656. }
  6657. }
  6658. }
  6659. }
  6660. }
  6661. if (a == 1) {
  6662. for (
  6663. var i = 0;
  6664. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6665. i++
  6666. ) {
  6667. let el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6668. if (el.wid == this.commentDetail.wid) {
  6669. a = 2;
  6670. this.commentOther(
  6671. this.worksStudent[this.commentIndexJson.toolIndex][i],
  6672. this.commentIndexJson.toolIndex,
  6673. i
  6674. );
  6675. break;
  6676. }
  6677. }
  6678. }
  6679. if (a === 1) {
  6680. this.commentDetail = [];
  6681. this.commentIndexJson = {};
  6682. this.commentDialogVisible = false;
  6683. this.$message("此作业已被删除");
  6684. }
  6685. }
  6686. }
  6687. })
  6688. .catch((err) => {
  6689. console.error(err);
  6690. });
  6691. },
  6692. selectStudent() {
  6693. //学生查看自己作业
  6694. let params = {
  6695. uid: this.userid,
  6696. cid: this.id,
  6697. s: this.courseType,
  6698. t: this.taskCount,
  6699. };
  6700. this.ajax
  6701. .get(this.$store.state.api + "selectStudentWorks", params)
  6702. .then((res) => {
  6703. var a =
  6704. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6705. this.taskCount
  6706. ].toolChoose;
  6707. var b = res.data[0];
  6708. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  6709. var y = [
  6710. "AVI",
  6711. "NAVI",
  6712. "MPEG",
  6713. "ASF",
  6714. "MOV",
  6715. "WMV",
  6716. "3GP",
  6717. "RM",
  6718. "RMVB",
  6719. "FLV",
  6720. "F4V",
  6721. "H.264",
  6722. "H.265",
  6723. "REAL VIDEO",
  6724. "MKV",
  6725. "WebM",
  6726. "HDDVD",
  6727. "MP4",
  6728. "MPG",
  6729. "M4V",
  6730. "MGV",
  6731. "OGV",
  6732. "QTM",
  6733. "STR",
  6734. "AMC",
  6735. "DVX",
  6736. "EVO",
  6737. "DAT",
  6738. "OGG",
  6739. "OGM",
  6740. ];
  6741. for (var i = 0; i < a.length; i++) {
  6742. this.workStudent[i] = [];
  6743. for (var j = 0; j < b.length; j++) {
  6744. if (i == b[j].tool) {
  6745. if (
  6746. (b[j].type == 1 ||
  6747. b[j].type == 4 ||
  6748. b[j].type == 5 ||
  6749. b[j].type == 6 ||
  6750. b[j].type == 12 ||
  6751. b[j].type == 7) &&
  6752. a[i].tool[0] != 15 &&
  6753. a[i].tool[0] != 4 &&
  6754. a[i].tool[0] != 45 &&
  6755. a[i].tool[0] != 50 &&
  6756. a[i].tool[0] != 32 &&
  6757. a[i].tool[0] != 57 &&
  6758. a[i].tool[0] != 52
  6759. ) {
  6760. if (
  6761. c.indexOf(
  6762. b[j].content
  6763. .split(".")
  6764. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6765. ) != -1 &&
  6766. a[i].tool[0] == 16 &&
  6767. b[j].atool != 50
  6768. ) {
  6769. this.workStudent[i].push({
  6770. works: b[j].content,
  6771. sName: b[j].name,
  6772. score: b[j].score,
  6773. img: b[j].img,
  6774. type: 1,
  6775. time: b[j].time,
  6776. userid: b[j].userid,
  6777. wid: b[j].id,
  6778. });
  6779. } else if (
  6780. y.indexOf(
  6781. b[j].content
  6782. .split(".")
  6783. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6784. ) != -1 &&
  6785. a[i].tool[0] == 16 &&
  6786. b[j].atool != 50
  6787. ) {
  6788. this.workStudent[i].push({
  6789. userid: b[j].userid,
  6790. wid: b[j].id,
  6791. works: b[j].content,
  6792. sName: b[j].name,
  6793. score: b[j].score,
  6794. img: b[j].img,
  6795. type: 3,
  6796. time: b[j].time,
  6797. });
  6798. } else if (b[j].type == 6 && b[j].atool != 50) {
  6799. this.workStudent[i].push({
  6800. userid: b[j].userid,
  6801. wid: b[j].id,
  6802. works: b[j].content,
  6803. sName: b[j].name,
  6804. score: b[j].score,
  6805. img: b[j].img,
  6806. type: 4,
  6807. time: b[j].time,
  6808. });
  6809. } else if (b[j].type == 7 && b[j].atool != 50) {
  6810. this.workStudent[i].push({
  6811. userid: b[j].userid,
  6812. wid: b[j].id,
  6813. works: b[j].content,
  6814. sName: b[j].name,
  6815. score: b[j].score,
  6816. img: b[j].img,
  6817. type: 5,
  6818. time: b[j].time,
  6819. });
  6820. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  6821. this.workStudent[i].push({
  6822. works: b[j].content,
  6823. sName: b[j].name,
  6824. score: b[j].score,
  6825. img: b[j].img,
  6826. type: 12,
  6827. time: b[j].time,
  6828. userid: b[j].userid,
  6829. wid: b[j].id,
  6830. });
  6831. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  6832. this.workStudent[i].push({
  6833. works: b[j].content,
  6834. sName: b[j].name,
  6835. score: b[j].score,
  6836. img: b[j].img,
  6837. type: 0,
  6838. time: b[j].time,
  6839. userid: b[j].userid,
  6840. wid: b[j].id,
  6841. });
  6842. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  6843. this.workStudent[i].push({
  6844. works: b[j].content,
  6845. sName: b[j].name,
  6846. score: b[j].score,
  6847. img: b[j].img,
  6848. type: 0,
  6849. time: b[j].time,
  6850. userid: b[j].userid,
  6851. wid: b[j].id,
  6852. });
  6853. }
  6854. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  6855. this.workStudent[i].push({
  6856. works: b[j].content,
  6857. sName: b[j].name,
  6858. score: b[j].score,
  6859. img: b[j].img,
  6860. type: 2,
  6861. time: b[j].time,
  6862. userid: b[j].userid,
  6863. wid: b[j].id,
  6864. });
  6865. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  6866. //问卷
  6867. this.workStudent[i].push({
  6868. works: b[j].content,
  6869. sName: b[j].name,
  6870. score: b[j].score,
  6871. img: b[j].img,
  6872. type: 2,
  6873. time: b[j].time,
  6874. userid: b[j].userid,
  6875. wid: b[j].id,
  6876. });
  6877. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  6878. //选择题
  6879. this.workStudent[i].push({
  6880. works: b[j].content,
  6881. sName: b[j].name,
  6882. score: b[j].score,
  6883. img: b[j].img,
  6884. type: 8,
  6885. time: b[j].time,
  6886. userid: b[j].userid,
  6887. wid: b[j].id,
  6888. });
  6889. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  6890. //选择题
  6891. this.workStudent[i].push({
  6892. works: b[j].content,
  6893. sName: b[j].name,
  6894. score: b[j].score,
  6895. img: b[j].img,
  6896. type: 9,
  6897. time: b[j].time,
  6898. userid: b[j].userid,
  6899. wid: b[j].id,
  6900. });
  6901. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  6902. //选择题
  6903. this.workStudent[i].push({
  6904. works: b[j].content,
  6905. sName: b[j].name,
  6906. score: b[j].score,
  6907. img: b[j].img,
  6908. type: 10,
  6909. time: b[j].time,
  6910. userid: b[j].userid,
  6911. wid: b[j].id,
  6912. });
  6913. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  6914. //选择题
  6915. this.workStudent[i].push({
  6916. works: b[j].content,
  6917. sName: b[j].name,
  6918. score: b[j].score,
  6919. img: b[j].img,
  6920. type: 13,
  6921. time: b[j].time,
  6922. userid: b[j].userid,
  6923. wid: b[j].id,
  6924. });
  6925. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  6926. //选择题
  6927. this.workStudent[i].push({
  6928. works: b[j].content,
  6929. sName: b[j].name,
  6930. score: b[j].score,
  6931. img: b[j].img,
  6932. type: 12,
  6933. time: b[j].time,
  6934. userid: b[j].userid,
  6935. wid: b[j].id,
  6936. });
  6937. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  6938. //选择题
  6939. this.workStudent[i].push({
  6940. works: b[j].content,
  6941. sName: b[j].name,
  6942. score: b[j].score,
  6943. img: b[j].img,
  6944. type: 12,
  6945. time: b[j].time,
  6946. userid: b[j].userid,
  6947. wid: b[j].id,
  6948. });
  6949. }
  6950. }
  6951. }
  6952. }
  6953. })
  6954. .catch((err) => {
  6955. console.error(err);
  6956. });
  6957. },
  6958. openVideo(w) {
  6959. this.videoDetail = {};
  6960. this.playerOptions1.sources[0].src = w.works;
  6961. this.videoDetail = this.playerOptions1;
  6962. this.videoVisible = true;
  6963. },
  6964. isLikes(wid, uid, t, c, isLikes) {
  6965. if (isLikes == false) {
  6966. let params = [
  6967. {
  6968. wid: wid,
  6969. lid: uid,
  6970. t: t,
  6971. c: c,
  6972. },
  6973. ];
  6974. this.ajax
  6975. .post(this.$store.state.api + "insertComment", params)
  6976. .then((res) => {
  6977. this.$message({
  6978. message: "点赞成功",
  6979. type: "success",
  6980. });
  6981. this.selectSWorks();
  6982. this.selectStudent();
  6983. })
  6984. .catch((err) => {
  6985. this.$message.error("点赞失败");
  6986. console.error(err);
  6987. });
  6988. } else {
  6989. let params = {
  6990. wid: wid,
  6991. lid: uid,
  6992. type: t,
  6993. };
  6994. this.ajax
  6995. .get(this.$store.state.api + "deleteComment", params)
  6996. .then((res) => {
  6997. this.$message({
  6998. message: "取消点赞成功",
  6999. type: "success",
  7000. });
  7001. this.selectSWorks();
  7002. this.selectStudent();
  7003. })
  7004. .catch((err) => {
  7005. console.error(err);
  7006. });
  7007. }
  7008. },
  7009. deleteComment(wid) {
  7010. this.$confirm("确定删除此评论吗?", "提示", {
  7011. confirmButtonText: "确定",
  7012. cancelButtonText: "取消",
  7013. type: "warning",
  7014. })
  7015. .then(() => {
  7016. let params = {
  7017. id: wid,
  7018. };
  7019. this.ajax
  7020. .get(this.$store.state.api + "deleteComment2", params)
  7021. .then((res) => {
  7022. this.$message({
  7023. message: "删除评论成功",
  7024. type: "success",
  7025. });
  7026. this.selectSWorks();
  7027. this.selectStudent();
  7028. })
  7029. .catch((err) => {
  7030. console.error(err);
  7031. });
  7032. })
  7033. .catch(() => { });
  7034. },
  7035. commentOther(w, toolIndex, wIndex, gindex, gid) {
  7036. this.commentIndexJson = {
  7037. toolIndex: toolIndex,
  7038. wIndex: wIndex,
  7039. gindex: gindex,
  7040. gid: gid
  7041. };
  7042. this.commentDetail = [];
  7043. this.commentDialogVisible = true;
  7044. this.commentDetail = w;
  7045. if (w.works && w.type == 1) {
  7046. this.pptImgUrl = "";
  7047. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  7048. if (
  7049. a.indexOf(
  7050. w.works
  7051. .split(".")
  7052. [w.works.split(".").length - 1].toLocaleUpperCase()
  7053. ) != -1
  7054. ) {
  7055. this.pptImgUrl =
  7056. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  7057. this.showPDF = false;
  7058. } else if (
  7059. w.works
  7060. .split(".")
  7061. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  7062. ) {
  7063. this.pptImgUrl = w.works;
  7064. this.showPDF = true;
  7065. }
  7066. } else if (w.works && w.type == 3) {
  7067. this.videoDetail = {};
  7068. this.playerOptions1.sources[0].src = w.works;
  7069. this.videoDetail = this.playerOptions1;
  7070. // this.videoVisible = true;
  7071. } else if (w.works && w.type == 4) {
  7072. this.eScore = JSON.parse(w.works);
  7073. this.rateJson =
  7074. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7075. this.taskCount
  7076. ].toolChoose[toolIndex].rateJson;
  7077. } else if (w.works && w.type == 10) {
  7078. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  7079. } else if (w.works && w.type == 13) {
  7080. this.wordJson =
  7081. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7082. this.taskCount
  7083. ].toolChoose[toolIndex].wordJson;
  7084. }
  7085. },
  7086. openScore(w) {
  7087. this.wScore = 0;
  7088. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  7089. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  7090. this.commentDetail = [];
  7091. this.dialogVisibleScore = true;
  7092. this.commentDetail = w;
  7093. if (w.works && w.type == 1) {
  7094. this.pptImgUrl = "";
  7095. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  7096. if (
  7097. a.indexOf(
  7098. w.works
  7099. .split(".")
  7100. [w.works.split(".").length - 1].toLocaleUpperCase()
  7101. ) != -1
  7102. ) {
  7103. this.pptImgUrl =
  7104. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  7105. this.showPDF = false;
  7106. } else if (
  7107. w.works
  7108. .split(".")
  7109. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  7110. ) {
  7111. this.pptImgUrl = w.works;
  7112. this.showPDF = true;
  7113. }
  7114. } else if (w.works && w.type == 3) {
  7115. this.videoDetail = {};
  7116. this.playerOptions1.sources[0].src = w.works;
  7117. this.videoDetail = this.playerOptions1;
  7118. }
  7119. },
  7120. addComment(wid, uid, t) {
  7121. if (this.commentText == "") {
  7122. this.$message.error("请输入对该学生的评价");
  7123. return;
  7124. }
  7125. let params2 = [
  7126. {
  7127. wid: wid,
  7128. lid: uid,
  7129. t: t,
  7130. },
  7131. ];
  7132. this.ajax
  7133. .post(this.$store.state.api + "getComment", params2)
  7134. .then((res) => {
  7135. if (res.data[0].length > 0) {
  7136. this.$message.error("一个作业只能评论一条");
  7137. } else {
  7138. let params = [
  7139. {
  7140. wid: wid,
  7141. lid: uid,
  7142. t: t,
  7143. c: this.commentText,
  7144. },
  7145. ];
  7146. this.ajax
  7147. .post(this.$store.state.api + "insertComment", params)
  7148. .then((res) => {
  7149. this.$message({
  7150. message: "评论成功",
  7151. type: "success",
  7152. });
  7153. this.commentText = "";
  7154. this.selectSWorks();
  7155. this.selectStudent();
  7156. })
  7157. .catch((err) => {
  7158. this.$message.error("评论失败");
  7159. console.error(err);
  7160. });
  7161. }
  7162. })
  7163. .catch((err) => {
  7164. // this.$message.error("评论失败");
  7165. console.error(err);
  7166. });
  7167. },
  7168. scoreWork(wid) {
  7169. if (this.wScore == 0) {
  7170. this.$message.error("请评分");
  7171. return;
  7172. }
  7173. let params = [
  7174. {
  7175. wid: wid,
  7176. score: JSON.stringify({
  7177. wScore: this.wScore,
  7178. detail: this.scoreDetail,
  7179. }),
  7180. },
  7181. ];
  7182. this.ajax
  7183. .post(this.$store.state.api + "scoreWork", params)
  7184. .then((res) => {
  7185. this.$message({
  7186. message: "评分成功",
  7187. type: "success",
  7188. });
  7189. this.wScore = 0;
  7190. this.scoreDetail = "";
  7191. this.dialogVisibleScore = false;
  7192. this.selectSWorks();
  7193. this.selectStudent();
  7194. })
  7195. .catch((err) => {
  7196. this.$message.error("评分失败");
  7197. console.error(err);
  7198. });
  7199. },
  7200. openXz(w, i) {
  7201. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  7202. .taskJson[this.taskCount].toolChoose[i].selectJson
  7203. ? JSON.parse(
  7204. JSON.stringify(
  7205. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7206. this.taskCount
  7207. ].toolChoose[i].selectJson
  7208. )
  7209. )
  7210. : { url: "", select: [], answer: [] };
  7211. var a = w.works.split(",");
  7212. for (var k = 0; k < a.length; k++) {
  7213. a[k] = parseInt(a[k]);
  7214. }
  7215. this.selectAnswer = { answer: a, stu: w.sName };
  7216. this.isSelect = true;
  7217. this.dialogVisibleSelect = true;
  7218. },
  7219. openSen(w, i) {
  7220. this.sentenceList1 = JSON.parse(w.works);
  7221. this.sentenceList1.stuName = w.sName;
  7222. this.dialogVisibleSentence1 = true;
  7223. },
  7224. openPj(w, toolindex) {
  7225. this.isStar = true;
  7226. this.eScore = JSON.parse(w);
  7227. this.rateJson =
  7228. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7229. this.taskCount
  7230. ].toolChoose[toolindex].rateJson;
  7231. this.studentEvalDialogVisible = true;
  7232. },
  7233. deleteWorks(id) {
  7234. this.$confirm("确定删除此作业吗?", "提示", {
  7235. confirmButtonText: "确定",
  7236. cancelButtonText: "取消",
  7237. type: "warning",
  7238. })
  7239. .then(() => {
  7240. let params = [
  7241. {
  7242. id: id,
  7243. },
  7244. ];
  7245. this.ajax
  7246. .post(this.$store.state.api + "deleteCourseWork", params)
  7247. .then((res) => {
  7248. this.$message({
  7249. message: "删除成功",
  7250. type: "success",
  7251. });
  7252. this.selectStudent();
  7253. this.selectSWorks();
  7254. this.selectSLook();
  7255. })
  7256. .catch((err) => {
  7257. this.$message.error("网络异常");
  7258. console.error(err);
  7259. });
  7260. })
  7261. .catch(() => { });
  7262. },
  7263. selectSWorks(gindex) {
  7264. //教师查看全部作业
  7265. let params = {
  7266. cid: this.id,
  7267. s: this.courseType,
  7268. t: this.taskCount,
  7269. };
  7270. this.ajax
  7271. .get(this.$store.state.api + "selectSWorks", params)
  7272. .then((res) => {
  7273. var a =
  7274. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7275. this.taskCount
  7276. ].toolChoose;
  7277. var b = res.data[0];
  7278. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7279. var y = [
  7280. "AVI",
  7281. "NAVI",
  7282. "MPEG",
  7283. "ASF",
  7284. "MOV",
  7285. "WMV",
  7286. "3GP",
  7287. "RM",
  7288. "RMVB",
  7289. "FLV",
  7290. "F4V",
  7291. "H.264",
  7292. "H.265",
  7293. "REAL VIDEO",
  7294. "MKV",
  7295. "WebM",
  7296. "HDDVD",
  7297. "MP4",
  7298. "MPG",
  7299. "M4V",
  7300. "MGV",
  7301. "OGV",
  7302. "QTM",
  7303. "STR",
  7304. "AMC",
  7305. "DVX",
  7306. "EVO",
  7307. "DAT",
  7308. "OGG",
  7309. "OGM",
  7310. ];
  7311. var d = res.data[1];
  7312. var e = res.data[2];
  7313. var f = res.data[3];
  7314. for (var i = 0; i < a.length; i++) {
  7315. this.worksStudent[i] = [];
  7316. if (
  7317. !this.isCloseList[i] ||
  7318. this.isCloseList[i].isClose == undefined
  7319. ) {
  7320. this.isCloseList[i] = { isClose: 0 };
  7321. }
  7322. this.groupStudent[i] = [];
  7323. this.groupStudentUid[i] = [];
  7324. if (this.isGroup) {
  7325. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  7326. this.courseGroup.group[groupI].works[i] = []
  7327. }
  7328. }
  7329. this.isWorksS[i] = [];
  7330. this.checkJson[i] = [];
  7331. if (a[i].tool[0] == 49) {
  7332. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  7333. this.groupStudent[i][gA] = [];
  7334. this.groupStudentUid[i][gA] = [];
  7335. this.worksStudent[i][gA] = [];
  7336. this.isCloseList[i][gA] = [];
  7337. for (var g = 0; g < f.length; g++) {
  7338. if (
  7339. f[g].ttype == 2 &&
  7340. this.tcid &&
  7341. this.arrayToArray(f[g].classid.split(","), this.tcid.split(",")).length == 0
  7342. ) {
  7343. continue;
  7344. }
  7345. if (gA == f[g].group && f[g].tool == i) {
  7346. this.groupStudent[i][gA].push(f[g]);
  7347. this.groupStudentUid[i][gA].push(f[g].userid);
  7348. }
  7349. }
  7350. }
  7351. this.$forceUpdate();
  7352. }
  7353. for (var j = 0; j < b.length; j++) {
  7354. if (b[j].ttype == 2 && this.tcid && this.arrayToArray(b[j].classid.split(","), this.tcid.split(",")).length == 0) {
  7355. continue;
  7356. }
  7357. var likesCount = 0;
  7358. var commentCount = 0;
  7359. var isLikes = false;
  7360. var commentJson = [];
  7361. var data = b[j];
  7362. if (i == b[j].tool) {
  7363. if (data.type == 2 && a[i].tool[0] == 4) {
  7364. // if(JSON.parse(data.content)[0].anwer){
  7365. var checkL = JSON.parse(data.content)[0].anwer.split(",");
  7366. for (var z = 0; z < checkL.length; z++) {
  7367. if (!this.checkJson[i][z]) {
  7368. this.checkJson[i].push({
  7369. checkCount: [],
  7370. checkPerson: [],
  7371. rightPerson: [],
  7372. });
  7373. }
  7374. if (!this.checkJson[i][z].checkCount.length) {
  7375. this.checkJson[i][z].checkCount = [];
  7376. let _askItemCount = JSON.parse(data.content)[0].askJson
  7377. .askJson[z].askItem;
  7378. for (var aic = 0; aic < _askItemCount; aic++) {
  7379. this.checkJson[i][z].checkCount.push(0);
  7380. }
  7381. }
  7382. if (
  7383. (JSON.parse(data.content)[0].askJson.askJson[z].answer ||
  7384. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  7385. 0) &&
  7386. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  7387. checkL[z]
  7388. ) {
  7389. this.checkJson[i][z].rightPerson.push(data.name);
  7390. }
  7391. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  7392. ? this.checkJson[i][z].checkPerson[
  7393. parseInt(checkL[z])
  7394. ].push(data.name)
  7395. : (this.checkJson[i][z].checkPerson[parseInt(checkL[z])] =
  7396. [data.name]);
  7397. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  7398. ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
  7399. : (this.checkJson[i][z].checkCount[
  7400. parseInt(checkL[z])
  7401. ] = 1);
  7402. // }
  7403. }
  7404. } else if (data.type == 8 && a[i].tool[0] == 45) {
  7405. var checkL = JSON.parse(data.content)[0].anwer;
  7406. for (var z = 0; z < checkL.length; z++) {
  7407. if (!this.checkJson[i][z]) {
  7408. this.checkJson[i].push({
  7409. checkCount: [],
  7410. checkPerson: [],
  7411. rightPerson: [],
  7412. });
  7413. }
  7414. if (!this.checkJson[i][z].checkCount.length) {
  7415. this.checkJson[i][z].checkCount = [];
  7416. let _askItemCount = JSON.parse(data.content)[0].testJson
  7417. .testJson[z].testItem;
  7418. console.log(_askItemCount);
  7419. for (var aic = 0; aic < _askItemCount; aic++) {
  7420. this.checkJson[i][z].checkCount.push(0);
  7421. }
  7422. }
  7423. if (checkL[z] instanceof Array) {
  7424. if (
  7425. JSON.parse(data.content)[0]
  7426. .testJson.testJson[z].answer.sort()
  7427. .join(",") == checkL[z].sort().join(",")
  7428. ) {
  7429. this.checkJson[i][z].rightPerson.push(data.name);
  7430. }
  7431. for (var q = 0; q < checkL[z].length; q++) {
  7432. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  7433. ? this.checkJson[i][z].checkPerson[
  7434. parseInt(checkL[z][q])
  7435. ].push(data.name)
  7436. : (this.checkJson[i][z].checkPerson[
  7437. parseInt(checkL[z][q])
  7438. ] = [data.name]);
  7439. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  7440. ? this.checkJson[i][z].checkCount[
  7441. parseInt(checkL[z][q])
  7442. ]++
  7443. : (this.checkJson[i][z].checkCount[
  7444. parseInt(checkL[z][q])
  7445. ] = 1);
  7446. }
  7447. } else {
  7448. if (
  7449. JSON.parse(data.content)[0].testJson.testJson[z]
  7450. .answer == checkL[z]
  7451. ) {
  7452. this.checkJson[i][z].rightPerson.push(data.name);
  7453. }
  7454. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  7455. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  7456. ? this.checkJson[i][z].checkPerson[
  7457. parseInt(checkL[z])
  7458. ].push(data.name)
  7459. : (this.checkJson[i][z].checkPerson[
  7460. parseInt(checkL[z])
  7461. ] = [data.name]);
  7462. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  7463. ? this.checkJson[i][z].checkCount[
  7464. parseInt(checkL[z])
  7465. ]++
  7466. : (this.checkJson[i][z].checkCount[
  7467. parseInt(checkL[z])
  7468. ] = 1);
  7469. }
  7470. }
  7471. }
  7472. } else if (data.type == 9 && a[i].tool[0] == 47) {
  7473. var checkL = JSON.parse(data.content);
  7474. for (var z = 0; z < checkL.length; z++) {
  7475. if (!this.checkJson[i][z]) {
  7476. this.checkJson[i].push({
  7477. checkCount: [],
  7478. checkPerson: [],
  7479. rightPerson: [],
  7480. });
  7481. }
  7482. this.checkJson[i][z].checkPerson.push(data.name);
  7483. if (
  7484. checkL[z].chooseSenList.toString() ==
  7485. checkL[z].rightAnswer.toString()
  7486. ) {
  7487. this.checkJson[i][z].rightPerson.push(data.name);
  7488. }
  7489. }
  7490. }
  7491. for (var k = 0; k < d.length; k++) {
  7492. //点赞
  7493. if (d[k].workId == b[j].id) {
  7494. likesCount++;
  7495. if (d[k].likesId == this.userid) {
  7496. isLikes = true;
  7497. }
  7498. }
  7499. }
  7500. for (var l = 0; l < e.length; l++) {
  7501. //评论
  7502. if (e[l].workId == b[j].id) {
  7503. if (e[l].comment != "") {
  7504. commentCount++;
  7505. commentJson.push({
  7506. commentText: e[l].comment,
  7507. commentTime: e[l].commentTime,
  7508. commentPeople: e[l].commentPeople,
  7509. userid: e[l].userid,
  7510. wid: e[l].id,
  7511. });
  7512. }
  7513. }
  7514. }
  7515. if (
  7516. (b[j].type == 1 ||
  7517. b[j].type == 4 ||
  7518. b[j].type == 5 ||
  7519. b[j].type == 6 ||
  7520. b[j].type == 12 ||
  7521. b[j].type == 7) &&
  7522. a[i].tool[0] != 15 &&
  7523. a[i].tool[0] != 4 &&
  7524. a[i].tool[0] != 45 &&
  7525. a[i].tool[0] != 50 &&
  7526. a[i].tool[0] != 32 &&
  7527. a[i].tool[0] != 57 &&
  7528. a[i].tool[0] != 52
  7529. ) {
  7530. if (
  7531. c.indexOf(
  7532. b[j].content
  7533. .split(".")
  7534. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  7535. ) != -1 &&
  7536. a[i].tool[0] == 16 &&
  7537. b[j].atool != 50
  7538. ) {
  7539. let _works = {
  7540. userid: b[j].userid,
  7541. ateacher: b[j].ateacher,
  7542. wid: b[j].id,
  7543. works: b[j].content,
  7544. sName: b[j].name,
  7545. type: 1,
  7546. time: b[j].time,
  7547. score: b[j].score,
  7548. img: b[j].img,
  7549. likesCount: likesCount,
  7550. commentCount: commentCount,
  7551. isLikes: isLikes,
  7552. commentJson: commentJson,
  7553. }
  7554. if (this.isGroup) {
  7555. let isGw = 1
  7556. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  7557. let gid = this.courseGroup.group[groupI].id
  7558. if (this.courseGroupStudentUid[gid].indexOf(b[j].userid) != -1) {
  7559. isGw = 2
  7560. this.courseGroup.group[groupI].works[i].push(_works)
  7561. break;
  7562. }
  7563. }
  7564. if (isGw == 1) {
  7565. this.worksStudent[i].push(_works);
  7566. }
  7567. } else {
  7568. this.worksStudent[i].push(_works);
  7569. }
  7570. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7571. } else if (
  7572. y.indexOf(
  7573. b[j].content
  7574. .split(".")
  7575. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  7576. ) != -1 &&
  7577. a[i].tool[0] == 16 &&
  7578. b[j].atool != 50
  7579. ) {
  7580. let _works = {
  7581. userid: b[j].userid,
  7582. ateacher: b[j].ateacher,
  7583. wid: b[j].id,
  7584. works: b[j].content,
  7585. sName: b[j].name,
  7586. type: 3,
  7587. time: b[j].time,
  7588. score: b[j].score,
  7589. img: b[j].img,
  7590. likesCount: likesCount,
  7591. commentCount: commentCount,
  7592. isLikes: isLikes,
  7593. commentJson: commentJson,
  7594. }
  7595. if (this.isGroup) {
  7596. let isGw = 1
  7597. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  7598. let gid = this.courseGroup.group[groupI].id
  7599. if (this.courseGroupStudentUid[gid].indexOf(b[j].userid) != -1) {
  7600. isGw = 2
  7601. this.courseGroup.group[groupI].works[i].push(_works)
  7602. break;
  7603. }
  7604. }
  7605. if (isGw == 1) {
  7606. this.worksStudent[i].push(_works);
  7607. }
  7608. } else {
  7609. this.worksStudent[i].push(_works);
  7610. }
  7611. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7612. } else if (b[j].type == 6 && b[j].atool != 50) {
  7613. this.worksStudent[i].push({
  7614. userid: b[j].userid,
  7615. ateacher: b[j].ateacher,
  7616. wid: b[j].id,
  7617. works: b[j].content,
  7618. sName: b[j].name,
  7619. type: 4,
  7620. time: b[j].time,
  7621. score: b[j].score,
  7622. img: b[j].img,
  7623. likesCount: likesCount,
  7624. commentCount: commentCount,
  7625. isLikes: isLikes,
  7626. commentJson: commentJson,
  7627. });
  7628. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7629. } else if (b[j].type == 7 && b[j].atool != 50) {
  7630. this.worksStudent[i].push({
  7631. userid: b[j].userid,
  7632. ateacher: b[j].ateacher,
  7633. wid: b[j].id,
  7634. works: b[j].content,
  7635. sName: b[j].name,
  7636. type: 5,
  7637. time: b[j].time,
  7638. score: b[j].score,
  7639. img: b[j].img,
  7640. likesCount: likesCount,
  7641. commentCount: commentCount,
  7642. isLikes: isLikes,
  7643. commentJson: commentJson,
  7644. });
  7645. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7646. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  7647. let _works = {
  7648. userid: b[j].userid,
  7649. ateacher: b[j].ateacher,
  7650. wid: b[j].id,
  7651. works: b[j].content,
  7652. sName: b[j].name,
  7653. type: 12,
  7654. time: b[j].time,
  7655. score: b[j].score,
  7656. img: b[j].img,
  7657. likesCount: likesCount,
  7658. commentCount: commentCount,
  7659. isLikes: isLikes,
  7660. commentJson: commentJson,
  7661. }
  7662. if (this.isGroup) {
  7663. let isGw = 1
  7664. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  7665. let gid = this.courseGroup.group[groupI].id
  7666. if (this.courseGroupStudentUid[gid].indexOf(b[j].userid) != -1) {
  7667. isGw = 2
  7668. this.courseGroup.group[groupI].works[i].push(_works)
  7669. break;
  7670. }
  7671. }
  7672. if (isGw == 1) {
  7673. this.worksStudent[i].push(_works);
  7674. }
  7675. } else {
  7676. this.worksStudent[i].push(_works);
  7677. }
  7678. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7679. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  7680. let _works = {
  7681. userid: b[j].userid,
  7682. ateacher: b[j].ateacher,
  7683. wid: b[j].id,
  7684. works: b[j].content,
  7685. sName: b[j].name,
  7686. type: 0,
  7687. time: b[j].time,
  7688. score: b[j].score,
  7689. img: b[j].img,
  7690. likesCount: likesCount,
  7691. commentCount: commentCount,
  7692. isLikes: isLikes,
  7693. commentJson: commentJson,
  7694. }
  7695. if (this.isGroup) {
  7696. let isGw = 1
  7697. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  7698. let gid = this.courseGroup.group[groupI].id
  7699. if (this.courseGroupStudentUid[gid].indexOf(b[j].userid) != -1) {
  7700. isGw = 2
  7701. this.courseGroup.group[groupI].works[i].push(_works)
  7702. break;
  7703. }
  7704. }
  7705. if (isGw == 1) {
  7706. this.worksStudent[i].push(_works);
  7707. }
  7708. } else {
  7709. this.worksStudent[i].push(_works);
  7710. }
  7711. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7712. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  7713. let _works = {
  7714. userid: b[j].userid,
  7715. ateacher: b[j].ateacher,
  7716. wid: b[j].id,
  7717. works: b[j].content,
  7718. sName: b[j].name,
  7719. type: 0,
  7720. time: b[j].time,
  7721. score: b[j].score,
  7722. img: b[j].img,
  7723. likesCount: likesCount,
  7724. commentCount: commentCount,
  7725. isLikes: isLikes,
  7726. commentJson: commentJson,
  7727. }
  7728. if (this.isGroup) {
  7729. let isGw = 1
  7730. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  7731. let gid = this.courseGroup.group[groupI].id
  7732. if (this.courseGroupStudentUid[gid].indexOf(b[j].userid) != -1) {
  7733. isGw = 2
  7734. this.courseGroup.group[groupI].works[i].push(_works)
  7735. break;
  7736. }
  7737. }
  7738. if (isGw == 1) {
  7739. this.worksStudent[i].push(_works);
  7740. }
  7741. } else {
  7742. this.worksStudent[i].push(_works);
  7743. }
  7744. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7745. }
  7746. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  7747. let _works = {
  7748. userid: b[j].userid,
  7749. ateacher: b[j].ateacher,
  7750. wid: b[j].id,
  7751. works: b[j].content,
  7752. sName: b[j].name,
  7753. type: 2,
  7754. time: b[j].time,
  7755. score: b[j].score,
  7756. img: b[j].img,
  7757. likesCount: likesCount,
  7758. commentCount: commentCount,
  7759. isLikes: isLikes,
  7760. commentJson: commentJson,
  7761. }
  7762. if (this.isGroup) {
  7763. let isGw = 1
  7764. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  7765. let gid = this.courseGroup.group[groupI].id
  7766. if (this.courseGroupStudentUid[gid].indexOf(b[j].userid) != -1) {
  7767. isGw = 2
  7768. this.courseGroup.group[groupI].works[i].push(_works)
  7769. break;
  7770. }
  7771. }
  7772. if (isGw == 1) {
  7773. this.worksStudent[i].push(_works);
  7774. }
  7775. } else {
  7776. this.worksStudent[i].push(_works);
  7777. }
  7778. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7779. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  7780. //问卷
  7781. this.worksStudent[i].push({
  7782. userid: b[j].userid,
  7783. ateacher: b[j].ateacher,
  7784. wid: b[j].id,
  7785. works: b[j].content,
  7786. sName: b[j].name,
  7787. type: 2,
  7788. time: b[j].time,
  7789. score: b[j].score,
  7790. img: b[j].img,
  7791. likesCount: likesCount,
  7792. commentCount: commentCount,
  7793. isLikes: isLikes,
  7794. commentJson: commentJson,
  7795. });
  7796. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7797. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  7798. //选择题
  7799. this.worksStudent[i].push({
  7800. userid: b[j].userid,
  7801. ateacher: b[j].ateacher,
  7802. wid: b[j].id,
  7803. works: b[j].content,
  7804. sName: b[j].name,
  7805. type: 8,
  7806. time: b[j].time,
  7807. score: b[j].score,
  7808. img: b[j].img,
  7809. likesCount: likesCount,
  7810. commentCount: commentCount,
  7811. isLikes: isLikes,
  7812. commentJson: commentJson,
  7813. });
  7814. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7815. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  7816. //选择题
  7817. this.worksStudent[i].push({
  7818. userid: b[j].userid,
  7819. ateacher: b[j].ateacher,
  7820. wid: b[j].id,
  7821. works: b[j].content,
  7822. sName: b[j].name,
  7823. type: 9,
  7824. time: b[j].time,
  7825. score: b[j].score,
  7826. img: b[j].img,
  7827. likesCount: likesCount,
  7828. commentCount: commentCount,
  7829. isLikes: isLikes,
  7830. commentJson: commentJson,
  7831. });
  7832. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7833. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  7834. //选择题
  7835. this.worksStudent[i].push({
  7836. userid: b[j].userid,
  7837. ateacher: b[j].ateacher,
  7838. wid: b[j].id,
  7839. works: b[j].content,
  7840. sName: b[j].name,
  7841. type: 10,
  7842. time: b[j].time,
  7843. score: b[j].score,
  7844. img: b[j].img,
  7845. likesCount: likesCount,
  7846. commentCount: commentCount,
  7847. isLikes: isLikes,
  7848. commentJson: commentJson,
  7849. });
  7850. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7851. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  7852. //选择题
  7853. this.worksStudent[i].push({
  7854. userid: b[j].userid,
  7855. ateacher: b[j].ateacher,
  7856. wid: b[j].id,
  7857. works: b[j].content,
  7858. sName: b[j].name,
  7859. type: 13,
  7860. time: b[j].time,
  7861. score: b[j].score,
  7862. img: b[j].img,
  7863. likesCount: likesCount,
  7864. commentCount: commentCount,
  7865. isLikes: isLikes,
  7866. commentJson: commentJson,
  7867. });
  7868. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7869. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  7870. let _gindex = JSON.parse(b[j].content);
  7871. if (
  7872. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  7873. b[j].userid
  7874. ) != -1
  7875. ) {
  7876. this.worksStudent[i][_gindex.groupIndex].push({
  7877. userid: b[j].userid,
  7878. ateacher: b[j].ateacher,
  7879. wid: b[j].id,
  7880. works: _gindex.url,
  7881. sName: b[j].name,
  7882. type: _gindex.type,
  7883. time: b[j].time,
  7884. score: b[j].score,
  7885. img: b[j].img,
  7886. likesCount: likesCount,
  7887. commentCount: commentCount,
  7888. isLikes: isLikes,
  7889. commentJson: commentJson,
  7890. });
  7891. }
  7892. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7893. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  7894. this.worksStudent[i].push({
  7895. userid: b[j].userid,
  7896. ateacher: b[j].ateacher,
  7897. wid: b[j].id,
  7898. works: b[j].content,
  7899. sName: b[j].name ? b[j].name : b[j].userid,
  7900. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  7901. time: b[j].time,
  7902. score: b[j].score,
  7903. img: b[j].img,
  7904. likesCount: likesCount,
  7905. commentCount: commentCount,
  7906. isLikes: isLikes,
  7907. commentJson: commentJson,
  7908. });
  7909. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7910. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  7911. this.worksStudent[i].push({
  7912. userid: b[j].userid,
  7913. ateacher: b[j].ateacher,
  7914. wid: b[j].id,
  7915. works: b[j].content,
  7916. sName: b[j].name ? b[j].name : b[j].userid,
  7917. type: 12,
  7918. time: b[j].time,
  7919. score: b[j].score,
  7920. img: b[j].img,
  7921. likesCount: likesCount,
  7922. commentCount: commentCount,
  7923. isLikes: isLikes,
  7924. commentJson: commentJson,
  7925. });
  7926. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7927. } else if (a[i].tool[0] == 57 && b[j].atool == 57) {
  7928. this.worksStudent[i].push({
  7929. userid: b[j].userid,
  7930. ateacher: b[j].ateacher,
  7931. wid: b[j].id,
  7932. works: b[j].content,
  7933. sName: b[j].name ? b[j].name : b[j].userid,
  7934. type: 12,
  7935. time: b[j].time,
  7936. score: b[j].score,
  7937. img: b[j].img,
  7938. likesCount: likesCount,
  7939. commentCount: commentCount,
  7940. isLikes: isLikes,
  7941. commentJson: commentJson,
  7942. });
  7943. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7944. }
  7945. }
  7946. }
  7947. if (this.worksStudent[i] && this.worksStudent[i].length) {
  7948. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  7949. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7950. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7951. var scoreA = parseFloat(jscoreA);
  7952. var scoreB = parseFloat(jscoreB);
  7953. if (scoreA == scoreB) {
  7954. return b.likesCount - a.likesCount;
  7955. }
  7956. return scoreB - scoreA;
  7957. });
  7958. if (this.isGroup) {
  7959. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  7960. this.courseGroup.group[groupI].works[i] = this.courseGroup.group[groupI].works[i].sort(function (a, b) {
  7961. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7962. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7963. var scoreA = parseFloat(jscoreA);
  7964. var scoreB = parseFloat(jscoreB);
  7965. if (scoreA == scoreB) {
  7966. return b.likesCount - a.likesCount;
  7967. }
  7968. return scoreB - scoreA;
  7969. });
  7970. }
  7971. }
  7972. }
  7973. }
  7974. for (var i = 0; i < a.length; i++) {
  7975. for (var j = 0; j < b.length; j++) {
  7976. var data = b[j];
  7977. if (i == b[j].tool) {
  7978. if (data.type == 2 || data.type == 8) {
  7979. for (var z = 0; z < this.checkJson[i].length; z++) {
  7980. this.checkJson[i][z].checkPerent = [];
  7981. this.checkJson[i][z].right = Math.round(
  7982. (this.checkJson[i][z].rightPerson.length /
  7983. parseInt(this.worksStudent[i].length)) *
  7984. 100
  7985. );
  7986. let aaaa = this.checkJson[i][z];
  7987. console.log(aaaa);
  7988. for (
  7989. var k = 0;
  7990. k < this.checkJson[i][z].checkCount.length;
  7991. k++
  7992. ) {
  7993. this.checkJson[i][z].checkPerent.push(
  7994. Math.round(
  7995. (this.checkJson[i][z].checkCount[k] /
  7996. parseInt(this.worksStudent[i].length)) *
  7997. 100
  7998. )
  7999. );
  8000. }
  8001. }
  8002. } else if (data.type == 9) {
  8003. for (var z = 0; z < this.checkJson[i].length; z++) {
  8004. this.checkJson[i][z].checkPerent = [];
  8005. this.checkJson[i][z].right = Math.round(
  8006. (this.checkJson[i][z].rightPerson.length /
  8007. this.checkJson[i][z].checkPerson.length) *
  8008. 100
  8009. );
  8010. }
  8011. }
  8012. }
  8013. }
  8014. }
  8015. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  8016. this.joinGroup(gindex);
  8017. }
  8018. this.selectWorksStudent();
  8019. })
  8020. .catch((err) => {
  8021. console.error(err);
  8022. });
  8023. },
  8024. pngToWhiteBg(file) {
  8025. const _file = file;
  8026. let read = new FileReader();
  8027. read.readAsDataURL(file); // 文件转base64
  8028. return new Promise((resolve, reject) => {
  8029. read.onload = (e) => {
  8030. let img = new Image();
  8031. img.src = e.target.result;
  8032. img.onload = async () => {
  8033. // 生成canvas
  8034. let canvas = document.createElement("canvas");
  8035. let context = canvas.getContext("2d");
  8036. // 绘制图片到canvas上
  8037. canvas.width = img.width;
  8038. canvas.height = img.height;
  8039. // 在canvas绘制前填充白色背景
  8040. context.fillStyle = "#fff";
  8041. context.fillRect(0, 0, canvas.width, canvas.height);
  8042. context.drawImage(img, 0, 0);
  8043. let base64 = canvas.toDataURL(file["type"], 1);
  8044. let newFile = this.dataUrlToFile(base64, _file);
  8045. resolve(newFile);
  8046. };
  8047. };
  8048. });
  8049. },
  8050. dataUrlToFile(dataurl, file) {
  8051. let arr = dataurl.split(","),
  8052. mime = arr[0].match(/:(.*?);/)[1],
  8053. bstr = atob(arr[1]),
  8054. n = bstr.length,
  8055. u8arr = new Uint8Array(n);
  8056. while (n--) {
  8057. u8arr[n] = bstr.charCodeAt(n);
  8058. }
  8059. // return new Blob([u8arr], { type: mime });
  8060. return new File([new Blob([u8arr], { type: mime })], file.name, {
  8061. type: mime,
  8062. });
  8063. },
  8064. async beforeUpload1(event, type, i) {
  8065. // this.$message.success('进入上传')
  8066. var file = "";
  8067. if (type == 5) {
  8068. file = event;
  8069. } else {
  8070. file = event.target.files[0];
  8071. }
  8072. var credentials = {
  8073. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8074. secretAccessKey: "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",
  8075. }; //秘钥形式的登录上传
  8076. window.AWS.config.update(credentials);
  8077. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8078. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8079. var _this = this;
  8080. _this.progress = 0;
  8081. _this.proVisible = true;
  8082. _this.isFinishSize = 0;
  8083. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8084. var b = [
  8085. "DOC",
  8086. "DOCX",
  8087. "DOCM",
  8088. "DOTM",
  8089. "DOTX",
  8090. "PPTX",
  8091. "PPSX",
  8092. "PPT",
  8093. "PPS",
  8094. "PPTM",
  8095. "POTM",
  8096. "PPAM",
  8097. "POTX",
  8098. "PPSM",
  8099. ];
  8100. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  8101. var photoA = [
  8102. "BMP",
  8103. "GIF",
  8104. "PNG",
  8105. "JPGE",
  8106. "JPG",
  8107. "TIF",
  8108. "PCX",
  8109. "TGA",
  8110. "EXIF",
  8111. "FPX",
  8112. "SVG",
  8113. "APNG",
  8114. ];
  8115. // if (
  8116. // b.indexOf(
  8117. // file.name
  8118. // .split(".")
  8119. // [file.name.split(".").length - 1].toLocaleUpperCase()
  8120. // ) != -1
  8121. // ) {
  8122. // if (file.size / 1024 / 1024 > 10) {
  8123. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  8124. // return;
  8125. // }
  8126. // } else if (
  8127. // excelA.indexOf(
  8128. // file.name
  8129. // .split(".")
  8130. // [file.name.split(".").length - 1].toLocaleUpperCase()
  8131. // ) != "-1"
  8132. // ) {
  8133. // if (file.size / 1024 / 1024 > 5) {
  8134. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  8135. // return;
  8136. // }
  8137. // }
  8138. if (
  8139. photoA.indexOf(
  8140. file.name
  8141. .split(".")
  8142. [file.name.split(".").length - 1].toLocaleUpperCase()
  8143. ) != -1 &&
  8144. type != 4
  8145. ) {
  8146. // const blob = await imageConversion.compress(file, 0.8)
  8147. file = await this.pngToWhiteBg(file);
  8148. const blob = await imageConversion.compressAccurately(file, 256);
  8149. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  8150. file = new File([blob], file.name, { type: file.type });
  8151. }
  8152. if (file) {
  8153. var params = {
  8154. Key:
  8155. file.name.split(".")[0] +
  8156. new Date().getTime() +
  8157. "." +
  8158. file.name.split(".")[file.name.split(".").length - 1],
  8159. ContentType: file.type,
  8160. Body: file,
  8161. "Access-Control-Allow-Credentials": "*",
  8162. ACL: "public-read",
  8163. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8164. var options = {
  8165. // partSize: 2048 * 1024 * 1024,
  8166. partSize: 1024 * 1024 * 1024,
  8167. queueSize: 2,
  8168. leavePartsOnError: true,
  8169. };
  8170. bucket
  8171. .upload(params, options)
  8172. .on("httpUploadProgress", function (evt) {
  8173. //这里可以写进度条
  8174. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8175. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  8176. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8177. })
  8178. .send(function (err, data) {
  8179. _this.progress = 100;
  8180. _this.isFinishSize = _this.isAllSize;
  8181. setTimeout(() => {
  8182. _this.proVisible = false;
  8183. }, 1000);
  8184. if (err) {
  8185. var a = _this.$refs.upload1.uploadFiles;
  8186. a.splice(a.length - 1, a.length);
  8187. _this.$message.error("上传失败");
  8188. } else {
  8189. // _this.$message.success('上传成功')
  8190. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  8191. var c = [
  8192. "AVI",
  8193. "NAVI",
  8194. "MPEG",
  8195. "ASF",
  8196. "MOV",
  8197. "WMV",
  8198. "3GP",
  8199. "RM",
  8200. "RMVB",
  8201. "FLV",
  8202. "F4V",
  8203. "H.264",
  8204. "H.265",
  8205. "REAL VIDEO",
  8206. "MKV",
  8207. "WebM",
  8208. "HDDVD",
  8209. "MP4",
  8210. "MPG",
  8211. "M4V",
  8212. "MGV",
  8213. "OGV",
  8214. "QTM",
  8215. "STR",
  8216. "AMC",
  8217. "DVX",
  8218. "EVO",
  8219. "DAT",
  8220. "OGG",
  8221. "OGM",
  8222. ];
  8223. if (type == 1) {
  8224. _this.studyJuri[0].cover.push({
  8225. name: file.name,
  8226. url: data.Location,
  8227. uid: file.uid,
  8228. });
  8229. if (
  8230. c.indexOf(
  8231. _this.studyJuri[0].cover[0].url
  8232. .split(".")
  8233. [
  8234. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8235. ].toLocaleUpperCase()
  8236. ) != -1
  8237. ) {
  8238. _this.fileType = 2;
  8239. } else if (
  8240. b.indexOf(
  8241. _this.studyJuri[0].cover[0].url
  8242. .split(".")
  8243. [
  8244. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8245. ].toLocaleUpperCase()
  8246. ) != -1
  8247. ) {
  8248. _this.fileType = 1;
  8249. } else if (photoA.indexOf(
  8250. _this.studyJuri[0].cover[0].url
  8251. .split(".")
  8252. [
  8253. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8254. ].toLocaleUpperCase()
  8255. ) != -1) {
  8256. _this.fileType = 0;
  8257. } else {
  8258. _this.fileType = 3;
  8259. }
  8260. _this.imgChange(null, null, type);
  8261. } else if (type == 2) {
  8262. _this.upToolImg = data.Location;
  8263. _this.imgChange(null, null, type);
  8264. _this.addCourseWorks(i);
  8265. } else if (type == 4) {
  8266. _this.addPz("3", data.Location);
  8267. } else if (type == 5) {
  8268. _this.addImgDrawImG(data.Location);
  8269. } else if (type == 6) {
  8270. var _ftype = 1;
  8271. if (
  8272. c.indexOf(
  8273. data.Location.split(".")[
  8274. data.Location.split(".").length - 1
  8275. ].toLocaleUpperCase()
  8276. ) != -1
  8277. ) {
  8278. _ftype = 5;
  8279. } else if (
  8280. b.indexOf(
  8281. data.Location.split(".")[
  8282. data.Location.split(".").length - 1
  8283. ].toLocaleUpperCase()
  8284. ) != -1
  8285. ) {
  8286. _ftype = 4;
  8287. } else {
  8288. _ftype = 1;
  8289. }
  8290. _this.plworkFile.push({
  8291. name: file.name,
  8292. url: data.Location,
  8293. uid: file.uid,
  8294. fileType: _ftype,
  8295. username:
  8296. _this.plworkFile.length > 10
  8297. ? _this.plworkFile.length + 1
  8298. : "0" + (_this.plworkFile.length + 1),
  8299. });
  8300. } else if (type == 7) {
  8301. _this.addCourseWorksGong(i, data.Location, 32);
  8302. } else if (type == 8) {
  8303. _this.addCourseWorksGong(i, data.Location, 57);
  8304. }
  8305. _this.imgChange(null, null, type);
  8306. console.log(data.Location);
  8307. // _this.$message.success('上传成功'+data.Location)
  8308. }
  8309. });
  8310. }
  8311. },
  8312. async beforeUpload3(event, type, i) {
  8313. // this.$message.success('进入上传')
  8314. let file = "";
  8315. let cfindex2 = 0;
  8316. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  8317. file = event.target.files[cfindex];
  8318. var credentials = {
  8319. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8320. secretAccessKey: "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",
  8321. }; //秘钥形式的登录上传
  8322. window.AWS.config.update(credentials);
  8323. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8324. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8325. var _this = this;
  8326. // _this.progress = 0;
  8327. _this.proVisible2 = true;
  8328. var b = [
  8329. "DOC",
  8330. "DOCX",
  8331. "DOCM",
  8332. "DOTM",
  8333. "DOTX",
  8334. "PPTX",
  8335. "PPSX",
  8336. "PPT",
  8337. "PPS",
  8338. "PPTM",
  8339. "POTM",
  8340. "PPAM",
  8341. "POTX",
  8342. "PPSM",
  8343. ];
  8344. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  8345. var photoA = [
  8346. "BMP",
  8347. "GIF",
  8348. "PNG",
  8349. "JPGE",
  8350. "JPG",
  8351. "TIF",
  8352. "PCX",
  8353. "TGA",
  8354. "EXIF",
  8355. "FPX",
  8356. "SVG",
  8357. "APNG",
  8358. ];
  8359. if (
  8360. photoA.indexOf(
  8361. file.name
  8362. .split(".")
  8363. [file.name.split(".").length - 1].toLocaleUpperCase()
  8364. ) != -1 &&
  8365. type != 4
  8366. ) {
  8367. // const blob = await imageConversion.compress(file, 0.8)
  8368. file = await this.pngToWhiteBg(file);
  8369. const blob = await imageConversion.compressAccurately(file, 256);
  8370. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  8371. file = new File([blob], file.name, { type: file.type });
  8372. }
  8373. if (file) {
  8374. var params = {
  8375. Key:
  8376. file.name.split(".")[0] +
  8377. new Date().getTime() +
  8378. "." +
  8379. file.name.split(".")[file.name.split(".").length - 1],
  8380. ContentType: file.type,
  8381. Body: file,
  8382. "Access-Control-Allow-Credentials": "*",
  8383. ACL: "public-read",
  8384. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8385. var options = {
  8386. // partSize: 2048 * 1024 * 1024,
  8387. partSize: 1024 * 1024 * 1024,
  8388. queueSize: 2,
  8389. leavePartsOnError: true,
  8390. };
  8391. bucket
  8392. .upload(params, options)
  8393. .on("httpUploadProgress", function (evt) {
  8394. //这里可以写进度条
  8395. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8396. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  8397. })
  8398. .send(function (err, data) {
  8399. // _this.progress = 100;
  8400. cfindex2++;
  8401. setTimeout(() => {
  8402. if (
  8403. cfindex2 == event.target.files.length - 1 ||
  8404. cfindex2 > event.target.files.length - 1
  8405. ) {
  8406. _this.proVisible2 = false;
  8407. }
  8408. }, 1000);
  8409. if (err) {
  8410. var a = _this.$refs.upload1.uploadFiles;
  8411. a.splice(a.length - 1, a.length);
  8412. _this.$message.error("上传失败");
  8413. } else {
  8414. // _this.$message.success('上传成功')
  8415. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  8416. var c = [
  8417. "AVI",
  8418. "NAVI",
  8419. "MPEG",
  8420. "ASF",
  8421. "MOV",
  8422. "WMV",
  8423. "3GP",
  8424. "RM",
  8425. "RMVB",
  8426. "FLV",
  8427. "F4V",
  8428. "H.264",
  8429. "H.265",
  8430. "REAL VIDEO",
  8431. "MKV",
  8432. "WebM",
  8433. "HDDVD",
  8434. "MP4",
  8435. "MPG",
  8436. "M4V",
  8437. "MGV",
  8438. "OGV",
  8439. "QTM",
  8440. "STR",
  8441. "AMC",
  8442. "DVX",
  8443. "EVO",
  8444. "DAT",
  8445. "OGG",
  8446. "OGM",
  8447. ];
  8448. if (type == 1) {
  8449. _this.studyJuri[0].cover.push({
  8450. name: file.name,
  8451. url: data.Location,
  8452. uid: file.uid,
  8453. });
  8454. if (
  8455. c.indexOf(
  8456. _this.studyJuri[0].cover[0].url
  8457. .split(".")
  8458. [
  8459. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8460. ].toLocaleUpperCase()
  8461. ) != -1
  8462. ) {
  8463. _this.fileType = 2;
  8464. } else if (
  8465. b.indexOf(
  8466. _this.studyJuri[0].cover[0].url
  8467. .split(".")
  8468. [
  8469. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8470. ].toLocaleUpperCase()
  8471. ) != -1
  8472. ) {
  8473. _this.fileType = 1;
  8474. } else {
  8475. _this.fileType = 0;
  8476. }
  8477. _this.imgChange(null, null, type);
  8478. } else if (type == 2) {
  8479. _this.upToolImg = data.Location;
  8480. _this.imgChange(null, null, type);
  8481. _this.addCourseWorks(i);
  8482. } else if (type == 4) {
  8483. _this.addPz("3", data.Location);
  8484. } else if (type == 5) {
  8485. _this.addImgDrawImG(data.Location);
  8486. } else if (type == 6) {
  8487. var _ftype = 1;
  8488. if (
  8489. c.indexOf(
  8490. data.Location.split(".")[
  8491. data.Location.split(".").length - 1
  8492. ].toLocaleUpperCase()
  8493. ) != -1
  8494. ) {
  8495. _ftype = 5;
  8496. } else if (
  8497. b.indexOf(
  8498. data.Location.split(".")[
  8499. data.Location.split(".").length - 1
  8500. ].toLocaleUpperCase()
  8501. ) != -1
  8502. ) {
  8503. _ftype = 4;
  8504. } else {
  8505. _ftype = 1;
  8506. }
  8507. _this.plworkFile.push({
  8508. name: file.name,
  8509. url: data.Location,
  8510. uid: file.uid,
  8511. fileType: _ftype,
  8512. username:
  8513. _this.plworkFile.length > 10
  8514. ? _this.plworkFile.length + 1
  8515. : "0" + (_this.plworkFile.length + 1),
  8516. });
  8517. }
  8518. _this.imgChange(null, null, type);
  8519. console.log(data.Location);
  8520. // _this.$message.success('上传成功'+data.Location)
  8521. }
  8522. });
  8523. }
  8524. }
  8525. },
  8526. beforeUpload2(event, type) {
  8527. var file = event.target.files[0];
  8528. var credentials = {
  8529. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8530. secretAccessKey: "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",
  8531. }; //秘钥形式的登录上传
  8532. window.AWS.config.update(credentials);
  8533. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8534. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8535. var _this = this;
  8536. _this.progress = 0;
  8537. _this.proVisible = true;
  8538. if (file) {
  8539. var params = {
  8540. Key:
  8541. file.name.split(".")[0] +
  8542. new Date().getTime() +
  8543. "." +
  8544. file.name.split(".")[file.name.split(".").length - 1],
  8545. ContentType: file.type,
  8546. Body: file,
  8547. "Access-Control-Allow-Credentials": "*",
  8548. ACL: "public-read",
  8549. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8550. var options = {
  8551. partSize: 2048 * 1024 * 1024,
  8552. queueSize: 2,
  8553. leavePartsOnError: true,
  8554. };
  8555. bucket
  8556. .upload(params, options)
  8557. .on("httpUploadProgress", function (evt) {
  8558. //这里可以写进度条
  8559. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8560. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  8561. })
  8562. .send(function (err, data) {
  8563. _this.progress = 100;
  8564. setTimeout(() => {
  8565. _this.proVisible = false;
  8566. }, 1000);
  8567. if (err) {
  8568. var a = _this.$refs.upload1.uploadFiles;
  8569. a.splice(a.length - 1, a.length);
  8570. _this.$message.error("上传失败");
  8571. } else {
  8572. if (type == 2) {
  8573. _this.studyJuri[0].upVedio.push({
  8574. name: file.name,
  8575. url: data.Location,
  8576. uid: file.uid,
  8577. });
  8578. _this.imgChange(null, null, type);
  8579. } else if (type == 3) {
  8580. _this.studyJuri[0].upFile.push({
  8581. name: file.name,
  8582. url: data.Location,
  8583. uid: file.uid,
  8584. });
  8585. _this.imgChange(null, null, type);
  8586. }
  8587. console.log(data.Location);
  8588. }
  8589. });
  8590. }
  8591. },
  8592. allScrell() {
  8593. window.parent.postMessage({ allScreen: this.screenType }, "*");
  8594. },
  8595. nextOrpreSteps(t) {
  8596. if (this.IsFollow && this.tType == 2) {
  8597. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8598. return;
  8599. }
  8600. var b = this.chapInfoList.length - 1;
  8601. if (t == 0) {
  8602. if (this.courseType == 0) {
  8603. if (this.taskCount == 0) {
  8604. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  8605. if (this.IsLookOpen) {
  8606. if (
  8607. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  8608. ) {
  8609. if (
  8610. this.courseDetail.userid != this.userid &&
  8611. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  8612. ) {
  8613. this.$message.error("任务未解锁");
  8614. } else {
  8615. this.$message.error("上一任务未解锁");
  8616. }
  8617. return;
  8618. }
  8619. }
  8620. this.navList[this.courseType].isOpen = false;
  8621. this.courseType = b;
  8622. this.taskCount =
  8623. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  8624. .length - 1;
  8625. this.navList[this.courseType].isOpen = true;
  8626. } else {
  8627. this.taskCount--;
  8628. }
  8629. } else {
  8630. if (this.taskCount == 0) {
  8631. this.navList[this.courseType].isOpen = false;
  8632. this.courseType--;
  8633. this.taskCount =
  8634. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  8635. .length - 1;
  8636. this.navList[this.courseType].isOpen = true;
  8637. } else {
  8638. this.taskCount--;
  8639. }
  8640. }
  8641. } else {
  8642. if (this.courseType == b) {
  8643. if (
  8644. this.taskCount ==
  8645. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  8646. 1
  8647. ) {
  8648. this.navList[this.courseType].isOpen = false;
  8649. this.courseType = 0;
  8650. this.taskCount = 0;
  8651. this.navList[this.courseType].isOpen = true;
  8652. } else {
  8653. var bbb = parseInt(this.taskCount) + 1;
  8654. if (
  8655. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  8656. .isLook &&
  8657. this.courseDetail.userid != this.userid &&
  8658. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  8659. this.IsLookOpen
  8660. ) {
  8661. this.$message.error("任务未解锁");
  8662. return;
  8663. }
  8664. this.taskCount++;
  8665. if (this.IsLookOpen) {
  8666. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8667. this.taskCount
  8668. ].isLook = true;
  8669. this.addCourseState(3);
  8670. }
  8671. }
  8672. } else {
  8673. if (
  8674. this.taskCount ==
  8675. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  8676. 1
  8677. ) {
  8678. var bbb = parseInt(this.courseType) + 1;
  8679. if (
  8680. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  8681. this.courseDetail.userid != this.userid &&
  8682. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  8683. this.IsLookOpen
  8684. ) {
  8685. this.$message.error("任务未解锁");
  8686. return;
  8687. }
  8688. this.navList[this.courseType].isOpen = false;
  8689. this.courseType++;
  8690. this.taskCount = 0;
  8691. this.navList[this.courseType].isOpen = true;
  8692. } else {
  8693. var bbb = parseInt(this.taskCount) + 1;
  8694. if (
  8695. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  8696. .isLook &&
  8697. this.courseDetail.userid != this.userid &&
  8698. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  8699. this.IsLookOpen
  8700. ) {
  8701. this.$message.error("任务未解锁");
  8702. return;
  8703. }
  8704. this.taskCount++;
  8705. }
  8706. if (this.IsLookOpen) {
  8707. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8708. this.taskCount
  8709. ].isLook = true;
  8710. this.addCourseState(3);
  8711. }
  8712. }
  8713. // if (
  8714. // this.taskCount ==
  8715. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  8716. // ) {
  8717. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  8718. // } else {
  8719. // this.taskCount++;
  8720. // }
  8721. }
  8722. document.scrollingElement.scrollTop = 0;
  8723. this.showType = 0;
  8724. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8725. // if (this.vedio[this.taskCount].length > 0) {
  8726. // var a =
  8727. // document.getElementsByClassName("box_course")[this.taskCount]
  8728. // .offsetHeight;
  8729. // document.getElementsByClassName("vedioList")[
  8730. // this.taskCount
  8731. // ].style.height = a + "px";
  8732. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  8733. // a - 40 + "px";
  8734. // }
  8735. this.isNoHomeWork = false;
  8736. (this.studyJuri = [
  8737. {
  8738. content: "",
  8739. cover: [],
  8740. upVedio: [],
  8741. upFile: [],
  8742. },
  8743. ]),
  8744. (this.radio = []);
  8745. this.isClickNav = "";
  8746. this.selectPz();
  8747. this.getHomeWork();
  8748. this.getCourseDetail(2);
  8749. this.$forceUpdate();
  8750. },
  8751. openTask(s, n, i) {
  8752. if (this.IsFollow && this.tType == 2) {
  8753. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8754. return;
  8755. }
  8756. if (this.IsLookOpen) {
  8757. if (
  8758. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  8759. this.courseDetail.userid != this.userid &&
  8760. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  8761. ) {
  8762. this.$message.error("任务未解锁");
  8763. return;
  8764. }
  8765. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  8766. if (
  8767. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  8768. .isLook
  8769. ) {
  8770. this.$message.error("上一任务未解锁");
  8771. return;
  8772. }
  8773. } else if (s > this.courseType) {
  8774. if (n > 0) {
  8775. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  8776. this.$message.error("上一任务未解锁");
  8777. return;
  8778. }
  8779. } else {
  8780. if (
  8781. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  8782. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  8783. ].isLook
  8784. ) {
  8785. this.$message.error("上一任务未解锁");
  8786. return;
  8787. }
  8788. }
  8789. }
  8790. }
  8791. this.courseType = s;
  8792. this.navId = i;
  8793. this.taskCount = n;
  8794. if (this.IsLookOpen) {
  8795. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8796. this.taskCount
  8797. ].isLook = true;
  8798. this.addCourseState(3);
  8799. }
  8800. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  8801. this.isCloseList[ci].isClose = 0;
  8802. }
  8803. this.showType = 0;
  8804. this.isNoHomeWork = false;
  8805. (this.studyJuri = [
  8806. {
  8807. content: "",
  8808. cover: [],
  8809. upVedio: [],
  8810. upFile: [],
  8811. },
  8812. ]),
  8813. (this.radio = []);
  8814. document.scrollingElement.scrollTop = 0;
  8815. // setTimeout(() => {
  8816. // let a = document.getElementById(i);
  8817. // if (a.offsetTop - 110 == 0) {
  8818. // window.scrollTo(0, 0);
  8819. // } else {
  8820. // window.scrollTo(0, a.offsetTop);
  8821. // }
  8822. // }, 0);
  8823. this.selectPz();
  8824. this.getHomeWork();
  8825. this.getCourseDetail(2);
  8826. },
  8827. get(i) {
  8828. if (this.IsFollow && this.tType == 2) {
  8829. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8830. return;
  8831. }
  8832. this.navList[i].isOpen = !this.navList[i].isOpen;
  8833. },
  8834. addQuestion() {
  8835. this.answerList.push({
  8836. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8837. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8838. });
  8839. let params = [
  8840. {
  8841. uid: this.userid,
  8842. cid: this.id,
  8843. stage: this.courseType,
  8844. task: this.taskCount,
  8845. tool: this.toolindex,
  8846. content: JSON.stringify(this.answerList),
  8847. type: 3,
  8848. },
  8849. ];
  8850. this.ajax
  8851. .post(this.$store.state.api + "addCourseWorks", params)
  8852. .then((res) => {
  8853. this.$message({
  8854. message: "提交成功",
  8855. type: "success",
  8856. });
  8857. this.answerList = [];
  8858. this.answerDialogVisible = false;
  8859. this.selectStudent();
  8860. this.selectSWorks();
  8861. this.selectSLook();
  8862. })
  8863. .catch((err) => {
  8864. this.$message.error("提交失败");
  8865. console.error(err);
  8866. });
  8867. },
  8868. addQuestionTeacher() {
  8869. this.answerList.push({
  8870. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8871. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8872. });
  8873. let params = [
  8874. {
  8875. uid: this.sStudent.userid,
  8876. cid: this.id,
  8877. stage: this.courseType,
  8878. task: this.taskCount,
  8879. tool: this.toolindex,
  8880. content: JSON.stringify(this.answerList),
  8881. type: 3,
  8882. ateacher: this.userid,
  8883. },
  8884. ];
  8885. this.ajax
  8886. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  8887. .then((res) => {
  8888. this.$message({
  8889. message: "提交成功",
  8890. type: "success",
  8891. });
  8892. this.answerList = [];
  8893. this.questionAnswer = ""
  8894. this.answerDialogVisibleTeacher = false;
  8895. this.selectStudent();
  8896. this.selectSWorks();
  8897. this.selectSLook();
  8898. })
  8899. .catch((err) => {
  8900. this.$message.error("提交失败");
  8901. console.error(err);
  8902. });
  8903. },
  8904. getCourseDetail(type, gindex) {
  8905. let loading;
  8906. if (type != 2) {
  8907. loading = this.$loading.service({
  8908. background: "rgba(255, 255, 255, 0.7)",
  8909. target: document.querySelector(".student_table"),
  8910. });
  8911. }
  8912. // this.navList[0].isOpen = false;
  8913. // this.navList[this.courseType].isOpen = true;
  8914. // this.courseType = this.courseTypeLine;
  8915. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8916. let params = {
  8917. courseId: this.id,
  8918. };
  8919. this.ajax
  8920. .get(this.$store.state.api + "selectCourseDetail3", params)
  8921. .then((res) => {
  8922. if (type != 2) {
  8923. loading.close();
  8924. if (this.courseType > (JSON.parse(res.data[0][0].chapters).length - 1)) {
  8925. this.courseType = (JSON.parse(res.data[0][0].chapters).length - 1)
  8926. }
  8927. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8928. .chapterInfo[0].taskJson;
  8929. var b = [
  8930. "AVI",
  8931. "NAVI",
  8932. "MPEG",
  8933. "ASF",
  8934. "MOV",
  8935. "WMV",
  8936. "3GP",
  8937. "RM",
  8938. "RMVB",
  8939. "FLV",
  8940. "F4V",
  8941. "H.264",
  8942. "H.265",
  8943. "REAL VIDEO",
  8944. "MKV",
  8945. "WebM",
  8946. "HDDVD",
  8947. "MP4",
  8948. "MPG",
  8949. "M4V",
  8950. "MGV",
  8951. "OGV",
  8952. "QTM",
  8953. "STR",
  8954. "AMC",
  8955. "DVX",
  8956. "EVO",
  8957. "DAT",
  8958. "OGG",
  8959. "OGM",
  8960. "MP3",
  8961. ];
  8962. for (var i = 0; i < a.length; i++) {
  8963. var c = a[i].chapterData;
  8964. this.vedio[i] = [];
  8965. this.textList[i] = [];
  8966. this.lineList[i] = [];
  8967. this.chapToolList[i] = [];
  8968. this.file[i] = [];
  8969. this.fileC[i] = [];
  8970. for (var j = 0; j < c.length; j++) {
  8971. if (c[j].type == 7) {
  8972. this.chapToolList[i].push(c[j]);
  8973. } else if (c[j].type == 8) {
  8974. this.lineList[i].push(c[j]);
  8975. } else if (c[j].type == 6) {
  8976. this.textList[i].push(c[j]);
  8977. } else if (c[j].type == 12) {
  8978. this.fileC[i].push(c[j]);
  8979. } else {
  8980. if (
  8981. b.indexOf(
  8982. c[j].url
  8983. .split(".")
  8984. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8985. ) != -1
  8986. ) {
  8987. this.vedio[i].push(c[j]);
  8988. } else {
  8989. this.file[i].push(c[j]);
  8990. }
  8991. }
  8992. }
  8993. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8994. d.sources[0].src =
  8995. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8996. this.playerO[i] = d;
  8997. }
  8998. this.courseDetail = res.data[0][0];
  8999. this.tcid = this.arrayToArray(this.courseDetail.juri ? this.courseDetail.juri.split(",") : [], this.tcid2 ? this.tcid2.split(",") : []).join(",")
  9000. console.log(this.tcid);
  9001. this.evalua = res.data[0][0].evaId;
  9002. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  9003. this.courseType
  9004. ];
  9005. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  9006. if (this.tcid && res.data[1].length) {
  9007. let _inviteA = []
  9008. for (var ik = 0; ik < res.data[1].length; ik++) {
  9009. _inviteA.push({ cid: res.data[1][ik].classid, ic: res.data[1][ik].code });
  9010. }
  9011. for (var ik = 0; ik < _inviteA.length; ik++) {
  9012. if (this.arrayToArray(_inviteA[ik].cid.split(","), this.tcid.split(",")).length) {
  9013. this.inviteCode = _inviteA[ik].ic
  9014. break;
  9015. }
  9016. }
  9017. }
  9018. for (var l = 0; l < this.chapInfoList.length; l++) {
  9019. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  9020. for (var m = 0; m < w.length; m++) {
  9021. w[m].id = l + "-" + m;
  9022. }
  9023. }
  9024. if (
  9025. !this.vedio[this.taskCount][0] ||
  9026. this.vedio[this.taskCount][0].url == ""
  9027. ) {
  9028. if (
  9029. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9030. this.taskCount
  9031. ].chapterData.length > 0
  9032. ) {
  9033. // if (
  9034. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9035. // this.taskCount
  9036. // ].chapterData[0].type != 8
  9037. // ) {
  9038. let _url =
  9039. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9040. this.taskCount
  9041. ].chapterData[0].url;
  9042. if (
  9043. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9044. this.taskCount
  9045. ].chapterData[0].type == 8
  9046. ) {
  9047. this.showType = 2;
  9048. if (
  9049. _url.indexOf("https://") == -1 &&
  9050. _url.indexOf("http://") == -1
  9051. ) {
  9052. _url = "https://" + _url;
  9053. }
  9054. this.pptImgUrl1 = _url;
  9055. this.isClickNav = "line0";
  9056. } else if (
  9057. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9058. this.taskCount
  9059. ].chapterData[0].type == 3
  9060. ) {
  9061. if (
  9062. _url
  9063. .split(".")
  9064. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9065. ) {
  9066. this.showType = 3;
  9067. this.pptImgUrl1 = _url;
  9068. this.isClickNav = "word0";
  9069. } else if (
  9070. this.isAssetTypeAnImage(
  9071. _url
  9072. .split(".")
  9073. [_url.split(".").length - 1].toLocaleLowerCase()
  9074. )
  9075. ) {
  9076. this.showType = 4;
  9077. this.pptImgUrl1 = _url;
  9078. this.isClickNav = "word0";
  9079. } else {
  9080. this.showType = 2;
  9081. this.pptImgUrl1 =
  9082. "https://view.officeapps.live.com/op/view.aspx?src=" +
  9083. _url;
  9084. this.isClickNav = "word0";
  9085. }
  9086. } else if (
  9087. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9088. this.taskCount
  9089. ].chapterData[0].type == 6
  9090. ) {
  9091. this.showType = 1;
  9092. this.text = this.textList[this.taskCount][0];
  9093. this.isClickNav = "text0";
  9094. }
  9095. }
  9096. } else {
  9097. this.showType = 0
  9098. this.isClickNav = "video0";
  9099. }
  9100. } else {
  9101. this.showType = 0
  9102. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  9103. .chapterInfo[0].taskJson;
  9104. var b = [
  9105. "AVI",
  9106. "NAVI",
  9107. "MPEG",
  9108. "ASF",
  9109. "MOV",
  9110. "WMV",
  9111. "3GP",
  9112. "RM",
  9113. "RMVB",
  9114. "FLV",
  9115. "F4V",
  9116. "H.264",
  9117. "H.265",
  9118. "REAL VIDEO",
  9119. "MKV",
  9120. "WebM",
  9121. "HDDVD",
  9122. "MP4",
  9123. "MPG",
  9124. "M4V",
  9125. "MGV",
  9126. "OGV",
  9127. "QTM",
  9128. "STR",
  9129. "AMC",
  9130. "DVX",
  9131. "EVO",
  9132. "DAT",
  9133. "OGG",
  9134. "OGM",
  9135. "MP3",
  9136. ];
  9137. for (var i = 0; i < a.length; i++) {
  9138. var c = a[i].chapterData;
  9139. this.vedio[i] = [];
  9140. this.textList[i] = [];
  9141. this.lineList[i] = [];
  9142. this.chapToolList[i] = [];
  9143. this.file[i] = [];
  9144. this.fileC[i] = [];
  9145. for (var j = 0; j < c.length; j++) {
  9146. if (c[j].type == 7) {
  9147. this.chapToolList[i].push(c[j]);
  9148. } else if (c[j].type == 8) {
  9149. this.lineList[i].push(c[j]);
  9150. } else if (c[j].type == 6) {
  9151. this.textList[i].push(c[j]);
  9152. } else if (c[j].type == 12) {
  9153. this.fileC[i].push(c[j]);
  9154. } else {
  9155. if (
  9156. b.indexOf(
  9157. c[j].url
  9158. .split(".")
  9159. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  9160. ) != -1
  9161. ) {
  9162. this.vedio[i].push(c[j]);
  9163. } else {
  9164. this.file[i].push(c[j]);
  9165. }
  9166. }
  9167. }
  9168. var d = JSON.parse(JSON.stringify(this.playerOptions));
  9169. d.sources[0].src =
  9170. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  9171. this.playerO[i] = d;
  9172. }
  9173. if (
  9174. !this.vedio[this.taskCount][0] ||
  9175. this.vedio[this.taskCount][0].url == ""
  9176. ) {
  9177. if (
  9178. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9179. this.taskCount
  9180. ].chapterData.length > 0
  9181. ) {
  9182. // if (
  9183. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9184. // this.taskCount
  9185. // ].chapterData[0].type != 8
  9186. // ) {
  9187. let _url =
  9188. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9189. this.taskCount
  9190. ].chapterData[0].url;
  9191. if (
  9192. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9193. this.taskCount
  9194. ].chapterData[0].type == 8
  9195. ) {
  9196. this.showType = 2;
  9197. if (
  9198. _url.indexOf("https://") == -1 &&
  9199. _url.indexOf("http://") == -1
  9200. ) {
  9201. _url = "https://" + _url;
  9202. }
  9203. this.pptImgUrl1 = _url;
  9204. this.isClickNav = "line0";
  9205. } else if (
  9206. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9207. this.taskCount
  9208. ].chapterData[0].type == 3
  9209. ) {
  9210. if (
  9211. _url
  9212. .split(".")
  9213. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9214. ) {
  9215. this.showType = 3;
  9216. this.pptImgUrl1 = _url;
  9217. this.isClickNav = "word0";
  9218. } else if (
  9219. this.isAssetTypeAnImage(
  9220. _url
  9221. .split(".")
  9222. [_url.split(".").length - 1].toLocaleLowerCase()
  9223. )
  9224. ) {
  9225. this.showType = 4;
  9226. this.pptImgUrl1 = _url;
  9227. this.isClickNav = "word0";
  9228. } else {
  9229. this.showType = 2;
  9230. this.pptImgUrl1 =
  9231. "https://view.officeapps.live.com/op/view.aspx?src=" +
  9232. _url;
  9233. this.isClickNav = "word0";
  9234. }
  9235. } else if (
  9236. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9237. this.taskCount
  9238. ].chapterData[0].type == 6
  9239. ) {
  9240. this.showType = 1;
  9241. this.text = this.textList[this.taskCount][0];
  9242. this.isClickNav = "text0";
  9243. }
  9244. }
  9245. } else {
  9246. this.showType = 0
  9247. this.isClickNav = "video0";
  9248. }
  9249. this.$forceUpdate();
  9250. }
  9251. // else {
  9252. // this.courseDetail = res.data[0][0];
  9253. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  9254. // }
  9255. let _this = this;
  9256. if (_this.timer) {
  9257. clearInterval(_this.timer);
  9258. _this.timer = null;
  9259. }
  9260. if (_this.tcid) {
  9261. _this.getCourseGroup(gindex)
  9262. } else {
  9263. _this.selectSWorks(gindex);
  9264. }
  9265. _this.selectStudent();
  9266. _this.selectSLook();
  9267. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  9268. _this.setCTask();
  9269. }
  9270. if (_this.dialogVisibleGroup) {
  9271. _this.groupJson =
  9272. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  9273. _this.taskCount
  9274. ].toolChoose[_this.toolindex].groupJson;
  9275. }
  9276. _this.$nextTick(() => {
  9277. setTimeout(() => {
  9278. _this.checkEva();
  9279. }, 1000);
  9280. });
  9281. _this.timer = setInterval(function () {
  9282. // _this.getCourseDetail(2);
  9283. if (_this.tcid) {
  9284. _this.getCourseGroup(gindex)
  9285. } else {
  9286. _this.selectSWorks(gindex);
  9287. }
  9288. _this.selectStudent();
  9289. _this.selectSLook();
  9290. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  9291. _this.setCTask();
  9292. }
  9293. if (_this.dialogVisibleGroup) {
  9294. _this.groupJson =
  9295. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  9296. _this.taskCount
  9297. ].toolChoose[_this.toolindex].groupJson;
  9298. }
  9299. if (_this.tType == 4) {
  9300. _this.selectPz();
  9301. }
  9302. }, 5000);
  9303. _this.$nextTick(function () {
  9304. setTimeout(() => {
  9305. // var a =
  9306. // document.getElementsByClassName("box_course")[0].offsetHeight;
  9307. // document.getElementsByClassName("vedioList")[0].style.height =
  9308. // a + "px";
  9309. // document.getElementsByClassName("navBox")[0].style.height =
  9310. // a - 40 + "px";
  9311. // if (_this.vedio[_this.taskCount].length > 0) {
  9312. // _this.vedioTime = [];
  9313. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  9314. // _this.vedioTime[i] = document.getElementsByClassName(
  9315. // "vjs-duration-display"
  9316. // )[i].textContent;
  9317. // }
  9318. // }
  9319. }, 1000);
  9320. });
  9321. })
  9322. .catch((err) => {
  9323. loading.close();
  9324. console.error(err);
  9325. });
  9326. },
  9327. getCourseGroup(gindex) {
  9328. let params = {
  9329. cid: this.id,
  9330. classid: this.tcid ? this.tcid : '1',
  9331. };
  9332. this.ajax
  9333. .get(this.$store.state.api + "getCourseGroup", params)
  9334. .then((res) => {
  9335. if (res.data && res.data[0].length) {
  9336. if (!this.isGroup) {
  9337. let courseGroup = JSON.parse(res.data[0][0].group)
  9338. courseGroup.group = courseGroup.group.filter(el => {
  9339. el.works = []
  9340. return el
  9341. });
  9342. this.courseGroup = courseGroup
  9343. let groupPerson = res.data[1]
  9344. let group = JSON.parse(res.data[0][0].group).group
  9345. let courseGroupStudent = {}
  9346. let courseGroupStudentUid = {}
  9347. for (var i = 0; i < group.length; i++) {
  9348. courseGroupStudent[group[i].id] = []
  9349. courseGroupStudentUid[group[i].id] = []
  9350. for (var j = 0; j < groupPerson.length; j++) {
  9351. if (groupPerson[j].groupCid == group[i].id) {
  9352. courseGroupStudent[group[i].id].push(groupPerson[j])
  9353. courseGroupStudentUid[group[i].id].push(groupPerson[j].userid)
  9354. }
  9355. }
  9356. }
  9357. this.courseGroupStudent = courseGroupStudent
  9358. this.courseGroupStudentUid = courseGroupStudentUid
  9359. }
  9360. this.isGroup = true
  9361. this.selectSWorks(gindex);
  9362. } else {
  9363. this.selectSWorks(gindex);
  9364. this.isGroup = false
  9365. }
  9366. })
  9367. .catch((err) => {
  9368. // this.$message.error("网络不佳");
  9369. console.error(err);
  9370. });
  9371. },
  9372. setOperationTime() {
  9373. let _this = this
  9374. if (_this.opertimer) {
  9375. clearInterval(_this.opertimer);
  9376. _this.opertimer = null;
  9377. }
  9378. _this.opertimer = setInterval(() => {
  9379. _this.setoTime('600')
  9380. }, 600000);
  9381. },
  9382. setoTime(time) {
  9383. let params = [
  9384. {
  9385. uid: this.userid,
  9386. cid: this.id,
  9387. type: '2',
  9388. time: time,
  9389. },
  9390. ];
  9391. this.ajax
  9392. .post(this.$store.state.api + "addOperationTimeT2", params)
  9393. .then((res) => {
  9394. })
  9395. .catch((err) => {
  9396. console.error(err);
  9397. });
  9398. },
  9399. addPz(type, content) {
  9400. if (type == "1" && this.pzConText == "") {
  9401. this.$message.error("批注不能为空!");
  9402. return;
  9403. }
  9404. let params = [
  9405. {
  9406. cid: this.id,
  9407. uid: this.userid,
  9408. s: this.courseType,
  9409. t: this.taskCount,
  9410. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  9411. type: type,
  9412. },
  9413. ];
  9414. this.ajax
  9415. .post(this.$store.state.api + "addPz2", params)
  9416. .then((res) => {
  9417. this.$message({
  9418. message: "添加成功",
  9419. type: "success",
  9420. });
  9421. this.pzConText = "";
  9422. this.addPzDialog = false;
  9423. this.selectPz();
  9424. })
  9425. .catch((err) => {
  9426. this.$message.error("添加失败");
  9427. console.error(err);
  9428. });
  9429. },
  9430. deletePz(id) {
  9431. this.$confirm("确定删除此批注吗?", "提示", {
  9432. confirmButtonText: "确定",
  9433. cancelButtonText: "取消",
  9434. type: "warning",
  9435. })
  9436. .then(() => {
  9437. let params = [
  9438. {
  9439. id: id,
  9440. },
  9441. ];
  9442. this.ajax
  9443. .post(this.$store.state.api + "deletePz", params)
  9444. .then((res) => {
  9445. this.$message({
  9446. message: "删除成功",
  9447. type: "success",
  9448. });
  9449. this.selectPz();
  9450. })
  9451. .catch((err) => {
  9452. this.$message.error("网络异常");
  9453. console.error(err);
  9454. });
  9455. })
  9456. .catch(() => { });
  9457. },
  9458. selectPz() {
  9459. let params = {
  9460. cid: this.id,
  9461. s: this.courseType,
  9462. t: this.taskCount,
  9463. };
  9464. this.ajax
  9465. .get(this.$store.state.api + "selectPzList", params)
  9466. .then((res) => {
  9467. this.pzList = res.data[0];
  9468. })
  9469. .catch((err) => {
  9470. console.error(err);
  9471. });
  9472. },
  9473. updateSLook() {
  9474. let params = {
  9475. sopen: this.sIsOpen == false ? 1 : 2,
  9476. cid: this.id,
  9477. };
  9478. this.ajax
  9479. .get(this.$store.state.api + "updateCourseSLook", params)
  9480. .then((res) => {
  9481. if (this.sIsOpen == true) {
  9482. this.$message({
  9483. message: "权限设置成功",
  9484. type: "success",
  9485. });
  9486. } else {
  9487. this.$message({
  9488. message: "权限关闭成功",
  9489. type: "success",
  9490. });
  9491. }
  9492. })
  9493. .catch((err) => {
  9494. console.error(err);
  9495. });
  9496. },
  9497. updateFollow() {
  9498. let params = [
  9499. {
  9500. sopen: this.IsFollow == false ? 1 : 2,
  9501. cid: this.id,
  9502. },
  9503. ];
  9504. this.ajax
  9505. .post(this.$store.state.api + "updateCourseFollow", params)
  9506. .then((res) => {
  9507. if (this.IsFollow == true) {
  9508. this.$message({
  9509. message: "开启成功",
  9510. type: "success",
  9511. });
  9512. } else {
  9513. this.$message({
  9514. message: "关闭成功",
  9515. type: "success",
  9516. });
  9517. }
  9518. this.setCTask();
  9519. })
  9520. .catch((err) => {
  9521. console.error(err);
  9522. });
  9523. },
  9524. setCTask() {
  9525. let params = [
  9526. {
  9527. sopen: this.courseType + '-' + this.taskCount,
  9528. cid: this.id,
  9529. },
  9530. ];
  9531. this.ajax
  9532. .post(this.$store.state.api + "updateCourseFollowC", params)
  9533. .then((res) => {
  9534. })
  9535. .catch((err) => {
  9536. console.error(err);
  9537. });
  9538. },
  9539. updateLookOpen() {
  9540. let params = [
  9541. {
  9542. sopen: this.IsLookOpen == false ? 1 : 2,
  9543. cid: this.id,
  9544. },
  9545. ];
  9546. this.ajax
  9547. .post(this.$store.state.api + "updateCourseLookOpen", params)
  9548. .then((res) => {
  9549. if (this.IsLookOpen == true) {
  9550. // if (this.courseType != 0 && this.taskCount != 0) {
  9551. // this.openTask(0, 0, "0-0");
  9552. // }
  9553. this.$message({
  9554. message: "权限设置成功",
  9555. type: "success",
  9556. });
  9557. } else {
  9558. this.$message({
  9559. message: "权限关闭成功",
  9560. type: "success",
  9561. });
  9562. }
  9563. this.getCourseState(2);
  9564. })
  9565. .catch((err) => {
  9566. console.error(err);
  9567. });
  9568. },
  9569. selectSLook() {
  9570. let params = {
  9571. cid: this.id,
  9572. };
  9573. this.ajax
  9574. .get(this.$store.state.api + "selectCourseSLook", params)
  9575. .then((res) => {
  9576. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  9577. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  9578. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  9579. if (!this.IsLookOpen) {
  9580. this.setNavList();
  9581. } else {
  9582. this.getCourseState(1);
  9583. }
  9584. if (this.IsFollow && this.tType == 2) {
  9585. this.setContent2(false)
  9586. let _followC = res.data[0][0].followC.split('-')
  9587. if (this.courseType != _followC[0] || this.taskCount != _followC[1]) {
  9588. this.navList[this.courseType].isOpen = false;
  9589. this.courseType = _followC[0]
  9590. this.navList[this.courseType].isOpen = true;
  9591. this.taskCount = parseInt(_followC[1])
  9592. this.navId = res.data[0][0].followC;
  9593. document.scrollingElement.scrollTop = 0;
  9594. this.getCourseDetail(2)
  9595. }
  9596. }
  9597. })
  9598. .catch((err) => {
  9599. console.error(err);
  9600. });
  9601. },
  9602. setNavList() {
  9603. if (this.navList.length == 0) {
  9604. this.navList = [];
  9605. for (var l = 0; l < this.chapInfoList.length; l++) {
  9606. var q = this.chapInfoList[l].dyName;
  9607. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  9608. var e;
  9609. this.navList.push({
  9610. dyName: q,
  9611. isOpen: l === 0 ? true : false,
  9612. task: [],
  9613. });
  9614. for (var r = 0; r < w.length; r++) {
  9615. e = w[r].task;
  9616. if (this.chapInfoList[l].easy == 1) {
  9617. this.navList[l].task.push({
  9618. taskName: q,
  9619. id: l + "-" + r,
  9620. isLook: w[r].isLook,
  9621. });
  9622. } else {
  9623. this.navList[l].task.push({
  9624. taskName: e,
  9625. id: l + "-" + r,
  9626. isLook: w[r].isLook,
  9627. });
  9628. }
  9629. // this.navId = this.navId ? this.navId : l + "-" + r;
  9630. // this.navId = l + "-" + r;
  9631. }
  9632. }
  9633. this.navList[0].isOpen = false;
  9634. this.navList[this.courseType].isOpen = true;
  9635. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  9636. } else {
  9637. this.setNavList2();
  9638. }
  9639. },
  9640. setNavList2() {
  9641. for (var l = 0; l < this.chapInfoList.length; l++) {
  9642. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  9643. for (var r = 0; r < w.length; r++) {
  9644. this.navList[l].task[r].isLook = w[r].isLook;
  9645. }
  9646. }
  9647. if (
  9648. this.IsLookOpen &&
  9649. !this.navList[this.courseType].task[this.taskCount].isLook
  9650. ) {
  9651. this.openTask(0, 0, "0-0");
  9652. }
  9653. this.$forceUpdate();
  9654. },
  9655. getCourseState(type) {
  9656. let params = {
  9657. cid: this.id,
  9658. };
  9659. this.ajax
  9660. .get(this.$store.state.api + "getCourseState", params)
  9661. .then((res) => {
  9662. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  9663. this.chapInfoList = JSON.parse(res.data[0][0].state);
  9664. this.setNavList();
  9665. this.$forceUpdate();
  9666. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  9667. this.addCourseState(2);
  9668. } else {
  9669. this.addCourseState(1);
  9670. }
  9671. })
  9672. .catch((err) => {
  9673. console.error(err);
  9674. });
  9675. },
  9676. addCourseState(type) {
  9677. let _state = this.chapInfoList;
  9678. // this.courseType this.taskCount
  9679. if (type == 1 || type == 2) {
  9680. for (var i = 0; i < _state.length; i++) {
  9681. let el = _state[i].chapterInfo[0].taskJson;
  9682. for (var j = 0; j < el.length; j++) {
  9683. // if (i == 0 && j == 0) {
  9684. // el[j].isLook = true;
  9685. // } else {
  9686. // el[j].isLook = false;
  9687. // }
  9688. if (
  9689. this.courseType > i ||
  9690. (this.courseType == i && this.taskCount + 1 > j)
  9691. ) {
  9692. el[j].isLook = true;
  9693. } else {
  9694. el[j].isLook = false;
  9695. }
  9696. }
  9697. }
  9698. }
  9699. let params = [
  9700. {
  9701. cid: this.id,
  9702. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  9703. },
  9704. ];
  9705. this.ajax
  9706. .post(
  9707. this.$store.state.api +
  9708. (type == 1 ? "addCourseState" : "updateCourseSate"),
  9709. params
  9710. )
  9711. .then((res) => {
  9712. if (this.IsLookOpen) {
  9713. this.setNavList();
  9714. }
  9715. if (type == 3 && type == 2) {
  9716. this.getCourseState(1);
  9717. }
  9718. })
  9719. .catch((err) => {
  9720. console.error(err);
  9721. });
  9722. },
  9723. getHomeWork() {
  9724. let params = {
  9725. cid: this.id,
  9726. stage: this.courseType,
  9727. task: this.taskCount,
  9728. uid: this.userid,
  9729. };
  9730. this.ajax
  9731. .get(this.$store.state.api + "selectWork", params)
  9732. .then((res) => {
  9733. if (res.data[0].length > 0) {
  9734. this.studyJuri = JSON.parse(res.data[0][0].content);
  9735. this.isNoHomeWork = true;
  9736. }
  9737. })
  9738. .catch((err) => {
  9739. console.error(err);
  9740. });
  9741. },
  9742. isAssetTypeAnImage(ext) {
  9743. return (
  9744. [
  9745. "png",
  9746. "jpg",
  9747. "jpeg",
  9748. "bmp",
  9749. "gif",
  9750. "webp",
  9751. "psd",
  9752. "svg",
  9753. "tiff",
  9754. ].indexOf(ext) !== -1
  9755. );
  9756. },
  9757. switchVideo(media) {
  9758. this.playerO = {};
  9759. this.playerOptions.poster = "";
  9760. this.playerOptions.sources[0].src = media;
  9761. this.playerO = this.playerOptions;
  9762. },
  9763. onPlayerPlay() { },
  9764. lookVedio(u, i) {
  9765. this.isClickNav = "";
  9766. // this.playerOptions.sources[0].src = u;
  9767. var d = JSON.parse(JSON.stringify(this.playerOptions));
  9768. d.sources[0].src = u;
  9769. this.playerO[this.taskCount] = d;
  9770. this.showType = 0;
  9771. this.isClickNav = "video" + i;
  9772. this.$forceUpdate();
  9773. },
  9774. lookText(i, t) {
  9775. this.isClickNav = "";
  9776. this.text = this.textList[i][t];
  9777. // this.dialogVisible1 = true;
  9778. this.showType = 1;
  9779. this.isClickNav = "text" + t;
  9780. },
  9781. lookTools(i, t) {
  9782. this.chapTools = this.chapToolList[i][t];
  9783. this.dialogVisible2 = true;
  9784. },
  9785. openFile(f) {
  9786. this.pptImgUrl = "";
  9787. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  9788. if (
  9789. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  9790. -1
  9791. ) {
  9792. this.pptImgUrl =
  9793. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  9794. this.showPDF = false;
  9795. this.dialogVisible3 = true;
  9796. } else if (
  9797. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9798. ) {
  9799. this.pptImgUrl = f;
  9800. this.showPDF = true;
  9801. this.dialogVisible3 = true;
  9802. }
  9803. },
  9804. openTable(f) {
  9805. this.tableJson = JSON.parse(f.works);
  9806. this.dialogVisibleTable2 = true;
  9807. },
  9808. doUrl(url, i) {
  9809. this.isClickNav = "";
  9810. this.pptImgUrl1 = "";
  9811. this.showType = 2;
  9812. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  9813. url = "https://" + url;
  9814. }
  9815. this.pptImgUrl1 = url;
  9816. this.isClickNav = "line" + i;
  9817. },
  9818. downFile(f, i) {
  9819. this.isClickNav = "";
  9820. this.pptImgUrl1 = "";
  9821. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  9822. if (
  9823. a.indexOf(
  9824. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  9825. ) != -1
  9826. ) {
  9827. this.pptImgUrl1 =
  9828. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  9829. // this.dialogVisible3 = true;
  9830. this.showType = 2;
  9831. } else if (
  9832. this.isAssetTypeAnImage(
  9833. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  9834. )
  9835. ) {
  9836. this.showType = 4;
  9837. this.pptImgUrl1 = f.url;
  9838. } else if (
  9839. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  9840. "PDF"
  9841. ) {
  9842. this.pptImgUrl1 = f.url;
  9843. // this.dialogVisible3 = true;
  9844. this.showType = 3;
  9845. } else {
  9846. window.open(this.file[i].url);
  9847. }
  9848. this.isClickNav = "word" + i;
  9849. },
  9850. downFileList(i) {
  9851. window.open(this.noImgList[i].url);
  9852. },
  9853. openAddWork() {
  9854. this.dialogVisible = true;
  9855. },
  9856. addBzWorks() {
  9857. let params = [
  9858. {
  9859. uid: this.userid,
  9860. cid: this.id,
  9861. stage: this.courseType,
  9862. task: this.taskCount,
  9863. tool: this.toolindex,
  9864. content: JSON.stringify(this.eScore),
  9865. type: 6,
  9866. },
  9867. ];
  9868. this.ajax
  9869. .post(this.$store.state.api + "addCourseWorks", params)
  9870. .then((res) => {
  9871. this.$message({
  9872. message: "提交成功",
  9873. type: "success",
  9874. });
  9875. this.eScore = { eBzText: "", eStar: [] };
  9876. this.studentEvalDialogVisible = false;
  9877. this.selectSWorks();
  9878. })
  9879. .catch((err) => {
  9880. this.$message.error("提交失败");
  9881. console.error(err);
  9882. });
  9883. },
  9884. addBzWorksTeacher() {
  9885. let params = [
  9886. {
  9887. uid: this.sStudent.userid,
  9888. cid: this.id,
  9889. stage: this.courseType,
  9890. task: this.taskCount,
  9891. tool: this.toolindex,
  9892. content: JSON.stringify(this.eScore),
  9893. type: 6,
  9894. },
  9895. ];
  9896. this.ajax
  9897. .post(this.$store.state.api + "addCourseWorks", params)
  9898. .then((res) => {
  9899. this.$message({
  9900. message: "提交成功",
  9901. type: "success",
  9902. });
  9903. this.eScore = { eBzText: "", eStar: [] };
  9904. this.studentEvalDialogVisibleTeacher = false;
  9905. this.selectSWorks();
  9906. })
  9907. .catch((err) => {
  9908. this.$message.error("提交失败");
  9909. console.error(err);
  9910. });
  9911. },
  9912. addStudentAsk() {
  9913. if (!this.radio.length) {
  9914. this.$message.error("请选择选项");
  9915. return;
  9916. }
  9917. for (var i = 0; i < this.askJson.askCount; i++) {
  9918. if (this.radio[i] !== 0 && !this.radio[i]) {
  9919. this.$message.error("请选择选项");
  9920. return;
  9921. }
  9922. }
  9923. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  9924. let params = [
  9925. {
  9926. uid: this.userid,
  9927. cid: this.id,
  9928. stage: this.courseType,
  9929. task: this.taskCount,
  9930. tool: this.toolindex,
  9931. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9932. type: 2,
  9933. },
  9934. ];
  9935. this.ajax
  9936. .post(this.$store.state.api + "addCourseWorks", params)
  9937. .then((res) => {
  9938. this.$message({
  9939. message: "提交成功",
  9940. type: "success",
  9941. });
  9942. this.askList = [];
  9943. this.dialogVisible5 = false;
  9944. this.selectStudent();
  9945. this.selectSWorks();
  9946. this.selectSLook();
  9947. })
  9948. .catch((err) => {
  9949. this.$message.error("提交失败");
  9950. console.error(err);
  9951. });
  9952. },
  9953. addStudentAskTeacher() {
  9954. if (!this.radio.length) {
  9955. this.$message.error("请选择选项");
  9956. return;
  9957. }
  9958. for (var i = 0; i < this.askJson.askCount; i++) {
  9959. if (this.radio[i] !== 0 && !this.radio[i]) {
  9960. this.$message.error("请选择选项");
  9961. return;
  9962. }
  9963. }
  9964. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  9965. let params = [
  9966. {
  9967. uid: this.sStudent.userid,
  9968. cid: this.id,
  9969. stage: this.courseType,
  9970. task: this.taskCount,
  9971. tool: this.toolindex,
  9972. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9973. type: 2,
  9974. },
  9975. ];
  9976. this.ajax
  9977. .post(this.$store.state.api + "addCourseWorks", params)
  9978. .then((res) => {
  9979. this.$message({
  9980. message: "提交成功",
  9981. type: "success",
  9982. });
  9983. this.askList = [];
  9984. this.dialogVisible5Teacher = false;
  9985. this.selectStudent();
  9986. this.selectSWorks();
  9987. this.selectSLook();
  9988. })
  9989. .catch((err) => {
  9990. this.$message.error("提交失败");
  9991. console.error(err);
  9992. });
  9993. },
  9994. addStudentTest() {
  9995. if (!this.radio.length) {
  9996. this.$message.error("请选择选项");
  9997. return;
  9998. }
  9999. for (var i = 0; i < this.testJson.testCount; i++) {
  10000. if (
  10001. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  10002. (this.radio[i] !== 0 && !this.radio[i])
  10003. ) {
  10004. this.$message.error("请选择选项");
  10005. return;
  10006. }
  10007. }
  10008. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  10009. let params = [
  10010. {
  10011. uid: this.userid,
  10012. cid: this.id,
  10013. stage: this.courseType,
  10014. task: this.taskCount,
  10015. tool: this.toolindex,
  10016. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  10017. type: 8,
  10018. },
  10019. ];
  10020. this.ajax
  10021. .post(this.$store.state.api + "addCourseWorks", params)
  10022. .then((res) => {
  10023. this.$message({
  10024. message: "提交成功",
  10025. type: "success",
  10026. });
  10027. this.askList = [];
  10028. this.dialogVisibleChoice = false;
  10029. this.selectStudent();
  10030. this.selectSWorks();
  10031. this.selectSLook();
  10032. })
  10033. .catch((err) => {
  10034. this.$message.error("提交失败");
  10035. console.error(err);
  10036. });
  10037. },
  10038. addStudentTestTeacher() {
  10039. if (!this.radio.length) {
  10040. this.$message.error("请选择选项");
  10041. return;
  10042. }
  10043. for (var i = 0; i < this.testJson.testCount; i++) {
  10044. if (
  10045. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  10046. (this.radio[i] !== 0 && !this.radio[i])
  10047. ) {
  10048. this.$message.error("请选择选项");
  10049. return;
  10050. }
  10051. }
  10052. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  10053. let params = [
  10054. {
  10055. uid: this.sStudent.userid,
  10056. cid: this.id,
  10057. stage: this.courseType,
  10058. task: this.taskCount,
  10059. tool: this.toolindex,
  10060. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  10061. type: 8,
  10062. },
  10063. ];
  10064. this.ajax
  10065. .post(this.$store.state.api + "addCourseWorks", params)
  10066. .then((res) => {
  10067. this.$message({
  10068. message: "提交成功",
  10069. type: "success",
  10070. });
  10071. this.askList = [];
  10072. this.dialogVisibleChoiceTeacher = false;
  10073. this.selectStudent();
  10074. this.selectSWorks();
  10075. this.selectSLook();
  10076. })
  10077. .catch((err) => {
  10078. this.$message.error("提交失败");
  10079. console.error(err);
  10080. });
  10081. },
  10082. addWork() {
  10083. if (this.studyJuri[0].content == "") {
  10084. this.$message.error("请将信息填写完整");
  10085. return;
  10086. } else if (this.studyJuri[0].cover.length == 0) {
  10087. this.$message.error("请将信息填写完整");
  10088. return;
  10089. } else if (this.studyJuri[0].upVedio.length == 0) {
  10090. this.$message.error("请将信息填写完整");
  10091. return;
  10092. }
  10093. if (this.isNoHomeWork) {
  10094. this.$confirm(
  10095. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  10096. "提示",
  10097. {
  10098. confirmButtonText: "确定",
  10099. cancelButtonText: "取消",
  10100. type: "warning",
  10101. }
  10102. )
  10103. .then(() => {
  10104. let params = [
  10105. {
  10106. uid: this.userid,
  10107. cid: this.id,
  10108. stage: this.courseType,
  10109. task: this.taskCount,
  10110. content: JSON.stringify(this.studyJuri),
  10111. },
  10112. ];
  10113. this.ajax
  10114. .post(this.$store.state.api + "addWorks", params)
  10115. .then((res) => {
  10116. this.$message({
  10117. message: "提交成功",
  10118. type: "success",
  10119. });
  10120. this.isNoHomeWork = true;
  10121. this.dialogVisible = false;
  10122. })
  10123. .catch((err) => {
  10124. this.$message.error("提交失败");
  10125. console.error(err);
  10126. });
  10127. })
  10128. .catch(() => { });
  10129. } else {
  10130. let params = [
  10131. {
  10132. uid: this.userid,
  10133. cid: this.id,
  10134. stage: this.courseType,
  10135. task: this.taskCount,
  10136. content: JSON.stringify(this.studyJuri),
  10137. },
  10138. ];
  10139. this.ajax
  10140. .post(this.$store.state.api + "addWorks", params)
  10141. .then((res) => {
  10142. this.$message({
  10143. message: "提交成功",
  10144. type: "success",
  10145. });
  10146. this.isNoHomeWork = true;
  10147. this.dialogVisible = false;
  10148. })
  10149. .catch((err) => {
  10150. this.$message.error("提交失败");
  10151. console.error(err);
  10152. });
  10153. }
  10154. },
  10155. selectCount() {
  10156. let params = {
  10157. cid: this.id,
  10158. chid: this.courseType,
  10159. uid: this.userid,
  10160. };
  10161. this.ajax
  10162. .get(this.$store.state.api + "selectToolsCount", params)
  10163. .then((res) => {
  10164. for (var i = 0; i < res.data[0].length; i++) {
  10165. if (res.data[0][i].tools == 1) {
  10166. this.wbCount = res.data[0][i].count;
  10167. } else if (res.data[0][i].tools == 2) {
  10168. this.wordCount = res.data[0][i].count;
  10169. } else if (res.data[0][i].tools == 3) {
  10170. this.mindCount = res.data[0][i].count;
  10171. } else if (res.data[0][i].tools == 4) {
  10172. this.askCount = res.data[0][i].count;
  10173. } else if (res.data[0][i].tools == 6) {
  10174. this.noteCount = res.data[0][i].count;
  10175. } else if (res.data[0][i].tools == 7) {
  10176. this.mindNetWorkCount = res.data[0][i].count;
  10177. } else if (res.data[0][i].tools == 8) {
  10178. this.libraryCount = res.data[0][i].count;
  10179. } else if (res.data[0][i].tools == 16) {
  10180. this.workCount = res.data[0][i].count;
  10181. } else if (res.data[0][i].tools == 10) {
  10182. this.timeCount = res.data[0][i].count;
  10183. } else if (res.data[0][i].tools == 15) {
  10184. this.answerCount = res.data[0][i].count;
  10185. } else if (res.data[0][i].tools == 18) {
  10186. this.trainCount = res.data[0][i].count;
  10187. }
  10188. }
  10189. })
  10190. .catch((err) => {
  10191. console.error(err);
  10192. });
  10193. },
  10194. openTools(t, i, index, c, sName) {
  10195. var z = JSON.parse(c);
  10196. this.noteName = sName;
  10197. if (t == 4) {
  10198. this.radio = [];
  10199. this.isAnswer = false;
  10200. for (var i = 0; i < z.length; i++) {
  10201. let a = z[i];
  10202. let b = a.anwer.split(",");
  10203. let d = [];
  10204. for (var j = 0; j < b.length; j++) {
  10205. d.push(parseInt(b[j]));
  10206. }
  10207. this.radio = d;
  10208. this.askJson = a.askJson;
  10209. }
  10210. this.isAnswer = true;
  10211. this.dialogVisible5 = true;
  10212. } else if (t == 45) {
  10213. this.radio = [];
  10214. this.isAnswer = false;
  10215. let b = z[0].anwer;
  10216. this.radio = b;
  10217. this.testJson = z[0].testJson;
  10218. this.isAnswer = true;
  10219. this.dialogVisibleChoice = true;
  10220. }
  10221. // else if (t == 15) {
  10222. // this.answerQ = "";
  10223. // this.questionAnswer = "";
  10224. // this.answerQ = z[0].answerTitle;
  10225. // this.questionAnswer = z[0].answer;
  10226. // this.answerDialogVisible = true;
  10227. // }
  10228. },
  10229. fastText(p, t) {
  10230. if (t == 1) {
  10231. this.commentText += p;
  10232. } else {
  10233. this.eScore.eBzText += p;
  10234. }
  10235. },
  10236. addTools(t, i, index) {
  10237. var a = 0;
  10238. // this.taskCount = index;
  10239. this.toolindex = i;
  10240. if (t == 1) {
  10241. if (this.wbCount > 0) {
  10242. this.updateCount(this.wbCount, t);
  10243. } else {
  10244. this.wbCount++;
  10245. a = this.wbCount;
  10246. this.toolsCount(a, t);
  10247. }
  10248. window.parent.postMessage(
  10249. {
  10250. tools: "1",
  10251. cid: this.id,
  10252. stage: this.courseType,
  10253. task: this.taskCount,
  10254. tool: i,
  10255. },
  10256. "*"
  10257. );
  10258. } else if (t == 2) {
  10259. if (this.wordCount > 0) {
  10260. this.updateCount(this.wordCount, t);
  10261. } else {
  10262. this.wordCount++;
  10263. a = this.wordCount;
  10264. this.toolsCount(a, t);
  10265. }
  10266. window.parent.postMessage({ tools: "2" }, "*");
  10267. } else if (t == 3) {
  10268. if (this.mindCount > 0) {
  10269. this.updateCount(this.mindCount, t);
  10270. } else {
  10271. this.mindCount++;
  10272. a = this.mindCount;
  10273. this.toolsCount(a, t);
  10274. }
  10275. window.parent.postMessage(
  10276. {
  10277. tools: "3",
  10278. cid: this.id,
  10279. stage: this.courseType,
  10280. task: this.taskCount,
  10281. tool: i,
  10282. },
  10283. "*"
  10284. );
  10285. } else if (t == 4) {
  10286. this.radio = [];
  10287. this.noteName = "";
  10288. this.isAnswer = false;
  10289. if (this.askCount > 0) {
  10290. this.updateCount(this.askCount, t);
  10291. } else {
  10292. this.askCount++;
  10293. a = this.askCount;
  10294. this.toolsCount(a, t);
  10295. }
  10296. if (!this.dialogVisible2) {
  10297. this.askJson.askJson =
  10298. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10299. index
  10300. ].toolChoose[i].askJson;
  10301. this.askJson.askTitle =
  10302. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10303. index
  10304. ].toolChoose[i].askTitle;
  10305. this.askJson.askCount =
  10306. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10307. index
  10308. ].toolChoose[i].askCount;
  10309. } else {
  10310. this.askJson.askJson = this.chapTools.askJson.askJson;
  10311. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  10312. this.askJson.askCount = this.chapTools.askJson.askCount;
  10313. }
  10314. this.dialogVisible5 = true;
  10315. // window.parent.postMessage({ tools: "4" }, "*");
  10316. } else if (t == 45) {
  10317. this.noteName = "";
  10318. this.radio = [];
  10319. this.isAnswer = false;
  10320. if (this.askCount > 0) {
  10321. this.updateCount(this.askCount, t);
  10322. } else {
  10323. this.askCount++;
  10324. a = this.askCount;
  10325. this.toolsCount(a, t);
  10326. }
  10327. this.testJson =
  10328. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10329. index
  10330. ].toolChoose[i].testJson;
  10331. for (var k = 0; k < this.testJson.testJson.length; k++) {
  10332. if (this.testJson.testJson[k].type == "2") {
  10333. this.radio.push([]);
  10334. } else {
  10335. this.radio.push("");
  10336. }
  10337. }
  10338. this.dialogVisibleChoice = true;
  10339. // window.parent.postMessage({ tools: "4" }, "*");
  10340. } else if (t == 5) {
  10341. if (this.scoreCount > 0) {
  10342. this.updateCount(this.scoreCount, t);
  10343. } else {
  10344. this.scoreCount++;
  10345. a = this.scoreCount;
  10346. this.toolsCount(a, t);
  10347. }
  10348. this.dialogVisible4 = true;
  10349. // window.parent.postMessage({ tools: "5" }, "*");
  10350. } else if (t == 6) {
  10351. if (this.noteCount > 0) {
  10352. this.updateCount(this.noteCount, t);
  10353. } else {
  10354. this.noteCount++;
  10355. a = this.noteCount;
  10356. this.toolsCount(a, t);
  10357. }
  10358. window.parent.postMessage(
  10359. {
  10360. tools: "6",
  10361. cid: this.id,
  10362. stage: this.courseType,
  10363. task: this.taskCount,
  10364. tool: i,
  10365. },
  10366. "*"
  10367. );
  10368. } else if (t == 7) {
  10369. if (this.mindNetWorkCount > 0) {
  10370. this.updateCount(this.mindNetWorkCount, t);
  10371. } else {
  10372. this.mindNetWorkCount++;
  10373. a = this.mindNetWorkCount;
  10374. this.toolsCount(a, t);
  10375. }
  10376. window.parent.postMessage(
  10377. {
  10378. tools: "7",
  10379. cid: this.id,
  10380. stage: this.courseType,
  10381. task: this.taskCount,
  10382. tool: i,
  10383. },
  10384. "*"
  10385. );
  10386. } else if (t == 16) {
  10387. if (this.workCount > 0) {
  10388. this.updateCount(this.workCount, t);
  10389. } else {
  10390. this.workCount++;
  10391. a = this.workCount;
  10392. this.toolsCount(a, t);
  10393. }
  10394. this.dialogVisible = true;
  10395. } else if (t == 50) {
  10396. if (this.tType == 2) {
  10397. this.$message.error("不支持学生使用");
  10398. return;
  10399. }
  10400. this.plworkFile = [];
  10401. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  10402. // this.uploadCid =
  10403. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10404. // index
  10405. // ].toolChoose[i].uploadJson[0];
  10406. this.selectUploadStudent();
  10407. this.dialogVisiblePl = true;
  10408. } else if (t == 8) {
  10409. if (this.libraryCount > 0) {
  10410. this.updateCount(this.libraryCount, t);
  10411. } else {
  10412. this.libraryCount++;
  10413. a = this.libraryCount;
  10414. this.toolsCount(a, t);
  10415. }
  10416. window.parent.postMessage({ tools: "8" }, "*");
  10417. } else if (t == 17) {
  10418. if (this.libraryCount > 0) {
  10419. this.updateCount(this.libraryCount, t);
  10420. } else {
  10421. this.libraryCount++;
  10422. a = this.libraryCount;
  10423. this.toolsCount(a, t);
  10424. }
  10425. window.parent.postMessage({ tools: "17" }, "*");
  10426. } else if (t == 18) {
  10427. if (this.trainCount > 0) {
  10428. this.updateCount(this.trainCount, t);
  10429. } else {
  10430. this.trainCount++;
  10431. a = this.trainCount;
  10432. this.toolsCount(a, t);
  10433. }
  10434. window.parent.postMessage({ tools: "18" }, "*");
  10435. } else if (t == 10) {
  10436. if (this.timeCount > 0) {
  10437. this.updateCount(this.timeCount, t);
  10438. } else {
  10439. this.timeCount++;
  10440. a = this.timeCount;
  10441. this.toolsCount(a, t);
  10442. }
  10443. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  10444. .taskJson[index].toolChoose[i].preTime
  10445. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  10446. .toolChoose[i].preTime
  10447. : "";
  10448. this.timeDialogVisible = true;
  10449. } else if (t == 15) {
  10450. this.answerQ = "";
  10451. this.questionAnswer = "";
  10452. if (this.answerCount > 0) {
  10453. this.updateCount(this.answerCount, t);
  10454. } else {
  10455. this.answerCount++;
  10456. a = this.answerCount;
  10457. this.toolsCount(a, t);
  10458. }
  10459. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  10460. .taskJson[index].toolChoose[i].answerQ
  10461. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  10462. .toolChoose[i].answerQ
  10463. : "";
  10464. this.answerDialogVisible = true;
  10465. } else if (t == 21) {
  10466. window.parent.postMessage({ tools: "21" }, "*");
  10467. } else if (t == 22) {
  10468. window.parent.postMessage({ tools: "22" }, "*");
  10469. } else if (t == 23) {
  10470. window.parent.postMessage({ tools: "23" }, "*");
  10471. } else if (t == 24) {
  10472. window.parent.postMessage({ tools: "24" }, "*");
  10473. } else if (t == 25) {
  10474. window.parent.postMessage({ tools: "25" }, "*");
  10475. } else if (t == 31) {
  10476. window.parent.postMessage({ tools: "31" }, "*");
  10477. } else if (t == 28) {
  10478. window.parent.postMessage({ tools: "28" }, "*");
  10479. } else if (t == 37) {
  10480. window.parent.postMessage({ tools: "37" }, "*");
  10481. } else if (t == 38) {
  10482. window.parent.postMessage({ tools: "38" }, "*");
  10483. } else if (t == 39) {
  10484. window.parent.postMessage({ tools: "39" }, "*");
  10485. } else if (t == 32) {
  10486. window.parent.postMessage({ tools: "32" }, "*");
  10487. } else if (t == 57) {
  10488. window.parent.postMessage({ tools: "57" }, "*");
  10489. } else if (t == 58) {
  10490. window.parent.postMessage({ tools: "58" }, "*");
  10491. } else if (t == 59) {
  10492. window.parent.postMessage({ tools: "59" }, "*");
  10493. } else if (t == 60) {
  10494. window.parent.postMessage({ tools: "60" }, "*");
  10495. } else if (t == 61) {
  10496. window.parent.postMessage({ tools: "61" }, "*");
  10497. } else if (t == 26) {
  10498. window.parent.postMessage(
  10499. {
  10500. tools: "26",
  10501. cid: this.id,
  10502. stage: this.courseType,
  10503. task: this.taskCount,
  10504. tool: i,
  10505. },
  10506. "*"
  10507. );
  10508. } else if (t == 40) {
  10509. if (this.evalCount > 0) {
  10510. this.updateCount(this.evalCount, t);
  10511. } else {
  10512. this.evalCount++;
  10513. a = this.evalCount;
  10514. this.toolsCount(a, t);
  10515. }
  10516. this.eScore = { eBzText: "", eStar: [] };
  10517. if (this.worksStudent[i].length) {
  10518. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10519. if (this.userid == this.worksStudent[i][k].userid) {
  10520. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  10521. this.rateJson =
  10522. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10523. index
  10524. ].toolChoose[i].rateJson;
  10525. break;
  10526. } else {
  10527. this.rateJson =
  10528. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10529. index
  10530. ].toolChoose[i].rateJson;
  10531. }
  10532. }
  10533. } else {
  10534. this.rateJson =
  10535. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10536. index
  10537. ].toolChoose[i].rateJson;
  10538. }
  10539. this.isStar = false;
  10540. this.studentEvalDialogVisible = true;
  10541. } else if (t == 41) {
  10542. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10543. .taskJson[index].toolChoose[i].selectJson
  10544. ? JSON.parse(
  10545. JSON.stringify(
  10546. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10547. index
  10548. ].toolChoose[i].selectJson
  10549. )
  10550. )
  10551. : { url: "", select: [], answer: [] };
  10552. if (this.worksStudent[i].length) {
  10553. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10554. if (this.userid == this.worksStudent[i][k].userid) {
  10555. var a = this.worksStudent[i][k].works.split(",");
  10556. for (var ki = 0; ki < a.length; ki++) {
  10557. a[ki] = parseInt(a[ki]);
  10558. }
  10559. this.selectAnswer = {
  10560. answer: a,
  10561. stu: this.worksStudent[i][k].sName,
  10562. };
  10563. break;
  10564. } else {
  10565. this.selectAnswer = { answer: [], stu: "" };
  10566. }
  10567. }
  10568. } else {
  10569. this.selectAnswer = { answer: [], stu: "" };
  10570. }
  10571. this.isSelect = false;
  10572. this.dialogVisibleSelect = true;
  10573. } else if (t == 44) {
  10574. window.parent.postMessage({ tools: "44" }, "*");
  10575. } else if (t == 47) {
  10576. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  10577. .taskJson[index].toolChoose[i].sentenceList
  10578. ? JSON.parse(
  10579. JSON.stringify(
  10580. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10581. index
  10582. ].toolChoose[i].sentenceList
  10583. )
  10584. )
  10585. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  10586. for (var q = 0; q < this.sentenceList.length; q++) {
  10587. this.sentenceList[q].chooseSenList = [];
  10588. this.sentenceList[q].addChangeSen = [];
  10589. this.sentenceList[q].addChangeSen = JSON.parse(
  10590. JSON.stringify(this.sentenceList[q].addSentence)
  10591. );
  10592. this.sentenceList[q].chooseSenList.length =
  10593. this.sentenceList[q].rightAnswer.length;
  10594. }
  10595. this.dialogVisibleSentence = true;
  10596. } else if (t == 48) {
  10597. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10598. .taskJson[index].toolChoose[i].tableJson
  10599. ? JSON.parse(
  10600. JSON.stringify(
  10601. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10602. index
  10603. ].toolChoose[i].tableJson
  10604. )
  10605. )
  10606. : { text: "" };
  10607. if (this.worksStudent[i].length) {
  10608. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10609. if (this.userid == this.worksStudent[i][k].userid) {
  10610. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  10611. break;
  10612. }
  10613. }
  10614. }
  10615. this.dialogVisibleTable = true;
  10616. } else if (t == 52) {
  10617. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10618. .taskJson[index].toolChoose[i].wordJson
  10619. ? JSON.parse(
  10620. JSON.stringify(
  10621. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10622. index
  10623. ].toolChoose[i].wordJson
  10624. )
  10625. )
  10626. : { text: "" };
  10627. this.dialogVisibleWord = true;
  10628. } else if (t == 49) {
  10629. this.groupJson =
  10630. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10631. index
  10632. ].toolChoose[i].groupJson;
  10633. this.islock = this.groupJson.islock == 1 ? true : false;
  10634. this.dialogVisibleGroup = true;
  10635. }
  10636. },
  10637. teacherWorkSubmit(t, i, index, s) {
  10638. this.sStudent = s;
  10639. this.toolindex = i;
  10640. this.sTool = t;
  10641. if (this.tType !== "1" && this.tType !== "4") {
  10642. return;
  10643. }
  10644. if (t == 16 || t == 32 || t == 57 || t == 50) {
  10645. this.dialogVisibleWorks = true;
  10646. } else if (t == 15) {
  10647. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  10648. .taskJson[index].toolChoose[i].answerQ
  10649. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  10650. .toolChoose[i].answerQ
  10651. : "";
  10652. this.questionAnswer = ''
  10653. this.answerDialogVisibleTeacher = true;//问答
  10654. } else if (t == 52) {
  10655. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10656. .taskJson[index].toolChoose[i].wordJson
  10657. ? JSON.parse(
  10658. JSON.stringify(
  10659. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10660. index
  10661. ].toolChoose[i].wordJson
  10662. )
  10663. )
  10664. : { text: "" };
  10665. this.dialogVisibleWordTeacher = true;//文档
  10666. } else if (t == 4) {
  10667. this.radio = [];
  10668. this.noteName = "";
  10669. this.isAnswer = false;
  10670. if (this.askCount > 0) {
  10671. this.updateCount(this.askCount, t);
  10672. } else {
  10673. this.askCount++;
  10674. a = this.askCount;
  10675. this.toolsCount(a, t);
  10676. }
  10677. if (!this.dialogVisible2) {
  10678. this.askJson.askJson =
  10679. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10680. index
  10681. ].toolChoose[i].askJson;
  10682. this.askJson.askTitle =
  10683. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10684. index
  10685. ].toolChoose[i].askTitle;
  10686. this.askJson.askCount =
  10687. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10688. index
  10689. ].toolChoose[i].askCount;
  10690. } else {
  10691. this.askJson.askJson = this.chapTools.askJson.askJson;
  10692. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  10693. this.askJson.askCount = this.chapTools.askJson.askCount;
  10694. }
  10695. this.dialogVisible5Teacher = true;
  10696. } else if (t == 45) {
  10697. this.noteName = "";
  10698. this.radio = [];
  10699. this.isAnswer = false;
  10700. if (this.askCount > 0) {
  10701. this.updateCount(this.askCount, t);
  10702. } else {
  10703. this.askCount++;
  10704. a = this.askCount;
  10705. this.toolsCount(a, t);
  10706. }
  10707. this.testJson =
  10708. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10709. index
  10710. ].toolChoose[i].testJson;
  10711. for (var k = 0; k < this.testJson.testJson.length; k++) {
  10712. if (this.testJson.testJson[k].type == "2") {
  10713. this.radio.push([]);
  10714. } else {
  10715. this.radio.push("");
  10716. }
  10717. }
  10718. this.dialogVisibleChoiceTeacher = true;
  10719. } else if (t == 41) {
  10720. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10721. .taskJson[index].toolChoose[i].selectJson
  10722. ? JSON.parse(
  10723. JSON.stringify(
  10724. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10725. index
  10726. ].toolChoose[i].selectJson
  10727. )
  10728. )
  10729. : { url: "", select: [], answer: [] };
  10730. if (this.worksStudent[i].length) {
  10731. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10732. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10733. var a = this.worksStudent[i][k].works.split(",");
  10734. for (var ki = 0; ki < a.length; ki++) {
  10735. a[ki] = parseInt(a[ki]);
  10736. }
  10737. this.selectAnswer = {
  10738. answer: a,
  10739. stu: this.worksStudent[i][k].sName,
  10740. };
  10741. break;
  10742. } else {
  10743. this.selectAnswer = { answer: [], stu: "" };
  10744. }
  10745. }
  10746. } else {
  10747. this.selectAnswer = { answer: [], stu: "" };
  10748. }
  10749. this.isSelect = false;
  10750. this.dialogVisibleSelectTeacher = true;
  10751. } else if (t == 47) {
  10752. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  10753. .taskJson[index].toolChoose[i].sentenceList
  10754. ? JSON.parse(
  10755. JSON.stringify(
  10756. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10757. index
  10758. ].toolChoose[i].sentenceList
  10759. )
  10760. )
  10761. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  10762. for (var q = 0; q < this.sentenceList.length; q++) {
  10763. this.sentenceList[q].chooseSenList = [];
  10764. this.sentenceList[q].addChangeSen = [];
  10765. this.sentenceList[q].addChangeSen = JSON.parse(
  10766. JSON.stringify(this.sentenceList[q].addSentence)
  10767. );
  10768. this.sentenceList[q].chooseSenList.length =
  10769. this.sentenceList[q].rightAnswer.length;
  10770. }
  10771. this.dialogVisibleSentenceTeacher = true;
  10772. } else if (t == 48) {
  10773. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10774. .taskJson[index].toolChoose[i].tableJson
  10775. ? JSON.parse(
  10776. JSON.stringify(
  10777. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10778. index
  10779. ].toolChoose[i].tableJson
  10780. )
  10781. )
  10782. : { text: "" };
  10783. if (this.worksStudent[i].length) {
  10784. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10785. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10786. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  10787. break;
  10788. }
  10789. }
  10790. }
  10791. this.dialogVisibleTableTeacher = true;
  10792. }else if(t == 40){
  10793. if (this.evalCount > 0) {
  10794. this.updateCount(this.evalCount, t);
  10795. } else {
  10796. this.evalCount++;
  10797. a = this.evalCount;
  10798. this.toolsCount(a, t);
  10799. }
  10800. this.eScore = { eBzText: "", eStar: [] };
  10801. if (this.worksStudent[i].length) {
  10802. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10803. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10804. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  10805. this.rateJson =
  10806. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10807. index
  10808. ].toolChoose[i].rateJson;
  10809. break;
  10810. } else {
  10811. this.rateJson =
  10812. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10813. index
  10814. ].toolChoose[i].rateJson;
  10815. }
  10816. }
  10817. } else {
  10818. this.rateJson =
  10819. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10820. index
  10821. ].toolChoose[i].rateJson;
  10822. }
  10823. this.isStar = false;
  10824. this.studentEvalDialogVisibleTeacher = true;
  10825. } else if (t == 3 || t == 1 || t == 7) {
  10826. window.parent.postMessage(
  10827. {
  10828. tools: t + 'teacher',
  10829. cid: this.id,
  10830. stage: this.courseType,
  10831. task: this.taskCount,
  10832. tool: i,
  10833. student: this.sStudent,
  10834. },
  10835. "*"
  10836. );
  10837. }
  10838. },
  10839. setRightAnswer(s, i, j) {
  10840. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  10841. if (
  10842. this.sentenceList[i].chooseSenList[q] == undefined ||
  10843. this.sentenceList[i].chooseSenList[q] == ""
  10844. ) {
  10845. this.sentenceList[i].chooseSenList[q] = s;
  10846. this.sentenceList[i].addChangeSen[j] = "";
  10847. break;
  10848. }
  10849. }
  10850. this.$forceUpdate();
  10851. },
  10852. returnCard(r, i, j) {
  10853. var a = this.sentenceList[i].addSentence.indexOf(r);
  10854. this.sentenceList[i].chooseSenList[j] = "";
  10855. this.sentenceList[i].addChangeSen[a] = r;
  10856. this.$forceUpdate();
  10857. },
  10858. // addSentenceTool() {
  10859. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10860. // this.taskCount
  10861. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  10862. // this.sentenceList = [
  10863. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10864. // ];
  10865. // this.dialogVisibleSentence = false;
  10866. // },
  10867. toolsCount(a, t) {
  10868. let params = {
  10869. cid: this.id,
  10870. chid: this.courseType,
  10871. uid: this.userid,
  10872. tid: t,
  10873. count: a,
  10874. };
  10875. this.ajax
  10876. .get(this.$store.state.api + "insertToolsCount", params)
  10877. .then((res) => {
  10878. this.selectCount();
  10879. })
  10880. .catch((err) => {
  10881. console.error(err);
  10882. });
  10883. },
  10884. updateCount(c, t) {
  10885. c++;
  10886. let params = {
  10887. cid: this.id,
  10888. chid: this.courseType,
  10889. uid: this.userid,
  10890. tid: t,
  10891. count: c,
  10892. };
  10893. this.ajax
  10894. .get(this.$store.state.api + "updateToolsCount", params)
  10895. .then((res) => {
  10896. this.selectCount();
  10897. })
  10898. .catch((err) => {
  10899. console.error(err);
  10900. });
  10901. },
  10902. checkEva() {
  10903. if (this.evalua != "") {
  10904. for (var i = 0; i < this.evaJuri.length; i++) {
  10905. if (this.evalua == this.evaJuri[i].id) {
  10906. this.eTitle = this.evaJuri[i].title;
  10907. this.eJson = JSON.parse(this.evaJuri[i].content);
  10908. }
  10909. }
  10910. this.$forceUpdate();
  10911. setTimeout(() => {
  10912. this.setMindData();
  10913. }, 0);
  10914. }
  10915. },
  10916. selectEva() {
  10917. let params = {
  10918. oid: this.oid,
  10919. };
  10920. this.ajax
  10921. .get(this.$store.state.api + "selectAllEvaluation", params)
  10922. .then((res) => {
  10923. this.evaJuri = res.data[0];
  10924. })
  10925. .catch((err) => {
  10926. console.error(err);
  10927. });
  10928. },
  10929. setMindData() {
  10930. this.data.data = [];
  10931. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10932. let _eJson = Object.keys(this.eJson);
  10933. let _e = this.eJson;
  10934. for (let i = 0; i < _eJson.length; i++) {
  10935. let element = _e[_eJson[i]];
  10936. this.data.data.push({
  10937. id: element.id,
  10938. parentid: "root",
  10939. topic: element.name,
  10940. });
  10941. let _eJsonc = Object.keys(element.child);
  10942. let _e2 = element.child;
  10943. for (let j = 0; j < _eJsonc.length; j++) {
  10944. let _ec = _e2[_eJsonc[j]];
  10945. this.data.data.push({
  10946. id: _ec.id,
  10947. parentid: element.id,
  10948. topic: _ec.name,
  10949. });
  10950. let _eJsonz = Object.keys(_ec.child);
  10951. let _e3 = _ec.child;
  10952. for (let z = 0; z < _eJsonz.length; z++) {
  10953. let _ez = _e3[_eJsonz[z]];
  10954. this.data.data.push({
  10955. id: _ez.id,
  10956. parentid: _ec.id,
  10957. topic: _ez.name,
  10958. });
  10959. }
  10960. }
  10961. }
  10962. this.$forceUpdate();
  10963. },
  10964. checkFileFull(type, url) {
  10965. this.fullDialogVisible = true;
  10966. this.fulltype = type;
  10967. this.fullUrl = url;
  10968. },
  10969. openSname(n, id, i) {
  10970. this.snameWid = id;
  10971. this.worksSName = n;
  10972. this.toolindex = i
  10973. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  10974. this.selectUploadStudent();
  10975. this.dialogVisibleSname = true;
  10976. },
  10977. updateName() {
  10978. let params = {
  10979. n: this.worksSName,
  10980. cid: this.snameWid,
  10981. };
  10982. this.ajax
  10983. .get(this.$store.state.api + "updateCourseWorksName", params)
  10984. .then((res) => {
  10985. this.$message({
  10986. message: "修改成功",
  10987. type: "success",
  10988. });
  10989. this.dialogVisibleSname = false;
  10990. this.getCourseDetail(2);
  10991. this.snameWid = "";
  10992. this.worksSName = "";
  10993. })
  10994. .catch((err) => {
  10995. console.error(err);
  10996. });
  10997. },
  10998. downloadFile2(f) {
  10999. let url = f.url
  11000. let _this = this;
  11001. let _url = "";
  11002. if (
  11003. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11004. ) {
  11005. _url = url.split(
  11006. "https://view.officeapps.live.com/op/view.aspx?src="
  11007. )[1];
  11008. } else {
  11009. _url = url;
  11010. }
  11011. const x = new XMLHttpRequest();
  11012. x.open("GET", _url, true);
  11013. x.responseType = "blob";
  11014. const loading = _this.$loading.service({
  11015. background: "rgba(255, 255, 255, 0.7)",
  11016. target: document.body,
  11017. text: "文件加载中...",
  11018. });
  11019. // _this.$message.success("文件下载中...");
  11020. x.onload = function (e) {
  11021. loading.close();
  11022. let content = x.response;
  11023. let elink = document.createElement("a");
  11024. elink.download = f.name;
  11025. elink.style.display = "none";
  11026. let blob = new Blob([content]);
  11027. elink.href = URL.createObjectURL(blob);
  11028. document.body.appendChild(elink);
  11029. elink.click();
  11030. document.body.removeChild(elink);
  11031. };
  11032. x.send();
  11033. },
  11034. downloadFile(url) {
  11035. let _this = this;
  11036. let _url = "";
  11037. if (
  11038. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11039. ) {
  11040. _url = url.split(
  11041. "https://view.officeapps.live.com/op/view.aspx?src="
  11042. )[1];
  11043. } else {
  11044. _url = url;
  11045. }
  11046. const x = new XMLHttpRequest();
  11047. x.open("GET", _url, true);
  11048. x.responseType = "blob";
  11049. const loading = _this.$loading.service({
  11050. background: "rgba(255, 255, 255, 0.7)",
  11051. target: document.body,
  11052. text: "文件加载中...",
  11053. });
  11054. // _this.$message.success("文件下载中...");
  11055. x.onload = function (e) {
  11056. loading.close();
  11057. // const url = window.URL.createObjectURL(x.response);
  11058. // const a = document.createElement("a");
  11059. // a.href = url;
  11060. // a.target = "_blank";
  11061. // a.download = url;
  11062. // a.click();
  11063. // a.remove();
  11064. let content = x.response;
  11065. let elink = document.createElement("a");
  11066. elink.download = decodeURI(
  11067. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  11068. );
  11069. elink.style.display = "none";
  11070. let blob = new Blob([content]);
  11071. elink.href = URL.createObjectURL(blob);
  11072. document.body.appendChild(elink);
  11073. elink.click();
  11074. document.body.removeChild(elink);
  11075. };
  11076. x.send();
  11077. },
  11078. openLine(url) {
  11079. window.open(url);
  11080. },
  11081. resize() {
  11082. if (document.getElementsByClassName("box_course").length) {
  11083. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  11084. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  11085. document.getElementsByClassName("navBox")[0].style.height =
  11086. a - 40 + "px";
  11087. }
  11088. this.Stbodywidth =
  11089. document.getElementsByClassName("student_body").length &&
  11090. document.getElementsByClassName("student_body")[0].offsetWidth;
  11091. },
  11092. closeDraw() {
  11093. this.bg = null;
  11094. this.drawShow = false;
  11095. },
  11096. showPicturePaint(url) {
  11097. let params = {
  11098. img: url,
  11099. };
  11100. this.ajax
  11101. .get(this.$store.state.api + "imgToBase64", params)
  11102. .then((res) => {
  11103. console.log(res);
  11104. this.drawShow = true;
  11105. this.bg = res.data[0].img;
  11106. })
  11107. .catch((err) => {
  11108. console.error(err);
  11109. });
  11110. },
  11111. addImgDraw(base64) {
  11112. let file = { name: "批注图.png" };
  11113. let img = this.dataUrlToFile(base64, file);
  11114. this.beforeUpload1(img, 5);
  11115. },
  11116. addImgDrawImG(url) {
  11117. // console.log(url);
  11118. let params = [
  11119. {
  11120. wid: this.commentDetail.wid,
  11121. img: url,
  11122. },
  11123. ];
  11124. this.ajax
  11125. .post(this.$store.state.api + "updateCourseWorks", params)
  11126. .then((res) => {
  11127. this.$message({
  11128. message: "提交成功",
  11129. type: "success",
  11130. });
  11131. this.drawShow = false;
  11132. this.bg = "";
  11133. this.selectSWorks();
  11134. this.selectStudent();
  11135. })
  11136. .catch((err) => {
  11137. this.$message.error("提交失败");
  11138. console.error(err);
  11139. });
  11140. },
  11141. deletePicturePaint() {
  11142. this.$confirm("确定删除此批注吗?", "提示", {
  11143. confirmButtonText: "确定",
  11144. cancelButtonText: "取消",
  11145. type: "warning",
  11146. })
  11147. .then(() => {
  11148. let params = [
  11149. {
  11150. wid: this.commentDetail.wid,
  11151. img: "",
  11152. },
  11153. ];
  11154. this.ajax
  11155. .post(this.$store.state.api + "updateCourseWorks", params)
  11156. .then((res) => {
  11157. this.$message({
  11158. message: "删除成功",
  11159. type: "success",
  11160. });
  11161. this.selectSWorks();
  11162. this.selectStudent();
  11163. })
  11164. .catch((err) => {
  11165. this.$message.error("删除失败");
  11166. console.error(err);
  11167. });
  11168. })
  11169. .catch(() => { });
  11170. },
  11171. getAudioVideo(constraintsData) {
  11172. if (navigator.mediaDevices === undefined) {
  11173. navigator.mediaDevices = {};
  11174. }
  11175. if (navigator.mediaDevices.getUserMedia === undefined) {
  11176. navigator.mediaDevices.getUserMedia = function (constraints) {
  11177. // 首先,如果有getUserMedia的话,就获得它
  11178. var getUserMedia =
  11179. navigator.getUserMedia ||
  11180. navigator.webkitGetUserMedia ||
  11181. navigator.mozGetUserMedia ||
  11182. navigator.msGetUserMedia;
  11183. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  11184. if (!getUserMedia) {
  11185. return Promise.reject({ code: 404 });
  11186. }
  11187. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  11188. return new Promise(function (resolve, reject) {
  11189. getUserMedia.call(navigator, constraints, resolve, reject);
  11190. });
  11191. };
  11192. }
  11193. return navigator.mediaDevices.getUserMedia(constraintsData);
  11194. },
  11195. /**
  11196. * 开始录制
  11197. */
  11198. startRecording(callback) {
  11199. let _function = (screenStream) => {
  11200. this.addStreamStopListener(screenStream, () => {
  11201. console.log("流停止监听");
  11202. this.stopRecording();
  11203. this.$emit("streamStop", {});
  11204. // this.stopRecording();
  11205. });
  11206. var options = {
  11207. type: "video",
  11208. mimeType: "video/webm",
  11209. disableLogs: false,
  11210. getNativeBlob: false, // enable it for longer recordings
  11211. ignoreMutedMedia: false,
  11212. };
  11213. // this.video.srcObject = screenStream;
  11214. this.recorder = RecordRTC(screenStream, options);
  11215. this.recorder.startRecording();
  11216. this.recorder.screen = screenStream;
  11217. this.videoStart = true;
  11218. // callback(true);
  11219. };
  11220. this.getAudioVideo({ audio: true })
  11221. .then((res) => {
  11222. this.captureScreen(_function, true);
  11223. console.log("已点击允许,开启成功");
  11224. })
  11225. .catch((err) => {
  11226. // console.log('浏览器不支持,请更换浏览器')
  11227. // } else {
  11228. this.captureScreen(_function, false);
  11229. console.log("请检查是否存在麦克风");
  11230. });
  11231. },
  11232. /**
  11233. * 停止录制
  11234. */
  11235. stopRecording(callback) {
  11236. this.recorder.stopRecording(() => {
  11237. // this.video.src = this.video.srcObject = null;
  11238. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  11239. const url = URL.createObjectURL(this.recorder.getBlob());
  11240. const a = document.createElement("a"); //this.fileName+
  11241. let videoFile = new File(
  11242. [this.recorder.getBlob()],
  11243. this.courseDetail.title + "录屏.mp4",
  11244. {
  11245. type: "video/mp4",
  11246. }
  11247. );
  11248. let downloadUrl = URL.createObjectURL(videoFile);
  11249. document.body.appendChild(a);
  11250. a.style.display = "none";
  11251. a.href = url;
  11252. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  11253. a.click();
  11254. this.recorder.screen.stop();
  11255. this.recorder.destroy();
  11256. this.recorder = null;
  11257. this.videoStart = false;
  11258. // callback(false);
  11259. });
  11260. },
  11261. //初始化
  11262. captureScreen(callback, type) {
  11263. if (navigator.getDisplayMedia) {
  11264. //录制结束,文件下载
  11265. navigator
  11266. .getDisplayMedia({
  11267. video: true,
  11268. })
  11269. .then((screenStream) => {
  11270. if (type) {
  11271. navigator.mediaDevices
  11272. .getUserMedia({ audio: true })
  11273. .then((mic) => {
  11274. screenStream.addTrack(mic.getTracks()[0]);
  11275. callback(screenStream);
  11276. });
  11277. } else {
  11278. callback(screenStream);
  11279. }
  11280. })
  11281. .catch(function (error) {
  11282. console.log("error", error);
  11283. });
  11284. } else if (navigator.mediaDevices.getDisplayMedia) {
  11285. navigator.mediaDevices
  11286. .getDisplayMedia({
  11287. video: true,
  11288. })
  11289. .then((screenStream) => {
  11290. if (type) {
  11291. navigator.mediaDevices
  11292. .getUserMedia({ audio: true })
  11293. .then((mic) => {
  11294. screenStream.addTrack(mic.getTracks()[0]);
  11295. callback(screenStream);
  11296. });
  11297. } else {
  11298. callback(screenStream);
  11299. }
  11300. })
  11301. .catch(function (error) {
  11302. console.log("error", error);
  11303. });
  11304. } else {
  11305. var error = "getDisplayMedia API are not supported in this browser.";
  11306. console.log("error", error);
  11307. alert(error);
  11308. }
  11309. },
  11310. //流监听
  11311. addStreamStopListener(stream, callback) {
  11312. stream.addEventListener(
  11313. "ended",
  11314. function () {
  11315. callback();
  11316. callback = function () { };
  11317. },
  11318. false
  11319. );
  11320. stream.addEventListener(
  11321. "inactive",
  11322. function () {
  11323. callback();
  11324. callback = function () { };
  11325. },
  11326. false
  11327. );
  11328. stream.getTracks().forEach(function (track) {
  11329. track.addEventListener(
  11330. "ended",
  11331. function () {
  11332. callback();
  11333. callback = function () { };
  11334. },
  11335. false
  11336. );
  11337. track.addEventListener(
  11338. "inactive",
  11339. function () {
  11340. callback();
  11341. callback = function () { };
  11342. },
  11343. false
  11344. );
  11345. });
  11346. },
  11347. updateGroup() {
  11348. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  11349. this.dialogVisibleGroup2 = true;
  11350. },
  11351. updateGroupJson() {
  11352. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  11353. if (
  11354. this.groupStudentUid[this.toolindex][i].length >
  11355. this.groupJson2.number
  11356. ) {
  11357. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  11358. return;
  11359. }
  11360. }
  11361. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  11362. this.islock = this.groupJson.islock == 1 ? true : false;
  11363. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11364. this.taskCount
  11365. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  11366. let params = [
  11367. {
  11368. cid: this.id,
  11369. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  11370. uid: this.userid,
  11371. unitIndex: this.courseType,
  11372. },
  11373. ];
  11374. this.ajax
  11375. .post(this.$store.state.api + "updateWorkNew4", params)
  11376. .then((res) => {
  11377. this.$message.success("设置成功");
  11378. this.getCourseDetail(2);
  11379. this.dialogVisibleGroup2 = false;
  11380. this.groupJson2 = {};
  11381. this.$forceUpdate();
  11382. })
  11383. .catch((err) => {
  11384. this.$message.error("网络不佳");
  11385. console.error(err);
  11386. });
  11387. },
  11388. lockChair() {
  11389. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  11390. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  11391. this.updateGroupJson();
  11392. },
  11393. selectGroup(index) {
  11394. this.getCourseDetail(2, index);
  11395. },
  11396. joinGroup(index) {
  11397. if (this.groupJson.islock == 2) {
  11398. this.$message.error("位置已被锁定,无法加入");
  11399. return;
  11400. }
  11401. if (
  11402. this.groupStudent[this.toolindex][index].length >
  11403. this.groupJson.number ||
  11404. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  11405. ) {
  11406. this.$message.error("位置已满,无法加入");
  11407. return;
  11408. }
  11409. let params = [
  11410. {
  11411. cid: this.id,
  11412. stage: this.courseType,
  11413. task: this.taskCount,
  11414. tool: this.toolindex,
  11415. g: index,
  11416. uid: this.userid,
  11417. },
  11418. ];
  11419. this.ajax
  11420. .post(this.$store.state.api + "joinGroup", params)
  11421. .then((res) => {
  11422. this.$message.success("加入成功");
  11423. this.getCourseDetail(2);
  11424. })
  11425. .catch((err) => {
  11426. this.$message.error("网络不佳");
  11427. console.error(err);
  11428. });
  11429. },
  11430. exitGroup(id) {
  11431. if (this.groupJson.islock == 2) {
  11432. this.$message.error("位置已被锁定,无法退出");
  11433. return;
  11434. }
  11435. let params = [
  11436. {
  11437. gid: id,
  11438. },
  11439. ];
  11440. this.ajax
  11441. .post(this.$store.state.api + "exitGroup", params)
  11442. .then((res) => {
  11443. this.$message.success("退出成功");
  11444. this.getCourseDetail(2);
  11445. })
  11446. .catch((err) => {
  11447. this.$message.error("网络不佳");
  11448. console.error(err);
  11449. });
  11450. },
  11451. groupUpload(index, task, gindex) {
  11452. this.taskCount = task;
  11453. this.toolindex = index;
  11454. this.groupIndex = gindex;
  11455. this.dialogVisibleGroupWork = true;
  11456. },
  11457. updateGroupChair(user) {
  11458. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  11459. el.label = index;
  11460. return index != user.group;
  11461. });
  11462. this.updateGroupUser = user;
  11463. this.dialogVisibleUpdateGroup = true;
  11464. },
  11465. updateChair() {
  11466. if (
  11467. this.groupStudent[this.toolindex][this.checkChair].length >
  11468. this.groupJson.number ||
  11469. this.groupStudent[this.toolindex][this.checkChair].length ==
  11470. this.groupJson.number
  11471. ) {
  11472. this.$message.error("位置已满,无法加入");
  11473. return;
  11474. }
  11475. let params = [
  11476. {
  11477. cid: this.id,
  11478. stage: this.courseType,
  11479. task: this.taskCount,
  11480. tool: this.toolindex,
  11481. g: this.checkChair,
  11482. uid: this.updateGroupUser.userid,
  11483. },
  11484. ];
  11485. this.ajax
  11486. .post(this.$store.state.api + "joinGroup", params)
  11487. .then((res) => {
  11488. this.$message.success("修改成功");
  11489. this.updateGroupUser = {};
  11490. this.checkChair = "";
  11491. this.updateGroupArray = {};
  11492. this.dialogVisibleUpdateGroup = false;
  11493. this.getCourseDetail(2);
  11494. })
  11495. .catch((err) => {
  11496. this.$message.error("网络不佳");
  11497. console.error(err);
  11498. });
  11499. },
  11500. deleteGroupChair(gindex) {
  11501. this.checkDeleteGroup = [];
  11502. this.deleteGroupUser = JSON.parse(
  11503. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  11504. );
  11505. this.deleteGroupArray = this.groupJson.group[gindex];
  11506. this.groupIndex = gindex;
  11507. this.dialogVisibleDeleteGroup = true;
  11508. },
  11509. async deleteChair() {
  11510. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  11511. const gid =
  11512. this.groupStudent[this.toolindex][this.groupIndex][
  11513. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  11514. this.checkDeleteGroup[i]
  11515. )
  11516. ];
  11517. let params = [
  11518. {
  11519. gid: gid.id,
  11520. },
  11521. ];
  11522. var a = await this.deleteChairA(params);
  11523. if (i == this.checkDeleteGroup.length - 1) {
  11524. this.$message.success("退出成功");
  11525. this.dialogVisibleDeleteGroup = false;
  11526. this.deleteGroupUser = [];
  11527. this.deleteGroupArray = {};
  11528. this.groupIndex = "";
  11529. this.checkDeleteGroup = [];
  11530. this.getCourseDetail(2);
  11531. }
  11532. }
  11533. },
  11534. deleteChairA(params) {
  11535. return new Promise((resolve, reject) => {
  11536. this.ajax
  11537. .post(this.$store.state.api + "exitGroup", params)
  11538. .then((res) => {
  11539. resolve(1);
  11540. })
  11541. .catch((err) => {
  11542. this.$message.error("网络不佳");
  11543. console.error(err);
  11544. });
  11545. });
  11546. },
  11547. contract(i) {
  11548. if (this.isCloseList[i].isClose == 0) {
  11549. this.isCloseList[i].isClose = 1;
  11550. } else {
  11551. this.isCloseList[i].isClose = 0;
  11552. }
  11553. this.$forceUpdate();
  11554. },
  11555. },
  11556. directives: {
  11557. // 使用局部注册指令的方式
  11558. resize: {
  11559. // 指令的名称
  11560. bind(el, binding) {
  11561. // el为绑定的元素,binding为绑定给指令的对象
  11562. let width = "",
  11563. height = "";
  11564. function isReize() {
  11565. const style = document.defaultView.getComputedStyle(el);
  11566. if (width !== style.width || height !== style.height) {
  11567. binding.value(); // 关键
  11568. }
  11569. width = style.width;
  11570. height = style.height;
  11571. }
  11572. el.__vueSetInterval__ = setInterval(isReize, 300);
  11573. },
  11574. unbind(el) {
  11575. clearInterval(el.__vueSetInterval__);
  11576. },
  11577. },
  11578. },
  11579. beforeDestroy() {
  11580. window.onresize = null;
  11581. clearInterval(this.timer);
  11582. this.timer = null;
  11583. clearInterval(this.opertimer);
  11584. this.opertimer = null;
  11585. },
  11586. computed: {
  11587. contentConvent() {
  11588. return function (c) {
  11589. return c
  11590. ? c
  11591. .replaceAll(/\r\n/g, "<br/>")
  11592. .replaceAll(/\n/g, "<br/>")
  11593. .replaceAll(/\s/g, " &nbsp")
  11594. : "";
  11595. };
  11596. },
  11597. checkUpload(){
  11598. return function(){
  11599. var studentK = [];
  11600. if (this.plworkFile.length > 0) {
  11601. for (var z = 0; z < this.plworkFile.length; z++) {
  11602. studentK.push(this.plworkFile[z].username);
  11603. }
  11604. studentK = studentK.join(",");
  11605. }
  11606. var a = this.uploadStudentJuri.filter((el)=>{
  11607. return studentK.indexOf(el.userid) == -1
  11608. });
  11609. return a
  11610. }
  11611. }
  11612. },
  11613. mounted() {
  11614. if (this.screenType == 2) {
  11615. window.parent.postMessage({ allScreen: 4 }, "*");
  11616. } else if (this.screenType == 3) {
  11617. window.parent.postMessage({ allScreen: 5 }, "*");
  11618. } else if (this.screenType == 1) {
  11619. window.parent.postMessage({ allScreen: 6 }, "*");
  11620. }
  11621. this.setOperationTime();
  11622. this.selectEva();
  11623. this.getCourseDetail();
  11624. this.selectCount();
  11625. this.getHomeWork();
  11626. this.contentDialog = true;
  11627. this.setContent2(true)
  11628. if (this.tType == 4) {
  11629. this.pzDialog = true;
  11630. this.selectPz();
  11631. }
  11632. document.scrollingElement.scrollTop = 0;
  11633. window.addEventListener("resize", () => {
  11634. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  11635. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  11636. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  11637. });
  11638. let _this = this;
  11639. setTimeout(() => {
  11640. // _this.vedioTime = [];
  11641. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  11642. // _this.vedioTime[i] = document.getElementsByClassName(
  11643. // "vjs-duration-display"
  11644. // )[i].textContent;
  11645. // }
  11646. }, 1000);
  11647. },
  11648. };
  11649. </script>
  11650. <style scoped>
  11651. @media screen and (max-width: 1280px) {
  11652. /* .courseIndex > div:first-child(2) {
  11653. width: 15% !important;
  11654. } */
  11655. /* .navText {
  11656. width: 120px !important;
  11657. } */
  11658. .evaCss {
  11659. flex-direction: column !important;
  11660. align-items: center !important;
  11661. }
  11662. .dialog_diy1>>>.el-dialog {
  11663. width: 100% !important;
  11664. }
  11665. .rightWidthCss {
  11666. width: 100% !important;
  11667. }
  11668. .dialog_diy3>>>.el-dialog {
  11669. width: 100% !important;
  11670. }
  11671. /* .textTitle >>> .el-form-item__label {
  11672. width: 150px !important;
  11673. } */
  11674. }
  11675. .evaCssMax {
  11676. flex-direction: column !important;
  11677. align-items: center !important;
  11678. }
  11679. .dialog_diy>>>.el-dialog {
  11680. margin-top: 10vh !important;
  11681. }
  11682. .body_student {
  11683. width: 77%;
  11684. height: 100%;
  11685. position: absolute;
  11686. left: 22%;
  11687. top: 0;
  11688. }
  11689. .student_head {
  11690. width: 100%;
  11691. margin: 0 auto;
  11692. padding-bottom: 20px;
  11693. display: flex;
  11694. flex-direction: column;
  11695. flex-wrap: nowrap;
  11696. align-items: flex-start;
  11697. justify-content: flex-start;
  11698. }
  11699. .pb_left {
  11700. width: 20%;
  11701. margin-right: 10px;
  11702. background: rgb(255, 255, 255);
  11703. padding-right: 10px;
  11704. position: fixed;
  11705. height: 100%;
  11706. }
  11707. .wheel>img,
  11708. .project>img,
  11709. .star>img,
  11710. .evaluate>img,
  11711. .up_photo>img,
  11712. .chapter_add>img,
  11713. .deleteWord>img,
  11714. .question>img,
  11715. .homework>img {
  11716. width: 100%;
  11717. height: 100%;
  11718. }
  11719. .upCover>img {
  11720. width: 131px;
  11721. height: 69px;
  11722. object-fit: cover;
  11723. }
  11724. .upCover {
  11725. width: calc(100% / 3.5);
  11726. position: relative;
  11727. margin: 0 15px 10px 0;
  11728. display: flex;
  11729. flex-direction: column;
  11730. flex-wrap: nowrap;
  11731. justify-content: center;
  11732. align-content: center;
  11733. align-items: center;
  11734. height: fit-content;
  11735. }
  11736. .upCover2 {
  11737. width: 100%;
  11738. position: relative;
  11739. margin: 0 15px 10px 0;
  11740. display: flex;
  11741. flex-direction: column;
  11742. flex-wrap: nowrap;
  11743. justify-content: center;
  11744. align-content: center;
  11745. align-items: center;
  11746. }
  11747. .upCover2>img {
  11748. width: 100%;
  11749. height: 90px;
  11750. object-fit: contain;
  11751. }
  11752. .chapter_add {
  11753. width: 120px;
  11754. position: relative;
  11755. text-align: center;
  11756. }
  11757. .isAddThings {
  11758. margin-top: 20px;
  11759. position: relative;
  11760. text-align: center;
  11761. background: #f7f8fa;
  11762. height: 90px;
  11763. width: 90px;
  11764. display: flex;
  11765. flex-direction: column;
  11766. justify-content: center;
  11767. }
  11768. .deleteWord {
  11769. width: 22px;
  11770. height: 22px;
  11771. position: absolute;
  11772. right: -5px;
  11773. top: -5px;
  11774. cursor: pointer;
  11775. }
  11776. .box_course {
  11777. /* width: 60%; */
  11778. width: 81%;
  11779. }
  11780. .wheel {
  11781. width: 100%;
  11782. /* height: 100%; */
  11783. height: 650px;
  11784. }
  11785. .right_box {
  11786. display: flex;
  11787. flex-direction: column;
  11788. margin-left: 30px;
  11789. justify-content: space-around;
  11790. }
  11791. .right_box_title {
  11792. font-size: 23px;
  11793. }
  11794. .people {
  11795. display: flex;
  11796. }
  11797. .student_body {
  11798. width: 100%;
  11799. margin: 0 auto;
  11800. margin-top: 10px;
  11801. padding: 0 0 20px;
  11802. }
  11803. .study_top {
  11804. margin-top: 70px;
  11805. width: 100%;
  11806. /* overflow: auto; */
  11807. height: auto;
  11808. }
  11809. .study_top .checkbox {
  11810. display: flex;
  11811. align-items: center;
  11812. padding: 15px 0 15px 30px;
  11813. flex: 0 0 auto;
  11814. font-weight: bold;
  11815. border-bottom: 1px solid #eee;
  11816. }
  11817. .study_top .check {
  11818. padding-bottom: 5px;
  11819. text-align: center;
  11820. cursor: pointer;
  11821. height: 30px;
  11822. box-sizing: border-box;
  11823. display: flex;
  11824. }
  11825. .study_top .checked {
  11826. border-bottom: 4px solid #3fc6a0;
  11827. padding-bottom: 5px;
  11828. color: #3fc6a0;
  11829. display: flex;
  11830. height: 35px;
  11831. }
  11832. .study_top .checked>div,
  11833. .study_top .check>div {
  11834. margin-right: 5px;
  11835. }
  11836. .videoTop {
  11837. display: flex;
  11838. flex-direction: row;
  11839. justify-content: space-between;
  11840. background: #fff;
  11841. align-items: center;
  11842. width: 95%;
  11843. padding: 20px;
  11844. }
  11845. .upbtn {
  11846. margin: 25px;
  11847. background: #70afdb;
  11848. color: #fff;
  11849. width: 120px;
  11850. text-align: center;
  11851. height: 30px;
  11852. line-height: 30px;
  11853. font-size: 13px;
  11854. border-radius: 5px;
  11855. cursor: pointer;
  11856. }
  11857. .filebox {
  11858. display: flex;
  11859. flex-wrap: wrap;
  11860. flex-direction: column;
  11861. padding: 15px 0 5px;
  11862. }
  11863. .filebox .tooldetail {
  11864. width: 100%;
  11865. margin: 0px 12px;
  11866. background: rgb(247, 247, 247);
  11867. padding: 20px;
  11868. line-height: 30px;
  11869. word-break: break-word;
  11870. }
  11871. .file {
  11872. display: flex;
  11873. flex-direction: column;
  11874. align-items: center;
  11875. justify-content: center;
  11876. cursor: pointer;
  11877. width: 200px;
  11878. }
  11879. .file div {
  11880. margin-top: 10px;
  11881. width: 150px;
  11882. text-align: center;
  11883. overflow: hidden;
  11884. white-space: nowrap;
  11885. text-overflow: ellipsis;
  11886. }
  11887. .media {
  11888. display: flex;
  11889. flex-direction: column;
  11890. align-items: center;
  11891. justify-content: center;
  11892. margin: 0 20px 20px 0;
  11893. cursor: pointer;
  11894. margin: 12px 0 5px 15px;
  11895. overflow: hidden;
  11896. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  11897. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  11898. box-sizing: border-box;
  11899. }
  11900. .media img {
  11901. height: 90px;
  11902. width: 160px;
  11903. object-fit: cover;
  11904. }
  11905. .media .title {
  11906. padding: 5px;
  11907. text-align: left;
  11908. width: 100%;
  11909. box-sizing: border-box;
  11910. }
  11911. .media .btn {
  11912. width: 100%;
  11913. height: 35px;
  11914. line-height: 35px;
  11915. color: #fff;
  11916. background: #606060;
  11917. text-align: center;
  11918. overflow: hidden;
  11919. white-space: nowrap;
  11920. text-overflow: ellipsis;
  11921. }
  11922. .detail_content_top {
  11923. width: 100%;
  11924. padding: 25px 0 25px 0;
  11925. }
  11926. .detail_title {
  11927. text-align: center;
  11928. font-size: 24px;
  11929. }
  11930. .detail_time {
  11931. font-size: 13px;
  11932. padding: 15px 0 0 40px;
  11933. }
  11934. .detail_content {
  11935. line-height: 2pc;
  11936. width: 90%;
  11937. margin: 0 auto;
  11938. padding-top: 30px;
  11939. text-indent: 30px;
  11940. overflow: auto;
  11941. height: 200px;
  11942. }
  11943. .score_box>>>.el-rate {
  11944. margin-left: 10px;
  11945. }
  11946. .dialog_change>>>.el-dialog {
  11947. border-radius: 5px;
  11948. }
  11949. .dialog_change>>>.el-dialog__header {
  11950. background: #f2f2f2;
  11951. text-align: center;
  11952. }
  11953. .dialog_change>>>.el-dialog__title {
  11954. line-height: 5px;
  11955. }
  11956. .dialog_change>>>.el-dialog__body {
  11957. background: #fff;
  11958. padding: 10px 20px;
  11959. }
  11960. .score_box {
  11961. display: flex;
  11962. align-items: center;
  11963. margin-bottom: 18px;
  11964. margin-top: 20px;
  11965. }
  11966. .up_photo {
  11967. width: 120px;
  11968. cursor: pointer;
  11969. margin-top: 10px;
  11970. }
  11971. .up_photo2 {
  11972. width: 180px;
  11973. box-sizing: border-box;
  11974. min-width: 180px;
  11975. height: 180px;
  11976. max-height: 180px;
  11977. min-height: 180px;
  11978. cursor: pointer;
  11979. display: flex;
  11980. flex-direction: column;
  11981. align-items: center;
  11982. justify-content: center;
  11983. background: rgb(242, 246, 255);
  11984. /* padding: 25px; */
  11985. margin-bottom: 10px;
  11986. }
  11987. .up_photo2 img {
  11988. width: 50%;
  11989. height: auto;
  11990. }
  11991. .up_photo2 span {
  11992. color: #898989;
  11993. }
  11994. .plworkBox {
  11995. display: flex;
  11996. align-items: center;
  11997. margin-top: 10px;
  11998. flex-wrap: wrap;
  11999. }
  12000. .upload_send {
  12001. margin: 30px auto 30px;
  12002. width: 60%;
  12003. background: #169bd6;
  12004. text-align: center;
  12005. height: 35px;
  12006. line-height: 35px;
  12007. color: #fff;
  12008. border-radius: 5px;
  12009. cursor: pointer;
  12010. }
  12011. .marginT {
  12012. margin-top: 20px;
  12013. }
  12014. .cd_content_steps {
  12015. display: flex;
  12016. width: 90%;
  12017. justify-content: space-around;
  12018. border-top: 1px solid #eeeeee;
  12019. }
  12020. .cd_steps_box {
  12021. display: flex;
  12022. justify-content: center;
  12023. align-items: center;
  12024. flex-direction: column;
  12025. cursor: pointer;
  12026. }
  12027. .first {
  12028. display: flex;
  12029. align-items: center;
  12030. margin: 15px 0 20px 0;
  12031. font-size: 20px;
  12032. }
  12033. .first>div:nth-child(2) {
  12034. font-size: 16px !important;
  12035. padding-left: 10px;
  12036. line-height: 26px;
  12037. box-sizing: border-box;
  12038. }
  12039. .blue_box_one {
  12040. text-align: center;
  12041. color: #fff;
  12042. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  12043. border-radius: 7px;
  12044. margin: 10px;
  12045. cursor: pointer;
  12046. width: 95%;
  12047. height: 45px;
  12048. display: flex;
  12049. flex-direction: row;
  12050. justify-content: flex-start;
  12051. align-items: center;
  12052. }
  12053. .blue_box_one>div:nth-child(1) {
  12054. line-height: 30px;
  12055. margin: 0 5px 0 10px;
  12056. width: 30%;
  12057. min-width: 70px;
  12058. border-radius: 4px;
  12059. }
  12060. .blue_box_one>div:nth-child(2) {
  12061. white-space: nowrap;
  12062. text-overflow: ellipsis;
  12063. overflow: hidden;
  12064. word-break: break-all;
  12065. width: 70%;
  12066. text-align: left;
  12067. margin-right: 10px;
  12068. max-width: calc(100% - 85px);
  12069. }
  12070. .blue_box_one>div:nth-child(2):hover {
  12071. overflow: hidden;
  12072. text-overflow: ellipsis;
  12073. white-space: nowrap;
  12074. cursor: pointer;
  12075. }
  12076. .upFile {
  12077. margin: 0 auto;
  12078. width: 120px;
  12079. background: #70afdb;
  12080. color: #fff;
  12081. height: 30px;
  12082. text-align: center;
  12083. line-height: 30px;
  12084. border-radius: 5px;
  12085. font-size: 14px;
  12086. cursor: pointer;
  12087. }
  12088. .courseTitle {
  12089. background: #205cc6;
  12090. width: 85%;
  12091. margin: 10px auto;
  12092. color: #fff;
  12093. border-radius: 5px;
  12094. padding: 10px 10px;
  12095. display: flex;
  12096. flex-direction: row;
  12097. align-items: center;
  12098. justify-content: space-between;
  12099. text-align: center;
  12100. }
  12101. .courseTitle .ctitle {
  12102. font-weight: bold;
  12103. font-size: 20px;
  12104. white-space: nowrap;
  12105. overflow: hidden;
  12106. text-overflow: ellipsis;
  12107. }
  12108. .courseTitle .inviteBox {
  12109. font-size: 14px;
  12110. margin-top: 5px;
  12111. color: #a6cbff;
  12112. }
  12113. .courseTitle>>>.el-tooltip {
  12114. width: 100%;
  12115. white-space: nowrap;
  12116. overflow: hidden;
  12117. text-overflow: ellipsis;
  12118. word-break: break-word;
  12119. }
  12120. .ml {
  12121. margin-left: 20px;
  12122. color: #5b7dba;
  12123. border-left: 3px solid #5b7dba;
  12124. padding-left: 5px;
  12125. font-weight: bold;
  12126. }
  12127. .return {
  12128. width: 2rem;
  12129. height: 2rem;
  12130. cursor: pointer;
  12131. }
  12132. .return>img {
  12133. width: 100%;
  12134. height: 100%;
  12135. }
  12136. .returnBtn {
  12137. background: #499eef;
  12138. width: 65px;
  12139. height: 30px;
  12140. color: #fff;
  12141. text-align: center;
  12142. line-height: 32px;
  12143. margin-right: 20px;
  12144. cursor: pointer;
  12145. border-radius: 5px;
  12146. font-size: 14px;
  12147. }
  12148. .tool {
  12149. display: flex;
  12150. flex-direction: column;
  12151. flex-wrap: nowrap;
  12152. width: 13%;
  12153. margin: 0 30px;
  12154. align-items: center;
  12155. }
  12156. .whiteBIcon {
  12157. width: 150px;
  12158. cursor: pointer;
  12159. }
  12160. .whiteBIcon>img {
  12161. width: 100%;
  12162. height: 100%;
  12163. }
  12164. .mask {
  12165. background-color: rgba(0, 0, 0, 0);
  12166. position: fixed;
  12167. top: 0;
  12168. left: 0;
  12169. width: 100%;
  12170. height: 100%;
  12171. z-index: 20000;
  12172. display: flex;
  12173. align-items: center;
  12174. justify-content: center;
  12175. }
  12176. .progressBox {
  12177. width: 500px;
  12178. height: 180px;
  12179. background: #fff;
  12180. border-radius: 10px;
  12181. box-shadow: 0 0 6px 1px #bfbfbf;
  12182. display: flex;
  12183. align-items: center;
  12184. justify-content: center;
  12185. flex-direction: column;
  12186. position: relative;
  12187. color: #6c6c6c;
  12188. }
  12189. .progressBox>>>.el-progress-bar__outer {
  12190. background-color: #d1dfff !important;
  12191. }
  12192. .progressBox .lbox {
  12193. height: 50px;
  12194. font-size: 19px;
  12195. display: flex;
  12196. align-items: center;
  12197. color: #747474;
  12198. }
  12199. .progressBox .lbox img {
  12200. width: 40px;
  12201. margin-right: 20px;
  12202. }
  12203. .closeCss {
  12204. position: absolute;
  12205. top: 8px;
  12206. right: 8px;
  12207. cursor: pointer;
  12208. width: 20px;
  12209. height: 20px;
  12210. }
  12211. .closeCss>img {
  12212. width: 100%;
  12213. height: 100%;
  12214. }
  12215. .uploadVedio {
  12216. display: flex;
  12217. flex-direction: column;
  12218. flex-wrap: nowrap;
  12219. justify-content: center;
  12220. align-items: center;
  12221. margin: 0 15px 10px 0;
  12222. }
  12223. .uploadVedio>img {
  12224. width: 30px;
  12225. height: 30px;
  12226. }
  12227. .uploadVedio>span {
  12228. white-space: nowrap;
  12229. overflow: hidden;
  12230. text-overflow: ellipsis;
  12231. width: 75px;
  12232. margin-top: 7px;
  12233. }
  12234. .picName {
  12235. white-space: nowrap;
  12236. overflow: hidden;
  12237. text-overflow: ellipsis;
  12238. width: 75px;
  12239. margin-top: 7px;
  12240. }
  12241. .new_top {
  12242. display: flex;
  12243. background: #fff;
  12244. flex-direction: row;
  12245. justify-content: flex-start;
  12246. align-items: center;
  12247. height: 60px;
  12248. position: relative;
  12249. }
  12250. .before {
  12251. position: absolute;
  12252. background: #c3dad4;
  12253. width: 6px;
  12254. height: 100%;
  12255. }
  12256. .courseIndex {
  12257. display: flex;
  12258. flex-direction: row;
  12259. align-items: center;
  12260. width: calc(100% - 520px);
  12261. }
  12262. .courseIndex>div:nth-child(1) {
  12263. margin: 0 20px;
  12264. padding-left: 5px;
  12265. font-size: 24px;
  12266. min-width: 100px;
  12267. font-weight: bold;
  12268. border-left: 4px solid #3363b9;
  12269. height: 35px;
  12270. text-align: center;
  12271. line-height: 35px;
  12272. }
  12273. .courseIndex>div:nth-child(2) {
  12274. font-size: 23px;
  12275. /* width: 300px; */
  12276. max-width: calc(100% - 180px);
  12277. white-space: nowrap;
  12278. overflow: hidden;
  12279. text-overflow: ellipsis;
  12280. }
  12281. .courseIndex>div:nth-child(3) {
  12282. border-bottom: 1px solid #d7d7d7;
  12283. padding-bottom: 5px;
  12284. background: #49a0f0;
  12285. width: 55px;
  12286. min-width: 55px;
  12287. border-radius: 5px;
  12288. color: #fff;
  12289. text-align: center;
  12290. height: 20px;
  12291. line-height: 26px;
  12292. font-size: 14px;
  12293. margin: 0 0 0 10px;
  12294. }
  12295. .course_text {
  12296. padding: 20px 0 0 15px;
  12297. text-indent: 30px;
  12298. width: 80%;
  12299. min-height: 20px;
  12300. }
  12301. .vedioList {
  12302. background: #f2f2f2;
  12303. border: 1px solid #ececec;
  12304. /* width: 38.8%; */
  12305. width: 100%;
  12306. height: 445px;
  12307. border-radius: 10px;
  12308. overflow: hidden;
  12309. }
  12310. .vedioNav {
  12311. margin: 10px 0 0 15px;
  12312. border-bottom: 1px solid #d7d7d7;
  12313. padding-bottom: 5px;
  12314. background: #96d1ff;
  12315. width: 55px;
  12316. min-width: 55px;
  12317. border-radius: 5px;
  12318. color: #fff;
  12319. text-align: center;
  12320. height: 20px;
  12321. line-height: 26px;
  12322. font-size: 14px;
  12323. }
  12324. .queTop {
  12325. display: flex;
  12326. padding: 20px 0 20px 30px;
  12327. width: 100%;
  12328. flex-direction: row;
  12329. justify-content: flex-start;
  12330. align-items: center;
  12331. border-bottom: 1px solid #eeeeee;
  12332. box-sizing: border-box;
  12333. }
  12334. .question {
  12335. width: 40px;
  12336. margin-right: 10px;
  12337. margin-top: 7px;
  12338. }
  12339. .queTitle {
  12340. margin-left: 5px;
  12341. font-size: 25px;
  12342. display: flex;
  12343. align-items: center;
  12344. }
  12345. .addEditor {
  12346. width: 100px;
  12347. height: 30px;
  12348. background: #42cda6;
  12349. color: #fff;
  12350. border-radius: 5px;
  12351. text-align: center;
  12352. line-height: 30px;
  12353. box-shadow: 1px 3px 6px 1px #bfbfbf;
  12354. cursor: pointer;
  12355. }
  12356. .vedioName {
  12357. /* text-overflow: ellipsis;
  12358. top: 8px;
  12359. font-size: 14px;
  12360. overflow: hidden;
  12361. width: 100%;
  12362. word-break: break-all;
  12363. white-space: nowrap; */
  12364. cursor: pointer;
  12365. margin: 0px 0px 10px 5px;
  12366. white-space: nowrap;
  12367. overflow: hidden;
  12368. text-overflow: ellipsis;
  12369. width: 100%;
  12370. }
  12371. .vedioTime {
  12372. width: 35px;
  12373. position: absolute;
  12374. color: #fff;
  12375. bottom: 0px;
  12376. right: 0px;
  12377. text-align: center;
  12378. background: #46411f;
  12379. height: 20px;
  12380. font-size: 14px;
  12381. line-height: 20px;
  12382. }
  12383. .homework {
  12384. width: 200px;
  12385. display: flex;
  12386. flex-direction: column;
  12387. flex-wrap: nowrap;
  12388. align-items: center;
  12389. cursor: pointer;
  12390. }
  12391. .homebox {
  12392. display: flex;
  12393. flex-wrap: wrap;
  12394. flex-direction: row;
  12395. justify-content: flex-start;
  12396. align-items: center;
  12397. padding: 15px 0;
  12398. }
  12399. .isChooseActive {
  12400. color: #3e88f4;
  12401. border-bottom: 2px solid #2f80f3;
  12402. }
  12403. .chooseWho {
  12404. display: flex;
  12405. width: 100%;
  12406. flex-direction: row;
  12407. flex-wrap: nowrap;
  12408. justify-content: flex-start;
  12409. padding-bottom: 10px;
  12410. }
  12411. .chooseWho>div {
  12412. cursor: pointer;
  12413. padding-bottom: 10px;
  12414. margin: 0 30px;
  12415. }
  12416. .addPoint>div>img {
  12417. cursor: pointer;
  12418. margin: 0 10px;
  12419. width: 85px;
  12420. border-radius: 15px;
  12421. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  12422. }
  12423. .addPoint>div {
  12424. display: flex;
  12425. flex-direction: column;
  12426. flex-wrap: nowrap;
  12427. align-items: center;
  12428. }
  12429. .isBorder>div {
  12430. margin: 0 0 10px 0;
  12431. align-items: flex-start !important;
  12432. }
  12433. .noiframeBox {
  12434. display: flex;
  12435. flex-wrap: wrap;
  12436. }
  12437. .iframeBox iframe {
  12438. width: 100%;
  12439. height: 800px;
  12440. border: none;
  12441. margin-bottom: 20px;
  12442. border: 1px solid #ccc;
  12443. }
  12444. .upload_toolBtn {
  12445. background: #6b92c9;
  12446. color: #fff;
  12447. width: 110px;
  12448. text-align: center;
  12449. height: 35px;
  12450. line-height: 35px;
  12451. font-size: 14px;
  12452. border-radius: 5px;
  12453. cursor: pointer;
  12454. position: absolute;
  12455. right: 10px;
  12456. bottom: 0;
  12457. }
  12458. .binfo_input,
  12459. .pj {
  12460. font: inherit;
  12461. color: currentColor;
  12462. width: 100%;
  12463. margin: 0;
  12464. padding: 15px 14px;
  12465. display: block;
  12466. min-width: 0;
  12467. outline: none;
  12468. box-sizing: content-box;
  12469. background: none;
  12470. -webkit-tap-highlight-color: transparent;
  12471. border: 1px solid rgba(0, 0, 0, 0.23);
  12472. border-radius: 4px;
  12473. box-sizing: border-box;
  12474. resize: none;
  12475. }
  12476. .binfo_input:focus-visible {
  12477. border: 1px solid rgba(61, 103, 188);
  12478. }
  12479. .dialog_diy>>>.el-dialog__header,
  12480. .dialog_diy1>>>.el-dialog__header {
  12481. background: #454545 !important;
  12482. padding: 15px 20px;
  12483. }
  12484. .dialog_diy>>>.el-dialog__title,
  12485. .dialog_diy1>>>.el-dialog__title {
  12486. color: #fff;
  12487. }
  12488. .dialog_diy>>>.el-dialog__headerbtn,
  12489. .dialog_diy1>>>.el-dialog__headerbtn {
  12490. top: 19px;
  12491. }
  12492. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  12493. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  12494. color: #fff;
  12495. }
  12496. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  12497. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  12498. color: #fff;
  12499. }
  12500. .dialog_diy1>>>.el-dialog__body {
  12501. padding: 0;
  12502. }
  12503. .dialog_diy>>>.el-dialog__body,
  12504. .dialog_diy>>>.el-dialog__footer,
  12505. .dialog_diy1>>>.el-dialog__footer {
  12506. background: #fafafa;
  12507. }
  12508. .a_addBox {
  12509. margin: 10px 0;
  12510. background: #fff;
  12511. padding: 15px;
  12512. max-height: 400px;
  12513. overflow: auto;
  12514. }
  12515. .a_add_box {
  12516. border-bottom: 2px solid #eee;
  12517. padding-bottom: 10px;
  12518. }
  12519. .a_add_head {
  12520. display: flex;
  12521. align-items: flex-start;
  12522. /* justify-content: space-between; */
  12523. flex-direction: column;
  12524. /* flex-direction: row; */
  12525. margin: 10px 0 20px 0;
  12526. font-size: 18px;
  12527. width: 100%;
  12528. }
  12529. .a_add_head .a_add_head_input {
  12530. width: 300px;
  12531. }
  12532. .a_add_head .a_add_head_div {
  12533. display: flex;
  12534. align-items: center;
  12535. justify-content: space-between;
  12536. }
  12537. .a_add_body {
  12538. display: flex;
  12539. align-items: center;
  12540. }
  12541. .a_add_input {
  12542. display: flex;
  12543. align-items: center;
  12544. flex-wrap: wrap;
  12545. }
  12546. .a_add_input>>>el-radio-group {
  12547. margin: 10px 0;
  12548. }
  12549. .a_add_input>>>.el-radio,
  12550. .a_add_input>>>.el-checkbox {
  12551. margin-bottom: 10px;
  12552. display: flex;
  12553. flex-direction: row;
  12554. flex-wrap: nowrap;
  12555. align-items: center;
  12556. }
  12557. .redioStyle>>>.el-radio__label {
  12558. font-size: 18px;
  12559. }
  12560. .redioStyle>>>.el-checkbox__label {
  12561. font-size: 18px;
  12562. }
  12563. .toolHeng2 {
  12564. width: 100%;
  12565. }
  12566. .toolHeng {
  12567. display: flex;
  12568. flex-direction: row;
  12569. flex-wrap: wrap;
  12570. justify-content: flex-start;
  12571. align-items: center;
  12572. width: 100%;
  12573. }
  12574. .toolHeng>div {
  12575. padding-left: 20px;
  12576. }
  12577. .isWidth {
  12578. width: 20%;
  12579. }
  12580. .textTitle {
  12581. display: flex;
  12582. flex-direction: row;
  12583. flex-wrap: nowrap;
  12584. align-items: center;
  12585. width: 95%;
  12586. }
  12587. .textTitle>>>.el-form-item__label {
  12588. font-size: 22px;
  12589. color: #918f8f;
  12590. width: 100px;
  12591. }
  12592. .textTitle>>>.el-form-item__content {
  12593. width: calc(100% - 100px);
  12594. }
  12595. .textCss>>>.el-dialog {
  12596. width: 800px !important;
  12597. height: 400px;
  12598. background: #fafafa;
  12599. }
  12600. .textCss>>>.el-dialog__body {
  12601. margin: 55px 8% 0 8%;
  12602. padding: 0 !important;
  12603. }
  12604. .textCss>>>.el-dialog__footer {
  12605. padding-top: 38px;
  12606. }
  12607. .toolsCss>>>.el-dialog__body {
  12608. padding: 20px;
  12609. }
  12610. .lineCss>>>.el-dialog__body {
  12611. display: flex;
  12612. flex-direction: row;
  12613. align-items: center;
  12614. justify-content: center;
  12615. }
  12616. .newNav {
  12617. display: flex;
  12618. flex-direction: row;
  12619. align-items: baseline;
  12620. justify-content: flex-start;
  12621. }
  12622. .navText {
  12623. cursor: pointer;
  12624. margin: 0px 0px 10px 5px;
  12625. white-space: nowrap;
  12626. overflow: hidden;
  12627. text-overflow: ellipsis;
  12628. /* width: 300px; */
  12629. width: 100%;
  12630. }
  12631. .noVedio {
  12632. display: flex;
  12633. flex-direction: row;
  12634. justify-content: center;
  12635. align-content: center;
  12636. }
  12637. .noNavText {
  12638. cursor: pointer;
  12639. margin: 0px 0px 10px 5px;
  12640. width: 112px;
  12641. }
  12642. .listNoVedio {
  12643. margin: 0 0 0 30px;
  12644. width: 97%;
  12645. }
  12646. .video-player>>>.video-js {
  12647. height: 100%;
  12648. }
  12649. .hangVedioList {
  12650. width: 90% !important;
  12651. height: 150px !important;
  12652. margin: 20px 0 0 30px;
  12653. }
  12654. .hangVedio {
  12655. width: 100%;
  12656. height: 170px !important;
  12657. align-items: flex-start !important;
  12658. }
  12659. .hangHand {
  12660. height: 150px !important;
  12661. }
  12662. .twoChild {
  12663. width: 95%;
  12664. margin: 10px;
  12665. border-radius: 5px;
  12666. background: #f2f2f2;
  12667. display: flex;
  12668. flex-direction: column;
  12669. flex-wrap: nowrap;
  12670. justify-content: flex-start;
  12671. align-items: flex-start;
  12672. transition: all 0.5s;
  12673. overflow: hidden;
  12674. height: 0;
  12675. background: #e7f3ff;
  12676. }
  12677. .twoChild>div:nth-child(1) {
  12678. margin-top: 5px;
  12679. }
  12680. .navChild {
  12681. width: 100%;
  12682. cursor: pointer;
  12683. margin-bottom: 10px;
  12684. position: relative;
  12685. }
  12686. .navChild img {
  12687. position: absolute;
  12688. right: 11px;
  12689. width: 15px;
  12690. top: 50%;
  12691. transform: translateY(-50%);
  12692. }
  12693. .navActive {
  12694. height: auto;
  12695. }
  12696. .navTask {
  12697. display: flex;
  12698. flex-direction: row;
  12699. flex-wrap: nowrap;
  12700. align-items: center;
  12701. align-content: flex-start;
  12702. height: 40px;
  12703. justify-content: flex-start;
  12704. padding: 0 10px;
  12705. width: 100%;
  12706. box-sizing: border-box;
  12707. }
  12708. .navTaskname {
  12709. white-space: nowrap;
  12710. text-overflow: ellipsis;
  12711. overflow: hidden;
  12712. word-break: break-all;
  12713. padding-left: 5px;
  12714. }
  12715. .openTaskActive {
  12716. color: #4386e6;
  12717. }
  12718. .iframeName {
  12719. margin: 5px 0;
  12720. border-left: 4px solid #41c4a4;
  12721. padding-left: 4px;
  12722. }
  12723. .toolTitle {
  12724. margin: 0px 0px 20px;
  12725. font-size: 20px;
  12726. font-weight: 500;
  12727. border-left: 4px solid #41c4a4;
  12728. padding-left: 4px;
  12729. }
  12730. .cru_selectBox {
  12731. overflow: auto;
  12732. width: 96%;
  12733. margin: 0 auto;
  12734. height: calc(100% - 40px - 21px - 20px);
  12735. }
  12736. .cru_selectBox::-webkit-scrollbar,
  12737. .study_top::-webkit-scrollbar,
  12738. .textContent::-webkit-scrollbar {
  12739. /*滚动条整体样式*/
  12740. width: 6px;
  12741. /*高宽分别对应横竖滚动条的尺寸*/
  12742. height: 6px;
  12743. }
  12744. /*定义滚动条轨道 内阴影+圆角*/
  12745. .cru_selectBox::-webkit-scrollbar-track,
  12746. .study_top::-webkit-scrollbar-track,
  12747. .textContent::-webkit-scrollbar {
  12748. border-radius: 10px;
  12749. background-color: #b8bdc9;
  12750. }
  12751. /*定义滑块 内阴影+圆角*/
  12752. .cru_selectBox::-webkit-scrollbar-thumb,
  12753. .study_top::-webkit-scrollbar-thumb,
  12754. .textContent::-webkit-scrollbar-thumb {
  12755. border-radius: 10px;
  12756. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  12757. background-color: #2c5ab3;
  12758. }
  12759. .vedioBox {
  12760. border-radius: 20px;
  12761. background: #fff;
  12762. margin-bottom: 10px;
  12763. }
  12764. .taskBox {
  12765. margin: 15px auto 20px;
  12766. background: #f7f7f7;
  12767. width: 97%;
  12768. border-radius: 10px;
  12769. }
  12770. .vedioTaskBox {
  12771. width: 100%;
  12772. display: flex;
  12773. flex-direction: row;
  12774. flex-wrap: nowrap;
  12775. align-items: flex-start;
  12776. position: relative;
  12777. }
  12778. .toolBox {
  12779. padding: 20px 0 0 0;
  12780. display: flex;
  12781. }
  12782. .btnAll {
  12783. position: absolute;
  12784. right: 0;
  12785. display: flex;
  12786. flex-direction: row;
  12787. flex-wrap: nowrap;
  12788. align-items: center;
  12789. }
  12790. .vedioTimeBox {
  12791. display: flex;
  12792. flex-direction: row;
  12793. align-items: center;
  12794. flex-wrap: nowrap;
  12795. position: relative;
  12796. }
  12797. .navBox {
  12798. background: #fff;
  12799. height: calc(100% - 40px);
  12800. padding: 5px 1px 0;
  12801. overflow-y: auto;
  12802. overflow-x: hidden;
  12803. }
  12804. .worksBox {
  12805. padding: 5px 0 0 10px;
  12806. border-bottom: 1px solid #eeeeee;
  12807. }
  12808. .worksBTitle {
  12809. font-size: 20px;
  12810. padding-bottom: 15px;
  12811. border-bottom: 1px solid #eeeeee;
  12812. display: flex;
  12813. align-items: center;
  12814. }
  12815. .greenBox {
  12816. width: 5px;
  12817. height: 30px;
  12818. background: #63b6fa;
  12819. margin-right: 5px;
  12820. }
  12821. .worksDetailBox {
  12822. display: flex;
  12823. width: 100%;
  12824. flex-direction: row;
  12825. flex-wrap: wrap;
  12826. align-items: flex-end;
  12827. justify-content: flex-start;
  12828. padding: 15px 0;
  12829. }
  12830. .works {
  12831. display: flex;
  12832. flex-direction: column;
  12833. flex-wrap: nowrap;
  12834. align-items: flex-start;
  12835. justify-content: flex-start;
  12836. align-content: center;
  12837. max-width: 240px;
  12838. width: calc(100% / 3 - 10px);
  12839. height: auto;
  12840. margin-right: 10px;
  12841. margin-bottom: 10px;
  12842. overflow: hidden;
  12843. height: 140px;
  12844. box-shadow: 0 0 6px 1px #dfdada;
  12845. border-radius: 15px;
  12846. }
  12847. .workImg {
  12848. width: 100%;
  12849. /* height: calc(100% - 40px); */
  12850. height: 105px;
  12851. position: relative;
  12852. }
  12853. .workImg>img {
  12854. width: 100%;
  12855. height: 100%;
  12856. object-fit: contain;
  12857. cursor: pointer;
  12858. }
  12859. .worksName {
  12860. height: 40px;
  12861. line-height: 40px;
  12862. display: flex;
  12863. width: 100%;
  12864. flex-direction: row;
  12865. flex-wrap: nowrap;
  12866. justify-content: space-between;
  12867. align-items: center;
  12868. margin: 0 0 0 10px;
  12869. }
  12870. .worksName>div:nth-child(1) {
  12871. width: 110px;
  12872. white-space: nowrap;
  12873. overflow: hidden;
  12874. text-overflow: ellipsis;
  12875. }
  12876. .worksName>div:nth-child(2) {
  12877. color: #b7b4b5;
  12878. }
  12879. .noWorksS {
  12880. padding: 15px 0;
  12881. display: flex;
  12882. flex-direction: row;
  12883. flex-wrap: wrap;
  12884. align-items: center;
  12885. justify-content: flex-start;
  12886. }
  12887. .noWorksName,
  12888. .isWorksName {
  12889. background: #7cbcf1;
  12890. color: #fff;
  12891. width: 90px;
  12892. height: 25px;
  12893. text-align: center;
  12894. line-height: 25px;
  12895. border-radius: 5px;
  12896. margin: 10px 15px 10px 0;
  12897. white-space: nowrap;
  12898. overflow: hidden;
  12899. padding: 5px;
  12900. text-overflow: ellipsis;
  12901. cursor: pointer;
  12902. }
  12903. .isWorksName {
  12904. background: #46a1eb !important;
  12905. width: 100px;
  12906. height: 40px;
  12907. line-height: 40px;
  12908. position: relative;
  12909. }
  12910. .noWorksName:hover {
  12911. background: #46a1eb !important;
  12912. }
  12913. .title {
  12914. background: #1e5cc9;
  12915. /* width: 98%; */
  12916. height: 45px;
  12917. color: #fff;
  12918. line-height: 45px;
  12919. padding-left: 20px;
  12920. box-sizing: border-box;
  12921. }
  12922. .textBox {
  12923. font-size: 20px;
  12924. width: 90%;
  12925. display: flex;
  12926. flex-direction: column;
  12927. align-items: center;
  12928. margin: 20px auto 0;
  12929. max-height: 500px;
  12930. overflow: auto;
  12931. }
  12932. .textContent {
  12933. font-size: 18px;
  12934. width: 95%;
  12935. max-width: 95%;
  12936. }
  12937. .answerBg {
  12938. background: url("../assets/icon/answerBgNew.png") no-repeat;
  12939. background-size: 100% 100%;
  12940. width: 100%;
  12941. height: 100%;
  12942. color: #fff;
  12943. text-align: center;
  12944. display: flex;
  12945. flex-direction: column;
  12946. flex-wrap: nowrap;
  12947. align-items: center;
  12948. position: relative;
  12949. justify-content: center;
  12950. }
  12951. .answerBg>div:nth-child(1) {
  12952. /* font-size: 22px;
  12953. padding: 25px 0 10px; */
  12954. }
  12955. .answerContent {
  12956. width: 215px;
  12957. max-height: 60px;
  12958. word-break: break-all;
  12959. text-align: center;
  12960. /* white-space: nowrap; */
  12961. overflow: hidden;
  12962. text-overflow: ellipsis;
  12963. /* padding: 23px 0 0; */
  12964. -webkit-line-clamp: 3;
  12965. -webkit-box-orient: vertical;
  12966. display: -webkit-box;
  12967. font-size: 15px;
  12968. }
  12969. .elist_input_box {
  12970. display: flex;
  12971. align-items: flex-start;
  12972. flex-wrap: nowrap;
  12973. padding: 10px 0 15px 30px;
  12974. flex-direction: column;
  12975. }
  12976. .elist_input {
  12977. /* width: 40%; */
  12978. width: 100%;
  12979. }
  12980. .elist_input .elist_input_box input {
  12981. font: inherit;
  12982. color: currentColor;
  12983. width: 200px;
  12984. padding: 8px 14px;
  12985. display: block;
  12986. min-width: 0;
  12987. outline: none;
  12988. border: 1px solid rgba(0, 0, 0, 0.23);
  12989. border-radius: 4px;
  12990. box-sizing: border-box;
  12991. background: #fff;
  12992. margin: 0 20px 0 0;
  12993. }
  12994. .elist_input .elist_input_box span {
  12995. height: 36px;
  12996. line-height: 36px;
  12997. color: rgb(82, 82, 82);
  12998. }
  12999. .elist_input .elist_input_box .remove {
  13000. height: 20px;
  13001. width: 20px;
  13002. background-size: 100% 100%;
  13003. background-position: unset;
  13004. margin-left: 5px;
  13005. }
  13006. .elist_input_box>>>.el-rate {
  13007. display: flex;
  13008. height: 36px;
  13009. align-items: center;
  13010. }
  13011. .elist_input_box .elist_inptu_text {
  13012. min-height: 50px;
  13013. /* width: 500px;
  13014. max-height: 150px; */
  13015. width: 100%;
  13016. line-height: 50px;
  13017. color: rgb(82, 82, 82);
  13018. overflow: auto;
  13019. text-indent: 5px;
  13020. background: #f7f6f9;
  13021. border-radius: 10px;
  13022. }
  13023. .elist_input_box .elist_inptu_text input {
  13024. width: 500px;
  13025. }
  13026. .elist_input_box>>>.el-rate__icon {
  13027. font-size: 24px;
  13028. }
  13029. .isClick {
  13030. background: #4d9def;
  13031. }
  13032. .bzBox {
  13033. display: flex;
  13034. flex-direction: row;
  13035. align-items: center;
  13036. }
  13037. .bzBox>div:nth-child(1) {
  13038. width: 4px;
  13039. height: 40px;
  13040. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  13041. }
  13042. .bzBox>div:nth-child(2) {
  13043. font-size: 23px;
  13044. font-weight: bold;
  13045. padding: 0px 0px 0 10px;
  13046. }
  13047. .navTitile {
  13048. padding: 0 0px 0 15px;
  13049. color: #fff;
  13050. height: 40px;
  13051. line-height: 40px;
  13052. }
  13053. .isTypeOne {
  13054. width: 240px;
  13055. height: 170px;
  13056. /* border: 1px solid #f8f8f8; */
  13057. border-radius: 10px;
  13058. box-shadow: 0 0 6px 1px #dfdada;
  13059. }
  13060. .e_add_top {
  13061. display: flex;
  13062. justify-content: space-between;
  13063. padding: 20px 20px 0 20px;
  13064. border-radius: 3px;
  13065. background: #fff;
  13066. }
  13067. .e_add_title2 {
  13068. display: flex;
  13069. align-items: center;
  13070. }
  13071. .e_add_title2 span {
  13072. width: 40px;
  13073. }
  13074. .e_add_title {
  13075. display: flex;
  13076. align-items: center;
  13077. color: #b8b8b8;
  13078. font-size: 18px;
  13079. position: relative;
  13080. height: 40px;
  13081. }
  13082. .e_add_title span {
  13083. margin-right: 10px;
  13084. }
  13085. .e_add_title .el_input {
  13086. width: 300px;
  13087. }
  13088. .e_add_title>>>.el-input__inner {
  13089. width: 400px;
  13090. }
  13091. .e_add_btn {}
  13092. .e_add_content {
  13093. display: flex;
  13094. width: 100%;
  13095. max-width: 650px;
  13096. height: 550px;
  13097. }
  13098. .e_add_list {
  13099. background: #fff;
  13100. height: 500px;
  13101. width: 210px;
  13102. position: relative;
  13103. margin: 15px 5px 0 0;
  13104. flex-shrink: 0;
  13105. display: flex;
  13106. flex-direction: column;
  13107. }
  13108. .e_add_list_title {
  13109. font-size: 20px;
  13110. width: 100%;
  13111. box-sizing: border-box;
  13112. padding: 15px 40px;
  13113. text-align: center;
  13114. border-bottom: 1px solid #eaeaea;
  13115. position: relative;
  13116. display: flex;
  13117. align-items: center;
  13118. justify-content: center;
  13119. height: 57px;
  13120. background: #f6f6f6;
  13121. }
  13122. .e_add_list_title span {
  13123. overflow: hidden;
  13124. white-space: nowrap;
  13125. text-overflow: ellipsis;
  13126. }
  13127. .e_add_list_title img {
  13128. position: absolute;
  13129. right: 15px;
  13130. width: 25px;
  13131. cursor: pointer;
  13132. top: 50%;
  13133. transform: translateY(-50%);
  13134. }
  13135. .e_add_list_body {
  13136. height: calc(100% - 187px);
  13137. overflow: auto;
  13138. }
  13139. .e_add_list_child {
  13140. width: 100%;
  13141. display: flex;
  13142. align-items: center;
  13143. justify-content: center;
  13144. position: relative;
  13145. box-sizing: border-box;
  13146. padding: 15px 40px;
  13147. text-align: center;
  13148. }
  13149. .e_add_list_child span {
  13150. overflow: hidden;
  13151. white-space: nowrap;
  13152. text-overflow: ellipsis;
  13153. cursor: pointer;
  13154. }
  13155. .e_add_list_child img {
  13156. position: absolute;
  13157. right: 10px;
  13158. width: 21px;
  13159. cursor: pointer;
  13160. top: 50%;
  13161. transform: translateY(-50%);
  13162. }
  13163. .e_add_list_child+.e_add_list_child {
  13164. border-top: 1px solid #eaeaea;
  13165. }
  13166. .e_add_list_child .active {
  13167. color: #409eff;
  13168. }
  13169. .e_add_list_btn {
  13170. position: absolute;
  13171. bottom: 0;
  13172. height: 50px;
  13173. background: rgb(120, 120, 254);
  13174. width: 100%;
  13175. color: #fff;
  13176. font-size: 16px;
  13177. text-align: center;
  13178. line-height: 50px;
  13179. cursor: pointer;
  13180. }
  13181. .e_add_list_detail {
  13182. position: absolute;
  13183. bottom: 0;
  13184. height: 130px;
  13185. background: rgb(120, 120, 254);
  13186. width: 100%;
  13187. color: #fff;
  13188. font-size: 16px;
  13189. display: flex;
  13190. align-items: center;
  13191. justify-content: center;
  13192. }
  13193. .e_add_list_detail textarea {
  13194. height: 90%;
  13195. width: 95%;
  13196. border: none;
  13197. resize: none;
  13198. outline: none;
  13199. padding: 5px;
  13200. box-sizing: border-box;
  13201. }
  13202. .e_add_list_pbox {
  13203. width: 100%;
  13204. max-width: 650px;
  13205. /* height: 600px; */
  13206. }
  13207. .e_add_list_pbox_title {
  13208. height: 50px;
  13209. background: #fff;
  13210. display: flex;
  13211. align-items: center;
  13212. width: 100%;
  13213. box-sizing: border-box;
  13214. padding: 0 20px;
  13215. }
  13216. .type_title {
  13217. font-size: 18px;
  13218. font-weight: 700;
  13219. }
  13220. .type_content {
  13221. font-size: 16px;
  13222. margin-left: 30px;
  13223. }
  13224. .type_content span+span {
  13225. margin-left: 20px;
  13226. }
  13227. .type_content span {
  13228. cursor: pointer;
  13229. padding-bottom: 5px;
  13230. box-sizing: border-box;
  13231. }
  13232. .type_content .active {
  13233. color: #409eff;
  13234. border-bottom: 2px solid #409eff;
  13235. }
  13236. .e_add_list_pbox_content {
  13237. height: calc(100% - 50px);
  13238. display: flex;
  13239. align-items: center;
  13240. width: 100%;
  13241. background: #fff;
  13242. }
  13243. .evaCss {
  13244. display: flex;
  13245. flex-direction: row;
  13246. flex-wrap: nowrap;
  13247. align-items: flex-start;
  13248. }
  13249. .cru_line {
  13250. position: absolute;
  13251. bottom: 0px;
  13252. transition: all 0.5s;
  13253. left: 0px;
  13254. width: 125px;
  13255. margin-left: -25px;
  13256. }
  13257. .isNoMessage {
  13258. width: 20%;
  13259. margin: 25% auto 0;
  13260. }
  13261. .isNoMessage>img {
  13262. width: 100%;
  13263. height: 100%;
  13264. }
  13265. .fullStyle>>>.el-dialog__body {
  13266. height: 100% !important;
  13267. }
  13268. .fullStyle>>>.el-dialog,
  13269. .fullStyle {
  13270. width: 100% !important;
  13271. max-width: 100% !important;
  13272. height: 100% !important;
  13273. margin: 0 !important;
  13274. }
  13275. .full_diy>>>.el-dialog {
  13276. margin: 0 !important;
  13277. height: 100%;
  13278. padding: 4px;
  13279. }
  13280. .full_diy>>>.el-dialog__body {
  13281. height: calc(100% - 100px);
  13282. }
  13283. .full_diy2>>>.el-dialog__body {
  13284. height: calc(100% - 50px);
  13285. padding: 0;
  13286. }
  13287. .switchCss {
  13288. /* width: 100%; */
  13289. display: flex;
  13290. flex-direction: row;
  13291. flex-wrap: nowrap;
  13292. align-items: center;
  13293. /* justify-content: center; */
  13294. }
  13295. .isClickNav {
  13296. color: #499eef;
  13297. }
  13298. .commentImg {
  13299. width: 25px;
  13300. height: 25px;
  13301. cursor: pointer;
  13302. }
  13303. .commentImg>img {
  13304. width: 100%;
  13305. height: 100%;
  13306. }
  13307. .comment {
  13308. background: #f9f9f9;
  13309. border-radius: 0 0 15px 15px;
  13310. display: flex;
  13311. flex-direction: row;
  13312. flex-wrap: nowrap;
  13313. align-items: center;
  13314. justify-content: flex-end;
  13315. height: 35px;
  13316. }
  13317. .commentList {
  13318. display: flex;
  13319. flex-direction: row;
  13320. flex-wrap: nowrap;
  13321. align-items: center;
  13322. justify-content: center;
  13323. align-content: center;
  13324. /* margin-left: 15px; */
  13325. /* margin-left: 8px; */
  13326. }
  13327. .scoreImg {
  13328. width: 17px;
  13329. height: 17px;
  13330. }
  13331. .studentDetail {
  13332. display: flex;
  13333. flex-direction: row;
  13334. flex-wrap: nowrap;
  13335. /* align-items: center; */
  13336. align-items: flex-start;
  13337. }
  13338. .tx {
  13339. width: 50px;
  13340. }
  13341. .tx>img {
  13342. width: 100%;
  13343. height: 100%;
  13344. }
  13345. .nameAndTime {
  13346. display: flex;
  13347. flex-direction: column;
  13348. flex-wrap: nowrap;
  13349. align-items: flex-start;
  13350. margin-left: 10px;
  13351. }
  13352. .worksAnswer {
  13353. color: #4078dd;
  13354. margin: 10px 0;
  13355. font-size: 16px;
  13356. position: relative;
  13357. }
  13358. .worksAnswer>img {
  13359. width: 500px;
  13360. height: 300px;
  13361. object-fit: contain;
  13362. margin: 0 auto;
  13363. display: block;
  13364. }
  13365. .commentTop {
  13366. border-bottom: 1px solid #eaeaea;
  13367. padding-bottom: 10px;
  13368. }
  13369. .commentBox {
  13370. padding-top: 15px;
  13371. }
  13372. .pl {
  13373. font-size: 18px;
  13374. }
  13375. .plPerson {
  13376. width: 100%;
  13377. }
  13378. .plName {
  13379. display: flex;
  13380. flex-direction: row;
  13381. flex-wrap: nowrap;
  13382. align-items: baseline;
  13383. color: #78787a;
  13384. width: 100%;
  13385. }
  13386. .deleteComment {
  13387. cursor: pointer;
  13388. margin-left: auto;
  13389. color: #237ade;
  13390. }
  13391. .plContent {
  13392. margin-top: 5px;
  13393. }
  13394. .evalCss {
  13395. background: #fff;
  13396. font-size: 18px;
  13397. }
  13398. .nav {
  13399. color: #9d9d9d;
  13400. padding: 5px 0 15px 20px;
  13401. }
  13402. .middleBox {
  13403. padding: 5px 0 15px 20px;
  13404. }
  13405. .pfBox {
  13406. padding-bottom: 30px;
  13407. }
  13408. .nameAndrate {
  13409. display: flex;
  13410. flex-direction: row;
  13411. flex-wrap: nowrap;
  13412. align-items: center;
  13413. padding-bottom: 10px;
  13414. height: 30px;
  13415. line-height: 30px;
  13416. }
  13417. .nameAndrate>div {
  13418. margin-left: 10px;
  13419. color: #000;
  13420. height: 30px;
  13421. }
  13422. .nameAndrate>>>.el-rate__icon {
  13423. font-size: 28px !important;
  13424. }
  13425. .pfBox>div:nth-child(2) {
  13426. background: #f7f6f9;
  13427. width: 400px;
  13428. min-height: 45px;
  13429. border-radius: 10px;
  13430. font-size: 16px;
  13431. display: flex;
  13432. flex-wrap: wrap;
  13433. align-items: center;
  13434. padding: 10px 20px;
  13435. box-sizing: border-box;
  13436. color: #000;
  13437. }
  13438. .bz {
  13439. display: flex;
  13440. flex-direction: row;
  13441. flex-wrap: nowrap;
  13442. align-items: flex-start;
  13443. }
  13444. .bz>div {
  13445. padding: 0 10px;
  13446. }
  13447. .select_box2_title {
  13448. background: #fff;
  13449. border-radius: 5px;
  13450. padding: 15px 10px;
  13451. box-sizing: border-box;
  13452. margin-bottom: 10px;
  13453. display: flex;
  13454. flex-direction: row;
  13455. flex-wrap: nowrap;
  13456. align-items: center;
  13457. }
  13458. .select_box2_title>div:nth-child(2) {
  13459. margin-left: 10px;
  13460. color: #c4c4c4;
  13461. }
  13462. .select_box2_box {
  13463. display: flex;
  13464. height: 500px;
  13465. }
  13466. .select_box2_img {
  13467. width: calc(100% - 310px);
  13468. height: 100%;
  13469. overflow: auto;
  13470. background: #fff;
  13471. border-radius: 5px;
  13472. }
  13473. .select_box2_img img {
  13474. width: 100%;
  13475. }
  13476. .select_box2_answer {
  13477. background: #fff;
  13478. margin-left: 10px;
  13479. border-radius: 5px;
  13480. width: 300px;
  13481. overflow: auto;
  13482. height: 90%;
  13483. display: flex;
  13484. flex-direction: column;
  13485. align-items: flex-start;
  13486. padding-top: 10px;
  13487. box-sizing: border-box;
  13488. position: relative;
  13489. }
  13490. .select_answer_title {
  13491. padding: 0 0 15px 20px;
  13492. color: #c4c4c4;
  13493. }
  13494. .select_box2_answer_box {
  13495. margin: 0 0 10px 20px;
  13496. width: 85%;
  13497. display: flex;
  13498. flex-direction: row;
  13499. flex-wrap: nowrap;
  13500. align-items: center;
  13501. }
  13502. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  13503. color: #000;
  13504. }
  13505. .upAnswerCss {
  13506. position: absolute;
  13507. bottom: 15px;
  13508. right: 15px;
  13509. }
  13510. .upAnswerCss>>>.el-button {
  13511. width: 95px;
  13512. height: 35px;
  13513. line-height: 35px;
  13514. padding: 0;
  13515. }
  13516. .rightWidthCss {
  13517. width: 60%;
  13518. display: flex;
  13519. flex-direction: row;
  13520. align-items: flex-start;
  13521. }
  13522. .rightAnswer {
  13523. display: flex;
  13524. flex-direction: row;
  13525. flex-wrap: nowrap;
  13526. align-items: center;
  13527. color: red;
  13528. margin-bottom: 31px;
  13529. }
  13530. .rightAnswerCss {
  13531. display: flex;
  13532. flex-direction: column;
  13533. flex-wrap: nowrap;
  13534. padding-top: 60px;
  13535. }
  13536. .blueCss {
  13537. color: #767de1;
  13538. margin-left: 10px;
  13539. }
  13540. .redCss {
  13541. color: red;
  13542. }
  13543. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  13544. color: rgb(0 123 255) !important;
  13545. }
  13546. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  13547. color: rgb(0 123 255) !important;
  13548. }
  13549. .zuoyeYulan {
  13550. padding-top: 15px;
  13551. font-size: 18px;
  13552. display: flex;
  13553. align-items: flex-end;
  13554. }
  13555. .buttonA {
  13556. margin-left: 10px;
  13557. padding: 0;
  13558. }
  13559. .displayBox {
  13560. margin-bottom: 10px;
  13561. display: block;
  13562. border-bottom: 3px solid #eee;
  13563. display: flex;
  13564. align-items: center;
  13565. }
  13566. .easy_comment {
  13567. width: calc(100% - 90px);
  13568. margin-left: 10px;
  13569. display: flex;
  13570. flex-wrap: wrap;
  13571. }
  13572. .easy_comment>div {
  13573. border: 1px solid #4a4a4a;
  13574. color: #666;
  13575. border-radius: 15px;
  13576. padding: 5px 10px;
  13577. font-size: 16px;
  13578. margin-bottom: 10px;
  13579. margin-right: 5px;
  13580. cursor: pointer;
  13581. }
  13582. .easy_comment div:hover {
  13583. border: 1px solid #f7ba2a;
  13584. color: #c69217;
  13585. }
  13586. .xuan_right_box {
  13587. padding: 10px;
  13588. background: rgb(247, 247, 247);
  13589. margin: 10px 12px;
  13590. border-radius: 5px;
  13591. }
  13592. .tool_right_box {
  13593. display: flex;
  13594. align-items: center;
  13595. }
  13596. .tool_right_box+.tool_right_box {
  13597. margin-top: 10px;
  13598. }
  13599. .right_box_xuan {
  13600. background: rgb(0 123 255);
  13601. color: #fff;
  13602. border-radius: 5px;
  13603. padding: 5px;
  13604. margin-left: 10px;
  13605. }
  13606. .pButton:hover {
  13607. opacity: 1 !important;
  13608. }
  13609. .pButton {
  13610. position: fixed;
  13611. /* right: 5%; */
  13612. /* bottom: 5%; */
  13613. color: #fff;
  13614. /* width: 50px;
  13615. height: 50px; */
  13616. /* border-radius: 50%; */
  13617. text-align: center;
  13618. /* line-height: 50px; */
  13619. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  13620. cursor: pointer;
  13621. z-index: 999;
  13622. right: 0;
  13623. top: 83px;
  13624. width: 50px;
  13625. height: 50px;
  13626. background: #fff;
  13627. display: flex;
  13628. align-items: center;
  13629. justify-content: center;
  13630. box-shadow: 0px 0 8px 2px #c5c5c5;
  13631. border-radius: 5px;
  13632. }
  13633. .pzClass {
  13634. width: calc(100% - 340px);
  13635. }
  13636. .newDialogCss {
  13637. /* position: fixed;
  13638. right: 5%;
  13639. top: 50%;
  13640. width: 340px;
  13641. transform: translateY(-50%);
  13642. height: 60%;
  13643. box-shadow: 0px 0 8px 0px #555555;
  13644. border-radius: 15px;
  13645. z-index: 999; */
  13646. position: fixed;
  13647. right: 0;
  13648. top: 70px;
  13649. width: 340px;
  13650. height: calc(100% - 80px);
  13651. z-index: 999;
  13652. background: #fff;
  13653. border-radius: 15px;
  13654. border-top-right-radius: 0px;
  13655. border-bottom-right-radius: 0px;
  13656. overflow: hidden;
  13657. }
  13658. .pzTop {
  13659. color: #fff;
  13660. background: #000;
  13661. display: flex;
  13662. flex-direction: row;
  13663. flex-wrap: nowrap;
  13664. align-items: center;
  13665. justify-content: space-between;
  13666. height: 40px;
  13667. border-radius: 15px 15px 0 0;
  13668. }
  13669. .pzTop2 .checkbox {
  13670. display: flex;
  13671. align-items: center;
  13672. padding: 15px 30px;
  13673. flex: 0 0 auto;
  13674. font-weight: bold;
  13675. border-bottom: 1px solid #eee;
  13676. justify-content: space-between;
  13677. }
  13678. .pzTop2 .check {
  13679. text-align: center;
  13680. cursor: pointer;
  13681. box-sizing: border-box;
  13682. display: flex;
  13683. }
  13684. .pzTop2 img {
  13685. width: 25px;
  13686. cursor: pointer;
  13687. }
  13688. .pzTop>div:nth-child(1) {
  13689. padding-left: 10px;
  13690. }
  13691. .pzTop>div:nth-child(2) {
  13692. width: 15px;
  13693. height: 15px;
  13694. padding-right: 10px;
  13695. cursor: pointer;
  13696. }
  13697. .pzTop>div:nth-child(2)>img {
  13698. width: 100%;
  13699. height: 100%;
  13700. }
  13701. .pzBox,
  13702. .noPzBox {
  13703. height: calc(100% - 60px);
  13704. /* background: #ededed; */
  13705. background: #fff;
  13706. /* border-radius: 0 0 15px 15px; */
  13707. }
  13708. .noPzBox {
  13709. display: flex;
  13710. flex-direction: column;
  13711. flex-wrap: nowrap;
  13712. justify-content: center;
  13713. align-items: center;
  13714. }
  13715. .pzList {
  13716. background: #f7f7f7;
  13717. width: 90%;
  13718. margin: 0 auto 15px;
  13719. border-radius: 5px;
  13720. }
  13721. .pzNavTop {
  13722. display: flex;
  13723. flex-direction: row;
  13724. flex-wrap: nowrap;
  13725. padding: 10px 10px 0 10px;
  13726. align-items: center;
  13727. }
  13728. .pzDelete {
  13729. cursor: pointer;
  13730. margin-left: auto;
  13731. font-size: 14px;
  13732. color: #afafaf;
  13733. }
  13734. .pzNavTop>div:nth-child(1) {
  13735. background: #3760af;
  13736. width: 35px;
  13737. height: 35px;
  13738. color: #fff;
  13739. text-align: center;
  13740. line-height: 35px;
  13741. border-radius: 50%;
  13742. font-size: 14px;
  13743. }
  13744. .pzNavTop>div:nth-child(2) {
  13745. font-size: 18px;
  13746. color: #959595;
  13747. margin-left: 5px;
  13748. }
  13749. .pzContent {
  13750. padding: 10px;
  13751. word-break: break-word;
  13752. }
  13753. .pzContent audio {
  13754. width: 100%;
  13755. }
  13756. .pzContent audio::-webkit-media-controls-panel {
  13757. background: #fff;
  13758. }
  13759. .pzListBox {
  13760. padding-top: 15px;
  13761. height: calc(100% - 60px);
  13762. overflow: auto;
  13763. }
  13764. .addPzButton {
  13765. position: relative;
  13766. margin-top: 3px;
  13767. width: 100%;
  13768. }
  13769. .addPzButton .img1 {
  13770. position: absolute;
  13771. top: 50%;
  13772. right: 25px;
  13773. transform: translateY(-50%);
  13774. height: 100%;
  13775. display: flex;
  13776. align-items: center;
  13777. }
  13778. .addPzButton .img1 div {
  13779. display: flex;
  13780. }
  13781. .addPzButton .img1 div img {
  13782. width: 28px;
  13783. margin-left: 10px;
  13784. cursor: pointer;
  13785. }
  13786. .addPzButton .img1 div span {
  13787. font-size: 14px;
  13788. margin: 4px 0 0 3px;
  13789. color: #afafaf;
  13790. }
  13791. .addPz {
  13792. background: #4b79ce;
  13793. width: 100px;
  13794. color: #fff;
  13795. font-size: 12px;
  13796. height: 30px;
  13797. margin: 0 auto;
  13798. text-align: center;
  13799. line-height: 30px;
  13800. border-radius: 10px;
  13801. cursor: pointer;
  13802. }
  13803. .addDialogCss {
  13804. position: fixed;
  13805. right: 37%;
  13806. top: 50%;
  13807. width: 600px;
  13808. transform: translateY(-50%);
  13809. height: 70%;
  13810. min-height: 450px;
  13811. box-shadow: 0px 0 8px 0px #555555;
  13812. border-radius: 15px;
  13813. z-index: 999;
  13814. }
  13815. .teacherPz {
  13816. display: flex;
  13817. flex-direction: row;
  13818. align-items: center;
  13819. flex-wrap: nowrap;
  13820. }
  13821. .teacherPzImg {
  13822. width: 30px;
  13823. height: 30px;
  13824. }
  13825. .teacherPzImg>img {
  13826. width: 100%;
  13827. height: 100%;
  13828. }
  13829. .addPzBox {
  13830. height: calc(100% - 40px);
  13831. background: #ededed;
  13832. }
  13833. .pzAudioClass {
  13834. margin: 15px 14px;
  13835. background: #fff;
  13836. height: 100%;
  13837. display: flex;
  13838. justify-content: center;
  13839. align-items: center;
  13840. }
  13841. .pzConText {
  13842. width: 95%;
  13843. height: 100%;
  13844. margin: 10px auto 0;
  13845. border: none;
  13846. background: #fff;
  13847. border-radius: 0px;
  13848. }
  13849. .pzConText>>>.text {
  13850. height: calc(100% - 82px);
  13851. }
  13852. .addTextCss {
  13853. background: #4b79ce;
  13854. width: 80px;
  13855. height: 30px;
  13856. text-align: center;
  13857. color: #fff;
  13858. line-height: 30px;
  13859. border-radius: 10px;
  13860. margin: 10px auto 0;
  13861. cursor: pointer;
  13862. }
  13863. .pzConText:focus-visible {
  13864. border: none !important;
  13865. }
  13866. .maxWidth {
  13867. width: 1000px;
  13868. }
  13869. .noPz {
  13870. width: 150px;
  13871. margin: 0 auto 20%;
  13872. }
  13873. .noPz>img {
  13874. width: 100%;
  13875. height: 100%;
  13876. }
  13877. .pzList .time {
  13878. text-align: right;
  13879. box-sizing: border-box;
  13880. padding: 0 10px 10px 0px;
  13881. color: #949494;
  13882. font-size: 14px;
  13883. }
  13884. /* table 样式 */
  13885. .cont>>>table {
  13886. border-top: 1px solid #ccc;
  13887. border-left: 1px solid #ccc;
  13888. }
  13889. .cont>>>table td,
  13890. .cont>>>table th {
  13891. border-bottom: 1px solid #ccc;
  13892. border-right: 1px solid #ccc;
  13893. padding: 15px 5px;
  13894. max-width: 0px;
  13895. }
  13896. .cont>>>table th {
  13897. border-bottom: 2px solid #ccc;
  13898. text-align: center;
  13899. }
  13900. /* blockquote 样式 */
  13901. .cont>>>blockquote {
  13902. display: block;
  13903. border-left: 8px solid #d0e5f2;
  13904. padding: 5px 10px;
  13905. margin: 10px 0;
  13906. line-height: 1.4;
  13907. font-size: 100%;
  13908. background-color: #f1f1f1;
  13909. }
  13910. .addPzCheck {
  13911. display: flex;
  13912. flex-direction: row;
  13913. flex-wrap: nowrap;
  13914. padding: 10px 15px 0;
  13915. }
  13916. .addPzCheck span {
  13917. cursor: pointer;
  13918. padding-bottom: 5px;
  13919. font-weight: bold;
  13920. }
  13921. .addPzCheck span+span {
  13922. margin-left: 10px;
  13923. }
  13924. .addPzCheck .isChooseActive {
  13925. color: #3e88f4;
  13926. border-bottom: 2px solid #2f80f3;
  13927. }
  13928. /* code 样式 */
  13929. .cont>>>code {
  13930. display: inline-block;
  13931. *display: inline;
  13932. *zoom: 1;
  13933. background-color: #f1f1f1;
  13934. border-radius: 3px;
  13935. padding: 3px 5px;
  13936. margin: 0 3px;
  13937. }
  13938. .cont>>>pre code {
  13939. display: block;
  13940. }
  13941. /* ul ol 样式 */
  13942. .cont>>>ul,
  13943. ol {
  13944. margin: 10px 0 10px 20px;
  13945. }
  13946. .scoreBox,
  13947. .scoreDetailBox {
  13948. display: flex;
  13949. align-items: center;
  13950. justify-content: flex-start;
  13951. margin-top: 20px;
  13952. font-size: 18px;
  13953. width: 100%;
  13954. }
  13955. .scoreBox .t,
  13956. .scoreDetailBox .t {
  13957. margin-right: 10px;
  13958. width: 100px;
  13959. text-align: right;
  13960. }
  13961. .scoreDetailBox {
  13962. align-items: flex-start;
  13963. }
  13964. .scoreDetailBox>>>.el-textarea {
  13965. width: calc(100% - 200px);
  13966. }
  13967. .scoreBox>>>.el-input {
  13968. width: 130px;
  13969. font-size: 38px;
  13970. }
  13971. .scoreBox>>>.el-input__inner {
  13972. height: 60px;
  13973. }
  13974. .answerScore {
  13975. position: absolute;
  13976. top: 10px;
  13977. right: 10px;
  13978. background: #0000008f;
  13979. border-radius: 5px;
  13980. padding: 3px 5px;
  13981. font-size: 14px;
  13982. color: #fff;
  13983. cursor: pointer;
  13984. }
  13985. .open_box .switch_box {
  13986. width: 100%;
  13987. margin: 0 auto;
  13988. display: flex;
  13989. justify-content: space-between;
  13990. }
  13991. .open_box .switch_box+.switch_box {
  13992. margin-top: 10px;
  13993. }
  13994. .deleteImg {
  13995. width: 25px !important;
  13996. height: 25px !important;
  13997. cursor: pointer;
  13998. position: absolute;
  13999. top: 10px;
  14000. right: 10px;
  14001. }
  14002. .deleteImg2 {
  14003. width: 15px !important;
  14004. height: 15px !important;
  14005. top: 5px;
  14006. right: 5px;
  14007. }
  14008. .rightW {
  14009. right: 40px;
  14010. }
  14011. .drawPBox {
  14012. display: flex;
  14013. flex-direction: column;
  14014. position: relative;
  14015. }
  14016. .drawPBox span {
  14017. font-size: 18px;
  14018. color: #606266;
  14019. padding-bottom: 10px;
  14020. margin: 10px 0;
  14021. border-bottom: 1px solid #eaeaea;
  14022. }
  14023. .drawPBox img {
  14024. width: 500px;
  14025. height: 300px;
  14026. object-fit: contain;
  14027. cursor: pointer;
  14028. margin: 0 auto;
  14029. }
  14030. .sentenBox {
  14031. background: #fff;
  14032. height: 450px;
  14033. overflow: auto;
  14034. background-image: url("../assets/icon/conSentences/stuBg.png");
  14035. background-position: 102%;
  14036. background-repeat: no-repeat;
  14037. background-size: 60%;
  14038. }
  14039. .addSen {
  14040. background: #409efe;
  14041. width: 90px;
  14042. color: #fff;
  14043. height: 35px;
  14044. text-align: center;
  14045. line-height: 35px;
  14046. border-radius: 5px;
  14047. float: right;
  14048. margin: 10px 20px 0 0;
  14049. cursor: pointer;
  14050. }
  14051. .sentenTop {
  14052. display: flex;
  14053. flex-direction: row;
  14054. flex-wrap: nowrap;
  14055. align-items: center;
  14056. padding: 55px 0 0 20px;
  14057. box-sizing: border-box;
  14058. }
  14059. .sentenTop>div:nth-child(2) {
  14060. width: 300px;
  14061. margin: 0 15px;
  14062. }
  14063. .sentenTop>div:nth-child(3) {
  14064. background: #409efe;
  14065. color: #fff;
  14066. width: 65px;
  14067. height: 35px;
  14068. text-align: center;
  14069. line-height: 35px;
  14070. border-radius: 5px;
  14071. cursor: pointer;
  14072. }
  14073. .cardList,
  14074. .cardList1 {
  14075. padding: 10px 0 10px 0;
  14076. display: flex;
  14077. flex-direction: row;
  14078. flex-wrap: wrap;
  14079. align-items: center;
  14080. box-sizing: border-box;
  14081. border-bottom: 1px solid #f4f4f4;
  14082. width: 98%;
  14083. margin: 0 auto;
  14084. min-width: 60%;
  14085. max-width: 85%;
  14086. }
  14087. .cardList1 {
  14088. padding: 10px 0 10px 10px !important;
  14089. margin: 0 !important;
  14090. }
  14091. .cardBox {
  14092. display: flex;
  14093. flex-direction: row;
  14094. flex-wrap: wrap;
  14095. align-items: center;
  14096. align-content: center;
  14097. }
  14098. .cardBox>div {
  14099. margin-bottom: 10px;
  14100. }
  14101. .isCard,
  14102. .isChooseCard,
  14103. .noCard,
  14104. .isCard1 {
  14105. width: 130px;
  14106. height: 60px;
  14107. text-align: center;
  14108. line-height: 60px;
  14109. font-size: 20px;
  14110. cursor: pointer;
  14111. background-image: url("../assets/icon/conSentences/titleBorder.png");
  14112. background-size: cover;
  14113. transition: all 2s;
  14114. margin-right: 20px;
  14115. }
  14116. .isCard>div,
  14117. .noCard>div,
  14118. .isCard1>div {
  14119. white-space: nowrap;
  14120. overflow: hidden;
  14121. text-overflow: ellipsis;
  14122. width: 75%;
  14123. margin: 0 auto;
  14124. }
  14125. .noCard {
  14126. background-image: none;
  14127. }
  14128. .isCard1 {
  14129. background-image: url("../assets/icon/conSentences/answerBorder.png");
  14130. }
  14131. .isChooseCard {
  14132. background-image: none;
  14133. border: 1px dashed #b9b9b9;
  14134. border-radius: 10px;
  14135. }
  14136. .card {
  14137. width: 130px;
  14138. height: 60px;
  14139. }
  14140. .card>img {
  14141. width: 100%;
  14142. height: 100%;
  14143. }
  14144. .rightCardBox {
  14145. margin: 10px 0 0 10px;
  14146. }
  14147. .rightCardBox>div:nth-child(1) {
  14148. margin-bottom: 10px;
  14149. }
  14150. .cardCss {
  14151. display: flex;
  14152. flex-direction: column;
  14153. flex-wrap: nowrap;
  14154. align-items: center;
  14155. border-bottom: 3px solid #b4c3d3;
  14156. padding: 0 0 5px 0;
  14157. margin-right: 10px;
  14158. }
  14159. .cardCss>div:nth-child(2) {
  14160. background: #5b7b9d;
  14161. color: #fff;
  14162. width: 20px;
  14163. height: 20px;
  14164. border-radius: 50%;
  14165. text-align: center;
  14166. line-height: 20px;
  14167. }
  14168. .isWrong {
  14169. display: flex;
  14170. flex-direction: row;
  14171. flex-wrap: nowrap;
  14172. align-content: center;
  14173. align-items: center;
  14174. }
  14175. .answerRight {
  14176. width: 25%;
  14177. }
  14178. .isTj {
  14179. display: flex;
  14180. flex-direction: row;
  14181. flex-wrap: nowrap;
  14182. align-items: center;
  14183. }
  14184. .isTj>div:nth-child(2) {
  14185. color: #727070;
  14186. margin-left: 10px;
  14187. }
  14188. .isTjImg {
  14189. width: 30px;
  14190. height: 30px;
  14191. }
  14192. .isTjImg>img {
  14193. width: 100%;
  14194. height: 100%;
  14195. }
  14196. .cardAnswerBox {
  14197. font-size: 18px;
  14198. width: 97%;
  14199. border: 5px;
  14200. padding: 0;
  14201. border-radius: 5px;
  14202. margin: 10px auto;
  14203. word-break: break-word;
  14204. }
  14205. .w_name {
  14206. margin-bottom: 10px;
  14207. }
  14208. .w_name span {
  14209. font-size: 16px;
  14210. }
  14211. .w_teachert {
  14212. width: 50px !important;
  14213. position: absolute;
  14214. height: auto !important;
  14215. z-index: 10;
  14216. right: 25px;
  14217. top: -25px;
  14218. }
  14219. .group_workBox {}
  14220. .group_workBox+.group_workBox {
  14221. margin-top: 20px;
  14222. }
  14223. .group_box {
  14224. padding-bottom: 20px;
  14225. border-bottom: 2px solid #f0f0f0;
  14226. }
  14227. .group_title {
  14228. display: flex;
  14229. align-items: center;
  14230. justify-content: space-between;
  14231. }
  14232. .group_name {
  14233. background-image: url(../assets/icon/groupN.png);
  14234. width: 220px;
  14235. background-size: 100% 100%;
  14236. height: 67px;
  14237. padding: 0 20px 0 43px;
  14238. box-sizing: border-box;
  14239. line-height: 63px;
  14240. color: #fff;
  14241. overflow: hidden;
  14242. white-space: nowrap;
  14243. text-overflow: ellipsis;
  14244. }
  14245. .group_work {
  14246. width: 100%;
  14247. padding: 0 10px;
  14248. box-sizing: border-box;
  14249. display: flex;
  14250. flex-wrap: wrap;
  14251. }
  14252. .g_d_box {
  14253. display: flex;
  14254. flex-flow: wrap;
  14255. justify-content: space-around;
  14256. }
  14257. .g_d_box .isChair {
  14258. background-image: url(../assets/avatar.png) !important;
  14259. }
  14260. .g_d_group {
  14261. width: 500px;
  14262. margin-bottom: 80px;
  14263. }
  14264. .g_d_group_chair {
  14265. display: flex;
  14266. align-items: center;
  14267. justify-content: center;
  14268. }
  14269. .g_d_group_chair>div+div {
  14270. margin-left: 30px;
  14271. }
  14272. .g_d_group_chair>div,
  14273. .g_d_group_chair2>div {
  14274. display: flex;
  14275. flex-direction: column;
  14276. align-items: center;
  14277. }
  14278. .g_d_group_chair>div>span:nth-child(1),
  14279. .g_d_group_chair2>div>span:nth-child(1) {
  14280. background-image: url(../assets/icon/chair.png);
  14281. width: 50px;
  14282. height: 50px;
  14283. display: block;
  14284. background-size: 100% 100%;
  14285. }
  14286. .g_d_group_tableBox {
  14287. display: flex;
  14288. align-items: center;
  14289. justify-content: center;
  14290. }
  14291. .g_d_group_chair2 {
  14292. display: flex;
  14293. flex-direction: column;
  14294. align-items: center;
  14295. justify-content: center;
  14296. }
  14297. .g_d_group_chair2>div+div {
  14298. margin-top: 10px;
  14299. }
  14300. .g_d_group_table {
  14301. background-image: url(../assets/icon/groupBg.png);
  14302. width: 354px;
  14303. height: 196px;
  14304. background-size: 100% 100%;
  14305. display: flex;
  14306. align-items: center;
  14307. justify-content: center;
  14308. flex-direction: column;
  14309. color: #fff;
  14310. }
  14311. .g_d_group_table>div:nth-child(1) {
  14312. font-size: 24px;
  14313. margin-bottom: 5px;
  14314. }
  14315. .g_d_group_table>div:nth-child(2) div {
  14316. cursor: pointer;
  14317. background: #2e77bf;
  14318. padding: 4px 10px;
  14319. border-radius: 5px;
  14320. }
  14321. .groupBox {}
  14322. .groupContent+.groupContent {
  14323. margin-top: 30px;
  14324. }
  14325. .groupTitle {
  14326. font-size: 24px;
  14327. color: rgb(80, 80, 80);
  14328. margin-bottom: 20px;
  14329. }
  14330. .groupName {
  14331. display: flex;
  14332. align-items: center;
  14333. }
  14334. .groupn {
  14335. font-size: 15px;
  14336. margin-right: 10px;
  14337. }
  14338. .groupName+.groupName {
  14339. margin-top: 15px;
  14340. }
  14341. .groupBtn {
  14342. margin-left: 10px;
  14343. }
  14344. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  14345. text-align: left;
  14346. }
  14347. .g_d_btnBox {
  14348. display: flex;
  14349. justify-content: flex-end;
  14350. align-items: flex-end;
  14351. margin-bottom: 20px;
  14352. }
  14353. .updateChair {
  14354. position: relative;
  14355. }
  14356. .updateChairBtn {
  14357. position: absolute;
  14358. width: 50px;
  14359. height: 50px;
  14360. overflow: hidden;
  14361. /* display: flex; */
  14362. align-items: center;
  14363. justify-content: center;
  14364. background: #00000087;
  14365. color: #fff;
  14366. border-radius: 50px;
  14367. display: none;
  14368. cursor: pointer;
  14369. }
  14370. .updateChair:hover .updateChairBtn {
  14371. display: flex;
  14372. }
  14373. .group_staic_box {
  14374. display: flex;
  14375. padding: 30px 40px 10px;
  14376. flex-wrap: wrap;
  14377. }
  14378. .group_staic {
  14379. /* width: 50%; */
  14380. margin-bottom: 20px;
  14381. display: flex;
  14382. align-items: center;
  14383. }
  14384. .group_staic span:nth-child(1) {
  14385. width: 150px;
  14386. text-align: right;
  14387. margin-right: 15px;
  14388. }
  14389. .group_staic span:nth-child(2) {
  14390. background: rgb(0 123 255);
  14391. color: #fff;
  14392. border-radius: 5px;
  14393. padding: 5px;
  14394. }
  14395. .codeFileBox {
  14396. height: 300px;
  14397. background: #fff;
  14398. display: flex;
  14399. align-items: center;
  14400. justify-content: center;
  14401. }
  14402. .codeFileBox img {
  14403. width: 200px;
  14404. margin: 0;
  14405. height: auto;
  14406. }
  14407. .codeFileBox div {
  14408. background: rgb(80, 142, 226);
  14409. color: #fff;
  14410. padding: 10px 20px;
  14411. border-radius: 25px;
  14412. cursor: pointer;
  14413. margin-left: 15px;
  14414. }
  14415. .radioBox {
  14416. display: flex;
  14417. flex-direction: row;
  14418. flex-wrap: nowrap;
  14419. align-items: center;
  14420. }
  14421. .radioBox>div {
  14422. margin: 10px 0 0 10px;
  14423. }
  14424. /* .radioBox >>> .el-radio__input,
  14425. .radioBox >>> .el-checkbox__inner {
  14426. margin-left: 10px;
  14427. } */
  14428. .radioBox>>>.el-radio__label,
  14429. .radioBox>>>.el-checkbox__label {
  14430. display: flex;
  14431. align-items: center;
  14432. }
  14433. .inImg {
  14434. width: 100px;
  14435. cursor: pointer;
  14436. }
  14437. .inImg>img {
  14438. width: 100%;
  14439. height: 100%;
  14440. object-fit: cover;
  14441. }
  14442. .timuImgBox {
  14443. margin: 10px 0;
  14444. display: flex;
  14445. flex-direction: column;
  14446. flex-wrap: wrap;
  14447. align-items: flex-start;
  14448. }
  14449. .timuImg {
  14450. width: auto;
  14451. margin: 5px 0;
  14452. cursor: pointer;
  14453. }
  14454. .timuImg>img {
  14455. width: 100%;
  14456. height: 100%;
  14457. object-fit: cover;
  14458. }
  14459. .worksTop {
  14460. display: flex;
  14461. flex-direction: row;
  14462. align-items: flex-end;
  14463. }
  14464. .corOpen {
  14465. margin: 0 0 0 10px;
  14466. font-size: 14px;
  14467. cursor: pointer;
  14468. color: #505050;
  14469. }
  14470. .corOpen:hover {
  14471. color: #499eef;
  14472. }
  14473. .navCorOpenBox {
  14474. display: flex;
  14475. flex-direction: row;
  14476. align-items: center;
  14477. background: #1e5cc9;
  14478. justify-content: space-between;
  14479. }
  14480. .navCorOpen {
  14481. padding-right: 15px;
  14482. cursor: pointer;
  14483. width: 20px;
  14484. display: flex;
  14485. }
  14486. .navCorOpen>img {
  14487. width: 100%;
  14488. height: 100%;
  14489. }
  14490. .mlImg {
  14491. width: 25px !important;
  14492. cursor: pointer;
  14493. margin-top: 5px;
  14494. }
  14495. .mlImg>img {
  14496. width: 100%;
  14497. height: 100%;
  14498. }
  14499. .navLeftCss {
  14500. width: 100% !important;
  14501. left: 0 !important;
  14502. }
  14503. .isContentCss {
  14504. width: 100% !important;
  14505. }
  14506. .isAllWidth {
  14507. width: 100% !important;
  14508. }
  14509. .group_switch{
  14510. margin-right: 10px;
  14511. height: 30px;
  14512. display: flex;
  14513. align-items: center;
  14514. }
  14515. .group_switch>span{
  14516. margin-right: 5px;
  14517. }
  14518. </style>