studyStudent.vue 619 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="display: flex; height: 900px; position: relative"
  6. >
  7. <div
  8. class="pButton"
  9. style="
  10. left: 0;
  11. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  12. "
  13. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  14. @click="setContent2(true)"
  15. >
  16. <!-- 批 , getCourseDetail()-->
  17. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  18. </div>
  19. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  20. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  21. <div class="courseTitle">
  22. <div style="width: calc(100% - 25px)">
  23. <el-tooltip
  24. effect="light"
  25. :content="courseDetail.title"
  26. placement="top"
  27. >
  28. <div class="ctitle">{{ courseDetail.title }}</div>
  29. </el-tooltip>
  30. <div class="inviteBox" v-if="tcid && inviteCode">
  31. <div>
  32. <span>随机码:{{ inviteCode }}</span>
  33. </div>
  34. </div>
  35. </div>
  36. <el-tooltip effect="light" content="收缩" placement="top">
  37. <div class="mlImg" @click="setContent2(false)">
  38. <img src="../assets/mlBtn.png" alt="" />
  39. </div>
  40. </el-tooltip>
  41. </div>
  42. <div class="ml">目录</div>
  43. <div class="cru_selectBox">
  44. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  45. <div class="blue_box_one" @click="get(stageIndex)">
  46. <div>第{{ stageIndex + 1 }}阶段</div>
  47. <div>{{ item.dyName }}</div>
  48. </div>
  49. <div class="twoChild" :class="{ navActive: item.isOpen }">
  50. <div
  51. class="navChild"
  52. v-for="(nav, navIndex) in item.task"
  53. :key="navIndex"
  54. >
  55. <div
  56. class="navTask"
  57. @click="openTask(stageIndex, navIndex, nav.id)"
  58. :class="{
  59. openTaskActive:
  60. navIndex == taskCount &&
  61. nav.id == navId &&
  62. stageIndex == courseType,
  63. }"
  64. >
  65. <div
  66. class="vedioNav"
  67. :class="{
  68. isClick:
  69. navIndex == taskCount &&
  70. nav.id == navId &&
  71. stageIndex == courseType,
  72. }"
  73. style="margin: 0"
  74. >
  75. 任务{{ navIndex + 1 }}
  76. </div>
  77. <el-tooltip
  78. class="navTaskname item"
  79. effect="light"
  80. :content="nav.taskName"
  81. placement="top"
  82. >
  83. <div
  84. :style="{
  85. width:
  86. IsLookOpen && !nav.isLook
  87. ? 'calc(100% - 75px)'
  88. : 'auto',
  89. }"
  90. >
  91. {{ nav.taskName }}
  92. </div>
  93. </el-tooltip>
  94. <img
  95. src="../assets/lock.png"
  96. v-if="IsLookOpen && !nav.isLook"
  97. alt=""
  98. />
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  106. <div
  107. class="new_top"
  108. style="
  109. position: fixed;
  110. top: 0;
  111. left: 20.7%;
  112. width: 80%;
  113. z-index: 999;
  114. box-shadow: 0px 9px 0 0 #f2f2f2;
  115. "
  116. :class="{ navLeftCss: !mlDialog }"
  117. >
  118. <div class="courseIndex">
  119. <div>第{{ courseType - 0 + 1 }}阶段</div>
  120. <el-tooltip
  121. effect="light"
  122. :content="chapInfoList[courseType].dyName"
  123. placement="top"
  124. >
  125. <div>{{ chapInfoList[courseType].dyName }}</div>
  126. </el-tooltip>
  127. <div>任务{{ taskCount + 1 }}</div>
  128. </div>
  129. <div class="btnAll">
  130. <div
  131. class="returnBtn"
  132. @click="nextOrpreSteps(0)"
  133. v-if="!(IsFollow && tType == 2)"
  134. >
  135. 上一步
  136. </div>
  137. <div
  138. class="returnBtn"
  139. @click="nextOrpreSteps(1)"
  140. v-if="!(IsFollow && tType == 2)"
  141. >
  142. 下一步
  143. </div>
  144. <!-- <div
  145. class="returnBtn"
  146. @click="allScrell"
  147. v-if="!(IsFollow && tType == 2)"
  148. >
  149. 全屏
  150. </div> -->
  151. <div
  152. class="returnBtn"
  153. @click="refreshCourse"
  154. >
  155. 刷新
  156. </div>
  157. <div
  158. class="returnBtn"
  159. @click="setPz"
  160. v-if="tType == 1"
  161. >
  162. 评课
  163. </div>
  164. <div
  165. class="returnBtn"
  166. @click="startRecording"
  167. v-if="!videoStart && (tType == 1 || tType == 4)"
  168. >
  169. 录制
  170. </div>
  171. <div
  172. class="returnBtn"
  173. @click="stopRecording"
  174. v-else-if="tType == 1 || tType == 4"
  175. style="background: #ee5255"
  176. >
  177. 下载
  178. </div>
  179. <div
  180. class="returnBtn"
  181. @click="juriVisible = true"
  182. v-if="tType == 1"
  183. >
  184. 权限
  185. </div>
  186. <div
  187. class="returnBtn"
  188. style="background: #225bc7"
  189. @click.stop="
  190. goTo(
  191. '/courseDetail?userid=' +
  192. userid +
  193. '&oid=' +
  194. oid +
  195. '&org=' +
  196. org +
  197. '&cid=' +
  198. classId +
  199. '&courseId=' +
  200. id +
  201. '&tType=' +
  202. tType +
  203. '&screenType=' +
  204. screenType
  205. )
  206. "
  207. >
  208. 返回
  209. </div>
  210. </div>
  211. </div>
  212. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  213. .taskJson"
  214. :key="index"-->
  215. <div
  216. class="isNoMessage"
  217. v-if="
  218. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  219. .chapterData.length == 0 &&
  220. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  221. .toolChoose[0].tool.length == 0 &&
  222. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  223. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  224. .taskDetail == '' &&
  225. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  226. "
  227. >
  228. <img src="../assets/icon/isNoMessage.png" alt />
  229. </div>
  230. <div class="study_top" :class="{ pzClass: pzDialog }">
  231. <div
  232. class="vedioBox"
  233. v-if="
  234. vedio[taskCount].length > 0 ||
  235. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  236. .taskDetail != '' ||
  237. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  238. .chapterData.length > 0
  239. "
  240. >
  241. <div class="checkbox">
  242. <div
  243. class="check"
  244. style="font-size: 25px"
  245. :id="
  246. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  247. "
  248. >
  249. <!-- {{ taskCount + 1 }}
  250. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
  251. 学一学
  252. </div>
  253. </div>
  254. <div
  255. class="student_head"
  256. v-if="
  257. vedio[taskCount].length > 0 ||
  258. textList[taskCount].length > 0 ||
  259. lineList[taskCount].length > 0 ||
  260. file[taskCount].length > 0 ||
  261. fileC[taskCount].length > 0 ||
  262. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  263. .taskDetail != ''
  264. "
  265. >
  266. <div class="taskBox">
  267. <div
  268. style="
  269. display: flex;
  270. flex-wrap: nowrap;
  271. flex-direction: column;
  272. position: relative;
  273. "
  274. >
  275. <div
  276. style="padding: 15px 0 15px 20px; line-height: 29px;font-size:18px;"
  277. class="cont"
  278. v-if="
  279. chapInfoList[courseType].chapterInfo[0].taskJson[
  280. taskCount
  281. ].taskDetail != ''
  282. "
  283. v-html="
  284. chapInfoList[courseType].chapterInfo[0].taskJson[
  285. taskCount
  286. ].taskDetail
  287. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  288. taskCount
  289. ].taskDetail
  290. : '暂无描述'
  291. "
  292. ></div>
  293. </div>
  294. </div>
  295. <div class="vedioTaskBox">
  296. <div
  297. :class="
  298. contentDialog == false
  299. ? 'box_course isContentCss'
  300. : 'box_course'
  301. "
  302. v-if="
  303. vedio[taskCount].length > 0 ||
  304. textList[taskCount].length > 0 ||
  305. lineList[taskCount].length > 0 ||
  306. file[taskCount].length > 0
  307. "
  308. >
  309. <div
  310. class="wheel"
  311. style="height: auto"
  312. v-if="
  313. vedio.length &&
  314. vedio[taskCount] &&
  315. vedio[taskCount].length > 0 &&
  316. showType == 0
  317. "
  318. >
  319. <div
  320. class="workd_media"
  321. style="height: 650px; width: calc(100% - 50px)"
  322. >
  323. <video-player
  324. class="video-player vjs-custom-skin"
  325. :class="contentDialog == false ? 'isAllWidth' : ''"
  326. :playsinline="true"
  327. :options="playerO[taskCount]"
  328. @play="onPlayerPlay($event)"
  329. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  330. ></video-player>
  331. </div>
  332. </div>
  333. <div
  334. class="wheel"
  335. v-if="showType == 1"
  336. style="
  337. box-shadow: 0 0 6px 1px #f2f2f2;
  338. width: 95%;
  339. margin: 0 auto;
  340. background: #f1f1f1;
  341. "
  342. >
  343. <div class="title">查看文档</div>
  344. <el-form class="textBox">
  345. <el-form-item class="textTitle">
  346. <div style="font-size: 22px">
  347. {{ text.name }}
  348. </div>
  349. </el-form-item>
  350. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  351. <div v-html="text.url" class="textContent cont"></div>
  352. </el-form>
  353. </div>
  354. <div
  355. class="wheel"
  356. v-if="
  357. pptImgUrl1.indexOf(
  358. 'https://view.officeapps.live.com/op/view.aspx?src='
  359. ) != -1 && showType == 2
  360. "
  361. style="width: 95%; margin: 0 auto"
  362. >
  363. <iframe
  364. ref="iframeC"
  365. style="width: 100%; height: 100%; border: none"
  366. :src="pptImgUrl1"
  367. ></iframe>
  368. </div>
  369. <div
  370. class="wheel"
  371. v-else-if="showType == 2"
  372. style="width: 95%; margin: 0 auto"
  373. >
  374. <iframe
  375. style="width: 100%; height: 100%; border: none"
  376. security="restricted"
  377. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  378. :src="pptImgUrl1"
  379. ></iframe>
  380. </div>
  381. <div
  382. class="wheel"
  383. v-if="showType == 3"
  384. style="width: 95%; margin: 0 auto"
  385. >
  386. <pdf
  387. :pdfUrl="pptImgUrl1"
  388. style="width: 100%; height: 100%; overflow: auto"
  389. ></pdf>
  390. </div>
  391. <div
  392. class="wheel"
  393. v-if="showType == 4"
  394. style="width: 95%; margin: 0 auto"
  395. >
  396. <el-image
  397. :src="pptImgUrl1"
  398. fit="cover"
  399. style="width: 100%"
  400. ></el-image>
  401. </div>
  402. </div>
  403. <div
  404. class="pButton"
  405. style="
  406. position: absolute;
  407. right: 20px;
  408. top: 0;
  409. background: #205cc6;
  410. z-index: 998;
  411. opacity: 0.8;
  412. "
  413. v-if="!contentDialog"
  414. @click="setContent(true)"
  415. >
  416. <!-- 批 -->
  417. <img src="../assets/navBtn2.png" style="width: 25px" alt="" />
  418. </div>
  419. <div
  420. v-if="contentDialog == true"
  421. :style="{
  422. width:
  423. !vedio[taskCount].length > 0 &&
  424. !textList[taskCount].length > 0 &&
  425. !lineList[taskCount].length > 0 &&
  426. !file[taskCount].length > 0 &&
  427. fileC[taskCount].length
  428. ? 'calc(100%)'
  429. : 'calc(100% - 83%)',
  430. margin:
  431. !vedio[taskCount].length > 0 &&
  432. !textList[taskCount].length > 0 &&
  433. !lineList[taskCount].length > 0 &&
  434. !file[taskCount].length > 0 &&
  435. fileC[taskCount].length
  436. ? '0 15px'
  437. : '0 15px 0 0',
  438. }"
  439. >
  440. <div
  441. class="vedioList"
  442. v-if="
  443. (vedio.length &&
  444. vedio[taskCount] &&
  445. vedio[taskCount].length > 0) ||
  446. (textList.length &&
  447. textList[taskCount] &&
  448. textList[taskCount].length > 0) ||
  449. (lineList.length &&
  450. lineList[taskCount] &&
  451. lineList[taskCount].length > 0) ||
  452. (file.length &&
  453. file[taskCount] &&
  454. file[taskCount].length > 0) ||
  455. (fileC.length &&
  456. fileC[taskCount] &&
  457. fileC[taskCount].length > 0)
  458. "
  459. style="height: 650px"
  460. >
  461. <div class="navCorOpenBox">
  462. <div class="navTitile">内容列表:</div>
  463. <div class="navCorOpen" @click="setContent(false)">
  464. <img src="../assets/navBtn2.png" alt="" />
  465. </div>
  466. </div>
  467. <div class="navBox">
  468. <div
  469. v-show="
  470. vedio.length &&
  471. vedio[taskCount] &&
  472. vedio[taskCount].length > 0
  473. "
  474. >
  475. <div
  476. class="vedioTimeBox"
  477. v-for="(media, vedioIndex) in vedio[taskCount]"
  478. :key="vedioIndex + '1'"
  479. @click="lookVedio(media.url, vedioIndex)"
  480. >
  481. <div
  482. class="vedioName"
  483. :class="
  484. isClickNav == 'video' + vedioIndex
  485. ? 'isClickNav'
  486. : ''
  487. "
  488. >
  489. <span v-if="media.text">{{ media.text }}-</span
  490. >{{ media.name }}
  491. </div>
  492. </div>
  493. </div>
  494. <div
  495. v-show="
  496. textList.length &&
  497. textList[taskCount] &&
  498. textList[taskCount].length > 0
  499. "
  500. class="newNav"
  501. v-for="(text, textIndex) in textList[taskCount]"
  502. :key="textIndex + '2'"
  503. @click="lookText(taskCount, textIndex)"
  504. >
  505. <div style="width: calc(100% - 0px)">
  506. <div
  507. class="navText"
  508. :class="
  509. isClickNav == 'text' + textIndex
  510. ? 'isClickNav'
  511. : ''
  512. "
  513. >
  514. {{
  515. textList[taskCount].length > 0 ? text.name : ""
  516. }}.doc
  517. </div>
  518. </div>
  519. </div>
  520. <div
  521. v-show="
  522. lineList.length &&
  523. lineList[taskCount] &&
  524. lineList[taskCount].length > 0
  525. "
  526. class="newNav"
  527. v-for="(lines, lineIndex) in lineList[taskCount]"
  528. :key="lineIndex + '4'"
  529. @click="doUrl(lines.url, lineIndex)"
  530. >
  531. <div style="width: calc(100% - 0px)">
  532. <div
  533. class="navText"
  534. :class="
  535. isClickNav == 'line' + lineIndex
  536. ? 'isClickNav'
  537. : ''
  538. "
  539. >
  540. {{ lines.title ? lines.title : lines.url }}
  541. </div>
  542. </div>
  543. </div>
  544. <div
  545. class="newNav"
  546. v-show="
  547. file.length &&
  548. file[taskCount] &&
  549. file[taskCount].length > 0
  550. "
  551. v-for="(f, fileIndex) in file[taskCount]"
  552. :key="fileIndex"
  553. @click="downFile(f, fileIndex)"
  554. >
  555. <div style="width: calc(100% - 0px)">
  556. <div
  557. class="navText"
  558. :class="
  559. isClickNav == 'word' + fileIndex
  560. ? 'isClickNav'
  561. : ''
  562. "
  563. >
  564. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  565. </div>
  566. </div>
  567. </div>
  568. <div
  569. class="newNav"
  570. v-show="
  571. fileC.length &&
  572. fileC[taskCount] &&
  573. fileC[taskCount].length > 0
  574. "
  575. v-for="(f, fileIndex) in fileC[taskCount]"
  576. :key="fileIndex"
  577. @click="downloadFile2(f)"
  578. >
  579. <div style="width: calc(100% - 0px)">
  580. <div class="navText">
  581. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  582. </div>
  583. </div>
  584. </div>
  585. </div>
  586. </div>
  587. </div>
  588. </div>
  589. <div style="width: 81%">
  590. <div
  591. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  592. v-if="showType == 2 || showType == 3"
  593. >
  594. <el-button
  595. type="primary"
  596. @click="checkFileFull(showType, pptImgUrl1)"
  597. >全屏查看</el-button
  598. >
  599. <el-button
  600. type="primary"
  601. @click="downloadFile(pptImgUrl1)"
  602. v-if="isClickNav.indexOf('line') == -1"
  603. >文件下载</el-button
  604. >
  605. <el-button
  606. v-if="isClickNav.indexOf('line') != -1"
  607. type="primary"
  608. @click="openLine(pptImgUrl1)"
  609. >打开链接
  610. </el-button>
  611. </div>
  612. <div
  613. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  614. v-if="showType == 1"
  615. >
  616. <el-button
  617. type="primary"
  618. @click="checkFileFull(showType, text)"
  619. >全屏查看</el-button
  620. >
  621. </div>
  622. </div>
  623. </div>
  624. </div>
  625. <div class="student_body" v-resize="resize">
  626. <!-- <div
  627. class="vedioBox"
  628. v-if="
  629. file.length && file[taskCount] && file[taskCount].length > 0
  630. "
  631. >
  632. <div class="queTop">
  633. <div class="question" style="width: 30px; margin-top: 5px">
  634. <img src="../assets/icon/fileIcon.png" alt />
  635. </div>
  636. <div class="queTitle">
  637. <div>附件</div>
  638. </div>
  639. </div>
  640. <div class="filebox" style="width: 100%">
  641. <div
  642. class="file"
  643. v-for="(f, fileIndex) in file[taskCount]"
  644. :key="fileIndex"
  645. @click="downFile(f, fileIndex)"
  646. >
  647. <img :src="require('../assets/file.png')" alt />
  648. <div>{{ f.name }}</div>
  649. </div>
  650. </div>
  651. <div class="upFile" v-if="type == 3">提交</div>
  652. </div>-->
  653. <div
  654. class="vedioBox"
  655. v-if="
  656. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  657. .toolChoose[0].tool &&
  658. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  659. .toolChoose[0].tool.length &&
  660. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  661. .toolChoose[0].tool.length > 0
  662. "
  663. >
  664. <div
  665. class="queTop"
  666. style="
  667. font-size: 25px;
  668. padding: 15px 0 15px 30px;
  669. font-weight: bold;
  670. "
  671. >
  672. <!-- <div class="question" style="width: 30px">
  673. <img src="../assets/icon/toolIcon.png" alt />
  674. </div>
  675. <div class="queTitle">
  676. <div>工具</div>
  677. </div>-->
  678. 练一练
  679. </div>
  680. <div class="toolHeng2" style="position: relative">
  681. <div
  682. class="filebox"
  683. style="flex-wrap: nowrap; margin: 0 20px"
  684. v-for="(tool, toolIndex) in chapInfoList[courseType]
  685. .chapterInfo[0].taskJson[taskCount].toolChoose"
  686. :key="toolIndex"
  687. >
  688. <div class="bzBox">
  689. <div></div>
  690. <div>步骤{{ toolIndex + 1 }}</div>
  691. </div>
  692. <div class="toolBox">
  693. <div>
  694. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  695. :key="indexTool"-->
  696. <!-- <div class="iframeBox">
  697. <div
  698. class="addPoint isBorder"
  699. v-for="(tooC, toolCIndex) in tool.tool"
  700. :key="toolCIndex"
  701. >
  702. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  703. <div
  704. class="iframeName"
  705. >
  706. 电子白板
  707. </div>
  708. <iframe
  709. src="https://iwb.cocorobo.cn/"
  710. ref="whiteBoard"
  711. ></iframe>
  712. </div>
  713. </div>
  714. </div>-->
  715. <div class="noiframeBox">
  716. <div
  717. class="addPoint"
  718. v-for="(tooC, toolCIndex) in tool.tool"
  719. :key="toolCIndex"
  720. >
  721. <div v-if="tooC == 1">
  722. <img
  723. src="../assets/icon/secondToolList/whiteBoard.png"
  724. alt
  725. @click="addTools(tooC, toolIndex, taskCount)"
  726. />
  727. <div style="margin: 5px 0">电子白板</div>
  728. </div>
  729. <div v-if="tooC == 3">
  730. <img
  731. src="../assets/icon/secondToolList/mindMapping.png"
  732. alt
  733. @click="addTools(tooC, toolIndex, taskCount)"
  734. />
  735. <div style="margin: 5px 0">思维导图</div>
  736. </div>
  737. <div v-if="tooC == 6">
  738. <img
  739. src="../assets/icon/secondToolList/doc.png"
  740. alt
  741. @click="addTools(tooC, toolIndex, taskCount)"
  742. />
  743. <div style="margin: 5px 0">协同文档</div>
  744. </div>
  745. <div v-if="tooC == 7">
  746. <img
  747. src="../assets/icon/secondToolList/mindNetwork.png"
  748. alt
  749. @click="addTools(tooC, toolIndex, taskCount)"
  750. />
  751. <div style="margin: 5px 0">思维网格</div>
  752. </div>
  753. <div v-if="tooC == 8">
  754. <img
  755. src="../assets/icon/secondToolList/library.png"
  756. alt
  757. @click="addTools(tooC, toolIndex, taskCount)"
  758. />
  759. <div style="margin: 5px 0">素材库</div>
  760. </div>
  761. <div v-if="tooC == 17">
  762. <img
  763. src="../assets/icon/secondToolList/library.png"
  764. alt
  765. @click="addTools(tooC, toolIndex, taskCount)"
  766. />
  767. <div style="margin: 5px 0">学习资料</div>
  768. </div>
  769. <div v-if="tooC == 2">
  770. <img
  771. @click="addTools(tooC, toolIndex, taskCount)"
  772. src="../assets/icon/secondToolList/note.png"
  773. alt
  774. />
  775. <div style="margin: 5px 0">便签</div>
  776. </div>
  777. <div v-if="tooC == 4">
  778. <img
  779. @click="addTools(tooC, toolIndex, taskCount)"
  780. src="../assets/icon/thirdToolList/ask.png"
  781. alt
  782. />
  783. <div style="margin: 5px 0">问卷调查</div>
  784. </div>
  785. <div v-if="tooC == 45">
  786. <img
  787. @click="addTools(tooC, toolIndex, taskCount)"
  788. src="../assets/icon/thirdToolList/choose.png"
  789. alt
  790. />
  791. <div style="margin: 5px 0">选择题</div>
  792. </div>
  793. <!-- <div v-if="tooC == 5">
  794. <img
  795. @click="addTools(tooC, toolIndex, taskCount)"
  796. src="../assets/icon/thirdToolList/score.png"
  797. alt
  798. />
  799. <div style="margin: 5px 0">量规评分</div>
  800. </div> -->
  801. <div v-if="tooC == 10">
  802. <img
  803. @click="addTools(tooC, toolIndex, taskCount)"
  804. src="../assets/icon/thirdToolList/time.png"
  805. alt
  806. />
  807. <div style="margin: 5px 0">倒计时</div>
  808. </div>
  809. <div v-if="tooC == 15">
  810. <img
  811. @click="addTools(tooC, toolIndex, taskCount)"
  812. src="../assets/icon/thirdToolList/answer.png"
  813. alt
  814. />
  815. <div style="margin: 5px 0">问答工具</div>
  816. </div>
  817. <div v-if="tooC == 26">
  818. <img
  819. @click="addTools(tooC, toolIndex, taskCount)"
  820. src="../assets/icon/thirdToolList/courseDesign.png"
  821. alt
  822. />
  823. <div style="margin: 5px 0">课程设计</div>
  824. </div>
  825. <div v-if="tooC == 18">
  826. <img
  827. @click="addTools(tooC, toolIndex, taskCount)"
  828. src="../assets/icon/thirdToolList/trainPlatform.png"
  829. alt
  830. />
  831. <div style="margin: 5px 0">训练服务器</div>
  832. </div>
  833. <div v-if="tooC == 16">
  834. <img
  835. @click="addTools(tooC, toolIndex, taskCount)"
  836. src="../assets/icon/thirdToolList/work.png"
  837. alt
  838. />
  839. <div style="margin: 5px 0">作业提交</div>
  840. </div>
  841. <div v-if="tooC == 50">
  842. <img
  843. @click="addTools(tooC, toolIndex, taskCount)"
  844. src="../assets/icon/thirdToolList/plwork.png"
  845. alt
  846. />
  847. <div style="margin: 5px 0">批量上传</div>
  848. </div>
  849. <div v-if="tooC == 21">
  850. <img
  851. @click="addTools(tooC, toolIndex, taskCount)"
  852. src="../assets/icon/fourthToolList/program.png"
  853. alt
  854. />
  855. <div style="margin: 5px 0">编程平台</div>
  856. </div>
  857. <div v-if="tooC == 22">
  858. <img
  859. @click="addTools(tooC, toolIndex, taskCount)"
  860. src="../assets/icon/fourthToolList/program.png"
  861. alt
  862. />
  863. <div style="margin: 5px 0">AI体验</div>
  864. </div>
  865. <div v-if="tooC == 23">
  866. <img
  867. @click="addTools(tooC, toolIndex, taskCount)"
  868. src="../assets/icon/fourthToolList/program.png"
  869. alt
  870. />
  871. <div style="margin: 5px 0">Python</div>
  872. </div>
  873. <div v-if="tooC == 24">
  874. <img
  875. @click="addTools(tooC, toolIndex, taskCount)"
  876. src="../assets/icon/fourthToolList/AIprogram.png"
  877. alt
  878. />
  879. <div style="margin: 5px 0">AI平台</div>
  880. </div>
  881. <div v-if="tooC == 25">
  882. <img
  883. @click="addTools(tooC, toolIndex, taskCount)"
  884. src="../assets/icon/thirdToolList/evalua.png"
  885. alt
  886. />
  887. <div style="margin: 5px 0">目标管理</div>
  888. </div>
  889. <div v-if="tooC == 31">
  890. <img
  891. @click="addTools(tooC, toolIndex, taskCount)"
  892. src="../assets/icon/secondToolList/networkPanel.png"
  893. alt
  894. />
  895. <div style="margin: 5px 0">数学画板</div>
  896. </div>
  897. <div v-if="tooC == 28">
  898. <img
  899. @click="addTools(tooC, toolIndex, taskCount)"
  900. src="../assets/icon/secondToolList/translation.png"
  901. alt
  902. />
  903. <div style="margin: 5px 0">翻译</div>
  904. </div>
  905. <div v-if="tooC == 37">
  906. <img
  907. @click="addTools(tooC, toolIndex, taskCount)"
  908. src="../assets/icon/secondToolList/mohe.png"
  909. alt
  910. />
  911. <div style="margin: 5px 0">魔盒识字</div>
  912. </div>
  913. <div v-if="tooC == 38">
  914. <img
  915. @click="addTools(tooC, toolIndex, taskCount)"
  916. src="../assets/icon/secondToolList/24game.png"
  917. alt
  918. />
  919. <div style="margin: 5px 0">24点</div>
  920. </div>
  921. <div v-if="tooC == 39">
  922. <img
  923. @click="addTools(tooC, toolIndex, taskCount)"
  924. src="../assets/icon/secondToolList/GeoGebra.png"
  925. alt
  926. />
  927. <div style="margin: 5px 0">GeoGebra</div>
  928. </div>
  929. <div v-if="tooC == 32">
  930. <img
  931. @click="addTools(tooC, toolIndex, taskCount)"
  932. src="../assets/icon/thirdToolList/code.png"
  933. alt
  934. />
  935. <div style="margin: 5px 0">源码编辑</div>
  936. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  937. style="position: absolute;left: 110px;bottom: 30px;">
  938. 上传文件
  939. <input type="file" accept="*" style="display: none"
  940. @change="beforeUpload1($event, 7, toolIndex)" />
  941. </div> -->
  942. </div>
  943. <div v-if="tooC == 40">
  944. <img
  945. @click="addTools(tooC, toolIndex, taskCount)"
  946. src="../assets/icon/secondToolList/eval.png"
  947. alt
  948. />
  949. <div style="margin: 5px 0">个人评价</div>
  950. </div>
  951. <div v-if="tooC == 41">
  952. <img
  953. @click="addTools(tooC, toolIndex, taskCount)"
  954. src="../assets/icon/thirdToolList/select.png"
  955. alt
  956. />
  957. <div style="margin: 5px 0">选择填空</div>
  958. </div>
  959. <div v-if="tooC == 44">
  960. <img
  961. @click="addTools(tooC, toolIndex, taskCount)"
  962. src="../assets/icon/thirdToolList/hanClass.png"
  963. alt
  964. />
  965. <div style="margin: 5px 0">汉字宫</div>
  966. </div>
  967. <div v-if="tooC == 47">
  968. <img
  969. @click="addTools(tooC, toolIndex, taskCount)"
  970. src="../assets/icon/fourthToolList/conSentences.png"
  971. alt
  972. />
  973. <div style="margin: 5px 0">连词成句</div>
  974. </div>
  975. <div v-if="tooC == 48">
  976. <img
  977. @click="addTools(tooC, toolIndex, taskCount)"
  978. src="../assets/icon/fourthToolList/table.png"
  979. alt
  980. />
  981. <div style="margin: 5px 0">表格</div>
  982. </div>
  983. <div v-if="tooC == 52">
  984. <img
  985. @click="addTools(tooC, toolIndex, taskCount)"
  986. src="../assets/icon/fourthToolList/text.png"
  987. alt
  988. />
  989. <div style="margin: 5px 0">文档</div>
  990. </div>
  991. <div v-if="tooC == 49">
  992. <img
  993. @click="addTools(tooC, toolIndex, taskCount)"
  994. src="../assets/icon/fourthToolList/group.png"
  995. alt
  996. />
  997. <div style="margin: 5px 0">学生分组</div>
  998. </div>
  999. <div v-if="tooC == 57">
  1000. <img
  1001. @click="addTools(tooC, toolIndex, taskCount)"
  1002. src="../assets/icon/fourthToolList/cocopi.png"
  1003. alt
  1004. />
  1005. <div style="margin: 5px 0">CocoPi</div>
  1006. </div>
  1007. <div v-if="tooC == 58">
  1008. <img
  1009. @click="addTools(tooC, toolIndex, taskCount)"
  1010. src="../assets/icon/fourthToolList/car.png"
  1011. alt
  1012. />
  1013. <div style="margin: 5px 0">模拟驾驶</div>
  1014. </div>
  1015. <div v-if="tooC == 59">
  1016. <img
  1017. @click="addTools(tooC, toolIndex, taskCount)"
  1018. src="../assets/icon/fourthToolList/lineSearch.png"
  1019. alt
  1020. />
  1021. <div style="margin: 5px 0">路径搜索</div>
  1022. </div>
  1023. <div v-if="tooC == 60">
  1024. <img
  1025. @click="addTools(tooC, toolIndex, taskCount)"
  1026. src="../assets/icon/fourthToolList/deepLearning.png"
  1027. alt
  1028. />
  1029. <div style="margin: 5px 0">深度学习</div>
  1030. </div>
  1031. <div v-if="tooC == 61">
  1032. <img
  1033. @click="addTools(tooC, toolIndex, taskCount)"
  1034. src="../assets/icon/fourthToolList/allHistory.png"
  1035. alt
  1036. />
  1037. <div style="margin: 5px 0">全历史</div>
  1038. </div>
  1039. <div v-if="tooC == 62">
  1040. <img
  1041. @click="addTools(tooC, toolIndex, taskCount)"
  1042. src="../assets/icon/fourthToolList/interVideo.png"
  1043. alt
  1044. />
  1045. <div style="margin: 5px 0">交互视频</div>
  1046. </div>
  1047. <div v-if="tooC == 63">
  1048. <img
  1049. @click="addTools(tooC, toolIndex, taskCount)"
  1050. src="../assets/icon/fourthToolList/Wood.png"
  1051. alt
  1052. />
  1053. <div style="margin: 5px 0">海龟编程</div>
  1054. </div>
  1055. </div>
  1056. </div>
  1057. </div>
  1058. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1059. <!-- <div class="toolTitle">工具描述</div> -->
  1060. <div v-html="contentConvent(tool.toolDetail)"></div>
  1061. </div>
  1062. <el-button
  1063. type="primary"
  1064. v-if="tool.tool[0] == 32"
  1065. style="
  1066. position: absolute;
  1067. right: 30px;
  1068. transform: translateY(-130%);
  1069. "
  1070. @click="addImg($event)"
  1071. >上传作业<input
  1072. type="file"
  1073. accept="*"
  1074. style="display: none"
  1075. @change="beforeUpload1($event, 7, toolIndex)"
  1076. /></el-button>
  1077. <el-button
  1078. type="primary"
  1079. v-if="tool.tool[0] == 57"
  1080. style="
  1081. position: absolute;
  1082. right: 30px;
  1083. transform: translateY(-130%);
  1084. "
  1085. @click="addImg($event)"
  1086. >上传作业<input
  1087. type="file"
  1088. accept="*"
  1089. style="display: none"
  1090. @change="beforeUpload1($event, 8, toolIndex)"
  1091. /></el-button>
  1092. </div>
  1093. <div
  1094. v-if="
  1095. tType &&
  1096. tType == 2 &&
  1097. !sIsOpen &&
  1098. tool.tool.indexOf(16) != -1
  1099. "
  1100. class="worksBox"
  1101. >
  1102. <div
  1103. class="zuoyeYulan"
  1104. v-if="workStudent[toolIndex].length > 0"
  1105. >
  1106. <span>作业预览</span>
  1107. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1108. </div>
  1109. <div
  1110. class="worksDetailBox"
  1111. v-if="workStudent[toolIndex].length > 0"
  1112. >
  1113. <div
  1114. class="works"
  1115. style="
  1116. width: 200px;
  1117. height: 140px;
  1118. margin: 10px 10px 10px 0;
  1119. box-shadow: 0 0 6px 1px #dfdada;
  1120. "
  1121. v-for="(w, wIndex) in workStudent[toolIndex]"
  1122. :key="wIndex"
  1123. >
  1124. <div class="workImg" v-if="w.type == 0">
  1125. <img
  1126. :src="w.works"
  1127. @click="previewImg(w.works)"
  1128. alt
  1129. />
  1130. <div
  1131. class="answerScore"
  1132. v-if="w.score"
  1133. @click.stop="openScore(w)"
  1134. :class="{
  1135. rightW:
  1136. w.userid == userid || tType == 1 || tType == 4,
  1137. }"
  1138. >
  1139. {{ JSON.parse(w.score).wScore }}分
  1140. </div>
  1141. <div
  1142. class="answerScore"
  1143. @click.stop="openScore(w)"
  1144. v-else-if="courseDetail.userid == userid"
  1145. :class="{
  1146. rightW:
  1147. w.userid == userid || tType == 1 || tType == 4,
  1148. }"
  1149. >
  1150. 评分
  1151. </div>
  1152. <img
  1153. class="deleteImg"
  1154. src="../assets/deleteworks.png"
  1155. v-if="
  1156. w.userid == userid || tType == 1 || tType == 4
  1157. "
  1158. @click.stop="deleteWorks(w.wid)"
  1159. alt
  1160. />
  1161. </div>
  1162. <div class="workImg" v-if="w.type == 1">
  1163. <img :src="word" @click="openFile(w.works)" alt />
  1164. <div
  1165. class="answerScore"
  1166. v-if="w.score"
  1167. @click.stop="openScore(w)"
  1168. :class="{
  1169. rightW:
  1170. w.userid == userid || tType == 1 || tType == 4,
  1171. }"
  1172. >
  1173. {{ JSON.parse(w.score).wScore }}分
  1174. </div>
  1175. <div
  1176. class="answerScore"
  1177. @click.stop="openScore(w)"
  1178. v-else-if="courseDetail.userid == userid"
  1179. :class="{
  1180. rightW:
  1181. w.userid == userid || tType == 1 || tType == 4,
  1182. }"
  1183. >
  1184. 评分
  1185. </div>
  1186. <img
  1187. class="deleteImg"
  1188. src="../assets/deleteworks.png"
  1189. v-if="
  1190. w.userid == userid || tType == 1 || tType == 4
  1191. "
  1192. @click.stop="deleteWorks(w.wid)"
  1193. alt
  1194. />
  1195. </div>
  1196. <div class="workImg" v-if="w.type == 3">
  1197. <img
  1198. style="cursor: pointer"
  1199. :src="video"
  1200. @click="openVideo(w)"
  1201. alt
  1202. />
  1203. <div
  1204. class="answerScore"
  1205. v-if="w.score"
  1206. @click.stop="openScore(w)"
  1207. :class="{
  1208. rightW:
  1209. w.userid == userid || tType == 1 || tType == 4,
  1210. }"
  1211. >
  1212. {{ JSON.parse(w.score).wScore }}分
  1213. </div>
  1214. <div
  1215. class="answerScore"
  1216. @click.stop="openScore(w)"
  1217. v-else-if="courseDetail.userid == userid"
  1218. :class="{
  1219. rightW:
  1220. w.userid == userid || tType == 1 || tType == 4,
  1221. }"
  1222. >
  1223. 评分
  1224. </div>
  1225. <img
  1226. class="deleteImg"
  1227. src="../assets/deleteworks.png"
  1228. v-if="
  1229. w.userid == userid || tType == 1 || tType == 4
  1230. "
  1231. @click.stop="deleteWorks(w.wid)"
  1232. alt
  1233. />
  1234. </div>
  1235. <div class="workImg" v-if="w.type == 12">
  1236. <img
  1237. style="cursor: pointer"
  1238. :src="word2"
  1239. @click="downloadFile(w.works)"
  1240. alt
  1241. />
  1242. <div
  1243. class="answerScore"
  1244. v-if="w.score"
  1245. @click.stop="openScore(w)"
  1246. :class="{
  1247. rightW:
  1248. w.userid == userid || tType == 1 || tType == 4,
  1249. }"
  1250. >
  1251. {{ JSON.parse(w.score).wScore }}分
  1252. </div>
  1253. <div
  1254. class="answerScore"
  1255. @click.stop="openScore(w)"
  1256. v-else-if="courseDetail.userid == userid"
  1257. :class="{
  1258. rightW:
  1259. w.userid == userid || tType == 1 || tType == 4,
  1260. }"
  1261. >
  1262. 评分
  1263. </div>
  1264. <img
  1265. class="deleteImg"
  1266. src="../assets/deleteworks.png"
  1267. v-if="
  1268. w.userid == userid || tType == 1 || tType == 4
  1269. "
  1270. @click.stop="deleteWorks(w.wid)"
  1271. alt
  1272. />
  1273. </div>
  1274. <div class="worksName">
  1275. <div>{{ w.sName }}</div>
  1276. </div>
  1277. </div>
  1278. </div>
  1279. </div>
  1280. <div
  1281. v-if="
  1282. tType &&
  1283. tType == 2 &&
  1284. !sIsOpen &&
  1285. tool.tool.indexOf(32) != -1
  1286. "
  1287. class="worksBox"
  1288. >
  1289. <div
  1290. class="zuoyeYulan"
  1291. v-if="workStudent[toolIndex].length > 0"
  1292. >
  1293. <span>作业预览</span>
  1294. </div>
  1295. <div
  1296. class="worksDetailBox"
  1297. v-if="workStudent[toolIndex].length > 0"
  1298. >
  1299. <div
  1300. class="works"
  1301. style="
  1302. width: 200px;
  1303. height: 140px;
  1304. margin: 10px 10px 10px 0;
  1305. box-shadow: 0 0 6px 1px #dfdada;
  1306. "
  1307. v-for="(w, wIndex) in workStudent[toolIndex]"
  1308. :key="wIndex"
  1309. >
  1310. <div class="workImg">
  1311. <img
  1312. :src="word2"
  1313. @click="downloadFile(w.works)"
  1314. alt
  1315. />
  1316. <div
  1317. class="answerScore"
  1318. v-if="w.score"
  1319. @click.stop="openScore(w)"
  1320. :class="{
  1321. rightW:
  1322. w.userid == userid || tType == 1 || tType == 4,
  1323. }"
  1324. >
  1325. {{ JSON.parse(w.score).wScore }}分
  1326. </div>
  1327. <div
  1328. class="answerScore"
  1329. @click.stop="openScore(w)"
  1330. v-else-if="courseDetail.userid == userid"
  1331. :class="{
  1332. rightW:
  1333. w.userid == userid || tType == 1 || tType == 4,
  1334. }"
  1335. >
  1336. 评分
  1337. </div>
  1338. <img
  1339. class="deleteImg"
  1340. src="../assets/deleteworks.png"
  1341. v-if="
  1342. w.userid == userid || tType == 1 || tType == 4
  1343. "
  1344. @click.stop="deleteWorks(w.wid)"
  1345. alt
  1346. />
  1347. </div>
  1348. <div class="worksName">
  1349. <div>{{ w.sName }}</div>
  1350. </div>
  1351. </div>
  1352. </div>
  1353. </div>
  1354. <div
  1355. v-if="
  1356. tType &&
  1357. tType == 2 &&
  1358. !sIsOpen &&
  1359. tool.tool.indexOf(57) != -1
  1360. "
  1361. class="worksBox"
  1362. >
  1363. <div
  1364. class="zuoyeYulan"
  1365. v-if="workStudent[toolIndex].length > 0"
  1366. >
  1367. <span>作业预览</span>
  1368. </div>
  1369. <div
  1370. class="worksDetailBox"
  1371. v-if="workStudent[toolIndex].length > 0"
  1372. >
  1373. <div
  1374. class="works"
  1375. style="
  1376. width: 200px;
  1377. height: 140px;
  1378. margin: 10px 10px 10px 0;
  1379. box-shadow: 0 0 6px 1px #dfdada;
  1380. "
  1381. v-for="(w, wIndex) in workStudent[toolIndex]"
  1382. :key="wIndex"
  1383. >
  1384. <div class="workImg">
  1385. <img
  1386. :src="word2"
  1387. @click="downloadFile(w.works)"
  1388. alt
  1389. />
  1390. <div
  1391. class="answerScore"
  1392. v-if="w.score"
  1393. @click.stop="openScore(w)"
  1394. :class="{
  1395. rightW:
  1396. w.userid == userid || tType == 1 || tType == 4,
  1397. }"
  1398. >
  1399. {{ JSON.parse(w.score).wScore }}分
  1400. </div>
  1401. <div
  1402. class="answerScore"
  1403. @click.stop="openScore(w)"
  1404. v-else-if="courseDetail.userid == userid"
  1405. :class="{
  1406. rightW:
  1407. w.userid == userid || tType == 1 || tType == 4,
  1408. }"
  1409. >
  1410. 评分
  1411. </div>
  1412. <img
  1413. class="deleteImg"
  1414. src="../assets/deleteworks.png"
  1415. v-if="
  1416. w.userid == userid || tType == 1 || tType == 4
  1417. "
  1418. @click.stop="deleteWorks(w.wid)"
  1419. alt
  1420. />
  1421. </div>
  1422. <div class="worksName">
  1423. <div>{{ w.sName }}</div>
  1424. </div>
  1425. </div>
  1426. </div>
  1427. </div>
  1428. <div
  1429. v-if="
  1430. tType &&
  1431. tType == 2 &&
  1432. !sIsOpen &&
  1433. tool.tool.indexOf(4) != -1
  1434. "
  1435. class="worksBox"
  1436. >
  1437. <div
  1438. class="zuoyeYulan"
  1439. v-if="workStudent[toolIndex].length > 0"
  1440. >
  1441. <span>作业预览</span>
  1442. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1443. </div>
  1444. <div
  1445. class="worksDetailBox"
  1446. v-if="workStudent[toolIndex].length > 0"
  1447. >
  1448. <div
  1449. class="isWorksName"
  1450. v-for="(w, wIndex) in workStudent[toolIndex]"
  1451. :key="wIndex"
  1452. @click="
  1453. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1454. "
  1455. >
  1456. {{ w.sName }}
  1457. <img
  1458. class="deleteImg deleteImg2"
  1459. src="../assets/deleteworks.png"
  1460. v-if="w.userid == userid || tType == 1 || tType == 4"
  1461. @click.stop="deleteWorks(w.wid)"
  1462. alt
  1463. />
  1464. </div>
  1465. <!-- <div
  1466. class="works"
  1467. style="
  1468. width: 200px;
  1469. height: 140px;
  1470. border-radius: 10px;
  1471. box-shadow: 0 0 6px 1px #dfdada;
  1472. overflow: hidden;
  1473. "
  1474. v-for="(w, wIndex) in workStudent[toolIndex]"
  1475. :key="wIndex"
  1476. >
  1477. <div class="workImg">
  1478. <img
  1479. src="../assets/icon/works/noImg.png"
  1480. @click="
  1481. openTools(
  1482. 4,
  1483. toolIndex,
  1484. taskCount,
  1485. w.works,
  1486. w.sName
  1487. )
  1488. "
  1489. alt
  1490. />
  1491. </div>
  1492. <div class="worksName">
  1493. <div>{{ w.sName }}</div>
  1494. <div>{{ w.time }}</div>
  1495. </div>
  1496. </div> -->
  1497. </div>
  1498. </div>
  1499. <div
  1500. v-if="
  1501. tType &&
  1502. tType == 2 &&
  1503. !sIsOpen &&
  1504. tool.tool.indexOf(45) != -1
  1505. "
  1506. class="worksBox"
  1507. >
  1508. <div
  1509. class="zuoyeYulan"
  1510. v-if="workStudent[toolIndex].length > 0"
  1511. >
  1512. <span>作业预览</span>
  1513. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1514. </div>
  1515. <div
  1516. class="worksDetailBox"
  1517. v-if="workStudent[toolIndex].length > 0"
  1518. >
  1519. <div
  1520. class="isWorksName"
  1521. v-for="(w, wIndex) in workStudent[toolIndex]"
  1522. :key="wIndex"
  1523. @click="
  1524. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1525. "
  1526. >
  1527. {{ w.sName }}
  1528. <img
  1529. class="deleteImg deleteImg2"
  1530. src="../assets/deleteworks.png"
  1531. v-if="w.userid == userid || tType == 1 || tType == 4"
  1532. @click.stop="deleteWorks(w.wid)"
  1533. alt
  1534. />
  1535. </div>
  1536. </div>
  1537. </div>
  1538. <div
  1539. v-if="
  1540. tType &&
  1541. tType == 2 &&
  1542. !sIsOpen &&
  1543. tool.tool.indexOf(15) != -1
  1544. "
  1545. class="worksBox"
  1546. >
  1547. <div
  1548. class="zuoyeYulan"
  1549. v-if="workStudent[toolIndex].length > 0"
  1550. >
  1551. <span>作业预览</span>
  1552. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1553. </div>
  1554. <div
  1555. class="worksDetailBox"
  1556. v-if="workStudent[toolIndex].length > 0"
  1557. >
  1558. <div
  1559. class="works"
  1560. v-for="(w, wIndex) in workStudent[toolIndex]"
  1561. :key="wIndex"
  1562. >
  1563. <div class="workImg">
  1564. <!-- <img
  1565. src="../assets/icon/works/noImg.png"
  1566. @click="openTools(15, toolIndex, taskCount, w.works)"
  1567. alt=""
  1568. />-->
  1569. <div class="answerBg">
  1570. <!-- <div>{{ w.sName }}</div> -->
  1571. <el-tooltip
  1572. class="item"
  1573. effect="light"
  1574. :content="JSON.parse(w.works)[0].answer"
  1575. placement="top"
  1576. >
  1577. <div class="answerContent">
  1578. {{ JSON.parse(w.works)[0].answer }}
  1579. </div>
  1580. </el-tooltip>
  1581. <div
  1582. class="answerScore"
  1583. v-if="w.score"
  1584. @click.stop="openScore(w)"
  1585. :class="{
  1586. rightW:
  1587. w.userid == userid ||
  1588. tType == 1 ||
  1589. tType == 4,
  1590. }"
  1591. >
  1592. {{ JSON.parse(w.score).wScore }}分
  1593. </div>
  1594. <div
  1595. class="answerScore"
  1596. @click.stop="openScore(w)"
  1597. v-else-if="courseDetail.userid == userid"
  1598. :class="{
  1599. rightW:
  1600. w.userid == userid ||
  1601. tType == 1 ||
  1602. tType == 4,
  1603. }"
  1604. >
  1605. 评分
  1606. </div>
  1607. <img
  1608. class="deleteImg"
  1609. src="../assets/deleteworks.png"
  1610. v-if="
  1611. w.userid == userid || tType == 1 || tType == 4
  1612. "
  1613. @click.stop="deleteWorks(w.wid)"
  1614. alt
  1615. />
  1616. </div>
  1617. <div class="comment">
  1618. <div class="worksName">
  1619. <div>{{ w.sName }}</div>
  1620. </div>
  1621. </div>
  1622. </div>
  1623. </div>
  1624. </div>
  1625. </div>
  1626. <div
  1627. v-if="
  1628. tType &&
  1629. tType == 2 &&
  1630. !sIsOpen &&
  1631. tool.tool.indexOf(1) != -1
  1632. "
  1633. class="worksBox"
  1634. >
  1635. <div
  1636. class="zuoyeYulan"
  1637. v-if="workStudent[toolIndex].length > 0"
  1638. >
  1639. <span>作业预览</span>
  1640. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1641. </div>
  1642. <div
  1643. class="worksDetailBox"
  1644. v-if="workStudent[toolIndex].length > 0"
  1645. >
  1646. <div
  1647. class="works"
  1648. style="
  1649. width: 200px;
  1650. height: 140px;
  1651. margin: 10px 10px 10px 0;
  1652. box-shadow: 0 0 6px 1px #dfdada;
  1653. "
  1654. v-for="(w, wIndex) in workStudent[toolIndex]"
  1655. :key="wIndex"
  1656. >
  1657. <div class="workImg">
  1658. <img
  1659. :src="w.works"
  1660. @click="previewImg(w.works)"
  1661. alt
  1662. />
  1663. <div
  1664. class="answerScore"
  1665. v-if="w.score"
  1666. @click.stop="openScore(w)"
  1667. :class="{
  1668. rightW:
  1669. w.userid == userid || tType == 1 || tType == 4,
  1670. }"
  1671. >
  1672. {{ JSON.parse(w.score).wScore }}分
  1673. </div>
  1674. <div
  1675. class="answerScore"
  1676. @click.stop="openScore(w)"
  1677. v-else-if="courseDetail.userid == userid"
  1678. :class="{
  1679. rightW:
  1680. w.userid == userid || tType == 1 || tType == 4,
  1681. }"
  1682. >
  1683. 评分
  1684. </div>
  1685. <img
  1686. class="deleteImg"
  1687. src="../assets/deleteworks.png"
  1688. v-if="
  1689. w.userid == userid || tType == 1 || tType == 4
  1690. "
  1691. @click.stop="deleteWorks(w.wid)"
  1692. alt
  1693. />
  1694. </div>
  1695. <div class="worksName">
  1696. <div>{{ w.sName }}</div>
  1697. </div>
  1698. </div>
  1699. </div>
  1700. </div>
  1701. <div
  1702. v-if="
  1703. tType &&
  1704. tType == 2 &&
  1705. !sIsOpen &&
  1706. tool.tool.indexOf(3) != -1
  1707. "
  1708. class="worksBox"
  1709. >
  1710. <div
  1711. class="zuoyeYulan"
  1712. v-if="workStudent[toolIndex].length > 0"
  1713. >
  1714. <span>作业预览</span>
  1715. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1716. </div>
  1717. <div
  1718. class="worksDetailBox"
  1719. v-if="workStudent[toolIndex].length > 0"
  1720. >
  1721. <div
  1722. class="works"
  1723. style="
  1724. width: 200px;
  1725. height: 140px;
  1726. margin: 10px 10px 10px 0;
  1727. box-shadow: 0 0 6px 1px #dfdada;
  1728. "
  1729. v-for="(w, wIndex) in workStudent[toolIndex]"
  1730. :key="wIndex"
  1731. >
  1732. <div class="workImg">
  1733. <img
  1734. :src="w.works"
  1735. @click="previewImg(w.works)"
  1736. alt
  1737. />
  1738. <div
  1739. class="answerScore"
  1740. v-if="w.score"
  1741. @click.stop="openScore(w)"
  1742. :class="{
  1743. rightW:
  1744. w.userid == userid || tType == 1 || tType == 4,
  1745. }"
  1746. >
  1747. {{ JSON.parse(w.score).wScore }}分
  1748. </div>
  1749. <div
  1750. class="answerScore"
  1751. @click.stop="openScore(w)"
  1752. v-else-if="courseDetail.userid == userid"
  1753. :class="{
  1754. rightW:
  1755. w.userid == userid || tType == 1 || tType == 4,
  1756. }"
  1757. >
  1758. 评分
  1759. </div>
  1760. <img
  1761. class="deleteImg"
  1762. src="../assets/deleteworks.png"
  1763. v-if="
  1764. w.userid == userid || tType == 1 || tType == 4
  1765. "
  1766. @click.stop="deleteWorks(w.wid)"
  1767. alt
  1768. />
  1769. </div>
  1770. <div class="worksName">
  1771. <div>{{ w.sName }}</div>
  1772. </div>
  1773. </div>
  1774. </div>
  1775. </div>
  1776. <div
  1777. v-if="
  1778. tType &&
  1779. tType == 2 &&
  1780. !sIsOpen &&
  1781. tool.tool.indexOf(6) != -1
  1782. "
  1783. class="worksBox"
  1784. >
  1785. <div
  1786. class="zuoyeYulan"
  1787. v-if="workStudent[toolIndex].length > 0"
  1788. >
  1789. <span>作业预览</span>
  1790. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1791. </div>
  1792. <div
  1793. class="worksDetailBox"
  1794. v-if="workStudent[toolIndex].length > 0"
  1795. >
  1796. <div
  1797. class="works"
  1798. style="
  1799. width: 200px;
  1800. height: 140px;
  1801. margin: 10px 10px 10px 0;
  1802. box-shadow: 0 0 6px 1px #dfdada;
  1803. "
  1804. v-for="(w, wIndex) in workStudent[toolIndex]"
  1805. :key="wIndex"
  1806. >
  1807. <div class="workImg">
  1808. <img
  1809. :src="w.works"
  1810. @click="previewImg(w.works)"
  1811. alt
  1812. />
  1813. <div
  1814. class="answerScore"
  1815. v-if="w.score"
  1816. @click.stop="openScore(w)"
  1817. :class="{
  1818. rightW:
  1819. w.userid == userid || tType == 1 || tType == 4,
  1820. }"
  1821. >
  1822. {{ JSON.parse(w.score).wScore }}分
  1823. </div>
  1824. <div
  1825. class="answerScore"
  1826. @click.stop="openScore(w)"
  1827. v-else-if="courseDetail.userid == userid"
  1828. :class="{
  1829. rightW:
  1830. w.userid == userid || tType == 1 || tType == 4,
  1831. }"
  1832. >
  1833. 评分
  1834. </div>
  1835. <img
  1836. class="deleteImg"
  1837. src="../assets/deleteworks.png"
  1838. v-if="
  1839. w.userid == userid || tType == 1 || tType == 4
  1840. "
  1841. @click.stop="deleteWorks(w.wid)"
  1842. alt
  1843. />
  1844. </div>
  1845. <div class="worksName">
  1846. <div>{{ w.sName }}</div>
  1847. </div>
  1848. </div>
  1849. </div>
  1850. </div>
  1851. <div
  1852. v-if="
  1853. tType &&
  1854. tType == 2 &&
  1855. !sIsOpen &&
  1856. tool.tool.indexOf(7) != -1
  1857. "
  1858. class="worksBox"
  1859. >
  1860. <div
  1861. class="zuoyeYulan"
  1862. v-if="workStudent[toolIndex].length > 0"
  1863. >
  1864. <span>作业预览</span>
  1865. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1866. </div>
  1867. <div
  1868. class="worksDetailBox"
  1869. v-if="workStudent[toolIndex].length > 0"
  1870. >
  1871. <div
  1872. class="works"
  1873. style="
  1874. width: 200px;
  1875. height: 140px;
  1876. margin: 10px 10px 10px 0;
  1877. box-shadow: 0 0 6px 1px #dfdada;
  1878. "
  1879. v-for="(w, wIndex) in workStudent[toolIndex]"
  1880. :key="wIndex"
  1881. >
  1882. <div class="workImg">
  1883. <img
  1884. :src="w.works"
  1885. @click="previewImg(w.works)"
  1886. alt
  1887. />
  1888. <div
  1889. class="answerScore"
  1890. v-if="w.score"
  1891. @click.stop="openScore(w)"
  1892. :class="{
  1893. rightW:
  1894. w.userid == userid || tType == 1 || tType == 4,
  1895. }"
  1896. >
  1897. {{ JSON.parse(w.score).wScore }}分
  1898. </div>
  1899. <div
  1900. class="answerScore"
  1901. @click.stop="openScore(w)"
  1902. v-else-if="courseDetail.userid == userid"
  1903. :class="{
  1904. rightW:
  1905. w.userid == userid || tType == 1 || tType == 4,
  1906. }"
  1907. >
  1908. 评分
  1909. </div>
  1910. <img
  1911. class="deleteImg"
  1912. src="../assets/deleteworks.png"
  1913. v-if="
  1914. w.userid == userid || tType == 1 || tType == 4
  1915. "
  1916. @click.stop="deleteWorks(w.wid)"
  1917. alt
  1918. />
  1919. </div>
  1920. <div class="worksName">
  1921. <div>{{ w.sName }}</div>
  1922. </div>
  1923. </div>
  1924. </div>
  1925. </div>
  1926. <div
  1927. v-if="
  1928. tType &&
  1929. tType == 2 &&
  1930. !sIsOpen &&
  1931. tool.tool.indexOf(26) != -1
  1932. "
  1933. class="worksBox"
  1934. >
  1935. <div
  1936. class="zuoyeYulan"
  1937. v-if="workStudent[toolIndex].length > 0"
  1938. >
  1939. <span>作业预览</span>
  1940. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1941. </div>
  1942. <div
  1943. class="worksDetailBox"
  1944. v-if="workStudent[toolIndex].length > 0"
  1945. >
  1946. <div
  1947. class="works"
  1948. style="
  1949. width: 200px;
  1950. height: 140px;
  1951. margin: 10px 10px 10px 0;
  1952. box-shadow: 0 0 6px 1px #dfdada;
  1953. "
  1954. v-for="(w, wIndex) in workStudent[toolIndex]"
  1955. :key="wIndex"
  1956. >
  1957. <div class="workImg">
  1958. <img
  1959. :src="w.works"
  1960. @click="previewImg(w.works)"
  1961. alt
  1962. />
  1963. <img
  1964. class="deleteImg"
  1965. src="../assets/deleteworks.png"
  1966. v-if="
  1967. w.userid == userid || tType == 1 || tType == 4
  1968. "
  1969. @click.stop="deleteWorks(w.wid)"
  1970. alt
  1971. />
  1972. </div>
  1973. <div class="worksName">
  1974. <div>{{ w.sName }}</div>
  1975. </div>
  1976. </div>
  1977. </div>
  1978. </div>
  1979. <div
  1980. v-if="
  1981. tType &&
  1982. ((tType == 2 && sIsOpen == true) ||
  1983. tType == 1 ||
  1984. tType == 4) &&
  1985. tool.tool.indexOf(16) != -1
  1986. "
  1987. class="worksBox"
  1988. >
  1989. <div
  1990. class="zuoyeYulan"
  1991. v-if="
  1992. worksStudent.length &&
  1993. worksStudent[toolIndex].length > 0
  1994. "
  1995. >
  1996. <div class="worksTop">
  1997. <div>作业预览</div>
  1998. <div
  1999. class="corOpen"
  2000. @click="contract(toolIndex)"
  2001. v-if="
  2002. worksStudent[toolIndex].length > 6 &&
  2003. isCloseList[toolIndex].isClose == 0
  2004. "
  2005. >
  2006. 收缩
  2007. </div>
  2008. <div
  2009. class="corOpen"
  2010. @click="contract(toolIndex)"
  2011. v-if="isCloseList[toolIndex].isClose == 1"
  2012. >
  2013. 展开
  2014. </div>
  2015. </div>
  2016. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2017. </div>
  2018. <div
  2019. class="group_workBox"
  2020. v-for="(g, gindex) in courseGroup.group"
  2021. :key="gindex"
  2022. >
  2023. <div class="group_box">
  2024. <div class="group_title">
  2025. <el-tooltip
  2026. class="item"
  2027. effect="light"
  2028. :content="g.name"
  2029. placement="top"
  2030. >
  2031. <div class="group_name">{{ g.name }}</div>
  2032. </el-tooltip>
  2033. </div>
  2034. <div
  2035. class="group_work"
  2036. v-if="
  2037. g.works &&
  2038. g.works.length &&
  2039. g.works[toolIndex].length
  2040. "
  2041. >
  2042. <div
  2043. class="works"
  2044. style="
  2045. width: 200px;
  2046. height: 140px;
  2047. margin: 10px 10px 10px 0;
  2048. border-radius: 15px;
  2049. box-shadow: 0 0 6px 1px #dfdada;
  2050. "
  2051. v-for="(w, wIndex) in g.works[toolIndex]"
  2052. :key="wIndex"
  2053. :class="w.type == 1 ? 'isTypeOne' : ''"
  2054. >
  2055. <div class="workImg" v-if="w.type == 0">
  2056. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2057. <img
  2058. :src="w.works"
  2059. @click="previewImg(w.works)"
  2060. alt
  2061. />
  2062. <div
  2063. class="answerScore"
  2064. v-if="w.score"
  2065. @click.stop="openScore(w)"
  2066. :class="{
  2067. rightW:
  2068. w.userid == userid ||
  2069. tType == 1 ||
  2070. tType == 4 ||
  2071. w.ateacher == userid,
  2072. }"
  2073. >
  2074. {{ JSON.parse(w.score).wScore }}分
  2075. </div>
  2076. <div
  2077. class="answerScore"
  2078. @click.stop="openScore(w)"
  2079. v-else-if="courseDetail.userid == userid"
  2080. :class="{
  2081. rightW:
  2082. w.userid == userid ||
  2083. tType == 1 ||
  2084. tType == 4 ||
  2085. w.ateacher == userid,
  2086. }"
  2087. >
  2088. 评分
  2089. </div>
  2090. <img
  2091. class="deleteImg"
  2092. src="../assets/deleteworks.png"
  2093. v-if="
  2094. w.userid == userid || tType == 1 || tType == 4
  2095. "
  2096. @click.stop="deleteWorks(w.wid)"
  2097. alt
  2098. />
  2099. </div>
  2100. <div class="workImg" v-if="w.type == 1">
  2101. <img :src="word" @click="openFile(w.works)" alt />
  2102. <!-- @click="openFile(w.works)" -->
  2103. <div
  2104. class="answerScore"
  2105. v-if="w.score"
  2106. @click.stop="openScore(w)"
  2107. :class="{
  2108. rightW:
  2109. w.userid == userid ||
  2110. tType == 1 ||
  2111. tType == 4 ||
  2112. w.ateacher == userid,
  2113. }"
  2114. >
  2115. {{ JSON.parse(w.score).wScore }}分
  2116. </div>
  2117. <div
  2118. class="answerScore"
  2119. @click.stop="openScore(w)"
  2120. v-else-if="courseDetail.userid == userid"
  2121. :class="{
  2122. rightW:
  2123. w.userid == userid ||
  2124. tType == 1 ||
  2125. tType == 4 ||
  2126. w.ateacher == userid,
  2127. }"
  2128. >
  2129. 评分
  2130. </div>
  2131. <img
  2132. class="deleteImg"
  2133. src="../assets/deleteworks.png"
  2134. v-if="
  2135. w.userid == userid || tType == 1 || tType == 4
  2136. "
  2137. @click.stop="deleteWorks(w.wid)"
  2138. alt
  2139. />
  2140. </div>
  2141. <div class="workImg" v-if="w.type == 3">
  2142. <img
  2143. style="cursor: pointer"
  2144. :src="video"
  2145. @click="openVideo(w)"
  2146. alt
  2147. />
  2148. <!-- @click="openVideo(w.works)" -->
  2149. <div
  2150. class="answerScore"
  2151. v-if="w.score"
  2152. @click.stop="openScore(w)"
  2153. :class="{
  2154. rightW:
  2155. w.userid == userid ||
  2156. tType == 1 ||
  2157. tType == 4 ||
  2158. w.ateacher == userid,
  2159. }"
  2160. >
  2161. {{ JSON.parse(w.score).wScore }}分
  2162. </div>
  2163. <div
  2164. class="answerScore"
  2165. @click.stop="openScore(w)"
  2166. v-else-if="courseDetail.userid == userid"
  2167. :class="{
  2168. rightW:
  2169. w.userid == userid ||
  2170. tType == 1 ||
  2171. tType == 4 ||
  2172. w.ateacher == userid,
  2173. }"
  2174. >
  2175. 评分
  2176. </div>
  2177. <img
  2178. class="deleteImg"
  2179. src="../assets/deleteworks.png"
  2180. v-if="
  2181. w.userid == userid || tType == 1 || tType == 4
  2182. "
  2183. @click.stop="deleteWorks(w.wid)"
  2184. alt
  2185. />
  2186. </div>
  2187. <div class="workImg" v-if="w.type == 12">
  2188. <img
  2189. style="cursor: pointer"
  2190. :src="word2"
  2191. @click="downloadFile(w.works)"
  2192. alt
  2193. />
  2194. <!-- @click="openVideo(w.works)" -->
  2195. <div
  2196. class="answerScore"
  2197. v-if="w.score"
  2198. @click.stop="openScore(w)"
  2199. :class="{
  2200. rightW:
  2201. w.userid == userid ||
  2202. tType == 1 ||
  2203. tType == 4 ||
  2204. w.ateacher == userid,
  2205. }"
  2206. >
  2207. {{ JSON.parse(w.score).wScore }}分
  2208. </div>
  2209. <div
  2210. class="answerScore"
  2211. @click.stop="openScore(w)"
  2212. v-else-if="courseDetail.userid == userid"
  2213. :class="{
  2214. rightW:
  2215. w.userid == userid ||
  2216. tType == 1 ||
  2217. tType == 4 ||
  2218. w.ateacher == userid,
  2219. }"
  2220. >
  2221. 评分
  2222. </div>
  2223. <img
  2224. class="deleteImg"
  2225. src="../assets/deleteworks.png"
  2226. v-if="
  2227. w.userid == userid || tType == 1 || tType == 4
  2228. "
  2229. @click.stop="deleteWorks(w.wid)"
  2230. alt
  2231. />
  2232. </div>
  2233. <div class="comment" style="min-width: 200px">
  2234. <div class="worksName">
  2235. <div>{{ w.sName }}</div>
  2236. </div>
  2237. <div class="commentList">
  2238. <div class="commentList">
  2239. <div
  2240. class="commentImg"
  2241. @click="
  2242. isLikes(w.wid, userid, 1, null, w.isLikes)
  2243. "
  2244. >
  2245. <img
  2246. :src="w.isLikes == true ? likes : noLikes"
  2247. alt=""
  2248. />
  2249. </div>
  2250. <div>{{ w.likesCount }}</div>
  2251. </div>
  2252. <div
  2253. class="commentList"
  2254. style="margin-right: 15px"
  2255. >
  2256. <div
  2257. class="commentImg"
  2258. @click="
  2259. commentOther(
  2260. w,
  2261. toolIndex,
  2262. wIndex,
  2263. null,
  2264. g.id
  2265. )
  2266. "
  2267. >
  2268. <img
  2269. src="../assets/icon/comment/comment.png"
  2270. alt=""
  2271. />
  2272. </div>
  2273. <div>{{ w.commentCount }}</div>
  2274. </div>
  2275. </div>
  2276. </div>
  2277. </div>
  2278. </div>
  2279. <div class="group_work" v-else>暂无提交作业</div>
  2280. </div>
  2281. </div>
  2282. <div
  2283. class="worksDetailBox"
  2284. v-if="
  2285. worksStudent.length &&
  2286. worksStudent[toolIndex].length > 0
  2287. "
  2288. >
  2289. <div
  2290. class="works"
  2291. style="
  2292. width: 200px;
  2293. height: 140px;
  2294. margin: 10px 10px 10px 0;
  2295. border-radius: 15px;
  2296. box-shadow: 0 0 6px 1px #dfdada;
  2297. "
  2298. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2299. 0
  2300. ? worksStudent[toolIndex]
  2301. : worksStudent[toolIndex].slice(0, 6)"
  2302. :key="wIndex"
  2303. :class="w.type == 1 ? 'isTypeOne' : ''"
  2304. >
  2305. <div class="workImg" v-if="w.type == 0">
  2306. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2307. <img
  2308. :src="w.works"
  2309. @click="previewImg(w.works)"
  2310. alt
  2311. />
  2312. <div
  2313. class="answerScore"
  2314. v-if="w.score"
  2315. @click.stop="openScore(w)"
  2316. :class="{
  2317. rightW:
  2318. w.userid == userid ||
  2319. tType == 1 ||
  2320. tType == 4 ||
  2321. w.ateacher == userid,
  2322. }"
  2323. >
  2324. {{ JSON.parse(w.score).wScore }}分
  2325. </div>
  2326. <div
  2327. class="answerScore"
  2328. @click.stop="openScore(w)"
  2329. v-else-if="courseDetail.userid == userid"
  2330. :class="{
  2331. rightW:
  2332. w.userid == userid ||
  2333. tType == 1 ||
  2334. tType == 4 ||
  2335. w.ateacher == userid,
  2336. }"
  2337. >
  2338. 评分
  2339. </div>
  2340. <img
  2341. class="deleteImg"
  2342. src="../assets/deleteworks.png"
  2343. v-if="
  2344. w.userid == userid || tType == 1 || tType == 4
  2345. "
  2346. @click.stop="deleteWorks(w.wid)"
  2347. alt
  2348. />
  2349. </div>
  2350. <div class="workImg" v-if="w.type == 1">
  2351. <img :src="word" @click="openFile(w.works)" alt />
  2352. <!-- @click="openFile(w.works)" -->
  2353. <div
  2354. class="answerScore"
  2355. v-if="w.score"
  2356. @click.stop="openScore(w)"
  2357. :class="{
  2358. rightW:
  2359. w.userid == userid ||
  2360. tType == 1 ||
  2361. tType == 4 ||
  2362. w.ateacher == userid,
  2363. }"
  2364. >
  2365. {{ JSON.parse(w.score).wScore }}分
  2366. </div>
  2367. <div
  2368. class="answerScore"
  2369. @click.stop="openScore(w)"
  2370. v-else-if="courseDetail.userid == userid"
  2371. :class="{
  2372. rightW:
  2373. w.userid == userid ||
  2374. tType == 1 ||
  2375. tType == 4 ||
  2376. w.ateacher == userid,
  2377. }"
  2378. >
  2379. 评分
  2380. </div>
  2381. <img
  2382. class="deleteImg"
  2383. src="../assets/deleteworks.png"
  2384. v-if="
  2385. w.userid == userid || tType == 1 || tType == 4
  2386. "
  2387. @click.stop="deleteWorks(w.wid)"
  2388. alt
  2389. />
  2390. </div>
  2391. <div class="workImg" v-if="w.type == 3">
  2392. <img
  2393. style="cursor: pointer"
  2394. :src="video"
  2395. @click="openVideo(w)"
  2396. alt
  2397. />
  2398. <!-- @click="openVideo(w.works)" -->
  2399. <div
  2400. class="answerScore"
  2401. v-if="w.score"
  2402. @click.stop="openScore(w)"
  2403. :class="{
  2404. rightW:
  2405. w.userid == userid ||
  2406. tType == 1 ||
  2407. tType == 4 ||
  2408. w.ateacher == userid,
  2409. }"
  2410. >
  2411. {{ JSON.parse(w.score).wScore }}分
  2412. </div>
  2413. <div
  2414. class="answerScore"
  2415. @click.stop="openScore(w)"
  2416. v-else-if="courseDetail.userid == userid"
  2417. :class="{
  2418. rightW:
  2419. w.userid == userid ||
  2420. tType == 1 ||
  2421. tType == 4 ||
  2422. w.ateacher == userid,
  2423. }"
  2424. >
  2425. 评分
  2426. </div>
  2427. <img
  2428. class="deleteImg"
  2429. src="../assets/deleteworks.png"
  2430. v-if="
  2431. w.userid == userid || tType == 1 || tType == 4
  2432. "
  2433. @click.stop="deleteWorks(w.wid)"
  2434. alt
  2435. />
  2436. </div>
  2437. <div class="workImg" v-if="w.type == 12">
  2438. <img
  2439. style="cursor: pointer"
  2440. :src="word2"
  2441. @click="downloadFile(w.works)"
  2442. alt
  2443. />
  2444. <!-- @click="openVideo(w.works)" -->
  2445. <div
  2446. class="answerScore"
  2447. v-if="w.score"
  2448. @click.stop="openScore(w)"
  2449. :class="{
  2450. rightW:
  2451. w.userid == userid ||
  2452. tType == 1 ||
  2453. tType == 4 ||
  2454. w.ateacher == userid,
  2455. }"
  2456. >
  2457. {{ JSON.parse(w.score).wScore }}分
  2458. </div>
  2459. <div
  2460. class="answerScore"
  2461. @click.stop="openScore(w)"
  2462. v-else-if="courseDetail.userid == userid"
  2463. :class="{
  2464. rightW:
  2465. w.userid == userid ||
  2466. tType == 1 ||
  2467. tType == 4 ||
  2468. w.ateacher == userid,
  2469. }"
  2470. >
  2471. 评分
  2472. </div>
  2473. <img
  2474. class="deleteImg"
  2475. src="../assets/deleteworks.png"
  2476. v-if="
  2477. w.userid == userid || tType == 1 || tType == 4
  2478. "
  2479. @click.stop="deleteWorks(w.wid)"
  2480. alt
  2481. />
  2482. </div>
  2483. <div class="comment" style="min-width: 200px">
  2484. <div class="worksName">
  2485. <div>{{ w.sName }}</div>
  2486. </div>
  2487. <div class="commentList">
  2488. <div class="commentList">
  2489. <div
  2490. class="commentImg"
  2491. @click="
  2492. isLikes(w.wid, userid, 1, null, w.isLikes)
  2493. "
  2494. >
  2495. <img
  2496. :src="w.isLikes == true ? likes : noLikes"
  2497. alt=""
  2498. />
  2499. </div>
  2500. <div>{{ w.likesCount }}</div>
  2501. </div>
  2502. <div class="commentList" style="margin-right: 15px">
  2503. <div
  2504. class="commentImg"
  2505. @click="commentOther(w, toolIndex, wIndex)"
  2506. >
  2507. <img
  2508. src="../assets/icon/comment/comment.png"
  2509. alt=""
  2510. />
  2511. </div>
  2512. <div>{{ w.commentCount }}</div>
  2513. </div>
  2514. </div>
  2515. </div>
  2516. </div>
  2517. </div>
  2518. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  2519. <div class="noWorksS">
  2520. <div
  2521. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2522. :key="sIndex"
  2523. class="noWorksName"
  2524. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2525. >
  2526. {{ s.student }}
  2527. </div>
  2528. </div>
  2529. </div>
  2530. <div
  2531. v-if="
  2532. tType &&
  2533. ((tType == 2 && sIsOpen == true) ||
  2534. tType == 1 ||
  2535. tType == 4) &&
  2536. tool.tool.indexOf(32) != -1
  2537. "
  2538. class="worksBox"
  2539. >
  2540. <div
  2541. class="zuoyeYulan"
  2542. v-if="
  2543. worksStudent.length &&
  2544. worksStudent[toolIndex].length > 0
  2545. "
  2546. >
  2547. <div class="worksTop">
  2548. <div>作业预览</div>
  2549. <div
  2550. class="corOpen"
  2551. @click="contract(toolIndex)"
  2552. v-if="
  2553. worksStudent[toolIndex].length > 6 &&
  2554. isCloseList[toolIndex].isClose == 0
  2555. "
  2556. >
  2557. 收缩
  2558. </div>
  2559. <div
  2560. class="corOpen"
  2561. @click="contract(toolIndex)"
  2562. v-if="isCloseList[toolIndex].isClose == 1"
  2563. >
  2564. 展开
  2565. </div>
  2566. </div>
  2567. </div>
  2568. <div
  2569. class="worksDetailBox"
  2570. v-if="
  2571. worksStudent.length &&
  2572. worksStudent[toolIndex].length > 0
  2573. "
  2574. >
  2575. <div
  2576. class="works"
  2577. style="
  2578. width: 200px;
  2579. height: 140px;
  2580. margin: 10px 10px 10px 0;
  2581. border-radius: 15px;
  2582. box-shadow: 0 0 6px 1px #dfdada;
  2583. "
  2584. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2585. 0
  2586. ? worksStudent[toolIndex]
  2587. : worksStudent[toolIndex].slice(0, 6)"
  2588. :key="wIndex"
  2589. :class="w.type == 1 ? 'isTypeOne' : ''"
  2590. >
  2591. <div class="workImg">
  2592. <img
  2593. :src="word2"
  2594. @click="downloadFile(w.works)"
  2595. alt
  2596. />
  2597. <div
  2598. class="answerScore"
  2599. v-if="w.score"
  2600. @click.stop="openScore(w)"
  2601. :class="{
  2602. rightW:
  2603. w.userid == userid ||
  2604. tType == 1 ||
  2605. tType == 4 ||
  2606. w.ateacher == userid,
  2607. }"
  2608. >
  2609. {{ JSON.parse(w.score).wScore }}分
  2610. </div>
  2611. <div
  2612. class="answerScore"
  2613. @click.stop="openScore(w)"
  2614. v-else-if="courseDetail.userid == userid"
  2615. :class="{
  2616. rightW:
  2617. w.userid == userid ||
  2618. tType == 1 ||
  2619. tType == 4 ||
  2620. w.ateacher == userid,
  2621. }"
  2622. >
  2623. 评分
  2624. </div>
  2625. <img
  2626. class="deleteImg"
  2627. src="../assets/deleteworks.png"
  2628. v-if="
  2629. w.userid == userid || tType == 1 || tType == 4
  2630. "
  2631. @click.stop="deleteWorks(w.wid)"
  2632. alt
  2633. />
  2634. </div>
  2635. <div class="comment" style="min-width: 200px">
  2636. <div class="worksName">
  2637. <div>{{ w.sName }}</div>
  2638. </div>
  2639. <div class="commentList">
  2640. <div class="commentList">
  2641. <div
  2642. class="commentImg"
  2643. @click="
  2644. isLikes(w.wid, userid, 1, null, w.isLikes)
  2645. "
  2646. >
  2647. <img
  2648. :src="w.isLikes == true ? likes : noLikes"
  2649. alt=""
  2650. />
  2651. </div>
  2652. <div>{{ w.likesCount }}</div>
  2653. </div>
  2654. <div class="commentList" style="margin-right: 15px">
  2655. <div
  2656. class="commentImg"
  2657. @click="commentOther(w, toolIndex, wIndex)"
  2658. >
  2659. <img
  2660. src="../assets/icon/comment/comment.png"
  2661. alt=""
  2662. />
  2663. </div>
  2664. <div>{{ w.commentCount }}</div>
  2665. </div>
  2666. </div>
  2667. </div>
  2668. </div>
  2669. </div>
  2670. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  2671. <div class="noWorksS">
  2672. <div
  2673. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2674. :key="sIndex"
  2675. class="noWorksName"
  2676. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2677. >
  2678. {{ s.student }}
  2679. </div>
  2680. </div>
  2681. </div>
  2682. <div
  2683. v-if="
  2684. tType &&
  2685. ((tType == 2 && sIsOpen == true) ||
  2686. tType == 1 ||
  2687. tType == 4) &&
  2688. tool.tool.indexOf(57) != -1
  2689. "
  2690. class="worksBox"
  2691. >
  2692. <div
  2693. class="zuoyeYulan"
  2694. v-if="
  2695. worksStudent.length &&
  2696. worksStudent[toolIndex].length > 0
  2697. "
  2698. >
  2699. <div class="worksTop">
  2700. <div>作业预览</div>
  2701. <div
  2702. class="corOpen"
  2703. @click="contract(toolIndex)"
  2704. v-if="
  2705. worksStudent[toolIndex].length > 6 &&
  2706. isCloseList[toolIndex].isClose == 0
  2707. "
  2708. >
  2709. 收缩
  2710. </div>
  2711. <div
  2712. class="corOpen"
  2713. @click="contract(toolIndex)"
  2714. v-if="isCloseList[toolIndex].isClose == 1"
  2715. >
  2716. 展开
  2717. </div>
  2718. </div>
  2719. </div>
  2720. <div
  2721. class="worksDetailBox"
  2722. v-if="
  2723. worksStudent.length &&
  2724. worksStudent[toolIndex].length > 0
  2725. "
  2726. >
  2727. <div
  2728. class="works"
  2729. style="
  2730. width: 200px;
  2731. height: 140px;
  2732. margin: 10px 10px 10px 0;
  2733. border-radius: 15px;
  2734. box-shadow: 0 0 6px 1px #dfdada;
  2735. "
  2736. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2737. 0
  2738. ? worksStudent[toolIndex]
  2739. : worksStudent[toolIndex].slice(0, 6)"
  2740. :key="wIndex"
  2741. :class="w.type == 1 ? 'isTypeOne' : ''"
  2742. >
  2743. <div class="workImg">
  2744. <img
  2745. :src="word2"
  2746. @click="downloadFile(w.works)"
  2747. alt
  2748. />
  2749. <div
  2750. class="answerScore"
  2751. v-if="w.score"
  2752. @click.stop="openScore(w)"
  2753. :class="{
  2754. rightW:
  2755. w.userid == userid ||
  2756. tType == 1 ||
  2757. tType == 4 ||
  2758. w.ateacher == userid,
  2759. }"
  2760. >
  2761. {{ JSON.parse(w.score).wScore }}分
  2762. </div>
  2763. <div
  2764. class="answerScore"
  2765. @click.stop="openScore(w)"
  2766. v-else-if="courseDetail.userid == userid"
  2767. :class="{
  2768. rightW:
  2769. w.userid == userid ||
  2770. tType == 1 ||
  2771. tType == 4 ||
  2772. w.ateacher == userid,
  2773. }"
  2774. >
  2775. 评分
  2776. </div>
  2777. <img
  2778. class="deleteImg"
  2779. src="../assets/deleteworks.png"
  2780. v-if="
  2781. w.userid == userid || tType == 1 || tType == 4
  2782. "
  2783. @click.stop="deleteWorks(w.wid)"
  2784. alt
  2785. />
  2786. </div>
  2787. <div class="comment" style="min-width: 200px">
  2788. <div class="worksName">
  2789. <div>{{ w.sName }}</div>
  2790. </div>
  2791. <div class="commentList">
  2792. <div class="commentList">
  2793. <div
  2794. class="commentImg"
  2795. @click="
  2796. isLikes(w.wid, userid, 1, null, w.isLikes)
  2797. "
  2798. >
  2799. <img
  2800. :src="w.isLikes == true ? likes : noLikes"
  2801. alt=""
  2802. />
  2803. </div>
  2804. <div>{{ w.likesCount }}</div>
  2805. </div>
  2806. <div class="commentList" style="margin-right: 15px">
  2807. <div
  2808. class="commentImg"
  2809. @click="commentOther(w, toolIndex, wIndex)"
  2810. >
  2811. <img
  2812. src="../assets/icon/comment/comment.png"
  2813. alt=""
  2814. />
  2815. </div>
  2816. <div>{{ w.commentCount }}</div>
  2817. </div>
  2818. </div>
  2819. </div>
  2820. </div>
  2821. </div>
  2822. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  2823. <div class="noWorksS">
  2824. <div
  2825. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2826. :key="sIndex"
  2827. class="noWorksName"
  2828. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  2829. >
  2830. {{ s.student }}
  2831. </div>
  2832. </div>
  2833. </div>
  2834. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2835. <div
  2836. class="zuoyeYulan"
  2837. v-if="
  2838. worksStudent.length &&
  2839. worksStudent[toolIndex].length > 0
  2840. "
  2841. >
  2842. <span>作业预览</span>
  2843. <div
  2844. class="corOpen"
  2845. @click="contract(toolIndex)"
  2846. v-if="
  2847. worksStudent[toolIndex].length > 6 &&
  2848. isCloseList[toolIndex].isClose == 0
  2849. "
  2850. >
  2851. 收缩
  2852. </div>
  2853. <div
  2854. class="corOpen"
  2855. @click="contract(toolIndex)"
  2856. v-if="isCloseList[toolIndex].isClose == 1"
  2857. >
  2858. 展开
  2859. </div>
  2860. </div>
  2861. <div
  2862. class="worksDetailBox"
  2863. v-if="
  2864. worksStudent.length &&
  2865. worksStudent[toolIndex].length > 0
  2866. "
  2867. >
  2868. <div
  2869. class="works"
  2870. style="
  2871. width: 200px;
  2872. height: 140px;
  2873. margin: 10px 10px 10px 0;
  2874. border-radius: 15px;
  2875. box-shadow: 0 0 6px 1px #dfdada;
  2876. "
  2877. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2878. 0
  2879. ? worksStudent[toolIndex]
  2880. : worksStudent[toolIndex].slice(0, 6)"
  2881. :key="wIndex"
  2882. :class="w.type == 1 ? 'isTypeOne' : ''"
  2883. >
  2884. <div class="workImg" v-if="w.type == 0">
  2885. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2886. <img
  2887. :src="w.works"
  2888. @click="previewImg(w.works)"
  2889. alt
  2890. />
  2891. <div
  2892. class="answerScore"
  2893. v-if="w.score"
  2894. @click.stop="openScore(w)"
  2895. :class="{
  2896. rightW:
  2897. w.userid == userid ||
  2898. tType == 1 ||
  2899. tType == 4 ||
  2900. w.ateacher == userid,
  2901. }"
  2902. >
  2903. {{ JSON.parse(w.score).wScore }}分
  2904. </div>
  2905. <div
  2906. class="answerScore"
  2907. @click.stop="openScore(w)"
  2908. v-else-if="courseDetail.userid == userid"
  2909. :class="{
  2910. rightW:
  2911. w.userid == userid ||
  2912. tType == 1 ||
  2913. tType == 4 ||
  2914. w.ateacher == userid,
  2915. }"
  2916. >
  2917. 评分
  2918. </div>
  2919. <img
  2920. class="deleteImg"
  2921. src="../assets/deleteworks.png"
  2922. v-if="
  2923. w.userid == userid || tType == 1 || tType == 4
  2924. "
  2925. @click.stop="deleteWorks(w.wid)"
  2926. alt
  2927. />
  2928. </div>
  2929. <div
  2930. class="workImg"
  2931. style="cursor: pointer"
  2932. v-if="w.type == 1"
  2933. >
  2934. <img :src="word" @click="openFile(w.works)" alt />
  2935. <!-- @click="openFile(w.works)" -->
  2936. <div
  2937. class="answerScore"
  2938. v-if="w.score"
  2939. @click.stop="openScore(w)"
  2940. :class="{
  2941. rightW:
  2942. w.userid == userid ||
  2943. tType == 1 ||
  2944. tType == 4 ||
  2945. w.ateacher == userid,
  2946. }"
  2947. >
  2948. {{ JSON.parse(w.score).wScore }}分
  2949. </div>
  2950. <div
  2951. class="answerScore"
  2952. @click.stop="openScore(w)"
  2953. v-else-if="courseDetail.userid == userid"
  2954. :class="{
  2955. rightW:
  2956. w.userid == userid ||
  2957. tType == 1 ||
  2958. tType == 4 ||
  2959. w.ateacher == userid,
  2960. }"
  2961. >
  2962. 评分
  2963. </div>
  2964. <img
  2965. class="deleteImg"
  2966. src="../assets/deleteworks.png"
  2967. v-if="
  2968. w.userid == userid || tType == 1 || tType == 4
  2969. "
  2970. @click.stop="deleteWorks(w.wid)"
  2971. alt
  2972. />
  2973. </div>
  2974. <div class="workImg" v-if="w.type == 3">
  2975. <img
  2976. style="cursor: pointer"
  2977. :src="video"
  2978. @click="openVideo(w)"
  2979. alt
  2980. />
  2981. <!-- @click="openVideo(w.works)" -->
  2982. <div
  2983. class="answerScore"
  2984. v-if="w.score"
  2985. @click.stop="openScore(w)"
  2986. :class="{
  2987. rightW:
  2988. w.userid == userid ||
  2989. tType == 1 ||
  2990. tType == 4 ||
  2991. w.ateacher == userid,
  2992. }"
  2993. >
  2994. {{ JSON.parse(w.score).wScore }}分
  2995. </div>
  2996. <div
  2997. class="answerScore"
  2998. @click.stop="openScore(w)"
  2999. v-else-if="courseDetail.userid == userid"
  3000. :class="{
  3001. rightW:
  3002. w.userid == userid ||
  3003. tType == 1 ||
  3004. tType == 4 ||
  3005. w.ateacher == userid,
  3006. }"
  3007. >
  3008. 评分
  3009. </div>
  3010. <img
  3011. class="deleteImg"
  3012. src="../assets/deleteworks.png"
  3013. v-if="
  3014. w.userid == userid || tType == 1 || tType == 4
  3015. "
  3016. @click.stop="deleteWorks(w.wid)"
  3017. alt
  3018. />
  3019. </div>
  3020. <div class="comment" style="min-width: 200px">
  3021. <div class="worksName">
  3022. <div
  3023. style="cursor: pointer"
  3024. @click="openSname(w.sName, w.wid, toolIndex)"
  3025. >
  3026. {{ w.sName }}
  3027. </div>
  3028. </div>
  3029. <div class="commentList">
  3030. <div class="commentList">
  3031. <div
  3032. class="commentImg"
  3033. @click="
  3034. isLikes(w.wid, userid, 1, null, w.isLikes)
  3035. "
  3036. >
  3037. <img
  3038. :src="w.isLikes == true ? likes : noLikes"
  3039. alt=""
  3040. />
  3041. </div>
  3042. <div>{{ w.likesCount }}</div>
  3043. </div>
  3044. <div class="commentList" style="margin-right: 15px">
  3045. <div
  3046. class="commentImg"
  3047. @click="commentOther(w, toolIndex, wIndex)"
  3048. >
  3049. <img
  3050. src="../assets/icon/comment/comment.png"
  3051. alt=""
  3052. />
  3053. </div>
  3054. <div>{{ w.commentCount }}</div>
  3055. </div>
  3056. </div>
  3057. </div>
  3058. </div>
  3059. </div>
  3060. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  3061. <div class="noWorksS">
  3062. <div
  3063. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3064. :key="sIndex"
  3065. class="noWorksName"
  3066. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3067. >
  3068. {{ s.student }}
  3069. </div>
  3070. </div>
  3071. </div>
  3072. <div
  3073. v-if="
  3074. tType &&
  3075. ((tType == 2 && sIsOpen == true) ||
  3076. tType == 1 ||
  3077. tType == 4) &&
  3078. tool.tool.indexOf(4) != -1 &&
  3079. (tool.askJson[0].answer ||
  3080. tool.askJson[0].answer === 0) &&
  3081. checkJson[toolIndex].length
  3082. "
  3083. class="xuan_right_box"
  3084. >
  3085. <div
  3086. class="tool_right_box"
  3087. v-for="(item, index) in tool.askJson"
  3088. :key="index"
  3089. >
  3090. <div>
  3091. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  3092. </div>
  3093. <div class="right_box_xuan">
  3094. <span>正确率</span>
  3095. <span>{{
  3096. (checkJson[toolIndex][index].right
  3097. ? checkJson[toolIndex][index].right
  3098. : 0) + "%"
  3099. }}</span>
  3100. </div>
  3101. </div>
  3102. </div>
  3103. <div
  3104. class="xuan_right_box"
  3105. style="background: unset"
  3106. v-if="
  3107. tType &&
  3108. ((tType == 2 && sIsOpen == true) ||
  3109. tType == 1 ||
  3110. tType == 4) &&
  3111. tool.tool.indexOf(4) != -1
  3112. "
  3113. >
  3114. <AskStatic
  3115. v-if="
  3116. worksStudent.length &&
  3117. worksStudent[toolIndex].length > 0
  3118. "
  3119. :askJSON="tool"
  3120. :checkJson="checkJson[toolIndex]"
  3121. ></AskStatic>
  3122. </div>
  3123. <div
  3124. v-if="
  3125. tType &&
  3126. ((tType == 2 && sIsOpen == true) ||
  3127. tType == 1 ||
  3128. tType == 4) &&
  3129. tool.tool.indexOf(4) != -1
  3130. "
  3131. class="worksBox"
  3132. >
  3133. <div
  3134. class="zuoyeYulan"
  3135. v-if="
  3136. worksStudent.length &&
  3137. worksStudent[toolIndex].length > 0
  3138. "
  3139. >
  3140. <div class="worksTop">
  3141. <div>作业预览</div>
  3142. <div
  3143. class="corOpen"
  3144. @click="contract(toolIndex)"
  3145. v-if="
  3146. worksStudent[toolIndex].length > 6 &&
  3147. isCloseList[toolIndex].isClose == 0
  3148. "
  3149. >
  3150. 收缩
  3151. </div>
  3152. <div
  3153. class="corOpen"
  3154. @click="contract(toolIndex)"
  3155. v-if="isCloseList[toolIndex].isClose == 1"
  3156. >
  3157. 展开
  3158. </div>
  3159. </div>
  3160. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3161. </div>
  3162. <div>
  3163. <div
  3164. class="worksDetailBox"
  3165. v-if="
  3166. worksStudent.length &&
  3167. worksStudent[toolIndex].length > 0
  3168. "
  3169. >
  3170. <div
  3171. v-for="(w, wIndex) in isCloseList[toolIndex]
  3172. .isClose == 0
  3173. ? worksStudent[toolIndex]
  3174. : worksStudent[toolIndex].slice(0, 6)"
  3175. :key="wIndex"
  3176. class="isWorksName"
  3177. @click="
  3178. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3179. "
  3180. >
  3181. {{ w.sName }}
  3182. <img
  3183. class="deleteImg deleteImg2"
  3184. src="../assets/deleteworks.png"
  3185. v-if="
  3186. w.userid == userid || tType == 1 || tType == 4
  3187. "
  3188. @click.stop="deleteWorks(w.wid)"
  3189. alt
  3190. />
  3191. </div>
  3192. <!-- <div class="works" style="
  3193. width: 200px;
  3194. height: 140px;
  3195. border-radius: 10px;
  3196. box-shadow: 0 0 6px 1px #dfdada;
  3197. overflow: hidden;
  3198. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3199. <div class="workImg">
  3200. <img src="../assets/icon/works/noImg.png" @click="
  3201. openTools(
  3202. 4,
  3203. toolIndex,
  3204. taskCount,
  3205. w.works,
  3206. w.sName
  3207. )
  3208. " alt />
  3209. </div>
  3210. <div class="worksName">
  3211. <div>{{ w.sName }}</div>
  3212. <div>{{ w.time }}</div>
  3213. </div>
  3214. </div> -->
  3215. </div>
  3216. </div>
  3217. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  3218. <div class="noWorksS">
  3219. <div
  3220. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3221. :key="sIndex"
  3222. class="noWorksName"
  3223. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3224. >
  3225. {{ s.student }}
  3226. </div>
  3227. </div>
  3228. </div>
  3229. <div
  3230. v-if="
  3231. tType &&
  3232. ((tType == 2 && sIsOpen == true) ||
  3233. tType == 1 ||
  3234. tType == 4) &&
  3235. tool.tool.indexOf(45) != -1 &&
  3236. (tool.testJson.testJson[0].answer ||
  3237. tool.testJson.testJson[0].answer === 0) &&
  3238. checkJson[toolIndex].length
  3239. "
  3240. class="xuan_right_box"
  3241. >
  3242. <div
  3243. class="tool_right_box"
  3244. v-for="(item, index) in tool.testJson.testJson"
  3245. :key="index"
  3246. >
  3247. <div>
  3248. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  3249. </div>
  3250. <div class="right_box_xuan">
  3251. <span>正确率</span>
  3252. <span>{{
  3253. (checkJson[toolIndex][index].right
  3254. ? checkJson[toolIndex][index].right
  3255. : 0) + "%"
  3256. }}</span>
  3257. </div>
  3258. </div>
  3259. </div>
  3260. <div
  3261. class="xuan_right_box"
  3262. style="background: unset"
  3263. v-if="
  3264. tType &&
  3265. ((tType == 2 && sIsOpen == true) ||
  3266. tType == 1 ||
  3267. tType == 4) &&
  3268. tool.tool.indexOf(45) != -1
  3269. "
  3270. >
  3271. <AskStatic2
  3272. v-if="
  3273. worksStudent.length &&
  3274. worksStudent[toolIndex].length > 0
  3275. "
  3276. :askJSON="tool"
  3277. :checkJson="checkJson[toolIndex]"
  3278. ></AskStatic2>
  3279. </div>
  3280. <div
  3281. v-if="
  3282. tType &&
  3283. ((tType == 2 && sIsOpen == true) ||
  3284. tType == 1 ||
  3285. tType == 4) &&
  3286. tool.tool.indexOf(45) != -1
  3287. "
  3288. class="worksBox"
  3289. >
  3290. <div
  3291. class="zuoyeYulan"
  3292. v-if="
  3293. worksStudent.length &&
  3294. worksStudent[toolIndex].length > 0
  3295. "
  3296. >
  3297. <div class="worksTop">
  3298. <div>作业预览</div>
  3299. <div
  3300. class="corOpen"
  3301. @click="contract(toolIndex)"
  3302. v-if="
  3303. worksStudent[toolIndex].length > 6 &&
  3304. isCloseList[toolIndex].isClose == 0
  3305. "
  3306. >
  3307. 收缩
  3308. </div>
  3309. <div
  3310. class="corOpen"
  3311. @click="contract(toolIndex)"
  3312. v-if="isCloseList[toolIndex].isClose == 1"
  3313. >
  3314. 展开
  3315. </div>
  3316. </div>
  3317. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3318. </div>
  3319. <div>
  3320. <div
  3321. class="worksDetailBox"
  3322. v-if="
  3323. worksStudent.length &&
  3324. worksStudent[toolIndex].length > 0
  3325. "
  3326. >
  3327. <div
  3328. v-for="(w, wIndex) in isCloseList[toolIndex]
  3329. .isClose == 0
  3330. ? worksStudent[toolIndex]
  3331. : worksStudent[toolIndex].slice(0, 6)"
  3332. :key="wIndex"
  3333. class="isWorksName"
  3334. @click="
  3335. openTools(
  3336. 45,
  3337. toolIndex,
  3338. taskCount,
  3339. w.works,
  3340. w.sName
  3341. )
  3342. "
  3343. >
  3344. {{ w.sName }}
  3345. <img
  3346. class="deleteImg deleteImg2"
  3347. src="../assets/deleteworks.png"
  3348. v-if="
  3349. w.userid == userid || tType == 1 || tType == 4
  3350. "
  3351. @click.stop="deleteWorks(w.wid)"
  3352. alt
  3353. />
  3354. </div>
  3355. </div>
  3356. </div>
  3357. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  3358. <div class="noWorksS">
  3359. <div
  3360. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3361. :key="sIndex"
  3362. class="noWorksName"
  3363. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3364. >
  3365. {{ s.student }}
  3366. </div>
  3367. </div>
  3368. </div>
  3369. <div
  3370. v-if="
  3371. tType &&
  3372. ((tType == 2 && sIsOpen == true) ||
  3373. tType == 1 ||
  3374. tType == 4) &&
  3375. tool.tool.indexOf(15) != -1
  3376. "
  3377. class="worksBox"
  3378. >
  3379. <div
  3380. class="zuoyeYulan"
  3381. v-if="
  3382. worksStudent.length &&
  3383. worksStudent[toolIndex].length > 0
  3384. "
  3385. >
  3386. <div class="worksTop">
  3387. <div>作业预览</div>
  3388. <div
  3389. class="corOpen"
  3390. @click="contract(toolIndex)"
  3391. v-if="
  3392. worksStudent[toolIndex].length > 6 &&
  3393. isCloseList[toolIndex].isClose == 0
  3394. "
  3395. >
  3396. 收缩
  3397. </div>
  3398. <div
  3399. class="corOpen"
  3400. @click="contract(toolIndex)"
  3401. v-if="isCloseList[toolIndex].isClose == 1"
  3402. >
  3403. 展开
  3404. </div>
  3405. </div>
  3406. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3407. </div>
  3408. <div
  3409. class="group_workBox"
  3410. v-for="(g, gindex) in courseGroup.group"
  3411. :key="gindex"
  3412. >
  3413. <div class="group_box">
  3414. <div class="group_title">
  3415. <el-tooltip
  3416. class="item"
  3417. effect="light"
  3418. :content="g.name"
  3419. placement="top"
  3420. >
  3421. <div class="group_name">{{ g.name }}</div>
  3422. </el-tooltip>
  3423. </div>
  3424. <div
  3425. class="group_work"
  3426. v-if="
  3427. g.works &&
  3428. g.works.length &&
  3429. g.works[toolIndex].length
  3430. "
  3431. >
  3432. <div
  3433. class="works"
  3434. v-for="(w, wIndex) in g.works[toolIndex]"
  3435. :key="wIndex"
  3436. >
  3437. <div
  3438. class="workImg"
  3439. style="
  3440. border-radius: 15px;
  3441. box-shadow: #eee 0px 0px 5px 5px;
  3442. "
  3443. >
  3444. <div
  3445. class="answerBg"
  3446. style="border-radius: 15px 15px 0 0"
  3447. @click="commentOther(
  3448. w,
  3449. toolIndex,
  3450. wIndex,
  3451. null,
  3452. g.id
  3453. )"
  3454. >
  3455. <div class="answerContent">
  3456. {{ JSON.parse(w.works)[0].answer }}
  3457. </div>
  3458. <div
  3459. class="answerScore"
  3460. v-if="w.score"
  3461. @click.stop="openScore(w)"
  3462. :class="{
  3463. rightW:
  3464. w.userid == userid ||
  3465. tType == 1 ||
  3466. tType == 4,
  3467. }"
  3468. >
  3469. {{ JSON.parse(w.score).wScore }}分
  3470. </div>
  3471. <div
  3472. class="answerScore"
  3473. @click.stop="openScore(w)"
  3474. v-else-if="courseDetail.userid == userid"
  3475. :class="{
  3476. rightW:
  3477. w.userid == userid ||
  3478. tType == 1 ||
  3479. tType == 4,
  3480. }"
  3481. >
  3482. 评分
  3483. </div>
  3484. <img
  3485. class="deleteImg"
  3486. src="../assets/deleteworks.png"
  3487. v-if="
  3488. w.userid == userid ||
  3489. tType == 1 ||
  3490. tType == 4
  3491. "
  3492. @click.stop="deleteWorks(w.wid)"
  3493. alt
  3494. />
  3495. </div>
  3496. <div class="comment">
  3497. <div class="worksName">
  3498. <div>{{ w.sName }}</div>
  3499. </div>
  3500. <div class="commentList">
  3501. <div
  3502. class="commentImg"
  3503. @click="
  3504. isLikes(w.wid, userid, 1, null, w.isLikes)
  3505. "
  3506. >
  3507. <img
  3508. :src="w.isLikes == true ? likes : noLikes"
  3509. alt=""
  3510. />
  3511. </div>
  3512. <div>{{ w.likesCount }}</div>
  3513. </div>
  3514. <div
  3515. class="commentList"
  3516. style="margin-right: 15px"
  3517. >
  3518. <div
  3519. class="commentImg"
  3520. @click="
  3521. commentOther(
  3522. w,
  3523. toolIndex,
  3524. wIndex,
  3525. null,
  3526. g.id
  3527. )
  3528. "
  3529. >
  3530. <img
  3531. src="../assets/icon/comment/comment.png"
  3532. alt=""
  3533. />
  3534. </div>
  3535. <div>{{ w.commentCount }}</div>
  3536. </div>
  3537. </div>
  3538. </div>
  3539. </div>
  3540. </div>
  3541. <div class="group_work" v-else>暂无提交作业</div>
  3542. </div>
  3543. </div>
  3544. <div
  3545. class="worksDetailBox"
  3546. v-if="
  3547. worksStudent.length &&
  3548. worksStudent[toolIndex].length > 0
  3549. "
  3550. >
  3551. <div
  3552. class="works"
  3553. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3554. 0
  3555. ? worksStudent[toolIndex]
  3556. : worksStudent[toolIndex].slice(0, 6)"
  3557. :key="wIndex"
  3558. >
  3559. <div
  3560. class="workImg"
  3561. style="
  3562. border-radius: 15px;
  3563. box-shadow: #eee 0px 0px 5px 5px;
  3564. "
  3565. >
  3566. <!-- <img
  3567. src="../assets/icon/works/noImg.png"
  3568. @click="openTools(15, toolIndex, taskCount, w.works)"
  3569. alt=""
  3570. />-->
  3571. <div
  3572. class="answerBg"
  3573. style="border-radius: 15px 15px 0 0"
  3574. @click="commentOther(w, toolIndex, wIndex)"
  3575. >
  3576. <!-- <div>{{ w.sName }}</div> -->
  3577. <div class="answerContent">
  3578. {{ JSON.parse(w.works)[0].answer }}
  3579. </div>
  3580. <div
  3581. class="answerScore"
  3582. v-if="w.score"
  3583. @click.stop="openScore(w)"
  3584. :class="{
  3585. rightW:
  3586. w.userid == userid ||
  3587. tType == 1 ||
  3588. tType == 4,
  3589. }"
  3590. >
  3591. {{ JSON.parse(w.score).wScore }}分
  3592. </div>
  3593. <div
  3594. class="answerScore"
  3595. @click.stop="openScore(w)"
  3596. v-else-if="courseDetail.userid == userid"
  3597. :class="{
  3598. rightW:
  3599. w.userid == userid ||
  3600. tType == 1 ||
  3601. tType == 4,
  3602. }"
  3603. >
  3604. 评分
  3605. </div>
  3606. <img
  3607. class="deleteImg"
  3608. src="../assets/deleteworks.png"
  3609. v-if="
  3610. w.userid == userid || tType == 1 || tType == 4
  3611. "
  3612. @click.stop="deleteWorks(w.wid)"
  3613. alt
  3614. />
  3615. </div>
  3616. <div class="comment">
  3617. <div class="worksName">
  3618. <div>{{ w.sName }}</div>
  3619. </div>
  3620. <div class="commentList">
  3621. <div
  3622. class="commentImg"
  3623. @click="
  3624. isLikes(w.wid, userid, 1, null, w.isLikes)
  3625. "
  3626. >
  3627. <img
  3628. :src="w.isLikes == true ? likes : noLikes"
  3629. alt=""
  3630. />
  3631. </div>
  3632. <div>{{ w.likesCount }}</div>
  3633. </div>
  3634. <div class="commentList" style="margin-right: 15px">
  3635. <div
  3636. class="commentImg"
  3637. @click="commentOther(w, toolIndex, wIndex)"
  3638. >
  3639. <img
  3640. src="../assets/icon/comment/comment.png"
  3641. alt=""
  3642. />
  3643. </div>
  3644. <div>{{ w.commentCount }}</div>
  3645. </div>
  3646. </div>
  3647. </div>
  3648. </div>
  3649. </div>
  3650. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  3651. <div class="noWorksS">
  3652. <div
  3653. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3654. :key="sIndex"
  3655. class="noWorksName"
  3656. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  3657. >
  3658. {{ s.student }}
  3659. </div>
  3660. </div>
  3661. </div>
  3662. <div
  3663. v-if="
  3664. tType &&
  3665. ((tType == 2 && sIsOpen == true) ||
  3666. tType == 1 ||
  3667. tType == 4) &&
  3668. tool.tool.indexOf(1) != -1
  3669. "
  3670. class="worksBox"
  3671. >
  3672. <div
  3673. class="zuoyeYulan"
  3674. v-if="
  3675. worksStudent.length &&
  3676. worksStudent[toolIndex].length > 0
  3677. "
  3678. >
  3679. <div class="worksTop">
  3680. <div>作业预览</div>
  3681. <div
  3682. class="corOpen"
  3683. @click="contract(toolIndex)"
  3684. v-if="
  3685. worksStudent[toolIndex].length > 6 &&
  3686. isCloseList[toolIndex].isClose == 0
  3687. "
  3688. >
  3689. 收缩
  3690. </div>
  3691. <div
  3692. class="corOpen"
  3693. @click="contract(toolIndex)"
  3694. v-if="isCloseList[toolIndex].isClose == 1"
  3695. >
  3696. 展开
  3697. </div>
  3698. </div>
  3699. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3700. </div>
  3701. <div
  3702. class="group_workBox"
  3703. v-for="(g, gindex) in courseGroup.group"
  3704. :key="gindex"
  3705. >
  3706. <div class="group_box">
  3707. <div class="group_title">
  3708. <el-tooltip
  3709. class="item"
  3710. effect="light"
  3711. :content="g.name"
  3712. placement="top"
  3713. >
  3714. <div class="group_name">{{ g.name }}</div>
  3715. </el-tooltip>
  3716. </div>
  3717. <div
  3718. class="group_work"
  3719. v-if="
  3720. g.works &&
  3721. g.works.length &&
  3722. g.works[toolIndex].length
  3723. "
  3724. >
  3725. <div
  3726. class="works"
  3727. style="
  3728. width: 200px;
  3729. height: 140px;
  3730. margin: 10px 10px 10px 0;
  3731. border-radius: 15px;
  3732. box-shadow: 0 0 6px 1px #dfdada;
  3733. "
  3734. v-for="(w, wIndex) in g.works[toolIndex]"
  3735. :key="wIndex"
  3736. :class="w.type == 1 ? 'isTypeOne' : ''"
  3737. >
  3738. <div class="workImg">
  3739. <img
  3740. :src="w.works"
  3741. @click="previewImg(w.works)"
  3742. alt
  3743. />
  3744. <div
  3745. class="answerScore"
  3746. v-if="w.score"
  3747. @click.stop="openScore(w)"
  3748. :class="{
  3749. rightW:
  3750. w.userid == userid ||
  3751. tType == 1 ||
  3752. tType == 4,
  3753. }"
  3754. >
  3755. {{ JSON.parse(w.score).wScore }}分
  3756. </div>
  3757. <div
  3758. class="answerScore"
  3759. @click.stop="openScore(w)"
  3760. v-else-if="courseDetail.userid == userid"
  3761. :class="{
  3762. rightW:
  3763. w.userid == userid ||
  3764. tType == 1 ||
  3765. tType == 4,
  3766. }"
  3767. >
  3768. 评分
  3769. </div>
  3770. <img
  3771. class="deleteImg"
  3772. src="../assets/deleteworks.png"
  3773. v-if="
  3774. w.userid == userid || tType == 1 || tType == 4
  3775. "
  3776. @click.stop="deleteWorks(w.wid)"
  3777. alt
  3778. />
  3779. </div>
  3780. <div class="comment" style="min-width: 200px">
  3781. <div class="worksName">
  3782. <div>{{ w.sName }}</div>
  3783. </div>
  3784. <div class="commentList">
  3785. <div class="commentList">
  3786. <div
  3787. class="commentImg"
  3788. @click="
  3789. isLikes(w.wid, userid, 1, null, w.isLikes)
  3790. "
  3791. >
  3792. <img
  3793. :src="w.isLikes == true ? likes : noLikes"
  3794. alt=""
  3795. />
  3796. </div>
  3797. <div>{{ w.likesCount }}</div>
  3798. </div>
  3799. <div
  3800. class="commentList"
  3801. style="margin-right: 15px"
  3802. >
  3803. <div
  3804. class="commentImg"
  3805. @click="commentOther(
  3806. w,
  3807. toolIndex,
  3808. wIndex,
  3809. null,
  3810. g.id
  3811. )"
  3812. >
  3813. <img
  3814. src="../assets/icon/comment/comment.png"
  3815. alt=""
  3816. />
  3817. </div>
  3818. <div>{{ w.commentCount }}</div>
  3819. </div>
  3820. </div>
  3821. </div>
  3822. </div>
  3823. </div>
  3824. <div class="group_work" v-else>暂无提交作业</div>
  3825. </div>
  3826. </div>
  3827. <div
  3828. class="worksDetailBox"
  3829. v-if="
  3830. worksStudent.length &&
  3831. worksStudent[toolIndex].length > 0
  3832. "
  3833. >
  3834. <div
  3835. class="works"
  3836. style="
  3837. width: 200px;
  3838. height: 140px;
  3839. margin: 10px 10px 10px 0;
  3840. border-radius: 15px;
  3841. box-shadow: 0 0 6px 1px #dfdada;
  3842. "
  3843. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3844. 0
  3845. ? worksStudent[toolIndex]
  3846. : worksStudent[toolIndex].slice(0, 6)"
  3847. :key="wIndex"
  3848. >
  3849. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  3850. <div class="workImg">
  3851. <img
  3852. :src="w.works"
  3853. @click="previewImg(w.works)"
  3854. alt
  3855. />
  3856. <div
  3857. class="answerScore"
  3858. v-if="w.score"
  3859. @click.stop="openScore(w)"
  3860. :class="{
  3861. rightW:
  3862. w.userid == userid || tType == 1 || tType == 4,
  3863. }"
  3864. >
  3865. {{ JSON.parse(w.score).wScore }}分
  3866. </div>
  3867. <div
  3868. class="answerScore"
  3869. @click.stop="openScore(w)"
  3870. v-else-if="courseDetail.userid == userid"
  3871. :class="{
  3872. rightW:
  3873. w.userid == userid || tType == 1 || tType == 4,
  3874. }"
  3875. >
  3876. 评分
  3877. </div>
  3878. <img
  3879. class="deleteImg"
  3880. src="../assets/deleteworks.png"
  3881. v-if="
  3882. w.userid == userid || tType == 1 || tType == 4
  3883. "
  3884. @click.stop="deleteWorks(w.wid)"
  3885. alt
  3886. />
  3887. </div>
  3888. <div class="comment" style="min-width: 200px">
  3889. <div class="worksName">
  3890. <div>{{ w.sName }}</div>
  3891. </div>
  3892. <div class="commentList">
  3893. <div class="commentList">
  3894. <div
  3895. class="commentImg"
  3896. @click="
  3897. isLikes(w.wid, userid, 1, null, w.isLikes)
  3898. "
  3899. >
  3900. <img
  3901. :src="w.isLikes == true ? likes : noLikes"
  3902. alt=""
  3903. />
  3904. </div>
  3905. <div>{{ w.likesCount }}</div>
  3906. </div>
  3907. <div class="commentList" style="margin-right: 15px">
  3908. <div
  3909. class="commentImg"
  3910. @click="commentOther(w, toolIndex, wIndex)"
  3911. >
  3912. <img
  3913. src="../assets/icon/comment/comment.png"
  3914. alt=""
  3915. />
  3916. </div>
  3917. <div>{{ w.commentCount }}</div>
  3918. </div>
  3919. </div>
  3920. </div>
  3921. </div>
  3922. </div>
  3923. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  3924. <div class="noWorksS">
  3925. <div
  3926. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3927. :key="sIndex"
  3928. class="noWorksName"
  3929. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  3930. >
  3931. {{ s.student }}
  3932. </div>
  3933. </div>
  3934. </div>
  3935. <div
  3936. v-if="
  3937. tType &&
  3938. ((tType == 2 && sIsOpen == true) ||
  3939. tType == 1 ||
  3940. tType == 4) &&
  3941. tool.tool.indexOf(3) != -1
  3942. "
  3943. class="worksBox"
  3944. >
  3945. <div
  3946. class="zuoyeYulan"
  3947. v-if="
  3948. worksStudent.length &&
  3949. worksStudent[toolIndex].length > 0
  3950. "
  3951. >
  3952. <div class="worksTop">
  3953. <div>作业预览</div>
  3954. <div
  3955. class="corOpen"
  3956. @click="contract(toolIndex)"
  3957. v-if="
  3958. worksStudent[toolIndex].length > 6 &&
  3959. isCloseList[toolIndex].isClose == 0
  3960. "
  3961. >
  3962. 收缩
  3963. </div>
  3964. <div
  3965. class="corOpen"
  3966. @click="contract(toolIndex)"
  3967. v-if="isCloseList[toolIndex].isClose == 1"
  3968. >
  3969. 展开
  3970. </div>
  3971. </div>
  3972. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3973. </div>
  3974. <div
  3975. class="group_workBox"
  3976. v-for="(g, gindex) in courseGroup.group"
  3977. :key="gindex"
  3978. >
  3979. <div class="group_box">
  3980. <div class="group_title">
  3981. <el-tooltip
  3982. class="item"
  3983. effect="light"
  3984. :content="g.name"
  3985. placement="top"
  3986. >
  3987. <div class="group_name">{{ g.name }}</div>
  3988. </el-tooltip>
  3989. </div>
  3990. <div
  3991. class="group_work"
  3992. v-if="
  3993. g.works &&
  3994. g.works.length &&
  3995. g.works[toolIndex].length
  3996. "
  3997. >
  3998. <div
  3999. class="works"
  4000. style="
  4001. width: 200px;
  4002. height: 140px;
  4003. margin: 10px 10px 10px 0;
  4004. border-radius: 15px;
  4005. box-shadow: 0 0 6px 1px #dfdada;
  4006. "
  4007. v-for="(w, wIndex) in g.works[toolIndex]"
  4008. :key="wIndex"
  4009. :class="w.type == 1 ? 'isTypeOne' : ''"
  4010. >
  4011. <div class="workImg">
  4012. <img
  4013. :src="w.works"
  4014. @click="previewImg(w.works)"
  4015. alt
  4016. />
  4017. <div
  4018. class="answerScore"
  4019. v-if="w.score"
  4020. @click.stop="openScore(w)"
  4021. :class="{
  4022. rightW:
  4023. w.userid == userid ||
  4024. tType == 1 ||
  4025. tType == 4,
  4026. }"
  4027. >
  4028. {{ JSON.parse(w.score).wScore }}分
  4029. </div>
  4030. <div
  4031. class="answerScore"
  4032. @click.stop="openScore(w)"
  4033. v-else-if="courseDetail.userid == userid"
  4034. :class="{
  4035. rightW:
  4036. w.userid == userid ||
  4037. tType == 1 ||
  4038. tType == 4,
  4039. }"
  4040. >
  4041. 评分
  4042. </div>
  4043. <img
  4044. class="deleteImg"
  4045. src="../assets/deleteworks.png"
  4046. v-if="
  4047. w.userid == userid || tType == 1 || tType == 4
  4048. "
  4049. @click.stop="deleteWorks(w.wid)"
  4050. alt
  4051. />
  4052. </div>
  4053. <div class="comment" style="min-width: 200px">
  4054. <div class="worksName">
  4055. <div>{{ w.sName }}</div>
  4056. </div>
  4057. <div class="commentList">
  4058. <div class="commentList">
  4059. <div
  4060. class="commentImg"
  4061. @click="
  4062. isLikes(w.wid, userid, 1, null, w.isLikes)
  4063. "
  4064. >
  4065. <img
  4066. :src="w.isLikes == true ? likes : noLikes"
  4067. alt=""
  4068. />
  4069. </div>
  4070. <div>{{ w.likesCount }}</div>
  4071. </div>
  4072. <div
  4073. class="commentList"
  4074. style="margin-right: 15px"
  4075. >
  4076. <div
  4077. class="commentImg"
  4078. @click="commentOther(
  4079. w,
  4080. toolIndex,
  4081. wIndex,
  4082. null,
  4083. g.id
  4084. )"
  4085. >
  4086. <img
  4087. src="../assets/icon/comment/comment.png"
  4088. alt=""
  4089. />
  4090. </div>
  4091. <div>{{ w.commentCount }}</div>
  4092. </div>
  4093. </div>
  4094. </div>
  4095. </div>
  4096. </div>
  4097. <div class="group_work" v-else>暂无提交作业</div>
  4098. </div>
  4099. </div>
  4100. <div
  4101. class="worksDetailBox"
  4102. v-if="
  4103. worksStudent.length &&
  4104. worksStudent[toolIndex].length > 0
  4105. "
  4106. >
  4107. <div
  4108. class="works"
  4109. style="
  4110. width: 200px;
  4111. height: 140px;
  4112. margin: 10px 10px 10px 0;
  4113. border-radius: 15px;
  4114. box-shadow: 0 0 6px 1px #dfdada;
  4115. "
  4116. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4117. 0
  4118. ? worksStudent[toolIndex]
  4119. : worksStudent[toolIndex].slice(0, 6)"
  4120. :key="wIndex"
  4121. >
  4122. <!-- @click="previewImg(w.works)" -->
  4123. <div class="workImg">
  4124. <img
  4125. :src="w.works"
  4126. @click="previewImg(w.works)"
  4127. alt
  4128. />
  4129. <div
  4130. class="answerScore"
  4131. v-if="w.score"
  4132. @click.stop="openScore(w)"
  4133. :class="{
  4134. rightW:
  4135. w.userid == userid || tType == 1 || tType == 4,
  4136. }"
  4137. >
  4138. {{ JSON.parse(w.score).wScore }}分
  4139. </div>
  4140. <div
  4141. class="answerScore"
  4142. @click.stop="openScore(w)"
  4143. v-else-if="courseDetail.userid == userid"
  4144. :class="{
  4145. rightW:
  4146. w.userid == userid || tType == 1 || tType == 4,
  4147. }"
  4148. >
  4149. 评分
  4150. </div>
  4151. <img
  4152. class="deleteImg"
  4153. src="../assets/deleteworks.png"
  4154. v-if="
  4155. w.userid == userid || tType == 1 || tType == 4
  4156. "
  4157. @click.stop="deleteWorks(w.wid)"
  4158. alt
  4159. />
  4160. </div>
  4161. <div class="comment" style="min-width: 200px">
  4162. <div class="worksName">
  4163. <div>{{ w.sName }}</div>
  4164. </div>
  4165. <div class="commentList">
  4166. <div class="commentList">
  4167. <div
  4168. class="commentImg"
  4169. @click="
  4170. isLikes(w.wid, userid, 1, null, w.isLikes)
  4171. "
  4172. >
  4173. <img
  4174. :src="w.isLikes == true ? likes : noLikes"
  4175. alt=""
  4176. />
  4177. </div>
  4178. <div>{{ w.likesCount }}</div>
  4179. </div>
  4180. <div class="commentList" style="margin-right: 15px">
  4181. <div
  4182. class="commentImg"
  4183. @click="commentOther(w, toolIndex, wIndex)"
  4184. >
  4185. <img
  4186. src="../assets/icon/comment/comment.png"
  4187. alt=""
  4188. />
  4189. </div>
  4190. <div>{{ w.commentCount }}</div>
  4191. </div>
  4192. </div>
  4193. </div>
  4194. </div>
  4195. </div>
  4196. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  4197. <div class="noWorksS">
  4198. <div
  4199. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4200. :key="sIndex"
  4201. class="noWorksName"
  4202. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4203. >
  4204. {{ s.student }}
  4205. </div>
  4206. </div>
  4207. </div>
  4208. <div
  4209. v-if="
  4210. tType &&
  4211. ((tType == 2 && sIsOpen == true) ||
  4212. tType == 1 ||
  4213. tType == 4) &&
  4214. tool.tool.indexOf(6) != -1
  4215. "
  4216. class="worksBox"
  4217. >
  4218. <div
  4219. class="zuoyeYulan"
  4220. v-if="
  4221. worksStudent.length &&
  4222. worksStudent[toolIndex].length > 0
  4223. "
  4224. >
  4225. <div class="worksTop">
  4226. <div>作业预览</div>
  4227. <div
  4228. class="corOpen"
  4229. @click="contract(toolIndex)"
  4230. v-if="
  4231. worksStudent[toolIndex].length > 6 &&
  4232. isCloseList[toolIndex].isClose == 0
  4233. "
  4234. >
  4235. 收缩
  4236. </div>
  4237. <div
  4238. class="corOpen"
  4239. @click="contract(toolIndex)"
  4240. v-if="isCloseList[toolIndex].isClose == 1"
  4241. >
  4242. 展开
  4243. </div>
  4244. </div>
  4245. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4246. </div>
  4247. <div
  4248. class="group_workBox"
  4249. v-for="(g, gindex) in courseGroup.group"
  4250. :key="gindex"
  4251. >
  4252. <div class="group_box">
  4253. <div class="group_title">
  4254. <el-tooltip
  4255. class="item"
  4256. effect="light"
  4257. :content="g.name"
  4258. placement="top"
  4259. >
  4260. <div class="group_name">{{ g.name }}</div>
  4261. </el-tooltip>
  4262. </div>
  4263. <div
  4264. class="group_work"
  4265. v-if="
  4266. g.works &&
  4267. g.works.length &&
  4268. g.works[toolIndex].length
  4269. "
  4270. >
  4271. <div
  4272. class="works"
  4273. style="
  4274. width: 200px;
  4275. height: 140px;
  4276. margin: 10px 10px 10px 0;
  4277. border-radius: 15px;
  4278. box-shadow: 0 0 6px 1px #dfdada;
  4279. "
  4280. v-for="(w, wIndex) in g.works[toolIndex]"
  4281. :key="wIndex"
  4282. :class="w.type == 1 ? 'isTypeOne' : ''"
  4283. >
  4284. <div class="workImg">
  4285. <img
  4286. :src="w.works"
  4287. @click="previewImg(w.works)"
  4288. alt
  4289. />
  4290. <div
  4291. class="answerScore"
  4292. v-if="w.score"
  4293. @click.stop="openScore(w)"
  4294. :class="{
  4295. rightW:
  4296. w.userid == userid ||
  4297. tType == 1 ||
  4298. tType == 4,
  4299. }"
  4300. >
  4301. {{ JSON.parse(w.score).wScore }}分
  4302. </div>
  4303. <div
  4304. class="answerScore"
  4305. @click.stop="openScore(w)"
  4306. v-else-if="courseDetail.userid == userid"
  4307. :class="{
  4308. rightW:
  4309. w.userid == userid ||
  4310. tType == 1 ||
  4311. tType == 4,
  4312. }"
  4313. >
  4314. 评分
  4315. </div>
  4316. <img
  4317. class="deleteImg"
  4318. src="../assets/deleteworks.png"
  4319. v-if="
  4320. w.userid == userid || tType == 1 || tType == 4
  4321. "
  4322. @click.stop="deleteWorks(w.wid)"
  4323. alt
  4324. />
  4325. </div>
  4326. <div class="comment" style="min-width: 200px">
  4327. <div class="worksName">
  4328. <div>{{ w.sName }}</div>
  4329. </div>
  4330. <div class="commentList">
  4331. <div class="commentList">
  4332. <div
  4333. class="commentImg"
  4334. @click="
  4335. isLikes(w.wid, userid, 1, null, w.isLikes)
  4336. "
  4337. >
  4338. <img
  4339. :src="w.isLikes == true ? likes : noLikes"
  4340. alt=""
  4341. />
  4342. </div>
  4343. <div>{{ w.likesCount }}</div>
  4344. </div>
  4345. <div
  4346. class="commentList"
  4347. style="margin-right: 15px"
  4348. >
  4349. <div
  4350. class="commentImg"
  4351. @click="commentOther(
  4352. w,
  4353. toolIndex,
  4354. wIndex,
  4355. null,
  4356. g.id
  4357. )"
  4358. >
  4359. <img
  4360. src="../assets/icon/comment/comment.png"
  4361. alt=""
  4362. />
  4363. </div>
  4364. <div>{{ w.commentCount }}</div>
  4365. </div>
  4366. </div>
  4367. </div>
  4368. </div>
  4369. </div>
  4370. <div class="group_work" v-else>暂无提交作业</div>
  4371. </div>
  4372. </div>
  4373. <div
  4374. class="worksDetailBox"
  4375. v-if="
  4376. worksStudent.length &&
  4377. worksStudent[toolIndex].length > 0
  4378. "
  4379. >
  4380. <div
  4381. class="works"
  4382. style="
  4383. width: 200px;
  4384. height: 140px;
  4385. margin: 10px 10px 10px 0;
  4386. border-radius: 15px;
  4387. box-shadow: 0 0 6px 1px #dfdada;
  4388. "
  4389. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4390. 0
  4391. ? worksStudent[toolIndex]
  4392. : worksStudent[toolIndex].slice(0, 6)"
  4393. :key="wIndex"
  4394. >
  4395. <!-- @click="previewImg(w.works)" -->
  4396. <div class="workImg">
  4397. <img
  4398. :src="w.works"
  4399. @click="previewImg(w.works)"
  4400. alt
  4401. />
  4402. <div
  4403. class="answerScore"
  4404. v-if="w.score"
  4405. @click.stop="openScore(w)"
  4406. :class="{
  4407. rightW:
  4408. w.userid == userid || tType == 1 || tType == 4,
  4409. }"
  4410. >
  4411. {{ JSON.parse(w.score).wScore }}分
  4412. </div>
  4413. <div
  4414. class="answerScore"
  4415. @click.stop="openScore(w)"
  4416. v-else-if="courseDetail.userid == userid"
  4417. :class="{
  4418. rightW:
  4419. w.userid == userid || tType == 1 || tType == 4,
  4420. }"
  4421. >
  4422. 评分
  4423. </div>
  4424. <img
  4425. class="deleteImg"
  4426. src="../assets/deleteworks.png"
  4427. v-if="
  4428. w.userid == userid || tType == 1 || tType == 4
  4429. "
  4430. @click.stop="deleteWorks(w.wid)"
  4431. alt
  4432. />
  4433. </div>
  4434. <div class="comment" style="min-width: 200px">
  4435. <div class="worksName">
  4436. <div>{{ w.sName }}</div>
  4437. </div>
  4438. <div class="commentList">
  4439. <div class="commentList">
  4440. <div
  4441. class="commentImg"
  4442. @click="
  4443. isLikes(w.wid, userid, 1, null, w.isLikes)
  4444. "
  4445. >
  4446. <img
  4447. :src="w.isLikes == true ? likes : noLikes"
  4448. alt=""
  4449. />
  4450. </div>
  4451. <div>{{ w.likesCount }}</div>
  4452. </div>
  4453. <div class="commentList" style="margin-right: 15px">
  4454. <div
  4455. class="commentImg"
  4456. @click="commentOther(w, toolIndex, wIndex)"
  4457. >
  4458. <img
  4459. src="../assets/icon/comment/comment.png"
  4460. alt=""
  4461. />
  4462. </div>
  4463. <div>{{ w.commentCount }}</div>
  4464. </div>
  4465. </div>
  4466. </div>
  4467. </div>
  4468. </div>
  4469. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  4470. <div class="noWorksS">
  4471. <div
  4472. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4473. :key="sIndex"
  4474. class="noWorksName"
  4475. >
  4476. {{ s.student }}
  4477. </div>
  4478. </div>
  4479. </div>
  4480. <div
  4481. v-if="
  4482. tType &&
  4483. ((tType == 2 && sIsOpen == true) ||
  4484. tType == 1 ||
  4485. tType == 4) &&
  4486. tool.tool.indexOf(7) != -1
  4487. "
  4488. class="worksBox"
  4489. >
  4490. <div
  4491. class="zuoyeYulan"
  4492. v-if="
  4493. worksStudent.length &&
  4494. worksStudent[toolIndex].length > 0
  4495. "
  4496. >
  4497. <div class="worksTop">
  4498. <div>作业预览</div>
  4499. <div
  4500. class="corOpen"
  4501. @click="contract(toolIndex)"
  4502. v-if="
  4503. worksStudent[toolIndex].length > 6 &&
  4504. isCloseList[toolIndex].isClose == 0
  4505. "
  4506. >
  4507. 收缩
  4508. </div>
  4509. <div
  4510. class="corOpen"
  4511. @click="contract(toolIndex)"
  4512. v-if="isCloseList[toolIndex].isClose == 1"
  4513. >
  4514. 展开
  4515. </div>
  4516. </div>
  4517. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4518. </div>
  4519. <div
  4520. class="group_workBox"
  4521. v-for="(g, gindex) in courseGroup.group"
  4522. :key="gindex"
  4523. >
  4524. <div class="group_box">
  4525. <div class="group_title">
  4526. <el-tooltip
  4527. class="item"
  4528. effect="light"
  4529. :content="g.name"
  4530. placement="top"
  4531. >
  4532. <div class="group_name">{{ g.name }}</div>
  4533. </el-tooltip>
  4534. </div>
  4535. <div
  4536. class="group_work"
  4537. v-if="
  4538. g.works &&
  4539. g.works.length &&
  4540. g.works[toolIndex].length
  4541. "
  4542. >
  4543. <div
  4544. class="works"
  4545. style="
  4546. width: 200px;
  4547. height: 140px;
  4548. margin: 10px 10px 10px 0;
  4549. border-radius: 15px;
  4550. box-shadow: 0 0 6px 1px #dfdada;
  4551. "
  4552. v-for="(w, wIndex) in g.works[toolIndex]"
  4553. :key="wIndex"
  4554. :class="w.type == 1 ? 'isTypeOne' : ''"
  4555. >
  4556. <div class="workImg">
  4557. <img
  4558. :src="w.works"
  4559. @click="previewImg(w.works)"
  4560. alt
  4561. />
  4562. <div
  4563. class="answerScore"
  4564. v-if="w.score"
  4565. @click.stop="openScore(w)"
  4566. :class="{
  4567. rightW:
  4568. w.userid == userid ||
  4569. tType == 1 ||
  4570. tType == 4,
  4571. }"
  4572. >
  4573. {{ JSON.parse(w.score).wScore }}分
  4574. </div>
  4575. <div
  4576. class="answerScore"
  4577. @click.stop="openScore(w)"
  4578. v-else-if="courseDetail.userid == userid"
  4579. :class="{
  4580. rightW:
  4581. w.userid == userid ||
  4582. tType == 1 ||
  4583. tType == 4,
  4584. }"
  4585. >
  4586. 评分
  4587. </div>
  4588. <img
  4589. class="deleteImg"
  4590. src="../assets/deleteworks.png"
  4591. v-if="
  4592. w.userid == userid || tType == 1 || tType == 4
  4593. "
  4594. @click.stop="deleteWorks(w.wid)"
  4595. alt
  4596. />
  4597. </div>
  4598. <div class="comment" style="min-width: 200px">
  4599. <div class="worksName">
  4600. <div>{{ w.sName }}</div>
  4601. </div>
  4602. <div class="commentList">
  4603. <div class="commentList">
  4604. <div
  4605. class="commentImg"
  4606. @click="
  4607. isLikes(w.wid, userid, 1, null, w.isLikes)
  4608. "
  4609. >
  4610. <img
  4611. :src="w.isLikes == true ? likes : noLikes"
  4612. alt=""
  4613. />
  4614. </div>
  4615. <div>{{ w.likesCount }}</div>
  4616. </div>
  4617. <div
  4618. class="commentList"
  4619. style="margin-right: 15px"
  4620. >
  4621. <div
  4622. class="commentImg"
  4623. @click="commentOther(
  4624. w,
  4625. toolIndex,
  4626. wIndex,
  4627. null,
  4628. g.id
  4629. )"
  4630. >
  4631. <img
  4632. src="../assets/icon/comment/comment.png"
  4633. alt=""
  4634. />
  4635. </div>
  4636. <div>{{ w.commentCount }}</div>
  4637. </div>
  4638. </div>
  4639. </div>
  4640. </div>
  4641. </div>
  4642. <div class="group_work" v-else>暂无提交作业</div>
  4643. </div>
  4644. </div>
  4645. <div
  4646. class="worksDetailBox"
  4647. v-if="
  4648. worksStudent.length &&
  4649. worksStudent[toolIndex].length > 0
  4650. "
  4651. >
  4652. <div
  4653. class="works"
  4654. style="
  4655. width: 200px;
  4656. height: 140px;
  4657. margin: 10px 10px 10px 0;
  4658. border-radius: 15px;
  4659. box-shadow: 0 0 6px 1px #dfdada;
  4660. "
  4661. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4662. 0
  4663. ? worksStudent[toolIndex]
  4664. : worksStudent[toolIndex].slice(0, 6)"
  4665. :key="wIndex"
  4666. >
  4667. <!-- @click="previewImg(w.works)" -->
  4668. <div class="workImg">
  4669. <img
  4670. :src="w.works"
  4671. @click="previewImg(w.works)"
  4672. alt
  4673. />
  4674. <div
  4675. class="answerScore"
  4676. v-if="w.score"
  4677. @click.stop="openScore(w)"
  4678. :class="{
  4679. rightW:
  4680. w.userid == userid || tType == 1 || tType == 4,
  4681. }"
  4682. >
  4683. {{ JSON.parse(w.score).wScore }}分
  4684. </div>
  4685. <div
  4686. class="answerScore"
  4687. @click.stop="openScore(w)"
  4688. v-else-if="courseDetail.userid == userid"
  4689. :class="{
  4690. rightW:
  4691. w.userid == userid || tType == 1 || tType == 4,
  4692. }"
  4693. >
  4694. 评分
  4695. </div>
  4696. <img
  4697. class="deleteImg"
  4698. src="../assets/deleteworks.png"
  4699. v-if="
  4700. w.userid == userid || tType == 1 || tType == 4
  4701. "
  4702. @click.stop="deleteWorks(w.wid)"
  4703. alt
  4704. />
  4705. </div>
  4706. <div class="comment" style="min-width: 200px">
  4707. <div class="worksName">
  4708. <div>{{ w.sName }}</div>
  4709. </div>
  4710. <div class="commentList">
  4711. <div class="commentList">
  4712. <div
  4713. class="commentImg"
  4714. @click="
  4715. isLikes(w.wid, userid, 1, null, w.isLikes)
  4716. "
  4717. >
  4718. <img
  4719. :src="w.isLikes == true ? likes : noLikes"
  4720. alt=""
  4721. />
  4722. </div>
  4723. <div>{{ w.likesCount }}</div>
  4724. </div>
  4725. <div class="commentList" style="margin-right: 15px">
  4726. <div
  4727. class="commentImg"
  4728. @click="commentOther(w, toolIndex, wIndex)"
  4729. >
  4730. <img
  4731. src="../assets/icon/comment/comment.png"
  4732. alt=""
  4733. />
  4734. </div>
  4735. <div>{{ w.commentCount }}</div>
  4736. </div>
  4737. </div>
  4738. </div>
  4739. </div>
  4740. </div>
  4741. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  4742. <div class="noWorksS">
  4743. <div
  4744. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4745. :key="sIndex"
  4746. class="noWorksName"
  4747. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  4748. >
  4749. {{ s.student }}
  4750. </div>
  4751. </div>
  4752. </div>
  4753. <div
  4754. v-if="
  4755. tType &&
  4756. ((tType == 2 && sIsOpen == true) ||
  4757. tType == 1 ||
  4758. tType == 4) &&
  4759. tool.tool.indexOf(26) != -1
  4760. "
  4761. class="worksBox"
  4762. >
  4763. <div
  4764. class="zuoyeYulan"
  4765. v-if="
  4766. worksStudent.length &&
  4767. worksStudent[toolIndex].length > 0
  4768. "
  4769. >
  4770. <div class="worksTop">
  4771. <div>作业预览</div>
  4772. <div
  4773. class="corOpen"
  4774. @click="contract(toolIndex)"
  4775. v-if="
  4776. worksStudent[toolIndex].length > 6 &&
  4777. isCloseList[toolIndex].isClose == 0
  4778. "
  4779. >
  4780. 收缩
  4781. </div>
  4782. <div
  4783. class="corOpen"
  4784. @click="contract(toolIndex)"
  4785. v-if="isCloseList[toolIndex].isClose == 1"
  4786. >
  4787. 展开
  4788. </div>
  4789. </div>
  4790. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4791. </div>
  4792. <div
  4793. class="worksDetailBox"
  4794. v-if="
  4795. worksStudent.length &&
  4796. worksStudent[toolIndex].length > 0
  4797. "
  4798. >
  4799. <div
  4800. class="works"
  4801. style="width: 240px; height: 140px; overflow: hidden"
  4802. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4803. 0
  4804. ? worksStudent[toolIndex]
  4805. : worksStudent[toolIndex].slice(0, 6)"
  4806. :key="wIndex"
  4807. :class="w.type == 1 ? 'isTypeOne' : ''"
  4808. >
  4809. <div class="workImg" v-if="w.type == 0">
  4810. <img
  4811. :src="w.works"
  4812. @click="previewImg(w.works)"
  4813. alt
  4814. />
  4815. <img
  4816. class="deleteImg"
  4817. src="../assets/deleteworks.png"
  4818. v-if="
  4819. w.userid == userid || tType == 1 || tType == 4
  4820. "
  4821. @click.stop="deleteWorks(w.wid)"
  4822. alt
  4823. />
  4824. </div>
  4825. <div class="workImg" v-if="w.type == 1">
  4826. <img :src="word" @click="openFile(w.works)" alt />
  4827. <img
  4828. class="deleteImg"
  4829. src="../assets/deleteworks.png"
  4830. v-if="
  4831. w.userid == userid || tType == 1 || tType == 4
  4832. "
  4833. @click.stop="deleteWorks(w.wid)"
  4834. alt
  4835. />
  4836. </div>
  4837. <div class="worksName">
  4838. <div>{{ w.sName }}</div>
  4839. </div>
  4840. </div>
  4841. </div>
  4842. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  4843. <div class="noWorksS">
  4844. <div
  4845. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4846. :key="sIndex"
  4847. class="noWorksName"
  4848. >
  4849. {{ s.student }}
  4850. </div>
  4851. </div>
  4852. </div>
  4853. <div
  4854. v-if="
  4855. tType &&
  4856. ((tType == 2 && sIsOpen == true) ||
  4857. tType == 1 ||
  4858. tType == 4) &&
  4859. tool.tool.indexOf(40) != -1
  4860. "
  4861. class="worksBox"
  4862. >
  4863. <div
  4864. class="zuoyeYulan"
  4865. v-if="
  4866. worksStudent.length &&
  4867. worksStudent[toolIndex].length > 0
  4868. "
  4869. >
  4870. <div class="worksTop">
  4871. <div>作业预览</div>
  4872. <div
  4873. class="corOpen"
  4874. @click="contract(toolIndex)"
  4875. v-if="
  4876. worksStudent[toolIndex].length > 6 &&
  4877. isCloseList[toolIndex].isClose == 0
  4878. "
  4879. >
  4880. 收缩
  4881. </div>
  4882. <div
  4883. class="corOpen"
  4884. @click="contract(toolIndex)"
  4885. v-if="isCloseList[toolIndex].isClose == 1"
  4886. >
  4887. 展开
  4888. </div>
  4889. </div>
  4890. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4891. </div>
  4892. <div
  4893. class="worksDetailBox"
  4894. v-if="
  4895. worksStudent.length &&
  4896. worksStudent[toolIndex].length > 0
  4897. "
  4898. >
  4899. <div
  4900. class="works"
  4901. style="
  4902. width: 200px;
  4903. height: 140px;
  4904. margin: 10px 10px 10px 0;
  4905. border-radius: 15px;
  4906. box-shadow: 0 0 6px 1px #dfdada;
  4907. "
  4908. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4909. 0
  4910. ? worksStudent[toolIndex]
  4911. : worksStudent[toolIndex].slice(0, 6)"
  4912. :key="wIndex"
  4913. :class="w.type == 1 ? 'isTypeOne' : ''"
  4914. >
  4915. <div class="workImg">
  4916. <img
  4917. src="../assets/icon/works/noImg.png"
  4918. @click="openPj(w.works, toolIndex)"
  4919. alt
  4920. />
  4921. <img
  4922. class="deleteImg"
  4923. src="../assets/deleteworks.png"
  4924. v-if="
  4925. w.userid == userid || tType == 1 || tType == 4
  4926. "
  4927. @click.stop="deleteWorks(w.wid)"
  4928. alt
  4929. />
  4930. </div>
  4931. <div class="comment" style="min-width: 200px">
  4932. <div class="worksName">
  4933. <div>{{ w.sName }}</div>
  4934. </div>
  4935. <div class="commentList">
  4936. <div class="commentList">
  4937. <div
  4938. class="commentImg"
  4939. @click="
  4940. isLikes(w.wid, userid, 1, null, w.isLikes)
  4941. "
  4942. >
  4943. <img
  4944. :src="w.isLikes == true ? likes : noLikes"
  4945. alt=""
  4946. />
  4947. </div>
  4948. <div>{{ w.likesCount }}</div>
  4949. </div>
  4950. <div class="commentList" style="margin-right: 15px">
  4951. <div
  4952. class="commentImg"
  4953. @click="commentOther(w, toolIndex, wIndex)"
  4954. >
  4955. <img
  4956. src="../assets/icon/comment/comment.png"
  4957. alt=""
  4958. />
  4959. </div>
  4960. <div>{{ w.commentCount }}</div>
  4961. </div>
  4962. </div>
  4963. </div>
  4964. </div>
  4965. </div>
  4966. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  4967. <div class="noWorksS">
  4968. <div
  4969. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4970. :key="sIndex"
  4971. class="noWorksName"
  4972. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  4973. >
  4974. {{ s.student }}
  4975. </div>
  4976. </div>
  4977. </div>
  4978. <div
  4979. v-if="
  4980. tType &&
  4981. tType == 2 &&
  4982. !sIsOpen &&
  4983. tool.tool.indexOf(40) != -1
  4984. "
  4985. class="worksBox"
  4986. >
  4987. <div
  4988. class="zuoyeYulan"
  4989. v-if="workStudent[toolIndex].length > 0"
  4990. >
  4991. <span>作业预览</span>
  4992. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4993. </div>
  4994. <div
  4995. class="worksDetailBox"
  4996. v-if="workStudent[toolIndex].length > 0"
  4997. >
  4998. <div
  4999. class="works"
  5000. style="
  5001. width: 200px;
  5002. height: 140px;
  5003. margin: 10px 10px 10px 0;
  5004. "
  5005. v-for="(w, wIndex) in workStudent[toolIndex]"
  5006. :key="wIndex"
  5007. >
  5008. <div class="workImg">
  5009. <img
  5010. src="../assets/icon/works/noImg.png"
  5011. @click="openPj(w.works, toolIndex)"
  5012. alt
  5013. />
  5014. <img
  5015. class="deleteImg"
  5016. src="../assets/deleteworks.png"
  5017. v-if="
  5018. w.userid == userid || tType == 1 || tType == 4
  5019. "
  5020. @click.stop="deleteWorks(w.wid)"
  5021. alt
  5022. />
  5023. </div>
  5024. <div class="worksName">
  5025. <div>{{ w.sName }}</div>
  5026. </div>
  5027. </div>
  5028. </div>
  5029. </div>
  5030. <div
  5031. v-if="
  5032. tType &&
  5033. ((tType == 2 && sIsOpen == true) ||
  5034. tType == 1 ||
  5035. tType == 4) &&
  5036. tool.tool.indexOf(41) != -1
  5037. "
  5038. >
  5039. <AnswerData2
  5040. v-if="
  5041. worksStudent.length &&
  5042. worksStudent[toolIndex].length > 0
  5043. "
  5044. :problemJson="tool.selectJson.answer"
  5045. :people="worksStudent[toolIndex]"
  5046. ></AnswerData2>
  5047. </div>
  5048. <div
  5049. v-if="
  5050. tType &&
  5051. ((tType == 2 && sIsOpen == true) ||
  5052. tType == 1 ||
  5053. tType == 4) &&
  5054. tool.tool.indexOf(41) != -1
  5055. "
  5056. class="worksBox"
  5057. >
  5058. <div
  5059. class="zuoyeYulan"
  5060. v-if="
  5061. worksStudent.length &&
  5062. worksStudent[toolIndex].length > 0
  5063. "
  5064. >
  5065. <div class="worksTop">
  5066. <div>作业预览</div>
  5067. <div
  5068. class="corOpen"
  5069. @click="contract(toolIndex)"
  5070. v-if="
  5071. worksStudent[toolIndex].length > 6 &&
  5072. isCloseList[toolIndex].isClose == 0
  5073. "
  5074. >
  5075. 收缩
  5076. </div>
  5077. <div
  5078. class="corOpen"
  5079. @click="contract(toolIndex)"
  5080. v-if="isCloseList[toolIndex].isClose == 1"
  5081. >
  5082. 展开
  5083. </div>
  5084. </div>
  5085. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5086. </div>
  5087. <div
  5088. class="worksDetailBox"
  5089. v-if="
  5090. worksStudent.length &&
  5091. worksStudent[toolIndex].length > 0
  5092. "
  5093. >
  5094. <div
  5095. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5096. 0
  5097. ? worksStudent[toolIndex]
  5098. : worksStudent[toolIndex].slice(0, 6)"
  5099. :key="wIndex"
  5100. class="isWorksName"
  5101. @click="openXz(w, toolIndex)"
  5102. >
  5103. {{ w.sName }}
  5104. <img
  5105. class="deleteImg deleteImg2"
  5106. src="../assets/deleteworks.png"
  5107. v-if="w.userid == userid || tType == 1 || tType == 4"
  5108. @click.stop="deleteWorks(w.wid)"
  5109. alt
  5110. />
  5111. </div>
  5112. <!-- <div
  5113. class="works"
  5114. style="
  5115. width: 200px;
  5116. height: 140px;
  5117. margin: 10px 10px 10px 0;
  5118. border-radius: 15px;
  5119. box-shadow: 0 0 6px 1px #dfdada;
  5120. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5121. :class="w.type == 5 ? 'isTypeOne' : ''">
  5122. <div class="workImg">
  5123. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5124. </div>
  5125. <div class="worksName">
  5126. <div>{{ w.sName }}</div>
  5127. </div>
  5128. </div> -->
  5129. </div>
  5130. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  5131. <div class="noWorksS">
  5132. <div
  5133. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5134. :key="sIndex"
  5135. class="noWorksName"
  5136. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5137. >
  5138. {{ s.student }}
  5139. </div>
  5140. </div>
  5141. </div>
  5142. <div
  5143. v-if="
  5144. tType &&
  5145. tType == 2 &&
  5146. !sIsOpen &&
  5147. tool.tool.indexOf(41) != -1
  5148. "
  5149. class="worksBox"
  5150. >
  5151. <div
  5152. class="zuoyeYulan"
  5153. v-if="workStudent[toolIndex].length > 0"
  5154. >
  5155. <span>作业预览</span>
  5156. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5157. </div>
  5158. <div
  5159. class="worksDetailBox"
  5160. v-if="workStudent[toolIndex].length > 0"
  5161. >
  5162. <div
  5163. class="works"
  5164. style="
  5165. width: 200px;
  5166. height: 140px;
  5167. margin: 10px 10px 10px 0;
  5168. "
  5169. v-for="(w, wIndex) in workStudent[toolIndex]"
  5170. :key="wIndex"
  5171. >
  5172. <div class="workImg">
  5173. <img
  5174. src="../assets/icon/works/noImg.png"
  5175. @click="openXz(w, toolIndex)"
  5176. alt
  5177. />
  5178. <img
  5179. class="deleteImg"
  5180. src="../assets/deleteworks.png"
  5181. v-if="
  5182. w.userid == userid || tType == 1 || tType == 4
  5183. "
  5184. @click.stop="deleteWorks(w.wid)"
  5185. alt
  5186. />
  5187. </div>
  5188. <div class="worksName">
  5189. <div>{{ w.sName }}</div>
  5190. </div>
  5191. </div>
  5192. </div>
  5193. </div>
  5194. <div v-if="false" class="xuan_right_box">
  5195. <div
  5196. class="tool_right_box"
  5197. v-for="(item, index) in tool.sentenceList"
  5198. :key="index"
  5199. >
  5200. <div>
  5201. <span>{{ index + 1 + "、" + item.sentenceTitle }}</span>
  5202. </div>
  5203. <div class="right_box_xuan">
  5204. <span>正确率</span>
  5205. <span>{{
  5206. (checkJson[toolIndex][index].right
  5207. ? checkJson[toolIndex][index].right
  5208. : 0) + "%"
  5209. }}</span>
  5210. </div>
  5211. <div class="right_box_xuan">
  5212. <span>答对人数</span>
  5213. <span>{{
  5214. checkJson[toolIndex][index].rightPerson.length
  5215. }}</span>
  5216. </div>
  5217. </div>
  5218. </div>
  5219. <div
  5220. v-if="
  5221. tType &&
  5222. ((tType == 2 && sIsOpen == true) ||
  5223. tType == 1 ||
  5224. tType == 4) &&
  5225. tool.tool.indexOf(47) != -1
  5226. "
  5227. >
  5228. <AnswerData
  5229. v-if="
  5230. checkJson[toolIndex].length &&
  5231. (tool.sentenceList || tool.sentenceList.length > 0)
  5232. "
  5233. :people="checkJson[toolIndex]"
  5234. ></AnswerData>
  5235. </div>
  5236. <div
  5237. v-if="
  5238. tType &&
  5239. tType == 2 &&
  5240. !sIsOpen &&
  5241. tool.tool.indexOf(47) != -1
  5242. "
  5243. class="worksBox"
  5244. >
  5245. <div
  5246. class="zuoyeYulan"
  5247. v-if="workStudent[toolIndex].length > 0"
  5248. >
  5249. <span>作业预览</span>
  5250. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5251. </div>
  5252. <div
  5253. class="worksDetailBox"
  5254. v-if="workStudent[toolIndex].length > 0"
  5255. >
  5256. <div
  5257. class="works"
  5258. style="
  5259. width: 200px;
  5260. height: 140px;
  5261. margin: 10px 10px 10px 0;
  5262. "
  5263. v-for="(w, wIndex) in workStudent[toolIndex]"
  5264. :key="wIndex"
  5265. >
  5266. <!-- @click="openXz(w, toolIndex)" -->
  5267. <div class="workImg" @click="openSen(w, toolIndex)">
  5268. <img src="../assets/icon/works/noImg.png" alt />
  5269. <img
  5270. class="deleteImg"
  5271. src="../assets/deleteworks.png"
  5272. v-if="
  5273. w.userid == userid || tType == 1 || tType == 4
  5274. "
  5275. @click.stop="deleteWorks(w.wid)"
  5276. alt
  5277. />
  5278. </div>
  5279. <div class="worksName">
  5280. <div>
  5281. {{ w.sName }}
  5282. </div>
  5283. </div>
  5284. </div>
  5285. </div>
  5286. </div>
  5287. <div
  5288. v-if="
  5289. tType &&
  5290. ((tType == 2 && sIsOpen == true) ||
  5291. tType == 1 ||
  5292. tType == 4) &&
  5293. tool.tool.indexOf(47) != -1
  5294. "
  5295. class="worksBox"
  5296. >
  5297. <div
  5298. class="zuoyeYulan"
  5299. v-if="
  5300. worksStudent.length &&
  5301. worksStudent[toolIndex].length > 0
  5302. "
  5303. >
  5304. <div class="worksTop">
  5305. <div>作业预览</div>
  5306. <div
  5307. class="corOpen"
  5308. @click="contract(toolIndex)"
  5309. v-if="
  5310. worksStudent[toolIndex].length > 6 &&
  5311. isCloseList[toolIndex].isClose == 0
  5312. "
  5313. >
  5314. 收缩
  5315. </div>
  5316. <div
  5317. class="corOpen"
  5318. @click="contract(toolIndex)"
  5319. v-if="isCloseList[toolIndex].isClose == 1"
  5320. >
  5321. 展开
  5322. </div>
  5323. </div>
  5324. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5325. </div>
  5326. <div
  5327. class="worksDetailBox"
  5328. v-if="
  5329. worksStudent.length &&
  5330. worksStudent[toolIndex].length > 0
  5331. "
  5332. >
  5333. <!-- @click="openXz(w, toolIndex)" -->
  5334. <div
  5335. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5336. 0
  5337. ? worksStudent[toolIndex]
  5338. : worksStudent[toolIndex].slice(0, 6)"
  5339. :key="wIndex"
  5340. class="isWorksName"
  5341. @click="openSen(w, toolIndex)"
  5342. >
  5343. {{ w.sName }}
  5344. <img
  5345. class="deleteImg deleteImg2"
  5346. src="../assets/deleteworks.png"
  5347. v-if="w.userid == userid || tType == 1 || tType == 4"
  5348. @click.stop="deleteWorks(w.wid)"
  5349. alt
  5350. />
  5351. </div>
  5352. </div>
  5353. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  5354. <div class="noWorksS">
  5355. <div
  5356. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5357. :key="sIndex"
  5358. class="noWorksName"
  5359. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5360. >
  5361. {{ s.student }}
  5362. </div>
  5363. </div>
  5364. </div>
  5365. <div
  5366. v-if="
  5367. tType &&
  5368. ((tType == 2 && sIsOpen == true) ||
  5369. tType == 1 ||
  5370. tType == 4) &&
  5371. tool.tool.indexOf(48) != -1
  5372. "
  5373. class="worksBox"
  5374. >
  5375. <div
  5376. class="zuoyeYulan"
  5377. v-if="
  5378. worksStudent.length &&
  5379. worksStudent[toolIndex].length > 0
  5380. "
  5381. >
  5382. <div class="worksTop">
  5383. <div>作业预览</div>
  5384. <div
  5385. class="corOpen"
  5386. @click="contract(toolIndex)"
  5387. v-if="
  5388. worksStudent[toolIndex].length > 6 &&
  5389. isCloseList[toolIndex].isClose == 0
  5390. "
  5391. >
  5392. 收缩
  5393. </div>
  5394. <div
  5395. class="corOpen"
  5396. @click="contract(toolIndex)"
  5397. v-if="isCloseList[toolIndex].isClose == 1"
  5398. >
  5399. 展开
  5400. </div>
  5401. </div>
  5402. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5403. </div>
  5404. <div
  5405. class="worksDetailBox"
  5406. v-if="
  5407. worksStudent.length &&
  5408. worksStudent[toolIndex].length > 0
  5409. "
  5410. >
  5411. <div
  5412. class="works"
  5413. style="
  5414. width: 200px;
  5415. height: 140px;
  5416. margin: 10px 10px 10px 0;
  5417. border-radius: 15px;
  5418. box-shadow: 0 0 6px 1px #dfdada;
  5419. "
  5420. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5421. 0
  5422. ? worksStudent[toolIndex]
  5423. : worksStudent[toolIndex].slice(0, 6)"
  5424. :key="wIndex"
  5425. :class="w.type == 1 ? 'isTypeOne' : ''"
  5426. >
  5427. <div class="workImg">
  5428. <img :src="word" @click="openTable(w)" alt />
  5429. <!-- @click="openFile(w.works)" -->
  5430. <div
  5431. class="answerScore"
  5432. v-if="w.score"
  5433. @click.stop="openScore(w)"
  5434. :class="{
  5435. rightW:
  5436. w.userid == userid ||
  5437. tType == 1 ||
  5438. tType == 4 ||
  5439. w.ateacher == userid,
  5440. }"
  5441. >
  5442. {{ JSON.parse(w.score).wScore }}分
  5443. </div>
  5444. <div
  5445. class="answerScore"
  5446. @click.stop="openScore(w)"
  5447. v-else-if="courseDetail.userid == userid"
  5448. :class="{
  5449. rightW:
  5450. w.userid == userid ||
  5451. tType == 1 ||
  5452. tType == 4 ||
  5453. w.ateacher == userid,
  5454. }"
  5455. >
  5456. 评分
  5457. </div>
  5458. <img
  5459. class="deleteImg"
  5460. src="../assets/deleteworks.png"
  5461. v-if="
  5462. w.userid == userid || tType == 1 || tType == 4
  5463. "
  5464. @click.stop="deleteWorks(w.wid)"
  5465. alt
  5466. />
  5467. </div>
  5468. <div class="comment" style="min-width: 200px">
  5469. <div class="worksName">
  5470. <div>{{ w.sName }}</div>
  5471. </div>
  5472. <div class="commentList">
  5473. <div class="commentList">
  5474. <div
  5475. class="commentImg"
  5476. @click="
  5477. isLikes(w.wid, userid, 1, null, w.isLikes)
  5478. "
  5479. >
  5480. <img
  5481. :src="w.isLikes == true ? likes : noLikes"
  5482. alt=""
  5483. />
  5484. </div>
  5485. <div>{{ w.likesCount }}</div>
  5486. </div>
  5487. <div class="commentList" style="margin-right: 15px">
  5488. <div
  5489. class="commentImg"
  5490. @click="commentOther(w, toolIndex, wIndex)"
  5491. >
  5492. <img
  5493. src="../assets/icon/comment/comment.png"
  5494. alt=""
  5495. />
  5496. </div>
  5497. <div>{{ w.commentCount }}</div>
  5498. </div>
  5499. </div>
  5500. </div>
  5501. </div>
  5502. </div>
  5503. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  5504. <div class="noWorksS">
  5505. <div
  5506. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5507. :key="sIndex"
  5508. class="noWorksName"
  5509. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5510. >
  5511. {{ s.student }}
  5512. </div>
  5513. </div>
  5514. </div>
  5515. <div
  5516. v-if="
  5517. tType &&
  5518. tType == 2 &&
  5519. !sIsOpen &&
  5520. tool.tool.indexOf(48) != -1
  5521. "
  5522. class="worksBox"
  5523. >
  5524. <div
  5525. class="zuoyeYulan"
  5526. v-if="workStudent[toolIndex].length > 0"
  5527. >
  5528. <span>作业预览</span>
  5529. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5530. </div>
  5531. <div
  5532. class="worksDetailBox"
  5533. v-if="workStudent[toolIndex].length > 0"
  5534. >
  5535. <div
  5536. class="works"
  5537. style="
  5538. width: 200px;
  5539. height: 140px;
  5540. margin: 10px 10px 10px 0;
  5541. box-shadow: 0 0 6px 1px #dfdada;
  5542. "
  5543. v-for="(w, wIndex) in workStudent[toolIndex]"
  5544. :key="wIndex"
  5545. >
  5546. <div class="workImg">
  5547. <img :src="word" @click="openTable(w)" alt />
  5548. <div
  5549. class="answerScore"
  5550. v-if="w.score"
  5551. @click.stop="openScore(w)"
  5552. :class="{
  5553. rightW:
  5554. w.userid == userid || tType == 1 || tType == 4,
  5555. }"
  5556. >
  5557. {{ JSON.parse(w.score).wScore }}分
  5558. </div>
  5559. <div
  5560. class="answerScore"
  5561. @click.stop="openScore(w)"
  5562. v-else-if="courseDetail.userid == userid"
  5563. :class="{
  5564. rightW:
  5565. w.userid == userid || tType == 1 || tType == 4,
  5566. }"
  5567. >
  5568. 评分
  5569. </div>
  5570. <img
  5571. class="deleteImg"
  5572. src="../assets/deleteworks.png"
  5573. v-if="
  5574. w.userid == userid || tType == 1 || tType == 4
  5575. "
  5576. @click.stop="deleteWorks(w.wid)"
  5577. alt
  5578. />
  5579. </div>
  5580. <div class="worksName">
  5581. <div>{{ w.sName }}</div>
  5582. </div>
  5583. </div>
  5584. </div>
  5585. </div>
  5586. <div
  5587. v-if="
  5588. tType &&
  5589. ((tType == 2 && sIsOpen == true) ||
  5590. tType == 1 ||
  5591. tType == 4) &&
  5592. tool.tool.indexOf(52) != -1
  5593. "
  5594. class="worksBox"
  5595. >
  5596. <div
  5597. class="zuoyeYulan"
  5598. v-if="
  5599. worksStudent.length &&
  5600. worksStudent[toolIndex].length > 0
  5601. "
  5602. >
  5603. <div class="worksTop">
  5604. <div>作业预览</div>
  5605. <div
  5606. class="corOpen"
  5607. @click="contract(toolIndex)"
  5608. v-if="
  5609. worksStudent[toolIndex].length > 6 &&
  5610. isCloseList[toolIndex].isClose == 0
  5611. "
  5612. >
  5613. 收缩
  5614. </div>
  5615. <div
  5616. class="corOpen"
  5617. @click="contract(toolIndex)"
  5618. v-if="isCloseList[toolIndex].isClose == 1"
  5619. >
  5620. 展开
  5621. </div>
  5622. </div>
  5623. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5624. </div>
  5625. <div
  5626. class="worksDetailBox"
  5627. v-if="
  5628. worksStudent.length &&
  5629. worksStudent[toolIndex].length > 0
  5630. "
  5631. >
  5632. <div
  5633. class="works"
  5634. style="
  5635. width: 200px;
  5636. height: 140px;
  5637. margin: 10px 10px 10px 0;
  5638. border-radius: 15px;
  5639. box-shadow: 0 0 6px 1px #dfdada;
  5640. "
  5641. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5642. 0
  5643. ? worksStudent[toolIndex]
  5644. : worksStudent[toolIndex].slice(0, 6)"
  5645. :key="wIndex"
  5646. :class="w.type == 1 ? 'isTypeOne' : ''"
  5647. >
  5648. <div class="workImg">
  5649. <img :src="word" @click="openWord(w)" alt />
  5650. <!-- @click="openFile(w.works)" -->
  5651. <div
  5652. class="answerScore"
  5653. v-if="w.score"
  5654. @click.stop="openScore(w)"
  5655. :class="{
  5656. rightW:
  5657. w.userid == userid ||
  5658. tType == 1 ||
  5659. tType == 4 ||
  5660. w.ateacher == userid,
  5661. }"
  5662. >
  5663. {{ JSON.parse(w.score).wScore }}分
  5664. </div>
  5665. <div
  5666. class="answerScore"
  5667. @click.stop="openScore(w)"
  5668. v-else-if="courseDetail.userid == userid"
  5669. :class="{
  5670. rightW:
  5671. w.userid == userid ||
  5672. tType == 1 ||
  5673. tType == 4 ||
  5674. w.ateacher == userid,
  5675. }"
  5676. >
  5677. 评分
  5678. </div>
  5679. <img
  5680. class="deleteImg"
  5681. src="../assets/deleteworks.png"
  5682. v-if="
  5683. w.userid == userid || tType == 1 || tType == 4
  5684. "
  5685. @click.stop="deleteWorks(w.wid)"
  5686. alt
  5687. />
  5688. </div>
  5689. <div class="comment" style="min-width: 200px">
  5690. <div class="worksName">
  5691. <div>{{ w.sName }}</div>
  5692. </div>
  5693. <div class="commentList">
  5694. <div class="commentList">
  5695. <div
  5696. class="commentImg"
  5697. @click="
  5698. isLikes(w.wid, userid, 1, null, w.isLikes)
  5699. "
  5700. >
  5701. <img
  5702. :src="w.isLikes == true ? likes : noLikes"
  5703. alt=""
  5704. />
  5705. </div>
  5706. <div>{{ w.likesCount }}</div>
  5707. </div>
  5708. <div class="commentList" style="margin-right: 15px">
  5709. <div
  5710. class="commentImg"
  5711. @click="commentOther(w, toolIndex, wIndex)"
  5712. >
  5713. <img
  5714. src="../assets/icon/comment/comment.png"
  5715. alt=""
  5716. />
  5717. </div>
  5718. <div>{{ w.commentCount }}</div>
  5719. </div>
  5720. </div>
  5721. </div>
  5722. </div>
  5723. </div>
  5724. <div style="font-size: 18px" v-if="courseDetail.juri != ''">未提交</div>
  5725. <div class="noWorksS">
  5726. <div
  5727. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5728. :key="sIndex"
  5729. class="noWorksName"
  5730. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5731. >
  5732. {{ s.student }}
  5733. </div>
  5734. </div>
  5735. </div>
  5736. <div
  5737. v-if="
  5738. tType &&
  5739. tType == 2 &&
  5740. !sIsOpen &&
  5741. tool.tool.indexOf(52) != -1
  5742. "
  5743. class="worksBox"
  5744. >
  5745. <div
  5746. class="zuoyeYulan"
  5747. v-if="workStudent[toolIndex].length > 0"
  5748. >
  5749. <span>作业预览</span>
  5750. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5751. </div>
  5752. <div
  5753. class="worksDetailBox"
  5754. v-if="workStudent[toolIndex].length > 0"
  5755. >
  5756. <div
  5757. class="works"
  5758. style="
  5759. width: 200px;
  5760. height: 140px;
  5761. margin: 10px 10px 10px 0;
  5762. box-shadow: 0 0 6px 1px #dfdada;
  5763. "
  5764. v-for="(w, wIndex) in workStudent[toolIndex]"
  5765. :key="wIndex"
  5766. >
  5767. <div class="workImg">
  5768. <img :src="word" @click="openWord(w)" alt />
  5769. <div
  5770. class="answerScore"
  5771. v-if="w.score"
  5772. @click.stop="openScore(w)"
  5773. :class="{
  5774. rightW:
  5775. w.userid == userid || tType == 1 || tType == 4,
  5776. }"
  5777. >
  5778. {{ JSON.parse(w.score).wScore }}分
  5779. </div>
  5780. <div
  5781. class="answerScore"
  5782. @click.stop="openScore(w)"
  5783. v-else-if="courseDetail.userid == userid"
  5784. :class="{
  5785. rightW:
  5786. w.userid == userid || tType == 1 || tType == 4,
  5787. }"
  5788. >
  5789. 评分
  5790. </div>
  5791. <img
  5792. class="deleteImg"
  5793. src="../assets/deleteworks.png"
  5794. v-if="
  5795. w.userid == userid || tType == 1 || tType == 4
  5796. "
  5797. @click.stop="deleteWorks(w.wid)"
  5798. alt
  5799. />
  5800. </div>
  5801. <div class="worksName">
  5802. <div>{{ w.sName }}</div>
  5803. </div>
  5804. </div>
  5805. </div>
  5806. </div>
  5807. <div
  5808. v-if="tool.tool.indexOf(49) != -1"
  5809. class="xuan_right_box"
  5810. >
  5811. <div
  5812. v-if="courseDetail.userid == userid"
  5813. style="display: flex; justify-content: flex-end"
  5814. >
  5815. <el-button
  5816. type="primary"
  5817. size="small"
  5818. @click="addTools(49, toolIndex, taskCount)"
  5819. >分组设置</el-button
  5820. >
  5821. </div>
  5822. <div
  5823. v-if="groupStudentUid[toolIndex]"
  5824. class="group_staic_box"
  5825. >
  5826. <div
  5827. v-for="(gp, gd) in tool.groupJson.group"
  5828. :key="gd"
  5829. class="group_staic"
  5830. >
  5831. <span> {{ gp.name }}</span>
  5832. <span>
  5833. 目前人数{{
  5834. groupStudentUid[toolIndex][gd].length
  5835. }}人</span
  5836. >
  5837. </div>
  5838. </div>
  5839. </div>
  5840. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  5841. <div
  5842. class="zuoyeYulan"
  5843. v-if="
  5844. worksStudent.length &&
  5845. worksStudent[toolIndex].length > 0
  5846. "
  5847. >
  5848. <span>作业预览</span>
  5849. </div>
  5850. <div>
  5851. <div
  5852. class="group_workBox"
  5853. v-for="(g, gindex) in tool.groupJson.group"
  5854. :key="gindex"
  5855. >
  5856. <div
  5857. class="group_box"
  5858. v-if="
  5859. groupStudentUid[toolIndex] &&
  5860. worksStudent[toolIndex] &&
  5861. (worksStudent[toolIndex][gindex].length ||
  5862. groupStudentUid[toolIndex][gindex].indexOf(
  5863. userid
  5864. ) != -1)
  5865. "
  5866. >
  5867. <div class="group_title">
  5868. <el-tooltip
  5869. class="item"
  5870. effect="light"
  5871. :content="g.name"
  5872. placement="top"
  5873. >
  5874. <div class="group_name">{{ g.name }}</div>
  5875. </el-tooltip>
  5876. <el-button
  5877. type="primary"
  5878. v-if="
  5879. groupStudentUid[toolIndex][gindex].indexOf(
  5880. userid
  5881. ) != -1
  5882. "
  5883. @click="groupUpload(toolIndex, taskCount, gindex)"
  5884. >上传作业</el-button
  5885. >
  5886. </div>
  5887. <div class="group_work">
  5888. <div
  5889. class="works"
  5890. style="
  5891. width: 200px;
  5892. height: 140px;
  5893. margin: 10px 10px 10px 0;
  5894. border-radius: 15px;
  5895. box-shadow: 0 0 6px 1px #dfdada;
  5896. "
  5897. v-for="(w, wIndex) in worksStudent[toolIndex][
  5898. gindex
  5899. ]"
  5900. :key="wIndex"
  5901. :class="w.type == 1 ? 'isTypeOne' : ''"
  5902. >
  5903. <div class="workImg" v-if="w.type == 0">
  5904. <img
  5905. :src="w.works"
  5906. @click="previewImg(w.works)"
  5907. alt
  5908. />
  5909. <div
  5910. class="answerScore"
  5911. v-if="w.score"
  5912. @click.stop="openScore(w)"
  5913. :class="{
  5914. rightW:
  5915. w.userid == userid ||
  5916. tType == 1 ||
  5917. tType == 4 ||
  5918. w.ateacher == userid,
  5919. }"
  5920. >
  5921. {{ JSON.parse(w.score).wScore }}分
  5922. </div>
  5923. <div
  5924. class="answerScore"
  5925. @click.stop="openScore(w)"
  5926. v-else-if="courseDetail.userid == userid"
  5927. :class="{
  5928. rightW:
  5929. w.userid == userid ||
  5930. tType == 1 ||
  5931. tType == 4 ||
  5932. w.ateacher == userid,
  5933. }"
  5934. >
  5935. 评分
  5936. </div>
  5937. <img
  5938. class="deleteImg"
  5939. src="../assets/deleteworks.png"
  5940. v-if="
  5941. w.userid == userid ||
  5942. tType == 1 ||
  5943. tType == 4
  5944. "
  5945. @click.stop="deleteWorks(w.wid)"
  5946. alt
  5947. />
  5948. </div>
  5949. <div class="workImg" v-if="w.type == 1">
  5950. <img
  5951. :src="word"
  5952. @click="openFile(w.works)"
  5953. alt
  5954. />
  5955. <!-- @click="openFile(w.works)" -->
  5956. <div
  5957. class="answerScore"
  5958. v-if="w.score"
  5959. @click.stop="openScore(w)"
  5960. :class="{
  5961. rightW:
  5962. w.userid == userid ||
  5963. tType == 1 ||
  5964. tType == 4 ||
  5965. w.ateacher == userid,
  5966. }"
  5967. >
  5968. {{ JSON.parse(w.score).wScore }}分
  5969. </div>
  5970. <div
  5971. class="answerScore"
  5972. @click.stop="openScore(w)"
  5973. v-else-if="courseDetail.userid == userid"
  5974. :class="{
  5975. rightW:
  5976. w.userid == userid ||
  5977. tType == 1 ||
  5978. tType == 4 ||
  5979. w.ateacher == userid,
  5980. }"
  5981. >
  5982. 评分
  5983. </div>
  5984. <img
  5985. class="deleteImg"
  5986. src="../assets/deleteworks.png"
  5987. v-if="
  5988. w.userid == userid ||
  5989. tType == 1 ||
  5990. tType == 4
  5991. "
  5992. @click.stop="deleteWorks(w.wid)"
  5993. alt
  5994. />
  5995. </div>
  5996. <div class="workImg" v-if="w.type == 3">
  5997. <img
  5998. style="cursor: pointer"
  5999. :src="video"
  6000. @click="openVideo(w)"
  6001. alt
  6002. />
  6003. <!-- @click="openVideo(w.works)" -->
  6004. <div
  6005. class="answerScore"
  6006. v-if="w.score"
  6007. @click.stop="openScore(w)"
  6008. :class="{
  6009. rightW:
  6010. w.userid == userid ||
  6011. tType == 1 ||
  6012. tType == 4 ||
  6013. w.ateacher == userid,
  6014. }"
  6015. >
  6016. {{ JSON.parse(w.score).wScore }}分
  6017. </div>
  6018. <div
  6019. class="answerScore"
  6020. @click.stop="openScore(w)"
  6021. v-else-if="courseDetail.userid == userid"
  6022. :class="{
  6023. rightW:
  6024. w.userid == userid ||
  6025. tType == 1 ||
  6026. tType == 4 ||
  6027. w.ateacher == userid,
  6028. }"
  6029. >
  6030. 评分
  6031. </div>
  6032. <img
  6033. class="deleteImg"
  6034. src="../assets/deleteworks.png"
  6035. v-if="
  6036. w.userid == userid ||
  6037. tType == 1 ||
  6038. tType == 4
  6039. "
  6040. @click.stop="deleteWorks(w.wid)"
  6041. alt
  6042. />
  6043. </div>
  6044. <div class="workImg" v-if="w.type == 12">
  6045. <img
  6046. style="cursor: pointer"
  6047. :src="word2"
  6048. @click="downloadFile(w.works)"
  6049. alt
  6050. />
  6051. <!-- @click="openVideo(w.works)" -->
  6052. <div
  6053. class="answerScore"
  6054. v-if="w.score"
  6055. @click.stop="openScore(w)"
  6056. :class="{
  6057. rightW:
  6058. w.userid == userid ||
  6059. tType == 1 ||
  6060. tType == 4 ||
  6061. w.ateacher == userid,
  6062. }"
  6063. >
  6064. {{ JSON.parse(w.score).wScore }}分
  6065. </div>
  6066. <div
  6067. class="answerScore"
  6068. @click.stop="openScore(w)"
  6069. v-else-if="courseDetail.userid == userid"
  6070. :class="{
  6071. rightW:
  6072. w.userid == userid ||
  6073. tType == 1 ||
  6074. tType == 4 ||
  6075. w.ateacher == userid,
  6076. }"
  6077. >
  6078. 评分
  6079. </div>
  6080. <img
  6081. class="deleteImg"
  6082. src="../assets/deleteworks.png"
  6083. v-if="
  6084. w.userid == userid ||
  6085. tType == 1 ||
  6086. tType == 4
  6087. "
  6088. @click.stop="deleteWorks(w.wid)"
  6089. alt
  6090. />
  6091. </div>
  6092. <div class="comment" style="min-width: 200px">
  6093. <div class="worksName">
  6094. <div>{{ w.sName }}</div>
  6095. </div>
  6096. <div class="commentList">
  6097. <div class="commentList">
  6098. <div
  6099. class="commentImg"
  6100. @click="
  6101. isLikes(
  6102. w.wid,
  6103. userid,
  6104. 1,
  6105. null,
  6106. w.isLikes
  6107. )
  6108. "
  6109. >
  6110. <img
  6111. :src="
  6112. w.isLikes == true ? likes : noLikes
  6113. "
  6114. alt=""
  6115. />
  6116. </div>
  6117. <div>{{ w.likesCount }}</div>
  6118. </div>
  6119. <div
  6120. class="commentList"
  6121. style="margin-right: 15px"
  6122. >
  6123. <div
  6124. class="commentImg"
  6125. @click="
  6126. commentOther(
  6127. w,
  6128. toolIndex,
  6129. wIndex,
  6130. gindex
  6131. )
  6132. "
  6133. >
  6134. <img
  6135. src="../assets/icon/comment/comment.png"
  6136. alt=""
  6137. />
  6138. </div>
  6139. <div>{{ w.commentCount }}</div>
  6140. </div>
  6141. </div>
  6142. </div>
  6143. </div>
  6144. </div>
  6145. </div>
  6146. </div>
  6147. </div>
  6148. </div>
  6149. </div>
  6150. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6151. 上传文件
  6152. <input
  6153. type="file"
  6154. accept="image/png, image/gif, image/jpeg"
  6155. style="display: none"
  6156. @change="beforeUpload1($event, 2, index)"
  6157. />
  6158. </div>-->
  6159. </div>
  6160. </div>
  6161. <div
  6162. class="vedioBox"
  6163. v-if="
  6164. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6165. .eList &&
  6166. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6167. .eList.length &&
  6168. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6169. .eList.length > 0 &&
  6170. tType != 2
  6171. "
  6172. >
  6173. <div
  6174. class="queTop"
  6175. style="
  6176. font-size: 25px;
  6177. padding: 15px 0 15px 30px;
  6178. font-weight: bold;
  6179. "
  6180. >
  6181. <!-- <div class="question" style="width: 30px">
  6182. <img src="../assets/icon/toolIcon.png" alt />
  6183. </div>
  6184. <div class="queTitle">
  6185. <div>工具</div>
  6186. </div>-->
  6187. 评一评
  6188. </div>
  6189. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  6190. <div class="elist_input">
  6191. <div
  6192. v-for="(eItem, eIndex) in chapInfoList[courseType]
  6193. .chapterInfo[0].taskJson[taskCount].eList"
  6194. :key="eIndex"
  6195. class="elist_input_box"
  6196. >
  6197. <div style="width: 95%">
  6198. <div
  6199. style="
  6200. display: flex;
  6201. flex-direction: row;
  6202. flex-wrap: nowrap;
  6203. align-items: center;
  6204. "
  6205. >
  6206. <div style="max-width: calc(100% - 285px)">
  6207. <span>{{ eItem.value }}</span>
  6208. </div>
  6209. <div
  6210. style="
  6211. padding-left: 25px;
  6212. display: flex;
  6213. flex-direction: row;
  6214. align-items: center;
  6215. "
  6216. >
  6217. <el-rate
  6218. v-model="eItem.score"
  6219. :colors="colors"
  6220. disabled
  6221. ></el-rate>
  6222. </div>
  6223. </div>
  6224. <div class="elist_inptu_text" style="padding-left: 10px">
  6225. <span v-if="eItem.detail != ''">{{
  6226. eItem.detail
  6227. }}</span>
  6228. <span v-else style="color: #b2b1b3; font-size: 14px"
  6229. >暂无描述...</span
  6230. >
  6231. </div>
  6232. </div>
  6233. </div>
  6234. </div>
  6235. <div
  6236. v-if="evalua"
  6237. style="
  6238. border: 1px solid #e5e5e5;
  6239. max-width: 650px;
  6240. width: 100%;
  6241. margin-top: 20px;
  6242. box-shadow: 3px 1px 15px 3px #e0e0e0;
  6243. "
  6244. >
  6245. <div class="e_add_top">
  6246. <div class="e_add_title">
  6247. <span>目标管理名称</span>
  6248. <span>{{ eTitle }}</span>
  6249. <img
  6250. src="../assets/line.png"
  6251. class="cru_line"
  6252. style="
  6253. width: 125px;
  6254. height: 20px;
  6255. bottom: -10px;
  6256. left: 120px;
  6257. "
  6258. />
  6259. <!-- <el-input
  6260. v-model="eTitle"
  6261. placeholder="请输入名称"
  6262. @change="setMindData"
  6263. ></el-input>-->
  6264. </div>
  6265. </div>
  6266. <div class="e_add_content">
  6267. <div class="e_add_list_pbox">
  6268. <div class="e_add_list_pbox_title">
  6269. <span class="type_title">切换模式</span>
  6270. <div class="type_content">
  6271. <span
  6272. :class="{ active: typeMode == 1 }"
  6273. @click="typeMode = 1"
  6274. >目标树</span
  6275. >
  6276. <span
  6277. :class="{ active: typeMode == 2 }"
  6278. @click="typeMode = 2"
  6279. >目标罗盘</span
  6280. >
  6281. <span
  6282. :class="{ active: typeMode == 3 }"
  6283. @click="typeMode = 3"
  6284. >目标看板</span
  6285. >
  6286. </div>
  6287. </div>
  6288. <div class="e_add_list_pbox_content">
  6289. <Mind
  6290. :showBar="false"
  6291. :mindData="data"
  6292. style="width: 100%"
  6293. v-show="typeMode == 1"
  6294. ></Mind>
  6295. <Sunburst
  6296. :Josn="eJson"
  6297. :num="eJSONNum"
  6298. style="width: 100%"
  6299. v-if="typeMode == 2"
  6300. ></Sunburst>
  6301. <SeeBoard
  6302. :Josn="eJson"
  6303. :num="eJSONNum"
  6304. :ename="eTitle"
  6305. style="width: 100%"
  6306. v-if="typeMode == 3"
  6307. >
  6308. </SeeBoard>
  6309. </div>
  6310. </div>
  6311. </div>
  6312. </div>
  6313. </div>
  6314. </div>
  6315. <!-- <div
  6316. class="project_box"
  6317. style="margin-top: 15px; padding-bottom: 30px"
  6318. >
  6319. <div
  6320. style="
  6321. display: flex;
  6322. flex-wrap: nowrap;
  6323. flex-direction: column;
  6324. position: relative;
  6325. "
  6326. >
  6327. <div class="queTop">
  6328. <div class="question">
  6329. <img src="../assets/icon/homeWork.png" alt="" />
  6330. </div>
  6331. <div class="queTitle">
  6332. <div>作业提交<span>(提交图文视频等)</span></div>
  6333. <div>:任务:{{ task.task }}</div>
  6334. </div>
  6335. </div>
  6336. <div class="ediBottom">
  6337. <div
  6338. class="addEditor"
  6339. style="margin-top: 23px"
  6340. @click="openAddWork"
  6341. v-if="!isNoHomeWork"
  6342. >
  6343. 选择文件
  6344. </div>
  6345. <div
  6346. class="addEditor"
  6347. style="margin-top: 23px"
  6348. @click="openAddWork"
  6349. v-else
  6350. >
  6351. 已提交
  6352. </div>
  6353. </div>
  6354. </div>
  6355. </div>-->
  6356. </div>
  6357. </div>
  6358. <el-dialog
  6359. title="作业提交"
  6360. :visible.sync="dialogVisible"
  6361. :append-to-body="true"
  6362. width="500px"
  6363. :before-close="handleClose"
  6364. class="dialog_change"
  6365. >
  6366. <div class="marginT">
  6367. <div>上传文件</div>
  6368. <div
  6369. class="chapter_add"
  6370. @click="addImg($event)"
  6371. v-if="studyJuri[0].cover.length == 0"
  6372. >
  6373. <div class="up_photo">
  6374. <img src="../assets/icon/uploadImg.png" alt />
  6375. </div>
  6376. <!-- <input
  6377. type="file"
  6378. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  6379. style="display: none"
  6380. @change="beforeUpload1($event, 1)"
  6381. /> -->
  6382. <input
  6383. type="file"
  6384. accept="*"
  6385. style="display: none"
  6386. @change="beforeUpload1($event, 1)"
  6387. />
  6388. <!-- <input
  6389. type="file"
  6390. accept="image/*"
  6391. capture="camera"
  6392. style="display: none"
  6393. @change="beforeUpload1($event, 1)"
  6394. /> -->
  6395. </div>
  6396. <div
  6397. class="chapter_add"
  6398. style="
  6399. display: flex;
  6400. width: 100%;
  6401. flex-direction: row;
  6402. flex-wrap: wrap;
  6403. justify-content: flex-start;
  6404. padding: 15px 0;
  6405. "
  6406. v-if="studyJuri[0].cover.length > 0"
  6407. >
  6408. <div class="upCover">
  6409. <img
  6410. :src="studyJuri[0].cover[0].url"
  6411. alt
  6412. v-if="fileType == 0"
  6413. />
  6414. <img :src="word" alt v-else-if="fileType == 1" />
  6415. <img :src="video" alt v-else-if="fileType == 2" />
  6416. <img :src="word2" alt v-else-if="fileType == 3" />
  6417. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  6418. <div class="deleteWord" @click="clean(1)">
  6419. <img src="../assets/icon/deleteWorks.png" alt />
  6420. </div>
  6421. </div>
  6422. </div>
  6423. </div>
  6424. <div
  6425. class="upload_send"
  6426. @click="addCourseWorks(taskCount)"
  6427. v-if="!proVisible"
  6428. >
  6429. 提交
  6430. </div>
  6431. </el-dialog>
  6432. </div>
  6433. </div>
  6434. <div
  6435. class="pButton"
  6436. @click="(pzDialog = true), selectPz()"
  6437. v-if="tType == 4 || ispzType == 4"
  6438. >
  6439. <!-- 批 -->
  6440. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  6441. </div>
  6442. <div v-if="pzDialog == true" class="newDialogCss">
  6443. <div class="pzTop2">
  6444. <!-- <div>批注</div>
  6445. <div @click="pzDialog = false">
  6446. <img src="../assets/close1.png" alt="" />
  6447. </div> -->
  6448. <div class="checkbox">
  6449. <div class="check" style="font-size: 25px">评课笔记</div>
  6450. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  6451. </div>
  6452. </div>
  6453. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  6454. <div class="pzListBox" v-if="pzList && pzList.length">
  6455. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  6456. <div class="pzNavTop">
  6457. <div>批</div>
  6458. <div>
  6459. {{
  6460. pz.username && pz.username.length > 5
  6461. ? pz.username.substring(0, 5) + "..."
  6462. : pz.username
  6463. }}的批注
  6464. </div>
  6465. <div
  6466. class="pzDelete"
  6467. v-if="pz.userid == userid"
  6468. @click="deletePz(pz.id)"
  6469. >
  6470. 删除
  6471. </div>
  6472. </div>
  6473. <div
  6474. class="pzContent cont"
  6475. v-html="pz.content"
  6476. v-if="pz.type == '1'"
  6477. ></div>
  6478. <div class="pzContent" v-if="pz.type == '2'">
  6479. <audio :src="pz.content" controls="controls" ref="audio">
  6480. Your browser does not support the audio element.
  6481. </audio>
  6482. </div>
  6483. <div class="pzContent" v-if="pz.type == '3'">
  6484. <img
  6485. :src="pz.content"
  6486. style="width: 90%; margin: 0 auto; display: block"
  6487. @click="previewImg(pz.content)"
  6488. />
  6489. </div>
  6490. <div class="time">
  6491. {{ pz.time }}
  6492. </div>
  6493. </div>
  6494. </div>
  6495. <div class="noPz" v-else>
  6496. <img src="../assets/icon/noPz.png" alt="" />
  6497. </div>
  6498. <div class="addPzButton">
  6499. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  6500. 添加批注
  6501. </div>
  6502. <!-- <div class="img1">
  6503. <div @click="(addPzDialog = true), (pzType = 2)">
  6504. <img src="../assets/audio.png" /><span>音频</span>
  6505. </div>
  6506. </div> -->
  6507. </div>
  6508. </div>
  6509. </div>
  6510. <div v-if="addPzDialog == true" class="addDialogCss">
  6511. <div class="pzTop">
  6512. <div class="teacherPz">
  6513. <div class="teacherPzImg">
  6514. <img src="../assets/icon/teacherPz.png" alt="" />
  6515. </div>
  6516. <div style="margin-left: 10px; height: 25px">教师批注</div>
  6517. </div>
  6518. <div @click="addPzDialog = false">
  6519. <img src="../assets/close1.png" alt="" />
  6520. </div>
  6521. </div>
  6522. <div class="addPzBox">
  6523. <div class="addPzCheck">
  6524. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  6525. >文本</span
  6526. >
  6527. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  6528. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  6529. >音频</span
  6530. >
  6531. </div>
  6532. <div style="height: calc(100% - 95px)">
  6533. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  6534. v-if="pzType == 1"></textarea> -->
  6535. <editor-bar
  6536. class="binfo_input pzConText"
  6537. style="width: 100% !important"
  6538. placeholder="请输入任务描述"
  6539. v-model="pzConText"
  6540. @change="change"
  6541. v-if="pzType == 1"
  6542. ></editor-bar>
  6543. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  6544. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  6545. <div @click="addImg($event)">
  6546. <el-button type="primary">上传图片</el-button>
  6547. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  6548. @change="beforeUpload1($event, 4)" />
  6549. </div>
  6550. </div> -->
  6551. </div>
  6552. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  6553. 确定
  6554. </div>
  6555. </div>
  6556. </div>
  6557. <div v-if="proVisible" class="mask">
  6558. <div class="progressBox">
  6559. <!-- <div id="closePro" class="closeCss">
  6560. <img src="../assets/icon/close.png" alt />
  6561. </div> -->
  6562. <div class="lbox">
  6563. <img src="../assets/loading.gif" />上传中,请稍后
  6564. </div>
  6565. <div style="margin-bottom: 10px">
  6566. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  6567. </div>
  6568. <el-progress
  6569. :text-inside="true"
  6570. :stroke-width="20"
  6571. :percentage="progress"
  6572. style="width: 80%"
  6573. ></el-progress>
  6574. </div>
  6575. </div>
  6576. <div v-if="proVisible2" class="mask">
  6577. <div class="progressBox">
  6578. <div class="lbox">
  6579. <img src="../assets/loading.gif" />上传中,请稍后
  6580. </div>
  6581. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  6582. </div>
  6583. </div>
  6584. <el-dialog :visible.sync="pictureDialog" size="tiny">
  6585. <img width="100%" :src="dialogImageUrl" alt />
  6586. </el-dialog>
  6587. <el-dialog
  6588. :title="noteName != '' ? noteName : '查看问卷'"
  6589. :visible.sync="dialogVisible5"
  6590. :append-to-body="true"
  6591. width="1000px"
  6592. :before-close="handleClose"
  6593. class="dialog_diy dialog_diy3"
  6594. >
  6595. <div>
  6596. <div
  6597. class="a_add_title"
  6598. style="
  6599. display: flex;
  6600. flex-direction: row;
  6601. align-items: center;
  6602. justify-content: center;
  6603. "
  6604. >
  6605. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  6606. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  6607. </div>
  6608. <div class="a_addBox">
  6609. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6610. <div
  6611. class="a_add_box"
  6612. v-for="(item1, index1) in askJson.askCount"
  6613. :key="index1"
  6614. >
  6615. <div class="a_add_head">
  6616. <div style="display: flex">
  6617. {{ index1 + 1 + "、" }}
  6618. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  6619. </div>
  6620. <img
  6621. v-if="askJson.askJson[index1].img"
  6622. :src="askJson.askJson[index1].img"
  6623. style="height: 300px; margin-top: 10px; max-width: 100%"
  6624. />
  6625. </div>
  6626. <div class="a_add_body">
  6627. <div class="a_add_input">
  6628. <el-radio-group
  6629. v-model="radio[index1]"
  6630. v-if="
  6631. askJson.askJson[index1].type == '1' ||
  6632. !askJson.askJson[index1].type
  6633. "
  6634. >
  6635. <el-radio
  6636. v-for="(item2, checkIndex) in askJson.askJson[index1]
  6637. .checkList"
  6638. :key="checkIndex"
  6639. :label="checkIndex"
  6640. :disabled="isAnswer"
  6641. class="redioStyle"
  6642. ><span v-html="item2"></span
  6643. ></el-radio>
  6644. </el-radio-group>
  6645. <el-checkbox-group
  6646. v-model="radio[index1]"
  6647. v-if="askJson.askJson[index1].type == '2'"
  6648. >
  6649. <el-checkbox
  6650. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  6651. .checkList"
  6652. :key="checkIndex1"
  6653. :label="checkIndex1"
  6654. :disabled="isAnswer"
  6655. class="redioStyle"
  6656. ><span v-html="item2"></span>
  6657. </el-checkbox>
  6658. </el-checkbox-group>
  6659. </div>
  6660. </div>
  6661. </div>
  6662. </div>
  6663. </div>
  6664. <span slot="footer" class="dialog-footer">
  6665. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  6666. >取 消</el-button
  6667. >
  6668. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  6669. >确 定</el-button
  6670. >
  6671. </span>
  6672. </el-dialog>
  6673. <el-dialog
  6674. :title="noteName != '' ? noteName : '查看问卷'"
  6675. :visible.sync="dialogVisible5Teacher"
  6676. :append-to-body="true"
  6677. width="1000px"
  6678. :before-close="handleClose"
  6679. class="dialog_diy dialog_diy3"
  6680. >
  6681. <div>
  6682. <div class="w_name">
  6683. 学生姓名:<span>{{ sStudent.student }}</span>
  6684. </div>
  6685. <div
  6686. class="a_add_title"
  6687. style="
  6688. display: flex;
  6689. flex-direction: row;
  6690. align-items: center;
  6691. justify-content: center;
  6692. "
  6693. >
  6694. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  6695. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  6696. </div>
  6697. <div class="a_addBox">
  6698. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6699. <div
  6700. class="a_add_box"
  6701. v-for="(item1, index1) in askJson.askCount"
  6702. :key="index1"
  6703. >
  6704. <div class="a_add_head">
  6705. <div style="display: flex">
  6706. {{ index1 + 1 + "、" }}
  6707. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  6708. </div>
  6709. <img
  6710. v-if="askJson.askJson[index1].img"
  6711. :src="askJson.askJson[index1].img"
  6712. style="height: 300px; margin-top: 10px; max-width: 100%"
  6713. />
  6714. </div>
  6715. <div class="a_add_body">
  6716. <div class="a_add_input">
  6717. <el-radio-group
  6718. v-model="radio[index1]"
  6719. v-if="
  6720. askJson.askJson[index1].type == '1' ||
  6721. !askJson.askJson[index1].type
  6722. "
  6723. >
  6724. <el-radio
  6725. v-for="(item2, checkIndex) in askJson.askJson[index1]
  6726. .checkList"
  6727. :key="checkIndex"
  6728. :label="checkIndex"
  6729. :disabled="isAnswer"
  6730. class="redioStyle"
  6731. ><span v-html="item2"></span
  6732. ></el-radio>
  6733. </el-radio-group>
  6734. <el-checkbox-group
  6735. v-model="radio[index1]"
  6736. v-if="askJson.askJson[index1].type == '2'"
  6737. >
  6738. <el-checkbox
  6739. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  6740. .checkList"
  6741. :key="checkIndex1"
  6742. :label="checkIndex1"
  6743. :disabled="isAnswer"
  6744. class="redioStyle"
  6745. ><span v-html="item2"></span>
  6746. </el-checkbox>
  6747. </el-checkbox-group>
  6748. </div>
  6749. </div>
  6750. </div>
  6751. </div>
  6752. </div>
  6753. <span slot="footer" class="dialog-footer">
  6754. <el-button
  6755. @click="dialogVisible5Teacher = false"
  6756. v-show="noteName == ''"
  6757. >取 消</el-button
  6758. >
  6759. <el-button
  6760. type="primary"
  6761. @click="addStudentAskTeacher"
  6762. v-show="noteName == ''"
  6763. >确 定</el-button
  6764. >
  6765. </span>
  6766. </el-dialog>
  6767. <el-dialog
  6768. :title="noteName != '' ? noteName : '查看选择题'"
  6769. :visible.sync="dialogVisibleChoice"
  6770. :append-to-body="true"
  6771. width="1000px"
  6772. :before-close="handleClose"
  6773. class="dialog_diy dialog_diy3"
  6774. >
  6775. <div>
  6776. <!-- <div class="a_add_title" style="
  6777. display: flex;
  6778. flex-direction: row;
  6779. align-items: center;
  6780. justify-content: center;
  6781. ">
  6782. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  6783. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  6784. </div> -->
  6785. <div class="a_addBox">
  6786. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6787. <div
  6788. class="a_add_box"
  6789. v-for="(item1, index1) in testJson.testCount"
  6790. :key="index1"
  6791. >
  6792. <div class="a_add_head">
  6793. <div style="display: flex">
  6794. {{ index1 + 1 + "、" }}
  6795. <div
  6796. v-if="testJson.testJson[index1].type == '1'"
  6797. style="margin-right: 5px"
  6798. >
  6799. (单选题)
  6800. </div>
  6801. <div
  6802. v-if="testJson.testJson[index1].type == '2'"
  6803. style="margin-right: 5px"
  6804. >
  6805. (多选题)
  6806. </div>
  6807. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  6808. </div>
  6809. <img
  6810. v-if="testJson.testJson[index1].img"
  6811. :src="testJson.testJson[index1].img"
  6812. style="height: 300px; margin-top: 10px; max-width: 100%"
  6813. />
  6814. </div>
  6815. <div
  6816. class="timuImgBox"
  6817. v-if="
  6818. testJson.testJson[index1].timuList &&
  6819. testJson.testJson[index1].timuList.length
  6820. "
  6821. >
  6822. <div
  6823. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  6824. :key="tIndex"
  6825. class="timuImg"
  6826. @click.stop="previewImg(timg.src)"
  6827. >
  6828. <img :src="timg.src" alt="" />
  6829. </div>
  6830. </div>
  6831. <div class="a_add_body">
  6832. <div class="a_add_input">
  6833. <el-radio-group
  6834. v-model="radio[index1]"
  6835. v-if="testJson.testJson[index1].type == '1'"
  6836. >
  6837. <div class="radioBox">
  6838. <el-radio
  6839. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6840. .checkList"
  6841. :key="checkIndex"
  6842. :label="checkIndex"
  6843. :disabled="isAnswer"
  6844. class="redioStyle"
  6845. >
  6846. <div
  6847. style="margin-right: 10px"
  6848. v-if="item2 && item2.imgType && item2.imgType == 1"
  6849. >
  6850. <div class="inImg" @click.stop="previewImg(item2.src)">
  6851. <img :src="item2.src" alt="" />
  6852. </div>
  6853. </div>
  6854. <span v-else v-html="item2"></span>
  6855. </el-radio>
  6856. </div>
  6857. </el-radio-group>
  6858. <el-checkbox-group
  6859. v-model="radio[index1]"
  6860. v-if="testJson.testJson[index1].type == '2'"
  6861. >
  6862. <div class="radioBox">
  6863. <el-checkbox
  6864. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6865. .checkList"
  6866. :key="checkIndex"
  6867. :label="checkIndex"
  6868. :disabled="isAnswer"
  6869. class="redioStyle"
  6870. >
  6871. <div
  6872. style="margin-right: 10px"
  6873. v-if="item2 && item2.imgType && item2.imgType == 1"
  6874. >
  6875. <div class="inImg" @click.stop="previewImg(item2.src)">
  6876. <img :src="item2.src" alt="" />
  6877. </div>
  6878. </div>
  6879. <span v-else v-html="item2"></span>
  6880. </el-checkbox>
  6881. </div>
  6882. </el-checkbox-group>
  6883. </div>
  6884. </div>
  6885. </div>
  6886. </div>
  6887. </div>
  6888. <span slot="footer" class="dialog-footer">
  6889. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  6890. >取 消</el-button
  6891. >
  6892. <el-button
  6893. type="primary"
  6894. @click="addStudentTest"
  6895. v-show="noteName == ''"
  6896. >确 定</el-button
  6897. >
  6898. </span>
  6899. </el-dialog>
  6900. <el-dialog
  6901. :title="noteName != '' ? noteName : '查看选择题'"
  6902. :visible.sync="dialogVisibleChoiceTeacher"
  6903. :append-to-body="true"
  6904. width="1000px"
  6905. :before-close="handleClose"
  6906. class="dialog_diy dialog_diy3"
  6907. >
  6908. <div>
  6909. <div class="w_name">
  6910. 学生姓名:<span>{{ sStudent.student }}</span>
  6911. </div>
  6912. <div class="a_addBox">
  6913. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  6914. <div
  6915. class="a_add_box"
  6916. v-for="(item1, index1) in testJson.testCount"
  6917. :key="index1"
  6918. >
  6919. <div class="a_add_head">
  6920. <div style="display: flex">
  6921. {{ index1 + 1 + "、" }}
  6922. <div
  6923. v-if="testJson.testJson[index1].type == '1'"
  6924. style="margin-right: 5px"
  6925. >
  6926. (单选题)
  6927. </div>
  6928. <div
  6929. v-if="testJson.testJson[index1].type == '2'"
  6930. style="margin-right: 5px"
  6931. >
  6932. (多选题)
  6933. </div>
  6934. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  6935. </div>
  6936. <img
  6937. v-if="testJson.testJson[index1].img"
  6938. :src="testJson.testJson[index1].img"
  6939. style="height: 300px; margin-top: 10px; max-width: 100%"
  6940. />
  6941. </div>
  6942. <div
  6943. class="timuImgBox"
  6944. v-if="
  6945. testJson.testJson[index1].timuList &&
  6946. testJson.testJson[index1].timuList.length
  6947. "
  6948. >
  6949. <div
  6950. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  6951. :key="tIndex"
  6952. class="timuImg"
  6953. @click.stop="previewImg(timg.src)"
  6954. >
  6955. <img :src="timg.src" alt="" />
  6956. </div>
  6957. </div>
  6958. <div class="a_add_body">
  6959. <div class="a_add_input">
  6960. <el-radio-group
  6961. v-model="radio[index1]"
  6962. v-if="testJson.testJson[index1].type == '1'"
  6963. >
  6964. <div class="radioBox">
  6965. <el-radio
  6966. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6967. .checkList"
  6968. :key="checkIndex"
  6969. :label="checkIndex"
  6970. :disabled="isAnswer"
  6971. class="redioStyle"
  6972. >
  6973. <div
  6974. style="margin-right: 10px"
  6975. v-if="item2 && item2.imgType && item2.imgType == 1"
  6976. >
  6977. <div class="inImg" @click.stop="previewImg(item2.src)">
  6978. <img :src="item2.src" alt="" />
  6979. </div>
  6980. </div>
  6981. <span v-else v-html="item2"></span>
  6982. </el-radio>
  6983. </div>
  6984. </el-radio-group>
  6985. <el-checkbox-group
  6986. v-model="radio[index1]"
  6987. v-if="testJson.testJson[index1].type == '2'"
  6988. >
  6989. <div class="radioBox">
  6990. <el-checkbox
  6991. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6992. .checkList"
  6993. :key="checkIndex"
  6994. :label="checkIndex"
  6995. :disabled="isAnswer"
  6996. class="redioStyle"
  6997. >
  6998. <div
  6999. style="margin-right: 10px"
  7000. v-if="item2 && item2.imgType && item2.imgType == 1"
  7001. >
  7002. <div class="inImg" @click.stop="previewImg(item2.src)">
  7003. <img :src="item2.src" alt="" />
  7004. </div>
  7005. </div>
  7006. <span v-else v-html="item2"></span>
  7007. </el-checkbox>
  7008. </div>
  7009. </el-checkbox-group>
  7010. </div>
  7011. </div>
  7012. </div>
  7013. </div>
  7014. </div>
  7015. <span slot="footer" class="dialog-footer">
  7016. <el-button
  7017. @click="dialogVisibleChoiceTeacher = false"
  7018. v-show="noteName == ''"
  7019. >取 消</el-button
  7020. >
  7021. <el-button
  7022. type="primary"
  7023. @click="addStudentTestTeacher"
  7024. v-show="noteName == ''"
  7025. >确 定</el-button
  7026. >
  7027. </span>
  7028. </el-dialog>
  7029. <el-dialog
  7030. title="查看富文本"
  7031. :visible.sync="dialogVisible1"
  7032. :append-to-body="true"
  7033. width="500px"
  7034. :before-close="handleClose"
  7035. class="dialog_diy textCss"
  7036. >
  7037. <el-form style="font-size: 20px">
  7038. <el-form-item label="文本标题" class="textTitle">
  7039. <div style="font-size: 20px">{{ text.name }}</div>
  7040. </el-form-item>
  7041. <div>富文本内容</div>
  7042. <div
  7043. v-html="text.url"
  7044. style="font-size: 18px; padding: 40px 0 0 0"
  7045. ></div>
  7046. </el-form>
  7047. <span slot="footer" class="dialog-footer">
  7048. <el-button type="primary" @click="dialogVisible1 = false"
  7049. >确定</el-button
  7050. >
  7051. </span>
  7052. </el-dialog>
  7053. <el-dialog
  7054. title="文件预览"
  7055. :visible.sync="dialogVisible3"
  7056. width="50%"
  7057. :before-close="handleClose"
  7058. class="dialog_diy"
  7059. :class="{ fullStyle: full }"
  7060. >
  7061. <div slot="title" class="header-title">
  7062. <div style="color: #fff">文件预览</div>
  7063. <div style="position: absolute; top: 19px; right: 50px">
  7064. <img
  7065. src="../assets/full.png"
  7066. style="height: 16px; cursor: pointer"
  7067. alt=""
  7068. @click="fullTools"
  7069. />
  7070. </div>
  7071. </div>
  7072. <pdf
  7073. v-if="showPDF"
  7074. :pdfUrl="pptImgUrl"
  7075. style="width: 100%; height: 520px; overflow: auto"
  7076. :class="{ fullStyle: full }"
  7077. ></pdf>
  7078. <iframe
  7079. v-else
  7080. :src="pptImgUrl"
  7081. frameborder="0"
  7082. width="100%"
  7083. height="600"
  7084. :class="{ fullStyle: full }"
  7085. ></iframe>
  7086. </el-dialog>
  7087. <el-dialog
  7088. title="文件预览"
  7089. :visible.sync="dialogVisible6"
  7090. width="50%"
  7091. :before-close="handleClose"
  7092. class="dialog_diy"
  7093. >
  7094. <iframe
  7095. :src="pptImgUrl1"
  7096. frameborder="0"
  7097. width="100%"
  7098. height="600"
  7099. ></iframe>
  7100. </el-dialog>
  7101. <el-dialog
  7102. title="提示"
  7103. :visible.sync="dialogVisible4"
  7104. :append-to-body="true"
  7105. width="800px"
  7106. :before-close="handleClose"
  7107. class="dialog_diy notice"
  7108. >
  7109. <div>此功能暂未开放!</div>
  7110. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  7111. </el-dialog>
  7112. <el-dialog
  7113. title="问答"
  7114. :visible.sync="answerDialogVisible"
  7115. :append-to-body="true"
  7116. width="800px"
  7117. :before-close="handleClose"
  7118. class="dialog_diy"
  7119. >
  7120. <div>
  7121. <div
  7122. style="
  7123. display: flex;
  7124. flex-wrap: nowrap;
  7125. flex-direction: column;
  7126. position: relative;
  7127. "
  7128. >
  7129. <div class="queTop" style="padding: 20px 0 20px 0">
  7130. <div class="question">
  7131. <img src="../assets/icon/question.png" alt />
  7132. </div>
  7133. <div class="queTitle">
  7134. <div style="width: 90px; min-width: 90px">提问:</div>
  7135. <div>{{ answerQ }}</div>
  7136. </div>
  7137. </div>
  7138. <div class="ediBottom">
  7139. <textarea
  7140. rows="6"
  7141. class="binfo_input"
  7142. cols
  7143. style="width: 95%; height: 120px"
  7144. v-model="questionAnswer"
  7145. ></textarea>
  7146. </div>
  7147. </div>
  7148. </div>
  7149. <div slot="footer">
  7150. <el-button @click="answerDialogVisible = false">取 消</el-button>
  7151. <el-button type="primary" @click="addQuestion">提 交</el-button>
  7152. </div>
  7153. </el-dialog>
  7154. <el-dialog
  7155. title="问答"
  7156. :visible.sync="answerDialogVisibleTeacher"
  7157. :append-to-body="true"
  7158. width="800px"
  7159. :before-close="handleClose"
  7160. class="dialog_diy"
  7161. >
  7162. <div>
  7163. <div class="w_name">
  7164. 学生姓名:<span>{{ sStudent.student }}</span>
  7165. </div>
  7166. <div
  7167. style="
  7168. display: flex;
  7169. flex-wrap: nowrap;
  7170. flex-direction: column;
  7171. position: relative;
  7172. "
  7173. >
  7174. <div class="queTop" style="padding: 20px 0 20px 0">
  7175. <div class="question">
  7176. <img src="../assets/icon/question.png" alt />
  7177. </div>
  7178. <div class="queTitle">
  7179. <div style="width: 90px; min-width: 90px">提问:</div>
  7180. <div>{{ answerQ }}</div>
  7181. </div>
  7182. </div>
  7183. <div class="ediBottom">
  7184. <textarea
  7185. rows="6"
  7186. class="binfo_input"
  7187. cols
  7188. style="width: 95%; height: 120px"
  7189. v-model="questionAnswer"
  7190. ></textarea>
  7191. </div>
  7192. </div>
  7193. </div>
  7194. <div slot="footer">
  7195. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  7196. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  7197. </div>
  7198. </el-dialog>
  7199. <el-dialog
  7200. title="倒计时"
  7201. :visible.sync="timeDialogVisible"
  7202. :append-to-body="true"
  7203. width="800px"
  7204. :before-close="handleClose"
  7205. class="dialog_diy"
  7206. >
  7207. <div>
  7208. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  7209. </div>
  7210. <div slot="footer">
  7211. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  7212. </div>
  7213. </el-dialog>
  7214. <el-dialog
  7215. title="权限设置"
  7216. :visible.sync="juriVisible"
  7217. :append-to-body="true"
  7218. width="400px"
  7219. :before-close="handleClose"
  7220. class="dialog_diy"
  7221. >
  7222. <div>
  7223. <div class="open_box">
  7224. <div class="switch_box">
  7225. <span>允许学生查看所有作业</span>
  7226. <el-switch
  7227. v-model="sIsOpen"
  7228. active-text=""
  7229. class="switchCss"
  7230. @change="updateSLook"
  7231. ></el-switch>
  7232. </div>
  7233. <div
  7234. class="switch_box"
  7235. v-if="
  7236. courseDetail.userid == userid ||
  7237. (courseDetail.course_teacher &&
  7238. courseDetail.course_teacher.indexOf(userid) != -1)
  7239. "
  7240. >
  7241. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  7242. <span>禁止学生查看所有阶段</span>
  7243. <el-switch
  7244. v-model="IsLookOpen"
  7245. active-text=""
  7246. class="switchCss"
  7247. @change="updateLookOpen"
  7248. ></el-switch>
  7249. </div>
  7250. <div class="switch_box" v-if="courseDetail.userid == userid">
  7251. <span>开启跟随模式</span>
  7252. <el-switch
  7253. v-model="IsFollow"
  7254. active-text=""
  7255. class="switchCss"
  7256. @change="updateFollow"
  7257. ></el-switch>
  7258. </div>
  7259. </div>
  7260. </div>
  7261. <div slot="footer">
  7262. <el-button
  7263. style="background: #409efe; color: #fff"
  7264. @click="juriVisible = false"
  7265. >关 闭</el-button
  7266. >
  7267. </div>
  7268. </el-dialog>
  7269. <el-dialog
  7270. title="查看视频"
  7271. :visible.sync="videoVisible"
  7272. :append-to-body="true"
  7273. width="1000px"
  7274. :before-close="handleClose"
  7275. class="dialog_diy1"
  7276. >
  7277. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  7278. <video-player
  7279. class="video-player vjs-custom-skin"
  7280. :playsinline="true"
  7281. :options="videoDetail"
  7282. @play="onPlayerPlay($event)"
  7283. style="width: 100%; height: 100%"
  7284. ></video-player>
  7285. </div>
  7286. <div slot="footer">
  7287. <el-button
  7288. style="background: #409efe; color: #fff"
  7289. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  7290. >
  7291. 关 闭</el-button
  7292. >
  7293. </div>
  7294. </el-dialog>
  7295. <el-dialog
  7296. title="查看详情"
  7297. :visible.sync="commentDialogVisible"
  7298. :append-to-body="true"
  7299. width="800px"
  7300. :before-close="handleClose"
  7301. class="dialog_diy"
  7302. >
  7303. <div class="commentTop">
  7304. <div class="studentDetail">
  7305. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  7306. <div class="nameAndTime">
  7307. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  7308. <div>{{ commentDetail.time }}</div>
  7309. </div>
  7310. <div
  7311. class="returnBtn"
  7312. style="margin-left: auto; width: 80px"
  7313. v-if="
  7314. commentDetail.works &&
  7315. commentDetail.type == 0 &&
  7316. (tType == 1 || tType == 4)
  7317. "
  7318. @click="
  7319. showPicturePaint(
  7320. commentDetail.img ? commentDetail.img : commentDetail.works
  7321. )
  7322. "
  7323. >
  7324. 教师批注
  7325. </div>
  7326. </div>
  7327. <div
  7328. class="worksAnswer"
  7329. v-if="commentDetail.works && commentDetail.type == 2"
  7330. >
  7331. {{ JSON.parse(commentDetail.works)[0].answer }}
  7332. </div>
  7333. <div
  7334. class="worksAnswer"
  7335. v-if="commentDetail.works && commentDetail.type == 1"
  7336. >
  7337. <img
  7338. src="../assets/teacherWork.png"
  7339. v-if="commentDetail.ateacher"
  7340. class="w_teachert"
  7341. />
  7342. <pdf
  7343. v-if="showPDF"
  7344. :pdfUrl="pptImgUrl"
  7345. style="width: 100%; height: 520px; overflow: auto"
  7346. :class="{ fullStyle: full }"
  7347. ></pdf>
  7348. <iframe
  7349. v-else
  7350. :src="pptImgUrl"
  7351. frameborder="0"
  7352. width="100%"
  7353. height="600"
  7354. :class="{ fullStyle: full }"
  7355. ></iframe>
  7356. </div>
  7357. <div
  7358. class="worksAnswer"
  7359. v-if="commentDetail.works && commentDetail.type == 0"
  7360. >
  7361. <img
  7362. src="../assets/teacherWork.png"
  7363. v-if="commentDetail.ateacher"
  7364. class="w_teachert"
  7365. style="right: 105px"
  7366. />
  7367. <img
  7368. :src="commentDetail.works"
  7369. alt=""
  7370. @click="previewImg(commentDetail.works)"
  7371. />
  7372. </div>
  7373. <div
  7374. class="worksAnswer"
  7375. v-if="commentDetail.works && commentDetail.type == 3"
  7376. >
  7377. <img
  7378. src="../assets/teacherWork.png"
  7379. v-if="commentDetail.ateacher"
  7380. class="w_teachert"
  7381. />
  7382. <video-player
  7383. class="video-player vjs-custom-skin"
  7384. :playsinline="true"
  7385. :options="videoDetail"
  7386. @play="onPlayerPlay($event)"
  7387. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  7388. ></video-player>
  7389. </div>
  7390. <div
  7391. class="worksAnswer"
  7392. v-if="commentDetail.works && commentDetail.type == 10"
  7393. >
  7394. <div class="cont" v-html="commentDetail.works.text"></div>
  7395. </div>
  7396. <div
  7397. class="worksAnswer codeFileBox"
  7398. v-if="commentDetail.works && commentDetail.type == 12"
  7399. @click="downloadFile(commentDetail.works)"
  7400. >
  7401. <img src="../assets/icon/codeFile.png" />
  7402. <div>点击下载文件</div>
  7403. </div>
  7404. <div
  7405. class="worksAnswer"
  7406. v-if="commentDetail.works && commentDetail.type == 13"
  7407. >
  7408. <div v-html="JSON.parse(commentDetail.works).text"></div>
  7409. </div>
  7410. <div
  7411. class="worksAnswer"
  7412. v-if="commentDetail.works && commentDetail.type == 4"
  7413. >
  7414. <div class="evalCss">
  7415. <div class="nav">请选择星星进行评分</div>
  7416. <div class="middleBox" v-if="eScore.eStar">
  7417. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  7418. <div class="nameAndrate">
  7419. <div>{{ e.value }}</div>
  7420. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  7421. </div>
  7422. <div v-if="e.detail">{{ e.detail }}</div>
  7423. </div>
  7424. <div class="bz">
  7425. <textarea
  7426. disabled
  7427. rows="4"
  7428. class="pj"
  7429. style="
  7430. padding: 10px 5px;
  7431. width: 70%;
  7432. background: #f7f6f9;
  7433. font-size: 14px;
  7434. text-indent: 10px;
  7435. color: #000;
  7436. "
  7437. cols
  7438. v-model="eScore.eBzText"
  7439. placeholder="请输入评价内容..."
  7440. ></textarea>
  7441. </div>
  7442. </div>
  7443. </div>
  7444. </div>
  7445. <div class="comment">
  7446. <div class="commentList">
  7447. <div class="commentImg">
  7448. <img
  7449. @click="
  7450. isLikes(
  7451. commentDetail.wid,
  7452. userid,
  7453. 1,
  7454. null,
  7455. commentDetail.isLikes
  7456. )
  7457. "
  7458. :src="commentDetail.isLikes == true ? likes : noLikes"
  7459. alt=""
  7460. />
  7461. </div>
  7462. <div>{{ commentDetail.likesCount }}</div>
  7463. </div>
  7464. <div class="commentList">
  7465. <div class="commentImg">
  7466. <img src="../assets/icon/comment/comment.png" alt="" />
  7467. </div>
  7468. <div>{{ commentDetail.commentCount }}</div>
  7469. </div>
  7470. </div>
  7471. <div class="drawPBox" v-if="commentDetail.img">
  7472. <span>教师批注</span>
  7473. <img
  7474. :src="commentDetail.img"
  7475. alt=""
  7476. @click="previewImg(commentDetail.img)"
  7477. />
  7478. <span
  7479. class="deleteImg"
  7480. v-if="tType == 1 || tType == 4"
  7481. @click.stop="deletePicturePaint(commentDetail.wid)"
  7482. style="
  7483. font-size: 14px;
  7484. width: auto !important;
  7485. color: #b4b4b4;
  7486. top: unset;
  7487. bottom: 0;
  7488. border: none;
  7489. padding: 0;
  7490. height: auto !important;
  7491. margin: 0;
  7492. "
  7493. >删除</span
  7494. >
  7495. </div>
  7496. </div>
  7497. <div class="commentBox">
  7498. <div class="pl">评论:</div>
  7499. <div style="max-height: 200px; overflow: auto">
  7500. <div
  7501. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  7502. style="padding: 10px 0 0 0"
  7503. >
  7504. <div
  7505. class="studentDetail"
  7506. style="padding-top: 10px"
  7507. v-for="(co, coIndex) in commentDetail.commentJson"
  7508. :key="coIndex"
  7509. >
  7510. <div class="tx" style="min-width: 50px">
  7511. <img src="../assets/avatar.png" alt="" />
  7512. </div>
  7513. <div class="plPerson">
  7514. <div class="plName">
  7515. <div>{{ co.commentPeople }}</div>
  7516. <div style="margin-left: 5px">
  7517. {{ co.commentTime }}
  7518. </div>
  7519. <div
  7520. class="deleteComment"
  7521. v-if="userid == co.userid"
  7522. @click="deleteComment(co.wid)"
  7523. >
  7524. 删除
  7525. </div>
  7526. </div>
  7527. <div class="plContent">{{ co.commentText }}</div>
  7528. </div>
  7529. </div>
  7530. </div>
  7531. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  7532. </div>
  7533. </div>
  7534. <div style="margin-top: 10px">
  7535. <div class="displayBox">
  7536. <div
  7537. style="
  7538. color: #556db4;
  7539. font-size: 14px;
  7540. font-weight: bold;
  7541. padding-bottom: 10px;
  7542. "
  7543. >
  7544. 评价
  7545. </div>
  7546. <div class="easy_comment" v-if="false">
  7547. <div
  7548. v-for="(p, pIndex) in PlTextList"
  7549. :key="pIndex"
  7550. @click="fastText(p, 1)"
  7551. >
  7552. {{ p }}
  7553. </div>
  7554. </div>
  7555. </div>
  7556. <div>
  7557. <textarea
  7558. rows="3"
  7559. class="pj"
  7560. style="padding: 10px 5px"
  7561. cols
  7562. v-model="commentText"
  7563. placeholder="请输入对该学生的评价"
  7564. ></textarea>
  7565. </div>
  7566. </div>
  7567. <div slot="footer">
  7568. <el-button
  7569. @click="
  7570. (commentDialogVisible = false),
  7571. (commentIndexJson = {}),
  7572. videoDetail.sources && videoDetail.sources[0]
  7573. ? (videoDetail.sources[0].src = '')
  7574. : ''
  7575. "
  7576. >取 消</el-button
  7577. >
  7578. <el-button
  7579. type="primary"
  7580. @click="addComment(commentDetail.wid, userid, 2)"
  7581. >确 定</el-button
  7582. >
  7583. </div>
  7584. </el-dialog>
  7585. <el-dialog
  7586. title="查看文档"
  7587. :visible.sync="fullDialogVisible"
  7588. :append-to-body="true"
  7589. width="100%"
  7590. :before-close="handleClose"
  7591. :show-close="false"
  7592. class="dialog_diy full_diy"
  7593. :class="{ full_diy2: fulltype == 3 }"
  7594. >
  7595. <div slot="title" class="header-title">
  7596. <div style="color: #fff">查看文档</div>
  7597. <div
  7598. @click="fullDialogVisible = false"
  7599. style="
  7600. cursor: pointer;
  7601. position: absolute;
  7602. top: 20px;
  7603. right: 20px;
  7604. color: #fff;
  7605. "
  7606. >
  7607. 退出全屏
  7608. </div>
  7609. </div>
  7610. <div style="height: 100%">
  7611. <div
  7612. class="wheel"
  7613. v-if="
  7614. fulltype == 2 &&
  7615. fullUrl.indexOf(
  7616. 'https://view.officeapps.live.com/op/view.aspx?src='
  7617. ) != -1
  7618. "
  7619. style="width: 95%; margin: 0 auto"
  7620. >
  7621. <iframe
  7622. style="width: 100%; height: 100%; border: none"
  7623. :src="fullUrl"
  7624. ></iframe>
  7625. </div>
  7626. <iframe
  7627. v-else-if="fulltype == 2"
  7628. style="width: 100%; height: 100%; border: none"
  7629. :src="fullUrl"
  7630. security="restricted"
  7631. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  7632. ></iframe>
  7633. <pdf
  7634. v-else-if="fulltype == 3"
  7635. :pdfUrl="fullUrl"
  7636. style="width: 100%; height: 100%; overflow: auto"
  7637. ></pdf>
  7638. <div
  7639. class="wheel"
  7640. v-if="fulltype == 1"
  7641. style="
  7642. box-shadow: 0 0 6px 1px #f2f2f2;
  7643. width: 100%;
  7644. background: #f1f1f1;
  7645. "
  7646. >
  7647. <div class="title" style="width: 100%; box-sizing: border-box">
  7648. 查看文档
  7649. </div>
  7650. <el-form class="textBox" style="height: 90%">
  7651. <el-form-item class="textTitle">
  7652. <div style="font-size: 22px">
  7653. {{ fullUrl.name }}
  7654. </div>
  7655. </el-form-item>
  7656. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  7657. <div
  7658. v-html="fullUrl.url"
  7659. class="textContent"
  7660. style="height: auto"
  7661. ></div>
  7662. </el-form>
  7663. </div>
  7664. </div>
  7665. <!-- <div slot="footer">
  7666. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  7667. </div> -->
  7668. </el-dialog>
  7669. <el-dialog
  7670. title="个人评价"
  7671. :visible.sync="studentEvalDialogVisible"
  7672. :append-to-body="true"
  7673. width="800px"
  7674. :before-close="handleClose"
  7675. class="dialog_diy"
  7676. >
  7677. <div class="evalCss">
  7678. <div class="nav">请选择星星进行评分</div>
  7679. <div class="middleBox" v-if="eScore.eStar">
  7680. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  7681. <div class="nameAndrate">
  7682. <div>{{ e.value }}</div>
  7683. <el-rate
  7684. v-model="eScore.eStar[eIndex]"
  7685. :disabled="isStar"
  7686. ></el-rate>
  7687. </div>
  7688. <div v-if="e.detail">{{ e.detail }}</div>
  7689. </div>
  7690. <div class="easy_comment" v-if="false">
  7691. <div
  7692. v-for="(p, pIndex) in PlTextList"
  7693. :key="pIndex"
  7694. @click="fastText(p, 2)"
  7695. >
  7696. {{ p }}
  7697. </div>
  7698. </div>
  7699. <div class="bz">
  7700. <textarea
  7701. :disabled="isStar"
  7702. rows="4"
  7703. class="pj"
  7704. style="
  7705. padding: 10px 5px;
  7706. width: 70%;
  7707. background: #f7f6f9;
  7708. font-size: 14px;
  7709. text-indent: 10px;
  7710. "
  7711. cols
  7712. v-model="eScore.eBzText"
  7713. placeholder="请输入评价内容..."
  7714. ></textarea>
  7715. </div>
  7716. </div>
  7717. </div>
  7718. <div slot="footer">
  7719. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  7720. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  7721. >确 定</el-button
  7722. >
  7723. </div>
  7724. </el-dialog>
  7725. <el-dialog
  7726. title="个人评价"
  7727. :visible.sync="studentEvalDialogVisibleTeacher"
  7728. :append-to-body="true"
  7729. width="800px"
  7730. :before-close="handleClose"
  7731. class="dialog_diy"
  7732. >
  7733. <div class="w_name">
  7734. 学生姓名:<span>{{ sStudent.student }}</span>
  7735. </div>
  7736. <div class="evalCss">
  7737. <div class="nav">请选择星星进行评分</div>
  7738. <div class="middleBox" v-if="eScore.eStar">
  7739. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  7740. <div class="nameAndrate">
  7741. <div>{{ e.value }}</div>
  7742. <el-rate
  7743. v-model="eScore.eStar[eIndex]"
  7744. :disabled="isStar"
  7745. ></el-rate>
  7746. </div>
  7747. <div v-if="e.detail">{{ e.detail }}</div>
  7748. </div>
  7749. <div class="easy_comment" v-if="false">
  7750. <div
  7751. v-for="(p, pIndex) in PlTextList"
  7752. :key="pIndex"
  7753. @click="fastText(p, 2)"
  7754. >
  7755. {{ p }}
  7756. </div>
  7757. </div>
  7758. <div class="bz">
  7759. <textarea
  7760. :disabled="isStar"
  7761. rows="4"
  7762. class="pj"
  7763. style="
  7764. padding: 10px 5px;
  7765. width: 70%;
  7766. background: #f7f6f9;
  7767. font-size: 14px;
  7768. text-indent: 10px;
  7769. "
  7770. cols
  7771. v-model="eScore.eBzText"
  7772. placeholder="请输入评价内容..."
  7773. ></textarea>
  7774. </div>
  7775. </div>
  7776. </div>
  7777. <div slot="footer">
  7778. <el-button @click="studentEvalDialogVisibleTeacher = false"
  7779. >取 消</el-button
  7780. >
  7781. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  7782. >确 定</el-button
  7783. >
  7784. </div>
  7785. </el-dialog>
  7786. <el-dialog
  7787. title="选择填空"
  7788. :visible.sync="dialogVisibleSelect"
  7789. :append-to-body="true"
  7790. width="90%"
  7791. :before-close="handleClose"
  7792. class="dialog_diy dialog_diy3"
  7793. >
  7794. <div v-if="selectJson">
  7795. <div class="select_box2">
  7796. <div class="select_box2_title">
  7797. <div>选择填空</div>
  7798. <div>请选择对应的答案进行答题!</div>
  7799. </div>
  7800. <div class="select_box2_box">
  7801. <div class="select_box2_img">
  7802. <img
  7803. :src="selectJson.url"
  7804. @click="previewImg(selectJson.url)"
  7805. alt=""
  7806. />
  7807. </div>
  7808. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  7809. <div style="padding-top: 15px">
  7810. <div class="select_answer_title" v-if="isSelect">
  7811. {{ selectAnswer.stu }}
  7812. </div>
  7813. <div class="select_answer_title" v-else>
  7814. 根据题目选择对应答案
  7815. </div>
  7816. <div
  7817. class="select_box2_answer_box"
  7818. v-for="(item2, checkIndex) in selectJson.select"
  7819. :key="checkIndex"
  7820. >
  7821. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  7822. <el-select
  7823. :disabled="isSelect"
  7824. v-model="selectAnswer.answer[checkIndex]"
  7825. placeholder="请选择正确答案"
  7826. >
  7827. <el-option
  7828. v-for="(e, eIndex) in selectJson.select"
  7829. :key="eIndex"
  7830. :label="e"
  7831. :value="eIndex"
  7832. >
  7833. </el-option>
  7834. </el-select>
  7835. </div>
  7836. </div>
  7837. <div
  7838. class="rightAnswerCss"
  7839. v-if="isSelect && (tType == 1 || tType == 4)"
  7840. >
  7841. <div
  7842. v-for="(a, aIndex) in selectJson.answer"
  7843. :key="aIndex"
  7844. class="rightAnswer"
  7845. >
  7846. <div
  7847. v-if="selectAnswer.answer[aIndex] === a"
  7848. style="color: #767de1"
  7849. >
  7850. 回答正确
  7851. </div>
  7852. <div v-else>回答错误</div>
  7853. <div
  7854. style="margin-left: 10px"
  7855. v-if="selectAnswer.answer[aIndex] !== a"
  7856. >
  7857. 正确答案:
  7858. </div>
  7859. <div
  7860. :class="
  7861. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  7862. "
  7863. >
  7864. {{ selectJson.select[a] }}
  7865. </div>
  7866. </div>
  7867. </div>
  7868. </div>
  7869. <div class="upAnswerCss">
  7870. <el-button
  7871. type="primary"
  7872. @click="addSelectAnswer"
  7873. v-if="!isSelect"
  7874. >提交答案</el-button
  7875. >
  7876. </div>
  7877. </div>
  7878. </div>
  7879. </div>
  7880. </el-dialog>
  7881. <el-dialog
  7882. title="选择填空"
  7883. :visible.sync="dialogVisibleSelectTeacher"
  7884. :append-to-body="true"
  7885. width="90%"
  7886. :before-close="handleClose"
  7887. class="dialog_diy dialog_diy3"
  7888. >
  7889. <div v-if="selectJson">
  7890. <div class="w_name">
  7891. 学生姓名:<span>{{ sStudent.student }}</span>
  7892. </div>
  7893. <div class="select_box2">
  7894. <div class="select_box2_title">
  7895. <div>选择填空</div>
  7896. <div>请选择对应的答案进行答题!</div>
  7897. </div>
  7898. <div class="select_box2_box">
  7899. <div class="select_box2_img">
  7900. <img
  7901. :src="selectJson.url"
  7902. @click="previewImg(selectJson.url)"
  7903. alt=""
  7904. />
  7905. </div>
  7906. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  7907. <div style="padding-top: 15px">
  7908. <div class="select_answer_title" v-if="isSelect">
  7909. {{ selectAnswer.stu }}
  7910. </div>
  7911. <div class="select_answer_title" v-else>
  7912. 根据题目选择对应答案
  7913. </div>
  7914. <div
  7915. class="select_box2_answer_box"
  7916. v-for="(item2, checkIndex) in selectJson.select"
  7917. :key="checkIndex"
  7918. >
  7919. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  7920. <el-select
  7921. :disabled="isSelect"
  7922. v-model="selectAnswer.answer[checkIndex]"
  7923. placeholder="请选择正确答案"
  7924. >
  7925. <el-option
  7926. v-for="(e, eIndex) in selectJson.select"
  7927. :key="eIndex"
  7928. :label="e"
  7929. :value="eIndex"
  7930. >
  7931. </el-option>
  7932. </el-select>
  7933. </div>
  7934. </div>
  7935. <div
  7936. class="rightAnswerCss"
  7937. v-if="isSelect && (tType == 1 || tType == 4)"
  7938. >
  7939. <div
  7940. v-for="(a, aIndex) in selectJson.answer"
  7941. :key="aIndex"
  7942. class="rightAnswer"
  7943. >
  7944. <div
  7945. v-if="selectAnswer.answer[aIndex] === a"
  7946. style="color: #767de1"
  7947. >
  7948. 回答正确
  7949. </div>
  7950. <div v-else>回答错误</div>
  7951. <div
  7952. style="margin-left: 10px"
  7953. v-if="selectAnswer.answer[aIndex] !== a"
  7954. >
  7955. 正确答案:
  7956. </div>
  7957. <div
  7958. :class="
  7959. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  7960. "
  7961. >
  7962. {{ selectJson.select[a] }}
  7963. </div>
  7964. </div>
  7965. </div>
  7966. </div>
  7967. <div class="upAnswerCss">
  7968. <el-button
  7969. type="primary"
  7970. @click="addSelectAnswerTeacher"
  7971. v-if="!isSelect"
  7972. >提交答案</el-button
  7973. >
  7974. </div>
  7975. </div>
  7976. </div>
  7977. </div>
  7978. </el-dialog>
  7979. <el-dialog
  7980. title="教师评分"
  7981. :visible.sync="dialogVisibleScore"
  7982. :append-to-body="true"
  7983. width="800px"
  7984. :before-close="handleClose"
  7985. class="dialog_diy"
  7986. >
  7987. <div>
  7988. <div class="studentDetail">
  7989. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  7990. <div class="nameAndTime">
  7991. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  7992. <div>{{ commentDetail.time }}</div>
  7993. </div>
  7994. </div>
  7995. <div
  7996. class="worksAnswer"
  7997. v-if="commentDetail.works && commentDetail.type == 2"
  7998. >
  7999. {{ JSON.parse(commentDetail.works)[0].answer }}
  8000. </div>
  8001. <div
  8002. class="worksAnswer"
  8003. v-if="commentDetail.works && commentDetail.type == 1"
  8004. >
  8005. <pdf
  8006. v-if="showPDF"
  8007. :pdfUrl="pptImgUrl"
  8008. style="width: 100%; height: 520px; overflow: auto"
  8009. :class="{ fullStyle: full }"
  8010. ></pdf>
  8011. <iframe
  8012. v-else
  8013. :src="pptImgUrl"
  8014. frameborder="0"
  8015. width="100%"
  8016. height="600"
  8017. :class="{ fullStyle: full }"
  8018. ></iframe>
  8019. </div>
  8020. <div
  8021. class="worksAnswer"
  8022. v-if="commentDetail.works && commentDetail.type == 0"
  8023. >
  8024. <img
  8025. :src="commentDetail.works"
  8026. alt=""
  8027. @click="previewImg(commentDetail.works)"
  8028. />
  8029. </div>
  8030. <div
  8031. class="worksAnswer"
  8032. v-if="commentDetail.works && commentDetail.type == 3"
  8033. >
  8034. <video-player
  8035. class="video-player vjs-custom-skin"
  8036. :playsinline="true"
  8037. :options="videoDetail"
  8038. @play="onPlayerPlay($event)"
  8039. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  8040. ></video-player>
  8041. </div>
  8042. <div
  8043. class="worksAnswer codeFileBox"
  8044. v-if="commentDetail.works && commentDetail.type == 12"
  8045. @click="downloadFile(commentDetail.works)"
  8046. >
  8047. <img src="../assets/icon/codeFile.png" />
  8048. <div>点击下载文件</div>
  8049. </div>
  8050. <div
  8051. class="worksAnswer"
  8052. v-if="commentDetail.works && commentDetail.type == 13"
  8053. >
  8054. <div v-html="JSON.parse(commentDetail.works).text"></div>
  8055. </div>
  8056. <div class="scoreBox">
  8057. <span class="t">请输入分数</span>
  8058. <el-input-number
  8059. :disabled="courseDetail.userid != userid"
  8060. v-model="wScore"
  8061. :controls="false"
  8062. :min="0"
  8063. :max="100"
  8064. ></el-input-number>
  8065. </div>
  8066. <div class="scoreDetailBox">
  8067. <span class="t">评分评论</span>
  8068. <el-input
  8069. type="textarea"
  8070. :rows="5"
  8071. :disabled="courseDetail.userid != userid"
  8072. resize="none"
  8073. v-model="scoreDetail"
  8074. placeholder="请输入对学生的评价"
  8075. >
  8076. </el-input>
  8077. </div>
  8078. </div>
  8079. <span slot="footer" class="dialog-footer">
  8080. <el-button
  8081. @click="
  8082. (dialogVisibleScore = false),
  8083. (commentIndexJson = {}),
  8084. videoDetail.sources && videoDetail.sources[0]
  8085. ? (videoDetail.sources[0].src = '')
  8086. : ''
  8087. "
  8088. >取 消</el-button
  8089. >
  8090. <el-button
  8091. type="primary"
  8092. v-if="courseDetail.userid == userid"
  8093. @click="scoreWork(commentDetail.wid)"
  8094. >确 定
  8095. </el-button>
  8096. </span>
  8097. </el-dialog>
  8098. <el-dialog
  8099. title="连词成句"
  8100. :visible.sync="dialogVisibleSentence"
  8101. :append-to-body="true"
  8102. width="1000px"
  8103. :before-close="handleClose"
  8104. class="dialog_diy dialog_diy3"
  8105. >
  8106. <div>
  8107. <div class="sentenBox">
  8108. <div
  8109. v-for="(st, stIndex) in sentenceList"
  8110. :key="stIndex"
  8111. style="padding-bottom: 20px"
  8112. >
  8113. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  8114. <div class="cardList" v-if="st.chooseSenList">
  8115. <div class="cardBox">
  8116. <div
  8117. v-for="(r, rIndex) in st.chooseSenList"
  8118. :key="rIndex"
  8119. @click="returnCard(r, stIndex, rIndex)"
  8120. >
  8121. <el-tooltip
  8122. class="item"
  8123. effect="light"
  8124. :content="r"
  8125. placement="top"
  8126. v-if="r != '' && r != undefined"
  8127. >
  8128. <div
  8129. :class="{
  8130. isCard: r,
  8131. isChooseCard: r == '' || r == undefined,
  8132. }"
  8133. >
  8134. <div>{{ r }}</div>
  8135. </div>
  8136. </el-tooltip>
  8137. <div
  8138. :class="{
  8139. isCard: r,
  8140. isChooseCard: r == '' || r == undefined,
  8141. }"
  8142. v-else
  8143. >
  8144. <div>{{ r }}</div>
  8145. </div>
  8146. </div>
  8147. </div>
  8148. </div>
  8149. <div class="cardList" v-if="st.addChangeSen">
  8150. <div class="cardBox">
  8151. <div
  8152. v-for="(s, sIndex) in st.addChangeSen"
  8153. :key="sIndex"
  8154. @click="setRightAnswer(s, stIndex, sIndex)"
  8155. >
  8156. <el-tooltip
  8157. class="item"
  8158. effect="light"
  8159. :content="s"
  8160. placement="top"
  8161. v-if="s != '' && s != undefined"
  8162. >
  8163. <div
  8164. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8165. >
  8166. <div>{{ s }}</div>
  8167. </div>
  8168. </el-tooltip>
  8169. <div
  8170. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8171. v-else
  8172. >
  8173. <div>{{ s }}</div>
  8174. </div>
  8175. </div>
  8176. </div>
  8177. </div>
  8178. </div>
  8179. </div>
  8180. </div>
  8181. <span slot="footer" class="dialog-footer">
  8182. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  8183. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  8184. </span>
  8185. </el-dialog>
  8186. <el-dialog
  8187. title="连词成句"
  8188. :visible.sync="dialogVisibleSentenceTeacher"
  8189. :append-to-body="true"
  8190. width="1000px"
  8191. :before-close="handleClose"
  8192. class="dialog_diy dialog_diy3"
  8193. >
  8194. <div>
  8195. <div class="w_name">
  8196. 学生姓名:<span>{{ sStudent.student }}</span>
  8197. </div>
  8198. <div class="sentenBox">
  8199. <div
  8200. v-for="(st, stIndex) in sentenceList"
  8201. :key="stIndex"
  8202. style="padding-bottom: 20px"
  8203. >
  8204. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  8205. <div class="cardList" v-if="st.chooseSenList">
  8206. <div class="cardBox">
  8207. <div
  8208. v-for="(r, rIndex) in st.chooseSenList"
  8209. :key="rIndex"
  8210. @click="returnCard(r, stIndex, rIndex)"
  8211. >
  8212. <el-tooltip
  8213. class="item"
  8214. effect="light"
  8215. :content="r"
  8216. placement="top"
  8217. v-if="r != '' && r != undefined"
  8218. >
  8219. <div
  8220. :class="{
  8221. isCard: r,
  8222. isChooseCard: r == '' || r == undefined,
  8223. }"
  8224. >
  8225. <div>{{ r }}</div>
  8226. </div>
  8227. </el-tooltip>
  8228. <div
  8229. :class="{
  8230. isCard: r,
  8231. isChooseCard: r == '' || r == undefined,
  8232. }"
  8233. v-else
  8234. >
  8235. <div>{{ r }}</div>
  8236. </div>
  8237. </div>
  8238. </div>
  8239. </div>
  8240. <div class="cardList" v-if="st.addChangeSen">
  8241. <div class="cardBox">
  8242. <div
  8243. v-for="(s, sIndex) in st.addChangeSen"
  8244. :key="sIndex"
  8245. @click="setRightAnswer(s, stIndex, sIndex)"
  8246. >
  8247. <el-tooltip
  8248. class="item"
  8249. effect="light"
  8250. :content="s"
  8251. placement="top"
  8252. v-if="s != '' && s != undefined"
  8253. >
  8254. <div
  8255. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8256. >
  8257. <div>{{ s }}</div>
  8258. </div>
  8259. </el-tooltip>
  8260. <div
  8261. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8262. v-else
  8263. >
  8264. <div>{{ s }}</div>
  8265. </div>
  8266. </div>
  8267. </div>
  8268. </div>
  8269. </div>
  8270. </div>
  8271. </div>
  8272. <span slot="footer" class="dialog-footer">
  8273. <el-button @click="dialogVisibleSentenceTeacher = false"
  8274. >取 消</el-button
  8275. >
  8276. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  8277. </span>
  8278. </el-dialog>
  8279. <el-dialog
  8280. title="连词成句"
  8281. :visible.sync="dialogVisibleSentence1"
  8282. :append-to-body="true"
  8283. width="1000px"
  8284. :before-close="handleClose"
  8285. class="dialog_diy dialog_diy3"
  8286. >
  8287. <div>
  8288. <div class="sentenBox">
  8289. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  8290. {{ sentenceList1.stuName }}的作业
  8291. </div>
  8292. <div
  8293. v-for="(st, stIndex) in sentenceList1"
  8294. :key="stIndex"
  8295. style="padding-bottom: 20px"
  8296. >
  8297. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  8298. 第{{ stIndex + 1 }}题
  8299. </div>
  8300. <div class="isWrong">
  8301. <div class="cardList1" v-if="st.chooseSenList">
  8302. <div class="cardBox">
  8303. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  8304. <el-tooltip
  8305. class="item"
  8306. effect="light"
  8307. :content="s"
  8308. placement="top"
  8309. >
  8310. <div class="isCard">
  8311. <div>{{ s }}</div>
  8312. </div>
  8313. </el-tooltip>
  8314. </div>
  8315. </div>
  8316. <div class="cardAnswerBox">
  8317. 组成句子:{{ st.chooseSenList.join(" ") }}
  8318. </div>
  8319. </div>
  8320. <div v-if="tType == 2" class="isTj">
  8321. <div class="isTjImg">
  8322. <img src="../assets/icon/conSentences/right.png" alt="" />
  8323. </div>
  8324. <div>已提交</div>
  8325. </div>
  8326. <div
  8327. class="answerRight isTj"
  8328. v-if="
  8329. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  8330. (tType == 1 || tType == 4)
  8331. "
  8332. >
  8333. <div class="isTjImg">
  8334. <img src="../assets/icon/conSentences/right.png" alt="" />
  8335. </div>
  8336. <div>回答正确</div>
  8337. </div>
  8338. <div
  8339. class="answerRight isTj"
  8340. v-if="
  8341. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  8342. (tType == 1 || tType == 4)
  8343. "
  8344. >
  8345. <div class="isTjImg">
  8346. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  8347. </div>
  8348. <div>回答错误</div>
  8349. </div>
  8350. </div>
  8351. <div
  8352. v-if="
  8353. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  8354. (tType == 1 || tType == 4)
  8355. "
  8356. >
  8357. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  8358. <div
  8359. class="cardList"
  8360. v-if="st.rightAnswer"
  8361. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  8362. >
  8363. <div class="cardBox">
  8364. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  8365. <el-tooltip
  8366. class="item"
  8367. effect="light"
  8368. :content="r"
  8369. placement="top"
  8370. >
  8371. <div class="isCard1">
  8372. <div>{{ r }}</div>
  8373. </div>
  8374. </el-tooltip>
  8375. </div>
  8376. </div>
  8377. <div class="cardAnswerBox">
  8378. 组成句子:{{ st.rightAnswer.join(" ") }}
  8379. </div>
  8380. </div>
  8381. </div>
  8382. </div>
  8383. </div>
  8384. </div>
  8385. <span slot="footer" class="dialog-footer">
  8386. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  8387. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  8388. >确 定</el-button
  8389. >
  8390. </span>
  8391. </el-dialog>
  8392. <el-dialog
  8393. title="教师提交作业"
  8394. :visible.sync="dialogVisibleWorks"
  8395. :append-to-body="true"
  8396. width="500px"
  8397. :before-close="handleClose"
  8398. class="dialog_change"
  8399. >
  8400. <div class="marginT">
  8401. <div class="w_name">
  8402. 学生姓名:<span>{{ sStudent.student }}</span>
  8403. </div>
  8404. <div>上传文件</div>
  8405. <div
  8406. class="chapter_add"
  8407. @click="addImg($event)"
  8408. v-if="studyJuri[0].cover.length == 0"
  8409. >
  8410. <div class="up_photo">
  8411. <img src="../assets/uploadImg2.png" alt />
  8412. </div>
  8413. <!-- <input
  8414. type="file"
  8415. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8416. style="display: none"
  8417. @change="beforeUpload1($event, 1)"
  8418. /> -->
  8419. <input
  8420. type="file"
  8421. accept="*"
  8422. style="display: none"
  8423. @change="beforeUpload1($event, 1)"
  8424. />
  8425. </div>
  8426. <!-- capture="camera" -->
  8427. <div
  8428. class="chapter_add"
  8429. style="
  8430. display: flex;
  8431. width: 100%;
  8432. flex-direction: row;
  8433. flex-wrap: wrap;
  8434. justify-content: flex-start;
  8435. padding: 15px 0;
  8436. "
  8437. v-if="studyJuri[0].cover.length > 0"
  8438. >
  8439. <div class="upCover">
  8440. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  8441. <img :src="word" alt v-else-if="fileType == 1" />
  8442. <img :src="video" alt v-else-if="fileType == 2" />
  8443. <img :src="word2" alt v-else-if="fileType == 3" />
  8444. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8445. <div class="deleteWord" @click="clean(1)">
  8446. <img src="../assets/icon/deleteWorks.png" alt />
  8447. </div>
  8448. </div>
  8449. </div>
  8450. </div>
  8451. <div
  8452. class="upload_send"
  8453. @click="addCourseWorksTeacher(taskCount)"
  8454. v-if="!proVisible"
  8455. >
  8456. 提交
  8457. </div>
  8458. </el-dialog>
  8459. <ImgDraw
  8460. :drawShow="drawShow"
  8461. @closeDraw="closeDraw"
  8462. @addImgDraw="addImgDraw"
  8463. :bg="bg"
  8464. ></ImgDraw>
  8465. <el-dialog
  8466. title="表格"
  8467. :visible.sync="dialogVisibleTable"
  8468. :append-to-body="true"
  8469. width="95%"
  8470. :before-close="handleClose"
  8471. class="dialog_diy"
  8472. >
  8473. <el-form>
  8474. <div style="display: flex;align-items: center;justify-content: space-between;">
  8475. <span>表格内容</span>
  8476. <el-button type="primary" size="small" @click="returnTableText">还原模板</el-button>
  8477. </div>
  8478. <Table
  8479. v-model="tableJson.text"
  8480. @change="change"
  8481. v-if="dialogVisibleTable"
  8482. ></Table>
  8483. </el-form>
  8484. <span slot="footer" class="dialog-footer">
  8485. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  8486. <el-button type="primary" @click="addTableWorks">确定</el-button>
  8487. </span>
  8488. </el-dialog>
  8489. <el-dialog
  8490. title="表格"
  8491. :visible.sync="dialogVisibleTableTeacher"
  8492. :append-to-body="true"
  8493. width="95%"
  8494. :before-close="handleClose"
  8495. class="dialog_diy"
  8496. >
  8497. <el-form>
  8498. <div class="w_name">
  8499. 学生姓名:<span>{{ sStudent.student }}</span>
  8500. </div>
  8501. <div>表格内容</div>
  8502. <Table
  8503. v-model="tableJson.text"
  8504. @change="change"
  8505. v-if="dialogVisibleTableTeacher"
  8506. ></Table>
  8507. </el-form>
  8508. <span slot="footer" class="dialog-footer">
  8509. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  8510. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  8511. </span>
  8512. </el-dialog>
  8513. <el-dialog
  8514. title="文档"
  8515. :visible.sync="dialogVisibleWord"
  8516. :append-to-body="true"
  8517. width="95%"
  8518. :before-close="handleClose"
  8519. class="dialog_diy"
  8520. >
  8521. <el-form>
  8522. <div style="display: flex;align-items: center;justify-content: space-between;">
  8523. <span>文档内容</span>
  8524. <el-button type="primary" size="small" @click="returnWordText">还原模板</el-button>
  8525. </div>
  8526. <editor-bar
  8527. v-model="wordJson.text"
  8528. v-if="dialogVisibleWord"
  8529. ></editor-bar>
  8530. </el-form>
  8531. <span slot="footer" class="dialog-footer">
  8532. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  8533. <el-button type="primary" @click="addWordWorks">确定</el-button>
  8534. </span>
  8535. </el-dialog>
  8536. <el-dialog
  8537. title="文档"
  8538. :visible.sync="dialogVisibleWordTeacher"
  8539. :append-to-body="true"
  8540. width="95%"
  8541. :before-close="handleClose"
  8542. class="dialog_diy"
  8543. >
  8544. <el-form>
  8545. <div class="w_name">
  8546. 学生姓名:<span>{{ sStudent.student }}</span>
  8547. </div>
  8548. <div>文档内容</div>
  8549. <editor-bar
  8550. v-model="wordJson.text"
  8551. v-if="dialogVisibleWordTeacher"
  8552. ></editor-bar>
  8553. </el-form>
  8554. <span slot="footer" class="dialog-footer">
  8555. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  8556. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  8557. </span>
  8558. </el-dialog>
  8559. <el-dialog
  8560. title="表格"
  8561. :visible.sync="dialogVisibleTable2"
  8562. :append-to-body="true"
  8563. width="95%"
  8564. :before-close="handleClose"
  8565. class="dialog_diy"
  8566. >
  8567. <el-form>
  8568. <div class="cont" v-html="tableJson.text"></div>
  8569. </el-form>
  8570. <span slot="footer" class="dialog-footer">
  8571. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  8572. </span>
  8573. </el-dialog>
  8574. <el-dialog
  8575. title="文档"
  8576. :visible.sync="dialogVisibleTable3"
  8577. :append-to-body="true"
  8578. width="95%"
  8579. :before-close="handleClose"
  8580. class="dialog_diy"
  8581. >
  8582. <el-form>
  8583. <div class="cont" v-html="tableJson.text"></div>
  8584. </el-form>
  8585. <span slot="footer" class="dialog-footer">
  8586. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  8587. </span>
  8588. </el-dialog>
  8589. <el-dialog
  8590. title="分组设置"
  8591. :visible.sync="dialogVisibleGroup"
  8592. :append-to-body="true"
  8593. width="95%"
  8594. :before-close="handleClose"
  8595. class="dialog_diy"
  8596. >
  8597. <div v-if="dialogVisibleGroup">
  8598. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  8599. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  8600. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  8601. </div>
  8602. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  8603. @click="lockChair">
  8604. 锁定位置
  8605. </div>
  8606. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  8607. 解锁位置
  8608. </div> -->
  8609. <div class="group_switch">
  8610. <span>开放选座</span>
  8611. <el-switch
  8612. v-model="islock"
  8613. active-text=""
  8614. class="switchCss"
  8615. @change="lockChair"
  8616. ></el-switch>
  8617. </div>
  8618. <div
  8619. type="primary"
  8620. @click="updateGroup"
  8621. class="returnBtn"
  8622. style="background-color: #225bc7"
  8623. >
  8624. 分组设置
  8625. </div>
  8626. </div>
  8627. <div>
  8628. <div
  8629. class="g_d_box"
  8630. v-if="groupJson.group && groupStudent[toolindex]"
  8631. >
  8632. <div
  8633. class="g_d_group"
  8634. v-for="(g, gindex) in groupJson.group"
  8635. :key="gindex"
  8636. >
  8637. <div class="g_d_group_chair">
  8638. <div v-if="groupJson.number > 1">
  8639. <span
  8640. :class="{
  8641. isChair:
  8642. groupStudent[toolindex][gindex] &&
  8643. groupStudent[toolindex][gindex][0],
  8644. updateChair:
  8645. courseDetail.userid == userid &&
  8646. groupStudent[toolindex][gindex] &&
  8647. groupStudent[toolindex][gindex][0] &&
  8648. groupJson.islock == 2,
  8649. }"
  8650. ><span
  8651. class="updateChairBtn"
  8652. @click="
  8653. updateGroupChair(
  8654. groupStudent[toolindex][gindex] &&
  8655. groupStudent[toolindex][gindex][0]
  8656. )
  8657. "
  8658. >修改</span
  8659. ></span
  8660. ><span>{{
  8661. groupStudent[toolindex][gindex] &&
  8662. groupStudent[toolindex][gindex][0]
  8663. ? groupStudent[toolindex][gindex] &&
  8664. groupStudent[toolindex][gindex][0].name
  8665. : "空位置"
  8666. }}</span>
  8667. </div>
  8668. <div v-if="groupJson.number > 4">
  8669. <span
  8670. :class="{
  8671. isChair:
  8672. groupStudent[toolindex][gindex] &&
  8673. groupStudent[toolindex][gindex][4],
  8674. updateChair:
  8675. courseDetail.userid == userid &&
  8676. groupStudent[toolindex][gindex] &&
  8677. groupStudent[toolindex][gindex][4] &&
  8678. groupJson.islock == 2,
  8679. }"
  8680. ><span
  8681. class="updateChairBtn"
  8682. @click="
  8683. updateGroupChair(
  8684. groupStudent[toolindex][gindex] &&
  8685. groupStudent[toolindex][gindex][4]
  8686. )
  8687. "
  8688. >修改</span
  8689. ></span
  8690. ><span>{{
  8691. groupStudent[toolindex][gindex] &&
  8692. groupStudent[toolindex][gindex][4]
  8693. ? groupStudent[toolindex][gindex] &&
  8694. groupStudent[toolindex][gindex][4].name
  8695. : "空位置"
  8696. }}</span>
  8697. </div>
  8698. <div v-if="groupJson.number > 8">
  8699. <span
  8700. :class="{
  8701. isChair:
  8702. groupStudent[toolindex][gindex] &&
  8703. groupStudent[toolindex][gindex][8],
  8704. updateChair:
  8705. courseDetail.userid == userid &&
  8706. groupStudent[toolindex][gindex] &&
  8707. groupStudent[toolindex][gindex][8] &&
  8708. groupJson.islock == 2,
  8709. }"
  8710. ><span
  8711. class="updateChairBtn"
  8712. @click="
  8713. updateGroupChair(
  8714. groupStudent[toolindex][gindex] &&
  8715. groupStudent[toolindex][gindex][8]
  8716. )
  8717. "
  8718. >修改</span
  8719. ></span
  8720. ><span>{{
  8721. groupStudent[toolindex][gindex] &&
  8722. groupStudent[toolindex][gindex][8]
  8723. ? groupStudent[toolindex][gindex] &&
  8724. groupStudent[toolindex][gindex][8].name
  8725. : "空位置"
  8726. }}</span>
  8727. </div>
  8728. </div>
  8729. <div class="g_d_group_tableBox">
  8730. <div class="g_d_group_chair2">
  8731. <div v-if="groupJson.number > 2">
  8732. <span
  8733. :class="{
  8734. isChair:
  8735. groupStudent[toolindex][gindex] &&
  8736. groupStudent[toolindex][gindex][2],
  8737. updateChair:
  8738. courseDetail.userid == userid &&
  8739. groupStudent[toolindex][gindex] &&
  8740. groupStudent[toolindex][gindex][2] &&
  8741. groupJson.islock == 2,
  8742. }"
  8743. ><span
  8744. class="updateChairBtn"
  8745. @click="
  8746. updateGroupChair(
  8747. groupStudent[toolindex][gindex] &&
  8748. groupStudent[toolindex][gindex][2]
  8749. )
  8750. "
  8751. >修改</span
  8752. ></span
  8753. ><span>{{
  8754. groupStudent[toolindex][gindex] &&
  8755. groupStudent[toolindex][gindex][2]
  8756. ? groupStudent[toolindex][gindex] &&
  8757. groupStudent[toolindex][gindex][2].name
  8758. : "空位置"
  8759. }}</span>
  8760. </div>
  8761. <div v-if="groupJson.number > 6">
  8762. <span
  8763. :class="{
  8764. isChair:
  8765. groupStudent[toolindex][gindex] &&
  8766. groupStudent[toolindex][gindex][6],
  8767. updateChair:
  8768. courseDetail.userid == userid &&
  8769. groupStudent[toolindex][gindex] &&
  8770. groupStudent[toolindex][gindex][6] &&
  8771. groupJson.islock == 2,
  8772. }"
  8773. ><span
  8774. class="updateChairBtn"
  8775. @click="
  8776. updateGroupChair(
  8777. groupStudent[toolindex][gindex] &&
  8778. groupStudent[toolindex][gindex][6]
  8779. )
  8780. "
  8781. >修改</span
  8782. ></span
  8783. ><span>{{
  8784. groupStudent[toolindex][gindex] &&
  8785. groupStudent[toolindex][gindex][6]
  8786. ? groupStudent[toolindex][gindex] &&
  8787. groupStudent[toolindex][gindex][6].name
  8788. : "空位置"
  8789. }}</span>
  8790. </div>
  8791. </div>
  8792. <div class="g_d_group_table">
  8793. <div>
  8794. {{ g.name }}
  8795. </div>
  8796. <div>
  8797. <div
  8798. v-if="
  8799. courseDetail.userid == userid && groupJson.islock == 2
  8800. "
  8801. @click="deleteGroupChair(gindex)"
  8802. >
  8803. 移除组员
  8804. </div>
  8805. <div
  8806. @click="selectGroup(gindex)"
  8807. v-else-if="
  8808. groupStudentUid[toolindex] &&
  8809. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  8810. "
  8811. >
  8812. 加入分组
  8813. </div>
  8814. <div
  8815. @click="
  8816. exitGroup(
  8817. groupStudent[toolindex][gindex] &&
  8818. groupStudent[toolindex][gindex][
  8819. groupStudentUid[toolindex][gindex].indexOf(userid)
  8820. ].id
  8821. )
  8822. "
  8823. v-else-if="
  8824. groupStudentUid[toolindex] &&
  8825. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  8826. "
  8827. >
  8828. 退出分组
  8829. </div>
  8830. </div>
  8831. </div>
  8832. <div class="g_d_group_chair2">
  8833. <div v-if="groupJson.number > 3">
  8834. <span
  8835. :class="{
  8836. isChair:
  8837. groupStudent[toolindex][gindex] &&
  8838. groupStudent[toolindex][gindex][3],
  8839. updateChair:
  8840. courseDetail.userid == userid &&
  8841. groupStudent[toolindex][gindex] &&
  8842. groupStudent[toolindex][gindex][3] &&
  8843. groupJson.islock == 2,
  8844. }"
  8845. ><span
  8846. class="updateChairBtn"
  8847. @click="
  8848. updateGroupChair(
  8849. groupStudent[toolindex][gindex] &&
  8850. groupStudent[toolindex][gindex][3]
  8851. )
  8852. "
  8853. >修改</span
  8854. ></span
  8855. ><span>{{
  8856. groupStudent[toolindex][gindex] &&
  8857. groupStudent[toolindex][gindex][3]
  8858. ? groupStudent[toolindex][gindex] &&
  8859. groupStudent[toolindex][gindex][3].name
  8860. : "空位置"
  8861. }}</span>
  8862. </div>
  8863. <div v-if="groupJson.number > 7">
  8864. <span
  8865. :class="{
  8866. isChair:
  8867. groupStudent[toolindex][gindex] &&
  8868. groupStudent[toolindex][gindex][7],
  8869. updateChair:
  8870. courseDetail.userid == userid &&
  8871. groupStudent[toolindex][gindex] &&
  8872. groupStudent[toolindex][gindex][7] &&
  8873. groupJson.islock == 2,
  8874. }"
  8875. ><span
  8876. class="updateChairBtn"
  8877. @click="
  8878. updateGroupChair(
  8879. groupStudent[toolindex][gindex] &&
  8880. groupStudent[toolindex][gindex][7]
  8881. )
  8882. "
  8883. >修改</span
  8884. ></span
  8885. ><span>{{
  8886. groupStudent[toolindex][gindex] &&
  8887. groupStudent[toolindex][gindex][7]
  8888. ? groupStudent[toolindex][gindex] &&
  8889. groupStudent[toolindex][gindex][7].name
  8890. : "空位置"
  8891. }}</span>
  8892. </div>
  8893. </div>
  8894. </div>
  8895. <div class="g_d_group_chair">
  8896. <div v-if="groupJson.number > 1">
  8897. <span
  8898. :class="{
  8899. isChair:
  8900. groupStudent[toolindex][gindex] &&
  8901. groupStudent[toolindex][gindex][1],
  8902. updateChair:
  8903. courseDetail.userid == userid &&
  8904. groupStudent[toolindex][gindex] &&
  8905. groupStudent[toolindex][gindex][1] &&
  8906. groupJson.islock == 2,
  8907. }"
  8908. ><span
  8909. class="updateChairBtn"
  8910. @click="
  8911. updateGroupChair(
  8912. groupStudent[toolindex][gindex] &&
  8913. groupStudent[toolindex][gindex][1]
  8914. )
  8915. "
  8916. >修改</span
  8917. ></span
  8918. ><span>{{
  8919. groupStudent[toolindex][gindex] &&
  8920. groupStudent[toolindex][gindex][1]
  8921. ? groupStudent[toolindex][gindex] &&
  8922. groupStudent[toolindex][gindex][1].name
  8923. : "空位置"
  8924. }}</span>
  8925. </div>
  8926. <div v-if="groupJson.number > 5">
  8927. <span
  8928. :class="{
  8929. isChair:
  8930. groupStudent[toolindex][gindex] &&
  8931. groupStudent[toolindex][gindex][5],
  8932. updateChair:
  8933. courseDetail.userid == userid &&
  8934. groupStudent[toolindex][gindex] &&
  8935. groupStudent[toolindex][gindex][5] &&
  8936. groupJson.islock == 2,
  8937. }"
  8938. ><span
  8939. class="updateChairBtn"
  8940. @click="
  8941. updateGroupChair(
  8942. groupStudent[toolindex][gindex] &&
  8943. groupStudent[toolindex][gindex][5]
  8944. )
  8945. "
  8946. >修改</span
  8947. ></span
  8948. ><span>{{
  8949. groupStudent[toolindex][gindex] &&
  8950. groupStudent[toolindex][gindex][5]
  8951. ? groupStudent[toolindex][gindex] &&
  8952. groupStudent[toolindex][gindex][5].name
  8953. : "空位置"
  8954. }}</span>
  8955. </div>
  8956. <div v-if="groupJson.number > 9">
  8957. <span
  8958. :class="{
  8959. isChair:
  8960. groupStudent[toolindex][gindex] &&
  8961. groupStudent[toolindex][gindex][9],
  8962. updateChair:
  8963. courseDetail.userid == userid &&
  8964. groupStudent[toolindex][gindex] &&
  8965. groupStudent[toolindex][gindex][9] &&
  8966. groupJson.islock == 2,
  8967. }"
  8968. ><span
  8969. class="updateChairBtn"
  8970. @click="
  8971. updateGroupChair(
  8972. groupStudent[toolindex][gindex] &&
  8973. groupStudent[toolindex][gindex][9]
  8974. )
  8975. "
  8976. >修改</span
  8977. ></span
  8978. ><span>{{
  8979. groupStudent[toolindex][gindex] &&
  8980. groupStudent[toolindex][gindex][9]
  8981. ? groupStudent[toolindex][gindex] &&
  8982. groupStudent[toolindex][gindex][9].name
  8983. : "空位置"
  8984. }}</span>
  8985. </div>
  8986. </div>
  8987. </div>
  8988. </div>
  8989. </div>
  8990. </div>
  8991. <span slot="footer" class="dialog-footer">
  8992. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  8993. </span>
  8994. </el-dialog>
  8995. <el-dialog
  8996. title="分组设置"
  8997. :visible.sync="dialogVisibleGroup2"
  8998. :append-to-body="true"
  8999. width="650px"
  9000. :before-close="handleClose"
  9001. class="dialog_diy"
  9002. >
  9003. <div class="groupBox">
  9004. <div v-if="groupJson2.group" class="groupContent">
  9005. <div class="groupTitle">请设置小组数量</div>
  9006. <div
  9007. v-for="(item, index) in groupJson2.group"
  9008. :key="index"
  9009. class="groupName"
  9010. >
  9011. <span class="groupn">组{{ index + 1 }}名称:</span>
  9012. <el-input
  9013. v-model="item.name"
  9014. placeholder="请输入名称..."
  9015. style="width: 250px"
  9016. ></el-input>
  9017. <!-- <div class="groupBtn">
  9018. <el-button type="primary" size="small" @click="addGroup(index)">
  9019. 添加</el-button>
  9020. <el-button type="primary" size="small" @click="deleteGroup(index)"
  9021. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  9022. </div> -->
  9023. </div>
  9024. </div>
  9025. <div class="groupContent">
  9026. <div class="groupTitle">请设置每组人数数量</div>
  9027. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  9028. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  9029. <el-input-number
  9030. v-model="groupJson2.number"
  9031. :controls="false"
  9032. :min="2"
  9033. :max="10"
  9034. placeholder="2-10人以内"
  9035. ></el-input-number>
  9036. </div>
  9037. </div>
  9038. <span slot="footer" class="dialog-footer">
  9039. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  9040. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  9041. </span>
  9042. </el-dialog>
  9043. <el-dialog
  9044. title="作业提交"
  9045. :visible.sync="dialogVisibleGroupWork"
  9046. :append-to-body="true"
  9047. width="500px"
  9048. :before-close="handleClose"
  9049. class="dialog_change"
  9050. >
  9051. <div class="marginT">
  9052. <div>上传文件</div>
  9053. <div
  9054. class="chapter_add"
  9055. @click="addImg($event)"
  9056. v-if="studyJuri[0].cover.length == 0"
  9057. >
  9058. <div class="up_photo">
  9059. <img src="../assets/icon/uploadImg.png" alt />
  9060. </div>
  9061. <!-- <input
  9062. type="file"
  9063. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9064. style="display: none"
  9065. @change="beforeUpload1($event, 1)"
  9066. /> -->
  9067. <input
  9068. type="file"
  9069. accept="*"
  9070. style="display: none"
  9071. @change="beforeUpload1($event, 1)"
  9072. />
  9073. </div>
  9074. <!-- capture="camera" -->
  9075. <div
  9076. class="chapter_add"
  9077. style="
  9078. display: flex;
  9079. width: 100%;
  9080. flex-direction: row;
  9081. flex-wrap: wrap;
  9082. justify-content: flex-start;
  9083. padding: 15px 0;
  9084. "
  9085. v-if="studyJuri[0].cover.length > 0"
  9086. >
  9087. <div class="upCover">
  9088. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  9089. <img :src="word" alt v-else-if="fileType == 1" />
  9090. <img :src="video" alt v-else-if="fileType == 2" />
  9091. <img :src="word2" alt v-else-if="fileType == 3" />
  9092. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9093. <div class="deleteWord" @click="clean(1)">
  9094. <img src="../assets/icon/deleteWorks.png" alt />
  9095. </div>
  9096. </div>
  9097. </div>
  9098. </div>
  9099. <div
  9100. class="upload_send"
  9101. @click="addCourseWorks2(taskCount)"
  9102. v-if="!proVisible"
  9103. >
  9104. 提交
  9105. </div>
  9106. </el-dialog>
  9107. <el-dialog
  9108. title="修改分组"
  9109. :visible.sync="dialogVisibleUpdateGroup"
  9110. :append-to-body="true"
  9111. width="350px"
  9112. :before-close="handleClose"
  9113. class="dialog_diy"
  9114. >
  9115. <div>
  9116. <h2>
  9117. {{ this.updateGroupUser.name }}
  9118. </h2>
  9119. <div style="color: rgb(171 171 171); margin-top: 10px">
  9120. 请选择要进入的分组
  9121. </div>
  9122. <el-radio-group v-model="checkChair">
  9123. <el-radio
  9124. style="display: block; margin-top: 20px"
  9125. v-for="(item, index) in updateGroupArray"
  9126. :label="item.label"
  9127. :key="index"
  9128. >{{ item.name }}</el-radio
  9129. >
  9130. </el-radio-group>
  9131. </div>
  9132. <span slot="footer" class="dialog-footer">
  9133. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  9134. <el-button type="primary" @click="updateChair">确定</el-button>
  9135. </span>
  9136. </el-dialog>
  9137. <el-dialog
  9138. title="移除组员"
  9139. :visible.sync="dialogVisibleDeleteGroup"
  9140. :append-to-body="true"
  9141. width="350px"
  9142. :before-close="handleClose"
  9143. class="dialog_diy"
  9144. >
  9145. <div>
  9146. <h2>
  9147. {{ this.deleteGroupArray.name }}
  9148. </h2>
  9149. <div style="color: rgb(171 171 171); margin-top: 10px">
  9150. 请选择要删除的组员
  9151. </div>
  9152. <el-checkbox-group v-model="checkDeleteGroup">
  9153. <el-checkbox
  9154. style="display: block; margin-top: 20px"
  9155. v-for="(item, index) in deleteGroupUser"
  9156. :label="item.userid"
  9157. :key="index"
  9158. >{{ item.name }}</el-checkbox
  9159. >
  9160. </el-checkbox-group>
  9161. </div>
  9162. <span slot="footer" class="dialog-footer">
  9163. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  9164. <el-button type="primary" @click="deleteChair">确定</el-button>
  9165. </span>
  9166. </el-dialog>
  9167. <el-dialog
  9168. title="批量上传"
  9169. :visible.sync="dialogVisiblePl"
  9170. :append-to-body="true"
  9171. width="700px"
  9172. :before-close="handleClose"
  9173. class="dialog_change"
  9174. >
  9175. <div class="marginT">
  9176. <div>上传文件</div>
  9177. <div class="plworkBox">
  9178. <div
  9179. class="chapter_add"
  9180. style="
  9181. display: flex;
  9182. width: 150px;
  9183. flex-direction: row;
  9184. flex-wrap: wrap;
  9185. justify-content: flex-start;
  9186. margin: 0 10px 10px 0;
  9187. "
  9188. v-for="(item, index) in plworkFile"
  9189. :key="index"
  9190. >
  9191. <div class="upCover2">
  9192. <img :src="item.url" alt v-if="item.fileType == 1" />
  9193. <img :src="word" alt v-else-if="item.fileType == 4" />
  9194. <img :src="video" alt v-else />
  9195. <!-- <span class="picName">{{ item.name }}</span> -->
  9196. <!-- <el-input
  9197. v-model="item.username"
  9198. placeholder="请输入学生名字"
  9199. style="margin-top: 10px"
  9200. ></el-input> -->
  9201. <el-select
  9202. style="margin-top: 10px"
  9203. v-model="item.username"
  9204. filterable
  9205. allow-create
  9206. placeholder="请选择学生"
  9207. >
  9208. <el-option
  9209. v-for="item1 in checkUpload()"
  9210. :key="item1.userid"
  9211. :label="item1.name ? item1.name : item1.username"
  9212. :value="item1.userid"
  9213. >
  9214. </el-option>
  9215. </el-select>
  9216. <div class="deleteWord" @click="clean2(index)">
  9217. <img src="../assets/icon/deleteWorks.png" alt />
  9218. </div>
  9219. </div>
  9220. </div>
  9221. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  9222. <div class="up_photo2">
  9223. <img src="../assets/icon/plwork.png" alt />
  9224. <span>点击批量上传文件</span>
  9225. </div>
  9226. <input
  9227. type="file"
  9228. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9229. multiple="multiple"
  9230. style="display: none"
  9231. @change="beforeUpload3($event, 6)"
  9232. />
  9233. </div>
  9234. </div>
  9235. </div>
  9236. <!-- capture="camera" -->
  9237. <div
  9238. class="upload_send"
  9239. @click="addCourseWorksPl(taskCount)"
  9240. v-if="!proVisible2"
  9241. >
  9242. 提交
  9243. </div>
  9244. </el-dialog>
  9245. <el-dialog
  9246. title="修改名称"
  9247. :visible.sync="dialogVisibleSname"
  9248. width="500px"
  9249. :before-close="handleClose"
  9250. class="dialog_diy"
  9251. center
  9252. >
  9253. <div style="text-align: center">
  9254. <span class="tian1">名称</span>
  9255. <el-select
  9256. v-model="worksSName"
  9257. filterable
  9258. allow-create
  9259. style="width: 250px; margin: 15px 0px"
  9260. placeholder="请选择学生"
  9261. >
  9262. <el-option
  9263. v-for="item in uploadStudentJuri"
  9264. :key="item.userid"
  9265. :label="item.name ? item.name : item.username"
  9266. :value="item.userid"
  9267. >
  9268. </el-option>
  9269. </el-select>
  9270. <!-- <el-input
  9271. v-model="worksSName"
  9272. style="width: 250px; margin: 15px 0px"
  9273. ></el-input> -->
  9274. </div>
  9275. <span slot="footer" class="dialog-footer">
  9276. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  9277. <el-button type="primary" @click="updateName">确 定</el-button>
  9278. </span>
  9279. </el-dialog>
  9280. <interVideo
  9281. :dialogVisibleVideo.sync="dialogVisibleVideo"
  9282. :videoJson="videoJson"
  9283. :userid="userid"
  9284. :id="id"
  9285. :courseType="courseType"
  9286. :taskCount="taskCount"
  9287. :toolindex="toolindex"
  9288. ></interVideo>
  9289. </div>
  9290. </template>
  9291. <script>
  9292. import "../common/aws-sdk-2.235.1.min.js";
  9293. // import pdf from "./components/pdf3";
  9294. import pdf from "./components/vpdf";
  9295. import AskStatic from "./components/askStatic";
  9296. import AskStatic2 from "./components/askStatic2";
  9297. import AnswerData2 from "./components/answerData2";
  9298. import AnswerData from "./components/answerData";
  9299. import EditorBar from "./tools/wangEnduit.vue";
  9300. import Table from "./tools/table.vue";
  9301. import Time from "./tools/time.vue";
  9302. import Mind from "./tools/jsmind.vue";
  9303. import Sunburst from "./tools/sunburst";
  9304. import SeeBoard from "./tools/seeBoard";
  9305. import * as imageConversion from "image-conversion";
  9306. import Audio from "./components/audio.vue";
  9307. import ImgDraw from "./tools/imgDraw/imgDraw";
  9308. import { Empty } from "element-ui";
  9309. import RecordRTC from "recordrtc";
  9310. import interVideo from "./interVideo/index.vue"
  9311. export default {
  9312. components: {
  9313. EditorBar,
  9314. Time,
  9315. pdf,
  9316. AskStatic,
  9317. AskStatic2,
  9318. Mind,
  9319. Sunburst,
  9320. SeeBoard,
  9321. AnswerData2,
  9322. AnswerData,
  9323. Audio,
  9324. ImgDraw,
  9325. Table,
  9326. interVideo
  9327. },
  9328. data() {
  9329. return {
  9330. bg: null,
  9331. drawShow: false,
  9332. dialogVisible: false,
  9333. dialogVisiblePl: false,
  9334. commentDialogVisible: false,
  9335. videoVisible: false,
  9336. isStar: false,
  9337. studentEvalDialogVisible: false,
  9338. studentEvalDialogVisibleTeacher: false,
  9339. dialogVisibleSelect: false,
  9340. dialogVisibleSelectTeacher: false,
  9341. dialogVisibleScore: false,
  9342. dialogVisibleSentence: false,
  9343. dialogVisibleSentenceTeacher: false,
  9344. dialogVisibleSentence1: false,
  9345. dialogVisibleWorks: false,
  9346. dialogVisibleTable: false,
  9347. dialogVisibleTableTeacher: false,
  9348. dialogVisibleWord: false,
  9349. dialogVisibleWordTeacher: false,
  9350. dialogVisibleTable2: false,
  9351. dialogVisibleTable3:false,
  9352. dialogVisibleGroupWork: false,
  9353. dialogVisibleUpdateGroup: false,
  9354. dialogVisibleDeleteGroup: false,
  9355. dialogVisibleSname: false,
  9356. dialogVisibleVideo:false,
  9357. worksSName: "",
  9358. classJuri: [],
  9359. uploadStudentJuri: [],
  9360. uploadCid: "",
  9361. snameWid: "",
  9362. sStudent: {},
  9363. sTool: "",
  9364. bzText: "",
  9365. commentDetail: [],
  9366. selectAnswer: [],
  9367. videoDetail: {},
  9368. selectJson: {},
  9369. eScore: { eBzText: "", eStar: [] },
  9370. id: this.$route.query.courseId,
  9371. userid: this.$route.query.userid,
  9372. classId: this.$route.query.cid,
  9373. // courseTypeLine: this.$route.query.type,
  9374. oid: this.$route.query.oid,
  9375. org: this.$route.query.org,
  9376. tType: this.$route.query.tType,
  9377. courseType: this.$route.query.type,
  9378. screenType: this.$route.query.screenType,
  9379. tcid2: this.$route.query.tcid,
  9380. tcid: "",
  9381. pptImgUrl: "",
  9382. pptImgUrl1: "",
  9383. commentText: "",
  9384. full: false,
  9385. sIsOpen: false,
  9386. IsLookOpen: false,
  9387. IsFollow: false,
  9388. pzDialog: false,
  9389. contentDialog: false,
  9390. mlDialog: false,
  9391. type: 1,
  9392. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  9393. sentenceList1: [],
  9394. tableJson: [],
  9395. tableJsonO: [],
  9396. wordJson: [],
  9397. wordJsonO: [],
  9398. vedio: [],
  9399. text: [],
  9400. textList: [],
  9401. line: [],
  9402. lineList: [],
  9403. chapTools: [],
  9404. chapToolList: [],
  9405. file: [],
  9406. fileC: [],
  9407. vedioTime: [],
  9408. upToolImg: "",
  9409. preTime: 0,
  9410. rateList: {
  9411. ca: 0,
  9412. },
  9413. rateParams: [],
  9414. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  9415. studyJuri: [
  9416. {
  9417. content: "",
  9418. cover: [],
  9419. upVedio: [],
  9420. upFile: [],
  9421. },
  9422. ],
  9423. plworkFile: [],
  9424. mr: require("../assets/vedioPic.png"),
  9425. word: require("../assets/icon/isWord.png"),
  9426. word2: require("../assets/icon/word2.png"),
  9427. video: require("../assets/icon/isVideo.png"),
  9428. noLikes: require("../assets/icon/comment/noLikes.png"),
  9429. likes: require("../assets/icon/comment/likes.png"),
  9430. scoreImg: require("../assets/score.png"),
  9431. courseDetail: {},
  9432. isSelect: false,
  9433. chapInfo: [],
  9434. chapInfoList: [],
  9435. taskCount: 0,
  9436. imgList: [],
  9437. noImgList: [],
  9438. pzList: [],
  9439. PlTextList: [
  9440. "Excellent!",
  9441. "nice!",
  9442. "很有创意!",
  9443. "还不错哦~",
  9444. "继续努力哦~",
  9445. ],
  9446. isClickNav: "",
  9447. navId: "",
  9448. playerOptions: {
  9449. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  9450. autoplay: false, //如果true,浏览器准备好时开始回放。
  9451. muted: false, // 默认情况下将会消除任何音频。
  9452. loop: false, // 导致视频一结束就重新开始。
  9453. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  9454. language: "zh-CN",
  9455. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  9456. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  9457. sources: [
  9458. {
  9459. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  9460. src: "", //url地址require("../../assets/media/aaa.mp4")
  9461. },
  9462. ],
  9463. // poster: require("../../assets/tu31.png"), //你的封面地址
  9464. // poster: dataRes.imgUrl, //你的封面地址
  9465. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  9466. controlBar: {
  9467. timeDivider: true, //当前时间和持续时间的分隔符
  9468. durationDisplay: true, //显示持续时间
  9469. remainingTimeDisplay: false, //是否显示剩余时间功能
  9470. fullscreenToggle: true, //全屏按钮
  9471. },
  9472. },
  9473. playerOptions1: {
  9474. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  9475. autoplay: false, //如果true,浏览器准备好时开始回放。
  9476. muted: false, // 默认情况下将会消除任何音频。
  9477. loop: false, // 导致视频一结束就重新开始。
  9478. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  9479. language: "zh-CN",
  9480. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  9481. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  9482. sources: [
  9483. {
  9484. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  9485. src: "", //url地址require("../../assets/media/aaa.mp4")
  9486. },
  9487. ],
  9488. // poster: require("../../assets/tu31.png"), //你的封面地址
  9489. // poster: dataRes.imgUrl, //你的封面地址
  9490. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  9491. controlBar: {
  9492. timeDivider: true, //当前时间和持续时间的分隔符
  9493. durationDisplay: true, //显示持续时间
  9494. remainingTimeDisplay: false, //是否显示剩余时间功能
  9495. fullscreenToggle: true, //全屏按钮
  9496. },
  9497. },
  9498. playerO: {},
  9499. noneBtnImg: false,
  9500. proVisible: false,
  9501. proVisible2: false,
  9502. progress: 0,
  9503. isFinishSize: 0,
  9504. isAllSize: 0,
  9505. questionAnswer: "",
  9506. answerQ: "", //问答标题
  9507. rateJson: [],
  9508. wbCount: 0,
  9509. wordCount: 0,
  9510. mindCount: 0,
  9511. askCount: 0,
  9512. noteCount: 0,
  9513. mindNetWorkCount: 0,
  9514. libraryCount: 0,
  9515. workCount: 0,
  9516. timeCount: 0,
  9517. answerCount: 0,
  9518. trainCount: 0,
  9519. evalCount: 0,
  9520. dialogImageUrl: "",
  9521. pictureDialog: false,
  9522. toolTypeList: [],
  9523. dialogVisible1: false,
  9524. dialogVisible2: false,
  9525. dialogVisible3: false,
  9526. dialogVisible6: false,
  9527. dialogVisible4: false,
  9528. isNoHomeWork: false,
  9529. dialogVisible5: false,
  9530. dialogVisible5Teacher: false,
  9531. dialogVisibleChoice: false,
  9532. dialogVisibleChoiceTeacher: false,
  9533. answerDialogVisible: false,
  9534. answerDialogVisibleTeacher: false,
  9535. juriVisible: false,
  9536. timeDialogVisible: false,
  9537. radio: [],
  9538. isAsk: false,
  9539. askJson: {
  9540. askCount: 1,
  9541. askTitle: "",
  9542. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9543. },
  9544. testJson: {},
  9545. checkJson: [],
  9546. askList: [],
  9547. answerList: [],
  9548. navList: [],
  9549. addPzDialog: false,
  9550. pzConText: "",
  9551. worksStudent: [],
  9552. isCloseList: [],
  9553. workStudent: [],
  9554. groupStudent: [],
  9555. groupStudentUid: [],
  9556. noWorksS: [],
  9557. isWorksS: [],
  9558. noWorksStudent: [],
  9559. toolindex: 0,
  9560. groupIndex: 0,
  9561. workTypeB: false,
  9562. workTypeC: false,
  9563. isAnswer: false,
  9564. timer: null,
  9565. opertimer: null,
  9566. showType: 0,
  9567. fileType: 0,
  9568. showPDF: false,
  9569. noteName: "",
  9570. evaJuri: [],
  9571. evalua: "",
  9572. eTitle: "",
  9573. eName: "",
  9574. eJson: {},
  9575. fid: "", //一级
  9576. sid: "", //二级
  9577. tid: "", //二级
  9578. typeMode: 1,
  9579. eJSONNum: 0,
  9580. Etype: 1,
  9581. data: {
  9582. meta: {
  9583. name: "example",
  9584. author: "dd@163.com",
  9585. version: "0.2",
  9586. },
  9587. format: "node_array",
  9588. data: [{ id: "root", isroot: true, topic: "" }],
  9589. },
  9590. fullDialogVisible: false,
  9591. fulltype: "",
  9592. fullUrl: "",
  9593. commentIndexJson: {},
  9594. Stbodywidth: 0,
  9595. ispzType:0,
  9596. pzType: 1,
  9597. wScore: 0,
  9598. scoreDetail: "",
  9599. videoStart: false,
  9600. recorder: null,
  9601. groupJson: {},
  9602. islock: false,
  9603. groupJson2: {},
  9604. dialogVisibleGroup: false,
  9605. dialogVisibleGroup2: false,
  9606. updateGroupArray: [],
  9607. updateGroupUser: {},
  9608. deleteGroupUser: [],
  9609. deleteGroupArray: {},
  9610. checkChair: "",
  9611. checkDeleteGroup: [],
  9612. inviteCode: "",
  9613. courseGroupStudent: [],
  9614. courseGroupStudentUid: [],
  9615. courseGroup: {},
  9616. isGroup: false,
  9617. videoJson:{},
  9618. };
  9619. },
  9620. methods: {
  9621. jump() {
  9622. window.parent.postMessage({ tools: "43" }, "*");
  9623. },
  9624. previewImg(url) {
  9625. this.$hevueImgPreview(url);
  9626. },
  9627. change(val) {
  9628. console.log(val);
  9629. },
  9630. goTo(path) {
  9631. this.$router.push(path);
  9632. },
  9633. handlePictureCardPreview(url) {
  9634. this.dialogImageUrl = url;
  9635. this.pictureDialog = true;
  9636. },
  9637. clean(type) {
  9638. if (type == 1) {
  9639. this.studyJuri[0].cover.splice(0, 1);
  9640. } else if (type == 2) {
  9641. this.studyJuri[0].upVedio.splice(0, 1);
  9642. } else {
  9643. this.studyJuri[0].upFile.splice(0, 1);
  9644. }
  9645. },
  9646. clean2(index) {
  9647. this.plworkFile.splice(index, 1);
  9648. },
  9649. handleClose(done) {
  9650. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  9651. this.videoDetail.sources[0].src = "";
  9652. }
  9653. this.commentIndexJson = {};
  9654. done();
  9655. },
  9656. fullTools() {
  9657. this.full = !this.full;
  9658. },
  9659. imgChange(file, fileList, type) {
  9660. if (type == 1) {
  9661. var _tmp = this.studyJuri[0].cover;
  9662. } else if (type == 2) {
  9663. var _tmp = this.studyJuri[0].upVedio;
  9664. } else {
  9665. var _tmp = this.studyJuri[0].upFile;
  9666. }
  9667. this.noneBtnImg = _tmp.length >= 1;
  9668. },
  9669. setContent(bool) {
  9670. this.contentDialog = bool;
  9671. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  9672. document.querySelector(".workd_media").style.height = "650px";
  9673. } else if (document.querySelector(".workd_media")) {
  9674. document.querySelector(".workd_media").style.height = "auto";
  9675. }
  9676. },
  9677. setContent2(bool) {
  9678. this.mlDialog = bool;
  9679. if (
  9680. bool &&
  9681. this.contentDialog &&
  9682. document.querySelector(".workd_media")
  9683. ) {
  9684. document.querySelector(".workd_media").style.height = "650px";
  9685. } else if (document.querySelector(".workd_media")) {
  9686. document.querySelector(".workd_media").style.height = "auto";
  9687. }
  9688. },
  9689. addImg(e) {
  9690. var el = e.currentTarget;
  9691. // this.$message.success('触发上传')
  9692. el.getElementsByTagName("input")[0].click();
  9693. e.target.value = "";
  9694. },
  9695. addSelectAnswer() {
  9696. let params = [
  9697. {
  9698. uid: this.userid,
  9699. cid: this.id,
  9700. stage: this.courseType,
  9701. task: this.taskCount,
  9702. tool: this.toolindex,
  9703. content: this.selectAnswer.answer,
  9704. type: 7,
  9705. },
  9706. ];
  9707. this.ajax
  9708. .post(this.$store.state.api + "addCourseWorks", params)
  9709. .then((res) => {
  9710. this.$message({
  9711. message: "提交成功",
  9712. type: "success",
  9713. });
  9714. this.dialogVisibleSelect = false;
  9715. // this.selectAnswer = {};
  9716. this.selectSWorks();
  9717. this.selectStudent();
  9718. })
  9719. .catch((err) => {
  9720. this.$message.error("提交失败");
  9721. console.error(err);
  9722. });
  9723. },
  9724. addSelectAnswerTeacher() {
  9725. let params = [
  9726. {
  9727. uid: this.sStudent.userid,
  9728. cid: this.id,
  9729. stage: this.courseType,
  9730. task: this.taskCount,
  9731. tool: this.toolindex,
  9732. content: this.selectAnswer.answer,
  9733. type: 7,
  9734. },
  9735. ];
  9736. this.ajax
  9737. .post(this.$store.state.api + "addCourseWorks", params)
  9738. .then((res) => {
  9739. this.$message({
  9740. message: "提交成功",
  9741. type: "success",
  9742. });
  9743. this.dialogVisibleSelectTeacher = false;
  9744. // this.selectAnswer = {};
  9745. this.selectSWorks();
  9746. this.selectStudent();
  9747. })
  9748. .catch((err) => {
  9749. this.$message.error("提交失败");
  9750. console.error(err);
  9751. });
  9752. },
  9753. addSenWorks() {
  9754. for (var i = 0; i < this.sentenceList.length; i++) {
  9755. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  9756. if (
  9757. this.sentenceList[i].chooseSenList[j] == undefined ||
  9758. this.sentenceList[i].chooseSenList[j] == ""
  9759. ) {
  9760. this.$message.error("请将答案填写完整!");
  9761. return;
  9762. }
  9763. }
  9764. }
  9765. let params = [
  9766. {
  9767. uid: this.userid,
  9768. cid: this.id,
  9769. stage: this.courseType,
  9770. task: this.taskCount,
  9771. tool: this.toolindex,
  9772. content: JSON.stringify(this.sentenceList),
  9773. type: 9,
  9774. },
  9775. ];
  9776. this.ajax
  9777. .post(this.$store.state.api + "addCourseWorks", params)
  9778. .then((res) => {
  9779. this.$message({
  9780. message: "提交成功",
  9781. type: "success",
  9782. });
  9783. this.dialogVisibleSentence = false;
  9784. // this.selectAnswer = {};
  9785. this.selectSWorks();
  9786. this.selectStudent();
  9787. })
  9788. .catch((err) => {
  9789. this.$message.error("提交失败");
  9790. console.error(err);
  9791. });
  9792. },
  9793. addSenWorksTeacher() {
  9794. for (var i = 0; i < this.sentenceList.length; i++) {
  9795. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  9796. if (
  9797. this.sentenceList[i].chooseSenList[j] == undefined ||
  9798. this.sentenceList[i].chooseSenList[j] == ""
  9799. ) {
  9800. this.$message.error("请将答案填写完整!");
  9801. return;
  9802. }
  9803. }
  9804. }
  9805. let params = [
  9806. {
  9807. uid: this.sStudent.userid,
  9808. cid: this.id,
  9809. stage: this.courseType,
  9810. task: this.taskCount,
  9811. tool: this.toolindex,
  9812. content: JSON.stringify(this.sentenceList),
  9813. type: 9,
  9814. },
  9815. ];
  9816. this.ajax
  9817. .post(this.$store.state.api + "addCourseWorks", params)
  9818. .then((res) => {
  9819. this.$message({
  9820. message: "提交成功",
  9821. type: "success",
  9822. });
  9823. this.dialogVisibleSentenceTeacher = false;
  9824. // this.selectAnswer = {};
  9825. this.selectSWorks();
  9826. this.selectStudent();
  9827. })
  9828. .catch((err) => {
  9829. this.$message.error("提交失败");
  9830. console.error(err);
  9831. });
  9832. },
  9833. returnTableText(){
  9834. this.$confirm("确定还原此模板吗?", "提示", {
  9835. confirmButtonText: "确定",
  9836. cancelButtonText: "取消",
  9837. type: "warning",
  9838. })
  9839. .then(() => {
  9840. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO))
  9841. })
  9842. .catch(() => {});
  9843. },
  9844. addTableWorks() {
  9845. let params = [
  9846. {
  9847. uid: this.userid,
  9848. cid: this.id,
  9849. stage: this.courseType,
  9850. task: this.taskCount,
  9851. tool: this.toolindex,
  9852. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  9853. type: 10,
  9854. },
  9855. ];
  9856. this.ajax
  9857. .post(this.$store.state.api + "addCourseWorks", params)
  9858. .then((res) => {
  9859. this.$message({
  9860. message: "提交成功",
  9861. type: "success",
  9862. });
  9863. this.dialogVisibleTable = false;
  9864. // this.selectAnswer = {};
  9865. this.selectSWorks();
  9866. this.selectStudent();
  9867. })
  9868. .catch((err) => {
  9869. this.$message.error("提交失败");
  9870. console.error(err);
  9871. });
  9872. },
  9873. addTableWorksTeacher() {
  9874. let params = [
  9875. {
  9876. uid: this.sStudent.userid,
  9877. cid: this.id,
  9878. stage: this.courseType,
  9879. task: this.taskCount,
  9880. tool: this.toolindex,
  9881. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  9882. type: 10,
  9883. },
  9884. ];
  9885. this.ajax
  9886. .post(this.$store.state.api + "addCourseWorks", params)
  9887. .then((res) => {
  9888. this.$message({
  9889. message: "提交成功",
  9890. type: "success",
  9891. });
  9892. this.dialogVisibleTableTeacher = false;
  9893. // this.selectAnswer = {};
  9894. this.selectSWorks();
  9895. this.selectStudent();
  9896. })
  9897. .catch((err) => {
  9898. this.$message.error("提交失败");
  9899. console.error(err);
  9900. });
  9901. },
  9902. returnWordText(){
  9903. this.$confirm("确定还原此模板吗?", "提示", {
  9904. confirmButtonText: "确定",
  9905. cancelButtonText: "取消",
  9906. type: "warning",
  9907. })
  9908. .then(() => {
  9909. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO))
  9910. })
  9911. .catch(() => {});
  9912. },
  9913. addWordWorks() {
  9914. let params = [{
  9915. uid: this.userid,
  9916. cid: this.id,
  9917. stage: this.courseType,
  9918. task: this.taskCount,
  9919. tool: this.toolindex,
  9920. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  9921. type: 13,
  9922. atool: 52,
  9923. }];
  9924. console.log(params);
  9925. this.ajax
  9926. .post(this.$store.state.api + "addCourseWorks3-2", params)
  9927. .then((res) => {
  9928. this.$message({
  9929. message: "提交成功",
  9930. type: "success",
  9931. });
  9932. this.dialogVisibleWord = false;
  9933. // this.selectAnswer = {};
  9934. this.selectSWorks();
  9935. this.selectStudent();
  9936. })
  9937. .catch((err) => {
  9938. this.$message.error("提交失败");
  9939. console.error(err);
  9940. });
  9941. },
  9942. addWordWorksTeacher() {
  9943. let params = [{
  9944. uid: this.sStudent.userid,
  9945. cid: this.id,
  9946. stage: this.courseType,
  9947. task: this.taskCount,
  9948. tool: this.toolindex,
  9949. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  9950. type: 13,
  9951. atool: 52,
  9952. }];
  9953. console.log(params);
  9954. this.ajax
  9955. .post(this.$store.state.api + "addCourseWorks3-2", params)
  9956. .then((res) => {
  9957. this.$message({
  9958. message: "提交成功",
  9959. type: "success",
  9960. });
  9961. this.dialogVisibleWordTeacher = false;
  9962. // this.selectAnswer = {};
  9963. this.selectSWorks();
  9964. this.selectStudent();
  9965. })
  9966. .catch((err) => {
  9967. this.$message.error("提交失败");
  9968. console.error(err);
  9969. });
  9970. },
  9971. addCourseWorks(i) {
  9972. var typesql;
  9973. if (this.fileType === 0) {
  9974. typesql = 1;
  9975. } else if (this.fileType === 1) {
  9976. typesql = 4;
  9977. } else if (this.fileType === 2) {
  9978. typesql = 5;
  9979. } else if (this.fileType === 3) {
  9980. typesql = 12;
  9981. }
  9982. if (!this.studyJuri[0].cover[0].url) {
  9983. this.$message.error("请上传文件");
  9984. return;
  9985. }
  9986. let params = [
  9987. {
  9988. uid: this.userid,
  9989. cid: this.id,
  9990. stage: this.courseType,
  9991. task: i,
  9992. tool: this.toolindex,
  9993. content: this.studyJuri[0].cover[0].url,
  9994. type: typesql,
  9995. },
  9996. ];
  9997. this.ajax
  9998. .post(this.$store.state.api + "addCourseWorksR", params)
  9999. .then((res) => {
  10000. this.$message({
  10001. message: "提交成功",
  10002. type: "success",
  10003. });
  10004. this.studyJuri[0].cover = [];
  10005. this.dialogVisible = false;
  10006. this.getCourseDetail(2);
  10007. })
  10008. .catch((err) => {
  10009. this.$message.error("提交失败");
  10010. console.error(err);
  10011. });
  10012. },
  10013. addCourseWorksPl(i) {
  10014. let _files = this.plworkFile;
  10015. var c = 1;
  10016. for (var k = 0; k < _files.length; k++) {
  10017. if (!_files[k].username) {
  10018. c = 2;
  10019. }
  10020. }
  10021. if (c == 2) {
  10022. this.$message.error("请填写学生姓名");
  10023. return;
  10024. }
  10025. let params = [
  10026. {
  10027. ateacher: this.userid,
  10028. cid: this.id,
  10029. stage: this.courseType,
  10030. task: i,
  10031. tool: this.toolindex,
  10032. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  10033. },
  10034. ];
  10035. this.ajax
  10036. .post(this.$store.state.api + "addCourseWorksPl", params)
  10037. .then((res) => {
  10038. this.$message({
  10039. message: "提交成功",
  10040. type: "success",
  10041. });
  10042. this.plworkFile = [];
  10043. this.dialogVisiblePl = false;
  10044. this.getCourseDetail(2);
  10045. })
  10046. .catch((err) => {
  10047. this.$message.error("提交失败");
  10048. console.error(err);
  10049. });
  10050. },
  10051. addCourseWorks2(i) {
  10052. var typesql;
  10053. if (this.fileType === 0) {
  10054. typesql = 0;
  10055. } else if (this.fileType === 1) {
  10056. typesql = 1;
  10057. } else if (this.fileType === 2) {
  10058. typesql = 3;
  10059. } else if (this.fileType === 3) {
  10060. typesql = 12;
  10061. }
  10062. if (!this.studyJuri[0].cover[0].url) {
  10063. this.$message.error("请上传文件");
  10064. return;
  10065. }
  10066. let params = [
  10067. {
  10068. uid: this.userid,
  10069. cid: this.id,
  10070. stage: this.courseType,
  10071. task: i,
  10072. tool: this.toolindex,
  10073. content: JSON.stringify({
  10074. type: typesql,
  10075. groupIndex: this.groupIndex,
  10076. url: this.studyJuri[0].cover[0].url,
  10077. }).replaceAll(/%/g, "%25"),
  10078. type: 11,
  10079. atool: 49,
  10080. text: "",
  10081. },
  10082. ];
  10083. this.ajax
  10084. .post(this.$store.state.api + "addCourseWorks5", params)
  10085. .then((res) => {
  10086. this.$message({
  10087. message: "提交成功",
  10088. type: "success",
  10089. });
  10090. this.studyJuri[0].cover = [];
  10091. this.dialogVisibleGroupWork = false;
  10092. this.getCourseDetail(2);
  10093. })
  10094. .catch((err) => {
  10095. this.$message.error("提交失败");
  10096. console.error(err);
  10097. });
  10098. },
  10099. addCourseWorksGong(i, data, tool) {
  10100. let params = [
  10101. {
  10102. uid: this.userid,
  10103. cid: this.id,
  10104. stage: this.courseType,
  10105. task: this.taskCount,
  10106. tool: i,
  10107. content: data,
  10108. type: 12,
  10109. atool: tool,
  10110. text: "",
  10111. },
  10112. ];
  10113. this.ajax
  10114. .post(this.$store.state.api + "addCourseWorks5", params)
  10115. .then((res) => {
  10116. this.$message({
  10117. message: "提交成功",
  10118. type: "success",
  10119. });
  10120. this.studyJuri[0].cover = [];
  10121. this.selectSWorks();
  10122. this.selectStudent();
  10123. })
  10124. .catch((err) => {
  10125. this.$message.error("提交失败");
  10126. console.error(err);
  10127. });
  10128. },
  10129. addCourseWorksGongTeacher(i, data, tool) {
  10130. let params = [
  10131. {
  10132. uid: this.sStudent.userid,
  10133. cid: this.id,
  10134. stage: this.courseType,
  10135. task: this.taskCount,
  10136. tool: i,
  10137. content: data,
  10138. type: 12,
  10139. atool: tool,
  10140. text: "",
  10141. },
  10142. ];
  10143. this.ajax
  10144. .post(this.$store.state.api + "addCourseWorks5", params)
  10145. .then((res) => {
  10146. this.$message({
  10147. message: "提交成功",
  10148. type: "success",
  10149. });
  10150. this.studyJuri[0].cover = [];
  10151. this.dialogVisibleWorks = false;
  10152. this.selectSWorks();
  10153. this.selectStudent();
  10154. })
  10155. .catch((err) => {
  10156. this.$message.error("提交失败");
  10157. console.error(err);
  10158. });
  10159. },
  10160. addCourseWorksGongPl(i, data, tool, type) {
  10161. let params = [
  10162. {
  10163. uid: this.sStudent.userid,
  10164. cid: this.id,
  10165. stage: this.courseType,
  10166. task: this.taskCount,
  10167. tool: i,
  10168. content: data,
  10169. type: type,
  10170. atool: tool,
  10171. text: "",
  10172. },
  10173. ];
  10174. this.ajax
  10175. .post(this.$store.state.api + "addCourseWorks5", params)
  10176. .then((res) => {
  10177. this.$message({
  10178. message: "提交成功",
  10179. type: "success",
  10180. });
  10181. this.studyJuri[0].cover = [];
  10182. this.dialogVisibleWorks = false;
  10183. this.selectSWorks();
  10184. this.selectStudent();
  10185. })
  10186. .catch((err) => {
  10187. this.$message.error("提交失败");
  10188. console.error(err);
  10189. });
  10190. },
  10191. addCourseWorksTeacher(i) {
  10192. var typesql;
  10193. if (this.sTool == 32 || this.sTool == 57) {
  10194. this.addCourseWorksGongTeacher(
  10195. this.toolindex,
  10196. this.studyJuri[0].cover[0].url,
  10197. this.sTool
  10198. );
  10199. return;
  10200. }
  10201. if (this.fileType === 0) {
  10202. typesql = 1;
  10203. } else if (this.fileType === 1) {
  10204. typesql = 4;
  10205. } else if (this.fileType === 2) {
  10206. typesql = 5;
  10207. } else if (this.fileType === 3) {
  10208. typesql = 12;
  10209. }
  10210. if (this.sTool == 50) {
  10211. this.addCourseWorksGongPl(
  10212. this.toolindex,
  10213. this.studyJuri[0].cover[0].url,
  10214. this.sTool,
  10215. typesql
  10216. );
  10217. return;
  10218. }
  10219. if (!this.studyJuri[0].cover[0].url) {
  10220. this.$message.error("请上传文件");
  10221. return;
  10222. }
  10223. let params = [
  10224. {
  10225. uid: this.sStudent.userid,
  10226. cid: this.id,
  10227. stage: this.courseType,
  10228. task: i,
  10229. tool: this.toolindex,
  10230. content: this.studyJuri[0].cover[0].url,
  10231. type: typesql,
  10232. ateacher: this.userid,
  10233. },
  10234. ];
  10235. this.ajax
  10236. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  10237. .then((res) => {
  10238. this.$message({
  10239. message: "提交成功",
  10240. type: "success",
  10241. });
  10242. this.studyJuri[0].cover = [];
  10243. this.dialogVisibleWorks = false;
  10244. this.getCourseDetail(2);
  10245. })
  10246. .catch((err) => {
  10247. this.$message.error("提交失败");
  10248. console.error(err);
  10249. });
  10250. },
  10251. selectUploadStudent() {
  10252. let params = {
  10253. cid: this.uploadCid,
  10254. oid: this.oid,
  10255. cn: "",
  10256. };
  10257. this.ajax
  10258. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  10259. .then((res) => {
  10260. var studentK = [];
  10261. if (this.isWorksS[this.toolindex].length > 0) {
  10262. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  10263. studentK.push(this.isWorksS[this.toolindex][z].uid);
  10264. }
  10265. studentK = studentK.join(",");
  10266. }
  10267. this.uploadStudentJuri = res.data[0].filter((el) => {
  10268. return studentK.indexOf(el.userid) == -1;
  10269. });
  10270. })
  10271. .catch((err) => {
  10272. console.error(err);
  10273. });
  10274. },
  10275. arrayToArray(arrayo, arrayt) {
  10276. let array1 = arrayo;
  10277. let array2 = arrayt;
  10278. let commonElements = [];
  10279. for (let i = 0; i < array1.length; i++) {
  10280. for (let j = 0; j < array2.length; j++) {
  10281. if (array1[i] === array2[j]) {
  10282. commonElements.push(array1[i]);
  10283. }
  10284. }
  10285. }
  10286. return commonElements;
  10287. },
  10288. selectWorksStudent() {
  10289. let params = {
  10290. oid: this.oid,
  10291. cid: this.courseDetail.juri,
  10292. };
  10293. this.ajax
  10294. .get(this.$store.state.api + "selectWorksStudent", params)
  10295. .then((res) => {
  10296. var a = res.data[0];
  10297. for (var i = 0; i < this.isWorksS.length; i++) {
  10298. this.noWorksS[i] = [];
  10299. var studentK = [];
  10300. if (this.isWorksS[i].length > 0) {
  10301. for (var z = 0; z < this.isWorksS[i].length; z++) {
  10302. studentK.push(this.isWorksS[i][z].uid);
  10303. }
  10304. studentK = studentK.join(",");
  10305. for (var j = 0; j < a.length; j++) {
  10306. if (studentK.indexOf(a[j].userid) == -1) {
  10307. if (this.tcid) {
  10308. // a[j].classid.indexOf(this.tcid) != -1
  10309. if (
  10310. this.arrayToArray(
  10311. a[j].classid.split(","),
  10312. this.tcid.split(",")
  10313. ).length
  10314. ) {
  10315. this.noWorksS[i].push({
  10316. student: a[j].name,
  10317. userid: a[j].userid,
  10318. });
  10319. }
  10320. } else {
  10321. this.noWorksS[i].push({
  10322. student: a[j].name,
  10323. userid: a[j].userid,
  10324. });
  10325. }
  10326. }
  10327. }
  10328. } else {
  10329. for (var k = 0; k < a.length; k++) {
  10330. if (this.tcid) {
  10331. if (
  10332. this.arrayToArray(
  10333. a[k].classid.split(","),
  10334. this.tcid.split(",")
  10335. ).length
  10336. ) {
  10337. this.noWorksS[i].push({
  10338. student: a[k].name,
  10339. userid: a[k].userid,
  10340. });
  10341. }
  10342. } else {
  10343. this.noWorksS[i].push({
  10344. student: a[k].name,
  10345. userid: a[k].userid,
  10346. });
  10347. }
  10348. }
  10349. }
  10350. }
  10351. this.$forceUpdate();
  10352. if (
  10353. Object.keys(this.commentDetail).length &&
  10354. Object.keys(this.commentIndexJson).length &&
  10355. !this.dialogVisibleScore
  10356. ) {
  10357. let a = 1;
  10358. let c = this.commentIndexJson;
  10359. console.log(c);
  10360. if (
  10361. this.commentIndexJson.gindex ||
  10362. this.commentIndexJson.gindex === 0
  10363. ) {
  10364. for (
  10365. var i = 0;
  10366. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  10367. i++
  10368. ) {
  10369. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  10370. groupA: for (var k = 0; k < _el.length; k++) {
  10371. let el = _el[k];
  10372. if (el.wid == this.commentDetail.wid) {
  10373. a = 2;
  10374. this.commentOther(
  10375. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  10376. this.commentIndexJson.toolIndex,
  10377. k,
  10378. this.commentIndexJson.gindex
  10379. );
  10380. break groupA;
  10381. }
  10382. }
  10383. }
  10384. if (a === 1) {
  10385. this.commentDetail = [];
  10386. this.commentIndexJson = {};
  10387. this.commentDialogVisible = false;
  10388. this.$message("此作业已被删除");
  10389. }
  10390. } else {
  10391. if (this.isGroup && this.commentIndexJson.gid) {
  10392. groupA: for (
  10393. var i = 0;
  10394. i < this.courseGroup.group.length;
  10395. i++
  10396. ) {
  10397. let _group = this.courseGroup.group[i];
  10398. if (_group.id == this.commentIndexJson.gid) {
  10399. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  10400. for (var k = 0; k < _el2.length; k++) {
  10401. let el2 = _el2[k];
  10402. if (el2.wid == this.commentDetail.wid) {
  10403. a = 2;
  10404. this.commentOther(
  10405. _el2[k],
  10406. this.commentIndexJson.toolIndex,
  10407. k,
  10408. null,
  10409. this.commentIndexJson.gid
  10410. );
  10411. break groupA;
  10412. }
  10413. }
  10414. }
  10415. }
  10416. }
  10417. if (a == 1) {
  10418. for (
  10419. var i = 0;
  10420. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  10421. i++
  10422. ) {
  10423. let el =
  10424. this.worksStudent[this.commentIndexJson.toolIndex][i];
  10425. if (el.wid == this.commentDetail.wid) {
  10426. a = 2;
  10427. this.commentOther(
  10428. this.worksStudent[this.commentIndexJson.toolIndex][i],
  10429. this.commentIndexJson.toolIndex,
  10430. i
  10431. );
  10432. break;
  10433. }
  10434. }
  10435. }
  10436. if (a === 1) {
  10437. this.commentDetail = [];
  10438. this.commentIndexJson = {};
  10439. this.commentDialogVisible = false;
  10440. this.$message("此作业已被删除");
  10441. }
  10442. }
  10443. }
  10444. })
  10445. .catch((err) => {
  10446. console.error(err);
  10447. });
  10448. },
  10449. selectStudent() {
  10450. //学生查看自己作业
  10451. let params = {
  10452. uid: this.userid,
  10453. cid: this.id,
  10454. s: this.courseType,
  10455. t: this.taskCount,
  10456. };
  10457. this.ajax
  10458. .get(this.$store.state.api + "selectStudentWorks", params)
  10459. .then((res) => {
  10460. var a =
  10461. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10462. this.taskCount
  10463. ].toolChoose;
  10464. var b = res.data[0];
  10465. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  10466. var y = [
  10467. "AVI",
  10468. "NAVI",
  10469. "MPEG",
  10470. "ASF",
  10471. "MOV",
  10472. "WMV",
  10473. "3GP",
  10474. "RM",
  10475. "RMVB",
  10476. "FLV",
  10477. "F4V",
  10478. "H.264",
  10479. "H.265",
  10480. "REAL VIDEO",
  10481. "MKV",
  10482. "WebM",
  10483. "HDDVD",
  10484. "MP4",
  10485. "MPG",
  10486. "M4V",
  10487. "MGV",
  10488. "OGV",
  10489. "QTM",
  10490. "STR",
  10491. "AMC",
  10492. "DVX",
  10493. "EVO",
  10494. "DAT",
  10495. "OGG",
  10496. "OGM",
  10497. ];
  10498. for (var i = 0; i < a.length; i++) {
  10499. this.workStudent[i] = [];
  10500. for (var j = 0; j < b.length; j++) {
  10501. if (i == b[j].tool) {
  10502. if (
  10503. (b[j].type == 1 ||
  10504. b[j].type == 4 ||
  10505. b[j].type == 5 ||
  10506. b[j].type == 6 ||
  10507. b[j].type == 12 ||
  10508. b[j].type == 7) &&
  10509. a[i].tool[0] != 15 &&
  10510. a[i].tool[0] != 4 &&
  10511. a[i].tool[0] != 45 &&
  10512. a[i].tool[0] != 50 &&
  10513. a[i].tool[0] != 32 &&
  10514. a[i].tool[0] != 57 &&
  10515. a[i].tool[0] != 52
  10516. ) {
  10517. if (
  10518. c.indexOf(
  10519. b[j].content
  10520. .split(".")
  10521. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  10522. ) != -1 &&
  10523. a[i].tool[0] == 16 &&
  10524. b[j].atool != 50
  10525. ) {
  10526. this.workStudent[i].push({
  10527. works: b[j].content,
  10528. sName: b[j].name,
  10529. score: b[j].score,
  10530. img: b[j].img,
  10531. type: 1,
  10532. time: b[j].time,
  10533. userid: b[j].userid,
  10534. wid: b[j].id,
  10535. });
  10536. } else if (
  10537. y.indexOf(
  10538. b[j].content
  10539. .split(".")
  10540. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  10541. ) != -1 &&
  10542. a[i].tool[0] == 16 &&
  10543. b[j].atool != 50
  10544. ) {
  10545. this.workStudent[i].push({
  10546. userid: b[j].userid,
  10547. wid: b[j].id,
  10548. works: b[j].content,
  10549. sName: b[j].name,
  10550. score: b[j].score,
  10551. img: b[j].img,
  10552. type: 3,
  10553. time: b[j].time,
  10554. });
  10555. } else if (b[j].type == 6 && b[j].atool != 50) {
  10556. this.workStudent[i].push({
  10557. userid: b[j].userid,
  10558. wid: b[j].id,
  10559. works: b[j].content,
  10560. sName: b[j].name,
  10561. score: b[j].score,
  10562. img: b[j].img,
  10563. type: 4,
  10564. time: b[j].time,
  10565. });
  10566. } else if (b[j].type == 7 && b[j].atool != 50) {
  10567. this.workStudent[i].push({
  10568. userid: b[j].userid,
  10569. wid: b[j].id,
  10570. works: b[j].content,
  10571. sName: b[j].name,
  10572. score: b[j].score,
  10573. img: b[j].img,
  10574. type: 5,
  10575. time: b[j].time,
  10576. });
  10577. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  10578. this.workStudent[i].push({
  10579. works: b[j].content,
  10580. sName: b[j].name,
  10581. score: b[j].score,
  10582. img: b[j].img,
  10583. type: 12,
  10584. time: b[j].time,
  10585. userid: b[j].userid,
  10586. wid: b[j].id,
  10587. });
  10588. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  10589. this.workStudent[i].push({
  10590. works: b[j].content,
  10591. sName: b[j].name,
  10592. score: b[j].score,
  10593. img: b[j].img,
  10594. type: 0,
  10595. time: b[j].time,
  10596. userid: b[j].userid,
  10597. wid: b[j].id,
  10598. });
  10599. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  10600. this.workStudent[i].push({
  10601. works: b[j].content,
  10602. sName: b[j].name,
  10603. score: b[j].score,
  10604. img: b[j].img,
  10605. type: 0,
  10606. time: b[j].time,
  10607. userid: b[j].userid,
  10608. wid: b[j].id,
  10609. });
  10610. }
  10611. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  10612. this.workStudent[i].push({
  10613. works: b[j].content,
  10614. sName: b[j].name,
  10615. score: b[j].score,
  10616. img: b[j].img,
  10617. type: 2,
  10618. time: b[j].time,
  10619. userid: b[j].userid,
  10620. wid: b[j].id,
  10621. });
  10622. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  10623. //问卷
  10624. this.workStudent[i].push({
  10625. works: b[j].content,
  10626. sName: b[j].name,
  10627. score: b[j].score,
  10628. img: b[j].img,
  10629. type: 2,
  10630. time: b[j].time,
  10631. userid: b[j].userid,
  10632. wid: b[j].id,
  10633. });
  10634. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  10635. //选择题
  10636. this.workStudent[i].push({
  10637. works: b[j].content,
  10638. sName: b[j].name,
  10639. score: b[j].score,
  10640. img: b[j].img,
  10641. type: 8,
  10642. time: b[j].time,
  10643. userid: b[j].userid,
  10644. wid: b[j].id,
  10645. });
  10646. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  10647. //选择题
  10648. this.workStudent[i].push({
  10649. works: b[j].content,
  10650. sName: b[j].name,
  10651. score: b[j].score,
  10652. img: b[j].img,
  10653. type: 9,
  10654. time: b[j].time,
  10655. userid: b[j].userid,
  10656. wid: b[j].id,
  10657. });
  10658. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  10659. //选择题
  10660. this.workStudent[i].push({
  10661. works: b[j].content,
  10662. sName: b[j].name,
  10663. score: b[j].score,
  10664. img: b[j].img,
  10665. type: 10,
  10666. time: b[j].time,
  10667. userid: b[j].userid,
  10668. wid: b[j].id,
  10669. });
  10670. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  10671. //选择题
  10672. this.workStudent[i].push({
  10673. works: b[j].content,
  10674. sName: b[j].name,
  10675. score: b[j].score,
  10676. img: b[j].img,
  10677. type: 13,
  10678. time: b[j].time,
  10679. userid: b[j].userid,
  10680. wid: b[j].id,
  10681. });
  10682. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  10683. //选择题
  10684. this.workStudent[i].push({
  10685. works: b[j].content,
  10686. sName: b[j].name,
  10687. score: b[j].score,
  10688. img: b[j].img,
  10689. type: 12,
  10690. time: b[j].time,
  10691. userid: b[j].userid,
  10692. wid: b[j].id,
  10693. });
  10694. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  10695. //选择题
  10696. this.workStudent[i].push({
  10697. works: b[j].content,
  10698. sName: b[j].name,
  10699. score: b[j].score,
  10700. img: b[j].img,
  10701. type: 12,
  10702. time: b[j].time,
  10703. userid: b[j].userid,
  10704. wid: b[j].id,
  10705. });
  10706. }
  10707. }
  10708. }
  10709. }
  10710. })
  10711. .catch((err) => {
  10712. console.error(err);
  10713. });
  10714. },
  10715. openVideo(w) {
  10716. this.videoDetail = {};
  10717. this.playerOptions1.sources[0].src = w.works;
  10718. this.videoDetail = this.playerOptions1;
  10719. this.videoVisible = true;
  10720. },
  10721. isLikes(wid, uid, t, c, isLikes) {
  10722. if (isLikes == false) {
  10723. let params = [
  10724. {
  10725. wid: wid,
  10726. lid: uid,
  10727. t: t,
  10728. c: c,
  10729. },
  10730. ];
  10731. this.ajax
  10732. .post(this.$store.state.api + "insertComment", params)
  10733. .then((res) => {
  10734. this.$message({
  10735. message: "点赞成功",
  10736. type: "success",
  10737. });
  10738. this.selectSWorks();
  10739. this.selectStudent();
  10740. })
  10741. .catch((err) => {
  10742. this.$message.error("点赞失败");
  10743. console.error(err);
  10744. });
  10745. } else {
  10746. let params = {
  10747. wid: wid,
  10748. lid: uid,
  10749. type: t,
  10750. };
  10751. this.ajax
  10752. .get(this.$store.state.api + "deleteComment", params)
  10753. .then((res) => {
  10754. this.$message({
  10755. message: "取消点赞成功",
  10756. type: "success",
  10757. });
  10758. this.selectSWorks();
  10759. this.selectStudent();
  10760. })
  10761. .catch((err) => {
  10762. console.error(err);
  10763. });
  10764. }
  10765. },
  10766. deleteComment(wid) {
  10767. this.$confirm("确定删除此评论吗?", "提示", {
  10768. confirmButtonText: "确定",
  10769. cancelButtonText: "取消",
  10770. type: "warning",
  10771. })
  10772. .then(() => {
  10773. let params = {
  10774. id: wid,
  10775. };
  10776. this.ajax
  10777. .get(this.$store.state.api + "deleteComment2", params)
  10778. .then((res) => {
  10779. this.$message({
  10780. message: "删除评论成功",
  10781. type: "success",
  10782. });
  10783. this.selectSWorks();
  10784. this.selectStudent();
  10785. })
  10786. .catch((err) => {
  10787. console.error(err);
  10788. });
  10789. })
  10790. .catch(() => {});
  10791. },
  10792. commentOther(w, toolIndex, wIndex, gindex, gid) {
  10793. this.commentIndexJson = {
  10794. toolIndex: toolIndex,
  10795. wIndex: wIndex,
  10796. gindex: gindex,
  10797. gid: gid,
  10798. };
  10799. this.commentDetail = [];
  10800. this.commentDialogVisible = true;
  10801. this.commentDetail = w;
  10802. if (w.works && w.type == 1) {
  10803. this.pptImgUrl = "";
  10804. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  10805. if (
  10806. a.indexOf(
  10807. w.works
  10808. .split(".")
  10809. [w.works.split(".").length - 1].toLocaleUpperCase()
  10810. ) != -1
  10811. ) {
  10812. this.pptImgUrl =
  10813. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  10814. this.showPDF = false;
  10815. } else if (
  10816. w.works
  10817. .split(".")
  10818. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  10819. ) {
  10820. this.pptImgUrl = w.works;
  10821. this.showPDF = true;
  10822. }
  10823. } else if (w.works && w.type == 3) {
  10824. this.videoDetail = {};
  10825. this.playerOptions1.sources[0].src = w.works;
  10826. this.videoDetail = this.playerOptions1;
  10827. // this.videoVisible = true;
  10828. } else if (w.works && w.type == 4) {
  10829. this.eScore = JSON.parse(w.works);
  10830. this.rateJson =
  10831. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10832. this.taskCount
  10833. ].toolChoose[toolIndex].rateJson;
  10834. } else if (w.works && w.type == 10) {
  10835. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  10836. } else if (w.works && w.type == 13) {
  10837. this.wordJson =
  10838. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10839. this.taskCount
  10840. ].toolChoose[toolIndex].wordJson;
  10841. }
  10842. },
  10843. openScore(w) {
  10844. this.wScore = 0;
  10845. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  10846. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  10847. this.commentDetail = [];
  10848. this.dialogVisibleScore = true;
  10849. this.commentDetail = w;
  10850. if (w.works && w.type == 1) {
  10851. this.pptImgUrl = "";
  10852. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  10853. if (
  10854. a.indexOf(
  10855. w.works
  10856. .split(".")
  10857. [w.works.split(".").length - 1].toLocaleUpperCase()
  10858. ) != -1
  10859. ) {
  10860. this.pptImgUrl =
  10861. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  10862. this.showPDF = false;
  10863. } else if (
  10864. w.works
  10865. .split(".")
  10866. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  10867. ) {
  10868. this.pptImgUrl = w.works;
  10869. this.showPDF = true;
  10870. }
  10871. } else if (w.works && w.type == 3) {
  10872. this.videoDetail = {};
  10873. this.playerOptions1.sources[0].src = w.works;
  10874. this.videoDetail = this.playerOptions1;
  10875. }
  10876. },
  10877. addComment(wid, uid, t) {
  10878. if (this.commentText == "") {
  10879. this.$message.error("请输入对该学生的评价");
  10880. return;
  10881. }
  10882. let params2 = [
  10883. {
  10884. wid: wid,
  10885. lid: uid,
  10886. t: t,
  10887. },
  10888. ];
  10889. this.ajax
  10890. .post(this.$store.state.api + "getComment", params2)
  10891. .then((res) => {
  10892. if (res.data[0].length > 0) {
  10893. this.$message.error("一个作业只能评论一条");
  10894. } else {
  10895. let params = [
  10896. {
  10897. wid: wid,
  10898. lid: uid,
  10899. t: t,
  10900. c: this.commentText,
  10901. },
  10902. ];
  10903. this.ajax
  10904. .post(this.$store.state.api + "insertComment", params)
  10905. .then((res) => {
  10906. this.$message({
  10907. message: "评论成功",
  10908. type: "success",
  10909. });
  10910. this.commentText = "";
  10911. this.selectSWorks();
  10912. this.selectStudent();
  10913. })
  10914. .catch((err) => {
  10915. this.$message.error("评论失败");
  10916. console.error(err);
  10917. });
  10918. }
  10919. })
  10920. .catch((err) => {
  10921. // this.$message.error("评论失败");
  10922. console.error(err);
  10923. });
  10924. },
  10925. scoreWork(wid) {
  10926. if (this.wScore == 0) {
  10927. this.$message.error("请评分");
  10928. return;
  10929. }
  10930. let params = [
  10931. {
  10932. wid: wid,
  10933. score: JSON.stringify({
  10934. wScore: this.wScore,
  10935. detail: this.scoreDetail,
  10936. }),
  10937. },
  10938. ];
  10939. this.ajax
  10940. .post(this.$store.state.api + "scoreWork", params)
  10941. .then((res) => {
  10942. this.$message({
  10943. message: "评分成功",
  10944. type: "success",
  10945. });
  10946. this.wScore = 0;
  10947. this.scoreDetail = "";
  10948. this.dialogVisibleScore = false;
  10949. this.selectSWorks();
  10950. this.selectStudent();
  10951. })
  10952. .catch((err) => {
  10953. this.$message.error("评分失败");
  10954. console.error(err);
  10955. });
  10956. },
  10957. openXz(w, i) {
  10958. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10959. .taskJson[this.taskCount].toolChoose[i].selectJson
  10960. ? JSON.parse(
  10961. JSON.stringify(
  10962. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10963. this.taskCount
  10964. ].toolChoose[i].selectJson
  10965. )
  10966. )
  10967. : { url: "", select: [], answer: [] };
  10968. var a = w.works.split(",");
  10969. for (var k = 0; k < a.length; k++) {
  10970. a[k] = parseInt(a[k]);
  10971. }
  10972. this.selectAnswer = { answer: a, stu: w.sName };
  10973. this.isSelect = true;
  10974. this.dialogVisibleSelect = true;
  10975. },
  10976. openSen(w, i) {
  10977. this.sentenceList1 = JSON.parse(w.works);
  10978. this.sentenceList1.stuName = w.sName;
  10979. this.dialogVisibleSentence1 = true;
  10980. },
  10981. openPj(w, toolindex) {
  10982. this.isStar = true;
  10983. this.eScore = JSON.parse(w);
  10984. this.rateJson =
  10985. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10986. this.taskCount
  10987. ].toolChoose[toolindex].rateJson;
  10988. this.studentEvalDialogVisible = true;
  10989. },
  10990. deleteWorks(id) {
  10991. this.$confirm("确定删除此作业吗?", "提示", {
  10992. confirmButtonText: "确定",
  10993. cancelButtonText: "取消",
  10994. type: "warning",
  10995. })
  10996. .then(() => {
  10997. let params = [
  10998. {
  10999. id: id,
  11000. },
  11001. ];
  11002. this.ajax
  11003. .post(this.$store.state.api + "deleteCourseWork", params)
  11004. .then((res) => {
  11005. this.$message({
  11006. message: "删除成功",
  11007. type: "success",
  11008. });
  11009. this.selectStudent();
  11010. this.selectSWorks();
  11011. this.selectSLook();
  11012. })
  11013. .catch((err) => {
  11014. this.$message.error("网络异常");
  11015. console.error(err);
  11016. });
  11017. })
  11018. .catch(() => {});
  11019. },
  11020. selectSWorks(gindex) {
  11021. //教师查看全部作业
  11022. let params = {
  11023. cid: this.id,
  11024. s: this.courseType,
  11025. t: this.taskCount,
  11026. };
  11027. this.ajax
  11028. .get(this.$store.state.api + "selectSWorks", params)
  11029. .then((res) => {
  11030. var a =
  11031. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11032. this.taskCount
  11033. ].toolChoose;
  11034. var b = res.data[0];
  11035. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  11036. var y = [
  11037. "AVI",
  11038. "NAVI",
  11039. "MPEG",
  11040. "ASF",
  11041. "MOV",
  11042. "WMV",
  11043. "3GP",
  11044. "RM",
  11045. "RMVB",
  11046. "FLV",
  11047. "F4V",
  11048. "H.264",
  11049. "H.265",
  11050. "REAL VIDEO",
  11051. "MKV",
  11052. "WebM",
  11053. "HDDVD",
  11054. "MP4",
  11055. "MPG",
  11056. "M4V",
  11057. "MGV",
  11058. "OGV",
  11059. "QTM",
  11060. "STR",
  11061. "AMC",
  11062. "DVX",
  11063. "EVO",
  11064. "DAT",
  11065. "OGG",
  11066. "OGM",
  11067. ];
  11068. var d = res.data[1];
  11069. var e = res.data[2];
  11070. var f = res.data[3];
  11071. let _worksStudent = []
  11072. for (var i = 0; i < a.length; i++) {
  11073. _worksStudent[i] = [];
  11074. if (
  11075. !this.isCloseList[i] ||
  11076. this.isCloseList[i].isClose == undefined
  11077. ) {
  11078. this.isCloseList[i] = { isClose: 0 };
  11079. }
  11080. this.groupStudent[i] = [];
  11081. this.groupStudentUid[i] = [];
  11082. if (this.isGroup) {
  11083. for (
  11084. var groupI = 0;
  11085. groupI < this.courseGroup.group.length;
  11086. groupI++
  11087. ) {
  11088. this.courseGroup.group[groupI].works[i] = [];
  11089. }
  11090. }
  11091. this.isWorksS[i] = [];
  11092. this.checkJson[i] = [];
  11093. if (a[i].tool[0] == 49) {
  11094. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  11095. this.groupStudent[i][gA] = [];
  11096. this.groupStudentUid[i][gA] = [];
  11097. _worksStudent[i][gA] = [];
  11098. this.isCloseList[i][gA] = [];
  11099. for (var g = 0; g < f.length; g++) {
  11100. if (
  11101. f[g].ttype == 2 &&
  11102. this.tcid &&
  11103. this.arrayToArray(
  11104. f[g].classid.split(","),
  11105. this.tcid.split(",")
  11106. ).length == 0
  11107. ) {
  11108. continue;
  11109. }
  11110. if (gA == f[g].group && f[g].tool == i) {
  11111. this.groupStudent[i][gA].push(f[g]);
  11112. this.groupStudentUid[i][gA].push(f[g].userid);
  11113. }
  11114. }
  11115. }
  11116. this.$forceUpdate();
  11117. }
  11118. for (var j = 0; j < b.length; j++) {
  11119. if (
  11120. b[j].ttype == 2 &&
  11121. this.tcid &&
  11122. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  11123. .length == 0
  11124. ) {
  11125. continue;
  11126. }
  11127. var likesCount = 0;
  11128. var commentCount = 0;
  11129. var isLikes = false;
  11130. var commentJson = [];
  11131. var data = b[j];
  11132. if (i == b[j].tool) {
  11133. if (data.type == 2 && a[i].tool[0] == 4) {
  11134. // if(JSON.parse(data.content)[0].anwer){
  11135. var checkL = JSON.parse(data.content)[0].anwer instanceof Array ? JSON.parse(data.content)[0].anwer : JSON.parse(data.content)[0].anwer.split(",");
  11136. for (var z = 0; z < checkL.length; z++) {
  11137. if (!this.checkJson[i][z]) {
  11138. this.checkJson[i].push({
  11139. checkCount: [],
  11140. checkPerson: [],
  11141. rightPerson: [],
  11142. });
  11143. }
  11144. if (!this.checkJson[i][z].checkCount.length) {
  11145. this.checkJson[i][z].checkCount = [];
  11146. let _askItemCount = JSON.parse(data.content)[0].askJson
  11147. .askJson[z].askItem;
  11148. for (var aic = 0; aic < _askItemCount; aic++) {
  11149. this.checkJson[i][z].checkCount.push(0);
  11150. }
  11151. }
  11152. if (checkL[z] instanceof Array) {
  11153. if (
  11154. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  11155. checkL[z].sort().join(",")
  11156. ) {
  11157. this.checkJson[i][z].rightPerson.push(data.name);
  11158. }
  11159. for (var q = 0; q < checkL[z].length; q++) {
  11160. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  11161. ? this.checkJson[i][z].checkPerson[
  11162. parseInt(checkL[z][q])
  11163. ].push(data.name)
  11164. : (this.checkJson[i][z].checkPerson[
  11165. parseInt(checkL[z][q])
  11166. ] = [data.name]);
  11167. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  11168. ? this.checkJson[i][z].checkCount[
  11169. parseInt(checkL[z][q])
  11170. ]++
  11171. : (this.checkJson[i][z].checkCount[
  11172. parseInt(checkL[z][q])
  11173. ] = 1);
  11174. }
  11175. } else {
  11176. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  11177. this.checkJson[i][z].rightPerson.push(data.name);
  11178. }
  11179. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  11180. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  11181. ? this.checkJson[i][z].checkPerson[
  11182. parseInt(checkL[z])
  11183. ].push(data.name)
  11184. : (this.checkJson[i][z].checkPerson[
  11185. parseInt(checkL[z])
  11186. ] = [data.name]);
  11187. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  11188. ? this.checkJson[i][z].checkCount[
  11189. parseInt(checkL[z])
  11190. ]++
  11191. : (this.checkJson[i][z].checkCount[
  11192. parseInt(checkL[z])
  11193. ] = 1);
  11194. }
  11195. }
  11196. }
  11197. } else if (data.type == 8 && a[i].tool[0] == 45) {
  11198. var checkL = JSON.parse(data.content)[0].anwer;
  11199. for (var z = 0; z < checkL.length; z++) {
  11200. if (!this.checkJson[i][z]) {
  11201. this.checkJson[i].push({
  11202. checkCount: [],
  11203. checkPerson: [],
  11204. rightPerson: [],
  11205. });
  11206. }
  11207. if (!this.checkJson[i][z].checkCount.length) {
  11208. this.checkJson[i][z].checkCount = [];
  11209. let _askItemCount = JSON.parse(data.content)[0].testJson
  11210. .testJson[z].testItem;
  11211. console.log(_askItemCount);
  11212. for (var aic = 0; aic < _askItemCount; aic++) {
  11213. this.checkJson[i][z].checkCount.push(0);
  11214. }
  11215. }
  11216. if (checkL[z] instanceof Array) {
  11217. if (
  11218. JSON.parse(data.content)[0]
  11219. .testJson.testJson[z].answer.sort()
  11220. .join(",") == checkL[z].sort().join(",")
  11221. ) {
  11222. this.checkJson[i][z].rightPerson.push(data.name);
  11223. }
  11224. for (var q = 0; q < checkL[z].length; q++) {
  11225. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  11226. ? this.checkJson[i][z].checkPerson[
  11227. parseInt(checkL[z][q])
  11228. ].push(data.name)
  11229. : (this.checkJson[i][z].checkPerson[
  11230. parseInt(checkL[z][q])
  11231. ] = [data.name]);
  11232. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  11233. ? this.checkJson[i][z].checkCount[
  11234. parseInt(checkL[z][q])
  11235. ]++
  11236. : (this.checkJson[i][z].checkCount[
  11237. parseInt(checkL[z][q])
  11238. ] = 1);
  11239. }
  11240. } else {
  11241. if (
  11242. JSON.parse(data.content)[0].testJson.testJson[z]
  11243. .answer == checkL[z]
  11244. ) {
  11245. this.checkJson[i][z].rightPerson.push(data.name);
  11246. }
  11247. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  11248. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  11249. ? this.checkJson[i][z].checkPerson[
  11250. parseInt(checkL[z])
  11251. ].push(data.name)
  11252. : (this.checkJson[i][z].checkPerson[
  11253. parseInt(checkL[z])
  11254. ] = [data.name]);
  11255. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  11256. ? this.checkJson[i][z].checkCount[
  11257. parseInt(checkL[z])
  11258. ]++
  11259. : (this.checkJson[i][z].checkCount[
  11260. parseInt(checkL[z])
  11261. ] = 1);
  11262. }
  11263. }
  11264. }
  11265. } else if (data.type == 9 && a[i].tool[0] == 47) {
  11266. var checkL = JSON.parse(data.content);
  11267. for (var z = 0; z < checkL.length; z++) {
  11268. if (!this.checkJson[i][z]) {
  11269. this.checkJson[i].push({
  11270. checkCount: [],
  11271. checkPerson: [],
  11272. rightPerson: [],
  11273. });
  11274. }
  11275. this.checkJson[i][z].checkPerson.push(data.name);
  11276. if (
  11277. checkL[z].chooseSenList.toString() ==
  11278. checkL[z].rightAnswer.toString()
  11279. ) {
  11280. this.checkJson[i][z].rightPerson.push(data.name);
  11281. }
  11282. }
  11283. }
  11284. for (var k = 0; k < d.length; k++) {
  11285. //点赞
  11286. if (d[k].workId == b[j].id) {
  11287. likesCount++;
  11288. if (d[k].likesId == this.userid) {
  11289. isLikes = true;
  11290. }
  11291. }
  11292. }
  11293. for (var l = 0; l < e.length; l++) {
  11294. //评论
  11295. if (e[l].workId == b[j].id) {
  11296. if (e[l].comment != "") {
  11297. commentCount++;
  11298. commentJson.push({
  11299. commentText: e[l].comment,
  11300. commentTime: e[l].commentTime,
  11301. commentPeople: e[l].commentPeople,
  11302. userid: e[l].userid,
  11303. wid: e[l].id,
  11304. });
  11305. }
  11306. }
  11307. }
  11308. if (
  11309. (b[j].type == 1 ||
  11310. b[j].type == 4 ||
  11311. b[j].type == 5 ||
  11312. b[j].type == 6 ||
  11313. b[j].type == 12 ||
  11314. b[j].type == 7) &&
  11315. a[i].tool[0] != 15 &&
  11316. a[i].tool[0] != 4 &&
  11317. a[i].tool[0] != 45 &&
  11318. a[i].tool[0] != 50 &&
  11319. a[i].tool[0] != 32 &&
  11320. a[i].tool[0] != 57 &&
  11321. a[i].tool[0] != 52
  11322. ) {
  11323. if (
  11324. c.indexOf(
  11325. b[j].content
  11326. .split(".")
  11327. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11328. ) != -1 &&
  11329. a[i].tool[0] == 16 &&
  11330. b[j].atool != 50
  11331. ) {
  11332. let _works = {
  11333. userid: b[j].userid,
  11334. ateacher: b[j].ateacher,
  11335. wid: b[j].id,
  11336. works: b[j].content,
  11337. sName: b[j].name,
  11338. type: 1,
  11339. time: b[j].time,
  11340. score: b[j].score,
  11341. img: b[j].img,
  11342. likesCount: likesCount,
  11343. commentCount: commentCount,
  11344. isLikes: isLikes,
  11345. commentJson: commentJson,
  11346. };
  11347. if (this.isGroup) {
  11348. let isGw = 1;
  11349. for (
  11350. var groupI = 0;
  11351. groupI < this.courseGroup.group.length;
  11352. groupI++
  11353. ) {
  11354. let gid = this.courseGroup.group[groupI].id;
  11355. if (
  11356. this.courseGroupStudentUid[gid].indexOf(
  11357. b[j].userid
  11358. ) != -1
  11359. ) {
  11360. isGw = 2;
  11361. this.courseGroup.group[groupI].works[i].push(_works);
  11362. break;
  11363. }
  11364. }
  11365. if (isGw == 1) {
  11366. _worksStudent[i].push(_works);
  11367. }
  11368. } else {
  11369. _worksStudent[i].push(_works);
  11370. }
  11371. this.isWorksS[i].push({
  11372. uid: b[j].userid,
  11373. sName: b[j].name,
  11374. });
  11375. } else if (
  11376. y.indexOf(
  11377. b[j].content
  11378. .split(".")
  11379. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11380. ) != -1 &&
  11381. a[i].tool[0] == 16 &&
  11382. b[j].atool != 50
  11383. ) {
  11384. let _works = {
  11385. userid: b[j].userid,
  11386. ateacher: b[j].ateacher,
  11387. wid: b[j].id,
  11388. works: b[j].content,
  11389. sName: b[j].name,
  11390. type: 3,
  11391. time: b[j].time,
  11392. score: b[j].score,
  11393. img: b[j].img,
  11394. likesCount: likesCount,
  11395. commentCount: commentCount,
  11396. isLikes: isLikes,
  11397. commentJson: commentJson,
  11398. };
  11399. if (this.isGroup) {
  11400. let isGw = 1;
  11401. for (
  11402. var groupI = 0;
  11403. groupI < this.courseGroup.group.length;
  11404. groupI++
  11405. ) {
  11406. let gid = this.courseGroup.group[groupI].id;
  11407. if (
  11408. this.courseGroupStudentUid[gid].indexOf(
  11409. b[j].userid
  11410. ) != -1
  11411. ) {
  11412. isGw = 2;
  11413. this.courseGroup.group[groupI].works[i].push(_works);
  11414. break;
  11415. }
  11416. }
  11417. if (isGw == 1) {
  11418. _worksStudent[i].push(_works);
  11419. }
  11420. } else {
  11421. _worksStudent[i].push(_works);
  11422. }
  11423. this.isWorksS[i].push({
  11424. uid: b[j].userid,
  11425. sName: b[j].name,
  11426. });
  11427. } else if (b[j].type == 6 && b[j].atool != 50) {
  11428. _worksStudent[i].push({
  11429. userid: b[j].userid,
  11430. ateacher: b[j].ateacher,
  11431. wid: b[j].id,
  11432. works: b[j].content,
  11433. sName: b[j].name,
  11434. type: 4,
  11435. time: b[j].time,
  11436. score: b[j].score,
  11437. img: b[j].img,
  11438. likesCount: likesCount,
  11439. commentCount: commentCount,
  11440. isLikes: isLikes,
  11441. commentJson: commentJson,
  11442. });
  11443. this.isWorksS[i].push({
  11444. uid: b[j].userid,
  11445. sName: b[j].name,
  11446. });
  11447. } else if (b[j].type == 7 && b[j].atool != 50) {
  11448. _worksStudent[i].push({
  11449. userid: b[j].userid,
  11450. ateacher: b[j].ateacher,
  11451. wid: b[j].id,
  11452. works: b[j].content,
  11453. sName: b[j].name,
  11454. type: 5,
  11455. time: b[j].time,
  11456. score: b[j].score,
  11457. img: b[j].img,
  11458. likesCount: likesCount,
  11459. commentCount: commentCount,
  11460. isLikes: isLikes,
  11461. commentJson: commentJson,
  11462. });
  11463. this.isWorksS[i].push({
  11464. uid: b[j].userid,
  11465. sName: b[j].name,
  11466. });
  11467. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  11468. let _works = {
  11469. userid: b[j].userid,
  11470. ateacher: b[j].ateacher,
  11471. wid: b[j].id,
  11472. works: b[j].content,
  11473. sName: b[j].name,
  11474. type: 12,
  11475. time: b[j].time,
  11476. score: b[j].score,
  11477. img: b[j].img,
  11478. likesCount: likesCount,
  11479. commentCount: commentCount,
  11480. isLikes: isLikes,
  11481. commentJson: commentJson,
  11482. };
  11483. if (this.isGroup) {
  11484. let isGw = 1;
  11485. for (
  11486. var groupI = 0;
  11487. groupI < this.courseGroup.group.length;
  11488. groupI++
  11489. ) {
  11490. let gid = this.courseGroup.group[groupI].id;
  11491. if (
  11492. this.courseGroupStudentUid[gid].indexOf(
  11493. b[j].userid
  11494. ) != -1
  11495. ) {
  11496. isGw = 2;
  11497. this.courseGroup.group[groupI].works[i].push(_works);
  11498. break;
  11499. }
  11500. }
  11501. if (isGw == 1) {
  11502. _worksStudent[i].push(_works);
  11503. }
  11504. } else {
  11505. _worksStudent[i].push(_works);
  11506. }
  11507. this.isWorksS[i].push({
  11508. uid: b[j].userid,
  11509. sName: b[j].name,
  11510. });
  11511. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  11512. let _works = {
  11513. userid: b[j].userid,
  11514. ateacher: b[j].ateacher,
  11515. wid: b[j].id,
  11516. works: b[j].content,
  11517. sName: b[j].name,
  11518. type: 0,
  11519. time: b[j].time,
  11520. score: b[j].score,
  11521. img: b[j].img,
  11522. likesCount: likesCount,
  11523. commentCount: commentCount,
  11524. isLikes: isLikes,
  11525. commentJson: commentJson,
  11526. };
  11527. if (this.isGroup) {
  11528. let isGw = 1;
  11529. for (
  11530. var groupI = 0;
  11531. groupI < this.courseGroup.group.length;
  11532. groupI++
  11533. ) {
  11534. let gid = this.courseGroup.group[groupI].id;
  11535. if (
  11536. this.courseGroupStudentUid[gid].indexOf(
  11537. b[j].userid
  11538. ) != -1
  11539. ) {
  11540. isGw = 2;
  11541. this.courseGroup.group[groupI].works[i].push(_works);
  11542. break;
  11543. }
  11544. }
  11545. if (isGw == 1) {
  11546. _worksStudent[i].push(_works);
  11547. }
  11548. } else {
  11549. _worksStudent[i].push(_works);
  11550. }
  11551. this.isWorksS[i].push({
  11552. uid: b[j].userid,
  11553. sName: b[j].name,
  11554. });
  11555. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  11556. let _works = {
  11557. userid: b[j].userid,
  11558. ateacher: b[j].ateacher,
  11559. wid: b[j].id,
  11560. works: b[j].content,
  11561. sName: b[j].name,
  11562. type: 0,
  11563. time: b[j].time,
  11564. score: b[j].score,
  11565. img: b[j].img,
  11566. likesCount: likesCount,
  11567. commentCount: commentCount,
  11568. isLikes: isLikes,
  11569. commentJson: commentJson,
  11570. };
  11571. if (this.isGroup) {
  11572. let isGw = 1;
  11573. for (
  11574. var groupI = 0;
  11575. groupI < this.courseGroup.group.length;
  11576. groupI++
  11577. ) {
  11578. let gid = this.courseGroup.group[groupI].id;
  11579. if (
  11580. this.courseGroupStudentUid[gid].indexOf(
  11581. b[j].userid
  11582. ) != -1
  11583. ) {
  11584. isGw = 2;
  11585. this.courseGroup.group[groupI].works[i].push(_works);
  11586. break;
  11587. }
  11588. }
  11589. if (isGw == 1) {
  11590. _worksStudent[i].push(_works);
  11591. }
  11592. } else {
  11593. _worksStudent[i].push(_works);
  11594. }
  11595. this.isWorksS[i].push({
  11596. uid: b[j].userid,
  11597. sName: b[j].name,
  11598. });
  11599. }
  11600. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  11601. let _works = {
  11602. userid: b[j].userid,
  11603. ateacher: b[j].ateacher,
  11604. wid: b[j].id,
  11605. works: b[j].content,
  11606. sName: b[j].name,
  11607. type: 2,
  11608. time: b[j].time,
  11609. score: b[j].score,
  11610. img: b[j].img,
  11611. likesCount: likesCount,
  11612. commentCount: commentCount,
  11613. isLikes: isLikes,
  11614. commentJson: commentJson,
  11615. };
  11616. if (this.isGroup) {
  11617. let isGw = 1;
  11618. for (
  11619. var groupI = 0;
  11620. groupI < this.courseGroup.group.length;
  11621. groupI++
  11622. ) {
  11623. let gid = this.courseGroup.group[groupI].id;
  11624. if (
  11625. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  11626. -1
  11627. ) {
  11628. isGw = 2;
  11629. this.courseGroup.group[groupI].works[i].push(_works);
  11630. break;
  11631. }
  11632. }
  11633. if (isGw == 1) {
  11634. _worksStudent[i].push(_works);
  11635. }
  11636. } else {
  11637. _worksStudent[i].push(_works);
  11638. }
  11639. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11640. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  11641. //问卷
  11642. _worksStudent[i].push({
  11643. userid: b[j].userid,
  11644. ateacher: b[j].ateacher,
  11645. wid: b[j].id,
  11646. works: b[j].content,
  11647. sName: b[j].name,
  11648. type: 2,
  11649. time: b[j].time,
  11650. score: b[j].score,
  11651. img: b[j].img,
  11652. likesCount: likesCount,
  11653. commentCount: commentCount,
  11654. isLikes: isLikes,
  11655. commentJson: commentJson,
  11656. });
  11657. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11658. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  11659. //选择题
  11660. _worksStudent[i].push({
  11661. userid: b[j].userid,
  11662. ateacher: b[j].ateacher,
  11663. wid: b[j].id,
  11664. works: b[j].content,
  11665. sName: b[j].name,
  11666. type: 8,
  11667. time: b[j].time,
  11668. score: b[j].score,
  11669. img: b[j].img,
  11670. likesCount: likesCount,
  11671. commentCount: commentCount,
  11672. isLikes: isLikes,
  11673. commentJson: commentJson,
  11674. });
  11675. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11676. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  11677. //选择题
  11678. _worksStudent[i].push({
  11679. userid: b[j].userid,
  11680. ateacher: b[j].ateacher,
  11681. wid: b[j].id,
  11682. works: b[j].content,
  11683. sName: b[j].name,
  11684. type: 9,
  11685. time: b[j].time,
  11686. score: b[j].score,
  11687. img: b[j].img,
  11688. likesCount: likesCount,
  11689. commentCount: commentCount,
  11690. isLikes: isLikes,
  11691. commentJson: commentJson,
  11692. });
  11693. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11694. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  11695. //选择题
  11696. _worksStudent[i].push({
  11697. userid: b[j].userid,
  11698. ateacher: b[j].ateacher,
  11699. wid: b[j].id,
  11700. works: b[j].content,
  11701. sName: b[j].name,
  11702. type: 10,
  11703. time: b[j].time,
  11704. score: b[j].score,
  11705. img: b[j].img,
  11706. likesCount: likesCount,
  11707. commentCount: commentCount,
  11708. isLikes: isLikes,
  11709. commentJson: commentJson,
  11710. });
  11711. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11712. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  11713. //选择题
  11714. _worksStudent[i].push({
  11715. userid: b[j].userid,
  11716. ateacher: b[j].ateacher,
  11717. wid: b[j].id,
  11718. works: b[j].content,
  11719. sName: b[j].name,
  11720. type: 13,
  11721. time: b[j].time,
  11722. score: b[j].score,
  11723. img: b[j].img,
  11724. likesCount: likesCount,
  11725. commentCount: commentCount,
  11726. isLikes: isLikes,
  11727. commentJson: commentJson,
  11728. });
  11729. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11730. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  11731. let _gindex = JSON.parse(b[j].content);
  11732. if (
  11733. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  11734. b[j].userid
  11735. ) != -1
  11736. ) {
  11737. _worksStudent[i][_gindex.groupIndex].push({
  11738. userid: b[j].userid,
  11739. ateacher: b[j].ateacher,
  11740. wid: b[j].id,
  11741. works: _gindex.url,
  11742. sName: b[j].name,
  11743. type: _gindex.type,
  11744. time: b[j].time,
  11745. score: b[j].score,
  11746. img: b[j].img,
  11747. likesCount: likesCount,
  11748. commentCount: commentCount,
  11749. isLikes: isLikes,
  11750. commentJson: commentJson,
  11751. });
  11752. }
  11753. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11754. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  11755. _worksStudent[i].push({
  11756. userid: b[j].userid,
  11757. ateacher: b[j].ateacher,
  11758. wid: b[j].id,
  11759. works: b[j].content,
  11760. sName: b[j].name ? b[j].name : b[j].userid,
  11761. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  11762. time: b[j].time,
  11763. score: b[j].score,
  11764. img: b[j].img,
  11765. likesCount: likesCount,
  11766. commentCount: commentCount,
  11767. isLikes: isLikes,
  11768. commentJson: commentJson,
  11769. });
  11770. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11771. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  11772. _worksStudent[i].push({
  11773. userid: b[j].userid,
  11774. ateacher: b[j].ateacher,
  11775. wid: b[j].id,
  11776. works: b[j].content,
  11777. sName: b[j].name ? b[j].name : b[j].userid,
  11778. type: 12,
  11779. time: b[j].time,
  11780. score: b[j].score,
  11781. img: b[j].img,
  11782. likesCount: likesCount,
  11783. commentCount: commentCount,
  11784. isLikes: isLikes,
  11785. commentJson: commentJson,
  11786. });
  11787. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11788. } else if (a[i].tool[0] == 57 && b[j].atool == 57) {
  11789. _worksStudent[i].push({
  11790. userid: b[j].userid,
  11791. ateacher: b[j].ateacher,
  11792. wid: b[j].id,
  11793. works: b[j].content,
  11794. sName: b[j].name ? b[j].name : b[j].userid,
  11795. type: 12,
  11796. time: b[j].time,
  11797. score: b[j].score,
  11798. img: b[j].img,
  11799. likesCount: likesCount,
  11800. commentCount: commentCount,
  11801. isLikes: isLikes,
  11802. commentJson: commentJson,
  11803. });
  11804. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  11805. }
  11806. }
  11807. }
  11808. if (_worksStudent[i] && _worksStudent[i].length) {
  11809. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  11810. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  11811. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  11812. var scoreA = parseFloat(jscoreA);
  11813. var scoreB = parseFloat(jscoreB);
  11814. if (scoreA == scoreB) {
  11815. return b.likesCount - a.likesCount;
  11816. }
  11817. return scoreB - scoreA;
  11818. });
  11819. if (this.isGroup) {
  11820. for (
  11821. var groupI = 0;
  11822. groupI < this.courseGroup.group.length;
  11823. groupI++
  11824. ) {
  11825. this.courseGroup.group[groupI].works[i] =
  11826. this.courseGroup.group[groupI].works[i].sort(function (
  11827. a,
  11828. b
  11829. ) {
  11830. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  11831. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  11832. var scoreA = parseFloat(jscoreA);
  11833. var scoreB = parseFloat(jscoreB);
  11834. if (scoreA == scoreB) {
  11835. return b.likesCount - a.likesCount;
  11836. }
  11837. return scoreB - scoreA;
  11838. });
  11839. }
  11840. }
  11841. }
  11842. }
  11843. for (var i = 0; i < a.length; i++) {
  11844. for (var j = 0; j < b.length; j++) {
  11845. var data = b[j];
  11846. if (i == b[j].tool) {
  11847. if (data.type == 2 || data.type == 8) {
  11848. for (var z = 0; z < this.checkJson[i].length; z++) {
  11849. this.checkJson[i][z].checkPerent = [];
  11850. this.checkJson[i][z].right = Math.round(
  11851. (this.checkJson[i][z].rightPerson.length /
  11852. parseInt(_worksStudent[i].length)) *
  11853. 100
  11854. );
  11855. let aaaa = this.checkJson[i][z];
  11856. console.log(aaaa);
  11857. for (
  11858. var k = 0;
  11859. k < this.checkJson[i][z].checkCount.length;
  11860. k++
  11861. ) {
  11862. this.checkJson[i][z].checkPerent.push(
  11863. Math.round(
  11864. (this.checkJson[i][z].checkCount[k] /
  11865. parseInt(_worksStudent[i].length)) *
  11866. 100
  11867. )
  11868. );
  11869. }
  11870. }
  11871. } else if (data.type == 9) {
  11872. for (var z = 0; z < this.checkJson[i].length; z++) {
  11873. this.checkJson[i][z].checkPerent = [];
  11874. this.checkJson[i][z].right = Math.round(
  11875. (this.checkJson[i][z].rightPerson.length /
  11876. this.checkJson[i][z].checkPerson.length) *
  11877. 100
  11878. );
  11879. }
  11880. }
  11881. }
  11882. }
  11883. }
  11884. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  11885. this.joinGroup(gindex);
  11886. }
  11887. this.worksStudent = _worksStudent
  11888. this.selectWorksStudent();
  11889. })
  11890. .catch((err) => {
  11891. console.error(err);
  11892. });
  11893. },
  11894. pngToWhiteBg(file) {
  11895. const _file = file;
  11896. let read = new FileReader();
  11897. read.readAsDataURL(file); // 文件转base64
  11898. return new Promise((resolve, reject) => {
  11899. read.onload = (e) => {
  11900. let img = new Image();
  11901. img.src = e.target.result;
  11902. img.onload = async () => {
  11903. // 生成canvas
  11904. let canvas = document.createElement("canvas");
  11905. let context = canvas.getContext("2d");
  11906. // 绘制图片到canvas上
  11907. canvas.width = img.width;
  11908. canvas.height = img.height;
  11909. // 在canvas绘制前填充白色背景
  11910. context.fillStyle = "#fff";
  11911. context.fillRect(0, 0, canvas.width, canvas.height);
  11912. context.drawImage(img, 0, 0);
  11913. let base64 = canvas.toDataURL(file["type"], 1);
  11914. let newFile = this.dataUrlToFile(base64, _file);
  11915. resolve(newFile);
  11916. };
  11917. };
  11918. });
  11919. },
  11920. dataUrlToFile(dataurl, file) {
  11921. let arr = dataurl.split(","),
  11922. mime = arr[0].match(/:(.*?);/)[1],
  11923. bstr = atob(arr[1]),
  11924. n = bstr.length,
  11925. u8arr = new Uint8Array(n);
  11926. while (n--) {
  11927. u8arr[n] = bstr.charCodeAt(n);
  11928. }
  11929. // return new Blob([u8arr], { type: mime });
  11930. return new File([new Blob([u8arr], { type: mime })], file.name, {
  11931. type: mime,
  11932. });
  11933. },
  11934. async beforeUpload1(event, type, i) {
  11935. // this.$message.success('进入上传')
  11936. var file = "";
  11937. if (type == 5) {
  11938. file = event;
  11939. } else {
  11940. file = event.target.files[0];
  11941. }
  11942. var credentials = {
  11943. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11944. secretAccessKey: "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",
  11945. }; //秘钥形式的登录上传
  11946. window.AWS.config.update(credentials);
  11947. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11948. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  11949. var _this = this;
  11950. _this.progress = 0;
  11951. _this.proVisible = true;
  11952. _this.isFinishSize = 0;
  11953. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  11954. var b = [
  11955. "DOC",
  11956. "DOCX",
  11957. "DOCM",
  11958. "DOTM",
  11959. "DOTX",
  11960. "PPTX",
  11961. "PPSX",
  11962. "PPT",
  11963. "PPS",
  11964. "PPTM",
  11965. "POTM",
  11966. "PPAM",
  11967. "POTX",
  11968. "PPSM",
  11969. ];
  11970. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  11971. var photoA = [
  11972. "BMP",
  11973. "GIF",
  11974. "PNG",
  11975. "JPGE",
  11976. "JPEG",
  11977. "JPG",
  11978. "TIF",
  11979. "PCX",
  11980. "TGA",
  11981. "EXIF",
  11982. "FPX",
  11983. "SVG",
  11984. "APNG",
  11985. ];
  11986. // if (
  11987. // b.indexOf(
  11988. // file.name
  11989. // .split(".")
  11990. // [file.name.split(".").length - 1].toLocaleUpperCase()
  11991. // ) != -1
  11992. // ) {
  11993. // if (file.size / 1024 / 1024 > 10) {
  11994. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  11995. // return;
  11996. // }
  11997. // } else if (
  11998. // excelA.indexOf(
  11999. // file.name
  12000. // .split(".")
  12001. // [file.name.split(".").length - 1].toLocaleUpperCase()
  12002. // ) != "-1"
  12003. // ) {
  12004. // if (file.size / 1024 / 1024 > 5) {
  12005. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  12006. // return;
  12007. // }
  12008. // }
  12009. if (
  12010. photoA.indexOf(
  12011. file.name
  12012. .split(".")
  12013. [file.name.split(".").length - 1].toLocaleUpperCase()
  12014. ) != -1 &&
  12015. type != 4
  12016. ) {
  12017. // const blob = await imageConversion.compress(file, 0.8)
  12018. file = await this.pngToWhiteBg(file);
  12019. const blob = await imageConversion.compressAccurately(file, 256);
  12020. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  12021. file = new File([blob], file.name, { type: file.type });
  12022. }
  12023. if (file) {
  12024. var params = {
  12025. Key:
  12026. file.name.split(".")[0] +
  12027. new Date().getTime() +
  12028. "." +
  12029. file.name.split(".")[file.name.split(".").length - 1],
  12030. ContentType: file.type,
  12031. Body: file,
  12032. "Access-Control-Allow-Credentials": "*",
  12033. ACL: "public-read",
  12034. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  12035. var options = {
  12036. // partSize: 2048 * 1024 * 1024,
  12037. partSize: 1024 * 1024 * 1024,
  12038. queueSize: 2,
  12039. leavePartsOnError: true,
  12040. };
  12041. bucket
  12042. .upload(params, options)
  12043. .on("httpUploadProgress", function (evt) {
  12044. //这里可以写进度条
  12045. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  12046. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  12047. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  12048. })
  12049. .send(function (err, data) {
  12050. _this.progress = 100;
  12051. _this.isFinishSize = _this.isAllSize;
  12052. setTimeout(() => {
  12053. _this.proVisible = false;
  12054. }, 1000);
  12055. if (err) {
  12056. var a = _this.$refs.upload1.uploadFiles;
  12057. a.splice(a.length - 1, a.length);
  12058. _this.$message.error("上传失败");
  12059. } else {
  12060. // _this.$message.success('上传成功')
  12061. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12062. var c = [
  12063. "AVI",
  12064. "NAVI",
  12065. "MPEG",
  12066. "ASF",
  12067. "MOV",
  12068. "WMV",
  12069. "3GP",
  12070. "RM",
  12071. "RMVB",
  12072. "FLV",
  12073. "F4V",
  12074. "H.264",
  12075. "H.265",
  12076. "REAL VIDEO",
  12077. "MKV",
  12078. "WebM",
  12079. "HDDVD",
  12080. "MP4",
  12081. "MPG",
  12082. "M4V",
  12083. "MGV",
  12084. "OGV",
  12085. "QTM",
  12086. "STR",
  12087. "AMC",
  12088. "DVX",
  12089. "EVO",
  12090. "DAT",
  12091. "OGG",
  12092. "OGM",
  12093. ];
  12094. if (type == 1) {
  12095. _this.studyJuri[0].cover.push({
  12096. name: file.name,
  12097. url: data.Location,
  12098. uid: file.uid,
  12099. });
  12100. if (
  12101. c.indexOf(
  12102. _this.studyJuri[0].cover[0].url
  12103. .split(".")
  12104. [
  12105. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12106. ].toLocaleUpperCase()
  12107. ) != -1
  12108. ) {
  12109. _this.fileType = 2;
  12110. } else if (
  12111. b.indexOf(
  12112. _this.studyJuri[0].cover[0].url
  12113. .split(".")
  12114. [
  12115. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12116. ].toLocaleUpperCase()
  12117. ) != -1
  12118. ) {
  12119. _this.fileType = 1;
  12120. } else if (
  12121. photoA.indexOf(
  12122. _this.studyJuri[0].cover[0].url
  12123. .split(".")
  12124. [
  12125. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12126. ].toLocaleUpperCase()
  12127. ) != -1
  12128. ) {
  12129. _this.fileType = 0;
  12130. } else {
  12131. _this.fileType = 3;
  12132. }
  12133. _this.imgChange(null, null, type);
  12134. } else if (type == 2) {
  12135. _this.upToolImg = data.Location;
  12136. _this.imgChange(null, null, type);
  12137. _this.addCourseWorks(i);
  12138. } else if (type == 4) {
  12139. _this.addPz("3", data.Location);
  12140. } else if (type == 5) {
  12141. _this.addImgDrawImG(data.Location);
  12142. } else if (type == 6) {
  12143. var _ftype = 1;
  12144. if (
  12145. c.indexOf(
  12146. data.Location.split(".")[
  12147. data.Location.split(".").length - 1
  12148. ].toLocaleUpperCase()
  12149. ) != -1
  12150. ) {
  12151. _ftype = 5;
  12152. } else if (
  12153. b.indexOf(
  12154. data.Location.split(".")[
  12155. data.Location.split(".").length - 1
  12156. ].toLocaleUpperCase()
  12157. ) != -1
  12158. ) {
  12159. _ftype = 4;
  12160. } else {
  12161. _ftype = 1;
  12162. }
  12163. _this.plworkFile.push({
  12164. name: file.name,
  12165. url: data.Location,
  12166. uid: file.uid,
  12167. fileType: _ftype,
  12168. username:
  12169. _this.plworkFile.length > 10
  12170. ? _this.plworkFile.length + 1
  12171. : "0" + (_this.plworkFile.length + 1),
  12172. });
  12173. } else if (type == 7) {
  12174. _this.addCourseWorksGong(i, data.Location, 32);
  12175. } else if (type == 8) {
  12176. _this.addCourseWorksGong(i, data.Location, 57);
  12177. }
  12178. _this.imgChange(null, null, type);
  12179. console.log(data.Location);
  12180. // _this.$message.success('上传成功'+data.Location)
  12181. }
  12182. });
  12183. }
  12184. },
  12185. async beforeUpload3(event, type, i) {
  12186. // this.$message.success('进入上传')
  12187. let file = "";
  12188. let cfindex2 = 0;
  12189. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  12190. file = event.target.files[cfindex];
  12191. var credentials = {
  12192. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12193. secretAccessKey: "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",
  12194. }; //秘钥形式的登录上传
  12195. window.AWS.config.update(credentials);
  12196. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12197. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  12198. var _this = this;
  12199. // _this.progress = 0;
  12200. _this.proVisible2 = true;
  12201. var b = [
  12202. "DOC",
  12203. "DOCX",
  12204. "DOCM",
  12205. "DOTM",
  12206. "DOTX",
  12207. "PPTX",
  12208. "PPSX",
  12209. "PPT",
  12210. "PPS",
  12211. "PPTM",
  12212. "POTM",
  12213. "PPAM",
  12214. "POTX",
  12215. "PPSM",
  12216. ];
  12217. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  12218. var photoA = [
  12219. "BMP",
  12220. "GIF",
  12221. "PNG",
  12222. "JPGE",
  12223. "JPG",
  12224. "TIF",
  12225. "PCX",
  12226. "TGA",
  12227. "EXIF",
  12228. "FPX",
  12229. "SVG",
  12230. "APNG",
  12231. ];
  12232. if (
  12233. photoA.indexOf(
  12234. file.name
  12235. .split(".")
  12236. [file.name.split(".").length - 1].toLocaleUpperCase()
  12237. ) != -1 &&
  12238. type != 4
  12239. ) {
  12240. // const blob = await imageConversion.compress(file, 0.8)
  12241. file = await this.pngToWhiteBg(file);
  12242. const blob = await imageConversion.compressAccurately(file, 256);
  12243. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  12244. file = new File([blob], file.name, { type: file.type });
  12245. }
  12246. if (file) {
  12247. var params = {
  12248. Key:
  12249. file.name.split(".")[0] +
  12250. new Date().getTime() +
  12251. "." +
  12252. file.name.split(".")[file.name.split(".").length - 1],
  12253. ContentType: file.type,
  12254. Body: file,
  12255. "Access-Control-Allow-Credentials": "*",
  12256. ACL: "public-read",
  12257. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  12258. var options = {
  12259. // partSize: 2048 * 1024 * 1024,
  12260. partSize: 1024 * 1024 * 1024,
  12261. queueSize: 2,
  12262. leavePartsOnError: true,
  12263. };
  12264. bucket
  12265. .upload(params, options)
  12266. .on("httpUploadProgress", function (evt) {
  12267. //这里可以写进度条
  12268. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  12269. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  12270. })
  12271. .send(function (err, data) {
  12272. // _this.progress = 100;
  12273. cfindex2++;
  12274. setTimeout(() => {
  12275. if (
  12276. cfindex2 == event.target.files.length - 1 ||
  12277. cfindex2 > event.target.files.length - 1
  12278. ) {
  12279. _this.proVisible2 = false;
  12280. }
  12281. }, 1000);
  12282. if (err) {
  12283. var a = _this.$refs.upload1.uploadFiles;
  12284. a.splice(a.length - 1, a.length);
  12285. _this.$message.error("上传失败");
  12286. } else {
  12287. // _this.$message.success('上传成功')
  12288. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12289. var c = [
  12290. "AVI",
  12291. "NAVI",
  12292. "MPEG",
  12293. "ASF",
  12294. "MOV",
  12295. "WMV",
  12296. "3GP",
  12297. "RM",
  12298. "RMVB",
  12299. "FLV",
  12300. "F4V",
  12301. "H.264",
  12302. "H.265",
  12303. "REAL VIDEO",
  12304. "MKV",
  12305. "WebM",
  12306. "HDDVD",
  12307. "MP4",
  12308. "MPG",
  12309. "M4V",
  12310. "MGV",
  12311. "OGV",
  12312. "QTM",
  12313. "STR",
  12314. "AMC",
  12315. "DVX",
  12316. "EVO",
  12317. "DAT",
  12318. "OGG",
  12319. "OGM",
  12320. ];
  12321. if (type == 1) {
  12322. _this.studyJuri[0].cover.push({
  12323. name: file.name,
  12324. url: data.Location,
  12325. uid: file.uid,
  12326. });
  12327. if (
  12328. c.indexOf(
  12329. _this.studyJuri[0].cover[0].url
  12330. .split(".")
  12331. [
  12332. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12333. ].toLocaleUpperCase()
  12334. ) != -1
  12335. ) {
  12336. _this.fileType = 2;
  12337. } else if (
  12338. b.indexOf(
  12339. _this.studyJuri[0].cover[0].url
  12340. .split(".")
  12341. [
  12342. _this.studyJuri[0].cover[0].url.split(".").length - 1
  12343. ].toLocaleUpperCase()
  12344. ) != -1
  12345. ) {
  12346. _this.fileType = 1;
  12347. } else {
  12348. _this.fileType = 0;
  12349. }
  12350. _this.imgChange(null, null, type);
  12351. } else if (type == 2) {
  12352. _this.upToolImg = data.Location;
  12353. _this.imgChange(null, null, type);
  12354. _this.addCourseWorks(i);
  12355. } else if (type == 4) {
  12356. _this.addPz("3", data.Location);
  12357. } else if (type == 5) {
  12358. _this.addImgDrawImG(data.Location);
  12359. } else if (type == 6) {
  12360. var _ftype = 1;
  12361. if (
  12362. c.indexOf(
  12363. data.Location.split(".")[
  12364. data.Location.split(".").length - 1
  12365. ].toLocaleUpperCase()
  12366. ) != -1
  12367. ) {
  12368. _ftype = 5;
  12369. } else if (
  12370. b.indexOf(
  12371. data.Location.split(".")[
  12372. data.Location.split(".").length - 1
  12373. ].toLocaleUpperCase()
  12374. ) != -1
  12375. ) {
  12376. _ftype = 4;
  12377. } else {
  12378. _ftype = 1;
  12379. }
  12380. _this.plworkFile.push({
  12381. name: file.name,
  12382. url: data.Location,
  12383. uid: file.uid,
  12384. fileType: _ftype,
  12385. username:
  12386. _this.plworkFile.length + 1 > 9
  12387. ? _this.plworkFile.length + 1
  12388. : "0" + (_this.plworkFile.length + 1),
  12389. });
  12390. }
  12391. _this.imgChange(null, null, type);
  12392. console.log(data.Location);
  12393. // _this.$message.success('上传成功'+data.Location)
  12394. }
  12395. });
  12396. }
  12397. }
  12398. },
  12399. beforeUpload2(event, type) {
  12400. var file = event.target.files[0];
  12401. var credentials = {
  12402. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12403. secretAccessKey: "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",
  12404. }; //秘钥形式的登录上传
  12405. window.AWS.config.update(credentials);
  12406. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12407. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  12408. var _this = this;
  12409. _this.progress = 0;
  12410. _this.proVisible = true;
  12411. if (file) {
  12412. var params = {
  12413. Key:
  12414. file.name.split(".")[0] +
  12415. new Date().getTime() +
  12416. "." +
  12417. file.name.split(".")[file.name.split(".").length - 1],
  12418. ContentType: file.type,
  12419. Body: file,
  12420. "Access-Control-Allow-Credentials": "*",
  12421. ACL: "public-read",
  12422. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  12423. var options = {
  12424. partSize: 2048 * 1024 * 1024,
  12425. queueSize: 2,
  12426. leavePartsOnError: true,
  12427. };
  12428. bucket
  12429. .upload(params, options)
  12430. .on("httpUploadProgress", function (evt) {
  12431. //这里可以写进度条
  12432. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  12433. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  12434. })
  12435. .send(function (err, data) {
  12436. _this.progress = 100;
  12437. setTimeout(() => {
  12438. _this.proVisible = false;
  12439. }, 1000);
  12440. if (err) {
  12441. var a = _this.$refs.upload1.uploadFiles;
  12442. a.splice(a.length - 1, a.length);
  12443. _this.$message.error("上传失败");
  12444. } else {
  12445. if (type == 2) {
  12446. _this.studyJuri[0].upVedio.push({
  12447. name: file.name,
  12448. url: data.Location,
  12449. uid: file.uid,
  12450. });
  12451. _this.imgChange(null, null, type);
  12452. } else if (type == 3) {
  12453. _this.studyJuri[0].upFile.push({
  12454. name: file.name,
  12455. url: data.Location,
  12456. uid: file.uid,
  12457. });
  12458. _this.imgChange(null, null, type);
  12459. }
  12460. console.log(data.Location);
  12461. }
  12462. });
  12463. }
  12464. },
  12465. allScrell() {
  12466. window.parent.postMessage({ allScreen: this.screenType }, "*");
  12467. },
  12468. nextOrpreSteps(t) {
  12469. if (this.IsFollow && this.tType == 2) {
  12470. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  12471. return;
  12472. }
  12473. var b = this.chapInfoList.length - 1;
  12474. if (t == 0) {
  12475. if (this.courseType == 0) {
  12476. if (this.taskCount == 0) {
  12477. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  12478. if (this.IsLookOpen) {
  12479. if (
  12480. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  12481. ) {
  12482. if (
  12483. this.courseDetail.userid != this.userid &&
  12484. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  12485. ) {
  12486. this.$message.error("任务未解锁");
  12487. } else {
  12488. this.$message.error("上一任务未解锁");
  12489. }
  12490. return;
  12491. }
  12492. }
  12493. this.navList[this.courseType].isOpen = false;
  12494. this.courseType = b;
  12495. this.taskCount =
  12496. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  12497. .length - 1;
  12498. this.navList[this.courseType].isOpen = true;
  12499. } else {
  12500. this.taskCount--;
  12501. }
  12502. } else {
  12503. if (this.taskCount == 0) {
  12504. this.navList[this.courseType].isOpen = false;
  12505. this.courseType--;
  12506. this.taskCount =
  12507. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  12508. .length - 1;
  12509. this.navList[this.courseType].isOpen = true;
  12510. } else {
  12511. this.taskCount--;
  12512. }
  12513. }
  12514. } else {
  12515. if (this.courseType == b) {
  12516. if (
  12517. this.taskCount ==
  12518. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  12519. 1
  12520. ) {
  12521. this.navList[this.courseType].isOpen = false;
  12522. this.courseType = 0;
  12523. this.taskCount = 0;
  12524. this.navList[this.courseType].isOpen = true;
  12525. } else {
  12526. var bbb = parseInt(this.taskCount) + 1;
  12527. if (
  12528. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  12529. .isLook &&
  12530. this.courseDetail.userid != this.userid &&
  12531. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  12532. this.IsLookOpen
  12533. ) {
  12534. this.$message.error("任务未解锁");
  12535. return;
  12536. }
  12537. this.taskCount++;
  12538. if (this.IsLookOpen) {
  12539. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12540. this.taskCount
  12541. ].isLook = true;
  12542. this.addCourseState(3);
  12543. }
  12544. }
  12545. } else {
  12546. if (
  12547. this.taskCount ==
  12548. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  12549. 1
  12550. ) {
  12551. var bbb = parseInt(this.courseType) + 1;
  12552. if (
  12553. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  12554. this.courseDetail.userid != this.userid &&
  12555. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  12556. this.IsLookOpen
  12557. ) {
  12558. this.$message.error("任务未解锁");
  12559. return;
  12560. }
  12561. this.navList[this.courseType].isOpen = false;
  12562. this.courseType++;
  12563. this.taskCount = 0;
  12564. this.navList[this.courseType].isOpen = true;
  12565. } else {
  12566. var bbb = parseInt(this.taskCount) + 1;
  12567. if (
  12568. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  12569. .isLook &&
  12570. this.courseDetail.userid != this.userid &&
  12571. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  12572. this.IsLookOpen
  12573. ) {
  12574. this.$message.error("任务未解锁");
  12575. return;
  12576. }
  12577. this.taskCount++;
  12578. }
  12579. if (this.IsLookOpen) {
  12580. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12581. this.taskCount
  12582. ].isLook = true;
  12583. this.addCourseState(3);
  12584. }
  12585. }
  12586. // if (
  12587. // this.taskCount ==
  12588. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  12589. // ) {
  12590. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  12591. // } else {
  12592. // this.taskCount++;
  12593. // }
  12594. }
  12595. document.scrollingElement.scrollTop = 0;
  12596. this.showType = 0;
  12597. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  12598. // if (this.vedio[this.taskCount].length > 0) {
  12599. // var a =
  12600. // document.getElementsByClassName("box_course")[this.taskCount]
  12601. // .offsetHeight;
  12602. // document.getElementsByClassName("vedioList")[
  12603. // this.taskCount
  12604. // ].style.height = a + "px";
  12605. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  12606. // a - 40 + "px";
  12607. // }
  12608. this.isNoHomeWork = false;
  12609. (this.studyJuri = [
  12610. {
  12611. content: "",
  12612. cover: [],
  12613. upVedio: [],
  12614. upFile: [],
  12615. },
  12616. ]),
  12617. (this.radio = []);
  12618. this.isClickNav = "";
  12619. this.selectPz();
  12620. this.getHomeWork();
  12621. this.getCourseDetail(2);
  12622. this.$forceUpdate();
  12623. },
  12624. openTask(s, n, i) {
  12625. if (this.IsFollow && this.tType == 2) {
  12626. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  12627. return;
  12628. }
  12629. if (this.IsLookOpen) {
  12630. if (
  12631. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  12632. this.courseDetail.userid != this.userid &&
  12633. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  12634. ) {
  12635. this.$message.error("任务未解锁");
  12636. return;
  12637. }
  12638. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  12639. if (
  12640. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  12641. .isLook
  12642. ) {
  12643. this.$message.error("上一任务未解锁");
  12644. return;
  12645. }
  12646. } else if (s > this.courseType) {
  12647. if (n > 0) {
  12648. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  12649. this.$message.error("上一任务未解锁");
  12650. return;
  12651. }
  12652. } else {
  12653. if (
  12654. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  12655. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  12656. ].isLook
  12657. ) {
  12658. this.$message.error("上一任务未解锁");
  12659. return;
  12660. }
  12661. }
  12662. }
  12663. }
  12664. this.courseType = s;
  12665. this.navId = i;
  12666. this.taskCount = n;
  12667. if (this.IsLookOpen) {
  12668. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12669. this.taskCount
  12670. ].isLook = true;
  12671. this.addCourseState(3);
  12672. }
  12673. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  12674. this.isCloseList[ci].isClose = 0;
  12675. }
  12676. this.showType = 0;
  12677. this.isNoHomeWork = false;
  12678. (this.studyJuri = [
  12679. {
  12680. content: "",
  12681. cover: [],
  12682. upVedio: [],
  12683. upFile: [],
  12684. },
  12685. ]),
  12686. (this.radio = []);
  12687. document.scrollingElement.scrollTop = 0;
  12688. // setTimeout(() => {
  12689. // let a = document.getElementById(i);
  12690. // if (a.offsetTop - 110 == 0) {
  12691. // window.scrollTo(0, 0);
  12692. // } else {
  12693. // window.scrollTo(0, a.offsetTop);
  12694. // }
  12695. // }, 0);
  12696. this.selectPz();
  12697. this.getHomeWork();
  12698. this.getCourseDetail(2);
  12699. },
  12700. get(i) {
  12701. if (this.IsFollow && this.tType == 2) {
  12702. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  12703. return;
  12704. }
  12705. this.navList[i].isOpen = !this.navList[i].isOpen;
  12706. },
  12707. addQuestion() {
  12708. this.answerList.push({
  12709. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  12710. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  12711. });
  12712. let params = [
  12713. {
  12714. uid: this.userid,
  12715. cid: this.id,
  12716. stage: this.courseType,
  12717. task: this.taskCount,
  12718. tool: this.toolindex,
  12719. content: JSON.stringify(this.answerList),
  12720. type: 3,
  12721. },
  12722. ];
  12723. this.ajax
  12724. .post(this.$store.state.api + "addCourseWorks", params)
  12725. .then((res) => {
  12726. this.$message({
  12727. message: "提交成功",
  12728. type: "success",
  12729. });
  12730. this.answerList = [];
  12731. this.answerDialogVisible = false;
  12732. this.selectStudent();
  12733. this.selectSWorks();
  12734. this.selectSLook();
  12735. })
  12736. .catch((err) => {
  12737. this.$message.error("提交失败");
  12738. console.error(err);
  12739. });
  12740. },
  12741. addQuestionTeacher() {
  12742. this.answerList.push({
  12743. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  12744. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  12745. });
  12746. let params = [
  12747. {
  12748. uid: this.sStudent.userid,
  12749. cid: this.id,
  12750. stage: this.courseType,
  12751. task: this.taskCount,
  12752. tool: this.toolindex,
  12753. content: JSON.stringify(this.answerList),
  12754. type: 3,
  12755. ateacher: this.userid,
  12756. },
  12757. ];
  12758. this.ajax
  12759. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12760. .then((res) => {
  12761. this.$message({
  12762. message: "提交成功",
  12763. type: "success",
  12764. });
  12765. this.answerList = [];
  12766. this.questionAnswer = "";
  12767. this.answerDialogVisibleTeacher = false;
  12768. this.selectStudent();
  12769. this.selectSWorks();
  12770. this.selectSLook();
  12771. })
  12772. .catch((err) => {
  12773. this.$message.error("提交失败");
  12774. console.error(err);
  12775. });
  12776. },
  12777. refreshCourse(){
  12778. // window.location.reload();
  12779. this.navList = [];
  12780. this.getCourseDetail(1)
  12781. },
  12782. getCourseDetail(type, gindex) {
  12783. let loading;
  12784. if (type != 2) {
  12785. loading = this.$loading.service({
  12786. background: "rgba(255, 255, 255, 0.7)",
  12787. target: document.querySelector(".student_table"),
  12788. });
  12789. }
  12790. // this.navList[0].isOpen = false;
  12791. // this.navList[this.courseType].isOpen = true;
  12792. // this.courseType = this.courseTypeLine;
  12793. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  12794. let params = {
  12795. courseId: this.id,
  12796. };
  12797. this.ajax
  12798. .get(this.$store.state.api + "selectCourseDetail3", params)
  12799. .then((res) => {
  12800. if (type != 2) {
  12801. loading.close();
  12802. if (
  12803. this.courseType >
  12804. JSON.parse(res.data[0][0].chapters).length - 1
  12805. ) {
  12806. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  12807. }
  12808. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  12809. .chapterInfo[0].taskJson;
  12810. var b = [
  12811. "AVI",
  12812. "NAVI",
  12813. "MPEG",
  12814. "ASF",
  12815. "MOV",
  12816. "WMV",
  12817. "3GP",
  12818. "RM",
  12819. "RMVB",
  12820. "FLV",
  12821. "F4V",
  12822. "H.264",
  12823. "H.265",
  12824. "REAL VIDEO",
  12825. "MKV",
  12826. "WebM",
  12827. "HDDVD",
  12828. "MP4",
  12829. "MPG",
  12830. "M4V",
  12831. "MGV",
  12832. "OGV",
  12833. "QTM",
  12834. "STR",
  12835. "AMC",
  12836. "DVX",
  12837. "EVO",
  12838. "DAT",
  12839. "OGG",
  12840. "OGM",
  12841. "MP3",
  12842. ];
  12843. for (var i = 0; i < a.length; i++) {
  12844. var c = a[i].chapterData;
  12845. this.vedio[i] = [];
  12846. this.textList[i] = [];
  12847. this.lineList[i] = [];
  12848. this.chapToolList[i] = [];
  12849. this.file[i] = [];
  12850. this.fileC[i] = [];
  12851. for (var j = 0; j < c.length; j++) {
  12852. if (c[j].type == 7) {
  12853. this.chapToolList[i].push(c[j]);
  12854. } else if (c[j].type == 8) {
  12855. this.lineList[i].push(c[j]);
  12856. } else if (c[j].type == 6) {
  12857. this.textList[i].push(c[j]);
  12858. } else if (c[j].type == 12) {
  12859. this.fileC[i].push(c[j]);
  12860. } else {
  12861. if (
  12862. b.indexOf(
  12863. c[j].url
  12864. .split(".")
  12865. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  12866. ) != -1
  12867. ) {
  12868. this.vedio[i].push(c[j]);
  12869. } else {
  12870. this.file[i].push(c[j]);
  12871. }
  12872. }
  12873. }
  12874. var d = JSON.parse(JSON.stringify(this.playerOptions));
  12875. d.sources[0].src =
  12876. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  12877. this.playerO[i] = d;
  12878. }
  12879. this.courseDetail = res.data[0][0];
  12880. this.tcid = this.arrayToArray(
  12881. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  12882. this.tcid2 ? this.tcid2.split(",") : []
  12883. ).join(",");
  12884. console.log(this.tcid);
  12885. this.evalua = res.data[0][0].evaId;
  12886. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  12887. this.courseType
  12888. ];
  12889. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  12890. if (this.tcid && res.data[1].length) {
  12891. let _inviteA = [];
  12892. for (var ik = 0; ik < res.data[1].length; ik++) {
  12893. _inviteA.push({
  12894. cid: res.data[1][ik].classid,
  12895. ic: res.data[1][ik].code,
  12896. });
  12897. }
  12898. for (var ik = 0; ik < _inviteA.length; ik++) {
  12899. if (
  12900. this.arrayToArray(
  12901. _inviteA[ik].cid.split(","),
  12902. this.tcid.split(",")
  12903. ).length
  12904. ) {
  12905. this.inviteCode = _inviteA[ik].ic;
  12906. break;
  12907. }
  12908. }
  12909. }
  12910. for (var l = 0; l < this.chapInfoList.length; l++) {
  12911. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  12912. for (var m = 0; m < w.length; m++) {
  12913. w[m].id = l + "-" + m;
  12914. }
  12915. }
  12916. if (
  12917. !this.vedio[this.taskCount][0] ||
  12918. this.vedio[this.taskCount][0].url == ""
  12919. ) {
  12920. if (
  12921. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12922. this.taskCount
  12923. ].chapterData.length > 0
  12924. ) {
  12925. // if (
  12926. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12927. // this.taskCount
  12928. // ].chapterData[0].type != 8
  12929. // ) {
  12930. let _url =
  12931. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12932. this.taskCount
  12933. ].chapterData[0].url;
  12934. if (
  12935. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12936. this.taskCount
  12937. ].chapterData[0].type == 8
  12938. ) {
  12939. this.showType = 2;
  12940. if (
  12941. _url.indexOf("https://") == -1 &&
  12942. _url.indexOf("http://") == -1
  12943. ) {
  12944. _url = "https://" + _url;
  12945. }
  12946. this.pptImgUrl1 = _url;
  12947. this.isClickNav = "line0";
  12948. } else if (
  12949. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12950. this.taskCount
  12951. ].chapterData[0].type == 3
  12952. ) {
  12953. if (
  12954. _url
  12955. .split(".")
  12956. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12957. ) {
  12958. this.showType = 3;
  12959. this.pptImgUrl1 = _url;
  12960. this.isClickNav = "word0";
  12961. } else if (
  12962. this.isAssetTypeAnImage(
  12963. _url
  12964. .split(".")
  12965. [_url.split(".").length - 1].toLocaleLowerCase()
  12966. )
  12967. ) {
  12968. this.showType = 4;
  12969. this.pptImgUrl1 = _url;
  12970. this.isClickNav = "word0";
  12971. } else {
  12972. this.showType = 2;
  12973. this.pptImgUrl1 =
  12974. "https://view.officeapps.live.com/op/view.aspx?src=" +
  12975. _url;
  12976. this.isClickNav = "word0";
  12977. }
  12978. } else if (
  12979. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12980. this.taskCount
  12981. ].chapterData[0].type == 6
  12982. ) {
  12983. this.showType = 1;
  12984. this.text = this.textList[this.taskCount][0];
  12985. this.isClickNav = "text0";
  12986. }
  12987. }
  12988. } else {
  12989. this.showType = 0;
  12990. this.isClickNav = "video0";
  12991. }
  12992. } else {
  12993. this.showType = 0;
  12994. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  12995. .chapterInfo[0].taskJson;
  12996. var b = [
  12997. "AVI",
  12998. "NAVI",
  12999. "MPEG",
  13000. "ASF",
  13001. "MOV",
  13002. "WMV",
  13003. "3GP",
  13004. "RM",
  13005. "RMVB",
  13006. "FLV",
  13007. "F4V",
  13008. "H.264",
  13009. "H.265",
  13010. "REAL VIDEO",
  13011. "MKV",
  13012. "WebM",
  13013. "HDDVD",
  13014. "MP4",
  13015. "MPG",
  13016. "M4V",
  13017. "MGV",
  13018. "OGV",
  13019. "QTM",
  13020. "STR",
  13021. "AMC",
  13022. "DVX",
  13023. "EVO",
  13024. "DAT",
  13025. "OGG",
  13026. "OGM",
  13027. "MP3",
  13028. ];
  13029. for (var i = 0; i < a.length; i++) {
  13030. var c = a[i].chapterData;
  13031. this.vedio[i] = [];
  13032. this.textList[i] = [];
  13033. this.lineList[i] = [];
  13034. this.chapToolList[i] = [];
  13035. this.file[i] = [];
  13036. this.fileC[i] = [];
  13037. for (var j = 0; j < c.length; j++) {
  13038. if (c[j].type == 7) {
  13039. this.chapToolList[i].push(c[j]);
  13040. } else if (c[j].type == 8) {
  13041. this.lineList[i].push(c[j]);
  13042. } else if (c[j].type == 6) {
  13043. this.textList[i].push(c[j]);
  13044. } else if (c[j].type == 12) {
  13045. this.fileC[i].push(c[j]);
  13046. } else {
  13047. if (
  13048. b.indexOf(
  13049. c[j].url
  13050. .split(".")
  13051. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  13052. ) != -1
  13053. ) {
  13054. this.vedio[i].push(c[j]);
  13055. } else {
  13056. this.file[i].push(c[j]);
  13057. }
  13058. }
  13059. }
  13060. var d = JSON.parse(JSON.stringify(this.playerOptions));
  13061. d.sources[0].src =
  13062. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  13063. this.playerO[i] = d;
  13064. }
  13065. if (
  13066. !this.vedio[this.taskCount][0] ||
  13067. this.vedio[this.taskCount][0].url == ""
  13068. ) {
  13069. if (
  13070. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13071. this.taskCount
  13072. ].chapterData.length > 0
  13073. ) {
  13074. // if (
  13075. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13076. // this.taskCount
  13077. // ].chapterData[0].type != 8
  13078. // ) {
  13079. let _url =
  13080. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13081. this.taskCount
  13082. ].chapterData[0].url;
  13083. if (
  13084. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13085. this.taskCount
  13086. ].chapterData[0].type == 8
  13087. ) {
  13088. this.showType = 2;
  13089. if (
  13090. _url.indexOf("https://") == -1 &&
  13091. _url.indexOf("http://") == -1
  13092. ) {
  13093. _url = "https://" + _url;
  13094. }
  13095. this.pptImgUrl1 = _url;
  13096. this.isClickNav = "line0";
  13097. } else if (
  13098. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13099. this.taskCount
  13100. ].chapterData[0].type == 3
  13101. ) {
  13102. if (
  13103. _url
  13104. .split(".")
  13105. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13106. ) {
  13107. this.showType = 3;
  13108. this.pptImgUrl1 = _url;
  13109. this.isClickNav = "word0";
  13110. } else if (
  13111. this.isAssetTypeAnImage(
  13112. _url
  13113. .split(".")
  13114. [_url.split(".").length - 1].toLocaleLowerCase()
  13115. )
  13116. ) {
  13117. this.showType = 4;
  13118. this.pptImgUrl1 = _url;
  13119. this.isClickNav = "word0";
  13120. } else {
  13121. this.showType = 2;
  13122. this.pptImgUrl1 =
  13123. "https://view.officeapps.live.com/op/view.aspx?src=" +
  13124. _url;
  13125. this.isClickNav = "word0";
  13126. }
  13127. } else if (
  13128. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13129. this.taskCount
  13130. ].chapterData[0].type == 6
  13131. ) {
  13132. this.showType = 1;
  13133. this.text = this.textList[this.taskCount][0];
  13134. this.isClickNav = "text0";
  13135. }
  13136. }
  13137. } else {
  13138. this.showType = 0;
  13139. this.isClickNav = "video0";
  13140. }
  13141. this.$forceUpdate();
  13142. }
  13143. // else {
  13144. // this.courseDetail = res.data[0][0];
  13145. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  13146. // }
  13147. let _this = this;
  13148. if (_this.timer) {
  13149. clearInterval(_this.timer);
  13150. _this.timer = null;
  13151. }
  13152. if (_this.tcid) {
  13153. _this.getCourseGroup(gindex);
  13154. } else {
  13155. _this.selectSWorks(gindex);
  13156. }
  13157. _this.selectStudent();
  13158. _this.selectSLook();
  13159. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  13160. _this.setCTask();
  13161. }
  13162. if (_this.dialogVisibleGroup) {
  13163. _this.groupJson =
  13164. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  13165. _this.taskCount
  13166. ].toolChoose[_this.toolindex].groupJson;
  13167. }
  13168. _this.$nextTick(() => {
  13169. setTimeout(() => {
  13170. _this.checkEva();
  13171. }, 1000);
  13172. });
  13173. _this.timer = setInterval(function () {
  13174. // _this.getCourseDetail(2);
  13175. if (_this.tcid) {
  13176. _this.getCourseGroup(gindex);
  13177. } else {
  13178. _this.selectSWorks(gindex);
  13179. }
  13180. _this.selectStudent();
  13181. _this.selectSLook();
  13182. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  13183. _this.setCTask();
  13184. }
  13185. if (_this.dialogVisibleGroup) {
  13186. _this.groupJson =
  13187. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  13188. _this.taskCount
  13189. ].toolChoose[_this.toolindex].groupJson;
  13190. }
  13191. if (_this.tType == 4 || _this.ispzType == 4) {
  13192. _this.selectPz();
  13193. }
  13194. }, 5000);
  13195. _this.$nextTick(function () {
  13196. setTimeout(() => {
  13197. // var a =
  13198. // document.getElementsByClassName("box_course")[0].offsetHeight;
  13199. // document.getElementsByClassName("vedioList")[0].style.height =
  13200. // a + "px";
  13201. // document.getElementsByClassName("navBox")[0].style.height =
  13202. // a - 40 + "px";
  13203. // if (_this.vedio[_this.taskCount].length > 0) {
  13204. // _this.vedioTime = [];
  13205. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  13206. // _this.vedioTime[i] = document.getElementsByClassName(
  13207. // "vjs-duration-display"
  13208. // )[i].textContent;
  13209. // }
  13210. // }
  13211. }, 1000);
  13212. });
  13213. })
  13214. .catch((err) => {
  13215. loading.close();
  13216. console.error(err);
  13217. });
  13218. },
  13219. getCourseGroup(gindex) {
  13220. let params = {
  13221. cid: this.id,
  13222. classid: this.tcid ? this.tcid : "1",
  13223. };
  13224. this.ajax
  13225. .get(this.$store.state.api + "getCourseGroup", params)
  13226. .then((res) => {
  13227. if (res.data && res.data[0].length) {
  13228. if (!this.isGroup) {
  13229. let courseGroup = JSON.parse(res.data[0][0].group);
  13230. courseGroup.group = courseGroup.group.filter((el) => {
  13231. el.works = [];
  13232. return el;
  13233. });
  13234. this.courseGroup = courseGroup;
  13235. let groupPerson = res.data[1];
  13236. let group = JSON.parse(res.data[0][0].group).group;
  13237. let courseGroupStudent = {};
  13238. let courseGroupStudentUid = {};
  13239. for (var i = 0; i < group.length; i++) {
  13240. courseGroupStudent[group[i].id] = [];
  13241. courseGroupStudentUid[group[i].id] = [];
  13242. for (var j = 0; j < groupPerson.length; j++) {
  13243. if (groupPerson[j].groupCid == group[i].id) {
  13244. courseGroupStudent[group[i].id].push(groupPerson[j]);
  13245. courseGroupStudentUid[group[i].id].push(
  13246. groupPerson[j].userid
  13247. );
  13248. }
  13249. }
  13250. }
  13251. this.courseGroupStudent = courseGroupStudent;
  13252. this.courseGroupStudentUid = courseGroupStudentUid;
  13253. }
  13254. this.isGroup = true;
  13255. this.selectSWorks(gindex);
  13256. } else {
  13257. this.selectSWorks(gindex);
  13258. this.isGroup = false;
  13259. }
  13260. })
  13261. .catch((err) => {
  13262. // this.$message.error("网络不佳");
  13263. console.error(err);
  13264. });
  13265. },
  13266. setOperationTime() {
  13267. let _this = this;
  13268. if (_this.opertimer) {
  13269. clearInterval(_this.opertimer);
  13270. _this.opertimer = null;
  13271. }
  13272. _this.opertimer = setInterval(() => {
  13273. _this.setoTime("600");
  13274. }, 600000);
  13275. },
  13276. setoTime(time) {
  13277. let params = [
  13278. {
  13279. uid: this.userid,
  13280. cid: this.id,
  13281. type: "2",
  13282. time: time,
  13283. },
  13284. ];
  13285. this.ajax
  13286. .post(this.$store.state.api + "addOperationTimeT2", params)
  13287. .then((res) => {})
  13288. .catch((err) => {
  13289. console.error(err);
  13290. });
  13291. },
  13292. addPz(type, content) {
  13293. if (type == "1" && this.pzConText == "") {
  13294. this.$message.error("批注不能为空!");
  13295. return;
  13296. }
  13297. let params = [
  13298. {
  13299. cid: this.id,
  13300. uid: this.userid,
  13301. s: this.courseType,
  13302. t: this.taskCount,
  13303. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  13304. type: type,
  13305. },
  13306. ];
  13307. this.ajax
  13308. .post(this.$store.state.api + "addPz2", params)
  13309. .then((res) => {
  13310. this.$message({
  13311. message: "添加成功",
  13312. type: "success",
  13313. });
  13314. this.pzConText = "";
  13315. this.addPzDialog = false;
  13316. this.selectPz();
  13317. })
  13318. .catch((err) => {
  13319. this.$message.error("添加失败");
  13320. console.error(err);
  13321. });
  13322. },
  13323. deletePz(id) {
  13324. this.$confirm("确定删除此批注吗?", "提示", {
  13325. confirmButtonText: "确定",
  13326. cancelButtonText: "取消",
  13327. type: "warning",
  13328. })
  13329. .then(() => {
  13330. let params = [
  13331. {
  13332. id: id,
  13333. },
  13334. ];
  13335. this.ajax
  13336. .post(this.$store.state.api + "deletePz", params)
  13337. .then((res) => {
  13338. this.$message({
  13339. message: "删除成功",
  13340. type: "success",
  13341. });
  13342. this.selectPz();
  13343. })
  13344. .catch((err) => {
  13345. this.$message.error("网络异常");
  13346. console.error(err);
  13347. });
  13348. })
  13349. .catch(() => {});
  13350. },
  13351. setPz(){
  13352. if(this.ispzType == 4){
  13353. this.ispzType = 0
  13354. this.pzDialog = false
  13355. return;
  13356. }
  13357. this.ispzType = 4
  13358. this.pzDialog = true
  13359. this.selectPz();
  13360. },
  13361. selectPz() {
  13362. let params = {
  13363. cid: this.id,
  13364. s: this.courseType,
  13365. t: this.taskCount,
  13366. };
  13367. this.ajax
  13368. .get(this.$store.state.api + "selectPzList", params)
  13369. .then((res) => {
  13370. this.pzList = res.data[0];
  13371. })
  13372. .catch((err) => {
  13373. console.error(err);
  13374. });
  13375. },
  13376. updateSLook() {
  13377. let params = {
  13378. sopen: this.sIsOpen == false ? 1 : 2,
  13379. cid: this.id,
  13380. };
  13381. this.ajax
  13382. .get(this.$store.state.api + "updateCourseSLook", params)
  13383. .then((res) => {
  13384. if (this.sIsOpen == true) {
  13385. this.$message({
  13386. message: "权限设置成功",
  13387. type: "success",
  13388. });
  13389. } else {
  13390. this.$message({
  13391. message: "权限关闭成功",
  13392. type: "success",
  13393. });
  13394. }
  13395. })
  13396. .catch((err) => {
  13397. console.error(err);
  13398. });
  13399. },
  13400. updateFollow() {
  13401. let params = [
  13402. {
  13403. sopen: this.IsFollow == false ? 1 : 2,
  13404. cid: this.id,
  13405. },
  13406. ];
  13407. this.ajax
  13408. .post(this.$store.state.api + "updateCourseFollow", params)
  13409. .then((res) => {
  13410. if (this.IsFollow == true) {
  13411. this.$message({
  13412. message: "开启成功",
  13413. type: "success",
  13414. });
  13415. } else {
  13416. this.$message({
  13417. message: "关闭成功",
  13418. type: "success",
  13419. });
  13420. }
  13421. this.setCTask();
  13422. })
  13423. .catch((err) => {
  13424. console.error(err);
  13425. });
  13426. },
  13427. setCTask() {
  13428. let params = [
  13429. {
  13430. sopen: this.courseType + "-" + this.taskCount,
  13431. cid: this.id,
  13432. },
  13433. ];
  13434. this.ajax
  13435. .post(this.$store.state.api + "updateCourseFollowC", params)
  13436. .then((res) => {})
  13437. .catch((err) => {
  13438. console.error(err);
  13439. });
  13440. },
  13441. updateLookOpen() {
  13442. let params = [
  13443. {
  13444. sopen: this.IsLookOpen == false ? 1 : 2,
  13445. cid: this.id,
  13446. },
  13447. ];
  13448. this.ajax
  13449. .post(this.$store.state.api + "updateCourseLookOpen", params)
  13450. .then((res) => {
  13451. if (this.IsLookOpen == true) {
  13452. // if (this.courseType != 0 && this.taskCount != 0) {
  13453. // this.openTask(0, 0, "0-0");
  13454. // }
  13455. this.$message({
  13456. message: "权限设置成功",
  13457. type: "success",
  13458. });
  13459. } else {
  13460. this.$message({
  13461. message: "权限关闭成功",
  13462. type: "success",
  13463. });
  13464. }
  13465. this.getCourseState(2);
  13466. })
  13467. .catch((err) => {
  13468. console.error(err);
  13469. });
  13470. },
  13471. selectSLook() {
  13472. let params = {
  13473. cid: this.id,
  13474. };
  13475. this.ajax
  13476. .get(this.$store.state.api + "selectCourseSLook", params)
  13477. .then((res) => {
  13478. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  13479. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  13480. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  13481. if (!this.IsLookOpen) {
  13482. this.setNavList();
  13483. } else {
  13484. this.getCourseState(1);
  13485. }
  13486. if (this.IsFollow && this.tType == 2) {
  13487. this.setContent2(false);
  13488. let _followC = res.data[0][0].followC.split("-");
  13489. if (
  13490. this.courseType != _followC[0] ||
  13491. this.taskCount != _followC[1]
  13492. ) {
  13493. this.navList[this.courseType].isOpen = false;
  13494. this.courseType = _followC[0];
  13495. this.navList[this.courseType].isOpen = true;
  13496. this.taskCount = parseInt(_followC[1]);
  13497. this.navId = res.data[0][0].followC;
  13498. document.scrollingElement.scrollTop = 0;
  13499. this.getCourseDetail(2);
  13500. }
  13501. }
  13502. })
  13503. .catch((err) => {
  13504. console.error(err);
  13505. });
  13506. },
  13507. setNavList() {
  13508. if (this.navList.length == 0) {
  13509. this.navList = [];
  13510. for (var l = 0; l < this.chapInfoList.length; l++) {
  13511. var q = this.chapInfoList[l].dyName;
  13512. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  13513. var e;
  13514. this.navList.push({
  13515. dyName: q,
  13516. isOpen: l === 0 ? true : false,
  13517. task: [],
  13518. });
  13519. for (var r = 0; r < w.length; r++) {
  13520. e = w[r].task;
  13521. if (this.chapInfoList[l].easy == 1) {
  13522. this.navList[l].task.push({
  13523. taskName: q,
  13524. id: l + "-" + r,
  13525. isLook: w[r].isLook,
  13526. });
  13527. } else {
  13528. this.navList[l].task.push({
  13529. taskName: e,
  13530. id: l + "-" + r,
  13531. isLook: w[r].isLook,
  13532. });
  13533. }
  13534. // this.navId = this.navId ? this.navId : l + "-" + r;
  13535. // this.navId = l + "-" + r;
  13536. }
  13537. }
  13538. this.navList[0].isOpen = false;
  13539. this.navList[this.courseType].isOpen = true;
  13540. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  13541. } else {
  13542. this.setNavList2();
  13543. }
  13544. },
  13545. setNavList2() {
  13546. for (var l = 0; l < this.chapInfoList.length; l++) {
  13547. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  13548. for (var r = 0; r < w.length; r++) {
  13549. this.navList[l].task[r].isLook = w[r].isLook;
  13550. }
  13551. }
  13552. if (
  13553. this.IsLookOpen &&
  13554. !this.navList[this.courseType].task[this.taskCount].isLook
  13555. ) {
  13556. this.openTask(0, 0, "0-0");
  13557. }
  13558. this.$forceUpdate();
  13559. },
  13560. getCourseState(type) {
  13561. let params = {
  13562. cid: this.id,
  13563. };
  13564. this.ajax
  13565. .get(this.$store.state.api + "getCourseState", params)
  13566. .then((res) => {
  13567. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  13568. this.chapInfoList = JSON.parse(res.data[0][0].state);
  13569. this.setNavList();
  13570. this.$forceUpdate();
  13571. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  13572. this.addCourseState(2);
  13573. } else {
  13574. this.addCourseState(1);
  13575. }
  13576. })
  13577. .catch((err) => {
  13578. console.error(err);
  13579. });
  13580. },
  13581. addCourseState(type) {
  13582. let _state = this.chapInfoList;
  13583. // this.courseType this.taskCount
  13584. if (type == 1 || type == 2) {
  13585. for (var i = 0; i < _state.length; i++) {
  13586. let el = _state[i].chapterInfo[0].taskJson;
  13587. for (var j = 0; j < el.length; j++) {
  13588. // if (i == 0 && j == 0) {
  13589. // el[j].isLook = true;
  13590. // } else {
  13591. // el[j].isLook = false;
  13592. // }
  13593. if (
  13594. this.courseType > i ||
  13595. (this.courseType == i && this.taskCount + 1 > j)
  13596. ) {
  13597. el[j].isLook = true;
  13598. } else {
  13599. el[j].isLook = false;
  13600. }
  13601. }
  13602. }
  13603. }
  13604. let params = [
  13605. {
  13606. cid: this.id,
  13607. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  13608. },
  13609. ];
  13610. this.ajax
  13611. .post(
  13612. this.$store.state.api +
  13613. (type == 1 ? "addCourseState" : "updateCourseSate"),
  13614. params
  13615. )
  13616. .then((res) => {
  13617. if (this.IsLookOpen) {
  13618. this.setNavList();
  13619. }
  13620. if (type == 3 && type == 2) {
  13621. this.getCourseState(1);
  13622. }
  13623. })
  13624. .catch((err) => {
  13625. console.error(err);
  13626. });
  13627. },
  13628. getHomeWork() {
  13629. let params = {
  13630. cid: this.id,
  13631. stage: this.courseType,
  13632. task: this.taskCount,
  13633. uid: this.userid,
  13634. };
  13635. this.ajax
  13636. .get(this.$store.state.api + "selectWork", params)
  13637. .then((res) => {
  13638. if (res.data[0].length > 0) {
  13639. this.studyJuri = JSON.parse(res.data[0][0].content);
  13640. this.isNoHomeWork = true;
  13641. }
  13642. })
  13643. .catch((err) => {
  13644. console.error(err);
  13645. });
  13646. },
  13647. isAssetTypeAnImage(ext) {
  13648. return (
  13649. [
  13650. "png",
  13651. "jpg",
  13652. "jpeg",
  13653. "bmp",
  13654. "gif",
  13655. "webp",
  13656. "psd",
  13657. "svg",
  13658. "tiff",
  13659. ].indexOf(ext) !== -1
  13660. );
  13661. },
  13662. switchVideo(media) {
  13663. this.playerO = {};
  13664. this.playerOptions.poster = "";
  13665. this.playerOptions.sources[0].src = media;
  13666. this.playerO = this.playerOptions;
  13667. },
  13668. onPlayerPlay() {},
  13669. onPlayerTimeupdate(player) {
  13670. let gklog = player.cache_.currentTime;//当前播放的秒数
  13671. let a=player.cache_.duration//视频的总时长
  13672. let gklog2 = parseInt(gklog)
  13673. // if(gklog2 == '3'){
  13674. // player.pause()
  13675. // setTimeout(()=>{
  13676. // player.currentTime(gklog2+1)
  13677. // player.play()
  13678. // },1000)
  13679. // }
  13680. console.log(" onPlayerTimeupdate!", gklog);
  13681. console.log(" onPlayerTimeupdate!", gklog2);
  13682. },
  13683. lookVedio(u, i) {
  13684. this.isClickNav = "";
  13685. // this.playerOptions.sources[0].src = u;
  13686. var d = JSON.parse(JSON.stringify(this.playerOptions));
  13687. d.sources[0].src = u;
  13688. this.playerO[this.taskCount] = d;
  13689. this.showType = 0;
  13690. this.isClickNav = "video" + i;
  13691. this.$forceUpdate();
  13692. },
  13693. lookText(i, t) {
  13694. this.isClickNav = "";
  13695. this.text = this.textList[i][t];
  13696. // this.dialogVisible1 = true;
  13697. this.showType = 1;
  13698. this.isClickNav = "text" + t;
  13699. },
  13700. lookTools(i, t) {
  13701. this.chapTools = this.chapToolList[i][t];
  13702. this.dialogVisible2 = true;
  13703. },
  13704. openFile(f) {
  13705. this.pptImgUrl = "";
  13706. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13707. if (
  13708. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  13709. -1
  13710. ) {
  13711. this.pptImgUrl =
  13712. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  13713. this.showPDF = false;
  13714. this.dialogVisible3 = true;
  13715. } else if (
  13716. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13717. ) {
  13718. this.pptImgUrl = f;
  13719. this.showPDF = true;
  13720. this.dialogVisible3 = true;
  13721. }
  13722. },
  13723. openTable(f) {
  13724. this.tableJson = JSON.parse(f.works);
  13725. this.dialogVisibleTable2 = true;
  13726. },
  13727. openWord(f) {
  13728. this.tableJson = JSON.parse(f.works);
  13729. this.dialogVisibleTable3 = true;
  13730. },
  13731. doUrl(url, i) {
  13732. this.isClickNav = "";
  13733. this.pptImgUrl1 = "";
  13734. this.showType = 2;
  13735. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  13736. url = "https://" + url;
  13737. }
  13738. this.pptImgUrl1 = ""
  13739. setTimeout(() => {
  13740. this.pptImgUrl1 = url;
  13741. }, 500);
  13742. this.isClickNav = "line" + i;
  13743. this.$forceUpdate();
  13744. },
  13745. downFile(f, i) {
  13746. this.isClickNav = "";
  13747. this.pptImgUrl1 = "";
  13748. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  13749. if (
  13750. a.indexOf(
  13751. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  13752. ) != -1
  13753. ) {
  13754. this.pptImgUrl1 =
  13755. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  13756. // this.dialogVisible3 = true;
  13757. this.showType = 2;
  13758. } else if (
  13759. this.isAssetTypeAnImage(
  13760. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  13761. )
  13762. ) {
  13763. this.showType = 4;
  13764. this.pptImgUrl1 = f.url;
  13765. } else if (
  13766. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  13767. "PDF"
  13768. ) {
  13769. this.pptImgUrl1 = f.url;
  13770. // this.dialogVisible3 = true;
  13771. this.showType = 3;
  13772. } else {
  13773. window.open(this.file[i].url);
  13774. }
  13775. this.isClickNav = "word" + i;
  13776. },
  13777. downFileList(i) {
  13778. window.open(this.noImgList[i].url);
  13779. },
  13780. openAddWork() {
  13781. this.dialogVisible = true;
  13782. },
  13783. addBzWorks() {
  13784. let params = [
  13785. {
  13786. uid: this.userid,
  13787. cid: this.id,
  13788. stage: this.courseType,
  13789. task: this.taskCount,
  13790. tool: this.toolindex,
  13791. content: JSON.stringify(this.eScore),
  13792. type: 6,
  13793. },
  13794. ];
  13795. this.ajax
  13796. .post(this.$store.state.api + "addCourseWorks", params)
  13797. .then((res) => {
  13798. this.$message({
  13799. message: "提交成功",
  13800. type: "success",
  13801. });
  13802. this.eScore = { eBzText: "", eStar: [] };
  13803. this.studentEvalDialogVisible = false;
  13804. this.selectSWorks();
  13805. })
  13806. .catch((err) => {
  13807. this.$message.error("提交失败");
  13808. console.error(err);
  13809. });
  13810. },
  13811. addBzWorksTeacher() {
  13812. let params = [
  13813. {
  13814. uid: this.sStudent.userid,
  13815. cid: this.id,
  13816. stage: this.courseType,
  13817. task: this.taskCount,
  13818. tool: this.toolindex,
  13819. content: JSON.stringify(this.eScore),
  13820. type: 6,
  13821. },
  13822. ];
  13823. this.ajax
  13824. .post(this.$store.state.api + "addCourseWorks", params)
  13825. .then((res) => {
  13826. this.$message({
  13827. message: "提交成功",
  13828. type: "success",
  13829. });
  13830. this.eScore = { eBzText: "", eStar: [] };
  13831. this.studentEvalDialogVisibleTeacher = false;
  13832. this.selectSWorks();
  13833. })
  13834. .catch((err) => {
  13835. this.$message.error("提交失败");
  13836. console.error(err);
  13837. });
  13838. },
  13839. addStudentAsk() {
  13840. if (!this.radio.length) {
  13841. this.$message.error("请选择选项");
  13842. return;
  13843. }
  13844. for (var i = 0; i < this.askJson.askCount; i++) {
  13845. if (
  13846. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13847. (this.radio[i] !== 0 && !this.radio[i])
  13848. ) {
  13849. this.$message.error("请选择选项");
  13850. return;
  13851. }
  13852. }
  13853. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  13854. let params = [
  13855. {
  13856. uid: this.userid,
  13857. cid: this.id,
  13858. stage: this.courseType,
  13859. task: this.taskCount,
  13860. tool: this.toolindex,
  13861. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13862. type: 2,
  13863. },
  13864. ];
  13865. this.ajax
  13866. .post(this.$store.state.api + "addCourseWorks", params)
  13867. .then((res) => {
  13868. this.$message({
  13869. message: "提交成功",
  13870. type: "success",
  13871. });
  13872. this.askList = [];
  13873. this.dialogVisible5 = false;
  13874. this.selectStudent();
  13875. this.selectSWorks();
  13876. this.selectSLook();
  13877. })
  13878. .catch((err) => {
  13879. this.$message.error("提交失败");
  13880. console.error(err);
  13881. });
  13882. },
  13883. addStudentAskTeacher() {
  13884. if (!this.radio.length) {
  13885. this.$message.error("请选择选项");
  13886. return;
  13887. }
  13888. for (var i = 0; i < this.askJson.askCount; i++) {
  13889. if (
  13890. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13891. (this.radio[i] !== 0 && !this.radio[i])
  13892. ) {
  13893. this.$message.error("请选择选项");
  13894. return;
  13895. }
  13896. }
  13897. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  13898. let params = [
  13899. {
  13900. uid: this.sStudent.userid,
  13901. cid: this.id,
  13902. stage: this.courseType,
  13903. task: this.taskCount,
  13904. tool: this.toolindex,
  13905. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13906. type: 2,
  13907. },
  13908. ];
  13909. this.ajax
  13910. .post(this.$store.state.api + "addCourseWorks", params)
  13911. .then((res) => {
  13912. this.$message({
  13913. message: "提交成功",
  13914. type: "success",
  13915. });
  13916. this.askList = [];
  13917. this.dialogVisible5Teacher = false;
  13918. this.selectStudent();
  13919. this.selectSWorks();
  13920. this.selectSLook();
  13921. })
  13922. .catch((err) => {
  13923. this.$message.error("提交失败");
  13924. console.error(err);
  13925. });
  13926. },
  13927. addStudentTest() {
  13928. if (!this.radio.length) {
  13929. this.$message.error("请选择选项");
  13930. return;
  13931. }
  13932. for (var i = 0; i < this.testJson.testCount; i++) {
  13933. if (
  13934. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13935. (this.radio[i] !== 0 && !this.radio[i])
  13936. ) {
  13937. this.$message.error("请选择选项");
  13938. return;
  13939. }
  13940. }
  13941. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  13942. let params = [
  13943. {
  13944. uid: this.userid,
  13945. cid: this.id,
  13946. stage: this.courseType,
  13947. task: this.taskCount,
  13948. tool: this.toolindex,
  13949. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13950. type: 8,
  13951. },
  13952. ];
  13953. this.ajax
  13954. .post(this.$store.state.api + "addCourseWorks", params)
  13955. .then((res) => {
  13956. this.$message({
  13957. message: "提交成功",
  13958. type: "success",
  13959. });
  13960. this.askList = [];
  13961. this.dialogVisibleChoice = false;
  13962. this.selectStudent();
  13963. this.selectSWorks();
  13964. this.selectSLook();
  13965. })
  13966. .catch((err) => {
  13967. this.$message.error("提交失败");
  13968. console.error(err);
  13969. });
  13970. },
  13971. addStudentTestTeacher() {
  13972. if (!this.radio.length) {
  13973. this.$message.error("请选择选项");
  13974. return;
  13975. }
  13976. for (var i = 0; i < this.testJson.testCount; i++) {
  13977. if (
  13978. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  13979. (this.radio[i] !== 0 && !this.radio[i])
  13980. ) {
  13981. this.$message.error("请选择选项");
  13982. return;
  13983. }
  13984. }
  13985. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  13986. let params = [
  13987. {
  13988. uid: this.sStudent.userid,
  13989. cid: this.id,
  13990. stage: this.courseType,
  13991. task: this.taskCount,
  13992. tool: this.toolindex,
  13993. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  13994. type: 8,
  13995. },
  13996. ];
  13997. this.ajax
  13998. .post(this.$store.state.api + "addCourseWorks", params)
  13999. .then((res) => {
  14000. this.$message({
  14001. message: "提交成功",
  14002. type: "success",
  14003. });
  14004. this.askList = [];
  14005. this.dialogVisibleChoiceTeacher = false;
  14006. this.selectStudent();
  14007. this.selectSWorks();
  14008. this.selectSLook();
  14009. })
  14010. .catch((err) => {
  14011. this.$message.error("提交失败");
  14012. console.error(err);
  14013. });
  14014. },
  14015. addWork() {
  14016. if (this.studyJuri[0].content == "") {
  14017. this.$message.error("请将信息填写完整");
  14018. return;
  14019. } else if (this.studyJuri[0].cover.length == 0) {
  14020. this.$message.error("请将信息填写完整");
  14021. return;
  14022. } else if (this.studyJuri[0].upVedio.length == 0) {
  14023. this.$message.error("请将信息填写完整");
  14024. return;
  14025. }
  14026. if (this.isNoHomeWork) {
  14027. this.$confirm(
  14028. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  14029. "提示",
  14030. {
  14031. confirmButtonText: "确定",
  14032. cancelButtonText: "取消",
  14033. type: "warning",
  14034. }
  14035. )
  14036. .then(() => {
  14037. let params = [
  14038. {
  14039. uid: this.userid,
  14040. cid: this.id,
  14041. stage: this.courseType,
  14042. task: this.taskCount,
  14043. content: JSON.stringify(this.studyJuri),
  14044. },
  14045. ];
  14046. this.ajax
  14047. .post(this.$store.state.api + "addWorks", params)
  14048. .then((res) => {
  14049. this.$message({
  14050. message: "提交成功",
  14051. type: "success",
  14052. });
  14053. this.isNoHomeWork = true;
  14054. this.dialogVisible = false;
  14055. })
  14056. .catch((err) => {
  14057. this.$message.error("提交失败");
  14058. console.error(err);
  14059. });
  14060. })
  14061. .catch(() => {});
  14062. } else {
  14063. let params = [
  14064. {
  14065. uid: this.userid,
  14066. cid: this.id,
  14067. stage: this.courseType,
  14068. task: this.taskCount,
  14069. content: JSON.stringify(this.studyJuri),
  14070. },
  14071. ];
  14072. this.ajax
  14073. .post(this.$store.state.api + "addWorks", params)
  14074. .then((res) => {
  14075. this.$message({
  14076. message: "提交成功",
  14077. type: "success",
  14078. });
  14079. this.isNoHomeWork = true;
  14080. this.dialogVisible = false;
  14081. })
  14082. .catch((err) => {
  14083. this.$message.error("提交失败");
  14084. console.error(err);
  14085. });
  14086. }
  14087. },
  14088. selectCount() {
  14089. let params = {
  14090. cid: this.id,
  14091. chid: this.courseType,
  14092. uid: this.userid,
  14093. };
  14094. this.ajax
  14095. .get(this.$store.state.api + "selectToolsCount", params)
  14096. .then((res) => {
  14097. for (var i = 0; i < res.data[0].length; i++) {
  14098. if (res.data[0][i].tools == 1) {
  14099. this.wbCount = res.data[0][i].count;
  14100. } else if (res.data[0][i].tools == 2) {
  14101. this.wordCount = res.data[0][i].count;
  14102. } else if (res.data[0][i].tools == 3) {
  14103. this.mindCount = res.data[0][i].count;
  14104. } else if (res.data[0][i].tools == 4) {
  14105. this.askCount = res.data[0][i].count;
  14106. } else if (res.data[0][i].tools == 6) {
  14107. this.noteCount = res.data[0][i].count;
  14108. } else if (res.data[0][i].tools == 7) {
  14109. this.mindNetWorkCount = res.data[0][i].count;
  14110. } else if (res.data[0][i].tools == 8) {
  14111. this.libraryCount = res.data[0][i].count;
  14112. } else if (res.data[0][i].tools == 16) {
  14113. this.workCount = res.data[0][i].count;
  14114. } else if (res.data[0][i].tools == 10) {
  14115. this.timeCount = res.data[0][i].count;
  14116. } else if (res.data[0][i].tools == 15) {
  14117. this.answerCount = res.data[0][i].count;
  14118. } else if (res.data[0][i].tools == 18) {
  14119. this.trainCount = res.data[0][i].count;
  14120. }
  14121. }
  14122. })
  14123. .catch((err) => {
  14124. console.error(err);
  14125. });
  14126. },
  14127. openTools(t, i, index, c, sName) {
  14128. var z = JSON.parse(c);
  14129. this.noteName = sName;
  14130. if (t == 4) {
  14131. this.radio = [];
  14132. this.isAnswer = false;
  14133. let b = z[0].anwer;
  14134. this.radio = b;
  14135. this.askJson = z[0].askJson;
  14136. this.isAnswer = true;
  14137. this.dialogVisible5 = true;
  14138. } else if (t == 45) {
  14139. this.radio = [];
  14140. this.isAnswer = false;
  14141. let b = z[0].anwer;
  14142. this.radio = b;
  14143. this.testJson = z[0].testJson;
  14144. this.isAnswer = true;
  14145. this.dialogVisibleChoice = true;
  14146. }
  14147. // else if (t == 15) {
  14148. // this.answerQ = "";
  14149. // this.questionAnswer = "";
  14150. // this.answerQ = z[0].answerTitle;
  14151. // this.questionAnswer = z[0].answer;
  14152. // this.answerDialogVisible = true;
  14153. // }
  14154. },
  14155. fastText(p, t) {
  14156. if (t == 1) {
  14157. this.commentText += p;
  14158. } else {
  14159. this.eScore.eBzText += p;
  14160. }
  14161. },
  14162. addTools(t, i, index) {
  14163. var a = 0;
  14164. // this.taskCount = index;
  14165. this.toolindex = i;
  14166. if (t == 1) {
  14167. if (this.wbCount > 0) {
  14168. this.updateCount(this.wbCount, t);
  14169. } else {
  14170. this.wbCount++;
  14171. a = this.wbCount;
  14172. this.toolsCount(a, t);
  14173. }
  14174. window.parent.postMessage(
  14175. {
  14176. tools: "1",
  14177. cid: this.id,
  14178. stage: this.courseType,
  14179. task: this.taskCount,
  14180. tool: i,
  14181. },
  14182. "*"
  14183. );
  14184. } else if (t == 2) {
  14185. if (this.wordCount > 0) {
  14186. this.updateCount(this.wordCount, t);
  14187. } else {
  14188. this.wordCount++;
  14189. a = this.wordCount;
  14190. this.toolsCount(a, t);
  14191. }
  14192. window.parent.postMessage({ tools: "2" }, "*");
  14193. } else if (t == 3) {
  14194. if (this.mindCount > 0) {
  14195. this.updateCount(this.mindCount, t);
  14196. } else {
  14197. this.mindCount++;
  14198. a = this.mindCount;
  14199. this.toolsCount(a, t);
  14200. }
  14201. window.parent.postMessage(
  14202. {
  14203. tools: "3",
  14204. cid: this.id,
  14205. stage: this.courseType,
  14206. task: this.taskCount,
  14207. tool: i,
  14208. },
  14209. "*"
  14210. );
  14211. } else if (t == 4) {
  14212. this.radio = [];
  14213. this.noteName = "";
  14214. this.isAnswer = false;
  14215. if (this.askCount > 0) {
  14216. this.updateCount(this.askCount, t);
  14217. } else {
  14218. this.askCount++;
  14219. a = this.askCount;
  14220. this.toolsCount(a, t);
  14221. }
  14222. if (!this.dialogVisible2) {
  14223. this.askJson.askJson =
  14224. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14225. index
  14226. ].toolChoose[i].askJson;
  14227. this.askJson.askTitle =
  14228. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14229. index
  14230. ].toolChoose[i].askTitle;
  14231. this.askJson.askCount =
  14232. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14233. index
  14234. ].toolChoose[i].askCount;
  14235. } else {
  14236. this.askJson.askJson = this.chapTools.askJson.askJson;
  14237. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  14238. this.askJson.askCount = this.chapTools.askJson.askCount;
  14239. }
  14240. for (var k = 0; k < this.askJson.askJson.length; k++) {
  14241. if (this.askJson.askJson[k].type == "2") {
  14242. this.radio.push([]);
  14243. } else {
  14244. this.radio.push("");
  14245. }
  14246. }
  14247. this.dialogVisible5 = true;
  14248. // window.parent.postMessage({ tools: "4" }, "*");
  14249. } else if (t == 45) {
  14250. this.noteName = "";
  14251. this.radio = [];
  14252. this.isAnswer = false;
  14253. if (this.askCount > 0) {
  14254. this.updateCount(this.askCount, t);
  14255. } else {
  14256. this.askCount++;
  14257. a = this.askCount;
  14258. this.toolsCount(a, t);
  14259. }
  14260. this.testJson =
  14261. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14262. index
  14263. ].toolChoose[i].testJson;
  14264. for (var k = 0; k < this.testJson.testJson.length; k++) {
  14265. if (this.testJson.testJson[k].type == "2") {
  14266. this.radio.push([]);
  14267. } else {
  14268. this.radio.push("");
  14269. }
  14270. }
  14271. this.dialogVisibleChoice = true;
  14272. // window.parent.postMessage({ tools: "4" }, "*");
  14273. } else if (t == 5) {
  14274. if (this.scoreCount > 0) {
  14275. this.updateCount(this.scoreCount, t);
  14276. } else {
  14277. this.scoreCount++;
  14278. a = this.scoreCount;
  14279. this.toolsCount(a, t);
  14280. }
  14281. this.dialogVisible4 = true;
  14282. // window.parent.postMessage({ tools: "5" }, "*");
  14283. } else if (t == 6) {
  14284. if (this.noteCount > 0) {
  14285. this.updateCount(this.noteCount, t);
  14286. } else {
  14287. this.noteCount++;
  14288. a = this.noteCount;
  14289. this.toolsCount(a, t);
  14290. }
  14291. window.parent.postMessage(
  14292. {
  14293. tools: "6",
  14294. cid: this.id,
  14295. stage: this.courseType,
  14296. task: this.taskCount,
  14297. tool: i,
  14298. },
  14299. "*"
  14300. );
  14301. } else if (t == 7) {
  14302. if (this.mindNetWorkCount > 0) {
  14303. this.updateCount(this.mindNetWorkCount, t);
  14304. } else {
  14305. this.mindNetWorkCount++;
  14306. a = this.mindNetWorkCount;
  14307. this.toolsCount(a, t);
  14308. }
  14309. window.parent.postMessage(
  14310. {
  14311. tools: "7",
  14312. cid: this.id,
  14313. stage: this.courseType,
  14314. task: this.taskCount,
  14315. tool: i,
  14316. },
  14317. "*"
  14318. );
  14319. } else if (t == 16) {
  14320. if (this.workCount > 0) {
  14321. this.updateCount(this.workCount, t);
  14322. } else {
  14323. this.workCount++;
  14324. a = this.workCount;
  14325. this.toolsCount(a, t);
  14326. }
  14327. this.dialogVisible = true;
  14328. } else if (t == 50) {
  14329. if (this.tType == 2) {
  14330. this.$message.error("不支持学生使用");
  14331. return;
  14332. }
  14333. this.plworkFile = [];
  14334. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  14335. // this.uploadCid =
  14336. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14337. // index
  14338. // ].toolChoose[i].uploadJson[0];
  14339. this.selectUploadStudent();
  14340. this.dialogVisiblePl = true;
  14341. } else if (t == 8) {
  14342. if (this.libraryCount > 0) {
  14343. this.updateCount(this.libraryCount, t);
  14344. } else {
  14345. this.libraryCount++;
  14346. a = this.libraryCount;
  14347. this.toolsCount(a, t);
  14348. }
  14349. window.parent.postMessage({ tools: "8" }, "*");
  14350. } else if (t == 17) {
  14351. if (this.libraryCount > 0) {
  14352. this.updateCount(this.libraryCount, t);
  14353. } else {
  14354. this.libraryCount++;
  14355. a = this.libraryCount;
  14356. this.toolsCount(a, t);
  14357. }
  14358. window.parent.postMessage({ tools: "17" }, "*");
  14359. } else if (t == 18) {
  14360. if (this.trainCount > 0) {
  14361. this.updateCount(this.trainCount, t);
  14362. } else {
  14363. this.trainCount++;
  14364. a = this.trainCount;
  14365. this.toolsCount(a, t);
  14366. }
  14367. window.parent.postMessage({ tools: "18" }, "*");
  14368. } else if (t == 10) {
  14369. if (this.timeCount > 0) {
  14370. this.updateCount(this.timeCount, t);
  14371. } else {
  14372. this.timeCount++;
  14373. a = this.timeCount;
  14374. this.toolsCount(a, t);
  14375. }
  14376. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  14377. .taskJson[index].toolChoose[i].preTime
  14378. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  14379. .toolChoose[i].preTime
  14380. : "";
  14381. this.timeDialogVisible = true;
  14382. } else if (t == 15) {
  14383. this.answerQ = "";
  14384. this.questionAnswer = "";
  14385. if (this.answerCount > 0) {
  14386. this.updateCount(this.answerCount, t);
  14387. } else {
  14388. this.answerCount++;
  14389. a = this.answerCount;
  14390. this.toolsCount(a, t);
  14391. }
  14392. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  14393. .taskJson[index].toolChoose[i].answerQ
  14394. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  14395. .toolChoose[i].answerQ
  14396. : "";
  14397. this.answerDialogVisible = true;
  14398. } else if (t == 21) {
  14399. window.parent.postMessage({ tools: "21" }, "*");
  14400. } else if (t == 22) {
  14401. window.parent.postMessage({ tools: "22" }, "*");
  14402. } else if (t == 23) {
  14403. window.parent.postMessage({ tools: "23" }, "*");
  14404. } else if (t == 24) {
  14405. window.parent.postMessage({ tools: "24" }, "*");
  14406. } else if (t == 25) {
  14407. window.parent.postMessage({ tools: "25" }, "*");
  14408. } else if (t == 31) {
  14409. window.parent.postMessage({ tools: "31" }, "*");
  14410. } else if (t == 28) {
  14411. window.parent.postMessage({ tools: "28" }, "*");
  14412. } else if (t == 37) {
  14413. window.parent.postMessage({ tools: "37" }, "*");
  14414. } else if (t == 38) {
  14415. window.parent.postMessage({ tools: "38" }, "*");
  14416. } else if (t == 39) {
  14417. window.parent.postMessage({ tools: "39" }, "*");
  14418. } else if (t == 32) {
  14419. window.parent.postMessage({ tools: "32" }, "*");
  14420. } else if (t == 57) {
  14421. window.parent.postMessage({ tools: "57" }, "*");
  14422. } else if (t == 58) {
  14423. window.parent.postMessage({ tools: "58" }, "*");
  14424. } else if (t == 59) {
  14425. window.parent.postMessage({ tools: "59" }, "*");
  14426. } else if (t == 60) {
  14427. window.parent.postMessage({ tools: "60" }, "*");
  14428. } else if (t == 61) {
  14429. window.parent.postMessage({ tools: "61" }, "*");
  14430. } else if (t == 63) {
  14431. window.parent.postMessage({ tools: "63" }, "*");
  14432. } else if (t == 26) {
  14433. window.parent.postMessage(
  14434. {
  14435. tools: "26",
  14436. cid: this.id,
  14437. stage: this.courseType,
  14438. task: this.taskCount,
  14439. tool: i,
  14440. },
  14441. "*"
  14442. );
  14443. } else if (t == 40) {
  14444. if (this.evalCount > 0) {
  14445. this.updateCount(this.evalCount, t);
  14446. } else {
  14447. this.evalCount++;
  14448. a = this.evalCount;
  14449. this.toolsCount(a, t);
  14450. }
  14451. this.eScore = { eBzText: "", eStar: [] };
  14452. if (this.worksStudent[i].length) {
  14453. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14454. if (this.userid == this.worksStudent[i][k].userid) {
  14455. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  14456. this.rateJson =
  14457. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14458. index
  14459. ].toolChoose[i].rateJson;
  14460. break;
  14461. } else {
  14462. this.rateJson =
  14463. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14464. index
  14465. ].toolChoose[i].rateJson;
  14466. }
  14467. }
  14468. } else {
  14469. this.rateJson =
  14470. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14471. index
  14472. ].toolChoose[i].rateJson;
  14473. }
  14474. this.isStar = false;
  14475. this.studentEvalDialogVisible = true;
  14476. } else if (t == 41) {
  14477. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14478. .taskJson[index].toolChoose[i].selectJson
  14479. ? JSON.parse(
  14480. JSON.stringify(
  14481. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14482. index
  14483. ].toolChoose[i].selectJson
  14484. )
  14485. )
  14486. : { url: "", select: [], answer: [] };
  14487. if (this.worksStudent[i].length) {
  14488. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14489. if (this.userid == this.worksStudent[i][k].userid) {
  14490. var a = this.worksStudent[i][k].works.split(",");
  14491. for (var ki = 0; ki < a.length; ki++) {
  14492. a[ki] = parseInt(a[ki]);
  14493. }
  14494. this.selectAnswer = {
  14495. answer: a,
  14496. stu: this.worksStudent[i][k].sName,
  14497. };
  14498. break;
  14499. } else {
  14500. this.selectAnswer = { answer: [], stu: "" };
  14501. }
  14502. }
  14503. } else {
  14504. this.selectAnswer = { answer: [], stu: "" };
  14505. }
  14506. this.isSelect = false;
  14507. this.dialogVisibleSelect = true;
  14508. } else if (t == 44) {
  14509. window.parent.postMessage({ tools: "44" }, "*");
  14510. } else if (t == 47) {
  14511. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  14512. .taskJson[index].toolChoose[i].sentenceList
  14513. ? JSON.parse(
  14514. JSON.stringify(
  14515. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14516. index
  14517. ].toolChoose[i].sentenceList
  14518. )
  14519. )
  14520. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  14521. for (var q = 0; q < this.sentenceList.length; q++) {
  14522. this.sentenceList[q].chooseSenList = [];
  14523. this.sentenceList[q].addChangeSen = [];
  14524. this.sentenceList[q].addChangeSen = JSON.parse(
  14525. JSON.stringify(this.sentenceList[q].addSentence)
  14526. );
  14527. this.sentenceList[q].chooseSenList.length =
  14528. this.sentenceList[q].rightAnswer.length;
  14529. }
  14530. this.dialogVisibleSentence = true;
  14531. } else if (t == 48) {
  14532. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14533. .taskJson[index].toolChoose[i].tableJson
  14534. ? JSON.parse(
  14535. JSON.stringify(
  14536. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14537. index
  14538. ].toolChoose[i].tableJson
  14539. )
  14540. )
  14541. : { text: "" };
  14542. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson))
  14543. if (this.worksStudent[i].length) {
  14544. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14545. if (this.userid == this.worksStudent[i][k].userid) {
  14546. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  14547. break;
  14548. }
  14549. }
  14550. }
  14551. this.dialogVisibleTable = true;
  14552. } else if (t == 52) {
  14553. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14554. .taskJson[index].toolChoose[i].wordJson
  14555. ? JSON.parse(
  14556. JSON.stringify(
  14557. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14558. index
  14559. ].toolChoose[i].wordJson
  14560. )
  14561. )
  14562. : { text: "" };
  14563. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson))
  14564. if (this.worksStudent[i].length) {
  14565. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14566. if (this.userid == this.worksStudent[i][k].userid) {
  14567. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  14568. break;
  14569. }
  14570. }
  14571. }
  14572. this.dialogVisibleWord = true;
  14573. } else if (t == 49) {
  14574. this.groupJson =
  14575. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14576. index
  14577. ].toolChoose[i].groupJson;
  14578. this.islock = this.groupJson.islock == 1 ? true : false;
  14579. this.dialogVisibleGroup = true;
  14580. } else if (t == 62) {
  14581. this.videoJson =
  14582. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14583. index
  14584. ].toolChoose[i].videoJson;
  14585. this.dialogVisibleVideo = true;
  14586. }
  14587. },
  14588. teacherWorkSubmit(t, i, index, s) {
  14589. this.sStudent = s;
  14590. this.toolindex = i;
  14591. this.sTool = t;
  14592. if (this.tType !== "1" && this.tType !== "4") {
  14593. return;
  14594. }
  14595. if (t == 16 || t == 32 || t == 57 || t == 50) {
  14596. this.dialogVisibleWorks = true;
  14597. } else if (t == 15) {
  14598. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  14599. .taskJson[index].toolChoose[i].answerQ
  14600. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  14601. .toolChoose[i].answerQ
  14602. : "";
  14603. this.questionAnswer = "";
  14604. this.answerDialogVisibleTeacher = true; //问答
  14605. } else if (t == 52) {
  14606. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14607. .taskJson[index].toolChoose[i].wordJson
  14608. ? JSON.parse(
  14609. JSON.stringify(
  14610. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14611. index
  14612. ].toolChoose[i].wordJson
  14613. )
  14614. )
  14615. : { text: "" };
  14616. if (this.worksStudent[i].length) {
  14617. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14618. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14619. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  14620. break;
  14621. }
  14622. }
  14623. }
  14624. this.dialogVisibleWordTeacher = true; //文档
  14625. } else if (t == 4) {
  14626. this.radio = [];
  14627. this.noteName = "";
  14628. this.isAnswer = false;
  14629. if (this.askCount > 0) {
  14630. this.updateCount(this.askCount, t);
  14631. } else {
  14632. this.askCount++;
  14633. a = this.askCount;
  14634. this.toolsCount(a, t);
  14635. }
  14636. if (!this.dialogVisible2) {
  14637. this.askJson.askJson =
  14638. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14639. index
  14640. ].toolChoose[i].askJson;
  14641. this.askJson.askTitle =
  14642. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14643. index
  14644. ].toolChoose[i].askTitle;
  14645. this.askJson.askCount =
  14646. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14647. index
  14648. ].toolChoose[i].askCount;
  14649. } else {
  14650. this.askJson.askJson = this.chapTools.askJson.askJson;
  14651. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  14652. this.askJson.askCount = this.chapTools.askJson.askCount;
  14653. }
  14654. this.dialogVisible5Teacher = true;
  14655. } else if (t == 45) {
  14656. this.noteName = "";
  14657. this.radio = [];
  14658. this.isAnswer = false;
  14659. if (this.askCount > 0) {
  14660. this.updateCount(this.askCount, t);
  14661. } else {
  14662. this.askCount++;
  14663. a = this.askCount;
  14664. this.toolsCount(a, t);
  14665. }
  14666. this.testJson =
  14667. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14668. index
  14669. ].toolChoose[i].testJson;
  14670. for (var k = 0; k < this.testJson.testJson.length; k++) {
  14671. if (this.testJson.testJson[k].type == "2") {
  14672. this.radio.push([]);
  14673. } else {
  14674. this.radio.push("");
  14675. }
  14676. }
  14677. this.dialogVisibleChoiceTeacher = true;
  14678. } else if (t == 41) {
  14679. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14680. .taskJson[index].toolChoose[i].selectJson
  14681. ? JSON.parse(
  14682. JSON.stringify(
  14683. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14684. index
  14685. ].toolChoose[i].selectJson
  14686. )
  14687. )
  14688. : { url: "", select: [], answer: [] };
  14689. if (this.worksStudent[i].length) {
  14690. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14691. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14692. var a = this.worksStudent[i][k].works.split(",");
  14693. for (var ki = 0; ki < a.length; ki++) {
  14694. a[ki] = parseInt(a[ki]);
  14695. }
  14696. this.selectAnswer = {
  14697. answer: a,
  14698. stu: this.worksStudent[i][k].sName,
  14699. };
  14700. break;
  14701. } else {
  14702. this.selectAnswer = { answer: [], stu: "" };
  14703. }
  14704. }
  14705. } else {
  14706. this.selectAnswer = { answer: [], stu: "" };
  14707. }
  14708. this.isSelect = false;
  14709. this.dialogVisibleSelectTeacher = true;
  14710. } else if (t == 47) {
  14711. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  14712. .taskJson[index].toolChoose[i].sentenceList
  14713. ? JSON.parse(
  14714. JSON.stringify(
  14715. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14716. index
  14717. ].toolChoose[i].sentenceList
  14718. )
  14719. )
  14720. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  14721. for (var q = 0; q < this.sentenceList.length; q++) {
  14722. this.sentenceList[q].chooseSenList = [];
  14723. this.sentenceList[q].addChangeSen = [];
  14724. this.sentenceList[q].addChangeSen = JSON.parse(
  14725. JSON.stringify(this.sentenceList[q].addSentence)
  14726. );
  14727. this.sentenceList[q].chooseSenList.length =
  14728. this.sentenceList[q].rightAnswer.length;
  14729. }
  14730. this.dialogVisibleSentenceTeacher = true;
  14731. } else if (t == 48) {
  14732. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14733. .taskJson[index].toolChoose[i].tableJson
  14734. ? JSON.parse(
  14735. JSON.stringify(
  14736. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14737. index
  14738. ].toolChoose[i].tableJson
  14739. )
  14740. )
  14741. : { text: "" };
  14742. if (this.worksStudent[i].length) {
  14743. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14744. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14745. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  14746. break;
  14747. }
  14748. }
  14749. }
  14750. this.dialogVisibleTableTeacher = true;
  14751. } else if (t == 40) {
  14752. if (this.evalCount > 0) {
  14753. this.updateCount(this.evalCount, t);
  14754. } else {
  14755. this.evalCount++;
  14756. a = this.evalCount;
  14757. this.toolsCount(a, t);
  14758. }
  14759. this.eScore = { eBzText: "", eStar: [] };
  14760. if (this.worksStudent[i].length) {
  14761. for (var k = 0; k < this.worksStudent[i].length; k++) {
  14762. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  14763. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  14764. this.rateJson =
  14765. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14766. index
  14767. ].toolChoose[i].rateJson;
  14768. break;
  14769. } else {
  14770. this.rateJson =
  14771. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14772. index
  14773. ].toolChoose[i].rateJson;
  14774. }
  14775. }
  14776. } else {
  14777. this.rateJson =
  14778. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14779. index
  14780. ].toolChoose[i].rateJson;
  14781. }
  14782. this.isStar = false;
  14783. this.studentEvalDialogVisibleTeacher = true;
  14784. } else if (t == 3 || t == 1 || t == 7) {
  14785. window.parent.postMessage(
  14786. {
  14787. tools: t + "teacher",
  14788. cid: this.id,
  14789. stage: this.courseType,
  14790. task: this.taskCount,
  14791. tool: i,
  14792. student: this.sStudent,
  14793. },
  14794. "*"
  14795. );
  14796. }
  14797. },
  14798. setRightAnswer(s, i, j) {
  14799. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  14800. if (
  14801. this.sentenceList[i].chooseSenList[q] == undefined ||
  14802. this.sentenceList[i].chooseSenList[q] == ""
  14803. ) {
  14804. this.sentenceList[i].chooseSenList[q] = s;
  14805. this.sentenceList[i].addChangeSen[j] = "";
  14806. break;
  14807. }
  14808. }
  14809. this.$forceUpdate();
  14810. },
  14811. returnCard(r, i, j) {
  14812. var a = this.sentenceList[i].addSentence.indexOf(r);
  14813. this.sentenceList[i].chooseSenList[j] = "";
  14814. this.sentenceList[i].addChangeSen[a] = r;
  14815. this.$forceUpdate();
  14816. },
  14817. // addSentenceTool() {
  14818. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14819. // this.taskCount
  14820. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  14821. // this.sentenceList = [
  14822. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  14823. // ];
  14824. // this.dialogVisibleSentence = false;
  14825. // },
  14826. toolsCount(a, t) {
  14827. let params = {
  14828. cid: this.id,
  14829. chid: this.courseType,
  14830. uid: this.userid,
  14831. tid: t,
  14832. count: a,
  14833. };
  14834. this.ajax
  14835. .get(this.$store.state.api + "insertToolsCount", params)
  14836. .then((res) => {
  14837. this.selectCount();
  14838. })
  14839. .catch((err) => {
  14840. console.error(err);
  14841. });
  14842. },
  14843. updateCount(c, t) {
  14844. c++;
  14845. let params = {
  14846. cid: this.id,
  14847. chid: this.courseType,
  14848. uid: this.userid,
  14849. tid: t,
  14850. count: c,
  14851. };
  14852. this.ajax
  14853. .get(this.$store.state.api + "updateToolsCount", params)
  14854. .then((res) => {
  14855. this.selectCount();
  14856. })
  14857. .catch((err) => {
  14858. console.error(err);
  14859. });
  14860. },
  14861. checkEva() {
  14862. if (this.evalua != "") {
  14863. for (var i = 0; i < this.evaJuri.length; i++) {
  14864. if (this.evalua == this.evaJuri[i].id) {
  14865. this.eTitle = this.evaJuri[i].title;
  14866. this.eJson = JSON.parse(this.evaJuri[i].content);
  14867. }
  14868. }
  14869. this.$forceUpdate();
  14870. setTimeout(() => {
  14871. this.setMindData();
  14872. }, 0);
  14873. }
  14874. },
  14875. selectEva() {
  14876. let params = {
  14877. oid: this.oid,
  14878. };
  14879. this.ajax
  14880. .get(this.$store.state.api + "selectAllEvaluation", params)
  14881. .then((res) => {
  14882. this.evaJuri = res.data[0];
  14883. })
  14884. .catch((err) => {
  14885. console.error(err);
  14886. });
  14887. },
  14888. setMindData() {
  14889. this.data.data = [];
  14890. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  14891. let _eJson = Object.keys(this.eJson);
  14892. let _e = this.eJson;
  14893. for (let i = 0; i < _eJson.length; i++) {
  14894. let element = _e[_eJson[i]];
  14895. this.data.data.push({
  14896. id: element.id,
  14897. parentid: "root",
  14898. topic: element.name,
  14899. });
  14900. let _eJsonc = Object.keys(element.child);
  14901. let _e2 = element.child;
  14902. for (let j = 0; j < _eJsonc.length; j++) {
  14903. let _ec = _e2[_eJsonc[j]];
  14904. this.data.data.push({
  14905. id: _ec.id,
  14906. parentid: element.id,
  14907. topic: _ec.name,
  14908. });
  14909. let _eJsonz = Object.keys(_ec.child);
  14910. let _e3 = _ec.child;
  14911. for (let z = 0; z < _eJsonz.length; z++) {
  14912. let _ez = _e3[_eJsonz[z]];
  14913. this.data.data.push({
  14914. id: _ez.id,
  14915. parentid: _ec.id,
  14916. topic: _ez.name,
  14917. });
  14918. }
  14919. }
  14920. }
  14921. this.$forceUpdate();
  14922. },
  14923. checkFileFull(type, url) {
  14924. this.fullDialogVisible = true;
  14925. this.fulltype = type;
  14926. this.fullUrl = url;
  14927. },
  14928. openSname(n, id, i) {
  14929. this.snameWid = id;
  14930. this.worksSName = n;
  14931. this.toolindex = i;
  14932. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  14933. this.selectUploadStudent();
  14934. this.dialogVisibleSname = true;
  14935. },
  14936. updateName() {
  14937. let params = {
  14938. n: this.worksSName,
  14939. cid: this.snameWid,
  14940. };
  14941. this.ajax
  14942. .get(this.$store.state.api + "updateCourseWorksName", params)
  14943. .then((res) => {
  14944. this.$message({
  14945. message: "修改成功",
  14946. type: "success",
  14947. });
  14948. this.dialogVisibleSname = false;
  14949. this.getCourseDetail(2);
  14950. this.snameWid = "";
  14951. this.worksSName = "";
  14952. })
  14953. .catch((err) => {
  14954. console.error(err);
  14955. });
  14956. },
  14957. downloadFile2(f) {
  14958. let url = f.url;
  14959. let _this = this;
  14960. let _url = "";
  14961. if (
  14962. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  14963. ) {
  14964. _url = url.split(
  14965. "https://view.officeapps.live.com/op/view.aspx?src="
  14966. )[1];
  14967. } else {
  14968. _url = url;
  14969. }
  14970. const x = new XMLHttpRequest();
  14971. x.open("GET", _url, true);
  14972. x.responseType = "blob";
  14973. const loading = _this.$loading.service({
  14974. background: "rgba(255, 255, 255, 0.7)",
  14975. target: document.body,
  14976. text: "文件加载中...",
  14977. });
  14978. // _this.$message.success("文件下载中...");
  14979. x.onload = function (e) {
  14980. loading.close();
  14981. let content = x.response;
  14982. let elink = document.createElement("a");
  14983. elink.download = f.name;
  14984. elink.style.display = "none";
  14985. let blob = new Blob([content]);
  14986. elink.href = URL.createObjectURL(blob);
  14987. document.body.appendChild(elink);
  14988. elink.click();
  14989. document.body.removeChild(elink);
  14990. };
  14991. x.send();
  14992. },
  14993. downloadFile(url) {
  14994. let _this = this;
  14995. let _url = "";
  14996. if (
  14997. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  14998. ) {
  14999. _url = url.split(
  15000. "https://view.officeapps.live.com/op/view.aspx?src="
  15001. )[1];
  15002. } else {
  15003. _url = url;
  15004. }
  15005. const x = new XMLHttpRequest();
  15006. x.open("GET", _url, true);
  15007. x.responseType = "blob";
  15008. const loading = _this.$loading.service({
  15009. background: "rgba(255, 255, 255, 0.7)",
  15010. target: document.body,
  15011. text: "文件加载中...",
  15012. });
  15013. // _this.$message.success("文件下载中...");
  15014. x.onload = function (e) {
  15015. loading.close();
  15016. // const url = window.URL.createObjectURL(x.response);
  15017. // const a = document.createElement("a");
  15018. // a.href = url;
  15019. // a.target = "_blank";
  15020. // a.download = url;
  15021. // a.click();
  15022. // a.remove();
  15023. let content = x.response;
  15024. let elink = document.createElement("a");
  15025. elink.download = decodeURI(
  15026. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  15027. );
  15028. elink.style.display = "none";
  15029. let blob = new Blob([content]);
  15030. elink.href = URL.createObjectURL(blob);
  15031. document.body.appendChild(elink);
  15032. elink.click();
  15033. document.body.removeChild(elink);
  15034. };
  15035. x.send();
  15036. },
  15037. openLine(url) {
  15038. window.open(url);
  15039. },
  15040. resize() {
  15041. if (document.getElementsByClassName("box_course").length) {
  15042. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  15043. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  15044. document.getElementsByClassName("navBox")[0].style.height =
  15045. a - 40 + "px";
  15046. }
  15047. this.Stbodywidth =
  15048. document.getElementsByClassName("student_body").length &&
  15049. document.getElementsByClassName("student_body")[0].offsetWidth;
  15050. },
  15051. closeDraw() {
  15052. this.bg = null;
  15053. this.drawShow = false;
  15054. },
  15055. showPicturePaint(url) {
  15056. let params = {
  15057. img: url,
  15058. };
  15059. this.ajax
  15060. .get(this.$store.state.api + "imgToBase64", params)
  15061. .then((res) => {
  15062. console.log(res);
  15063. this.drawShow = true;
  15064. this.bg = res.data[0].img;
  15065. })
  15066. .catch((err) => {
  15067. console.error(err);
  15068. });
  15069. },
  15070. addImgDraw(base64) {
  15071. let file = { name: "批注图.png" };
  15072. let img = this.dataUrlToFile(base64, file);
  15073. this.beforeUpload1(img, 5);
  15074. },
  15075. addImgDrawImG(url) {
  15076. // console.log(url);
  15077. let params = [
  15078. {
  15079. wid: this.commentDetail.wid,
  15080. img: url,
  15081. },
  15082. ];
  15083. this.ajax
  15084. .post(this.$store.state.api + "updateCourseWorks", params)
  15085. .then((res) => {
  15086. this.$message({
  15087. message: "提交成功",
  15088. type: "success",
  15089. });
  15090. this.drawShow = false;
  15091. this.bg = "";
  15092. this.selectSWorks();
  15093. this.selectStudent();
  15094. })
  15095. .catch((err) => {
  15096. this.$message.error("提交失败");
  15097. console.error(err);
  15098. });
  15099. },
  15100. deletePicturePaint() {
  15101. this.$confirm("确定删除此批注吗?", "提示", {
  15102. confirmButtonText: "确定",
  15103. cancelButtonText: "取消",
  15104. type: "warning",
  15105. })
  15106. .then(() => {
  15107. let params = [
  15108. {
  15109. wid: this.commentDetail.wid,
  15110. img: "",
  15111. },
  15112. ];
  15113. this.ajax
  15114. .post(this.$store.state.api + "updateCourseWorks", params)
  15115. .then((res) => {
  15116. this.$message({
  15117. message: "删除成功",
  15118. type: "success",
  15119. });
  15120. this.selectSWorks();
  15121. this.selectStudent();
  15122. })
  15123. .catch((err) => {
  15124. this.$message.error("删除失败");
  15125. console.error(err);
  15126. });
  15127. })
  15128. .catch(() => {});
  15129. },
  15130. getAudioVideo(constraintsData) {
  15131. if (navigator.mediaDevices === undefined) {
  15132. navigator.mediaDevices = {};
  15133. }
  15134. if (navigator.mediaDevices.getUserMedia === undefined) {
  15135. navigator.mediaDevices.getUserMedia = function (constraints) {
  15136. // 首先,如果有getUserMedia的话,就获得它
  15137. var getUserMedia =
  15138. navigator.getUserMedia ||
  15139. navigator.webkitGetUserMedia ||
  15140. navigator.mozGetUserMedia ||
  15141. navigator.msGetUserMedia;
  15142. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  15143. if (!getUserMedia) {
  15144. return Promise.reject({ code: 404 });
  15145. }
  15146. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  15147. return new Promise(function (resolve, reject) {
  15148. getUserMedia.call(navigator, constraints, resolve, reject);
  15149. });
  15150. };
  15151. }
  15152. return navigator.mediaDevices.getUserMedia(constraintsData);
  15153. },
  15154. /**
  15155. * 开始录制
  15156. */
  15157. startRecording(callback) {
  15158. let _function = (screenStream) => {
  15159. this.addStreamStopListener(screenStream, () => {
  15160. console.log("流停止监听");
  15161. this.stopRecording();
  15162. this.$emit("streamStop", {});
  15163. // this.stopRecording();
  15164. });
  15165. var options = {
  15166. type: "video",
  15167. mimeType: "video/webm",
  15168. disableLogs: false,
  15169. getNativeBlob: false, // enable it for longer recordings
  15170. ignoreMutedMedia: false,
  15171. };
  15172. // this.video.srcObject = screenStream;
  15173. this.recorder = RecordRTC(screenStream, options);
  15174. this.recorder.startRecording();
  15175. this.recorder.screen = screenStream;
  15176. this.videoStart = true;
  15177. // callback(true);
  15178. };
  15179. this.getAudioVideo({ audio: true })
  15180. .then((res) => {
  15181. this.captureScreen(_function, true);
  15182. console.log("已点击允许,开启成功");
  15183. })
  15184. .catch((err) => {
  15185. // console.log('浏览器不支持,请更换浏览器')
  15186. // } else {
  15187. this.captureScreen(_function, false);
  15188. console.log("请检查是否存在麦克风");
  15189. });
  15190. },
  15191. /**
  15192. * 停止录制
  15193. */
  15194. stopRecording(callback) {
  15195. this.recorder.stopRecording(() => {
  15196. // this.video.src = this.video.srcObject = null;
  15197. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  15198. const url = URL.createObjectURL(this.recorder.getBlob());
  15199. const a = document.createElement("a"); //this.fileName+
  15200. let videoFile = new File(
  15201. [this.recorder.getBlob()],
  15202. this.courseDetail.title + "录屏.mp4",
  15203. {
  15204. type: "video/mp4",
  15205. }
  15206. );
  15207. let downloadUrl = URL.createObjectURL(videoFile);
  15208. document.body.appendChild(a);
  15209. a.style.display = "none";
  15210. a.href = url;
  15211. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  15212. a.click();
  15213. this.recorder.screen.stop();
  15214. this.recorder.destroy();
  15215. this.recorder = null;
  15216. this.videoStart = false;
  15217. // callback(false);
  15218. });
  15219. },
  15220. //初始化
  15221. captureScreen(callback, type) {
  15222. if (navigator.getDisplayMedia) {
  15223. //录制结束,文件下载
  15224. navigator
  15225. .getDisplayMedia({
  15226. video: true,
  15227. })
  15228. .then((screenStream) => {
  15229. if (type) {
  15230. navigator.mediaDevices
  15231. .getUserMedia({ audio: true })
  15232. .then((mic) => {
  15233. screenStream.addTrack(mic.getTracks()[0]);
  15234. callback(screenStream);
  15235. });
  15236. } else {
  15237. callback(screenStream);
  15238. }
  15239. })
  15240. .catch(function (error) {
  15241. console.log("error", error);
  15242. });
  15243. } else if (navigator.mediaDevices.getDisplayMedia) {
  15244. navigator.mediaDevices
  15245. .getDisplayMedia({
  15246. video: true,
  15247. })
  15248. .then((screenStream) => {
  15249. if (type) {
  15250. navigator.mediaDevices
  15251. .getUserMedia({ audio: true })
  15252. .then((mic) => {
  15253. screenStream.addTrack(mic.getTracks()[0]);
  15254. callback(screenStream);
  15255. });
  15256. } else {
  15257. callback(screenStream);
  15258. }
  15259. })
  15260. .catch(function (error) {
  15261. console.log("error", error);
  15262. });
  15263. } else {
  15264. var error = "getDisplayMedia API are not supported in this browser.";
  15265. console.log("error", error);
  15266. alert(error);
  15267. }
  15268. },
  15269. //流监听
  15270. addStreamStopListener(stream, callback) {
  15271. stream.addEventListener(
  15272. "ended",
  15273. function () {
  15274. callback();
  15275. callback = function () {};
  15276. },
  15277. false
  15278. );
  15279. stream.addEventListener(
  15280. "inactive",
  15281. function () {
  15282. callback();
  15283. callback = function () {};
  15284. },
  15285. false
  15286. );
  15287. stream.getTracks().forEach(function (track) {
  15288. track.addEventListener(
  15289. "ended",
  15290. function () {
  15291. callback();
  15292. callback = function () {};
  15293. },
  15294. false
  15295. );
  15296. track.addEventListener(
  15297. "inactive",
  15298. function () {
  15299. callback();
  15300. callback = function () {};
  15301. },
  15302. false
  15303. );
  15304. });
  15305. },
  15306. updateGroup() {
  15307. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  15308. this.dialogVisibleGroup2 = true;
  15309. },
  15310. updateGroupJson() {
  15311. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  15312. if (
  15313. this.groupStudentUid[this.toolindex][i].length >
  15314. this.groupJson2.number
  15315. ) {
  15316. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  15317. return;
  15318. }
  15319. }
  15320. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  15321. this.islock = this.groupJson.islock == 1 ? true : false;
  15322. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15323. this.taskCount
  15324. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  15325. let params = [
  15326. {
  15327. cid: this.id,
  15328. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  15329. uid: this.userid,
  15330. unitIndex: this.courseType,
  15331. },
  15332. ];
  15333. this.ajax
  15334. .post(this.$store.state.api + "updateWorkNew4", params)
  15335. .then((res) => {
  15336. this.$message.success("设置成功");
  15337. this.getCourseDetail(2);
  15338. this.dialogVisibleGroup2 = false;
  15339. this.groupJson2 = {};
  15340. this.$forceUpdate();
  15341. })
  15342. .catch((err) => {
  15343. this.$message.error("网络不佳");
  15344. console.error(err);
  15345. });
  15346. },
  15347. lockChair() {
  15348. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  15349. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  15350. this.updateGroupJson();
  15351. },
  15352. selectGroup(index) {
  15353. this.getCourseDetail(2, index);
  15354. },
  15355. joinGroup(index) {
  15356. if (this.groupJson.islock == 2) {
  15357. this.$message.error("位置已被锁定,无法加入");
  15358. return;
  15359. }
  15360. if (
  15361. this.groupStudent[this.toolindex][index].length >
  15362. this.groupJson.number ||
  15363. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  15364. ) {
  15365. this.$message.error("位置已满,无法加入");
  15366. return;
  15367. }
  15368. let params = [
  15369. {
  15370. cid: this.id,
  15371. stage: this.courseType,
  15372. task: this.taskCount,
  15373. tool: this.toolindex,
  15374. g: index,
  15375. uid: this.userid,
  15376. },
  15377. ];
  15378. this.ajax
  15379. .post(this.$store.state.api + "joinGroup", params)
  15380. .then((res) => {
  15381. this.$message.success("加入成功");
  15382. this.getCourseDetail(2);
  15383. })
  15384. .catch((err) => {
  15385. this.$message.error("网络不佳");
  15386. console.error(err);
  15387. });
  15388. },
  15389. exitGroup(id) {
  15390. if (this.groupJson.islock == 2) {
  15391. this.$message.error("位置已被锁定,无法退出");
  15392. return;
  15393. }
  15394. let params = [
  15395. {
  15396. gid: id,
  15397. },
  15398. ];
  15399. this.ajax
  15400. .post(this.$store.state.api + "exitGroup", params)
  15401. .then((res) => {
  15402. this.$message.success("退出成功");
  15403. this.getCourseDetail(2);
  15404. })
  15405. .catch((err) => {
  15406. this.$message.error("网络不佳");
  15407. console.error(err);
  15408. });
  15409. },
  15410. groupUpload(index, task, gindex) {
  15411. this.taskCount = task;
  15412. this.toolindex = index;
  15413. this.groupIndex = gindex;
  15414. this.dialogVisibleGroupWork = true;
  15415. },
  15416. updateGroupChair(user) {
  15417. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  15418. el.label = index;
  15419. return index != user.group;
  15420. });
  15421. this.updateGroupUser = user;
  15422. this.dialogVisibleUpdateGroup = true;
  15423. },
  15424. updateChair() {
  15425. if (
  15426. this.groupStudent[this.toolindex][this.checkChair].length >
  15427. this.groupJson.number ||
  15428. this.groupStudent[this.toolindex][this.checkChair].length ==
  15429. this.groupJson.number
  15430. ) {
  15431. this.$message.error("位置已满,无法加入");
  15432. return;
  15433. }
  15434. let params = [
  15435. {
  15436. cid: this.id,
  15437. stage: this.courseType,
  15438. task: this.taskCount,
  15439. tool: this.toolindex,
  15440. g: this.checkChair,
  15441. uid: this.updateGroupUser.userid,
  15442. },
  15443. ];
  15444. this.ajax
  15445. .post(this.$store.state.api + "joinGroup", params)
  15446. .then((res) => {
  15447. this.$message.success("修改成功");
  15448. this.updateGroupUser = {};
  15449. this.checkChair = "";
  15450. this.updateGroupArray = {};
  15451. this.dialogVisibleUpdateGroup = false;
  15452. this.getCourseDetail(2);
  15453. })
  15454. .catch((err) => {
  15455. this.$message.error("网络不佳");
  15456. console.error(err);
  15457. });
  15458. },
  15459. deleteGroupChair(gindex) {
  15460. this.checkDeleteGroup = [];
  15461. this.deleteGroupUser = JSON.parse(
  15462. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  15463. );
  15464. this.deleteGroupArray = this.groupJson.group[gindex];
  15465. this.groupIndex = gindex;
  15466. this.dialogVisibleDeleteGroup = true;
  15467. },
  15468. async deleteChair() {
  15469. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  15470. const gid =
  15471. this.groupStudent[this.toolindex][this.groupIndex][
  15472. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  15473. this.checkDeleteGroup[i]
  15474. )
  15475. ];
  15476. let params = [
  15477. {
  15478. gid: gid.id,
  15479. },
  15480. ];
  15481. var a = await this.deleteChairA(params);
  15482. if (i == this.checkDeleteGroup.length - 1) {
  15483. this.$message.success("退出成功");
  15484. this.dialogVisibleDeleteGroup = false;
  15485. this.deleteGroupUser = [];
  15486. this.deleteGroupArray = {};
  15487. this.groupIndex = "";
  15488. this.checkDeleteGroup = [];
  15489. this.getCourseDetail(2);
  15490. }
  15491. }
  15492. },
  15493. deleteChairA(params) {
  15494. return new Promise((resolve, reject) => {
  15495. this.ajax
  15496. .post(this.$store.state.api + "exitGroup", params)
  15497. .then((res) => {
  15498. resolve(1);
  15499. })
  15500. .catch((err) => {
  15501. this.$message.error("网络不佳");
  15502. console.error(err);
  15503. });
  15504. });
  15505. },
  15506. contract(i) {
  15507. if (this.isCloseList[i].isClose == 0) {
  15508. this.isCloseList[i].isClose = 1;
  15509. } else {
  15510. this.isCloseList[i].isClose = 0;
  15511. }
  15512. this.$forceUpdate();
  15513. },
  15514. },
  15515. directives: {
  15516. // 使用局部注册指令的方式
  15517. resize: {
  15518. // 指令的名称
  15519. bind(el, binding) {
  15520. // el为绑定的元素,binding为绑定给指令的对象
  15521. let width = "",
  15522. height = "";
  15523. function isReize() {
  15524. const style = document.defaultView.getComputedStyle(el);
  15525. if (width !== style.width || height !== style.height) {
  15526. binding.value(); // 关键
  15527. }
  15528. width = style.width;
  15529. height = style.height;
  15530. }
  15531. el.__vueSetInterval__ = setInterval(isReize, 300);
  15532. },
  15533. unbind(el) {
  15534. clearInterval(el.__vueSetInterval__);
  15535. },
  15536. },
  15537. },
  15538. beforeDestroy() {
  15539. window.onresize = null;
  15540. clearInterval(this.timer);
  15541. this.timer = null;
  15542. clearInterval(this.opertimer);
  15543. this.opertimer = null;
  15544. },
  15545. computed: {
  15546. contentConvent() {
  15547. return function (c) {
  15548. return c
  15549. ? c
  15550. .replaceAll(/\r\n/g, "<br/>")
  15551. .replaceAll(/\n/g, "<br/>")
  15552. .replaceAll(/\s/g, " &nbsp")
  15553. : "";
  15554. };
  15555. },
  15556. checkUpload() {
  15557. return function () {
  15558. var studentK = [];
  15559. if (this.plworkFile.length > 0) {
  15560. for (var z = 0; z < this.plworkFile.length; z++) {
  15561. studentK.push(this.plworkFile[z].username);
  15562. }
  15563. studentK = studentK.join(",");
  15564. }
  15565. var a = this.uploadStudentJuri.filter((el) => {
  15566. return studentK.indexOf(el.userid) == -1;
  15567. });
  15568. return a;
  15569. };
  15570. },
  15571. },
  15572. mounted() {
  15573. if (this.screenType == 2) {
  15574. window.parent.postMessage({ allScreen: 4 }, "*");
  15575. } else if (this.screenType == 3) {
  15576. window.parent.postMessage({ allScreen: 5 }, "*");
  15577. } else if (this.screenType == 1) {
  15578. window.parent.postMessage({ allScreen: 6 }, "*");
  15579. }
  15580. this.setOperationTime();
  15581. this.selectEva();
  15582. this.getCourseDetail();
  15583. this.selectCount();
  15584. this.getHomeWork();
  15585. this.contentDialog = true;
  15586. this.setContent2(true);
  15587. if (this.tType == 4) {
  15588. this.pzDialog = true;
  15589. this.selectPz();
  15590. }
  15591. document.scrollingElement.scrollTop = 0;
  15592. window.addEventListener("resize", () => {
  15593. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  15594. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  15595. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  15596. });
  15597. let _this = this;
  15598. setTimeout(() => {
  15599. // _this.vedioTime = [];
  15600. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  15601. // _this.vedioTime[i] = document.getElementsByClassName(
  15602. // "vjs-duration-display"
  15603. // )[i].textContent;
  15604. // }
  15605. }, 1000);
  15606. },
  15607. };
  15608. </script>
  15609. <style scoped>
  15610. @media screen and (max-width: 1280px) {
  15611. /* .courseIndex > div:first-child(2) {
  15612. width: 15% !important;
  15613. } */
  15614. /* .navText {
  15615. width: 120px !important;
  15616. } */
  15617. .evaCss {
  15618. flex-direction: column !important;
  15619. align-items: center !important;
  15620. }
  15621. .dialog_diy1 >>> .el-dialog {
  15622. width: 100% !important;
  15623. }
  15624. .rightWidthCss {
  15625. width: 100% !important;
  15626. }
  15627. .dialog_diy3 >>> .el-dialog {
  15628. width: 100% !important;
  15629. }
  15630. /* .textTitle >>> .el-form-item__label {
  15631. width: 150px !important;
  15632. } */
  15633. }
  15634. .evaCssMax {
  15635. flex-direction: column !important;
  15636. align-items: center !important;
  15637. }
  15638. .dialog_diy >>> .el-dialog {
  15639. margin-top: 10vh !important;
  15640. }
  15641. .body_student {
  15642. width: 77%;
  15643. height: 100%;
  15644. position: absolute;
  15645. left: 22%;
  15646. top: 0;
  15647. }
  15648. .student_head {
  15649. width: 100%;
  15650. margin: 0 auto;
  15651. padding-bottom: 20px;
  15652. display: flex;
  15653. flex-direction: column;
  15654. flex-wrap: nowrap;
  15655. align-items: flex-start;
  15656. justify-content: flex-start;
  15657. }
  15658. .pb_left {
  15659. width: 20%;
  15660. margin-right: 10px;
  15661. background: rgb(255, 255, 255);
  15662. padding-right: 10px;
  15663. position: fixed;
  15664. height: 100%;
  15665. }
  15666. .wheel > img,
  15667. .project > img,
  15668. .star > img,
  15669. .evaluate > img,
  15670. .up_photo > img,
  15671. .chapter_add > img,
  15672. .deleteWord > img,
  15673. .question > img,
  15674. .homework > img {
  15675. width: 100%;
  15676. height: 100%;
  15677. }
  15678. .upCover > img {
  15679. width: 131px;
  15680. height: 69px;
  15681. object-fit: cover;
  15682. }
  15683. .upCover {
  15684. width: calc(100% / 3.5);
  15685. position: relative;
  15686. margin: 0 15px 10px 0;
  15687. display: flex;
  15688. flex-direction: column;
  15689. flex-wrap: nowrap;
  15690. justify-content: center;
  15691. align-content: center;
  15692. align-items: center;
  15693. height: fit-content;
  15694. }
  15695. .upCover2 {
  15696. width: 100%;
  15697. position: relative;
  15698. margin: 0 15px 10px 0;
  15699. display: flex;
  15700. flex-direction: column;
  15701. flex-wrap: nowrap;
  15702. justify-content: center;
  15703. align-content: center;
  15704. align-items: center;
  15705. }
  15706. .upCover2 > img {
  15707. width: 100%;
  15708. height: 90px;
  15709. object-fit: contain;
  15710. }
  15711. .chapter_add {
  15712. width: 120px;
  15713. position: relative;
  15714. text-align: center;
  15715. }
  15716. .isAddThings {
  15717. margin-top: 20px;
  15718. position: relative;
  15719. text-align: center;
  15720. background: #f7f8fa;
  15721. height: 90px;
  15722. width: 90px;
  15723. display: flex;
  15724. flex-direction: column;
  15725. justify-content: center;
  15726. }
  15727. .deleteWord {
  15728. width: 22px;
  15729. height: 22px;
  15730. position: absolute;
  15731. right: -5px;
  15732. top: -5px;
  15733. cursor: pointer;
  15734. }
  15735. .box_course {
  15736. /* width: 60%; */
  15737. width: 81%;
  15738. }
  15739. .wheel {
  15740. width: 100%;
  15741. /* height: 100%; */
  15742. height: 650px;
  15743. }
  15744. .right_box {
  15745. display: flex;
  15746. flex-direction: column;
  15747. margin-left: 30px;
  15748. justify-content: space-around;
  15749. }
  15750. .right_box_title {
  15751. font-size: 23px;
  15752. }
  15753. .people {
  15754. display: flex;
  15755. }
  15756. .student_body {
  15757. width: 100%;
  15758. margin: 0 auto;
  15759. margin-top: 10px;
  15760. padding: 0 0 20px;
  15761. }
  15762. .study_top {
  15763. margin-top: 70px;
  15764. width: 100%;
  15765. /* overflow: auto; */
  15766. height: auto;
  15767. }
  15768. .study_top .checkbox {
  15769. display: flex;
  15770. align-items: center;
  15771. padding: 15px 0 15px 30px;
  15772. flex: 0 0 auto;
  15773. font-weight: bold;
  15774. border-bottom: 1px solid #eee;
  15775. }
  15776. .study_top .check {
  15777. padding-bottom: 5px;
  15778. text-align: center;
  15779. cursor: pointer;
  15780. height: 30px;
  15781. box-sizing: border-box;
  15782. display: flex;
  15783. }
  15784. .study_top .checked {
  15785. border-bottom: 4px solid #3fc6a0;
  15786. padding-bottom: 5px;
  15787. color: #3fc6a0;
  15788. display: flex;
  15789. height: 35px;
  15790. }
  15791. .study_top .checked > div,
  15792. .study_top .check > div {
  15793. margin-right: 5px;
  15794. }
  15795. .videoTop {
  15796. display: flex;
  15797. flex-direction: row;
  15798. justify-content: space-between;
  15799. background: #fff;
  15800. align-items: center;
  15801. width: 95%;
  15802. padding: 20px;
  15803. }
  15804. .upbtn {
  15805. margin: 25px;
  15806. background: #70afdb;
  15807. color: #fff;
  15808. width: 120px;
  15809. text-align: center;
  15810. height: 30px;
  15811. line-height: 30px;
  15812. font-size: 13px;
  15813. border-radius: 5px;
  15814. cursor: pointer;
  15815. }
  15816. .filebox {
  15817. display: flex;
  15818. flex-wrap: wrap;
  15819. flex-direction: column;
  15820. padding: 15px 0 5px;
  15821. }
  15822. .filebox .tooldetail {
  15823. width: 100%;
  15824. margin: 0px 12px;
  15825. background: rgb(247, 247, 247);
  15826. padding: 20px;
  15827. line-height: 30px;
  15828. word-break: break-word;
  15829. font-size:18px;
  15830. }
  15831. .file {
  15832. display: flex;
  15833. flex-direction: column;
  15834. align-items: center;
  15835. justify-content: center;
  15836. cursor: pointer;
  15837. width: 200px;
  15838. }
  15839. .file div {
  15840. margin-top: 10px;
  15841. width: 150px;
  15842. text-align: center;
  15843. overflow: hidden;
  15844. white-space: nowrap;
  15845. text-overflow: ellipsis;
  15846. }
  15847. .media {
  15848. display: flex;
  15849. flex-direction: column;
  15850. align-items: center;
  15851. justify-content: center;
  15852. margin: 0 20px 20px 0;
  15853. cursor: pointer;
  15854. margin: 12px 0 5px 15px;
  15855. overflow: hidden;
  15856. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  15857. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  15858. box-sizing: border-box;
  15859. }
  15860. .media img {
  15861. height: 90px;
  15862. width: 160px;
  15863. object-fit: cover;
  15864. }
  15865. .media .title {
  15866. padding: 5px;
  15867. text-align: left;
  15868. width: 100%;
  15869. box-sizing: border-box;
  15870. }
  15871. .media .btn {
  15872. width: 100%;
  15873. height: 35px;
  15874. line-height: 35px;
  15875. color: #fff;
  15876. background: #606060;
  15877. text-align: center;
  15878. overflow: hidden;
  15879. white-space: nowrap;
  15880. text-overflow: ellipsis;
  15881. }
  15882. .detail_content_top {
  15883. width: 100%;
  15884. padding: 25px 0 25px 0;
  15885. }
  15886. .detail_title {
  15887. text-align: center;
  15888. font-size: 24px;
  15889. }
  15890. .detail_time {
  15891. font-size: 13px;
  15892. padding: 15px 0 0 40px;
  15893. }
  15894. .detail_content {
  15895. line-height: 2pc;
  15896. width: 90%;
  15897. margin: 0 auto;
  15898. padding-top: 30px;
  15899. text-indent: 30px;
  15900. overflow: auto;
  15901. height: 200px;
  15902. }
  15903. .score_box >>> .el-rate {
  15904. margin-left: 10px;
  15905. }
  15906. .dialog_change >>> .el-dialog {
  15907. border-radius: 5px;
  15908. }
  15909. .dialog_change >>> .el-dialog__header {
  15910. background: #f2f2f2;
  15911. text-align: center;
  15912. }
  15913. .dialog_change >>> .el-dialog__title {
  15914. line-height: 5px;
  15915. }
  15916. .dialog_change >>> .el-dialog__body {
  15917. background: #fff;
  15918. padding: 10px 20px;
  15919. }
  15920. .score_box {
  15921. display: flex;
  15922. align-items: center;
  15923. margin-bottom: 18px;
  15924. margin-top: 20px;
  15925. }
  15926. .up_photo {
  15927. width: 120px;
  15928. cursor: pointer;
  15929. margin-top: 10px;
  15930. }
  15931. .up_photo2 {
  15932. width: 180px;
  15933. box-sizing: border-box;
  15934. min-width: 180px;
  15935. height: 180px;
  15936. max-height: 180px;
  15937. min-height: 180px;
  15938. cursor: pointer;
  15939. display: flex;
  15940. flex-direction: column;
  15941. align-items: center;
  15942. justify-content: center;
  15943. background: rgb(242, 246, 255);
  15944. /* padding: 25px; */
  15945. margin-bottom: 10px;
  15946. }
  15947. .up_photo2 img {
  15948. width: 50%;
  15949. height: auto;
  15950. }
  15951. .up_photo2 span {
  15952. color: #898989;
  15953. }
  15954. .plworkBox {
  15955. display: flex;
  15956. align-items: center;
  15957. margin-top: 10px;
  15958. flex-wrap: wrap;
  15959. }
  15960. .upload_send {
  15961. margin: 30px auto 30px;
  15962. width: 60%;
  15963. background: #169bd6;
  15964. text-align: center;
  15965. height: 35px;
  15966. line-height: 35px;
  15967. color: #fff;
  15968. border-radius: 5px;
  15969. cursor: pointer;
  15970. }
  15971. .marginT {
  15972. margin-top: 20px;
  15973. }
  15974. .cd_content_steps {
  15975. display: flex;
  15976. width: 90%;
  15977. justify-content: space-around;
  15978. border-top: 1px solid #eeeeee;
  15979. }
  15980. .cd_steps_box {
  15981. display: flex;
  15982. justify-content: center;
  15983. align-items: center;
  15984. flex-direction: column;
  15985. cursor: pointer;
  15986. }
  15987. .first {
  15988. display: flex;
  15989. align-items: center;
  15990. margin: 15px 0 20px 0;
  15991. font-size: 20px;
  15992. }
  15993. .first > div:nth-child(2) {
  15994. font-size: 16px !important;
  15995. padding-left: 10px;
  15996. line-height: 26px;
  15997. box-sizing: border-box;
  15998. }
  15999. .blue_box_one {
  16000. text-align: center;
  16001. color: #fff;
  16002. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  16003. border-radius: 7px;
  16004. margin: 10px;
  16005. cursor: pointer;
  16006. width: 95%;
  16007. height: 45px;
  16008. display: flex;
  16009. flex-direction: row;
  16010. justify-content: flex-start;
  16011. align-items: center;
  16012. }
  16013. .blue_box_one > div:nth-child(1) {
  16014. line-height: 30px;
  16015. margin: 0 5px 0 10px;
  16016. width: 30%;
  16017. min-width: 70px;
  16018. border-radius: 4px;
  16019. }
  16020. .blue_box_one > div:nth-child(2) {
  16021. white-space: nowrap;
  16022. text-overflow: ellipsis;
  16023. overflow: hidden;
  16024. word-break: break-all;
  16025. width: 70%;
  16026. text-align: left;
  16027. margin-right: 10px;
  16028. max-width: calc(100% - 85px);
  16029. }
  16030. .blue_box_one > div:nth-child(2):hover {
  16031. overflow: hidden;
  16032. text-overflow: ellipsis;
  16033. white-space: nowrap;
  16034. cursor: pointer;
  16035. }
  16036. .upFile {
  16037. margin: 0 auto;
  16038. width: 120px;
  16039. background: #70afdb;
  16040. color: #fff;
  16041. height: 30px;
  16042. text-align: center;
  16043. line-height: 30px;
  16044. border-radius: 5px;
  16045. font-size: 14px;
  16046. cursor: pointer;
  16047. }
  16048. .courseTitle {
  16049. background: #205cc6;
  16050. width: 85%;
  16051. margin: 10px auto;
  16052. color: #fff;
  16053. border-radius: 5px;
  16054. padding: 10px 10px;
  16055. display: flex;
  16056. flex-direction: row;
  16057. align-items: center;
  16058. justify-content: space-between;
  16059. text-align: center;
  16060. }
  16061. .courseTitle .ctitle {
  16062. font-weight: bold;
  16063. font-size: 20px;
  16064. white-space: nowrap;
  16065. overflow: hidden;
  16066. text-overflow: ellipsis;
  16067. }
  16068. .courseTitle .inviteBox {
  16069. font-size: 14px;
  16070. margin-top: 5px;
  16071. color: #a6cbff;
  16072. }
  16073. .courseTitle >>> .el-tooltip {
  16074. width: 100%;
  16075. white-space: nowrap;
  16076. overflow: hidden;
  16077. text-overflow: ellipsis;
  16078. word-break: break-word;
  16079. }
  16080. .ml {
  16081. margin-left: 20px;
  16082. color: #5b7dba;
  16083. border-left: 3px solid #5b7dba;
  16084. padding-left: 5px;
  16085. font-weight: bold;
  16086. }
  16087. .return {
  16088. width: 2rem;
  16089. height: 2rem;
  16090. cursor: pointer;
  16091. }
  16092. .return > img {
  16093. width: 100%;
  16094. height: 100%;
  16095. }
  16096. .returnBtn {
  16097. background: #499eef;
  16098. width: 65px;
  16099. height: 30px;
  16100. color: #fff;
  16101. text-align: center;
  16102. line-height: 32px;
  16103. margin-right: 20px;
  16104. cursor: pointer;
  16105. border-radius: 5px;
  16106. font-size: 14px;
  16107. }
  16108. .tool {
  16109. display: flex;
  16110. flex-direction: column;
  16111. flex-wrap: nowrap;
  16112. width: 13%;
  16113. margin: 0 30px;
  16114. align-items: center;
  16115. }
  16116. .whiteBIcon {
  16117. width: 150px;
  16118. cursor: pointer;
  16119. }
  16120. .whiteBIcon > img {
  16121. width: 100%;
  16122. height: 100%;
  16123. }
  16124. .mask {
  16125. background-color: rgba(0, 0, 0, 0);
  16126. position: fixed;
  16127. top: 0;
  16128. left: 0;
  16129. width: 100%;
  16130. height: 100%;
  16131. z-index: 20000;
  16132. display: flex;
  16133. align-items: center;
  16134. justify-content: center;
  16135. }
  16136. .progressBox {
  16137. width: 500px;
  16138. height: 180px;
  16139. background: #fff;
  16140. border-radius: 10px;
  16141. box-shadow: 0 0 6px 1px #bfbfbf;
  16142. display: flex;
  16143. align-items: center;
  16144. justify-content: center;
  16145. flex-direction: column;
  16146. position: relative;
  16147. color: #6c6c6c;
  16148. }
  16149. .progressBox >>> .el-progress-bar__outer {
  16150. background-color: #d1dfff !important;
  16151. }
  16152. .progressBox .lbox {
  16153. height: 50px;
  16154. font-size: 19px;
  16155. display: flex;
  16156. align-items: center;
  16157. color: #747474;
  16158. }
  16159. .progressBox .lbox img {
  16160. width: 40px;
  16161. margin-right: 20px;
  16162. }
  16163. .closeCss {
  16164. position: absolute;
  16165. top: 8px;
  16166. right: 8px;
  16167. cursor: pointer;
  16168. width: 20px;
  16169. height: 20px;
  16170. }
  16171. .closeCss > img {
  16172. width: 100%;
  16173. height: 100%;
  16174. }
  16175. .uploadVedio {
  16176. display: flex;
  16177. flex-direction: column;
  16178. flex-wrap: nowrap;
  16179. justify-content: center;
  16180. align-items: center;
  16181. margin: 0 15px 10px 0;
  16182. }
  16183. .uploadVedio > img {
  16184. width: 30px;
  16185. height: 30px;
  16186. }
  16187. .uploadVedio > span {
  16188. white-space: nowrap;
  16189. overflow: hidden;
  16190. text-overflow: ellipsis;
  16191. width: 75px;
  16192. margin-top: 7px;
  16193. }
  16194. .picName {
  16195. white-space: nowrap;
  16196. overflow: hidden;
  16197. text-overflow: ellipsis;
  16198. width: 75px;
  16199. margin-top: 7px;
  16200. }
  16201. .new_top {
  16202. display: flex;
  16203. background: #fff;
  16204. flex-direction: row;
  16205. justify-content: flex-start;
  16206. align-items: center;
  16207. height: 60px;
  16208. position: relative;
  16209. }
  16210. .before {
  16211. position: absolute;
  16212. background: #c3dad4;
  16213. width: 6px;
  16214. height: 100%;
  16215. }
  16216. .courseIndex {
  16217. display: flex;
  16218. flex-direction: row;
  16219. align-items: center;
  16220. width: calc(100% - 600px);
  16221. }
  16222. .courseIndex > div:nth-child(1) {
  16223. margin: 0 20px;
  16224. padding-left: 5px;
  16225. font-size: 24px;
  16226. min-width: 100px;
  16227. font-weight: bold;
  16228. border-left: 4px solid #3363b9;
  16229. height: 35px;
  16230. text-align: center;
  16231. line-height: 35px;
  16232. }
  16233. .courseIndex > div:nth-child(2) {
  16234. font-size: 23px;
  16235. /* width: 300px; */
  16236. max-width: calc(100% - 180px);
  16237. white-space: nowrap;
  16238. overflow: hidden;
  16239. text-overflow: ellipsis;
  16240. }
  16241. .courseIndex > div:nth-child(3) {
  16242. border-bottom: 1px solid #d7d7d7;
  16243. padding-bottom: 5px;
  16244. background: #49a0f0;
  16245. width: 55px;
  16246. min-width: 55px;
  16247. border-radius: 5px;
  16248. color: #fff;
  16249. text-align: center;
  16250. height: 20px;
  16251. line-height: 26px;
  16252. font-size: 14px;
  16253. margin: 0 0 0 10px;
  16254. }
  16255. .course_text {
  16256. padding: 20px 0 0 15px;
  16257. text-indent: 30px;
  16258. width: 80%;
  16259. min-height: 20px;
  16260. }
  16261. .vedioList {
  16262. background: #f2f2f2;
  16263. border: 1px solid #ececec;
  16264. /* width: 38.8%; */
  16265. width: 100%;
  16266. height: 445px;
  16267. border-radius: 10px;
  16268. overflow: hidden;
  16269. }
  16270. .vedioNav {
  16271. margin: 10px 0 0 15px;
  16272. border-bottom: 1px solid #d7d7d7;
  16273. padding-bottom: 5px;
  16274. background: #96d1ff;
  16275. width: 55px;
  16276. min-width: 55px;
  16277. border-radius: 5px;
  16278. color: #fff;
  16279. text-align: center;
  16280. height: 20px;
  16281. line-height: 26px;
  16282. font-size: 14px;
  16283. }
  16284. .queTop {
  16285. display: flex;
  16286. padding: 20px 0 20px 30px;
  16287. width: 100%;
  16288. flex-direction: row;
  16289. justify-content: flex-start;
  16290. align-items: center;
  16291. border-bottom: 1px solid #eeeeee;
  16292. box-sizing: border-box;
  16293. }
  16294. .question {
  16295. width: 40px;
  16296. margin-right: 10px;
  16297. margin-top: 7px;
  16298. }
  16299. .queTitle {
  16300. margin-left: 5px;
  16301. font-size: 25px;
  16302. display: flex;
  16303. align-items: center;
  16304. }
  16305. .addEditor {
  16306. width: 100px;
  16307. height: 30px;
  16308. background: #42cda6;
  16309. color: #fff;
  16310. border-radius: 5px;
  16311. text-align: center;
  16312. line-height: 30px;
  16313. box-shadow: 1px 3px 6px 1px #bfbfbf;
  16314. cursor: pointer;
  16315. }
  16316. .vedioName {
  16317. /* text-overflow: ellipsis;
  16318. top: 8px;
  16319. font-size: 14px;
  16320. overflow: hidden;
  16321. width: 100%;
  16322. word-break: break-all;
  16323. white-space: nowrap; */
  16324. cursor: pointer;
  16325. margin: 0px 0px 10px 5px;
  16326. white-space: nowrap;
  16327. overflow: hidden;
  16328. text-overflow: ellipsis;
  16329. width: 100%;
  16330. }
  16331. .vedioTime {
  16332. width: 35px;
  16333. position: absolute;
  16334. color: #fff;
  16335. bottom: 0px;
  16336. right: 0px;
  16337. text-align: center;
  16338. background: #46411f;
  16339. height: 20px;
  16340. font-size: 14px;
  16341. line-height: 20px;
  16342. }
  16343. .homework {
  16344. width: 200px;
  16345. display: flex;
  16346. flex-direction: column;
  16347. flex-wrap: nowrap;
  16348. align-items: center;
  16349. cursor: pointer;
  16350. }
  16351. .homebox {
  16352. display: flex;
  16353. flex-wrap: wrap;
  16354. flex-direction: row;
  16355. justify-content: flex-start;
  16356. align-items: center;
  16357. padding: 15px 0;
  16358. }
  16359. .isChooseActive {
  16360. color: #3e88f4;
  16361. border-bottom: 2px solid #2f80f3;
  16362. }
  16363. .chooseWho {
  16364. display: flex;
  16365. width: 100%;
  16366. flex-direction: row;
  16367. flex-wrap: nowrap;
  16368. justify-content: flex-start;
  16369. padding-bottom: 10px;
  16370. }
  16371. .chooseWho > div {
  16372. cursor: pointer;
  16373. padding-bottom: 10px;
  16374. margin: 0 30px;
  16375. }
  16376. .addPoint > div > img {
  16377. cursor: pointer;
  16378. margin: 0 10px;
  16379. width: 85px;
  16380. border-radius: 15px;
  16381. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  16382. }
  16383. .addPoint > div {
  16384. display: flex;
  16385. flex-direction: column;
  16386. flex-wrap: nowrap;
  16387. align-items: center;
  16388. }
  16389. .isBorder > div {
  16390. margin: 0 0 10px 0;
  16391. align-items: flex-start !important;
  16392. }
  16393. .noiframeBox {
  16394. display: flex;
  16395. flex-wrap: wrap;
  16396. }
  16397. .iframeBox iframe {
  16398. width: 100%;
  16399. height: 800px;
  16400. border: none;
  16401. margin-bottom: 20px;
  16402. border: 1px solid #ccc;
  16403. }
  16404. .upload_toolBtn {
  16405. background: #6b92c9;
  16406. color: #fff;
  16407. width: 110px;
  16408. text-align: center;
  16409. height: 35px;
  16410. line-height: 35px;
  16411. font-size: 14px;
  16412. border-radius: 5px;
  16413. cursor: pointer;
  16414. position: absolute;
  16415. right: 10px;
  16416. bottom: 0;
  16417. }
  16418. .binfo_input,
  16419. .pj {
  16420. font: inherit;
  16421. color: currentColor;
  16422. width: 100%;
  16423. margin: 0;
  16424. padding: 15px 14px;
  16425. display: block;
  16426. min-width: 0;
  16427. outline: none;
  16428. box-sizing: content-box;
  16429. background: none;
  16430. -webkit-tap-highlight-color: transparent;
  16431. border: 1px solid rgba(0, 0, 0, 0.23);
  16432. border-radius: 4px;
  16433. box-sizing: border-box;
  16434. resize: none;
  16435. }
  16436. .binfo_input:focus-visible {
  16437. border: 1px solid rgba(61, 103, 188);
  16438. }
  16439. .dialog_diy >>> .el-dialog__header,
  16440. .dialog_diy1 >>> .el-dialog__header {
  16441. background: #454545 !important;
  16442. padding: 15px 20px;
  16443. }
  16444. .dialog_diy >>> .el-dialog__title,
  16445. .dialog_diy1 >>> .el-dialog__title {
  16446. color: #fff;
  16447. }
  16448. .dialog_diy >>> .el-dialog__headerbtn,
  16449. .dialog_diy1 >>> .el-dialog__headerbtn {
  16450. top: 19px;
  16451. }
  16452. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  16453. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  16454. color: #fff;
  16455. }
  16456. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  16457. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  16458. color: #fff;
  16459. }
  16460. .dialog_diy1 >>> .el-dialog__body {
  16461. padding: 0;
  16462. }
  16463. .dialog_diy >>> .el-dialog__body,
  16464. .dialog_diy >>> .el-dialog__footer,
  16465. .dialog_diy1 >>> .el-dialog__footer {
  16466. background: #fafafa;
  16467. }
  16468. .a_addBox {
  16469. margin: 10px 0;
  16470. background: #fff;
  16471. padding: 15px;
  16472. max-height: 400px;
  16473. overflow: auto;
  16474. }
  16475. .a_add_box {
  16476. border-bottom: 2px solid #eee;
  16477. padding-bottom: 10px;
  16478. }
  16479. .a_add_head {
  16480. display: flex;
  16481. align-items: flex-start;
  16482. /* justify-content: space-between; */
  16483. flex-direction: column;
  16484. /* flex-direction: row; */
  16485. margin: 10px 0 20px 0;
  16486. font-size: 18px;
  16487. width: 100%;
  16488. }
  16489. .a_add_head .a_add_head_input {
  16490. width: 300px;
  16491. }
  16492. .a_add_head .a_add_head_div {
  16493. display: flex;
  16494. align-items: center;
  16495. justify-content: space-between;
  16496. }
  16497. .a_add_body {
  16498. display: flex;
  16499. align-items: center;
  16500. }
  16501. .a_add_input {
  16502. display: flex;
  16503. align-items: center;
  16504. flex-wrap: wrap;
  16505. }
  16506. .a_add_input >>> el-radio-group {
  16507. margin: 10px 0;
  16508. }
  16509. .a_add_input >>> .el-radio,
  16510. .a_add_input >>> .el-checkbox {
  16511. margin-bottom: 10px;
  16512. display: flex;
  16513. flex-direction: row;
  16514. flex-wrap: nowrap;
  16515. align-items: center;
  16516. }
  16517. .redioStyle >>> .el-radio__label {
  16518. font-size: 18px;
  16519. }
  16520. .redioStyle >>> .el-checkbox__label {
  16521. font-size: 18px;
  16522. }
  16523. .toolHeng2 {
  16524. width: 100%;
  16525. }
  16526. .toolHeng {
  16527. display: flex;
  16528. flex-direction: row;
  16529. flex-wrap: wrap;
  16530. justify-content: flex-start;
  16531. align-items: center;
  16532. width: 100%;
  16533. }
  16534. .toolHeng > div {
  16535. padding-left: 20px;
  16536. }
  16537. .isWidth {
  16538. width: 20%;
  16539. }
  16540. .textTitle {
  16541. display: flex;
  16542. flex-direction: row;
  16543. flex-wrap: nowrap;
  16544. align-items: center;
  16545. width: 95%;
  16546. }
  16547. .textTitle >>> .el-form-item__label {
  16548. font-size: 22px;
  16549. color: #918f8f;
  16550. width: 100px;
  16551. }
  16552. .textTitle >>> .el-form-item__content {
  16553. width: calc(100% - 100px);
  16554. }
  16555. .textCss >>> .el-dialog {
  16556. width: 800px !important;
  16557. height: 400px;
  16558. background: #fafafa;
  16559. }
  16560. .textCss >>> .el-dialog__body {
  16561. margin: 55px 8% 0 8%;
  16562. padding: 0 !important;
  16563. }
  16564. .textCss >>> .el-dialog__footer {
  16565. padding-top: 38px;
  16566. }
  16567. .toolsCss >>> .el-dialog__body {
  16568. padding: 20px;
  16569. }
  16570. .lineCss >>> .el-dialog__body {
  16571. display: flex;
  16572. flex-direction: row;
  16573. align-items: center;
  16574. justify-content: center;
  16575. }
  16576. .newNav {
  16577. display: flex;
  16578. flex-direction: row;
  16579. align-items: baseline;
  16580. justify-content: flex-start;
  16581. }
  16582. .navText {
  16583. cursor: pointer;
  16584. margin: 0px 0px 10px 5px;
  16585. white-space: nowrap;
  16586. overflow: hidden;
  16587. text-overflow: ellipsis;
  16588. /* width: 300px; */
  16589. width: 100%;
  16590. }
  16591. .noVedio {
  16592. display: flex;
  16593. flex-direction: row;
  16594. justify-content: center;
  16595. align-content: center;
  16596. }
  16597. .noNavText {
  16598. cursor: pointer;
  16599. margin: 0px 0px 10px 5px;
  16600. width: 112px;
  16601. }
  16602. .listNoVedio {
  16603. margin: 0 0 0 30px;
  16604. width: 97%;
  16605. }
  16606. .video-player >>> .video-js {
  16607. height: 100%;
  16608. }
  16609. .hangVedioList {
  16610. width: 90% !important;
  16611. height: 150px !important;
  16612. margin: 20px 0 0 30px;
  16613. }
  16614. .hangVedio {
  16615. width: 100%;
  16616. height: 170px !important;
  16617. align-items: flex-start !important;
  16618. }
  16619. .hangHand {
  16620. height: 150px !important;
  16621. }
  16622. .twoChild {
  16623. width: 95%;
  16624. margin: 10px;
  16625. border-radius: 5px;
  16626. background: #f2f2f2;
  16627. display: flex;
  16628. flex-direction: column;
  16629. flex-wrap: nowrap;
  16630. justify-content: flex-start;
  16631. align-items: flex-start;
  16632. transition: all 0.5s;
  16633. overflow: hidden;
  16634. height: 0;
  16635. background: #e7f3ff;
  16636. }
  16637. .twoChild > div:nth-child(1) {
  16638. margin-top: 5px;
  16639. }
  16640. .navChild {
  16641. width: 100%;
  16642. cursor: pointer;
  16643. margin-bottom: 10px;
  16644. position: relative;
  16645. }
  16646. .navChild img {
  16647. position: absolute;
  16648. right: 11px;
  16649. width: 15px;
  16650. top: 50%;
  16651. transform: translateY(-50%);
  16652. }
  16653. .navActive {
  16654. height: auto;
  16655. }
  16656. .navTask {
  16657. display: flex;
  16658. flex-direction: row;
  16659. flex-wrap: nowrap;
  16660. align-items: center;
  16661. align-content: flex-start;
  16662. height: 40px;
  16663. justify-content: flex-start;
  16664. padding: 0 10px;
  16665. width: 100%;
  16666. box-sizing: border-box;
  16667. }
  16668. .navTaskname {
  16669. white-space: nowrap;
  16670. text-overflow: ellipsis;
  16671. overflow: hidden;
  16672. word-break: break-all;
  16673. padding-left: 5px;
  16674. }
  16675. .openTaskActive {
  16676. color: #4386e6;
  16677. }
  16678. .iframeName {
  16679. margin: 5px 0;
  16680. border-left: 4px solid #41c4a4;
  16681. padding-left: 4px;
  16682. }
  16683. .toolTitle {
  16684. margin: 0px 0px 20px;
  16685. font-size: 20px;
  16686. font-weight: 500;
  16687. border-left: 4px solid #41c4a4;
  16688. padding-left: 4px;
  16689. }
  16690. .cru_selectBox {
  16691. overflow: auto;
  16692. width: 96%;
  16693. margin: 0 auto;
  16694. height: calc(100% - 40px - 21px - 20px);
  16695. }
  16696. .cru_selectBox::-webkit-scrollbar,
  16697. .study_top::-webkit-scrollbar,
  16698. .textContent::-webkit-scrollbar {
  16699. /*滚动条整体样式*/
  16700. width: 6px;
  16701. /*高宽分别对应横竖滚动条的尺寸*/
  16702. height: 6px;
  16703. }
  16704. /*定义滚动条轨道 内阴影+圆角*/
  16705. .cru_selectBox::-webkit-scrollbar-track,
  16706. .study_top::-webkit-scrollbar-track,
  16707. .textContent::-webkit-scrollbar {
  16708. border-radius: 10px;
  16709. background-color: #b8bdc9;
  16710. }
  16711. /*定义滑块 内阴影+圆角*/
  16712. .cru_selectBox::-webkit-scrollbar-thumb,
  16713. .study_top::-webkit-scrollbar-thumb,
  16714. .textContent::-webkit-scrollbar-thumb {
  16715. border-radius: 10px;
  16716. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  16717. background-color: #2c5ab3;
  16718. }
  16719. .vedioBox {
  16720. border-radius: 20px;
  16721. background: #fff;
  16722. margin-bottom: 10px;
  16723. }
  16724. .taskBox {
  16725. margin: 15px auto 20px;
  16726. background: #f7f7f7;
  16727. width: 97%;
  16728. border-radius: 10px;
  16729. }
  16730. .vedioTaskBox {
  16731. width: 100%;
  16732. display: flex;
  16733. flex-direction: row;
  16734. flex-wrap: nowrap;
  16735. align-items: flex-start;
  16736. position: relative;
  16737. }
  16738. .toolBox {
  16739. padding: 20px 0 0 0;
  16740. display: flex;
  16741. }
  16742. .btnAll {
  16743. position: absolute;
  16744. right: 0;
  16745. display: flex;
  16746. flex-direction: row;
  16747. flex-wrap: nowrap;
  16748. align-items: center;
  16749. }
  16750. .vedioTimeBox {
  16751. display: flex;
  16752. flex-direction: row;
  16753. align-items: center;
  16754. flex-wrap: nowrap;
  16755. position: relative;
  16756. }
  16757. .navBox {
  16758. background: #fff;
  16759. height: calc(100% - 40px);
  16760. padding: 5px 1px 0;
  16761. overflow-y: auto;
  16762. overflow-x: hidden;
  16763. }
  16764. .worksBox {
  16765. padding: 5px 0 0 10px;
  16766. border-bottom: 1px solid #eeeeee;
  16767. }
  16768. .worksBTitle {
  16769. font-size: 20px;
  16770. padding-bottom: 15px;
  16771. border-bottom: 1px solid #eeeeee;
  16772. display: flex;
  16773. align-items: center;
  16774. }
  16775. .greenBox {
  16776. width: 5px;
  16777. height: 30px;
  16778. background: #63b6fa;
  16779. margin-right: 5px;
  16780. }
  16781. .worksDetailBox {
  16782. display: flex;
  16783. width: 100%;
  16784. flex-direction: row;
  16785. flex-wrap: wrap;
  16786. align-items: flex-end;
  16787. justify-content: flex-start;
  16788. padding: 15px 0;
  16789. }
  16790. .works {
  16791. display: flex;
  16792. flex-direction: column;
  16793. flex-wrap: nowrap;
  16794. align-items: flex-start;
  16795. justify-content: flex-start;
  16796. align-content: center;
  16797. max-width: 240px;
  16798. width: calc(100% / 3 - 10px);
  16799. height: auto;
  16800. margin-right: 10px;
  16801. margin-bottom: 10px;
  16802. overflow: hidden;
  16803. height: 140px;
  16804. box-shadow: 0 0 6px 1px #dfdada;
  16805. border-radius: 15px;
  16806. }
  16807. .workImg {
  16808. width: 100%;
  16809. /* height: calc(100% - 40px); */
  16810. height: 105px;
  16811. position: relative;
  16812. }
  16813. .workImg > img {
  16814. width: 100%;
  16815. height: 100%;
  16816. object-fit: contain;
  16817. cursor: pointer;
  16818. }
  16819. .worksName {
  16820. height: 40px;
  16821. line-height: 40px;
  16822. display: flex;
  16823. width: 100%;
  16824. flex-direction: row;
  16825. flex-wrap: nowrap;
  16826. justify-content: space-between;
  16827. align-items: center;
  16828. margin: 0 0 0 10px;
  16829. }
  16830. .worksName > div:nth-child(1) {
  16831. width: 110px;
  16832. white-space: nowrap;
  16833. overflow: hidden;
  16834. text-overflow: ellipsis;
  16835. }
  16836. .worksName > div:nth-child(2) {
  16837. color: #b7b4b5;
  16838. }
  16839. .noWorksS {
  16840. padding: 15px 0;
  16841. display: flex;
  16842. flex-direction: row;
  16843. flex-wrap: wrap;
  16844. align-items: center;
  16845. justify-content: flex-start;
  16846. }
  16847. .noWorksName,
  16848. .isWorksName {
  16849. background: #7cbcf1;
  16850. color: #fff;
  16851. width: 90px;
  16852. height: 25px;
  16853. text-align: center;
  16854. line-height: 25px;
  16855. border-radius: 5px;
  16856. margin: 10px 15px 10px 0;
  16857. white-space: nowrap;
  16858. overflow: hidden;
  16859. padding: 5px;
  16860. text-overflow: ellipsis;
  16861. cursor: pointer;
  16862. }
  16863. .isWorksName {
  16864. background: #46a1eb !important;
  16865. width: 100px;
  16866. height: 40px;
  16867. line-height: 40px;
  16868. position: relative;
  16869. }
  16870. .noWorksName:hover {
  16871. background: #46a1eb !important;
  16872. }
  16873. .title {
  16874. background: #1e5cc9;
  16875. /* width: 98%; */
  16876. height: 45px;
  16877. color: #fff;
  16878. line-height: 45px;
  16879. padding-left: 20px;
  16880. box-sizing: border-box;
  16881. }
  16882. .textBox {
  16883. font-size: 20px;
  16884. width: 90%;
  16885. display: flex;
  16886. flex-direction: column;
  16887. align-items: center;
  16888. margin: 20px auto 0;
  16889. max-height: 500px;
  16890. overflow: auto;
  16891. }
  16892. .textContent {
  16893. font-size: 18px;
  16894. width: 95%;
  16895. max-width: 95%;
  16896. }
  16897. .answerBg {
  16898. background: url("../assets/icon/answerBgNew.png") no-repeat;
  16899. background-size: 100% 100%;
  16900. width: 100%;
  16901. height: 100%;
  16902. color: #fff;
  16903. text-align: center;
  16904. display: flex;
  16905. flex-direction: column;
  16906. flex-wrap: nowrap;
  16907. align-items: center;
  16908. position: relative;
  16909. justify-content: center;
  16910. }
  16911. .answerBg > div:nth-child(1) {
  16912. /* font-size: 22px;
  16913. padding: 25px 0 10px; */
  16914. }
  16915. .answerContent {
  16916. width: 215px;
  16917. max-height: 60px;
  16918. word-break: break-all;
  16919. text-align: center;
  16920. /* white-space: nowrap; */
  16921. overflow: hidden;
  16922. text-overflow: ellipsis;
  16923. /* padding: 23px 0 0; */
  16924. -webkit-line-clamp: 3;
  16925. -webkit-box-orient: vertical;
  16926. display: -webkit-box;
  16927. font-size: 15px;
  16928. cursor: pointer;
  16929. }
  16930. .elist_input_box {
  16931. display: flex;
  16932. align-items: flex-start;
  16933. flex-wrap: nowrap;
  16934. padding: 10px 0 15px 30px;
  16935. flex-direction: column;
  16936. }
  16937. .elist_input {
  16938. /* width: 40%; */
  16939. width: 100%;
  16940. }
  16941. .elist_input .elist_input_box input {
  16942. font: inherit;
  16943. color: currentColor;
  16944. width: 200px;
  16945. padding: 8px 14px;
  16946. display: block;
  16947. min-width: 0;
  16948. outline: none;
  16949. border: 1px solid rgba(0, 0, 0, 0.23);
  16950. border-radius: 4px;
  16951. box-sizing: border-box;
  16952. background: #fff;
  16953. margin: 0 20px 0 0;
  16954. }
  16955. .elist_input .elist_input_box span {
  16956. height: 36px;
  16957. line-height: 36px;
  16958. color: rgb(82, 82, 82);
  16959. }
  16960. .elist_input .elist_input_box .remove {
  16961. height: 20px;
  16962. width: 20px;
  16963. background-size: 100% 100%;
  16964. background-position: unset;
  16965. margin-left: 5px;
  16966. }
  16967. .elist_input_box >>> .el-rate {
  16968. display: flex;
  16969. height: 36px;
  16970. align-items: center;
  16971. }
  16972. .elist_input_box .elist_inptu_text {
  16973. min-height: 50px;
  16974. /* width: 500px;
  16975. max-height: 150px; */
  16976. width: 100%;
  16977. line-height: 50px;
  16978. color: rgb(82, 82, 82);
  16979. overflow: auto;
  16980. text-indent: 5px;
  16981. background: #f7f6f9;
  16982. border-radius: 10px;
  16983. }
  16984. .elist_input_box .elist_inptu_text input {
  16985. width: 500px;
  16986. }
  16987. .elist_input_box >>> .el-rate__icon {
  16988. font-size: 24px;
  16989. }
  16990. .isClick {
  16991. background: #4d9def;
  16992. }
  16993. .bzBox {
  16994. display: flex;
  16995. flex-direction: row;
  16996. align-items: center;
  16997. }
  16998. .bzBox > div:nth-child(1) {
  16999. width: 4px;
  17000. height: 40px;
  17001. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  17002. }
  17003. .bzBox > div:nth-child(2) {
  17004. font-size: 23px;
  17005. font-weight: bold;
  17006. padding: 0px 0px 0 10px;
  17007. }
  17008. .navTitile {
  17009. padding: 0 0px 0 15px;
  17010. color: #fff;
  17011. height: 40px;
  17012. line-height: 40px;
  17013. }
  17014. .isTypeOne {
  17015. width: 240px;
  17016. height: 170px;
  17017. /* border: 1px solid #f8f8f8; */
  17018. border-radius: 10px;
  17019. box-shadow: 0 0 6px 1px #dfdada;
  17020. }
  17021. .e_add_top {
  17022. display: flex;
  17023. justify-content: space-between;
  17024. padding: 20px 20px 0 20px;
  17025. border-radius: 3px;
  17026. background: #fff;
  17027. }
  17028. .e_add_title2 {
  17029. display: flex;
  17030. align-items: center;
  17031. }
  17032. .e_add_title2 span {
  17033. width: 40px;
  17034. }
  17035. .e_add_title {
  17036. display: flex;
  17037. align-items: center;
  17038. color: #b8b8b8;
  17039. font-size: 18px;
  17040. position: relative;
  17041. height: 40px;
  17042. }
  17043. .e_add_title span {
  17044. margin-right: 10px;
  17045. }
  17046. .e_add_title .el_input {
  17047. width: 300px;
  17048. }
  17049. .e_add_title >>> .el-input__inner {
  17050. width: 400px;
  17051. }
  17052. .e_add_btn {
  17053. }
  17054. .e_add_content {
  17055. display: flex;
  17056. width: 100%;
  17057. max-width: 650px;
  17058. height: 550px;
  17059. }
  17060. .e_add_list {
  17061. background: #fff;
  17062. height: 500px;
  17063. width: 210px;
  17064. position: relative;
  17065. margin: 15px 5px 0 0;
  17066. flex-shrink: 0;
  17067. display: flex;
  17068. flex-direction: column;
  17069. }
  17070. .e_add_list_title {
  17071. font-size: 20px;
  17072. width: 100%;
  17073. box-sizing: border-box;
  17074. padding: 15px 40px;
  17075. text-align: center;
  17076. border-bottom: 1px solid #eaeaea;
  17077. position: relative;
  17078. display: flex;
  17079. align-items: center;
  17080. justify-content: center;
  17081. height: 57px;
  17082. background: #f6f6f6;
  17083. }
  17084. .e_add_list_title span {
  17085. overflow: hidden;
  17086. white-space: nowrap;
  17087. text-overflow: ellipsis;
  17088. }
  17089. .e_add_list_title img {
  17090. position: absolute;
  17091. right: 15px;
  17092. width: 25px;
  17093. cursor: pointer;
  17094. top: 50%;
  17095. transform: translateY(-50%);
  17096. }
  17097. .e_add_list_body {
  17098. height: calc(100% - 187px);
  17099. overflow: auto;
  17100. }
  17101. .e_add_list_child {
  17102. width: 100%;
  17103. display: flex;
  17104. align-items: center;
  17105. justify-content: center;
  17106. position: relative;
  17107. box-sizing: border-box;
  17108. padding: 15px 40px;
  17109. text-align: center;
  17110. }
  17111. .e_add_list_child span {
  17112. overflow: hidden;
  17113. white-space: nowrap;
  17114. text-overflow: ellipsis;
  17115. cursor: pointer;
  17116. }
  17117. .e_add_list_child img {
  17118. position: absolute;
  17119. right: 10px;
  17120. width: 21px;
  17121. cursor: pointer;
  17122. top: 50%;
  17123. transform: translateY(-50%);
  17124. }
  17125. .e_add_list_child + .e_add_list_child {
  17126. border-top: 1px solid #eaeaea;
  17127. }
  17128. .e_add_list_child .active {
  17129. color: #409eff;
  17130. }
  17131. .e_add_list_btn {
  17132. position: absolute;
  17133. bottom: 0;
  17134. height: 50px;
  17135. background: rgb(120, 120, 254);
  17136. width: 100%;
  17137. color: #fff;
  17138. font-size: 16px;
  17139. text-align: center;
  17140. line-height: 50px;
  17141. cursor: pointer;
  17142. }
  17143. .e_add_list_detail {
  17144. position: absolute;
  17145. bottom: 0;
  17146. height: 130px;
  17147. background: rgb(120, 120, 254);
  17148. width: 100%;
  17149. color: #fff;
  17150. font-size: 16px;
  17151. display: flex;
  17152. align-items: center;
  17153. justify-content: center;
  17154. }
  17155. .e_add_list_detail textarea {
  17156. height: 90%;
  17157. width: 95%;
  17158. border: none;
  17159. resize: none;
  17160. outline: none;
  17161. padding: 5px;
  17162. box-sizing: border-box;
  17163. }
  17164. .e_add_list_pbox {
  17165. width: 100%;
  17166. max-width: 650px;
  17167. /* height: 600px; */
  17168. }
  17169. .e_add_list_pbox_title {
  17170. height: 50px;
  17171. background: #fff;
  17172. display: flex;
  17173. align-items: center;
  17174. width: 100%;
  17175. box-sizing: border-box;
  17176. padding: 0 20px;
  17177. }
  17178. .type_title {
  17179. font-size: 18px;
  17180. font-weight: 700;
  17181. }
  17182. .type_content {
  17183. font-size: 16px;
  17184. margin-left: 30px;
  17185. }
  17186. .type_content span + span {
  17187. margin-left: 20px;
  17188. }
  17189. .type_content span {
  17190. cursor: pointer;
  17191. padding-bottom: 5px;
  17192. box-sizing: border-box;
  17193. }
  17194. .type_content .active {
  17195. color: #409eff;
  17196. border-bottom: 2px solid #409eff;
  17197. }
  17198. .e_add_list_pbox_content {
  17199. height: calc(100% - 50px);
  17200. display: flex;
  17201. align-items: center;
  17202. width: 100%;
  17203. background: #fff;
  17204. }
  17205. .evaCss {
  17206. display: flex;
  17207. flex-direction: row;
  17208. flex-wrap: nowrap;
  17209. align-items: flex-start;
  17210. }
  17211. .cru_line {
  17212. position: absolute;
  17213. bottom: 0px;
  17214. transition: all 0.5s;
  17215. left: 0px;
  17216. width: 125px;
  17217. margin-left: -25px;
  17218. }
  17219. .isNoMessage {
  17220. width: 20%;
  17221. margin: 25% auto 0;
  17222. }
  17223. .isNoMessage > img {
  17224. width: 100%;
  17225. height: 100%;
  17226. }
  17227. .fullStyle >>> .el-dialog__body {
  17228. height: 100% !important;
  17229. }
  17230. .fullStyle >>> .el-dialog,
  17231. .fullStyle {
  17232. width: 100% !important;
  17233. max-width: 100% !important;
  17234. height: 100% !important;
  17235. margin: 0 !important;
  17236. }
  17237. .full_diy >>> .el-dialog {
  17238. margin: 0 !important;
  17239. height: 100%;
  17240. padding: 4px;
  17241. }
  17242. .full_diy >>> .el-dialog__body {
  17243. height: calc(100% - 100px);
  17244. }
  17245. .full_diy2 >>> .el-dialog__body {
  17246. height: calc(100% - 50px);
  17247. padding: 0;
  17248. }
  17249. .switchCss {
  17250. /* width: 100%; */
  17251. display: flex;
  17252. flex-direction: row;
  17253. flex-wrap: nowrap;
  17254. align-items: center;
  17255. /* justify-content: center; */
  17256. }
  17257. .isClickNav {
  17258. color: #499eef;
  17259. }
  17260. .commentImg {
  17261. width: 25px;
  17262. height: 25px;
  17263. cursor: pointer;
  17264. }
  17265. .commentImg > img {
  17266. width: 100%;
  17267. height: 100%;
  17268. }
  17269. .comment {
  17270. background: #f9f9f9;
  17271. border-radius: 0 0 15px 15px;
  17272. display: flex;
  17273. flex-direction: row;
  17274. flex-wrap: nowrap;
  17275. align-items: center;
  17276. justify-content: flex-end;
  17277. height: 35px;
  17278. }
  17279. .commentList {
  17280. display: flex;
  17281. flex-direction: row;
  17282. flex-wrap: nowrap;
  17283. align-items: center;
  17284. justify-content: center;
  17285. align-content: center;
  17286. /* margin-left: 15px; */
  17287. /* margin-left: 8px; */
  17288. }
  17289. .scoreImg {
  17290. width: 17px;
  17291. height: 17px;
  17292. }
  17293. .studentDetail {
  17294. display: flex;
  17295. flex-direction: row;
  17296. flex-wrap: nowrap;
  17297. /* align-items: center; */
  17298. align-items: flex-start;
  17299. }
  17300. .tx {
  17301. width: 50px;
  17302. }
  17303. .tx > img {
  17304. width: 100%;
  17305. height: 100%;
  17306. }
  17307. .nameAndTime {
  17308. display: flex;
  17309. flex-direction: column;
  17310. flex-wrap: nowrap;
  17311. align-items: flex-start;
  17312. margin-left: 10px;
  17313. }
  17314. .worksAnswer {
  17315. color: #4078dd;
  17316. margin: 10px 0;
  17317. font-size: 16px;
  17318. position: relative;
  17319. }
  17320. .worksAnswer > img {
  17321. width: 500px;
  17322. height: 300px;
  17323. object-fit: contain;
  17324. margin: 0 auto;
  17325. display: block;
  17326. }
  17327. .commentTop {
  17328. border-bottom: 1px solid #eaeaea;
  17329. padding-bottom: 10px;
  17330. }
  17331. .commentBox {
  17332. padding-top: 15px;
  17333. }
  17334. .pl {
  17335. font-size: 18px;
  17336. }
  17337. .plPerson {
  17338. width: 100%;
  17339. }
  17340. .plName {
  17341. display: flex;
  17342. flex-direction: row;
  17343. flex-wrap: nowrap;
  17344. align-items: baseline;
  17345. color: #78787a;
  17346. width: 100%;
  17347. }
  17348. .deleteComment {
  17349. cursor: pointer;
  17350. margin-left: auto;
  17351. color: #237ade;
  17352. }
  17353. .plContent {
  17354. margin-top: 5px;
  17355. }
  17356. .evalCss {
  17357. background: #fff;
  17358. font-size: 18px;
  17359. }
  17360. .nav {
  17361. color: #9d9d9d;
  17362. padding: 5px 0 15px 20px;
  17363. }
  17364. .middleBox {
  17365. padding: 5px 0 15px 20px;
  17366. }
  17367. .pfBox {
  17368. padding-bottom: 30px;
  17369. }
  17370. .nameAndrate {
  17371. display: flex;
  17372. flex-direction: row;
  17373. flex-wrap: nowrap;
  17374. align-items: center;
  17375. padding-bottom: 10px;
  17376. height: 30px;
  17377. line-height: 30px;
  17378. }
  17379. .nameAndrate > div {
  17380. margin-left: 10px;
  17381. color: #000;
  17382. height: 30px;
  17383. }
  17384. .nameAndrate >>> .el-rate__icon {
  17385. font-size: 28px !important;
  17386. }
  17387. .pfBox > div:nth-child(2) {
  17388. background: #f7f6f9;
  17389. width: 400px;
  17390. min-height: 45px;
  17391. border-radius: 10px;
  17392. font-size: 16px;
  17393. display: flex;
  17394. flex-wrap: wrap;
  17395. align-items: center;
  17396. padding: 10px 20px;
  17397. box-sizing: border-box;
  17398. color: #000;
  17399. }
  17400. .bz {
  17401. display: flex;
  17402. flex-direction: row;
  17403. flex-wrap: nowrap;
  17404. align-items: flex-start;
  17405. }
  17406. .bz > div {
  17407. padding: 0 10px;
  17408. }
  17409. .select_box2_title {
  17410. background: #fff;
  17411. border-radius: 5px;
  17412. padding: 15px 10px;
  17413. box-sizing: border-box;
  17414. margin-bottom: 10px;
  17415. display: flex;
  17416. flex-direction: row;
  17417. flex-wrap: nowrap;
  17418. align-items: center;
  17419. }
  17420. .select_box2_title > div:nth-child(2) {
  17421. margin-left: 10px;
  17422. color: #c4c4c4;
  17423. }
  17424. .select_box2_box {
  17425. display: flex;
  17426. height: 500px;
  17427. }
  17428. .select_box2_img {
  17429. width: calc(100% - 310px);
  17430. height: 100%;
  17431. overflow: auto;
  17432. background: #fff;
  17433. border-radius: 5px;
  17434. }
  17435. .select_box2_img img {
  17436. width: 100%;
  17437. }
  17438. .select_box2_answer {
  17439. background: #fff;
  17440. margin-left: 10px;
  17441. border-radius: 5px;
  17442. width: 300px;
  17443. overflow: auto;
  17444. height: 90%;
  17445. display: flex;
  17446. flex-direction: column;
  17447. align-items: flex-start;
  17448. padding-top: 10px;
  17449. box-sizing: border-box;
  17450. position: relative;
  17451. }
  17452. .select_answer_title {
  17453. padding: 0 0 15px 20px;
  17454. color: #c4c4c4;
  17455. }
  17456. .select_box2_answer_box {
  17457. margin: 0 0 10px 20px;
  17458. width: 85%;
  17459. display: flex;
  17460. flex-direction: row;
  17461. flex-wrap: nowrap;
  17462. align-items: center;
  17463. }
  17464. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  17465. color: #000;
  17466. }
  17467. .upAnswerCss {
  17468. position: absolute;
  17469. bottom: 15px;
  17470. right: 15px;
  17471. }
  17472. .upAnswerCss >>> .el-button {
  17473. width: 95px;
  17474. height: 35px;
  17475. line-height: 35px;
  17476. padding: 0;
  17477. }
  17478. .rightWidthCss {
  17479. width: 60%;
  17480. display: flex;
  17481. flex-direction: row;
  17482. align-items: flex-start;
  17483. }
  17484. .rightAnswer {
  17485. display: flex;
  17486. flex-direction: row;
  17487. flex-wrap: nowrap;
  17488. align-items: center;
  17489. color: red;
  17490. margin-bottom: 31px;
  17491. }
  17492. .rightAnswerCss {
  17493. display: flex;
  17494. flex-direction: column;
  17495. flex-wrap: nowrap;
  17496. padding-top: 60px;
  17497. }
  17498. .blueCss {
  17499. color: #767de1;
  17500. margin-left: 10px;
  17501. }
  17502. .redCss {
  17503. color: red;
  17504. }
  17505. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  17506. color: rgb(0 123 255) !important;
  17507. }
  17508. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  17509. color: rgb(0 123 255) !important;
  17510. }
  17511. .zuoyeYulan {
  17512. padding-top: 15px;
  17513. font-size: 18px;
  17514. display: flex;
  17515. align-items: flex-end;
  17516. }
  17517. .buttonA {
  17518. margin-left: 10px;
  17519. padding: 0;
  17520. }
  17521. .displayBox {
  17522. margin-bottom: 10px;
  17523. display: block;
  17524. border-bottom: 3px solid #eee;
  17525. display: flex;
  17526. align-items: center;
  17527. }
  17528. .easy_comment {
  17529. width: calc(100% - 90px);
  17530. margin-left: 10px;
  17531. display: flex;
  17532. flex-wrap: wrap;
  17533. }
  17534. .easy_comment > div {
  17535. border: 1px solid #4a4a4a;
  17536. color: #666;
  17537. border-radius: 15px;
  17538. padding: 5px 10px;
  17539. font-size: 16px;
  17540. margin-bottom: 10px;
  17541. margin-right: 5px;
  17542. cursor: pointer;
  17543. }
  17544. .easy_comment div:hover {
  17545. border: 1px solid #f7ba2a;
  17546. color: #c69217;
  17547. }
  17548. .xuan_right_box {
  17549. padding: 10px;
  17550. background: rgb(247, 247, 247);
  17551. margin: 10px 12px;
  17552. border-radius: 5px;
  17553. }
  17554. .tool_right_box {
  17555. display: flex;
  17556. align-items: center;
  17557. }
  17558. .tool_right_box + .tool_right_box {
  17559. margin-top: 10px;
  17560. }
  17561. .right_box_xuan {
  17562. background: rgb(0 123 255);
  17563. color: #fff;
  17564. border-radius: 5px;
  17565. padding: 5px;
  17566. margin-left: 10px;
  17567. }
  17568. .pButton:hover {
  17569. opacity: 1 !important;
  17570. }
  17571. .pButton {
  17572. position: fixed;
  17573. /* right: 5%; */
  17574. /* bottom: 5%; */
  17575. color: #fff;
  17576. /* width: 50px;
  17577. height: 50px; */
  17578. /* border-radius: 50%; */
  17579. text-align: center;
  17580. /* line-height: 50px; */
  17581. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  17582. cursor: pointer;
  17583. z-index: 999;
  17584. right: 0;
  17585. top: 83px;
  17586. width: 50px;
  17587. height: 50px;
  17588. background: #fff;
  17589. display: flex;
  17590. align-items: center;
  17591. justify-content: center;
  17592. box-shadow: 0px 0 8px 2px #c5c5c5;
  17593. border-radius: 5px;
  17594. }
  17595. .pzClass {
  17596. width: calc(100% - 340px);
  17597. }
  17598. .newDialogCss {
  17599. /* position: fixed;
  17600. right: 5%;
  17601. top: 50%;
  17602. width: 340px;
  17603. transform: translateY(-50%);
  17604. height: 60%;
  17605. box-shadow: 0px 0 8px 0px #555555;
  17606. border-radius: 15px;
  17607. z-index: 999; */
  17608. position: fixed;
  17609. right: 0;
  17610. top: 70px;
  17611. width: 340px;
  17612. height: calc(100% - 80px);
  17613. z-index: 999;
  17614. background: #fff;
  17615. border-radius: 15px;
  17616. border-top-right-radius: 0px;
  17617. border-bottom-right-radius: 0px;
  17618. overflow: hidden;
  17619. }
  17620. .pzTop {
  17621. color: #fff;
  17622. background: #000;
  17623. display: flex;
  17624. flex-direction: row;
  17625. flex-wrap: nowrap;
  17626. align-items: center;
  17627. justify-content: space-between;
  17628. height: 40px;
  17629. border-radius: 15px 15px 0 0;
  17630. }
  17631. .pzTop2 .checkbox {
  17632. display: flex;
  17633. align-items: center;
  17634. padding: 15px 30px;
  17635. flex: 0 0 auto;
  17636. font-weight: bold;
  17637. border-bottom: 1px solid #eee;
  17638. justify-content: space-between;
  17639. }
  17640. .pzTop2 .check {
  17641. text-align: center;
  17642. cursor: pointer;
  17643. box-sizing: border-box;
  17644. display: flex;
  17645. }
  17646. .pzTop2 img {
  17647. width: 25px;
  17648. cursor: pointer;
  17649. }
  17650. .pzTop > div:nth-child(1) {
  17651. padding-left: 10px;
  17652. }
  17653. .pzTop > div:nth-child(2) {
  17654. width: 15px;
  17655. height: 15px;
  17656. padding-right: 10px;
  17657. cursor: pointer;
  17658. }
  17659. .pzTop > div:nth-child(2) > img {
  17660. width: 100%;
  17661. height: 100%;
  17662. }
  17663. .pzBox,
  17664. .noPzBox {
  17665. height: calc(100% - 60px);
  17666. /* background: #ededed; */
  17667. background: #fff;
  17668. /* border-radius: 0 0 15px 15px; */
  17669. }
  17670. .noPzBox {
  17671. display: flex;
  17672. flex-direction: column;
  17673. flex-wrap: nowrap;
  17674. justify-content: center;
  17675. align-items: center;
  17676. }
  17677. .pzList {
  17678. background: #f7f7f7;
  17679. width: 90%;
  17680. margin: 0 auto 15px;
  17681. border-radius: 5px;
  17682. }
  17683. .pzNavTop {
  17684. display: flex;
  17685. flex-direction: row;
  17686. flex-wrap: nowrap;
  17687. padding: 10px 10px 0 10px;
  17688. align-items: center;
  17689. }
  17690. .pzDelete {
  17691. cursor: pointer;
  17692. margin-left: auto;
  17693. font-size: 14px;
  17694. color: #afafaf;
  17695. }
  17696. .pzNavTop > div:nth-child(1) {
  17697. background: #3760af;
  17698. width: 35px;
  17699. height: 35px;
  17700. color: #fff;
  17701. text-align: center;
  17702. line-height: 35px;
  17703. border-radius: 50%;
  17704. font-size: 14px;
  17705. }
  17706. .pzNavTop > div:nth-child(2) {
  17707. font-size: 18px;
  17708. color: #959595;
  17709. margin-left: 5px;
  17710. }
  17711. .pzContent {
  17712. padding: 10px;
  17713. word-break: break-word;
  17714. }
  17715. .pzContent audio {
  17716. width: 100%;
  17717. }
  17718. .pzContent audio::-webkit-media-controls-panel {
  17719. background: #fff;
  17720. }
  17721. .pzListBox {
  17722. padding-top: 15px;
  17723. height: calc(100% - 60px);
  17724. overflow: auto;
  17725. }
  17726. .addPzButton {
  17727. position: relative;
  17728. margin-top: 3px;
  17729. width: 100%;
  17730. }
  17731. .addPzButton .img1 {
  17732. position: absolute;
  17733. top: 50%;
  17734. right: 25px;
  17735. transform: translateY(-50%);
  17736. height: 100%;
  17737. display: flex;
  17738. align-items: center;
  17739. }
  17740. .addPzButton .img1 div {
  17741. display: flex;
  17742. }
  17743. .addPzButton .img1 div img {
  17744. width: 28px;
  17745. margin-left: 10px;
  17746. cursor: pointer;
  17747. }
  17748. .addPzButton .img1 div span {
  17749. font-size: 14px;
  17750. margin: 4px 0 0 3px;
  17751. color: #afafaf;
  17752. }
  17753. .addPz {
  17754. background: #4b79ce;
  17755. width: 100px;
  17756. color: #fff;
  17757. font-size: 12px;
  17758. height: 30px;
  17759. margin: 0 auto;
  17760. text-align: center;
  17761. line-height: 30px;
  17762. border-radius: 10px;
  17763. cursor: pointer;
  17764. }
  17765. .addDialogCss {
  17766. position: fixed;
  17767. right: 37%;
  17768. top: 50%;
  17769. width: 600px;
  17770. transform: translateY(-50%);
  17771. height: 70%;
  17772. min-height: 450px;
  17773. box-shadow: 0px 0 8px 0px #555555;
  17774. border-radius: 15px;
  17775. z-index: 999;
  17776. }
  17777. .teacherPz {
  17778. display: flex;
  17779. flex-direction: row;
  17780. align-items: center;
  17781. flex-wrap: nowrap;
  17782. }
  17783. .teacherPzImg {
  17784. width: 30px;
  17785. height: 30px;
  17786. }
  17787. .teacherPzImg > img {
  17788. width: 100%;
  17789. height: 100%;
  17790. }
  17791. .addPzBox {
  17792. height: calc(100% - 40px);
  17793. background: #ededed;
  17794. }
  17795. .pzAudioClass {
  17796. margin: 15px 14px;
  17797. background: #fff;
  17798. height: 100%;
  17799. display: flex;
  17800. justify-content: center;
  17801. align-items: center;
  17802. }
  17803. .pzConText {
  17804. width: 95%;
  17805. height: 100%;
  17806. margin: 10px auto 0;
  17807. border: none;
  17808. background: #fff;
  17809. border-radius: 0px;
  17810. }
  17811. .pzConText >>> .text {
  17812. height: calc(100% - 82px);
  17813. }
  17814. .addTextCss {
  17815. background: #4b79ce;
  17816. width: 80px;
  17817. height: 30px;
  17818. text-align: center;
  17819. color: #fff;
  17820. line-height: 30px;
  17821. border-radius: 10px;
  17822. margin: 10px auto 0;
  17823. cursor: pointer;
  17824. }
  17825. .pzConText:focus-visible {
  17826. border: none !important;
  17827. }
  17828. .maxWidth {
  17829. width: 1000px;
  17830. }
  17831. .noPz {
  17832. width: 150px;
  17833. margin: 0 auto 20%;
  17834. }
  17835. .noPz > img {
  17836. width: 100%;
  17837. height: 100%;
  17838. }
  17839. .pzList .time {
  17840. text-align: right;
  17841. box-sizing: border-box;
  17842. padding: 0 10px 10px 0px;
  17843. color: #949494;
  17844. font-size: 14px;
  17845. }
  17846. /* table 样式 */
  17847. .cont >>> table {
  17848. border-top: 1px solid #ccc;
  17849. border-left: 1px solid #ccc;
  17850. }
  17851. .cont >>> table td,
  17852. .cont >>> table th {
  17853. border-bottom: 1px solid #ccc;
  17854. border-right: 1px solid #ccc;
  17855. padding: 15px 5px;
  17856. max-width: 0px;
  17857. }
  17858. .cont >>> table th {
  17859. border-bottom: 2px solid #ccc;
  17860. text-align: center;
  17861. }
  17862. /* blockquote 样式 */
  17863. .cont >>> blockquote {
  17864. display: block;
  17865. border-left: 8px solid #d0e5f2;
  17866. padding: 5px 10px;
  17867. margin: 10px 0;
  17868. line-height: 1.4;
  17869. font-size: 100%;
  17870. background-color: #f1f1f1;
  17871. }
  17872. .addPzCheck {
  17873. display: flex;
  17874. flex-direction: row;
  17875. flex-wrap: nowrap;
  17876. padding: 10px 15px 0;
  17877. }
  17878. .addPzCheck span {
  17879. cursor: pointer;
  17880. padding-bottom: 5px;
  17881. font-weight: bold;
  17882. }
  17883. .addPzCheck span + span {
  17884. margin-left: 10px;
  17885. }
  17886. .addPzCheck .isChooseActive {
  17887. color: #3e88f4;
  17888. border-bottom: 2px solid #2f80f3;
  17889. }
  17890. /* code 样式 */
  17891. .cont{
  17892. /* -webkit-user-modify: read-write; */
  17893. overflow-wrap: break-word;
  17894. -webkit-line-break: after-white-space;
  17895. }
  17896. .cont >>> code {
  17897. display: inline-block;
  17898. *display: inline;
  17899. *zoom: 1;
  17900. background-color: #f1f1f1;
  17901. border-radius: 3px;
  17902. padding: 3px 5px;
  17903. margin: 0 3px;
  17904. }
  17905. .cont >>> pre code {
  17906. display: block;
  17907. }
  17908. /* ul ol 样式 */
  17909. .cont >>> ul,
  17910. ol {
  17911. margin: 10px 0 10px 20px;
  17912. }
  17913. .scoreBox,
  17914. .scoreDetailBox {
  17915. display: flex;
  17916. align-items: center;
  17917. justify-content: flex-start;
  17918. margin-top: 20px;
  17919. font-size: 18px;
  17920. width: 100%;
  17921. }
  17922. .scoreBox .t,
  17923. .scoreDetailBox .t {
  17924. margin-right: 10px;
  17925. width: 100px;
  17926. text-align: right;
  17927. }
  17928. .scoreDetailBox {
  17929. align-items: flex-start;
  17930. }
  17931. .scoreDetailBox >>> .el-textarea {
  17932. width: calc(100% - 200px);
  17933. }
  17934. .scoreBox >>> .el-input {
  17935. width: 130px;
  17936. font-size: 38px;
  17937. }
  17938. .scoreBox >>> .el-input__inner {
  17939. height: 60px;
  17940. }
  17941. .answerScore {
  17942. position: absolute;
  17943. top: 10px;
  17944. right: 10px;
  17945. background: #0000008f;
  17946. border-radius: 5px;
  17947. padding: 3px 5px;
  17948. font-size: 14px;
  17949. color: #fff;
  17950. cursor: pointer;
  17951. }
  17952. .open_box .switch_box {
  17953. width: 100%;
  17954. margin: 0 auto;
  17955. display: flex;
  17956. justify-content: space-between;
  17957. }
  17958. .open_box .switch_box + .switch_box {
  17959. margin-top: 10px;
  17960. }
  17961. .deleteImg {
  17962. width: 25px !important;
  17963. height: 25px !important;
  17964. cursor: pointer;
  17965. position: absolute;
  17966. top: 10px;
  17967. right: 10px;
  17968. }
  17969. .deleteImg2 {
  17970. width: 15px !important;
  17971. height: 15px !important;
  17972. top: 5px;
  17973. right: 5px;
  17974. }
  17975. .rightW {
  17976. right: 40px;
  17977. }
  17978. .drawPBox {
  17979. display: flex;
  17980. flex-direction: column;
  17981. position: relative;
  17982. }
  17983. .drawPBox span {
  17984. font-size: 18px;
  17985. color: #606266;
  17986. padding-bottom: 10px;
  17987. margin: 10px 0;
  17988. border-bottom: 1px solid #eaeaea;
  17989. }
  17990. .drawPBox img {
  17991. width: 500px;
  17992. height: 300px;
  17993. object-fit: contain;
  17994. cursor: pointer;
  17995. margin: 0 auto;
  17996. }
  17997. .sentenBox {
  17998. background: #fff;
  17999. height: 450px;
  18000. overflow: auto;
  18001. background-image: url("../assets/icon/conSentences/stuBg.png");
  18002. background-position: 102%;
  18003. background-repeat: no-repeat;
  18004. background-size: 60%;
  18005. }
  18006. .addSen {
  18007. background: #409efe;
  18008. width: 90px;
  18009. color: #fff;
  18010. height: 35px;
  18011. text-align: center;
  18012. line-height: 35px;
  18013. border-radius: 5px;
  18014. float: right;
  18015. margin: 10px 20px 0 0;
  18016. cursor: pointer;
  18017. }
  18018. .sentenTop {
  18019. display: flex;
  18020. flex-direction: row;
  18021. flex-wrap: nowrap;
  18022. align-items: center;
  18023. padding: 55px 0 0 20px;
  18024. box-sizing: border-box;
  18025. }
  18026. .sentenTop > div:nth-child(2) {
  18027. width: 300px;
  18028. margin: 0 15px;
  18029. }
  18030. .sentenTop > div:nth-child(3) {
  18031. background: #409efe;
  18032. color: #fff;
  18033. width: 65px;
  18034. height: 35px;
  18035. text-align: center;
  18036. line-height: 35px;
  18037. border-radius: 5px;
  18038. cursor: pointer;
  18039. }
  18040. .cardList,
  18041. .cardList1 {
  18042. padding: 10px 0 10px 0;
  18043. display: flex;
  18044. flex-direction: row;
  18045. flex-wrap: wrap;
  18046. align-items: center;
  18047. box-sizing: border-box;
  18048. border-bottom: 1px solid #f4f4f4;
  18049. width: 98%;
  18050. margin: 0 auto;
  18051. min-width: 60%;
  18052. max-width: 85%;
  18053. }
  18054. .cardList1 {
  18055. padding: 10px 0 10px 10px !important;
  18056. margin: 0 !important;
  18057. }
  18058. .cardBox {
  18059. display: flex;
  18060. flex-direction: row;
  18061. flex-wrap: wrap;
  18062. align-items: center;
  18063. align-content: center;
  18064. }
  18065. .cardBox > div {
  18066. margin-bottom: 10px;
  18067. }
  18068. .isCard,
  18069. .isChooseCard,
  18070. .noCard,
  18071. .isCard1 {
  18072. width: 130px;
  18073. height: 60px;
  18074. text-align: center;
  18075. line-height: 60px;
  18076. font-size: 20px;
  18077. cursor: pointer;
  18078. background-image: url("../assets/icon/conSentences/titleBorder.png");
  18079. background-size: cover;
  18080. transition: all 2s;
  18081. margin-right: 20px;
  18082. }
  18083. .isCard > div,
  18084. .noCard > div,
  18085. .isCard1 > div {
  18086. white-space: nowrap;
  18087. overflow: hidden;
  18088. text-overflow: ellipsis;
  18089. width: 75%;
  18090. margin: 0 auto;
  18091. }
  18092. .noCard {
  18093. background-image: none;
  18094. }
  18095. .isCard1 {
  18096. background-image: url("../assets/icon/conSentences/answerBorder.png");
  18097. }
  18098. .isChooseCard {
  18099. background-image: none;
  18100. border: 1px dashed #b9b9b9;
  18101. border-radius: 10px;
  18102. }
  18103. .card {
  18104. width: 130px;
  18105. height: 60px;
  18106. }
  18107. .card > img {
  18108. width: 100%;
  18109. height: 100%;
  18110. }
  18111. .rightCardBox {
  18112. margin: 10px 0 0 10px;
  18113. }
  18114. .rightCardBox > div:nth-child(1) {
  18115. margin-bottom: 10px;
  18116. }
  18117. .cardCss {
  18118. display: flex;
  18119. flex-direction: column;
  18120. flex-wrap: nowrap;
  18121. align-items: center;
  18122. border-bottom: 3px solid #b4c3d3;
  18123. padding: 0 0 5px 0;
  18124. margin-right: 10px;
  18125. }
  18126. .cardCss > div:nth-child(2) {
  18127. background: #5b7b9d;
  18128. color: #fff;
  18129. width: 20px;
  18130. height: 20px;
  18131. border-radius: 50%;
  18132. text-align: center;
  18133. line-height: 20px;
  18134. }
  18135. .isWrong {
  18136. display: flex;
  18137. flex-direction: row;
  18138. flex-wrap: nowrap;
  18139. align-content: center;
  18140. align-items: center;
  18141. }
  18142. .answerRight {
  18143. width: 25%;
  18144. }
  18145. .isTj {
  18146. display: flex;
  18147. flex-direction: row;
  18148. flex-wrap: nowrap;
  18149. align-items: center;
  18150. }
  18151. .isTj > div:nth-child(2) {
  18152. color: #727070;
  18153. margin-left: 10px;
  18154. }
  18155. .isTjImg {
  18156. width: 30px;
  18157. height: 30px;
  18158. }
  18159. .isTjImg > img {
  18160. width: 100%;
  18161. height: 100%;
  18162. }
  18163. .cardAnswerBox {
  18164. font-size: 18px;
  18165. width: 97%;
  18166. border: 5px;
  18167. padding: 0;
  18168. border-radius: 5px;
  18169. margin: 10px auto;
  18170. word-break: break-word;
  18171. }
  18172. .w_name {
  18173. margin-bottom: 10px;
  18174. }
  18175. .w_name span {
  18176. font-size: 16px;
  18177. }
  18178. .w_teachert {
  18179. width: 50px !important;
  18180. position: absolute;
  18181. height: auto !important;
  18182. z-index: 10;
  18183. right: 25px;
  18184. top: -25px;
  18185. }
  18186. .group_workBox {
  18187. }
  18188. .group_workBox + .group_workBox {
  18189. margin-top: 20px;
  18190. }
  18191. .group_box {
  18192. padding-bottom: 20px;
  18193. border-bottom: 2px solid #f0f0f0;
  18194. }
  18195. .group_title {
  18196. display: flex;
  18197. align-items: center;
  18198. justify-content: space-between;
  18199. }
  18200. .group_name {
  18201. background-image: url(../assets/icon/groupN.png);
  18202. width: 220px;
  18203. background-size: 100% 100%;
  18204. height: 67px;
  18205. padding: 0 20px 0 43px;
  18206. box-sizing: border-box;
  18207. line-height: 63px;
  18208. color: #fff;
  18209. overflow: hidden;
  18210. white-space: nowrap;
  18211. text-overflow: ellipsis;
  18212. }
  18213. .group_work {
  18214. width: 100%;
  18215. padding: 0 10px;
  18216. box-sizing: border-box;
  18217. display: flex;
  18218. flex-wrap: wrap;
  18219. }
  18220. .g_d_box {
  18221. display: flex;
  18222. flex-flow: wrap;
  18223. justify-content: space-around;
  18224. }
  18225. .g_d_box .isChair {
  18226. background-image: url(../assets/avatar.png) !important;
  18227. }
  18228. .g_d_group {
  18229. width: 500px;
  18230. margin-bottom: 80px;
  18231. }
  18232. .g_d_group_chair {
  18233. display: flex;
  18234. align-items: center;
  18235. justify-content: center;
  18236. }
  18237. .g_d_group_chair > div + div {
  18238. margin-left: 30px;
  18239. }
  18240. .g_d_group_chair > div,
  18241. .g_d_group_chair2 > div {
  18242. display: flex;
  18243. flex-direction: column;
  18244. align-items: center;
  18245. }
  18246. .g_d_group_chair > div > span:nth-child(1),
  18247. .g_d_group_chair2 > div > span:nth-child(1) {
  18248. background-image: url(../assets/icon/chair.png);
  18249. width: 50px;
  18250. height: 50px;
  18251. display: block;
  18252. background-size: 100% 100%;
  18253. }
  18254. .g_d_group_tableBox {
  18255. display: flex;
  18256. align-items: center;
  18257. justify-content: center;
  18258. }
  18259. .g_d_group_chair2 {
  18260. display: flex;
  18261. flex-direction: column;
  18262. align-items: center;
  18263. justify-content: center;
  18264. }
  18265. .g_d_group_chair2 > div + div {
  18266. margin-top: 10px;
  18267. }
  18268. .g_d_group_table {
  18269. background-image: url(../assets/icon/groupBg.png);
  18270. width: 354px;
  18271. height: 196px;
  18272. background-size: 100% 100%;
  18273. display: flex;
  18274. align-items: center;
  18275. justify-content: center;
  18276. flex-direction: column;
  18277. color: #fff;
  18278. }
  18279. .g_d_group_table > div:nth-child(1) {
  18280. font-size: 24px;
  18281. margin-bottom: 5px;
  18282. }
  18283. .g_d_group_table > div:nth-child(2) div {
  18284. cursor: pointer;
  18285. background: #2e77bf;
  18286. padding: 4px 10px;
  18287. border-radius: 5px;
  18288. }
  18289. .groupBox {
  18290. }
  18291. .groupContent + .groupContent {
  18292. margin-top: 30px;
  18293. }
  18294. .groupTitle {
  18295. font-size: 24px;
  18296. color: rgb(80, 80, 80);
  18297. margin-bottom: 20px;
  18298. }
  18299. .groupName {
  18300. display: flex;
  18301. align-items: center;
  18302. }
  18303. .groupn {
  18304. font-size: 15px;
  18305. margin-right: 10px;
  18306. }
  18307. .groupName + .groupName {
  18308. margin-top: 15px;
  18309. }
  18310. .groupBtn {
  18311. margin-left: 10px;
  18312. }
  18313. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  18314. text-align: left;
  18315. }
  18316. .g_d_btnBox {
  18317. display: flex;
  18318. justify-content: flex-end;
  18319. align-items: center;
  18320. margin-bottom: 20px;
  18321. }
  18322. .updateChair {
  18323. position: relative;
  18324. }
  18325. .updateChairBtn {
  18326. position: absolute;
  18327. width: 50px;
  18328. height: 50px;
  18329. overflow: hidden;
  18330. /* display: flex; */
  18331. align-items: center;
  18332. justify-content: center;
  18333. background: #00000087;
  18334. color: #fff;
  18335. border-radius: 50px;
  18336. display: none;
  18337. cursor: pointer;
  18338. }
  18339. .updateChair:hover .updateChairBtn {
  18340. display: flex;
  18341. }
  18342. .group_staic_box {
  18343. display: flex;
  18344. padding: 30px 40px 10px;
  18345. flex-wrap: wrap;
  18346. }
  18347. .group_staic {
  18348. /* width: 50%; */
  18349. margin-bottom: 20px;
  18350. display: flex;
  18351. align-items: center;
  18352. }
  18353. .group_staic span:nth-child(1) {
  18354. width: 150px;
  18355. text-align: right;
  18356. margin-right: 15px;
  18357. }
  18358. .group_staic span:nth-child(2) {
  18359. background: rgb(0 123 255);
  18360. color: #fff;
  18361. border-radius: 5px;
  18362. padding: 5px;
  18363. }
  18364. .codeFileBox {
  18365. height: 300px;
  18366. background: #fff;
  18367. display: flex;
  18368. align-items: center;
  18369. justify-content: center;
  18370. }
  18371. .codeFileBox img {
  18372. width: 200px;
  18373. margin: 0;
  18374. height: auto;
  18375. }
  18376. .codeFileBox div {
  18377. background: rgb(80, 142, 226);
  18378. color: #fff;
  18379. padding: 10px 20px;
  18380. border-radius: 25px;
  18381. cursor: pointer;
  18382. margin-left: 15px;
  18383. }
  18384. .radioBox {
  18385. display: flex;
  18386. flex-direction: row;
  18387. flex-wrap: nowrap;
  18388. align-items: center;
  18389. }
  18390. .radioBox > div {
  18391. margin: 10px 0 0 10px;
  18392. }
  18393. /* .radioBox >>> .el-radio__input,
  18394. .radioBox >>> .el-checkbox__inner {
  18395. margin-left: 10px;
  18396. } */
  18397. .radioBox >>> .el-radio__label,
  18398. .radioBox >>> .el-checkbox__label {
  18399. display: flex;
  18400. align-items: center;
  18401. }
  18402. .inImg {
  18403. width: 100px;
  18404. cursor: pointer;
  18405. }
  18406. .inImg > img {
  18407. width: 100%;
  18408. height: 100%;
  18409. object-fit: cover;
  18410. }
  18411. .timuImgBox {
  18412. margin: 10px 0;
  18413. display: flex;
  18414. flex-direction: column;
  18415. flex-wrap: wrap;
  18416. align-items: flex-start;
  18417. }
  18418. .timuImg {
  18419. width: 150px;
  18420. margin: 5px 0;
  18421. cursor: pointer;
  18422. }
  18423. .timuImg > img {
  18424. width: 100%;
  18425. height: 100%;
  18426. object-fit: cover;
  18427. }
  18428. .worksTop {
  18429. display: flex;
  18430. flex-direction: row;
  18431. align-items: flex-end;
  18432. }
  18433. .corOpen {
  18434. margin: 0 0 0 10px;
  18435. font-size: 14px;
  18436. cursor: pointer;
  18437. color: #505050;
  18438. }
  18439. .corOpen:hover {
  18440. color: #499eef;
  18441. }
  18442. .navCorOpenBox {
  18443. display: flex;
  18444. flex-direction: row;
  18445. align-items: center;
  18446. background: #1e5cc9;
  18447. justify-content: space-between;
  18448. }
  18449. .navCorOpen {
  18450. padding-right: 15px;
  18451. cursor: pointer;
  18452. width: 20px;
  18453. display: flex;
  18454. }
  18455. .navCorOpen > img {
  18456. width: 100%;
  18457. height: 100%;
  18458. }
  18459. .mlImg {
  18460. width: 25px !important;
  18461. cursor: pointer;
  18462. margin-top: 5px;
  18463. }
  18464. .mlImg > img {
  18465. width: 100%;
  18466. height: 100%;
  18467. }
  18468. .navLeftCss {
  18469. width: 100% !important;
  18470. left: 0 !important;
  18471. }
  18472. .isContentCss {
  18473. width: 100% !important;
  18474. }
  18475. .isAllWidth {
  18476. width: 100% !important;
  18477. }
  18478. .group_switch {
  18479. margin-right: 10px;
  18480. height: 30px;
  18481. display: flex;
  18482. align-items: center;
  18483. }
  18484. .group_switch > span {
  18485. margin-right: 5px;
  18486. }
  18487. </style>