studyStudent.vue 532 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286
  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>
  20. <span>随机码:{{ inviteCode }}</span>
  21. </div>
  22. </div>
  23. </div>
  24. <el-tooltip effect="light" content="收缩" placement="top">
  25. <div class="mlImg" @click="setContent2(false)">
  26. <img src="../assets/mlBtn.png" alt="" />
  27. </div>
  28. </el-tooltip>
  29. </div>
  30. <div class="ml">目录</div>
  31. <div class="cru_selectBox">
  32. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  33. <div class="blue_box_one" @click="get(stageIndex)">
  34. <div>第{{ stageIndex + 1 }}阶段</div>
  35. <div>{{ item.dyName }}</div>
  36. </div>
  37. <div class="twoChild" :class="{ navActive: item.isOpen }">
  38. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  39. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  40. openTaskActive:
  41. navIndex == taskCount &&
  42. nav.id == navId &&
  43. stageIndex == courseType,
  44. }">
  45. <div class="vedioNav" :class="{
  46. isClick:
  47. navIndex == taskCount &&
  48. nav.id == navId &&
  49. stageIndex == courseType,
  50. }" style="margin: 0">
  51. 任务{{ navIndex + 1 }}
  52. </div>
  53. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  54. <div :style="{
  55. width:
  56. IsLookOpen && !nav.isLook
  57. ? 'calc(100% - 75px)'
  58. : 'auto',
  59. }">
  60. {{ nav.taskName }}
  61. </div>
  62. </el-tooltip>
  63. <img src="../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  71. <div class="new_top" style="
  72. position: fixed;
  73. top: 0;
  74. left: 20.7%;
  75. width: 80%;
  76. z-index: 999;
  77. box-shadow: 0px 9px 0 0 #f2f2f2;
  78. " :class="{ navLeftCss: !mlDialog }">
  79. <div class="courseIndex">
  80. <div>第{{ courseType - 0 + 1 }}阶段</div>
  81. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  82. <div>{{ chapInfoList[courseType].dyName }}</div>
  83. </el-tooltip>
  84. <div>任务{{ taskCount + 1 }}</div>
  85. </div>
  86. <div class="btnAll">
  87. <div class="returnBtn" @click="nextOrpreSteps(0)" v-if="!(IsFollow && tType == 2)">
  88. 上一步
  89. </div>
  90. <div class="returnBtn" @click="nextOrpreSteps(1)" v-if="!(IsFollow && tType == 2)">
  91. 下一步
  92. </div>
  93. <!-- <div
  94. class="returnBtn"
  95. @click="allScrell"
  96. v-if="!(IsFollow && tType == 2)"
  97. >
  98. 全屏
  99. </div> -->
  100. <div class="returnBtn" @click="refreshCourse">刷新</div>
  101. <div class="returnBtn" @click="setPz" v-if="tType == 1">评论</div>
  102. <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  103. 录制
  104. </div>
  105. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  106. style="background: #ee5255">
  107. 下载
  108. </div>
  109. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  110. 权限
  111. </div>
  112. <div class="returnBtn" style="background: #225bc7" @click.stop="
  113. goTo(
  114. '/courseDetail?userid=' +
  115. userid +
  116. '&oid=' +
  117. oid +
  118. '&org=' +
  119. org +
  120. '&cid=' +
  121. classId +
  122. '&courseId=' +
  123. id +
  124. '&tType=' +
  125. tType +
  126. '&screenType=' +
  127. screenType
  128. )
  129. ">
  130. 返回
  131. </div>
  132. </div>
  133. </div>
  134. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  135. .taskJson"
  136. :key="index"-->
  137. <div class="isNoMessage" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  138. .chapterData.length == 0 &&
  139. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  140. .toolChoose[0].tool.length == 0 &&
  141. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  142. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  143. .taskDetail == '' &&
  144. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  145. ">
  146. <img src="../assets/icon/isNoMessage.png" alt />
  147. </div>
  148. <div class="study_top" :class="{ pzClass: pzDialog }">
  149. <div class="vedioBox" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  150. .taskDetail != '' ||
  151. vChapterData[taskCount].length > 0
  152. ">
  153. <div class="checkbox">
  154. <div class="check" style="font-size: 25px" :id="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  155. ">
  156. <!-- {{ taskCount + 1 }}
  157. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
  158. 学一学
  159. </div>
  160. </div>
  161. <div class="student_head" v-if="vChapterData[taskCount].length > 0 ||
  162. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  163. .taskDetail != ''
  164. ">
  165. <div class="taskBox">
  166. <div style="
  167. display: flex;
  168. flex-wrap: nowrap;
  169. flex-direction: column;
  170. position: relative;
  171. ">
  172. <div style="
  173. padding: 15px 0 15px 20px;
  174. line-height: 29px;
  175. font-size: 18px;
  176. " class="cont" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
  177. taskCount
  178. ].taskDetail != ''
  179. " v-html="chapInfoList[courseType].chapterInfo[0].taskJson[
  180. taskCount
  181. ].taskDetail
  182. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  183. taskCount
  184. ].taskDetail
  185. : '暂无描述'
  186. "></div>
  187. </div>
  188. </div>
  189. <div class="vedioTaskBox">
  190. <div :class="contentDialog == false
  191. ? 'box_course isContentCss'
  192. : 'box_course'
  193. " v-if="vChapterData.length > 0 && vChapterData[taskCount] && showType !== ''">
  194. <div class="wheel" style="height: auto;" v-if="showType === 0
  195. ">
  196. <div class="workd_media" style="height: 650px; width: calc(100% - 50px)">
  197. <video-player class="video-player vjs-custom-skin"
  198. :class="contentDialog == false ? 'isAllWidth' : ''" :playsinline="true"
  199. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  200. style="width: 100%; height: 100%; margin: 0 0 0 30px"></video-player>
  201. </div>
  202. </div>
  203. <div class="wheel" v-if="showType == 1" style="
  204. box-shadow: 0 0 6px 1px #f2f2f2;
  205. width: 95%;
  206. margin: 0 auto;
  207. background: #f1f1f1;
  208. ">
  209. <div class="title">查看文档</div>
  210. <el-form class="textBox">
  211. <el-form-item class="textTitle">
  212. <div style="font-size: 22px">
  213. {{ text.name }}
  214. </div>
  215. </el-form-item>
  216. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  217. <div v-html="text.url" class="textContent cont"></div>
  218. </el-form>
  219. </div>
  220. <div class="wheel"
  221. v-if="pptImgUrl1.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && showType == 2"
  222. style="width: 95%; margin: 0 auto">
  223. <iframe style="width: 100%; height: 100%; border: none" :src="pptImgUrl1"></iframe>
  224. </div>
  225. <div class="wheel" v-else-if="showType == 2" style="width: 95%; margin: 0 auto">
  226. <iframe style="width: 100%; height: 100%; border: none" security="restricted"
  227. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  228. :src="pptImgUrl1"></iframe>
  229. </div>
  230. <div class="wheel" v-if="showType == 3" style="width: 95%; margin: 0 auto">
  231. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  232. </div>
  233. <div class="wheel" v-if="showType == 4" style="width: 95%; margin: 0 auto">
  234. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  235. </div>
  236. </div>
  237. <div class="pButton" style="
  238. position: absolute;
  239. right: 20px;
  240. top: 0;
  241. background: #205cc6;
  242. z-index: 998;
  243. opacity: .8;
  244. " v-if="!contentDialog" @click="setContent(true)">
  245. <!-- 批 -->
  246. <img src="../assets/navBtn2.png" style="width: 25px" alt="" />
  247. </div>
  248. <div v-if="contentDialog == true" :style="{
  249. width: (vChapterData[taskCount].length > 0 && showType === '') ? 'calc(100%)' : 'calc(100% - 83%)', margin: (vChapterData[taskCount].length > 0 && showType === '') ? '0 15px' : '0 15px 0 0'
  250. }">
  251. <div class="vedioList" v-if="vChapterData[taskCount].length > 0" style="height: 650px">
  252. <div class="navCorOpenBox">
  253. <div class="navTitile">内容列表:</div>
  254. <div class="navCorOpen" @click="setContent(false)">
  255. <img src="../assets/navBtn2.png" alt="" />
  256. </div>
  257. </div>
  258. <div class="navBox">
  259. <div v-show="vChapterData[taskCount].length > 0
  260. ">
  261. <div class="vedioTimeBox" v-for="(vitem, vindex) in vChapterData[taskCount]" :key="vindex + '1'">
  262. <div @click="lookVedio(vitem.url, vindex)" v-if="vitem.type == 2" class="vedioName" :class="isClickNav == vindex
  263. ? 'isClickNav'
  264. : ''
  265. ">
  266. <span v-if="vitem.text">{{ vitem.text }}-</span>{{ vitem.name }}
  267. </div>
  268. <div style="width: calc(100% - 0px)" @click="lookText(taskCount, vindex)"
  269. v-if="vitem.type == 6">
  270. <div class="navText" :class="isClickNav == vindex
  271. ? 'isClickNav'
  272. : ''
  273. ">
  274. {{
  275. vitem.name
  276. }}.doc
  277. </div>
  278. </div>
  279. <div style="width: calc(100% - 0px)" @click="doUrl(vitem.url, vindex)" v-if="vitem.type == 8">
  280. <div class="navText" :class="isClickNav == vindex
  281. ? 'isClickNav'
  282. : ''
  283. ">
  284. {{ vitem.title ? vitem.title : vitem.url }}
  285. </div>
  286. </div>
  287. <div style="width: calc(100% - 0px)" @click="downFile(vitem, vindex)" v-if="vitem.type == 3">
  288. <div class="navText" :class="isClickNav == vindex
  289. ? 'isClickNav'
  290. : ''
  291. ">
  292. <span v-if="vitem.text">{{ vitem.text }}-</span>{{ vitem.name }}
  293. </div>
  294. </div>
  295. <div style="width: calc(100% - 0px)" @click="downloadFile2(vitem)" v-if="vitem.type == 12">
  296. <div class="navText">
  297. <span v-if="vitem.text">{{ vitem.text }}-</span>{{ vitem.name }}
  298. </div>
  299. </div>
  300. </div>
  301. </div>
  302. </div>
  303. </div>
  304. </div>
  305. </div>
  306. <div style="width: 81%">
  307. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 2 || showType == 3">
  308. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  309. <el-button type="primary" @click="downloadFile(pptImgUrl1)" v-if="showType != 2">文件下载</el-button>
  310. <el-button
  311. v-if="showType == 2 && pptImgUrl1.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') == -1"
  312. type="primary" @click="openLine(pptImgUrl1)">打开链接
  313. </el-button>
  314. </div>
  315. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 1">
  316. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. <div class="student_body" v-resize="resize">
  322. <!-- <div
  323. class="vedioBox"
  324. v-if="
  325. file.length && file[taskCount] && file[taskCount].length > 0
  326. "
  327. >
  328. <div class="queTop">
  329. <div class="question" style="width: 30px; margin-top: 5px">
  330. <img src="../assets/icon/fileIcon.png" alt />
  331. </div>
  332. <div class="queTitle">
  333. <div>附件</div>
  334. </div>
  335. </div>
  336. <div class="filebox" style="width: 100%">
  337. <div
  338. class="file"
  339. v-for="(f, fileIndex) in file[taskCount]"
  340. :key="fileIndex"
  341. @click="downFile(f, fileIndex)"
  342. >
  343. <img :src="require('../assets/file.png')" alt />
  344. <div>{{ f.name }}</div>
  345. </div>
  346. </div>
  347. <div class="upFile" v-if="type == 3">提交</div>
  348. </div>-->
  349. <div class="vedioBox" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  350. .toolChoose[0].tool &&
  351. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  352. .toolChoose[0].tool.length &&
  353. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  354. .toolChoose[0].tool.length > 0
  355. ">
  356. <div class="queTop" style="
  357. font-size: 25px;
  358. padding: 15px 0 15px 30px;
  359. font-weight: bold;
  360. ">
  361. <!-- <div class="question" style="width: 30px">
  362. <img src="../assets/icon/toolIcon.png" alt />
  363. </div>
  364. <div class="queTitle">
  365. <div>工具</div>
  366. </div>-->
  367. 练一练
  368. </div>
  369. <div class="toolHeng2" style="position: relative">
  370. <div class="filebox" style="flex-wrap: nowrap; margin: 0 20px" v-for="(tool, toolIndex) in chapInfoList[courseType]
  371. .chapterInfo[0].taskJson[taskCount].toolChoose" :key="toolIndex">
  372. <div class="bzBox">
  373. <div></div>
  374. <div>步骤{{ toolIndex + 1 }}</div>
  375. </div>
  376. <div class="toolBox">
  377. <div>
  378. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  379. :key="indexTool"-->
  380. <!-- <div class="iframeBox">
  381. <div
  382. class="addPoint isBorder"
  383. v-for="(tooC, toolCIndex) in tool.tool"
  384. :key="toolCIndex"
  385. >
  386. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  387. <div
  388. class="iframeName"
  389. >
  390. 电子白板
  391. </div>
  392. <iframe
  393. src="https://iwb.cocorobo.cn/"
  394. ref="whiteBoard"
  395. ></iframe>
  396. </div>
  397. </div>
  398. </div>-->
  399. <div class="noiframeBox">
  400. <div class="addPoint" v-for="(tooC, toolCIndex) in tool.tool" :key="toolCIndex">
  401. <div v-if="tooC == 1">
  402. <img src="../assets/icon/secondToolList/whiteBoard.png" alt
  403. @click="addTools(tooC, toolIndex, taskCount)" />
  404. <div style="margin: 5px 0">电子白板</div>
  405. </div>
  406. <div v-if="tooC == 3">
  407. <img src="../assets/icon/secondToolList/mindMapping.png" alt
  408. @click="addTools(tooC, toolIndex, taskCount)" />
  409. <div style="margin: 5px 0">思维导图</div>
  410. </div>
  411. <div v-if="tooC == 6">
  412. <img src="../assets/icon/secondToolList/doc.png" alt
  413. @click="addTools(tooC, toolIndex, taskCount)" />
  414. <div style="margin: 5px 0">协同文档</div>
  415. </div>
  416. <div v-if="tooC == 7">
  417. <img src="../assets/icon/secondToolList/mindNetwork.png" alt
  418. @click="addTools(tooC, toolIndex, taskCount)" />
  419. <div style="margin: 5px 0">思维网格</div>
  420. </div>
  421. <div v-if="tooC == 8">
  422. <img src="../assets/icon/secondToolList/library.png" alt
  423. @click="addTools(tooC, toolIndex, taskCount)" />
  424. <div style="margin: 5px 0">素材库</div>
  425. </div>
  426. <div v-if="tooC == 17">
  427. <img src="../assets/icon/secondToolList/library.png" alt
  428. @click="addTools(tooC, toolIndex, taskCount)" />
  429. <div style="margin: 5px 0">学习资料</div>
  430. </div>
  431. <div v-if="tooC == 2">
  432. <img @click="addTools(tooC, toolIndex, taskCount)"
  433. src="../assets/icon/secondToolList/note.png" alt />
  434. <div style="margin: 5px 0">便签</div>
  435. </div>
  436. <div v-if="tooC == 4">
  437. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/thirdToolList/ask.png"
  438. alt />
  439. <div style="margin: 5px 0">问卷调查</div>
  440. </div>
  441. <div v-if="tooC == 45">
  442. <img @click="addTools(tooC, toolIndex, taskCount)"
  443. src="../assets/icon/thirdToolList/choose.png" alt />
  444. <div style="margin: 5px 0">选择题</div>
  445. </div>
  446. <!-- <div v-if="tooC == 5">
  447. <img
  448. @click="addTools(tooC, toolIndex, taskCount)"
  449. src="../assets/icon/thirdToolList/score.png"
  450. alt
  451. />
  452. <div style="margin: 5px 0">量规评分</div>
  453. </div> -->
  454. <div v-if="tooC == 10">
  455. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/thirdToolList/time.png"
  456. alt />
  457. <div style="margin: 5px 0">倒计时</div>
  458. </div>
  459. <div v-if="tooC == 15">
  460. <img @click="addTools(tooC, toolIndex, taskCount)"
  461. src="../assets/icon/thirdToolList/answer.png" alt />
  462. <div style="margin: 5px 0">问答工具</div>
  463. </div>
  464. <div v-if="tooC == 26">
  465. <img @click="addTools(tooC, toolIndex, taskCount)"
  466. src="../assets/icon/thirdToolList/courseDesign.png" alt />
  467. <div style="margin: 5px 0">课程设计</div>
  468. </div>
  469. <div v-if="tooC == 18">
  470. <img @click="addTools(tooC, toolIndex, taskCount)"
  471. src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  472. <div style="margin: 5px 0">训练服务器</div>
  473. </div>
  474. <div v-if="tooC == 16">
  475. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/thirdToolList/work.png"
  476. alt />
  477. <div style="margin: 5px 0">作业提交</div>
  478. </div>
  479. <div v-if="tooC == 50">
  480. <img @click="addTools(tooC, toolIndex, taskCount)"
  481. src="../assets/icon/thirdToolList/plwork.png" alt />
  482. <div style="margin: 5px 0">批量上传</div>
  483. </div>
  484. <div v-if="tooC == 21">
  485. <img @click="addTools(tooC, toolIndex, taskCount)"
  486. src="../assets/icon/fourthToolList/program.png" alt />
  487. <div style="margin: 5px 0">编程平台</div>
  488. </div>
  489. <div v-if="tooC == 22">
  490. <img @click="addTools(tooC, toolIndex, taskCount)"
  491. src="../assets/icon/fourthToolList/program.png" alt />
  492. <div style="margin: 5px 0">AI体验</div>
  493. </div>
  494. <div v-if="tooC == 23">
  495. <img @click="addTools(tooC, toolIndex, taskCount)"
  496. src="../assets/icon/fourthToolList/Pythonprogram.png" alt />
  497. <div style="margin: 5px 0">Python</div>
  498. </div>
  499. <div v-if="tooC == 24">
  500. <img @click="addTools(tooC, toolIndex, taskCount)"
  501. src="../assets/icon/fourthToolList/AIprogram.png" alt />
  502. <div style="margin: 5px 0">AI平台</div>
  503. </div>
  504. <div v-if="tooC == 25">
  505. <img @click="addTools(tooC, toolIndex, taskCount)"
  506. src="../assets/icon/thirdToolList/evalua.png" alt />
  507. <div style="margin: 5px 0">目标管理</div>
  508. </div>
  509. <div v-if="tooC == 31">
  510. <img @click="addTools(tooC, toolIndex, taskCount)"
  511. src="../assets/icon/secondToolList/networkPanel.png" alt />
  512. <div style="margin: 5px 0">数学画板</div>
  513. </div>
  514. <div v-if="tooC == 28">
  515. <img @click="addTools(tooC, toolIndex, taskCount)"
  516. src="../assets/icon/secondToolList/translation.png" alt />
  517. <div style="margin: 5px 0">翻译</div>
  518. </div>
  519. <div v-if="tooC == 37">
  520. <img @click="addTools(tooC, toolIndex, taskCount)"
  521. src="../assets/icon/secondToolList/mohe.png" alt />
  522. <div style="margin: 5px 0">魔盒识字</div>
  523. </div>
  524. <div v-if="tooC == 38">
  525. <img @click="addTools(tooC, toolIndex, taskCount)"
  526. src="../assets/icon/secondToolList/24game.png" alt />
  527. <div style="margin: 5px 0">24点</div>
  528. </div>
  529. <div v-if="tooC == 39">
  530. <img @click="addTools(tooC, toolIndex, taskCount)"
  531. src="../assets/icon/secondToolList/GeoGebra.png" alt />
  532. <div style="margin: 5px 0">GeoGebra</div>
  533. </div>
  534. <div v-if="tooC == 32">
  535. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/thirdToolList/code.png"
  536. alt />
  537. <div style="margin: 5px 0">源码编辑</div>
  538. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  539. style="position: absolute;left: 110px;bottom: 30px;">
  540. 上传文件
  541. <input type="file" accept="*" style="display: none"
  542. @change="beforeUpload1($event, 7, toolIndex)" />
  543. </div> -->
  544. </div>
  545. <div v-if="tooC == 40">
  546. <img @click="addTools(tooC, toolIndex, taskCount)"
  547. src="../assets/icon/secondToolList/eval.png" alt />
  548. <div style="margin: 5px 0">个人评价</div>
  549. </div>
  550. <div v-if="tooC == 41">
  551. <img @click="addTools(tooC, toolIndex, taskCount)"
  552. src="../assets/icon/thirdToolList/select.png" alt />
  553. <div style="margin: 5px 0">选择填空</div>
  554. </div>
  555. <div v-if="tooC == 44">
  556. <img @click="addTools(tooC, toolIndex, taskCount)"
  557. src="../assets/icon/thirdToolList/hanClass.png" alt />
  558. <div style="margin: 5px 0">汉字宫</div>
  559. </div>
  560. <div v-if="tooC == 47">
  561. <img @click="addTools(tooC, toolIndex, taskCount)"
  562. src="../assets/icon/fourthToolList/conSentences.png" alt />
  563. <div style="margin: 5px 0">连词成句</div>
  564. </div>
  565. <div v-if="tooC == 48">
  566. <img @click="addTools(tooC, toolIndex, taskCount)"
  567. src="../assets/icon/fourthToolList/table.png" alt />
  568. <div style="margin: 5px 0">表格</div>
  569. </div>
  570. <div v-if="tooC == 52">
  571. <img @click="addTools(tooC, toolIndex, taskCount)"
  572. src="../assets/icon/fourthToolList/text.png" alt />
  573. <div style="margin: 5px 0">文档</div>
  574. </div>
  575. <div v-if="tooC == 49">
  576. <img @click="addTools(tooC, toolIndex, taskCount)"
  577. src="../assets/icon/fourthToolList/group.png" alt />
  578. <div style="margin: 5px 0">学生分组</div>
  579. </div>
  580. <div v-if="tooC == 57">
  581. <img @click="addTools(tooC, toolIndex, taskCount)"
  582. src="../assets/icon/fourthToolList/cocopi.png" alt />
  583. <div style="margin: 5px 0">CocoPi</div>
  584. </div>
  585. <div v-if="tooC == 58">
  586. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/fourthToolList/car.png"
  587. alt />
  588. <div style="margin: 5px 0">模拟驾驶</div>
  589. </div>
  590. <div v-if="tooC == 59">
  591. <img @click="addTools(tooC, toolIndex, taskCount)"
  592. src="../assets/icon/fourthToolList/lineSearch.png" alt />
  593. <div style="margin: 5px 0">路径搜索</div>
  594. </div>
  595. <div v-if="tooC == 60">
  596. <img @click="addTools(tooC, toolIndex, taskCount)"
  597. src="../assets/icon/fourthToolList/deepLearning.png" alt />
  598. <div style="margin: 5px 0">深度学习</div>
  599. </div>
  600. <div v-if="tooC == 61">
  601. <img @click="addTools(tooC, toolIndex, taskCount)"
  602. src="../assets/icon/fourthToolList/allHistory.png" alt />
  603. <div style="margin: 5px 0">全历史</div>
  604. </div>
  605. <div v-if="tooC == 62">
  606. <img @click="addTools(tooC, toolIndex, taskCount)"
  607. src="../assets/icon/fourthToolList/interVideo.png" alt />
  608. <div style="margin: 5px 0">交互视频</div>
  609. </div>
  610. <div v-if="tooC == 63">
  611. <img @click="addTools(tooC, toolIndex, taskCount)"
  612. src="../assets/icon/fourthToolList/Wood.png" alt />
  613. <div style="margin: 5px 0">海龟编程</div>
  614. </div>
  615. </div>
  616. </div>
  617. </div>
  618. <div class="tooldetail" v-if="tool.toolDetail != ''">
  619. <!-- <div class="toolTitle">工具描述</div> -->
  620. <div v-html="contentConvent(tool.toolDetail)"></div>
  621. </div>
  622. <el-button type="primary" v-if="tool.tool[0] == 32" style="
  623. position: absolute;
  624. right: 30px;
  625. transform: translateY(-130%);
  626. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  627. @change="beforeUpload1($event, 7, toolIndex)" /></el-button>
  628. <el-button type="primary" v-if="tool.tool[0] == 57" style="
  629. position: absolute;
  630. right: 30px;
  631. transform: translateY(-130%);
  632. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  633. @change="beforeUpload1($event, 8, toolIndex)" /></el-button>
  634. </div>
  635. <div v-if="tType &&
  636. tType == 2 &&
  637. !sIsOpen &&
  638. tool.tool.indexOf(16) != -1
  639. " class="worksBox">
  640. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  641. <span>作业预览</span>
  642. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  643. </div>
  644. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  645. <div class="works" style="
  646. width: 200px;
  647. height: 140px;
  648. margin: 10px 10px 10px 0;
  649. box-shadow: 0 0 6px 1px #dfdada;
  650. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  651. <div class="workImg" v-if="w.type == 0">
  652. <img :src="w.works" @click="previewImg(w.works)" alt />
  653. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  654. rightW:
  655. w.userid == userid || tType == 1 || tType == 4,
  656. }">
  657. {{ JSON.parse(w.score).wScore }}分
  658. </div>
  659. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  660. :class="{
  661. rightW:
  662. w.userid == userid || tType == 1 || tType == 4,
  663. }">
  664. 评分
  665. </div>
  666. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  667. " @click.stop="deleteWorks(w.wid)" alt />
  668. </div>
  669. <div class="workImg" v-if="w.type == 1">
  670. <img :src="word" @click="openFile(w.works)" alt />
  671. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  672. rightW:
  673. w.userid == userid || tType == 1 || tType == 4,
  674. }">
  675. {{ JSON.parse(w.score).wScore }}分
  676. </div>
  677. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  678. :class="{
  679. rightW:
  680. w.userid == userid || tType == 1 || tType == 4,
  681. }">
  682. 评分
  683. </div>
  684. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  685. " @click.stop="deleteWorks(w.wid)" alt />
  686. </div>
  687. <div class="workImg" v-if="w.type == 3">
  688. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  689. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  690. rightW:
  691. w.userid == userid || tType == 1 || tType == 4,
  692. }">
  693. {{ JSON.parse(w.score).wScore }}分
  694. </div>
  695. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  696. :class="{
  697. rightW:
  698. w.userid == userid || tType == 1 || tType == 4,
  699. }">
  700. 评分
  701. </div>
  702. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  703. " @click.stop="deleteWorks(w.wid)" alt />
  704. </div>
  705. <div class="workImg" v-if="w.type == 12">
  706. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  707. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  708. rightW:
  709. w.userid == userid || tType == 1 || tType == 4,
  710. }">
  711. {{ JSON.parse(w.score).wScore }}分
  712. </div>
  713. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  714. :class="{
  715. rightW:
  716. w.userid == userid || tType == 1 || tType == 4,
  717. }">
  718. 评分
  719. </div>
  720. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  721. " @click.stop="deleteWorks(w.wid)" alt />
  722. </div>
  723. <div class="worksName">
  724. <div>{{ w.sName }}</div>
  725. </div>
  726. </div>
  727. </div>
  728. </div>
  729. <div v-if="tType &&
  730. tType == 2 &&
  731. !sIsOpen &&
  732. tool.tool.indexOf(32) != -1
  733. " class="worksBox">
  734. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  735. <span>作业预览</span>
  736. </div>
  737. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  738. <div class="works" style="
  739. width: 200px;
  740. height: 140px;
  741. margin: 10px 10px 10px 0;
  742. box-shadow: 0 0 6px 1px #dfdada;
  743. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  744. <div class="workImg">
  745. <img :src="word2" @click="downloadFile(w.works)" alt />
  746. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  747. rightW:
  748. w.userid == userid || tType == 1 || tType == 4,
  749. }">
  750. {{ JSON.parse(w.score).wScore }}分
  751. </div>
  752. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  753. :class="{
  754. rightW:
  755. w.userid == userid || tType == 1 || tType == 4,
  756. }">
  757. 评分
  758. </div>
  759. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  760. " @click.stop="deleteWorks(w.wid)" alt />
  761. </div>
  762. <div class="worksName">
  763. <div>{{ w.sName }}</div>
  764. </div>
  765. </div>
  766. </div>
  767. </div>
  768. <div v-if="tType &&
  769. tType == 2 &&
  770. !sIsOpen &&
  771. tool.tool.indexOf(57) != -1
  772. " class="worksBox">
  773. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  774. <span>作业预览</span>
  775. </div>
  776. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  777. <div class="works" style="
  778. width: 200px;
  779. height: 140px;
  780. margin: 10px 10px 10px 0;
  781. box-shadow: 0 0 6px 1px #dfdada;
  782. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  783. <div class="workImg">
  784. <img :src="word2" @click="downloadFile(w.works)" alt />
  785. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  786. rightW:
  787. w.userid == userid || tType == 1 || tType == 4,
  788. }">
  789. {{ JSON.parse(w.score).wScore }}分
  790. </div>
  791. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  792. :class="{
  793. rightW:
  794. w.userid == userid || tType == 1 || tType == 4,
  795. }">
  796. 评分
  797. </div>
  798. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  799. " @click.stop="deleteWorks(w.wid)" alt />
  800. </div>
  801. <div class="worksName">
  802. <div>{{ w.sName }}</div>
  803. </div>
  804. </div>
  805. </div>
  806. </div>
  807. <div v-if="tType &&
  808. tType == 2 &&
  809. !sIsOpen &&
  810. tool.tool.indexOf(4) != -1
  811. " class="worksBox">
  812. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  813. <span>作业预览</span>
  814. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  815. </div>
  816. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  817. <div class="isWorksName" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex" @click="
  818. openTools(4, toolIndex, taskCount, w.works, w.sName)
  819. ">
  820. {{ w.sName }}
  821. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  822. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  823. </div>
  824. <!-- <div
  825. class="works"
  826. style="
  827. width: 200px;
  828. height: 140px;
  829. border-radius: 10px;
  830. box-shadow: 0 0 6px 1px #dfdada;
  831. overflow: hidden;
  832. "
  833. v-for="(w, wIndex) in workStudent[toolIndex]"
  834. :key="wIndex"
  835. >
  836. <div class="workImg">
  837. <img
  838. src="../assets/icon/works/noImg.png"
  839. @click="
  840. openTools(
  841. 4,
  842. toolIndex,
  843. taskCount,
  844. w.works,
  845. w.sName
  846. )
  847. "
  848. alt
  849. />
  850. </div>
  851. <div class="worksName">
  852. <div>{{ w.sName }}</div>
  853. <div>{{ w.time }}</div>
  854. </div>
  855. </div> -->
  856. </div>
  857. </div>
  858. <div v-if="tType &&
  859. tType == 2 &&
  860. !sIsOpen &&
  861. tool.tool.indexOf(45) != -1
  862. " class="worksBox">
  863. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  864. <span>作业预览</span>
  865. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  866. </div>
  867. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  868. <div class="isWorksName" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex" @click="
  869. openTools(45, toolIndex, taskCount, w.works, w.sName)
  870. ">
  871. {{ w.sName }}
  872. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  873. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  874. </div>
  875. </div>
  876. </div>
  877. <div v-if="tType &&
  878. tType == 2 &&
  879. !sIsOpen &&
  880. tool.tool.indexOf(15) != -1
  881. " class="worksBox">
  882. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  883. <span>作业预览</span>
  884. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  885. </div>
  886. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  887. <div class="works" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  888. <div class="workImg">
  889. <!-- <img
  890. src="../assets/icon/works/noImg.png"
  891. @click="openTools(15, toolIndex, taskCount, w.works)"
  892. alt=""
  893. />-->
  894. <div class="answerBg">
  895. <!-- <div>{{ w.sName }}</div> -->
  896. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  897. placement="top">
  898. <div class="answerContent">
  899. {{ JSON.parse(w.works)[0].answer }}
  900. </div>
  901. </el-tooltip>
  902. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  903. rightW:
  904. w.userid == userid ||
  905. tType == 1 ||
  906. tType == 4,
  907. }">
  908. {{ JSON.parse(w.score).wScore }}分
  909. </div>
  910. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  911. :class="{
  912. rightW:
  913. w.userid == userid ||
  914. tType == 1 ||
  915. tType == 4,
  916. }">
  917. 评分
  918. </div>
  919. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  920. " @click.stop="deleteWorks(w.wid)" alt />
  921. </div>
  922. <div class="comment">
  923. <div class="worksName">
  924. <div>{{ w.sName }}</div>
  925. </div>
  926. </div>
  927. </div>
  928. </div>
  929. </div>
  930. </div>
  931. <div v-if="tType &&
  932. tType == 2 &&
  933. !sIsOpen &&
  934. tool.tool.indexOf(1) != -1
  935. " class="worksBox">
  936. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  937. <span>作业预览</span>
  938. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  939. </div>
  940. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  941. <div class="works" style="
  942. width: 200px;
  943. height: 140px;
  944. margin: 10px 10px 10px 0;
  945. box-shadow: 0 0 6px 1px #dfdada;
  946. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  947. <div class="workImg">
  948. <img :src="w.works" @click="previewImg(w.works)" alt />
  949. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  950. rightW:
  951. w.userid == userid || tType == 1 || tType == 4,
  952. }">
  953. {{ JSON.parse(w.score).wScore }}分
  954. </div>
  955. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  956. :class="{
  957. rightW:
  958. w.userid == userid || tType == 1 || tType == 4,
  959. }">
  960. 评分
  961. </div>
  962. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  963. " @click.stop="deleteWorks(w.wid)" alt />
  964. </div>
  965. <div class="worksName">
  966. <div>{{ w.sName }}</div>
  967. </div>
  968. </div>
  969. </div>
  970. </div>
  971. <div v-if="tType &&
  972. tType == 2 &&
  973. !sIsOpen &&
  974. tool.tool.indexOf(3) != -1
  975. " class="worksBox">
  976. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  977. <span>作业预览</span>
  978. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  979. </div>
  980. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  981. <div class="works" style="
  982. width: 200px;
  983. height: 140px;
  984. margin: 10px 10px 10px 0;
  985. box-shadow: 0 0 6px 1px #dfdada;
  986. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  987. <div class="workImg">
  988. <img :src="w.works" @click="previewImg(w.works)" alt />
  989. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  990. rightW:
  991. w.userid == userid || tType == 1 || tType == 4,
  992. }">
  993. {{ JSON.parse(w.score).wScore }}分
  994. </div>
  995. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  996. :class="{
  997. rightW:
  998. w.userid == userid || tType == 1 || tType == 4,
  999. }">
  1000. 评分
  1001. </div>
  1002. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1003. " @click.stop="deleteWorks(w.wid)" alt />
  1004. </div>
  1005. <div class="worksName">
  1006. <div>{{ w.sName }}</div>
  1007. </div>
  1008. </div>
  1009. </div>
  1010. </div>
  1011. <div v-if="tType &&
  1012. tType == 2 &&
  1013. !sIsOpen &&
  1014. tool.tool.indexOf(6) != -1
  1015. " class="worksBox">
  1016. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1017. <span>作业预览</span>
  1018. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1019. </div>
  1020. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1021. <div class="works" style="
  1022. width: 200px;
  1023. height: 140px;
  1024. margin: 10px 10px 10px 0;
  1025. box-shadow: 0 0 6px 1px #dfdada;
  1026. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1027. <div class="workImg">
  1028. <img :src="w.works" @click="previewImg(w.works)" alt />
  1029. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1030. rightW:
  1031. w.userid == userid || tType == 1 || tType == 4,
  1032. }">
  1033. {{ JSON.parse(w.score).wScore }}分
  1034. </div>
  1035. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1036. :class="{
  1037. rightW:
  1038. w.userid == userid || tType == 1 || tType == 4,
  1039. }">
  1040. 评分
  1041. </div>
  1042. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1043. " @click.stop="deleteWorks(w.wid)" alt />
  1044. </div>
  1045. <div class="worksName">
  1046. <div>{{ w.sName }}</div>
  1047. </div>
  1048. </div>
  1049. </div>
  1050. </div>
  1051. <div v-if="tType &&
  1052. tType == 2 &&
  1053. !sIsOpen &&
  1054. tool.tool.indexOf(7) != -1
  1055. " class="worksBox">
  1056. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1057. <span>作业预览</span>
  1058. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1059. </div>
  1060. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1061. <div class="works" style="
  1062. width: 200px;
  1063. height: 140px;
  1064. margin: 10px 10px 10px 0;
  1065. box-shadow: 0 0 6px 1px #dfdada;
  1066. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1067. <div class="workImg">
  1068. <img :src="w.works" @click="previewImg(w.works)" alt />
  1069. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1070. rightW:
  1071. w.userid == userid || tType == 1 || tType == 4,
  1072. }">
  1073. {{ JSON.parse(w.score).wScore }}分
  1074. </div>
  1075. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1076. :class="{
  1077. rightW:
  1078. w.userid == userid || tType == 1 || tType == 4,
  1079. }">
  1080. 评分
  1081. </div>
  1082. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1083. " @click.stop="deleteWorks(w.wid)" alt />
  1084. </div>
  1085. <div class="worksName">
  1086. <div>{{ w.sName }}</div>
  1087. </div>
  1088. </div>
  1089. </div>
  1090. </div>
  1091. <div v-if="tType &&
  1092. tType == 2 &&
  1093. !sIsOpen &&
  1094. tool.tool.indexOf(26) != -1
  1095. " class="worksBox">
  1096. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1097. <span>作业预览</span>
  1098. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1099. </div>
  1100. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1101. <div class="works" style="
  1102. width: 200px;
  1103. height: 140px;
  1104. margin: 10px 10px 10px 0;
  1105. box-shadow: 0 0 6px 1px #dfdada;
  1106. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1107. <div class="workImg">
  1108. <img :src="w.works" @click="previewImg(w.works)" alt />
  1109. <img class="deleteImg" src="../assets/deleteworks.png" v-if="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="tType &&
  1119. ((tType == 2 && sIsOpen == true) ||
  1120. tType == 1 ||
  1121. tType == 4) &&
  1122. tool.tool.indexOf(16) != -1
  1123. " class="worksBox">
  1124. <div class="zuoyeYulan" v-if="worksStudent.length &&
  1125. worksStudent[toolIndex].length > 0
  1126. ">
  1127. <div class="worksTop">
  1128. <div>作业预览</div>
  1129. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  1130. isCloseList[toolIndex].isClose == 0
  1131. ">
  1132. 收缩
  1133. </div>
  1134. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1135. 展开
  1136. </div>
  1137. </div>
  1138. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1139. </div>
  1140. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  1141. <div class="group_box">
  1142. <div class="group_title">
  1143. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  1144. <div class="group_name">{{ g.name }}</div>
  1145. </el-tooltip>
  1146. </div>
  1147. <div class="group_work" v-if="g.works &&
  1148. g.works.length &&
  1149. g.works[toolIndex].length
  1150. ">
  1151. <div class="works" style="
  1152. width: 200px;
  1153. height: 140px;
  1154. margin: 10px 10px 10px 0;
  1155. border-radius: 15px;
  1156. box-shadow: 0 0 6px 1px #dfdada;
  1157. " v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex"
  1158. :class="w.type == 1 ? 'isTypeOne' : ''">
  1159. <div class="workImg" v-if="w.type == 0">
  1160. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1161. <img :src="w.works" @click="previewImg(w.works)" alt />
  1162. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1163. rightW:
  1164. w.userid == userid ||
  1165. tType == 1 ||
  1166. tType == 4 ||
  1167. w.ateacher == userid,
  1168. }">
  1169. {{ JSON.parse(w.score).wScore }}分
  1170. </div>
  1171. <div class="answerScore" @click.stop="openScore(w)"
  1172. v-else-if="courseDetail.userid == userid" :class="{
  1173. rightW:
  1174. w.userid == userid ||
  1175. tType == 1 ||
  1176. tType == 4 ||
  1177. w.ateacher == userid,
  1178. }">
  1179. 评分
  1180. </div>
  1181. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1182. " @click.stop="deleteWorks(w.wid)" alt />
  1183. </div>
  1184. <div class="workImg" v-if="w.type == 1">
  1185. <img :src="word" @click="openFile(w.works)" alt />
  1186. <!-- @click="openFile(w.works)" -->
  1187. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1188. rightW:
  1189. w.userid == userid ||
  1190. tType == 1 ||
  1191. tType == 4 ||
  1192. w.ateacher == userid,
  1193. }">
  1194. {{ JSON.parse(w.score).wScore }}分
  1195. </div>
  1196. <div class="answerScore" @click.stop="openScore(w)"
  1197. v-else-if="courseDetail.userid == userid" :class="{
  1198. rightW:
  1199. w.userid == userid ||
  1200. tType == 1 ||
  1201. tType == 4 ||
  1202. w.ateacher == userid,
  1203. }">
  1204. 评分
  1205. </div>
  1206. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1207. " @click.stop="deleteWorks(w.wid)" alt />
  1208. </div>
  1209. <div class="workImg" v-if="w.type == 3">
  1210. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1211. <!-- @click="openVideo(w.works)" -->
  1212. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1213. rightW:
  1214. w.userid == userid ||
  1215. tType == 1 ||
  1216. tType == 4 ||
  1217. w.ateacher == userid,
  1218. }">
  1219. {{ JSON.parse(w.score).wScore }}分
  1220. </div>
  1221. <div class="answerScore" @click.stop="openScore(w)"
  1222. v-else-if="courseDetail.userid == userid" :class="{
  1223. rightW:
  1224. w.userid == userid ||
  1225. tType == 1 ||
  1226. tType == 4 ||
  1227. w.ateacher == userid,
  1228. }">
  1229. 评分
  1230. </div>
  1231. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1232. " @click.stop="deleteWorks(w.wid)" alt />
  1233. </div>
  1234. <div class="workImg" v-if="w.type == 12">
  1235. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  1236. <!-- @click="openVideo(w.works)" -->
  1237. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1238. rightW:
  1239. w.userid == userid ||
  1240. tType == 1 ||
  1241. tType == 4 ||
  1242. w.ateacher == userid,
  1243. }">
  1244. {{ JSON.parse(w.score).wScore }}分
  1245. </div>
  1246. <div class="answerScore" @click.stop="openScore(w)"
  1247. v-else-if="courseDetail.userid == userid" :class="{
  1248. rightW:
  1249. w.userid == userid ||
  1250. tType == 1 ||
  1251. tType == 4 ||
  1252. w.ateacher == userid,
  1253. }">
  1254. 评分
  1255. </div>
  1256. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1257. " @click.stop="deleteWorks(w.wid)" alt />
  1258. </div>
  1259. <div class="comment" style="min-width: 200px">
  1260. <div class="worksName">
  1261. <div>{{ w.sName }}</div>
  1262. </div>
  1263. <div class="commentList">
  1264. <div class="commentList">
  1265. <div class="commentImg" @click="
  1266. isLikes(w.wid, userid, 1, null, w.isLikes)
  1267. ">
  1268. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1269. </div>
  1270. <div>{{ w.likesCount }}</div>
  1271. </div>
  1272. <div class="commentList" style="margin-right: 15px">
  1273. <div class="commentImg" @click="
  1274. commentOther(
  1275. w,
  1276. toolIndex,
  1277. wIndex,
  1278. null,
  1279. g.id
  1280. )
  1281. ">
  1282. <img src="../assets/icon/comment/comment.png" alt="" />
  1283. </div>
  1284. <div>{{ w.commentCount }}</div>
  1285. </div>
  1286. </div>
  1287. </div>
  1288. </div>
  1289. </div>
  1290. <div class="group_work" v-else>暂无提交作业</div>
  1291. </div>
  1292. </div>
  1293. <div class="worksDetailBox" v-if="worksStudent.length &&
  1294. worksStudent[toolIndex].length > 0
  1295. ">
  1296. <div class="works" style="
  1297. width: 200px;
  1298. height: 140px;
  1299. margin: 10px 10px 10px 0;
  1300. border-radius: 15px;
  1301. box-shadow: 0 0 6px 1px #dfdada;
  1302. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1303. 0
  1304. ? worksStudent[toolIndex]
  1305. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1306. <div class="workImg" v-if="w.type == 0">
  1307. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1308. <img :src="w.works" @click="previewImg(w.works)" alt />
  1309. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1310. rightW:
  1311. w.userid == userid ||
  1312. tType == 1 ||
  1313. tType == 4 ||
  1314. w.ateacher == userid,
  1315. }">
  1316. {{ JSON.parse(w.score).wScore }}分
  1317. </div>
  1318. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1319. :class="{
  1320. rightW:
  1321. w.userid == userid ||
  1322. tType == 1 ||
  1323. tType == 4 ||
  1324. w.ateacher == userid,
  1325. }">
  1326. 评分
  1327. </div>
  1328. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1329. " @click.stop="deleteWorks(w.wid)" alt />
  1330. </div>
  1331. <div class="workImg" v-if="w.type == 1">
  1332. <img :src="word" @click="openFile(w.works)" alt />
  1333. <!-- @click="openFile(w.works)" -->
  1334. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1335. rightW:
  1336. w.userid == userid ||
  1337. tType == 1 ||
  1338. tType == 4 ||
  1339. w.ateacher == userid,
  1340. }">
  1341. {{ JSON.parse(w.score).wScore }}分
  1342. </div>
  1343. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1344. :class="{
  1345. rightW:
  1346. w.userid == userid ||
  1347. tType == 1 ||
  1348. tType == 4 ||
  1349. w.ateacher == userid,
  1350. }">
  1351. 评分
  1352. </div>
  1353. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1354. " @click.stop="deleteWorks(w.wid)" alt />
  1355. </div>
  1356. <div class="workImg" v-if="w.type == 3">
  1357. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1358. <!-- @click="openVideo(w.works)" -->
  1359. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1360. rightW:
  1361. w.userid == userid ||
  1362. tType == 1 ||
  1363. tType == 4 ||
  1364. w.ateacher == userid,
  1365. }">
  1366. {{ JSON.parse(w.score).wScore }}分
  1367. </div>
  1368. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1369. :class="{
  1370. rightW:
  1371. w.userid == userid ||
  1372. tType == 1 ||
  1373. tType == 4 ||
  1374. w.ateacher == userid,
  1375. }">
  1376. 评分
  1377. </div>
  1378. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1379. " @click.stop="deleteWorks(w.wid)" alt />
  1380. </div>
  1381. <div class="workImg" v-if="w.type == 12">
  1382. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  1383. <!-- @click="openVideo(w.works)" -->
  1384. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1385. rightW:
  1386. w.userid == userid ||
  1387. tType == 1 ||
  1388. tType == 4 ||
  1389. w.ateacher == userid,
  1390. }">
  1391. {{ JSON.parse(w.score).wScore }}分
  1392. </div>
  1393. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1394. :class="{
  1395. rightW:
  1396. w.userid == userid ||
  1397. tType == 1 ||
  1398. tType == 4 ||
  1399. w.ateacher == userid,
  1400. }">
  1401. 评分
  1402. </div>
  1403. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1404. " @click.stop="deleteWorks(w.wid)" alt />
  1405. </div>
  1406. <div class="comment" style="min-width: 200px">
  1407. <div class="worksName">
  1408. <div>{{ w.sName }}</div>
  1409. </div>
  1410. <div class="commentList">
  1411. <div class="commentList">
  1412. <div class="commentImg" @click="
  1413. isLikes(w.wid, userid, 1, null, w.isLikes)
  1414. ">
  1415. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1416. </div>
  1417. <div>{{ w.likesCount }}</div>
  1418. </div>
  1419. <div class="commentList" style="margin-right: 15px">
  1420. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1421. <img src="../assets/icon/comment/comment.png" alt="" />
  1422. </div>
  1423. <div>{{ w.commentCount }}</div>
  1424. </div>
  1425. </div>
  1426. </div>
  1427. </div>
  1428. </div>
  1429. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1430. 未提交
  1431. </div>
  1432. <div class="noWorksS">
  1433. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1434. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)">
  1435. {{ s.student }}
  1436. </div>
  1437. </div>
  1438. </div>
  1439. <div v-if="tType &&
  1440. ((tType == 2 && sIsOpen == true) ||
  1441. tType == 1 ||
  1442. tType == 4) &&
  1443. tool.tool.indexOf(32) != -1
  1444. " class="worksBox">
  1445. <div class="zuoyeYulan" v-if="worksStudent.length &&
  1446. worksStudent[toolIndex].length > 0
  1447. ">
  1448. <div class="worksTop">
  1449. <div>作业预览</div>
  1450. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  1451. isCloseList[toolIndex].isClose == 0
  1452. ">
  1453. 收缩
  1454. </div>
  1455. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1456. 展开
  1457. </div>
  1458. </div>
  1459. </div>
  1460. <div class="worksDetailBox" v-if="worksStudent.length &&
  1461. worksStudent[toolIndex].length > 0
  1462. ">
  1463. <div class="works" style="
  1464. width: 200px;
  1465. height: 140px;
  1466. margin: 10px 10px 10px 0;
  1467. border-radius: 15px;
  1468. box-shadow: 0 0 6px 1px #dfdada;
  1469. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1470. 0
  1471. ? worksStudent[toolIndex]
  1472. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1473. <div class="workImg">
  1474. <img :src="word2" @click="downloadFile(w.works)" alt />
  1475. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1476. rightW:
  1477. w.userid == userid ||
  1478. tType == 1 ||
  1479. tType == 4 ||
  1480. w.ateacher == userid,
  1481. }">
  1482. {{ JSON.parse(w.score).wScore }}分
  1483. </div>
  1484. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1485. :class="{
  1486. rightW:
  1487. w.userid == userid ||
  1488. tType == 1 ||
  1489. tType == 4 ||
  1490. w.ateacher == userid,
  1491. }">
  1492. 评分
  1493. </div>
  1494. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1495. " @click.stop="deleteWorks(w.wid)" alt />
  1496. </div>
  1497. <div class="comment" style="min-width: 200px">
  1498. <div class="worksName">
  1499. <div>{{ w.sName }}</div>
  1500. </div>
  1501. <div class="commentList">
  1502. <div class="commentList">
  1503. <div class="commentImg" @click="
  1504. isLikes(w.wid, userid, 1, null, w.isLikes)
  1505. ">
  1506. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1507. </div>
  1508. <div>{{ w.likesCount }}</div>
  1509. </div>
  1510. <div class="commentList" style="margin-right: 15px">
  1511. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1512. <img src="../assets/icon/comment/comment.png" alt="" />
  1513. </div>
  1514. <div>{{ w.commentCount }}</div>
  1515. </div>
  1516. </div>
  1517. </div>
  1518. </div>
  1519. </div>
  1520. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1521. 未提交
  1522. </div>
  1523. <div class="noWorksS">
  1524. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1525. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)">
  1526. {{ s.student }}
  1527. </div>
  1528. </div>
  1529. </div>
  1530. <div v-if="tType &&
  1531. ((tType == 2 && sIsOpen == true) ||
  1532. tType == 1 ||
  1533. tType == 4) &&
  1534. tool.tool.indexOf(57) != -1
  1535. " class="worksBox">
  1536. <div class="zuoyeYulan" v-if="worksStudent.length &&
  1537. worksStudent[toolIndex].length > 0
  1538. ">
  1539. <div class="worksTop">
  1540. <div>作业预览</div>
  1541. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  1542. isCloseList[toolIndex].isClose == 0
  1543. ">
  1544. 收缩
  1545. </div>
  1546. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1547. 展开
  1548. </div>
  1549. </div>
  1550. </div>
  1551. <div class="worksDetailBox" v-if="worksStudent.length &&
  1552. worksStudent[toolIndex].length > 0
  1553. ">
  1554. <div class="works" style="
  1555. width: 200px;
  1556. height: 140px;
  1557. margin: 10px 10px 10px 0;
  1558. border-radius: 15px;
  1559. box-shadow: 0 0 6px 1px #dfdada;
  1560. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1561. 0
  1562. ? worksStudent[toolIndex]
  1563. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1564. <div class="workImg">
  1565. <img :src="word2" @click="downloadFile(w.works)" alt />
  1566. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1567. rightW:
  1568. w.userid == userid ||
  1569. tType == 1 ||
  1570. tType == 4 ||
  1571. w.ateacher == userid,
  1572. }">
  1573. {{ JSON.parse(w.score).wScore }}分
  1574. </div>
  1575. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1576. :class="{
  1577. rightW:
  1578. w.userid == userid ||
  1579. tType == 1 ||
  1580. tType == 4 ||
  1581. w.ateacher == userid,
  1582. }">
  1583. 评分
  1584. </div>
  1585. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1586. " @click.stop="deleteWorks(w.wid)" alt />
  1587. </div>
  1588. <div class="comment" style="min-width: 200px">
  1589. <div class="worksName">
  1590. <div>{{ w.sName }}</div>
  1591. </div>
  1592. <div class="commentList">
  1593. <div class="commentList">
  1594. <div class="commentImg" @click="
  1595. isLikes(w.wid, userid, 1, null, w.isLikes)
  1596. ">
  1597. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1598. </div>
  1599. <div>{{ w.likesCount }}</div>
  1600. </div>
  1601. <div class="commentList" style="margin-right: 15px">
  1602. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1603. <img src="../assets/icon/comment/comment.png" alt="" />
  1604. </div>
  1605. <div>{{ w.commentCount }}</div>
  1606. </div>
  1607. </div>
  1608. </div>
  1609. </div>
  1610. </div>
  1611. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1612. 未提交
  1613. </div>
  1614. <div class="noWorksS">
  1615. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1616. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)">
  1617. {{ s.student }}
  1618. </div>
  1619. </div>
  1620. </div>
  1621. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  1622. <div class="zuoyeYulan" v-if="worksStudent.length &&
  1623. worksStudent[toolIndex].length > 0
  1624. ">
  1625. <span>作业预览</span>
  1626. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  1627. isCloseList[toolIndex].isClose == 0
  1628. ">
  1629. 收缩
  1630. </div>
  1631. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1632. 展开
  1633. </div>
  1634. </div>
  1635. <div class="worksDetailBox" v-if="worksStudent.length &&
  1636. worksStudent[toolIndex].length > 0
  1637. ">
  1638. <div class="works" style="
  1639. width: 200px;
  1640. height: 140px;
  1641. margin: 10px 10px 10px 0;
  1642. border-radius: 15px;
  1643. box-shadow: 0 0 6px 1px #dfdada;
  1644. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1645. 0
  1646. ? worksStudent[toolIndex]
  1647. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1648. <div class="workImg" v-if="w.type == 0">
  1649. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1650. <img :src="w.works" @click="previewImg(w.works)" alt />
  1651. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1652. rightW:
  1653. w.userid == userid ||
  1654. tType == 1 ||
  1655. tType == 4 ||
  1656. w.ateacher == userid,
  1657. }">
  1658. {{ JSON.parse(w.score).wScore }}分
  1659. </div>
  1660. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1661. :class="{
  1662. rightW:
  1663. w.userid == userid ||
  1664. tType == 1 ||
  1665. tType == 4 ||
  1666. w.ateacher == userid,
  1667. }">
  1668. 评分
  1669. </div>
  1670. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1671. " @click.stop="deleteWorks(w.wid)" alt />
  1672. </div>
  1673. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  1674. <img :src="word" @click="openFile(w.works)" alt />
  1675. <!-- @click="openFile(w.works)" -->
  1676. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1677. rightW:
  1678. w.userid == userid ||
  1679. tType == 1 ||
  1680. tType == 4 ||
  1681. w.ateacher == userid,
  1682. }">
  1683. {{ JSON.parse(w.score).wScore }}分
  1684. </div>
  1685. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1686. :class="{
  1687. rightW:
  1688. w.userid == userid ||
  1689. tType == 1 ||
  1690. tType == 4 ||
  1691. w.ateacher == userid,
  1692. }">
  1693. 评分
  1694. </div>
  1695. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1696. " @click.stop="deleteWorks(w.wid)" alt />
  1697. </div>
  1698. <div class="workImg" v-if="w.type == 3">
  1699. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1700. <!-- @click="openVideo(w.works)" -->
  1701. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1702. rightW:
  1703. w.userid == userid ||
  1704. tType == 1 ||
  1705. tType == 4 ||
  1706. w.ateacher == userid,
  1707. }">
  1708. {{ JSON.parse(w.score).wScore }}分
  1709. </div>
  1710. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1711. :class="{
  1712. rightW:
  1713. w.userid == userid ||
  1714. tType == 1 ||
  1715. tType == 4 ||
  1716. w.ateacher == userid,
  1717. }">
  1718. 评分
  1719. </div>
  1720. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1721. " @click.stop="deleteWorks(w.wid)" alt />
  1722. </div>
  1723. <div class="comment" style="min-width: 200px">
  1724. <div class="worksName">
  1725. <div style="cursor: pointer" @click="openSname(w.sName, w.wid, toolIndex)">
  1726. {{ w.sName }}
  1727. </div>
  1728. </div>
  1729. <div class="commentList">
  1730. <div class="commentList">
  1731. <div class="commentImg" @click="
  1732. isLikes(w.wid, userid, 1, null, w.isLikes)
  1733. ">
  1734. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1735. </div>
  1736. <div>{{ w.likesCount }}</div>
  1737. </div>
  1738. <div class="commentList" style="margin-right: 15px">
  1739. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1740. <img src="../assets/icon/comment/comment.png" alt="" />
  1741. </div>
  1742. <div>{{ w.commentCount }}</div>
  1743. </div>
  1744. </div>
  1745. </div>
  1746. </div>
  1747. </div>
  1748. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1749. 未提交
  1750. </div>
  1751. <div class="noWorksS">
  1752. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1753. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)">
  1754. {{ s.student }}
  1755. </div>
  1756. </div>
  1757. </div>
  1758. <div v-if="tType &&
  1759. ((tType == 2 && sIsOpen == true) ||
  1760. tType == 1 ||
  1761. tType == 4) &&
  1762. tool.tool.indexOf(4) != -1 &&
  1763. (tool.askJson[0].answer ||
  1764. tool.askJson[0].answer === 0) &&
  1765. checkJson[toolIndex].length
  1766. " class="xuan_right_box">
  1767. <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
  1768. <div>
  1769. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  1770. </div>
  1771. <div class="right_box_xuan">
  1772. <span>正确率</span>
  1773. <span>{{
  1774. (checkJson[toolIndex][index].right
  1775. ? checkJson[toolIndex][index].right
  1776. : 0) + "%"
  1777. }}</span>
  1778. </div>
  1779. </div>
  1780. </div>
  1781. <div class="xuan_right_box" style="background: unset" v-if="tType &&
  1782. ((tType == 2 && sIsOpen == true) ||
  1783. tType == 1 ||
  1784. tType == 4) &&
  1785. tool.tool.indexOf(4) != -1
  1786. ">
  1787. <AskStatic v-if="worksStudent.length &&
  1788. worksStudent[toolIndex].length > 0
  1789. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic>
  1790. </div>
  1791. <div v-if="tType &&
  1792. ((tType == 2 && sIsOpen == true) ||
  1793. tType == 1 ||
  1794. tType == 4) &&
  1795. tool.tool.indexOf(4) != -1
  1796. " class="worksBox">
  1797. <div class="zuoyeYulan" v-if="worksStudent.length &&
  1798. worksStudent[toolIndex].length > 0
  1799. ">
  1800. <div class="worksTop">
  1801. <div>作业预览</div>
  1802. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  1803. isCloseList[toolIndex].isClose == 0
  1804. ">
  1805. 收缩
  1806. </div>
  1807. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1808. 展开
  1809. </div>
  1810. </div>
  1811. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1812. </div>
  1813. <div>
  1814. <div class="worksDetailBox" v-if="worksStudent.length &&
  1815. worksStudent[toolIndex].length > 0
  1816. ">
  1817. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  1818. .isClose == 0
  1819. ? worksStudent[toolIndex]
  1820. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="
  1821. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1822. ">
  1823. {{ w.sName }}
  1824. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1825. " @click.stop="deleteWorks(w.wid)" alt />
  1826. </div>
  1827. <!-- <div class="works" style="
  1828. width: 200px;
  1829. height: 140px;
  1830. border-radius: 10px;
  1831. box-shadow: 0 0 6px 1px #dfdada;
  1832. overflow: hidden;
  1833. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1834. <div class="workImg">
  1835. <img src="../assets/icon/works/noImg.png" @click="
  1836. openTools(
  1837. 4,
  1838. toolIndex,
  1839. taskCount,
  1840. w.works,
  1841. w.sName
  1842. )
  1843. " alt />
  1844. </div>
  1845. <div class="worksName">
  1846. <div>{{ w.sName }}</div>
  1847. <div>{{ w.time }}</div>
  1848. </div>
  1849. </div> -->
  1850. </div>
  1851. </div>
  1852. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1853. 未提交
  1854. </div>
  1855. <div class="noWorksS">
  1856. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1857. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)">
  1858. {{ s.student }}
  1859. </div>
  1860. </div>
  1861. </div>
  1862. <div v-if="tType &&
  1863. ((tType == 2 && sIsOpen == true) ||
  1864. tType == 1 ||
  1865. tType == 4) &&
  1866. tool.tool.indexOf(45) != -1 &&
  1867. (tool.testJson.testJson[0].answer ||
  1868. tool.testJson.testJson[0].answer === 0) &&
  1869. checkJson[toolIndex].length
  1870. " class="xuan_right_box">
  1871. <div class="tool_right_box" v-for="(item, index) in tool.testJson.testJson" :key="index">
  1872. <div>
  1873. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  1874. </div>
  1875. <div class="right_box_xuan">
  1876. <span>正确率</span>
  1877. <span>{{
  1878. (checkJson[toolIndex][index].right
  1879. ? checkJson[toolIndex][index].right
  1880. : 0) + "%"
  1881. }}</span>
  1882. </div>
  1883. </div>
  1884. </div>
  1885. <div class="xuan_right_box" style="background: unset" v-if="tType &&
  1886. ((tType == 2 && sIsOpen == true) ||
  1887. tType == 1 ||
  1888. tType == 4) &&
  1889. tool.tool.indexOf(45) != -1
  1890. ">
  1891. <AskStatic2 v-if="worksStudent.length &&
  1892. worksStudent[toolIndex].length > 0
  1893. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic2>
  1894. </div>
  1895. <div v-if="tType &&
  1896. ((tType == 2 && sIsOpen == true) ||
  1897. tType == 1 ||
  1898. tType == 4) &&
  1899. tool.tool.indexOf(45) != -1
  1900. " class="worksBox">
  1901. <div class="zuoyeYulan" v-if="worksStudent.length &&
  1902. worksStudent[toolIndex].length > 0
  1903. ">
  1904. <div class="worksTop">
  1905. <div>作业预览</div>
  1906. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  1907. isCloseList[toolIndex].isClose == 0
  1908. ">
  1909. 收缩
  1910. </div>
  1911. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1912. 展开
  1913. </div>
  1914. </div>
  1915. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1916. </div>
  1917. <div>
  1918. <div class="worksDetailBox" v-if="worksStudent.length &&
  1919. worksStudent[toolIndex].length > 0
  1920. ">
  1921. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  1922. .isClose == 0
  1923. ? worksStudent[toolIndex]
  1924. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="
  1925. openTools(
  1926. 45,
  1927. toolIndex,
  1928. taskCount,
  1929. w.works,
  1930. w.sName
  1931. )
  1932. ">
  1933. {{ w.sName }}
  1934. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1935. " @click.stop="deleteWorks(w.wid)" alt />
  1936. </div>
  1937. </div>
  1938. </div>
  1939. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1940. 未提交
  1941. </div>
  1942. <div class="noWorksS">
  1943. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1944. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)">
  1945. {{ s.student }}
  1946. </div>
  1947. </div>
  1948. </div>
  1949. <div v-if="tType &&
  1950. ((tType == 2 && sIsOpen == true) ||
  1951. tType == 1 ||
  1952. tType == 4) &&
  1953. tool.tool.indexOf(15) != -1
  1954. " class="worksBox">
  1955. <div class="zuoyeYulan" v-if="worksStudent.length &&
  1956. worksStudent[toolIndex].length > 0
  1957. ">
  1958. <div class="worksTop">
  1959. <div>作业预览</div>
  1960. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  1961. isCloseList[toolIndex].isClose == 0
  1962. ">
  1963. 收缩
  1964. </div>
  1965. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1966. 展开
  1967. </div>
  1968. </div>
  1969. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1970. </div>
  1971. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  1972. <div class="group_box">
  1973. <div class="group_title">
  1974. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  1975. <div class="group_name">{{ g.name }}</div>
  1976. </el-tooltip>
  1977. </div>
  1978. <div class="group_work" v-if="g.works &&
  1979. g.works.length &&
  1980. g.works[toolIndex].length
  1981. ">
  1982. <div class="works" v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex">
  1983. <div class="workImg" style="
  1984. border-radius: 15px;
  1985. box-shadow: #eee 0px 0px 5px 5px;
  1986. ">
  1987. <div class="answerBg" style="border-radius: 15px 15px 0 0" @click="
  1988. commentOther(w, toolIndex, wIndex, null, g.id)
  1989. ">
  1990. <div class="answerContent">
  1991. {{ JSON.parse(w.works)[0].answer }}
  1992. </div>
  1993. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1994. rightW:
  1995. w.userid == userid ||
  1996. tType == 1 ||
  1997. tType == 4,
  1998. }">
  1999. {{ JSON.parse(w.score).wScore }}分
  2000. </div>
  2001. <div class="answerScore" @click.stop="openScore(w)"
  2002. v-else-if="courseDetail.userid == userid" :class="{
  2003. rightW:
  2004. w.userid == userid ||
  2005. tType == 1 ||
  2006. tType == 4,
  2007. }">
  2008. 评分
  2009. </div>
  2010. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid ||
  2011. tType == 1 ||
  2012. tType == 4
  2013. " @click.stop="deleteWorks(w.wid)" alt />
  2014. </div>
  2015. <div class="comment">
  2016. <div class="worksName">
  2017. <div>{{ w.sName }}</div>
  2018. </div>
  2019. <div class="commentList">
  2020. <div class="commentImg" @click="
  2021. isLikes(w.wid, userid, 1, null, w.isLikes)
  2022. ">
  2023. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2024. </div>
  2025. <div>{{ w.likesCount }}</div>
  2026. </div>
  2027. <div class="commentList" style="margin-right: 15px">
  2028. <div class="commentImg" @click="
  2029. commentOther(
  2030. w,
  2031. toolIndex,
  2032. wIndex,
  2033. null,
  2034. g.id
  2035. )
  2036. ">
  2037. <img src="../assets/icon/comment/comment.png" alt="" />
  2038. </div>
  2039. <div>{{ w.commentCount }}</div>
  2040. </div>
  2041. </div>
  2042. </div>
  2043. </div>
  2044. </div>
  2045. <div class="group_work" v-else>暂无提交作业</div>
  2046. </div>
  2047. </div>
  2048. <div class="worksDetailBox" v-if="worksStudent.length &&
  2049. worksStudent[toolIndex].length > 0
  2050. ">
  2051. <div class="works" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2052. 0
  2053. ? worksStudent[toolIndex]
  2054. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2055. <div class="workImg" style="
  2056. border-radius: 15px;
  2057. box-shadow: #eee 0px 0px 5px 5px;
  2058. ">
  2059. <!-- <img
  2060. src="../assets/icon/works/noImg.png"
  2061. @click="openTools(15, toolIndex, taskCount, w.works)"
  2062. alt=""
  2063. />-->
  2064. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  2065. @click="commentOther(w, toolIndex, wIndex)">
  2066. <!-- <div>{{ w.sName }}</div> -->
  2067. <div class="answerContent">
  2068. {{ JSON.parse(w.works)[0].answer }}
  2069. </div>
  2070. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2071. rightW:
  2072. w.userid == userid ||
  2073. tType == 1 ||
  2074. tType == 4,
  2075. }">
  2076. {{ JSON.parse(w.score).wScore }}分
  2077. </div>
  2078. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2079. :class="{
  2080. rightW:
  2081. w.userid == userid ||
  2082. tType == 1 ||
  2083. tType == 4,
  2084. }">
  2085. 评分
  2086. </div>
  2087. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2088. " @click.stop="deleteWorks(w.wid)" alt />
  2089. </div>
  2090. <div class="comment">
  2091. <div class="worksName">
  2092. <div>{{ w.sName }}</div>
  2093. </div>
  2094. <div class="commentList">
  2095. <div class="commentImg" @click="
  2096. isLikes(w.wid, userid, 1, null, w.isLikes)
  2097. ">
  2098. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2099. </div>
  2100. <div>{{ w.likesCount }}</div>
  2101. </div>
  2102. <div class="commentList" style="margin-right: 15px">
  2103. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2104. <img src="../assets/icon/comment/comment.png" alt="" />
  2105. </div>
  2106. <div>{{ w.commentCount }}</div>
  2107. </div>
  2108. </div>
  2109. </div>
  2110. </div>
  2111. </div>
  2112. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2113. 未提交
  2114. </div>
  2115. <div class="noWorksS">
  2116. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2117. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)">
  2118. {{ s.student }}
  2119. </div>
  2120. </div>
  2121. </div>
  2122. <div v-if="tType &&
  2123. ((tType == 2 && sIsOpen == true) ||
  2124. tType == 1 ||
  2125. tType == 4) &&
  2126. tool.tool.indexOf(1) != -1
  2127. " class="worksBox">
  2128. <div class="zuoyeYulan" v-if="worksStudent.length &&
  2129. worksStudent[toolIndex].length > 0
  2130. ">
  2131. <div class="worksTop">
  2132. <div>作业预览</div>
  2133. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  2134. isCloseList[toolIndex].isClose == 0
  2135. ">
  2136. 收缩
  2137. </div>
  2138. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2139. 展开
  2140. </div>
  2141. </div>
  2142. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2143. </div>
  2144. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  2145. <div class="group_box">
  2146. <div class="group_title">
  2147. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  2148. <div class="group_name">{{ g.name }}</div>
  2149. </el-tooltip>
  2150. </div>
  2151. <div class="group_work" v-if="g.works &&
  2152. g.works.length &&
  2153. g.works[toolIndex].length
  2154. ">
  2155. <div class="works" style="
  2156. width: 200px;
  2157. height: 140px;
  2158. margin: 10px 10px 10px 0;
  2159. border-radius: 15px;
  2160. box-shadow: 0 0 6px 1px #dfdada;
  2161. " v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex"
  2162. :class="w.type == 1 ? 'isTypeOne' : ''">
  2163. <div class="workImg">
  2164. <img :src="w.works" @click="previewImg(w.works)" alt />
  2165. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2166. rightW:
  2167. w.userid == userid ||
  2168. tType == 1 ||
  2169. tType == 4,
  2170. }">
  2171. {{ JSON.parse(w.score).wScore }}分
  2172. </div>
  2173. <div class="answerScore" @click.stop="openScore(w)"
  2174. v-else-if="courseDetail.userid == userid" :class="{
  2175. rightW:
  2176. w.userid == userid ||
  2177. tType == 1 ||
  2178. tType == 4,
  2179. }">
  2180. 评分
  2181. </div>
  2182. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2183. " @click.stop="deleteWorks(w.wid)" alt />
  2184. </div>
  2185. <div class="comment" style="min-width: 200px">
  2186. <div class="worksName">
  2187. <div>{{ w.sName }}</div>
  2188. </div>
  2189. <div class="commentList">
  2190. <div class="commentList">
  2191. <div class="commentImg" @click="
  2192. isLikes(w.wid, userid, 1, null, w.isLikes)
  2193. ">
  2194. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2195. </div>
  2196. <div>{{ w.likesCount }}</div>
  2197. </div>
  2198. <div class="commentList" style="margin-right: 15px">
  2199. <div class="commentImg" @click="
  2200. commentOther(
  2201. w,
  2202. toolIndex,
  2203. wIndex,
  2204. null,
  2205. g.id
  2206. )
  2207. ">
  2208. <img src="../assets/icon/comment/comment.png" alt="" />
  2209. </div>
  2210. <div>{{ w.commentCount }}</div>
  2211. </div>
  2212. </div>
  2213. </div>
  2214. </div>
  2215. </div>
  2216. <div class="group_work" v-else>暂无提交作业</div>
  2217. </div>
  2218. </div>
  2219. <div class="worksDetailBox" v-if="worksStudent.length &&
  2220. worksStudent[toolIndex].length > 0
  2221. ">
  2222. <div class="works" style="
  2223. width: 200px;
  2224. height: 140px;
  2225. margin: 10px 10px 10px 0;
  2226. border-radius: 15px;
  2227. box-shadow: 0 0 6px 1px #dfdada;
  2228. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2229. 0
  2230. ? worksStudent[toolIndex]
  2231. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2232. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2233. <div class="workImg">
  2234. <img :src="w.works" @click="previewImg(w.works)" alt />
  2235. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2236. rightW:
  2237. w.userid == userid || tType == 1 || tType == 4,
  2238. }">
  2239. {{ JSON.parse(w.score).wScore }}分
  2240. </div>
  2241. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2242. :class="{
  2243. rightW:
  2244. w.userid == userid || tType == 1 || tType == 4,
  2245. }">
  2246. 评分
  2247. </div>
  2248. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2249. " @click.stop="deleteWorks(w.wid)" alt />
  2250. </div>
  2251. <div class="comment" style="min-width: 200px">
  2252. <div class="worksName">
  2253. <div>{{ w.sName }}</div>
  2254. </div>
  2255. <div class="commentList">
  2256. <div class="commentList">
  2257. <div class="commentImg" @click="
  2258. isLikes(w.wid, userid, 1, null, w.isLikes)
  2259. ">
  2260. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2261. </div>
  2262. <div>{{ w.likesCount }}</div>
  2263. </div>
  2264. <div class="commentList" style="margin-right: 15px">
  2265. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2266. <img src="../assets/icon/comment/comment.png" alt="" />
  2267. </div>
  2268. <div>{{ w.commentCount }}</div>
  2269. </div>
  2270. </div>
  2271. </div>
  2272. </div>
  2273. </div>
  2274. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2275. 未提交
  2276. </div>
  2277. <div class="noWorksS">
  2278. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2279. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)">
  2280. {{ s.student }}
  2281. </div>
  2282. </div>
  2283. </div>
  2284. <div v-if="tType &&
  2285. ((tType == 2 && sIsOpen == true) ||
  2286. tType == 1 ||
  2287. tType == 4) &&
  2288. tool.tool.indexOf(3) != -1
  2289. " class="worksBox">
  2290. <div class="zuoyeYulan" v-if="worksStudent.length &&
  2291. worksStudent[toolIndex].length > 0
  2292. ">
  2293. <div class="worksTop">
  2294. <div>作业预览</div>
  2295. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  2296. isCloseList[toolIndex].isClose == 0
  2297. ">
  2298. 收缩
  2299. </div>
  2300. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2301. 展开
  2302. </div>
  2303. </div>
  2304. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2305. </div>
  2306. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  2307. <div class="group_box">
  2308. <div class="group_title">
  2309. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  2310. <div class="group_name">{{ g.name }}</div>
  2311. </el-tooltip>
  2312. </div>
  2313. <div class="group_work" v-if="g.works &&
  2314. g.works.length &&
  2315. g.works[toolIndex].length
  2316. ">
  2317. <div class="works" style="
  2318. width: 200px;
  2319. height: 140px;
  2320. margin: 10px 10px 10px 0;
  2321. border-radius: 15px;
  2322. box-shadow: 0 0 6px 1px #dfdada;
  2323. " v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex"
  2324. :class="w.type == 1 ? 'isTypeOne' : ''">
  2325. <div class="workImg">
  2326. <img :src="w.works" @click="previewImg(w.works)" alt />
  2327. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2328. rightW:
  2329. w.userid == userid ||
  2330. tType == 1 ||
  2331. tType == 4,
  2332. }">
  2333. {{ JSON.parse(w.score).wScore }}分
  2334. </div>
  2335. <div class="answerScore" @click.stop="openScore(w)"
  2336. v-else-if="courseDetail.userid == userid" :class="{
  2337. rightW:
  2338. w.userid == userid ||
  2339. tType == 1 ||
  2340. tType == 4,
  2341. }">
  2342. 评分
  2343. </div>
  2344. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2345. " @click.stop="deleteWorks(w.wid)" alt />
  2346. </div>
  2347. <div class="comment" style="min-width: 200px">
  2348. <div class="worksName">
  2349. <div>{{ w.sName }}</div>
  2350. </div>
  2351. <div class="commentList">
  2352. <div class="commentList">
  2353. <div class="commentImg" @click="
  2354. isLikes(w.wid, userid, 1, null, w.isLikes)
  2355. ">
  2356. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2357. </div>
  2358. <div>{{ w.likesCount }}</div>
  2359. </div>
  2360. <div class="commentList" style="margin-right: 15px">
  2361. <div class="commentImg" @click="
  2362. commentOther(
  2363. w,
  2364. toolIndex,
  2365. wIndex,
  2366. null,
  2367. g.id
  2368. )
  2369. ">
  2370. <img src="../assets/icon/comment/comment.png" alt="" />
  2371. </div>
  2372. <div>{{ w.commentCount }}</div>
  2373. </div>
  2374. </div>
  2375. </div>
  2376. </div>
  2377. </div>
  2378. <div class="group_work" v-else>暂无提交作业</div>
  2379. </div>
  2380. </div>
  2381. <div class="worksDetailBox" v-if="worksStudent.length &&
  2382. worksStudent[toolIndex].length > 0
  2383. ">
  2384. <div class="works" style="
  2385. width: 200px;
  2386. height: 140px;
  2387. margin: 10px 10px 10px 0;
  2388. border-radius: 15px;
  2389. box-shadow: 0 0 6px 1px #dfdada;
  2390. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2391. 0
  2392. ? worksStudent[toolIndex]
  2393. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2394. <!-- @click="previewImg(w.works)" -->
  2395. <div class="workImg">
  2396. <img :src="w.works" @click="previewImg(w.works)" alt />
  2397. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2398. rightW:
  2399. w.userid == userid || tType == 1 || tType == 4,
  2400. }">
  2401. {{ JSON.parse(w.score).wScore }}分
  2402. </div>
  2403. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2404. :class="{
  2405. rightW:
  2406. w.userid == userid || tType == 1 || tType == 4,
  2407. }">
  2408. 评分
  2409. </div>
  2410. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2411. " @click.stop="deleteWorks(w.wid)" alt />
  2412. </div>
  2413. <div class="comment" style="min-width: 200px">
  2414. <div class="worksName">
  2415. <div>{{ w.sName }}</div>
  2416. </div>
  2417. <div class="commentList">
  2418. <div class="commentList">
  2419. <div class="commentImg" @click="
  2420. isLikes(w.wid, userid, 1, null, w.isLikes)
  2421. ">
  2422. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2423. </div>
  2424. <div>{{ w.likesCount }}</div>
  2425. </div>
  2426. <div class="commentList" style="margin-right: 15px">
  2427. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2428. <img src="../assets/icon/comment/comment.png" alt="" />
  2429. </div>
  2430. <div>{{ w.commentCount }}</div>
  2431. </div>
  2432. </div>
  2433. </div>
  2434. </div>
  2435. </div>
  2436. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2437. 未提交
  2438. </div>
  2439. <div class="noWorksS">
  2440. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2441. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)">
  2442. {{ s.student }}
  2443. </div>
  2444. </div>
  2445. </div>
  2446. <div v-if="tType &&
  2447. ((tType == 2 && sIsOpen == true) ||
  2448. tType == 1 ||
  2449. tType == 4) &&
  2450. tool.tool.indexOf(6) != -1
  2451. " class="worksBox">
  2452. <div class="zuoyeYulan" v-if="worksStudent.length &&
  2453. worksStudent[toolIndex].length > 0
  2454. ">
  2455. <div class="worksTop">
  2456. <div>作业预览</div>
  2457. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  2458. isCloseList[toolIndex].isClose == 0
  2459. ">
  2460. 收缩
  2461. </div>
  2462. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2463. 展开
  2464. </div>
  2465. </div>
  2466. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2467. </div>
  2468. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  2469. <div class="group_box">
  2470. <div class="group_title">
  2471. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  2472. <div class="group_name">{{ g.name }}</div>
  2473. </el-tooltip>
  2474. </div>
  2475. <div class="group_work" v-if="g.works &&
  2476. g.works.length &&
  2477. g.works[toolIndex].length
  2478. ">
  2479. <div class="works" style="
  2480. width: 200px;
  2481. height: 140px;
  2482. margin: 10px 10px 10px 0;
  2483. border-radius: 15px;
  2484. box-shadow: 0 0 6px 1px #dfdada;
  2485. " v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex"
  2486. :class="w.type == 1 ? 'isTypeOne' : ''">
  2487. <div class="workImg">
  2488. <img :src="w.works" @click="previewImg(w.works)" alt />
  2489. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2490. rightW:
  2491. w.userid == userid ||
  2492. tType == 1 ||
  2493. tType == 4,
  2494. }">
  2495. {{ JSON.parse(w.score).wScore }}分
  2496. </div>
  2497. <div class="answerScore" @click.stop="openScore(w)"
  2498. v-else-if="courseDetail.userid == userid" :class="{
  2499. rightW:
  2500. w.userid == userid ||
  2501. tType == 1 ||
  2502. tType == 4,
  2503. }">
  2504. 评分
  2505. </div>
  2506. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2507. " @click.stop="deleteWorks(w.wid)" alt />
  2508. </div>
  2509. <div class="comment" style="min-width: 200px">
  2510. <div class="worksName">
  2511. <div>{{ w.sName }}</div>
  2512. </div>
  2513. <div class="commentList">
  2514. <div class="commentList">
  2515. <div class="commentImg" @click="
  2516. isLikes(w.wid, userid, 1, null, w.isLikes)
  2517. ">
  2518. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2519. </div>
  2520. <div>{{ w.likesCount }}</div>
  2521. </div>
  2522. <div class="commentList" style="margin-right: 15px">
  2523. <div class="commentImg" @click="
  2524. commentOther(
  2525. w,
  2526. toolIndex,
  2527. wIndex,
  2528. null,
  2529. g.id
  2530. )
  2531. ">
  2532. <img src="../assets/icon/comment/comment.png" alt="" />
  2533. </div>
  2534. <div>{{ w.commentCount }}</div>
  2535. </div>
  2536. </div>
  2537. </div>
  2538. </div>
  2539. </div>
  2540. <div class="group_work" v-else>暂无提交作业</div>
  2541. </div>
  2542. </div>
  2543. <div class="worksDetailBox" v-if="worksStudent.length &&
  2544. worksStudent[toolIndex].length > 0
  2545. ">
  2546. <div class="works" style="
  2547. width: 200px;
  2548. height: 140px;
  2549. margin: 10px 10px 10px 0;
  2550. border-radius: 15px;
  2551. box-shadow: 0 0 6px 1px #dfdada;
  2552. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2553. 0
  2554. ? worksStudent[toolIndex]
  2555. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2556. <!-- @click="previewImg(w.works)" -->
  2557. <div class="workImg">
  2558. <img :src="w.works" @click="previewImg(w.works)" alt />
  2559. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2560. rightW:
  2561. w.userid == userid || tType == 1 || tType == 4,
  2562. }">
  2563. {{ JSON.parse(w.score).wScore }}分
  2564. </div>
  2565. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2566. :class="{
  2567. rightW:
  2568. w.userid == userid || tType == 1 || tType == 4,
  2569. }">
  2570. 评分
  2571. </div>
  2572. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2573. " @click.stop="deleteWorks(w.wid)" alt />
  2574. </div>
  2575. <div class="comment" style="min-width: 200px">
  2576. <div class="worksName">
  2577. <div>{{ w.sName }}</div>
  2578. </div>
  2579. <div class="commentList">
  2580. <div class="commentList">
  2581. <div class="commentImg" @click="
  2582. isLikes(w.wid, userid, 1, null, w.isLikes)
  2583. ">
  2584. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2585. </div>
  2586. <div>{{ w.likesCount }}</div>
  2587. </div>
  2588. <div class="commentList" style="margin-right: 15px">
  2589. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2590. <img src="../assets/icon/comment/comment.png" alt="" />
  2591. </div>
  2592. <div>{{ w.commentCount }}</div>
  2593. </div>
  2594. </div>
  2595. </div>
  2596. </div>
  2597. </div>
  2598. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2599. 未提交
  2600. </div>
  2601. <div class="noWorksS">
  2602. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2603. {{ s.student }}
  2604. </div>
  2605. </div>
  2606. </div>
  2607. <div v-if="tType &&
  2608. ((tType == 2 && sIsOpen == true) ||
  2609. tType == 1 ||
  2610. tType == 4) &&
  2611. tool.tool.indexOf(7) != -1
  2612. " class="worksBox">
  2613. <div class="zuoyeYulan" v-if="worksStudent.length &&
  2614. worksStudent[toolIndex].length > 0
  2615. ">
  2616. <div class="worksTop">
  2617. <div>作业预览</div>
  2618. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  2619. isCloseList[toolIndex].isClose == 0
  2620. ">
  2621. 收缩
  2622. </div>
  2623. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2624. 展开
  2625. </div>
  2626. </div>
  2627. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2628. </div>
  2629. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  2630. <div class="group_box">
  2631. <div class="group_title">
  2632. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  2633. <div class="group_name">{{ g.name }}</div>
  2634. </el-tooltip>
  2635. </div>
  2636. <div class="group_work" v-if="g.works &&
  2637. g.works.length &&
  2638. g.works[toolIndex].length
  2639. ">
  2640. <div class="works" style="
  2641. width: 200px;
  2642. height: 140px;
  2643. margin: 10px 10px 10px 0;
  2644. border-radius: 15px;
  2645. box-shadow: 0 0 6px 1px #dfdada;
  2646. " v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex"
  2647. :class="w.type == 1 ? 'isTypeOne' : ''">
  2648. <div class="workImg">
  2649. <img :src="w.works" @click="previewImg(w.works)" alt />
  2650. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2651. rightW:
  2652. w.userid == userid ||
  2653. tType == 1 ||
  2654. tType == 4,
  2655. }">
  2656. {{ JSON.parse(w.score).wScore }}分
  2657. </div>
  2658. <div class="answerScore" @click.stop="openScore(w)"
  2659. v-else-if="courseDetail.userid == userid" :class="{
  2660. rightW:
  2661. w.userid == userid ||
  2662. tType == 1 ||
  2663. tType == 4,
  2664. }">
  2665. 评分
  2666. </div>
  2667. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2668. " @click.stop="deleteWorks(w.wid)" alt />
  2669. </div>
  2670. <div class="comment" style="min-width: 200px">
  2671. <div class="worksName">
  2672. <div>{{ w.sName }}</div>
  2673. </div>
  2674. <div class="commentList">
  2675. <div class="commentList">
  2676. <div class="commentImg" @click="
  2677. isLikes(w.wid, userid, 1, null, w.isLikes)
  2678. ">
  2679. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2680. </div>
  2681. <div>{{ w.likesCount }}</div>
  2682. </div>
  2683. <div class="commentList" style="margin-right: 15px">
  2684. <div class="commentImg" @click="
  2685. commentOther(
  2686. w,
  2687. toolIndex,
  2688. wIndex,
  2689. null,
  2690. g.id
  2691. )
  2692. ">
  2693. <img src="../assets/icon/comment/comment.png" alt="" />
  2694. </div>
  2695. <div>{{ w.commentCount }}</div>
  2696. </div>
  2697. </div>
  2698. </div>
  2699. </div>
  2700. </div>
  2701. <div class="group_work" v-else>暂无提交作业</div>
  2702. </div>
  2703. </div>
  2704. <div class="worksDetailBox" v-if="worksStudent.length &&
  2705. worksStudent[toolIndex].length > 0
  2706. ">
  2707. <div class="works" style="
  2708. width: 200px;
  2709. height: 140px;
  2710. margin: 10px 10px 10px 0;
  2711. border-radius: 15px;
  2712. box-shadow: 0 0 6px 1px #dfdada;
  2713. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2714. 0
  2715. ? worksStudent[toolIndex]
  2716. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2717. <!-- @click="previewImg(w.works)" -->
  2718. <div class="workImg">
  2719. <img :src="w.works" @click="previewImg(w.works)" alt />
  2720. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2721. rightW:
  2722. w.userid == userid || tType == 1 || tType == 4,
  2723. }">
  2724. {{ JSON.parse(w.score).wScore }}分
  2725. </div>
  2726. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2727. :class="{
  2728. rightW:
  2729. w.userid == userid || tType == 1 || tType == 4,
  2730. }">
  2731. 评分
  2732. </div>
  2733. <img class="deleteImg" src="../assets/deleteworks.png" v-if="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 style="font-size: 18px" v-if="courseDetail.juri != ''">
  2760. 未提交
  2761. </div>
  2762. <div class="noWorksS">
  2763. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2764. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)">
  2765. {{ s.student }}
  2766. </div>
  2767. </div>
  2768. </div>
  2769. <div v-if="tType &&
  2770. ((tType == 2 && sIsOpen == true) ||
  2771. tType == 1 ||
  2772. tType == 4) &&
  2773. tool.tool.indexOf(26) != -1
  2774. " class="worksBox">
  2775. <div class="zuoyeYulan" v-if="worksStudent.length &&
  2776. worksStudent[toolIndex].length > 0
  2777. ">
  2778. <div class="worksTop">
  2779. <div>作业预览</div>
  2780. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  2781. isCloseList[toolIndex].isClose == 0
  2782. ">
  2783. 收缩
  2784. </div>
  2785. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2786. 展开
  2787. </div>
  2788. </div>
  2789. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2790. </div>
  2791. <div class="worksDetailBox" v-if="worksStudent.length &&
  2792. worksStudent[toolIndex].length > 0
  2793. ">
  2794. <div class="works" style="width: 240px; height: 140px; overflow: hidden" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2795. 0
  2796. ? worksStudent[toolIndex]
  2797. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  2798. <div class="workImg" v-if="w.type == 0">
  2799. <img :src="w.works" @click="previewImg(w.works)" alt />
  2800. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2801. " @click.stop="deleteWorks(w.wid)" alt />
  2802. </div>
  2803. <div class="workImg" v-if="w.type == 1">
  2804. <img :src="word" @click="openFile(w.works)" alt />
  2805. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2806. " @click.stop="deleteWorks(w.wid)" alt />
  2807. </div>
  2808. <div class="worksName">
  2809. <div>{{ w.sName }}</div>
  2810. </div>
  2811. </div>
  2812. </div>
  2813. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2814. 未提交
  2815. </div>
  2816. <div class="noWorksS">
  2817. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2818. {{ s.student }}
  2819. </div>
  2820. </div>
  2821. </div>
  2822. <div v-if="tType &&
  2823. ((tType == 2 && sIsOpen == true) ||
  2824. tType == 1 ||
  2825. tType == 4) &&
  2826. tool.tool.indexOf(40) != -1
  2827. " class="worksBox">
  2828. <div class="zuoyeYulan" v-if="worksStudent.length &&
  2829. worksStudent[toolIndex].length > 0
  2830. ">
  2831. <div class="worksTop">
  2832. <div>作业预览</div>
  2833. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  2834. isCloseList[toolIndex].isClose == 0
  2835. ">
  2836. 收缩
  2837. </div>
  2838. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2839. 展开
  2840. </div>
  2841. </div>
  2842. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2843. </div>
  2844. <div class="worksDetailBox" v-if="worksStudent.length &&
  2845. worksStudent[toolIndex].length > 0
  2846. ">
  2847. <div class="works" style="
  2848. width: 200px;
  2849. height: 140px;
  2850. margin: 10px 10px 10px 0;
  2851. border-radius: 15px;
  2852. box-shadow: 0 0 6px 1px #dfdada;
  2853. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2854. 0
  2855. ? worksStudent[toolIndex]
  2856. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  2857. <div class="workImg">
  2858. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  2859. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2860. " @click.stop="deleteWorks(w.wid)" alt />
  2861. </div>
  2862. <div class="comment" style="min-width: 200px">
  2863. <div class="worksName">
  2864. <div>{{ w.sName }}</div>
  2865. </div>
  2866. <div class="commentList">
  2867. <div class="commentList">
  2868. <div class="commentImg" @click="
  2869. isLikes(w.wid, userid, 1, null, w.isLikes)
  2870. ">
  2871. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2872. </div>
  2873. <div>{{ w.likesCount }}</div>
  2874. </div>
  2875. <div class="commentList" style="margin-right: 15px">
  2876. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2877. <img src="../assets/icon/comment/comment.png" alt="" />
  2878. </div>
  2879. <div>{{ w.commentCount }}</div>
  2880. </div>
  2881. </div>
  2882. </div>
  2883. </div>
  2884. </div>
  2885. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2886. 未提交
  2887. </div>
  2888. <div class="noWorksS">
  2889. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2890. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)">
  2891. {{ s.student }}
  2892. </div>
  2893. </div>
  2894. </div>
  2895. <div v-if="tType &&
  2896. tType == 2 &&
  2897. !sIsOpen &&
  2898. tool.tool.indexOf(40) != -1
  2899. " class="worksBox">
  2900. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  2901. <span>作业预览</span>
  2902. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2903. </div>
  2904. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  2905. <div class="works" style="
  2906. width: 200px;
  2907. height: 140px;
  2908. margin: 10px 10px 10px 0;
  2909. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  2910. <div class="workImg">
  2911. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  2912. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2913. " @click.stop="deleteWorks(w.wid)" alt />
  2914. </div>
  2915. <div class="worksName">
  2916. <div>{{ w.sName }}</div>
  2917. </div>
  2918. </div>
  2919. </div>
  2920. </div>
  2921. <div v-if="tType &&
  2922. ((tType == 2 && sIsOpen == true) ||
  2923. tType == 1 ||
  2924. tType == 4) &&
  2925. tool.tool.indexOf(41) != -1
  2926. ">
  2927. <AnswerData2 v-if="worksStudent.length &&
  2928. worksStudent[toolIndex].length > 0
  2929. " :problemJson="tool.selectJson.answer" :people="worksStudent[toolIndex]"></AnswerData2>
  2930. </div>
  2931. <div v-if="tType &&
  2932. ((tType == 2 && sIsOpen == true) ||
  2933. tType == 1 ||
  2934. tType == 4) &&
  2935. tool.tool.indexOf(41) != -1
  2936. " class="worksBox">
  2937. <div class="zuoyeYulan" v-if="worksStudent.length &&
  2938. worksStudent[toolIndex].length > 0
  2939. ">
  2940. <div class="worksTop">
  2941. <div>作业预览</div>
  2942. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  2943. isCloseList[toolIndex].isClose == 0
  2944. ">
  2945. 收缩
  2946. </div>
  2947. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2948. 展开
  2949. </div>
  2950. </div>
  2951. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2952. </div>
  2953. <div class="worksDetailBox" v-if="worksStudent.length &&
  2954. worksStudent[toolIndex].length > 0
  2955. ">
  2956. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2957. 0
  2958. ? worksStudent[toolIndex]
  2959. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  2960. @click="openXz(w, toolIndex)">
  2961. {{ w.sName }}
  2962. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  2963. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  2964. </div>
  2965. <!-- <div
  2966. class="works"
  2967. style="
  2968. width: 200px;
  2969. height: 140px;
  2970. margin: 10px 10px 10px 0;
  2971. border-radius: 15px;
  2972. box-shadow: 0 0 6px 1px #dfdada;
  2973. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  2974. :class="w.type == 5 ? 'isTypeOne' : ''">
  2975. <div class="workImg">
  2976. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  2977. </div>
  2978. <div class="worksName">
  2979. <div>{{ w.sName }}</div>
  2980. </div>
  2981. </div> -->
  2982. </div>
  2983. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2984. 未提交
  2985. </div>
  2986. <div class="noWorksS">
  2987. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2988. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)">
  2989. {{ s.student }}
  2990. </div>
  2991. </div>
  2992. </div>
  2993. <div v-if="tType &&
  2994. tType == 2 &&
  2995. !sIsOpen &&
  2996. tool.tool.indexOf(41) != -1
  2997. " class="worksBox">
  2998. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  2999. <span>作业预览</span>
  3000. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3001. </div>
  3002. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  3003. <div class="works" style="
  3004. width: 200px;
  3005. height: 140px;
  3006. margin: 10px 10px 10px 0;
  3007. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  3008. <div class="workImg">
  3009. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  3010. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3011. " @click.stop="deleteWorks(w.wid)" alt />
  3012. </div>
  3013. <div class="worksName">
  3014. <div>{{ w.sName }}</div>
  3015. </div>
  3016. </div>
  3017. </div>
  3018. </div>
  3019. <div v-if="false" class="xuan_right_box">
  3020. <div class="tool_right_box" v-for="(item, index) in tool.sentenceList" :key="index">
  3021. <div>
  3022. <span>{{ index + 1 + "、" + item.sentenceTitle }}</span>
  3023. </div>
  3024. <div class="right_box_xuan">
  3025. <span>正确率</span>
  3026. <span>{{
  3027. (checkJson[toolIndex][index].right
  3028. ? checkJson[toolIndex][index].right
  3029. : 0) + "%"
  3030. }}</span>
  3031. </div>
  3032. <div class="right_box_xuan">
  3033. <span>答对人数</span>
  3034. <span>{{
  3035. checkJson[toolIndex][index].rightPerson.length
  3036. }}</span>
  3037. </div>
  3038. </div>
  3039. </div>
  3040. <div v-if="tType &&
  3041. ((tType == 2 && sIsOpen == true) ||
  3042. tType == 1 ||
  3043. tType == 4) &&
  3044. tool.tool.indexOf(47) != -1
  3045. ">
  3046. <AnswerData v-if="checkJson[toolIndex].length &&
  3047. (tool.sentenceList || tool.sentenceList.length > 0)
  3048. " :people="checkJson[toolIndex]"></AnswerData>
  3049. </div>
  3050. <div v-if="tType &&
  3051. tType == 2 &&
  3052. !sIsOpen &&
  3053. tool.tool.indexOf(47) != -1
  3054. " class="worksBox">
  3055. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  3056. <span>作业预览</span>
  3057. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3058. </div>
  3059. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  3060. <div class="works" style="
  3061. width: 200px;
  3062. height: 140px;
  3063. margin: 10px 10px 10px 0;
  3064. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  3065. <!-- @click="openXz(w, toolIndex)" -->
  3066. <div class="workImg" @click="openSen(w, toolIndex)">
  3067. <img src="../assets/icon/works/noImg.png" alt />
  3068. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3069. " @click.stop="deleteWorks(w.wid)" alt />
  3070. </div>
  3071. <div class="worksName">
  3072. <div>
  3073. {{ w.sName }}
  3074. </div>
  3075. </div>
  3076. </div>
  3077. </div>
  3078. </div>
  3079. <div v-if="tType &&
  3080. ((tType == 2 && sIsOpen == true) ||
  3081. tType == 1 ||
  3082. tType == 4) &&
  3083. tool.tool.indexOf(47) != -1
  3084. " class="worksBox">
  3085. <div class="zuoyeYulan" v-if="worksStudent.length &&
  3086. worksStudent[toolIndex].length > 0
  3087. ">
  3088. <div class="worksTop">
  3089. <div>作业预览</div>
  3090. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  3091. isCloseList[toolIndex].isClose == 0
  3092. ">
  3093. 收缩
  3094. </div>
  3095. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3096. 展开
  3097. </div>
  3098. </div>
  3099. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3100. </div>
  3101. <div class="worksDetailBox" v-if="worksStudent.length &&
  3102. worksStudent[toolIndex].length > 0
  3103. ">
  3104. <!-- @click="openXz(w, toolIndex)" -->
  3105. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3106. 0
  3107. ? worksStudent[toolIndex]
  3108. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  3109. @click="openSen(w, toolIndex)">
  3110. {{ w.sName }}
  3111. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  3112. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  3113. </div>
  3114. </div>
  3115. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3116. 未提交
  3117. </div>
  3118. <div class="noWorksS">
  3119. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3120. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)">
  3121. {{ s.student }}
  3122. </div>
  3123. </div>
  3124. </div>
  3125. <div v-if="tType &&
  3126. ((tType == 2 && sIsOpen == true) ||
  3127. tType == 1 ||
  3128. tType == 4) &&
  3129. tool.tool.indexOf(48) != -1
  3130. " class="worksBox">
  3131. <div class="zuoyeYulan" v-if="worksStudent.length &&
  3132. worksStudent[toolIndex].length > 0
  3133. ">
  3134. <div class="worksTop">
  3135. <div>作业预览</div>
  3136. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  3137. isCloseList[toolIndex].isClose == 0
  3138. ">
  3139. 收缩
  3140. </div>
  3141. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3142. 展开
  3143. </div>
  3144. </div>
  3145. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3146. </div>
  3147. <div class="worksDetailBox" v-if="worksStudent.length &&
  3148. worksStudent[toolIndex].length > 0
  3149. ">
  3150. <div class="works" style="
  3151. width: 200px;
  3152. height: 140px;
  3153. margin: 10px 10px 10px 0;
  3154. border-radius: 15px;
  3155. box-shadow: 0 0 6px 1px #dfdada;
  3156. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3157. 0
  3158. ? worksStudent[toolIndex]
  3159. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  3160. <div class="workImg">
  3161. <img :src="word" @click="openTable(w)" alt />
  3162. <!-- @click="openFile(w.works)" -->
  3163. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3164. rightW:
  3165. w.userid == userid ||
  3166. tType == 1 ||
  3167. tType == 4 ||
  3168. w.ateacher == userid,
  3169. }">
  3170. {{ JSON.parse(w.score).wScore }}分
  3171. </div>
  3172. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3173. :class="{
  3174. rightW:
  3175. w.userid == userid ||
  3176. tType == 1 ||
  3177. tType == 4 ||
  3178. w.ateacher == userid,
  3179. }">
  3180. 评分
  3181. </div>
  3182. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3183. " @click.stop="deleteWorks(w.wid)" alt />
  3184. </div>
  3185. <div class="comment" style="min-width: 200px">
  3186. <div class="worksName">
  3187. <div>{{ w.sName }}</div>
  3188. </div>
  3189. <div class="commentList">
  3190. <div class="commentList">
  3191. <div class="commentImg" @click="
  3192. isLikes(w.wid, userid, 1, null, w.isLikes)
  3193. ">
  3194. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3195. </div>
  3196. <div>{{ w.likesCount }}</div>
  3197. </div>
  3198. <div class="commentList" style="margin-right: 15px">
  3199. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3200. <img src="../assets/icon/comment/comment.png" alt="" />
  3201. </div>
  3202. <div>{{ w.commentCount }}</div>
  3203. </div>
  3204. </div>
  3205. </div>
  3206. </div>
  3207. </div>
  3208. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3209. 未提交
  3210. </div>
  3211. <div class="noWorksS">
  3212. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3213. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)">
  3214. {{ s.student }}
  3215. </div>
  3216. </div>
  3217. </div>
  3218. <div v-if="tType &&
  3219. tType == 2 &&
  3220. !sIsOpen &&
  3221. tool.tool.indexOf(48) != -1
  3222. " class="worksBox">
  3223. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  3224. <span>作业预览</span>
  3225. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3226. </div>
  3227. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  3228. <div class="works" style="
  3229. width: 200px;
  3230. height: 140px;
  3231. margin: 10px 10px 10px 0;
  3232. box-shadow: 0 0 6px 1px #dfdada;
  3233. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  3234. <div class="workImg">
  3235. <img :src="word" @click="openTable(w)" alt />
  3236. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3237. rightW:
  3238. w.userid == userid || tType == 1 || tType == 4,
  3239. }">
  3240. {{ JSON.parse(w.score).wScore }}分
  3241. </div>
  3242. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3243. :class="{
  3244. rightW:
  3245. w.userid == userid || tType == 1 || tType == 4,
  3246. }">
  3247. 评分
  3248. </div>
  3249. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3250. " @click.stop="deleteWorks(w.wid)" alt />
  3251. </div>
  3252. <div class="worksName">
  3253. <div>{{ w.sName }}</div>
  3254. </div>
  3255. </div>
  3256. </div>
  3257. </div>
  3258. <div v-if="tType &&
  3259. ((tType == 2 && sIsOpen == true) ||
  3260. tType == 1 ||
  3261. tType == 4) &&
  3262. tool.tool.indexOf(52) != -1
  3263. " class="worksBox">
  3264. <div class="zuoyeYulan" v-if="worksStudent.length &&
  3265. worksStudent[toolIndex].length > 0
  3266. ">
  3267. <div class="worksTop">
  3268. <div>作业预览</div>
  3269. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  3270. isCloseList[toolIndex].isClose == 0
  3271. ">
  3272. 收缩
  3273. </div>
  3274. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3275. 展开
  3276. </div>
  3277. </div>
  3278. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3279. </div>
  3280. <div class="worksDetailBox" v-if="worksStudent.length &&
  3281. worksStudent[toolIndex].length > 0
  3282. ">
  3283. <div class="works" style="
  3284. width: 200px;
  3285. height: 140px;
  3286. margin: 10px 10px 10px 0;
  3287. border-radius: 15px;
  3288. box-shadow: 0 0 6px 1px #dfdada;
  3289. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3290. 0
  3291. ? worksStudent[toolIndex]
  3292. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  3293. <div class="workImg">
  3294. <img :src="word" @click="openWord(w)" alt />
  3295. <!-- @click="openFile(w.works)" -->
  3296. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3297. rightW:
  3298. w.userid == userid ||
  3299. tType == 1 ||
  3300. tType == 4 ||
  3301. w.ateacher == userid,
  3302. }">
  3303. {{ JSON.parse(w.score).wScore }}分
  3304. </div>
  3305. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3306. :class="{
  3307. rightW:
  3308. w.userid == userid ||
  3309. tType == 1 ||
  3310. tType == 4 ||
  3311. w.ateacher == userid,
  3312. }">
  3313. 评分
  3314. </div>
  3315. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3316. " @click.stop="deleteWorks(w.wid)" alt />
  3317. </div>
  3318. <div class="comment" style="min-width: 200px">
  3319. <div class="worksName">
  3320. <div>{{ w.sName }}</div>
  3321. </div>
  3322. <div class="commentList">
  3323. <div class="commentList">
  3324. <div class="commentImg" @click="
  3325. isLikes(w.wid, userid, 1, null, w.isLikes)
  3326. ">
  3327. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3328. </div>
  3329. <div>{{ w.likesCount }}</div>
  3330. </div>
  3331. <div class="commentList" style="margin-right: 15px">
  3332. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3333. <img src="../assets/icon/comment/comment.png" alt="" />
  3334. </div>
  3335. <div>{{ w.commentCount }}</div>
  3336. </div>
  3337. </div>
  3338. </div>
  3339. </div>
  3340. </div>
  3341. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3342. 未提交
  3343. </div>
  3344. <div class="noWorksS">
  3345. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3346. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)">
  3347. {{ s.student }}
  3348. </div>
  3349. </div>
  3350. </div>
  3351. <div v-if="tType &&
  3352. tType == 2 &&
  3353. !sIsOpen &&
  3354. tool.tool.indexOf(52) != -1
  3355. " class="worksBox">
  3356. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  3357. <span>作业预览</span>
  3358. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3359. </div>
  3360. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  3361. <div class="works" style="
  3362. width: 200px;
  3363. height: 140px;
  3364. margin: 10px 10px 10px 0;
  3365. box-shadow: 0 0 6px 1px #dfdada;
  3366. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  3367. <div class="workImg">
  3368. <img :src="word" @click="openWord(w)" alt />
  3369. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3370. rightW:
  3371. w.userid == userid || tType == 1 || tType == 4,
  3372. }">
  3373. {{ JSON.parse(w.score).wScore }}分
  3374. </div>
  3375. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3376. :class="{
  3377. rightW:
  3378. w.userid == userid || tType == 1 || tType == 4,
  3379. }">
  3380. 评分
  3381. </div>
  3382. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3383. " @click.stop="deleteWorks(w.wid)" alt />
  3384. </div>
  3385. <div class="worksName">
  3386. <div>{{ w.sName }}</div>
  3387. </div>
  3388. </div>
  3389. </div>
  3390. </div>
  3391. <div v-if="tool.tool.indexOf(49) != -1" class="xuan_right_box">
  3392. <div v-if="courseDetail.userid == userid" style="display: flex; justify-content: flex-end">
  3393. <el-button type="primary" size="small" @click="addTools(49, toolIndex, taskCount)">分组设置</el-button>
  3394. </div>
  3395. <div v-if="groupStudentUid[toolIndex]" class="group_staic_box">
  3396. <div v-for="(gp, gd) in tool.groupJson.group" :key="gd" class="group_staic">
  3397. <span> {{ gp.name }}</span>
  3398. <span>
  3399. 目前人数{{
  3400. groupStudentUid[toolIndex][gd].length
  3401. }}人</span>
  3402. </div>
  3403. </div>
  3404. </div>
  3405. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  3406. <div class="zuoyeYulan" v-if="worksStudent.length &&
  3407. worksStudent[toolIndex].length > 0
  3408. ">
  3409. <span>作业预览</span>
  3410. </div>
  3411. <div>
  3412. <div class="group_workBox" v-for="(g, gindex) in tool.groupJson.group" :key="gindex">
  3413. <div class="group_box" v-if="groupStudentUid[toolIndex] &&
  3414. worksStudent[toolIndex] &&
  3415. (worksStudent[toolIndex][gindex].length ||
  3416. groupStudentUid[toolIndex][gindex].indexOf(
  3417. userid
  3418. ) != -1)
  3419. ">
  3420. <div class="group_title">
  3421. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  3422. <div class="group_name">{{ g.name }}</div>
  3423. </el-tooltip>
  3424. <el-button type="primary" v-if="groupStudentUid[toolIndex][gindex].indexOf(
  3425. userid
  3426. ) != -1
  3427. " @click="groupUpload(toolIndex, taskCount, gindex)">上传作业</el-button>
  3428. </div>
  3429. <div class="group_work">
  3430. <div class="works" style="
  3431. width: 200px;
  3432. height: 140px;
  3433. margin: 10px 10px 10px 0;
  3434. border-radius: 15px;
  3435. box-shadow: 0 0 6px 1px #dfdada;
  3436. " v-for="(w, wIndex) in worksStudent[toolIndex][
  3437. gindex
  3438. ]" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  3439. <div class="workImg" v-if="w.type == 0">
  3440. <img :src="w.works" @click="previewImg(w.works)" alt />
  3441. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3442. rightW:
  3443. w.userid == userid ||
  3444. tType == 1 ||
  3445. tType == 4 ||
  3446. w.ateacher == userid,
  3447. }">
  3448. {{ JSON.parse(w.score).wScore }}分
  3449. </div>
  3450. <div class="answerScore" @click.stop="openScore(w)"
  3451. v-else-if="courseDetail.userid == userid" :class="{
  3452. rightW:
  3453. w.userid == userid ||
  3454. tType == 1 ||
  3455. tType == 4 ||
  3456. w.ateacher == userid,
  3457. }">
  3458. 评分
  3459. </div>
  3460. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid ||
  3461. tType == 1 ||
  3462. tType == 4
  3463. " @click.stop="deleteWorks(w.wid)" alt />
  3464. </div>
  3465. <div class="workImg" v-if="w.type == 1">
  3466. <img :src="word" @click="openFile(w.works)" alt />
  3467. <!-- @click="openFile(w.works)" -->
  3468. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3469. rightW:
  3470. w.userid == userid ||
  3471. tType == 1 ||
  3472. tType == 4 ||
  3473. w.ateacher == userid,
  3474. }">
  3475. {{ JSON.parse(w.score).wScore }}分
  3476. </div>
  3477. <div class="answerScore" @click.stop="openScore(w)"
  3478. v-else-if="courseDetail.userid == userid" :class="{
  3479. rightW:
  3480. w.userid == userid ||
  3481. tType == 1 ||
  3482. tType == 4 ||
  3483. w.ateacher == userid,
  3484. }">
  3485. 评分
  3486. </div>
  3487. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid ||
  3488. tType == 1 ||
  3489. tType == 4
  3490. " @click.stop="deleteWorks(w.wid)" alt />
  3491. </div>
  3492. <div class="workImg" v-if="w.type == 3">
  3493. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  3494. <!-- @click="openVideo(w.works)" -->
  3495. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3496. rightW:
  3497. w.userid == userid ||
  3498. tType == 1 ||
  3499. tType == 4 ||
  3500. w.ateacher == userid,
  3501. }">
  3502. {{ JSON.parse(w.score).wScore }}分
  3503. </div>
  3504. <div class="answerScore" @click.stop="openScore(w)"
  3505. v-else-if="courseDetail.userid == userid" :class="{
  3506. rightW:
  3507. w.userid == userid ||
  3508. tType == 1 ||
  3509. tType == 4 ||
  3510. w.ateacher == userid,
  3511. }">
  3512. 评分
  3513. </div>
  3514. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid ||
  3515. tType == 1 ||
  3516. tType == 4
  3517. " @click.stop="deleteWorks(w.wid)" alt />
  3518. </div>
  3519. <div class="workImg" v-if="w.type == 12">
  3520. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  3521. <!-- @click="openVideo(w.works)" -->
  3522. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3523. rightW:
  3524. w.userid == userid ||
  3525. tType == 1 ||
  3526. tType == 4 ||
  3527. w.ateacher == userid,
  3528. }">
  3529. {{ JSON.parse(w.score).wScore }}分
  3530. </div>
  3531. <div class="answerScore" @click.stop="openScore(w)"
  3532. v-else-if="courseDetail.userid == userid" :class="{
  3533. rightW:
  3534. w.userid == userid ||
  3535. tType == 1 ||
  3536. tType == 4 ||
  3537. w.ateacher == userid,
  3538. }">
  3539. 评分
  3540. </div>
  3541. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid ||
  3542. tType == 1 ||
  3543. tType == 4
  3544. " @click.stop="deleteWorks(w.wid)" alt />
  3545. </div>
  3546. <div class="comment" style="min-width: 200px">
  3547. <div class="worksName">
  3548. <div>{{ w.sName }}</div>
  3549. </div>
  3550. <div class="commentList">
  3551. <div class="commentList">
  3552. <div class="commentImg" @click="
  3553. isLikes(
  3554. w.wid,
  3555. userid,
  3556. 1,
  3557. null,
  3558. w.isLikes
  3559. )
  3560. ">
  3561. <img :src="w.isLikes == true ? likes : noLikes
  3562. " alt="" />
  3563. </div>
  3564. <div>{{ w.likesCount }}</div>
  3565. </div>
  3566. <div class="commentList" style="margin-right: 15px">
  3567. <div class="commentImg" @click="
  3568. commentOther(
  3569. w,
  3570. toolIndex,
  3571. wIndex,
  3572. gindex
  3573. )
  3574. ">
  3575. <img src="../assets/icon/comment/comment.png" alt="" />
  3576. </div>
  3577. <div>{{ w.commentCount }}</div>
  3578. </div>
  3579. </div>
  3580. </div>
  3581. </div>
  3582. </div>
  3583. </div>
  3584. </div>
  3585. </div>
  3586. </div>
  3587. </div>
  3588. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  3589. 上传文件
  3590. <input
  3591. type="file"
  3592. accept="image/png, image/gif, image/jpeg"
  3593. style="display: none"
  3594. @change="beforeUpload1($event, 2, index)"
  3595. />
  3596. </div>-->
  3597. </div>
  3598. </div>
  3599. <div class="vedioBox" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  3600. .eList &&
  3601. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  3602. .eList.length &&
  3603. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  3604. .eList.length > 0 &&
  3605. tType != 2
  3606. ">
  3607. <div class="queTop" style="
  3608. font-size: 25px;
  3609. padding: 15px 0 15px 30px;
  3610. font-weight: bold;
  3611. ">
  3612. <!-- <div class="question" style="width: 30px">
  3613. <img src="../assets/icon/toolIcon.png" alt />
  3614. </div>
  3615. <div class="queTitle">
  3616. <div>工具</div>
  3617. </div>-->
  3618. 评一评
  3619. </div>
  3620. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  3621. <div class="elist_input">
  3622. <div v-for="(eItem, eIndex) in chapInfoList[courseType]
  3623. .chapterInfo[0].taskJson[taskCount].eList" :key="eIndex" class="elist_input_box">
  3624. <div style="width: 95%">
  3625. <div style="
  3626. display: flex;
  3627. flex-direction: row;
  3628. flex-wrap: nowrap;
  3629. align-items: center;
  3630. ">
  3631. <div style="max-width: calc(100% - 285px)">
  3632. <span>{{ eItem.value }}</span>
  3633. </div>
  3634. <div style="
  3635. padding-left: 25px;
  3636. display: flex;
  3637. flex-direction: row;
  3638. align-items: center;
  3639. ">
  3640. <el-rate v-model="eItem.score" :colors="colors" disabled></el-rate>
  3641. </div>
  3642. </div>
  3643. <div class="elist_inptu_text" style="padding-left: 10px">
  3644. <span v-if="eItem.detail != ''">{{
  3645. eItem.detail
  3646. }}</span>
  3647. <span v-else style="color: #b2b1b3; font-size: 14px">暂无描述...</span>
  3648. </div>
  3649. </div>
  3650. </div>
  3651. </div>
  3652. <div v-if="evalua" style="
  3653. border: 1px solid #e5e5e5;
  3654. max-width: 650px;
  3655. width: 100%;
  3656. margin-top: 20px;
  3657. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3658. ">
  3659. <div class="e_add_top">
  3660. <div class="e_add_title">
  3661. <span>目标管理名称</span>
  3662. <span>{{ eTitle }}</span>
  3663. <img src="../assets/line.png" class="cru_line" style="
  3664. width: 125px;
  3665. height: 20px;
  3666. bottom: -10px;
  3667. left: 120px;
  3668. " />
  3669. <!-- <el-input
  3670. v-model="eTitle"
  3671. placeholder="请输入名称"
  3672. @change="setMindData"
  3673. ></el-input>-->
  3674. </div>
  3675. </div>
  3676. <div class="e_add_content">
  3677. <div class="e_add_list_pbox">
  3678. <div class="e_add_list_pbox_title">
  3679. <span class="type_title">切换模式</span>
  3680. <div class="type_content">
  3681. <span :class="{ active: typeMode == 1 }" @click="typeMode = 1">目标树</span>
  3682. <span :class="{ active: typeMode == 2 }" @click="typeMode = 2">目标罗盘</span>
  3683. <span :class="{ active: typeMode == 3 }" @click="typeMode = 3">目标看板</span>
  3684. </div>
  3685. </div>
  3686. <div class="e_add_list_pbox_content">
  3687. <Mind :showBar="false" :mindData="data" style="width: 100%" v-show="typeMode == 1"></Mind>
  3688. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  3689. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%" v-if="typeMode == 3">
  3690. </SeeBoard>
  3691. </div>
  3692. </div>
  3693. </div>
  3694. </div>
  3695. </div>
  3696. </div>
  3697. <!-- <div
  3698. class="project_box"
  3699. style="margin-top: 15px; padding-bottom: 30px"
  3700. >
  3701. <div
  3702. style="
  3703. display: flex;
  3704. flex-wrap: nowrap;
  3705. flex-direction: column;
  3706. position: relative;
  3707. "
  3708. >
  3709. <div class="queTop">
  3710. <div class="question">
  3711. <img src="../assets/icon/homeWork.png" alt="" />
  3712. </div>
  3713. <div class="queTitle">
  3714. <div>作业提交<span>(提交图文视频等)</span></div>
  3715. <div>:任务:{{ task.task }}</div>
  3716. </div>
  3717. </div>
  3718. <div class="ediBottom">
  3719. <div
  3720. class="addEditor"
  3721. style="margin-top: 23px"
  3722. @click="openAddWork"
  3723. v-if="!isNoHomeWork"
  3724. >
  3725. 选择文件
  3726. </div>
  3727. <div
  3728. class="addEditor"
  3729. style="margin-top: 23px"
  3730. @click="openAddWork"
  3731. v-else
  3732. >
  3733. 已提交
  3734. </div>
  3735. </div>
  3736. </div>
  3737. </div>-->
  3738. </div>
  3739. </div>
  3740. <el-dialog title="作业提交" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  3741. :before-close="handleClose" class="dialog_change">
  3742. <div class="marginT">
  3743. <div>上传文件</div>
  3744. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  3745. <div class="up_photo">
  3746. <img src="../assets/icon/uploadImg.png" alt />
  3747. </div>
  3748. <!-- <input
  3749. type="file"
  3750. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  3751. style="display: none"
  3752. @change="beforeUpload1($event, 1)"
  3753. /> -->
  3754. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  3755. <!-- <input
  3756. type="file"
  3757. accept="image/*"
  3758. capture="camera"
  3759. style="display: none"
  3760. @change="beforeUpload1($event, 1)"
  3761. /> -->
  3762. </div>
  3763. <div class="chapter_add" style="
  3764. display: flex;
  3765. width: 100%;
  3766. flex-direction: row;
  3767. flex-wrap: wrap;
  3768. justify-content: flex-start;
  3769. padding: 15px 0;
  3770. " v-if="studyJuri[0].cover.length > 0">
  3771. <div class="upCover">
  3772. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  3773. <img :src="word" alt v-else-if="fileType == 1" />
  3774. <img :src="video" alt v-else-if="fileType == 2" />
  3775. <img :src="word2" alt v-else-if="fileType == 3" />
  3776. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  3777. <div class="deleteWord" @click="clean(1)">
  3778. <img src="../assets/icon/deleteWorks.png" alt />
  3779. </div>
  3780. </div>
  3781. </div>
  3782. </div>
  3783. <div class="upload_send" @click="addCourseWorks(taskCount)" v-if="!proVisible">
  3784. 提交
  3785. </div>
  3786. </el-dialog>
  3787. </div>
  3788. </div>
  3789. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4 || ispzType == 4">
  3790. <!-- 批 -->
  3791. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  3792. </div>
  3793. <div v-if="pzDialog == true" class="newDialogCss">
  3794. <div class="pzTop2">
  3795. <!-- <div>批注</div>
  3796. <div @click="pzDialog = false">
  3797. <img src="../assets/close1.png" alt="" />
  3798. </div> -->
  3799. <div class="checkbox">
  3800. <div class="check" style="font-size: 25px">评课笔记</div>
  3801. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  3802. </div>
  3803. </div>
  3804. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  3805. <div class="pzListBox" v-if="pzList && pzList.length">
  3806. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  3807. <div class="pzNavTop">
  3808. <div>批</div>
  3809. <div>
  3810. {{
  3811. pz.username && pz.username.length > 5
  3812. ? pz.username.substring(0, 5) + "..."
  3813. : pz.username
  3814. }}的批注
  3815. </div>
  3816. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  3817. 删除
  3818. </div>
  3819. </div>
  3820. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
  3821. <div class="pzContent" v-if="pz.type == '2'">
  3822. <audio :src="pz.content" controls="controls" ref="audio">
  3823. Your browser does not support the audio element.
  3824. </audio>
  3825. </div>
  3826. <div class="pzContent" v-if="pz.type == '3'">
  3827. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block" @click="previewImg(pz.content)" />
  3828. </div>
  3829. <div class="time">
  3830. {{ pz.time }}
  3831. </div>
  3832. </div>
  3833. </div>
  3834. <div class="noPz" v-else>
  3835. <img src="../assets/icon/noPz.png" alt="" />
  3836. </div>
  3837. <div class="addPzButton">
  3838. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  3839. 添加批注
  3840. </div>
  3841. <!-- <div class="img1">
  3842. <div @click="(addPzDialog = true), (pzType = 2)">
  3843. <img src="../assets/audio.png" /><span>音频</span>
  3844. </div>
  3845. </div> -->
  3846. </div>
  3847. </div>
  3848. </div>
  3849. <div v-if="addPzDialog == true" class="addDialogCss">
  3850. <div class="pzTop">
  3851. <div class="teacherPz">
  3852. <div class="teacherPzImg">
  3853. <img src="../assets/icon/teacherPz.png" alt="" />
  3854. </div>
  3855. <div style="margin-left: 10px; height: 25px">教师批注</div>
  3856. </div>
  3857. <div @click="addPzDialog = false">
  3858. <img src="../assets/close1.png" alt="" />
  3859. </div>
  3860. </div>
  3861. <div class="addPzBox">
  3862. <div class="addPzCheck">
  3863. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  3864. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  3865. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  3866. </div>
  3867. <div style="height: calc(100% - 95px)">
  3868. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  3869. v-if="pzType == 1"></textarea> -->
  3870. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  3871. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  3872. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  3873. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  3874. <div @click="addImg($event)">
  3875. <el-button type="primary">上传图片</el-button>
  3876. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  3877. @change="beforeUpload1($event, 4)" />
  3878. </div>
  3879. </div> -->
  3880. </div>
  3881. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  3882. 确定
  3883. </div>
  3884. </div>
  3885. </div>
  3886. <div v-if="proVisible" class="mask">
  3887. <div class="progressBox">
  3888. <!-- <div id="closePro" class="closeCss">
  3889. <img src="../assets/icon/close.png" alt />
  3890. </div> -->
  3891. <div class="lbox">
  3892. <img src="../assets/loading.gif" />上传中,请稍后
  3893. </div>
  3894. <div style="margin-bottom: 10px">
  3895. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  3896. </div>
  3897. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  3898. </div>
  3899. </div>
  3900. <div v-if="proVisible2" class="mask">
  3901. <div class="progressBox">
  3902. <div class="lbox">
  3903. <img src="../assets/loading.gif" />上传中,请稍后
  3904. </div>
  3905. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  3906. </div>
  3907. </div>
  3908. <el-dialog :visible.sync="pictureDialog" size="tiny">
  3909. <img width="100%" :src="dialogImageUrl" alt />
  3910. </el-dialog>
  3911. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  3912. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3913. <div>
  3914. <div class="a_add_title" style="
  3915. display: flex;
  3916. flex-direction: row;
  3917. align-items: center;
  3918. justify-content: center;
  3919. ">
  3920. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3921. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3922. </div>
  3923. <div class="a_addBox">
  3924. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3925. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3926. <div class="a_add_head">
  3927. <div style="display: flex">
  3928. {{ index1 + 1 + "、" }}
  3929. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  3930. </div>
  3931. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  3932. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3933. </div>
  3934. <div class="a_add_body">
  3935. <div class="a_add_input">
  3936. <el-radio-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '1' ||
  3937. !askJson.askJson[index1].type
  3938. ">
  3939. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  3940. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  3941. v-html="item2"></span></el-radio>
  3942. </el-radio-group>
  3943. <el-checkbox-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '2'">
  3944. <el-checkbox v-for="(item2, checkIndex1) in askJson.askJson[index1]
  3945. .checkList" :key="checkIndex1" :label="checkIndex1" :disabled="isAnswer" class="redioStyle"><span
  3946. v-html="item2"></span>
  3947. </el-checkbox>
  3948. </el-checkbox-group>
  3949. </div>
  3950. </div>
  3951. </div>
  3952. </div>
  3953. </div>
  3954. <span slot="footer" class="dialog-footer">
  3955. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  3956. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  3957. </span>
  3958. </el-dialog>
  3959. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5Teacher" :append-to-body="true"
  3960. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3961. <div>
  3962. <div class="w_name">
  3963. 学生姓名:<span>{{ sStudent.student }}</span>
  3964. </div>
  3965. <div class="a_add_title" style="
  3966. display: flex;
  3967. flex-direction: row;
  3968. align-items: center;
  3969. justify-content: center;
  3970. ">
  3971. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3972. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3973. </div>
  3974. <div class="a_addBox">
  3975. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3976. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3977. <div class="a_add_head">
  3978. <div style="display: flex">
  3979. {{ index1 + 1 + "、" }}
  3980. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  3981. </div>
  3982. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  3983. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3984. </div>
  3985. <div class="a_add_body">
  3986. <div class="a_add_input">
  3987. <el-radio-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '1' ||
  3988. !askJson.askJson[index1].type
  3989. ">
  3990. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  3991. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  3992. v-html="item2"></span></el-radio>
  3993. </el-radio-group>
  3994. <el-checkbox-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '2'">
  3995. <el-checkbox v-for="(item2, checkIndex1) in askJson.askJson[index1]
  3996. .checkList" :key="checkIndex1" :label="checkIndex1" :disabled="isAnswer" class="redioStyle"><span
  3997. v-html="item2"></span>
  3998. </el-checkbox>
  3999. </el-checkbox-group>
  4000. </div>
  4001. </div>
  4002. </div>
  4003. </div>
  4004. </div>
  4005. <span slot="footer" class="dialog-footer">
  4006. <el-button @click="dialogVisible5Teacher = false" v-show="noteName == ''">取 消</el-button>
  4007. <el-button type="primary" @click="addStudentAskTeacher" v-show="noteName == ''">确 定</el-button>
  4008. </span>
  4009. </el-dialog>
  4010. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  4011. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  4012. <div>
  4013. <!-- <div class="a_add_title" style="
  4014. display: flex;
  4015. flex-direction: row;
  4016. align-items: center;
  4017. justify-content: center;
  4018. ">
  4019. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  4020. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  4021. </div> -->
  4022. <div class="a_addBox">
  4023. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  4024. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4025. <div class="a_add_head">
  4026. <div style="display: flex">
  4027. {{ index1 + 1 + "、" }}
  4028. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px; min-width: 70px">
  4029. (单选题)
  4030. </div>
  4031. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px; min-width: 70px">
  4032. (多选题)
  4033. </div>
  4034. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  4035. </div>
  4036. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  4037. style="height: 300px; margin-top: 10px; max-width: 100%" />
  4038. </div>
  4039. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  4040. testJson.testJson[index1].timuList.length
  4041. ">
  4042. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4043. @click.stop="previewImg(timg.src)">
  4044. <img :src="timg.src" alt="" />
  4045. </div>
  4046. </div>
  4047. <div class="a_add_body">
  4048. <div class="a_add_input">
  4049. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  4050. <div class="radioBox">
  4051. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4052. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  4053. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  4054. <div class="inImg" @click.stop="previewImg(item2.src)">
  4055. <img :src="item2.src" alt="" />
  4056. </div>
  4057. </div>
  4058. <span v-else v-html="item2"></span>
  4059. </el-radio>
  4060. </div>
  4061. </el-radio-group>
  4062. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  4063. <div class="radioBox">
  4064. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  4065. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  4066. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  4067. <div class="inImg" @click.stop="previewImg(item2.src)">
  4068. <img :src="item2.src" alt="" />
  4069. </div>
  4070. </div>
  4071. <span v-else v-html="item2"></span>
  4072. </el-checkbox>
  4073. </div>
  4074. </el-checkbox-group>
  4075. </div>
  4076. </div>
  4077. </div>
  4078. </div>
  4079. </div>
  4080. <span slot="footer" class="dialog-footer">
  4081. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  4082. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  4083. </span>
  4084. </el-dialog>
  4085. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoiceTeacher"
  4086. :append-to-body="true" width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  4087. <div>
  4088. <div class="w_name">
  4089. 学生姓名:<span>{{ sStudent.student }}</span>
  4090. </div>
  4091. <div class="a_addBox">
  4092. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  4093. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4094. <div class="a_add_head">
  4095. <div style="display: flex">
  4096. {{ index1 + 1 + "、" }}
  4097. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px; min-width: 70px">
  4098. (单选题)
  4099. </div>
  4100. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px; min-width: 70px">
  4101. (多选题)
  4102. </div>
  4103. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  4104. </div>
  4105. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  4106. style="height: 300px; margin-top: 10px; max-width: 100%" />
  4107. </div>
  4108. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  4109. testJson.testJson[index1].timuList.length
  4110. ">
  4111. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4112. @click.stop="previewImg(timg.src)">
  4113. <img :src="timg.src" alt="" />
  4114. </div>
  4115. </div>
  4116. <div class="a_add_body">
  4117. <div class="a_add_input">
  4118. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  4119. <div class="radioBox">
  4120. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4121. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  4122. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  4123. <div class="inImg" @click.stop="previewImg(item2.src)">
  4124. <img :src="item2.src" alt="" />
  4125. </div>
  4126. </div>
  4127. <span v-else v-html="item2"></span>
  4128. </el-radio>
  4129. </div>
  4130. </el-radio-group>
  4131. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  4132. <div class="radioBox">
  4133. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  4134. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  4135. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  4136. <div class="inImg" @click.stop="previewImg(item2.src)">
  4137. <img :src="item2.src" alt="" />
  4138. </div>
  4139. </div>
  4140. <span v-else v-html="item2"></span>
  4141. </el-checkbox>
  4142. </div>
  4143. </el-checkbox-group>
  4144. </div>
  4145. </div>
  4146. </div>
  4147. </div>
  4148. </div>
  4149. <span slot="footer" class="dialog-footer">
  4150. <el-button @click="dialogVisibleChoiceTeacher = false" v-show="noteName == ''">取 消</el-button>
  4151. <el-button type="primary" @click="addStudentTestTeacher" v-show="noteName == ''">确 定</el-button>
  4152. </span>
  4153. </el-dialog>
  4154. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  4155. :before-close="handleClose" class="dialog_diy textCss">
  4156. <el-form style="font-size: 20px">
  4157. <el-form-item label="文本标题" class="textTitle">
  4158. <div style="font-size: 20px">{{ text.name }}</div>
  4159. </el-form-item>
  4160. <div>富文本内容</div>
  4161. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  4162. </el-form>
  4163. <span slot="footer" class="dialog-footer">
  4164. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  4165. </span>
  4166. </el-dialog>
  4167. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  4168. :class="{ fullStyle: full }">
  4169. <div slot="title" class="header-title">
  4170. <div style="color: #fff">文件预览</div>
  4171. <div style="position: absolute; top: 19px; right: 50px">
  4172. <img src="../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  4173. </div>
  4174. </div>
  4175. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4176. :class="{ fullStyle: full }"></pdf>
  4177. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4178. </el-dialog>
  4179. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  4180. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
  4181. </el-dialog>
  4182. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px" :before-close="handleClose"
  4183. class="dialog_diy notice">
  4184. <div>此功能暂未开放!</div>
  4185. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  4186. </el-dialog>
  4187. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  4188. :before-close="handleClose" class="dialog_diy">
  4189. <div>
  4190. <div style="
  4191. display: flex;
  4192. flex-wrap: nowrap;
  4193. flex-direction: column;
  4194. position: relative;
  4195. ">
  4196. <div class="queTop" style="padding: 20px 0 20px 0">
  4197. <div class="question">
  4198. <img src="../assets/icon/question.png" alt />
  4199. </div>
  4200. <div class="queTitle">
  4201. <div style="width: 90px; min-width: 90px">提问:</div>
  4202. <div>{{ answerQ }}</div>
  4203. </div>
  4204. </div>
  4205. <div class="ediBottom">
  4206. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  4207. v-model="questionAnswer"></textarea>
  4208. </div>
  4209. </div>
  4210. </div>
  4211. <div slot="footer">
  4212. <el-button @click="answerDialogVisible = false">取 消</el-button>
  4213. <el-button type="primary" @click="addQuestion">提 交</el-button>
  4214. </div>
  4215. </el-dialog>
  4216. <el-dialog title="问答" :visible.sync="answerDialogVisibleTeacher" :append-to-body="true" width="800px"
  4217. :before-close="handleClose" class="dialog_diy">
  4218. <div>
  4219. <div class="w_name">
  4220. 学生姓名:<span>{{ sStudent.student }}</span>
  4221. </div>
  4222. <div style="
  4223. display: flex;
  4224. flex-wrap: nowrap;
  4225. flex-direction: column;
  4226. position: relative;
  4227. ">
  4228. <div class="queTop" style="padding: 20px 0 20px 0">
  4229. <div class="question">
  4230. <img src="../assets/icon/question.png" alt />
  4231. </div>
  4232. <div class="queTitle">
  4233. <div style="width: 90px; min-width: 90px">提问:</div>
  4234. <div>{{ answerQ }}</div>
  4235. </div>
  4236. </div>
  4237. <div class="ediBottom">
  4238. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  4239. v-model="questionAnswer"></textarea>
  4240. </div>
  4241. </div>
  4242. </div>
  4243. <div slot="footer">
  4244. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  4245. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  4246. </div>
  4247. </el-dialog>
  4248. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  4249. :before-close="handleClose" class="dialog_diy">
  4250. <div>
  4251. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  4252. </div>
  4253. <div slot="footer">
  4254. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  4255. </div>
  4256. </el-dialog>
  4257. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  4258. class="dialog_diy">
  4259. <div>
  4260. <div class="open_box">
  4261. <div class="switch_box">
  4262. <span>允许学生查看所有作业</span>
  4263. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  4264. </div>
  4265. <div class="switch_box" v-if="courseDetail.userid == userid ||
  4266. (courseDetail.course_teacher &&
  4267. courseDetail.course_teacher.indexOf(userid) != -1)
  4268. ">
  4269. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  4270. <span>禁止学生查看所有阶段</span>
  4271. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  4272. </div>
  4273. <div class="switch_box" v-if="courseDetail.userid == userid">
  4274. <span>开启跟随模式</span>
  4275. <el-switch v-model="IsFollow" active-text="" class="switchCss" @change="updateFollow"></el-switch>
  4276. </div>
  4277. </div>
  4278. </div>
  4279. <div slot="footer">
  4280. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  4281. </div>
  4282. </el-dialog>
  4283. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  4284. class="dialog_diy1">
  4285. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  4286. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4287. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  4288. </div>
  4289. <div slot="footer">
  4290. <el-button style="background: #409efe; color: #fff"
  4291. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  4292. 关 闭</el-button>
  4293. </div>
  4294. </el-dialog>
  4295. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  4296. :before-close="handleClose" class="dialog_diy">
  4297. <div class="commentTop">
  4298. <div class="studentDetail">
  4299. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  4300. <div class="nameAndTime">
  4301. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  4302. <div>{{ commentDetail.time }}</div>
  4303. </div>
  4304. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="commentDetail.works &&
  4305. commentDetail.type == 0 &&
  4306. (tType == 1 || tType == 4)
  4307. " @click="
  4308. showPicturePaint(
  4309. commentDetail.img ? commentDetail.img : commentDetail.works
  4310. )
  4311. ">
  4312. 教师批注
  4313. </div>
  4314. </div>
  4315. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  4316. {{ JSON.parse(commentDetail.works)[0].answer }}
  4317. </div>
  4318. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  4319. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  4320. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4321. :class="{ fullStyle: full }"></pdf>
  4322. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4323. </div>
  4324. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  4325. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" style="right: 105px" />
  4326. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  4327. </div>
  4328. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  4329. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  4330. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4331. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  4332. </div>
  4333. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 10">
  4334. <div class="cont" v-html="commentDetail.works.text"></div>
  4335. </div>
  4336. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  4337. @click="downloadFile(commentDetail.works)">
  4338. <img src="../assets/icon/codeFile.png" />
  4339. <div>点击下载文件</div>
  4340. </div>
  4341. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  4342. <div v-html="JSON.parse(commentDetail.works).text"></div>
  4343. </div>
  4344. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  4345. <div class="evalCss">
  4346. <div class="nav">请选择星星进行评分</div>
  4347. <div class="middleBox" v-if="eScore.eStar">
  4348. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4349. <div class="nameAndrate">
  4350. <div>{{ e.value }}</div>
  4351. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  4352. </div>
  4353. <div v-if="e.detail">{{ e.detail }}</div>
  4354. </div>
  4355. <div class="bz">
  4356. <textarea disabled rows="4" class="pj" style="
  4357. padding: 10px 5px;
  4358. width: 70%;
  4359. background: #f7f6f9;
  4360. font-size: 14px;
  4361. text-indent: 10px;
  4362. color: #000;
  4363. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4364. </div>
  4365. </div>
  4366. </div>
  4367. </div>
  4368. <div class="comment">
  4369. <div class="commentList">
  4370. <div class="commentImg">
  4371. <img @click="
  4372. isLikes(
  4373. commentDetail.wid,
  4374. userid,
  4375. 1,
  4376. null,
  4377. commentDetail.isLikes
  4378. )
  4379. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  4380. </div>
  4381. <div>{{ commentDetail.likesCount }}</div>
  4382. </div>
  4383. <div class="commentList">
  4384. <div class="commentImg">
  4385. <img src="../assets/icon/comment/comment.png" alt="" />
  4386. </div>
  4387. <div>{{ commentDetail.commentCount }}</div>
  4388. </div>
  4389. </div>
  4390. <div class="drawPBox" v-if="commentDetail.img">
  4391. <span>教师批注</span>
  4392. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  4393. <span class="deleteImg" v-if="tType == 1 || tType == 4" @click.stop="deletePicturePaint(commentDetail.wid)"
  4394. style="
  4395. font-size: 14px;
  4396. width: auto !important;
  4397. color: #b4b4b4;
  4398. top: unset;
  4399. bottom: 0;
  4400. border: none;
  4401. padding: 0;
  4402. height: auto !important;
  4403. margin: 0;
  4404. ">删除</span>
  4405. </div>
  4406. </div>
  4407. <div class="commentBox">
  4408. <div class="pl">评论:</div>
  4409. <div style="max-height: 200px; overflow: auto">
  4410. <div v-if="commentDetail.commentJson && commentDetail.commentJson.length" style="padding: 10px 0 0 0">
  4411. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  4412. :key="coIndex">
  4413. <div class="tx" style="min-width: 50px">
  4414. <img src="../assets/avatar.png" alt="" />
  4415. </div>
  4416. <div class="plPerson">
  4417. <div class="plName">
  4418. <div>{{ co.commentPeople }}</div>
  4419. <div style="margin-left: 5px">
  4420. {{ co.commentTime }}
  4421. </div>
  4422. <div class="deleteComment" v-if="userid == co.userid" @click="deleteComment(co.wid)">
  4423. 删除
  4424. </div>
  4425. </div>
  4426. <div class="plContent">{{ co.commentText }}</div>
  4427. </div>
  4428. </div>
  4429. </div>
  4430. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  4431. </div>
  4432. </div>
  4433. <div style="margin-top: 10px">
  4434. <div class="displayBox">
  4435. <div style="
  4436. color: #556db4;
  4437. font-size: 14px;
  4438. font-weight: bold;
  4439. padding-bottom: 10px;
  4440. ">
  4441. 评价
  4442. </div>
  4443. <div class="easy_comment" v-if="false">
  4444. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  4445. {{ p }}
  4446. </div>
  4447. </div>
  4448. </div>
  4449. <div>
  4450. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  4451. placeholder="请输入评论"></textarea>
  4452. </div>
  4453. </div>
  4454. <div slot="footer">
  4455. <el-button @click="
  4456. (commentDialogVisible = false),
  4457. (commentIndexJson = {}),
  4458. videoDetail.sources && videoDetail.sources[0]
  4459. ? (videoDetail.sources[0].src = '')
  4460. : ''
  4461. ">取 消</el-button>
  4462. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  4463. </div>
  4464. </el-dialog>
  4465. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  4466. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 3 }">
  4467. <div slot="title" class="header-title">
  4468. <div style="color: #fff">查看文档</div>
  4469. <div @click="fullDialogVisible = false" style="
  4470. cursor: pointer;
  4471. position: absolute;
  4472. top: 20px;
  4473. right: 20px;
  4474. color: #fff;
  4475. ">
  4476. 退出全屏
  4477. </div>
  4478. </div>
  4479. <div style="height: 100%">
  4480. <div class="wheel" v-if="fulltype == 2 &&
  4481. fullUrl.indexOf(
  4482. 'https://view.officeapps.live.com/op/view.aspx?src='
  4483. ) != -1
  4484. " style="width: 95%; margin: 0 auto">
  4485. <iframe style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  4486. </div>
  4487. <iframe v-else-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl"
  4488. security="restricted"
  4489. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  4490. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  4491. <div class="wheel" v-if="fulltype == 1" style="
  4492. box-shadow: 0 0 6px 1px #f2f2f2;
  4493. width: 100%;
  4494. background: #f1f1f1;
  4495. ">
  4496. <div class="title" style="width: 100%; box-sizing: border-box">
  4497. 查看文档
  4498. </div>
  4499. <el-form class="textBox" style="height: 90%">
  4500. <el-form-item class="textTitle">
  4501. <div style="font-size: 22px">
  4502. {{ fullUrl.name }}
  4503. </div>
  4504. </el-form-item>
  4505. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  4506. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  4507. </el-form>
  4508. </div>
  4509. </div>
  4510. <!-- <div slot="footer">
  4511. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  4512. </div> -->
  4513. </el-dialog>
  4514. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  4515. :before-close="handleClose" class="dialog_diy">
  4516. <div class="evalCss">
  4517. <div class="nav">请选择星星进行评分</div>
  4518. <div class="middleBox" v-if="eScore.eStar">
  4519. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4520. <div class="nameAndrate">
  4521. <div>{{ e.value }}</div>
  4522. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4523. </div>
  4524. <div v-if="e.detail">{{ e.detail }}</div>
  4525. </div>
  4526. <div class="easy_comment" v-if="false">
  4527. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4528. {{ p }}
  4529. </div>
  4530. </div>
  4531. <div class="bz">
  4532. <textarea :disabled="isStar" rows="4" class="pj" style="
  4533. padding: 10px 5px;
  4534. width: 70%;
  4535. background: #f7f6f9;
  4536. font-size: 14px;
  4537. text-indent: 10px;
  4538. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4539. </div>
  4540. </div>
  4541. </div>
  4542. <div slot="footer">
  4543. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  4544. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  4545. </div>
  4546. </el-dialog>
  4547. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisibleTeacher" :append-to-body="true" width="800px"
  4548. :before-close="handleClose" class="dialog_diy">
  4549. <div class="w_name">
  4550. 学生姓名:<span>{{ sStudent.student }}</span>
  4551. </div>
  4552. <div class="evalCss">
  4553. <div class="nav">请选择星星进行评分</div>
  4554. <div class="middleBox" v-if="eScore.eStar">
  4555. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4556. <div class="nameAndrate">
  4557. <div>{{ e.value }}</div>
  4558. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4559. </div>
  4560. <div v-if="e.detail">{{ e.detail }}</div>
  4561. </div>
  4562. <div class="easy_comment" v-if="false">
  4563. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4564. {{ p }}
  4565. </div>
  4566. </div>
  4567. <div class="bz">
  4568. <textarea :disabled="isStar" rows="4" class="pj" style="
  4569. padding: 10px 5px;
  4570. width: 70%;
  4571. background: #f7f6f9;
  4572. font-size: 14px;
  4573. text-indent: 10px;
  4574. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4575. </div>
  4576. </div>
  4577. </div>
  4578. <div slot="footer">
  4579. <el-button @click="studentEvalDialogVisibleTeacher = false">取 消</el-button>
  4580. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar">确 定</el-button>
  4581. </div>
  4582. </el-dialog>
  4583. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  4584. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4585. <div v-if="selectJson">
  4586. <div class="select_box2">
  4587. <div class="select_box2_title">
  4588. <div>选择填空</div>
  4589. <div>请选择对应的答案进行答题!</div>
  4590. </div>
  4591. <div class="select_box2_box">
  4592. <div class="select_box2_img">
  4593. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4594. </div>
  4595. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4596. <div style="padding-top: 15px">
  4597. <div class="select_answer_title" v-if="isSelect">
  4598. {{ selectAnswer.stu }}
  4599. </div>
  4600. <div class="select_answer_title" v-else>
  4601. 根据题目选择对应答案
  4602. </div>
  4603. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4604. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4605. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4606. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4607. </el-option>
  4608. </el-select>
  4609. </div>
  4610. </div>
  4611. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4612. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4613. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4614. 回答正确
  4615. </div>
  4616. <div v-else>回答错误</div>
  4617. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4618. 正确答案:
  4619. </div>
  4620. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4621. ">
  4622. {{ selectJson.select[a] }}
  4623. </div>
  4624. </div>
  4625. </div>
  4626. </div>
  4627. <div class="upAnswerCss">
  4628. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  4629. </div>
  4630. </div>
  4631. </div>
  4632. </div>
  4633. </el-dialog>
  4634. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelectTeacher" :append-to-body="true" width="90%"
  4635. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4636. <div v-if="selectJson">
  4637. <div class="w_name">
  4638. 学生姓名:<span>{{ sStudent.student }}</span>
  4639. </div>
  4640. <div class="select_box2">
  4641. <div class="select_box2_title">
  4642. <div>选择填空</div>
  4643. <div>请选择对应的答案进行答题!</div>
  4644. </div>
  4645. <div class="select_box2_box">
  4646. <div class="select_box2_img">
  4647. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4648. </div>
  4649. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4650. <div style="padding-top: 15px">
  4651. <div class="select_answer_title" v-if="isSelect">
  4652. {{ selectAnswer.stu }}
  4653. </div>
  4654. <div class="select_answer_title" v-else>
  4655. 根据题目选择对应答案
  4656. </div>
  4657. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4658. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4659. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4660. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4661. </el-option>
  4662. </el-select>
  4663. </div>
  4664. </div>
  4665. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4666. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4667. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4668. 回答正确
  4669. </div>
  4670. <div v-else>回答错误</div>
  4671. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4672. 正确答案:
  4673. </div>
  4674. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4675. ">
  4676. {{ selectJson.select[a] }}
  4677. </div>
  4678. </div>
  4679. </div>
  4680. </div>
  4681. <div class="upAnswerCss">
  4682. <el-button type="primary" @click="addSelectAnswerTeacher" v-if="!isSelect">提交答案</el-button>
  4683. </div>
  4684. </div>
  4685. </div>
  4686. </div>
  4687. </el-dialog>
  4688. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  4689. :before-close="handleClose" class="dialog_diy">
  4690. <div>
  4691. <div class="studentDetail">
  4692. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  4693. <div class="nameAndTime">
  4694. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  4695. <div>{{ commentDetail.time }}</div>
  4696. </div>
  4697. </div>
  4698. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  4699. {{ JSON.parse(commentDetail.works)[0].answer }}
  4700. </div>
  4701. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  4702. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4703. :class="{ fullStyle: full }"></pdf>
  4704. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4705. </div>
  4706. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  4707. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  4708. </div>
  4709. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  4710. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4711. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  4712. </div>
  4713. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  4714. @click="downloadFile(commentDetail.works)">
  4715. <img src="../assets/icon/codeFile.png" />
  4716. <div>点击下载文件</div>
  4717. </div>
  4718. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  4719. <div v-html="JSON.parse(commentDetail.works).text"></div>
  4720. </div>
  4721. <div class="scoreBox">
  4722. <span class="t">请输入分数</span>
  4723. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  4724. :max="100"></el-input-number>
  4725. </div>
  4726. <div class="scoreDetailBox">
  4727. <span class="t">评分评论</span>
  4728. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  4729. v-model="scoreDetail" placeholder="请输入对学生的评价">
  4730. </el-input>
  4731. </div>
  4732. </div>
  4733. <span slot="footer" class="dialog-footer">
  4734. <el-button @click="
  4735. (dialogVisibleScore = false),
  4736. (commentIndexJson = {}),
  4737. videoDetail.sources && videoDetail.sources[0]
  4738. ? (videoDetail.sources[0].src = '')
  4739. : ''
  4740. ">取 消</el-button>
  4741. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  4742. </el-button>
  4743. </span>
  4744. </el-dialog>
  4745. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4746. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4747. <div>
  4748. <div class="sentenBox">
  4749. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4750. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4751. <div class="cardList" v-if="st.chooseSenList">
  4752. <div class="cardBox">
  4753. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4754. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4755. <div :class="{
  4756. isCard: r,
  4757. isChooseCard: r == '' || r == undefined,
  4758. }">
  4759. <div>{{ r }}</div>
  4760. </div>
  4761. </el-tooltip>
  4762. <div :class="{
  4763. isCard: r,
  4764. isChooseCard: r == '' || r == undefined,
  4765. }" v-else>
  4766. <div>{{ r }}</div>
  4767. </div>
  4768. </div>
  4769. </div>
  4770. </div>
  4771. <div class="cardList" v-if="st.addChangeSen">
  4772. <div class="cardBox">
  4773. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4774. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4775. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4776. <div>{{ s }}</div>
  4777. </div>
  4778. </el-tooltip>
  4779. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4780. <div>{{ s }}</div>
  4781. </div>
  4782. </div>
  4783. </div>
  4784. </div>
  4785. </div>
  4786. </div>
  4787. </div>
  4788. <span slot="footer" class="dialog-footer">
  4789. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  4790. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  4791. </span>
  4792. </el-dialog>
  4793. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentenceTeacher" :append-to-body="true" width="1000px"
  4794. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4795. <div>
  4796. <div class="w_name">
  4797. 学生姓名:<span>{{ sStudent.student }}</span>
  4798. </div>
  4799. <div class="sentenBox">
  4800. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4801. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4802. <div class="cardList" v-if="st.chooseSenList">
  4803. <div class="cardBox">
  4804. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4805. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4806. <div :class="{
  4807. isCard: r,
  4808. isChooseCard: r == '' || r == undefined,
  4809. }">
  4810. <div>{{ r }}</div>
  4811. </div>
  4812. </el-tooltip>
  4813. <div :class="{
  4814. isCard: r,
  4815. isChooseCard: r == '' || r == undefined,
  4816. }" v-else>
  4817. <div>{{ r }}</div>
  4818. </div>
  4819. </div>
  4820. </div>
  4821. </div>
  4822. <div class="cardList" v-if="st.addChangeSen">
  4823. <div class="cardBox">
  4824. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4825. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4826. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4827. <div>{{ s }}</div>
  4828. </div>
  4829. </el-tooltip>
  4830. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4831. <div>{{ s }}</div>
  4832. </div>
  4833. </div>
  4834. </div>
  4835. </div>
  4836. </div>
  4837. </div>
  4838. </div>
  4839. <span slot="footer" class="dialog-footer">
  4840. <el-button @click="dialogVisibleSentenceTeacher = false">取 消</el-button>
  4841. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  4842. </span>
  4843. </el-dialog>
  4844. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  4845. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4846. <div>
  4847. <div class="sentenBox">
  4848. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4849. {{ sentenceList1.stuName }}的作业
  4850. </div>
  4851. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  4852. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4853. 第{{ stIndex + 1 }}题
  4854. </div>
  4855. <div class="isWrong">
  4856. <div class="cardList1" v-if="st.chooseSenList">
  4857. <div class="cardBox">
  4858. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  4859. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4860. <div class="isCard">
  4861. <div>{{ s }}</div>
  4862. </div>
  4863. </el-tooltip>
  4864. </div>
  4865. </div>
  4866. <div class="cardAnswerBox">
  4867. 组成句子:{{ st.chooseSenList.join(" ") }}
  4868. </div>
  4869. </div>
  4870. <div v-if="tType == 2" class="isTj">
  4871. <div class="isTjImg">
  4872. <img src="../assets/icon/conSentences/right.png" alt="" />
  4873. </div>
  4874. <div>已提交</div>
  4875. </div>
  4876. <div class="answerRight isTj" v-if="st.chooseSenList.toString() == st.rightAnswer.toString() &&
  4877. (tType == 1 || tType == 4)
  4878. ">
  4879. <div class="isTjImg">
  4880. <img src="../assets/icon/conSentences/right.png" alt="" />
  4881. </div>
  4882. <div>回答正确</div>
  4883. </div>
  4884. <div class="answerRight isTj" v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4885. (tType == 1 || tType == 4)
  4886. ">
  4887. <div class="isTjImg">
  4888. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  4889. </div>
  4890. <div>回答错误</div>
  4891. </div>
  4892. </div>
  4893. <div v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4894. (tType == 1 || tType == 4)
  4895. ">
  4896. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  4897. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  4898. <div class="cardBox">
  4899. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  4900. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4901. <div class="isCard1">
  4902. <div>{{ r }}</div>
  4903. </div>
  4904. </el-tooltip>
  4905. </div>
  4906. </div>
  4907. <div class="cardAnswerBox">
  4908. 组成句子:{{ st.rightAnswer.join(" ") }}
  4909. </div>
  4910. </div>
  4911. </div>
  4912. </div>
  4913. </div>
  4914. </div>
  4915. <span slot="footer" class="dialog-footer">
  4916. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  4917. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  4918. </span>
  4919. </el-dialog>
  4920. <el-dialog title="教师提交作业" :visible.sync="dialogVisibleWorks" :append-to-body="true" width="500px"
  4921. :before-close="handleClose" class="dialog_change">
  4922. <div class="marginT">
  4923. <div class="w_name">
  4924. 学生姓名:<span>{{ sStudent.student }}</span>
  4925. </div>
  4926. <div>上传文件</div>
  4927. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  4928. <div class="up_photo">
  4929. <img src="../assets/uploadImg2.png" alt />
  4930. </div>
  4931. <!-- <input
  4932. type="file"
  4933. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4934. style="display: none"
  4935. @change="beforeUpload1($event, 1)"
  4936. /> -->
  4937. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  4938. </div>
  4939. <!-- capture="camera" -->
  4940. <div class="chapter_add" style="
  4941. display: flex;
  4942. width: 100%;
  4943. flex-direction: row;
  4944. flex-wrap: wrap;
  4945. justify-content: flex-start;
  4946. padding: 15px 0;
  4947. " v-if="studyJuri[0].cover.length > 0">
  4948. <div class="upCover">
  4949. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  4950. <img :src="word" alt v-else-if="fileType == 1" />
  4951. <img :src="video" alt v-else-if="fileType == 2" />
  4952. <img :src="word2" alt v-else-if="fileType == 3" />
  4953. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  4954. <div class="deleteWord" @click="clean(1)">
  4955. <img src="../assets/icon/deleteWorks.png" alt />
  4956. </div>
  4957. </div>
  4958. </div>
  4959. </div>
  4960. <div class="upload_send" @click="addCourseWorksTeacher(taskCount)" v-if="!proVisible">
  4961. 提交
  4962. </div>
  4963. </el-dialog>
  4964. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  4965. <el-dialog title="表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4966. :before-close="handleClose" class="dialog_diy">
  4967. <el-form>
  4968. <div style="
  4969. display: flex;
  4970. align-items: center;
  4971. justify-content: space-between;
  4972. ">
  4973. <span>表格内容</span>
  4974. <el-button type="primary" size="small" @click="returnTableText">还原模板</el-button>
  4975. </div>
  4976. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
  4977. </el-form>
  4978. <span slot="footer" class="dialog-footer">
  4979. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4980. <el-button type="primary" @click="addTableWorks">确定</el-button>
  4981. </span>
  4982. </el-dialog>
  4983. <el-dialog title="表格" :visible.sync="dialogVisibleTableTeacher" :append-to-body="true" width="95%"
  4984. :before-close="handleClose" class="dialog_diy">
  4985. <el-form>
  4986. <div class="w_name">
  4987. 学生姓名:<span>{{ sStudent.student }}</span>
  4988. </div>
  4989. <div>表格内容</div>
  4990. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTableTeacher"></Table>
  4991. </el-form>
  4992. <span slot="footer" class="dialog-footer">
  4993. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  4994. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  4995. </span>
  4996. </el-dialog>
  4997. <el-dialog title="文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%" :before-close="handleClose"
  4998. class="dialog_diy">
  4999. <el-form>
  5000. <div style="
  5001. display: flex;
  5002. align-items: center;
  5003. justify-content: space-between;
  5004. ">
  5005. <span>文档内容</span>
  5006. <el-button type="primary" size="small" @click="returnWordText">还原模板</el-button>
  5007. </div>
  5008. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWord"></editor-bar>
  5009. </el-form>
  5010. <span slot="footer" class="dialog-footer">
  5011. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  5012. <el-button type="primary" @click="addWordWorks">确定</el-button>
  5013. </span>
  5014. </el-dialog>
  5015. <el-dialog title="文档" :visible.sync="dialogVisibleWordTeacher" :append-to-body="true" width="95%"
  5016. :before-close="handleClose" class="dialog_diy">
  5017. <el-form>
  5018. <div class="w_name">
  5019. 学生姓名:<span>{{ sStudent.student }}</span>
  5020. </div>
  5021. <div>文档内容</div>
  5022. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWordTeacher"></editor-bar>
  5023. </el-form>
  5024. <span slot="footer" class="dialog-footer">
  5025. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  5026. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  5027. </span>
  5028. </el-dialog>
  5029. <el-dialog title="表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  5030. :before-close="handleClose" class="dialog_diy">
  5031. <el-form>
  5032. <div class="cont" v-html="tableJson.text"></div>
  5033. </el-form>
  5034. <span slot="footer" class="dialog-footer">
  5035. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  5036. </span>
  5037. </el-dialog>
  5038. <el-dialog title="文档" :visible.sync="dialogVisibleTable3" :append-to-body="true" width="95%"
  5039. :before-close="handleClose" class="dialog_diy">
  5040. <el-form>
  5041. <div class="cont" v-html="tableJson.text"></div>
  5042. </el-form>
  5043. <span slot="footer" class="dialog-footer">
  5044. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  5045. </span>
  5046. </el-dialog>
  5047. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="95%"
  5048. :before-close="handleClose" class="dialog_diy">
  5049. <div v-if="dialogVisibleGroup">
  5050. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  5051. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  5052. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  5053. </div>
  5054. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  5055. @click="lockChair">
  5056. 锁定位置
  5057. </div>
  5058. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  5059. 解锁位置
  5060. </div> -->
  5061. <div class="group_switch">
  5062. <span>开放选座</span>
  5063. <el-switch v-model="islock" active-text="" class="switchCss" @change="lockChair"></el-switch>
  5064. </div>
  5065. <div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
  5066. 分组设置
  5067. </div>
  5068. </div>
  5069. <div>
  5070. <div class="g_d_box" v-if="groupJson.group && groupStudent[toolindex]">
  5071. <div class="g_d_group" v-for="(g, gindex) in groupJson.group" :key="gindex">
  5072. <div class="g_d_group_chair">
  5073. <div v-if="groupJson.number > 1">
  5074. <span :class="{
  5075. isChair:
  5076. groupStudent[toolindex][gindex] &&
  5077. groupStudent[toolindex][gindex][0],
  5078. updateChair:
  5079. courseDetail.userid == userid &&
  5080. groupStudent[toolindex][gindex] &&
  5081. groupStudent[toolindex][gindex][0] &&
  5082. groupJson.islock == 2,
  5083. }"><span class="updateChairBtn" @click="
  5084. updateGroupChair(
  5085. groupStudent[toolindex][gindex] &&
  5086. groupStudent[toolindex][gindex][0]
  5087. )
  5088. ">修改</span></span><span>{{
  5089. groupStudent[toolindex][gindex] &&
  5090. groupStudent[toolindex][gindex][0]
  5091. ? groupStudent[toolindex][gindex] &&
  5092. groupStudent[toolindex][gindex][0].name
  5093. : "空位置"
  5094. }}</span>
  5095. </div>
  5096. <div v-if="groupJson.number > 4">
  5097. <span :class="{
  5098. isChair:
  5099. groupStudent[toolindex][gindex] &&
  5100. groupStudent[toolindex][gindex][4],
  5101. updateChair:
  5102. courseDetail.userid == userid &&
  5103. groupStudent[toolindex][gindex] &&
  5104. groupStudent[toolindex][gindex][4] &&
  5105. groupJson.islock == 2,
  5106. }"><span class="updateChairBtn" @click="
  5107. updateGroupChair(
  5108. groupStudent[toolindex][gindex] &&
  5109. groupStudent[toolindex][gindex][4]
  5110. )
  5111. ">修改</span></span><span>{{
  5112. groupStudent[toolindex][gindex] &&
  5113. groupStudent[toolindex][gindex][4]
  5114. ? groupStudent[toolindex][gindex] &&
  5115. groupStudent[toolindex][gindex][4].name
  5116. : "空位置"
  5117. }}</span>
  5118. </div>
  5119. <div v-if="groupJson.number > 8">
  5120. <span :class="{
  5121. isChair:
  5122. groupStudent[toolindex][gindex] &&
  5123. groupStudent[toolindex][gindex][8],
  5124. updateChair:
  5125. courseDetail.userid == userid &&
  5126. groupStudent[toolindex][gindex] &&
  5127. groupStudent[toolindex][gindex][8] &&
  5128. groupJson.islock == 2,
  5129. }"><span class="updateChairBtn" @click="
  5130. updateGroupChair(
  5131. groupStudent[toolindex][gindex] &&
  5132. groupStudent[toolindex][gindex][8]
  5133. )
  5134. ">修改</span></span><span>{{
  5135. groupStudent[toolindex][gindex] &&
  5136. groupStudent[toolindex][gindex][8]
  5137. ? groupStudent[toolindex][gindex] &&
  5138. groupStudent[toolindex][gindex][8].name
  5139. : "空位置"
  5140. }}</span>
  5141. </div>
  5142. </div>
  5143. <div class="g_d_group_tableBox">
  5144. <div class="g_d_group_chair2">
  5145. <div v-if="groupJson.number > 2">
  5146. <span :class="{
  5147. isChair:
  5148. groupStudent[toolindex][gindex] &&
  5149. groupStudent[toolindex][gindex][2],
  5150. updateChair:
  5151. courseDetail.userid == userid &&
  5152. groupStudent[toolindex][gindex] &&
  5153. groupStudent[toolindex][gindex][2] &&
  5154. groupJson.islock == 2,
  5155. }"><span class="updateChairBtn" @click="
  5156. updateGroupChair(
  5157. groupStudent[toolindex][gindex] &&
  5158. groupStudent[toolindex][gindex][2]
  5159. )
  5160. ">修改</span></span><span>{{
  5161. groupStudent[toolindex][gindex] &&
  5162. groupStudent[toolindex][gindex][2]
  5163. ? groupStudent[toolindex][gindex] &&
  5164. groupStudent[toolindex][gindex][2].name
  5165. : "空位置"
  5166. }}</span>
  5167. </div>
  5168. <div v-if="groupJson.number > 6">
  5169. <span :class="{
  5170. isChair:
  5171. groupStudent[toolindex][gindex] &&
  5172. groupStudent[toolindex][gindex][6],
  5173. updateChair:
  5174. courseDetail.userid == userid &&
  5175. groupStudent[toolindex][gindex] &&
  5176. groupStudent[toolindex][gindex][6] &&
  5177. groupJson.islock == 2,
  5178. }"><span class="updateChairBtn" @click="
  5179. updateGroupChair(
  5180. groupStudent[toolindex][gindex] &&
  5181. groupStudent[toolindex][gindex][6]
  5182. )
  5183. ">修改</span></span><span>{{
  5184. groupStudent[toolindex][gindex] &&
  5185. groupStudent[toolindex][gindex][6]
  5186. ? groupStudent[toolindex][gindex] &&
  5187. groupStudent[toolindex][gindex][6].name
  5188. : "空位置"
  5189. }}</span>
  5190. </div>
  5191. </div>
  5192. <div class="g_d_group_table">
  5193. <div>
  5194. {{ g.name }}
  5195. </div>
  5196. <div>
  5197. <div v-if="courseDetail.userid == userid && groupJson.islock == 2
  5198. " @click="deleteGroupChair(gindex)">
  5199. 移除组员
  5200. </div>
  5201. <div @click="selectGroup(gindex)" v-else-if="groupStudentUid[toolindex] &&
  5202. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  5203. ">
  5204. 加入分组
  5205. </div>
  5206. <div @click="
  5207. exitGroup(
  5208. groupStudent[toolindex][gindex] &&
  5209. groupStudent[toolindex][gindex][
  5210. groupStudentUid[toolindex][gindex].indexOf(userid)
  5211. ].id
  5212. )
  5213. " v-else-if="groupStudentUid[toolindex] &&
  5214. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  5215. ">
  5216. 退出分组
  5217. </div>
  5218. </div>
  5219. </div>
  5220. <div class="g_d_group_chair2">
  5221. <div v-if="groupJson.number > 3">
  5222. <span :class="{
  5223. isChair:
  5224. groupStudent[toolindex][gindex] &&
  5225. groupStudent[toolindex][gindex][3],
  5226. updateChair:
  5227. courseDetail.userid == userid &&
  5228. groupStudent[toolindex][gindex] &&
  5229. groupStudent[toolindex][gindex][3] &&
  5230. groupJson.islock == 2,
  5231. }"><span class="updateChairBtn" @click="
  5232. updateGroupChair(
  5233. groupStudent[toolindex][gindex] &&
  5234. groupStudent[toolindex][gindex][3]
  5235. )
  5236. ">修改</span></span><span>{{
  5237. groupStudent[toolindex][gindex] &&
  5238. groupStudent[toolindex][gindex][3]
  5239. ? groupStudent[toolindex][gindex] &&
  5240. groupStudent[toolindex][gindex][3].name
  5241. : "空位置"
  5242. }}</span>
  5243. </div>
  5244. <div v-if="groupJson.number > 7">
  5245. <span :class="{
  5246. isChair:
  5247. groupStudent[toolindex][gindex] &&
  5248. groupStudent[toolindex][gindex][7],
  5249. updateChair:
  5250. courseDetail.userid == userid &&
  5251. groupStudent[toolindex][gindex] &&
  5252. groupStudent[toolindex][gindex][7] &&
  5253. groupJson.islock == 2,
  5254. }"><span class="updateChairBtn" @click="
  5255. updateGroupChair(
  5256. groupStudent[toolindex][gindex] &&
  5257. groupStudent[toolindex][gindex][7]
  5258. )
  5259. ">修改</span></span><span>{{
  5260. groupStudent[toolindex][gindex] &&
  5261. groupStudent[toolindex][gindex][7]
  5262. ? groupStudent[toolindex][gindex] &&
  5263. groupStudent[toolindex][gindex][7].name
  5264. : "空位置"
  5265. }}</span>
  5266. </div>
  5267. </div>
  5268. </div>
  5269. <div class="g_d_group_chair">
  5270. <div v-if="groupJson.number > 1">
  5271. <span :class="{
  5272. isChair:
  5273. groupStudent[toolindex][gindex] &&
  5274. groupStudent[toolindex][gindex][1],
  5275. updateChair:
  5276. courseDetail.userid == userid &&
  5277. groupStudent[toolindex][gindex] &&
  5278. groupStudent[toolindex][gindex][1] &&
  5279. groupJson.islock == 2,
  5280. }"><span class="updateChairBtn" @click="
  5281. updateGroupChair(
  5282. groupStudent[toolindex][gindex] &&
  5283. groupStudent[toolindex][gindex][1]
  5284. )
  5285. ">修改</span></span><span>{{
  5286. groupStudent[toolindex][gindex] &&
  5287. groupStudent[toolindex][gindex][1]
  5288. ? groupStudent[toolindex][gindex] &&
  5289. groupStudent[toolindex][gindex][1].name
  5290. : "空位置"
  5291. }}</span>
  5292. </div>
  5293. <div v-if="groupJson.number > 5">
  5294. <span :class="{
  5295. isChair:
  5296. groupStudent[toolindex][gindex] &&
  5297. groupStudent[toolindex][gindex][5],
  5298. updateChair:
  5299. courseDetail.userid == userid &&
  5300. groupStudent[toolindex][gindex] &&
  5301. groupStudent[toolindex][gindex][5] &&
  5302. groupJson.islock == 2,
  5303. }"><span class="updateChairBtn" @click="
  5304. updateGroupChair(
  5305. groupStudent[toolindex][gindex] &&
  5306. groupStudent[toolindex][gindex][5]
  5307. )
  5308. ">修改</span></span><span>{{
  5309. groupStudent[toolindex][gindex] &&
  5310. groupStudent[toolindex][gindex][5]
  5311. ? groupStudent[toolindex][gindex] &&
  5312. groupStudent[toolindex][gindex][5].name
  5313. : "空位置"
  5314. }}</span>
  5315. </div>
  5316. <div v-if="groupJson.number > 9">
  5317. <span :class="{
  5318. isChair:
  5319. groupStudent[toolindex][gindex] &&
  5320. groupStudent[toolindex][gindex][9],
  5321. updateChair:
  5322. courseDetail.userid == userid &&
  5323. groupStudent[toolindex][gindex] &&
  5324. groupStudent[toolindex][gindex][9] &&
  5325. groupJson.islock == 2,
  5326. }"><span class="updateChairBtn" @click="
  5327. updateGroupChair(
  5328. groupStudent[toolindex][gindex] &&
  5329. groupStudent[toolindex][gindex][9]
  5330. )
  5331. ">修改</span></span><span>{{
  5332. groupStudent[toolindex][gindex] &&
  5333. groupStudent[toolindex][gindex][9]
  5334. ? groupStudent[toolindex][gindex] &&
  5335. groupStudent[toolindex][gindex][9].name
  5336. : "空位置"
  5337. }}</span>
  5338. </div>
  5339. </div>
  5340. </div>
  5341. </div>
  5342. </div>
  5343. </div>
  5344. <span slot="footer" class="dialog-footer">
  5345. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  5346. </span>
  5347. </el-dialog>
  5348. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
  5349. :before-close="handleClose" class="dialog_diy">
  5350. <div class="groupBox">
  5351. <div v-if="groupJson2.group" class="groupContent">
  5352. <div class="groupTitle">请设置小组数量</div>
  5353. <div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
  5354. <span class="groupn">组{{ index + 1 }}名称:</span>
  5355. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  5356. <!-- <div class="groupBtn">
  5357. <el-button type="primary" size="small" @click="addGroup(index)">
  5358. 添加</el-button>
  5359. <el-button type="primary" size="small" @click="deleteGroup(index)"
  5360. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  5361. </div> -->
  5362. </div>
  5363. </div>
  5364. <div class="groupContent">
  5365. <div class="groupTitle">请设置每组人数数量</div>
  5366. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  5367. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  5368. <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
  5369. placeholder="2-10人以内"></el-input-number>
  5370. </div>
  5371. </div>
  5372. <span slot="footer" class="dialog-footer">
  5373. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  5374. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  5375. </span>
  5376. </el-dialog>
  5377. <el-dialog title="作业提交" :visible.sync="dialogVisibleGroupWork" :append-to-body="true" width="500px"
  5378. :before-close="handleClose" class="dialog_change">
  5379. <div class="marginT">
  5380. <div>上传文件</div>
  5381. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  5382. <div class="up_photo">
  5383. <img src="../assets/icon/uploadImg.png" alt />
  5384. </div>
  5385. <!-- <input
  5386. type="file"
  5387. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  5388. style="display: none"
  5389. @change="beforeUpload1($event, 1)"
  5390. /> -->
  5391. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  5392. </div>
  5393. <!-- capture="camera" -->
  5394. <div class="chapter_add" style="
  5395. display: flex;
  5396. width: 100%;
  5397. flex-direction: row;
  5398. flex-wrap: wrap;
  5399. justify-content: flex-start;
  5400. padding: 15px 0;
  5401. " v-if="studyJuri[0].cover.length > 0">
  5402. <div class="upCover">
  5403. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  5404. <img :src="word" alt v-else-if="fileType == 1" />
  5405. <img :src="video" alt v-else-if="fileType == 2" />
  5406. <img :src="word2" alt v-else-if="fileType == 3" />
  5407. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  5408. <div class="deleteWord" @click="clean(1)">
  5409. <img src="../assets/icon/deleteWorks.png" alt />
  5410. </div>
  5411. </div>
  5412. </div>
  5413. </div>
  5414. <div class="upload_send" @click="addCourseWorks2(taskCount)" v-if="!proVisible">
  5415. 提交
  5416. </div>
  5417. </el-dialog>
  5418. <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
  5419. :before-close="handleClose" class="dialog_diy">
  5420. <div>
  5421. <h2>
  5422. {{ this.updateGroupUser.name }}
  5423. </h2>
  5424. <div style="color: rgb(171 171 171); margin-top: 10px">
  5425. 请选择要进入的分组
  5426. </div>
  5427. <el-radio-group v-model="checkChair">
  5428. <el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray" :label="item.label"
  5429. :key="index">{{ item.name }}</el-radio>
  5430. </el-radio-group>
  5431. </div>
  5432. <span slot="footer" class="dialog-footer">
  5433. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  5434. <el-button type="primary" @click="updateChair">确定</el-button>
  5435. </span>
  5436. </el-dialog>
  5437. <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
  5438. :before-close="handleClose" class="dialog_diy">
  5439. <div>
  5440. <h2>
  5441. {{ this.deleteGroupArray.name }}
  5442. </h2>
  5443. <div style="color: rgb(171 171 171); margin-top: 10px">
  5444. 请选择要删除的组员
  5445. </div>
  5446. <el-checkbox-group v-model="checkDeleteGroup">
  5447. <el-checkbox style="display: block; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
  5448. :label="item.userid" :key="index">{{ item.name }}</el-checkbox>
  5449. </el-checkbox-group>
  5450. </div>
  5451. <span slot="footer" class="dialog-footer">
  5452. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  5453. <el-button type="primary" @click="deleteChair">确定</el-button>
  5454. </span>
  5455. </el-dialog>
  5456. <el-dialog title="批量上传" :visible.sync="dialogVisiblePl" :append-to-body="true" width="700px"
  5457. :before-close="handleClose" class="dialog_change">
  5458. <div class="marginT">
  5459. <div class="plworkBox">
  5460. <div class="chapter_add" style="
  5461. display: flex;
  5462. width: 150px;
  5463. flex-direction: row;
  5464. flex-wrap: wrap;
  5465. justify-content: flex-start;
  5466. margin: 0 10px 10px 0;
  5467. " v-for="(item, index) in plworkFile" :key="index">
  5468. <div class="upCover2">
  5469. <img :src="item.url" alt v-if="item.fileType == 1" @click="previewImg(item.url)" />
  5470. <img :src="word" alt v-else-if="item.fileType == 4" />
  5471. <img :src="video" alt v-else />
  5472. <!-- <span class="picName">{{ item.name }}</span> -->
  5473. <!-- <el-input
  5474. v-model="item.username"
  5475. placeholder="请输入学生名字"
  5476. style="margin-top: 10px"
  5477. ></el-input> -->
  5478. <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  5479. <el-option v-for="item1 in checkUpload()" :key="item1.userid"
  5480. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  5481. </el-option>
  5482. </el-select>
  5483. <div class="deleteWord" @click="clean2(index)">
  5484. <img src="../assets/icon/deleteWorks.png" alt />
  5485. </div>
  5486. </div>
  5487. </div>
  5488. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  5489. <div class="up_photo2">
  5490. <img src="../assets/icon/plwork.png" alt />
  5491. <span>点击上传文件</span>
  5492. </div>
  5493. <input type="file"
  5494. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  5495. multiple="multiple" style="display: none" @change="beforeUpload3($event, 6)" />
  5496. </div>
  5497. </div>
  5498. </div>
  5499. <!-- capture="camera" -->
  5500. <div class="upload_send" @click="addCourseWorksPl(taskCount)" v-if="!proVisible2">
  5501. 提交
  5502. </div>
  5503. </el-dialog>
  5504. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  5505. class="dialog_diy" center>
  5506. <div style="text-align: center">
  5507. <span class="tian1">名称</span>
  5508. <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  5509. placeholder="请选择学生">
  5510. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  5511. :value="item.userid">
  5512. </el-option>
  5513. </el-select>
  5514. <!-- <el-input
  5515. v-model="worksSName"
  5516. style="width: 250px; margin: 15px 0px"
  5517. ></el-input> -->
  5518. </div>
  5519. <span slot="footer" class="dialog-footer">
  5520. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  5521. <el-button type="primary" @click="updateName">确 定</el-button>
  5522. </span>
  5523. </el-dialog>
  5524. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" :userid="userid" :id="id"
  5525. :courseType="courseType" :taskCount="taskCount" :toolindex="toolindex"></interVideo>
  5526. </div>
  5527. </template>
  5528. <script>
  5529. import "../common/aws-sdk-2.235.1.min.js";
  5530. // import pdf from "./components/pdf3";
  5531. import pdf from "./components/vpdf";
  5532. import AskStatic from "./components/askStatic";
  5533. import AskStatic2 from "./components/askStatic2";
  5534. import AnswerData2 from "./components/answerData2";
  5535. import AnswerData from "./components/answerData";
  5536. import EditorBar from "./tools/wangEnduit.vue";
  5537. import Table from "./tools/table.vue";
  5538. import Time from "./tools/time.vue";
  5539. import Mind from "./tools/jsmind.vue";
  5540. import Sunburst from "./tools/sunburst";
  5541. import SeeBoard from "./tools/seeBoard";
  5542. import * as imageConversion from "image-conversion";
  5543. import Audio from "./components/audio.vue";
  5544. import ImgDraw from "./tools/imgDraw/imgDraw";
  5545. import { Empty } from "element-ui";
  5546. import RecordRTC from "recordrtc";
  5547. import interVideo from "./interVideo/index.vue";
  5548. export default {
  5549. components: {
  5550. EditorBar,
  5551. Time,
  5552. pdf,
  5553. AskStatic,
  5554. AskStatic2,
  5555. Mind,
  5556. Sunburst,
  5557. SeeBoard,
  5558. AnswerData2,
  5559. AnswerData,
  5560. Audio,
  5561. ImgDraw,
  5562. Table,
  5563. interVideo,
  5564. },
  5565. data() {
  5566. return {
  5567. bg: null,
  5568. drawShow: false,
  5569. dialogVisible: false,
  5570. dialogVisiblePl: false,
  5571. commentDialogVisible: false,
  5572. videoVisible: false,
  5573. isStar: false,
  5574. studentEvalDialogVisible: false,
  5575. studentEvalDialogVisibleTeacher: false,
  5576. dialogVisibleSelect: false,
  5577. dialogVisibleSelectTeacher: false,
  5578. dialogVisibleScore: false,
  5579. dialogVisibleSentence: false,
  5580. dialogVisibleSentenceTeacher: false,
  5581. dialogVisibleSentence1: false,
  5582. dialogVisibleWorks: false,
  5583. dialogVisibleTable: false,
  5584. dialogVisibleTableTeacher: false,
  5585. dialogVisibleWord: false,
  5586. dialogVisibleWordTeacher: false,
  5587. dialogVisibleTable2: false,
  5588. dialogVisibleTable3: false,
  5589. dialogVisibleGroupWork: false,
  5590. dialogVisibleUpdateGroup: false,
  5591. dialogVisibleDeleteGroup: false,
  5592. dialogVisibleSname: false,
  5593. dialogVisibleVideo: false,
  5594. worksSName: "",
  5595. classJuri: [],
  5596. uploadStudentJuri: [],
  5597. uploadCid: "",
  5598. snameWid: "",
  5599. sStudent: {},
  5600. sTool: "",
  5601. bzText: "",
  5602. commentDetail: [],
  5603. selectAnswer: [],
  5604. videoDetail: {},
  5605. selectJson: {},
  5606. eScore: { eBzText: "", eStar: [] },
  5607. id: this.$route.query.courseId,
  5608. userid: this.$route.query.userid,
  5609. classId: this.$route.query.cid,
  5610. // courseTypeLine: this.$route.query.type,
  5611. oid: this.$route.query.oid,
  5612. org: this.$route.query.org,
  5613. tType: this.$route.query.tType,
  5614. courseType: this.$route.query.type,
  5615. screenType: this.$route.query.screenType,
  5616. tcid2: this.$route.query.tcid,
  5617. tcid: "",
  5618. pptImgUrl: "",
  5619. pptImgUrl1: "",
  5620. commentText: "",
  5621. full: false,
  5622. sIsOpen: false,
  5623. IsLookOpen: false,
  5624. IsFollow: false,
  5625. pzDialog: false,
  5626. contentDialog: false,
  5627. mlDialog: false,
  5628. type: 1,
  5629. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5630. sentenceList1: [],
  5631. tableJson: [],
  5632. tableJsonO: [],
  5633. wordJson: [],
  5634. wordJsonO: [],
  5635. vedio: [],
  5636. text: [],
  5637. textList: [],
  5638. line: [],
  5639. lineList: [],
  5640. chapTools: [],
  5641. chapToolList: [],
  5642. file: [],
  5643. fileC: [],
  5644. vedioTime: [],
  5645. upToolImg: "",
  5646. preTime: 0,
  5647. rateList: {
  5648. ca: 0,
  5649. },
  5650. rateParams: [],
  5651. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  5652. studyJuri: [
  5653. {
  5654. content: "",
  5655. cover: [],
  5656. upVedio: [],
  5657. upFile: [],
  5658. },
  5659. ],
  5660. plworkFile: [],
  5661. mr: require("../assets/vedioPic.png"),
  5662. word: require("../assets/icon/isWord.png"),
  5663. word2: require("../assets/icon/word2.png"),
  5664. video: require("../assets/icon/isVideo.png"),
  5665. noLikes: require("../assets/icon/comment/noLikes.png"),
  5666. likes: require("../assets/icon/comment/likes.png"),
  5667. scoreImg: require("../assets/score.png"),
  5668. courseDetail: {},
  5669. isSelect: false,
  5670. chapInfo: [],
  5671. chapInfoList: [],
  5672. taskCount: 0,
  5673. imgList: [],
  5674. noImgList: [],
  5675. pzList: [],
  5676. PlTextList: [
  5677. "Excellent!",
  5678. "nice!",
  5679. "很有创意!",
  5680. "还不错哦~",
  5681. "继续努力哦~",
  5682. ],
  5683. isClickNav: "",
  5684. navId: "",
  5685. playerOptions: {
  5686. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5687. autoplay: false, //如果true,浏览器准备好时开始回放。
  5688. muted: false, // 默认情况下将会消除任何音频。
  5689. loop: false, // 导致视频一结束就重新开始。
  5690. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5691. language: "zh-CN",
  5692. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5693. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5694. sources: [
  5695. {
  5696. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5697. src: "", //url地址require("../../assets/media/aaa.mp4")
  5698. },
  5699. ],
  5700. // poster: require("../../assets/tu31.png"), //你的封面地址
  5701. // poster: dataRes.imgUrl, //你的封面地址
  5702. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5703. controlBar: {
  5704. timeDivider: true, //当前时间和持续时间的分隔符
  5705. durationDisplay: true, //显示持续时间
  5706. remainingTimeDisplay: false, //是否显示剩余时间功能
  5707. fullscreenToggle: true, //全屏按钮
  5708. },
  5709. },
  5710. playerOptions1: {
  5711. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5712. autoplay: false, //如果true,浏览器准备好时开始回放。
  5713. muted: false, // 默认情况下将会消除任何音频。
  5714. loop: false, // 导致视频一结束就重新开始。
  5715. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5716. language: "zh-CN",
  5717. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5718. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5719. sources: [
  5720. {
  5721. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5722. src: "", //url地址require("../../assets/media/aaa.mp4")
  5723. },
  5724. ],
  5725. // poster: require("../../assets/tu31.png"), //你的封面地址
  5726. // poster: dataRes.imgUrl, //你的封面地址
  5727. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5728. controlBar: {
  5729. timeDivider: true, //当前时间和持续时间的分隔符
  5730. durationDisplay: true, //显示持续时间
  5731. remainingTimeDisplay: false, //是否显示剩余时间功能
  5732. fullscreenToggle: true, //全屏按钮
  5733. },
  5734. },
  5735. playerO: {},
  5736. noneBtnImg: false,
  5737. proVisible: false,
  5738. proVisible2: false,
  5739. progress: 0,
  5740. isFinishSize: 0,
  5741. isAllSize: 0,
  5742. questionAnswer: "",
  5743. answerQ: "", //问答标题
  5744. rateJson: [],
  5745. wbCount: 0,
  5746. wordCount: 0,
  5747. mindCount: 0,
  5748. askCount: 0,
  5749. noteCount: 0,
  5750. mindNetWorkCount: 0,
  5751. libraryCount: 0,
  5752. workCount: 0,
  5753. timeCount: 0,
  5754. answerCount: 0,
  5755. trainCount: 0,
  5756. evalCount: 0,
  5757. dialogImageUrl: "",
  5758. pictureDialog: false,
  5759. toolTypeList: [],
  5760. dialogVisible1: false,
  5761. dialogVisible2: false,
  5762. dialogVisible3: false,
  5763. dialogVisible6: false,
  5764. dialogVisible4: false,
  5765. isNoHomeWork: false,
  5766. dialogVisible5: false,
  5767. dialogVisible5Teacher: false,
  5768. dialogVisibleChoice: false,
  5769. dialogVisibleChoiceTeacher: false,
  5770. answerDialogVisible: false,
  5771. answerDialogVisibleTeacher: false,
  5772. juriVisible: false,
  5773. timeDialogVisible: false,
  5774. radio: [],
  5775. isAsk: false,
  5776. askJson: {
  5777. askCount: 1,
  5778. askTitle: "",
  5779. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5780. },
  5781. testJson: {},
  5782. checkJson: [],
  5783. askList: [],
  5784. answerList: [],
  5785. navList: [],
  5786. addPzDialog: false,
  5787. pzConText: "",
  5788. worksStudent: [],
  5789. isCloseList: [],
  5790. workStudent: [],
  5791. groupStudent: [],
  5792. groupStudentUid: [],
  5793. noWorksS: [],
  5794. isWorksS: [],
  5795. noWorksStudent: [],
  5796. toolindex: 0,
  5797. groupIndex: 0,
  5798. workTypeB: false,
  5799. workTypeC: false,
  5800. isAnswer: false,
  5801. timer: null,
  5802. opertimer: null,
  5803. showType: 0,
  5804. fileType: 0,
  5805. showPDF: false,
  5806. noteName: "",
  5807. evaJuri: [],
  5808. evalua: "",
  5809. eTitle: "",
  5810. eName: "",
  5811. eJson: {},
  5812. fid: "", //一级
  5813. sid: "", //二级
  5814. tid: "", //二级
  5815. typeMode: 1,
  5816. eJSONNum: 0,
  5817. Etype: 1,
  5818. data: {
  5819. meta: {
  5820. name: "example",
  5821. author: "dd@163.com",
  5822. version: "0.2",
  5823. },
  5824. format: "node_array",
  5825. data: [{ id: "root", isroot: true, topic: "" }],
  5826. },
  5827. fullDialogVisible: false,
  5828. fulltype: "",
  5829. fullUrl: "",
  5830. commentIndexJson: {},
  5831. Stbodywidth: 0,
  5832. ispzType: 0,
  5833. pzType: 1,
  5834. wScore: 0,
  5835. scoreDetail: "",
  5836. videoStart: false,
  5837. recorder: null,
  5838. groupJson: {},
  5839. islock: false,
  5840. groupJson2: {},
  5841. dialogVisibleGroup: false,
  5842. dialogVisibleGroup2: false,
  5843. updateGroupArray: [],
  5844. updateGroupUser: {},
  5845. deleteGroupUser: [],
  5846. deleteGroupArray: {},
  5847. checkChair: "",
  5848. checkDeleteGroup: [],
  5849. inviteCode: "",
  5850. courseGroupStudent: [],
  5851. courseGroupStudentUid: [],
  5852. courseGroup: {},
  5853. isGroup: false,
  5854. videoJson: {},
  5855. vChapterData: [],
  5856. };
  5857. },
  5858. methods: {
  5859. jump() {
  5860. window.parent.postMessage({ tools: "43" }, "*");
  5861. },
  5862. previewImg(url) {
  5863. this.$hevueImgPreview(url);
  5864. },
  5865. change(val) {
  5866. console.log(val);
  5867. },
  5868. goTo(path) {
  5869. this.$router.push(path);
  5870. },
  5871. handlePictureCardPreview(url) {
  5872. this.dialogImageUrl = url;
  5873. this.pictureDialog = true;
  5874. },
  5875. clean(type) {
  5876. if (type == 1) {
  5877. this.studyJuri[0].cover.splice(0, 1);
  5878. } else if (type == 2) {
  5879. this.studyJuri[0].upVedio.splice(0, 1);
  5880. } else {
  5881. this.studyJuri[0].upFile.splice(0, 1);
  5882. }
  5883. },
  5884. clean2(index) {
  5885. this.plworkFile.splice(index, 1);
  5886. },
  5887. handleClose(done) {
  5888. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  5889. this.videoDetail.sources[0].src = "";
  5890. }
  5891. this.commentIndexJson = {};
  5892. done();
  5893. },
  5894. fullTools() {
  5895. this.full = !this.full;
  5896. },
  5897. imgChange(file, fileList, type) {
  5898. if (type == 1) {
  5899. var _tmp = this.studyJuri[0].cover;
  5900. } else if (type == 2) {
  5901. var _tmp = this.studyJuri[0].upVedio;
  5902. } else {
  5903. var _tmp = this.studyJuri[0].upFile;
  5904. }
  5905. this.noneBtnImg = _tmp.length >= 1;
  5906. },
  5907. setContent(bool) {
  5908. this.contentDialog = bool;
  5909. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  5910. document.querySelector(".workd_media").style.height = "650px";
  5911. } else if (document.querySelector(".workd_media")) {
  5912. document.querySelector(".workd_media").style.height = "auto";
  5913. }
  5914. },
  5915. setContent2(bool) {
  5916. this.mlDialog = bool;
  5917. if (
  5918. bool &&
  5919. this.contentDialog &&
  5920. document.querySelector(".workd_media")
  5921. ) {
  5922. document.querySelector(".workd_media").style.height = "650px";
  5923. } else if (document.querySelector(".workd_media")) {
  5924. document.querySelector(".workd_media").style.height = "auto";
  5925. }
  5926. },
  5927. addImg(e) {
  5928. var el = e.currentTarget;
  5929. // this.$message.success('触发上传')
  5930. el.getElementsByTagName("input")[0].click();
  5931. e.target.value = "";
  5932. },
  5933. addSelectAnswer() {
  5934. let params = [
  5935. {
  5936. uid: this.userid,
  5937. cid: this.id,
  5938. stage: this.courseType,
  5939. task: this.taskCount,
  5940. tool: this.toolindex,
  5941. content: this.selectAnswer.answer,
  5942. type: 7,
  5943. },
  5944. ];
  5945. this.ajax
  5946. .post(this.$store.state.api + "addCourseWorks", params)
  5947. .then((res) => {
  5948. this.$message({
  5949. message: "提交成功",
  5950. type: "success",
  5951. });
  5952. this.dialogVisibleSelect = false;
  5953. // this.selectAnswer = {};
  5954. this.selectSWorks();
  5955. this.selectStudent();
  5956. })
  5957. .catch((err) => {
  5958. this.$message.error("提交失败");
  5959. console.error(err);
  5960. });
  5961. },
  5962. addSelectAnswerTeacher() {
  5963. let params = [
  5964. {
  5965. uid: this.sStudent.userid,
  5966. cid: this.id,
  5967. stage: this.courseType,
  5968. task: this.taskCount,
  5969. tool: this.toolindex,
  5970. content: this.selectAnswer.answer,
  5971. type: 7,
  5972. },
  5973. ];
  5974. this.ajax
  5975. .post(this.$store.state.api + "addCourseWorks", params)
  5976. .then((res) => {
  5977. this.$message({
  5978. message: "提交成功",
  5979. type: "success",
  5980. });
  5981. this.dialogVisibleSelectTeacher = false;
  5982. // this.selectAnswer = {};
  5983. this.selectSWorks();
  5984. this.selectStudent();
  5985. })
  5986. .catch((err) => {
  5987. this.$message.error("提交失败");
  5988. console.error(err);
  5989. });
  5990. },
  5991. addSenWorks() {
  5992. for (var i = 0; i < this.sentenceList.length; i++) {
  5993. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  5994. if (
  5995. this.sentenceList[i].chooseSenList[j] == undefined ||
  5996. this.sentenceList[i].chooseSenList[j] == ""
  5997. ) {
  5998. this.$message.error("请将答案填写完整!");
  5999. return;
  6000. }
  6001. }
  6002. }
  6003. let params = [
  6004. {
  6005. uid: this.userid,
  6006. cid: this.id,
  6007. stage: this.courseType,
  6008. task: this.taskCount,
  6009. tool: this.toolindex,
  6010. content: JSON.stringify(this.sentenceList),
  6011. type: 9,
  6012. },
  6013. ];
  6014. this.ajax
  6015. .post(this.$store.state.api + "addCourseWorks", params)
  6016. .then((res) => {
  6017. this.$message({
  6018. message: "提交成功",
  6019. type: "success",
  6020. });
  6021. this.dialogVisibleSentence = false;
  6022. // this.selectAnswer = {};
  6023. this.selectSWorks();
  6024. this.selectStudent();
  6025. })
  6026. .catch((err) => {
  6027. this.$message.error("提交失败");
  6028. console.error(err);
  6029. });
  6030. },
  6031. addSenWorksTeacher() {
  6032. for (var i = 0; i < this.sentenceList.length; i++) {
  6033. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  6034. if (
  6035. this.sentenceList[i].chooseSenList[j] == undefined ||
  6036. this.sentenceList[i].chooseSenList[j] == ""
  6037. ) {
  6038. this.$message.error("请将答案填写完整!");
  6039. return;
  6040. }
  6041. }
  6042. }
  6043. let params = [
  6044. {
  6045. uid: this.sStudent.userid,
  6046. cid: this.id,
  6047. stage: this.courseType,
  6048. task: this.taskCount,
  6049. tool: this.toolindex,
  6050. content: JSON.stringify(this.sentenceList),
  6051. type: 9,
  6052. },
  6053. ];
  6054. this.ajax
  6055. .post(this.$store.state.api + "addCourseWorks", params)
  6056. .then((res) => {
  6057. this.$message({
  6058. message: "提交成功",
  6059. type: "success",
  6060. });
  6061. this.dialogVisibleSentenceTeacher = false;
  6062. // this.selectAnswer = {};
  6063. this.selectSWorks();
  6064. this.selectStudent();
  6065. })
  6066. .catch((err) => {
  6067. this.$message.error("提交失败");
  6068. console.error(err);
  6069. });
  6070. },
  6071. returnTableText() {
  6072. this.$confirm("确定还原此模板吗?", "提示", {
  6073. confirmButtonText: "确定",
  6074. cancelButtonText: "取消",
  6075. type: "warning",
  6076. })
  6077. .then(() => {
  6078. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  6079. })
  6080. .catch(() => { });
  6081. },
  6082. addTableWorks() {
  6083. let params = [
  6084. {
  6085. uid: this.userid,
  6086. cid: this.id,
  6087. stage: this.courseType,
  6088. task: this.taskCount,
  6089. tool: this.toolindex,
  6090. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  6091. type: 10,
  6092. },
  6093. ];
  6094. this.ajax
  6095. .post(this.$store.state.api + "addCourseWorks", params)
  6096. .then((res) => {
  6097. this.$message({
  6098. message: "提交成功",
  6099. type: "success",
  6100. });
  6101. this.dialogVisibleTable = false;
  6102. // this.selectAnswer = {};
  6103. this.selectSWorks();
  6104. this.selectStudent();
  6105. })
  6106. .catch((err) => {
  6107. this.$message.error("提交失败");
  6108. console.error(err);
  6109. });
  6110. },
  6111. addTableWorksTeacher() {
  6112. let params = [
  6113. {
  6114. uid: this.sStudent.userid,
  6115. cid: this.id,
  6116. stage: this.courseType,
  6117. task: this.taskCount,
  6118. tool: this.toolindex,
  6119. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  6120. type: 10,
  6121. },
  6122. ];
  6123. this.ajax
  6124. .post(this.$store.state.api + "addCourseWorks", params)
  6125. .then((res) => {
  6126. this.$message({
  6127. message: "提交成功",
  6128. type: "success",
  6129. });
  6130. this.dialogVisibleTableTeacher = false;
  6131. // this.selectAnswer = {};
  6132. this.selectSWorks();
  6133. this.selectStudent();
  6134. })
  6135. .catch((err) => {
  6136. this.$message.error("提交失败");
  6137. console.error(err);
  6138. });
  6139. },
  6140. returnWordText() {
  6141. this.$confirm("确定还原此模板吗?", "提示", {
  6142. confirmButtonText: "确定",
  6143. cancelButtonText: "取消",
  6144. type: "warning",
  6145. })
  6146. .then(() => {
  6147. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  6148. })
  6149. .catch(() => { });
  6150. },
  6151. addWordWorks() {
  6152. let params = [
  6153. {
  6154. uid: this.userid,
  6155. cid: this.id,
  6156. stage: this.courseType,
  6157. task: this.taskCount,
  6158. tool: this.toolindex,
  6159. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  6160. type: 13,
  6161. atool: 52,
  6162. },
  6163. ];
  6164. console.log(params);
  6165. this.ajax
  6166. .post(this.$store.state.api + "addCourseWorks3-2", params)
  6167. .then((res) => {
  6168. this.$message({
  6169. message: "提交成功",
  6170. type: "success",
  6171. });
  6172. this.dialogVisibleWord = false;
  6173. // this.selectAnswer = {};
  6174. this.selectSWorks();
  6175. this.selectStudent();
  6176. })
  6177. .catch((err) => {
  6178. this.$message.error("提交失败");
  6179. console.error(err);
  6180. });
  6181. },
  6182. addWordWorksTeacher() {
  6183. let params = [
  6184. {
  6185. uid: this.sStudent.userid,
  6186. cid: this.id,
  6187. stage: this.courseType,
  6188. task: this.taskCount,
  6189. tool: this.toolindex,
  6190. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  6191. type: 13,
  6192. atool: 52,
  6193. },
  6194. ];
  6195. console.log(params);
  6196. this.ajax
  6197. .post(this.$store.state.api + "addCourseWorks3-2", params)
  6198. .then((res) => {
  6199. this.$message({
  6200. message: "提交成功",
  6201. type: "success",
  6202. });
  6203. this.dialogVisibleWordTeacher = false;
  6204. // this.selectAnswer = {};
  6205. this.selectSWorks();
  6206. this.selectStudent();
  6207. })
  6208. .catch((err) => {
  6209. this.$message.error("提交失败");
  6210. console.error(err);
  6211. });
  6212. },
  6213. addCourseWorks(i) {
  6214. var typesql;
  6215. if (this.fileType === 0) {
  6216. typesql = 1;
  6217. } else if (this.fileType === 1) {
  6218. typesql = 4;
  6219. } else if (this.fileType === 2) {
  6220. typesql = 5;
  6221. } else if (this.fileType === 3) {
  6222. typesql = 12;
  6223. }
  6224. if (!this.studyJuri[0].cover[0].url) {
  6225. this.$message.error("请上传文件");
  6226. return;
  6227. }
  6228. let params = [
  6229. {
  6230. uid: this.userid,
  6231. cid: this.id,
  6232. stage: this.courseType,
  6233. task: i,
  6234. tool: this.toolindex,
  6235. content: this.studyJuri[0].cover[0].url,
  6236. type: typesql,
  6237. },
  6238. ];
  6239. this.ajax
  6240. .post(this.$store.state.api + "addCourseWorksR", params)
  6241. .then((res) => {
  6242. this.$message({
  6243. message: "提交成功",
  6244. type: "success",
  6245. });
  6246. this.studyJuri[0].cover = [];
  6247. this.dialogVisible = false;
  6248. this.getCourseDetail(2);
  6249. })
  6250. .catch((err) => {
  6251. this.$message.error("提交失败");
  6252. console.error(err);
  6253. });
  6254. },
  6255. addCourseWorksPl(i) {
  6256. let _files = this.plworkFile;
  6257. var c = 1;
  6258. for (var k = 0; k < _files.length; k++) {
  6259. if (!_files[k].username) {
  6260. c = 2;
  6261. }
  6262. }
  6263. if (c == 2) {
  6264. this.$message.error("请填写学生姓名");
  6265. return;
  6266. }
  6267. let params = [
  6268. {
  6269. ateacher: this.userid,
  6270. cid: this.id,
  6271. stage: this.courseType,
  6272. task: i,
  6273. tool: this.toolindex,
  6274. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  6275. },
  6276. ];
  6277. this.ajax
  6278. .post(this.$store.state.api + "addCourseWorksPl", params)
  6279. .then((res) => {
  6280. this.$message({
  6281. message: "提交成功",
  6282. type: "success",
  6283. });
  6284. this.plworkFile = [];
  6285. this.dialogVisiblePl = false;
  6286. this.getCourseDetail(2);
  6287. })
  6288. .catch((err) => {
  6289. this.$message.error("提交失败");
  6290. console.error(err);
  6291. });
  6292. },
  6293. addCourseWorks2(i) {
  6294. var typesql;
  6295. if (this.fileType === 0) {
  6296. typesql = 0;
  6297. } else if (this.fileType === 1) {
  6298. typesql = 1;
  6299. } else if (this.fileType === 2) {
  6300. typesql = 3;
  6301. } else if (this.fileType === 3) {
  6302. typesql = 12;
  6303. }
  6304. if (!this.studyJuri[0].cover[0].url) {
  6305. this.$message.error("请上传文件");
  6306. return;
  6307. }
  6308. let params = [
  6309. {
  6310. uid: this.userid,
  6311. cid: this.id,
  6312. stage: this.courseType,
  6313. task: i,
  6314. tool: this.toolindex,
  6315. content: JSON.stringify({
  6316. type: typesql,
  6317. groupIndex: this.groupIndex,
  6318. url: this.studyJuri[0].cover[0].url,
  6319. }).replaceAll(/%/g, "%25"),
  6320. type: 11,
  6321. atool: 49,
  6322. text: "",
  6323. },
  6324. ];
  6325. this.ajax
  6326. .post(this.$store.state.api + "addCourseWorks5", params)
  6327. .then((res) => {
  6328. this.$message({
  6329. message: "提交成功",
  6330. type: "success",
  6331. });
  6332. this.studyJuri[0].cover = [];
  6333. this.dialogVisibleGroupWork = false;
  6334. this.getCourseDetail(2);
  6335. })
  6336. .catch((err) => {
  6337. this.$message.error("提交失败");
  6338. console.error(err);
  6339. });
  6340. },
  6341. addCourseWorksGong(i, data, tool) {
  6342. let params = [
  6343. {
  6344. uid: this.userid,
  6345. cid: this.id,
  6346. stage: this.courseType,
  6347. task: this.taskCount,
  6348. tool: i,
  6349. content: data,
  6350. type: 12,
  6351. atool: tool,
  6352. text: "",
  6353. },
  6354. ];
  6355. this.ajax
  6356. .post(this.$store.state.api + "addCourseWorks5", params)
  6357. .then((res) => {
  6358. this.$message({
  6359. message: "提交成功",
  6360. type: "success",
  6361. });
  6362. this.studyJuri[0].cover = [];
  6363. this.selectSWorks();
  6364. this.selectStudent();
  6365. })
  6366. .catch((err) => {
  6367. this.$message.error("提交失败");
  6368. console.error(err);
  6369. });
  6370. },
  6371. addCourseWorksGongTeacher(i, data, tool) {
  6372. let params = [
  6373. {
  6374. uid: this.sStudent.userid,
  6375. cid: this.id,
  6376. stage: this.courseType,
  6377. task: this.taskCount,
  6378. tool: i,
  6379. content: data,
  6380. type: 12,
  6381. atool: tool,
  6382. text: "",
  6383. },
  6384. ];
  6385. this.ajax
  6386. .post(this.$store.state.api + "addCourseWorks5", params)
  6387. .then((res) => {
  6388. this.$message({
  6389. message: "提交成功",
  6390. type: "success",
  6391. });
  6392. this.studyJuri[0].cover = [];
  6393. this.dialogVisibleWorks = false;
  6394. this.selectSWorks();
  6395. this.selectStudent();
  6396. })
  6397. .catch((err) => {
  6398. this.$message.error("提交失败");
  6399. console.error(err);
  6400. });
  6401. },
  6402. addCourseWorksGongPl(i, data, tool, type) {
  6403. let params = [
  6404. {
  6405. uid: this.sStudent.userid,
  6406. cid: this.id,
  6407. stage: this.courseType,
  6408. task: this.taskCount,
  6409. tool: i,
  6410. content: data,
  6411. type: type,
  6412. atool: tool,
  6413. text: "",
  6414. },
  6415. ];
  6416. this.ajax
  6417. .post(this.$store.state.api + "addCourseWorks5", params)
  6418. .then((res) => {
  6419. this.$message({
  6420. message: "提交成功",
  6421. type: "success",
  6422. });
  6423. this.studyJuri[0].cover = [];
  6424. this.dialogVisibleWorks = false;
  6425. this.selectSWorks();
  6426. this.selectStudent();
  6427. })
  6428. .catch((err) => {
  6429. this.$message.error("提交失败");
  6430. console.error(err);
  6431. });
  6432. },
  6433. addCourseWorksTeacher(i) {
  6434. var typesql;
  6435. if (this.sTool == 32 || this.sTool == 57) {
  6436. this.addCourseWorksGongTeacher(
  6437. this.toolindex,
  6438. this.studyJuri[0].cover[0].url,
  6439. this.sTool
  6440. );
  6441. return;
  6442. }
  6443. if (this.fileType === 0) {
  6444. typesql = 1;
  6445. } else if (this.fileType === 1) {
  6446. typesql = 4;
  6447. } else if (this.fileType === 2) {
  6448. typesql = 5;
  6449. } else if (this.fileType === 3) {
  6450. typesql = 12;
  6451. }
  6452. if (this.sTool == 50) {
  6453. this.addCourseWorksGongPl(
  6454. this.toolindex,
  6455. this.studyJuri[0].cover[0].url,
  6456. this.sTool,
  6457. typesql
  6458. );
  6459. return;
  6460. }
  6461. if (!this.studyJuri[0].cover[0].url) {
  6462. this.$message.error("请上传文件");
  6463. return;
  6464. }
  6465. let params = [
  6466. {
  6467. uid: this.sStudent.userid,
  6468. cid: this.id,
  6469. stage: this.courseType,
  6470. task: i,
  6471. tool: this.toolindex,
  6472. content: this.studyJuri[0].cover[0].url,
  6473. type: typesql,
  6474. ateacher: this.userid,
  6475. },
  6476. ];
  6477. this.ajax
  6478. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  6479. .then((res) => {
  6480. this.$message({
  6481. message: "提交成功",
  6482. type: "success",
  6483. });
  6484. this.studyJuri[0].cover = [];
  6485. this.dialogVisibleWorks = false;
  6486. this.getCourseDetail(2);
  6487. })
  6488. .catch((err) => {
  6489. this.$message.error("提交失败");
  6490. console.error(err);
  6491. });
  6492. },
  6493. selectUploadStudent() {
  6494. let params = {
  6495. cid: this.uploadCid,
  6496. oid: this.oid,
  6497. cn: "",
  6498. };
  6499. this.ajax
  6500. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  6501. .then((res) => {
  6502. var studentK = [];
  6503. if (this.isWorksS[this.toolindex].length > 0) {
  6504. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  6505. studentK.push(this.isWorksS[this.toolindex][z].uid);
  6506. }
  6507. studentK = studentK.join(",");
  6508. }
  6509. this.uploadStudentJuri = res.data[0].filter((el) => {
  6510. return studentK.indexOf(el.userid) == -1;
  6511. });
  6512. })
  6513. .catch((err) => {
  6514. console.error(err);
  6515. });
  6516. },
  6517. arrayToArray(arrayo, arrayt) {
  6518. let array1 = arrayo;
  6519. let array2 = arrayt;
  6520. let commonElements = [];
  6521. for (let i = 0; i < array1.length; i++) {
  6522. for (let j = 0; j < array2.length; j++) {
  6523. if (array1[i] === array2[j]) {
  6524. commonElements.push(array1[i]);
  6525. }
  6526. }
  6527. }
  6528. return commonElements;
  6529. },
  6530. selectWorksStudent() {
  6531. let params = {
  6532. oid: this.oid,
  6533. cid: this.courseDetail.juri,
  6534. };
  6535. this.ajax
  6536. .get(this.$store.state.api + "selectWorksStudent", params)
  6537. .then((res) => {
  6538. var a = res.data[0];
  6539. for (var i = 0; i < this.isWorksS.length; i++) {
  6540. this.noWorksS[i] = [];
  6541. var studentK = [];
  6542. if (this.isWorksS[i].length > 0) {
  6543. for (var z = 0; z < this.isWorksS[i].length; z++) {
  6544. studentK.push(this.isWorksS[i][z].uid);
  6545. }
  6546. studentK = studentK.join(",");
  6547. for (var j = 0; j < a.length; j++) {
  6548. if (studentK.indexOf(a[j].userid) == -1) {
  6549. if (this.tcid) {
  6550. // a[j].classid.indexOf(this.tcid) != -1
  6551. if (
  6552. this.arrayToArray(
  6553. a[j].classid.split(","),
  6554. this.tcid.split(",")
  6555. ).length
  6556. ) {
  6557. this.noWorksS[i].push({
  6558. student: a[j].name,
  6559. userid: a[j].userid,
  6560. });
  6561. }
  6562. } else {
  6563. this.noWorksS[i].push({
  6564. student: a[j].name,
  6565. userid: a[j].userid,
  6566. });
  6567. }
  6568. }
  6569. }
  6570. } else {
  6571. for (var k = 0; k < a.length; k++) {
  6572. if (this.tcid) {
  6573. if (
  6574. this.arrayToArray(
  6575. a[k].classid.split(","),
  6576. this.tcid.split(",")
  6577. ).length
  6578. ) {
  6579. this.noWorksS[i].push({
  6580. student: a[k].name,
  6581. userid: a[k].userid,
  6582. });
  6583. }
  6584. } else {
  6585. this.noWorksS[i].push({
  6586. student: a[k].name,
  6587. userid: a[k].userid,
  6588. });
  6589. }
  6590. }
  6591. }
  6592. }
  6593. this.$forceUpdate();
  6594. if (
  6595. Object.keys(this.commentDetail).length &&
  6596. Object.keys(this.commentIndexJson).length &&
  6597. !this.dialogVisibleScore
  6598. ) {
  6599. let a = 1;
  6600. let c = this.commentIndexJson;
  6601. console.log(c);
  6602. if (
  6603. this.commentIndexJson.gindex ||
  6604. this.commentIndexJson.gindex === 0
  6605. ) {
  6606. for (
  6607. var i = 0;
  6608. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6609. i++
  6610. ) {
  6611. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6612. groupA: for (var k = 0; k < _el.length; k++) {
  6613. let el = _el[k];
  6614. if (el.wid == this.commentDetail.wid) {
  6615. a = 2;
  6616. this.commentOther(
  6617. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  6618. this.commentIndexJson.toolIndex,
  6619. k,
  6620. this.commentIndexJson.gindex
  6621. );
  6622. break groupA;
  6623. }
  6624. }
  6625. }
  6626. if (a === 1) {
  6627. this.commentDetail = [];
  6628. this.commentIndexJson = {};
  6629. this.commentDialogVisible = false;
  6630. this.$message("此作业已被删除");
  6631. }
  6632. } else {
  6633. if (this.isGroup && this.commentIndexJson.gid) {
  6634. groupA: for (
  6635. var i = 0;
  6636. i < this.courseGroup.group.length;
  6637. i++
  6638. ) {
  6639. let _group = this.courseGroup.group[i];
  6640. if (_group.id == this.commentIndexJson.gid) {
  6641. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  6642. for (var k = 0; k < _el2.length; k++) {
  6643. let el2 = _el2[k];
  6644. if (el2.wid == this.commentDetail.wid) {
  6645. a = 2;
  6646. this.commentOther(
  6647. _el2[k],
  6648. this.commentIndexJson.toolIndex,
  6649. k,
  6650. null,
  6651. this.commentIndexJson.gid
  6652. );
  6653. break groupA;
  6654. }
  6655. }
  6656. }
  6657. }
  6658. }
  6659. if (a == 1) {
  6660. for (
  6661. var i = 0;
  6662. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6663. i++
  6664. ) {
  6665. let el =
  6666. this.worksStudent[this.commentIndexJson.toolIndex][i];
  6667. if (el.wid == this.commentDetail.wid) {
  6668. a = 2;
  6669. this.commentOther(
  6670. this.worksStudent[this.commentIndexJson.toolIndex][i],
  6671. this.commentIndexJson.toolIndex,
  6672. i
  6673. );
  6674. break;
  6675. }
  6676. }
  6677. }
  6678. if (a === 1) {
  6679. this.commentDetail = [];
  6680. this.commentIndexJson = {};
  6681. this.commentDialogVisible = false;
  6682. this.$message("此作业已被删除");
  6683. }
  6684. }
  6685. }
  6686. })
  6687. .catch((err) => {
  6688. console.error(err);
  6689. });
  6690. },
  6691. selectStudent() {
  6692. //学生查看自己作业
  6693. let params = {
  6694. uid: this.userid,
  6695. cid: this.id,
  6696. s: this.courseType,
  6697. t: this.taskCount,
  6698. };
  6699. this.ajax
  6700. .get(this.$store.state.api + "selectStudentWorks", params)
  6701. .then((res) => {
  6702. var a =
  6703. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6704. this.taskCount
  6705. ].toolChoose;
  6706. var b = res.data[0];
  6707. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  6708. var y = [
  6709. "AVI",
  6710. "NAVI",
  6711. "MPEG",
  6712. "ASF",
  6713. "MOV",
  6714. "WMV",
  6715. "3GP",
  6716. "RM",
  6717. "RMVB",
  6718. "FLV",
  6719. "F4V",
  6720. "H.264",
  6721. "H.265",
  6722. "REAL VIDEO",
  6723. "MKV",
  6724. "WebM",
  6725. "HDDVD",
  6726. "MP4",
  6727. "MPG",
  6728. "M4V",
  6729. "MGV",
  6730. "OGV",
  6731. "QTM",
  6732. "STR",
  6733. "AMC",
  6734. "DVX",
  6735. "EVO",
  6736. "DAT",
  6737. "OGG",
  6738. "OGM",
  6739. ];
  6740. for (var i = 0; i < a.length; i++) {
  6741. this.workStudent[i] = [];
  6742. for (var j = 0; j < b.length; j++) {
  6743. if (i == b[j].tool) {
  6744. if (
  6745. (b[j].type == 1 ||
  6746. b[j].type == 4 ||
  6747. b[j].type == 5 ||
  6748. b[j].type == 6 ||
  6749. b[j].type == 12 ||
  6750. b[j].type == 7) &&
  6751. a[i].tool[0] != 15 &&
  6752. a[i].tool[0] != 4 &&
  6753. a[i].tool[0] != 45 &&
  6754. a[i].tool[0] != 50 &&
  6755. a[i].tool[0] != 32 &&
  6756. a[i].tool[0] != 57 &&
  6757. a[i].tool[0] != 52
  6758. ) {
  6759. if (
  6760. c.indexOf(
  6761. b[j].content
  6762. .split(".")
  6763. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6764. ) != -1 &&
  6765. a[i].tool[0] == 16 &&
  6766. b[j].atool != 50
  6767. ) {
  6768. this.workStudent[i].push({
  6769. works: b[j].content,
  6770. sName: b[j].name,
  6771. score: b[j].score,
  6772. img: b[j].img,
  6773. type: 1,
  6774. time: b[j].time,
  6775. userid: b[j].userid,
  6776. wid: b[j].id,
  6777. });
  6778. } else if (
  6779. y.indexOf(
  6780. b[j].content
  6781. .split(".")
  6782. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6783. ) != -1 &&
  6784. a[i].tool[0] == 16 &&
  6785. b[j].atool != 50
  6786. ) {
  6787. this.workStudent[i].push({
  6788. userid: b[j].userid,
  6789. wid: b[j].id,
  6790. works: b[j].content,
  6791. sName: b[j].name,
  6792. score: b[j].score,
  6793. img: b[j].img,
  6794. type: 3,
  6795. time: b[j].time,
  6796. });
  6797. } else if (b[j].type == 6 && b[j].atool != 50) {
  6798. this.workStudent[i].push({
  6799. userid: b[j].userid,
  6800. wid: b[j].id,
  6801. works: b[j].content,
  6802. sName: b[j].name,
  6803. score: b[j].score,
  6804. img: b[j].img,
  6805. type: 4,
  6806. time: b[j].time,
  6807. });
  6808. } else if (b[j].type == 7 && b[j].atool != 50) {
  6809. this.workStudent[i].push({
  6810. userid: b[j].userid,
  6811. wid: b[j].id,
  6812. works: b[j].content,
  6813. sName: b[j].name,
  6814. score: b[j].score,
  6815. img: b[j].img,
  6816. type: 5,
  6817. time: b[j].time,
  6818. });
  6819. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  6820. this.workStudent[i].push({
  6821. works: b[j].content,
  6822. sName: b[j].name,
  6823. score: b[j].score,
  6824. img: b[j].img,
  6825. type: 12,
  6826. time: b[j].time,
  6827. userid: b[j].userid,
  6828. wid: b[j].id,
  6829. });
  6830. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  6831. this.workStudent[i].push({
  6832. works: b[j].content,
  6833. sName: b[j].name,
  6834. score: b[j].score,
  6835. img: b[j].img,
  6836. type: 0,
  6837. time: b[j].time,
  6838. userid: b[j].userid,
  6839. wid: b[j].id,
  6840. });
  6841. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  6842. this.workStudent[i].push({
  6843. works: b[j].content,
  6844. sName: b[j].name,
  6845. score: b[j].score,
  6846. img: b[j].img,
  6847. type: 0,
  6848. time: b[j].time,
  6849. userid: b[j].userid,
  6850. wid: b[j].id,
  6851. });
  6852. }
  6853. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  6854. this.workStudent[i].push({
  6855. works: b[j].content,
  6856. sName: b[j].name,
  6857. score: b[j].score,
  6858. img: b[j].img,
  6859. type: 2,
  6860. time: b[j].time,
  6861. userid: b[j].userid,
  6862. wid: b[j].id,
  6863. });
  6864. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  6865. //问卷
  6866. this.workStudent[i].push({
  6867. works: b[j].content,
  6868. sName: b[j].name,
  6869. score: b[j].score,
  6870. img: b[j].img,
  6871. type: 2,
  6872. time: b[j].time,
  6873. userid: b[j].userid,
  6874. wid: b[j].id,
  6875. });
  6876. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  6877. //选择题
  6878. this.workStudent[i].push({
  6879. works: b[j].content,
  6880. sName: b[j].name,
  6881. score: b[j].score,
  6882. img: b[j].img,
  6883. type: 8,
  6884. time: b[j].time,
  6885. userid: b[j].userid,
  6886. wid: b[j].id,
  6887. });
  6888. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  6889. //选择题
  6890. this.workStudent[i].push({
  6891. works: b[j].content,
  6892. sName: b[j].name,
  6893. score: b[j].score,
  6894. img: b[j].img,
  6895. type: 9,
  6896. time: b[j].time,
  6897. userid: b[j].userid,
  6898. wid: b[j].id,
  6899. });
  6900. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  6901. //选择题
  6902. this.workStudent[i].push({
  6903. works: b[j].content,
  6904. sName: b[j].name,
  6905. score: b[j].score,
  6906. img: b[j].img,
  6907. type: 10,
  6908. time: b[j].time,
  6909. userid: b[j].userid,
  6910. wid: b[j].id,
  6911. });
  6912. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  6913. //选择题
  6914. this.workStudent[i].push({
  6915. works: b[j].content,
  6916. sName: b[j].name,
  6917. score: b[j].score,
  6918. img: b[j].img,
  6919. type: 13,
  6920. time: b[j].time,
  6921. userid: b[j].userid,
  6922. wid: b[j].id,
  6923. });
  6924. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  6925. //选择题
  6926. this.workStudent[i].push({
  6927. works: b[j].content,
  6928. sName: b[j].name,
  6929. score: b[j].score,
  6930. img: b[j].img,
  6931. type: 12,
  6932. time: b[j].time,
  6933. userid: b[j].userid,
  6934. wid: b[j].id,
  6935. });
  6936. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  6937. //选择题
  6938. this.workStudent[i].push({
  6939. works: b[j].content,
  6940. sName: b[j].name,
  6941. score: b[j].score,
  6942. img: b[j].img,
  6943. type: 12,
  6944. time: b[j].time,
  6945. userid: b[j].userid,
  6946. wid: b[j].id,
  6947. });
  6948. }
  6949. }
  6950. }
  6951. }
  6952. })
  6953. .catch((err) => {
  6954. console.error(err);
  6955. });
  6956. },
  6957. openVideo(w) {
  6958. this.videoDetail = {};
  6959. this.playerOptions1.sources[0].src = w.works;
  6960. this.videoDetail = this.playerOptions1;
  6961. this.videoVisible = true;
  6962. },
  6963. isLikes(wid, uid, t, c, isLikes) {
  6964. if (isLikes == false) {
  6965. let params = [
  6966. {
  6967. wid: wid,
  6968. lid: uid,
  6969. t: t,
  6970. c: c,
  6971. },
  6972. ];
  6973. this.ajax
  6974. .post(this.$store.state.api + "insertComment", params)
  6975. .then((res) => {
  6976. this.$message({
  6977. message: "点赞成功",
  6978. type: "success",
  6979. });
  6980. this.selectSWorks();
  6981. this.selectStudent();
  6982. })
  6983. .catch((err) => {
  6984. this.$message.error("点赞失败");
  6985. console.error(err);
  6986. });
  6987. } else {
  6988. let params = {
  6989. wid: wid,
  6990. lid: uid,
  6991. type: t,
  6992. };
  6993. this.ajax
  6994. .get(this.$store.state.api + "deleteComment", params)
  6995. .then((res) => {
  6996. this.$message({
  6997. message: "取消点赞成功",
  6998. type: "success",
  6999. });
  7000. this.selectSWorks();
  7001. this.selectStudent();
  7002. })
  7003. .catch((err) => {
  7004. console.error(err);
  7005. });
  7006. }
  7007. },
  7008. deleteComment(wid) {
  7009. this.$confirm("确定删除此评论吗?", "提示", {
  7010. confirmButtonText: "确定",
  7011. cancelButtonText: "取消",
  7012. type: "warning",
  7013. })
  7014. .then(() => {
  7015. let params = {
  7016. id: wid,
  7017. };
  7018. this.ajax
  7019. .get(this.$store.state.api + "deleteComment2", params)
  7020. .then((res) => {
  7021. this.$message({
  7022. message: "删除评论成功",
  7023. type: "success",
  7024. });
  7025. this.selectSWorks();
  7026. this.selectStudent();
  7027. })
  7028. .catch((err) => {
  7029. console.error(err);
  7030. });
  7031. })
  7032. .catch(() => { });
  7033. },
  7034. commentOther(w, toolIndex, wIndex, gindex, gid) {
  7035. this.commentIndexJson = {
  7036. toolIndex: toolIndex,
  7037. wIndex: wIndex,
  7038. gindex: gindex,
  7039. gid: gid,
  7040. };
  7041. this.commentDetail = [];
  7042. this.commentDialogVisible = true;
  7043. this.commentDetail = w;
  7044. if (w.works && w.type == 1) {
  7045. this.pptImgUrl = "";
  7046. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  7047. if (
  7048. a.indexOf(
  7049. w.works
  7050. .split(".")
  7051. [w.works.split(".").length - 1].toLocaleUpperCase()
  7052. ) != -1
  7053. ) {
  7054. this.pptImgUrl =
  7055. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  7056. this.showPDF = false;
  7057. } else if (
  7058. w.works
  7059. .split(".")
  7060. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  7061. ) {
  7062. this.pptImgUrl = w.works;
  7063. this.showPDF = true;
  7064. }
  7065. } else if (w.works && w.type == 3) {
  7066. this.videoDetail = {};
  7067. this.playerOptions1.sources[0].src = w.works;
  7068. this.videoDetail = this.playerOptions1;
  7069. // this.videoVisible = true;
  7070. } else if (w.works && w.type == 4) {
  7071. this.eScore = JSON.parse(w.works);
  7072. this.rateJson =
  7073. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7074. this.taskCount
  7075. ].toolChoose[toolIndex].rateJson;
  7076. } else if (w.works && w.type == 10) {
  7077. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  7078. } else if (w.works && w.type == 13) {
  7079. this.wordJson =
  7080. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7081. this.taskCount
  7082. ].toolChoose[toolIndex].wordJson;
  7083. }
  7084. },
  7085. openScore(w) {
  7086. this.wScore = 0;
  7087. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  7088. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  7089. this.commentDetail = [];
  7090. this.dialogVisibleScore = true;
  7091. this.commentDetail = w;
  7092. if (w.works && w.type == 1) {
  7093. this.pptImgUrl = "";
  7094. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  7095. if (
  7096. a.indexOf(
  7097. w.works
  7098. .split(".")
  7099. [w.works.split(".").length - 1].toLocaleUpperCase()
  7100. ) != -1
  7101. ) {
  7102. this.pptImgUrl =
  7103. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  7104. this.showPDF = false;
  7105. } else if (
  7106. w.works
  7107. .split(".")
  7108. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  7109. ) {
  7110. this.pptImgUrl = w.works;
  7111. this.showPDF = true;
  7112. }
  7113. } else if (w.works && w.type == 3) {
  7114. this.videoDetail = {};
  7115. this.playerOptions1.sources[0].src = w.works;
  7116. this.videoDetail = this.playerOptions1;
  7117. }
  7118. },
  7119. addComment(wid, uid, t) {
  7120. if (this.commentText == "") {
  7121. this.$message.error("请输入评论");
  7122. return;
  7123. }
  7124. let params2 = [
  7125. {
  7126. wid: wid,
  7127. lid: uid,
  7128. t: t,
  7129. },
  7130. ];
  7131. this.ajax
  7132. .post(this.$store.state.api + "getComment", params2)
  7133. .then((res) => {
  7134. if (res.data[0].length > 0) {
  7135. this.$message.error("一个作业只能评论一条");
  7136. } else {
  7137. let params = [
  7138. {
  7139. wid: wid,
  7140. lid: uid,
  7141. t: t,
  7142. c: this.commentText,
  7143. },
  7144. ];
  7145. this.ajax
  7146. .post(this.$store.state.api + "insertComment", params)
  7147. .then((res) => {
  7148. this.$message({
  7149. message: "评论成功",
  7150. type: "success",
  7151. });
  7152. this.commentText = "";
  7153. this.selectSWorks();
  7154. this.selectStudent();
  7155. })
  7156. .catch((err) => {
  7157. this.$message.error("评论失败");
  7158. console.error(err);
  7159. });
  7160. }
  7161. })
  7162. .catch((err) => {
  7163. // this.$message.error("评论失败");
  7164. console.error(err);
  7165. });
  7166. },
  7167. scoreWork(wid) {
  7168. if (this.wScore == 0) {
  7169. this.$message.error("请评分");
  7170. return;
  7171. }
  7172. let params = [
  7173. {
  7174. wid: wid,
  7175. score: JSON.stringify({
  7176. wScore: this.wScore,
  7177. detail: this.scoreDetail,
  7178. }),
  7179. },
  7180. ];
  7181. this.ajax
  7182. .post(this.$store.state.api + "scoreWork", params)
  7183. .then((res) => {
  7184. this.$message({
  7185. message: "评分成功",
  7186. type: "success",
  7187. });
  7188. this.wScore = 0;
  7189. this.scoreDetail = "";
  7190. this.dialogVisibleScore = false;
  7191. this.selectSWorks();
  7192. this.selectStudent();
  7193. })
  7194. .catch((err) => {
  7195. this.$message.error("评分失败");
  7196. console.error(err);
  7197. });
  7198. },
  7199. openXz(w, i) {
  7200. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  7201. .taskJson[this.taskCount].toolChoose[i].selectJson
  7202. ? JSON.parse(
  7203. JSON.stringify(
  7204. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7205. this.taskCount
  7206. ].toolChoose[i].selectJson
  7207. )
  7208. )
  7209. : { url: "", select: [], answer: [] };
  7210. var a = w.works.split(",");
  7211. for (var k = 0; k < a.length; k++) {
  7212. a[k] = parseInt(a[k]);
  7213. }
  7214. this.selectAnswer = { answer: a, stu: w.sName };
  7215. this.isSelect = true;
  7216. this.dialogVisibleSelect = true;
  7217. },
  7218. openSen(w, i) {
  7219. this.sentenceList1 = JSON.parse(w.works);
  7220. this.sentenceList1.stuName = w.sName;
  7221. this.dialogVisibleSentence1 = true;
  7222. },
  7223. openPj(w, toolindex) {
  7224. this.isStar = true;
  7225. this.eScore = JSON.parse(w);
  7226. this.rateJson =
  7227. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7228. this.taskCount
  7229. ].toolChoose[toolindex].rateJson;
  7230. this.studentEvalDialogVisible = true;
  7231. },
  7232. deleteWorks(id) {
  7233. this.$confirm("确定删除此作业吗?", "提示", {
  7234. confirmButtonText: "确定",
  7235. cancelButtonText: "取消",
  7236. type: "warning",
  7237. })
  7238. .then(() => {
  7239. let params = [
  7240. {
  7241. id: id,
  7242. },
  7243. ];
  7244. this.ajax
  7245. .post(this.$store.state.api + "deleteCourseWork", params)
  7246. .then((res) => {
  7247. this.$message({
  7248. message: "删除成功",
  7249. type: "success",
  7250. });
  7251. this.selectStudent();
  7252. this.selectSWorks();
  7253. this.selectSLook();
  7254. })
  7255. .catch((err) => {
  7256. this.$message.error("网络异常");
  7257. console.error(err);
  7258. });
  7259. })
  7260. .catch(() => { });
  7261. },
  7262. selectSWorks(gindex) {
  7263. //教师查看全部作业
  7264. let params = {
  7265. cid: this.id,
  7266. s: this.courseType,
  7267. t: this.taskCount,
  7268. };
  7269. this.ajax
  7270. .get(this.$store.state.api + "selectSWorks", params)
  7271. .then((res) => {
  7272. var a =
  7273. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7274. this.taskCount
  7275. ].toolChoose;
  7276. var b = res.data[0];
  7277. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7278. var y = [
  7279. "AVI",
  7280. "NAVI",
  7281. "MPEG",
  7282. "ASF",
  7283. "MOV",
  7284. "WMV",
  7285. "3GP",
  7286. "RM",
  7287. "RMVB",
  7288. "FLV",
  7289. "F4V",
  7290. "H.264",
  7291. "H.265",
  7292. "REAL VIDEO",
  7293. "MKV",
  7294. "WebM",
  7295. "HDDVD",
  7296. "MP4",
  7297. "MPG",
  7298. "M4V",
  7299. "MGV",
  7300. "OGV",
  7301. "QTM",
  7302. "STR",
  7303. "AMC",
  7304. "DVX",
  7305. "EVO",
  7306. "DAT",
  7307. "OGG",
  7308. "OGM",
  7309. ];
  7310. var d = res.data[1];
  7311. var e = res.data[2];
  7312. var f = res.data[3];
  7313. let _worksStudent = [];
  7314. for (var i = 0; i < a.length; i++) {
  7315. _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 (
  7326. var groupI = 0;
  7327. groupI < this.courseGroup.group.length;
  7328. groupI++
  7329. ) {
  7330. this.courseGroup.group[groupI].works[i] = [];
  7331. }
  7332. }
  7333. this.isWorksS[i] = [];
  7334. this.checkJson[i] = [];
  7335. if (a[i].tool[0] == 49) {
  7336. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  7337. this.groupStudent[i][gA] = [];
  7338. this.groupStudentUid[i][gA] = [];
  7339. _worksStudent[i][gA] = [];
  7340. this.isCloseList[i][gA] = [];
  7341. for (var g = 0; g < f.length; g++) {
  7342. if (
  7343. f[g].ttype == 2 &&
  7344. this.tcid &&
  7345. this.arrayToArray(
  7346. f[g].classid.split(","),
  7347. this.tcid.split(",")
  7348. ).length == 0
  7349. ) {
  7350. continue;
  7351. }
  7352. if (gA == f[g].group && f[g].tool == i) {
  7353. this.groupStudent[i][gA].push(f[g]);
  7354. this.groupStudentUid[i][gA].push(f[g].userid);
  7355. }
  7356. }
  7357. }
  7358. this.$forceUpdate();
  7359. }
  7360. for (var j = 0; j < b.length; j++) {
  7361. if (
  7362. b[j].ttype == 2 &&
  7363. this.tcid &&
  7364. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  7365. .length == 0
  7366. ) {
  7367. continue;
  7368. }
  7369. var likesCount = 0;
  7370. var commentCount = 0;
  7371. var isLikes = false;
  7372. var commentJson = [];
  7373. var data = b[j];
  7374. if (i == b[j].tool) {
  7375. if (data.type == 2 && a[i].tool[0] == 4) {
  7376. // if(JSON.parse(data.content)[0].anwer){
  7377. var checkL =
  7378. JSON.parse(data.content)[0].anwer instanceof Array
  7379. ? JSON.parse(data.content)[0].anwer
  7380. : JSON.parse(data.content)[0].anwer.split(",");
  7381. for (var z = 0; z < checkL.length; z++) {
  7382. if (!this.checkJson[i][z]) {
  7383. this.checkJson[i].push({
  7384. checkCount: [],
  7385. checkPerson: [],
  7386. rightPerson: [],
  7387. });
  7388. }
  7389. if (!this.checkJson[i][z].checkCount.length) {
  7390. this.checkJson[i][z].checkCount = [];
  7391. let _askItemCount = JSON.parse(data.content)[0].askJson
  7392. .askJson[z].askItem;
  7393. for (var aic = 0; aic < _askItemCount; aic++) {
  7394. this.checkJson[i][z].checkCount.push(0);
  7395. }
  7396. }
  7397. if (checkL[z] instanceof Array) {
  7398. if (
  7399. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  7400. checkL[z].sort().join(",")
  7401. ) {
  7402. this.checkJson[i][z].rightPerson.push(data.name);
  7403. }
  7404. for (var q = 0; q < checkL[z].length; q++) {
  7405. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  7406. ? this.checkJson[i][z].checkPerson[
  7407. parseInt(checkL[z][q])
  7408. ].push(data.name)
  7409. : (this.checkJson[i][z].checkPerson[
  7410. parseInt(checkL[z][q])
  7411. ] = [data.name]);
  7412. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  7413. ? this.checkJson[i][z].checkCount[
  7414. parseInt(checkL[z][q])
  7415. ]++
  7416. : (this.checkJson[i][z].checkCount[
  7417. parseInt(checkL[z][q])
  7418. ] = 1);
  7419. }
  7420. } else {
  7421. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  7422. this.checkJson[i][z].rightPerson.push(data.name);
  7423. }
  7424. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  7425. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  7426. ? this.checkJson[i][z].checkPerson[
  7427. parseInt(checkL[z])
  7428. ].push(data.name)
  7429. : (this.checkJson[i][z].checkPerson[
  7430. parseInt(checkL[z])
  7431. ] = [data.name]);
  7432. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  7433. ? this.checkJson[i][z].checkCount[
  7434. parseInt(checkL[z])
  7435. ]++
  7436. : (this.checkJson[i][z].checkCount[
  7437. parseInt(checkL[z])
  7438. ] = 1);
  7439. }
  7440. }
  7441. }
  7442. } else if (data.type == 8 && a[i].tool[0] == 45) {
  7443. var checkL = JSON.parse(data.content)[0].anwer;
  7444. for (var z = 0; z < checkL.length; z++) {
  7445. if (!this.checkJson[i][z]) {
  7446. this.checkJson[i].push({
  7447. checkCount: [],
  7448. checkPerson: [],
  7449. rightPerson: [],
  7450. });
  7451. }
  7452. if (!this.checkJson[i][z].checkCount.length) {
  7453. this.checkJson[i][z].checkCount = [];
  7454. let _askItemCount = JSON.parse(data.content)[0].testJson
  7455. .testJson[z].testItem;
  7456. console.log(_askItemCount);
  7457. for (var aic = 0; aic < _askItemCount; aic++) {
  7458. this.checkJson[i][z].checkCount.push(0);
  7459. }
  7460. }
  7461. if (checkL[z] instanceof Array) {
  7462. if (
  7463. JSON.parse(data.content)[0]
  7464. .testJson.testJson[z].answer.sort()
  7465. .join(",") == checkL[z].sort().join(",")
  7466. ) {
  7467. this.checkJson[i][z].rightPerson.push(data.name);
  7468. }
  7469. for (var q = 0; q < checkL[z].length; q++) {
  7470. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  7471. ? this.checkJson[i][z].checkPerson[
  7472. parseInt(checkL[z][q])
  7473. ].push(data.name)
  7474. : (this.checkJson[i][z].checkPerson[
  7475. parseInt(checkL[z][q])
  7476. ] = [data.name]);
  7477. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  7478. ? this.checkJson[i][z].checkCount[
  7479. parseInt(checkL[z][q])
  7480. ]++
  7481. : (this.checkJson[i][z].checkCount[
  7482. parseInt(checkL[z][q])
  7483. ] = 1);
  7484. }
  7485. } else {
  7486. if (
  7487. JSON.parse(data.content)[0].testJson.testJson[z]
  7488. .answer == checkL[z]
  7489. ) {
  7490. this.checkJson[i][z].rightPerson.push(data.name);
  7491. }
  7492. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  7493. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  7494. ? this.checkJson[i][z].checkPerson[
  7495. parseInt(checkL[z])
  7496. ].push(data.name)
  7497. : (this.checkJson[i][z].checkPerson[
  7498. parseInt(checkL[z])
  7499. ] = [data.name]);
  7500. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  7501. ? this.checkJson[i][z].checkCount[
  7502. parseInt(checkL[z])
  7503. ]++
  7504. : (this.checkJson[i][z].checkCount[
  7505. parseInt(checkL[z])
  7506. ] = 1);
  7507. }
  7508. }
  7509. }
  7510. } else if (data.type == 9 && a[i].tool[0] == 47) {
  7511. var checkL = JSON.parse(data.content);
  7512. for (var z = 0; z < checkL.length; z++) {
  7513. if (!this.checkJson[i][z]) {
  7514. this.checkJson[i].push({
  7515. checkCount: [],
  7516. checkPerson: [],
  7517. rightPerson: [],
  7518. });
  7519. }
  7520. this.checkJson[i][z].checkPerson.push(data.name);
  7521. if (
  7522. checkL[z].chooseSenList.toString() ==
  7523. checkL[z].rightAnswer.toString()
  7524. ) {
  7525. this.checkJson[i][z].rightPerson.push(data.name);
  7526. }
  7527. }
  7528. }
  7529. for (var k = 0; k < d.length; k++) {
  7530. //点赞
  7531. if (d[k].workId == b[j].id) {
  7532. likesCount++;
  7533. if (d[k].likesId == this.userid) {
  7534. isLikes = true;
  7535. }
  7536. }
  7537. }
  7538. for (var l = 0; l < e.length; l++) {
  7539. //评论
  7540. if (e[l].workId == b[j].id) {
  7541. if (e[l].comment != "") {
  7542. commentCount++;
  7543. commentJson.push({
  7544. commentText: e[l].comment,
  7545. commentTime: e[l].commentTime,
  7546. commentPeople: e[l].commentPeople,
  7547. userid: e[l].userid,
  7548. wid: e[l].id,
  7549. });
  7550. }
  7551. }
  7552. }
  7553. if (
  7554. (b[j].type == 1 ||
  7555. b[j].type == 4 ||
  7556. b[j].type == 5 ||
  7557. b[j].type == 6 ||
  7558. b[j].type == 12 ||
  7559. b[j].type == 7) &&
  7560. a[i].tool[0] != 15 &&
  7561. a[i].tool[0] != 4 &&
  7562. a[i].tool[0] != 45 &&
  7563. a[i].tool[0] != 50 &&
  7564. a[i].tool[0] != 32 &&
  7565. a[i].tool[0] != 57 &&
  7566. a[i].tool[0] != 52
  7567. ) {
  7568. if (
  7569. c.indexOf(
  7570. b[j].content
  7571. .split(".")
  7572. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  7573. ) != -1 &&
  7574. a[i].tool[0] == 16 &&
  7575. b[j].atool != 50
  7576. ) {
  7577. let _works = {
  7578. userid: b[j].userid,
  7579. ateacher: b[j].ateacher,
  7580. wid: b[j].id,
  7581. works: b[j].content,
  7582. sName: b[j].name,
  7583. type: 1,
  7584. time: b[j].time,
  7585. score: b[j].score,
  7586. img: b[j].img,
  7587. likesCount: likesCount,
  7588. commentCount: commentCount,
  7589. isLikes: isLikes,
  7590. commentJson: commentJson,
  7591. };
  7592. if (this.isGroup) {
  7593. let isGw = 1;
  7594. for (
  7595. var groupI = 0;
  7596. groupI < this.courseGroup.group.length;
  7597. groupI++
  7598. ) {
  7599. let gid = this.courseGroup.group[groupI].id;
  7600. if (
  7601. this.courseGroupStudentUid[gid].indexOf(
  7602. b[j].userid
  7603. ) != -1
  7604. ) {
  7605. isGw = 2;
  7606. this.courseGroup.group[groupI].works[i].push(_works);
  7607. break;
  7608. }
  7609. }
  7610. if (isGw == 1) {
  7611. _worksStudent[i].push(_works);
  7612. }
  7613. } else {
  7614. _worksStudent[i].push(_works);
  7615. }
  7616. this.isWorksS[i].push({
  7617. uid: b[j].userid,
  7618. sName: b[j].name,
  7619. });
  7620. } else if (
  7621. y.indexOf(
  7622. b[j].content
  7623. .split(".")
  7624. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  7625. ) != -1 &&
  7626. a[i].tool[0] == 16 &&
  7627. b[j].atool != 50
  7628. ) {
  7629. let _works = {
  7630. userid: b[j].userid,
  7631. ateacher: b[j].ateacher,
  7632. wid: b[j].id,
  7633. works: b[j].content,
  7634. sName: b[j].name,
  7635. type: 3,
  7636. time: b[j].time,
  7637. score: b[j].score,
  7638. img: b[j].img,
  7639. likesCount: likesCount,
  7640. commentCount: commentCount,
  7641. isLikes: isLikes,
  7642. commentJson: commentJson,
  7643. };
  7644. if (this.isGroup) {
  7645. let isGw = 1;
  7646. for (
  7647. var groupI = 0;
  7648. groupI < this.courseGroup.group.length;
  7649. groupI++
  7650. ) {
  7651. let gid = this.courseGroup.group[groupI].id;
  7652. if (
  7653. this.courseGroupStudentUid[gid].indexOf(
  7654. b[j].userid
  7655. ) != -1
  7656. ) {
  7657. isGw = 2;
  7658. this.courseGroup.group[groupI].works[i].push(_works);
  7659. break;
  7660. }
  7661. }
  7662. if (isGw == 1) {
  7663. _worksStudent[i].push(_works);
  7664. }
  7665. } else {
  7666. _worksStudent[i].push(_works);
  7667. }
  7668. this.isWorksS[i].push({
  7669. uid: b[j].userid,
  7670. sName: b[j].name,
  7671. });
  7672. } else if (b[j].type == 6 && b[j].atool != 50) {
  7673. _worksStudent[i].push({
  7674. userid: b[j].userid,
  7675. ateacher: b[j].ateacher,
  7676. wid: b[j].id,
  7677. works: b[j].content,
  7678. sName: b[j].name,
  7679. type: 4,
  7680. time: b[j].time,
  7681. score: b[j].score,
  7682. img: b[j].img,
  7683. likesCount: likesCount,
  7684. commentCount: commentCount,
  7685. isLikes: isLikes,
  7686. commentJson: commentJson,
  7687. });
  7688. this.isWorksS[i].push({
  7689. uid: b[j].userid,
  7690. sName: b[j].name,
  7691. });
  7692. } else if (b[j].type == 7 && b[j].atool != 50) {
  7693. _worksStudent[i].push({
  7694. userid: b[j].userid,
  7695. ateacher: b[j].ateacher,
  7696. wid: b[j].id,
  7697. works: b[j].content,
  7698. sName: b[j].name,
  7699. type: 5,
  7700. time: b[j].time,
  7701. score: b[j].score,
  7702. img: b[j].img,
  7703. likesCount: likesCount,
  7704. commentCount: commentCount,
  7705. isLikes: isLikes,
  7706. commentJson: commentJson,
  7707. });
  7708. this.isWorksS[i].push({
  7709. uid: b[j].userid,
  7710. sName: b[j].name,
  7711. });
  7712. } else if (b[j].type == 12 && a[i].tool[0] == 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: 12,
  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 (
  7731. var groupI = 0;
  7732. groupI < this.courseGroup.group.length;
  7733. groupI++
  7734. ) {
  7735. let gid = this.courseGroup.group[groupI].id;
  7736. if (
  7737. this.courseGroupStudentUid[gid].indexOf(
  7738. b[j].userid
  7739. ) != -1
  7740. ) {
  7741. isGw = 2;
  7742. this.courseGroup.group[groupI].works[i].push(_works);
  7743. break;
  7744. }
  7745. }
  7746. if (isGw == 1) {
  7747. _worksStudent[i].push(_works);
  7748. }
  7749. } else {
  7750. _worksStudent[i].push(_works);
  7751. }
  7752. this.isWorksS[i].push({
  7753. uid: b[j].userid,
  7754. sName: b[j].name,
  7755. });
  7756. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  7757. let _works = {
  7758. userid: b[j].userid,
  7759. ateacher: b[j].ateacher,
  7760. wid: b[j].id,
  7761. works: b[j].content,
  7762. sName: b[j].name,
  7763. type: 0,
  7764. time: b[j].time,
  7765. score: b[j].score,
  7766. img: b[j].img,
  7767. likesCount: likesCount,
  7768. commentCount: commentCount,
  7769. isLikes: isLikes,
  7770. commentJson: commentJson,
  7771. };
  7772. if (this.isGroup) {
  7773. let isGw = 1;
  7774. for (
  7775. var groupI = 0;
  7776. groupI < this.courseGroup.group.length;
  7777. groupI++
  7778. ) {
  7779. let gid = this.courseGroup.group[groupI].id;
  7780. if (
  7781. this.courseGroupStudentUid[gid].indexOf(
  7782. b[j].userid
  7783. ) != -1
  7784. ) {
  7785. isGw = 2;
  7786. this.courseGroup.group[groupI].works[i].push(_works);
  7787. break;
  7788. }
  7789. }
  7790. if (isGw == 1) {
  7791. _worksStudent[i].push(_works);
  7792. }
  7793. } else {
  7794. _worksStudent[i].push(_works);
  7795. }
  7796. this.isWorksS[i].push({
  7797. uid: b[j].userid,
  7798. sName: b[j].name,
  7799. });
  7800. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  7801. let _works = {
  7802. userid: b[j].userid,
  7803. ateacher: b[j].ateacher,
  7804. wid: b[j].id,
  7805. works: b[j].content,
  7806. sName: b[j].name,
  7807. type: 0,
  7808. time: b[j].time,
  7809. score: b[j].score,
  7810. img: b[j].img,
  7811. likesCount: likesCount,
  7812. commentCount: commentCount,
  7813. isLikes: isLikes,
  7814. commentJson: commentJson,
  7815. };
  7816. if (this.isGroup) {
  7817. let isGw = 1;
  7818. for (
  7819. var groupI = 0;
  7820. groupI < this.courseGroup.group.length;
  7821. groupI++
  7822. ) {
  7823. let gid = this.courseGroup.group[groupI].id;
  7824. if (
  7825. this.courseGroupStudentUid[gid].indexOf(
  7826. b[j].userid
  7827. ) != -1
  7828. ) {
  7829. isGw = 2;
  7830. this.courseGroup.group[groupI].works[i].push(_works);
  7831. break;
  7832. }
  7833. }
  7834. if (isGw == 1) {
  7835. _worksStudent[i].push(_works);
  7836. }
  7837. } else {
  7838. _worksStudent[i].push(_works);
  7839. }
  7840. this.isWorksS[i].push({
  7841. uid: b[j].userid,
  7842. sName: b[j].name,
  7843. });
  7844. }
  7845. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  7846. let _works = {
  7847. userid: b[j].userid,
  7848. ateacher: b[j].ateacher,
  7849. wid: b[j].id,
  7850. works: b[j].content,
  7851. sName: b[j].name,
  7852. type: 2,
  7853. time: b[j].time,
  7854. score: b[j].score,
  7855. img: b[j].img,
  7856. likesCount: likesCount,
  7857. commentCount: commentCount,
  7858. isLikes: isLikes,
  7859. commentJson: commentJson,
  7860. };
  7861. if (this.isGroup) {
  7862. let isGw = 1;
  7863. for (
  7864. var groupI = 0;
  7865. groupI < this.courseGroup.group.length;
  7866. groupI++
  7867. ) {
  7868. let gid = this.courseGroup.group[groupI].id;
  7869. if (
  7870. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  7871. -1
  7872. ) {
  7873. isGw = 2;
  7874. this.courseGroup.group[groupI].works[i].push(_works);
  7875. break;
  7876. }
  7877. }
  7878. if (isGw == 1) {
  7879. _worksStudent[i].push(_works);
  7880. }
  7881. } else {
  7882. _worksStudent[i].push(_works);
  7883. }
  7884. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7885. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  7886. //问卷
  7887. _worksStudent[i].push({
  7888. userid: b[j].userid,
  7889. ateacher: b[j].ateacher,
  7890. wid: b[j].id,
  7891. works: b[j].content,
  7892. sName: b[j].name,
  7893. type: 2,
  7894. time: b[j].time,
  7895. score: b[j].score,
  7896. img: b[j].img,
  7897. likesCount: likesCount,
  7898. commentCount: commentCount,
  7899. isLikes: isLikes,
  7900. commentJson: commentJson,
  7901. });
  7902. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7903. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  7904. //选择题
  7905. _worksStudent[i].push({
  7906. userid: b[j].userid,
  7907. ateacher: b[j].ateacher,
  7908. wid: b[j].id,
  7909. works: b[j].content,
  7910. sName: b[j].name,
  7911. type: 8,
  7912. time: b[j].time,
  7913. score: b[j].score,
  7914. img: b[j].img,
  7915. likesCount: likesCount,
  7916. commentCount: commentCount,
  7917. isLikes: isLikes,
  7918. commentJson: commentJson,
  7919. });
  7920. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7921. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  7922. //选择题
  7923. _worksStudent[i].push({
  7924. userid: b[j].userid,
  7925. ateacher: b[j].ateacher,
  7926. wid: b[j].id,
  7927. works: b[j].content,
  7928. sName: b[j].name,
  7929. type: 9,
  7930. time: b[j].time,
  7931. score: b[j].score,
  7932. img: b[j].img,
  7933. likesCount: likesCount,
  7934. commentCount: commentCount,
  7935. isLikes: isLikes,
  7936. commentJson: commentJson,
  7937. });
  7938. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7939. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  7940. //选择题
  7941. _worksStudent[i].push({
  7942. userid: b[j].userid,
  7943. ateacher: b[j].ateacher,
  7944. wid: b[j].id,
  7945. works: b[j].content,
  7946. sName: b[j].name,
  7947. type: 10,
  7948. time: b[j].time,
  7949. score: b[j].score,
  7950. img: b[j].img,
  7951. likesCount: likesCount,
  7952. commentCount: commentCount,
  7953. isLikes: isLikes,
  7954. commentJson: commentJson,
  7955. });
  7956. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7957. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  7958. //选择题
  7959. _worksStudent[i].push({
  7960. userid: b[j].userid,
  7961. ateacher: b[j].ateacher,
  7962. wid: b[j].id,
  7963. works: b[j].content,
  7964. sName: b[j].name,
  7965. type: 13,
  7966. time: b[j].time,
  7967. score: b[j].score,
  7968. img: b[j].img,
  7969. likesCount: likesCount,
  7970. commentCount: commentCount,
  7971. isLikes: isLikes,
  7972. commentJson: commentJson,
  7973. });
  7974. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7975. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  7976. let _gindex = JSON.parse(b[j].content);
  7977. if (
  7978. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  7979. b[j].userid
  7980. ) != -1
  7981. ) {
  7982. _worksStudent[i][_gindex.groupIndex].push({
  7983. userid: b[j].userid,
  7984. ateacher: b[j].ateacher,
  7985. wid: b[j].id,
  7986. works: _gindex.url,
  7987. sName: b[j].name,
  7988. type: _gindex.type,
  7989. time: b[j].time,
  7990. score: b[j].score,
  7991. img: b[j].img,
  7992. likesCount: likesCount,
  7993. commentCount: commentCount,
  7994. isLikes: isLikes,
  7995. commentJson: commentJson,
  7996. });
  7997. }
  7998. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7999. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  8000. _worksStudent[i].push({
  8001. userid: b[j].userid,
  8002. ateacher: b[j].ateacher,
  8003. wid: b[j].id,
  8004. works: b[j].content,
  8005. sName: b[j].name ? b[j].name : b[j].userid,
  8006. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  8007. time: b[j].time,
  8008. score: b[j].score,
  8009. img: b[j].img,
  8010. likesCount: likesCount,
  8011. commentCount: commentCount,
  8012. isLikes: isLikes,
  8013. commentJson: commentJson,
  8014. });
  8015. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  8016. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  8017. _worksStudent[i].push({
  8018. userid: b[j].userid,
  8019. ateacher: b[j].ateacher,
  8020. wid: b[j].id,
  8021. works: b[j].content,
  8022. sName: b[j].name ? b[j].name : b[j].userid,
  8023. type: 12,
  8024. time: b[j].time,
  8025. score: b[j].score,
  8026. img: b[j].img,
  8027. likesCount: likesCount,
  8028. commentCount: commentCount,
  8029. isLikes: isLikes,
  8030. commentJson: commentJson,
  8031. });
  8032. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  8033. } else if (a[i].tool[0] == 57 && b[j].atool == 57) {
  8034. _worksStudent[i].push({
  8035. userid: b[j].userid,
  8036. ateacher: b[j].ateacher,
  8037. wid: b[j].id,
  8038. works: b[j].content,
  8039. sName: b[j].name ? b[j].name : b[j].userid,
  8040. type: 12,
  8041. time: b[j].time,
  8042. score: b[j].score,
  8043. img: b[j].img,
  8044. likesCount: likesCount,
  8045. commentCount: commentCount,
  8046. isLikes: isLikes,
  8047. commentJson: commentJson,
  8048. });
  8049. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  8050. }
  8051. }
  8052. }
  8053. if (_worksStudent[i] && _worksStudent[i].length) {
  8054. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  8055. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  8056. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  8057. var scoreA = parseFloat(jscoreA);
  8058. var scoreB = parseFloat(jscoreB);
  8059. if (scoreA == scoreB) {
  8060. return b.likesCount - a.likesCount;
  8061. }
  8062. return scoreB - scoreA;
  8063. });
  8064. if (this.isGroup) {
  8065. for (
  8066. var groupI = 0;
  8067. groupI < this.courseGroup.group.length;
  8068. groupI++
  8069. ) {
  8070. this.courseGroup.group[groupI].works[i] =
  8071. this.courseGroup.group[groupI].works[i].sort(function (
  8072. a,
  8073. b
  8074. ) {
  8075. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  8076. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  8077. var scoreA = parseFloat(jscoreA);
  8078. var scoreB = parseFloat(jscoreB);
  8079. if (scoreA == scoreB) {
  8080. return b.likesCount - a.likesCount;
  8081. }
  8082. return scoreB - scoreA;
  8083. });
  8084. }
  8085. }
  8086. }
  8087. }
  8088. for (var i = 0; i < a.length; i++) {
  8089. for (var j = 0; j < b.length; j++) {
  8090. var data = b[j];
  8091. if (i == b[j].tool) {
  8092. if (data.type == 2 || data.type == 8) {
  8093. for (var z = 0; z < this.checkJson[i].length; z++) {
  8094. this.checkJson[i][z].checkPerent = [];
  8095. this.checkJson[i][z].right = Math.round(
  8096. (this.checkJson[i][z].rightPerson.length /
  8097. parseInt(_worksStudent[i].length)) *
  8098. 100
  8099. );
  8100. let aaaa = this.checkJson[i][z];
  8101. console.log(aaaa);
  8102. for (
  8103. var k = 0;
  8104. k < this.checkJson[i][z].checkCount.length;
  8105. k++
  8106. ) {
  8107. this.checkJson[i][z].checkPerent.push(
  8108. Math.round(
  8109. (this.checkJson[i][z].checkCount[k] /
  8110. parseInt(_worksStudent[i].length)) *
  8111. 100
  8112. )
  8113. );
  8114. }
  8115. }
  8116. } else if (data.type == 9) {
  8117. for (var z = 0; z < this.checkJson[i].length; z++) {
  8118. this.checkJson[i][z].checkPerent = [];
  8119. this.checkJson[i][z].right = Math.round(
  8120. (this.checkJson[i][z].rightPerson.length /
  8121. this.checkJson[i][z].checkPerson.length) *
  8122. 100
  8123. );
  8124. }
  8125. }
  8126. }
  8127. }
  8128. }
  8129. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  8130. this.joinGroup(gindex);
  8131. }
  8132. this.worksStudent = _worksStudent;
  8133. this.selectWorksStudent();
  8134. })
  8135. .catch((err) => {
  8136. console.error(err);
  8137. });
  8138. },
  8139. pngToWhiteBg(file) {
  8140. const _file = file;
  8141. let read = new FileReader();
  8142. read.readAsDataURL(file); // 文件转base64
  8143. return new Promise((resolve, reject) => {
  8144. read.onload = (e) => {
  8145. let img = new Image();
  8146. img.src = e.target.result;
  8147. img.onload = async () => {
  8148. // 生成canvas
  8149. let canvas = document.createElement("canvas");
  8150. let context = canvas.getContext("2d");
  8151. // 绘制图片到canvas上
  8152. canvas.width = img.width;
  8153. canvas.height = img.height;
  8154. // 在canvas绘制前填充白色背景
  8155. context.fillStyle = "#fff";
  8156. context.fillRect(0, 0, canvas.width, canvas.height);
  8157. context.drawImage(img, 0, 0);
  8158. let base64 = canvas.toDataURL(file["type"], 1);
  8159. let newFile = this.dataUrlToFile(base64, _file);
  8160. resolve(newFile);
  8161. };
  8162. };
  8163. });
  8164. },
  8165. dataUrlToFile(dataurl, file) {
  8166. let arr = dataurl.split(","),
  8167. mime = arr[0].match(/:(.*?);/)[1],
  8168. bstr = atob(arr[1]),
  8169. n = bstr.length,
  8170. u8arr = new Uint8Array(n);
  8171. while (n--) {
  8172. u8arr[n] = bstr.charCodeAt(n);
  8173. }
  8174. // return new Blob([u8arr], { type: mime });
  8175. return new File([new Blob([u8arr], { type: mime })], file.name, {
  8176. type: mime,
  8177. });
  8178. },
  8179. async beforeUpload1(event, type, i) {
  8180. // this.$message.success('进入上传')
  8181. var file = "";
  8182. if (type == 5) {
  8183. file = event;
  8184. } else {
  8185. file = event.target.files[0];
  8186. }
  8187. var credentials = {
  8188. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8189. secretAccessKey: "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",
  8190. }; //秘钥形式的登录上传
  8191. window.AWS.config.update(credentials);
  8192. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8193. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8194. var _this = this;
  8195. _this.progress = 0;
  8196. _this.proVisible = true;
  8197. _this.isFinishSize = 0;
  8198. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8199. var b = [
  8200. "DOC",
  8201. "DOCX",
  8202. "DOCM",
  8203. "DOTM",
  8204. "DOTX",
  8205. "PPTX",
  8206. "PPSX",
  8207. "PPT",
  8208. "PPS",
  8209. "PPTM",
  8210. "POTM",
  8211. "PPAM",
  8212. "POTX",
  8213. "PPSM",
  8214. ];
  8215. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  8216. var photoA = [
  8217. "BMP",
  8218. "GIF",
  8219. "PNG",
  8220. "JPGE",
  8221. "JPEG",
  8222. "JPG",
  8223. "TIF",
  8224. "PCX",
  8225. "TGA",
  8226. "EXIF",
  8227. "FPX",
  8228. "SVG",
  8229. "APNG",
  8230. ];
  8231. // if (
  8232. // b.indexOf(
  8233. // file.name
  8234. // .split(".")
  8235. // [file.name.split(".").length - 1].toLocaleUpperCase()
  8236. // ) != -1
  8237. // ) {
  8238. // if (file.size / 1024 / 1024 > 10) {
  8239. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  8240. // return;
  8241. // }
  8242. // } else if (
  8243. // excelA.indexOf(
  8244. // file.name
  8245. // .split(".")
  8246. // [file.name.split(".").length - 1].toLocaleUpperCase()
  8247. // ) != "-1"
  8248. // ) {
  8249. // if (file.size / 1024 / 1024 > 5) {
  8250. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  8251. // return;
  8252. // }
  8253. // }
  8254. if (
  8255. photoA.indexOf(
  8256. file.name
  8257. .split(".")
  8258. [file.name.split(".").length - 1].toLocaleUpperCase()
  8259. ) != -1 &&
  8260. type != 4
  8261. ) {
  8262. // const blob = await imageConversion.compress(file, 0.8)
  8263. file = await this.pngToWhiteBg(file);
  8264. const blob = await imageConversion.compressAccurately(file, 256);
  8265. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  8266. file = new File([blob], file.name, { type: file.type });
  8267. }
  8268. if (file) {
  8269. var params = {
  8270. Key:
  8271. file.name.split(".")[0] +
  8272. new Date().getTime() +
  8273. "." +
  8274. file.name.split(".")[file.name.split(".").length - 1],
  8275. ContentType: file.type,
  8276. Body: file,
  8277. "Access-Control-Allow-Credentials": "*",
  8278. ACL: "public-read",
  8279. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8280. var options = {
  8281. // partSize: 2048 * 1024 * 1024,
  8282. partSize: 1024 * 1024 * 1024,
  8283. queueSize: 2,
  8284. leavePartsOnError: true,
  8285. };
  8286. bucket
  8287. .upload(params, options)
  8288. .on("httpUploadProgress", function (evt) {
  8289. //这里可以写进度条
  8290. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8291. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  8292. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8293. })
  8294. .send(function (err, data) {
  8295. _this.progress = 100;
  8296. _this.isFinishSize = _this.isAllSize;
  8297. setTimeout(() => {
  8298. _this.proVisible = false;
  8299. }, 1000);
  8300. if (err) {
  8301. var a = _this.$refs.upload1.uploadFiles;
  8302. a.splice(a.length - 1, a.length);
  8303. _this.$message.error("上传失败");
  8304. } else {
  8305. // _this.$message.success('上传成功')
  8306. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  8307. var c = [
  8308. "AVI",
  8309. "NAVI",
  8310. "MPEG",
  8311. "ASF",
  8312. "MOV",
  8313. "WMV",
  8314. "3GP",
  8315. "RM",
  8316. "RMVB",
  8317. "FLV",
  8318. "F4V",
  8319. "H.264",
  8320. "H.265",
  8321. "REAL VIDEO",
  8322. "MKV",
  8323. "WebM",
  8324. "HDDVD",
  8325. "MP4",
  8326. "MPG",
  8327. "M4V",
  8328. "MGV",
  8329. "OGV",
  8330. "QTM",
  8331. "STR",
  8332. "AMC",
  8333. "DVX",
  8334. "EVO",
  8335. "DAT",
  8336. "OGG",
  8337. "OGM",
  8338. ];
  8339. if (type == 1) {
  8340. _this.studyJuri[0].cover.push({
  8341. name: file.name,
  8342. url: data.Location,
  8343. uid: file.uid,
  8344. });
  8345. if (
  8346. c.indexOf(
  8347. _this.studyJuri[0].cover[0].url
  8348. .split(".")
  8349. [
  8350. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8351. ].toLocaleUpperCase()
  8352. ) != -1
  8353. ) {
  8354. _this.fileType = 2;
  8355. } else if (
  8356. b.indexOf(
  8357. _this.studyJuri[0].cover[0].url
  8358. .split(".")
  8359. [
  8360. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8361. ].toLocaleUpperCase()
  8362. ) != -1
  8363. ) {
  8364. _this.fileType = 1;
  8365. } else if (
  8366. photoA.indexOf(
  8367. _this.studyJuri[0].cover[0].url
  8368. .split(".")
  8369. [
  8370. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8371. ].toLocaleUpperCase()
  8372. ) != -1
  8373. ) {
  8374. _this.fileType = 0;
  8375. } else {
  8376. _this.fileType = 3;
  8377. }
  8378. _this.imgChange(null, null, type);
  8379. } else if (type == 2) {
  8380. _this.upToolImg = data.Location;
  8381. _this.imgChange(null, null, type);
  8382. _this.addCourseWorks(i);
  8383. } else if (type == 4) {
  8384. _this.addPz("3", data.Location);
  8385. } else if (type == 5) {
  8386. _this.addImgDrawImG(data.Location);
  8387. } else if (type == 6) {
  8388. var _ftype = 1;
  8389. if (
  8390. c.indexOf(
  8391. data.Location.split(".")[
  8392. data.Location.split(".").length - 1
  8393. ].toLocaleUpperCase()
  8394. ) != -1
  8395. ) {
  8396. _ftype = 5;
  8397. } else if (
  8398. b.indexOf(
  8399. data.Location.split(".")[
  8400. data.Location.split(".").length - 1
  8401. ].toLocaleUpperCase()
  8402. ) != -1
  8403. ) {
  8404. _ftype = 4;
  8405. } else {
  8406. _ftype = 1;
  8407. }
  8408. _this.plworkFile.push({
  8409. name: file.name,
  8410. url: data.Location,
  8411. uid: file.uid,
  8412. fileType: _ftype,
  8413. username:
  8414. _this.plworkFile.length > 10
  8415. ? _this.plworkFile.length + 1
  8416. : "0" + (_this.plworkFile.length + 1),
  8417. });
  8418. } else if (type == 7) {
  8419. _this.addCourseWorksGong(i, data.Location, 32);
  8420. } else if (type == 8) {
  8421. _this.addCourseWorksGong(i, data.Location, 57);
  8422. }
  8423. _this.imgChange(null, null, type);
  8424. console.log(data.Location);
  8425. // _this.$message.success('上传成功'+data.Location)
  8426. }
  8427. });
  8428. }
  8429. },
  8430. async beforeUpload3(event, type, i) {
  8431. // this.$message.success('进入上传')
  8432. let file = "";
  8433. let cfindex2 = 0;
  8434. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  8435. file = event.target.files[cfindex];
  8436. var credentials = {
  8437. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8438. secretAccessKey: "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",
  8439. }; //秘钥形式的登录上传
  8440. window.AWS.config.update(credentials);
  8441. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8442. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8443. var _this = this;
  8444. // _this.progress = 0;
  8445. _this.proVisible2 = true;
  8446. var b = [
  8447. "DOC",
  8448. "DOCX",
  8449. "DOCM",
  8450. "DOTM",
  8451. "DOTX",
  8452. "PPTX",
  8453. "PPSX",
  8454. "PPT",
  8455. "PPS",
  8456. "PPTM",
  8457. "POTM",
  8458. "PPAM",
  8459. "POTX",
  8460. "PPSM",
  8461. ];
  8462. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  8463. var photoA = [
  8464. "BMP",
  8465. "GIF",
  8466. "PNG",
  8467. "JPGE",
  8468. "JPG",
  8469. "TIF",
  8470. "PCX",
  8471. "TGA",
  8472. "EXIF",
  8473. "FPX",
  8474. "SVG",
  8475. "APNG",
  8476. ];
  8477. if (
  8478. photoA.indexOf(
  8479. file.name
  8480. .split(".")
  8481. [file.name.split(".").length - 1].toLocaleUpperCase()
  8482. ) != -1 &&
  8483. type != 4
  8484. ) {
  8485. // const blob = await imageConversion.compress(file, 0.8)
  8486. file = await this.pngToWhiteBg(file);
  8487. const blob = await imageConversion.compressAccurately(file, 256);
  8488. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  8489. file = new File([blob], file.name, { type: file.type });
  8490. }
  8491. if (file) {
  8492. var params = {
  8493. Key:
  8494. file.name.split(".")[0] +
  8495. new Date().getTime() +
  8496. "." +
  8497. file.name.split(".")[file.name.split(".").length - 1],
  8498. ContentType: file.type,
  8499. Body: file,
  8500. "Access-Control-Allow-Credentials": "*",
  8501. ACL: "public-read",
  8502. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8503. var options = {
  8504. // partSize: 2048 * 1024 * 1024,
  8505. partSize: 1024 * 1024 * 1024,
  8506. queueSize: 2,
  8507. leavePartsOnError: true,
  8508. };
  8509. bucket
  8510. .upload(params, options)
  8511. .on("httpUploadProgress", function (evt) {
  8512. //这里可以写进度条
  8513. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8514. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  8515. })
  8516. .send(function (err, data) {
  8517. // _this.progress = 100;
  8518. cfindex2++;
  8519. setTimeout(() => {
  8520. if (
  8521. cfindex2 == event.target.files.length - 1 ||
  8522. cfindex2 > event.target.files.length - 1
  8523. ) {
  8524. _this.proVisible2 = false;
  8525. }
  8526. }, 1000);
  8527. if (err) {
  8528. var a = _this.$refs.upload1.uploadFiles;
  8529. a.splice(a.length - 1, a.length);
  8530. _this.$message.error("上传失败");
  8531. } else {
  8532. // _this.$message.success('上传成功')
  8533. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  8534. var c = [
  8535. "AVI",
  8536. "NAVI",
  8537. "MPEG",
  8538. "ASF",
  8539. "MOV",
  8540. "WMV",
  8541. "3GP",
  8542. "RM",
  8543. "RMVB",
  8544. "FLV",
  8545. "F4V",
  8546. "H.264",
  8547. "H.265",
  8548. "REAL VIDEO",
  8549. "MKV",
  8550. "WebM",
  8551. "HDDVD",
  8552. "MP4",
  8553. "MPG",
  8554. "M4V",
  8555. "MGV",
  8556. "OGV",
  8557. "QTM",
  8558. "STR",
  8559. "AMC",
  8560. "DVX",
  8561. "EVO",
  8562. "DAT",
  8563. "OGG",
  8564. "OGM",
  8565. ];
  8566. if (type == 1) {
  8567. _this.studyJuri[0].cover.push({
  8568. name: file.name,
  8569. url: data.Location,
  8570. uid: file.uid,
  8571. });
  8572. if (
  8573. c.indexOf(
  8574. _this.studyJuri[0].cover[0].url
  8575. .split(".")
  8576. [
  8577. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8578. ].toLocaleUpperCase()
  8579. ) != -1
  8580. ) {
  8581. _this.fileType = 2;
  8582. } else if (
  8583. b.indexOf(
  8584. _this.studyJuri[0].cover[0].url
  8585. .split(".")
  8586. [
  8587. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8588. ].toLocaleUpperCase()
  8589. ) != -1
  8590. ) {
  8591. _this.fileType = 1;
  8592. } else {
  8593. _this.fileType = 0;
  8594. }
  8595. _this.imgChange(null, null, type);
  8596. } else if (type == 2) {
  8597. _this.upToolImg = data.Location;
  8598. _this.imgChange(null, null, type);
  8599. _this.addCourseWorks(i);
  8600. } else if (type == 4) {
  8601. _this.addPz("3", data.Location);
  8602. } else if (type == 5) {
  8603. _this.addImgDrawImG(data.Location);
  8604. } else if (type == 6) {
  8605. var _ftype = 1;
  8606. if (
  8607. c.indexOf(
  8608. data.Location.split(".")[
  8609. data.Location.split(".").length - 1
  8610. ].toLocaleUpperCase()
  8611. ) != -1
  8612. ) {
  8613. _ftype = 5;
  8614. } else if (
  8615. b.indexOf(
  8616. data.Location.split(".")[
  8617. data.Location.split(".").length - 1
  8618. ].toLocaleUpperCase()
  8619. ) != -1
  8620. ) {
  8621. _ftype = 4;
  8622. } else {
  8623. _ftype = 1;
  8624. }
  8625. _this.plworkFile.push({
  8626. name: file.name,
  8627. url: data.Location,
  8628. uid: file.uid,
  8629. fileType: _ftype,
  8630. username:
  8631. _this.plworkFile.length + 1 > 9
  8632. ? _this.plworkFile.length + 1
  8633. : "0" + (_this.plworkFile.length + 1),
  8634. });
  8635. }
  8636. _this.imgChange(null, null, type);
  8637. console.log(data.Location);
  8638. // _this.$message.success('上传成功'+data.Location)
  8639. }
  8640. });
  8641. }
  8642. }
  8643. },
  8644. beforeUpload2(event, type) {
  8645. var file = event.target.files[0];
  8646. var credentials = {
  8647. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8648. secretAccessKey: "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",
  8649. }; //秘钥形式的登录上传
  8650. window.AWS.config.update(credentials);
  8651. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8652. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8653. var _this = this;
  8654. _this.progress = 0;
  8655. _this.proVisible = true;
  8656. if (file) {
  8657. var params = {
  8658. Key:
  8659. file.name.split(".")[0] +
  8660. new Date().getTime() +
  8661. "." +
  8662. file.name.split(".")[file.name.split(".").length - 1],
  8663. ContentType: file.type,
  8664. Body: file,
  8665. "Access-Control-Allow-Credentials": "*",
  8666. ACL: "public-read",
  8667. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8668. var options = {
  8669. partSize: 2048 * 1024 * 1024,
  8670. queueSize: 2,
  8671. leavePartsOnError: true,
  8672. };
  8673. bucket
  8674. .upload(params, options)
  8675. .on("httpUploadProgress", function (evt) {
  8676. //这里可以写进度条
  8677. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8678. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  8679. })
  8680. .send(function (err, data) {
  8681. _this.progress = 100;
  8682. setTimeout(() => {
  8683. _this.proVisible = false;
  8684. }, 1000);
  8685. if (err) {
  8686. var a = _this.$refs.upload1.uploadFiles;
  8687. a.splice(a.length - 1, a.length);
  8688. _this.$message.error("上传失败");
  8689. } else {
  8690. if (type == 2) {
  8691. _this.studyJuri[0].upVedio.push({
  8692. name: file.name,
  8693. url: data.Location,
  8694. uid: file.uid,
  8695. });
  8696. _this.imgChange(null, null, type);
  8697. } else if (type == 3) {
  8698. _this.studyJuri[0].upFile.push({
  8699. name: file.name,
  8700. url: data.Location,
  8701. uid: file.uid,
  8702. });
  8703. _this.imgChange(null, null, type);
  8704. }
  8705. console.log(data.Location);
  8706. }
  8707. });
  8708. }
  8709. },
  8710. allScrell() {
  8711. window.parent.postMessage({ allScreen: this.screenType }, "*");
  8712. },
  8713. nextOrpreSteps(t) {
  8714. if (this.IsFollow && this.tType == 2) {
  8715. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  8716. return;
  8717. }
  8718. var b = this.chapInfoList.length - 1;
  8719. if (t == 0) {
  8720. if (this.courseType == 0) {
  8721. if (this.taskCount == 0) {
  8722. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  8723. if (this.IsLookOpen) {
  8724. if (
  8725. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  8726. ) {
  8727. if (
  8728. this.courseDetail.userid != this.userid &&
  8729. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  8730. ) {
  8731. this.$message.error("任务未解锁");
  8732. } else {
  8733. this.$message.error("上一任务未解锁");
  8734. }
  8735. return;
  8736. }
  8737. }
  8738. this.navList[this.courseType].isOpen = false;
  8739. this.courseType = b;
  8740. this.taskCount =
  8741. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  8742. .length - 1;
  8743. this.navList[this.courseType].isOpen = true;
  8744. } else {
  8745. this.taskCount--;
  8746. }
  8747. } else {
  8748. if (this.taskCount == 0) {
  8749. this.navList[this.courseType].isOpen = false;
  8750. this.courseType--;
  8751. this.taskCount =
  8752. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  8753. .length - 1;
  8754. this.navList[this.courseType].isOpen = true;
  8755. } else {
  8756. this.taskCount--;
  8757. }
  8758. }
  8759. } else {
  8760. if (this.courseType == b) {
  8761. if (
  8762. this.taskCount ==
  8763. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  8764. 1
  8765. ) {
  8766. this.navList[this.courseType].isOpen = false;
  8767. this.courseType = 0;
  8768. this.taskCount = 0;
  8769. this.navList[this.courseType].isOpen = true;
  8770. } else {
  8771. var bbb = parseInt(this.taskCount) + 1;
  8772. if (
  8773. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  8774. .isLook &&
  8775. this.courseDetail.userid != this.userid &&
  8776. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  8777. this.IsLookOpen
  8778. ) {
  8779. this.$message.error("任务未解锁");
  8780. return;
  8781. }
  8782. this.taskCount++;
  8783. if (this.IsLookOpen) {
  8784. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8785. this.taskCount
  8786. ].isLook = true;
  8787. this.addCourseState(3);
  8788. }
  8789. }
  8790. } else {
  8791. if (
  8792. this.taskCount ==
  8793. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  8794. 1
  8795. ) {
  8796. var bbb = parseInt(this.courseType) + 1;
  8797. if (
  8798. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  8799. this.courseDetail.userid != this.userid &&
  8800. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  8801. this.IsLookOpen
  8802. ) {
  8803. this.$message.error("任务未解锁");
  8804. return;
  8805. }
  8806. this.navList[this.courseType].isOpen = false;
  8807. this.courseType++;
  8808. this.taskCount = 0;
  8809. this.navList[this.courseType].isOpen = true;
  8810. } else {
  8811. var bbb = parseInt(this.taskCount) + 1;
  8812. if (
  8813. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  8814. .isLook &&
  8815. this.courseDetail.userid != this.userid &&
  8816. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  8817. this.IsLookOpen
  8818. ) {
  8819. this.$message.error("任务未解锁");
  8820. return;
  8821. }
  8822. this.taskCount++;
  8823. }
  8824. if (this.IsLookOpen) {
  8825. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8826. this.taskCount
  8827. ].isLook = true;
  8828. this.addCourseState(3);
  8829. }
  8830. }
  8831. // if (
  8832. // this.taskCount ==
  8833. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  8834. // ) {
  8835. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  8836. // } else {
  8837. // this.taskCount++;
  8838. // }
  8839. }
  8840. document.scrollingElement.scrollTop = 0;
  8841. this.showType = 0;
  8842. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8843. // if (this.vedio[this.taskCount].length > 0) {
  8844. // var a =
  8845. // document.getElementsByClassName("box_course")[this.taskCount]
  8846. // .offsetHeight;
  8847. // document.getElementsByClassName("vedioList")[
  8848. // this.taskCount
  8849. // ].style.height = a + "px";
  8850. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  8851. // a - 40 + "px";
  8852. // }
  8853. this.isNoHomeWork = false;
  8854. (this.studyJuri = [
  8855. {
  8856. content: "",
  8857. cover: [],
  8858. upVedio: [],
  8859. upFile: [],
  8860. },
  8861. ]),
  8862. (this.radio = []);
  8863. this.isClickNav = "";
  8864. this.selectPz();
  8865. this.getHomeWork();
  8866. this.getCourseDetail(2);
  8867. this.$forceUpdate();
  8868. },
  8869. openTask(s, n, i) {
  8870. if (this.IsFollow && this.tType == 2) {
  8871. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  8872. return;
  8873. }
  8874. if (this.IsLookOpen) {
  8875. if (
  8876. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  8877. this.courseDetail.userid != this.userid &&
  8878. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  8879. ) {
  8880. this.$message.error("任务未解锁");
  8881. return;
  8882. }
  8883. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  8884. if (
  8885. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  8886. .isLook
  8887. ) {
  8888. this.$message.error("上一任务未解锁");
  8889. return;
  8890. }
  8891. } else if (s > this.courseType) {
  8892. if (n > 0) {
  8893. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  8894. this.$message.error("上一任务未解锁");
  8895. return;
  8896. }
  8897. } else {
  8898. if (
  8899. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  8900. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  8901. ].isLook
  8902. ) {
  8903. this.$message.error("上一任务未解锁");
  8904. return;
  8905. }
  8906. }
  8907. }
  8908. }
  8909. this.courseType = s;
  8910. this.navId = i;
  8911. this.taskCount = n;
  8912. if (this.IsLookOpen) {
  8913. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8914. this.taskCount
  8915. ].isLook = true;
  8916. this.addCourseState(3);
  8917. }
  8918. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  8919. this.isCloseList[ci].isClose = 0;
  8920. }
  8921. this.showType = 0;
  8922. this.isNoHomeWork = false;
  8923. (this.studyJuri = [
  8924. {
  8925. content: "",
  8926. cover: [],
  8927. upVedio: [],
  8928. upFile: [],
  8929. },
  8930. ]),
  8931. (this.radio = []);
  8932. document.scrollingElement.scrollTop = 0;
  8933. // setTimeout(() => {
  8934. // let a = document.getElementById(i);
  8935. // if (a.offsetTop - 110 == 0) {
  8936. // window.scrollTo(0, 0);
  8937. // } else {
  8938. // window.scrollTo(0, a.offsetTop);
  8939. // }
  8940. // }, 0);
  8941. this.selectPz();
  8942. this.getHomeWork();
  8943. this.getCourseDetail(2);
  8944. },
  8945. get(i) {
  8946. if (this.IsFollow && this.tType == 2) {
  8947. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  8948. return;
  8949. }
  8950. this.navList[i].isOpen = !this.navList[i].isOpen;
  8951. },
  8952. addQuestion() {
  8953. this.answerList.push({
  8954. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8955. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8956. });
  8957. let params = [
  8958. {
  8959. uid: this.userid,
  8960. cid: this.id,
  8961. stage: this.courseType,
  8962. task: this.taskCount,
  8963. tool: this.toolindex,
  8964. content: JSON.stringify(this.answerList),
  8965. type: 3,
  8966. },
  8967. ];
  8968. this.ajax
  8969. .post(this.$store.state.api + "addCourseWorks", params)
  8970. .then((res) => {
  8971. this.$message({
  8972. message: "提交成功",
  8973. type: "success",
  8974. });
  8975. this.answerList = [];
  8976. this.answerDialogVisible = false;
  8977. this.selectStudent();
  8978. this.selectSWorks();
  8979. this.selectSLook();
  8980. })
  8981. .catch((err) => {
  8982. this.$message.error("提交失败");
  8983. console.error(err);
  8984. });
  8985. },
  8986. addQuestionTeacher() {
  8987. this.answerList.push({
  8988. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8989. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8990. });
  8991. let params = [
  8992. {
  8993. uid: this.sStudent.userid,
  8994. cid: this.id,
  8995. stage: this.courseType,
  8996. task: this.taskCount,
  8997. tool: this.toolindex,
  8998. content: JSON.stringify(this.answerList),
  8999. type: 3,
  9000. ateacher: this.userid,
  9001. },
  9002. ];
  9003. this.ajax
  9004. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  9005. .then((res) => {
  9006. this.$message({
  9007. message: "提交成功",
  9008. type: "success",
  9009. });
  9010. this.answerList = [];
  9011. this.questionAnswer = "";
  9012. this.answerDialogVisibleTeacher = false;
  9013. this.selectStudent();
  9014. this.selectSWorks();
  9015. this.selectSLook();
  9016. })
  9017. .catch((err) => {
  9018. this.$message.error("提交失败");
  9019. console.error(err);
  9020. });
  9021. },
  9022. refreshCourse() {
  9023. // window.location.reload();
  9024. this.navList = [];
  9025. this.getCourseDetail(1);
  9026. },
  9027. getCourseDetail(type, gindex) {
  9028. let loading;
  9029. if (type != 2) {
  9030. loading = this.$loading.service({
  9031. background: "rgba(255, 255, 255, 0.7)",
  9032. target: document.querySelector(".student_table"),
  9033. });
  9034. }
  9035. // this.navList[0].isOpen = false;
  9036. // this.navList[this.courseType].isOpen = true;
  9037. // this.courseType = this.courseTypeLine;
  9038. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  9039. let params = {
  9040. courseId: this.id,
  9041. };
  9042. this.ajax
  9043. .get(this.$store.state.api + "selectCourseDetail3", params)
  9044. .then((res) => {
  9045. if (type != 2) {
  9046. loading.close();
  9047. if (
  9048. this.courseType >
  9049. JSON.parse(res.data[0][0].chapters).length - 1
  9050. ) {
  9051. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  9052. }
  9053. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  9054. .chapterInfo[0].taskJson;
  9055. var b = [
  9056. "AVI",
  9057. "NAVI",
  9058. "MPEG",
  9059. "ASF",
  9060. "MOV",
  9061. "WMV",
  9062. "3GP",
  9063. "RM",
  9064. "RMVB",
  9065. "FLV",
  9066. "F4V",
  9067. "H.264",
  9068. "H.265",
  9069. "REAL VIDEO",
  9070. "MKV",
  9071. "WebM",
  9072. "HDDVD",
  9073. "MP4",
  9074. "MPG",
  9075. "M4V",
  9076. "MGV",
  9077. "OGV",
  9078. "QTM",
  9079. "STR",
  9080. "AMC",
  9081. "DVX",
  9082. "EVO",
  9083. "DAT",
  9084. "OGG",
  9085. "OGM",
  9086. "MP3",
  9087. ];
  9088. let _chapterData = []
  9089. for (var i = 0; i < a.length; i++) {
  9090. var c = a[i].chapterData;
  9091. this.vedio[i] = [];
  9092. this.textList[i] = [];
  9093. this.lineList[i] = [];
  9094. this.chapToolList[i] = [];
  9095. this.file[i] = [];
  9096. this.fileC[i] = [];
  9097. _chapterData[i] = c
  9098. for (var j = 0; j < c.length; j++) {
  9099. if (c[j].type == 7) {
  9100. this.chapToolList[i].push(c[j]);
  9101. } else if (c[j].type == 8) {
  9102. this.lineList[i].push(c[j]);
  9103. } else if (c[j].type == 6) {
  9104. this.textList[i].push(c[j]);
  9105. } else if (c[j].type == 12) {
  9106. this.fileC[i].push(c[j]);
  9107. } else {
  9108. if (
  9109. b.indexOf(
  9110. c[j].url
  9111. .split(".")
  9112. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  9113. ) != -1
  9114. ) {
  9115. this.vedio[i].push(c[j]);
  9116. } else {
  9117. this.file[i].push(c[j]);
  9118. }
  9119. }
  9120. }
  9121. var d = JSON.parse(JSON.stringify(this.playerOptions));
  9122. d.sources[0].src =
  9123. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  9124. this.playerO[i] = d;
  9125. }
  9126. this.courseDetail = res.data[0][0];
  9127. this.tcid = this.arrayToArray(
  9128. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  9129. this.tcid2 ? this.tcid2.split(",") : []
  9130. ).join(",");
  9131. console.log(this.tcid);
  9132. this.evalua = res.data[0][0].evaId;
  9133. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  9134. this.courseType
  9135. ];
  9136. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  9137. if (this.tcid && res.data[1].length) {
  9138. let _inviteA = [];
  9139. for (var ik = 0; ik < res.data[1].length; ik++) {
  9140. _inviteA.push({
  9141. cid: res.data[1][ik].classid,
  9142. ic: res.data[1][ik].code,
  9143. });
  9144. }
  9145. for (var ik = 0; ik < _inviteA.length; ik++) {
  9146. if (
  9147. this.arrayToArray(
  9148. _inviteA[ik].cid.split(","),
  9149. this.tcid.split(",")
  9150. ).length
  9151. ) {
  9152. this.inviteCode = _inviteA[ik].ic;
  9153. break;
  9154. }
  9155. }
  9156. }
  9157. for (var l = 0; l < this.chapInfoList.length; l++) {
  9158. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  9159. for (var m = 0; m < w.length; m++) {
  9160. w[m].id = l + "-" + m;
  9161. }
  9162. }
  9163. if (
  9164. _chapterData[this.taskCount].length &&
  9165. _chapterData[this.taskCount][0].type == 2
  9166. ) {
  9167. this.showType = 0
  9168. } else {
  9169. if (
  9170. _chapterData[this.taskCount].length > 0
  9171. ) {
  9172. let _url =
  9173. _chapterData[this.taskCount][0].url;
  9174. if (
  9175. _chapterData[this.taskCount][0].type == 8
  9176. ) {
  9177. this.showType = 2;
  9178. if (
  9179. _url.indexOf("https://") == -1 &&
  9180. _url.indexOf("http://") == -1
  9181. ) {
  9182. _url = "https://" + _url;
  9183. }
  9184. this.pptImgUrl1 = _url;
  9185. } else if (
  9186. _chapterData[this.taskCount][0].type == 3
  9187. ) {
  9188. if (
  9189. _url
  9190. .split(".")
  9191. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9192. ) {
  9193. this.showType = 3;
  9194. this.pptImgUrl1 = _url;
  9195. } else if (
  9196. this.isAssetTypeAnImage(
  9197. _url
  9198. .split(".")
  9199. [_url.split(".").length - 1].toLocaleLowerCase()
  9200. )
  9201. ) {
  9202. this.showType = 4;
  9203. this.pptImgUrl1 = _url;
  9204. } else {
  9205. this.showType = 2;
  9206. this.pptImgUrl1 =
  9207. "https://view.officeapps.live.com/op/view.aspx?src=" +
  9208. _url;
  9209. }
  9210. } else if (
  9211. _chapterData[this.taskCount][0].type == 6
  9212. ) {
  9213. this.showType = 1;
  9214. this.text = this.textList[this.taskCount][0];
  9215. }
  9216. }
  9217. }
  9218. this.isClickNav = 0;
  9219. if (!_chapterData[this.taskCount].length || _chapterData[this.taskCount][0].type == 12) {
  9220. this.isClickNav = '';
  9221. this.showType = ''
  9222. }
  9223. this.vChapterData = _chapterData
  9224. } else {
  9225. this.showType = 0;
  9226. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  9227. .chapterInfo[0].taskJson;
  9228. var b = [
  9229. "AVI",
  9230. "NAVI",
  9231. "MPEG",
  9232. "ASF",
  9233. "MOV",
  9234. "WMV",
  9235. "3GP",
  9236. "RM",
  9237. "RMVB",
  9238. "FLV",
  9239. "F4V",
  9240. "H.264",
  9241. "H.265",
  9242. "REAL VIDEO",
  9243. "MKV",
  9244. "WebM",
  9245. "HDDVD",
  9246. "MP4",
  9247. "MPG",
  9248. "M4V",
  9249. "MGV",
  9250. "OGV",
  9251. "QTM",
  9252. "STR",
  9253. "AMC",
  9254. "DVX",
  9255. "EVO",
  9256. "DAT",
  9257. "OGG",
  9258. "OGM",
  9259. "MP3",
  9260. ];
  9261. let _chapterData = []
  9262. for (var i = 0; i < a.length; i++) {
  9263. var c = a[i].chapterData;
  9264. this.vedio[i] = [];
  9265. this.textList[i] = [];
  9266. this.lineList[i] = [];
  9267. this.chapToolList[i] = [];
  9268. this.file[i] = [];
  9269. this.fileC[i] = [];
  9270. _chapterData[i] = c
  9271. for (var j = 0; j < c.length; j++) {
  9272. if (c[j].type == 7) {
  9273. this.chapToolList[i].push(c[j]);
  9274. } else if (c[j].type == 8) {
  9275. this.lineList[i].push(c[j]);
  9276. } else if (c[j].type == 6) {
  9277. this.textList[i].push(c[j]);
  9278. } else if (c[j].type == 12) {
  9279. this.fileC[i].push(c[j]);
  9280. } else {
  9281. if (
  9282. b.indexOf(
  9283. c[j].url
  9284. .split(".")
  9285. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  9286. ) != -1
  9287. ) {
  9288. this.vedio[i].push(c[j]);
  9289. } else {
  9290. this.file[i].push(c[j]);
  9291. }
  9292. }
  9293. }
  9294. var d = JSON.parse(JSON.stringify(this.playerOptions));
  9295. d.sources[0].src =
  9296. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  9297. this.playerO[i] = d;
  9298. }
  9299. if (
  9300. _chapterData[this.taskCount].length &&
  9301. _chapterData[this.taskCount][0].type == 2
  9302. ) {
  9303. this.showType = 0
  9304. } else {
  9305. if (
  9306. _chapterData[this.taskCount].length > 0
  9307. ) {
  9308. let _url =
  9309. _chapterData[this.taskCount][0].url;
  9310. if (
  9311. _chapterData[this.taskCount][0].type == 8
  9312. ) {
  9313. this.showType = 2;
  9314. if (
  9315. _url.indexOf("https://") == -1 &&
  9316. _url.indexOf("http://") == -1
  9317. ) {
  9318. _url = "https://" + _url;
  9319. }
  9320. this.pptImgUrl1 = _url;
  9321. } else if (
  9322. _chapterData[this.taskCount][0].type == 3
  9323. ) {
  9324. if (
  9325. _url
  9326. .split(".")
  9327. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9328. ) {
  9329. this.showType = 3;
  9330. this.pptImgUrl1 = _url;
  9331. } else if (
  9332. this.isAssetTypeAnImage(
  9333. _url
  9334. .split(".")
  9335. [_url.split(".").length - 1].toLocaleLowerCase()
  9336. )
  9337. ) {
  9338. this.showType = 4;
  9339. this.pptImgUrl1 = _url;
  9340. } else {
  9341. this.showType = 2;
  9342. this.pptImgUrl1 =
  9343. "https://view.officeapps.live.com/op/view.aspx?src=" +
  9344. _url;
  9345. }
  9346. } else if (
  9347. _chapterData[this.taskCount][0].type == 6
  9348. ) {
  9349. this.showType = 1;
  9350. this.text = this.textList[this.taskCount][0];
  9351. }
  9352. }
  9353. }
  9354. this.isClickNav = 0;
  9355. if (!_chapterData[this.taskCount].length || _chapterData[this.taskCount][0].type == 12) {
  9356. this.isClickNav = '';
  9357. this.showType = ''
  9358. }
  9359. this.vChapterData = _chapterData
  9360. this.$forceUpdate();
  9361. }
  9362. // else {
  9363. // this.courseDetail = res.data[0][0];
  9364. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  9365. // }
  9366. let _this = this;
  9367. if (_this.timer) {
  9368. clearInterval(_this.timer);
  9369. _this.timer = null;
  9370. }
  9371. if (_this.tcid) {
  9372. _this.getCourseGroup(gindex);
  9373. } else {
  9374. _this.selectSWorks(gindex);
  9375. }
  9376. _this.selectStudent();
  9377. _this.selectSLook();
  9378. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  9379. _this.setCTask();
  9380. }
  9381. if (_this.dialogVisibleGroup) {
  9382. _this.groupJson =
  9383. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  9384. _this.taskCount
  9385. ].toolChoose[_this.toolindex].groupJson;
  9386. }
  9387. _this.$nextTick(() => {
  9388. setTimeout(() => {
  9389. _this.checkEva();
  9390. }, 1000);
  9391. });
  9392. _this.timer = setInterval(function () {
  9393. // _this.getCourseDetail(2);
  9394. if (_this.tcid) {
  9395. _this.getCourseGroup(gindex);
  9396. } else {
  9397. _this.selectSWorks(gindex);
  9398. }
  9399. _this.selectStudent();
  9400. _this.selectSLook();
  9401. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  9402. _this.setCTask();
  9403. }
  9404. if (_this.dialogVisibleGroup) {
  9405. _this.groupJson =
  9406. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  9407. _this.taskCount
  9408. ].toolChoose[_this.toolindex].groupJson;
  9409. }
  9410. if (_this.tType == 4 || _this.ispzType == 4) {
  9411. _this.selectPz();
  9412. }
  9413. }, 5000);
  9414. _this.$nextTick(function () {
  9415. setTimeout(() => {
  9416. // var a =
  9417. // document.getElementsByClassName("box_course")[0].offsetHeight;
  9418. // document.getElementsByClassName("vedioList")[0].style.height =
  9419. // a + "px";
  9420. // document.getElementsByClassName("navBox")[0].style.height =
  9421. // a - 40 + "px";
  9422. // if (_this.vedio[_this.taskCount].length > 0) {
  9423. // _this.vedioTime = [];
  9424. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  9425. // _this.vedioTime[i] = document.getElementsByClassName(
  9426. // "vjs-duration-display"
  9427. // )[i].textContent;
  9428. // }
  9429. // }
  9430. }, 1000);
  9431. });
  9432. })
  9433. .catch((err) => {
  9434. loading.close();
  9435. console.error(err);
  9436. });
  9437. },
  9438. getCourseGroup(gindex) {
  9439. let params = {
  9440. cid: this.id,
  9441. classid: this.tcid ? this.tcid : "1",
  9442. };
  9443. this.ajax
  9444. .get(this.$store.state.api + "getCourseGroup", params)
  9445. .then((res) => {
  9446. if (res.data && res.data[0].length) {
  9447. if (!this.isGroup) {
  9448. let courseGroup = JSON.parse(res.data[0][0].group);
  9449. courseGroup.group = courseGroup.group.filter((el) => {
  9450. el.works = [];
  9451. return el;
  9452. });
  9453. this.courseGroup = courseGroup;
  9454. let groupPerson = res.data[1];
  9455. let group = JSON.parse(res.data[0][0].group).group;
  9456. let courseGroupStudent = {};
  9457. let courseGroupStudentUid = {};
  9458. for (var i = 0; i < group.length; i++) {
  9459. courseGroupStudent[group[i].id] = [];
  9460. courseGroupStudentUid[group[i].id] = [];
  9461. for (var j = 0; j < groupPerson.length; j++) {
  9462. if (groupPerson[j].groupCid == group[i].id) {
  9463. courseGroupStudent[group[i].id].push(groupPerson[j]);
  9464. courseGroupStudentUid[group[i].id].push(
  9465. groupPerson[j].userid
  9466. );
  9467. }
  9468. }
  9469. }
  9470. this.courseGroupStudent = courseGroupStudent;
  9471. this.courseGroupStudentUid = courseGroupStudentUid;
  9472. }
  9473. this.isGroup = true;
  9474. this.selectSWorks(gindex);
  9475. } else {
  9476. this.selectSWorks(gindex);
  9477. this.isGroup = false;
  9478. }
  9479. })
  9480. .catch((err) => {
  9481. // this.$message.error("网络不佳");
  9482. console.error(err);
  9483. });
  9484. },
  9485. setOperationTime() {
  9486. let _this = this;
  9487. if (_this.opertimer) {
  9488. clearInterval(_this.opertimer);
  9489. _this.opertimer = null;
  9490. }
  9491. _this.opertimer = setInterval(() => {
  9492. _this.setoTime("600");
  9493. }, 600000);
  9494. },
  9495. setoTime(time) {
  9496. let params = [
  9497. {
  9498. uid: this.userid,
  9499. cid: this.id,
  9500. type: "2",
  9501. time: time,
  9502. },
  9503. ];
  9504. this.ajax
  9505. .post(this.$store.state.api + "addOperationTimeT2", params)
  9506. .then((res) => { })
  9507. .catch((err) => {
  9508. console.error(err);
  9509. });
  9510. },
  9511. addPz(type, content) {
  9512. if (type == "1" && this.pzConText == "") {
  9513. this.$message.error("批注不能为空!");
  9514. return;
  9515. }
  9516. let params = [
  9517. {
  9518. cid: this.id,
  9519. uid: this.userid,
  9520. s: this.courseType,
  9521. t: this.taskCount,
  9522. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  9523. type: type,
  9524. },
  9525. ];
  9526. this.ajax
  9527. .post(this.$store.state.api + "addPz2", params)
  9528. .then((res) => {
  9529. this.$message({
  9530. message: "添加成功",
  9531. type: "success",
  9532. });
  9533. this.pzConText = "";
  9534. this.addPzDialog = false;
  9535. this.selectPz();
  9536. })
  9537. .catch((err) => {
  9538. this.$message.error("添加失败");
  9539. console.error(err);
  9540. });
  9541. },
  9542. deletePz(id) {
  9543. this.$confirm("确定删除此批注吗?", "提示", {
  9544. confirmButtonText: "确定",
  9545. cancelButtonText: "取消",
  9546. type: "warning",
  9547. })
  9548. .then(() => {
  9549. let params = [
  9550. {
  9551. id: id,
  9552. },
  9553. ];
  9554. this.ajax
  9555. .post(this.$store.state.api + "deletePz", params)
  9556. .then((res) => {
  9557. this.$message({
  9558. message: "删除成功",
  9559. type: "success",
  9560. });
  9561. this.selectPz();
  9562. })
  9563. .catch((err) => {
  9564. this.$message.error("网络异常");
  9565. console.error(err);
  9566. });
  9567. })
  9568. .catch(() => { });
  9569. },
  9570. setPz() {
  9571. if (this.ispzType == 4) {
  9572. this.ispzType = 0;
  9573. this.pzDialog = false;
  9574. return;
  9575. }
  9576. this.ispzType = 4;
  9577. this.pzDialog = true;
  9578. this.selectPz();
  9579. },
  9580. selectPz() {
  9581. let params = {
  9582. cid: this.id,
  9583. s: this.courseType,
  9584. t: this.taskCount,
  9585. };
  9586. this.ajax
  9587. .get(this.$store.state.api + "selectPzList", params)
  9588. .then((res) => {
  9589. this.pzList = res.data[0];
  9590. })
  9591. .catch((err) => {
  9592. console.error(err);
  9593. });
  9594. },
  9595. updateSLook() {
  9596. let params = {
  9597. sopen: this.sIsOpen == false ? 1 : 2,
  9598. cid: this.id,
  9599. };
  9600. this.ajax
  9601. .get(this.$store.state.api + "updateCourseSLook", params)
  9602. .then((res) => {
  9603. if (this.sIsOpen == true) {
  9604. this.$message({
  9605. message: "权限设置成功",
  9606. type: "success",
  9607. });
  9608. } else {
  9609. this.$message({
  9610. message: "权限关闭成功",
  9611. type: "success",
  9612. });
  9613. }
  9614. })
  9615. .catch((err) => {
  9616. console.error(err);
  9617. });
  9618. },
  9619. updateFollow() {
  9620. let params = [
  9621. {
  9622. sopen: this.IsFollow == false ? 1 : 2,
  9623. cid: this.id,
  9624. },
  9625. ];
  9626. this.ajax
  9627. .post(this.$store.state.api + "updateCourseFollow", params)
  9628. .then((res) => {
  9629. if (this.IsFollow == true) {
  9630. this.$message({
  9631. message: "开启成功",
  9632. type: "success",
  9633. });
  9634. } else {
  9635. this.$message({
  9636. message: "关闭成功",
  9637. type: "success",
  9638. });
  9639. }
  9640. this.setCTask();
  9641. })
  9642. .catch((err) => {
  9643. console.error(err);
  9644. });
  9645. },
  9646. setCTask() {
  9647. let params = [
  9648. {
  9649. sopen: this.courseType + "-" + this.taskCount,
  9650. cid: this.id,
  9651. },
  9652. ];
  9653. this.ajax
  9654. .post(this.$store.state.api + "updateCourseFollowC", params)
  9655. .then((res) => { })
  9656. .catch((err) => {
  9657. console.error(err);
  9658. });
  9659. },
  9660. updateLookOpen() {
  9661. let params = [
  9662. {
  9663. sopen: this.IsLookOpen == false ? 1 : 2,
  9664. cid: this.id,
  9665. },
  9666. ];
  9667. this.ajax
  9668. .post(this.$store.state.api + "updateCourseLookOpen", params)
  9669. .then((res) => {
  9670. if (this.IsLookOpen == true) {
  9671. // if (this.courseType != 0 && this.taskCount != 0) {
  9672. // this.openTask(0, 0, "0-0");
  9673. // }
  9674. this.$message({
  9675. message: "权限设置成功",
  9676. type: "success",
  9677. });
  9678. } else {
  9679. this.$message({
  9680. message: "权限关闭成功",
  9681. type: "success",
  9682. });
  9683. }
  9684. this.getCourseState(2);
  9685. })
  9686. .catch((err) => {
  9687. console.error(err);
  9688. });
  9689. },
  9690. selectSLook() {
  9691. let params = {
  9692. cid: this.id,
  9693. };
  9694. this.ajax
  9695. .get(this.$store.state.api + "selectCourseSLook", params)
  9696. .then((res) => {
  9697. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  9698. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  9699. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  9700. if (!this.IsLookOpen) {
  9701. this.setNavList();
  9702. } else {
  9703. this.getCourseState(1);
  9704. }
  9705. if (this.IsFollow && this.tType == 2) {
  9706. this.setContent2(false);
  9707. let _followC = res.data[0][0].followC.split("-");
  9708. if (
  9709. this.courseType != _followC[0] ||
  9710. this.taskCount != _followC[1]
  9711. ) {
  9712. this.navList[this.courseType].isOpen = false;
  9713. this.courseType = _followC[0];
  9714. this.navList[this.courseType].isOpen = true;
  9715. this.taskCount = parseInt(_followC[1]);
  9716. this.navId = res.data[0][0].followC;
  9717. document.scrollingElement.scrollTop = 0;
  9718. this.getCourseDetail(2);
  9719. }
  9720. }
  9721. })
  9722. .catch((err) => {
  9723. console.error(err);
  9724. });
  9725. },
  9726. setNavList() {
  9727. if (this.navList.length == 0) {
  9728. this.navList = [];
  9729. for (var l = 0; l < this.chapInfoList.length; l++) {
  9730. var q = this.chapInfoList[l].dyName;
  9731. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  9732. var e;
  9733. this.navList.push({
  9734. dyName: q,
  9735. isOpen: l === 0 ? true : false,
  9736. task: [],
  9737. });
  9738. for (var r = 0; r < w.length; r++) {
  9739. e = w[r].task;
  9740. if (this.chapInfoList[l].easy == 1) {
  9741. this.navList[l].task.push({
  9742. taskName: q,
  9743. id: l + "-" + r,
  9744. isLook: w[r].isLook,
  9745. });
  9746. } else {
  9747. this.navList[l].task.push({
  9748. taskName: e,
  9749. id: l + "-" + r,
  9750. isLook: w[r].isLook,
  9751. });
  9752. }
  9753. // this.navId = this.navId ? this.navId : l + "-" + r;
  9754. // this.navId = l + "-" + r;
  9755. }
  9756. }
  9757. this.navList[0].isOpen = false;
  9758. this.navList[this.courseType].isOpen = true;
  9759. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  9760. } else {
  9761. this.setNavList2();
  9762. }
  9763. },
  9764. setNavList2() {
  9765. for (var l = 0; l < this.chapInfoList.length; l++) {
  9766. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  9767. for (var r = 0; r < w.length; r++) {
  9768. this.navList[l].task[r].isLook = w[r].isLook;
  9769. }
  9770. }
  9771. if (
  9772. this.IsLookOpen &&
  9773. !this.navList[this.courseType].task[this.taskCount].isLook
  9774. ) {
  9775. this.openTask(0, 0, "0-0");
  9776. }
  9777. this.$forceUpdate();
  9778. },
  9779. getCourseState(type) {
  9780. let params = {
  9781. cid: this.id,
  9782. };
  9783. this.ajax
  9784. .get(this.$store.state.api + "getCourseState", params)
  9785. .then((res) => {
  9786. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  9787. this.chapInfoList = JSON.parse(res.data[0][0].state);
  9788. this.setNavList();
  9789. this.$forceUpdate();
  9790. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  9791. this.addCourseState(2);
  9792. } else {
  9793. this.addCourseState(1);
  9794. }
  9795. })
  9796. .catch((err) => {
  9797. console.error(err);
  9798. });
  9799. },
  9800. addCourseState(type) {
  9801. let _state = this.chapInfoList;
  9802. // this.courseType this.taskCount
  9803. if (type == 1 || type == 2) {
  9804. for (var i = 0; i < _state.length; i++) {
  9805. let el = _state[i].chapterInfo[0].taskJson;
  9806. for (var j = 0; j < el.length; j++) {
  9807. // if (i == 0 && j == 0) {
  9808. // el[j].isLook = true;
  9809. // } else {
  9810. // el[j].isLook = false;
  9811. // }
  9812. if (
  9813. this.courseType > i ||
  9814. (this.courseType == i && this.taskCount + 1 > j)
  9815. ) {
  9816. el[j].isLook = true;
  9817. } else {
  9818. el[j].isLook = false;
  9819. }
  9820. }
  9821. }
  9822. }
  9823. let params = [
  9824. {
  9825. cid: this.id,
  9826. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  9827. },
  9828. ];
  9829. this.ajax
  9830. .post(
  9831. this.$store.state.api +
  9832. (type == 1 ? "addCourseState" : "updateCourseSate"),
  9833. params
  9834. )
  9835. .then((res) => {
  9836. if (this.IsLookOpen) {
  9837. this.setNavList();
  9838. }
  9839. if (type == 3 && type == 2) {
  9840. this.getCourseState(1);
  9841. }
  9842. })
  9843. .catch((err) => {
  9844. console.error(err);
  9845. });
  9846. },
  9847. getHomeWork() {
  9848. let params = {
  9849. cid: this.id,
  9850. stage: this.courseType,
  9851. task: this.taskCount,
  9852. uid: this.userid,
  9853. };
  9854. this.ajax
  9855. .get(this.$store.state.api + "selectWork", params)
  9856. .then((res) => {
  9857. if (res.data[0].length > 0) {
  9858. this.studyJuri = JSON.parse(res.data[0][0].content);
  9859. this.isNoHomeWork = true;
  9860. }
  9861. })
  9862. .catch((err) => {
  9863. console.error(err);
  9864. });
  9865. },
  9866. isAssetTypeAnImage(ext) {
  9867. return (
  9868. [
  9869. "png",
  9870. "jpg",
  9871. "jpeg",
  9872. "bmp",
  9873. "gif",
  9874. "webp",
  9875. "psd",
  9876. "svg",
  9877. "tiff",
  9878. ].indexOf(ext) !== -1
  9879. );
  9880. },
  9881. switchVideo(media) {
  9882. this.playerO = {};
  9883. this.playerOptions.poster = "";
  9884. this.playerOptions.sources[0].src = media;
  9885. this.playerO = this.playerOptions;
  9886. },
  9887. onPlayerPlay() { },
  9888. onPlayerTimeupdate(player) {
  9889. let gklog = player.cache_.currentTime; //当前播放的秒数
  9890. let a = player.cache_.duration; //视频的总时长
  9891. let gklog2 = parseInt(gklog);
  9892. // if(gklog2 == '3'){
  9893. // player.pause()
  9894. // setTimeout(()=>{
  9895. // player.currentTime(gklog2+1)
  9896. // player.play()
  9897. // },1000)
  9898. // }
  9899. console.log(" onPlayerTimeupdate!", gklog);
  9900. console.log(" onPlayerTimeupdate!", gklog2);
  9901. },
  9902. lookVedio(u, i) {
  9903. this.isClickNav = "";
  9904. // this.playerOptions.sources[0].src = u;
  9905. var d = JSON.parse(JSON.stringify(this.playerOptions));
  9906. d.sources[0].src = u;
  9907. this.playerO[this.taskCount] = d;
  9908. this.showType = 0;
  9909. // this.isClickNav = "video" + i;
  9910. this.isClickNav = i;
  9911. this.$forceUpdate();
  9912. },
  9913. lookText(i, t) {
  9914. this.isClickNav = "";
  9915. // this.text = this.textList[i][t];
  9916. this.text = this.vChapterData[i][t];
  9917. // this.dialogVisible1 = true;
  9918. this.showType = 1;
  9919. // this.isClickNav = "text" + t;
  9920. this.isClickNav = t;
  9921. },
  9922. lookTools(i, t) {
  9923. this.chapTools = this.chapToolList[i][t];
  9924. this.dialogVisible2 = true;
  9925. },
  9926. openFile(f) {
  9927. this.pptImgUrl = "";
  9928. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  9929. if (
  9930. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  9931. -1
  9932. ) {
  9933. this.pptImgUrl =
  9934. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  9935. this.showPDF = false;
  9936. this.dialogVisible3 = true;
  9937. } else if (
  9938. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9939. ) {
  9940. this.pptImgUrl = f;
  9941. this.showPDF = true;
  9942. this.dialogVisible3 = true;
  9943. }
  9944. },
  9945. openTable(f) {
  9946. this.tableJson = JSON.parse(f.works);
  9947. this.dialogVisibleTable2 = true;
  9948. },
  9949. openWord(f) {
  9950. this.tableJson = JSON.parse(f.works);
  9951. this.dialogVisibleTable3 = true;
  9952. },
  9953. doUrl(url, i) {
  9954. this.isClickNav = "";
  9955. this.pptImgUrl1 = "";
  9956. this.showType = 2;
  9957. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  9958. url = "https://" + url;
  9959. }
  9960. this.pptImgUrl1 = "";
  9961. setTimeout(() => {
  9962. this.pptImgUrl1 = url;
  9963. }, 500);
  9964. // this.isClickNav = "line" + i;
  9965. this.isClickNav = i;
  9966. this.$forceUpdate();
  9967. },
  9968. downFile(f, i) {
  9969. this.isClickNav = "";
  9970. this.pptImgUrl1 = "";
  9971. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  9972. if (
  9973. a.indexOf(
  9974. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  9975. ) != -1
  9976. ) {
  9977. this.pptImgUrl1 =
  9978. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  9979. // this.dialogVisible3 = true;
  9980. this.showType = 2;
  9981. } else if (
  9982. this.isAssetTypeAnImage(
  9983. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  9984. )
  9985. ) {
  9986. this.showType = 4;
  9987. this.pptImgUrl1 = f.url;
  9988. } else if (
  9989. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  9990. "PDF"
  9991. ) {
  9992. this.pptImgUrl1 = f.url;
  9993. // this.dialogVisible3 = true;
  9994. this.showType = 3;
  9995. } else {
  9996. window.open(this.file[i].url);
  9997. }
  9998. // this.isClickNav = "word" + i;
  9999. this.isClickNav = i;
  10000. },
  10001. downFileList(i) {
  10002. window.open(this.noImgList[i].url);
  10003. },
  10004. openAddWork() {
  10005. this.dialogVisible = true;
  10006. },
  10007. addBzWorks() {
  10008. let params = [
  10009. {
  10010. uid: this.userid,
  10011. cid: this.id,
  10012. stage: this.courseType,
  10013. task: this.taskCount,
  10014. tool: this.toolindex,
  10015. content: JSON.stringify(this.eScore),
  10016. type: 6,
  10017. },
  10018. ];
  10019. this.ajax
  10020. .post(this.$store.state.api + "addCourseWorks", params)
  10021. .then((res) => {
  10022. this.$message({
  10023. message: "提交成功",
  10024. type: "success",
  10025. });
  10026. this.eScore = { eBzText: "", eStar: [] };
  10027. this.studentEvalDialogVisible = false;
  10028. this.selectSWorks();
  10029. })
  10030. .catch((err) => {
  10031. this.$message.error("提交失败");
  10032. console.error(err);
  10033. });
  10034. },
  10035. addBzWorksTeacher() {
  10036. let params = [
  10037. {
  10038. uid: this.sStudent.userid,
  10039. cid: this.id,
  10040. stage: this.courseType,
  10041. task: this.taskCount,
  10042. tool: this.toolindex,
  10043. content: JSON.stringify(this.eScore),
  10044. type: 6,
  10045. },
  10046. ];
  10047. this.ajax
  10048. .post(this.$store.state.api + "addCourseWorks", params)
  10049. .then((res) => {
  10050. this.$message({
  10051. message: "提交成功",
  10052. type: "success",
  10053. });
  10054. this.eScore = { eBzText: "", eStar: [] };
  10055. this.studentEvalDialogVisibleTeacher = false;
  10056. this.selectSWorks();
  10057. })
  10058. .catch((err) => {
  10059. this.$message.error("提交失败");
  10060. console.error(err);
  10061. });
  10062. },
  10063. addStudentAsk() {
  10064. if (!this.radio.length) {
  10065. this.$message.error("请选择选项");
  10066. return;
  10067. }
  10068. for (var i = 0; i < this.askJson.askCount; i++) {
  10069. if (
  10070. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  10071. (this.radio[i] !== 0 && !this.radio[i])
  10072. ) {
  10073. this.$message.error("请选择选项");
  10074. return;
  10075. }
  10076. }
  10077. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  10078. let params = [
  10079. {
  10080. uid: this.userid,
  10081. cid: this.id,
  10082. stage: this.courseType,
  10083. task: this.taskCount,
  10084. tool: this.toolindex,
  10085. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  10086. type: 2,
  10087. },
  10088. ];
  10089. this.ajax
  10090. .post(this.$store.state.api + "addCourseWorks", params)
  10091. .then((res) => {
  10092. this.$message({
  10093. message: "提交成功",
  10094. type: "success",
  10095. });
  10096. this.askList = [];
  10097. this.dialogVisible5 = false;
  10098. this.selectStudent();
  10099. this.selectSWorks();
  10100. this.selectSLook();
  10101. })
  10102. .catch((err) => {
  10103. this.$message.error("提交失败");
  10104. console.error(err);
  10105. });
  10106. },
  10107. addStudentAskTeacher() {
  10108. if (!this.radio.length) {
  10109. this.$message.error("请选择选项");
  10110. return;
  10111. }
  10112. for (var i = 0; i < this.askJson.askCount; i++) {
  10113. if (
  10114. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  10115. (this.radio[i] !== 0 && !this.radio[i])
  10116. ) {
  10117. this.$message.error("请选择选项");
  10118. return;
  10119. }
  10120. }
  10121. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  10122. let params = [
  10123. {
  10124. uid: this.sStudent.userid,
  10125. cid: this.id,
  10126. stage: this.courseType,
  10127. task: this.taskCount,
  10128. tool: this.toolindex,
  10129. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  10130. type: 2,
  10131. },
  10132. ];
  10133. this.ajax
  10134. .post(this.$store.state.api + "addCourseWorks", params)
  10135. .then((res) => {
  10136. this.$message({
  10137. message: "提交成功",
  10138. type: "success",
  10139. });
  10140. this.askList = [];
  10141. this.dialogVisible5Teacher = false;
  10142. this.selectStudent();
  10143. this.selectSWorks();
  10144. this.selectSLook();
  10145. })
  10146. .catch((err) => {
  10147. this.$message.error("提交失败");
  10148. console.error(err);
  10149. });
  10150. },
  10151. addStudentTest() {
  10152. if (!this.radio.length) {
  10153. this.$message.error("请选择选项");
  10154. return;
  10155. }
  10156. for (var i = 0; i < this.testJson.testCount; i++) {
  10157. if (
  10158. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  10159. (this.radio[i] !== 0 && !this.radio[i])
  10160. ) {
  10161. this.$message.error("请选择选项");
  10162. return;
  10163. }
  10164. }
  10165. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  10166. let params = [
  10167. {
  10168. uid: this.userid,
  10169. cid: this.id,
  10170. stage: this.courseType,
  10171. task: this.taskCount,
  10172. tool: this.toolindex,
  10173. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  10174. type: 8,
  10175. },
  10176. ];
  10177. this.ajax
  10178. .post(this.$store.state.api + "addCourseWorks", params)
  10179. .then((res) => {
  10180. this.$message({
  10181. message: "提交成功",
  10182. type: "success",
  10183. });
  10184. this.askList = [];
  10185. this.dialogVisibleChoice = false;
  10186. this.selectStudent();
  10187. this.selectSWorks();
  10188. this.selectSLook();
  10189. })
  10190. .catch((err) => {
  10191. this.$message.error("提交失败");
  10192. console.error(err);
  10193. });
  10194. },
  10195. addStudentTestTeacher() {
  10196. if (!this.radio.length) {
  10197. this.$message.error("请选择选项");
  10198. return;
  10199. }
  10200. for (var i = 0; i < this.testJson.testCount; i++) {
  10201. if (
  10202. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  10203. (this.radio[i] !== 0 && !this.radio[i])
  10204. ) {
  10205. this.$message.error("请选择选项");
  10206. return;
  10207. }
  10208. }
  10209. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  10210. let params = [
  10211. {
  10212. uid: this.sStudent.userid,
  10213. cid: this.id,
  10214. stage: this.courseType,
  10215. task: this.taskCount,
  10216. tool: this.toolindex,
  10217. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  10218. type: 8,
  10219. },
  10220. ];
  10221. this.ajax
  10222. .post(this.$store.state.api + "addCourseWorks", params)
  10223. .then((res) => {
  10224. this.$message({
  10225. message: "提交成功",
  10226. type: "success",
  10227. });
  10228. this.askList = [];
  10229. this.dialogVisibleChoiceTeacher = false;
  10230. this.selectStudent();
  10231. this.selectSWorks();
  10232. this.selectSLook();
  10233. })
  10234. .catch((err) => {
  10235. this.$message.error("提交失败");
  10236. console.error(err);
  10237. });
  10238. },
  10239. addWork() {
  10240. if (this.studyJuri[0].content == "") {
  10241. this.$message.error("请将信息填写完整");
  10242. return;
  10243. } else if (this.studyJuri[0].cover.length == 0) {
  10244. this.$message.error("请将信息填写完整");
  10245. return;
  10246. } else if (this.studyJuri[0].upVedio.length == 0) {
  10247. this.$message.error("请将信息填写完整");
  10248. return;
  10249. }
  10250. if (this.isNoHomeWork) {
  10251. this.$confirm(
  10252. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  10253. "提示",
  10254. {
  10255. confirmButtonText: "确定",
  10256. cancelButtonText: "取消",
  10257. type: "warning",
  10258. }
  10259. )
  10260. .then(() => {
  10261. let params = [
  10262. {
  10263. uid: this.userid,
  10264. cid: this.id,
  10265. stage: this.courseType,
  10266. task: this.taskCount,
  10267. content: JSON.stringify(this.studyJuri),
  10268. },
  10269. ];
  10270. this.ajax
  10271. .post(this.$store.state.api + "addWorks", params)
  10272. .then((res) => {
  10273. this.$message({
  10274. message: "提交成功",
  10275. type: "success",
  10276. });
  10277. this.isNoHomeWork = true;
  10278. this.dialogVisible = false;
  10279. })
  10280. .catch((err) => {
  10281. this.$message.error("提交失败");
  10282. console.error(err);
  10283. });
  10284. })
  10285. .catch(() => { });
  10286. } else {
  10287. let params = [
  10288. {
  10289. uid: this.userid,
  10290. cid: this.id,
  10291. stage: this.courseType,
  10292. task: this.taskCount,
  10293. content: JSON.stringify(this.studyJuri),
  10294. },
  10295. ];
  10296. this.ajax
  10297. .post(this.$store.state.api + "addWorks", params)
  10298. .then((res) => {
  10299. this.$message({
  10300. message: "提交成功",
  10301. type: "success",
  10302. });
  10303. this.isNoHomeWork = true;
  10304. this.dialogVisible = false;
  10305. })
  10306. .catch((err) => {
  10307. this.$message.error("提交失败");
  10308. console.error(err);
  10309. });
  10310. }
  10311. },
  10312. selectCount() {
  10313. let params = {
  10314. cid: this.id,
  10315. chid: this.courseType,
  10316. uid: this.userid,
  10317. };
  10318. this.ajax
  10319. .get(this.$store.state.api + "selectToolsCount", params)
  10320. .then((res) => {
  10321. for (var i = 0; i < res.data[0].length; i++) {
  10322. if (res.data[0][i].tools == 1) {
  10323. this.wbCount = res.data[0][i].count;
  10324. } else if (res.data[0][i].tools == 2) {
  10325. this.wordCount = res.data[0][i].count;
  10326. } else if (res.data[0][i].tools == 3) {
  10327. this.mindCount = res.data[0][i].count;
  10328. } else if (res.data[0][i].tools == 4) {
  10329. this.askCount = res.data[0][i].count;
  10330. } else if (res.data[0][i].tools == 6) {
  10331. this.noteCount = res.data[0][i].count;
  10332. } else if (res.data[0][i].tools == 7) {
  10333. this.mindNetWorkCount = res.data[0][i].count;
  10334. } else if (res.data[0][i].tools == 8) {
  10335. this.libraryCount = res.data[0][i].count;
  10336. } else if (res.data[0][i].tools == 16) {
  10337. this.workCount = res.data[0][i].count;
  10338. } else if (res.data[0][i].tools == 10) {
  10339. this.timeCount = res.data[0][i].count;
  10340. } else if (res.data[0][i].tools == 15) {
  10341. this.answerCount = res.data[0][i].count;
  10342. } else if (res.data[0][i].tools == 18) {
  10343. this.trainCount = res.data[0][i].count;
  10344. }
  10345. }
  10346. })
  10347. .catch((err) => {
  10348. console.error(err);
  10349. });
  10350. },
  10351. openTools(t, i, index, c, sName) {
  10352. var z = JSON.parse(c);
  10353. this.noteName = sName;
  10354. if (t == 4) {
  10355. this.radio = [];
  10356. this.isAnswer = false;
  10357. let b = z[0].anwer;
  10358. this.radio = b;
  10359. this.askJson = z[0].askJson;
  10360. this.isAnswer = true;
  10361. this.dialogVisible5 = true;
  10362. } else if (t == 45) {
  10363. this.radio = [];
  10364. this.isAnswer = false;
  10365. let b = z[0].anwer;
  10366. this.radio = b;
  10367. this.testJson = z[0].testJson;
  10368. this.isAnswer = true;
  10369. this.dialogVisibleChoice = true;
  10370. }
  10371. // else if (t == 15) {
  10372. // this.answerQ = "";
  10373. // this.questionAnswer = "";
  10374. // this.answerQ = z[0].answerTitle;
  10375. // this.questionAnswer = z[0].answer;
  10376. // this.answerDialogVisible = true;
  10377. // }
  10378. },
  10379. fastText(p, t) {
  10380. if (t == 1) {
  10381. this.commentText += p;
  10382. } else {
  10383. this.eScore.eBzText += p;
  10384. }
  10385. },
  10386. addTools(t, i, index) {
  10387. var a = 0;
  10388. // this.taskCount = index;
  10389. this.toolindex = i;
  10390. if (t == 1) {
  10391. if (this.wbCount > 0) {
  10392. this.updateCount(this.wbCount, t);
  10393. } else {
  10394. this.wbCount++;
  10395. a = this.wbCount;
  10396. this.toolsCount(a, t);
  10397. }
  10398. window.parent.postMessage(
  10399. {
  10400. tools: "1",
  10401. cid: this.id,
  10402. stage: this.courseType,
  10403. task: this.taskCount,
  10404. tool: i,
  10405. },
  10406. "*"
  10407. );
  10408. } else if (t == 2) {
  10409. if (this.wordCount > 0) {
  10410. this.updateCount(this.wordCount, t);
  10411. } else {
  10412. this.wordCount++;
  10413. a = this.wordCount;
  10414. this.toolsCount(a, t);
  10415. }
  10416. window.parent.postMessage({ tools: "2" }, "*");
  10417. } else if (t == 3) {
  10418. if (this.mindCount > 0) {
  10419. this.updateCount(this.mindCount, t);
  10420. } else {
  10421. this.mindCount++;
  10422. a = this.mindCount;
  10423. this.toolsCount(a, t);
  10424. }
  10425. window.parent.postMessage(
  10426. {
  10427. tools: "3",
  10428. cid: this.id,
  10429. stage: this.courseType,
  10430. task: this.taskCount,
  10431. tool: i,
  10432. },
  10433. "*"
  10434. );
  10435. } else if (t == 4) {
  10436. this.radio = [];
  10437. this.noteName = "";
  10438. this.isAnswer = false;
  10439. if (this.askCount > 0) {
  10440. this.updateCount(this.askCount, t);
  10441. } else {
  10442. this.askCount++;
  10443. a = this.askCount;
  10444. this.toolsCount(a, t);
  10445. }
  10446. if (!this.dialogVisible2) {
  10447. this.askJson.askJson =
  10448. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10449. index
  10450. ].toolChoose[i].askJson;
  10451. this.askJson.askTitle =
  10452. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10453. index
  10454. ].toolChoose[i].askTitle;
  10455. this.askJson.askCount =
  10456. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10457. index
  10458. ].toolChoose[i].askCount;
  10459. } else {
  10460. this.askJson.askJson = this.chapTools.askJson.askJson;
  10461. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  10462. this.askJson.askCount = this.chapTools.askJson.askCount;
  10463. }
  10464. for (var k = 0; k < this.askJson.askJson.length; k++) {
  10465. if (this.askJson.askJson[k].type == "2") {
  10466. this.radio.push([]);
  10467. } else {
  10468. this.radio.push("");
  10469. }
  10470. }
  10471. this.dialogVisible5 = true;
  10472. // window.parent.postMessage({ tools: "4" }, "*");
  10473. } else if (t == 45) {
  10474. this.noteName = "";
  10475. this.radio = [];
  10476. this.isAnswer = false;
  10477. if (this.askCount > 0) {
  10478. this.updateCount(this.askCount, t);
  10479. } else {
  10480. this.askCount++;
  10481. a = this.askCount;
  10482. this.toolsCount(a, t);
  10483. }
  10484. this.testJson =
  10485. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10486. index
  10487. ].toolChoose[i].testJson;
  10488. for (var k = 0; k < this.testJson.testJson.length; k++) {
  10489. if (this.testJson.testJson[k].type == "2") {
  10490. this.radio.push([]);
  10491. } else {
  10492. this.radio.push("");
  10493. }
  10494. }
  10495. this.dialogVisibleChoice = true;
  10496. // window.parent.postMessage({ tools: "4" }, "*");
  10497. } else if (t == 5) {
  10498. if (this.scoreCount > 0) {
  10499. this.updateCount(this.scoreCount, t);
  10500. } else {
  10501. this.scoreCount++;
  10502. a = this.scoreCount;
  10503. this.toolsCount(a, t);
  10504. }
  10505. this.dialogVisible4 = true;
  10506. // window.parent.postMessage({ tools: "5" }, "*");
  10507. } else if (t == 6) {
  10508. if (this.noteCount > 0) {
  10509. this.updateCount(this.noteCount, t);
  10510. } else {
  10511. this.noteCount++;
  10512. a = this.noteCount;
  10513. this.toolsCount(a, t);
  10514. }
  10515. window.parent.postMessage(
  10516. {
  10517. tools: "6",
  10518. cid: this.id,
  10519. stage: this.courseType,
  10520. task: this.taskCount,
  10521. tool: i,
  10522. },
  10523. "*"
  10524. );
  10525. } else if (t == 7) {
  10526. if (this.mindNetWorkCount > 0) {
  10527. this.updateCount(this.mindNetWorkCount, t);
  10528. } else {
  10529. this.mindNetWorkCount++;
  10530. a = this.mindNetWorkCount;
  10531. this.toolsCount(a, t);
  10532. }
  10533. window.parent.postMessage(
  10534. {
  10535. tools: "7",
  10536. cid: this.id,
  10537. stage: this.courseType,
  10538. task: this.taskCount,
  10539. tool: i,
  10540. },
  10541. "*"
  10542. );
  10543. } else if (t == 16) {
  10544. if (this.workCount > 0) {
  10545. this.updateCount(this.workCount, t);
  10546. } else {
  10547. this.workCount++;
  10548. a = this.workCount;
  10549. this.toolsCount(a, t);
  10550. }
  10551. this.dialogVisible = true;
  10552. } else if (t == 50) {
  10553. if (this.tType == 2) {
  10554. this.$message.error("不支持学生使用");
  10555. return;
  10556. }
  10557. this.plworkFile = [];
  10558. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  10559. if (!this.uploadCid) {
  10560. this.$message.error("提示:批量上传未添加班级权限,请添加班级或从班级入口进入。");
  10561. return;
  10562. }
  10563. // this.uploadCid =
  10564. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10565. // index
  10566. // ].toolChoose[i].uploadJson[0];
  10567. this.selectUploadStudent();
  10568. this.dialogVisiblePl = true;
  10569. } else if (t == 8) {
  10570. if (this.libraryCount > 0) {
  10571. this.updateCount(this.libraryCount, t);
  10572. } else {
  10573. this.libraryCount++;
  10574. a = this.libraryCount;
  10575. this.toolsCount(a, t);
  10576. }
  10577. window.parent.postMessage({ tools: "8" }, "*");
  10578. } else if (t == 17) {
  10579. if (this.libraryCount > 0) {
  10580. this.updateCount(this.libraryCount, t);
  10581. } else {
  10582. this.libraryCount++;
  10583. a = this.libraryCount;
  10584. this.toolsCount(a, t);
  10585. }
  10586. window.parent.postMessage({ tools: "17" }, "*");
  10587. } else if (t == 18) {
  10588. if (this.trainCount > 0) {
  10589. this.updateCount(this.trainCount, t);
  10590. } else {
  10591. this.trainCount++;
  10592. a = this.trainCount;
  10593. this.toolsCount(a, t);
  10594. }
  10595. window.parent.postMessage({ tools: "18" }, "*");
  10596. } else if (t == 10) {
  10597. if (this.timeCount > 0) {
  10598. this.updateCount(this.timeCount, t);
  10599. } else {
  10600. this.timeCount++;
  10601. a = this.timeCount;
  10602. this.toolsCount(a, t);
  10603. }
  10604. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  10605. .taskJson[index].toolChoose[i].preTime
  10606. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  10607. .toolChoose[i].preTime
  10608. : "";
  10609. this.timeDialogVisible = true;
  10610. } else if (t == 15) {
  10611. this.answerQ = "";
  10612. this.questionAnswer = "";
  10613. if (this.answerCount > 0) {
  10614. this.updateCount(this.answerCount, t);
  10615. } else {
  10616. this.answerCount++;
  10617. a = this.answerCount;
  10618. this.toolsCount(a, t);
  10619. }
  10620. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  10621. .taskJson[index].toolChoose[i].answerQ
  10622. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  10623. .toolChoose[i].answerQ
  10624. : "";
  10625. this.answerDialogVisible = true;
  10626. } else if (t == 21) {
  10627. window.parent.postMessage({ tools: "21" }, "*");
  10628. } else if (t == 22) {
  10629. window.parent.postMessage({ tools: "22" }, "*");
  10630. } else if (t == 23) {
  10631. window.parent.postMessage({ tools: "23" }, "*");
  10632. } else if (t == 24) {
  10633. window.parent.postMessage({ tools: "24" }, "*");
  10634. } else if (t == 25) {
  10635. window.parent.postMessage({ tools: "25" }, "*");
  10636. } else if (t == 31) {
  10637. window.parent.postMessage({ tools: "31" }, "*");
  10638. } else if (t == 28) {
  10639. window.parent.postMessage({ tools: "28" }, "*");
  10640. } else if (t == 37) {
  10641. window.parent.postMessage({ tools: "37" }, "*");
  10642. } else if (t == 38) {
  10643. window.parent.postMessage({ tools: "38" }, "*");
  10644. } else if (t == 39) {
  10645. window.parent.postMessage({ tools: "39" }, "*");
  10646. } else if (t == 32) {
  10647. window.parent.postMessage({ tools: "32" }, "*");
  10648. } else if (t == 57) {
  10649. // window.parent.postMessage({ tools: "57" }, "*");
  10650. window.parent.postMessage(
  10651. {
  10652. tools: "57u",
  10653. cid: this.id,
  10654. stage: this.courseType,
  10655. task: this.taskCount,
  10656. tool: i,
  10657. },
  10658. "*"
  10659. );
  10660. } else if (t == 58) {
  10661. window.parent.postMessage({ tools: "58" }, "*");
  10662. } else if (t == 59) {
  10663. window.parent.postMessage({ tools: "59" }, "*");
  10664. } else if (t == 60) {
  10665. window.parent.postMessage({ tools: "60" }, "*");
  10666. } else if (t == 61) {
  10667. window.parent.postMessage({ tools: "61" }, "*");
  10668. } else if (t == 63) {
  10669. window.parent.postMessage({ tools: "63" }, "*");
  10670. } else if (t == 26) {
  10671. window.parent.postMessage(
  10672. {
  10673. tools: "26",
  10674. cid: this.id,
  10675. stage: this.courseType,
  10676. task: this.taskCount,
  10677. tool: i,
  10678. },
  10679. "*"
  10680. );
  10681. } else if (t == 40) {
  10682. if (this.evalCount > 0) {
  10683. this.updateCount(this.evalCount, t);
  10684. } else {
  10685. this.evalCount++;
  10686. a = this.evalCount;
  10687. this.toolsCount(a, t);
  10688. }
  10689. this.eScore = { eBzText: "", eStar: [] };
  10690. if (this.worksStudent[i].length) {
  10691. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10692. if (this.userid == this.worksStudent[i][k].userid) {
  10693. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  10694. this.rateJson =
  10695. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10696. index
  10697. ].toolChoose[i].rateJson;
  10698. break;
  10699. } else {
  10700. this.rateJson =
  10701. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10702. index
  10703. ].toolChoose[i].rateJson;
  10704. }
  10705. }
  10706. } else {
  10707. this.rateJson =
  10708. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10709. index
  10710. ].toolChoose[i].rateJson;
  10711. }
  10712. this.isStar = false;
  10713. this.studentEvalDialogVisible = true;
  10714. } else if (t == 41) {
  10715. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10716. .taskJson[index].toolChoose[i].selectJson
  10717. ? JSON.parse(
  10718. JSON.stringify(
  10719. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10720. index
  10721. ].toolChoose[i].selectJson
  10722. )
  10723. )
  10724. : { url: "", select: [], answer: [] };
  10725. if (this.worksStudent[i].length) {
  10726. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10727. if (this.userid == this.worksStudent[i][k].userid) {
  10728. var a = this.worksStudent[i][k].works.split(",");
  10729. for (var ki = 0; ki < a.length; ki++) {
  10730. a[ki] = parseInt(a[ki]);
  10731. }
  10732. this.selectAnswer = {
  10733. answer: a,
  10734. stu: this.worksStudent[i][k].sName,
  10735. };
  10736. break;
  10737. } else {
  10738. this.selectAnswer = { answer: [], stu: "" };
  10739. }
  10740. }
  10741. } else {
  10742. this.selectAnswer = { answer: [], stu: "" };
  10743. }
  10744. this.isSelect = false;
  10745. this.dialogVisibleSelect = true;
  10746. } else if (t == 44) {
  10747. window.parent.postMessage({ tools: "44" }, "*");
  10748. } else if (t == 47) {
  10749. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  10750. .taskJson[index].toolChoose[i].sentenceList
  10751. ? JSON.parse(
  10752. JSON.stringify(
  10753. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10754. index
  10755. ].toolChoose[i].sentenceList
  10756. )
  10757. )
  10758. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  10759. for (var q = 0; q < this.sentenceList.length; q++) {
  10760. this.sentenceList[q].chooseSenList = [];
  10761. this.sentenceList[q].addChangeSen = [];
  10762. this.sentenceList[q].addChangeSen = JSON.parse(
  10763. JSON.stringify(this.sentenceList[q].addSentence)
  10764. );
  10765. this.sentenceList[q].chooseSenList.length =
  10766. this.sentenceList[q].rightAnswer.length;
  10767. }
  10768. this.dialogVisibleSentence = true;
  10769. } else if (t == 48) {
  10770. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10771. .taskJson[index].toolChoose[i].tableJson
  10772. ? JSON.parse(
  10773. JSON.stringify(
  10774. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10775. index
  10776. ].toolChoose[i].tableJson
  10777. )
  10778. )
  10779. : { text: "" };
  10780. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  10781. if (this.worksStudent[i].length) {
  10782. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10783. if (this.userid == this.worksStudent[i][k].userid) {
  10784. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  10785. break;
  10786. }
  10787. }
  10788. }
  10789. this.dialogVisibleTable = true;
  10790. } else if (t == 52) {
  10791. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10792. .taskJson[index].toolChoose[i].wordJson
  10793. ? JSON.parse(
  10794. JSON.stringify(
  10795. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10796. index
  10797. ].toolChoose[i].wordJson
  10798. )
  10799. )
  10800. : { text: "" };
  10801. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  10802. if (this.worksStudent[i].length) {
  10803. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10804. if (this.userid == this.worksStudent[i][k].userid) {
  10805. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  10806. break;
  10807. }
  10808. }
  10809. }
  10810. this.dialogVisibleWord = true;
  10811. } else if (t == 49) {
  10812. this.groupJson =
  10813. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10814. index
  10815. ].toolChoose[i].groupJson;
  10816. this.islock = this.groupJson.islock == 1 ? true : false;
  10817. this.dialogVisibleGroup = true;
  10818. } else if (t == 62) {
  10819. this.videoJson =
  10820. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10821. index
  10822. ].toolChoose[i].videoJson;
  10823. this.dialogVisibleVideo = true;
  10824. }
  10825. },
  10826. teacherWorkSubmit(t, i, index, s) {
  10827. this.sStudent = s;
  10828. this.toolindex = i;
  10829. this.sTool = t;
  10830. if (this.tType !== "1" && this.tType !== "4") {
  10831. return;
  10832. }
  10833. if (t == 16 || t == 32 || t == 57 || t == 50) {
  10834. this.dialogVisibleWorks = true;
  10835. } else if (t == 15) {
  10836. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  10837. .taskJson[index].toolChoose[i].answerQ
  10838. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  10839. .toolChoose[i].answerQ
  10840. : "";
  10841. this.questionAnswer = "";
  10842. this.answerDialogVisibleTeacher = true; //问答
  10843. } else if (t == 52) {
  10844. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10845. .taskJson[index].toolChoose[i].wordJson
  10846. ? JSON.parse(
  10847. JSON.stringify(
  10848. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10849. index
  10850. ].toolChoose[i].wordJson
  10851. )
  10852. )
  10853. : { text: "" };
  10854. if (this.worksStudent[i].length) {
  10855. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10856. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10857. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  10858. break;
  10859. }
  10860. }
  10861. }
  10862. this.dialogVisibleWordTeacher = true; //文档
  10863. } else if (t == 4) {
  10864. this.radio = [];
  10865. this.noteName = "";
  10866. this.isAnswer = false;
  10867. if (this.askCount > 0) {
  10868. this.updateCount(this.askCount, t);
  10869. } else {
  10870. this.askCount++;
  10871. a = this.askCount;
  10872. this.toolsCount(a, t);
  10873. }
  10874. if (!this.dialogVisible2) {
  10875. this.askJson.askJson =
  10876. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10877. index
  10878. ].toolChoose[i].askJson;
  10879. this.askJson.askTitle =
  10880. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10881. index
  10882. ].toolChoose[i].askTitle;
  10883. this.askJson.askCount =
  10884. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10885. index
  10886. ].toolChoose[i].askCount;
  10887. } else {
  10888. this.askJson.askJson = this.chapTools.askJson.askJson;
  10889. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  10890. this.askJson.askCount = this.chapTools.askJson.askCount;
  10891. }
  10892. this.dialogVisible5Teacher = true;
  10893. } else if (t == 45) {
  10894. this.noteName = "";
  10895. this.radio = [];
  10896. this.isAnswer = false;
  10897. if (this.askCount > 0) {
  10898. this.updateCount(this.askCount, t);
  10899. } else {
  10900. this.askCount++;
  10901. a = this.askCount;
  10902. this.toolsCount(a, t);
  10903. }
  10904. this.testJson =
  10905. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10906. index
  10907. ].toolChoose[i].testJson;
  10908. for (var k = 0; k < this.testJson.testJson.length; k++) {
  10909. if (this.testJson.testJson[k].type == "2") {
  10910. this.radio.push([]);
  10911. } else {
  10912. this.radio.push("");
  10913. }
  10914. }
  10915. this.dialogVisibleChoiceTeacher = true;
  10916. } else if (t == 41) {
  10917. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10918. .taskJson[index].toolChoose[i].selectJson
  10919. ? JSON.parse(
  10920. JSON.stringify(
  10921. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10922. index
  10923. ].toolChoose[i].selectJson
  10924. )
  10925. )
  10926. : { url: "", select: [], answer: [] };
  10927. if (this.worksStudent[i].length) {
  10928. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10929. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10930. var a = this.worksStudent[i][k].works.split(",");
  10931. for (var ki = 0; ki < a.length; ki++) {
  10932. a[ki] = parseInt(a[ki]);
  10933. }
  10934. this.selectAnswer = {
  10935. answer: a,
  10936. stu: this.worksStudent[i][k].sName,
  10937. };
  10938. break;
  10939. } else {
  10940. this.selectAnswer = { answer: [], stu: "" };
  10941. }
  10942. }
  10943. } else {
  10944. this.selectAnswer = { answer: [], stu: "" };
  10945. }
  10946. this.isSelect = false;
  10947. this.dialogVisibleSelectTeacher = true;
  10948. } else if (t == 47) {
  10949. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  10950. .taskJson[index].toolChoose[i].sentenceList
  10951. ? JSON.parse(
  10952. JSON.stringify(
  10953. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10954. index
  10955. ].toolChoose[i].sentenceList
  10956. )
  10957. )
  10958. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  10959. for (var q = 0; q < this.sentenceList.length; q++) {
  10960. this.sentenceList[q].chooseSenList = [];
  10961. this.sentenceList[q].addChangeSen = [];
  10962. this.sentenceList[q].addChangeSen = JSON.parse(
  10963. JSON.stringify(this.sentenceList[q].addSentence)
  10964. );
  10965. this.sentenceList[q].chooseSenList.length =
  10966. this.sentenceList[q].rightAnswer.length;
  10967. }
  10968. this.dialogVisibleSentenceTeacher = true;
  10969. } else if (t == 48) {
  10970. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10971. .taskJson[index].toolChoose[i].tableJson
  10972. ? JSON.parse(
  10973. JSON.stringify(
  10974. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10975. index
  10976. ].toolChoose[i].tableJson
  10977. )
  10978. )
  10979. : { text: "" };
  10980. if (this.worksStudent[i].length) {
  10981. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10982. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10983. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  10984. break;
  10985. }
  10986. }
  10987. }
  10988. this.dialogVisibleTableTeacher = true;
  10989. } else if (t == 40) {
  10990. if (this.evalCount > 0) {
  10991. this.updateCount(this.evalCount, t);
  10992. } else {
  10993. this.evalCount++;
  10994. a = this.evalCount;
  10995. this.toolsCount(a, t);
  10996. }
  10997. this.eScore = { eBzText: "", eStar: [] };
  10998. if (this.worksStudent[i].length) {
  10999. for (var k = 0; k < this.worksStudent[i].length; k++) {
  11000. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  11001. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  11002. this.rateJson =
  11003. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11004. index
  11005. ].toolChoose[i].rateJson;
  11006. break;
  11007. } else {
  11008. this.rateJson =
  11009. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11010. index
  11011. ].toolChoose[i].rateJson;
  11012. }
  11013. }
  11014. } else {
  11015. this.rateJson =
  11016. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11017. index
  11018. ].toolChoose[i].rateJson;
  11019. }
  11020. this.isStar = false;
  11021. this.studentEvalDialogVisibleTeacher = true;
  11022. } else if (t == 3 || t == 1 || t == 7) {
  11023. window.parent.postMessage(
  11024. {
  11025. tools: t + "teacher",
  11026. cid: this.id,
  11027. stage: this.courseType,
  11028. task: this.taskCount,
  11029. tool: i,
  11030. student: this.sStudent,
  11031. },
  11032. "*"
  11033. );
  11034. }
  11035. },
  11036. setRightAnswer(s, i, j) {
  11037. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  11038. if (
  11039. this.sentenceList[i].chooseSenList[q] == undefined ||
  11040. this.sentenceList[i].chooseSenList[q] == ""
  11041. ) {
  11042. this.sentenceList[i].chooseSenList[q] = s;
  11043. this.sentenceList[i].addChangeSen[j] = "";
  11044. break;
  11045. }
  11046. }
  11047. this.$forceUpdate();
  11048. },
  11049. returnCard(r, i, j) {
  11050. var a = this.sentenceList[i].addSentence.indexOf(r);
  11051. this.sentenceList[i].chooseSenList[j] = "";
  11052. this.sentenceList[i].addChangeSen[a] = r;
  11053. this.$forceUpdate();
  11054. },
  11055. // addSentenceTool() {
  11056. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11057. // this.taskCount
  11058. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  11059. // this.sentenceList = [
  11060. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11061. // ];
  11062. // this.dialogVisibleSentence = false;
  11063. // },
  11064. toolsCount(a, t) {
  11065. let params = {
  11066. cid: this.id,
  11067. chid: this.courseType,
  11068. uid: this.userid,
  11069. tid: t,
  11070. count: a,
  11071. };
  11072. this.ajax
  11073. .get(this.$store.state.api + "insertToolsCount", params)
  11074. .then((res) => {
  11075. this.selectCount();
  11076. })
  11077. .catch((err) => {
  11078. console.error(err);
  11079. });
  11080. },
  11081. updateCount(c, t) {
  11082. c++;
  11083. let params = {
  11084. cid: this.id,
  11085. chid: this.courseType,
  11086. uid: this.userid,
  11087. tid: t,
  11088. count: c,
  11089. };
  11090. this.ajax
  11091. .get(this.$store.state.api + "updateToolsCount", params)
  11092. .then((res) => {
  11093. this.selectCount();
  11094. })
  11095. .catch((err) => {
  11096. console.error(err);
  11097. });
  11098. },
  11099. checkEva() {
  11100. if (this.evalua != "") {
  11101. for (var i = 0; i < this.evaJuri.length; i++) {
  11102. if (this.evalua == this.evaJuri[i].id) {
  11103. this.eTitle = this.evaJuri[i].title;
  11104. this.eJson = JSON.parse(this.evaJuri[i].content);
  11105. }
  11106. }
  11107. this.$forceUpdate();
  11108. setTimeout(() => {
  11109. this.setMindData();
  11110. }, 0);
  11111. }
  11112. },
  11113. selectEva() {
  11114. let params = {
  11115. oid: this.oid,
  11116. };
  11117. this.ajax
  11118. .get(this.$store.state.api + "selectAllEvaluation", params)
  11119. .then((res) => {
  11120. this.evaJuri = res.data[0];
  11121. })
  11122. .catch((err) => {
  11123. console.error(err);
  11124. });
  11125. },
  11126. setMindData() {
  11127. this.data.data = [];
  11128. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  11129. let _eJson = Object.keys(this.eJson);
  11130. let _e = this.eJson;
  11131. for (let i = 0; i < _eJson.length; i++) {
  11132. let element = _e[_eJson[i]];
  11133. this.data.data.push({
  11134. id: element.id,
  11135. parentid: "root",
  11136. topic: element.name,
  11137. });
  11138. let _eJsonc = Object.keys(element.child);
  11139. let _e2 = element.child;
  11140. for (let j = 0; j < _eJsonc.length; j++) {
  11141. let _ec = _e2[_eJsonc[j]];
  11142. this.data.data.push({
  11143. id: _ec.id,
  11144. parentid: element.id,
  11145. topic: _ec.name,
  11146. });
  11147. let _eJsonz = Object.keys(_ec.child);
  11148. let _e3 = _ec.child;
  11149. for (let z = 0; z < _eJsonz.length; z++) {
  11150. let _ez = _e3[_eJsonz[z]];
  11151. this.data.data.push({
  11152. id: _ez.id,
  11153. parentid: _ec.id,
  11154. topic: _ez.name,
  11155. });
  11156. }
  11157. }
  11158. }
  11159. this.$forceUpdate();
  11160. },
  11161. checkFileFull(type, url) {
  11162. this.fullDialogVisible = true;
  11163. this.fulltype = type;
  11164. this.fullUrl = url;
  11165. },
  11166. openSname(n, id, i) {
  11167. this.snameWid = id;
  11168. this.worksSName = n;
  11169. this.toolindex = i;
  11170. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  11171. if (!this.uploadCid) {
  11172. this.$message.error("提示:批量上传未添加班级权限,请添加班级或从班级入口进入。");
  11173. return;
  11174. }
  11175. this.selectUploadStudent();
  11176. this.dialogVisibleSname = true;
  11177. },
  11178. updateName() {
  11179. let params = {
  11180. n: this.worksSName,
  11181. cid: this.snameWid,
  11182. };
  11183. this.ajax
  11184. .get(this.$store.state.api + "updateCourseWorksName", params)
  11185. .then((res) => {
  11186. this.$message({
  11187. message: "修改成功",
  11188. type: "success",
  11189. });
  11190. this.dialogVisibleSname = false;
  11191. this.getCourseDetail(2);
  11192. this.snameWid = "";
  11193. this.worksSName = "";
  11194. })
  11195. .catch((err) => {
  11196. console.error(err);
  11197. });
  11198. },
  11199. downloadFile2(f) {
  11200. let url = f.url;
  11201. let _this = this;
  11202. let _url = "";
  11203. if (
  11204. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11205. ) {
  11206. _url = url.split(
  11207. "https://view.officeapps.live.com/op/view.aspx?src="
  11208. )[1];
  11209. } else {
  11210. _url = url;
  11211. }
  11212. const x = new XMLHttpRequest();
  11213. x.open("GET", _url, true);
  11214. x.responseType = "blob";
  11215. const loading = _this.$loading.service({
  11216. background: "rgba(255, 255, 255, 0.7)",
  11217. target: document.body,
  11218. text: "文件加载中...",
  11219. });
  11220. // _this.$message.success("文件下载中...");
  11221. x.onload = function (e) {
  11222. loading.close();
  11223. let content = x.response;
  11224. let elink = document.createElement("a");
  11225. elink.download = f.name;
  11226. elink.style.display = "none";
  11227. let blob = new Blob([content]);
  11228. elink.href = URL.createObjectURL(blob);
  11229. document.body.appendChild(elink);
  11230. elink.click();
  11231. document.body.removeChild(elink);
  11232. };
  11233. x.send();
  11234. },
  11235. downloadFile(url) {
  11236. let _this = this;
  11237. let _url = "";
  11238. if (
  11239. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11240. ) {
  11241. _url = url.split(
  11242. "https://view.officeapps.live.com/op/view.aspx?src="
  11243. )[1];
  11244. } else {
  11245. _url = url;
  11246. }
  11247. const x = new XMLHttpRequest();
  11248. x.open("GET", _url, true);
  11249. x.responseType = "blob";
  11250. const loading = _this.$loading.service({
  11251. background: "rgba(255, 255, 255, 0.7)",
  11252. target: document.body,
  11253. text: "文件加载中...",
  11254. });
  11255. // _this.$message.success("文件下载中...");
  11256. x.onload = function (e) {
  11257. loading.close();
  11258. // const url = window.URL.createObjectURL(x.response);
  11259. // const a = document.createElement("a");
  11260. // a.href = url;
  11261. // a.target = "_blank";
  11262. // a.download = url;
  11263. // a.click();
  11264. // a.remove();
  11265. let content = x.response;
  11266. let elink = document.createElement("a");
  11267. elink.download = decodeURI(
  11268. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  11269. );
  11270. elink.style.display = "none";
  11271. let blob = new Blob([content]);
  11272. elink.href = URL.createObjectURL(blob);
  11273. document.body.appendChild(elink);
  11274. elink.click();
  11275. document.body.removeChild(elink);
  11276. };
  11277. x.send();
  11278. },
  11279. openLine(url) {
  11280. window.open(url);
  11281. },
  11282. resize() {
  11283. if (document.getElementsByClassName("box_course").length) {
  11284. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  11285. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  11286. document.getElementsByClassName("navBox")[0].style.height =
  11287. a - 40 + "px";
  11288. }
  11289. this.Stbodywidth =
  11290. document.getElementsByClassName("student_body").length &&
  11291. document.getElementsByClassName("student_body")[0].offsetWidth;
  11292. },
  11293. closeDraw() {
  11294. this.bg = null;
  11295. this.drawShow = false;
  11296. },
  11297. showPicturePaint(url) {
  11298. let params = {
  11299. img: url,
  11300. };
  11301. this.ajax
  11302. .get(this.$store.state.api + "imgToBase64", params)
  11303. .then((res) => {
  11304. console.log(res);
  11305. this.drawShow = true;
  11306. this.bg = res.data[0].img;
  11307. })
  11308. .catch((err) => {
  11309. console.error(err);
  11310. });
  11311. },
  11312. addImgDraw(base64) {
  11313. let file = { name: "批注图.png" };
  11314. let img = this.dataUrlToFile(base64, file);
  11315. this.beforeUpload1(img, 5);
  11316. },
  11317. addImgDrawImG(url) {
  11318. // console.log(url);
  11319. let params = [
  11320. {
  11321. wid: this.commentDetail.wid,
  11322. img: url,
  11323. },
  11324. ];
  11325. this.ajax
  11326. .post(this.$store.state.api + "updateCourseWorks", params)
  11327. .then((res) => {
  11328. this.$message({
  11329. message: "提交成功",
  11330. type: "success",
  11331. });
  11332. this.drawShow = false;
  11333. this.bg = "";
  11334. this.selectSWorks();
  11335. this.selectStudent();
  11336. })
  11337. .catch((err) => {
  11338. this.$message.error("提交失败");
  11339. console.error(err);
  11340. });
  11341. },
  11342. deletePicturePaint() {
  11343. this.$confirm("确定删除此批注吗?", "提示", {
  11344. confirmButtonText: "确定",
  11345. cancelButtonText: "取消",
  11346. type: "warning",
  11347. })
  11348. .then(() => {
  11349. let params = [
  11350. {
  11351. wid: this.commentDetail.wid,
  11352. img: "",
  11353. },
  11354. ];
  11355. this.ajax
  11356. .post(this.$store.state.api + "updateCourseWorks", params)
  11357. .then((res) => {
  11358. this.$message({
  11359. message: "删除成功",
  11360. type: "success",
  11361. });
  11362. this.selectSWorks();
  11363. this.selectStudent();
  11364. })
  11365. .catch((err) => {
  11366. this.$message.error("删除失败");
  11367. console.error(err);
  11368. });
  11369. })
  11370. .catch(() => { });
  11371. },
  11372. getAudioVideo(constraintsData) {
  11373. if (navigator.mediaDevices === undefined) {
  11374. navigator.mediaDevices = {};
  11375. }
  11376. if (navigator.mediaDevices.getUserMedia === undefined) {
  11377. navigator.mediaDevices.getUserMedia = function (constraints) {
  11378. // 首先,如果有getUserMedia的话,就获得它
  11379. var getUserMedia =
  11380. navigator.getUserMedia ||
  11381. navigator.webkitGetUserMedia ||
  11382. navigator.mozGetUserMedia ||
  11383. navigator.msGetUserMedia;
  11384. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  11385. if (!getUserMedia) {
  11386. return Promise.reject({ code: 404 });
  11387. }
  11388. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  11389. return new Promise(function (resolve, reject) {
  11390. getUserMedia.call(navigator, constraints, resolve, reject);
  11391. });
  11392. };
  11393. }
  11394. return navigator.mediaDevices.getUserMedia(constraintsData);
  11395. },
  11396. /**
  11397. * 开始录制
  11398. */
  11399. startRecording(callback) {
  11400. let _function = (screenStream) => {
  11401. this.addStreamStopListener(screenStream, () => {
  11402. console.log("流停止监听");
  11403. this.stopRecording();
  11404. this.$emit("streamStop", {});
  11405. // this.stopRecording();
  11406. });
  11407. var options = {
  11408. type: "video",
  11409. mimeType: "video/webm",
  11410. disableLogs: false,
  11411. getNativeBlob: false, // enable it for longer recordings
  11412. ignoreMutedMedia: false,
  11413. };
  11414. // this.video.srcObject = screenStream;
  11415. this.recorder = RecordRTC(screenStream, options);
  11416. this.recorder.startRecording();
  11417. this.recorder.screen = screenStream;
  11418. this.videoStart = true;
  11419. // callback(true);
  11420. };
  11421. this.getAudioVideo({ audio: true })
  11422. .then((res) => {
  11423. this.captureScreen(_function, true);
  11424. console.log("已点击允许,开启成功");
  11425. })
  11426. .catch((err) => {
  11427. // console.log('浏览器不支持,请更换浏览器')
  11428. // } else {
  11429. this.captureScreen(_function, false);
  11430. console.log("请检查是否存在麦克风");
  11431. });
  11432. },
  11433. /**
  11434. * 停止录制
  11435. */
  11436. stopRecording(callback) {
  11437. this.recorder.stopRecording(() => {
  11438. // this.video.src = this.video.srcObject = null;
  11439. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  11440. const url = URL.createObjectURL(this.recorder.getBlob());
  11441. const a = document.createElement("a"); //this.fileName+
  11442. let videoFile = new File(
  11443. [this.recorder.getBlob()],
  11444. this.courseDetail.title + "录屏.mp4",
  11445. {
  11446. type: "video/mp4",
  11447. }
  11448. );
  11449. let downloadUrl = URL.createObjectURL(videoFile);
  11450. document.body.appendChild(a);
  11451. a.style.display = "none";
  11452. a.href = url;
  11453. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  11454. a.click();
  11455. this.recorder.screen.stop();
  11456. this.recorder.destroy();
  11457. this.recorder = null;
  11458. this.videoStart = false;
  11459. // callback(false);
  11460. });
  11461. },
  11462. //初始化
  11463. captureScreen(callback, type) {
  11464. if (navigator.getDisplayMedia) {
  11465. //录制结束,文件下载
  11466. navigator
  11467. .getDisplayMedia({
  11468. video: true,
  11469. })
  11470. .then((screenStream) => {
  11471. if (type) {
  11472. navigator.mediaDevices
  11473. .getUserMedia({ audio: true })
  11474. .then((mic) => {
  11475. screenStream.addTrack(mic.getTracks()[0]);
  11476. callback(screenStream);
  11477. });
  11478. } else {
  11479. callback(screenStream);
  11480. }
  11481. })
  11482. .catch(function (error) {
  11483. console.log("error", error);
  11484. });
  11485. } else if (navigator.mediaDevices.getDisplayMedia) {
  11486. navigator.mediaDevices
  11487. .getDisplayMedia({
  11488. video: true,
  11489. })
  11490. .then((screenStream) => {
  11491. if (type) {
  11492. navigator.mediaDevices
  11493. .getUserMedia({ audio: true })
  11494. .then((mic) => {
  11495. screenStream.addTrack(mic.getTracks()[0]);
  11496. callback(screenStream);
  11497. });
  11498. } else {
  11499. callback(screenStream);
  11500. }
  11501. })
  11502. .catch(function (error) {
  11503. console.log("error", error);
  11504. });
  11505. } else {
  11506. var error = "getDisplayMedia API are not supported in this browser.";
  11507. console.log("error", error);
  11508. alert(error);
  11509. }
  11510. },
  11511. //流监听
  11512. addStreamStopListener(stream, callback) {
  11513. stream.addEventListener(
  11514. "ended",
  11515. function () {
  11516. callback();
  11517. callback = function () { };
  11518. },
  11519. false
  11520. );
  11521. stream.addEventListener(
  11522. "inactive",
  11523. function () {
  11524. callback();
  11525. callback = function () { };
  11526. },
  11527. false
  11528. );
  11529. stream.getTracks().forEach(function (track) {
  11530. track.addEventListener(
  11531. "ended",
  11532. function () {
  11533. callback();
  11534. callback = function () { };
  11535. },
  11536. false
  11537. );
  11538. track.addEventListener(
  11539. "inactive",
  11540. function () {
  11541. callback();
  11542. callback = function () { };
  11543. },
  11544. false
  11545. );
  11546. });
  11547. },
  11548. updateGroup() {
  11549. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  11550. this.dialogVisibleGroup2 = true;
  11551. },
  11552. updateGroupJson() {
  11553. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  11554. if (
  11555. this.groupStudentUid[this.toolindex][i].length >
  11556. this.groupJson2.number
  11557. ) {
  11558. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  11559. return;
  11560. }
  11561. }
  11562. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  11563. this.islock = this.groupJson.islock == 1 ? true : false;
  11564. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11565. this.taskCount
  11566. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  11567. let params = [
  11568. {
  11569. cid: this.id,
  11570. chapters: JSON.stringify(this.chapInfoList),
  11571. uid: this.userid,
  11572. unitIndex: this.courseType,
  11573. },
  11574. ];
  11575. this.ajax
  11576. .post(this.$store.state.api + "updateWorkNew4", params)
  11577. .then((res) => {
  11578. this.$message.success("设置成功");
  11579. this.getCourseDetail(2);
  11580. this.dialogVisibleGroup2 = false;
  11581. this.groupJson2 = {};
  11582. this.$forceUpdate();
  11583. })
  11584. .catch((err) => {
  11585. this.$message.error("网络不佳");
  11586. console.error(err);
  11587. });
  11588. },
  11589. lockChair() {
  11590. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  11591. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  11592. this.updateGroupJson();
  11593. },
  11594. selectGroup(index) {
  11595. this.getCourseDetail(2, index);
  11596. },
  11597. joinGroup(index) {
  11598. if (this.groupJson.islock == 2) {
  11599. this.$message.error("位置已被锁定,无法加入");
  11600. return;
  11601. }
  11602. if (
  11603. this.groupStudent[this.toolindex][index].length >
  11604. this.groupJson.number ||
  11605. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  11606. ) {
  11607. this.$message.error("位置已满,无法加入");
  11608. return;
  11609. }
  11610. let params = [
  11611. {
  11612. cid: this.id,
  11613. stage: this.courseType,
  11614. task: this.taskCount,
  11615. tool: this.toolindex,
  11616. g: index,
  11617. uid: this.userid,
  11618. },
  11619. ];
  11620. this.ajax
  11621. .post(this.$store.state.api + "joinGroup", params)
  11622. .then((res) => {
  11623. this.$message.success("加入成功");
  11624. this.getCourseDetail(2);
  11625. })
  11626. .catch((err) => {
  11627. this.$message.error("网络不佳");
  11628. console.error(err);
  11629. });
  11630. },
  11631. exitGroup(id) {
  11632. if (this.groupJson.islock == 2) {
  11633. this.$message.error("位置已被锁定,无法退出");
  11634. return;
  11635. }
  11636. let params = [
  11637. {
  11638. gid: id,
  11639. },
  11640. ];
  11641. this.ajax
  11642. .post(this.$store.state.api + "exitGroup", params)
  11643. .then((res) => {
  11644. this.$message.success("退出成功");
  11645. this.getCourseDetail(2);
  11646. })
  11647. .catch((err) => {
  11648. this.$message.error("网络不佳");
  11649. console.error(err);
  11650. });
  11651. },
  11652. groupUpload(index, task, gindex) {
  11653. this.taskCount = task;
  11654. this.toolindex = index;
  11655. this.groupIndex = gindex;
  11656. this.dialogVisibleGroupWork = true;
  11657. },
  11658. updateGroupChair(user) {
  11659. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  11660. el.label = index;
  11661. return index != user.group;
  11662. });
  11663. this.updateGroupUser = user;
  11664. this.dialogVisibleUpdateGroup = true;
  11665. },
  11666. updateChair() {
  11667. if (
  11668. this.groupStudent[this.toolindex][this.checkChair].length >
  11669. this.groupJson.number ||
  11670. this.groupStudent[this.toolindex][this.checkChair].length ==
  11671. this.groupJson.number
  11672. ) {
  11673. this.$message.error("位置已满,无法加入");
  11674. return;
  11675. }
  11676. let params = [
  11677. {
  11678. cid: this.id,
  11679. stage: this.courseType,
  11680. task: this.taskCount,
  11681. tool: this.toolindex,
  11682. g: this.checkChair,
  11683. uid: this.updateGroupUser.userid,
  11684. },
  11685. ];
  11686. this.ajax
  11687. .post(this.$store.state.api + "joinGroup", params)
  11688. .then((res) => {
  11689. this.$message.success("修改成功");
  11690. this.updateGroupUser = {};
  11691. this.checkChair = "";
  11692. this.updateGroupArray = {};
  11693. this.dialogVisibleUpdateGroup = false;
  11694. this.getCourseDetail(2);
  11695. })
  11696. .catch((err) => {
  11697. this.$message.error("网络不佳");
  11698. console.error(err);
  11699. });
  11700. },
  11701. deleteGroupChair(gindex) {
  11702. this.checkDeleteGroup = [];
  11703. this.deleteGroupUser = JSON.parse(
  11704. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  11705. );
  11706. this.deleteGroupArray = this.groupJson.group[gindex];
  11707. this.groupIndex = gindex;
  11708. this.dialogVisibleDeleteGroup = true;
  11709. },
  11710. async deleteChair() {
  11711. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  11712. const gid =
  11713. this.groupStudent[this.toolindex][this.groupIndex][
  11714. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  11715. this.checkDeleteGroup[i]
  11716. )
  11717. ];
  11718. let params = [
  11719. {
  11720. gid: gid.id,
  11721. },
  11722. ];
  11723. var a = await this.deleteChairA(params);
  11724. if (i == this.checkDeleteGroup.length - 1) {
  11725. this.$message.success("退出成功");
  11726. this.dialogVisibleDeleteGroup = false;
  11727. this.deleteGroupUser = [];
  11728. this.deleteGroupArray = {};
  11729. this.groupIndex = "";
  11730. this.checkDeleteGroup = [];
  11731. this.getCourseDetail(2);
  11732. }
  11733. }
  11734. },
  11735. deleteChairA(params) {
  11736. return new Promise((resolve, reject) => {
  11737. this.ajax
  11738. .post(this.$store.state.api + "exitGroup", params)
  11739. .then((res) => {
  11740. resolve(1);
  11741. })
  11742. .catch((err) => {
  11743. this.$message.error("网络不佳");
  11744. console.error(err);
  11745. });
  11746. });
  11747. },
  11748. contract(i) {
  11749. if (this.isCloseList[i].isClose == 0) {
  11750. this.isCloseList[i].isClose = 1;
  11751. } else {
  11752. this.isCloseList[i].isClose = 0;
  11753. }
  11754. this.$forceUpdate();
  11755. },
  11756. },
  11757. directives: {
  11758. // 使用局部注册指令的方式
  11759. resize: {
  11760. // 指令的名称
  11761. bind(el, binding) {
  11762. // el为绑定的元素,binding为绑定给指令的对象
  11763. let width = "",
  11764. height = "";
  11765. function isReize() {
  11766. const style = document.defaultView.getComputedStyle(el);
  11767. if (width !== style.width || height !== style.height) {
  11768. binding.value(); // 关键
  11769. }
  11770. width = style.width;
  11771. height = style.height;
  11772. }
  11773. el.__vueSetInterval__ = setInterval(isReize, 300);
  11774. },
  11775. unbind(el) {
  11776. clearInterval(el.__vueSetInterval__);
  11777. },
  11778. },
  11779. },
  11780. beforeDestroy() {
  11781. window.onresize = null;
  11782. clearInterval(this.timer);
  11783. this.timer = null;
  11784. clearInterval(this.opertimer);
  11785. this.opertimer = null;
  11786. },
  11787. computed: {
  11788. contentConvent() {
  11789. return function (c) {
  11790. return c
  11791. ? c
  11792. .replaceAll(/\r\n/g, "<br/>")
  11793. .replaceAll(/\n/g, "<br/>")
  11794. .replaceAll(/\s/g, " &nbsp")
  11795. : "";
  11796. };
  11797. },
  11798. checkUpload() {
  11799. return function () {
  11800. var studentK = [];
  11801. if (this.plworkFile.length > 0) {
  11802. for (var z = 0; z < this.plworkFile.length; z++) {
  11803. studentK.push(this.plworkFile[z].username);
  11804. }
  11805. studentK = studentK.join(",");
  11806. }
  11807. var a = this.uploadStudentJuri.filter((el) => {
  11808. return studentK.indexOf(el.userid) == -1;
  11809. });
  11810. return a;
  11811. };
  11812. },
  11813. },
  11814. mounted() {
  11815. if (this.screenType == 2) {
  11816. window.parent.postMessage({ allScreen: 4 }, "*");
  11817. } else if (this.screenType == 3) {
  11818. window.parent.postMessage({ allScreen: 5 }, "*");
  11819. } else if (this.screenType == 1) {
  11820. window.parent.postMessage({ allScreen: 6 }, "*");
  11821. }
  11822. this.setOperationTime();
  11823. this.selectEva();
  11824. this.getCourseDetail();
  11825. this.selectCount();
  11826. this.getHomeWork();
  11827. this.contentDialog = true;
  11828. this.setContent2(true);
  11829. if (this.tType == 4) {
  11830. this.pzDialog = true;
  11831. this.selectPz();
  11832. }
  11833. document.scrollingElement.scrollTop = 0;
  11834. window.addEventListener("resize", () => {
  11835. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  11836. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  11837. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  11838. });
  11839. let _this = this;
  11840. setTimeout(() => {
  11841. // _this.vedioTime = [];
  11842. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  11843. // _this.vedioTime[i] = document.getElementsByClassName(
  11844. // "vjs-duration-display"
  11845. // )[i].textContent;
  11846. // }
  11847. }, 1000);
  11848. },
  11849. };
  11850. </script>
  11851. <style scoped>
  11852. @media screen and (max-width: 1280px) {
  11853. /* .courseIndex > div:first-child(2) {
  11854. width: 15% !important;
  11855. } */
  11856. /* .navText {
  11857. width: 120px !important;
  11858. } */
  11859. .evaCss {
  11860. flex-direction: column !important;
  11861. align-items: center !important;
  11862. }
  11863. .dialog_diy1>>>.el-dialog {
  11864. width: 100% !important;
  11865. }
  11866. .rightWidthCss {
  11867. width: 100% !important;
  11868. }
  11869. .dialog_diy3>>>.el-dialog {
  11870. width: 100% !important;
  11871. }
  11872. /* .textTitle >>> .el-form-item__label {
  11873. width: 150px !important;
  11874. } */
  11875. }
  11876. .evaCssMax {
  11877. flex-direction: column !important;
  11878. align-items: center !important;
  11879. }
  11880. .dialog_diy>>>.el-dialog {
  11881. margin-top: 10vh !important;
  11882. }
  11883. .body_student {
  11884. width: 77%;
  11885. height: 100%;
  11886. position: absolute;
  11887. left: 22%;
  11888. top: 0;
  11889. }
  11890. .student_head {
  11891. width: 100%;
  11892. margin: 0 auto;
  11893. padding-bottom: 20px;
  11894. display: flex;
  11895. flex-direction: column;
  11896. flex-wrap: nowrap;
  11897. align-items: flex-start;
  11898. justify-content: flex-start;
  11899. }
  11900. .pb_left {
  11901. width: 20%;
  11902. margin-right: 10px;
  11903. background: rgb(255, 255, 255);
  11904. padding-right: 10px;
  11905. position: fixed;
  11906. height: 100%;
  11907. }
  11908. .wheel>img,
  11909. .project>img,
  11910. .star>img,
  11911. .evaluate>img,
  11912. .up_photo>img,
  11913. .chapter_add>img,
  11914. .deleteWord>img,
  11915. .question>img,
  11916. .homework>img {
  11917. width: 100%;
  11918. height: 100%;
  11919. }
  11920. .upCover>img {
  11921. width: 131px;
  11922. height: 69px;
  11923. object-fit: cover;
  11924. }
  11925. .upCover {
  11926. width: calc(100% / 3.5);
  11927. position: relative;
  11928. margin: 0 15px 10px 0;
  11929. display: flex;
  11930. flex-direction: column;
  11931. flex-wrap: nowrap;
  11932. justify-content: center;
  11933. align-content: center;
  11934. align-items: center;
  11935. height: fit-content;
  11936. }
  11937. .upCover2 {
  11938. width: 100%;
  11939. position: relative;
  11940. margin: 0 15px 10px 0;
  11941. display: flex;
  11942. flex-direction: column;
  11943. flex-wrap: nowrap;
  11944. justify-content: center;
  11945. align-content: center;
  11946. align-items: center;
  11947. }
  11948. .upCover2>img {
  11949. width: 100%;
  11950. height: 90px;
  11951. object-fit: contain;
  11952. }
  11953. .chapter_add {
  11954. width: 120px;
  11955. position: relative;
  11956. text-align: center;
  11957. }
  11958. .isAddThings {
  11959. margin-top: 20px;
  11960. position: relative;
  11961. text-align: center;
  11962. background: #f7f8fa;
  11963. height: 90px;
  11964. width: 90px;
  11965. display: flex;
  11966. flex-direction: column;
  11967. justify-content: center;
  11968. }
  11969. .deleteWord {
  11970. width: 22px;
  11971. height: 22px;
  11972. position: absolute;
  11973. right: -5px;
  11974. top: -5px;
  11975. cursor: pointer;
  11976. }
  11977. .box_course {
  11978. /* width: 60%; */
  11979. width: 81%;
  11980. }
  11981. .wheel {
  11982. width: 100%;
  11983. /* height: 100%; */
  11984. height: 650px;
  11985. }
  11986. .right_box {
  11987. display: flex;
  11988. flex-direction: column;
  11989. margin-left: 30px;
  11990. justify-content: space-around;
  11991. }
  11992. .right_box_title {
  11993. font-size: 23px;
  11994. }
  11995. .people {
  11996. display: flex;
  11997. }
  11998. .student_body {
  11999. width: 100%;
  12000. margin: 0 auto;
  12001. margin-top: 10px;
  12002. padding: 0 0 20px;
  12003. }
  12004. .study_top {
  12005. margin-top: 70px;
  12006. width: 100%;
  12007. /* overflow: auto; */
  12008. height: auto;
  12009. }
  12010. .study_top .checkbox {
  12011. display: flex;
  12012. align-items: center;
  12013. padding: 15px 0 15px 30px;
  12014. flex: 0 0 auto;
  12015. font-weight: bold;
  12016. border-bottom: 1px solid #eee;
  12017. }
  12018. .study_top .check {
  12019. padding-bottom: 5px;
  12020. text-align: center;
  12021. cursor: pointer;
  12022. height: 30px;
  12023. box-sizing: border-box;
  12024. display: flex;
  12025. }
  12026. .study_top .checked {
  12027. border-bottom: 4px solid #3fc6a0;
  12028. padding-bottom: 5px;
  12029. color: #3fc6a0;
  12030. display: flex;
  12031. height: 35px;
  12032. }
  12033. .study_top .checked>div,
  12034. .study_top .check>div {
  12035. margin-right: 5px;
  12036. }
  12037. .videoTop {
  12038. display: flex;
  12039. flex-direction: row;
  12040. justify-content: space-between;
  12041. background: #fff;
  12042. align-items: center;
  12043. width: 95%;
  12044. padding: 20px;
  12045. }
  12046. .upbtn {
  12047. margin: 25px;
  12048. background: #70afdb;
  12049. color: #fff;
  12050. width: 120px;
  12051. text-align: center;
  12052. height: 30px;
  12053. line-height: 30px;
  12054. font-size: 13px;
  12055. border-radius: 5px;
  12056. cursor: pointer;
  12057. }
  12058. .filebox {
  12059. display: flex;
  12060. flex-wrap: wrap;
  12061. flex-direction: column;
  12062. padding: 15px 0 5px;
  12063. }
  12064. .filebox .tooldetail {
  12065. width: 100%;
  12066. margin: 0px 12px;
  12067. background: rgb(247, 247, 247);
  12068. padding: 20px;
  12069. line-height: 30px;
  12070. word-break: break-word;
  12071. font-size: 18px;
  12072. }
  12073. .file {
  12074. display: flex;
  12075. flex-direction: column;
  12076. align-items: center;
  12077. justify-content: center;
  12078. cursor: pointer;
  12079. width: 200px;
  12080. }
  12081. .file div {
  12082. margin-top: 10px;
  12083. width: 150px;
  12084. text-align: center;
  12085. overflow: hidden;
  12086. white-space: nowrap;
  12087. text-overflow: ellipsis;
  12088. }
  12089. .media {
  12090. display: flex;
  12091. flex-direction: column;
  12092. align-items: center;
  12093. justify-content: center;
  12094. margin: 0 20px 20px 0;
  12095. cursor: pointer;
  12096. margin: 12px 0 5px 15px;
  12097. overflow: hidden;
  12098. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  12099. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  12100. box-sizing: border-box;
  12101. }
  12102. .media img {
  12103. height: 90px;
  12104. width: 160px;
  12105. object-fit: cover;
  12106. }
  12107. .media .title {
  12108. padding: 5px;
  12109. text-align: left;
  12110. width: 100%;
  12111. box-sizing: border-box;
  12112. }
  12113. .media .btn {
  12114. width: 100%;
  12115. height: 35px;
  12116. line-height: 35px;
  12117. color: #fff;
  12118. background: #606060;
  12119. text-align: center;
  12120. overflow: hidden;
  12121. white-space: nowrap;
  12122. text-overflow: ellipsis;
  12123. }
  12124. .detail_content_top {
  12125. width: 100%;
  12126. padding: 25px 0 25px 0;
  12127. }
  12128. .detail_title {
  12129. text-align: center;
  12130. font-size: 24px;
  12131. }
  12132. .detail_time {
  12133. font-size: 13px;
  12134. padding: 15px 0 0 40px;
  12135. }
  12136. .detail_content {
  12137. line-height: 2pc;
  12138. width: 90%;
  12139. margin: 0 auto;
  12140. padding-top: 30px;
  12141. text-indent: 30px;
  12142. overflow: auto;
  12143. height: 200px;
  12144. }
  12145. .score_box>>>.el-rate {
  12146. margin-left: 10px;
  12147. }
  12148. .dialog_change>>>.el-dialog {
  12149. border-radius: 5px;
  12150. }
  12151. .dialog_change>>>.el-dialog__header {
  12152. background: #f2f2f2;
  12153. text-align: center;
  12154. }
  12155. .dialog_change>>>.el-dialog__title {
  12156. line-height: 5px;
  12157. }
  12158. .dialog_change>>>.el-dialog__body {
  12159. background: #fff;
  12160. padding: 10px 20px;
  12161. }
  12162. .score_box {
  12163. display: flex;
  12164. align-items: center;
  12165. margin-bottom: 18px;
  12166. margin-top: 20px;
  12167. }
  12168. .up_photo {
  12169. width: 120px;
  12170. cursor: pointer;
  12171. margin-top: 10px;
  12172. }
  12173. .up_photo2 {
  12174. width: 180px;
  12175. box-sizing: border-box;
  12176. min-width: 180px;
  12177. height: 180px;
  12178. max-height: 180px;
  12179. min-height: 180px;
  12180. cursor: pointer;
  12181. display: flex;
  12182. flex-direction: column;
  12183. align-items: center;
  12184. justify-content: center;
  12185. background: rgb(242, 246, 255);
  12186. /* padding: 25px; */
  12187. margin-bottom: 10px;
  12188. }
  12189. .up_photo2 img {
  12190. width: 50%;
  12191. height: auto;
  12192. }
  12193. .up_photo2 span {
  12194. color: #898989;
  12195. }
  12196. .plworkBox {
  12197. display: flex;
  12198. align-items: center;
  12199. margin-top: 10px;
  12200. flex-wrap: wrap;
  12201. }
  12202. .upload_send {
  12203. margin: 30px auto 30px;
  12204. width: 60%;
  12205. background: #169bd6;
  12206. text-align: center;
  12207. height: 35px;
  12208. line-height: 35px;
  12209. color: #fff;
  12210. border-radius: 5px;
  12211. cursor: pointer;
  12212. }
  12213. .marginT {
  12214. margin-top: 20px;
  12215. }
  12216. .cd_content_steps {
  12217. display: flex;
  12218. width: 90%;
  12219. justify-content: space-around;
  12220. border-top: 1px solid #eeeeee;
  12221. }
  12222. .cd_steps_box {
  12223. display: flex;
  12224. justify-content: center;
  12225. align-items: center;
  12226. flex-direction: column;
  12227. cursor: pointer;
  12228. }
  12229. .first {
  12230. display: flex;
  12231. align-items: center;
  12232. margin: 15px 0 20px 0;
  12233. font-size: 20px;
  12234. }
  12235. .first>div:nth-child(2) {
  12236. font-size: 16px !important;
  12237. padding-left: 10px;
  12238. line-height: 26px;
  12239. box-sizing: border-box;
  12240. }
  12241. .blue_box_one {
  12242. text-align: center;
  12243. color: #fff;
  12244. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  12245. border-radius: 7px;
  12246. margin: 10px;
  12247. cursor: pointer;
  12248. width: 95%;
  12249. height: 45px;
  12250. display: flex;
  12251. flex-direction: row;
  12252. justify-content: flex-start;
  12253. align-items: center;
  12254. }
  12255. .blue_box_one>div:nth-child(1) {
  12256. line-height: 30px;
  12257. margin: 0 5px 0 10px;
  12258. width: 30%;
  12259. min-width: 70px;
  12260. border-radius: 4px;
  12261. }
  12262. .blue_box_one>div:nth-child(2) {
  12263. white-space: nowrap;
  12264. text-overflow: ellipsis;
  12265. overflow: hidden;
  12266. word-break: break-all;
  12267. width: 70%;
  12268. text-align: left;
  12269. margin-right: 10px;
  12270. max-width: calc(100% - 85px);
  12271. }
  12272. .blue_box_one>div:nth-child(2):hover {
  12273. overflow: hidden;
  12274. text-overflow: ellipsis;
  12275. white-space: nowrap;
  12276. cursor: pointer;
  12277. }
  12278. .upFile {
  12279. margin: 0 auto;
  12280. width: 120px;
  12281. background: #70afdb;
  12282. color: #fff;
  12283. height: 30px;
  12284. text-align: center;
  12285. line-height: 30px;
  12286. border-radius: 5px;
  12287. font-size: 14px;
  12288. cursor: pointer;
  12289. }
  12290. .courseTitle {
  12291. background: #205cc6;
  12292. width: 85%;
  12293. margin: 10px auto;
  12294. color: #fff;
  12295. border-radius: 5px;
  12296. padding: 10px 10px;
  12297. display: flex;
  12298. flex-direction: row;
  12299. align-items: center;
  12300. justify-content: space-between;
  12301. text-align: center;
  12302. }
  12303. .courseTitle .ctitle {
  12304. font-weight: bold;
  12305. font-size: 20px;
  12306. white-space: nowrap;
  12307. overflow: hidden;
  12308. text-overflow: ellipsis;
  12309. }
  12310. .courseTitle .inviteBox {
  12311. font-size: 14px;
  12312. margin-top: 5px;
  12313. color: #a6cbff;
  12314. }
  12315. .courseTitle>>>.el-tooltip {
  12316. width: 100%;
  12317. white-space: nowrap;
  12318. overflow: hidden;
  12319. text-overflow: ellipsis;
  12320. word-break: break-word;
  12321. }
  12322. .ml {
  12323. margin-left: 20px;
  12324. color: #5b7dba;
  12325. border-left: 3px solid #5b7dba;
  12326. padding-left: 5px;
  12327. font-weight: bold;
  12328. }
  12329. .return {
  12330. width: 2rem;
  12331. height: 2rem;
  12332. cursor: pointer;
  12333. }
  12334. .return>img {
  12335. width: 100%;
  12336. height: 100%;
  12337. }
  12338. .returnBtn {
  12339. background: #499eef;
  12340. width: 65px;
  12341. height: 30px;
  12342. color: #fff;
  12343. text-align: center;
  12344. line-height: 32px;
  12345. margin-right: 20px;
  12346. cursor: pointer;
  12347. border-radius: 5px;
  12348. font-size: 14px;
  12349. }
  12350. .tool {
  12351. display: flex;
  12352. flex-direction: column;
  12353. flex-wrap: nowrap;
  12354. width: 13%;
  12355. margin: 0 30px;
  12356. align-items: center;
  12357. }
  12358. .whiteBIcon {
  12359. width: 150px;
  12360. cursor: pointer;
  12361. }
  12362. .whiteBIcon>img {
  12363. width: 100%;
  12364. height: 100%;
  12365. }
  12366. .mask {
  12367. background-color: rgba(0, 0, 0, 0);
  12368. position: fixed;
  12369. top: 0;
  12370. left: 0;
  12371. width: 100%;
  12372. height: 100%;
  12373. z-index: 20000;
  12374. display: flex;
  12375. align-items: center;
  12376. justify-content: center;
  12377. }
  12378. .progressBox {
  12379. width: 500px;
  12380. height: 180px;
  12381. background: #fff;
  12382. border-radius: 10px;
  12383. box-shadow: 0 0 6px 1px #bfbfbf;
  12384. display: flex;
  12385. align-items: center;
  12386. justify-content: center;
  12387. flex-direction: column;
  12388. position: relative;
  12389. color: #6c6c6c;
  12390. }
  12391. .progressBox>>>.el-progress-bar__outer {
  12392. background-color: #d1dfff !important;
  12393. }
  12394. .progressBox .lbox {
  12395. height: 50px;
  12396. font-size: 19px;
  12397. display: flex;
  12398. align-items: center;
  12399. color: #747474;
  12400. }
  12401. .progressBox .lbox img {
  12402. width: 40px;
  12403. margin-right: 20px;
  12404. }
  12405. .closeCss {
  12406. position: absolute;
  12407. top: 8px;
  12408. right: 8px;
  12409. cursor: pointer;
  12410. width: 20px;
  12411. height: 20px;
  12412. }
  12413. .closeCss>img {
  12414. width: 100%;
  12415. height: 100%;
  12416. }
  12417. .uploadVedio {
  12418. display: flex;
  12419. flex-direction: column;
  12420. flex-wrap: nowrap;
  12421. justify-content: center;
  12422. align-items: center;
  12423. margin: 0 15px 10px 0;
  12424. }
  12425. .uploadVedio>img {
  12426. width: 30px;
  12427. height: 30px;
  12428. }
  12429. .uploadVedio>span {
  12430. white-space: nowrap;
  12431. overflow: hidden;
  12432. text-overflow: ellipsis;
  12433. width: 75px;
  12434. margin-top: 7px;
  12435. }
  12436. .picName {
  12437. white-space: nowrap;
  12438. overflow: hidden;
  12439. text-overflow: ellipsis;
  12440. width: 75px;
  12441. margin-top: 7px;
  12442. }
  12443. .new_top {
  12444. display: flex;
  12445. background: #fff;
  12446. flex-direction: row;
  12447. justify-content: flex-start;
  12448. align-items: center;
  12449. height: 60px;
  12450. position: relative;
  12451. }
  12452. .before {
  12453. position: absolute;
  12454. background: #c3dad4;
  12455. width: 6px;
  12456. height: 100%;
  12457. }
  12458. .courseIndex {
  12459. display: flex;
  12460. flex-direction: row;
  12461. align-items: center;
  12462. width: calc(100% - 600px);
  12463. }
  12464. .courseIndex>div:nth-child(1) {
  12465. margin: 0 20px;
  12466. padding-left: 5px;
  12467. font-size: 24px;
  12468. min-width: 100px;
  12469. font-weight: bold;
  12470. border-left: 4px solid #3363b9;
  12471. height: 35px;
  12472. text-align: center;
  12473. line-height: 35px;
  12474. }
  12475. .courseIndex>div:nth-child(2) {
  12476. font-size: 23px;
  12477. /* width: 300px; */
  12478. max-width: calc(100% - 180px);
  12479. white-space: nowrap;
  12480. overflow: hidden;
  12481. text-overflow: ellipsis;
  12482. }
  12483. .courseIndex>div:nth-child(3) {
  12484. border-bottom: 1px solid #d7d7d7;
  12485. padding-bottom: 5px;
  12486. background: #49a0f0;
  12487. width: 55px;
  12488. min-width: 55px;
  12489. border-radius: 5px;
  12490. color: #fff;
  12491. text-align: center;
  12492. height: 20px;
  12493. line-height: 26px;
  12494. font-size: 14px;
  12495. margin: 0 0 0 10px;
  12496. }
  12497. .course_text {
  12498. padding: 20px 0 0 15px;
  12499. text-indent: 30px;
  12500. width: 80%;
  12501. min-height: 20px;
  12502. }
  12503. .vedioList {
  12504. background: #f2f2f2;
  12505. border: 1px solid #ececec;
  12506. /* width: 38.8%; */
  12507. width: 100%;
  12508. height: 445px;
  12509. border-radius: 10px;
  12510. overflow: hidden;
  12511. }
  12512. .vedioNav {
  12513. margin: 10px 0 0 15px;
  12514. border-bottom: 1px solid #d7d7d7;
  12515. padding-bottom: 5px;
  12516. background: #96d1ff;
  12517. width: 55px;
  12518. min-width: 55px;
  12519. border-radius: 5px;
  12520. color: #fff;
  12521. text-align: center;
  12522. height: 20px;
  12523. line-height: 26px;
  12524. font-size: 14px;
  12525. }
  12526. .queTop {
  12527. display: flex;
  12528. padding: 20px 0 20px 30px;
  12529. width: 100%;
  12530. flex-direction: row;
  12531. justify-content: flex-start;
  12532. align-items: center;
  12533. border-bottom: 1px solid #eeeeee;
  12534. box-sizing: border-box;
  12535. }
  12536. .question {
  12537. width: 40px;
  12538. margin-right: 10px;
  12539. margin-top: 7px;
  12540. }
  12541. .queTitle {
  12542. margin-left: 5px;
  12543. font-size: 25px;
  12544. display: flex;
  12545. align-items: center;
  12546. }
  12547. .addEditor {
  12548. width: 100px;
  12549. height: 30px;
  12550. background: #42cda6;
  12551. color: #fff;
  12552. border-radius: 5px;
  12553. text-align: center;
  12554. line-height: 30px;
  12555. box-shadow: 1px 3px 6px 1px #bfbfbf;
  12556. cursor: pointer;
  12557. }
  12558. .vedioName {
  12559. /* text-overflow: ellipsis;
  12560. top: 8px;
  12561. font-size: 14px;
  12562. overflow: hidden;
  12563. width: 100%;
  12564. word-break: break-all;
  12565. white-space: nowrap; */
  12566. cursor: pointer;
  12567. margin: 0px 0px 10px 5px;
  12568. white-space: nowrap;
  12569. overflow: hidden;
  12570. text-overflow: ellipsis;
  12571. width: 100%;
  12572. }
  12573. .vedioTime {
  12574. width: 35px;
  12575. position: absolute;
  12576. color: #fff;
  12577. bottom: 0px;
  12578. right: 0px;
  12579. text-align: center;
  12580. background: #46411f;
  12581. height: 20px;
  12582. font-size: 14px;
  12583. line-height: 20px;
  12584. }
  12585. .homework {
  12586. width: 200px;
  12587. display: flex;
  12588. flex-direction: column;
  12589. flex-wrap: nowrap;
  12590. align-items: center;
  12591. cursor: pointer;
  12592. }
  12593. .homebox {
  12594. display: flex;
  12595. flex-wrap: wrap;
  12596. flex-direction: row;
  12597. justify-content: flex-start;
  12598. align-items: center;
  12599. padding: 15px 0;
  12600. }
  12601. .isChooseActive {
  12602. color: #3e88f4;
  12603. border-bottom: 2px solid #2f80f3;
  12604. }
  12605. .chooseWho {
  12606. display: flex;
  12607. width: 100%;
  12608. flex-direction: row;
  12609. flex-wrap: nowrap;
  12610. justify-content: flex-start;
  12611. padding-bottom: 10px;
  12612. }
  12613. .chooseWho>div {
  12614. cursor: pointer;
  12615. padding-bottom: 10px;
  12616. margin: 0 30px;
  12617. }
  12618. .addPoint>div>img {
  12619. cursor: pointer;
  12620. margin: 0 10px;
  12621. width: 85px;
  12622. border-radius: 15px;
  12623. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  12624. }
  12625. .addPoint>div {
  12626. display: flex;
  12627. flex-direction: column;
  12628. flex-wrap: nowrap;
  12629. align-items: center;
  12630. }
  12631. .isBorder>div {
  12632. margin: 0 0 10px 0;
  12633. align-items: flex-start !important;
  12634. }
  12635. .noiframeBox {
  12636. display: flex;
  12637. flex-wrap: wrap;
  12638. }
  12639. .iframeBox iframe {
  12640. width: 100%;
  12641. height: 800px;
  12642. border: none;
  12643. margin-bottom: 20px;
  12644. border: 1px solid #ccc;
  12645. }
  12646. .upload_toolBtn {
  12647. background: #6b92c9;
  12648. color: #fff;
  12649. width: 110px;
  12650. text-align: center;
  12651. height: 35px;
  12652. line-height: 35px;
  12653. font-size: 14px;
  12654. border-radius: 5px;
  12655. cursor: pointer;
  12656. position: absolute;
  12657. right: 10px;
  12658. bottom: 0;
  12659. }
  12660. .binfo_input,
  12661. .pj {
  12662. font: inherit;
  12663. color: currentColor;
  12664. width: 100%;
  12665. margin: 0;
  12666. padding: 15px 14px;
  12667. display: block;
  12668. min-width: 0;
  12669. outline: none;
  12670. box-sizing: content-box;
  12671. background: none;
  12672. -webkit-tap-highlight-color: transparent;
  12673. border: 1px solid rgba(0, 0, 0, 0.23);
  12674. border-radius: 4px;
  12675. box-sizing: border-box;
  12676. resize: none;
  12677. }
  12678. .binfo_input:focus-visible {
  12679. border: 1px solid rgba(61, 103, 188);
  12680. }
  12681. .dialog_diy>>>.el-dialog__header,
  12682. .dialog_diy1>>>.el-dialog__header {
  12683. background: #454545 !important;
  12684. padding: 15px 20px;
  12685. }
  12686. .dialog_diy>>>.el-dialog__title,
  12687. .dialog_diy1>>>.el-dialog__title {
  12688. color: #fff;
  12689. }
  12690. .dialog_diy>>>.el-dialog__headerbtn,
  12691. .dialog_diy1>>>.el-dialog__headerbtn {
  12692. top: 19px;
  12693. }
  12694. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  12695. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  12696. color: #fff;
  12697. }
  12698. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  12699. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  12700. color: #fff;
  12701. }
  12702. .dialog_diy1>>>.el-dialog__body {
  12703. padding: 0;
  12704. }
  12705. .dialog_diy>>>.el-dialog__body,
  12706. .dialog_diy>>>.el-dialog__footer,
  12707. .dialog_diy1>>>.el-dialog__footer {
  12708. background: #fafafa;
  12709. }
  12710. .a_addBox {
  12711. margin: 10px 0;
  12712. background: #fff;
  12713. padding: 15px;
  12714. }
  12715. .a_add_box {
  12716. border-bottom: 2px solid #eee;
  12717. padding-bottom: 10px;
  12718. }
  12719. .a_add_head {
  12720. display: flex;
  12721. align-items: flex-start;
  12722. /* justify-content: space-between; */
  12723. flex-direction: column;
  12724. /* flex-direction: row; */
  12725. margin: 10px 0 20px 0;
  12726. font-size: 18px;
  12727. width: 100%;
  12728. }
  12729. .a_add_head .a_add_head_input {
  12730. width: 300px;
  12731. }
  12732. .a_add_head .a_add_head_div {
  12733. display: flex;
  12734. align-items: center;
  12735. justify-content: space-between;
  12736. }
  12737. .a_add_body {
  12738. display: flex;
  12739. align-items: center;
  12740. }
  12741. .a_add_input {
  12742. display: flex;
  12743. align-items: center;
  12744. flex-wrap: wrap;
  12745. }
  12746. .a_add_input>>>el-radio-group {
  12747. margin: 10px 0;
  12748. }
  12749. .a_add_input>>>.el-radio,
  12750. .a_add_input>>>.el-checkbox {
  12751. margin-bottom: 10px;
  12752. display: flex;
  12753. flex-direction: row;
  12754. flex-wrap: nowrap;
  12755. align-items: center;
  12756. }
  12757. .redioStyle>>>.el-radio__label {
  12758. font-size: 18px;
  12759. }
  12760. .redioStyle>>>.el-checkbox__label {
  12761. font-size: 18px;
  12762. }
  12763. .toolHeng2 {
  12764. width: 100%;
  12765. }
  12766. .toolHeng {
  12767. display: flex;
  12768. flex-direction: row;
  12769. flex-wrap: wrap;
  12770. justify-content: flex-start;
  12771. align-items: center;
  12772. width: 100%;
  12773. }
  12774. .toolHeng>div {
  12775. padding-left: 20px;
  12776. }
  12777. .isWidth {
  12778. width: 20%;
  12779. }
  12780. .textTitle {
  12781. display: flex;
  12782. flex-direction: row;
  12783. flex-wrap: nowrap;
  12784. align-items: center;
  12785. width: 95%;
  12786. }
  12787. .textTitle>>>.el-form-item__label {
  12788. font-size: 22px;
  12789. color: #918f8f;
  12790. width: 100px;
  12791. }
  12792. .textTitle>>>.el-form-item__content {
  12793. width: calc(100% - 100px);
  12794. }
  12795. .textCss>>>.el-dialog {
  12796. width: 800px !important;
  12797. height: 400px;
  12798. background: #fafafa;
  12799. }
  12800. .textCss>>>.el-dialog__body {
  12801. margin: 55px 8% 0 8%;
  12802. padding: 0 !important;
  12803. }
  12804. .textCss>>>.el-dialog__footer {
  12805. padding-top: 38px;
  12806. }
  12807. .toolsCss>>>.el-dialog__body {
  12808. padding: 20px;
  12809. }
  12810. .lineCss>>>.el-dialog__body {
  12811. display: flex;
  12812. flex-direction: row;
  12813. align-items: center;
  12814. justify-content: center;
  12815. }
  12816. .newNav {
  12817. display: flex;
  12818. flex-direction: row;
  12819. align-items: baseline;
  12820. justify-content: flex-start;
  12821. }
  12822. .navText {
  12823. cursor: pointer;
  12824. margin: 0px 0px 10px 5px;
  12825. white-space: nowrap;
  12826. overflow: hidden;
  12827. text-overflow: ellipsis;
  12828. /* width: 300px; */
  12829. width: 100%;
  12830. }
  12831. .noVedio {
  12832. display: flex;
  12833. flex-direction: row;
  12834. justify-content: center;
  12835. align-content: center;
  12836. }
  12837. .noNavText {
  12838. cursor: pointer;
  12839. margin: 0px 0px 10px 5px;
  12840. width: 112px;
  12841. }
  12842. .listNoVedio {
  12843. margin: 0 0 0 30px;
  12844. width: 97%;
  12845. }
  12846. .video-player>>>.video-js {
  12847. height: 100%;
  12848. }
  12849. .hangVedioList {
  12850. width: 90% !important;
  12851. height: 150px !important;
  12852. margin: 20px 0 0 30px;
  12853. }
  12854. .hangVedio {
  12855. width: 100%;
  12856. height: 170px !important;
  12857. align-items: flex-start !important;
  12858. }
  12859. .hangHand {
  12860. height: 150px !important;
  12861. }
  12862. .twoChild {
  12863. width: 95%;
  12864. margin: 10px;
  12865. border-radius: 5px;
  12866. background: #f2f2f2;
  12867. display: flex;
  12868. flex-direction: column;
  12869. flex-wrap: nowrap;
  12870. justify-content: flex-start;
  12871. align-items: flex-start;
  12872. transition: all 0.5s;
  12873. overflow: hidden;
  12874. height: 0;
  12875. background: #e7f3ff;
  12876. }
  12877. .twoChild>div:nth-child(1) {
  12878. margin-top: 5px;
  12879. }
  12880. .navChild {
  12881. width: 100%;
  12882. cursor: pointer;
  12883. margin-bottom: 10px;
  12884. position: relative;
  12885. }
  12886. .navChild img {
  12887. position: absolute;
  12888. right: 11px;
  12889. width: 15px;
  12890. top: 50%;
  12891. transform: translateY(-50%);
  12892. }
  12893. .navActive {
  12894. height: auto;
  12895. }
  12896. .navTask {
  12897. display: flex;
  12898. flex-direction: row;
  12899. flex-wrap: nowrap;
  12900. align-items: center;
  12901. align-content: flex-start;
  12902. height: 40px;
  12903. justify-content: flex-start;
  12904. padding: 0 10px;
  12905. width: 100%;
  12906. box-sizing: border-box;
  12907. }
  12908. .navTaskname {
  12909. white-space: nowrap;
  12910. text-overflow: ellipsis;
  12911. overflow: hidden;
  12912. word-break: break-all;
  12913. padding-left: 5px;
  12914. }
  12915. .openTaskActive {
  12916. color: #4386e6;
  12917. }
  12918. .iframeName {
  12919. margin: 5px 0;
  12920. border-left: 4px solid #41c4a4;
  12921. padding-left: 4px;
  12922. }
  12923. .toolTitle {
  12924. margin: 0px 0px 20px;
  12925. font-size: 20px;
  12926. font-weight: 500;
  12927. border-left: 4px solid #41c4a4;
  12928. padding-left: 4px;
  12929. }
  12930. .cru_selectBox {
  12931. overflow: auto;
  12932. width: 96%;
  12933. margin: 0 auto;
  12934. height: calc(100% - 40px - 21px - 20px);
  12935. }
  12936. .cru_selectBox::-webkit-scrollbar,
  12937. .study_top::-webkit-scrollbar,
  12938. .textContent::-webkit-scrollbar {
  12939. /*滚动条整体样式*/
  12940. width: 6px;
  12941. /*高宽分别对应横竖滚动条的尺寸*/
  12942. height: 6px;
  12943. }
  12944. /*定义滚动条轨道 内阴影+圆角*/
  12945. .cru_selectBox::-webkit-scrollbar-track,
  12946. .study_top::-webkit-scrollbar-track,
  12947. .textContent::-webkit-scrollbar {
  12948. border-radius: 10px;
  12949. background-color: #b8bdc9;
  12950. }
  12951. /*定义滑块 内阴影+圆角*/
  12952. .cru_selectBox::-webkit-scrollbar-thumb,
  12953. .study_top::-webkit-scrollbar-thumb,
  12954. .textContent::-webkit-scrollbar-thumb {
  12955. border-radius: 10px;
  12956. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  12957. background-color: #2c5ab3;
  12958. }
  12959. .vedioBox {
  12960. border-radius: 20px;
  12961. background: #fff;
  12962. margin-bottom: 10px;
  12963. }
  12964. .taskBox {
  12965. margin: 15px auto 20px;
  12966. background: #f7f7f7;
  12967. width: 97%;
  12968. border-radius: 10px;
  12969. }
  12970. .vedioTaskBox {
  12971. width: 100%;
  12972. display: flex;
  12973. flex-direction: row;
  12974. flex-wrap: nowrap;
  12975. align-items: flex-start;
  12976. position: relative;
  12977. }
  12978. .toolBox {
  12979. padding: 20px 0 0 0;
  12980. display: flex;
  12981. }
  12982. .btnAll {
  12983. position: absolute;
  12984. right: 0;
  12985. display: flex;
  12986. flex-direction: row;
  12987. flex-wrap: nowrap;
  12988. align-items: center;
  12989. }
  12990. .vedioTimeBox {
  12991. display: flex;
  12992. flex-direction: row;
  12993. align-items: center;
  12994. flex-wrap: nowrap;
  12995. position: relative;
  12996. }
  12997. .navBox {
  12998. background: #fff;
  12999. height: calc(100% - 40px);
  13000. padding: 5px 1px 0;
  13001. overflow-y: auto;
  13002. overflow-x: hidden;
  13003. }
  13004. .worksBox {
  13005. padding: 5px 0 0 10px;
  13006. border-bottom: 1px solid #eeeeee;
  13007. }
  13008. .worksBTitle {
  13009. font-size: 20px;
  13010. padding-bottom: 15px;
  13011. border-bottom: 1px solid #eeeeee;
  13012. display: flex;
  13013. align-items: center;
  13014. }
  13015. .greenBox {
  13016. width: 5px;
  13017. height: 30px;
  13018. background: #63b6fa;
  13019. margin-right: 5px;
  13020. }
  13021. .worksDetailBox {
  13022. display: flex;
  13023. width: 100%;
  13024. flex-direction: row;
  13025. flex-wrap: wrap;
  13026. align-items: flex-end;
  13027. justify-content: flex-start;
  13028. padding: 15px 0;
  13029. }
  13030. .works {
  13031. display: flex;
  13032. flex-direction: column;
  13033. flex-wrap: nowrap;
  13034. align-items: flex-start;
  13035. justify-content: flex-start;
  13036. align-content: center;
  13037. max-width: 240px;
  13038. width: calc(100% / 3 - 10px);
  13039. height: auto;
  13040. margin-right: 10px;
  13041. margin-bottom: 10px;
  13042. overflow: hidden;
  13043. height: 140px;
  13044. box-shadow: 0 0 6px 1px #dfdada;
  13045. border-radius: 15px;
  13046. }
  13047. .workImg {
  13048. width: 100%;
  13049. /* height: calc(100% - 40px); */
  13050. height: 105px;
  13051. position: relative;
  13052. }
  13053. .workImg>img {
  13054. width: 100%;
  13055. height: 100%;
  13056. object-fit: contain;
  13057. cursor: pointer;
  13058. }
  13059. .worksName {
  13060. height: 40px;
  13061. line-height: 40px;
  13062. display: flex;
  13063. width: 100%;
  13064. flex-direction: row;
  13065. flex-wrap: nowrap;
  13066. justify-content: space-between;
  13067. align-items: center;
  13068. margin: 0 0 0 10px;
  13069. }
  13070. .worksName>div:nth-child(1) {
  13071. width: 110px;
  13072. white-space: nowrap;
  13073. overflow: hidden;
  13074. text-overflow: ellipsis;
  13075. }
  13076. .worksName>div:nth-child(2) {
  13077. color: #b7b4b5;
  13078. }
  13079. .noWorksS {
  13080. padding: 15px 0;
  13081. display: flex;
  13082. flex-direction: row;
  13083. flex-wrap: wrap;
  13084. align-items: center;
  13085. justify-content: flex-start;
  13086. }
  13087. .noWorksName,
  13088. .isWorksName {
  13089. background: #7cbcf1;
  13090. color: #fff;
  13091. width: 90px;
  13092. height: 25px;
  13093. text-align: center;
  13094. line-height: 25px;
  13095. border-radius: 5px;
  13096. margin: 10px 15px 10px 0;
  13097. white-space: nowrap;
  13098. overflow: hidden;
  13099. padding: 5px;
  13100. text-overflow: ellipsis;
  13101. cursor: pointer;
  13102. }
  13103. .isWorksName {
  13104. background: #46a1eb !important;
  13105. width: 100px;
  13106. height: 40px;
  13107. line-height: 40px;
  13108. position: relative;
  13109. }
  13110. .noWorksName:hover {
  13111. background: #46a1eb !important;
  13112. }
  13113. .title {
  13114. background: #1e5cc9;
  13115. /* width: 98%; */
  13116. height: 45px;
  13117. color: #fff;
  13118. line-height: 45px;
  13119. padding-left: 20px;
  13120. box-sizing: border-box;
  13121. }
  13122. .textBox {
  13123. font-size: 20px;
  13124. width: 90%;
  13125. display: flex;
  13126. flex-direction: column;
  13127. align-items: center;
  13128. margin: 20px auto 0;
  13129. max-height: 500px;
  13130. overflow: auto;
  13131. }
  13132. .textContent {
  13133. font-size: 18px;
  13134. width: 95%;
  13135. max-width: 95%;
  13136. }
  13137. .answerBg {
  13138. background: url("../assets/icon/answerBgNew.png") no-repeat;
  13139. background-size: 100% 100%;
  13140. width: 100%;
  13141. height: 100%;
  13142. color: #fff;
  13143. text-align: center;
  13144. display: flex;
  13145. flex-direction: column;
  13146. flex-wrap: nowrap;
  13147. align-items: center;
  13148. position: relative;
  13149. justify-content: center;
  13150. }
  13151. .answerBg>div:nth-child(1) {
  13152. /* font-size: 22px;
  13153. padding: 25px 0 10px; */
  13154. }
  13155. .answerContent {
  13156. width: 215px;
  13157. max-height: 60px;
  13158. word-break: break-all;
  13159. text-align: center;
  13160. /* white-space: nowrap; */
  13161. overflow: hidden;
  13162. text-overflow: ellipsis;
  13163. /* padding: 23px 0 0; */
  13164. -webkit-line-clamp: 3;
  13165. -webkit-box-orient: vertical;
  13166. display: -webkit-box;
  13167. font-size: 15px;
  13168. cursor: pointer;
  13169. }
  13170. .elist_input_box {
  13171. display: flex;
  13172. align-items: flex-start;
  13173. flex-wrap: nowrap;
  13174. padding: 10px 0 15px 30px;
  13175. flex-direction: column;
  13176. }
  13177. .elist_input {
  13178. /* width: 40%; */
  13179. width: 100%;
  13180. }
  13181. .elist_input .elist_input_box input {
  13182. font: inherit;
  13183. color: currentColor;
  13184. width: 200px;
  13185. padding: 8px 14px;
  13186. display: block;
  13187. min-width: 0;
  13188. outline: none;
  13189. border: 1px solid rgba(0, 0, 0, 0.23);
  13190. border-radius: 4px;
  13191. box-sizing: border-box;
  13192. background: #fff;
  13193. margin: 0 20px 0 0;
  13194. }
  13195. .elist_input .elist_input_box span {
  13196. height: 36px;
  13197. line-height: 36px;
  13198. color: rgb(82, 82, 82);
  13199. }
  13200. .elist_input .elist_input_box .remove {
  13201. height: 20px;
  13202. width: 20px;
  13203. background-size: 100% 100%;
  13204. background-position: unset;
  13205. margin-left: 5px;
  13206. }
  13207. .elist_input_box>>>.el-rate {
  13208. display: flex;
  13209. height: 36px;
  13210. align-items: center;
  13211. }
  13212. .elist_input_box .elist_inptu_text {
  13213. min-height: 50px;
  13214. /* width: 500px;
  13215. max-height: 150px; */
  13216. width: 100%;
  13217. line-height: 50px;
  13218. color: rgb(82, 82, 82);
  13219. overflow: auto;
  13220. text-indent: 5px;
  13221. background: #f7f6f9;
  13222. border-radius: 10px;
  13223. }
  13224. .elist_input_box .elist_inptu_text input {
  13225. width: 500px;
  13226. }
  13227. .elist_input_box>>>.el-rate__icon {
  13228. font-size: 24px;
  13229. }
  13230. .isClick {
  13231. background: #4d9def;
  13232. }
  13233. .bzBox {
  13234. display: flex;
  13235. flex-direction: row;
  13236. align-items: center;
  13237. }
  13238. .bzBox>div:nth-child(1) {
  13239. width: 4px;
  13240. height: 40px;
  13241. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  13242. }
  13243. .bzBox>div:nth-child(2) {
  13244. font-size: 23px;
  13245. font-weight: bold;
  13246. padding: 0px 0px 0 10px;
  13247. }
  13248. .navTitile {
  13249. padding: 0 0px 0 15px;
  13250. color: #fff;
  13251. height: 40px;
  13252. line-height: 40px;
  13253. }
  13254. .isTypeOne {
  13255. width: 240px;
  13256. height: 170px;
  13257. /* border: 1px solid #f8f8f8; */
  13258. border-radius: 10px;
  13259. box-shadow: 0 0 6px 1px #dfdada;
  13260. }
  13261. .e_add_top {
  13262. display: flex;
  13263. justify-content: space-between;
  13264. padding: 20px 20px 0 20px;
  13265. border-radius: 3px;
  13266. background: #fff;
  13267. }
  13268. .e_add_title2 {
  13269. display: flex;
  13270. align-items: center;
  13271. }
  13272. .e_add_title2 span {
  13273. width: 40px;
  13274. }
  13275. .e_add_title {
  13276. display: flex;
  13277. align-items: center;
  13278. color: #b8b8b8;
  13279. font-size: 18px;
  13280. position: relative;
  13281. height: 40px;
  13282. }
  13283. .e_add_title span {
  13284. margin-right: 10px;
  13285. }
  13286. .e_add_title .el_input {
  13287. width: 300px;
  13288. }
  13289. .e_add_title>>>.el-input__inner {
  13290. width: 400px;
  13291. }
  13292. .e_add_btn {}
  13293. .e_add_content {
  13294. display: flex;
  13295. width: 100%;
  13296. max-width: 650px;
  13297. height: 550px;
  13298. }
  13299. .e_add_list {
  13300. background: #fff;
  13301. height: 500px;
  13302. width: 210px;
  13303. position: relative;
  13304. margin: 15px 5px 0 0;
  13305. flex-shrink: 0;
  13306. display: flex;
  13307. flex-direction: column;
  13308. }
  13309. .e_add_list_title {
  13310. font-size: 20px;
  13311. width: 100%;
  13312. box-sizing: border-box;
  13313. padding: 15px 40px;
  13314. text-align: center;
  13315. border-bottom: 1px solid #eaeaea;
  13316. position: relative;
  13317. display: flex;
  13318. align-items: center;
  13319. justify-content: center;
  13320. height: 57px;
  13321. background: #f6f6f6;
  13322. }
  13323. .e_add_list_title span {
  13324. overflow: hidden;
  13325. white-space: nowrap;
  13326. text-overflow: ellipsis;
  13327. }
  13328. .e_add_list_title img {
  13329. position: absolute;
  13330. right: 15px;
  13331. width: 25px;
  13332. cursor: pointer;
  13333. top: 50%;
  13334. transform: translateY(-50%);
  13335. }
  13336. .e_add_list_body {
  13337. height: calc(100% - 187px);
  13338. overflow: auto;
  13339. }
  13340. .e_add_list_child {
  13341. width: 100%;
  13342. display: flex;
  13343. align-items: center;
  13344. justify-content: center;
  13345. position: relative;
  13346. box-sizing: border-box;
  13347. padding: 15px 40px;
  13348. text-align: center;
  13349. }
  13350. .e_add_list_child span {
  13351. overflow: hidden;
  13352. white-space: nowrap;
  13353. text-overflow: ellipsis;
  13354. cursor: pointer;
  13355. }
  13356. .e_add_list_child img {
  13357. position: absolute;
  13358. right: 10px;
  13359. width: 21px;
  13360. cursor: pointer;
  13361. top: 50%;
  13362. transform: translateY(-50%);
  13363. }
  13364. .e_add_list_child+.e_add_list_child {
  13365. border-top: 1px solid #eaeaea;
  13366. }
  13367. .e_add_list_child .active {
  13368. color: #409eff;
  13369. }
  13370. .e_add_list_btn {
  13371. position: absolute;
  13372. bottom: 0;
  13373. height: 50px;
  13374. background: rgb(120, 120, 254);
  13375. width: 100%;
  13376. color: #fff;
  13377. font-size: 16px;
  13378. text-align: center;
  13379. line-height: 50px;
  13380. cursor: pointer;
  13381. }
  13382. .e_add_list_detail {
  13383. position: absolute;
  13384. bottom: 0;
  13385. height: 130px;
  13386. background: rgb(120, 120, 254);
  13387. width: 100%;
  13388. color: #fff;
  13389. font-size: 16px;
  13390. display: flex;
  13391. align-items: center;
  13392. justify-content: center;
  13393. }
  13394. .e_add_list_detail textarea {
  13395. height: 90%;
  13396. width: 95%;
  13397. border: none;
  13398. resize: none;
  13399. outline: none;
  13400. padding: 5px;
  13401. box-sizing: border-box;
  13402. }
  13403. .e_add_list_pbox {
  13404. width: 100%;
  13405. max-width: 650px;
  13406. /* height: 600px; */
  13407. }
  13408. .e_add_list_pbox_title {
  13409. height: 50px;
  13410. background: #fff;
  13411. display: flex;
  13412. align-items: center;
  13413. width: 100%;
  13414. box-sizing: border-box;
  13415. padding: 0 20px;
  13416. }
  13417. .type_title {
  13418. font-size: 18px;
  13419. font-weight: 700;
  13420. }
  13421. .type_content {
  13422. font-size: 16px;
  13423. margin-left: 30px;
  13424. }
  13425. .type_content span+span {
  13426. margin-left: 20px;
  13427. }
  13428. .type_content span {
  13429. cursor: pointer;
  13430. padding-bottom: 5px;
  13431. box-sizing: border-box;
  13432. }
  13433. .type_content .active {
  13434. color: #409eff;
  13435. border-bottom: 2px solid #409eff;
  13436. }
  13437. .e_add_list_pbox_content {
  13438. height: calc(100% - 50px);
  13439. display: flex;
  13440. align-items: center;
  13441. width: 100%;
  13442. background: #fff;
  13443. }
  13444. .evaCss {
  13445. display: flex;
  13446. flex-direction: row;
  13447. flex-wrap: nowrap;
  13448. align-items: flex-start;
  13449. }
  13450. .cru_line {
  13451. position: absolute;
  13452. bottom: 0px;
  13453. transition: all 0.5s;
  13454. left: 0px;
  13455. width: 125px;
  13456. margin-left: -25px;
  13457. }
  13458. .isNoMessage {
  13459. width: 20%;
  13460. margin: 25% auto 0;
  13461. }
  13462. .isNoMessage>img {
  13463. width: 100%;
  13464. height: 100%;
  13465. }
  13466. .fullStyle>>>.el-dialog__body {
  13467. height: 100% !important;
  13468. }
  13469. .fullStyle>>>.el-dialog,
  13470. .fullStyle {
  13471. width: 100% !important;
  13472. max-width: 100% !important;
  13473. height: 100% !important;
  13474. margin: 0 !important;
  13475. }
  13476. .full_diy>>>.el-dialog {
  13477. margin: 0 !important;
  13478. height: 100%;
  13479. padding: 4px;
  13480. }
  13481. .full_diy>>>.el-dialog__body {
  13482. height: calc(100% - 100px);
  13483. }
  13484. .full_diy2>>>.el-dialog__body {
  13485. height: calc(100% - 50px);
  13486. padding: 0;
  13487. }
  13488. .switchCss {
  13489. /* width: 100%; */
  13490. display: flex;
  13491. flex-direction: row;
  13492. flex-wrap: nowrap;
  13493. align-items: center;
  13494. /* justify-content: center; */
  13495. }
  13496. .isClickNav {
  13497. color: #499eef;
  13498. }
  13499. .commentImg {
  13500. width: 25px;
  13501. height: 25px;
  13502. cursor: pointer;
  13503. }
  13504. .commentImg>img {
  13505. width: 100%;
  13506. height: 100%;
  13507. }
  13508. .comment {
  13509. background: #f9f9f9;
  13510. border-radius: 0 0 15px 15px;
  13511. display: flex;
  13512. flex-direction: row;
  13513. flex-wrap: nowrap;
  13514. align-items: center;
  13515. justify-content: flex-end;
  13516. height: 35px;
  13517. }
  13518. .commentList {
  13519. display: flex;
  13520. flex-direction: row;
  13521. flex-wrap: nowrap;
  13522. align-items: center;
  13523. justify-content: center;
  13524. align-content: center;
  13525. /* margin-left: 15px; */
  13526. /* margin-left: 8px; */
  13527. }
  13528. .scoreImg {
  13529. width: 17px;
  13530. height: 17px;
  13531. }
  13532. .studentDetail {
  13533. display: flex;
  13534. flex-direction: row;
  13535. flex-wrap: nowrap;
  13536. /* align-items: center; */
  13537. align-items: flex-start;
  13538. }
  13539. .tx {
  13540. width: 50px;
  13541. }
  13542. .tx>img {
  13543. width: 100%;
  13544. height: 100%;
  13545. }
  13546. .nameAndTime {
  13547. display: flex;
  13548. flex-direction: column;
  13549. flex-wrap: nowrap;
  13550. align-items: flex-start;
  13551. margin-left: 10px;
  13552. }
  13553. .worksAnswer {
  13554. color: #4078dd;
  13555. margin: 10px 0;
  13556. font-size: 16px;
  13557. position: relative;
  13558. }
  13559. .worksAnswer>img {
  13560. width: 500px;
  13561. height: 300px;
  13562. object-fit: contain;
  13563. margin: 0 auto;
  13564. display: block;
  13565. }
  13566. .commentTop {
  13567. border-bottom: 1px solid #eaeaea;
  13568. padding-bottom: 10px;
  13569. }
  13570. .commentBox {
  13571. padding-top: 15px;
  13572. }
  13573. .pl {
  13574. font-size: 18px;
  13575. }
  13576. .plPerson {
  13577. width: 100%;
  13578. }
  13579. .plName {
  13580. display: flex;
  13581. flex-direction: row;
  13582. flex-wrap: nowrap;
  13583. align-items: baseline;
  13584. color: #78787a;
  13585. width: 100%;
  13586. }
  13587. .deleteComment {
  13588. cursor: pointer;
  13589. margin-left: auto;
  13590. color: #237ade;
  13591. }
  13592. .plContent {
  13593. margin-top: 5px;
  13594. }
  13595. .evalCss {
  13596. background: #fff;
  13597. font-size: 18px;
  13598. }
  13599. .nav {
  13600. color: #9d9d9d;
  13601. padding: 5px 0 15px 20px;
  13602. }
  13603. .middleBox {
  13604. padding: 5px 0 15px 20px;
  13605. }
  13606. .pfBox {
  13607. padding-bottom: 30px;
  13608. }
  13609. .nameAndrate {
  13610. display: flex;
  13611. flex-direction: row;
  13612. flex-wrap: nowrap;
  13613. align-items: center;
  13614. padding-bottom: 10px;
  13615. height: 30px;
  13616. line-height: 30px;
  13617. }
  13618. .nameAndrate>div {
  13619. margin-left: 10px;
  13620. color: #000;
  13621. height: 30px;
  13622. }
  13623. .nameAndrate>>>.el-rate__icon {
  13624. font-size: 28px !important;
  13625. }
  13626. .pfBox>div:nth-child(2) {
  13627. background: #f7f6f9;
  13628. width: 400px;
  13629. min-height: 45px;
  13630. border-radius: 10px;
  13631. font-size: 16px;
  13632. display: flex;
  13633. flex-wrap: wrap;
  13634. align-items: center;
  13635. padding: 10px 20px;
  13636. box-sizing: border-box;
  13637. color: #000;
  13638. }
  13639. .bz {
  13640. display: flex;
  13641. flex-direction: row;
  13642. flex-wrap: nowrap;
  13643. align-items: flex-start;
  13644. }
  13645. .bz>div {
  13646. padding: 0 10px;
  13647. }
  13648. .select_box2_title {
  13649. background: #fff;
  13650. border-radius: 5px;
  13651. padding: 15px 10px;
  13652. box-sizing: border-box;
  13653. margin-bottom: 10px;
  13654. display: flex;
  13655. flex-direction: row;
  13656. flex-wrap: nowrap;
  13657. align-items: center;
  13658. }
  13659. .select_box2_title>div:nth-child(2) {
  13660. margin-left: 10px;
  13661. color: #c4c4c4;
  13662. }
  13663. .select_box2_box {
  13664. display: flex;
  13665. height: 500px;
  13666. }
  13667. .select_box2_img {
  13668. width: calc(100% - 310px);
  13669. height: 100%;
  13670. overflow: auto;
  13671. background: #fff;
  13672. border-radius: 5px;
  13673. }
  13674. .select_box2_img img {
  13675. width: 100%;
  13676. }
  13677. .select_box2_answer {
  13678. background: #fff;
  13679. margin-left: 10px;
  13680. border-radius: 5px;
  13681. width: 300px;
  13682. overflow: auto;
  13683. height: 90%;
  13684. display: flex;
  13685. flex-direction: column;
  13686. align-items: flex-start;
  13687. padding-top: 10px;
  13688. box-sizing: border-box;
  13689. position: relative;
  13690. }
  13691. .select_answer_title {
  13692. padding: 0 0 15px 20px;
  13693. color: #c4c4c4;
  13694. }
  13695. .select_box2_answer_box {
  13696. margin: 0 0 10px 20px;
  13697. width: 85%;
  13698. display: flex;
  13699. flex-direction: row;
  13700. flex-wrap: nowrap;
  13701. align-items: center;
  13702. }
  13703. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  13704. color: #000;
  13705. }
  13706. .upAnswerCss {
  13707. position: absolute;
  13708. bottom: 15px;
  13709. right: 15px;
  13710. }
  13711. .upAnswerCss>>>.el-button {
  13712. width: 95px;
  13713. height: 35px;
  13714. line-height: 35px;
  13715. padding: 0;
  13716. }
  13717. .rightWidthCss {
  13718. width: 60%;
  13719. display: flex;
  13720. flex-direction: row;
  13721. align-items: flex-start;
  13722. }
  13723. .rightAnswer {
  13724. display: flex;
  13725. flex-direction: row;
  13726. flex-wrap: nowrap;
  13727. align-items: center;
  13728. color: red;
  13729. margin-bottom: 31px;
  13730. }
  13731. .rightAnswerCss {
  13732. display: flex;
  13733. flex-direction: column;
  13734. flex-wrap: nowrap;
  13735. padding-top: 60px;
  13736. }
  13737. .blueCss {
  13738. color: #767de1;
  13739. margin-left: 10px;
  13740. }
  13741. .redCss {
  13742. color: red;
  13743. }
  13744. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  13745. color: rgb(0 123 255) !important;
  13746. }
  13747. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  13748. color: rgb(0 123 255) !important;
  13749. }
  13750. .zuoyeYulan {
  13751. padding-top: 15px;
  13752. font-size: 18px;
  13753. display: flex;
  13754. align-items: flex-end;
  13755. }
  13756. .buttonA {
  13757. margin-left: 10px;
  13758. padding: 0;
  13759. }
  13760. .displayBox {
  13761. margin-bottom: 10px;
  13762. display: block;
  13763. border-bottom: 3px solid #eee;
  13764. display: flex;
  13765. align-items: center;
  13766. }
  13767. .easy_comment {
  13768. width: calc(100% - 90px);
  13769. margin-left: 10px;
  13770. display: flex;
  13771. flex-wrap: wrap;
  13772. }
  13773. .easy_comment>div {
  13774. border: 1px solid #4a4a4a;
  13775. color: #666;
  13776. border-radius: 15px;
  13777. padding: 5px 10px;
  13778. font-size: 16px;
  13779. margin-bottom: 10px;
  13780. margin-right: 5px;
  13781. cursor: pointer;
  13782. }
  13783. .easy_comment div:hover {
  13784. border: 1px solid #f7ba2a;
  13785. color: #c69217;
  13786. }
  13787. .xuan_right_box {
  13788. padding: 10px;
  13789. background: rgb(247, 247, 247);
  13790. margin: 10px 12px;
  13791. border-radius: 5px;
  13792. }
  13793. .tool_right_box {
  13794. display: flex;
  13795. align-items: center;
  13796. }
  13797. .tool_right_box+.tool_right_box {
  13798. margin-top: 10px;
  13799. }
  13800. .right_box_xuan {
  13801. background: rgb(0 123 255);
  13802. color: #fff;
  13803. border-radius: 5px;
  13804. padding: 5px;
  13805. margin-left: 10px;
  13806. }
  13807. .pButton:hover {
  13808. opacity: 1 !important;
  13809. }
  13810. .pButton {
  13811. position: fixed;
  13812. /* right: 5%; */
  13813. /* bottom: 5%; */
  13814. color: #fff;
  13815. /* width: 50px;
  13816. height: 50px; */
  13817. /* border-radius: 50%; */
  13818. text-align: center;
  13819. /* line-height: 50px; */
  13820. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  13821. cursor: pointer;
  13822. z-index: 999;
  13823. right: 0;
  13824. top: 83px;
  13825. width: 50px;
  13826. height: 50px;
  13827. background: #fff;
  13828. display: flex;
  13829. align-items: center;
  13830. justify-content: center;
  13831. box-shadow: 0px 0 8px 2px #c5c5c5;
  13832. border-radius: 5px;
  13833. }
  13834. .pzClass {
  13835. width: calc(100% - 340px);
  13836. }
  13837. .newDialogCss {
  13838. /* position: fixed;
  13839. right: 5%;
  13840. top: 50%;
  13841. width: 340px;
  13842. transform: translateY(-50%);
  13843. height: 60%;
  13844. box-shadow: 0px 0 8px 0px #555555;
  13845. border-radius: 15px;
  13846. z-index: 999; */
  13847. position: fixed;
  13848. right: 0;
  13849. top: 70px;
  13850. width: 340px;
  13851. height: calc(100% - 80px);
  13852. z-index: 999;
  13853. background: #fff;
  13854. border-radius: 15px;
  13855. border-top-right-radius: 0px;
  13856. border-bottom-right-radius: 0px;
  13857. overflow: hidden;
  13858. }
  13859. .pzTop {
  13860. color: #fff;
  13861. background: #000;
  13862. display: flex;
  13863. flex-direction: row;
  13864. flex-wrap: nowrap;
  13865. align-items: center;
  13866. justify-content: space-between;
  13867. height: 40px;
  13868. border-radius: 15px 15px 0 0;
  13869. }
  13870. .pzTop2 .checkbox {
  13871. display: flex;
  13872. align-items: center;
  13873. padding: 15px 30px;
  13874. flex: 0 0 auto;
  13875. font-weight: bold;
  13876. border-bottom: 1px solid #eee;
  13877. justify-content: space-between;
  13878. }
  13879. .pzTop2 .check {
  13880. text-align: center;
  13881. cursor: pointer;
  13882. box-sizing: border-box;
  13883. display: flex;
  13884. }
  13885. .pzTop2 img {
  13886. width: 25px;
  13887. cursor: pointer;
  13888. }
  13889. .pzTop>div:nth-child(1) {
  13890. padding-left: 10px;
  13891. }
  13892. .pzTop>div:nth-child(2) {
  13893. width: 15px;
  13894. height: 15px;
  13895. padding-right: 10px;
  13896. cursor: pointer;
  13897. }
  13898. .pzTop>div:nth-child(2)>img {
  13899. width: 100%;
  13900. height: 100%;
  13901. }
  13902. .pzBox,
  13903. .noPzBox {
  13904. height: calc(100% - 60px);
  13905. /* background: #ededed; */
  13906. background: #fff;
  13907. /* border-radius: 0 0 15px 15px; */
  13908. }
  13909. .noPzBox {
  13910. display: flex;
  13911. flex-direction: column;
  13912. flex-wrap: nowrap;
  13913. justify-content: center;
  13914. align-items: center;
  13915. }
  13916. .pzList {
  13917. background: #f7f7f7;
  13918. width: 90%;
  13919. margin: 0 auto 15px;
  13920. border-radius: 5px;
  13921. }
  13922. .pzNavTop {
  13923. display: flex;
  13924. flex-direction: row;
  13925. flex-wrap: nowrap;
  13926. padding: 10px 10px 0 10px;
  13927. align-items: center;
  13928. }
  13929. .pzDelete {
  13930. cursor: pointer;
  13931. margin-left: auto;
  13932. font-size: 14px;
  13933. color: #afafaf;
  13934. }
  13935. .pzNavTop>div:nth-child(1) {
  13936. background: #3760af;
  13937. width: 35px;
  13938. height: 35px;
  13939. color: #fff;
  13940. text-align: center;
  13941. line-height: 35px;
  13942. border-radius: 50%;
  13943. font-size: 14px;
  13944. }
  13945. .pzNavTop>div:nth-child(2) {
  13946. font-size: 18px;
  13947. color: #959595;
  13948. margin-left: 5px;
  13949. }
  13950. .pzContent {
  13951. padding: 10px;
  13952. word-break: break-word;
  13953. }
  13954. .pzContent audio {
  13955. width: 100%;
  13956. }
  13957. .pzContent audio::-webkit-media-controls-panel {
  13958. background: #fff;
  13959. }
  13960. .pzListBox {
  13961. padding-top: 15px;
  13962. height: calc(100% - 60px);
  13963. overflow: auto;
  13964. }
  13965. .addPzButton {
  13966. position: relative;
  13967. margin-top: 3px;
  13968. width: 100%;
  13969. }
  13970. .addPzButton .img1 {
  13971. position: absolute;
  13972. top: 50%;
  13973. right: 25px;
  13974. transform: translateY(-50%);
  13975. height: 100%;
  13976. display: flex;
  13977. align-items: center;
  13978. }
  13979. .addPzButton .img1 div {
  13980. display: flex;
  13981. }
  13982. .addPzButton .img1 div img {
  13983. width: 28px;
  13984. margin-left: 10px;
  13985. cursor: pointer;
  13986. }
  13987. .addPzButton .img1 div span {
  13988. font-size: 14px;
  13989. margin: 4px 0 0 3px;
  13990. color: #afafaf;
  13991. }
  13992. .addPz {
  13993. background: #4b79ce;
  13994. width: 100px;
  13995. color: #fff;
  13996. font-size: 12px;
  13997. height: 30px;
  13998. margin: 0 auto;
  13999. text-align: center;
  14000. line-height: 30px;
  14001. border-radius: 10px;
  14002. cursor: pointer;
  14003. }
  14004. .addDialogCss {
  14005. position: fixed;
  14006. right: 37%;
  14007. top: 50%;
  14008. width: 600px;
  14009. transform: translateY(-50%);
  14010. height: 70%;
  14011. min-height: 450px;
  14012. box-shadow: 0px 0 8px 0px #555555;
  14013. border-radius: 15px;
  14014. z-index: 999;
  14015. }
  14016. .teacherPz {
  14017. display: flex;
  14018. flex-direction: row;
  14019. align-items: center;
  14020. flex-wrap: nowrap;
  14021. }
  14022. .teacherPzImg {
  14023. width: 30px;
  14024. height: 30px;
  14025. }
  14026. .teacherPzImg>img {
  14027. width: 100%;
  14028. height: 100%;
  14029. }
  14030. .addPzBox {
  14031. height: calc(100% - 40px);
  14032. background: #ededed;
  14033. }
  14034. .pzAudioClass {
  14035. margin: 15px 14px;
  14036. background: #fff;
  14037. height: 100%;
  14038. display: flex;
  14039. justify-content: center;
  14040. align-items: center;
  14041. }
  14042. .pzConText {
  14043. width: 95%;
  14044. height: 100%;
  14045. margin: 10px auto 0;
  14046. border: none;
  14047. background: #fff;
  14048. border-radius: 0px;
  14049. }
  14050. .pzConText>>>.text {
  14051. height: calc(100% - 82px);
  14052. }
  14053. .addTextCss {
  14054. background: #4b79ce;
  14055. width: 80px;
  14056. height: 30px;
  14057. text-align: center;
  14058. color: #fff;
  14059. line-height: 30px;
  14060. border-radius: 10px;
  14061. margin: 10px auto 0;
  14062. cursor: pointer;
  14063. }
  14064. .pzConText:focus-visible {
  14065. border: none !important;
  14066. }
  14067. .maxWidth {
  14068. width: 1000px;
  14069. }
  14070. .noPz {
  14071. width: 150px;
  14072. margin: 0 auto 20%;
  14073. }
  14074. .noPz>img {
  14075. width: 100%;
  14076. height: 100%;
  14077. }
  14078. .pzList .time {
  14079. text-align: right;
  14080. box-sizing: border-box;
  14081. padding: 0 10px 10px 0px;
  14082. color: #949494;
  14083. font-size: 14px;
  14084. }
  14085. /* table 样式 */
  14086. .cont>>>table {
  14087. border-top: 1px solid #ccc;
  14088. border-left: 1px solid #ccc;
  14089. }
  14090. .cont>>>table td,
  14091. .cont>>>table th {
  14092. border-bottom: 1px solid #ccc;
  14093. border-right: 1px solid #ccc;
  14094. /* padding: 20px 5px; */
  14095. padding: 5px 10px;
  14096. max-width: 0px;
  14097. height: 30px;
  14098. vertical-align: baseline;
  14099. box-sizing: border-box;
  14100. }
  14101. .cont>>>table th {
  14102. border-bottom: 2px solid #ccc;
  14103. text-align: center;
  14104. }
  14105. /* blockquote 样式 */
  14106. .cont>>>blockquote {
  14107. display: block;
  14108. border-left: 8px solid #d0e5f2;
  14109. padding: 5px 10px;
  14110. margin: 10px 0;
  14111. line-height: 1.4;
  14112. font-size: 100%;
  14113. background-color: #f1f1f1;
  14114. }
  14115. /* code 样式 */
  14116. .cont>>>code {
  14117. display: inline-block;
  14118. *display: inline;
  14119. *zoom: 1;
  14120. background-color: #f1f1f1;
  14121. border-radius: 3px;
  14122. padding: 3px 5px;
  14123. margin: 0 3px;
  14124. }
  14125. .cont>>>pre code {
  14126. display: block;
  14127. }
  14128. /* ul ol 样式 */
  14129. .cont>>>ul,
  14130. ol {
  14131. margin: 10px 0 10px 20px;
  14132. }
  14133. .addPzCheck {
  14134. display: flex;
  14135. flex-direction: row;
  14136. flex-wrap: nowrap;
  14137. padding: 10px 15px 0;
  14138. }
  14139. .addPzCheck span {
  14140. cursor: pointer;
  14141. padding-bottom: 5px;
  14142. font-weight: bold;
  14143. }
  14144. .addPzCheck span+span {
  14145. margin-left: 10px;
  14146. }
  14147. .addPzCheck .isChooseActive {
  14148. color: #3e88f4;
  14149. border-bottom: 2px solid #2f80f3;
  14150. }
  14151. /* code 样式 */
  14152. .cont {
  14153. /* -webkit-user-modify: read-write; */
  14154. overflow-wrap: break-word;
  14155. -webkit-line-break: after-white-space;
  14156. }
  14157. .scoreBox,
  14158. .scoreDetailBox {
  14159. display: flex;
  14160. align-items: center;
  14161. justify-content: flex-start;
  14162. margin-top: 20px;
  14163. font-size: 18px;
  14164. width: 100%;
  14165. }
  14166. .scoreBox .t,
  14167. .scoreDetailBox .t {
  14168. margin-right: 10px;
  14169. width: 100px;
  14170. text-align: right;
  14171. }
  14172. .scoreDetailBox {
  14173. align-items: flex-start;
  14174. }
  14175. .scoreDetailBox>>>.el-textarea {
  14176. width: calc(100% - 200px);
  14177. }
  14178. .scoreBox>>>.el-input {
  14179. width: 130px;
  14180. font-size: 38px;
  14181. }
  14182. .scoreBox>>>.el-input__inner {
  14183. height: 60px;
  14184. }
  14185. .answerScore {
  14186. position: absolute;
  14187. top: 10px;
  14188. right: 10px;
  14189. background: #0000008f;
  14190. border-radius: 5px;
  14191. padding: 3px 5px;
  14192. font-size: 14px;
  14193. color: #fff;
  14194. cursor: pointer;
  14195. }
  14196. .open_box .switch_box {
  14197. width: 100%;
  14198. margin: 0 auto;
  14199. display: flex;
  14200. justify-content: space-between;
  14201. }
  14202. .open_box .switch_box+.switch_box {
  14203. margin-top: 10px;
  14204. }
  14205. .deleteImg {
  14206. width: 25px !important;
  14207. height: 25px !important;
  14208. cursor: pointer;
  14209. position: absolute;
  14210. top: 10px;
  14211. right: 10px;
  14212. }
  14213. .deleteImg2 {
  14214. width: 15px !important;
  14215. height: 15px !important;
  14216. top: 5px;
  14217. right: 5px;
  14218. }
  14219. .rightW {
  14220. right: 40px;
  14221. }
  14222. .drawPBox {
  14223. display: flex;
  14224. flex-direction: column;
  14225. position: relative;
  14226. }
  14227. .drawPBox span {
  14228. font-size: 18px;
  14229. color: #606266;
  14230. padding-bottom: 10px;
  14231. margin: 10px 0;
  14232. border-bottom: 1px solid #eaeaea;
  14233. }
  14234. .drawPBox img {
  14235. width: 500px;
  14236. height: 300px;
  14237. object-fit: contain;
  14238. cursor: pointer;
  14239. margin: 0 auto;
  14240. }
  14241. .sentenBox {
  14242. background: #fff;
  14243. height: 450px;
  14244. overflow: auto;
  14245. background-image: url("../assets/icon/conSentences/stuBg.png");
  14246. background-position: 102%;
  14247. background-repeat: no-repeat;
  14248. background-size: 60%;
  14249. }
  14250. .addSen {
  14251. background: #409efe;
  14252. width: 90px;
  14253. color: #fff;
  14254. height: 35px;
  14255. text-align: center;
  14256. line-height: 35px;
  14257. border-radius: 5px;
  14258. float: right;
  14259. margin: 10px 20px 0 0;
  14260. cursor: pointer;
  14261. }
  14262. .sentenTop {
  14263. display: flex;
  14264. flex-direction: row;
  14265. flex-wrap: nowrap;
  14266. align-items: center;
  14267. padding: 55px 0 0 20px;
  14268. box-sizing: border-box;
  14269. }
  14270. .sentenTop>div:nth-child(2) {
  14271. width: 300px;
  14272. margin: 0 15px;
  14273. }
  14274. .sentenTop>div:nth-child(3) {
  14275. background: #409efe;
  14276. color: #fff;
  14277. width: 65px;
  14278. height: 35px;
  14279. text-align: center;
  14280. line-height: 35px;
  14281. border-radius: 5px;
  14282. cursor: pointer;
  14283. }
  14284. .cardList,
  14285. .cardList1 {
  14286. padding: 10px 0 10px 0;
  14287. display: flex;
  14288. flex-direction: row;
  14289. flex-wrap: wrap;
  14290. align-items: center;
  14291. box-sizing: border-box;
  14292. border-bottom: 1px solid #f4f4f4;
  14293. width: 98%;
  14294. margin: 0 auto;
  14295. min-width: 60%;
  14296. max-width: 85%;
  14297. }
  14298. .cardList1 {
  14299. padding: 10px 0 10px 10px !important;
  14300. margin: 0 !important;
  14301. }
  14302. .cardBox {
  14303. display: flex;
  14304. flex-direction: row;
  14305. flex-wrap: wrap;
  14306. align-items: center;
  14307. align-content: center;
  14308. }
  14309. .cardBox>div {
  14310. margin-bottom: 10px;
  14311. }
  14312. .isCard,
  14313. .isChooseCard,
  14314. .noCard,
  14315. .isCard1 {
  14316. width: 130px;
  14317. height: 60px;
  14318. text-align: center;
  14319. line-height: 60px;
  14320. font-size: 20px;
  14321. cursor: pointer;
  14322. background-image: url("../assets/icon/conSentences/titleBorder.png");
  14323. background-size: cover;
  14324. transition: all 2s;
  14325. margin-right: 20px;
  14326. }
  14327. .isCard>div,
  14328. .noCard>div,
  14329. .isCard1>div {
  14330. white-space: nowrap;
  14331. overflow: hidden;
  14332. text-overflow: ellipsis;
  14333. width: 75%;
  14334. margin: 0 auto;
  14335. }
  14336. .noCard {
  14337. background-image: none;
  14338. }
  14339. .isCard1 {
  14340. background-image: url("../assets/icon/conSentences/answerBorder.png");
  14341. }
  14342. .isChooseCard {
  14343. background-image: none;
  14344. border: 1px dashed #b9b9b9;
  14345. border-radius: 10px;
  14346. }
  14347. .card {
  14348. width: 130px;
  14349. height: 60px;
  14350. }
  14351. .card>img {
  14352. width: 100%;
  14353. height: 100%;
  14354. }
  14355. .rightCardBox {
  14356. margin: 10px 0 0 10px;
  14357. }
  14358. .rightCardBox>div:nth-child(1) {
  14359. margin-bottom: 10px;
  14360. }
  14361. .cardCss {
  14362. display: flex;
  14363. flex-direction: column;
  14364. flex-wrap: nowrap;
  14365. align-items: center;
  14366. border-bottom: 3px solid #b4c3d3;
  14367. padding: 0 0 5px 0;
  14368. margin-right: 10px;
  14369. }
  14370. .cardCss>div:nth-child(2) {
  14371. background: #5b7b9d;
  14372. color: #fff;
  14373. width: 20px;
  14374. height: 20px;
  14375. border-radius: 50%;
  14376. text-align: center;
  14377. line-height: 20px;
  14378. }
  14379. .isWrong {
  14380. display: flex;
  14381. flex-direction: row;
  14382. flex-wrap: nowrap;
  14383. align-content: center;
  14384. align-items: center;
  14385. }
  14386. .answerRight {
  14387. width: 25%;
  14388. }
  14389. .isTj {
  14390. display: flex;
  14391. flex-direction: row;
  14392. flex-wrap: nowrap;
  14393. align-items: center;
  14394. }
  14395. .isTj>div:nth-child(2) {
  14396. color: #727070;
  14397. margin-left: 10px;
  14398. }
  14399. .isTjImg {
  14400. width: 30px;
  14401. height: 30px;
  14402. }
  14403. .isTjImg>img {
  14404. width: 100%;
  14405. height: 100%;
  14406. }
  14407. .cardAnswerBox {
  14408. font-size: 18px;
  14409. width: 97%;
  14410. border: 5px;
  14411. padding: 0;
  14412. border-radius: 5px;
  14413. margin: 10px auto;
  14414. word-break: break-word;
  14415. }
  14416. .w_name {
  14417. margin-bottom: 10px;
  14418. }
  14419. .w_name span {
  14420. font-size: 16px;
  14421. }
  14422. .w_teachert {
  14423. width: 50px !important;
  14424. position: absolute;
  14425. height: auto !important;
  14426. z-index: 10;
  14427. right: 25px;
  14428. top: -25px;
  14429. }
  14430. .group_workBox {}
  14431. .group_workBox+.group_workBox {
  14432. margin-top: 20px;
  14433. }
  14434. .group_box {
  14435. padding-bottom: 20px;
  14436. border-bottom: 2px solid #f0f0f0;
  14437. }
  14438. .group_title {
  14439. display: flex;
  14440. align-items: center;
  14441. justify-content: space-between;
  14442. }
  14443. .group_name {
  14444. background-image: url(../assets/icon/groupN.png);
  14445. width: 220px;
  14446. background-size: 100% 100%;
  14447. height: 67px;
  14448. padding: 0 20px 0 43px;
  14449. box-sizing: border-box;
  14450. line-height: 63px;
  14451. color: #fff;
  14452. overflow: hidden;
  14453. white-space: nowrap;
  14454. text-overflow: ellipsis;
  14455. }
  14456. .group_work {
  14457. width: 100%;
  14458. padding: 0 10px;
  14459. box-sizing: border-box;
  14460. display: flex;
  14461. flex-wrap: wrap;
  14462. }
  14463. .g_d_box {
  14464. display: flex;
  14465. flex-flow: wrap;
  14466. justify-content: space-around;
  14467. }
  14468. .g_d_box .isChair {
  14469. background-image: url(../assets/avatar.png) !important;
  14470. }
  14471. .g_d_group {
  14472. width: 500px;
  14473. margin-bottom: 80px;
  14474. }
  14475. .g_d_group_chair {
  14476. display: flex;
  14477. align-items: center;
  14478. justify-content: center;
  14479. }
  14480. .g_d_group_chair>div+div {
  14481. margin-left: 30px;
  14482. }
  14483. .g_d_group_chair>div,
  14484. .g_d_group_chair2>div {
  14485. display: flex;
  14486. flex-direction: column;
  14487. align-items: center;
  14488. }
  14489. .g_d_group_chair>div>span:nth-child(1),
  14490. .g_d_group_chair2>div>span:nth-child(1) {
  14491. background-image: url(../assets/icon/chair.png);
  14492. width: 50px;
  14493. height: 50px;
  14494. display: block;
  14495. background-size: 100% 100%;
  14496. }
  14497. .g_d_group_tableBox {
  14498. display: flex;
  14499. align-items: center;
  14500. justify-content: center;
  14501. }
  14502. .g_d_group_chair2 {
  14503. display: flex;
  14504. flex-direction: column;
  14505. align-items: center;
  14506. justify-content: center;
  14507. }
  14508. .g_d_group_chair2>div+div {
  14509. margin-top: 10px;
  14510. }
  14511. .g_d_group_table {
  14512. background-image: url(../assets/icon/groupBg.png);
  14513. width: 354px;
  14514. height: 196px;
  14515. background-size: 100% 100%;
  14516. display: flex;
  14517. align-items: center;
  14518. justify-content: center;
  14519. flex-direction: column;
  14520. color: #fff;
  14521. }
  14522. .g_d_group_table>div:nth-child(1) {
  14523. font-size: 24px;
  14524. margin-bottom: 5px;
  14525. }
  14526. .g_d_group_table>div:nth-child(2) div {
  14527. cursor: pointer;
  14528. background: #2e77bf;
  14529. padding: 4px 10px;
  14530. border-radius: 5px;
  14531. }
  14532. .groupBox {}
  14533. .groupContent+.groupContent {
  14534. margin-top: 30px;
  14535. }
  14536. .groupTitle {
  14537. font-size: 24px;
  14538. color: rgb(80, 80, 80);
  14539. margin-bottom: 20px;
  14540. }
  14541. .groupName {
  14542. display: flex;
  14543. align-items: center;
  14544. }
  14545. .groupn {
  14546. font-size: 15px;
  14547. margin-right: 10px;
  14548. }
  14549. .groupName+.groupName {
  14550. margin-top: 15px;
  14551. }
  14552. .groupBtn {
  14553. margin-left: 10px;
  14554. }
  14555. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  14556. text-align: left;
  14557. }
  14558. .g_d_btnBox {
  14559. display: flex;
  14560. justify-content: flex-end;
  14561. align-items: center;
  14562. margin-bottom: 20px;
  14563. }
  14564. .updateChair {
  14565. position: relative;
  14566. }
  14567. .updateChairBtn {
  14568. position: absolute;
  14569. width: 50px;
  14570. height: 50px;
  14571. overflow: hidden;
  14572. /* display: flex; */
  14573. align-items: center;
  14574. justify-content: center;
  14575. background: #00000087;
  14576. color: #fff;
  14577. border-radius: 50px;
  14578. display: none;
  14579. cursor: pointer;
  14580. }
  14581. .updateChair:hover .updateChairBtn {
  14582. display: flex;
  14583. }
  14584. .group_staic_box {
  14585. display: flex;
  14586. padding: 30px 40px 10px;
  14587. flex-wrap: wrap;
  14588. }
  14589. .group_staic {
  14590. /* width: 50%; */
  14591. margin-bottom: 20px;
  14592. display: flex;
  14593. align-items: center;
  14594. }
  14595. .group_staic span:nth-child(1) {
  14596. width: 150px;
  14597. text-align: right;
  14598. margin-right: 15px;
  14599. }
  14600. .group_staic span:nth-child(2) {
  14601. background: rgb(0 123 255);
  14602. color: #fff;
  14603. border-radius: 5px;
  14604. padding: 5px;
  14605. }
  14606. .codeFileBox {
  14607. height: 300px;
  14608. background: #fff;
  14609. display: flex;
  14610. align-items: center;
  14611. justify-content: center;
  14612. }
  14613. .codeFileBox img {
  14614. width: 200px;
  14615. margin: 0;
  14616. height: auto;
  14617. }
  14618. .codeFileBox div {
  14619. background: rgb(80, 142, 226);
  14620. color: #fff;
  14621. padding: 10px 20px;
  14622. border-radius: 25px;
  14623. cursor: pointer;
  14624. margin-left: 15px;
  14625. }
  14626. .radioBox {
  14627. display: flex;
  14628. flex-direction: column;
  14629. flex-wrap: nowrap;
  14630. align-items: flex-start;
  14631. }
  14632. .radioBox>div {
  14633. margin: 10px 0 0 10px;
  14634. }
  14635. /* .radioBox >>> .el-radio__input,
  14636. .radioBox >>> .el-checkbox__inner {
  14637. margin-left: 10px;
  14638. } */
  14639. .radioBox>>>.el-radio__label,
  14640. .radioBox>>>.el-checkbox__label {
  14641. display: flex;
  14642. align-items: center;
  14643. }
  14644. .radioBox>>>.el-radio__label>span {
  14645. width: 100%;
  14646. display: -webkit-box;
  14647. overflow: hidden;
  14648. white-space: normal !important;
  14649. text-overflow: ellipsis;
  14650. word-wrap: break-word;
  14651. }
  14652. .inImg {
  14653. width: 100px;
  14654. cursor: pointer;
  14655. }
  14656. .inImg>img {
  14657. width: 100%;
  14658. height: 100%;
  14659. object-fit: cover;
  14660. }
  14661. .timuImgBox {
  14662. margin: 10px 0;
  14663. display: flex;
  14664. flex-direction: column;
  14665. flex-wrap: wrap;
  14666. align-items: flex-start;
  14667. }
  14668. .timuImg {
  14669. width: 150px;
  14670. margin: 5px 0;
  14671. cursor: pointer;
  14672. }
  14673. .timuImg>img {
  14674. width: 100%;
  14675. height: 100%;
  14676. object-fit: cover;
  14677. }
  14678. .worksTop {
  14679. display: flex;
  14680. flex-direction: row;
  14681. align-items: flex-end;
  14682. }
  14683. .corOpen {
  14684. margin: 0 0 0 10px;
  14685. font-size: 14px;
  14686. cursor: pointer;
  14687. color: #505050;
  14688. }
  14689. .corOpen:hover {
  14690. color: #499eef;
  14691. }
  14692. .navCorOpenBox {
  14693. display: flex;
  14694. flex-direction: row;
  14695. align-items: center;
  14696. background: #1e5cc9;
  14697. justify-content: space-between;
  14698. }
  14699. .navCorOpen {
  14700. padding-right: 15px;
  14701. cursor: pointer;
  14702. width: 20px;
  14703. display: flex;
  14704. }
  14705. .navCorOpen>img {
  14706. width: 100%;
  14707. height: 100%;
  14708. }
  14709. .mlImg {
  14710. width: 25px !important;
  14711. cursor: pointer;
  14712. margin-top: 5px;
  14713. }
  14714. .mlImg>img {
  14715. width: 100%;
  14716. height: 100%;
  14717. }
  14718. .navLeftCss {
  14719. width: 100% !important;
  14720. left: 0 !important;
  14721. }
  14722. .isContentCss {
  14723. width: 100% !important;
  14724. }
  14725. .isAllWidth {
  14726. width: 100% !important;
  14727. }
  14728. .group_switch {
  14729. margin-right: 10px;
  14730. height: 30px;
  14731. display: flex;
  14732. align-items: center;
  14733. }
  14734. .group_switch>span {
  14735. margin-right: 5px;
  14736. }
  14737. </style>