studyStudent.vue 464 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889
  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 class="pb_left">
  8. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  9. <el-tooltip
  10. class="courseTitle"
  11. effect="light"
  12. :content="courseDetail.title"
  13. placement="top"
  14. >
  15. <div>{{ courseDetail.title }}</div>
  16. </el-tooltip>
  17. <div class="ml">目录</div>
  18. <div class="cru_selectBox">
  19. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  20. <div class="blue_box_one" @click="get(stageIndex)">
  21. <div>第{{ stageIndex + 1 }}阶段</div>
  22. <div>{{ item.dyName }}</div>
  23. </div>
  24. <div class="twoChild" :class="{ navActive: item.isOpen }">
  25. <div
  26. class="navChild"
  27. v-for="(nav, navIndex) in item.task"
  28. :key="navIndex"
  29. >
  30. <div
  31. class="navTask"
  32. @click="openTask(stageIndex, navIndex, nav.id)"
  33. :class="{
  34. openTaskActive:
  35. navIndex == taskCount &&
  36. nav.id == navId &&
  37. stageIndex == courseType,
  38. }"
  39. >
  40. <div
  41. class="vedioNav"
  42. :class="{
  43. isClick:
  44. navIndex == taskCount &&
  45. nav.id == navId &&
  46. stageIndex == courseType,
  47. }"
  48. style="margin: 0"
  49. >
  50. 任务{{ navIndex + 1 }}
  51. </div>
  52. <el-tooltip
  53. class="navTaskname item"
  54. effect="light"
  55. :content="nav.taskName"
  56. placement="top"
  57. >
  58. <div
  59. :style="{
  60. width:
  61. IsLookOpen && !nav.isLook
  62. ? 'calc(100% - 75px)'
  63. : 'auto',
  64. }"
  65. >
  66. {{ nav.taskName }}
  67. </div>
  68. </el-tooltip>
  69. <img
  70. src="../assets/lock.png"
  71. v-if="IsLookOpen && !nav.isLook"
  72. alt=""
  73. />
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="body_student">
  81. <div
  82. class="new_top"
  83. style="
  84. position: fixed;
  85. top: 0;
  86. left: 20.7%;
  87. width: 80%;
  88. z-index: 999;
  89. box-shadow: 0px 9px 0 0 #f2f2f2;
  90. "
  91. >
  92. <div class="courseIndex">
  93. <div>第{{ courseType - 0 + 1 }}阶段</div>
  94. <el-tooltip
  95. effect="light"
  96. :content="chapInfoList[courseType].dyName"
  97. placement="top"
  98. >
  99. <div>{{ chapInfoList[courseType].dyName }}</div>
  100. </el-tooltip>
  101. <div>任务{{ taskCount + 1 }}</div>
  102. </div>
  103. <div class="btnAll">
  104. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  105. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  106. <div class="returnBtn" @click="allScrell">全屏</div>
  107. <div
  108. class="returnBtn"
  109. @click="startRecording"
  110. v-if="!videoStart && (tType == 1 || tType == 4)"
  111. >
  112. 开始录制
  113. </div>
  114. <div
  115. class="returnBtn"
  116. @click="stopRecording"
  117. v-else-if="tType == 1 || tType == 4"
  118. style="background: #ee5255"
  119. >
  120. 下载录制
  121. </div>
  122. <div
  123. class="returnBtn"
  124. @click="juriVisible = true"
  125. v-if="tType == 1"
  126. >
  127. 权限
  128. </div>
  129. <div
  130. class="returnBtn"
  131. style="background: #225bc7"
  132. @click.stop="
  133. goTo(
  134. '/courseDetail?userid=' +
  135. userid +
  136. '&oid=' +
  137. oid +
  138. '&org=' +
  139. org +
  140. '&cid=' +
  141. classId +
  142. '&courseId=' +
  143. id +
  144. '&tType=' +
  145. tType +
  146. '&screenType=' +
  147. screenType
  148. )
  149. "
  150. >
  151. 返回
  152. </div>
  153. </div>
  154. </div>
  155. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  156. .taskJson"
  157. :key="index"-->
  158. <div
  159. class="isNoMessage"
  160. v-if="
  161. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  162. .chapterData.length == 0 &&
  163. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  164. .toolChoose[0].tool.length == 0 &&
  165. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  166. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  167. .taskDetail == '' &&
  168. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  169. "
  170. >
  171. <img src="../assets/icon/isNoMessage.png" alt />
  172. </div>
  173. <div class="study_top" :class="{ pzClass: pzDialog }">
  174. <div
  175. class="vedioBox"
  176. v-if="
  177. vedio[taskCount].length > 0 ||
  178. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  179. .taskDetail != '' ||
  180. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  181. .chapterData.length > 0
  182. "
  183. >
  184. <div class="checkbox">
  185. <div
  186. class="check"
  187. style="font-size: 25px"
  188. :id="
  189. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  190. "
  191. >
  192. <!-- {{ taskCount + 1 }}
  193. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
  194. 学一学
  195. </div>
  196. </div>
  197. <div
  198. class="student_head"
  199. v-if="
  200. vedio[taskCount].length > 0 ||
  201. textList[taskCount].length > 0 ||
  202. lineList[taskCount].length > 0 ||
  203. file[taskCount].length > 0 ||
  204. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  205. .taskDetail != ''
  206. "
  207. >
  208. <div class="taskBox">
  209. <div
  210. style="
  211. display: flex;
  212. flex-wrap: nowrap;
  213. flex-direction: column;
  214. position: relative;
  215. "
  216. >
  217. <div
  218. style="padding: 15px 0 15px 20px; line-height: 25px"
  219. class="cont"
  220. v-if="
  221. chapInfoList[courseType].chapterInfo[0].taskJson[
  222. taskCount
  223. ].taskDetail != ''
  224. "
  225. v-html="
  226. chapInfoList[courseType].chapterInfo[0].taskJson[
  227. taskCount
  228. ].taskDetail
  229. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  230. taskCount
  231. ].taskDetail
  232. : '暂无描述'
  233. "
  234. >
  235. <!-- <span style="color: #cbcbcb">任务描述</span> -->
  236. <!-- {{
  237. chapInfoList[courseType].chapterInfo[0].taskJson[
  238. taskCount
  239. ].taskDetail
  240. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  241. taskCount
  242. ].taskDetail
  243. : "暂无描述"
  244. }}-->
  245. </div>
  246. </div>
  247. </div>
  248. <div class="vedioTaskBox">
  249. <div
  250. class="box_course"
  251. v-if="
  252. vedio[taskCount].length > 0 ||
  253. textList[taskCount].length > 0 ||
  254. lineList[taskCount].length > 0 ||
  255. file[taskCount].length > 0
  256. "
  257. >
  258. <div
  259. class="wheel"
  260. v-if="
  261. vedio.length &&
  262. vedio[taskCount] &&
  263. vedio[taskCount].length > 0 &&
  264. showType == 0
  265. "
  266. >
  267. <div class="workd_media" style="height: 100%">
  268. <video-player
  269. class="video-player vjs-custom-skin"
  270. :playsinline="true"
  271. :options="playerO[taskCount]"
  272. @play="onPlayerPlay($event)"
  273. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  274. ></video-player>
  275. </div>
  276. </div>
  277. <div
  278. class="wheel"
  279. v-if="showType == 1"
  280. style="
  281. box-shadow: 0 0 6px 1px #f2f2f2;
  282. width: 95%;
  283. margin: 0 auto;
  284. background: #f1f1f1;
  285. "
  286. >
  287. <div class="title">查看文档</div>
  288. <el-form class="textBox">
  289. <el-form-item class="textTitle">
  290. <div
  291. style="
  292. font-size: 22px;
  293. max-height: 100px;
  294. overflow: auto;
  295. "
  296. >
  297. {{ text.name }}
  298. </div>
  299. </el-form-item>
  300. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  301. <div v-html="text.url" class="textContent cont"></div>
  302. </el-form>
  303. </div>
  304. <div
  305. class="wheel"
  306. v-if="showType == 2"
  307. style="width: 95%; margin: 0 auto"
  308. >
  309. <iframe
  310. style="width: 100%; height: 100%; border: none"
  311. :src="pptImgUrl1"
  312. ></iframe>
  313. </div>
  314. <div
  315. class="wheel"
  316. v-if="showType == 3"
  317. style="width: 95%; margin: 0 auto"
  318. >
  319. <!-- <iframe
  320. style="width: 100%; height: 100%; border: none"
  321. :src="pptImgUrl1"
  322. ></iframe>-->
  323. <pdf
  324. :pdfUrl="pptImgUrl1"
  325. style="width: 100%; height: 100%; overflow: auto"
  326. ></pdf>
  327. </div>
  328. <div
  329. class="wheel"
  330. v-if="showType == 4"
  331. style="width: 95%; margin: 0 auto"
  332. >
  333. <el-image
  334. :src="pptImgUrl1"
  335. fit="cover"
  336. style="width: 100%"
  337. ></el-image>
  338. </div>
  339. </div>
  340. <!-- :class="
  341. vedio[taskCount].length == 0 && file[taskCount].length == 0
  342. ? 'listNoVedio'
  343. : ''
  344. "-->
  345. <!-- :class="
  346. vedio[taskCount].length == 0 &&
  347. file[taskCount].length == 0 &&
  348. textList[taskCount].length == 0
  349. ? 'listNoVedio'
  350. : ''
  351. " -->
  352. <div
  353. class="vedioList"
  354. v-if="
  355. (vedio.length &&
  356. vedio[taskCount] &&
  357. vedio[taskCount].length > 0) ||
  358. (textList.length &&
  359. textList[taskCount] &&
  360. textList[taskCount].length > 0) ||
  361. (lineList.length &&
  362. lineList[taskCount] &&
  363. lineList[taskCount].length > 0) ||
  364. (file.length &&
  365. file[taskCount] &&
  366. file[taskCount].length > 0)
  367. "
  368. style="height: 605px"
  369. >
  370. <div class="navTitile">内容列表:</div>
  371. <div class="navBox">
  372. <div
  373. v-show="
  374. vedio.length &&
  375. vedio[taskCount] &&
  376. vedio[taskCount].length > 0
  377. "
  378. >
  379. <!-- <div
  380. class="vedioNav"
  381. style="
  382. width: 80px;
  383. min-width: 80px;
  384. height: 30px;
  385. line-height: 36px;
  386. font-size: 16px;
  387. border-radius: 10px;
  388. "
  389. >
  390. 视频
  391. </div> -->
  392. <div
  393. class="vedioTimeBox"
  394. v-for="(media, vedioIndex) in vedio[taskCount]"
  395. :key="vedioIndex + '1'"
  396. @click="lookVedio(media.url, vedioIndex)"
  397. >
  398. <!-- <div class="media" style="width: 90px; height: 60px; position: relative">
  399. <img style="height: 90px; width: 160px" :src="
  400. media.cover != null && media.cover != ''
  401. ? JSON.parse(media.cover).length > 0
  402. ? JSON.parse(media.cover)[0].url
  403. : mr
  404. : mr
  405. " alt />
  406. </div> -->
  407. <!-- <div class="vedioTime">
  408. {{ vedioTime[vedioIndex] }}
  409. </div> -->
  410. <!-- <div class="vedioName">{{ media.name }}</div> -->
  411. <div
  412. class="vedioName"
  413. :class="
  414. isClickNav == 'video' + vedioIndex
  415. ? 'isClickNav'
  416. : ''
  417. "
  418. >
  419. {{ media.name }}
  420. </div>
  421. </div>
  422. </div>
  423. <div
  424. v-show="
  425. textList.length &&
  426. textList[taskCount] &&
  427. textList[taskCount].length > 0
  428. "
  429. class="newNav"
  430. v-for="(text, textIndex) in textList[taskCount]"
  431. :key="textIndex + '2'"
  432. @click="lookText(taskCount, textIndex)"
  433. >
  434. <!-- <div
  435. class="vedioNav"
  436. style="
  437. width: 80px;
  438. min-width: 80px;
  439. height: 30px;
  440. line-height: 36px;
  441. font-size: 16px;
  442. border-radius: 10px;
  443. "
  444. >
  445. 文档
  446. </div> -->
  447. <div style="width: calc(100% - 0px)">
  448. <div
  449. class="navText"
  450. :class="
  451. isClickNav == 'text' + textIndex ? 'isClickNav' : ''
  452. "
  453. >
  454. {{
  455. textList[taskCount].length > 0 ? text.name : ""
  456. }}.doc
  457. </div>
  458. </div>
  459. </div>
  460. <!-- <div
  461. v-show="
  462. chapInfoList.length &&
  463. chapToolList[taskCount] &&
  464. chapToolList[taskCount].length > 0
  465. "
  466. class="newNav"
  467. v-for="(tools, toolsIndex) in chapToolList[taskCount]"
  468. :key="toolsIndex + '3'"
  469. >
  470. <div class="vedioNav">工具</div>
  471. <div>
  472. <div
  473. class="navText"
  474. @click="lookTools(taskCount, toolsIndex)"
  475. >
  476. {{
  477. chapToolList[taskCount].length > 0 ? tools.name : ""
  478. }}
  479. </div>
  480. </div>
  481. </div>-->
  482. <div
  483. v-show="
  484. lineList.length &&
  485. lineList[taskCount] &&
  486. lineList[taskCount].length > 0
  487. "
  488. class="newNav"
  489. v-for="(lines, lineIndex) in lineList[taskCount]"
  490. :key="lineIndex + '4'"
  491. @click="doUrl(lines.url, lineIndex)"
  492. >
  493. <!-- <div
  494. class="vedioNav"
  495. style="
  496. width: 80px;
  497. min-width: 80px;
  498. height: 30px;
  499. line-height: 36px;
  500. font-size: 16px;
  501. border-radius: 10px;
  502. "
  503. >
  504. 链接
  505. </div> -->
  506. <!-- <div style="width: calc(100% - 0px)">
  507. <div
  508. class="navText"
  509. :class="isClickNav == lineIndex ? 'isClickNav' : ''"
  510. >
  511. <a
  512. style="text-decoration: none; color: #000"
  513. target="_Blank"
  514. >{{ lines.url }}</a
  515. >
  516. </div>
  517. </div> -->
  518. <div style="width: calc(100% - 0px)">
  519. <div
  520. class="navText"
  521. :class="
  522. isClickNav == 'line' + lineIndex ? 'isClickNav' : ''
  523. "
  524. >
  525. {{ lines.title ? lines.title : lines.url }}
  526. </div>
  527. </div>
  528. </div>
  529. <div
  530. class="newNav"
  531. v-show="
  532. file.length &&
  533. file[taskCount] &&
  534. file[taskCount].length > 0
  535. "
  536. v-for="(f, fileIndex) in file[taskCount]"
  537. :key="fileIndex"
  538. @click="downFile(f, fileIndex)"
  539. >
  540. <!-- <div
  541. class="vedioNav"
  542. style="
  543. width: 80px;
  544. min-width: 80px;
  545. height: 30px;
  546. line-height: 36px;
  547. font-size: 16px;
  548. border-radius: 10px;
  549. "
  550. >
  551. 文档
  552. </div> -->
  553. <div style="width: calc(100% - 0px)">
  554. <div
  555. class="navText"
  556. :class="
  557. isClickNav == 'word' + fileIndex ? 'isClickNav' : ''
  558. "
  559. >
  560. {{ f.name }}
  561. </div>
  562. </div>
  563. </div>
  564. </div>
  565. </div>
  566. </div>
  567. <div style="width: 81%">
  568. <div
  569. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  570. v-if="showType == 2 || showType == 3"
  571. >
  572. <el-button
  573. type="primary"
  574. @click="checkFileFull(showType, pptImgUrl1)"
  575. >全屏查看</el-button
  576. >
  577. <el-button
  578. type="primary"
  579. @click="downloadFile(pptImgUrl1)"
  580. v-if="isClickNav.indexOf('line') == -1"
  581. >文件下载</el-button
  582. >
  583. <el-button
  584. v-if="isClickNav.indexOf('line') != -1"
  585. type="primary"
  586. @click="openLine(pptImgUrl1)"
  587. >打开链接
  588. </el-button>
  589. </div>
  590. <div
  591. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  592. v-if="showType == 1"
  593. >
  594. <el-button
  595. type="primary"
  596. @click="checkFileFull(showType, text)"
  597. >全屏查看</el-button
  598. >
  599. </div>
  600. </div>
  601. </div>
  602. </div>
  603. <div class="student_body" v-resize="resize">
  604. <!-- <div
  605. class="vedioBox"
  606. v-if="
  607. file.length && file[taskCount] && file[taskCount].length > 0
  608. "
  609. >
  610. <div class="queTop">
  611. <div class="question" style="width: 30px; margin-top: 5px">
  612. <img src="../assets/icon/fileIcon.png" alt />
  613. </div>
  614. <div class="queTitle">
  615. <div>附件</div>
  616. </div>
  617. </div>
  618. <div class="filebox" style="width: 100%">
  619. <div
  620. class="file"
  621. v-for="(f, fileIndex) in file[taskCount]"
  622. :key="fileIndex"
  623. @click="downFile(f, fileIndex)"
  624. >
  625. <img :src="require('../assets/file.png')" alt />
  626. <div>{{ f.name }}</div>
  627. </div>
  628. </div>
  629. <div class="upFile" v-if="type == 3">提交</div>
  630. </div>-->
  631. <div
  632. class="vedioBox"
  633. v-if="
  634. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  635. .toolChoose[0].tool &&
  636. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  637. .toolChoose[0].tool.length &&
  638. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  639. .toolChoose[0].tool.length > 0
  640. "
  641. >
  642. <div
  643. class="queTop"
  644. style="
  645. font-size: 25px;
  646. padding: 15px 0 15px 30px;
  647. font-weight: bold;
  648. "
  649. >
  650. <!-- <div class="question" style="width: 30px">
  651. <img src="../assets/icon/toolIcon.png" alt />
  652. </div>
  653. <div class="queTitle">
  654. <div>工具</div>
  655. </div>-->
  656. 练一练
  657. </div>
  658. <div class="toolHeng2" style="position: relative">
  659. <div
  660. class="filebox"
  661. style="flex-wrap: nowrap; margin: 0 20px"
  662. v-for="(tool, toolIndex) in chapInfoList[courseType]
  663. .chapterInfo[0].taskJson[taskCount].toolChoose"
  664. :key="toolIndex"
  665. >
  666. <div class="bzBox">
  667. <div></div>
  668. <div>步骤{{ toolIndex + 1 }}</div>
  669. </div>
  670. <div class="toolBox">
  671. <div>
  672. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  673. :key="indexTool"-->
  674. <!-- <div class="iframeBox">
  675. <div
  676. class="addPoint isBorder"
  677. v-for="(tooC, toolCIndex) in tool.tool"
  678. :key="toolCIndex"
  679. >
  680. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  681. <div
  682. class="iframeName"
  683. >
  684. 电子白板
  685. </div>
  686. <iframe
  687. src="https://iwb.cocorobo.cn/"
  688. ref="whiteBoard"
  689. ></iframe>
  690. </div>
  691. </div>
  692. </div>-->
  693. <div class="noiframeBox">
  694. <div
  695. class="addPoint"
  696. v-for="(tooC, toolCIndex) in tool.tool"
  697. :key="toolCIndex"
  698. >
  699. <div v-if="tooC == 1">
  700. <img
  701. src="../assets/icon/secondToolList/whiteBoard.png"
  702. alt
  703. @click="addTools(tooC, toolIndex, taskCount)"
  704. />
  705. <div style="margin: 5px 0">电子白板</div>
  706. </div>
  707. <div v-if="tooC == 3">
  708. <img
  709. src="../assets/icon/secondToolList/mindMapping.png"
  710. alt
  711. @click="addTools(tooC, toolIndex, taskCount)"
  712. />
  713. <div style="margin: 5px 0">思维导图</div>
  714. </div>
  715. <div v-if="tooC == 6">
  716. <img
  717. src="../assets/icon/secondToolList/doc.png"
  718. alt
  719. @click="addTools(tooC, toolIndex, taskCount)"
  720. />
  721. <div style="margin: 5px 0">协同文档</div>
  722. </div>
  723. <div v-if="tooC == 7">
  724. <img
  725. src="../assets/icon/secondToolList/mindNetwork.png"
  726. alt
  727. @click="addTools(tooC, toolIndex, taskCount)"
  728. />
  729. <div style="margin: 5px 0">思维网格</div>
  730. </div>
  731. <div v-if="tooC == 8">
  732. <img
  733. src="../assets/icon/secondToolList/library.png"
  734. alt
  735. @click="addTools(tooC, toolIndex, taskCount)"
  736. />
  737. <div style="margin: 5px 0">素材库</div>
  738. </div>
  739. <div v-if="tooC == 17">
  740. <img
  741. src="../assets/icon/secondToolList/library.png"
  742. alt
  743. @click="addTools(tooC, toolIndex, taskCount)"
  744. />
  745. <div style="margin: 5px 0">学习资料</div>
  746. </div>
  747. <div v-if="tooC == 2">
  748. <img
  749. @click="addTools(tooC, toolIndex, taskCount)"
  750. src="../assets/icon/secondToolList/note.png"
  751. alt
  752. />
  753. <div style="margin: 5px 0">便签</div>
  754. </div>
  755. <div v-if="tooC == 4">
  756. <img
  757. @click="addTools(tooC, toolIndex, taskCount)"
  758. src="../assets/icon/thirdToolList/ask.png"
  759. alt
  760. />
  761. <div style="margin: 5px 0">问卷调查</div>
  762. </div>
  763. <div v-if="tooC == 45">
  764. <img
  765. @click="addTools(tooC, toolIndex, taskCount)"
  766. src="../assets/icon/thirdToolList/choose.png"
  767. alt
  768. />
  769. <div style="margin: 5px 0">选择题</div>
  770. </div>
  771. <!-- <div v-if="tooC == 5">
  772. <img
  773. @click="addTools(tooC, toolIndex, taskCount)"
  774. src="../assets/icon/thirdToolList/score.png"
  775. alt
  776. />
  777. <div style="margin: 5px 0">量规评分</div>
  778. </div> -->
  779. <div v-if="tooC == 10">
  780. <img
  781. @click="addTools(tooC, toolIndex, taskCount)"
  782. src="../assets/icon/thirdToolList/time.png"
  783. alt
  784. />
  785. <div style="margin: 5px 0">倒计时</div>
  786. </div>
  787. <div v-if="tooC == 15">
  788. <img
  789. @click="addTools(tooC, toolIndex, taskCount)"
  790. src="../assets/icon/thirdToolList/answer.png"
  791. alt
  792. />
  793. <div style="margin: 5px 0">问答工具</div>
  794. </div>
  795. <div v-if="tooC == 26">
  796. <img
  797. @click="addTools(tooC, toolIndex, taskCount)"
  798. src="../assets/icon/thirdToolList/courseDesign.png"
  799. alt
  800. />
  801. <div style="margin: 5px 0">课程设计</div>
  802. </div>
  803. <div v-if="tooC == 18">
  804. <img
  805. @click="addTools(tooC, toolIndex, taskCount)"
  806. src="../assets/icon/thirdToolList/trainPlatform.png"
  807. alt
  808. />
  809. <div style="margin: 5px 0">训练服务器</div>
  810. </div>
  811. <div v-if="tooC == 16">
  812. <img
  813. @click="addTools(tooC, toolIndex, taskCount)"
  814. src="../assets/icon/thirdToolList/work.png"
  815. alt
  816. />
  817. <div style="margin: 5px 0">作业提交</div>
  818. </div>
  819. <div v-if="tooC == 50">
  820. <img
  821. @click="addTools(tooC, toolIndex, taskCount)"
  822. src="../assets/icon/thirdToolList/plwork.png"
  823. alt
  824. />
  825. <div style="margin: 5px 0">批量上传</div>
  826. </div>
  827. <div v-if="tooC == 21">
  828. <img
  829. @click="addTools(tooC, toolIndex, taskCount)"
  830. src="../assets/icon/fourthToolList/program.png"
  831. alt
  832. />
  833. <div style="margin: 5px 0">编程平台</div>
  834. </div>
  835. <div v-if="tooC == 22">
  836. <img
  837. @click="addTools(tooC, toolIndex, taskCount)"
  838. src="../assets/icon/fourthToolList/program.png"
  839. alt
  840. />
  841. <div style="margin: 5px 0">AI体验</div>
  842. </div>
  843. <div v-if="tooC == 23">
  844. <img
  845. @click="addTools(tooC, toolIndex, taskCount)"
  846. src="../assets/icon/fourthToolList/program.png"
  847. alt
  848. />
  849. <div style="margin: 5px 0">Python</div>
  850. </div>
  851. <div v-if="tooC == 24">
  852. <img
  853. @click="addTools(tooC, toolIndex, taskCount)"
  854. src="../assets/icon/fourthToolList/AIprogram.png"
  855. alt
  856. />
  857. <div style="margin: 5px 0">AI平台</div>
  858. </div>
  859. <div v-if="tooC == 25">
  860. <img
  861. @click="addTools(tooC, toolIndex, taskCount)"
  862. src="../assets/icon/thirdToolList/evalua.png"
  863. alt
  864. />
  865. <div style="margin: 5px 0">目标管理</div>
  866. </div>
  867. <div v-if="tooC == 31">
  868. <img
  869. @click="addTools(tooC, toolIndex, taskCount)"
  870. src="../assets/icon/secondToolList/networkPanel.png"
  871. alt
  872. />
  873. <div style="margin: 5px 0">数学画板</div>
  874. </div>
  875. <div v-if="tooC == 28">
  876. <img
  877. @click="addTools(tooC, toolIndex, taskCount)"
  878. src="../assets/icon/secondToolList/translation.png"
  879. alt
  880. />
  881. <div style="margin: 5px 0">翻译</div>
  882. </div>
  883. <div v-if="tooC == 37">
  884. <img
  885. @click="addTools(tooC, toolIndex, taskCount)"
  886. src="../assets/icon/secondToolList/mohe.png"
  887. alt
  888. />
  889. <div style="margin: 5px 0">魔盒识字</div>
  890. </div>
  891. <div v-if="tooC == 38">
  892. <img
  893. @click="addTools(tooC, toolIndex, taskCount)"
  894. src="../assets/icon/secondToolList/24game.png"
  895. alt
  896. />
  897. <div style="margin: 5px 0">24点</div>
  898. </div>
  899. <div v-if="tooC == 39">
  900. <img
  901. @click="addTools(tooC, toolIndex, taskCount)"
  902. src="../assets/icon/secondToolList/GeoGebra.png"
  903. alt
  904. />
  905. <div style="margin: 5px 0">GeoGebra</div>
  906. </div>
  907. <div v-if="tooC == 32">
  908. <img
  909. @click="addTools(tooC, toolIndex, taskCount)"
  910. src="../assets/icon/thirdToolList/code.png"
  911. alt
  912. />
  913. <div style="margin: 5px 0">源码编辑</div>
  914. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  915. style="position: absolute;left: 110px;bottom: 30px;">
  916. 上传文件
  917. <input type="file" accept="*" style="display: none"
  918. @change="beforeUpload1($event, 7, toolIndex)" />
  919. </div> -->
  920. </div>
  921. <div v-if="tooC == 40">
  922. <img
  923. @click="addTools(tooC, toolIndex, taskCount)"
  924. src="../assets/icon/secondToolList/eval.png"
  925. alt
  926. />
  927. <div style="margin: 5px 0">个人评价</div>
  928. </div>
  929. <div v-if="tooC == 41">
  930. <img
  931. @click="addTools(tooC, toolIndex, taskCount)"
  932. src="../assets/icon/thirdToolList/select.png"
  933. alt
  934. />
  935. <div style="margin: 5px 0">选择填空</div>
  936. </div>
  937. <div v-if="tooC == 44">
  938. <img
  939. @click="addTools(tooC, toolIndex, taskCount)"
  940. src="../assets/icon/thirdToolList/hanClass.png"
  941. alt
  942. />
  943. <div style="margin: 5px 0">汉字宫</div>
  944. </div>
  945. <div v-if="tooC == 47">
  946. <img
  947. @click="addTools(tooC, toolIndex, taskCount)"
  948. src="../assets/icon/fourthToolList/conSentences.png"
  949. alt
  950. />
  951. <div style="margin: 5px 0">连词成句</div>
  952. </div>
  953. <div v-if="tooC == 48">
  954. <img
  955. @click="addTools(tooC, toolIndex, taskCount)"
  956. src="../assets/icon/fourthToolList/table.png"
  957. alt
  958. />
  959. <div style="margin: 5px 0">表格</div>
  960. </div>
  961. <div v-if="tooC == 49">
  962. <img
  963. @click="addTools(tooC, toolIndex, taskCount)"
  964. src="../assets/icon/fourthToolList/group.png"
  965. alt
  966. />
  967. <div style="margin: 5px 0">学生分组</div>
  968. </div>
  969. </div>
  970. </div>
  971. </div>
  972. <div class="tooldetail" v-if="tool.toolDetail != ''">
  973. <!-- <div class="toolTitle">工具描述</div> -->
  974. <div v-html="contentConvent(tool.toolDetail)">
  975. </div>
  976. </div>
  977. <el-button
  978. type="primary"
  979. v-if="tool.tool[0] == 32"
  980. style="
  981. position: absolute;
  982. right: 30px;
  983. transform: translateY(-130%);
  984. "
  985. @click="addImg($event)"
  986. >上传作业<input
  987. type="file"
  988. accept="*"
  989. style="display: none"
  990. @change="beforeUpload1($event, 7, toolIndex)"
  991. /></el-button>
  992. </div>
  993. <div
  994. v-if="
  995. tType &&
  996. tType == 2 &&
  997. !sIsOpen &&
  998. tool.tool.indexOf(16) != -1
  999. "
  1000. class="worksBox"
  1001. >
  1002. <div
  1003. class="zuoyeYulan"
  1004. v-if="workStudent[toolIndex].length > 0"
  1005. >
  1006. <span>作业预览</span>
  1007. <el-button
  1008. type="text"
  1009. @click="jump()"
  1010. v-if="tType == 2"
  1011. class="buttonA"
  1012. >我的评价</el-button
  1013. >
  1014. </div>
  1015. <div
  1016. class="worksDetailBox"
  1017. v-if="workStudent[toolIndex].length > 0"
  1018. >
  1019. <div
  1020. class="works"
  1021. style="
  1022. width: 200px;
  1023. height: 140px;
  1024. margin: 10px 10px 10px 0;
  1025. box-shadow: 0 0 6px 1px #dfdada;
  1026. "
  1027. v-for="(w, wIndex) in workStudent[toolIndex]"
  1028. :key="wIndex"
  1029. >
  1030. <div class="workImg" v-if="w.type == 0">
  1031. <img
  1032. :src="w.works"
  1033. @click="previewImg(w.works)"
  1034. alt
  1035. />
  1036. <div
  1037. class="answerScore"
  1038. v-if="w.score"
  1039. @click.stop="openScore(w)"
  1040. :class="{
  1041. rightW:
  1042. w.userid == userid || tType == 1 || tType == 4,
  1043. }"
  1044. >
  1045. {{ JSON.parse(w.score).wScore }}分
  1046. </div>
  1047. <div
  1048. class="answerScore"
  1049. @click.stop="openScore(w)"
  1050. v-else-if="courseDetail.userid == userid"
  1051. :class="{
  1052. rightW:
  1053. w.userid == userid || tType == 1 || tType == 4,
  1054. }"
  1055. >
  1056. 评分
  1057. </div>
  1058. <img
  1059. class="deleteImg"
  1060. src="../assets/deleteworks.png"
  1061. v-if="
  1062. w.userid == userid || tType == 1 || tType == 4
  1063. "
  1064. @click.stop="deleteWorks(w.wid)"
  1065. alt
  1066. />
  1067. </div>
  1068. <div class="workImg" v-if="w.type == 1">
  1069. <img :src="word" @click="openFile(w.works)" alt />
  1070. <div
  1071. class="answerScore"
  1072. v-if="w.score"
  1073. @click.stop="openScore(w)"
  1074. :class="{
  1075. rightW:
  1076. w.userid == userid || tType == 1 || tType == 4,
  1077. }"
  1078. >
  1079. {{ JSON.parse(w.score).wScore }}分
  1080. </div>
  1081. <div
  1082. class="answerScore"
  1083. @click.stop="openScore(w)"
  1084. v-else-if="courseDetail.userid == userid"
  1085. :class="{
  1086. rightW:
  1087. w.userid == userid || tType == 1 || tType == 4,
  1088. }"
  1089. >
  1090. 评分
  1091. </div>
  1092. <img
  1093. class="deleteImg"
  1094. src="../assets/deleteworks.png"
  1095. v-if="
  1096. w.userid == userid || tType == 1 || tType == 4
  1097. "
  1098. @click.stop="deleteWorks(w.wid)"
  1099. alt
  1100. />
  1101. </div>
  1102. <div class="workImg" v-if="w.type == 3">
  1103. <img
  1104. style="cursor: pointer"
  1105. :src="video"
  1106. @click="openVideo(w)"
  1107. alt
  1108. />
  1109. <div
  1110. class="answerScore"
  1111. v-if="w.score"
  1112. @click.stop="openScore(w)"
  1113. :class="{
  1114. rightW:
  1115. w.userid == userid || tType == 1 || tType == 4,
  1116. }"
  1117. >
  1118. {{ JSON.parse(w.score).wScore }}分
  1119. </div>
  1120. <div
  1121. class="answerScore"
  1122. @click.stop="openScore(w)"
  1123. v-else-if="courseDetail.userid == userid"
  1124. :class="{
  1125. rightW:
  1126. w.userid == userid || tType == 1 || tType == 4,
  1127. }"
  1128. >
  1129. 评分
  1130. </div>
  1131. <img
  1132. class="deleteImg"
  1133. src="../assets/deleteworks.png"
  1134. v-if="
  1135. w.userid == userid || tType == 1 || tType == 4
  1136. "
  1137. @click.stop="deleteWorks(w.wid)"
  1138. alt
  1139. />
  1140. </div>
  1141. <div class="worksName">
  1142. <div>{{ w.sName }}</div>
  1143. </div>
  1144. </div>
  1145. </div>
  1146. </div>
  1147. <div
  1148. v-if="
  1149. tType &&
  1150. tType == 2 &&
  1151. !sIsOpen &&
  1152. tool.tool.indexOf(32) != -1
  1153. "
  1154. class="worksBox"
  1155. >
  1156. <div
  1157. class="zuoyeYulan"
  1158. v-if="workStudent[toolIndex].length > 0"
  1159. >
  1160. <span>作业预览</span>
  1161. </div>
  1162. <div
  1163. class="worksDetailBox"
  1164. v-if="workStudent[toolIndex].length > 0"
  1165. >
  1166. <div
  1167. class="works"
  1168. style="
  1169. width: 200px;
  1170. height: 140px;
  1171. margin: 10px 10px 10px 0;
  1172. box-shadow: 0 0 6px 1px #dfdada;
  1173. "
  1174. v-for="(w, wIndex) in workStudent[toolIndex]"
  1175. :key="wIndex"
  1176. >
  1177. <div class="workImg">
  1178. <img
  1179. :src="word2"
  1180. @click="downloadFile(w.works)"
  1181. alt
  1182. />
  1183. <div
  1184. class="answerScore"
  1185. v-if="w.score"
  1186. @click.stop="openScore(w)"
  1187. :class="{
  1188. rightW:
  1189. w.userid == userid || tType == 1 || tType == 4,
  1190. }"
  1191. >
  1192. {{ JSON.parse(w.score).wScore }}分
  1193. </div>
  1194. <div
  1195. class="answerScore"
  1196. @click.stop="openScore(w)"
  1197. v-else-if="courseDetail.userid == userid"
  1198. :class="{
  1199. rightW:
  1200. w.userid == userid || tType == 1 || tType == 4,
  1201. }"
  1202. >
  1203. 评分
  1204. </div>
  1205. <img
  1206. class="deleteImg"
  1207. src="../assets/deleteworks.png"
  1208. v-if="
  1209. w.userid == userid || tType == 1 || tType == 4
  1210. "
  1211. @click.stop="deleteWorks(w.wid)"
  1212. alt
  1213. />
  1214. </div>
  1215. <div class="worksName">
  1216. <div>{{ w.sName }}</div>
  1217. </div>
  1218. </div>
  1219. </div>
  1220. </div>
  1221. <div
  1222. v-if="
  1223. tType &&
  1224. tType == 2 &&
  1225. !sIsOpen &&
  1226. tool.tool.indexOf(4) != -1
  1227. "
  1228. class="worksBox"
  1229. >
  1230. <div
  1231. class="zuoyeYulan"
  1232. v-if="workStudent[toolIndex].length > 0"
  1233. >
  1234. <span>作业预览</span>
  1235. <el-button
  1236. type="text"
  1237. @click="jump()"
  1238. v-if="tType == 2"
  1239. class="buttonA"
  1240. >我的评价</el-button
  1241. >
  1242. </div>
  1243. <div
  1244. class="worksDetailBox"
  1245. v-if="workStudent[toolIndex].length > 0"
  1246. >
  1247. <div
  1248. class="isWorksName"
  1249. v-for="(w, wIndex) in workStudent[toolIndex]"
  1250. :key="wIndex"
  1251. @click="
  1252. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1253. "
  1254. >
  1255. {{ w.sName }}
  1256. <img
  1257. class="deleteImg deleteImg2"
  1258. src="../assets/deleteworks.png"
  1259. v-if="w.userid == userid || tType == 1 || tType == 4"
  1260. @click.stop="deleteWorks(w.wid)"
  1261. alt
  1262. />
  1263. </div>
  1264. <!-- <div
  1265. class="works"
  1266. style="
  1267. width: 200px;
  1268. height: 140px;
  1269. border-radius: 10px;
  1270. box-shadow: 0 0 6px 1px #dfdada;
  1271. overflow: hidden;
  1272. "
  1273. v-for="(w, wIndex) in workStudent[toolIndex]"
  1274. :key="wIndex"
  1275. >
  1276. <div class="workImg">
  1277. <img
  1278. src="../assets/icon/works/noImg.png"
  1279. @click="
  1280. openTools(
  1281. 4,
  1282. toolIndex,
  1283. taskCount,
  1284. w.works,
  1285. w.sName
  1286. )
  1287. "
  1288. alt
  1289. />
  1290. </div>
  1291. <div class="worksName">
  1292. <div>{{ w.sName }}</div>
  1293. <div>{{ w.time }}</div>
  1294. </div>
  1295. </div> -->
  1296. </div>
  1297. </div>
  1298. <div
  1299. v-if="
  1300. tType &&
  1301. tType == 2 &&
  1302. !sIsOpen &&
  1303. tool.tool.indexOf(45) != -1
  1304. "
  1305. class="worksBox"
  1306. >
  1307. <div
  1308. class="zuoyeYulan"
  1309. v-if="workStudent[toolIndex].length > 0"
  1310. >
  1311. <span>作业预览</span>
  1312. <el-button
  1313. type="text"
  1314. @click="jump()"
  1315. v-if="tType == 2"
  1316. class="buttonA"
  1317. >我的评价</el-button
  1318. >
  1319. </div>
  1320. <div
  1321. class="worksDetailBox"
  1322. v-if="workStudent[toolIndex].length > 0"
  1323. >
  1324. <div
  1325. class="isWorksName"
  1326. v-for="(w, wIndex) in workStudent[toolIndex]"
  1327. :key="wIndex"
  1328. @click="
  1329. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1330. "
  1331. >
  1332. {{ w.sName }}
  1333. <img
  1334. class="deleteImg deleteImg2"
  1335. src="../assets/deleteworks.png"
  1336. v-if="w.userid == userid || tType == 1 || tType == 4"
  1337. @click.stop="deleteWorks(w.wid)"
  1338. alt
  1339. />
  1340. </div>
  1341. </div>
  1342. </div>
  1343. <div
  1344. v-if="
  1345. tType &&
  1346. tType == 2 &&
  1347. !sIsOpen &&
  1348. tool.tool.indexOf(15) != -1
  1349. "
  1350. class="worksBox"
  1351. >
  1352. <div
  1353. class="zuoyeYulan"
  1354. v-if="workStudent[toolIndex].length > 0"
  1355. >
  1356. <span>作业预览</span>
  1357. <el-button
  1358. type="text"
  1359. @click="jump()"
  1360. v-if="tType == 2"
  1361. class="buttonA"
  1362. >我的评价</el-button
  1363. >
  1364. </div>
  1365. <div
  1366. class="worksDetailBox"
  1367. v-if="workStudent[toolIndex].length > 0"
  1368. >
  1369. <div
  1370. class="works"
  1371. v-for="(w, wIndex) in workStudent[toolIndex]"
  1372. :key="wIndex"
  1373. >
  1374. <div class="workImg">
  1375. <!-- <img
  1376. src="../assets/icon/works/noImg.png"
  1377. @click="openTools(15, toolIndex, taskCount, w.works)"
  1378. alt=""
  1379. />-->
  1380. <div class="answerBg">
  1381. <!-- <div>{{ w.sName }}</div> -->
  1382. <el-tooltip
  1383. class="item"
  1384. effect="light"
  1385. :content="JSON.parse(w.works)[0].answer"
  1386. placement="top"
  1387. >
  1388. <div class="answerContent">
  1389. {{ JSON.parse(w.works)[0].answer }}
  1390. </div>
  1391. </el-tooltip>
  1392. <div
  1393. class="answerScore"
  1394. v-if="w.score"
  1395. @click.stop="openScore(w)"
  1396. :class="{
  1397. rightW:
  1398. w.userid == userid ||
  1399. tType == 1 ||
  1400. tType == 4,
  1401. }"
  1402. >
  1403. {{ JSON.parse(w.score).wScore }}分
  1404. </div>
  1405. <div
  1406. class="answerScore"
  1407. @click.stop="openScore(w)"
  1408. v-else-if="courseDetail.userid == userid"
  1409. :class="{
  1410. rightW:
  1411. w.userid == userid ||
  1412. tType == 1 ||
  1413. tType == 4,
  1414. }"
  1415. >
  1416. 评分
  1417. </div>
  1418. <img
  1419. class="deleteImg"
  1420. src="../assets/deleteworks.png"
  1421. v-if="
  1422. w.userid == userid || tType == 1 || tType == 4
  1423. "
  1424. @click.stop="deleteWorks(w.wid)"
  1425. alt
  1426. />
  1427. </div>
  1428. <div class="comment">
  1429. <div class="worksName">
  1430. <div>{{ w.sName }}</div>
  1431. </div>
  1432. </div>
  1433. </div>
  1434. </div>
  1435. </div>
  1436. </div>
  1437. <div
  1438. v-if="
  1439. tType &&
  1440. tType == 2 &&
  1441. !sIsOpen &&
  1442. tool.tool.indexOf(1) != -1
  1443. "
  1444. class="worksBox"
  1445. >
  1446. <div
  1447. class="zuoyeYulan"
  1448. v-if="workStudent[toolIndex].length > 0"
  1449. >
  1450. <span>作业预览</span>
  1451. <el-button
  1452. type="text"
  1453. @click="jump()"
  1454. v-if="tType == 2"
  1455. class="buttonA"
  1456. >我的评价</el-button
  1457. >
  1458. </div>
  1459. <div
  1460. class="worksDetailBox"
  1461. v-if="workStudent[toolIndex].length > 0"
  1462. >
  1463. <div
  1464. class="works"
  1465. style="
  1466. width: 200px;
  1467. height: 140px;
  1468. margin: 10px 10px 10px 0;
  1469. box-shadow: 0 0 6px 1px #dfdada;
  1470. "
  1471. v-for="(w, wIndex) in workStudent[toolIndex]"
  1472. :key="wIndex"
  1473. >
  1474. <div class="workImg">
  1475. <img
  1476. :src="w.works"
  1477. @click="previewImg(w.works)"
  1478. alt
  1479. />
  1480. <div
  1481. class="answerScore"
  1482. v-if="w.score"
  1483. @click.stop="openScore(w)"
  1484. :class="{
  1485. rightW:
  1486. w.userid == userid || tType == 1 || tType == 4,
  1487. }"
  1488. >
  1489. {{ JSON.parse(w.score).wScore }}分
  1490. </div>
  1491. <div
  1492. class="answerScore"
  1493. @click.stop="openScore(w)"
  1494. v-else-if="courseDetail.userid == userid"
  1495. :class="{
  1496. rightW:
  1497. w.userid == userid || tType == 1 || tType == 4,
  1498. }"
  1499. >
  1500. 评分
  1501. </div>
  1502. <img
  1503. class="deleteImg"
  1504. src="../assets/deleteworks.png"
  1505. v-if="
  1506. w.userid == userid || tType == 1 || tType == 4
  1507. "
  1508. @click.stop="deleteWorks(w.wid)"
  1509. alt
  1510. />
  1511. </div>
  1512. <div class="worksName">
  1513. <div>{{ w.sName }}</div>
  1514. </div>
  1515. </div>
  1516. </div>
  1517. </div>
  1518. <div
  1519. v-if="
  1520. tType &&
  1521. tType == 2 &&
  1522. !sIsOpen &&
  1523. tool.tool.indexOf(3) != -1
  1524. "
  1525. class="worksBox"
  1526. >
  1527. <div
  1528. class="zuoyeYulan"
  1529. v-if="workStudent[toolIndex].length > 0"
  1530. >
  1531. <span>作业预览</span>
  1532. <el-button
  1533. type="text"
  1534. @click="jump()"
  1535. v-if="tType == 2"
  1536. class="buttonA"
  1537. >我的评价</el-button
  1538. >
  1539. </div>
  1540. <div
  1541. class="worksDetailBox"
  1542. v-if="workStudent[toolIndex].length > 0"
  1543. >
  1544. <div
  1545. class="works"
  1546. style="
  1547. width: 200px;
  1548. height: 140px;
  1549. margin: 10px 10px 10px 0;
  1550. box-shadow: 0 0 6px 1px #dfdada;
  1551. "
  1552. v-for="(w, wIndex) in workStudent[toolIndex]"
  1553. :key="wIndex"
  1554. >
  1555. <div class="workImg">
  1556. <img
  1557. :src="w.works"
  1558. @click="previewImg(w.works)"
  1559. alt
  1560. />
  1561. <div
  1562. class="answerScore"
  1563. v-if="w.score"
  1564. @click.stop="openScore(w)"
  1565. :class="{
  1566. rightW:
  1567. w.userid == userid || tType == 1 || tType == 4,
  1568. }"
  1569. >
  1570. {{ JSON.parse(w.score).wScore }}分
  1571. </div>
  1572. <div
  1573. class="answerScore"
  1574. @click.stop="openScore(w)"
  1575. v-else-if="courseDetail.userid == userid"
  1576. :class="{
  1577. rightW:
  1578. w.userid == userid || tType == 1 || tType == 4,
  1579. }"
  1580. >
  1581. 评分
  1582. </div>
  1583. <img
  1584. class="deleteImg"
  1585. src="../assets/deleteworks.png"
  1586. v-if="
  1587. w.userid == userid || tType == 1 || tType == 4
  1588. "
  1589. @click.stop="deleteWorks(w.wid)"
  1590. alt
  1591. />
  1592. </div>
  1593. <div class="worksName">
  1594. <div>{{ w.sName }}</div>
  1595. </div>
  1596. </div>
  1597. </div>
  1598. </div>
  1599. <div
  1600. v-if="
  1601. tType &&
  1602. tType == 2 &&
  1603. !sIsOpen &&
  1604. tool.tool.indexOf(6) != -1
  1605. "
  1606. class="worksBox"
  1607. >
  1608. <div
  1609. class="zuoyeYulan"
  1610. v-if="workStudent[toolIndex].length > 0"
  1611. >
  1612. <span>作业预览</span>
  1613. <el-button
  1614. type="text"
  1615. @click="jump()"
  1616. v-if="tType == 2"
  1617. class="buttonA"
  1618. >我的评价</el-button
  1619. >
  1620. </div>
  1621. <div
  1622. class="worksDetailBox"
  1623. v-if="workStudent[toolIndex].length > 0"
  1624. >
  1625. <div
  1626. class="works"
  1627. style="
  1628. width: 200px;
  1629. height: 140px;
  1630. margin: 10px 10px 10px 0;
  1631. box-shadow: 0 0 6px 1px #dfdada;
  1632. "
  1633. v-for="(w, wIndex) in workStudent[toolIndex]"
  1634. :key="wIndex"
  1635. >
  1636. <div class="workImg">
  1637. <img
  1638. :src="w.works"
  1639. @click="previewImg(w.works)"
  1640. alt
  1641. />
  1642. <div
  1643. class="answerScore"
  1644. v-if="w.score"
  1645. @click.stop="openScore(w)"
  1646. :class="{
  1647. rightW:
  1648. w.userid == userid || tType == 1 || tType == 4,
  1649. }"
  1650. >
  1651. {{ JSON.parse(w.score).wScore }}分
  1652. </div>
  1653. <div
  1654. class="answerScore"
  1655. @click.stop="openScore(w)"
  1656. v-else-if="courseDetail.userid == userid"
  1657. :class="{
  1658. rightW:
  1659. w.userid == userid || tType == 1 || tType == 4,
  1660. }"
  1661. >
  1662. 评分
  1663. </div>
  1664. <img
  1665. class="deleteImg"
  1666. src="../assets/deleteworks.png"
  1667. v-if="
  1668. w.userid == userid || tType == 1 || tType == 4
  1669. "
  1670. @click.stop="deleteWorks(w.wid)"
  1671. alt
  1672. />
  1673. </div>
  1674. <div class="worksName">
  1675. <div>{{ w.sName }}</div>
  1676. </div>
  1677. </div>
  1678. </div>
  1679. </div>
  1680. <div
  1681. v-if="
  1682. tType &&
  1683. tType == 2 &&
  1684. !sIsOpen &&
  1685. tool.tool.indexOf(7) != -1
  1686. "
  1687. class="worksBox"
  1688. >
  1689. <div
  1690. class="zuoyeYulan"
  1691. v-if="workStudent[toolIndex].length > 0"
  1692. >
  1693. <span>作业预览</span>
  1694. <el-button
  1695. type="text"
  1696. @click="jump()"
  1697. v-if="tType == 2"
  1698. class="buttonA"
  1699. >我的评价</el-button
  1700. >
  1701. </div>
  1702. <div
  1703. class="worksDetailBox"
  1704. v-if="workStudent[toolIndex].length > 0"
  1705. >
  1706. <div
  1707. class="works"
  1708. style="
  1709. width: 200px;
  1710. height: 140px;
  1711. margin: 10px 10px 10px 0;
  1712. box-shadow: 0 0 6px 1px #dfdada;
  1713. "
  1714. v-for="(w, wIndex) in workStudent[toolIndex]"
  1715. :key="wIndex"
  1716. >
  1717. <div class="workImg">
  1718. <img
  1719. :src="w.works"
  1720. @click="previewImg(w.works)"
  1721. alt
  1722. />
  1723. <div
  1724. class="answerScore"
  1725. v-if="w.score"
  1726. @click.stop="openScore(w)"
  1727. :class="{
  1728. rightW:
  1729. w.userid == userid || tType == 1 || tType == 4,
  1730. }"
  1731. >
  1732. {{ JSON.parse(w.score).wScore }}分
  1733. </div>
  1734. <div
  1735. class="answerScore"
  1736. @click.stop="openScore(w)"
  1737. v-else-if="courseDetail.userid == userid"
  1738. :class="{
  1739. rightW:
  1740. w.userid == userid || tType == 1 || tType == 4,
  1741. }"
  1742. >
  1743. 评分
  1744. </div>
  1745. <img
  1746. class="deleteImg"
  1747. src="../assets/deleteworks.png"
  1748. v-if="
  1749. w.userid == userid || tType == 1 || tType == 4
  1750. "
  1751. @click.stop="deleteWorks(w.wid)"
  1752. alt
  1753. />
  1754. </div>
  1755. <div class="worksName">
  1756. <div>{{ w.sName }}</div>
  1757. </div>
  1758. </div>
  1759. </div>
  1760. </div>
  1761. <div
  1762. v-if="
  1763. tType &&
  1764. tType == 2 &&
  1765. !sIsOpen &&
  1766. tool.tool.indexOf(26) != -1
  1767. "
  1768. class="worksBox"
  1769. >
  1770. <div
  1771. class="zuoyeYulan"
  1772. v-if="workStudent[toolIndex].length > 0"
  1773. >
  1774. <span>作业预览</span>
  1775. <el-button
  1776. type="text"
  1777. @click="jump()"
  1778. v-if="tType == 2"
  1779. class="buttonA"
  1780. >我的评价</el-button
  1781. >
  1782. </div>
  1783. <div
  1784. class="worksDetailBox"
  1785. v-if="workStudent[toolIndex].length > 0"
  1786. >
  1787. <div
  1788. class="works"
  1789. style="
  1790. width: 200px;
  1791. height: 140px;
  1792. margin: 10px 10px 10px 0;
  1793. box-shadow: 0 0 6px 1px #dfdada;
  1794. "
  1795. v-for="(w, wIndex) in workStudent[toolIndex]"
  1796. :key="wIndex"
  1797. >
  1798. <div class="workImg">
  1799. <img
  1800. :src="w.works"
  1801. @click="previewImg(w.works)"
  1802. alt
  1803. />
  1804. <img
  1805. class="deleteImg"
  1806. src="../assets/deleteworks.png"
  1807. v-if="
  1808. w.userid == userid || tType == 1 || tType == 4
  1809. "
  1810. @click.stop="deleteWorks(w.wid)"
  1811. alt
  1812. />
  1813. </div>
  1814. <div class="worksName">
  1815. <div>{{ w.sName }}</div>
  1816. </div>
  1817. </div>
  1818. </div>
  1819. </div>
  1820. <div
  1821. v-if="
  1822. tType &&
  1823. ((tType == 2 && sIsOpen == true) ||
  1824. tType == 1 ||
  1825. tType == 4) &&
  1826. tool.tool.indexOf(16) != -1
  1827. "
  1828. class="worksBox"
  1829. >
  1830. <div
  1831. class="zuoyeYulan"
  1832. v-if="
  1833. worksStudent.length &&
  1834. worksStudent[toolIndex].length > 0
  1835. "
  1836. >
  1837. <span>作业预览</span>
  1838. <el-button
  1839. type="text"
  1840. @click="jump()"
  1841. v-if="tType == 2"
  1842. class="buttonA"
  1843. >我的评价</el-button
  1844. >
  1845. </div>
  1846. <div
  1847. class="worksDetailBox"
  1848. v-if="
  1849. worksStudent.length &&
  1850. worksStudent[toolIndex].length > 0
  1851. "
  1852. >
  1853. <div
  1854. class="works"
  1855. style="
  1856. width: 200px;
  1857. height: 140px;
  1858. margin: 10px 10px 10px 0;
  1859. border-radius: 15px;
  1860. box-shadow: 0 0 6px 1px #dfdada;
  1861. "
  1862. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1863. :key="wIndex"
  1864. :class="w.type == 1 ? 'isTypeOne' : ''"
  1865. >
  1866. <div class="workImg" v-if="w.type == 0">
  1867. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1868. <img
  1869. :src="w.works"
  1870. @click="previewImg(w.works)"
  1871. alt
  1872. />
  1873. <div
  1874. class="answerScore"
  1875. v-if="w.score"
  1876. @click.stop="openScore(w)"
  1877. :class="{
  1878. rightW:
  1879. w.userid == userid ||
  1880. tType == 1 ||
  1881. tType == 4 ||
  1882. w.ateacher == userid,
  1883. }"
  1884. >
  1885. {{ JSON.parse(w.score).wScore }}分
  1886. </div>
  1887. <div
  1888. class="answerScore"
  1889. @click.stop="openScore(w)"
  1890. v-else-if="courseDetail.userid == userid"
  1891. :class="{
  1892. rightW:
  1893. w.userid == userid ||
  1894. tType == 1 ||
  1895. tType == 4 ||
  1896. w.ateacher == userid,
  1897. }"
  1898. >
  1899. 评分
  1900. </div>
  1901. <img
  1902. class="deleteImg"
  1903. src="../assets/deleteworks.png"
  1904. v-if="
  1905. w.userid == userid || tType == 1 || tType == 4
  1906. "
  1907. @click.stop="deleteWorks(w.wid)"
  1908. alt
  1909. />
  1910. </div>
  1911. <div class="workImg" v-if="w.type == 1">
  1912. <img :src="word" @click="openFile(w.works)" alt />
  1913. <!-- @click="openFile(w.works)" -->
  1914. <div
  1915. class="answerScore"
  1916. v-if="w.score"
  1917. @click.stop="openScore(w)"
  1918. :class="{
  1919. rightW:
  1920. w.userid == userid ||
  1921. tType == 1 ||
  1922. tType == 4 ||
  1923. w.ateacher == userid,
  1924. }"
  1925. >
  1926. {{ JSON.parse(w.score).wScore }}分
  1927. </div>
  1928. <div
  1929. class="answerScore"
  1930. @click.stop="openScore(w)"
  1931. v-else-if="courseDetail.userid == userid"
  1932. :class="{
  1933. rightW:
  1934. w.userid == userid ||
  1935. tType == 1 ||
  1936. tType == 4 ||
  1937. w.ateacher == userid,
  1938. }"
  1939. >
  1940. 评分
  1941. </div>
  1942. <img
  1943. class="deleteImg"
  1944. src="../assets/deleteworks.png"
  1945. v-if="
  1946. w.userid == userid || tType == 1 || tType == 4
  1947. "
  1948. @click.stop="deleteWorks(w.wid)"
  1949. alt
  1950. />
  1951. </div>
  1952. <div class="workImg" v-if="w.type == 3">
  1953. <img
  1954. style="cursor: pointer"
  1955. :src="video"
  1956. @click="openVideo(w)"
  1957. alt
  1958. />
  1959. <!-- @click="openVideo(w.works)" -->
  1960. <div
  1961. class="answerScore"
  1962. v-if="w.score"
  1963. @click.stop="openScore(w)"
  1964. :class="{
  1965. rightW:
  1966. w.userid == userid ||
  1967. tType == 1 ||
  1968. tType == 4 ||
  1969. w.ateacher == userid,
  1970. }"
  1971. >
  1972. {{ JSON.parse(w.score).wScore }}分
  1973. </div>
  1974. <div
  1975. class="answerScore"
  1976. @click.stop="openScore(w)"
  1977. v-else-if="courseDetail.userid == userid"
  1978. :class="{
  1979. rightW:
  1980. w.userid == userid ||
  1981. tType == 1 ||
  1982. tType == 4 ||
  1983. w.ateacher == userid,
  1984. }"
  1985. >
  1986. 评分
  1987. </div>
  1988. <img
  1989. class="deleteImg"
  1990. src="../assets/deleteworks.png"
  1991. v-if="
  1992. w.userid == userid || tType == 1 || tType == 4
  1993. "
  1994. @click.stop="deleteWorks(w.wid)"
  1995. alt
  1996. />
  1997. </div>
  1998. <div class="comment" style="min-width: 200px">
  1999. <div class="worksName">
  2000. <div>{{ w.sName }}</div>
  2001. </div>
  2002. <div class="commentList">
  2003. <div class="commentList">
  2004. <div
  2005. class="commentImg"
  2006. @click="
  2007. isLikes(w.wid, userid, 1, null, w.isLikes)
  2008. "
  2009. >
  2010. <img
  2011. :src="w.isLikes == true ? likes : noLikes"
  2012. alt=""
  2013. />
  2014. </div>
  2015. <div>{{ w.likesCount }}</div>
  2016. </div>
  2017. <div class="commentList" style="margin-right: 15px">
  2018. <div
  2019. class="commentImg"
  2020. @click="commentOther(w, toolIndex, wIndex)"
  2021. >
  2022. <img
  2023. src="../assets/icon/comment/comment.png"
  2024. alt=""
  2025. />
  2026. </div>
  2027. <div>{{ w.commentCount }}</div>
  2028. </div>
  2029. </div>
  2030. </div>
  2031. </div>
  2032. </div>
  2033. <div style="font-size: 18px">未提交</div>
  2034. <div class="noWorksS">
  2035. <div
  2036. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2037. :key="sIndex"
  2038. class="noWorksName"
  2039. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2040. >
  2041. {{ s.student }}
  2042. </div>
  2043. </div>
  2044. </div>
  2045. <div
  2046. v-if="
  2047. tType &&
  2048. ((tType == 2 && sIsOpen == true) ||
  2049. tType == 1 ||
  2050. tType == 4) &&
  2051. tool.tool.indexOf(32) != -1
  2052. "
  2053. class="worksBox"
  2054. >
  2055. <div
  2056. class="zuoyeYulan"
  2057. v-if="
  2058. worksStudent.length &&
  2059. worksStudent[toolIndex].length > 0
  2060. "
  2061. >
  2062. <span>作业预览</span>
  2063. </div>
  2064. <div
  2065. class="worksDetailBox"
  2066. v-if="
  2067. worksStudent.length &&
  2068. worksStudent[toolIndex].length > 0
  2069. "
  2070. >
  2071. <div
  2072. class="works"
  2073. style="
  2074. width: 200px;
  2075. height: 140px;
  2076. margin: 10px 10px 10px 0;
  2077. border-radius: 15px;
  2078. box-shadow: 0 0 6px 1px #dfdada;
  2079. "
  2080. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2081. :key="wIndex"
  2082. :class="w.type == 1 ? 'isTypeOne' : ''"
  2083. >
  2084. <div class="workImg">
  2085. <img
  2086. :src="word2"
  2087. @click="downloadFile(w.works)"
  2088. alt
  2089. />
  2090. <div
  2091. class="answerScore"
  2092. v-if="w.score"
  2093. @click.stop="openScore(w)"
  2094. :class="{
  2095. rightW:
  2096. w.userid == userid ||
  2097. tType == 1 ||
  2098. tType == 4 ||
  2099. w.ateacher == userid,
  2100. }"
  2101. >
  2102. {{ JSON.parse(w.score).wScore }}分
  2103. </div>
  2104. <div
  2105. class="answerScore"
  2106. @click.stop="openScore(w)"
  2107. v-else-if="courseDetail.userid == userid"
  2108. :class="{
  2109. rightW:
  2110. w.userid == userid ||
  2111. tType == 1 ||
  2112. tType == 4 ||
  2113. w.ateacher == userid,
  2114. }"
  2115. >
  2116. 评分
  2117. </div>
  2118. <img
  2119. class="deleteImg"
  2120. src="../assets/deleteworks.png"
  2121. v-if="
  2122. w.userid == userid || tType == 1 || tType == 4
  2123. "
  2124. @click.stop="deleteWorks(w.wid)"
  2125. alt
  2126. />
  2127. </div>
  2128. <div class="comment" style="min-width: 200px">
  2129. <div class="worksName">
  2130. <div>{{ w.sName }}</div>
  2131. </div>
  2132. <div class="commentList">
  2133. <div class="commentList">
  2134. <div
  2135. class="commentImg"
  2136. @click="
  2137. isLikes(w.wid, userid, 1, null, w.isLikes)
  2138. "
  2139. >
  2140. <img
  2141. :src="w.isLikes == true ? likes : noLikes"
  2142. alt=""
  2143. />
  2144. </div>
  2145. <div>{{ w.likesCount }}</div>
  2146. </div>
  2147. <div class="commentList" style="margin-right: 15px">
  2148. <div
  2149. class="commentImg"
  2150. @click="commentOther(w, toolIndex, wIndex)"
  2151. >
  2152. <img
  2153. src="../assets/icon/comment/comment.png"
  2154. alt=""
  2155. />
  2156. </div>
  2157. <div>{{ w.commentCount }}</div>
  2158. </div>
  2159. </div>
  2160. </div>
  2161. </div>
  2162. </div>
  2163. <div style="font-size: 18px">未提交</div>
  2164. <div class="noWorksS">
  2165. <div
  2166. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2167. :key="sIndex"
  2168. class="noWorksName"
  2169. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2170. >
  2171. {{ s.student }}
  2172. </div>
  2173. </div>
  2174. </div>
  2175. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2176. <div
  2177. class="zuoyeYulan"
  2178. v-if="
  2179. worksStudent.length &&
  2180. worksStudent[toolIndex].length > 0
  2181. "
  2182. >
  2183. <span>作业预览</span>
  2184. <el-button
  2185. type="text"
  2186. @click="jump()"
  2187. v-if="tType == 2"
  2188. class="buttonA"
  2189. >我的评价</el-button
  2190. >
  2191. </div>
  2192. <div
  2193. class="worksDetailBox"
  2194. v-if="
  2195. worksStudent.length &&
  2196. worksStudent[toolIndex].length > 0
  2197. "
  2198. >
  2199. <div
  2200. class="works"
  2201. style="
  2202. width: 200px;
  2203. height: 140px;
  2204. margin: 10px 10px 10px 0;
  2205. border-radius: 15px;
  2206. box-shadow: 0 0 6px 1px #dfdada;
  2207. "
  2208. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2209. :key="wIndex"
  2210. :class="w.type == 1 ? 'isTypeOne' : ''"
  2211. >
  2212. <div class="workImg" v-if="w.type == 0">
  2213. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2214. <img
  2215. :src="w.works"
  2216. @click="previewImg(w.works)"
  2217. alt
  2218. />
  2219. <div
  2220. class="answerScore"
  2221. v-if="w.score"
  2222. @click.stop="openScore(w)"
  2223. :class="{
  2224. rightW:
  2225. w.userid == userid ||
  2226. tType == 1 ||
  2227. tType == 4 ||
  2228. w.ateacher == userid,
  2229. }"
  2230. >
  2231. {{ JSON.parse(w.score).wScore }}分
  2232. </div>
  2233. <div
  2234. class="answerScore"
  2235. @click.stop="openScore(w)"
  2236. v-else-if="courseDetail.userid == userid"
  2237. :class="{
  2238. rightW:
  2239. w.userid == userid ||
  2240. tType == 1 ||
  2241. tType == 4 ||
  2242. w.ateacher == userid,
  2243. }"
  2244. >
  2245. 评分
  2246. </div>
  2247. <img
  2248. class="deleteImg"
  2249. src="../assets/deleteworks.png"
  2250. v-if="
  2251. w.userid == userid || tType == 1 || tType == 4
  2252. "
  2253. @click.stop="deleteWorks(w.wid)"
  2254. alt
  2255. />
  2256. </div>
  2257. <div
  2258. class="workImg"
  2259. style="cursor: pointer"
  2260. v-if="w.type == 1"
  2261. >
  2262. <img :src="word" @click="openFile(w.works)" alt />
  2263. <!-- @click="openFile(w.works)" -->
  2264. <div
  2265. class="answerScore"
  2266. v-if="w.score"
  2267. @click.stop="openScore(w)"
  2268. :class="{
  2269. rightW:
  2270. w.userid == userid ||
  2271. tType == 1 ||
  2272. tType == 4 ||
  2273. w.ateacher == userid,
  2274. }"
  2275. >
  2276. {{ JSON.parse(w.score).wScore }}分
  2277. </div>
  2278. <div
  2279. class="answerScore"
  2280. @click.stop="openScore(w)"
  2281. v-else-if="courseDetail.userid == userid"
  2282. :class="{
  2283. rightW:
  2284. w.userid == userid ||
  2285. tType == 1 ||
  2286. tType == 4 ||
  2287. w.ateacher == userid,
  2288. }"
  2289. >
  2290. 评分
  2291. </div>
  2292. <img
  2293. class="deleteImg"
  2294. src="../assets/deleteworks.png"
  2295. v-if="
  2296. w.userid == userid || tType == 1 || tType == 4
  2297. "
  2298. @click.stop="deleteWorks(w.wid)"
  2299. alt
  2300. />
  2301. </div>
  2302. <div class="workImg" v-if="w.type == 3">
  2303. <img
  2304. style="cursor: pointer"
  2305. :src="video"
  2306. @click="openVideo(w)"
  2307. alt
  2308. />
  2309. <!-- @click="openVideo(w.works)" -->
  2310. <div
  2311. class="answerScore"
  2312. v-if="w.score"
  2313. @click.stop="openScore(w)"
  2314. :class="{
  2315. rightW:
  2316. w.userid == userid ||
  2317. tType == 1 ||
  2318. tType == 4 ||
  2319. w.ateacher == userid,
  2320. }"
  2321. >
  2322. {{ JSON.parse(w.score).wScore }}分
  2323. </div>
  2324. <div
  2325. class="answerScore"
  2326. @click.stop="openScore(w)"
  2327. v-else-if="courseDetail.userid == userid"
  2328. :class="{
  2329. rightW:
  2330. w.userid == userid ||
  2331. tType == 1 ||
  2332. tType == 4 ||
  2333. w.ateacher == userid,
  2334. }"
  2335. >
  2336. 评分
  2337. </div>
  2338. <img
  2339. class="deleteImg"
  2340. src="../assets/deleteworks.png"
  2341. v-if="
  2342. w.userid == userid || tType == 1 || tType == 4
  2343. "
  2344. @click.stop="deleteWorks(w.wid)"
  2345. alt
  2346. />
  2347. </div>
  2348. <div class="comment" style="min-width: 200px">
  2349. <div class="worksName">
  2350. <div
  2351. style="cursor: pointer"
  2352. @click="openSname(w.sName, w.wid)"
  2353. >
  2354. {{ w.sName }}
  2355. </div>
  2356. </div>
  2357. <div class="commentList">
  2358. <div class="commentList">
  2359. <div
  2360. class="commentImg"
  2361. @click="
  2362. isLikes(w.wid, userid, 1, null, w.isLikes)
  2363. "
  2364. >
  2365. <img
  2366. :src="w.isLikes == true ? likes : noLikes"
  2367. alt=""
  2368. />
  2369. </div>
  2370. <div>{{ w.likesCount }}</div>
  2371. </div>
  2372. <div class="commentList" style="margin-right: 15px">
  2373. <div
  2374. class="commentImg"
  2375. @click="commentOther(w, toolIndex, wIndex)"
  2376. >
  2377. <img
  2378. src="../assets/icon/comment/comment.png"
  2379. alt=""
  2380. />
  2381. </div>
  2382. <div>{{ w.commentCount }}</div>
  2383. </div>
  2384. </div>
  2385. </div>
  2386. </div>
  2387. </div>
  2388. <div style="font-size: 18px">未提交</div>
  2389. <div class="noWorksS">
  2390. <div
  2391. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2392. :key="sIndex"
  2393. class="noWorksName"
  2394. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2395. >
  2396. {{ s.student }}
  2397. </div>
  2398. </div>
  2399. </div>
  2400. <div
  2401. v-if="
  2402. tType &&
  2403. ((tType == 2 && sIsOpen == true) ||
  2404. tType == 1 ||
  2405. tType == 4) &&
  2406. tool.tool.indexOf(4) != -1 &&
  2407. (tool.askJson[0].answer ||
  2408. tool.askJson[0].answer === 0) &&
  2409. checkJson[toolIndex].length
  2410. "
  2411. class="xuan_right_box"
  2412. >
  2413. <div
  2414. class="tool_right_box"
  2415. v-for="(item, index) in tool.askJson"
  2416. :key="index"
  2417. >
  2418. <div>
  2419. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  2420. </div>
  2421. <div class="right_box_xuan">
  2422. <span>正确率</span>
  2423. <span>{{
  2424. (checkJson[toolIndex][index].right
  2425. ? checkJson[toolIndex][index].right
  2426. : 0) + "%"
  2427. }}</span>
  2428. </div>
  2429. </div>
  2430. </div>
  2431. <div
  2432. class="xuan_right_box"
  2433. style="background: unset"
  2434. v-if="
  2435. tType &&
  2436. ((tType == 2 && sIsOpen == true) ||
  2437. tType == 1 ||
  2438. tType == 4) &&
  2439. tool.tool.indexOf(4) != -1
  2440. "
  2441. >
  2442. <AskStatic
  2443. v-if="
  2444. worksStudent.length &&
  2445. worksStudent[toolIndex].length > 0
  2446. "
  2447. :askJSON="tool"
  2448. :checkJson="checkJson[toolIndex]"
  2449. ></AskStatic>
  2450. </div>
  2451. <div
  2452. v-if="
  2453. tType &&
  2454. ((tType == 2 && sIsOpen == true) ||
  2455. tType == 1 ||
  2456. tType == 4) &&
  2457. tool.tool.indexOf(4) != -1
  2458. "
  2459. class="worksBox"
  2460. >
  2461. <div
  2462. class="zuoyeYulan"
  2463. v-if="
  2464. worksStudent.length &&
  2465. worksStudent[toolIndex].length > 0
  2466. "
  2467. >
  2468. <span>作业预览</span>
  2469. <el-button
  2470. type="text"
  2471. @click="jump()"
  2472. v-if="tType == 2"
  2473. class="buttonA"
  2474. >我的评价</el-button
  2475. >
  2476. </div>
  2477. <div>
  2478. <div
  2479. class="worksDetailBox"
  2480. v-if="
  2481. worksStudent.length &&
  2482. worksStudent[toolIndex].length > 0
  2483. "
  2484. >
  2485. <div
  2486. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2487. :key="wIndex"
  2488. class="isWorksName"
  2489. @click="
  2490. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2491. "
  2492. >
  2493. {{ w.sName }}
  2494. <img
  2495. class="deleteImg deleteImg2"
  2496. src="../assets/deleteworks.png"
  2497. v-if="
  2498. w.userid == userid || tType == 1 || tType == 4
  2499. "
  2500. @click.stop="deleteWorks(w.wid)"
  2501. alt
  2502. />
  2503. </div>
  2504. <!-- <div class="works" style="
  2505. width: 200px;
  2506. height: 140px;
  2507. border-radius: 10px;
  2508. box-shadow: 0 0 6px 1px #dfdada;
  2509. overflow: hidden;
  2510. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  2511. <div class="workImg">
  2512. <img src="../assets/icon/works/noImg.png" @click="
  2513. openTools(
  2514. 4,
  2515. toolIndex,
  2516. taskCount,
  2517. w.works,
  2518. w.sName
  2519. )
  2520. " alt />
  2521. </div>
  2522. <div class="worksName">
  2523. <div>{{ w.sName }}</div>
  2524. <div>{{ w.time }}</div>
  2525. </div>
  2526. </div> -->
  2527. </div>
  2528. </div>
  2529. <div style="font-size: 18px">未提交</div>
  2530. <div class="noWorksS">
  2531. <div
  2532. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2533. :key="sIndex"
  2534. class="noWorksName"
  2535. >
  2536. {{ s.student }}
  2537. </div>
  2538. </div>
  2539. </div>
  2540. <div
  2541. v-if="
  2542. tType &&
  2543. ((tType == 2 && sIsOpen == true) ||
  2544. tType == 1 ||
  2545. tType == 4) &&
  2546. tool.tool.indexOf(45) != -1 &&
  2547. (tool.testJson.testJson[0].answer ||
  2548. tool.testJson.testJson[0].answer === 0) &&
  2549. checkJson[toolIndex].length
  2550. "
  2551. class="xuan_right_box"
  2552. >
  2553. <div
  2554. class="tool_right_box"
  2555. v-for="(item, index) in tool.testJson.testJson"
  2556. :key="index"
  2557. >
  2558. <div>
  2559. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  2560. </div>
  2561. <div class="right_box_xuan">
  2562. <span>正确率</span>
  2563. <span>{{
  2564. (checkJson[toolIndex][index].right
  2565. ? checkJson[toolIndex][index].right
  2566. : 0) + "%"
  2567. }}</span>
  2568. </div>
  2569. </div>
  2570. </div>
  2571. <div
  2572. class="xuan_right_box"
  2573. style="background: unset"
  2574. v-if="
  2575. tType &&
  2576. ((tType == 2 && sIsOpen == true) ||
  2577. tType == 1 ||
  2578. tType == 4) &&
  2579. tool.tool.indexOf(45) != -1
  2580. "
  2581. >
  2582. <AskStatic2
  2583. v-if="
  2584. worksStudent.length &&
  2585. worksStudent[toolIndex].length > 0
  2586. "
  2587. :askJSON="tool"
  2588. :checkJson="checkJson[toolIndex]"
  2589. ></AskStatic2>
  2590. </div>
  2591. <div
  2592. v-if="
  2593. tType &&
  2594. ((tType == 2 && sIsOpen == true) ||
  2595. tType == 1 ||
  2596. tType == 4) &&
  2597. tool.tool.indexOf(45) != -1
  2598. "
  2599. class="worksBox"
  2600. >
  2601. <div
  2602. class="zuoyeYulan"
  2603. v-if="
  2604. worksStudent.length &&
  2605. worksStudent[toolIndex].length > 0
  2606. "
  2607. >
  2608. <span>作业预览</span>
  2609. <el-button
  2610. type="text"
  2611. @click="jump()"
  2612. v-if="tType == 2"
  2613. class="buttonA"
  2614. >我的评价</el-button
  2615. >
  2616. </div>
  2617. <div>
  2618. <div
  2619. class="worksDetailBox"
  2620. v-if="
  2621. worksStudent.length &&
  2622. worksStudent[toolIndex].length > 0
  2623. "
  2624. >
  2625. <div
  2626. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2627. :key="wIndex"
  2628. class="isWorksName"
  2629. @click="
  2630. openTools(
  2631. 45,
  2632. toolIndex,
  2633. taskCount,
  2634. w.works,
  2635. w.sName
  2636. )
  2637. "
  2638. >
  2639. {{ w.sName }}
  2640. <img
  2641. class="deleteImg deleteImg2"
  2642. src="../assets/deleteworks.png"
  2643. v-if="
  2644. w.userid == userid || tType == 1 || tType == 4
  2645. "
  2646. @click.stop="deleteWorks(w.wid)"
  2647. alt
  2648. />
  2649. </div>
  2650. </div>
  2651. </div>
  2652. <div style="font-size: 18px">未提交</div>
  2653. <div class="noWorksS">
  2654. <div
  2655. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2656. :key="sIndex"
  2657. class="noWorksName"
  2658. >
  2659. {{ s.student }}
  2660. </div>
  2661. </div>
  2662. </div>
  2663. <div
  2664. v-if="
  2665. tType &&
  2666. ((tType == 2 && sIsOpen == true) ||
  2667. tType == 1 ||
  2668. tType == 4) &&
  2669. tool.tool.indexOf(15) != -1
  2670. "
  2671. class="worksBox"
  2672. >
  2673. <div
  2674. class="zuoyeYulan"
  2675. v-if="
  2676. worksStudent.length &&
  2677. worksStudent[toolIndex].length > 0
  2678. "
  2679. >
  2680. <span>作业预览</span>
  2681. <el-button
  2682. type="text"
  2683. @click="jump()"
  2684. v-if="tType == 2"
  2685. class="buttonA"
  2686. >我的评价</el-button
  2687. >
  2688. </div>
  2689. <div
  2690. class="worksDetailBox"
  2691. v-if="
  2692. worksStudent.length &&
  2693. worksStudent[toolIndex].length > 0
  2694. "
  2695. >
  2696. <div
  2697. class="works"
  2698. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2699. :key="wIndex"
  2700. >
  2701. <div
  2702. class="workImg"
  2703. style="
  2704. border-radius: 15px;
  2705. box-shadow: #eee 0px 0px 5px 5px;
  2706. "
  2707. >
  2708. <!-- <img
  2709. src="../assets/icon/works/noImg.png"
  2710. @click="openTools(15, toolIndex, taskCount, w.works)"
  2711. alt=""
  2712. />-->
  2713. <div
  2714. class="answerBg"
  2715. style="border-radius: 15px 15px 0 0"
  2716. @click="commentOther(w, toolIndex, wIndex)"
  2717. >
  2718. <!-- <div>{{ w.sName }}</div> -->
  2719. <el-tooltip
  2720. class="item"
  2721. effect="light"
  2722. :content="JSON.parse(w.works)[0].answer"
  2723. placement="top"
  2724. >
  2725. <div class="answerContent">
  2726. {{ JSON.parse(w.works)[0].answer }}
  2727. </div>
  2728. </el-tooltip>
  2729. <div
  2730. class="answerScore"
  2731. v-if="w.score"
  2732. @click.stop="openScore(w)"
  2733. :class="{
  2734. rightW:
  2735. w.userid == userid ||
  2736. tType == 1 ||
  2737. tType == 4,
  2738. }"
  2739. >
  2740. {{ JSON.parse(w.score).wScore }}分
  2741. </div>
  2742. <div
  2743. class="answerScore"
  2744. @click.stop="openScore(w)"
  2745. v-else-if="courseDetail.userid == userid"
  2746. :class="{
  2747. rightW:
  2748. w.userid == userid ||
  2749. tType == 1 ||
  2750. tType == 4,
  2751. }"
  2752. >
  2753. 评分
  2754. </div>
  2755. <img
  2756. class="deleteImg"
  2757. src="../assets/deleteworks.png"
  2758. v-if="
  2759. w.userid == userid || tType == 1 || tType == 4
  2760. "
  2761. @click.stop="deleteWorks(w.wid)"
  2762. alt
  2763. />
  2764. </div>
  2765. <div class="comment">
  2766. <div class="worksName">
  2767. <div>{{ w.sName }}</div>
  2768. </div>
  2769. <div class="commentList">
  2770. <div
  2771. class="commentImg"
  2772. @click="
  2773. isLikes(w.wid, userid, 1, null, w.isLikes)
  2774. "
  2775. >
  2776. <img
  2777. :src="w.isLikes == true ? likes : noLikes"
  2778. alt=""
  2779. />
  2780. </div>
  2781. <div>{{ w.likesCount }}</div>
  2782. </div>
  2783. <div class="commentList" style="margin-right: 15px">
  2784. <div
  2785. class="commentImg"
  2786. @click="commentOther(w, toolIndex, wIndex)"
  2787. >
  2788. <img
  2789. src="../assets/icon/comment/comment.png"
  2790. alt=""
  2791. />
  2792. </div>
  2793. <div>{{ w.commentCount }}</div>
  2794. </div>
  2795. </div>
  2796. </div>
  2797. </div>
  2798. </div>
  2799. <div style="font-size: 18px">未提交</div>
  2800. <div class="noWorksS">
  2801. <div
  2802. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2803. :key="sIndex"
  2804. class="noWorksName"
  2805. >
  2806. {{ s.student }}
  2807. </div>
  2808. </div>
  2809. </div>
  2810. <div
  2811. v-if="
  2812. tType &&
  2813. ((tType == 2 && sIsOpen == true) ||
  2814. tType == 1 ||
  2815. tType == 4) &&
  2816. tool.tool.indexOf(1) != -1
  2817. "
  2818. class="worksBox"
  2819. >
  2820. <div
  2821. class="zuoyeYulan"
  2822. v-if="
  2823. worksStudent.length &&
  2824. worksStudent[toolIndex].length > 0
  2825. "
  2826. >
  2827. <span>作业预览</span>
  2828. <el-button
  2829. type="text"
  2830. @click="jump()"
  2831. v-if="tType == 2"
  2832. class="buttonA"
  2833. >我的评价</el-button
  2834. >
  2835. </div>
  2836. <div
  2837. class="worksDetailBox"
  2838. v-if="
  2839. worksStudent.length &&
  2840. worksStudent[toolIndex].length > 0
  2841. "
  2842. >
  2843. <div
  2844. class="works"
  2845. style="
  2846. width: 200px;
  2847. height: 140px;
  2848. margin: 10px 10px 10px 0;
  2849. border-radius: 15px;
  2850. box-shadow: 0 0 6px 1px #dfdada;
  2851. "
  2852. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2853. :key="wIndex"
  2854. >
  2855. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2856. <div class="workImg">
  2857. <img
  2858. :src="w.works"
  2859. @click="previewImg(w.works)"
  2860. alt
  2861. />
  2862. <div
  2863. class="answerScore"
  2864. v-if="w.score"
  2865. @click.stop="openScore(w)"
  2866. :class="{
  2867. rightW:
  2868. w.userid == userid || tType == 1 || tType == 4,
  2869. }"
  2870. >
  2871. {{ JSON.parse(w.score).wScore }}分
  2872. </div>
  2873. <div
  2874. class="answerScore"
  2875. @click.stop="openScore(w)"
  2876. v-else-if="courseDetail.userid == userid"
  2877. :class="{
  2878. rightW:
  2879. w.userid == userid || tType == 1 || tType == 4,
  2880. }"
  2881. >
  2882. 评分
  2883. </div>
  2884. <img
  2885. class="deleteImg"
  2886. src="../assets/deleteworks.png"
  2887. v-if="
  2888. w.userid == userid || tType == 1 || tType == 4
  2889. "
  2890. @click.stop="deleteWorks(w.wid)"
  2891. alt
  2892. />
  2893. </div>
  2894. <div class="comment" style="min-width: 200px">
  2895. <div class="worksName">
  2896. <div>{{ w.sName }}</div>
  2897. </div>
  2898. <div class="commentList">
  2899. <div class="commentList">
  2900. <div
  2901. class="commentImg"
  2902. @click="
  2903. isLikes(w.wid, userid, 1, null, w.isLikes)
  2904. "
  2905. >
  2906. <img
  2907. :src="w.isLikes == true ? likes : noLikes"
  2908. alt=""
  2909. />
  2910. </div>
  2911. <div>{{ w.likesCount }}</div>
  2912. </div>
  2913. <div class="commentList" style="margin-right: 15px">
  2914. <div
  2915. class="commentImg"
  2916. @click="commentOther(w, toolIndex, wIndex)"
  2917. >
  2918. <img
  2919. src="../assets/icon/comment/comment.png"
  2920. alt=""
  2921. />
  2922. </div>
  2923. <div>{{ w.commentCount }}</div>
  2924. </div>
  2925. </div>
  2926. </div>
  2927. </div>
  2928. </div>
  2929. <div style="font-size: 18px">未提交</div>
  2930. <div class="noWorksS">
  2931. <div
  2932. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2933. :key="sIndex"
  2934. class="noWorksName"
  2935. >
  2936. {{ s.student }}
  2937. </div>
  2938. </div>
  2939. </div>
  2940. <div
  2941. v-if="
  2942. tType &&
  2943. ((tType == 2 && sIsOpen == true) ||
  2944. tType == 1 ||
  2945. tType == 4) &&
  2946. tool.tool.indexOf(3) != -1
  2947. "
  2948. class="worksBox"
  2949. >
  2950. <div
  2951. class="zuoyeYulan"
  2952. v-if="
  2953. worksStudent.length &&
  2954. worksStudent[toolIndex].length > 0
  2955. "
  2956. >
  2957. <span>作业预览</span>
  2958. <el-button
  2959. type="text"
  2960. @click="jump()"
  2961. v-if="tType == 2"
  2962. class="buttonA"
  2963. >我的评价</el-button
  2964. >
  2965. </div>
  2966. <div
  2967. class="worksDetailBox"
  2968. v-if="
  2969. worksStudent.length &&
  2970. worksStudent[toolIndex].length > 0
  2971. "
  2972. >
  2973. <div
  2974. class="works"
  2975. style="
  2976. width: 200px;
  2977. height: 140px;
  2978. margin: 10px 10px 10px 0;
  2979. border-radius: 15px;
  2980. box-shadow: 0 0 6px 1px #dfdada;
  2981. "
  2982. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2983. :key="wIndex"
  2984. >
  2985. <!-- @click="previewImg(w.works)" -->
  2986. <div class="workImg">
  2987. <img
  2988. :src="w.works"
  2989. @click="previewImg(w.works)"
  2990. alt
  2991. />
  2992. <div
  2993. class="answerScore"
  2994. v-if="w.score"
  2995. @click.stop="openScore(w)"
  2996. :class="{
  2997. rightW:
  2998. w.userid == userid || tType == 1 || tType == 4,
  2999. }"
  3000. >
  3001. {{ JSON.parse(w.score).wScore }}分
  3002. </div>
  3003. <div
  3004. class="answerScore"
  3005. @click.stop="openScore(w)"
  3006. v-else-if="courseDetail.userid == userid"
  3007. :class="{
  3008. rightW:
  3009. w.userid == userid || tType == 1 || tType == 4,
  3010. }"
  3011. >
  3012. 评分
  3013. </div>
  3014. <img
  3015. class="deleteImg"
  3016. src="../assets/deleteworks.png"
  3017. v-if="
  3018. w.userid == userid || tType == 1 || tType == 4
  3019. "
  3020. @click.stop="deleteWorks(w.wid)"
  3021. alt
  3022. />
  3023. </div>
  3024. <div class="comment" style="min-width: 200px">
  3025. <div class="worksName">
  3026. <div>{{ w.sName }}</div>
  3027. </div>
  3028. <div class="commentList">
  3029. <div class="commentList">
  3030. <div
  3031. class="commentImg"
  3032. @click="
  3033. isLikes(w.wid, userid, 1, null, w.isLikes)
  3034. "
  3035. >
  3036. <img
  3037. :src="w.isLikes == true ? likes : noLikes"
  3038. alt=""
  3039. />
  3040. </div>
  3041. <div>{{ w.likesCount }}</div>
  3042. </div>
  3043. <div class="commentList" style="margin-right: 15px">
  3044. <div
  3045. class="commentImg"
  3046. @click="commentOther(w, toolIndex, wIndex)"
  3047. >
  3048. <img
  3049. src="../assets/icon/comment/comment.png"
  3050. alt=""
  3051. />
  3052. </div>
  3053. <div>{{ w.commentCount }}</div>
  3054. </div>
  3055. </div>
  3056. </div>
  3057. </div>
  3058. </div>
  3059. <div style="font-size: 18px">未提交</div>
  3060. <div class="noWorksS">
  3061. <div
  3062. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3063. :key="sIndex"
  3064. class="noWorksName"
  3065. >
  3066. {{ s.student }}
  3067. </div>
  3068. </div>
  3069. </div>
  3070. <div
  3071. v-if="
  3072. tType &&
  3073. ((tType == 2 && sIsOpen == true) ||
  3074. tType == 1 ||
  3075. tType == 4) &&
  3076. tool.tool.indexOf(6) != -1
  3077. "
  3078. class="worksBox"
  3079. >
  3080. <div
  3081. class="zuoyeYulan"
  3082. v-if="
  3083. worksStudent.length &&
  3084. worksStudent[toolIndex].length > 0
  3085. "
  3086. >
  3087. <span>作业预览</span>
  3088. <el-button
  3089. type="text"
  3090. @click="jump()"
  3091. v-if="tType == 2"
  3092. class="buttonA"
  3093. >我的评价</el-button
  3094. >
  3095. </div>
  3096. <div
  3097. class="worksDetailBox"
  3098. v-if="
  3099. worksStudent.length &&
  3100. worksStudent[toolIndex].length > 0
  3101. "
  3102. >
  3103. <div
  3104. class="works"
  3105. style="
  3106. width: 200px;
  3107. height: 140px;
  3108. margin: 10px 10px 10px 0;
  3109. border-radius: 15px;
  3110. box-shadow: 0 0 6px 1px #dfdada;
  3111. "
  3112. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3113. :key="wIndex"
  3114. >
  3115. <!-- @click="previewImg(w.works)" -->
  3116. <div class="workImg">
  3117. <img
  3118. :src="w.works"
  3119. @click="previewImg(w.works)"
  3120. alt
  3121. />
  3122. <div
  3123. class="answerScore"
  3124. v-if="w.score"
  3125. @click.stop="openScore(w)"
  3126. :class="{
  3127. rightW:
  3128. w.userid == userid || tType == 1 || tType == 4,
  3129. }"
  3130. >
  3131. {{ JSON.parse(w.score).wScore }}分
  3132. </div>
  3133. <div
  3134. class="answerScore"
  3135. @click.stop="openScore(w)"
  3136. v-else-if="courseDetail.userid == userid"
  3137. :class="{
  3138. rightW:
  3139. w.userid == userid || tType == 1 || tType == 4,
  3140. }"
  3141. >
  3142. 评分
  3143. </div>
  3144. <img
  3145. class="deleteImg"
  3146. src="../assets/deleteworks.png"
  3147. v-if="
  3148. w.userid == userid || tType == 1 || tType == 4
  3149. "
  3150. @click.stop="deleteWorks(w.wid)"
  3151. alt
  3152. />
  3153. </div>
  3154. <div class="comment" style="min-width: 200px">
  3155. <div class="worksName">
  3156. <div>{{ w.sName }}</div>
  3157. </div>
  3158. <div class="commentList">
  3159. <div class="commentList">
  3160. <div
  3161. class="commentImg"
  3162. @click="
  3163. isLikes(w.wid, userid, 1, null, w.isLikes)
  3164. "
  3165. >
  3166. <img
  3167. :src="w.isLikes == true ? likes : noLikes"
  3168. alt=""
  3169. />
  3170. </div>
  3171. <div>{{ w.likesCount }}</div>
  3172. </div>
  3173. <div class="commentList" style="margin-right: 15px">
  3174. <div
  3175. class="commentImg"
  3176. @click="commentOther(w, toolIndex, wIndex)"
  3177. >
  3178. <img
  3179. src="../assets/icon/comment/comment.png"
  3180. alt=""
  3181. />
  3182. </div>
  3183. <div>{{ w.commentCount }}</div>
  3184. </div>
  3185. </div>
  3186. </div>
  3187. </div>
  3188. </div>
  3189. <div style="font-size: 18px">未提交</div>
  3190. <div class="noWorksS">
  3191. <div
  3192. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3193. :key="sIndex"
  3194. class="noWorksName"
  3195. >
  3196. {{ s.student }}
  3197. </div>
  3198. </div>
  3199. </div>
  3200. <div
  3201. v-if="
  3202. tType &&
  3203. ((tType == 2 && sIsOpen == true) ||
  3204. tType == 1 ||
  3205. tType == 4) &&
  3206. tool.tool.indexOf(7) != -1
  3207. "
  3208. class="worksBox"
  3209. >
  3210. <div
  3211. class="zuoyeYulan"
  3212. v-if="
  3213. worksStudent.length &&
  3214. worksStudent[toolIndex].length > 0
  3215. "
  3216. >
  3217. <span>作业预览</span>
  3218. <el-button
  3219. type="text"
  3220. @click="jump()"
  3221. v-if="tType == 2"
  3222. class="buttonA"
  3223. >我的评价</el-button
  3224. >
  3225. </div>
  3226. <div
  3227. class="worksDetailBox"
  3228. v-if="
  3229. worksStudent.length &&
  3230. worksStudent[toolIndex].length > 0
  3231. "
  3232. >
  3233. <div
  3234. class="works"
  3235. style="
  3236. width: 200px;
  3237. height: 140px;
  3238. margin: 10px 10px 10px 0;
  3239. border-radius: 15px;
  3240. box-shadow: 0 0 6px 1px #dfdada;
  3241. "
  3242. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3243. :key="wIndex"
  3244. >
  3245. <!-- @click="previewImg(w.works)" -->
  3246. <div class="workImg">
  3247. <img
  3248. :src="w.works"
  3249. @click="previewImg(w.works)"
  3250. alt
  3251. />
  3252. <div
  3253. class="answerScore"
  3254. v-if="w.score"
  3255. @click.stop="openScore(w)"
  3256. :class="{
  3257. rightW:
  3258. w.userid == userid || tType == 1 || tType == 4,
  3259. }"
  3260. >
  3261. {{ JSON.parse(w.score).wScore }}分
  3262. </div>
  3263. <div
  3264. class="answerScore"
  3265. @click.stop="openScore(w)"
  3266. v-else-if="courseDetail.userid == userid"
  3267. :class="{
  3268. rightW:
  3269. w.userid == userid || tType == 1 || tType == 4,
  3270. }"
  3271. >
  3272. 评分
  3273. </div>
  3274. <img
  3275. class="deleteImg"
  3276. src="../assets/deleteworks.png"
  3277. v-if="
  3278. w.userid == userid || tType == 1 || tType == 4
  3279. "
  3280. @click.stop="deleteWorks(w.wid)"
  3281. alt
  3282. />
  3283. </div>
  3284. <div class="comment" style="min-width: 200px">
  3285. <div class="worksName">
  3286. <div>{{ w.sName }}</div>
  3287. </div>
  3288. <div class="commentList">
  3289. <div class="commentList">
  3290. <div
  3291. class="commentImg"
  3292. @click="
  3293. isLikes(w.wid, userid, 1, null, w.isLikes)
  3294. "
  3295. >
  3296. <img
  3297. :src="w.isLikes == true ? likes : noLikes"
  3298. alt=""
  3299. />
  3300. </div>
  3301. <div>{{ w.likesCount }}</div>
  3302. </div>
  3303. <div class="commentList" style="margin-right: 15px">
  3304. <div
  3305. class="commentImg"
  3306. @click="commentOther(w, toolIndex, wIndex)"
  3307. >
  3308. <img
  3309. src="../assets/icon/comment/comment.png"
  3310. alt=""
  3311. />
  3312. </div>
  3313. <div>{{ w.commentCount }}</div>
  3314. </div>
  3315. </div>
  3316. </div>
  3317. </div>
  3318. </div>
  3319. <div style="font-size: 18px">未提交</div>
  3320. <div class="noWorksS">
  3321. <div
  3322. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3323. :key="sIndex"
  3324. class="noWorksName"
  3325. >
  3326. {{ s.student }}
  3327. </div>
  3328. </div>
  3329. </div>
  3330. <div
  3331. v-if="
  3332. tType &&
  3333. ((tType == 2 && sIsOpen == true) ||
  3334. tType == 1 ||
  3335. tType == 4) &&
  3336. tool.tool.indexOf(26) != -1
  3337. "
  3338. class="worksBox"
  3339. >
  3340. <div
  3341. class="zuoyeYulan"
  3342. v-if="
  3343. worksStudent.length &&
  3344. worksStudent[toolIndex].length > 0
  3345. "
  3346. >
  3347. <span>作业预览</span>
  3348. <el-button
  3349. type="text"
  3350. @click="jump()"
  3351. v-if="tType == 2"
  3352. class="buttonA"
  3353. >我的评价</el-button
  3354. >
  3355. </div>
  3356. <div
  3357. class="worksDetailBox"
  3358. v-if="
  3359. worksStudent.length &&
  3360. worksStudent[toolIndex].length > 0
  3361. "
  3362. >
  3363. <div
  3364. class="works"
  3365. style="width: 240px; height: 140px; overflow: hidden"
  3366. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3367. :key="wIndex"
  3368. :class="w.type == 1 ? 'isTypeOne' : ''"
  3369. >
  3370. <div class="workImg" v-if="w.type == 0">
  3371. <img
  3372. :src="w.works"
  3373. @click="previewImg(w.works)"
  3374. alt
  3375. />
  3376. <img
  3377. class="deleteImg"
  3378. src="../assets/deleteworks.png"
  3379. v-if="
  3380. w.userid == userid || tType == 1 || tType == 4
  3381. "
  3382. @click.stop="deleteWorks(w.wid)"
  3383. alt
  3384. />
  3385. </div>
  3386. <div class="workImg" v-if="w.type == 1">
  3387. <img :src="word" @click="openFile(w.works)" alt />
  3388. <img
  3389. class="deleteImg"
  3390. src="../assets/deleteworks.png"
  3391. v-if="
  3392. w.userid == userid || tType == 1 || tType == 4
  3393. "
  3394. @click.stop="deleteWorks(w.wid)"
  3395. alt
  3396. />
  3397. </div>
  3398. <div class="worksName">
  3399. <div>{{ w.sName }}</div>
  3400. </div>
  3401. </div>
  3402. </div>
  3403. <div style="font-size: 18px">未提交</div>
  3404. <div class="noWorksS">
  3405. <div
  3406. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3407. :key="sIndex"
  3408. class="noWorksName"
  3409. >
  3410. {{ s.student }}
  3411. </div>
  3412. </div>
  3413. </div>
  3414. <div
  3415. v-if="
  3416. tType &&
  3417. ((tType == 2 && sIsOpen == true) ||
  3418. tType == 1 ||
  3419. tType == 4) &&
  3420. tool.tool.indexOf(40) != -1
  3421. "
  3422. class="worksBox"
  3423. >
  3424. <div
  3425. class="zuoyeYulan"
  3426. v-if="
  3427. worksStudent.length &&
  3428. worksStudent[toolIndex].length > 0
  3429. "
  3430. >
  3431. <span>作业预览</span>
  3432. <el-button
  3433. type="text"
  3434. @click="jump()"
  3435. v-if="tType == 2"
  3436. class="buttonA"
  3437. >我的评价</el-button
  3438. >
  3439. </div>
  3440. <div
  3441. class="worksDetailBox"
  3442. v-if="
  3443. worksStudent.length &&
  3444. worksStudent[toolIndex].length > 0
  3445. "
  3446. >
  3447. <div
  3448. class="works"
  3449. style="
  3450. width: 200px;
  3451. height: 140px;
  3452. margin: 10px 10px 10px 0;
  3453. border-radius: 15px;
  3454. box-shadow: 0 0 6px 1px #dfdada;
  3455. "
  3456. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3457. :key="wIndex"
  3458. :class="w.type == 1 ? 'isTypeOne' : ''"
  3459. >
  3460. <div class="workImg">
  3461. <img
  3462. src="../assets/icon/works/noImg.png"
  3463. @click="openPj(w.works, toolIndex)"
  3464. alt
  3465. />
  3466. <img
  3467. class="deleteImg"
  3468. src="../assets/deleteworks.png"
  3469. v-if="
  3470. w.userid == userid || tType == 1 || tType == 4
  3471. "
  3472. @click.stop="deleteWorks(w.wid)"
  3473. alt
  3474. />
  3475. </div>
  3476. <div class="comment" style="min-width: 200px">
  3477. <div class="worksName">
  3478. <div>{{ w.sName }}</div>
  3479. </div>
  3480. <div class="commentList">
  3481. <div class="commentList">
  3482. <div
  3483. class="commentImg"
  3484. @click="
  3485. isLikes(w.wid, userid, 1, null, w.isLikes)
  3486. "
  3487. >
  3488. <img
  3489. :src="w.isLikes == true ? likes : noLikes"
  3490. alt=""
  3491. />
  3492. </div>
  3493. <div>{{ w.likesCount }}</div>
  3494. </div>
  3495. <div class="commentList" style="margin-right: 15px">
  3496. <div
  3497. class="commentImg"
  3498. @click="commentOther(w, toolIndex, wIndex)"
  3499. >
  3500. <img
  3501. src="../assets/icon/comment/comment.png"
  3502. alt=""
  3503. />
  3504. </div>
  3505. <div>{{ w.commentCount }}</div>
  3506. </div>
  3507. </div>
  3508. </div>
  3509. </div>
  3510. </div>
  3511. <div style="font-size: 18px">未提交</div>
  3512. <div class="noWorksS">
  3513. <div
  3514. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3515. :key="sIndex"
  3516. class="noWorksName"
  3517. >
  3518. {{ s.student }}
  3519. </div>
  3520. </div>
  3521. </div>
  3522. <div
  3523. v-if="
  3524. tType &&
  3525. tType == 2 &&
  3526. !sIsOpen &&
  3527. tool.tool.indexOf(40) != -1
  3528. "
  3529. class="worksBox"
  3530. >
  3531. <div
  3532. class="zuoyeYulan"
  3533. v-if="workStudent[toolIndex].length > 0"
  3534. >
  3535. <span>作业预览</span>
  3536. <el-button
  3537. type="text"
  3538. @click="jump()"
  3539. v-if="tType == 2"
  3540. class="buttonA"
  3541. >我的评价</el-button
  3542. >
  3543. </div>
  3544. <div
  3545. class="worksDetailBox"
  3546. v-if="workStudent[toolIndex].length > 0"
  3547. >
  3548. <div
  3549. class="works"
  3550. style="
  3551. width: 200px;
  3552. height: 140px;
  3553. margin: 10px 10px 10px 0;
  3554. "
  3555. v-for="(w, wIndex) in workStudent[toolIndex]"
  3556. :key="wIndex"
  3557. >
  3558. <div class="workImg">
  3559. <img
  3560. src="../assets/icon/works/noImg.png"
  3561. @click="openPj(w.works, toolIndex)"
  3562. alt
  3563. />
  3564. <img
  3565. class="deleteImg"
  3566. src="../assets/deleteworks.png"
  3567. v-if="
  3568. w.userid == userid || tType == 1 || tType == 4
  3569. "
  3570. @click.stop="deleteWorks(w.wid)"
  3571. alt
  3572. />
  3573. </div>
  3574. <div class="worksName">
  3575. <div>{{ w.sName }}</div>
  3576. </div>
  3577. </div>
  3578. </div>
  3579. </div>
  3580. <div
  3581. v-if="
  3582. tType &&
  3583. ((tType == 2 && sIsOpen == true) ||
  3584. tType == 1 ||
  3585. tType == 4) &&
  3586. tool.tool.indexOf(41) != -1
  3587. "
  3588. >
  3589. <AnswerData2
  3590. v-if="
  3591. worksStudent.length &&
  3592. worksStudent[toolIndex].length > 0
  3593. "
  3594. :problemJson="tool.selectJson.answer"
  3595. :people="worksStudent[toolIndex]"
  3596. ></AnswerData2>
  3597. </div>
  3598. <div
  3599. v-if="
  3600. tType &&
  3601. ((tType == 2 && sIsOpen == true) ||
  3602. tType == 1 ||
  3603. tType == 4) &&
  3604. tool.tool.indexOf(41) != -1
  3605. "
  3606. class="worksBox"
  3607. >
  3608. <div
  3609. class="zuoyeYulan"
  3610. v-if="
  3611. worksStudent.length &&
  3612. worksStudent[toolIndex].length > 0
  3613. "
  3614. >
  3615. <span>作业预览</span>
  3616. <el-button
  3617. type="text"
  3618. @click="jump()"
  3619. v-if="tType == 2"
  3620. class="buttonA"
  3621. >我的评价</el-button
  3622. >
  3623. </div>
  3624. <div
  3625. class="worksDetailBox"
  3626. v-if="
  3627. worksStudent.length &&
  3628. worksStudent[toolIndex].length > 0
  3629. "
  3630. >
  3631. <div
  3632. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3633. :key="wIndex"
  3634. class="isWorksName"
  3635. @click="openXz(w, toolIndex)"
  3636. >
  3637. {{ w.sName }}
  3638. <img
  3639. class="deleteImg deleteImg2"
  3640. src="../assets/deleteworks.png"
  3641. v-if="w.userid == userid || tType == 1 || tType == 4"
  3642. @click.stop="deleteWorks(w.wid)"
  3643. alt
  3644. />
  3645. </div>
  3646. <!-- <div
  3647. class="works"
  3648. style="
  3649. width: 200px;
  3650. height: 140px;
  3651. margin: 10px 10px 10px 0;
  3652. border-radius: 15px;
  3653. box-shadow: 0 0 6px 1px #dfdada;
  3654. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  3655. :class="w.type == 5 ? 'isTypeOne' : ''">
  3656. <div class="workImg">
  3657. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  3658. </div>
  3659. <div class="worksName">
  3660. <div>{{ w.sName }}</div>
  3661. </div>
  3662. </div> -->
  3663. </div>
  3664. <div style="font-size: 18px">未提交</div>
  3665. <div class="noWorksS">
  3666. <div
  3667. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3668. :key="sIndex"
  3669. class="noWorksName"
  3670. >
  3671. {{ s.student }}
  3672. </div>
  3673. </div>
  3674. </div>
  3675. <div
  3676. v-if="
  3677. tType &&
  3678. tType == 2 &&
  3679. !sIsOpen &&
  3680. tool.tool.indexOf(41) != -1
  3681. "
  3682. class="worksBox"
  3683. >
  3684. <div
  3685. class="zuoyeYulan"
  3686. v-if="workStudent[toolIndex].length > 0"
  3687. >
  3688. <span>作业预览</span>
  3689. <el-button
  3690. type="text"
  3691. @click="jump()"
  3692. v-if="tType == 2"
  3693. class="buttonA"
  3694. >我的评价</el-button
  3695. >
  3696. </div>
  3697. <div
  3698. class="worksDetailBox"
  3699. v-if="workStudent[toolIndex].length > 0"
  3700. >
  3701. <div
  3702. class="works"
  3703. style="
  3704. width: 200px;
  3705. height: 140px;
  3706. margin: 10px 10px 10px 0;
  3707. "
  3708. v-for="(w, wIndex) in workStudent[toolIndex]"
  3709. :key="wIndex"
  3710. >
  3711. <div class="workImg">
  3712. <img
  3713. src="../assets/icon/works/noImg.png"
  3714. @click="openXz(w, toolIndex)"
  3715. alt
  3716. />
  3717. <img
  3718. class="deleteImg"
  3719. src="../assets/deleteworks.png"
  3720. v-if="
  3721. w.userid == userid || tType == 1 || tType == 4
  3722. "
  3723. @click.stop="deleteWorks(w.wid)"
  3724. alt
  3725. />
  3726. </div>
  3727. <div class="worksName">
  3728. <div>{{ w.sName }}</div>
  3729. </div>
  3730. </div>
  3731. </div>
  3732. </div>
  3733. <div v-if="false" class="xuan_right_box">
  3734. <div
  3735. class="tool_right_box"
  3736. v-for="(item, index) in tool.sentenceList"
  3737. :key="index"
  3738. >
  3739. <div>
  3740. <span>{{ index + 1 + "、" + item.sentenceTitle }}</span>
  3741. </div>
  3742. <div class="right_box_xuan">
  3743. <span>正确率</span>
  3744. <span>{{
  3745. (checkJson[toolIndex][index].right
  3746. ? checkJson[toolIndex][index].right
  3747. : 0) + "%"
  3748. }}</span>
  3749. </div>
  3750. <div class="right_box_xuan">
  3751. <span>答对人数</span>
  3752. <span>{{
  3753. checkJson[toolIndex][index].rightPerson.length
  3754. }}</span>
  3755. </div>
  3756. </div>
  3757. </div>
  3758. <div
  3759. v-if="
  3760. tType &&
  3761. ((tType == 2 && sIsOpen == true) ||
  3762. tType == 1 ||
  3763. tType == 4) &&
  3764. tool.tool.indexOf(47) != -1
  3765. "
  3766. >
  3767. <AnswerData
  3768. v-if="
  3769. checkJson[toolIndex].length &&
  3770. (tool.sentenceList || tool.sentenceList.length > 0)
  3771. "
  3772. :people="checkJson[toolIndex]"
  3773. ></AnswerData>
  3774. </div>
  3775. <div
  3776. v-if="
  3777. tType &&
  3778. tType == 2 &&
  3779. !sIsOpen &&
  3780. tool.tool.indexOf(47) != -1
  3781. "
  3782. class="worksBox"
  3783. >
  3784. <div
  3785. class="zuoyeYulan"
  3786. v-if="workStudent[toolIndex].length > 0"
  3787. >
  3788. <span>作业预览</span>
  3789. <el-button
  3790. type="text"
  3791. @click="jump()"
  3792. v-if="tType == 2"
  3793. class="buttonA"
  3794. >我的评价</el-button
  3795. >
  3796. </div>
  3797. <div
  3798. class="worksDetailBox"
  3799. v-if="workStudent[toolIndex].length > 0"
  3800. >
  3801. <div
  3802. class="works"
  3803. style="
  3804. width: 200px;
  3805. height: 140px;
  3806. margin: 10px 10px 10px 0;
  3807. "
  3808. v-for="(w, wIndex) in workStudent[toolIndex]"
  3809. :key="wIndex"
  3810. >
  3811. <!-- @click="openXz(w, toolIndex)" -->
  3812. <div class="workImg" @click="openSen(w, toolIndex)">
  3813. <img src="../assets/icon/works/noImg.png" alt />
  3814. <img
  3815. class="deleteImg"
  3816. src="../assets/deleteworks.png"
  3817. v-if="
  3818. w.userid == userid || tType == 1 || tType == 4
  3819. "
  3820. @click.stop="deleteWorks(w.wid)"
  3821. alt
  3822. />
  3823. </div>
  3824. <div class="worksName">
  3825. <div>
  3826. {{ w.sName }}
  3827. </div>
  3828. </div>
  3829. </div>
  3830. </div>
  3831. </div>
  3832. <div
  3833. v-if="
  3834. tType &&
  3835. ((tType == 2 && sIsOpen == true) ||
  3836. tType == 1 ||
  3837. tType == 4) &&
  3838. tool.tool.indexOf(47) != -1
  3839. "
  3840. class="worksBox"
  3841. >
  3842. <div
  3843. class="zuoyeYulan"
  3844. v-if="
  3845. worksStudent.length &&
  3846. worksStudent[toolIndex].length > 0
  3847. "
  3848. >
  3849. <span>作业预览</span>
  3850. <el-button
  3851. type="text"
  3852. @click="jump()"
  3853. v-if="tType == 2"
  3854. class="buttonA"
  3855. >我的评价</el-button
  3856. >
  3857. </div>
  3858. <div
  3859. class="worksDetailBox"
  3860. v-if="
  3861. worksStudent.length &&
  3862. worksStudent[toolIndex].length > 0
  3863. "
  3864. >
  3865. <!-- @click="openXz(w, toolIndex)" -->
  3866. <div
  3867. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3868. :key="wIndex"
  3869. class="isWorksName"
  3870. @click="openSen(w, toolIndex)"
  3871. >
  3872. {{ w.sName }}
  3873. <img
  3874. class="deleteImg deleteImg2"
  3875. src="../assets/deleteworks.png"
  3876. v-if="w.userid == userid || tType == 1 || tType == 4"
  3877. @click.stop="deleteWorks(w.wid)"
  3878. alt
  3879. />
  3880. </div>
  3881. </div>
  3882. <div style="font-size: 18px">未提交</div>
  3883. <div class="noWorksS">
  3884. <div
  3885. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3886. :key="sIndex"
  3887. class="noWorksName"
  3888. >
  3889. {{ s.student }}
  3890. </div>
  3891. </div>
  3892. </div>
  3893. <div
  3894. v-if="
  3895. tType &&
  3896. ((tType == 2 && sIsOpen == true) ||
  3897. tType == 1 ||
  3898. tType == 4) &&
  3899. tool.tool.indexOf(48) != -1
  3900. "
  3901. class="worksBox"
  3902. >
  3903. <div
  3904. class="zuoyeYulan"
  3905. v-if="
  3906. worksStudent.length &&
  3907. worksStudent[toolIndex].length > 0
  3908. "
  3909. >
  3910. <span>作业预览</span>
  3911. <el-button
  3912. type="text"
  3913. @click="jump()"
  3914. v-if="tType == 2"
  3915. class="buttonA"
  3916. >我的评价</el-button
  3917. >
  3918. </div>
  3919. <div
  3920. class="worksDetailBox"
  3921. v-if="
  3922. worksStudent.length &&
  3923. worksStudent[toolIndex].length > 0
  3924. "
  3925. >
  3926. <div
  3927. class="works"
  3928. style="
  3929. width: 200px;
  3930. height: 140px;
  3931. margin: 10px 10px 10px 0;
  3932. border-radius: 15px;
  3933. box-shadow: 0 0 6px 1px #dfdada;
  3934. "
  3935. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3936. :key="wIndex"
  3937. :class="w.type == 1 ? 'isTypeOne' : ''"
  3938. >
  3939. <div class="workImg">
  3940. <img :src="word" @click="openTable(w)" alt />
  3941. <!-- @click="openFile(w.works)" -->
  3942. <div
  3943. class="answerScore"
  3944. v-if="w.score"
  3945. @click.stop="openScore(w)"
  3946. :class="{
  3947. rightW:
  3948. w.userid == userid ||
  3949. tType == 1 ||
  3950. tType == 4 ||
  3951. w.ateacher == userid,
  3952. }"
  3953. >
  3954. {{ JSON.parse(w.score).wScore }}分
  3955. </div>
  3956. <div
  3957. class="answerScore"
  3958. @click.stop="openScore(w)"
  3959. v-else-if="courseDetail.userid == userid"
  3960. :class="{
  3961. rightW:
  3962. w.userid == userid ||
  3963. tType == 1 ||
  3964. tType == 4 ||
  3965. w.ateacher == userid,
  3966. }"
  3967. >
  3968. 评分
  3969. </div>
  3970. <img
  3971. class="deleteImg"
  3972. src="../assets/deleteworks.png"
  3973. v-if="
  3974. w.userid == userid || tType == 1 || tType == 4
  3975. "
  3976. @click.stop="deleteWorks(w.wid)"
  3977. alt
  3978. />
  3979. </div>
  3980. <div class="comment" style="min-width: 200px">
  3981. <div class="worksName">
  3982. <div>{{ w.sName }}</div>
  3983. </div>
  3984. <div class="commentList">
  3985. <div class="commentList">
  3986. <div
  3987. class="commentImg"
  3988. @click="
  3989. isLikes(w.wid, userid, 1, null, w.isLikes)
  3990. "
  3991. >
  3992. <img
  3993. :src="w.isLikes == true ? likes : noLikes"
  3994. alt=""
  3995. />
  3996. </div>
  3997. <div>{{ w.likesCount }}</div>
  3998. </div>
  3999. <div class="commentList" style="margin-right: 15px">
  4000. <div
  4001. class="commentImg"
  4002. @click="commentOther(w, toolIndex, wIndex)"
  4003. >
  4004. <img
  4005. src="../assets/icon/comment/comment.png"
  4006. alt=""
  4007. />
  4008. </div>
  4009. <div>{{ w.commentCount }}</div>
  4010. </div>
  4011. </div>
  4012. </div>
  4013. </div>
  4014. </div>
  4015. <div style="font-size: 18px">未提交</div>
  4016. <div class="noWorksS">
  4017. <div
  4018. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4019. :key="sIndex"
  4020. class="noWorksName"
  4021. >
  4022. {{ s.student }}
  4023. </div>
  4024. </div>
  4025. </div>
  4026. <div
  4027. v-if="
  4028. tType &&
  4029. tType == 2 &&
  4030. !sIsOpen &&
  4031. tool.tool.indexOf(48) != -1
  4032. "
  4033. class="worksBox"
  4034. >
  4035. <div
  4036. class="zuoyeYulan"
  4037. v-if="workStudent[toolIndex].length > 0"
  4038. >
  4039. <span>作业预览</span>
  4040. <el-button
  4041. type="text"
  4042. @click="jump()"
  4043. v-if="tType == 2"
  4044. class="buttonA"
  4045. >我的评价</el-button
  4046. >
  4047. </div>
  4048. <div
  4049. class="worksDetailBox"
  4050. v-if="workStudent[toolIndex].length > 0"
  4051. >
  4052. <div
  4053. class="works"
  4054. style="
  4055. width: 200px;
  4056. height: 140px;
  4057. margin: 10px 10px 10px 0;
  4058. box-shadow: 0 0 6px 1px #dfdada;
  4059. "
  4060. v-for="(w, wIndex) in workStudent[toolIndex]"
  4061. :key="wIndex"
  4062. >
  4063. <div class="workImg">
  4064. <img :src="word" @click="openTable(w)" alt />
  4065. <div
  4066. class="answerScore"
  4067. v-if="w.score"
  4068. @click.stop="openScore(w)"
  4069. :class="{
  4070. rightW:
  4071. w.userid == userid || tType == 1 || tType == 4,
  4072. }"
  4073. >
  4074. {{ JSON.parse(w.score).wScore }}分
  4075. </div>
  4076. <div
  4077. class="answerScore"
  4078. @click.stop="openScore(w)"
  4079. v-else-if="courseDetail.userid == userid"
  4080. :class="{
  4081. rightW:
  4082. w.userid == userid || tType == 1 || tType == 4,
  4083. }"
  4084. >
  4085. 评分
  4086. </div>
  4087. <img
  4088. class="deleteImg"
  4089. src="../assets/deleteworks.png"
  4090. v-if="
  4091. w.userid == userid || tType == 1 || tType == 4
  4092. "
  4093. @click.stop="deleteWorks(w.wid)"
  4094. alt
  4095. />
  4096. </div>
  4097. <div class="worksName">
  4098. <div>{{ w.sName }}</div>
  4099. </div>
  4100. </div>
  4101. </div>
  4102. </div>
  4103. <div
  4104. v-if="tool.tool.indexOf(49) != -1"
  4105. class="xuan_right_box"
  4106. >
  4107. <div
  4108. v-if="courseDetail.userid == userid"
  4109. style="display: flex; justify-content: flex-end"
  4110. >
  4111. <el-button
  4112. type="primary"
  4113. size="small"
  4114. @click="addTools(49, toolIndex, taskCount)"
  4115. >分组设置</el-button
  4116. >
  4117. </div>
  4118. <div
  4119. v-if="groupStudentUid[toolIndex]"
  4120. class="group_staic_box"
  4121. >
  4122. <div
  4123. v-for="(gp, gd) in tool.groupJson.group"
  4124. :key="gd"
  4125. class="group_staic"
  4126. >
  4127. <span> {{ gp.name }}</span>
  4128. <span>
  4129. 目前人数{{
  4130. groupStudentUid[toolIndex][gd].length
  4131. }}人</span
  4132. >
  4133. </div>
  4134. </div>
  4135. </div>
  4136. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  4137. <div
  4138. class="zuoyeYulan"
  4139. v-if="
  4140. worksStudent.length &&
  4141. worksStudent[toolIndex].length > 0
  4142. "
  4143. >
  4144. <span>作业预览</span>
  4145. </div>
  4146. <div>
  4147. <div
  4148. class="group_workBox"
  4149. v-for="(g, gindex) in tool.groupJson.group"
  4150. :key="gindex"
  4151. >
  4152. <div
  4153. class="group_box"
  4154. v-if="
  4155. groupStudentUid[toolIndex] &&
  4156. worksStudent[toolIndex] &&
  4157. (worksStudent[toolIndex][gindex].length ||
  4158. groupStudentUid[toolIndex][gindex].indexOf(
  4159. userid
  4160. ) != -1)
  4161. "
  4162. >
  4163. <div class="group_title">
  4164. <el-tooltip
  4165. class="item"
  4166. effect="light"
  4167. :content="g.name"
  4168. placement="top"
  4169. >
  4170. <div class="group_name">{{ g.name }}</div>
  4171. </el-tooltip>
  4172. <el-button
  4173. type="primary"
  4174. v-if="
  4175. groupStudentUid[toolIndex][gindex].indexOf(
  4176. userid
  4177. ) != -1
  4178. "
  4179. @click="groupUpload(toolIndex, taskCount, gindex)"
  4180. >上传作业</el-button
  4181. >
  4182. </div>
  4183. <div class="group_work">
  4184. <div
  4185. class="works"
  4186. style="
  4187. width: 200px;
  4188. height: 140px;
  4189. margin: 10px 10px 10px 0;
  4190. border-radius: 15px;
  4191. box-shadow: 0 0 6px 1px #dfdada;
  4192. "
  4193. v-for="(w, wIndex) in worksStudent[toolIndex][
  4194. gindex
  4195. ]"
  4196. :key="wIndex"
  4197. :class="w.type == 1 ? 'isTypeOne' : ''"
  4198. >
  4199. <div class="workImg" v-if="w.type == 0">
  4200. <img
  4201. :src="w.works"
  4202. @click="previewImg(w.works)"
  4203. alt
  4204. />
  4205. <div
  4206. class="answerScore"
  4207. v-if="w.score"
  4208. @click.stop="openScore(w)"
  4209. :class="{
  4210. rightW:
  4211. w.userid == userid ||
  4212. tType == 1 ||
  4213. tType == 4 ||
  4214. w.ateacher == userid,
  4215. }"
  4216. >
  4217. {{ JSON.parse(w.score).wScore }}分
  4218. </div>
  4219. <div
  4220. class="answerScore"
  4221. @click.stop="openScore(w)"
  4222. v-else-if="courseDetail.userid == userid"
  4223. :class="{
  4224. rightW:
  4225. w.userid == userid ||
  4226. tType == 1 ||
  4227. tType == 4 ||
  4228. w.ateacher == userid,
  4229. }"
  4230. >
  4231. 评分
  4232. </div>
  4233. <img
  4234. class="deleteImg"
  4235. src="../assets/deleteworks.png"
  4236. v-if="
  4237. w.userid == userid ||
  4238. tType == 1 ||
  4239. tType == 4
  4240. "
  4241. @click.stop="deleteWorks(w.wid)"
  4242. alt
  4243. />
  4244. </div>
  4245. <div class="workImg" v-if="w.type == 1">
  4246. <img
  4247. :src="word"
  4248. @click="openFile(w.works)"
  4249. alt
  4250. />
  4251. <!-- @click="openFile(w.works)" -->
  4252. <div
  4253. class="answerScore"
  4254. v-if="w.score"
  4255. @click.stop="openScore(w)"
  4256. :class="{
  4257. rightW:
  4258. w.userid == userid ||
  4259. tType == 1 ||
  4260. tType == 4 ||
  4261. w.ateacher == userid,
  4262. }"
  4263. >
  4264. {{ JSON.parse(w.score).wScore }}分
  4265. </div>
  4266. <div
  4267. class="answerScore"
  4268. @click.stop="openScore(w)"
  4269. v-else-if="courseDetail.userid == userid"
  4270. :class="{
  4271. rightW:
  4272. w.userid == userid ||
  4273. tType == 1 ||
  4274. tType == 4 ||
  4275. w.ateacher == userid,
  4276. }"
  4277. >
  4278. 评分
  4279. </div>
  4280. <img
  4281. class="deleteImg"
  4282. src="../assets/deleteworks.png"
  4283. v-if="
  4284. w.userid == userid ||
  4285. tType == 1 ||
  4286. tType == 4
  4287. "
  4288. @click.stop="deleteWorks(w.wid)"
  4289. alt
  4290. />
  4291. </div>
  4292. <div class="workImg" v-if="w.type == 3">
  4293. <img
  4294. style="cursor: pointer"
  4295. :src="video"
  4296. @click="openVideo(w)"
  4297. alt
  4298. />
  4299. <!-- @click="openVideo(w.works)" -->
  4300. <div
  4301. class="answerScore"
  4302. v-if="w.score"
  4303. @click.stop="openScore(w)"
  4304. :class="{
  4305. rightW:
  4306. w.userid == userid ||
  4307. tType == 1 ||
  4308. tType == 4 ||
  4309. w.ateacher == userid,
  4310. }"
  4311. >
  4312. {{ JSON.parse(w.score).wScore }}分
  4313. </div>
  4314. <div
  4315. class="answerScore"
  4316. @click.stop="openScore(w)"
  4317. v-else-if="courseDetail.userid == userid"
  4318. :class="{
  4319. rightW:
  4320. w.userid == userid ||
  4321. tType == 1 ||
  4322. tType == 4 ||
  4323. w.ateacher == userid,
  4324. }"
  4325. >
  4326. 评分
  4327. </div>
  4328. <img
  4329. class="deleteImg"
  4330. src="../assets/deleteworks.png"
  4331. v-if="
  4332. w.userid == userid ||
  4333. tType == 1 ||
  4334. tType == 4
  4335. "
  4336. @click.stop="deleteWorks(w.wid)"
  4337. alt
  4338. />
  4339. </div>
  4340. <div class="comment" style="min-width: 200px">
  4341. <div class="worksName">
  4342. <div>{{ w.sName }}</div>
  4343. </div>
  4344. <div class="commentList">
  4345. <div class="commentList">
  4346. <div
  4347. class="commentImg"
  4348. @click="
  4349. isLikes(
  4350. w.wid,
  4351. userid,
  4352. 1,
  4353. null,
  4354. w.isLikes
  4355. )
  4356. "
  4357. >
  4358. <img
  4359. :src="
  4360. w.isLikes == true ? likes : noLikes
  4361. "
  4362. alt=""
  4363. />
  4364. </div>
  4365. <div>{{ w.likesCount }}</div>
  4366. </div>
  4367. <div
  4368. class="commentList"
  4369. style="margin-right: 15px"
  4370. >
  4371. <div
  4372. class="commentImg"
  4373. @click="
  4374. commentOther(
  4375. w,
  4376. toolIndex,
  4377. wIndex,
  4378. gindex
  4379. )
  4380. "
  4381. >
  4382. <img
  4383. src="../assets/icon/comment/comment.png"
  4384. alt=""
  4385. />
  4386. </div>
  4387. <div>{{ w.commentCount }}</div>
  4388. </div>
  4389. </div>
  4390. </div>
  4391. </div>
  4392. </div>
  4393. </div>
  4394. </div>
  4395. </div>
  4396. </div>
  4397. </div>
  4398. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  4399. 上传文件
  4400. <input
  4401. type="file"
  4402. accept="image/png, image/gif, image/jpeg"
  4403. style="display: none"
  4404. @change="beforeUpload1($event, 2, index)"
  4405. />
  4406. </div>-->
  4407. </div>
  4408. </div>
  4409. <div
  4410. class="vedioBox"
  4411. v-if="
  4412. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  4413. .eList &&
  4414. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  4415. .eList.length &&
  4416. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  4417. .eList.length > 0 &&
  4418. tType != 2
  4419. "
  4420. >
  4421. <div
  4422. class="queTop"
  4423. style="
  4424. font-size: 25px;
  4425. padding: 15px 0 15px 30px;
  4426. font-weight: bold;
  4427. "
  4428. >
  4429. <!-- <div class="question" style="width: 30px">
  4430. <img src="../assets/icon/toolIcon.png" alt />
  4431. </div>
  4432. <div class="queTitle">
  4433. <div>工具</div>
  4434. </div>-->
  4435. 评一评
  4436. </div>
  4437. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  4438. <div class="elist_input">
  4439. <div
  4440. v-for="(eItem, eIndex) in chapInfoList[courseType]
  4441. .chapterInfo[0].taskJson[taskCount].eList"
  4442. :key="eIndex"
  4443. class="elist_input_box"
  4444. >
  4445. <div style="width: 95%">
  4446. <div
  4447. style="
  4448. display: flex;
  4449. flex-direction: row;
  4450. flex-wrap: nowrap;
  4451. align-items: center;
  4452. "
  4453. >
  4454. <div style="max-width: calc(100% - 285px)">
  4455. <span>{{ eItem.value }}</span>
  4456. </div>
  4457. <div
  4458. style="
  4459. padding-left: 25px;
  4460. display: flex;
  4461. flex-direction: row;
  4462. align-items: center;
  4463. "
  4464. >
  4465. <el-rate
  4466. v-model="eItem.score"
  4467. :colors="colors"
  4468. disabled
  4469. ></el-rate>
  4470. </div>
  4471. </div>
  4472. <div class="elist_inptu_text" style="padding-left: 10px">
  4473. <span v-if="eItem.detail != ''">{{
  4474. eItem.detail
  4475. }}</span>
  4476. <span v-else style="color: #b2b1b3; font-size: 14px"
  4477. >暂无描述...</span
  4478. >
  4479. </div>
  4480. </div>
  4481. </div>
  4482. </div>
  4483. <div
  4484. v-if="evalua"
  4485. style="
  4486. border: 1px solid #e5e5e5;
  4487. max-width: 650px;
  4488. width: 100%;
  4489. margin-top: 20px;
  4490. box-shadow: 3px 1px 15px 3px #e0e0e0;
  4491. "
  4492. >
  4493. <div class="e_add_top">
  4494. <div class="e_add_title">
  4495. <span>目标管理名称</span>
  4496. <span>{{ eTitle }}</span>
  4497. <img
  4498. src="../assets/line.png"
  4499. class="cru_line"
  4500. style="
  4501. width: 125px;
  4502. height: 20px;
  4503. bottom: -10px;
  4504. left: 120px;
  4505. "
  4506. />
  4507. <!-- <el-input
  4508. v-model="eTitle"
  4509. placeholder="请输入名称"
  4510. @change="setMindData"
  4511. ></el-input>-->
  4512. </div>
  4513. </div>
  4514. <div class="e_add_content">
  4515. <div class="e_add_list_pbox">
  4516. <div class="e_add_list_pbox_title">
  4517. <span class="type_title">切换模式</span>
  4518. <div class="type_content">
  4519. <span
  4520. :class="{ active: typeMode == 1 }"
  4521. @click="typeMode = 1"
  4522. >目标树</span
  4523. >
  4524. <span
  4525. :class="{ active: typeMode == 2 }"
  4526. @click="typeMode = 2"
  4527. >目标罗盘</span
  4528. >
  4529. <span
  4530. :class="{ active: typeMode == 3 }"
  4531. @click="typeMode = 3"
  4532. >目标看板</span
  4533. >
  4534. </div>
  4535. </div>
  4536. <div class="e_add_list_pbox_content">
  4537. <Mind
  4538. :showBar="false"
  4539. :mindData="data"
  4540. style="width: 100%"
  4541. v-show="typeMode == 1"
  4542. ></Mind>
  4543. <Sunburst
  4544. :Josn="eJson"
  4545. :num="eJSONNum"
  4546. style="width: 100%"
  4547. v-if="typeMode == 2"
  4548. ></Sunburst>
  4549. <SeeBoard
  4550. :Josn="eJson"
  4551. :num="eJSONNum"
  4552. :ename="eTitle"
  4553. style="width: 100%"
  4554. v-if="typeMode == 3"
  4555. >
  4556. </SeeBoard>
  4557. </div>
  4558. </div>
  4559. </div>
  4560. </div>
  4561. </div>
  4562. </div>
  4563. <!-- <div
  4564. class="project_box"
  4565. style="margin-top: 15px; padding-bottom: 30px"
  4566. >
  4567. <div
  4568. style="
  4569. display: flex;
  4570. flex-wrap: nowrap;
  4571. flex-direction: column;
  4572. position: relative;
  4573. "
  4574. >
  4575. <div class="queTop">
  4576. <div class="question">
  4577. <img src="../assets/icon/homeWork.png" alt="" />
  4578. </div>
  4579. <div class="queTitle">
  4580. <div>作业提交<span>(提交图文视频等)</span></div>
  4581. <div>:任务:{{ task.task }}</div>
  4582. </div>
  4583. </div>
  4584. <div class="ediBottom">
  4585. <div
  4586. class="addEditor"
  4587. style="margin-top: 23px"
  4588. @click="openAddWork"
  4589. v-if="!isNoHomeWork"
  4590. >
  4591. 选择文件
  4592. </div>
  4593. <div
  4594. class="addEditor"
  4595. style="margin-top: 23px"
  4596. @click="openAddWork"
  4597. v-else
  4598. >
  4599. 已提交
  4600. </div>
  4601. </div>
  4602. </div>
  4603. </div>-->
  4604. </div>
  4605. </div>
  4606. <el-dialog
  4607. title="作业提交"
  4608. :visible.sync="dialogVisible"
  4609. :append-to-body="true"
  4610. width="500px"
  4611. :before-close="handleClose"
  4612. class="dialog_change"
  4613. >
  4614. <div class="marginT">
  4615. <div>上传文件</div>
  4616. <div
  4617. class="chapter_add"
  4618. @click="addImg($event)"
  4619. v-if="studyJuri[0].cover.length == 0"
  4620. >
  4621. <div class="up_photo">
  4622. <img src="../assets/icon/uploadImg.png" alt />
  4623. </div>
  4624. <input
  4625. type="file"
  4626. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4627. capture="camera"
  4628. style="display: none"
  4629. @change="beforeUpload1($event, 1)"
  4630. />
  4631. <!-- <input
  4632. type="file"
  4633. accept="image/*"
  4634. capture="camera"
  4635. style="display: none"
  4636. @change="beforeUpload1($event, 1)"
  4637. /> -->
  4638. </div>
  4639. <div
  4640. class="chapter_add"
  4641. style="
  4642. display: flex;
  4643. width: 100%;
  4644. flex-direction: row;
  4645. flex-wrap: wrap;
  4646. justify-content: flex-start;
  4647. padding: 15px 0;
  4648. "
  4649. v-if="studyJuri[0].cover.length > 0"
  4650. >
  4651. <div class="upCover">
  4652. <img
  4653. :src="studyJuri[0].cover[0].url"
  4654. alt
  4655. v-if="fileType == 0"
  4656. />
  4657. <img :src="word" alt v-else-if="fileType == 1" />
  4658. <img :src="video" alt v-else />
  4659. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  4660. <div class="deleteWord" @click="clean(1)">
  4661. <img src="../assets/icon/deleteWorks.png" alt />
  4662. </div>
  4663. </div>
  4664. </div>
  4665. </div>
  4666. <!-- <div class="first">
  4667. <div>作业名称:</div>
  4668. <div>{{ chapInfoList[courseType].dyName }}</div>
  4669. </div>
  4670. <div style="font-size: 20px; margin-bottom: 10px">上传作业</div>
  4671. <el-input
  4672. type="textarea"
  4673. resize="none"
  4674. rows="7"
  4675. placeholder="输入文字描述..."
  4676. v-model="studyJuri[0].content"
  4677. ></el-input>
  4678. <div class="marginT">
  4679. <div>上传图片</div>
  4680. <div class="chapter_add" @click="addImg($event)">
  4681. <div class="up_photo">
  4682. <img src="../assets/photo.png" alt />
  4683. </div>
  4684. <input
  4685. type="file"
  4686. accept="image/png, image/gif, image/jpeg"
  4687. style="display: none"
  4688. @change="beforeUpload1($event, 1)"
  4689. />
  4690. </div>
  4691. <div
  4692. class="chapter_add"
  4693. style="
  4694. display: flex;
  4695. width: 100%;
  4696. flex-direction: row;
  4697. flex-wrap: wrap;
  4698. justify-content: flex-start;
  4699. "
  4700. v-if="studyJuri[0].cover.length > 0"
  4701. >
  4702. <div
  4703. v-for="(c, cIndex) in studyJuri[0].cover"
  4704. :key="cIndex"
  4705. class="upCover"
  4706. >
  4707. <img :src="c.url != null && c.url != '' ? c.url : mr" alt />
  4708. <span class="picName">{{ c.name }}</span>
  4709. <div class="deleteWord" @click="clean(1)">
  4710. <img src="../assets/icon/delete.png" alt />
  4711. </div>
  4712. </div>
  4713. </div>
  4714. </div>
  4715. <div class="marginT">
  4716. <div>上传视频</div>
  4717. <div class="chapter_add" @click="addImg($event)">
  4718. <div class="up_photo">
  4719. <img src="../assets/vidio.png" alt />
  4720. </div>
  4721. <input
  4722. type="file"
  4723. accept="video/mp4, video/quicktime, video/x-msvideo"
  4724. style="display: none"
  4725. @change="beforeUpload2($event, 2)"
  4726. />
  4727. </div>
  4728. <div
  4729. class="chapter_add"
  4730. style="
  4731. display: flex;
  4732. flex-direction: row;
  4733. flex-wrap: wrap;
  4734. width: 100%;
  4735. justify-content: flex-start;
  4736. "
  4737. v-if="studyJuri[0].upVedio.length > 0"
  4738. >
  4739. <div
  4740. style="
  4741. width: 100%;
  4742. display: flex;
  4743. flex-direction: row;
  4744. flex-wrap: wrap;
  4745. align-content: flex-start;
  4746. justify-content: flex-start;
  4747. align-items: center;
  4748. "
  4749. >
  4750. <div
  4751. class="uploadVedio isAddThings"
  4752. v-for="(v, vIndex) in studyJuri[0].upVedio"
  4753. :key="vIndex"
  4754. >
  4755. <img src="../assets/uploadMp4.png" alt />
  4756. <span>{{ v.name }}</span>
  4757. <div class="deleteWord" @click="clean(2)">
  4758. <img src="../assets/icon/delete.png" alt />
  4759. </div>
  4760. </div>
  4761. </div>
  4762. </div>
  4763. </div>-->
  4764. <div
  4765. class="upload_send"
  4766. @click="addCourseWorks(taskCount)"
  4767. v-if="!proVisible"
  4768. >
  4769. 提交
  4770. </div>
  4771. </el-dialog>
  4772. </div>
  4773. </div>
  4774. <div
  4775. class="pButton"
  4776. @click="(pzDialog = true), selectPz()"
  4777. v-if="tType == 4"
  4778. >
  4779. <!-- 批 -->
  4780. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  4781. </div>
  4782. <div v-if="pzDialog == true" class="newDialogCss">
  4783. <div class="pzTop2">
  4784. <!-- <div>批注</div>
  4785. <div @click="pzDialog = false">
  4786. <img src="../assets/close1.png" alt="" />
  4787. </div> -->
  4788. <div class="checkbox">
  4789. <div class="check" style="font-size: 25px">评课笔记</div>
  4790. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  4791. </div>
  4792. </div>
  4793. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  4794. <div class="pzListBox" v-if="pzList && pzList.length">
  4795. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  4796. <div class="pzNavTop">
  4797. <div>批</div>
  4798. <div>
  4799. {{
  4800. pz.username.length > 5
  4801. ? pz.username.substring(0, 5) + "..."
  4802. : pz.username
  4803. }}的批注
  4804. </div>
  4805. <div
  4806. class="pzDelete"
  4807. v-if="pz.userid == userid"
  4808. @click="deletePz(pz.id)"
  4809. >
  4810. 删除
  4811. </div>
  4812. </div>
  4813. <div
  4814. class="pzContent cont"
  4815. v-html="pz.content"
  4816. v-if="pz.type == '1'"
  4817. >
  4818. </div>
  4819. <div class="pzContent" v-if="pz.type == '2'">
  4820. <audio :src="pz.content" controls="controls" ref="audio">
  4821. Your browser does not support the audio element.
  4822. </audio>
  4823. </div>
  4824. <div class="pzContent" v-if="pz.type == '3'">
  4825. <img
  4826. :src="pz.content"
  4827. style="width: 90%; margin: 0 auto; display: block"
  4828. @click="previewImg(pz.content)"
  4829. />
  4830. </div>
  4831. <div class="time">
  4832. {{ pz.time }}
  4833. </div>
  4834. </div>
  4835. </div>
  4836. <div class="noPz" v-else>
  4837. <img src="../assets/icon/noPz.png" alt="" />
  4838. </div>
  4839. <div class="addPzButton">
  4840. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  4841. 添加批注
  4842. </div>
  4843. <!-- <div class="img1">
  4844. <div @click="(addPzDialog = true), (pzType = 2)">
  4845. <img src="../assets/audio.png" /><span>音频</span>
  4846. </div>
  4847. </div> -->
  4848. </div>
  4849. </div>
  4850. </div>
  4851. <div v-if="addPzDialog == true" class="addDialogCss">
  4852. <div class="pzTop">
  4853. <div class="teacherPz">
  4854. <div class="teacherPzImg">
  4855. <img src="../assets/icon/teacherPz.png" alt="" />
  4856. </div>
  4857. <div style="margin-left: 10px; height: 25px">教师批注</div>
  4858. </div>
  4859. <div @click="addPzDialog = false">
  4860. <img src="../assets/close1.png" alt="" />
  4861. </div>
  4862. </div>
  4863. <div class="addPzBox">
  4864. <div class="addPzCheck">
  4865. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  4866. >文本</span
  4867. >
  4868. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  4869. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  4870. >音频</span
  4871. >
  4872. </div>
  4873. <div style="height: calc(100% - 95px)">
  4874. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  4875. v-if="pzType == 1"></textarea> -->
  4876. <editor-bar
  4877. class="binfo_input pzConText"
  4878. style="width: 100% !important"
  4879. placeholder="请输入任务描述"
  4880. v-model="pzConText"
  4881. @change="change"
  4882. v-if="pzType == 1"
  4883. ></editor-bar>
  4884. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  4885. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  4886. <div @click="addImg($event)">
  4887. <el-button type="primary">上传图片</el-button>
  4888. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  4889. @change="beforeUpload1($event, 4)" />
  4890. </div>
  4891. </div> -->
  4892. </div>
  4893. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  4894. 确定
  4895. </div>
  4896. </div>
  4897. </div>
  4898. <div v-if="proVisible" class="mask">
  4899. <div class="progressBox">
  4900. <!-- <div id="closePro" class="closeCss">
  4901. <img src="../assets/icon/close.png" alt />
  4902. </div> -->
  4903. <div class="lbox">
  4904. <img src="../assets/loading.gif" />上传中,请稍后
  4905. </div>
  4906. <div>
  4907. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  4908. </div>
  4909. <el-progress
  4910. :text-inside="true"
  4911. :stroke-width="20"
  4912. :percentage="progress"
  4913. style="width: 80%"
  4914. ></el-progress>
  4915. </div>
  4916. </div>
  4917. <div v-if="proVisible2" class="mask">
  4918. <div class="progressBox">
  4919. <div class="lbox">
  4920. <img src="../assets/loading.gif" />上传中,请稍后
  4921. </div>
  4922. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  4923. </div>
  4924. </div>
  4925. <el-dialog :visible.sync="pictureDialog" size="tiny">
  4926. <img width="100%" :src="dialogImageUrl" alt />
  4927. </el-dialog>
  4928. <el-dialog
  4929. :title="noteName != '' ? noteName : '查看问卷'"
  4930. :visible.sync="dialogVisible5"
  4931. :append-to-body="true"
  4932. width="1000px"
  4933. :before-close="handleClose"
  4934. class="dialog_diy dialog_diy3"
  4935. >
  4936. <div>
  4937. <div
  4938. class="a_add_title"
  4939. style="
  4940. display: flex;
  4941. flex-direction: row;
  4942. align-items: center;
  4943. justify-content: center;
  4944. "
  4945. >
  4946. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  4947. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  4948. </div>
  4949. <div class="a_addBox">
  4950. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  4951. <div
  4952. class="a_add_box"
  4953. v-for="(item1, index1) in askJson.askCount"
  4954. :key="index1"
  4955. >
  4956. <div class="a_add_head">
  4957. <div style="display: flex">
  4958. {{ index1 + 1 + "、" }}
  4959. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  4960. </div>
  4961. <img
  4962. v-if="askJson.askJson[index1].img"
  4963. :src="askJson.askJson[index1].img"
  4964. style="height: 300px; margin-top: 10px; max-width: 100%"
  4965. />
  4966. </div>
  4967. <div class="a_add_body">
  4968. <div class="a_add_input">
  4969. <el-radio-group v-model="radio[index1]">
  4970. <el-radio
  4971. v-for="(item2, checkIndex) in askJson.askJson[index1]
  4972. .checkList"
  4973. :key="checkIndex"
  4974. :label="checkIndex"
  4975. :disabled="isAnswer"
  4976. class="redioStyle"
  4977. ><span v-html="item2"></span
  4978. ></el-radio>
  4979. </el-radio-group>
  4980. </div>
  4981. </div>
  4982. </div>
  4983. </div>
  4984. </div>
  4985. <span slot="footer" class="dialog-footer">
  4986. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  4987. >取 消</el-button
  4988. >
  4989. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  4990. >确 定</el-button
  4991. >
  4992. </span>
  4993. </el-dialog>
  4994. <el-dialog
  4995. :title="noteName != '' ? noteName : '查看选择题'"
  4996. :visible.sync="dialogVisibleChoice"
  4997. :append-to-body="true"
  4998. width="1000px"
  4999. :before-close="handleClose"
  5000. class="dialog_diy dialog_diy3"
  5001. >
  5002. <div>
  5003. <!-- <div class="a_add_title" style="
  5004. display: flex;
  5005. flex-direction: row;
  5006. align-items: center;
  5007. justify-content: center;
  5008. ">
  5009. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5010. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  5011. </div> -->
  5012. <div class="a_addBox">
  5013. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  5014. <div
  5015. class="a_add_box"
  5016. v-for="(item1, index1) in testJson.testCount"
  5017. :key="index1"
  5018. >
  5019. <div class="a_add_head">
  5020. <div style="display: flex">
  5021. {{ index1 + 1 + "、" }}
  5022. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  5023. </div>
  5024. <img
  5025. v-if="testJson.testJson[index1].img"
  5026. :src="testJson.testJson[index1].img"
  5027. style="height: 300px; margin-top: 10px; max-width: 100%"
  5028. />
  5029. </div>
  5030. <div class="a_add_body">
  5031. <div class="a_add_input">
  5032. <el-radio-group
  5033. v-model="radio[index1]"
  5034. v-if="testJson.testJson[index1].type == '1'"
  5035. >
  5036. <div class="radioBox">
  5037. <el-radio
  5038. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5039. .checkList"
  5040. :key="checkIndex"
  5041. :label="checkIndex"
  5042. :disabled="isAnswer"
  5043. class="redioStyle"
  5044. >
  5045. <div
  5046. style="margin-right: 10px"
  5047. v-if="item2 && item2.imgType && item2.imgType == 1"
  5048. >
  5049. <div class="inImg" @click.stop="previewImg(item2.src)">
  5050. <img :src="item2.src" alt="" />
  5051. </div>
  5052. </div>
  5053. <span v-else v-html="item2"></span>
  5054. </el-radio>
  5055. </div>
  5056. </el-radio-group>
  5057. <el-checkbox-group
  5058. v-model="radio[index1]"
  5059. v-if="testJson.testJson[index1].type == '2'"
  5060. >
  5061. <div class="radioBox">
  5062. <el-checkbox
  5063. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5064. .checkList"
  5065. :key="checkIndex"
  5066. :label="checkIndex"
  5067. :disabled="isAnswer"
  5068. class="redioStyle"
  5069. >
  5070. <div
  5071. style="margin-right: 10px"
  5072. v-if="item2 && item2.imgType && item2.imgType == 1"
  5073. >
  5074. <div class="inImg" @click.stop="previewImg(item2.src)">
  5075. <img :src="item2.src" alt="" />
  5076. </div>
  5077. </div>
  5078. <span v-else v-html="item2"></span>
  5079. </el-checkbox>
  5080. </div>
  5081. </el-checkbox-group>
  5082. </div>
  5083. </div>
  5084. </div>
  5085. </div>
  5086. </div>
  5087. <span slot="footer" class="dialog-footer">
  5088. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  5089. >取 消</el-button
  5090. >
  5091. <el-button
  5092. type="primary"
  5093. @click="addStudentTest"
  5094. v-show="noteName == ''"
  5095. >确 定</el-button
  5096. >
  5097. </span>
  5098. </el-dialog>
  5099. <el-dialog
  5100. title="查看富文本"
  5101. :visible.sync="dialogVisible1"
  5102. :append-to-body="true"
  5103. width="500px"
  5104. :before-close="handleClose"
  5105. class="dialog_diy textCss"
  5106. >
  5107. <el-form style="font-size: 20px">
  5108. <el-form-item label="文本标题" class="textTitle">
  5109. <div style="font-size: 20px">{{ text.name }}</div>
  5110. </el-form-item>
  5111. <div>富文本内容</div>
  5112. <div
  5113. v-html="text.url"
  5114. style="font-size: 18px; padding: 40px 0 0 0"
  5115. ></div>
  5116. </el-form>
  5117. <span slot="footer" class="dialog-footer">
  5118. <el-button type="primary" @click="dialogVisible1 = false"
  5119. >确定</el-button
  5120. >
  5121. </span>
  5122. </el-dialog>
  5123. <el-dialog
  5124. title="文件预览"
  5125. :visible.sync="dialogVisible3"
  5126. width="50%"
  5127. :before-close="handleClose"
  5128. class="dialog_diy"
  5129. :class="{ fullStyle: full }"
  5130. >
  5131. <div slot="title" class="header-title">
  5132. <div style="color: #fff">文件预览</div>
  5133. <div style="position: absolute; top: 19px; right: 50px">
  5134. <img
  5135. src="../assets/full.png"
  5136. style="height: 16px; cursor: pointer"
  5137. alt=""
  5138. @click="fullTools"
  5139. />
  5140. </div>
  5141. </div>
  5142. <pdf
  5143. v-if="showPDF"
  5144. :pdfUrl="pptImgUrl"
  5145. style="width: 100%; height: 520px; overflow: auto"
  5146. :class="{ fullStyle: full }"
  5147. ></pdf>
  5148. <iframe
  5149. v-else
  5150. :src="pptImgUrl"
  5151. frameborder="0"
  5152. width="100%"
  5153. height="600"
  5154. :class="{ fullStyle: full }"
  5155. ></iframe>
  5156. </el-dialog>
  5157. <el-dialog
  5158. title="文件预览"
  5159. :visible.sync="dialogVisible6"
  5160. width="50%"
  5161. :before-close="handleClose"
  5162. class="dialog_diy"
  5163. >
  5164. <iframe
  5165. :src="pptImgUrl1"
  5166. frameborder="0"
  5167. width="100%"
  5168. height="600"
  5169. ></iframe>
  5170. </el-dialog>
  5171. <el-dialog
  5172. title="提示"
  5173. :visible.sync="dialogVisible4"
  5174. :append-to-body="true"
  5175. width="800px"
  5176. :before-close="handleClose"
  5177. class="dialog_diy notice"
  5178. >
  5179. <div>此功能暂未开放!</div>
  5180. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  5181. </el-dialog>
  5182. <el-dialog
  5183. title="问答"
  5184. :visible.sync="answerDialogVisible"
  5185. :append-to-body="true"
  5186. width="800px"
  5187. :before-close="handleClose"
  5188. class="dialog_diy"
  5189. >
  5190. <div>
  5191. <div
  5192. style="
  5193. display: flex;
  5194. flex-wrap: nowrap;
  5195. flex-direction: column;
  5196. position: relative;
  5197. "
  5198. >
  5199. <div class="queTop" style="padding: 20px 0 20px 0">
  5200. <div class="question">
  5201. <img src="../assets/icon/question.png" alt />
  5202. </div>
  5203. <div class="queTitle">
  5204. <div style="width: 90px; min-width: 90px">提问:</div>
  5205. <div>{{ answerQ }}</div>
  5206. </div>
  5207. </div>
  5208. <div class="ediBottom">
  5209. <textarea
  5210. rows="6"
  5211. class="binfo_input"
  5212. cols
  5213. style="width: 95%; height: 120px"
  5214. v-model="questionAnswer"
  5215. ></textarea>
  5216. </div>
  5217. </div>
  5218. </div>
  5219. <div slot="footer">
  5220. <el-button @click="answerDialogVisible = false">取 消</el-button>
  5221. <el-button type="primary" @click="addQuestion">提 交</el-button>
  5222. </div>
  5223. </el-dialog>
  5224. <el-dialog
  5225. title="倒计时"
  5226. :visible.sync="timeDialogVisible"
  5227. :append-to-body="true"
  5228. width="800px"
  5229. :before-close="handleClose"
  5230. class="dialog_diy"
  5231. >
  5232. <div>
  5233. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  5234. </div>
  5235. <div slot="footer">
  5236. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  5237. </div>
  5238. </el-dialog>
  5239. <el-dialog
  5240. title="权限设置"
  5241. :visible.sync="juriVisible"
  5242. :append-to-body="true"
  5243. width="400px"
  5244. :before-close="handleClose"
  5245. class="dialog_diy"
  5246. >
  5247. <div>
  5248. <div class="open_box">
  5249. <div class="switch_box">
  5250. <span>允许学生查看所有作业</span>
  5251. <el-switch
  5252. v-model="sIsOpen"
  5253. active-text=""
  5254. class="switchCss"
  5255. @change="updateSLook"
  5256. ></el-switch>
  5257. </div>
  5258. <div
  5259. class="switch_box"
  5260. v-if="
  5261. courseDetail.userid == userid ||
  5262. (courseDetail.course_teacher &&
  5263. courseDetail.course_teacher.indexOf(userid) != -1)
  5264. "
  5265. >
  5266. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  5267. <span>禁止学生查看所有阶段</span>
  5268. <el-switch
  5269. v-model="IsLookOpen"
  5270. active-text=""
  5271. class="switchCss"
  5272. @change="updateLookOpen"
  5273. ></el-switch>
  5274. </div>
  5275. </div>
  5276. </div>
  5277. <div slot="footer">
  5278. <el-button
  5279. style="background: #409efe; color: #fff"
  5280. @click="juriVisible = false"
  5281. >关 闭</el-button
  5282. >
  5283. </div>
  5284. </el-dialog>
  5285. <el-dialog
  5286. title="查看视频"
  5287. :visible.sync="videoVisible"
  5288. :append-to-body="true"
  5289. width="1000px"
  5290. :before-close="handleClose"
  5291. class="dialog_diy1"
  5292. >
  5293. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  5294. <video-player
  5295. class="video-player vjs-custom-skin"
  5296. :playsinline="true"
  5297. :options="videoDetail"
  5298. @play="onPlayerPlay($event)"
  5299. style="width: 100%; height: 100%"
  5300. ></video-player>
  5301. </div>
  5302. <div slot="footer">
  5303. <el-button
  5304. style="background: #409efe; color: #fff"
  5305. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  5306. >
  5307. 关 闭</el-button
  5308. >
  5309. </div>
  5310. </el-dialog>
  5311. <el-dialog
  5312. title="查看详情"
  5313. :visible.sync="commentDialogVisible"
  5314. :append-to-body="true"
  5315. width="800px"
  5316. :before-close="handleClose"
  5317. class="dialog_diy"
  5318. >
  5319. <div class="commentTop">
  5320. <div class="studentDetail">
  5321. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  5322. <div class="nameAndTime">
  5323. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  5324. <div>{{ commentDetail.time }}</div>
  5325. </div>
  5326. <div
  5327. class="returnBtn"
  5328. style="margin-left: auto; width: 80px"
  5329. v-if="
  5330. commentDetail.works &&
  5331. commentDetail.type == 0 &&
  5332. (tType == 1 || tType == 4)
  5333. "
  5334. @click="
  5335. showPicturePaint(
  5336. commentDetail.img ? commentDetail.img : commentDetail.works
  5337. )
  5338. "
  5339. >
  5340. 教师批注
  5341. </div>
  5342. </div>
  5343. <div
  5344. class="worksAnswer"
  5345. v-if="commentDetail.works && commentDetail.type == 2"
  5346. >
  5347. {{ JSON.parse(commentDetail.works)[0].answer }}
  5348. </div>
  5349. <div
  5350. class="worksAnswer"
  5351. v-if="commentDetail.works && commentDetail.type == 1"
  5352. >
  5353. <img
  5354. src="../assets/teacherWork.png"
  5355. v-if="commentDetail.ateacher"
  5356. class="w_teachert"
  5357. />
  5358. <pdf
  5359. v-if="showPDF"
  5360. :pdfUrl="pptImgUrl"
  5361. style="width: 100%; height: 520px; overflow: auto"
  5362. :class="{ fullStyle: full }"
  5363. ></pdf>
  5364. <iframe
  5365. v-else
  5366. :src="pptImgUrl"
  5367. frameborder="0"
  5368. width="100%"
  5369. height="600"
  5370. :class="{ fullStyle: full }"
  5371. ></iframe>
  5372. </div>
  5373. <div
  5374. class="worksAnswer"
  5375. v-if="commentDetail.works && commentDetail.type == 0"
  5376. >
  5377. <img
  5378. src="../assets/teacherWork.png"
  5379. v-if="commentDetail.ateacher"
  5380. class="w_teachert"
  5381. style="right: 105px"
  5382. />
  5383. <img
  5384. :src="commentDetail.works"
  5385. alt=""
  5386. @click="previewImg(commentDetail.works)"
  5387. />
  5388. </div>
  5389. <div
  5390. class="worksAnswer"
  5391. v-if="commentDetail.works && commentDetail.type == 3"
  5392. >
  5393. <img
  5394. src="../assets/teacherWork.png"
  5395. v-if="commentDetail.ateacher"
  5396. class="w_teachert"
  5397. />
  5398. <video-player
  5399. class="video-player vjs-custom-skin"
  5400. :playsinline="true"
  5401. :options="videoDetail"
  5402. @play="onPlayerPlay($event)"
  5403. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  5404. ></video-player>
  5405. </div>
  5406. <div
  5407. class="worksAnswer"
  5408. v-if="commentDetail.works && commentDetail.type == 10"
  5409. >
  5410. <div class="cont" v-html="commentDetail.works.text"></div>
  5411. </div>
  5412. <div
  5413. class="worksAnswer codeFileBox"
  5414. v-if="commentDetail.works && commentDetail.type == 12"
  5415. @click="downloadFile(commentDetail.works)"
  5416. >
  5417. <img src="../assets/icon/codeFile.png" />
  5418. <div>点击下载文件</div>
  5419. </div>
  5420. <div
  5421. class="worksAnswer"
  5422. v-if="commentDetail.works && commentDetail.type == 4"
  5423. >
  5424. <div class="evalCss">
  5425. <div class="nav">请选择星星进行评分</div>
  5426. <div class="middleBox" v-if="eScore.eStar">
  5427. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  5428. <div class="nameAndrate">
  5429. <div>{{ e.value }}</div>
  5430. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  5431. </div>
  5432. <div v-if="e.detail">{{ e.detail }}</div>
  5433. </div>
  5434. <div class="bz">
  5435. <textarea
  5436. disabled
  5437. rows="4"
  5438. class="pj"
  5439. style="
  5440. padding: 10px 5px;
  5441. width: 70%;
  5442. background: #f7f6f9;
  5443. font-size: 14px;
  5444. text-indent: 10px;
  5445. color: #000;
  5446. "
  5447. cols
  5448. v-model="eScore.eBzText"
  5449. placeholder="请输入评价内容..."
  5450. ></textarea>
  5451. </div>
  5452. </div>
  5453. </div>
  5454. </div>
  5455. <div class="comment">
  5456. <div class="commentList">
  5457. <div class="commentImg">
  5458. <img
  5459. @click="
  5460. isLikes(
  5461. commentDetail.wid,
  5462. userid,
  5463. 1,
  5464. null,
  5465. commentDetail.isLikes
  5466. )
  5467. "
  5468. :src="commentDetail.isLikes == true ? likes : noLikes"
  5469. alt=""
  5470. />
  5471. </div>
  5472. <div>{{ commentDetail.likesCount }}</div>
  5473. </div>
  5474. <div class="commentList">
  5475. <div class="commentImg">
  5476. <img src="../assets/icon/comment/comment.png" alt="" />
  5477. </div>
  5478. <div>{{ commentDetail.commentCount }}</div>
  5479. </div>
  5480. </div>
  5481. <div class="drawPBox" v-if="commentDetail.img">
  5482. <span>教师批注</span>
  5483. <img
  5484. :src="commentDetail.img"
  5485. alt=""
  5486. @click="previewImg(commentDetail.img)"
  5487. />
  5488. <span
  5489. class="deleteImg"
  5490. v-if="tType == 1 || tType == 4"
  5491. @click.stop="deletePicturePaint(commentDetail.wid)"
  5492. style="
  5493. font-size: 14px;
  5494. width: auto !important;
  5495. color: #b4b4b4;
  5496. top: unset;
  5497. bottom: 0;
  5498. border: none;
  5499. padding: 0;
  5500. height: auto !important;
  5501. margin: 0;
  5502. "
  5503. >删除</span
  5504. >
  5505. </div>
  5506. </div>
  5507. <div class="commentBox">
  5508. <div class="pl">评论:</div>
  5509. <div style="max-height: 200px; overflow: auto">
  5510. <div v-if="commentDetail.commentJson" style="padding: 10px 0 0 0">
  5511. <div
  5512. class="studentDetail"
  5513. style="padding-top: 10px"
  5514. v-for="(co, coIndex) in commentDetail.commentJson"
  5515. :key="coIndex"
  5516. >
  5517. <div class="tx" style="min-width: 50px">
  5518. <img src="../assets/avatar.png" alt="" />
  5519. </div>
  5520. <div class="plPerson">
  5521. <div class="plName">
  5522. <div>{{ co.commentPeople }}</div>
  5523. <div style="margin-left: 5px">
  5524. {{ co.commentTime }}
  5525. </div>
  5526. </div>
  5527. <div class="plContent">{{ co.commentText }}</div>
  5528. </div>
  5529. </div>
  5530. </div>
  5531. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  5532. </div>
  5533. </div>
  5534. <div style="margin-top: 10px">
  5535. <div class="displayBox">
  5536. <div
  5537. style="
  5538. color: #556db4;
  5539. font-size: 14px;
  5540. font-weight: bold;
  5541. padding-bottom: 10px;
  5542. "
  5543. >
  5544. 评价
  5545. </div>
  5546. <div class="easy_comment">
  5547. <div
  5548. v-for="(p, pIndex) in PlTextList"
  5549. :key="pIndex"
  5550. @click="fastText(p, 1)"
  5551. >
  5552. {{ p }}
  5553. </div>
  5554. </div>
  5555. </div>
  5556. <div>
  5557. <textarea
  5558. rows="3"
  5559. class="pj"
  5560. style="padding: 10px 5px"
  5561. cols
  5562. v-model="commentText"
  5563. placeholder="请输入对该学生的评价"
  5564. ></textarea>
  5565. </div>
  5566. </div>
  5567. <div slot="footer">
  5568. <el-button
  5569. @click="
  5570. (commentDialogVisible = false),
  5571. (commentIndexJson = {}),
  5572. videoDetail.sources && videoDetail.sources[0]
  5573. ? (videoDetail.sources[0].src = '')
  5574. : ''
  5575. "
  5576. >取 消</el-button
  5577. >
  5578. <el-button
  5579. type="primary"
  5580. @click="addComment(commentDetail.wid, userid, 2)"
  5581. >确 定</el-button
  5582. >
  5583. </div>
  5584. </el-dialog>
  5585. <el-dialog
  5586. title="查看文档"
  5587. :visible.sync="fullDialogVisible"
  5588. :append-to-body="true"
  5589. width="100%"
  5590. :before-close="handleClose"
  5591. :show-close="false"
  5592. class="dialog_diy full_diy"
  5593. :class="{ full_diy2: fulltype == 3 }"
  5594. >
  5595. <div slot="title" class="header-title">
  5596. <div style="color: #fff">查看文档</div>
  5597. <div
  5598. @click="fullDialogVisible = false"
  5599. style="
  5600. cursor: pointer;
  5601. position: absolute;
  5602. top: 20px;
  5603. right: 20px;
  5604. color: #fff;
  5605. "
  5606. >
  5607. 退出全屏
  5608. </div>
  5609. </div>
  5610. <div style="height: 100%">
  5611. <iframe
  5612. v-if="fulltype == 2"
  5613. style="width: 100%; height: 100%; border: none"
  5614. :src="fullUrl"
  5615. ></iframe>
  5616. <pdf
  5617. v-else-if="fulltype == 3"
  5618. :pdfUrl="fullUrl"
  5619. style="width: 100%; height: 100%; overflow: auto"
  5620. ></pdf>
  5621. <div
  5622. class="wheel"
  5623. v-if="fulltype == 1"
  5624. style="
  5625. box-shadow: 0 0 6px 1px #f2f2f2;
  5626. width: 100%;
  5627. background: #f1f1f1;
  5628. "
  5629. >
  5630. <div class="title" style="width: 100%; box-sizing: border-box">
  5631. 查看文档
  5632. </div>
  5633. <el-form class="textBox" style="height: 90%">
  5634. <el-form-item class="textTitle">
  5635. <div style="font-size: 22px; max-height: 100px; overflow: auto">
  5636. {{ fullUrl.name }}
  5637. </div>
  5638. </el-form-item>
  5639. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  5640. <div
  5641. v-html="fullUrl.url"
  5642. class="textContent"
  5643. style="height: auto"
  5644. ></div>
  5645. </el-form>
  5646. </div>
  5647. </div>
  5648. <!-- <div slot="footer">
  5649. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  5650. </div> -->
  5651. </el-dialog>
  5652. <el-dialog
  5653. title="个人评价"
  5654. :visible.sync="studentEvalDialogVisible"
  5655. :append-to-body="true"
  5656. width="800px"
  5657. :before-close="handleClose"
  5658. class="dialog_diy"
  5659. >
  5660. <div class="evalCss">
  5661. <div class="nav">请选择星星进行评分</div>
  5662. <div class="middleBox" v-if="eScore.eStar">
  5663. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  5664. <div class="nameAndrate">
  5665. <div>{{ e.value }}</div>
  5666. <el-rate
  5667. v-model="eScore.eStar[eIndex]"
  5668. :disabled="isStar"
  5669. ></el-rate>
  5670. </div>
  5671. <div v-if="e.detail">{{ e.detail }}</div>
  5672. </div>
  5673. <div class="easy_comment" v-if="isStar == false">
  5674. <div
  5675. v-for="(p, pIndex) in PlTextList"
  5676. :key="pIndex"
  5677. @click="fastText(p, 2)"
  5678. >
  5679. {{ p }}
  5680. </div>
  5681. </div>
  5682. <div class="bz">
  5683. <textarea
  5684. :disabled="isStar"
  5685. rows="4"
  5686. class="pj"
  5687. style="
  5688. padding: 10px 5px;
  5689. width: 70%;
  5690. background: #f7f6f9;
  5691. font-size: 14px;
  5692. text-indent: 10px;
  5693. "
  5694. cols
  5695. v-model="eScore.eBzText"
  5696. placeholder="请输入评价内容..."
  5697. ></textarea>
  5698. </div>
  5699. </div>
  5700. </div>
  5701. <div slot="footer">
  5702. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  5703. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  5704. >确 定</el-button
  5705. >
  5706. </div>
  5707. </el-dialog>
  5708. <el-dialog
  5709. title="选择填空"
  5710. :visible.sync="dialogVisibleSelect"
  5711. :append-to-body="true"
  5712. width="90%"
  5713. :before-close="handleClose"
  5714. class="dialog_diy dialog_diy3"
  5715. >
  5716. <div v-if="selectJson">
  5717. <div class="select_box2">
  5718. <div class="select_box2_title">
  5719. <div>选择填空</div>
  5720. <div>请选择对应的答案进行答题!</div>
  5721. </div>
  5722. <div class="select_box2_box">
  5723. <div class="select_box2_img">
  5724. <img
  5725. :src="selectJson.url"
  5726. @click="previewImg(selectJson.url)"
  5727. alt=""
  5728. />
  5729. </div>
  5730. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  5731. <div style="padding-top: 15px">
  5732. <div class="select_answer_title" v-if="isSelect">
  5733. {{ selectAnswer.stu }}
  5734. </div>
  5735. <div class="select_answer_title" v-else>
  5736. 根据题目选择对应答案
  5737. </div>
  5738. <div
  5739. class="select_box2_answer_box"
  5740. v-for="(item2, checkIndex) in selectJson.select"
  5741. :key="checkIndex"
  5742. >
  5743. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  5744. <el-select
  5745. :disabled="isSelect"
  5746. v-model="selectAnswer.answer[checkIndex]"
  5747. placeholder="请选择正确答案"
  5748. >
  5749. <el-option
  5750. v-for="(e, eIndex) in selectJson.select"
  5751. :key="eIndex"
  5752. :label="e"
  5753. :value="eIndex"
  5754. >
  5755. </el-option>
  5756. </el-select>
  5757. </div>
  5758. </div>
  5759. <div
  5760. class="rightAnswerCss"
  5761. v-if="isSelect && (tType == 1 || tType == 4)"
  5762. >
  5763. <div
  5764. v-for="(a, aIndex) in selectJson.answer"
  5765. :key="aIndex"
  5766. class="rightAnswer"
  5767. >
  5768. <div
  5769. v-if="selectAnswer.answer[aIndex] === a"
  5770. style="color: #767de1"
  5771. >
  5772. 回答正确
  5773. </div>
  5774. <div v-else>回答错误</div>
  5775. <div
  5776. style="margin-left: 10px"
  5777. v-if="selectAnswer.answer[aIndex] !== a"
  5778. >
  5779. 正确答案:
  5780. </div>
  5781. <div
  5782. :class="
  5783. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  5784. "
  5785. >
  5786. {{ selectJson.select[a] }}
  5787. </div>
  5788. </div>
  5789. </div>
  5790. </div>
  5791. <div class="upAnswerCss">
  5792. <el-button
  5793. type="primary"
  5794. @click="addSelectAnswer"
  5795. v-if="!isSelect"
  5796. >提交答案</el-button
  5797. >
  5798. </div>
  5799. </div>
  5800. </div>
  5801. </div>
  5802. </el-dialog>
  5803. <el-dialog
  5804. title="教师评分"
  5805. :visible.sync="dialogVisibleScore"
  5806. :append-to-body="true"
  5807. width="800px"
  5808. :before-close="handleClose"
  5809. class="dialog_diy"
  5810. >
  5811. <div>
  5812. <div class="studentDetail">
  5813. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  5814. <div class="nameAndTime">
  5815. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  5816. <div>{{ commentDetail.time }}</div>
  5817. </div>
  5818. </div>
  5819. <div
  5820. class="worksAnswer"
  5821. v-if="commentDetail.works && commentDetail.type == 2"
  5822. >
  5823. {{ JSON.parse(commentDetail.works)[0].answer }}
  5824. </div>
  5825. <div
  5826. class="worksAnswer"
  5827. v-if="commentDetail.works && commentDetail.type == 1"
  5828. >
  5829. <pdf
  5830. v-if="showPDF"
  5831. :pdfUrl="pptImgUrl"
  5832. style="width: 100%; height: 520px; overflow: auto"
  5833. :class="{ fullStyle: full }"
  5834. ></pdf>
  5835. <iframe
  5836. v-else
  5837. :src="pptImgUrl"
  5838. frameborder="0"
  5839. width="100%"
  5840. height="600"
  5841. :class="{ fullStyle: full }"
  5842. ></iframe>
  5843. </div>
  5844. <div
  5845. class="worksAnswer"
  5846. v-if="commentDetail.works && commentDetail.type == 0"
  5847. >
  5848. <img
  5849. :src="commentDetail.works"
  5850. alt=""
  5851. @click="previewImg(commentDetail.works)"
  5852. />
  5853. </div>
  5854. <div
  5855. class="worksAnswer"
  5856. v-if="commentDetail.works && commentDetail.type == 3"
  5857. >
  5858. <video-player
  5859. class="video-player vjs-custom-skin"
  5860. :playsinline="true"
  5861. :options="videoDetail"
  5862. @play="onPlayerPlay($event)"
  5863. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  5864. ></video-player>
  5865. </div>
  5866. <div
  5867. class="worksAnswer codeFileBox"
  5868. v-if="commentDetail.works && commentDetail.type == 12"
  5869. @click="downloadFile(commentDetail.works)"
  5870. >
  5871. <img src="../assets/icon/codeFile.png" />
  5872. <div>点击下载文件</div>
  5873. </div>
  5874. <div class="scoreBox">
  5875. <span class="t">请输入分数</span>
  5876. <el-input-number
  5877. :disabled="courseDetail.userid != userid"
  5878. v-model="wScore"
  5879. :controls="false"
  5880. :min="0"
  5881. :max="100"
  5882. ></el-input-number>
  5883. </div>
  5884. <div class="scoreDetailBox">
  5885. <span class="t">评分评论</span>
  5886. <el-input
  5887. type="textarea"
  5888. :rows="5"
  5889. :disabled="courseDetail.userid != userid"
  5890. resize="none"
  5891. v-model="scoreDetail"
  5892. placeholder="请输入对学生的评价"
  5893. >
  5894. </el-input>
  5895. </div>
  5896. </div>
  5897. <span slot="footer" class="dialog-footer">
  5898. <el-button
  5899. @click="
  5900. (dialogVisibleScore = false),
  5901. (commentIndexJson = {}),
  5902. videoDetail.sources && videoDetail.sources[0]
  5903. ? (videoDetail.sources[0].src = '')
  5904. : ''
  5905. "
  5906. >取 消</el-button
  5907. >
  5908. <el-button
  5909. type="primary"
  5910. v-if="courseDetail.userid == userid"
  5911. @click="scoreWork(commentDetail.wid)"
  5912. >确 定
  5913. </el-button>
  5914. </span>
  5915. </el-dialog>
  5916. <el-dialog
  5917. title="连词成句"
  5918. :visible.sync="dialogVisibleSentence"
  5919. :append-to-body="true"
  5920. width="1000px"
  5921. :before-close="handleClose"
  5922. class="dialog_diy dialog_diy3"
  5923. >
  5924. <div>
  5925. <div class="sentenBox">
  5926. <div
  5927. v-for="(st, stIndex) in sentenceList"
  5928. :key="stIndex"
  5929. style="padding-bottom: 20px"
  5930. >
  5931. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  5932. <div class="cardList" v-if="st.chooseSenList">
  5933. <div class="cardBox">
  5934. <div
  5935. v-for="(r, rIndex) in st.chooseSenList"
  5936. :key="rIndex"
  5937. @click="returnCard(r, stIndex, rIndex)"
  5938. >
  5939. <el-tooltip
  5940. class="item"
  5941. effect="light"
  5942. :content="r"
  5943. placement="top"
  5944. v-if="r != '' && r != undefined"
  5945. >
  5946. <div
  5947. :class="{
  5948. isCard: r,
  5949. isChooseCard: r == '' || r == undefined,
  5950. }"
  5951. >
  5952. <div>{{ r }}</div>
  5953. </div>
  5954. </el-tooltip>
  5955. <div
  5956. :class="{
  5957. isCard: r,
  5958. isChooseCard: r == '' || r == undefined,
  5959. }"
  5960. v-else
  5961. >
  5962. <div>{{ r }}</div>
  5963. </div>
  5964. </div>
  5965. </div>
  5966. </div>
  5967. <div class="cardList" v-if="st.addChangeSen">
  5968. <div class="cardBox">
  5969. <div
  5970. v-for="(s, sIndex) in st.addChangeSen"
  5971. :key="sIndex"
  5972. @click="setRightAnswer(s, stIndex, sIndex)"
  5973. >
  5974. <el-tooltip
  5975. class="item"
  5976. effect="light"
  5977. :content="s"
  5978. placement="top"
  5979. v-if="s != '' && s != undefined"
  5980. >
  5981. <div
  5982. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  5983. >
  5984. <div>{{ s }}</div>
  5985. </div>
  5986. </el-tooltip>
  5987. <div
  5988. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  5989. v-else
  5990. >
  5991. <div>{{ s }}</div>
  5992. </div>
  5993. </div>
  5994. </div>
  5995. </div>
  5996. </div>
  5997. </div>
  5998. </div>
  5999. <span slot="footer" class="dialog-footer">
  6000. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  6001. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  6002. </span>
  6003. </el-dialog>
  6004. <el-dialog
  6005. title="连词成句"
  6006. :visible.sync="dialogVisibleSentence1"
  6007. :append-to-body="true"
  6008. width="1000px"
  6009. :before-close="handleClose"
  6010. class="dialog_diy dialog_diy3"
  6011. >
  6012. <div>
  6013. <div class="sentenBox">
  6014. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  6015. {{ sentenceList1.stuName }}的作业
  6016. </div>
  6017. <div
  6018. v-for="(st, stIndex) in sentenceList1"
  6019. :key="stIndex"
  6020. style="padding-bottom: 20px"
  6021. >
  6022. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  6023. 第{{ stIndex + 1 }}题
  6024. </div>
  6025. <div class="isWrong">
  6026. <div class="cardList1" v-if="st.chooseSenList">
  6027. <div class="cardBox">
  6028. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  6029. <el-tooltip
  6030. class="item"
  6031. effect="light"
  6032. :content="s"
  6033. placement="top"
  6034. >
  6035. <div class="isCard">
  6036. <div>{{ s }}</div>
  6037. </div>
  6038. </el-tooltip>
  6039. </div>
  6040. </div>
  6041. <div class="cardAnswerBox">
  6042. 组成句子:{{ st.chooseSenList.join(" ") }}
  6043. </div>
  6044. </div>
  6045. <div v-if="tType == 2" class="isTj">
  6046. <div class="isTjImg">
  6047. <img src="../assets/icon/conSentences/right.png" alt="" />
  6048. </div>
  6049. <div>已提交</div>
  6050. </div>
  6051. <div
  6052. class="answerRight isTj"
  6053. v-if="
  6054. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  6055. (tType == 1 || tType == 4)
  6056. "
  6057. >
  6058. <div class="isTjImg">
  6059. <img src="../assets/icon/conSentences/right.png" alt="" />
  6060. </div>
  6061. <div>回答正确</div>
  6062. </div>
  6063. <div
  6064. class="answerRight isTj"
  6065. v-if="
  6066. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  6067. (tType == 1 || tType == 4)
  6068. "
  6069. >
  6070. <div class="isTjImg">
  6071. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  6072. </div>
  6073. <div>回答错误</div>
  6074. </div>
  6075. </div>
  6076. <div
  6077. v-if="
  6078. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  6079. (tType == 1 || tType == 4)
  6080. "
  6081. >
  6082. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  6083. <div
  6084. class="cardList"
  6085. v-if="st.rightAnswer"
  6086. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  6087. >
  6088. <div class="cardBox">
  6089. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  6090. <el-tooltip
  6091. class="item"
  6092. effect="light"
  6093. :content="r"
  6094. placement="top"
  6095. >
  6096. <div class="isCard1">
  6097. <div>{{ r }}</div>
  6098. </div>
  6099. </el-tooltip>
  6100. </div>
  6101. </div>
  6102. <div class="cardAnswerBox">
  6103. 组成句子:{{ st.rightAnswer.join(" ") }}
  6104. </div>
  6105. </div>
  6106. </div>
  6107. </div>
  6108. </div>
  6109. </div>
  6110. <span slot="footer" class="dialog-footer">
  6111. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  6112. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  6113. >确 定</el-button
  6114. >
  6115. </span>
  6116. </el-dialog>
  6117. <el-dialog
  6118. title="教师提交作业"
  6119. :visible.sync="dialogVisibleWorks"
  6120. :append-to-body="true"
  6121. width="500px"
  6122. :before-close="handleClose"
  6123. class="dialog_change"
  6124. >
  6125. <div class="marginT">
  6126. <div class="w_name">
  6127. 学生姓名:<span>{{ sStudent.student }}</span>
  6128. </div>
  6129. <div>上传文件</div>
  6130. <div
  6131. class="chapter_add"
  6132. @click="addImg($event)"
  6133. v-if="studyJuri[0].cover.length == 0"
  6134. >
  6135. <div class="up_photo">
  6136. <img src="../assets/uploadImg2.png" alt />
  6137. </div>
  6138. <input
  6139. type="file"
  6140. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  6141. capture="camera"
  6142. style="display: none"
  6143. @change="beforeUpload1($event, 1)"
  6144. />
  6145. </div>
  6146. <div
  6147. class="chapter_add"
  6148. style="
  6149. display: flex;
  6150. width: 100%;
  6151. flex-direction: row;
  6152. flex-wrap: wrap;
  6153. justify-content: flex-start;
  6154. padding: 15px 0;
  6155. "
  6156. v-if="studyJuri[0].cover.length > 0"
  6157. >
  6158. <div class="upCover">
  6159. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  6160. <img :src="word" alt v-else-if="fileType == 1" />
  6161. <img :src="video" alt v-else />
  6162. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  6163. <div class="deleteWord" @click="clean(1)">
  6164. <img src="../assets/icon/deleteWorks.png" alt />
  6165. </div>
  6166. </div>
  6167. </div>
  6168. </div>
  6169. <div
  6170. class="upload_send"
  6171. @click="addCourseWorksTeacher(taskCount)"
  6172. v-if="!proVisible"
  6173. >
  6174. 提交
  6175. </div>
  6176. </el-dialog>
  6177. <ImgDraw
  6178. :drawShow="drawShow"
  6179. @closeDraw="closeDraw"
  6180. @addImgDraw="addImgDraw"
  6181. :bg="bg"
  6182. ></ImgDraw>
  6183. <el-dialog
  6184. title="表格"
  6185. :visible.sync="dialogVisibleTable"
  6186. :append-to-body="true"
  6187. width="95%"
  6188. :before-close="handleClose"
  6189. class="dialog_diy"
  6190. >
  6191. <el-form>
  6192. <div>表格内容</div>
  6193. <Table v-model="tableJson.text" @change="change"></Table>
  6194. </el-form>
  6195. <span slot="footer" class="dialog-footer">
  6196. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  6197. <el-button type="primary" @click="addTableWorks">确定</el-button>
  6198. </span>
  6199. </el-dialog>
  6200. <el-dialog
  6201. title="表格"
  6202. :visible.sync="dialogVisibleTable2"
  6203. :append-to-body="true"
  6204. width="95%"
  6205. :before-close="handleClose"
  6206. class="dialog_diy"
  6207. >
  6208. <el-form>
  6209. <div class="cont" v-html="tableJson.text"></div>
  6210. </el-form>
  6211. <span slot="footer" class="dialog-footer">
  6212. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  6213. </span>
  6214. </el-dialog>
  6215. <el-dialog
  6216. title="分组设置"
  6217. :visible.sync="dialogVisibleGroup"
  6218. :append-to-body="true"
  6219. width="95%"
  6220. :before-close="handleClose"
  6221. class="dialog_diy"
  6222. >
  6223. <div v-if="dialogVisibleGroup">
  6224. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  6225. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  6226. 提示:需要锁定位置,才能点击头像修改座位。
  6227. </div>
  6228. <div
  6229. type="primary"
  6230. v-if="groupJson.islock == 1"
  6231. class="returnBtn"
  6232. style="background-color: #225bc7"
  6233. @click="lockChair"
  6234. >
  6235. 锁定位置
  6236. </div>
  6237. <div
  6238. type="primary"
  6239. v-else
  6240. class="returnBtn"
  6241. style="background-color: #225bc7"
  6242. @click="lockChair"
  6243. >
  6244. 解锁位置
  6245. </div>
  6246. <div
  6247. type="primary"
  6248. @click="updateGroup"
  6249. class="returnBtn"
  6250. style="background-color: #225bc7"
  6251. >
  6252. 分组设置
  6253. </div>
  6254. </div>
  6255. <div>
  6256. <div
  6257. class="g_d_box"
  6258. v-if="groupJson.group && groupStudent[toolindex]"
  6259. >
  6260. <div
  6261. class="g_d_group"
  6262. v-for="(g, gindex) in groupJson.group"
  6263. :key="gindex"
  6264. >
  6265. <div class="g_d_group_chair">
  6266. <div v-if="groupJson.number > 1">
  6267. <span
  6268. :class="{
  6269. isChair:
  6270. groupStudent[toolindex][gindex] &&
  6271. groupStudent[toolindex][gindex][0],
  6272. updateChair:
  6273. courseDetail.userid == userid &&
  6274. groupStudent[toolindex][gindex] &&
  6275. groupStudent[toolindex][gindex][0] &&
  6276. groupJson.islock == 2,
  6277. }"
  6278. ><span
  6279. class="updateChairBtn"
  6280. @click="
  6281. updateGroupChair(
  6282. groupStudent[toolindex][gindex] &&
  6283. groupStudent[toolindex][gindex][0]
  6284. )
  6285. "
  6286. >修改</span
  6287. ></span
  6288. ><span>{{
  6289. groupStudent[toolindex][gindex] &&
  6290. groupStudent[toolindex][gindex][0]
  6291. ? groupStudent[toolindex][gindex] &&
  6292. groupStudent[toolindex][gindex][0].name
  6293. : "空位置"
  6294. }}</span>
  6295. </div>
  6296. <div v-if="groupJson.number > 4">
  6297. <span
  6298. :class="{
  6299. isChair:
  6300. groupStudent[toolindex][gindex] &&
  6301. groupStudent[toolindex][gindex][4],
  6302. updateChair:
  6303. courseDetail.userid == userid &&
  6304. groupStudent[toolindex][gindex] &&
  6305. groupStudent[toolindex][gindex][4] &&
  6306. groupJson.islock == 2,
  6307. }"
  6308. ><span
  6309. class="updateChairBtn"
  6310. @click="
  6311. updateGroupChair(
  6312. groupStudent[toolindex][gindex] &&
  6313. groupStudent[toolindex][gindex][4]
  6314. )
  6315. "
  6316. >修改</span
  6317. ></span
  6318. ><span>{{
  6319. groupStudent[toolindex][gindex] &&
  6320. groupStudent[toolindex][gindex][4]
  6321. ? groupStudent[toolindex][gindex] &&
  6322. groupStudent[toolindex][gindex][4].name
  6323. : "空位置"
  6324. }}</span>
  6325. </div>
  6326. <div v-if="groupJson.number > 8">
  6327. <span
  6328. :class="{
  6329. isChair:
  6330. groupStudent[toolindex][gindex] &&
  6331. groupStudent[toolindex][gindex][8],
  6332. updateChair:
  6333. courseDetail.userid == userid &&
  6334. groupStudent[toolindex][gindex] &&
  6335. groupStudent[toolindex][gindex][8] &&
  6336. groupJson.islock == 2,
  6337. }"
  6338. ><span
  6339. class="updateChairBtn"
  6340. @click="
  6341. updateGroupChair(
  6342. groupStudent[toolindex][gindex] &&
  6343. groupStudent[toolindex][gindex][8]
  6344. )
  6345. "
  6346. >修改</span
  6347. ></span
  6348. ><span>{{
  6349. groupStudent[toolindex][gindex] &&
  6350. groupStudent[toolindex][gindex][8]
  6351. ? groupStudent[toolindex][gindex] &&
  6352. groupStudent[toolindex][gindex][8].name
  6353. : "空位置"
  6354. }}</span>
  6355. </div>
  6356. </div>
  6357. <div class="g_d_group_tableBox">
  6358. <div class="g_d_group_chair2">
  6359. <div v-if="groupJson.number > 2">
  6360. <span
  6361. :class="{
  6362. isChair:
  6363. groupStudent[toolindex][gindex] &&
  6364. groupStudent[toolindex][gindex][2],
  6365. updateChair:
  6366. courseDetail.userid == userid &&
  6367. groupStudent[toolindex][gindex] &&
  6368. groupStudent[toolindex][gindex][2] &&
  6369. groupJson.islock == 2,
  6370. }"
  6371. ><span
  6372. class="updateChairBtn"
  6373. @click="
  6374. updateGroupChair(
  6375. groupStudent[toolindex][gindex] &&
  6376. groupStudent[toolindex][gindex][2]
  6377. )
  6378. "
  6379. >修改</span
  6380. ></span
  6381. ><span>{{
  6382. groupStudent[toolindex][gindex] &&
  6383. groupStudent[toolindex][gindex][2]
  6384. ? groupStudent[toolindex][gindex] &&
  6385. groupStudent[toolindex][gindex][2].name
  6386. : "空位置"
  6387. }}</span>
  6388. </div>
  6389. <div v-if="groupJson.number > 6">
  6390. <span
  6391. :class="{
  6392. isChair:
  6393. groupStudent[toolindex][gindex] &&
  6394. groupStudent[toolindex][gindex][6],
  6395. updateChair:
  6396. courseDetail.userid == userid &&
  6397. groupStudent[toolindex][gindex] &&
  6398. groupStudent[toolindex][gindex][6] &&
  6399. groupJson.islock == 2,
  6400. }"
  6401. ><span
  6402. class="updateChairBtn"
  6403. @click="
  6404. updateGroupChair(
  6405. groupStudent[toolindex][gindex] &&
  6406. groupStudent[toolindex][gindex][6]
  6407. )
  6408. "
  6409. >修改</span
  6410. ></span
  6411. ><span>{{
  6412. groupStudent[toolindex][gindex] &&
  6413. groupStudent[toolindex][gindex][6]
  6414. ? groupStudent[toolindex][gindex] &&
  6415. groupStudent[toolindex][gindex][6].name
  6416. : "空位置"
  6417. }}</span>
  6418. </div>
  6419. </div>
  6420. <div class="g_d_group_table">
  6421. <div>
  6422. {{ g.name }}
  6423. </div>
  6424. <div>
  6425. <div
  6426. v-if="
  6427. courseDetail.userid == userid && groupJson.islock == 2
  6428. "
  6429. @click="deleteGroupChair(gindex)"
  6430. >
  6431. 移除组员
  6432. </div>
  6433. <div
  6434. @click="selectGroup(gindex)"
  6435. v-else-if="
  6436. groupStudentUid[toolindex] &&
  6437. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  6438. "
  6439. >
  6440. 加入分组
  6441. </div>
  6442. <div
  6443. @click="
  6444. exitGroup(
  6445. groupStudent[toolindex][gindex] &&
  6446. groupStudent[toolindex][gindex][
  6447. groupStudentUid[toolindex][gindex].indexOf(userid)
  6448. ].id
  6449. )
  6450. "
  6451. v-else-if="
  6452. groupStudentUid[toolindex] &&
  6453. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  6454. "
  6455. >
  6456. 退出分组
  6457. </div>
  6458. </div>
  6459. </div>
  6460. <div class="g_d_group_chair2">
  6461. <div v-if="groupJson.number > 3">
  6462. <span
  6463. :class="{
  6464. isChair:
  6465. groupStudent[toolindex][gindex] &&
  6466. groupStudent[toolindex][gindex][3],
  6467. updateChair:
  6468. courseDetail.userid == userid &&
  6469. groupStudent[toolindex][gindex] &&
  6470. groupStudent[toolindex][gindex][3] &&
  6471. groupJson.islock == 2,
  6472. }"
  6473. ><span
  6474. class="updateChairBtn"
  6475. @click="
  6476. updateGroupChair(
  6477. groupStudent[toolindex][gindex] &&
  6478. groupStudent[toolindex][gindex][3]
  6479. )
  6480. "
  6481. >修改</span
  6482. ></span
  6483. ><span>{{
  6484. groupStudent[toolindex][gindex] &&
  6485. groupStudent[toolindex][gindex][3]
  6486. ? groupStudent[toolindex][gindex] &&
  6487. groupStudent[toolindex][gindex][3].name
  6488. : "空位置"
  6489. }}</span>
  6490. </div>
  6491. <div v-if="groupJson.number > 7">
  6492. <span
  6493. :class="{
  6494. isChair:
  6495. groupStudent[toolindex][gindex] &&
  6496. groupStudent[toolindex][gindex][7],
  6497. updateChair:
  6498. courseDetail.userid == userid &&
  6499. groupStudent[toolindex][gindex] &&
  6500. groupStudent[toolindex][gindex][7] &&
  6501. groupJson.islock == 2,
  6502. }"
  6503. ><span
  6504. class="updateChairBtn"
  6505. @click="
  6506. updateGroupChair(
  6507. groupStudent[toolindex][gindex] &&
  6508. groupStudent[toolindex][gindex][7]
  6509. )
  6510. "
  6511. >修改</span
  6512. ></span
  6513. ><span>{{
  6514. groupStudent[toolindex][gindex] &&
  6515. groupStudent[toolindex][gindex][7]
  6516. ? groupStudent[toolindex][gindex] &&
  6517. groupStudent[toolindex][gindex][7].name
  6518. : "空位置"
  6519. }}</span>
  6520. </div>
  6521. </div>
  6522. </div>
  6523. <div class="g_d_group_chair">
  6524. <div v-if="groupJson.number > 1">
  6525. <span
  6526. :class="{
  6527. isChair:
  6528. groupStudent[toolindex][gindex] &&
  6529. groupStudent[toolindex][gindex][1],
  6530. updateChair:
  6531. courseDetail.userid == userid &&
  6532. groupStudent[toolindex][gindex] &&
  6533. groupStudent[toolindex][gindex][1] &&
  6534. groupJson.islock == 2,
  6535. }"
  6536. ><span
  6537. class="updateChairBtn"
  6538. @click="
  6539. updateGroupChair(
  6540. groupStudent[toolindex][gindex] &&
  6541. groupStudent[toolindex][gindex][1]
  6542. )
  6543. "
  6544. >修改</span
  6545. ></span
  6546. ><span>{{
  6547. groupStudent[toolindex][gindex] &&
  6548. groupStudent[toolindex][gindex][1]
  6549. ? groupStudent[toolindex][gindex] &&
  6550. groupStudent[toolindex][gindex][1].name
  6551. : "空位置"
  6552. }}</span>
  6553. </div>
  6554. <div v-if="groupJson.number > 5">
  6555. <span
  6556. :class="{
  6557. isChair:
  6558. groupStudent[toolindex][gindex] &&
  6559. groupStudent[toolindex][gindex][5],
  6560. updateChair:
  6561. courseDetail.userid == userid &&
  6562. groupStudent[toolindex][gindex] &&
  6563. groupStudent[toolindex][gindex][5] &&
  6564. groupJson.islock == 2,
  6565. }"
  6566. ><span
  6567. class="updateChairBtn"
  6568. @click="
  6569. updateGroupChair(
  6570. groupStudent[toolindex][gindex] &&
  6571. groupStudent[toolindex][gindex][5]
  6572. )
  6573. "
  6574. >修改</span
  6575. ></span
  6576. ><span>{{
  6577. groupStudent[toolindex][gindex] &&
  6578. groupStudent[toolindex][gindex][5]
  6579. ? groupStudent[toolindex][gindex] &&
  6580. groupStudent[toolindex][gindex][5].name
  6581. : "空位置"
  6582. }}</span>
  6583. </div>
  6584. <div v-if="groupJson.number > 9">
  6585. <span
  6586. :class="{
  6587. isChair:
  6588. groupStudent[toolindex][gindex] &&
  6589. groupStudent[toolindex][gindex][9],
  6590. updateChair:
  6591. courseDetail.userid == userid &&
  6592. groupStudent[toolindex][gindex] &&
  6593. groupStudent[toolindex][gindex][9] &&
  6594. groupJson.islock == 2,
  6595. }"
  6596. ><span
  6597. class="updateChairBtn"
  6598. @click="
  6599. updateGroupChair(
  6600. groupStudent[toolindex][gindex] &&
  6601. groupStudent[toolindex][gindex][9]
  6602. )
  6603. "
  6604. >修改</span
  6605. ></span
  6606. ><span>{{
  6607. groupStudent[toolindex][gindex] &&
  6608. groupStudent[toolindex][gindex][9]
  6609. ? groupStudent[toolindex][gindex] &&
  6610. groupStudent[toolindex][gindex][9].name
  6611. : "空位置"
  6612. }}</span>
  6613. </div>
  6614. </div>
  6615. </div>
  6616. </div>
  6617. </div>
  6618. </div>
  6619. <span slot="footer" class="dialog-footer">
  6620. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  6621. </span>
  6622. </el-dialog>
  6623. <el-dialog
  6624. title="分组设置"
  6625. :visible.sync="dialogVisibleGroup2"
  6626. :append-to-body="true"
  6627. width="650px"
  6628. :before-close="handleClose"
  6629. class="dialog_diy"
  6630. >
  6631. <div class="groupBox">
  6632. <div v-if="groupJson2.group" class="groupContent">
  6633. <div class="groupTitle">请设置小组数量</div>
  6634. <div
  6635. v-for="(item, index) in groupJson2.group"
  6636. :key="index"
  6637. class="groupName"
  6638. >
  6639. <span class="groupn">组{{ index + 1 }}名称:</span>
  6640. <el-input
  6641. v-model="item.name"
  6642. placeholder="请输入名称..."
  6643. style="width: 250px"
  6644. ></el-input>
  6645. <!-- <div class="groupBtn">
  6646. <el-button type="primary" size="small" @click="addGroup(index)">
  6647. 添加</el-button>
  6648. <el-button type="primary" size="small" @click="deleteGroup(index)"
  6649. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  6650. </div> -->
  6651. </div>
  6652. </div>
  6653. <div class="groupContent">
  6654. <div class="groupTitle">请设置每组人数数量</div>
  6655. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  6656. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  6657. <el-input-number
  6658. v-model="groupJson2.number"
  6659. :controls="false"
  6660. :min="2"
  6661. :max="10"
  6662. placeholder="2-10人以内"
  6663. ></el-input-number>
  6664. </div>
  6665. </div>
  6666. <span slot="footer" class="dialog-footer">
  6667. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  6668. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  6669. </span>
  6670. </el-dialog>
  6671. <el-dialog
  6672. title="作业提交"
  6673. :visible.sync="dialogVisibleGroupWork"
  6674. :append-to-body="true"
  6675. width="500px"
  6676. :before-close="handleClose"
  6677. class="dialog_change"
  6678. >
  6679. <div class="marginT">
  6680. <div>上传文件</div>
  6681. <div
  6682. class="chapter_add"
  6683. @click="addImg($event)"
  6684. v-if="studyJuri[0].cover.length == 0"
  6685. >
  6686. <div class="up_photo">
  6687. <img src="../assets/icon/uploadImg.png" alt />
  6688. </div>
  6689. <input
  6690. type="file"
  6691. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  6692. capture="camera"
  6693. style="display: none"
  6694. @change="beforeUpload1($event, 1)"
  6695. />
  6696. </div>
  6697. <div
  6698. class="chapter_add"
  6699. style="
  6700. display: flex;
  6701. width: 100%;
  6702. flex-direction: row;
  6703. flex-wrap: wrap;
  6704. justify-content: flex-start;
  6705. padding: 15px 0;
  6706. "
  6707. v-if="studyJuri[0].cover.length > 0"
  6708. >
  6709. <div class="upCover">
  6710. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  6711. <img :src="word" alt v-else-if="fileType == 1" />
  6712. <img :src="video" alt v-else />
  6713. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  6714. <div class="deleteWord" @click="clean(1)">
  6715. <img src="../assets/icon/deleteWorks.png" alt />
  6716. </div>
  6717. </div>
  6718. </div>
  6719. </div>
  6720. <div
  6721. class="upload_send"
  6722. @click="addCourseWorks2(taskCount)"
  6723. v-if="!proVisible"
  6724. >
  6725. 提交
  6726. </div>
  6727. </el-dialog>
  6728. <el-dialog
  6729. title="修改分组"
  6730. :visible.sync="dialogVisibleUpdateGroup"
  6731. :append-to-body="true"
  6732. width="350px"
  6733. :before-close="handleClose"
  6734. class="dialog_diy"
  6735. >
  6736. <div>
  6737. <h2>
  6738. {{ this.updateGroupUser.name }}
  6739. </h2>
  6740. <div style="color: rgb(171 171 171); margin-top: 10px">
  6741. 请选择要进入的分组
  6742. </div>
  6743. <el-radio-group v-model="checkChair">
  6744. <el-radio
  6745. style="display: block; margin-top: 20px"
  6746. v-for="(item, index) in updateGroupArray"
  6747. :label="item.label"
  6748. :key="index"
  6749. >{{ item.name }}</el-radio
  6750. >
  6751. </el-radio-group>
  6752. </div>
  6753. <span slot="footer" class="dialog-footer">
  6754. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  6755. <el-button type="primary" @click="updateChair">确定</el-button>
  6756. </span>
  6757. </el-dialog>
  6758. <el-dialog
  6759. title="移除组员"
  6760. :visible.sync="dialogVisibleDeleteGroup"
  6761. :append-to-body="true"
  6762. width="350px"
  6763. :before-close="handleClose"
  6764. class="dialog_diy"
  6765. >
  6766. <div>
  6767. <h2>
  6768. {{ this.deleteGroupArray.name }}
  6769. </h2>
  6770. <div style="color: rgb(171 171 171); margin-top: 10px">
  6771. 请选择要删除的组员
  6772. </div>
  6773. <el-checkbox-group v-model="checkDeleteGroup">
  6774. <el-checkbox
  6775. style="display: block; margin-top: 20px"
  6776. v-for="(item, index) in deleteGroupUser"
  6777. :label="item.userid"
  6778. :key="index"
  6779. >{{ item.name }}</el-checkbox
  6780. >
  6781. </el-checkbox-group>
  6782. </div>
  6783. <span slot="footer" class="dialog-footer">
  6784. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  6785. <el-button type="primary" @click="deleteChair">确定</el-button>
  6786. </span>
  6787. </el-dialog>
  6788. <el-dialog
  6789. title="批量上传"
  6790. :visible.sync="dialogVisiblePl"
  6791. :append-to-body="true"
  6792. width="700px"
  6793. :before-close="handleClose"
  6794. class="dialog_change"
  6795. >
  6796. <div class="marginT">
  6797. <div>上传文件</div>
  6798. <div class="plworkBox">
  6799. <div
  6800. class="chapter_add"
  6801. style="
  6802. display: flex;
  6803. width: 150px;
  6804. flex-direction: row;
  6805. flex-wrap: wrap;
  6806. justify-content: flex-start;
  6807. margin: 0 10px 10px 0;
  6808. "
  6809. v-for="(item, index) in plworkFile"
  6810. :key="index"
  6811. >
  6812. <div class="upCover2">
  6813. <img :src="item.url" alt v-if="item.fileType == 1" />
  6814. <img :src="word" alt v-else-if="item.fileType == 4" />
  6815. <img :src="video" alt v-else />
  6816. <!-- <span class="picName">{{ item.name }}</span> -->
  6817. <!-- <el-input
  6818. v-model="item.username"
  6819. placeholder="请输入学生名字"
  6820. style="margin-top: 10px"
  6821. ></el-input> -->
  6822. <el-select
  6823. style="margin-top: 10px"
  6824. v-model="item.username"
  6825. filterable
  6826. allow-create
  6827. placeholder="请选择学生"
  6828. >
  6829. <el-option
  6830. v-for="item1 in classJuri"
  6831. :key="item1.userid"
  6832. :label="item1.name ? item1.name : item1.username"
  6833. :value="item1.userid"
  6834. >
  6835. </el-option>
  6836. </el-select>
  6837. <div class="deleteWord" @click="clean2(index)">
  6838. <img src="../assets/icon/deleteWorks.png" alt />
  6839. </div>
  6840. </div>
  6841. </div>
  6842. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  6843. <div class="up_photo2">
  6844. <img src="../assets/icon/plwork.png" alt />
  6845. <span>点击批量上传文件</span>
  6846. </div>
  6847. <input
  6848. type="file"
  6849. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  6850. capture="camera"
  6851. multiple="multiple"
  6852. style="display: none"
  6853. @change="beforeUpload3($event, 6)"
  6854. />
  6855. </div>
  6856. </div>
  6857. </div>
  6858. <div
  6859. class="upload_send"
  6860. @click="addCourseWorksPl(taskCount)"
  6861. v-if="!proVisible2"
  6862. >
  6863. 提交
  6864. </div>
  6865. </el-dialog>
  6866. <el-dialog
  6867. title="修改名称"
  6868. :visible.sync="dialogVisibleSname"
  6869. width="500px"
  6870. :before-close="handleClose"
  6871. class="dialog_diy"
  6872. center
  6873. >
  6874. <div style="text-align: center">
  6875. <span class="tian1">名称</span>
  6876. <el-select
  6877. v-model="worksSName"
  6878. filterable
  6879. allow-create
  6880. style="width: 250px; margin: 15px 0px"
  6881. placeholder="请选择学生"
  6882. >
  6883. <el-option
  6884. v-for="item in classJuri"
  6885. :key="item.userid"
  6886. :label="item.name ? item.name : item.username"
  6887. :value="item.userid"
  6888. >
  6889. </el-option>
  6890. </el-select>
  6891. <!-- <el-input
  6892. v-model="worksSName"
  6893. style="width: 250px; margin: 15px 0px"
  6894. ></el-input> -->
  6895. </div>
  6896. <span slot="footer" class="dialog-footer">
  6897. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  6898. <el-button type="primary" @click="updateName">确 定</el-button>
  6899. </span>
  6900. </el-dialog>
  6901. </div>
  6902. </template>
  6903. <script>
  6904. import "../common/aws-sdk-2.235.1.min.js";
  6905. // import pdf from "./components/pdf3";
  6906. import pdf from "./components/vpdf";
  6907. import AskStatic from "./components/askStatic";
  6908. import AskStatic2 from "./components/askStatic2";
  6909. import AnswerData2 from "./components/answerData2";
  6910. import AnswerData from "./components/answerData";
  6911. import EditorBar from "./tools/wangEnduit.vue";
  6912. import Table from "./tools/table.vue";
  6913. import Time from "./tools/time.vue";
  6914. import Mind from "./tools/jsmind.vue";
  6915. import Sunburst from "./tools/sunburst";
  6916. import SeeBoard from "./tools/seeBoard";
  6917. import * as imageConversion from "image-conversion";
  6918. import Audio from "./components/audio.vue";
  6919. import ImgDraw from "./tools/imgDraw/imgDraw";
  6920. import { Empty } from "element-ui";
  6921. import RecordRTC from "recordrtc";
  6922. export default {
  6923. components: {
  6924. EditorBar,
  6925. Time,
  6926. pdf,
  6927. AskStatic,
  6928. AskStatic2,
  6929. Mind,
  6930. Sunburst,
  6931. SeeBoard,
  6932. AnswerData2,
  6933. AnswerData,
  6934. Audio,
  6935. ImgDraw,
  6936. Table,
  6937. },
  6938. data() {
  6939. return {
  6940. bg: null,
  6941. drawShow: false,
  6942. dialogVisible: false,
  6943. dialogVisiblePl: false,
  6944. commentDialogVisible: false,
  6945. videoVisible: false,
  6946. isStar: false,
  6947. studentEvalDialogVisible: false,
  6948. dialogVisibleSelect: false,
  6949. dialogVisibleScore: false,
  6950. dialogVisibleSentence: false,
  6951. dialogVisibleSentence1: false,
  6952. dialogVisibleWorks: false,
  6953. dialogVisibleTable: false,
  6954. dialogVisibleTable2: false,
  6955. dialogVisibleGroupWork: false,
  6956. dialogVisibleUpdateGroup: false,
  6957. dialogVisibleDeleteGroup: false,
  6958. dialogVisibleSname: false,
  6959. worksSName: "",
  6960. classJuri: [],
  6961. snameWid: "",
  6962. sStudent: {},
  6963. bzText: "",
  6964. commentDetail: [],
  6965. selectAnswer: [],
  6966. videoDetail: {},
  6967. selectJson: {},
  6968. eScore: { eBzText: "", eStar: [] },
  6969. id: this.$route.query.courseId,
  6970. userid: this.$route.query.userid,
  6971. classId: this.$route.query.cid,
  6972. // courseTypeLine: this.$route.query.type,
  6973. oid: this.$route.query.oid,
  6974. org: this.$route.query.org,
  6975. tType: this.$route.query.tType,
  6976. courseType: this.$route.query.type,
  6977. screenType: this.$route.query.screenType,
  6978. pptImgUrl: "",
  6979. pptImgUrl1: "",
  6980. commentText: "",
  6981. full: false,
  6982. sIsOpen: false,
  6983. IsLookOpen: false,
  6984. pzDialog: false,
  6985. type: 1,
  6986. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  6987. sentenceList1: [],
  6988. tableJson: [],
  6989. vedio: [],
  6990. text: [],
  6991. textList: [],
  6992. line: [],
  6993. lineList: [],
  6994. chapTools: [],
  6995. chapToolList: [],
  6996. file: [],
  6997. vedioTime: [],
  6998. upToolImg: "",
  6999. preTime: 0,
  7000. rateList: {
  7001. ca: 0,
  7002. },
  7003. rateParams: [],
  7004. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  7005. studyJuri: [
  7006. {
  7007. content: "",
  7008. cover: [],
  7009. upVedio: [],
  7010. upFile: [],
  7011. },
  7012. ],
  7013. plworkFile: [],
  7014. mr: require("../assets/vedioPic.png"),
  7015. word: require("../assets/icon/isWord.png"),
  7016. word2: require("../assets/icon/word2.png"),
  7017. video: require("../assets/icon/isVideo.png"),
  7018. noLikes: require("../assets/icon/comment/noLikes.png"),
  7019. likes: require("../assets/icon/comment/likes.png"),
  7020. scoreImg: require("../assets/score.png"),
  7021. courseDetail: {},
  7022. isSelect: false,
  7023. chapInfo: [],
  7024. chapInfoList: [],
  7025. taskCount: 0,
  7026. imgList: [],
  7027. noImgList: [],
  7028. pzList: [],
  7029. PlTextList: [
  7030. "Excellent!",
  7031. "nice!",
  7032. "很有创意!",
  7033. "还不错哦~",
  7034. "继续努力哦~",
  7035. ],
  7036. isClickNav: "",
  7037. navId: "",
  7038. playerOptions: {
  7039. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  7040. autoplay: false, //如果true,浏览器准备好时开始回放。
  7041. muted: false, // 默认情况下将会消除任何音频。
  7042. loop: false, // 导致视频一结束就重新开始。
  7043. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  7044. language: "zh-CN",
  7045. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  7046. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  7047. sources: [
  7048. {
  7049. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  7050. src: "", //url地址require("../../assets/media/aaa.mp4")
  7051. },
  7052. ],
  7053. // poster: require("../../assets/tu31.png"), //你的封面地址
  7054. // poster: dataRes.imgUrl, //你的封面地址
  7055. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  7056. controlBar: {
  7057. timeDivider: true, //当前时间和持续时间的分隔符
  7058. durationDisplay: true, //显示持续时间
  7059. remainingTimeDisplay: false, //是否显示剩余时间功能
  7060. fullscreenToggle: true, //全屏按钮
  7061. },
  7062. },
  7063. playerOptions1: {
  7064. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  7065. autoplay: false, //如果true,浏览器准备好时开始回放。
  7066. muted: false, // 默认情况下将会消除任何音频。
  7067. loop: false, // 导致视频一结束就重新开始。
  7068. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  7069. language: "zh-CN",
  7070. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  7071. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  7072. sources: [
  7073. {
  7074. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  7075. src: "", //url地址require("../../assets/media/aaa.mp4")
  7076. },
  7077. ],
  7078. // poster: require("../../assets/tu31.png"), //你的封面地址
  7079. // poster: dataRes.imgUrl, //你的封面地址
  7080. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  7081. controlBar: {
  7082. timeDivider: true, //当前时间和持续时间的分隔符
  7083. durationDisplay: true, //显示持续时间
  7084. remainingTimeDisplay: false, //是否显示剩余时间功能
  7085. fullscreenToggle: true, //全屏按钮
  7086. },
  7087. },
  7088. playerO: {},
  7089. noneBtnImg: false,
  7090. proVisible: false,
  7091. proVisible2: false,
  7092. progress: 0,
  7093. isFinishSize: 0,
  7094. isAllSize: 0,
  7095. questionAnswer: "",
  7096. answerQ: "", //问答标题
  7097. rateJson: [],
  7098. wbCount: 0,
  7099. wordCount: 0,
  7100. mindCount: 0,
  7101. askCount: 0,
  7102. noteCount: 0,
  7103. mindNetWorkCount: 0,
  7104. libraryCount: 0,
  7105. workCount: 0,
  7106. timeCount: 0,
  7107. answerCount: 0,
  7108. trainCount: 0,
  7109. evalCount: 0,
  7110. dialogImageUrl: "",
  7111. pictureDialog: false,
  7112. toolTypeList: [],
  7113. dialogVisible1: false,
  7114. dialogVisible2: false,
  7115. dialogVisible3: false,
  7116. dialogVisible6: false,
  7117. dialogVisible4: false,
  7118. isNoHomeWork: false,
  7119. dialogVisible5: false,
  7120. dialogVisibleChoice: false,
  7121. answerDialogVisible: false,
  7122. juriVisible: false,
  7123. timeDialogVisible: false,
  7124. radio: [],
  7125. isAsk: false,
  7126. askJson: {
  7127. askCount: 1,
  7128. askTitle: "",
  7129. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7130. },
  7131. testJson: {},
  7132. checkJson: [],
  7133. askList: [],
  7134. answerList: [],
  7135. navList: [],
  7136. addPzDialog: false,
  7137. pzConText: "",
  7138. worksStudent: [],
  7139. workStudent: [],
  7140. groupStudent: [],
  7141. groupStudentUid: [],
  7142. noWorksS: [],
  7143. isWorksS: [],
  7144. noWorksStudent: [],
  7145. toolindex: 0,
  7146. groupIndex: 0,
  7147. workTypeB: false,
  7148. workTypeC: false,
  7149. isAnswer: false,
  7150. timer: null,
  7151. showType: 0,
  7152. fileType: 0,
  7153. showPDF: false,
  7154. noteName: "",
  7155. evaJuri: [],
  7156. evalua: "",
  7157. eTitle: "",
  7158. eName: "",
  7159. eJson: {},
  7160. fid: "", //一级
  7161. sid: "", //二级
  7162. tid: "", //二级
  7163. typeMode: 1,
  7164. eJSONNum: 0,
  7165. Etype: 1,
  7166. data: {
  7167. meta: {
  7168. name: "example",
  7169. author: "dd@163.com",
  7170. version: "0.2",
  7171. },
  7172. format: "node_array",
  7173. data: [{ id: "root", isroot: true, topic: "" }],
  7174. },
  7175. fullDialogVisible: false,
  7176. fulltype: "",
  7177. fullUrl: "",
  7178. commentIndexJson: {},
  7179. Stbodywidth: 0,
  7180. pzType: 1,
  7181. wScore: 0,
  7182. scoreDetail: "",
  7183. videoStart: false,
  7184. recorder: null,
  7185. groupJson: {},
  7186. groupJson2: {},
  7187. dialogVisibleGroup: false,
  7188. dialogVisibleGroup2: false,
  7189. updateGroupArray: [],
  7190. updateGroupUser: {},
  7191. deleteGroupUser: [],
  7192. deleteGroupArray: {},
  7193. checkChair: "",
  7194. checkDeleteGroup: [],
  7195. };
  7196. },
  7197. methods: {
  7198. jump() {
  7199. window.parent.postMessage({ tools: "43" }, "*");
  7200. },
  7201. previewImg(url) {
  7202. this.$hevueImgPreview(url);
  7203. },
  7204. change(val) {
  7205. console.log(val);
  7206. },
  7207. goTo(path) {
  7208. this.$router.push(path);
  7209. },
  7210. handlePictureCardPreview(url) {
  7211. this.dialogImageUrl = url;
  7212. this.pictureDialog = true;
  7213. },
  7214. clean(type) {
  7215. if (type == 1) {
  7216. this.studyJuri[0].cover.splice(0, 1);
  7217. } else if (type == 2) {
  7218. this.studyJuri[0].upVedio.splice(0, 1);
  7219. } else {
  7220. this.studyJuri[0].upFile.splice(0, 1);
  7221. }
  7222. },
  7223. clean2(index) {
  7224. this.plworkFile.splice(index, 1);
  7225. },
  7226. handleClose(done) {
  7227. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  7228. this.videoDetail.sources[0].src = "";
  7229. }
  7230. this.commentIndexJson = {};
  7231. done();
  7232. },
  7233. fullTools() {
  7234. this.full = !this.full;
  7235. },
  7236. imgChange(file, fileList, type) {
  7237. if (type == 1) {
  7238. var _tmp = this.studyJuri[0].cover;
  7239. } else if (type == 2) {
  7240. var _tmp = this.studyJuri[0].upVedio;
  7241. } else {
  7242. var _tmp = this.studyJuri[0].upFile;
  7243. }
  7244. this.noneBtnImg = _tmp.length >= 1;
  7245. },
  7246. addImg(e) {
  7247. var el = e.currentTarget;
  7248. // this.$message.success('触发上传')
  7249. el.getElementsByTagName("input")[0].click();
  7250. e.target.value = "";
  7251. },
  7252. addSelectAnswer() {
  7253. let params = [
  7254. {
  7255. uid: this.userid,
  7256. cid: this.id,
  7257. stage: this.courseType,
  7258. task: this.taskCount,
  7259. tool: this.toolindex,
  7260. content: this.selectAnswer.answer,
  7261. type: 7,
  7262. },
  7263. ];
  7264. this.ajax
  7265. .post(this.$store.state.api + "addCourseWorks", params)
  7266. .then((res) => {
  7267. this.$message({
  7268. message: "提交成功",
  7269. type: "success",
  7270. });
  7271. this.dialogVisibleSelect = false;
  7272. // this.selectAnswer = {};
  7273. this.selectSWorks();
  7274. this.selectStudent();
  7275. })
  7276. .catch((err) => {
  7277. this.$message.error("提交失败");
  7278. console.error(err);
  7279. });
  7280. },
  7281. addSenWorks() {
  7282. for (var i = 0; i < this.sentenceList.length; i++) {
  7283. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  7284. if (
  7285. this.sentenceList[i].chooseSenList[j] == undefined ||
  7286. this.sentenceList[i].chooseSenList[j] == ""
  7287. ) {
  7288. this.$message.error("请将答案填写完整!");
  7289. return;
  7290. }
  7291. }
  7292. }
  7293. let params = [
  7294. {
  7295. uid: this.userid,
  7296. cid: this.id,
  7297. stage: this.courseType,
  7298. task: this.taskCount,
  7299. tool: this.toolindex,
  7300. content: JSON.stringify(this.sentenceList),
  7301. type: 9,
  7302. },
  7303. ];
  7304. this.ajax
  7305. .post(this.$store.state.api + "addCourseWorks", params)
  7306. .then((res) => {
  7307. this.$message({
  7308. message: "提交成功",
  7309. type: "success",
  7310. });
  7311. this.dialogVisibleSentence = false;
  7312. // this.selectAnswer = {};
  7313. this.selectSWorks();
  7314. this.selectStudent();
  7315. })
  7316. .catch((err) => {
  7317. this.$message.error("提交失败");
  7318. console.error(err);
  7319. });
  7320. },
  7321. addTableWorks() {
  7322. let params = [
  7323. {
  7324. uid: this.userid,
  7325. cid: this.id,
  7326. stage: this.courseType,
  7327. task: this.taskCount,
  7328. tool: this.toolindex,
  7329. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  7330. type: 10,
  7331. },
  7332. ];
  7333. this.ajax
  7334. .post(this.$store.state.api + "addCourseWorks", params)
  7335. .then((res) => {
  7336. this.$message({
  7337. message: "提交成功",
  7338. type: "success",
  7339. });
  7340. this.dialogVisibleTable = false;
  7341. // this.selectAnswer = {};
  7342. this.selectSWorks();
  7343. this.selectStudent();
  7344. })
  7345. .catch((err) => {
  7346. this.$message.error("提交失败");
  7347. console.error(err);
  7348. });
  7349. },
  7350. addCourseWorks(i) {
  7351. var typesql;
  7352. if (this.fileType === 0) {
  7353. typesql = 1;
  7354. } else if (this.fileType === 1) {
  7355. typesql = 4;
  7356. } else {
  7357. typesql = 5;
  7358. }
  7359. if (!this.studyJuri[0].cover[0].url) {
  7360. this.$message.error("请上传文件");
  7361. return;
  7362. }
  7363. let params = [
  7364. {
  7365. uid: this.userid,
  7366. cid: this.id,
  7367. stage: this.courseType,
  7368. task: i,
  7369. tool: this.toolindex,
  7370. content: this.studyJuri[0].cover[0].url,
  7371. type: typesql,
  7372. },
  7373. ];
  7374. this.ajax
  7375. .post(this.$store.state.api + "addCourseWorksR", params)
  7376. .then((res) => {
  7377. this.$message({
  7378. message: "提交成功",
  7379. type: "success",
  7380. });
  7381. this.studyJuri[0].cover = [];
  7382. this.dialogVisible = false;
  7383. this.getCourseDetail();
  7384. })
  7385. .catch((err) => {
  7386. this.$message.error("提交失败");
  7387. console.error(err);
  7388. });
  7389. },
  7390. addCourseWorksPl(i) {
  7391. let _files = this.plworkFile;
  7392. var c = 1;
  7393. for (var k = 0; k < _files.length; k++) {
  7394. if (!_files[k].username) {
  7395. c = 2;
  7396. }
  7397. }
  7398. if (c == 2) {
  7399. this.$message.error("请填写学生姓名");
  7400. return;
  7401. }
  7402. let params = [
  7403. {
  7404. ateacher: this.userid,
  7405. cid: this.id,
  7406. stage: this.courseType,
  7407. task: i,
  7408. tool: this.toolindex,
  7409. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  7410. },
  7411. ];
  7412. this.ajax
  7413. .post(this.$store.state.api + "addCourseWorksPl", params)
  7414. .then((res) => {
  7415. this.$message({
  7416. message: "提交成功",
  7417. type: "success",
  7418. });
  7419. this.plworkFile = [];
  7420. this.dialogVisiblePl = false;
  7421. this.getCourseDetail();
  7422. })
  7423. .catch((err) => {
  7424. this.$message.error("提交失败");
  7425. console.error(err);
  7426. });
  7427. },
  7428. addCourseWorks2(i) {
  7429. var typesql;
  7430. if (this.fileType === 0) {
  7431. typesql = 0;
  7432. } else if (this.fileType === 1) {
  7433. typesql = 1;
  7434. } else {
  7435. typesql = 3;
  7436. }
  7437. if (!this.studyJuri[0].cover[0].url) {
  7438. this.$message.error("请上传文件");
  7439. return;
  7440. }
  7441. let params = [
  7442. {
  7443. uid: this.userid,
  7444. cid: this.id,
  7445. stage: this.courseType,
  7446. task: i,
  7447. tool: this.toolindex,
  7448. content: JSON.stringify({
  7449. type: typesql,
  7450. groupIndex: this.groupIndex,
  7451. url: this.studyJuri[0].cover[0].url,
  7452. }).replaceAll(/%/g, "%25"),
  7453. type: 11,
  7454. atool: 49,
  7455. text: "",
  7456. },
  7457. ];
  7458. this.ajax
  7459. .post(this.$store.state.api + "addCourseWorks5", params)
  7460. .then((res) => {
  7461. this.$message({
  7462. message: "提交成功",
  7463. type: "success",
  7464. });
  7465. this.studyJuri[0].cover = [];
  7466. this.dialogVisibleGroupWork = false;
  7467. this.getCourseDetail();
  7468. })
  7469. .catch((err) => {
  7470. this.$message.error("提交失败");
  7471. console.error(err);
  7472. });
  7473. },
  7474. addCourseWorksGong(i, data) {
  7475. let params = [
  7476. {
  7477. uid: this.userid,
  7478. cid: this.id,
  7479. stage: this.courseType,
  7480. task: this.taskCount,
  7481. tool: i,
  7482. content: data,
  7483. type: 12,
  7484. atool: 32,
  7485. text: "",
  7486. },
  7487. ];
  7488. this.ajax
  7489. .post(this.$store.state.api + "addCourseWorks5", params)
  7490. .then((res) => {
  7491. this.$message({
  7492. message: "提交成功",
  7493. type: "success",
  7494. });
  7495. this.studyJuri[0].cover = [];
  7496. this.selectSWorks();
  7497. this.selectStudent();
  7498. })
  7499. .catch((err) => {
  7500. this.$message.error("提交失败");
  7501. console.error(err);
  7502. });
  7503. },
  7504. addCourseWorksTeacher(i) {
  7505. var typesql;
  7506. if (this.fileType === 0) {
  7507. typesql = 1;
  7508. } else if (this.fileType === 1) {
  7509. typesql = 4;
  7510. } else {
  7511. typesql = 5;
  7512. }
  7513. if (!this.studyJuri[0].cover[0].url) {
  7514. this.$message.error("请上传文件");
  7515. return;
  7516. }
  7517. let params = [
  7518. {
  7519. uid: this.sStudent.userid,
  7520. cid: this.id,
  7521. stage: this.courseType,
  7522. task: i,
  7523. tool: this.toolindex,
  7524. content: this.studyJuri[0].cover[0].url,
  7525. type: typesql,
  7526. ateacher: this.userid,
  7527. },
  7528. ];
  7529. this.ajax
  7530. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  7531. .then((res) => {
  7532. this.$message({
  7533. message: "提交成功",
  7534. type: "success",
  7535. });
  7536. this.studyJuri[0].cover = [];
  7537. this.dialogVisibleWorks = false;
  7538. this.getCourseDetail();
  7539. })
  7540. .catch((err) => {
  7541. this.$message.error("提交失败");
  7542. console.error(err);
  7543. });
  7544. },
  7545. selectCStudent() {
  7546. let params = {
  7547. cid: this.classId,
  7548. };
  7549. this.ajax
  7550. .get(this.$store.state.api + "selectSnameByCid", params)
  7551. .then((res) => {
  7552. this.classJuri = res.data[0];
  7553. })
  7554. .catch((err) => {
  7555. console.error(err);
  7556. });
  7557. },
  7558. selectWorksStudent() {
  7559. let params = {
  7560. oid: this.oid,
  7561. cid: this.courseDetail.juri,
  7562. };
  7563. this.ajax
  7564. .get(this.$store.state.api + "selectWorksStudent", params)
  7565. .then((res) => {
  7566. var a = res.data[0];
  7567. for (var i = 0; i < this.isWorksS.length; i++) {
  7568. this.noWorksS[i] = [];
  7569. var studentK = [];
  7570. if (this.isWorksS[i].length > 0) {
  7571. for (var z = 0; z < this.isWorksS[i].length; z++) {
  7572. studentK.push(this.isWorksS[i][z].uid);
  7573. }
  7574. studentK = studentK.join(",");
  7575. for (var j = 0; j < a.length; j++) {
  7576. if (studentK.indexOf(a[j].userid) == -1) {
  7577. this.noWorksS[i].push({
  7578. student: a[j].name,
  7579. userid: a[j].userid,
  7580. });
  7581. }
  7582. }
  7583. } else {
  7584. for (var k = 0; k < a.length; k++) {
  7585. this.noWorksS[i].push({
  7586. student: a[k].name,
  7587. userid: a[k].userid,
  7588. });
  7589. }
  7590. }
  7591. }
  7592. this.$forceUpdate();
  7593. if (
  7594. Object.keys(this.commentDetail).length &&
  7595. Object.keys(this.commentIndexJson).length &&
  7596. !this.dialogVisibleScore
  7597. ) {
  7598. let a = 1;
  7599. let c = this.commentIndexJson;
  7600. console.log(c);
  7601. if (
  7602. this.commentIndexJson.gindex ||
  7603. this.commentIndexJson.gindex === 0
  7604. ) {
  7605. for (
  7606. var i = 0;
  7607. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  7608. i++
  7609. ) {
  7610. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  7611. for (var k = 0; k < _el.length; k++) {
  7612. let el = _el[k];
  7613. if (el.wid == this.commentDetail.wid) {
  7614. a = 2;
  7615. this.commentOther(
  7616. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  7617. this.commentIndexJson.toolIndex,
  7618. k,
  7619. this.commentIndexJson.gindex
  7620. );
  7621. }
  7622. break;
  7623. }
  7624. }
  7625. if (a === 1) {
  7626. this.commentDetail = [];
  7627. this.commentIndexJson = {};
  7628. this.commentDialogVisible = false;
  7629. this.$message("此作业已被删除");
  7630. }
  7631. } else {
  7632. for (
  7633. var i = 0;
  7634. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  7635. i++
  7636. ) {
  7637. let el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  7638. if (el.wid == this.commentDetail.wid) {
  7639. a = 2;
  7640. this.commentOther(
  7641. this.worksStudent[this.commentIndexJson.toolIndex][i],
  7642. this.commentIndexJson.toolIndex,
  7643. i
  7644. );
  7645. break;
  7646. }
  7647. }
  7648. if (a === 1) {
  7649. this.commentDetail = [];
  7650. this.commentIndexJson = {};
  7651. this.commentDialogVisible = false;
  7652. this.$message("此作业已被删除");
  7653. }
  7654. }
  7655. }
  7656. })
  7657. .catch((err) => {
  7658. console.error(err);
  7659. });
  7660. },
  7661. selectStudent() {
  7662. //学生查看自己作业
  7663. let params = {
  7664. uid: this.userid,
  7665. cid: this.id,
  7666. s: this.courseType,
  7667. t: this.taskCount,
  7668. };
  7669. this.ajax
  7670. .get(this.$store.state.api + "selectStudentWorks", params)
  7671. .then((res) => {
  7672. var a =
  7673. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7674. this.taskCount
  7675. ].toolChoose;
  7676. var b = res.data[0];
  7677. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7678. var y = [
  7679. "AVI",
  7680. "NAVI",
  7681. "MPEG",
  7682. "ASF",
  7683. "MOV",
  7684. "WMV",
  7685. "3GP",
  7686. "RM",
  7687. "RMVB",
  7688. "FLV",
  7689. "F4V",
  7690. "H.264",
  7691. "H.265",
  7692. "REAL VIDEO",
  7693. "MKV",
  7694. "WebM",
  7695. "HDDVD",
  7696. "MP4",
  7697. "MPG",
  7698. "M4V",
  7699. "MGV",
  7700. "OGV",
  7701. "QTM",
  7702. "STR",
  7703. "AMC",
  7704. "DVX",
  7705. "EVO",
  7706. "DAT",
  7707. "OGG",
  7708. "OGM",
  7709. ];
  7710. for (var i = 0; i < a.length; i++) {
  7711. this.workStudent[i] = [];
  7712. for (var j = 0; j < b.length; j++) {
  7713. if (i == b[j].tool) {
  7714. if (
  7715. (b[j].type == 1 ||
  7716. b[j].type == 4 ||
  7717. b[j].type == 5 ||
  7718. b[j].type == 6 ||
  7719. b[j].type == 7) &&
  7720. a[i].tool[0] != 15 &&
  7721. a[i].tool[0] != 4 &&
  7722. a[i].tool[0] != 45 &&
  7723. a[i].tool[0] != 50
  7724. ) {
  7725. if (
  7726. c.indexOf(
  7727. b[j].content
  7728. .split(".")
  7729. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  7730. ) != -1 &&
  7731. a[i].tool[0] == 16 &&
  7732. b[j].atool != 50
  7733. ) {
  7734. this.workStudent[i].push({
  7735. works: b[j].content,
  7736. sName: b[j].name,
  7737. score: b[j].score,
  7738. img: b[j].img,
  7739. type: 1,
  7740. time: b[j].time,
  7741. userid: b[j].userid,
  7742. wid: b[j].id,
  7743. });
  7744. } else if (
  7745. y.indexOf(
  7746. b[j].content
  7747. .split(".")
  7748. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  7749. ) != -1 &&
  7750. a[i].tool[0] == 16 &&
  7751. b[j].atool != 50
  7752. ) {
  7753. this.workStudent[i].push({
  7754. userid: b[j].userid,
  7755. wid: b[j].id,
  7756. works: b[j].content,
  7757. sName: b[j].name,
  7758. score: b[j].score,
  7759. img: b[j].img,
  7760. type: 3,
  7761. time: b[j].time,
  7762. });
  7763. } else if (b[j].type == 6 && b[j].atool != 50) {
  7764. this.workStudent[i].push({
  7765. userid: b[j].userid,
  7766. wid: b[j].id,
  7767. works: b[j].content,
  7768. sName: b[j].name,
  7769. score: b[j].score,
  7770. img: b[j].img,
  7771. type: 4,
  7772. time: b[j].time,
  7773. });
  7774. } else if (b[j].type == 7 && b[j].atool != 50) {
  7775. this.workStudent[i].push({
  7776. userid: b[j].userid,
  7777. wid: b[j].id,
  7778. works: b[j].content,
  7779. sName: b[j].name,
  7780. score: b[j].score,
  7781. img: b[j].img,
  7782. type: 5,
  7783. time: b[j].time,
  7784. });
  7785. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  7786. this.workStudent[i].push({
  7787. works: b[j].content,
  7788. sName: b[j].name,
  7789. score: b[j].score,
  7790. img: b[j].img,
  7791. type: 0,
  7792. time: b[j].time,
  7793. userid: b[j].userid,
  7794. wid: b[j].id,
  7795. });
  7796. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  7797. this.workStudent[i].push({
  7798. works: b[j].content,
  7799. sName: b[j].name,
  7800. score: b[j].score,
  7801. img: b[j].img,
  7802. type: 0,
  7803. time: b[j].time,
  7804. userid: b[j].userid,
  7805. wid: b[j].id,
  7806. });
  7807. }
  7808. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  7809. this.workStudent[i].push({
  7810. works: b[j].content,
  7811. sName: b[j].name,
  7812. score: b[j].score,
  7813. img: b[j].img,
  7814. type: 2,
  7815. time: b[j].time,
  7816. userid: b[j].userid,
  7817. wid: b[j].id,
  7818. });
  7819. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  7820. //问卷
  7821. this.workStudent[i].push({
  7822. works: b[j].content,
  7823. sName: b[j].name,
  7824. score: b[j].score,
  7825. img: b[j].img,
  7826. type: 2,
  7827. time: b[j].time,
  7828. userid: b[j].userid,
  7829. wid: b[j].id,
  7830. });
  7831. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  7832. //选择题
  7833. this.workStudent[i].push({
  7834. works: b[j].content,
  7835. sName: b[j].name,
  7836. score: b[j].score,
  7837. img: b[j].img,
  7838. type: 8,
  7839. time: b[j].time,
  7840. userid: b[j].userid,
  7841. wid: b[j].id,
  7842. });
  7843. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  7844. //选择题
  7845. this.workStudent[i].push({
  7846. works: b[j].content,
  7847. sName: b[j].name,
  7848. score: b[j].score,
  7849. img: b[j].img,
  7850. type: 9,
  7851. time: b[j].time,
  7852. userid: b[j].userid,
  7853. wid: b[j].id,
  7854. });
  7855. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  7856. //选择题
  7857. this.workStudent[i].push({
  7858. works: b[j].content,
  7859. sName: b[j].name,
  7860. score: b[j].score,
  7861. img: b[j].img,
  7862. type: 10,
  7863. time: b[j].time,
  7864. userid: b[j].userid,
  7865. wid: b[j].id,
  7866. });
  7867. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  7868. //选择题
  7869. this.workStudent[i].push({
  7870. works: b[j].content,
  7871. sName: b[j].name,
  7872. score: b[j].score,
  7873. img: b[j].img,
  7874. type: 12,
  7875. time: b[j].time,
  7876. userid: b[j].userid,
  7877. wid: b[j].id,
  7878. });
  7879. }
  7880. }
  7881. }
  7882. }
  7883. })
  7884. .catch((err) => {
  7885. console.error(err);
  7886. });
  7887. },
  7888. openVideo(w) {
  7889. this.videoDetail = {};
  7890. this.playerOptions1.sources[0].src = w.works;
  7891. this.videoDetail = this.playerOptions1;
  7892. this.videoVisible = true;
  7893. },
  7894. isLikes(wid, uid, t, c, isLikes) {
  7895. if (isLikes == false) {
  7896. let params = [
  7897. {
  7898. wid: wid,
  7899. lid: uid,
  7900. t: t,
  7901. c: c,
  7902. },
  7903. ];
  7904. this.ajax
  7905. .post(this.$store.state.api + "insertComment", params)
  7906. .then((res) => {
  7907. this.$message({
  7908. message: "点赞成功",
  7909. type: "success",
  7910. });
  7911. this.selectSWorks();
  7912. this.selectStudent();
  7913. })
  7914. .catch((err) => {
  7915. this.$message.error("点赞失败");
  7916. console.error(err);
  7917. });
  7918. } else {
  7919. let params = {
  7920. wid: wid,
  7921. lid: uid,
  7922. type: t,
  7923. };
  7924. this.ajax
  7925. .get(this.$store.state.api + "deleteComment", params)
  7926. .then((res) => {
  7927. this.$message({
  7928. message: "取消点赞成功",
  7929. type: "success",
  7930. });
  7931. this.selectSWorks();
  7932. this.selectStudent();
  7933. })
  7934. .catch((err) => {
  7935. console.error(err);
  7936. });
  7937. }
  7938. },
  7939. commentOther(w, toolIndex, wIndex, gindex) {
  7940. this.commentIndexJson = {
  7941. toolIndex: toolIndex,
  7942. wIndex: wIndex,
  7943. gindex: gindex,
  7944. };
  7945. this.commentDetail = [];
  7946. this.commentDialogVisible = true;
  7947. this.commentDetail = w;
  7948. if (w.works && w.type == 1) {
  7949. this.pptImgUrl = "";
  7950. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  7951. if (
  7952. a.indexOf(
  7953. w.works
  7954. .split(".")
  7955. [w.works.split(".").length - 1].toLocaleUpperCase()
  7956. ) != -1
  7957. ) {
  7958. this.pptImgUrl =
  7959. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  7960. this.showPDF = false;
  7961. } else if (
  7962. w.works
  7963. .split(".")
  7964. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  7965. ) {
  7966. this.pptImgUrl = w.works;
  7967. this.showPDF = true;
  7968. }
  7969. } else if (w.works && w.type == 3) {
  7970. this.videoDetail = {};
  7971. this.playerOptions1.sources[0].src = w.works;
  7972. this.videoDetail = this.playerOptions1;
  7973. // this.videoVisible = true;
  7974. } else if (w.works && w.type == 4) {
  7975. this.eScore = JSON.parse(w.works);
  7976. this.rateJson =
  7977. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7978. this.taskCount
  7979. ].toolChoose[toolIndex].rateJson;
  7980. } else if (w.works && w.type == 10) {
  7981. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  7982. }
  7983. },
  7984. openScore(w) {
  7985. this.wScore = 0;
  7986. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  7987. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  7988. this.commentDetail = [];
  7989. this.dialogVisibleScore = true;
  7990. this.commentDetail = w;
  7991. if (w.works && w.type == 1) {
  7992. this.pptImgUrl = "";
  7993. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  7994. if (
  7995. a.indexOf(
  7996. w.works
  7997. .split(".")
  7998. [w.works.split(".").length - 1].toLocaleUpperCase()
  7999. ) != -1
  8000. ) {
  8001. this.pptImgUrl =
  8002. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  8003. this.showPDF = false;
  8004. } else if (
  8005. w.works
  8006. .split(".")
  8007. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8008. ) {
  8009. this.pptImgUrl = w.works;
  8010. this.showPDF = true;
  8011. }
  8012. } else if (w.works && w.type == 3) {
  8013. this.videoDetail = {};
  8014. this.playerOptions1.sources[0].src = w.works;
  8015. this.videoDetail = this.playerOptions1;
  8016. }
  8017. },
  8018. addComment(wid, uid, t) {
  8019. if (this.commentText == "") {
  8020. this.$message.error("请输入对该学生的评价");
  8021. return;
  8022. }
  8023. let params2 = [
  8024. {
  8025. wid: wid,
  8026. lid: uid,
  8027. t: t,
  8028. },
  8029. ];
  8030. this.ajax
  8031. .post(this.$store.state.api + "getComment", params2)
  8032. .then((res) => {
  8033. if (res.data[0].length > 0) {
  8034. this.$message.error("一个作业只能评论一条");
  8035. } else {
  8036. let params = [
  8037. {
  8038. wid: wid,
  8039. lid: uid,
  8040. t: t,
  8041. c: this.commentText,
  8042. },
  8043. ];
  8044. this.ajax
  8045. .post(this.$store.state.api + "insertComment", params)
  8046. .then((res) => {
  8047. this.$message({
  8048. message: "评论成功",
  8049. type: "success",
  8050. });
  8051. this.commentText = "";
  8052. this.selectSWorks();
  8053. this.selectStudent();
  8054. })
  8055. .catch((err) => {
  8056. this.$message.error("评论失败");
  8057. console.error(err);
  8058. });
  8059. }
  8060. })
  8061. .catch((err) => {
  8062. // this.$message.error("评论失败");
  8063. console.error(err);
  8064. });
  8065. },
  8066. scoreWork(wid) {
  8067. if (this.wScore == 0) {
  8068. this.$message.error("请评分");
  8069. return;
  8070. }
  8071. let params = [
  8072. {
  8073. wid: wid,
  8074. score: JSON.stringify({
  8075. wScore: this.wScore,
  8076. detail: this.scoreDetail,
  8077. }),
  8078. },
  8079. ];
  8080. this.ajax
  8081. .post(this.$store.state.api + "scoreWork", params)
  8082. .then((res) => {
  8083. this.$message({
  8084. message: "评分成功",
  8085. type: "success",
  8086. });
  8087. this.wScore = 0;
  8088. this.scoreDetail = "";
  8089. this.dialogVisibleScore = false;
  8090. this.selectSWorks();
  8091. this.selectStudent();
  8092. })
  8093. .catch((err) => {
  8094. this.$message.error("评分失败");
  8095. console.error(err);
  8096. });
  8097. },
  8098. openXz(w, i) {
  8099. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  8100. .taskJson[this.taskCount].toolChoose[i].selectJson
  8101. ? JSON.parse(
  8102. JSON.stringify(
  8103. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8104. this.taskCount
  8105. ].toolChoose[i].selectJson
  8106. )
  8107. )
  8108. : { url: "", select: [], answer: [] };
  8109. var a = w.works.split(",");
  8110. for (var k = 0; k < a.length; k++) {
  8111. a[k] = parseInt(a[k]);
  8112. }
  8113. this.selectAnswer = { answer: a, stu: w.sName };
  8114. this.isSelect = true;
  8115. this.dialogVisibleSelect = true;
  8116. },
  8117. openSen(w, i) {
  8118. this.sentenceList1 = JSON.parse(w.works);
  8119. this.sentenceList1.stuName = w.sName;
  8120. this.dialogVisibleSentence1 = true;
  8121. },
  8122. openPj(w, toolindex) {
  8123. this.isStar = true;
  8124. this.eScore = JSON.parse(w);
  8125. this.rateJson =
  8126. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8127. this.taskCount
  8128. ].toolChoose[toolindex].rateJson;
  8129. this.studentEvalDialogVisible = true;
  8130. },
  8131. deleteWorks(id) {
  8132. this.$confirm("确定删除此作业吗?", "提示", {
  8133. confirmButtonText: "确定",
  8134. cancelButtonText: "取消",
  8135. type: "warning",
  8136. })
  8137. .then(() => {
  8138. let params = [
  8139. {
  8140. id: id,
  8141. },
  8142. ];
  8143. this.ajax
  8144. .post(this.$store.state.api + "deleteCourseWork", params)
  8145. .then((res) => {
  8146. this.$message({
  8147. message: "删除成功",
  8148. type: "success",
  8149. });
  8150. this.selectStudent();
  8151. this.selectSWorks();
  8152. this.selectSLook();
  8153. })
  8154. .catch((err) => {
  8155. this.$message.error("网络异常");
  8156. console.error(err);
  8157. });
  8158. })
  8159. .catch(() => {});
  8160. },
  8161. selectSWorks(gindex) {
  8162. //教师查看全部作业
  8163. let params = {
  8164. cid: this.id,
  8165. s: this.courseType,
  8166. t: this.taskCount,
  8167. };
  8168. this.ajax
  8169. .get(this.$store.state.api + "selectSWorks", params)
  8170. .then((res) => {
  8171. var a =
  8172. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8173. this.taskCount
  8174. ].toolChoose;
  8175. var b = res.data[0];
  8176. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  8177. var y = [
  8178. "AVI",
  8179. "NAVI",
  8180. "MPEG",
  8181. "ASF",
  8182. "MOV",
  8183. "WMV",
  8184. "3GP",
  8185. "RM",
  8186. "RMVB",
  8187. "FLV",
  8188. "F4V",
  8189. "H.264",
  8190. "H.265",
  8191. "REAL VIDEO",
  8192. "MKV",
  8193. "WebM",
  8194. "HDDVD",
  8195. "MP4",
  8196. "MPG",
  8197. "M4V",
  8198. "MGV",
  8199. "OGV",
  8200. "QTM",
  8201. "STR",
  8202. "AMC",
  8203. "DVX",
  8204. "EVO",
  8205. "DAT",
  8206. "OGG",
  8207. "OGM",
  8208. ];
  8209. var d = res.data[1];
  8210. var e = res.data[2];
  8211. var f = res.data[3];
  8212. for (var i = 0; i < a.length; i++) {
  8213. this.worksStudent[i] = [];
  8214. this.groupStudent[i] = [];
  8215. this.groupStudentUid[i] = [];
  8216. this.isWorksS[i] = [];
  8217. this.checkJson[i] = [];
  8218. if (a[i].tool[0] == 49) {
  8219. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  8220. this.groupStudent[i][gA] = [];
  8221. this.groupStudentUid[i][gA] = [];
  8222. this.worksStudent[i][gA] = [];
  8223. for (var g = 0; g < f.length; g++) {
  8224. if (gA == f[g].group && f[g].tool == i) {
  8225. this.groupStudent[i][gA].push(f[g]);
  8226. this.groupStudentUid[i][gA].push(f[g].userid);
  8227. }
  8228. }
  8229. }
  8230. this.$forceUpdate();
  8231. }
  8232. for (var j = 0; j < b.length; j++) {
  8233. var likesCount = 0;
  8234. var commentCount = 0;
  8235. var isLikes = false;
  8236. var commentJson = [];
  8237. var data = b[j];
  8238. if (i == b[j].tool) {
  8239. if (data.type == 2 && a[i].tool[0] == 4) {
  8240. // if(JSON.parse(data.content)[0].anwer){
  8241. var checkL = JSON.parse(data.content)[0].anwer.split(",");
  8242. for (var z = 0; z < checkL.length; z++) {
  8243. if (!this.checkJson[i][z]) {
  8244. this.checkJson[i].push({
  8245. checkCount: [],
  8246. checkPerson: [],
  8247. rightPerson: [],
  8248. });
  8249. }
  8250. if (!this.checkJson[i][z].checkCount.length) {
  8251. this.checkJson[i][z].checkCount = [];
  8252. let _askItemCount = JSON.parse(data.content)[0].askJson
  8253. .askJson[z].askItem;
  8254. for (var aic = 0; aic < _askItemCount; aic++) {
  8255. this.checkJson[i][z].checkCount.push(0);
  8256. }
  8257. }
  8258. if (
  8259. (JSON.parse(data.content)[0].askJson.askJson[z].answer ||
  8260. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  8261. 0) &&
  8262. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  8263. checkL[z]
  8264. ) {
  8265. this.checkJson[i][z].rightPerson.push(data.name);
  8266. }
  8267. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  8268. ? this.checkJson[i][z].checkPerson[
  8269. parseInt(checkL[z])
  8270. ].push(data.name)
  8271. : (this.checkJson[i][z].checkPerson[parseInt(checkL[z])] =
  8272. [data.name]);
  8273. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  8274. ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
  8275. : (this.checkJson[i][z].checkCount[
  8276. parseInt(checkL[z])
  8277. ] = 1);
  8278. // }
  8279. }
  8280. } else if (data.type == 8 && a[i].tool[0] == 45) {
  8281. var checkL = JSON.parse(data.content)[0].anwer;
  8282. for (var z = 0; z < checkL.length; z++) {
  8283. if (!this.checkJson[i][z]) {
  8284. this.checkJson[i].push({
  8285. checkCount: [],
  8286. checkPerson: [],
  8287. rightPerson: [],
  8288. });
  8289. }
  8290. if (!this.checkJson[i][z].checkCount.length) {
  8291. this.checkJson[i][z].checkCount = [];
  8292. let _askItemCount = JSON.parse(data.content)[0].testJson
  8293. .testJson[z].testItem;
  8294. console.log(_askItemCount);
  8295. for (var aic = 0; aic < _askItemCount; aic++) {
  8296. this.checkJson[i][z].checkCount.push(0);
  8297. }
  8298. }
  8299. if (checkL[z] instanceof Array) {
  8300. if (
  8301. JSON.parse(data.content)[0]
  8302. .testJson.testJson[z].answer.sort()
  8303. .join(",") == checkL[z].sort().join(",")
  8304. ) {
  8305. this.checkJson[i][z].rightPerson.push(data.name);
  8306. }
  8307. for (var q = 0; q < checkL[z].length; q++) {
  8308. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  8309. ? this.checkJson[i][z].checkPerson[
  8310. parseInt(checkL[z][q])
  8311. ].push(data.name)
  8312. : (this.checkJson[i][z].checkPerson[
  8313. parseInt(checkL[z][q])
  8314. ] = [data.name]);
  8315. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  8316. ? this.checkJson[i][z].checkCount[
  8317. parseInt(checkL[z][q])
  8318. ]++
  8319. : (this.checkJson[i][z].checkCount[
  8320. parseInt(checkL[z][q])
  8321. ] = 1);
  8322. }
  8323. } else {
  8324. if (
  8325. JSON.parse(data.content)[0].testJson.testJson[z]
  8326. .answer == checkL[z]
  8327. ) {
  8328. this.checkJson[i][z].rightPerson.push(data.name);
  8329. }
  8330. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  8331. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  8332. ? this.checkJson[i][z].checkPerson[
  8333. parseInt(checkL[z])
  8334. ].push(data.name)
  8335. : (this.checkJson[i][z].checkPerson[
  8336. parseInt(checkL[z])
  8337. ] = [data.name]);
  8338. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  8339. ? this.checkJson[i][z].checkCount[
  8340. parseInt(checkL[z])
  8341. ]++
  8342. : (this.checkJson[i][z].checkCount[
  8343. parseInt(checkL[z])
  8344. ] = 1);
  8345. }
  8346. }
  8347. }
  8348. } else if (data.type == 9 && a[i].tool[0] == 47) {
  8349. var checkL = JSON.parse(data.content);
  8350. for (var z = 0; z < checkL.length; z++) {
  8351. if (!this.checkJson[i][z]) {
  8352. this.checkJson[i].push({
  8353. checkCount: [],
  8354. checkPerson: [],
  8355. rightPerson: [],
  8356. });
  8357. }
  8358. this.checkJson[i][z].checkPerson.push(data.name);
  8359. if (
  8360. checkL[z].chooseSenList.toString() ==
  8361. checkL[z].rightAnswer.toString()
  8362. ) {
  8363. this.checkJson[i][z].rightPerson.push(data.name);
  8364. }
  8365. }
  8366. }
  8367. for (var k = 0; k < d.length; k++) {
  8368. //点赞
  8369. if (d[k].workId == b[j].id) {
  8370. likesCount++;
  8371. if (d[k].likesId == this.userid) {
  8372. isLikes = true;
  8373. }
  8374. }
  8375. }
  8376. for (var l = 0; l < e.length; l++) {
  8377. //评论
  8378. if (e[l].workId == b[j].id) {
  8379. if (e[l].comment != "") {
  8380. commentCount++;
  8381. commentJson.push({
  8382. commentText: e[l].comment,
  8383. commentTime: e[l].commentTime,
  8384. commentPeople: e[l].commentPeople,
  8385. });
  8386. }
  8387. }
  8388. }
  8389. if (
  8390. (b[j].type == 1 ||
  8391. b[j].type == 4 ||
  8392. b[j].type == 5 ||
  8393. b[j].type == 6 ||
  8394. b[j].type == 7) &&
  8395. a[i].tool[0] != 15 &&
  8396. a[i].tool[0] != 4 &&
  8397. a[i].tool[0] != 45 &&
  8398. a[i].tool[0] != 50
  8399. ) {
  8400. if (
  8401. c.indexOf(
  8402. b[j].content
  8403. .split(".")
  8404. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  8405. ) != -1 &&
  8406. a[i].tool[0] == 16 &&
  8407. b[j].atool != 50
  8408. ) {
  8409. this.worksStudent[i].push({
  8410. userid: b[j].userid,
  8411. ateacher: b[j].ateacher,
  8412. wid: b[j].id,
  8413. works: b[j].content,
  8414. sName: b[j].name,
  8415. type: 1,
  8416. time: b[j].time,
  8417. score: b[j].score,
  8418. img: b[j].img,
  8419. likesCount: likesCount,
  8420. commentCount: commentCount,
  8421. isLikes: isLikes,
  8422. commentJson: commentJson,
  8423. });
  8424. } else if (
  8425. y.indexOf(
  8426. b[j].content
  8427. .split(".")
  8428. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  8429. ) != -1 &&
  8430. a[i].tool[0] == 16 &&
  8431. b[j].atool != 50
  8432. ) {
  8433. this.worksStudent[i].push({
  8434. userid: b[j].userid,
  8435. ateacher: b[j].ateacher,
  8436. wid: b[j].id,
  8437. works: b[j].content,
  8438. sName: b[j].name,
  8439. type: 3,
  8440. time: b[j].time,
  8441. score: b[j].score,
  8442. img: b[j].img,
  8443. likesCount: likesCount,
  8444. commentCount: commentCount,
  8445. isLikes: isLikes,
  8446. commentJson: commentJson,
  8447. });
  8448. } else if (b[j].type == 6 && b[j].atool != 50) {
  8449. this.worksStudent[i].push({
  8450. userid: b[j].userid,
  8451. ateacher: b[j].ateacher,
  8452. wid: b[j].id,
  8453. works: b[j].content,
  8454. sName: b[j].name,
  8455. type: 4,
  8456. time: b[j].time,
  8457. score: b[j].score,
  8458. img: b[j].img,
  8459. likesCount: likesCount,
  8460. commentCount: commentCount,
  8461. isLikes: isLikes,
  8462. commentJson: commentJson,
  8463. });
  8464. } else if (b[j].type == 7 && b[j].atool != 50) {
  8465. this.worksStudent[i].push({
  8466. userid: b[j].userid,
  8467. ateacher: b[j].ateacher,
  8468. wid: b[j].id,
  8469. works: b[j].content,
  8470. sName: b[j].name,
  8471. type: 5,
  8472. time: b[j].time,
  8473. score: b[j].score,
  8474. img: b[j].img,
  8475. likesCount: likesCount,
  8476. commentCount: commentCount,
  8477. isLikes: isLikes,
  8478. commentJson: commentJson,
  8479. });
  8480. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  8481. this.worksStudent[i].push({
  8482. userid: b[j].userid,
  8483. ateacher: b[j].ateacher,
  8484. wid: b[j].id,
  8485. works: b[j].content,
  8486. sName: b[j].name,
  8487. type: 0,
  8488. time: b[j].time,
  8489. score: b[j].score,
  8490. img: b[j].img,
  8491. likesCount: likesCount,
  8492. commentCount: commentCount,
  8493. isLikes: isLikes,
  8494. commentJson: commentJson,
  8495. });
  8496. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  8497. this.worksStudent[i].push({
  8498. userid: b[j].userid,
  8499. ateacher: b[j].ateacher,
  8500. wid: b[j].id,
  8501. works: b[j].content,
  8502. sName: b[j].name,
  8503. type: 0,
  8504. time: b[j].time,
  8505. score: b[j].score,
  8506. img: b[j].img,
  8507. likesCount: likesCount,
  8508. commentCount: commentCount,
  8509. isLikes: isLikes,
  8510. commentJson: commentJson,
  8511. });
  8512. }
  8513. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  8514. this.worksStudent[i].push({
  8515. userid: b[j].userid,
  8516. ateacher: b[j].ateacher,
  8517. wid: b[j].id,
  8518. works: b[j].content,
  8519. sName: b[j].name,
  8520. type: 2,
  8521. time: b[j].time,
  8522. score: b[j].score,
  8523. img: b[j].img,
  8524. likesCount: likesCount,
  8525. commentCount: commentCount,
  8526. isLikes: isLikes,
  8527. commentJson: commentJson,
  8528. });
  8529. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  8530. //问卷
  8531. this.worksStudent[i].push({
  8532. userid: b[j].userid,
  8533. ateacher: b[j].ateacher,
  8534. wid: b[j].id,
  8535. works: b[j].content,
  8536. sName: b[j].name,
  8537. type: 2,
  8538. time: b[j].time,
  8539. score: b[j].score,
  8540. img: b[j].img,
  8541. likesCount: likesCount,
  8542. commentCount: commentCount,
  8543. isLikes: isLikes,
  8544. commentJson: commentJson,
  8545. });
  8546. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  8547. //选择题
  8548. this.worksStudent[i].push({
  8549. userid: b[j].userid,
  8550. ateacher: b[j].ateacher,
  8551. wid: b[j].id,
  8552. works: b[j].content,
  8553. sName: b[j].name,
  8554. type: 8,
  8555. time: b[j].time,
  8556. score: b[j].score,
  8557. img: b[j].img,
  8558. likesCount: likesCount,
  8559. commentCount: commentCount,
  8560. isLikes: isLikes,
  8561. commentJson: commentJson,
  8562. });
  8563. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  8564. //选择题
  8565. this.worksStudent[i].push({
  8566. userid: b[j].userid,
  8567. ateacher: b[j].ateacher,
  8568. wid: b[j].id,
  8569. works: b[j].content,
  8570. sName: b[j].name,
  8571. type: 9,
  8572. time: b[j].time,
  8573. score: b[j].score,
  8574. img: b[j].img,
  8575. likesCount: likesCount,
  8576. commentCount: commentCount,
  8577. isLikes: isLikes,
  8578. commentJson: commentJson,
  8579. });
  8580. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  8581. //选择题
  8582. this.worksStudent[i].push({
  8583. userid: b[j].userid,
  8584. ateacher: b[j].ateacher,
  8585. wid: b[j].id,
  8586. works: b[j].content,
  8587. sName: b[j].name,
  8588. type: 10,
  8589. time: b[j].time,
  8590. score: b[j].score,
  8591. img: b[j].img,
  8592. likesCount: likesCount,
  8593. commentCount: commentCount,
  8594. isLikes: isLikes,
  8595. commentJson: commentJson,
  8596. });
  8597. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  8598. let _gindex = JSON.parse(b[j].content);
  8599. if (
  8600. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  8601. b[j].userid
  8602. ) != -1
  8603. ) {
  8604. this.worksStudent[i][_gindex.groupIndex].push({
  8605. userid: b[j].userid,
  8606. ateacher: b[j].ateacher,
  8607. wid: b[j].id,
  8608. works: _gindex.url,
  8609. sName: b[j].name,
  8610. type: _gindex.type,
  8611. time: b[j].time,
  8612. score: b[j].score,
  8613. img: b[j].img,
  8614. likesCount: likesCount,
  8615. commentCount: commentCount,
  8616. isLikes: isLikes,
  8617. commentJson: commentJson,
  8618. });
  8619. }
  8620. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  8621. this.worksStudent[i].push({
  8622. userid: b[j].userid,
  8623. ateacher: b[j].ateacher,
  8624. wid: b[j].id,
  8625. works: b[j].content,
  8626. sName: b[j].name ? b[j].name : b[j].userid,
  8627. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  8628. time: b[j].time,
  8629. score: b[j].score,
  8630. img: b[j].img,
  8631. likesCount: likesCount,
  8632. commentCount: commentCount,
  8633. isLikes: isLikes,
  8634. commentJson: commentJson,
  8635. });
  8636. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  8637. this.worksStudent[i].push({
  8638. userid: b[j].userid,
  8639. ateacher: b[j].ateacher,
  8640. wid: b[j].id,
  8641. works: b[j].content,
  8642. sName: b[j].name ? b[j].name : b[j].userid,
  8643. type: 12,
  8644. time: b[j].time,
  8645. score: b[j].score,
  8646. img: b[j].img,
  8647. likesCount: likesCount,
  8648. commentCount: commentCount,
  8649. isLikes: isLikes,
  8650. commentJson: commentJson,
  8651. });
  8652. }
  8653. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  8654. }
  8655. }
  8656. if (this.worksStudent[i] && this.worksStudent[i].length) {
  8657. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  8658. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  8659. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  8660. var scoreA = parseFloat(jscoreA);
  8661. var scoreB = parseFloat(jscoreB);
  8662. if (scoreA == scoreB) {
  8663. return b.likesCount - a.likesCount;
  8664. }
  8665. return scoreB - scoreA;
  8666. });
  8667. }
  8668. }
  8669. for (var i = 0; i < a.length; i++) {
  8670. for (var j = 0; j < b.length; j++) {
  8671. var data = b[j];
  8672. if (i == b[j].tool) {
  8673. if (data.type == 2 || data.type == 8) {
  8674. for (var z = 0; z < this.checkJson[i].length; z++) {
  8675. this.checkJson[i][z].checkPerent = [];
  8676. this.checkJson[i][z].right = Math.round(
  8677. (this.checkJson[i][z].rightPerson.length /
  8678. parseInt(this.worksStudent[i].length)) *
  8679. 100
  8680. );
  8681. let aaaa = this.checkJson[i][z];
  8682. console.log(aaaa);
  8683. for (
  8684. var k = 0;
  8685. k < this.checkJson[i][z].checkCount.length;
  8686. k++
  8687. ) {
  8688. this.checkJson[i][z].checkPerent.push(
  8689. Math.round(
  8690. (this.checkJson[i][z].checkCount[k] /
  8691. parseInt(this.worksStudent[i].length)) *
  8692. 100
  8693. )
  8694. );
  8695. }
  8696. }
  8697. } else if (data.type == 9) {
  8698. for (var z = 0; z < this.checkJson[i].length; z++) {
  8699. this.checkJson[i][z].checkPerent = [];
  8700. this.checkJson[i][z].right = Math.round(
  8701. (this.checkJson[i][z].rightPerson.length /
  8702. this.checkJson[i][z].checkPerson.length) *
  8703. 100
  8704. );
  8705. }
  8706. }
  8707. }
  8708. }
  8709. }
  8710. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  8711. this.joinGroup(gindex);
  8712. }
  8713. this.selectWorksStudent();
  8714. })
  8715. .catch((err) => {
  8716. console.error(err);
  8717. });
  8718. },
  8719. pngToWhiteBg(file) {
  8720. const _file = file;
  8721. let read = new FileReader();
  8722. read.readAsDataURL(file); // 文件转base64
  8723. return new Promise((resolve, reject) => {
  8724. read.onload = (e) => {
  8725. let img = new Image();
  8726. img.src = e.target.result;
  8727. img.onload = async () => {
  8728. // 生成canvas
  8729. let canvas = document.createElement("canvas");
  8730. let context = canvas.getContext("2d");
  8731. // 绘制图片到canvas上
  8732. canvas.width = img.width;
  8733. canvas.height = img.height;
  8734. // 在canvas绘制前填充白色背景
  8735. context.fillStyle = "#fff";
  8736. context.fillRect(0, 0, canvas.width, canvas.height);
  8737. context.drawImage(img, 0, 0);
  8738. let base64 = canvas.toDataURL(file["type"], 1);
  8739. let newFile = this.dataUrlToFile(base64, _file);
  8740. resolve(newFile);
  8741. };
  8742. };
  8743. });
  8744. },
  8745. dataUrlToFile(dataurl, file) {
  8746. let arr = dataurl.split(","),
  8747. mime = arr[0].match(/:(.*?);/)[1],
  8748. bstr = atob(arr[1]),
  8749. n = bstr.length,
  8750. u8arr = new Uint8Array(n);
  8751. while (n--) {
  8752. u8arr[n] = bstr.charCodeAt(n);
  8753. }
  8754. // return new Blob([u8arr], { type: mime });
  8755. return new File([new Blob([u8arr], { type: mime })], file.name, {
  8756. type: mime,
  8757. });
  8758. },
  8759. async beforeUpload1(event, type, i) {
  8760. // this.$message.success('进入上传')
  8761. var file = "";
  8762. if (type == 5) {
  8763. file = event;
  8764. } else {
  8765. file = event.target.files[0];
  8766. }
  8767. var credentials = {
  8768. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8769. secretAccessKey: "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",
  8770. }; //秘钥形式的登录上传
  8771. window.AWS.config.update(credentials);
  8772. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8773. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8774. var _this = this;
  8775. _this.progress = 0;
  8776. _this.proVisible = true;
  8777. _this.isFinishSize = 0;
  8778. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8779. var b = [
  8780. "DOC",
  8781. "DOCX",
  8782. "DOCM",
  8783. "DOTM",
  8784. "DOTX",
  8785. "PPTX",
  8786. "PPSX",
  8787. "PPT",
  8788. "PPS",
  8789. "PPTM",
  8790. "POTM",
  8791. "PPAM",
  8792. "POTX",
  8793. "PPSM",
  8794. ];
  8795. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  8796. var photoA = [
  8797. "BMP",
  8798. "GIF",
  8799. "PNG",
  8800. "JPGE",
  8801. "JPG",
  8802. "TIF",
  8803. "PCX",
  8804. "TGA",
  8805. "EXIF",
  8806. "FPX",
  8807. "SVG",
  8808. "APNG",
  8809. ];
  8810. // if (
  8811. // b.indexOf(
  8812. // file.name
  8813. // .split(".")
  8814. // [file.name.split(".").length - 1].toLocaleUpperCase()
  8815. // ) != -1
  8816. // ) {
  8817. // if (file.size / 1024 / 1024 > 10) {
  8818. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  8819. // return;
  8820. // }
  8821. // } else if (
  8822. // excelA.indexOf(
  8823. // file.name
  8824. // .split(".")
  8825. // [file.name.split(".").length - 1].toLocaleUpperCase()
  8826. // ) != "-1"
  8827. // ) {
  8828. // if (file.size / 1024 / 1024 > 5) {
  8829. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  8830. // return;
  8831. // }
  8832. // }
  8833. if (
  8834. photoA.indexOf(
  8835. file.name
  8836. .split(".")
  8837. [file.name.split(".").length - 1].toLocaleUpperCase()
  8838. ) != -1 &&
  8839. type != 4
  8840. ) {
  8841. // const blob = await imageConversion.compress(file, 0.8)
  8842. file = await this.pngToWhiteBg(file);
  8843. const blob = await imageConversion.compressAccurately(file, 256);
  8844. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  8845. file = new File([blob], file.name, { type: file.type });
  8846. }
  8847. if (file) {
  8848. var params = {
  8849. Key:
  8850. file.name.split(".")[0] +
  8851. new Date().getTime() +
  8852. "." +
  8853. file.name.split(".")[file.name.split(".").length - 1],
  8854. ContentType: file.type,
  8855. Body: file,
  8856. "Access-Control-Allow-Credentials": "*",
  8857. ACL: "public-read",
  8858. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8859. var options = {
  8860. // partSize: 2048 * 1024 * 1024,
  8861. partSize: 1024 * 1024 * 1024,
  8862. queueSize: 2,
  8863. leavePartsOnError: true,
  8864. };
  8865. bucket
  8866. .upload(params, options)
  8867. .on("httpUploadProgress", function (evt) {
  8868. //这里可以写进度条
  8869. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8870. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  8871. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8872. })
  8873. .send(function (err, data) {
  8874. _this.progress = 100;
  8875. _this.isFinishSize = _this.isAllSize;
  8876. setTimeout(() => {
  8877. _this.proVisible = false;
  8878. }, 1000);
  8879. if (err) {
  8880. var a = _this.$refs.upload1.uploadFiles;
  8881. a.splice(a.length - 1, a.length);
  8882. _this.$message.error("上传失败");
  8883. } else {
  8884. // _this.$message.success('上传成功')
  8885. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  8886. var c = [
  8887. "AVI",
  8888. "NAVI",
  8889. "MPEG",
  8890. "ASF",
  8891. "MOV",
  8892. "WMV",
  8893. "3GP",
  8894. "RM",
  8895. "RMVB",
  8896. "FLV",
  8897. "F4V",
  8898. "H.264",
  8899. "H.265",
  8900. "REAL VIDEO",
  8901. "MKV",
  8902. "WebM",
  8903. "HDDVD",
  8904. "MP4",
  8905. "MPG",
  8906. "M4V",
  8907. "MGV",
  8908. "OGV",
  8909. "QTM",
  8910. "STR",
  8911. "AMC",
  8912. "DVX",
  8913. "EVO",
  8914. "DAT",
  8915. "OGG",
  8916. "OGM",
  8917. ];
  8918. if (type == 1) {
  8919. _this.studyJuri[0].cover.push({
  8920. name: file.name,
  8921. url: data.Location,
  8922. uid: file.uid,
  8923. });
  8924. if (
  8925. c.indexOf(
  8926. _this.studyJuri[0].cover[0].url
  8927. .split(".")
  8928. [
  8929. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8930. ].toLocaleUpperCase()
  8931. ) != -1
  8932. ) {
  8933. _this.fileType = 2;
  8934. } else if (
  8935. b.indexOf(
  8936. _this.studyJuri[0].cover[0].url
  8937. .split(".")
  8938. [
  8939. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8940. ].toLocaleUpperCase()
  8941. ) != -1
  8942. ) {
  8943. _this.fileType = 1;
  8944. } else {
  8945. _this.fileType = 0;
  8946. }
  8947. _this.imgChange(null, null, type);
  8948. } else if (type == 2) {
  8949. _this.upToolImg = data.Location;
  8950. _this.imgChange(null, null, type);
  8951. _this.addCourseWorks(i);
  8952. } else if (type == 4) {
  8953. _this.addPz("3", data.Location);
  8954. } else if (type == 5) {
  8955. _this.addImgDrawImG(data.Location);
  8956. } else if (type == 6) {
  8957. var _ftype = 1;
  8958. if (
  8959. c.indexOf(
  8960. data.Location.split(".")[
  8961. data.Location.split(".").length - 1
  8962. ].toLocaleUpperCase()
  8963. ) != -1
  8964. ) {
  8965. _ftype = 5;
  8966. } else if (
  8967. b.indexOf(
  8968. data.Location.split(".")[
  8969. data.Location.split(".").length - 1
  8970. ].toLocaleUpperCase()
  8971. ) != -1
  8972. ) {
  8973. _ftype = 4;
  8974. } else {
  8975. _ftype = 1;
  8976. }
  8977. _this.plworkFile.push({
  8978. name: file.name,
  8979. url: data.Location,
  8980. uid: file.uid,
  8981. fileType: _ftype,
  8982. username:
  8983. _this.plworkFile.length + 1 > 10
  8984. ? _this.plworkFile.length + 1
  8985. : "0" + (_this.plworkFile.length + 1),
  8986. });
  8987. } else if (type == 7) {
  8988. _this.addCourseWorksGong(i, data.Location);
  8989. }
  8990. _this.imgChange(null, null, type);
  8991. console.log(data.Location);
  8992. // _this.$message.success('上传成功'+data.Location)
  8993. }
  8994. });
  8995. }
  8996. },
  8997. async beforeUpload3(event, type, i) {
  8998. // this.$message.success('进入上传')
  8999. let file = "";
  9000. let cfindex2 = 0;
  9001. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  9002. file = event.target.files[cfindex];
  9003. var credentials = {
  9004. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9005. secretAccessKey: "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",
  9006. }; //秘钥形式的登录上传
  9007. window.AWS.config.update(credentials);
  9008. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9009. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9010. var _this = this;
  9011. // _this.progress = 0;
  9012. _this.proVisible2 = true;
  9013. var b = [
  9014. "DOC",
  9015. "DOCX",
  9016. "DOCM",
  9017. "DOTM",
  9018. "DOTX",
  9019. "PPTX",
  9020. "PPSX",
  9021. "PPT",
  9022. "PPS",
  9023. "PPTM",
  9024. "POTM",
  9025. "PPAM",
  9026. "POTX",
  9027. "PPSM",
  9028. ];
  9029. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  9030. var photoA = [
  9031. "BMP",
  9032. "GIF",
  9033. "PNG",
  9034. "JPGE",
  9035. "JPG",
  9036. "TIF",
  9037. "PCX",
  9038. "TGA",
  9039. "EXIF",
  9040. "FPX",
  9041. "SVG",
  9042. "APNG",
  9043. ];
  9044. if (
  9045. photoA.indexOf(
  9046. file.name
  9047. .split(".")
  9048. [file.name.split(".").length - 1].toLocaleUpperCase()
  9049. ) != -1 &&
  9050. type != 4
  9051. ) {
  9052. // const blob = await imageConversion.compress(file, 0.8)
  9053. file = await this.pngToWhiteBg(file);
  9054. const blob = await imageConversion.compressAccurately(file, 256);
  9055. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  9056. file = new File([blob], file.name, { type: file.type });
  9057. }
  9058. if (file) {
  9059. var params = {
  9060. Key:
  9061. file.name.split(".")[0] +
  9062. new Date().getTime() +
  9063. "." +
  9064. file.name.split(".")[file.name.split(".").length - 1],
  9065. ContentType: file.type,
  9066. Body: file,
  9067. "Access-Control-Allow-Credentials": "*",
  9068. ACL: "public-read",
  9069. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9070. var options = {
  9071. // partSize: 2048 * 1024 * 1024,
  9072. partSize: 1024 * 1024 * 1024,
  9073. queueSize: 2,
  9074. leavePartsOnError: true,
  9075. };
  9076. bucket
  9077. .upload(params, options)
  9078. .on("httpUploadProgress", function (evt) {
  9079. //这里可以写进度条
  9080. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9081. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  9082. })
  9083. .send(function (err, data) {
  9084. // _this.progress = 100;
  9085. cfindex2++;
  9086. setTimeout(() => {
  9087. if (
  9088. cfindex2 == event.target.files.length - 1 ||
  9089. cfindex2 > event.target.files.length - 1
  9090. ) {
  9091. _this.proVisible2 = false;
  9092. }
  9093. }, 1000);
  9094. if (err) {
  9095. var a = _this.$refs.upload1.uploadFiles;
  9096. a.splice(a.length - 1, a.length);
  9097. _this.$message.error("上传失败");
  9098. } else {
  9099. // _this.$message.success('上传成功')
  9100. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  9101. var c = [
  9102. "AVI",
  9103. "NAVI",
  9104. "MPEG",
  9105. "ASF",
  9106. "MOV",
  9107. "WMV",
  9108. "3GP",
  9109. "RM",
  9110. "RMVB",
  9111. "FLV",
  9112. "F4V",
  9113. "H.264",
  9114. "H.265",
  9115. "REAL VIDEO",
  9116. "MKV",
  9117. "WebM",
  9118. "HDDVD",
  9119. "MP4",
  9120. "MPG",
  9121. "M4V",
  9122. "MGV",
  9123. "OGV",
  9124. "QTM",
  9125. "STR",
  9126. "AMC",
  9127. "DVX",
  9128. "EVO",
  9129. "DAT",
  9130. "OGG",
  9131. "OGM",
  9132. ];
  9133. if (type == 1) {
  9134. _this.studyJuri[0].cover.push({
  9135. name: file.name,
  9136. url: data.Location,
  9137. uid: file.uid,
  9138. });
  9139. if (
  9140. c.indexOf(
  9141. _this.studyJuri[0].cover[0].url
  9142. .split(".")
  9143. [
  9144. _this.studyJuri[0].cover[0].url.split(".").length - 1
  9145. ].toLocaleUpperCase()
  9146. ) != -1
  9147. ) {
  9148. _this.fileType = 2;
  9149. } else if (
  9150. b.indexOf(
  9151. _this.studyJuri[0].cover[0].url
  9152. .split(".")
  9153. [
  9154. _this.studyJuri[0].cover[0].url.split(".").length - 1
  9155. ].toLocaleUpperCase()
  9156. ) != -1
  9157. ) {
  9158. _this.fileType = 1;
  9159. } else {
  9160. _this.fileType = 0;
  9161. }
  9162. _this.imgChange(null, null, type);
  9163. } else if (type == 2) {
  9164. _this.upToolImg = data.Location;
  9165. _this.imgChange(null, null, type);
  9166. _this.addCourseWorks(i);
  9167. } else if (type == 4) {
  9168. _this.addPz("3", data.Location);
  9169. } else if (type == 5) {
  9170. _this.addImgDrawImG(data.Location);
  9171. } else if (type == 6) {
  9172. var _ftype = 1;
  9173. if (
  9174. c.indexOf(
  9175. data.Location.split(".")[
  9176. data.Location.split(".").length - 1
  9177. ].toLocaleUpperCase()
  9178. ) != -1
  9179. ) {
  9180. _ftype = 5;
  9181. } else if (
  9182. b.indexOf(
  9183. data.Location.split(".")[
  9184. data.Location.split(".").length - 1
  9185. ].toLocaleUpperCase()
  9186. ) != -1
  9187. ) {
  9188. _ftype = 4;
  9189. } else {
  9190. _ftype = 1;
  9191. }
  9192. _this.plworkFile.push({
  9193. name: file.name,
  9194. url: data.Location,
  9195. uid: file.uid,
  9196. fileType: _ftype,
  9197. username:
  9198. _this.plworkFile.length + 1 > 10
  9199. ? _this.plworkFile.length + 1
  9200. : "0" + (_this.plworkFile.length + 1),
  9201. });
  9202. }
  9203. _this.imgChange(null, null, type);
  9204. console.log(data.Location);
  9205. // _this.$message.success('上传成功'+data.Location)
  9206. }
  9207. });
  9208. }
  9209. }
  9210. },
  9211. beforeUpload2(event, type) {
  9212. var file = event.target.files[0];
  9213. var credentials = {
  9214. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9215. secretAccessKey: "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",
  9216. }; //秘钥形式的登录上传
  9217. window.AWS.config.update(credentials);
  9218. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9219. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9220. var _this = this;
  9221. _this.progress = 0;
  9222. _this.proVisible = true;
  9223. if (file) {
  9224. var params = {
  9225. Key:
  9226. file.name.split(".")[0] +
  9227. new Date().getTime() +
  9228. "." +
  9229. file.name.split(".")[file.name.split(".").length - 1],
  9230. ContentType: file.type,
  9231. Body: file,
  9232. "Access-Control-Allow-Credentials": "*",
  9233. ACL: "public-read",
  9234. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9235. var options = {
  9236. partSize: 2048 * 1024 * 1024,
  9237. queueSize: 2,
  9238. leavePartsOnError: true,
  9239. };
  9240. bucket
  9241. .upload(params, options)
  9242. .on("httpUploadProgress", function (evt) {
  9243. //这里可以写进度条
  9244. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9245. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  9246. })
  9247. .send(function (err, data) {
  9248. _this.progress = 100;
  9249. setTimeout(() => {
  9250. _this.proVisible = false;
  9251. }, 1000);
  9252. if (err) {
  9253. var a = _this.$refs.upload1.uploadFiles;
  9254. a.splice(a.length - 1, a.length);
  9255. _this.$message.error("上传失败");
  9256. } else {
  9257. if (type == 2) {
  9258. _this.studyJuri[0].upVedio.push({
  9259. name: file.name,
  9260. url: data.Location,
  9261. uid: file.uid,
  9262. });
  9263. _this.imgChange(null, null, type);
  9264. } else if (type == 3) {
  9265. _this.studyJuri[0].upFile.push({
  9266. name: file.name,
  9267. url: data.Location,
  9268. uid: file.uid,
  9269. });
  9270. _this.imgChange(null, null, type);
  9271. }
  9272. console.log(data.Location);
  9273. }
  9274. });
  9275. }
  9276. },
  9277. allScrell() {
  9278. window.parent.postMessage({ allScreen: this.screenType }, "*");
  9279. },
  9280. nextOrpreSteps(t) {
  9281. var b = this.chapInfoList.length - 1;
  9282. if (t == 0) {
  9283. if (this.courseType == 0) {
  9284. if (this.taskCount == 0) {
  9285. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  9286. if (this.IsLookOpen) {
  9287. if (
  9288. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  9289. ) {
  9290. if (
  9291. this.courseDetail.userid != this.userid &&
  9292. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  9293. ) {
  9294. this.$message.error("任务未解锁");
  9295. } else {
  9296. this.$message.error("上一任务未解锁");
  9297. }
  9298. return;
  9299. }
  9300. }
  9301. this.navList[this.courseType].isOpen = false;
  9302. this.courseType = b;
  9303. this.taskCount =
  9304. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  9305. .length - 1;
  9306. this.navList[this.courseType].isOpen = true;
  9307. } else {
  9308. this.taskCount--;
  9309. }
  9310. } else {
  9311. if (this.taskCount == 0) {
  9312. this.navList[this.courseType].isOpen = false;
  9313. this.courseType--;
  9314. this.taskCount =
  9315. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  9316. .length - 1;
  9317. this.navList[this.courseType].isOpen = true;
  9318. } else {
  9319. this.taskCount--;
  9320. }
  9321. }
  9322. } else {
  9323. if (this.courseType == b) {
  9324. if (
  9325. this.taskCount ==
  9326. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  9327. 1
  9328. ) {
  9329. this.navList[this.courseType].isOpen = false;
  9330. this.courseType = 0;
  9331. this.taskCount = 0;
  9332. this.navList[this.courseType].isOpen = true;
  9333. } else {
  9334. var bbb = parseInt(this.taskCount) + 1;
  9335. if (
  9336. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  9337. .isLook &&
  9338. this.courseDetail.userid != this.userid &&
  9339. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  9340. this.IsLookOpen
  9341. ) {
  9342. this.$message.error("任务未解锁");
  9343. return;
  9344. }
  9345. this.taskCount++;
  9346. if (this.IsLookOpen) {
  9347. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9348. this.taskCount
  9349. ].isLook = true;
  9350. this.addCourseState(3);
  9351. }
  9352. }
  9353. } else {
  9354. if (
  9355. this.taskCount ==
  9356. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  9357. 1
  9358. ) {
  9359. var bbb = parseInt(this.courseType) + 1;
  9360. if (
  9361. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  9362. this.courseDetail.userid != this.userid &&
  9363. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  9364. this.IsLookOpen
  9365. ) {
  9366. this.$message.error("任务未解锁");
  9367. return;
  9368. }
  9369. this.navList[this.courseType].isOpen = false;
  9370. this.courseType++;
  9371. this.taskCount = 0;
  9372. this.navList[this.courseType].isOpen = true;
  9373. } else {
  9374. var bbb = parseInt(this.taskCount) + 1;
  9375. if (
  9376. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  9377. .isLook &&
  9378. this.courseDetail.userid != this.userid &&
  9379. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  9380. this.IsLookOpen
  9381. ) {
  9382. this.$message.error("任务未解锁");
  9383. return;
  9384. }
  9385. this.taskCount++;
  9386. }
  9387. if (this.IsLookOpen) {
  9388. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9389. this.taskCount
  9390. ].isLook = true;
  9391. this.addCourseState(3);
  9392. }
  9393. }
  9394. // if (
  9395. // this.taskCount ==
  9396. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  9397. // ) {
  9398. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  9399. // } else {
  9400. // this.taskCount++;
  9401. // }
  9402. }
  9403. document.scrollingElement.scrollTop = 0;
  9404. this.showType = 0;
  9405. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  9406. // if (this.vedio[this.taskCount].length > 0) {
  9407. // var a =
  9408. // document.getElementsByClassName("box_course")[this.taskCount]
  9409. // .offsetHeight;
  9410. // document.getElementsByClassName("vedioList")[
  9411. // this.taskCount
  9412. // ].style.height = a + "px";
  9413. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  9414. // a - 40 + "px";
  9415. // }
  9416. this.isNoHomeWork = false;
  9417. (this.studyJuri = [
  9418. {
  9419. content: "",
  9420. cover: [],
  9421. upVedio: [],
  9422. upFile: [],
  9423. },
  9424. ]),
  9425. (this.radio = []);
  9426. this.isClickNav = "";
  9427. this.selectPz();
  9428. this.getHomeWork();
  9429. this.getCourseDetail();
  9430. this.$forceUpdate();
  9431. },
  9432. openTask(s, n, i) {
  9433. if (this.IsLookOpen) {
  9434. if (
  9435. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  9436. this.courseDetail.userid != this.userid &&
  9437. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  9438. ) {
  9439. this.$message.error("任务未解锁");
  9440. return;
  9441. }
  9442. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  9443. if (
  9444. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  9445. .isLook
  9446. ) {
  9447. this.$message.error("上一任务未解锁");
  9448. return;
  9449. }
  9450. } else if (s > this.courseType) {
  9451. if (n > 0) {
  9452. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  9453. this.$message.error("上一任务未解锁");
  9454. return;
  9455. }
  9456. } else {
  9457. if (
  9458. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  9459. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  9460. ].isLook
  9461. ) {
  9462. this.$message.error("上一任务未解锁");
  9463. return;
  9464. }
  9465. }
  9466. }
  9467. }
  9468. this.courseType = s;
  9469. this.navId = i;
  9470. this.taskCount = n;
  9471. if (this.IsLookOpen) {
  9472. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9473. this.taskCount
  9474. ].isLook = true;
  9475. this.addCourseState(3);
  9476. }
  9477. this.showType = 0;
  9478. this.isNoHomeWork = false;
  9479. (this.studyJuri = [
  9480. {
  9481. content: "",
  9482. cover: [],
  9483. upVedio: [],
  9484. upFile: [],
  9485. },
  9486. ]),
  9487. (this.radio = []);
  9488. document.scrollingElement.scrollTop = 0;
  9489. // setTimeout(() => {
  9490. // let a = document.getElementById(i);
  9491. // if (a.offsetTop - 110 == 0) {
  9492. // window.scrollTo(0, 0);
  9493. // } else {
  9494. // window.scrollTo(0, a.offsetTop);
  9495. // }
  9496. // }, 0);
  9497. this.selectPz();
  9498. this.getHomeWork();
  9499. this.getCourseDetail();
  9500. },
  9501. get(i) {
  9502. this.navList[i].isOpen = !this.navList[i].isOpen;
  9503. },
  9504. addQuestion() {
  9505. this.answerList.push({
  9506. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  9507. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  9508. });
  9509. let params = [
  9510. {
  9511. uid: this.userid,
  9512. cid: this.id,
  9513. stage: this.courseType,
  9514. task: this.taskCount,
  9515. tool: this.toolindex,
  9516. content: JSON.stringify(this.answerList),
  9517. type: 3,
  9518. },
  9519. ];
  9520. this.ajax
  9521. .post(this.$store.state.api + "addCourseWorks", params)
  9522. .then((res) => {
  9523. this.$message({
  9524. message: "提交成功",
  9525. type: "success",
  9526. });
  9527. this.answerList = [];
  9528. this.answerDialogVisible = false;
  9529. this.selectStudent();
  9530. this.selectSWorks();
  9531. this.selectSLook();
  9532. })
  9533. .catch((err) => {
  9534. this.$message.error("提交失败");
  9535. console.error(err);
  9536. });
  9537. },
  9538. getCourseDetail(type, gindex) {
  9539. let loading;
  9540. if (type != 2) {
  9541. loading = this.$loading.service({
  9542. background: "rgba(255, 255, 255, 0.7)",
  9543. target: document.querySelector(".student_table"),
  9544. });
  9545. }
  9546. // this.navList[0].isOpen = false;
  9547. // this.navList[this.courseType].isOpen = true;
  9548. // this.courseType = this.courseTypeLine;
  9549. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  9550. let params = {
  9551. courseId: this.id,
  9552. };
  9553. this.ajax
  9554. .get(this.$store.state.api + "selectCourseDetail2", params)
  9555. .then((res) => {
  9556. if (type != 2) {
  9557. loading.close();
  9558. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  9559. .chapterInfo[0].taskJson;
  9560. var b = [
  9561. "AVI",
  9562. "NAVI",
  9563. "MPEG",
  9564. "ASF",
  9565. "MOV",
  9566. "WMV",
  9567. "3GP",
  9568. "RM",
  9569. "RMVB",
  9570. "FLV",
  9571. "F4V",
  9572. "H.264",
  9573. "H.265",
  9574. "REAL VIDEO",
  9575. "MKV",
  9576. "WebM",
  9577. "HDDVD",
  9578. "MP4",
  9579. "MPG",
  9580. "M4V",
  9581. "MGV",
  9582. "OGV",
  9583. "QTM",
  9584. "STR",
  9585. "AMC",
  9586. "DVX",
  9587. "EVO",
  9588. "DAT",
  9589. "OGG",
  9590. "OGM",
  9591. ];
  9592. for (var i = 0; i < a.length; i++) {
  9593. var c = a[i].chapterData;
  9594. this.vedio[i] = [];
  9595. this.textList[i] = [];
  9596. this.lineList[i] = [];
  9597. this.chapToolList[i] = [];
  9598. this.file[i] = [];
  9599. for (var j = 0; j < c.length; j++) {
  9600. if (c[j].type == 7) {
  9601. this.chapToolList[i].push(c[j]);
  9602. } else if (c[j].type == 8) {
  9603. this.lineList[i].push(c[j]);
  9604. } else if (c[j].type == 6) {
  9605. this.textList[i].push(c[j]);
  9606. } else {
  9607. if (
  9608. b.indexOf(
  9609. c[j].url
  9610. .split(".")
  9611. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  9612. ) != -1
  9613. ) {
  9614. this.vedio[i].push(c[j]);
  9615. } else {
  9616. this.file[i].push(c[j]);
  9617. }
  9618. }
  9619. }
  9620. var d = JSON.parse(JSON.stringify(this.playerOptions));
  9621. d.sources[0].src =
  9622. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  9623. this.playerO[i] = d;
  9624. }
  9625. this.courseDetail = res.data[0][0];
  9626. this.evalua = res.data[0][0].evaId;
  9627. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  9628. this.courseType
  9629. ];
  9630. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  9631. // if (this.navList.length == 0) {
  9632. // this.navList = [];
  9633. // for (var l = 0; l < this.chapInfoList.length; l++) {
  9634. // var q = this.chapInfoList[l].dyName;
  9635. // var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  9636. // var e;
  9637. // this.navList.push({
  9638. // dyName: q,
  9639. // isOpen: l === 0 ? true : false,
  9640. // task: [],
  9641. // });
  9642. // for (var r = 0; r < w.length; r++) {
  9643. // e = w[r].task;
  9644. // this.navList[l].task.push({ taskName: e, id: l + "-" + r });
  9645. // this.navId = this.navId ? this.navId : l + "-" + r;
  9646. // }
  9647. // }
  9648. // }
  9649. // this.navList[0].isOpen = false;
  9650. // this.navList[this.courseType].isOpen = true;
  9651. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  9652. for (var l = 0; l < this.chapInfoList.length; l++) {
  9653. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  9654. for (var m = 0; m < w.length; m++) {
  9655. w[m].id = l + "-" + m;
  9656. }
  9657. }
  9658. if (
  9659. !this.vedio[this.taskCount][0] ||
  9660. this.vedio[this.taskCount][0].url == ""
  9661. ) {
  9662. if (
  9663. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9664. this.taskCount
  9665. ].chapterData.length > 0
  9666. ) {
  9667. // if (
  9668. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9669. // this.taskCount
  9670. // ].chapterData[0].type != 8
  9671. // ) {
  9672. let _url =
  9673. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9674. this.taskCount
  9675. ].chapterData[0].url;
  9676. if (
  9677. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9678. this.taskCount
  9679. ].chapterData[0].type == 8
  9680. ) {
  9681. this.showType = 2;
  9682. if (
  9683. _url.indexOf("https://") == -1 &&
  9684. _url.indexOf("http://") == -1
  9685. ) {
  9686. _url = "https://" + _url;
  9687. }
  9688. this.pptImgUrl1 = _url;
  9689. this.isClickNav = "line0";
  9690. } else if (
  9691. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9692. this.taskCount
  9693. ].chapterData[0].type == 3
  9694. ) {
  9695. if (
  9696. _url
  9697. .split(".")
  9698. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9699. ) {
  9700. this.showType = 3;
  9701. this.pptImgUrl1 = _url;
  9702. this.isClickNav = "word0";
  9703. } else if (
  9704. this.isAssetTypeAnImage(
  9705. _url
  9706. .split(".")
  9707. [_url.split(".").length - 1].toLocaleLowerCase()
  9708. )
  9709. ) {
  9710. this.showType = 4;
  9711. this.pptImgUrl1 = _url;
  9712. this.isClickNav = "word0";
  9713. } else {
  9714. this.showType = 2;
  9715. this.pptImgUrl1 =
  9716. "https://view.officeapps.live.com/op/view.aspx?src=" +
  9717. _url;
  9718. this.isClickNav = "word0";
  9719. }
  9720. } else if (
  9721. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9722. this.taskCount
  9723. ].chapterData[0].type == 6
  9724. ) {
  9725. this.showType = 1;
  9726. this.text = this.textList[this.taskCount][0];
  9727. this.isClickNav = "text0";
  9728. }
  9729. // }
  9730. // else {
  9731. // for (
  9732. // var y = 0;
  9733. // y <
  9734. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9735. // this.taskCount
  9736. // ].chapterData.length;
  9737. // y++
  9738. // ) {
  9739. // if (
  9740. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9741. // this.taskCount
  9742. // ].chapterData[y].type != 8
  9743. // ) {
  9744. // if (
  9745. // this.chapInfoList[this.courseType].chapterInfo[0]
  9746. // .taskJson[this.taskCount].chapterData[y].type == 3
  9747. // ) {
  9748. // let _url =
  9749. // this.chapInfoList[this.courseType].chapterInfo[0]
  9750. // .taskJson[this.taskCount].chapterData[y].url;
  9751. // if (
  9752. // _url
  9753. // .split(".")
  9754. // [_url.split(".").length - 1].toLocaleUpperCase() ==
  9755. // "PDF"
  9756. // ) {
  9757. // this.showType = 3;
  9758. // this.pptImgUrl1 = _url;
  9759. // } else if (
  9760. // this.isAssetTypeAnImage(
  9761. // _url
  9762. // .split(".")
  9763. // [_url.split(".").length - 1].toLocaleLowerCase()
  9764. // )
  9765. // ) {
  9766. // this.showType = 4;
  9767. // this.pptImgUrl1 = _url;
  9768. // } else {
  9769. // this.showType = 2;
  9770. // this.pptImgUrl1 =
  9771. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  9772. // _url;
  9773. // }
  9774. // } else if (
  9775. // this.chapInfoList[this.courseType].chapterInfo[0]
  9776. // .taskJson[this.taskCount].chapterData[y].type == 6
  9777. // ) {
  9778. // this.showType = 1;
  9779. // this.text = this.textList[this.taskCount][0];
  9780. // }
  9781. // } else {
  9782. // this.showType = 2;
  9783. // this.pptImgUrl1 =
  9784. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  9785. // _url;
  9786. // }
  9787. // }
  9788. // }
  9789. }
  9790. } else {
  9791. this.isClickNav = "video0";
  9792. }
  9793. } else {
  9794. this.courseDetail = res.data[0][0];
  9795. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  9796. }
  9797. this.$nextTick(() => {
  9798. setTimeout(() => {
  9799. this.checkEva();
  9800. }, 1000);
  9801. });
  9802. this.selectStudent();
  9803. this.selectSWorks(gindex);
  9804. this.selectSLook();
  9805. let _this = this;
  9806. if (_this.timer) {
  9807. clearInterval(_this.timer);
  9808. _this.timer = null;
  9809. }
  9810. if (this.dialogVisibleGroup) {
  9811. this.groupJson =
  9812. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9813. this.taskCount
  9814. ].toolChoose[this.toolindex].groupJson;
  9815. // this.$forceUpdate();
  9816. }
  9817. _this.timer = setInterval(function () {
  9818. // _this.selectSWorks();
  9819. // _this.selectStudent();
  9820. // _this.selectSLook();
  9821. _this.getCourseDetail(2);
  9822. if (_this.tType == 4) {
  9823. _this.selectPz();
  9824. }
  9825. }, 5000);
  9826. _this.$nextTick(function () {
  9827. setTimeout(() => {
  9828. // var a =
  9829. // document.getElementsByClassName("box_course")[0].offsetHeight;
  9830. // document.getElementsByClassName("vedioList")[0].style.height =
  9831. // a + "px";
  9832. // document.getElementsByClassName("navBox")[0].style.height =
  9833. // a - 40 + "px";
  9834. if (_this.vedio[_this.taskCount].length > 0) {
  9835. _this.vedioTime = [];
  9836. for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  9837. _this.vedioTime[i] = document.getElementsByClassName(
  9838. "vjs-duration-display"
  9839. )[i].textContent;
  9840. }
  9841. }
  9842. }, 1000);
  9843. });
  9844. })
  9845. .catch((err) => {
  9846. loading.close();
  9847. console.error(err);
  9848. });
  9849. },
  9850. addPz(type, content) {
  9851. if (type == "1" && this.pzConText == "") {
  9852. this.$message.error("批注不能为空!");
  9853. return;
  9854. }
  9855. let params = [
  9856. {
  9857. cid: this.id,
  9858. uid: this.userid,
  9859. s: this.courseType,
  9860. t: this.taskCount,
  9861. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  9862. type: type,
  9863. },
  9864. ];
  9865. this.ajax
  9866. .post(this.$store.state.api + "addPz2", params)
  9867. .then((res) => {
  9868. this.$message({
  9869. message: "添加成功",
  9870. type: "success",
  9871. });
  9872. this.pzConText = "";
  9873. this.addPzDialog = false;
  9874. this.selectPz();
  9875. })
  9876. .catch((err) => {
  9877. this.$message.error("添加失败");
  9878. console.error(err);
  9879. });
  9880. },
  9881. deletePz(id) {
  9882. this.$confirm("确定删除此批注吗?", "提示", {
  9883. confirmButtonText: "确定",
  9884. cancelButtonText: "取消",
  9885. type: "warning",
  9886. })
  9887. .then(() => {
  9888. let params = [
  9889. {
  9890. id: id,
  9891. },
  9892. ];
  9893. this.ajax
  9894. .post(this.$store.state.api + "deletePz", params)
  9895. .then((res) => {
  9896. this.$message({
  9897. message: "删除成功",
  9898. type: "success",
  9899. });
  9900. this.selectPz();
  9901. })
  9902. .catch((err) => {
  9903. this.$message.error("网络异常");
  9904. console.error(err);
  9905. });
  9906. })
  9907. .catch(() => {});
  9908. },
  9909. selectPz() {
  9910. let params = {
  9911. cid: this.id,
  9912. s: this.courseType,
  9913. t: this.taskCount,
  9914. };
  9915. this.ajax
  9916. .get(this.$store.state.api + "selectPzList", params)
  9917. .then((res) => {
  9918. this.pzList = res.data[0];
  9919. })
  9920. .catch((err) => {
  9921. console.error(err);
  9922. });
  9923. },
  9924. updateSLook() {
  9925. let params = {
  9926. sopen: this.sIsOpen == false ? 1 : 2,
  9927. cid: this.id,
  9928. };
  9929. this.ajax
  9930. .get(this.$store.state.api + "updateCourseSLook", params)
  9931. .then((res) => {
  9932. if (this.sIsOpen == true) {
  9933. this.$message({
  9934. message: "权限设置成功",
  9935. type: "success",
  9936. });
  9937. } else {
  9938. this.$message({
  9939. message: "权限关闭成功",
  9940. type: "success",
  9941. });
  9942. }
  9943. })
  9944. .catch((err) => {
  9945. console.error(err);
  9946. });
  9947. },
  9948. updateLookOpen() {
  9949. let params = [
  9950. {
  9951. sopen: this.IsLookOpen == false ? 1 : 2,
  9952. cid: this.id,
  9953. },
  9954. ];
  9955. this.ajax
  9956. .post(this.$store.state.api + "updateCourseLookOpen", params)
  9957. .then((res) => {
  9958. if (this.IsLookOpen == true) {
  9959. // if (this.courseType != 0 && this.taskCount != 0) {
  9960. // this.openTask(0, 0, "0-0");
  9961. // }
  9962. this.$message({
  9963. message: "权限设置成功",
  9964. type: "success",
  9965. });
  9966. } else {
  9967. this.$message({
  9968. message: "权限关闭成功",
  9969. type: "success",
  9970. });
  9971. }
  9972. this.getCourseState(2);
  9973. })
  9974. .catch((err) => {
  9975. console.error(err);
  9976. });
  9977. },
  9978. selectSLook() {
  9979. let params = {
  9980. cid: this.id,
  9981. };
  9982. this.ajax
  9983. .get(this.$store.state.api + "selectCourseSLook", params)
  9984. .then((res) => {
  9985. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  9986. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  9987. if (!this.IsLookOpen) {
  9988. this.setNavList();
  9989. } else {
  9990. this.getCourseState(1);
  9991. }
  9992. })
  9993. .catch((err) => {
  9994. console.error(err);
  9995. });
  9996. },
  9997. setNavList() {
  9998. if (this.navList.length == 0) {
  9999. this.navList = [];
  10000. for (var l = 0; l < this.chapInfoList.length; l++) {
  10001. var q = this.chapInfoList[l].dyName;
  10002. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  10003. var e;
  10004. this.navList.push({
  10005. dyName: q,
  10006. isOpen: l === 0 ? true : false,
  10007. task: [],
  10008. });
  10009. for (var r = 0; r < w.length; r++) {
  10010. e = w[r].task;
  10011. this.navList[l].task.push({
  10012. taskName: e,
  10013. id: l + "-" + r,
  10014. isLook: w[r].isLook,
  10015. });
  10016. // this.navId = this.navId ? this.navId : l + "-" + r;
  10017. // this.navId = l + "-" + r;
  10018. }
  10019. }
  10020. this.navList[0].isOpen = false;
  10021. this.navList[this.courseType].isOpen = true;
  10022. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  10023. } else {
  10024. this.setNavList2();
  10025. }
  10026. },
  10027. setNavList2() {
  10028. for (var l = 0; l < this.chapInfoList.length; l++) {
  10029. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  10030. for (var r = 0; r < w.length; r++) {
  10031. this.navList[l].task[r].isLook = w[r].isLook;
  10032. }
  10033. }
  10034. if (
  10035. this.IsLookOpen &&
  10036. !this.navList[this.courseType].task[this.taskCount].isLook
  10037. ) {
  10038. this.openTask(0, 0, "0-0");
  10039. }
  10040. this.$forceUpdate();
  10041. },
  10042. getCourseState(type) {
  10043. let params = {
  10044. cid: this.id,
  10045. };
  10046. this.ajax
  10047. .get(this.$store.state.api + "getCourseState", params)
  10048. .then((res) => {
  10049. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  10050. this.chapInfoList = JSON.parse(res.data[0][0].state);
  10051. this.setNavList();
  10052. this.$forceUpdate();
  10053. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  10054. this.addCourseState(2);
  10055. } else {
  10056. this.addCourseState(1);
  10057. }
  10058. })
  10059. .catch((err) => {
  10060. console.error(err);
  10061. });
  10062. },
  10063. addCourseState(type) {
  10064. let _state = this.chapInfoList;
  10065. // this.courseType this.taskCount
  10066. if (type == 1 || type == 2) {
  10067. for (var i = 0; i < _state.length; i++) {
  10068. let el = _state[i].chapterInfo[0].taskJson;
  10069. for (var j = 0; j < el.length; j++) {
  10070. // if (i == 0 && j == 0) {
  10071. // el[j].isLook = true;
  10072. // } else {
  10073. // el[j].isLook = false;
  10074. // }
  10075. if (
  10076. this.courseType > i ||
  10077. (this.courseType == i && this.taskCount + 1 > j)
  10078. ) {
  10079. el[j].isLook = true;
  10080. } else {
  10081. el[j].isLook = false;
  10082. }
  10083. }
  10084. }
  10085. }
  10086. let params = [
  10087. {
  10088. cid: this.id,
  10089. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  10090. },
  10091. ];
  10092. this.ajax
  10093. .post(
  10094. this.$store.state.api +
  10095. (type == 1 ? "addCourseState" : "updateCourseSate"),
  10096. params
  10097. )
  10098. .then((res) => {
  10099. if (this.IsLookOpen) {
  10100. this.setNavList();
  10101. }
  10102. if (type == 3 && type == 2) {
  10103. this.getCourseState(1);
  10104. }
  10105. })
  10106. .catch((err) => {
  10107. console.error(err);
  10108. });
  10109. },
  10110. getHomeWork() {
  10111. let params = {
  10112. cid: this.id,
  10113. stage: this.courseType,
  10114. task: this.taskCount,
  10115. uid: this.userid,
  10116. };
  10117. this.ajax
  10118. .get(this.$store.state.api + "selectWork", params)
  10119. .then((res) => {
  10120. if (res.data[0].length > 0) {
  10121. this.studyJuri = JSON.parse(res.data[0][0].content);
  10122. this.isNoHomeWork = true;
  10123. }
  10124. })
  10125. .catch((err) => {
  10126. console.error(err);
  10127. });
  10128. },
  10129. isAssetTypeAnImage(ext) {
  10130. return (
  10131. [
  10132. "png",
  10133. "jpg",
  10134. "jpeg",
  10135. "bmp",
  10136. "gif",
  10137. "webp",
  10138. "psd",
  10139. "svg",
  10140. "tiff",
  10141. ].indexOf(ext) !== -1
  10142. );
  10143. },
  10144. switchVideo(media) {
  10145. this.playerO = {};
  10146. this.playerOptions.poster = "";
  10147. this.playerOptions.sources[0].src = media;
  10148. this.playerO = this.playerOptions;
  10149. },
  10150. onPlayerPlay() {},
  10151. lookVedio(u, i) {
  10152. this.isClickNav = "";
  10153. // this.playerOptions.sources[0].src = u;
  10154. var d = JSON.parse(JSON.stringify(this.playerOptions));
  10155. d.sources[0].src = u;
  10156. this.playerO[this.taskCount] = d;
  10157. this.showType = 0;
  10158. this.isClickNav = "video" + i;
  10159. this.$forceUpdate();
  10160. },
  10161. lookText(i, t) {
  10162. this.isClickNav = "";
  10163. this.text = this.textList[i][t];
  10164. // this.dialogVisible1 = true;
  10165. this.showType = 1;
  10166. this.isClickNav = "text" + t;
  10167. },
  10168. lookTools(i, t) {
  10169. this.chapTools = this.chapToolList[i][t];
  10170. this.dialogVisible2 = true;
  10171. },
  10172. openFile(f) {
  10173. this.pptImgUrl = "";
  10174. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  10175. if (
  10176. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  10177. -1
  10178. ) {
  10179. this.pptImgUrl =
  10180. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  10181. this.showPDF = false;
  10182. this.dialogVisible3 = true;
  10183. } else if (
  10184. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  10185. ) {
  10186. this.pptImgUrl = f;
  10187. this.showPDF = true;
  10188. this.dialogVisible3 = true;
  10189. }
  10190. },
  10191. openTable(f) {
  10192. this.tableJson = JSON.parse(f.works);
  10193. this.dialogVisibleTable2 = true;
  10194. },
  10195. doUrl(url, i) {
  10196. this.isClickNav = "";
  10197. this.pptImgUrl1 = "";
  10198. this.showType = 2;
  10199. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  10200. url = "https://" + url;
  10201. }
  10202. this.pptImgUrl1 = url;
  10203. this.isClickNav = "line" + i;
  10204. },
  10205. downFile(f, i) {
  10206. this.isClickNav = "";
  10207. this.pptImgUrl1 = "";
  10208. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  10209. if (
  10210. a.indexOf(
  10211. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  10212. ) != -1
  10213. ) {
  10214. this.pptImgUrl1 =
  10215. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  10216. // this.dialogVisible3 = true;
  10217. this.showType = 2;
  10218. } else if (
  10219. this.isAssetTypeAnImage(
  10220. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  10221. )
  10222. ) {
  10223. this.showType = 4;
  10224. this.pptImgUrl1 = f.url;
  10225. } else if (
  10226. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  10227. "PDF"
  10228. ) {
  10229. this.pptImgUrl1 = f.url;
  10230. // this.dialogVisible3 = true;
  10231. this.showType = 3;
  10232. } else {
  10233. window.open(this.file[i].url);
  10234. }
  10235. this.isClickNav = "word" + i;
  10236. },
  10237. downFileList(i) {
  10238. window.open(this.noImgList[i].url);
  10239. },
  10240. openAddWork() {
  10241. this.dialogVisible = true;
  10242. },
  10243. addBzWorks() {
  10244. let params = [
  10245. {
  10246. uid: this.userid,
  10247. cid: this.id,
  10248. stage: this.courseType,
  10249. task: this.taskCount,
  10250. tool: this.toolindex,
  10251. content: JSON.stringify(this.eScore),
  10252. type: 6,
  10253. },
  10254. ];
  10255. this.ajax
  10256. .post(this.$store.state.api + "addCourseWorks", params)
  10257. .then((res) => {
  10258. this.$message({
  10259. message: "提交成功",
  10260. type: "success",
  10261. });
  10262. this.eScore = { eBzText: "", eStar: [] };
  10263. this.studentEvalDialogVisible = false;
  10264. this.selectSWorks();
  10265. })
  10266. .catch((err) => {
  10267. this.$message.error("提交失败");
  10268. console.error(err);
  10269. });
  10270. },
  10271. addStudentAsk() {
  10272. if (!this.radio.length) {
  10273. this.$message.error("请选择选项");
  10274. return;
  10275. }
  10276. for (var i = 0; i < this.askJson.askCount; i++) {
  10277. if (this.radio[i] !== 0 && !this.radio[i]) {
  10278. this.$message.error("请选择选项");
  10279. return;
  10280. }
  10281. }
  10282. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  10283. let params = [
  10284. {
  10285. uid: this.userid,
  10286. cid: this.id,
  10287. stage: this.courseType,
  10288. task: this.taskCount,
  10289. tool: this.toolindex,
  10290. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  10291. type: 2,
  10292. },
  10293. ];
  10294. this.ajax
  10295. .post(this.$store.state.api + "addCourseWorks", params)
  10296. .then((res) => {
  10297. this.$message({
  10298. message: "提交成功",
  10299. type: "success",
  10300. });
  10301. this.askList = [];
  10302. this.dialogVisible5 = false;
  10303. this.selectStudent();
  10304. this.selectSWorks();
  10305. this.selectSLook();
  10306. })
  10307. .catch((err) => {
  10308. this.$message.error("提交失败");
  10309. console.error(err);
  10310. });
  10311. },
  10312. addStudentTest() {
  10313. if (!this.radio.length) {
  10314. this.$message.error("请选择选项");
  10315. return;
  10316. }
  10317. for (var i = 0; i < this.testJson.testCount; i++) {
  10318. if (
  10319. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  10320. (this.radio[i] !== 0 && !this.radio[i])
  10321. ) {
  10322. this.$message.error("请选择选项");
  10323. return;
  10324. }
  10325. }
  10326. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  10327. let params = [
  10328. {
  10329. uid: this.userid,
  10330. cid: this.id,
  10331. stage: this.courseType,
  10332. task: this.taskCount,
  10333. tool: this.toolindex,
  10334. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  10335. type: 8,
  10336. },
  10337. ];
  10338. this.ajax
  10339. .post(this.$store.state.api + "addCourseWorks", params)
  10340. .then((res) => {
  10341. this.$message({
  10342. message: "提交成功",
  10343. type: "success",
  10344. });
  10345. this.askList = [];
  10346. this.dialogVisibleChoice = false;
  10347. this.selectStudent();
  10348. this.selectSWorks();
  10349. this.selectSLook();
  10350. })
  10351. .catch((err) => {
  10352. this.$message.error("提交失败");
  10353. console.error(err);
  10354. });
  10355. },
  10356. addWork() {
  10357. if (this.studyJuri[0].content == "") {
  10358. this.$message.error("请将信息填写完整");
  10359. return;
  10360. } else if (this.studyJuri[0].cover.length == 0) {
  10361. this.$message.error("请将信息填写完整");
  10362. return;
  10363. } else if (this.studyJuri[0].upVedio.length == 0) {
  10364. this.$message.error("请将信息填写完整");
  10365. return;
  10366. }
  10367. if (this.isNoHomeWork) {
  10368. this.$confirm(
  10369. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  10370. "提示",
  10371. {
  10372. confirmButtonText: "确定",
  10373. cancelButtonText: "取消",
  10374. type: "warning",
  10375. }
  10376. )
  10377. .then(() => {
  10378. let params = [
  10379. {
  10380. uid: this.userid,
  10381. cid: this.id,
  10382. stage: this.courseType,
  10383. task: this.taskCount,
  10384. content: JSON.stringify(this.studyJuri),
  10385. },
  10386. ];
  10387. this.ajax
  10388. .post(this.$store.state.api + "addWorks", params)
  10389. .then((res) => {
  10390. this.$message({
  10391. message: "提交成功",
  10392. type: "success",
  10393. });
  10394. this.isNoHomeWork = true;
  10395. this.dialogVisible = false;
  10396. })
  10397. .catch((err) => {
  10398. this.$message.error("提交失败");
  10399. console.error(err);
  10400. });
  10401. })
  10402. .catch(() => {});
  10403. } else {
  10404. let params = [
  10405. {
  10406. uid: this.userid,
  10407. cid: this.id,
  10408. stage: this.courseType,
  10409. task: this.taskCount,
  10410. content: JSON.stringify(this.studyJuri),
  10411. },
  10412. ];
  10413. this.ajax
  10414. .post(this.$store.state.api + "addWorks", params)
  10415. .then((res) => {
  10416. this.$message({
  10417. message: "提交成功",
  10418. type: "success",
  10419. });
  10420. this.isNoHomeWork = true;
  10421. this.dialogVisible = false;
  10422. })
  10423. .catch((err) => {
  10424. this.$message.error("提交失败");
  10425. console.error(err);
  10426. });
  10427. }
  10428. },
  10429. selectCount() {
  10430. let params = {
  10431. cid: this.id,
  10432. chid: this.courseType,
  10433. uid: this.userid,
  10434. };
  10435. this.ajax
  10436. .get(this.$store.state.api + "selectToolsCount", params)
  10437. .then((res) => {
  10438. for (var i = 0; i < res.data[0].length; i++) {
  10439. if (res.data[0][i].tools == 1) {
  10440. this.wbCount = res.data[0][i].count;
  10441. } else if (res.data[0][i].tools == 2) {
  10442. this.wordCount = res.data[0][i].count;
  10443. } else if (res.data[0][i].tools == 3) {
  10444. this.mindCount = res.data[0][i].count;
  10445. } else if (res.data[0][i].tools == 4) {
  10446. this.askCount = res.data[0][i].count;
  10447. } else if (res.data[0][i].tools == 6) {
  10448. this.noteCount = res.data[0][i].count;
  10449. } else if (res.data[0][i].tools == 7) {
  10450. this.mindNetWorkCount = res.data[0][i].count;
  10451. } else if (res.data[0][i].tools == 8) {
  10452. this.libraryCount = res.data[0][i].count;
  10453. } else if (res.data[0][i].tools == 16) {
  10454. this.workCount = res.data[0][i].count;
  10455. } else if (res.data[0][i].tools == 10) {
  10456. this.timeCount = res.data[0][i].count;
  10457. } else if (res.data[0][i].tools == 15) {
  10458. this.answerCount = res.data[0][i].count;
  10459. } else if (res.data[0][i].tools == 18) {
  10460. this.trainCount = res.data[0][i].count;
  10461. }
  10462. }
  10463. })
  10464. .catch((err) => {
  10465. console.error(err);
  10466. });
  10467. },
  10468. openTools(t, i, index, c, sName) {
  10469. var z = JSON.parse(c);
  10470. this.noteName = sName;
  10471. if (t == 4) {
  10472. this.radio = [];
  10473. this.isAnswer = false;
  10474. for (var i = 0; i < z.length; i++) {
  10475. let a = z[i];
  10476. let b = a.anwer.split(",");
  10477. let d = [];
  10478. for (var j = 0; j < b.length; j++) {
  10479. d.push(parseInt(b[j]));
  10480. }
  10481. this.radio = d;
  10482. this.askJson = a.askJson;
  10483. }
  10484. this.isAnswer = true;
  10485. this.dialogVisible5 = true;
  10486. } else if (t == 45) {
  10487. this.radio = [];
  10488. this.isAnswer = false;
  10489. let b = z[0].anwer;
  10490. this.radio = b;
  10491. this.testJson = z[0].testJson;
  10492. this.isAnswer = true;
  10493. this.dialogVisibleChoice = true;
  10494. }
  10495. // else if (t == 15) {
  10496. // this.answerQ = "";
  10497. // this.questionAnswer = "";
  10498. // this.answerQ = z[0].answerTitle;
  10499. // this.questionAnswer = z[0].answer;
  10500. // this.answerDialogVisible = true;
  10501. // }
  10502. },
  10503. fastText(p, t) {
  10504. if (t == 1) {
  10505. this.commentText += p;
  10506. } else {
  10507. this.eScore.eBzText += p;
  10508. }
  10509. },
  10510. addTools(t, i, index) {
  10511. var a = 0;
  10512. // this.taskCount = index;
  10513. this.toolindex = i;
  10514. if (t == 1) {
  10515. if (this.wbCount > 0) {
  10516. this.updateCount(this.wbCount, t);
  10517. } else {
  10518. this.wbCount++;
  10519. a = this.wbCount;
  10520. this.toolsCount(a, t);
  10521. }
  10522. window.parent.postMessage(
  10523. {
  10524. tools: "1",
  10525. cid: this.id,
  10526. stage: this.courseType,
  10527. task: this.taskCount,
  10528. tool: i,
  10529. },
  10530. "*"
  10531. );
  10532. } else if (t == 2) {
  10533. if (this.wordCount > 0) {
  10534. this.updateCount(this.wordCount, t);
  10535. } else {
  10536. this.wordCount++;
  10537. a = this.wordCount;
  10538. this.toolsCount(a, t);
  10539. }
  10540. window.parent.postMessage({ tools: "2" }, "*");
  10541. } else if (t == 3) {
  10542. if (this.mindCount > 0) {
  10543. this.updateCount(this.mindCount, t);
  10544. } else {
  10545. this.mindCount++;
  10546. a = this.mindCount;
  10547. this.toolsCount(a, t);
  10548. }
  10549. window.parent.postMessage(
  10550. {
  10551. tools: "3",
  10552. cid: this.id,
  10553. stage: this.courseType,
  10554. task: this.taskCount,
  10555. tool: i,
  10556. },
  10557. "*"
  10558. );
  10559. } else if (t == 4) {
  10560. this.radio = [];
  10561. this.noteName = "";
  10562. this.isAnswer = false;
  10563. if (this.askCount > 0) {
  10564. this.updateCount(this.askCount, t);
  10565. } else {
  10566. this.askCount++;
  10567. a = this.askCount;
  10568. this.toolsCount(a, t);
  10569. }
  10570. if (!this.dialogVisible2) {
  10571. this.askJson.askJson =
  10572. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10573. index
  10574. ].toolChoose[i].askJson;
  10575. this.askJson.askTitle =
  10576. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10577. index
  10578. ].toolChoose[i].askTitle;
  10579. this.askJson.askCount =
  10580. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10581. index
  10582. ].toolChoose[i].askCount;
  10583. } else {
  10584. this.askJson.askJson = this.chapTools.askJson.askJson;
  10585. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  10586. this.askJson.askCount = this.chapTools.askJson.askCount;
  10587. }
  10588. this.dialogVisible5 = true;
  10589. // window.parent.postMessage({ tools: "4" }, "*");
  10590. } else if (t == 45) {
  10591. this.noteName = "";
  10592. this.radio = [];
  10593. this.isAnswer = false;
  10594. if (this.askCount > 0) {
  10595. this.updateCount(this.askCount, t);
  10596. } else {
  10597. this.askCount++;
  10598. a = this.askCount;
  10599. this.toolsCount(a, t);
  10600. }
  10601. this.testJson =
  10602. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10603. index
  10604. ].toolChoose[i].testJson;
  10605. for (var k = 0; k < this.testJson.testJson.length; k++) {
  10606. if (this.testJson.testJson[k].type == "2") {
  10607. this.radio.push([]);
  10608. } else {
  10609. this.radio.push("");
  10610. }
  10611. }
  10612. this.dialogVisibleChoice = true;
  10613. // window.parent.postMessage({ tools: "4" }, "*");
  10614. } else if (t == 5) {
  10615. if (this.scoreCount > 0) {
  10616. this.updateCount(this.scoreCount, t);
  10617. } else {
  10618. this.scoreCount++;
  10619. a = this.scoreCount;
  10620. this.toolsCount(a, t);
  10621. }
  10622. this.dialogVisible4 = true;
  10623. // window.parent.postMessage({ tools: "5" }, "*");
  10624. } else if (t == 6) {
  10625. if (this.noteCount > 0) {
  10626. this.updateCount(this.noteCount, t);
  10627. } else {
  10628. this.noteCount++;
  10629. a = this.noteCount;
  10630. this.toolsCount(a, t);
  10631. }
  10632. window.parent.postMessage(
  10633. {
  10634. tools: "6",
  10635. cid: this.id,
  10636. stage: this.courseType,
  10637. task: this.taskCount,
  10638. tool: i,
  10639. },
  10640. "*"
  10641. );
  10642. } else if (t == 7) {
  10643. if (this.mindNetWorkCount > 0) {
  10644. this.updateCount(this.mindNetWorkCount, t);
  10645. } else {
  10646. this.mindNetWorkCount++;
  10647. a = this.mindNetWorkCount;
  10648. this.toolsCount(a, t);
  10649. }
  10650. window.parent.postMessage(
  10651. {
  10652. tools: "7",
  10653. cid: this.id,
  10654. stage: this.courseType,
  10655. task: this.taskCount,
  10656. tool: i,
  10657. },
  10658. "*"
  10659. );
  10660. } else if (t == 16) {
  10661. if (this.workCount > 0) {
  10662. this.updateCount(this.workCount, t);
  10663. } else {
  10664. this.workCount++;
  10665. a = this.workCount;
  10666. this.toolsCount(a, t);
  10667. }
  10668. this.dialogVisible = true;
  10669. } else if (t == 50) {
  10670. if (this.tType == 2) {
  10671. this.$message.error("不支持学生使用");
  10672. return;
  10673. }
  10674. this.plworkFile = [];
  10675. this.dialogVisiblePl = true;
  10676. } else if (t == 8) {
  10677. if (this.libraryCount > 0) {
  10678. this.updateCount(this.libraryCount, t);
  10679. } else {
  10680. this.libraryCount++;
  10681. a = this.libraryCount;
  10682. this.toolsCount(a, t);
  10683. }
  10684. window.parent.postMessage({ tools: "8" }, "*");
  10685. } else if (t == 17) {
  10686. if (this.libraryCount > 0) {
  10687. this.updateCount(this.libraryCount, t);
  10688. } else {
  10689. this.libraryCount++;
  10690. a = this.libraryCount;
  10691. this.toolsCount(a, t);
  10692. }
  10693. window.parent.postMessage({ tools: "17" }, "*");
  10694. } else if (t == 18) {
  10695. if (this.trainCount > 0) {
  10696. this.updateCount(this.trainCount, t);
  10697. } else {
  10698. this.trainCount++;
  10699. a = this.trainCount;
  10700. this.toolsCount(a, t);
  10701. }
  10702. window.parent.postMessage({ tools: "18" }, "*");
  10703. } else if (t == 10) {
  10704. if (this.timeCount > 0) {
  10705. this.updateCount(this.timeCount, t);
  10706. } else {
  10707. this.timeCount++;
  10708. a = this.timeCount;
  10709. this.toolsCount(a, t);
  10710. }
  10711. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  10712. .taskJson[index].toolChoose[i].preTime
  10713. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  10714. .toolChoose[i].preTime
  10715. : "";
  10716. this.timeDialogVisible = true;
  10717. } else if (t == 15) {
  10718. this.answerQ = "";
  10719. this.questionAnswer = "";
  10720. if (this.answerCount > 0) {
  10721. this.updateCount(this.answerCount, t);
  10722. } else {
  10723. this.answerCount++;
  10724. a = this.answerCount;
  10725. this.toolsCount(a, t);
  10726. }
  10727. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  10728. .taskJson[index].toolChoose[i].answerQ
  10729. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  10730. .toolChoose[i].answerQ
  10731. : "";
  10732. this.answerDialogVisible = true;
  10733. } else if (t == 21) {
  10734. window.parent.postMessage({ tools: "21" }, "*");
  10735. } else if (t == 22) {
  10736. window.parent.postMessage({ tools: "22" }, "*");
  10737. } else if (t == 23) {
  10738. window.parent.postMessage({ tools: "23" }, "*");
  10739. } else if (t == 24) {
  10740. window.parent.postMessage({ tools: "24" }, "*");
  10741. } else if (t == 25) {
  10742. window.parent.postMessage({ tools: "25" }, "*");
  10743. } else if (t == 31) {
  10744. window.parent.postMessage({ tools: "31" }, "*");
  10745. } else if (t == 28) {
  10746. window.parent.postMessage({ tools: "28" }, "*");
  10747. } else if (t == 37) {
  10748. window.parent.postMessage({ tools: "37" }, "*");
  10749. } else if (t == 38) {
  10750. window.parent.postMessage({ tools: "38" }, "*");
  10751. } else if (t == 39) {
  10752. window.parent.postMessage({ tools: "39" }, "*");
  10753. } else if (t == 32) {
  10754. window.parent.postMessage({ tools: "32" }, "*");
  10755. } else if (t == 26) {
  10756. window.parent.postMessage(
  10757. {
  10758. tools: "26",
  10759. cid: this.id,
  10760. stage: this.courseType,
  10761. task: this.taskCount,
  10762. tool: i,
  10763. },
  10764. "*"
  10765. );
  10766. } else if (t == 40) {
  10767. if (this.evalCount > 0) {
  10768. this.updateCount(this.evalCount, t);
  10769. } else {
  10770. this.evalCount++;
  10771. a = this.evalCount;
  10772. this.toolsCount(a, t);
  10773. }
  10774. this.eScore = { eBzText: "", eStar: [] };
  10775. if (this.worksStudent[i].length) {
  10776. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10777. if (this.userid == this.worksStudent[i][k].userid) {
  10778. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  10779. this.rateJson =
  10780. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10781. index
  10782. ].toolChoose[i].rateJson;
  10783. break;
  10784. } else {
  10785. this.rateJson =
  10786. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10787. index
  10788. ].toolChoose[i].rateJson;
  10789. }
  10790. }
  10791. } else {
  10792. this.rateJson =
  10793. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10794. index
  10795. ].toolChoose[i].rateJson;
  10796. }
  10797. this.isStar = false;
  10798. this.studentEvalDialogVisible = true;
  10799. } else if (t == 41) {
  10800. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10801. .taskJson[index].toolChoose[i].selectJson
  10802. ? JSON.parse(
  10803. JSON.stringify(
  10804. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10805. index
  10806. ].toolChoose[i].selectJson
  10807. )
  10808. )
  10809. : { url: "", select: [], answer: [] };
  10810. if (this.worksStudent[i].length) {
  10811. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10812. if (this.userid == this.worksStudent[i][k].userid) {
  10813. var a = this.worksStudent[i][k].works.split(",");
  10814. for (var ki = 0; ki < a.length; ki++) {
  10815. a[ki] = parseInt(a[ki]);
  10816. }
  10817. this.selectAnswer = {
  10818. answer: a,
  10819. stu: this.worksStudent[i][k].sName,
  10820. };
  10821. break;
  10822. } else {
  10823. this.selectAnswer = { answer: [], stu: "" };
  10824. }
  10825. }
  10826. } else {
  10827. this.selectAnswer = { answer: [], stu: "" };
  10828. }
  10829. this.isSelect = false;
  10830. this.dialogVisibleSelect = true;
  10831. } else if (t == 44) {
  10832. window.parent.postMessage({ tools: "44" }, "*");
  10833. } else if (t == 47) {
  10834. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  10835. .taskJson[index].toolChoose[i].sentenceList
  10836. ? JSON.parse(
  10837. JSON.stringify(
  10838. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10839. index
  10840. ].toolChoose[i].sentenceList
  10841. )
  10842. )
  10843. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  10844. for (var q = 0; q < this.sentenceList.length; q++) {
  10845. this.sentenceList[q].chooseSenList = [];
  10846. this.sentenceList[q].addChangeSen = [];
  10847. this.sentenceList[q].addChangeSen = JSON.parse(
  10848. JSON.stringify(this.sentenceList[q].addSentence)
  10849. );
  10850. this.sentenceList[q].chooseSenList.length =
  10851. this.sentenceList[q].rightAnswer.length;
  10852. }
  10853. this.dialogVisibleSentence = true;
  10854. } else if (t == 48) {
  10855. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10856. .taskJson[index].toolChoose[i].tableJson
  10857. ? JSON.parse(
  10858. JSON.stringify(
  10859. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10860. index
  10861. ].toolChoose[i].tableJson
  10862. )
  10863. )
  10864. : { text: "" };
  10865. this.dialogVisibleTable = true;
  10866. } else if (t == 49) {
  10867. this.groupJson =
  10868. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10869. index
  10870. ].toolChoose[i].groupJson;
  10871. this.dialogVisibleGroup = true;
  10872. }
  10873. },
  10874. teacherWorkSubmit(t, i, index, s) {
  10875. this.sStudent = s;
  10876. this.toolindex = i;
  10877. if (this.tType !== "1" && this.tType !== "4") {
  10878. return;
  10879. }
  10880. if (t == 16) {
  10881. // if (this.workCount > 0) {
  10882. // this.updateCount(this.workCount, t);
  10883. // } else {
  10884. // this.workCount++;
  10885. // a = this.workCount;
  10886. // this.toolsCount(a, t);
  10887. // }
  10888. this.dialogVisibleWorks = true;
  10889. }
  10890. },
  10891. setRightAnswer(s, i, j) {
  10892. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  10893. if (
  10894. this.sentenceList[i].chooseSenList[q] == undefined ||
  10895. this.sentenceList[i].chooseSenList[q] == ""
  10896. ) {
  10897. this.sentenceList[i].chooseSenList[q] = s;
  10898. this.sentenceList[i].addChangeSen[j] = "";
  10899. break;
  10900. }
  10901. }
  10902. this.$forceUpdate();
  10903. },
  10904. returnCard(r, i, j) {
  10905. var a = this.sentenceList[i].addSentence.indexOf(r);
  10906. this.sentenceList[i].chooseSenList[j] = "";
  10907. this.sentenceList[i].addChangeSen[a] = r;
  10908. this.$forceUpdate();
  10909. },
  10910. // addSentenceTool() {
  10911. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10912. // this.taskCount
  10913. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  10914. // this.sentenceList = [
  10915. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10916. // ];
  10917. // this.dialogVisibleSentence = false;
  10918. // },
  10919. toolsCount(a, t) {
  10920. let params = {
  10921. cid: this.id,
  10922. chid: this.courseType,
  10923. uid: this.userid,
  10924. tid: t,
  10925. count: a,
  10926. };
  10927. this.ajax
  10928. .get(this.$store.state.api + "insertToolsCount", params)
  10929. .then((res) => {
  10930. this.selectCount();
  10931. })
  10932. .catch((err) => {
  10933. console.error(err);
  10934. });
  10935. },
  10936. updateCount(c, t) {
  10937. c++;
  10938. let params = {
  10939. cid: this.id,
  10940. chid: this.courseType,
  10941. uid: this.userid,
  10942. tid: t,
  10943. count: c,
  10944. };
  10945. this.ajax
  10946. .get(this.$store.state.api + "updateToolsCount", params)
  10947. .then((res) => {
  10948. this.selectCount();
  10949. })
  10950. .catch((err) => {
  10951. console.error(err);
  10952. });
  10953. },
  10954. checkEva() {
  10955. if (this.evalua != "") {
  10956. for (var i = 0; i < this.evaJuri.length; i++) {
  10957. if (this.evalua == this.evaJuri[i].id) {
  10958. this.eTitle = this.evaJuri[i].title;
  10959. this.eJson = JSON.parse(this.evaJuri[i].content);
  10960. }
  10961. }
  10962. this.$forceUpdate();
  10963. setTimeout(() => {
  10964. this.setMindData();
  10965. }, 0);
  10966. }
  10967. },
  10968. selectEva() {
  10969. let params = {
  10970. oid: this.oid,
  10971. };
  10972. this.ajax
  10973. .get(this.$store.state.api + "selectAllEvaluation", params)
  10974. .then((res) => {
  10975. this.evaJuri = res.data[0];
  10976. })
  10977. .catch((err) => {
  10978. console.error(err);
  10979. });
  10980. },
  10981. setMindData() {
  10982. this.data.data = [];
  10983. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10984. let _eJson = Object.keys(this.eJson);
  10985. let _e = this.eJson;
  10986. for (let i = 0; i < _eJson.length; i++) {
  10987. let element = _e[_eJson[i]];
  10988. this.data.data.push({
  10989. id: element.id,
  10990. parentid: "root",
  10991. topic: element.name,
  10992. });
  10993. let _eJsonc = Object.keys(element.child);
  10994. let _e2 = element.child;
  10995. for (let j = 0; j < _eJsonc.length; j++) {
  10996. let _ec = _e2[_eJsonc[j]];
  10997. this.data.data.push({
  10998. id: _ec.id,
  10999. parentid: element.id,
  11000. topic: _ec.name,
  11001. });
  11002. let _eJsonz = Object.keys(_ec.child);
  11003. let _e3 = _ec.child;
  11004. for (let z = 0; z < _eJsonz.length; z++) {
  11005. let _ez = _e3[_eJsonz[z]];
  11006. this.data.data.push({
  11007. id: _ez.id,
  11008. parentid: _ec.id,
  11009. topic: _ez.name,
  11010. });
  11011. }
  11012. }
  11013. }
  11014. this.$forceUpdate();
  11015. },
  11016. checkFileFull(type, url) {
  11017. this.fullDialogVisible = true;
  11018. this.fulltype = type;
  11019. this.fullUrl = url;
  11020. },
  11021. openSname(n, id) {
  11022. this.snameWid = id;
  11023. this.worksSName = n;
  11024. this.dialogVisibleSname = true;
  11025. },
  11026. updateName() {
  11027. let params = {
  11028. n: this.worksSName,
  11029. cid: this.snameWid,
  11030. };
  11031. this.ajax
  11032. .get(this.$store.state.api + "updateCourseWorksName", params)
  11033. .then((res) => {
  11034. this.$message({
  11035. message: "修改成功",
  11036. type: "success",
  11037. });
  11038. this.dialogVisibleSname = false;
  11039. this.getCourseDetail();
  11040. this.snameWid = "";
  11041. this.worksSName = "";
  11042. })
  11043. .catch((err) => {
  11044. console.error(err);
  11045. });
  11046. },
  11047. downloadFile(url) {
  11048. let _this = this;
  11049. let _url = "";
  11050. if (
  11051. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11052. ) {
  11053. _url = url.split(
  11054. "https://view.officeapps.live.com/op/view.aspx?src="
  11055. )[1];
  11056. } else {
  11057. _url = url;
  11058. }
  11059. const x = new XMLHttpRequest();
  11060. x.open("GET", _url, true);
  11061. x.responseType = "blob";
  11062. const loading = this.openLoading();
  11063. _this.$message.success("文件下载中...")
  11064. x.onload = function (e) {
  11065. loading.close();
  11066. // const url = window.URL.createObjectURL(x.response);
  11067. // const a = document.createElement("a");
  11068. // a.href = url;
  11069. // a.target = "_blank";
  11070. // a.download = url;
  11071. // a.click();
  11072. // a.remove();
  11073. let content = x.response;
  11074. let elink = document.createElement("a");
  11075. elink.download = decodeURI(
  11076. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  11077. );
  11078. elink.style.display = "none";
  11079. let blob = new Blob([content]);
  11080. elink.href = URL.createObjectURL(blob);
  11081. document.body.appendChild(elink);
  11082. elink.click();
  11083. document.body.removeChild(elink);
  11084. };
  11085. x.send();
  11086. },
  11087. openLine(url) {
  11088. window.open(url);
  11089. },
  11090. resize() {
  11091. if (document.getElementsByClassName("box_course").length) {
  11092. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  11093. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  11094. document.getElementsByClassName("navBox")[0].style.height =
  11095. a - 40 + "px";
  11096. }
  11097. this.Stbodywidth =
  11098. document.getElementsByClassName("student_body").length &&
  11099. document.getElementsByClassName("student_body")[0].offsetWidth;
  11100. },
  11101. closeDraw() {
  11102. this.bg = null;
  11103. this.drawShow = false;
  11104. },
  11105. showPicturePaint(url) {
  11106. let params = {
  11107. img: url,
  11108. };
  11109. this.ajax
  11110. .get(this.$store.state.api + "imgToBase64", params)
  11111. .then((res) => {
  11112. console.log(res);
  11113. this.drawShow = true;
  11114. this.bg = res.data[0].img;
  11115. })
  11116. .catch((err) => {
  11117. console.error(err);
  11118. });
  11119. },
  11120. addImgDraw(base64) {
  11121. let file = { name: "批注图.png" };
  11122. let img = this.dataUrlToFile(base64, file);
  11123. this.beforeUpload1(img, 5);
  11124. },
  11125. addImgDrawImG(url) {
  11126. // console.log(url);
  11127. let params = [
  11128. {
  11129. wid: this.commentDetail.wid,
  11130. img: url,
  11131. },
  11132. ];
  11133. this.ajax
  11134. .post(this.$store.state.api + "updateCourseWorks", params)
  11135. .then((res) => {
  11136. this.$message({
  11137. message: "提交成功",
  11138. type: "success",
  11139. });
  11140. this.drawShow = false;
  11141. this.bg = "";
  11142. this.selectSWorks();
  11143. this.selectStudent();
  11144. })
  11145. .catch((err) => {
  11146. this.$message.error("提交失败");
  11147. console.error(err);
  11148. });
  11149. },
  11150. deletePicturePaint() {
  11151. this.$confirm("确定删除此批注吗?", "提示", {
  11152. confirmButtonText: "确定",
  11153. cancelButtonText: "取消",
  11154. type: "warning",
  11155. })
  11156. .then(() => {
  11157. let params = [
  11158. {
  11159. wid: this.commentDetail.wid,
  11160. img: "",
  11161. },
  11162. ];
  11163. this.ajax
  11164. .post(this.$store.state.api + "updateCourseWorks", params)
  11165. .then((res) => {
  11166. this.$message({
  11167. message: "删除成功",
  11168. type: "success",
  11169. });
  11170. this.selectSWorks();
  11171. this.selectStudent();
  11172. })
  11173. .catch((err) => {
  11174. this.$message.error("删除失败");
  11175. console.error(err);
  11176. });
  11177. })
  11178. .catch(() => {});
  11179. },
  11180. getAudioVideo(constraintsData) {
  11181. if (navigator.mediaDevices === undefined) {
  11182. navigator.mediaDevices = {};
  11183. }
  11184. if (navigator.mediaDevices.getUserMedia === undefined) {
  11185. navigator.mediaDevices.getUserMedia = function (constraints) {
  11186. // 首先,如果有getUserMedia的话,就获得它
  11187. var getUserMedia =
  11188. navigator.getUserMedia ||
  11189. navigator.webkitGetUserMedia ||
  11190. navigator.mozGetUserMedia ||
  11191. navigator.msGetUserMedia;
  11192. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  11193. if (!getUserMedia) {
  11194. return Promise.reject({ code: 404 });
  11195. }
  11196. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  11197. return new Promise(function (resolve, reject) {
  11198. getUserMedia.call(navigator, constraints, resolve, reject);
  11199. });
  11200. };
  11201. }
  11202. return navigator.mediaDevices.getUserMedia(constraintsData);
  11203. },
  11204. /**
  11205. * 开始录制
  11206. */
  11207. startRecording(callback) {
  11208. let _function = (screenStream) => {
  11209. this.addStreamStopListener(screenStream, () => {
  11210. console.log("流停止监听");
  11211. this.stopRecording();
  11212. this.$emit("streamStop", {});
  11213. // this.stopRecording();
  11214. });
  11215. var options = {
  11216. type: "video",
  11217. mimeType: "video/webm",
  11218. disableLogs: false,
  11219. getNativeBlob: false, // enable it for longer recordings
  11220. ignoreMutedMedia: false,
  11221. };
  11222. // this.video.srcObject = screenStream;
  11223. this.recorder = RecordRTC(screenStream, options);
  11224. this.recorder.startRecording();
  11225. this.recorder.screen = screenStream;
  11226. this.videoStart = true;
  11227. // callback(true);
  11228. };
  11229. this.getAudioVideo({ audio: true })
  11230. .then((res) => {
  11231. this.captureScreen(_function, true);
  11232. console.log("已点击允许,开启成功");
  11233. })
  11234. .catch((err) => {
  11235. // console.log('浏览器不支持,请更换浏览器')
  11236. // } else {
  11237. this.captureScreen(_function, false);
  11238. console.log("请检查是否存在麦克风");
  11239. });
  11240. },
  11241. /**
  11242. * 停止录制
  11243. */
  11244. stopRecording(callback) {
  11245. this.recorder.stopRecording(() => {
  11246. // this.video.src = this.video.srcObject = null;
  11247. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  11248. const url = URL.createObjectURL(this.recorder.getBlob());
  11249. const a = document.createElement("a"); //this.fileName+
  11250. let videoFile = new File(
  11251. [this.recorder.getBlob()],
  11252. this.courseDetail.title + "录屏.mp4",
  11253. {
  11254. type: "video/mp4",
  11255. }
  11256. );
  11257. let downloadUrl = URL.createObjectURL(videoFile);
  11258. document.body.appendChild(a);
  11259. a.style.display = "none";
  11260. a.href = url;
  11261. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  11262. a.click();
  11263. this.recorder.screen.stop();
  11264. this.recorder.destroy();
  11265. this.recorder = null;
  11266. this.videoStart = false;
  11267. // callback(false);
  11268. });
  11269. },
  11270. //初始化
  11271. captureScreen(callback, type) {
  11272. if (navigator.getDisplayMedia) {
  11273. //录制结束,文件下载
  11274. navigator
  11275. .getDisplayMedia({
  11276. video: true,
  11277. })
  11278. .then((screenStream) => {
  11279. if (type) {
  11280. navigator.mediaDevices
  11281. .getUserMedia({ audio: true })
  11282. .then((mic) => {
  11283. screenStream.addTrack(mic.getTracks()[0]);
  11284. callback(screenStream);
  11285. });
  11286. } else {
  11287. callback(screenStream);
  11288. }
  11289. })
  11290. .catch(function (error) {
  11291. console.log("error", error);
  11292. });
  11293. } else if (navigator.mediaDevices.getDisplayMedia) {
  11294. navigator.mediaDevices
  11295. .getDisplayMedia({
  11296. video: true,
  11297. })
  11298. .then((screenStream) => {
  11299. if (type) {
  11300. navigator.mediaDevices
  11301. .getUserMedia({ audio: true })
  11302. .then((mic) => {
  11303. screenStream.addTrack(mic.getTracks()[0]);
  11304. callback(screenStream);
  11305. });
  11306. } else {
  11307. callback(screenStream);
  11308. }
  11309. })
  11310. .catch(function (error) {
  11311. console.log("error", error);
  11312. });
  11313. } else {
  11314. var error = "getDisplayMedia API are not supported in this browser.";
  11315. console.log("error", error);
  11316. alert(error);
  11317. }
  11318. },
  11319. //流监听
  11320. addStreamStopListener(stream, callback) {
  11321. stream.addEventListener(
  11322. "ended",
  11323. function () {
  11324. callback();
  11325. callback = function () {};
  11326. },
  11327. false
  11328. );
  11329. stream.addEventListener(
  11330. "inactive",
  11331. function () {
  11332. callback();
  11333. callback = function () {};
  11334. },
  11335. false
  11336. );
  11337. stream.getTracks().forEach(function (track) {
  11338. track.addEventListener(
  11339. "ended",
  11340. function () {
  11341. callback();
  11342. callback = function () {};
  11343. },
  11344. false
  11345. );
  11346. track.addEventListener(
  11347. "inactive",
  11348. function () {
  11349. callback();
  11350. callback = function () {};
  11351. },
  11352. false
  11353. );
  11354. });
  11355. },
  11356. updateGroup() {
  11357. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  11358. this.dialogVisibleGroup2 = true;
  11359. },
  11360. updateGroupJson() {
  11361. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  11362. if (
  11363. this.groupStudentUid[this.toolindex][i].length >
  11364. this.groupJson2.number
  11365. ) {
  11366. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  11367. return;
  11368. }
  11369. }
  11370. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  11371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11372. this.taskCount
  11373. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  11374. let params = [
  11375. {
  11376. cid: this.id,
  11377. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  11378. uid: this.userid,
  11379. unitIndex: this.courseType,
  11380. },
  11381. ];
  11382. this.ajax
  11383. .post(this.$store.state.api + "updateWorkNew4", params)
  11384. .then((res) => {
  11385. this.$message.success("设置成功");
  11386. this.getCourseDetail(2);
  11387. this.dialogVisibleGroup2 = false;
  11388. this.groupJson2 = {};
  11389. this.$forceUpdate();
  11390. })
  11391. .catch((err) => {
  11392. this.$message.error("网络不佳");
  11393. console.error(err);
  11394. });
  11395. },
  11396. lockChair() {
  11397. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  11398. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  11399. this.updateGroupJson();
  11400. },
  11401. selectGroup(index) {
  11402. this.getCourseDetail(2, index);
  11403. },
  11404. joinGroup(index) {
  11405. if (this.groupJson.islock == 2) {
  11406. this.$message.error("位置已被锁定,无法加入");
  11407. return;
  11408. }
  11409. if (
  11410. this.groupStudent[this.toolindex][index].length >
  11411. this.groupJson.number ||
  11412. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  11413. ) {
  11414. this.$message.error("位置已满,无法加入");
  11415. return;
  11416. }
  11417. let params = [
  11418. {
  11419. cid: this.id,
  11420. stage: this.courseType,
  11421. task: this.taskCount,
  11422. tool: this.toolindex,
  11423. g: index,
  11424. uid: this.userid,
  11425. },
  11426. ];
  11427. this.ajax
  11428. .post(this.$store.state.api + "joinGroup", params)
  11429. .then((res) => {
  11430. this.$message.success("加入成功");
  11431. this.getCourseDetail();
  11432. })
  11433. .catch((err) => {
  11434. this.$message.error("网络不佳");
  11435. console.error(err);
  11436. });
  11437. },
  11438. exitGroup(id) {
  11439. if (this.groupJson.islock == 2) {
  11440. this.$message.error("位置已被锁定,无法退出");
  11441. return;
  11442. }
  11443. let params = [
  11444. {
  11445. gid: id,
  11446. },
  11447. ];
  11448. this.ajax
  11449. .post(this.$store.state.api + "exitGroup", params)
  11450. .then((res) => {
  11451. this.$message.success("退出成功");
  11452. this.getCourseDetail();
  11453. })
  11454. .catch((err) => {
  11455. this.$message.error("网络不佳");
  11456. console.error(err);
  11457. });
  11458. },
  11459. groupUpload(index, task, gindex) {
  11460. this.taskCount = task;
  11461. this.toolindex = index;
  11462. this.groupIndex = gindex;
  11463. this.dialogVisibleGroupWork = true;
  11464. },
  11465. updateGroupChair(user) {
  11466. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  11467. el.label = index;
  11468. return index != user.group;
  11469. });
  11470. this.updateGroupUser = user;
  11471. this.dialogVisibleUpdateGroup = true;
  11472. },
  11473. updateChair() {
  11474. if (
  11475. this.groupStudent[this.toolindex][this.checkChair].length >
  11476. this.groupJson.number ||
  11477. this.groupStudent[this.toolindex][this.checkChair].length ==
  11478. this.groupJson.number
  11479. ) {
  11480. this.$message.error("位置已满,无法加入");
  11481. return;
  11482. }
  11483. let params = [
  11484. {
  11485. cid: this.id,
  11486. stage: this.courseType,
  11487. task: this.taskCount,
  11488. tool: this.toolindex,
  11489. g: this.checkChair,
  11490. uid: this.updateGroupUser.userid,
  11491. },
  11492. ];
  11493. this.ajax
  11494. .post(this.$store.state.api + "joinGroup", params)
  11495. .then((res) => {
  11496. this.$message.success("修改成功");
  11497. this.updateGroupUser = {};
  11498. this.checkChair = "";
  11499. this.updateGroupArray = {};
  11500. this.dialogVisibleUpdateGroup = false;
  11501. this.getCourseDetail();
  11502. })
  11503. .catch((err) => {
  11504. this.$message.error("网络不佳");
  11505. console.error(err);
  11506. });
  11507. },
  11508. deleteGroupChair(gindex) {
  11509. this.checkDeleteGroup = [];
  11510. this.deleteGroupUser = JSON.parse(
  11511. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  11512. );
  11513. this.deleteGroupArray = this.groupJson.group[gindex];
  11514. this.groupIndex = gindex;
  11515. this.dialogVisibleDeleteGroup = true;
  11516. },
  11517. async deleteChair() {
  11518. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  11519. const gid =
  11520. this.groupStudent[this.toolindex][this.groupIndex][
  11521. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  11522. this.checkDeleteGroup[i]
  11523. )
  11524. ];
  11525. let params = [
  11526. {
  11527. gid: gid.id,
  11528. },
  11529. ];
  11530. var a = await this.deleteChairA(params);
  11531. if (i == this.checkDeleteGroup.length - 1) {
  11532. this.$message.success("退出成功");
  11533. this.dialogVisibleDeleteGroup = false;
  11534. this.deleteGroupUser = [];
  11535. this.deleteGroupArray = {};
  11536. this.groupIndex = "";
  11537. this.checkDeleteGroup = [];
  11538. this.getCourseDetail();
  11539. }
  11540. }
  11541. },
  11542. deleteChairA(params) {
  11543. return new Promise((resolve, reject) => {
  11544. this.ajax
  11545. .post(this.$store.state.api + "exitGroup", params)
  11546. .then((res) => {
  11547. resolve(1);
  11548. })
  11549. .catch((err) => {
  11550. this.$message.error("网络不佳");
  11551. console.error(err);
  11552. });
  11553. });
  11554. },
  11555. },
  11556. directives: {
  11557. // 使用局部注册指令的方式
  11558. resize: {
  11559. // 指令的名称
  11560. bind(el, binding) {
  11561. // el为绑定的元素,binding为绑定给指令的对象
  11562. let width = "",
  11563. height = "";
  11564. function isReize() {
  11565. const style = document.defaultView.getComputedStyle(el);
  11566. if (width !== style.width || height !== style.height) {
  11567. binding.value(); // 关键
  11568. }
  11569. width = style.width;
  11570. height = style.height;
  11571. }
  11572. el.__vueSetInterval__ = setInterval(isReize, 300);
  11573. },
  11574. unbind(el) {
  11575. clearInterval(el.__vueSetInterval__);
  11576. },
  11577. },
  11578. },
  11579. beforeDestroy() {
  11580. window.onresize = null;
  11581. clearInterval(this.timer);
  11582. this.timer = null;
  11583. },
  11584. computed: {
  11585. contentConvent() {
  11586. return function (c) {
  11587. return c
  11588. ? c
  11589. .replaceAll(/\r\n/g, "<br/>")
  11590. .replaceAll(/\n/g, "<br/>")
  11591. .replaceAll(/\s/g, " &nbsp")
  11592. : "";
  11593. };
  11594. },
  11595. },
  11596. mounted() {
  11597. if (this.screenType == 2) {
  11598. window.parent.postMessage({ allScreen: 4 }, "*");
  11599. } else if (this.screenType == 3) {
  11600. window.parent.postMessage({ allScreen: 5 }, "*");
  11601. } else if (this.screenType == 1) {
  11602. window.parent.postMessage({ allScreen: 6 }, "*");
  11603. }
  11604. this.selectEva();
  11605. this.getCourseDetail();
  11606. this.selectCount();
  11607. this.getHomeWork();
  11608. this.selectCStudent();
  11609. if (this.tType == 4) {
  11610. this.pzDialog = true;
  11611. this.selectPz();
  11612. }
  11613. document.scrollingElement.scrollTop = 0;
  11614. window.addEventListener("resize", () => {
  11615. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  11616. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  11617. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  11618. });
  11619. let _this = this;
  11620. setTimeout(() => {
  11621. _this.vedioTime = [];
  11622. for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  11623. _this.vedioTime[i] = document.getElementsByClassName(
  11624. "vjs-duration-display"
  11625. )[i].textContent;
  11626. }
  11627. }, 1000);
  11628. },
  11629. };
  11630. </script>
  11631. <style scoped>
  11632. @media screen and (max-width: 1280px) {
  11633. /* .courseIndex > div:first-child(2) {
  11634. width: 15% !important;
  11635. } */
  11636. /* .navText {
  11637. width: 120px !important;
  11638. } */
  11639. .evaCss {
  11640. flex-direction: column !important;
  11641. align-items: center !important;
  11642. }
  11643. .dialog_diy1 >>> .el-dialog {
  11644. width: 100% !important;
  11645. }
  11646. .rightWidthCss {
  11647. width: 100% !important;
  11648. }
  11649. .dialog_diy3 >>> .el-dialog {
  11650. width: 100% !important;
  11651. }
  11652. /* .textTitle >>> .el-form-item__label {
  11653. width: 150px !important;
  11654. } */
  11655. }
  11656. .evaCssMax {
  11657. flex-direction: column !important;
  11658. align-items: center !important;
  11659. }
  11660. .dialog_diy >>> .el-dialog {
  11661. margin-top: 10vh !important;
  11662. }
  11663. .body_student {
  11664. width: 77%;
  11665. height: 100%;
  11666. position: absolute;
  11667. left: 22%;
  11668. top: 0;
  11669. }
  11670. .student_head {
  11671. width: 100%;
  11672. margin: 0 auto;
  11673. padding-bottom: 50px;
  11674. display: flex;
  11675. flex-direction: column;
  11676. flex-wrap: nowrap;
  11677. align-items: flex-start;
  11678. justify-content: flex-start;
  11679. }
  11680. .pb_left {
  11681. width: 20%;
  11682. margin-right: 10px;
  11683. background: rgb(255, 255, 255);
  11684. padding-right: 10px;
  11685. position: fixed;
  11686. height: 100%;
  11687. }
  11688. .wheel > img,
  11689. .project > img,
  11690. .star > img,
  11691. .evaluate > img,
  11692. .up_photo > img,
  11693. .chapter_add > img,
  11694. .upCover > img,
  11695. .deleteWord > img,
  11696. .question > img,
  11697. .homework > img {
  11698. width: 100%;
  11699. height: 100%;
  11700. }
  11701. .upCover {
  11702. width: calc(100% / 3.5);
  11703. position: relative;
  11704. margin: 0 15px 10px 0;
  11705. display: flex;
  11706. flex-direction: column;
  11707. flex-wrap: nowrap;
  11708. justify-content: center;
  11709. align-content: center;
  11710. align-items: center;
  11711. }
  11712. .upCover2 {
  11713. width: 100%;
  11714. position: relative;
  11715. margin: 0 15px 10px 0;
  11716. display: flex;
  11717. flex-direction: column;
  11718. flex-wrap: nowrap;
  11719. justify-content: center;
  11720. align-content: center;
  11721. align-items: center;
  11722. }
  11723. .upCover2 > img {
  11724. width: 100%;
  11725. height: 90px;
  11726. object-fit: contain;
  11727. }
  11728. .chapter_add {
  11729. width: 120px;
  11730. position: relative;
  11731. text-align: center;
  11732. }
  11733. .isAddThings {
  11734. margin-top: 20px;
  11735. position: relative;
  11736. text-align: center;
  11737. background: #f7f8fa;
  11738. height: 90px;
  11739. width: 90px;
  11740. display: flex;
  11741. flex-direction: column;
  11742. justify-content: center;
  11743. }
  11744. .deleteWord {
  11745. width: 22px;
  11746. height: 22px;
  11747. position: absolute;
  11748. right: -5px;
  11749. top: -5px;
  11750. cursor: pointer;
  11751. }
  11752. .box_course {
  11753. /* width: 60%; */
  11754. width: 81%;
  11755. }
  11756. .wheel {
  11757. width: 100%;
  11758. /* height: 100%; */
  11759. height: 605px;
  11760. }
  11761. .right_box {
  11762. display: flex;
  11763. flex-direction: column;
  11764. margin-left: 30px;
  11765. justify-content: space-around;
  11766. }
  11767. .right_box_title {
  11768. font-size: 23px;
  11769. }
  11770. .people {
  11771. display: flex;
  11772. }
  11773. .student_body {
  11774. width: 100%;
  11775. margin: 0 auto;
  11776. margin-top: 10px;
  11777. padding: 0 0 20px;
  11778. }
  11779. .study_top {
  11780. margin-top: 70px;
  11781. width: 100%;
  11782. /* overflow: auto; */
  11783. height: auto;
  11784. }
  11785. .study_top .checkbox {
  11786. display: flex;
  11787. align-items: center;
  11788. padding: 15px 0 15px 30px;
  11789. flex: 0 0 auto;
  11790. font-weight: bold;
  11791. border-bottom: 1px solid #eee;
  11792. }
  11793. .study_top .check {
  11794. padding-bottom: 5px;
  11795. text-align: center;
  11796. cursor: pointer;
  11797. height: 30px;
  11798. box-sizing: border-box;
  11799. display: flex;
  11800. }
  11801. .study_top .checked {
  11802. border-bottom: 4px solid #3fc6a0;
  11803. padding-bottom: 5px;
  11804. color: #3fc6a0;
  11805. display: flex;
  11806. height: 35px;
  11807. }
  11808. .study_top .checked > div,
  11809. .study_top .check > div {
  11810. margin-right: 5px;
  11811. }
  11812. .videoTop {
  11813. display: flex;
  11814. flex-direction: row;
  11815. justify-content: space-between;
  11816. background: #fff;
  11817. align-items: center;
  11818. width: 95%;
  11819. padding: 20px;
  11820. }
  11821. .upbtn {
  11822. margin: 25px;
  11823. background: #70afdb;
  11824. color: #fff;
  11825. width: 120px;
  11826. text-align: center;
  11827. height: 30px;
  11828. line-height: 30px;
  11829. font-size: 13px;
  11830. border-radius: 5px;
  11831. cursor: pointer;
  11832. }
  11833. .filebox {
  11834. display: flex;
  11835. flex-wrap: wrap;
  11836. flex-direction: column;
  11837. padding: 15px 0 5px;
  11838. }
  11839. .filebox .tooldetail {
  11840. width: 100%;
  11841. margin: 0px 12px;
  11842. background: rgb(247, 247, 247);
  11843. padding: 20px;
  11844. line-height: 30px;
  11845. word-break: break-word;
  11846. }
  11847. .file {
  11848. display: flex;
  11849. flex-direction: column;
  11850. align-items: center;
  11851. justify-content: center;
  11852. cursor: pointer;
  11853. width: 200px;
  11854. }
  11855. .file div {
  11856. margin-top: 10px;
  11857. width: 150px;
  11858. text-align: center;
  11859. overflow: hidden;
  11860. white-space: nowrap;
  11861. text-overflow: ellipsis;
  11862. }
  11863. .media {
  11864. display: flex;
  11865. flex-direction: column;
  11866. align-items: center;
  11867. justify-content: center;
  11868. margin: 0 20px 20px 0;
  11869. cursor: pointer;
  11870. margin: 12px 0 5px 15px;
  11871. overflow: hidden;
  11872. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  11873. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  11874. box-sizing: border-box;
  11875. }
  11876. .media img {
  11877. height: 90px;
  11878. width: 160px;
  11879. object-fit: cover;
  11880. }
  11881. .media .title {
  11882. padding: 5px;
  11883. text-align: left;
  11884. width: 100%;
  11885. box-sizing: border-box;
  11886. }
  11887. .media .btn {
  11888. width: 100%;
  11889. height: 35px;
  11890. line-height: 35px;
  11891. color: #fff;
  11892. background: #606060;
  11893. text-align: center;
  11894. overflow: hidden;
  11895. white-space: nowrap;
  11896. text-overflow: ellipsis;
  11897. }
  11898. .detail_content_top {
  11899. width: 100%;
  11900. padding: 25px 0 25px 0;
  11901. }
  11902. .detail_title {
  11903. text-align: center;
  11904. font-size: 24px;
  11905. }
  11906. .detail_time {
  11907. font-size: 13px;
  11908. padding: 15px 0 0 40px;
  11909. }
  11910. .detail_content {
  11911. line-height: 2pc;
  11912. width: 90%;
  11913. margin: 0 auto;
  11914. padding-top: 30px;
  11915. text-indent: 30px;
  11916. overflow: auto;
  11917. height: 200px;
  11918. }
  11919. .score_box >>> .el-rate {
  11920. margin-left: 10px;
  11921. }
  11922. .dialog_change >>> .el-dialog {
  11923. border-radius: 5px;
  11924. }
  11925. .dialog_change >>> .el-dialog__header {
  11926. background: #f2f2f2;
  11927. text-align: center;
  11928. }
  11929. .dialog_change >>> .el-dialog__title {
  11930. line-height: 5px;
  11931. }
  11932. .dialog_change >>> .el-dialog__body {
  11933. background: #fff;
  11934. padding: 10px 20px;
  11935. }
  11936. .score_box {
  11937. display: flex;
  11938. align-items: center;
  11939. margin-bottom: 18px;
  11940. margin-top: 20px;
  11941. }
  11942. .up_photo {
  11943. width: 120px;
  11944. cursor: pointer;
  11945. margin-top: 10px;
  11946. }
  11947. .up_photo2 {
  11948. width: 120px;
  11949. min-width: 120px;
  11950. cursor: pointer;
  11951. display: flex;
  11952. flex-direction: column;
  11953. align-items: center;
  11954. justify-content: center;
  11955. background: rgb(242, 246, 255);
  11956. padding: 25px;
  11957. margin-bottom: 10px;
  11958. }
  11959. .up_photo2 img {
  11960. width: 60%;
  11961. height: auto;
  11962. }
  11963. .up_photo2 span {
  11964. color: #898989;
  11965. }
  11966. .plworkBox {
  11967. display: flex;
  11968. align-items: center;
  11969. margin-top: 10px;
  11970. flex-wrap: wrap;
  11971. }
  11972. .upload_send {
  11973. margin: 30px auto 30px;
  11974. width: 60%;
  11975. background: #169bd6;
  11976. text-align: center;
  11977. height: 35px;
  11978. line-height: 35px;
  11979. color: #fff;
  11980. border-radius: 5px;
  11981. cursor: pointer;
  11982. }
  11983. .marginT {
  11984. margin-top: 20px;
  11985. }
  11986. .cd_content_steps {
  11987. display: flex;
  11988. width: 90%;
  11989. justify-content: space-around;
  11990. border-top: 1px solid #eeeeee;
  11991. }
  11992. .cd_steps_box {
  11993. display: flex;
  11994. justify-content: center;
  11995. align-items: center;
  11996. flex-direction: column;
  11997. cursor: pointer;
  11998. }
  11999. .first {
  12000. display: flex;
  12001. align-items: center;
  12002. margin: 15px 0 20px 0;
  12003. font-size: 20px;
  12004. }
  12005. .first > div:nth-child(2) {
  12006. font-size: 16px !important;
  12007. padding-left: 10px;
  12008. line-height: 26px;
  12009. box-sizing: border-box;
  12010. }
  12011. .blue_box_one {
  12012. text-align: center;
  12013. color: #fff;
  12014. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  12015. border-radius: 7px;
  12016. margin: 10px;
  12017. cursor: pointer;
  12018. width: 95%;
  12019. height: 45px;
  12020. display: flex;
  12021. flex-direction: row;
  12022. justify-content: flex-start;
  12023. align-items: center;
  12024. }
  12025. .blue_box_one > div:nth-child(1) {
  12026. line-height: 30px;
  12027. margin: 0 5px 0 10px;
  12028. width: 30%;
  12029. min-width: 70px;
  12030. border-radius: 4px;
  12031. }
  12032. .blue_box_one > div:nth-child(2) {
  12033. white-space: nowrap;
  12034. text-overflow: ellipsis;
  12035. overflow: hidden;
  12036. word-break: break-all;
  12037. width: 70%;
  12038. text-align: left;
  12039. margin-right: 10px;
  12040. max-width: calc(100% - 85px);
  12041. }
  12042. .blue_box_one > div:nth-child(2):hover {
  12043. overflow: hidden;
  12044. text-overflow: ellipsis;
  12045. white-space: nowrap;
  12046. cursor: pointer;
  12047. }
  12048. .upFile {
  12049. margin: 0 auto;
  12050. width: 120px;
  12051. background: #70afdb;
  12052. color: #fff;
  12053. height: 30px;
  12054. text-align: center;
  12055. line-height: 30px;
  12056. border-radius: 5px;
  12057. font-size: 14px;
  12058. cursor: pointer;
  12059. }
  12060. .courseTitle {
  12061. background: #205cc6;
  12062. width: 85%;
  12063. margin: 10px auto;
  12064. height: 50px;
  12065. color: #fff;
  12066. line-height: 50px;
  12067. text-align: center;
  12068. font-size: 20px;
  12069. font-weight: bold;
  12070. border-radius: 5px;
  12071. cursor: pointer;
  12072. white-space: nowrap;
  12073. overflow: hidden;
  12074. text-overflow: ellipsis;
  12075. padding: 0 10px;
  12076. }
  12077. .ml {
  12078. margin-left: 20px;
  12079. color: #5b7dba;
  12080. border-left: 3px solid #5b7dba;
  12081. padding-left: 5px;
  12082. font-weight: bold;
  12083. }
  12084. .return {
  12085. width: 2rem;
  12086. height: 2rem;
  12087. cursor: pointer;
  12088. }
  12089. .return > img {
  12090. width: 100%;
  12091. height: 100%;
  12092. }
  12093. .returnBtn {
  12094. background: #499eef;
  12095. width: 65px;
  12096. height: 30px;
  12097. color: #fff;
  12098. text-align: center;
  12099. line-height: 32px;
  12100. margin-right: 20px;
  12101. cursor: pointer;
  12102. border-radius: 5px;
  12103. font-size: 14px;
  12104. }
  12105. .tool {
  12106. display: flex;
  12107. flex-direction: column;
  12108. flex-wrap: nowrap;
  12109. width: 13%;
  12110. margin: 0 30px;
  12111. align-items: center;
  12112. }
  12113. .whiteBIcon {
  12114. width: 150px;
  12115. cursor: pointer;
  12116. }
  12117. .whiteBIcon > img {
  12118. width: 100%;
  12119. height: 100%;
  12120. }
  12121. .mask {
  12122. background-color: rgba(0, 0, 0, 0);
  12123. position: fixed;
  12124. top: 0;
  12125. left: 0;
  12126. width: 100%;
  12127. height: 100%;
  12128. z-index: 20000;
  12129. display: flex;
  12130. align-items: center;
  12131. justify-content: center;
  12132. }
  12133. .progressBox {
  12134. width: 500px;
  12135. height: 180px;
  12136. background: #fff;
  12137. border-radius: 10px;
  12138. box-shadow: 0 0 6px 1px #bfbfbf;
  12139. display: flex;
  12140. align-items: center;
  12141. justify-content: center;
  12142. flex-direction: column;
  12143. position: relative;
  12144. color: #6c6c6c;
  12145. }
  12146. .progressBox >>> .el-progress-bar__outer {
  12147. background-color: #d1dfff !important;
  12148. }
  12149. .progressBox .lbox {
  12150. height: 60px;
  12151. font-size: 19px;
  12152. display: flex;
  12153. align-items: center;
  12154. color: #747474;
  12155. }
  12156. .progressBox .lbox img {
  12157. width: 40px;
  12158. margin-right: 20px;
  12159. }
  12160. .closeCss {
  12161. position: absolute;
  12162. top: 8px;
  12163. right: 8px;
  12164. cursor: pointer;
  12165. width: 20px;
  12166. height: 20px;
  12167. }
  12168. .closeCss > img {
  12169. width: 100%;
  12170. height: 100%;
  12171. }
  12172. .uploadVedio {
  12173. display: flex;
  12174. flex-direction: column;
  12175. flex-wrap: nowrap;
  12176. justify-content: center;
  12177. align-items: center;
  12178. margin: 0 15px 10px 0;
  12179. }
  12180. .uploadVedio > img {
  12181. width: 30px;
  12182. height: 30px;
  12183. }
  12184. .uploadVedio > span {
  12185. white-space: nowrap;
  12186. overflow: hidden;
  12187. text-overflow: ellipsis;
  12188. width: 75px;
  12189. margin-top: 7px;
  12190. }
  12191. .picName {
  12192. white-space: nowrap;
  12193. overflow: hidden;
  12194. text-overflow: ellipsis;
  12195. width: 75px;
  12196. margin-top: 7px;
  12197. }
  12198. .new_top {
  12199. display: flex;
  12200. background: #fff;
  12201. flex-direction: row;
  12202. justify-content: flex-start;
  12203. align-items: center;
  12204. height: 60px;
  12205. position: relative;
  12206. }
  12207. .before {
  12208. position: absolute;
  12209. background: #c3dad4;
  12210. width: 6px;
  12211. height: 100%;
  12212. }
  12213. .courseIndex {
  12214. display: flex;
  12215. flex-direction: row;
  12216. align-items: center;
  12217. width: calc(100% - 520px);
  12218. }
  12219. .courseIndex > div:nth-child(1) {
  12220. margin: 0 20px;
  12221. padding-left: 5px;
  12222. font-size: 24px;
  12223. min-width: 100px;
  12224. font-weight: bold;
  12225. border-left: 4px solid #3363b9;
  12226. height: 35px;
  12227. text-align: center;
  12228. line-height: 35px;
  12229. }
  12230. .courseIndex > div:nth-child(2) {
  12231. font-size: 23px;
  12232. /* width: 300px; */
  12233. max-width: calc(100% - 180px);
  12234. white-space: nowrap;
  12235. overflow: hidden;
  12236. text-overflow: ellipsis;
  12237. }
  12238. .courseIndex > div:nth-child(3) {
  12239. border-bottom: 1px solid #d7d7d7;
  12240. padding-bottom: 5px;
  12241. background: #49a0f0;
  12242. width: 55px;
  12243. min-width: 55px;
  12244. border-radius: 5px;
  12245. color: #fff;
  12246. text-align: center;
  12247. height: 20px;
  12248. line-height: 26px;
  12249. font-size: 14px;
  12250. margin: 0 0 0 10px;
  12251. }
  12252. .course_text {
  12253. padding: 20px 0 0 15px;
  12254. text-indent: 30px;
  12255. width: 80%;
  12256. min-height: 20px;
  12257. }
  12258. .vedioList {
  12259. background: #f2f2f2;
  12260. border: 1px solid #ececec;
  12261. /* width: 38.8%; */
  12262. width: calc(100% - 83%);
  12263. height: 445px;
  12264. border-radius: 10px;
  12265. overflow: hidden;
  12266. }
  12267. .vedioNav {
  12268. margin: 10px 0 0 15px;
  12269. border-bottom: 1px solid #d7d7d7;
  12270. padding-bottom: 5px;
  12271. background: #96d1ff;
  12272. width: 55px;
  12273. min-width: 55px;
  12274. border-radius: 5px;
  12275. color: #fff;
  12276. text-align: center;
  12277. height: 20px;
  12278. line-height: 26px;
  12279. font-size: 14px;
  12280. }
  12281. .queTop {
  12282. display: flex;
  12283. padding: 20px 0 20px 30px;
  12284. width: 100%;
  12285. flex-direction: row;
  12286. justify-content: flex-start;
  12287. align-items: center;
  12288. border-bottom: 1px solid #eeeeee;
  12289. box-sizing: border-box;
  12290. }
  12291. .question {
  12292. width: 40px;
  12293. margin-right: 10px;
  12294. margin-top: 7px;
  12295. }
  12296. .queTitle {
  12297. margin-left: 5px;
  12298. font-size: 25px;
  12299. display: flex;
  12300. align-items: center;
  12301. }
  12302. .addEditor {
  12303. width: 100px;
  12304. height: 30px;
  12305. background: #42cda6;
  12306. color: #fff;
  12307. border-radius: 5px;
  12308. text-align: center;
  12309. line-height: 30px;
  12310. box-shadow: 1px 3px 6px 1px #bfbfbf;
  12311. cursor: pointer;
  12312. }
  12313. .vedioName {
  12314. /* text-overflow: ellipsis;
  12315. top: 8px;
  12316. font-size: 14px;
  12317. overflow: hidden;
  12318. width: 100%;
  12319. word-break: break-all;
  12320. white-space: nowrap; */
  12321. cursor: pointer;
  12322. margin: 0px 0px 10px 5px;
  12323. white-space: nowrap;
  12324. overflow: hidden;
  12325. text-overflow: ellipsis;
  12326. width: 100%;
  12327. }
  12328. .vedioTime {
  12329. width: 35px;
  12330. position: absolute;
  12331. color: #fff;
  12332. bottom: 0px;
  12333. right: 0px;
  12334. text-align: center;
  12335. background: #46411f;
  12336. height: 20px;
  12337. font-size: 14px;
  12338. line-height: 20px;
  12339. }
  12340. .homework {
  12341. width: 200px;
  12342. display: flex;
  12343. flex-direction: column;
  12344. flex-wrap: nowrap;
  12345. align-items: center;
  12346. cursor: pointer;
  12347. }
  12348. .homebox {
  12349. display: flex;
  12350. flex-wrap: wrap;
  12351. flex-direction: row;
  12352. justify-content: flex-start;
  12353. align-items: center;
  12354. padding: 15px 0;
  12355. }
  12356. .isChooseActive {
  12357. color: #3e88f4;
  12358. border-bottom: 2px solid #2f80f3;
  12359. }
  12360. .chooseWho {
  12361. display: flex;
  12362. width: 100%;
  12363. flex-direction: row;
  12364. flex-wrap: nowrap;
  12365. justify-content: flex-start;
  12366. padding-bottom: 10px;
  12367. }
  12368. .chooseWho > div {
  12369. cursor: pointer;
  12370. padding-bottom: 10px;
  12371. margin: 0 30px;
  12372. }
  12373. .addPoint > div > img {
  12374. cursor: pointer;
  12375. margin: 0 10px;
  12376. width: 85px;
  12377. border-radius: 15px;
  12378. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  12379. }
  12380. .addPoint > div {
  12381. display: flex;
  12382. flex-direction: column;
  12383. flex-wrap: nowrap;
  12384. align-items: center;
  12385. }
  12386. .isBorder > div {
  12387. margin: 0 0 10px 0;
  12388. align-items: flex-start !important;
  12389. }
  12390. .noiframeBox {
  12391. display: flex;
  12392. flex-wrap: wrap;
  12393. }
  12394. .iframeBox iframe {
  12395. width: 100%;
  12396. height: 800px;
  12397. border: none;
  12398. margin-bottom: 20px;
  12399. border: 1px solid #ccc;
  12400. }
  12401. .upload_toolBtn {
  12402. background: #6b92c9;
  12403. color: #fff;
  12404. width: 110px;
  12405. text-align: center;
  12406. height: 35px;
  12407. line-height: 35px;
  12408. font-size: 14px;
  12409. border-radius: 5px;
  12410. cursor: pointer;
  12411. position: absolute;
  12412. right: 10px;
  12413. bottom: 0;
  12414. }
  12415. .binfo_input,
  12416. .pj {
  12417. font: inherit;
  12418. color: currentColor;
  12419. width: 100%;
  12420. margin: 0;
  12421. padding: 15px 14px;
  12422. display: block;
  12423. min-width: 0;
  12424. outline: none;
  12425. box-sizing: content-box;
  12426. background: none;
  12427. -webkit-tap-highlight-color: transparent;
  12428. border: 1px solid rgba(0, 0, 0, 0.23);
  12429. border-radius: 4px;
  12430. box-sizing: border-box;
  12431. resize: none;
  12432. }
  12433. .binfo_input:focus-visible {
  12434. border: 1px solid rgba(61, 103, 188);
  12435. }
  12436. .dialog_diy >>> .el-dialog__header,
  12437. .dialog_diy1 >>> .el-dialog__header {
  12438. background: #454545 !important;
  12439. padding: 15px 20px;
  12440. }
  12441. .dialog_diy >>> .el-dialog__title,
  12442. .dialog_diy1 >>> .el-dialog__title {
  12443. color: #fff;
  12444. }
  12445. .dialog_diy >>> .el-dialog__headerbtn,
  12446. .dialog_diy1 >>> .el-dialog__headerbtn {
  12447. top: 19px;
  12448. }
  12449. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  12450. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  12451. color: #fff;
  12452. }
  12453. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  12454. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  12455. color: #fff;
  12456. }
  12457. .dialog_diy1 >>> .el-dialog__body {
  12458. padding: 0;
  12459. }
  12460. .dialog_diy >>> .el-dialog__body,
  12461. .dialog_diy >>> .el-dialog__footer,
  12462. .dialog_diy1 >>> .el-dialog__footer {
  12463. background: #fafafa;
  12464. }
  12465. .a_addBox {
  12466. margin: 10px 0;
  12467. background: #fff;
  12468. padding: 15px;
  12469. max-height: 400px;
  12470. overflow: auto;
  12471. }
  12472. .a_add_box {
  12473. border-bottom: 2px solid #eee;
  12474. padding-bottom: 10px;
  12475. }
  12476. .a_add_head {
  12477. display: flex;
  12478. align-items: flex-start;
  12479. /* justify-content: space-between; */
  12480. flex-direction: column;
  12481. margin: 10px 0;
  12482. font-size: 18px;
  12483. width: 100%;
  12484. }
  12485. .a_add_head .a_add_head_input {
  12486. width: 300px;
  12487. }
  12488. .a_add_head .a_add_head_div {
  12489. display: flex;
  12490. align-items: center;
  12491. justify-content: space-between;
  12492. }
  12493. .a_add_body {
  12494. display: flex;
  12495. align-items: center;
  12496. }
  12497. .a_add_input {
  12498. display: flex;
  12499. align-items: center;
  12500. flex-wrap: wrap;
  12501. }
  12502. .a_add_input >>> el-radio-group {
  12503. margin: 10px 0;
  12504. }
  12505. .a_add_input >>> .el-radio,
  12506. .a_add_input >>> .el-checkbox {
  12507. margin-bottom: 10px;
  12508. display: flex;
  12509. flex-direction: row;
  12510. flex-wrap: nowrap;
  12511. align-items: center;
  12512. }
  12513. .redioStyle >>> .el-radio__label {
  12514. font-size: 18px;
  12515. }
  12516. .redioStyle >>> .el-checkbox__label {
  12517. font-size: 18px;
  12518. }
  12519. .toolHeng2 {
  12520. width: 100%;
  12521. }
  12522. .toolHeng {
  12523. display: flex;
  12524. flex-direction: row;
  12525. flex-wrap: wrap;
  12526. justify-content: flex-start;
  12527. align-items: center;
  12528. width: 100%;
  12529. }
  12530. .toolHeng > div {
  12531. padding-left: 20px;
  12532. }
  12533. .isWidth {
  12534. width: 20%;
  12535. }
  12536. .textTitle {
  12537. display: flex;
  12538. flex-direction: row;
  12539. flex-wrap: nowrap;
  12540. align-items: center;
  12541. width: 95%;
  12542. }
  12543. .textTitle >>> .el-form-item__label {
  12544. font-size: 22px;
  12545. color: #918f8f;
  12546. width: 100px;
  12547. }
  12548. .textTitle >>> .el-form-item__content {
  12549. width: calc(100% - 100px);
  12550. }
  12551. .textCss >>> .el-dialog {
  12552. width: 800px !important;
  12553. height: 400px;
  12554. background: #fafafa;
  12555. }
  12556. .textCss >>> .el-dialog__body {
  12557. margin: 55px 8% 0 8%;
  12558. padding: 0 !important;
  12559. }
  12560. .textCss >>> .el-dialog__footer {
  12561. padding-top: 38px;
  12562. }
  12563. .toolsCss >>> .el-dialog__body {
  12564. padding: 20px;
  12565. }
  12566. .lineCss >>> .el-dialog__body {
  12567. display: flex;
  12568. flex-direction: row;
  12569. align-items: center;
  12570. justify-content: center;
  12571. }
  12572. .newNav {
  12573. display: flex;
  12574. flex-direction: row;
  12575. align-items: baseline;
  12576. justify-content: flex-start;
  12577. }
  12578. .navText {
  12579. cursor: pointer;
  12580. margin: 0px 0px 10px 5px;
  12581. white-space: nowrap;
  12582. overflow: hidden;
  12583. text-overflow: ellipsis;
  12584. /* width: 300px; */
  12585. width: 100%;
  12586. }
  12587. .noVedio {
  12588. display: flex;
  12589. flex-direction: row;
  12590. justify-content: center;
  12591. align-content: center;
  12592. }
  12593. .noNavText {
  12594. cursor: pointer;
  12595. margin: 0px 0px 10px 5px;
  12596. width: 112px;
  12597. }
  12598. .listNoVedio {
  12599. margin: 0 0 0 30px;
  12600. width: 97%;
  12601. }
  12602. .video-player >>> .video-js {
  12603. height: 100%;
  12604. }
  12605. .hangVedioList {
  12606. width: 90% !important;
  12607. height: 150px !important;
  12608. margin: 20px 0 0 30px;
  12609. }
  12610. .hangVedio {
  12611. width: 100%;
  12612. height: 170px !important;
  12613. align-items: flex-start !important;
  12614. }
  12615. .hangHand {
  12616. height: 150px !important;
  12617. }
  12618. .twoChild {
  12619. width: 95%;
  12620. margin: 10px;
  12621. border-radius: 5px;
  12622. background: #f2f2f2;
  12623. display: flex;
  12624. flex-direction: column;
  12625. flex-wrap: nowrap;
  12626. justify-content: flex-start;
  12627. align-items: flex-start;
  12628. transition: all 0.5s;
  12629. overflow: hidden;
  12630. height: 0;
  12631. background: #e7f3ff;
  12632. }
  12633. .twoChild > div:nth-child(1) {
  12634. margin-top: 5px;
  12635. }
  12636. .navChild {
  12637. width: 100%;
  12638. cursor: pointer;
  12639. margin-bottom: 10px;
  12640. position: relative;
  12641. }
  12642. .navChild img {
  12643. position: absolute;
  12644. right: 11px;
  12645. width: 15px;
  12646. top: 50%;
  12647. transform: translateY(-50%);
  12648. }
  12649. .navActive {
  12650. height: auto;
  12651. }
  12652. .navTask {
  12653. display: flex;
  12654. flex-direction: row;
  12655. flex-wrap: nowrap;
  12656. align-items: center;
  12657. align-content: flex-start;
  12658. height: 40px;
  12659. justify-content: flex-start;
  12660. padding: 0 10px;
  12661. width: 100%;
  12662. box-sizing: border-box;
  12663. }
  12664. .navTaskname {
  12665. white-space: nowrap;
  12666. text-overflow: ellipsis;
  12667. overflow: hidden;
  12668. word-break: break-all;
  12669. padding-left: 5px;
  12670. }
  12671. .openTaskActive {
  12672. color: #4386e6;
  12673. }
  12674. .iframeName {
  12675. margin: 5px 0;
  12676. border-left: 4px solid #41c4a4;
  12677. padding-left: 4px;
  12678. }
  12679. .toolTitle {
  12680. margin: 0px 0px 20px;
  12681. font-size: 20px;
  12682. font-weight: 500;
  12683. border-left: 4px solid #41c4a4;
  12684. padding-left: 4px;
  12685. }
  12686. .cru_selectBox {
  12687. overflow: auto;
  12688. width: 96%;
  12689. margin: 0 auto;
  12690. height: calc(100% - 40px - 21px - 20px);
  12691. }
  12692. .cru_selectBox::-webkit-scrollbar,
  12693. .study_top::-webkit-scrollbar,
  12694. .textContent::-webkit-scrollbar {
  12695. /*滚动条整体样式*/
  12696. width: 6px;
  12697. /*高宽分别对应横竖滚动条的尺寸*/
  12698. height: 6px;
  12699. }
  12700. /*定义滚动条轨道 内阴影+圆角*/
  12701. .cru_selectBox::-webkit-scrollbar-track,
  12702. .study_top::-webkit-scrollbar-track,
  12703. .textContent::-webkit-scrollbar {
  12704. border-radius: 10px;
  12705. background-color: #b8bdc9;
  12706. }
  12707. /*定义滑块 内阴影+圆角*/
  12708. .cru_selectBox::-webkit-scrollbar-thumb,
  12709. .study_top::-webkit-scrollbar-thumb,
  12710. .textContent::-webkit-scrollbar-thumb {
  12711. border-radius: 10px;
  12712. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  12713. background-color: #2c5ab3;
  12714. }
  12715. .vedioBox {
  12716. border-radius: 20px;
  12717. background: #fff;
  12718. margin-bottom: 10px;
  12719. }
  12720. .taskBox {
  12721. margin: 15px auto 20px;
  12722. background: #f7f7f7;
  12723. width: 97%;
  12724. border-radius: 10px;
  12725. }
  12726. .vedioTaskBox {
  12727. width: 100%;
  12728. display: flex;
  12729. flex-direction: row;
  12730. flex-wrap: nowrap;
  12731. align-items: center;
  12732. }
  12733. .toolBox {
  12734. padding: 20px 0 0 0;
  12735. display: flex;
  12736. }
  12737. .btnAll {
  12738. position: absolute;
  12739. right: 0;
  12740. display: flex;
  12741. flex-direction: row;
  12742. flex-wrap: nowrap;
  12743. align-items: center;
  12744. }
  12745. .vedioTimeBox {
  12746. display: flex;
  12747. flex-direction: row;
  12748. align-items: center;
  12749. flex-wrap: nowrap;
  12750. position: relative;
  12751. }
  12752. .navBox {
  12753. background: rgb(255, 255, 255);
  12754. height: 400px;
  12755. padding: 5px 1px 0 1px;
  12756. overflow: auto;
  12757. }
  12758. .worksBox {
  12759. padding: 5px 0 0 10px;
  12760. border-bottom: 1px solid #eeeeee;
  12761. }
  12762. .worksBTitle {
  12763. font-size: 20px;
  12764. padding-bottom: 15px;
  12765. border-bottom: 1px solid #eeeeee;
  12766. display: flex;
  12767. align-items: center;
  12768. }
  12769. .greenBox {
  12770. width: 5px;
  12771. height: 30px;
  12772. background: #63b6fa;
  12773. margin-right: 5px;
  12774. }
  12775. .worksDetailBox {
  12776. display: flex;
  12777. width: 100%;
  12778. flex-direction: row;
  12779. flex-wrap: wrap;
  12780. align-items: center;
  12781. justify-content: flex-start;
  12782. padding: 15px 0;
  12783. }
  12784. .works {
  12785. display: flex;
  12786. flex-direction: column;
  12787. flex-wrap: nowrap;
  12788. align-items: flex-start;
  12789. justify-content: flex-start;
  12790. align-content: center;
  12791. max-width: 240px;
  12792. width: calc(100% / 3 - 10px);
  12793. height: auto;
  12794. margin-right: 10px;
  12795. margin-bottom: 10px;
  12796. overflow: hidden;
  12797. height: 140px;
  12798. box-shadow: 0 0 6px 1px #dfdada;
  12799. border-radius: 15px;
  12800. }
  12801. .workImg {
  12802. width: 100%;
  12803. /* height: calc(100% - 40px); */
  12804. height: 105px;
  12805. position: relative;
  12806. }
  12807. .workImg > img {
  12808. width: 100%;
  12809. height: 100%;
  12810. object-fit: contain;
  12811. cursor: pointer;
  12812. }
  12813. .worksName {
  12814. height: 40px;
  12815. line-height: 40px;
  12816. display: flex;
  12817. width: 100%;
  12818. flex-direction: row;
  12819. flex-wrap: nowrap;
  12820. justify-content: space-between;
  12821. align-items: center;
  12822. margin: 0 0 0 10px;
  12823. }
  12824. .worksName > div:nth-child(1) {
  12825. width: 110px;
  12826. white-space: nowrap;
  12827. overflow: hidden;
  12828. text-overflow: ellipsis;
  12829. }
  12830. .worksName > div:nth-child(2) {
  12831. color: #b7b4b5;
  12832. }
  12833. .noWorksS {
  12834. padding: 15px 0;
  12835. display: flex;
  12836. flex-direction: row;
  12837. flex-wrap: wrap;
  12838. align-items: center;
  12839. justify-content: flex-start;
  12840. }
  12841. .noWorksName,
  12842. .isWorksName {
  12843. background: #7cbcf1;
  12844. color: #fff;
  12845. width: 90px;
  12846. height: 25px;
  12847. text-align: center;
  12848. line-height: 25px;
  12849. border-radius: 5px;
  12850. margin: 10px 15px 10px 0;
  12851. white-space: nowrap;
  12852. overflow: hidden;
  12853. padding: 5px;
  12854. text-overflow: ellipsis;
  12855. }
  12856. .isWorksName {
  12857. cursor: pointer;
  12858. background: #46a1eb !important;
  12859. width: 100px;
  12860. height: 40px;
  12861. line-height: 40px;
  12862. position: relative;
  12863. }
  12864. .noWorksName:hover {
  12865. background: #46a1eb !important;
  12866. }
  12867. .title {
  12868. background: #1e5cc9;
  12869. /* width: 98%; */
  12870. height: 45px;
  12871. color: #fff;
  12872. line-height: 45px;
  12873. padding-left: 20px;
  12874. box-sizing: border-box;
  12875. }
  12876. .textBox {
  12877. font-size: 20px;
  12878. width: 90%;
  12879. display: flex;
  12880. flex-direction: column;
  12881. align-items: center;
  12882. margin: 20px auto 0;
  12883. }
  12884. .textContent {
  12885. font-size: 18px;
  12886. height: 450px;
  12887. width: 95%;
  12888. max-width: 95%;
  12889. overflow: auto;
  12890. line-height: 30px;
  12891. }
  12892. .answerBg {
  12893. background: url("../assets/icon/answerBgNew.png") no-repeat;
  12894. background-size: 100% 100%;
  12895. width: 100%;
  12896. height: 100%;
  12897. color: #fff;
  12898. text-align: center;
  12899. display: flex;
  12900. flex-direction: column;
  12901. flex-wrap: nowrap;
  12902. align-items: center;
  12903. position: relative;
  12904. justify-content: center;
  12905. }
  12906. .answerBg > div:nth-child(1) {
  12907. /* font-size: 22px;
  12908. padding: 25px 0 10px; */
  12909. }
  12910. .answerContent {
  12911. width: 215px;
  12912. max-height: 60px;
  12913. word-break: break-all;
  12914. text-align: center;
  12915. /* white-space: nowrap; */
  12916. overflow: hidden;
  12917. text-overflow: ellipsis;
  12918. /* padding: 23px 0 0; */
  12919. -webkit-line-clamp: 3;
  12920. -webkit-box-orient: vertical;
  12921. display: -webkit-box;
  12922. font-size: 15px;
  12923. }
  12924. .elist_input_box {
  12925. display: flex;
  12926. align-items: flex-start;
  12927. flex-wrap: nowrap;
  12928. padding: 10px 0 15px 30px;
  12929. flex-direction: column;
  12930. }
  12931. .elist_input {
  12932. /* width: 40%; */
  12933. width: 100%;
  12934. }
  12935. .elist_input .elist_input_box input {
  12936. font: inherit;
  12937. color: currentColor;
  12938. width: 200px;
  12939. padding: 8px 14px;
  12940. display: block;
  12941. min-width: 0;
  12942. outline: none;
  12943. border: 1px solid rgba(0, 0, 0, 0.23);
  12944. border-radius: 4px;
  12945. box-sizing: border-box;
  12946. background: #fff;
  12947. margin: 0 20px 0 0;
  12948. }
  12949. .elist_input .elist_input_box span {
  12950. height: 36px;
  12951. line-height: 36px;
  12952. color: rgb(82, 82, 82);
  12953. }
  12954. .elist_input .elist_input_box .remove {
  12955. height: 20px;
  12956. width: 20px;
  12957. background-size: 100% 100%;
  12958. background-position: unset;
  12959. margin-left: 5px;
  12960. }
  12961. .elist_input_box >>> .el-rate {
  12962. display: flex;
  12963. height: 36px;
  12964. align-items: center;
  12965. }
  12966. .elist_input_box .elist_inptu_text {
  12967. min-height: 50px;
  12968. /* width: 500px;
  12969. max-height: 150px; */
  12970. width: 100%;
  12971. line-height: 50px;
  12972. color: rgb(82, 82, 82);
  12973. overflow: auto;
  12974. text-indent: 5px;
  12975. background: #f7f6f9;
  12976. border-radius: 10px;
  12977. }
  12978. .elist_input_box .elist_inptu_text input {
  12979. width: 500px;
  12980. }
  12981. .elist_input_box >>> .el-rate__icon {
  12982. font-size: 24px;
  12983. }
  12984. .isClick {
  12985. background: #4d9def;
  12986. }
  12987. .bzBox {
  12988. display: flex;
  12989. flex-direction: row;
  12990. align-items: center;
  12991. }
  12992. .bzBox > div:nth-child(1) {
  12993. width: 4px;
  12994. height: 40px;
  12995. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  12996. }
  12997. .bzBox > div:nth-child(2) {
  12998. font-size: 23px;
  12999. font-weight: bold;
  13000. padding: 0px 0px 0 10px;
  13001. }
  13002. .navTitile {
  13003. padding: 0 0px 0 15px;
  13004. background: #1e5cc9;
  13005. color: #fff;
  13006. height: 40px;
  13007. line-height: 40px;
  13008. border-top-left-radius: 10px;
  13009. border-top-right-radius: 10px;
  13010. }
  13011. .isTypeOne {
  13012. width: 240px;
  13013. height: 170px;
  13014. /* border: 1px solid #f8f8f8; */
  13015. border-radius: 10px;
  13016. box-shadow: 0 0 6px 1px #dfdada;
  13017. }
  13018. .e_add_top {
  13019. display: flex;
  13020. justify-content: space-between;
  13021. padding: 20px 20px 0 20px;
  13022. border-radius: 3px;
  13023. background: #fff;
  13024. }
  13025. .e_add_title2 {
  13026. display: flex;
  13027. align-items: center;
  13028. }
  13029. .e_add_title2 span {
  13030. width: 40px;
  13031. }
  13032. .e_add_title {
  13033. display: flex;
  13034. align-items: center;
  13035. color: #b8b8b8;
  13036. font-size: 18px;
  13037. position: relative;
  13038. height: 40px;
  13039. }
  13040. .e_add_title span {
  13041. margin-right: 10px;
  13042. }
  13043. .e_add_title .el_input {
  13044. width: 300px;
  13045. }
  13046. .e_add_title >>> .el-input__inner {
  13047. width: 400px;
  13048. }
  13049. .e_add_btn {
  13050. }
  13051. .e_add_content {
  13052. display: flex;
  13053. width: 100%;
  13054. max-width: 650px;
  13055. height: 550px;
  13056. }
  13057. .e_add_list {
  13058. background: #fff;
  13059. height: 500px;
  13060. width: 210px;
  13061. position: relative;
  13062. margin: 15px 5px 0 0;
  13063. flex-shrink: 0;
  13064. display: flex;
  13065. flex-direction: column;
  13066. }
  13067. .e_add_list_title {
  13068. font-size: 20px;
  13069. width: 100%;
  13070. box-sizing: border-box;
  13071. padding: 15px 40px;
  13072. text-align: center;
  13073. border-bottom: 1px solid #eaeaea;
  13074. position: relative;
  13075. display: flex;
  13076. align-items: center;
  13077. justify-content: center;
  13078. height: 57px;
  13079. background: #f6f6f6;
  13080. }
  13081. .e_add_list_title span {
  13082. overflow: hidden;
  13083. white-space: nowrap;
  13084. text-overflow: ellipsis;
  13085. }
  13086. .e_add_list_title img {
  13087. position: absolute;
  13088. right: 15px;
  13089. width: 25px;
  13090. cursor: pointer;
  13091. top: 50%;
  13092. transform: translateY(-50%);
  13093. }
  13094. .e_add_list_body {
  13095. height: calc(100% - 187px);
  13096. overflow: auto;
  13097. }
  13098. .e_add_list_child {
  13099. width: 100%;
  13100. display: flex;
  13101. align-items: center;
  13102. justify-content: center;
  13103. position: relative;
  13104. box-sizing: border-box;
  13105. padding: 15px 40px;
  13106. text-align: center;
  13107. }
  13108. .e_add_list_child span {
  13109. overflow: hidden;
  13110. white-space: nowrap;
  13111. text-overflow: ellipsis;
  13112. cursor: pointer;
  13113. }
  13114. .e_add_list_child img {
  13115. position: absolute;
  13116. right: 10px;
  13117. width: 21px;
  13118. cursor: pointer;
  13119. top: 50%;
  13120. transform: translateY(-50%);
  13121. }
  13122. .e_add_list_child + .e_add_list_child {
  13123. border-top: 1px solid #eaeaea;
  13124. }
  13125. .e_add_list_child .active {
  13126. color: #409eff;
  13127. }
  13128. .e_add_list_btn {
  13129. position: absolute;
  13130. bottom: 0;
  13131. height: 50px;
  13132. background: rgb(120, 120, 254);
  13133. width: 100%;
  13134. color: #fff;
  13135. font-size: 16px;
  13136. text-align: center;
  13137. line-height: 50px;
  13138. cursor: pointer;
  13139. }
  13140. .e_add_list_detail {
  13141. position: absolute;
  13142. bottom: 0;
  13143. height: 130px;
  13144. background: rgb(120, 120, 254);
  13145. width: 100%;
  13146. color: #fff;
  13147. font-size: 16px;
  13148. display: flex;
  13149. align-items: center;
  13150. justify-content: center;
  13151. }
  13152. .e_add_list_detail textarea {
  13153. height: 90%;
  13154. width: 95%;
  13155. border: none;
  13156. resize: none;
  13157. outline: none;
  13158. padding: 5px;
  13159. box-sizing: border-box;
  13160. }
  13161. .e_add_list_pbox {
  13162. width: 100%;
  13163. max-width: 650px;
  13164. /* height: 600px; */
  13165. }
  13166. .e_add_list_pbox_title {
  13167. height: 50px;
  13168. background: #fff;
  13169. display: flex;
  13170. align-items: center;
  13171. width: 100%;
  13172. box-sizing: border-box;
  13173. padding: 0 20px;
  13174. }
  13175. .type_title {
  13176. font-size: 18px;
  13177. font-weight: 700;
  13178. }
  13179. .type_content {
  13180. font-size: 16px;
  13181. margin-left: 30px;
  13182. }
  13183. .type_content span + span {
  13184. margin-left: 20px;
  13185. }
  13186. .type_content span {
  13187. cursor: pointer;
  13188. padding-bottom: 5px;
  13189. box-sizing: border-box;
  13190. }
  13191. .type_content .active {
  13192. color: #409eff;
  13193. border-bottom: 2px solid #409eff;
  13194. }
  13195. .e_add_list_pbox_content {
  13196. height: calc(100% - 50px);
  13197. display: flex;
  13198. align-items: center;
  13199. width: 100%;
  13200. background: #fff;
  13201. }
  13202. .evaCss {
  13203. display: flex;
  13204. flex-direction: row;
  13205. flex-wrap: nowrap;
  13206. align-items: flex-start;
  13207. }
  13208. .cru_line {
  13209. position: absolute;
  13210. bottom: 0px;
  13211. transition: all 0.5s;
  13212. left: 0px;
  13213. width: 125px;
  13214. margin-left: -25px;
  13215. }
  13216. .isNoMessage {
  13217. width: 20%;
  13218. margin: 25% auto 0;
  13219. }
  13220. .isNoMessage > img {
  13221. width: 100%;
  13222. height: 100%;
  13223. }
  13224. .fullStyle >>> .el-dialog__body {
  13225. height: 100% !important;
  13226. }
  13227. .fullStyle >>> .el-dialog,
  13228. .fullStyle {
  13229. width: 100% !important;
  13230. max-width: 100% !important;
  13231. height: 100% !important;
  13232. margin: 0 !important;
  13233. }
  13234. .full_diy >>> .el-dialog {
  13235. margin: 0 !important;
  13236. height: 100%;
  13237. padding: 4px;
  13238. }
  13239. .full_diy >>> .el-dialog__body {
  13240. height: calc(100% - 100px);
  13241. }
  13242. .full_diy2 >>> .el-dialog__body {
  13243. height: calc(100% - 50px);
  13244. padding: 0;
  13245. }
  13246. .switchCss {
  13247. /* width: 100%; */
  13248. display: flex;
  13249. flex-direction: row;
  13250. flex-wrap: nowrap;
  13251. align-items: center;
  13252. /* justify-content: center; */
  13253. }
  13254. .isClickNav {
  13255. color: #499eef;
  13256. }
  13257. .commentImg {
  13258. width: 25px;
  13259. height: 25px;
  13260. cursor: pointer;
  13261. }
  13262. .commentImg > img {
  13263. width: 100%;
  13264. height: 100%;
  13265. }
  13266. .comment {
  13267. background: #f9f9f9;
  13268. border-radius: 0 0 15px 15px;
  13269. display: flex;
  13270. flex-direction: row;
  13271. flex-wrap: nowrap;
  13272. align-items: center;
  13273. justify-content: flex-end;
  13274. height: 35px;
  13275. }
  13276. .commentList {
  13277. display: flex;
  13278. flex-direction: row;
  13279. flex-wrap: nowrap;
  13280. align-items: center;
  13281. justify-content: center;
  13282. align-content: center;
  13283. /* margin-left: 15px; */
  13284. /* margin-left: 8px; */
  13285. }
  13286. .scoreImg {
  13287. width: 17px;
  13288. height: 17px;
  13289. }
  13290. .studentDetail {
  13291. display: flex;
  13292. flex-direction: row;
  13293. flex-wrap: nowrap;
  13294. /* align-items: center; */
  13295. align-items: flex-start;
  13296. }
  13297. .tx {
  13298. width: 50px;
  13299. }
  13300. .tx > img {
  13301. width: 100%;
  13302. height: 100%;
  13303. }
  13304. .nameAndTime {
  13305. display: flex;
  13306. flex-direction: column;
  13307. flex-wrap: nowrap;
  13308. align-items: flex-start;
  13309. margin-left: 10px;
  13310. }
  13311. .worksAnswer {
  13312. color: #4078dd;
  13313. margin: 10px 0;
  13314. font-size: 16px;
  13315. position: relative;
  13316. }
  13317. .worksAnswer > img {
  13318. width: 500px;
  13319. height: 300px;
  13320. object-fit: contain;
  13321. margin: 0 auto;
  13322. display: block;
  13323. }
  13324. .commentTop {
  13325. border-bottom: 1px solid #eaeaea;
  13326. padding-bottom: 10px;
  13327. }
  13328. .commentBox {
  13329. padding-top: 15px;
  13330. }
  13331. .pl {
  13332. font-size: 18px;
  13333. }
  13334. .plName {
  13335. display: flex;
  13336. flex-direction: row;
  13337. flex-wrap: nowrap;
  13338. align-items: baseline;
  13339. color: #78787a;
  13340. }
  13341. .evalCss {
  13342. background: #fff;
  13343. font-size: 18px;
  13344. }
  13345. .nav {
  13346. color: #9d9d9d;
  13347. padding: 5px 0 15px 20px;
  13348. }
  13349. .middleBox {
  13350. padding: 5px 0 15px 20px;
  13351. }
  13352. .pfBox {
  13353. padding-bottom: 30px;
  13354. }
  13355. .nameAndrate {
  13356. display: flex;
  13357. flex-direction: row;
  13358. flex-wrap: nowrap;
  13359. align-items: center;
  13360. padding-bottom: 10px;
  13361. height: 30px;
  13362. line-height: 30px;
  13363. }
  13364. .nameAndrate > div {
  13365. margin-left: 10px;
  13366. color: #000;
  13367. height: 30px;
  13368. }
  13369. .nameAndrate >>> .el-rate__icon {
  13370. font-size: 28px !important;
  13371. }
  13372. .pfBox > div:nth-child(2) {
  13373. background: #f7f6f9;
  13374. width: 400px;
  13375. min-height: 45px;
  13376. border-radius: 10px;
  13377. font-size: 16px;
  13378. display: flex;
  13379. flex-wrap: wrap;
  13380. align-items: center;
  13381. padding: 10px 20px;
  13382. box-sizing: border-box;
  13383. color: #000;
  13384. }
  13385. .bz {
  13386. display: flex;
  13387. flex-direction: row;
  13388. flex-wrap: nowrap;
  13389. align-items: flex-start;
  13390. }
  13391. .bz > div {
  13392. padding: 0 10px;
  13393. }
  13394. .select_box2_title {
  13395. background: #fff;
  13396. border-radius: 5px;
  13397. padding: 15px 10px;
  13398. box-sizing: border-box;
  13399. margin-bottom: 10px;
  13400. display: flex;
  13401. flex-direction: row;
  13402. flex-wrap: nowrap;
  13403. align-items: center;
  13404. }
  13405. .select_box2_title > div:nth-child(2) {
  13406. margin-left: 10px;
  13407. color: #c4c4c4;
  13408. }
  13409. .select_box2_box {
  13410. display: flex;
  13411. height: 500px;
  13412. }
  13413. .select_box2_img {
  13414. width: calc(100% - 310px);
  13415. height: 100%;
  13416. overflow: auto;
  13417. background: #fff;
  13418. border-radius: 5px;
  13419. }
  13420. .select_box2_img img {
  13421. width: 100%;
  13422. }
  13423. .select_box2_answer {
  13424. background: #fff;
  13425. margin-left: 10px;
  13426. border-radius: 5px;
  13427. width: 300px;
  13428. overflow: auto;
  13429. height: 90%;
  13430. display: flex;
  13431. flex-direction: column;
  13432. align-items: flex-start;
  13433. padding-top: 10px;
  13434. box-sizing: border-box;
  13435. position: relative;
  13436. }
  13437. .select_answer_title {
  13438. padding: 0 0 15px 20px;
  13439. color: #c4c4c4;
  13440. }
  13441. .select_box2_answer_box {
  13442. margin: 0 0 10px 20px;
  13443. width: 85%;
  13444. display: flex;
  13445. flex-direction: row;
  13446. flex-wrap: nowrap;
  13447. align-items: center;
  13448. }
  13449. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  13450. color: #000;
  13451. }
  13452. .upAnswerCss {
  13453. position: absolute;
  13454. bottom: 15px;
  13455. right: 15px;
  13456. }
  13457. .upAnswerCss >>> .el-button {
  13458. width: 95px;
  13459. height: 35px;
  13460. line-height: 35px;
  13461. padding: 0;
  13462. }
  13463. .rightWidthCss {
  13464. width: 60%;
  13465. display: flex;
  13466. flex-direction: row;
  13467. align-items: flex-start;
  13468. }
  13469. .rightAnswer {
  13470. display: flex;
  13471. flex-direction: row;
  13472. flex-wrap: nowrap;
  13473. align-items: center;
  13474. color: red;
  13475. margin-bottom: 31px;
  13476. }
  13477. .rightAnswerCss {
  13478. display: flex;
  13479. flex-direction: column;
  13480. flex-wrap: nowrap;
  13481. padding-top: 60px;
  13482. }
  13483. .blueCss {
  13484. color: #767de1;
  13485. margin-left: 10px;
  13486. }
  13487. .redCss {
  13488. color: red;
  13489. }
  13490. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  13491. color: rgb(0 123 255) !important;
  13492. }
  13493. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  13494. color: rgb(0 123 255) !important;
  13495. }
  13496. .zuoyeYulan {
  13497. padding-top: 15px;
  13498. font-size: 18px;
  13499. display: flex;
  13500. align-items: flex-end;
  13501. }
  13502. .buttonA {
  13503. margin-left: 10px;
  13504. padding: 0;
  13505. }
  13506. .displayBox {
  13507. margin-bottom: 10px;
  13508. display: block;
  13509. border-bottom: 3px solid #eee;
  13510. display: flex;
  13511. align-items: center;
  13512. }
  13513. .easy_comment {
  13514. width: calc(100% - 90px);
  13515. margin-left: 10px;
  13516. display: flex;
  13517. flex-wrap: wrap;
  13518. }
  13519. .easy_comment > div {
  13520. border: 1px solid #4a4a4a;
  13521. color: #666;
  13522. border-radius: 15px;
  13523. padding: 5px 10px;
  13524. font-size: 16px;
  13525. margin-bottom: 10px;
  13526. margin-right: 5px;
  13527. cursor: pointer;
  13528. }
  13529. .easy_comment div:hover {
  13530. border: 1px solid #f7ba2a;
  13531. color: #c69217;
  13532. }
  13533. .xuan_right_box {
  13534. padding: 10px;
  13535. background: rgb(247, 247, 247);
  13536. margin: 10px 12px;
  13537. border-radius: 5px;
  13538. }
  13539. .tool_right_box {
  13540. display: flex;
  13541. align-items: center;
  13542. }
  13543. .tool_right_box + .tool_right_box {
  13544. margin-top: 10px;
  13545. }
  13546. .right_box_xuan {
  13547. background: rgb(0 123 255);
  13548. color: #fff;
  13549. border-radius: 5px;
  13550. padding: 5px;
  13551. margin-left: 10px;
  13552. }
  13553. .pButton {
  13554. position: fixed;
  13555. /* right: 5%; */
  13556. /* bottom: 5%; */
  13557. color: #fff;
  13558. /* width: 50px;
  13559. height: 50px; */
  13560. /* border-radius: 50%; */
  13561. text-align: center;
  13562. /* line-height: 50px; */
  13563. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  13564. cursor: pointer;
  13565. z-index: 999;
  13566. right: 0;
  13567. top: 83px;
  13568. width: 50px;
  13569. height: 50px;
  13570. background: #fff;
  13571. display: flex;
  13572. align-items: center;
  13573. justify-content: center;
  13574. box-shadow: 0px 0 8px 0px #c5c5c5;
  13575. }
  13576. .pzClass {
  13577. width: calc(100% - 340px);
  13578. }
  13579. .newDialogCss {
  13580. /* position: fixed;
  13581. right: 5%;
  13582. top: 50%;
  13583. width: 340px;
  13584. transform: translateY(-50%);
  13585. height: 60%;
  13586. box-shadow: 0px 0 8px 0px #555555;
  13587. border-radius: 15px;
  13588. z-index: 999; */
  13589. position: fixed;
  13590. right: 0;
  13591. top: 70px;
  13592. width: 340px;
  13593. height: calc(100% - 80px);
  13594. z-index: 999;
  13595. background: #fff;
  13596. border-radius: 15px;
  13597. border-top-right-radius: 0px;
  13598. border-bottom-right-radius: 0px;
  13599. overflow: hidden;
  13600. }
  13601. .pzTop {
  13602. color: #fff;
  13603. background: #000;
  13604. display: flex;
  13605. flex-direction: row;
  13606. flex-wrap: nowrap;
  13607. align-items: center;
  13608. justify-content: space-between;
  13609. height: 40px;
  13610. border-radius: 15px 15px 0 0;
  13611. }
  13612. .pzTop2 .checkbox {
  13613. display: flex;
  13614. align-items: center;
  13615. padding: 15px 30px;
  13616. flex: 0 0 auto;
  13617. font-weight: bold;
  13618. border-bottom: 1px solid #eee;
  13619. justify-content: space-between;
  13620. }
  13621. .pzTop2 .check {
  13622. text-align: center;
  13623. cursor: pointer;
  13624. box-sizing: border-box;
  13625. display: flex;
  13626. }
  13627. .pzTop2 img {
  13628. width: 25px;
  13629. cursor: pointer;
  13630. }
  13631. .pzTop > div:nth-child(1) {
  13632. padding-left: 10px;
  13633. }
  13634. .pzTop > div:nth-child(2) {
  13635. width: 15px;
  13636. height: 15px;
  13637. padding-right: 10px;
  13638. cursor: pointer;
  13639. }
  13640. .pzTop > div:nth-child(2) > img {
  13641. width: 100%;
  13642. height: 100%;
  13643. }
  13644. .pzBox,
  13645. .noPzBox {
  13646. height: calc(100% - 60px);
  13647. /* background: #ededed; */
  13648. background: #fff;
  13649. /* border-radius: 0 0 15px 15px; */
  13650. }
  13651. .noPzBox {
  13652. display: flex;
  13653. flex-direction: column;
  13654. flex-wrap: nowrap;
  13655. justify-content: center;
  13656. align-items: center;
  13657. }
  13658. .pzList {
  13659. background: #f7f7f7;
  13660. width: 90%;
  13661. margin: 0 auto 15px;
  13662. border-radius: 5px;
  13663. }
  13664. .pzNavTop {
  13665. display: flex;
  13666. flex-direction: row;
  13667. flex-wrap: nowrap;
  13668. padding: 10px 10px 0 10px;
  13669. align-items: center;
  13670. }
  13671. .pzDelete {
  13672. cursor: pointer;
  13673. margin-left: auto;
  13674. font-size: 14px;
  13675. color: #afafaf;
  13676. }
  13677. .pzNavTop > div:nth-child(1) {
  13678. background: #3760af;
  13679. width: 35px;
  13680. height: 35px;
  13681. color: #fff;
  13682. text-align: center;
  13683. line-height: 35px;
  13684. border-radius: 50%;
  13685. font-size: 14px;
  13686. }
  13687. .pzNavTop > div:nth-child(2) {
  13688. font-size: 18px;
  13689. color: #959595;
  13690. margin-left: 5px;
  13691. }
  13692. .pzContent {
  13693. padding: 10px;
  13694. word-break: break-word;
  13695. }
  13696. .pzContent audio {
  13697. width: 100%;
  13698. }
  13699. .pzContent audio::-webkit-media-controls-panel {
  13700. background: #fff;
  13701. }
  13702. .pzListBox {
  13703. padding-top: 15px;
  13704. height: calc(100% - 60px);
  13705. overflow: auto;
  13706. }
  13707. .addPzButton {
  13708. position: relative;
  13709. margin-top: 3px;
  13710. width: 100%;
  13711. }
  13712. .addPzButton .img1 {
  13713. position: absolute;
  13714. top: 50%;
  13715. right: 25px;
  13716. transform: translateY(-50%);
  13717. height: 100%;
  13718. display: flex;
  13719. align-items: center;
  13720. }
  13721. .addPzButton .img1 div {
  13722. display: flex;
  13723. }
  13724. .addPzButton .img1 div img {
  13725. width: 28px;
  13726. margin-left: 10px;
  13727. cursor: pointer;
  13728. }
  13729. .addPzButton .img1 div span {
  13730. font-size: 14px;
  13731. margin: 4px 0 0 3px;
  13732. color: #afafaf;
  13733. }
  13734. .addPz {
  13735. background: #4b79ce;
  13736. width: 100px;
  13737. color: #fff;
  13738. font-size: 12px;
  13739. height: 30px;
  13740. margin: 0 auto;
  13741. text-align: center;
  13742. line-height: 30px;
  13743. border-radius: 10px;
  13744. cursor: pointer;
  13745. }
  13746. .addDialogCss {
  13747. position: fixed;
  13748. right: 37%;
  13749. top: 50%;
  13750. width: 600px;
  13751. transform: translateY(-50%);
  13752. height: 70%;
  13753. min-height: 450px;
  13754. box-shadow: 0px 0 8px 0px #555555;
  13755. border-radius: 15px;
  13756. z-index: 999;
  13757. }
  13758. .teacherPz {
  13759. display: flex;
  13760. flex-direction: row;
  13761. align-items: center;
  13762. flex-wrap: nowrap;
  13763. }
  13764. .teacherPzImg {
  13765. width: 30px;
  13766. height: 30px;
  13767. }
  13768. .teacherPzImg > img {
  13769. width: 100%;
  13770. height: 100%;
  13771. }
  13772. .addPzBox {
  13773. height: calc(100% - 40px);
  13774. background: #ededed;
  13775. }
  13776. .pzAudioClass {
  13777. margin: 15px 14px;
  13778. background: #fff;
  13779. height: 100%;
  13780. display: flex;
  13781. justify-content: center;
  13782. align-items: center;
  13783. }
  13784. .pzConText {
  13785. width: 95%;
  13786. height: 100%;
  13787. margin: 10px auto 0;
  13788. border: none;
  13789. background: #fff;
  13790. border-radius: 0px;
  13791. }
  13792. .pzConText >>> .text {
  13793. height: calc(100% - 82px);
  13794. }
  13795. .addTextCss {
  13796. background: #4b79ce;
  13797. width: 80px;
  13798. height: 30px;
  13799. text-align: center;
  13800. color: #fff;
  13801. line-height: 30px;
  13802. border-radius: 10px;
  13803. margin: 10px auto 0;
  13804. cursor: pointer;
  13805. }
  13806. .pzConText:focus-visible {
  13807. border: none !important;
  13808. }
  13809. .maxWidth {
  13810. width: 1000px;
  13811. }
  13812. .noPz {
  13813. width: 150px;
  13814. margin: 0 auto 20%;
  13815. }
  13816. .noPz > img {
  13817. width: 100%;
  13818. height: 100%;
  13819. }
  13820. .pzList .time {
  13821. text-align: right;
  13822. box-sizing: border-box;
  13823. padding: 0 10px 10px 0px;
  13824. color: #949494;
  13825. font-size: 14px;
  13826. }
  13827. /* table 样式 */
  13828. .cont >>> table {
  13829. border-top: 1px solid #ccc;
  13830. border-left: 1px solid #ccc;
  13831. }
  13832. .cont >>> table td,
  13833. .cont >>> table th {
  13834. border-bottom: 1px solid #ccc;
  13835. border-right: 1px solid #ccc;
  13836. padding: 15px 5px;
  13837. max-width: 0px;
  13838. }
  13839. .cont >>> table th {
  13840. border-bottom: 2px solid #ccc;
  13841. text-align: center;
  13842. }
  13843. /* blockquote 样式 */
  13844. .cont >>> blockquote {
  13845. display: block;
  13846. border-left: 8px solid #d0e5f2;
  13847. padding: 5px 10px;
  13848. margin: 10px 0;
  13849. line-height: 1.4;
  13850. font-size: 100%;
  13851. background-color: #f1f1f1;
  13852. }
  13853. .addPzCheck {
  13854. display: flex;
  13855. flex-direction: row;
  13856. flex-wrap: nowrap;
  13857. padding: 10px 15px 0;
  13858. }
  13859. .addPzCheck span {
  13860. cursor: pointer;
  13861. padding-bottom: 5px;
  13862. font-weight: bold;
  13863. }
  13864. .addPzCheck span + span {
  13865. margin-left: 10px;
  13866. }
  13867. .addPzCheck .isChooseActive {
  13868. color: #3e88f4;
  13869. border-bottom: 2px solid #2f80f3;
  13870. }
  13871. /* code 样式 */
  13872. .cont >>> code {
  13873. display: inline-block;
  13874. *display: inline;
  13875. *zoom: 1;
  13876. background-color: #f1f1f1;
  13877. border-radius: 3px;
  13878. padding: 3px 5px;
  13879. margin: 0 3px;
  13880. }
  13881. .cont >>> pre code {
  13882. display: block;
  13883. }
  13884. /* ul ol 样式 */
  13885. .cont >>> ul,
  13886. ol {
  13887. margin: 10px 0 10px 20px;
  13888. }
  13889. .scoreBox,
  13890. .scoreDetailBox {
  13891. display: flex;
  13892. align-items: center;
  13893. justify-content: flex-start;
  13894. margin-top: 20px;
  13895. font-size: 18px;
  13896. width: 100%;
  13897. }
  13898. .scoreBox .t,
  13899. .scoreDetailBox .t {
  13900. margin-right: 10px;
  13901. width: 100px;
  13902. text-align: right;
  13903. }
  13904. .scoreDetailBox {
  13905. align-items: flex-start;
  13906. }
  13907. .scoreDetailBox >>> .el-textarea {
  13908. width: calc(100% - 200px);
  13909. }
  13910. .scoreBox >>> .el-input {
  13911. width: 130px;
  13912. font-size: 38px;
  13913. }
  13914. .scoreBox >>> .el-input__inner {
  13915. height: 60px;
  13916. }
  13917. .answerScore {
  13918. position: absolute;
  13919. top: 10px;
  13920. right: 10px;
  13921. background: #0000008f;
  13922. border-radius: 5px;
  13923. padding: 3px 5px;
  13924. font-size: 14px;
  13925. color: #fff;
  13926. cursor: pointer;
  13927. }
  13928. .open_box .switch_box {
  13929. width: 100%;
  13930. margin: 0 auto;
  13931. display: flex;
  13932. justify-content: space-between;
  13933. }
  13934. .open_box .switch_box + .switch_box {
  13935. margin-top: 10px;
  13936. }
  13937. .deleteImg {
  13938. width: 25px !important;
  13939. height: 25px !important;
  13940. cursor: pointer;
  13941. position: absolute;
  13942. top: 10px;
  13943. right: 10px;
  13944. }
  13945. .deleteImg2 {
  13946. width: 15px !important;
  13947. height: 15px !important;
  13948. top: 5px;
  13949. right: 5px;
  13950. }
  13951. .rightW {
  13952. right: 40px;
  13953. }
  13954. .drawPBox {
  13955. display: flex;
  13956. flex-direction: column;
  13957. position: relative;
  13958. }
  13959. .drawPBox span {
  13960. font-size: 18px;
  13961. color: #606266;
  13962. padding-bottom: 10px;
  13963. margin: 10px 0;
  13964. border-bottom: 1px solid #eaeaea;
  13965. }
  13966. .drawPBox img {
  13967. width: 500px;
  13968. height: 300px;
  13969. object-fit: contain;
  13970. cursor: pointer;
  13971. margin: 0 auto;
  13972. }
  13973. .sentenBox {
  13974. background: #fff;
  13975. height: 450px;
  13976. overflow: auto;
  13977. background-image: url("../assets/icon/conSentences/stuBg.png");
  13978. background-position: 102%;
  13979. background-repeat: no-repeat;
  13980. background-size: 60%;
  13981. }
  13982. .addSen {
  13983. background: #409efe;
  13984. width: 90px;
  13985. color: #fff;
  13986. height: 35px;
  13987. text-align: center;
  13988. line-height: 35px;
  13989. border-radius: 5px;
  13990. float: right;
  13991. margin: 10px 20px 0 0;
  13992. cursor: pointer;
  13993. }
  13994. .sentenTop {
  13995. display: flex;
  13996. flex-direction: row;
  13997. flex-wrap: nowrap;
  13998. align-items: center;
  13999. padding: 55px 0 0 20px;
  14000. box-sizing: border-box;
  14001. }
  14002. .sentenTop > div:nth-child(2) {
  14003. width: 300px;
  14004. margin: 0 15px;
  14005. }
  14006. .sentenTop > div:nth-child(3) {
  14007. background: #409efe;
  14008. color: #fff;
  14009. width: 65px;
  14010. height: 35px;
  14011. text-align: center;
  14012. line-height: 35px;
  14013. border-radius: 5px;
  14014. cursor: pointer;
  14015. }
  14016. .cardList,
  14017. .cardList1 {
  14018. padding: 10px 0 10px 0;
  14019. display: flex;
  14020. flex-direction: row;
  14021. flex-wrap: wrap;
  14022. align-items: center;
  14023. box-sizing: border-box;
  14024. border-bottom: 1px solid #f4f4f4;
  14025. width: 98%;
  14026. margin: 0 auto;
  14027. min-width: 60%;
  14028. max-width: 85%;
  14029. }
  14030. .cardList1 {
  14031. padding: 10px 0 10px 10px !important;
  14032. margin: 0 !important;
  14033. }
  14034. .cardBox {
  14035. display: flex;
  14036. flex-direction: row;
  14037. flex-wrap: wrap;
  14038. align-items: center;
  14039. align-content: center;
  14040. }
  14041. .cardBox > div {
  14042. margin-bottom: 10px;
  14043. }
  14044. .isCard,
  14045. .isChooseCard,
  14046. .noCard,
  14047. .isCard1 {
  14048. width: 130px;
  14049. height: 60px;
  14050. text-align: center;
  14051. line-height: 60px;
  14052. font-size: 20px;
  14053. cursor: pointer;
  14054. background-image: url("../assets/icon/conSentences/titleBorder.png");
  14055. background-size: cover;
  14056. transition: all 2s;
  14057. margin-right: 20px;
  14058. }
  14059. .isCard > div,
  14060. .noCard > div,
  14061. .isCard1 > div {
  14062. white-space: nowrap;
  14063. overflow: hidden;
  14064. text-overflow: ellipsis;
  14065. width: 75%;
  14066. margin: 0 auto;
  14067. }
  14068. .noCard {
  14069. background-image: none;
  14070. }
  14071. .isCard1 {
  14072. background-image: url("../assets/icon/conSentences/answerBorder.png");
  14073. }
  14074. .isChooseCard {
  14075. background-image: none;
  14076. border: 1px dashed #b9b9b9;
  14077. border-radius: 10px;
  14078. }
  14079. .card {
  14080. width: 130px;
  14081. height: 60px;
  14082. }
  14083. .card > img {
  14084. width: 100%;
  14085. height: 100%;
  14086. }
  14087. .rightCardBox {
  14088. margin: 10px 0 0 10px;
  14089. }
  14090. .rightCardBox > div:nth-child(1) {
  14091. margin-bottom: 10px;
  14092. }
  14093. .cardCss {
  14094. display: flex;
  14095. flex-direction: column;
  14096. flex-wrap: nowrap;
  14097. align-items: center;
  14098. border-bottom: 3px solid #b4c3d3;
  14099. padding: 0 0 5px 0;
  14100. margin-right: 10px;
  14101. }
  14102. .cardCss > div:nth-child(2) {
  14103. background: #5b7b9d;
  14104. color: #fff;
  14105. width: 20px;
  14106. height: 20px;
  14107. border-radius: 50%;
  14108. text-align: center;
  14109. line-height: 20px;
  14110. }
  14111. .isWrong {
  14112. display: flex;
  14113. flex-direction: row;
  14114. flex-wrap: nowrap;
  14115. align-content: center;
  14116. align-items: center;
  14117. }
  14118. .answerRight {
  14119. width: 25%;
  14120. }
  14121. .isTj {
  14122. display: flex;
  14123. flex-direction: row;
  14124. flex-wrap: nowrap;
  14125. align-items: center;
  14126. }
  14127. .isTj > div:nth-child(2) {
  14128. color: #727070;
  14129. margin-left: 10px;
  14130. }
  14131. .isTjImg {
  14132. width: 30px;
  14133. height: 30px;
  14134. }
  14135. .isTjImg > img {
  14136. width: 100%;
  14137. height: 100%;
  14138. }
  14139. .cardAnswerBox {
  14140. font-size: 18px;
  14141. width: 97%;
  14142. border: 5px;
  14143. padding: 0;
  14144. border-radius: 5px;
  14145. margin: 10px auto;
  14146. word-break: break-word;
  14147. }
  14148. .w_name {
  14149. margin-bottom: 10px;
  14150. }
  14151. .w_name span {
  14152. font-size: 16px;
  14153. }
  14154. .w_teachert {
  14155. width: 50px !important;
  14156. position: absolute;
  14157. height: auto !important;
  14158. z-index: 10;
  14159. right: 25px;
  14160. top: -25px;
  14161. }
  14162. .group_workBox {
  14163. }
  14164. .group_workBox + .group_workBox {
  14165. margin-top: 20px;
  14166. }
  14167. .group_box {
  14168. padding-bottom: 20px;
  14169. border-bottom: 2px solid #f0f0f0;
  14170. }
  14171. .group_title {
  14172. display: flex;
  14173. align-items: center;
  14174. justify-content: space-between;
  14175. }
  14176. .group_name {
  14177. background-image: url(../assets/icon/groupN.png);
  14178. width: 220px;
  14179. background-size: 100% 100%;
  14180. height: 67px;
  14181. padding: 0 20px 0 43px;
  14182. box-sizing: border-box;
  14183. line-height: 63px;
  14184. color: #fff;
  14185. overflow: hidden;
  14186. white-space: nowrap;
  14187. text-overflow: ellipsis;
  14188. }
  14189. .group_work {
  14190. width: 100%;
  14191. padding: 0 10px;
  14192. box-sizing: border-box;
  14193. display: flex;
  14194. flex-wrap: wrap;
  14195. }
  14196. .g_d_box {
  14197. display: flex;
  14198. flex-flow: wrap;
  14199. justify-content: space-around;
  14200. }
  14201. .g_d_box .isChair {
  14202. background-image: url(../assets/avatar.png) !important;
  14203. }
  14204. .g_d_group {
  14205. width: 500px;
  14206. margin-bottom: 80px;
  14207. }
  14208. .g_d_group_chair {
  14209. display: flex;
  14210. align-items: center;
  14211. justify-content: center;
  14212. }
  14213. .g_d_group_chair > div + div {
  14214. margin-left: 30px;
  14215. }
  14216. .g_d_group_chair > div,
  14217. .g_d_group_chair2 > div {
  14218. display: flex;
  14219. flex-direction: column;
  14220. align-items: center;
  14221. }
  14222. .g_d_group_chair > div > span:nth-child(1),
  14223. .g_d_group_chair2 > div > span:nth-child(1) {
  14224. background-image: url(../assets/icon/chair.png);
  14225. width: 50px;
  14226. height: 50px;
  14227. display: block;
  14228. background-size: 100% 100%;
  14229. }
  14230. .g_d_group_tableBox {
  14231. display: flex;
  14232. align-items: center;
  14233. justify-content: center;
  14234. }
  14235. .g_d_group_chair2 {
  14236. display: flex;
  14237. flex-direction: column;
  14238. align-items: center;
  14239. justify-content: center;
  14240. }
  14241. .g_d_group_chair2 > div + div {
  14242. margin-top: 10px;
  14243. }
  14244. .g_d_group_table {
  14245. background-image: url(../assets/icon/groupBg.png);
  14246. width: 354px;
  14247. height: 196px;
  14248. background-size: 100% 100%;
  14249. display: flex;
  14250. align-items: center;
  14251. justify-content: center;
  14252. flex-direction: column;
  14253. color: #fff;
  14254. }
  14255. .g_d_group_table > div:nth-child(1) {
  14256. font-size: 24px;
  14257. margin-bottom: 5px;
  14258. }
  14259. .g_d_group_table > div:nth-child(2) div {
  14260. cursor: pointer;
  14261. background: #2e77bf;
  14262. padding: 4px 10px;
  14263. border-radius: 5px;
  14264. }
  14265. .groupBox {
  14266. }
  14267. .groupContent + .groupContent {
  14268. margin-top: 30px;
  14269. }
  14270. .groupTitle {
  14271. font-size: 24px;
  14272. color: rgb(80, 80, 80);
  14273. margin-bottom: 20px;
  14274. }
  14275. .groupName {
  14276. display: flex;
  14277. align-items: center;
  14278. }
  14279. .groupn {
  14280. font-size: 15px;
  14281. margin-right: 10px;
  14282. }
  14283. .groupName + .groupName {
  14284. margin-top: 15px;
  14285. }
  14286. .groupBtn {
  14287. margin-left: 10px;
  14288. }
  14289. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  14290. text-align: left;
  14291. }
  14292. .g_d_btnBox {
  14293. display: flex;
  14294. justify-content: flex-end;
  14295. align-items: flex-end;
  14296. margin-bottom: 20px;
  14297. }
  14298. .updateChair {
  14299. position: relative;
  14300. }
  14301. .updateChairBtn {
  14302. position: absolute;
  14303. width: 50px;
  14304. height: 50px;
  14305. overflow: hidden;
  14306. /* display: flex; */
  14307. align-items: center;
  14308. justify-content: center;
  14309. background: #00000087;
  14310. color: #fff;
  14311. border-radius: 50px;
  14312. display: none;
  14313. cursor: pointer;
  14314. }
  14315. .updateChair:hover .updateChairBtn {
  14316. display: flex;
  14317. }
  14318. .group_staic_box {
  14319. display: flex;
  14320. padding: 30px 40px 10px;
  14321. flex-wrap: wrap;
  14322. }
  14323. .group_staic {
  14324. /* width: 50%; */
  14325. margin-bottom: 20px;
  14326. display: flex;
  14327. align-items: center;
  14328. }
  14329. .group_staic span:nth-child(1) {
  14330. width: 150px;
  14331. text-align: right;
  14332. margin-right: 15px;
  14333. }
  14334. .group_staic span:nth-child(2) {
  14335. background: rgb(0 123 255);
  14336. color: #fff;
  14337. border-radius: 5px;
  14338. padding: 5px;
  14339. }
  14340. .codeFileBox {
  14341. height: 300px;
  14342. background: #fff;
  14343. display: flex;
  14344. align-items: center;
  14345. justify-content: center;
  14346. }
  14347. .codeFileBox img {
  14348. width: 200px;
  14349. margin: 0;
  14350. height: auto;
  14351. }
  14352. .codeFileBox div {
  14353. background: rgb(80, 142, 226);
  14354. color: #fff;
  14355. padding: 10px 20px;
  14356. border-radius: 25px;
  14357. cursor: pointer;
  14358. margin-left: 15px;
  14359. }
  14360. .radioBox {
  14361. display: flex;
  14362. flex-direction: row;
  14363. flex-wrap: nowrap;
  14364. align-items: center;
  14365. }
  14366. .radioBox > div {
  14367. margin: 10px 0 0 10px;
  14368. }
  14369. .radioBox >>> .el-radio__input,
  14370. .radioBox >>> .el-checkbox__inner {
  14371. margin-left: 10px;
  14372. }
  14373. .radioBox >>> .el-radio__label,
  14374. .radioBox >>> .el-checkbox__label {
  14375. display: flex;
  14376. align-items: center;
  14377. }
  14378. .inImg {
  14379. width: 100px;
  14380. cursor: pointer;
  14381. }
  14382. .inImg > img {
  14383. width: 100%;
  14384. height: 100%;
  14385. object-fit: cover;
  14386. }
  14387. </style>