studyStudent.vue 714 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <!-- 任务模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 900px;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. "
  13. >
  14. <div class="btnAllNT">
  15. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  16. <img
  17. src="../../assets/icon/learn/last.png"
  18. @click="nextOrpreSteps(0)"
  19. />
  20. <img
  21. src="../../assets/icon/learn/next.png"
  22. @click="nextOrpreSteps(1)"
  23. />
  24. <img
  25. src="../../assets/icon/learn/return.png"
  26. @click.stop="
  27. goTo(
  28. '/courseDetail?userid=' +
  29. userid +
  30. '&oid=' +
  31. oid +
  32. '&org=' +
  33. org +
  34. '&cid=' +
  35. classId +
  36. '&courseId=' +
  37. id +
  38. '&tType=' +
  39. tType +
  40. '&screenType=' +
  41. screenType
  42. )
  43. "
  44. />
  45. </div>
  46. <div
  47. class="pButton"
  48. style="
  49. left: 0;
  50. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  51. top: 140px;
  52. "
  53. v-if="mlDialog == false"
  54. @click="setContent2(true)"
  55. >
  56. <!-- 批 , getCourseDetail()-->
  57. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  58. </div>
  59. <div class="pb_left" v-else>
  60. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  61. <div
  62. style="border-bottom: 1px solid #cad1dc; padding: 15px 0; width: 100%"
  63. >
  64. <div class="courseTitle">
  65. <div style="
  66. max-width: calc(100% - 40px);
  67. width: auto;
  68. white-space: nowrap;
  69. overflow: hidden;
  70. text-overflow: ellipsis;
  71. word-break: break-word;
  72. display: block;
  73. ">
  74. <el-tooltip
  75. effect="light"
  76. :content="courseDetail.title"
  77. placement="top"
  78. >
  79. <div class="ctitle">
  80. {{ courseDetail.title }}
  81. </div>
  82. </el-tooltip>
  83. </div>
  84. <el-tooltip effect="light" content="收缩" placement="top">
  85. <div class="mlImg" @click="setContent2(false)">
  86. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  87. </div>
  88. </el-tooltip>
  89. </div>
  90. </div>
  91. <div class="cru_selectBox">
  92. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  93. <div class="stageChild" :class="{ navActive: item.isOpen }">
  94. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  95. <div
  96. class="navItem"
  97. :class="{
  98. openTaskActive:
  99. navIndex == taskCount &&
  100. nav.id == navId &&
  101. stageIndex == courseType,
  102. }"
  103. >
  104. <div
  105. @click="openTask(stageIndex, navIndex, nav.id)"
  106. class="navItemList"
  107. :class="{
  108. isItemList:
  109. navIndex == taskCount &&
  110. nav.id == navId &&
  111. stageIndex == courseType,
  112. }"
  113. >
  114. <div>任务{{ navIndex + 1 }}:</div>
  115. <el-tooltip
  116. effect="light"
  117. :content="nav.taskName"
  118. placement="top"
  119. >
  120. <div
  121. :style="{
  122. width:
  123. IsLookOpen && !nav.isLook
  124. ? 'calc(100% - 75px)'
  125. : 'auto',
  126. }"
  127. >
  128. {{ nav.taskName }}
  129. </div>
  130. </el-tooltip>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  139. <div
  140. class="new_top"
  141. style="
  142. position: fixed;
  143. top: 20px;
  144. left: 22%;
  145. width: 77%;
  146. z-index: 999;
  147. border-radius: 12px 12px 0 0;
  148. border-bottom: 1px solid #cad1dc;
  149. padding: 10px 0;
  150. "
  151. :class="{ navLeftCss: !mlDialog }"
  152. >
  153. <div class="courseIndex">
  154. <div>任务{{ taskCount + 1 }}</div>
  155. <el-tooltip
  156. effect="light"
  157. :content="
  158. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  159. "
  160. placement="top"
  161. >
  162. <div>
  163. {{
  164. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  165. .task
  166. }}
  167. </div>
  168. </el-tooltip>
  169. </div>
  170. <div class="btnAll">
  171. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  172. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  173. <div class="returnBtn" @click="refreshCourse">刷新</div>
  174. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  175. 评论
  176. </div>
  177. <div
  178. class="returnBtn vedioIcon"
  179. @click="startRecording"
  180. v-if="!videoStart && (tType == 1 || tType == 4)"
  181. >
  182. 录制
  183. </div>
  184. <!-- <div class="returnBtn" @click="allScrell">全屏</div> -->
  185. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  186. 开始录制
  187. </div>
  188. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  189. style="background: #ee5255">
  190. 下载录制
  191. </div>
  192. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  193. 权限
  194. </div> -->
  195. <div
  196. class="returnBtn returnIcon"
  197. @click.stop="
  198. goTo(
  199. '/courseDetail?userid=' +
  200. userid +
  201. '&oid=' +
  202. oid +
  203. '&org=' +
  204. org +
  205. '&cid=' +
  206. classId +
  207. '&courseId=' +
  208. id +
  209. '&tType=' +
  210. tType +
  211. '&screenType=' +
  212. screenType
  213. )
  214. "
  215. >
  216. 返回
  217. </div>
  218. </div>
  219. </div>
  220. <div
  221. class="isNoMessage"
  222. v-if="
  223. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  224. .chapterData.length == 0 &&
  225. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  226. .toolChoose[0].tool.length == 0 &&
  227. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  228. .taskDetail == '' &&
  229. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  230. .eList &&
  231. !(
  232. courseDetail.userid == userid ||
  233. (courseDetail.course_teacher &&
  234. courseDetail.course_teacher.indexOf(userid) != -1)
  235. )
  236. "
  237. >
  238. <img src="../../assets/icon/isNoMessage.png" alt />
  239. </div>
  240. <div class="study_top" :class="{ pzClass: pzDialog }">
  241. <div
  242. class="vedioBox"
  243. v-if="
  244. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  245. .taskDetail != '' ||
  246. vChapterData[taskCount].length > 0 ||
  247. fileC[taskCount].length > 0
  248. "
  249. >
  250. <div
  251. class="taskBox"
  252. v-if="
  253. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  254. .taskDetail != ''
  255. "
  256. >
  257. <div
  258. style="
  259. display: flex;
  260. flex-wrap: nowrap;
  261. flex-direction: column;
  262. position: relative;
  263. "
  264. >
  265. <div
  266. style="
  267. padding: 20px 0px 15px 0;
  268. line-height: 29px;
  269. font-size: 18px;
  270. color:#0E1E33
  271. "
  272. class="cont"
  273. v-if="
  274. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  275. .taskDetail != ''
  276. "
  277. v-html="
  278. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  279. .taskDetail
  280. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  281. taskCount
  282. ].taskDetail
  283. : '暂无描述'
  284. "
  285. ></div>
  286. </div>
  287. </div>
  288. <div
  289. class="student_head"
  290. v-if="
  291. vChapterData[taskCount].length > 0 ||
  292. fileC[taskCount].length > 0
  293. "
  294. >
  295. <div class="vedioTaskBox">
  296. <div
  297. :class="
  298. contentDialog == false
  299. ? 'box_course isContentCss'
  300. : 'box_course'
  301. "
  302. v-if="
  303. vChapterData.length > 0 &&
  304. vChapterData[taskCount] &&
  305. showType !== ''
  306. "
  307. >
  308. <div class="wheel" style="height: auto" v-if="showType === 0">
  309. <div
  310. class="workd_media"
  311. style="height: 650px; width: calc(100% - 50px)"
  312. >
  313. <video-player
  314. class="video-player vjs-custom-skin"
  315. :class="contentDialog == false ? 'isAllWidth' : ''"
  316. :playsinline="true"
  317. :options="playerO[taskCount]"
  318. @play="onPlayerPlay($event)"
  319. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  320. ></video-player>
  321. </div>
  322. </div>
  323. <div
  324. class="wheel"
  325. v-if="showType == 1"
  326. style="
  327. box-shadow: 0 0 6px 1px #f2f2f2;
  328. width: 95%;
  329. margin: 0 auto;
  330. background: #f1f1f1;
  331. "
  332. >
  333. <div class="title">查看文档</div>
  334. <el-form class="textBox">
  335. <el-form-item class="textTitle">
  336. <div style="font-size: 22px">
  337. {{ text.name }}
  338. </div>
  339. </el-form-item>
  340. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  341. <div v-html="text.url" class="textContent cont"></div>
  342. </el-form>
  343. </div>
  344. <div
  345. class="wheel"
  346. v-if="
  347. pptImgUrl1.indexOf(
  348. 'https://view.officeapps.live.com/op/view.aspx?src='
  349. ) != -1 && showType == 2
  350. "
  351. style="width: 95%; margin: 0 auto"
  352. >
  353. <iframe
  354. style="width: 100%; height: 100%; border: none"
  355. :src="pptImgUrl1"
  356. ></iframe>
  357. </div>
  358. <div
  359. class="wheel"
  360. v-else-if="showType == 2"
  361. style="width: 95%; margin: 0 auto"
  362. >
  363. <iframe
  364. style="width: 100%; height: 100%; border: none"
  365. security="restricted"
  366. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  367. :src="pptImgUrl1"
  368. ></iframe>
  369. </div>
  370. <div
  371. class="wheel"
  372. v-if="showType == 3"
  373. style="width: 95%; margin: 0 auto"
  374. >
  375. <pdf
  376. :pdfUrl="pptImgUrl1"
  377. style="width: 100%; height: 100%; overflow: auto"
  378. ></pdf>
  379. </div>
  380. <div
  381. class="wheel"
  382. v-if="showType == 4"
  383. style="width: 95%; margin: 0 auto"
  384. >
  385. <el-image
  386. :src="pptImgUrl1"
  387. fit="contain"
  388. style="width: 100%; height: 100%; cursor: pointer"
  389. @click="previewImg(pptImgUrl1)"
  390. ></el-image>
  391. </div>
  392. </div>
  393. <div
  394. class="pButton"
  395. style="
  396. position: absolute;
  397. right: 20px;
  398. top: 0;
  399. background: #205cc6;
  400. z-index: 998;
  401. opacity: 0.8;
  402. "
  403. v-if="!contentDialog"
  404. @click="setContent(true)"
  405. >
  406. <!-- 批 -->
  407. <img
  408. src="../../assets/mlBtn.png"
  409. style="width: 25px"
  410. alt=""
  411. />
  412. </div>
  413. <div
  414. v-if="contentDialog == true"
  415. :style="{
  416. width:
  417. (vChapterData[taskCount].length > 0 ||
  418. fileC[taskCount].length > 0) &&
  419. showType === ''
  420. ? 'calc(100%)'
  421. : '300px',
  422. margin:
  423. (vChapterData[taskCount].length > 0 ||
  424. fileC[taskCount].length > 0) &&
  425. showType === ''
  426. ? '0 15px'
  427. : '0 15px 0 0',
  428. }"
  429. >
  430. <div
  431. class="vedioList"
  432. v-if="
  433. vChapterData[taskCount].length > 0 ||
  434. fileC[taskCount].length > 0
  435. "
  436. style="height: 650px"
  437. >
  438. <div class="navCorOpenBox">
  439. <div class="navTitile">内容列表:</div>
  440. <div class="navCorOpen" @click="setContent(false)">
  441. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  442. </div>
  443. </div>
  444. <div class="navBox">
  445. <div
  446. v-show="
  447. vChapterData[taskCount].length > 0 ||
  448. fileC[taskCount].length > 0
  449. "
  450. style="padding: 10px 0 25px 0"
  451. >
  452. <div
  453. class="vedioTimeBox"
  454. v-for="(vitem, vindex) in vChapterData[taskCount]"
  455. :key="vindex + '1'"
  456. >
  457. <div class="navListItem" v-if="vitem.type == 2">
  458. <div
  459. @click="lookVedio(vitem.url, vindex)"
  460. class="navText"
  461. :class="isClickNav == vindex ? 'isClickNav' : ''"
  462. >
  463. <span v-if="vitem.text">{{ vitem.text }}-</span
  464. >{{ vitem.name }}
  465. </div>
  466. <div class="downIcon" @click="downloadFile2(vitem)">
  467. <img
  468. src="../../assets/icon/newIcon/down.png"
  469. alt
  470. />
  471. </div>
  472. </div>
  473. <div class="navListItem" v-if="vitem.type == 6">
  474. <div
  475. @click="lookText(taskCount, vindex)"
  476. class="navText"
  477. :class="isClickNav == vindex ? 'isClickNav' : ''"
  478. >
  479. {{ vitem.name }}.doc
  480. </div>
  481. <div
  482. class="downIcon"
  483. @click="checkFileFull1(vitem.type, vitem)"
  484. >
  485. <img
  486. src="../../assets/icon/newIcon/allScreen.png"
  487. alt
  488. />
  489. </div>
  490. </div>
  491. <div class="navListItem" v-if="vitem.type == 8">
  492. <div
  493. @click="doUrl(vitem.url, vindex)"
  494. class="navText"
  495. :class="isClickNav == vindex ? 'isClickNav' : ''"
  496. >
  497. {{ vitem.title ? vitem.title : vitem.url }}
  498. </div>
  499. <div
  500. class="downIcon"
  501. @click="checkFileFull1(vitem.type, vitem)"
  502. >
  503. <img
  504. src="../../assets/icon/newIcon/allScreen.png"
  505. alt
  506. />
  507. </div>
  508. </div>
  509. <div class="navListItem" v-if="vitem.type == 3">
  510. <div
  511. @click="downFile(vitem, vindex)"
  512. class="navText"
  513. :class="isClickNav == vindex ? 'isClickNav' : ''"
  514. >
  515. <span v-if="vitem.text">{{ vitem.text }}-</span
  516. >{{ vitem.name }}
  517. </div>
  518. <div class="downIcon" @click="downloadFile2(vitem)">
  519. <img src="../../assets/icon/newIcon/down.png" alt />
  520. </div>
  521. <div
  522. class="downIcon"
  523. @click="checkFileFull1(vitem.type, vitem)"
  524. >
  525. <img
  526. src="../../assets/icon/newIcon/allScreen.png"
  527. alt
  528. />
  529. </div>
  530. </div>
  531. <div class="navListItem" v-if="vitem.type == 12">
  532. <div class="navText" @click="downloadFile2(vitem)">
  533. <span v-if="vitem.text">{{ vitem.text }}-</span
  534. >{{ vitem.name }}
  535. </div>
  536. <div class="downIcon" @click="downloadFile2(vitem)">
  537. <img src="../../assets/icon/newIcon/down.png" alt />
  538. </div>
  539. <div
  540. class="downIcon"
  541. @click="checkFileFull1(vitem.type, vitem)"
  542. >
  543. <img
  544. src="../../assets/icon/newIcon/allScreen.png"
  545. alt
  546. />
  547. </div>
  548. </div>
  549. <div class="navListItem" v-if="vitem.type == 13">
  550. <div
  551. class="navText"
  552. @click="checkPhoto(vitem, vindex)"
  553. :class="isClickNav == vindex ? 'isClickNav' : ''"
  554. >
  555. {{ vitem.name }}
  556. </div>
  557. <div class="downIcon" @click="downloadFile2(vitem)">
  558. <img
  559. src="../../assets/icon/newIcon/down.png"
  560. alt
  561. />
  562. </div>
  563. </div>
  564. </div>
  565. <div
  566. class="fileC_box"
  567. v-if="fileC[taskCount].length > 0"
  568. >
  569. <div class="fileC_title">以下文件不支持预览</div>
  570. <div
  571. class="vedioTimeBox"
  572. v-for="(vitem, vindex) in fileC[taskCount]"
  573. :key="vindex + '1'"
  574. >
  575. <div class="navListItem" v-if="vitem.type == 12">
  576. <div class="navText" style="color: #acb4bf">
  577. <span v-if="vitem.text">{{ vitem.text }}-</span
  578. >{{ vitem.name }}
  579. </div>
  580. <div class="downIcon" @click="downloadFile2(vitem)">
  581. <img src="../../assets/icon/newIcon/down.png" alt />
  582. </div>
  583. </div>
  584. </div>
  585. </div>
  586. </div>
  587. </div>
  588. </div>
  589. </div>
  590. </div>
  591. <div style="width: calc(100% - 315px)">
  592. <div
  593. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  594. >
  595. <!-- <el-button
  596. type="primary"
  597. class="newButton"
  598. @click="checkFileFull(showType, pptImgUrl1)"
  599. >全屏查看</el-button
  600. >
  601. <el-button
  602. type="primary"
  603. class="newButton"
  604. @click="downloadFile(pptImgUrl1)"
  605. v-if="showType != 2"
  606. >文件下载</el-button
  607. > -->
  608. <el-button
  609. v-if="
  610. showType == 2 &&
  611. pptImgUrl1.indexOf(
  612. 'https://view.officeapps.live.com/op/view.aspx?src='
  613. ) == -1
  614. "
  615. type="primary"
  616. class="newButton"
  617. @click="openLine(pptImgUrl1)"
  618. >打开链接
  619. </el-button>
  620. </div>
  621. <!-- <div
  622. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  623. v-if="showType == 1"
  624. >
  625. <el-button
  626. type="primary"
  627. class="newButton"
  628. @click="checkFileFull(showType, text)"
  629. >全屏查看</el-button
  630. >
  631. </div> -->
  632. </div>
  633. </div>
  634. </div>
  635. <div
  636. class="student_body"
  637. v-resize="resize"
  638. :style="{
  639. borderRadius:
  640. vChapterData[taskCount].length == 0 &&
  641. fileC[taskCount].length == 0
  642. ? '0 0 20px 20px'
  643. : '20px',
  644. }"
  645. v-if="
  646. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  647. .toolChoose[0].tool &&
  648. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  649. .toolChoose[0].tool.length > 0) ||
  650. courseDetail.userid == userid ||
  651. (courseDetail.course_teacher &&
  652. courseDetail.course_teacher.indexOf(userid) != -1)
  653. "
  654. >
  655. <div
  656. class="vedioBox"
  657. v-if="
  658. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  659. .toolChoose[0].tool &&
  660. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  661. .toolChoose[0].tool.length &&
  662. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  663. .toolChoose[0].tool.length > 0
  664. "
  665. style="padding: 0 37px"
  666. >
  667. <div
  668. class="queTop"
  669. style="
  670. font-size: 20px;
  671. padding: 15px 0 15px 0;
  672. font-weight: bold;
  673. "
  674. >
  675. 发布区
  676. </div>
  677. <div
  678. class="toolHeng2"
  679. style="
  680. position: relative;
  681. border-bottom: 1px solid rgb(215, 219, 225);
  682. "
  683. >
  684. <div
  685. class="filebox"
  686. style="flex-wrap: nowrap"
  687. v-if="
  688. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  689. .toolChoose.length
  690. "
  691. >
  692. <div class="choiceBox">
  693. <div class="bzChild" style="margin-right: 20px">
  694. <span>步骤选择:</span>
  695. </div>
  696. <div class="bzTypeBox">
  697. <div
  698. class="bzChild"
  699. v-for="(bz, bzIndex) in chapInfoList[courseType]
  700. .chapterInfo[0].taskJson[taskCount].toolChoose"
  701. :key="bzIndex"
  702. :class="{ active: toolIndex == bzIndex }"
  703. @click="checkBz(bzIndex)"
  704. >
  705. <span>步骤{{ bzIndex + 1 }}</span>
  706. </div>
  707. </div>
  708. </div>
  709. <div class="bzBox">
  710. <!-- <div class="yCss"></div>
  711. <div>步骤{{ toolIndex + 1 }}</div> -->
  712. <div
  713. style="margin: 0 72px 20px auto"
  714. v-if="tool.tool[0] == 15"
  715. >
  716. <el-button
  717. type="primary"
  718. size="mini"
  719. @click="openWordCloud(toolIndex)"
  720. v-if="tool.tool[0] == 15"
  721. >生成词云</el-button
  722. >
  723. <!-- courseDetail.userid == userid || -->
  724. <!-- <el-button
  725. v-if="courseDetail.userid == userid"
  726. type="primary"
  727. size="mini"
  728. @click="updateToolDetail"
  729. >{{
  730. !isUpdateToolDetail ? "编辑" : "确认修改"
  731. }}</el-button
  732. > -->
  733. </div>
  734. </div>
  735. <div class="toolBox">
  736. <div class="toolBoxSteps" @click="nextToolindex('last')">
  737. <img src="../../assets/icon/leftIcon.png" />
  738. </div>
  739. <div class="toolBoxSteps" @click="nextToolindex('next')">
  740. <img src="../../assets/icon/rightIcon.png" />
  741. </div>
  742. <div>
  743. <div class="noiframeBox">
  744. <div
  745. class="addPoint"
  746. v-for="(tooC, toolCIndex) in tool.tool"
  747. :key="toolCIndex"
  748. >
  749. <div v-show="tooC == 1">
  750. <img
  751. src="../../assets/icon/secondToolList/whiteBoard.png"
  752. alt
  753. @click="addTools(tooC, toolIndex, taskCount)"
  754. />
  755. <div style="margin: 5px 0">电子白板</div>
  756. </div>
  757. <div v-show="tooC == 3">
  758. <img
  759. src="../../assets/icon/secondToolList/mindMapping.png"
  760. alt
  761. @click="addTools(tooC, toolIndex, taskCount)"
  762. />
  763. <div style="margin: 5px 0">思维导图</div>
  764. </div>
  765. <div v-show="tooC == 6">
  766. <img
  767. src="../../assets/icon/secondToolList/doc.png"
  768. alt
  769. @click="addTools(tooC, toolIndex, taskCount)"
  770. />
  771. <div style="margin: 5px 0">协同文档</div>
  772. </div>
  773. <div v-show="tooC == 7">
  774. <img
  775. src="../../assets/icon/secondToolList/mindNetwork.png"
  776. alt
  777. @click="addTools(tooC, toolIndex, taskCount)"
  778. />
  779. <div style="margin: 5px 0">思维网格</div>
  780. </div>
  781. <div v-show="tooC == 8">
  782. <img
  783. src="../../assets/icon/secondToolList/library.png"
  784. alt
  785. @click="addTools(tooC, toolIndex, taskCount)"
  786. />
  787. <div style="margin: 5px 0">素材库</div>
  788. </div>
  789. <div v-show="tooC == 17">
  790. <img
  791. src="../../assets/icon/secondToolList/library.png"
  792. alt
  793. @click="addTools(tooC, toolIndex, taskCount)"
  794. />
  795. <div style="margin: 5px 0">学习资料</div>
  796. </div>
  797. <div v-show="tooC == 2">
  798. <img
  799. @click="addTools(tooC, toolIndex, taskCount)"
  800. src="../../assets/icon/secondToolList/note.png"
  801. alt
  802. />
  803. <div style="margin: 5px 0">便签</div>
  804. </div>
  805. <div v-show="tooC == 4">
  806. <img
  807. @click="addTools(tooC, toolIndex, taskCount)"
  808. src="../../assets/icon/thirdToolList/ask.png"
  809. alt
  810. />
  811. <div style="margin: 5px 0">问卷调查</div>
  812. </div>
  813. <div v-show="tooC == 45">
  814. <img
  815. @click="addTools(tooC, toolIndex, taskCount)"
  816. src="../../assets/icon/thirdToolList/choose.png"
  817. alt
  818. />
  819. <div style="margin: 5px 0">选择题</div>
  820. </div>
  821. <!-- <div v-show="tooC == 5">
  822. <img
  823. @click="addTools(tooC, toolIndex, taskCount)"
  824. src="../../assets/icon/thirdToolList/score.png"
  825. alt
  826. />
  827. <div style="margin: 5px 0">量规评分</div>
  828. </div> -->
  829. <div v-show="tooC == 10">
  830. <img
  831. @click="addTools(tooC, toolIndex, taskCount)"
  832. src="../../assets/icon/thirdToolList/time.png"
  833. alt
  834. />
  835. <div style="margin: 5px 0">倒计时</div>
  836. </div>
  837. <div v-show="tooC == 15">
  838. <img
  839. @click="addTools(tooC, toolIndex, taskCount)"
  840. src="../../assets/icon/thirdToolList/answer.png"
  841. alt
  842. />
  843. <div style="margin: 5px 0">问答工具</div>
  844. </div>
  845. <div v-show="tooC == 26">
  846. <img
  847. @click="addTools(tooC, toolIndex, taskCount)"
  848. src="../../assets/icon/thirdToolList/courseDesign.png"
  849. alt
  850. />
  851. <div style="margin: 5px 0">课程设计</div>
  852. </div>
  853. <div v-show="tooC == 18">
  854. <img
  855. @click="addTools(tooC, toolIndex, taskCount)"
  856. src="../../assets/icon/thirdToolList/trainPlatform.png"
  857. alt
  858. />
  859. <div style="margin: 5px 0">训练服务器</div>
  860. </div>
  861. <div v-show="tooC == 16">
  862. <img
  863. @click="addTools(tooC, toolIndex, taskCount)"
  864. src="../../assets/icon/thirdToolList/work.png"
  865. alt
  866. />
  867. <div style="margin: 5px 0">作业提交</div>
  868. </div>
  869. <div v-show="tooC == 50">
  870. <img
  871. @click="addTools(tooC, toolIndex, taskCount)"
  872. src="../../assets/icon/thirdToolList/plwork.png"
  873. alt
  874. />
  875. <div style="margin: 5px 0">批量上传</div>
  876. </div>
  877. <div v-show="tooC == 21">
  878. <img
  879. @click="addTools(tooC, toolIndex, taskCount)"
  880. src="../../assets/icon/fourthToolList/program.png"
  881. alt
  882. />
  883. <div style="margin: 5px 0">编程平台</div>
  884. </div>
  885. <!-- <div v-show="tooC == 22">
  886. <img
  887. @click="addTools(tooC, toolIndex, taskCount)"
  888. src="../../assets/icon/fourthToolList/program.png"
  889. alt
  890. />
  891. <div style="margin: 5px 0">AI体验</div>
  892. </div> -->
  893. <div v-show="tooC == 23">
  894. <img
  895. @click="addTools(tooC, toolIndex, taskCount)"
  896. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  897. alt
  898. />
  899. <div style="margin: 5px 0">Python</div>
  900. </div>
  901. <div v-show="tooC == 24">
  902. <img
  903. @click="addTools(tooC, toolIndex, taskCount)"
  904. src="../../assets/icon/fourthToolList/AIprogram.png"
  905. alt
  906. />
  907. <div style="margin: 5px 0">AI平台</div>
  908. </div>
  909. <div v-show="tooC == 25">
  910. <img
  911. @click="addTools(tooC, toolIndex, taskCount)"
  912. src="../../assets/icon/thirdToolList/evalua.png"
  913. alt
  914. />
  915. <div style="margin: 5px 0">目标管理</div>
  916. </div>
  917. <div v-show="tooC == 31">
  918. <img
  919. @click="addTools(tooC, toolIndex, taskCount)"
  920. src="../../assets/icon/secondToolList/networkPanel.png"
  921. alt
  922. />
  923. <div style="margin: 5px 0">数学画板</div>
  924. </div>
  925. <div v-show="tooC == 28">
  926. <img
  927. @click="addTools(tooC, toolIndex, taskCount)"
  928. src="../../assets/icon/secondToolList/translation.png"
  929. alt
  930. />
  931. <div style="margin: 5px 0">翻译</div>
  932. </div>
  933. <div v-show="tooC == 37">
  934. <img
  935. @click="addTools(tooC, toolIndex, taskCount)"
  936. src="../../assets/icon/secondToolList/mohe.png"
  937. alt
  938. />
  939. <div style="margin: 5px 0">魔盒识字</div>
  940. </div>
  941. <div v-show="tooC == 38">
  942. <img
  943. @click="addTools(tooC, toolIndex, taskCount)"
  944. src="../../assets/icon/secondToolList/24game.png"
  945. alt
  946. />
  947. <div style="margin: 5px 0">24点</div>
  948. </div>
  949. <div v-show="tooC == 39">
  950. <img
  951. @click="addTools(tooC, toolIndex, taskCount)"
  952. src="../../assets/icon/secondToolList/GeoGebra.png"
  953. alt
  954. />
  955. <div style="margin: 5px 0">GeoGebra</div>
  956. </div>
  957. <div v-show="tooC == 32">
  958. <img
  959. @click="addTools(tooC, toolIndex, taskCount)"
  960. src="../../assets/icon/thirdToolList/code.png"
  961. alt
  962. />
  963. <div style="margin: 5px 0">源码编辑</div>
  964. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  965. style="position: absolute;left: 110px;bottom: 30px;">
  966. 上传文件
  967. <input type="file" accept="*" style="display: none"
  968. @change="beforeUpload1($event, 7, toolIndex)" />
  969. </div> -->
  970. </div>
  971. <!-- <div v-show="tooC == 40">
  972. <img
  973. @click="addTools(tooC, toolIndex, taskCount)"
  974. src="../../assets/icon/secondToolList/eval.png"
  975. alt
  976. />
  977. <div style="margin: 5px 0">个人评价</div>
  978. </div> -->
  979. <div v-show="tooC == 41">
  980. <img
  981. @click="addTools(tooC, toolIndex, taskCount)"
  982. src="../../assets/icon/thirdToolList/select.png"
  983. alt
  984. />
  985. <div style="margin: 5px 0">选择填空</div>
  986. </div>
  987. <div v-show="tooC == 44">
  988. <img
  989. @click="addTools(tooC, toolIndex, taskCount)"
  990. src="../../assets/icon/thirdToolList/hanClass.png"
  991. alt
  992. />
  993. <div style="margin: 5px 0">汉字宫</div>
  994. </div>
  995. <div v-show="tooC == 47">
  996. <img
  997. @click="addTools(tooC, toolIndex, taskCount)"
  998. src="../../assets/icon/fourthToolList/conSentences.png"
  999. alt
  1000. />
  1001. <div style="margin: 5px 0">连词成句</div>
  1002. </div>
  1003. <div v-show="tooC == 48">
  1004. <img
  1005. @click="addTools(tooC, toolIndex, taskCount)"
  1006. src="../../assets/icon/fourthToolList/table.png"
  1007. alt
  1008. />
  1009. <div style="margin: 5px 0">表格</div>
  1010. </div>
  1011. <div v-show="tooC == 52">
  1012. <img
  1013. @click="addTools(tooC, toolIndex, taskCount)"
  1014. src="../../assets/icon/fourthToolList/text.png"
  1015. alt
  1016. />
  1017. <div style="margin: 5px 0">文档</div>
  1018. </div>
  1019. <!-- <div v-show="tooC == 49">
  1020. <img @click="addTools(tooC, toolIndex, taskCount)"
  1021. src="../../assets/icon/fourthToolList/group.png" alt />
  1022. <div style="margin: 5px 0">学生分组</div>
  1023. </div> -->
  1024. <div v-show="tooC == 57">
  1025. <img
  1026. @click="addTools(tooC, toolIndex, taskCount)"
  1027. src="../../assets/icon/fourthToolList/cocopi.png"
  1028. alt
  1029. />
  1030. <div style="margin: 5px 0">CocoPi</div>
  1031. </div>
  1032. <div v-show="tooC == 58">
  1033. <img
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. src="../../assets/icon/fourthToolList/car.png"
  1036. alt
  1037. />
  1038. <div style="margin: 5px 0">模拟驾驶</div>
  1039. </div>
  1040. <div v-show="tooC == 59">
  1041. <img
  1042. @click="addTools(tooC, toolIndex, taskCount)"
  1043. src="../../assets/icon/fourthToolList/lineSearch.png"
  1044. alt
  1045. />
  1046. <div style="margin: 5px 0">路径搜索</div>
  1047. </div>
  1048. <div v-show="tooC == 60">
  1049. <img
  1050. @click="addTools(tooC, toolIndex, taskCount)"
  1051. src="../../assets/icon/fourthToolList/deepLearning.png"
  1052. alt
  1053. />
  1054. <div style="margin: 5px 0">深度学习</div>
  1055. </div>
  1056. <div v-show="tooC == 61">
  1057. <img
  1058. @click="addTools(tooC, toolIndex, taskCount)"
  1059. src="../../assets/icon/fourthToolList/allHistory.png"
  1060. alt
  1061. />
  1062. <div style="margin: 5px 0">全历史</div>
  1063. </div>
  1064. <div v-show="tooC == 62">
  1065. <img
  1066. @click="addTools(tooC, toolIndex, taskCount)"
  1067. src="../../assets/icon/fourthToolList/interVideo.png"
  1068. alt
  1069. />
  1070. <div style="margin: 5px 0">交互视频</div>
  1071. </div>
  1072. <div v-show="tooC == 63">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../../assets/icon/fourthToolList/Wood.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">海龟编程</div>
  1079. </div>
  1080. <div v-if="tooC == 65">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/firstToolList/pickPeople.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">挑人</div>
  1087. </div>
  1088. <div v-if="tooC == 66">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../../assets/icon/secondToolList/formulaEdi.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">公式编辑</div>
  1095. </div>
  1096. <div v-if="tooC == 67">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../../assets/icon/secondToolList/molStr.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">分子结构</div>
  1103. </div>
  1104. <div v-if="tooC == 68">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../../assets/icon/secondToolList/timeAxis.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">时间轴</div>
  1111. </div>
  1112. </div>
  1113. </div>
  1114. </div>
  1115. <div class="tooldetail">
  1116. <!-- <div class="toolTitle">工具描述</div> -->
  1117. <div
  1118. style="height: 100%"
  1119. v-html="
  1120. contentConvent(
  1121. tool.toolDetail ? tool.toolDetail : '暂无描述'
  1122. )
  1123. "
  1124. v-if="!isUpdateToolDetail"
  1125. @click.stop="updateToolDetail"
  1126. ></div>
  1127. <div v-else @click.stop="">
  1128. <el-input
  1129. type="textarea"
  1130. :rows="3"
  1131. resize="none"
  1132. v-model="updateToolDetailInner"
  1133. placeholder="请输入任务描述"
  1134. ></el-input>
  1135. </div>
  1136. </div>
  1137. <el-button
  1138. type="primary"
  1139. v-if="tool.tool[0] == 32"
  1140. style="
  1141. position: absolute;
  1142. right: 30px;
  1143. transform: translateY(-130%);
  1144. "
  1145. @click="addImg($event)"
  1146. >上传作业<input
  1147. type="file"
  1148. accept="*"
  1149. style="display: none"
  1150. @change="beforeUpload1($event, 7, toolIndex)"
  1151. /></el-button>
  1152. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1153. position: absolute;
  1154. right: 30px;
  1155. transform: translateY(-130%);
  1156. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1157. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1158. </div>
  1159. </div>
  1160. </div>
  1161. </div>
  1162. <div
  1163. class="vedioBox"
  1164. v-if="
  1165. arrayToArray(tool.tool, isWorkTool).length &&
  1166. worksTeacher.length &&
  1167. worksTeacher[toolIndex].length &&
  1168. false
  1169. "
  1170. >
  1171. <div
  1172. class="queTop"
  1173. style="
  1174. font-size: 20px;
  1175. padding: 15px 0 15px 30px;
  1176. font-weight: bold;
  1177. "
  1178. >
  1179. 教师工作区
  1180. </div>
  1181. <div class="tool_work_box">
  1182. <div
  1183. v-if="
  1184. tType &&
  1185. ((tType == 2 && sIsOpen == true) ||
  1186. tType == 1 ||
  1187. tType == 4) &&
  1188. tool.tool.indexOf(16) != -1
  1189. "
  1190. class="worksBox"
  1191. >
  1192. <div
  1193. class="zuoyeYulan"
  1194. v-if="
  1195. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1196. "
  1197. >
  1198. <div class="worksTop">
  1199. <div>作业预览</div>
  1200. </div>
  1201. </div>
  1202. <div
  1203. class="worksDetailBox"
  1204. v-if="
  1205. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1206. "
  1207. >
  1208. <div
  1209. class="works"
  1210. style="
  1211. width: 200px;
  1212. height: 140px;
  1213. margin: 10px 10px 10px 0;
  1214. border-radius: 15px;
  1215. box-shadow: 0 0 6px 1px #dfdada;
  1216. "
  1217. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1218. :key="wIndex"
  1219. :class="w.type == 1 ? 'isTypeOne' : ''"
  1220. >
  1221. <div class="workImg" v-if="w.type == 0">
  1222. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1223. <img :src="w.works" @click="previewImg(w.works)" alt />
  1224. <div
  1225. class="answerScore"
  1226. v-if="w.score"
  1227. @click.stop="openScore(w)"
  1228. :class="{
  1229. rightW:
  1230. w.userid == userid ||
  1231. tType == 1 ||
  1232. tType == 4 ||
  1233. w.ateacher == userid,
  1234. }"
  1235. >
  1236. {{ JSON.parse(w.score).wScore }}分
  1237. </div>
  1238. <div
  1239. class="answerScore"
  1240. @click.stop="openScore(w)"
  1241. v-else-if="courseDetail.userid == userid"
  1242. :class="{
  1243. rightW:
  1244. w.userid == userid ||
  1245. tType == 1 ||
  1246. tType == 4 ||
  1247. w.ateacher == userid,
  1248. }"
  1249. >
  1250. 评分
  1251. </div>
  1252. <img
  1253. class="deleteImg"
  1254. src="../../assets/deleteworks.png"
  1255. v-if="w.userid == userid || tType == 1 || tType == 4"
  1256. @click.stop="deleteWorks(w.wid)"
  1257. alt
  1258. />
  1259. </div>
  1260. <div class="workImg" v-if="w.type == 1">
  1261. <img :src="word" @click="openFile(w.works)" alt />
  1262. <!-- @click="openFile(w.works)" -->
  1263. <div
  1264. class="answerScore"
  1265. v-if="w.score"
  1266. @click.stop="openScore(w)"
  1267. :class="{
  1268. rightW:
  1269. w.userid == userid ||
  1270. tType == 1 ||
  1271. tType == 4 ||
  1272. w.ateacher == userid,
  1273. }"
  1274. >
  1275. {{ JSON.parse(w.score).wScore }}分
  1276. </div>
  1277. <div
  1278. class="answerScore"
  1279. @click.stop="openScore(w)"
  1280. v-else-if="courseDetail.userid == userid"
  1281. :class="{
  1282. rightW:
  1283. w.userid == userid ||
  1284. tType == 1 ||
  1285. tType == 4 ||
  1286. w.ateacher == userid,
  1287. }"
  1288. >
  1289. 评分
  1290. </div>
  1291. <img
  1292. class="deleteImg"
  1293. src="../../assets/deleteworks.png"
  1294. v-if="w.userid == userid || tType == 1 || tType == 4"
  1295. @click.stop="deleteWorks(w.wid)"
  1296. alt
  1297. />
  1298. </div>
  1299. <div class="workImg" v-if="w.type == 3">
  1300. <img
  1301. style="cursor: pointer"
  1302. :src="video"
  1303. @click="openVideo(w)"
  1304. alt
  1305. />
  1306. <!-- @click="openVideo(w.works)" -->
  1307. <div
  1308. class="answerScore"
  1309. v-if="w.score"
  1310. @click.stop="openScore(w)"
  1311. :class="{
  1312. rightW:
  1313. w.userid == userid ||
  1314. tType == 1 ||
  1315. tType == 4 ||
  1316. w.ateacher == userid,
  1317. }"
  1318. >
  1319. {{ JSON.parse(w.score).wScore }}分
  1320. </div>
  1321. <div
  1322. class="answerScore"
  1323. @click.stop="openScore(w)"
  1324. v-else-if="courseDetail.userid == userid"
  1325. :class="{
  1326. rightW:
  1327. w.userid == userid ||
  1328. tType == 1 ||
  1329. tType == 4 ||
  1330. w.ateacher == userid,
  1331. }"
  1332. >
  1333. 评分
  1334. </div>
  1335. <img
  1336. class="deleteImg"
  1337. src="../../assets/deleteworks.png"
  1338. v-if="w.userid == userid || tType == 1 || tType == 4"
  1339. @click.stop="deleteWorks(w.wid)"
  1340. alt
  1341. />
  1342. </div>
  1343. <div class="workImg" v-if="w.type == 12">
  1344. <img
  1345. style="cursor: pointer"
  1346. :src="word2"
  1347. @click="downloadFile(w.works)"
  1348. alt
  1349. />
  1350. <!-- @click="openVideo(w.works)" -->
  1351. <div
  1352. class="answerScore"
  1353. v-if="w.score"
  1354. @click.stop="openScore(w)"
  1355. :class="{
  1356. rightW:
  1357. w.userid == userid ||
  1358. tType == 1 ||
  1359. tType == 4 ||
  1360. w.ateacher == userid,
  1361. }"
  1362. >
  1363. {{ JSON.parse(w.score).wScore }}分
  1364. </div>
  1365. <div
  1366. class="answerScore"
  1367. @click.stop="openScore(w)"
  1368. v-else-if="courseDetail.userid == userid"
  1369. :class="{
  1370. rightW:
  1371. w.userid == userid ||
  1372. tType == 1 ||
  1373. tType == 4 ||
  1374. w.ateacher == userid,
  1375. }"
  1376. >
  1377. 评分
  1378. </div>
  1379. <img
  1380. class="deleteImg"
  1381. src="../../assets/deleteworks.png"
  1382. v-if="w.userid == userid || tType == 1 || tType == 4"
  1383. @click.stop="deleteWorks(w.wid)"
  1384. alt
  1385. />
  1386. </div>
  1387. <div class="comment" style="min-width: 200px">
  1388. <div class="worksName">
  1389. <div>{{ w.sName }}</div>
  1390. </div>
  1391. <div class="commentList">
  1392. <div class="commentList">
  1393. <div
  1394. class="commentImg"
  1395. @click="
  1396. isLikes(w.wid, userid, 1, null, w.isLikes)
  1397. "
  1398. >
  1399. <img
  1400. :src="w.isLikes == true ? likes : noLikes"
  1401. alt=""
  1402. />
  1403. </div>
  1404. <div>{{ w.likesCount }}</div>
  1405. </div>
  1406. <div class="commentList" style="margin-right: 15px">
  1407. <div
  1408. class="commentImg"
  1409. @click="commentOther(w, toolIndex, wIndex)"
  1410. >
  1411. <img
  1412. src="../../assets/icon/comment/comment.png"
  1413. alt=""
  1414. />
  1415. </div>
  1416. <div>{{ w.commentCount }}</div>
  1417. </div>
  1418. </div>
  1419. </div>
  1420. </div>
  1421. </div>
  1422. </div>
  1423. <div
  1424. v-if="
  1425. tType &&
  1426. ((tType == 2 && sIsOpen == true) ||
  1427. tType == 1 ||
  1428. tType == 4) &&
  1429. tool.tool.indexOf(32) != -1
  1430. "
  1431. class="worksBox"
  1432. >
  1433. <div
  1434. class="zuoyeYulan"
  1435. v-if="
  1436. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1437. "
  1438. >
  1439. <div class="worksTop">
  1440. <div>作业预览</div>
  1441. </div>
  1442. </div>
  1443. <div
  1444. class="worksDetailBox"
  1445. v-if="
  1446. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1447. "
  1448. >
  1449. <div
  1450. class="works"
  1451. style="
  1452. width: 200px;
  1453. height: 140px;
  1454. margin: 10px 10px 10px 0;
  1455. border-radius: 15px;
  1456. box-shadow: 0 0 6px 1px #dfdada;
  1457. "
  1458. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1459. :key="wIndex"
  1460. :class="w.type == 1 ? 'isTypeOne' : ''"
  1461. >
  1462. <div class="workImg">
  1463. <img :src="word2" @click="downloadFile(w.works)" alt />
  1464. <div
  1465. class="answerScore"
  1466. v-if="w.score"
  1467. @click.stop="openScore(w)"
  1468. :class="{
  1469. rightW:
  1470. w.userid == userid ||
  1471. tType == 1 ||
  1472. tType == 4 ||
  1473. w.ateacher == userid,
  1474. }"
  1475. >
  1476. {{ JSON.parse(w.score).wScore }}分
  1477. </div>
  1478. <div
  1479. class="answerScore"
  1480. @click.stop="openScore(w)"
  1481. v-else-if="courseDetail.userid == userid"
  1482. :class="{
  1483. rightW:
  1484. w.userid == userid ||
  1485. tType == 1 ||
  1486. tType == 4 ||
  1487. w.ateacher == userid,
  1488. }"
  1489. >
  1490. 评分
  1491. </div>
  1492. <img
  1493. class="deleteImg"
  1494. src="../../assets/deleteworks.png"
  1495. v-if="w.userid == userid || tType == 1 || tType == 4"
  1496. @click.stop="deleteWorks(w.wid)"
  1497. alt
  1498. />
  1499. </div>
  1500. <div class="comment" style="min-width: 200px">
  1501. <div class="worksName">
  1502. <div>{{ w.sName }}</div>
  1503. </div>
  1504. <div class="commentList">
  1505. <div class="commentList">
  1506. <div
  1507. class="commentImg"
  1508. @click="
  1509. isLikes(w.wid, userid, 1, null, w.isLikes)
  1510. "
  1511. >
  1512. <img
  1513. :src="w.isLikes == true ? likes : noLikes"
  1514. alt=""
  1515. />
  1516. </div>
  1517. <div>{{ w.likesCount }}</div>
  1518. </div>
  1519. <div class="commentList" style="margin-right: 15px">
  1520. <div
  1521. class="commentImg"
  1522. @click="commentOther(w, toolIndex, wIndex)"
  1523. >
  1524. <img
  1525. src="../../assets/icon/comment/comment.png"
  1526. alt=""
  1527. />
  1528. </div>
  1529. <div>{{ w.commentCount }}</div>
  1530. </div>
  1531. </div>
  1532. </div>
  1533. </div>
  1534. </div>
  1535. </div>
  1536. <div
  1537. v-if="
  1538. tType &&
  1539. ((tType == 2 && sIsOpen == true) ||
  1540. tType == 1 ||
  1541. tType == 4) &&
  1542. tool.tool.indexOf(57) != -1
  1543. "
  1544. class="worksBox"
  1545. >
  1546. <div
  1547. class="zuoyeYulan"
  1548. v-if="
  1549. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1550. "
  1551. >
  1552. <div class="worksTop">
  1553. <div>作业预览</div>
  1554. </div>
  1555. </div>
  1556. <div
  1557. class="worksDetailBox"
  1558. v-if="
  1559. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1560. "
  1561. >
  1562. <div
  1563. class="works"
  1564. style="
  1565. width: 200px;
  1566. height: 140px;
  1567. margin: 10px 10px 10px 0;
  1568. border-radius: 15px;
  1569. box-shadow: 0 0 6px 1px #dfdada;
  1570. "
  1571. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1572. :key="wIndex"
  1573. :class="w.type == 1 ? 'isTypeOne' : ''"
  1574. >
  1575. <div class="workImg">
  1576. <img
  1577. :src="word2"
  1578. @click="downloadFile(w.works)"
  1579. v-if="w.type == 12"
  1580. alt
  1581. />
  1582. <img
  1583. :src="word2"
  1584. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  1585. v-else-if="w.type == 15"
  1586. alt
  1587. />
  1588. <div
  1589. class="answerScore"
  1590. v-if="w.score"
  1591. @click.stop="openScore(w)"
  1592. :class="{
  1593. rightW:
  1594. w.userid == userid ||
  1595. tType == 1 ||
  1596. tType == 4 ||
  1597. w.ateacher == userid,
  1598. }"
  1599. >
  1600. {{ JSON.parse(w.score).wScore }}分
  1601. </div>
  1602. <div
  1603. class="answerScore"
  1604. @click.stop="openScore(w)"
  1605. v-else-if="courseDetail.userid == userid"
  1606. :class="{
  1607. rightW:
  1608. w.userid == userid ||
  1609. tType == 1 ||
  1610. tType == 4 ||
  1611. w.ateacher == userid,
  1612. }"
  1613. >
  1614. 评分
  1615. </div>
  1616. <img
  1617. class="deleteImg"
  1618. src="../../assets/deleteworks.png"
  1619. v-if="w.userid == userid || tType == 1 || tType == 4"
  1620. @click.stop="deleteWorks(w.wid)"
  1621. alt
  1622. />
  1623. </div>
  1624. <div class="comment" style="min-width: 200px">
  1625. <div class="worksName">
  1626. <div>{{ w.sName }}</div>
  1627. </div>
  1628. <div class="commentList">
  1629. <div class="commentList">
  1630. <div
  1631. class="commentImg"
  1632. @click="
  1633. isLikes(w.wid, userid, 1, null, w.isLikes)
  1634. "
  1635. >
  1636. <img
  1637. :src="w.isLikes == true ? likes : noLikes"
  1638. alt=""
  1639. />
  1640. </div>
  1641. <div>{{ w.likesCount }}</div>
  1642. </div>
  1643. <div class="commentList" style="margin-right: 15px">
  1644. <div
  1645. class="commentImg"
  1646. @click="commentOther(w, toolIndex, wIndex)"
  1647. >
  1648. <img
  1649. src="../../assets/icon/comment/comment.png"
  1650. alt=""
  1651. />
  1652. </div>
  1653. <div>{{ w.commentCount }}</div>
  1654. </div>
  1655. </div>
  1656. </div>
  1657. </div>
  1658. </div>
  1659. </div>
  1660. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  1661. <div
  1662. class="zuoyeYulan"
  1663. v-if="
  1664. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1665. "
  1666. >
  1667. <span>作业预览</span>
  1668. </div>
  1669. <div
  1670. class="worksDetailBox"
  1671. v-if="
  1672. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1673. "
  1674. >
  1675. <div
  1676. class="works"
  1677. style="
  1678. width: 200px;
  1679. height: 140px;
  1680. margin: 10px 10px 10px 0;
  1681. border-radius: 15px;
  1682. box-shadow: 0 0 6px 1px #dfdada;
  1683. "
  1684. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1685. :key="wIndex"
  1686. :class="w.type == 1 ? 'isTypeOne' : ''"
  1687. >
  1688. <div class="workImg" v-if="w.type == 0">
  1689. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1690. <img :src="w.works" @click="previewImg(w.works)" alt />
  1691. <div
  1692. class="answerScore"
  1693. v-if="w.score"
  1694. @click.stop="openScore(w)"
  1695. :class="{
  1696. rightW:
  1697. w.userid == userid ||
  1698. tType == 1 ||
  1699. tType == 4 ||
  1700. w.ateacher == userid,
  1701. }"
  1702. >
  1703. {{ JSON.parse(w.score).wScore }}分
  1704. </div>
  1705. <div
  1706. class="answerScore"
  1707. @click.stop="openScore(w)"
  1708. v-else-if="courseDetail.userid == userid"
  1709. :class="{
  1710. rightW:
  1711. w.userid == userid ||
  1712. tType == 1 ||
  1713. tType == 4 ||
  1714. w.ateacher == userid,
  1715. }"
  1716. >
  1717. 评分
  1718. </div>
  1719. <img
  1720. class="deleteImg"
  1721. src="../../assets/deleteworks.png"
  1722. v-if="w.userid == userid || tType == 1 || tType == 4"
  1723. @click.stop="deleteWorks(w.wid)"
  1724. alt
  1725. />
  1726. </div>
  1727. <div
  1728. class="workImg"
  1729. style="cursor: pointer"
  1730. v-if="w.type == 1"
  1731. >
  1732. <img :src="word" @click="openFile(w.works)" alt />
  1733. <!-- @click="openFile(w.works)" -->
  1734. <div
  1735. class="answerScore"
  1736. v-if="w.score"
  1737. @click.stop="openScore(w)"
  1738. :class="{
  1739. rightW:
  1740. w.userid == userid ||
  1741. tType == 1 ||
  1742. tType == 4 ||
  1743. w.ateacher == userid,
  1744. }"
  1745. >
  1746. {{ JSON.parse(w.score).wScore }}分
  1747. </div>
  1748. <div
  1749. class="answerScore"
  1750. @click.stop="openScore(w)"
  1751. v-else-if="courseDetail.userid == userid"
  1752. :class="{
  1753. rightW:
  1754. w.userid == userid ||
  1755. tType == 1 ||
  1756. tType == 4 ||
  1757. w.ateacher == userid,
  1758. }"
  1759. >
  1760. 评分
  1761. </div>
  1762. <img
  1763. class="deleteImg"
  1764. src="../../assets/deleteworks.png"
  1765. v-if="w.userid == userid || tType == 1 || tType == 4"
  1766. @click.stop="deleteWorks(w.wid)"
  1767. alt
  1768. />
  1769. </div>
  1770. <div class="workImg" v-if="w.type == 3">
  1771. <img
  1772. style="cursor: pointer"
  1773. :src="video"
  1774. @click="openVideo(w)"
  1775. alt
  1776. />
  1777. <!-- @click="openVideo(w.works)" -->
  1778. <div
  1779. class="answerScore"
  1780. v-if="w.score"
  1781. @click.stop="openScore(w)"
  1782. :class="{
  1783. rightW:
  1784. w.userid == userid ||
  1785. tType == 1 ||
  1786. tType == 4 ||
  1787. w.ateacher == userid,
  1788. }"
  1789. >
  1790. {{ JSON.parse(w.score).wScore }}分
  1791. </div>
  1792. <div
  1793. class="answerScore"
  1794. @click.stop="openScore(w)"
  1795. v-else-if="courseDetail.userid == userid"
  1796. :class="{
  1797. rightW:
  1798. w.userid == userid ||
  1799. tType == 1 ||
  1800. tType == 4 ||
  1801. w.ateacher == userid,
  1802. }"
  1803. >
  1804. 评分
  1805. </div>
  1806. <img
  1807. class="deleteImg"
  1808. src="../../assets/deleteworks.png"
  1809. v-if="w.userid == userid || tType == 1 || tType == 4"
  1810. @click.stop="deleteWorks(w.wid)"
  1811. alt
  1812. />
  1813. </div>
  1814. <div class="comment" style="min-width: 200px">
  1815. <div class="worksName">
  1816. <div
  1817. style="cursor: pointer"
  1818. @click="
  1819. openSname(w.sName, w.wid, toolIndex, w.userid)
  1820. "
  1821. >
  1822. {{ w.sName }}
  1823. </div>
  1824. </div>
  1825. <div class="commentList">
  1826. <div class="commentList">
  1827. <div
  1828. class="commentImg"
  1829. @click="
  1830. isLikes(w.wid, userid, 1, null, w.isLikes)
  1831. "
  1832. >
  1833. <img
  1834. :src="w.isLikes == true ? likes : noLikes"
  1835. alt=""
  1836. />
  1837. </div>
  1838. <div>{{ w.likesCount }}</div>
  1839. </div>
  1840. <div class="commentList" style="margin-right: 15px">
  1841. <div
  1842. class="commentImg"
  1843. @click="commentOther(w, toolIndex, wIndex)"
  1844. >
  1845. <img
  1846. src="../../assets/icon/comment/comment.png"
  1847. alt=""
  1848. />
  1849. </div>
  1850. <div>{{ w.commentCount }}</div>
  1851. </div>
  1852. </div>
  1853. </div>
  1854. </div>
  1855. </div>
  1856. </div>
  1857. <div
  1858. v-if="
  1859. tType &&
  1860. ((tType == 2 && sIsOpen == true) ||
  1861. tType == 1 ||
  1862. tType == 4) &&
  1863. tool.tool.indexOf(4) != -1
  1864. "
  1865. class="worksBox"
  1866. >
  1867. <div
  1868. class="zuoyeYulan"
  1869. v-if="
  1870. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1871. "
  1872. >
  1873. <div class="worksTop">
  1874. <div>作业预览</div>
  1875. </div>
  1876. </div>
  1877. <div>
  1878. <div
  1879. class="worksDetailBox"
  1880. v-if="
  1881. worksTeacher.length &&
  1882. worksTeacher[toolIndex].length > 0
  1883. "
  1884. >
  1885. <div
  1886. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1887. :key="wIndex"
  1888. class="isWorksName2"
  1889. @click="
  1890. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1891. "
  1892. >
  1893. {{ w.sName }}
  1894. <img
  1895. class="deleteImg deleteImg2"
  1896. src="../../assets/deleteworks.png"
  1897. v-if="w.userid == userid || tType == 1 || tType == 4"
  1898. @click.stop="deleteWorks(w.wid)"
  1899. alt
  1900. />
  1901. </div>
  1902. </div>
  1903. </div>
  1904. </div>
  1905. <div
  1906. v-if="
  1907. tType &&
  1908. ((tType == 2 && sIsOpen == true) ||
  1909. tType == 1 ||
  1910. tType == 4) &&
  1911. tool.tool.indexOf(45) != -1
  1912. "
  1913. class="worksBox"
  1914. >
  1915. <div
  1916. class="zuoyeYulan"
  1917. v-if="
  1918. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1919. "
  1920. >
  1921. <div class="worksTop">
  1922. <div>作业预览</div>
  1923. </div>
  1924. </div>
  1925. <div>
  1926. <div
  1927. class="worksDetailBox"
  1928. v-if="
  1929. worksTeacher.length &&
  1930. worksTeacher[toolIndex].length > 0
  1931. "
  1932. >
  1933. <div
  1934. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1935. :key="wIndex"
  1936. class="isWorksName2"
  1937. @click="
  1938. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1939. "
  1940. >
  1941. {{ w.sName }}
  1942. <img
  1943. class="deleteImg deleteImg2"
  1944. src="../../assets/deleteworks.png"
  1945. v-if="w.userid == userid || tType == 1 || tType == 4"
  1946. @click.stop="deleteWorks(w.wid)"
  1947. alt
  1948. />
  1949. </div>
  1950. </div>
  1951. </div>
  1952. </div>
  1953. <div
  1954. v-if="
  1955. tType &&
  1956. ((tType == 2 && sIsOpen == true) ||
  1957. tType == 1 ||
  1958. tType == 4) &&
  1959. tool.tool.indexOf(15) != -1
  1960. "
  1961. class="worksBox"
  1962. >
  1963. <div
  1964. class="zuoyeYulan"
  1965. v-if="
  1966. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1967. "
  1968. >
  1969. <div class="worksTop">
  1970. <div>作业预览</div>
  1971. </div>
  1972. </div>
  1973. <div
  1974. class="worksDetailBox"
  1975. v-if="
  1976. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1977. "
  1978. >
  1979. <div
  1980. class="works"
  1981. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1982. :key="wIndex"
  1983. >
  1984. <div
  1985. class="workImg"
  1986. style="
  1987. border-radius: 15px;
  1988. box-shadow: #eee 0px 0px 5px 5px;
  1989. "
  1990. >
  1991. <!-- <img
  1992. src="../../assets/icon/works/noImg.png"
  1993. @click="openTools(15, toolIndex, taskCount, w.works)"
  1994. alt=""
  1995. />-->
  1996. <div
  1997. class="answerBg"
  1998. style="border-radius: 15px 15px 0 0"
  1999. @click="commentOther(w, toolIndex, wIndex)"
  2000. >
  2001. <!-- <div>{{ w.sName }}</div> -->
  2002. <div class="answerContent">
  2003. {{ JSON.parse(w.works)[0].answer }}
  2004. </div>
  2005. <div
  2006. class="answerScore"
  2007. v-if="w.score"
  2008. @click.stop="openScore(w)"
  2009. :class="{
  2010. rightW:
  2011. w.userid == userid || tType == 1 || tType == 4,
  2012. }"
  2013. >
  2014. {{ JSON.parse(w.score).wScore }}分
  2015. </div>
  2016. <div
  2017. class="answerScore"
  2018. @click.stop="openScore(w)"
  2019. v-else-if="courseDetail.userid == userid"
  2020. :class="{
  2021. rightW:
  2022. w.userid == userid || tType == 1 || tType == 4,
  2023. }"
  2024. >
  2025. 评分
  2026. </div>
  2027. <img
  2028. class="deleteImg"
  2029. src="../../assets/deleteworks.png"
  2030. v-if="
  2031. w.userid == userid || tType == 1 || tType == 4
  2032. "
  2033. @click.stop="deleteWorks(w.wid)"
  2034. alt
  2035. />
  2036. </div>
  2037. <div class="comment">
  2038. <div class="worksName">
  2039. <div>{{ w.sName }}</div>
  2040. </div>
  2041. <div class="commentList">
  2042. <div
  2043. class="commentImg"
  2044. @click="
  2045. isLikes(w.wid, userid, 1, null, w.isLikes)
  2046. "
  2047. >
  2048. <img
  2049. :src="w.isLikes == true ? likes : noLikes"
  2050. alt=""
  2051. />
  2052. </div>
  2053. <div>{{ w.likesCount }}</div>
  2054. </div>
  2055. <div class="commentList" style="margin-right: 15px">
  2056. <div
  2057. class="commentImg"
  2058. @click="commentOther(w, toolIndex, wIndex)"
  2059. >
  2060. <img
  2061. src="../../assets/icon/comment/comment.png"
  2062. alt=""
  2063. />
  2064. </div>
  2065. <div>{{ w.commentCount }}</div>
  2066. </div>
  2067. </div>
  2068. </div>
  2069. </div>
  2070. </div>
  2071. </div>
  2072. <div
  2073. v-if="
  2074. tType &&
  2075. ((tType == 2 && sIsOpen == true) ||
  2076. tType == 1 ||
  2077. tType == 4) &&
  2078. tool.tool.indexOf(1) != -1
  2079. "
  2080. class="worksBox"
  2081. >
  2082. <div
  2083. class="zuoyeYulan"
  2084. v-if="
  2085. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2086. "
  2087. >
  2088. <div class="worksTop">
  2089. <div>作业预览</div>
  2090. </div>
  2091. </div>
  2092. <div
  2093. class="worksDetailBox"
  2094. v-if="
  2095. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2096. "
  2097. >
  2098. <div
  2099. class="works"
  2100. style="
  2101. width: 200px;
  2102. height: 140px;
  2103. margin: 10px 10px 10px 0;
  2104. border-radius: 15px;
  2105. box-shadow: 0 0 6px 1px #dfdada;
  2106. "
  2107. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2108. :key="wIndex"
  2109. >
  2110. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2111. <div class="workImg">
  2112. <img :src="w.works" @click="previewImg(w.works)" alt />
  2113. <div
  2114. class="answerScore"
  2115. v-if="w.score"
  2116. @click.stop="openScore(w)"
  2117. :class="{
  2118. rightW:
  2119. w.userid == userid || tType == 1 || tType == 4,
  2120. }"
  2121. >
  2122. {{ JSON.parse(w.score).wScore }}分
  2123. </div>
  2124. <div
  2125. class="answerScore"
  2126. @click.stop="openScore(w)"
  2127. v-else-if="courseDetail.userid == userid"
  2128. :class="{
  2129. rightW:
  2130. w.userid == userid || tType == 1 || tType == 4,
  2131. }"
  2132. >
  2133. 评分
  2134. </div>
  2135. <img
  2136. class="deleteImg"
  2137. src="../../assets/deleteworks.png"
  2138. v-if="w.userid == userid || tType == 1 || tType == 4"
  2139. @click.stop="deleteWorks(w.wid)"
  2140. alt
  2141. />
  2142. </div>
  2143. <div class="comment" style="min-width: 200px">
  2144. <div class="worksName">
  2145. <div>{{ w.sName }}</div>
  2146. </div>
  2147. <div class="commentList">
  2148. <div class="commentList">
  2149. <div
  2150. class="commentImg"
  2151. @click="
  2152. isLikes(w.wid, userid, 1, null, w.isLikes)
  2153. "
  2154. >
  2155. <img
  2156. :src="w.isLikes == true ? likes : noLikes"
  2157. alt=""
  2158. />
  2159. </div>
  2160. <div>{{ w.likesCount }}</div>
  2161. </div>
  2162. <div class="commentList" style="margin-right: 15px">
  2163. <div
  2164. class="commentImg"
  2165. @click="commentOther(w, toolIndex, wIndex)"
  2166. >
  2167. <img
  2168. src="../../assets/icon/comment/comment.png"
  2169. alt=""
  2170. />
  2171. </div>
  2172. <div>{{ w.commentCount }}</div>
  2173. </div>
  2174. </div>
  2175. </div>
  2176. </div>
  2177. </div>
  2178. </div>
  2179. <div
  2180. v-if="
  2181. tType &&
  2182. ((tType == 2 && sIsOpen == true) ||
  2183. tType == 1 ||
  2184. tType == 4) &&
  2185. tool.tool.indexOf(3) != -1
  2186. "
  2187. class="worksBox"
  2188. >
  2189. <div
  2190. class="zuoyeYulan"
  2191. v-if="
  2192. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2193. "
  2194. >
  2195. <div class="worksTop">
  2196. <div>作业预览</div>
  2197. </div>
  2198. </div>
  2199. <div
  2200. class="worksDetailBox"
  2201. v-if="
  2202. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2203. "
  2204. >
  2205. <div
  2206. class="works"
  2207. style="
  2208. width: 200px;
  2209. height: 140px;
  2210. margin: 10px 10px 10px 0;
  2211. border-radius: 15px;
  2212. box-shadow: 0 0 6px 1px #dfdada;
  2213. "
  2214. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2215. :key="wIndex"
  2216. >
  2217. <!-- @click="previewImg(w.works)" -->
  2218. <div class="workImg">
  2219. <img :src="w.works" @click="previewImg(w.works)" alt />
  2220. <div
  2221. class="answerScore"
  2222. v-if="w.score"
  2223. @click.stop="openScore(w)"
  2224. :class="{
  2225. rightW:
  2226. w.userid == userid || tType == 1 || tType == 4,
  2227. }"
  2228. >
  2229. {{ JSON.parse(w.score).wScore }}分
  2230. </div>
  2231. <div
  2232. class="answerScore"
  2233. @click.stop="openScore(w)"
  2234. v-else-if="courseDetail.userid == userid"
  2235. :class="{
  2236. rightW:
  2237. w.userid == userid || tType == 1 || tType == 4,
  2238. }"
  2239. >
  2240. 评分
  2241. </div>
  2242. <img
  2243. class="deleteImg"
  2244. src="../../assets/deleteworks.png"
  2245. v-if="w.userid == userid || tType == 1 || tType == 4"
  2246. @click.stop="deleteWorks(w.wid)"
  2247. alt
  2248. />
  2249. </div>
  2250. <div class="comment" style="min-width: 200px">
  2251. <div class="worksName">
  2252. <div>{{ w.sName }}</div>
  2253. </div>
  2254. <div class="commentList">
  2255. <div class="commentList">
  2256. <div
  2257. class="commentImg"
  2258. @click="
  2259. isLikes(w.wid, userid, 1, null, w.isLikes)
  2260. "
  2261. >
  2262. <img
  2263. :src="w.isLikes == true ? likes : noLikes"
  2264. alt=""
  2265. />
  2266. </div>
  2267. <div>{{ w.likesCount }}</div>
  2268. </div>
  2269. <div class="commentList" style="margin-right: 15px">
  2270. <div
  2271. class="commentImg"
  2272. @click="commentOther(w, toolIndex, wIndex)"
  2273. >
  2274. <img
  2275. src="../../assets/icon/comment/comment.png"
  2276. alt=""
  2277. />
  2278. </div>
  2279. <div>{{ w.commentCount }}</div>
  2280. </div>
  2281. </div>
  2282. </div>
  2283. </div>
  2284. </div>
  2285. </div>
  2286. <div
  2287. v-if="
  2288. tType &&
  2289. ((tType == 2 && sIsOpen == true) ||
  2290. tType == 1 ||
  2291. tType == 4) &&
  2292. tool.tool.indexOf(6) != -1
  2293. "
  2294. class="worksBox"
  2295. >
  2296. <div
  2297. class="zuoyeYulan"
  2298. v-if="
  2299. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2300. "
  2301. >
  2302. <div class="worksTop">
  2303. <div>作业预览</div>
  2304. </div>
  2305. </div>
  2306. <div
  2307. class="worksDetailBox"
  2308. v-if="
  2309. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2310. "
  2311. >
  2312. <div
  2313. class="works"
  2314. style="
  2315. width: 200px;
  2316. height: 140px;
  2317. margin: 10px 10px 10px 0;
  2318. border-radius: 15px;
  2319. box-shadow: 0 0 6px 1px #dfdada;
  2320. "
  2321. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2322. :key="wIndex"
  2323. >
  2324. <!-- @click="previewImg(w.works)" -->
  2325. <div class="workImg">
  2326. <img :src="w.works" @click="previewImg(w.works)" alt />
  2327. <div
  2328. class="answerScore"
  2329. v-if="w.score"
  2330. @click.stop="openScore(w)"
  2331. :class="{
  2332. rightW:
  2333. w.userid == userid || tType == 1 || tType == 4,
  2334. }"
  2335. >
  2336. {{ JSON.parse(w.score).wScore }}分
  2337. </div>
  2338. <div
  2339. class="answerScore"
  2340. @click.stop="openScore(w)"
  2341. v-else-if="courseDetail.userid == userid"
  2342. :class="{
  2343. rightW:
  2344. w.userid == userid || tType == 1 || tType == 4,
  2345. }"
  2346. >
  2347. 评分
  2348. </div>
  2349. <img
  2350. class="deleteImg"
  2351. src="../../assets/deleteworks.png"
  2352. v-if="w.userid == userid || tType == 1 || tType == 4"
  2353. @click.stop="deleteWorks(w.wid)"
  2354. alt
  2355. />
  2356. </div>
  2357. <div class="comment" style="min-width: 200px">
  2358. <div class="worksName">
  2359. <div>{{ w.sName }}</div>
  2360. </div>
  2361. <div class="commentList">
  2362. <div class="commentList">
  2363. <div
  2364. class="commentImg"
  2365. @click="
  2366. isLikes(w.wid, userid, 1, null, w.isLikes)
  2367. "
  2368. >
  2369. <img
  2370. :src="w.isLikes == true ? likes : noLikes"
  2371. alt=""
  2372. />
  2373. </div>
  2374. <div>{{ w.likesCount }}</div>
  2375. </div>
  2376. <div class="commentList" style="margin-right: 15px">
  2377. <div
  2378. class="commentImg"
  2379. @click="commentOther(w, toolIndex, wIndex)"
  2380. >
  2381. <img
  2382. src="../../assets/icon/comment/comment.png"
  2383. alt=""
  2384. />
  2385. </div>
  2386. <div>{{ w.commentCount }}</div>
  2387. </div>
  2388. </div>
  2389. </div>
  2390. </div>
  2391. </div>
  2392. </div>
  2393. <div
  2394. v-if="
  2395. tType &&
  2396. ((tType == 2 && sIsOpen == true) ||
  2397. tType == 1 ||
  2398. tType == 4) &&
  2399. tool.tool.indexOf(7) != -1
  2400. "
  2401. class="worksBox"
  2402. >
  2403. <div
  2404. class="zuoyeYulan"
  2405. v-if="
  2406. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2407. "
  2408. >
  2409. <div class="worksTop">
  2410. <div>作业预览</div>
  2411. </div>
  2412. </div>
  2413. <div
  2414. class="worksDetailBox"
  2415. v-if="
  2416. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2417. "
  2418. >
  2419. <div
  2420. class="works"
  2421. style="
  2422. width: 200px;
  2423. height: 140px;
  2424. margin: 10px 10px 10px 0;
  2425. border-radius: 15px;
  2426. box-shadow: 0 0 6px 1px #dfdada;
  2427. "
  2428. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2429. :key="wIndex"
  2430. >
  2431. <!-- @click="previewImg(w.works)" -->
  2432. <div class="workImg">
  2433. <img :src="w.works" @click="previewImg(w.works)" alt />
  2434. <div
  2435. class="answerScore"
  2436. v-if="w.score"
  2437. @click.stop="openScore(w)"
  2438. :class="{
  2439. rightW:
  2440. w.userid == userid || tType == 1 || tType == 4,
  2441. }"
  2442. >
  2443. {{ JSON.parse(w.score).wScore }}分
  2444. </div>
  2445. <div
  2446. class="answerScore"
  2447. @click.stop="openScore(w)"
  2448. v-else-if="courseDetail.userid == userid"
  2449. :class="{
  2450. rightW:
  2451. w.userid == userid || tType == 1 || tType == 4,
  2452. }"
  2453. >
  2454. 评分
  2455. </div>
  2456. <img
  2457. class="deleteImg"
  2458. src="../../assets/deleteworks.png"
  2459. v-if="w.userid == userid || tType == 1 || tType == 4"
  2460. @click.stop="deleteWorks(w.wid)"
  2461. alt
  2462. />
  2463. </div>
  2464. <div class="comment" style="min-width: 200px">
  2465. <div class="worksName">
  2466. <div>{{ w.sName }}</div>
  2467. </div>
  2468. <div class="commentList">
  2469. <div class="commentList">
  2470. <div
  2471. class="commentImg"
  2472. @click="
  2473. isLikes(w.wid, userid, 1, null, w.isLikes)
  2474. "
  2475. >
  2476. <img
  2477. :src="w.isLikes == true ? likes : noLikes"
  2478. alt=""
  2479. />
  2480. </div>
  2481. <div>{{ w.likesCount }}</div>
  2482. </div>
  2483. <div class="commentList" style="margin-right: 15px">
  2484. <div
  2485. class="commentImg"
  2486. @click="commentOther(w, toolIndex, wIndex)"
  2487. >
  2488. <img
  2489. src="../../assets/icon/comment/comment.png"
  2490. alt=""
  2491. />
  2492. </div>
  2493. <div>{{ w.commentCount }}</div>
  2494. </div>
  2495. </div>
  2496. </div>
  2497. </div>
  2498. </div>
  2499. </div>
  2500. <div
  2501. v-if="
  2502. tType &&
  2503. ((tType == 2 && sIsOpen == true) ||
  2504. tType == 1 ||
  2505. tType == 4) &&
  2506. tool.tool.indexOf(26) != -1
  2507. "
  2508. class="worksBox"
  2509. >
  2510. <div
  2511. class="zuoyeYulan"
  2512. v-if="
  2513. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2514. "
  2515. >
  2516. <div class="worksTop">
  2517. <div>作业预览</div>
  2518. </div>
  2519. </div>
  2520. <div
  2521. class="worksDetailBox"
  2522. v-if="
  2523. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2524. "
  2525. >
  2526. <div
  2527. class="works"
  2528. style="width: 240px; height: 140px; overflow: hidden"
  2529. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2530. :key="wIndex"
  2531. :class="w.type == 1 ? 'isTypeOne' : ''"
  2532. >
  2533. <div class="workImg" v-if="w.type == 0">
  2534. <img :src="w.works" @click="previewImg(w.works)" alt />
  2535. <img
  2536. class="deleteImg"
  2537. src="../../assets/deleteworks.png"
  2538. v-if="w.userid == userid || tType == 1 || tType == 4"
  2539. @click.stop="deleteWorks(w.wid)"
  2540. alt
  2541. />
  2542. </div>
  2543. <div class="workImg" v-if="w.type == 1">
  2544. <img :src="word" @click="openFile(w.works)" alt />
  2545. <img
  2546. class="deleteImg"
  2547. src="../../assets/deleteworks.png"
  2548. v-if="w.userid == userid || tType == 1 || tType == 4"
  2549. @click.stop="deleteWorks(w.wid)"
  2550. alt
  2551. />
  2552. </div>
  2553. <div class="worksName">
  2554. <div>{{ w.sName }}</div>
  2555. </div>
  2556. </div>
  2557. </div>
  2558. </div>
  2559. <div
  2560. v-if="
  2561. tType &&
  2562. ((tType == 2 && sIsOpen == true) ||
  2563. tType == 1 ||
  2564. tType == 4) &&
  2565. tool.tool.indexOf(40) != -1
  2566. "
  2567. class="worksBox"
  2568. >
  2569. <div
  2570. class="zuoyeYulan"
  2571. v-if="
  2572. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2573. "
  2574. >
  2575. <div class="worksTop">
  2576. <div>作业预览</div>
  2577. </div>
  2578. </div>
  2579. <div
  2580. class="worksDetailBox"
  2581. v-if="
  2582. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2583. "
  2584. >
  2585. <div
  2586. class="works"
  2587. style="
  2588. width: 200px;
  2589. height: 140px;
  2590. margin: 10px 10px 10px 0;
  2591. border-radius: 15px;
  2592. box-shadow: 0 0 6px 1px #dfdada;
  2593. "
  2594. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2595. :key="wIndex"
  2596. :class="w.type == 1 ? 'isTypeOne' : ''"
  2597. >
  2598. <div class="workImg">
  2599. <img
  2600. src="../../assets/icon/works/noImg.png"
  2601. @click="openPj(w.works, toolIndex)"
  2602. alt
  2603. />
  2604. <img
  2605. class="deleteImg"
  2606. src="../../assets/deleteworks.png"
  2607. v-if="w.userid == userid || tType == 1 || tType == 4"
  2608. @click.stop="deleteWorks(w.wid)"
  2609. alt
  2610. />
  2611. </div>
  2612. <div class="comment" style="min-width: 200px">
  2613. <div class="worksName">
  2614. <div>{{ w.sName }}</div>
  2615. </div>
  2616. <div class="commentList">
  2617. <div class="commentList">
  2618. <div
  2619. class="commentImg"
  2620. @click="
  2621. isLikes(w.wid, userid, 1, null, w.isLikes)
  2622. "
  2623. >
  2624. <img
  2625. :src="w.isLikes == true ? likes : noLikes"
  2626. alt=""
  2627. />
  2628. </div>
  2629. <div>{{ w.likesCount }}</div>
  2630. </div>
  2631. <div class="commentList" style="margin-right: 15px">
  2632. <div
  2633. class="commentImg"
  2634. @click="commentOther(w, toolIndex, wIndex)"
  2635. >
  2636. <img
  2637. src="../../assets/icon/comment/comment.png"
  2638. alt=""
  2639. />
  2640. </div>
  2641. <div>{{ w.commentCount }}</div>
  2642. </div>
  2643. </div>
  2644. </div>
  2645. </div>
  2646. </div>
  2647. </div>
  2648. <div
  2649. v-if="
  2650. tType &&
  2651. ((tType == 2 && sIsOpen == true) ||
  2652. tType == 1 ||
  2653. tType == 4) &&
  2654. tool.tool.indexOf(41) != -1
  2655. "
  2656. class="worksBox"
  2657. >
  2658. <div
  2659. class="zuoyeYulan"
  2660. v-if="
  2661. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2662. "
  2663. >
  2664. <div class="worksTop">
  2665. <div>作业预览</div>
  2666. </div>
  2667. </div>
  2668. <div
  2669. class="worksDetailBox"
  2670. v-if="
  2671. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2672. "
  2673. >
  2674. <div
  2675. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2676. :key="wIndex"
  2677. class="isWorksName2"
  2678. @click="openXz(w, toolIndex)"
  2679. >
  2680. {{ w.sName }}
  2681. <img
  2682. class="deleteImg deleteImg2"
  2683. src="../../assets/deleteworks.png"
  2684. v-if="w.userid == userid || tType == 1 || tType == 4"
  2685. @click.stop="deleteWorks(w.wid)"
  2686. alt
  2687. />
  2688. </div>
  2689. </div>
  2690. </div>
  2691. <div
  2692. v-if="
  2693. tType &&
  2694. ((tType == 2 && sIsOpen == true) ||
  2695. tType == 1 ||
  2696. tType == 4) &&
  2697. tool.tool.indexOf(47) != -1
  2698. "
  2699. class="worksBox"
  2700. >
  2701. <div
  2702. class="zuoyeYulan"
  2703. v-if="
  2704. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2705. "
  2706. >
  2707. <div class="worksTop">
  2708. <div>作业预览</div>
  2709. </div>
  2710. </div>
  2711. <div
  2712. class="worksDetailBox"
  2713. v-if="
  2714. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2715. "
  2716. >
  2717. <!-- @click="openXz(w, toolIndex)" -->
  2718. <div
  2719. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2720. :key="wIndex"
  2721. class="isWorksName2"
  2722. @click="openSen(w, toolIndex)"
  2723. >
  2724. {{ w.sName }}
  2725. <img
  2726. class="deleteImg deleteImg2"
  2727. src="../../assets/deleteworks.png"
  2728. v-if="w.userid == userid || tType == 1 || tType == 4"
  2729. @click.stop="deleteWorks(w.wid)"
  2730. alt
  2731. />
  2732. </div>
  2733. </div>
  2734. </div>
  2735. <div
  2736. v-if="
  2737. tType &&
  2738. ((tType == 2 && sIsOpen == true) ||
  2739. tType == 1 ||
  2740. tType == 4) &&
  2741. tool.tool.indexOf(48) != -1
  2742. "
  2743. class="worksBox"
  2744. >
  2745. <div
  2746. class="zuoyeYulan"
  2747. v-if="
  2748. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2749. "
  2750. >
  2751. <div class="worksTop">
  2752. <div>作业预览</div>
  2753. </div>
  2754. </div>
  2755. <div
  2756. class="worksDetailBox"
  2757. v-if="
  2758. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2759. "
  2760. >
  2761. <div
  2762. class="works"
  2763. style="
  2764. width: 200px;
  2765. height: 140px;
  2766. margin: 10px 10px 10px 0;
  2767. border-radius: 15px;
  2768. box-shadow: 0 0 6px 1px #dfdada;
  2769. "
  2770. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2771. :key="wIndex"
  2772. :class="w.type == 1 ? 'isTypeOne' : ''"
  2773. >
  2774. <div class="workImg">
  2775. <img :src="word" @click="openTable(w)" alt />
  2776. <!-- @click="openFile(w.works)" -->
  2777. <div
  2778. class="answerScore"
  2779. v-if="w.score"
  2780. @click.stop="openScore(w)"
  2781. :class="{
  2782. rightW:
  2783. w.userid == userid ||
  2784. tType == 1 ||
  2785. tType == 4 ||
  2786. w.ateacher == userid,
  2787. }"
  2788. >
  2789. {{ JSON.parse(w.score).wScore }}分
  2790. </div>
  2791. <div
  2792. class="answerScore"
  2793. @click.stop="openScore(w)"
  2794. v-else-if="courseDetail.userid == userid"
  2795. :class="{
  2796. rightW:
  2797. w.userid == userid ||
  2798. tType == 1 ||
  2799. tType == 4 ||
  2800. w.ateacher == userid,
  2801. }"
  2802. >
  2803. 评分
  2804. </div>
  2805. <img
  2806. class="deleteImg"
  2807. src="../../assets/deleteworks.png"
  2808. v-if="w.userid == userid || tType == 1 || tType == 4"
  2809. @click.stop="deleteWorks(w.wid)"
  2810. alt
  2811. />
  2812. </div>
  2813. <div class="comment" style="min-width: 200px">
  2814. <div class="worksName">
  2815. <div>{{ w.sName }}</div>
  2816. </div>
  2817. <div class="commentList">
  2818. <div class="commentList">
  2819. <div
  2820. class="commentImg"
  2821. @click="
  2822. isLikes(w.wid, userid, 1, null, w.isLikes)
  2823. "
  2824. >
  2825. <img
  2826. :src="w.isLikes == true ? likes : noLikes"
  2827. alt=""
  2828. />
  2829. </div>
  2830. <div>{{ w.likesCount }}</div>
  2831. </div>
  2832. <div class="commentList" style="margin-right: 15px">
  2833. <div
  2834. class="commentImg"
  2835. @click="commentOther(w, toolIndex, wIndex)"
  2836. >
  2837. <img
  2838. src="../../assets/icon/comment/comment.png"
  2839. alt=""
  2840. />
  2841. </div>
  2842. <div>{{ w.commentCount }}</div>
  2843. </div>
  2844. </div>
  2845. </div>
  2846. </div>
  2847. </div>
  2848. </div>
  2849. <div
  2850. v-if="
  2851. tType &&
  2852. ((tType == 2 && sIsOpen == true) ||
  2853. tType == 1 ||
  2854. tType == 4) &&
  2855. tool.tool.indexOf(52) != -1
  2856. "
  2857. class="worksBox"
  2858. >
  2859. <div
  2860. class="zuoyeYulan"
  2861. v-if="
  2862. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2863. "
  2864. >
  2865. <div class="worksTop">
  2866. <div>作业预览</div>
  2867. </div>
  2868. </div>
  2869. <div
  2870. class="worksDetailBox"
  2871. v-if="
  2872. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2873. "
  2874. >
  2875. <div
  2876. class="works"
  2877. style="
  2878. width: 200px;
  2879. height: 140px;
  2880. margin: 10px 10px 10px 0;
  2881. border-radius: 15px;
  2882. box-shadow: 0 0 6px 1px #dfdada;
  2883. "
  2884. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2885. :key="wIndex"
  2886. :class="w.type == 1 ? 'isTypeOne' : ''"
  2887. >
  2888. <div class="workImg">
  2889. <img :src="word" @click="openWord(w)" alt />
  2890. <!-- @click="openFile(w.works)" -->
  2891. <div
  2892. class="answerScore"
  2893. v-if="w.score"
  2894. @click.stop="openScore(w)"
  2895. :class="{
  2896. rightW:
  2897. w.userid == userid ||
  2898. tType == 1 ||
  2899. tType == 4 ||
  2900. w.ateacher == userid,
  2901. }"
  2902. >
  2903. {{ JSON.parse(w.score).wScore }}分
  2904. </div>
  2905. <div
  2906. class="answerScore"
  2907. @click.stop="openScore(w)"
  2908. v-else-if="courseDetail.userid == userid"
  2909. :class="{
  2910. rightW:
  2911. w.userid == userid ||
  2912. tType == 1 ||
  2913. tType == 4 ||
  2914. w.ateacher == userid,
  2915. }"
  2916. >
  2917. 评分
  2918. </div>
  2919. <img
  2920. class="deleteImg"
  2921. src="../../assets/deleteworks.png"
  2922. v-if="w.userid == userid || tType == 1 || tType == 4"
  2923. @click.stop="deleteWorks(w.wid)"
  2924. alt
  2925. />
  2926. </div>
  2927. <div class="comment" style="min-width: 200px">
  2928. <div class="worksName">
  2929. <div>{{ w.sName }}</div>
  2930. </div>
  2931. <div class="commentList">
  2932. <div class="commentList">
  2933. <div
  2934. class="commentImg"
  2935. @click="
  2936. isLikes(w.wid, userid, 1, null, w.isLikes)
  2937. "
  2938. >
  2939. <img
  2940. :src="w.isLikes == true ? likes : noLikes"
  2941. alt=""
  2942. />
  2943. </div>
  2944. <div>{{ w.likesCount }}</div>
  2945. </div>
  2946. <div class="commentList" style="margin-right: 15px">
  2947. <div
  2948. class="commentImg"
  2949. @click="commentOther(w, toolIndex, wIndex)"
  2950. >
  2951. <img
  2952. src="../../assets/icon/comment/comment.png"
  2953. alt=""
  2954. />
  2955. </div>
  2956. <div>{{ w.commentCount }}</div>
  2957. </div>
  2958. </div>
  2959. </div>
  2960. </div>
  2961. </div>
  2962. </div>
  2963. </div>
  2964. </div>
  2965. <div class="vedioBox">
  2966. <div
  2967. v-if="
  2968. tType &&
  2969. ((tType == 2 && sIsOpen == true) ||
  2970. tType == 1 ||
  2971. tType == 4) &&
  2972. tool.tool.indexOf(4) != -1 &&
  2973. worksStudent.length &&
  2974. worksStudent[toolIndex].length &&
  2975. (tool.askJson[0].answer || tool.askJson[0].answer === 0) &&
  2976. checkJson[toolIndex].length
  2977. "
  2978. class="xuan_right_box"
  2979. >
  2980. <div
  2981. class="tool_right_box"
  2982. v-for="(item, index) in tool.askJson"
  2983. :key="index"
  2984. >
  2985. <div>
  2986. <span style="word-break: break-all; white-space: normal">{{
  2987. index + 1 + "、" + item.askstitle
  2988. }}</span>
  2989. </div>
  2990. <div class="right_box_xuan">
  2991. <span>正确率</span>
  2992. <span>{{
  2993. (checkJson[toolIndex][index].right
  2994. ? checkJson[toolIndex][index].right
  2995. : 0) + "%"
  2996. }}</span>
  2997. </div>
  2998. </div>
  2999. </div>
  3000. <div
  3001. class="xuan_right_box"
  3002. style="background: unset;padding: 0 10px;"
  3003. v-if="
  3004. tType &&
  3005. ((tType == 2 && sIsOpen == true) ||
  3006. tType == 1 ||
  3007. tType == 4) &&
  3008. tool.tool.indexOf(4) != -1 &&
  3009. worksStudent.length &&
  3010. worksStudent[toolIndex].length
  3011. "
  3012. >
  3013. <AskStatic
  3014. v-if="
  3015. worksStudent.length && worksStudent[toolIndex].length > 0
  3016. "
  3017. :askJSON="tool"
  3018. :checkJson="checkJson[toolIndex]"
  3019. ></AskStatic>
  3020. </div>
  3021. <div
  3022. v-if="
  3023. tType &&
  3024. ((tType == 2 && sIsOpen == true) ||
  3025. tType == 1 ||
  3026. tType == 4) &&
  3027. tool.tool.indexOf(45) != -1 &&
  3028. worksStudent.length &&
  3029. worksStudent[toolIndex].length &&
  3030. (tool.testJson.testJson[0].answer ||
  3031. tool.testJson.testJson[0].answer === 0) &&
  3032. checkJson[toolIndex].length
  3033. "
  3034. class="xuan_right_box"
  3035. >
  3036. <div
  3037. class="tool_right_box"
  3038. v-for="(item, index) in tool.testJson.testJson"
  3039. :key="index"
  3040. >
  3041. <div class="right_box_xuan" style="margin-right: 10px">
  3042. <span>正确率</span>
  3043. <span>{{
  3044. (checkJson[toolIndex][index].right
  3045. ? checkJson[toolIndex][index].right
  3046. : 0) + "%"
  3047. }}</span>
  3048. </div>
  3049. <div>
  3050. <span style="word-break: break-all; white-space: normal">{{
  3051. index + 1 + "、" + item.teststitle
  3052. }}</span>
  3053. </div>
  3054. </div>
  3055. </div>
  3056. <div
  3057. class="xuan_right_box"
  3058. style="background: unset;padding: 0 10px;"
  3059. v-if="
  3060. tType &&
  3061. ((tType == 2 && sIsOpen == true) ||
  3062. tType == 1 ||
  3063. tType == 4) &&
  3064. tool.tool.indexOf(45) != -1 &&
  3065. worksStudent.length &&
  3066. worksStudent[toolIndex].length
  3067. "
  3068. >
  3069. <AskStatic2
  3070. v-if="
  3071. worksStudent.length && worksStudent[toolIndex].length > 0
  3072. "
  3073. :askJSON="tool"
  3074. :checkJson="checkJson[toolIndex]"
  3075. ></AskStatic2>
  3076. </div>
  3077. <div
  3078. v-if="
  3079. tType &&
  3080. ((tType == 2 && sIsOpen == true) ||
  3081. tType == 1 ||
  3082. tType == 4) &&
  3083. tool.tool.indexOf(41) != -1
  3084. "
  3085. >
  3086. <AnswerData2
  3087. v-if="
  3088. worksStudent.length && worksStudent[toolIndex].length > 0
  3089. "
  3090. :problemJson="tool.selectJson.answer"
  3091. :people="worksStudent[toolIndex]"
  3092. ></AnswerData2>
  3093. </div>
  3094. <div
  3095. v-if="
  3096. tType &&
  3097. ((tType == 2 && sIsOpen == true) ||
  3098. tType == 1 ||
  3099. tType == 4) &&
  3100. tool.tool.indexOf(47) != -1
  3101. "
  3102. >
  3103. <AnswerData
  3104. v-if="
  3105. checkJson[toolIndex].length &&
  3106. (tool.sentenceList || tool.sentenceList.length > 0)
  3107. "
  3108. :people="checkJson[toolIndex]"
  3109. ></AnswerData>
  3110. </div>
  3111. </div>
  3112. <div
  3113. class="vedioBox"
  3114. v-if="
  3115. noWorksS[toolIndex].length &&
  3116. arrayToArray(tool.tool, isWorkTool).length &&
  3117. false
  3118. "
  3119. >
  3120. <div
  3121. class="queTop"
  3122. style="
  3123. font-size: 20px;
  3124. padding: 15px 0 15px 30px;
  3125. font-weight: bold;
  3126. "
  3127. >
  3128. 学生工作区
  3129. </div>
  3130. <div class="tool_work_box">
  3131. <div
  3132. v-if="
  3133. tType &&
  3134. ((tType == 2 && sIsOpen == true) ||
  3135. tType == 1 ||
  3136. tType == 4) &&
  3137. tool.tool.indexOf(16) != -1
  3138. "
  3139. class="worksBox"
  3140. >
  3141. <div
  3142. class="zuoyeYulan"
  3143. v-if="
  3144. worksStudent2.length &&
  3145. worksStudent2[toolIndex].length > 0
  3146. "
  3147. >
  3148. <div class="worksTop">
  3149. <div>作业预览</div>
  3150. <div
  3151. class="corOpen"
  3152. @click="contract(toolIndex)"
  3153. v-if="
  3154. worksStudent2[toolIndex].length > 6 &&
  3155. isCloseList[toolIndex].isClose == 0
  3156. "
  3157. >
  3158. 收缩
  3159. </div>
  3160. <div
  3161. class="corOpen"
  3162. @click="contract(toolIndex)"
  3163. v-if="isCloseList[toolIndex].isClose == 1"
  3164. >
  3165. 展开
  3166. </div>
  3167. </div>
  3168. </div>
  3169. <div
  3170. class="worksDetailBox"
  3171. v-if="
  3172. worksStudent2.length &&
  3173. worksStudent2[toolIndex].length > 0
  3174. "
  3175. >
  3176. <div
  3177. class="works"
  3178. style="
  3179. width: 200px;
  3180. height: 140px;
  3181. margin: 10px 10px 10px 0;
  3182. border-radius: 15px;
  3183. box-shadow: 0 0 6px 1px #dfdada;
  3184. "
  3185. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3186. ? worksStudent2[toolIndex]
  3187. : worksStudent2[toolIndex].slice(0, 6)"
  3188. :key="wIndex"
  3189. :class="w.type == 1 ? 'isTypeOne' : ''"
  3190. >
  3191. <div class="workImg" v-if="w.type == 0">
  3192. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3193. <img :src="w.works" @click="previewImg(w.works)" alt />
  3194. <div
  3195. class="answerScore"
  3196. v-if="w.score"
  3197. @click.stop="openScore(w)"
  3198. :class="{
  3199. rightW:
  3200. w.userid == userid ||
  3201. tType == 1 ||
  3202. tType == 4 ||
  3203. w.ateacher == userid,
  3204. }"
  3205. >
  3206. {{ JSON.parse(w.score).wScore }}分
  3207. </div>
  3208. <div
  3209. class="answerScore"
  3210. @click.stop="openScore(w)"
  3211. v-else-if="courseDetail.userid == userid"
  3212. :class="{
  3213. rightW:
  3214. w.userid == userid ||
  3215. tType == 1 ||
  3216. tType == 4 ||
  3217. w.ateacher == userid,
  3218. }"
  3219. >
  3220. 评分
  3221. </div>
  3222. <img
  3223. class="deleteImg"
  3224. src="../../assets/deleteworks.png"
  3225. v-if="w.userid == userid || tType == 1 || tType == 4"
  3226. @click.stop="deleteWorks(w.wid)"
  3227. alt
  3228. />
  3229. </div>
  3230. <div class="workImg" v-if="w.type == 1">
  3231. <img :src="word" @click="openFile(w.works)" alt />
  3232. <!-- @click="openFile(w.works)" -->
  3233. <div
  3234. class="answerScore"
  3235. v-if="w.score"
  3236. @click.stop="openScore(w)"
  3237. :class="{
  3238. rightW:
  3239. w.userid == userid ||
  3240. tType == 1 ||
  3241. tType == 4 ||
  3242. w.ateacher == userid,
  3243. }"
  3244. >
  3245. {{ JSON.parse(w.score).wScore }}分
  3246. </div>
  3247. <div
  3248. class="answerScore"
  3249. @click.stop="openScore(w)"
  3250. v-else-if="courseDetail.userid == userid"
  3251. :class="{
  3252. rightW:
  3253. w.userid == userid ||
  3254. tType == 1 ||
  3255. tType == 4 ||
  3256. w.ateacher == userid,
  3257. }"
  3258. >
  3259. 评分
  3260. </div>
  3261. <img
  3262. class="deleteImg"
  3263. src="../../assets/deleteworks.png"
  3264. v-if="w.userid == userid || tType == 1 || tType == 4"
  3265. @click.stop="deleteWorks(w.wid)"
  3266. alt
  3267. />
  3268. </div>
  3269. <div class="workImg" v-if="w.type == 3">
  3270. <img
  3271. style="cursor: pointer"
  3272. :src="video"
  3273. @click="openVideo(w)"
  3274. alt
  3275. />
  3276. <!-- @click="openVideo(w.works)" -->
  3277. <div
  3278. class="answerScore"
  3279. v-if="w.score"
  3280. @click.stop="openScore(w)"
  3281. :class="{
  3282. rightW:
  3283. w.userid == userid ||
  3284. tType == 1 ||
  3285. tType == 4 ||
  3286. w.ateacher == userid,
  3287. }"
  3288. >
  3289. {{ JSON.parse(w.score).wScore }}分
  3290. </div>
  3291. <div
  3292. class="answerScore"
  3293. @click.stop="openScore(w)"
  3294. v-else-if="courseDetail.userid == userid"
  3295. :class="{
  3296. rightW:
  3297. w.userid == userid ||
  3298. tType == 1 ||
  3299. tType == 4 ||
  3300. w.ateacher == userid,
  3301. }"
  3302. >
  3303. 评分
  3304. </div>
  3305. <img
  3306. class="deleteImg"
  3307. src="../../assets/deleteworks.png"
  3308. v-if="w.userid == userid || tType == 1 || tType == 4"
  3309. @click.stop="deleteWorks(w.wid)"
  3310. alt
  3311. />
  3312. </div>
  3313. <div class="workImg" v-if="w.type == 12">
  3314. <img
  3315. style="cursor: pointer"
  3316. :src="word2"
  3317. @click="downloadFile(w.works)"
  3318. alt
  3319. />
  3320. <!-- @click="openVideo(w.works)" -->
  3321. <div
  3322. class="answerScore"
  3323. v-if="w.score"
  3324. @click.stop="openScore(w)"
  3325. :class="{
  3326. rightW:
  3327. w.userid == userid ||
  3328. tType == 1 ||
  3329. tType == 4 ||
  3330. w.ateacher == userid,
  3331. }"
  3332. >
  3333. {{ JSON.parse(w.score).wScore }}分
  3334. </div>
  3335. <div
  3336. class="answerScore"
  3337. @click.stop="openScore(w)"
  3338. v-else-if="courseDetail.userid == userid"
  3339. :class="{
  3340. rightW:
  3341. w.userid == userid ||
  3342. tType == 1 ||
  3343. tType == 4 ||
  3344. w.ateacher == userid,
  3345. }"
  3346. >
  3347. 评分
  3348. </div>
  3349. <img
  3350. class="deleteImg"
  3351. src="../../assets/deleteworks.png"
  3352. v-if="w.userid == userid || tType == 1 || tType == 4"
  3353. @click.stop="deleteWorks(w.wid)"
  3354. alt
  3355. />
  3356. </div>
  3357. <div class="comment" style="min-width: 200px">
  3358. <div class="worksName">
  3359. <div>{{ w.sName }}</div>
  3360. </div>
  3361. <div class="commentList">
  3362. <div class="commentList">
  3363. <div
  3364. class="commentImg"
  3365. @click="
  3366. isLikes(w.wid, userid, 1, null, w.isLikes)
  3367. "
  3368. >
  3369. <img
  3370. :src="w.isLikes == true ? likes : noLikes"
  3371. alt=""
  3372. />
  3373. </div>
  3374. <div>{{ w.likesCount }}</div>
  3375. </div>
  3376. <div class="commentList" style="margin-right: 15px">
  3377. <div
  3378. class="commentImg"
  3379. @click="commentOther(w, toolIndex, wIndex)"
  3380. >
  3381. <img
  3382. src="../../assets/icon/comment/comment.png"
  3383. alt=""
  3384. />
  3385. </div>
  3386. <div>{{ w.commentCount }}</div>
  3387. </div>
  3388. </div>
  3389. </div>
  3390. </div>
  3391. </div>
  3392. <div class="noWorksS">
  3393. <div
  3394. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3395. :key="sIndex"
  3396. class="noWorksName"
  3397. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3398. :class="{ isWork: s.type == '2' }"
  3399. >
  3400. {{ s.student }}
  3401. </div>
  3402. </div>
  3403. </div>
  3404. <div
  3405. v-if="
  3406. tType &&
  3407. ((tType == 2 && sIsOpen == true) ||
  3408. tType == 1 ||
  3409. tType == 4) &&
  3410. tool.tool.indexOf(32) != -1
  3411. "
  3412. class="worksBox"
  3413. >
  3414. <div
  3415. class="zuoyeYulan"
  3416. v-if="
  3417. worksStudent2.length &&
  3418. worksStudent2[toolIndex].length > 0
  3419. "
  3420. >
  3421. <div class="worksTop">
  3422. <div>作业预览</div>
  3423. <div
  3424. class="corOpen"
  3425. @click="contract(toolIndex)"
  3426. v-if="
  3427. worksStudent2[toolIndex].length > 6 &&
  3428. isCloseList[toolIndex].isClose == 0
  3429. "
  3430. >
  3431. 收缩
  3432. </div>
  3433. <div
  3434. class="corOpen"
  3435. @click="contract(toolIndex)"
  3436. v-if="isCloseList[toolIndex].isClose == 1"
  3437. >
  3438. 展开
  3439. </div>
  3440. </div>
  3441. </div>
  3442. <div
  3443. class="worksDetailBox"
  3444. v-if="
  3445. worksStudent2.length &&
  3446. worksStudent2[toolIndex].length > 0
  3447. "
  3448. >
  3449. <div
  3450. class="works"
  3451. style="
  3452. width: 200px;
  3453. height: 140px;
  3454. margin: 10px 10px 10px 0;
  3455. border-radius: 15px;
  3456. box-shadow: 0 0 6px 1px #dfdada;
  3457. "
  3458. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3459. ? worksStudent2[toolIndex]
  3460. : worksStudent2[toolIndex].slice(0, 6)"
  3461. :key="wIndex"
  3462. :class="w.type == 1 ? 'isTypeOne' : ''"
  3463. >
  3464. <div class="workImg">
  3465. <img :src="word2" @click="downloadFile(w.works)" alt />
  3466. <div
  3467. class="answerScore"
  3468. v-if="w.score"
  3469. @click.stop="openScore(w)"
  3470. :class="{
  3471. rightW:
  3472. w.userid == userid ||
  3473. tType == 1 ||
  3474. tType == 4 ||
  3475. w.ateacher == userid,
  3476. }"
  3477. >
  3478. {{ JSON.parse(w.score).wScore }}分
  3479. </div>
  3480. <div
  3481. class="answerScore"
  3482. @click.stop="openScore(w)"
  3483. v-else-if="courseDetail.userid == userid"
  3484. :class="{
  3485. rightW:
  3486. w.userid == userid ||
  3487. tType == 1 ||
  3488. tType == 4 ||
  3489. w.ateacher == userid,
  3490. }"
  3491. >
  3492. 评分
  3493. </div>
  3494. <img
  3495. class="deleteImg"
  3496. src="../../assets/deleteworks.png"
  3497. v-if="w.userid == userid || tType == 1 || tType == 4"
  3498. @click.stop="deleteWorks(w.wid)"
  3499. alt
  3500. />
  3501. </div>
  3502. <div class="comment" style="min-width: 200px">
  3503. <div class="worksName">
  3504. <div>{{ w.sName }}</div>
  3505. </div>
  3506. <div class="commentList">
  3507. <div class="commentList">
  3508. <div
  3509. class="commentImg"
  3510. @click="
  3511. isLikes(w.wid, userid, 1, null, w.isLikes)
  3512. "
  3513. >
  3514. <img
  3515. :src="w.isLikes == true ? likes : noLikes"
  3516. alt=""
  3517. />
  3518. </div>
  3519. <div>{{ w.likesCount }}</div>
  3520. </div>
  3521. <div class="commentList" style="margin-right: 15px">
  3522. <div
  3523. class="commentImg"
  3524. @click="commentOther(w, toolIndex, wIndex)"
  3525. >
  3526. <img
  3527. src="../../assets/icon/comment/comment.png"
  3528. alt=""
  3529. />
  3530. </div>
  3531. <div>{{ w.commentCount }}</div>
  3532. </div>
  3533. </div>
  3534. </div>
  3535. </div>
  3536. </div>
  3537. <div class="noWorksS">
  3538. <div
  3539. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3540. :key="sIndex"
  3541. class="noWorksName"
  3542. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3543. :class="{ isWork: s.type == '2' }"
  3544. >
  3545. {{ s.student }}
  3546. </div>
  3547. </div>
  3548. </div>
  3549. <div
  3550. v-if="
  3551. tType &&
  3552. ((tType == 2 && sIsOpen == true) ||
  3553. tType == 1 ||
  3554. tType == 4) &&
  3555. tool.tool.indexOf(57) != -1
  3556. "
  3557. class="worksBox"
  3558. >
  3559. <div
  3560. class="zuoyeYulan"
  3561. v-if="
  3562. worksStudent2.length &&
  3563. worksStudent2[toolIndex].length > 0
  3564. "
  3565. >
  3566. <div class="worksTop">
  3567. <div>作业预览</div>
  3568. <div
  3569. class="corOpen"
  3570. @click="contract(toolIndex)"
  3571. v-if="
  3572. worksStudent2[toolIndex].length > 6 &&
  3573. isCloseList[toolIndex].isClose == 0
  3574. "
  3575. >
  3576. 收缩
  3577. </div>
  3578. <div
  3579. class="corOpen"
  3580. @click="contract(toolIndex)"
  3581. v-if="isCloseList[toolIndex].isClose == 1"
  3582. >
  3583. 展开
  3584. </div>
  3585. </div>
  3586. </div>
  3587. <div
  3588. class="worksDetailBox"
  3589. v-if="
  3590. worksStudent2.length &&
  3591. worksStudent2[toolIndex].length > 0
  3592. "
  3593. >
  3594. <div
  3595. class="works"
  3596. style="
  3597. width: 200px;
  3598. height: 140px;
  3599. margin: 10px 10px 10px 0;
  3600. border-radius: 15px;
  3601. box-shadow: 0 0 6px 1px #dfdada;
  3602. "
  3603. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3604. ? worksStudent2[toolIndex]
  3605. : worksStudent2[toolIndex].slice(0, 6)"
  3606. :key="wIndex"
  3607. :class="w.type == 1 ? 'isTypeOne' : ''"
  3608. >
  3609. <div class="workImg">
  3610. <img
  3611. :src="word2"
  3612. @click="downloadFile(w.works)"
  3613. v-if="w.type == 12"
  3614. alt
  3615. />
  3616. <img
  3617. :src="word2"
  3618. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  3619. v-else-if="w.type == 15"
  3620. alt
  3621. />
  3622. <div
  3623. class="answerScore"
  3624. v-if="w.score"
  3625. @click.stop="openScore(w)"
  3626. :class="{
  3627. rightW:
  3628. w.userid == userid ||
  3629. tType == 1 ||
  3630. tType == 4 ||
  3631. w.ateacher == userid,
  3632. }"
  3633. >
  3634. {{ JSON.parse(w.score).wScore }}分
  3635. </div>
  3636. <div
  3637. class="answerScore"
  3638. @click.stop="openScore(w)"
  3639. v-else-if="courseDetail.userid == userid"
  3640. :class="{
  3641. rightW:
  3642. w.userid == userid ||
  3643. tType == 1 ||
  3644. tType == 4 ||
  3645. w.ateacher == userid,
  3646. }"
  3647. >
  3648. 评分
  3649. </div>
  3650. <img
  3651. class="deleteImg"
  3652. src="../../assets/deleteworks.png"
  3653. v-if="w.userid == userid || tType == 1 || tType == 4"
  3654. @click.stop="deleteWorks(w.wid)"
  3655. alt
  3656. />
  3657. </div>
  3658. <div class="comment" style="min-width: 200px">
  3659. <div class="worksName">
  3660. <div>{{ w.sName }}</div>
  3661. </div>
  3662. <div class="commentList">
  3663. <div class="commentList">
  3664. <div
  3665. class="commentImg"
  3666. @click="
  3667. isLikes(w.wid, userid, 1, null, w.isLikes)
  3668. "
  3669. >
  3670. <img
  3671. :src="w.isLikes == true ? likes : noLikes"
  3672. alt=""
  3673. />
  3674. </div>
  3675. <div>{{ w.likesCount }}</div>
  3676. </div>
  3677. <div class="commentList" style="margin-right: 15px">
  3678. <div
  3679. class="commentImg"
  3680. @click="commentOther(w, toolIndex, wIndex)"
  3681. >
  3682. <img
  3683. src="../../assets/icon/comment/comment.png"
  3684. alt=""
  3685. />
  3686. </div>
  3687. <div>{{ w.commentCount }}</div>
  3688. </div>
  3689. </div>
  3690. </div>
  3691. </div>
  3692. </div>
  3693. <div class="noWorksS">
  3694. <div
  3695. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3696. :key="sIndex"
  3697. class="noWorksName"
  3698. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3699. :class="{ isWork: s.type == '2' }"
  3700. >
  3701. {{ s.student }}
  3702. </div>
  3703. </div>
  3704. </div>
  3705. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3706. <div
  3707. class="zuoyeYulan"
  3708. v-if="
  3709. worksStudent2.length &&
  3710. worksStudent2[toolIndex].length > 0
  3711. "
  3712. >
  3713. <span>作业预览</span>
  3714. <div
  3715. class="corOpen"
  3716. @click="contract(toolIndex)"
  3717. v-if="
  3718. worksStudent2[toolIndex].length > 6 &&
  3719. isCloseList[toolIndex].isClose == 0
  3720. "
  3721. >
  3722. 收缩
  3723. </div>
  3724. <div
  3725. class="corOpen"
  3726. @click="contract(toolIndex)"
  3727. v-if="isCloseList[toolIndex].isClose == 1"
  3728. >
  3729. 展开
  3730. </div>
  3731. </div>
  3732. <div
  3733. class="worksDetailBox"
  3734. v-if="
  3735. worksStudent2.length &&
  3736. worksStudent2[toolIndex].length > 0
  3737. "
  3738. >
  3739. <div
  3740. class="works"
  3741. style="
  3742. width: 200px;
  3743. height: 140px;
  3744. margin: 10px 10px 10px 0;
  3745. border-radius: 15px;
  3746. box-shadow: 0 0 6px 1px #dfdada;
  3747. "
  3748. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3749. ? worksStudent2[toolIndex]
  3750. : worksStudent2[toolIndex].slice(0, 6)"
  3751. :key="wIndex"
  3752. :class="w.type == 1 ? 'isTypeOne' : ''"
  3753. >
  3754. <div class="workImg" v-if="w.type == 0">
  3755. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3756. <img :src="w.works" @click="previewImg(w.works)" alt />
  3757. <div
  3758. class="answerScore"
  3759. v-if="w.score"
  3760. @click.stop="openScore(w)"
  3761. :class="{
  3762. rightW:
  3763. w.userid == userid ||
  3764. tType == 1 ||
  3765. tType == 4 ||
  3766. w.ateacher == userid,
  3767. }"
  3768. >
  3769. {{ JSON.parse(w.score).wScore }}分
  3770. </div>
  3771. <div
  3772. class="answerScore"
  3773. @click.stop="openScore(w)"
  3774. v-else-if="courseDetail.userid == userid"
  3775. :class="{
  3776. rightW:
  3777. w.userid == userid ||
  3778. tType == 1 ||
  3779. tType == 4 ||
  3780. w.ateacher == userid,
  3781. }"
  3782. >
  3783. 评分
  3784. </div>
  3785. <img
  3786. class="deleteImg"
  3787. src="../../assets/deleteworks.png"
  3788. v-if="w.userid == userid || tType == 1 || tType == 4"
  3789. @click.stop="deleteWorks(w.wid)"
  3790. alt
  3791. />
  3792. </div>
  3793. <div
  3794. class="workImg"
  3795. style="cursor: pointer"
  3796. v-if="w.type == 1"
  3797. >
  3798. <img :src="word" @click="openFile(w.works)" alt />
  3799. <!-- @click="openFile(w.works)" -->
  3800. <div
  3801. class="answerScore"
  3802. v-if="w.score"
  3803. @click.stop="openScore(w)"
  3804. :class="{
  3805. rightW:
  3806. w.userid == userid ||
  3807. tType == 1 ||
  3808. tType == 4 ||
  3809. w.ateacher == userid,
  3810. }"
  3811. >
  3812. {{ JSON.parse(w.score).wScore }}分
  3813. </div>
  3814. <div
  3815. class="answerScore"
  3816. @click.stop="openScore(w)"
  3817. v-else-if="courseDetail.userid == userid"
  3818. :class="{
  3819. rightW:
  3820. w.userid == userid ||
  3821. tType == 1 ||
  3822. tType == 4 ||
  3823. w.ateacher == userid,
  3824. }"
  3825. >
  3826. 评分
  3827. </div>
  3828. <img
  3829. class="deleteImg"
  3830. src="../../assets/deleteworks.png"
  3831. v-if="w.userid == userid || tType == 1 || tType == 4"
  3832. @click.stop="deleteWorks(w.wid)"
  3833. alt
  3834. />
  3835. </div>
  3836. <div class="workImg" v-if="w.type == 3">
  3837. <img
  3838. style="cursor: pointer"
  3839. :src="video"
  3840. @click="openVideo(w)"
  3841. alt
  3842. />
  3843. <!-- @click="openVideo(w.works)" -->
  3844. <div
  3845. class="answerScore"
  3846. v-if="w.score"
  3847. @click.stop="openScore(w)"
  3848. :class="{
  3849. rightW:
  3850. w.userid == userid ||
  3851. tType == 1 ||
  3852. tType == 4 ||
  3853. w.ateacher == userid,
  3854. }"
  3855. >
  3856. {{ JSON.parse(w.score).wScore }}分
  3857. </div>
  3858. <div
  3859. class="answerScore"
  3860. @click.stop="openScore(w)"
  3861. v-else-if="courseDetail.userid == userid"
  3862. :class="{
  3863. rightW:
  3864. w.userid == userid ||
  3865. tType == 1 ||
  3866. tType == 4 ||
  3867. w.ateacher == userid,
  3868. }"
  3869. >
  3870. 评分
  3871. </div>
  3872. <img
  3873. class="deleteImg"
  3874. src="../../assets/deleteworks.png"
  3875. v-if="w.userid == userid || tType == 1 || tType == 4"
  3876. @click.stop="deleteWorks(w.wid)"
  3877. alt
  3878. />
  3879. </div>
  3880. <div class="comment" style="min-width: 200px">
  3881. <div class="worksName">
  3882. <div
  3883. style="cursor: pointer"
  3884. @click="
  3885. openSname(w.sName, w.wid, toolIndex, w.userid)
  3886. "
  3887. >
  3888. {{ w.sName }}
  3889. </div>
  3890. </div>
  3891. <div class="commentList">
  3892. <div class="commentList">
  3893. <div
  3894. class="commentImg"
  3895. @click="
  3896. isLikes(w.wid, userid, 1, null, w.isLikes)
  3897. "
  3898. >
  3899. <img
  3900. :src="w.isLikes == true ? likes : noLikes"
  3901. alt=""
  3902. />
  3903. </div>
  3904. <div>{{ w.likesCount }}</div>
  3905. </div>
  3906. <div class="commentList" style="margin-right: 15px">
  3907. <div
  3908. class="commentImg"
  3909. @click="commentOther(w, toolIndex, wIndex)"
  3910. >
  3911. <img
  3912. src="../../assets/icon/comment/comment.png"
  3913. alt=""
  3914. />
  3915. </div>
  3916. <div>{{ w.commentCount }}</div>
  3917. </div>
  3918. </div>
  3919. </div>
  3920. </div>
  3921. </div>
  3922. <div class="noWorksS">
  3923. <div
  3924. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3925. :key="sIndex"
  3926. class="noWorksName"
  3927. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3928. :class="{ isWork: s.type == '2' }"
  3929. >
  3930. {{ s.student }}
  3931. </div>
  3932. </div>
  3933. </div>
  3934. <div
  3935. v-if="
  3936. tType &&
  3937. ((tType == 2 && sIsOpen == true) ||
  3938. tType == 1 ||
  3939. tType == 4) &&
  3940. tool.tool.indexOf(4) != -1
  3941. "
  3942. class="worksBox"
  3943. >
  3944. <div
  3945. class="zuoyeYulan"
  3946. v-if="
  3947. worksStudent2.length &&
  3948. worksStudent2[toolIndex].length > 0
  3949. "
  3950. >
  3951. <div class="worksTop">
  3952. <div>作业预览</div>
  3953. <div
  3954. class="corOpen"
  3955. @click="contract(toolIndex)"
  3956. v-if="
  3957. worksStudent2[toolIndex].length > 6 &&
  3958. isCloseList[toolIndex].isClose == 0
  3959. "
  3960. >
  3961. 收缩
  3962. </div>
  3963. <div
  3964. class="corOpen"
  3965. @click="contract(toolIndex)"
  3966. v-if="isCloseList[toolIndex].isClose == 1"
  3967. >
  3968. 展开
  3969. </div>
  3970. </div>
  3971. </div>
  3972. <div>
  3973. <div
  3974. class="worksDetailBox"
  3975. v-if="
  3976. worksStudent2.length &&
  3977. worksStudent2[toolIndex].length > 0
  3978. "
  3979. >
  3980. <div
  3981. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3982. 0
  3983. ? worksStudent2[toolIndex]
  3984. : worksStudent2[toolIndex].slice(0, 6)"
  3985. :key="wIndex"
  3986. class="isWorksName2"
  3987. @click="
  3988. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3989. "
  3990. >
  3991. {{ w.sName }}
  3992. <img
  3993. class="deleteImg deleteImg2"
  3994. src="../../assets/deleteworks.png"
  3995. v-if="w.userid == userid || tType == 1 || tType == 4"
  3996. @click.stop="deleteWorks(w.wid)"
  3997. alt
  3998. />
  3999. </div>
  4000. </div>
  4001. </div>
  4002. <div class="noWorksS">
  4003. <div
  4004. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4005. :key="sIndex"
  4006. class="noWorksName"
  4007. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4008. :class="{ isWork: s.type == '2' }"
  4009. >
  4010. {{ s.student }}
  4011. </div>
  4012. </div>
  4013. </div>
  4014. <div
  4015. v-if="
  4016. tType &&
  4017. ((tType == 2 && sIsOpen == true) ||
  4018. tType == 1 ||
  4019. tType == 4) &&
  4020. tool.tool.indexOf(45) != -1
  4021. "
  4022. class="worksBox"
  4023. >
  4024. <div
  4025. class="zuoyeYulan"
  4026. v-if="
  4027. worksStudent2.length &&
  4028. worksStudent2[toolIndex].length > 0
  4029. "
  4030. >
  4031. <div class="worksTop">
  4032. <div>作业预览</div>
  4033. <div
  4034. class="corOpen"
  4035. @click="contract(toolIndex)"
  4036. v-if="
  4037. worksStudent2[toolIndex].length > 6 &&
  4038. isCloseList[toolIndex].isClose == 0
  4039. "
  4040. >
  4041. 收缩
  4042. </div>
  4043. <div
  4044. class="corOpen"
  4045. @click="contract(toolIndex)"
  4046. v-if="isCloseList[toolIndex].isClose == 1"
  4047. >
  4048. 展开
  4049. </div>
  4050. </div>
  4051. </div>
  4052. <div>
  4053. <div
  4054. class="worksDetailBox"
  4055. v-if="
  4056. worksStudent2.length &&
  4057. worksStudent2[toolIndex].length > 0
  4058. "
  4059. >
  4060. <div
  4061. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4062. 0
  4063. ? worksStudent2[toolIndex]
  4064. : worksStudent2[toolIndex].slice(0, 6)"
  4065. :key="wIndex"
  4066. class="isWorksName2"
  4067. @click="
  4068. openTools(45, toolIndex, taskCount, w.works, w.sName)
  4069. "
  4070. >
  4071. {{ w.sName }}
  4072. <img
  4073. class="deleteImg deleteImg2"
  4074. src="../../assets/deleteworks.png"
  4075. v-if="w.userid == userid || tType == 1 || tType == 4"
  4076. @click.stop="deleteWorks(w.wid)"
  4077. alt
  4078. />
  4079. </div>
  4080. </div>
  4081. </div>
  4082. <div class="noWorksS">
  4083. <div
  4084. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4085. :key="sIndex"
  4086. class="noWorksName"
  4087. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4088. :class="{ isWork: s.type == '2' }"
  4089. >
  4090. {{ s.student }}
  4091. </div>
  4092. </div>
  4093. </div>
  4094. <div
  4095. v-if="
  4096. tType &&
  4097. ((tType == 2 && sIsOpen == true) ||
  4098. tType == 1 ||
  4099. tType == 4) &&
  4100. tool.tool.indexOf(15) != -1
  4101. "
  4102. class="worksBox"
  4103. >
  4104. <div
  4105. class="zuoyeYulan"
  4106. v-if="
  4107. worksStudent2.length &&
  4108. worksStudent2[toolIndex].length > 0
  4109. "
  4110. >
  4111. <div class="worksTop">
  4112. <div>作业预览</div>
  4113. <div
  4114. class="corOpen"
  4115. @click="contract(toolIndex)"
  4116. v-if="
  4117. worksStudent2[toolIndex].length > 6 &&
  4118. isCloseList[toolIndex].isClose == 0
  4119. "
  4120. >
  4121. 收缩
  4122. </div>
  4123. <div
  4124. class="corOpen"
  4125. @click="contract(toolIndex)"
  4126. v-if="isCloseList[toolIndex].isClose == 1"
  4127. >
  4128. 展开
  4129. </div>
  4130. </div>
  4131. </div>
  4132. <div
  4133. class="worksDetailBox"
  4134. v-if="
  4135. worksStudent2.length &&
  4136. worksStudent2[toolIndex].length > 0
  4137. "
  4138. >
  4139. <div
  4140. class="works"
  4141. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4142. ? worksStudent2[toolIndex]
  4143. : worksStudent2[toolIndex].slice(0, 6)"
  4144. :key="wIndex"
  4145. >
  4146. <div
  4147. class="workImg"
  4148. style="
  4149. border-radius: 15px;
  4150. box-shadow: #eee 0px 0px 5px 5px;
  4151. "
  4152. >
  4153. <!-- <img
  4154. src="../../assets/icon/works/noImg.png"
  4155. @click="openTools(15, toolIndex, taskCount, w.works)"
  4156. alt=""
  4157. />-->
  4158. <div
  4159. class="answerBg"
  4160. style="border-radius: 15px 15px 0 0"
  4161. @click="commentOther(w, toolIndex, wIndex)"
  4162. >
  4163. <!-- <div>{{ w.sName }}</div> -->
  4164. <div class="answerContent">
  4165. {{ JSON.parse(w.works)[0].answer }}
  4166. </div>
  4167. <div
  4168. class="answerScore"
  4169. v-if="w.score"
  4170. @click.stop="openScore(w)"
  4171. :class="{
  4172. rightW:
  4173. w.userid == userid || tType == 1 || tType == 4,
  4174. }"
  4175. >
  4176. {{ JSON.parse(w.score).wScore }}分
  4177. </div>
  4178. <div
  4179. class="answerScore"
  4180. @click.stop="openScore(w)"
  4181. v-else-if="courseDetail.userid == userid"
  4182. :class="{
  4183. rightW:
  4184. w.userid == userid || tType == 1 || tType == 4,
  4185. }"
  4186. >
  4187. 评分
  4188. </div>
  4189. <img
  4190. class="deleteImg"
  4191. src="../../assets/deleteworks.png"
  4192. v-if="
  4193. w.userid == userid || tType == 1 || tType == 4
  4194. "
  4195. @click.stop="deleteWorks(w.wid)"
  4196. alt
  4197. />
  4198. </div>
  4199. <div class="comment">
  4200. <div class="worksName">
  4201. <div>{{ w.sName }}</div>
  4202. </div>
  4203. <div class="commentList">
  4204. <div
  4205. class="commentImg"
  4206. @click="
  4207. isLikes(w.wid, userid, 1, null, w.isLikes)
  4208. "
  4209. >
  4210. <img
  4211. :src="w.isLikes == true ? likes : noLikes"
  4212. alt=""
  4213. />
  4214. </div>
  4215. <div>{{ w.likesCount }}</div>
  4216. </div>
  4217. <div class="commentList" style="margin-right: 15px">
  4218. <div
  4219. class="commentImg"
  4220. @click="commentOther(w, toolIndex, wIndex)"
  4221. >
  4222. <img
  4223. src="../../assets/icon/comment/comment.png"
  4224. alt=""
  4225. />
  4226. </div>
  4227. <div>{{ w.commentCount }}</div>
  4228. </div>
  4229. </div>
  4230. </div>
  4231. </div>
  4232. </div>
  4233. <div class="noWorksS">
  4234. <div
  4235. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4236. :key="sIndex"
  4237. class="noWorksName"
  4238. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4239. :class="{ isWork: s.type == '2' }"
  4240. >
  4241. {{ s.student }}
  4242. </div>
  4243. </div>
  4244. </div>
  4245. <div
  4246. v-if="
  4247. tType &&
  4248. ((tType == 2 && sIsOpen == true) ||
  4249. tType == 1 ||
  4250. tType == 4) &&
  4251. tool.tool.indexOf(1) != -1
  4252. "
  4253. class="worksBox"
  4254. >
  4255. <div
  4256. class="zuoyeYulan"
  4257. v-if="
  4258. worksStudent2.length &&
  4259. worksStudent2[toolIndex].length > 0
  4260. "
  4261. >
  4262. <div class="worksTop">
  4263. <div>作业预览</div>
  4264. <div
  4265. class="corOpen"
  4266. @click="contract(toolIndex)"
  4267. v-if="
  4268. worksStudent2[toolIndex].length > 6 &&
  4269. isCloseList[toolIndex].isClose == 0
  4270. "
  4271. >
  4272. 收缩
  4273. </div>
  4274. <div
  4275. class="corOpen"
  4276. @click="contract(toolIndex)"
  4277. v-if="isCloseList[toolIndex].isClose == 1"
  4278. >
  4279. 展开
  4280. </div>
  4281. </div>
  4282. </div>
  4283. <div
  4284. class="worksDetailBox"
  4285. v-if="
  4286. worksStudent2.length &&
  4287. worksStudent2[toolIndex].length > 0
  4288. "
  4289. >
  4290. <div
  4291. class="works"
  4292. style="
  4293. width: 200px;
  4294. height: 140px;
  4295. margin: 10px 10px 10px 0;
  4296. border-radius: 15px;
  4297. box-shadow: 0 0 6px 1px #dfdada;
  4298. "
  4299. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4300. ? worksStudent2[toolIndex]
  4301. : worksStudent2[toolIndex].slice(0, 6)"
  4302. :key="wIndex"
  4303. >
  4304. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4305. <div class="workImg">
  4306. <img :src="w.works" @click="previewImg(w.works)" alt />
  4307. <div
  4308. class="answerScore"
  4309. v-if="w.score"
  4310. @click.stop="openScore(w)"
  4311. :class="{
  4312. rightW:
  4313. w.userid == userid || tType == 1 || tType == 4,
  4314. }"
  4315. >
  4316. {{ JSON.parse(w.score).wScore }}分
  4317. </div>
  4318. <div
  4319. class="answerScore"
  4320. @click.stop="openScore(w)"
  4321. v-else-if="courseDetail.userid == userid"
  4322. :class="{
  4323. rightW:
  4324. w.userid == userid || tType == 1 || tType == 4,
  4325. }"
  4326. >
  4327. 评分
  4328. </div>
  4329. <img
  4330. class="deleteImg"
  4331. src="../../assets/deleteworks.png"
  4332. v-if="w.userid == userid || tType == 1 || tType == 4"
  4333. @click.stop="deleteWorks(w.wid)"
  4334. alt
  4335. />
  4336. </div>
  4337. <div class="comment" style="min-width: 200px">
  4338. <div class="worksName">
  4339. <div>{{ w.sName }}</div>
  4340. </div>
  4341. <div class="commentList">
  4342. <div class="commentList">
  4343. <div
  4344. class="commentImg"
  4345. @click="
  4346. isLikes(w.wid, userid, 1, null, w.isLikes)
  4347. "
  4348. >
  4349. <img
  4350. :src="w.isLikes == true ? likes : noLikes"
  4351. alt=""
  4352. />
  4353. </div>
  4354. <div>{{ w.likesCount }}</div>
  4355. </div>
  4356. <div class="commentList" style="margin-right: 15px">
  4357. <div
  4358. class="commentImg"
  4359. @click="commentOther(w, toolIndex, wIndex)"
  4360. >
  4361. <img
  4362. src="../../assets/icon/comment/comment.png"
  4363. alt=""
  4364. />
  4365. </div>
  4366. <div>{{ w.commentCount }}</div>
  4367. </div>
  4368. </div>
  4369. </div>
  4370. </div>
  4371. </div>
  4372. <div class="noWorksS">
  4373. <div
  4374. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4375. :key="sIndex"
  4376. class="noWorksName"
  4377. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4378. :class="{ isWork: s.type == '2' }"
  4379. >
  4380. {{ s.student }}
  4381. </div>
  4382. </div>
  4383. </div>
  4384. <div
  4385. v-if="
  4386. tType &&
  4387. ((tType == 2 && sIsOpen == true) ||
  4388. tType == 1 ||
  4389. tType == 4) &&
  4390. tool.tool.indexOf(3) != -1
  4391. "
  4392. class="worksBox"
  4393. >
  4394. <div
  4395. class="zuoyeYulan"
  4396. v-if="
  4397. worksStudent2.length &&
  4398. worksStudent2[toolIndex].length > 0
  4399. "
  4400. >
  4401. <div class="worksTop">
  4402. <div>作业预览</div>
  4403. <div
  4404. class="corOpen"
  4405. @click="contract(toolIndex)"
  4406. v-if="
  4407. worksStudent2[toolIndex].length > 6 &&
  4408. isCloseList[toolIndex].isClose == 0
  4409. "
  4410. >
  4411. 收缩
  4412. </div>
  4413. <div
  4414. class="corOpen"
  4415. @click="contract(toolIndex)"
  4416. v-if="isCloseList[toolIndex].isClose == 1"
  4417. >
  4418. 展开
  4419. </div>
  4420. </div>
  4421. </div>
  4422. <div
  4423. class="worksDetailBox"
  4424. v-if="
  4425. worksStudent2.length &&
  4426. worksStudent2[toolIndex].length > 0
  4427. "
  4428. >
  4429. <div
  4430. class="works"
  4431. style="
  4432. width: 200px;
  4433. height: 140px;
  4434. margin: 10px 10px 10px 0;
  4435. border-radius: 15px;
  4436. box-shadow: 0 0 6px 1px #dfdada;
  4437. "
  4438. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4439. ? worksStudent2[toolIndex]
  4440. : worksStudent2[toolIndex].slice(0, 6)"
  4441. :key="wIndex"
  4442. >
  4443. <!-- @click="previewImg(w.works)" -->
  4444. <div class="workImg">
  4445. <img :src="w.works" @click="previewImg(w.works)" alt />
  4446. <div
  4447. class="answerScore"
  4448. v-if="w.score"
  4449. @click.stop="openScore(w)"
  4450. :class="{
  4451. rightW:
  4452. w.userid == userid || tType == 1 || tType == 4,
  4453. }"
  4454. >
  4455. {{ JSON.parse(w.score).wScore }}分
  4456. </div>
  4457. <div
  4458. class="answerScore"
  4459. @click.stop="openScore(w)"
  4460. v-else-if="courseDetail.userid == userid"
  4461. :class="{
  4462. rightW:
  4463. w.userid == userid || tType == 1 || tType == 4,
  4464. }"
  4465. >
  4466. 评分
  4467. </div>
  4468. <img
  4469. class="deleteImg"
  4470. src="../../assets/deleteworks.png"
  4471. v-if="w.userid == userid || tType == 1 || tType == 4"
  4472. @click.stop="deleteWorks(w.wid)"
  4473. alt
  4474. />
  4475. </div>
  4476. <div class="comment" style="min-width: 200px">
  4477. <div class="worksName">
  4478. <div>{{ w.sName }}</div>
  4479. </div>
  4480. <div class="commentList">
  4481. <div class="commentList">
  4482. <div
  4483. class="commentImg"
  4484. @click="
  4485. isLikes(w.wid, userid, 1, null, w.isLikes)
  4486. "
  4487. >
  4488. <img
  4489. :src="w.isLikes == true ? likes : noLikes"
  4490. alt=""
  4491. />
  4492. </div>
  4493. <div>{{ w.likesCount }}</div>
  4494. </div>
  4495. <div class="commentList" style="margin-right: 15px">
  4496. <div
  4497. class="commentImg"
  4498. @click="commentOther(w, toolIndex, wIndex)"
  4499. >
  4500. <img
  4501. src="../../assets/icon/comment/comment.png"
  4502. alt=""
  4503. />
  4504. </div>
  4505. <div>{{ w.commentCount }}</div>
  4506. </div>
  4507. </div>
  4508. </div>
  4509. </div>
  4510. </div>
  4511. <div class="noWorksS">
  4512. <div
  4513. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4514. :key="sIndex"
  4515. class="noWorksName"
  4516. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4517. :class="{ isWork: s.type == '2' }"
  4518. >
  4519. {{ s.student }}
  4520. </div>
  4521. </div>
  4522. </div>
  4523. <div
  4524. v-if="
  4525. tType &&
  4526. ((tType == 2 && sIsOpen == true) ||
  4527. tType == 1 ||
  4528. tType == 4) &&
  4529. tool.tool.indexOf(6) != -1
  4530. "
  4531. class="worksBox"
  4532. >
  4533. <div
  4534. class="zuoyeYulan"
  4535. v-if="
  4536. worksStudent2.length &&
  4537. worksStudent2[toolIndex].length > 0
  4538. "
  4539. >
  4540. <div class="worksTop">
  4541. <div>作业预览</div>
  4542. <div
  4543. class="corOpen"
  4544. @click="contract(toolIndex)"
  4545. v-if="
  4546. worksStudent[toolIndex].length > 6 &&
  4547. isCloseList[toolIndex].isClose == 0
  4548. "
  4549. >
  4550. 收缩
  4551. </div>
  4552. <div
  4553. class="corOpen"
  4554. @click="contract(toolIndex)"
  4555. v-if="isCloseList[toolIndex].isClose == 1"
  4556. >
  4557. 展开
  4558. </div>
  4559. </div>
  4560. </div>
  4561. <div
  4562. class="worksDetailBox"
  4563. v-if="
  4564. worksStudent2.length &&
  4565. worksStudent2[toolIndex].length > 0
  4566. "
  4567. >
  4568. <div
  4569. class="works"
  4570. style="
  4571. width: 200px;
  4572. height: 140px;
  4573. margin: 10px 10px 10px 0;
  4574. border-radius: 15px;
  4575. box-shadow: 0 0 6px 1px #dfdada;
  4576. "
  4577. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4578. ? worksStudent2[toolIndex]
  4579. : worksStudent2[toolIndex].slice(0, 6)"
  4580. :key="wIndex"
  4581. >
  4582. <!-- @click="previewImg(w.works)" -->
  4583. <div class="workImg">
  4584. <img :src="w.works" @click="previewImg(w.works)" alt />
  4585. <div
  4586. class="answerScore"
  4587. v-if="w.score"
  4588. @click.stop="openScore(w)"
  4589. :class="{
  4590. rightW:
  4591. w.userid == userid || tType == 1 || tType == 4,
  4592. }"
  4593. >
  4594. {{ JSON.parse(w.score).wScore }}分
  4595. </div>
  4596. <div
  4597. class="answerScore"
  4598. @click.stop="openScore(w)"
  4599. v-else-if="courseDetail.userid == userid"
  4600. :class="{
  4601. rightW:
  4602. w.userid == userid || tType == 1 || tType == 4,
  4603. }"
  4604. >
  4605. 评分
  4606. </div>
  4607. <img
  4608. class="deleteImg"
  4609. src="../../assets/deleteworks.png"
  4610. v-if="w.userid == userid || tType == 1 || tType == 4"
  4611. @click.stop="deleteWorks(w.wid)"
  4612. alt
  4613. />
  4614. </div>
  4615. <div class="comment" style="min-width: 200px">
  4616. <div class="worksName">
  4617. <div>{{ w.sName }}</div>
  4618. </div>
  4619. <div class="commentList">
  4620. <div class="commentList">
  4621. <div
  4622. class="commentImg"
  4623. @click="
  4624. isLikes(w.wid, userid, 1, null, w.isLikes)
  4625. "
  4626. >
  4627. <img
  4628. :src="w.isLikes == true ? likes : noLikes"
  4629. alt=""
  4630. />
  4631. </div>
  4632. <div>{{ w.likesCount }}</div>
  4633. </div>
  4634. <div class="commentList" style="margin-right: 15px">
  4635. <div
  4636. class="commentImg"
  4637. @click="commentOther(w, toolIndex, wIndex)"
  4638. >
  4639. <img
  4640. src="../../assets/icon/comment/comment.png"
  4641. alt=""
  4642. />
  4643. </div>
  4644. <div>{{ w.commentCount }}</div>
  4645. </div>
  4646. </div>
  4647. </div>
  4648. </div>
  4649. </div>
  4650. <div class="noWorksS">
  4651. <div
  4652. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4653. :key="sIndex"
  4654. class="noWorksName"
  4655. :class="{ isWork: s.type == '2' }"
  4656. >
  4657. {{ s.student }}
  4658. </div>
  4659. </div>
  4660. </div>
  4661. <div
  4662. v-if="
  4663. tType &&
  4664. ((tType == 2 && sIsOpen == true) ||
  4665. tType == 1 ||
  4666. tType == 4) &&
  4667. tool.tool.indexOf(7) != -1
  4668. "
  4669. class="worksBox"
  4670. >
  4671. <div
  4672. class="zuoyeYulan"
  4673. v-if="
  4674. worksStudent2.length &&
  4675. worksStudent2[toolIndex].length > 0
  4676. "
  4677. >
  4678. <div class="worksTop">
  4679. <div>作业预览</div>
  4680. <div
  4681. class="corOpen"
  4682. @click="contract(toolIndex)"
  4683. v-if="
  4684. worksStudent2[toolIndex].length > 6 &&
  4685. isCloseList[toolIndex].isClose == 0
  4686. "
  4687. >
  4688. 收缩
  4689. </div>
  4690. <div
  4691. class="corOpen"
  4692. @click="contract(toolIndex)"
  4693. v-if="isCloseList[toolIndex].isClose == 1"
  4694. >
  4695. 展开
  4696. </div>
  4697. </div>
  4698. </div>
  4699. <div
  4700. class="worksDetailBox"
  4701. v-if="
  4702. worksStudent2.length &&
  4703. worksStudent2[toolIndex].length > 0
  4704. "
  4705. >
  4706. <div
  4707. class="works"
  4708. style="
  4709. width: 200px;
  4710. height: 140px;
  4711. margin: 10px 10px 10px 0;
  4712. border-radius: 15px;
  4713. box-shadow: 0 0 6px 1px #dfdada;
  4714. "
  4715. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4716. ? worksStudent2[toolIndex]
  4717. : worksStudent2[toolIndex].slice(0, 6)"
  4718. :key="wIndex"
  4719. >
  4720. <!-- @click="previewImg(w.works)" -->
  4721. <div class="workImg">
  4722. <img :src="w.works" @click="previewImg(w.works)" alt />
  4723. <div
  4724. class="answerScore"
  4725. v-if="w.score"
  4726. @click.stop="openScore(w)"
  4727. :class="{
  4728. rightW:
  4729. w.userid == userid || tType == 1 || tType == 4,
  4730. }"
  4731. >
  4732. {{ JSON.parse(w.score).wScore }}分
  4733. </div>
  4734. <div
  4735. class="answerScore"
  4736. @click.stop="openScore(w)"
  4737. v-else-if="courseDetail.userid == userid"
  4738. :class="{
  4739. rightW:
  4740. w.userid == userid || tType == 1 || tType == 4,
  4741. }"
  4742. >
  4743. 评分
  4744. </div>
  4745. <img
  4746. class="deleteImg"
  4747. src="../../assets/deleteworks.png"
  4748. v-if="w.userid == userid || tType == 1 || tType == 4"
  4749. @click.stop="deleteWorks(w.wid)"
  4750. alt
  4751. />
  4752. </div>
  4753. <div class="comment" style="min-width: 200px">
  4754. <div class="worksName">
  4755. <div>{{ w.sName }}</div>
  4756. </div>
  4757. <div class="commentList">
  4758. <div class="commentList">
  4759. <div
  4760. class="commentImg"
  4761. @click="
  4762. isLikes(w.wid, userid, 1, null, w.isLikes)
  4763. "
  4764. >
  4765. <img
  4766. :src="w.isLikes == true ? likes : noLikes"
  4767. alt=""
  4768. />
  4769. </div>
  4770. <div>{{ w.likesCount }}</div>
  4771. </div>
  4772. <div class="commentList" style="margin-right: 15px">
  4773. <div
  4774. class="commentImg"
  4775. @click="commentOther(w, toolIndex, wIndex)"
  4776. >
  4777. <img
  4778. src="../../assets/icon/comment/comment.png"
  4779. alt=""
  4780. />
  4781. </div>
  4782. <div>{{ w.commentCount }}</div>
  4783. </div>
  4784. </div>
  4785. </div>
  4786. </div>
  4787. </div>
  4788. <div class="noWorksS">
  4789. <div
  4790. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4791. :key="sIndex"
  4792. class="noWorksName"
  4793. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  4794. :class="{ isWork: s.type == '2' }"
  4795. >
  4796. {{ s.student }}
  4797. </div>
  4798. </div>
  4799. </div>
  4800. <div
  4801. v-if="
  4802. tType &&
  4803. ((tType == 2 && sIsOpen == true) ||
  4804. tType == 1 ||
  4805. tType == 4) &&
  4806. tool.tool.indexOf(26) != -1
  4807. "
  4808. class="worksBox"
  4809. >
  4810. <div
  4811. class="zuoyeYulan"
  4812. v-if="
  4813. worksStudent2.length &&
  4814. worksStudent2[toolIndex].length > 0
  4815. "
  4816. >
  4817. <div class="worksTop">
  4818. <div>作业预览</div>
  4819. <div
  4820. class="corOpen"
  4821. @click="contract(toolIndex)"
  4822. v-if="
  4823. worksStudent2[toolIndex].length > 6 &&
  4824. isCloseList[toolIndex].isClose == 0
  4825. "
  4826. >
  4827. 收缩
  4828. </div>
  4829. <div
  4830. class="corOpen"
  4831. @click="contract(toolIndex)"
  4832. v-if="isCloseList[toolIndex].isClose == 1"
  4833. >
  4834. 展开
  4835. </div>
  4836. </div>
  4837. </div>
  4838. <div
  4839. class="worksDetailBox"
  4840. v-if="
  4841. worksStudent2.length &&
  4842. worksStudent2[toolIndex].length > 0
  4843. "
  4844. >
  4845. <div
  4846. class="works"
  4847. style="width: 240px; height: 140px; overflow: hidden"
  4848. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4849. ? worksStudent2[toolIndex]
  4850. : worksStudent2[toolIndex].slice(0, 6)"
  4851. :key="wIndex"
  4852. :class="w.type == 1 ? 'isTypeOne' : ''"
  4853. >
  4854. <div class="workImg" v-if="w.type == 0">
  4855. <img :src="w.works" @click="previewImg(w.works)" alt />
  4856. <img
  4857. class="deleteImg"
  4858. src="../../assets/deleteworks.png"
  4859. v-if="w.userid == userid || tType == 1 || tType == 4"
  4860. @click.stop="deleteWorks(w.wid)"
  4861. alt
  4862. />
  4863. </div>
  4864. <div class="workImg" v-if="w.type == 1">
  4865. <img :src="word" @click="openFile(w.works)" alt />
  4866. <img
  4867. class="deleteImg"
  4868. src="../../assets/deleteworks.png"
  4869. v-if="w.userid == userid || tType == 1 || tType == 4"
  4870. @click.stop="deleteWorks(w.wid)"
  4871. alt
  4872. />
  4873. </div>
  4874. <div class="worksName">
  4875. <div>{{ w.sName }}</div>
  4876. </div>
  4877. </div>
  4878. </div>
  4879. <div class="noWorksS">
  4880. <div
  4881. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4882. :key="sIndex"
  4883. class="noWorksName"
  4884. :class="{ isWork: s.type == '2' }"
  4885. >
  4886. {{ s.student }}
  4887. </div>
  4888. </div>
  4889. </div>
  4890. <div
  4891. v-if="
  4892. tType &&
  4893. ((tType == 2 && sIsOpen == true) ||
  4894. tType == 1 ||
  4895. tType == 4) &&
  4896. tool.tool.indexOf(40) != -1
  4897. "
  4898. class="worksBox"
  4899. >
  4900. <div
  4901. class="zuoyeYulan"
  4902. v-if="
  4903. worksStudent2.length &&
  4904. worksStudent2[toolIndex].length > 0
  4905. "
  4906. >
  4907. <div class="worksTop">
  4908. <div>作业预览</div>
  4909. <div
  4910. class="corOpen"
  4911. @click="contract(toolIndex)"
  4912. v-if="
  4913. worksStudent2[toolIndex].length > 6 &&
  4914. isCloseList[toolIndex].isClose == 0
  4915. "
  4916. >
  4917. 收缩
  4918. </div>
  4919. <div
  4920. class="corOpen"
  4921. @click="contract(toolIndex)"
  4922. v-if="isCloseList[toolIndex].isClose == 1"
  4923. >
  4924. 展开
  4925. </div>
  4926. </div>
  4927. </div>
  4928. <div
  4929. class="worksDetailBox"
  4930. v-if="
  4931. worksStudent2.length &&
  4932. worksStudent2[toolIndex].length > 0
  4933. "
  4934. >
  4935. <div
  4936. class="works"
  4937. style="
  4938. width: 200px;
  4939. height: 140px;
  4940. margin: 10px 10px 10px 0;
  4941. border-radius: 15px;
  4942. box-shadow: 0 0 6px 1px #dfdada;
  4943. "
  4944. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4945. ? worksStudent2[toolIndex]
  4946. : worksStudent2[toolIndex].slice(0, 6)"
  4947. :key="wIndex"
  4948. :class="w.type == 1 ? 'isTypeOne' : ''"
  4949. >
  4950. <div class="workImg">
  4951. <img
  4952. src="../../assets/icon/works/noImg.png"
  4953. @click="openPj(w.works, toolIndex)"
  4954. alt
  4955. />
  4956. <img
  4957. class="deleteImg"
  4958. src="../../assets/deleteworks.png"
  4959. v-if="w.userid == userid || tType == 1 || tType == 4"
  4960. @click.stop="deleteWorks(w.wid)"
  4961. alt
  4962. />
  4963. </div>
  4964. <div class="comment" style="min-width: 200px">
  4965. <div class="worksName">
  4966. <div>{{ w.sName }}</div>
  4967. </div>
  4968. <div class="commentList">
  4969. <div class="commentList">
  4970. <div
  4971. class="commentImg"
  4972. @click="
  4973. isLikes(w.wid, userid, 1, null, w.isLikes)
  4974. "
  4975. >
  4976. <img
  4977. :src="w.isLikes == true ? likes : noLikes"
  4978. alt=""
  4979. />
  4980. </div>
  4981. <div>{{ w.likesCount }}</div>
  4982. </div>
  4983. <div class="commentList" style="margin-right: 15px">
  4984. <div
  4985. class="commentImg"
  4986. @click="commentOther(w, toolIndex, wIndex)"
  4987. >
  4988. <img
  4989. src="../../assets/icon/comment/comment.png"
  4990. alt=""
  4991. />
  4992. </div>
  4993. <div>{{ w.commentCount }}</div>
  4994. </div>
  4995. </div>
  4996. </div>
  4997. </div>
  4998. </div>
  4999. <div class="noWorksS">
  5000. <div
  5001. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5002. :key="sIndex"
  5003. class="noWorksName"
  5004. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5005. :class="{ isWork: s.type == '2' }"
  5006. >
  5007. {{ s.student }}
  5008. </div>
  5009. </div>
  5010. </div>
  5011. <div
  5012. v-if="
  5013. tType &&
  5014. ((tType == 2 && sIsOpen == true) ||
  5015. tType == 1 ||
  5016. tType == 4) &&
  5017. tool.tool.indexOf(41) != -1
  5018. "
  5019. class="worksBox"
  5020. >
  5021. <div class="noWorksS">
  5022. <div
  5023. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5024. :key="sIndex"
  5025. class="noWorksName"
  5026. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5027. :class="{ isWork: s.type == '2' }"
  5028. >
  5029. {{ s.student }}
  5030. </div>
  5031. </div>
  5032. <div
  5033. class="zuoyeYulan"
  5034. v-if="
  5035. worksStudent2.length &&
  5036. worksStudent2[toolIndex].length > 0
  5037. "
  5038. >
  5039. <div class="worksTop">
  5040. <div>作业预览</div>
  5041. <div
  5042. class="corOpen"
  5043. @click="contract(toolIndex)"
  5044. v-if="
  5045. worksStudent2[toolIndex].length > 6 &&
  5046. isCloseList[toolIndex].isClose == 0
  5047. "
  5048. >
  5049. 收缩
  5050. </div>
  5051. <div
  5052. class="corOpen"
  5053. @click="contract(toolIndex)"
  5054. v-if="isCloseList[toolIndex].isClose == 1"
  5055. >
  5056. 展开
  5057. </div>
  5058. </div>
  5059. </div>
  5060. <div
  5061. class="worksDetailBox"
  5062. v-if="
  5063. worksStudent2.length &&
  5064. worksStudent2[toolIndex].length > 0
  5065. "
  5066. >
  5067. <div
  5068. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5069. ? worksStudent2[toolIndex]
  5070. : worksStudent2[toolIndex].slice(0, 6)"
  5071. :key="wIndex"
  5072. class="isWorksName2"
  5073. @click="openXz(w, toolIndex)"
  5074. >
  5075. {{ w.sName }}
  5076. <img
  5077. class="deleteImg deleteImg2"
  5078. src="../../assets/deleteworks.png"
  5079. v-if="w.userid == userid || tType == 1 || tType == 4"
  5080. @click.stop="deleteWorks(w.wid)"
  5081. alt
  5082. />
  5083. </div>
  5084. </div>
  5085. </div>
  5086. <div
  5087. v-if="
  5088. tType &&
  5089. ((tType == 2 && sIsOpen == true) ||
  5090. tType == 1 ||
  5091. tType == 4) &&
  5092. tool.tool.indexOf(47) != -1
  5093. "
  5094. class="worksBox"
  5095. >
  5096. <div class="noWorksS">
  5097. <div
  5098. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5099. :key="sIndex"
  5100. class="noWorksName"
  5101. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5102. :class="{ isWork: s.type == '2' }"
  5103. >
  5104. {{ s.student }}
  5105. </div>
  5106. </div>
  5107. <div
  5108. class="zuoyeYulan"
  5109. v-if="
  5110. worksStudent2.length &&
  5111. worksStudent2[toolIndex].length > 0
  5112. "
  5113. >
  5114. <div class="worksTop">
  5115. <div>作业预览</div>
  5116. <div
  5117. class="corOpen"
  5118. @click="contract(toolIndex)"
  5119. v-if="
  5120. worksStudent2[toolIndex].length > 6 &&
  5121. isCloseList[toolIndex].isClose == 0
  5122. "
  5123. >
  5124. 收缩
  5125. </div>
  5126. <div
  5127. class="corOpen"
  5128. @click="contract(toolIndex)"
  5129. v-if="isCloseList[toolIndex].isClose == 1"
  5130. >
  5131. 展开
  5132. </div>
  5133. </div>
  5134. </div>
  5135. <div
  5136. class="worksDetailBox"
  5137. v-if="
  5138. worksStudent2.length &&
  5139. worksStudent2[toolIndex].length > 0
  5140. "
  5141. >
  5142. <!-- @click="openXz(w, toolIndex)" -->
  5143. <div
  5144. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5145. ? worksStudent2[toolIndex]
  5146. : worksStudent2[toolIndex].slice(0, 6)"
  5147. :key="wIndex"
  5148. class="isWorksName2"
  5149. @click="openSen(w, toolIndex)"
  5150. >
  5151. {{ w.sName }}
  5152. <img
  5153. class="deleteImg deleteImg2"
  5154. src="../../assets/deleteworks.png"
  5155. v-if="w.userid == userid || tType == 1 || tType == 4"
  5156. @click.stop="deleteWorks(w.wid)"
  5157. alt
  5158. />
  5159. </div>
  5160. </div>
  5161. </div>
  5162. <div
  5163. v-if="
  5164. tType &&
  5165. ((tType == 2 && sIsOpen == true) ||
  5166. tType == 1 ||
  5167. tType == 4) &&
  5168. tool.tool.indexOf(48) != -1
  5169. "
  5170. class="worksBox"
  5171. >
  5172. <div
  5173. class="zuoyeYulan"
  5174. v-if="
  5175. worksStudent2.length &&
  5176. worksStudent2[toolIndex].length > 0
  5177. "
  5178. >
  5179. <div class="worksTop">
  5180. <div>作业预览</div>
  5181. <div
  5182. class="corOpen"
  5183. @click="contract(toolIndex)"
  5184. v-if="
  5185. worksStudent2[toolIndex].length > 6 &&
  5186. isCloseList[toolIndex].isClose == 0
  5187. "
  5188. >
  5189. 收缩
  5190. </div>
  5191. <div
  5192. class="corOpen"
  5193. @click="contract(toolIndex)"
  5194. v-if="isCloseList[toolIndex].isClose == 1"
  5195. >
  5196. 展开
  5197. </div>
  5198. </div>
  5199. </div>
  5200. <div
  5201. class="worksDetailBox"
  5202. v-if="
  5203. worksStudent2.length &&
  5204. worksStudent2[toolIndex].length > 0
  5205. "
  5206. >
  5207. <div
  5208. class="works"
  5209. style="
  5210. width: 200px;
  5211. height: 140px;
  5212. margin: 10px 10px 10px 0;
  5213. border-radius: 15px;
  5214. box-shadow: 0 0 6px 1px #dfdada;
  5215. "
  5216. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5217. ? worksStudent2[toolIndex]
  5218. : worksStudent2[toolIndex].slice(0, 6)"
  5219. :key="wIndex"
  5220. :class="w.type == 1 ? 'isTypeOne' : ''"
  5221. >
  5222. <div class="workImg">
  5223. <img :src="word" @click="openTable(w)" alt />
  5224. <!-- @click="openFile(w.works)" -->
  5225. <div
  5226. class="answerScore"
  5227. v-if="w.score"
  5228. @click.stop="openScore(w)"
  5229. :class="{
  5230. rightW:
  5231. w.userid == userid ||
  5232. tType == 1 ||
  5233. tType == 4 ||
  5234. w.ateacher == userid,
  5235. }"
  5236. >
  5237. {{ JSON.parse(w.score).wScore }}分
  5238. </div>
  5239. <div
  5240. class="answerScore"
  5241. @click.stop="openScore(w)"
  5242. v-else-if="courseDetail.userid == userid"
  5243. :class="{
  5244. rightW:
  5245. w.userid == userid ||
  5246. tType == 1 ||
  5247. tType == 4 ||
  5248. w.ateacher == userid,
  5249. }"
  5250. >
  5251. 评分
  5252. </div>
  5253. <img
  5254. class="deleteImg"
  5255. src="../../assets/deleteworks.png"
  5256. v-if="w.userid == userid || tType == 1 || tType == 4"
  5257. @click.stop="deleteWorks(w.wid)"
  5258. alt
  5259. />
  5260. </div>
  5261. <div class="comment" style="min-width: 200px">
  5262. <div class="worksName">
  5263. <div>{{ w.sName }}</div>
  5264. </div>
  5265. <div class="commentList">
  5266. <div class="commentList">
  5267. <div
  5268. class="commentImg"
  5269. @click="
  5270. isLikes(w.wid, userid, 1, null, w.isLikes)
  5271. "
  5272. >
  5273. <img
  5274. :src="w.isLikes == true ? likes : noLikes"
  5275. alt=""
  5276. />
  5277. </div>
  5278. <div>{{ w.likesCount }}</div>
  5279. </div>
  5280. <div class="commentList" style="margin-right: 15px">
  5281. <div
  5282. class="commentImg"
  5283. @click="commentOther(w, toolIndex, wIndex)"
  5284. >
  5285. <img
  5286. src="../../assets/icon/comment/comment.png"
  5287. alt=""
  5288. />
  5289. </div>
  5290. <div>{{ w.commentCount }}</div>
  5291. </div>
  5292. </div>
  5293. </div>
  5294. </div>
  5295. </div>
  5296. <div class="noWorksS">
  5297. <div
  5298. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5299. :key="sIndex"
  5300. class="noWorksName"
  5301. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5302. :class="{ isWork: s.type == '2' }"
  5303. >
  5304. {{ s.student }}
  5305. </div>
  5306. </div>
  5307. </div>
  5308. <div
  5309. v-if="
  5310. tType &&
  5311. ((tType == 2 && sIsOpen == true) ||
  5312. tType == 1 ||
  5313. tType == 4) &&
  5314. tool.tool.indexOf(52) != -1
  5315. "
  5316. class="worksBox"
  5317. >
  5318. <div
  5319. class="zuoyeYulan"
  5320. v-if="
  5321. worksStudent2.length &&
  5322. worksStudent2[toolIndex].length > 0
  5323. "
  5324. >
  5325. <div class="worksTop">
  5326. <div>作业预览</div>
  5327. <div
  5328. class="corOpen"
  5329. @click="contract(toolIndex)"
  5330. v-if="
  5331. worksStudent2[toolIndex].length > 6 &&
  5332. isCloseList[toolIndex].isClose == 0
  5333. "
  5334. >
  5335. 收缩
  5336. </div>
  5337. <div
  5338. class="corOpen"
  5339. @click="contract(toolIndex)"
  5340. v-if="isCloseList[toolIndex].isClose == 1"
  5341. >
  5342. 展开
  5343. </div>
  5344. </div>
  5345. </div>
  5346. <div
  5347. class="worksDetailBox"
  5348. v-if="
  5349. worksStudent2.length &&
  5350. worksStudent2[toolIndex].length > 0
  5351. "
  5352. >
  5353. <div
  5354. class="works"
  5355. style="
  5356. width: 200px;
  5357. height: 140px;
  5358. margin: 10px 10px 10px 0;
  5359. border-radius: 15px;
  5360. box-shadow: 0 0 6px 1px #dfdada;
  5361. "
  5362. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5363. ? worksStudent2[toolIndex]
  5364. : worksStudent2[toolIndex].slice(0, 6)"
  5365. :key="wIndex"
  5366. :class="w.type == 1 ? 'isTypeOne' : ''"
  5367. >
  5368. <div class="workImg">
  5369. <img :src="word" @click="openWord(w)" alt />
  5370. <!-- @click="openFile(w.works)" -->
  5371. <div
  5372. class="answerScore"
  5373. v-if="w.score"
  5374. @click.stop="openScore(w)"
  5375. :class="{
  5376. rightW:
  5377. w.userid == userid ||
  5378. tType == 1 ||
  5379. tType == 4 ||
  5380. w.ateacher == userid,
  5381. }"
  5382. >
  5383. {{ JSON.parse(w.score).wScore }}分
  5384. </div>
  5385. <div
  5386. class="answerScore"
  5387. @click.stop="openScore(w)"
  5388. v-else-if="courseDetail.userid == userid"
  5389. :class="{
  5390. rightW:
  5391. w.userid == userid ||
  5392. tType == 1 ||
  5393. tType == 4 ||
  5394. w.ateacher == userid,
  5395. }"
  5396. >
  5397. 评分
  5398. </div>
  5399. <img
  5400. class="deleteImg"
  5401. src="../../assets/deleteworks.png"
  5402. v-if="w.userid == userid || tType == 1 || tType == 4"
  5403. @click.stop="deleteWorks(w.wid)"
  5404. alt
  5405. />
  5406. </div>
  5407. <div class="comment" style="min-width: 200px">
  5408. <div class="worksName">
  5409. <div>{{ w.sName }}</div>
  5410. </div>
  5411. <div class="commentList">
  5412. <div class="commentList">
  5413. <div
  5414. class="commentImg"
  5415. @click="
  5416. isLikes(w.wid, userid, 1, null, w.isLikes)
  5417. "
  5418. >
  5419. <img
  5420. :src="w.isLikes == true ? likes : noLikes"
  5421. alt=""
  5422. />
  5423. </div>
  5424. <div>{{ w.likesCount }}</div>
  5425. </div>
  5426. <div class="commentList" style="margin-right: 15px">
  5427. <div
  5428. class="commentImg"
  5429. @click="commentOther(w, toolIndex, wIndex)"
  5430. >
  5431. <img
  5432. src="../../assets/icon/comment/comment.png"
  5433. alt=""
  5434. />
  5435. </div>
  5436. <div>{{ w.commentCount }}</div>
  5437. </div>
  5438. </div>
  5439. </div>
  5440. </div>
  5441. </div>
  5442. <div class="noWorksS">
  5443. <div
  5444. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5445. :key="sIndex"
  5446. class="noWorksName"
  5447. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5448. :class="{ isWork: s.type == '2' }"
  5449. >
  5450. {{ s.student }}
  5451. </div>
  5452. </div>
  5453. </div>
  5454. </div>
  5455. </div>
  5456. <div
  5457. class="vedioBox"
  5458. v-if="
  5459. arrayToArray(tool.tool, isWorkTool).length &&
  5460. (noWorksS[toolIndex].length || worksStudent[toolIndex].length)
  5461. "
  5462. >
  5463. <div
  5464. class="queTop"
  5465. style="
  5466. font-size: 20px;
  5467. padding: 15px 0 15px 30px;
  5468. font-weight: bold;
  5469. "
  5470. >
  5471. 工作区
  5472. </div>
  5473. <div class="tool_work_box">
  5474. <div
  5475. v-if="
  5476. tType &&
  5477. ((tType == 2 && sIsOpen == true) ||
  5478. tType == 1 ||
  5479. tType == 4) &&
  5480. tool.tool.indexOf(16) != -1
  5481. "
  5482. class="worksBox"
  5483. >
  5484. <div
  5485. class="zuoyeYulan"
  5486. v-if="
  5487. worksStudent.length && worksStudent[toolIndex].length > 0
  5488. "
  5489. >
  5490. <div class="worksTop">
  5491. <div>作业预览</div>
  5492. <div
  5493. class="corOpen"
  5494. @click="contract(toolIndex)"
  5495. v-if="
  5496. worksStudent[toolIndex].length > 6 &&
  5497. isCloseList[toolIndex].isClose == 0
  5498. "
  5499. >
  5500. 收缩
  5501. </div>
  5502. <div
  5503. class="corOpen"
  5504. @click="contract(toolIndex)"
  5505. v-if="isCloseList[toolIndex].isClose == 1"
  5506. >
  5507. 展开
  5508. </div>
  5509. </div>
  5510. </div>
  5511. <div
  5512. class="worksDetailBox"
  5513. v-if="
  5514. worksStudent.length && worksStudent[toolIndex].length > 0
  5515. "
  5516. >
  5517. <div
  5518. class="works"
  5519. style="
  5520. width: 200px;
  5521. height: 140px;
  5522. margin: 10px 10px 10px 0;
  5523. border-radius: 15px;
  5524. box-shadow: 0 0 6px 1px #dfdada;
  5525. "
  5526. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5527. ? worksStudent[toolIndex]
  5528. : worksStudent[toolIndex].slice(0, 6)"
  5529. :key="wIndex"
  5530. :class="w.type == 1 ? 'isTypeOne' : ''"
  5531. >
  5532. <div class="workImg" v-if="w.type == 0">
  5533. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5534. <img :src="w.works" @click="previewImg(w.works)" alt />
  5535. <div
  5536. class="answerScore"
  5537. v-if="w.score"
  5538. @click.stop="openScore(w)"
  5539. :class="{
  5540. rightW:
  5541. w.userid == userid ||
  5542. tType == 1 ||
  5543. tType == 4 ||
  5544. w.ateacher == userid,
  5545. }"
  5546. >
  5547. {{ JSON.parse(w.score).wScore }}分
  5548. </div>
  5549. <div
  5550. class="answerScore"
  5551. @click.stop="openScore(w)"
  5552. v-else-if="courseDetail.userid == userid"
  5553. :class="{
  5554. rightW:
  5555. w.userid == userid ||
  5556. tType == 1 ||
  5557. tType == 4 ||
  5558. w.ateacher == userid,
  5559. }"
  5560. >
  5561. 评分
  5562. </div>
  5563. <img
  5564. class="deleteImg"
  5565. src="../../assets/deleteworks.png"
  5566. v-if="w.userid == userid || tType == 1 || tType == 4"
  5567. @click.stop="deleteWorks(w.wid)"
  5568. alt
  5569. />
  5570. </div>
  5571. <div class="workImg" v-if="w.type == 1">
  5572. <img :src="word" @click="openFile(w.works)" alt />
  5573. <!-- @click="openFile(w.works)" -->
  5574. <div
  5575. class="answerScore"
  5576. v-if="w.score"
  5577. @click.stop="openScore(w)"
  5578. :class="{
  5579. rightW:
  5580. w.userid == userid ||
  5581. tType == 1 ||
  5582. tType == 4 ||
  5583. w.ateacher == userid,
  5584. }"
  5585. >
  5586. {{ JSON.parse(w.score).wScore }}分
  5587. </div>
  5588. <div
  5589. class="answerScore"
  5590. @click.stop="openScore(w)"
  5591. v-else-if="courseDetail.userid == userid"
  5592. :class="{
  5593. rightW:
  5594. w.userid == userid ||
  5595. tType == 1 ||
  5596. tType == 4 ||
  5597. w.ateacher == userid,
  5598. }"
  5599. >
  5600. 评分
  5601. </div>
  5602. <img
  5603. class="deleteImg"
  5604. src="../../assets/deleteworks.png"
  5605. v-if="w.userid == userid || tType == 1 || tType == 4"
  5606. @click.stop="deleteWorks(w.wid)"
  5607. alt
  5608. />
  5609. </div>
  5610. <div class="workImg" v-if="w.type == 3">
  5611. <img
  5612. style="cursor: pointer"
  5613. :src="video"
  5614. @click="openVideo(w)"
  5615. alt
  5616. />
  5617. <!-- @click="openVideo(w.works)" -->
  5618. <div
  5619. class="answerScore"
  5620. v-if="w.score"
  5621. @click.stop="openScore(w)"
  5622. :class="{
  5623. rightW:
  5624. w.userid == userid ||
  5625. tType == 1 ||
  5626. tType == 4 ||
  5627. w.ateacher == userid,
  5628. }"
  5629. >
  5630. {{ JSON.parse(w.score).wScore }}分
  5631. </div>
  5632. <div
  5633. class="answerScore"
  5634. @click.stop="openScore(w)"
  5635. v-else-if="courseDetail.userid == userid"
  5636. :class="{
  5637. rightW:
  5638. w.userid == userid ||
  5639. tType == 1 ||
  5640. tType == 4 ||
  5641. w.ateacher == userid,
  5642. }"
  5643. >
  5644. 评分
  5645. </div>
  5646. <img
  5647. class="deleteImg"
  5648. src="../../assets/deleteworks.png"
  5649. v-if="w.userid == userid || tType == 1 || tType == 4"
  5650. @click.stop="deleteWorks(w.wid)"
  5651. alt
  5652. />
  5653. </div>
  5654. <div class="workImg" v-if="w.type == 12">
  5655. <img
  5656. style="cursor: pointer"
  5657. :src="word2"
  5658. @click="downloadFile(w.works)"
  5659. alt
  5660. />
  5661. <!-- @click="openVideo(w.works)" -->
  5662. <div
  5663. class="answerScore"
  5664. v-if="w.score"
  5665. @click.stop="openScore(w)"
  5666. :class="{
  5667. rightW:
  5668. w.userid == userid ||
  5669. tType == 1 ||
  5670. tType == 4 ||
  5671. w.ateacher == userid,
  5672. }"
  5673. >
  5674. {{ JSON.parse(w.score).wScore }}分
  5675. </div>
  5676. <div
  5677. class="answerScore"
  5678. @click.stop="openScore(w)"
  5679. v-else-if="courseDetail.userid == userid"
  5680. :class="{
  5681. rightW:
  5682. w.userid == userid ||
  5683. tType == 1 ||
  5684. tType == 4 ||
  5685. w.ateacher == userid,
  5686. }"
  5687. >
  5688. 评分
  5689. </div>
  5690. <img
  5691. class="deleteImg"
  5692. src="../../assets/deleteworks.png"
  5693. v-if="w.userid == userid || tType == 1 || tType == 4"
  5694. @click.stop="deleteWorks(w.wid)"
  5695. alt
  5696. />
  5697. </div>
  5698. <div class="comment" style="min-width: 200px">
  5699. <div class="worksName">
  5700. <div>{{ w.sName }}</div>
  5701. </div>
  5702. <div class="commentList">
  5703. <div class="commentList">
  5704. <div
  5705. class="commentImg"
  5706. @click="
  5707. isLikes(w.wid, userid, 1, null, w.isLikes)
  5708. "
  5709. >
  5710. <img
  5711. :src="w.isLikes == true ? likes : noLikes"
  5712. alt=""
  5713. />
  5714. </div>
  5715. <div>{{ w.likesCount }}</div>
  5716. </div>
  5717. <div class="commentList" style="margin-right: 15px">
  5718. <div
  5719. class="commentImg"
  5720. @click="commentOther(w, toolIndex, wIndex)"
  5721. >
  5722. <img
  5723. src="../../assets/icon/comment/comment.png"
  5724. alt=""
  5725. />
  5726. </div>
  5727. <div>{{ w.commentCount }}</div>
  5728. </div>
  5729. </div>
  5730. </div>
  5731. </div>
  5732. </div>
  5733. <div class="noWorksS">
  5734. <div
  5735. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5736. :key="sIndex"
  5737. class="noWorksName"
  5738. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  5739. :class="{ isWork: s.type == '2' }"
  5740. >
  5741. {{ s.student }}
  5742. </div>
  5743. </div>
  5744. </div>
  5745. <div
  5746. v-if="
  5747. tType &&
  5748. ((tType == 2 && sIsOpen == true) ||
  5749. tType == 1 ||
  5750. tType == 4) &&
  5751. tool.tool.indexOf(32) != -1
  5752. "
  5753. class="worksBox"
  5754. >
  5755. <div
  5756. class="zuoyeYulan"
  5757. v-if="
  5758. worksStudent.length && worksStudent[toolIndex].length > 0
  5759. "
  5760. >
  5761. <div class="worksTop">
  5762. <div>作业预览</div>
  5763. <div
  5764. class="corOpen"
  5765. @click="contract(toolIndex)"
  5766. v-if="
  5767. worksStudent[toolIndex].length > 6 &&
  5768. isCloseList[toolIndex].isClose == 0
  5769. "
  5770. >
  5771. 收缩
  5772. </div>
  5773. <div
  5774. class="corOpen"
  5775. @click="contract(toolIndex)"
  5776. v-if="isCloseList[toolIndex].isClose == 1"
  5777. >
  5778. 展开
  5779. </div>
  5780. </div>
  5781. </div>
  5782. <div
  5783. class="worksDetailBox"
  5784. v-if="
  5785. worksStudent.length && worksStudent[toolIndex].length > 0
  5786. "
  5787. >
  5788. <div
  5789. class="works"
  5790. style="
  5791. width: 200px;
  5792. height: 140px;
  5793. margin: 10px 10px 10px 0;
  5794. border-radius: 15px;
  5795. box-shadow: 0 0 6px 1px #dfdada;
  5796. "
  5797. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5798. ? worksStudent[toolIndex]
  5799. : worksStudent[toolIndex].slice(0, 6)"
  5800. :key="wIndex"
  5801. :class="w.type == 1 ? 'isTypeOne' : ''"
  5802. >
  5803. <div class="workImg">
  5804. <img :src="word2" @click="downloadFile(w.works)" alt />
  5805. <div
  5806. class="answerScore"
  5807. v-if="w.score"
  5808. @click.stop="openScore(w)"
  5809. :class="{
  5810. rightW:
  5811. w.userid == userid ||
  5812. tType == 1 ||
  5813. tType == 4 ||
  5814. w.ateacher == userid,
  5815. }"
  5816. >
  5817. {{ JSON.parse(w.score).wScore }}分
  5818. </div>
  5819. <div
  5820. class="answerScore"
  5821. @click.stop="openScore(w)"
  5822. v-else-if="courseDetail.userid == userid"
  5823. :class="{
  5824. rightW:
  5825. w.userid == userid ||
  5826. tType == 1 ||
  5827. tType == 4 ||
  5828. w.ateacher == userid,
  5829. }"
  5830. >
  5831. 评分
  5832. </div>
  5833. <img
  5834. class="deleteImg"
  5835. src="../../assets/deleteworks.png"
  5836. v-if="w.userid == userid || tType == 1 || tType == 4"
  5837. @click.stop="deleteWorks(w.wid)"
  5838. alt
  5839. />
  5840. </div>
  5841. <div class="comment" style="min-width: 200px">
  5842. <div class="worksName">
  5843. <div>{{ w.sName }}</div>
  5844. </div>
  5845. <div class="commentList">
  5846. <div class="commentList">
  5847. <div
  5848. class="commentImg"
  5849. @click="
  5850. isLikes(w.wid, userid, 1, null, w.isLikes)
  5851. "
  5852. >
  5853. <img
  5854. :src="w.isLikes == true ? likes : noLikes"
  5855. alt=""
  5856. />
  5857. </div>
  5858. <div>{{ w.likesCount }}</div>
  5859. </div>
  5860. <div class="commentList" style="margin-right: 15px">
  5861. <div
  5862. class="commentImg"
  5863. @click="commentOther(w, toolIndex, wIndex)"
  5864. >
  5865. <img
  5866. src="../../assets/icon/comment/comment.png"
  5867. alt=""
  5868. />
  5869. </div>
  5870. <div>{{ w.commentCount }}</div>
  5871. </div>
  5872. </div>
  5873. </div>
  5874. </div>
  5875. </div>
  5876. <div class="noWorksS">
  5877. <div
  5878. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5879. :key="sIndex"
  5880. class="noWorksName"
  5881. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  5882. :class="{ isWork: s.type == '2' }"
  5883. >
  5884. {{ s.student }}
  5885. </div>
  5886. </div>
  5887. </div>
  5888. <div
  5889. v-if="
  5890. tType &&
  5891. ((tType == 2 && sIsOpen == true) ||
  5892. tType == 1 ||
  5893. tType == 4) &&
  5894. tool.tool.indexOf(57) != -1
  5895. "
  5896. class="worksBox"
  5897. >
  5898. <div
  5899. class="zuoyeYulan"
  5900. v-if="
  5901. worksStudent.length && worksStudent[toolIndex].length > 0
  5902. "
  5903. >
  5904. <div class="worksTop">
  5905. <div>作业预览</div>
  5906. <div
  5907. class="corOpen"
  5908. @click="contract(toolIndex)"
  5909. v-if="
  5910. worksStudent[toolIndex].length > 6 &&
  5911. isCloseList[toolIndex].isClose == 0
  5912. "
  5913. >
  5914. 收缩
  5915. </div>
  5916. <div
  5917. class="corOpen"
  5918. @click="contract(toolIndex)"
  5919. v-if="isCloseList[toolIndex].isClose == 1"
  5920. >
  5921. 展开
  5922. </div>
  5923. </div>
  5924. </div>
  5925. <div
  5926. class="worksDetailBox"
  5927. v-if="
  5928. worksStudent.length && worksStudent[toolIndex].length > 0
  5929. "
  5930. >
  5931. <div
  5932. class="works"
  5933. style="
  5934. width: 200px;
  5935. height: 140px;
  5936. margin: 10px 10px 10px 0;
  5937. border-radius: 15px;
  5938. box-shadow: 0 0 6px 1px #dfdada;
  5939. "
  5940. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5941. ? worksStudent[toolIndex]
  5942. : worksStudent[toolIndex].slice(0, 6)"
  5943. :key="wIndex"
  5944. :class="w.type == 1 ? 'isTypeOne' : ''"
  5945. >
  5946. <div class="workImg">
  5947. <img
  5948. :src="word2"
  5949. @click="downloadFile(w.works)"
  5950. v-if="w.type == 12"
  5951. alt
  5952. />
  5953. <img
  5954. :src="word2"
  5955. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  5956. v-else-if="w.type == 15"
  5957. alt
  5958. />
  5959. <div
  5960. class="answerScore"
  5961. v-if="w.score"
  5962. @click.stop="openScore(w)"
  5963. :class="{
  5964. rightW:
  5965. w.userid == userid ||
  5966. tType == 1 ||
  5967. tType == 4 ||
  5968. w.ateacher == userid,
  5969. }"
  5970. >
  5971. {{ JSON.parse(w.score).wScore }}分
  5972. </div>
  5973. <div
  5974. class="answerScore"
  5975. @click.stop="openScore(w)"
  5976. v-else-if="courseDetail.userid == userid"
  5977. :class="{
  5978. rightW:
  5979. w.userid == userid ||
  5980. tType == 1 ||
  5981. tType == 4 ||
  5982. w.ateacher == userid,
  5983. }"
  5984. >
  5985. 评分
  5986. </div>
  5987. <img
  5988. class="deleteImg"
  5989. src="../../assets/deleteworks.png"
  5990. v-if="w.userid == userid || tType == 1 || tType == 4"
  5991. @click.stop="deleteWorks(w.wid)"
  5992. alt
  5993. />
  5994. </div>
  5995. <div class="comment" style="min-width: 200px">
  5996. <div class="worksName">
  5997. <div>{{ w.sName }}</div>
  5998. </div>
  5999. <div class="commentList">
  6000. <div class="commentList">
  6001. <div
  6002. class="commentImg"
  6003. @click="
  6004. isLikes(w.wid, userid, 1, null, w.isLikes)
  6005. "
  6006. >
  6007. <img
  6008. :src="w.isLikes == true ? likes : noLikes"
  6009. alt=""
  6010. />
  6011. </div>
  6012. <div>{{ w.likesCount }}</div>
  6013. </div>
  6014. <div class="commentList" style="margin-right: 15px">
  6015. <div
  6016. class="commentImg"
  6017. @click="commentOther(w, toolIndex, wIndex)"
  6018. >
  6019. <img
  6020. src="../../assets/icon/comment/comment.png"
  6021. alt=""
  6022. />
  6023. </div>
  6024. <div>{{ w.commentCount }}</div>
  6025. </div>
  6026. </div>
  6027. </div>
  6028. </div>
  6029. </div>
  6030. <div class="noWorksS">
  6031. <div
  6032. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6033. :key="sIndex"
  6034. class="noWorksName"
  6035. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  6036. :class="{ isWork: s.type == '2' }"
  6037. >
  6038. {{ s.student }}
  6039. </div>
  6040. </div>
  6041. </div>
  6042. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  6043. <div
  6044. class="zuoyeYulan"
  6045. v-if="
  6046. worksStudent.length && worksStudent[toolIndex].length > 0
  6047. "
  6048. >
  6049. <span>作业预览</span>
  6050. <div
  6051. class="corOpen"
  6052. @click="contract(toolIndex)"
  6053. v-if="
  6054. worksStudent[toolIndex].length > 6 &&
  6055. isCloseList[toolIndex].isClose == 0
  6056. "
  6057. >
  6058. 收缩
  6059. </div>
  6060. <div
  6061. class="corOpen"
  6062. @click="contract(toolIndex)"
  6063. v-if="isCloseList[toolIndex].isClose == 1"
  6064. >
  6065. 展开
  6066. </div>
  6067. </div>
  6068. <div
  6069. class="worksDetailBox"
  6070. v-if="
  6071. worksStudent.length && worksStudent[toolIndex].length > 0
  6072. "
  6073. >
  6074. <div
  6075. class="works"
  6076. style="
  6077. width: 200px;
  6078. height: 140px;
  6079. margin: 10px 10px 10px 0;
  6080. border-radius: 15px;
  6081. box-shadow: 0 0 6px 1px #dfdada;
  6082. "
  6083. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6084. ? worksStudent[toolIndex]
  6085. : worksStudent[toolIndex].slice(0, 6)"
  6086. :key="wIndex"
  6087. :class="w.type == 1 ? 'isTypeOne' : ''"
  6088. >
  6089. <div class="workImg" v-if="w.type == 0">
  6090. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6091. <img :src="w.works" @click="previewImg(w.works)" alt />
  6092. <div
  6093. class="answerScore"
  6094. v-if="w.score"
  6095. @click.stop="openScore(w)"
  6096. :class="{
  6097. rightW:
  6098. w.userid == userid ||
  6099. tType == 1 ||
  6100. tType == 4 ||
  6101. w.ateacher == userid,
  6102. }"
  6103. >
  6104. {{ JSON.parse(w.score).wScore }}分
  6105. </div>
  6106. <div
  6107. class="answerScore"
  6108. @click.stop="openScore(w)"
  6109. v-else-if="courseDetail.userid == userid"
  6110. :class="{
  6111. rightW:
  6112. w.userid == userid ||
  6113. tType == 1 ||
  6114. tType == 4 ||
  6115. w.ateacher == userid,
  6116. }"
  6117. >
  6118. 评分
  6119. </div>
  6120. <img
  6121. class="deleteImg"
  6122. src="../../assets/deleteworks.png"
  6123. v-if="w.userid == userid || tType == 1 || tType == 4"
  6124. @click.stop="deleteWorks(w.wid)"
  6125. alt
  6126. />
  6127. </div>
  6128. <div
  6129. class="workImg"
  6130. style="cursor: pointer"
  6131. v-if="w.type == 1"
  6132. >
  6133. <img :src="word" @click="openFile(w.works)" alt />
  6134. <!-- @click="openFile(w.works)" -->
  6135. <div
  6136. class="answerScore"
  6137. v-if="w.score"
  6138. @click.stop="openScore(w)"
  6139. :class="{
  6140. rightW:
  6141. w.userid == userid ||
  6142. tType == 1 ||
  6143. tType == 4 ||
  6144. w.ateacher == userid,
  6145. }"
  6146. >
  6147. {{ JSON.parse(w.score).wScore }}分
  6148. </div>
  6149. <div
  6150. class="answerScore"
  6151. @click.stop="openScore(w)"
  6152. v-else-if="courseDetail.userid == userid"
  6153. :class="{
  6154. rightW:
  6155. w.userid == userid ||
  6156. tType == 1 ||
  6157. tType == 4 ||
  6158. w.ateacher == userid,
  6159. }"
  6160. >
  6161. 评分
  6162. </div>
  6163. <img
  6164. class="deleteImg"
  6165. src="../../assets/deleteworks.png"
  6166. v-if="w.userid == userid || tType == 1 || tType == 4"
  6167. @click.stop="deleteWorks(w.wid)"
  6168. alt
  6169. />
  6170. </div>
  6171. <div class="workImg" v-if="w.type == 3">
  6172. <img
  6173. style="cursor: pointer"
  6174. :src="video"
  6175. @click="openVideo(w)"
  6176. alt
  6177. />
  6178. <!-- @click="openVideo(w.works)" -->
  6179. <div
  6180. class="answerScore"
  6181. v-if="w.score"
  6182. @click.stop="openScore(w)"
  6183. :class="{
  6184. rightW:
  6185. w.userid == userid ||
  6186. tType == 1 ||
  6187. tType == 4 ||
  6188. w.ateacher == userid,
  6189. }"
  6190. >
  6191. {{ JSON.parse(w.score).wScore }}分
  6192. </div>
  6193. <div
  6194. class="answerScore"
  6195. @click.stop="openScore(w)"
  6196. v-else-if="courseDetail.userid == userid"
  6197. :class="{
  6198. rightW:
  6199. w.userid == userid ||
  6200. tType == 1 ||
  6201. tType == 4 ||
  6202. w.ateacher == userid,
  6203. }"
  6204. >
  6205. 评分
  6206. </div>
  6207. <img
  6208. class="deleteImg"
  6209. src="../../assets/deleteworks.png"
  6210. v-if="w.userid == userid || tType == 1 || tType == 4"
  6211. @click.stop="deleteWorks(w.wid)"
  6212. alt
  6213. />
  6214. </div>
  6215. <div class="comment" style="min-width: 200px">
  6216. <div class="worksName">
  6217. <div
  6218. style="cursor: pointer"
  6219. @click="
  6220. openSname(w.sName, w.wid, toolIndex, w.userid)
  6221. "
  6222. >
  6223. {{ w.sName }}
  6224. </div>
  6225. </div>
  6226. <div class="commentList">
  6227. <div class="commentList">
  6228. <div
  6229. class="commentImg"
  6230. @click="
  6231. isLikes(w.wid, userid, 1, null, w.isLikes)
  6232. "
  6233. >
  6234. <img
  6235. :src="w.isLikes == true ? likes : noLikes"
  6236. alt=""
  6237. />
  6238. </div>
  6239. <div>{{ w.likesCount }}</div>
  6240. </div>
  6241. <div class="commentList" style="margin-right: 15px">
  6242. <div
  6243. class="commentImg"
  6244. @click="commentOther(w, toolIndex, wIndex)"
  6245. >
  6246. <img
  6247. src="../../assets/icon/comment/comment.png"
  6248. alt=""
  6249. />
  6250. </div>
  6251. <div>{{ w.commentCount }}</div>
  6252. </div>
  6253. </div>
  6254. </div>
  6255. </div>
  6256. </div>
  6257. <div class="noWorksS">
  6258. <div
  6259. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6260. :key="sIndex"
  6261. class="noWorksName"
  6262. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  6263. :class="{ isWork: s.type == '2' }"
  6264. >
  6265. {{ s.student }}
  6266. </div>
  6267. </div>
  6268. </div>
  6269. <div
  6270. v-if="
  6271. tType &&
  6272. ((tType == 2 && sIsOpen == true) ||
  6273. tType == 1 ||
  6274. tType == 4) &&
  6275. tool.tool.indexOf(4) != -1
  6276. "
  6277. class="worksBox"
  6278. >
  6279. <div
  6280. class="zuoyeYulan"
  6281. v-if="
  6282. worksStudent.length && worksStudent[toolIndex].length > 0
  6283. "
  6284. >
  6285. <div class="worksTop">
  6286. <div>作业预览</div>
  6287. <div
  6288. class="corOpen"
  6289. @click="contract(toolIndex)"
  6290. v-if="
  6291. worksStudent[toolIndex].length > 6 &&
  6292. isCloseList[toolIndex].isClose == 0
  6293. "
  6294. >
  6295. 收缩
  6296. </div>
  6297. <div
  6298. class="corOpen"
  6299. @click="contract(toolIndex)"
  6300. v-if="isCloseList[toolIndex].isClose == 1"
  6301. >
  6302. 展开
  6303. </div>
  6304. </div>
  6305. </div>
  6306. <div>
  6307. <div
  6308. class="worksDetailBox"
  6309. v-if="
  6310. worksStudent.length &&
  6311. worksStudent[toolIndex].length > 0
  6312. "
  6313. >
  6314. <div
  6315. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6316. 0
  6317. ? worksStudent[toolIndex]
  6318. : worksStudent[toolIndex].slice(0, 6)"
  6319. :key="wIndex"
  6320. class="isWorksName2"
  6321. @click="
  6322. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6323. "
  6324. >
  6325. {{ w.sName }}
  6326. <img
  6327. class="deleteImg deleteImg2"
  6328. src="../../assets/deleteworks.png"
  6329. v-if="w.userid == userid || tType == 1 || tType == 4"
  6330. @click.stop="deleteWorks(w.wid)"
  6331. alt
  6332. />
  6333. </div>
  6334. </div>
  6335. </div>
  6336. <div class="noWorksS">
  6337. <div
  6338. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6339. :key="sIndex"
  6340. class="noWorksName"
  6341. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6342. :class="{ isWork: s.type == '2' }"
  6343. >
  6344. {{ s.student }}
  6345. </div>
  6346. </div>
  6347. </div>
  6348. <div
  6349. v-if="
  6350. tType &&
  6351. ((tType == 2 && sIsOpen == true) ||
  6352. tType == 1 ||
  6353. tType == 4) &&
  6354. tool.tool.indexOf(45) != -1
  6355. "
  6356. class="worksBox"
  6357. >
  6358. <div
  6359. class="zuoyeYulan"
  6360. v-if="
  6361. worksStudent.length && worksStudent[toolIndex].length > 0
  6362. "
  6363. >
  6364. <div class="worksTop">
  6365. <div>作业预览</div>
  6366. <div
  6367. class="corOpen"
  6368. @click="contract(toolIndex)"
  6369. v-if="
  6370. worksStudent[toolIndex].length > 6 &&
  6371. isCloseList[toolIndex].isClose == 0
  6372. "
  6373. >
  6374. 收缩
  6375. </div>
  6376. <div
  6377. class="corOpen"
  6378. @click="contract(toolIndex)"
  6379. v-if="isCloseList[toolIndex].isClose == 1"
  6380. >
  6381. 展开
  6382. </div>
  6383. </div>
  6384. </div>
  6385. <div>
  6386. <div
  6387. class="worksDetailBox"
  6388. v-if="
  6389. worksStudent.length &&
  6390. worksStudent[toolIndex].length > 0
  6391. "
  6392. >
  6393. <div
  6394. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6395. 0
  6396. ? worksStudent[toolIndex]
  6397. : worksStudent[toolIndex].slice(0, 6)"
  6398. :key="wIndex"
  6399. class="isWorksName2"
  6400. @click="
  6401. openTools(45, toolIndex, taskCount, w.works, w.sName)
  6402. "
  6403. >
  6404. {{ w.sName }}
  6405. <img
  6406. class="deleteImg deleteImg2"
  6407. src="../../assets/deleteworks.png"
  6408. v-if="w.userid == userid || tType == 1 || tType == 4"
  6409. @click.stop="deleteWorks(w.wid)"
  6410. alt
  6411. />
  6412. </div>
  6413. </div>
  6414. </div>
  6415. <div class="noWorksS">
  6416. <div
  6417. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6418. :key="sIndex"
  6419. class="noWorksName"
  6420. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6421. :class="{ isWork: s.type == '2' }"
  6422. >
  6423. {{ s.student }}
  6424. </div>
  6425. </div>
  6426. </div>
  6427. <div
  6428. v-if="
  6429. tType &&
  6430. ((tType == 2 && sIsOpen == true) ||
  6431. tType == 1 ||
  6432. tType == 4) &&
  6433. tool.tool.indexOf(15) != -1
  6434. "
  6435. class="worksBox"
  6436. >
  6437. <div
  6438. class="zuoyeYulan"
  6439. v-if="
  6440. worksStudent.length && worksStudent[toolIndex].length > 0
  6441. "
  6442. >
  6443. <div class="worksTop">
  6444. <div>作业预览</div>
  6445. <div
  6446. class="corOpen"
  6447. @click="contract(toolIndex)"
  6448. v-if="
  6449. worksStudent[toolIndex].length > 6 &&
  6450. isCloseList[toolIndex].isClose == 0
  6451. "
  6452. >
  6453. 收缩
  6454. </div>
  6455. <div
  6456. class="corOpen"
  6457. @click="contract(toolIndex)"
  6458. v-if="isCloseList[toolIndex].isClose == 1"
  6459. >
  6460. 展开
  6461. </div>
  6462. </div>
  6463. </div>
  6464. <div
  6465. class="worksDetailBox"
  6466. v-if="
  6467. worksStudent.length && worksStudent[toolIndex].length > 0
  6468. "
  6469. >
  6470. <div
  6471. class="works"
  6472. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6473. ? worksStudent[toolIndex]
  6474. : worksStudent[toolIndex].slice(0, 6)"
  6475. :key="wIndex"
  6476. >
  6477. <div
  6478. class="workImg"
  6479. style="
  6480. border-radius: 15px;
  6481. box-shadow: #eee 0px 0px 5px 5px;
  6482. "
  6483. >
  6484. <!-- <img
  6485. src="../../assets/icon/works/noImg.png"
  6486. @click="openTools(15, toolIndex, taskCount, w.works)"
  6487. alt=""
  6488. />-->
  6489. <div
  6490. class="answerBg"
  6491. style="border-radius: 15px 15px 0 0"
  6492. @click="commentOther(w, toolIndex, wIndex)"
  6493. >
  6494. <!-- <div>{{ w.sName }}</div> -->
  6495. <div class="answerContent">
  6496. {{ JSON.parse(w.works)[0].answer }}
  6497. </div>
  6498. <div
  6499. class="answerScore"
  6500. v-if="w.score"
  6501. @click.stop="openScore(w)"
  6502. :class="{
  6503. rightW:
  6504. w.userid == userid || tType == 1 || tType == 4,
  6505. }"
  6506. >
  6507. {{ JSON.parse(w.score).wScore }}分
  6508. </div>
  6509. <div
  6510. class="answerScore"
  6511. @click.stop="openScore(w)"
  6512. v-else-if="courseDetail.userid == userid"
  6513. :class="{
  6514. rightW:
  6515. w.userid == userid || tType == 1 || tType == 4,
  6516. }"
  6517. >
  6518. 评分
  6519. </div>
  6520. <img
  6521. class="deleteImg"
  6522. src="../../assets/deleteworks.png"
  6523. v-if="
  6524. w.userid == userid || tType == 1 || tType == 4
  6525. "
  6526. @click.stop="deleteWorks(w.wid)"
  6527. alt
  6528. />
  6529. </div>
  6530. <div class="comment">
  6531. <div class="worksName">
  6532. <div>{{ w.sName }}</div>
  6533. </div>
  6534. <div class="commentList">
  6535. <div
  6536. class="commentImg"
  6537. @click="
  6538. isLikes(w.wid, userid, 1, null, w.isLikes)
  6539. "
  6540. >
  6541. <img
  6542. :src="w.isLikes == true ? likes : noLikes"
  6543. alt=""
  6544. />
  6545. </div>
  6546. <div>{{ w.likesCount }}</div>
  6547. </div>
  6548. <div class="commentList" style="margin-right: 15px">
  6549. <div
  6550. class="commentImg"
  6551. @click="commentOther(w, toolIndex, wIndex)"
  6552. >
  6553. <img
  6554. src="../../assets/icon/comment/comment.png"
  6555. alt=""
  6556. />
  6557. </div>
  6558. <div>{{ w.commentCount }}</div>
  6559. </div>
  6560. </div>
  6561. </div>
  6562. </div>
  6563. </div>
  6564. <div class="noWorksS">
  6565. <div
  6566. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6567. :key="sIndex"
  6568. class="noWorksName"
  6569. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6570. :class="{ isWork: s.type == '2' }"
  6571. >
  6572. {{ s.student }}
  6573. </div>
  6574. </div>
  6575. </div>
  6576. <div
  6577. v-if="
  6578. tType &&
  6579. ((tType == 2 && sIsOpen == true) ||
  6580. tType == 1 ||
  6581. tType == 4) &&
  6582. tool.tool.indexOf(1) != -1
  6583. "
  6584. class="worksBox"
  6585. >
  6586. <div
  6587. class="zuoyeYulan"
  6588. v-if="
  6589. worksStudent.length && worksStudent[toolIndex].length > 0
  6590. "
  6591. >
  6592. <div class="worksTop">
  6593. <div>作业预览</div>
  6594. <div
  6595. class="corOpen"
  6596. @click="contract(toolIndex)"
  6597. v-if="
  6598. worksStudent[toolIndex].length > 6 &&
  6599. isCloseList[toolIndex].isClose == 0
  6600. "
  6601. >
  6602. 收缩
  6603. </div>
  6604. <div
  6605. class="corOpen"
  6606. @click="contract(toolIndex)"
  6607. v-if="isCloseList[toolIndex].isClose == 1"
  6608. >
  6609. 展开
  6610. </div>
  6611. </div>
  6612. </div>
  6613. <div
  6614. class="worksDetailBox"
  6615. v-if="
  6616. worksStudent.length && worksStudent[toolIndex].length > 0
  6617. "
  6618. >
  6619. <div
  6620. class="works"
  6621. style="
  6622. width: 200px;
  6623. height: 140px;
  6624. margin: 10px 10px 10px 0;
  6625. border-radius: 15px;
  6626. box-shadow: 0 0 6px 1px #dfdada;
  6627. "
  6628. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6629. ? worksStudent[toolIndex]
  6630. : worksStudent[toolIndex].slice(0, 6)"
  6631. :key="wIndex"
  6632. >
  6633. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6634. <div class="workImg">
  6635. <img :src="w.works" @click="previewImg(w.works)" alt />
  6636. <div
  6637. class="answerScore"
  6638. v-if="w.score"
  6639. @click.stop="openScore(w)"
  6640. :class="{
  6641. rightW:
  6642. w.userid == userid || tType == 1 || tType == 4,
  6643. }"
  6644. >
  6645. {{ JSON.parse(w.score).wScore }}分
  6646. </div>
  6647. <div
  6648. class="answerScore"
  6649. @click.stop="openScore(w)"
  6650. v-else-if="courseDetail.userid == userid"
  6651. :class="{
  6652. rightW:
  6653. w.userid == userid || tType == 1 || tType == 4,
  6654. }"
  6655. >
  6656. 评分
  6657. </div>
  6658. <img
  6659. class="deleteImg"
  6660. src="../../assets/deleteworks.png"
  6661. v-if="w.userid == userid || tType == 1 || tType == 4"
  6662. @click.stop="deleteWorks(w.wid)"
  6663. alt
  6664. />
  6665. </div>
  6666. <div class="comment" style="min-width: 200px">
  6667. <div class="worksName">
  6668. <div>{{ w.sName }}</div>
  6669. </div>
  6670. <div class="commentList">
  6671. <div class="commentList">
  6672. <div
  6673. class="commentImg"
  6674. @click="
  6675. isLikes(w.wid, userid, 1, null, w.isLikes)
  6676. "
  6677. >
  6678. <img
  6679. :src="w.isLikes == true ? likes : noLikes"
  6680. alt=""
  6681. />
  6682. </div>
  6683. <div>{{ w.likesCount }}</div>
  6684. </div>
  6685. <div class="commentList" style="margin-right: 15px">
  6686. <div
  6687. class="commentImg"
  6688. @click="commentOther(w, toolIndex, wIndex)"
  6689. >
  6690. <img
  6691. src="../../assets/icon/comment/comment.png"
  6692. alt=""
  6693. />
  6694. </div>
  6695. <div>{{ w.commentCount }}</div>
  6696. </div>
  6697. </div>
  6698. </div>
  6699. </div>
  6700. </div>
  6701. <div class="noWorksS">
  6702. <div
  6703. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6704. :key="sIndex"
  6705. class="noWorksName"
  6706. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  6707. :class="{ isWork: s.type == '2' }"
  6708. >
  6709. {{ s.student }}
  6710. </div>
  6711. </div>
  6712. </div>
  6713. <div
  6714. v-if="
  6715. tType &&
  6716. ((tType == 2 && sIsOpen == true) ||
  6717. tType == 1 ||
  6718. tType == 4) &&
  6719. tool.tool.indexOf(3) != -1
  6720. "
  6721. class="worksBox"
  6722. >
  6723. <div
  6724. class="zuoyeYulan"
  6725. v-if="
  6726. worksStudent.length && worksStudent[toolIndex].length > 0
  6727. "
  6728. >
  6729. <div class="worksTop">
  6730. <div>作业预览</div>
  6731. <div
  6732. class="corOpen"
  6733. @click="contract(toolIndex)"
  6734. v-if="
  6735. worksStudent[toolIndex].length > 6 &&
  6736. isCloseList[toolIndex].isClose == 0
  6737. "
  6738. >
  6739. 收缩
  6740. </div>
  6741. <div
  6742. class="corOpen"
  6743. @click="contract(toolIndex)"
  6744. v-if="isCloseList[toolIndex].isClose == 1"
  6745. >
  6746. 展开
  6747. </div>
  6748. </div>
  6749. </div>
  6750. <div
  6751. class="worksDetailBox"
  6752. v-if="
  6753. worksStudent.length && worksStudent[toolIndex].length > 0
  6754. "
  6755. >
  6756. <div
  6757. class="works"
  6758. style="
  6759. width: 200px;
  6760. height: 140px;
  6761. margin: 10px 10px 10px 0;
  6762. border-radius: 15px;
  6763. box-shadow: 0 0 6px 1px #dfdada;
  6764. "
  6765. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6766. ? worksStudent[toolIndex]
  6767. : worksStudent[toolIndex].slice(0, 6)"
  6768. :key="wIndex"
  6769. >
  6770. <!-- @click="previewImg(w.works)" -->
  6771. <div class="workImg">
  6772. <img :src="w.works" @click="previewImg(w.works)" alt />
  6773. <div
  6774. class="answerScore"
  6775. v-if="w.score"
  6776. @click.stop="openScore(w)"
  6777. :class="{
  6778. rightW:
  6779. w.userid == userid || tType == 1 || tType == 4,
  6780. }"
  6781. >
  6782. {{ JSON.parse(w.score).wScore }}分
  6783. </div>
  6784. <div
  6785. class="answerScore"
  6786. @click.stop="openScore(w)"
  6787. v-else-if="courseDetail.userid == userid"
  6788. :class="{
  6789. rightW:
  6790. w.userid == userid || tType == 1 || tType == 4,
  6791. }"
  6792. >
  6793. 评分
  6794. </div>
  6795. <img
  6796. class="deleteImg"
  6797. src="../../assets/deleteworks.png"
  6798. v-if="w.userid == userid || tType == 1 || tType == 4"
  6799. @click.stop="deleteWorks(w.wid)"
  6800. alt
  6801. />
  6802. </div>
  6803. <div class="comment" style="min-width: 200px">
  6804. <div class="worksName">
  6805. <div>{{ w.sName }}</div>
  6806. </div>
  6807. <div class="commentList">
  6808. <div class="commentList">
  6809. <div
  6810. class="commentImg"
  6811. @click="
  6812. isLikes(w.wid, userid, 1, null, w.isLikes)
  6813. "
  6814. >
  6815. <img
  6816. :src="w.isLikes == true ? likes : noLikes"
  6817. alt=""
  6818. />
  6819. </div>
  6820. <div>{{ w.likesCount }}</div>
  6821. </div>
  6822. <div class="commentList" style="margin-right: 15px">
  6823. <div
  6824. class="commentImg"
  6825. @click="commentOther(w, toolIndex, wIndex)"
  6826. >
  6827. <img
  6828. src="../../assets/icon/comment/comment.png"
  6829. alt=""
  6830. />
  6831. </div>
  6832. <div>{{ w.commentCount }}</div>
  6833. </div>
  6834. </div>
  6835. </div>
  6836. </div>
  6837. </div>
  6838. <div class="noWorksS">
  6839. <div
  6840. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6841. :key="sIndex"
  6842. class="noWorksName"
  6843. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  6844. :class="{ isWork: s.type == '2' }"
  6845. >
  6846. {{ s.student }}
  6847. </div>
  6848. </div>
  6849. </div>
  6850. <div
  6851. v-if="
  6852. tType &&
  6853. ((tType == 2 && sIsOpen == true) ||
  6854. tType == 1 ||
  6855. tType == 4) &&
  6856. tool.tool.indexOf(6) != -1
  6857. "
  6858. class="worksBox"
  6859. >
  6860. <div
  6861. class="zuoyeYulan"
  6862. v-if="
  6863. worksStudent.length && worksStudent[toolIndex].length > 0
  6864. "
  6865. >
  6866. <div class="worksTop">
  6867. <div>作业预览</div>
  6868. <div
  6869. class="corOpen"
  6870. @click="contract(toolIndex)"
  6871. v-if="
  6872. worksStudent[toolIndex].length > 6 &&
  6873. isCloseList[toolIndex].isClose == 0
  6874. "
  6875. >
  6876. 收缩
  6877. </div>
  6878. <div
  6879. class="corOpen"
  6880. @click="contract(toolIndex)"
  6881. v-if="isCloseList[toolIndex].isClose == 1"
  6882. >
  6883. 展开
  6884. </div>
  6885. </div>
  6886. </div>
  6887. <div
  6888. class="worksDetailBox"
  6889. v-if="
  6890. worksStudent.length && worksStudent[toolIndex].length > 0
  6891. "
  6892. >
  6893. <div
  6894. class="works"
  6895. style="
  6896. width: 200px;
  6897. height: 140px;
  6898. margin: 10px 10px 10px 0;
  6899. border-radius: 15px;
  6900. box-shadow: 0 0 6px 1px #dfdada;
  6901. "
  6902. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6903. ? worksStudent[toolIndex]
  6904. : worksStudent[toolIndex].slice(0, 6)"
  6905. :key="wIndex"
  6906. >
  6907. <!-- @click="previewImg(w.works)" -->
  6908. <div class="workImg">
  6909. <img :src="w.works" @click="previewImg(w.works)" alt />
  6910. <div
  6911. class="answerScore"
  6912. v-if="w.score"
  6913. @click.stop="openScore(w)"
  6914. :class="{
  6915. rightW:
  6916. w.userid == userid || tType == 1 || tType == 4,
  6917. }"
  6918. >
  6919. {{ JSON.parse(w.score).wScore }}分
  6920. </div>
  6921. <div
  6922. class="answerScore"
  6923. @click.stop="openScore(w)"
  6924. v-else-if="courseDetail.userid == userid"
  6925. :class="{
  6926. rightW:
  6927. w.userid == userid || tType == 1 || tType == 4,
  6928. }"
  6929. >
  6930. 评分
  6931. </div>
  6932. <img
  6933. class="deleteImg"
  6934. src="../../assets/deleteworks.png"
  6935. v-if="w.userid == userid || tType == 1 || tType == 4"
  6936. @click.stop="deleteWorks(w.wid)"
  6937. alt
  6938. />
  6939. </div>
  6940. <div class="comment" style="min-width: 200px">
  6941. <div class="worksName">
  6942. <div>{{ w.sName }}</div>
  6943. </div>
  6944. <div class="commentList">
  6945. <div class="commentList">
  6946. <div
  6947. class="commentImg"
  6948. @click="
  6949. isLikes(w.wid, userid, 1, null, w.isLikes)
  6950. "
  6951. >
  6952. <img
  6953. :src="w.isLikes == true ? likes : noLikes"
  6954. alt=""
  6955. />
  6956. </div>
  6957. <div>{{ w.likesCount }}</div>
  6958. </div>
  6959. <div class="commentList" style="margin-right: 15px">
  6960. <div
  6961. class="commentImg"
  6962. @click="commentOther(w, toolIndex, wIndex)"
  6963. >
  6964. <img
  6965. src="../../assets/icon/comment/comment.png"
  6966. alt=""
  6967. />
  6968. </div>
  6969. <div>{{ w.commentCount }}</div>
  6970. </div>
  6971. </div>
  6972. </div>
  6973. </div>
  6974. </div>
  6975. <div class="noWorksS">
  6976. <div
  6977. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6978. :key="sIndex"
  6979. class="noWorksName"
  6980. :class="{ isWork: s.type == '2' }"
  6981. >
  6982. {{ s.student }}
  6983. </div>
  6984. </div>
  6985. </div>
  6986. <div
  6987. v-if="
  6988. tType &&
  6989. ((tType == 2 && sIsOpen == true) ||
  6990. tType == 1 ||
  6991. tType == 4) &&
  6992. tool.tool.indexOf(7) != -1
  6993. "
  6994. class="worksBox"
  6995. >
  6996. <div
  6997. class="zuoyeYulan"
  6998. v-if="
  6999. worksStudent.length && worksStudent[toolIndex].length > 0
  7000. "
  7001. >
  7002. <div class="worksTop">
  7003. <div>作业预览</div>
  7004. <div
  7005. class="corOpen"
  7006. @click="contract(toolIndex)"
  7007. v-if="
  7008. worksStudent[toolIndex].length > 6 &&
  7009. isCloseList[toolIndex].isClose == 0
  7010. "
  7011. >
  7012. 收缩
  7013. </div>
  7014. <div
  7015. class="corOpen"
  7016. @click="contract(toolIndex)"
  7017. v-if="isCloseList[toolIndex].isClose == 1"
  7018. >
  7019. 展开
  7020. </div>
  7021. </div>
  7022. </div>
  7023. <div
  7024. class="worksDetailBox"
  7025. v-if="
  7026. worksStudent.length && worksStudent[toolIndex].length > 0
  7027. "
  7028. >
  7029. <div
  7030. class="works"
  7031. style="
  7032. width: 200px;
  7033. height: 140px;
  7034. margin: 10px 10px 10px 0;
  7035. border-radius: 15px;
  7036. box-shadow: 0 0 6px 1px #dfdada;
  7037. "
  7038. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7039. ? worksStudent[toolIndex]
  7040. : worksStudent[toolIndex].slice(0, 6)"
  7041. :key="wIndex"
  7042. >
  7043. <!-- @click="previewImg(w.works)" -->
  7044. <div class="workImg">
  7045. <img :src="w.works" @click="previewImg(w.works)" alt />
  7046. <div
  7047. class="answerScore"
  7048. v-if="w.score"
  7049. @click.stop="openScore(w)"
  7050. :class="{
  7051. rightW:
  7052. w.userid == userid || tType == 1 || tType == 4,
  7053. }"
  7054. >
  7055. {{ JSON.parse(w.score).wScore }}分
  7056. </div>
  7057. <div
  7058. class="answerScore"
  7059. @click.stop="openScore(w)"
  7060. v-else-if="courseDetail.userid == userid"
  7061. :class="{
  7062. rightW:
  7063. w.userid == userid || tType == 1 || tType == 4,
  7064. }"
  7065. >
  7066. 评分
  7067. </div>
  7068. <img
  7069. class="deleteImg"
  7070. src="../../assets/deleteworks.png"
  7071. v-if="w.userid == userid || tType == 1 || tType == 4"
  7072. @click.stop="deleteWorks(w.wid)"
  7073. alt
  7074. />
  7075. </div>
  7076. <div class="comment" style="min-width: 200px">
  7077. <div class="worksName">
  7078. <div>{{ w.sName }}</div>
  7079. </div>
  7080. <div class="commentList">
  7081. <div class="commentList">
  7082. <div
  7083. class="commentImg"
  7084. @click="
  7085. isLikes(w.wid, userid, 1, null, w.isLikes)
  7086. "
  7087. >
  7088. <img
  7089. :src="w.isLikes == true ? likes : noLikes"
  7090. alt=""
  7091. />
  7092. </div>
  7093. <div>{{ w.likesCount }}</div>
  7094. </div>
  7095. <div class="commentList" style="margin-right: 15px">
  7096. <div
  7097. class="commentImg"
  7098. @click="commentOther(w, toolIndex, wIndex)"
  7099. >
  7100. <img
  7101. src="../../assets/icon/comment/comment.png"
  7102. alt=""
  7103. />
  7104. </div>
  7105. <div>{{ w.commentCount }}</div>
  7106. </div>
  7107. </div>
  7108. </div>
  7109. </div>
  7110. </div>
  7111. <div class="noWorksS">
  7112. <div
  7113. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7114. :key="sIndex"
  7115. class="noWorksName"
  7116. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  7117. :class="{ isWork: s.type == '2' }"
  7118. >
  7119. {{ s.student }}
  7120. </div>
  7121. </div>
  7122. </div>
  7123. <div
  7124. v-if="
  7125. tType &&
  7126. ((tType == 2 && sIsOpen == true) ||
  7127. tType == 1 ||
  7128. tType == 4) &&
  7129. tool.tool.indexOf(26) != -1
  7130. "
  7131. class="worksBox"
  7132. >
  7133. <div
  7134. class="zuoyeYulan"
  7135. v-if="
  7136. worksStudent.length && worksStudent[toolIndex].length > 0
  7137. "
  7138. >
  7139. <div class="worksTop">
  7140. <div>作业预览</div>
  7141. <div
  7142. class="corOpen"
  7143. @click="contract(toolIndex)"
  7144. v-if="
  7145. worksStudent[toolIndex].length > 6 &&
  7146. isCloseList[toolIndex].isClose == 0
  7147. "
  7148. >
  7149. 收缩
  7150. </div>
  7151. <div
  7152. class="corOpen"
  7153. @click="contract(toolIndex)"
  7154. v-if="isCloseList[toolIndex].isClose == 1"
  7155. >
  7156. 展开
  7157. </div>
  7158. </div>
  7159. </div>
  7160. <div
  7161. class="worksDetailBox"
  7162. v-if="
  7163. worksStudent.length && worksStudent[toolIndex].length > 0
  7164. "
  7165. >
  7166. <div
  7167. class="works"
  7168. style="width: 240px; height: 140px; overflow: hidden"
  7169. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7170. ? worksStudent[toolIndex]
  7171. : worksStudent[toolIndex].slice(0, 6)"
  7172. :key="wIndex"
  7173. :class="w.type == 1 ? 'isTypeOne' : ''"
  7174. >
  7175. <div class="workImg" v-if="w.type == 0">
  7176. <img :src="w.works" @click="previewImg(w.works)" alt />
  7177. <img
  7178. class="deleteImg"
  7179. src="../../assets/deleteworks.png"
  7180. v-if="w.userid == userid || tType == 1 || tType == 4"
  7181. @click.stop="deleteWorks(w.wid)"
  7182. alt
  7183. />
  7184. </div>
  7185. <div class="workImg" v-if="w.type == 1">
  7186. <img :src="word" @click="openFile(w.works)" alt />
  7187. <img
  7188. class="deleteImg"
  7189. src="../../assets/deleteworks.png"
  7190. v-if="w.userid == userid || tType == 1 || tType == 4"
  7191. @click.stop="deleteWorks(w.wid)"
  7192. alt
  7193. />
  7194. </div>
  7195. <div class="worksName">
  7196. <div>{{ w.sName }}</div>
  7197. </div>
  7198. </div>
  7199. </div>
  7200. <div class="noWorksS">
  7201. <div
  7202. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7203. :key="sIndex"
  7204. class="noWorksName"
  7205. :class="{ isWork: s.type == '2' }"
  7206. >
  7207. {{ s.student }}
  7208. </div>
  7209. </div>
  7210. </div>
  7211. <div
  7212. v-if="
  7213. tType &&
  7214. ((tType == 2 && sIsOpen == true) ||
  7215. tType == 1 ||
  7216. tType == 4) &&
  7217. tool.tool.indexOf(40) != -1
  7218. "
  7219. class="worksBox"
  7220. >
  7221. <div
  7222. class="zuoyeYulan"
  7223. v-if="
  7224. worksStudent.length && worksStudent[toolIndex].length > 0
  7225. "
  7226. >
  7227. <div class="worksTop">
  7228. <div>作业预览</div>
  7229. <div
  7230. class="corOpen"
  7231. @click="contract(toolIndex)"
  7232. v-if="
  7233. worksStudent[toolIndex].length > 6 &&
  7234. isCloseList[toolIndex].isClose == 0
  7235. "
  7236. >
  7237. 收缩
  7238. </div>
  7239. <div
  7240. class="corOpen"
  7241. @click="contract(toolIndex)"
  7242. v-if="isCloseList[toolIndex].isClose == 1"
  7243. >
  7244. 展开
  7245. </div>
  7246. </div>
  7247. </div>
  7248. <div
  7249. class="worksDetailBox"
  7250. v-if="
  7251. worksStudent.length && worksStudent[toolIndex].length > 0
  7252. "
  7253. >
  7254. <div
  7255. class="works"
  7256. style="
  7257. width: 200px;
  7258. height: 140px;
  7259. margin: 10px 10px 10px 0;
  7260. border-radius: 15px;
  7261. box-shadow: 0 0 6px 1px #dfdada;
  7262. "
  7263. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7264. ? worksStudent[toolIndex]
  7265. : worksStudent[toolIndex].slice(0, 6)"
  7266. :key="wIndex"
  7267. :class="w.type == 1 ? 'isTypeOne' : ''"
  7268. >
  7269. <div class="workImg">
  7270. <img
  7271. src="../../assets/icon/works/noImg.png"
  7272. @click="openPj(w.works, toolIndex)"
  7273. alt
  7274. />
  7275. <img
  7276. class="deleteImg"
  7277. src="../../assets/deleteworks.png"
  7278. v-if="w.userid == userid || tType == 1 || tType == 4"
  7279. @click.stop="deleteWorks(w.wid)"
  7280. alt
  7281. />
  7282. </div>
  7283. <div class="comment" style="min-width: 200px">
  7284. <div class="worksName">
  7285. <div>{{ w.sName }}</div>
  7286. </div>
  7287. <div class="commentList">
  7288. <div class="commentList">
  7289. <div
  7290. class="commentImg"
  7291. @click="
  7292. isLikes(w.wid, userid, 1, null, w.isLikes)
  7293. "
  7294. >
  7295. <img
  7296. :src="w.isLikes == true ? likes : noLikes"
  7297. alt=""
  7298. />
  7299. </div>
  7300. <div>{{ w.likesCount }}</div>
  7301. </div>
  7302. <div class="commentList" style="margin-right: 15px">
  7303. <div
  7304. class="commentImg"
  7305. @click="commentOther(w, toolIndex, wIndex)"
  7306. >
  7307. <img
  7308. src="../../assets/icon/comment/comment.png"
  7309. alt=""
  7310. />
  7311. </div>
  7312. <div>{{ w.commentCount }}</div>
  7313. </div>
  7314. </div>
  7315. </div>
  7316. </div>
  7317. </div>
  7318. <div class="noWorksS">
  7319. <div
  7320. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7321. :key="sIndex"
  7322. class="noWorksName"
  7323. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  7324. :class="{ isWork: s.type == '2' }"
  7325. >
  7326. {{ s.student }}
  7327. </div>
  7328. </div>
  7329. </div>
  7330. <div
  7331. v-if="
  7332. tType &&
  7333. ((tType == 2 && sIsOpen == true) ||
  7334. tType == 1 ||
  7335. tType == 4) &&
  7336. tool.tool.indexOf(41) != -1
  7337. "
  7338. class="worksBox"
  7339. >
  7340. <div class="noWorksS">
  7341. <div
  7342. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7343. :key="sIndex"
  7344. class="noWorksName"
  7345. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  7346. :class="{ isWork: s.type == '2' }"
  7347. >
  7348. {{ s.student }}
  7349. </div>
  7350. </div>
  7351. <div
  7352. class="zuoyeYulan"
  7353. v-if="
  7354. worksStudent.length && worksStudent[toolIndex].length > 0
  7355. "
  7356. >
  7357. <div class="worksTop">
  7358. <div>作业预览</div>
  7359. <div
  7360. class="corOpen"
  7361. @click="contract(toolIndex)"
  7362. v-if="
  7363. worksStudent[toolIndex].length > 6 &&
  7364. isCloseList[toolIndex].isClose == 0
  7365. "
  7366. >
  7367. 收缩
  7368. </div>
  7369. <div
  7370. class="corOpen"
  7371. @click="contract(toolIndex)"
  7372. v-if="isCloseList[toolIndex].isClose == 1"
  7373. >
  7374. 展开
  7375. </div>
  7376. </div>
  7377. </div>
  7378. <div
  7379. class="worksDetailBox"
  7380. v-if="
  7381. worksStudent.length && worksStudent[toolIndex].length > 0
  7382. "
  7383. >
  7384. <div
  7385. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7386. ? worksStudent[toolIndex]
  7387. : worksStudent[toolIndex].slice(0, 6)"
  7388. :key="wIndex"
  7389. class="isWorksName2"
  7390. @click="openXz(w, toolIndex)"
  7391. >
  7392. {{ w.sName }}
  7393. <img
  7394. class="deleteImg deleteImg2"
  7395. src="../../assets/deleteworks.png"
  7396. v-if="w.userid == userid || tType == 1 || tType == 4"
  7397. @click.stop="deleteWorks(w.wid)"
  7398. alt
  7399. />
  7400. </div>
  7401. </div>
  7402. </div>
  7403. <div
  7404. v-if="
  7405. tType &&
  7406. ((tType == 2 && sIsOpen == true) ||
  7407. tType == 1 ||
  7408. tType == 4) &&
  7409. tool.tool.indexOf(47) != -1
  7410. "
  7411. class="worksBox"
  7412. >
  7413. <div class="noWorksS">
  7414. <div
  7415. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7416. :key="sIndex"
  7417. class="noWorksName"
  7418. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  7419. :class="{ isWork: s.type == '2' }"
  7420. >
  7421. {{ s.student }}
  7422. </div>
  7423. </div>
  7424. <div
  7425. class="zuoyeYulan"
  7426. v-if="
  7427. worksStudent.length && worksStudent[toolIndex].length > 0
  7428. "
  7429. >
  7430. <div class="worksTop">
  7431. <div>作业预览</div>
  7432. <div
  7433. class="corOpen"
  7434. @click="contract(toolIndex)"
  7435. v-if="
  7436. worksStudent[toolIndex].length > 6 &&
  7437. isCloseList[toolIndex].isClose == 0
  7438. "
  7439. >
  7440. 收缩
  7441. </div>
  7442. <div
  7443. class="corOpen"
  7444. @click="contract(toolIndex)"
  7445. v-if="isCloseList[toolIndex].isClose == 1"
  7446. >
  7447. 展开
  7448. </div>
  7449. </div>
  7450. </div>
  7451. <div
  7452. class="worksDetailBox"
  7453. v-if="
  7454. worksStudent.length && worksStudent[toolIndex].length > 0
  7455. "
  7456. >
  7457. <!-- @click="openXz(w, toolIndex)" -->
  7458. <div
  7459. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7460. ? worksStudent[toolIndex]
  7461. : worksStudent[toolIndex].slice(0, 6)"
  7462. :key="wIndex"
  7463. class="isWorksName2"
  7464. @click="openSen(w, toolIndex)"
  7465. >
  7466. {{ w.sName }}
  7467. <img
  7468. class="deleteImg deleteImg2"
  7469. src="../../assets/deleteworks.png"
  7470. v-if="w.userid == userid || tType == 1 || tType == 4"
  7471. @click.stop="deleteWorks(w.wid)"
  7472. alt
  7473. />
  7474. </div>
  7475. </div>
  7476. </div>
  7477. <div
  7478. v-if="
  7479. tType &&
  7480. ((tType == 2 && sIsOpen == true) ||
  7481. tType == 1 ||
  7482. tType == 4) &&
  7483. tool.tool.indexOf(48) != -1
  7484. "
  7485. class="worksBox"
  7486. >
  7487. <div
  7488. class="zuoyeYulan"
  7489. v-if="
  7490. worksStudent.length && worksStudent[toolIndex].length > 0
  7491. "
  7492. >
  7493. <div class="worksTop">
  7494. <div>作业预览</div>
  7495. <div
  7496. class="corOpen"
  7497. @click="contract(toolIndex)"
  7498. v-if="
  7499. worksStudent[toolIndex].length > 6 &&
  7500. isCloseList[toolIndex].isClose == 0
  7501. "
  7502. >
  7503. 收缩
  7504. </div>
  7505. <div
  7506. class="corOpen"
  7507. @click="contract(toolIndex)"
  7508. v-if="isCloseList[toolIndex].isClose == 1"
  7509. >
  7510. 展开
  7511. </div>
  7512. </div>
  7513. </div>
  7514. <div
  7515. class="worksDetailBox"
  7516. v-if="
  7517. worksStudent.length && worksStudent[toolIndex].length > 0
  7518. "
  7519. >
  7520. <div
  7521. class="works"
  7522. style="
  7523. width: 200px;
  7524. height: 140px;
  7525. margin: 10px 10px 10px 0;
  7526. border-radius: 15px;
  7527. box-shadow: 0 0 6px 1px #dfdada;
  7528. "
  7529. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7530. ? worksStudent[toolIndex]
  7531. : worksStudent[toolIndex].slice(0, 6)"
  7532. :key="wIndex"
  7533. :class="w.type == 1 ? 'isTypeOne' : ''"
  7534. >
  7535. <div class="workImg">
  7536. <img :src="word" @click="openTable(w)" alt />
  7537. <!-- @click="openFile(w.works)" -->
  7538. <div
  7539. class="answerScore"
  7540. v-if="w.score"
  7541. @click.stop="openScore(w)"
  7542. :class="{
  7543. rightW:
  7544. w.userid == userid ||
  7545. tType == 1 ||
  7546. tType == 4 ||
  7547. w.ateacher == userid,
  7548. }"
  7549. >
  7550. {{ JSON.parse(w.score).wScore }}分
  7551. </div>
  7552. <div
  7553. class="answerScore"
  7554. @click.stop="openScore(w)"
  7555. v-else-if="courseDetail.userid == userid"
  7556. :class="{
  7557. rightW:
  7558. w.userid == userid ||
  7559. tType == 1 ||
  7560. tType == 4 ||
  7561. w.ateacher == userid,
  7562. }"
  7563. >
  7564. 评分
  7565. </div>
  7566. <img
  7567. class="deleteImg"
  7568. src="../../assets/deleteworks.png"
  7569. v-if="w.userid == userid || tType == 1 || tType == 4"
  7570. @click.stop="deleteWorks(w.wid)"
  7571. alt
  7572. />
  7573. </div>
  7574. <div class="comment" style="min-width: 200px">
  7575. <div class="worksName">
  7576. <div>{{ w.sName }}</div>
  7577. </div>
  7578. <div class="commentList">
  7579. <div class="commentList">
  7580. <div
  7581. class="commentImg"
  7582. @click="
  7583. isLikes(w.wid, userid, 1, null, w.isLikes)
  7584. "
  7585. >
  7586. <img
  7587. :src="w.isLikes == true ? likes : noLikes"
  7588. alt=""
  7589. />
  7590. </div>
  7591. <div>{{ w.likesCount }}</div>
  7592. </div>
  7593. <div class="commentList" style="margin-right: 15px">
  7594. <div
  7595. class="commentImg"
  7596. @click="commentOther(w, toolIndex, wIndex)"
  7597. >
  7598. <img
  7599. src="../../assets/icon/comment/comment.png"
  7600. alt=""
  7601. />
  7602. </div>
  7603. <div>{{ w.commentCount }}</div>
  7604. </div>
  7605. </div>
  7606. </div>
  7607. </div>
  7608. </div>
  7609. <div class="noWorksS">
  7610. <div
  7611. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7612. :key="sIndex"
  7613. class="noWorksName"
  7614. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  7615. :class="{ isWork: s.type == '2' }"
  7616. >
  7617. {{ s.student }}
  7618. </div>
  7619. </div>
  7620. </div>
  7621. <div
  7622. v-if="
  7623. tType &&
  7624. ((tType == 2 && sIsOpen == true) ||
  7625. tType == 1 ||
  7626. tType == 4) &&
  7627. tool.tool.indexOf(52) != -1
  7628. "
  7629. class="worksBox"
  7630. >
  7631. <div
  7632. class="zuoyeYulan"
  7633. v-if="
  7634. worksStudent.length && worksStudent[toolIndex].length > 0
  7635. "
  7636. >
  7637. <div class="worksTop">
  7638. <div>作业预览</div>
  7639. <div
  7640. class="corOpen"
  7641. @click="contract(toolIndex)"
  7642. v-if="
  7643. worksStudent[toolIndex].length > 6 &&
  7644. isCloseList[toolIndex].isClose == 0
  7645. "
  7646. >
  7647. 收缩
  7648. </div>
  7649. <div
  7650. class="corOpen"
  7651. @click="contract(toolIndex)"
  7652. v-if="isCloseList[toolIndex].isClose == 1"
  7653. >
  7654. 展开
  7655. </div>
  7656. </div>
  7657. </div>
  7658. <div
  7659. class="worksDetailBox"
  7660. v-if="
  7661. worksStudent.length && worksStudent[toolIndex].length > 0
  7662. "
  7663. >
  7664. <div
  7665. class="works"
  7666. style="
  7667. width: 200px;
  7668. height: 140px;
  7669. margin: 10px 10px 10px 0;
  7670. border-radius: 15px;
  7671. box-shadow: 0 0 6px 1px #dfdada;
  7672. "
  7673. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7674. ? worksStudent[toolIndex]
  7675. : worksStudent[toolIndex].slice(0, 6)"
  7676. :key="wIndex"
  7677. :class="w.type == 1 ? 'isTypeOne' : ''"
  7678. >
  7679. <div class="workImg">
  7680. <img :src="word" @click="openWord(w)" alt />
  7681. <!-- @click="openFile(w.works)" -->
  7682. <div
  7683. class="answerScore"
  7684. v-if="w.score"
  7685. @click.stop="openScore(w)"
  7686. :class="{
  7687. rightW:
  7688. w.userid == userid ||
  7689. tType == 1 ||
  7690. tType == 4 ||
  7691. w.ateacher == userid,
  7692. }"
  7693. >
  7694. {{ JSON.parse(w.score).wScore }}分
  7695. </div>
  7696. <div
  7697. class="answerScore"
  7698. @click.stop="openScore(w)"
  7699. v-else-if="courseDetail.userid == userid"
  7700. :class="{
  7701. rightW:
  7702. w.userid == userid ||
  7703. tType == 1 ||
  7704. tType == 4 ||
  7705. w.ateacher == userid,
  7706. }"
  7707. >
  7708. 评分
  7709. </div>
  7710. <img
  7711. class="deleteImg"
  7712. src="../../assets/deleteworks.png"
  7713. v-if="w.userid == userid || tType == 1 || tType == 4"
  7714. @click.stop="deleteWorks(w.wid)"
  7715. alt
  7716. />
  7717. </div>
  7718. <div class="comment" style="min-width: 200px">
  7719. <div class="worksName">
  7720. <div>{{ w.sName }}</div>
  7721. </div>
  7722. <div class="commentList">
  7723. <div class="commentList">
  7724. <div
  7725. class="commentImg"
  7726. @click="
  7727. isLikes(w.wid, userid, 1, null, w.isLikes)
  7728. "
  7729. >
  7730. <img
  7731. :src="w.isLikes == true ? likes : noLikes"
  7732. alt=""
  7733. />
  7734. </div>
  7735. <div>{{ w.likesCount }}</div>
  7736. </div>
  7737. <div class="commentList" style="margin-right: 15px">
  7738. <div
  7739. class="commentImg"
  7740. @click="commentOther(w, toolIndex, wIndex)"
  7741. >
  7742. <img
  7743. src="../../assets/icon/comment/comment.png"
  7744. alt=""
  7745. />
  7746. </div>
  7747. <div>{{ w.commentCount }}</div>
  7748. </div>
  7749. </div>
  7750. </div>
  7751. </div>
  7752. </div>
  7753. <div class="noWorksS">
  7754. <div
  7755. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7756. :key="sIndex"
  7757. class="noWorksName"
  7758. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7759. :class="{ isWork: s.type == '2' }"
  7760. >
  7761. {{ s.student }}
  7762. </div>
  7763. </div>
  7764. </div>
  7765. </div>
  7766. </div>
  7767. <div
  7768. class="vedioBox"
  7769. style="margin-top: 10px;"
  7770. v-if="
  7771. courseDetail.userid == userid ||
  7772. (courseDetail.course_teacher &&
  7773. courseDetail.course_teacher.indexOf(userid) != -1)
  7774. "
  7775. >
  7776. <div
  7777. class="queTop"
  7778. style="
  7779. padding: 15px 0 15px 37px;
  7780. justify-content: space-between;
  7781. "
  7782. >
  7783. <div class="queTopTitle">新增工具</div>
  7784. <div class="queTopRight">
  7785. <div
  7786. class="queTopClose"
  7787. v-if="isClose == 0"
  7788. @click="isClose = 1"
  7789. >
  7790. 展开
  7791. <div class="closeImg">
  7792. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7793. </div>
  7794. </div>
  7795. <div
  7796. class="queTopClose"
  7797. v-if="isClose == 1"
  7798. @click="isClose = 0"
  7799. >
  7800. 收缩
  7801. <div class="openImg">
  7802. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7803. </div>
  7804. </div>
  7805. <el-button
  7806. style="margin: 0 30px 0 auto"
  7807. type="primary"
  7808. size="small"
  7809. v-if="isClose == 1"
  7810. @click="addToolChoose"
  7811. >确定</el-button
  7812. >
  7813. </div>
  7814. </div>
  7815. <div
  7816. class="tool_work_box"
  7817. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7818. >
  7819. <div class="tool_box">
  7820. <div class="tool_type_box">
  7821. <div class="chooseWho">
  7822. <div
  7823. :class="toolType == 0 ? 'isChooseActive' : ''"
  7824. @click="(toolType = 0), $forceUpdate()"
  7825. >
  7826. 互动类
  7827. </div>
  7828. <div
  7829. :class="toolType == 1 ? 'isChooseActive' : ''"
  7830. @click="(toolType = 1), $forceUpdate()"
  7831. >
  7832. 思维类
  7833. </div>
  7834. <!-- <div
  7835. :class="toolType == 6 ? 'isChooseActive' : ''"
  7836. @click="(toolType = 6), $forceUpdate()"
  7837. >
  7838. 协作类
  7839. </div> -->
  7840. <div
  7841. :class="toolType == 2 ? 'isChooseActive' : ''"
  7842. @click="(toolType = 2), $forceUpdate()"
  7843. >
  7844. 测评类
  7845. </div>
  7846. <!-- <div
  7847. :class="toolType == 7 ? 'isChooseActive' : ''"
  7848. @click="(toolType = 7), $forceUpdate()"
  7849. >
  7850. 评价类
  7851. </div> -->
  7852. <div
  7853. :class="toolType == 3 ? 'isChooseActive' : ''"
  7854. @click="(toolType = 3), $forceUpdate()"
  7855. >
  7856. 编程类
  7857. </div>
  7858. <div
  7859. :class="toolType == 5 ? 'isChooseActive' : ''"
  7860. @click="(toolType = 5), $forceUpdate()"
  7861. >
  7862. 学科类
  7863. </div>
  7864. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  7865. " @click="(toolType = 5), $forceUpdate()">
  7866. 学科类
  7867. </div>
  7868. <div :class="toolType == 4 ? 'isChooseActive' : ''
  7869. " @click="(toolType = 4), $forceUpdate()">
  7870. 其他
  7871. </div> -->
  7872. </div>
  7873. </div>
  7874. <div>
  7875. <div class="toolSort" v-if="toolType == 0">
  7876. <div class="tool">
  7877. <div class="whiteBIcon" @click="addTools2(10)">
  7878. <img
  7879. src="../../assets/icon/thirdToolList/time.png"
  7880. alt
  7881. />
  7882. <div style="margin: 5px 0">倒计时</div>
  7883. </div>
  7884. <div class="check" @click="addTools2(10)">
  7885. <img
  7886. src="../../assets/icon/checkNo.png"
  7887. alt
  7888. v-if="checktoolArray.indexOf(10) == -1"
  7889. />
  7890. <div class="checkDiv" v-else>
  7891. <img
  7892. src="../../assets/icon/checkedIs.png"
  7893. alt
  7894. /><span>已选择</span>
  7895. </div>
  7896. </div>
  7897. </div>
  7898. <div class="tool">
  7899. <div class="whiteBIcon" @click="addTools2(65)">
  7900. <img
  7901. src="../../assets/icon/firstToolList/pickPeople.png"
  7902. alt
  7903. />
  7904. <div style="margin: 5px 0">挑人</div>
  7905. </div>
  7906. <div class="check" @click="addTools2(65)">
  7907. <img
  7908. src="../../assets/icon/checkNo.png"
  7909. alt
  7910. v-if="checktoolArray.indexOf(65) == -1"
  7911. />
  7912. <div class="checkDiv" v-else>
  7913. <img
  7914. src="../../assets/icon/checkedIs.png"
  7915. alt
  7916. /><span>已选择</span>
  7917. </div>
  7918. </div>
  7919. </div>
  7920. </div>
  7921. <div class="toolSort" v-if="toolType == 1">
  7922. <div class="tool">
  7923. <div class="whiteBIcon" @click="addTools2(7)">
  7924. <img
  7925. src="../../assets/icon/secondToolList/mindNetwork.png"
  7926. alt
  7927. />
  7928. <div style="margin: 5px 0">思维网格</div>
  7929. </div>
  7930. <div class="check" @click="addTools2(7)">
  7931. <img
  7932. src="../../assets/icon/checkNo.png"
  7933. alt
  7934. v-if="checktoolArray.indexOf(7) == -1"
  7935. />
  7936. <div class="checkDiv" v-else>
  7937. <img
  7938. src="../../assets/icon/checkedIs.png"
  7939. alt
  7940. /><span>已选择</span>
  7941. </div>
  7942. </div>
  7943. </div>
  7944. <div class="tool">
  7945. <div class="whiteBIcon" @click="addTools2(1)">
  7946. <img
  7947. src="../../assets/icon/secondToolList/whiteBoard.png"
  7948. alt
  7949. />
  7950. <div style="margin: 5px 0">电子白板</div>
  7951. </div>
  7952. <div class="check" @click="addTools2(1)">
  7953. <img
  7954. src="../../assets/icon/checkNo.png"
  7955. alt
  7956. v-if="checktoolArray.indexOf(1) == -1"
  7957. />
  7958. <div class="checkDiv" v-else>
  7959. <img
  7960. src="../../assets/icon/checkedIs.png"
  7961. alt
  7962. /><span>已选择</span>
  7963. </div>
  7964. </div>
  7965. </div>
  7966. <div class="tool">
  7967. <div class="whiteBIcon" @click="addTools2(52)">
  7968. <img
  7969. src="../../assets/icon/fourthToolList/text.png"
  7970. alt
  7971. />
  7972. <div style="margin: 5px 0">文档</div>
  7973. </div>
  7974. <div class="check" @click="addTools2(52)">
  7975. <img
  7976. src="../../assets/icon/checkNo.png"
  7977. alt
  7978. v-if="checktoolArray.indexOf(52) == -1"
  7979. />
  7980. <div class="checkDiv" v-else>
  7981. <img
  7982. src="../../assets/icon/checkedIs.png"
  7983. alt
  7984. /><span>已选择</span>
  7985. </div>
  7986. </div>
  7987. </div>
  7988. <div class="tool">
  7989. <div class="whiteBIcon" @click="addTools2(3)">
  7990. <img
  7991. src="../../assets/icon/secondToolList/mindMapping.png"
  7992. alt
  7993. />
  7994. <div style="margin: 5px 0">思维导图</div>
  7995. </div>
  7996. <div class="check" @click="addTools2(3)">
  7997. <img
  7998. src="../../assets/icon/checkNo.png"
  7999. alt
  8000. v-if="checktoolArray.indexOf(3) == -1"
  8001. />
  8002. <div class="checkDiv" v-else>
  8003. <img
  8004. src="../../assets/icon/checkedIs.png"
  8005. alt
  8006. /><span>已选择</span>
  8007. </div>
  8008. </div>
  8009. </div>
  8010. <div class="tool">
  8011. <div class="whiteBIcon" @click="addTools2(48)">
  8012. <img
  8013. src="../../assets/icon/fourthToolList/table.png"
  8014. alt
  8015. />
  8016. <div style="margin: 5px 0">表格</div>
  8017. </div>
  8018. <div class="check" @click="addTools2(48)">
  8019. <img
  8020. src="../../assets/icon/checkNo.png"
  8021. alt
  8022. v-if="checktoolArray.indexOf(48) == -1"
  8023. />
  8024. <div class="checkDiv" v-else>
  8025. <img
  8026. src="../../assets/icon/checkedIs.png"
  8027. alt
  8028. /><span>已选择</span>
  8029. </div>
  8030. </div>
  8031. </div>
  8032. </div>
  8033. <div class="toolSort" v-if="toolType == 6">
  8034. <div v-show="tooC == 49">
  8035. <img
  8036. @click="addTools(tooC, toolIndex, taskCount)"
  8037. src="../../assets/icon/fourthToolList/group.png"
  8038. alt
  8039. />
  8040. <div style="margin: 5px 0">学生分组</div>
  8041. </div>
  8042. </div>
  8043. <div class="toolSort" v-if="toolType == 2">
  8044. <div class="tool">
  8045. <div class="whiteBIcon" @click="addTools2(16)">
  8046. <img
  8047. src="../../assets/icon/thirdToolList/work.png"
  8048. alt
  8049. />
  8050. <div style="margin: 5px 0">作业提交</div>
  8051. </div>
  8052. <div class="check" @click="addTools2(16)">
  8053. <img
  8054. src="../../assets/icon/checkNo.png"
  8055. alt
  8056. v-if="checktoolArray.indexOf(16) == -1"
  8057. />
  8058. <div class="checkDiv" v-else>
  8059. <img
  8060. src="../../assets/icon/checkedIs.png"
  8061. alt
  8062. /><span>已选择</span>
  8063. </div>
  8064. </div>
  8065. </div>
  8066. <div class="tool">
  8067. <div class="whiteBIcon" @click="addTools2(50)">
  8068. <img
  8069. src="../../assets/icon/thirdToolList/plwork.png"
  8070. alt
  8071. />
  8072. <div style="margin: 5px 0">批量上传</div>
  8073. </div>
  8074. <div class="check" @click="addTools2(50)">
  8075. <img
  8076. src="../../assets/icon/checkNo.png"
  8077. alt
  8078. v-if="checktoolArray.indexOf(50) == -1"
  8079. />
  8080. <div class="checkDiv" v-else>
  8081. <img
  8082. src="../../assets/icon/checkedIs.png"
  8083. alt
  8084. /><span>已选择</span>
  8085. </div>
  8086. </div>
  8087. </div>
  8088. </div>
  8089. <div class="toolSort" v-if="toolType == 3">
  8090. <div class="tool">
  8091. <div class="whiteBIcon" @click="addTools2(18)">
  8092. <img
  8093. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8094. alt
  8095. />
  8096. <div style="margin: 5px 0">训练平台</div>
  8097. </div>
  8098. <div class="check" @click="addTools2(18)">
  8099. <img
  8100. src="../../assets/icon/checkNo.png"
  8101. alt
  8102. v-if="checktoolArray.indexOf(18) == -1"
  8103. />
  8104. <div class="checkDiv" v-else>
  8105. <img
  8106. src="../../assets/icon/checkedIs.png"
  8107. alt
  8108. /><span>已选择</span>
  8109. </div>
  8110. </div>
  8111. </div>
  8112. <div class="tool">
  8113. <div class="whiteBIcon" @click="addTools2(21)">
  8114. <img
  8115. src="../../assets/icon/fourthToolList/program.png"
  8116. alt
  8117. />
  8118. <div style="margin: 5px 0">编程平台</div>
  8119. </div>
  8120. <div class="check" @click="addTools2(21)">
  8121. <img
  8122. src="../../assets/icon/checkNo.png"
  8123. alt
  8124. v-if="checktoolArray.indexOf(21) == -1"
  8125. />
  8126. <div class="checkDiv" v-else>
  8127. <img
  8128. src="../../assets/icon/checkedIs.png"
  8129. alt
  8130. /><span>已选择</span>
  8131. </div>
  8132. </div>
  8133. </div>
  8134. <!-- <div class="tool">
  8135. <div class="whiteBIcon" @click="addTools2(22)">
  8136. <img
  8137. src="../../assets/icon/fourthToolList/AIprogram2.png"
  8138. alt
  8139. />
  8140. <div style="margin: 5px 0">AI体验</div>
  8141. </div>
  8142. <div class="check" @click="addTools2(22)">
  8143. <img
  8144. src="../../assets/icon/checkNo.png"
  8145. alt
  8146. v-if="checktoolArray.indexOf(22) == -1"
  8147. />
  8148. <div class="checkDiv" v-else>
  8149. <img
  8150. src="../../assets/icon/checkedIs.png"
  8151. alt
  8152. /><span>已选择</span>
  8153. </div>
  8154. </div>
  8155. </div> -->
  8156. <div class="tool">
  8157. <div class="whiteBIcon" @click="addTools2(23)">
  8158. <img
  8159. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8160. alt
  8161. />
  8162. <div style="margin: 5px 0">Python</div>
  8163. </div>
  8164. <div class="check" @click="addTools2(23)">
  8165. <img
  8166. src="../../assets/icon/checkNo.png"
  8167. alt
  8168. v-if="checktoolArray.indexOf(23) == -1"
  8169. />
  8170. <div class="checkDiv" v-else>
  8171. <img
  8172. src="../../assets/icon/checkedIs.png"
  8173. alt
  8174. /><span>已选择</span>
  8175. </div>
  8176. </div>
  8177. </div>
  8178. <div class="tool">
  8179. <div class="whiteBIcon" @click="addTools2(24)">
  8180. <img
  8181. src="../../assets/icon/fourthToolList/AIprogram.png"
  8182. alt
  8183. />
  8184. <div style="margin: 5px 0">AI平台</div>
  8185. </div>
  8186. <div class="check" @click="addTools2(24)">
  8187. <img
  8188. src="../../assets/icon/checkNo.png"
  8189. alt
  8190. v-if="checktoolArray.indexOf(24) == -1"
  8191. />
  8192. <div class="checkDiv" v-else>
  8193. <img
  8194. src="../../assets/icon/checkedIs.png"
  8195. alt
  8196. /><span>已选择</span>
  8197. </div>
  8198. </div>
  8199. </div>
  8200. <div class="tool">
  8201. <div class="whiteBIcon" @click="addTools2(32)">
  8202. <img
  8203. src="../../assets/icon/thirdToolList/code.png"
  8204. alt
  8205. />
  8206. <div style="margin: 5px 0">源码编辑</div>
  8207. </div>
  8208. <div class="check" @click="addTools2(32)">
  8209. <img
  8210. src="../../assets/icon/checkNo.png"
  8211. alt
  8212. v-if="checktoolArray.indexOf(32) == -1"
  8213. />
  8214. <div class="checkDiv" v-else>
  8215. <img
  8216. src="../../assets/icon/checkedIs.png"
  8217. alt
  8218. /><span>已选择</span>
  8219. </div>
  8220. </div>
  8221. </div>
  8222. <div class="tool">
  8223. <div class="whiteBIcon" @click="addTools2(57)">
  8224. <img
  8225. src="../../assets/icon/fourthToolList/cocopi.png"
  8226. alt
  8227. />
  8228. <div style="margin: 5px 0">CocoPi</div>
  8229. </div>
  8230. <div class="check" @click="addTools2(57)">
  8231. <img
  8232. src="../../assets/icon/checkNo.png"
  8233. alt
  8234. v-if="checktoolArray.indexOf(57) == -1"
  8235. />
  8236. <div class="checkDiv" v-else>
  8237. <img
  8238. src="../../assets/icon/checkedIs.png"
  8239. alt
  8240. /><span>已选择</span>
  8241. </div>
  8242. </div>
  8243. </div>
  8244. <div class="tool">
  8245. <div class="whiteBIcon" @click="addTools2(63)">
  8246. <img
  8247. src="../../assets/icon/fourthToolList/Wood.png"
  8248. alt
  8249. />
  8250. <div style="margin: 5px 0">海龟编程</div>
  8251. </div>
  8252. <div class="check" @click="addTools2(63)">
  8253. <img
  8254. src="../../assets/icon/checkNo.png"
  8255. alt
  8256. v-if="checktoolArray.indexOf(63) == -1"
  8257. />
  8258. <div class="checkDiv" v-else>
  8259. <img
  8260. src="../../assets/icon/checkedIs.png"
  8261. alt
  8262. /><span>已选择</span>
  8263. </div>
  8264. </div>
  8265. </div>
  8266. </div>
  8267. <div class="toolSort" v-if="toolType == 7">
  8268. <div class="tool">
  8269. <div class="whiteBIcon" @click="addTools2(40)">
  8270. <img
  8271. src="../../assets/icon/secondToolList/eval.png"
  8272. alt
  8273. />
  8274. <div style="margin: 5px 0">个人评价</div>
  8275. </div>
  8276. <div class="check" @click="addTools2(40)">
  8277. <img
  8278. src="../../assets/icon/checkNo.png"
  8279. alt
  8280. v-if="checktoolArray.indexOf(40) == -1"
  8281. />
  8282. <div class="checkDiv" v-else>
  8283. <img
  8284. src="../../assets/icon/checkedIs.png"
  8285. alt
  8286. /><span>已选择</span>
  8287. </div>
  8288. </div>
  8289. </div>
  8290. </div>
  8291. <div class="toolSort" v-if="toolType == 5">
  8292. <div class="tool">
  8293. <div class="whiteBIcon" @click="addTools2(28)">
  8294. <img
  8295. src="../../assets/icon/secondToolList/translation.png"
  8296. alt
  8297. />
  8298. <div style="margin: 5px 0">翻译</div>
  8299. </div>
  8300. <div class="check" @click="addTools2(28)">
  8301. <img
  8302. src="../../assets/icon/checkNo.png"
  8303. alt
  8304. v-if="checktoolArray.indexOf(28) == -1"
  8305. />
  8306. <div class="checkDiv" v-else>
  8307. <img
  8308. src="../../assets/icon/checkedIs.png"
  8309. alt
  8310. /><span>已选择</span>
  8311. </div>
  8312. </div>
  8313. </div>
  8314. <div class="tool">
  8315. <div class="whiteBIcon" @click="addTools2(31)">
  8316. <img
  8317. src="../../assets/icon/secondToolList/networkPanel.png"
  8318. alt
  8319. />
  8320. <div style="margin: 5px 0">数字画板</div>
  8321. </div>
  8322. <div class="check" @click="addTools2(31)">
  8323. <img
  8324. src="../../assets/icon/checkNo.png"
  8325. alt
  8326. v-if="checktoolArray.indexOf(31) == -1"
  8327. />
  8328. <div class="checkDiv" v-else>
  8329. <img
  8330. src="../../assets/icon/checkedIs.png"
  8331. alt
  8332. /><span>已选择</span>
  8333. </div>
  8334. </div>
  8335. </div>
  8336. <div class="tool">
  8337. <div class="whiteBIcon" @click="addTools2(39)">
  8338. <img
  8339. src="../../assets/icon/secondToolList/GeoGebra.png"
  8340. alt
  8341. />
  8342. <div style="margin: 5px 0">GeoGebra</div>
  8343. </div>
  8344. <div class="check" @click="addTools2(39)">
  8345. <img
  8346. src="../../assets/icon/checkNo.png"
  8347. alt
  8348. v-if="checktoolArray.indexOf(39) == -1"
  8349. />
  8350. <div class="checkDiv" v-else>
  8351. <img
  8352. src="../../assets/icon/checkedIs.png"
  8353. alt
  8354. /><span>已选择</span>
  8355. </div>
  8356. </div>
  8357. </div>
  8358. <div class="tool">
  8359. <div class="whiteBIcon" @click="addTools2(66)">
  8360. <img
  8361. src="../../assets/icon/secondToolList/formulaEdi.png"
  8362. alt
  8363. />
  8364. <div style="margin: 5px 0">公式编辑</div>
  8365. </div>
  8366. <div class="check" @click="addTools2(66)">
  8367. <img
  8368. src="../../assets/icon/checkNo.png"
  8369. alt
  8370. v-if="checktoolArray.indexOf(66) == -1"
  8371. />
  8372. <div class="checkDiv" v-else>
  8373. <img
  8374. src="../../assets/icon/checkedIs.png"
  8375. alt
  8376. /><span>已选择</span>
  8377. </div>
  8378. </div>
  8379. </div>
  8380. <div class="tool">
  8381. <div class="whiteBIcon" @click="addTools2(67)">
  8382. <img
  8383. src="../../assets/icon/secondToolList/molStr.png"
  8384. alt
  8385. />
  8386. <div style="margin: 5px 0">分子结构</div>
  8387. </div>
  8388. <div class="check" @click="addTools2(67)">
  8389. <img
  8390. src="../../assets/icon/checkNo.png"
  8391. alt
  8392. v-if="checktoolArray.indexOf(67) == -1"
  8393. />
  8394. <div class="checkDiv" v-else>
  8395. <img
  8396. src="../../assets/icon/checkedIs.png"
  8397. alt
  8398. /><span>已选择</span>
  8399. </div>
  8400. </div>
  8401. </div>
  8402. <div class="tool">
  8403. <div class="whiteBIcon" @click="addTools2(68)">
  8404. <img
  8405. src="../../assets/icon/secondToolList/timeAxis.png"
  8406. alt
  8407. />
  8408. <div style="margin: 5px 0">时间轴</div>
  8409. </div>
  8410. <div class="check" @click="addTools2(68)">
  8411. <img
  8412. src="../../assets/icon/checkNo.png"
  8413. alt
  8414. v-if="checktoolArray.indexOf(68) == -1"
  8415. />
  8416. <div class="checkDiv" v-else>
  8417. <img
  8418. src="../../assets/icon/checkedIs.png"
  8419. alt
  8420. /><span>已选择</span>
  8421. </div>
  8422. </div>
  8423. </div>
  8424. </div>
  8425. <div class="toolSort" v-if="toolType == 4">
  8426. <div class="tool">
  8427. <div class="whiteBIcon" @click="addTools2(26)">
  8428. <img
  8429. src="../../assets/icon/thirdToolList/courseDesign.png"
  8430. alt
  8431. />
  8432. <div style="margin: 5px 0">课程设计</div>
  8433. </div>
  8434. <div class="check" @click="addTools2(26)">
  8435. <img
  8436. src="../../assets/icon/checkNo.png"
  8437. alt
  8438. v-if="checktoolArray.indexOf(26) == -1"
  8439. />
  8440. <div class="checkDiv" v-else>
  8441. <img
  8442. src="../../assets/icon/checkedIs.png"
  8443. alt
  8444. /><span>已选择</span>
  8445. </div>
  8446. </div>
  8447. </div>
  8448. <div class="tool">
  8449. <div class="whiteBIcon" @click="addTools2(25)">
  8450. <img
  8451. src="../../assets/icon/thirdToolList/evalua.png"
  8452. alt
  8453. />
  8454. <div style="margin: 5px 0">目标管理</div>
  8455. </div>
  8456. <div class="check" @click="addTools2(25)">
  8457. <img
  8458. src="../../assets/icon/checkNo.png"
  8459. alt
  8460. v-if="checktoolArray.indexOf(25) == -1"
  8461. />
  8462. <div class="checkDiv" v-else>
  8463. <img
  8464. src="../../assets/icon/checkedIs.png"
  8465. alt
  8466. /><span>已选择</span>
  8467. </div>
  8468. </div>
  8469. </div>
  8470. </div>
  8471. </div>
  8472. </div>
  8473. </div>
  8474. </div>
  8475. <div class="vedioBox" style="margin-top: 10px;" v-if="false">
  8476. <div
  8477. class="queTop"
  8478. style="
  8479. font-size: 20px;
  8480. padding: 15px 0 15px 30px;
  8481. font-weight: bold;
  8482. "
  8483. >
  8484. 评一评
  8485. </div>
  8486. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8487. <div class="elist_input">
  8488. <div
  8489. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8490. .chapterInfo[0].taskJson[taskCount].eList"
  8491. :key="eIndex"
  8492. class="elist_input_box"
  8493. >
  8494. <div style="width: 95%">
  8495. <div
  8496. style="
  8497. display: flex;
  8498. flex-direction: row;
  8499. flex-wrap: nowrap;
  8500. align-items: center;
  8501. "
  8502. >
  8503. <div style="max-width: calc(100% - 285px)">
  8504. <span>{{ eItem.value }}</span>
  8505. </div>
  8506. <div
  8507. style="
  8508. padding-left: 25px;
  8509. display: flex;
  8510. flex-direction: row;
  8511. align-items: center;
  8512. "
  8513. >
  8514. <el-rate
  8515. v-model="eItem.score"
  8516. :colors="colors"
  8517. disabled
  8518. ></el-rate>
  8519. </div>
  8520. </div>
  8521. <div class="elist_inptu_text" style="padding-left: 10px">
  8522. <span v-if="eItem.detail != ''">{{
  8523. eItem.detail
  8524. }}</span>
  8525. <span v-else style="color: #b2b1b3; font-size: 14px"
  8526. >暂无描述...</span
  8527. >
  8528. </div>
  8529. </div>
  8530. </div>
  8531. </div>
  8532. <div
  8533. v-if="evalua"
  8534. style="
  8535. border: 1px solid #e5e5e5;
  8536. max-width: 650px;
  8537. width: 100%;
  8538. margin-top: 20px;
  8539. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8540. "
  8541. >
  8542. <div class="e_add_top">
  8543. <div class="e_add_title">
  8544. <span>目标管理名称</span>
  8545. <span>{{ eTitle }}</span>
  8546. <img
  8547. src="../../assets/line.png"
  8548. class="cru_line"
  8549. style="
  8550. width: 125px;
  8551. height: 20px;
  8552. bottom: -10px;
  8553. left: 120px;
  8554. "
  8555. />
  8556. <!-- <el-input
  8557. v-model="eTitle"
  8558. placeholder="请输入名称"
  8559. @change="setMindData"
  8560. ></el-input>-->
  8561. </div>
  8562. </div>
  8563. <div class="e_add_content">
  8564. <div class="e_add_list_pbox">
  8565. <div class="e_add_list_pbox_title">
  8566. <span class="type_title">切换模式</span>
  8567. <div class="type_content">
  8568. <span
  8569. :class="{ active: typeMode == 1 }"
  8570. @click="typeMode = 1"
  8571. >目标树</span
  8572. >
  8573. <span
  8574. :class="{ active: typeMode == 2 }"
  8575. @click="typeMode = 2"
  8576. >目标罗盘</span
  8577. >
  8578. <span
  8579. :class="{ active: typeMode == 3 }"
  8580. @click="typeMode = 3"
  8581. >目标看板</span
  8582. >
  8583. </div>
  8584. </div>
  8585. <div class="e_add_list_pbox_content">
  8586. <Mind
  8587. :showBar="false"
  8588. :mindData="data"
  8589. style="width: 100%"
  8590. v-show="typeMode == 1"
  8591. ></Mind>
  8592. <Sunburst
  8593. :Josn="eJson"
  8594. :num="eJSONNum"
  8595. style="width: 100%"
  8596. v-if="typeMode == 2"
  8597. ></Sunburst>
  8598. <SeeBoard
  8599. :Josn="eJson"
  8600. :num="eJSONNum"
  8601. :ename="eTitle"
  8602. style="width: 100%"
  8603. v-if="typeMode == 3"
  8604. >
  8605. </SeeBoard>
  8606. </div>
  8607. </div>
  8608. </div>
  8609. </div>
  8610. </div>
  8611. </div>
  8612. </div>
  8613. </div>
  8614. <el-dialog
  8615. title="作业提交"
  8616. :visible.sync="dialogVisible"
  8617. :append-to-body="true"
  8618. width="500px"
  8619. :before-close="handleClose"
  8620. class="dialog_change"
  8621. >
  8622. <div class="marginT">
  8623. <div>上传文件</div>
  8624. <div
  8625. class="chapter_add"
  8626. @click="addImg($event)"
  8627. v-if="studyJuri[0].cover.length == 0"
  8628. >
  8629. <div class="up_photo">
  8630. <img src="../../assets/icon/uploadImg.png" alt />
  8631. </div>
  8632. <!-- <input
  8633. type="file"
  8634. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8635. style="display: none"
  8636. @change="beforeUpload1($event, 1)"
  8637. /> -->
  8638. <input
  8639. type="file"
  8640. accept="*"
  8641. style="display: none"
  8642. @change="beforeUpload1($event, 1)"
  8643. />
  8644. <!-- <input
  8645. type="file"
  8646. accept="image/*"
  8647. capture="camera"
  8648. style="display: none"
  8649. @change="beforeUpload1($event, 1)"
  8650. /> -->
  8651. </div>
  8652. <div
  8653. class="chapter_add"
  8654. style="
  8655. display: flex;
  8656. width: 100%;
  8657. flex-direction: row;
  8658. flex-wrap: wrap;
  8659. justify-content: flex-start;
  8660. padding: 15px 0;
  8661. "
  8662. v-if="studyJuri[0].cover.length > 0"
  8663. >
  8664. <div class="upCover">
  8665. <img
  8666. :src="studyJuri[0].cover[0].url"
  8667. alt
  8668. v-if="fileType == 0"
  8669. />
  8670. <img :src="word" alt v-else-if="fileType == 1" />
  8671. <img :src="video" alt v-else-if="fileType == 2" />
  8672. <img :src="word2" alt v-else-if="fileType == 3" />
  8673. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8674. <div class="deleteWord" @click="clean(1)">
  8675. <img src="../../assets/icon/deleteWorks.png" alt />
  8676. </div>
  8677. </div>
  8678. </div>
  8679. </div>
  8680. <div
  8681. class="upload_send"
  8682. @click="addCourseWorks(taskCount)"
  8683. v-if="!proVisible"
  8684. >
  8685. 提交
  8686. </div>
  8687. </el-dialog>
  8688. </div>
  8689. </div>
  8690. <div
  8691. class="pButton"
  8692. @click="(pzDialog = true), selectPz()"
  8693. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8694. >
  8695. <!-- 批 -->
  8696. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  8697. </div>
  8698. <div v-if="pzDialog == true" class="newDialogCss">
  8699. <div class="pzTop2">
  8700. <!-- <div>批注</div>
  8701. <div @click="pzDialog = false">
  8702. <img src="../../assets/close1.png" alt="" />
  8703. </div> -->
  8704. <div class="checkbox">
  8705. <div class="check" style="font-size: 25px">评课笔记</div>
  8706. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8707. </div>
  8708. </div>
  8709. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8710. <div class="pzListBox" v-if="pzList && pzList.length">
  8711. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8712. <div class="pzNavTop">
  8713. <div>批</div>
  8714. <div>
  8715. {{
  8716. pz.username && pz.username.length > 5
  8717. ? pz.username.substring(0, 5) + "..."
  8718. : pz.username
  8719. }}的批注
  8720. </div>
  8721. <div
  8722. class="pzDelete"
  8723. v-if="pz.userid == userid"
  8724. @click="deletePz(pz.id)"
  8725. >
  8726. 删除
  8727. </div>
  8728. </div>
  8729. <div
  8730. @click="checkImg(getImgList(pz.content))"
  8731. class="pzContent cont"
  8732. v-html="pz.content"
  8733. v-if="pz.type == '1'"
  8734. ></div>
  8735. <div class="pzContent" v-if="pz.type == '2'">
  8736. <audio :src="pz.content" controls="controls" ref="audio">
  8737. Your browser does not support the audio element.
  8738. </audio>
  8739. </div>
  8740. <div class="pzContent" v-if="pz.type == '3'">
  8741. <img
  8742. :src="pz.content"
  8743. style="width: 90%; margin: 0 auto; display: block"
  8744. @click="previewImg(pz.content)"
  8745. />
  8746. </div>
  8747. <div class="time">
  8748. {{ pz.time }}
  8749. </div>
  8750. </div>
  8751. </div>
  8752. <div class="noPz" v-else>
  8753. <img src="../../assets/icon/noPz.png" alt="" />
  8754. </div>
  8755. <div class="addPzButton">
  8756. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8757. 添加批注
  8758. </div>
  8759. <!-- <div class="img1">
  8760. <div @click="(addPzDialog = true), (pzType = 2)">
  8761. <img src="../../assets/audio.png" /><span>音频</span>
  8762. </div>
  8763. </div> -->
  8764. </div>
  8765. </div>
  8766. </div>
  8767. <div v-if="addPzDialog == true" class="addDialogCss">
  8768. <div class="pzTop">
  8769. <div class="teacherPz">
  8770. <div class="teacherPzImg">
  8771. <img src="../../assets/icon/teacherPz.png" alt="" />
  8772. </div>
  8773. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8774. </div>
  8775. <div @click="addPzDialog = false">
  8776. <img src="../../assets/close1.png" alt="" />
  8777. </div>
  8778. </div>
  8779. <div class="addPzBox">
  8780. <div class="addPzCheck">
  8781. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8782. >文本</span
  8783. >
  8784. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8785. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8786. >音频</span
  8787. >
  8788. </div>
  8789. <div style="height: calc(100% - 95px)">
  8790. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8791. v-if="pzType == 1"></textarea> -->
  8792. <editor-bar
  8793. class="binfo_input pzConText"
  8794. style="width: 100% !important"
  8795. placeholder="请输入任务描述"
  8796. v-model="pzConText"
  8797. @change="change"
  8798. v-if="pzType == 1"
  8799. ></editor-bar>
  8800. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8801. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8802. <div @click="addImg($event)">
  8803. <el-button type="primary">上传图片</el-button>
  8804. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8805. @change="beforeUpload1($event, 4)" />
  8806. </div>
  8807. </div> -->
  8808. </div>
  8809. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8810. 确定
  8811. </div>
  8812. </div>
  8813. </div>
  8814. <div v-if="proVisible" class="mask">
  8815. <div class="progressBox">
  8816. <!-- <div id="closePro" class="closeCss">
  8817. <img src="../../assets/icon/close.png" alt />
  8818. </div> -->
  8819. <div class="lbox">
  8820. <img src="../../assets/loading.gif" />上传中,请稍后
  8821. </div>
  8822. <div style="margin-bottom: 10px">
  8823. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8824. </div>
  8825. <el-progress
  8826. :text-inside="true"
  8827. :stroke-width="20"
  8828. :percentage="progress"
  8829. style="width: 80%"
  8830. ></el-progress>
  8831. </div>
  8832. </div>
  8833. <div v-if="proVisible2" class="mask">
  8834. <div class="progressBox">
  8835. <div class="lbox">
  8836. <img src="../../assets/loading.gif" />上传中,请稍后
  8837. </div>
  8838. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8839. </div>
  8840. </div>
  8841. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8842. <img width="100%" :src="dialogImageUrl" alt />
  8843. </el-dialog>
  8844. <el-dialog
  8845. :title="noteName != '' ? noteName : '查看问卷'"
  8846. :visible.sync="dialogVisible5"
  8847. :append-to-body="true"
  8848. width="1000px"
  8849. :before-close="handleClose"
  8850. class="dialog_diy dialog_diy3"
  8851. >
  8852. <div>
  8853. <div
  8854. class="a_add_title"
  8855. style="
  8856. display: flex;
  8857. flex-direction: row;
  8858. align-items: center;
  8859. justify-content: center;
  8860. "
  8861. >
  8862. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8863. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8864. </div>
  8865. <div class="a_addBox">
  8866. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">题目内容</div>
  8867. <div
  8868. class="a_add_box"
  8869. v-for="(item1, index1) in askJson.askCount"
  8870. :key="index1"
  8871. >
  8872. <div class="a_add_head">
  8873. <div style="display: flex">
  8874. <span class="askIndex"> {{ index1 + 1 }}</span>
  8875. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8876. </div>
  8877. <img
  8878. v-if="askJson.askJson[index1].img"
  8879. :src="askJson.askJson[index1].img"
  8880. style="height: 300px; margin-top: 10px; max-width: 100%"
  8881. />
  8882. </div>
  8883. <div class="a_add_body">
  8884. <div class="a_add_input">
  8885. <el-radio-group
  8886. v-model="radio[index1]"
  8887. v-if="
  8888. askJson.askJson[index1].type == '1' ||
  8889. !askJson.askJson[index1].type
  8890. "
  8891. >
  8892. <el-radio
  8893. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8894. .checkList"
  8895. :key="checkIndex"
  8896. :label="checkIndex"
  8897. :disabled="isAnswer"
  8898. class="redioStyle"
  8899. ><span v-html="item2"></span
  8900. ></el-radio>
  8901. </el-radio-group>
  8902. <el-checkbox-group
  8903. v-model="radio[index1]"
  8904. v-if="askJson.askJson[index1].type == '2'"
  8905. >
  8906. <el-checkbox
  8907. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8908. .checkList"
  8909. :key="checkIndex1"
  8910. :label="checkIndex1"
  8911. :disabled="isAnswer"
  8912. class="redioStyle"
  8913. ><span v-html="item2"></span>
  8914. </el-checkbox>
  8915. </el-checkbox-group>
  8916. </div>
  8917. </div>
  8918. </div>
  8919. </div>
  8920. </div>
  8921. <span slot="footer" class="dialog-footer">
  8922. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8923. >取 消</el-button
  8924. >
  8925. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8926. >确 定</el-button
  8927. >
  8928. </span>
  8929. </el-dialog>
  8930. <el-dialog
  8931. :title="noteName != '' ? noteName : '查看问卷'"
  8932. :visible.sync="dialogVisible5Teacher"
  8933. :append-to-body="true"
  8934. width="1000px"
  8935. :before-close="handleClose"
  8936. class="dialog_diy dialog_diy3"
  8937. >
  8938. <div>
  8939. <div class="w_name">
  8940. 学生姓名:<span>{{ sStudent.student }}</span>
  8941. </div>
  8942. <div
  8943. class="a_add_title"
  8944. style="
  8945. display: flex;
  8946. flex-direction: row;
  8947. align-items: center;
  8948. justify-content: center;
  8949. "
  8950. >
  8951. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8952. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8953. </div>
  8954. <div class="a_addBox">
  8955. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">题目内容</div>
  8956. <div
  8957. class="a_add_box"
  8958. v-for="(item1, index1) in askJson.askCount"
  8959. :key="index1"
  8960. >
  8961. <div class="a_add_head">
  8962. <div style="display: flex">
  8963. <span class="askIndex"> {{ index1 + 1 }}</span>
  8964. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8965. </div>
  8966. <img
  8967. v-if="askJson.askJson[index1].img"
  8968. :src="askJson.askJson[index1].img"
  8969. style="height: 300px; margin-top: 10px; max-width: 100%"
  8970. />
  8971. </div>
  8972. <div class="a_add_body">
  8973. <div class="a_add_input">
  8974. <el-radio-group
  8975. v-model="radio[index1]"
  8976. v-if="
  8977. askJson.askJson[index1].type == '1' ||
  8978. !askJson.askJson[index1].type
  8979. "
  8980. >
  8981. <el-radio
  8982. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8983. .checkList"
  8984. :key="checkIndex"
  8985. :label="checkIndex"
  8986. :disabled="isAnswer"
  8987. class="redioStyle"
  8988. ><span v-html="item2"></span
  8989. ></el-radio>
  8990. </el-radio-group>
  8991. <el-checkbox-group
  8992. v-model="radio[index1]"
  8993. v-if="askJson.askJson[index1].type == '2'"
  8994. >
  8995. <el-checkbox
  8996. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8997. .checkList"
  8998. :key="checkIndex1"
  8999. :label="checkIndex1"
  9000. :disabled="isAnswer"
  9001. class="redioStyle"
  9002. ><span v-html="item2"></span>
  9003. </el-checkbox>
  9004. </el-checkbox-group>
  9005. </div>
  9006. </div>
  9007. </div>
  9008. </div>
  9009. </div>
  9010. <span slot="footer" class="dialog-footer">
  9011. <el-button
  9012. @click="dialogVisible5Teacher = false"
  9013. v-show="noteName == ''"
  9014. >取 消</el-button
  9015. >
  9016. <el-button
  9017. type="primary"
  9018. @click="addStudentAskTeacher"
  9019. v-show="noteName == ''"
  9020. >确 定</el-button
  9021. >
  9022. </span>
  9023. </el-dialog>
  9024. <el-dialog
  9025. :title="noteName != '' ? noteName : '查看选择题'"
  9026. :visible.sync="dialogVisibleChoice"
  9027. :append-to-body="true"
  9028. width="1000px"
  9029. :before-close="handleClose"
  9030. class="dialog_diy dialog_diy3"
  9031. >
  9032. <div>
  9033. <div class="a_addBox">
  9034. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">题目内容</div>
  9035. <div
  9036. class="a_add_box"
  9037. v-for="(item1, index1) in testJson.testCount"
  9038. :key="index1"
  9039. >
  9040. <div class="a_add_head">
  9041. <div style="display: flex">
  9042. <span class="askIndex"> {{ index1 + 1 }}</span>
  9043. <div
  9044. v-if="testJson.testJson[index1].type == '1'"
  9045. style="margin-right: 5px; min-width: 70px"
  9046. >
  9047. (单选题)
  9048. </div>
  9049. <div
  9050. v-if="testJson.testJson[index1].type == '2'"
  9051. style="margin-right: 5px; min-width: 70px"
  9052. >
  9053. (多选题)
  9054. </div>
  9055. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9056. </div>
  9057. <img
  9058. v-if="testJson.testJson[index1].img"
  9059. :src="testJson.testJson[index1].img"
  9060. style="height: 300px; margin-top: 10px; max-width: 100%"
  9061. />
  9062. </div>
  9063. <div
  9064. class="timuImgBox"
  9065. v-if="
  9066. testJson.testJson[index1].timuList &&
  9067. testJson.testJson[index1].timuList.length
  9068. "
  9069. >
  9070. <div
  9071. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9072. :key="tIndex"
  9073. class="timuImg"
  9074. @click.stop="previewImg(timg.src)"
  9075. >
  9076. <img :src="timg.src" alt="" />
  9077. </div>
  9078. </div>
  9079. <div class="a_add_body">
  9080. <div class="a_add_input">
  9081. <el-radio-group
  9082. v-model="radio[index1]"
  9083. v-if="testJson.testJson[index1].type == '1'"
  9084. >
  9085. <div class="radioBox">
  9086. <el-radio
  9087. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9088. .checkList"
  9089. :key="checkIndex"
  9090. :label="checkIndex"
  9091. :disabled="isAnswer"
  9092. class="redioStyle"
  9093. >
  9094. <div
  9095. style="margin-right: 10px"
  9096. v-if="item2 && item2.imgType && item2.imgType == 1"
  9097. >
  9098. <div class="inImg" @click.stop="previewImg(item2.src)">
  9099. <img :src="item2.src" alt="" />
  9100. </div>
  9101. </div>
  9102. <span v-else v-html="item2"></span>
  9103. </el-radio>
  9104. </div>
  9105. </el-radio-group>
  9106. <el-checkbox-group
  9107. v-model="radio[index1]"
  9108. v-if="testJson.testJson[index1].type == '2'"
  9109. >
  9110. <div class="radioBox">
  9111. <el-checkbox
  9112. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9113. .checkList"
  9114. :key="checkIndex"
  9115. :label="checkIndex"
  9116. :disabled="isAnswer"
  9117. class="redioStyle"
  9118. >
  9119. <div
  9120. style="margin-right: 10px"
  9121. v-if="item2 && item2.imgType && item2.imgType == 1"
  9122. >
  9123. <div class="inImg" @click.stop="previewImg(item2.src)">
  9124. <img :src="item2.src" alt="" />
  9125. </div>
  9126. </div>
  9127. <span v-else v-html="item2"></span>
  9128. </el-checkbox>
  9129. </div>
  9130. </el-checkbox-group>
  9131. </div>
  9132. </div>
  9133. </div>
  9134. </div>
  9135. </div>
  9136. <span slot="footer" class="dialog-footer">
  9137. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9138. >取 消</el-button
  9139. >
  9140. <el-button
  9141. type="primary"
  9142. @click="addStudentTest"
  9143. v-show="noteName == ''"
  9144. >确 定</el-button
  9145. >
  9146. </span>
  9147. </el-dialog>
  9148. <el-dialog
  9149. :title="noteName != '' ? noteName : '查看选择题'"
  9150. :visible.sync="dialogVisibleChoiceTeacher"
  9151. :append-to-body="true"
  9152. width="1000px"
  9153. :before-close="handleClose"
  9154. class="dialog_diy dialog_diy3"
  9155. >
  9156. <div>
  9157. <div class="w_name">
  9158. 学生姓名:<span>{{ sStudent.student }}</span>
  9159. </div>
  9160. <div class="a_addBox">
  9161. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">题目内容</div>
  9162. <div
  9163. class="a_add_box"
  9164. v-for="(item1, index1) in testJson.testCount"
  9165. :key="index1"
  9166. >
  9167. <div class="a_add_head">
  9168. <div style="display: flex">
  9169. <span class="askIndex"> {{ index1 + 1 }}</span>
  9170. <div
  9171. v-if="testJson.testJson[index1].type == '1'"
  9172. style="margin-right: 5px; min-width: 70px"
  9173. >
  9174. (单选题)
  9175. </div>
  9176. <div
  9177. v-if="testJson.testJson[index1].type == '2'"
  9178. style="margin-right: 5px; min-width: 70px"
  9179. >
  9180. (多选题)
  9181. </div>
  9182. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9183. </div>
  9184. <img
  9185. v-if="testJson.testJson[index1].img"
  9186. :src="testJson.testJson[index1].img"
  9187. style="height: 300px; margin-top: 10px; max-width: 100%"
  9188. />
  9189. </div>
  9190. <div
  9191. class="timuImgBox"
  9192. v-if="
  9193. testJson.testJson[index1].timuList &&
  9194. testJson.testJson[index1].timuList.length
  9195. "
  9196. >
  9197. <div
  9198. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9199. :key="tIndex"
  9200. class="timuImg"
  9201. @click.stop="previewImg(timg.src)"
  9202. >
  9203. <img :src="timg.src" alt="" />
  9204. </div>
  9205. </div>
  9206. <div class="a_add_body">
  9207. <div class="a_add_input">
  9208. <el-radio-group
  9209. v-model="radio[index1]"
  9210. v-if="testJson.testJson[index1].type == '1'"
  9211. >
  9212. <div class="radioBox">
  9213. <el-radio
  9214. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9215. .checkList"
  9216. :key="checkIndex"
  9217. :label="checkIndex"
  9218. :disabled="isAnswer"
  9219. class="redioStyle"
  9220. >
  9221. <div
  9222. style="margin-right: 10px"
  9223. v-if="item2 && item2.imgType && item2.imgType == 1"
  9224. >
  9225. <div class="inImg" @click.stop="previewImg(item2.src)">
  9226. <img :src="item2.src" alt="" />
  9227. </div>
  9228. </div>
  9229. <span v-else v-html="item2"></span>
  9230. </el-radio>
  9231. </div>
  9232. </el-radio-group>
  9233. <el-checkbox-group
  9234. v-model="radio[index1]"
  9235. v-if="testJson.testJson[index1].type == '2'"
  9236. >
  9237. <div class="radioBox">
  9238. <el-checkbox
  9239. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9240. .checkList"
  9241. :key="checkIndex"
  9242. :label="checkIndex"
  9243. :disabled="isAnswer"
  9244. class="redioStyle"
  9245. >
  9246. <div
  9247. style="margin-right: 10px"
  9248. v-if="item2 && item2.imgType && item2.imgType == 1"
  9249. >
  9250. <div class="inImg" @click.stop="previewImg(item2.src)">
  9251. <img :src="item2.src" alt="" />
  9252. </div>
  9253. </div>
  9254. <span v-else v-html="item2"></span>
  9255. </el-checkbox>
  9256. </div>
  9257. </el-checkbox-group>
  9258. </div>
  9259. </div>
  9260. </div>
  9261. </div>
  9262. </div>
  9263. <span slot="footer" class="dialog-footer">
  9264. <el-button
  9265. @click="dialogVisibleChoiceTeacher = false"
  9266. v-show="noteName == ''"
  9267. >取 消</el-button
  9268. >
  9269. <el-button
  9270. type="primary"
  9271. @click="addStudentTestTeacher"
  9272. v-show="noteName == ''"
  9273. >确 定</el-button
  9274. >
  9275. </span>
  9276. </el-dialog>
  9277. <el-dialog
  9278. title="查看富文本"
  9279. :visible.sync="dialogVisible1"
  9280. :append-to-body="true"
  9281. width="500px"
  9282. :before-close="handleClose"
  9283. class="dialog_diy textCss"
  9284. >
  9285. <el-form style="font-size: 20px">
  9286. <el-form-item label="文本标题" class="textTitle">
  9287. <div style="font-size: 20px">{{ text.name }}</div>
  9288. </el-form-item>
  9289. <div>富文本内容</div>
  9290. <div
  9291. v-html="text.url"
  9292. style="font-size: 18px; padding: 40px 0 0 0"
  9293. ></div>
  9294. </el-form>
  9295. <span slot="footer" class="dialog-footer">
  9296. <el-button type="primary" @click="dialogVisible1 = false"
  9297. >确定</el-button
  9298. >
  9299. </span>
  9300. </el-dialog>
  9301. <el-dialog
  9302. title="文件预览"
  9303. :visible.sync="dialogVisible3"
  9304. width="50%"
  9305. :before-close="handleClose"
  9306. class="dialog_diy"
  9307. :class="{ fullStyle: full }"
  9308. >
  9309. <div slot="title" class="header-title">
  9310. <div style="color: #fff">文件预览</div>
  9311. <div style="position: absolute; top: 19px; right: 50px">
  9312. <img
  9313. src="../../assets/full.png"
  9314. style="height: 16px; cursor: pointer"
  9315. alt=""
  9316. @click="fullTools"
  9317. />
  9318. </div>
  9319. </div>
  9320. <pdf
  9321. v-if="showPDF"
  9322. :pdfUrl="pptImgUrl"
  9323. style="width: 100%; height: 520px; overflow: auto"
  9324. :class="{ fullStyle: full }"
  9325. ></pdf>
  9326. <iframe
  9327. v-else
  9328. :src="pptImgUrl"
  9329. frameborder="0"
  9330. width="100%"
  9331. height="600"
  9332. :class="{ fullStyle: full }"
  9333. ></iframe>
  9334. </el-dialog>
  9335. <el-dialog
  9336. title="文件预览"
  9337. :visible.sync="dialogVisible6"
  9338. width="50%"
  9339. :before-close="handleClose"
  9340. class="dialog_diy"
  9341. >
  9342. <iframe
  9343. :src="pptImgUrl1"
  9344. frameborder="0"
  9345. width="100%"
  9346. height="600"
  9347. ></iframe>
  9348. </el-dialog>
  9349. <el-dialog
  9350. title="提示"
  9351. :visible.sync="dialogVisible4"
  9352. :append-to-body="true"
  9353. width="800px"
  9354. :before-close="handleClose"
  9355. class="dialog_diy notice"
  9356. >
  9357. <div>此功能暂未开放!</div>
  9358. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9359. </el-dialog>
  9360. <el-dialog
  9361. title="问答"
  9362. :visible.sync="answerDialogVisible"
  9363. :append-to-body="true"
  9364. width="800px"
  9365. :before-close="handleClose"
  9366. class="dialog_diy"
  9367. >
  9368. <div>
  9369. <div
  9370. style="
  9371. display: flex;
  9372. flex-wrap: nowrap;
  9373. flex-direction: column;
  9374. position: relative;
  9375. "
  9376. >
  9377. <div class="queTop" style="padding: 20px 0 20px 0">
  9378. <div class="question">
  9379. <img src="../../assets/icon/question.png" alt />
  9380. </div>
  9381. <div class="queTitle">
  9382. <div style="width: 90px; min-width: 90px">提问:</div>
  9383. <div>{{ answerQ }}</div>
  9384. </div>
  9385. </div>
  9386. <div class="ediBottom">
  9387. <textarea
  9388. rows="6"
  9389. class="binfo_input"
  9390. cols
  9391. style="width: 95%; height: 120px"
  9392. v-model="questionAnswer"
  9393. ></textarea>
  9394. </div>
  9395. </div>
  9396. </div>
  9397. <div slot="footer">
  9398. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9399. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9400. </div>
  9401. </el-dialog>
  9402. <el-dialog
  9403. title="倒计时"
  9404. :visible.sync="timeDialogVisible"
  9405. :append-to-body="true"
  9406. width="800px"
  9407. :before-close="handleClose"
  9408. class="dialog_diy"
  9409. >
  9410. <div>
  9411. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9412. </div>
  9413. <div slot="footer">
  9414. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9415. </div>
  9416. </el-dialog>
  9417. <el-dialog
  9418. title="权限设置"
  9419. :visible.sync="juriVisible"
  9420. :append-to-body="true"
  9421. width="400px"
  9422. :before-close="handleClose"
  9423. class="dialog_diy"
  9424. >
  9425. <div>
  9426. <div class="open_box">
  9427. <div class="switch_box">
  9428. <span>允许学生查看所有作业</span>
  9429. <el-switch
  9430. v-model="sIsOpen"
  9431. active-text=""
  9432. class="switchCss"
  9433. @change="updateSLook"
  9434. ></el-switch>
  9435. </div>
  9436. <div
  9437. class="switch_box"
  9438. v-if="
  9439. courseDetail.userid == userid ||
  9440. (courseDetail.course_teacher &&
  9441. courseDetail.course_teacher.indexOf(userid) != -1)
  9442. "
  9443. >
  9444. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9445. <span>禁止学生查看所有阶段</span>
  9446. <el-switch
  9447. v-model="IsLookOpen"
  9448. active-text=""
  9449. class="switchCss"
  9450. @change="updateLookOpen"
  9451. ></el-switch>
  9452. </div>
  9453. <div class="switch_box" v-if="courseDetail.userid == userid">
  9454. <span>开启跟随模式</span>
  9455. <el-switch
  9456. v-model="IsFollow"
  9457. active-text=""
  9458. class="switchCss"
  9459. @change="updateFollow"
  9460. ></el-switch>
  9461. </div>
  9462. </div>
  9463. </div>
  9464. <div slot="footer">
  9465. <el-button
  9466. style="background: #409efe; color: #fff"
  9467. @click="juriVisible = false"
  9468. >关 闭</el-button
  9469. >
  9470. </div>
  9471. </el-dialog>
  9472. <el-dialog
  9473. title="查看视频"
  9474. :visible.sync="videoVisible"
  9475. :append-to-body="true"
  9476. width="1000px"
  9477. :before-close="handleClose"
  9478. class="dialog_diy1"
  9479. >
  9480. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9481. <video-player
  9482. class="video-player vjs-custom-skin"
  9483. :playsinline="true"
  9484. :options="videoDetail"
  9485. @play="onPlayerPlay($event)"
  9486. style="width: 100%; height: 100%"
  9487. ></video-player>
  9488. </div>
  9489. <div slot="footer">
  9490. <el-button
  9491. style="background: #409efe; color: #fff"
  9492. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9493. >
  9494. 关 闭</el-button
  9495. >
  9496. </div>
  9497. </el-dialog>
  9498. <el-dialog
  9499. title="查看详情"
  9500. :visible.sync="commentDialogVisible"
  9501. :append-to-body="true"
  9502. width="800px"
  9503. :before-close="handleClose"
  9504. class="dialog_diy"
  9505. >
  9506. <div class="commentTop">
  9507. <div class="studentDetail">
  9508. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9509. <div class="nameAndTime">
  9510. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9511. <div>{{ commentDetail.time }}</div>
  9512. </div>
  9513. <div
  9514. class="returnBtn"
  9515. style="margin-left: auto; width: 80px"
  9516. v-if="
  9517. commentDetail.works &&
  9518. commentDetail.type == 0 &&
  9519. (tType == 1 || tType == 4)
  9520. "
  9521. @click="
  9522. showPicturePaint(
  9523. commentDetail.img ? commentDetail.img : commentDetail.works
  9524. )
  9525. "
  9526. >
  9527. 教师批注
  9528. </div>
  9529. </div>
  9530. <div
  9531. class="worksAnswer"
  9532. v-if="commentDetail.works && commentDetail.type == 2"
  9533. >
  9534. {{ JSON.parse(commentDetail.works)[0].answer }}
  9535. </div>
  9536. <div
  9537. class="worksAnswer"
  9538. v-if="commentDetail.works && commentDetail.type == 1"
  9539. >
  9540. <img
  9541. src="../../assets/teacherWork.png"
  9542. v-if="commentDetail.ateacher"
  9543. class="w_teachert"
  9544. />
  9545. <pdf
  9546. v-if="showPDF"
  9547. :pdfUrl="pptImgUrl"
  9548. style="width: 100%; height: 520px; overflow: auto"
  9549. :class="{ fullStyle: full }"
  9550. ></pdf>
  9551. <iframe
  9552. v-else
  9553. :src="pptImgUrl"
  9554. frameborder="0"
  9555. width="100%"
  9556. height="600"
  9557. :class="{ fullStyle: full }"
  9558. ></iframe>
  9559. </div>
  9560. <div
  9561. class="worksAnswer"
  9562. v-if="commentDetail.works && commentDetail.type == 0"
  9563. >
  9564. <img
  9565. src="../../assets/teacherWork.png"
  9566. v-if="commentDetail.ateacher"
  9567. class="w_teachert"
  9568. style="right: 105px"
  9569. />
  9570. <img
  9571. :src="commentDetail.works"
  9572. alt=""
  9573. @click="previewImg(commentDetail.works)"
  9574. />
  9575. </div>
  9576. <div
  9577. class="worksAnswer"
  9578. v-if="commentDetail.works && commentDetail.type == 3"
  9579. >
  9580. <img
  9581. src="../../assets/teacherWork.png"
  9582. v-if="commentDetail.ateacher"
  9583. class="w_teachert"
  9584. />
  9585. <video-player
  9586. class="video-player vjs-custom-skin"
  9587. :playsinline="true"
  9588. :options="videoDetail"
  9589. @play="onPlayerPlay($event)"
  9590. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9591. ></video-player>
  9592. </div>
  9593. <div
  9594. class="worksAnswer"
  9595. v-if="commentDetail.works && commentDetail.type == 10"
  9596. >
  9597. <div class="cont" v-html="commentDetail.works.text"></div>
  9598. </div>
  9599. <div
  9600. class="worksAnswer codeFileBox"
  9601. v-if="commentDetail.works && commentDetail.type == 12"
  9602. @click="downloadFile(commentDetail.works)"
  9603. >
  9604. <img src="../../assets/icon/codeFile.png" />
  9605. <div>点击下载文件</div>
  9606. </div>
  9607. <div
  9608. class="worksAnswer codeFileBox"
  9609. v-if="commentDetail.works && commentDetail.type == 15"
  9610. @click="
  9611. openCocoPi(
  9612. 57,
  9613. commentIndexJson.toolIndex,
  9614. commentDetail.userid,
  9615. commentDetail.sName
  9616. )
  9617. "
  9618. >
  9619. <img src="../../assets/icon/codeFile.png" />
  9620. <div>点击打开CocoPi</div>
  9621. </div>
  9622. <div
  9623. class="worksAnswer"
  9624. v-if="commentDetail.works && commentDetail.type == 13"
  9625. >
  9626. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9627. </div>
  9628. <div
  9629. class="worksAnswer"
  9630. v-if="commentDetail.works && commentDetail.type == 4"
  9631. >
  9632. <div class="evalCss">
  9633. <div class="nav">请选择星星进行评分</div>
  9634. <div class="middleBox" v-if="eScore.eStar">
  9635. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9636. <div class="nameAndrate">
  9637. <div>{{ e.value }}</div>
  9638. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9639. </div>
  9640. <div v-if="e.detail">{{ e.detail }}</div>
  9641. </div>
  9642. <div class="bz">
  9643. <textarea
  9644. disabled
  9645. rows="4"
  9646. class="pj"
  9647. style="
  9648. padding: 10px 5px;
  9649. width: 70%;
  9650. background: #f7f6f9;
  9651. font-size: 14px;
  9652. text-indent: 10px;
  9653. color: #000;
  9654. "
  9655. cols
  9656. v-model="eScore.eBzText"
  9657. placeholder="请输入评价内容..."
  9658. ></textarea>
  9659. </div>
  9660. </div>
  9661. </div>
  9662. </div>
  9663. <div class="comment">
  9664. <div class="commentList">
  9665. <div class="commentImg">
  9666. <img
  9667. @click="
  9668. isLikes(
  9669. commentDetail.wid,
  9670. userid,
  9671. 1,
  9672. null,
  9673. commentDetail.isLikes
  9674. )
  9675. "
  9676. :src="commentDetail.isLikes == true ? likes : noLikes"
  9677. alt=""
  9678. />
  9679. </div>
  9680. <div>{{ commentDetail.likesCount }}</div>
  9681. </div>
  9682. <div class="commentList">
  9683. <div class="commentImg">
  9684. <img src="../../assets/icon/comment/comment.png" alt="" />
  9685. </div>
  9686. <div>{{ commentDetail.commentCount }}</div>
  9687. </div>
  9688. </div>
  9689. <div class="drawPBox" v-if="commentDetail.img">
  9690. <span>教师批注</span>
  9691. <img
  9692. :src="commentDetail.img"
  9693. alt=""
  9694. @click="previewImg(commentDetail.img)"
  9695. />
  9696. <span
  9697. class="deleteImg"
  9698. v-if="tType == 1 || tType == 4"
  9699. @click.stop="deletePicturePaint(commentDetail.wid)"
  9700. style="
  9701. font-size: 14px;
  9702. width: auto !important;
  9703. color: #b4b4b4;
  9704. top: unset;
  9705. bottom: 0;
  9706. border: none;
  9707. padding: 0;
  9708. height: auto !important;
  9709. margin: 0;
  9710. "
  9711. >删除</span
  9712. >
  9713. </div>
  9714. </div>
  9715. <div class="commentBox">
  9716. <div class="pl">评论:</div>
  9717. <div style="max-height: 200px; overflow: auto">
  9718. <div
  9719. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9720. style="padding: 10px 0 0 0"
  9721. >
  9722. <div
  9723. class="studentDetail"
  9724. style="padding-top: 10px"
  9725. v-for="(co, coIndex) in commentDetail.commentJson"
  9726. :key="coIndex"
  9727. >
  9728. <div class="tx" style="min-width: 50px">
  9729. <img src="../../assets/avatar.png" alt="" />
  9730. </div>
  9731. <div class="plPerson">
  9732. <div class="plName">
  9733. <div>{{ co.commentPeople }}</div>
  9734. <div style="margin-left: 5px">
  9735. {{ co.commentTime }}
  9736. </div>
  9737. <div
  9738. class="deleteComment"
  9739. v-if="userid == co.userid"
  9740. @click="deleteComment(co.wid)"
  9741. >
  9742. 删除
  9743. </div>
  9744. </div>
  9745. <div class="plContent">{{ co.commentText }}</div>
  9746. </div>
  9747. </div>
  9748. </div>
  9749. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9750. </div>
  9751. </div>
  9752. <div style="margin-top: 10px">
  9753. <div class="displayBox">
  9754. <div
  9755. style="
  9756. color: #556db4;
  9757. font-size: 14px;
  9758. font-weight: bold;
  9759. padding-bottom: 10px;
  9760. "
  9761. >
  9762. 评价
  9763. </div>
  9764. <div class="easy_comment" v-if="false">
  9765. <div
  9766. v-for="(p, pIndex) in PlTextList"
  9767. :key="pIndex"
  9768. @click="fastText(p, 1)"
  9769. >
  9770. {{ p }}
  9771. </div>
  9772. </div>
  9773. </div>
  9774. <div>
  9775. <textarea
  9776. rows="3"
  9777. class="pj"
  9778. style="padding: 10px 5px"
  9779. cols
  9780. v-model="commentText"
  9781. placeholder="请输入评论"
  9782. ></textarea>
  9783. </div>
  9784. </div>
  9785. <div slot="footer">
  9786. <el-button
  9787. @click="
  9788. (commentDialogVisible = false),
  9789. (commentIndexJson = {}),
  9790. videoDetail.sources && videoDetail.sources[0]
  9791. ? (videoDetail.sources[0].src = '')
  9792. : ''
  9793. "
  9794. >取 消</el-button
  9795. >
  9796. <el-button
  9797. type="primary"
  9798. @click="addComment(commentDetail.wid, userid, 2)"
  9799. >确 定</el-button
  9800. >
  9801. </div>
  9802. </el-dialog>
  9803. <el-dialog
  9804. title="查看文档"
  9805. :visible.sync="fullDialogVisible"
  9806. :append-to-body="true"
  9807. width="100%"
  9808. :before-close="handleClose"
  9809. :show-close="false"
  9810. class="dialog_diy full_diy"
  9811. :class="{ full_diy2: fulltype == 3 }"
  9812. >
  9813. <div slot="title" class="header-title">
  9814. <div style="color: #fff">查看文档</div>
  9815. <div
  9816. @click="fullDialogVisible = false"
  9817. style="
  9818. cursor: pointer;
  9819. position: absolute;
  9820. top: 20px;
  9821. right: 20px;
  9822. color: #fff;
  9823. "
  9824. >
  9825. 退出全屏
  9826. </div>
  9827. </div>
  9828. <div style="height: 100%">
  9829. <div
  9830. class="wheel"
  9831. v-if="
  9832. fulltype == 2 && fullUrl.indexOf(
  9833. 'https://view.officeapps.live.com/op/view.aspx?src='
  9834. ) != -1
  9835. "
  9836. style="width: 95%; margin: 0 auto"
  9837. >
  9838. <iframe
  9839. style="width: 100%; height: 100%; border: none"
  9840. :src="fullUrl"
  9841. ></iframe>
  9842. </div>
  9843. <iframe
  9844. v-else-if="fulltype == 2"
  9845. style="width: 100%; height: 100%; border: none"
  9846. :src="fullUrl"
  9847. security="restricted"
  9848. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9849. ></iframe>
  9850. <pdf
  9851. v-else-if="fulltype == 3"
  9852. :pdfUrl="fullUrl"
  9853. style="width: 100%; height: 100%; overflow: auto"
  9854. ></pdf>
  9855. <div
  9856. class="wheel"
  9857. v-if="fulltype == 1"
  9858. style="
  9859. box-shadow: 0 0 6px 1px #f2f2f2;
  9860. width: 100%;
  9861. background: #f1f1f1;
  9862. "
  9863. >
  9864. <div class="title" style="width: 100%; box-sizing: border-box">
  9865. 查看文档
  9866. </div>
  9867. <el-form class="textBox" style="height: 90%">
  9868. <el-form-item class="textTitle">
  9869. <div style="font-size: 22px">
  9870. {{ fullUrl.name }}
  9871. </div>
  9872. </el-form-item>
  9873. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9874. <div
  9875. v-html="fullUrl.url"
  9876. class="textContent"
  9877. style="height: auto"
  9878. ></div>
  9879. </el-form>
  9880. </div>
  9881. </div>
  9882. <!-- <div slot="footer">
  9883. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9884. </div> -->
  9885. </el-dialog>
  9886. <el-dialog
  9887. title="个人评价"
  9888. :visible.sync="studentEvalDialogVisible"
  9889. :append-to-body="true"
  9890. width="800px"
  9891. :before-close="handleClose"
  9892. class="dialog_diy"
  9893. >
  9894. <div class="evalCss">
  9895. <div class="nav">请选择星星进行评分</div>
  9896. <div class="middleBox" v-if="eScore.eStar">
  9897. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9898. <div class="nameAndrate">
  9899. <div>{{ e.value }}</div>
  9900. <el-rate
  9901. v-model="eScore.eStar[eIndex]"
  9902. :disabled="isStar"
  9903. ></el-rate>
  9904. </div>
  9905. <div v-if="e.detail">{{ e.detail }}</div>
  9906. </div>
  9907. <div class="easy_comment" v-if="false">
  9908. <div
  9909. v-for="(p, pIndex) in PlTextList"
  9910. :key="pIndex"
  9911. @click="fastText(p, 2)"
  9912. >
  9913. {{ p }}
  9914. </div>
  9915. </div>
  9916. <div class="bz">
  9917. <textarea
  9918. :disabled="isStar"
  9919. rows="4"
  9920. class="pj"
  9921. style="
  9922. padding: 10px 5px;
  9923. width: 70%;
  9924. background: #f7f6f9;
  9925. font-size: 14px;
  9926. text-indent: 10px;
  9927. "
  9928. cols
  9929. v-model="eScore.eBzText"
  9930. placeholder="请输入评价内容..."
  9931. ></textarea>
  9932. </div>
  9933. </div>
  9934. </div>
  9935. <div slot="footer">
  9936. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9937. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9938. >确 定</el-button
  9939. >
  9940. </div>
  9941. </el-dialog>
  9942. <el-dialog
  9943. title="个人评价"
  9944. :visible.sync="studentEvalDialogVisibleTeacher"
  9945. :append-to-body="true"
  9946. width="800px"
  9947. :before-close="handleClose"
  9948. class="dialog_diy"
  9949. >
  9950. <div class="w_name">
  9951. 学生姓名:<span>{{ sStudent.student }}</span>
  9952. </div>
  9953. <div class="evalCss">
  9954. <div class="nav">请选择星星进行评分</div>
  9955. <div class="middleBox" v-if="eScore.eStar">
  9956. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9957. <div class="nameAndrate">
  9958. <div>{{ e.value }}</div>
  9959. <el-rate
  9960. v-model="eScore.eStar[eIndex]"
  9961. :disabled="isStar"
  9962. ></el-rate>
  9963. </div>
  9964. <div v-if="e.detail">{{ e.detail }}</div>
  9965. </div>
  9966. <div class="easy_comment" v-if="false">
  9967. <div
  9968. v-for="(p, pIndex) in PlTextList"
  9969. :key="pIndex"
  9970. @click="fastText(p, 2)"
  9971. >
  9972. {{ p }}
  9973. </div>
  9974. </div>
  9975. <div class="bz">
  9976. <textarea
  9977. :disabled="isStar"
  9978. rows="4"
  9979. class="pj"
  9980. style="
  9981. padding: 10px 5px;
  9982. width: 70%;
  9983. background: #f7f6f9;
  9984. font-size: 14px;
  9985. text-indent: 10px;
  9986. "
  9987. cols
  9988. v-model="eScore.eBzText"
  9989. placeholder="请输入评价内容..."
  9990. ></textarea>
  9991. </div>
  9992. </div>
  9993. </div>
  9994. <div slot="footer">
  9995. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9996. >取 消</el-button
  9997. >
  9998. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9999. >确 定</el-button
  10000. >
  10001. </div>
  10002. </el-dialog>
  10003. <el-dialog
  10004. title="选择填空"
  10005. :visible.sync="dialogVisibleSelect"
  10006. :append-to-body="true"
  10007. width="90%"
  10008. :before-close="handleClose"
  10009. class="dialog_diy dialog_diy3"
  10010. >
  10011. <div v-if="selectJson">
  10012. <div class="select_box2">
  10013. <div class="select_box2_title">
  10014. <div>选择填空</div>
  10015. <div>请选择对应的答案进行答题!</div>
  10016. </div>
  10017. <div class="select_box2_box">
  10018. <div class="select_box2_img">
  10019. <img
  10020. :src="selectJson.url"
  10021. @click="previewImg(selectJson.url)"
  10022. alt=""
  10023. />
  10024. </div>
  10025. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10026. <div style="padding-top: 15px">
  10027. <div class="select_answer_title" v-if="isSelect">
  10028. {{ selectAnswer.stu }}
  10029. </div>
  10030. <div class="select_answer_title" v-else>
  10031. 根据题目选择对应答案
  10032. </div>
  10033. <div
  10034. class="select_box2_answer_box"
  10035. v-for="(item2, checkIndex) in selectJson.select"
  10036. :key="checkIndex"
  10037. >
  10038. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10039. <el-select
  10040. :disabled="isSelect"
  10041. v-model="selectAnswer.answer[checkIndex]"
  10042. placeholder="请选择正确答案"
  10043. >
  10044. <el-option
  10045. v-for="(e, eIndex) in selectJson.select"
  10046. :key="eIndex"
  10047. :label="e"
  10048. :value="eIndex"
  10049. >
  10050. </el-option>
  10051. </el-select>
  10052. </div>
  10053. </div>
  10054. <div
  10055. class="rightAnswerCss"
  10056. v-if="isSelect && (tType == 1 || tType == 4)"
  10057. >
  10058. <div
  10059. v-for="(a, aIndex) in selectJson.answer"
  10060. :key="aIndex"
  10061. class="rightAnswer"
  10062. >
  10063. <div
  10064. v-if="selectAnswer.answer[aIndex] === a"
  10065. style="color: #767de1"
  10066. >
  10067. 回答正确
  10068. </div>
  10069. <div v-else>回答错误</div>
  10070. <div
  10071. style="margin-left: 10px"
  10072. v-if="selectAnswer.answer[aIndex] !== a"
  10073. >
  10074. 正确答案:
  10075. </div>
  10076. <div
  10077. :class="
  10078. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10079. "
  10080. >
  10081. {{ selectJson.select[a] }}
  10082. </div>
  10083. </div>
  10084. </div>
  10085. </div>
  10086. <div class="upAnswerCss">
  10087. <el-button
  10088. type="primary"
  10089. @click="addSelectAnswer"
  10090. v-if="!isSelect"
  10091. >提交答案</el-button
  10092. >
  10093. </div>
  10094. </div>
  10095. </div>
  10096. </div>
  10097. </el-dialog>
  10098. <el-dialog
  10099. title="选择填空"
  10100. :visible.sync="dialogVisibleSelectTeacher"
  10101. :append-to-body="true"
  10102. width="90%"
  10103. :before-close="handleClose"
  10104. class="dialog_diy dialog_diy3"
  10105. >
  10106. <div v-if="selectJson">
  10107. <div class="w_name">
  10108. 学生姓名:<span>{{ sStudent.student }}</span>
  10109. </div>
  10110. <div class="select_box2">
  10111. <div class="select_box2_title">
  10112. <div>选择填空</div>
  10113. <div>请选择对应的答案进行答题!</div>
  10114. </div>
  10115. <div class="select_box2_box">
  10116. <div class="select_box2_img">
  10117. <img
  10118. :src="selectJson.url"
  10119. @click="previewImg(selectJson.url)"
  10120. alt=""
  10121. />
  10122. </div>
  10123. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10124. <div style="padding-top: 15px">
  10125. <div class="select_answer_title" v-if="isSelect">
  10126. {{ selectAnswer.stu }}
  10127. </div>
  10128. <div class="select_answer_title" v-else>
  10129. 根据题目选择对应答案
  10130. </div>
  10131. <div
  10132. class="select_box2_answer_box"
  10133. v-for="(item2, checkIndex) in selectJson.select"
  10134. :key="checkIndex"
  10135. >
  10136. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10137. <el-select
  10138. :disabled="isSelect"
  10139. v-model="selectAnswer.answer[checkIndex]"
  10140. placeholder="请选择正确答案"
  10141. >
  10142. <el-option
  10143. v-for="(e, eIndex) in selectJson.select"
  10144. :key="eIndex"
  10145. :label="e"
  10146. :value="eIndex"
  10147. >
  10148. </el-option>
  10149. </el-select>
  10150. </div>
  10151. </div>
  10152. <div
  10153. class="rightAnswerCss"
  10154. v-if="isSelect && (tType == 1 || tType == 4)"
  10155. >
  10156. <div
  10157. v-for="(a, aIndex) in selectJson.answer"
  10158. :key="aIndex"
  10159. class="rightAnswer"
  10160. >
  10161. <div
  10162. v-if="selectAnswer.answer[aIndex] === a"
  10163. style="color: #767de1"
  10164. >
  10165. 回答正确
  10166. </div>
  10167. <div v-else>回答错误</div>
  10168. <div
  10169. style="margin-left: 10px"
  10170. v-if="selectAnswer.answer[aIndex] !== a"
  10171. >
  10172. 正确答案:
  10173. </div>
  10174. <div
  10175. :class="
  10176. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10177. "
  10178. >
  10179. {{ selectJson.select[a] }}
  10180. </div>
  10181. </div>
  10182. </div>
  10183. </div>
  10184. <div class="upAnswerCss">
  10185. <el-button
  10186. type="primary"
  10187. @click="addSelectAnswerTeacher"
  10188. v-if="!isSelect"
  10189. >提交答案</el-button
  10190. >
  10191. </div>
  10192. </div>
  10193. </div>
  10194. </div>
  10195. </el-dialog>
  10196. <el-dialog
  10197. title="教师评分"
  10198. :visible.sync="dialogVisibleScore"
  10199. :append-to-body="true"
  10200. width="800px"
  10201. :before-close="handleClose"
  10202. class="dialog_diy"
  10203. >
  10204. <div>
  10205. <div class="studentDetail">
  10206. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10207. <div class="nameAndTime">
  10208. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10209. <div>{{ commentDetail.time }}</div>
  10210. </div>
  10211. </div>
  10212. <div
  10213. class="worksAnswer"
  10214. v-if="commentDetail.works && commentDetail.type == 2"
  10215. >
  10216. {{ JSON.parse(commentDetail.works)[0].answer }}
  10217. </div>
  10218. <div
  10219. class="worksAnswer"
  10220. v-if="commentDetail.works && commentDetail.type == 1"
  10221. >
  10222. <pdf
  10223. v-if="showPDF"
  10224. :pdfUrl="pptImgUrl"
  10225. style="width: 100%; height: 520px; overflow: auto"
  10226. :class="{ fullStyle: full }"
  10227. ></pdf>
  10228. <iframe
  10229. v-else
  10230. :src="pptImgUrl"
  10231. frameborder="0"
  10232. width="100%"
  10233. height="600"
  10234. :class="{ fullStyle: full }"
  10235. ></iframe>
  10236. </div>
  10237. <div
  10238. class="worksAnswer"
  10239. v-if="commentDetail.works && commentDetail.type == 0"
  10240. >
  10241. <img
  10242. :src="commentDetail.works"
  10243. alt=""
  10244. @click="previewImg(commentDetail.works)"
  10245. />
  10246. </div>
  10247. <div
  10248. class="worksAnswer"
  10249. v-if="commentDetail.works && commentDetail.type == 3"
  10250. >
  10251. <video-player
  10252. class="video-player vjs-custom-skin"
  10253. :playsinline="true"
  10254. :options="videoDetail"
  10255. @play="onPlayerPlay($event)"
  10256. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10257. ></video-player>
  10258. </div>
  10259. <div
  10260. class="worksAnswer codeFileBox"
  10261. v-if="commentDetail.works && commentDetail.type == 12"
  10262. @click="downloadFile(commentDetail.works)"
  10263. >
  10264. <img src="../../assets/icon/codeFile.png" />
  10265. <div>点击下载文件</div>
  10266. </div>
  10267. <div
  10268. class="worksAnswer codeFileBox"
  10269. v-if="commentDetail.works && commentDetail.type == 15"
  10270. @click="
  10271. openCocoPi(
  10272. 57,
  10273. commentIndexJson.toolIndex,
  10274. commentDetail.userid,
  10275. commentDetail.sName
  10276. )
  10277. "
  10278. >
  10279. <img src="../../assets/icon/codeFile.png" />
  10280. <div>点击打开CocoPi</div>
  10281. </div>
  10282. <div
  10283. class="worksAnswer"
  10284. v-if="commentDetail.works && commentDetail.type == 13"
  10285. >
  10286. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10287. </div>
  10288. <div class="scoreBox">
  10289. <span class="t">请输入分数</span>
  10290. <el-input-number
  10291. :disabled="courseDetail.userid != userid"
  10292. v-model="wScore"
  10293. :controls="false"
  10294. :min="0"
  10295. :max="100"
  10296. ></el-input-number>
  10297. </div>
  10298. <div class="scoreDetailBox">
  10299. <span class="t">评分评论</span>
  10300. <el-input
  10301. type="textarea"
  10302. :rows="5"
  10303. :disabled="courseDetail.userid != userid"
  10304. resize="none"
  10305. v-model="scoreDetail"
  10306. placeholder="请输入对学生的评价"
  10307. >
  10308. </el-input>
  10309. </div>
  10310. </div>
  10311. <span slot="footer" class="dialog-footer">
  10312. <el-button
  10313. @click="
  10314. (dialogVisibleScore = false),
  10315. (commentIndexJson = {}),
  10316. videoDetail.sources && videoDetail.sources[0]
  10317. ? (videoDetail.sources[0].src = '')
  10318. : ''
  10319. "
  10320. >取 消</el-button
  10321. >
  10322. <el-button
  10323. type="primary"
  10324. v-if="courseDetail.userid == userid"
  10325. @click="scoreWork(commentDetail.wid)"
  10326. >确 定
  10327. </el-button>
  10328. </span>
  10329. </el-dialog>
  10330. <el-dialog
  10331. title="连词成句"
  10332. :visible.sync="dialogVisibleSentence"
  10333. :append-to-body="true"
  10334. width="1000px"
  10335. :before-close="handleClose"
  10336. class="dialog_diy dialog_diy3"
  10337. >
  10338. <div>
  10339. <div class="sentenBox">
  10340. <div
  10341. v-for="(st, stIndex) in sentenceList"
  10342. :key="stIndex"
  10343. style="padding-bottom: 20px"
  10344. >
  10345. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10346. <div class="cardList" v-if="st.chooseSenList">
  10347. <div class="cardBox">
  10348. <div
  10349. v-for="(r, rIndex) in st.chooseSenList"
  10350. :key="rIndex"
  10351. @click="returnCard(r, stIndex, rIndex)"
  10352. >
  10353. <el-tooltip
  10354. class="item"
  10355. effect="light"
  10356. :content="r"
  10357. placement="top"
  10358. v-if="r != '' && r != undefined"
  10359. >
  10360. <div
  10361. :class="{
  10362. isCard: r,
  10363. isChooseCard: r == '' || r == undefined,
  10364. }"
  10365. >
  10366. <div>{{ r }}</div>
  10367. </div>
  10368. </el-tooltip>
  10369. <div
  10370. :class="{
  10371. isCard: r,
  10372. isChooseCard: r == '' || r == undefined,
  10373. }"
  10374. v-else
  10375. >
  10376. <div>{{ r }}</div>
  10377. </div>
  10378. </div>
  10379. </div>
  10380. </div>
  10381. <div class="cardList" v-if="st.addChangeSen">
  10382. <div class="cardBox">
  10383. <div
  10384. v-for="(s, sIndex) in st.addChangeSen"
  10385. :key="sIndex"
  10386. @click="setRightAnswer(s, stIndex, sIndex)"
  10387. >
  10388. <el-tooltip
  10389. class="item"
  10390. effect="light"
  10391. :content="s"
  10392. placement="top"
  10393. v-if="s != '' && s != undefined"
  10394. >
  10395. <div
  10396. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10397. >
  10398. <div>{{ s }}</div>
  10399. </div>
  10400. </el-tooltip>
  10401. <div
  10402. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10403. v-else
  10404. >
  10405. <div>{{ s }}</div>
  10406. </div>
  10407. </div>
  10408. </div>
  10409. </div>
  10410. </div>
  10411. </div>
  10412. </div>
  10413. <span slot="footer" class="dialog-footer">
  10414. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10415. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10416. </span>
  10417. </el-dialog>
  10418. <el-dialog
  10419. title="连词成句"
  10420. :visible.sync="dialogVisibleSentenceTeacher"
  10421. :append-to-body="true"
  10422. width="1000px"
  10423. :before-close="handleClose"
  10424. class="dialog_diy dialog_diy3"
  10425. >
  10426. <div>
  10427. <div class="w_name">
  10428. 学生姓名:<span>{{ sStudent.student }}</span>
  10429. </div>
  10430. <div class="sentenBox">
  10431. <div
  10432. v-for="(st, stIndex) in sentenceList"
  10433. :key="stIndex"
  10434. style="padding-bottom: 20px"
  10435. >
  10436. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10437. <div class="cardList" v-if="st.chooseSenList">
  10438. <div class="cardBox">
  10439. <div
  10440. v-for="(r, rIndex) in st.chooseSenList"
  10441. :key="rIndex"
  10442. @click="returnCard(r, stIndex, rIndex)"
  10443. >
  10444. <el-tooltip
  10445. class="item"
  10446. effect="light"
  10447. :content="r"
  10448. placement="top"
  10449. v-if="r != '' && r != undefined"
  10450. >
  10451. <div
  10452. :class="{
  10453. isCard: r,
  10454. isChooseCard: r == '' || r == undefined,
  10455. }"
  10456. >
  10457. <div>{{ r }}</div>
  10458. </div>
  10459. </el-tooltip>
  10460. <div
  10461. :class="{
  10462. isCard: r,
  10463. isChooseCard: r == '' || r == undefined,
  10464. }"
  10465. v-else
  10466. >
  10467. <div>{{ r }}</div>
  10468. </div>
  10469. </div>
  10470. </div>
  10471. </div>
  10472. <div class="cardList" v-if="st.addChangeSen">
  10473. <div class="cardBox">
  10474. <div
  10475. v-for="(s, sIndex) in st.addChangeSen"
  10476. :key="sIndex"
  10477. @click="setRightAnswer(s, stIndex, sIndex)"
  10478. >
  10479. <el-tooltip
  10480. class="item"
  10481. effect="light"
  10482. :content="s"
  10483. placement="top"
  10484. v-if="s != '' && s != undefined"
  10485. >
  10486. <div
  10487. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10488. >
  10489. <div>{{ s }}</div>
  10490. </div>
  10491. </el-tooltip>
  10492. <div
  10493. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10494. v-else
  10495. >
  10496. <div>{{ s }}</div>
  10497. </div>
  10498. </div>
  10499. </div>
  10500. </div>
  10501. </div>
  10502. </div>
  10503. </div>
  10504. <span slot="footer" class="dialog-footer">
  10505. <el-button @click="dialogVisibleSentenceTeacher = false"
  10506. >取 消</el-button
  10507. >
  10508. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10509. </span>
  10510. </el-dialog>
  10511. <el-dialog
  10512. title="连词成句"
  10513. :visible.sync="dialogVisibleSentence1"
  10514. :append-to-body="true"
  10515. width="1000px"
  10516. :before-close="handleClose"
  10517. class="dialog_diy dialog_diy3"
  10518. >
  10519. <div>
  10520. <div class="sentenBox">
  10521. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10522. {{ sentenceList1.stuName }}的作业
  10523. </div>
  10524. <div
  10525. v-for="(st, stIndex) in sentenceList1"
  10526. :key="stIndex"
  10527. style="padding-bottom: 20px"
  10528. >
  10529. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10530. 第{{ stIndex + 1 }}题
  10531. </div>
  10532. <div class="isWrong">
  10533. <div class="cardList1" v-if="st.chooseSenList">
  10534. <div class="cardBox">
  10535. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10536. <el-tooltip
  10537. class="item"
  10538. effect="light"
  10539. :content="s"
  10540. placement="top"
  10541. >
  10542. <div class="isCard">
  10543. <div>{{ s }}</div>
  10544. </div>
  10545. </el-tooltip>
  10546. </div>
  10547. </div>
  10548. <div class="cardAnswerBox">
  10549. 组成句子:{{ st.chooseSenList.join(" ") }}
  10550. </div>
  10551. </div>
  10552. <div
  10553. class="answerRight isTj"
  10554. v-if="
  10555. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10556. (tType == 1 || tType == 4)
  10557. "
  10558. >
  10559. <div class="isTjImg">
  10560. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10561. </div>
  10562. <div>回答正确</div>
  10563. </div>
  10564. <div
  10565. class="answerRight isTj"
  10566. v-if="
  10567. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10568. (tType == 1 || tType == 4)
  10569. "
  10570. >
  10571. <div class="isTjImg">
  10572. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10573. </div>
  10574. <div>回答错误</div>
  10575. </div>
  10576. </div>
  10577. <div
  10578. v-if="
  10579. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10580. (tType == 1 || tType == 4)
  10581. "
  10582. >
  10583. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10584. <div
  10585. class="cardList"
  10586. v-if="st.rightAnswer"
  10587. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10588. >
  10589. <div class="cardBox">
  10590. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10591. <el-tooltip
  10592. class="item"
  10593. effect="light"
  10594. :content="r"
  10595. placement="top"
  10596. >
  10597. <div class="isCard1">
  10598. <div>{{ r }}</div>
  10599. </div>
  10600. </el-tooltip>
  10601. </div>
  10602. </div>
  10603. <div class="cardAnswerBox">
  10604. 组成句子:{{ st.rightAnswer.join(" ") }}
  10605. </div>
  10606. </div>
  10607. </div>
  10608. </div>
  10609. </div>
  10610. </div>
  10611. <span slot="footer" class="dialog-footer">
  10612. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10613. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10614. >确 定</el-button
  10615. >
  10616. </span>
  10617. </el-dialog>
  10618. <el-dialog
  10619. title="提交作业"
  10620. :visible.sync="dialogVisibleWorks"
  10621. :append-to-body="true"
  10622. width="500px"
  10623. :before-close="handleClose"
  10624. class="dialog_change"
  10625. >
  10626. <div class="marginT">
  10627. <div class="w_name">
  10628. 学生姓名:<span>{{ sStudent.student }}</span>
  10629. </div>
  10630. <div>上传文件</div>
  10631. <div
  10632. class="chapter_add"
  10633. @click="addImg($event)"
  10634. v-if="studyJuri[0].cover.length == 0"
  10635. >
  10636. <div class="up_photo">
  10637. <img src="../../assets/uploadImg2.png" alt />
  10638. </div>
  10639. <!-- <input
  10640. type="file"
  10641. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10642. style="display: none"
  10643. @change="beforeUpload1($event, 1)"
  10644. /> -->
  10645. <input
  10646. type="file"
  10647. accept="*"
  10648. style="display: none"
  10649. @change="beforeUpload1($event, 1)"
  10650. />
  10651. </div>
  10652. <!-- capture="camera" -->
  10653. <div
  10654. class="chapter_add"
  10655. style="
  10656. display: flex;
  10657. width: 100%;
  10658. flex-direction: row;
  10659. flex-wrap: wrap;
  10660. justify-content: flex-start;
  10661. padding: 15px 0;
  10662. "
  10663. v-if="studyJuri[0].cover.length > 0"
  10664. >
  10665. <div class="upCover">
  10666. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10667. <img :src="word" alt v-else-if="fileType == 1" />
  10668. <img :src="video" alt v-else-if="fileType == 2" />
  10669. <img :src="word2" alt v-else-if="fileType == 3" />
  10670. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10671. <div class="deleteWord" @click="clean(1)">
  10672. <img src="../../assets/icon/deleteWorks.png" alt />
  10673. </div>
  10674. </div>
  10675. </div>
  10676. </div>
  10677. <div
  10678. class="upload_send"
  10679. @click="addCourseWorksTeacher(taskCount)"
  10680. v-if="!proVisible"
  10681. >
  10682. 提交
  10683. </div>
  10684. </el-dialog>
  10685. <el-dialog
  10686. title="问答"
  10687. :visible.sync="answerDialogVisibleTeacher"
  10688. :append-to-body="true"
  10689. width="800px"
  10690. :before-close="handleClose"
  10691. class="dialog_diy"
  10692. >
  10693. <div>
  10694. <div class="w_name">
  10695. 学生姓名:<span>{{ sStudent.student }}</span>
  10696. </div>
  10697. <div
  10698. style="
  10699. display: flex;
  10700. flex-wrap: nowrap;
  10701. flex-direction: column;
  10702. position: relative;
  10703. "
  10704. >
  10705. <div class="queTop" style="padding: 20px 0 20px 0">
  10706. <div class="question">
  10707. <img src="../../assets/icon/question.png" alt />
  10708. </div>
  10709. <div class="queTitle">
  10710. <div style="width: 90px; min-width: 90px">提问:</div>
  10711. <div>{{ answerQ }}</div>
  10712. </div>
  10713. </div>
  10714. <div class="ediBottom">
  10715. <textarea
  10716. rows="6"
  10717. class="binfo_input"
  10718. cols
  10719. style="width: 95%; height: 120px"
  10720. v-model="questionAnswer"
  10721. ></textarea>
  10722. </div>
  10723. </div>
  10724. </div>
  10725. <div slot="footer">
  10726. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10727. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10728. </div>
  10729. </el-dialog>
  10730. <ImgDraw
  10731. :drawShow="drawShow"
  10732. @closeDraw="closeDraw"
  10733. @addImgDraw="addImgDraw"
  10734. :bg="bg"
  10735. ></ImgDraw>
  10736. <el-dialog
  10737. title="表格"
  10738. :visible.sync="dialogVisibleTable"
  10739. :append-to-body="true"
  10740. width="95%"
  10741. :before-close="handleClose"
  10742. class="dialog_diy"
  10743. >
  10744. <el-form>
  10745. <div>表格内容</div>
  10746. <Table
  10747. v-model="tableJson.text"
  10748. @change="change"
  10749. v-if="dialogVisibleTable"
  10750. ></Table>
  10751. </el-form>
  10752. <span slot="footer" class="dialog-footer">
  10753. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10754. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10755. </span>
  10756. </el-dialog>
  10757. <el-dialog
  10758. title="表格"
  10759. :visible.sync="dialogVisibleTableTeacher"
  10760. :append-to-body="true"
  10761. width="95%"
  10762. :before-close="handleClose"
  10763. class="dialog_diy"
  10764. >
  10765. <el-form>
  10766. <div class="w_name">
  10767. 学生姓名:<span>{{ sStudent.student }}</span>
  10768. </div>
  10769. <div>表格内容</div>
  10770. <Table
  10771. v-model="tableJson.text"
  10772. @change="change"
  10773. v-if="dialogVisibleTableTeacher"
  10774. ></Table>
  10775. </el-form>
  10776. <span slot="footer" class="dialog-footer">
  10777. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10778. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10779. </span>
  10780. </el-dialog>
  10781. <el-dialog
  10782. title="文档"
  10783. :visible.sync="dialogVisibleWord"
  10784. :append-to-body="true"
  10785. width="95%"
  10786. :before-close="handleClose"
  10787. class="dialog_diy"
  10788. >
  10789. <el-form>
  10790. <div>文档内容</div>
  10791. <editor-bar
  10792. v-model="wordJson.text"
  10793. v-if="dialogVisibleWord"
  10794. ></editor-bar>
  10795. </el-form>
  10796. <span slot="footer" class="dialog-footer">
  10797. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10798. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10799. </span>
  10800. </el-dialog>
  10801. <el-dialog
  10802. title="文档"
  10803. :visible.sync="dialogVisibleWordTeacher"
  10804. :append-to-body="true"
  10805. width="95%"
  10806. :before-close="handleClose"
  10807. class="dialog_diy"
  10808. >
  10809. <el-form>
  10810. <div class="w_name">
  10811. 学生姓名:<span>{{ sStudent.student }}</span>
  10812. </div>
  10813. <div>文档内容</div>
  10814. <editor-bar
  10815. v-model="wordJson.text"
  10816. v-if="dialogVisibleWordTeacher"
  10817. ></editor-bar>
  10818. </el-form>
  10819. <span slot="footer" class="dialog-footer">
  10820. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10821. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10822. </span>
  10823. </el-dialog>
  10824. <el-dialog
  10825. title="表格"
  10826. :visible.sync="dialogVisibleTable2"
  10827. :append-to-body="true"
  10828. width="95%"
  10829. :before-close="handleClose"
  10830. class="dialog_diy"
  10831. >
  10832. <el-form>
  10833. <div class="cont" v-html="tableJson.text"></div>
  10834. </el-form>
  10835. <span slot="footer" class="dialog-footer">
  10836. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10837. </span>
  10838. </el-dialog>
  10839. <el-dialog
  10840. title="文档"
  10841. :visible.sync="dialogVisibleTable3"
  10842. :append-to-body="true"
  10843. width="95%"
  10844. :before-close="handleClose"
  10845. class="dialog_diy"
  10846. >
  10847. <el-form>
  10848. <div class="cont" v-html="tableJson.text"></div>
  10849. </el-form>
  10850. <span slot="footer" class="dialog-footer">
  10851. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10852. </span>
  10853. </el-dialog>
  10854. <el-dialog
  10855. title="分组设置"
  10856. :visible.sync="dialogVisibleGroup"
  10857. :append-to-body="true"
  10858. width="95%"
  10859. :before-close="handleClose"
  10860. class="dialog_diy"
  10861. >
  10862. <div v-if="dialogVisibleGroup">
  10863. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10864. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10865. 提示:需要锁定位置,才能点击头像修改座位。
  10866. </div>
  10867. <div
  10868. type="primary"
  10869. v-if="groupJson.islock == 1"
  10870. class="returnBtn"
  10871. style="background-color: #225bc7"
  10872. @click="lockChair"
  10873. >
  10874. 锁定位置
  10875. </div>
  10876. <div
  10877. type="primary"
  10878. v-else
  10879. class="returnBtn"
  10880. style="background-color: #225bc7"
  10881. @click="lockChair"
  10882. >
  10883. 解锁位置
  10884. </div>
  10885. <div
  10886. type="primary"
  10887. @click="updateGroup"
  10888. class="returnBtn"
  10889. style="background-color: #225bc7"
  10890. >
  10891. 分组设置
  10892. </div>
  10893. </div>
  10894. <div>
  10895. <div
  10896. class="g_d_box"
  10897. v-if="groupJson.group && groupStudent[toolindex]"
  10898. >
  10899. <div
  10900. class="g_d_group"
  10901. v-for="(g, gindex) in groupJson.group"
  10902. :key="gindex"
  10903. >
  10904. <div class="g_d_group_chair">
  10905. <div v-if="groupJson.number > 1">
  10906. <span
  10907. :class="{
  10908. isChair:
  10909. groupStudent[toolindex][gindex] &&
  10910. groupStudent[toolindex][gindex][0],
  10911. updateChair:
  10912. courseDetail.userid == userid &&
  10913. groupStudent[toolindex][gindex] &&
  10914. groupStudent[toolindex][gindex][0] &&
  10915. groupJson.islock == 2,
  10916. }"
  10917. ><span
  10918. class="updateChairBtn"
  10919. @click="
  10920. updateGroupChair(
  10921. groupStudent[toolindex][gindex] &&
  10922. groupStudent[toolindex][gindex][0]
  10923. )
  10924. "
  10925. >修改</span
  10926. ></span
  10927. ><span>{{
  10928. groupStudent[toolindex][gindex] &&
  10929. groupStudent[toolindex][gindex][0]
  10930. ? groupStudent[toolindex][gindex] &&
  10931. groupStudent[toolindex][gindex][0].name
  10932. : "空位置"
  10933. }}</span>
  10934. </div>
  10935. <div v-if="groupJson.number > 4">
  10936. <span
  10937. :class="{
  10938. isChair:
  10939. groupStudent[toolindex][gindex] &&
  10940. groupStudent[toolindex][gindex][4],
  10941. updateChair:
  10942. courseDetail.userid == userid &&
  10943. groupStudent[toolindex][gindex] &&
  10944. groupStudent[toolindex][gindex][4] &&
  10945. groupJson.islock == 2,
  10946. }"
  10947. ><span
  10948. class="updateChairBtn"
  10949. @click="
  10950. updateGroupChair(
  10951. groupStudent[toolindex][gindex] &&
  10952. groupStudent[toolindex][gindex][4]
  10953. )
  10954. "
  10955. >修改</span
  10956. ></span
  10957. ><span>{{
  10958. groupStudent[toolindex][gindex] &&
  10959. groupStudent[toolindex][gindex][4]
  10960. ? groupStudent[toolindex][gindex] &&
  10961. groupStudent[toolindex][gindex][4].name
  10962. : "空位置"
  10963. }}</span>
  10964. </div>
  10965. <div v-if="groupJson.number > 8">
  10966. <span
  10967. :class="{
  10968. isChair:
  10969. groupStudent[toolindex][gindex] &&
  10970. groupStudent[toolindex][gindex][8],
  10971. updateChair:
  10972. courseDetail.userid == userid &&
  10973. groupStudent[toolindex][gindex] &&
  10974. groupStudent[toolindex][gindex][8] &&
  10975. groupJson.islock == 2,
  10976. }"
  10977. ><span
  10978. class="updateChairBtn"
  10979. @click="
  10980. updateGroupChair(
  10981. groupStudent[toolindex][gindex] &&
  10982. groupStudent[toolindex][gindex][8]
  10983. )
  10984. "
  10985. >修改</span
  10986. ></span
  10987. ><span>{{
  10988. groupStudent[toolindex][gindex] &&
  10989. groupStudent[toolindex][gindex][8]
  10990. ? groupStudent[toolindex][gindex] &&
  10991. groupStudent[toolindex][gindex][8].name
  10992. : "空位置"
  10993. }}</span>
  10994. </div>
  10995. </div>
  10996. <div class="g_d_group_tableBox">
  10997. <div class="g_d_group_chair2">
  10998. <div v-if="groupJson.number > 2">
  10999. <span
  11000. :class="{
  11001. isChair:
  11002. groupStudent[toolindex][gindex] &&
  11003. groupStudent[toolindex][gindex][2],
  11004. updateChair:
  11005. courseDetail.userid == userid &&
  11006. groupStudent[toolindex][gindex] &&
  11007. groupStudent[toolindex][gindex][2] &&
  11008. groupJson.islock == 2,
  11009. }"
  11010. ><span
  11011. class="updateChairBtn"
  11012. @click="
  11013. updateGroupChair(
  11014. groupStudent[toolindex][gindex] &&
  11015. groupStudent[toolindex][gindex][2]
  11016. )
  11017. "
  11018. >修改</span
  11019. ></span
  11020. ><span>{{
  11021. groupStudent[toolindex][gindex] &&
  11022. groupStudent[toolindex][gindex][2]
  11023. ? groupStudent[toolindex][gindex] &&
  11024. groupStudent[toolindex][gindex][2].name
  11025. : "空位置"
  11026. }}</span>
  11027. </div>
  11028. <div v-if="groupJson.number > 6">
  11029. <span
  11030. :class="{
  11031. isChair:
  11032. groupStudent[toolindex][gindex] &&
  11033. groupStudent[toolindex][gindex][6],
  11034. updateChair:
  11035. courseDetail.userid == userid &&
  11036. groupStudent[toolindex][gindex] &&
  11037. groupStudent[toolindex][gindex][6] &&
  11038. groupJson.islock == 2,
  11039. }"
  11040. ><span
  11041. class="updateChairBtn"
  11042. @click="
  11043. updateGroupChair(
  11044. groupStudent[toolindex][gindex] &&
  11045. groupStudent[toolindex][gindex][6]
  11046. )
  11047. "
  11048. >修改</span
  11049. ></span
  11050. ><span>{{
  11051. groupStudent[toolindex][gindex] &&
  11052. groupStudent[toolindex][gindex][6]
  11053. ? groupStudent[toolindex][gindex] &&
  11054. groupStudent[toolindex][gindex][6].name
  11055. : "空位置"
  11056. }}</span>
  11057. </div>
  11058. </div>
  11059. <div class="g_d_group_table">
  11060. <div>
  11061. {{ g.name }}
  11062. </div>
  11063. <div>
  11064. <div
  11065. v-if="
  11066. courseDetail.userid == userid && groupJson.islock == 2
  11067. "
  11068. @click="deleteGroupChair(gindex)"
  11069. >
  11070. 移除组员
  11071. </div>
  11072. <div
  11073. @click="selectGroup(gindex)"
  11074. v-else-if="
  11075. groupStudentUid[toolindex] &&
  11076. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11077. "
  11078. >
  11079. 加入分组
  11080. </div>
  11081. <div
  11082. @click="
  11083. exitGroup(
  11084. groupStudent[toolindex][gindex] &&
  11085. groupStudent[toolindex][gindex][
  11086. groupStudentUid[toolindex][gindex].indexOf(userid)
  11087. ].id
  11088. )
  11089. "
  11090. v-else-if="
  11091. groupStudentUid[toolindex] &&
  11092. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11093. "
  11094. >
  11095. 退出分组
  11096. </div>
  11097. </div>
  11098. </div>
  11099. <div class="g_d_group_chair2">
  11100. <div v-if="groupJson.number > 3">
  11101. <span
  11102. :class="{
  11103. isChair:
  11104. groupStudent[toolindex][gindex] &&
  11105. groupStudent[toolindex][gindex][3],
  11106. updateChair:
  11107. courseDetail.userid == userid &&
  11108. groupStudent[toolindex][gindex] &&
  11109. groupStudent[toolindex][gindex][3] &&
  11110. groupJson.islock == 2,
  11111. }"
  11112. ><span
  11113. class="updateChairBtn"
  11114. @click="
  11115. updateGroupChair(
  11116. groupStudent[toolindex][gindex] &&
  11117. groupStudent[toolindex][gindex][3]
  11118. )
  11119. "
  11120. >修改</span
  11121. ></span
  11122. ><span>{{
  11123. groupStudent[toolindex][gindex] &&
  11124. groupStudent[toolindex][gindex][3]
  11125. ? groupStudent[toolindex][gindex] &&
  11126. groupStudent[toolindex][gindex][3].name
  11127. : "空位置"
  11128. }}</span>
  11129. </div>
  11130. <div v-if="groupJson.number > 7">
  11131. <span
  11132. :class="{
  11133. isChair:
  11134. groupStudent[toolindex][gindex] &&
  11135. groupStudent[toolindex][gindex][7],
  11136. updateChair:
  11137. courseDetail.userid == userid &&
  11138. groupStudent[toolindex][gindex] &&
  11139. groupStudent[toolindex][gindex][7] &&
  11140. groupJson.islock == 2,
  11141. }"
  11142. ><span
  11143. class="updateChairBtn"
  11144. @click="
  11145. updateGroupChair(
  11146. groupStudent[toolindex][gindex] &&
  11147. groupStudent[toolindex][gindex][7]
  11148. )
  11149. "
  11150. >修改</span
  11151. ></span
  11152. ><span>{{
  11153. groupStudent[toolindex][gindex] &&
  11154. groupStudent[toolindex][gindex][7]
  11155. ? groupStudent[toolindex][gindex] &&
  11156. groupStudent[toolindex][gindex][7].name
  11157. : "空位置"
  11158. }}</span>
  11159. </div>
  11160. </div>
  11161. </div>
  11162. <div class="g_d_group_chair">
  11163. <div v-if="groupJson.number > 1">
  11164. <span
  11165. :class="{
  11166. isChair:
  11167. groupStudent[toolindex][gindex] &&
  11168. groupStudent[toolindex][gindex][1],
  11169. updateChair:
  11170. courseDetail.userid == userid &&
  11171. groupStudent[toolindex][gindex] &&
  11172. groupStudent[toolindex][gindex][1] &&
  11173. groupJson.islock == 2,
  11174. }"
  11175. ><span
  11176. class="updateChairBtn"
  11177. @click="
  11178. updateGroupChair(
  11179. groupStudent[toolindex][gindex] &&
  11180. groupStudent[toolindex][gindex][1]
  11181. )
  11182. "
  11183. >修改</span
  11184. ></span
  11185. ><span>{{
  11186. groupStudent[toolindex][gindex] &&
  11187. groupStudent[toolindex][gindex][1]
  11188. ? groupStudent[toolindex][gindex] &&
  11189. groupStudent[toolindex][gindex][1].name
  11190. : "空位置"
  11191. }}</span>
  11192. </div>
  11193. <div v-if="groupJson.number > 5">
  11194. <span
  11195. :class="{
  11196. isChair:
  11197. groupStudent[toolindex][gindex] &&
  11198. groupStudent[toolindex][gindex][5],
  11199. updateChair:
  11200. courseDetail.userid == userid &&
  11201. groupStudent[toolindex][gindex] &&
  11202. groupStudent[toolindex][gindex][5] &&
  11203. groupJson.islock == 2,
  11204. }"
  11205. ><span
  11206. class="updateChairBtn"
  11207. @click="
  11208. updateGroupChair(
  11209. groupStudent[toolindex][gindex] &&
  11210. groupStudent[toolindex][gindex][5]
  11211. )
  11212. "
  11213. >修改</span
  11214. ></span
  11215. ><span>{{
  11216. groupStudent[toolindex][gindex] &&
  11217. groupStudent[toolindex][gindex][5]
  11218. ? groupStudent[toolindex][gindex] &&
  11219. groupStudent[toolindex][gindex][5].name
  11220. : "空位置"
  11221. }}</span>
  11222. </div>
  11223. <div v-if="groupJson.number > 9">
  11224. <span
  11225. :class="{
  11226. isChair:
  11227. groupStudent[toolindex][gindex] &&
  11228. groupStudent[toolindex][gindex][9],
  11229. updateChair:
  11230. courseDetail.userid == userid &&
  11231. groupStudent[toolindex][gindex] &&
  11232. groupStudent[toolindex][gindex][9] &&
  11233. groupJson.islock == 2,
  11234. }"
  11235. ><span
  11236. class="updateChairBtn"
  11237. @click="
  11238. updateGroupChair(
  11239. groupStudent[toolindex][gindex] &&
  11240. groupStudent[toolindex][gindex][9]
  11241. )
  11242. "
  11243. >修改</span
  11244. ></span
  11245. ><span>{{
  11246. groupStudent[toolindex][gindex] &&
  11247. groupStudent[toolindex][gindex][9]
  11248. ? groupStudent[toolindex][gindex] &&
  11249. groupStudent[toolindex][gindex][9].name
  11250. : "空位置"
  11251. }}</span>
  11252. </div>
  11253. </div>
  11254. </div>
  11255. </div>
  11256. </div>
  11257. </div>
  11258. <span slot="footer" class="dialog-footer">
  11259. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11260. </span>
  11261. </el-dialog>
  11262. <el-dialog
  11263. title="分组设置"
  11264. :visible.sync="dialogVisibleGroup2"
  11265. :append-to-body="true"
  11266. width="650px"
  11267. :before-close="handleClose"
  11268. class="dialog_diy"
  11269. >
  11270. <div class="groupBox">
  11271. <div v-if="groupJson2.group" class="groupContent">
  11272. <div class="groupTitle">请设置小组数量</div>
  11273. <div
  11274. v-for="(item, index) in groupJson2.group"
  11275. :key="index"
  11276. class="groupName"
  11277. >
  11278. <span class="groupn">组{{ index + 1 }}名称:</span>
  11279. <el-input
  11280. v-model="item.name"
  11281. placeholder="请输入名称..."
  11282. style="width: 250px"
  11283. ></el-input>
  11284. <!-- <div class="groupBtn">
  11285. <el-button type="primary" size="small" @click="addGroup(index)">
  11286. 添加</el-button>
  11287. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11288. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11289. </div> -->
  11290. </div>
  11291. </div>
  11292. <div class="groupContent">
  11293. <div class="groupTitle">请设置每组人数数量</div>
  11294. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11295. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11296. <el-input-number
  11297. v-model="groupJson2.number"
  11298. :controls="false"
  11299. :min="2"
  11300. :max="10"
  11301. placeholder="2-10人以内"
  11302. ></el-input-number>
  11303. </div>
  11304. </div>
  11305. <span slot="footer" class="dialog-footer">
  11306. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11307. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11308. </span>
  11309. </el-dialog>
  11310. <el-dialog
  11311. title="作业提交"
  11312. :visible.sync="dialogVisibleGroupWork"
  11313. :append-to-body="true"
  11314. width="500px"
  11315. :before-close="handleClose"
  11316. class="dialog_change"
  11317. >
  11318. <div class="marginT">
  11319. <div>上传文件</div>
  11320. <div
  11321. class="chapter_add"
  11322. @click="addImg($event)"
  11323. v-if="studyJuri[0].cover.length == 0"
  11324. >
  11325. <div class="up_photo">
  11326. <img src="../../assets/icon/uploadImg.png" alt />
  11327. </div>
  11328. <!-- <input
  11329. type="file"
  11330. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11331. style="display: none"
  11332. @change="beforeUpload1($event, 1)"
  11333. /> -->
  11334. <input
  11335. type="file"
  11336. accept="*"
  11337. style="display: none"
  11338. @change="beforeUpload1($event, 1)"
  11339. />
  11340. </div>
  11341. <!-- capture="camera" -->
  11342. <div
  11343. class="chapter_add"
  11344. style="
  11345. display: flex;
  11346. width: 100%;
  11347. flex-direction: row;
  11348. flex-wrap: wrap;
  11349. justify-content: flex-start;
  11350. padding: 15px 0;
  11351. "
  11352. v-if="studyJuri[0].cover.length > 0"
  11353. >
  11354. <div class="upCover">
  11355. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11356. <img :src="word" alt v-else-if="fileType == 1" />
  11357. <img :src="video" alt v-else-if="fileType == 2" />
  11358. <img :src="word2" alt v-else-if="fileType == 3" />
  11359. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11360. <div class="deleteWord" @click="clean(1)">
  11361. <img src="../../assets/icon/deleteWorks.png" alt />
  11362. </div>
  11363. </div>
  11364. </div>
  11365. </div>
  11366. <div
  11367. class="upload_send"
  11368. @click="addCourseWorks2(taskCount)"
  11369. v-if="!proVisible"
  11370. >
  11371. 提交
  11372. </div>
  11373. </el-dialog>
  11374. <el-dialog
  11375. title="修改分组"
  11376. :visible.sync="dialogVisibleUpdateGroup"
  11377. :append-to-body="true"
  11378. width="350px"
  11379. :before-close="handleClose"
  11380. class="dialog_diy"
  11381. >
  11382. <div>
  11383. <h2>
  11384. {{ this.updateGroupUser.name }}
  11385. </h2>
  11386. <div style="color: rgb(171 171 171); margin-top: 10px">
  11387. 请选择要进入的分组
  11388. </div>
  11389. <el-radio-group v-model="checkChair">
  11390. <el-radio
  11391. style="display: block; margin-top: 20px"
  11392. v-for="(item, index) in updateGroupArray"
  11393. :label="item.label"
  11394. :key="index"
  11395. >{{ item.name }}</el-radio
  11396. >
  11397. </el-radio-group>
  11398. </div>
  11399. <span slot="footer" class="dialog-footer">
  11400. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11401. <el-button type="primary" @click="updateChair">确定</el-button>
  11402. </span>
  11403. </el-dialog>
  11404. <el-dialog
  11405. title="移除组员"
  11406. :visible.sync="dialogVisibleDeleteGroup"
  11407. :append-to-body="true"
  11408. width="350px"
  11409. :before-close="handleClose"
  11410. class="dialog_diy"
  11411. >
  11412. <div>
  11413. <h2>
  11414. {{ this.deleteGroupArray.name }}
  11415. </h2>
  11416. <div style="color: rgb(171 171 171); margin-top: 10px">
  11417. 请选择要删除的组员
  11418. </div>
  11419. <el-checkbox-group v-model="checkDeleteGroup">
  11420. <el-checkbox
  11421. style="display: block; margin-top: 20px"
  11422. v-for="(item, index) in deleteGroupUser"
  11423. :label="item.userid"
  11424. :key="index"
  11425. >{{ item.name }}</el-checkbox
  11426. >
  11427. </el-checkbox-group>
  11428. </div>
  11429. <span slot="footer" class="dialog-footer">
  11430. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11431. <el-button type="primary" @click="deleteChair">确定</el-button>
  11432. </span>
  11433. </el-dialog>
  11434. <el-dialog
  11435. title="批量上传"
  11436. :visible.sync="dialogVisiblePl"
  11437. :append-to-body="true"
  11438. width="700px"
  11439. :before-close="handleClose"
  11440. class="dialog_change"
  11441. >
  11442. <div class="marginT">
  11443. <div class="plworkBox">
  11444. <div
  11445. class="chapter_add"
  11446. style="
  11447. display: flex;
  11448. width: 150px;
  11449. flex-direction: row;
  11450. flex-wrap: wrap;
  11451. justify-content: flex-start;
  11452. margin: 0 10px 10px 0;
  11453. "
  11454. v-for="(item, index) in plworkFile"
  11455. :key="index"
  11456. >
  11457. <div class="upCover2">
  11458. <img
  11459. :src="item.url"
  11460. alt
  11461. v-if="item.fileType == 1"
  11462. @click="previewImg(item.url)"
  11463. />
  11464. <img :src="word" alt v-else-if="item.fileType == 4" />
  11465. <img :src="video" alt v-else />
  11466. <!-- <span class="picName">{{ item.name }}</span> -->
  11467. <!-- <el-input
  11468. v-model="item.username"
  11469. placeholder="请输入学生名字"
  11470. style="margin-top: 10px"
  11471. ></el-input> -->
  11472. <div
  11473. class="pl_select_box"
  11474. @click="
  11475. getUpdateMore(true, checkUpload(), item.username, index)
  11476. "
  11477. >
  11478. {{ getSName(item.username) }}
  11479. </div>
  11480. <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  11481. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  11482. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  11483. </el-option>
  11484. </el-select> -->
  11485. <div class="deleteWord" @click="clean2(index)">
  11486. <img src="../../assets/icon/deleteWorks.png" alt />
  11487. </div>
  11488. </div>
  11489. </div>
  11490. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11491. <div class="up_photo2">
  11492. <img src="../../assets/icon/plwork.png" alt />
  11493. <span>点击上传文件</span>
  11494. </div>
  11495. <input
  11496. type="file"
  11497. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11498. multiple="multiple"
  11499. style="display: none"
  11500. @change="beforeUpload3($event, 6)"
  11501. />
  11502. </div>
  11503. </div>
  11504. </div>
  11505. <!-- capture="camera" -->
  11506. <div
  11507. class="upload_send"
  11508. @click="addCourseWorksPl(taskCount)"
  11509. v-if="!proVisible2"
  11510. >
  11511. 提交
  11512. </div>
  11513. </el-dialog>
  11514. <el-dialog
  11515. title="修改名称"
  11516. :visible.sync="dialogVisibleSname"
  11517. width="500px"
  11518. :before-close="handleClose"
  11519. class="dialog_diy"
  11520. center
  11521. >
  11522. <div
  11523. style="
  11524. text-align: center;
  11525. display: flex;
  11526. align-items: center;
  11527. justify-content: center;
  11528. "
  11529. >
  11530. <span class="tian1">名称</span>
  11531. <div
  11532. class="pl_select_box"
  11533. style="margin-left: 10px; width: 200px"
  11534. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11535. >
  11536. {{ getSName(worksSName) }}
  11537. </div>
  11538. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11539. placeholder="请选择学生">
  11540. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11541. :value="item.userid">
  11542. </el-option>
  11543. </el-select> -->
  11544. <!-- <el-input
  11545. v-model="worksSName"
  11546. style="width: 250px; margin: 15px 0px"
  11547. ></el-input> -->
  11548. </div>
  11549. <span slot="footer" class="dialog-footer">
  11550. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11551. <el-button type="primary" @click="updateName">确 定</el-button>
  11552. </span>
  11553. </el-dialog>
  11554. <interVideo
  11555. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11556. :videoJson="videoJson"
  11557. :userid="userid"
  11558. :id="id"
  11559. :courseType="courseType"
  11560. :taskCount="taskCount"
  11561. :toolindex="toolindex"
  11562. ></interVideo>
  11563. <UpdateMore
  11564. :dialogVisibleMember.sync="dialogVisibleMember"
  11565. :cList="uploadStudentJuri"
  11566. :userid="userid"
  11567. :searchTN="worksSName2"
  11568. @setPlname="setPlname"
  11569. ></UpdateMore>
  11570. <wordCloud
  11571. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11572. :data="wordCloudData"
  11573. ></wordCloud>
  11574. <el-dialog
  11575. title="挑人"
  11576. :visible.sync="dialogVisiblePickPeople"
  11577. width="650px"
  11578. :before-close="handleClose"
  11579. class="dialog_diy"
  11580. center
  11581. >
  11582. <div class="pick_box">
  11583. <div
  11584. class="noWorksName"
  11585. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11586. v-for="(item, index) in uploadStudentJuri"
  11587. :key="index"
  11588. @click="pickStudent(item)"
  11589. >
  11590. {{ item.name }}
  11591. </div>
  11592. </div>
  11593. </el-dialog>
  11594. </div>
  11595. </template>
  11596. <script>
  11597. import "../../common/aws-sdk-2.235.1.min.js";
  11598. // import pdf from "../components/pdf3";
  11599. import pdf from "../components/vpdf";
  11600. import AskStatic from "../components/askStatic";
  11601. import AskStatic2 from "../components/askStatic2";
  11602. import AnswerData2 from "../components/answerData2";
  11603. import AnswerData from "../components/answerData";
  11604. import EditorBar from "../tools/wangEnduit.vue";
  11605. import Table from "../tools/table.vue";
  11606. import Time from "../tools/time.vue";
  11607. import Mind from "../tools/jsmind.vue";
  11608. import Sunburst from "../tools/sunburst";
  11609. import SeeBoard from "../tools/seeBoard";
  11610. import * as imageConversion from "image-conversion";
  11611. import Audio from "../components/audio.vue";
  11612. import ImgDraw from "../tools/imgDraw/imgDraw";
  11613. import { Empty } from "element-ui";
  11614. import RecordRTC from "recordrtc";
  11615. import interVideo from "../interVideo/index.vue";
  11616. import UpdateMore from "../updateMore/updateMore.vue";
  11617. import wordCloud from "../wordCloud/index.vue";
  11618. export default {
  11619. components: {
  11620. EditorBar,
  11621. Time,
  11622. pdf,
  11623. AskStatic,
  11624. AskStatic2,
  11625. Mind,
  11626. Sunburst,
  11627. SeeBoard,
  11628. AnswerData2,
  11629. AnswerData,
  11630. Audio,
  11631. ImgDraw,
  11632. Table,
  11633. interVideo,
  11634. UpdateMore,
  11635. wordCloud,
  11636. },
  11637. data() {
  11638. return {
  11639. bg: null,
  11640. drawShow: false,
  11641. dialogVisible: false,
  11642. dialogVisiblePl: false,
  11643. commentDialogVisible: false,
  11644. videoVisible: false,
  11645. isStar: false,
  11646. studentEvalDialogVisible: false,
  11647. studentEvalDialogVisibleTeacher: false,
  11648. dialogVisibleSelect: false,
  11649. dialogVisibleSelectTeacher: false,
  11650. dialogVisibleScore: false,
  11651. dialogVisibleSentence: false,
  11652. dialogVisibleSentenceTeacher: false,
  11653. dialogVisibleSentence1: false,
  11654. dialogVisibleWorks: false,
  11655. answerDialogVisibleTeacher: false,
  11656. dialogVisibleTable: false,
  11657. dialogVisibleTableTeacher: false,
  11658. dialogVisibleWord: false,
  11659. dialogVisibleWordTeacher: false,
  11660. dialogVisibleTable2: false,
  11661. dialogVisibleTable3: false,
  11662. dialogVisibleGroupWork: false,
  11663. dialogVisibleUpdateGroup: false,
  11664. dialogVisibleDeleteGroup: false,
  11665. dialogVisibleSname: false,
  11666. dialogVisibleVideo: false,
  11667. dialogVisiblePickPeople: false,
  11668. worksSName: "",
  11669. classJuri: [],
  11670. uploadStudentJuri: [],
  11671. uploadCid: "",
  11672. snameWid: "",
  11673. sStudent: {},
  11674. sTool: "",
  11675. bzText: "",
  11676. commentDetail: [],
  11677. selectAnswer: [],
  11678. videoDetail: {},
  11679. selectJson: {},
  11680. eScore: { eBzText: "", eStar: [] },
  11681. id: this.$route.query.courseId,
  11682. userid: this.$route.query.userid,
  11683. classId: this.$route.query.cid,
  11684. // courseTypeLine: this.$route.query.type,
  11685. oid: this.$route.query.oid,
  11686. org: this.$route.query.org,
  11687. tType: this.$route.query.tType,
  11688. courseType: this.$route.query.type,
  11689. screenType: this.$route.query.screenType,
  11690. tcid2: this.$route.query.tcid,
  11691. tcid: "",
  11692. pptImgUrl: "",
  11693. pptImgUrl1: "",
  11694. commentText: "",
  11695. full: false,
  11696. sIsOpen: false,
  11697. IsLookOpen: false,
  11698. IsFollow: false,
  11699. pzDialog: false,
  11700. contentDialog: false,
  11701. mlDialog: false,
  11702. type: 1,
  11703. isClose: 0,
  11704. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11705. sentenceList1: [],
  11706. tableJson: [],
  11707. wordJson: [],
  11708. vedio: [],
  11709. text: [],
  11710. textList: [],
  11711. line: [],
  11712. lineList: [],
  11713. chapTools: [],
  11714. chapToolList: [],
  11715. file: [],
  11716. fileC: [],
  11717. vedioTime: [],
  11718. upToolImg: "",
  11719. preTime: 0,
  11720. rateList: {
  11721. ca: 0,
  11722. },
  11723. rateParams: [],
  11724. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11725. studyJuri: [
  11726. {
  11727. content: "",
  11728. cover: [],
  11729. upVedio: [],
  11730. upFile: [],
  11731. },
  11732. ],
  11733. plworkFile: [],
  11734. mr: require("../../assets/vedioPic.png"),
  11735. word: require("../../assets/icon/isWord.png"),
  11736. word2: require("../../assets/icon/word2.png"),
  11737. video: require("../../assets/icon/isVideo.png"),
  11738. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11739. likes: require("../../assets/icon/comment/likes.png"),
  11740. scoreImg: require("../../assets/score.png"),
  11741. courseDetail: {},
  11742. isSelect: false,
  11743. chapInfo: [],
  11744. chapInfoList: [],
  11745. taskCount: 0,
  11746. imgList: [],
  11747. noImgList: [],
  11748. pzList: [],
  11749. PlTextList: [
  11750. "Excellent!",
  11751. "nice!",
  11752. "很有创意!",
  11753. "还不错哦~",
  11754. "继续努力哦~",
  11755. ],
  11756. isClickNav: "",
  11757. navId: "",
  11758. playerOptions: {
  11759. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11760. autoplay: false, //如果true,浏览器准备好时开始回放。
  11761. muted: false, // 默认情况下将会消除任何音频。
  11762. loop: false, // 导致视频一结束就重新开始。
  11763. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11764. language: "zh-CN",
  11765. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11766. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11767. sources: [
  11768. {
  11769. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11770. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11771. },
  11772. ],
  11773. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11774. // poster: dataRes.imgUrl, //你的封面地址
  11775. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11776. controlBar: {
  11777. timeDivider: true, //当前时间和持续时间的分隔符
  11778. durationDisplay: true, //显示持续时间
  11779. remainingTimeDisplay: false, //是否显示剩余时间功能
  11780. fullscreenToggle: true, //全屏按钮
  11781. },
  11782. },
  11783. playerOptions1: {
  11784. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11785. autoplay: false, //如果true,浏览器准备好时开始回放。
  11786. muted: false, // 默认情况下将会消除任何音频。
  11787. loop: false, // 导致视频一结束就重新开始。
  11788. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11789. language: "zh-CN",
  11790. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11791. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11792. sources: [
  11793. {
  11794. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11795. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11796. },
  11797. ],
  11798. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11799. // poster: dataRes.imgUrl, //你的封面地址
  11800. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11801. controlBar: {
  11802. timeDivider: true, //当前时间和持续时间的分隔符
  11803. durationDisplay: true, //显示持续时间
  11804. remainingTimeDisplay: false, //是否显示剩余时间功能
  11805. fullscreenToggle: true, //全屏按钮
  11806. },
  11807. },
  11808. playerO: {},
  11809. noneBtnImg: false,
  11810. proVisible: false,
  11811. proVisible2: false,
  11812. progress: 0,
  11813. isFinishSize: 0,
  11814. isAllSize: 0,
  11815. questionAnswer: "",
  11816. answerQ: "", //问答标题
  11817. rateJson: [],
  11818. wbCount: 0,
  11819. wordCount: 0,
  11820. mindCount: 0,
  11821. askCount: 0,
  11822. noteCount: 0,
  11823. mindNetWorkCount: 0,
  11824. libraryCount: 0,
  11825. workCount: 0,
  11826. timeCount: 0,
  11827. answerCount: 0,
  11828. trainCount: 0,
  11829. evalCount: 0,
  11830. dialogImageUrl: "",
  11831. pictureDialog: false,
  11832. toolTypeList: [],
  11833. dialogVisible1: false,
  11834. dialogVisible2: false,
  11835. dialogVisible3: false,
  11836. dialogVisible6: false,
  11837. dialogVisible4: false,
  11838. isNoHomeWork: false,
  11839. dialogVisible5: false,
  11840. dialogVisible5Teacher: false,
  11841. dialogVisibleChoice: false,
  11842. dialogVisibleChoiceTeacher: false,
  11843. answerDialogVisible: false,
  11844. juriVisible: false,
  11845. timeDialogVisible: false,
  11846. radio: [],
  11847. isAsk: false,
  11848. askJson: {
  11849. askCount: 1,
  11850. askTitle: "",
  11851. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11852. },
  11853. testJson: {},
  11854. checkJson: [],
  11855. askList: [],
  11856. answerList: [],
  11857. navList: [],
  11858. addPzDialog: false,
  11859. ispzType: 1,
  11860. pzConText: "",
  11861. worksStudent: [],
  11862. worksStudent2: [],
  11863. worksTeacher: [],
  11864. isCloseList: [],
  11865. workStudent: [],
  11866. groupStudent: [],
  11867. groupStudentUid: [],
  11868. noWorksS: [],
  11869. isWorksS: [],
  11870. noWorksStudent: [],
  11871. toolindex: 0,
  11872. groupIndex: 0,
  11873. workTypeB: false,
  11874. workTypeC: false,
  11875. isAnswer: false,
  11876. timer: null,
  11877. opertimer: null,
  11878. showType: 0,
  11879. fileType: 0,
  11880. showPDF: false,
  11881. noteName: "",
  11882. evaJuri: [],
  11883. evalua: "",
  11884. eTitle: "",
  11885. eName: "",
  11886. eJson: {},
  11887. fid: "", //一级
  11888. sid: "", //二级
  11889. tid: "", //二级
  11890. typeMode: 1,
  11891. eJSONNum: 0,
  11892. Etype: 1,
  11893. data: {
  11894. meta: {
  11895. name: "example",
  11896. author: "dd@163.com",
  11897. version: "0.2",
  11898. },
  11899. format: "node_array",
  11900. data: [{ id: "root", isroot: true, topic: "" }],
  11901. },
  11902. fullDialogVisible: false,
  11903. fulltype: "",
  11904. fullUrl: "",
  11905. commentIndexJson: {},
  11906. Stbodywidth: 0,
  11907. pzType: 1,
  11908. wScore: 0,
  11909. scoreDetail: "",
  11910. videoStart: false,
  11911. recorder: null,
  11912. groupJson: {},
  11913. groupJson2: {},
  11914. dialogVisibleGroup: false,
  11915. dialogVisibleGroup2: false,
  11916. updateGroupArray: [],
  11917. updateGroupUser: {},
  11918. deleteGroupUser: [],
  11919. deleteGroupArray: {},
  11920. checkChair: "",
  11921. checkDeleteGroup: [],
  11922. inviteCode: "",
  11923. courseGroupStudent: [],
  11924. courseGroupStudentUid: [],
  11925. courseGroup: {},
  11926. isGroup: false,
  11927. toolIndex: null,
  11928. tool: {},
  11929. isWorkTool: [
  11930. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11931. ], //, 40
  11932. videoJson: {},
  11933. toolType: 0,
  11934. checktoolArray: [],
  11935. vChapterData: [],
  11936. isUpdateToolDetail: false,
  11937. updateToolDetailInner: "",
  11938. plIndex: "",
  11939. worksSName2: "",
  11940. worksSid: "",
  11941. dialogVisibleWordCloud: false,
  11942. wordCloudData: [],
  11943. isPickStudent: [],
  11944. };
  11945. },
  11946. methods: {
  11947. jump() {
  11948. window.parent.postMessage({ tools: "43" }, "*");
  11949. },
  11950. getUpdateMore(f, checkboxList, searchTN, index) {
  11951. this.dialogVisibleMember = f;
  11952. this.checkboxList = checkboxList;
  11953. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11954. this.plIndex = index;
  11955. },
  11956. setPlname(a) {
  11957. if (this.plworkFile.length) {
  11958. this.plworkFile[this.plIndex].username = a;
  11959. } else {
  11960. this.worksSName = a;
  11961. }
  11962. this.dialogVisibleMember = false;
  11963. },
  11964. previewImg(url) {
  11965. this.$hevueImgPreview(url);
  11966. },
  11967. checkImg(list) {
  11968. if (!list.length) {
  11969. return;
  11970. }
  11971. this.$hevueImgPreview({
  11972. multiple: true, // 开启多图预览模式
  11973. imgList: list, // 需要预览的多图数组
  11974. });
  11975. },
  11976. change(val) {
  11977. console.log(val);
  11978. },
  11979. goTo(path) {
  11980. this.$router.push(path);
  11981. },
  11982. handlePictureCardPreview(url) {
  11983. this.dialogImageUrl = url;
  11984. this.pictureDialog = true;
  11985. },
  11986. clean(type) {
  11987. if (type == 1) {
  11988. this.studyJuri[0].cover.splice(0, 1);
  11989. } else if (type == 2) {
  11990. this.studyJuri[0].upVedio.splice(0, 1);
  11991. } else {
  11992. this.studyJuri[0].upFile.splice(0, 1);
  11993. }
  11994. },
  11995. clean2(index) {
  11996. this.plworkFile.splice(index, 1);
  11997. },
  11998. handleClose(done) {
  11999. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12000. this.videoDetail.sources[0].src = "";
  12001. }
  12002. this.commentIndexJson = {};
  12003. done();
  12004. },
  12005. fullTools() {
  12006. this.full = !this.full;
  12007. },
  12008. imgChange(file, fileList, type) {
  12009. if (type == 1) {
  12010. var _tmp = this.studyJuri[0].cover;
  12011. } else if (type == 2) {
  12012. var _tmp = this.studyJuri[0].upVedio;
  12013. } else {
  12014. var _tmp = this.studyJuri[0].upFile;
  12015. }
  12016. this.noneBtnImg = _tmp.length >= 1;
  12017. },
  12018. setContent(bool) {
  12019. this.contentDialog = bool;
  12020. if (bool && this.mlDialog) {
  12021. document.querySelector(".workd_media").style.height = "650px";
  12022. } else {
  12023. document.querySelector(".workd_media").style.height = "auto";
  12024. }
  12025. },
  12026. setContent2(bool) {
  12027. this.mlDialog = bool;
  12028. if (bool && this.contentDialog) {
  12029. document.querySelector(".workd_media").style.height = "650px";
  12030. } else {
  12031. document.querySelector(".workd_media").style.height = "auto";
  12032. }
  12033. },
  12034. addImg(e) {
  12035. var el = e.currentTarget;
  12036. // this.$message.success('触发上传')
  12037. el.getElementsByTagName("input")[0].click();
  12038. e.target.value = "";
  12039. },
  12040. addSelectAnswer() {
  12041. let params = [
  12042. {
  12043. uid: this.userid,
  12044. cid: this.id,
  12045. stage: this.courseType,
  12046. task: this.taskCount,
  12047. tool: this.toolindex,
  12048. content: this.selectAnswer.answer,
  12049. type: 7,
  12050. },
  12051. ];
  12052. this.ajax
  12053. .post(this.$store.state.api + "addCourseWorks", params)
  12054. .then((res) => {
  12055. this.$message({
  12056. message: "提交成功",
  12057. type: "success",
  12058. });
  12059. this.dialogVisibleSelect = false;
  12060. // this.selectAnswer = {};
  12061. this.selectSWorks();
  12062. this.selectStudent();
  12063. })
  12064. .catch((err) => {
  12065. this.$message.error("提交失败");
  12066. console.error(err);
  12067. });
  12068. },
  12069. addSelectAnswerTeacher() {
  12070. let params = [
  12071. {
  12072. uid: this.sStudent.userid,
  12073. cid: this.id,
  12074. stage: this.courseType,
  12075. task: this.taskCount,
  12076. tool: this.toolindex,
  12077. content: this.selectAnswer.answer,
  12078. type: 7,
  12079. },
  12080. ];
  12081. this.ajax
  12082. .post(this.$store.state.api + "addCourseWorks", params)
  12083. .then((res) => {
  12084. this.$message({
  12085. message: "提交成功",
  12086. type: "success",
  12087. });
  12088. this.dialogVisibleSelectTeacher = false;
  12089. // this.selectAnswer = {};
  12090. this.selectSWorks();
  12091. this.selectStudent();
  12092. })
  12093. .catch((err) => {
  12094. this.$message.error("提交失败");
  12095. console.error(err);
  12096. });
  12097. },
  12098. addSenWorks() {
  12099. for (var i = 0; i < this.sentenceList.length; i++) {
  12100. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12101. if (
  12102. this.sentenceList[i].chooseSenList[j] == undefined ||
  12103. this.sentenceList[i].chooseSenList[j] == ""
  12104. ) {
  12105. this.$message.error("请将答案填写完整!");
  12106. return;
  12107. }
  12108. }
  12109. }
  12110. let params = [
  12111. {
  12112. uid: this.userid,
  12113. cid: this.id,
  12114. stage: this.courseType,
  12115. task: this.taskCount,
  12116. tool: this.toolindex,
  12117. content: JSON.stringify(this.sentenceList),
  12118. type: 9,
  12119. },
  12120. ];
  12121. this.ajax
  12122. .post(this.$store.state.api + "addCourseWorks", params)
  12123. .then((res) => {
  12124. this.$message({
  12125. message: "提交成功",
  12126. type: "success",
  12127. });
  12128. this.dialogVisibleSentence = false;
  12129. // this.selectAnswer = {};
  12130. this.selectSWorks();
  12131. this.selectStudent();
  12132. })
  12133. .catch((err) => {
  12134. this.$message.error("提交失败");
  12135. console.error(err);
  12136. });
  12137. },
  12138. addSenWorksTeacher() {
  12139. for (var i = 0; i < this.sentenceList.length; i++) {
  12140. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12141. if (
  12142. this.sentenceList[i].chooseSenList[j] == undefined ||
  12143. this.sentenceList[i].chooseSenList[j] == ""
  12144. ) {
  12145. this.$message.error("请将答案填写完整!");
  12146. return;
  12147. }
  12148. }
  12149. }
  12150. let params = [
  12151. {
  12152. uid: this.sStudent.userid,
  12153. cid: this.id,
  12154. stage: this.courseType,
  12155. task: this.taskCount,
  12156. tool: this.toolindex,
  12157. content: JSON.stringify(this.sentenceList),
  12158. type: 9,
  12159. },
  12160. ];
  12161. this.ajax
  12162. .post(this.$store.state.api + "addCourseWorks", params)
  12163. .then((res) => {
  12164. this.$message({
  12165. message: "提交成功",
  12166. type: "success",
  12167. });
  12168. this.dialogVisibleSentenceTeacher = false;
  12169. // this.selectAnswer = {};
  12170. this.selectSWorks();
  12171. this.selectStudent();
  12172. })
  12173. .catch((err) => {
  12174. this.$message.error("提交失败");
  12175. console.error(err);
  12176. });
  12177. },
  12178. addTableWorks() {
  12179. let params = [
  12180. {
  12181. uid: this.userid,
  12182. cid: this.id,
  12183. stage: this.courseType,
  12184. task: this.taskCount,
  12185. tool: this.toolindex,
  12186. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12187. type: 10,
  12188. },
  12189. ];
  12190. this.ajax
  12191. .post(this.$store.state.api + "addCourseWorks", params)
  12192. .then((res) => {
  12193. this.$message({
  12194. message: "提交成功",
  12195. type: "success",
  12196. });
  12197. this.dialogVisibleTable = false;
  12198. // this.selectAnswer = {};
  12199. this.selectSWorks();
  12200. this.selectStudent();
  12201. })
  12202. .catch((err) => {
  12203. this.$message.error("提交失败");
  12204. console.error(err);
  12205. });
  12206. },
  12207. addTableWorksTeacher() {
  12208. let params = [
  12209. {
  12210. uid: this.sStudent.userid,
  12211. cid: this.id,
  12212. stage: this.courseType,
  12213. task: this.taskCount,
  12214. tool: this.toolindex,
  12215. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12216. type: 10,
  12217. },
  12218. ];
  12219. this.ajax
  12220. .post(this.$store.state.api + "addCourseWorks", params)
  12221. .then((res) => {
  12222. this.$message({
  12223. message: "提交成功",
  12224. type: "success",
  12225. });
  12226. this.dialogVisibleTableTeacher = false;
  12227. // this.selectAnswer = {};
  12228. this.selectSWorks();
  12229. this.selectStudent();
  12230. })
  12231. .catch((err) => {
  12232. this.$message.error("提交失败");
  12233. console.error(err);
  12234. });
  12235. },
  12236. addWordWorks() {
  12237. let params = [
  12238. {
  12239. uid: this.userid,
  12240. cid: this.id,
  12241. stage: this.courseType,
  12242. task: this.taskCount,
  12243. tool: this.toolindex,
  12244. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12245. type: 13,
  12246. atool: 52,
  12247. },
  12248. ];
  12249. console.log(params);
  12250. this.ajax
  12251. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12252. .then((res) => {
  12253. this.$message({
  12254. message: "提交成功",
  12255. type: "success",
  12256. });
  12257. this.dialogVisibleWord = false;
  12258. // this.selectAnswer = {};
  12259. this.selectSWorks();
  12260. this.selectStudent();
  12261. })
  12262. .catch((err) => {
  12263. this.$message.error("提交失败");
  12264. console.error(err);
  12265. });
  12266. },
  12267. addWordWorksTeacher() {
  12268. let params = [
  12269. {
  12270. uid: this.sStudent.userid,
  12271. cid: this.id,
  12272. stage: this.courseType,
  12273. task: this.taskCount,
  12274. tool: this.toolindex,
  12275. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12276. type: 13,
  12277. atool: 52,
  12278. },
  12279. ];
  12280. console.log(params);
  12281. this.ajax
  12282. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12283. .then((res) => {
  12284. this.$message({
  12285. message: "提交成功",
  12286. type: "success",
  12287. });
  12288. this.dialogVisibleWordTeacher = false;
  12289. // this.selectAnswer = {};
  12290. this.selectSWorks();
  12291. this.selectStudent();
  12292. })
  12293. .catch((err) => {
  12294. this.$message.error("提交失败");
  12295. console.error(err);
  12296. });
  12297. },
  12298. addCourseWorks(i) {
  12299. var typesql;
  12300. if (this.fileType === 0) {
  12301. typesql = 1;
  12302. } else if (this.fileType === 1) {
  12303. typesql = 4;
  12304. } else if (this.fileType === 2) {
  12305. typesql = 5;
  12306. } else if (this.fileType === 3) {
  12307. typesql = 12;
  12308. }
  12309. if (!this.studyJuri[0].cover[0].url) {
  12310. this.$message.error("请上传文件");
  12311. return;
  12312. }
  12313. let params = [
  12314. {
  12315. uid: this.userid,
  12316. cid: this.id,
  12317. stage: this.courseType,
  12318. task: i,
  12319. tool: this.toolindex,
  12320. content: this.studyJuri[0].cover[0].url,
  12321. type: typesql,
  12322. },
  12323. ];
  12324. this.ajax
  12325. .post(this.$store.state.api + "addCourseWorksR", params)
  12326. .then((res) => {
  12327. this.$message({
  12328. message: "提交成功",
  12329. type: "success",
  12330. });
  12331. this.studyJuri[0].cover = [];
  12332. this.dialogVisible = false;
  12333. this.getCourseDetail();
  12334. })
  12335. .catch((err) => {
  12336. this.$message.error("提交失败");
  12337. console.error(err);
  12338. });
  12339. },
  12340. addCourseWorksPl(i) {
  12341. let _files = this.plworkFile;
  12342. var c = 1;
  12343. for (var k = 0; k < _files.length; k++) {
  12344. if (!_files[k].username) {
  12345. c = 2;
  12346. }
  12347. }
  12348. if (c == 2) {
  12349. this.$message.error("请填写学生姓名");
  12350. return;
  12351. }
  12352. let params = [
  12353. {
  12354. ateacher: this.userid,
  12355. cid: this.id,
  12356. stage: this.courseType,
  12357. task: i,
  12358. tool: this.toolindex,
  12359. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12360. },
  12361. ];
  12362. this.ajax
  12363. .post(this.$store.state.api + "addCourseWorksPl", params)
  12364. .then((res) => {
  12365. this.$message({
  12366. message: "提交成功",
  12367. type: "success",
  12368. });
  12369. this.plworkFile = [];
  12370. this.dialogVisiblePl = false;
  12371. this.getCourseDetail();
  12372. })
  12373. .catch((err) => {
  12374. this.$message.error("提交失败");
  12375. console.error(err);
  12376. });
  12377. },
  12378. addCourseWorks2(i) {
  12379. var typesql;
  12380. if (this.fileType === 0) {
  12381. typesql = 0;
  12382. } else if (this.fileType === 1) {
  12383. typesql = 1;
  12384. } else if (this.fileType === 2) {
  12385. typesql = 3;
  12386. } else if (this.fileType === 3) {
  12387. typesql = 12;
  12388. }
  12389. if (!this.studyJuri[0].cover[0].url) {
  12390. this.$message.error("请上传文件");
  12391. return;
  12392. }
  12393. let params = [
  12394. {
  12395. uid: this.userid,
  12396. cid: this.id,
  12397. stage: this.courseType,
  12398. task: i,
  12399. tool: this.toolindex,
  12400. content: JSON.stringify({
  12401. type: typesql,
  12402. groupIndex: this.groupIndex,
  12403. url: this.studyJuri[0].cover[0].url,
  12404. }).replaceAll(/%/g, "%25"),
  12405. type: 11,
  12406. atool: 49,
  12407. text: "",
  12408. },
  12409. ];
  12410. this.ajax
  12411. .post(this.$store.state.api + "addCourseWorks5", params)
  12412. .then((res) => {
  12413. this.$message({
  12414. message: "提交成功",
  12415. type: "success",
  12416. });
  12417. this.studyJuri[0].cover = [];
  12418. this.dialogVisibleGroupWork = false;
  12419. this.getCourseDetail();
  12420. })
  12421. .catch((err) => {
  12422. this.$message.error("提交失败");
  12423. console.error(err);
  12424. });
  12425. },
  12426. addCourseWorksGong(i, data, tool) {
  12427. let params = [
  12428. {
  12429. uid: this.userid,
  12430. cid: this.id,
  12431. stage: this.courseType,
  12432. task: this.taskCount,
  12433. tool: i,
  12434. content: data,
  12435. type: 12,
  12436. atool: tool,
  12437. text: "",
  12438. },
  12439. ];
  12440. this.ajax
  12441. .post(this.$store.state.api + "addCourseWorks5", params)
  12442. .then((res) => {
  12443. this.$message({
  12444. message: "提交成功",
  12445. type: "success",
  12446. });
  12447. this.studyJuri[0].cover = [];
  12448. this.selectSWorks();
  12449. this.selectStudent();
  12450. })
  12451. .catch((err) => {
  12452. this.$message.error("提交失败");
  12453. console.error(err);
  12454. });
  12455. },
  12456. addCourseWorksGongTeacher(i, data, tool) {
  12457. let params = [
  12458. {
  12459. uid: this.sStudent.userid,
  12460. cid: this.id,
  12461. stage: this.courseType,
  12462. task: this.taskCount,
  12463. tool: i,
  12464. content: data,
  12465. type: 12,
  12466. atool: tool,
  12467. text: "",
  12468. },
  12469. ];
  12470. this.ajax
  12471. .post(this.$store.state.api + "addCourseWorks5", params)
  12472. .then((res) => {
  12473. this.$message({
  12474. message: "提交成功",
  12475. type: "success",
  12476. });
  12477. this.studyJuri[0].cover = [];
  12478. this.dialogVisibleWorks = false;
  12479. this.selectSWorks();
  12480. this.selectStudent();
  12481. })
  12482. .catch((err) => {
  12483. this.$message.error("提交失败");
  12484. console.error(err);
  12485. });
  12486. },
  12487. addCourseWorksGongPl(i, data, tool, type) {
  12488. let params = [
  12489. {
  12490. uid: this.sStudent.userid,
  12491. cid: this.id,
  12492. stage: this.courseType,
  12493. task: this.taskCount,
  12494. tool: i,
  12495. content: data,
  12496. type: type,
  12497. atool: tool,
  12498. text: "",
  12499. },
  12500. ];
  12501. this.ajax
  12502. .post(this.$store.state.api + "addCourseWorks5", params)
  12503. .then((res) => {
  12504. this.$message({
  12505. message: "提交成功",
  12506. type: "success",
  12507. });
  12508. this.studyJuri[0].cover = [];
  12509. this.dialogVisibleWorks = false;
  12510. this.selectSWorks();
  12511. this.selectStudent();
  12512. })
  12513. .catch((err) => {
  12514. this.$message.error("提交失败");
  12515. console.error(err);
  12516. });
  12517. },
  12518. addCourseWorksTeacher(i) {
  12519. var typesql;
  12520. if (this.sTool == 32) {
  12521. this.addCourseWorksGongTeacher(
  12522. this.toolindex,
  12523. this.studyJuri[0].cover[0].url,
  12524. this.sTool
  12525. );
  12526. return;
  12527. }
  12528. if (this.fileType === 0) {
  12529. typesql = 1;
  12530. } else if (this.fileType === 1) {
  12531. typesql = 4;
  12532. } else if (this.fileType === 2) {
  12533. typesql = 5;
  12534. } else if (this.fileType === 3) {
  12535. typesql = 12;
  12536. }
  12537. if (this.sTool == 50) {
  12538. this.addCourseWorksGongPl(
  12539. this.toolindex,
  12540. this.studyJuri[0].cover[0].url,
  12541. this.sTool,
  12542. typesql
  12543. );
  12544. return;
  12545. }
  12546. if (!this.studyJuri[0].cover[0].url) {
  12547. this.$message.error("请上传文件");
  12548. return;
  12549. }
  12550. let params = [
  12551. {
  12552. uid: this.sStudent.userid,
  12553. cid: this.id,
  12554. stage: this.courseType,
  12555. task: i,
  12556. tool: this.toolindex,
  12557. content: this.studyJuri[0].cover[0].url,
  12558. type: typesql,
  12559. ateacher: this.userid,
  12560. },
  12561. ];
  12562. this.ajax
  12563. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12564. .then((res) => {
  12565. this.$message({
  12566. message: "提交成功",
  12567. type: "success",
  12568. });
  12569. this.studyJuri[0].cover = [];
  12570. this.dialogVisibleWorks = false;
  12571. this.getCourseDetail();
  12572. })
  12573. .catch((err) => {
  12574. this.$message.error("提交失败");
  12575. console.error(err);
  12576. });
  12577. },
  12578. selectUploadStudent(type) {
  12579. const loading = this.$loading.service({
  12580. background: "rgba(255, 255, 255, 0.7)",
  12581. target: document.body,
  12582. });
  12583. let params = {
  12584. cid: this.uploadCid,
  12585. oid: this.oid,
  12586. cn: "",
  12587. };
  12588. this.ajax
  12589. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12590. .then((res) => {
  12591. loading.close();
  12592. var studentK = [];
  12593. if (this.isWorksS[this.toolindex].length > 0) {
  12594. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12595. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12596. }
  12597. studentK = studentK.join(",");
  12598. }
  12599. this.uploadStudentJuri = res.data[0].filter((el) => {
  12600. return studentK.indexOf(el.userid) == -1;
  12601. });
  12602. if (this.worksSName && this.worksSid) {
  12603. this.uploadStudentJuri.push({
  12604. userid: this.worksSid,
  12605. name: this.worksSName,
  12606. });
  12607. }
  12608. if (type == 1) {
  12609. this.plworkFile = [];
  12610. this.dialogVisibleSname = true;
  12611. } else if (type == 2) {
  12612. this.dialogVisiblePl = true;
  12613. }
  12614. })
  12615. .catch((err) => {
  12616. loading.close();
  12617. console.error(err);
  12618. });
  12619. },
  12620. selectPickStudent() {
  12621. const loading = this.$loading.service({
  12622. background: "rgba(255, 255, 255, 0.7)",
  12623. target: document.body,
  12624. });
  12625. let params = {
  12626. cid: this.uploadCid,
  12627. oid: this.oid,
  12628. cn: "",
  12629. };
  12630. this.ajax
  12631. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12632. .then((res) => {
  12633. loading.close();
  12634. this.uploadStudentJuri = res.data[0];
  12635. this.dialogVisiblePickPeople = true;
  12636. })
  12637. .catch((err) => {
  12638. loading.close();
  12639. console.error(err);
  12640. });
  12641. },
  12642. arrayToArray(arrayo, arrayt) {
  12643. let array1 = arrayo;
  12644. let array2 = arrayt;
  12645. let commonElements = [];
  12646. for (let i = 0; i < array1.length; i++) {
  12647. for (let j = 0; j < array2.length; j++) {
  12648. if (array1[i] === array2[j]) {
  12649. commonElements.push(array1[i]);
  12650. }
  12651. }
  12652. }
  12653. return commonElements;
  12654. },
  12655. selectWorksStudent() {
  12656. let params = {
  12657. oid: this.oid,
  12658. cid: this.courseDetail.juri,
  12659. };
  12660. this.ajax
  12661. .get(this.$store.state.api + "selectWorksStudent", params)
  12662. .then((res) => {
  12663. var a = res.data[0];
  12664. for (var i = 0; i < this.isWorksS.length; i++) {
  12665. this.noWorksS[i] = [];
  12666. var studentK = [];
  12667. if (this.isWorksS[i].length > 0) {
  12668. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12669. studentK.push(this.isWorksS[i][z].uid);
  12670. }
  12671. studentK = studentK.join(",");
  12672. for (var j = 0; j < a.length; j++) {
  12673. // if (studentK.indexOf(a[j].userid) == -1) {
  12674. if (this.tcid) {
  12675. // a[j].classid.indexOf(this.tcid) != -1
  12676. if (
  12677. this.arrayToArray(
  12678. a[j].classid.split(","),
  12679. this.tcid.split(",")
  12680. ).length
  12681. ) {
  12682. this.noWorksS[i].push({
  12683. student: a[j].name,
  12684. userid: a[j].userid,
  12685. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12686. });
  12687. }
  12688. } else {
  12689. this.noWorksS[i].push({
  12690. student: a[j].name,
  12691. userid: a[j].userid,
  12692. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12693. });
  12694. }
  12695. // }
  12696. }
  12697. } else {
  12698. for (var k = 0; k < a.length; k++) {
  12699. if (this.tcid) {
  12700. if (
  12701. this.arrayToArray(
  12702. a[k].classid.split(","),
  12703. this.tcid.split(",")
  12704. ).length
  12705. ) {
  12706. this.noWorksS[i].push({
  12707. student: a[k].name,
  12708. userid: a[k].userid,
  12709. type: "1",
  12710. });
  12711. }
  12712. } else {
  12713. this.noWorksS[i].push({
  12714. student: a[k].name,
  12715. userid: a[k].userid,
  12716. type: "1",
  12717. });
  12718. }
  12719. }
  12720. }
  12721. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  12722. // let jscoreA = parseInt(a.type);
  12723. // let jscoreB = parseInt(b.type);
  12724. // return jscoreB - jscoreA;
  12725. // });
  12726. }
  12727. this.$forceUpdate();
  12728. if (
  12729. Object.keys(this.commentDetail).length &&
  12730. Object.keys(this.commentIndexJson).length &&
  12731. !this.dialogVisibleScore
  12732. ) {
  12733. let a = 1;
  12734. let c = this.commentIndexJson;
  12735. console.log(c);
  12736. if (
  12737. this.commentIndexJson.gindex ||
  12738. this.commentIndexJson.gindex === 0
  12739. ) {
  12740. for (
  12741. var i = 0;
  12742. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12743. i++
  12744. ) {
  12745. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12746. groupA: for (var k = 0; k < _el.length; k++) {
  12747. let el = _el[k];
  12748. if (el.wid == this.commentDetail.wid) {
  12749. a = 2;
  12750. this.commentOther(
  12751. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12752. this.commentIndexJson.toolIndex,
  12753. k,
  12754. this.commentIndexJson.gindex
  12755. );
  12756. break groupA;
  12757. }
  12758. }
  12759. }
  12760. if (a === 1) {
  12761. this.commentDetail = [];
  12762. this.commentIndexJson = {};
  12763. this.commentDialogVisible = false;
  12764. this.$message("此作业已被删除");
  12765. }
  12766. } else {
  12767. if (this.isGroup && this.commentIndexJson.gid) {
  12768. groupA: for (
  12769. var i = 0;
  12770. i < this.courseGroup.group.length;
  12771. i++
  12772. ) {
  12773. let _group = this.courseGroup.group[i];
  12774. if (_group.id == this.commentIndexJson.gid) {
  12775. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12776. for (var k = 0; k < _el2.length; k++) {
  12777. let el2 = _el2[k];
  12778. if (el2.wid == this.commentDetail.wid) {
  12779. a = 2;
  12780. this.commentOther(
  12781. _el2[k],
  12782. this.commentIndexJson.toolIndex,
  12783. k,
  12784. null,
  12785. this.commentIndexJson.gid
  12786. );
  12787. break groupA;
  12788. }
  12789. }
  12790. }
  12791. }
  12792. }
  12793. if (a == 1) {
  12794. for (
  12795. var i = 0;
  12796. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12797. i++
  12798. ) {
  12799. let el =
  12800. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12801. if (el.wid == this.commentDetail.wid) {
  12802. a = 2;
  12803. this.commentOther(
  12804. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12805. this.commentIndexJson.toolIndex,
  12806. i
  12807. );
  12808. break;
  12809. }
  12810. }
  12811. }
  12812. if (a === 1) {
  12813. this.commentDetail = [];
  12814. this.commentIndexJson = {};
  12815. this.commentDialogVisible = false;
  12816. this.$message("此作业已被删除");
  12817. }
  12818. }
  12819. }
  12820. })
  12821. .catch((err) => {
  12822. console.error(err);
  12823. });
  12824. },
  12825. selectStudent() {},
  12826. openVideo(w) {
  12827. this.videoDetail = {};
  12828. this.playerOptions1.sources[0].src = w.works;
  12829. this.videoDetail = this.playerOptions1;
  12830. this.videoVisible = true;
  12831. },
  12832. isLikes(wid, uid, t, c, isLikes) {
  12833. if (isLikes == false) {
  12834. let params = [
  12835. {
  12836. wid: wid,
  12837. lid: uid,
  12838. t: t,
  12839. c: c,
  12840. },
  12841. ];
  12842. this.ajax
  12843. .post(this.$store.state.api + "insertComment", params)
  12844. .then((res) => {
  12845. this.$message({
  12846. message: "点赞成功",
  12847. type: "success",
  12848. });
  12849. this.selectSWorks();
  12850. this.selectStudent();
  12851. })
  12852. .catch((err) => {
  12853. this.$message.error("点赞失败");
  12854. console.error(err);
  12855. });
  12856. } else {
  12857. let params = {
  12858. wid: wid,
  12859. lid: uid,
  12860. type: t,
  12861. };
  12862. this.ajax
  12863. .get(this.$store.state.api + "deleteComment", params)
  12864. .then((res) => {
  12865. this.$message({
  12866. message: "取消点赞成功",
  12867. type: "success",
  12868. });
  12869. this.selectSWorks();
  12870. this.selectStudent();
  12871. })
  12872. .catch((err) => {
  12873. console.error(err);
  12874. });
  12875. }
  12876. },
  12877. deleteComment(wid) {
  12878. this.$confirm("确定删除此评论吗?", "提示", {
  12879. confirmButtonText: "确定",
  12880. cancelButtonText: "取消",
  12881. type: "warning",
  12882. })
  12883. .then(() => {
  12884. let params = {
  12885. id: wid,
  12886. };
  12887. this.ajax
  12888. .get(this.$store.state.api + "deleteComment2", params)
  12889. .then((res) => {
  12890. this.$message({
  12891. message: "删除评论成功",
  12892. type: "success",
  12893. });
  12894. this.selectSWorks();
  12895. this.selectStudent();
  12896. })
  12897. .catch((err) => {
  12898. console.error(err);
  12899. });
  12900. })
  12901. .catch(() => {});
  12902. },
  12903. commentOther(w, toolIndex, wIndex, gindex, gid) {
  12904. this.commentIndexJson = {
  12905. toolIndex: toolIndex,
  12906. wIndex: wIndex,
  12907. gindex: gindex,
  12908. gid: gid,
  12909. };
  12910. this.commentDetail = [];
  12911. this.commentDialogVisible = true;
  12912. this.commentDetail = w;
  12913. if (w.works && w.type == 1) {
  12914. this.pptImgUrl = "";
  12915. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12916. if (
  12917. a.indexOf(
  12918. w.works
  12919. .split(".")
  12920. [w.works.split(".").length - 1].toLocaleUpperCase()
  12921. ) != -1
  12922. ) {
  12923. this.pptImgUrl =
  12924. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12925. this.showPDF = false;
  12926. } else if (
  12927. w.works
  12928. .split(".")
  12929. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12930. ) {
  12931. this.pptImgUrl = w.works;
  12932. this.showPDF = true;
  12933. }
  12934. } else if (w.works && w.type == 3) {
  12935. this.videoDetail = {};
  12936. this.playerOptions1.sources[0].src = w.works;
  12937. this.videoDetail = this.playerOptions1;
  12938. // this.videoVisible = true;
  12939. } else if (w.works && w.type == 4) {
  12940. this.eScore = JSON.parse(w.works);
  12941. this.rateJson =
  12942. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12943. this.taskCount
  12944. ].toolChoose[toolIndex].rateJson;
  12945. } else if (w.works && w.type == 10) {
  12946. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  12947. } else if (w.works && w.type == 13) {
  12948. this.wordJson =
  12949. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12950. this.taskCount
  12951. ].toolChoose[toolIndex].wordJson;
  12952. }
  12953. },
  12954. openScore(w) {
  12955. this.wScore = 0;
  12956. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  12957. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  12958. this.commentDetail = [];
  12959. this.dialogVisibleScore = true;
  12960. this.commentDetail = w;
  12961. if (w.works && w.type == 1) {
  12962. this.pptImgUrl = "";
  12963. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12964. if (
  12965. a.indexOf(
  12966. w.works
  12967. .split(".")
  12968. [w.works.split(".").length - 1].toLocaleUpperCase()
  12969. ) != -1
  12970. ) {
  12971. this.pptImgUrl =
  12972. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12973. this.showPDF = false;
  12974. } else if (
  12975. w.works
  12976. .split(".")
  12977. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12978. ) {
  12979. this.pptImgUrl = w.works;
  12980. this.showPDF = true;
  12981. }
  12982. } else if (w.works && w.type == 3) {
  12983. this.videoDetail = {};
  12984. this.playerOptions1.sources[0].src = w.works;
  12985. this.videoDetail = this.playerOptions1;
  12986. }
  12987. },
  12988. addComment(wid, uid, t) {
  12989. if (this.commentText == "") {
  12990. this.$message.error("请输入评论");
  12991. return;
  12992. }
  12993. let params2 = [
  12994. {
  12995. wid: wid,
  12996. lid: uid,
  12997. t: t,
  12998. },
  12999. ];
  13000. this.ajax
  13001. .post(this.$store.state.api + "getComment", params2)
  13002. .then((res) => {
  13003. if (res.data[0].length > 0) {
  13004. this.$message.error("一个作业只能评论一条");
  13005. } else {
  13006. let params = [
  13007. {
  13008. wid: wid,
  13009. lid: uid,
  13010. t: t,
  13011. c: this.commentText,
  13012. },
  13013. ];
  13014. this.ajax
  13015. .post(this.$store.state.api + "insertComment", params)
  13016. .then((res) => {
  13017. this.$message({
  13018. message: "评论成功",
  13019. type: "success",
  13020. });
  13021. this.commentText = "";
  13022. this.selectSWorks();
  13023. this.selectStudent();
  13024. })
  13025. .catch((err) => {
  13026. this.$message.error("评论失败");
  13027. console.error(err);
  13028. });
  13029. }
  13030. })
  13031. .catch((err) => {
  13032. // this.$message.error("评论失败");
  13033. console.error(err);
  13034. });
  13035. },
  13036. scoreWork(wid) {
  13037. if (this.wScore == 0) {
  13038. this.$message.error("请评分");
  13039. return;
  13040. }
  13041. let params = [
  13042. {
  13043. wid: wid,
  13044. score: JSON.stringify({
  13045. wScore: this.wScore,
  13046. detail: this.scoreDetail,
  13047. }),
  13048. },
  13049. ];
  13050. this.ajax
  13051. .post(this.$store.state.api + "scoreWork", params)
  13052. .then((res) => {
  13053. this.$message({
  13054. message: "评分成功",
  13055. type: "success",
  13056. });
  13057. this.wScore = 0;
  13058. this.scoreDetail = "";
  13059. this.dialogVisibleScore = false;
  13060. this.selectSWorks();
  13061. this.selectStudent();
  13062. })
  13063. .catch((err) => {
  13064. this.$message.error("评分失败");
  13065. console.error(err);
  13066. });
  13067. },
  13068. openXz(w, i) {
  13069. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13070. .taskJson[this.taskCount].toolChoose[i].selectJson
  13071. ? JSON.parse(
  13072. JSON.stringify(
  13073. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13074. this.taskCount
  13075. ].toolChoose[i].selectJson
  13076. )
  13077. )
  13078. : { url: "", select: [], answer: [] };
  13079. var a = w.works.split(",");
  13080. for (var k = 0; k < a.length; k++) {
  13081. a[k] = parseInt(a[k]);
  13082. }
  13083. this.selectAnswer = { answer: a, stu: w.sName };
  13084. this.isSelect = true;
  13085. this.dialogVisibleSelect = true;
  13086. },
  13087. openSen(w, i) {
  13088. this.sentenceList1 = JSON.parse(w.works);
  13089. this.sentenceList1.stuName = w.sName;
  13090. this.dialogVisibleSentence1 = true;
  13091. },
  13092. openPj(w, toolindex) {
  13093. this.isStar = true;
  13094. this.eScore = JSON.parse(w);
  13095. this.rateJson =
  13096. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13097. this.taskCount
  13098. ].toolChoose[toolindex].rateJson;
  13099. this.studentEvalDialogVisible = true;
  13100. },
  13101. deleteWorks(id) {
  13102. this.$confirm("确定删除此作业吗?", "提示", {
  13103. confirmButtonText: "确定",
  13104. cancelButtonText: "取消",
  13105. type: "warning",
  13106. })
  13107. .then(() => {
  13108. let params = [
  13109. {
  13110. id: id,
  13111. },
  13112. ];
  13113. this.ajax
  13114. .post(this.$store.state.api + "deleteCourseWork", params)
  13115. .then((res) => {
  13116. this.$message({
  13117. message: "删除成功",
  13118. type: "success",
  13119. });
  13120. this.selectStudent();
  13121. this.selectSWorks();
  13122. this.selectSLook();
  13123. })
  13124. .catch((err) => {
  13125. this.$message.error("网络异常");
  13126. console.error(err);
  13127. });
  13128. })
  13129. .catch(() => {});
  13130. },
  13131. selectSWorks(gindex) {
  13132. //教师查看全部作业
  13133. let params = {
  13134. cid: this.id,
  13135. s: this.courseType,
  13136. t: this.taskCount,
  13137. };
  13138. this.ajax
  13139. .get(this.$store.state.api + "selectSWorks", params)
  13140. .then((res) => {
  13141. var a =
  13142. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13143. this.taskCount
  13144. ].toolChoose;
  13145. var b = res.data[0];
  13146. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13147. var y = [
  13148. "AVI",
  13149. "NAVI",
  13150. "MPEG",
  13151. "ASF",
  13152. "MOV",
  13153. "WMV",
  13154. "3GP",
  13155. "RM",
  13156. "RMVB",
  13157. "FLV",
  13158. "F4V",
  13159. "H.264",
  13160. "H.265",
  13161. "REAL VIDEO",
  13162. "MKV",
  13163. "WebM",
  13164. "HDDVD",
  13165. "MP4",
  13166. "MPG",
  13167. "M4V",
  13168. "MGV",
  13169. "OGV",
  13170. "QTM",
  13171. "STR",
  13172. "AMC",
  13173. "DVX",
  13174. "EVO",
  13175. "DAT",
  13176. "OGG",
  13177. "OGM",
  13178. ];
  13179. var d = res.data[1];
  13180. var e = res.data[2];
  13181. var f = res.data[3];
  13182. for (var i = 0; i < a.length; i++) {
  13183. this.worksStudent[i] = [];
  13184. this.worksTeacher[i] = [];
  13185. this.worksStudent2[i] = [];
  13186. if (
  13187. !this.isCloseList[i] ||
  13188. this.isCloseList[i].isClose == undefined
  13189. ) {
  13190. this.isCloseList[i] = { isClose: 0 };
  13191. }
  13192. this.groupStudent[i] = [];
  13193. this.groupStudentUid[i] = [];
  13194. this.isWorksS[i] = [];
  13195. this.checkJson[i] = [];
  13196. if (a[i].tool[0] == 49) {
  13197. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13198. this.groupStudent[i][gA] = [];
  13199. this.groupStudentUid[i][gA] = [];
  13200. this.worksStudent[i][gA] = [];
  13201. this.isCloseList[i][gA] = [];
  13202. for (var g = 0; g < f.length; g++) {
  13203. if (
  13204. f[g].ttype == 2 &&
  13205. this.tcid &&
  13206. this.arrayToArray(
  13207. f[g].classid.split(","),
  13208. this.tcid.split(",")
  13209. ).length == 0
  13210. ) {
  13211. continue;
  13212. }
  13213. if (gA == f[g].group && f[g].tool == i) {
  13214. this.groupStudent[i][gA].push(f[g]);
  13215. this.groupStudentUid[i][gA].push(f[g].userid);
  13216. }
  13217. }
  13218. }
  13219. this.$forceUpdate();
  13220. }
  13221. for (var j = 0; j < b.length; j++) {
  13222. if (
  13223. b[j].ttype == 2 &&
  13224. this.tcid &&
  13225. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13226. .length == 0
  13227. ) {
  13228. continue;
  13229. }
  13230. var likesCount = 0;
  13231. var commentCount = 0;
  13232. var isLikes = false;
  13233. var commentJson = [];
  13234. var data = b[j];
  13235. if (i == b[j].tool) {
  13236. if (data.type == 2 && a[i].tool[0] == 4) {
  13237. // if(JSON.parse(data.content)[0].anwer){
  13238. var checkL =
  13239. JSON.parse(data.content)[0].anwer instanceof Array
  13240. ? JSON.parse(data.content)[0].anwer
  13241. : JSON.parse(data.content)[0].anwer.split(",");
  13242. for (var z = 0; z < checkL.length; z++) {
  13243. if (!this.checkJson[i][z]) {
  13244. this.checkJson[i].push({
  13245. checkCount: [],
  13246. checkPerson: [],
  13247. rightPerson: [],
  13248. });
  13249. }
  13250. if (!this.checkJson[i][z].checkCount.length) {
  13251. this.checkJson[i][z].checkCount = [];
  13252. let _askItemCount = JSON.parse(data.content)[0].askJson
  13253. .askJson[z].askItem;
  13254. for (var aic = 0; aic < _askItemCount; aic++) {
  13255. this.checkJson[i][z].checkCount.push(0);
  13256. }
  13257. }
  13258. if (checkL[z] instanceof Array) {
  13259. if (
  13260. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13261. checkL[z].sort().join(",")
  13262. ) {
  13263. this.checkJson[i][z].rightPerson.push(data.name);
  13264. }
  13265. for (var q = 0; q < checkL[z].length; q++) {
  13266. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13267. ? this.checkJson[i][z].checkPerson[
  13268. parseInt(checkL[z][q])
  13269. ].push(data.name)
  13270. : (this.checkJson[i][z].checkPerson[
  13271. parseInt(checkL[z][q])
  13272. ] = [data.name]);
  13273. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13274. ? this.checkJson[i][z].checkCount[
  13275. parseInt(checkL[z][q])
  13276. ]++
  13277. : (this.checkJson[i][z].checkCount[
  13278. parseInt(checkL[z][q])
  13279. ] = 1);
  13280. }
  13281. } else {
  13282. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13283. this.checkJson[i][z].rightPerson.push(data.name);
  13284. }
  13285. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13286. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13287. ? this.checkJson[i][z].checkPerson[
  13288. parseInt(checkL[z])
  13289. ].push(data.name)
  13290. : (this.checkJson[i][z].checkPerson[
  13291. parseInt(checkL[z])
  13292. ] = [data.name]);
  13293. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13294. ? this.checkJson[i][z].checkCount[
  13295. parseInt(checkL[z])
  13296. ]++
  13297. : (this.checkJson[i][z].checkCount[
  13298. parseInt(checkL[z])
  13299. ] = 1);
  13300. }
  13301. }
  13302. }
  13303. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13304. var checkL = JSON.parse(data.content)[0].anwer;
  13305. for (var z = 0; z < checkL.length; z++) {
  13306. if (!this.checkJson[i][z]) {
  13307. this.checkJson[i].push({
  13308. checkCount: [],
  13309. checkPerson: [],
  13310. rightPerson: [],
  13311. });
  13312. }
  13313. if (!this.checkJson[i][z].checkCount.length) {
  13314. this.checkJson[i][z].checkCount = [];
  13315. let _askItemCount = JSON.parse(data.content)[0].testJson
  13316. .testJson[z].testItem;
  13317. console.log(_askItemCount);
  13318. for (var aic = 0; aic < _askItemCount; aic++) {
  13319. this.checkJson[i][z].checkCount.push(0);
  13320. }
  13321. }
  13322. if (checkL[z] instanceof Array) {
  13323. if (
  13324. JSON.parse(data.content)[0]
  13325. .testJson.testJson[z].answer.sort()
  13326. .join(",") == checkL[z].sort().join(",")
  13327. ) {
  13328. this.checkJson[i][z].rightPerson.push(data.name);
  13329. }
  13330. for (var q = 0; q < checkL[z].length; q++) {
  13331. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13332. ? this.checkJson[i][z].checkPerson[
  13333. parseInt(checkL[z][q])
  13334. ].push(data.name)
  13335. : (this.checkJson[i][z].checkPerson[
  13336. parseInt(checkL[z][q])
  13337. ] = [data.name]);
  13338. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13339. ? this.checkJson[i][z].checkCount[
  13340. parseInt(checkL[z][q])
  13341. ]++
  13342. : (this.checkJson[i][z].checkCount[
  13343. parseInt(checkL[z][q])
  13344. ] = 1);
  13345. }
  13346. } else {
  13347. if (
  13348. JSON.parse(data.content)[0].testJson.testJson[z]
  13349. .answer == checkL[z]
  13350. ) {
  13351. this.checkJson[i][z].rightPerson.push(data.name);
  13352. }
  13353. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13354. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13355. ? this.checkJson[i][z].checkPerson[
  13356. parseInt(checkL[z])
  13357. ].push(data.name)
  13358. : (this.checkJson[i][z].checkPerson[
  13359. parseInt(checkL[z])
  13360. ] = [data.name]);
  13361. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13362. ? this.checkJson[i][z].checkCount[
  13363. parseInt(checkL[z])
  13364. ]++
  13365. : (this.checkJson[i][z].checkCount[
  13366. parseInt(checkL[z])
  13367. ] = 1);
  13368. }
  13369. }
  13370. }
  13371. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13372. var checkL = JSON.parse(data.content);
  13373. for (var z = 0; z < checkL.length; z++) {
  13374. if (!this.checkJson[i][z]) {
  13375. this.checkJson[i].push({
  13376. checkCount: [],
  13377. checkPerson: [],
  13378. rightPerson: [],
  13379. });
  13380. }
  13381. this.checkJson[i][z].checkPerson.push(data.name);
  13382. if (
  13383. checkL[z].chooseSenList.toString() ==
  13384. checkL[z].rightAnswer.toString()
  13385. ) {
  13386. this.checkJson[i][z].rightPerson.push(data.name);
  13387. }
  13388. }
  13389. }
  13390. for (var k = 0; k < d.length; k++) {
  13391. //点赞
  13392. if (d[k].workId == b[j].id) {
  13393. likesCount++;
  13394. if (d[k].likesId == this.userid) {
  13395. isLikes = true;
  13396. }
  13397. }
  13398. }
  13399. for (var l = 0; l < e.length; l++) {
  13400. //评论
  13401. if (e[l].workId == b[j].id) {
  13402. if (e[l].comment != "") {
  13403. commentCount++;
  13404. commentJson.push({
  13405. commentText: e[l].comment,
  13406. commentTime: e[l].commentTime,
  13407. commentPeople: e[l].commentPeople,
  13408. userid: e[l].userid,
  13409. wid: e[l].id,
  13410. });
  13411. }
  13412. }
  13413. }
  13414. if (
  13415. (b[j].type == 1 ||
  13416. b[j].type == 4 ||
  13417. b[j].type == 5 ||
  13418. b[j].type == 6 ||
  13419. b[j].type == 12 ||
  13420. b[j].type == 7) &&
  13421. a[i].tool[0] != 15 &&
  13422. a[i].tool[0] != 4 &&
  13423. a[i].tool[0] != 45 &&
  13424. a[i].tool[0] != 50 &&
  13425. a[i].tool[0] != 32 &&
  13426. a[i].tool[0] != 57 &&
  13427. a[i].tool[0] != 52
  13428. ) {
  13429. if (
  13430. c.indexOf(
  13431. b[j].content
  13432. .split(".")
  13433. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13434. ) != -1 &&
  13435. a[i].tool[0] == 16 &&
  13436. b[j].atool != 50
  13437. ) {
  13438. let _works = {
  13439. userid: b[j].userid,
  13440. ateacher: b[j].ateacher,
  13441. wid: b[j].id,
  13442. works: b[j].content,
  13443. sName: b[j].name,
  13444. type: 1,
  13445. time: b[j].time,
  13446. score: b[j].score,
  13447. img: b[j].img,
  13448. likesCount: likesCount,
  13449. commentCount: commentCount,
  13450. isLikes: isLikes,
  13451. commentJson: commentJson,
  13452. };
  13453. if (b[j].ttype == 1) {
  13454. this.worksTeacher[i].push(_works);
  13455. } else {
  13456. this.worksStudent2[i].push(_works);
  13457. }
  13458. this.worksStudent[i].push(_works);
  13459. this.isWorksS[i].push({
  13460. uid: b[j].userid,
  13461. sName: b[j].name,
  13462. });
  13463. } else if (
  13464. y.indexOf(
  13465. b[j].content
  13466. .split(".")
  13467. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13468. ) != -1 &&
  13469. a[i].tool[0] == 16 &&
  13470. b[j].atool != 50
  13471. ) {
  13472. let _works = {
  13473. userid: b[j].userid,
  13474. ateacher: b[j].ateacher,
  13475. wid: b[j].id,
  13476. works: b[j].content,
  13477. sName: b[j].name,
  13478. type: 3,
  13479. time: b[j].time,
  13480. score: b[j].score,
  13481. img: b[j].img,
  13482. likesCount: likesCount,
  13483. commentCount: commentCount,
  13484. isLikes: isLikes,
  13485. commentJson: commentJson,
  13486. };
  13487. if (b[j].ttype == 1) {
  13488. this.worksTeacher[i].push(_works);
  13489. } else {
  13490. this.worksStudent2[i].push(_works);
  13491. }
  13492. this.worksStudent[i].push(_works);
  13493. this.isWorksS[i].push({
  13494. uid: b[j].userid,
  13495. sName: b[j].name,
  13496. });
  13497. } else if (b[j].type == 6 && b[j].atool != 50) {
  13498. let _works = {
  13499. userid: b[j].userid,
  13500. ateacher: b[j].ateacher,
  13501. wid: b[j].id,
  13502. works: b[j].content,
  13503. sName: b[j].name,
  13504. type: 4,
  13505. time: b[j].time,
  13506. score: b[j].score,
  13507. img: b[j].img,
  13508. likesCount: likesCount,
  13509. commentCount: commentCount,
  13510. isLikes: isLikes,
  13511. commentJson: commentJson,
  13512. };
  13513. if (b[j].ttype == 1) {
  13514. this.worksTeacher[i].push(_works);
  13515. } else {
  13516. this.worksStudent2[i].push(_works);
  13517. }
  13518. this.worksStudent[i].push(_works);
  13519. this.isWorksS[i].push({
  13520. uid: b[j].userid,
  13521. sName: b[j].name,
  13522. });
  13523. } else if (b[j].type == 7 && b[j].atool != 50) {
  13524. let _works = {
  13525. userid: b[j].userid,
  13526. ateacher: b[j].ateacher,
  13527. wid: b[j].id,
  13528. works: b[j].content,
  13529. sName: b[j].name,
  13530. type: 5,
  13531. time: b[j].time,
  13532. score: b[j].score,
  13533. img: b[j].img,
  13534. likesCount: likesCount,
  13535. commentCount: commentCount,
  13536. isLikes: isLikes,
  13537. commentJson: commentJson,
  13538. };
  13539. if (b[j].ttype == 1) {
  13540. this.worksTeacher[i].push(_works);
  13541. } else {
  13542. this.worksStudent2[i].push(_works);
  13543. }
  13544. this.worksStudent[i].push(_works);
  13545. this.isWorksS[i].push({
  13546. uid: b[j].userid,
  13547. sName: b[j].name,
  13548. });
  13549. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13550. let _works = {
  13551. userid: b[j].userid,
  13552. ateacher: b[j].ateacher,
  13553. wid: b[j].id,
  13554. works: b[j].content,
  13555. sName: b[j].name,
  13556. type: 12,
  13557. time: b[j].time,
  13558. score: b[j].score,
  13559. img: b[j].img,
  13560. likesCount: likesCount,
  13561. commentCount: commentCount,
  13562. isLikes: isLikes,
  13563. commentJson: commentJson,
  13564. };
  13565. if (b[j].ttype == 1) {
  13566. this.worksTeacher[i].push(_works);
  13567. } else {
  13568. this.worksStudent2[i].push(_works);
  13569. }
  13570. this.worksStudent[i].push(_works);
  13571. this.isWorksS[i].push({
  13572. uid: b[j].userid,
  13573. sName: b[j].name,
  13574. });
  13575. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13576. let _works = {
  13577. userid: b[j].userid,
  13578. ateacher: b[j].ateacher,
  13579. wid: b[j].id,
  13580. works: b[j].content,
  13581. sName: b[j].name,
  13582. type: 0,
  13583. time: b[j].time,
  13584. score: b[j].score,
  13585. img: b[j].img,
  13586. likesCount: likesCount,
  13587. commentCount: commentCount,
  13588. isLikes: isLikes,
  13589. commentJson: commentJson,
  13590. };
  13591. if (b[j].ttype == 1) {
  13592. this.worksTeacher[i].push(_works);
  13593. } else {
  13594. this.worksStudent2[i].push(_works);
  13595. }
  13596. this.worksStudent[i].push(_works);
  13597. this.isWorksS[i].push({
  13598. uid: b[j].userid,
  13599. sName: b[j].name,
  13600. });
  13601. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13602. let _works = {
  13603. userid: b[j].userid,
  13604. ateacher: b[j].ateacher,
  13605. wid: b[j].id,
  13606. works: b[j].content,
  13607. sName: b[j].name,
  13608. type: 0,
  13609. time: b[j].time,
  13610. score: b[j].score,
  13611. img: b[j].img,
  13612. likesCount: likesCount,
  13613. commentCount: commentCount,
  13614. isLikes: isLikes,
  13615. commentJson: commentJson,
  13616. };
  13617. if (b[j].ttype == 1) {
  13618. this.worksTeacher[i].push(_works);
  13619. } else {
  13620. this.worksStudent2[i].push(_works);
  13621. }
  13622. this.worksStudent[i].push(_works);
  13623. this.isWorksS[i].push({
  13624. uid: b[j].userid,
  13625. sName: b[j].name,
  13626. });
  13627. }
  13628. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13629. let _works = {
  13630. userid: b[j].userid,
  13631. ateacher: b[j].ateacher,
  13632. wid: b[j].id,
  13633. works: b[j].content,
  13634. sName: b[j].name,
  13635. type: 2,
  13636. time: b[j].time,
  13637. score: b[j].score,
  13638. img: b[j].img,
  13639. likesCount: likesCount,
  13640. commentCount: commentCount,
  13641. isLikes: isLikes,
  13642. commentJson: commentJson,
  13643. };
  13644. if (b[j].ttype == 1) {
  13645. this.worksTeacher[i].push(_works);
  13646. } else {
  13647. this.worksStudent2[i].push(_works);
  13648. }
  13649. this.worksStudent[i].push(_works);
  13650. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13651. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13652. //问卷
  13653. let _works = {
  13654. userid: b[j].userid,
  13655. ateacher: b[j].ateacher,
  13656. wid: b[j].id,
  13657. works: b[j].content,
  13658. sName: b[j].name,
  13659. type: 2,
  13660. time: b[j].time,
  13661. score: b[j].score,
  13662. img: b[j].img,
  13663. likesCount: likesCount,
  13664. commentCount: commentCount,
  13665. isLikes: isLikes,
  13666. commentJson: commentJson,
  13667. };
  13668. if (b[j].ttype == 1) {
  13669. this.worksTeacher[i].push(_works);
  13670. } else {
  13671. this.worksStudent2[i].push(_works);
  13672. }
  13673. this.worksStudent[i].push(_works);
  13674. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13675. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13676. //选择题
  13677. let _works = {
  13678. userid: b[j].userid,
  13679. ateacher: b[j].ateacher,
  13680. wid: b[j].id,
  13681. works: b[j].content,
  13682. sName: b[j].name,
  13683. type: 8,
  13684. time: b[j].time,
  13685. score: b[j].score,
  13686. img: b[j].img,
  13687. likesCount: likesCount,
  13688. commentCount: commentCount,
  13689. isLikes: isLikes,
  13690. commentJson: commentJson,
  13691. };
  13692. if (b[j].ttype == 1) {
  13693. this.worksTeacher[i].push(_works);
  13694. } else {
  13695. this.worksStudent2[i].push(_works);
  13696. }
  13697. this.worksStudent[i].push(_works);
  13698. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13699. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13700. //选择题
  13701. let _works = {
  13702. userid: b[j].userid,
  13703. ateacher: b[j].ateacher,
  13704. wid: b[j].id,
  13705. works: b[j].content,
  13706. sName: b[j].name,
  13707. type: 9,
  13708. time: b[j].time,
  13709. score: b[j].score,
  13710. img: b[j].img,
  13711. likesCount: likesCount,
  13712. commentCount: commentCount,
  13713. isLikes: isLikes,
  13714. commentJson: commentJson,
  13715. };
  13716. if (b[j].ttype == 1) {
  13717. this.worksTeacher[i].push(_works);
  13718. } else {
  13719. this.worksStudent2[i].push(_works);
  13720. }
  13721. this.worksStudent[i].push(_works);
  13722. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13723. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13724. //选择题
  13725. let _works = {
  13726. userid: b[j].userid,
  13727. ateacher: b[j].ateacher,
  13728. wid: b[j].id,
  13729. works: b[j].content,
  13730. sName: b[j].name,
  13731. type: 10,
  13732. time: b[j].time,
  13733. score: b[j].score,
  13734. img: b[j].img,
  13735. likesCount: likesCount,
  13736. commentCount: commentCount,
  13737. isLikes: isLikes,
  13738. commentJson: commentJson,
  13739. };
  13740. if (b[j].ttype == 1) {
  13741. this.worksTeacher[i].push(_works);
  13742. } else {
  13743. this.worksStudent2[i].push(_works);
  13744. }
  13745. this.worksStudent[i].push(_works);
  13746. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13747. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13748. //选择题
  13749. let _works = {
  13750. userid: b[j].userid,
  13751. ateacher: b[j].ateacher,
  13752. wid: b[j].id,
  13753. works: b[j].content,
  13754. sName: b[j].name,
  13755. type: 13,
  13756. time: b[j].time,
  13757. score: b[j].score,
  13758. img: b[j].img,
  13759. likesCount: likesCount,
  13760. commentCount: commentCount,
  13761. isLikes: isLikes,
  13762. commentJson: commentJson,
  13763. };
  13764. if (b[j].ttype == 1) {
  13765. this.worksTeacher[i].push(_works);
  13766. } else {
  13767. this.worksStudent2[i].push(_works);
  13768. }
  13769. this.worksStudent[i].push(_works);
  13770. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13771. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13772. let _gindex = JSON.parse(b[j].content);
  13773. if (
  13774. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13775. b[j].userid
  13776. ) != -1
  13777. ) {
  13778. this.worksStudent[i][_gindex.groupIndex].push({
  13779. userid: b[j].userid,
  13780. ateacher: b[j].ateacher,
  13781. wid: b[j].id,
  13782. works: _gindex.url,
  13783. sName: b[j].name,
  13784. type: _gindex.type,
  13785. time: b[j].time,
  13786. score: b[j].score,
  13787. img: b[j].img,
  13788. likesCount: likesCount,
  13789. commentCount: commentCount,
  13790. isLikes: isLikes,
  13791. commentJson: commentJson,
  13792. });
  13793. }
  13794. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13795. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13796. let _works = {
  13797. userid: b[j].userid,
  13798. ateacher: b[j].ateacher,
  13799. wid: b[j].id,
  13800. works: b[j].content,
  13801. sName: b[j].name ? b[j].name : b[j].userid,
  13802. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13803. time: b[j].time,
  13804. score: b[j].score,
  13805. img: b[j].img,
  13806. likesCount: likesCount,
  13807. commentCount: commentCount,
  13808. isLikes: isLikes,
  13809. commentJson: commentJson,
  13810. };
  13811. if (b[j].ttype == 1) {
  13812. this.worksTeacher[i].push(_works);
  13813. } else {
  13814. this.worksStudent2[i].push(_works);
  13815. }
  13816. this.worksStudent[i].push(_works);
  13817. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13818. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13819. let _works = {
  13820. userid: b[j].userid,
  13821. ateacher: b[j].ateacher,
  13822. wid: b[j].id,
  13823. works: b[j].content,
  13824. sName: b[j].name ? b[j].name : b[j].userid,
  13825. type: 12,
  13826. time: b[j].time,
  13827. score: b[j].score,
  13828. img: b[j].img,
  13829. likesCount: likesCount,
  13830. commentCount: commentCount,
  13831. isLikes: isLikes,
  13832. commentJson: commentJson,
  13833. };
  13834. if (b[j].ttype == 1) {
  13835. this.worksTeacher[i].push(_works);
  13836. } else {
  13837. this.worksStudent2[i].push(_works);
  13838. }
  13839. this.worksStudent[i].push(_works);
  13840. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13841. } else if (
  13842. a[i].tool[0] == 57 &&
  13843. b[j].atool == 57 &&
  13844. b[j].type == 12
  13845. ) {
  13846. let _works = {
  13847. userid: b[j].userid,
  13848. ateacher: b[j].ateacher,
  13849. wid: b[j].id,
  13850. works: b[j].content,
  13851. sName: b[j].name ? b[j].name : b[j].userid,
  13852. type: 12,
  13853. time: b[j].time,
  13854. score: b[j].score,
  13855. img: b[j].img,
  13856. likesCount: likesCount,
  13857. commentCount: commentCount,
  13858. isLikes: isLikes,
  13859. commentJson: commentJson,
  13860. };
  13861. if (b[j].ttype == 1) {
  13862. this.worksTeacher[i].push(_works);
  13863. } else {
  13864. this.worksStudent2[i].push(_works);
  13865. }
  13866. this.worksStudent[i].push(_works);
  13867. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13868. } else if (
  13869. a[i].tool[0] == 57 &&
  13870. b[j].atool == 57 &&
  13871. b[j].type == 15
  13872. ) {
  13873. let _works = {
  13874. userid: b[j].userid,
  13875. ateacher: b[j].ateacher,
  13876. wid: b[j].id,
  13877. works: b[j].content,
  13878. sName: b[j].name ? b[j].name : b[j].userid,
  13879. type: 15,
  13880. time: b[j].time,
  13881. score: b[j].score,
  13882. img: b[j].img,
  13883. likesCount: likesCount,
  13884. commentCount: commentCount,
  13885. isLikes: isLikes,
  13886. commentJson: commentJson,
  13887. };
  13888. if (b[j].ttype == 1) {
  13889. this.worksTeacher[i].push(_works);
  13890. } else {
  13891. this.worksStudent2[i].push(_works);
  13892. }
  13893. this.worksStudent[i].push(_works);
  13894. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13895. }
  13896. }
  13897. }
  13898. if (this.worksStudent[i] && this.worksStudent[i].length) {
  13899. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  13900. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13901. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13902. var scoreA = parseFloat(jscoreA);
  13903. var scoreB = parseFloat(jscoreB);
  13904. if (scoreA == scoreB) {
  13905. return b.likesCount - a.likesCount;
  13906. }
  13907. return scoreB - scoreA;
  13908. });
  13909. }
  13910. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  13911. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  13912. a,
  13913. b
  13914. ) {
  13915. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13916. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13917. var scoreA = parseFloat(jscoreA);
  13918. var scoreB = parseFloat(jscoreB);
  13919. if (scoreA == scoreB) {
  13920. return b.likesCount - a.likesCount;
  13921. }
  13922. return scoreB - scoreA;
  13923. });
  13924. }
  13925. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  13926. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  13927. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13928. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13929. var scoreA = parseFloat(jscoreA);
  13930. var scoreB = parseFloat(jscoreB);
  13931. if (scoreA == scoreB) {
  13932. return b.likesCount - a.likesCount;
  13933. }
  13934. return scoreB - scoreA;
  13935. });
  13936. }
  13937. }
  13938. for (var i = 0; i < a.length; i++) {
  13939. for (var j = 0; j < b.length; j++) {
  13940. var data = b[j];
  13941. if (i == b[j].tool) {
  13942. if (data.type == 2 || data.type == 8) {
  13943. for (var z = 0; z < this.checkJson[i].length; z++) {
  13944. this.checkJson[i][z].checkPerent = [];
  13945. this.checkJson[i][z].right = Math.round(
  13946. (this.checkJson[i][z].rightPerson.length /
  13947. parseInt(this.worksStudent[i].length)) *
  13948. 100
  13949. );
  13950. let aaaa = this.checkJson[i][z];
  13951. console.log(aaaa);
  13952. for (
  13953. var k = 0;
  13954. k < this.checkJson[i][z].checkCount.length;
  13955. k++
  13956. ) {
  13957. this.checkJson[i][z].checkPerent.push(
  13958. Math.round(
  13959. (this.checkJson[i][z].checkCount[k] /
  13960. parseInt(this.worksStudent[i].length)) *
  13961. 100
  13962. )
  13963. );
  13964. }
  13965. }
  13966. } else if (data.type == 9) {
  13967. for (var z = 0; z < this.checkJson[i].length; z++) {
  13968. this.checkJson[i][z].checkPerent = [];
  13969. this.checkJson[i][z].right = Math.round(
  13970. (this.checkJson[i][z].rightPerson.length /
  13971. this.checkJson[i][z].checkPerson.length) *
  13972. 100
  13973. );
  13974. }
  13975. }
  13976. }
  13977. }
  13978. }
  13979. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  13980. this.joinGroup(gindex);
  13981. }
  13982. this.selectWorksStudent();
  13983. })
  13984. .catch((err) => {
  13985. console.error(err);
  13986. });
  13987. },
  13988. pngToWhiteBg(file) {
  13989. const _file = file;
  13990. let read = new FileReader();
  13991. read.readAsDataURL(file); // 文件转base64
  13992. return new Promise((resolve, reject) => {
  13993. read.onload = (e) => {
  13994. let img = new Image();
  13995. img.src = e.target.result;
  13996. img.onload = async () => {
  13997. // 生成canvas
  13998. let canvas = document.createElement("canvas");
  13999. let context = canvas.getContext("2d");
  14000. // 绘制图片到canvas上
  14001. canvas.width = img.width;
  14002. canvas.height = img.height;
  14003. // 在canvas绘制前填充白色背景
  14004. context.fillStyle = "#fff";
  14005. context.fillRect(0, 0, canvas.width, canvas.height);
  14006. context.drawImage(img, 0, 0);
  14007. let base64 = canvas.toDataURL(file["type"], 1);
  14008. let newFile = this.dataUrlToFile(base64, _file);
  14009. resolve(newFile);
  14010. };
  14011. };
  14012. });
  14013. },
  14014. dataUrlToFile(dataurl, file) {
  14015. let arr = dataurl.split(","),
  14016. mime = arr[0].match(/:(.*?);/)[1],
  14017. bstr = atob(arr[1]),
  14018. n = bstr.length,
  14019. u8arr = new Uint8Array(n);
  14020. while (n--) {
  14021. u8arr[n] = bstr.charCodeAt(n);
  14022. }
  14023. // return new Blob([u8arr], { type: mime });
  14024. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14025. type: mime,
  14026. });
  14027. },
  14028. async beforeUpload1(event, type, i) {
  14029. // this.$message.success('进入上传')
  14030. var file = "";
  14031. if (type == 5) {
  14032. file = event;
  14033. } else {
  14034. file = event.target.files[0];
  14035. }
  14036. var credentials = {
  14037. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14038. secretAccessKey: "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",
  14039. }; //秘钥形式的登录上传
  14040. window.AWS.config.update(credentials);
  14041. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14042. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14043. var _this = this;
  14044. _this.progress = 0;
  14045. _this.proVisible = true;
  14046. _this.isFinishSize = 0;
  14047. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14048. var b = [
  14049. "DOC",
  14050. "DOCX",
  14051. "DOCM",
  14052. "DOTM",
  14053. "DOTX",
  14054. "PPTX",
  14055. "PPSX",
  14056. "PPT",
  14057. "PPS",
  14058. "PPTM",
  14059. "POTM",
  14060. "PPAM",
  14061. "POTX",
  14062. "PPSM",
  14063. ];
  14064. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14065. var photoA = [
  14066. "BMP",
  14067. "GIF",
  14068. "PNG",
  14069. "JPGE",
  14070. "JPG",
  14071. "TIF",
  14072. "PCX",
  14073. "TGA",
  14074. "EXIF",
  14075. "FPX",
  14076. "SVG",
  14077. "APNG",
  14078. ];
  14079. // if (
  14080. // b.indexOf(
  14081. // file.name
  14082. // .split(".")
  14083. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14084. // ) != -1
  14085. // ) {
  14086. // if (file.size / 1024 / 1024 > 10) {
  14087. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14088. // return;
  14089. // }
  14090. // } else if (
  14091. // excelA.indexOf(
  14092. // file.name
  14093. // .split(".")
  14094. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14095. // ) != "-1"
  14096. // ) {
  14097. // if (file.size / 1024 / 1024 > 5) {
  14098. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14099. // return;
  14100. // }
  14101. // }
  14102. if (
  14103. photoA.indexOf(
  14104. file.name
  14105. .split(".")
  14106. [file.name.split(".").length - 1].toLocaleUpperCase()
  14107. ) != -1 &&
  14108. type != 4
  14109. ) {
  14110. // const blob = await imageConversion.compress(file, 0.8)
  14111. file = await this.pngToWhiteBg(file);
  14112. const blob = await imageConversion.compressAccurately(file, 256);
  14113. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14114. file = new File([blob], file.name, { type: file.type });
  14115. }
  14116. if (file) {
  14117. var params = {
  14118. Key:
  14119. file.name.split(".")[0] +
  14120. new Date().getTime() +
  14121. "." +
  14122. file.name.split(".")[file.name.split(".").length - 1],
  14123. ContentType: file.type,
  14124. Body: file,
  14125. "Access-Control-Allow-Credentials": "*",
  14126. ACL: "public-read",
  14127. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14128. var options = {
  14129. // partSize: 2048 * 1024 * 1024,
  14130. partSize: 1024 * 1024 * 1024,
  14131. queueSize: 2,
  14132. leavePartsOnError: true,
  14133. };
  14134. bucket
  14135. .upload(params, options)
  14136. .on("httpUploadProgress", function (evt) {
  14137. //这里可以写进度条
  14138. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14139. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14140. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14141. })
  14142. .send(function (err, data) {
  14143. _this.progress = 100;
  14144. _this.isFinishSize = _this.isAllSize;
  14145. setTimeout(() => {
  14146. _this.proVisible = false;
  14147. }, 1000);
  14148. if (err) {
  14149. var a = _this.$refs.upload1.uploadFiles;
  14150. a.splice(a.length - 1, a.length);
  14151. _this.$message.error("上传失败");
  14152. } else {
  14153. // _this.$message.success('上传成功')
  14154. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14155. var c = [
  14156. "AVI",
  14157. "NAVI",
  14158. "MPEG",
  14159. "ASF",
  14160. "MOV",
  14161. "WMV",
  14162. "3GP",
  14163. "RM",
  14164. "RMVB",
  14165. "FLV",
  14166. "F4V",
  14167. "H.264",
  14168. "H.265",
  14169. "REAL VIDEO",
  14170. "MKV",
  14171. "WebM",
  14172. "HDDVD",
  14173. "MP4",
  14174. "MPG",
  14175. "M4V",
  14176. "MGV",
  14177. "OGV",
  14178. "QTM",
  14179. "STR",
  14180. "AMC",
  14181. "DVX",
  14182. "EVO",
  14183. "DAT",
  14184. "OGG",
  14185. "OGM",
  14186. ];
  14187. if (type == 1) {
  14188. _this.studyJuri[0].cover.push({
  14189. name: file.name,
  14190. url: data.Location,
  14191. uid: file.uid,
  14192. });
  14193. if (
  14194. c.indexOf(
  14195. _this.studyJuri[0].cover[0].url
  14196. .split(".")
  14197. [
  14198. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14199. ].toLocaleUpperCase()
  14200. ) != -1
  14201. ) {
  14202. _this.fileType = 2;
  14203. } else if (
  14204. b.indexOf(
  14205. _this.studyJuri[0].cover[0].url
  14206. .split(".")
  14207. [
  14208. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14209. ].toLocaleUpperCase()
  14210. ) != -1
  14211. ) {
  14212. _this.fileType = 1;
  14213. } else if (
  14214. photoA.indexOf(
  14215. _this.studyJuri[0].cover[0].url
  14216. .split(".")
  14217. [
  14218. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14219. ].toLocaleUpperCase()
  14220. ) != -1
  14221. ) {
  14222. _this.fileType = 0;
  14223. } else {
  14224. _this.fileType = 3;
  14225. }
  14226. _this.imgChange(null, null, type);
  14227. } else if (type == 2) {
  14228. _this.upToolImg = data.Location;
  14229. _this.imgChange(null, null, type);
  14230. _this.addCourseWorks(i);
  14231. } else if (type == 4) {
  14232. _this.addPz("3", data.Location);
  14233. } else if (type == 5) {
  14234. _this.addImgDrawImG(data.Location);
  14235. } else if (type == 6) {
  14236. var _ftype = 1;
  14237. if (
  14238. c.indexOf(
  14239. data.Location.split(".")[
  14240. data.Location.split(".").length - 1
  14241. ].toLocaleUpperCase()
  14242. ) != -1
  14243. ) {
  14244. _ftype = 5;
  14245. } else if (
  14246. b.indexOf(
  14247. data.Location.split(".")[
  14248. data.Location.split(".").length - 1
  14249. ].toLocaleUpperCase()
  14250. ) != -1
  14251. ) {
  14252. _ftype = 4;
  14253. } else {
  14254. _ftype = 1;
  14255. }
  14256. _this.plworkFile.push({
  14257. name: file.name,
  14258. url: data.Location,
  14259. uid: file.uid,
  14260. fileType: _ftype,
  14261. username:
  14262. _this.plworkFile.length + 1 > 10
  14263. ? _this.plworkFile.length + 1
  14264. : "0" + (_this.plworkFile.length + 1),
  14265. });
  14266. } else if (type == 7) {
  14267. _this.addCourseWorksGong(i, data.Location, 32);
  14268. } else if (type == 8) {
  14269. _this.addCourseWorksGong(i, data.Location, 57);
  14270. }
  14271. _this.imgChange(null, null, type);
  14272. console.log(data.Location);
  14273. // _this.$message.success('上传成功'+data.Location)
  14274. }
  14275. });
  14276. }
  14277. },
  14278. async beforeUpload3(event, type, i) {
  14279. // this.$message.success('进入上传')
  14280. let file = "";
  14281. let cfindex2 = 0;
  14282. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14283. file = event.target.files[cfindex];
  14284. var credentials = {
  14285. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14286. secretAccessKey: "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",
  14287. }; //秘钥形式的登录上传
  14288. window.AWS.config.update(credentials);
  14289. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14290. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14291. var _this = this;
  14292. // _this.progress = 0;
  14293. _this.proVisible2 = true;
  14294. var b = [
  14295. "DOC",
  14296. "DOCX",
  14297. "DOCM",
  14298. "DOTM",
  14299. "DOTX",
  14300. "PPTX",
  14301. "PPSX",
  14302. "PPT",
  14303. "PPS",
  14304. "PPTM",
  14305. "POTM",
  14306. "PPAM",
  14307. "POTX",
  14308. "PPSM",
  14309. ];
  14310. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14311. var photoA = [
  14312. "BMP",
  14313. "GIF",
  14314. "PNG",
  14315. "JPGE",
  14316. "JPG",
  14317. "TIF",
  14318. "PCX",
  14319. "TGA",
  14320. "EXIF",
  14321. "FPX",
  14322. "SVG",
  14323. "APNG",
  14324. ];
  14325. if (
  14326. photoA.indexOf(
  14327. file.name
  14328. .split(".")
  14329. [file.name.split(".").length - 1].toLocaleUpperCase()
  14330. ) != -1 &&
  14331. type != 4
  14332. ) {
  14333. // const blob = await imageConversion.compress(file, 0.8)
  14334. file = await this.pngToWhiteBg(file);
  14335. const blob = await imageConversion.compressAccurately(file, 256);
  14336. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14337. file = new File([blob], file.name, { type: file.type });
  14338. }
  14339. if (file) {
  14340. var params = {
  14341. Key:
  14342. file.name.split(".")[0] +
  14343. new Date().getTime() +
  14344. "." +
  14345. file.name.split(".")[file.name.split(".").length - 1],
  14346. ContentType: file.type,
  14347. Body: file,
  14348. "Access-Control-Allow-Credentials": "*",
  14349. ACL: "public-read",
  14350. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14351. var options = {
  14352. // partSize: 2048 * 1024 * 1024,
  14353. partSize: 1024 * 1024 * 1024,
  14354. queueSize: 2,
  14355. leavePartsOnError: true,
  14356. };
  14357. bucket
  14358. .upload(params, options)
  14359. .on("httpUploadProgress", function (evt) {
  14360. //这里可以写进度条
  14361. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14362. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14363. })
  14364. .send(function (err, data) {
  14365. // _this.progress = 100;
  14366. cfindex2++;
  14367. setTimeout(() => {
  14368. if (
  14369. cfindex2 == event.target.files.length - 1 ||
  14370. cfindex2 > event.target.files.length - 1
  14371. ) {
  14372. _this.proVisible2 = false;
  14373. }
  14374. }, 1000);
  14375. if (err) {
  14376. var a = _this.$refs.upload1.uploadFiles;
  14377. a.splice(a.length - 1, a.length);
  14378. _this.$message.error("上传失败");
  14379. } else {
  14380. // _this.$message.success('上传成功')
  14381. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14382. var c = [
  14383. "AVI",
  14384. "NAVI",
  14385. "MPEG",
  14386. "ASF",
  14387. "MOV",
  14388. "WMV",
  14389. "3GP",
  14390. "RM",
  14391. "RMVB",
  14392. "FLV",
  14393. "F4V",
  14394. "H.264",
  14395. "H.265",
  14396. "REAL VIDEO",
  14397. "MKV",
  14398. "WebM",
  14399. "HDDVD",
  14400. "MP4",
  14401. "MPG",
  14402. "M4V",
  14403. "MGV",
  14404. "OGV",
  14405. "QTM",
  14406. "STR",
  14407. "AMC",
  14408. "DVX",
  14409. "EVO",
  14410. "DAT",
  14411. "OGG",
  14412. "OGM",
  14413. ];
  14414. if (type == 1) {
  14415. _this.studyJuri[0].cover.push({
  14416. name: file.name,
  14417. url: data.Location,
  14418. uid: file.uid,
  14419. });
  14420. if (
  14421. c.indexOf(
  14422. _this.studyJuri[0].cover[0].url
  14423. .split(".")
  14424. [
  14425. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14426. ].toLocaleUpperCase()
  14427. ) != -1
  14428. ) {
  14429. _this.fileType = 2;
  14430. } else if (
  14431. b.indexOf(
  14432. _this.studyJuri[0].cover[0].url
  14433. .split(".")
  14434. [
  14435. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14436. ].toLocaleUpperCase()
  14437. ) != -1
  14438. ) {
  14439. _this.fileType = 1;
  14440. } else {
  14441. _this.fileType = 0;
  14442. }
  14443. _this.imgChange(null, null, type);
  14444. } else if (type == 2) {
  14445. _this.upToolImg = data.Location;
  14446. _this.imgChange(null, null, type);
  14447. _this.addCourseWorks(i);
  14448. } else if (type == 4) {
  14449. _this.addPz("3", data.Location);
  14450. } else if (type == 5) {
  14451. _this.addImgDrawImG(data.Location);
  14452. } else if (type == 6) {
  14453. var _ftype = 1;
  14454. if (
  14455. c.indexOf(
  14456. data.Location.split(".")[
  14457. data.Location.split(".").length - 1
  14458. ].toLocaleUpperCase()
  14459. ) != -1
  14460. ) {
  14461. _ftype = 5;
  14462. } else if (
  14463. b.indexOf(
  14464. data.Location.split(".")[
  14465. data.Location.split(".").length - 1
  14466. ].toLocaleUpperCase()
  14467. ) != -1
  14468. ) {
  14469. _ftype = 4;
  14470. } else {
  14471. _ftype = 1;
  14472. }
  14473. _this.plworkFile.push({
  14474. name: file.name,
  14475. url: data.Location,
  14476. uid: file.uid,
  14477. fileType: _ftype,
  14478. username:
  14479. _this.plworkFile.length + 1 > 9
  14480. ? _this.plworkFile.length + 1
  14481. : "0" + (_this.plworkFile.length + 1),
  14482. });
  14483. }
  14484. _this.imgChange(null, null, type);
  14485. console.log(data.Location);
  14486. // _this.$message.success('上传成功'+data.Location)
  14487. }
  14488. });
  14489. }
  14490. }
  14491. },
  14492. beforeUpload2(event, type) {
  14493. var file = event.target.files[0];
  14494. var credentials = {
  14495. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14496. secretAccessKey: "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",
  14497. }; //秘钥形式的登录上传
  14498. window.AWS.config.update(credentials);
  14499. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14500. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14501. var _this = this;
  14502. _this.progress = 0;
  14503. _this.proVisible = true;
  14504. if (file) {
  14505. var params = {
  14506. Key:
  14507. file.name.split(".")[0] +
  14508. new Date().getTime() +
  14509. "." +
  14510. file.name.split(".")[file.name.split(".").length - 1],
  14511. ContentType: file.type,
  14512. Body: file,
  14513. "Access-Control-Allow-Credentials": "*",
  14514. ACL: "public-read",
  14515. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14516. var options = {
  14517. partSize: 2048 * 1024 * 1024,
  14518. queueSize: 2,
  14519. leavePartsOnError: true,
  14520. };
  14521. bucket
  14522. .upload(params, options)
  14523. .on("httpUploadProgress", function (evt) {
  14524. //这里可以写进度条
  14525. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14526. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14527. })
  14528. .send(function (err, data) {
  14529. _this.progress = 100;
  14530. setTimeout(() => {
  14531. _this.proVisible = false;
  14532. }, 1000);
  14533. if (err) {
  14534. var a = _this.$refs.upload1.uploadFiles;
  14535. a.splice(a.length - 1, a.length);
  14536. _this.$message.error("上传失败");
  14537. } else {
  14538. if (type == 2) {
  14539. _this.studyJuri[0].upVedio.push({
  14540. name: file.name,
  14541. url: data.Location,
  14542. uid: file.uid,
  14543. });
  14544. _this.imgChange(null, null, type);
  14545. } else if (type == 3) {
  14546. _this.studyJuri[0].upFile.push({
  14547. name: file.name,
  14548. url: data.Location,
  14549. uid: file.uid,
  14550. });
  14551. _this.imgChange(null, null, type);
  14552. }
  14553. console.log(data.Location);
  14554. }
  14555. });
  14556. }
  14557. },
  14558. allScrell() {
  14559. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  14560. },
  14561. nextToolindex(type) {
  14562. if (type == "last") {
  14563. if (this.toolIndex == 0) {
  14564. this.$message.error("已经是第一个步骤");
  14565. return;
  14566. }
  14567. this.toolIndex = this.toolIndex - 1;
  14568. this.tool =
  14569. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14570. this.taskCount
  14571. ].toolChoose[this.toolIndex];
  14572. } else if (type == "next") {
  14573. if (
  14574. this.toolIndex ==
  14575. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14576. this.taskCount
  14577. ].toolChoose.length -
  14578. 1
  14579. ) {
  14580. this.$message.error("已经是最后一个步骤");
  14581. return;
  14582. }
  14583. this.toolIndex = this.toolIndex + 1;
  14584. this.tool =
  14585. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14586. this.taskCount
  14587. ].toolChoose[this.toolIndex];
  14588. }
  14589. this.$forceUpdate();
  14590. },
  14591. checkBz(index) {
  14592. this.toolIndex = index;
  14593. this.tool =
  14594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14595. this.taskCount
  14596. ].toolChoose[this.toolIndex];
  14597. this.isUpdateToolDetail = false;
  14598. this.$forceUpdate();
  14599. },
  14600. nextOrpreSteps(t) {
  14601. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14602. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14603. return;
  14604. }
  14605. var b = this.chapInfoList.length - 1;
  14606. if (t == 0) {
  14607. if (this.courseType == 0) {
  14608. if (this.taskCount == 0) {
  14609. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14610. if (this.IsLookOpen) {
  14611. if (
  14612. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14613. ) {
  14614. if (
  14615. this.courseDetail.userid != this.userid &&
  14616. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14617. ) {
  14618. this.$message.error("任务未解锁");
  14619. } else {
  14620. this.$message.error("上一任务未解锁");
  14621. }
  14622. return;
  14623. }
  14624. }
  14625. this.navList[this.courseType].isOpen = false;
  14626. this.courseType = b;
  14627. this.taskCount =
  14628. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14629. .length - 1;
  14630. this.navList[this.courseType].isOpen = true;
  14631. } else {
  14632. this.taskCount--;
  14633. }
  14634. } else {
  14635. if (this.taskCount == 0) {
  14636. this.navList[this.courseType].isOpen = false;
  14637. this.courseType--;
  14638. this.taskCount =
  14639. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14640. .length - 1;
  14641. this.navList[this.courseType].isOpen = true;
  14642. } else {
  14643. this.taskCount--;
  14644. }
  14645. }
  14646. } else {
  14647. if (this.courseType == b) {
  14648. if (
  14649. this.taskCount ==
  14650. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14651. 1
  14652. ) {
  14653. this.navList[this.courseType].isOpen = false;
  14654. this.courseType = 0;
  14655. this.taskCount = 0;
  14656. this.navList[this.courseType].isOpen = true;
  14657. } else {
  14658. var bbb = parseInt(this.taskCount) + 1;
  14659. if (
  14660. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14661. .isLook &&
  14662. this.courseDetail.userid != this.userid &&
  14663. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14664. this.IsLookOpen
  14665. ) {
  14666. this.$message.error("任务未解锁");
  14667. return;
  14668. }
  14669. this.taskCount++;
  14670. if (this.IsLookOpen) {
  14671. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14672. this.taskCount
  14673. ].isLook = true;
  14674. this.addCourseState(3);
  14675. }
  14676. }
  14677. } else {
  14678. if (
  14679. this.taskCount ==
  14680. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14681. 1
  14682. ) {
  14683. var bbb = parseInt(this.courseType) + 1;
  14684. if (
  14685. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14686. this.courseDetail.userid != this.userid &&
  14687. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14688. this.IsLookOpen
  14689. ) {
  14690. this.$message.error("任务未解锁");
  14691. return;
  14692. }
  14693. this.navList[this.courseType].isOpen = false;
  14694. this.courseType++;
  14695. this.taskCount = 0;
  14696. this.navList[this.courseType].isOpen = true;
  14697. } else {
  14698. var bbb = parseInt(this.taskCount) + 1;
  14699. if (
  14700. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14701. .isLook &&
  14702. this.courseDetail.userid != this.userid &&
  14703. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14704. this.IsLookOpen
  14705. ) {
  14706. this.$message.error("任务未解锁");
  14707. return;
  14708. }
  14709. this.taskCount++;
  14710. }
  14711. if (this.IsLookOpen) {
  14712. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14713. this.taskCount
  14714. ].isLook = true;
  14715. this.addCourseState(3);
  14716. }
  14717. }
  14718. }
  14719. document.scrollingElement.scrollTop = 0;
  14720. this.showType = 0;
  14721. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14722. this.toolIndex = null;
  14723. this.isNoHomeWork = false;
  14724. (this.studyJuri = [
  14725. {
  14726. content: "",
  14727. cover: [],
  14728. upVedio: [],
  14729. upFile: [],
  14730. },
  14731. ]),
  14732. (this.radio = []);
  14733. this.isClickNav = "";
  14734. this.selectPz();
  14735. this.getHomeWork();
  14736. this.getCourseDetail();
  14737. this.$forceUpdate();
  14738. },
  14739. openTask(s, n, i) {
  14740. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14741. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14742. return;
  14743. }
  14744. if (this.IsLookOpen) {
  14745. if (
  14746. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14747. this.courseDetail.userid != this.userid &&
  14748. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14749. ) {
  14750. this.$message.error("任务未解锁");
  14751. return;
  14752. }
  14753. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14754. if (
  14755. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14756. .isLook
  14757. ) {
  14758. this.$message.error("上一任务未解锁");
  14759. return;
  14760. }
  14761. } else if (s > this.courseType) {
  14762. if (n > 0) {
  14763. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14764. this.$message.error("上一任务未解锁");
  14765. return;
  14766. }
  14767. } else {
  14768. if (
  14769. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14770. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14771. ].isLook
  14772. ) {
  14773. this.$message.error("上一任务未解锁");
  14774. return;
  14775. }
  14776. }
  14777. }
  14778. }
  14779. this.courseType = s;
  14780. this.navId = i;
  14781. this.taskCount = n;
  14782. if (this.IsLookOpen) {
  14783. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14784. this.taskCount
  14785. ].isLook = true;
  14786. this.addCourseState(3);
  14787. }
  14788. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14789. this.isCloseList[ci].isClose = 0;
  14790. }
  14791. this.showType = 0;
  14792. this.isNoHomeWork = false;
  14793. (this.studyJuri = [
  14794. {
  14795. content: "",
  14796. cover: [],
  14797. upVedio: [],
  14798. upFile: [],
  14799. },
  14800. ]),
  14801. (this.radio = []);
  14802. document.scrollingElement.scrollTop = 0;
  14803. this.toolIndex = null;
  14804. // setTimeout(() => {
  14805. // let a = document.getElementById(i);
  14806. // if (a.offsetTop - 110 == 0) {
  14807. // window.scrollTo(0, 0);
  14808. // } else {
  14809. // window.scrollTo(0, a.offsetTop);
  14810. // }
  14811. // }, 0);
  14812. this.selectPz();
  14813. this.getHomeWork();
  14814. this.getCourseDetail();
  14815. },
  14816. get(i) {
  14817. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14818. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14819. return;
  14820. }
  14821. this.navList[i].isOpen = !this.navList[i].isOpen;
  14822. },
  14823. addQuestion() {
  14824. this.answerList.push({
  14825. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14826. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14827. });
  14828. let params = [
  14829. {
  14830. uid: this.userid,
  14831. cid: this.id,
  14832. stage: this.courseType,
  14833. task: this.taskCount,
  14834. tool: this.toolindex,
  14835. content: JSON.stringify(this.answerList),
  14836. type: 3,
  14837. },
  14838. ];
  14839. this.ajax
  14840. .post(this.$store.state.api + "addCourseWorks", params)
  14841. .then((res) => {
  14842. this.$message({
  14843. message: "提交成功",
  14844. type: "success",
  14845. });
  14846. this.answerList = [];
  14847. this.questionAnswer = "";
  14848. this.answerDialogVisible = false;
  14849. this.selectStudent();
  14850. this.selectSWorks();
  14851. this.selectSLook();
  14852. })
  14853. .catch((err) => {
  14854. this.$message.error("提交失败");
  14855. console.error(err);
  14856. });
  14857. },
  14858. addQuestionTeacher() {
  14859. this.answerList.push({
  14860. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14861. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14862. });
  14863. let params = [
  14864. {
  14865. uid: this.sStudent.userid,
  14866. cid: this.id,
  14867. stage: this.courseType,
  14868. task: this.taskCount,
  14869. tool: this.toolindex,
  14870. content: JSON.stringify(this.answerList),
  14871. type: 3,
  14872. ateacher: this.userid,
  14873. },
  14874. ];
  14875. this.ajax
  14876. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14877. .then((res) => {
  14878. this.$message({
  14879. message: "提交成功",
  14880. type: "success",
  14881. });
  14882. this.answerList = [];
  14883. this.questionAnswer = "";
  14884. this.answerDialogVisibleTeacher = false;
  14885. this.selectStudent();
  14886. this.selectSWorks();
  14887. this.selectSLook();
  14888. })
  14889. .catch((err) => {
  14890. this.$message.error("提交失败");
  14891. console.error(err);
  14892. });
  14893. },
  14894. refreshCourse() {
  14895. this.navList = [];
  14896. this.getCourseDetail(1);
  14897. },
  14898. setPz() {
  14899. if (this.ispzType == 4) {
  14900. this.ispzType = 0;
  14901. this.pzDialog = false;
  14902. return;
  14903. }
  14904. this.ispzType = 4;
  14905. this.pzDialog = true;
  14906. this.selectPz();
  14907. },
  14908. getCourseDetail(type, gindex) {
  14909. let loading;
  14910. if (type != 2 && type != 3) {
  14911. loading = this.$loading.service({
  14912. background: "rgba(255, 255, 255, 0.7)",
  14913. target: document.querySelector(".student_table"),
  14914. });
  14915. }
  14916. let params = {
  14917. courseId: this.id,
  14918. };
  14919. this.ajax
  14920. .get(this.$store.state.api + "selectCourseDetail3", params)
  14921. .then((res) => {
  14922. if (type != 2 && type != 3) {
  14923. loading.close();
  14924. if (
  14925. this.courseType >
  14926. JSON.parse(res.data[0][0].chapters).length - 1
  14927. ) {
  14928. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  14929. }
  14930. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14931. .chapterInfo[0].taskJson;
  14932. var b = [
  14933. "AVI",
  14934. "NAVI",
  14935. "MPEG",
  14936. "ASF",
  14937. "MOV",
  14938. "WMV",
  14939. "3GP",
  14940. "RM",
  14941. "RMVB",
  14942. "FLV",
  14943. "F4V",
  14944. "H.264",
  14945. "H.265",
  14946. "REAL VIDEO",
  14947. "MKV",
  14948. "WebM",
  14949. "HDDVD",
  14950. "MP4",
  14951. "MPG",
  14952. "M4V",
  14953. "MGV",
  14954. "OGV",
  14955. "QTM",
  14956. "STR",
  14957. "AMC",
  14958. "DVX",
  14959. "EVO",
  14960. "DAT",
  14961. "OGG",
  14962. "OGM",
  14963. "MP3",
  14964. ];
  14965. let _chapterData = [];
  14966. for (var i = 0; i < a.length; i++) {
  14967. var c = a[i].chapterData;
  14968. this.vedio[i] = [];
  14969. this.textList[i] = [];
  14970. this.lineList[i] = [];
  14971. this.chapToolList[i] = [];
  14972. this.file[i] = [];
  14973. this.fileC[i] = [];
  14974. _chapterData[i] = c.filter((el) => {
  14975. return el.type != 12;
  14976. });
  14977. this.fileC[i] = c.filter((el) => {
  14978. return el.type == 12;
  14979. });
  14980. for (var j = 0; j < c.length; j++) {
  14981. if (c[j].type == 7) {
  14982. this.chapToolList[i].push(c[j]);
  14983. } else if (c[j].type == 8) {
  14984. this.lineList[i].push(c[j]);
  14985. } else if (c[j].type == 6) {
  14986. this.textList[i].push(c[j]);
  14987. } else {
  14988. if (
  14989. b.indexOf(
  14990. c[j].url
  14991. .split(".")
  14992. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14993. ) != -1
  14994. ) {
  14995. this.vedio[i].push(c[j]);
  14996. } else {
  14997. this.file[i].push(c[j]);
  14998. }
  14999. }
  15000. }
  15001. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15002. d.sources[0].src =
  15003. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15004. this.playerO[i] = d;
  15005. }
  15006. this.courseDetail = res.data[0][0];
  15007. this.tcid = this.arrayToArray(
  15008. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15009. this.tcid2 ? this.tcid2.split(",") : []
  15010. ).join(",");
  15011. console.log(this.tcid);
  15012. this.evalua = res.data[0][0].evaId;
  15013. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15014. this.courseType
  15015. ];
  15016. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15017. if (this.tcid && res.data[1].length) {
  15018. let _inviteA = [];
  15019. for (var ik = 0; ik < res.data[1].length; ik++) {
  15020. _inviteA.push({
  15021. cid: res.data[1][ik].classid,
  15022. ic: res.data[1][ik].code,
  15023. });
  15024. }
  15025. for (var ik = 0; ik < _inviteA.length; ik++) {
  15026. if (
  15027. this.arrayToArray(
  15028. _inviteA[ik].cid.split(","),
  15029. this.tcid.split(",")
  15030. ).length
  15031. ) {
  15032. this.inviteCode = _inviteA[ik].ic;
  15033. break;
  15034. }
  15035. }
  15036. }
  15037. for (var l = 0; l < this.chapInfoList.length; l++) {
  15038. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15039. for (var m = 0; m < w.length; m++) {
  15040. w[m].id = l + "-" + m;
  15041. }
  15042. }
  15043. if (
  15044. _chapterData[this.taskCount].length &&
  15045. _chapterData[this.taskCount][0].type == 2
  15046. ) {
  15047. this.showType = 0;
  15048. } else {
  15049. if (_chapterData[this.taskCount].length > 0) {
  15050. let _url = _chapterData[this.taskCount][0].url;
  15051. if (_chapterData[this.taskCount][0].type == 8) {
  15052. this.showType = 2;
  15053. if (
  15054. _url.indexOf("https://") == -1 &&
  15055. _url.indexOf("http://") == -1
  15056. ) {
  15057. _url = "https://" + _url;
  15058. }
  15059. this.pptImgUrl1 = _url;
  15060. } else if (_chapterData[this.taskCount][0].type == 3) {
  15061. if (
  15062. _url
  15063. .split(".")
  15064. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15065. ) {
  15066. this.showType = 3;
  15067. this.pptImgUrl1 = _url;
  15068. } else if (
  15069. this.isAssetTypeAnImage(
  15070. _url
  15071. .split(".")
  15072. [_url.split(".").length - 1].toLocaleLowerCase()
  15073. )
  15074. ) {
  15075. this.showType = 4;
  15076. this.pptImgUrl1 = _url;
  15077. } else {
  15078. this.showType = 2;
  15079. this.pptImgUrl1 =
  15080. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15081. _url;
  15082. }
  15083. } else if (_chapterData[this.taskCount][0].type == 13) {
  15084. this.showType = 4;
  15085. this.pptImgUrl1 = _url;
  15086. } else if (_chapterData[this.taskCount][0].type == 6) {
  15087. this.showType = 1;
  15088. this.text = this.textList[this.taskCount][0];
  15089. }
  15090. }
  15091. }
  15092. this.isClickNav = 0;
  15093. if (
  15094. !_chapterData[this.taskCount].length ||
  15095. _chapterData[this.taskCount][0].type == 12
  15096. ) {
  15097. this.isClickNav = "";
  15098. this.showType = "";
  15099. }
  15100. this.vChapterData = _chapterData;
  15101. if (
  15102. this.toolIndex == null &&
  15103. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15104. this.taskCount
  15105. ].toolChoose.length
  15106. ) {
  15107. this.toolIndex = 0;
  15108. this.tool =
  15109. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15110. this.taskCount
  15111. ].toolChoose[this.toolIndex];
  15112. }
  15113. } else if (type != 3) {
  15114. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15115. .chapterInfo[0].taskJson;
  15116. var b = [
  15117. "AVI",
  15118. "NAVI",
  15119. "MPEG",
  15120. "ASF",
  15121. "MOV",
  15122. "WMV",
  15123. "3GP",
  15124. "RM",
  15125. "RMVB",
  15126. "FLV",
  15127. "F4V",
  15128. "H.264",
  15129. "H.265",
  15130. "REAL VIDEO",
  15131. "MKV",
  15132. "WebM",
  15133. "HDDVD",
  15134. "MP4",
  15135. "MPG",
  15136. "M4V",
  15137. "MGV",
  15138. "OGV",
  15139. "QTM",
  15140. "STR",
  15141. "AMC",
  15142. "DVX",
  15143. "EVO",
  15144. "DAT",
  15145. "OGG",
  15146. "OGM",
  15147. "MP3",
  15148. ];
  15149. let _chapterData = [];
  15150. for (var i = 0; i < a.length; i++) {
  15151. var c = a[i].chapterData;
  15152. this.vedio[i] = [];
  15153. this.textList[i] = [];
  15154. this.lineList[i] = [];
  15155. this.chapToolList[i] = [];
  15156. this.file[i] = [];
  15157. this.fileC[i] = [];
  15158. _chapterData[i] = c.filter((el) => {
  15159. return el.type != 12;
  15160. });
  15161. this.fileC[i] = c.filter((el) => {
  15162. return el.type == 12;
  15163. });
  15164. for (var j = 0; j < c.length; j++) {
  15165. if (c[j].type == 7) {
  15166. this.chapToolList[i].push(c[j]);
  15167. } else if (c[j].type == 8) {
  15168. this.lineList[i].push(c[j]);
  15169. } else if (c[j].type == 6) {
  15170. this.textList[i].push(c[j]);
  15171. } else {
  15172. if (
  15173. b.indexOf(
  15174. c[j].url
  15175. .split(".")
  15176. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15177. ) != -1
  15178. ) {
  15179. this.vedio[i].push(c[j]);
  15180. } else {
  15181. this.file[i].push(c[j]);
  15182. }
  15183. }
  15184. }
  15185. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15186. d.sources[0].src =
  15187. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15188. this.playerO[i] = d;
  15189. }
  15190. if (
  15191. _chapterData[this.taskCount].length &&
  15192. _chapterData[this.taskCount][0].type == 2
  15193. ) {
  15194. this.showType = 0;
  15195. } else {
  15196. if (_chapterData[this.taskCount].length > 0) {
  15197. let _url = _chapterData[this.taskCount][0].url;
  15198. if (_chapterData[this.taskCount][0].type == 8) {
  15199. this.showType = 2;
  15200. if (
  15201. _url.indexOf("https://") == -1 &&
  15202. _url.indexOf("http://") == -1
  15203. ) {
  15204. _url = "https://" + _url;
  15205. }
  15206. this.pptImgUrl1 = _url;
  15207. } else if (_chapterData[this.taskCount][0].type == 3) {
  15208. if (
  15209. _url
  15210. .split(".")
  15211. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15212. ) {
  15213. this.showType = 3;
  15214. this.pptImgUrl1 = _url;
  15215. } else if (
  15216. this.isAssetTypeAnImage(
  15217. _url
  15218. .split(".")
  15219. [_url.split(".").length - 1].toLocaleLowerCase()
  15220. )
  15221. ) {
  15222. this.showType = 4;
  15223. this.pptImgUrl1 = _url;
  15224. } else {
  15225. this.showType = 2;
  15226. this.pptImgUrl1 =
  15227. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15228. _url;
  15229. }
  15230. } else if (_chapterData[this.taskCount][0].type == 13) {
  15231. this.showType = 4;
  15232. this.pptImgUrl1 = _url;
  15233. } else if (_chapterData[this.taskCount][0].type == 6) {
  15234. this.showType = 1;
  15235. this.text = this.textList[this.taskCount][0];
  15236. }
  15237. }
  15238. }
  15239. this.isClickNav = 0;
  15240. if (
  15241. !_chapterData[this.taskCount].length ||
  15242. _chapterData[this.taskCount][0].type == 12
  15243. ) {
  15244. this.isClickNav = "";
  15245. this.showType = "";
  15246. }
  15247. this.vChapterData = _chapterData;
  15248. this.$forceUpdate();
  15249. }
  15250. this.isUpdateToolDetail = false;
  15251. this.$nextTick(() => {
  15252. setTimeout(() => {
  15253. this.checkEva();
  15254. }, 1000);
  15255. });
  15256. let _this = this;
  15257. if (_this.timer) {
  15258. clearInterval(_this.timer);
  15259. _this.timer = null;
  15260. }
  15261. _this.selectSWorks(gindex);
  15262. _this.selectStudent();
  15263. _this.selectSLook();
  15264. _this.getPick();
  15265. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15266. _this.setCTask();
  15267. }
  15268. if (_this.dialogVisibleGroup) {
  15269. _this.groupJson =
  15270. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15271. _this.taskCount
  15272. ].toolChoose[_this.toolindex].groupJson;
  15273. }
  15274. _this.timer = setInterval(function () {
  15275. if (_this.tcid) {
  15276. _this.getCourseGroup(gindex);
  15277. } else {
  15278. _this.selectSWorks(gindex);
  15279. }
  15280. _this.selectStudent();
  15281. _this.selectSLook();
  15282. _this.getPick();
  15283. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15284. _this.setCTask();
  15285. }
  15286. if (_this.dialogVisibleGroup) {
  15287. _this.groupJson =
  15288. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15289. _this.taskCount
  15290. ].toolChoose[_this.toolindex].groupJson;
  15291. }
  15292. if (_this.tType == 4 || _this.ispzType == 4) {
  15293. _this.selectPz();
  15294. }
  15295. }, 5000);
  15296. })
  15297. .catch((err) => {
  15298. loading.close();
  15299. console.error(err);
  15300. });
  15301. },
  15302. getCourseGroup(gindex) {
  15303. let params = {
  15304. cid: this.id,
  15305. classid: this.tcid ? this.tcid : "1",
  15306. };
  15307. this.ajax
  15308. .get(this.$store.state.api + "getCourseGroup", params)
  15309. .then((res) => {
  15310. if (res.data && res.data[0].length) {
  15311. if (!this.isGroup) {
  15312. let courseGroup = JSON.parse(res.data[0][0].group);
  15313. courseGroup.group = courseGroup.group.filter((el) => {
  15314. el.works = [];
  15315. return el;
  15316. });
  15317. this.courseGroup = courseGroup;
  15318. let groupPerson = res.data[1];
  15319. let group = JSON.parse(res.data[0][0].group).group;
  15320. let courseGroupStudent = {};
  15321. let courseGroupStudentUid = {};
  15322. for (var i = 0; i < group.length; i++) {
  15323. courseGroupStudent[group[i].id] = [];
  15324. courseGroupStudentUid[group[i].id] = [];
  15325. for (var j = 0; j < groupPerson.length; j++) {
  15326. if (groupPerson[j].groupCid == group[i].id) {
  15327. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15328. courseGroupStudentUid[group[i].id].push(
  15329. groupPerson[j].userid
  15330. );
  15331. }
  15332. }
  15333. }
  15334. this.courseGroupStudent = courseGroupStudent;
  15335. this.courseGroupStudentUid = courseGroupStudentUid;
  15336. }
  15337. this.isGroup = true;
  15338. this.selectSWorks(gindex);
  15339. } else {
  15340. this.selectSWorks(gindex);
  15341. this.isGroup = false;
  15342. }
  15343. })
  15344. .catch((err) => {
  15345. // this.$message.error("网络不佳");
  15346. console.error(err);
  15347. });
  15348. },
  15349. setOperationTime() {
  15350. let _this = this;
  15351. if (_this.opertimer) {
  15352. clearInterval(_this.opertimer);
  15353. _this.opertimer = null;
  15354. }
  15355. _this.opertimer = setInterval(() => {
  15356. _this.setoTime("600");
  15357. }, 600000);
  15358. },
  15359. setoTime(time) {
  15360. let params = [
  15361. {
  15362. uid: this.userid,
  15363. cid: this.id,
  15364. type: "2",
  15365. time: time,
  15366. },
  15367. ];
  15368. this.ajax
  15369. .post(this.$store.state.api + "addOperationTimeT2", params)
  15370. .then((res) => {})
  15371. .catch((err) => {
  15372. console.error(err);
  15373. });
  15374. },
  15375. addPz(type, content) {
  15376. if (type == "1" && this.pzConText == "") {
  15377. this.$message.error("批注不能为空!");
  15378. return;
  15379. }
  15380. let params = [
  15381. {
  15382. cid: this.id,
  15383. uid: this.userid,
  15384. s: this.courseType,
  15385. t: this.taskCount,
  15386. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15387. type: type,
  15388. },
  15389. ];
  15390. this.ajax
  15391. .post(this.$store.state.api + "addPz2", params)
  15392. .then((res) => {
  15393. this.$message({
  15394. message: "添加成功",
  15395. type: "success",
  15396. });
  15397. this.pzConText = "";
  15398. this.addPzDialog = false;
  15399. this.selectPz();
  15400. })
  15401. .catch((err) => {
  15402. this.$message.error("添加失败");
  15403. console.error(err);
  15404. });
  15405. },
  15406. deletePz(id) {
  15407. this.$confirm("确定删除此批注吗?", "提示", {
  15408. confirmButtonText: "确定",
  15409. cancelButtonText: "取消",
  15410. type: "warning",
  15411. })
  15412. .then(() => {
  15413. let params = [
  15414. {
  15415. id: id,
  15416. },
  15417. ];
  15418. this.ajax
  15419. .post(this.$store.state.api + "deletePz", params)
  15420. .then((res) => {
  15421. this.$message({
  15422. message: "删除成功",
  15423. type: "success",
  15424. });
  15425. this.selectPz();
  15426. })
  15427. .catch((err) => {
  15428. this.$message.error("网络异常");
  15429. console.error(err);
  15430. });
  15431. })
  15432. .catch(() => {});
  15433. },
  15434. selectPz() {
  15435. let params = {
  15436. cid: this.id,
  15437. s: this.courseType,
  15438. t: this.taskCount,
  15439. };
  15440. this.ajax
  15441. .get(this.$store.state.api + "selectPzList", params)
  15442. .then((res) => {
  15443. this.pzList = res.data[0];
  15444. })
  15445. .catch((err) => {
  15446. console.error(err);
  15447. });
  15448. },
  15449. updateSLook() {
  15450. let params = {
  15451. sopen: this.sIsOpen == false ? 1 : 2,
  15452. cid: this.id,
  15453. };
  15454. this.ajax
  15455. .get(this.$store.state.api + "updateCourseSLook", params)
  15456. .then((res) => {
  15457. if (this.sIsOpen == true) {
  15458. this.$message({
  15459. message: "权限设置成功",
  15460. type: "success",
  15461. });
  15462. } else {
  15463. this.$message({
  15464. message: "权限关闭成功",
  15465. type: "success",
  15466. });
  15467. }
  15468. })
  15469. .catch((err) => {
  15470. console.error(err);
  15471. });
  15472. },
  15473. updateFollow() {
  15474. let params = [
  15475. {
  15476. sopen: this.IsFollow == false ? 1 : 2,
  15477. cid: this.id,
  15478. },
  15479. ];
  15480. this.ajax
  15481. .post(this.$store.state.api + "updateCourseFollow", params)
  15482. .then((res) => {
  15483. if (this.IsFollow == true) {
  15484. this.$message({
  15485. message: "开启成功",
  15486. type: "success",
  15487. });
  15488. } else {
  15489. this.$message({
  15490. message: "关闭成功",
  15491. type: "success",
  15492. });
  15493. }
  15494. this.setCTask();
  15495. })
  15496. .catch((err) => {
  15497. console.error(err);
  15498. });
  15499. },
  15500. setCTask() {
  15501. let params = [
  15502. {
  15503. sopen: this.courseType + "-" + this.taskCount,
  15504. cid: this.id,
  15505. },
  15506. ];
  15507. this.ajax
  15508. .post(this.$store.state.api + "updateCourseFollowC", params)
  15509. .then((res) => {})
  15510. .catch((err) => {
  15511. console.error(err);
  15512. });
  15513. },
  15514. updateLookOpen() {
  15515. let params = [
  15516. {
  15517. sopen: this.IsLookOpen == false ? 1 : 2,
  15518. cid: this.id,
  15519. },
  15520. ];
  15521. this.ajax
  15522. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15523. .then((res) => {
  15524. if (this.IsLookOpen == true) {
  15525. // if (this.courseType != 0 && this.taskCount != 0) {
  15526. // this.openTask(0, 0, "0-0");
  15527. // }
  15528. this.$message({
  15529. message: "权限设置成功",
  15530. type: "success",
  15531. });
  15532. } else {
  15533. this.$message({
  15534. message: "权限关闭成功",
  15535. type: "success",
  15536. });
  15537. }
  15538. this.getCourseState(2);
  15539. })
  15540. .catch((err) => {
  15541. console.error(err);
  15542. });
  15543. },
  15544. selectSLook() {
  15545. let params = {
  15546. cid: this.id,
  15547. };
  15548. this.ajax
  15549. .get(this.$store.state.api + "selectCourseSLook", params)
  15550. .then((res) => {
  15551. // this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15552. this.sIsOpen = true;
  15553. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15554. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15555. if (!this.IsLookOpen) {
  15556. this.setNavList();
  15557. } else {
  15558. this.getCourseState(1);
  15559. }
  15560. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15561. let _followC = res.data[0][0].followC.split("-");
  15562. if (
  15563. this.courseType != _followC[0] ||
  15564. this.taskCount != _followC[1]
  15565. ) {
  15566. this.navList[this.courseType].isOpen = false;
  15567. this.courseType = _followC[0];
  15568. this.navList[this.courseType].isOpen = true;
  15569. this.taskCount = parseInt(_followC[1]);
  15570. this.navId = res.data[0][0].followC;
  15571. this.getCourseDetail();
  15572. }
  15573. }
  15574. })
  15575. .catch((err) => {
  15576. console.error(err);
  15577. });
  15578. },
  15579. setNavList() {
  15580. if (this.navList.length == 0) {
  15581. this.navList = [];
  15582. for (var l = 0; l < this.chapInfoList.length; l++) {
  15583. var q = this.chapInfoList[l].dyName;
  15584. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15585. var e;
  15586. this.navList.push({
  15587. dyName: q,
  15588. isOpen: l === 0 ? true : false,
  15589. task: [],
  15590. });
  15591. for (var r = 0; r < w.length; r++) {
  15592. e = w[r].task;
  15593. if (this.chapInfoList[l].easy == 1) {
  15594. this.navList[l].task.push({
  15595. taskName: q,
  15596. id: l + "-" + r,
  15597. isLook: w[r].isLook,
  15598. });
  15599. } else {
  15600. this.navList[l].task.push({
  15601. taskName: e,
  15602. id: l + "-" + r,
  15603. isLook: w[r].isLook,
  15604. });
  15605. }
  15606. // this.navId = this.navId ? this.navId : l + "-" + r;
  15607. // this.navId = l + "-" + r;
  15608. }
  15609. }
  15610. this.navList[0].isOpen = false;
  15611. this.navList[this.courseType].isOpen = true;
  15612. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15613. } else {
  15614. this.setNavList2();
  15615. }
  15616. },
  15617. setNavList2() {
  15618. for (var l = 0; l < this.chapInfoList.length; l++) {
  15619. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15620. for (var r = 0; r < w.length; r++) {
  15621. this.navList[l].task[r].isLook = w[r].isLook;
  15622. }
  15623. }
  15624. if (
  15625. this.IsLookOpen &&
  15626. !this.navList[this.courseType].task[this.taskCount].isLook
  15627. ) {
  15628. this.openTask(0, 0, "0-0");
  15629. }
  15630. this.$forceUpdate();
  15631. },
  15632. getCourseState(type) {
  15633. let params = {
  15634. cid: this.id,
  15635. };
  15636. this.ajax
  15637. .get(this.$store.state.api + "getCourseState", params)
  15638. .then((res) => {
  15639. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15640. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15641. this.setNavList();
  15642. this.$forceUpdate();
  15643. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15644. this.addCourseState(2);
  15645. } else {
  15646. this.addCourseState(1);
  15647. }
  15648. })
  15649. .catch((err) => {
  15650. console.error(err);
  15651. });
  15652. },
  15653. addCourseState(type) {
  15654. let _state = this.chapInfoList;
  15655. // this.courseType this.taskCount
  15656. if (type == 1 || type == 2) {
  15657. for (var i = 0; i < _state.length; i++) {
  15658. let el = _state[i].chapterInfo[0].taskJson;
  15659. for (var j = 0; j < el.length; j++) {
  15660. // if (i == 0 && j == 0) {
  15661. // el[j].isLook = true;
  15662. // } else {
  15663. // el[j].isLook = false;
  15664. // }
  15665. if (
  15666. this.courseType > i ||
  15667. (this.courseType == i && this.taskCount + 1 > j)
  15668. ) {
  15669. el[j].isLook = true;
  15670. } else {
  15671. el[j].isLook = false;
  15672. }
  15673. }
  15674. }
  15675. }
  15676. let params = [
  15677. {
  15678. cid: this.id,
  15679. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15680. },
  15681. ];
  15682. this.ajax
  15683. .post(
  15684. this.$store.state.api +
  15685. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15686. params
  15687. )
  15688. .then((res) => {
  15689. if (this.IsLookOpen) {
  15690. this.setNavList();
  15691. }
  15692. if (type == 3 && type == 2) {
  15693. this.getCourseState(1);
  15694. }
  15695. })
  15696. .catch((err) => {
  15697. console.error(err);
  15698. });
  15699. },
  15700. getHomeWork() {
  15701. let params = {
  15702. cid: this.id,
  15703. stage: this.courseType,
  15704. task: this.taskCount,
  15705. uid: this.userid,
  15706. };
  15707. this.ajax
  15708. .get(this.$store.state.api + "selectWork", params)
  15709. .then((res) => {
  15710. if (res.data[0].length > 0) {
  15711. this.studyJuri = JSON.parse(res.data[0][0].content);
  15712. this.isNoHomeWork = true;
  15713. }
  15714. })
  15715. .catch((err) => {
  15716. console.error(err);
  15717. });
  15718. },
  15719. isAssetTypeAnImage(ext) {
  15720. return (
  15721. [
  15722. "png",
  15723. "jpg",
  15724. "jpeg",
  15725. "bmp",
  15726. "gif",
  15727. "webp",
  15728. "psd",
  15729. "svg",
  15730. "tiff",
  15731. ].indexOf(ext) !== -1
  15732. );
  15733. },
  15734. switchVideo(media) {
  15735. this.playerO = {};
  15736. this.playerOptions.poster = "";
  15737. this.playerOptions.sources[0].src = media;
  15738. this.playerO = this.playerOptions;
  15739. },
  15740. onPlayerPlay() {},
  15741. lookVedio(u, i) {
  15742. this.isClickNav = "";
  15743. // this.playerOptions.sources[0].src = u;
  15744. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15745. d.sources[0].src = u;
  15746. this.playerO[this.taskCount] = d;
  15747. this.showType = 0;
  15748. // this.isClickNav = "video" + i;
  15749. this.isClickNav = i;
  15750. this.$forceUpdate();
  15751. },
  15752. lookText(i, t) {
  15753. this.isClickNav = "";
  15754. // this.text = this.textList[i][t];
  15755. this.text = this.vChapterData[i][t];
  15756. // this.dialogVisible1 = true;
  15757. this.showType = 1;
  15758. // this.isClickNav = "text" + t;
  15759. this.isClickNav = t;
  15760. },
  15761. lookTools(i, t) {
  15762. this.chapTools = this.chapToolList[i][t];
  15763. this.dialogVisible2 = true;
  15764. },
  15765. openFile(f) {
  15766. this.pptImgUrl = "";
  15767. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15768. if (
  15769. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  15770. -1
  15771. ) {
  15772. this.pptImgUrl =
  15773. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  15774. this.showPDF = false;
  15775. this.dialogVisible3 = true;
  15776. } else if (
  15777. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15778. ) {
  15779. this.pptImgUrl = f;
  15780. this.showPDF = true;
  15781. this.dialogVisible3 = true;
  15782. }
  15783. },
  15784. openTable(f) {
  15785. this.tableJson = JSON.parse(f.works);
  15786. this.$forceUpdate();
  15787. this.dialogVisibleTable2 = true;
  15788. },
  15789. openWord(f) {
  15790. this.tableJson = JSON.parse(f.works);
  15791. this.$forceUpdate();
  15792. this.dialogVisibleTable3 = true;
  15793. },
  15794. doUrl(url, i) {
  15795. this.isClickNav = "";
  15796. this.pptImgUrl1 = "";
  15797. this.showType = 2;
  15798. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  15799. url = "https://" + url;
  15800. }
  15801. this.pptImgUrl1 = url;
  15802. // this.isClickNav = "line" + i;
  15803. this.isClickNav = i;
  15804. },
  15805. checkPhoto(f, i) {
  15806. this.showType = 4;
  15807. this.pptImgUrl1 = f.url;
  15808. this.isClickNav = i;
  15809. this.$forceUpdate();
  15810. },
  15811. downFile(f, i) {
  15812. this.isClickNav = "";
  15813. this.pptImgUrl1 = "";
  15814. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  15815. if (
  15816. a.indexOf(
  15817. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  15818. ) != -1
  15819. ) {
  15820. this.pptImgUrl1 =
  15821. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  15822. // this.dialogVisible3 = true;
  15823. this.showType = 2;
  15824. } else if (
  15825. this.isAssetTypeAnImage(
  15826. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  15827. )
  15828. ) {
  15829. this.showType = 4;
  15830. this.pptImgUrl1 = f.url;
  15831. } else if (
  15832. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  15833. "PDF"
  15834. ) {
  15835. this.pptImgUrl1 = f.url;
  15836. // this.dialogVisible3 = true;
  15837. this.showType = 3;
  15838. } else {
  15839. window.open(this.file[i].url);
  15840. }
  15841. // this.isClickNav = "word" + i;
  15842. this.isClickNav = i;
  15843. },
  15844. downFileList(i) {
  15845. window.open(this.noImgList[i].url);
  15846. },
  15847. openAddWork() {
  15848. this.dialogVisible = true;
  15849. },
  15850. addBzWorks() {
  15851. let params = [
  15852. {
  15853. uid: this.userid,
  15854. cid: this.id,
  15855. stage: this.courseType,
  15856. task: this.taskCount,
  15857. tool: this.toolindex,
  15858. content: JSON.stringify(this.eScore),
  15859. type: 6,
  15860. },
  15861. ];
  15862. this.ajax
  15863. .post(this.$store.state.api + "addCourseWorks", params)
  15864. .then((res) => {
  15865. this.$message({
  15866. message: "提交成功",
  15867. type: "success",
  15868. });
  15869. this.eScore = { eBzText: "", eStar: [] };
  15870. this.studentEvalDialogVisible = false;
  15871. this.selectSWorks();
  15872. })
  15873. .catch((err) => {
  15874. this.$message.error("提交失败");
  15875. console.error(err);
  15876. });
  15877. },
  15878. addBzWorksTeacher() {
  15879. let params = [
  15880. {
  15881. uid: this.sStudent.userid,
  15882. cid: this.id,
  15883. stage: this.courseType,
  15884. task: this.taskCount,
  15885. tool: this.toolindex,
  15886. content: JSON.stringify(this.eScore),
  15887. type: 6,
  15888. },
  15889. ];
  15890. this.ajax
  15891. .post(this.$store.state.api + "addCourseWorks", params)
  15892. .then((res) => {
  15893. this.$message({
  15894. message: "提交成功",
  15895. type: "success",
  15896. });
  15897. this.eScore = { eBzText: "", eStar: [] };
  15898. this.studentEvalDialogVisibleTeacher = false;
  15899. this.selectSWorks();
  15900. })
  15901. .catch((err) => {
  15902. this.$message.error("提交失败");
  15903. console.error(err);
  15904. });
  15905. },
  15906. addStudentAsk() {
  15907. if (!this.radio.length) {
  15908. this.$message.error("请选择选项");
  15909. return;
  15910. }
  15911. for (var i = 0; i < this.askJson.askCount; i++) {
  15912. if (
  15913. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15914. (this.radio[i] !== 0 && !this.radio[i])
  15915. ) {
  15916. this.$message.error("请选择选项");
  15917. return;
  15918. }
  15919. }
  15920. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15921. let params = [
  15922. {
  15923. uid: this.userid,
  15924. cid: this.id,
  15925. stage: this.courseType,
  15926. task: this.taskCount,
  15927. tool: this.toolindex,
  15928. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15929. type: 2,
  15930. },
  15931. ];
  15932. this.ajax
  15933. .post(this.$store.state.api + "addCourseWorks", params)
  15934. .then((res) => {
  15935. this.$message({
  15936. message: "提交成功",
  15937. type: "success",
  15938. });
  15939. this.askList = [];
  15940. this.dialogVisible5 = false;
  15941. this.selectStudent();
  15942. this.selectSWorks();
  15943. this.selectSLook();
  15944. })
  15945. .catch((err) => {
  15946. this.$message.error("提交失败");
  15947. console.error(err);
  15948. });
  15949. },
  15950. addStudentAskTeacher() {
  15951. if (!this.radio.length) {
  15952. this.$message.error("请选择选项");
  15953. return;
  15954. }
  15955. for (var i = 0; i < this.askJson.askCount; i++) {
  15956. if (
  15957. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15958. (this.radio[i] !== 0 && !this.radio[i])
  15959. ) {
  15960. this.$message.error("请选择选项");
  15961. return;
  15962. }
  15963. }
  15964. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15965. let params = [
  15966. {
  15967. uid: this.sStudent.userid,
  15968. cid: this.id,
  15969. stage: this.courseType,
  15970. task: this.taskCount,
  15971. tool: this.toolindex,
  15972. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15973. type: 2,
  15974. },
  15975. ];
  15976. this.ajax
  15977. .post(this.$store.state.api + "addCourseWorks", params)
  15978. .then((res) => {
  15979. this.$message({
  15980. message: "提交成功",
  15981. type: "success",
  15982. });
  15983. this.askList = [];
  15984. this.dialogVisible5Teacher = false;
  15985. this.selectStudent();
  15986. this.selectSWorks();
  15987. this.selectSLook();
  15988. })
  15989. .catch((err) => {
  15990. this.$message.error("提交失败");
  15991. console.error(err);
  15992. });
  15993. },
  15994. addStudentTest() {
  15995. if (!this.radio.length) {
  15996. this.$message.error("请选择选项");
  15997. return;
  15998. }
  15999. for (var i = 0; i < this.testJson.testCount; i++) {
  16000. if (
  16001. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16002. (this.radio[i] !== 0 && !this.radio[i])
  16003. ) {
  16004. this.$message.error("请选择选项");
  16005. return;
  16006. }
  16007. }
  16008. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16009. let params = [
  16010. {
  16011. uid: this.userid,
  16012. cid: this.id,
  16013. stage: this.courseType,
  16014. task: this.taskCount,
  16015. tool: this.toolindex,
  16016. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16017. type: 8,
  16018. },
  16019. ];
  16020. this.ajax
  16021. .post(this.$store.state.api + "addCourseWorks", params)
  16022. .then((res) => {
  16023. this.$message({
  16024. message: "提交成功",
  16025. type: "success",
  16026. });
  16027. this.askList = [];
  16028. this.dialogVisibleChoice = false;
  16029. this.selectStudent();
  16030. this.selectSWorks();
  16031. this.selectSLook();
  16032. })
  16033. .catch((err) => {
  16034. this.$message.error("提交失败");
  16035. console.error(err);
  16036. });
  16037. },
  16038. addStudentTestTeacher() {
  16039. if (!this.radio.length) {
  16040. this.$message.error("请选择选项");
  16041. return;
  16042. }
  16043. for (var i = 0; i < this.testJson.testCount; i++) {
  16044. if (
  16045. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16046. (this.radio[i] !== 0 && !this.radio[i])
  16047. ) {
  16048. this.$message.error("请选择选项");
  16049. return;
  16050. }
  16051. }
  16052. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16053. let params = [
  16054. {
  16055. uid: this.sStudent.userid,
  16056. cid: this.id,
  16057. stage: this.courseType,
  16058. task: this.taskCount,
  16059. tool: this.toolindex,
  16060. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16061. type: 8,
  16062. },
  16063. ];
  16064. this.ajax
  16065. .post(this.$store.state.api + "addCourseWorks", params)
  16066. .then((res) => {
  16067. this.$message({
  16068. message: "提交成功",
  16069. type: "success",
  16070. });
  16071. this.askList = [];
  16072. this.dialogVisibleChoiceTeacher = false;
  16073. this.selectStudent();
  16074. this.selectSWorks();
  16075. this.selectSLook();
  16076. })
  16077. .catch((err) => {
  16078. this.$message.error("提交失败");
  16079. console.error(err);
  16080. });
  16081. },
  16082. addWork() {
  16083. if (this.studyJuri[0].content == "") {
  16084. this.$message.error("请将信息填写完整");
  16085. return;
  16086. } else if (this.studyJuri[0].cover.length == 0) {
  16087. this.$message.error("请将信息填写完整");
  16088. return;
  16089. } else if (this.studyJuri[0].upVedio.length == 0) {
  16090. this.$message.error("请将信息填写完整");
  16091. return;
  16092. }
  16093. if (this.isNoHomeWork) {
  16094. this.$confirm(
  16095. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16096. "提示",
  16097. {
  16098. confirmButtonText: "确定",
  16099. cancelButtonText: "取消",
  16100. type: "warning",
  16101. }
  16102. )
  16103. .then(() => {
  16104. let params = [
  16105. {
  16106. uid: this.userid,
  16107. cid: this.id,
  16108. stage: this.courseType,
  16109. task: this.taskCount,
  16110. content: JSON.stringify(this.studyJuri),
  16111. },
  16112. ];
  16113. this.ajax
  16114. .post(this.$store.state.api + "addWorks", params)
  16115. .then((res) => {
  16116. this.$message({
  16117. message: "提交成功",
  16118. type: "success",
  16119. });
  16120. this.isNoHomeWork = true;
  16121. this.dialogVisible = false;
  16122. })
  16123. .catch((err) => {
  16124. this.$message.error("提交失败");
  16125. console.error(err);
  16126. });
  16127. })
  16128. .catch(() => {});
  16129. } else {
  16130. let params = [
  16131. {
  16132. uid: this.userid,
  16133. cid: this.id,
  16134. stage: this.courseType,
  16135. task: this.taskCount,
  16136. content: JSON.stringify(this.studyJuri),
  16137. },
  16138. ];
  16139. this.ajax
  16140. .post(this.$store.state.api + "addWorks", params)
  16141. .then((res) => {
  16142. this.$message({
  16143. message: "提交成功",
  16144. type: "success",
  16145. });
  16146. this.isNoHomeWork = true;
  16147. this.dialogVisible = false;
  16148. })
  16149. .catch((err) => {
  16150. this.$message.error("提交失败");
  16151. console.error(err);
  16152. });
  16153. }
  16154. },
  16155. selectCount() {
  16156. let params = {
  16157. cid: this.id,
  16158. chid: this.courseType,
  16159. uid: this.userid,
  16160. };
  16161. this.ajax
  16162. .get(this.$store.state.api + "selectToolsCount", params)
  16163. .then((res) => {
  16164. for (var i = 0; i < res.data[0].length; i++) {
  16165. if (res.data[0][i].tools == 1) {
  16166. this.wbCount = res.data[0][i].count;
  16167. } else if (res.data[0][i].tools == 2) {
  16168. this.wordCount = res.data[0][i].count;
  16169. } else if (res.data[0][i].tools == 3) {
  16170. this.mindCount = res.data[0][i].count;
  16171. } else if (res.data[0][i].tools == 4) {
  16172. this.askCount = res.data[0][i].count;
  16173. } else if (res.data[0][i].tools == 6) {
  16174. this.noteCount = res.data[0][i].count;
  16175. } else if (res.data[0][i].tools == 7) {
  16176. this.mindNetWorkCount = res.data[0][i].count;
  16177. } else if (res.data[0][i].tools == 8) {
  16178. this.libraryCount = res.data[0][i].count;
  16179. } else if (res.data[0][i].tools == 16) {
  16180. this.workCount = res.data[0][i].count;
  16181. } else if (res.data[0][i].tools == 10) {
  16182. this.timeCount = res.data[0][i].count;
  16183. } else if (res.data[0][i].tools == 15) {
  16184. this.answerCount = res.data[0][i].count;
  16185. } else if (res.data[0][i].tools == 18) {
  16186. this.trainCount = res.data[0][i].count;
  16187. }
  16188. }
  16189. })
  16190. .catch((err) => {
  16191. console.error(err);
  16192. });
  16193. },
  16194. openTools(t, i, index, c, sName) {
  16195. var z = JSON.parse(c);
  16196. this.noteName = sName;
  16197. if (t == 4) {
  16198. this.radio = [];
  16199. this.isAnswer = false;
  16200. let b = z[0].anwer;
  16201. this.radio = b;
  16202. this.askJson = z[0].askJson;
  16203. this.isAnswer = true;
  16204. this.dialogVisible5 = true;
  16205. } else if (t == 45) {
  16206. this.radio = [];
  16207. this.isAnswer = false;
  16208. let b = z[0].anwer;
  16209. this.radio = b;
  16210. this.testJson = z[0].testJson;
  16211. this.isAnswer = true;
  16212. this.dialogVisibleChoice = true;
  16213. }
  16214. // else if (t == 15) {
  16215. // this.answerQ = "";
  16216. // this.questionAnswer = "";
  16217. // this.answerQ = z[0].answerTitle;
  16218. // this.questionAnswer = z[0].answer;
  16219. // this.answerDialogVisible = true;
  16220. // }
  16221. },
  16222. fastText(p, t) {
  16223. if (t == 1) {
  16224. this.commentText += p;
  16225. } else {
  16226. this.eScore.eBzText += p;
  16227. }
  16228. },
  16229. addTools(t, i, index) {
  16230. var a = 0;
  16231. // this.taskCount = index;
  16232. this.toolindex = i;
  16233. if (t == 1) {
  16234. if (this.wbCount > 0) {
  16235. this.updateCount(this.wbCount, t);
  16236. } else {
  16237. this.wbCount++;
  16238. a = this.wbCount;
  16239. this.toolsCount(a, t);
  16240. }
  16241. window.parent.postMessage(
  16242. {
  16243. tools: "1",
  16244. cid: this.id,
  16245. stage: this.courseType,
  16246. task: this.taskCount,
  16247. tool: i,
  16248. },
  16249. "*"
  16250. );
  16251. } else if (t == 2) {
  16252. if (this.wordCount > 0) {
  16253. this.updateCount(this.wordCount, t);
  16254. } else {
  16255. this.wordCount++;
  16256. a = this.wordCount;
  16257. this.toolsCount(a, t);
  16258. }
  16259. window.parent.postMessage({ tools: "2" }, "*");
  16260. } else if (t == 3) {
  16261. if (this.mindCount > 0) {
  16262. this.updateCount(this.mindCount, t);
  16263. } else {
  16264. this.mindCount++;
  16265. a = this.mindCount;
  16266. this.toolsCount(a, t);
  16267. }
  16268. window.parent.postMessage(
  16269. {
  16270. tools: "3",
  16271. cid: this.id,
  16272. stage: this.courseType,
  16273. task: this.taskCount,
  16274. tool: i,
  16275. },
  16276. "*"
  16277. );
  16278. } else if (t == 4) {
  16279. this.radio = [];
  16280. this.noteName = "";
  16281. this.isAnswer = false;
  16282. if (this.askCount > 0) {
  16283. this.updateCount(this.askCount, t);
  16284. } else {
  16285. this.askCount++;
  16286. a = this.askCount;
  16287. this.toolsCount(a, t);
  16288. }
  16289. this.askJson.askJson =
  16290. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16291. index
  16292. ].toolChoose[i].askJson;
  16293. this.askJson.askTitle =
  16294. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16295. index
  16296. ].toolChoose[i].askTitle;
  16297. this.askJson.askCount =
  16298. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16299. index
  16300. ].toolChoose[i].askCount;
  16301. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16302. if (this.askJson.askJson[k].type == "2") {
  16303. this.radio.push([]);
  16304. } else {
  16305. this.radio.push("");
  16306. }
  16307. }
  16308. this.dialogVisible5 = true;
  16309. // window.parent.postMessage({ tools: "4" }, "*");
  16310. } else if (t == 45) {
  16311. this.noteName = "";
  16312. this.radio = [];
  16313. this.isAnswer = false;
  16314. if (this.askCount > 0) {
  16315. this.updateCount(this.askCount, t);
  16316. } else {
  16317. this.askCount++;
  16318. a = this.askCount;
  16319. this.toolsCount(a, t);
  16320. }
  16321. this.testJson =
  16322. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16323. index
  16324. ].toolChoose[i].testJson;
  16325. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16326. if (this.testJson.testJson[k].type == "2") {
  16327. this.radio.push([]);
  16328. } else {
  16329. this.radio.push("");
  16330. }
  16331. }
  16332. this.dialogVisibleChoice = true;
  16333. // window.parent.postMessage({ tools: "4" }, "*");
  16334. } else if (t == 5) {
  16335. if (this.scoreCount > 0) {
  16336. this.updateCount(this.scoreCount, t);
  16337. } else {
  16338. this.scoreCount++;
  16339. a = this.scoreCount;
  16340. this.toolsCount(a, t);
  16341. }
  16342. this.dialogVisible4 = true;
  16343. // window.parent.postMessage({ tools: "5" }, "*");
  16344. } else if (t == 6) {
  16345. if (this.noteCount > 0) {
  16346. this.updateCount(this.noteCount, t);
  16347. } else {
  16348. this.noteCount++;
  16349. a = this.noteCount;
  16350. this.toolsCount(a, t);
  16351. }
  16352. window.parent.postMessage(
  16353. {
  16354. tools: "6",
  16355. cid: this.id,
  16356. stage: this.courseType,
  16357. task: this.taskCount,
  16358. tool: i,
  16359. },
  16360. "*"
  16361. );
  16362. } else if (t == 7) {
  16363. if (this.mindNetWorkCount > 0) {
  16364. this.updateCount(this.mindNetWorkCount, t);
  16365. } else {
  16366. this.mindNetWorkCount++;
  16367. a = this.mindNetWorkCount;
  16368. this.toolsCount(a, t);
  16369. }
  16370. window.parent.postMessage(
  16371. {
  16372. tools: "7",
  16373. cid: this.id,
  16374. stage: this.courseType,
  16375. task: this.taskCount,
  16376. tool: i,
  16377. },
  16378. "*"
  16379. );
  16380. } else if (t == 16) {
  16381. if (this.workCount > 0) {
  16382. this.updateCount(this.workCount, t);
  16383. } else {
  16384. this.workCount++;
  16385. a = this.workCount;
  16386. this.toolsCount(a, t);
  16387. }
  16388. this.dialogVisible = true;
  16389. } else if (t == 50) {
  16390. if (this.tType == 2) {
  16391. this.$message.error("不支持学生使用");
  16392. return;
  16393. }
  16394. this.plworkFile = [];
  16395. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16396. if (!this.uploadCid) {
  16397. this.$message.error(
  16398. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16399. );
  16400. return;
  16401. }
  16402. this.selectUploadStudent(2);
  16403. } else if (t == 8) {
  16404. if (this.libraryCount > 0) {
  16405. this.updateCount(this.libraryCount, t);
  16406. } else {
  16407. this.libraryCount++;
  16408. a = this.libraryCount;
  16409. this.toolsCount(a, t);
  16410. }
  16411. window.parent.postMessage({ tools: "8" }, "*");
  16412. } else if (t == 17) {
  16413. if (this.libraryCount > 0) {
  16414. this.updateCount(this.libraryCount, t);
  16415. } else {
  16416. this.libraryCount++;
  16417. a = this.libraryCount;
  16418. this.toolsCount(a, t);
  16419. }
  16420. window.parent.postMessage({ tools: "17" }, "*");
  16421. } else if (t == 18) {
  16422. if (this.trainCount > 0) {
  16423. this.updateCount(this.trainCount, t);
  16424. } else {
  16425. this.trainCount++;
  16426. a = this.trainCount;
  16427. this.toolsCount(a, t);
  16428. }
  16429. window.parent.postMessage({ tools: "18" }, "*");
  16430. } else if (t == 10) {
  16431. if (this.timeCount > 0) {
  16432. this.updateCount(this.timeCount, t);
  16433. } else {
  16434. this.timeCount++;
  16435. a = this.timeCount;
  16436. this.toolsCount(a, t);
  16437. }
  16438. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16439. .taskJson[index].toolChoose[i].preTime
  16440. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16441. .toolChoose[i].preTime
  16442. : "";
  16443. this.timeDialogVisible = true;
  16444. } else if (t == 15) {
  16445. this.answerQ = "";
  16446. this.questionAnswer = "";
  16447. if (this.answerCount > 0) {
  16448. this.updateCount(this.answerCount, t);
  16449. } else {
  16450. this.answerCount++;
  16451. a = this.answerCount;
  16452. this.toolsCount(a, t);
  16453. }
  16454. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16455. .taskJson[index].toolChoose[i].answerQ
  16456. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16457. .toolChoose[i].answerQ
  16458. : "";
  16459. this.answerDialogVisible = true;
  16460. } else if (t == 21) {
  16461. window.parent.postMessage({ tools: "21" }, "*");
  16462. } else if (t == 22) {
  16463. window.parent.postMessage({ tools: "22" }, "*");
  16464. } else if (t == 23) {
  16465. window.parent.postMessage({ tools: "23" }, "*");
  16466. } else if (t == 24) {
  16467. window.parent.postMessage({ tools: "24" }, "*");
  16468. } else if (t == 25) {
  16469. window.parent.postMessage({ tools: "25" }, "*");
  16470. } else if (t == 31) {
  16471. window.parent.postMessage({ tools: "31" }, "*");
  16472. } else if (t == 28) {
  16473. window.parent.postMessage({ tools: "28" }, "*");
  16474. } else if (t == 37) {
  16475. window.parent.postMessage({ tools: "37" }, "*");
  16476. } else if (t == 38) {
  16477. window.parent.postMessage({ tools: "38" }, "*");
  16478. } else if (t == 39) {
  16479. window.parent.postMessage({ tools: "39" }, "*");
  16480. } else if (t == 32) {
  16481. window.parent.postMessage({ tools: "32" }, "*");
  16482. } else if (t == 66) {
  16483. window.parent.postMessage({ tools: "66" }, "*");
  16484. } else if (t == 67) {
  16485. window.parent.postMessage({ tools: "67" }, "*");
  16486. } else if (t == 68) {
  16487. window.parent.postMessage({ tools: "68" }, "*");
  16488. } else if (t == 57) {
  16489. // window.parent.postMessage({ tools: "57" }, "*");
  16490. window.parent.postMessage(
  16491. {
  16492. tools: "57u",
  16493. cid: this.id,
  16494. stage: this.courseType,
  16495. task: this.taskCount,
  16496. tool: i,
  16497. },
  16498. "*"
  16499. );
  16500. } else if (t == 58) {
  16501. window.parent.postMessage({ tools: "58" }, "*");
  16502. } else if (t == 59) {
  16503. window.parent.postMessage({ tools: "59" }, "*");
  16504. } else if (t == 60) {
  16505. window.parent.postMessage({ tools: "60" }, "*");
  16506. } else if (t == 61) {
  16507. window.parent.postMessage({ tools: "61" }, "*");
  16508. } else if (t == 63) {
  16509. window.parent.postMessage({ tools: "63" }, "*");
  16510. } else if (t == 65) {
  16511. if (this.tType == 2) {
  16512. this.$message.error("不支持学生使用");
  16513. return;
  16514. }
  16515. this.uploadCid = this.tcid;
  16516. if (!this.uploadCid) {
  16517. this.$message.error(
  16518. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  16519. );
  16520. return;
  16521. }
  16522. this.selectPickStudent();
  16523. } else if (t == 26) {
  16524. window.parent.postMessage(
  16525. {
  16526. tools: "26",
  16527. cid: this.id,
  16528. stage: this.courseType,
  16529. task: this.taskCount,
  16530. tool: i,
  16531. },
  16532. "*"
  16533. );
  16534. } else if (t == 40) {
  16535. if (this.evalCount > 0) {
  16536. this.updateCount(this.evalCount, t);
  16537. } else {
  16538. this.evalCount++;
  16539. a = this.evalCount;
  16540. this.toolsCount(a, t);
  16541. }
  16542. this.eScore = { eBzText: "", eStar: [] };
  16543. if (this.worksStudent[i].length) {
  16544. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16545. if (this.userid == this.worksStudent[i][k].userid) {
  16546. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16547. this.rateJson =
  16548. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16549. index
  16550. ].toolChoose[i].rateJson;
  16551. break;
  16552. } else {
  16553. this.rateJson =
  16554. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16555. index
  16556. ].toolChoose[i].rateJson;
  16557. }
  16558. }
  16559. } else {
  16560. this.rateJson =
  16561. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16562. index
  16563. ].toolChoose[i].rateJson;
  16564. }
  16565. this.isStar = false;
  16566. this.studentEvalDialogVisible = true;
  16567. } else if (t == 41) {
  16568. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16569. .taskJson[index].toolChoose[i].selectJson
  16570. ? JSON.parse(
  16571. JSON.stringify(
  16572. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16573. index
  16574. ].toolChoose[i].selectJson
  16575. )
  16576. )
  16577. : { url: "", select: [], answer: [] };
  16578. if (this.worksStudent[i].length) {
  16579. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16580. if (this.userid == this.worksStudent[i][k].userid) {
  16581. var a = this.worksStudent[i][k].works.split(",");
  16582. for (var ki = 0; ki < a.length; ki++) {
  16583. a[ki] = parseInt(a[ki]);
  16584. }
  16585. this.selectAnswer = {
  16586. answer: a,
  16587. stu: this.worksStudent[i][k].sName,
  16588. };
  16589. break;
  16590. } else {
  16591. this.selectAnswer = { answer: [], stu: "" };
  16592. }
  16593. }
  16594. } else {
  16595. this.selectAnswer = { answer: [], stu: "" };
  16596. }
  16597. this.isSelect = false;
  16598. this.dialogVisibleSelect = true;
  16599. } else if (t == 44) {
  16600. window.parent.postMessage({ tools: "44" }, "*");
  16601. } else if (t == 47) {
  16602. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16603. .taskJson[index].toolChoose[i].sentenceList
  16604. ? JSON.parse(
  16605. JSON.stringify(
  16606. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16607. index
  16608. ].toolChoose[i].sentenceList
  16609. )
  16610. )
  16611. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16612. for (var q = 0; q < this.sentenceList.length; q++) {
  16613. this.sentenceList[q].chooseSenList = [];
  16614. this.sentenceList[q].addChangeSen = [];
  16615. this.sentenceList[q].addChangeSen = JSON.parse(
  16616. JSON.stringify(this.sentenceList[q].addSentence)
  16617. );
  16618. this.sentenceList[q].chooseSenList.length =
  16619. this.sentenceList[q].rightAnswer.length;
  16620. }
  16621. this.dialogVisibleSentence = true;
  16622. } else if (t == 48) {
  16623. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16624. .taskJson[index].toolChoose[i].tableJson
  16625. ? JSON.parse(
  16626. JSON.stringify(
  16627. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16628. index
  16629. ].toolChoose[i].tableJson
  16630. )
  16631. )
  16632. : { text: "" };
  16633. if (this.worksStudent[i].length) {
  16634. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16635. if (this.userid == this.worksStudent[i][k].userid) {
  16636. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16637. break;
  16638. }
  16639. }
  16640. }
  16641. this.dialogVisibleTable = true;
  16642. } else if (t == 52) {
  16643. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16644. .taskJson[index].toolChoose[i].wordJson
  16645. ? JSON.parse(
  16646. JSON.stringify(
  16647. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16648. index
  16649. ].toolChoose[i].wordJson
  16650. )
  16651. )
  16652. : { text: "" };
  16653. if (this.worksStudent[i].length) {
  16654. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16655. if (this.userid == this.worksStudent[i][k].userid) {
  16656. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16657. break;
  16658. }
  16659. }
  16660. }
  16661. this.dialogVisibleWord = true;
  16662. } else if (t == 49) {
  16663. this.groupJson =
  16664. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16665. index
  16666. ].toolChoose[i].groupJson;
  16667. this.dialogVisibleGroup = true;
  16668. } else if (t == 62) {
  16669. this.videoJson =
  16670. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16671. index
  16672. ].toolChoose[i].videoJson;
  16673. this.dialogVisibleVideo = true;
  16674. }
  16675. },
  16676. teacherWorkSubmit(t, i, index, s) {
  16677. this.sStudent = s;
  16678. this.sTool = t;
  16679. this.toolindex = i;
  16680. if (this.tType !== "1" && this.tType !== "4") {
  16681. return;
  16682. }
  16683. if (t == 16 || t == 32 || t == 50) {
  16684. this.dialogVisibleWorks = true; //作业提交
  16685. } else if (t == 15) {
  16686. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16687. .taskJson[index].toolChoose[i].answerQ
  16688. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16689. .toolChoose[i].answerQ
  16690. : "";
  16691. this.questionAnswer = "";
  16692. this.answerDialogVisibleTeacher = true; //问答
  16693. } else if (t == 52) {
  16694. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16695. .taskJson[index].toolChoose[i].wordJson
  16696. ? JSON.parse(
  16697. JSON.stringify(
  16698. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16699. index
  16700. ].toolChoose[i].wordJson
  16701. )
  16702. )
  16703. : { text: "" };
  16704. if (this.worksStudent[i].length) {
  16705. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16706. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16707. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16708. break;
  16709. }
  16710. }
  16711. }
  16712. this.dialogVisibleWordTeacher = true; //文档
  16713. } else if (t == 4) {
  16714. this.radio = [];
  16715. this.noteName = "";
  16716. this.isAnswer = false;
  16717. if (this.askCount > 0) {
  16718. this.updateCount(this.askCount, t);
  16719. } else {
  16720. this.askCount++;
  16721. a = this.askCount;
  16722. this.toolsCount(a, t);
  16723. }
  16724. if (!this.dialogVisible2) {
  16725. this.askJson.askJson =
  16726. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16727. index
  16728. ].toolChoose[i].askJson;
  16729. this.askJson.askTitle =
  16730. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16731. index
  16732. ].toolChoose[i].askTitle;
  16733. this.askJson.askCount =
  16734. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16735. index
  16736. ].toolChoose[i].askCount;
  16737. } else {
  16738. this.askJson.askJson = this.chapTools.askJson.askJson;
  16739. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16740. this.askJson.askCount = this.chapTools.askJson.askCount;
  16741. }
  16742. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16743. if (this.askJson.askJson[k].type == "2") {
  16744. this.radio.push([]);
  16745. } else {
  16746. this.radio.push("");
  16747. }
  16748. }
  16749. this.dialogVisible5Teacher = true;
  16750. } else if (t == 45) {
  16751. this.noteName = "";
  16752. this.radio = [];
  16753. this.isAnswer = false;
  16754. if (this.askCount > 0) {
  16755. this.updateCount(this.askCount, t);
  16756. } else {
  16757. this.askCount++;
  16758. a = this.askCount;
  16759. this.toolsCount(a, t);
  16760. }
  16761. this.testJson =
  16762. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16763. index
  16764. ].toolChoose[i].testJson;
  16765. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16766. if (this.testJson.testJson[k].type == "2") {
  16767. this.radio.push([]);
  16768. } else {
  16769. this.radio.push("");
  16770. }
  16771. }
  16772. this.dialogVisibleChoiceTeacher = true;
  16773. } else if (t == 41) {
  16774. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16775. .taskJson[index].toolChoose[i].selectJson
  16776. ? JSON.parse(
  16777. JSON.stringify(
  16778. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16779. index
  16780. ].toolChoose[i].selectJson
  16781. )
  16782. )
  16783. : { url: "", select: [], answer: [] };
  16784. if (this.worksStudent[i].length) {
  16785. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16786. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16787. var a = this.worksStudent[i][k].works.split(",");
  16788. for (var ki = 0; ki < a.length; ki++) {
  16789. a[ki] = parseInt(a[ki]);
  16790. }
  16791. this.selectAnswer = {
  16792. answer: a,
  16793. stu: this.worksStudent[i][k].sName,
  16794. };
  16795. break;
  16796. } else {
  16797. this.selectAnswer = { answer: [], stu: "" };
  16798. }
  16799. }
  16800. } else {
  16801. this.selectAnswer = { answer: [], stu: "" };
  16802. }
  16803. this.isSelect = false;
  16804. this.dialogVisibleSelectTeacher = true;
  16805. } else if (t == 47) {
  16806. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16807. .taskJson[index].toolChoose[i].sentenceList
  16808. ? JSON.parse(
  16809. JSON.stringify(
  16810. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16811. index
  16812. ].toolChoose[i].sentenceList
  16813. )
  16814. )
  16815. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16816. for (var q = 0; q < this.sentenceList.length; q++) {
  16817. this.sentenceList[q].chooseSenList = [];
  16818. this.sentenceList[q].addChangeSen = [];
  16819. this.sentenceList[q].addChangeSen = JSON.parse(
  16820. JSON.stringify(this.sentenceList[q].addSentence)
  16821. );
  16822. this.sentenceList[q].chooseSenList.length =
  16823. this.sentenceList[q].rightAnswer.length;
  16824. }
  16825. this.dialogVisibleSentenceTeacher = true;
  16826. } else if (t == 48) {
  16827. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16828. .taskJson[index].toolChoose[i].tableJson
  16829. ? JSON.parse(
  16830. JSON.stringify(
  16831. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16832. index
  16833. ].toolChoose[i].tableJson
  16834. )
  16835. )
  16836. : { text: "" };
  16837. if (this.worksStudent[i].length) {
  16838. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16839. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16840. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16841. break;
  16842. }
  16843. }
  16844. }
  16845. this.dialogVisibleTableTeacher = true;
  16846. } else if (t == 40) {
  16847. if (this.evalCount > 0) {
  16848. this.updateCount(this.evalCount, t);
  16849. } else {
  16850. this.evalCount++;
  16851. a = this.evalCount;
  16852. this.toolsCount(a, t);
  16853. }
  16854. this.eScore = { eBzText: "", eStar: [] };
  16855. if (this.worksStudent[i].length) {
  16856. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16857. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16858. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16859. this.rateJson =
  16860. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16861. index
  16862. ].toolChoose[i].rateJson;
  16863. break;
  16864. } else {
  16865. this.rateJson =
  16866. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16867. index
  16868. ].toolChoose[i].rateJson;
  16869. }
  16870. }
  16871. } else {
  16872. this.rateJson =
  16873. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16874. index
  16875. ].toolChoose[i].rateJson;
  16876. }
  16877. this.isStar = false;
  16878. this.studentEvalDialogVisibleTeacher = true;
  16879. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  16880. window.parent.postMessage(
  16881. {
  16882. tools: t + "teacher",
  16883. cid: this.id,
  16884. stage: this.courseType,
  16885. task: this.taskCount,
  16886. tool: i,
  16887. student: this.sStudent,
  16888. },
  16889. "*"
  16890. );
  16891. }
  16892. },
  16893. openCocoPi(tool, i, uid, uname) {
  16894. let student = {
  16895. userid: uid,
  16896. student: uname,
  16897. };
  16898. if (tool == 57) {
  16899. window.parent.postMessage(
  16900. {
  16901. tools: tool + "teacher",
  16902. cid: this.id,
  16903. stage: this.courseType,
  16904. task: this.taskCount,
  16905. tool: i,
  16906. student: student,
  16907. },
  16908. "*"
  16909. );
  16910. }
  16911. },
  16912. setRightAnswer(s, i, j) {
  16913. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  16914. if (
  16915. this.sentenceList[i].chooseSenList[q] == undefined ||
  16916. this.sentenceList[i].chooseSenList[q] == ""
  16917. ) {
  16918. this.sentenceList[i].chooseSenList[q] = s;
  16919. this.sentenceList[i].addChangeSen[j] = "";
  16920. break;
  16921. }
  16922. }
  16923. this.$forceUpdate();
  16924. },
  16925. returnCard(r, i, j) {
  16926. var a = this.sentenceList[i].addSentence.indexOf(r);
  16927. this.sentenceList[i].chooseSenList[j] = "";
  16928. this.sentenceList[i].addChangeSen[a] = r;
  16929. this.$forceUpdate();
  16930. },
  16931. // addSentenceTool() {
  16932. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16933. // this.taskCount
  16934. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  16935. // this.sentenceList = [
  16936. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  16937. // ];
  16938. // this.dialogVisibleSentence = false;
  16939. // },
  16940. toolsCount(a, t) {
  16941. let params = {
  16942. cid: this.id,
  16943. chid: this.courseType,
  16944. uid: this.userid,
  16945. tid: t,
  16946. count: a,
  16947. };
  16948. this.ajax
  16949. .get(this.$store.state.api + "insertToolsCount", params)
  16950. .then((res) => {
  16951. this.selectCount();
  16952. })
  16953. .catch((err) => {
  16954. console.error(err);
  16955. });
  16956. },
  16957. updateCount(c, t) {
  16958. c++;
  16959. let params = {
  16960. cid: this.id,
  16961. chid: this.courseType,
  16962. uid: this.userid,
  16963. tid: t,
  16964. count: c,
  16965. };
  16966. this.ajax
  16967. .get(this.$store.state.api + "updateToolsCount", params)
  16968. .then((res) => {
  16969. this.selectCount();
  16970. })
  16971. .catch((err) => {
  16972. console.error(err);
  16973. });
  16974. },
  16975. checkEva() {
  16976. if (this.evalua != "") {
  16977. for (var i = 0; i < this.evaJuri.length; i++) {
  16978. if (this.evalua == this.evaJuri[i].id) {
  16979. this.eTitle = this.evaJuri[i].title;
  16980. this.eJson = JSON.parse(this.evaJuri[i].content);
  16981. }
  16982. }
  16983. this.$forceUpdate();
  16984. setTimeout(() => {
  16985. this.setMindData();
  16986. }, 0);
  16987. }
  16988. },
  16989. selectEva() {
  16990. let params = {
  16991. oid: this.oid,
  16992. };
  16993. this.ajax
  16994. .get(this.$store.state.api + "selectAllEvaluation", params)
  16995. .then((res) => {
  16996. this.evaJuri = res.data[0];
  16997. })
  16998. .catch((err) => {
  16999. console.error(err);
  17000. });
  17001. },
  17002. setMindData() {
  17003. this.data.data = [];
  17004. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17005. let _eJson = Object.keys(this.eJson);
  17006. let _e = this.eJson;
  17007. for (let i = 0; i < _eJson.length; i++) {
  17008. let element = _e[_eJson[i]];
  17009. this.data.data.push({
  17010. id: element.id,
  17011. parentid: "root",
  17012. topic: element.name,
  17013. });
  17014. let _eJsonc = Object.keys(element.child);
  17015. let _e2 = element.child;
  17016. for (let j = 0; j < _eJsonc.length; j++) {
  17017. let _ec = _e2[_eJsonc[j]];
  17018. this.data.data.push({
  17019. id: _ec.id,
  17020. parentid: element.id,
  17021. topic: _ec.name,
  17022. });
  17023. let _eJsonz = Object.keys(_ec.child);
  17024. let _e3 = _ec.child;
  17025. for (let z = 0; z < _eJsonz.length; z++) {
  17026. let _ez = _e3[_eJsonz[z]];
  17027. this.data.data.push({
  17028. id: _ez.id,
  17029. parentid: _ec.id,
  17030. topic: _ez.name,
  17031. });
  17032. }
  17033. }
  17034. }
  17035. this.$forceUpdate();
  17036. },
  17037. checkFileFull(type, url) {
  17038. this.fullDialogVisible = true;
  17039. this.fulltype = type;
  17040. this.fullUrl = url;
  17041. },
  17042. checkFileFull1(t, f) {
  17043. this.fullDialogVisible = true;
  17044. if (t == 6) {
  17045. this.fulltype = 1;
  17046. this.fullUrl = JSON.parse(JSON.stringify(f));
  17047. } else if (t == 8) {
  17048. this.fulltype = 2;
  17049. this.fullUrl = f.url;
  17050. } else if (
  17051. t == 3 &&
  17052. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17053. "PDF"
  17054. ) {
  17055. this.fulltype = 3;
  17056. this.fullUrl = f.url;
  17057. } else if(t == 3) {
  17058. this.fulltype = 2;
  17059. this.fullUrl =
  17060. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17061. }
  17062. },
  17063. openSname(n, id, i, uid) {
  17064. this.snameWid = id;
  17065. this.worksSName = n;
  17066. this.worksSid = uid == n ? "" : uid;
  17067. this.toolindex = i;
  17068. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17069. if (!this.uploadCid) {
  17070. this.$message.error(
  17071. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17072. );
  17073. return;
  17074. }
  17075. this.selectUploadStudent(1);
  17076. },
  17077. updateName() {
  17078. let params = {
  17079. n: this.worksSName,
  17080. cid: this.snameWid,
  17081. };
  17082. this.ajax
  17083. .get(this.$store.state.api + "updateCourseWorksName", params)
  17084. .then((res) => {
  17085. this.$message({
  17086. message: "修改成功",
  17087. type: "success",
  17088. });
  17089. this.dialogVisibleSname = false;
  17090. this.getCourseDetail();
  17091. this.snameWid = "";
  17092. this.worksSName = "";
  17093. })
  17094. .catch((err) => {
  17095. console.error(err);
  17096. });
  17097. },
  17098. downloadFile2(f) {
  17099. // const loading = this.$loading.service({
  17100. // background: "rgba(255, 255, 255, 0.7)",
  17101. // target: document.body,
  17102. // text: "文件加载中...",
  17103. // });
  17104. // let url2 = f.url;
  17105. // let _url2 = "";
  17106. // if (
  17107. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17108. // ) {
  17109. // _url2 = url2.split(
  17110. // "https://view.officeapps.live.com/op/view.aspx?src="
  17111. // )[1];
  17112. // } else {
  17113. // _url2 = url2;
  17114. // }
  17115. // let params = {
  17116. // url: _url2,
  17117. // name: f.name,
  17118. // };
  17119. // this.ajax
  17120. // .get(this.$store.state.api + "download", params)
  17121. // .then((res) => {
  17122. // console.log(res);
  17123. // loading.close();
  17124. // let content = res.data.data.data;
  17125. // let ab = new ArrayBuffer(content.length);
  17126. // let view = new Uint8Array(ab);
  17127. // for (var i = 0; i < content.length; ++i) {
  17128. // view[i] = content[i];
  17129. // }
  17130. // let elink = document.createElement("a");
  17131. // elink.download = f.name;
  17132. // elink.style.display = "none";
  17133. // let blob = new Blob([ab], {
  17134. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17135. // });
  17136. // elink.href = URL.createObjectURL(blob);
  17137. // document.body.appendChild(elink);
  17138. // elink.click();
  17139. // document.body.removeChild(elink);
  17140. // })
  17141. // .catch((err) => {
  17142. // loading.close();
  17143. // console.error(err);
  17144. // });
  17145. let url = f.url;
  17146. let _this = this;
  17147. let _url = "";
  17148. if (
  17149. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17150. ) {
  17151. _url = url.split(
  17152. "https://view.officeapps.live.com/op/view.aspx?src="
  17153. )[1];
  17154. } else {
  17155. _url = url;
  17156. }
  17157. const loading = _this.$loading.service({
  17158. background: "rgba(255, 255, 255, 0.7)",
  17159. target: document.body,
  17160. text: "文件加载中...",
  17161. });
  17162. let x = new XMLHttpRequest();
  17163. x.open('GET', _url, true);
  17164. x.responseType = 'blob';
  17165. x.onload = function () {
  17166. loading.close();
  17167. let url = window.URL.createObjectURL(new Blob([x.response]));
  17168. let a = document.createElement('a');
  17169. a.name = f.name;
  17170. a.href = url;
  17171. a.download = f.name;
  17172. a.click();
  17173. }
  17174. x.send();
  17175. },
  17176. downloadFile(url) {
  17177. let _this = this;
  17178. let _url = "";
  17179. if (
  17180. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17181. ) {
  17182. _url = url.split(
  17183. "https://view.officeapps.live.com/op/view.aspx?src="
  17184. )[1];
  17185. } else {
  17186. _url = url;
  17187. }
  17188. const x = new XMLHttpRequest();
  17189. x.open("GET", _url, true);
  17190. x.responseType = "blob";
  17191. const loading = _this.$loading.service({
  17192. background: "rgba(255, 255, 255, 0.7)",
  17193. target: document.body,
  17194. text: "文件加载中...",
  17195. });
  17196. // _this.$message.success("文件下载中...");
  17197. x.onload = function (e) {
  17198. loading.close();
  17199. // const url = window.URL.createObjectURL(x.response);
  17200. // const a = document.createElement("a");
  17201. // a.href = url;
  17202. // a.target = "_blank";
  17203. // a.download = url;
  17204. // a.click();
  17205. // a.remove();
  17206. let content = x.response;
  17207. let elink = document.createElement("a");
  17208. elink.download = decodeURI(
  17209. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17210. );
  17211. elink.style.display = "none";
  17212. let blob = new Blob([content]);
  17213. elink.href = URL.createObjectURL(blob);
  17214. document.body.appendChild(elink);
  17215. elink.click();
  17216. document.body.removeChild(elink);
  17217. };
  17218. x.send();
  17219. },
  17220. openLine(url) {
  17221. window.open(url);
  17222. },
  17223. resize() {
  17224. if (document.getElementsByClassName("box_course").length) {
  17225. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17226. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17227. if (this.showType == 2 || this.showType == 3) {
  17228. document.getElementsByClassName("navBox")[0].style.height =
  17229. a - 40 + 46 + "px";
  17230. } else {
  17231. document.getElementsByClassName("navBox")[0].style.height =
  17232. a - 40 + "px";
  17233. }
  17234. }
  17235. this.Stbodywidth =
  17236. document.getElementsByClassName("student_body").length &&
  17237. document.getElementsByClassName("student_body")[0].offsetWidth;
  17238. },
  17239. closeDraw() {
  17240. this.bg = null;
  17241. this.drawShow = false;
  17242. },
  17243. showPicturePaint(url) {
  17244. let params = {
  17245. img: url,
  17246. };
  17247. this.ajax
  17248. .get(this.$store.state.api + "imgToBase64", params)
  17249. .then((res) => {
  17250. console.log(res);
  17251. this.drawShow = true;
  17252. this.bg = res.data[0].img;
  17253. })
  17254. .catch((err) => {
  17255. console.error(err);
  17256. });
  17257. },
  17258. addImgDraw(base64) {
  17259. let file = { name: "批注图.png" };
  17260. let img = this.dataUrlToFile(base64, file);
  17261. this.beforeUpload1(img, 5);
  17262. },
  17263. addImgDrawImG(url) {
  17264. // console.log(url);
  17265. let params = [
  17266. {
  17267. wid: this.commentDetail.wid,
  17268. img: url,
  17269. },
  17270. ];
  17271. this.ajax
  17272. .post(this.$store.state.api + "updateCourseWorks", params)
  17273. .then((res) => {
  17274. this.$message({
  17275. message: "提交成功",
  17276. type: "success",
  17277. });
  17278. this.drawShow = false;
  17279. this.bg = "";
  17280. this.selectSWorks();
  17281. this.selectStudent();
  17282. })
  17283. .catch((err) => {
  17284. this.$message.error("提交失败");
  17285. console.error(err);
  17286. });
  17287. },
  17288. deletePicturePaint() {
  17289. this.$confirm("确定删除此批注吗?", "提示", {
  17290. confirmButtonText: "确定",
  17291. cancelButtonText: "取消",
  17292. type: "warning",
  17293. })
  17294. .then(() => {
  17295. let params = [
  17296. {
  17297. wid: this.commentDetail.wid,
  17298. img: "",
  17299. },
  17300. ];
  17301. this.ajax
  17302. .post(this.$store.state.api + "updateCourseWorks", params)
  17303. .then((res) => {
  17304. this.$message({
  17305. message: "删除成功",
  17306. type: "success",
  17307. });
  17308. this.selectSWorks();
  17309. this.selectStudent();
  17310. })
  17311. .catch((err) => {
  17312. this.$message.error("删除失败");
  17313. console.error(err);
  17314. });
  17315. })
  17316. .catch(() => {});
  17317. },
  17318. getAudioVideo(constraintsData) {
  17319. if (navigator.mediaDevices === undefined) {
  17320. navigator.mediaDevices = {};
  17321. }
  17322. if (navigator.mediaDevices.getUserMedia === undefined) {
  17323. navigator.mediaDevices.getUserMedia = function (constraints) {
  17324. // 首先,如果有getUserMedia的话,就获得它
  17325. var getUserMedia =
  17326. navigator.getUserMedia ||
  17327. navigator.webkitGetUserMedia ||
  17328. navigator.mozGetUserMedia ||
  17329. navigator.msGetUserMedia;
  17330. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17331. if (!getUserMedia) {
  17332. return Promise.reject({ code: 404 });
  17333. }
  17334. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17335. return new Promise(function (resolve, reject) {
  17336. getUserMedia.call(navigator, constraints, resolve, reject);
  17337. });
  17338. };
  17339. }
  17340. return navigator.mediaDevices.getUserMedia(constraintsData);
  17341. },
  17342. /**
  17343. * 开始录制
  17344. */
  17345. startRecording(callback) {
  17346. let _function = (screenStream) => {
  17347. this.addStreamStopListener(screenStream, () => {
  17348. console.log("流停止监听");
  17349. this.stopRecording();
  17350. this.$emit("streamStop", {});
  17351. // this.stopRecording();
  17352. });
  17353. var options = {
  17354. type: "video",
  17355. mimeType: "video/webm",
  17356. disableLogs: false,
  17357. getNativeBlob: false, // enable it for longer recordings
  17358. ignoreMutedMedia: false,
  17359. };
  17360. // this.video.srcObject = screenStream;
  17361. this.recorder = RecordRTC(screenStream, options);
  17362. this.recorder.startRecording();
  17363. this.recorder.screen = screenStream;
  17364. this.videoStart = true;
  17365. // callback(true);
  17366. };
  17367. this.getAudioVideo({ audio: true })
  17368. .then((res) => {
  17369. this.captureScreen(_function, true);
  17370. console.log("已点击允许,开启成功");
  17371. })
  17372. .catch((err) => {
  17373. // console.log('浏览器不支持,请更换浏览器')
  17374. // } else {
  17375. this.captureScreen(_function, false);
  17376. console.log("请检查是否存在麦克风");
  17377. });
  17378. },
  17379. /**
  17380. * 停止录制
  17381. */
  17382. stopRecording(callback) {
  17383. this.recorder.stopRecording(() => {
  17384. // this.video.src = this.video.srcObject = null;
  17385. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17386. const url = URL.createObjectURL(this.recorder.getBlob());
  17387. const a = document.createElement("a"); //this.fileName+
  17388. let videoFile = new File(
  17389. [this.recorder.getBlob()],
  17390. this.courseDetail.title + "录屏.mp4",
  17391. {
  17392. type: "video/mp4",
  17393. }
  17394. );
  17395. let downloadUrl = URL.createObjectURL(videoFile);
  17396. document.body.appendChild(a);
  17397. a.style.display = "none";
  17398. a.href = url;
  17399. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17400. a.click();
  17401. this.recorder.screen.stop();
  17402. this.recorder.destroy();
  17403. this.recorder = null;
  17404. this.videoStart = false;
  17405. // callback(false);
  17406. });
  17407. },
  17408. //初始化
  17409. captureScreen(callback, type) {
  17410. if (navigator.getDisplayMedia) {
  17411. //录制结束,文件下载
  17412. navigator
  17413. .getDisplayMedia({
  17414. video: true,
  17415. })
  17416. .then((screenStream) => {
  17417. if (type) {
  17418. navigator.mediaDevices
  17419. .getUserMedia({ audio: true })
  17420. .then((mic) => {
  17421. screenStream.addTrack(mic.getTracks()[0]);
  17422. callback(screenStream);
  17423. });
  17424. } else {
  17425. callback(screenStream);
  17426. }
  17427. })
  17428. .catch(function (error) {
  17429. console.log("error", error);
  17430. });
  17431. } else if (navigator.mediaDevices.getDisplayMedia) {
  17432. navigator.mediaDevices
  17433. .getDisplayMedia({
  17434. video: true,
  17435. })
  17436. .then((screenStream) => {
  17437. if (type) {
  17438. navigator.mediaDevices
  17439. .getUserMedia({ audio: true })
  17440. .then((mic) => {
  17441. screenStream.addTrack(mic.getTracks()[0]);
  17442. callback(screenStream);
  17443. });
  17444. } else {
  17445. callback(screenStream);
  17446. }
  17447. })
  17448. .catch(function (error) {
  17449. console.log("error", error);
  17450. });
  17451. } else {
  17452. var error = "getDisplayMedia API are not supported in this browser.";
  17453. console.log("error", error);
  17454. alert(error);
  17455. }
  17456. },
  17457. //流监听
  17458. addStreamStopListener(stream, callback) {
  17459. stream.addEventListener(
  17460. "ended",
  17461. function () {
  17462. callback();
  17463. callback = function () {};
  17464. },
  17465. false
  17466. );
  17467. stream.addEventListener(
  17468. "inactive",
  17469. function () {
  17470. callback();
  17471. callback = function () {};
  17472. },
  17473. false
  17474. );
  17475. stream.getTracks().forEach(function (track) {
  17476. track.addEventListener(
  17477. "ended",
  17478. function () {
  17479. callback();
  17480. callback = function () {};
  17481. },
  17482. false
  17483. );
  17484. track.addEventListener(
  17485. "inactive",
  17486. function () {
  17487. callback();
  17488. callback = function () {};
  17489. },
  17490. false
  17491. );
  17492. });
  17493. },
  17494. updateGroup() {
  17495. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17496. this.dialogVisibleGroup2 = true;
  17497. },
  17498. updateGroupJson() {
  17499. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17500. if (
  17501. this.groupStudentUid[this.toolindex][i].length >
  17502. this.groupJson2.number
  17503. ) {
  17504. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17505. return;
  17506. }
  17507. }
  17508. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17509. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17510. this.taskCount
  17511. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17512. let params = [
  17513. {
  17514. cid: this.id,
  17515. chapters: JSON.stringify(this.chapInfoList),
  17516. uid: this.userid,
  17517. unitIndex: this.courseType,
  17518. },
  17519. ];
  17520. this.ajax
  17521. .post(this.$store.state.api + "updateWorkNew4", params)
  17522. .then((res) => {
  17523. this.$message.success("设置成功");
  17524. this.getCourseDetail(2);
  17525. this.dialogVisibleGroup2 = false;
  17526. this.groupJson2 = {};
  17527. this.$forceUpdate();
  17528. })
  17529. .catch((err) => {
  17530. this.$message.error("网络不佳");
  17531. console.error(err);
  17532. });
  17533. },
  17534. lockChair() {
  17535. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17536. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17537. this.updateGroupJson();
  17538. },
  17539. selectGroup(index) {
  17540. this.getCourseDetail(2, index);
  17541. },
  17542. joinGroup(index) {
  17543. if (this.groupJson.islock == 2) {
  17544. this.$message.error("位置已被锁定,无法加入");
  17545. return;
  17546. }
  17547. if (
  17548. this.groupStudent[this.toolindex][index].length >
  17549. this.groupJson.number ||
  17550. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17551. ) {
  17552. this.$message.error("位置已满,无法加入");
  17553. return;
  17554. }
  17555. let params = [
  17556. {
  17557. cid: this.id,
  17558. stage: this.courseType,
  17559. task: this.taskCount,
  17560. tool: this.toolindex,
  17561. g: index,
  17562. uid: this.userid,
  17563. },
  17564. ];
  17565. this.ajax
  17566. .post(this.$store.state.api + "joinGroup", params)
  17567. .then((res) => {
  17568. this.$message.success("加入成功");
  17569. this.getCourseDetail();
  17570. })
  17571. .catch((err) => {
  17572. this.$message.error("网络不佳");
  17573. console.error(err);
  17574. });
  17575. },
  17576. exitGroup(id) {
  17577. if (this.groupJson.islock == 2) {
  17578. this.$message.error("位置已被锁定,无法退出");
  17579. return;
  17580. }
  17581. let params = [
  17582. {
  17583. gid: id,
  17584. },
  17585. ];
  17586. this.ajax
  17587. .post(this.$store.state.api + "exitGroup", params)
  17588. .then((res) => {
  17589. this.$message.success("退出成功");
  17590. this.getCourseDetail();
  17591. })
  17592. .catch((err) => {
  17593. this.$message.error("网络不佳");
  17594. console.error(err);
  17595. });
  17596. },
  17597. groupUpload(index, task, gindex) {
  17598. this.taskCount = task;
  17599. this.toolindex = index;
  17600. this.groupIndex = gindex;
  17601. this.dialogVisibleGroupWork = true;
  17602. },
  17603. updateGroupChair(user) {
  17604. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17605. el.label = index;
  17606. return index != user.group;
  17607. });
  17608. this.updateGroupUser = user;
  17609. this.dialogVisibleUpdateGroup = true;
  17610. },
  17611. updateChair() {
  17612. if (
  17613. this.groupStudent[this.toolindex][this.checkChair].length >
  17614. this.groupJson.number ||
  17615. this.groupStudent[this.toolindex][this.checkChair].length ==
  17616. this.groupJson.number
  17617. ) {
  17618. this.$message.error("位置已满,无法加入");
  17619. return;
  17620. }
  17621. let params = [
  17622. {
  17623. cid: this.id,
  17624. stage: this.courseType,
  17625. task: this.taskCount,
  17626. tool: this.toolindex,
  17627. g: this.checkChair,
  17628. uid: this.updateGroupUser.userid,
  17629. },
  17630. ];
  17631. this.ajax
  17632. .post(this.$store.state.api + "joinGroup", params)
  17633. .then((res) => {
  17634. this.$message.success("修改成功");
  17635. this.updateGroupUser = {};
  17636. this.checkChair = "";
  17637. this.updateGroupArray = {};
  17638. this.dialogVisibleUpdateGroup = false;
  17639. this.getCourseDetail();
  17640. })
  17641. .catch((err) => {
  17642. this.$message.error("网络不佳");
  17643. console.error(err);
  17644. });
  17645. },
  17646. deleteGroupChair(gindex) {
  17647. this.checkDeleteGroup = [];
  17648. this.deleteGroupUser = JSON.parse(
  17649. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17650. );
  17651. this.deleteGroupArray = this.groupJson.group[gindex];
  17652. this.groupIndex = gindex;
  17653. this.dialogVisibleDeleteGroup = true;
  17654. },
  17655. async deleteChair() {
  17656. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17657. const gid =
  17658. this.groupStudent[this.toolindex][this.groupIndex][
  17659. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17660. this.checkDeleteGroup[i]
  17661. )
  17662. ];
  17663. let params = [
  17664. {
  17665. gid: gid.id,
  17666. },
  17667. ];
  17668. var a = await this.deleteChairA(params);
  17669. if (i == this.checkDeleteGroup.length - 1) {
  17670. this.$message.success("退出成功");
  17671. this.dialogVisibleDeleteGroup = false;
  17672. this.deleteGroupUser = [];
  17673. this.deleteGroupArray = {};
  17674. this.groupIndex = "";
  17675. this.checkDeleteGroup = [];
  17676. this.getCourseDetail();
  17677. }
  17678. }
  17679. },
  17680. deleteChairA(params) {
  17681. return new Promise((resolve, reject) => {
  17682. this.ajax
  17683. .post(this.$store.state.api + "exitGroup", params)
  17684. .then((res) => {
  17685. resolve(1);
  17686. })
  17687. .catch((err) => {
  17688. this.$message.error("网络不佳");
  17689. console.error(err);
  17690. });
  17691. });
  17692. },
  17693. contract(i) {
  17694. if (this.isCloseList[i].isClose == 0) {
  17695. this.isCloseList[i].isClose = 1;
  17696. } else {
  17697. this.isCloseList[i].isClose = 0;
  17698. }
  17699. this.$forceUpdate();
  17700. },
  17701. openTools2(i) {
  17702. this.$message.error("暂未开放");
  17703. return;
  17704. },
  17705. addTools2(i) {
  17706. if (i == 4) {
  17707. // this.openTools2(4);
  17708. this.$message.error("暂未开放");
  17709. return;
  17710. }
  17711. if (i == 45) {
  17712. // this.openTools2(45);
  17713. this.$message.error("暂未开放");
  17714. return;
  17715. }
  17716. if (i == 47) {
  17717. // this.openTools2(47);
  17718. this.$message.error("暂未开放");
  17719. return;
  17720. }
  17721. if (i == 49) {
  17722. // this.openTools2(49);
  17723. this.$message.error("暂未开放");
  17724. return;
  17725. }
  17726. if (i == 62) {
  17727. // this.openTools(itemTaskIndex, 62, toolIndex);
  17728. this.$message.error("暂未开放");
  17729. return;
  17730. }
  17731. if (i == 15) {
  17732. // this.openTools(itemTaskIndex, 15, toolIndex);
  17733. this.$message.error("暂未开放");
  17734. return;
  17735. }
  17736. if (i == 40) {
  17737. // this.openTools(itemTaskIndex, 40, toolIndex);
  17738. this.$message.error("暂未开放");
  17739. return;
  17740. }
  17741. if (i == 41) {
  17742. // this.openTools(itemTaskIndex, 41, toolIndex);
  17743. this.$message.error("暂未开放");
  17744. return;
  17745. }
  17746. if (i == 42) {
  17747. // this.openTools(itemTaskIndex, 42, toolIndex);
  17748. this.$message.error("暂未开放");
  17749. return;
  17750. }
  17751. if (this.checktoolArray.length > 0) {
  17752. if (this.checktoolArray.indexOf(i) != -1) {
  17753. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17754. } else {
  17755. this.checktoolArray = [];
  17756. this.checktoolArray.push(i);
  17757. }
  17758. } else {
  17759. this.checktoolArray.push(i);
  17760. }
  17761. this.$forceUpdate();
  17762. },
  17763. addToolChoose() {
  17764. if (!this.checktoolArray.length) {
  17765. this.$message.error("请选择要添加的任务");
  17766. return;
  17767. }
  17768. if (
  17769. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17770. this.taskCount
  17771. ].toolChoose[0].tool.length
  17772. ) {
  17773. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17774. this.taskCount
  17775. ].toolChoose[0].tool = this.checktoolArray;
  17776. } else {
  17777. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17778. this.taskCount
  17779. ].toolChoose.push({
  17780. tool: this.checktoolArray,
  17781. toolDetail: "",
  17782. toolType: 0,
  17783. askCount: 1,
  17784. askTitle: "",
  17785. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17786. });
  17787. }
  17788. let params = [
  17789. {
  17790. cid: this.id,
  17791. chapters: JSON.stringify(this.chapInfoList),
  17792. uid: this.userid,
  17793. unitIndex: this.courseType,
  17794. },
  17795. ];
  17796. this.ajax
  17797. .post(this.$store.state.api + "updateWorkNew4", params)
  17798. .then((res) => {
  17799. this.$message({
  17800. message: "添加成功",
  17801. type: "success",
  17802. });
  17803. this.checktoolArray = [];
  17804. this.getCourseDetail(3);
  17805. this.checkBz(
  17806. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17807. this.taskCount
  17808. ].toolChoose.length - 1
  17809. );
  17810. this.$forceUpdate();
  17811. })
  17812. .catch((err) => {
  17813. console.error(err);
  17814. });
  17815. },
  17816. updateToolDetail() {
  17817. if (!this.isUpdateToolDetail) {
  17818. this.isUpdateToolDetail = true;
  17819. this.updateToolDetailInner = JSON.parse(
  17820. JSON.stringify(this.tool.toolDetail)
  17821. );
  17822. } else {
  17823. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17824. this.taskCount
  17825. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  17826. JSON.stringify(this.updateToolDetailInner)
  17827. );
  17828. let params = [
  17829. {
  17830. cid: this.id,
  17831. chapters: JSON.stringify(this.chapInfoList),
  17832. uid: this.userid,
  17833. unitIndex: this.courseType,
  17834. },
  17835. ];
  17836. this.ajax
  17837. .post(this.$store.state.api + "updateWorkNew4", params)
  17838. .then((res) => {
  17839. this.isUpdateToolDetail = false;
  17840. this.$message({
  17841. message: "修改成功",
  17842. type: "success",
  17843. });
  17844. this.updateToolDetailInner = "";
  17845. this.getCourseDetail(3);
  17846. this.$forceUpdate();
  17847. this.checkBz(this.toolIndex)
  17848. })
  17849. .catch((err) => {
  17850. console.error(err);
  17851. });
  17852. }
  17853. },
  17854. openWordCloud(toolindex) {
  17855. let array = [];
  17856. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  17857. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  17858. array.push({ name: works });
  17859. }
  17860. if (this.isGroup) {
  17861. for (var i = 0; i < this.courseGroup.group.length; i++) {
  17862. let works = this.courseGroup.group[i].works[toolindex];
  17863. for (var j = 0; j < works.length; j++) {
  17864. let answer = JSON.parse(works[j].works)[0].answer;
  17865. array.push({ name: answer });
  17866. }
  17867. }
  17868. }
  17869. this.wordCloudData = array;
  17870. this.dialogVisibleWordCloud = true;
  17871. },
  17872. pickStudent(stu) {
  17873. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  17874. return;
  17875. }
  17876. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  17877. confirmButtonText: "确定",
  17878. cancelButtonText: "取消",
  17879. type: "warning",
  17880. })
  17881. .then(() => {
  17882. let params = [
  17883. {
  17884. uid: stu.userid,
  17885. cid: this.id,
  17886. stage: this.courseType,
  17887. task: this.taskCount,
  17888. tool: this.toolindex,
  17889. },
  17890. ];
  17891. this.ajax
  17892. .post(this.$store.state.api + "updateCoursePick", params)
  17893. .then((res) => {
  17894. this.$message.success("操作成功");
  17895. this.getPick();
  17896. })
  17897. .catch((err) => {
  17898. this.$message.error("网络不佳");
  17899. console.error(err);
  17900. });
  17901. })
  17902. .catch(() => {});
  17903. },
  17904. getPick() {
  17905. let params = {
  17906. cid: this.id,
  17907. };
  17908. this.ajax
  17909. .get(this.$store.state.api + "getPick", params)
  17910. .then((res) => {
  17911. let array = [];
  17912. for (var i = 0; i < res.data[0].length; i++) {
  17913. array.push(res.data[0][i].userid);
  17914. }
  17915. this.isPickStudent = array;
  17916. if (array.indexOf(this.userid) !== -1) {
  17917. this.$confirm("你被老师选到啦!", "提示", {
  17918. confirmButtonText: "确定",
  17919. showCancelButton: false,
  17920. closeOnClickModal: false,
  17921. type: "warning",
  17922. })
  17923. .then(() => {
  17924. let pa = [
  17925. {
  17926. uid: this.userid,
  17927. cid: this.id,
  17928. },
  17929. ];
  17930. this.ajax
  17931. .post(this.$store.state.api + "deletePick", pa)
  17932. .then((res) => {
  17933. this.getPick();
  17934. })
  17935. .catch((err) => {
  17936. this.$message.error("网络不佳");
  17937. console.error(err);
  17938. });
  17939. })
  17940. .catch(() => {});
  17941. }
  17942. })
  17943. .catch((err) => {
  17944. this.$message.error("网络不佳");
  17945. console.error(err);
  17946. });
  17947. },
  17948. },
  17949. directives: {
  17950. // 使用局部注册指令的方式
  17951. resize: {
  17952. // 指令的名称
  17953. bind(el, binding) {
  17954. // el为绑定的元素,binding为绑定给指令的对象
  17955. let width = "",
  17956. height = "";
  17957. function isReize() {
  17958. const style = document.defaultView.getComputedStyle(el);
  17959. if (width !== style.width || height !== style.height) {
  17960. binding.value(); // 关键
  17961. }
  17962. width = style.width;
  17963. height = style.height;
  17964. }
  17965. el.__vueSetInterval__ = setInterval(isReize, 300);
  17966. },
  17967. unbind(el) {
  17968. clearInterval(el.__vueSetInterval__);
  17969. },
  17970. },
  17971. },
  17972. beforeDestroy() {
  17973. window.onresize = null;
  17974. clearInterval(this.timer);
  17975. this.timer = null;
  17976. clearInterval(this.opertimer);
  17977. this.opertimer = null;
  17978. },
  17979. computed: {
  17980. contentConvent() {
  17981. return function (c) {
  17982. return c
  17983. ? c
  17984. .replaceAll(/\r\n/g, "<br/>")
  17985. .replaceAll(/\n/g, "<br/>")
  17986. .replaceAll(/\s/g, " &nbsp")
  17987. : "";
  17988. };
  17989. },
  17990. checkUpload() {
  17991. return function () {
  17992. var studentK = [];
  17993. if (this.plworkFile.length > 0) {
  17994. for (var z = 0; z < this.plworkFile.length; z++) {
  17995. studentK.push(this.plworkFile[z].username);
  17996. }
  17997. studentK = studentK.join(",");
  17998. }
  17999. var a = this.uploadStudentJuri.filter((el) => {
  18000. return studentK.indexOf(el.userid) == -1;
  18001. });
  18002. return a;
  18003. };
  18004. },
  18005. getSName() {
  18006. return function (name) {
  18007. var check = name;
  18008. this.uploadStudentJuri.forEach((el) => {
  18009. if (el.userid == check) {
  18010. check = el.name ? el.name : el.username;
  18011. }
  18012. });
  18013. return check;
  18014. };
  18015. },
  18016. getImgList() {
  18017. return function (val) {
  18018. let srcList = []; // 定义一个数组用来接收后面的img地址
  18019. val.replace(
  18020. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18021. function (match, capture) {
  18022. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18023. srcList.push(capture);
  18024. }
  18025. );
  18026. return srcList;
  18027. };
  18028. },
  18029. },
  18030. mounted() {
  18031. document.body.addEventListener('click',(e)=>{
  18032. if(this.isUpdateToolDetail){
  18033. this.updateToolDetail();
  18034. }
  18035. })
  18036. if (this.screenType == 2) {
  18037. window.parent.postMessage({ allScreen: 4 }, "*");
  18038. } else if (this.screenType == 3) {
  18039. window.parent.postMessage({ allScreen: 5 }, "*");
  18040. } else if (this.screenType == 1) {
  18041. window.parent.postMessage({ allScreen: 6 }, "*");
  18042. }
  18043. this.setOperationTime();
  18044. this.selectEva();
  18045. this.getCourseDetail();
  18046. this.selectCount();
  18047. this.getHomeWork();
  18048. this.toolIndex = null;
  18049. this.contentDialog = true;
  18050. this.setContent2(true);
  18051. if (this.tType == 4) {
  18052. this.pzDialog = true;
  18053. this.selectPz();
  18054. }
  18055. document.scrollingElement.scrollTop = 0;
  18056. window.addEventListener("resize", () => {
  18057. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18058. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18059. if (this.showType == 2 || this.showType == 3) {
  18060. document.getElementsByClassName("navBox")[0].style.height =
  18061. a - 40 + 46 + "px";
  18062. } else {
  18063. document.getElementsByClassName("navBox")[0].style.height =
  18064. a - 40 + "px";
  18065. }
  18066. });
  18067. let _this = this;
  18068. setTimeout(() => {
  18069. // _this.vedioTime = [];
  18070. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18071. // _this.vedioTime[i] = document.getElementsByClassName(
  18072. // "vjs-duration-display"
  18073. // )[i].textContent;
  18074. // }
  18075. }, 1000);
  18076. },
  18077. };
  18078. </script>
  18079. <style scoped>
  18080. @media screen and (max-width: 1280px) {
  18081. /* .courseIndex > div:first-child(2) {
  18082. width: 15% !important;
  18083. } */
  18084. /* .navText {
  18085. width: 120px !important;
  18086. } */
  18087. .evaCss {
  18088. flex-direction: column !important;
  18089. align-items: center !important;
  18090. }
  18091. .dialog_diy1 >>> .el-dialog {
  18092. width: 100% !important;
  18093. }
  18094. .rightWidthCss {
  18095. width: 100% !important;
  18096. }
  18097. .dialog_diy3 >>> .el-dialog {
  18098. width: 100% !important;
  18099. }
  18100. /* .textTitle >>> .el-form-item__label {
  18101. width: 150px !important;
  18102. } */
  18103. }
  18104. .evaCssMax {
  18105. flex-direction: column !important;
  18106. align-items: center !important;
  18107. }
  18108. .dialog_diy >>> .el-dialog {
  18109. margin-top: 10vh !important;
  18110. }
  18111. .body_student {
  18112. width: 77%;
  18113. height: 100%;
  18114. position: absolute;
  18115. left: 22%;
  18116. top: 0;
  18117. }
  18118. .student_head {
  18119. width: 100%;
  18120. margin: 20px auto 0;
  18121. padding-bottom: 20px;
  18122. display: flex;
  18123. flex-direction: column;
  18124. flex-wrap: nowrap;
  18125. align-items: flex-start;
  18126. justify-content: flex-start;
  18127. }
  18128. .pb_left {
  18129. width: 20%;
  18130. margin-right: 10px;
  18131. background: rgb(255, 255, 255);
  18132. position: fixed;
  18133. height: calc(100% - 40px);
  18134. border-radius: 20px;
  18135. padding-bottom: 15px;
  18136. box-sizing: border-box;
  18137. }
  18138. .wheel > img,
  18139. .project > img,
  18140. .star > img,
  18141. .evaluate > img,
  18142. .up_photo > img,
  18143. .chapter_add > img,
  18144. .deleteWord > img,
  18145. .question > img,
  18146. .homework > img {
  18147. width: 100%;
  18148. height: 100%;
  18149. }
  18150. .upCover > img {
  18151. width: 131px;
  18152. height: 69px;
  18153. object-fit: cover;
  18154. }
  18155. .upCover {
  18156. width: calc(100% / 3.5);
  18157. position: relative;
  18158. margin: 0 15px 10px 0;
  18159. display: flex;
  18160. flex-direction: column;
  18161. flex-wrap: nowrap;
  18162. justify-content: center;
  18163. align-content: center;
  18164. align-items: center;
  18165. height: fit-content;
  18166. }
  18167. .upCover2 {
  18168. width: 100%;
  18169. position: relative;
  18170. margin: 0 15px 10px 0;
  18171. display: flex;
  18172. flex-direction: column;
  18173. flex-wrap: nowrap;
  18174. justify-content: center;
  18175. align-content: center;
  18176. align-items: center;
  18177. }
  18178. .upCover2 > img {
  18179. width: 100%;
  18180. height: 90px;
  18181. object-fit: contain;
  18182. }
  18183. .chapter_add {
  18184. width: 120px;
  18185. position: relative;
  18186. text-align: center;
  18187. }
  18188. .isAddThings {
  18189. margin-top: 20px;
  18190. position: relative;
  18191. text-align: center;
  18192. background: #f7f8fa;
  18193. height: 90px;
  18194. width: 90px;
  18195. display: flex;
  18196. flex-direction: column;
  18197. justify-content: center;
  18198. }
  18199. .deleteWord {
  18200. width: 22px;
  18201. height: 22px;
  18202. position: absolute;
  18203. right: -5px;
  18204. top: -5px;
  18205. cursor: pointer;
  18206. }
  18207. .box_course {
  18208. /* width: 60%; */
  18209. width: calc(100% - 300px);
  18210. }
  18211. .wheel {
  18212. width: 100%;
  18213. /* height: 100%; */
  18214. height: 650px;
  18215. }
  18216. .right_box {
  18217. display: flex;
  18218. flex-direction: column;
  18219. margin-left: 30px;
  18220. justify-content: space-around;
  18221. }
  18222. .right_box_title {
  18223. font-size: 23px;
  18224. }
  18225. .people {
  18226. display: flex;
  18227. }
  18228. .student_body {
  18229. width: 100%;
  18230. margin: 0 auto;
  18231. margin-top: 10px;
  18232. padding: 0 0 20px;
  18233. border-radius: 20px;
  18234. }
  18235. .study_top {
  18236. margin-top: 100px;
  18237. width: 100%;
  18238. /* overflow: auto; */
  18239. height: auto;
  18240. padding-bottom: 20px;
  18241. }
  18242. .study_top .checkbox {
  18243. display: flex;
  18244. align-items: center;
  18245. padding: 15px 0 15px 30px;
  18246. flex: 0 0 auto;
  18247. font-weight: bold;
  18248. border-bottom: 1px solid #eee;
  18249. }
  18250. .study_top .check {
  18251. padding-bottom: 5px;
  18252. text-align: center;
  18253. cursor: pointer;
  18254. height: 30px;
  18255. box-sizing: border-box;
  18256. display: flex;
  18257. }
  18258. .study_top .checked {
  18259. border-bottom: 4px solid #3fc6a0;
  18260. padding-bottom: 5px;
  18261. color: #3fc6a0;
  18262. display: flex;
  18263. height: 35px;
  18264. }
  18265. .study_top .checked > div,
  18266. .study_top .check > div {
  18267. margin-right: 5px;
  18268. }
  18269. .videoTop {
  18270. display: flex;
  18271. flex-direction: row;
  18272. justify-content: space-between;
  18273. background: #fff;
  18274. align-items: center;
  18275. width: 95%;
  18276. padding: 20px;
  18277. }
  18278. .upbtn {
  18279. margin: 25px;
  18280. background: #70afdb;
  18281. color: #fff;
  18282. width: 120px;
  18283. text-align: center;
  18284. height: 30px;
  18285. line-height: 30px;
  18286. font-size: 13px;
  18287. border-radius: 5px;
  18288. cursor: pointer;
  18289. }
  18290. .filebox {
  18291. display: flex;
  18292. flex-wrap: wrap;
  18293. flex-direction: column;
  18294. padding: 0 0 5px;
  18295. }
  18296. .filebox .tooldetail {
  18297. width: 100%;
  18298. margin: 0px 12px;
  18299. background: rgb(247, 247, 247);
  18300. padding: 20px;
  18301. line-height: 30px;
  18302. word-break: break-word;
  18303. }
  18304. .file {
  18305. display: flex;
  18306. flex-direction: column;
  18307. align-items: center;
  18308. justify-content: center;
  18309. cursor: pointer;
  18310. width: 200px;
  18311. }
  18312. .file div {
  18313. margin-top: 10px;
  18314. width: 150px;
  18315. text-align: center;
  18316. overflow: hidden;
  18317. white-space: nowrap;
  18318. text-overflow: ellipsis;
  18319. }
  18320. .media {
  18321. display: flex;
  18322. flex-direction: column;
  18323. align-items: center;
  18324. justify-content: center;
  18325. margin: 0 20px 20px 0;
  18326. cursor: pointer;
  18327. margin: 12px 0 5px 15px;
  18328. overflow: hidden;
  18329. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  18330. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  18331. box-sizing: border-box;
  18332. }
  18333. .media img {
  18334. height: 90px;
  18335. width: 160px;
  18336. object-fit: cover;
  18337. }
  18338. .media .title {
  18339. padding: 5px;
  18340. text-align: left;
  18341. width: 100%;
  18342. box-sizing: border-box;
  18343. }
  18344. .media .btn {
  18345. width: 100%;
  18346. height: 35px;
  18347. line-height: 35px;
  18348. color: #fff;
  18349. background: #606060;
  18350. text-align: center;
  18351. overflow: hidden;
  18352. white-space: nowrap;
  18353. text-overflow: ellipsis;
  18354. }
  18355. .detail_content_top {
  18356. width: 100%;
  18357. padding: 25px 0 25px 0;
  18358. }
  18359. .detail_title {
  18360. text-align: center;
  18361. font-size: 24px;
  18362. }
  18363. .detail_time {
  18364. font-size: 13px;
  18365. padding: 15px 0 0 40px;
  18366. }
  18367. .detail_content {
  18368. line-height: 2pc;
  18369. width: 90%;
  18370. margin: 0 auto;
  18371. padding-top: 30px;
  18372. text-indent: 30px;
  18373. overflow: auto;
  18374. height: 200px;
  18375. }
  18376. .score_box >>> .el-rate {
  18377. margin-left: 10px;
  18378. }
  18379. .dialog_change >>> .el-dialog {
  18380. border-radius: 5px;
  18381. }
  18382. .dialog_change >>> .el-dialog__header {
  18383. background: #f2f2f2;
  18384. text-align: center;
  18385. }
  18386. .dialog_change >>> .el-dialog__title {
  18387. line-height: 5px;
  18388. }
  18389. .dialog_change >>> .el-dialog__body {
  18390. background: #fff;
  18391. padding: 10px 20px;
  18392. }
  18393. .score_box {
  18394. display: flex;
  18395. align-items: center;
  18396. margin-bottom: 18px;
  18397. margin-top: 20px;
  18398. }
  18399. .up_photo {
  18400. width: 120px;
  18401. cursor: pointer;
  18402. margin-top: 10px;
  18403. }
  18404. .up_photo2 {
  18405. width: 180px;
  18406. box-sizing: border-box;
  18407. min-width: 180px;
  18408. height: 180px;
  18409. max-height: 180px;
  18410. min-height: 180px;
  18411. cursor: pointer;
  18412. display: flex;
  18413. flex-direction: column;
  18414. align-items: center;
  18415. justify-content: center;
  18416. background: rgb(242, 246, 255);
  18417. /* padding: 25px; */
  18418. margin-bottom: 10px;
  18419. }
  18420. .up_photo2 img {
  18421. width: 50%;
  18422. height: auto;
  18423. }
  18424. .up_photo2 span {
  18425. color: #898989;
  18426. }
  18427. .plworkBox {
  18428. display: flex;
  18429. align-items: center;
  18430. margin-top: 10px;
  18431. flex-wrap: wrap;
  18432. }
  18433. .upload_send {
  18434. margin: 30px auto 30px;
  18435. width: 60%;
  18436. background: #169bd6;
  18437. text-align: center;
  18438. height: 35px;
  18439. line-height: 35px;
  18440. color: #fff;
  18441. border-radius: 5px;
  18442. cursor: pointer;
  18443. }
  18444. .marginT {
  18445. margin-top: 20px;
  18446. }
  18447. .cd_content_steps {
  18448. display: flex;
  18449. width: 90%;
  18450. justify-content: space-around;
  18451. border-top: 1px solid #eeeeee;
  18452. }
  18453. .cd_steps_box {
  18454. display: flex;
  18455. justify-content: center;
  18456. align-items: center;
  18457. flex-direction: column;
  18458. cursor: pointer;
  18459. }
  18460. .first {
  18461. display: flex;
  18462. align-items: center;
  18463. margin: 15px 0 20px 0;
  18464. font-size: 20px;
  18465. }
  18466. .first > div:nth-child(2) {
  18467. font-size: 16px !important;
  18468. padding-left: 10px;
  18469. line-height: 26px;
  18470. box-sizing: border-box;
  18471. }
  18472. .blue_box_one {
  18473. text-align: center;
  18474. color: #fff;
  18475. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18476. border-radius: 7px;
  18477. margin: 10px;
  18478. cursor: pointer;
  18479. width: 95%;
  18480. height: 45px;
  18481. display: flex;
  18482. flex-direction: row;
  18483. justify-content: flex-start;
  18484. align-items: center;
  18485. }
  18486. .blue_box_one > div:nth-child(1) {
  18487. line-height: 30px;
  18488. margin: 0 5px 0 10px;
  18489. width: 30%;
  18490. min-width: 70px;
  18491. border-radius: 4px;
  18492. }
  18493. .blue_box_one > div:nth-child(2) {
  18494. white-space: nowrap;
  18495. text-overflow: ellipsis;
  18496. overflow: hidden;
  18497. word-break: break-all;
  18498. width: 70%;
  18499. text-align: left;
  18500. margin-right: 10px;
  18501. max-width: calc(100% - 85px);
  18502. }
  18503. .blue_box_one > div:nth-child(2):hover {
  18504. overflow: hidden;
  18505. text-overflow: ellipsis;
  18506. white-space: nowrap;
  18507. cursor: pointer;
  18508. }
  18509. .upFile {
  18510. margin: 0 auto;
  18511. width: 120px;
  18512. background: #70afdb;
  18513. color: #fff;
  18514. height: 30px;
  18515. text-align: center;
  18516. line-height: 30px;
  18517. border-radius: 5px;
  18518. font-size: 14px;
  18519. cursor: pointer;
  18520. }
  18521. .courseTitle {
  18522. width: 85%;
  18523. margin: 10px auto;
  18524. display: flex;
  18525. flex-direction: row;
  18526. align-items: center;
  18527. justify-content: space-between;
  18528. text-align: center;
  18529. }
  18530. .courseTitle .ctitle {
  18531. font-size: 20px;
  18532. font-weight: bold;
  18533. color: #0e1e33;
  18534. white-space: nowrap;
  18535. overflow: hidden;
  18536. text-overflow: ellipsis;
  18537. }
  18538. .courseTitle .inviteBox {
  18539. font-size: 14px;
  18540. margin-top: 5px;
  18541. color: #a6cbff;
  18542. }
  18543. .courseTitle >>> .el-tooltip {
  18544. width: 100%;
  18545. white-space: nowrap;
  18546. overflow: hidden;
  18547. text-overflow: ellipsis;
  18548. word-break: break-word;
  18549. }
  18550. .ml {
  18551. margin-left: 20px;
  18552. color: #5b7dba;
  18553. border-left: 3px solid #5b7dba;
  18554. padding-left: 5px;
  18555. font-weight: bold;
  18556. }
  18557. .return {
  18558. width: 2rem;
  18559. height: 2rem;
  18560. cursor: pointer;
  18561. }
  18562. .return > img {
  18563. width: 100%;
  18564. height: 100%;
  18565. }
  18566. .returnBtn {
  18567. width: 86px;
  18568. height: 36px;
  18569. background: #3681fc;
  18570. border-radius: 4px;
  18571. color: #fff;
  18572. text-align: center;
  18573. line-height: 36px;
  18574. margin-right: 20px;
  18575. cursor: pointer;
  18576. font-size: 14px;
  18577. font-weight: 400;
  18578. display: flex;
  18579. flex-direction: row;
  18580. flex-wrap: nowrap;
  18581. align-items: center;
  18582. justify-content: center;
  18583. }
  18584. .commentIcon::before,
  18585. .vedioIcon::before,
  18586. .lockIcon::before,
  18587. .returnIcon::before {
  18588. content: "";
  18589. display: block;
  18590. background-size: 100% 100%;
  18591. background-repeat: no-repeat;
  18592. width: 20px;
  18593. height: 20px;
  18594. margin-right: 5px;
  18595. }
  18596. .commentIcon::before {
  18597. background-image: url("../../assets/icon/newIcon/comment.png");
  18598. }
  18599. .vedioIcon::before {
  18600. background-image: url("../../assets/icon/newIcon/vedio.png");
  18601. }
  18602. .lockIcon::before {
  18603. background-image: url("../../assets/icon/newIcon/lock.png");
  18604. }
  18605. .returnIcon::before {
  18606. background-image: url("../../assets/icon/newIcon/return.png");
  18607. }
  18608. .tool {
  18609. display: flex;
  18610. flex-direction: column;
  18611. flex-wrap: nowrap;
  18612. width: 13%;
  18613. margin: 0 30px;
  18614. align-items: center;
  18615. }
  18616. .whiteBIcon {
  18617. width: 150px;
  18618. cursor: pointer;
  18619. }
  18620. .whiteBIcon > img {
  18621. width: 100%;
  18622. height: 100%;
  18623. }
  18624. .mask {
  18625. background-color: rgba(0, 0, 0, 0);
  18626. position: fixed;
  18627. top: 0;
  18628. left: 0;
  18629. width: 100%;
  18630. height: 100%;
  18631. z-index: 20000;
  18632. display: flex;
  18633. align-items: center;
  18634. justify-content: center;
  18635. }
  18636. .progressBox {
  18637. width: 500px;
  18638. height: 180px;
  18639. background: #fff;
  18640. border-radius: 10px;
  18641. box-shadow: 0 0 6px 1px #bfbfbf;
  18642. display: flex;
  18643. align-items: center;
  18644. justify-content: center;
  18645. flex-direction: column;
  18646. position: relative;
  18647. color: #6c6c6c;
  18648. }
  18649. .progressBox >>> .el-progress-bar__outer {
  18650. background-color: #d1dfff !important;
  18651. }
  18652. .progressBox .lbox {
  18653. height: 50px;
  18654. font-size: 19px;
  18655. display: flex;
  18656. align-items: center;
  18657. color: #747474;
  18658. }
  18659. .progressBox .lbox img {
  18660. width: 40px;
  18661. margin-right: 20px;
  18662. }
  18663. .closeCss {
  18664. position: absolute;
  18665. top: 8px;
  18666. right: 8px;
  18667. cursor: pointer;
  18668. width: 20px;
  18669. height: 20px;
  18670. }
  18671. .closeCss > img {
  18672. width: 100%;
  18673. height: 100%;
  18674. }
  18675. .uploadVedio {
  18676. display: flex;
  18677. flex-direction: column;
  18678. flex-wrap: nowrap;
  18679. justify-content: center;
  18680. align-items: center;
  18681. margin: 0 15px 10px 0;
  18682. }
  18683. .uploadVedio > img {
  18684. width: 30px;
  18685. height: 30px;
  18686. }
  18687. .uploadVedio > span {
  18688. white-space: nowrap;
  18689. overflow: hidden;
  18690. text-overflow: ellipsis;
  18691. width: 75px;
  18692. margin-top: 7px;
  18693. }
  18694. .picName {
  18695. white-space: nowrap;
  18696. overflow: hidden;
  18697. text-overflow: ellipsis;
  18698. width: 75px;
  18699. margin-top: 7px;
  18700. }
  18701. .new_top {
  18702. display: flex;
  18703. background: #fff;
  18704. flex-direction: row;
  18705. justify-content: flex-start;
  18706. align-items: center;
  18707. height: 60px;
  18708. position: relative;
  18709. }
  18710. .new_top::before {
  18711. content: "";
  18712. width: 100%;
  18713. height: 20px;
  18714. position: absolute;
  18715. top: -20px;
  18716. display: block;
  18717. background: #f2f2f2;
  18718. }
  18719. .before {
  18720. position: absolute;
  18721. background: #c3dad4;
  18722. width: 6px;
  18723. height: 100%;
  18724. }
  18725. .courseIndex {
  18726. display: flex;
  18727. flex-direction: row;
  18728. align-items: center;
  18729. width: calc(100% - 600px);
  18730. }
  18731. .courseIndex > div:nth-child(1) {
  18732. margin: 0 0 0 10px;
  18733. font-size: 20px;
  18734. min-width: 100px;
  18735. font-weight: bold;
  18736. border-left: 4px solid #3363b9;
  18737. height: 35px;
  18738. text-align: center;
  18739. line-height: 35px;
  18740. }
  18741. .courseIndex > div:nth-child(2) {
  18742. font-size: 20px;
  18743. /* width: 300px; */
  18744. max-width: calc(100% - 180px);
  18745. white-space: nowrap;
  18746. overflow: hidden;
  18747. text-overflow: ellipsis;
  18748. }
  18749. .courseIndex > div:nth-child(3) {
  18750. border-bottom: 1px solid #d7d7d7;
  18751. padding-bottom: 5px;
  18752. background: #49a0f0;
  18753. width: 55px;
  18754. min-width: 55px;
  18755. border-radius: 5px;
  18756. color: #fff;
  18757. text-align: center;
  18758. height: 20px;
  18759. line-height: 26px;
  18760. font-size: 14px;
  18761. margin: 0 0 0 10px;
  18762. }
  18763. .course_text {
  18764. padding: 20px 0 0 15px;
  18765. text-indent: 30px;
  18766. width: 80%;
  18767. min-height: 20px;
  18768. }
  18769. .vedioList {
  18770. background: #f2f2f2;
  18771. border: 1px solid #ececec;
  18772. /* width: 38.8%; */
  18773. width: 300px;
  18774. height: 445px;
  18775. border-radius: 10px;
  18776. overflow: hidden;
  18777. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  18778. }
  18779. .vedioNav {
  18780. margin: 10px 0 0 15px;
  18781. border-bottom: 1px solid #d7d7d7;
  18782. padding-bottom: 5px;
  18783. background: #96d1ff;
  18784. width: 55px;
  18785. min-width: 55px;
  18786. border-radius: 5px;
  18787. color: #fff;
  18788. text-align: center;
  18789. height: 20px;
  18790. line-height: 26px;
  18791. font-size: 14px;
  18792. }
  18793. .queTop {
  18794. display: flex;
  18795. padding: 20px 0 20px 30px;
  18796. width: 100%;
  18797. flex-direction: row;
  18798. justify-content: flex-start;
  18799. align-items: center;
  18800. box-sizing: border-box;
  18801. }
  18802. .queTopTitle {
  18803. display: flex;
  18804. flex-direction: row;
  18805. flex-wrap: nowrap;
  18806. align-items: center;
  18807. font-weight: bold;
  18808. font-size: 20px;
  18809. color: rgb(14, 30, 51);
  18810. }
  18811. .queTopTitle::before {
  18812. content: "";
  18813. width: 2px;
  18814. height: 22px;
  18815. background: #3681fc;
  18816. border-radius: 3px;
  18817. display: block;
  18818. margin: 2px 6px 0 0;
  18819. }
  18820. .queTopRight {
  18821. display: flex;
  18822. flex-direction: row;
  18823. flex-wrap: nowrap;
  18824. align-items: center;
  18825. }
  18826. .queTopClose {
  18827. margin-right: 20px;
  18828. cursor: pointer;
  18829. position: relative;
  18830. display: flex;
  18831. }
  18832. .closeImg,
  18833. .openImg {
  18834. width: 25px;
  18835. height: 25px;
  18836. position: absolute;
  18837. left: -20px;
  18838. top: -1px;
  18839. }
  18840. .closeImg > img,
  18841. .openImg > img {
  18842. width: 100%;
  18843. height: 100%;
  18844. }
  18845. .question {
  18846. width: 40px;
  18847. margin-right: 10px;
  18848. margin-top: 7px;
  18849. }
  18850. .queTitle {
  18851. margin-left: 5px;
  18852. font-size: 25px;
  18853. display: flex;
  18854. align-items: center;
  18855. }
  18856. .addEditor {
  18857. width: 100px;
  18858. height: 30px;
  18859. background: #42cda6;
  18860. color: #fff;
  18861. border-radius: 5px;
  18862. text-align: center;
  18863. line-height: 30px;
  18864. box-shadow: 1px 3px 6px 1px #bfbfbf;
  18865. cursor: pointer;
  18866. }
  18867. .vedioName {
  18868. /* text-overflow: ellipsis;
  18869. top: 8px;
  18870. font-size: 14px;
  18871. overflow: hidden;
  18872. width: 100%;
  18873. word-break: break-all;
  18874. white-space: nowrap; */
  18875. cursor: pointer;
  18876. margin: 0px 0px 10px 5px;
  18877. white-space: nowrap;
  18878. overflow: hidden;
  18879. text-overflow: ellipsis;
  18880. width: 100%;
  18881. }
  18882. .vedioTime {
  18883. width: 35px;
  18884. position: absolute;
  18885. color: #fff;
  18886. bottom: 0px;
  18887. right: 0px;
  18888. text-align: center;
  18889. background: #46411f;
  18890. height: 20px;
  18891. font-size: 14px;
  18892. line-height: 20px;
  18893. }
  18894. .homework {
  18895. width: 200px;
  18896. display: flex;
  18897. flex-direction: column;
  18898. flex-wrap: nowrap;
  18899. align-items: center;
  18900. cursor: pointer;
  18901. }
  18902. .homebox {
  18903. display: flex;
  18904. flex-wrap: wrap;
  18905. flex-direction: row;
  18906. justify-content: flex-start;
  18907. align-items: center;
  18908. padding: 15px 0;
  18909. }
  18910. .isChooseActive {
  18911. color: #3e88f4;
  18912. border-bottom: 2px solid #2f80f3;
  18913. }
  18914. .chooseWho {
  18915. display: flex;
  18916. width: 100%;
  18917. flex-direction: row;
  18918. flex-wrap: nowrap;
  18919. justify-content: flex-start;
  18920. padding-bottom: 10px;
  18921. }
  18922. .chooseWho > div {
  18923. cursor: pointer;
  18924. padding-bottom: 10px;
  18925. margin: 0 30px 0 0;
  18926. font-weight: 400;
  18927. color: #0e1e33;
  18928. }
  18929. .addPoint > div > img {
  18930. cursor: pointer;
  18931. margin: 0 10px;
  18932. width: 85px;
  18933. border-radius: 15px;
  18934. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  18935. }
  18936. .addPoint > div {
  18937. display: flex;
  18938. flex-direction: column;
  18939. flex-wrap: nowrap;
  18940. align-items: center;
  18941. }
  18942. .isBorder > div {
  18943. margin: 0 0 10px 0;
  18944. align-items: flex-start !important;
  18945. }
  18946. .noiframeBox {
  18947. display: flex;
  18948. flex-wrap: wrap;
  18949. }
  18950. .iframeBox iframe {
  18951. width: 100%;
  18952. height: 800px;
  18953. border: none;
  18954. margin-bottom: 20px;
  18955. border: 1px solid #ccc;
  18956. }
  18957. .upload_toolBtn {
  18958. background: #6b92c9;
  18959. color: #fff;
  18960. width: 110px;
  18961. text-align: center;
  18962. height: 35px;
  18963. line-height: 35px;
  18964. font-size: 14px;
  18965. border-radius: 5px;
  18966. cursor: pointer;
  18967. position: absolute;
  18968. right: 10px;
  18969. bottom: 0;
  18970. }
  18971. .binfo_input,
  18972. .pj {
  18973. font: inherit;
  18974. color: currentColor;
  18975. width: 100%;
  18976. margin: 0;
  18977. padding: 15px 14px;
  18978. display: block;
  18979. min-width: 0;
  18980. outline: none;
  18981. box-sizing: content-box;
  18982. background: none;
  18983. -webkit-tap-highlight-color: transparent;
  18984. border: 1px solid rgba(0, 0, 0, 0.23);
  18985. border-radius: 4px;
  18986. box-sizing: border-box;
  18987. resize: none;
  18988. }
  18989. .binfo_input:focus-visible {
  18990. border: 1px solid rgba(61, 103, 188);
  18991. }
  18992. .dialog_diy >>> .el-dialog__header,
  18993. .dialog_diy1 >>> .el-dialog__header {
  18994. background: #454545 !important;
  18995. padding: 15px 20px;
  18996. }
  18997. .dialog_diy >>> .el-dialog__title,
  18998. .dialog_diy1 >>> .el-dialog__title {
  18999. color: #fff;
  19000. }
  19001. .dialog_diy >>> .el-dialog__headerbtn,
  19002. .dialog_diy1 >>> .el-dialog__headerbtn {
  19003. top: 19px;
  19004. }
  19005. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19006. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19007. color: #fff;
  19008. }
  19009. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19010. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19011. color: #fff;
  19012. }
  19013. .dialog_diy1 >>> .el-dialog__body {
  19014. padding: 0;
  19015. }
  19016. .dialog_diy >>> .el-dialog__body,
  19017. .dialog_diy >>> .el-dialog__footer,
  19018. .dialog_diy1 >>> .el-dialog__footer {
  19019. background: #fafafa;
  19020. }
  19021. .a_addBox {
  19022. padding: 0 0 0 15px;
  19023. }
  19024. .a_add_box {
  19025. padding: 10px;
  19026. background: #fff;
  19027. margin-bottom: 10px;
  19028. border-radius: 5px;
  19029. box-shadow: 0 0 5px 0 #d5d5d5;
  19030. }
  19031. .askIndex {
  19032. background: #3681fc;
  19033. border-radius: 50%;
  19034. color: #fff;
  19035. width: 25px;
  19036. height: 25px;
  19037. min-width: 25px;
  19038. min-height: 25px;
  19039. text-align: center;
  19040. line-height: 25px;
  19041. margin-right: 5px;
  19042. }
  19043. .a_add_head {
  19044. display: flex;
  19045. align-items: flex-start;
  19046. /* justify-content: space-between; */
  19047. flex-direction: column;
  19048. /* flex-direction: row; */
  19049. margin: 10px 0 20px 0;
  19050. font-size: 18px;
  19051. width: 100%;
  19052. }
  19053. .a_add_head .a_add_head_input {
  19054. width: 300px;
  19055. }
  19056. .a_add_head .a_add_head_div {
  19057. display: flex;
  19058. align-items: center;
  19059. justify-content: space-between;
  19060. }
  19061. .a_add_body {
  19062. display: flex;
  19063. align-items: center;
  19064. }
  19065. .a_add_input {
  19066. display: flex;
  19067. align-items: center;
  19068. flex-wrap: wrap;
  19069. width: 100%;
  19070. }
  19071. .a_add_input >>> .el-radio-group,
  19072. .a_add_input >>> .el-checkbox-group {
  19073. width: 100%;
  19074. }
  19075. .a_add_input >>> .el-radio,
  19076. .a_add_input >>> .el-checkbox {
  19077. display: flex;
  19078. flex-direction: row;
  19079. flex-wrap: nowrap;
  19080. align-items: center;
  19081. padding: 15px 0;
  19082. }
  19083. .a_add_input >>> .el-radio:not(:last-child),
  19084. .a_add_input >>> .el-checkbox:not(:last-child){
  19085. width: 100%;
  19086. border-bottom: 1px solid #efefef;
  19087. }
  19088. .redioStyle >>> .el-radio__label {
  19089. font-size: 18px;
  19090. }
  19091. .redioStyle >>> .el-radio__label > span,
  19092. .redioStyle >>> .el-checkbox__label > span {
  19093. word-break: break-all;
  19094. white-space: normal;
  19095. }
  19096. .redioStyle >>> .el-checkbox__label {
  19097. font-size: 18px;
  19098. }
  19099. .toolHeng2 {
  19100. width: 100%;
  19101. box-sizing: border-box;
  19102. }
  19103. .toolHeng {
  19104. display: flex;
  19105. flex-direction: row;
  19106. flex-wrap: wrap;
  19107. justify-content: flex-start;
  19108. align-items: center;
  19109. width: 100%;
  19110. }
  19111. .toolHeng > div {
  19112. padding-left: 20px;
  19113. }
  19114. .isWidth {
  19115. width: 20%;
  19116. }
  19117. .textTitle {
  19118. display: flex;
  19119. flex-direction: row;
  19120. flex-wrap: nowrap;
  19121. align-items: center;
  19122. width: 95%;
  19123. }
  19124. .textTitle >>> .el-form-item__label {
  19125. font-size: 22px;
  19126. color: #918f8f;
  19127. width: 100px;
  19128. }
  19129. .textTitle >>> .el-form-item__content {
  19130. width: calc(100% - 100px);
  19131. }
  19132. .textCss >>> .el-dialog {
  19133. width: 800px !important;
  19134. height: 400px;
  19135. background: #fafafa;
  19136. }
  19137. .textCss >>> .el-dialog__body {
  19138. margin: 55px 8% 0 8%;
  19139. padding: 0 !important;
  19140. }
  19141. .textCss >>> .el-dialog__footer {
  19142. padding-top: 38px;
  19143. }
  19144. .toolsCss >>> .el-dialog__body {
  19145. padding: 20px;
  19146. }
  19147. .lineCss >>> .el-dialog__body {
  19148. display: flex;
  19149. flex-direction: row;
  19150. align-items: center;
  19151. justify-content: center;
  19152. }
  19153. .newNav {
  19154. display: flex;
  19155. flex-direction: row;
  19156. align-items: baseline;
  19157. justify-content: flex-start;
  19158. }
  19159. .navText {
  19160. cursor: pointer;
  19161. white-space: nowrap;
  19162. overflow: hidden;
  19163. text-overflow: ellipsis;
  19164. width: 220px;
  19165. padding: 0 10px;
  19166. font-weight: 400;
  19167. color: #0e1e33;
  19168. }
  19169. .noVedio {
  19170. display: flex;
  19171. flex-direction: row;
  19172. justify-content: center;
  19173. align-content: center;
  19174. }
  19175. .noNavText {
  19176. cursor: pointer;
  19177. margin: 0px 0px 10px 5px;
  19178. width: 112px;
  19179. }
  19180. .listNoVedio {
  19181. margin: 0 0 0 30px;
  19182. width: 97%;
  19183. }
  19184. .video-player >>> .video-js {
  19185. height: 100%;
  19186. }
  19187. .hangVedioList {
  19188. width: 90% !important;
  19189. height: 150px !important;
  19190. margin: 20px 0 0 30px;
  19191. }
  19192. .hangVedio {
  19193. width: 100%;
  19194. height: 170px !important;
  19195. align-items: flex-start !important;
  19196. }
  19197. .hangHand {
  19198. height: 150px !important;
  19199. }
  19200. .twoChild {
  19201. width: 95%;
  19202. margin: 10px;
  19203. border-radius: 5px;
  19204. background: #f2f2f2;
  19205. display: flex;
  19206. flex-direction: column;
  19207. flex-wrap: nowrap;
  19208. justify-content: flex-start;
  19209. align-items: flex-start;
  19210. transition: all 0.5s;
  19211. overflow: hidden;
  19212. height: 0;
  19213. background: #e7f3ff;
  19214. }
  19215. .twoChild > div:nth-child(1) {
  19216. margin-top: 5px;
  19217. }
  19218. .navChild {
  19219. width: 100%;
  19220. cursor: pointer;
  19221. margin-bottom: 10px;
  19222. position: relative;
  19223. }
  19224. .navChild img {
  19225. position: absolute;
  19226. right: 11px;
  19227. width: 15px;
  19228. top: 50%;
  19229. transform: translateY(-50%);
  19230. }
  19231. .navActive {
  19232. height: auto !important;
  19233. overflow: auto !important;
  19234. padding-bottom: 10px;
  19235. }
  19236. .navTask {
  19237. display: flex;
  19238. flex-direction: row;
  19239. flex-wrap: nowrap;
  19240. align-items: center;
  19241. align-content: flex-start;
  19242. height: 40px;
  19243. justify-content: flex-start;
  19244. padding: 0 10px;
  19245. width: 100%;
  19246. box-sizing: border-box;
  19247. }
  19248. .navTaskname {
  19249. white-space: nowrap;
  19250. text-overflow: ellipsis;
  19251. overflow: hidden;
  19252. word-break: break-all;
  19253. padding-left: 5px;
  19254. }
  19255. .openTaskActive {
  19256. color: #4386e6;
  19257. }
  19258. .iframeName {
  19259. margin: 5px 0;
  19260. border-left: 4px solid #41c4a4;
  19261. padding-left: 4px;
  19262. }
  19263. .toolTitle {
  19264. margin: 0px 0px 20px;
  19265. font-size: 20px;
  19266. font-weight: 500;
  19267. border-left: 4px solid #41c4a4;
  19268. padding-left: 4px;
  19269. }
  19270. .cru_selectBox {
  19271. overflow: auto;
  19272. width: 95%;
  19273. margin: 17px auto 0;
  19274. height: calc(100% - 40px - 21px - 20px - 17px);
  19275. }
  19276. .cru_selectBox::-webkit-scrollbar,
  19277. .study_top::-webkit-scrollbar,
  19278. .textContent::-webkit-scrollbar {
  19279. /*滚动条整体样式*/
  19280. width: 6px;
  19281. /*高宽分别对应横竖滚动条的尺寸*/
  19282. height: 6px;
  19283. }
  19284. /*定义滚动条轨道 内阴影+圆角*/
  19285. .cru_selectBox::-webkit-scrollbar-track,
  19286. .study_top::-webkit-scrollbar-track,
  19287. .textContent::-webkit-scrollbar {
  19288. border-radius: 10px;
  19289. background-color: #b8bdc9;
  19290. }
  19291. /*定义滑块 内阴影+圆角*/
  19292. .cru_selectBox::-webkit-scrollbar-thumb,
  19293. .study_top::-webkit-scrollbar-thumb,
  19294. .textContent::-webkit-scrollbar-thumb {
  19295. border-radius: 10px;
  19296. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  19297. background-color: #2c5ab3;
  19298. }
  19299. .vedioBox {
  19300. border-radius: 20px;
  19301. background: #fff;
  19302. overflow: auto;
  19303. }
  19304. .taskBox {
  19305. width: 98%;
  19306. background: #F0F4FA;
  19307. margin: 10px auto;
  19308. padding: 0 10px;
  19309. border-radius: 4px;
  19310. box-sizing: border-box;
  19311. }
  19312. .vedioTaskBox {
  19313. width: 100%;
  19314. display: flex;
  19315. flex-direction: row;
  19316. flex-wrap: nowrap;
  19317. align-items: flex-start;
  19318. position: relative;
  19319. }
  19320. .toolBox {
  19321. padding: 0 60px 15px;
  19322. display: flex;
  19323. position: relative;
  19324. }
  19325. .btnAll {
  19326. position: absolute;
  19327. right: 0;
  19328. display: flex;
  19329. flex-direction: row;
  19330. flex-wrap: nowrap;
  19331. align-items: center;
  19332. }
  19333. .btnAllNT {
  19334. position: fixed;
  19335. bottom: 100px;
  19336. right: 40px;
  19337. z-index: 999;
  19338. display: flex;
  19339. flex-direction: row;
  19340. }
  19341. .btnAllNT > img {
  19342. cursor: pointer;
  19343. width: 80px;
  19344. }
  19345. /* .vedioTimeBox {
  19346. display: flex;
  19347. flex-direction: row;
  19348. align-items: center;
  19349. flex-wrap: nowrap;
  19350. position: relative;
  19351. } */
  19352. .navBox {
  19353. background: #fff;
  19354. height: calc(100% - 40px);
  19355. overflow-y: auto;
  19356. overflow-x: hidden;
  19357. }
  19358. .tool_work_box {
  19359. width: 100%;
  19360. padding: 0 37px 0;
  19361. box-sizing: border-box;
  19362. }
  19363. .worksBox {
  19364. padding: 5px 0;
  19365. border-bottom: 1px solid #eeeeee;
  19366. }
  19367. .worksBTitle {
  19368. font-size: 20px;
  19369. padding-bottom: 15px;
  19370. border-bottom: 1px solid #eeeeee;
  19371. display: flex;
  19372. align-items: center;
  19373. }
  19374. .greenBox {
  19375. width: 5px;
  19376. height: 30px;
  19377. background: #63b6fa;
  19378. margin-right: 5px;
  19379. }
  19380. .worksDetailBox {
  19381. display: flex;
  19382. width: 100%;
  19383. flex-direction: row;
  19384. flex-wrap: wrap;
  19385. align-items: flex-end;
  19386. justify-content: flex-start;
  19387. padding: 15px 0;
  19388. }
  19389. .works {
  19390. display: flex;
  19391. flex-direction: column;
  19392. flex-wrap: nowrap;
  19393. align-items: flex-start;
  19394. justify-content: flex-start;
  19395. align-content: center;
  19396. max-width: 240px;
  19397. width: calc(100% / 3 - 10px);
  19398. height: auto;
  19399. margin-right: 10px;
  19400. margin-bottom: 10px;
  19401. overflow: hidden;
  19402. height: 140px;
  19403. box-shadow: 0 0 6px 1px #dfdada;
  19404. border-radius: 15px;
  19405. }
  19406. .workImg {
  19407. width: 100%;
  19408. /* height: calc(100% - 40px); */
  19409. height: 105px;
  19410. position: relative;
  19411. }
  19412. .workImg > img {
  19413. width: 100%;
  19414. height: 100%;
  19415. object-fit: contain;
  19416. cursor: pointer;
  19417. }
  19418. .worksName {
  19419. height: 40px;
  19420. line-height: 40px;
  19421. display: flex;
  19422. width: 100%;
  19423. flex-direction: row;
  19424. flex-wrap: nowrap;
  19425. justify-content: space-between;
  19426. align-items: center;
  19427. margin: 0 0 0 10px;
  19428. }
  19429. .worksName > div:nth-child(1) {
  19430. width: 110px;
  19431. white-space: nowrap;
  19432. overflow: hidden;
  19433. text-overflow: ellipsis;
  19434. }
  19435. .worksName > div:nth-child(2) {
  19436. color: #b7b4b5;
  19437. }
  19438. .noWorksS {
  19439. padding: 15px 0 0;
  19440. display: flex;
  19441. flex-direction: row;
  19442. flex-wrap: wrap;
  19443. align-items: center;
  19444. justify-content: flex-start;
  19445. }
  19446. .noWorksS > div {
  19447. cursor: pointer;
  19448. }
  19449. .noWorksName,
  19450. .isWorksName,
  19451. .isWorksName2 {
  19452. background: #e1e9fb;
  19453. color: #3383fa;
  19454. width: 90px;
  19455. height: 25px;
  19456. text-align: center;
  19457. line-height: 25px;
  19458. border-radius: 4px;
  19459. margin: 10px 15px 10px 0;
  19460. white-space: nowrap;
  19461. overflow: hidden;
  19462. padding: 5px;
  19463. text-overflow: ellipsis;
  19464. cursor: pointer;
  19465. border: 1px solid #3681FC;
  19466. }
  19467. .isWorksName2 {
  19468. width: 100px;
  19469. height: 40px;
  19470. line-height: 40px;
  19471. position: relative;
  19472. }
  19473. .noWorksName.isWork {
  19474. background: #e7ebf1 !important;
  19475. border: 1px solid #cad1dc !important;
  19476. color: #acb4bf !important;
  19477. }
  19478. .isWorksName {
  19479. cursor: pointer;
  19480. background: #46a1eb !important;
  19481. width: 100px;
  19482. height: 40px;
  19483. line-height: 40px;
  19484. position: relative;
  19485. }
  19486. .isSelectName,
  19487. .noWorksName:hover {
  19488. background: #3383fa;
  19489. color: #fff;
  19490. border: 1px solid #3383fa;
  19491. }
  19492. .title {
  19493. background: #1e5cc9;
  19494. /* width: 98%; */
  19495. height: 45px;
  19496. color: #fff;
  19497. line-height: 45px;
  19498. padding-left: 20px;
  19499. box-sizing: border-box;
  19500. }
  19501. .textBox {
  19502. font-size: 20px;
  19503. width: 90%;
  19504. display: flex;
  19505. flex-direction: column;
  19506. align-items: center;
  19507. margin: 20px auto 0;
  19508. max-height: calc(100% - 75px);
  19509. overflow: auto;
  19510. }
  19511. .textContent {
  19512. font-size: 18px;
  19513. width: 95%;
  19514. max-width: 95%;
  19515. }
  19516. .answerBg {
  19517. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  19518. background-size: 100% 100%;
  19519. width: 100%;
  19520. height: 100%;
  19521. color: #fff;
  19522. text-align: center;
  19523. display: flex;
  19524. flex-direction: column;
  19525. flex-wrap: nowrap;
  19526. align-items: center;
  19527. position: relative;
  19528. justify-content: center;
  19529. }
  19530. .answerBg > div:nth-child(1) {
  19531. /* font-size: 22px;
  19532. padding: 25px 0 10px; */
  19533. }
  19534. .answerContent {
  19535. width: 215px;
  19536. max-height: 60px;
  19537. word-break: break-all;
  19538. text-align: center;
  19539. /* white-space: nowrap; */
  19540. overflow: hidden;
  19541. text-overflow: ellipsis;
  19542. /* padding: 23px 0 0; */
  19543. -webkit-line-clamp: 3;
  19544. -webkit-box-orient: vertical;
  19545. display: -webkit-box;
  19546. font-size: 15px;
  19547. cursor: pointer;
  19548. }
  19549. .elist_input_box {
  19550. display: flex;
  19551. align-items: flex-start;
  19552. flex-wrap: nowrap;
  19553. padding: 10px 0 15px 30px;
  19554. flex-direction: column;
  19555. }
  19556. .elist_input {
  19557. /* width: 40%; */
  19558. width: 100%;
  19559. margin: 20px;
  19560. }
  19561. .elist_input .elist_input_box input {
  19562. font: inherit;
  19563. color: currentColor;
  19564. width: 200px;
  19565. padding: 8px 14px;
  19566. display: block;
  19567. min-width: 0;
  19568. outline: none;
  19569. border: 1px solid rgba(0, 0, 0, 0.23);
  19570. border-radius: 4px;
  19571. box-sizing: border-box;
  19572. background: #fff;
  19573. margin: 0 20px 0 0;
  19574. }
  19575. .elist_input .elist_input_box span {
  19576. height: 36px;
  19577. line-height: 36px;
  19578. color: rgb(82, 82, 82);
  19579. }
  19580. .elist_input .elist_input_box .remove {
  19581. height: 20px;
  19582. width: 20px;
  19583. background-size: 100% 100%;
  19584. background-position: unset;
  19585. margin-left: 5px;
  19586. }
  19587. .elist_input_box >>> .el-rate {
  19588. display: flex;
  19589. height: 36px;
  19590. align-items: center;
  19591. }
  19592. .elist_input_box .elist_inptu_text {
  19593. min-height: 50px;
  19594. /* width: 500px;
  19595. max-height: 150px; */
  19596. width: 100%;
  19597. line-height: 50px;
  19598. color: rgb(82, 82, 82);
  19599. overflow: auto;
  19600. text-indent: 5px;
  19601. background: #f7f6f9;
  19602. border-radius: 10px;
  19603. }
  19604. .elist_input_box .elist_inptu_text input {
  19605. width: 500px;
  19606. }
  19607. .elist_input_box >>> .el-rate__icon {
  19608. font-size: 24px;
  19609. }
  19610. .isClick {
  19611. background: #4d9def;
  19612. }
  19613. /*定义滚动条轨道 内阴影+圆角*/
  19614. .bzTypeBox::-webkit-scrollbar {
  19615. /*滚动条整体样式*/
  19616. width: 6px;
  19617. /*高宽分别对应横竖滚动条的尺寸*/
  19618. height: 6px;
  19619. }
  19620. /*定义滚动条轨道 内阴影+圆角*/
  19621. .bzTypeBox::-webkit-scrollbar-track {
  19622. border-radius: 10px;
  19623. background-color: rgba(0, 0, 0, 0.1);
  19624. }
  19625. /*定义滑块 内阴影+圆角*/
  19626. .bzTypeBox::-webkit-scrollbar-thumb {
  19627. border-radius: 10px;
  19628. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  19629. background-color: rgba(0, 0, 0, 0.1);
  19630. }
  19631. .choiceBox {
  19632. display: flex;
  19633. margin: 20px 0;
  19634. width: 100%;
  19635. }
  19636. .bzTypeBox {
  19637. display: flex;
  19638. width: 100%;
  19639. overflow: auto;
  19640. white-space: nowrap;
  19641. }
  19642. .bzChild {
  19643. cursor: pointer;
  19644. box-sizing: border-box;
  19645. padding-bottom: 10px;
  19646. font-weight: bold;
  19647. min-width: fit-content;
  19648. }
  19649. .bzChild.active {
  19650. color: #3e88f4;
  19651. border-bottom: 2px solid #2f80f3;
  19652. }
  19653. .bzChild + .bzChild {
  19654. margin-left: 25px;
  19655. }
  19656. .bzBox {
  19657. display: flex;
  19658. flex-direction: row;
  19659. align-items: center;
  19660. }
  19661. .bzBox .yCss {
  19662. width: 14px;
  19663. height: 14px;
  19664. background: #3681fc;
  19665. margin: 0 16px 0 7px;
  19666. border-radius: 50%;
  19667. }
  19668. .bzBox > div:nth-child(2) {
  19669. font-size: 18px;
  19670. font-weight: bold;
  19671. color: #0e1e33;
  19672. }
  19673. .navTitile {
  19674. padding: 0 0px 0 15px;
  19675. font-size: 16px;
  19676. font-weight: bold;
  19677. color: #0e1e33;
  19678. height: 40px;
  19679. line-height: 40px;
  19680. }
  19681. .isTypeOne {
  19682. width: 240px;
  19683. height: 170px;
  19684. /* border: 1px solid #f8f8f8; */
  19685. border-radius: 10px;
  19686. box-shadow: 0 0 6px 1px #dfdada;
  19687. }
  19688. .e_add_top {
  19689. display: flex;
  19690. justify-content: space-between;
  19691. padding: 20px 20px 0 20px;
  19692. border-radius: 3px;
  19693. background: #fff;
  19694. }
  19695. .e_add_title2 {
  19696. display: flex;
  19697. align-items: center;
  19698. }
  19699. .e_add_title2 span {
  19700. width: 40px;
  19701. }
  19702. .e_add_title {
  19703. display: flex;
  19704. align-items: center;
  19705. color: #b8b8b8;
  19706. font-size: 18px;
  19707. position: relative;
  19708. height: 40px;
  19709. }
  19710. .e_add_title span {
  19711. margin-right: 10px;
  19712. }
  19713. .e_add_title .el_input {
  19714. width: 300px;
  19715. }
  19716. .e_add_title >>> .el-input__inner {
  19717. width: 400px;
  19718. }
  19719. .e_add_btn {
  19720. }
  19721. .e_add_content {
  19722. display: flex;
  19723. width: 100%;
  19724. max-width: 650px;
  19725. height: 550px;
  19726. }
  19727. .e_add_list {
  19728. background: #fff;
  19729. height: 500px;
  19730. width: 210px;
  19731. position: relative;
  19732. margin: 15px 5px 0 0;
  19733. flex-shrink: 0;
  19734. display: flex;
  19735. flex-direction: column;
  19736. }
  19737. .e_add_list_title {
  19738. font-size: 20px;
  19739. width: 100%;
  19740. box-sizing: border-box;
  19741. padding: 15px 40px;
  19742. text-align: center;
  19743. border-bottom: 1px solid #eaeaea;
  19744. position: relative;
  19745. display: flex;
  19746. align-items: center;
  19747. justify-content: center;
  19748. height: 57px;
  19749. background: #f6f6f6;
  19750. }
  19751. .e_add_list_title span {
  19752. overflow: hidden;
  19753. white-space: nowrap;
  19754. text-overflow: ellipsis;
  19755. }
  19756. .e_add_list_title img {
  19757. position: absolute;
  19758. right: 15px;
  19759. width: 25px;
  19760. cursor: pointer;
  19761. top: 50%;
  19762. transform: translateY(-50%);
  19763. }
  19764. .e_add_list_body {
  19765. height: calc(100% - 187px);
  19766. overflow: auto;
  19767. }
  19768. .e_add_list_child {
  19769. width: 100%;
  19770. display: flex;
  19771. align-items: center;
  19772. justify-content: center;
  19773. position: relative;
  19774. box-sizing: border-box;
  19775. padding: 15px 40px;
  19776. text-align: center;
  19777. }
  19778. .e_add_list_child span {
  19779. overflow: hidden;
  19780. white-space: nowrap;
  19781. text-overflow: ellipsis;
  19782. cursor: pointer;
  19783. }
  19784. .e_add_list_child img {
  19785. position: absolute;
  19786. right: 10px;
  19787. width: 21px;
  19788. cursor: pointer;
  19789. top: 50%;
  19790. transform: translateY(-50%);
  19791. }
  19792. .e_add_list_child + .e_add_list_child {
  19793. border-top: 1px solid #eaeaea;
  19794. }
  19795. .e_add_list_child .active {
  19796. color: #409eff;
  19797. }
  19798. .e_add_list_btn {
  19799. position: absolute;
  19800. bottom: 0;
  19801. height: 50px;
  19802. background: rgb(120, 120, 254);
  19803. width: 100%;
  19804. color: #fff;
  19805. font-size: 16px;
  19806. text-align: center;
  19807. line-height: 50px;
  19808. cursor: pointer;
  19809. }
  19810. .e_add_list_detail {
  19811. position: absolute;
  19812. bottom: 0;
  19813. height: 130px;
  19814. background: rgb(120, 120, 254);
  19815. width: 100%;
  19816. color: #fff;
  19817. font-size: 16px;
  19818. display: flex;
  19819. align-items: center;
  19820. justify-content: center;
  19821. }
  19822. .e_add_list_detail textarea {
  19823. height: 90%;
  19824. width: 95%;
  19825. border: none;
  19826. resize: none;
  19827. outline: none;
  19828. padding: 5px;
  19829. box-sizing: border-box;
  19830. }
  19831. .e_add_list_pbox {
  19832. width: 100%;
  19833. max-width: 650px;
  19834. /* height: 600px; */
  19835. }
  19836. .e_add_list_pbox_title {
  19837. height: 50px;
  19838. background: #fff;
  19839. display: flex;
  19840. align-items: center;
  19841. width: 100%;
  19842. box-sizing: border-box;
  19843. padding: 0 20px;
  19844. }
  19845. .type_title {
  19846. font-size: 18px;
  19847. font-weight: 700;
  19848. }
  19849. .type_content {
  19850. font-size: 16px;
  19851. margin-left: 30px;
  19852. }
  19853. .type_content span + span {
  19854. margin-left: 20px;
  19855. }
  19856. .type_content span {
  19857. cursor: pointer;
  19858. padding-bottom: 5px;
  19859. box-sizing: border-box;
  19860. }
  19861. .type_content .active {
  19862. color: #409eff;
  19863. border-bottom: 2px solid #409eff;
  19864. }
  19865. .e_add_list_pbox_content {
  19866. height: calc(100% - 50px);
  19867. display: flex;
  19868. align-items: center;
  19869. width: 100%;
  19870. background: #fff;
  19871. }
  19872. .evaCss {
  19873. display: flex;
  19874. flex-direction: row;
  19875. flex-wrap: nowrap;
  19876. align-items: flex-start;
  19877. }
  19878. .cru_line {
  19879. position: absolute;
  19880. bottom: 0px;
  19881. transition: all 0.5s;
  19882. left: 0px;
  19883. width: 125px;
  19884. margin-left: -25px;
  19885. }
  19886. .isNoMessage {
  19887. width: 20%;
  19888. margin: 25% auto 0;
  19889. }
  19890. .isNoMessage > img {
  19891. width: 100%;
  19892. height: 100%;
  19893. }
  19894. .fullStyle >>> .el-dialog__body {
  19895. height: 100% !important;
  19896. }
  19897. .fullStyle >>> .el-dialog,
  19898. .fullStyle {
  19899. width: 100% !important;
  19900. max-width: 100% !important;
  19901. height: 100% !important;
  19902. margin: 0 !important;
  19903. }
  19904. .full_diy >>> .el-dialog {
  19905. margin: 0 !important;
  19906. height: 100%;
  19907. padding: 4px;
  19908. }
  19909. .full_diy >>> .el-dialog__body {
  19910. height: calc(100% - 100px);
  19911. }
  19912. .full_diy2 >>> .el-dialog__body {
  19913. height: calc(100% - 50px);
  19914. padding: 0;
  19915. }
  19916. .switchCss {
  19917. /* width: 100%; */
  19918. display: flex;
  19919. flex-direction: row;
  19920. flex-wrap: nowrap;
  19921. align-items: center;
  19922. /* justify-content: center; */
  19923. }
  19924. .isClickNav {
  19925. color: #000;
  19926. /* color: #499eef; */
  19927. }
  19928. .commentImg {
  19929. width: 25px;
  19930. height: 25px;
  19931. cursor: pointer;
  19932. }
  19933. .commentImg > img {
  19934. width: 100%;
  19935. height: 100%;
  19936. }
  19937. .comment {
  19938. background: #f9f9f9;
  19939. border-radius: 0 0 15px 15px;
  19940. display: flex;
  19941. flex-direction: row;
  19942. flex-wrap: nowrap;
  19943. align-items: center;
  19944. justify-content: flex-end;
  19945. height: 35px;
  19946. }
  19947. .commentList {
  19948. display: flex;
  19949. flex-direction: row;
  19950. flex-wrap: nowrap;
  19951. align-items: center;
  19952. justify-content: center;
  19953. align-content: center;
  19954. /* margin-left: 15px; */
  19955. /* margin-left: 8px; */
  19956. }
  19957. .scoreImg {
  19958. width: 17px;
  19959. height: 17px;
  19960. }
  19961. .studentDetail {
  19962. display: flex;
  19963. flex-direction: row;
  19964. flex-wrap: nowrap;
  19965. /* align-items: center; */
  19966. align-items: flex-start;
  19967. }
  19968. .tx {
  19969. width: 50px;
  19970. }
  19971. .tx > img {
  19972. width: 100%;
  19973. height: 100%;
  19974. }
  19975. .nameAndTime {
  19976. display: flex;
  19977. flex-direction: column;
  19978. flex-wrap: nowrap;
  19979. align-items: flex-start;
  19980. margin-left: 10px;
  19981. }
  19982. .worksAnswer {
  19983. color: #4078dd;
  19984. margin: 10px 0;
  19985. font-size: 16px;
  19986. position: relative;
  19987. }
  19988. .worksAnswer > img {
  19989. width: 500px;
  19990. height: 300px;
  19991. object-fit: contain;
  19992. margin: 0 auto;
  19993. display: block;
  19994. }
  19995. .commentTop {
  19996. border-bottom: 1px solid #eaeaea;
  19997. padding-bottom: 10px;
  19998. }
  19999. .commentBox {
  20000. padding-top: 15px;
  20001. }
  20002. .pl {
  20003. font-size: 18px;
  20004. }
  20005. .plPerson {
  20006. width: 100%;
  20007. }
  20008. .plName {
  20009. display: flex;
  20010. flex-direction: row;
  20011. flex-wrap: nowrap;
  20012. align-items: baseline;
  20013. color: #78787a;
  20014. width: 100%;
  20015. }
  20016. .deleteComment {
  20017. cursor: pointer;
  20018. margin-left: auto;
  20019. color: #237ade;
  20020. }
  20021. .plContent {
  20022. margin-top: 5px;
  20023. }
  20024. .evalCss {
  20025. background: #fff;
  20026. font-size: 18px;
  20027. }
  20028. .nav {
  20029. color: #9d9d9d;
  20030. padding: 5px 0 15px 20px;
  20031. }
  20032. .middleBox {
  20033. padding: 5px 0 15px 20px;
  20034. }
  20035. .pfBox {
  20036. padding-bottom: 30px;
  20037. }
  20038. .nameAndrate {
  20039. display: flex;
  20040. flex-direction: row;
  20041. flex-wrap: nowrap;
  20042. align-items: center;
  20043. padding-bottom: 10px;
  20044. height: 30px;
  20045. line-height: 30px;
  20046. }
  20047. .nameAndrate > div {
  20048. margin-left: 10px;
  20049. color: #000;
  20050. height: 30px;
  20051. }
  20052. .nameAndrate >>> .el-rate__icon {
  20053. font-size: 28px !important;
  20054. }
  20055. .pfBox > div:nth-child(2) {
  20056. background: #f7f6f9;
  20057. width: 400px;
  20058. min-height: 45px;
  20059. border-radius: 10px;
  20060. font-size: 16px;
  20061. display: flex;
  20062. flex-wrap: wrap;
  20063. align-items: center;
  20064. padding: 10px 20px;
  20065. box-sizing: border-box;
  20066. color: #000;
  20067. }
  20068. .bz {
  20069. display: flex;
  20070. flex-direction: row;
  20071. flex-wrap: nowrap;
  20072. align-items: flex-start;
  20073. }
  20074. .bz > div {
  20075. padding: 0 10px;
  20076. }
  20077. .select_box2_title {
  20078. background: #fff;
  20079. border-radius: 5px;
  20080. padding: 15px 10px;
  20081. box-sizing: border-box;
  20082. margin-bottom: 10px;
  20083. display: flex;
  20084. flex-direction: row;
  20085. flex-wrap: nowrap;
  20086. align-items: center;
  20087. }
  20088. .select_box2_title > div:nth-child(2) {
  20089. margin-left: 10px;
  20090. color: #c4c4c4;
  20091. }
  20092. .select_box2_box {
  20093. display: flex;
  20094. height: 500px;
  20095. }
  20096. .select_box2_img {
  20097. width: calc(100% - 310px);
  20098. height: 100%;
  20099. overflow: auto;
  20100. background: #fff;
  20101. border-radius: 5px;
  20102. }
  20103. .select_box2_img img {
  20104. width: 100%;
  20105. }
  20106. .select_box2_answer {
  20107. background: #fff;
  20108. margin-left: 10px;
  20109. border-radius: 5px;
  20110. width: 300px;
  20111. overflow: auto;
  20112. height: 90%;
  20113. display: flex;
  20114. flex-direction: column;
  20115. align-items: flex-start;
  20116. padding-top: 10px;
  20117. box-sizing: border-box;
  20118. position: relative;
  20119. }
  20120. .select_answer_title {
  20121. padding: 0 0 15px 20px;
  20122. color: #c4c4c4;
  20123. }
  20124. .select_box2_answer_box {
  20125. margin: 0 0 10px 20px;
  20126. width: 85%;
  20127. display: flex;
  20128. flex-direction: row;
  20129. flex-wrap: nowrap;
  20130. align-items: center;
  20131. }
  20132. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  20133. color: #000;
  20134. }
  20135. .upAnswerCss {
  20136. position: absolute;
  20137. bottom: 15px;
  20138. right: 15px;
  20139. }
  20140. .upAnswerCss >>> .el-button {
  20141. width: 95px;
  20142. height: 35px;
  20143. line-height: 35px;
  20144. padding: 0;
  20145. }
  20146. .rightWidthCss {
  20147. width: 60%;
  20148. display: flex;
  20149. flex-direction: row;
  20150. align-items: flex-start;
  20151. }
  20152. .rightAnswer {
  20153. display: flex;
  20154. flex-direction: row;
  20155. flex-wrap: nowrap;
  20156. align-items: center;
  20157. color: red;
  20158. margin-bottom: 31px;
  20159. }
  20160. .rightAnswerCss {
  20161. display: flex;
  20162. flex-direction: column;
  20163. flex-wrap: nowrap;
  20164. padding-top: 60px;
  20165. }
  20166. .blueCss {
  20167. color: #767de1;
  20168. margin-left: 10px;
  20169. }
  20170. .redCss {
  20171. color: red;
  20172. }
  20173. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  20174. color: rgb(0 123 255) !important;
  20175. }
  20176. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  20177. color: rgb(0 123 255) !important;
  20178. }
  20179. .zuoyeYulan {
  20180. padding-top: 15px;
  20181. font-size: 18px;
  20182. display: flex;
  20183. align-items: flex-end;
  20184. }
  20185. .buttonA {
  20186. margin-left: 10px;
  20187. padding: 0;
  20188. }
  20189. .displayBox {
  20190. margin-bottom: 10px;
  20191. display: block;
  20192. border-bottom: 3px solid #eee;
  20193. display: flex;
  20194. align-items: center;
  20195. }
  20196. .easy_comment {
  20197. width: calc(100% - 90px);
  20198. margin-left: 10px;
  20199. display: flex;
  20200. flex-wrap: wrap;
  20201. }
  20202. .easy_comment > div {
  20203. border: 1px solid #4a4a4a;
  20204. color: #666;
  20205. border-radius: 15px;
  20206. padding: 5px 10px;
  20207. font-size: 16px;
  20208. margin-bottom: 10px;
  20209. margin-right: 5px;
  20210. cursor: pointer;
  20211. }
  20212. .easy_comment div:hover {
  20213. border: 1px solid #f7ba2a;
  20214. color: #c69217;
  20215. }
  20216. .xuan_right_box {
  20217. padding: 10px;
  20218. background: rgb(247, 247, 247);
  20219. margin: 0 12px;
  20220. border-radius: 5px;
  20221. }
  20222. .tool_right_box {
  20223. display: flex;
  20224. align-items: center;
  20225. }
  20226. .tool_right_box + .tool_right_box {
  20227. margin-top: 10px;
  20228. }
  20229. .right_box_xuan {
  20230. background: rgb(0 123 255);
  20231. color: #fff;
  20232. border-radius: 5px;
  20233. padding: 5px;
  20234. margin-left: 10px;
  20235. min-width: 95px;
  20236. }
  20237. .pButton:hover {
  20238. opacity: 1 !important;
  20239. }
  20240. .pButton {
  20241. position: fixed;
  20242. /* right: 5%; */
  20243. /* bottom: 5%; */
  20244. color: #fff;
  20245. /* width: 50px;
  20246. height: 50px; */
  20247. /* border-radius: 50%; */
  20248. text-align: center;
  20249. /* line-height: 50px; */
  20250. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  20251. cursor: pointer;
  20252. z-index: 999;
  20253. right: 20px;
  20254. top: 110px;
  20255. width: 50px;
  20256. height: 50px;
  20257. background: #fff;
  20258. display: flex;
  20259. align-items: center;
  20260. justify-content: center;
  20261. box-shadow: 0px 0 8px 2px #c5c5c5;
  20262. border-radius: 5px;
  20263. }
  20264. .pzClass {
  20265. width: calc(100% - 340px);
  20266. }
  20267. .newDialogCss {
  20268. /* position: fixed;
  20269. right: 5%;
  20270. top: 50%;
  20271. width: 340px;
  20272. transform: translateY(-50%);
  20273. height: 60%;
  20274. box-shadow: 0px 0 8px 0px #555555;
  20275. border-radius: 15px;
  20276. z-index: 999; */
  20277. position: fixed;
  20278. right: 20px;
  20279. top: 101px;
  20280. width: 330px;
  20281. height: calc(100% - 80px);
  20282. z-index: 999;
  20283. background: #fff;
  20284. border-top-right-radius: 0px;
  20285. border-bottom-right-radius: 0px;
  20286. overflow: hidden;
  20287. }
  20288. .pzTop {
  20289. color: #fff;
  20290. background: #000;
  20291. display: flex;
  20292. flex-direction: row;
  20293. flex-wrap: nowrap;
  20294. align-items: center;
  20295. justify-content: space-between;
  20296. height: 40px;
  20297. border-radius: 15px 15px 0 0;
  20298. }
  20299. .pzTop2 .checkbox {
  20300. display: flex;
  20301. align-items: center;
  20302. padding: 5px 30px;
  20303. flex: 0 0 auto;
  20304. font-weight: bold;
  20305. border-bottom: 1px solid #eee;
  20306. justify-content: space-between;
  20307. }
  20308. .pzTop2 .check {
  20309. text-align: center;
  20310. cursor: pointer;
  20311. box-sizing: border-box;
  20312. display: flex;
  20313. }
  20314. .pzTop2 img {
  20315. width: 25px;
  20316. cursor: pointer;
  20317. }
  20318. .pzTop > div:nth-child(1) {
  20319. padding-left: 10px;
  20320. }
  20321. .pzTop > div:nth-child(2) {
  20322. width: 15px;
  20323. height: 15px;
  20324. padding-right: 10px;
  20325. cursor: pointer;
  20326. }
  20327. .pzTop > div:nth-child(2) > img {
  20328. width: 100%;
  20329. height: 100%;
  20330. }
  20331. .pzBox,
  20332. .noPzBox {
  20333. height: calc(100% - 60px);
  20334. /* background: #ededed; */
  20335. background: #fff;
  20336. /* border-radius: 0 0 15px 15px; */
  20337. }
  20338. .noPzBox {
  20339. display: flex;
  20340. flex-direction: column;
  20341. flex-wrap: nowrap;
  20342. justify-content: center;
  20343. align-items: center;
  20344. }
  20345. .pzList {
  20346. background: #f7f7f7;
  20347. width: 90%;
  20348. margin: 0 auto 15px;
  20349. border-radius: 5px;
  20350. }
  20351. .pzNavTop {
  20352. display: flex;
  20353. flex-direction: row;
  20354. flex-wrap: nowrap;
  20355. padding: 10px 10px 0 10px;
  20356. align-items: center;
  20357. }
  20358. .pzDelete {
  20359. cursor: pointer;
  20360. margin-left: auto;
  20361. font-size: 14px;
  20362. color: #afafaf;
  20363. }
  20364. .pzNavTop > div:nth-child(1) {
  20365. background: #3760af;
  20366. width: 35px;
  20367. height: 35px;
  20368. color: #fff;
  20369. text-align: center;
  20370. line-height: 35px;
  20371. border-radius: 50%;
  20372. font-size: 14px;
  20373. }
  20374. .pzNavTop > div:nth-child(2) {
  20375. font-size: 18px;
  20376. color: #959595;
  20377. margin-left: 5px;
  20378. }
  20379. .pzContent {
  20380. padding: 10px;
  20381. word-break: break-word;
  20382. }
  20383. .pzContent audio {
  20384. width: 100%;
  20385. }
  20386. .pzContent audio::-webkit-media-controls-panel {
  20387. background: #fff;
  20388. }
  20389. .pzContent >>> img {
  20390. max-width: 100%;
  20391. }
  20392. .pzListBox {
  20393. padding-top: 15px;
  20394. height: calc(100% - 110px);
  20395. overflow: auto;
  20396. }
  20397. .addPzButton {
  20398. position: relative;
  20399. margin-top: 3px;
  20400. width: 100%;
  20401. }
  20402. .addPzButton .img1 {
  20403. position: absolute;
  20404. top: 50%;
  20405. right: 25px;
  20406. transform: translateY(-50%);
  20407. height: 100%;
  20408. display: flex;
  20409. align-items: center;
  20410. }
  20411. .addPzButton .img1 div {
  20412. display: flex;
  20413. }
  20414. .addPzButton .img1 div img {
  20415. width: 28px;
  20416. margin-left: 10px;
  20417. cursor: pointer;
  20418. }
  20419. .addPzButton .img1 div span {
  20420. font-size: 14px;
  20421. margin: 4px 0 0 3px;
  20422. color: #afafaf;
  20423. }
  20424. .addPz {
  20425. background: #4b79ce;
  20426. width: 100px;
  20427. color: #fff;
  20428. font-size: 12px;
  20429. height: 30px;
  20430. margin: 0 auto;
  20431. text-align: center;
  20432. line-height: 30px;
  20433. border-radius: 10px;
  20434. cursor: pointer;
  20435. }
  20436. .addDialogCss {
  20437. position: fixed;
  20438. right: 37%;
  20439. top: 50%;
  20440. width: 600px;
  20441. transform: translateY(-50%);
  20442. height: 70%;
  20443. min-height: 450px;
  20444. box-shadow: 0px 0 8px 0px #555555;
  20445. border-radius: 15px;
  20446. z-index: 999;
  20447. }
  20448. .teacherPz {
  20449. display: flex;
  20450. flex-direction: row;
  20451. align-items: center;
  20452. flex-wrap: nowrap;
  20453. }
  20454. .teacherPzImg {
  20455. width: 30px;
  20456. height: 30px;
  20457. }
  20458. .teacherPzImg > img {
  20459. width: 100%;
  20460. height: 100%;
  20461. }
  20462. .addPzBox {
  20463. height: calc(100% - 40px);
  20464. background: #ededed;
  20465. }
  20466. .pzAudioClass {
  20467. margin: 15px 14px;
  20468. background: #fff;
  20469. height: 100%;
  20470. display: flex;
  20471. justify-content: center;
  20472. align-items: center;
  20473. }
  20474. .pzConText {
  20475. width: 95%;
  20476. height: 100%;
  20477. margin: 10px auto 0;
  20478. border: none;
  20479. background: #fff;
  20480. border-radius: 0px;
  20481. }
  20482. .pzConText >>> .text {
  20483. height: calc(100% - 82px);
  20484. }
  20485. .addTextCss {
  20486. background: #4b79ce;
  20487. width: 80px;
  20488. height: 30px;
  20489. text-align: center;
  20490. color: #fff;
  20491. line-height: 30px;
  20492. border-radius: 10px;
  20493. margin: 10px auto 0;
  20494. cursor: pointer;
  20495. }
  20496. .pzConText:focus-visible {
  20497. border: none !important;
  20498. }
  20499. .maxWidth {
  20500. width: 1000px;
  20501. }
  20502. .noPz {
  20503. width: 150px;
  20504. margin: 0 auto 20%;
  20505. }
  20506. .noPz > img {
  20507. width: 100%;
  20508. height: 100%;
  20509. }
  20510. .pzList .time {
  20511. text-align: right;
  20512. box-sizing: border-box;
  20513. padding: 0 10px 10px 0px;
  20514. color: #949494;
  20515. font-size: 14px;
  20516. }
  20517. /* code 样式 */
  20518. .cont {
  20519. /* -webkit-user-modify: read-write; */
  20520. overflow-wrap: break-word;
  20521. -webkit-line-break: after-white-space;
  20522. }
  20523. /* table 样式 */
  20524. .cont >>> table {
  20525. border-top: 1px solid #ccc;
  20526. border-left: 1px solid #ccc;
  20527. }
  20528. .cont >>> table td,
  20529. .cont >>> table th {
  20530. border-bottom: 1px solid #ccc;
  20531. border-right: 1px solid #ccc;
  20532. /* padding: 20px 5px; */
  20533. padding: 5px 10px;
  20534. max-width: 0px;
  20535. height: 30px;
  20536. vertical-align: baseline;
  20537. box-sizing: border-box;
  20538. }
  20539. .cont >>> table th {
  20540. border-bottom: 2px solid #ccc;
  20541. text-align: center;
  20542. }
  20543. /* blockquote 样式 */
  20544. .cont >>> blockquote {
  20545. display: block;
  20546. border-left: 8px solid #d0e5f2;
  20547. padding: 5px 10px;
  20548. margin: 10px 0;
  20549. line-height: 1.4;
  20550. font-size: 100%;
  20551. background-color: #f1f1f1;
  20552. }
  20553. /* code 样式 */
  20554. .cont >>> code {
  20555. display: inline-block;
  20556. /* *display: inline; */
  20557. zoom: 1;
  20558. background-color: #f1f1f1;
  20559. border-radius: 3px;
  20560. padding: 3px 5px;
  20561. margin: 0 3px;
  20562. }
  20563. .cont >>> pre code {
  20564. display: block;
  20565. }
  20566. /* ul ol 样式 */
  20567. .cont >>> ul,
  20568. ol {
  20569. margin: 10px 0 10px 20px;
  20570. }
  20571. .addPzCheck {
  20572. display: flex;
  20573. flex-direction: row;
  20574. flex-wrap: nowrap;
  20575. padding: 10px 15px 0;
  20576. }
  20577. .addPzCheck span {
  20578. cursor: pointer;
  20579. padding-bottom: 5px;
  20580. font-weight: bold;
  20581. }
  20582. .addPzCheck span + span {
  20583. margin-left: 10px;
  20584. }
  20585. .addPzCheck .isChooseActive {
  20586. color: #3e88f4;
  20587. border-bottom: 2px solid #2f80f3;
  20588. }
  20589. .scoreBox,
  20590. .scoreDetailBox {
  20591. display: flex;
  20592. align-items: center;
  20593. justify-content: flex-start;
  20594. margin-top: 20px;
  20595. font-size: 18px;
  20596. width: 100%;
  20597. }
  20598. .scoreBox .t,
  20599. .scoreDetailBox .t {
  20600. margin-right: 10px;
  20601. width: 100px;
  20602. text-align: right;
  20603. }
  20604. .scoreDetailBox {
  20605. align-items: flex-start;
  20606. }
  20607. .scoreDetailBox >>> .el-textarea {
  20608. width: calc(100% - 200px);
  20609. }
  20610. .scoreBox >>> .el-input {
  20611. width: 130px;
  20612. font-size: 38px;
  20613. }
  20614. .scoreBox >>> .el-input__inner {
  20615. height: 60px;
  20616. }
  20617. .answerScore {
  20618. position: absolute;
  20619. top: 10px;
  20620. right: 10px;
  20621. background: #0000008f;
  20622. border-radius: 5px;
  20623. padding: 3px 5px;
  20624. font-size: 14px;
  20625. color: #fff;
  20626. cursor: pointer;
  20627. }
  20628. .open_box .switch_box {
  20629. width: 100%;
  20630. margin: 0 auto;
  20631. display: flex;
  20632. justify-content: space-between;
  20633. }
  20634. .open_box .switch_box + .switch_box {
  20635. margin-top: 10px;
  20636. }
  20637. .deleteImg {
  20638. width: 25px !important;
  20639. height: 25px !important;
  20640. cursor: pointer;
  20641. position: absolute;
  20642. top: 10px;
  20643. right: 10px;
  20644. }
  20645. .deleteImg2 {
  20646. width: 15px !important;
  20647. height: 15px !important;
  20648. top: 5px;
  20649. right: 5px;
  20650. }
  20651. .rightW {
  20652. right: 40px;
  20653. }
  20654. .drawPBox {
  20655. display: flex;
  20656. flex-direction: column;
  20657. position: relative;
  20658. }
  20659. .drawPBox span {
  20660. font-size: 18px;
  20661. color: #606266;
  20662. padding-bottom: 10px;
  20663. margin: 10px 0;
  20664. border-bottom: 1px solid #eaeaea;
  20665. }
  20666. .drawPBox img {
  20667. width: 500px;
  20668. height: 300px;
  20669. object-fit: contain;
  20670. cursor: pointer;
  20671. margin: 0 auto;
  20672. }
  20673. .sentenBox {
  20674. background: #fff;
  20675. height: 450px;
  20676. overflow: auto;
  20677. background-image: url("../../assets/icon/conSentences/stuBg.png");
  20678. background-position: 102%;
  20679. background-repeat: no-repeat;
  20680. background-size: 60%;
  20681. }
  20682. .addSen {
  20683. background: #409efe;
  20684. width: 90px;
  20685. color: #fff;
  20686. height: 35px;
  20687. text-align: center;
  20688. line-height: 35px;
  20689. border-radius: 5px;
  20690. float: right;
  20691. margin: 10px 20px 0 0;
  20692. cursor: pointer;
  20693. }
  20694. .sentenTop {
  20695. display: flex;
  20696. flex-direction: row;
  20697. flex-wrap: nowrap;
  20698. align-items: center;
  20699. padding: 55px 0 0 20px;
  20700. box-sizing: border-box;
  20701. }
  20702. .sentenTop > div:nth-child(2) {
  20703. width: 300px;
  20704. margin: 0 15px;
  20705. }
  20706. .sentenTop > div:nth-child(3) {
  20707. background: #409efe;
  20708. color: #fff;
  20709. width: 65px;
  20710. height: 35px;
  20711. text-align: center;
  20712. line-height: 35px;
  20713. border-radius: 5px;
  20714. cursor: pointer;
  20715. }
  20716. .cardList,
  20717. .cardList1 {
  20718. padding: 10px 0 10px 0;
  20719. display: flex;
  20720. flex-direction: row;
  20721. flex-wrap: wrap;
  20722. align-items: center;
  20723. box-sizing: border-box;
  20724. border-bottom: 1px solid #f4f4f4;
  20725. width: 98%;
  20726. margin: 0 auto;
  20727. min-width: 60%;
  20728. max-width: 85%;
  20729. }
  20730. .cardList1 {
  20731. padding: 10px 0 10px 10px !important;
  20732. margin: 0 !important;
  20733. }
  20734. .cardBox {
  20735. display: flex;
  20736. flex-direction: row;
  20737. flex-wrap: wrap;
  20738. align-items: center;
  20739. align-content: center;
  20740. }
  20741. .cardBox > div {
  20742. margin-bottom: 10px;
  20743. }
  20744. .isCard,
  20745. .isChooseCard,
  20746. .noCard,
  20747. .isCard1 {
  20748. width: 130px;
  20749. height: 60px;
  20750. text-align: center;
  20751. line-height: 60px;
  20752. font-size: 20px;
  20753. cursor: pointer;
  20754. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  20755. background-size: cover;
  20756. transition: all 2s;
  20757. margin-right: 20px;
  20758. }
  20759. .isCard > div,
  20760. .noCard > div,
  20761. .isCard1 > div {
  20762. white-space: nowrap;
  20763. overflow: hidden;
  20764. text-overflow: ellipsis;
  20765. width: 75%;
  20766. margin: 0 auto;
  20767. }
  20768. .noCard {
  20769. background-image: none;
  20770. }
  20771. .isCard1 {
  20772. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  20773. }
  20774. .isChooseCard {
  20775. background-image: none;
  20776. border: 1px dashed #b9b9b9;
  20777. border-radius: 10px;
  20778. }
  20779. .card {
  20780. width: 130px;
  20781. height: 60px;
  20782. }
  20783. .card > img {
  20784. width: 100%;
  20785. height: 100%;
  20786. }
  20787. .rightCardBox {
  20788. margin: 10px 0 0 10px;
  20789. }
  20790. .rightCardBox > div:nth-child(1) {
  20791. margin-bottom: 10px;
  20792. }
  20793. .cardCss {
  20794. display: flex;
  20795. flex-direction: column;
  20796. flex-wrap: nowrap;
  20797. align-items: center;
  20798. border-bottom: 3px solid #b4c3d3;
  20799. padding: 0 0 5px 0;
  20800. margin-right: 10px;
  20801. }
  20802. .cardCss > div:nth-child(2) {
  20803. background: #5b7b9d;
  20804. color: #fff;
  20805. width: 20px;
  20806. height: 20px;
  20807. border-radius: 50%;
  20808. text-align: center;
  20809. line-height: 20px;
  20810. }
  20811. .isWrong {
  20812. display: flex;
  20813. flex-direction: row;
  20814. flex-wrap: nowrap;
  20815. align-content: center;
  20816. align-items: center;
  20817. }
  20818. .answerRight {
  20819. width: 25%;
  20820. }
  20821. .isTj {
  20822. display: flex;
  20823. flex-direction: row;
  20824. flex-wrap: nowrap;
  20825. align-items: center;
  20826. }
  20827. .isTj > div:nth-child(2) {
  20828. color: #727070;
  20829. margin-left: 10px;
  20830. }
  20831. .isTjImg {
  20832. width: 30px;
  20833. height: 30px;
  20834. }
  20835. .isTjImg > img {
  20836. width: 100%;
  20837. height: 100%;
  20838. }
  20839. .cardAnswerBox {
  20840. font-size: 18px;
  20841. width: 97%;
  20842. border: 5px;
  20843. padding: 0;
  20844. border-radius: 5px;
  20845. margin: 10px auto;
  20846. word-break: break-word;
  20847. }
  20848. .w_name {
  20849. margin-bottom: 10px;
  20850. }
  20851. .w_name span {
  20852. font-size: 16px;
  20853. }
  20854. .w_teachert {
  20855. width: 50px !important;
  20856. position: absolute;
  20857. height: auto !important;
  20858. z-index: 10;
  20859. right: 25px;
  20860. top: -25px;
  20861. }
  20862. .group_workBox {
  20863. }
  20864. .group_workBox + .group_workBox {
  20865. margin-top: 20px;
  20866. }
  20867. .group_box {
  20868. padding-bottom: 20px;
  20869. border-bottom: 2px solid #f0f0f0;
  20870. }
  20871. .group_title {
  20872. display: flex;
  20873. align-items: center;
  20874. justify-content: space-between;
  20875. }
  20876. .group_name {
  20877. background-image: url(../../assets/icon/groupN.png);
  20878. width: 220px;
  20879. background-size: 100% 100%;
  20880. height: 67px;
  20881. padding: 0 20px 0 43px;
  20882. box-sizing: border-box;
  20883. line-height: 63px;
  20884. color: #fff;
  20885. overflow: hidden;
  20886. white-space: nowrap;
  20887. text-overflow: ellipsis;
  20888. }
  20889. .group_work {
  20890. width: 100%;
  20891. padding: 0 10px;
  20892. box-sizing: border-box;
  20893. display: flex;
  20894. flex-wrap: wrap;
  20895. }
  20896. .g_d_box {
  20897. display: flex;
  20898. flex-flow: wrap;
  20899. justify-content: space-around;
  20900. }
  20901. .g_d_box .isChair {
  20902. background-image: url(../../assets/avatar.png) !important;
  20903. }
  20904. .g_d_group {
  20905. width: 500px;
  20906. margin-bottom: 80px;
  20907. }
  20908. .g_d_group_chair {
  20909. display: flex;
  20910. align-items: center;
  20911. justify-content: center;
  20912. }
  20913. .g_d_group_chair > div + div {
  20914. margin-left: 30px;
  20915. }
  20916. .g_d_group_chair > div,
  20917. .g_d_group_chair2 > div {
  20918. display: flex;
  20919. flex-direction: column;
  20920. align-items: center;
  20921. }
  20922. .g_d_group_chair > div > span:nth-child(1),
  20923. .g_d_group_chair2 > div > span:nth-child(1) {
  20924. background-image: url(../../assets/icon/chair.png);
  20925. width: 50px;
  20926. height: 50px;
  20927. display: block;
  20928. background-size: 100% 100%;
  20929. }
  20930. .g_d_group_tableBox {
  20931. display: flex;
  20932. align-items: center;
  20933. justify-content: center;
  20934. }
  20935. .g_d_group_chair2 {
  20936. display: flex;
  20937. flex-direction: column;
  20938. align-items: center;
  20939. justify-content: center;
  20940. }
  20941. .g_d_group_chair2 > div + div {
  20942. margin-top: 10px;
  20943. }
  20944. .g_d_group_table {
  20945. background-image: url(../../assets/icon/groupBg.png);
  20946. width: 354px;
  20947. height: 196px;
  20948. background-size: 100% 100%;
  20949. display: flex;
  20950. align-items: center;
  20951. justify-content: center;
  20952. flex-direction: column;
  20953. color: #fff;
  20954. }
  20955. .g_d_group_table > div:nth-child(1) {
  20956. font-size: 24px;
  20957. margin-bottom: 5px;
  20958. }
  20959. .g_d_group_table > div:nth-child(2) div {
  20960. cursor: pointer;
  20961. background: #2e77bf;
  20962. padding: 4px 10px;
  20963. border-radius: 5px;
  20964. }
  20965. .groupBox {
  20966. }
  20967. .groupContent + .groupContent {
  20968. margin-top: 30px;
  20969. }
  20970. .groupTitle {
  20971. font-size: 24px;
  20972. color: rgb(80, 80, 80);
  20973. margin-bottom: 20px;
  20974. }
  20975. .groupName {
  20976. display: flex;
  20977. align-items: center;
  20978. }
  20979. .groupn {
  20980. font-size: 15px;
  20981. margin-right: 10px;
  20982. }
  20983. .groupName + .groupName {
  20984. margin-top: 15px;
  20985. }
  20986. .groupBtn {
  20987. margin-left: 10px;
  20988. }
  20989. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  20990. text-align: left;
  20991. }
  20992. .g_d_btnBox {
  20993. display: flex;
  20994. justify-content: flex-end;
  20995. align-items: flex-end;
  20996. margin-bottom: 20px;
  20997. }
  20998. .updateChair {
  20999. position: relative;
  21000. }
  21001. .updateChairBtn {
  21002. position: absolute;
  21003. width: 50px;
  21004. height: 50px;
  21005. overflow: hidden;
  21006. /* display: flex; */
  21007. align-items: center;
  21008. justify-content: center;
  21009. background: #00000087;
  21010. color: #fff;
  21011. border-radius: 50px;
  21012. display: none;
  21013. cursor: pointer;
  21014. }
  21015. .updateChair:hover .updateChairBtn {
  21016. display: flex;
  21017. }
  21018. .group_staic_box {
  21019. display: flex;
  21020. padding: 30px 40px 10px;
  21021. flex-wrap: wrap;
  21022. }
  21023. .group_staic {
  21024. /* width: 50%; */
  21025. margin-bottom: 20px;
  21026. display: flex;
  21027. align-items: center;
  21028. }
  21029. .group_staic span:nth-child(1) {
  21030. width: 150px;
  21031. text-align: right;
  21032. margin-right: 15px;
  21033. }
  21034. .group_staic span:nth-child(2) {
  21035. background: rgb(0 123 255);
  21036. color: #fff;
  21037. border-radius: 5px;
  21038. padding: 5px;
  21039. }
  21040. .codeFileBox {
  21041. height: 300px;
  21042. background: #fff;
  21043. display: flex;
  21044. align-items: center;
  21045. justify-content: center;
  21046. }
  21047. .codeFileBox img {
  21048. width: 200px;
  21049. margin: 0;
  21050. height: auto;
  21051. }
  21052. .codeFileBox div {
  21053. background: rgb(80, 142, 226);
  21054. color: #fff;
  21055. padding: 10px 20px;
  21056. border-radius: 25px;
  21057. cursor: pointer;
  21058. margin-left: 15px;
  21059. }
  21060. .radioBox {
  21061. display: flex;
  21062. flex-direction: column;
  21063. flex-wrap: nowrap;
  21064. align-items: flex-start;
  21065. }
  21066. .radioBox > div {
  21067. margin: 10px 0 0 10px;
  21068. }
  21069. /* .radioBox >>> .el-radio__input,
  21070. .radioBox >>> .el-checkbox__inner {
  21071. margin-left: 10px;
  21072. } */
  21073. .radioBox >>> .el-radio__label,
  21074. .radioBox >>> .el-checkbox__label {
  21075. display: flex;
  21076. align-items: center;
  21077. }
  21078. .radioBox >>> .el-radio__label > span {
  21079. width: 100%;
  21080. display: -webkit-box;
  21081. overflow: hidden;
  21082. white-space: normal !important;
  21083. text-overflow: ellipsis;
  21084. word-wrap: break-word;
  21085. }
  21086. .inImg {
  21087. width: 100px;
  21088. cursor: pointer;
  21089. }
  21090. .inImg > img {
  21091. width: 100%;
  21092. height: 100%;
  21093. object-fit: cover;
  21094. }
  21095. .timuImgBox {
  21096. margin: 10px 0;
  21097. display: flex;
  21098. flex-direction: column;
  21099. flex-wrap: wrap;
  21100. align-items: flex-start;
  21101. }
  21102. .timuImg {
  21103. width: 150px;
  21104. margin: 5px 0;
  21105. cursor: pointer;
  21106. }
  21107. .timuImg > img {
  21108. width: 100%;
  21109. height: 100%;
  21110. object-fit: cover;
  21111. }
  21112. .worksTop {
  21113. display: flex;
  21114. flex-direction: row;
  21115. align-items: flex-end;
  21116. }
  21117. .corOpen {
  21118. margin: 0 0 0 10px;
  21119. font-size: 14px;
  21120. cursor: pointer;
  21121. color: #505050;
  21122. }
  21123. .corOpen:hover {
  21124. color: #499eef;
  21125. }
  21126. .navCorOpenBox {
  21127. display: flex;
  21128. flex-direction: row;
  21129. align-items: center;
  21130. justify-content: space-between;
  21131. height: 55px;
  21132. background: #ffffff;
  21133. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  21134. border-radius: 8px 8px 0px 0px;
  21135. z-index: 9;
  21136. position: relative;
  21137. }
  21138. .navCorOpen {
  21139. padding-right: 15px;
  21140. cursor: pointer;
  21141. width: 20px;
  21142. display: flex;
  21143. }
  21144. .navCorOpen > img {
  21145. width: 100%;
  21146. height: 100%;
  21147. }
  21148. .mlImg {
  21149. width: 25px !important;
  21150. min-width: 25px;
  21151. cursor: pointer;
  21152. margin-top: 5px;
  21153. }
  21154. .mlImg > img {
  21155. width: 100%;
  21156. height: 100%;
  21157. }
  21158. .navLeftCss {
  21159. width: 100% !important;
  21160. left: 0 !important;
  21161. }
  21162. .isContentCss {
  21163. width: 100% !important;
  21164. }
  21165. .isAllWidth {
  21166. width: 100% !important;
  21167. }
  21168. .toolBoxSteps {
  21169. position: absolute;
  21170. top: 50%;
  21171. transform: translateY(-50%);
  21172. cursor: pointer;
  21173. width: 60px;
  21174. display: flex;
  21175. align-items: center;
  21176. justify-content: center;
  21177. }
  21178. .toolBoxSteps:nth-child(1) > img,
  21179. .toolBoxSteps:nth-child(2) > img {
  21180. width: 24px;
  21181. }
  21182. .toolBoxSteps:nth-child(1) {
  21183. left: 0;
  21184. }
  21185. .toolBoxSteps:nth-child(2) {
  21186. right: 0;
  21187. }
  21188. .isChooseActive {
  21189. color: #3681fc !important;
  21190. font-weight: bold !important;
  21191. }
  21192. .tool_box {
  21193. width: 100%;
  21194. }
  21195. .tool_type_box {
  21196. display: flex;
  21197. flex-direction: row;
  21198. align-items: baseline;
  21199. flex-wrap: nowrap;
  21200. justify-content: flex-start;
  21201. position: relative;
  21202. }
  21203. .toolSort {
  21204. display: flex;
  21205. flex-direction: row;
  21206. flex-wrap: wrap;
  21207. justify-content: flex-start;
  21208. align-items: flex-start;
  21209. }
  21210. .toolSort > div {
  21211. margin: 0 45px 0 0;
  21212. width: auto;
  21213. }
  21214. .tools {
  21215. width: 100%;
  21216. display: flex;
  21217. flex-direction: column;
  21218. flex-wrap: nowrap;
  21219. align-items: flex-start;
  21220. }
  21221. .whiteBIcon {
  21222. width: 80px;
  21223. cursor: pointer;
  21224. display: flex;
  21225. flex-direction: column;
  21226. flex-wrap: nowrap;
  21227. align-items: center;
  21228. }
  21229. .whiteBIcon > img {
  21230. width: 100%;
  21231. height: 100%;
  21232. }
  21233. .whiteBIcon > img {
  21234. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  21235. border-radius: 15px;
  21236. }
  21237. .dia_tool_box {
  21238. display: flex;
  21239. flex-wrap: wrap;
  21240. width: 100%;
  21241. }
  21242. .dia_tool_box > div {
  21243. margin-right: 40px;
  21244. }
  21245. .check {
  21246. /* width: 20px;
  21247. height: 20px; */
  21248. cursor: pointer;
  21249. margin: 10px 0;
  21250. }
  21251. .checkDiv {
  21252. display: flex;
  21253. align-items: center;
  21254. }
  21255. .checkDiv span {
  21256. margin-left: 5px;
  21257. color: #858585;
  21258. }
  21259. .check img {
  21260. width: 20px;
  21261. height: 20px;
  21262. }
  21263. .fileC_box > .fileC_title {
  21264. padding: 10px 5px;
  21265. border-top: 1px solid #cdcdcd;
  21266. font-size: 14px;
  21267. color: #868686;
  21268. width: 88%;
  21269. margin: 0 auto;
  21270. }
  21271. .pl_select_box {
  21272. height: 40px;
  21273. line-height: 40px;
  21274. width: 100%;
  21275. cursor: pointer;
  21276. padding: 0 20px;
  21277. box-sizing: border-box;
  21278. border-radius: 5px;
  21279. border: 1px solid #d6d6d6;
  21280. white-space: nowrap;
  21281. overflow: hidden;
  21282. text-overflow: ellipsis;
  21283. background: #fff;
  21284. text-align: left;
  21285. }
  21286. .stageBoxCss {
  21287. display: flex;
  21288. flex-direction: row;
  21289. flex-wrap: nowrap;
  21290. align-items: center;
  21291. height: 50px;
  21292. border-bottom: 1px solid #e2f5fc;
  21293. cursor: pointer;
  21294. }
  21295. .stageChild {
  21296. height: 0;
  21297. overflow: hidden;
  21298. transition: all 0.5s;
  21299. }
  21300. .navItem {
  21301. background: #f0f4fa;
  21302. border-radius: 8px;
  21303. width: 95%;
  21304. margin: 10px auto 0;
  21305. display: flex;
  21306. flex-direction: row;
  21307. flex-wrap: nowrap;
  21308. justify-content: flex-start;
  21309. align-items: center;
  21310. }
  21311. .navItemList {
  21312. display: flex;
  21313. flex-direction: row;
  21314. flex-wrap: nowrap;
  21315. align-items: center;
  21316. padding: 18px 13px;
  21317. cursor: pointer;
  21318. font-size: 16px;
  21319. font-weight: 400;
  21320. color: #0e1e33;
  21321. justify-content: flex-start;
  21322. width: 100%;
  21323. border-radius: 8px;
  21324. }
  21325. .navItemList > div {
  21326. font-size: 16px;
  21327. font-weight: 400;
  21328. color: #0e1e33;
  21329. }
  21330. .navItemList > div:first-child {
  21331. min-width: 60px;
  21332. }
  21333. .navItemList > div:last-child {
  21334. display: -webkit-box;
  21335. overflow: hidden;
  21336. white-space: normal !important;
  21337. text-overflow: ellipsis;
  21338. word-wrap: break-word;
  21339. -webkit-line-clamp: 2;
  21340. -webkit-box-orient: vertical;
  21341. }
  21342. .isItemList {
  21343. background: #3681fc;
  21344. }
  21345. .isItemList > div {
  21346. color: #fff;
  21347. }
  21348. .navListItem {
  21349. width: 280px;
  21350. height: 50px;
  21351. margin: 0px auto 10px;
  21352. display: flex;
  21353. flex-direction: row;
  21354. flex-wrap: nowrap;
  21355. align-items: center;
  21356. justify-content: space-between;
  21357. background: #f0f4fa;
  21358. border-radius: 6px 6px 6px 6px;
  21359. }
  21360. .downIcon {
  21361. width: 20px;
  21362. min-width: 20px;
  21363. height: 20px;
  21364. margin-right: 15px;
  21365. cursor: pointer;
  21366. }
  21367. .downIcon > img {
  21368. width: 100%;
  21369. height: 100%;
  21370. }
  21371. .newButton {
  21372. width: 102px;
  21373. height: 36px;
  21374. background: #e7ebf1;
  21375. border-radius: 4px;
  21376. color: #0e1e33;
  21377. font-weight: 400;
  21378. font-size: 14px;
  21379. border: none;
  21380. float: right;
  21381. margin-left: 10px;
  21382. }
  21383. .pick_box {
  21384. display: flex;
  21385. align-items: flex-start;
  21386. flex-wrap: wrap;
  21387. }
  21388. </style>