studyStudent.vue 358 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div class="pb_content_body" style="display: flex; height: 900px; position: relative">
  4. <div class="pb_left">
  5. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  6. <el-tooltip class="courseTitle" effect="light" :content="courseDetail.title" placement="top">
  7. <div>{{ courseDetail.title }}</div>
  8. </el-tooltip>
  9. <div class="ml">目录</div>
  10. <div class="cru_selectBox">
  11. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  12. <div class="blue_box_one" @click="get(stageIndex)">
  13. <div>第{{ stageIndex + 1 }}阶段</div>
  14. <div>{{ item.dyName }}</div>
  15. </div>
  16. <div class="twoChild" :class="{ navActive: item.isOpen }">
  17. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  18. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  19. openTaskActive:
  20. navIndex == taskCount &&
  21. nav.id == navId &&
  22. stageIndex == courseType,
  23. }">
  24. <div class="vedioNav" :class="{
  25. isClick:
  26. navIndex == taskCount &&
  27. nav.id == navId &&
  28. stageIndex == courseType,
  29. }" style="margin: 0">
  30. 任务{{ navIndex + 1 }}
  31. </div>
  32. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  33. <div :style="{
  34. width:
  35. IsLookOpen && !nav.isLook
  36. ? 'calc(100% - 75px)'
  37. : 'auto',
  38. }">
  39. {{ nav.taskName }}
  40. </div>
  41. </el-tooltip>
  42. <img src="../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="body_student">
  50. <div class="new_top" style="
  51. position: fixed;
  52. top: 0;
  53. left: 20.7%;
  54. width: 80%;
  55. z-index: 999;
  56. box-shadow: 0px 9px 0 0 #f2f2f2;
  57. ">
  58. <div class="courseIndex">
  59. <div>第{{ courseType - 0 + 1 }}阶段</div>
  60. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  61. <div>{{ chapInfoList[courseType].dyName }}</div>
  62. </el-tooltip>
  63. <div>任务{{ taskCount + 1 }}</div>
  64. </div>
  65. <div class="btnAll">
  66. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  67. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  68. <div class="returnBtn" @click="allScrell">全屏</div>
  69. <div class="returnBtn" @click="startRecording" v-if="(!videoStart && tType == 1 || tType == 4)">开始录制</div>
  70. <div class="returnBtn" @click="stopRecording" v-else-if="(tType == 1 || tType == 4)"
  71. style="background:#ee5255">下载录制</div>
  72. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  73. 权限
  74. </div>
  75. <div class="returnBtn" style="background: #225bc7" @click.stop="
  76. goTo(
  77. '/courseDetail?userid=' +
  78. userid +
  79. '&oid=' +
  80. oid +
  81. '&org=' +
  82. org +
  83. '&cid=' +
  84. classId +
  85. '&courseId=' +
  86. id +
  87. '&tType=' +
  88. tType +
  89. '&screenType=' +
  90. screenType
  91. )
  92. ">
  93. 返回
  94. </div>
  95. </div>
  96. </div>
  97. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  98. .taskJson"
  99. :key="index"-->
  100. <div class="isNoMessage" v-if="
  101. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  102. .chapterData.length == 0 &&
  103. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  104. .toolChoose[0].tool.length == 0 &&
  105. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  106. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  107. .taskDetail == '' &&
  108. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  109. ">
  110. <img src="../assets/icon/isNoMessage.png" alt />
  111. </div>
  112. <div class="study_top" :class="{ pzClass: pzDialog }">
  113. <div class="vedioBox" v-if="
  114. vedio[taskCount].length > 0 ||
  115. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  116. .taskDetail != '' ||
  117. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  118. .chapterData.length > 0
  119. ">
  120. <div class="checkbox">
  121. <div class="check" style="font-size: 25px" :id="
  122. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  123. ">
  124. <!-- {{ taskCount + 1 }}
  125. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
  126. 学一学
  127. </div>
  128. </div>
  129. <div class="student_head" v-if="
  130. vedio[taskCount].length > 0 ||
  131. textList[taskCount].length > 0 ||
  132. file[taskCount].length > 0 ||
  133. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  134. .taskDetail != ''
  135. ">
  136. <div class="taskBox">
  137. <div style="
  138. display: flex;
  139. flex-wrap: nowrap;
  140. flex-direction: column;
  141. position: relative;
  142. ">
  143. <div style="padding: 15px 0 15px 20px" v-if="
  144. chapInfoList[courseType].chapterInfo[0].taskJson[
  145. taskCount
  146. ].taskDetail != ''
  147. " v-html="
  148. chapInfoList[courseType].chapterInfo[0].taskJson[
  149. taskCount
  150. ].taskDetail
  151. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  152. taskCount
  153. ].taskDetail
  154. : '暂无描述'
  155. ">
  156. <!-- <span style="color: #cbcbcb">任务描述</span> -->
  157. <!-- {{
  158. chapInfoList[courseType].chapterInfo[0].taskJson[
  159. taskCount
  160. ].taskDetail
  161. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  162. taskCount
  163. ].taskDetail
  164. : "暂无描述"
  165. }}-->
  166. </div>
  167. </div>
  168. </div>
  169. <div class="vedioTaskBox">
  170. <div class="box_course" v-if="
  171. vedio[taskCount].length > 0 ||
  172. textList[taskCount].length > 0 ||
  173. lineList[taskCount].length > 0 ||
  174. file[taskCount].length > 0
  175. ">
  176. <div class="wheel" v-if="
  177. vedio.length &&
  178. vedio[taskCount] &&
  179. vedio[taskCount].length > 0 &&
  180. showType == 0
  181. ">
  182. <div class="workd_media" style="height: 100%">
  183. <video-player class="video-player vjs-custom-skin" :playsinline="true"
  184. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  185. style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  186. </div>
  187. </div>
  188. <div class="wheel" v-if="showType == 1" style="
  189. box-shadow: 0 0 6px 1px #f2f2f2;
  190. width: 95%;
  191. margin: 0 auto;
  192. background: #f1f1f1;
  193. ">
  194. <div class="title">查看文档</div>
  195. <el-form class="textBox">
  196. <el-form-item class="textTitle">
  197. <div style="
  198. font-size: 22px;
  199. max-height: 100px;
  200. overflow: auto;
  201. ">
  202. {{ text.name }}
  203. </div>
  204. </el-form-item>
  205. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  206. <div v-html="text.url" class="textContent"></div>
  207. </el-form>
  208. </div>
  209. <div class="wheel" v-if="showType == 2" style="height: 650px; width: 95%; margin: 0 auto">
  210. <iframe style="width: 100%; height: 100%; border: none" :src="pptImgUrl1"></iframe>
  211. </div>
  212. <div class="wheel" v-if="showType == 3" style="height: 650px; width: 95%; margin: 0 auto">
  213. <!-- <iframe
  214. style="width: 100%; height: 100%; border: none"
  215. :src="pptImgUrl1"
  216. ></iframe>-->
  217. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  218. </div>
  219. <div class="wheel" v-if="showType == 4" style="height: 650px; width: 95%; margin: 0 auto">
  220. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  221. </div>
  222. </div>
  223. <!-- :class="
  224. vedio[taskCount].length == 0 && file[taskCount].length == 0
  225. ? 'listNoVedio'
  226. : ''
  227. "-->
  228. <!-- :class="
  229. vedio[taskCount].length == 0 &&
  230. file[taskCount].length == 0 &&
  231. textList[taskCount].length == 0
  232. ? 'listNoVedio'
  233. : ''
  234. " -->
  235. <div class="vedioList" v-if="
  236. (vedio.length &&
  237. vedio[taskCount] &&
  238. vedio[taskCount].length > 0) ||
  239. (textList.length &&
  240. textList[taskCount] &&
  241. textList[taskCount].length > 0) ||
  242. (lineList.length &&
  243. lineList[taskCount] &&
  244. lineList[taskCount].length > 0) ||
  245. (file.length &&
  246. file[taskCount] &&
  247. file[taskCount].length > 0)
  248. ">
  249. <div class="navTitile">内容列表:</div>
  250. <div class="navBox">
  251. <div v-show="
  252. vedio.length &&
  253. vedio[taskCount] &&
  254. vedio[taskCount].length > 0
  255. ">
  256. <!-- <div
  257. class="vedioNav"
  258. style="
  259. width: 80px;
  260. min-width: 80px;
  261. height: 30px;
  262. line-height: 36px;
  263. font-size: 16px;
  264. border-radius: 10px;
  265. "
  266. >
  267. 视频
  268. </div> -->
  269. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  270. @click="lookVedio(media.url, vedioIndex)">
  271. <!-- <div class="media" style="width: 90px; height: 60px; position: relative">
  272. <img style="height: 90px; width: 160px" :src="
  273. media.cover != null && media.cover != ''
  274. ? JSON.parse(media.cover).length > 0
  275. ? JSON.parse(media.cover)[0].url
  276. : mr
  277. : mr
  278. " alt />
  279. </div> -->
  280. <!-- <div class="vedioTime">
  281. {{ vedioTime[vedioIndex] }}
  282. </div> -->
  283. <!-- <div class="vedioName">{{ media.name }}</div> -->
  284. <div class="vedioName" :class="
  285. isClickNav == 'video' + vedioIndex
  286. ? 'isClickNav'
  287. : ''
  288. ">
  289. {{ media.name }}
  290. </div>
  291. </div>
  292. </div>
  293. <div v-show="
  294. textList.length &&
  295. textList[taskCount] &&
  296. textList[taskCount].length > 0
  297. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  298. @click="lookText(taskCount, textIndex)">
  299. <!-- <div
  300. class="vedioNav"
  301. style="
  302. width: 80px;
  303. min-width: 80px;
  304. height: 30px;
  305. line-height: 36px;
  306. font-size: 16px;
  307. border-radius: 10px;
  308. "
  309. >
  310. 文档
  311. </div> -->
  312. <div style="width: calc(100% - 0px)">
  313. <div class="navText" :class="
  314. isClickNav == 'text' + textIndex ? 'isClickNav' : ''
  315. ">
  316. {{
  317. textList[taskCount].length > 0 ? text.name : ""
  318. }}.doc
  319. </div>
  320. </div>
  321. </div>
  322. <!-- <div
  323. v-show="
  324. chapInfoList.length &&
  325. chapToolList[taskCount] &&
  326. chapToolList[taskCount].length > 0
  327. "
  328. class="newNav"
  329. v-for="(tools, toolsIndex) in chapToolList[taskCount]"
  330. :key="toolsIndex + '3'"
  331. >
  332. <div class="vedioNav">工具</div>
  333. <div>
  334. <div
  335. class="navText"
  336. @click="lookTools(taskCount, toolsIndex)"
  337. >
  338. {{
  339. chapToolList[taskCount].length > 0 ? tools.name : ""
  340. }}
  341. </div>
  342. </div>
  343. </div>-->
  344. <div v-show="
  345. lineList.length &&
  346. lineList[taskCount] &&
  347. lineList[taskCount].length > 0
  348. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  349. @click="doUrl(lines.url, lineIndex)">
  350. <!-- <div
  351. class="vedioNav"
  352. style="
  353. width: 80px;
  354. min-width: 80px;
  355. height: 30px;
  356. line-height: 36px;
  357. font-size: 16px;
  358. border-radius: 10px;
  359. "
  360. >
  361. 链接
  362. </div> -->
  363. <!-- <div style="width: calc(100% - 0px)">
  364. <div
  365. class="navText"
  366. :class="isClickNav == lineIndex ? 'isClickNav' : ''"
  367. >
  368. <a
  369. style="text-decoration: none; color: #000"
  370. target="_Blank"
  371. >{{ lines.url }}</a
  372. >
  373. </div>
  374. </div> -->
  375. <div style="width: calc(100% - 0px)">
  376. <div class="navText" :class="
  377. isClickNav == 'line' + lineIndex ? 'isClickNav' : ''
  378. ">
  379. {{ lines.title ? lines.title : lines.url }}
  380. </div>
  381. </div>
  382. </div>
  383. <div class="newNav" v-show="
  384. file.length &&
  385. file[taskCount] &&
  386. file[taskCount].length > 0
  387. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  388. <!-- <div
  389. class="vedioNav"
  390. style="
  391. width: 80px;
  392. min-width: 80px;
  393. height: 30px;
  394. line-height: 36px;
  395. font-size: 16px;
  396. border-radius: 10px;
  397. "
  398. >
  399. 文档
  400. </div> -->
  401. <div style="width: calc(100% - 0px)">
  402. <div class="navText" :class="
  403. isClickNav == 'word' + fileIndex ? 'isClickNav' : ''
  404. ">
  405. {{ f.name }}
  406. </div>
  407. </div>
  408. </div>
  409. </div>
  410. </div>
  411. </div>
  412. <div style="padding: 10px 30px 0" v-if="showType == 2 || showType == 3">
  413. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  414. <el-button type="primary" @click="downloadFile(pptImgUrl1)">文件下载</el-button>
  415. <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
  416. </el-button>
  417. </div>
  418. <div style="padding: 0px 30px" v-if="showType == 1">
  419. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  420. </div>
  421. </div>
  422. </div>
  423. <div class="student_body" v-resize="resize">
  424. <!-- <div
  425. class="vedioBox"
  426. v-if="
  427. file.length && file[taskCount] && file[taskCount].length > 0
  428. "
  429. >
  430. <div class="queTop">
  431. <div class="question" style="width: 30px; margin-top: 5px">
  432. <img src="../assets/icon/fileIcon.png" alt />
  433. </div>
  434. <div class="queTitle">
  435. <div>附件</div>
  436. </div>
  437. </div>
  438. <div class="filebox" style="width: 100%">
  439. <div
  440. class="file"
  441. v-for="(f, fileIndex) in file[taskCount]"
  442. :key="fileIndex"
  443. @click="downFile(f, fileIndex)"
  444. >
  445. <img :src="require('../assets/file.png')" alt />
  446. <div>{{ f.name }}</div>
  447. </div>
  448. </div>
  449. <div class="upFile" v-if="type == 3">提交</div>
  450. </div>-->
  451. <div class="vedioBox" v-if="
  452. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  453. .toolChoose[0].tool &&
  454. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  455. .toolChoose[0].tool.length &&
  456. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  457. .toolChoose[0].tool.length > 0
  458. ">
  459. <div class="queTop" style="
  460. font-size: 25px;
  461. padding: 15px 0 15px 30px;
  462. font-weight: bold;
  463. ">
  464. <!-- <div class="question" style="width: 30px">
  465. <img src="../assets/icon/toolIcon.png" alt />
  466. </div>
  467. <div class="queTitle">
  468. <div>工具</div>
  469. </div>-->
  470. 练一练
  471. </div>
  472. <div class="toolHeng2" style="position: relative">
  473. <div class="filebox" style="flex-wrap: nowrap; margin: 0 20px" v-for="(tool, toolIndex) in chapInfoList[courseType]
  474. .chapterInfo[0].taskJson[taskCount].toolChoose" :key="toolIndex">
  475. <div class="bzBox">
  476. <div></div>
  477. <div>步骤{{ toolIndex + 1 }}</div>
  478. </div>
  479. <div class="toolBox">
  480. <div>
  481. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  482. :key="indexTool"-->
  483. <!-- <div class="iframeBox">
  484. <div
  485. class="addPoint isBorder"
  486. v-for="(tooC, toolCIndex) in tool.tool"
  487. :key="toolCIndex"
  488. >
  489. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  490. <div
  491. class="iframeName"
  492. >
  493. 电子白板
  494. </div>
  495. <iframe
  496. src="https://iwb.cocorobo.cn/"
  497. ref="whiteBoard"
  498. ></iframe>
  499. </div>
  500. </div>
  501. </div>-->
  502. <div class="noiframeBox">
  503. <div class="addPoint" v-for="(tooC, toolCIndex) in tool.tool" :key="toolCIndex">
  504. <div v-if="tooC == 1">
  505. <img src="../assets/icon/secondToolList/whiteBoard.png" alt
  506. @click="addTools(tooC, toolIndex, taskCount)" />
  507. <div style="margin: 5px 0">电子白板</div>
  508. </div>
  509. <div v-if="tooC == 3">
  510. <img src="../assets/icon/secondToolList/mindMapping.png" alt
  511. @click="addTools(tooC, toolIndex, taskCount)" />
  512. <div style="margin: 5px 0">思维导图</div>
  513. </div>
  514. <div v-if="tooC == 6">
  515. <img src="../assets/icon/secondToolList/doc.png" alt
  516. @click="addTools(tooC, toolIndex, taskCount)" />
  517. <div style="margin: 5px 0">协同文档</div>
  518. </div>
  519. <div v-if="tooC == 7">
  520. <img src="../assets/icon/secondToolList/mindNetwork.png" alt
  521. @click="addTools(tooC, toolIndex, taskCount)" />
  522. <div style="margin: 5px 0">思维网格</div>
  523. </div>
  524. <div v-if="tooC == 8">
  525. <img src="../assets/icon/secondToolList/library.png" alt
  526. @click="addTools(tooC, toolIndex, taskCount)" />
  527. <div style="margin: 5px 0">素材库</div>
  528. </div>
  529. <div v-if="tooC == 17">
  530. <img src="../assets/icon/secondToolList/library.png" alt
  531. @click="addTools(tooC, toolIndex, taskCount)" />
  532. <div style="margin: 5px 0">学习资料</div>
  533. </div>
  534. <div v-if="tooC == 2">
  535. <img @click="addTools(tooC, toolIndex, taskCount)"
  536. src="../assets/icon/secondToolList/note.png" alt />
  537. <div style="margin: 5px 0">便签</div>
  538. </div>
  539. <div v-if="tooC == 4">
  540. <img @click="addTools(tooC, toolIndex, taskCount)"
  541. src="../assets/icon/thirdToolList/ask.png" alt />
  542. <div style="margin: 5px 0">问卷调查</div>
  543. </div>
  544. <div v-if="tooC == 45">
  545. <img @click="addTools(tooC, toolIndex, taskCount)"
  546. src="../assets/icon/thirdToolList/choose.png" alt />
  547. <div style="margin: 5px 0">选择题</div>
  548. </div>
  549. <!-- <div v-if="tooC == 5">
  550. <img
  551. @click="addTools(tooC, toolIndex, taskCount)"
  552. src="../assets/icon/thirdToolList/score.png"
  553. alt
  554. />
  555. <div style="margin: 5px 0">量规评分</div>
  556. </div> -->
  557. <div v-if="tooC == 10">
  558. <img @click="addTools(tooC, toolIndex, taskCount)"
  559. src="../assets/icon/thirdToolList/time.png" alt />
  560. <div style="margin: 5px 0">倒计时</div>
  561. </div>
  562. <div v-if="tooC == 15">
  563. <img @click="addTools(tooC, toolIndex, taskCount)"
  564. src="../assets/icon/thirdToolList/answer.png" alt />
  565. <div style="margin: 5px 0">问答工具</div>
  566. </div>
  567. <div v-if="tooC == 26">
  568. <img @click="addTools(tooC, toolIndex, taskCount)"
  569. src="../assets/icon/thirdToolList/courseDesign.png" alt />
  570. <div style="margin: 5px 0">课程设计</div>
  571. </div>
  572. <div v-if="tooC == 18">
  573. <img @click="addTools(tooC, toolIndex, taskCount)"
  574. src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  575. <div style="margin: 5px 0">训练服务器</div>
  576. </div>
  577. <div v-if="tooC == 16">
  578. <img @click="addTools(tooC, toolIndex, taskCount)"
  579. src="../assets/icon/thirdToolList/work.png" alt />
  580. <div style="margin: 5px 0">作业提交</div>
  581. </div>
  582. <div v-if="tooC == 21">
  583. <img @click="addTools(tooC, toolIndex, taskCount)"
  584. src="../assets/icon/fourthToolList/program.png" alt />
  585. <div style="margin: 5px 0">编程平台</div>
  586. </div>
  587. <div v-if="tooC == 22">
  588. <img @click="addTools(tooC, toolIndex, taskCount)"
  589. src="../assets/icon/fourthToolList/program.png" alt />
  590. <div style="margin: 5px 0">AI体验</div>
  591. </div>
  592. <div v-if="tooC == 23">
  593. <img @click="addTools(tooC, toolIndex, taskCount)"
  594. src="../assets/icon/fourthToolList/program.png" alt />
  595. <div style="margin: 5px 0">Python</div>
  596. </div>
  597. <div v-if="tooC == 24">
  598. <img @click="addTools(tooC, toolIndex, taskCount)"
  599. src="../assets/icon/fourthToolList/AIprogram.png" alt />
  600. <div style="margin: 5px 0">AI平台</div>
  601. </div>
  602. <div v-if="tooC == 25">
  603. <img @click="addTools(tooC, toolIndex, taskCount)"
  604. src="../assets/icon/thirdToolList/evalua.png" alt />
  605. <div style="margin: 5px 0">目标管理</div>
  606. </div>
  607. <div v-if="tooC == 31">
  608. <img @click="addTools(tooC, toolIndex, taskCount)"
  609. src="../assets/icon/secondToolList/networkPanel.png" alt />
  610. <div style="margin: 5px 0">数学画板</div>
  611. </div>
  612. <div v-if="tooC == 28">
  613. <img @click="addTools(tooC, toolIndex, taskCount)"
  614. src="../assets/icon/secondToolList/translation.png" alt />
  615. <div style="margin: 5px 0">翻译</div>
  616. </div>
  617. <div v-if="tooC == 37">
  618. <img @click="addTools(tooC, toolIndex, taskCount)"
  619. src="../assets/icon/secondToolList/mohe.png" alt />
  620. <div style="margin: 5px 0">魔盒识字</div>
  621. </div>
  622. <div v-if="tooC == 38">
  623. <img @click="addTools(tooC, toolIndex, taskCount)"
  624. src="../assets/icon/secondToolList/24game.png" alt />
  625. <div style="margin: 5px 0">24点</div>
  626. </div>
  627. <div v-if="tooC == 39">
  628. <img @click="addTools(tooC, toolIndex, taskCount)"
  629. src="../assets/icon/secondToolList/GeoGebra.png" alt />
  630. <div style="margin: 5px 0">GeoGebra</div>
  631. </div>
  632. <div v-if="tooC == 32">
  633. <img @click="addTools(tooC, toolIndex, taskCount)"
  634. src="../assets/icon/thirdToolList/code.png" alt />
  635. <div style="margin: 5px 0">源码编辑</div>
  636. </div>
  637. <div v-if="tooC == 40">
  638. <img @click="addTools(tooC, toolIndex, taskCount)"
  639. src="../assets/icon/secondToolList/eval.png" alt />
  640. <div style="margin: 5px 0">学生评价</div>
  641. </div>
  642. <div v-if="tooC == 41">
  643. <img @click="addTools(tooC, toolIndex, taskCount)"
  644. src="../assets/icon/thirdToolList/select.png" alt />
  645. <div style="margin: 5px 0">选择填空</div>
  646. </div>
  647. <div v-if="tooC == 44">
  648. <img @click="addTools(tooC, toolIndex, taskCount)"
  649. src="../assets/icon/thirdToolList/hanClass.png" alt />
  650. <div style="margin: 5px 0">汉字宫</div>
  651. </div>
  652. <div v-if="tooC == 47">
  653. <img @click="addTools(tooC, toolIndex, taskCount)"
  654. src="../assets/icon/fourthToolList/conSentences.png" alt />
  655. <div style="margin: 5px 0">连词成句</div>
  656. </div>
  657. <div v-if="(tooC == 48)">
  658. <img @click="addTools(tooC, toolIndex, taskCount)"
  659. src="../assets/icon/fourthToolList/conSentences.png" alt />
  660. <div style="margin: 5px 0">表格</div>
  661. </div>
  662. <div v-if="(tooC == 49)">
  663. <img @click="addTools(tooC, toolIndex, taskCount)"
  664. src="../assets/icon/fourthToolList/group.png" alt />
  665. <div style="margin: 5px 0">学生分组</div>
  666. </div>
  667. </div>
  668. </div>
  669. </div>
  670. <div class="tooldetail" v-if="tool.toolDetail != ''">
  671. <!-- <div class="toolTitle">工具描述</div> -->
  672. <div v-html="contentConvent(tool.toolDetail)">
  673. <!-- {{ contentConvent(tool.toolDetail) }} -->
  674. </div>
  675. </div>
  676. </div>
  677. <div v-if="
  678. tType &&
  679. tType == 2 &&
  680. !sIsOpen &&
  681. tool.tool.indexOf(16) != -1
  682. " class="worksBox">
  683. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  684. <span>作业预览</span>
  685. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  686. </div>
  687. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  688. <div class="works" style="
  689. width: 200px;
  690. height: 140px;
  691. margin: 10px 10px 10px 0;
  692. box-shadow: 0 0 6px 1px #dfdada;
  693. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  694. <div class="workImg" v-if="w.type == 0">
  695. <img :src="w.works" @click="previewImg(w.works)" alt />
  696. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  697. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  698. {{ JSON.parse(w.score).wScore }}分
  699. </div>
  700. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  701. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || tType == 2 || tType == 4 }">
  702. 评分
  703. </div>
  704. <img class="deleteImg" src="../assets/deleteworks.png"
  705. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  706. alt />
  707. </div>
  708. <div class="workImg" v-if="w.type == 1">
  709. <img :src="word" @click="openFile(w.works)" alt />
  710. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  711. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  712. {{ JSON.parse(w.score).wScore }}分
  713. </div>
  714. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  715. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  716. 评分
  717. </div>
  718. <img class="deleteImg" src="../assets/deleteworks.png"
  719. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  720. alt />
  721. </div>
  722. <div class="workImg" v-if="w.type == 3">
  723. <img style="cursor: pointer" :src="video" @click="openVideo(w.works)" alt />
  724. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  725. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  726. {{ JSON.parse(w.score).wScore }}分
  727. </div>
  728. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  729. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  730. 评分
  731. </div>
  732. <img class="deleteImg" src="../assets/deleteworks.png"
  733. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  734. alt />
  735. </div>
  736. <div class="worksName">
  737. <div>{{ w.sName }}</div>
  738. </div>
  739. </div>
  740. </div>
  741. </div>
  742. <div v-if="
  743. tType &&
  744. tType == 2 &&
  745. !sIsOpen &&
  746. tool.tool.indexOf(4) != -1
  747. " class="worksBox">
  748. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  749. <span>作业预览</span>
  750. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  751. </div>
  752. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  753. <div class="isWorksName" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex" @click="
  754. openTools(4, toolIndex, taskCount, w.works, w.sName)
  755. ">
  756. {{ w.sName }}
  757. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  758. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  759. </div>
  760. <!-- <div
  761. class="works"
  762. style="
  763. width: 200px;
  764. height: 140px;
  765. border-radius: 10px;
  766. box-shadow: 0 0 6px 1px #dfdada;
  767. overflow: hidden;
  768. "
  769. v-for="(w, wIndex) in workStudent[toolIndex]"
  770. :key="wIndex"
  771. >
  772. <div class="workImg">
  773. <img
  774. src="../assets/icon/works/noImg.png"
  775. @click="
  776. openTools(
  777. 4,
  778. toolIndex,
  779. taskCount,
  780. w.works,
  781. w.sName
  782. )
  783. "
  784. alt
  785. />
  786. </div>
  787. <div class="worksName">
  788. <div>{{ w.sName }}</div>
  789. <div>{{ w.time }}</div>
  790. </div>
  791. </div> -->
  792. </div>
  793. </div>
  794. <div v-if="
  795. tType &&
  796. tType == 2 &&
  797. !sIsOpen &&
  798. tool.tool.indexOf(45) != -1
  799. " class="worksBox">
  800. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  801. <span>作业预览</span>
  802. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  803. </div>
  804. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  805. <div class="isWorksName" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex" @click="
  806. openTools(45, toolIndex, taskCount, w.works, w.sName)
  807. ">
  808. {{ w.sName }}
  809. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  810. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  811. </div>
  812. </div>
  813. </div>
  814. <div v-if="
  815. tType &&
  816. tType == 2 &&
  817. !sIsOpen &&
  818. tool.tool.indexOf(15) != -1
  819. " class="worksBox">
  820. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  821. <span>作业预览</span>
  822. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  823. </div>
  824. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  825. <div class="works" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  826. <div class="workImg">
  827. <!-- <img
  828. src="../assets/icon/works/noImg.png"
  829. @click="openTools(15, toolIndex, taskCount, w.works)"
  830. alt=""
  831. />-->
  832. <div class="answerBg">
  833. <!-- <div>{{ w.sName }}</div> -->
  834. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  835. placement="top">
  836. <div class="answerContent">
  837. {{ JSON.parse(w.works)[0].answer }}
  838. </div>
  839. </el-tooltip>
  840. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  841. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  842. {{ JSON.parse(w.score).wScore }}分
  843. </div>
  844. <div class="answerScore" @click.stop="openScore(w)"
  845. v-else-if="courseDetail.userid == userid"
  846. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  847. 评分
  848. </div>
  849. <img class="deleteImg" src="../assets/deleteworks.png"
  850. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  851. alt />
  852. </div>
  853. <div class="comment">
  854. <div class="worksName">
  855. <div>{{ w.sName }}</div>
  856. </div>
  857. </div>
  858. </div>
  859. </div>
  860. </div>
  861. </div>
  862. <div v-if="
  863. tType &&
  864. tType == 2 &&
  865. !sIsOpen &&
  866. tool.tool.indexOf(1) != -1
  867. " class="worksBox">
  868. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  869. <span>作业预览</span>
  870. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  871. </div>
  872. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  873. <div class="works" style="
  874. width: 200px;
  875. height: 140px;
  876. margin: 10px 10px 10px 0;
  877. box-shadow: 0 0 6px 1px #dfdada;
  878. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  879. <div class="workImg">
  880. <img :src="w.works" @click="previewImg(w.works)" alt />
  881. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  882. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  883. {{ JSON.parse(w.score).wScore }}分
  884. </div>
  885. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  886. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  887. 评分
  888. </div>
  889. <img class="deleteImg" src="../assets/deleteworks.png"
  890. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  891. alt />
  892. </div>
  893. <div class="worksName">
  894. <div>{{ w.sName }}</div>
  895. </div>
  896. </div>
  897. </div>
  898. </div>
  899. <div v-if="
  900. tType &&
  901. tType == 2 &&
  902. !sIsOpen &&
  903. tool.tool.indexOf(3) != -1
  904. " class="worksBox">
  905. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  906. <span>作业预览</span>
  907. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  908. </div>
  909. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  910. <div class="works" style="
  911. width: 200px;
  912. height: 140px;
  913. margin: 10px 10px 10px 0;
  914. box-shadow: 0 0 6px 1px #dfdada;
  915. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  916. <div class="workImg">
  917. <img :src="w.works" @click="previewImg(w.works)" alt />
  918. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  919. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  920. {{ JSON.parse(w.score).wScore }}分
  921. </div>
  922. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  923. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  924. 评分
  925. </div>
  926. <img class="deleteImg" src="../assets/deleteworks.png"
  927. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  928. alt />
  929. </div>
  930. <div class="worksName">
  931. <div>{{ w.sName }}</div>
  932. </div>
  933. </div>
  934. </div>
  935. </div>
  936. <div v-if="
  937. tType &&
  938. tType == 2 &&
  939. !sIsOpen &&
  940. tool.tool.indexOf(6) != -1
  941. " class="worksBox">
  942. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  943. <span>作业预览</span>
  944. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  945. </div>
  946. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  947. <div class="works" style="
  948. width: 200px;
  949. height: 140px;
  950. margin: 10px 10px 10px 0;
  951. box-shadow: 0 0 6px 1px #dfdada;
  952. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  953. <div class="workImg">
  954. <img :src="w.works" @click="previewImg(w.works)" alt />
  955. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  956. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  957. {{ JSON.parse(w.score).wScore }}分
  958. </div>
  959. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  960. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  961. 评分
  962. </div>
  963. <img class="deleteImg" src="../assets/deleteworks.png"
  964. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  965. alt />
  966. </div>
  967. <div class="worksName">
  968. <div>{{ w.sName }}</div>
  969. </div>
  970. </div>
  971. </div>
  972. </div>
  973. <div v-if="
  974. tType &&
  975. tType == 2 &&
  976. !sIsOpen &&
  977. tool.tool.indexOf(7) != -1
  978. " class="worksBox">
  979. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  980. <span>作业预览</span>
  981. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  982. </div>
  983. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  984. <div class="works" style="
  985. width: 200px;
  986. height: 140px;
  987. margin: 10px 10px 10px 0;
  988. box-shadow: 0 0 6px 1px #dfdada;
  989. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  990. <div class="workImg">
  991. <img :src="w.works" @click="previewImg(w.works)" alt />
  992. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  993. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  994. {{ JSON.parse(w.score).wScore }}分
  995. </div>
  996. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  997. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  998. 评分
  999. </div>
  1000. <img class="deleteImg" src="../assets/deleteworks.png"
  1001. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1002. alt />
  1003. </div>
  1004. <div class="worksName">
  1005. <div>{{ w.sName }}</div>
  1006. </div>
  1007. </div>
  1008. </div>
  1009. </div>
  1010. <div v-if="
  1011. tType &&
  1012. tType == 2 &&
  1013. !sIsOpen &&
  1014. tool.tool.indexOf(26) != -1
  1015. " class="worksBox">
  1016. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1017. <span>作业预览</span>
  1018. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1019. </div>
  1020. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1021. <div class="works" style="
  1022. width: 200px;
  1023. height: 140px;
  1024. margin: 10px 10px 10px 0;
  1025. box-shadow: 0 0 6px 1px #dfdada;
  1026. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1027. <div class="workImg">
  1028. <img :src="w.works" @click="previewImg(w.works)" alt />
  1029. <img class="deleteImg" src="../assets/deleteworks.png"
  1030. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1031. alt />
  1032. </div>
  1033. <div class="worksName">
  1034. <div>{{ w.sName }}</div>
  1035. </div>
  1036. </div>
  1037. </div>
  1038. </div>
  1039. <div v-if="
  1040. tType &&
  1041. ((tType == 2 && sIsOpen == true) ||
  1042. tType == 1 ||
  1043. tType == 4) &&
  1044. tool.tool.indexOf(16) != -1
  1045. " class="worksBox">
  1046. <div class="zuoyeYulan" v-if="
  1047. worksStudent.length &&
  1048. worksStudent[toolIndex].length > 0
  1049. ">
  1050. <span>作业预览</span>
  1051. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1052. </div>
  1053. <div class="worksDetailBox" v-if="
  1054. worksStudent.length &&
  1055. worksStudent[toolIndex].length > 0
  1056. ">
  1057. <div class="works" style="
  1058. width: 200px;
  1059. height: 140px;
  1060. margin: 10px 10px 10px 0;
  1061. border-radius: 15px;
  1062. box-shadow: 0 0 6px 1px #dfdada;
  1063. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1064. :class="w.type == 1 ? 'isTypeOne' : ''">
  1065. <div class="workImg" v-if="w.type == 0">
  1066. <img :src="w.works" @click="commentOther(w, toolIndex, wIndex)" alt />
  1067. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1068. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  1069. {{ JSON.parse(w.score).wScore }}分
  1070. </div>
  1071. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1072. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  1073. 评分
  1074. </div>
  1075. <img class="deleteImg" src="../assets/deleteworks.png"
  1076. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1077. alt />
  1078. </div>
  1079. <div class="workImg" v-if="w.type == 1">
  1080. <img :src="word" @click="commentOther(w, toolIndex, wIndex)" alt />
  1081. <!-- @click="openFile(w.works)" -->
  1082. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1083. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  1084. {{ JSON.parse(w.score).wScore }}分
  1085. </div>
  1086. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1087. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  1088. 评分
  1089. </div>
  1090. <img class="deleteImg" src="../assets/deleteworks.png"
  1091. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1092. alt />
  1093. </div>
  1094. <div class="workImg" v-if="w.type == 3">
  1095. <img style="cursor: pointer" :src="video" @click="commentOther(w, toolIndex, wIndex)" alt />
  1096. <!-- @click="openVideo(w.works)" -->
  1097. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1098. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  1099. {{ JSON.parse(w.score).wScore }}分
  1100. </div>
  1101. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1102. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  1103. 评分
  1104. </div>
  1105. <img class="deleteImg" src="../assets/deleteworks.png"
  1106. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1107. alt />
  1108. </div>
  1109. <div class="comment" style="min-width: 200px">
  1110. <div class="worksName">
  1111. <div>{{ w.sName }}</div>
  1112. </div>
  1113. <div class="commentList">
  1114. <div class="commentList">
  1115. <div class="commentImg" @click="
  1116. isLikes(w.wid, userid, 1, null, w.isLikes)
  1117. ">
  1118. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1119. </div>
  1120. <div>{{ w.likesCount }}</div>
  1121. </div>
  1122. <div class="commentList" style="margin-right: 15px">
  1123. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1124. <img src="../assets/icon/comment/comment.png" alt="" />
  1125. </div>
  1126. <div>{{ w.commentCount }}</div>
  1127. </div>
  1128. </div>
  1129. </div>
  1130. </div>
  1131. </div>
  1132. <div style="font-size: 18px">未提交</div>
  1133. <div class="noWorksS">
  1134. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1135. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)">
  1136. {{ s.student }}
  1137. </div>
  1138. </div>
  1139. </div>
  1140. <div v-if="
  1141. tType &&
  1142. ((tType == 2 && sIsOpen == true) ||
  1143. tType == 1 ||
  1144. tType == 4) &&
  1145. tool.tool.indexOf(4) != -1 &&
  1146. (tool.askJson[0].answer ||
  1147. tool.askJson[0].answer === 0) &&
  1148. checkJson[toolIndex].length
  1149. " class="xuan_right_box">
  1150. <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
  1151. <div>
  1152. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  1153. </div>
  1154. <div class="right_box_xuan">
  1155. <span>正确率</span>
  1156. <span>{{
  1157. (checkJson[toolIndex][index].right
  1158. ? checkJson[toolIndex][index].right
  1159. : 0) + "%"
  1160. }}</span>
  1161. </div>
  1162. </div>
  1163. </div>
  1164. <div class="xuan_right_box" style="background: unset" v-if="
  1165. tType &&
  1166. ((tType == 2 && sIsOpen == true) ||
  1167. tType == 1 ||
  1168. tType == 4) &&
  1169. tool.tool.indexOf(4) != -1
  1170. ">
  1171. <AskStatic v-if="
  1172. worksStudent.length &&
  1173. worksStudent[toolIndex].length > 0
  1174. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic>
  1175. </div>
  1176. <div v-if="
  1177. tType &&
  1178. ((tType == 2 && sIsOpen == true) ||
  1179. tType == 1 ||
  1180. tType == 4) &&
  1181. tool.tool.indexOf(4) != -1
  1182. " class="worksBox">
  1183. <div class="zuoyeYulan" v-if="
  1184. worksStudent.length &&
  1185. worksStudent[toolIndex].length > 0
  1186. ">
  1187. <span>作业预览</span>
  1188. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1189. </div>
  1190. <div>
  1191. <div class="worksDetailBox" v-if="
  1192. worksStudent.length &&
  1193. worksStudent[toolIndex].length > 0
  1194. ">
  1195. <div v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex" class="isWorksName" @click="
  1196. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1197. ">
  1198. {{ w.sName }}
  1199. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  1200. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1201. alt />
  1202. </div>
  1203. <!-- <div class="works" style="
  1204. width: 200px;
  1205. height: 140px;
  1206. border-radius: 10px;
  1207. box-shadow: 0 0 6px 1px #dfdada;
  1208. overflow: hidden;
  1209. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1210. <div class="workImg">
  1211. <img src="../assets/icon/works/noImg.png" @click="
  1212. openTools(
  1213. 4,
  1214. toolIndex,
  1215. taskCount,
  1216. w.works,
  1217. w.sName
  1218. )
  1219. " alt />
  1220. </div>
  1221. <div class="worksName">
  1222. <div>{{ w.sName }}</div>
  1223. <div>{{ w.time }}</div>
  1224. </div>
  1225. </div> -->
  1226. </div>
  1227. </div>
  1228. <div style="font-size: 18px">未提交</div>
  1229. <div class="noWorksS">
  1230. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1231. {{ s.student }}
  1232. </div>
  1233. </div>
  1234. </div>
  1235. <div v-if="
  1236. tType &&
  1237. ((tType == 2 && sIsOpen == true) ||
  1238. tType == 1 ||
  1239. tType == 4) &&
  1240. tool.tool.indexOf(45) != -1 &&
  1241. (tool.testJson.testJson[0].answer ||
  1242. tool.testJson.testJson[0].answer === 0) &&
  1243. checkJson[toolIndex].length
  1244. " class="xuan_right_box">
  1245. <div class="tool_right_box" v-for="(item, index) in tool.testJson.testJson" :key="index">
  1246. <div>
  1247. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  1248. </div>
  1249. <div class="right_box_xuan">
  1250. <span>正确率</span>
  1251. <span>{{
  1252. (checkJson[toolIndex][index].right
  1253. ? checkJson[toolIndex][index].right
  1254. : 0) + "%"
  1255. }}</span>
  1256. </div>
  1257. </div>
  1258. </div>
  1259. <div class="xuan_right_box" style="background: unset" v-if="
  1260. tType &&
  1261. ((tType == 2 && sIsOpen == true) ||
  1262. tType == 1 ||
  1263. tType == 4) &&
  1264. tool.tool.indexOf(45) != -1
  1265. ">
  1266. <AskStatic2 v-if="
  1267. worksStudent.length &&
  1268. worksStudent[toolIndex].length > 0
  1269. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic2>
  1270. </div>
  1271. <div v-if="
  1272. tType &&
  1273. ((tType == 2 && sIsOpen == true) ||
  1274. tType == 1 ||
  1275. tType == 4) &&
  1276. tool.tool.indexOf(45) != -1
  1277. " class="worksBox">
  1278. <div class="zuoyeYulan" v-if="
  1279. worksStudent.length &&
  1280. worksStudent[toolIndex].length > 0
  1281. ">
  1282. <span>作业预览</span>
  1283. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1284. </div>
  1285. <div>
  1286. <div class="worksDetailBox" v-if="
  1287. worksStudent.length &&
  1288. worksStudent[toolIndex].length > 0
  1289. ">
  1290. <div v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex" class="isWorksName" @click="
  1291. openTools(
  1292. 45,
  1293. toolIndex,
  1294. taskCount,
  1295. w.works,
  1296. w.sName
  1297. )
  1298. ">
  1299. {{ w.sName }}
  1300. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  1301. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1302. alt />
  1303. </div>
  1304. </div>
  1305. </div>
  1306. <div style="font-size: 18px">未提交</div>
  1307. <div class="noWorksS">
  1308. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1309. {{ s.student }}
  1310. </div>
  1311. </div>
  1312. </div>
  1313. <div v-if="
  1314. tType &&
  1315. ((tType == 2 && sIsOpen == true) ||
  1316. tType == 1 ||
  1317. tType == 4) &&
  1318. tool.tool.indexOf(15) != -1
  1319. " class="worksBox">
  1320. <div class="zuoyeYulan" v-if="
  1321. worksStudent.length &&
  1322. worksStudent[toolIndex].length > 0
  1323. ">
  1324. <span>作业预览</span>
  1325. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1326. </div>
  1327. <div class="worksDetailBox" v-if="
  1328. worksStudent.length &&
  1329. worksStudent[toolIndex].length > 0
  1330. ">
  1331. <div class="works" v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1332. <div class="workImg" style="
  1333. border-radius: 15px;
  1334. box-shadow: #eee 0px 0px 5px 5px;
  1335. ">
  1336. <!-- <img
  1337. src="../assets/icon/works/noImg.png"
  1338. @click="openTools(15, toolIndex, taskCount, w.works)"
  1339. alt=""
  1340. />-->
  1341. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  1342. @click="commentOther(w, toolIndex, wIndex)">
  1343. <!-- <div>{{ w.sName }}</div> -->
  1344. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  1345. placement="top">
  1346. <div class="answerContent">
  1347. {{ JSON.parse(w.works)[0].answer }}
  1348. </div>
  1349. </el-tooltip>
  1350. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1351. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  1352. {{ JSON.parse(w.score).wScore }}分
  1353. </div>
  1354. <div class="answerScore" @click.stop="openScore(w)"
  1355. v-else-if="courseDetail.userid == userid"
  1356. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  1357. 评分
  1358. </div>
  1359. <img class="deleteImg" src="../assets/deleteworks.png"
  1360. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1361. alt />
  1362. </div>
  1363. <div class="comment">
  1364. <div class="worksName">
  1365. <div>{{ w.sName }}</div>
  1366. </div>
  1367. <div class="commentList">
  1368. <div class="commentImg" @click="
  1369. isLikes(w.wid, userid, 1, null, w.isLikes)
  1370. ">
  1371. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1372. </div>
  1373. <div>{{ w.likesCount }}</div>
  1374. </div>
  1375. <div class="commentList" style="margin-right: 15px">
  1376. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1377. <img src="../assets/icon/comment/comment.png" alt="" />
  1378. </div>
  1379. <div>{{ w.commentCount }}</div>
  1380. </div>
  1381. </div>
  1382. </div>
  1383. </div>
  1384. </div>
  1385. <div style="font-size: 18px">未提交</div>
  1386. <div class="noWorksS">
  1387. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1388. {{ s.student }}
  1389. </div>
  1390. </div>
  1391. </div>
  1392. <div v-if="
  1393. tType &&
  1394. ((tType == 2 && sIsOpen == true) ||
  1395. tType == 1 ||
  1396. tType == 4) &&
  1397. tool.tool.indexOf(1) != -1
  1398. " class="worksBox">
  1399. <div class="zuoyeYulan" v-if="
  1400. worksStudent.length &&
  1401. worksStudent[toolIndex].length > 0
  1402. ">
  1403. <span>作业预览</span>
  1404. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1405. </div>
  1406. <div class="worksDetailBox" v-if="
  1407. worksStudent.length &&
  1408. worksStudent[toolIndex].length > 0
  1409. ">
  1410. <div class="works" style="
  1411. width: 200px;
  1412. height: 140px;
  1413. margin: 10px 10px 10px 0;
  1414. border-radius: 15px;
  1415. box-shadow: 0 0 6px 1px #dfdada;
  1416. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1417. <!-- @click="previewImg(w.works)" -->
  1418. <div class="workImg">
  1419. <img :src="w.works" @click="commentOther(w, toolIndex, wIndex)" alt />
  1420. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1421. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  1422. {{ JSON.parse(w.score).wScore }}分
  1423. </div>
  1424. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1425. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  1426. 评分
  1427. </div>
  1428. <img class="deleteImg" src="../assets/deleteworks.png"
  1429. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1430. alt />
  1431. </div>
  1432. <div class="comment" style="min-width: 200px">
  1433. <div class="worksName">
  1434. <div>{{ w.sName }}</div>
  1435. </div>
  1436. <div class="commentList">
  1437. <div class="commentList">
  1438. <div class="commentImg" @click="
  1439. isLikes(w.wid, userid, 1, null, w.isLikes)
  1440. ">
  1441. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1442. </div>
  1443. <div>{{ w.likesCount }}</div>
  1444. </div>
  1445. <div class="commentList" style="margin-right: 15px">
  1446. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1447. <img src="../assets/icon/comment/comment.png" alt="" />
  1448. </div>
  1449. <div>{{ w.commentCount }}</div>
  1450. </div>
  1451. </div>
  1452. </div>
  1453. </div>
  1454. </div>
  1455. <div style="font-size: 18px">未提交</div>
  1456. <div class="noWorksS">
  1457. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1458. {{ s.student }}
  1459. </div>
  1460. </div>
  1461. </div>
  1462. <div v-if="
  1463. tType &&
  1464. ((tType == 2 && sIsOpen == true) ||
  1465. tType == 1 ||
  1466. tType == 4) &&
  1467. tool.tool.indexOf(3) != -1
  1468. " class="worksBox">
  1469. <div class="zuoyeYulan" v-if="
  1470. worksStudent.length &&
  1471. worksStudent[toolIndex].length > 0
  1472. ">
  1473. <span>作业预览</span>
  1474. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1475. </div>
  1476. <div class="worksDetailBox" v-if="
  1477. worksStudent.length &&
  1478. worksStudent[toolIndex].length > 0
  1479. ">
  1480. <div class="works" style="
  1481. width: 200px;
  1482. height: 140px;
  1483. margin: 10px 10px 10px 0;
  1484. border-radius: 15px;
  1485. box-shadow: 0 0 6px 1px #dfdada;
  1486. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1487. <!-- @click="previewImg(w.works)" -->
  1488. <div class="workImg">
  1489. <img :src="w.works" @click="commentOther(w, toolIndex, wIndex)" alt />
  1490. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1491. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  1492. {{ JSON.parse(w.score).wScore }}分
  1493. </div>
  1494. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1495. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  1496. 评分
  1497. </div>
  1498. <img class="deleteImg" src="../assets/deleteworks.png"
  1499. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1500. alt />
  1501. </div>
  1502. <div class="comment" style="min-width: 200px">
  1503. <div class="worksName">
  1504. <div>{{ w.sName }}</div>
  1505. </div>
  1506. <div class="commentList">
  1507. <div class="commentList">
  1508. <div class="commentImg" @click="
  1509. isLikes(w.wid, userid, 1, null, w.isLikes)
  1510. ">
  1511. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1512. </div>
  1513. <div>{{ w.likesCount }}</div>
  1514. </div>
  1515. <div class="commentList" style="margin-right: 15px">
  1516. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1517. <img src="../assets/icon/comment/comment.png" alt="" />
  1518. </div>
  1519. <div>{{ w.commentCount }}</div>
  1520. </div>
  1521. </div>
  1522. </div>
  1523. </div>
  1524. </div>
  1525. <div style="font-size: 18px">未提交</div>
  1526. <div class="noWorksS">
  1527. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1528. {{ s.student }}
  1529. </div>
  1530. </div>
  1531. </div>
  1532. <div v-if="
  1533. tType &&
  1534. ((tType == 2 && sIsOpen == true) ||
  1535. tType == 1 ||
  1536. tType == 4) &&
  1537. tool.tool.indexOf(6) != -1
  1538. " class="worksBox">
  1539. <div class="zuoyeYulan" v-if="
  1540. worksStudent.length &&
  1541. worksStudent[toolIndex].length > 0
  1542. ">
  1543. <span>作业预览</span>
  1544. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1545. </div>
  1546. <div class="worksDetailBox" v-if="
  1547. worksStudent.length &&
  1548. worksStudent[toolIndex].length > 0
  1549. ">
  1550. <div class="works" style="
  1551. width: 200px;
  1552. height: 140px;
  1553. margin: 10px 10px 10px 0;
  1554. border-radius: 15px;
  1555. box-shadow: 0 0 6px 1px #dfdada;
  1556. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1557. <!-- @click="previewImg(w.works)" -->
  1558. <div class="workImg">
  1559. <img :src="w.works" @click="commentOther(w, toolIndex, wIndex)" alt />
  1560. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1561. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  1562. {{ JSON.parse(w.score).wScore }}分
  1563. </div>
  1564. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1565. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  1566. 评分
  1567. </div>
  1568. <img class="deleteImg" src="../assets/deleteworks.png"
  1569. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1570. alt />
  1571. </div>
  1572. <div class="comment" style="min-width: 200px">
  1573. <div class="worksName">
  1574. <div>{{ w.sName }}</div>
  1575. </div>
  1576. <div class="commentList">
  1577. <div class="commentList">
  1578. <div class="commentImg" @click="
  1579. isLikes(w.wid, userid, 1, null, w.isLikes)
  1580. ">
  1581. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1582. </div>
  1583. <div>{{ w.likesCount }}</div>
  1584. </div>
  1585. <div class="commentList" style="margin-right: 15px">
  1586. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1587. <img src="../assets/icon/comment/comment.png" alt="" />
  1588. </div>
  1589. <div>{{ w.commentCount }}</div>
  1590. </div>
  1591. </div>
  1592. </div>
  1593. </div>
  1594. </div>
  1595. <div style="font-size: 18px">未提交</div>
  1596. <div class="noWorksS">
  1597. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1598. {{ s.student }}
  1599. </div>
  1600. </div>
  1601. </div>
  1602. <div v-if="
  1603. tType &&
  1604. ((tType == 2 && sIsOpen == true) ||
  1605. tType == 1 ||
  1606. tType == 4) &&
  1607. tool.tool.indexOf(7) != -1
  1608. " class="worksBox">
  1609. <div class="zuoyeYulan" v-if="
  1610. worksStudent.length &&
  1611. worksStudent[toolIndex].length > 0
  1612. ">
  1613. <span>作业预览</span>
  1614. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1615. </div>
  1616. <div class="worksDetailBox" v-if="
  1617. worksStudent.length &&
  1618. worksStudent[toolIndex].length > 0
  1619. ">
  1620. <div class="works" style="
  1621. width: 200px;
  1622. height: 140px;
  1623. margin: 10px 10px 10px 0;
  1624. border-radius: 15px;
  1625. box-shadow: 0 0 6px 1px #dfdada;
  1626. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1627. <!-- @click="previewImg(w.works)" -->
  1628. <div class="workImg">
  1629. <img :src="w.works" @click="commentOther(w, toolIndex, wIndex)" alt />
  1630. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1631. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  1632. {{ JSON.parse(w.score).wScore }}分
  1633. </div>
  1634. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1635. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  1636. 评分
  1637. </div>
  1638. <img class="deleteImg" src="../assets/deleteworks.png"
  1639. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1640. alt />
  1641. </div>
  1642. <div class="comment" style="min-width: 200px">
  1643. <div class="worksName">
  1644. <div>{{ w.sName }}</div>
  1645. </div>
  1646. <div class="commentList">
  1647. <div class="commentList">
  1648. <div class="commentImg" @click="
  1649. isLikes(w.wid, userid, 1, null, w.isLikes)
  1650. ">
  1651. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1652. </div>
  1653. <div>{{ w.likesCount }}</div>
  1654. </div>
  1655. <div class="commentList" style="margin-right: 15px">
  1656. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1657. <img src="../assets/icon/comment/comment.png" alt="" />
  1658. </div>
  1659. <div>{{ w.commentCount }}</div>
  1660. </div>
  1661. </div>
  1662. </div>
  1663. </div>
  1664. </div>
  1665. <div style="font-size: 18px">未提交</div>
  1666. <div class="noWorksS">
  1667. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1668. {{ s.student }}
  1669. </div>
  1670. </div>
  1671. </div>
  1672. <div v-if="
  1673. tType &&
  1674. ((tType == 2 && sIsOpen == true) ||
  1675. tType == 1 ||
  1676. tType == 4) &&
  1677. tool.tool.indexOf(26) != -1
  1678. " class="worksBox">
  1679. <div class="zuoyeYulan" v-if="
  1680. worksStudent.length &&
  1681. worksStudent[toolIndex].length > 0
  1682. ">
  1683. <span>作业预览</span>
  1684. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1685. </div>
  1686. <div class="worksDetailBox" v-if="
  1687. worksStudent.length &&
  1688. worksStudent[toolIndex].length > 0
  1689. ">
  1690. <div class="works" style="width: 240px; height: 140px; overflow: hidden"
  1691. v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1692. :class="w.type == 1 ? 'isTypeOne' : ''">
  1693. <div class="workImg" v-if="w.type == 0">
  1694. <img :src="w.works" @click="previewImg(w.works)" alt />
  1695. <img class="deleteImg" src="../assets/deleteworks.png"
  1696. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1697. alt />
  1698. </div>
  1699. <div class="workImg" v-if="w.type == 1">
  1700. <img :src="word" @click="openFile(w.works)" alt />
  1701. <img class="deleteImg" src="../assets/deleteworks.png"
  1702. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1703. alt />
  1704. </div>
  1705. <div class="worksName">
  1706. <div>{{ w.sName }}</div>
  1707. </div>
  1708. </div>
  1709. </div>
  1710. <div style="font-size: 18px">未提交</div>
  1711. <div class="noWorksS">
  1712. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1713. {{ s.student }}
  1714. </div>
  1715. </div>
  1716. </div>
  1717. <div v-if="
  1718. tType &&
  1719. ((tType == 2 && sIsOpen == true) ||
  1720. tType == 1 ||
  1721. tType == 4) &&
  1722. tool.tool.indexOf(40) != -1
  1723. " class="worksBox">
  1724. <div class="zuoyeYulan" v-if="
  1725. worksStudent.length &&
  1726. worksStudent[toolIndex].length > 0
  1727. ">
  1728. <span>作业预览</span>
  1729. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1730. </div>
  1731. <div class="worksDetailBox" v-if="
  1732. worksStudent.length &&
  1733. worksStudent[toolIndex].length > 0
  1734. ">
  1735. <div class="works" style="
  1736. width: 200px;
  1737. height: 140px;
  1738. margin: 10px 10px 10px 0;
  1739. border-radius: 15px;
  1740. box-shadow: 0 0 6px 1px #dfdada;
  1741. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1742. :class="w.type == 1 ? 'isTypeOne' : ''">
  1743. <div class="workImg">
  1744. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  1745. <img class="deleteImg" src="../assets/deleteworks.png"
  1746. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1747. alt />
  1748. </div>
  1749. <div class="comment" style="min-width: 200px">
  1750. <div class="worksName">
  1751. <div>{{ w.sName }}</div>
  1752. </div>
  1753. <div class="commentList">
  1754. <div class="commentList">
  1755. <div class="commentImg" @click="
  1756. isLikes(w.wid, userid, 1, null, w.isLikes)
  1757. ">
  1758. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1759. </div>
  1760. <div>{{ w.likesCount }}</div>
  1761. </div>
  1762. <div class="commentList" style="margin-right: 15px">
  1763. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1764. <img src="../assets/icon/comment/comment.png" alt="" />
  1765. </div>
  1766. <div>{{ w.commentCount }}</div>
  1767. </div>
  1768. </div>
  1769. </div>
  1770. </div>
  1771. </div>
  1772. <div style="font-size: 18px">未提交</div>
  1773. <div class="noWorksS">
  1774. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1775. {{ s.student }}
  1776. </div>
  1777. </div>
  1778. </div>
  1779. <div v-if="
  1780. tType &&
  1781. tType == 2 &&
  1782. !sIsOpen &&
  1783. tool.tool.indexOf(40) != -1
  1784. " class="worksBox">
  1785. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1786. <span>作业预览</span>
  1787. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1788. </div>
  1789. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1790. <div class="works" style="
  1791. width: 200px;
  1792. height: 140px;
  1793. margin: 10px 10px 10px 0;
  1794. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1795. <div class="workImg">
  1796. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  1797. <img class="deleteImg" src="../assets/deleteworks.png"
  1798. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1799. alt />
  1800. </div>
  1801. <div class="worksName">
  1802. <div>{{ w.sName }}</div>
  1803. </div>
  1804. </div>
  1805. </div>
  1806. </div>
  1807. <div v-if="
  1808. tType &&
  1809. ((tType == 2 && sIsOpen == true) ||
  1810. tType == 1 ||
  1811. tType == 4) &&
  1812. tool.tool.indexOf(41) != -1
  1813. ">
  1814. <AnswerData2 v-if="
  1815. worksStudent.length &&
  1816. worksStudent[toolIndex].length > 0
  1817. " :problemJson="tool.selectJson.answer" :people="worksStudent[toolIndex]"></AnswerData2>
  1818. </div>
  1819. <div v-if="
  1820. tType &&
  1821. ((tType == 2 && sIsOpen == true) ||
  1822. tType == 1 ||
  1823. tType == 4) &&
  1824. tool.tool.indexOf(41) != -1
  1825. " class="worksBox">
  1826. <div class="zuoyeYulan" v-if="
  1827. worksStudent.length &&
  1828. worksStudent[toolIndex].length > 0
  1829. ">
  1830. <span>作业预览</span>
  1831. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1832. </div>
  1833. <div class="worksDetailBox" v-if="
  1834. worksStudent.length &&
  1835. worksStudent[toolIndex].length > 0
  1836. ">
  1837. <div v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex" class="isWorksName"
  1838. @click="openXz(w, toolIndex)">
  1839. {{ w.sName }}
  1840. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  1841. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  1842. </div>
  1843. <!-- <div
  1844. class="works"
  1845. style="
  1846. width: 200px;
  1847. height: 140px;
  1848. margin: 10px 10px 10px 0;
  1849. border-radius: 15px;
  1850. box-shadow: 0 0 6px 1px #dfdada;
  1851. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1852. :class="w.type == 5 ? 'isTypeOne' : ''">
  1853. <div class="workImg">
  1854. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  1855. </div>
  1856. <div class="worksName">
  1857. <div>{{ w.sName }}</div>
  1858. </div>
  1859. </div> -->
  1860. </div>
  1861. <div style="font-size: 18px">未提交</div>
  1862. <div class="noWorksS">
  1863. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1864. {{ s.student }}
  1865. </div>
  1866. </div>
  1867. </div>
  1868. <div v-if="
  1869. tType &&
  1870. tType == 2 &&
  1871. !sIsOpen &&
  1872. tool.tool.indexOf(41) != -1
  1873. " class="worksBox">
  1874. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1875. <span>作业预览</span>
  1876. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1877. </div>
  1878. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1879. <div class="works" style="
  1880. width: 200px;
  1881. height: 140px;
  1882. margin: 10px 10px 10px 0;
  1883. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1884. <div class="workImg">
  1885. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  1886. <img class="deleteImg" src="../assets/deleteworks.png"
  1887. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1888. alt />
  1889. </div>
  1890. <div class="worksName">
  1891. <div>{{ w.sName }}</div>
  1892. </div>
  1893. </div>
  1894. </div>
  1895. </div>
  1896. <div v-if="false" class="xuan_right_box">
  1897. <div class="tool_right_box" v-for="(item, index) in tool.sentenceList" :key="index">
  1898. <div>
  1899. <span>{{ index + 1 + "、" + item.sentenceTitle }}</span>
  1900. </div>
  1901. <div class="right_box_xuan">
  1902. <span>正确率</span>
  1903. <span>{{
  1904. (checkJson[toolIndex][index].right
  1905. ? checkJson[toolIndex][index].right
  1906. : 0) + "%"
  1907. }}</span>
  1908. </div>
  1909. <div class="right_box_xuan">
  1910. <span>答对人数</span>
  1911. <span>{{
  1912. checkJson[toolIndex][index].rightPerson.length
  1913. }}</span>
  1914. </div>
  1915. </div>
  1916. </div>
  1917. <div v-if="
  1918. tType &&
  1919. ((tType == 2 && sIsOpen == true) ||
  1920. tType == 1 ||
  1921. tType == 4) &&
  1922. tool.tool.indexOf(47) != -1
  1923. ">
  1924. <AnswerData v-if="
  1925. checkJson[toolIndex].length &&
  1926. (tool.sentenceList || tool.sentenceList.length > 0)
  1927. " :people="checkJson[toolIndex]"></AnswerData>
  1928. </div>
  1929. <div v-if="
  1930. tType &&
  1931. tType == 2 &&
  1932. !sIsOpen &&
  1933. tool.tool.indexOf(47) != -1
  1934. " class="worksBox">
  1935. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1936. <span>作业预览</span>
  1937. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1938. </div>
  1939. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1940. <div class="works" style="
  1941. width: 200px;
  1942. height: 140px;
  1943. margin: 10px 10px 10px 0;
  1944. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1945. <!-- @click="openXz(w, toolIndex)" -->
  1946. <div class="workImg" @click="openSen(w, toolIndex)">
  1947. <img src="../assets/icon/works/noImg.png" alt />
  1948. <img class="deleteImg" src="../assets/deleteworks.png"
  1949. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  1950. alt />
  1951. </div>
  1952. <div class="worksName">
  1953. <div>
  1954. {{ w.sName }}
  1955. </div>
  1956. </div>
  1957. </div>
  1958. </div>
  1959. </div>
  1960. <div v-if="
  1961. tType &&
  1962. ((tType == 2 && sIsOpen == true) ||
  1963. tType == 1 ||
  1964. tType == 4) &&
  1965. tool.tool.indexOf(47) != -1
  1966. " class="worksBox">
  1967. <div class="zuoyeYulan" v-if="
  1968. worksStudent.length &&
  1969. worksStudent[toolIndex].length > 0
  1970. ">
  1971. <span>作业预览</span>
  1972. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1973. </div>
  1974. <div class="worksDetailBox" v-if="
  1975. worksStudent.length &&
  1976. worksStudent[toolIndex].length > 0
  1977. ">
  1978. <!-- @click="openXz(w, toolIndex)" -->
  1979. <div v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex" class="isWorksName"
  1980. @click="openSen(w, toolIndex)">
  1981. {{ w.sName }}
  1982. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  1983. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  1984. </div>
  1985. </div>
  1986. <div style="font-size: 18px">未提交</div>
  1987. <div class="noWorksS">
  1988. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1989. {{ s.student }}
  1990. </div>
  1991. </div>
  1992. </div>
  1993. <div v-if="
  1994. tType &&
  1995. ((tType == 2 && sIsOpen == true) ||
  1996. tType == 1 ||
  1997. tType == 4) &&
  1998. tool.tool.indexOf(48) != -1
  1999. " class="worksBox">
  2000. <div class="zuoyeYulan" v-if="
  2001. worksStudent.length &&
  2002. worksStudent[toolIndex].length > 0
  2003. ">
  2004. <span>作业预览</span>
  2005. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2006. </div>
  2007. <div class="worksDetailBox" v-if="
  2008. worksStudent.length &&
  2009. worksStudent[toolIndex].length > 0
  2010. ">
  2011. <div class="works" style="
  2012. width: 200px;
  2013. height: 140px;
  2014. margin: 10px 10px 10px 0;
  2015. border-radius: 15px;
  2016. box-shadow: 0 0 6px 1px #dfdada;
  2017. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  2018. :class="w.type == 1 ? 'isTypeOne' : ''">
  2019. <div class="workImg">
  2020. <img :src="word" @click="commentOther(w, toolIndex, wIndex)" alt />
  2021. <!-- @click="openFile(w.works)" -->
  2022. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  2023. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  2024. {{ JSON.parse(w.score).wScore }}分
  2025. </div>
  2026. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2027. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  2028. 评分
  2029. </div>
  2030. <img class="deleteImg" src="../assets/deleteworks.png"
  2031. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  2032. alt />
  2033. </div>
  2034. <div class="comment" style="min-width: 200px">
  2035. <div class="worksName">
  2036. <div>{{ w.sName }}</div>
  2037. </div>
  2038. <div class="commentList">
  2039. <div class="commentList">
  2040. <div class="commentImg" @click="
  2041. isLikes(w.wid, userid, 1, null, w.isLikes)
  2042. ">
  2043. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2044. </div>
  2045. <div>{{ w.likesCount }}</div>
  2046. </div>
  2047. <div class="commentList" style="margin-right: 15px">
  2048. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2049. <img src="../assets/icon/comment/comment.png" alt="" />
  2050. </div>
  2051. <div>{{ w.commentCount }}</div>
  2052. </div>
  2053. </div>
  2054. </div>
  2055. </div>
  2056. </div>
  2057. <div style="font-size: 18px">未提交</div>
  2058. <div class="noWorksS">
  2059. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2060. {{ s.student }}
  2061. </div>
  2062. </div>
  2063. </div>
  2064. <div v-if="
  2065. tType &&
  2066. tType == 2 &&
  2067. !sIsOpen &&
  2068. tool.tool.indexOf(48) != -1
  2069. " class="worksBox">
  2070. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  2071. <span>作业预览</span>
  2072. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2073. </div>
  2074. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  2075. <div class="works" style="
  2076. width: 200px;
  2077. height: 140px;
  2078. margin: 10px 10px 10px 0;
  2079. box-shadow: 0 0 6px 1px #dfdada;
  2080. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  2081. <div class="workImg">
  2082. <img :src="word" @click="openTable(w)" alt />
  2083. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  2084. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  2085. {{ JSON.parse(w.score).wScore }}分
  2086. </div>
  2087. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2088. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 }">
  2089. 评分
  2090. </div>
  2091. <img class="deleteImg" src="../assets/deleteworks.png"
  2092. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  2093. alt />
  2094. </div>
  2095. <div class="worksName">
  2096. <div>{{ w.sName }}</div>
  2097. </div>
  2098. </div>
  2099. </div>
  2100. </div>
  2101. <div v-if="
  2102. tool.tool.indexOf(49) != -1
  2103. " class="xuan_right_box">
  2104. <div v-if="groupStudentUid[toolIndex]" class="group_staic_box">
  2105. <div v-for="(gp, gd) in tool.groupJson.group" :key="gd" class="group_staic">
  2106. <span> {{ gp.name }}</span>
  2107. <span> 目前人数{{ groupStudentUid[toolIndex][gd].length }}人</span>
  2108. </div>
  2109. </div>
  2110. </div>
  2111. <div v-if="
  2112. tool.tool.indexOf(49) != -1
  2113. " class="worksBox">
  2114. <div class="zuoyeYulan" v-if="
  2115. worksStudent.length &&
  2116. worksStudent[toolIndex].length > 0
  2117. ">
  2118. <span>作业预览</span>
  2119. </div>
  2120. <div>
  2121. <div class="group_workBox" v-for="(g, gindex) in tool.groupJson.group" :key="gindex">
  2122. <div class="group_box"
  2123. v-if="groupStudentUid[toolIndex] && worksStudent[toolIndex] && (worksStudent[toolIndex][gindex].length || groupStudentUid[toolIndex][gindex].indexOf(userid) != -1)">
  2124. <div class="group_title">
  2125. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  2126. <div class="group_name">{{ g.name }}</div>
  2127. </el-tooltip>
  2128. <el-button type="primary" v-if="groupStudentUid[toolIndex][gindex].indexOf(userid) != -1"
  2129. @click="groupUpload(toolIndex, taskCount, gindex)">上传作业</el-button>
  2130. </div>
  2131. <div class="group_work">
  2132. <div class="works" style="
  2133. width: 200px;
  2134. height: 140px;
  2135. margin: 10px 10px 10px 0;
  2136. border-radius: 15px;
  2137. box-shadow: 0 0 6px 1px #dfdada;
  2138. " v-for="(w, wIndex) in worksStudent[toolIndex][gindex]" :key="wIndex"
  2139. :class="w.type == 1 ? 'isTypeOne' : ''">
  2140. <div class="workImg" v-if="w.type == 0">
  2141. <img :src="w.works" @click="commentOther(w, toolIndex, wIndex, gindex)" alt />
  2142. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  2143. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  2144. {{ JSON.parse(w.score).wScore }}分
  2145. </div>
  2146. <div class="answerScore" @click.stop="openScore(w)"
  2147. v-else-if="courseDetail.userid == userid"
  2148. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  2149. 评分
  2150. </div>
  2151. <img class="deleteImg" src="../assets/deleteworks.png"
  2152. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  2153. alt />
  2154. </div>
  2155. <div class="workImg" v-if="w.type == 1">
  2156. <img :src="word" @click="commentOther(w, toolIndex, wIndex, gindex)" alt />
  2157. <!-- @click="openFile(w.works)" -->
  2158. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  2159. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  2160. {{ JSON.parse(w.score).wScore }}分
  2161. </div>
  2162. <div class="answerScore" @click.stop="openScore(w)"
  2163. v-else-if="courseDetail.userid == userid"
  2164. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  2165. 评分
  2166. </div>
  2167. <img class="deleteImg" src="../assets/deleteworks.png"
  2168. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  2169. alt />
  2170. </div>
  2171. <div class="workImg" v-if="w.type == 3">
  2172. <img style="cursor: pointer" :src="video"
  2173. @click="commentOther(w, toolIndex, wIndex, gindex)" alt />
  2174. <!-- @click="openVideo(w.works)" -->
  2175. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  2176. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  2177. {{ JSON.parse(w.score).wScore }}分
  2178. </div>
  2179. <div class="answerScore" @click.stop="openScore(w)"
  2180. v-else-if="courseDetail.userid == userid"
  2181. :class="{ rightW: w.userid == userid || tType == 1 || tType == 4 || w.ateacher == userid }">
  2182. 评分
  2183. </div>
  2184. <img class="deleteImg" src="../assets/deleteworks.png"
  2185. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)"
  2186. alt />
  2187. </div>
  2188. <div class="comment" style="min-width: 200px">
  2189. <div class="worksName">
  2190. <div>{{ w.sName }}</div>
  2191. </div>
  2192. <div class="commentList">
  2193. <div class="commentList">
  2194. <div class="commentImg" @click="
  2195. isLikes(w.wid, userid, 1, null, w.isLikes)
  2196. ">
  2197. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2198. </div>
  2199. <div>{{ w.likesCount }}</div>
  2200. </div>
  2201. <div class="commentList" style="margin-right: 15px">
  2202. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2203. <img src="../assets/icon/comment/comment.png" alt="" />
  2204. </div>
  2205. <div>{{ w.commentCount }}</div>
  2206. </div>
  2207. </div>
  2208. </div>
  2209. </div>
  2210. </div>
  2211. </div>
  2212. </div>
  2213. </div>
  2214. </div>
  2215. </div>
  2216. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  2217. 上传文件
  2218. <input
  2219. type="file"
  2220. accept="image/png, image/gif, image/jpeg"
  2221. style="display: none"
  2222. @change="beforeUpload1($event, 2, index)"
  2223. />
  2224. </div>-->
  2225. </div>
  2226. </div>
  2227. <div class="vedioBox" v-if="
  2228. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  2229. .eList &&
  2230. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  2231. .eList.length &&
  2232. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  2233. .eList.length > 0 &&
  2234. tType != 2
  2235. ">
  2236. <div class="queTop" style="
  2237. font-size: 25px;
  2238. padding: 15px 0 15px 30px;
  2239. font-weight: bold;
  2240. ">
  2241. <!-- <div class="question" style="width: 30px">
  2242. <img src="../assets/icon/toolIcon.png" alt />
  2243. </div>
  2244. <div class="queTitle">
  2245. <div>工具</div>
  2246. </div>-->
  2247. 评一评
  2248. </div>
  2249. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  2250. <div class="elist_input">
  2251. <div v-for="(eItem, eIndex) in chapInfoList[courseType]
  2252. .chapterInfo[0].taskJson[taskCount].eList" :key="eIndex" class="elist_input_box">
  2253. <div style="width: 95%">
  2254. <div style="
  2255. display: flex;
  2256. flex-direction: row;
  2257. flex-wrap: nowrap;
  2258. align-items: center;
  2259. ">
  2260. <div style="max-width: calc(100% - 285px)">
  2261. <span>{{ eItem.value }}</span>
  2262. </div>
  2263. <div style="
  2264. padding-left: 25px;
  2265. display: flex;
  2266. flex-direction: row;
  2267. align-items: center;
  2268. ">
  2269. <el-rate v-model="eItem.score" :colors="colors" disabled></el-rate>
  2270. </div>
  2271. </div>
  2272. <div class="elist_inptu_text" style="padding-left: 10px">
  2273. <span v-if="eItem.detail != ''">{{
  2274. eItem.detail
  2275. }}</span>
  2276. <span v-else style="color: #b2b1b3; font-size: 14px">暂无描述...</span>
  2277. </div>
  2278. </div>
  2279. </div>
  2280. </div>
  2281. <div v-if="evalua" style="
  2282. border: 1px solid #e5e5e5;
  2283. max-width: 650px;
  2284. width: 100%;
  2285. margin-top: 20px;
  2286. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2287. ">
  2288. <div class="e_add_top">
  2289. <div class="e_add_title">
  2290. <span>目标管理名称</span>
  2291. <span>{{ eTitle }}</span>
  2292. <img src="../assets/line.png" class="cru_line" style="
  2293. width: 125px;
  2294. height: 20px;
  2295. bottom: -10px;
  2296. left: 120px;
  2297. " />
  2298. <!-- <el-input
  2299. v-model="eTitle"
  2300. placeholder="请输入名称"
  2301. @change="setMindData"
  2302. ></el-input>-->
  2303. </div>
  2304. </div>
  2305. <div class="e_add_content">
  2306. <div class="e_add_list_pbox">
  2307. <div class="e_add_list_pbox_title">
  2308. <span class="type_title">切换模式</span>
  2309. <div class="type_content">
  2310. <span :class="{ active: typeMode == 1 }" @click="typeMode = 1">目标树</span>
  2311. <span :class="{ active: typeMode == 2 }" @click="typeMode = 2">目标罗盘</span>
  2312. <span :class="{ active: typeMode == 3 }" @click="typeMode = 3">目标看板</span>
  2313. </div>
  2314. </div>
  2315. <div class="e_add_list_pbox_content">
  2316. <Mind :showBar="false" :mindData="data" style="width: 100%" v-show="typeMode == 1"></Mind>
  2317. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  2318. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2319. v-if="typeMode == 3"></SeeBoard>
  2320. </div>
  2321. </div>
  2322. </div>
  2323. </div>
  2324. </div>
  2325. </div>
  2326. <!-- <div
  2327. class="project_box"
  2328. style="margin-top: 15px; padding-bottom: 30px"
  2329. >
  2330. <div
  2331. style="
  2332. display: flex;
  2333. flex-wrap: nowrap;
  2334. flex-direction: column;
  2335. position: relative;
  2336. "
  2337. >
  2338. <div class="queTop">
  2339. <div class="question">
  2340. <img src="../assets/icon/homeWork.png" alt="" />
  2341. </div>
  2342. <div class="queTitle">
  2343. <div>作业提交<span>(提交图文视频等)</span></div>
  2344. <div>:任务:{{ task.task }}</div>
  2345. </div>
  2346. </div>
  2347. <div class="ediBottom">
  2348. <div
  2349. class="addEditor"
  2350. style="margin-top: 23px"
  2351. @click="openAddWork"
  2352. v-if="!isNoHomeWork"
  2353. >
  2354. 选择文件
  2355. </div>
  2356. <div
  2357. class="addEditor"
  2358. style="margin-top: 23px"
  2359. @click="openAddWork"
  2360. v-else
  2361. >
  2362. 已提交
  2363. </div>
  2364. </div>
  2365. </div>
  2366. </div>-->
  2367. </div>
  2368. </div>
  2369. <el-dialog title="作业提交" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  2370. :before-close="handleClose" class="dialog_change">
  2371. <div class="marginT">
  2372. <div>上传文件</div>
  2373. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  2374. <div class="up_photo">
  2375. <img src="../assets/icon/uploadImg.png" alt />
  2376. </div>
  2377. <input type="file"
  2378. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  2379. capture="camera" style="display: none" @change="beforeUpload1($event, 1)" />
  2380. <!-- <input
  2381. type="file"
  2382. accept="image/*"
  2383. capture="camera"
  2384. style="display: none"
  2385. @change="beforeUpload1($event, 1)"
  2386. /> -->
  2387. </div>
  2388. <div class="chapter_add" style="
  2389. display: flex;
  2390. width: 100%;
  2391. flex-direction: row;
  2392. flex-wrap: wrap;
  2393. justify-content: flex-start;
  2394. padding: 15px 0;
  2395. " v-if="studyJuri[0].cover.length > 0">
  2396. <div class="upCover">
  2397. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  2398. <img :src="word" alt v-else-if="fileType == 1" />
  2399. <img :src="video" alt v-else />
  2400. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  2401. <div class="deleteWord" @click="clean(1)">
  2402. <img src="../assets/icon/deleteWorks.png" alt />
  2403. </div>
  2404. </div>
  2405. </div>
  2406. </div>
  2407. <!-- <div class="first">
  2408. <div>作业名称:</div>
  2409. <div>{{ chapInfoList[courseType].dyName }}</div>
  2410. </div>
  2411. <div style="font-size: 20px; margin-bottom: 10px">上传作业</div>
  2412. <el-input
  2413. type="textarea"
  2414. resize="none"
  2415. rows="7"
  2416. placeholder="输入文字描述..."
  2417. v-model="studyJuri[0].content"
  2418. ></el-input>
  2419. <div class="marginT">
  2420. <div>上传图片</div>
  2421. <div class="chapter_add" @click="addImg($event)">
  2422. <div class="up_photo">
  2423. <img src="../assets/photo.png" alt />
  2424. </div>
  2425. <input
  2426. type="file"
  2427. accept="image/png, image/gif, image/jpeg"
  2428. style="display: none"
  2429. @change="beforeUpload1($event, 1)"
  2430. />
  2431. </div>
  2432. <div
  2433. class="chapter_add"
  2434. style="
  2435. display: flex;
  2436. width: 100%;
  2437. flex-direction: row;
  2438. flex-wrap: wrap;
  2439. justify-content: flex-start;
  2440. "
  2441. v-if="studyJuri[0].cover.length > 0"
  2442. >
  2443. <div
  2444. v-for="(c, cIndex) in studyJuri[0].cover"
  2445. :key="cIndex"
  2446. class="upCover"
  2447. >
  2448. <img :src="c.url != null && c.url != '' ? c.url : mr" alt />
  2449. <span class="picName">{{ c.name }}</span>
  2450. <div class="deleteWord" @click="clean(1)">
  2451. <img src="../assets/icon/delete.png" alt />
  2452. </div>
  2453. </div>
  2454. </div>
  2455. </div>
  2456. <div class="marginT">
  2457. <div>上传视频</div>
  2458. <div class="chapter_add" @click="addImg($event)">
  2459. <div class="up_photo">
  2460. <img src="../assets/vidio.png" alt />
  2461. </div>
  2462. <input
  2463. type="file"
  2464. accept="video/mp4, video/quicktime, video/x-msvideo"
  2465. style="display: none"
  2466. @change="beforeUpload2($event, 2)"
  2467. />
  2468. </div>
  2469. <div
  2470. class="chapter_add"
  2471. style="
  2472. display: flex;
  2473. flex-direction: row;
  2474. flex-wrap: wrap;
  2475. width: 100%;
  2476. justify-content: flex-start;
  2477. "
  2478. v-if="studyJuri[0].upVedio.length > 0"
  2479. >
  2480. <div
  2481. style="
  2482. width: 100%;
  2483. display: flex;
  2484. flex-direction: row;
  2485. flex-wrap: wrap;
  2486. align-content: flex-start;
  2487. justify-content: flex-start;
  2488. align-items: center;
  2489. "
  2490. >
  2491. <div
  2492. class="uploadVedio isAddThings"
  2493. v-for="(v, vIndex) in studyJuri[0].upVedio"
  2494. :key="vIndex"
  2495. >
  2496. <img src="../assets/uploadMp4.png" alt />
  2497. <span>{{ v.name }}</span>
  2498. <div class="deleteWord" @click="clean(2)">
  2499. <img src="../assets/icon/delete.png" alt />
  2500. </div>
  2501. </div>
  2502. </div>
  2503. </div>
  2504. </div>-->
  2505. <div class="upload_send" @click="addCourseWorks(taskCount)" v-if="!proVisible">提交</div>
  2506. </el-dialog>
  2507. </div>
  2508. </div>
  2509. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4">
  2510. <!-- 批 -->
  2511. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  2512. </div>
  2513. <div v-if="pzDialog == true" class="newDialogCss">
  2514. <div class="pzTop2">
  2515. <!-- <div>批注</div>
  2516. <div @click="pzDialog = false">
  2517. <img src="../assets/close1.png" alt="" />
  2518. </div> -->
  2519. <div class="checkbox">
  2520. <div class="check" style="font-size: 25px">评课笔记</div>
  2521. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  2522. </div>
  2523. </div>
  2524. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  2525. <div class="pzListBox" v-if="pzList && pzList.length">
  2526. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  2527. <div class="pzNavTop">
  2528. <div>批</div>
  2529. <div>
  2530. {{
  2531. pz.username.length > 5
  2532. ? pz.username.substring(0, 5) + "..."
  2533. : pz.username
  2534. }}的批注
  2535. </div>
  2536. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  2537. 删除
  2538. </div>
  2539. </div>
  2540. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'">
  2541. <!-- {{ }} -->
  2542. </div>
  2543. <div class="pzContent" v-if="pz.type == '2'">
  2544. <audio :src="pz.content" controls="controls" ref="audio">
  2545. Your browser does not support the audio element.
  2546. </audio>
  2547. </div>
  2548. <div class="pzContent" v-if="pz.type == '3'">
  2549. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block"
  2550. @click="previewImg(pz.content)" />
  2551. </div>
  2552. <div class="time">
  2553. {{ pz.time }}
  2554. </div>
  2555. </div>
  2556. </div>
  2557. <div class="noPz" v-else>
  2558. <img src="../assets/icon/noPz.png" alt="" />
  2559. </div>
  2560. <div class="addPzButton">
  2561. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  2562. 添加批注
  2563. </div>
  2564. <div class="img1">
  2565. <div @click="(addPzDialog = true), (pzType = 2)">
  2566. <img src="../assets/audio.png" /><span>音频</span>
  2567. </div>
  2568. <!-- <img src="../assets/picture.png" @click="addPzDialog = true,pzType = 3" /> -->
  2569. </div>
  2570. </div>
  2571. </div>
  2572. </div>
  2573. <div v-if="addPzDialog == true" class="addDialogCss">
  2574. <div class="pzTop">
  2575. <div class="teacherPz">
  2576. <div class="teacherPzImg">
  2577. <img src="../assets/icon/teacherPz.png" alt="" />
  2578. </div>
  2579. <div style="margin-left: 10px; height: 25px">教师批注</div>
  2580. </div>
  2581. <div @click="addPzDialog = false">
  2582. <img src="../assets/close1.png" alt="" />
  2583. </div>
  2584. </div>
  2585. <div class="addPzBox">
  2586. <div class="addPzCheck">
  2587. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  2588. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  2589. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  2590. </div>
  2591. <div style="height: calc(100% - 95px)">
  2592. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  2593. v-if="pzType == 1"></textarea> -->
  2594. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  2595. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  2596. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  2597. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  2598. <div @click="addImg($event)">
  2599. <el-button type="primary">上传图片</el-button>
  2600. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  2601. @change="beforeUpload1($event, 4)" />
  2602. </div>
  2603. </div> -->
  2604. </div>
  2605. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  2606. 确定
  2607. </div>
  2608. </div>
  2609. </div>
  2610. <div v-if="proVisible" class="mask">
  2611. <div class="progressBox">
  2612. <div class="lbox">
  2613. <img src="../assets/loading.gif" />上传中,请稍后
  2614. </div>
  2615. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  2616. </div>
  2617. </div>
  2618. <el-dialog :visible.sync="pictureDialog" size="tiny">
  2619. <img width="100%" :src="dialogImageUrl" alt />
  2620. </el-dialog>
  2621. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  2622. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  2623. <div>
  2624. <div class="a_add_title" style="
  2625. display: flex;
  2626. flex-direction: row;
  2627. align-items: center;
  2628. justify-content: center;
  2629. ">
  2630. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2631. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  2632. </div>
  2633. <div class="a_addBox">
  2634. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  2635. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2636. <div class="a_add_head">
  2637. <div style="display: flex">
  2638. {{ index1 + 1 + "、" }}
  2639. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  2640. </div>
  2641. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  2642. style="height: 300px; margin-top: 10px; max-width: 100%" />
  2643. </div>
  2644. <div class="a_add_body">
  2645. <div class="a_add_input">
  2646. <el-radio-group v-model="radio[index1]">
  2647. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  2648. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  2649. v-html="item2"></span></el-radio>
  2650. </el-radio-group>
  2651. </div>
  2652. </div>
  2653. </div>
  2654. </div>
  2655. </div>
  2656. <span slot="footer" class="dialog-footer">
  2657. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  2658. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  2659. </span>
  2660. </el-dialog>
  2661. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  2662. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  2663. <div>
  2664. <!-- <div class="a_add_title" style="
  2665. display: flex;
  2666. flex-direction: row;
  2667. align-items: center;
  2668. justify-content: center;
  2669. ">
  2670. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2671. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  2672. </div> -->
  2673. <div class="a_addBox">
  2674. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  2675. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2676. <div class="a_add_head">
  2677. <div style="display: flex">
  2678. {{ index1 + 1 + "、" }}
  2679. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  2680. </div>
  2681. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  2682. style="height: 300px; margin-top: 10px; max-width: 100%" />
  2683. </div>
  2684. <div class="a_add_body">
  2685. <div class="a_add_input">
  2686. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  2687. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2688. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  2689. v-html="item2"></span></el-radio>
  2690. </el-radio-group>
  2691. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  2692. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  2693. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  2694. <span v-html="item2"></span>
  2695. </el-checkbox>
  2696. </el-checkbox-group>
  2697. </div>
  2698. </div>
  2699. </div>
  2700. </div>
  2701. </div>
  2702. <span slot="footer" class="dialog-footer">
  2703. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  2704. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  2705. </span>
  2706. </el-dialog>
  2707. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  2708. :before-close="handleClose" class="dialog_diy textCss">
  2709. <el-form style="font-size: 20px">
  2710. <el-form-item label="文本标题" class="textTitle">
  2711. <div style="font-size: 20px">{{ text.name }}</div>
  2712. </el-form-item>
  2713. <div>富文本内容</div>
  2714. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  2715. </el-form>
  2716. <span slot="footer" class="dialog-footer">
  2717. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  2718. </span>
  2719. </el-dialog>
  2720. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  2721. :class="{ fullStyle: full }">
  2722. <div slot="title" class="header-title">
  2723. <div style="color: #fff">文件预览</div>
  2724. <div style="position: absolute; top: 19px; right: 50px">
  2725. <img src="../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  2726. </div>
  2727. </div>
  2728. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  2729. :class="{ fullStyle: full }"></pdf>
  2730. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  2731. </el-dialog>
  2732. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  2733. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
  2734. </el-dialog>
  2735. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px"
  2736. :before-close="handleClose" class="dialog_diy notice">
  2737. <div>此功能暂未开放!</div>
  2738. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  2739. </el-dialog>
  2740. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  2741. :before-close="handleClose" class="dialog_diy">
  2742. <div>
  2743. <div style="
  2744. display: flex;
  2745. flex-wrap: nowrap;
  2746. flex-direction: column;
  2747. position: relative;
  2748. ">
  2749. <div class="queTop" style="padding: 20px 0 20px 0">
  2750. <div class="question">
  2751. <img src="../assets/icon/question.png" alt />
  2752. </div>
  2753. <div class="queTitle">
  2754. <div style="width: 90px; min-width: 90px">提问:</div>
  2755. <div>{{ answerQ }}</div>
  2756. </div>
  2757. </div>
  2758. <div class="ediBottom">
  2759. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  2760. v-model="questionAnswer"></textarea>
  2761. </div>
  2762. </div>
  2763. </div>
  2764. <div slot="footer">
  2765. <el-button @click="answerDialogVisible = false">取 消</el-button>
  2766. <el-button type="primary" @click="addQuestion">提 交</el-button>
  2767. </div>
  2768. </el-dialog>
  2769. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  2770. :before-close="handleClose" class="dialog_diy">
  2771. <div>
  2772. <Time v-if="timeDialogVisible"></Time>
  2773. </div>
  2774. <div slot="footer">
  2775. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  2776. </div>
  2777. </el-dialog>
  2778. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  2779. class="dialog_diy">
  2780. <div>
  2781. <div class="open_box">
  2782. <div class="switch_box">
  2783. <span>允许学生查看所有作业</span>
  2784. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  2785. </div>
  2786. <div class="switch_box" v-if="courseDetail.userid == userid">
  2787. <span>不允许学生查看所有阶段</span>
  2788. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  2789. </div>
  2790. </div>
  2791. </div>
  2792. <div slot="footer">
  2793. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  2794. </div>
  2795. </el-dialog>
  2796. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px"
  2797. :before-close="handleClose" class="dialog_diy1">
  2798. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  2799. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  2800. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  2801. </div>
  2802. <div slot="footer">
  2803. <el-button style="background: #409efe; color: #fff"
  2804. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  2805. 关 闭</el-button>
  2806. </div>
  2807. </el-dialog>
  2808. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  2809. :before-close="handleClose" class="dialog_diy">
  2810. <div class="commentTop">
  2811. <div class="studentDetail">
  2812. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  2813. <div class="nameAndTime">
  2814. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  2815. <div>{{ commentDetail.time }}</div>
  2816. </div>
  2817. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="
  2818. commentDetail.works &&
  2819. commentDetail.type == 0 &&
  2820. (tType == 1 || tType == 4)
  2821. " @click="showPicturePaint(commentDetail.img ? commentDetail.img : commentDetail.works)">
  2822. 教师批注
  2823. </div>
  2824. </div>
  2825. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  2826. {{ JSON.parse(commentDetail.works)[0].answer }}
  2827. </div>
  2828. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  2829. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  2830. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  2831. :class="{ fullStyle: full }"></pdf>
  2832. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600"
  2833. :class="{ fullStyle: full }"></iframe>
  2834. </div>
  2835. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  2836. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" style="right:105px" />
  2837. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  2838. </div>
  2839. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  2840. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  2841. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  2842. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  2843. </div>
  2844. <div class="worksAnswer" v-if="(commentDetail.works && commentDetail.type == 10)">
  2845. <div class="cont" v-html="commentDetail.works.text"></div>
  2846. </div>
  2847. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  2848. <div class="evalCss">
  2849. <div class="nav">请选择星星进行评分</div>
  2850. <div class="middleBox" v-if="eScore.eStar">
  2851. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  2852. <div class="nameAndrate">
  2853. <div>{{ e.value }}</div>
  2854. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  2855. </div>
  2856. <div v-if="e.detail">{{ e.detail }}</div>
  2857. </div>
  2858. <div class="bz">
  2859. <textarea disabled rows="4" class="pj" style="
  2860. padding: 10px 5px;
  2861. width: 70%;
  2862. background: #f7f6f9;
  2863. font-size: 14px;
  2864. text-indent: 10px;
  2865. color: #000;
  2866. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  2867. </div>
  2868. </div>
  2869. </div>
  2870. </div>
  2871. <div class="comment">
  2872. <div class="commentList">
  2873. <div class="commentImg">
  2874. <img @click="
  2875. isLikes(
  2876. commentDetail.wid,
  2877. userid,
  2878. 1,
  2879. null,
  2880. commentDetail.isLikes
  2881. )
  2882. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  2883. </div>
  2884. <div>{{ commentDetail.likesCount }}</div>
  2885. </div>
  2886. <div class="commentList">
  2887. <div class="commentImg">
  2888. <img src="../assets/icon/comment/comment.png" alt="" />
  2889. </div>
  2890. <div>{{ commentDetail.commentCount }}</div>
  2891. </div>
  2892. </div>
  2893. <div class="drawPBox" v-if="commentDetail.img">
  2894. <span>教师批注</span>
  2895. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  2896. <span class="deleteImg" v-if="tType == 1 || tType == 4" @click.stop="deletePicturePaint(commentDetail.wid)"
  2897. style="font-size: 14px;width: auto !important;color: #b4b4b4;top: unset;bottom: 0;border: none;padding: 0;height: auto !important;margin: 0;">删除</span>
  2898. </div>
  2899. </div>
  2900. <div class="commentBox">
  2901. <div class="pl">评论:</div>
  2902. <div style="max-height: 200px; overflow: auto">
  2903. <div v-if="commentDetail.commentJson" style="padding: 10px 0 0 0">
  2904. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  2905. :key="coIndex">
  2906. <div class="tx" style="min-width: 50px">
  2907. <img src="../assets/avatar.png" alt="" />
  2908. </div>
  2909. <div class="plPerson">
  2910. <div class="plName">
  2911. <div>{{ co.commentPeople }}</div>
  2912. <div style="margin-left: 5px">
  2913. {{ co.commentTime }}
  2914. </div>
  2915. </div>
  2916. <div class="plContent">{{ co.commentText }}</div>
  2917. </div>
  2918. </div>
  2919. </div>
  2920. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  2921. </div>
  2922. </div>
  2923. <div style="margin-top: 10px">
  2924. <div class="displayBox">
  2925. <div style="
  2926. color: #556db4;
  2927. font-size: 14px;
  2928. font-weight: bold;
  2929. padding-bottom: 10px;
  2930. ">
  2931. 评价
  2932. </div>
  2933. <div class="easy_comment">
  2934. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  2935. {{ p }}
  2936. </div>
  2937. </div>
  2938. </div>
  2939. <div>
  2940. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  2941. placeholder="请输入对该学生的评价"></textarea>
  2942. </div>
  2943. </div>
  2944. <div slot="footer">
  2945. <el-button @click="
  2946. (commentDialogVisible = false),
  2947. (commentIndexJson = {}),
  2948. videoDetail.sources && videoDetail.sources[0]
  2949. ? (videoDetail.sources[0].src = '')
  2950. : ''
  2951. ">取 消</el-button>
  2952. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  2953. </div>
  2954. </el-dialog>
  2955. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  2956. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy">
  2957. <div slot="title" class="header-title">
  2958. <div style="color: #fff">查看文档</div>
  2959. <div @click="fullDialogVisible = false" style="
  2960. cursor: pointer;
  2961. position: absolute;
  2962. top: 20px;
  2963. right: 20px;
  2964. color: #fff;
  2965. ">
  2966. 退出全屏
  2967. </div>
  2968. </div>
  2969. <div style="height: 100%">
  2970. <iframe v-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  2971. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  2972. <div class="wheel" v-if="fulltype == 1" style="
  2973. box-shadow: 0 0 6px 1px #f2f2f2;
  2974. width: 100%;
  2975. background: #f1f1f1;
  2976. ">
  2977. <div class="title" style="width: 100%; box-sizing: border-box">
  2978. 查看文档
  2979. </div>
  2980. <el-form class="textBox" style="height: 90%">
  2981. <el-form-item class="textTitle">
  2982. <div style="font-size: 22px; max-height: 100px; overflow: auto">
  2983. {{ fullUrl.name }}
  2984. </div>
  2985. </el-form-item>
  2986. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  2987. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  2988. </el-form>
  2989. </div>
  2990. </div>
  2991. <!-- <div slot="footer">
  2992. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  2993. </div> -->
  2994. </el-dialog>
  2995. <el-dialog title="学生评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  2996. :before-close="handleClose" class="dialog_diy">
  2997. <div class="evalCss">
  2998. <div class="nav">请选择星星进行评分</div>
  2999. <div class="middleBox" v-if="eScore.eStar">
  3000. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  3001. <div class="nameAndrate">
  3002. <div>{{ e.value }}</div>
  3003. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  3004. </div>
  3005. <div v-if="e.detail">{{ e.detail }}</div>
  3006. </div>
  3007. <div class="easy_comment" v-if="isStar == false">
  3008. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  3009. {{ p }}
  3010. </div>
  3011. </div>
  3012. <div class="bz">
  3013. <textarea :disabled="isStar" rows="4" class="pj" style="
  3014. padding: 10px 5px;
  3015. width: 70%;
  3016. background: #f7f6f9;
  3017. font-size: 14px;
  3018. text-indent: 10px;
  3019. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  3020. </div>
  3021. </div>
  3022. </div>
  3023. <div slot="footer">
  3024. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  3025. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  3026. </div>
  3027. </el-dialog>
  3028. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  3029. :before-close="handleClose" class="dialog_diy dialog_diy3">
  3030. <div v-if="selectJson">
  3031. <div class="select_box2">
  3032. <div class="select_box2_title">
  3033. <div>选择填空</div>
  3034. <div>请选择对应的答案进行答题!</div>
  3035. </div>
  3036. <div class="select_box2_box">
  3037. <div class="select_box2_img">
  3038. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  3039. </div>
  3040. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  3041. <div style="padding-top: 15px">
  3042. <div class="select_answer_title" v-if="isSelect">
  3043. {{ selectAnswer.stu }}
  3044. </div>
  3045. <div class="select_answer_title" v-else>
  3046. 根据题目选择对应答案
  3047. </div>
  3048. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3049. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  3050. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  3051. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3052. </el-option>
  3053. </el-select>
  3054. </div>
  3055. </div>
  3056. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  3057. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  3058. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  3059. 回答正确
  3060. </div>
  3061. <div v-else>回答错误</div>
  3062. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  3063. 正确答案:
  3064. </div>
  3065. <div :class="
  3066. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  3067. ">
  3068. {{ selectJson.select[a] }}
  3069. </div>
  3070. </div>
  3071. </div>
  3072. </div>
  3073. <div class="upAnswerCss">
  3074. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  3075. </div>
  3076. </div>
  3077. </div>
  3078. </div>
  3079. </el-dialog>
  3080. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  3081. :before-close="handleClose" class="dialog_diy">
  3082. <div>
  3083. <div class="studentDetail">
  3084. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  3085. <div class="nameAndTime">
  3086. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  3087. <div>{{ commentDetail.time }}</div>
  3088. </div>
  3089. </div>
  3090. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  3091. {{ JSON.parse(commentDetail.works)[0].answer }}
  3092. </div>
  3093. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  3094. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  3095. :class="{ fullStyle: full }"></pdf>
  3096. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600"
  3097. :class="{ fullStyle: full }"></iframe>
  3098. </div>
  3099. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  3100. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  3101. </div>
  3102. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  3103. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  3104. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  3105. </div>
  3106. <div class="scoreBox">
  3107. <span class="t">请输入分数</span>
  3108. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  3109. :max="100"></el-input-number>
  3110. </div>
  3111. <div class="scoreDetailBox">
  3112. <span class="t">评分评论</span>
  3113. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  3114. v-model="scoreDetail" placeholder="请输入对学生的评价">
  3115. </el-input>
  3116. </div>
  3117. </div>
  3118. <span slot="footer" class="dialog-footer">
  3119. <el-button @click="
  3120. (dialogVisibleScore = false),
  3121. (commentIndexJson = {}),
  3122. videoDetail.sources && videoDetail.sources[0]
  3123. ? (videoDetail.sources[0].src = '')
  3124. : ''
  3125. ">取 消</el-button>
  3126. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  3127. </el-button>
  3128. </span>
  3129. </el-dialog>
  3130. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3131. :before-close="handleClose" class="dialog_diy dialog_diy3">
  3132. <div>
  3133. <div class="sentenBox">
  3134. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  3135. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  3136. <div class="cardList" v-if="st.chooseSenList">
  3137. <div class="cardBox">
  3138. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  3139. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  3140. <div :class="{
  3141. isCard: r,
  3142. isChooseCard: r == '' || r == undefined,
  3143. }">
  3144. <div>{{ r }}</div>
  3145. </div>
  3146. </el-tooltip>
  3147. <div :class="{
  3148. isCard: r,
  3149. isChooseCard: r == '' || r == undefined,
  3150. }" v-else>
  3151. <div>{{ r }}</div>
  3152. </div>
  3153. </div>
  3154. </div>
  3155. </div>
  3156. <div class="cardList" v-if="st.addChangeSen">
  3157. <div class="cardBox">
  3158. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  3159. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  3160. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  3161. <div>{{ s }}</div>
  3162. </div>
  3163. </el-tooltip>
  3164. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  3165. <div>{{ s }}</div>
  3166. </div>
  3167. </div>
  3168. </div>
  3169. </div>
  3170. </div>
  3171. </div>
  3172. </div>
  3173. <span slot="footer" class="dialog-footer">
  3174. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  3175. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  3176. </span>
  3177. </el-dialog>
  3178. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  3179. :before-close="handleClose" class="dialog_diy dialog_diy3">
  3180. <div>
  3181. <div class="sentenBox">
  3182. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  3183. {{ sentenceList1.stuName }}的作业
  3184. </div>
  3185. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  3186. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  3187. 第{{ stIndex + 1 }}题
  3188. </div>
  3189. <div class="isWrong">
  3190. <div class="cardList1" v-if="st.chooseSenList">
  3191. <div class="cardBox">
  3192. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  3193. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3194. <div class="isCard">
  3195. <div>{{ s }}</div>
  3196. </div>
  3197. </el-tooltip>
  3198. </div>
  3199. </div>
  3200. <div class="cardAnswerBox">
  3201. 组成句子:{{ st.chooseSenList.join(" ") }}
  3202. </div>
  3203. </div>
  3204. <div v-if="tType == 2" class="isTj">
  3205. <div class="isTjImg">
  3206. <img src="../assets/icon/conSentences/right.png" alt="" />
  3207. </div>
  3208. <div>已提交</div>
  3209. </div>
  3210. <div class="answerRight isTj" v-if="
  3211. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  3212. (tType == 1 || tType == 4)
  3213. ">
  3214. <div class="isTjImg">
  3215. <img src="../assets/icon/conSentences/right.png" alt="" />
  3216. </div>
  3217. <div>回答正确</div>
  3218. </div>
  3219. <div class="answerRight isTj" v-if="
  3220. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  3221. (tType == 1 || tType == 4)
  3222. ">
  3223. <div class="isTjImg">
  3224. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  3225. </div>
  3226. <div>回答错误</div>
  3227. </div>
  3228. </div>
  3229. <div v-if="
  3230. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  3231. (tType == 1 || tType == 4)
  3232. ">
  3233. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  3234. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  3235. <div class="cardBox">
  3236. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  3237. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3238. <div class="isCard1">
  3239. <div>{{ r }}</div>
  3240. </div>
  3241. </el-tooltip>
  3242. </div>
  3243. </div>
  3244. <div class="cardAnswerBox">
  3245. 组成句子:{{ st.rightAnswer.join(" ") }}
  3246. </div>
  3247. </div>
  3248. </div>
  3249. </div>
  3250. </div>
  3251. </div>
  3252. <span slot="footer" class="dialog-footer">
  3253. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  3254. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  3255. </span>
  3256. </el-dialog>
  3257. <el-dialog title="教师提交作业" :visible.sync="dialogVisibleWorks" :append-to-body="true" width="500px"
  3258. :before-close="handleClose" class="dialog_change">
  3259. <div class="marginT">
  3260. <div class="w_name">学生姓名:<span>{{ sStudent.student }}</span></div>
  3261. <div>上传文件</div>
  3262. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  3263. <div class="up_photo">
  3264. <img src="../assets/uploadImg2.png" alt />
  3265. </div>
  3266. <input type="file"
  3267. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  3268. capture="camera" style="display: none" @change="beforeUpload1($event, 1)" />
  3269. </div>
  3270. <div class="chapter_add" style="
  3271. display: flex;
  3272. width: 100%;
  3273. flex-direction: row;
  3274. flex-wrap: wrap;
  3275. justify-content: flex-start;
  3276. padding: 15px 0;
  3277. " v-if="studyJuri[0].cover.length > 0">
  3278. <div class="upCover">
  3279. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  3280. <img :src="word" alt v-else-if="fileType == 1" />
  3281. <img :src="video" alt v-else />
  3282. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  3283. <div class="deleteWord" @click="clean(1)">
  3284. <img src="../assets/icon/deleteWorks.png" alt />
  3285. </div>
  3286. </div>
  3287. </div>
  3288. </div>
  3289. <div class="upload_send" @click="addCourseWorksTeacher(taskCount)" v-if="!proVisible">提交</div>
  3290. </el-dialog>
  3291. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  3292. <el-dialog title="表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3293. :before-close="handleClose" class="dialog_diy">
  3294. <el-form>
  3295. <div>表格内容</div>
  3296. <Table v-model="tableJson.text" @change="change"></Table>
  3297. </el-form>
  3298. <span slot="footer" class="dialog-footer">
  3299. <el-button @click="(dialogVisibleTable = false)">取 消</el-button>
  3300. <el-button type="primary" @click="addTableWorks">确定</el-button>
  3301. </span>
  3302. </el-dialog>
  3303. <el-dialog title="表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  3304. :before-close="handleClose" class="dialog_diy">
  3305. <el-form>
  3306. <div class="cont" v-html="tableJson.text"></div>
  3307. </el-form>
  3308. <span slot="footer" class="dialog-footer">
  3309. <el-button @click="(dialogVisibleTable2 = false)">关 闭</el-button>
  3310. </span>
  3311. </el-dialog>
  3312. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="95%"
  3313. :before-close="handleClose" class="dialog_diy">
  3314. <div>
  3315. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  3316. <div style="color: rgb(171 171 171);margin: 0 10px 0 0;">提示:需要锁定位置,才能点击头像修改座位。</div>
  3317. <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7;"
  3318. @click="lockChair">锁定位置</div>
  3319. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7;" @click="lockChair">解锁位置</div>
  3320. <div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7;">分组设置</div>
  3321. </div>
  3322. <div>
  3323. <div class="g_d_box" v-if="groupJson.group && groupStudent[toolindex]">
  3324. <div class="g_d_group" v-for="(g, gindex) in groupJson.group" :key="gindex">
  3325. <div class="g_d_group_chair">
  3326. <div v-if="groupJson.number > 1"><span
  3327. :class="{ isChair: groupStudent[toolindex][gindex][0], updateChair: courseDetail.userid == userid && groupStudent[toolindex][gindex][0] && groupJson.islock == 2 }"><span
  3328. class="updateChairBtn"
  3329. @click="updateGroupChair(groupStudent[toolindex][gindex][0])">修改</span></span><span>{{
  3330. groupStudent[toolindex][gindex][0]
  3331. ? groupStudent[toolindex][gindex][0].name : '空位置'
  3332. }}</span></div>
  3333. <div v-if="groupJson.number > 4"><span
  3334. :class="{ isChair: groupStudent[toolindex][gindex][4], updateChair: courseDetail.userid == userid && groupStudent[toolindex][gindex][4] && groupJson.islock == 2 }"><span
  3335. class="updateChairBtn"
  3336. @click="updateGroupChair(groupStudent[toolindex][gindex][4])">修改</span></span><span>{{
  3337. groupStudent[toolindex][gindex][4]
  3338. ? groupStudent[toolindex][gindex][4].name : '空位置'
  3339. }}</span></div>
  3340. <div v-if="groupJson.number > 8"><span
  3341. :class="{ isChair: groupStudent[toolindex][gindex][8], updateChair: courseDetail.userid == userid && groupStudent[toolindex][gindex][8] && groupJson.islock == 2 }"><span
  3342. class="updateChairBtn"
  3343. @click="updateGroupChair(groupStudent[toolindex][gindex][8])">修改</span></span><span>{{
  3344. groupStudent[toolindex][gindex][8]
  3345. ? groupStudent[toolindex][gindex][8].name : '空位置'
  3346. }}</span></div>
  3347. </div>
  3348. <div class="g_d_group_tableBox">
  3349. <div class="g_d_group_chair2">
  3350. <div v-if="groupJson.number > 2"><span
  3351. :class="{ isChair: groupStudent[toolindex][gindex][2], updateChair: courseDetail.userid == userid && groupStudent[toolindex][gindex][2] && groupJson.islock == 2 }"><span
  3352. class="updateChairBtn"
  3353. @click="updateGroupChair(groupStudent[toolindex][gindex][2])">修改</span></span><span>{{
  3354. groupStudent[toolindex][gindex][2]
  3355. ? groupStudent[toolindex][gindex][2].name : '空位置'
  3356. }}</span></div>
  3357. <div v-if="groupJson.number > 6"><span
  3358. :class="{ isChair: groupStudent[toolindex][gindex][6], updateChair: courseDetail.userid == userid && groupStudent[toolindex][gindex][6] && groupJson.islock == 2 }"><span
  3359. class="updateChairBtn"
  3360. @click="updateGroupChair(groupStudent[toolindex][gindex][6])">修改</span></span><span>{{
  3361. groupStudent[toolindex][gindex][6]
  3362. ? groupStudent[toolindex][gindex][6].name : '空位置'
  3363. }}</span></div>
  3364. </div>
  3365. <div class="g_d_group_table">
  3366. <div>
  3367. {{ g.name }}
  3368. </div>
  3369. <div>
  3370. <div v-if="courseDetail.userid == userid && groupJson.islock == 2"
  3371. @click="deleteGroupChair(gindex)">移除组员</div>
  3372. <div @click="selectGroup(gindex)"
  3373. v-else-if="courseDetail.userid != userid && groupStudentUid[toolindex] && groupStudentUid[toolindex][gindex].indexOf(userid) == -1">
  3374. 加入分组</div>
  3375. <div
  3376. @click="exitGroup(groupStudent[toolindex][gindex][groupStudentUid[toolindex][gindex].indexOf(userid)].id)"
  3377. v-else-if="courseDetail.userid != userid && groupStudentUid[toolindex] && groupStudentUid[toolindex][gindex].indexOf(userid) != -1">
  3378. 退出分组</div>
  3379. </div>
  3380. </div>
  3381. <div class="g_d_group_chair2">
  3382. <div v-if="groupJson.number > 3"><span
  3383. :class="{ isChair: groupStudent[toolindex][gindex][3], updateChair: courseDetail.userid == userid && groupStudent[toolindex][gindex][3] && groupJson.islock == 2 }"><span
  3384. class="updateChairBtn"
  3385. @click="updateGroupChair(groupStudent[toolindex][gindex][3])">修改</span></span><span>{{
  3386. groupStudent[toolindex][gindex][3]
  3387. ? groupStudent[toolindex][gindex][3].name : '空位置'
  3388. }}</span></div>
  3389. <div v-if="groupJson.number > 7"><span
  3390. :class="{ isChair: groupStudent[toolindex][gindex][7], updateChair: courseDetail.userid == userid && groupStudent[toolindex][gindex][7] && groupJson.islock == 2 }"><span
  3391. class="updateChairBtn"
  3392. @click="updateGroupChair(groupStudent[toolindex][gindex][7])">修改</span></span><span>{{
  3393. groupStudent[toolindex][gindex][7]
  3394. ? groupStudent[toolindex][gindex][7].name : '空位置'
  3395. }}</span></div>
  3396. </div>
  3397. </div>
  3398. <div class="g_d_group_chair">
  3399. <div v-if="groupJson.number > 1"><span
  3400. :class="{ isChair: groupStudent[toolindex][gindex][1], updateChair: courseDetail.userid == userid && groupStudent[toolindex][gindex][1] && groupJson.islock == 2 }"><span
  3401. class="updateChairBtn"
  3402. @click="updateGroupChair(groupStudent[toolindex][gindex][1])">修改</span></span><span>{{
  3403. groupStudent[toolindex][gindex][1]
  3404. ? groupStudent[toolindex][gindex][1].name : '空位置'
  3405. }}</span></div>
  3406. <div v-if="groupJson.number > 5"><span
  3407. :class="{ isChair: groupStudent[toolindex][gindex][5], updateChair: courseDetail.userid == userid && groupStudent[toolindex][gindex][5] && groupJson.islock == 2 }"><span
  3408. class="updateChairBtn"
  3409. @click="updateGroupChair(groupStudent[toolindex][gindex][5])">修改</span></span><span>{{
  3410. groupStudent[toolindex][gindex][5]
  3411. ? groupStudent[toolindex][gindex][5].name : '空位置'
  3412. }}</span></div>
  3413. <div v-if="groupJson.number > 9"><span
  3414. :class="{ isChair: groupStudent[toolindex][gindex][9], updateChair: courseDetail.userid == userid && groupStudent[toolindex][gindex][9] && groupJson.islock == 2 }"><span
  3415. class="updateChairBtn"
  3416. @click="updateGroupChair(groupStudent[toolindex][gindex][9])">修改</span></span><span>{{
  3417. groupStudent[toolindex][gindex][9]
  3418. ? groupStudent[toolindex][gindex][9].name : '空位置'
  3419. }}</span></div>
  3420. </div>
  3421. </div>
  3422. </div>
  3423. </div>
  3424. </div>
  3425. <span slot="footer" class="dialog-footer">
  3426. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  3427. </span>
  3428. </el-dialog>
  3429. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
  3430. :before-close="handleClose" class="dialog_diy">
  3431. <div class="groupBox">
  3432. <div v-if="groupJson2.group" class="groupContent">
  3433. <div class="groupTitle">请设置小组数量</div>
  3434. <div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
  3435. <span class="groupn">组{{ index + 1 }}名称:</span>
  3436. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px;"></el-input>
  3437. <div class="groupBtn">
  3438. <el-button type="primary" size="small" @click="addGroup(index)">
  3439. 添加</el-button>
  3440. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3441. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  3442. </div>
  3443. </div>
  3444. </div>
  3445. <div class="groupContent">
  3446. <div class="groupTitle">请设置每组人数数量</div>
  3447. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3448. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3449. <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
  3450. placeholder="2-10人以内"></el-input-number>
  3451. </div>
  3452. </div>
  3453. <span slot="footer" class="dialog-footer">
  3454. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  3455. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  3456. </span>
  3457. </el-dialog>
  3458. <el-dialog title="作业提交" :visible.sync="dialogVisibleGroupWork" :append-to-body="true" width="500px"
  3459. :before-close="handleClose" class="dialog_change">
  3460. <div class="marginT">
  3461. <div>上传文件</div>
  3462. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  3463. <div class="up_photo">
  3464. <img src="../assets/icon/uploadImg.png" alt />
  3465. </div>
  3466. <input type="file"
  3467. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  3468. capture="camera" style="display: none" @change="beforeUpload1($event, 1)" />
  3469. </div>
  3470. <div class="chapter_add" style="
  3471. display: flex;
  3472. width: 100%;
  3473. flex-direction: row;
  3474. flex-wrap: wrap;
  3475. justify-content: flex-start;
  3476. padding: 15px 0;
  3477. " v-if="studyJuri[0].cover.length > 0">
  3478. <div class="upCover">
  3479. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  3480. <img :src="word" alt v-else-if="fileType == 1" />
  3481. <img :src="video" alt v-else />
  3482. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  3483. <div class="deleteWord" @click="clean(1)">
  3484. <img src="../assets/icon/deleteWorks.png" alt />
  3485. </div>
  3486. </div>
  3487. </div>
  3488. </div>
  3489. <div class="upload_send" @click="addCourseWorks2(taskCount)" v-if="!proVisible">提交</div>
  3490. </el-dialog>
  3491. <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
  3492. :before-close="handleClose" class="dialog_diy">
  3493. <div>
  3494. <h2>
  3495. {{ this.updateGroupUser.name }}
  3496. </h2>
  3497. <div style="color: rgb(171 171 171);margin-top: 10px;">请选择要进入的分组</div>
  3498. <el-radio-group v-model="checkChair">
  3499. <el-radio style="display:block;margin-top:20px;" v-for="(item, index) in updateGroupArray" :label="item.label"
  3500. :key="index">{{ item.name
  3501. }}</el-radio>
  3502. </el-radio-group>
  3503. </div>
  3504. <span slot="footer" class="dialog-footer">
  3505. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  3506. <el-button type="primary" @click="updateChair">确定</el-button>
  3507. </span>
  3508. </el-dialog>
  3509. <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
  3510. :before-close="handleClose" class="dialog_diy">
  3511. <div>
  3512. <h2>
  3513. {{ this.deleteGroupArray.name }}
  3514. </h2>
  3515. <div style="color: rgb(171 171 171);margin-top: 10px;">请选择要删除的组员</div>
  3516. <el-checkbox-group v-model="checkDeleteGroup">
  3517. <el-checkbox style="display:block;margin-top:20px;" v-for="(item, index) in deleteGroupUser"
  3518. :label="item.userid" :key="index">{{ item.name }}</el-checkbox>
  3519. </el-checkbox-group>
  3520. </div>
  3521. <span slot="footer" class="dialog-footer">
  3522. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  3523. <el-button type="primary" @click="deleteChair">确定</el-button>
  3524. </span>
  3525. </el-dialog>
  3526. </div>
  3527. </template>
  3528. <script>
  3529. import "../common/aws-sdk-2.235.1.min.js";
  3530. // import pdf from "./components/pdf3";
  3531. import pdf from "./components/vpdf";
  3532. import AskStatic from "./components/askStatic";
  3533. import AskStatic2 from "./components/askStatic2";
  3534. import AnswerData2 from "./components/answerData2";
  3535. import AnswerData from "./components/answerData";
  3536. import EditorBar from "./tools/wangEnduit.vue";
  3537. import Table from "./tools/table.vue";
  3538. import Time from "./tools/time.vue";
  3539. import Mind from "./tools/jsmind.vue";
  3540. import Sunburst from "./tools/sunburst";
  3541. import SeeBoard from "./tools/seeBoard";
  3542. import * as imageConversion from "image-conversion";
  3543. import Audio from "./components/audio.vue";
  3544. import ImgDraw from "./tools/imgDraw/imgDraw";
  3545. import { Empty } from "element-ui";
  3546. import RecordRTC from 'recordrtc';
  3547. export default {
  3548. components: {
  3549. EditorBar,
  3550. Time,
  3551. pdf,
  3552. AskStatic,
  3553. AskStatic2,
  3554. Mind,
  3555. Sunburst,
  3556. SeeBoard,
  3557. AnswerData2,
  3558. AnswerData,
  3559. Audio,
  3560. ImgDraw,
  3561. Table
  3562. },
  3563. data() {
  3564. return {
  3565. bg: null,
  3566. drawShow: false,
  3567. dialogVisible: false,
  3568. commentDialogVisible: false,
  3569. videoVisible: false,
  3570. isStar: false,
  3571. studentEvalDialogVisible: false,
  3572. dialogVisibleSelect: false,
  3573. dialogVisibleScore: false,
  3574. dialogVisibleSentence: false,
  3575. dialogVisibleSentence1: false,
  3576. dialogVisibleWorks: false,
  3577. dialogVisibleTable: false,
  3578. dialogVisibleTable2: false,
  3579. dialogVisibleGroupWork: false,
  3580. dialogVisibleUpdateGroup: false,
  3581. dialogVisibleDeleteGroup: false,
  3582. sStudent: {},
  3583. bzText: "",
  3584. commentDetail: [],
  3585. selectAnswer: [],
  3586. videoDetail: {},
  3587. selectJson: {},
  3588. eScore: { eBzText: "", eStar: [] },
  3589. id: this.$route.query.courseId,
  3590. userid: this.$route.query.userid,
  3591. classId: this.$route.query.cid,
  3592. // courseTypeLine: this.$route.query.type,
  3593. oid: this.$route.query.oid,
  3594. org: this.$route.query.org,
  3595. tType: this.$route.query.tType,
  3596. courseType: this.$route.query.type,
  3597. screenType: this.$route.query.screenType,
  3598. pptImgUrl: "",
  3599. pptImgUrl1: "",
  3600. commentText: "",
  3601. full: false,
  3602. sIsOpen: false,
  3603. IsLookOpen: false,
  3604. pzDialog: false,
  3605. type: 1,
  3606. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3607. sentenceList1: [],
  3608. tableJson: [],
  3609. vedio: [],
  3610. text: [],
  3611. textList: [],
  3612. line: [],
  3613. lineList: [],
  3614. chapTools: [],
  3615. chapToolList: [],
  3616. file: [],
  3617. vedioTime: [],
  3618. upToolImg: "",
  3619. rateList: {
  3620. ca: 0,
  3621. },
  3622. rateParams: [],
  3623. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  3624. studyJuri: [
  3625. {
  3626. content: "",
  3627. cover: [],
  3628. upVedio: [],
  3629. upFile: [],
  3630. },
  3631. ],
  3632. mr: require("../assets/vedioPic.png"),
  3633. word: require("../assets/icon/isWord.png"),
  3634. video: require("../assets/icon/isVideo.png"),
  3635. noLikes: require("../assets/icon/comment/noLikes.png"),
  3636. likes: require("../assets/icon/comment/likes.png"),
  3637. scoreImg: require("../assets/score.png"),
  3638. courseDetail: {},
  3639. isSelect: false,
  3640. chapInfo: [],
  3641. chapInfoList: [],
  3642. taskCount: 0,
  3643. imgList: [],
  3644. noImgList: [],
  3645. pzList: [],
  3646. PlTextList: [
  3647. "Excellent!",
  3648. "nice!",
  3649. "很有创意!",
  3650. "还不错哦~",
  3651. "继续努力哦~",
  3652. ],
  3653. isClickNav: "",
  3654. navId: "",
  3655. playerOptions: {
  3656. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  3657. autoplay: false, //如果true,浏览器准备好时开始回放。
  3658. muted: false, // 默认情况下将会消除任何音频。
  3659. loop: false, // 导致视频一结束就重新开始。
  3660. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  3661. language: "zh-CN",
  3662. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  3663. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  3664. sources: [
  3665. {
  3666. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  3667. src: "", //url地址require("../../assets/media/aaa.mp4")
  3668. },
  3669. ],
  3670. // poster: require("../../assets/tu31.png"), //你的封面地址
  3671. // poster: dataRes.imgUrl, //你的封面地址
  3672. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  3673. controlBar: {
  3674. timeDivider: true, //当前时间和持续时间的分隔符
  3675. durationDisplay: true, //显示持续时间
  3676. remainingTimeDisplay: false, //是否显示剩余时间功能
  3677. fullscreenToggle: true, //全屏按钮
  3678. },
  3679. },
  3680. playerOptions1: {
  3681. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  3682. autoplay: false, //如果true,浏览器准备好时开始回放。
  3683. muted: false, // 默认情况下将会消除任何音频。
  3684. loop: false, // 导致视频一结束就重新开始。
  3685. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  3686. language: "zh-CN",
  3687. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  3688. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  3689. sources: [
  3690. {
  3691. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  3692. src: "", //url地址require("../../assets/media/aaa.mp4")
  3693. },
  3694. ],
  3695. // poster: require("../../assets/tu31.png"), //你的封面地址
  3696. // poster: dataRes.imgUrl, //你的封面地址
  3697. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  3698. controlBar: {
  3699. timeDivider: true, //当前时间和持续时间的分隔符
  3700. durationDisplay: true, //显示持续时间
  3701. remainingTimeDisplay: false, //是否显示剩余时间功能
  3702. fullscreenToggle: true, //全屏按钮
  3703. },
  3704. },
  3705. playerO: {},
  3706. noneBtnImg: false,
  3707. proVisible: false,
  3708. progress: 0,
  3709. questionAnswer: "",
  3710. answerQ: "", //问答标题
  3711. rateJson: [],
  3712. wbCount: 0,
  3713. wordCount: 0,
  3714. mindCount: 0,
  3715. askCount: 0,
  3716. noteCount: 0,
  3717. mindNetWorkCount: 0,
  3718. libraryCount: 0,
  3719. workCount: 0,
  3720. timeCount: 0,
  3721. answerCount: 0,
  3722. trainCount: 0,
  3723. evalCount: 0,
  3724. dialogImageUrl: "",
  3725. pictureDialog: false,
  3726. toolTypeList: [],
  3727. dialogVisible1: false,
  3728. dialogVisible2: false,
  3729. dialogVisible3: false,
  3730. dialogVisible6: false,
  3731. dialogVisible4: false,
  3732. isNoHomeWork: false,
  3733. dialogVisible5: false,
  3734. dialogVisibleChoice: false,
  3735. answerDialogVisible: false,
  3736. juriVisible: false,
  3737. timeDialogVisible: false,
  3738. radio: [],
  3739. isAsk: false,
  3740. askJson: {
  3741. askCount: 1,
  3742. askTitle: "",
  3743. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3744. },
  3745. testJson: {},
  3746. checkJson: [],
  3747. askList: [],
  3748. answerList: [],
  3749. navList: [],
  3750. addPzDialog: false,
  3751. pzConText: "",
  3752. worksStudent: [],
  3753. workStudent: [],
  3754. groupStudent: [],
  3755. groupStudentUid: [],
  3756. noWorksS: [],
  3757. isWorksS: [],
  3758. noWorksStudent: [],
  3759. toolindex: 0,
  3760. groupIndex: 0,
  3761. workTypeA: false,
  3762. workTypeB: false,
  3763. workTypeC: false,
  3764. isAnswer: false,
  3765. timer: null,
  3766. showType: 0,
  3767. fileType: 0,
  3768. showPDF: false,
  3769. noteName: "",
  3770. evaJuri: [],
  3771. evalua: "",
  3772. eTitle: "",
  3773. eName: "",
  3774. eJson: {},
  3775. fid: "", //一级
  3776. sid: "", //二级
  3777. tid: "", //二级
  3778. typeMode: 1,
  3779. eJSONNum: 0,
  3780. Etype: 1,
  3781. data: {
  3782. meta: {
  3783. name: "example",
  3784. author: "dd@163.com",
  3785. version: "0.2",
  3786. },
  3787. format: "node_array",
  3788. data: [{ id: "root", isroot: true, topic: "" }],
  3789. },
  3790. fullDialogVisible: false,
  3791. fulltype: "",
  3792. fullUrl: "",
  3793. commentIndexJson: {},
  3794. Stbodywidth: 0,
  3795. pzType: 1,
  3796. wScore: 0,
  3797. scoreDetail: "",
  3798. videoStart: false,
  3799. recorder: null,
  3800. groupJson: {},
  3801. groupJson2: {},
  3802. dialogVisibleGroup: false,
  3803. dialogVisibleGroup2: false,
  3804. updateGroupArray: [],
  3805. updateGroupUser: {},
  3806. deleteGroupUser: [],
  3807. deleteGroupArray: {},
  3808. checkChair: "",
  3809. checkDeleteGroup: [],
  3810. };
  3811. },
  3812. methods: {
  3813. jump() {
  3814. window.parent.postMessage({ tools: "43" }, "*");
  3815. },
  3816. previewImg(url) {
  3817. this.$hevueImgPreview(url);
  3818. },
  3819. change(val) {
  3820. console.log(val);
  3821. },
  3822. goTo(path) {
  3823. this.$router.push(path);
  3824. },
  3825. handlePictureCardPreview(url) {
  3826. this.dialogImageUrl = url;
  3827. this.pictureDialog = true;
  3828. },
  3829. clean(type) {
  3830. if (type == 1) {
  3831. this.studyJuri[0].cover.splice(0, 1);
  3832. } else if (type == 2) {
  3833. this.studyJuri[0].upVedio.splice(0, 1);
  3834. } else {
  3835. this.studyJuri[0].upFile.splice(0, 1);
  3836. }
  3837. },
  3838. handleClose(done) {
  3839. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  3840. this.videoDetail.sources[0].src = "";
  3841. }
  3842. this.commentIndexJson = {};
  3843. done();
  3844. },
  3845. fullTools() {
  3846. this.full = !this.full;
  3847. },
  3848. imgChange(file, fileList, type) {
  3849. if (type == 1) {
  3850. var _tmp = this.studyJuri[0].cover;
  3851. } else if (type == 2) {
  3852. var _tmp = this.studyJuri[0].upVedio;
  3853. } else {
  3854. var _tmp = this.studyJuri[0].upFile;
  3855. }
  3856. this.noneBtnImg = _tmp.length >= 1;
  3857. },
  3858. addImg(e) {
  3859. var el = e.currentTarget;
  3860. // this.$message.success('触发上传')
  3861. el.getElementsByTagName("input")[0].click();
  3862. },
  3863. addSelectAnswer() {
  3864. let params = [
  3865. {
  3866. uid: this.userid,
  3867. cid: this.id,
  3868. stage: this.courseType,
  3869. task: this.taskCount,
  3870. tool: this.toolindex,
  3871. content: this.selectAnswer.answer,
  3872. type: 7,
  3873. },
  3874. ];
  3875. this.ajax
  3876. .post(this.$store.state.api + "addCourseWorks", params)
  3877. .then((res) => {
  3878. this.$message({
  3879. message: "提交成功",
  3880. type: "success",
  3881. });
  3882. this.dialogVisibleSelect = false;
  3883. // this.selectAnswer = {};
  3884. this.selectSWorks();
  3885. this.selectStudent();
  3886. })
  3887. .catch((err) => {
  3888. this.$message.error("提交失败");
  3889. console.error(err);
  3890. });
  3891. },
  3892. addSenWorks() {
  3893. for (var i = 0; i < this.sentenceList.length; i++) {
  3894. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  3895. if (
  3896. this.sentenceList[i].chooseSenList[j] == undefined ||
  3897. this.sentenceList[i].chooseSenList[j] == ""
  3898. ) {
  3899. this.$message.error("请将答案填写完整!");
  3900. return;
  3901. }
  3902. }
  3903. }
  3904. let params = [
  3905. {
  3906. uid: this.userid,
  3907. cid: this.id,
  3908. stage: this.courseType,
  3909. task: this.taskCount,
  3910. tool: this.toolindex,
  3911. content: JSON.stringify(this.sentenceList),
  3912. type: 9,
  3913. },
  3914. ];
  3915. this.ajax
  3916. .post(this.$store.state.api + "addCourseWorks", params)
  3917. .then((res) => {
  3918. this.$message({
  3919. message: "提交成功",
  3920. type: "success",
  3921. });
  3922. this.dialogVisibleSentence = false;
  3923. // this.selectAnswer = {};
  3924. this.selectSWorks();
  3925. this.selectStudent();
  3926. })
  3927. .catch((err) => {
  3928. this.$message.error("提交失败");
  3929. console.error(err);
  3930. });
  3931. },
  3932. addTableWorks() {
  3933. let params = [
  3934. {
  3935. uid: this.userid,
  3936. cid: this.id,
  3937. stage: this.courseType,
  3938. task: this.taskCount,
  3939. tool: this.toolindex,
  3940. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  3941. type: 10,
  3942. },
  3943. ];
  3944. this.ajax
  3945. .post(this.$store.state.api + "addCourseWorks", params)
  3946. .then((res) => {
  3947. this.$message({
  3948. message: "提交成功",
  3949. type: "success",
  3950. });
  3951. this.dialogVisibleTable = false;
  3952. // this.selectAnswer = {};
  3953. this.selectSWorks();
  3954. this.selectStudent();
  3955. })
  3956. .catch((err) => {
  3957. this.$message.error("提交失败");
  3958. console.error(err);
  3959. });
  3960. },
  3961. addCourseWorks(i) {
  3962. var typesql;
  3963. if (this.fileType === 0) {
  3964. typesql = 1;
  3965. } else if (this.fileType === 1) {
  3966. typesql = 4;
  3967. } else {
  3968. typesql = 5;
  3969. }
  3970. if (!this.studyJuri[0].cover[0].url) {
  3971. this.$message.error("请上传文件")
  3972. return;
  3973. }
  3974. if (this.workTypeA == true) {
  3975. this.$confirm(
  3976. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  3977. "提示",
  3978. {
  3979. confirmButtonText: "确定",
  3980. cancelButtonText: "取消",
  3981. type: "warning",
  3982. }
  3983. )
  3984. .then(() => {
  3985. let params = [
  3986. {
  3987. uid: this.userid,
  3988. cid: this.id,
  3989. stage: this.courseType,
  3990. task: i,
  3991. tool: this.toolindex,
  3992. content: this.studyJuri[0].cover[0].url,
  3993. type: typesql,
  3994. },
  3995. ];
  3996. this.ajax
  3997. .post(this.$store.state.api + "addCourseWorks", params)
  3998. .then((res) => {
  3999. this.$message({
  4000. message: "提交成功",
  4001. type: "success",
  4002. });
  4003. this.studyJuri[0].cover = [];
  4004. this.dialogVisible = false;
  4005. this.getCourseDetail();
  4006. })
  4007. .catch((err) => {
  4008. this.$message.error("提交失败");
  4009. console.error(err);
  4010. });
  4011. })
  4012. .catch(() => { });
  4013. } else {
  4014. let params = [
  4015. {
  4016. uid: this.userid,
  4017. cid: this.id,
  4018. stage: this.courseType,
  4019. task: i,
  4020. tool: this.toolindex,
  4021. content: this.studyJuri[0].cover[0].url,
  4022. type: typesql,
  4023. },
  4024. ];
  4025. this.ajax
  4026. .post(this.$store.state.api + "addCourseWorks", params)
  4027. .then((res) => {
  4028. this.$message({
  4029. message: "提交成功",
  4030. type: "success",
  4031. });
  4032. this.studyJuri[0].cover = [];
  4033. this.dialogVisible = false;
  4034. this.getCourseDetail();
  4035. })
  4036. .catch((err) => {
  4037. this.$message.error("提交失败");
  4038. console.error(err);
  4039. });
  4040. }
  4041. },
  4042. addCourseWorks2(i) {
  4043. var typesql;
  4044. if (this.fileType === 0) {
  4045. typesql = 0;
  4046. } else if (this.fileType === 1) {
  4047. typesql = 1;
  4048. } else {
  4049. typesql = 3;
  4050. }
  4051. if (!this.studyJuri[0].cover[0].url) {
  4052. this.$message.error("请上传文件")
  4053. return;
  4054. }
  4055. let params = [
  4056. {
  4057. uid: this.userid,
  4058. cid: this.id,
  4059. stage: this.courseType,
  4060. task: i,
  4061. tool: this.toolindex,
  4062. content: JSON.stringify({ type: typesql, groupIndex: this.groupIndex, url: this.studyJuri[0].cover[0].url }).replaceAll(/%/g, "%25"),
  4063. type: 11,
  4064. atool: 49,
  4065. text: '',
  4066. },
  4067. ];
  4068. this.ajax
  4069. .post(this.$store.state.api + "addCourseWorks5", params)
  4070. .then((res) => {
  4071. this.$message({
  4072. message: "提交成功",
  4073. type: "success",
  4074. });
  4075. this.studyJuri[0].cover = [];
  4076. this.dialogVisibleGroupWork = false;
  4077. this.getCourseDetail();
  4078. })
  4079. .catch((err) => {
  4080. this.$message.error("提交失败");
  4081. console.error(err);
  4082. });
  4083. },
  4084. addCourseWorksTeacher(i) {
  4085. var typesql;
  4086. if (this.fileType === 0) {
  4087. typesql = 1;
  4088. } else if (this.fileType === 1) {
  4089. typesql = 4;
  4090. } else {
  4091. typesql = 5;
  4092. }
  4093. if (!this.studyJuri[0].cover[0].url) {
  4094. this.$message.error("请上传文件")
  4095. return;
  4096. }
  4097. let params = [
  4098. {
  4099. uid: this.sStudent.userid,
  4100. cid: this.id,
  4101. stage: this.courseType,
  4102. task: i,
  4103. tool: this.toolindex,
  4104. content: this.studyJuri[0].cover[0].url,
  4105. type: typesql,
  4106. ateacher: this.userid
  4107. },
  4108. ];
  4109. this.ajax
  4110. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  4111. .then((res) => {
  4112. this.$message({
  4113. message: "提交成功",
  4114. type: "success",
  4115. });
  4116. this.studyJuri[0].cover = [];
  4117. this.dialogVisibleWorks = false;
  4118. this.getCourseDetail();
  4119. })
  4120. .catch((err) => {
  4121. this.$message.error("提交失败");
  4122. console.error(err);
  4123. });
  4124. },
  4125. selectWorksStudent() {
  4126. let params = {
  4127. oid: this.oid,
  4128. cid: this.courseDetail.juri,
  4129. };
  4130. this.ajax
  4131. .get(this.$store.state.api + "selectWorksStudent", params)
  4132. .then((res) => {
  4133. var a = res.data[0];
  4134. for (var i = 0; i < this.isWorksS.length; i++) {
  4135. this.noWorksS[i] = [];
  4136. var studentK = [];
  4137. if (this.isWorksS[i].length > 0) {
  4138. for (var z = 0; z < this.isWorksS[i].length; z++) {
  4139. studentK.push(this.isWorksS[i][z].uid);
  4140. }
  4141. studentK = studentK.join(",");
  4142. for (var j = 0; j < a.length; j++) {
  4143. if (studentK.indexOf(a[j].userid) == -1) {
  4144. this.noWorksS[i].push({ student: a[j].name, userid: a[j].userid });
  4145. }
  4146. }
  4147. } else {
  4148. for (var k = 0; k < a.length; k++) {
  4149. this.noWorksS[i].push({ student: a[k].name, userid: a[k].userid });
  4150. }
  4151. }
  4152. }
  4153. this.$forceUpdate();
  4154. if (
  4155. Object.keys(this.commentDetail).length &&
  4156. Object.keys(this.commentIndexJson).length &&
  4157. !this.dialogVisibleScore
  4158. ) {
  4159. let a = 1
  4160. if (this.commentIndexJson.gindex || this.commentIndexJson.gindex === 0) {
  4161. for (var i = 0; i < this.worksStudent[this.commentIndexJson.toolIndex].length; i++) {
  4162. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i]
  4163. for (var k = 0; k < _el.length; k++) {
  4164. let el = _el[k]
  4165. if (el.wid == this.commentDetail.wid) {
  4166. a = 2
  4167. this.commentOther(
  4168. this.worksStudent[this.commentIndexJson.toolIndex][
  4169. i
  4170. ][k],
  4171. this.commentIndexJson.toolIndex,
  4172. k,
  4173. this.commentIndexJson.gindex,
  4174. );
  4175. }
  4176. break;
  4177. }
  4178. }
  4179. if (a === 1) {
  4180. this.commentDetail = []
  4181. this.commentIndexJson = {}
  4182. this.commentDialogVisible = false;
  4183. this.$message("此作业已被删除")
  4184. }
  4185. } else {
  4186. for (var i = 0; i < this.worksStudent[this.commentIndexJson.toolIndex].length; i++) {
  4187. let el = this.worksStudent[this.commentIndexJson.toolIndex][i]
  4188. if (el.wid == this.commentDetail.wid) {
  4189. a = 2
  4190. this.commentOther(
  4191. this.worksStudent[this.commentIndexJson.toolIndex][
  4192. i
  4193. ],
  4194. this.commentIndexJson.toolIndex,
  4195. i
  4196. );
  4197. break;
  4198. }
  4199. }
  4200. if (a === 1) {
  4201. this.commentDetail = []
  4202. this.commentIndexJson = {}
  4203. this.commentDialogVisible = false;
  4204. this.$message("此作业已被删除")
  4205. }
  4206. }
  4207. }
  4208. })
  4209. .catch((err) => {
  4210. console.error(err);
  4211. });
  4212. },
  4213. selectStudent() {
  4214. //学生查看自己作业
  4215. let params = {
  4216. uid: this.userid,
  4217. cid: this.id,
  4218. s: this.courseType,
  4219. t: this.taskCount,
  4220. };
  4221. this.ajax
  4222. .get(this.$store.state.api + "selectStudentWorks", params)
  4223. .then((res) => {
  4224. var a =
  4225. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4226. this.taskCount
  4227. ].toolChoose;
  4228. var b = res.data[0];
  4229. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4230. var y = [
  4231. "AVI",
  4232. "NAVI",
  4233. "MPEG",
  4234. "ASF",
  4235. "MOV",
  4236. "WMV",
  4237. "3GP",
  4238. "RM",
  4239. "RMVB",
  4240. "FLV",
  4241. "F4V",
  4242. "H.264",
  4243. "H.265",
  4244. "REAL VIDEO",
  4245. "MKV",
  4246. "WebM",
  4247. "HDDVD",
  4248. "MP4",
  4249. "MPG",
  4250. "M4V",
  4251. "MGV",
  4252. "OGV",
  4253. "QTM",
  4254. "STR",
  4255. "AMC",
  4256. "DVX",
  4257. "EVO",
  4258. "DAT",
  4259. "OGG",
  4260. "OGM",
  4261. ];
  4262. for (var i = 0; i < a.length; i++) {
  4263. this.workStudent[i] = [];
  4264. for (var j = 0; j < b.length; j++) {
  4265. if (i == b[j].tool) {
  4266. if (
  4267. (b[j].type == 1 ||
  4268. b[j].type == 4 ||
  4269. b[j].type == 5 ||
  4270. b[j].type == 6 ||
  4271. b[j].type == 7) &&
  4272. a[i].tool[0] != 15 &&
  4273. a[i].tool[0] != 4 &&
  4274. a[i].tool[0] != 45
  4275. ) {
  4276. if (
  4277. c.indexOf(
  4278. b[j].content
  4279. .split(".")
  4280. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  4281. ) != -1 && a[i].tool[0] == 16
  4282. ) {
  4283. this.workStudent[i].push({
  4284. works: b[j].content,
  4285. sName: b[j].name,
  4286. score: b[j].score,
  4287. img: b[j].img,
  4288. type: 1,
  4289. time: b[j].time,
  4290. userid: b[j].userid,
  4291. wid: b[j].id,
  4292. });
  4293. } else if (
  4294. y.indexOf(
  4295. b[j].content
  4296. .split(".")
  4297. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  4298. ) != -1 && a[i].tool[0] == 16
  4299. ) {
  4300. this.workStudent[i].push({
  4301. userid: b[j].userid,
  4302. wid: b[j].id,
  4303. works: b[j].content,
  4304. sName: b[j].name,
  4305. score: b[j].score,
  4306. img: b[j].img,
  4307. type: 3,
  4308. time: b[j].time,
  4309. });
  4310. } else if (b[j].type == 6) {
  4311. this.workStudent[i].push({
  4312. userid: b[j].userid,
  4313. wid: b[j].id,
  4314. works: b[j].content,
  4315. sName: b[j].name,
  4316. score: b[j].score,
  4317. img: b[j].img,
  4318. type: 4,
  4319. time: b[j].time,
  4320. });
  4321. } else if (b[j].type == 7) {
  4322. this.workStudent[i].push({
  4323. userid: b[j].userid,
  4324. wid: b[j].id,
  4325. works: b[j].content,
  4326. sName: b[j].name,
  4327. score: b[j].score,
  4328. img: b[j].img,
  4329. type: 5,
  4330. time: b[j].time,
  4331. });
  4332. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  4333. this.workStudent[i].push({
  4334. works: b[j].content,
  4335. sName: b[j].name,
  4336. score: b[j].score,
  4337. img: b[j].img,
  4338. type: 0,
  4339. time: b[j].time,
  4340. userid: b[j].userid,
  4341. wid: b[j].id,
  4342. });
  4343. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  4344. this.workStudent[i].push({
  4345. works: b[j].content,
  4346. sName: b[j].name,
  4347. score: b[j].score,
  4348. img: b[j].img,
  4349. type: 0,
  4350. time: b[j].time,
  4351. userid: b[j].userid,
  4352. wid: b[j].id,
  4353. });
  4354. }
  4355. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  4356. this.workStudent[i].push({
  4357. works: b[j].content,
  4358. sName: b[j].name,
  4359. score: b[j].score,
  4360. img: b[j].img,
  4361. type: 2,
  4362. time: b[j].time,
  4363. userid: b[j].userid,
  4364. wid: b[j].id,
  4365. });
  4366. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  4367. //问卷
  4368. this.workStudent[i].push({
  4369. works: b[j].content,
  4370. sName: b[j].name,
  4371. score: b[j].score,
  4372. img: b[j].img,
  4373. type: 2,
  4374. time: b[j].time,
  4375. userid: b[j].userid,
  4376. wid: b[j].id,
  4377. });
  4378. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  4379. //选择题
  4380. this.workStudent[i].push({
  4381. works: b[j].content,
  4382. sName: b[j].name,
  4383. score: b[j].score,
  4384. img: b[j].img,
  4385. type: 8,
  4386. time: b[j].time,
  4387. userid: b[j].userid,
  4388. wid: b[j].id,
  4389. });
  4390. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  4391. //选择题
  4392. this.workStudent[i].push({
  4393. works: b[j].content,
  4394. sName: b[j].name,
  4395. score: b[j].score,
  4396. img: b[j].img,
  4397. type: 9,
  4398. time: b[j].time,
  4399. userid: b[j].userid,
  4400. wid: b[j].id,
  4401. });
  4402. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  4403. //选择题
  4404. this.workStudent[i].push({
  4405. works: b[j].content,
  4406. sName: b[j].name,
  4407. score: b[j].score,
  4408. img: b[j].img,
  4409. type: 10,
  4410. time: b[j].time,
  4411. userid: b[j].userid,
  4412. wid: b[j].id,
  4413. });
  4414. }
  4415. }
  4416. }
  4417. }
  4418. })
  4419. .catch((err) => {
  4420. console.error(err);
  4421. });
  4422. },
  4423. openVideo(w) {
  4424. this.videoDetail = {};
  4425. this.playerOptions1.sources[0].src = w;
  4426. this.videoDetail = this.playerOptions1;
  4427. this.videoVisible = true;
  4428. },
  4429. isLikes(wid, uid, t, c, isLikes) {
  4430. if (isLikes == false) {
  4431. let params = [
  4432. {
  4433. wid: wid,
  4434. lid: uid,
  4435. t: t,
  4436. c: c,
  4437. },
  4438. ];
  4439. this.ajax
  4440. .post(this.$store.state.api + "insertComment", params)
  4441. .then((res) => {
  4442. this.$message({
  4443. message: "点赞成功",
  4444. type: "success",
  4445. });
  4446. this.selectSWorks();
  4447. this.selectStudent();
  4448. })
  4449. .catch((err) => {
  4450. this.$message.error("点赞失败");
  4451. console.error(err);
  4452. });
  4453. } else {
  4454. let params = {
  4455. wid: wid,
  4456. lid: uid,
  4457. type: t,
  4458. };
  4459. this.ajax
  4460. .get(this.$store.state.api + "deleteComment", params)
  4461. .then((res) => {
  4462. this.$message({
  4463. message: "取消点赞成功",
  4464. type: "success",
  4465. });
  4466. this.selectSWorks();
  4467. this.selectStudent();
  4468. })
  4469. .catch((err) => {
  4470. console.error(err);
  4471. });
  4472. }
  4473. },
  4474. commentOther(w, toolIndex, wIndex, gindex) {
  4475. this.commentIndexJson = { toolIndex: toolIndex, wIndex: wIndex, gindex: gindex };
  4476. this.commentDetail = [];
  4477. this.commentDialogVisible = true;
  4478. this.commentDetail = w;
  4479. if (w.works && w.type == 1) {
  4480. this.pptImgUrl = "";
  4481. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  4482. if (
  4483. a.indexOf(
  4484. w.works
  4485. .split(".")
  4486. [w.works.split(".").length - 1].toLocaleUpperCase()
  4487. ) != -1
  4488. ) {
  4489. this.pptImgUrl =
  4490. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  4491. this.showPDF = false;
  4492. } else if (
  4493. w.works
  4494. .split(".")
  4495. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  4496. ) {
  4497. this.pptImgUrl = w.works;
  4498. this.showPDF = true;
  4499. }
  4500. } else if (w.works && w.type == 3) {
  4501. this.videoDetail = {};
  4502. this.playerOptions1.sources[0].src = w.works;
  4503. this.videoDetail = this.playerOptions1;
  4504. // this.videoVisible = true;
  4505. } else if (w.works && w.type == 4) {
  4506. this.eScore = JSON.parse(w.works);
  4507. this.rateJson =
  4508. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4509. this.taskCount
  4510. ].toolChoose[toolIndex].rateJson;
  4511. } else if (w.works && w.type == 10) {
  4512. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  4513. }
  4514. },
  4515. openScore(w) {
  4516. this.wScore = 0;
  4517. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  4518. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  4519. this.commentDetail = [];
  4520. this.dialogVisibleScore = true;
  4521. this.commentDetail = w;
  4522. if (w.works && w.type == 1) {
  4523. this.pptImgUrl = "";
  4524. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  4525. if (
  4526. a.indexOf(
  4527. w.works
  4528. .split(".")
  4529. [w.works.split(".").length - 1].toLocaleUpperCase()
  4530. ) != -1
  4531. ) {
  4532. this.pptImgUrl =
  4533. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  4534. this.showPDF = false;
  4535. } else if (
  4536. w.works
  4537. .split(".")
  4538. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  4539. ) {
  4540. this.pptImgUrl = w.works;
  4541. this.showPDF = true;
  4542. }
  4543. } else if (w.works && w.type == 3) {
  4544. this.videoDetail = {};
  4545. this.playerOptions1.sources[0].src = w.works;
  4546. this.videoDetail = this.playerOptions1;
  4547. }
  4548. },
  4549. addComment(wid, uid, t) {
  4550. if (this.commentText == "") {
  4551. this.$message.error("请输入对该学生的评价");
  4552. return;
  4553. }
  4554. let params = [
  4555. {
  4556. wid: wid,
  4557. lid: uid,
  4558. t: t,
  4559. c: this.commentText,
  4560. },
  4561. ];
  4562. this.ajax
  4563. .post(this.$store.state.api + "insertComment", params)
  4564. .then((res) => {
  4565. this.$message({
  4566. message: "评论成功",
  4567. type: "success",
  4568. });
  4569. this.commentText = "";
  4570. this.selectSWorks();
  4571. this.selectStudent();
  4572. })
  4573. .catch((err) => {
  4574. this.$message.error("评论失败");
  4575. console.error(err);
  4576. });
  4577. },
  4578. scoreWork(wid) {
  4579. if (this.wScore == 0) {
  4580. this.$message.error("请评分");
  4581. return;
  4582. }
  4583. let params = [
  4584. {
  4585. wid: wid,
  4586. score: JSON.stringify({
  4587. wScore: this.wScore,
  4588. detail: this.scoreDetail,
  4589. }),
  4590. },
  4591. ];
  4592. this.ajax
  4593. .post(this.$store.state.api + "scoreWork", params)
  4594. .then((res) => {
  4595. this.$message({
  4596. message: "评分成功",
  4597. type: "success",
  4598. });
  4599. this.wScore = 0;
  4600. this.scoreDetail = "";
  4601. this.dialogVisibleScore = false;
  4602. this.selectSWorks();
  4603. this.selectStudent();
  4604. })
  4605. .catch((err) => {
  4606. this.$message.error("评分失败");
  4607. console.error(err);
  4608. });
  4609. },
  4610. openXz(w, i) {
  4611. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  4612. .taskJson[this.taskCount].toolChoose[i].selectJson
  4613. ? JSON.parse(
  4614. JSON.stringify(
  4615. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4616. this.taskCount
  4617. ].toolChoose[i].selectJson
  4618. )
  4619. )
  4620. : { url: "", select: [], answer: [] };
  4621. var a = w.works.split(",");
  4622. for (var k = 0; k < a.length; k++) {
  4623. a[k] = parseInt(a[k]);
  4624. }
  4625. this.selectAnswer = { answer: a, stu: w.sName };
  4626. this.isSelect = true;
  4627. this.dialogVisibleSelect = true;
  4628. },
  4629. openSen(w, i) {
  4630. this.sentenceList1 = JSON.parse(w.works);
  4631. this.sentenceList1.stuName = w.sName;
  4632. this.dialogVisibleSentence1 = true;
  4633. },
  4634. openPj(w, toolindex) {
  4635. this.isStar = true;
  4636. this.eScore = JSON.parse(w);
  4637. this.rateJson =
  4638. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4639. this.taskCount
  4640. ].toolChoose[toolindex].rateJson;
  4641. this.studentEvalDialogVisible = true;
  4642. },
  4643. deleteWorks(id) {
  4644. this.$confirm("确定删除此作业吗?", "提示", {
  4645. confirmButtonText: "确定",
  4646. cancelButtonText: "取消",
  4647. type: "warning",
  4648. })
  4649. .then(() => {
  4650. let params = [
  4651. {
  4652. id: id,
  4653. },
  4654. ];
  4655. this.ajax
  4656. .post(this.$store.state.api + "deleteCourseWork", params)
  4657. .then((res) => {
  4658. this.$message({
  4659. message: "删除成功",
  4660. type: "success",
  4661. });
  4662. this.selectStudent();
  4663. this.selectSWorks();
  4664. this.selectSLook();
  4665. })
  4666. .catch((err) => {
  4667. this.$message.error("网络异常");
  4668. console.error(err);
  4669. });
  4670. })
  4671. .catch(() => { });
  4672. },
  4673. selectSWorks(gindex) {
  4674. //教师查看全部作业
  4675. let params = {
  4676. cid: this.id,
  4677. s: this.courseType,
  4678. t: this.taskCount,
  4679. };
  4680. this.ajax
  4681. .get(this.$store.state.api + "selectSWorks", params)
  4682. .then((res) => {
  4683. var a =
  4684. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4685. this.taskCount
  4686. ].toolChoose;
  4687. var b = res.data[0];
  4688. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4689. var y = [
  4690. "AVI",
  4691. "NAVI",
  4692. "MPEG",
  4693. "ASF",
  4694. "MOV",
  4695. "WMV",
  4696. "3GP",
  4697. "RM",
  4698. "RMVB",
  4699. "FLV",
  4700. "F4V",
  4701. "H.264",
  4702. "H.265",
  4703. "REAL VIDEO",
  4704. "MKV",
  4705. "WebM",
  4706. "HDDVD",
  4707. "MP4",
  4708. "MPG",
  4709. "M4V",
  4710. "MGV",
  4711. "OGV",
  4712. "QTM",
  4713. "STR",
  4714. "AMC",
  4715. "DVX",
  4716. "EVO",
  4717. "DAT",
  4718. "OGG",
  4719. "OGM",
  4720. ];
  4721. var d = res.data[1];
  4722. var e = res.data[2];
  4723. var f = res.data[3];
  4724. for (var i = 0; i < a.length; i++) {
  4725. this.worksStudent[i] = [];
  4726. this.groupStudent[i] = [];
  4727. this.groupStudentUid[i] = [];
  4728. this.isWorksS[i] = [];
  4729. this.checkJson[i] = [];
  4730. if (a[i].tool[0] == 49) {
  4731. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  4732. this.groupStudent[i][gA] = []
  4733. this.groupStudentUid[i][gA] = []
  4734. this.worksStudent[i][gA] = []
  4735. for (var g = 0; g < f.length; g++) {
  4736. if (gA == f[g].group && f[g].tool == i) {
  4737. this.groupStudent[i][gA].push(f[g])
  4738. this.groupStudentUid[i][gA].push(f[g].userid)
  4739. }
  4740. }
  4741. }
  4742. this.$forceUpdate();
  4743. }
  4744. for (var j = 0; j < b.length; j++) {
  4745. var likesCount = 0;
  4746. var commentCount = 0;
  4747. var isLikes = false;
  4748. var commentJson = [];
  4749. var data = b[j];
  4750. if (i == b[j].tool) {
  4751. if (data.type == 2 && a[i].tool[0] == 4) {
  4752. // if(JSON.parse(data.content)[0].anwer){
  4753. var checkL = JSON.parse(data.content)[0].anwer.split(",");
  4754. for (var z = 0; z < checkL.length; z++) {
  4755. if (!this.checkJson[i][z]) {
  4756. this.checkJson[i].push({
  4757. checkCount: [],
  4758. checkPerson: [],
  4759. rightPerson: [],
  4760. });
  4761. }
  4762. if (!this.checkJson[i][z].checkCount.length) {
  4763. this.checkJson[i][z].checkCount = [];
  4764. let _askItemCount = JSON.parse(data.content)[0].askJson
  4765. .askJson[z].askItem;
  4766. for (var aic = 0; aic < _askItemCount; aic++) {
  4767. this.checkJson[i][z].checkCount.push(0);
  4768. }
  4769. }
  4770. if (
  4771. (JSON.parse(data.content)[0].askJson.askJson[z].answer ||
  4772. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  4773. 0) &&
  4774. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  4775. checkL[z]
  4776. ) {
  4777. this.checkJson[i][z].rightPerson.push(data.name);
  4778. }
  4779. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  4780. ? this.checkJson[i][z].checkPerson[
  4781. parseInt(checkL[z])
  4782. ].push(data.name)
  4783. : (this.checkJson[i][z].checkPerson[parseInt(checkL[z])] =
  4784. [data.name]);
  4785. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  4786. ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
  4787. : (this.checkJson[i][z].checkCount[
  4788. parseInt(checkL[z])
  4789. ] = 1);
  4790. // }
  4791. }
  4792. } else if (data.type == 8 && a[i].tool[0] == 45) {
  4793. var checkL = JSON.parse(data.content)[0].anwer;
  4794. for (var z = 0; z < checkL.length; z++) {
  4795. if (!this.checkJson[i][z]) {
  4796. this.checkJson[i].push({
  4797. checkCount: [],
  4798. checkPerson: [],
  4799. rightPerson: [],
  4800. });
  4801. }
  4802. if (!this.checkJson[i][z].checkCount.length) {
  4803. this.checkJson[i][z].checkCount = [];
  4804. let _askItemCount = JSON.parse(data.content)[0].testJson
  4805. .testJson[z].testItem;
  4806. for (var aic = 0; aic < _askItemCount; aic++) {
  4807. this.checkJson[i][z].checkCount.push(0);
  4808. }
  4809. }
  4810. if (checkL[z] instanceof Array) {
  4811. if (
  4812. JSON.parse(data.content)[0].testJson.testJson[
  4813. z
  4814. ].answer.join(",") == checkL[z].join(",")
  4815. ) {
  4816. this.checkJson[i][z].rightPerson.push(data.name);
  4817. }
  4818. for (var q = 0; q < checkL[z].length; q++) {
  4819. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  4820. ? this.checkJson[i][z].checkPerson[
  4821. parseInt(checkL[z][q])
  4822. ].push(data.name)
  4823. : (this.checkJson[i][z].checkPerson[
  4824. parseInt(checkL[z][q])
  4825. ] = [data.name]);
  4826. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  4827. ? this.checkJson[i][z].checkCount[
  4828. parseInt(checkL[z][q])
  4829. ]++
  4830. : (this.checkJson[i][z].checkCount[
  4831. parseInt(checkL[z][q])
  4832. ] = 1);
  4833. }
  4834. } else {
  4835. if (
  4836. JSON.parse(data.content)[0].testJson.testJson[z]
  4837. .answer == checkL[z]
  4838. ) {
  4839. this.checkJson[i][z].rightPerson.push(data.name);
  4840. }
  4841. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  4842. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  4843. ? this.checkJson[i][z].checkPerson[
  4844. parseInt(checkL[z])
  4845. ].push(data.name)
  4846. : (this.checkJson[i][z].checkPerson[
  4847. parseInt(checkL[z])
  4848. ] = [data.name]);
  4849. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  4850. ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
  4851. : (this.checkJson[i][z].checkCount[
  4852. parseInt(checkL[z])
  4853. ] = 1);
  4854. }
  4855. }
  4856. }
  4857. } else if (data.type == 9 && a[i].tool[0] == 47) {
  4858. var checkL = JSON.parse(data.content);
  4859. for (var z = 0; z < checkL.length; z++) {
  4860. if (!this.checkJson[i][z]) {
  4861. this.checkJson[i].push({
  4862. checkCount: [],
  4863. checkPerson: [],
  4864. rightPerson: [],
  4865. });
  4866. }
  4867. this.checkJson[i][z].checkPerson.push(data.name);
  4868. if (
  4869. checkL[z].chooseSenList.toString() ==
  4870. checkL[z].rightAnswer.toString()
  4871. ) {
  4872. this.checkJson[i][z].rightPerson.push(data.name);
  4873. }
  4874. }
  4875. }
  4876. for (var k = 0; k < d.length; k++) {
  4877. //点赞
  4878. if (d[k].workId == b[j].id) {
  4879. likesCount++;
  4880. if (d[k].likesId == this.userid) {
  4881. isLikes = true;
  4882. }
  4883. }
  4884. }
  4885. for (var l = 0; l < e.length; l++) {
  4886. //评论
  4887. if (e[l].workId == b[j].id) {
  4888. if (e[l].comment != "") {
  4889. commentCount++;
  4890. commentJson.push({
  4891. commentText: e[l].comment,
  4892. commentTime: e[l].commentTime,
  4893. commentPeople: e[l].commentPeople,
  4894. });
  4895. }
  4896. }
  4897. }
  4898. if (
  4899. (b[j].type == 1 ||
  4900. b[j].type == 4 ||
  4901. b[j].type == 5 ||
  4902. b[j].type == 6 ||
  4903. b[j].type == 7) &&
  4904. a[i].tool[0] != 15 &&
  4905. a[i].tool[0] != 4 &&
  4906. a[i].tool[0] != 45
  4907. ) {
  4908. if (
  4909. c.indexOf(
  4910. b[j].content
  4911. .split(".")
  4912. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  4913. ) != -1 && a[i].tool[0] == 16
  4914. ) {
  4915. this.worksStudent[i].push({
  4916. userid: b[j].userid,
  4917. ateacher: b[j].ateacher,
  4918. wid: b[j].id,
  4919. works: b[j].content,
  4920. sName: b[j].name,
  4921. type: 1,
  4922. time: b[j].time,
  4923. score: b[j].score,
  4924. img: b[j].img,
  4925. likesCount: likesCount,
  4926. commentCount: commentCount,
  4927. isLikes: isLikes,
  4928. commentJson: commentJson,
  4929. });
  4930. } else if (
  4931. y.indexOf(
  4932. b[j].content
  4933. .split(".")
  4934. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  4935. ) != -1 && a[i].tool[0] == 16
  4936. ) {
  4937. this.worksStudent[i].push({
  4938. userid: b[j].userid,
  4939. ateacher: b[j].ateacher,
  4940. wid: b[j].id,
  4941. works: b[j].content,
  4942. sName: b[j].name,
  4943. type: 3,
  4944. time: b[j].time,
  4945. score: b[j].score,
  4946. img: b[j].img,
  4947. likesCount: likesCount,
  4948. commentCount: commentCount,
  4949. isLikes: isLikes,
  4950. commentJson: commentJson,
  4951. });
  4952. } else if (b[j].type == 6) {
  4953. this.worksStudent[i].push({
  4954. userid: b[j].userid,
  4955. ateacher: b[j].ateacher,
  4956. wid: b[j].id,
  4957. works: b[j].content,
  4958. sName: b[j].name,
  4959. type: 4,
  4960. time: b[j].time,
  4961. score: b[j].score,
  4962. img: b[j].img,
  4963. likesCount: likesCount,
  4964. commentCount: commentCount,
  4965. isLikes: isLikes,
  4966. commentJson: commentJson,
  4967. });
  4968. } else if (b[j].type == 7) {
  4969. this.worksStudent[i].push({
  4970. userid: b[j].userid,
  4971. ateacher: b[j].ateacher,
  4972. wid: b[j].id,
  4973. works: b[j].content,
  4974. sName: b[j].name,
  4975. type: 5,
  4976. time: b[j].time,
  4977. score: b[j].score,
  4978. img: b[j].img,
  4979. likesCount: likesCount,
  4980. commentCount: commentCount,
  4981. isLikes: isLikes,
  4982. commentJson: commentJson,
  4983. });
  4984. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  4985. this.worksStudent[i].push({
  4986. userid: b[j].userid,
  4987. ateacher: b[j].ateacher,
  4988. wid: b[j].id,
  4989. works: b[j].content,
  4990. sName: b[j].name,
  4991. type: 0,
  4992. time: b[j].time,
  4993. score: b[j].score,
  4994. img: b[j].img,
  4995. likesCount: likesCount,
  4996. commentCount: commentCount,
  4997. isLikes: isLikes,
  4998. commentJson: commentJson,
  4999. });
  5000. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  5001. this.worksStudent[i].push({
  5002. userid: b[j].userid,
  5003. ateacher: b[j].ateacher,
  5004. wid: b[j].id,
  5005. works: b[j].content,
  5006. sName: b[j].name,
  5007. type: 0,
  5008. time: b[j].time,
  5009. score: b[j].score,
  5010. img: b[j].img,
  5011. likesCount: likesCount,
  5012. commentCount: commentCount,
  5013. isLikes: isLikes,
  5014. commentJson: commentJson,
  5015. });
  5016. }
  5017. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  5018. this.worksStudent[i].push({
  5019. userid: b[j].userid,
  5020. ateacher: b[j].ateacher,
  5021. wid: b[j].id,
  5022. works: b[j].content,
  5023. sName: b[j].name,
  5024. type: 2,
  5025. time: b[j].time,
  5026. score: b[j].score,
  5027. img: b[j].img,
  5028. likesCount: likesCount,
  5029. commentCount: commentCount,
  5030. isLikes: isLikes,
  5031. commentJson: commentJson,
  5032. });
  5033. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  5034. //问卷
  5035. this.worksStudent[i].push({
  5036. userid: b[j].userid,
  5037. ateacher: b[j].ateacher,
  5038. wid: b[j].id,
  5039. works: b[j].content,
  5040. sName: b[j].name,
  5041. type: 2,
  5042. time: b[j].time,
  5043. score: b[j].score,
  5044. img: b[j].img,
  5045. likesCount: likesCount,
  5046. commentCount: commentCount,
  5047. isLikes: isLikes,
  5048. commentJson: commentJson,
  5049. });
  5050. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  5051. //选择题
  5052. this.worksStudent[i].push({
  5053. userid: b[j].userid,
  5054. ateacher: b[j].ateacher,
  5055. wid: b[j].id,
  5056. works: b[j].content,
  5057. sName: b[j].name,
  5058. type: 8,
  5059. time: b[j].time,
  5060. score: b[j].score,
  5061. img: b[j].img,
  5062. likesCount: likesCount,
  5063. commentCount: commentCount,
  5064. isLikes: isLikes,
  5065. commentJson: commentJson,
  5066. });
  5067. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  5068. //选择题
  5069. this.worksStudent[i].push({
  5070. userid: b[j].userid,
  5071. ateacher: b[j].ateacher,
  5072. wid: b[j].id,
  5073. works: b[j].content,
  5074. sName: b[j].name,
  5075. type: 9,
  5076. time: b[j].time,
  5077. score: b[j].score,
  5078. img: b[j].img,
  5079. likesCount: likesCount,
  5080. commentCount: commentCount,
  5081. isLikes: isLikes,
  5082. commentJson: commentJson,
  5083. });
  5084. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  5085. //选择题
  5086. this.worksStudent[i].push({
  5087. userid: b[j].userid,
  5088. ateacher: b[j].ateacher,
  5089. wid: b[j].id,
  5090. works: b[j].content,
  5091. sName: b[j].name,
  5092. type: 10,
  5093. time: b[j].time,
  5094. score: b[j].score,
  5095. img: b[j].img,
  5096. likesCount: likesCount,
  5097. commentCount: commentCount,
  5098. isLikes: isLikes,
  5099. commentJson: commentJson,
  5100. });
  5101. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  5102. let _gindex = JSON.parse(b[j].content)
  5103. if (this.groupStudentUid[i][_gindex.groupIndex].indexOf(b[j].userid) != -1) {
  5104. this.worksStudent[i][_gindex.groupIndex].push({
  5105. userid: b[j].userid,
  5106. ateacher: b[j].ateacher,
  5107. wid: b[j].id,
  5108. works: _gindex.url,
  5109. sName: b[j].name,
  5110. type: _gindex.type,
  5111. time: b[j].time,
  5112. score: b[j].score,
  5113. img: b[j].img,
  5114. likesCount: likesCount,
  5115. commentCount: commentCount,
  5116. isLikes: isLikes,
  5117. commentJson: commentJson,
  5118. });
  5119. }
  5120. }
  5121. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  5122. }
  5123. }
  5124. if (this.worksStudent[i] && this.worksStudent[i].length) {
  5125. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  5126. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  5127. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  5128. var scoreA = parseFloat(jscoreA);
  5129. var scoreB = parseFloat(jscoreB);
  5130. if (scoreA == scoreB) {
  5131. return b.likesCount - a.likesCount;
  5132. }
  5133. return scoreB - scoreA;
  5134. });
  5135. }
  5136. }
  5137. for (var i = 0; i < a.length; i++) {
  5138. for (var j = 0; j < b.length; j++) {
  5139. var data = b[j];
  5140. if (i == b[j].tool) {
  5141. if (data.type == 2 || data.type == 8) {
  5142. for (var z = 0; z < this.checkJson[i].length; z++) {
  5143. this.checkJson[i][z].checkPerent = [];
  5144. this.checkJson[i][z].right = Math.round(
  5145. (this.checkJson[i][z].rightPerson.length /
  5146. parseInt(this.worksStudent[i].length)) *
  5147. 100
  5148. );
  5149. let aaaa = this.checkJson[i][z];
  5150. console.log(aaaa);
  5151. for (
  5152. var k = 0;
  5153. k < this.checkJson[i][z].checkCount.length;
  5154. k++
  5155. ) {
  5156. this.checkJson[i][z].checkPerent.push(
  5157. Math.round(
  5158. (this.checkJson[i][z].checkCount[k] /
  5159. parseInt(this.worksStudent[i].length)) *
  5160. 100
  5161. )
  5162. );
  5163. }
  5164. }
  5165. } else if (data.type == 9) {
  5166. for (var z = 0; z < this.checkJson[i].length; z++) {
  5167. this.checkJson[i][z].checkPerent = [];
  5168. this.checkJson[i][z].right = Math.round(
  5169. (this.checkJson[i][z].rightPerson.length /
  5170. this.checkJson[i][z].checkPerson.length) *
  5171. 100
  5172. );
  5173. }
  5174. }
  5175. }
  5176. }
  5177. }
  5178. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  5179. this.joinGroup(gindex)
  5180. }
  5181. this.selectWorksStudent();
  5182. })
  5183. .catch((err) => {
  5184. console.error(err);
  5185. });
  5186. },
  5187. pngToWhiteBg(file) {
  5188. const _file = file;
  5189. let read = new FileReader();
  5190. read.readAsDataURL(file); // 文件转base64
  5191. return new Promise((resolve, reject) => {
  5192. read.onload = (e) => {
  5193. let img = new Image();
  5194. img.src = e.target.result;
  5195. img.onload = async () => {
  5196. // 生成canvas
  5197. let canvas = document.createElement("canvas");
  5198. let context = canvas.getContext("2d");
  5199. // 绘制图片到canvas上
  5200. canvas.width = img.width;
  5201. canvas.height = img.height;
  5202. // 在canvas绘制前填充白色背景
  5203. context.fillStyle = "#fff";
  5204. context.fillRect(0, 0, canvas.width, canvas.height);
  5205. context.drawImage(img, 0, 0);
  5206. let base64 = canvas.toDataURL(file["type"], 1);
  5207. let newFile = this.dataUrlToFile(base64, _file);
  5208. resolve(newFile);
  5209. };
  5210. };
  5211. });
  5212. },
  5213. dataUrlToFile(dataurl, file) {
  5214. let arr = dataurl.split(","),
  5215. mime = arr[0].match(/:(.*?);/)[1],
  5216. bstr = atob(arr[1]),
  5217. n = bstr.length,
  5218. u8arr = new Uint8Array(n);
  5219. while (n--) {
  5220. u8arr[n] = bstr.charCodeAt(n);
  5221. }
  5222. // return new Blob([u8arr], { type: mime });
  5223. return new File([new Blob([u8arr], { type: mime })], file.name, {
  5224. type: mime,
  5225. });
  5226. },
  5227. async beforeUpload1(event, type, i) {
  5228. // this.$message.success('进入上传')
  5229. var file = "";
  5230. if (type == 5) {
  5231. file = event;
  5232. } else {
  5233. file = event.target.files[0];
  5234. }
  5235. var credentials = {
  5236. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5237. secretAccessKey: "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",
  5238. }; //秘钥形式的登录上传
  5239. window.AWS.config.update(credentials);
  5240. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5241. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5242. var _this = this;
  5243. _this.progress = 0;
  5244. _this.proVisible = true;
  5245. var b = [
  5246. "DOC",
  5247. "DOCX",
  5248. "DOCM",
  5249. "DOTM",
  5250. "DOTX",
  5251. "PPTX",
  5252. "PPSX",
  5253. "PPT",
  5254. "PPS",
  5255. "PPTM",
  5256. "POTM",
  5257. "PPAM",
  5258. "POTX",
  5259. "PPSM",
  5260. ];
  5261. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  5262. var photoA = [
  5263. "BMP",
  5264. "GIF",
  5265. "PNG",
  5266. "JPGE",
  5267. "JPG",
  5268. "TIF",
  5269. "PCX",
  5270. "TGA",
  5271. "EXIF",
  5272. "FPX",
  5273. "SVG",
  5274. "APNG",
  5275. ];
  5276. // if (
  5277. // b.indexOf(
  5278. // file.name
  5279. // .split(".")
  5280. // [file.name.split(".").length - 1].toLocaleUpperCase()
  5281. // ) != -1
  5282. // ) {
  5283. // if (file.size / 1024 / 1024 > 10) {
  5284. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  5285. // return;
  5286. // }
  5287. // } else if (
  5288. // excelA.indexOf(
  5289. // file.name
  5290. // .split(".")
  5291. // [file.name.split(".").length - 1].toLocaleUpperCase()
  5292. // ) != "-1"
  5293. // ) {
  5294. // if (file.size / 1024 / 1024 > 5) {
  5295. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  5296. // return;
  5297. // }
  5298. // }
  5299. if (
  5300. photoA.indexOf(
  5301. file.name
  5302. .split(".")
  5303. [file.name.split(".").length - 1].toLocaleUpperCase()
  5304. ) != -1 &&
  5305. type != 4
  5306. ) {
  5307. // const blob = await imageConversion.compress(file, 0.8)
  5308. file = await this.pngToWhiteBg(file);
  5309. const blob = await imageConversion.compressAccurately(file, 256);
  5310. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  5311. file = new File([blob], file.name, { type: file.type });
  5312. }
  5313. if (file) {
  5314. var params = {
  5315. Key:
  5316. file.name.split(".")[0] +
  5317. new Date().getTime() +
  5318. "." +
  5319. file.name.split(".")[file.name.split(".").length - 1],
  5320. ContentType: file.type,
  5321. Body: file,
  5322. "Access-Control-Allow-Credentials": "*",
  5323. ACL: "public-read",
  5324. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5325. var options = {
  5326. // partSize: 2048 * 1024 * 1024,
  5327. partSize: 1024 * 1024 * 1024,
  5328. queueSize: 2,
  5329. leavePartsOnError: true,
  5330. };
  5331. bucket
  5332. .upload(params, options)
  5333. .on("httpUploadProgress", function (evt) {
  5334. //这里可以写进度条
  5335. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5336. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  5337. })
  5338. .send(function (err, data) {
  5339. _this.progress = 100;
  5340. setTimeout(() => {
  5341. _this.proVisible = false;
  5342. }, 1000);
  5343. if (err) {
  5344. var a = _this.$refs.upload1.uploadFiles;
  5345. a.splice(a.length - 1, a.length);
  5346. _this.$message.error("上传失败");
  5347. } else {
  5348. // _this.$message.success('上传成功')
  5349. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  5350. var c = [
  5351. "AVI",
  5352. "NAVI",
  5353. "MPEG",
  5354. "ASF",
  5355. "MOV",
  5356. "WMV",
  5357. "3GP",
  5358. "RM",
  5359. "RMVB",
  5360. "FLV",
  5361. "F4V",
  5362. "H.264",
  5363. "H.265",
  5364. "REAL VIDEO",
  5365. "MKV",
  5366. "WebM",
  5367. "HDDVD",
  5368. "MP4",
  5369. "MPG",
  5370. "M4V",
  5371. "MGV",
  5372. "OGV",
  5373. "QTM",
  5374. "STR",
  5375. "AMC",
  5376. "DVX",
  5377. "EVO",
  5378. "DAT",
  5379. "OGG",
  5380. "OGM",
  5381. ];
  5382. if (type == 1) {
  5383. _this.studyJuri[0].cover.push({
  5384. name: file.name,
  5385. url: data.Location,
  5386. uid: file.uid,
  5387. });
  5388. if (
  5389. c.indexOf(
  5390. _this.studyJuri[0].cover[0].url
  5391. .split(".")
  5392. [
  5393. _this.studyJuri[0].cover[0].url.split(".").length - 1
  5394. ].toLocaleUpperCase()
  5395. ) != -1
  5396. ) {
  5397. _this.fileType = 2;
  5398. } else if (
  5399. b.indexOf(
  5400. _this.studyJuri[0].cover[0].url
  5401. .split(".")
  5402. [
  5403. _this.studyJuri[0].cover[0].url.split(".").length - 1
  5404. ].toLocaleUpperCase()
  5405. ) != -1
  5406. ) {
  5407. _this.fileType = 1;
  5408. } else {
  5409. _this.fileType = 0;
  5410. }
  5411. _this.imgChange(null, null, type);
  5412. } else if (type == 2) {
  5413. _this.upToolImg = data.Location;
  5414. _this.imgChange(null, null, type);
  5415. _this.addCourseWorks(i);
  5416. } else if (type == 4) {
  5417. _this.addPz("3", data.Location);
  5418. } else if (type == 5) {
  5419. _this.addImgDrawImG(data.Location);
  5420. }
  5421. _this.imgChange(null, null, type);
  5422. console.log(data.Location);
  5423. // _this.$message.success('上传成功'+data.Location)
  5424. }
  5425. });
  5426. }
  5427. },
  5428. beforeUpload2(event, type) {
  5429. var file = event.target.files[0];
  5430. var credentials = {
  5431. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5432. secretAccessKey: "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",
  5433. }; //秘钥形式的登录上传
  5434. window.AWS.config.update(credentials);
  5435. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5436. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5437. var _this = this;
  5438. _this.progress = 0;
  5439. _this.proVisible = true;
  5440. if (file) {
  5441. var params = {
  5442. Key:
  5443. file.name.split(".")[0] +
  5444. new Date().getTime() +
  5445. "." +
  5446. file.name.split(".")[file.name.split(".").length - 1],
  5447. ContentType: file.type,
  5448. Body: file,
  5449. "Access-Control-Allow-Credentials": "*",
  5450. ACL: "public-read",
  5451. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5452. var options = {
  5453. partSize: 2048 * 1024 * 1024,
  5454. queueSize: 2,
  5455. leavePartsOnError: true,
  5456. };
  5457. bucket
  5458. .upload(params, options)
  5459. .on("httpUploadProgress", function (evt) {
  5460. //这里可以写进度条
  5461. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5462. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  5463. })
  5464. .send(function (err, data) {
  5465. _this.progress = 100;
  5466. setTimeout(() => {
  5467. _this.proVisible = false;
  5468. }, 1000);
  5469. if (err) {
  5470. var a = _this.$refs.upload1.uploadFiles;
  5471. a.splice(a.length - 1, a.length);
  5472. _this.$message.error("上传失败");
  5473. } else {
  5474. if (type == 2) {
  5475. _this.studyJuri[0].upVedio.push({
  5476. name: file.name,
  5477. url: data.Location,
  5478. uid: file.uid,
  5479. });
  5480. _this.imgChange(null, null, type);
  5481. } else if (type == 3) {
  5482. _this.studyJuri[0].upFile.push({
  5483. name: file.name,
  5484. url: data.Location,
  5485. uid: file.uid,
  5486. });
  5487. _this.imgChange(null, null, type);
  5488. }
  5489. console.log(data.Location);
  5490. }
  5491. });
  5492. }
  5493. },
  5494. allScrell() {
  5495. window.parent.postMessage({ allScreen: this.screenType }, "*");
  5496. },
  5497. nextOrpreSteps(t) {
  5498. var b = this.chapInfoList.length - 1;
  5499. if (t == 0) {
  5500. if (this.courseType == 0) {
  5501. if (this.taskCount == 0) {
  5502. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  5503. if (this.IsLookOpen) {
  5504. if (
  5505. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  5506. ) {
  5507. if (this.courseDetail.userid != this.userid) {
  5508. this.$message.error("任务未解锁");
  5509. } else {
  5510. this.$message.error("上一任务未解锁");
  5511. }
  5512. return;
  5513. }
  5514. }
  5515. this.navList[this.courseType].isOpen = false;
  5516. this.courseType = b;
  5517. this.taskCount =
  5518. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  5519. .length - 1;
  5520. this.navList[this.courseType].isOpen = true;
  5521. } else {
  5522. this.taskCount--;
  5523. }
  5524. } else {
  5525. if (this.taskCount == 0) {
  5526. this.navList[this.courseType].isOpen = false;
  5527. this.courseType--;
  5528. this.taskCount =
  5529. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  5530. .length - 1;
  5531. this.navList[this.courseType].isOpen = true;
  5532. } else {
  5533. this.taskCount--;
  5534. }
  5535. }
  5536. } else {
  5537. if (this.courseType == b) {
  5538. if (
  5539. this.taskCount ==
  5540. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  5541. 1
  5542. ) {
  5543. this.navList[this.courseType].isOpen = false;
  5544. this.courseType = 0;
  5545. this.taskCount = 0;
  5546. this.navList[this.courseType].isOpen = true;
  5547. } else {
  5548. var bbb = parseInt(this.taskCount) + 1;
  5549. if (
  5550. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  5551. .isLook &&
  5552. this.courseDetail.userid != this.userid &&
  5553. this.IsLookOpen
  5554. ) {
  5555. this.$message.error("任务未解锁");
  5556. return;
  5557. }
  5558. this.taskCount++;
  5559. if (this.IsLookOpen) {
  5560. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5561. this.taskCount
  5562. ].isLook = true;
  5563. this.addCourseState(3);
  5564. }
  5565. }
  5566. } else {
  5567. if (
  5568. this.taskCount ==
  5569. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  5570. 1
  5571. ) {
  5572. var bbb = parseInt(this.courseType) + 1;
  5573. if (
  5574. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  5575. this.courseDetail.userid != this.userid &&
  5576. this.IsLookOpen
  5577. ) {
  5578. this.$message.error("任务未解锁");
  5579. return;
  5580. }
  5581. this.navList[this.courseType].isOpen = false;
  5582. this.courseType++;
  5583. this.taskCount = 0;
  5584. this.navList[this.courseType].isOpen = true;
  5585. } else {
  5586. var bbb = parseInt(this.taskCount) + 1;
  5587. if (
  5588. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  5589. .isLook &&
  5590. this.courseDetail.userid != this.userid &&
  5591. this.IsLookOpen
  5592. ) {
  5593. this.$message.error("任务未解锁");
  5594. return;
  5595. }
  5596. this.taskCount++;
  5597. }
  5598. if (this.IsLookOpen) {
  5599. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5600. this.taskCount
  5601. ].isLook = true;
  5602. this.addCourseState(3);
  5603. }
  5604. }
  5605. // if (
  5606. // this.taskCount ==
  5607. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  5608. // ) {
  5609. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  5610. // } else {
  5611. // this.taskCount++;
  5612. // }
  5613. }
  5614. document.scrollingElement.scrollTop = 0;
  5615. this.showType = 0;
  5616. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  5617. // if (this.vedio[this.taskCount].length > 0) {
  5618. // var a =
  5619. // document.getElementsByClassName("box_course")[this.taskCount]
  5620. // .offsetHeight;
  5621. // document.getElementsByClassName("vedioList")[
  5622. // this.taskCount
  5623. // ].style.height = a + "px";
  5624. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  5625. // a - 40 + "px";
  5626. // }
  5627. this.isNoHomeWork = false;
  5628. (this.studyJuri = [
  5629. {
  5630. content: "",
  5631. cover: [],
  5632. upVedio: [],
  5633. upFile: [],
  5634. },
  5635. ]),
  5636. (this.radio = []);
  5637. this.isClickNav = "";
  5638. this.selectPz();
  5639. this.getHomeWork();
  5640. this.getCourseDetail();
  5641. this.$forceUpdate();
  5642. },
  5643. openTask(s, n, i) {
  5644. if (this.IsLookOpen) {
  5645. if (
  5646. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  5647. this.courseDetail.userid != this.userid
  5648. ) {
  5649. this.$message.error("任务未解锁");
  5650. return;
  5651. }
  5652. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  5653. if (
  5654. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  5655. .isLook
  5656. ) {
  5657. this.$message.error("上一任务未解锁");
  5658. return;
  5659. }
  5660. } else if (s > this.courseType) {
  5661. if (n > 0) {
  5662. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  5663. this.$message.error("上一任务未解锁");
  5664. return;
  5665. }
  5666. } else {
  5667. if (
  5668. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  5669. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  5670. ].isLook
  5671. ) {
  5672. this.$message.error("上一任务未解锁");
  5673. return;
  5674. }
  5675. }
  5676. }
  5677. }
  5678. this.courseType = s;
  5679. this.navId = i;
  5680. this.taskCount = n;
  5681. if (this.IsLookOpen) {
  5682. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5683. this.taskCount
  5684. ].isLook = true;
  5685. this.addCourseState(3);
  5686. }
  5687. this.showType = 0;
  5688. this.isNoHomeWork = false;
  5689. (this.studyJuri = [
  5690. {
  5691. content: "",
  5692. cover: [],
  5693. upVedio: [],
  5694. upFile: [],
  5695. },
  5696. ]),
  5697. (this.radio = []);
  5698. document.scrollingElement.scrollTop = 0;
  5699. // setTimeout(() => {
  5700. // let a = document.getElementById(i);
  5701. // if (a.offsetTop - 110 == 0) {
  5702. // window.scrollTo(0, 0);
  5703. // } else {
  5704. // window.scrollTo(0, a.offsetTop);
  5705. // }
  5706. // }, 0);
  5707. this.selectPz();
  5708. this.getHomeWork();
  5709. this.getCourseDetail();
  5710. },
  5711. get(i) {
  5712. this.navList[i].isOpen = !this.navList[i].isOpen;
  5713. },
  5714. addQuestion() {
  5715. this.answerList.push({
  5716. answerTitle: this.answerQ,
  5717. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  5718. });
  5719. let params = [
  5720. {
  5721. uid: this.userid,
  5722. cid: this.id,
  5723. stage: this.courseType,
  5724. task: this.taskCount,
  5725. tool: this.toolindex,
  5726. content: JSON.stringify(this.answerList),
  5727. type: 3,
  5728. },
  5729. ];
  5730. this.ajax
  5731. .post(this.$store.state.api + "addCourseWorks", params)
  5732. .then((res) => {
  5733. this.$message({
  5734. message: "提交成功",
  5735. type: "success",
  5736. });
  5737. this.answerList = [];
  5738. this.answerDialogVisible = false;
  5739. this.selectStudent();
  5740. this.selectSWorks();
  5741. this.selectSLook();
  5742. })
  5743. .catch((err) => {
  5744. this.$message.error("提交失败");
  5745. console.error(err);
  5746. });
  5747. },
  5748. getCourseDetail(type, gindex) {
  5749. let loading;
  5750. if (type != 2) {
  5751. loading = this.$loading.service({
  5752. background: "rgba(255, 255, 255, 0.7)",
  5753. target: document.querySelector(".student_table"),
  5754. });
  5755. }
  5756. // this.navList[0].isOpen = false;
  5757. // this.navList[this.courseType].isOpen = true;
  5758. // this.courseType = this.courseTypeLine;
  5759. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  5760. let params = {
  5761. courseId: this.id,
  5762. };
  5763. this.ajax
  5764. .get(this.$store.state.api + "selectCourseDetail", params)
  5765. .then((res) => {
  5766. if (type != 2) {
  5767. loading.close();
  5768. }
  5769. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  5770. .chapterInfo[0].taskJson;
  5771. var b = [
  5772. "AVI",
  5773. "NAVI",
  5774. "MPEG",
  5775. "ASF",
  5776. "MOV",
  5777. "WMV",
  5778. "3GP",
  5779. "RM",
  5780. "RMVB",
  5781. "FLV",
  5782. "F4V",
  5783. "H.264",
  5784. "H.265",
  5785. "REAL VIDEO",
  5786. "MKV",
  5787. "WebM",
  5788. "HDDVD",
  5789. "MP4",
  5790. "MPG",
  5791. "M4V",
  5792. "MGV",
  5793. "OGV",
  5794. "QTM",
  5795. "STR",
  5796. "AMC",
  5797. "DVX",
  5798. "EVO",
  5799. "DAT",
  5800. "OGG",
  5801. "OGM",
  5802. ];
  5803. for (var i = 0; i < a.length; i++) {
  5804. var c = a[i].chapterData;
  5805. this.vedio[i] = [];
  5806. this.textList[i] = [];
  5807. this.lineList[i] = [];
  5808. this.chapToolList[i] = [];
  5809. this.file[i] = [];
  5810. for (var j = 0; j < c.length; j++) {
  5811. if (c[j].type == 7) {
  5812. this.chapToolList[i].push(c[j]);
  5813. } else if (c[j].type == 8) {
  5814. this.lineList[i].push(c[j]);
  5815. } else if (c[j].type == 6) {
  5816. this.textList[i].push(c[j]);
  5817. } else {
  5818. if (
  5819. b.indexOf(
  5820. c[j].url
  5821. .split(".")
  5822. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  5823. ) != -1
  5824. ) {
  5825. this.vedio[i].push(c[j]);
  5826. } else {
  5827. this.file[i].push(c[j]);
  5828. }
  5829. }
  5830. }
  5831. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5832. d.sources[0].src =
  5833. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  5834. this.playerO[i] = d;
  5835. }
  5836. this.courseDetail = res.data[0][0];
  5837. this.evalua = res.data[0][0].evaId;
  5838. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  5839. this.courseType
  5840. ];
  5841. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  5842. // if (this.navList.length == 0) {
  5843. // this.navList = [];
  5844. // for (var l = 0; l < this.chapInfoList.length; l++) {
  5845. // var q = this.chapInfoList[l].dyName;
  5846. // var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5847. // var e;
  5848. // this.navList.push({
  5849. // dyName: q,
  5850. // isOpen: l === 0 ? true : false,
  5851. // task: [],
  5852. // });
  5853. // for (var r = 0; r < w.length; r++) {
  5854. // e = w[r].task;
  5855. // this.navList[l].task.push({ taskName: e, id: l + "-" + r });
  5856. // this.navId = this.navId ? this.navId : l + "-" + r;
  5857. // }
  5858. // }
  5859. // }
  5860. // this.navList[0].isOpen = false;
  5861. // this.navList[this.courseType].isOpen = true;
  5862. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  5863. for (var l = 0; l < this.chapInfoList.length; l++) {
  5864. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5865. for (var m = 0; m < w.length; m++) {
  5866. w[m].id = l + "-" + m;
  5867. }
  5868. }
  5869. if (
  5870. !this.vedio[this.taskCount][0] ||
  5871. this.vedio[this.taskCount][0].url == ""
  5872. ) {
  5873. if (
  5874. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5875. this.taskCount
  5876. ].chapterData.length > 0
  5877. ) {
  5878. // if (
  5879. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5880. // this.taskCount
  5881. // ].chapterData[0].type != 8
  5882. // ) {
  5883. let _url =
  5884. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5885. this.taskCount
  5886. ].chapterData[0].url;
  5887. if (
  5888. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5889. this.taskCount
  5890. ].chapterData[0].type == 8
  5891. ) {
  5892. this.showType = 2;
  5893. if (
  5894. _url.indexOf("https://") == -1 &&
  5895. _url.indexOf("http://") == -1
  5896. ) {
  5897. _url = "https://" + _url;
  5898. }
  5899. this.pptImgUrl1 = _url;
  5900. this.isClickNav = "line0";
  5901. } else if (
  5902. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5903. this.taskCount
  5904. ].chapterData[0].type == 3
  5905. ) {
  5906. if (
  5907. _url
  5908. .split(".")
  5909. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5910. ) {
  5911. this.showType = 3;
  5912. this.pptImgUrl1 = _url;
  5913. this.isClickNav = "word0";
  5914. } else if (
  5915. this.isAssetTypeAnImage(
  5916. _url
  5917. .split(".")
  5918. [_url.split(".").length - 1].toLocaleLowerCase()
  5919. )
  5920. ) {
  5921. this.showType = 4;
  5922. this.pptImgUrl1 = _url;
  5923. this.isClickNav = "word0";
  5924. } else {
  5925. this.showType = 2;
  5926. this.pptImgUrl1 =
  5927. "https://view.officeapps.live.com/op/view.aspx?src=" + _url;
  5928. this.isClickNav = "word0";
  5929. }
  5930. } else if (
  5931. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5932. this.taskCount
  5933. ].chapterData[0].type == 6
  5934. ) {
  5935. this.showType = 1;
  5936. this.text = this.textList[this.taskCount][0];
  5937. this.isClickNav = "text0";
  5938. }
  5939. // }
  5940. // else {
  5941. // for (
  5942. // var y = 0;
  5943. // y <
  5944. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5945. // this.taskCount
  5946. // ].chapterData.length;
  5947. // y++
  5948. // ) {
  5949. // if (
  5950. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5951. // this.taskCount
  5952. // ].chapterData[y].type != 8
  5953. // ) {
  5954. // if (
  5955. // this.chapInfoList[this.courseType].chapterInfo[0]
  5956. // .taskJson[this.taskCount].chapterData[y].type == 3
  5957. // ) {
  5958. // let _url =
  5959. // this.chapInfoList[this.courseType].chapterInfo[0]
  5960. // .taskJson[this.taskCount].chapterData[y].url;
  5961. // if (
  5962. // _url
  5963. // .split(".")
  5964. // [_url.split(".").length - 1].toLocaleUpperCase() ==
  5965. // "PDF"
  5966. // ) {
  5967. // this.showType = 3;
  5968. // this.pptImgUrl1 = _url;
  5969. // } else if (
  5970. // this.isAssetTypeAnImage(
  5971. // _url
  5972. // .split(".")
  5973. // [_url.split(".").length - 1].toLocaleLowerCase()
  5974. // )
  5975. // ) {
  5976. // this.showType = 4;
  5977. // this.pptImgUrl1 = _url;
  5978. // } else {
  5979. // this.showType = 2;
  5980. // this.pptImgUrl1 =
  5981. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  5982. // _url;
  5983. // }
  5984. // } else if (
  5985. // this.chapInfoList[this.courseType].chapterInfo[0]
  5986. // .taskJson[this.taskCount].chapterData[y].type == 6
  5987. // ) {
  5988. // this.showType = 1;
  5989. // this.text = this.textList[this.taskCount][0];
  5990. // }
  5991. // } else {
  5992. // this.showType = 2;
  5993. // this.pptImgUrl1 =
  5994. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  5995. // _url;
  5996. // }
  5997. // }
  5998. // }
  5999. }
  6000. } else {
  6001. this.isClickNav = "video0";
  6002. }
  6003. this.$nextTick(() => {
  6004. setTimeout(() => {
  6005. this.checkEva();
  6006. }, 1000);
  6007. })
  6008. this.selectStudent();
  6009. this.selectSWorks(gindex);
  6010. this.selectSLook();
  6011. let _this = this;
  6012. if (_this.timer) {
  6013. clearInterval(_this.timer);
  6014. _this.timer = null;
  6015. }
  6016. if (this.dialogVisibleGroup) {
  6017. this.groupJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6018. this.taskCount
  6019. ].toolChoose[this.toolindex].groupJson;
  6020. // this.$forceUpdate();
  6021. }
  6022. _this.timer = setInterval(function () {
  6023. // _this.selectSWorks();
  6024. // _this.selectStudent();
  6025. // _this.selectSLook();
  6026. _this.getCourseDetail(2);
  6027. if (_this.tType == 4) {
  6028. _this.selectPz();
  6029. }
  6030. }, 5000);
  6031. _this.$nextTick(function () {
  6032. setTimeout(() => {
  6033. var a =
  6034. document.getElementsByClassName("box_course")[0].offsetHeight;
  6035. document.getElementsByClassName("vedioList")[0].style.height =
  6036. a + "px";
  6037. document.getElementsByClassName("navBox")[0].style.height =
  6038. a - 40 + "px";
  6039. if (_this.vedio[_this.taskCount].length > 0) {
  6040. _this.vedioTime = [];
  6041. for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  6042. _this.vedioTime[i] = document.getElementsByClassName(
  6043. "vjs-duration-display"
  6044. )[i].textContent;
  6045. }
  6046. }
  6047. }, 500);
  6048. });
  6049. })
  6050. .catch((err) => {
  6051. loading.close();
  6052. console.error(err);
  6053. });
  6054. },
  6055. addPz(type, content) {
  6056. if (type == "1" && this.pzConText == "") {
  6057. this.$message.error("批注不能为空!");
  6058. return;
  6059. }
  6060. let params = [
  6061. {
  6062. cid: this.id,
  6063. uid: this.userid,
  6064. s: this.courseType,
  6065. t: this.taskCount,
  6066. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  6067. type: type,
  6068. },
  6069. ];
  6070. this.ajax
  6071. .post(this.$store.state.api + "addPz2", params)
  6072. .then((res) => {
  6073. this.$message({
  6074. message: "添加成功",
  6075. type: "success",
  6076. });
  6077. this.pzConText = "";
  6078. this.addPzDialog = false;
  6079. this.selectPz();
  6080. })
  6081. .catch((err) => {
  6082. this.$message.error("添加失败");
  6083. console.error(err);
  6084. });
  6085. },
  6086. deletePz(id) {
  6087. this.$confirm("确定删除此批注吗?", "提示", {
  6088. confirmButtonText: "确定",
  6089. cancelButtonText: "取消",
  6090. type: "warning",
  6091. })
  6092. .then(() => {
  6093. let params = [
  6094. {
  6095. id: id,
  6096. },
  6097. ];
  6098. this.ajax
  6099. .post(this.$store.state.api + "deletePz", params)
  6100. .then((res) => {
  6101. this.$message({
  6102. message: "删除成功",
  6103. type: "success",
  6104. });
  6105. this.selectPz();
  6106. })
  6107. .catch((err) => {
  6108. this.$message.error("网络异常");
  6109. console.error(err);
  6110. });
  6111. })
  6112. .catch(() => { });
  6113. },
  6114. selectPz() {
  6115. let params = {
  6116. cid: this.id,
  6117. s: this.courseType,
  6118. t: this.taskCount,
  6119. };
  6120. this.ajax
  6121. .get(this.$store.state.api + "selectPzList", params)
  6122. .then((res) => {
  6123. this.pzList = res.data[0];
  6124. })
  6125. .catch((err) => {
  6126. console.error(err);
  6127. });
  6128. },
  6129. updateSLook() {
  6130. let params = {
  6131. sopen: this.sIsOpen == false ? 1 : 2,
  6132. cid: this.id,
  6133. };
  6134. this.ajax
  6135. .get(this.$store.state.api + "updateCourseSLook", params)
  6136. .then((res) => {
  6137. if (this.sIsOpen == true) {
  6138. this.$message({
  6139. message: "权限设置成功",
  6140. type: "success",
  6141. });
  6142. } else {
  6143. this.$message({
  6144. message: "权限关闭成功",
  6145. type: "success",
  6146. });
  6147. }
  6148. })
  6149. .catch((err) => {
  6150. console.error(err);
  6151. });
  6152. },
  6153. updateLookOpen() {
  6154. let params = [
  6155. {
  6156. sopen: this.IsLookOpen == false ? 1 : 2,
  6157. cid: this.id,
  6158. },
  6159. ];
  6160. this.ajax
  6161. .post(this.$store.state.api + "updateCourseLookOpen", params)
  6162. .then((res) => {
  6163. if (this.IsLookOpen == true) {
  6164. // if (this.courseType != 0 && this.taskCount != 0) {
  6165. // this.openTask(0, 0, "0-0");
  6166. // }
  6167. this.$message({
  6168. message: "权限设置成功",
  6169. type: "success",
  6170. });
  6171. } else {
  6172. this.$message({
  6173. message: "权限关闭成功",
  6174. type: "success",
  6175. });
  6176. }
  6177. this.getCourseState(2);
  6178. })
  6179. .catch((err) => {
  6180. console.error(err);
  6181. });
  6182. },
  6183. selectSLook() {
  6184. let params = {
  6185. cid: this.id,
  6186. };
  6187. this.ajax
  6188. .get(this.$store.state.api + "selectCourseSLook", params)
  6189. .then((res) => {
  6190. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  6191. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  6192. if (!this.IsLookOpen) {
  6193. this.setNavList();
  6194. } else {
  6195. this.getCourseState(1);
  6196. }
  6197. })
  6198. .catch((err) => {
  6199. console.error(err);
  6200. });
  6201. },
  6202. setNavList() {
  6203. if (this.navList.length == 0) {
  6204. this.navList = [];
  6205. for (var l = 0; l < this.chapInfoList.length; l++) {
  6206. var q = this.chapInfoList[l].dyName;
  6207. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  6208. var e;
  6209. this.navList.push({
  6210. dyName: q,
  6211. isOpen: l === 0 ? true : false,
  6212. task: [],
  6213. });
  6214. for (var r = 0; r < w.length; r++) {
  6215. e = w[r].task;
  6216. this.navList[l].task.push({
  6217. taskName: e,
  6218. id: l + "-" + r,
  6219. isLook: w[r].isLook,
  6220. });
  6221. // this.navId = this.navId ? this.navId : l + "-" + r;
  6222. // this.navId = l + "-" + r;
  6223. }
  6224. }
  6225. this.navList[0].isOpen = false;
  6226. this.navList[this.courseType].isOpen = true;
  6227. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  6228. } else {
  6229. this.setNavList2();
  6230. }
  6231. },
  6232. setNavList2() {
  6233. for (var l = 0; l < this.chapInfoList.length; l++) {
  6234. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  6235. for (var r = 0; r < w.length; r++) {
  6236. this.navList[l].task[r].isLook = w[r].isLook;
  6237. }
  6238. }
  6239. if (
  6240. this.IsLookOpen &&
  6241. !this.navList[this.courseType].task[this.taskCount].isLook
  6242. ) {
  6243. this.openTask(0, 0, "0-0");
  6244. }
  6245. this.$forceUpdate();
  6246. },
  6247. getCourseState(type) {
  6248. let params = {
  6249. cid: this.id,
  6250. };
  6251. this.ajax
  6252. .get(this.$store.state.api + "getCourseState", params)
  6253. .then((res) => {
  6254. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  6255. this.chapInfoList = JSON.parse(res.data[0][0].state);
  6256. this.setNavList();
  6257. this.$forceUpdate();
  6258. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  6259. this.addCourseState(2);
  6260. } else {
  6261. this.addCourseState(1);
  6262. }
  6263. })
  6264. .catch((err) => {
  6265. console.error(err);
  6266. });
  6267. },
  6268. addCourseState(type) {
  6269. let _state = this.chapInfoList;
  6270. // this.courseType this.taskCount
  6271. if (type == 1 || type == 2) {
  6272. for (var i = 0; i < _state.length; i++) {
  6273. let el = _state[i].chapterInfo[0].taskJson;
  6274. for (var j = 0; j < el.length; j++) {
  6275. // if (i == 0 && j == 0) {
  6276. // el[j].isLook = true;
  6277. // } else {
  6278. // el[j].isLook = false;
  6279. // }
  6280. if (
  6281. this.courseType > i ||
  6282. (this.courseType == i && this.taskCount + 1 > j)
  6283. ) {
  6284. el[j].isLook = true;
  6285. } else {
  6286. el[j].isLook = false;
  6287. }
  6288. }
  6289. }
  6290. }
  6291. let params = [
  6292. {
  6293. cid: this.id,
  6294. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  6295. },
  6296. ];
  6297. this.ajax
  6298. .post(
  6299. this.$store.state.api +
  6300. (type == 1 ? "addCourseState" : "updateCourseSate"),
  6301. params
  6302. )
  6303. .then((res) => {
  6304. if (this.IsLookOpen) {
  6305. this.setNavList();
  6306. }
  6307. if (type == 3 && type == 2) {
  6308. this.getCourseState(1);
  6309. }
  6310. })
  6311. .catch((err) => {
  6312. console.error(err);
  6313. });
  6314. },
  6315. getHomeWork() {
  6316. let params = {
  6317. cid: this.id,
  6318. stage: this.courseType,
  6319. task: this.taskCount,
  6320. uid: this.userid,
  6321. };
  6322. this.ajax
  6323. .get(this.$store.state.api + "selectWork", params)
  6324. .then((res) => {
  6325. if (res.data[0].length > 0) {
  6326. this.studyJuri = JSON.parse(res.data[0][0].content);
  6327. this.isNoHomeWork = true;
  6328. }
  6329. })
  6330. .catch((err) => {
  6331. console.error(err);
  6332. });
  6333. },
  6334. isAssetTypeAnImage(ext) {
  6335. return (
  6336. [
  6337. "png",
  6338. "jpg",
  6339. "jpeg",
  6340. "bmp",
  6341. "gif",
  6342. "webp",
  6343. "psd",
  6344. "svg",
  6345. "tiff",
  6346. ].indexOf(ext) !== -1
  6347. );
  6348. },
  6349. switchVideo(media) {
  6350. this.playerO = {};
  6351. this.playerOptions.poster = "";
  6352. this.playerOptions.sources[0].src = media;
  6353. this.playerO = this.playerOptions;
  6354. },
  6355. onPlayerPlay() { },
  6356. lookVedio(u, i) {
  6357. this.isClickNav = "";
  6358. // this.playerOptions.sources[0].src = u;
  6359. var d = JSON.parse(JSON.stringify(this.playerOptions));
  6360. d.sources[0].src = u;
  6361. this.playerO[this.taskCount] = d;
  6362. this.showType = 0;
  6363. this.isClickNav = "video" + i;
  6364. this.$forceUpdate();
  6365. },
  6366. lookText(i, t) {
  6367. this.isClickNav = "";
  6368. this.text = this.textList[i][t];
  6369. // this.dialogVisible1 = true;
  6370. this.showType = 1;
  6371. this.isClickNav = "text" + t;
  6372. },
  6373. lookTools(i, t) {
  6374. this.chapTools = this.chapToolList[i][t];
  6375. this.dialogVisible2 = true;
  6376. },
  6377. openFile(f) {
  6378. this.pptImgUrl = "";
  6379. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6380. if (
  6381. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  6382. -1
  6383. ) {
  6384. this.pptImgUrl =
  6385. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  6386. this.showPDF = false;
  6387. this.dialogVisible3 = true;
  6388. } else if (
  6389. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6390. ) {
  6391. this.pptImgUrl = f;
  6392. this.showPDF = true;
  6393. this.dialogVisible3 = true;
  6394. }
  6395. },
  6396. openTable(f) {
  6397. this.tableJson = JSON.parse(f.works)
  6398. this.dialogVisibleTable2 = true;
  6399. },
  6400. doUrl(url, i) {
  6401. this.isClickNav = "";
  6402. this.pptImgUrl1 = "";
  6403. this.showType = 2;
  6404. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  6405. url = "https://" + url;
  6406. }
  6407. this.pptImgUrl1 = url;
  6408. this.isClickNav = "line" + i;
  6409. },
  6410. downFile(f, i) {
  6411. this.isClickNav = "";
  6412. this.pptImgUrl1 = "";
  6413. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  6414. if (
  6415. a.indexOf(
  6416. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  6417. ) != -1
  6418. ) {
  6419. this.pptImgUrl1 =
  6420. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  6421. // this.dialogVisible3 = true;
  6422. this.showType = 2;
  6423. } else if (
  6424. this.isAssetTypeAnImage(
  6425. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  6426. )
  6427. ) {
  6428. this.showType = 4;
  6429. this.pptImgUrl1 = f.url;
  6430. } else if (
  6431. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  6432. "PDF"
  6433. ) {
  6434. this.pptImgUrl1 = f.url;
  6435. // this.dialogVisible3 = true;
  6436. this.showType = 3;
  6437. } else {
  6438. window.open(this.file[i].url);
  6439. }
  6440. this.isClickNav = "word" + i;
  6441. },
  6442. downFileList(i) {
  6443. window.open(this.noImgList[i].url);
  6444. },
  6445. openAddWork() {
  6446. this.dialogVisible = true;
  6447. },
  6448. addBzWorks() {
  6449. let params = [
  6450. {
  6451. uid: this.userid,
  6452. cid: this.id,
  6453. stage: this.courseType,
  6454. task: this.taskCount,
  6455. tool: this.toolindex,
  6456. content: JSON.stringify(this.eScore),
  6457. type: 6,
  6458. },
  6459. ];
  6460. this.ajax
  6461. .post(this.$store.state.api + "addCourseWorks", params)
  6462. .then((res) => {
  6463. this.$message({
  6464. message: "提交成功",
  6465. type: "success",
  6466. });
  6467. this.eScore = { eBzText: "", eStar: [] };
  6468. this.studentEvalDialogVisible = false;
  6469. this.selectSWorks();
  6470. })
  6471. .catch((err) => {
  6472. this.$message.error("提交失败");
  6473. console.error(err);
  6474. });
  6475. },
  6476. addStudentAsk() {
  6477. if (!this.radio.length) {
  6478. this.$message.error("请选择选项");
  6479. return;
  6480. }
  6481. for (var i = 0; i < this.askJson.askCount; i++) {
  6482. if (this.radio[i] !== 0 && !this.radio[i]) {
  6483. this.$message.error("请选择选项");
  6484. return;
  6485. }
  6486. }
  6487. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  6488. let params = [
  6489. {
  6490. uid: this.userid,
  6491. cid: this.id,
  6492. stage: this.courseType,
  6493. task: this.taskCount,
  6494. tool: this.toolindex,
  6495. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  6496. type: 2,
  6497. },
  6498. ];
  6499. this.ajax
  6500. .post(this.$store.state.api + "addCourseWorks", params)
  6501. .then((res) => {
  6502. this.$message({
  6503. message: "提交成功",
  6504. type: "success",
  6505. });
  6506. this.askList = [];
  6507. this.dialogVisible5 = false;
  6508. this.selectStudent();
  6509. this.selectSWorks();
  6510. this.selectSLook();
  6511. })
  6512. .catch((err) => {
  6513. this.$message.error("提交失败");
  6514. console.error(err);
  6515. });
  6516. },
  6517. addStudentTest() {
  6518. if (!this.radio.length) {
  6519. this.$message.error("请选择选项");
  6520. return;
  6521. }
  6522. for (var i = 0; i < this.testJson.testCount; i++) {
  6523. if (
  6524. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  6525. (this.radio[i] !== 0 && !this.radio[i])
  6526. ) {
  6527. this.$message.error("请选择选项");
  6528. return;
  6529. }
  6530. }
  6531. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  6532. let params = [
  6533. {
  6534. uid: this.userid,
  6535. cid: this.id,
  6536. stage: this.courseType,
  6537. task: this.taskCount,
  6538. tool: this.toolindex,
  6539. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  6540. type: 8,
  6541. },
  6542. ];
  6543. this.ajax
  6544. .post(this.$store.state.api + "addCourseWorks", params)
  6545. .then((res) => {
  6546. this.$message({
  6547. message: "提交成功",
  6548. type: "success",
  6549. });
  6550. this.askList = [];
  6551. this.dialogVisibleChoice = false;
  6552. this.selectStudent();
  6553. this.selectSWorks();
  6554. this.selectSLook();
  6555. })
  6556. .catch((err) => {
  6557. this.$message.error("提交失败");
  6558. console.error(err);
  6559. });
  6560. },
  6561. addWork() {
  6562. if (this.studyJuri[0].content == "") {
  6563. this.$message.error("请将信息填写完整");
  6564. return;
  6565. } else if (this.studyJuri[0].cover.length == 0) {
  6566. this.$message.error("请将信息填写完整");
  6567. return;
  6568. } else if (this.studyJuri[0].upVedio.length == 0) {
  6569. this.$message.error("请将信息填写完整");
  6570. return;
  6571. }
  6572. if (this.isNoHomeWork) {
  6573. this.$confirm(
  6574. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  6575. "提示",
  6576. {
  6577. confirmButtonText: "确定",
  6578. cancelButtonText: "取消",
  6579. type: "warning",
  6580. }
  6581. )
  6582. .then(() => {
  6583. let params = [
  6584. {
  6585. uid: this.userid,
  6586. cid: this.id,
  6587. stage: this.courseType,
  6588. task: this.taskCount,
  6589. content: JSON.stringify(this.studyJuri),
  6590. },
  6591. ];
  6592. this.ajax
  6593. .post(this.$store.state.api + "addWorks", params)
  6594. .then((res) => {
  6595. this.$message({
  6596. message: "提交成功",
  6597. type: "success",
  6598. });
  6599. this.isNoHomeWork = true;
  6600. this.dialogVisible = false;
  6601. })
  6602. .catch((err) => {
  6603. this.$message.error("提交失败");
  6604. console.error(err);
  6605. });
  6606. })
  6607. .catch(() => { });
  6608. } else {
  6609. let params = [
  6610. {
  6611. uid: this.userid,
  6612. cid: this.id,
  6613. stage: this.courseType,
  6614. task: this.taskCount,
  6615. content: JSON.stringify(this.studyJuri),
  6616. },
  6617. ];
  6618. this.ajax
  6619. .post(this.$store.state.api + "addWorks", params)
  6620. .then((res) => {
  6621. this.$message({
  6622. message: "提交成功",
  6623. type: "success",
  6624. });
  6625. this.isNoHomeWork = true;
  6626. this.dialogVisible = false;
  6627. })
  6628. .catch((err) => {
  6629. this.$message.error("提交失败");
  6630. console.error(err);
  6631. });
  6632. }
  6633. },
  6634. selectCount() {
  6635. let params = {
  6636. cid: this.id,
  6637. chid: this.courseType,
  6638. uid: this.userid,
  6639. };
  6640. this.ajax
  6641. .get(this.$store.state.api + "selectToolsCount", params)
  6642. .then((res) => {
  6643. for (var i = 0; i < res.data[0].length; i++) {
  6644. if (res.data[0][i].tools == 1) {
  6645. this.wbCount = res.data[0][i].count;
  6646. } else if (res.data[0][i].tools == 2) {
  6647. this.wordCount = res.data[0][i].count;
  6648. } else if (res.data[0][i].tools == 3) {
  6649. this.mindCount = res.data[0][i].count;
  6650. } else if (res.data[0][i].tools == 4) {
  6651. this.askCount = res.data[0][i].count;
  6652. } else if (res.data[0][i].tools == 6) {
  6653. this.noteCount = res.data[0][i].count;
  6654. } else if (res.data[0][i].tools == 7) {
  6655. this.mindNetWorkCount = res.data[0][i].count;
  6656. } else if (res.data[0][i].tools == 8) {
  6657. this.libraryCount = res.data[0][i].count;
  6658. } else if (res.data[0][i].tools == 16) {
  6659. this.workCount = res.data[0][i].count;
  6660. } else if (res.data[0][i].tools == 10) {
  6661. this.timeCount = res.data[0][i].count;
  6662. } else if (res.data[0][i].tools == 15) {
  6663. this.answerCount = res.data[0][i].count;
  6664. } else if (res.data[0][i].tools == 18) {
  6665. this.trainCount = res.data[0][i].count;
  6666. }
  6667. }
  6668. })
  6669. .catch((err) => {
  6670. console.error(err);
  6671. });
  6672. },
  6673. openTools(t, i, index, c, sName) {
  6674. var z = JSON.parse(c);
  6675. this.noteName = sName;
  6676. if (t == 4) {
  6677. this.radio = [];
  6678. this.isAnswer = false;
  6679. for (var i = 0; i < z.length; i++) {
  6680. let a = z[i];
  6681. let b = a.anwer.split(",");
  6682. let d = [];
  6683. for (var j = 0; j < b.length; j++) {
  6684. d.push(parseInt(b[j]));
  6685. }
  6686. this.radio = d;
  6687. this.askJson = a.askJson;
  6688. }
  6689. this.isAnswer = true;
  6690. this.dialogVisible5 = true;
  6691. } else if (t == 45) {
  6692. this.radio = [];
  6693. this.isAnswer = false;
  6694. let b = z[0].anwer;
  6695. this.radio = b;
  6696. this.testJson = z[0].testJson;
  6697. this.isAnswer = true;
  6698. this.dialogVisibleChoice = true;
  6699. }
  6700. // else if (t == 15) {
  6701. // this.answerQ = "";
  6702. // this.questionAnswer = "";
  6703. // this.answerQ = z[0].answerTitle;
  6704. // this.questionAnswer = z[0].answer;
  6705. // this.answerDialogVisible = true;
  6706. // }
  6707. },
  6708. fastText(p, t) {
  6709. if (t == 1) {
  6710. this.commentText += p;
  6711. } else {
  6712. this.eScore.eBzText += p;
  6713. }
  6714. },
  6715. addTools(t, i, index) {
  6716. var a = 0;
  6717. // this.taskCount = index;
  6718. this.toolindex = i;
  6719. if (t == 1) {
  6720. if (this.wbCount > 0) {
  6721. this.updateCount(this.wbCount, t);
  6722. } else {
  6723. this.wbCount++;
  6724. a = this.wbCount;
  6725. this.toolsCount(a, t);
  6726. }
  6727. window.parent.postMessage(
  6728. {
  6729. tools: "1",
  6730. cid: this.id,
  6731. stage: this.courseType,
  6732. task: this.taskCount,
  6733. tool: i,
  6734. },
  6735. "*"
  6736. );
  6737. } else if (t == 2) {
  6738. if (this.wordCount > 0) {
  6739. this.updateCount(this.wordCount, t);
  6740. } else {
  6741. this.wordCount++;
  6742. a = this.wordCount;
  6743. this.toolsCount(a, t);
  6744. }
  6745. window.parent.postMessage({ tools: "2" }, "*");
  6746. } else if (t == 3) {
  6747. if (this.mindCount > 0) {
  6748. this.updateCount(this.mindCount, t);
  6749. } else {
  6750. this.mindCount++;
  6751. a = this.mindCount;
  6752. this.toolsCount(a, t);
  6753. }
  6754. window.parent.postMessage(
  6755. {
  6756. tools: "3",
  6757. cid: this.id,
  6758. stage: this.courseType,
  6759. task: this.taskCount,
  6760. tool: i,
  6761. },
  6762. "*"
  6763. );
  6764. } else if (t == 4) {
  6765. this.radio = [];
  6766. this.noteName = "";
  6767. this.isAnswer = false;
  6768. if (this.askCount > 0) {
  6769. this.updateCount(this.askCount, t);
  6770. } else {
  6771. this.askCount++;
  6772. a = this.askCount;
  6773. this.toolsCount(a, t);
  6774. }
  6775. if (!this.dialogVisible2) {
  6776. this.askJson.askJson =
  6777. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6778. index
  6779. ].toolChoose[i].askJson;
  6780. this.askJson.askTitle =
  6781. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6782. index
  6783. ].toolChoose[i].askTitle;
  6784. this.askJson.askCount =
  6785. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6786. index
  6787. ].toolChoose[i].askCount;
  6788. } else {
  6789. this.askJson.askJson = this.chapTools.askJson.askJson;
  6790. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  6791. this.askJson.askCount = this.chapTools.askJson.askCount;
  6792. }
  6793. this.dialogVisible5 = true;
  6794. // window.parent.postMessage({ tools: "4" }, "*");
  6795. } else if (t == 45) {
  6796. this.noteName = "";
  6797. this.radio = [];
  6798. this.isAnswer = false;
  6799. if (this.askCount > 0) {
  6800. this.updateCount(this.askCount, t);
  6801. } else {
  6802. this.askCount++;
  6803. a = this.askCount;
  6804. this.toolsCount(a, t);
  6805. }
  6806. this.testJson =
  6807. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6808. index
  6809. ].toolChoose[i].testJson;
  6810. for (var k = 0; k < this.testJson.testJson.length; k++) {
  6811. if (this.testJson.testJson[k].type == "2") {
  6812. this.radio.push([]);
  6813. } else {
  6814. this.radio.push("");
  6815. }
  6816. }
  6817. this.dialogVisibleChoice = true;
  6818. // window.parent.postMessage({ tools: "4" }, "*");
  6819. } else if (t == 5) {
  6820. if (this.scoreCount > 0) {
  6821. this.updateCount(this.scoreCount, t);
  6822. } else {
  6823. this.scoreCount++;
  6824. a = this.scoreCount;
  6825. this.toolsCount(a, t);
  6826. }
  6827. this.dialogVisible4 = true;
  6828. // window.parent.postMessage({ tools: "5" }, "*");
  6829. } else if (t == 6) {
  6830. if (this.noteCount > 0) {
  6831. this.updateCount(this.noteCount, t);
  6832. } else {
  6833. this.noteCount++;
  6834. a = this.noteCount;
  6835. this.toolsCount(a, t);
  6836. }
  6837. window.parent.postMessage(
  6838. {
  6839. tools: "6",
  6840. cid: this.id,
  6841. stage: this.courseType,
  6842. task: this.taskCount,
  6843. tool: i,
  6844. },
  6845. "*"
  6846. );
  6847. } else if (t == 7) {
  6848. if (this.mindNetWorkCount > 0) {
  6849. this.updateCount(this.mindNetWorkCount, t);
  6850. } else {
  6851. this.mindNetWorkCount++;
  6852. a = this.mindNetWorkCount;
  6853. this.toolsCount(a, t);
  6854. }
  6855. window.parent.postMessage(
  6856. {
  6857. tools: "7",
  6858. cid: this.id,
  6859. stage: this.courseType,
  6860. task: this.taskCount,
  6861. tool: i,
  6862. },
  6863. "*"
  6864. );
  6865. } else if (t == 16) {
  6866. if (this.workCount > 0) {
  6867. this.updateCount(this.workCount, t);
  6868. } else {
  6869. this.workCount++;
  6870. a = this.workCount;
  6871. this.toolsCount(a, t);
  6872. }
  6873. this.dialogVisible = true;
  6874. } else if (t == 8) {
  6875. if (this.libraryCount > 0) {
  6876. this.updateCount(this.libraryCount, t);
  6877. } else {
  6878. this.libraryCount++;
  6879. a = this.libraryCount;
  6880. this.toolsCount(a, t);
  6881. }
  6882. window.parent.postMessage({ tools: "8" }, "*");
  6883. } else if (t == 17) {
  6884. if (this.libraryCount > 0) {
  6885. this.updateCount(this.libraryCount, t);
  6886. } else {
  6887. this.libraryCount++;
  6888. a = this.libraryCount;
  6889. this.toolsCount(a, t);
  6890. }
  6891. window.parent.postMessage({ tools: "17" }, "*");
  6892. } else if (t == 18) {
  6893. if (this.trainCount > 0) {
  6894. this.updateCount(this.trainCount, t);
  6895. } else {
  6896. this.trainCount++;
  6897. a = this.trainCount;
  6898. this.toolsCount(a, t);
  6899. }
  6900. window.parent.postMessage({ tools: "18" }, "*");
  6901. } else if (t == 10) {
  6902. if (this.timeCount > 0) {
  6903. this.updateCount(this.timeCount, t);
  6904. } else {
  6905. this.timeCount++;
  6906. a = this.timeCount;
  6907. this.toolsCount(a, t);
  6908. }
  6909. this.timeDialogVisible = true;
  6910. } else if (t == 15) {
  6911. this.answerQ = "";
  6912. this.questionAnswer = "";
  6913. if (this.answerCount > 0) {
  6914. this.updateCount(this.answerCount, t);
  6915. } else {
  6916. this.answerCount++;
  6917. a = this.answerCount;
  6918. this.toolsCount(a, t);
  6919. }
  6920. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  6921. .taskJson[index].toolChoose[i].answerQ
  6922. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  6923. .toolChoose[i].answerQ
  6924. : "";
  6925. this.answerDialogVisible = true;
  6926. } else if (t == 21) {
  6927. window.parent.postMessage({ tools: "21" }, "*");
  6928. } else if (t == 22) {
  6929. window.parent.postMessage({ tools: "22" }, "*");
  6930. } else if (t == 23) {
  6931. window.parent.postMessage({ tools: "23" }, "*");
  6932. } else if (t == 24) {
  6933. window.parent.postMessage({ tools: "24" }, "*");
  6934. } else if (t == 25) {
  6935. window.parent.postMessage({ tools: "25" }, "*");
  6936. } else if (t == 31) {
  6937. window.parent.postMessage({ tools: "31" }, "*");
  6938. } else if (t == 28) {
  6939. window.parent.postMessage({ tools: "28" }, "*");
  6940. } else if (t == 37) {
  6941. window.parent.postMessage({ tools: "37" }, "*");
  6942. } else if (t == 38) {
  6943. window.parent.postMessage({ tools: "38" }, "*");
  6944. } else if (t == 39) {
  6945. window.parent.postMessage({ tools: "39" }, "*");
  6946. } else if (t == 32) {
  6947. window.parent.postMessage({ tools: "32" }, "*");
  6948. } else if (t == 26) {
  6949. window.parent.postMessage(
  6950. {
  6951. tools: "26",
  6952. cid: this.id,
  6953. stage: this.courseType,
  6954. task: this.taskCount,
  6955. tool: i,
  6956. },
  6957. "*"
  6958. );
  6959. } else if (t == 40) {
  6960. if (this.evalCount > 0) {
  6961. this.updateCount(this.evalCount, t);
  6962. } else {
  6963. this.evalCount++;
  6964. a = this.evalCount;
  6965. this.toolsCount(a, t);
  6966. }
  6967. this.eScore = { eBzText: "", eStar: [] };
  6968. if (this.worksStudent[i].length) {
  6969. for (var k = 0; k < this.worksStudent[i].length; k++) {
  6970. if (this.userid == this.worksStudent[i][k].userid) {
  6971. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  6972. this.rateJson =
  6973. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6974. index
  6975. ].toolChoose[i].rateJson;
  6976. break;
  6977. } else {
  6978. this.rateJson =
  6979. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6980. index
  6981. ].toolChoose[i].rateJson;
  6982. }
  6983. }
  6984. } else {
  6985. this.rateJson =
  6986. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6987. index
  6988. ].toolChoose[i].rateJson;
  6989. }
  6990. this.isStar = false;
  6991. this.studentEvalDialogVisible = true;
  6992. } else if (t == 41) {
  6993. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6994. .taskJson[index].toolChoose[i].selectJson
  6995. ? JSON.parse(
  6996. JSON.stringify(
  6997. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6998. index
  6999. ].toolChoose[i].selectJson
  7000. )
  7001. )
  7002. : { url: "", select: [], answer: [] };
  7003. if (this.worksStudent[i].length) {
  7004. for (var k = 0; k < this.worksStudent[i].length; k++) {
  7005. if (this.userid == this.worksStudent[i][k].userid) {
  7006. var a = this.worksStudent[i][k].works.split(",");
  7007. for (var ki = 0; ki < a.length; ki++) {
  7008. a[ki] = parseInt(a[ki]);
  7009. }
  7010. this.selectAnswer = {
  7011. answer: a,
  7012. stu: this.worksStudent[i][k].sName,
  7013. };
  7014. break;
  7015. } else {
  7016. this.selectAnswer = { answer: [], stu: "" };
  7017. }
  7018. }
  7019. } else {
  7020. this.selectAnswer = { answer: [], stu: "" };
  7021. }
  7022. this.isSelect = false;
  7023. this.dialogVisibleSelect = true;
  7024. } else if (t == 44) {
  7025. window.parent.postMessage({ tools: "44" }, "*");
  7026. } else if (t == 47) {
  7027. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  7028. .taskJson[index].toolChoose[i].sentenceList
  7029. ? JSON.parse(
  7030. JSON.stringify(
  7031. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7032. index
  7033. ].toolChoose[i].sentenceList
  7034. )
  7035. )
  7036. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  7037. for (var q = 0; q < this.sentenceList.length; q++) {
  7038. this.sentenceList[q].chooseSenList = [];
  7039. this.sentenceList[q].addChangeSen = [];
  7040. this.sentenceList[q].addChangeSen = JSON.parse(
  7041. JSON.stringify(this.sentenceList[q].addSentence)
  7042. );
  7043. this.sentenceList[q].chooseSenList.length =
  7044. this.sentenceList[q].rightAnswer.length;
  7045. }
  7046. this.dialogVisibleSentence = true;
  7047. } else if (t == 48) {
  7048. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  7049. .taskJson[index].toolChoose[i].tableJson
  7050. ? JSON.parse(
  7051. JSON.stringify(
  7052. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7053. index
  7054. ].toolChoose[i].tableJson
  7055. )
  7056. )
  7057. : { text: "" };
  7058. this.dialogVisibleTable = true;
  7059. } else if (t == 49) {
  7060. this.groupJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7061. index
  7062. ].toolChoose[i].groupJson;
  7063. this.dialogVisibleGroup = true;
  7064. }
  7065. },
  7066. teacherWorkSubmit(t, i, index, s) {
  7067. this.sStudent = s
  7068. this.toolindex = i;
  7069. if (this.tType !== "1" && this.tType !== "4") {
  7070. return
  7071. }
  7072. if (t == 16) {
  7073. // if (this.workCount > 0) {
  7074. // this.updateCount(this.workCount, t);
  7075. // } else {
  7076. // this.workCount++;
  7077. // a = this.workCount;
  7078. // this.toolsCount(a, t);
  7079. // }
  7080. this.dialogVisibleWorks = true;
  7081. }
  7082. },
  7083. setRightAnswer(s, i, j) {
  7084. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  7085. if (
  7086. this.sentenceList[i].chooseSenList[q] == undefined ||
  7087. this.sentenceList[i].chooseSenList[q] == ""
  7088. ) {
  7089. this.sentenceList[i].chooseSenList[q] = s;
  7090. this.sentenceList[i].addChangeSen[j] = "";
  7091. break;
  7092. }
  7093. }
  7094. this.$forceUpdate();
  7095. },
  7096. returnCard(r, i, j) {
  7097. var a = this.sentenceList[i].addSentence.indexOf(r);
  7098. this.sentenceList[i].chooseSenList[j] = "";
  7099. this.sentenceList[i].addChangeSen[a] = r;
  7100. this.$forceUpdate();
  7101. },
  7102. // addSentenceTool() {
  7103. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7104. // this.taskCount
  7105. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  7106. // this.sentenceList = [
  7107. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7108. // ];
  7109. // this.dialogVisibleSentence = false;
  7110. // },
  7111. toolsCount(a, t) {
  7112. let params = {
  7113. cid: this.id,
  7114. chid: this.courseType,
  7115. uid: this.userid,
  7116. tid: t,
  7117. count: a,
  7118. };
  7119. this.ajax
  7120. .get(this.$store.state.api + "insertToolsCount", params)
  7121. .then((res) => {
  7122. this.selectCount();
  7123. })
  7124. .catch((err) => {
  7125. console.error(err);
  7126. });
  7127. },
  7128. updateCount(c, t) {
  7129. c++;
  7130. let params = {
  7131. cid: this.id,
  7132. chid: this.courseType,
  7133. uid: this.userid,
  7134. tid: t,
  7135. count: c,
  7136. };
  7137. this.ajax
  7138. .get(this.$store.state.api + "updateToolsCount", params)
  7139. .then((res) => {
  7140. this.selectCount();
  7141. })
  7142. .catch((err) => {
  7143. console.error(err);
  7144. });
  7145. },
  7146. checkEva() {
  7147. if (this.evalua != "") {
  7148. for (var i = 0; i < this.evaJuri.length; i++) {
  7149. if (this.evalua == this.evaJuri[i].id) {
  7150. this.eTitle = this.evaJuri[i].title;
  7151. this.eJson = JSON.parse(this.evaJuri[i].content);
  7152. }
  7153. }
  7154. this.$forceUpdate();
  7155. setTimeout(() => {
  7156. this.setMindData();
  7157. }, 0);
  7158. }
  7159. },
  7160. selectEva() {
  7161. let params = {
  7162. oid: this.oid,
  7163. };
  7164. this.ajax
  7165. .get(this.$store.state.api + "selectAllEvaluation", params)
  7166. .then((res) => {
  7167. this.evaJuri = res.data[0];
  7168. })
  7169. .catch((err) => {
  7170. console.error(err);
  7171. });
  7172. },
  7173. setMindData() {
  7174. this.data.data = [];
  7175. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  7176. let _eJson = Object.keys(this.eJson);
  7177. let _e = this.eJson;
  7178. for (let i = 0; i < _eJson.length; i++) {
  7179. let element = _e[_eJson[i]];
  7180. this.data.data.push({
  7181. id: element.id,
  7182. parentid: "root",
  7183. topic: element.name,
  7184. });
  7185. let _eJsonc = Object.keys(element.child);
  7186. let _e2 = element.child;
  7187. for (let j = 0; j < _eJsonc.length; j++) {
  7188. let _ec = _e2[_eJsonc[j]];
  7189. this.data.data.push({
  7190. id: _ec.id,
  7191. parentid: element.id,
  7192. topic: _ec.name,
  7193. });
  7194. let _eJsonz = Object.keys(_ec.child);
  7195. let _e3 = _ec.child;
  7196. for (let z = 0; z < _eJsonz.length; z++) {
  7197. let _ez = _e3[_eJsonz[z]];
  7198. this.data.data.push({
  7199. id: _ez.id,
  7200. parentid: _ec.id,
  7201. topic: _ez.name,
  7202. });
  7203. }
  7204. }
  7205. }
  7206. this.$forceUpdate();
  7207. },
  7208. checkFileFull(type, url) {
  7209. this.fullDialogVisible = true;
  7210. this.fulltype = type;
  7211. this.fullUrl = url;
  7212. },
  7213. downloadFile(url) {
  7214. let _url = "";
  7215. if (
  7216. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  7217. ) {
  7218. _url = url.split(
  7219. "https://view.officeapps.live.com/op/view.aspx?src="
  7220. )[1];
  7221. } else {
  7222. _url = url;
  7223. }
  7224. const x = new XMLHttpRequest();
  7225. x.open("GET", _url, true);
  7226. x.responseType = "blob";
  7227. x.onload = function (e) {
  7228. // const url = window.URL.createObjectURL(x.response);
  7229. // const a = document.createElement("a");
  7230. // a.href = url;
  7231. // a.target = "_blank";
  7232. // a.download = url;
  7233. // a.click();
  7234. // a.remove();
  7235. let content = x.response;
  7236. let elink = document.createElement("a");
  7237. elink.download = decodeURI(
  7238. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  7239. );
  7240. elink.style.display = "none";
  7241. let blob = new Blob([content]);
  7242. elink.href = URL.createObjectURL(blob);
  7243. document.body.appendChild(elink);
  7244. elink.click();
  7245. document.body.removeChild(elink);
  7246. };
  7247. x.send();
  7248. },
  7249. openLine(url) {
  7250. window.open(url);
  7251. },
  7252. resize() {
  7253. if (document.getElementsByClassName("box_course").length) {
  7254. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  7255. document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  7256. document.getElementsByClassName("navBox")[0].style.height =
  7257. a - 40 + "px";
  7258. }
  7259. this.Stbodywidth =
  7260. document.getElementsByClassName("student_body").length &&
  7261. document.getElementsByClassName("student_body")[0].offsetWidth;
  7262. },
  7263. closeDraw() {
  7264. this.bg = null;
  7265. this.drawShow = false;
  7266. },
  7267. showPicturePaint(url) {
  7268. let params = {
  7269. img: url,
  7270. };
  7271. this.ajax
  7272. .get(this.$store.state.api + "imgToBase64", params)
  7273. .then((res) => {
  7274. console.log(res);
  7275. this.drawShow = true;
  7276. this.bg = res.data[0].img;
  7277. })
  7278. .catch((err) => {
  7279. console.error(err);
  7280. });
  7281. },
  7282. addImgDraw(base64) {
  7283. let file = { name: "批注图.png" };
  7284. let img = this.dataUrlToFile(base64, file);
  7285. this.beforeUpload1(img, 5);
  7286. },
  7287. addImgDrawImG(url) {
  7288. // console.log(url);
  7289. let params = [
  7290. {
  7291. wid: this.commentDetail.wid,
  7292. img: url,
  7293. },
  7294. ];
  7295. this.ajax
  7296. .post(this.$store.state.api + "updateCourseWorks", params)
  7297. .then((res) => {
  7298. this.$message({
  7299. message: "提交成功",
  7300. type: "success",
  7301. });
  7302. this.drawShow = false;
  7303. this.bg = "";
  7304. this.selectSWorks();
  7305. this.selectStudent();
  7306. })
  7307. .catch((err) => {
  7308. this.$message.error("提交失败");
  7309. console.error(err);
  7310. });
  7311. },
  7312. deletePicturePaint() {
  7313. this.$confirm("确定删除此批注吗?", "提示", {
  7314. confirmButtonText: "确定",
  7315. cancelButtonText: "取消",
  7316. type: "warning",
  7317. })
  7318. .then(() => {
  7319. let params = [
  7320. {
  7321. wid: this.commentDetail.wid,
  7322. img: '',
  7323. },
  7324. ];
  7325. this.ajax
  7326. .post(this.$store.state.api + "updateCourseWorks", params)
  7327. .then((res) => {
  7328. this.$message({
  7329. message: "删除成功",
  7330. type: "success",
  7331. });
  7332. this.selectSWorks();
  7333. this.selectStudent();
  7334. })
  7335. .catch((err) => {
  7336. this.$message.error("删除失败");
  7337. console.error(err);
  7338. });
  7339. })
  7340. .catch(() => { });
  7341. },
  7342. getAudioVideo(constraintsData) {
  7343. if (navigator.mediaDevices === undefined) {
  7344. navigator.mediaDevices = {};
  7345. }
  7346. if (navigator.mediaDevices.getUserMedia === undefined) {
  7347. navigator.mediaDevices.getUserMedia = function (constraints) {
  7348. // 首先,如果有getUserMedia的话,就获得它
  7349. var getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;
  7350. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  7351. if (!getUserMedia) {
  7352. return Promise.reject({ code: 404 });
  7353. }
  7354. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  7355. return new Promise(function (resolve, reject) {
  7356. getUserMedia.call(navigator, constraints, resolve, reject);
  7357. });
  7358. }
  7359. }
  7360. return navigator.mediaDevices.getUserMedia(constraintsData)
  7361. },
  7362. /**
  7363. * 开始录制
  7364. */
  7365. startRecording(callback) {
  7366. let _function = (screenStream) => {
  7367. this.addStreamStopListener(screenStream, () => {
  7368. console.log("流停止监听");
  7369. this.$emit("streamStop", {})
  7370. // this.stopRecording();
  7371. });
  7372. var options = {
  7373. type: 'video',
  7374. mimeType: 'video/webm',
  7375. disableLogs: false,
  7376. getNativeBlob: false, // enable it for longer recordings
  7377. ignoreMutedMedia: false
  7378. };
  7379. // this.video.srcObject = screenStream;
  7380. this.recorder = RecordRTC(screenStream, options);
  7381. this.recorder.startRecording();
  7382. this.recorder.screen = screenStream;
  7383. this.videoStart = true;
  7384. // callback(true);
  7385. }
  7386. this.getAudioVideo({ audio: true }).then(res => {
  7387. this.captureScreen(_function, true);
  7388. console.log('已点击允许,开启成功');
  7389. }).catch(err => {
  7390. // console.log('浏览器不支持,请更换浏览器')
  7391. // } else {
  7392. this.captureScreen(_function, false);
  7393. console.log('请检查是否存在麦克风')
  7394. })
  7395. },
  7396. /**
  7397. * 停止录制
  7398. */
  7399. stopRecording(callback) {
  7400. this.recorder.stopRecording(() => {
  7401. // this.video.src = this.video.srcObject = null;
  7402. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  7403. const url = URL.createObjectURL(this.recorder.getBlob());
  7404. const a = document.createElement("a");//this.fileName+
  7405. let videoFile = new File([this.recorder.getBlob()], this.courseDetail.title + "录屏.mp4", {
  7406. type: 'video/mp4'
  7407. })
  7408. let downloadUrl = URL.createObjectURL(videoFile);
  7409. document.body.appendChild(a);
  7410. a.style.display = "none";
  7411. a.href = url;
  7412. a.download = this.courseDetail.title + "录屏.mp4";//this.fileName +
  7413. a.click();
  7414. this.recorder.screen.stop();
  7415. this.recorder.destroy();
  7416. this.recorder = null;
  7417. this.videoStart = false;
  7418. // callback(false);
  7419. });
  7420. },
  7421. //初始化
  7422. captureScreen(callback, type) {
  7423. if (navigator.getDisplayMedia) {
  7424. //录制结束,文件下载
  7425. navigator.getDisplayMedia({
  7426. video: true
  7427. }).then(screenStream => {
  7428. if (type) {
  7429. navigator.mediaDevices.getUserMedia({ audio: true }).then((mic) => {
  7430. screenStream.addTrack(mic.getTracks()[0]);
  7431. callback(screenStream);
  7432. });
  7433. } else {
  7434. callback(screenStream);
  7435. }
  7436. }).catch(function (error) {
  7437. console.log('error', error);
  7438. });
  7439. } else if (navigator.mediaDevices.getDisplayMedia) {
  7440. navigator.mediaDevices.getDisplayMedia({
  7441. video: true
  7442. }).then(screenStream => {
  7443. if (type) {
  7444. navigator.mediaDevices.getUserMedia({ audio: true }).then((mic) => {
  7445. screenStream.addTrack(mic.getTracks()[0]);
  7446. callback(screenStream);
  7447. });
  7448. } else {
  7449. callback(screenStream);
  7450. }
  7451. }).catch(function (error) {
  7452. console.log('error', error);
  7453. });
  7454. } else {
  7455. var error = 'getDisplayMedia API are not supported in this browser.';
  7456. console.log('error', error);
  7457. alert(error);
  7458. }
  7459. },
  7460. //流监听
  7461. addStreamStopListener(stream, callback) {
  7462. stream.addEventListener('ended', function () {
  7463. callback();
  7464. callback = function () { };
  7465. }, false);
  7466. stream.addEventListener('inactive', function () {
  7467. callback();
  7468. callback = function () { };
  7469. }, false);
  7470. stream.getTracks().forEach(function (track) {
  7471. track.addEventListener('ended', function () {
  7472. callback();
  7473. callback = function () { };
  7474. }, false);
  7475. track.addEventListener('inactive', function () {
  7476. callback();
  7477. callback = function () { };
  7478. }, false);
  7479. });
  7480. },
  7481. updateGroup() {
  7482. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  7483. this.dialogVisibleGroup2 = true;
  7484. },
  7485. updateGroupJson() {
  7486. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  7487. if (this.groupStudentUid[this.toolindex][i].length > this.groupJson2.number) {
  7488. this.$message.error("已经有小组比你设置的人数多,请重新设置")
  7489. return;
  7490. }
  7491. }
  7492. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2))
  7493. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7494. this.taskCount
  7495. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  7496. let params = [
  7497. {
  7498. cid: this.id,
  7499. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  7500. uid: this.userid,
  7501. unitIndex: this.courseType,
  7502. },
  7503. ];
  7504. this.ajax
  7505. .post(this.$store.state.api + "updateWorkNew4", params)
  7506. .then((res) => {
  7507. this.$message.success("设置成功")
  7508. this.getCourseDetail(2);
  7509. this.dialogVisibleGroup2 = false
  7510. this.groupJson2 = {}
  7511. this.$forceUpdate();
  7512. })
  7513. .catch((err) => {
  7514. this.$message.error("网络不佳");
  7515. console.error(err);
  7516. });
  7517. },
  7518. lockChair() {
  7519. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson))
  7520. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  7521. this.updateGroupJson();
  7522. },
  7523. selectGroup(index) {
  7524. this.getCourseDetail(2, index);
  7525. },
  7526. joinGroup(index) {
  7527. if (this.groupJson.islock == 2) {
  7528. this.$message.error("位置已被锁定,无法加入")
  7529. return;
  7530. }
  7531. if (this.groupStudent[this.toolindex][index].length > this.groupJson.number || this.groupStudent[this.toolindex][index].length == this.groupJson.number) {
  7532. this.$message.error("位置已满,无法加入")
  7533. return;
  7534. }
  7535. let params = [
  7536. {
  7537. cid: this.id,
  7538. stage: this.courseType,
  7539. task: this.taskCount,
  7540. tool: this.toolindex,
  7541. g: index,
  7542. uid: this.userid
  7543. },
  7544. ];
  7545. this.ajax
  7546. .post(this.$store.state.api + "joinGroup", params)
  7547. .then((res) => {
  7548. this.$message.success("加入成功")
  7549. this.getCourseDetail();
  7550. })
  7551. .catch((err) => {
  7552. this.$message.error("网络不佳");
  7553. console.error(err);
  7554. });
  7555. },
  7556. exitGroup(id) {
  7557. if (this.groupJson.islock == 2) {
  7558. this.$message.error("位置已被锁定,无法退出")
  7559. return;
  7560. }
  7561. let params = [
  7562. {
  7563. gid: id,
  7564. },
  7565. ];
  7566. this.ajax
  7567. .post(this.$store.state.api + "exitGroup", params)
  7568. .then((res) => {
  7569. this.$message.success("退出成功")
  7570. this.getCourseDetail();
  7571. })
  7572. .catch((err) => {
  7573. this.$message.error("网络不佳");
  7574. console.error(err);
  7575. });
  7576. },
  7577. groupUpload(index, task, gindex) {
  7578. this.taskCount = task
  7579. this.toolindex = index
  7580. this.groupIndex = gindex
  7581. this.dialogVisibleGroupWork = true
  7582. },
  7583. updateGroupChair(user) {
  7584. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  7585. el.label = index;
  7586. return index != user.group
  7587. })
  7588. this.updateGroupUser = user
  7589. this.dialogVisibleUpdateGroup = true
  7590. },
  7591. updateChair() {
  7592. if (this.groupStudent[this.toolindex][this.checkChair].length > this.groupJson.number || this.groupStudent[this.toolindex][this.checkChair].length == this.groupJson.number) {
  7593. this.$message.error("位置已满,无法加入")
  7594. return;
  7595. }
  7596. let params = [
  7597. {
  7598. cid: this.id,
  7599. stage: this.courseType,
  7600. task: this.taskCount,
  7601. tool: this.toolindex,
  7602. g: this.checkChair,
  7603. uid: this.updateGroupUser.userid
  7604. },
  7605. ];
  7606. this.ajax
  7607. .post(this.$store.state.api + "joinGroup", params)
  7608. .then((res) => {
  7609. this.$message.success("修改成功")
  7610. this.updateGroupUser = {}
  7611. this.checkChair = ''
  7612. this.updateGroupArray = {}
  7613. this.dialogVisibleUpdateGroup = false
  7614. this.getCourseDetail();
  7615. })
  7616. .catch((err) => {
  7617. this.$message.error("网络不佳");
  7618. console.error(err);
  7619. });
  7620. },
  7621. deleteGroupChair(gindex) {
  7622. this.checkDeleteGroup = []
  7623. this.deleteGroupUser = JSON.parse(JSON.stringify(this.groupStudent[this.toolindex][gindex]))
  7624. this.deleteGroupArray = this.groupJson.group[gindex]
  7625. this.groupIndex = gindex
  7626. this.dialogVisibleDeleteGroup = true
  7627. },
  7628. async deleteChair() {
  7629. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  7630. const gid = this.groupStudent[this.toolindex][this.groupIndex][this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(this.checkDeleteGroup[i])]
  7631. let params = [
  7632. {
  7633. gid: gid.id,
  7634. },
  7635. ];
  7636. var a = await this.deleteChairA(params);
  7637. if (i == this.checkDeleteGroup.length - 1) {
  7638. this.$message.success("退出成功")
  7639. this.dialogVisibleDeleteGroup = false;
  7640. this.deleteGroupUser = []
  7641. this.deleteGroupArray = {}
  7642. this.groupIndex = ''
  7643. this.checkDeleteGroup = []
  7644. this.getCourseDetail();
  7645. }
  7646. }
  7647. },
  7648. deleteChairA(params) {
  7649. return new Promise((resolve, reject) => {
  7650. this.ajax
  7651. .post(this.$store.state.api + "exitGroup", params)
  7652. .then((res) => {
  7653. resolve(1)
  7654. })
  7655. .catch((err) => {
  7656. this.$message.error("网络不佳");
  7657. console.error(err);
  7658. });
  7659. })
  7660. }
  7661. },
  7662. directives: {
  7663. // 使用局部注册指令的方式
  7664. resize: {
  7665. // 指令的名称
  7666. bind(el, binding) {
  7667. // el为绑定的元素,binding为绑定给指令的对象
  7668. let width = "",
  7669. height = "";
  7670. function isReize() {
  7671. const style = document.defaultView.getComputedStyle(el);
  7672. if (width !== style.width || height !== style.height) {
  7673. binding.value(); // 关键
  7674. }
  7675. width = style.width;
  7676. height = style.height;
  7677. }
  7678. el.__vueSetInterval__ = setInterval(isReize, 300);
  7679. },
  7680. unbind(el) {
  7681. clearInterval(el.__vueSetInterval__);
  7682. },
  7683. },
  7684. },
  7685. beforeDestroy() {
  7686. window.onresize = null;
  7687. clearInterval(this.timer);
  7688. this.timer = null;
  7689. },
  7690. computed: {
  7691. contentConvent() {
  7692. return function (c) {
  7693. return c
  7694. ? c
  7695. .replaceAll(/\r\n/g, "<br/>")
  7696. .replaceAll(/\n/g, "<br/>")
  7697. .replaceAll(/\s/g, " &nbsp")
  7698. : "";
  7699. };
  7700. },
  7701. },
  7702. mounted() {
  7703. if (this.screenType == 2) {
  7704. window.parent.postMessage({ allScreen: 4 }, "*");
  7705. } else if (this.screenType == 3) {
  7706. window.parent.postMessage({ allScreen: 5 }, "*");
  7707. } else if (this.screenType == 1) {
  7708. window.parent.postMessage({ allScreen: 6 }, "*");
  7709. }
  7710. this.selectEva();
  7711. this.getCourseDetail();
  7712. this.selectCount();
  7713. this.getHomeWork();
  7714. if (this.tType == 4) {
  7715. this.pzDialog = true;
  7716. this.selectPz();
  7717. }
  7718. document.scrollingElement.scrollTop = 0;
  7719. window.addEventListener("resize", () => {
  7720. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  7721. document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  7722. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  7723. });
  7724. let _this = this;
  7725. setTimeout(() => {
  7726. _this.vedioTime = [];
  7727. for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  7728. _this.vedioTime[i] = document.getElementsByClassName(
  7729. "vjs-duration-display"
  7730. )[i].textContent;
  7731. }
  7732. }, 1000);
  7733. },
  7734. };
  7735. </script>
  7736. <style scoped>
  7737. @media screen and (max-width: 1280px) {
  7738. /* .courseIndex > div:first-child(2) {
  7739. width: 15% !important;
  7740. } */
  7741. /* .navText {
  7742. width: 120px !important;
  7743. } */
  7744. .evaCss {
  7745. flex-direction: column !important;
  7746. align-items: center !important;
  7747. }
  7748. .dialog_diy1>>>.el-dialog {
  7749. width: 100% !important;
  7750. }
  7751. .rightWidthCss {
  7752. width: 100% !important;
  7753. }
  7754. .dialog_diy3>>>.el-dialog {
  7755. width: 100% !important;
  7756. }
  7757. /* .textTitle >>> .el-form-item__label {
  7758. width: 150px !important;
  7759. } */
  7760. }
  7761. .evaCssMax {
  7762. flex-direction: column !important;
  7763. align-items: center !important;
  7764. }
  7765. .dialog_diy>>>.el-dialog {
  7766. margin-top: 10vh !important;
  7767. }
  7768. .body_student {
  7769. width: 77%;
  7770. height: 100%;
  7771. position: absolute;
  7772. left: 22%;
  7773. top: 0;
  7774. }
  7775. .student_head {
  7776. width: 100%;
  7777. margin: 0 auto;
  7778. padding-bottom: 50px;
  7779. display: flex;
  7780. flex-direction: column;
  7781. flex-wrap: nowrap;
  7782. align-items: flex-start;
  7783. justify-content: flex-start;
  7784. }
  7785. .pb_left {
  7786. width: 20%;
  7787. margin-right: 10px;
  7788. background: rgb(255, 255, 255);
  7789. padding-right: 10px;
  7790. position: fixed;
  7791. height: 100%;
  7792. }
  7793. .wheel>img,
  7794. .project>img,
  7795. .star>img,
  7796. .evaluate>img,
  7797. .up_photo>img,
  7798. .chapter_add>img,
  7799. .upCover>img,
  7800. .deleteWord>img,
  7801. .question>img,
  7802. .homework>img {
  7803. width: 100%;
  7804. height: 100%;
  7805. }
  7806. .upCover {
  7807. width: calc(100% / 3.5);
  7808. position: relative;
  7809. margin: 0 15px 10px 0;
  7810. display: flex;
  7811. flex-direction: column;
  7812. flex-wrap: nowrap;
  7813. justify-content: center;
  7814. align-content: center;
  7815. align-items: center;
  7816. }
  7817. .chapter_add {
  7818. width: 120px;
  7819. position: relative;
  7820. text-align: center;
  7821. }
  7822. .isAddThings {
  7823. margin-top: 20px;
  7824. position: relative;
  7825. text-align: center;
  7826. background: #f7f8fa;
  7827. height: 90px;
  7828. width: 90px;
  7829. display: flex;
  7830. flex-direction: column;
  7831. justify-content: center;
  7832. }
  7833. .deleteWord {
  7834. width: 22px;
  7835. height: 22px;
  7836. position: absolute;
  7837. right: -5px;
  7838. top: -5px;
  7839. cursor: pointer;
  7840. }
  7841. .box_course {
  7842. /* width: 60%; */
  7843. width: 81%;
  7844. }
  7845. .wheel {
  7846. width: 100%;
  7847. height: 100%;
  7848. }
  7849. .right_box {
  7850. display: flex;
  7851. flex-direction: column;
  7852. margin-left: 30px;
  7853. justify-content: space-around;
  7854. }
  7855. .right_box_title {
  7856. font-size: 23px;
  7857. }
  7858. .people {
  7859. display: flex;
  7860. }
  7861. .student_body {
  7862. width: 100%;
  7863. margin: 0 auto;
  7864. margin-top: 10px;
  7865. padding: 0 0 20px;
  7866. }
  7867. .study_top {
  7868. margin-top: 70px;
  7869. width: 100%;
  7870. /* overflow: auto; */
  7871. height: auto;
  7872. }
  7873. .study_top .checkbox {
  7874. display: flex;
  7875. align-items: center;
  7876. padding: 15px 0 15px 30px;
  7877. flex: 0 0 auto;
  7878. font-weight: bold;
  7879. border-bottom: 1px solid #eee;
  7880. }
  7881. .study_top .check {
  7882. padding-bottom: 5px;
  7883. text-align: center;
  7884. cursor: pointer;
  7885. height: 30px;
  7886. box-sizing: border-box;
  7887. display: flex;
  7888. }
  7889. .study_top .checked {
  7890. border-bottom: 4px solid #3fc6a0;
  7891. padding-bottom: 5px;
  7892. color: #3fc6a0;
  7893. display: flex;
  7894. height: 35px;
  7895. }
  7896. .study_top .checked>div,
  7897. .study_top .check>div {
  7898. margin-right: 5px;
  7899. }
  7900. .videoTop {
  7901. display: flex;
  7902. flex-direction: row;
  7903. justify-content: space-between;
  7904. background: #fff;
  7905. align-items: center;
  7906. width: 95%;
  7907. padding: 20px;
  7908. }
  7909. .upbtn {
  7910. margin: 25px;
  7911. background: #70afdb;
  7912. color: #fff;
  7913. width: 120px;
  7914. text-align: center;
  7915. height: 30px;
  7916. line-height: 30px;
  7917. font-size: 13px;
  7918. border-radius: 5px;
  7919. cursor: pointer;
  7920. }
  7921. .filebox {
  7922. display: flex;
  7923. flex-wrap: wrap;
  7924. flex-direction: column;
  7925. padding: 15px 0 5px;
  7926. }
  7927. .filebox .tooldetail {
  7928. width: 100%;
  7929. margin: 0px 12px;
  7930. background: rgb(247, 247, 247);
  7931. padding: 20px;
  7932. line-height: 30px;
  7933. word-break: break-word;
  7934. }
  7935. .file {
  7936. display: flex;
  7937. flex-direction: column;
  7938. align-items: center;
  7939. justify-content: center;
  7940. cursor: pointer;
  7941. width: 200px;
  7942. }
  7943. .file div {
  7944. margin-top: 10px;
  7945. width: 150px;
  7946. text-align: center;
  7947. overflow: hidden;
  7948. white-space: nowrap;
  7949. text-overflow: ellipsis;
  7950. }
  7951. .media {
  7952. display: flex;
  7953. flex-direction: column;
  7954. align-items: center;
  7955. justify-content: center;
  7956. margin: 0 20px 20px 0;
  7957. cursor: pointer;
  7958. margin: 12px 0 5px 15px;
  7959. overflow: hidden;
  7960. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  7961. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  7962. box-sizing: border-box;
  7963. }
  7964. .media img {
  7965. height: 90px;
  7966. width: 160px;
  7967. object-fit: cover;
  7968. }
  7969. .media .title {
  7970. padding: 5px;
  7971. text-align: left;
  7972. width: 100%;
  7973. box-sizing: border-box;
  7974. }
  7975. .media .btn {
  7976. width: 100%;
  7977. height: 35px;
  7978. line-height: 35px;
  7979. color: #fff;
  7980. background: #606060;
  7981. text-align: center;
  7982. overflow: hidden;
  7983. white-space: nowrap;
  7984. text-overflow: ellipsis;
  7985. }
  7986. .detail_content_top {
  7987. width: 100%;
  7988. padding: 25px 0 25px 0;
  7989. }
  7990. .detail_title {
  7991. text-align: center;
  7992. font-size: 24px;
  7993. }
  7994. .detail_time {
  7995. font-size: 13px;
  7996. padding: 15px 0 0 40px;
  7997. }
  7998. .detail_content {
  7999. line-height: 2pc;
  8000. width: 90%;
  8001. margin: 0 auto;
  8002. padding-top: 30px;
  8003. text-indent: 30px;
  8004. overflow: auto;
  8005. height: 200px;
  8006. }
  8007. .score_box>>>.el-rate {
  8008. margin-left: 10px;
  8009. }
  8010. .dialog_change>>>.el-dialog {
  8011. border-radius: 5px;
  8012. }
  8013. .dialog_change>>>.el-dialog__header {
  8014. background: #f2f2f2;
  8015. text-align: center;
  8016. }
  8017. .dialog_change>>>.el-dialog__title {
  8018. line-height: 5px;
  8019. }
  8020. .dialog_change>>>.el-dialog__body {
  8021. background: #fff;
  8022. padding: 10px 20px;
  8023. }
  8024. .score_box {
  8025. display: flex;
  8026. align-items: center;
  8027. margin-bottom: 18px;
  8028. margin-top: 20px;
  8029. }
  8030. .up_photo {
  8031. width: 120px;
  8032. cursor: pointer;
  8033. margin-top: 10px;
  8034. }
  8035. .upload_send {
  8036. margin: 30px auto 30px;
  8037. width: 60%;
  8038. background: #169bd6;
  8039. text-align: center;
  8040. height: 35px;
  8041. line-height: 35px;
  8042. color: #fff;
  8043. border-radius: 5px;
  8044. cursor: pointer;
  8045. }
  8046. .marginT {
  8047. margin-top: 20px;
  8048. }
  8049. .cd_content_steps {
  8050. display: flex;
  8051. width: 90%;
  8052. justify-content: space-around;
  8053. border-top: 1px solid #eeeeee;
  8054. }
  8055. .cd_steps_box {
  8056. display: flex;
  8057. justify-content: center;
  8058. align-items: center;
  8059. flex-direction: column;
  8060. cursor: pointer;
  8061. }
  8062. .first {
  8063. display: flex;
  8064. align-items: center;
  8065. margin: 15px 0 20px 0;
  8066. font-size: 20px;
  8067. }
  8068. .first>div:nth-child(2) {
  8069. font-size: 16px !important;
  8070. padding-left: 10px;
  8071. line-height: 26px;
  8072. box-sizing: border-box;
  8073. }
  8074. .blue_box_one {
  8075. text-align: center;
  8076. color: #fff;
  8077. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  8078. border-radius: 7px;
  8079. margin: 10px;
  8080. cursor: pointer;
  8081. width: 95%;
  8082. height: 45px;
  8083. display: flex;
  8084. flex-direction: row;
  8085. justify-content: flex-start;
  8086. align-items: center;
  8087. }
  8088. .blue_box_one>div:nth-child(1) {
  8089. line-height: 30px;
  8090. margin: 0 5px 0 10px;
  8091. width: 30%;
  8092. min-width: 70px;
  8093. border-radius: 4px;
  8094. }
  8095. .blue_box_one>div:nth-child(2) {
  8096. white-space: nowrap;
  8097. text-overflow: ellipsis;
  8098. overflow: hidden;
  8099. word-break: break-all;
  8100. width: 70%;
  8101. text-align: left;
  8102. margin-right: 10px;
  8103. max-width: calc(100% - 85px);
  8104. }
  8105. .blue_box_one>div:nth-child(2):hover {
  8106. overflow: hidden;
  8107. text-overflow: ellipsis;
  8108. white-space: nowrap;
  8109. cursor: pointer;
  8110. }
  8111. .upFile {
  8112. margin: 0 auto;
  8113. width: 120px;
  8114. background: #70afdb;
  8115. color: #fff;
  8116. height: 30px;
  8117. text-align: center;
  8118. line-height: 30px;
  8119. border-radius: 5px;
  8120. font-size: 14px;
  8121. cursor: pointer;
  8122. }
  8123. .courseTitle {
  8124. background: #205cc6;
  8125. width: 85%;
  8126. margin: 10px auto;
  8127. height: 50px;
  8128. color: #fff;
  8129. line-height: 50px;
  8130. text-align: center;
  8131. font-size: 20px;
  8132. font-weight: bold;
  8133. border-radius: 5px;
  8134. cursor: pointer;
  8135. white-space: nowrap;
  8136. overflow: hidden;
  8137. text-overflow: ellipsis;
  8138. padding: 0 10px;
  8139. }
  8140. .ml {
  8141. margin-left: 20px;
  8142. color: #5b7dba;
  8143. border-left: 3px solid #5b7dba;
  8144. padding-left: 5px;
  8145. font-weight: bold;
  8146. }
  8147. .return {
  8148. width: 2rem;
  8149. height: 2rem;
  8150. cursor: pointer;
  8151. }
  8152. .return>img {
  8153. width: 100%;
  8154. height: 100%;
  8155. }
  8156. .returnBtn {
  8157. background: #499eef;
  8158. width: 65px;
  8159. height: 30px;
  8160. color: #fff;
  8161. text-align: center;
  8162. line-height: 32px;
  8163. margin-right: 20px;
  8164. cursor: pointer;
  8165. border-radius: 5px;
  8166. font-size: 14px;
  8167. }
  8168. .tool {
  8169. display: flex;
  8170. flex-direction: column;
  8171. flex-wrap: nowrap;
  8172. width: 13%;
  8173. margin: 0 30px;
  8174. align-items: center;
  8175. }
  8176. .whiteBIcon {
  8177. width: 150px;
  8178. cursor: pointer;
  8179. }
  8180. .whiteBIcon>img {
  8181. width: 100%;
  8182. height: 100%;
  8183. }
  8184. .mask {
  8185. background-color: rgba(0, 0, 0, 0);
  8186. position: fixed;
  8187. top: 0;
  8188. left: 0;
  8189. width: 100%;
  8190. height: 100%;
  8191. z-index: 20000;
  8192. display: flex;
  8193. align-items: center;
  8194. justify-content: center;
  8195. }
  8196. .progressBox {
  8197. width: 500px;
  8198. height: 180px;
  8199. background: #fff;
  8200. border-radius: 10px;
  8201. box-shadow: 0 0 6px 1px #bfbfbf;
  8202. display: flex;
  8203. align-items: center;
  8204. justify-content: center;
  8205. flex-direction: column;
  8206. }
  8207. .progressBox .lbox {
  8208. height: 100px;
  8209. font-size: 19px;
  8210. display: flex;
  8211. align-items: center;
  8212. }
  8213. .progressBox .lbox img {
  8214. width: 40px;
  8215. margin-right: 20px;
  8216. }
  8217. .progressBox>>>.el-progress-bar__outer {
  8218. background-color: #d1dfff !important;
  8219. }
  8220. .progressBox .lbox {
  8221. height: 100px;
  8222. font-size: 19px;
  8223. display: flex;
  8224. align-items: center;
  8225. }
  8226. .progressBox .lbox img {
  8227. width: 40px;
  8228. margin-right: 20px;
  8229. }
  8230. .uploadVedio {
  8231. display: flex;
  8232. flex-direction: column;
  8233. flex-wrap: nowrap;
  8234. justify-content: center;
  8235. align-items: center;
  8236. margin: 0 15px 10px 0;
  8237. }
  8238. .uploadVedio>img {
  8239. width: 30px;
  8240. height: 30px;
  8241. }
  8242. .uploadVedio>span {
  8243. white-space: nowrap;
  8244. overflow: hidden;
  8245. text-overflow: ellipsis;
  8246. width: 75px;
  8247. margin-top: 7px;
  8248. }
  8249. .picName {
  8250. white-space: nowrap;
  8251. overflow: hidden;
  8252. text-overflow: ellipsis;
  8253. width: 75px;
  8254. margin-top: 7px;
  8255. }
  8256. .new_top {
  8257. display: flex;
  8258. background: #fff;
  8259. flex-direction: row;
  8260. justify-content: flex-start;
  8261. align-items: center;
  8262. height: 60px;
  8263. position: relative;
  8264. }
  8265. .before {
  8266. position: absolute;
  8267. background: #c3dad4;
  8268. width: 6px;
  8269. height: 100%;
  8270. }
  8271. .courseIndex {
  8272. display: flex;
  8273. flex-direction: row;
  8274. align-items: center;
  8275. width: calc(100% - 520px);
  8276. }
  8277. .courseIndex>div:nth-child(1) {
  8278. margin: 0 20px;
  8279. padding-left: 5px;
  8280. font-size: 24px;
  8281. min-width: 100px;
  8282. font-weight: bold;
  8283. border-left: 4px solid #3363b9;
  8284. height: 35px;
  8285. text-align: center;
  8286. line-height: 35px;
  8287. }
  8288. .courseIndex>div:nth-child(2) {
  8289. font-size: 23px;
  8290. /* width: 300px; */
  8291. max-width: calc(100% - 180px);
  8292. white-space: nowrap;
  8293. overflow: hidden;
  8294. text-overflow: ellipsis;
  8295. }
  8296. .courseIndex>div:nth-child(3) {
  8297. border-bottom: 1px solid #d7d7d7;
  8298. padding-bottom: 5px;
  8299. background: #49a0f0;
  8300. width: 55px;
  8301. min-width: 55px;
  8302. border-radius: 5px;
  8303. color: #fff;
  8304. text-align: center;
  8305. height: 20px;
  8306. line-height: 26px;
  8307. font-size: 14px;
  8308. margin: 0 0 0 10px;
  8309. }
  8310. .course_text {
  8311. padding: 20px 0 0 15px;
  8312. text-indent: 30px;
  8313. width: 80%;
  8314. min-height: 20px;
  8315. }
  8316. .vedioList {
  8317. background: #f2f2f2;
  8318. border: 1px solid #ececec;
  8319. /* width: 38.8%; */
  8320. width: calc(100% - 83%);
  8321. height: 445px;
  8322. border-radius: 10px;
  8323. overflow: hidden;
  8324. }
  8325. .vedioNav {
  8326. margin: 10px 0 0 15px;
  8327. border-bottom: 1px solid #d7d7d7;
  8328. padding-bottom: 5px;
  8329. background: #96d1ff;
  8330. width: 55px;
  8331. min-width: 55px;
  8332. border-radius: 5px;
  8333. color: #fff;
  8334. text-align: center;
  8335. height: 20px;
  8336. line-height: 26px;
  8337. font-size: 14px;
  8338. }
  8339. .queTop {
  8340. display: flex;
  8341. padding: 20px 0 20px 30px;
  8342. width: 100%;
  8343. flex-direction: row;
  8344. justify-content: flex-start;
  8345. align-items: center;
  8346. border-bottom: 1px solid #eeeeee;
  8347. box-sizing: border-box;
  8348. }
  8349. .question {
  8350. width: 40px;
  8351. margin-right: 10px;
  8352. margin-top: 7px;
  8353. }
  8354. .queTitle {
  8355. margin-left: 5px;
  8356. font-size: 25px;
  8357. display: flex;
  8358. align-items: center;
  8359. }
  8360. .addEditor {
  8361. width: 100px;
  8362. height: 30px;
  8363. background: #42cda6;
  8364. color: #fff;
  8365. border-radius: 5px;
  8366. text-align: center;
  8367. line-height: 30px;
  8368. box-shadow: 1px 3px 6px 1px #bfbfbf;
  8369. cursor: pointer;
  8370. }
  8371. .vedioName {
  8372. /* text-overflow: ellipsis;
  8373. top: 8px;
  8374. font-size: 14px;
  8375. overflow: hidden;
  8376. width: 100%;
  8377. word-break: break-all;
  8378. white-space: nowrap; */
  8379. cursor: pointer;
  8380. margin: 0px 0px 10px 5px;
  8381. white-space: nowrap;
  8382. overflow: hidden;
  8383. text-overflow: ellipsis;
  8384. width: 100%;
  8385. }
  8386. .vedioTime {
  8387. width: 35px;
  8388. position: absolute;
  8389. color: #fff;
  8390. bottom: 0px;
  8391. right: 0px;
  8392. text-align: center;
  8393. background: #46411f;
  8394. height: 20px;
  8395. font-size: 14px;
  8396. line-height: 20px;
  8397. }
  8398. .homework {
  8399. width: 200px;
  8400. display: flex;
  8401. flex-direction: column;
  8402. flex-wrap: nowrap;
  8403. align-items: center;
  8404. cursor: pointer;
  8405. }
  8406. .homebox {
  8407. display: flex;
  8408. flex-wrap: wrap;
  8409. flex-direction: row;
  8410. justify-content: flex-start;
  8411. align-items: center;
  8412. padding: 15px 0;
  8413. }
  8414. .isChooseActive {
  8415. color: #3e88f4;
  8416. border-bottom: 2px solid #2f80f3;
  8417. }
  8418. .chooseWho {
  8419. display: flex;
  8420. width: 100%;
  8421. flex-direction: row;
  8422. flex-wrap: nowrap;
  8423. justify-content: flex-start;
  8424. padding-bottom: 10px;
  8425. }
  8426. .chooseWho>div {
  8427. cursor: pointer;
  8428. padding-bottom: 10px;
  8429. margin: 0 30px;
  8430. }
  8431. .addPoint>div>img {
  8432. cursor: pointer;
  8433. margin: 0 10px;
  8434. width: 85px;
  8435. border-radius: 15px;
  8436. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  8437. }
  8438. .addPoint>div {
  8439. display: flex;
  8440. flex-direction: column;
  8441. flex-wrap: nowrap;
  8442. align-items: center;
  8443. }
  8444. .isBorder>div {
  8445. margin: 0 0 10px 0;
  8446. align-items: flex-start !important;
  8447. }
  8448. .noiframeBox {
  8449. display: flex;
  8450. flex-wrap: wrap;
  8451. }
  8452. .iframeBox iframe {
  8453. width: 100%;
  8454. height: 800px;
  8455. border: none;
  8456. margin-bottom: 20px;
  8457. border: 1px solid #ccc;
  8458. }
  8459. .upload_toolBtn {
  8460. background: #6b92c9;
  8461. color: #fff;
  8462. width: 110px;
  8463. text-align: center;
  8464. height: 35px;
  8465. line-height: 35px;
  8466. font-size: 14px;
  8467. border-radius: 5px;
  8468. cursor: pointer;
  8469. position: absolute;
  8470. right: 10px;
  8471. bottom: 0;
  8472. }
  8473. .binfo_input,
  8474. .pj {
  8475. font: inherit;
  8476. color: currentColor;
  8477. width: 100%;
  8478. margin: 0;
  8479. padding: 15px 14px;
  8480. display: block;
  8481. min-width: 0;
  8482. outline: none;
  8483. box-sizing: content-box;
  8484. background: none;
  8485. -webkit-tap-highlight-color: transparent;
  8486. border: 1px solid rgba(0, 0, 0, 0.23);
  8487. border-radius: 4px;
  8488. box-sizing: border-box;
  8489. resize: none;
  8490. }
  8491. .binfo_input:focus-visible {
  8492. border: 1px solid rgba(61, 103, 188);
  8493. }
  8494. .dialog_diy>>>.el-dialog__header,
  8495. .dialog_diy1>>>.el-dialog__header {
  8496. background: #454545 !important;
  8497. padding: 15px 20px;
  8498. }
  8499. .dialog_diy>>>.el-dialog__title,
  8500. .dialog_diy1>>>.el-dialog__title {
  8501. color: #fff;
  8502. }
  8503. .dialog_diy>>>.el-dialog__headerbtn,
  8504. .dialog_diy1>>>.el-dialog__headerbtn {
  8505. top: 19px;
  8506. }
  8507. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  8508. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  8509. color: #fff;
  8510. }
  8511. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  8512. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8513. color: #fff;
  8514. }
  8515. .dialog_diy1>>>.el-dialog__body {
  8516. padding: 0;
  8517. }
  8518. .dialog_diy>>>.el-dialog__body,
  8519. .dialog_diy>>>.el-dialog__footer,
  8520. .dialog_diy1>>>.el-dialog__footer {
  8521. background: #fafafa;
  8522. }
  8523. .a_addBox {
  8524. margin: 10px 0;
  8525. background: #fff;
  8526. padding: 15px;
  8527. max-height: 400px;
  8528. overflow: auto;
  8529. }
  8530. .a_add_box {
  8531. border-bottom: 2px solid #eee;
  8532. padding-bottom: 10px;
  8533. }
  8534. .a_add_head {
  8535. display: flex;
  8536. align-items: flex-start;
  8537. /* justify-content: space-between; */
  8538. flex-direction: column;
  8539. margin: 10px 0;
  8540. font-size: 18px;
  8541. width: 100%;
  8542. }
  8543. .a_add_head .a_add_head_input {
  8544. width: 300px;
  8545. }
  8546. .a_add_head .a_add_head_div {
  8547. display: flex;
  8548. align-items: center;
  8549. justify-content: space-between;
  8550. }
  8551. .a_add_body {
  8552. display: flex;
  8553. align-items: center;
  8554. }
  8555. .a_add_input {
  8556. display: flex;
  8557. align-items: center;
  8558. flex-wrap: wrap;
  8559. }
  8560. .a_add_input>>>el-radio-group {
  8561. margin: 10px 0;
  8562. }
  8563. .a_add_input>>>.el-radio {
  8564. margin-bottom: 10px;
  8565. }
  8566. .redioStyle>>>.el-radio__label {
  8567. font-size: 18px;
  8568. }
  8569. .redioStyle>>>.el-checkbox__label {
  8570. font-size: 18px;
  8571. }
  8572. .toolHeng2 {
  8573. width: 100%;
  8574. }
  8575. .toolHeng {
  8576. display: flex;
  8577. flex-direction: row;
  8578. flex-wrap: wrap;
  8579. justify-content: flex-start;
  8580. align-items: center;
  8581. width: 100%;
  8582. }
  8583. .toolHeng>div {
  8584. padding-left: 20px;
  8585. }
  8586. .isWidth {
  8587. width: 20%;
  8588. }
  8589. .textTitle {
  8590. display: flex;
  8591. flex-direction: row;
  8592. flex-wrap: nowrap;
  8593. align-items: center;
  8594. width: 95%;
  8595. }
  8596. .textTitle>>>.el-form-item__label {
  8597. font-size: 22px;
  8598. color: #918f8f;
  8599. width: 100px;
  8600. }
  8601. .textTitle>>>.el-form-item__content {
  8602. width: calc(100% - 100px);
  8603. }
  8604. .textCss>>>.el-dialog {
  8605. width: 800px !important;
  8606. height: 400px;
  8607. background: #fafafa;
  8608. }
  8609. .textCss>>>.el-dialog__body {
  8610. margin: 55px 8% 0 8%;
  8611. padding: 0 !important;
  8612. }
  8613. .textCss>>>.el-dialog__footer {
  8614. padding-top: 38px;
  8615. }
  8616. .toolsCss>>>.el-dialog__body {
  8617. padding: 20px;
  8618. }
  8619. .lineCss>>>.el-dialog__body {
  8620. display: flex;
  8621. flex-direction: row;
  8622. align-items: center;
  8623. justify-content: center;
  8624. }
  8625. .newNav {
  8626. display: flex;
  8627. flex-direction: row;
  8628. align-items: baseline;
  8629. justify-content: flex-start;
  8630. }
  8631. .navText {
  8632. cursor: pointer;
  8633. margin: 0px 0px 10px 5px;
  8634. white-space: nowrap;
  8635. overflow: hidden;
  8636. text-overflow: ellipsis;
  8637. /* width: 300px; */
  8638. width: 100%;
  8639. }
  8640. .noVedio {
  8641. display: flex;
  8642. flex-direction: row;
  8643. justify-content: center;
  8644. align-content: center;
  8645. }
  8646. .noNavText {
  8647. cursor: pointer;
  8648. margin: 0px 0px 10px 5px;
  8649. width: 112px;
  8650. }
  8651. .listNoVedio {
  8652. margin: 0 0 0 30px;
  8653. width: 97%;
  8654. }
  8655. .video-player>>>.video-js {
  8656. height: 100%;
  8657. }
  8658. .hangVedioList {
  8659. width: 90% !important;
  8660. height: 150px !important;
  8661. margin: 20px 0 0 30px;
  8662. }
  8663. .hangVedio {
  8664. width: 100%;
  8665. height: 170px !important;
  8666. align-items: flex-start !important;
  8667. }
  8668. .hangHand {
  8669. height: 150px !important;
  8670. }
  8671. .twoChild {
  8672. width: 95%;
  8673. margin: 10px;
  8674. border-radius: 5px;
  8675. background: #f2f2f2;
  8676. display: flex;
  8677. flex-direction: column;
  8678. flex-wrap: nowrap;
  8679. justify-content: flex-start;
  8680. align-items: flex-start;
  8681. transition: all 0.5s;
  8682. overflow: hidden;
  8683. height: 0;
  8684. background: #e7f3ff;
  8685. }
  8686. .twoChild>div:nth-child(1) {
  8687. margin-top: 5px;
  8688. }
  8689. .navChild {
  8690. width: 100%;
  8691. cursor: pointer;
  8692. margin-bottom: 10px;
  8693. position: relative;
  8694. }
  8695. .navChild img {
  8696. position: absolute;
  8697. right: 11px;
  8698. width: 15px;
  8699. top: 50%;
  8700. transform: translateY(-50%);
  8701. }
  8702. .navActive {
  8703. height: auto;
  8704. }
  8705. .navTask {
  8706. display: flex;
  8707. flex-direction: row;
  8708. flex-wrap: nowrap;
  8709. align-items: center;
  8710. align-content: flex-start;
  8711. height: 40px;
  8712. justify-content: flex-start;
  8713. padding: 0 10px;
  8714. width: 100%;
  8715. box-sizing: border-box;
  8716. }
  8717. .navTaskname {
  8718. white-space: nowrap;
  8719. text-overflow: ellipsis;
  8720. overflow: hidden;
  8721. word-break: break-all;
  8722. padding-left: 5px;
  8723. }
  8724. .openTaskActive {
  8725. color: #4386e6;
  8726. }
  8727. .iframeName {
  8728. margin: 5px 0;
  8729. border-left: 4px solid #41c4a4;
  8730. padding-left: 4px;
  8731. }
  8732. .toolTitle {
  8733. margin: 0px 0px 20px;
  8734. font-size: 20px;
  8735. font-weight: 500;
  8736. border-left: 4px solid #41c4a4;
  8737. padding-left: 4px;
  8738. }
  8739. .cru_selectBox {
  8740. overflow: auto;
  8741. width: 96%;
  8742. margin: 0 auto;
  8743. height: calc(100% - 40px - 21px - 20px);
  8744. }
  8745. .cru_selectBox::-webkit-scrollbar,
  8746. .study_top::-webkit-scrollbar,
  8747. .textContent::-webkit-scrollbar {
  8748. /*滚动条整体样式*/
  8749. width: 6px;
  8750. /*高宽分别对应横竖滚动条的尺寸*/
  8751. height: 6px;
  8752. }
  8753. /*定义滚动条轨道 内阴影+圆角*/
  8754. .cru_selectBox::-webkit-scrollbar-track,
  8755. .study_top::-webkit-scrollbar-track,
  8756. .textContent::-webkit-scrollbar {
  8757. border-radius: 10px;
  8758. background-color: #b8bdc9;
  8759. }
  8760. /*定义滑块 内阴影+圆角*/
  8761. .cru_selectBox::-webkit-scrollbar-thumb,
  8762. .study_top::-webkit-scrollbar-thumb,
  8763. .textContent::-webkit-scrollbar-thumb {
  8764. border-radius: 10px;
  8765. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  8766. background-color: #2c5ab3;
  8767. }
  8768. .vedioBox {
  8769. border-radius: 20px;
  8770. background: #fff;
  8771. margin-bottom: 10px;
  8772. }
  8773. .taskBox {
  8774. margin: 15px auto 20px;
  8775. background: #f7f7f7;
  8776. width: 97%;
  8777. border-radius: 10px;
  8778. }
  8779. .vedioTaskBox {
  8780. width: 100%;
  8781. display: flex;
  8782. flex-direction: row;
  8783. flex-wrap: nowrap;
  8784. align-items: center;
  8785. }
  8786. .toolBox {
  8787. padding: 20px 0 0 0;
  8788. display: flex;
  8789. }
  8790. .btnAll {
  8791. position: absolute;
  8792. right: 0;
  8793. display: flex;
  8794. flex-direction: row;
  8795. flex-wrap: nowrap;
  8796. align-items: center;
  8797. }
  8798. .vedioTimeBox {
  8799. display: flex;
  8800. flex-direction: row;
  8801. align-items: center;
  8802. flex-wrap: nowrap;
  8803. position: relative;
  8804. }
  8805. .navBox {
  8806. background: rgb(255, 255, 255);
  8807. height: 400px;
  8808. padding: 5px 1px 0 1px;
  8809. overflow: auto;
  8810. }
  8811. .worksBox {
  8812. padding: 5px 0 0 10px;
  8813. border-bottom: 1px solid #eeeeee;
  8814. }
  8815. .worksBTitle {
  8816. font-size: 20px;
  8817. padding-bottom: 15px;
  8818. border-bottom: 1px solid #eeeeee;
  8819. display: flex;
  8820. align-items: center;
  8821. }
  8822. .greenBox {
  8823. width: 5px;
  8824. height: 30px;
  8825. background: #63b6fa;
  8826. margin-right: 5px;
  8827. }
  8828. .worksDetailBox {
  8829. display: flex;
  8830. width: 100%;
  8831. flex-direction: row;
  8832. flex-wrap: wrap;
  8833. align-items: center;
  8834. justify-content: flex-start;
  8835. padding: 15px 0;
  8836. }
  8837. .works {
  8838. display: flex;
  8839. flex-direction: column;
  8840. flex-wrap: nowrap;
  8841. align-items: flex-start;
  8842. justify-content: flex-start;
  8843. align-content: center;
  8844. max-width: 240px;
  8845. width: calc(100% / 3 - 10px);
  8846. height: auto;
  8847. margin-right: 10px;
  8848. margin-bottom: 10px;
  8849. overflow: hidden;
  8850. height: 140px;
  8851. box-shadow: 0 0 6px 1px #dfdada;
  8852. border-radius: 15px;
  8853. }
  8854. .workImg {
  8855. width: 100%;
  8856. /* height: calc(100% - 40px); */
  8857. height: 105px;
  8858. position: relative;
  8859. }
  8860. .workImg>img {
  8861. width: 100%;
  8862. height: 100%;
  8863. object-fit: contain;
  8864. }
  8865. .worksName {
  8866. height: 40px;
  8867. line-height: 40px;
  8868. display: flex;
  8869. width: 92%;
  8870. flex-direction: row;
  8871. flex-wrap: nowrap;
  8872. justify-content: space-between;
  8873. align-items: center;
  8874. margin: 0 10px;
  8875. }
  8876. .worksName>div:nth-child(1) {
  8877. width: 48px;
  8878. white-space: nowrap;
  8879. overflow: hidden;
  8880. text-overflow: ellipsis;
  8881. }
  8882. .worksName>div:nth-child(2) {
  8883. color: #b7b4b5;
  8884. }
  8885. .noWorksS {
  8886. padding: 15px 0;
  8887. display: flex;
  8888. flex-direction: row;
  8889. flex-wrap: wrap;
  8890. align-items: center;
  8891. justify-content: flex-start;
  8892. }
  8893. .noWorksName,
  8894. .isWorksName {
  8895. background: #7cbcf1;
  8896. color: #fff;
  8897. width: 90px;
  8898. height: 25px;
  8899. text-align: center;
  8900. line-height: 25px;
  8901. border-radius: 5px;
  8902. margin: 10px 15px 10px 0;
  8903. white-space: nowrap;
  8904. overflow: hidden;
  8905. padding: 5px;
  8906. text-overflow: ellipsis;
  8907. }
  8908. .isWorksName {
  8909. cursor: pointer;
  8910. background: #46a1eb !important;
  8911. width: 100px;
  8912. height: 40px;
  8913. line-height: 40px;
  8914. position: relative;
  8915. }
  8916. .noWorksName:hover {
  8917. background: #46a1eb !important;
  8918. }
  8919. .title {
  8920. background: #1e5cc9;
  8921. /* width: 98%; */
  8922. height: 45px;
  8923. color: #fff;
  8924. line-height: 45px;
  8925. padding-left: 20px;
  8926. box-sizing: border-box;
  8927. }
  8928. .textBox {
  8929. font-size: 20px;
  8930. width: 90%;
  8931. display: flex;
  8932. flex-direction: column;
  8933. align-items: center;
  8934. margin: 20px auto 0;
  8935. }
  8936. .textContent {
  8937. font-size: 18px;
  8938. height: 450px;
  8939. width: 95%;
  8940. overflow: auto;
  8941. line-height: 30px;
  8942. }
  8943. .answerBg {
  8944. background: url("../assets/icon/answerBgNew.png") no-repeat;
  8945. background-size: 100% 100%;
  8946. width: 100%;
  8947. height: 100%;
  8948. color: #fff;
  8949. text-align: center;
  8950. display: flex;
  8951. flex-direction: column;
  8952. flex-wrap: nowrap;
  8953. align-items: center;
  8954. position: relative;
  8955. }
  8956. .answerBg>div:nth-child(1) {
  8957. /* font-size: 22px;
  8958. padding: 25px 0 10px; */
  8959. }
  8960. .answerContent {
  8961. width: 215px;
  8962. height: 60px;
  8963. word-break: break-all;
  8964. text-align: center;
  8965. /* white-space: nowrap; */
  8966. overflow: hidden;
  8967. text-overflow: ellipsis;
  8968. padding: 23px 0 0;
  8969. -webkit-line-clamp: 3;
  8970. -webkit-box-orient: vertical;
  8971. display: -webkit-box;
  8972. font-size: 15px;
  8973. }
  8974. .elist_input_box {
  8975. display: flex;
  8976. align-items: flex-start;
  8977. flex-wrap: nowrap;
  8978. padding: 10px 0 15px 30px;
  8979. flex-direction: column;
  8980. }
  8981. .elist_input {
  8982. /* width: 40%; */
  8983. width: 100%;
  8984. }
  8985. .elist_input .elist_input_box input {
  8986. font: inherit;
  8987. color: currentColor;
  8988. width: 200px;
  8989. padding: 8px 14px;
  8990. display: block;
  8991. min-width: 0;
  8992. outline: none;
  8993. border: 1px solid rgba(0, 0, 0, 0.23);
  8994. border-radius: 4px;
  8995. box-sizing: border-box;
  8996. background: #fff;
  8997. margin: 0 20px 0 0;
  8998. }
  8999. .elist_input .elist_input_box span {
  9000. height: 36px;
  9001. line-height: 36px;
  9002. color: rgb(82, 82, 82);
  9003. }
  9004. .elist_input .elist_input_box .remove {
  9005. height: 20px;
  9006. width: 20px;
  9007. background-size: 100% 100%;
  9008. background-position: unset;
  9009. margin-left: 5px;
  9010. }
  9011. .elist_input_box>>>.el-rate {
  9012. display: flex;
  9013. height: 36px;
  9014. align-items: center;
  9015. }
  9016. .elist_input_box .elist_inptu_text {
  9017. min-height: 50px;
  9018. /* width: 500px;
  9019. max-height: 150px; */
  9020. width: 100%;
  9021. line-height: 50px;
  9022. color: rgb(82, 82, 82);
  9023. overflow: auto;
  9024. text-indent: 5px;
  9025. background: #f7f6f9;
  9026. border-radius: 10px;
  9027. }
  9028. .elist_input_box .elist_inptu_text input {
  9029. width: 500px;
  9030. }
  9031. .elist_input_box>>>.el-rate__icon {
  9032. font-size: 24px;
  9033. }
  9034. .isClick {
  9035. background: #4d9def;
  9036. }
  9037. .bzBox {
  9038. display: flex;
  9039. flex-direction: row;
  9040. align-items: center;
  9041. }
  9042. .bzBox>div:nth-child(1) {
  9043. width: 4px;
  9044. height: 40px;
  9045. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  9046. }
  9047. .bzBox>div:nth-child(2) {
  9048. font-size: 23px;
  9049. font-weight: bold;
  9050. padding: 0px 0px 0 10px;
  9051. }
  9052. .navTitile {
  9053. padding: 0 0px 0 15px;
  9054. background: #1e5cc9;
  9055. color: #fff;
  9056. height: 40px;
  9057. line-height: 40px;
  9058. border-top-left-radius: 10px;
  9059. border-top-right-radius: 10px;
  9060. }
  9061. .isTypeOne {
  9062. width: 240px;
  9063. height: 170px;
  9064. /* border: 1px solid #f8f8f8; */
  9065. border-radius: 10px;
  9066. box-shadow: 0 0 6px 1px #dfdada;
  9067. }
  9068. .e_add_top {
  9069. display: flex;
  9070. justify-content: space-between;
  9071. padding: 20px 20px 0 20px;
  9072. border-radius: 3px;
  9073. background: #fff;
  9074. }
  9075. .e_add_title2 {
  9076. display: flex;
  9077. align-items: center;
  9078. }
  9079. .e_add_title2 span {
  9080. width: 40px;
  9081. }
  9082. .e_add_title {
  9083. display: flex;
  9084. align-items: center;
  9085. color: #b8b8b8;
  9086. font-size: 18px;
  9087. position: relative;
  9088. height: 40px;
  9089. }
  9090. .e_add_title span {
  9091. margin-right: 10px;
  9092. }
  9093. .e_add_title .el_input {
  9094. width: 300px;
  9095. }
  9096. .e_add_title>>>.el-input__inner {
  9097. width: 400px;
  9098. }
  9099. .e_add_btn {}
  9100. .e_add_content {
  9101. display: flex;
  9102. width: 100%;
  9103. max-width: 650px;
  9104. height: 550px;
  9105. }
  9106. .e_add_list {
  9107. background: #fff;
  9108. height: 500px;
  9109. width: 210px;
  9110. position: relative;
  9111. margin: 15px 5px 0 0;
  9112. flex-shrink: 0;
  9113. display: flex;
  9114. flex-direction: column;
  9115. }
  9116. .e_add_list_title {
  9117. font-size: 20px;
  9118. width: 100%;
  9119. box-sizing: border-box;
  9120. padding: 15px 40px;
  9121. text-align: center;
  9122. border-bottom: 1px solid #eaeaea;
  9123. position: relative;
  9124. display: flex;
  9125. align-items: center;
  9126. justify-content: center;
  9127. height: 57px;
  9128. background: #f6f6f6;
  9129. }
  9130. .e_add_list_title span {
  9131. overflow: hidden;
  9132. white-space: nowrap;
  9133. text-overflow: ellipsis;
  9134. }
  9135. .e_add_list_title img {
  9136. position: absolute;
  9137. right: 15px;
  9138. width: 25px;
  9139. cursor: pointer;
  9140. top: 50%;
  9141. transform: translateY(-50%);
  9142. }
  9143. .e_add_list_body {
  9144. height: calc(100% - 187px);
  9145. overflow: auto;
  9146. }
  9147. .e_add_list_child {
  9148. width: 100%;
  9149. display: flex;
  9150. align-items: center;
  9151. justify-content: center;
  9152. position: relative;
  9153. box-sizing: border-box;
  9154. padding: 15px 40px;
  9155. text-align: center;
  9156. }
  9157. .e_add_list_child span {
  9158. overflow: hidden;
  9159. white-space: nowrap;
  9160. text-overflow: ellipsis;
  9161. cursor: pointer;
  9162. }
  9163. .e_add_list_child img {
  9164. position: absolute;
  9165. right: 10px;
  9166. width: 21px;
  9167. cursor: pointer;
  9168. top: 50%;
  9169. transform: translateY(-50%);
  9170. }
  9171. .e_add_list_child+.e_add_list_child {
  9172. border-top: 1px solid #eaeaea;
  9173. }
  9174. .e_add_list_child .active {
  9175. color: #409eff;
  9176. }
  9177. .e_add_list_btn {
  9178. position: absolute;
  9179. bottom: 0;
  9180. height: 50px;
  9181. background: rgb(120, 120, 254);
  9182. width: 100%;
  9183. color: #fff;
  9184. font-size: 16px;
  9185. text-align: center;
  9186. line-height: 50px;
  9187. cursor: pointer;
  9188. }
  9189. .e_add_list_detail {
  9190. position: absolute;
  9191. bottom: 0;
  9192. height: 130px;
  9193. background: rgb(120, 120, 254);
  9194. width: 100%;
  9195. color: #fff;
  9196. font-size: 16px;
  9197. display: flex;
  9198. align-items: center;
  9199. justify-content: center;
  9200. }
  9201. .e_add_list_detail textarea {
  9202. height: 90%;
  9203. width: 95%;
  9204. border: none;
  9205. resize: none;
  9206. outline: none;
  9207. padding: 5px;
  9208. box-sizing: border-box;
  9209. }
  9210. .e_add_list_pbox {
  9211. width: 100%;
  9212. max-width: 650px;
  9213. /* height: 600px; */
  9214. }
  9215. .e_add_list_pbox_title {
  9216. height: 50px;
  9217. background: #fff;
  9218. display: flex;
  9219. align-items: center;
  9220. width: 100%;
  9221. box-sizing: border-box;
  9222. padding: 0 20px;
  9223. }
  9224. .type_title {
  9225. font-size: 18px;
  9226. font-weight: 700;
  9227. }
  9228. .type_content {
  9229. font-size: 16px;
  9230. margin-left: 30px;
  9231. }
  9232. .type_content span+span {
  9233. margin-left: 20px;
  9234. }
  9235. .type_content span {
  9236. cursor: pointer;
  9237. padding-bottom: 5px;
  9238. box-sizing: border-box;
  9239. }
  9240. .type_content .active {
  9241. color: #409eff;
  9242. border-bottom: 2px solid #409eff;
  9243. }
  9244. .e_add_list_pbox_content {
  9245. height: calc(100% - 50px);
  9246. display: flex;
  9247. align-items: center;
  9248. width: 100%;
  9249. background: #fff;
  9250. }
  9251. .evaCss {
  9252. display: flex;
  9253. flex-direction: row;
  9254. flex-wrap: nowrap;
  9255. align-items: flex-start;
  9256. }
  9257. .cru_line {
  9258. position: absolute;
  9259. bottom: 0px;
  9260. transition: all 0.5s;
  9261. left: 0px;
  9262. width: 125px;
  9263. margin-left: -25px;
  9264. }
  9265. .isNoMessage {
  9266. width: 20%;
  9267. margin: 25% auto 0;
  9268. }
  9269. .isNoMessage>img {
  9270. width: 100%;
  9271. height: 100%;
  9272. }
  9273. .fullStyle>>>.el-dialog__body {
  9274. height: 100% !important;
  9275. }
  9276. .fullStyle>>>.el-dialog,
  9277. .fullStyle {
  9278. width: 100% !important;
  9279. max-width: 100% !important;
  9280. height: 100% !important;
  9281. margin: 0 !important;
  9282. }
  9283. .full_diy>>>.el-dialog {
  9284. margin: 0 !important;
  9285. height: 100%;
  9286. padding: 4px;
  9287. }
  9288. .full_diy>>>.el-dialog__body {
  9289. height: calc(100% - 100px);
  9290. }
  9291. .switchCss {
  9292. /* width: 100%; */
  9293. display: flex;
  9294. flex-direction: row;
  9295. flex-wrap: nowrap;
  9296. align-items: center;
  9297. /* justify-content: center; */
  9298. }
  9299. .isClickNav {
  9300. color: #499eef;
  9301. }
  9302. .commentImg {
  9303. width: 25px;
  9304. height: 25px;
  9305. cursor: pointer;
  9306. }
  9307. .commentImg>img {
  9308. width: 100%;
  9309. height: 100%;
  9310. }
  9311. .comment {
  9312. background: #f9f9f9;
  9313. border-radius: 0 0 15px 15px;
  9314. display: flex;
  9315. flex-direction: row;
  9316. flex-wrap: nowrap;
  9317. align-items: center;
  9318. justify-content: flex-end;
  9319. height: 35px;
  9320. }
  9321. .commentList {
  9322. display: flex;
  9323. flex-direction: row;
  9324. flex-wrap: nowrap;
  9325. align-items: center;
  9326. justify-content: center;
  9327. align-content: center;
  9328. /* margin-left: 15px; */
  9329. margin-left: 8px;
  9330. }
  9331. .scoreImg {
  9332. width: 17px;
  9333. height: 17px;
  9334. }
  9335. .studentDetail {
  9336. display: flex;
  9337. flex-direction: row;
  9338. flex-wrap: nowrap;
  9339. /* align-items: center; */
  9340. align-items: flex-start;
  9341. }
  9342. .tx {
  9343. width: 50px;
  9344. }
  9345. .tx>img {
  9346. width: 100%;
  9347. height: 100%;
  9348. }
  9349. .nameAndTime {
  9350. display: flex;
  9351. flex-direction: column;
  9352. flex-wrap: nowrap;
  9353. align-items: flex-start;
  9354. margin-left: 10px;
  9355. }
  9356. .worksAnswer {
  9357. color: #4078dd;
  9358. margin: 10px 0;
  9359. font-size: 16px;
  9360. position: relative;
  9361. }
  9362. .worksAnswer>img {
  9363. width: 500px;
  9364. height: 300px;
  9365. object-fit: contain;
  9366. margin: 0 auto;
  9367. display: block;
  9368. }
  9369. .commentTop {
  9370. border-bottom: 1px solid #eaeaea;
  9371. padding-bottom: 10px;
  9372. }
  9373. .commentBox {
  9374. padding-top: 15px;
  9375. }
  9376. .pl {
  9377. font-size: 18px;
  9378. }
  9379. .plName {
  9380. display: flex;
  9381. flex-direction: row;
  9382. flex-wrap: nowrap;
  9383. align-items: baseline;
  9384. color: #78787a;
  9385. }
  9386. .evalCss {
  9387. background: #fff;
  9388. font-size: 18px;
  9389. }
  9390. .nav {
  9391. color: #9d9d9d;
  9392. padding: 5px 0 15px 20px;
  9393. }
  9394. .middleBox {
  9395. padding: 5px 0 15px 20px;
  9396. }
  9397. .pfBox {
  9398. padding-bottom: 30px;
  9399. }
  9400. .nameAndrate {
  9401. display: flex;
  9402. flex-direction: row;
  9403. flex-wrap: nowrap;
  9404. align-items: center;
  9405. padding-bottom: 10px;
  9406. }
  9407. .nameAndrate>div {
  9408. margin-left: 10px;
  9409. color: #000;
  9410. }
  9411. .pfBox>div:nth-child(2) {
  9412. background: #f7f6f9;
  9413. width: 400px;
  9414. min-height: 45px;
  9415. border-radius: 10px;
  9416. font-size: 16px;
  9417. display: flex;
  9418. flex-wrap: wrap;
  9419. align-items: center;
  9420. padding: 10px 20px;
  9421. box-sizing: border-box;
  9422. color: #000;
  9423. }
  9424. .bz {
  9425. display: flex;
  9426. flex-direction: row;
  9427. flex-wrap: nowrap;
  9428. align-items: flex-start;
  9429. }
  9430. .bz>div {
  9431. padding: 0 10px;
  9432. }
  9433. .select_box2_title {
  9434. background: #fff;
  9435. border-radius: 5px;
  9436. padding: 15px 10px;
  9437. box-sizing: border-box;
  9438. margin-bottom: 10px;
  9439. display: flex;
  9440. flex-direction: row;
  9441. flex-wrap: nowrap;
  9442. align-items: center;
  9443. }
  9444. .select_box2_title>div:nth-child(2) {
  9445. margin-left: 10px;
  9446. color: #c4c4c4;
  9447. }
  9448. .select_box2_box {
  9449. display: flex;
  9450. height: 500px;
  9451. }
  9452. .select_box2_img {
  9453. width: calc(100% - 310px);
  9454. height: 100%;
  9455. overflow: auto;
  9456. background: #fff;
  9457. border-radius: 5px;
  9458. }
  9459. .select_box2_img img {
  9460. width: 100%;
  9461. }
  9462. .select_box2_answer {
  9463. background: #fff;
  9464. margin-left: 10px;
  9465. border-radius: 5px;
  9466. width: 300px;
  9467. overflow: auto;
  9468. height: 90%;
  9469. display: flex;
  9470. flex-direction: column;
  9471. align-items: flex-start;
  9472. padding-top: 10px;
  9473. box-sizing: border-box;
  9474. position: relative;
  9475. }
  9476. .select_answer_title {
  9477. padding: 0 0 15px 20px;
  9478. color: #c4c4c4;
  9479. }
  9480. .select_box2_answer_box {
  9481. margin: 0 0 10px 20px;
  9482. width: 85%;
  9483. display: flex;
  9484. flex-direction: row;
  9485. flex-wrap: nowrap;
  9486. align-items: center;
  9487. }
  9488. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  9489. color: #000;
  9490. }
  9491. .upAnswerCss {
  9492. position: absolute;
  9493. bottom: 15px;
  9494. right: 15px;
  9495. }
  9496. .upAnswerCss>>>.el-button {
  9497. width: 95px;
  9498. height: 35px;
  9499. line-height: 35px;
  9500. padding: 0;
  9501. }
  9502. .rightWidthCss {
  9503. width: 60%;
  9504. display: flex;
  9505. flex-direction: row;
  9506. align-items: flex-start;
  9507. }
  9508. .rightAnswer {
  9509. display: flex;
  9510. flex-direction: row;
  9511. flex-wrap: nowrap;
  9512. align-items: center;
  9513. color: red;
  9514. margin-bottom: 31px;
  9515. }
  9516. .rightAnswerCss {
  9517. display: flex;
  9518. flex-direction: column;
  9519. flex-wrap: nowrap;
  9520. padding-top: 60px;
  9521. }
  9522. .blueCss {
  9523. color: #767de1;
  9524. margin-left: 10px;
  9525. }
  9526. .redCss {
  9527. color: red;
  9528. }
  9529. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  9530. color: rgb(0 123 255) !important;
  9531. }
  9532. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  9533. color: rgb(0 123 255) !important;
  9534. }
  9535. .zuoyeYulan {
  9536. padding-top: 15px;
  9537. font-size: 18px;
  9538. display: flex;
  9539. align-items: flex-end;
  9540. }
  9541. .buttonA {
  9542. margin-left: 10px;
  9543. padding: 0;
  9544. }
  9545. .displayBox {
  9546. margin-bottom: 10px;
  9547. display: block;
  9548. border-bottom: 3px solid #eee;
  9549. display: flex;
  9550. align-items: center;
  9551. }
  9552. .easy_comment {
  9553. width: calc(100% - 90px);
  9554. margin-left: 10px;
  9555. display: flex;
  9556. flex-wrap: wrap;
  9557. }
  9558. .easy_comment>div {
  9559. border: 1px solid #4a4a4a;
  9560. color: #666;
  9561. border-radius: 15px;
  9562. padding: 5px 10px;
  9563. font-size: 16px;
  9564. margin-bottom: 10px;
  9565. margin-right: 5px;
  9566. cursor: pointer;
  9567. }
  9568. .easy_comment div:hover {
  9569. border: 1px solid #f7ba2a;
  9570. color: #c69217;
  9571. }
  9572. .xuan_right_box {
  9573. padding: 10px;
  9574. background: rgb(247, 247, 247);
  9575. margin: 10px 12px;
  9576. border-radius: 5px;
  9577. }
  9578. .tool_right_box {
  9579. display: flex;
  9580. align-items: center;
  9581. }
  9582. .tool_right_box+.tool_right_box {
  9583. margin-top: 10px;
  9584. }
  9585. .right_box_xuan {
  9586. background: rgb(0 123 255);
  9587. color: #fff;
  9588. border-radius: 5px;
  9589. padding: 5px;
  9590. margin-left: 10px;
  9591. }
  9592. .pButton {
  9593. position: fixed;
  9594. /* right: 5%; */
  9595. /* bottom: 5%; */
  9596. color: #fff;
  9597. /* width: 50px;
  9598. height: 50px; */
  9599. /* border-radius: 50%; */
  9600. text-align: center;
  9601. /* line-height: 50px; */
  9602. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  9603. cursor: pointer;
  9604. z-index: 999;
  9605. right: 0;
  9606. top: 83px;
  9607. width: 50px;
  9608. height: 50px;
  9609. background: #fff;
  9610. display: flex;
  9611. align-items: center;
  9612. justify-content: center;
  9613. box-shadow: 0px 0 8px 0px #c5c5c5;
  9614. }
  9615. .pzClass {
  9616. width: calc(100% - 340px);
  9617. }
  9618. .newDialogCss {
  9619. /* position: fixed;
  9620. right: 5%;
  9621. top: 50%;
  9622. width: 340px;
  9623. transform: translateY(-50%);
  9624. height: 60%;
  9625. box-shadow: 0px 0 8px 0px #555555;
  9626. border-radius: 15px;
  9627. z-index: 999; */
  9628. position: fixed;
  9629. right: 0;
  9630. top: 70px;
  9631. width: 340px;
  9632. height: calc(100% - 80px);
  9633. z-index: 999;
  9634. background: #fff;
  9635. border-radius: 15px;
  9636. border-top-right-radius: 0px;
  9637. border-bottom-right-radius: 0px;
  9638. overflow: hidden;
  9639. }
  9640. .pzTop {
  9641. color: #fff;
  9642. background: #000;
  9643. display: flex;
  9644. flex-direction: row;
  9645. flex-wrap: nowrap;
  9646. align-items: center;
  9647. justify-content: space-between;
  9648. height: 40px;
  9649. border-radius: 15px 15px 0 0;
  9650. }
  9651. .pzTop2 .checkbox {
  9652. display: flex;
  9653. align-items: center;
  9654. padding: 15px 30px;
  9655. flex: 0 0 auto;
  9656. font-weight: bold;
  9657. border-bottom: 1px solid #eee;
  9658. justify-content: space-between;
  9659. }
  9660. .pzTop2 .check {
  9661. text-align: center;
  9662. cursor: pointer;
  9663. box-sizing: border-box;
  9664. display: flex;
  9665. }
  9666. .pzTop2 img {
  9667. width: 25px;
  9668. cursor: pointer;
  9669. }
  9670. .pzTop>div:nth-child(1) {
  9671. padding-left: 10px;
  9672. }
  9673. .pzTop>div:nth-child(2) {
  9674. width: 15px;
  9675. height: 15px;
  9676. padding-right: 10px;
  9677. cursor: pointer;
  9678. }
  9679. .pzTop>div:nth-child(2)>img {
  9680. width: 100%;
  9681. height: 100%;
  9682. }
  9683. .pzBox,
  9684. .noPzBox {
  9685. height: calc(100% - 60px);
  9686. /* background: #ededed; */
  9687. background: #fff;
  9688. /* border-radius: 0 0 15px 15px; */
  9689. }
  9690. .noPzBox {
  9691. display: flex;
  9692. flex-direction: column;
  9693. flex-wrap: nowrap;
  9694. justify-content: center;
  9695. align-items: center;
  9696. }
  9697. .pzList {
  9698. background: #f7f7f7;
  9699. width: 90%;
  9700. margin: 0 auto 15px;
  9701. border-radius: 5px;
  9702. }
  9703. .pzNavTop {
  9704. display: flex;
  9705. flex-direction: row;
  9706. flex-wrap: nowrap;
  9707. padding: 10px 10px 0 10px;
  9708. align-items: center;
  9709. }
  9710. .pzDelete {
  9711. cursor: pointer;
  9712. margin-left: auto;
  9713. font-size: 14px;
  9714. color: #afafaf;
  9715. }
  9716. .pzNavTop>div:nth-child(1) {
  9717. background: #3760af;
  9718. width: 35px;
  9719. height: 35px;
  9720. color: #fff;
  9721. text-align: center;
  9722. line-height: 35px;
  9723. border-radius: 50%;
  9724. font-size: 14px;
  9725. }
  9726. .pzNavTop>div:nth-child(2) {
  9727. font-size: 18px;
  9728. color: #959595;
  9729. margin-left: 5px;
  9730. }
  9731. .pzContent {
  9732. padding: 10px;
  9733. word-break: break-word;
  9734. }
  9735. .pzContent audio {
  9736. width: 100%;
  9737. }
  9738. .pzContent audio::-webkit-media-controls-panel {
  9739. background: #fff;
  9740. }
  9741. .pzListBox {
  9742. padding-top: 15px;
  9743. height: calc(100% - 60px);
  9744. overflow: auto;
  9745. }
  9746. .addPzButton {
  9747. position: relative;
  9748. margin-top: 3px;
  9749. width: 100%;
  9750. }
  9751. .addPzButton .img1 {
  9752. position: absolute;
  9753. top: 50%;
  9754. right: 25px;
  9755. transform: translateY(-50%);
  9756. height: 100%;
  9757. display: flex;
  9758. align-items: center;
  9759. }
  9760. .addPzButton .img1 div {
  9761. display: flex;
  9762. }
  9763. .addPzButton .img1 div img {
  9764. width: 28px;
  9765. margin-left: 10px;
  9766. cursor: pointer;
  9767. }
  9768. .addPzButton .img1 div span {
  9769. font-size: 14px;
  9770. margin: 4px 0 0 3px;
  9771. color: #afafaf;
  9772. }
  9773. .addPz {
  9774. background: #4b79ce;
  9775. width: 100px;
  9776. color: #fff;
  9777. font-size: 12px;
  9778. height: 30px;
  9779. margin: 0 auto;
  9780. text-align: center;
  9781. line-height: 30px;
  9782. border-radius: 10px;
  9783. cursor: pointer;
  9784. }
  9785. .addDialogCss {
  9786. position: fixed;
  9787. right: 37%;
  9788. top: 50%;
  9789. width: 600px;
  9790. transform: translateY(-50%);
  9791. height: 70%;
  9792. min-height: 450px;
  9793. box-shadow: 0px 0 8px 0px #555555;
  9794. border-radius: 15px;
  9795. z-index: 999;
  9796. }
  9797. .teacherPz {
  9798. display: flex;
  9799. flex-direction: row;
  9800. align-items: center;
  9801. flex-wrap: nowrap;
  9802. }
  9803. .teacherPzImg {
  9804. width: 30px;
  9805. height: 30px;
  9806. }
  9807. .teacherPzImg>img {
  9808. width: 100%;
  9809. height: 100%;
  9810. }
  9811. .addPzBox {
  9812. height: calc(100% - 40px);
  9813. background: #ededed;
  9814. }
  9815. .pzAudioClass {
  9816. margin: 15px 14px;
  9817. background: #fff;
  9818. height: 100%;
  9819. display: flex;
  9820. justify-content: center;
  9821. align-items: center;
  9822. }
  9823. .pzConText {
  9824. width: 95%;
  9825. height: 100%;
  9826. margin: 10px auto 0;
  9827. border: none;
  9828. background: #fff;
  9829. border-radius: 0px;
  9830. }
  9831. .pzConText>>>.text {
  9832. height: calc(100% - 82px);
  9833. }
  9834. .addTextCss {
  9835. background: #4b79ce;
  9836. width: 80px;
  9837. height: 30px;
  9838. text-align: center;
  9839. color: #fff;
  9840. line-height: 30px;
  9841. border-radius: 10px;
  9842. margin: 10px auto 0;
  9843. cursor: pointer;
  9844. }
  9845. .pzConText:focus-visible {
  9846. border: none !important;
  9847. }
  9848. .maxWidth {
  9849. width: 1000px;
  9850. }
  9851. .noPz {
  9852. width: 150px;
  9853. margin: 0 auto 20%;
  9854. }
  9855. .noPz>img {
  9856. width: 100%;
  9857. height: 100%;
  9858. }
  9859. .pzList .time {
  9860. text-align: right;
  9861. box-sizing: border-box;
  9862. padding: 0 10px 10px 0px;
  9863. color: #949494;
  9864. font-size: 14px;
  9865. }
  9866. /* table 样式 */
  9867. .cont>>>table {
  9868. border-top: 1px solid #ccc;
  9869. border-left: 1px solid #ccc;
  9870. }
  9871. .cont>>>table td,
  9872. .cont>>>table th {
  9873. border-bottom: 1px solid #ccc;
  9874. border-right: 1px solid #ccc;
  9875. padding: 15px 5px;
  9876. }
  9877. .cont>>>table th {
  9878. border-bottom: 2px solid #ccc;
  9879. text-align: center;
  9880. }
  9881. /* blockquote 样式 */
  9882. .cont>>>blockquote {
  9883. display: block;
  9884. border-left: 8px solid #d0e5f2;
  9885. padding: 5px 10px;
  9886. margin: 10px 0;
  9887. line-height: 1.4;
  9888. font-size: 100%;
  9889. background-color: #f1f1f1;
  9890. }
  9891. .addPzCheck {
  9892. display: flex;
  9893. flex-direction: row;
  9894. flex-wrap: nowrap;
  9895. padding: 10px 15px 0;
  9896. }
  9897. .addPzCheck span {
  9898. cursor: pointer;
  9899. padding-bottom: 5px;
  9900. font-weight: bold;
  9901. }
  9902. .addPzCheck span+span {
  9903. margin-left: 10px;
  9904. }
  9905. .addPzCheck .isChooseActive {
  9906. color: #3e88f4;
  9907. border-bottom: 2px solid #2f80f3;
  9908. }
  9909. /* code 样式 */
  9910. .cont>>>code {
  9911. display: inline-block;
  9912. *display: inline;
  9913. *zoom: 1;
  9914. background-color: #f1f1f1;
  9915. border-radius: 3px;
  9916. padding: 3px 5px;
  9917. margin: 0 3px;
  9918. }
  9919. .cont>>>pre code {
  9920. display: block;
  9921. }
  9922. /* ul ol 样式 */
  9923. .cont>>>ul,
  9924. ol {
  9925. margin: 10px 0 10px 20px;
  9926. }
  9927. .scoreBox,
  9928. .scoreDetailBox {
  9929. display: flex;
  9930. align-items: center;
  9931. justify-content: flex-start;
  9932. margin-top: 20px;
  9933. font-size: 18px;
  9934. width: 100%;
  9935. }
  9936. .scoreBox .t,
  9937. .scoreDetailBox .t {
  9938. margin-right: 10px;
  9939. width: 100px;
  9940. text-align: right;
  9941. }
  9942. .scoreDetailBox {
  9943. align-items: flex-start;
  9944. }
  9945. .scoreDetailBox>>>.el-textarea {
  9946. width: calc(100% - 200px);
  9947. }
  9948. .scoreBox>>>.el-input {
  9949. width: 130px;
  9950. font-size: 38px;
  9951. }
  9952. .scoreBox>>>.el-input__inner {
  9953. height: 60px;
  9954. }
  9955. .answerScore {
  9956. position: absolute;
  9957. top: 10px;
  9958. right: 10px;
  9959. background: #0000008f;
  9960. border-radius: 5px;
  9961. padding: 3px 5px;
  9962. font-size: 14px;
  9963. color: #fff;
  9964. cursor: pointer;
  9965. }
  9966. .open_box .switch_box {
  9967. width: 100%;
  9968. margin: 0 auto;
  9969. display: flex;
  9970. justify-content: space-between;
  9971. }
  9972. .open_box .switch_box+.switch_box {
  9973. margin-top: 10px;
  9974. }
  9975. .deleteImg {
  9976. width: 25px !important;
  9977. height: 25px !important;
  9978. cursor: pointer;
  9979. position: absolute;
  9980. top: 10px;
  9981. right: 10px;
  9982. }
  9983. .deleteImg2 {
  9984. width: 15px !important;
  9985. height: 15px !important;
  9986. top: 5px;
  9987. right: 5px;
  9988. }
  9989. .rightW {
  9990. right: 40px;
  9991. }
  9992. .drawPBox {
  9993. display: flex;
  9994. flex-direction: column;
  9995. position: relative
  9996. }
  9997. .drawPBox span {
  9998. font-size: 18px;
  9999. color: #606266;
  10000. padding-bottom: 10px;
  10001. margin: 10px 0;
  10002. border-bottom: 1px solid #eaeaea;
  10003. }
  10004. .drawPBox img {
  10005. width: 500px;
  10006. height: 300px;
  10007. object-fit: contain;
  10008. cursor: pointer;
  10009. margin: 0 auto;
  10010. }
  10011. .sentenBox {
  10012. background: #fff;
  10013. height: 450px;
  10014. overflow: auto;
  10015. background-image: url("../assets/icon/conSentences/stuBg.png");
  10016. background-position: 102%;
  10017. background-repeat: no-repeat;
  10018. background-size: 60%;
  10019. }
  10020. .addSen {
  10021. background: #409efe;
  10022. width: 90px;
  10023. color: #fff;
  10024. height: 35px;
  10025. text-align: center;
  10026. line-height: 35px;
  10027. border-radius: 5px;
  10028. float: right;
  10029. margin: 10px 20px 0 0;
  10030. cursor: pointer;
  10031. }
  10032. .sentenTop {
  10033. display: flex;
  10034. flex-direction: row;
  10035. flex-wrap: nowrap;
  10036. align-items: center;
  10037. padding: 55px 0 0 20px;
  10038. box-sizing: border-box;
  10039. }
  10040. .sentenTop>div:nth-child(2) {
  10041. width: 300px;
  10042. margin: 0 15px;
  10043. }
  10044. .sentenTop>div:nth-child(3) {
  10045. background: #409efe;
  10046. color: #fff;
  10047. width: 65px;
  10048. height: 35px;
  10049. text-align: center;
  10050. line-height: 35px;
  10051. border-radius: 5px;
  10052. cursor: pointer;
  10053. }
  10054. .cardList,
  10055. .cardList1 {
  10056. padding: 10px 0 10px 0;
  10057. display: flex;
  10058. flex-direction: row;
  10059. flex-wrap: wrap;
  10060. align-items: center;
  10061. box-sizing: border-box;
  10062. border-bottom: 1px solid #f4f4f4;
  10063. width: 98%;
  10064. margin: 0 auto;
  10065. min-width: 60%;
  10066. max-width: 85%;
  10067. }
  10068. .cardList1 {
  10069. padding: 10px 0 10px 10px !important;
  10070. margin: 0 !important;
  10071. }
  10072. .cardBox {
  10073. display: flex;
  10074. flex-direction: row;
  10075. flex-wrap: wrap;
  10076. align-items: center;
  10077. align-content: center;
  10078. }
  10079. .cardBox>div {
  10080. margin-bottom: 10px;
  10081. }
  10082. .isCard,
  10083. .isChooseCard,
  10084. .noCard,
  10085. .isCard1 {
  10086. width: 130px;
  10087. height: 60px;
  10088. text-align: center;
  10089. line-height: 60px;
  10090. font-size: 20px;
  10091. cursor: pointer;
  10092. background-image: url("../assets/icon/conSentences/titleBorder.png");
  10093. background-size: cover;
  10094. transition: all 2s;
  10095. margin-right: 20px;
  10096. }
  10097. .isCard>div,
  10098. .noCard>div,
  10099. .isCard1>div {
  10100. white-space: nowrap;
  10101. overflow: hidden;
  10102. text-overflow: ellipsis;
  10103. width: 75%;
  10104. margin: 0 auto;
  10105. }
  10106. .noCard {
  10107. background-image: none;
  10108. }
  10109. .isCard1 {
  10110. background-image: url("../assets/icon/conSentences/answerBorder.png");
  10111. }
  10112. .isChooseCard {
  10113. background-image: none;
  10114. border: 1px dashed #b9b9b9;
  10115. border-radius: 10px;
  10116. }
  10117. .card {
  10118. width: 130px;
  10119. height: 60px;
  10120. }
  10121. .card>img {
  10122. width: 100%;
  10123. height: 100%;
  10124. }
  10125. .rightCardBox {
  10126. margin: 10px 0 0 10px;
  10127. }
  10128. .rightCardBox>div:nth-child(1) {
  10129. margin-bottom: 10px;
  10130. }
  10131. .cardCss {
  10132. display: flex;
  10133. flex-direction: column;
  10134. flex-wrap: nowrap;
  10135. align-items: center;
  10136. border-bottom: 3px solid #b4c3d3;
  10137. padding: 0 0 5px 0;
  10138. margin-right: 10px;
  10139. }
  10140. .cardCss>div:nth-child(2) {
  10141. background: #5b7b9d;
  10142. color: #fff;
  10143. width: 20px;
  10144. height: 20px;
  10145. border-radius: 50%;
  10146. text-align: center;
  10147. line-height: 20px;
  10148. }
  10149. .isWrong {
  10150. display: flex;
  10151. flex-direction: row;
  10152. flex-wrap: nowrap;
  10153. align-content: center;
  10154. align-items: center;
  10155. }
  10156. .answerRight {
  10157. width: 25%;
  10158. }
  10159. .isTj {
  10160. display: flex;
  10161. flex-direction: row;
  10162. flex-wrap: nowrap;
  10163. align-items: center;
  10164. }
  10165. .isTj>div:nth-child(2) {
  10166. color: #727070;
  10167. margin-left: 10px;
  10168. }
  10169. .isTjImg {
  10170. width: 30px;
  10171. height: 30px;
  10172. }
  10173. .isTjImg>img {
  10174. width: 100%;
  10175. height: 100%;
  10176. }
  10177. .cardAnswerBox {
  10178. font-size: 18px;
  10179. width: 97%;
  10180. border: 5px;
  10181. padding: 0;
  10182. border-radius: 5px;
  10183. margin: 10px auto;
  10184. word-break: break-word;
  10185. }
  10186. .w_name {
  10187. margin-bottom: 10px;
  10188. }
  10189. .w_name span {
  10190. font-size: 16px;
  10191. }
  10192. .w_teachert {
  10193. width: 50px !important;
  10194. position: absolute;
  10195. height: auto !important;
  10196. z-index: 10;
  10197. right: 25px;
  10198. top: -25px;
  10199. }
  10200. .group_workBox {}
  10201. .group_workBox+.group_workBox {
  10202. margin-top: 20px;
  10203. }
  10204. .group_box {
  10205. padding-bottom: 20px;
  10206. border-bottom: 2px solid #f0f0f0;
  10207. }
  10208. .group_title {
  10209. display: flex;
  10210. align-items: center;
  10211. justify-content: space-between;
  10212. }
  10213. .group_name {
  10214. background-image: url(../assets/icon/groupN.png);
  10215. width: 230px;
  10216. background-size: 100% 100%;
  10217. height: 67px;
  10218. padding: 0 20px 0 43px;
  10219. box-sizing: border-box;
  10220. line-height: 63px;
  10221. color: #fff;
  10222. overflow: hidden;
  10223. white-space: nowrap;
  10224. text-overflow: ellipsis;
  10225. }
  10226. .group_work {
  10227. width: 100%;
  10228. padding: 0 10px;
  10229. box-sizing: border-box;
  10230. }
  10231. .g_d_box {
  10232. display: flex;
  10233. flex-flow: wrap;
  10234. justify-content: space-around;
  10235. }
  10236. .g_d_box .isChair {
  10237. background-image: url(../assets/avatar.png) !important;
  10238. }
  10239. .g_d_group {
  10240. width: 500px;
  10241. margin-bottom: 80px;
  10242. }
  10243. .g_d_group_chair {
  10244. display: flex;
  10245. align-items: center;
  10246. justify-content: center;
  10247. }
  10248. .g_d_group_chair>div+div {
  10249. margin-left: 30px;
  10250. }
  10251. .g_d_group_chair>div,
  10252. .g_d_group_chair2>div {
  10253. display: flex;
  10254. flex-direction: column;
  10255. align-items: center;
  10256. }
  10257. .g_d_group_chair>div>span:nth-child(1),
  10258. .g_d_group_chair2>div>span:nth-child(1) {
  10259. background-image: url(../assets/icon/chair.png);
  10260. width: 50px;
  10261. height: 50px;
  10262. display: block;
  10263. background-size: 100% 100%;
  10264. }
  10265. .g_d_group_tableBox {
  10266. display: flex;
  10267. align-items: center;
  10268. justify-content: center;
  10269. }
  10270. .g_d_group_chair2 {
  10271. display: flex;
  10272. flex-direction: column;
  10273. align-items: center;
  10274. justify-content: center;
  10275. }
  10276. .g_d_group_chair2>div+div {
  10277. margin-top: 10px;
  10278. }
  10279. .g_d_group_table {
  10280. background-image: url(../assets/icon/groupBg.png);
  10281. width: 354px;
  10282. height: 196px;
  10283. background-size: 100% 100%;
  10284. display: flex;
  10285. align-items: center;
  10286. justify-content: center;
  10287. flex-direction: column;
  10288. color: #fff;
  10289. }
  10290. .g_d_group_table>div:nth-child(1) {
  10291. font-size: 24px;
  10292. margin-bottom: 5px;
  10293. }
  10294. .g_d_group_table>div:nth-child(2) div {
  10295. cursor: pointer;
  10296. background: #2e77bf;
  10297. padding: 4px 10px;
  10298. border-radius: 5px;
  10299. }
  10300. .groupBox {}
  10301. .groupContent+.groupContent {
  10302. margin-top: 30px;
  10303. }
  10304. .groupTitle {
  10305. font-size: 24px;
  10306. color: rgb(80, 80, 80);
  10307. margin-bottom: 20px;
  10308. }
  10309. .groupName {
  10310. display: flex;
  10311. align-items: center;
  10312. }
  10313. .groupn {
  10314. font-size: 15px;
  10315. margin-right: 10px;
  10316. }
  10317. .groupName+.groupName {
  10318. margin-top: 15px;
  10319. }
  10320. .groupBtn {
  10321. margin-left: 10px;
  10322. }
  10323. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10324. text-align: left;
  10325. }
  10326. .g_d_btnBox {
  10327. display: flex;
  10328. justify-content: flex-end;
  10329. align-items: flex-end;
  10330. margin-bottom: 20px;
  10331. }
  10332. .updateChair {
  10333. position: relative;
  10334. }
  10335. .updateChairBtn {
  10336. position: absolute;
  10337. width: 50px;
  10338. height: 50px;
  10339. overflow: hidden;
  10340. /* display: flex; */
  10341. align-items: center;
  10342. justify-content: center;
  10343. background: #00000087;
  10344. color: #fff;
  10345. border-radius: 50px;
  10346. display: none;
  10347. cursor: pointer;
  10348. }
  10349. .updateChair:hover .updateChairBtn {
  10350. display: flex;
  10351. }
  10352. .group_staic_box {
  10353. display: flex;
  10354. padding: 30px 40px 10px;
  10355. flex-wrap: wrap;
  10356. }
  10357. .group_staic {
  10358. /* width: 50%; */
  10359. margin-bottom: 20px;
  10360. display: flex;
  10361. align-items: center;
  10362. }
  10363. .group_staic span:nth-child(1) {
  10364. width: 150px;
  10365. text-align: right;
  10366. margin-right: 15px;
  10367. }
  10368. .group_staic span:nth-child(2) {
  10369. background: rgb(0 123 255);
  10370. color: #fff;
  10371. border-radius: 5px;
  10372. padding: 5px;
  10373. }
  10374. </style>