studyStudent.vue 708 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860
  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
  66. style="
  67. max-width: calc(100% - 40px);
  68. width: auto;
  69. white-space: nowrap;
  70. overflow: hidden;
  71. text-overflow: ellipsis;
  72. word-break: break-word;
  73. display: block;
  74. "
  75. >
  76. <el-tooltip
  77. effect="light"
  78. :content="courseDetail.title"
  79. placement="top"
  80. >
  81. <div class="ctitle">
  82. {{ courseDetail.title }}
  83. </div>
  84. </el-tooltip>
  85. </div>
  86. <el-tooltip effect="light" content="收缩" placement="top">
  87. <div class="mlImg" @click="setContent2(false)">
  88. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  89. </div>
  90. </el-tooltip>
  91. </div>
  92. </div>
  93. <div class="cru_selectBox">
  94. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  95. <div class="stageChild" :class="{ navActive: item.isOpen }">
  96. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  97. <div
  98. class="navItem"
  99. :class="{
  100. openTaskActive:
  101. navIndex == taskCount &&
  102. nav.id == navId &&
  103. stageIndex == courseType,
  104. }"
  105. >
  106. <div
  107. @click="openTask(stageIndex, navIndex, nav.id)"
  108. class="navItemList"
  109. :class="{
  110. isItemList:
  111. navIndex == taskCount &&
  112. nav.id == navId &&
  113. stageIndex == courseType,
  114. }"
  115. >
  116. <div>任务{{ navIndex + 1 }}:</div>
  117. <el-tooltip
  118. effect="light"
  119. :content="nav.taskName"
  120. placement="top"
  121. >
  122. <div
  123. :style="{
  124. width:
  125. IsLookOpen && !nav.isLook
  126. ? 'calc(100% - 75px)'
  127. : 'auto',
  128. }"
  129. >
  130. {{ nav.taskName }}
  131. </div>
  132. </el-tooltip>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  141. <div class="new_topFixed"></div>
  142. <div
  143. class="new_top"
  144. :class="{ navLeftCss: !mlDialog }"
  145. >
  146. <div class="courseIndex">
  147. <div>任务{{ taskCount + 1 }}</div>
  148. <el-tooltip
  149. effect="light"
  150. :content="
  151. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  152. "
  153. placement="top"
  154. >
  155. <div>
  156. {{
  157. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  158. .task
  159. }}
  160. </div>
  161. </el-tooltip>
  162. </div>
  163. <div class="btnAll">
  164. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  165. 评论
  166. </div>
  167. <div
  168. class="returnBtn vedioIcon"
  169. @click="startRecording"
  170. v-if="!videoStart && (tType == 1 || tType == 4)"
  171. >
  172. 录制
  173. </div>
  174. <!-- <div class="returnBtn" @click="allScrell">全屏</div> -->
  175. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  176. 开始录制
  177. </div>
  178. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  179. style="background: #ee5255">
  180. 下载录制
  181. </div>
  182. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  183. 权限
  184. </div> -->
  185. <div class="returnBtn" @click="refreshCourse">刷新</div>
  186. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  187. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  188. <div
  189. class="returnBtn returnIcon"
  190. @click.stop="
  191. goTo(
  192. '/courseDetail?userid=' +
  193. userid +
  194. '&oid=' +
  195. oid +
  196. '&org=' +
  197. org +
  198. '&cid=' +
  199. classId +
  200. '&courseId=' +
  201. id +
  202. '&tType=' +
  203. tType +
  204. '&screenType=' +
  205. screenType
  206. )
  207. "
  208. >
  209. 返回
  210. </div>
  211. </div>
  212. </div>
  213. <div
  214. class="isNoMessage"
  215. v-if="
  216. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  217. .chapterData.length == 0 &&
  218. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  219. .toolChoose[0].tool.length == 0 &&
  220. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  221. .taskDetail == '' &&
  222. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  223. .eList &&
  224. !(
  225. courseDetail.userid == userid ||
  226. (courseDetail.course_teacher &&
  227. courseDetail.course_teacher.indexOf(userid) != -1)
  228. )
  229. "
  230. >
  231. <img src="../../assets/icon/isNoMessage.png" alt />
  232. </div>
  233. <div class="study_top" :class="{ pzClass: pzDialog }">
  234. <div
  235. class="vedioBox"
  236. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  237. >
  238. <div
  239. class="student_head"
  240. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  241. >
  242. <div class="vedioTaskBox">
  243. <div
  244. :class="
  245. contentDialog == false
  246. ? 'box_course isContentCss'
  247. : 'box_course'
  248. "
  249. v-if="
  250. vChapterData.length > 0 &&
  251. vChapterData[0] &&
  252. showType !== ''
  253. "
  254. >
  255. <div class="wheel" style="height: auto" v-if="showType === 0">
  256. <div
  257. class="workd_media"
  258. style="height: 650px; width: calc(100% - 50px)"
  259. >
  260. <video-player
  261. class="video-player vjs-custom-skin"
  262. :class="contentDialog == false ? 'isAllWidth' : ''"
  263. :playsinline="true"
  264. :options="playerO[0]"
  265. @play="onPlayerPlay($event)"
  266. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  267. ></video-player>
  268. </div>
  269. </div>
  270. <div
  271. class="wheel"
  272. v-if="showType == 1"
  273. style="
  274. box-shadow: 0 0 6px 1px #f2f2f2;
  275. width: 95%;
  276. margin: 0 auto;
  277. background: #f1f1f1;
  278. "
  279. >
  280. <div class="title">查看文档</div>
  281. <el-form class="textBox">
  282. <el-form-item class="textTitle">
  283. <div style="font-size: 22px">
  284. {{ text.name }}
  285. </div>
  286. </el-form-item>
  287. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  288. <div v-html="text.url" class="textContent cont"></div>
  289. </el-form>
  290. </div>
  291. <div
  292. class="wheel"
  293. v-if="
  294. pptImgUrl1.indexOf(
  295. 'https://view.officeapps.live.com/op/view.aspx?src='
  296. ) != -1 && showType == 2
  297. "
  298. style="width: 95%; margin: 0 auto"
  299. >
  300. <iframe
  301. style="width: 100%; height: 100%; border: none"
  302. :src="pptImgUrl1"
  303. ></iframe>
  304. </div>
  305. <div
  306. class="wheel"
  307. v-else-if="showType == 2"
  308. style="width: 95%; margin: 0 auto"
  309. >
  310. <iframe
  311. style="width: 100%; height: 100%; border: none"
  312. security="restricted"
  313. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  314. :src="pptImgUrl1"
  315. ></iframe>
  316. </div>
  317. <div
  318. class="wheel"
  319. v-if="showType == 3"
  320. style="width: 95%; margin: 0 auto"
  321. >
  322. <pdf
  323. :pdfUrl="pptImgUrl1"
  324. style="width: 100%; height: 100%; overflow: auto"
  325. ></pdf>
  326. </div>
  327. <div
  328. class="wheel"
  329. v-if="showType == 4"
  330. style="width: 95%; margin: 0 auto"
  331. >
  332. <el-image
  333. :src="pptImgUrl1"
  334. fit="contain"
  335. style="width: 100%; height: 100%; cursor: pointer"
  336. @click="previewImg(pptImgUrl1)"
  337. ></el-image>
  338. </div>
  339. </div>
  340. <div
  341. class="pButton"
  342. style="
  343. position: absolute;
  344. right: 20px;
  345. top: 0;
  346. background: #205cc6;
  347. z-index: 998;
  348. opacity: 0.8;
  349. "
  350. v-if="!contentDialog"
  351. @click="setContent(true)"
  352. >
  353. <!-- 批 -->
  354. <img
  355. src="../../assets/mlBtn.png"
  356. style="width: 25px"
  357. alt=""
  358. />
  359. </div>
  360. <div
  361. v-if="contentDialog == true"
  362. :style="{
  363. width:
  364. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  365. showType === ''
  366. ? 'calc(100%)'
  367. : '300px',
  368. margin:
  369. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  370. showType === ''
  371. ? '0 15px'
  372. : '0 15px 0 0',
  373. }"
  374. >
  375. <div
  376. class="vedioList"
  377. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  378. style="height: 650px"
  379. >
  380. <div class="navCorOpenBox">
  381. <div class="navTitile">内容列表:</div>
  382. <div class="navCorOpen" @click="setContent(false)">
  383. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  384. </div>
  385. </div>
  386. <div class="navBox">
  387. <div
  388. v-show="
  389. vChapterData[0].length > 0 || fileC[0].length > 0
  390. "
  391. style="padding: 10px 0 25px 0"
  392. >
  393. <div
  394. class="vedioTimeBox"
  395. v-for="(vitem, vindex) in vChapterData[0]"
  396. :key="vindex + '1'"
  397. >
  398. <div class="navListItem" v-if="vitem.type == 2">
  399. <div
  400. @click="lookVedio(vitem.url, vindex)"
  401. class="navText"
  402. :class="isClickNav == vindex ? 'isClickNav' : ''"
  403. >
  404. <span v-if="vitem.text">{{ vitem.text }}-</span
  405. >{{ vitem.name }}
  406. </div>
  407. <div class="downIcon" @click="downloadFile2(vitem)">
  408. <img
  409. src="../../assets/icon/newIcon/down.png"
  410. alt
  411. />
  412. </div>
  413. </div>
  414. <div class="navListItem" v-if="vitem.type == 6">
  415. <div
  416. @click="lookText(taskCount, vindex)"
  417. class="navText"
  418. :class="isClickNav == vindex ? 'isClickNav' : ''"
  419. >
  420. {{ vitem.name }}.doc
  421. </div>
  422. <div
  423. class="downIcon"
  424. @click="checkFileFull1(vitem.type, vitem)"
  425. >
  426. <img
  427. src="../../assets/icon/newIcon/allScreen.png"
  428. alt
  429. />
  430. </div>
  431. </div>
  432. <div class="navListItem" v-if="vitem.type == 8">
  433. <div
  434. @click="doUrl(vitem.url, vindex)"
  435. class="navText"
  436. :class="isClickNav == vindex ? 'isClickNav' : ''"
  437. >
  438. {{ vitem.title ? vitem.title : vitem.url }}
  439. </div>
  440. <div
  441. class="downIcon"
  442. @click="checkFileFull1(vitem.type, vitem)"
  443. >
  444. <img
  445. src="../../assets/icon/newIcon/allScreen.png"
  446. alt
  447. />
  448. </div>
  449. </div>
  450. <div class="navListItem" v-if="vitem.type == 3">
  451. <div
  452. @click="downFile(vitem, vindex)"
  453. class="navText"
  454. :class="isClickNav == vindex ? 'isClickNav' : ''"
  455. >
  456. <span v-if="vitem.text">{{ vitem.text }}-</span
  457. >{{ vitem.name }}
  458. </div>
  459. <div class="downIcon" @click="downloadFile2(vitem)">
  460. <img
  461. src="../../assets/icon/newIcon/down.png"
  462. alt
  463. />
  464. </div>
  465. <div
  466. class="downIcon"
  467. @click="checkFileFull1(vitem.type, vitem)"
  468. >
  469. <img
  470. src="../../assets/icon/newIcon/allScreen.png"
  471. alt
  472. />
  473. </div>
  474. </div>
  475. <div class="navListItem" v-if="vitem.type == 12">
  476. <div class="navText" @click="downloadFile2(vitem)">
  477. <span v-if="vitem.text">{{ vitem.text }}-</span
  478. >{{ vitem.name }}
  479. </div>
  480. <div class="downIcon" @click="downloadFile2(vitem)">
  481. <img
  482. src="../../assets/icon/newIcon/down.png"
  483. alt
  484. />
  485. </div>
  486. <div
  487. class="downIcon"
  488. @click="checkFileFull1(vitem.type, vitem)"
  489. >
  490. <img
  491. src="../../assets/icon/newIcon/allScreen.png"
  492. alt
  493. />
  494. </div>
  495. </div>
  496. <div class="navListItem" v-if="vitem.type == 13">
  497. <div
  498. class="navText"
  499. @click="checkPhoto(vitem, vindex)"
  500. :class="isClickNav == vindex ? 'isClickNav' : ''"
  501. >
  502. {{ vitem.name }}
  503. </div>
  504. <div class="downIcon" @click="downloadFile2(vitem)">
  505. <img
  506. src="../../assets/icon/newIcon/down.png"
  507. alt
  508. />
  509. </div>
  510. </div>
  511. </div>
  512. <div class="fileC_box" v-if="fileC[0].length > 0">
  513. <div class="fileC_title">以下文件不支持预览</div>
  514. <div
  515. class="vedioTimeBox"
  516. v-for="(vitem, vindex) in fileC[0]"
  517. :key="vindex + '1'"
  518. >
  519. <div class="navListItem" v-if="vitem.type == 12">
  520. <div class="navText" style="color: #acb4bf">
  521. <span v-if="vitem.text">{{ vitem.text }}-</span
  522. >{{ vitem.name }}
  523. </div>
  524. <div
  525. class="downIcon"
  526. @click="downloadFile2(vitem)"
  527. >
  528. <img
  529. src="../../assets/icon/newIcon/down.png"
  530. alt
  531. />
  532. </div>
  533. </div>
  534. </div>
  535. </div>
  536. </div>
  537. </div>
  538. </div>
  539. </div>
  540. </div>
  541. <div style="width: calc(100% - 315px)">
  542. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  543. <!-- <el-button
  544. type="primary"
  545. class="newButton"
  546. @click="checkFileFull(showType, pptImgUrl1)"
  547. >全屏查看</el-button
  548. >
  549. <el-button
  550. type="primary"
  551. class="newButton"
  552. @click="downloadFile(pptImgUrl1)"
  553. v-if="showType != 2"
  554. >文件下载</el-button
  555. > -->
  556. <el-button
  557. v-if="
  558. showType == 2 &&
  559. pptImgUrl1.indexOf(
  560. 'https://view.officeapps.live.com/op/view.aspx?src='
  561. ) == -1
  562. "
  563. type="primary"
  564. class="newButton"
  565. @click="openLine(pptImgUrl1)"
  566. >打开链接
  567. </el-button>
  568. </div>
  569. <!-- <div
  570. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  571. v-if="showType == 1"
  572. >
  573. <el-button
  574. type="primary"
  575. class="newButton"
  576. @click="checkFileFull(showType, text)"
  577. >全屏查看</el-button
  578. >
  579. </div> -->
  580. </div>
  581. </div>
  582. </div>
  583. <div
  584. class="student_body"
  585. v-resize="resize"
  586. :style="{
  587. borderRadius:
  588. vChapterData[0].length == 0 && fileC[0].length == 0
  589. ? '0 0 20px 20px'
  590. : '20px',
  591. }"
  592. v-if="
  593. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  594. .toolChoose[0].tool &&
  595. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  596. .toolChoose[0].tool.length > 0) ||
  597. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  598. .taskDetail != ''
  599. "
  600. >
  601. <div
  602. class="taskBox"
  603. v-if="
  604. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  605. .taskDetail != ''
  606. "
  607. :style="
  608. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  609. .toolChoose[0].tool &&
  610. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  611. .toolChoose[0].tool.length &&
  612. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  613. .toolChoose[0].tool.length > 0
  614. ? 'border-bottom: 1px solid #cad1dc'
  615. : ''
  616. "
  617. >
  618. <div
  619. style="
  620. display: flex;
  621. flex-wrap: nowrap;
  622. flex-direction: column;
  623. position: relative;
  624. "
  625. >
  626. <div
  627. style="
  628. padding: 15px 0;
  629. line-height: 29px;
  630. font-size: 18px;
  631. color: #0e1e33;
  632. "
  633. class="cont"
  634. v-if="
  635. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  636. .taskDetail != ''
  637. "
  638. v-html="
  639. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  640. .taskDetail
  641. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  642. taskCount
  643. ].taskDetail
  644. : '暂无描述'
  645. "
  646. ></div>
  647. </div>
  648. </div>
  649. <div
  650. class="vedioBox"
  651. v-if="
  652. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  653. .toolChoose[0].tool &&
  654. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  655. .toolChoose[0].tool.length &&
  656. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  657. .toolChoose[0].tool.length > 0
  658. "
  659. :style="{
  660. borderRadius:
  661. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  662. .taskDetail == '' &&
  663. vChapterData[0].length == 0 &&
  664. fileC[0].length == 0
  665. ? '0 0 20px 20px'
  666. : '20px',
  667. }"
  668. >
  669. <div
  670. class="queTop"
  671. style="
  672. font-size: 20px;
  673. padding: 15px 0 15px 37px;
  674. font-weight: bold;
  675. "
  676. >
  677. 工作区
  678. </div>
  679. <div class="toolHeng2" style="position: relative">
  680. <div
  681. class="filebox"
  682. style="flex-wrap: nowrap; margin: 0 37px"
  683. v-if="
  684. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  685. .toolChoose.length
  686. "
  687. >
  688. <div class="choiceBox">
  689. <div class="bzChild" style="margin-right: 20px">
  690. <span>步骤选择:</span>
  691. </div>
  692. <div class="bzTypeBox">
  693. <div
  694. class="bzChild"
  695. v-for="(bz, bzIndex) in chapInfoList[courseType]
  696. .chapterInfo[0].taskJson[taskCount].toolChoose"
  697. :key="bzIndex"
  698. :class="{ active: toolIndex == bzIndex }"
  699. @click="checkBz(bzIndex)"
  700. >
  701. <span>步骤{{ bzIndex + 1 }}</span>
  702. </div>
  703. </div>
  704. </div>
  705. <div class="bzBox">
  706. <!-- <div class="yCss"></div>
  707. <div>步骤{{ toolIndex + 1 }}</div> -->
  708. <div
  709. style="margin: 0 72px 20px auto"
  710. v-if="tool.tool[0] == 15"
  711. >
  712. <el-button
  713. type="primary"
  714. size="mini"
  715. v-if="tool.tool[0] == 15"
  716. @click="openWordCloud(toolIndex)"
  717. >生成词云</el-button
  718. >
  719. <!-- courseDetail.userid == userid || -->
  720. <!-- <el-button
  721. v-if="courseDetail.userid == userid"
  722. type="primary"
  723. size="mini"
  724. @click="updateToolDetail"
  725. >{{
  726. !isUpdateToolDetail ? "编辑" : "确认修改"
  727. }}</el-button
  728. > -->
  729. </div>
  730. </div>
  731. <div class="toolBox">
  732. <div class="toolBoxSteps" @click="nextToolindex('last')">
  733. <img src="../../assets/icon/leftIcon.png" />
  734. </div>
  735. <div class="toolBoxSteps" @click="nextToolindex('next')">
  736. <img src="../../assets/icon/rightIcon.png" />
  737. </div>
  738. <div>
  739. <div class="noiframeBox">
  740. <div
  741. class="addPoint"
  742. v-for="(tooC, toolCIndex) in tool.tool"
  743. :key="toolCIndex"
  744. >
  745. <div v-show="tooC == 1">
  746. <img
  747. src="../../assets/icon/secondToolList/whiteBoard.png"
  748. alt
  749. @click="addTools(tooC, toolIndex, taskCount)"
  750. />
  751. <div style="margin: 5px 0">电子白板</div>
  752. </div>
  753. <div v-show="tooC == 3">
  754. <img
  755. src="../../assets/icon/secondToolList/mindMapping.png"
  756. alt
  757. @click="addTools(tooC, toolIndex, taskCount)"
  758. />
  759. <div style="margin: 5px 0">思维导图</div>
  760. </div>
  761. <div v-show="tooC == 6">
  762. <img
  763. src="../../assets/icon/secondToolList/doc.png"
  764. alt
  765. @click="addTools(tooC, toolIndex, taskCount)"
  766. />
  767. <div style="margin: 5px 0">协同文档</div>
  768. </div>
  769. <div v-show="tooC == 7">
  770. <img
  771. src="../../assets/icon/secondToolList/mindNetwork.png"
  772. alt
  773. @click="addTools(tooC, toolIndex, taskCount)"
  774. />
  775. <div style="margin: 5px 0">思维网格</div>
  776. </div>
  777. <div v-show="tooC == 8">
  778. <img
  779. src="../../assets/icon/secondToolList/library.png"
  780. alt
  781. @click="addTools(tooC, toolIndex, taskCount)"
  782. />
  783. <div style="margin: 5px 0">素材库</div>
  784. </div>
  785. <div v-show="tooC == 17">
  786. <img
  787. src="../../assets/icon/secondToolList/library.png"
  788. alt
  789. @click="addTools(tooC, toolIndex, taskCount)"
  790. />
  791. <div style="margin: 5px 0">学习资料</div>
  792. </div>
  793. <div v-show="tooC == 2">
  794. <img
  795. @click="addTools(tooC, toolIndex, taskCount)"
  796. src="../../assets/icon/secondToolList/note.png"
  797. alt
  798. />
  799. <div style="margin: 5px 0">便签</div>
  800. </div>
  801. <div v-show="tooC == 4">
  802. <img
  803. @click="addTools(tooC, toolIndex, taskCount)"
  804. src="../../assets/icon/thirdToolList/ask.png"
  805. alt
  806. />
  807. <div style="margin: 5px 0">问卷调查</div>
  808. </div>
  809. <div v-show="tooC == 45">
  810. <img
  811. @click="addTools(tooC, toolIndex, taskCount)"
  812. src="../../assets/icon/thirdToolList/choose.png"
  813. alt
  814. />
  815. <div style="margin: 5px 0">选择题</div>
  816. </div>
  817. <!-- <div v-show="tooC == 5">
  818. <img
  819. @click="addTools(tooC, toolIndex, taskCount)"
  820. src="../../assets/icon/thirdToolList/score.png"
  821. alt
  822. />
  823. <div style="margin: 5px 0">量规评分</div>
  824. </div> -->
  825. <div v-show="tooC == 10">
  826. <img
  827. @click="addTools(tooC, toolIndex, taskCount)"
  828. src="../../assets/icon/thirdToolList/time.png"
  829. alt
  830. />
  831. <div style="margin: 5px 0">倒计时</div>
  832. </div>
  833. <div v-show="tooC == 15">
  834. <img
  835. @click="addTools(tooC, toolIndex, taskCount)"
  836. src="../../assets/icon/thirdToolList/answer.png"
  837. alt
  838. />
  839. <div style="margin: 5px 0">问答</div>
  840. </div>
  841. <div v-show="tooC == 26">
  842. <img
  843. @click="addTools(tooC, toolIndex, taskCount)"
  844. src="../../assets/icon/thirdToolList/courseDesign.png"
  845. alt
  846. />
  847. <div style="margin: 5px 0">课程设计</div>
  848. </div>
  849. <div v-show="tooC == 18">
  850. <img
  851. @click="addTools(tooC, toolIndex, taskCount)"
  852. src="../../assets/icon/thirdToolList/trainPlatform.png"
  853. alt
  854. />
  855. <div style="margin: 5px 0">训练服务器</div>
  856. </div>
  857. <div v-show="tooC == 16">
  858. <img
  859. @click="addTools(tooC, toolIndex, taskCount)"
  860. src="../../assets/icon/thirdToolList/work.png"
  861. alt
  862. />
  863. <div style="margin: 5px 0">作业提交</div>
  864. </div>
  865. <div v-show="tooC == 50">
  866. <img
  867. @click="addTools(tooC, toolIndex, taskCount)"
  868. src="../../assets/icon/thirdToolList/plwork.png"
  869. alt
  870. />
  871. <div style="margin: 5px 0">批量上传</div>
  872. </div>
  873. <div v-show="tooC == 21">
  874. <img
  875. @click="addTools(tooC, toolIndex, taskCount)"
  876. src="../../assets/icon/fourthToolList/program.png"
  877. alt
  878. />
  879. <div style="margin: 5px 0">AIoT Blockly</div>
  880. </div>
  881. <!-- <div v-show="tooC == 22">
  882. <img
  883. @click="addTools(tooC, toolIndex, taskCount)"
  884. src="../../assets/icon/fourthToolList/program.png"
  885. alt
  886. />
  887. <div style="margin: 5px 0">AI体验</div>
  888. </div> -->
  889. <div v-show="tooC == 23">
  890. <img
  891. @click="addTools(tooC, toolIndex, taskCount)"
  892. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  893. alt
  894. />
  895. <div style="margin: 5px 0">AI Python</div>
  896. </div>
  897. <div v-show="tooC == 24">
  898. <img
  899. @click="addTools(tooC, toolIndex, taskCount)"
  900. src="../../assets/icon/fourthToolList/AIprogram.png"
  901. alt
  902. />
  903. <div style="margin: 5px 0">AI Blockly</div>
  904. </div>
  905. <div v-show="tooC == 25">
  906. <img
  907. @click="addTools(tooC, toolIndex, taskCount)"
  908. src="../../assets/icon/thirdToolList/evalua.png"
  909. alt
  910. />
  911. <div style="margin: 5px 0">目标管理</div>
  912. </div>
  913. <div v-show="tooC == 31">
  914. <img
  915. @click="addTools(tooC, toolIndex, taskCount)"
  916. src="../../assets/icon/secondToolList/networkPanel.png"
  917. alt
  918. />
  919. <div style="margin: 5px 0">数学画板</div>
  920. </div>
  921. <div v-show="tooC == 28">
  922. <img
  923. @click="addTools(tooC, toolIndex, taskCount)"
  924. src="../../assets/icon/secondToolList/translation.png"
  925. alt
  926. />
  927. <div style="margin: 5px 0">翻译</div>
  928. </div>
  929. <div v-show="tooC == 37">
  930. <img
  931. @click="addTools(tooC, toolIndex, taskCount)"
  932. src="../../assets/icon/secondToolList/mohe.png"
  933. alt
  934. />
  935. <div style="margin: 5px 0">魔盒识字</div>
  936. </div>
  937. <div v-show="tooC == 38">
  938. <img
  939. @click="addTools(tooC, toolIndex, taskCount)"
  940. src="../../assets/icon/secondToolList/24game.png"
  941. alt
  942. />
  943. <div style="margin: 5px 0">24点</div>
  944. </div>
  945. <div v-show="tooC == 39">
  946. <img
  947. @click="addTools(tooC, toolIndex, taskCount)"
  948. src="../../assets/icon/secondToolList/GeoGebra.png"
  949. alt
  950. />
  951. <div style="margin: 5px 0">GeoGebra</div>
  952. </div>
  953. <div v-show="tooC == 32">
  954. <img
  955. @click="addTools(tooC, toolIndex, taskCount)"
  956. src="../../assets/icon/thirdToolList/code.png"
  957. alt
  958. />
  959. <div style="margin: 5px 0">源码编辑</div>
  960. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  961. style="position: absolute;left: 110px;bottom: 30px;">
  962. 上传文件
  963. <input type="file" accept="*" style="display: none"
  964. @change="beforeUpload1($event, 7, toolIndex)" />
  965. </div> -->
  966. </div>
  967. <!-- <div v-show="tooC == 40">
  968. <img @click="addTools(tooC, toolIndex, taskCount)"
  969. src="../../assets/icon/secondToolList/eval.png" alt />
  970. <div style="margin: 5px 0">个人评价</div>
  971. </div> -->
  972. <div v-show="tooC == 41">
  973. <img
  974. @click="addTools(tooC, toolIndex, taskCount)"
  975. src="../../assets/icon/thirdToolList/select.png"
  976. alt
  977. />
  978. <div style="margin: 5px 0">选择填空</div>
  979. </div>
  980. <div v-show="tooC == 44">
  981. <img
  982. @click="addTools(tooC, toolIndex, taskCount)"
  983. src="../../assets/icon/thirdToolList/hanClass.png"
  984. alt
  985. />
  986. <div style="margin: 5px 0">汉字宫</div>
  987. </div>
  988. <div v-show="tooC == 47">
  989. <img
  990. @click="addTools(tooC, toolIndex, taskCount)"
  991. src="../../assets/icon/fourthToolList/conSentences.png"
  992. alt
  993. />
  994. <div style="margin: 5px 0">连词成句</div>
  995. </div>
  996. <div v-show="tooC == 48">
  997. <img
  998. @click="addTools(tooC, toolIndex, taskCount)"
  999. src="../../assets/icon/fourthToolList/table.png"
  1000. alt
  1001. />
  1002. <div style="margin: 5px 0">表格</div>
  1003. </div>
  1004. <div v-show="tooC == 52">
  1005. <img
  1006. @click="addTools(tooC, toolIndex, taskCount)"
  1007. src="../../assets/icon/fourthToolList/text.png"
  1008. alt
  1009. />
  1010. <div style="margin: 5px 0">文档</div>
  1011. </div>
  1012. <!-- <div v-show="tooC == 49">
  1013. <img @click="addTools(tooC, toolIndex, taskCount)"
  1014. src="../../assets/icon/fourthToolList/group.png" alt />
  1015. <div style="margin: 5px 0">学生分组</div>
  1016. </div> -->
  1017. <div v-show="tooC == 57">
  1018. <img
  1019. @click="addTools(tooC, toolIndex, taskCount)"
  1020. src="../../assets/icon/fourthToolList/cocopi.png"
  1021. alt
  1022. />
  1023. <div style="margin: 5px 0">CocoPi</div>
  1024. </div>
  1025. <div v-show="tooC == 58">
  1026. <img
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. src="../../assets/icon/fourthToolList/car.png"
  1029. alt
  1030. />
  1031. <div style="margin: 5px 0">模拟驾驶</div>
  1032. </div>
  1033. <div v-show="tooC == 59">
  1034. <img
  1035. @click="addTools(tooC, toolIndex, taskCount)"
  1036. src="../../assets/icon/fourthToolList/lineSearch.png"
  1037. alt
  1038. />
  1039. <div style="margin: 5px 0">路径搜索</div>
  1040. </div>
  1041. <div v-show="tooC == 60">
  1042. <img
  1043. @click="addTools(tooC, toolIndex, taskCount)"
  1044. src="../../assets/icon/fourthToolList/deepLearning.png"
  1045. alt
  1046. />
  1047. <div style="margin: 5px 0">深度学习</div>
  1048. </div>
  1049. <div v-show="tooC == 61">
  1050. <img
  1051. @click="addTools(tooC, toolIndex, taskCount)"
  1052. src="../../assets/icon/fourthToolList/allHistory.png"
  1053. alt
  1054. />
  1055. <div style="margin: 5px 0">全历史</div>
  1056. </div>
  1057. <div v-show="tooC == 62">
  1058. <img
  1059. @click="addTools(tooC, toolIndex, taskCount)"
  1060. src="../../assets/icon/fourthToolList/interVideo.png"
  1061. alt
  1062. />
  1063. <div style="margin: 5px 0">交互视频</div>
  1064. </div>
  1065. <div v-show="tooC == 63">
  1066. <img
  1067. @click="addTools(tooC, toolIndex, taskCount)"
  1068. src="../../assets/icon/fourthToolList/Wood.png"
  1069. alt
  1070. />
  1071. <div style="margin: 5px 0">海龟编程</div>
  1072. </div>
  1073. <div v-if="tooC == 65">
  1074. <img
  1075. @click="addTools(tooC, toolIndex, taskCount)"
  1076. src="../../assets/icon/firstToolList/pickPeople.png"
  1077. alt
  1078. />
  1079. <div style="margin: 5px 0">挑人</div>
  1080. </div>
  1081. <div v-if="tooC == 66">
  1082. <img
  1083. @click="addTools(tooC, toolIndex, taskCount)"
  1084. src="../../assets/icon/secondToolList/formulaEdi.png"
  1085. alt
  1086. />
  1087. <div style="margin: 5px 0">公式编辑</div>
  1088. </div>
  1089. <div v-if="tooC == 67">
  1090. <img
  1091. @click="addTools(tooC, toolIndex, taskCount)"
  1092. src="../../assets/icon/secondToolList/molStr.png"
  1093. alt
  1094. />
  1095. <div style="margin: 5px 0">分子结构</div>
  1096. </div>
  1097. <div v-if="tooC == 68">
  1098. <img
  1099. @click="addTools(tooC, toolIndex, taskCount)"
  1100. src="../../assets/icon/secondToolList/timeAxis.png"
  1101. alt
  1102. />
  1103. <div style="margin: 5px 0">时间轴</div>
  1104. </div>
  1105. </div>
  1106. </div>
  1107. </div>
  1108. <div class="tooldetail">
  1109. <!-- <div class="toolTitle">工具描述</div> -->
  1110. <div
  1111. style="height: 100%"
  1112. v-html="
  1113. contentConvent(
  1114. tool.toolDetail ? tool.toolDetail : '暂无描述'
  1115. )
  1116. "
  1117. v-if="!isUpdateToolDetail"
  1118. @click.stop="updateToolDetail"
  1119. ></div>
  1120. <div v-else @click.stop="">
  1121. <el-input
  1122. type="textarea"
  1123. :rows="3"
  1124. resize="none"
  1125. v-model="updateToolDetailInner"
  1126. placeholder="请输入任务描述"
  1127. ></el-input>
  1128. </div>
  1129. </div>
  1130. <el-button
  1131. type="primary"
  1132. v-if="tool.tool[0] == 32"
  1133. style="
  1134. position: absolute;
  1135. right: 30px;
  1136. transform: translateY(-130%);
  1137. "
  1138. @click="addImg($event)"
  1139. >上传作业<input
  1140. type="file"
  1141. accept="*"
  1142. style="display: none"
  1143. @change="beforeUpload1($event, 7, toolIndex)"
  1144. /></el-button>
  1145. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1146. position: absolute;
  1147. right: 30px;
  1148. transform: translateY(-130%);
  1149. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1150. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1151. </div>
  1152. </div>
  1153. </div>
  1154. </div>
  1155. <div
  1156. class="vedioBox"
  1157. v-if="
  1158. arrayToArray(tool.tool, isWorkTool).length &&
  1159. worksTeacher.length &&
  1160. worksTeacher[toolIndex].length &&
  1161. false
  1162. "
  1163. >
  1164. <div
  1165. class="queTop"
  1166. style="
  1167. font-size: 20px;
  1168. padding: 15px 0 15px 37px;
  1169. font-weight: bold;
  1170. "
  1171. >
  1172. 教师工作区
  1173. </div>
  1174. <div class="tool_work_box">
  1175. <div
  1176. v-if="
  1177. tType &&
  1178. ((tType == 2 && sIsOpen == true) ||
  1179. tType == 1 ||
  1180. tType == 4) &&
  1181. tool.tool.indexOf(16) != -1
  1182. "
  1183. class="worksBox"
  1184. >
  1185. <div
  1186. class="zuoyeYulan"
  1187. v-if="
  1188. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1189. "
  1190. >
  1191. <div class="worksTop">
  1192. <div>作业预览</div>
  1193. </div>
  1194. </div>
  1195. <div
  1196. class="worksDetailBox"
  1197. v-if="
  1198. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1199. "
  1200. >
  1201. <div
  1202. class="works"
  1203. style="
  1204. width: 200px;
  1205. height: 140px;
  1206. margin: 10px 10px 10px 0;
  1207. border-radius: 15px;
  1208. box-shadow: 0 0 6px 1px #dfdada;
  1209. "
  1210. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1211. :key="wIndex"
  1212. :class="w.type == 1 ? 'isTypeOne' : ''"
  1213. >
  1214. <div class="workImg" v-if="w.type == 0">
  1215. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1216. <img :src="w.works" @click="previewImg(w.works)" alt />
  1217. <div
  1218. class="answerScore"
  1219. v-if="w.score"
  1220. @click.stop="openScore(w)"
  1221. :class="{
  1222. rightW:
  1223. w.userid == userid ||
  1224. tType == 1 ||
  1225. tType == 4 ||
  1226. w.ateacher == userid,
  1227. }"
  1228. >
  1229. {{ JSON.parse(w.score).wScore }}分
  1230. </div>
  1231. <div
  1232. class="answerScore"
  1233. @click.stop="openScore(w)"
  1234. v-else-if="courseDetail.userid == userid"
  1235. :class="{
  1236. rightW:
  1237. w.userid == userid ||
  1238. tType == 1 ||
  1239. tType == 4 ||
  1240. w.ateacher == userid,
  1241. }"
  1242. >
  1243. 评分
  1244. </div>
  1245. <img
  1246. class="deleteImg"
  1247. src="../../assets/deleteworks.png"
  1248. v-if="w.userid == userid || tType == 1 || tType == 4"
  1249. @click.stop="deleteWorks(w.wid)"
  1250. alt
  1251. />
  1252. </div>
  1253. <div class="workImg" v-if="w.type == 1">
  1254. <img :src="word" @click="openFile(w.works)" alt />
  1255. <!-- @click="openFile(w.works)" -->
  1256. <div
  1257. class="answerScore"
  1258. v-if="w.score"
  1259. @click.stop="openScore(w)"
  1260. :class="{
  1261. rightW:
  1262. w.userid == userid ||
  1263. tType == 1 ||
  1264. tType == 4 ||
  1265. w.ateacher == userid,
  1266. }"
  1267. >
  1268. {{ JSON.parse(w.score).wScore }}分
  1269. </div>
  1270. <div
  1271. class="answerScore"
  1272. @click.stop="openScore(w)"
  1273. v-else-if="courseDetail.userid == userid"
  1274. :class="{
  1275. rightW:
  1276. w.userid == userid ||
  1277. tType == 1 ||
  1278. tType == 4 ||
  1279. w.ateacher == userid,
  1280. }"
  1281. >
  1282. 评分
  1283. </div>
  1284. <img
  1285. class="deleteImg"
  1286. src="../../assets/deleteworks.png"
  1287. v-if="w.userid == userid || tType == 1 || tType == 4"
  1288. @click.stop="deleteWorks(w.wid)"
  1289. alt
  1290. />
  1291. </div>
  1292. <div class="workImg" v-if="w.type == 3">
  1293. <img
  1294. style="cursor: pointer"
  1295. :src="video"
  1296. @click="openVideo(w)"
  1297. alt
  1298. />
  1299. <!-- @click="openVideo(w.works)" -->
  1300. <div
  1301. class="answerScore"
  1302. v-if="w.score"
  1303. @click.stop="openScore(w)"
  1304. :class="{
  1305. rightW:
  1306. w.userid == userid ||
  1307. tType == 1 ||
  1308. tType == 4 ||
  1309. w.ateacher == userid,
  1310. }"
  1311. >
  1312. {{ JSON.parse(w.score).wScore }}分
  1313. </div>
  1314. <div
  1315. class="answerScore"
  1316. @click.stop="openScore(w)"
  1317. v-else-if="courseDetail.userid == userid"
  1318. :class="{
  1319. rightW:
  1320. w.userid == userid ||
  1321. tType == 1 ||
  1322. tType == 4 ||
  1323. w.ateacher == userid,
  1324. }"
  1325. >
  1326. 评分
  1327. </div>
  1328. <img
  1329. class="deleteImg"
  1330. src="../../assets/deleteworks.png"
  1331. v-if="w.userid == userid || tType == 1 || tType == 4"
  1332. @click.stop="deleteWorks(w.wid)"
  1333. alt
  1334. />
  1335. </div>
  1336. <div class="workImg" v-if="w.type == 12">
  1337. <img
  1338. style="cursor: pointer"
  1339. :src="word2"
  1340. @click="downloadFile(w.works)"
  1341. alt
  1342. />
  1343. <!-- @click="openVideo(w.works)" -->
  1344. <div
  1345. class="answerScore"
  1346. v-if="w.score"
  1347. @click.stop="openScore(w)"
  1348. :class="{
  1349. rightW:
  1350. w.userid == userid ||
  1351. tType == 1 ||
  1352. tType == 4 ||
  1353. w.ateacher == userid,
  1354. }"
  1355. >
  1356. {{ JSON.parse(w.score).wScore }}分
  1357. </div>
  1358. <div
  1359. class="answerScore"
  1360. @click.stop="openScore(w)"
  1361. v-else-if="courseDetail.userid == userid"
  1362. :class="{
  1363. rightW:
  1364. w.userid == userid ||
  1365. tType == 1 ||
  1366. tType == 4 ||
  1367. w.ateacher == userid,
  1368. }"
  1369. >
  1370. 评分
  1371. </div>
  1372. <img
  1373. class="deleteImg"
  1374. src="../../assets/deleteworks.png"
  1375. v-if="w.userid == userid || tType == 1 || tType == 4"
  1376. @click.stop="deleteWorks(w.wid)"
  1377. alt
  1378. />
  1379. </div>
  1380. <div class="comment" style="min-width: 200px">
  1381. <div class="worksName">
  1382. <div>{{ w.sName }}</div>
  1383. </div>
  1384. <div class="commentList">
  1385. <div class="commentList">
  1386. <div
  1387. class="commentImg"
  1388. @click="
  1389. isLikes(w.wid, userid, 1, null, w.isLikes)
  1390. "
  1391. >
  1392. <img
  1393. :src="w.isLikes == true ? likes : noLikes"
  1394. alt=""
  1395. />
  1396. </div>
  1397. <div>{{ w.likesCount }}</div>
  1398. </div>
  1399. <div class="commentList" style="margin-right: 15px">
  1400. <div
  1401. class="commentImg"
  1402. @click="commentOther(w, toolIndex, wIndex)"
  1403. >
  1404. <img
  1405. src="../../assets/icon/comment/comment.png"
  1406. alt=""
  1407. />
  1408. </div>
  1409. <div>{{ w.commentCount }}</div>
  1410. </div>
  1411. </div>
  1412. </div>
  1413. </div>
  1414. </div>
  1415. </div>
  1416. <div
  1417. v-if="
  1418. tType &&
  1419. ((tType == 2 && sIsOpen == true) ||
  1420. tType == 1 ||
  1421. tType == 4) &&
  1422. tool.tool.indexOf(32) != -1
  1423. "
  1424. class="worksBox"
  1425. >
  1426. <div
  1427. class="zuoyeYulan"
  1428. v-if="
  1429. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1430. "
  1431. >
  1432. <div class="worksTop">
  1433. <div>作业预览</div>
  1434. </div>
  1435. </div>
  1436. <div
  1437. class="worksDetailBox"
  1438. v-if="
  1439. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1440. "
  1441. >
  1442. <div
  1443. class="works"
  1444. style="
  1445. width: 200px;
  1446. height: 140px;
  1447. margin: 10px 10px 10px 0;
  1448. border-radius: 15px;
  1449. box-shadow: 0 0 6px 1px #dfdada;
  1450. "
  1451. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1452. :key="wIndex"
  1453. :class="w.type == 1 ? 'isTypeOne' : ''"
  1454. >
  1455. <div class="workImg">
  1456. <img :src="word2" @click="downloadFile(w.works)" alt />
  1457. <div
  1458. class="answerScore"
  1459. v-if="w.score"
  1460. @click.stop="openScore(w)"
  1461. :class="{
  1462. rightW:
  1463. w.userid == userid ||
  1464. tType == 1 ||
  1465. tType == 4 ||
  1466. w.ateacher == userid,
  1467. }"
  1468. >
  1469. {{ JSON.parse(w.score).wScore }}分
  1470. </div>
  1471. <div
  1472. class="answerScore"
  1473. @click.stop="openScore(w)"
  1474. v-else-if="courseDetail.userid == userid"
  1475. :class="{
  1476. rightW:
  1477. w.userid == userid ||
  1478. tType == 1 ||
  1479. tType == 4 ||
  1480. w.ateacher == userid,
  1481. }"
  1482. >
  1483. 评分
  1484. </div>
  1485. <img
  1486. class="deleteImg"
  1487. src="../../assets/deleteworks.png"
  1488. v-if="w.userid == userid || tType == 1 || tType == 4"
  1489. @click.stop="deleteWorks(w.wid)"
  1490. alt
  1491. />
  1492. </div>
  1493. <div class="comment" style="min-width: 200px">
  1494. <div class="worksName">
  1495. <div>{{ w.sName }}</div>
  1496. </div>
  1497. <div class="commentList">
  1498. <div class="commentList">
  1499. <div
  1500. class="commentImg"
  1501. @click="
  1502. isLikes(w.wid, userid, 1, null, w.isLikes)
  1503. "
  1504. >
  1505. <img
  1506. :src="w.isLikes == true ? likes : noLikes"
  1507. alt=""
  1508. />
  1509. </div>
  1510. <div>{{ w.likesCount }}</div>
  1511. </div>
  1512. <div class="commentList" style="margin-right: 15px">
  1513. <div
  1514. class="commentImg"
  1515. @click="commentOther(w, toolIndex, wIndex)"
  1516. >
  1517. <img
  1518. src="../../assets/icon/comment/comment.png"
  1519. alt=""
  1520. />
  1521. </div>
  1522. <div>{{ w.commentCount }}</div>
  1523. </div>
  1524. </div>
  1525. </div>
  1526. </div>
  1527. </div>
  1528. </div>
  1529. <div
  1530. v-if="
  1531. tType &&
  1532. ((tType == 2 && sIsOpen == true) ||
  1533. tType == 1 ||
  1534. tType == 4) &&
  1535. tool.tool.indexOf(57) != -1
  1536. "
  1537. class="worksBox"
  1538. >
  1539. <div
  1540. class="zuoyeYulan"
  1541. v-if="
  1542. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1543. "
  1544. >
  1545. <div class="worksTop">
  1546. <div>作业预览</div>
  1547. </div>
  1548. </div>
  1549. <div
  1550. class="worksDetailBox"
  1551. v-if="
  1552. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1553. "
  1554. >
  1555. <div
  1556. class="works"
  1557. style="
  1558. width: 200px;
  1559. height: 140px;
  1560. margin: 10px 10px 10px 0;
  1561. border-radius: 15px;
  1562. box-shadow: 0 0 6px 1px #dfdada;
  1563. "
  1564. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1565. :key="wIndex"
  1566. :class="w.type == 1 ? 'isTypeOne' : ''"
  1567. >
  1568. <div class="workImg">
  1569. <img
  1570. :src="word2"
  1571. @click="downloadFile(w.works)"
  1572. v-if="w.type == 12"
  1573. alt
  1574. />
  1575. <img
  1576. :src="word2"
  1577. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  1578. v-else-if="w.type == 15"
  1579. alt
  1580. />
  1581. <div
  1582. class="answerScore"
  1583. v-if="w.score"
  1584. @click.stop="openScore(w)"
  1585. :class="{
  1586. rightW:
  1587. w.userid == userid ||
  1588. tType == 1 ||
  1589. tType == 4 ||
  1590. w.ateacher == userid,
  1591. }"
  1592. >
  1593. {{ JSON.parse(w.score).wScore }}分
  1594. </div>
  1595. <div
  1596. class="answerScore"
  1597. @click.stop="openScore(w)"
  1598. v-else-if="courseDetail.userid == userid"
  1599. :class="{
  1600. rightW:
  1601. w.userid == userid ||
  1602. tType == 1 ||
  1603. tType == 4 ||
  1604. w.ateacher == userid,
  1605. }"
  1606. >
  1607. 评分
  1608. </div>
  1609. <img
  1610. class="deleteImg"
  1611. src="../../assets/deleteworks.png"
  1612. v-if="w.userid == userid || tType == 1 || tType == 4"
  1613. @click.stop="deleteWorks(w.wid)"
  1614. alt
  1615. />
  1616. </div>
  1617. <div class="comment" style="min-width: 200px">
  1618. <div class="worksName">
  1619. <div>{{ w.sName }}</div>
  1620. </div>
  1621. <div class="commentList">
  1622. <div class="commentList">
  1623. <div
  1624. class="commentImg"
  1625. @click="
  1626. isLikes(w.wid, userid, 1, null, w.isLikes)
  1627. "
  1628. >
  1629. <img
  1630. :src="w.isLikes == true ? likes : noLikes"
  1631. alt=""
  1632. />
  1633. </div>
  1634. <div>{{ w.likesCount }}</div>
  1635. </div>
  1636. <div class="commentList" style="margin-right: 15px">
  1637. <div
  1638. class="commentImg"
  1639. @click="commentOther(w, toolIndex, wIndex)"
  1640. >
  1641. <img
  1642. src="../../assets/icon/comment/comment.png"
  1643. alt=""
  1644. />
  1645. </div>
  1646. <div>{{ w.commentCount }}</div>
  1647. </div>
  1648. </div>
  1649. </div>
  1650. </div>
  1651. </div>
  1652. </div>
  1653. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  1654. <div
  1655. class="zuoyeYulan"
  1656. v-if="
  1657. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1658. "
  1659. >
  1660. <span>作业预览</span>
  1661. </div>
  1662. <div
  1663. class="worksDetailBox"
  1664. v-if="
  1665. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1666. "
  1667. >
  1668. <div
  1669. class="works"
  1670. style="
  1671. width: 200px;
  1672. height: 140px;
  1673. margin: 10px 10px 10px 0;
  1674. border-radius: 15px;
  1675. box-shadow: 0 0 6px 1px #dfdada;
  1676. "
  1677. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1678. :key="wIndex"
  1679. :class="w.type == 1 ? 'isTypeOne' : ''"
  1680. >
  1681. <div class="workImg" v-if="w.type == 0">
  1682. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1683. <img :src="w.works" @click="previewImg(w.works)" alt />
  1684. <div
  1685. class="answerScore"
  1686. v-if="w.score"
  1687. @click.stop="openScore(w)"
  1688. :class="{
  1689. rightW:
  1690. w.userid == userid ||
  1691. tType == 1 ||
  1692. tType == 4 ||
  1693. w.ateacher == userid,
  1694. }"
  1695. >
  1696. {{ JSON.parse(w.score).wScore }}分
  1697. </div>
  1698. <div
  1699. class="answerScore"
  1700. @click.stop="openScore(w)"
  1701. v-else-if="courseDetail.userid == userid"
  1702. :class="{
  1703. rightW:
  1704. w.userid == userid ||
  1705. tType == 1 ||
  1706. tType == 4 ||
  1707. w.ateacher == userid,
  1708. }"
  1709. >
  1710. 评分
  1711. </div>
  1712. <img
  1713. class="deleteImg"
  1714. src="../../assets/deleteworks.png"
  1715. v-if="w.userid == userid || tType == 1 || tType == 4"
  1716. @click.stop="deleteWorks(w.wid)"
  1717. alt
  1718. />
  1719. </div>
  1720. <div
  1721. class="workImg"
  1722. style="cursor: pointer"
  1723. v-if="w.type == 1"
  1724. >
  1725. <img :src="word" @click="openFile(w.works)" alt />
  1726. <!-- @click="openFile(w.works)" -->
  1727. <div
  1728. class="answerScore"
  1729. v-if="w.score"
  1730. @click.stop="openScore(w)"
  1731. :class="{
  1732. rightW:
  1733. w.userid == userid ||
  1734. tType == 1 ||
  1735. tType == 4 ||
  1736. w.ateacher == userid,
  1737. }"
  1738. >
  1739. {{ JSON.parse(w.score).wScore }}分
  1740. </div>
  1741. <div
  1742. class="answerScore"
  1743. @click.stop="openScore(w)"
  1744. v-else-if="courseDetail.userid == userid"
  1745. :class="{
  1746. rightW:
  1747. w.userid == userid ||
  1748. tType == 1 ||
  1749. tType == 4 ||
  1750. w.ateacher == userid,
  1751. }"
  1752. >
  1753. 评分
  1754. </div>
  1755. <img
  1756. class="deleteImg"
  1757. src="../../assets/deleteworks.png"
  1758. v-if="w.userid == userid || tType == 1 || tType == 4"
  1759. @click.stop="deleteWorks(w.wid)"
  1760. alt
  1761. />
  1762. </div>
  1763. <div class="workImg" v-if="w.type == 3">
  1764. <img
  1765. style="cursor: pointer"
  1766. :src="video"
  1767. @click="openVideo(w)"
  1768. alt
  1769. />
  1770. <!-- @click="openVideo(w.works)" -->
  1771. <div
  1772. class="answerScore"
  1773. v-if="w.score"
  1774. @click.stop="openScore(w)"
  1775. :class="{
  1776. rightW:
  1777. w.userid == userid ||
  1778. tType == 1 ||
  1779. tType == 4 ||
  1780. w.ateacher == userid,
  1781. }"
  1782. >
  1783. {{ JSON.parse(w.score).wScore }}分
  1784. </div>
  1785. <div
  1786. class="answerScore"
  1787. @click.stop="openScore(w)"
  1788. v-else-if="courseDetail.userid == userid"
  1789. :class="{
  1790. rightW:
  1791. w.userid == userid ||
  1792. tType == 1 ||
  1793. tType == 4 ||
  1794. w.ateacher == userid,
  1795. }"
  1796. >
  1797. 评分
  1798. </div>
  1799. <img
  1800. class="deleteImg"
  1801. src="../../assets/deleteworks.png"
  1802. v-if="w.userid == userid || tType == 1 || tType == 4"
  1803. @click.stop="deleteWorks(w.wid)"
  1804. alt
  1805. />
  1806. </div>
  1807. <div class="comment" style="min-width: 200px">
  1808. <div class="worksName">
  1809. <div
  1810. style="cursor: pointer"
  1811. @click="
  1812. openSname(w.sName, w.wid, toolIndex, w.userid)
  1813. "
  1814. >
  1815. {{ w.sName }}
  1816. </div>
  1817. </div>
  1818. <div class="commentList">
  1819. <div class="commentList">
  1820. <div
  1821. class="commentImg"
  1822. @click="
  1823. isLikes(w.wid, userid, 1, null, w.isLikes)
  1824. "
  1825. >
  1826. <img
  1827. :src="w.isLikes == true ? likes : noLikes"
  1828. alt=""
  1829. />
  1830. </div>
  1831. <div>{{ w.likesCount }}</div>
  1832. </div>
  1833. <div class="commentList" style="margin-right: 15px">
  1834. <div
  1835. class="commentImg"
  1836. @click="commentOther(w, toolIndex, wIndex)"
  1837. >
  1838. <img
  1839. src="../../assets/icon/comment/comment.png"
  1840. alt=""
  1841. />
  1842. </div>
  1843. <div>{{ w.commentCount }}</div>
  1844. </div>
  1845. </div>
  1846. </div>
  1847. </div>
  1848. </div>
  1849. </div>
  1850. <div
  1851. v-if="
  1852. tType &&
  1853. ((tType == 2 && sIsOpen == true) ||
  1854. tType == 1 ||
  1855. tType == 4) &&
  1856. tool.tool.indexOf(4) != -1
  1857. "
  1858. class="worksBox"
  1859. >
  1860. <div
  1861. class="zuoyeYulan"
  1862. v-if="
  1863. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1864. "
  1865. >
  1866. <div class="worksTop">
  1867. <div>作业预览</div>
  1868. </div>
  1869. </div>
  1870. <div>
  1871. <div
  1872. class="worksDetailBox"
  1873. v-if="
  1874. worksTeacher.length &&
  1875. worksTeacher[toolIndex].length > 0
  1876. "
  1877. >
  1878. <div
  1879. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1880. :key="wIndex"
  1881. class="isWorksName2"
  1882. @click="
  1883. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1884. "
  1885. >
  1886. {{ w.sName }}
  1887. <img
  1888. class="deleteImg deleteImg2"
  1889. src="../../assets/deleteworks.png"
  1890. v-if="w.userid == userid || tType == 1 || tType == 4"
  1891. @click.stop="deleteWorks(w.wid)"
  1892. alt
  1893. />
  1894. </div>
  1895. </div>
  1896. </div>
  1897. </div>
  1898. <div
  1899. v-if="
  1900. tType &&
  1901. ((tType == 2 && sIsOpen == true) ||
  1902. tType == 1 ||
  1903. tType == 4) &&
  1904. tool.tool.indexOf(45) != -1
  1905. "
  1906. class="worksBox"
  1907. >
  1908. <div
  1909. class="zuoyeYulan"
  1910. v-if="
  1911. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1912. "
  1913. >
  1914. <div class="worksTop">
  1915. <div>作业预览</div>
  1916. </div>
  1917. </div>
  1918. <div>
  1919. <div
  1920. class="worksDetailBox"
  1921. v-if="
  1922. worksTeacher.length &&
  1923. worksTeacher[toolIndex].length > 0
  1924. "
  1925. >
  1926. <div
  1927. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1928. :key="wIndex"
  1929. class="isWorksName2"
  1930. @click="
  1931. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1932. "
  1933. >
  1934. {{ w.sName }}
  1935. <img
  1936. class="deleteImg deleteImg2"
  1937. src="../../assets/deleteworks.png"
  1938. v-if="w.userid == userid || tType == 1 || tType == 4"
  1939. @click.stop="deleteWorks(w.wid)"
  1940. alt
  1941. />
  1942. </div>
  1943. </div>
  1944. </div>
  1945. </div>
  1946. <div
  1947. v-if="
  1948. tType &&
  1949. ((tType == 2 && sIsOpen == true) ||
  1950. tType == 1 ||
  1951. tType == 4) &&
  1952. tool.tool.indexOf(15) != -1
  1953. "
  1954. class="worksBox"
  1955. >
  1956. <div
  1957. class="zuoyeYulan"
  1958. v-if="
  1959. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1960. "
  1961. >
  1962. <div class="worksTop">
  1963. <div>作业预览</div>
  1964. </div>
  1965. </div>
  1966. <div
  1967. class="worksDetailBox"
  1968. v-if="
  1969. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1970. "
  1971. >
  1972. <div
  1973. class="works"
  1974. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1975. :key="wIndex"
  1976. >
  1977. <div
  1978. class="workImg"
  1979. style="
  1980. border-radius: 15px;
  1981. box-shadow: #eee 0px 0px 5px 5px;
  1982. "
  1983. >
  1984. <!-- <img
  1985. src="../../assets/icon/works/noImg.png"
  1986. @click="openTools(15, toolIndex, taskCount, w.works)"
  1987. alt=""
  1988. />-->
  1989. <div
  1990. class="answerBg"
  1991. style="border-radius: 15px 15px 0 0"
  1992. @click="commentOther(w, toolIndex, wIndex)"
  1993. >
  1994. <!-- <div>{{ w.sName }}</div> -->
  1995. <div class="answerContent">
  1996. {{ JSON.parse(w.works)[0].answer }}
  1997. </div>
  1998. <div
  1999. class="answerScore"
  2000. v-if="w.score"
  2001. @click.stop="openScore(w)"
  2002. :class="{
  2003. rightW:
  2004. w.userid == userid || tType == 1 || tType == 4,
  2005. }"
  2006. >
  2007. {{ JSON.parse(w.score).wScore }}分
  2008. </div>
  2009. <div
  2010. class="answerScore"
  2011. @click.stop="openScore(w)"
  2012. v-else-if="courseDetail.userid == userid"
  2013. :class="{
  2014. rightW:
  2015. w.userid == userid || tType == 1 || tType == 4,
  2016. }"
  2017. >
  2018. 评分
  2019. </div>
  2020. <img
  2021. class="deleteImg"
  2022. src="../../assets/deleteworks.png"
  2023. v-if="
  2024. w.userid == userid || tType == 1 || tType == 4
  2025. "
  2026. @click.stop="deleteWorks(w.wid)"
  2027. alt
  2028. />
  2029. </div>
  2030. <div class="comment">
  2031. <div class="worksName">
  2032. <div>{{ w.sName }}</div>
  2033. </div>
  2034. <div class="commentList">
  2035. <div
  2036. class="commentImg"
  2037. @click="
  2038. isLikes(w.wid, userid, 1, null, w.isLikes)
  2039. "
  2040. >
  2041. <img
  2042. :src="w.isLikes == true ? likes : noLikes"
  2043. alt=""
  2044. />
  2045. </div>
  2046. <div>{{ w.likesCount }}</div>
  2047. </div>
  2048. <div class="commentList" style="margin-right: 15px">
  2049. <div
  2050. class="commentImg"
  2051. @click="commentOther(w, toolIndex, wIndex)"
  2052. >
  2053. <img
  2054. src="../../assets/icon/comment/comment.png"
  2055. alt=""
  2056. />
  2057. </div>
  2058. <div>{{ w.commentCount }}</div>
  2059. </div>
  2060. </div>
  2061. </div>
  2062. </div>
  2063. </div>
  2064. </div>
  2065. <div
  2066. v-if="
  2067. tType &&
  2068. ((tType == 2 && sIsOpen == true) ||
  2069. tType == 1 ||
  2070. tType == 4) &&
  2071. tool.tool.indexOf(1) != -1
  2072. "
  2073. class="worksBox"
  2074. >
  2075. <div
  2076. class="zuoyeYulan"
  2077. v-if="
  2078. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2079. "
  2080. >
  2081. <div class="worksTop">
  2082. <div>作业预览</div>
  2083. </div>
  2084. </div>
  2085. <div
  2086. class="worksDetailBox"
  2087. v-if="
  2088. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2089. "
  2090. >
  2091. <div
  2092. class="works"
  2093. style="
  2094. width: 200px;
  2095. height: 140px;
  2096. margin: 10px 10px 10px 0;
  2097. border-radius: 15px;
  2098. box-shadow: 0 0 6px 1px #dfdada;
  2099. "
  2100. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2101. :key="wIndex"
  2102. >
  2103. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2104. <div class="workImg">
  2105. <img :src="w.works" @click="previewImg(w.works)" alt />
  2106. <div
  2107. class="answerScore"
  2108. v-if="w.score"
  2109. @click.stop="openScore(w)"
  2110. :class="{
  2111. rightW:
  2112. w.userid == userid || tType == 1 || tType == 4,
  2113. }"
  2114. >
  2115. {{ JSON.parse(w.score).wScore }}分
  2116. </div>
  2117. <div
  2118. class="answerScore"
  2119. @click.stop="openScore(w)"
  2120. v-else-if="courseDetail.userid == userid"
  2121. :class="{
  2122. rightW:
  2123. w.userid == userid || tType == 1 || tType == 4,
  2124. }"
  2125. >
  2126. 评分
  2127. </div>
  2128. <img
  2129. class="deleteImg"
  2130. src="../../assets/deleteworks.png"
  2131. v-if="w.userid == userid || tType == 1 || tType == 4"
  2132. @click.stop="deleteWorks(w.wid)"
  2133. alt
  2134. />
  2135. </div>
  2136. <div class="comment" style="min-width: 200px">
  2137. <div class="worksName">
  2138. <div>{{ w.sName }}</div>
  2139. </div>
  2140. <div class="commentList">
  2141. <div class="commentList">
  2142. <div
  2143. class="commentImg"
  2144. @click="
  2145. isLikes(w.wid, userid, 1, null, w.isLikes)
  2146. "
  2147. >
  2148. <img
  2149. :src="w.isLikes == true ? likes : noLikes"
  2150. alt=""
  2151. />
  2152. </div>
  2153. <div>{{ w.likesCount }}</div>
  2154. </div>
  2155. <div class="commentList" style="margin-right: 15px">
  2156. <div
  2157. class="commentImg"
  2158. @click="commentOther(w, toolIndex, wIndex)"
  2159. >
  2160. <img
  2161. src="../../assets/icon/comment/comment.png"
  2162. alt=""
  2163. />
  2164. </div>
  2165. <div>{{ w.commentCount }}</div>
  2166. </div>
  2167. </div>
  2168. </div>
  2169. </div>
  2170. </div>
  2171. </div>
  2172. <div
  2173. v-if="
  2174. tType &&
  2175. ((tType == 2 && sIsOpen == true) ||
  2176. tType == 1 ||
  2177. tType == 4) &&
  2178. tool.tool.indexOf(3) != -1
  2179. "
  2180. class="worksBox"
  2181. >
  2182. <div
  2183. class="zuoyeYulan"
  2184. v-if="
  2185. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2186. "
  2187. >
  2188. <div class="worksTop">
  2189. <div>作业预览</div>
  2190. </div>
  2191. </div>
  2192. <div
  2193. class="worksDetailBox"
  2194. v-if="
  2195. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2196. "
  2197. >
  2198. <div
  2199. class="works"
  2200. style="
  2201. width: 200px;
  2202. height: 140px;
  2203. margin: 10px 10px 10px 0;
  2204. border-radius: 15px;
  2205. box-shadow: 0 0 6px 1px #dfdada;
  2206. "
  2207. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2208. :key="wIndex"
  2209. >
  2210. <!-- @click="previewImg(w.works)" -->
  2211. <div class="workImg">
  2212. <img :src="w.works" @click="previewImg(w.works)" alt />
  2213. <div
  2214. class="answerScore"
  2215. v-if="w.score"
  2216. @click.stop="openScore(w)"
  2217. :class="{
  2218. rightW:
  2219. w.userid == userid || tType == 1 || tType == 4,
  2220. }"
  2221. >
  2222. {{ JSON.parse(w.score).wScore }}分
  2223. </div>
  2224. <div
  2225. class="answerScore"
  2226. @click.stop="openScore(w)"
  2227. v-else-if="courseDetail.userid == userid"
  2228. :class="{
  2229. rightW:
  2230. w.userid == userid || tType == 1 || tType == 4,
  2231. }"
  2232. >
  2233. 评分
  2234. </div>
  2235. <img
  2236. class="deleteImg"
  2237. src="../../assets/deleteworks.png"
  2238. v-if="w.userid == userid || tType == 1 || tType == 4"
  2239. @click.stop="deleteWorks(w.wid)"
  2240. alt
  2241. />
  2242. </div>
  2243. <div class="comment" style="min-width: 200px">
  2244. <div class="worksName">
  2245. <div>{{ w.sName }}</div>
  2246. </div>
  2247. <div class="commentList">
  2248. <div class="commentList">
  2249. <div
  2250. class="commentImg"
  2251. @click="
  2252. isLikes(w.wid, userid, 1, null, w.isLikes)
  2253. "
  2254. >
  2255. <img
  2256. :src="w.isLikes == true ? likes : noLikes"
  2257. alt=""
  2258. />
  2259. </div>
  2260. <div>{{ w.likesCount }}</div>
  2261. </div>
  2262. <div class="commentList" style="margin-right: 15px">
  2263. <div
  2264. class="commentImg"
  2265. @click="commentOther(w, toolIndex, wIndex)"
  2266. >
  2267. <img
  2268. src="../../assets/icon/comment/comment.png"
  2269. alt=""
  2270. />
  2271. </div>
  2272. <div>{{ w.commentCount }}</div>
  2273. </div>
  2274. </div>
  2275. </div>
  2276. </div>
  2277. </div>
  2278. </div>
  2279. <div
  2280. v-if="
  2281. tType &&
  2282. ((tType == 2 && sIsOpen == true) ||
  2283. tType == 1 ||
  2284. tType == 4) &&
  2285. tool.tool.indexOf(6) != -1
  2286. "
  2287. class="worksBox"
  2288. >
  2289. <div
  2290. class="zuoyeYulan"
  2291. v-if="
  2292. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2293. "
  2294. >
  2295. <div class="worksTop">
  2296. <div>作业预览</div>
  2297. </div>
  2298. </div>
  2299. <div
  2300. class="worksDetailBox"
  2301. v-if="
  2302. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2303. "
  2304. >
  2305. <div
  2306. class="works"
  2307. style="
  2308. width: 200px;
  2309. height: 140px;
  2310. margin: 10px 10px 10px 0;
  2311. border-radius: 15px;
  2312. box-shadow: 0 0 6px 1px #dfdada;
  2313. "
  2314. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2315. :key="wIndex"
  2316. >
  2317. <!-- @click="previewImg(w.works)" -->
  2318. <div class="workImg">
  2319. <img :src="w.works" @click="previewImg(w.works)" alt />
  2320. <div
  2321. class="answerScore"
  2322. v-if="w.score"
  2323. @click.stop="openScore(w)"
  2324. :class="{
  2325. rightW:
  2326. w.userid == userid || tType == 1 || tType == 4,
  2327. }"
  2328. >
  2329. {{ JSON.parse(w.score).wScore }}分
  2330. </div>
  2331. <div
  2332. class="answerScore"
  2333. @click.stop="openScore(w)"
  2334. v-else-if="courseDetail.userid == userid"
  2335. :class="{
  2336. rightW:
  2337. w.userid == userid || tType == 1 || tType == 4,
  2338. }"
  2339. >
  2340. 评分
  2341. </div>
  2342. <img
  2343. class="deleteImg"
  2344. src="../../assets/deleteworks.png"
  2345. v-if="w.userid == userid || tType == 1 || tType == 4"
  2346. @click.stop="deleteWorks(w.wid)"
  2347. alt
  2348. />
  2349. </div>
  2350. <div class="comment" style="min-width: 200px">
  2351. <div class="worksName">
  2352. <div>{{ w.sName }}</div>
  2353. </div>
  2354. <div class="commentList">
  2355. <div class="commentList">
  2356. <div
  2357. class="commentImg"
  2358. @click="
  2359. isLikes(w.wid, userid, 1, null, w.isLikes)
  2360. "
  2361. >
  2362. <img
  2363. :src="w.isLikes == true ? likes : noLikes"
  2364. alt=""
  2365. />
  2366. </div>
  2367. <div>{{ w.likesCount }}</div>
  2368. </div>
  2369. <div class="commentList" style="margin-right: 15px">
  2370. <div
  2371. class="commentImg"
  2372. @click="commentOther(w, toolIndex, wIndex)"
  2373. >
  2374. <img
  2375. src="../../assets/icon/comment/comment.png"
  2376. alt=""
  2377. />
  2378. </div>
  2379. <div>{{ w.commentCount }}</div>
  2380. </div>
  2381. </div>
  2382. </div>
  2383. </div>
  2384. </div>
  2385. </div>
  2386. <div
  2387. v-if="
  2388. tType &&
  2389. ((tType == 2 && sIsOpen == true) ||
  2390. tType == 1 ||
  2391. tType == 4) &&
  2392. tool.tool.indexOf(7) != -1
  2393. "
  2394. class="worksBox"
  2395. >
  2396. <div
  2397. class="zuoyeYulan"
  2398. v-if="
  2399. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2400. "
  2401. >
  2402. <div class="worksTop">
  2403. <div>作业预览</div>
  2404. </div>
  2405. </div>
  2406. <div
  2407. class="worksDetailBox"
  2408. v-if="
  2409. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2410. "
  2411. >
  2412. <div
  2413. class="works"
  2414. style="
  2415. width: 200px;
  2416. height: 140px;
  2417. margin: 10px 10px 10px 0;
  2418. border-radius: 15px;
  2419. box-shadow: 0 0 6px 1px #dfdada;
  2420. "
  2421. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2422. :key="wIndex"
  2423. >
  2424. <!-- @click="previewImg(w.works)" -->
  2425. <div class="workImg">
  2426. <img :src="w.works" @click="previewImg(w.works)" alt />
  2427. <div
  2428. class="answerScore"
  2429. v-if="w.score"
  2430. @click.stop="openScore(w)"
  2431. :class="{
  2432. rightW:
  2433. w.userid == userid || tType == 1 || tType == 4,
  2434. }"
  2435. >
  2436. {{ JSON.parse(w.score).wScore }}分
  2437. </div>
  2438. <div
  2439. class="answerScore"
  2440. @click.stop="openScore(w)"
  2441. v-else-if="courseDetail.userid == userid"
  2442. :class="{
  2443. rightW:
  2444. w.userid == userid || tType == 1 || tType == 4,
  2445. }"
  2446. >
  2447. 评分
  2448. </div>
  2449. <img
  2450. class="deleteImg"
  2451. src="../../assets/deleteworks.png"
  2452. v-if="w.userid == userid || tType == 1 || tType == 4"
  2453. @click.stop="deleteWorks(w.wid)"
  2454. alt
  2455. />
  2456. </div>
  2457. <div class="comment" style="min-width: 200px">
  2458. <div class="worksName">
  2459. <div>{{ w.sName }}</div>
  2460. </div>
  2461. <div class="commentList">
  2462. <div class="commentList">
  2463. <div
  2464. class="commentImg"
  2465. @click="
  2466. isLikes(w.wid, userid, 1, null, w.isLikes)
  2467. "
  2468. >
  2469. <img
  2470. :src="w.isLikes == true ? likes : noLikes"
  2471. alt=""
  2472. />
  2473. </div>
  2474. <div>{{ w.likesCount }}</div>
  2475. </div>
  2476. <div class="commentList" style="margin-right: 15px">
  2477. <div
  2478. class="commentImg"
  2479. @click="commentOther(w, toolIndex, wIndex)"
  2480. >
  2481. <img
  2482. src="../../assets/icon/comment/comment.png"
  2483. alt=""
  2484. />
  2485. </div>
  2486. <div>{{ w.commentCount }}</div>
  2487. </div>
  2488. </div>
  2489. </div>
  2490. </div>
  2491. </div>
  2492. </div>
  2493. <div
  2494. v-if="
  2495. tType &&
  2496. ((tType == 2 && sIsOpen == true) ||
  2497. tType == 1 ||
  2498. tType == 4) &&
  2499. tool.tool.indexOf(26) != -1
  2500. "
  2501. class="worksBox"
  2502. >
  2503. <div
  2504. class="zuoyeYulan"
  2505. v-if="
  2506. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2507. "
  2508. >
  2509. <div class="worksTop">
  2510. <div>作业预览</div>
  2511. </div>
  2512. </div>
  2513. <div
  2514. class="worksDetailBox"
  2515. v-if="
  2516. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2517. "
  2518. >
  2519. <div
  2520. class="works"
  2521. style="width: 240px; height: 140px; overflow: hidden"
  2522. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2523. :key="wIndex"
  2524. :class="w.type == 1 ? 'isTypeOne' : ''"
  2525. >
  2526. <div class="workImg" v-if="w.type == 0">
  2527. <img :src="w.works" @click="previewImg(w.works)" alt />
  2528. <img
  2529. class="deleteImg"
  2530. src="../../assets/deleteworks.png"
  2531. v-if="w.userid == userid || tType == 1 || tType == 4"
  2532. @click.stop="deleteWorks(w.wid)"
  2533. alt
  2534. />
  2535. </div>
  2536. <div class="workImg" v-if="w.type == 1">
  2537. <img :src="word" @click="openFile(w.works)" alt />
  2538. <img
  2539. class="deleteImg"
  2540. src="../../assets/deleteworks.png"
  2541. v-if="w.userid == userid || tType == 1 || tType == 4"
  2542. @click.stop="deleteWorks(w.wid)"
  2543. alt
  2544. />
  2545. </div>
  2546. <div class="worksName">
  2547. <div>{{ w.sName }}</div>
  2548. </div>
  2549. </div>
  2550. </div>
  2551. </div>
  2552. <div
  2553. v-if="
  2554. tType &&
  2555. ((tType == 2 && sIsOpen == true) ||
  2556. tType == 1 ||
  2557. tType == 4) &&
  2558. tool.tool.indexOf(40) != -1
  2559. "
  2560. class="worksBox"
  2561. >
  2562. <div
  2563. class="zuoyeYulan"
  2564. v-if="
  2565. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2566. "
  2567. >
  2568. <div class="worksTop">
  2569. <div>作业预览</div>
  2570. </div>
  2571. </div>
  2572. <div
  2573. class="worksDetailBox"
  2574. v-if="
  2575. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2576. "
  2577. >
  2578. <div
  2579. class="works"
  2580. style="
  2581. width: 200px;
  2582. height: 140px;
  2583. margin: 10px 10px 10px 0;
  2584. border-radius: 15px;
  2585. box-shadow: 0 0 6px 1px #dfdada;
  2586. "
  2587. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2588. :key="wIndex"
  2589. :class="w.type == 1 ? 'isTypeOne' : ''"
  2590. >
  2591. <div class="workImg">
  2592. <img
  2593. src="../../assets/icon/works/noImg.png"
  2594. @click="openPj(w.works, toolIndex)"
  2595. alt
  2596. />
  2597. <img
  2598. class="deleteImg"
  2599. src="../../assets/deleteworks.png"
  2600. v-if="w.userid == userid || tType == 1 || tType == 4"
  2601. @click.stop="deleteWorks(w.wid)"
  2602. alt
  2603. />
  2604. </div>
  2605. <div class="comment" style="min-width: 200px">
  2606. <div class="worksName">
  2607. <div>{{ w.sName }}</div>
  2608. </div>
  2609. <div class="commentList">
  2610. <div class="commentList">
  2611. <div
  2612. class="commentImg"
  2613. @click="
  2614. isLikes(w.wid, userid, 1, null, w.isLikes)
  2615. "
  2616. >
  2617. <img
  2618. :src="w.isLikes == true ? likes : noLikes"
  2619. alt=""
  2620. />
  2621. </div>
  2622. <div>{{ w.likesCount }}</div>
  2623. </div>
  2624. <div class="commentList" style="margin-right: 15px">
  2625. <div
  2626. class="commentImg"
  2627. @click="commentOther(w, toolIndex, wIndex)"
  2628. >
  2629. <img
  2630. src="../../assets/icon/comment/comment.png"
  2631. alt=""
  2632. />
  2633. </div>
  2634. <div>{{ w.commentCount }}</div>
  2635. </div>
  2636. </div>
  2637. </div>
  2638. </div>
  2639. </div>
  2640. </div>
  2641. <div
  2642. v-if="
  2643. tType &&
  2644. ((tType == 2 && sIsOpen == true) ||
  2645. tType == 1 ||
  2646. tType == 4) &&
  2647. tool.tool.indexOf(41) != -1
  2648. "
  2649. class="worksBox"
  2650. >
  2651. <div
  2652. class="zuoyeYulan"
  2653. v-if="
  2654. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2655. "
  2656. >
  2657. <div class="worksTop">
  2658. <div>作业预览</div>
  2659. </div>
  2660. </div>
  2661. <div
  2662. class="worksDetailBox"
  2663. v-if="
  2664. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2665. "
  2666. >
  2667. <div
  2668. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2669. :key="wIndex"
  2670. class="isWorksName2"
  2671. @click="openXz(w, toolIndex)"
  2672. >
  2673. {{ w.sName }}
  2674. <img
  2675. class="deleteImg deleteImg2"
  2676. src="../../assets/deleteworks.png"
  2677. v-if="w.userid == userid || tType == 1 || tType == 4"
  2678. @click.stop="deleteWorks(w.wid)"
  2679. alt
  2680. />
  2681. </div>
  2682. </div>
  2683. </div>
  2684. <div
  2685. v-if="
  2686. tType &&
  2687. ((tType == 2 && sIsOpen == true) ||
  2688. tType == 1 ||
  2689. tType == 4) &&
  2690. tool.tool.indexOf(47) != -1
  2691. "
  2692. class="worksBox"
  2693. >
  2694. <div
  2695. class="zuoyeYulan"
  2696. v-if="
  2697. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2698. "
  2699. >
  2700. <div class="worksTop">
  2701. <div>作业预览</div>
  2702. </div>
  2703. </div>
  2704. <div
  2705. class="worksDetailBox"
  2706. v-if="
  2707. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2708. "
  2709. >
  2710. <!-- @click="openXz(w, toolIndex)" -->
  2711. <div
  2712. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2713. :key="wIndex"
  2714. class="isWorksName2"
  2715. @click="openSen(w, toolIndex)"
  2716. >
  2717. {{ w.sName }}
  2718. <img
  2719. class="deleteImg deleteImg2"
  2720. src="../../assets/deleteworks.png"
  2721. v-if="w.userid == userid || tType == 1 || tType == 4"
  2722. @click.stop="deleteWorks(w.wid)"
  2723. alt
  2724. />
  2725. </div>
  2726. </div>
  2727. </div>
  2728. <div
  2729. v-if="
  2730. tType &&
  2731. ((tType == 2 && sIsOpen == true) ||
  2732. tType == 1 ||
  2733. tType == 4) &&
  2734. tool.tool.indexOf(48) != -1
  2735. "
  2736. class="worksBox"
  2737. >
  2738. <div
  2739. class="zuoyeYulan"
  2740. v-if="
  2741. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2742. "
  2743. >
  2744. <div class="worksTop">
  2745. <div>作业预览</div>
  2746. </div>
  2747. </div>
  2748. <div
  2749. class="worksDetailBox"
  2750. v-if="
  2751. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2752. "
  2753. >
  2754. <div
  2755. class="works"
  2756. style="
  2757. width: 200px;
  2758. height: 140px;
  2759. margin: 10px 10px 10px 0;
  2760. border-radius: 15px;
  2761. box-shadow: 0 0 6px 1px #dfdada;
  2762. "
  2763. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2764. :key="wIndex"
  2765. :class="w.type == 1 ? 'isTypeOne' : ''"
  2766. >
  2767. <div class="workImg">
  2768. <img :src="word" @click="openTable(w)" alt />
  2769. <!-- @click="openFile(w.works)" -->
  2770. <div
  2771. class="answerScore"
  2772. v-if="w.score"
  2773. @click.stop="openScore(w)"
  2774. :class="{
  2775. rightW:
  2776. w.userid == userid ||
  2777. tType == 1 ||
  2778. tType == 4 ||
  2779. w.ateacher == userid,
  2780. }"
  2781. >
  2782. {{ JSON.parse(w.score).wScore }}分
  2783. </div>
  2784. <div
  2785. class="answerScore"
  2786. @click.stop="openScore(w)"
  2787. v-else-if="courseDetail.userid == userid"
  2788. :class="{
  2789. rightW:
  2790. w.userid == userid ||
  2791. tType == 1 ||
  2792. tType == 4 ||
  2793. w.ateacher == userid,
  2794. }"
  2795. >
  2796. 评分
  2797. </div>
  2798. <img
  2799. class="deleteImg"
  2800. src="../../assets/deleteworks.png"
  2801. v-if="w.userid == userid || tType == 1 || tType == 4"
  2802. @click.stop="deleteWorks(w.wid)"
  2803. alt
  2804. />
  2805. </div>
  2806. <div class="comment" style="min-width: 200px">
  2807. <div class="worksName">
  2808. <div>{{ w.sName }}</div>
  2809. </div>
  2810. <div class="commentList">
  2811. <div class="commentList">
  2812. <div
  2813. class="commentImg"
  2814. @click="
  2815. isLikes(w.wid, userid, 1, null, w.isLikes)
  2816. "
  2817. >
  2818. <img
  2819. :src="w.isLikes == true ? likes : noLikes"
  2820. alt=""
  2821. />
  2822. </div>
  2823. <div>{{ w.likesCount }}</div>
  2824. </div>
  2825. <div class="commentList" style="margin-right: 15px">
  2826. <div
  2827. class="commentImg"
  2828. @click="commentOther(w, toolIndex, wIndex)"
  2829. >
  2830. <img
  2831. src="../../assets/icon/comment/comment.png"
  2832. alt=""
  2833. />
  2834. </div>
  2835. <div>{{ w.commentCount }}</div>
  2836. </div>
  2837. </div>
  2838. </div>
  2839. </div>
  2840. </div>
  2841. </div>
  2842. <div
  2843. v-if="
  2844. tType &&
  2845. ((tType == 2 && sIsOpen == true) ||
  2846. tType == 1 ||
  2847. tType == 4) &&
  2848. tool.tool.indexOf(52) != -1
  2849. "
  2850. class="worksBox"
  2851. >
  2852. <div
  2853. class="zuoyeYulan"
  2854. v-if="
  2855. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2856. "
  2857. >
  2858. <div class="worksTop">
  2859. <div>作业预览</div>
  2860. </div>
  2861. </div>
  2862. <div
  2863. class="worksDetailBox"
  2864. v-if="
  2865. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2866. "
  2867. >
  2868. <div
  2869. class="works"
  2870. style="
  2871. width: 200px;
  2872. height: 140px;
  2873. margin: 10px 10px 10px 0;
  2874. border-radius: 15px;
  2875. box-shadow: 0 0 6px 1px #dfdada;
  2876. "
  2877. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2878. :key="wIndex"
  2879. :class="w.type == 1 ? 'isTypeOne' : ''"
  2880. >
  2881. <div class="workImg">
  2882. <img :src="word" @click="openWord(w)" alt />
  2883. <!-- @click="openFile(w.works)" -->
  2884. <div
  2885. class="answerScore"
  2886. v-if="w.score"
  2887. @click.stop="openScore(w)"
  2888. :class="{
  2889. rightW:
  2890. w.userid == userid ||
  2891. tType == 1 ||
  2892. tType == 4 ||
  2893. w.ateacher == userid,
  2894. }"
  2895. >
  2896. {{ JSON.parse(w.score).wScore }}分
  2897. </div>
  2898. <div
  2899. class="answerScore"
  2900. @click.stop="openScore(w)"
  2901. v-else-if="courseDetail.userid == userid"
  2902. :class="{
  2903. rightW:
  2904. w.userid == userid ||
  2905. tType == 1 ||
  2906. tType == 4 ||
  2907. w.ateacher == userid,
  2908. }"
  2909. >
  2910. 评分
  2911. </div>
  2912. <img
  2913. class="deleteImg"
  2914. src="../../assets/deleteworks.png"
  2915. v-if="w.userid == userid || tType == 1 || tType == 4"
  2916. @click.stop="deleteWorks(w.wid)"
  2917. alt
  2918. />
  2919. </div>
  2920. <div class="comment" style="min-width: 200px">
  2921. <div class="worksName">
  2922. <div>{{ w.sName }}</div>
  2923. </div>
  2924. <div class="commentList">
  2925. <div class="commentList">
  2926. <div
  2927. class="commentImg"
  2928. @click="
  2929. isLikes(w.wid, userid, 1, null, w.isLikes)
  2930. "
  2931. >
  2932. <img
  2933. :src="w.isLikes == true ? likes : noLikes"
  2934. alt=""
  2935. />
  2936. </div>
  2937. <div>{{ w.likesCount }}</div>
  2938. </div>
  2939. <div class="commentList" style="margin-right: 15px">
  2940. <div
  2941. class="commentImg"
  2942. @click="commentOther(w, toolIndex, wIndex)"
  2943. >
  2944. <img
  2945. src="../../assets/icon/comment/comment.png"
  2946. alt=""
  2947. />
  2948. </div>
  2949. <div>{{ w.commentCount }}</div>
  2950. </div>
  2951. </div>
  2952. </div>
  2953. </div>
  2954. </div>
  2955. </div>
  2956. </div>
  2957. </div>
  2958. <div class="vedioBox">
  2959. <div
  2960. v-if="
  2961. tType &&
  2962. ((tType == 2 && sIsOpen == true) ||
  2963. tType == 1 ||
  2964. tType == 4) &&
  2965. tool.tool.indexOf(4) != -1 &&
  2966. worksStudent.length &&
  2967. worksStudent[toolIndex].length &&
  2968. (tool.askJson[0].answer || tool.askJson[0].answer === 0) &&
  2969. checkJson[toolIndex].length
  2970. "
  2971. class="xuan_right_box"
  2972. >
  2973. <div
  2974. class="tool_right_box"
  2975. v-for="(item, index) in tool.askJson"
  2976. :key="index"
  2977. >
  2978. <div>
  2979. <span style="word-break: break-all; white-space: normal">{{
  2980. index + 1 + "、" + item.askstitle
  2981. }}</span>
  2982. </div>
  2983. <div class="right_box_xuan">
  2984. <span>正确率</span>
  2985. <span>{{
  2986. (checkJson[toolIndex][index].right
  2987. ? checkJson[toolIndex][index].right
  2988. : 0) + "%"
  2989. }}</span>
  2990. </div>
  2991. </div>
  2992. </div>
  2993. <div
  2994. class="xuan_right_box"
  2995. style="background: unset; padding: 0 10px"
  2996. v-if="
  2997. tType &&
  2998. ((tType == 2 && sIsOpen == true) ||
  2999. tType == 1 ||
  3000. tType == 4) &&
  3001. tool.tool.indexOf(4) != -1 &&
  3002. worksStudent.length &&
  3003. worksStudent[toolIndex].length
  3004. "
  3005. >
  3006. <AskStatic
  3007. v-if="
  3008. worksStudent.length && worksStudent[toolIndex].length > 0
  3009. "
  3010. :askJSON="tool"
  3011. :checkJson="checkJson[toolIndex]"
  3012. ></AskStatic>
  3013. </div>
  3014. <div
  3015. v-if="
  3016. tType &&
  3017. ((tType == 2 && sIsOpen == true) ||
  3018. tType == 1 ||
  3019. tType == 4) &&
  3020. tool.tool.indexOf(45) != -1 &&
  3021. worksStudent.length &&
  3022. worksStudent[toolIndex].length &&
  3023. (tool.testJson.testJson[0].answer ||
  3024. tool.testJson.testJson[0].answer === 0) &&
  3025. checkJson[toolIndex].length
  3026. "
  3027. class="xuan_right_box"
  3028. >
  3029. <div
  3030. class="tool_right_box"
  3031. v-for="(item, index) in tool.testJson.testJson"
  3032. :key="index"
  3033. >
  3034. <div class="right_box_xuan" style="margin-right: 10px">
  3035. <span>正确率</span>
  3036. <span>{{
  3037. (checkJson[toolIndex][index].right
  3038. ? checkJson[toolIndex][index].right
  3039. : 0) + "%"
  3040. }}</span>
  3041. </div>
  3042. <div>
  3043. <span style="word-break: break-all; white-space: normal">{{
  3044. index + 1 + "、" + item.teststitle
  3045. }}</span>
  3046. </div>
  3047. </div>
  3048. </div>
  3049. <div
  3050. class="xuan_right_box"
  3051. style="background: unset; padding: 0 10px"
  3052. v-if="
  3053. tType &&
  3054. ((tType == 2 && sIsOpen == true) ||
  3055. tType == 1 ||
  3056. tType == 4) &&
  3057. tool.tool.indexOf(45) != -1 &&
  3058. worksStudent.length &&
  3059. worksStudent[toolIndex].length
  3060. "
  3061. >
  3062. <AskStatic2
  3063. v-if="
  3064. worksStudent.length && worksStudent[toolIndex].length > 0
  3065. "
  3066. :askJSON="tool"
  3067. :checkJson="checkJson[toolIndex]"
  3068. ></AskStatic2>
  3069. </div>
  3070. <div
  3071. v-if="
  3072. tType &&
  3073. ((tType == 2 && sIsOpen == true) ||
  3074. tType == 1 ||
  3075. tType == 4) &&
  3076. tool.tool.indexOf(41) != -1
  3077. "
  3078. >
  3079. <AnswerData2
  3080. v-if="
  3081. worksStudent.length && worksStudent[toolIndex].length > 0
  3082. "
  3083. :problemJson="tool.selectJson.answer"
  3084. :people="worksStudent[toolIndex]"
  3085. ></AnswerData2>
  3086. </div>
  3087. <div
  3088. v-if="
  3089. tType &&
  3090. ((tType == 2 && sIsOpen == true) ||
  3091. tType == 1 ||
  3092. tType == 4) &&
  3093. tool.tool.indexOf(47) != -1
  3094. "
  3095. >
  3096. <AnswerData
  3097. v-if="
  3098. checkJson[toolIndex].length &&
  3099. (tool.sentenceList || tool.sentenceList.length > 0)
  3100. "
  3101. :people="checkJson[toolIndex]"
  3102. ></AnswerData>
  3103. </div>
  3104. </div>
  3105. <div
  3106. class="vedioBox"
  3107. v-if="
  3108. noWorksS[toolIndex].length &&
  3109. arrayToArray(tool.tool, isWorkTool).length &&
  3110. false
  3111. "
  3112. >
  3113. <div
  3114. class="queTop"
  3115. style="
  3116. font-size: 20px;
  3117. padding: 15px 0 15px 37px;
  3118. font-weight: bold;
  3119. "
  3120. >
  3121. 学生工作区
  3122. </div>
  3123. <div class="tool_work_box">
  3124. <div
  3125. v-if="
  3126. tType &&
  3127. ((tType == 2 && sIsOpen == true) ||
  3128. tType == 1 ||
  3129. tType == 4) &&
  3130. tool.tool.indexOf(16) != -1
  3131. "
  3132. class="worksBox"
  3133. >
  3134. <div
  3135. class="zuoyeYulan"
  3136. v-if="
  3137. worksStudent2.length &&
  3138. worksStudent2[toolIndex].length > 0
  3139. "
  3140. >
  3141. <div class="worksTop">
  3142. <div>作业预览</div>
  3143. <div
  3144. class="corOpen"
  3145. @click="contract(toolIndex)"
  3146. v-if="
  3147. worksStudent2[toolIndex].length > 6 &&
  3148. isCloseList[toolIndex].isClose == 0
  3149. "
  3150. >
  3151. 收缩
  3152. </div>
  3153. <div
  3154. class="corOpen"
  3155. @click="contract(toolIndex)"
  3156. v-if="isCloseList[toolIndex].isClose == 1"
  3157. >
  3158. 展开
  3159. </div>
  3160. </div>
  3161. </div>
  3162. <div
  3163. class="worksDetailBox"
  3164. v-if="
  3165. worksStudent2.length &&
  3166. worksStudent2[toolIndex].length > 0
  3167. "
  3168. >
  3169. <div
  3170. class="works"
  3171. style="
  3172. width: 200px;
  3173. height: 140px;
  3174. margin: 10px 10px 10px 0;
  3175. border-radius: 15px;
  3176. box-shadow: 0 0 6px 1px #dfdada;
  3177. "
  3178. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3179. ? worksStudent2[toolIndex]
  3180. : worksStudent2[toolIndex].slice(0, 6)"
  3181. :key="wIndex"
  3182. :class="w.type == 1 ? 'isTypeOne' : ''"
  3183. >
  3184. <div class="workImg" v-if="w.type == 0">
  3185. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3186. <img :src="w.works" @click="previewImg(w.works)" alt />
  3187. <div
  3188. class="answerScore"
  3189. v-if="w.score"
  3190. @click.stop="openScore(w)"
  3191. :class="{
  3192. rightW:
  3193. w.userid == userid ||
  3194. tType == 1 ||
  3195. tType == 4 ||
  3196. w.ateacher == userid,
  3197. }"
  3198. >
  3199. {{ JSON.parse(w.score).wScore }}分
  3200. </div>
  3201. <div
  3202. class="answerScore"
  3203. @click.stop="openScore(w)"
  3204. v-else-if="courseDetail.userid == userid"
  3205. :class="{
  3206. rightW:
  3207. w.userid == userid ||
  3208. tType == 1 ||
  3209. tType == 4 ||
  3210. w.ateacher == userid,
  3211. }"
  3212. >
  3213. 评分
  3214. </div>
  3215. <img
  3216. class="deleteImg"
  3217. src="../../assets/deleteworks.png"
  3218. v-if="w.userid == userid || tType == 1 || tType == 4"
  3219. @click.stop="deleteWorks(w.wid)"
  3220. alt
  3221. />
  3222. </div>
  3223. <div class="workImg" v-if="w.type == 1">
  3224. <img :src="word" @click="openFile(w.works)" alt />
  3225. <!-- @click="openFile(w.works)" -->
  3226. <div
  3227. class="answerScore"
  3228. v-if="w.score"
  3229. @click.stop="openScore(w)"
  3230. :class="{
  3231. rightW:
  3232. w.userid == userid ||
  3233. tType == 1 ||
  3234. tType == 4 ||
  3235. w.ateacher == userid,
  3236. }"
  3237. >
  3238. {{ JSON.parse(w.score).wScore }}分
  3239. </div>
  3240. <div
  3241. class="answerScore"
  3242. @click.stop="openScore(w)"
  3243. v-else-if="courseDetail.userid == userid"
  3244. :class="{
  3245. rightW:
  3246. w.userid == userid ||
  3247. tType == 1 ||
  3248. tType == 4 ||
  3249. w.ateacher == userid,
  3250. }"
  3251. >
  3252. 评分
  3253. </div>
  3254. <img
  3255. class="deleteImg"
  3256. src="../../assets/deleteworks.png"
  3257. v-if="w.userid == userid || tType == 1 || tType == 4"
  3258. @click.stop="deleteWorks(w.wid)"
  3259. alt
  3260. />
  3261. </div>
  3262. <div class="workImg" v-if="w.type == 3">
  3263. <img
  3264. style="cursor: pointer"
  3265. :src="video"
  3266. @click="openVideo(w)"
  3267. alt
  3268. />
  3269. <!-- @click="openVideo(w.works)" -->
  3270. <div
  3271. class="answerScore"
  3272. v-if="w.score"
  3273. @click.stop="openScore(w)"
  3274. :class="{
  3275. rightW:
  3276. w.userid == userid ||
  3277. tType == 1 ||
  3278. tType == 4 ||
  3279. w.ateacher == userid,
  3280. }"
  3281. >
  3282. {{ JSON.parse(w.score).wScore }}分
  3283. </div>
  3284. <div
  3285. class="answerScore"
  3286. @click.stop="openScore(w)"
  3287. v-else-if="courseDetail.userid == userid"
  3288. :class="{
  3289. rightW:
  3290. w.userid == userid ||
  3291. tType == 1 ||
  3292. tType == 4 ||
  3293. w.ateacher == userid,
  3294. }"
  3295. >
  3296. 评分
  3297. </div>
  3298. <img
  3299. class="deleteImg"
  3300. src="../../assets/deleteworks.png"
  3301. v-if="w.userid == userid || tType == 1 || tType == 4"
  3302. @click.stop="deleteWorks(w.wid)"
  3303. alt
  3304. />
  3305. </div>
  3306. <div class="workImg" v-if="w.type == 12">
  3307. <img
  3308. style="cursor: pointer"
  3309. :src="word2"
  3310. @click="downloadFile(w.works)"
  3311. alt
  3312. />
  3313. <!-- @click="openVideo(w.works)" -->
  3314. <div
  3315. class="answerScore"
  3316. v-if="w.score"
  3317. @click.stop="openScore(w)"
  3318. :class="{
  3319. rightW:
  3320. w.userid == userid ||
  3321. tType == 1 ||
  3322. tType == 4 ||
  3323. w.ateacher == userid,
  3324. }"
  3325. >
  3326. {{ JSON.parse(w.score).wScore }}分
  3327. </div>
  3328. <div
  3329. class="answerScore"
  3330. @click.stop="openScore(w)"
  3331. v-else-if="courseDetail.userid == userid"
  3332. :class="{
  3333. rightW:
  3334. w.userid == userid ||
  3335. tType == 1 ||
  3336. tType == 4 ||
  3337. w.ateacher == userid,
  3338. }"
  3339. >
  3340. 评分
  3341. </div>
  3342. <img
  3343. class="deleteImg"
  3344. src="../../assets/deleteworks.png"
  3345. v-if="w.userid == userid || tType == 1 || tType == 4"
  3346. @click.stop="deleteWorks(w.wid)"
  3347. alt
  3348. />
  3349. </div>
  3350. <div class="comment" style="min-width: 200px">
  3351. <div class="worksName">
  3352. <div>{{ w.sName }}</div>
  3353. </div>
  3354. <div class="commentList">
  3355. <div class="commentList">
  3356. <div
  3357. class="commentImg"
  3358. @click="
  3359. isLikes(w.wid, userid, 1, null, w.isLikes)
  3360. "
  3361. >
  3362. <img
  3363. :src="w.isLikes == true ? likes : noLikes"
  3364. alt=""
  3365. />
  3366. </div>
  3367. <div>{{ w.likesCount }}</div>
  3368. </div>
  3369. <div class="commentList" style="margin-right: 15px">
  3370. <div
  3371. class="commentImg"
  3372. @click="commentOther(w, toolIndex, wIndex)"
  3373. >
  3374. <img
  3375. src="../../assets/icon/comment/comment.png"
  3376. alt=""
  3377. />
  3378. </div>
  3379. <div>{{ w.commentCount }}</div>
  3380. </div>
  3381. </div>
  3382. </div>
  3383. </div>
  3384. </div>
  3385. <div class="noWorksS">
  3386. <div
  3387. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3388. :key="sIndex"
  3389. class="noWorksName"
  3390. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3391. :class="{ isWork: s.type == '2' }"
  3392. >
  3393. {{ s.student }}
  3394. </div>
  3395. </div>
  3396. </div>
  3397. <div
  3398. v-if="
  3399. tType &&
  3400. ((tType == 2 && sIsOpen == true) ||
  3401. tType == 1 ||
  3402. tType == 4) &&
  3403. tool.tool.indexOf(32) != -1
  3404. "
  3405. class="worksBox"
  3406. >
  3407. <div
  3408. class="zuoyeYulan"
  3409. v-if="
  3410. worksStudent2.length &&
  3411. worksStudent2[toolIndex].length > 0
  3412. "
  3413. >
  3414. <div class="worksTop">
  3415. <div>作业预览</div>
  3416. <div
  3417. class="corOpen"
  3418. @click="contract(toolIndex)"
  3419. v-if="
  3420. worksStudent2[toolIndex].length > 6 &&
  3421. isCloseList[toolIndex].isClose == 0
  3422. "
  3423. >
  3424. 收缩
  3425. </div>
  3426. <div
  3427. class="corOpen"
  3428. @click="contract(toolIndex)"
  3429. v-if="isCloseList[toolIndex].isClose == 1"
  3430. >
  3431. 展开
  3432. </div>
  3433. </div>
  3434. </div>
  3435. <div
  3436. class="worksDetailBox"
  3437. v-if="
  3438. worksStudent2.length &&
  3439. worksStudent2[toolIndex].length > 0
  3440. "
  3441. >
  3442. <div
  3443. class="works"
  3444. style="
  3445. width: 200px;
  3446. height: 140px;
  3447. margin: 10px 10px 10px 0;
  3448. border-radius: 15px;
  3449. box-shadow: 0 0 6px 1px #dfdada;
  3450. "
  3451. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3452. ? worksStudent2[toolIndex]
  3453. : worksStudent2[toolIndex].slice(0, 6)"
  3454. :key="wIndex"
  3455. :class="w.type == 1 ? 'isTypeOne' : ''"
  3456. >
  3457. <div class="workImg">
  3458. <img :src="word2" @click="downloadFile(w.works)" alt />
  3459. <div
  3460. class="answerScore"
  3461. v-if="w.score"
  3462. @click.stop="openScore(w)"
  3463. :class="{
  3464. rightW:
  3465. w.userid == userid ||
  3466. tType == 1 ||
  3467. tType == 4 ||
  3468. w.ateacher == userid,
  3469. }"
  3470. >
  3471. {{ JSON.parse(w.score).wScore }}分
  3472. </div>
  3473. <div
  3474. class="answerScore"
  3475. @click.stop="openScore(w)"
  3476. v-else-if="courseDetail.userid == userid"
  3477. :class="{
  3478. rightW:
  3479. w.userid == userid ||
  3480. tType == 1 ||
  3481. tType == 4 ||
  3482. w.ateacher == userid,
  3483. }"
  3484. >
  3485. 评分
  3486. </div>
  3487. <img
  3488. class="deleteImg"
  3489. src="../../assets/deleteworks.png"
  3490. v-if="w.userid == userid || tType == 1 || tType == 4"
  3491. @click.stop="deleteWorks(w.wid)"
  3492. alt
  3493. />
  3494. </div>
  3495. <div class="comment" style="min-width: 200px">
  3496. <div class="worksName">
  3497. <div>{{ w.sName }}</div>
  3498. </div>
  3499. <div class="commentList">
  3500. <div class="commentList">
  3501. <div
  3502. class="commentImg"
  3503. @click="
  3504. isLikes(w.wid, userid, 1, null, w.isLikes)
  3505. "
  3506. >
  3507. <img
  3508. :src="w.isLikes == true ? likes : noLikes"
  3509. alt=""
  3510. />
  3511. </div>
  3512. <div>{{ w.likesCount }}</div>
  3513. </div>
  3514. <div class="commentList" style="margin-right: 15px">
  3515. <div
  3516. class="commentImg"
  3517. @click="commentOther(w, toolIndex, wIndex)"
  3518. >
  3519. <img
  3520. src="../../assets/icon/comment/comment.png"
  3521. alt=""
  3522. />
  3523. </div>
  3524. <div>{{ w.commentCount }}</div>
  3525. </div>
  3526. </div>
  3527. </div>
  3528. </div>
  3529. </div>
  3530. <div class="noWorksS">
  3531. <div
  3532. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3533. :key="sIndex"
  3534. class="noWorksName"
  3535. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3536. :class="{ isWork: s.type == '2' }"
  3537. >
  3538. {{ s.student }}
  3539. </div>
  3540. </div>
  3541. </div>
  3542. <div
  3543. v-if="
  3544. tType &&
  3545. ((tType == 2 && sIsOpen == true) ||
  3546. tType == 1 ||
  3547. tType == 4) &&
  3548. tool.tool.indexOf(57) != -1
  3549. "
  3550. class="worksBox"
  3551. >
  3552. <div
  3553. class="zuoyeYulan"
  3554. v-if="
  3555. worksStudent2.length &&
  3556. worksStudent2[toolIndex].length > 0
  3557. "
  3558. >
  3559. <div class="worksTop">
  3560. <div>作业预览</div>
  3561. <div
  3562. class="corOpen"
  3563. @click="contract(toolIndex)"
  3564. v-if="
  3565. worksStudent2[toolIndex].length > 6 &&
  3566. isCloseList[toolIndex].isClose == 0
  3567. "
  3568. >
  3569. 收缩
  3570. </div>
  3571. <div
  3572. class="corOpen"
  3573. @click="contract(toolIndex)"
  3574. v-if="isCloseList[toolIndex].isClose == 1"
  3575. >
  3576. 展开
  3577. </div>
  3578. </div>
  3579. </div>
  3580. <div
  3581. class="worksDetailBox"
  3582. v-if="
  3583. worksStudent2.length &&
  3584. worksStudent2[toolIndex].length > 0
  3585. "
  3586. >
  3587. <div
  3588. class="works"
  3589. style="
  3590. width: 200px;
  3591. height: 140px;
  3592. margin: 10px 10px 10px 0;
  3593. border-radius: 15px;
  3594. box-shadow: 0 0 6px 1px #dfdada;
  3595. "
  3596. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3597. ? worksStudent2[toolIndex]
  3598. : worksStudent2[toolIndex].slice(0, 6)"
  3599. :key="wIndex"
  3600. :class="w.type == 1 ? 'isTypeOne' : ''"
  3601. >
  3602. <div class="workImg">
  3603. <img
  3604. :src="word2"
  3605. @click="downloadFile(w.works)"
  3606. v-if="w.type == 12"
  3607. alt
  3608. />
  3609. <img
  3610. :src="word2"
  3611. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  3612. v-else-if="w.type == 15"
  3613. alt
  3614. />
  3615. <div
  3616. class="answerScore"
  3617. v-if="w.score"
  3618. @click.stop="openScore(w)"
  3619. :class="{
  3620. rightW:
  3621. w.userid == userid ||
  3622. tType == 1 ||
  3623. tType == 4 ||
  3624. w.ateacher == userid,
  3625. }"
  3626. >
  3627. {{ JSON.parse(w.score).wScore }}分
  3628. </div>
  3629. <div
  3630. class="answerScore"
  3631. @click.stop="openScore(w)"
  3632. v-else-if="courseDetail.userid == userid"
  3633. :class="{
  3634. rightW:
  3635. w.userid == userid ||
  3636. tType == 1 ||
  3637. tType == 4 ||
  3638. w.ateacher == userid,
  3639. }"
  3640. >
  3641. 评分
  3642. </div>
  3643. <img
  3644. class="deleteImg"
  3645. src="../../assets/deleteworks.png"
  3646. v-if="w.userid == userid || tType == 1 || tType == 4"
  3647. @click.stop="deleteWorks(w.wid)"
  3648. alt
  3649. />
  3650. </div>
  3651. <div class="comment" style="min-width: 200px">
  3652. <div class="worksName">
  3653. <div>{{ w.sName }}</div>
  3654. </div>
  3655. <div class="commentList">
  3656. <div class="commentList">
  3657. <div
  3658. class="commentImg"
  3659. @click="
  3660. isLikes(w.wid, userid, 1, null, w.isLikes)
  3661. "
  3662. >
  3663. <img
  3664. :src="w.isLikes == true ? likes : noLikes"
  3665. alt=""
  3666. />
  3667. </div>
  3668. <div>{{ w.likesCount }}</div>
  3669. </div>
  3670. <div class="commentList" style="margin-right: 15px">
  3671. <div
  3672. class="commentImg"
  3673. @click="commentOther(w, toolIndex, wIndex)"
  3674. >
  3675. <img
  3676. src="../../assets/icon/comment/comment.png"
  3677. alt=""
  3678. />
  3679. </div>
  3680. <div>{{ w.commentCount }}</div>
  3681. </div>
  3682. </div>
  3683. </div>
  3684. </div>
  3685. </div>
  3686. <div class="noWorksS">
  3687. <div
  3688. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3689. :key="sIndex"
  3690. class="noWorksName"
  3691. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3692. :class="{ isWork: s.type == '2' }"
  3693. >
  3694. {{ s.student }}
  3695. </div>
  3696. </div>
  3697. </div>
  3698. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3699. <div
  3700. class="zuoyeYulan"
  3701. v-if="
  3702. worksStudent2.length &&
  3703. worksStudent2[toolIndex].length > 0
  3704. "
  3705. >
  3706. <span>作业预览</span>
  3707. <div
  3708. class="corOpen"
  3709. @click="contract(toolIndex)"
  3710. v-if="
  3711. worksStudent2[toolIndex].length > 6 &&
  3712. isCloseList[toolIndex].isClose == 0
  3713. "
  3714. >
  3715. 收缩
  3716. </div>
  3717. <div
  3718. class="corOpen"
  3719. @click="contract(toolIndex)"
  3720. v-if="isCloseList[toolIndex].isClose == 1"
  3721. >
  3722. 展开
  3723. </div>
  3724. </div>
  3725. <div
  3726. class="worksDetailBox"
  3727. v-if="
  3728. worksStudent2.length &&
  3729. worksStudent2[toolIndex].length > 0
  3730. "
  3731. >
  3732. <div
  3733. class="works"
  3734. style="
  3735. width: 200px;
  3736. height: 140px;
  3737. margin: 10px 10px 10px 0;
  3738. border-radius: 15px;
  3739. box-shadow: 0 0 6px 1px #dfdada;
  3740. "
  3741. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3742. ? worksStudent2[toolIndex]
  3743. : worksStudent2[toolIndex].slice(0, 6)"
  3744. :key="wIndex"
  3745. :class="w.type == 1 ? 'isTypeOne' : ''"
  3746. >
  3747. <div class="workImg" v-if="w.type == 0">
  3748. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3749. <img :src="w.works" @click="previewImg(w.works)" alt />
  3750. <div
  3751. class="answerScore"
  3752. v-if="w.score"
  3753. @click.stop="openScore(w)"
  3754. :class="{
  3755. rightW:
  3756. w.userid == userid ||
  3757. tType == 1 ||
  3758. tType == 4 ||
  3759. w.ateacher == userid,
  3760. }"
  3761. >
  3762. {{ JSON.parse(w.score).wScore }}分
  3763. </div>
  3764. <div
  3765. class="answerScore"
  3766. @click.stop="openScore(w)"
  3767. v-else-if="courseDetail.userid == userid"
  3768. :class="{
  3769. rightW:
  3770. w.userid == userid ||
  3771. tType == 1 ||
  3772. tType == 4 ||
  3773. w.ateacher == userid,
  3774. }"
  3775. >
  3776. 评分
  3777. </div>
  3778. <img
  3779. class="deleteImg"
  3780. src="../../assets/deleteworks.png"
  3781. v-if="w.userid == userid || tType == 1 || tType == 4"
  3782. @click.stop="deleteWorks(w.wid)"
  3783. alt
  3784. />
  3785. </div>
  3786. <div
  3787. class="workImg"
  3788. style="cursor: pointer"
  3789. v-if="w.type == 1"
  3790. >
  3791. <img :src="word" @click="openFile(w.works)" alt />
  3792. <!-- @click="openFile(w.works)" -->
  3793. <div
  3794. class="answerScore"
  3795. v-if="w.score"
  3796. @click.stop="openScore(w)"
  3797. :class="{
  3798. rightW:
  3799. w.userid == userid ||
  3800. tType == 1 ||
  3801. tType == 4 ||
  3802. w.ateacher == userid,
  3803. }"
  3804. >
  3805. {{ JSON.parse(w.score).wScore }}分
  3806. </div>
  3807. <div
  3808. class="answerScore"
  3809. @click.stop="openScore(w)"
  3810. v-else-if="courseDetail.userid == userid"
  3811. :class="{
  3812. rightW:
  3813. w.userid == userid ||
  3814. tType == 1 ||
  3815. tType == 4 ||
  3816. w.ateacher == userid,
  3817. }"
  3818. >
  3819. 评分
  3820. </div>
  3821. <img
  3822. class="deleteImg"
  3823. src="../../assets/deleteworks.png"
  3824. v-if="w.userid == userid || tType == 1 || tType == 4"
  3825. @click.stop="deleteWorks(w.wid)"
  3826. alt
  3827. />
  3828. </div>
  3829. <div class="workImg" v-if="w.type == 3">
  3830. <img
  3831. style="cursor: pointer"
  3832. :src="video"
  3833. @click="openVideo(w)"
  3834. alt
  3835. />
  3836. <!-- @click="openVideo(w.works)" -->
  3837. <div
  3838. class="answerScore"
  3839. v-if="w.score"
  3840. @click.stop="openScore(w)"
  3841. :class="{
  3842. rightW:
  3843. w.userid == userid ||
  3844. tType == 1 ||
  3845. tType == 4 ||
  3846. w.ateacher == userid,
  3847. }"
  3848. >
  3849. {{ JSON.parse(w.score).wScore }}分
  3850. </div>
  3851. <div
  3852. class="answerScore"
  3853. @click.stop="openScore(w)"
  3854. v-else-if="courseDetail.userid == userid"
  3855. :class="{
  3856. rightW:
  3857. w.userid == userid ||
  3858. tType == 1 ||
  3859. tType == 4 ||
  3860. w.ateacher == userid,
  3861. }"
  3862. >
  3863. 评分
  3864. </div>
  3865. <img
  3866. class="deleteImg"
  3867. src="../../assets/deleteworks.png"
  3868. v-if="w.userid == userid || tType == 1 || tType == 4"
  3869. @click.stop="deleteWorks(w.wid)"
  3870. alt
  3871. />
  3872. </div>
  3873. <div class="comment" style="min-width: 200px">
  3874. <div class="worksName">
  3875. <div
  3876. style="cursor: pointer"
  3877. @click="
  3878. openSname(w.sName, w.wid, toolIndex, w.userid)
  3879. "
  3880. >
  3881. {{ w.sName }}
  3882. </div>
  3883. </div>
  3884. <div class="commentList">
  3885. <div class="commentList">
  3886. <div
  3887. class="commentImg"
  3888. @click="
  3889. isLikes(w.wid, userid, 1, null, w.isLikes)
  3890. "
  3891. >
  3892. <img
  3893. :src="w.isLikes == true ? likes : noLikes"
  3894. alt=""
  3895. />
  3896. </div>
  3897. <div>{{ w.likesCount }}</div>
  3898. </div>
  3899. <div class="commentList" style="margin-right: 15px">
  3900. <div
  3901. class="commentImg"
  3902. @click="commentOther(w, toolIndex, wIndex)"
  3903. >
  3904. <img
  3905. src="../../assets/icon/comment/comment.png"
  3906. alt=""
  3907. />
  3908. </div>
  3909. <div>{{ w.commentCount }}</div>
  3910. </div>
  3911. </div>
  3912. </div>
  3913. </div>
  3914. </div>
  3915. <div class="noWorksS">
  3916. <div
  3917. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3918. :key="sIndex"
  3919. class="noWorksName"
  3920. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3921. :class="{ isWork: s.type == '2' }"
  3922. >
  3923. {{ s.student }}
  3924. </div>
  3925. </div>
  3926. </div>
  3927. <div
  3928. v-if="
  3929. tType &&
  3930. ((tType == 2 && sIsOpen == true) ||
  3931. tType == 1 ||
  3932. tType == 4) &&
  3933. tool.tool.indexOf(4) != -1
  3934. "
  3935. class="worksBox"
  3936. >
  3937. <div
  3938. class="zuoyeYulan"
  3939. v-if="
  3940. worksStudent2.length &&
  3941. worksStudent2[toolIndex].length > 0
  3942. "
  3943. >
  3944. <div class="worksTop">
  3945. <div>作业预览</div>
  3946. <div
  3947. class="corOpen"
  3948. @click="contract(toolIndex)"
  3949. v-if="
  3950. worksStudent2[toolIndex].length > 6 &&
  3951. isCloseList[toolIndex].isClose == 0
  3952. "
  3953. >
  3954. 收缩
  3955. </div>
  3956. <div
  3957. class="corOpen"
  3958. @click="contract(toolIndex)"
  3959. v-if="isCloseList[toolIndex].isClose == 1"
  3960. >
  3961. 展开
  3962. </div>
  3963. </div>
  3964. </div>
  3965. <div>
  3966. <div
  3967. class="worksDetailBox"
  3968. v-if="
  3969. worksStudent2.length &&
  3970. worksStudent2[toolIndex].length > 0
  3971. "
  3972. >
  3973. <div
  3974. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3975. 0
  3976. ? worksStudent2[toolIndex]
  3977. : worksStudent2[toolIndex].slice(0, 6)"
  3978. :key="wIndex"
  3979. class="isWorksName2"
  3980. @click="
  3981. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3982. "
  3983. >
  3984. {{ w.sName }}
  3985. <img
  3986. class="deleteImg deleteImg2"
  3987. src="../../assets/deleteworks.png"
  3988. v-if="w.userid == userid || tType == 1 || tType == 4"
  3989. @click.stop="deleteWorks(w.wid)"
  3990. alt
  3991. />
  3992. </div>
  3993. </div>
  3994. </div>
  3995. <div class="noWorksS">
  3996. <div
  3997. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3998. :key="sIndex"
  3999. class="noWorksName"
  4000. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4001. :class="{ isWork: s.type == '2' }"
  4002. >
  4003. {{ s.student }}
  4004. </div>
  4005. </div>
  4006. </div>
  4007. <div
  4008. v-if="
  4009. tType &&
  4010. ((tType == 2 && sIsOpen == true) ||
  4011. tType == 1 ||
  4012. tType == 4) &&
  4013. tool.tool.indexOf(45) != -1
  4014. "
  4015. class="worksBox"
  4016. >
  4017. <div
  4018. class="zuoyeYulan"
  4019. v-if="
  4020. worksStudent2.length &&
  4021. worksStudent2[toolIndex].length > 0
  4022. "
  4023. >
  4024. <div class="worksTop">
  4025. <div>作业预览</div>
  4026. <div
  4027. class="corOpen"
  4028. @click="contract(toolIndex)"
  4029. v-if="
  4030. worksStudent2[toolIndex].length > 6 &&
  4031. isCloseList[toolIndex].isClose == 0
  4032. "
  4033. >
  4034. 收缩
  4035. </div>
  4036. <div
  4037. class="corOpen"
  4038. @click="contract(toolIndex)"
  4039. v-if="isCloseList[toolIndex].isClose == 1"
  4040. >
  4041. 展开
  4042. </div>
  4043. </div>
  4044. </div>
  4045. <div>
  4046. <div
  4047. class="worksDetailBox"
  4048. v-if="
  4049. worksStudent2.length &&
  4050. worksStudent2[toolIndex].length > 0
  4051. "
  4052. >
  4053. <div
  4054. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4055. 0
  4056. ? worksStudent2[toolIndex]
  4057. : worksStudent2[toolIndex].slice(0, 6)"
  4058. :key="wIndex"
  4059. class="isWorksName2"
  4060. @click="
  4061. openTools(45, toolIndex, taskCount, w.works, w.sName)
  4062. "
  4063. >
  4064. {{ w.sName }}
  4065. <img
  4066. class="deleteImg deleteImg2"
  4067. src="../../assets/deleteworks.png"
  4068. v-if="w.userid == userid || tType == 1 || tType == 4"
  4069. @click.stop="deleteWorks(w.wid)"
  4070. alt
  4071. />
  4072. </div>
  4073. </div>
  4074. </div>
  4075. <div class="noWorksS">
  4076. <div
  4077. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4078. :key="sIndex"
  4079. class="noWorksName"
  4080. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4081. :class="{ isWork: s.type == '2' }"
  4082. >
  4083. {{ s.student }}
  4084. </div>
  4085. </div>
  4086. </div>
  4087. <div
  4088. v-if="
  4089. tType &&
  4090. ((tType == 2 && sIsOpen == true) ||
  4091. tType == 1 ||
  4092. tType == 4) &&
  4093. tool.tool.indexOf(15) != -1
  4094. "
  4095. class="worksBox"
  4096. >
  4097. <div
  4098. class="zuoyeYulan"
  4099. v-if="
  4100. worksStudent2.length &&
  4101. worksStudent2[toolIndex].length > 0
  4102. "
  4103. >
  4104. <div class="worksTop">
  4105. <div>作业预览</div>
  4106. <div
  4107. class="corOpen"
  4108. @click="contract(toolIndex)"
  4109. v-if="
  4110. worksStudent2[toolIndex].length > 6 &&
  4111. isCloseList[toolIndex].isClose == 0
  4112. "
  4113. >
  4114. 收缩
  4115. </div>
  4116. <div
  4117. class="corOpen"
  4118. @click="contract(toolIndex)"
  4119. v-if="isCloseList[toolIndex].isClose == 1"
  4120. >
  4121. 展开
  4122. </div>
  4123. </div>
  4124. </div>
  4125. <div
  4126. class="worksDetailBox"
  4127. v-if="
  4128. worksStudent2.length &&
  4129. worksStudent2[toolIndex].length > 0
  4130. "
  4131. >
  4132. <div
  4133. class="works"
  4134. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4135. ? worksStudent2[toolIndex]
  4136. : worksStudent2[toolIndex].slice(0, 6)"
  4137. :key="wIndex"
  4138. >
  4139. <div
  4140. class="workImg"
  4141. style="
  4142. border-radius: 15px;
  4143. box-shadow: #eee 0px 0px 5px 5px;
  4144. "
  4145. >
  4146. <!-- <img
  4147. src="../../assets/icon/works/noImg.png"
  4148. @click="openTools(15, toolIndex, taskCount, w.works)"
  4149. alt=""
  4150. />-->
  4151. <div
  4152. class="answerBg"
  4153. style="border-radius: 15px 15px 0 0"
  4154. @click="commentOther(w, toolIndex, wIndex)"
  4155. >
  4156. <!-- <div>{{ w.sName }}</div> -->
  4157. <div class="answerContent">
  4158. {{ JSON.parse(w.works)[0].answer }}
  4159. </div>
  4160. <div
  4161. class="answerScore"
  4162. v-if="w.score"
  4163. @click.stop="openScore(w)"
  4164. :class="{
  4165. rightW:
  4166. w.userid == userid || tType == 1 || tType == 4,
  4167. }"
  4168. >
  4169. {{ JSON.parse(w.score).wScore }}分
  4170. </div>
  4171. <div
  4172. class="answerScore"
  4173. @click.stop="openScore(w)"
  4174. v-else-if="courseDetail.userid == userid"
  4175. :class="{
  4176. rightW:
  4177. w.userid == userid || tType == 1 || tType == 4,
  4178. }"
  4179. >
  4180. 评分
  4181. </div>
  4182. <img
  4183. class="deleteImg"
  4184. src="../../assets/deleteworks.png"
  4185. v-if="
  4186. w.userid == userid || tType == 1 || tType == 4
  4187. "
  4188. @click.stop="deleteWorks(w.wid)"
  4189. alt
  4190. />
  4191. </div>
  4192. <div class="comment">
  4193. <div class="worksName">
  4194. <div>{{ w.sName }}</div>
  4195. </div>
  4196. <div class="commentList">
  4197. <div
  4198. class="commentImg"
  4199. @click="
  4200. isLikes(w.wid, userid, 1, null, w.isLikes)
  4201. "
  4202. >
  4203. <img
  4204. :src="w.isLikes == true ? likes : noLikes"
  4205. alt=""
  4206. />
  4207. </div>
  4208. <div>{{ w.likesCount }}</div>
  4209. </div>
  4210. <div class="commentList" style="margin-right: 15px">
  4211. <div
  4212. class="commentImg"
  4213. @click="commentOther(w, toolIndex, wIndex)"
  4214. >
  4215. <img
  4216. src="../../assets/icon/comment/comment.png"
  4217. alt=""
  4218. />
  4219. </div>
  4220. <div>{{ w.commentCount }}</div>
  4221. </div>
  4222. </div>
  4223. </div>
  4224. </div>
  4225. </div>
  4226. <div class="noWorksS">
  4227. <div
  4228. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4229. :key="sIndex"
  4230. class="noWorksName"
  4231. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4232. :class="{ isWork: s.type == '2' }"
  4233. >
  4234. {{ s.student }}
  4235. </div>
  4236. </div>
  4237. </div>
  4238. <div
  4239. v-if="
  4240. tType &&
  4241. ((tType == 2 && sIsOpen == true) ||
  4242. tType == 1 ||
  4243. tType == 4) &&
  4244. tool.tool.indexOf(1) != -1
  4245. "
  4246. class="worksBox"
  4247. >
  4248. <div
  4249. class="zuoyeYulan"
  4250. v-if="
  4251. worksStudent2.length &&
  4252. worksStudent2[toolIndex].length > 0
  4253. "
  4254. >
  4255. <div class="worksTop">
  4256. <div>作业预览</div>
  4257. <div
  4258. class="corOpen"
  4259. @click="contract(toolIndex)"
  4260. v-if="
  4261. worksStudent2[toolIndex].length > 6 &&
  4262. isCloseList[toolIndex].isClose == 0
  4263. "
  4264. >
  4265. 收缩
  4266. </div>
  4267. <div
  4268. class="corOpen"
  4269. @click="contract(toolIndex)"
  4270. v-if="isCloseList[toolIndex].isClose == 1"
  4271. >
  4272. 展开
  4273. </div>
  4274. </div>
  4275. </div>
  4276. <div
  4277. class="worksDetailBox"
  4278. v-if="
  4279. worksStudent2.length &&
  4280. worksStudent2[toolIndex].length > 0
  4281. "
  4282. >
  4283. <div
  4284. class="works"
  4285. style="
  4286. width: 200px;
  4287. height: 140px;
  4288. margin: 10px 10px 10px 0;
  4289. border-radius: 15px;
  4290. box-shadow: 0 0 6px 1px #dfdada;
  4291. "
  4292. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4293. ? worksStudent2[toolIndex]
  4294. : worksStudent2[toolIndex].slice(0, 6)"
  4295. :key="wIndex"
  4296. >
  4297. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4298. <div class="workImg">
  4299. <img :src="w.works" @click="previewImg(w.works)" alt />
  4300. <div
  4301. class="answerScore"
  4302. v-if="w.score"
  4303. @click.stop="openScore(w)"
  4304. :class="{
  4305. rightW:
  4306. w.userid == userid || tType == 1 || tType == 4,
  4307. }"
  4308. >
  4309. {{ JSON.parse(w.score).wScore }}分
  4310. </div>
  4311. <div
  4312. class="answerScore"
  4313. @click.stop="openScore(w)"
  4314. v-else-if="courseDetail.userid == userid"
  4315. :class="{
  4316. rightW:
  4317. w.userid == userid || tType == 1 || tType == 4,
  4318. }"
  4319. >
  4320. 评分
  4321. </div>
  4322. <img
  4323. class="deleteImg"
  4324. src="../../assets/deleteworks.png"
  4325. v-if="w.userid == userid || tType == 1 || tType == 4"
  4326. @click.stop="deleteWorks(w.wid)"
  4327. alt
  4328. />
  4329. </div>
  4330. <div class="comment" style="min-width: 200px">
  4331. <div class="worksName">
  4332. <div>{{ w.sName }}</div>
  4333. </div>
  4334. <div class="commentList">
  4335. <div class="commentList">
  4336. <div
  4337. class="commentImg"
  4338. @click="
  4339. isLikes(w.wid, userid, 1, null, w.isLikes)
  4340. "
  4341. >
  4342. <img
  4343. :src="w.isLikes == true ? likes : noLikes"
  4344. alt=""
  4345. />
  4346. </div>
  4347. <div>{{ w.likesCount }}</div>
  4348. </div>
  4349. <div class="commentList" style="margin-right: 15px">
  4350. <div
  4351. class="commentImg"
  4352. @click="commentOther(w, toolIndex, wIndex)"
  4353. >
  4354. <img
  4355. src="../../assets/icon/comment/comment.png"
  4356. alt=""
  4357. />
  4358. </div>
  4359. <div>{{ w.commentCount }}</div>
  4360. </div>
  4361. </div>
  4362. </div>
  4363. </div>
  4364. </div>
  4365. <div class="noWorksS">
  4366. <div
  4367. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4368. :key="sIndex"
  4369. class="noWorksName"
  4370. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4371. :class="{ isWork: s.type == '2' }"
  4372. >
  4373. {{ s.student }}
  4374. </div>
  4375. </div>
  4376. </div>
  4377. <div
  4378. v-if="
  4379. tType &&
  4380. ((tType == 2 && sIsOpen == true) ||
  4381. tType == 1 ||
  4382. tType == 4) &&
  4383. tool.tool.indexOf(3) != -1
  4384. "
  4385. class="worksBox"
  4386. >
  4387. <div
  4388. class="zuoyeYulan"
  4389. v-if="
  4390. worksStudent2.length &&
  4391. worksStudent2[toolIndex].length > 0
  4392. "
  4393. >
  4394. <div class="worksTop">
  4395. <div>作业预览</div>
  4396. <div
  4397. class="corOpen"
  4398. @click="contract(toolIndex)"
  4399. v-if="
  4400. worksStudent2[toolIndex].length > 6 &&
  4401. isCloseList[toolIndex].isClose == 0
  4402. "
  4403. >
  4404. 收缩
  4405. </div>
  4406. <div
  4407. class="corOpen"
  4408. @click="contract(toolIndex)"
  4409. v-if="isCloseList[toolIndex].isClose == 1"
  4410. >
  4411. 展开
  4412. </div>
  4413. </div>
  4414. </div>
  4415. <div
  4416. class="worksDetailBox"
  4417. v-if="
  4418. worksStudent2.length &&
  4419. worksStudent2[toolIndex].length > 0
  4420. "
  4421. >
  4422. <div
  4423. class="works"
  4424. style="
  4425. width: 200px;
  4426. height: 140px;
  4427. margin: 10px 10px 10px 0;
  4428. border-radius: 15px;
  4429. box-shadow: 0 0 6px 1px #dfdada;
  4430. "
  4431. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4432. ? worksStudent2[toolIndex]
  4433. : worksStudent2[toolIndex].slice(0, 6)"
  4434. :key="wIndex"
  4435. >
  4436. <!-- @click="previewImg(w.works)" -->
  4437. <div class="workImg">
  4438. <img :src="w.works" @click="previewImg(w.works)" alt />
  4439. <div
  4440. class="answerScore"
  4441. v-if="w.score"
  4442. @click.stop="openScore(w)"
  4443. :class="{
  4444. rightW:
  4445. w.userid == userid || tType == 1 || tType == 4,
  4446. }"
  4447. >
  4448. {{ JSON.parse(w.score).wScore }}分
  4449. </div>
  4450. <div
  4451. class="answerScore"
  4452. @click.stop="openScore(w)"
  4453. v-else-if="courseDetail.userid == userid"
  4454. :class="{
  4455. rightW:
  4456. w.userid == userid || tType == 1 || tType == 4,
  4457. }"
  4458. >
  4459. 评分
  4460. </div>
  4461. <img
  4462. class="deleteImg"
  4463. src="../../assets/deleteworks.png"
  4464. v-if="w.userid == userid || tType == 1 || tType == 4"
  4465. @click.stop="deleteWorks(w.wid)"
  4466. alt
  4467. />
  4468. </div>
  4469. <div class="comment" style="min-width: 200px">
  4470. <div class="worksName">
  4471. <div>{{ w.sName }}</div>
  4472. </div>
  4473. <div class="commentList">
  4474. <div class="commentList">
  4475. <div
  4476. class="commentImg"
  4477. @click="
  4478. isLikes(w.wid, userid, 1, null, w.isLikes)
  4479. "
  4480. >
  4481. <img
  4482. :src="w.isLikes == true ? likes : noLikes"
  4483. alt=""
  4484. />
  4485. </div>
  4486. <div>{{ w.likesCount }}</div>
  4487. </div>
  4488. <div class="commentList" style="margin-right: 15px">
  4489. <div
  4490. class="commentImg"
  4491. @click="commentOther(w, toolIndex, wIndex)"
  4492. >
  4493. <img
  4494. src="../../assets/icon/comment/comment.png"
  4495. alt=""
  4496. />
  4497. </div>
  4498. <div>{{ w.commentCount }}</div>
  4499. </div>
  4500. </div>
  4501. </div>
  4502. </div>
  4503. </div>
  4504. <div class="noWorksS">
  4505. <div
  4506. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4507. :key="sIndex"
  4508. class="noWorksName"
  4509. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4510. :class="{ isWork: s.type == '2' }"
  4511. >
  4512. {{ s.student }}
  4513. </div>
  4514. </div>
  4515. </div>
  4516. <div
  4517. v-if="
  4518. tType &&
  4519. ((tType == 2 && sIsOpen == true) ||
  4520. tType == 1 ||
  4521. tType == 4) &&
  4522. tool.tool.indexOf(6) != -1
  4523. "
  4524. class="worksBox"
  4525. >
  4526. <div
  4527. class="zuoyeYulan"
  4528. v-if="
  4529. worksStudent2.length &&
  4530. worksStudent2[toolIndex].length > 0
  4531. "
  4532. >
  4533. <div class="worksTop">
  4534. <div>作业预览</div>
  4535. <div
  4536. class="corOpen"
  4537. @click="contract(toolIndex)"
  4538. v-if="
  4539. worksStudent[toolIndex].length > 6 &&
  4540. isCloseList[toolIndex].isClose == 0
  4541. "
  4542. >
  4543. 收缩
  4544. </div>
  4545. <div
  4546. class="corOpen"
  4547. @click="contract(toolIndex)"
  4548. v-if="isCloseList[toolIndex].isClose == 1"
  4549. >
  4550. 展开
  4551. </div>
  4552. </div>
  4553. </div>
  4554. <div
  4555. class="worksDetailBox"
  4556. v-if="
  4557. worksStudent2.length &&
  4558. worksStudent2[toolIndex].length > 0
  4559. "
  4560. >
  4561. <div
  4562. class="works"
  4563. style="
  4564. width: 200px;
  4565. height: 140px;
  4566. margin: 10px 10px 10px 0;
  4567. border-radius: 15px;
  4568. box-shadow: 0 0 6px 1px #dfdada;
  4569. "
  4570. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4571. ? worksStudent2[toolIndex]
  4572. : worksStudent2[toolIndex].slice(0, 6)"
  4573. :key="wIndex"
  4574. >
  4575. <!-- @click="previewImg(w.works)" -->
  4576. <div class="workImg">
  4577. <img :src="w.works" @click="previewImg(w.works)" alt />
  4578. <div
  4579. class="answerScore"
  4580. v-if="w.score"
  4581. @click.stop="openScore(w)"
  4582. :class="{
  4583. rightW:
  4584. w.userid == userid || tType == 1 || tType == 4,
  4585. }"
  4586. >
  4587. {{ JSON.parse(w.score).wScore }}分
  4588. </div>
  4589. <div
  4590. class="answerScore"
  4591. @click.stop="openScore(w)"
  4592. v-else-if="courseDetail.userid == userid"
  4593. :class="{
  4594. rightW:
  4595. w.userid == userid || tType == 1 || tType == 4,
  4596. }"
  4597. >
  4598. 评分
  4599. </div>
  4600. <img
  4601. class="deleteImg"
  4602. src="../../assets/deleteworks.png"
  4603. v-if="w.userid == userid || tType == 1 || tType == 4"
  4604. @click.stop="deleteWorks(w.wid)"
  4605. alt
  4606. />
  4607. </div>
  4608. <div class="comment" style="min-width: 200px">
  4609. <div class="worksName">
  4610. <div>{{ w.sName }}</div>
  4611. </div>
  4612. <div class="commentList">
  4613. <div class="commentList">
  4614. <div
  4615. class="commentImg"
  4616. @click="
  4617. isLikes(w.wid, userid, 1, null, w.isLikes)
  4618. "
  4619. >
  4620. <img
  4621. :src="w.isLikes == true ? likes : noLikes"
  4622. alt=""
  4623. />
  4624. </div>
  4625. <div>{{ w.likesCount }}</div>
  4626. </div>
  4627. <div class="commentList" style="margin-right: 15px">
  4628. <div
  4629. class="commentImg"
  4630. @click="commentOther(w, toolIndex, wIndex)"
  4631. >
  4632. <img
  4633. src="../../assets/icon/comment/comment.png"
  4634. alt=""
  4635. />
  4636. </div>
  4637. <div>{{ w.commentCount }}</div>
  4638. </div>
  4639. </div>
  4640. </div>
  4641. </div>
  4642. </div>
  4643. <div class="noWorksS">
  4644. <div
  4645. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4646. :key="sIndex"
  4647. class="noWorksName"
  4648. :class="{ isWork: s.type == '2' }"
  4649. >
  4650. {{ s.student }}
  4651. </div>
  4652. </div>
  4653. </div>
  4654. <div
  4655. v-if="
  4656. tType &&
  4657. ((tType == 2 && sIsOpen == true) ||
  4658. tType == 1 ||
  4659. tType == 4) &&
  4660. tool.tool.indexOf(7) != -1
  4661. "
  4662. class="worksBox"
  4663. >
  4664. <div
  4665. class="zuoyeYulan"
  4666. v-if="
  4667. worksStudent2.length &&
  4668. worksStudent2[toolIndex].length > 0
  4669. "
  4670. >
  4671. <div class="worksTop">
  4672. <div>作业预览</div>
  4673. <div
  4674. class="corOpen"
  4675. @click="contract(toolIndex)"
  4676. v-if="
  4677. worksStudent2[toolIndex].length > 6 &&
  4678. isCloseList[toolIndex].isClose == 0
  4679. "
  4680. >
  4681. 收缩
  4682. </div>
  4683. <div
  4684. class="corOpen"
  4685. @click="contract(toolIndex)"
  4686. v-if="isCloseList[toolIndex].isClose == 1"
  4687. >
  4688. 展开
  4689. </div>
  4690. </div>
  4691. </div>
  4692. <div
  4693. class="worksDetailBox"
  4694. v-if="
  4695. worksStudent2.length &&
  4696. worksStudent2[toolIndex].length > 0
  4697. "
  4698. >
  4699. <div
  4700. class="works"
  4701. style="
  4702. width: 200px;
  4703. height: 140px;
  4704. margin: 10px 10px 10px 0;
  4705. border-radius: 15px;
  4706. box-shadow: 0 0 6px 1px #dfdada;
  4707. "
  4708. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4709. ? worksStudent2[toolIndex]
  4710. : worksStudent2[toolIndex].slice(0, 6)"
  4711. :key="wIndex"
  4712. >
  4713. <!-- @click="previewImg(w.works)" -->
  4714. <div class="workImg">
  4715. <img :src="w.works" @click="previewImg(w.works)" alt />
  4716. <div
  4717. class="answerScore"
  4718. v-if="w.score"
  4719. @click.stop="openScore(w)"
  4720. :class="{
  4721. rightW:
  4722. w.userid == userid || tType == 1 || tType == 4,
  4723. }"
  4724. >
  4725. {{ JSON.parse(w.score).wScore }}分
  4726. </div>
  4727. <div
  4728. class="answerScore"
  4729. @click.stop="openScore(w)"
  4730. v-else-if="courseDetail.userid == userid"
  4731. :class="{
  4732. rightW:
  4733. w.userid == userid || tType == 1 || tType == 4,
  4734. }"
  4735. >
  4736. 评分
  4737. </div>
  4738. <img
  4739. class="deleteImg"
  4740. src="../../assets/deleteworks.png"
  4741. v-if="w.userid == userid || tType == 1 || tType == 4"
  4742. @click.stop="deleteWorks(w.wid)"
  4743. alt
  4744. />
  4745. </div>
  4746. <div class="comment" style="min-width: 200px">
  4747. <div class="worksName">
  4748. <div>{{ w.sName }}</div>
  4749. </div>
  4750. <div class="commentList">
  4751. <div class="commentList">
  4752. <div
  4753. class="commentImg"
  4754. @click="
  4755. isLikes(w.wid, userid, 1, null, w.isLikes)
  4756. "
  4757. >
  4758. <img
  4759. :src="w.isLikes == true ? likes : noLikes"
  4760. alt=""
  4761. />
  4762. </div>
  4763. <div>{{ w.likesCount }}</div>
  4764. </div>
  4765. <div class="commentList" style="margin-right: 15px">
  4766. <div
  4767. class="commentImg"
  4768. @click="commentOther(w, toolIndex, wIndex)"
  4769. >
  4770. <img
  4771. src="../../assets/icon/comment/comment.png"
  4772. alt=""
  4773. />
  4774. </div>
  4775. <div>{{ w.commentCount }}</div>
  4776. </div>
  4777. </div>
  4778. </div>
  4779. </div>
  4780. </div>
  4781. <div class="noWorksS">
  4782. <div
  4783. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4784. :key="sIndex"
  4785. class="noWorksName"
  4786. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  4787. :class="{ isWork: s.type == '2' }"
  4788. >
  4789. {{ s.student }}
  4790. </div>
  4791. </div>
  4792. </div>
  4793. <div
  4794. v-if="
  4795. tType &&
  4796. ((tType == 2 && sIsOpen == true) ||
  4797. tType == 1 ||
  4798. tType == 4) &&
  4799. tool.tool.indexOf(26) != -1
  4800. "
  4801. class="worksBox"
  4802. >
  4803. <div
  4804. class="zuoyeYulan"
  4805. v-if="
  4806. worksStudent2.length &&
  4807. worksStudent2[toolIndex].length > 0
  4808. "
  4809. >
  4810. <div class="worksTop">
  4811. <div>作业预览</div>
  4812. <div
  4813. class="corOpen"
  4814. @click="contract(toolIndex)"
  4815. v-if="
  4816. worksStudent2[toolIndex].length > 6 &&
  4817. isCloseList[toolIndex].isClose == 0
  4818. "
  4819. >
  4820. 收缩
  4821. </div>
  4822. <div
  4823. class="corOpen"
  4824. @click="contract(toolIndex)"
  4825. v-if="isCloseList[toolIndex].isClose == 1"
  4826. >
  4827. 展开
  4828. </div>
  4829. </div>
  4830. </div>
  4831. <div
  4832. class="worksDetailBox"
  4833. v-if="
  4834. worksStudent2.length &&
  4835. worksStudent2[toolIndex].length > 0
  4836. "
  4837. >
  4838. <div
  4839. class="works"
  4840. style="width: 240px; height: 140px; overflow: hidden"
  4841. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4842. ? worksStudent2[toolIndex]
  4843. : worksStudent2[toolIndex].slice(0, 6)"
  4844. :key="wIndex"
  4845. :class="w.type == 1 ? 'isTypeOne' : ''"
  4846. >
  4847. <div class="workImg" v-if="w.type == 0">
  4848. <img :src="w.works" @click="previewImg(w.works)" alt />
  4849. <img
  4850. class="deleteImg"
  4851. src="../../assets/deleteworks.png"
  4852. v-if="w.userid == userid || tType == 1 || tType == 4"
  4853. @click.stop="deleteWorks(w.wid)"
  4854. alt
  4855. />
  4856. </div>
  4857. <div class="workImg" v-if="w.type == 1">
  4858. <img :src="word" @click="openFile(w.works)" alt />
  4859. <img
  4860. class="deleteImg"
  4861. src="../../assets/deleteworks.png"
  4862. v-if="w.userid == userid || tType == 1 || tType == 4"
  4863. @click.stop="deleteWorks(w.wid)"
  4864. alt
  4865. />
  4866. </div>
  4867. <div class="worksName">
  4868. <div>{{ w.sName }}</div>
  4869. </div>
  4870. </div>
  4871. </div>
  4872. <div class="noWorksS">
  4873. <div
  4874. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4875. :key="sIndex"
  4876. class="noWorksName"
  4877. :class="{ isWork: s.type == '2' }"
  4878. >
  4879. {{ s.student }}
  4880. </div>
  4881. </div>
  4882. </div>
  4883. <div
  4884. v-if="
  4885. tType &&
  4886. ((tType == 2 && sIsOpen == true) ||
  4887. tType == 1 ||
  4888. tType == 4) &&
  4889. tool.tool.indexOf(40) != -1
  4890. "
  4891. class="worksBox"
  4892. >
  4893. <div
  4894. class="zuoyeYulan"
  4895. v-if="
  4896. worksStudent2.length &&
  4897. worksStudent2[toolIndex].length > 0
  4898. "
  4899. >
  4900. <div class="worksTop">
  4901. <div>作业预览</div>
  4902. <div
  4903. class="corOpen"
  4904. @click="contract(toolIndex)"
  4905. v-if="
  4906. worksStudent2[toolIndex].length > 6 &&
  4907. isCloseList[toolIndex].isClose == 0
  4908. "
  4909. >
  4910. 收缩
  4911. </div>
  4912. <div
  4913. class="corOpen"
  4914. @click="contract(toolIndex)"
  4915. v-if="isCloseList[toolIndex].isClose == 1"
  4916. >
  4917. 展开
  4918. </div>
  4919. </div>
  4920. </div>
  4921. <div
  4922. class="worksDetailBox"
  4923. v-if="
  4924. worksStudent2.length &&
  4925. worksStudent2[toolIndex].length > 0
  4926. "
  4927. >
  4928. <div
  4929. class="works"
  4930. style="
  4931. width: 200px;
  4932. height: 140px;
  4933. margin: 10px 10px 10px 0;
  4934. border-radius: 15px;
  4935. box-shadow: 0 0 6px 1px #dfdada;
  4936. "
  4937. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4938. ? worksStudent2[toolIndex]
  4939. : worksStudent2[toolIndex].slice(0, 6)"
  4940. :key="wIndex"
  4941. :class="w.type == 1 ? 'isTypeOne' : ''"
  4942. >
  4943. <div class="workImg">
  4944. <img
  4945. src="../../assets/icon/works/noImg.png"
  4946. @click="openPj(w.works, toolIndex)"
  4947. alt
  4948. />
  4949. <img
  4950. class="deleteImg"
  4951. src="../../assets/deleteworks.png"
  4952. v-if="w.userid == userid || tType == 1 || tType == 4"
  4953. @click.stop="deleteWorks(w.wid)"
  4954. alt
  4955. />
  4956. </div>
  4957. <div class="comment" style="min-width: 200px">
  4958. <div class="worksName">
  4959. <div>{{ w.sName }}</div>
  4960. </div>
  4961. <div class="commentList">
  4962. <div class="commentList">
  4963. <div
  4964. class="commentImg"
  4965. @click="
  4966. isLikes(w.wid, userid, 1, null, w.isLikes)
  4967. "
  4968. >
  4969. <img
  4970. :src="w.isLikes == true ? likes : noLikes"
  4971. alt=""
  4972. />
  4973. </div>
  4974. <div>{{ w.likesCount }}</div>
  4975. </div>
  4976. <div class="commentList" style="margin-right: 15px">
  4977. <div
  4978. class="commentImg"
  4979. @click="commentOther(w, toolIndex, wIndex)"
  4980. >
  4981. <img
  4982. src="../../assets/icon/comment/comment.png"
  4983. alt=""
  4984. />
  4985. </div>
  4986. <div>{{ w.commentCount }}</div>
  4987. </div>
  4988. </div>
  4989. </div>
  4990. </div>
  4991. </div>
  4992. <div class="noWorksS">
  4993. <div
  4994. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4995. :key="sIndex"
  4996. class="noWorksName"
  4997. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  4998. :class="{ isWork: s.type == '2' }"
  4999. >
  5000. {{ s.student }}
  5001. </div>
  5002. </div>
  5003. </div>
  5004. <div
  5005. v-if="
  5006. tType &&
  5007. ((tType == 2 && sIsOpen == true) ||
  5008. tType == 1 ||
  5009. tType == 4) &&
  5010. tool.tool.indexOf(41) != -1
  5011. "
  5012. class="worksBox"
  5013. >
  5014. <div class="noWorksS">
  5015. <div
  5016. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5017. :key="sIndex"
  5018. class="noWorksName"
  5019. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5020. :class="{ isWork: s.type == '2' }"
  5021. >
  5022. {{ s.student }}
  5023. </div>
  5024. </div>
  5025. <div
  5026. class="zuoyeYulan"
  5027. v-if="
  5028. worksStudent2.length &&
  5029. worksStudent2[toolIndex].length > 0
  5030. "
  5031. >
  5032. <div class="worksTop">
  5033. <div>作业预览</div>
  5034. <div
  5035. class="corOpen"
  5036. @click="contract(toolIndex)"
  5037. v-if="
  5038. worksStudent2[toolIndex].length > 6 &&
  5039. isCloseList[toolIndex].isClose == 0
  5040. "
  5041. >
  5042. 收缩
  5043. </div>
  5044. <div
  5045. class="corOpen"
  5046. @click="contract(toolIndex)"
  5047. v-if="isCloseList[toolIndex].isClose == 1"
  5048. >
  5049. 展开
  5050. </div>
  5051. </div>
  5052. </div>
  5053. <div
  5054. class="worksDetailBox"
  5055. v-if="
  5056. worksStudent2.length &&
  5057. worksStudent2[toolIndex].length > 0
  5058. "
  5059. >
  5060. <div
  5061. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5062. ? worksStudent2[toolIndex]
  5063. : worksStudent2[toolIndex].slice(0, 6)"
  5064. :key="wIndex"
  5065. class="isWorksName2"
  5066. @click="openXz(w, toolIndex)"
  5067. >
  5068. {{ w.sName }}
  5069. <img
  5070. class="deleteImg deleteImg2"
  5071. src="../../assets/deleteworks.png"
  5072. v-if="w.userid == userid || tType == 1 || tType == 4"
  5073. @click.stop="deleteWorks(w.wid)"
  5074. alt
  5075. />
  5076. </div>
  5077. </div>
  5078. </div>
  5079. <div
  5080. v-if="
  5081. tType &&
  5082. ((tType == 2 && sIsOpen == true) ||
  5083. tType == 1 ||
  5084. tType == 4) &&
  5085. tool.tool.indexOf(47) != -1
  5086. "
  5087. class="worksBox"
  5088. >
  5089. <div class="noWorksS">
  5090. <div
  5091. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5092. :key="sIndex"
  5093. class="noWorksName"
  5094. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5095. :class="{ isWork: s.type == '2' }"
  5096. >
  5097. {{ s.student }}
  5098. </div>
  5099. </div>
  5100. <div
  5101. class="zuoyeYulan"
  5102. v-if="
  5103. worksStudent2.length &&
  5104. worksStudent2[toolIndex].length > 0
  5105. "
  5106. >
  5107. <div class="worksTop">
  5108. <div>作业预览</div>
  5109. <div
  5110. class="corOpen"
  5111. @click="contract(toolIndex)"
  5112. v-if="
  5113. worksStudent2[toolIndex].length > 6 &&
  5114. isCloseList[toolIndex].isClose == 0
  5115. "
  5116. >
  5117. 收缩
  5118. </div>
  5119. <div
  5120. class="corOpen"
  5121. @click="contract(toolIndex)"
  5122. v-if="isCloseList[toolIndex].isClose == 1"
  5123. >
  5124. 展开
  5125. </div>
  5126. </div>
  5127. </div>
  5128. <div
  5129. class="worksDetailBox"
  5130. v-if="
  5131. worksStudent2.length &&
  5132. worksStudent2[toolIndex].length > 0
  5133. "
  5134. >
  5135. <!-- @click="openXz(w, toolIndex)" -->
  5136. <div
  5137. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5138. ? worksStudent2[toolIndex]
  5139. : worksStudent2[toolIndex].slice(0, 6)"
  5140. :key="wIndex"
  5141. class="isWorksName2"
  5142. @click="openSen(w, toolIndex)"
  5143. >
  5144. {{ w.sName }}
  5145. <img
  5146. class="deleteImg deleteImg2"
  5147. src="../../assets/deleteworks.png"
  5148. v-if="w.userid == userid || tType == 1 || tType == 4"
  5149. @click.stop="deleteWorks(w.wid)"
  5150. alt
  5151. />
  5152. </div>
  5153. </div>
  5154. </div>
  5155. <div
  5156. v-if="
  5157. tType &&
  5158. ((tType == 2 && sIsOpen == true) ||
  5159. tType == 1 ||
  5160. tType == 4) &&
  5161. tool.tool.indexOf(48) != -1
  5162. "
  5163. class="worksBox"
  5164. >
  5165. <div
  5166. class="zuoyeYulan"
  5167. v-if="
  5168. worksStudent2.length &&
  5169. worksStudent2[toolIndex].length > 0
  5170. "
  5171. >
  5172. <div class="worksTop">
  5173. <div>作业预览</div>
  5174. <div
  5175. class="corOpen"
  5176. @click="contract(toolIndex)"
  5177. v-if="
  5178. worksStudent2[toolIndex].length > 6 &&
  5179. isCloseList[toolIndex].isClose == 0
  5180. "
  5181. >
  5182. 收缩
  5183. </div>
  5184. <div
  5185. class="corOpen"
  5186. @click="contract(toolIndex)"
  5187. v-if="isCloseList[toolIndex].isClose == 1"
  5188. >
  5189. 展开
  5190. </div>
  5191. </div>
  5192. </div>
  5193. <div
  5194. class="worksDetailBox"
  5195. v-if="
  5196. worksStudent2.length &&
  5197. worksStudent2[toolIndex].length > 0
  5198. "
  5199. >
  5200. <div
  5201. class="works"
  5202. style="
  5203. width: 200px;
  5204. height: 140px;
  5205. margin: 10px 10px 10px 0;
  5206. border-radius: 15px;
  5207. box-shadow: 0 0 6px 1px #dfdada;
  5208. "
  5209. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5210. ? worksStudent2[toolIndex]
  5211. : worksStudent2[toolIndex].slice(0, 6)"
  5212. :key="wIndex"
  5213. :class="w.type == 1 ? 'isTypeOne' : ''"
  5214. >
  5215. <div class="workImg">
  5216. <img :src="word" @click="openTable(w)" alt />
  5217. <!-- @click="openFile(w.works)" -->
  5218. <div
  5219. class="answerScore"
  5220. v-if="w.score"
  5221. @click.stop="openScore(w)"
  5222. :class="{
  5223. rightW:
  5224. w.userid == userid ||
  5225. tType == 1 ||
  5226. tType == 4 ||
  5227. w.ateacher == userid,
  5228. }"
  5229. >
  5230. {{ JSON.parse(w.score).wScore }}分
  5231. </div>
  5232. <div
  5233. class="answerScore"
  5234. @click.stop="openScore(w)"
  5235. v-else-if="courseDetail.userid == userid"
  5236. :class="{
  5237. rightW:
  5238. w.userid == userid ||
  5239. tType == 1 ||
  5240. tType == 4 ||
  5241. w.ateacher == userid,
  5242. }"
  5243. >
  5244. 评分
  5245. </div>
  5246. <img
  5247. class="deleteImg"
  5248. src="../../assets/deleteworks.png"
  5249. v-if="w.userid == userid || tType == 1 || tType == 4"
  5250. @click.stop="deleteWorks(w.wid)"
  5251. alt
  5252. />
  5253. </div>
  5254. <div class="comment" style="min-width: 200px">
  5255. <div class="worksName">
  5256. <div>{{ w.sName }}</div>
  5257. </div>
  5258. <div class="commentList">
  5259. <div class="commentList">
  5260. <div
  5261. class="commentImg"
  5262. @click="
  5263. isLikes(w.wid, userid, 1, null, w.isLikes)
  5264. "
  5265. >
  5266. <img
  5267. :src="w.isLikes == true ? likes : noLikes"
  5268. alt=""
  5269. />
  5270. </div>
  5271. <div>{{ w.likesCount }}</div>
  5272. </div>
  5273. <div class="commentList" style="margin-right: 15px">
  5274. <div
  5275. class="commentImg"
  5276. @click="commentOther(w, toolIndex, wIndex)"
  5277. >
  5278. <img
  5279. src="../../assets/icon/comment/comment.png"
  5280. alt=""
  5281. />
  5282. </div>
  5283. <div>{{ w.commentCount }}</div>
  5284. </div>
  5285. </div>
  5286. </div>
  5287. </div>
  5288. </div>
  5289. <div class="noWorksS">
  5290. <div
  5291. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5292. :key="sIndex"
  5293. class="noWorksName"
  5294. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5295. :class="{ isWork: s.type == '2' }"
  5296. >
  5297. {{ s.student }}
  5298. </div>
  5299. </div>
  5300. </div>
  5301. <div
  5302. v-if="
  5303. tType &&
  5304. ((tType == 2 && sIsOpen == true) ||
  5305. tType == 1 ||
  5306. tType == 4) &&
  5307. tool.tool.indexOf(52) != -1
  5308. "
  5309. class="worksBox"
  5310. >
  5311. <div
  5312. class="zuoyeYulan"
  5313. v-if="
  5314. worksStudent2.length &&
  5315. worksStudent2[toolIndex].length > 0
  5316. "
  5317. >
  5318. <div class="worksTop">
  5319. <div>作业预览</div>
  5320. <div
  5321. class="corOpen"
  5322. @click="contract(toolIndex)"
  5323. v-if="
  5324. worksStudent2[toolIndex].length > 6 &&
  5325. isCloseList[toolIndex].isClose == 0
  5326. "
  5327. >
  5328. 收缩
  5329. </div>
  5330. <div
  5331. class="corOpen"
  5332. @click="contract(toolIndex)"
  5333. v-if="isCloseList[toolIndex].isClose == 1"
  5334. >
  5335. 展开
  5336. </div>
  5337. </div>
  5338. </div>
  5339. <div
  5340. class="worksDetailBox"
  5341. v-if="
  5342. worksStudent2.length &&
  5343. worksStudent2[toolIndex].length > 0
  5344. "
  5345. >
  5346. <div
  5347. class="works"
  5348. style="
  5349. width: 200px;
  5350. height: 140px;
  5351. margin: 10px 10px 10px 0;
  5352. border-radius: 15px;
  5353. box-shadow: 0 0 6px 1px #dfdada;
  5354. "
  5355. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5356. ? worksStudent2[toolIndex]
  5357. : worksStudent2[toolIndex].slice(0, 6)"
  5358. :key="wIndex"
  5359. :class="w.type == 1 ? 'isTypeOne' : ''"
  5360. >
  5361. <div class="workImg">
  5362. <img :src="word" @click="openWord(w)" alt />
  5363. <!-- @click="openFile(w.works)" -->
  5364. <div
  5365. class="answerScore"
  5366. v-if="w.score"
  5367. @click.stop="openScore(w)"
  5368. :class="{
  5369. rightW:
  5370. w.userid == userid ||
  5371. tType == 1 ||
  5372. tType == 4 ||
  5373. w.ateacher == userid,
  5374. }"
  5375. >
  5376. {{ JSON.parse(w.score).wScore }}分
  5377. </div>
  5378. <div
  5379. class="answerScore"
  5380. @click.stop="openScore(w)"
  5381. v-else-if="courseDetail.userid == userid"
  5382. :class="{
  5383. rightW:
  5384. w.userid == userid ||
  5385. tType == 1 ||
  5386. tType == 4 ||
  5387. w.ateacher == userid,
  5388. }"
  5389. >
  5390. 评分
  5391. </div>
  5392. <img
  5393. class="deleteImg"
  5394. src="../../assets/deleteworks.png"
  5395. v-if="w.userid == userid || tType == 1 || tType == 4"
  5396. @click.stop="deleteWorks(w.wid)"
  5397. alt
  5398. />
  5399. </div>
  5400. <div class="comment" style="min-width: 200px">
  5401. <div class="worksName">
  5402. <div>{{ w.sName }}</div>
  5403. </div>
  5404. <div class="commentList">
  5405. <div class="commentList">
  5406. <div
  5407. class="commentImg"
  5408. @click="
  5409. isLikes(w.wid, userid, 1, null, w.isLikes)
  5410. "
  5411. >
  5412. <img
  5413. :src="w.isLikes == true ? likes : noLikes"
  5414. alt=""
  5415. />
  5416. </div>
  5417. <div>{{ w.likesCount }}</div>
  5418. </div>
  5419. <div class="commentList" style="margin-right: 15px">
  5420. <div
  5421. class="commentImg"
  5422. @click="commentOther(w, toolIndex, wIndex)"
  5423. >
  5424. <img
  5425. src="../../assets/icon/comment/comment.png"
  5426. alt=""
  5427. />
  5428. </div>
  5429. <div>{{ w.commentCount }}</div>
  5430. </div>
  5431. </div>
  5432. </div>
  5433. </div>
  5434. </div>
  5435. <div class="noWorksS">
  5436. <div
  5437. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5438. :key="sIndex"
  5439. class="noWorksName"
  5440. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5441. :class="{ isWork: s.type == '2' }"
  5442. >
  5443. {{ s.student }}
  5444. </div>
  5445. </div>
  5446. </div>
  5447. </div>
  5448. </div>
  5449. <div
  5450. class="vedioBox"
  5451. v-if="
  5452. arrayToArray(tool.tool, isWorkTool).length &&
  5453. (noWorksS[toolIndex].length || worksStudent[toolIndex].length)
  5454. "
  5455. >
  5456. <!-- <div
  5457. class="queTop"
  5458. style="
  5459. font-size: 25px;
  5460. padding: 15px 0 15px 37px;
  5461. font-weight: bold;
  5462. "
  5463. >
  5464. 工作区
  5465. </div> -->
  5466. <div class="tool_work_box">
  5467. <div
  5468. v-if="
  5469. tType &&
  5470. ((tType == 2 && sIsOpen == true) ||
  5471. tType == 1 ||
  5472. tType == 4) &&
  5473. tool.tool.indexOf(16) != -1
  5474. "
  5475. class="worksBox"
  5476. >
  5477. <div
  5478. class="zuoyeYulan"
  5479. v-if="
  5480. worksStudent.length && worksStudent[toolIndex].length > 0
  5481. "
  5482. >
  5483. <div class="worksTop">
  5484. <div>作业预览</div>
  5485. <div
  5486. class="corOpen"
  5487. @click="contract(toolIndex)"
  5488. v-if="
  5489. worksStudent[toolIndex].length > 6 &&
  5490. isCloseList[toolIndex].isClose == 0
  5491. "
  5492. >
  5493. 收缩
  5494. </div>
  5495. <div
  5496. class="corOpen"
  5497. @click="contract(toolIndex)"
  5498. v-if="isCloseList[toolIndex].isClose == 1"
  5499. >
  5500. 展开
  5501. </div>
  5502. </div>
  5503. </div>
  5504. <div
  5505. class="worksDetailBox"
  5506. v-if="
  5507. worksStudent.length && worksStudent[toolIndex].length > 0
  5508. "
  5509. >
  5510. <div
  5511. class="works"
  5512. style="
  5513. width: 200px;
  5514. height: 140px;
  5515. margin: 10px 10px 10px 0;
  5516. border-radius: 15px;
  5517. box-shadow: 0 0 6px 1px #dfdada;
  5518. "
  5519. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5520. ? worksStudent[toolIndex]
  5521. : worksStudent[toolIndex].slice(0, 6)"
  5522. :key="wIndex"
  5523. :class="w.type == 1 ? 'isTypeOne' : ''"
  5524. >
  5525. <div class="workImg" v-if="w.type == 0">
  5526. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5527. <img :src="w.works" @click="previewImg(w.works)" alt />
  5528. <div
  5529. class="answerScore"
  5530. v-if="w.score"
  5531. @click.stop="openScore(w)"
  5532. :class="{
  5533. rightW:
  5534. w.userid == userid ||
  5535. tType == 1 ||
  5536. tType == 4 ||
  5537. w.ateacher == userid,
  5538. }"
  5539. >
  5540. {{ JSON.parse(w.score).wScore }}分
  5541. </div>
  5542. <div
  5543. class="answerScore"
  5544. @click.stop="openScore(w)"
  5545. v-else-if="courseDetail.userid == userid"
  5546. :class="{
  5547. rightW:
  5548. w.userid == userid ||
  5549. tType == 1 ||
  5550. tType == 4 ||
  5551. w.ateacher == userid,
  5552. }"
  5553. >
  5554. 评分
  5555. </div>
  5556. <img
  5557. class="deleteImg"
  5558. src="../../assets/deleteworks.png"
  5559. v-if="w.userid == userid || tType == 1 || tType == 4"
  5560. @click.stop="deleteWorks(w.wid)"
  5561. alt
  5562. />
  5563. </div>
  5564. <div class="workImg" v-if="w.type == 1">
  5565. <img :src="word" @click="openFile(w.works)" alt />
  5566. <!-- @click="openFile(w.works)" -->
  5567. <div
  5568. class="answerScore"
  5569. v-if="w.score"
  5570. @click.stop="openScore(w)"
  5571. :class="{
  5572. rightW:
  5573. w.userid == userid ||
  5574. tType == 1 ||
  5575. tType == 4 ||
  5576. w.ateacher == userid,
  5577. }"
  5578. >
  5579. {{ JSON.parse(w.score).wScore }}分
  5580. </div>
  5581. <div
  5582. class="answerScore"
  5583. @click.stop="openScore(w)"
  5584. v-else-if="courseDetail.userid == userid"
  5585. :class="{
  5586. rightW:
  5587. w.userid == userid ||
  5588. tType == 1 ||
  5589. tType == 4 ||
  5590. w.ateacher == userid,
  5591. }"
  5592. >
  5593. 评分
  5594. </div>
  5595. <img
  5596. class="deleteImg"
  5597. src="../../assets/deleteworks.png"
  5598. v-if="w.userid == userid || tType == 1 || tType == 4"
  5599. @click.stop="deleteWorks(w.wid)"
  5600. alt
  5601. />
  5602. </div>
  5603. <div class="workImg" v-if="w.type == 3">
  5604. <img
  5605. style="cursor: pointer"
  5606. :src="video"
  5607. @click="openVideo(w)"
  5608. alt
  5609. />
  5610. <!-- @click="openVideo(w.works)" -->
  5611. <div
  5612. class="answerScore"
  5613. v-if="w.score"
  5614. @click.stop="openScore(w)"
  5615. :class="{
  5616. rightW:
  5617. w.userid == userid ||
  5618. tType == 1 ||
  5619. tType == 4 ||
  5620. w.ateacher == userid,
  5621. }"
  5622. >
  5623. {{ JSON.parse(w.score).wScore }}分
  5624. </div>
  5625. <div
  5626. class="answerScore"
  5627. @click.stop="openScore(w)"
  5628. v-else-if="courseDetail.userid == userid"
  5629. :class="{
  5630. rightW:
  5631. w.userid == userid ||
  5632. tType == 1 ||
  5633. tType == 4 ||
  5634. w.ateacher == userid,
  5635. }"
  5636. >
  5637. 评分
  5638. </div>
  5639. <img
  5640. class="deleteImg"
  5641. src="../../assets/deleteworks.png"
  5642. v-if="w.userid == userid || tType == 1 || tType == 4"
  5643. @click.stop="deleteWorks(w.wid)"
  5644. alt
  5645. />
  5646. </div>
  5647. <div class="workImg" v-if="w.type == 12">
  5648. <img
  5649. style="cursor: pointer"
  5650. :src="word2"
  5651. @click="downloadFile(w.works)"
  5652. alt
  5653. />
  5654. <!-- @click="openVideo(w.works)" -->
  5655. <div
  5656. class="answerScore"
  5657. v-if="w.score"
  5658. @click.stop="openScore(w)"
  5659. :class="{
  5660. rightW:
  5661. w.userid == userid ||
  5662. tType == 1 ||
  5663. tType == 4 ||
  5664. w.ateacher == userid,
  5665. }"
  5666. >
  5667. {{ JSON.parse(w.score).wScore }}分
  5668. </div>
  5669. <div
  5670. class="answerScore"
  5671. @click.stop="openScore(w)"
  5672. v-else-if="courseDetail.userid == userid"
  5673. :class="{
  5674. rightW:
  5675. w.userid == userid ||
  5676. tType == 1 ||
  5677. tType == 4 ||
  5678. w.ateacher == userid,
  5679. }"
  5680. >
  5681. 评分
  5682. </div>
  5683. <img
  5684. class="deleteImg"
  5685. src="../../assets/deleteworks.png"
  5686. v-if="w.userid == userid || tType == 1 || tType == 4"
  5687. @click.stop="deleteWorks(w.wid)"
  5688. alt
  5689. />
  5690. </div>
  5691. <div class="comment" style="min-width: 200px">
  5692. <div class="worksName">
  5693. <div>{{ w.sName }}</div>
  5694. </div>
  5695. <div class="commentList">
  5696. <div class="commentList">
  5697. <div
  5698. class="commentImg"
  5699. @click="
  5700. isLikes(w.wid, userid, 1, null, w.isLikes)
  5701. "
  5702. >
  5703. <img
  5704. :src="w.isLikes == true ? likes : noLikes"
  5705. alt=""
  5706. />
  5707. </div>
  5708. <div>{{ w.likesCount }}</div>
  5709. </div>
  5710. <div class="commentList" style="margin-right: 15px">
  5711. <div
  5712. class="commentImg"
  5713. @click="commentOther(w, toolIndex, wIndex)"
  5714. >
  5715. <img
  5716. src="../../assets/icon/comment/comment.png"
  5717. alt=""
  5718. />
  5719. </div>
  5720. <div>{{ w.commentCount }}</div>
  5721. </div>
  5722. </div>
  5723. </div>
  5724. </div>
  5725. </div>
  5726. <div class="noWorksS">
  5727. <div
  5728. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5729. :key="sIndex"
  5730. class="noWorksName"
  5731. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  5732. :class="{ isWork: s.type == '2' }"
  5733. >
  5734. {{ s.student }}
  5735. </div>
  5736. </div>
  5737. </div>
  5738. <div
  5739. v-if="
  5740. tType &&
  5741. ((tType == 2 && sIsOpen == true) ||
  5742. tType == 1 ||
  5743. tType == 4) &&
  5744. tool.tool.indexOf(32) != -1
  5745. "
  5746. class="worksBox"
  5747. >
  5748. <div
  5749. class="zuoyeYulan"
  5750. v-if="
  5751. worksStudent.length && worksStudent[toolIndex].length > 0
  5752. "
  5753. >
  5754. <div class="worksTop">
  5755. <div>作业预览</div>
  5756. <div
  5757. class="corOpen"
  5758. @click="contract(toolIndex)"
  5759. v-if="
  5760. worksStudent[toolIndex].length > 6 &&
  5761. isCloseList[toolIndex].isClose == 0
  5762. "
  5763. >
  5764. 收缩
  5765. </div>
  5766. <div
  5767. class="corOpen"
  5768. @click="contract(toolIndex)"
  5769. v-if="isCloseList[toolIndex].isClose == 1"
  5770. >
  5771. 展开
  5772. </div>
  5773. </div>
  5774. </div>
  5775. <div
  5776. class="worksDetailBox"
  5777. v-if="
  5778. worksStudent.length && worksStudent[toolIndex].length > 0
  5779. "
  5780. >
  5781. <div
  5782. class="works"
  5783. style="
  5784. width: 200px;
  5785. height: 140px;
  5786. margin: 10px 10px 10px 0;
  5787. border-radius: 15px;
  5788. box-shadow: 0 0 6px 1px #dfdada;
  5789. "
  5790. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5791. ? worksStudent[toolIndex]
  5792. : worksStudent[toolIndex].slice(0, 6)"
  5793. :key="wIndex"
  5794. :class="w.type == 1 ? 'isTypeOne' : ''"
  5795. >
  5796. <div class="workImg">
  5797. <img :src="word2" @click="downloadFile(w.works)" alt />
  5798. <div
  5799. class="answerScore"
  5800. v-if="w.score"
  5801. @click.stop="openScore(w)"
  5802. :class="{
  5803. rightW:
  5804. w.userid == userid ||
  5805. tType == 1 ||
  5806. tType == 4 ||
  5807. w.ateacher == userid,
  5808. }"
  5809. >
  5810. {{ JSON.parse(w.score).wScore }}分
  5811. </div>
  5812. <div
  5813. class="answerScore"
  5814. @click.stop="openScore(w)"
  5815. v-else-if="courseDetail.userid == userid"
  5816. :class="{
  5817. rightW:
  5818. w.userid == userid ||
  5819. tType == 1 ||
  5820. tType == 4 ||
  5821. w.ateacher == userid,
  5822. }"
  5823. >
  5824. 评分
  5825. </div>
  5826. <img
  5827. class="deleteImg"
  5828. src="../../assets/deleteworks.png"
  5829. v-if="w.userid == userid || tType == 1 || tType == 4"
  5830. @click.stop="deleteWorks(w.wid)"
  5831. alt
  5832. />
  5833. </div>
  5834. <div class="comment" style="min-width: 200px">
  5835. <div class="worksName">
  5836. <div>{{ w.sName }}</div>
  5837. </div>
  5838. <div class="commentList">
  5839. <div class="commentList">
  5840. <div
  5841. class="commentImg"
  5842. @click="
  5843. isLikes(w.wid, userid, 1, null, w.isLikes)
  5844. "
  5845. >
  5846. <img
  5847. :src="w.isLikes == true ? likes : noLikes"
  5848. alt=""
  5849. />
  5850. </div>
  5851. <div>{{ w.likesCount }}</div>
  5852. </div>
  5853. <div class="commentList" style="margin-right: 15px">
  5854. <div
  5855. class="commentImg"
  5856. @click="commentOther(w, toolIndex, wIndex)"
  5857. >
  5858. <img
  5859. src="../../assets/icon/comment/comment.png"
  5860. alt=""
  5861. />
  5862. </div>
  5863. <div>{{ w.commentCount }}</div>
  5864. </div>
  5865. </div>
  5866. </div>
  5867. </div>
  5868. </div>
  5869. <div class="noWorksS">
  5870. <div
  5871. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5872. :key="sIndex"
  5873. class="noWorksName"
  5874. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  5875. :class="{ isWork: s.type == '2' }"
  5876. >
  5877. {{ s.student }}
  5878. </div>
  5879. </div>
  5880. </div>
  5881. <div
  5882. v-if="
  5883. tType &&
  5884. ((tType == 2 && sIsOpen == true) ||
  5885. tType == 1 ||
  5886. tType == 4) &&
  5887. tool.tool.indexOf(57) != -1
  5888. "
  5889. class="worksBox"
  5890. >
  5891. <div
  5892. class="zuoyeYulan"
  5893. v-if="
  5894. worksStudent.length && worksStudent[toolIndex].length > 0
  5895. "
  5896. >
  5897. <div class="worksTop">
  5898. <div>作业预览</div>
  5899. <div
  5900. class="corOpen"
  5901. @click="contract(toolIndex)"
  5902. v-if="
  5903. worksStudent[toolIndex].length > 6 &&
  5904. isCloseList[toolIndex].isClose == 0
  5905. "
  5906. >
  5907. 收缩
  5908. </div>
  5909. <div
  5910. class="corOpen"
  5911. @click="contract(toolIndex)"
  5912. v-if="isCloseList[toolIndex].isClose == 1"
  5913. >
  5914. 展开
  5915. </div>
  5916. </div>
  5917. </div>
  5918. <div
  5919. class="worksDetailBox"
  5920. v-if="
  5921. worksStudent.length && worksStudent[toolIndex].length > 0
  5922. "
  5923. >
  5924. <div
  5925. class="works"
  5926. style="
  5927. width: 200px;
  5928. height: 140px;
  5929. margin: 10px 10px 10px 0;
  5930. border-radius: 15px;
  5931. box-shadow: 0 0 6px 1px #dfdada;
  5932. "
  5933. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5934. ? worksStudent[toolIndex]
  5935. : worksStudent[toolIndex].slice(0, 6)"
  5936. :key="wIndex"
  5937. :class="w.type == 1 ? 'isTypeOne' : ''"
  5938. >
  5939. <div class="workImg">
  5940. <img
  5941. :src="word2"
  5942. @click="downloadFile(w.works)"
  5943. v-if="w.type == 12"
  5944. alt
  5945. />
  5946. <img
  5947. :src="word2"
  5948. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  5949. v-else-if="w.type == 15"
  5950. alt
  5951. />
  5952. <div
  5953. class="answerScore"
  5954. v-if="w.score"
  5955. @click.stop="openScore(w)"
  5956. :class="{
  5957. rightW:
  5958. w.userid == userid ||
  5959. tType == 1 ||
  5960. tType == 4 ||
  5961. w.ateacher == userid,
  5962. }"
  5963. >
  5964. {{ JSON.parse(w.score).wScore }}分
  5965. </div>
  5966. <div
  5967. class="answerScore"
  5968. @click.stop="openScore(w)"
  5969. v-else-if="courseDetail.userid == userid"
  5970. :class="{
  5971. rightW:
  5972. w.userid == userid ||
  5973. tType == 1 ||
  5974. tType == 4 ||
  5975. w.ateacher == userid,
  5976. }"
  5977. >
  5978. 评分
  5979. </div>
  5980. <img
  5981. class="deleteImg"
  5982. src="../../assets/deleteworks.png"
  5983. v-if="w.userid == userid || tType == 1 || tType == 4"
  5984. @click.stop="deleteWorks(w.wid)"
  5985. alt
  5986. />
  5987. </div>
  5988. <div class="comment" style="min-width: 200px">
  5989. <div class="worksName">
  5990. <div>{{ w.sName }}</div>
  5991. </div>
  5992. <div class="commentList">
  5993. <div class="commentList">
  5994. <div
  5995. class="commentImg"
  5996. @click="
  5997. isLikes(w.wid, userid, 1, null, w.isLikes)
  5998. "
  5999. >
  6000. <img
  6001. :src="w.isLikes == true ? likes : noLikes"
  6002. alt=""
  6003. />
  6004. </div>
  6005. <div>{{ w.likesCount }}</div>
  6006. </div>
  6007. <div class="commentList" style="margin-right: 15px">
  6008. <div
  6009. class="commentImg"
  6010. @click="commentOther(w, toolIndex, wIndex)"
  6011. >
  6012. <img
  6013. src="../../assets/icon/comment/comment.png"
  6014. alt=""
  6015. />
  6016. </div>
  6017. <div>{{ w.commentCount }}</div>
  6018. </div>
  6019. </div>
  6020. </div>
  6021. </div>
  6022. </div>
  6023. <div class="noWorksS">
  6024. <div
  6025. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6026. :key="sIndex"
  6027. class="noWorksName"
  6028. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  6029. :class="{ isWork: s.type == '2' }"
  6030. >
  6031. {{ s.student }}
  6032. </div>
  6033. </div>
  6034. </div>
  6035. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  6036. <div
  6037. class="zuoyeYulan"
  6038. v-if="
  6039. worksStudent.length && worksStudent[toolIndex].length > 0
  6040. "
  6041. >
  6042. <span>作业预览</span>
  6043. <div
  6044. class="corOpen"
  6045. @click="contract(toolIndex)"
  6046. v-if="
  6047. worksStudent[toolIndex].length > 6 &&
  6048. isCloseList[toolIndex].isClose == 0
  6049. "
  6050. >
  6051. 收缩
  6052. </div>
  6053. <div
  6054. class="corOpen"
  6055. @click="contract(toolIndex)"
  6056. v-if="isCloseList[toolIndex].isClose == 1"
  6057. >
  6058. 展开
  6059. </div>
  6060. </div>
  6061. <div
  6062. class="worksDetailBox"
  6063. v-if="
  6064. worksStudent.length && worksStudent[toolIndex].length > 0
  6065. "
  6066. >
  6067. <div
  6068. class="works"
  6069. style="
  6070. width: 200px;
  6071. height: 140px;
  6072. margin: 10px 10px 10px 0;
  6073. border-radius: 15px;
  6074. box-shadow: 0 0 6px 1px #dfdada;
  6075. "
  6076. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6077. ? worksStudent[toolIndex]
  6078. : worksStudent[toolIndex].slice(0, 6)"
  6079. :key="wIndex"
  6080. :class="w.type == 1 ? 'isTypeOne' : ''"
  6081. >
  6082. <div class="workImg" v-if="w.type == 0">
  6083. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6084. <img :src="w.works" @click="previewImg(w.works)" alt />
  6085. <div
  6086. class="answerScore"
  6087. v-if="w.score"
  6088. @click.stop="openScore(w)"
  6089. :class="{
  6090. rightW:
  6091. w.userid == userid ||
  6092. tType == 1 ||
  6093. tType == 4 ||
  6094. w.ateacher == userid,
  6095. }"
  6096. >
  6097. {{ JSON.parse(w.score).wScore }}分
  6098. </div>
  6099. <div
  6100. class="answerScore"
  6101. @click.stop="openScore(w)"
  6102. v-else-if="courseDetail.userid == userid"
  6103. :class="{
  6104. rightW:
  6105. w.userid == userid ||
  6106. tType == 1 ||
  6107. tType == 4 ||
  6108. w.ateacher == userid,
  6109. }"
  6110. >
  6111. 评分
  6112. </div>
  6113. <img
  6114. class="deleteImg"
  6115. src="../../assets/deleteworks.png"
  6116. v-if="w.userid == userid || tType == 1 || tType == 4"
  6117. @click.stop="deleteWorks(w.wid)"
  6118. alt
  6119. />
  6120. </div>
  6121. <div
  6122. class="workImg"
  6123. style="cursor: pointer"
  6124. v-if="w.type == 1"
  6125. >
  6126. <img :src="word" @click="openFile(w.works)" alt />
  6127. <!-- @click="openFile(w.works)" -->
  6128. <div
  6129. class="answerScore"
  6130. v-if="w.score"
  6131. @click.stop="openScore(w)"
  6132. :class="{
  6133. rightW:
  6134. w.userid == userid ||
  6135. tType == 1 ||
  6136. tType == 4 ||
  6137. w.ateacher == userid,
  6138. }"
  6139. >
  6140. {{ JSON.parse(w.score).wScore }}分
  6141. </div>
  6142. <div
  6143. class="answerScore"
  6144. @click.stop="openScore(w)"
  6145. v-else-if="courseDetail.userid == userid"
  6146. :class="{
  6147. rightW:
  6148. w.userid == userid ||
  6149. tType == 1 ||
  6150. tType == 4 ||
  6151. w.ateacher == userid,
  6152. }"
  6153. >
  6154. 评分
  6155. </div>
  6156. <img
  6157. class="deleteImg"
  6158. src="../../assets/deleteworks.png"
  6159. v-if="w.userid == userid || tType == 1 || tType == 4"
  6160. @click.stop="deleteWorks(w.wid)"
  6161. alt
  6162. />
  6163. </div>
  6164. <div class="workImg" v-if="w.type == 3">
  6165. <img
  6166. style="cursor: pointer"
  6167. :src="video"
  6168. @click="openVideo(w)"
  6169. alt
  6170. />
  6171. <!-- @click="openVideo(w.works)" -->
  6172. <div
  6173. class="answerScore"
  6174. v-if="w.score"
  6175. @click.stop="openScore(w)"
  6176. :class="{
  6177. rightW:
  6178. w.userid == userid ||
  6179. tType == 1 ||
  6180. tType == 4 ||
  6181. w.ateacher == userid,
  6182. }"
  6183. >
  6184. {{ JSON.parse(w.score).wScore }}分
  6185. </div>
  6186. <div
  6187. class="answerScore"
  6188. @click.stop="openScore(w)"
  6189. v-else-if="courseDetail.userid == userid"
  6190. :class="{
  6191. rightW:
  6192. w.userid == userid ||
  6193. tType == 1 ||
  6194. tType == 4 ||
  6195. w.ateacher == userid,
  6196. }"
  6197. >
  6198. 评分
  6199. </div>
  6200. <img
  6201. class="deleteImg"
  6202. src="../../assets/deleteworks.png"
  6203. v-if="w.userid == userid || tType == 1 || tType == 4"
  6204. @click.stop="deleteWorks(w.wid)"
  6205. alt
  6206. />
  6207. </div>
  6208. <div class="comment" style="min-width: 200px">
  6209. <div class="worksName">
  6210. <div
  6211. style="cursor: pointer"
  6212. @click="
  6213. openSname(w.sName, w.wid, toolIndex, w.userid)
  6214. "
  6215. >
  6216. {{ w.sName }}
  6217. </div>
  6218. </div>
  6219. <div class="commentList">
  6220. <div class="commentList">
  6221. <div
  6222. class="commentImg"
  6223. @click="
  6224. isLikes(w.wid, userid, 1, null, w.isLikes)
  6225. "
  6226. >
  6227. <img
  6228. :src="w.isLikes == true ? likes : noLikes"
  6229. alt=""
  6230. />
  6231. </div>
  6232. <div>{{ w.likesCount }}</div>
  6233. </div>
  6234. <div class="commentList" style="margin-right: 15px">
  6235. <div
  6236. class="commentImg"
  6237. @click="commentOther(w, toolIndex, wIndex)"
  6238. >
  6239. <img
  6240. src="../../assets/icon/comment/comment.png"
  6241. alt=""
  6242. />
  6243. </div>
  6244. <div>{{ w.commentCount }}</div>
  6245. </div>
  6246. </div>
  6247. </div>
  6248. </div>
  6249. </div>
  6250. <div class="noWorksS">
  6251. <div
  6252. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6253. :key="sIndex"
  6254. class="noWorksName"
  6255. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  6256. :class="{ isWork: s.type == '2' }"
  6257. >
  6258. {{ s.student }}
  6259. </div>
  6260. </div>
  6261. </div>
  6262. <div
  6263. v-if="
  6264. tType &&
  6265. ((tType == 2 && sIsOpen == true) ||
  6266. tType == 1 ||
  6267. tType == 4) &&
  6268. tool.tool.indexOf(4) != -1
  6269. "
  6270. class="worksBox"
  6271. >
  6272. <div
  6273. class="zuoyeYulan"
  6274. v-if="
  6275. worksStudent.length && worksStudent[toolIndex].length > 0
  6276. "
  6277. >
  6278. <div class="worksTop">
  6279. <div>作业预览</div>
  6280. <div
  6281. class="corOpen"
  6282. @click="contract(toolIndex)"
  6283. v-if="
  6284. worksStudent[toolIndex].length > 6 &&
  6285. isCloseList[toolIndex].isClose == 0
  6286. "
  6287. >
  6288. 收缩
  6289. </div>
  6290. <div
  6291. class="corOpen"
  6292. @click="contract(toolIndex)"
  6293. v-if="isCloseList[toolIndex].isClose == 1"
  6294. >
  6295. 展开
  6296. </div>
  6297. </div>
  6298. </div>
  6299. <div>
  6300. <div
  6301. class="worksDetailBox"
  6302. v-if="
  6303. worksStudent.length &&
  6304. worksStudent[toolIndex].length > 0
  6305. "
  6306. >
  6307. <div
  6308. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6309. 0
  6310. ? worksStudent[toolIndex]
  6311. : worksStudent[toolIndex].slice(0, 6)"
  6312. :key="wIndex"
  6313. class="isWorksName2"
  6314. @click="
  6315. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6316. "
  6317. >
  6318. {{ w.sName }}
  6319. <img
  6320. class="deleteImg deleteImg2"
  6321. src="../../assets/deleteworks.png"
  6322. v-if="w.userid == userid || tType == 1 || tType == 4"
  6323. @click.stop="deleteWorks(w.wid)"
  6324. alt
  6325. />
  6326. </div>
  6327. </div>
  6328. </div>
  6329. <div class="noWorksS">
  6330. <div
  6331. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6332. :key="sIndex"
  6333. class="noWorksName"
  6334. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6335. :class="{ isWork: s.type == '2' }"
  6336. >
  6337. {{ s.student }}
  6338. </div>
  6339. </div>
  6340. </div>
  6341. <div
  6342. v-if="
  6343. tType &&
  6344. ((tType == 2 && sIsOpen == true) ||
  6345. tType == 1 ||
  6346. tType == 4) &&
  6347. tool.tool.indexOf(45) != -1
  6348. "
  6349. class="worksBox"
  6350. >
  6351. <div
  6352. class="zuoyeYulan"
  6353. v-if="
  6354. worksStudent.length && worksStudent[toolIndex].length > 0
  6355. "
  6356. >
  6357. <div class="worksTop">
  6358. <div>作业预览</div>
  6359. <div
  6360. class="corOpen"
  6361. @click="contract(toolIndex)"
  6362. v-if="
  6363. worksStudent[toolIndex].length > 6 &&
  6364. isCloseList[toolIndex].isClose == 0
  6365. "
  6366. >
  6367. 收缩
  6368. </div>
  6369. <div
  6370. class="corOpen"
  6371. @click="contract(toolIndex)"
  6372. v-if="isCloseList[toolIndex].isClose == 1"
  6373. >
  6374. 展开
  6375. </div>
  6376. </div>
  6377. </div>
  6378. <div>
  6379. <div
  6380. class="worksDetailBox"
  6381. v-if="
  6382. worksStudent.length &&
  6383. worksStudent[toolIndex].length > 0
  6384. "
  6385. >
  6386. <div
  6387. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6388. 0
  6389. ? worksStudent[toolIndex]
  6390. : worksStudent[toolIndex].slice(0, 6)"
  6391. :key="wIndex"
  6392. class="isWorksName2"
  6393. @click="
  6394. openTools(45, toolIndex, taskCount, w.works, w.sName)
  6395. "
  6396. >
  6397. {{ w.sName }}
  6398. <img
  6399. class="deleteImg deleteImg2"
  6400. src="../../assets/deleteworks.png"
  6401. v-if="w.userid == userid || tType == 1 || tType == 4"
  6402. @click.stop="deleteWorks(w.wid)"
  6403. alt
  6404. />
  6405. </div>
  6406. </div>
  6407. </div>
  6408. <div class="noWorksS">
  6409. <div
  6410. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6411. :key="sIndex"
  6412. class="noWorksName"
  6413. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6414. :class="{ isWork: s.type == '2' }"
  6415. >
  6416. {{ s.student }}
  6417. </div>
  6418. </div>
  6419. </div>
  6420. <div
  6421. v-if="
  6422. tType &&
  6423. ((tType == 2 && sIsOpen == true) ||
  6424. tType == 1 ||
  6425. tType == 4) &&
  6426. tool.tool.indexOf(15) != -1
  6427. "
  6428. class="worksBox"
  6429. >
  6430. <div
  6431. class="zuoyeYulan"
  6432. v-if="
  6433. worksStudent.length && worksStudent[toolIndex].length > 0
  6434. "
  6435. >
  6436. <div class="worksTop">
  6437. <div>作业预览</div>
  6438. <div
  6439. class="corOpen"
  6440. @click="contract(toolIndex)"
  6441. v-if="
  6442. worksStudent[toolIndex].length > 6 &&
  6443. isCloseList[toolIndex].isClose == 0
  6444. "
  6445. >
  6446. 收缩
  6447. </div>
  6448. <div
  6449. class="corOpen"
  6450. @click="contract(toolIndex)"
  6451. v-if="isCloseList[toolIndex].isClose == 1"
  6452. >
  6453. 展开
  6454. </div>
  6455. </div>
  6456. </div>
  6457. <div
  6458. class="worksDetailBox"
  6459. v-if="
  6460. worksStudent.length && worksStudent[toolIndex].length > 0
  6461. "
  6462. >
  6463. <div
  6464. class="works"
  6465. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6466. ? worksStudent[toolIndex]
  6467. : worksStudent[toolIndex].slice(0, 6)"
  6468. :key="wIndex"
  6469. >
  6470. <div
  6471. class="workImg"
  6472. style="
  6473. border-radius: 15px;
  6474. box-shadow: #eee 0px 0px 5px 5px;
  6475. "
  6476. >
  6477. <!-- <img
  6478. src="../../assets/icon/works/noImg.png"
  6479. @click="openTools(15, toolIndex, taskCount, w.works)"
  6480. alt=""
  6481. />-->
  6482. <div
  6483. class="answerBg"
  6484. style="border-radius: 15px 15px 0 0"
  6485. @click="commentOther(w, toolIndex, wIndex)"
  6486. >
  6487. <!-- <div>{{ w.sName }}</div> -->
  6488. <div class="answerContent">
  6489. {{ JSON.parse(w.works)[0].answer }}
  6490. </div>
  6491. <div
  6492. class="answerScore"
  6493. v-if="w.score"
  6494. @click.stop="openScore(w)"
  6495. :class="{
  6496. rightW:
  6497. w.userid == userid || tType == 1 || tType == 4,
  6498. }"
  6499. >
  6500. {{ JSON.parse(w.score).wScore }}分
  6501. </div>
  6502. <div
  6503. class="answerScore"
  6504. @click.stop="openScore(w)"
  6505. v-else-if="courseDetail.userid == userid"
  6506. :class="{
  6507. rightW:
  6508. w.userid == userid || tType == 1 || tType == 4,
  6509. }"
  6510. >
  6511. 评分
  6512. </div>
  6513. <img
  6514. class="deleteImg"
  6515. src="../../assets/deleteworks.png"
  6516. v-if="
  6517. w.userid == userid || tType == 1 || tType == 4
  6518. "
  6519. @click.stop="deleteWorks(w.wid)"
  6520. alt
  6521. />
  6522. </div>
  6523. <div class="comment">
  6524. <div class="worksName">
  6525. <div>{{ w.sName }}</div>
  6526. </div>
  6527. <div class="commentList">
  6528. <div
  6529. class="commentImg"
  6530. @click="
  6531. isLikes(w.wid, userid, 1, null, w.isLikes)
  6532. "
  6533. >
  6534. <img
  6535. :src="w.isLikes == true ? likes : noLikes"
  6536. alt=""
  6537. />
  6538. </div>
  6539. <div>{{ w.likesCount }}</div>
  6540. </div>
  6541. <div class="commentList" style="margin-right: 15px">
  6542. <div
  6543. class="commentImg"
  6544. @click="commentOther(w, toolIndex, wIndex)"
  6545. >
  6546. <img
  6547. src="../../assets/icon/comment/comment.png"
  6548. alt=""
  6549. />
  6550. </div>
  6551. <div>{{ w.commentCount }}</div>
  6552. </div>
  6553. </div>
  6554. </div>
  6555. </div>
  6556. </div>
  6557. <div class="noWorksS">
  6558. <div
  6559. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6560. :key="sIndex"
  6561. class="noWorksName"
  6562. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6563. :class="{ isWork: s.type == '2' }"
  6564. >
  6565. {{ s.student }}
  6566. </div>
  6567. </div>
  6568. </div>
  6569. <div
  6570. v-if="
  6571. tType &&
  6572. ((tType == 2 && sIsOpen == true) ||
  6573. tType == 1 ||
  6574. tType == 4) &&
  6575. tool.tool.indexOf(1) != -1
  6576. "
  6577. class="worksBox"
  6578. >
  6579. <div
  6580. class="zuoyeYulan"
  6581. v-if="
  6582. worksStudent.length && worksStudent[toolIndex].length > 0
  6583. "
  6584. >
  6585. <div class="worksTop">
  6586. <div>作业预览</div>
  6587. <div
  6588. class="corOpen"
  6589. @click="contract(toolIndex)"
  6590. v-if="
  6591. worksStudent[toolIndex].length > 6 &&
  6592. isCloseList[toolIndex].isClose == 0
  6593. "
  6594. >
  6595. 收缩
  6596. </div>
  6597. <div
  6598. class="corOpen"
  6599. @click="contract(toolIndex)"
  6600. v-if="isCloseList[toolIndex].isClose == 1"
  6601. >
  6602. 展开
  6603. </div>
  6604. </div>
  6605. </div>
  6606. <div
  6607. class="worksDetailBox"
  6608. v-if="
  6609. worksStudent.length && worksStudent[toolIndex].length > 0
  6610. "
  6611. >
  6612. <div
  6613. class="works"
  6614. style="
  6615. width: 200px;
  6616. height: 140px;
  6617. margin: 10px 10px 10px 0;
  6618. border-radius: 15px;
  6619. box-shadow: 0 0 6px 1px #dfdada;
  6620. "
  6621. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6622. ? worksStudent[toolIndex]
  6623. : worksStudent[toolIndex].slice(0, 6)"
  6624. :key="wIndex"
  6625. >
  6626. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6627. <div class="workImg">
  6628. <img :src="w.works" @click="previewImg(w.works)" alt />
  6629. <div
  6630. class="answerScore"
  6631. v-if="w.score"
  6632. @click.stop="openScore(w)"
  6633. :class="{
  6634. rightW:
  6635. w.userid == userid || tType == 1 || tType == 4,
  6636. }"
  6637. >
  6638. {{ JSON.parse(w.score).wScore }}分
  6639. </div>
  6640. <div
  6641. class="answerScore"
  6642. @click.stop="openScore(w)"
  6643. v-else-if="courseDetail.userid == userid"
  6644. :class="{
  6645. rightW:
  6646. w.userid == userid || tType == 1 || tType == 4,
  6647. }"
  6648. >
  6649. 评分
  6650. </div>
  6651. <img
  6652. class="deleteImg"
  6653. src="../../assets/deleteworks.png"
  6654. v-if="w.userid == userid || tType == 1 || tType == 4"
  6655. @click.stop="deleteWorks(w.wid)"
  6656. alt
  6657. />
  6658. </div>
  6659. <div class="comment" style="min-width: 200px">
  6660. <div class="worksName">
  6661. <div>{{ w.sName }}</div>
  6662. </div>
  6663. <div class="commentList">
  6664. <div class="commentList">
  6665. <div
  6666. class="commentImg"
  6667. @click="
  6668. isLikes(w.wid, userid, 1, null, w.isLikes)
  6669. "
  6670. >
  6671. <img
  6672. :src="w.isLikes == true ? likes : noLikes"
  6673. alt=""
  6674. />
  6675. </div>
  6676. <div>{{ w.likesCount }}</div>
  6677. </div>
  6678. <div class="commentList" style="margin-right: 15px">
  6679. <div
  6680. class="commentImg"
  6681. @click="commentOther(w, toolIndex, wIndex)"
  6682. >
  6683. <img
  6684. src="../../assets/icon/comment/comment.png"
  6685. alt=""
  6686. />
  6687. </div>
  6688. <div>{{ w.commentCount }}</div>
  6689. </div>
  6690. </div>
  6691. </div>
  6692. </div>
  6693. </div>
  6694. <div class="noWorksS">
  6695. <div
  6696. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6697. :key="sIndex"
  6698. class="noWorksName"
  6699. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  6700. :class="{ isWork: s.type == '2' }"
  6701. >
  6702. {{ s.student }}
  6703. </div>
  6704. </div>
  6705. </div>
  6706. <div
  6707. v-if="
  6708. tType &&
  6709. ((tType == 2 && sIsOpen == true) ||
  6710. tType == 1 ||
  6711. tType == 4) &&
  6712. tool.tool.indexOf(3) != -1
  6713. "
  6714. class="worksBox"
  6715. >
  6716. <div
  6717. class="zuoyeYulan"
  6718. v-if="
  6719. worksStudent.length && worksStudent[toolIndex].length > 0
  6720. "
  6721. >
  6722. <div class="worksTop">
  6723. <div>作业预览</div>
  6724. <div
  6725. class="corOpen"
  6726. @click="contract(toolIndex)"
  6727. v-if="
  6728. worksStudent[toolIndex].length > 6 &&
  6729. isCloseList[toolIndex].isClose == 0
  6730. "
  6731. >
  6732. 收缩
  6733. </div>
  6734. <div
  6735. class="corOpen"
  6736. @click="contract(toolIndex)"
  6737. v-if="isCloseList[toolIndex].isClose == 1"
  6738. >
  6739. 展开
  6740. </div>
  6741. </div>
  6742. </div>
  6743. <div
  6744. class="worksDetailBox"
  6745. v-if="
  6746. worksStudent.length && worksStudent[toolIndex].length > 0
  6747. "
  6748. >
  6749. <div
  6750. class="works"
  6751. style="
  6752. width: 200px;
  6753. height: 140px;
  6754. margin: 10px 10px 10px 0;
  6755. border-radius: 15px;
  6756. box-shadow: 0 0 6px 1px #dfdada;
  6757. "
  6758. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6759. ? worksStudent[toolIndex]
  6760. : worksStudent[toolIndex].slice(0, 6)"
  6761. :key="wIndex"
  6762. >
  6763. <!-- @click="previewImg(w.works)" -->
  6764. <div class="workImg">
  6765. <img :src="w.works" @click="previewImg(w.works)" alt />
  6766. <div
  6767. class="answerScore"
  6768. v-if="w.score"
  6769. @click.stop="openScore(w)"
  6770. :class="{
  6771. rightW:
  6772. w.userid == userid || tType == 1 || tType == 4,
  6773. }"
  6774. >
  6775. {{ JSON.parse(w.score).wScore }}分
  6776. </div>
  6777. <div
  6778. class="answerScore"
  6779. @click.stop="openScore(w)"
  6780. v-else-if="courseDetail.userid == userid"
  6781. :class="{
  6782. rightW:
  6783. w.userid == userid || tType == 1 || tType == 4,
  6784. }"
  6785. >
  6786. 评分
  6787. </div>
  6788. <img
  6789. class="deleteImg"
  6790. src="../../assets/deleteworks.png"
  6791. v-if="w.userid == userid || tType == 1 || tType == 4"
  6792. @click.stop="deleteWorks(w.wid)"
  6793. alt
  6794. />
  6795. </div>
  6796. <div class="comment" style="min-width: 200px">
  6797. <div class="worksName">
  6798. <div>{{ w.sName }}</div>
  6799. </div>
  6800. <div class="commentList">
  6801. <div class="commentList">
  6802. <div
  6803. class="commentImg"
  6804. @click="
  6805. isLikes(w.wid, userid, 1, null, w.isLikes)
  6806. "
  6807. >
  6808. <img
  6809. :src="w.isLikes == true ? likes : noLikes"
  6810. alt=""
  6811. />
  6812. </div>
  6813. <div>{{ w.likesCount }}</div>
  6814. </div>
  6815. <div class="commentList" style="margin-right: 15px">
  6816. <div
  6817. class="commentImg"
  6818. @click="commentOther(w, toolIndex, wIndex)"
  6819. >
  6820. <img
  6821. src="../../assets/icon/comment/comment.png"
  6822. alt=""
  6823. />
  6824. </div>
  6825. <div>{{ w.commentCount }}</div>
  6826. </div>
  6827. </div>
  6828. </div>
  6829. </div>
  6830. </div>
  6831. <div class="noWorksS">
  6832. <div
  6833. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6834. :key="sIndex"
  6835. class="noWorksName"
  6836. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  6837. :class="{ isWork: s.type == '2' }"
  6838. >
  6839. {{ s.student }}
  6840. </div>
  6841. </div>
  6842. </div>
  6843. <div
  6844. v-if="
  6845. tType &&
  6846. ((tType == 2 && sIsOpen == true) ||
  6847. tType == 1 ||
  6848. tType == 4) &&
  6849. tool.tool.indexOf(6) != -1
  6850. "
  6851. class="worksBox"
  6852. >
  6853. <div
  6854. class="zuoyeYulan"
  6855. v-if="
  6856. worksStudent.length && worksStudent[toolIndex].length > 0
  6857. "
  6858. >
  6859. <div class="worksTop">
  6860. <div>作业预览</div>
  6861. <div
  6862. class="corOpen"
  6863. @click="contract(toolIndex)"
  6864. v-if="
  6865. worksStudent[toolIndex].length > 6 &&
  6866. isCloseList[toolIndex].isClose == 0
  6867. "
  6868. >
  6869. 收缩
  6870. </div>
  6871. <div
  6872. class="corOpen"
  6873. @click="contract(toolIndex)"
  6874. v-if="isCloseList[toolIndex].isClose == 1"
  6875. >
  6876. 展开
  6877. </div>
  6878. </div>
  6879. </div>
  6880. <div
  6881. class="worksDetailBox"
  6882. v-if="
  6883. worksStudent.length && worksStudent[toolIndex].length > 0
  6884. "
  6885. >
  6886. <div
  6887. class="works"
  6888. style="
  6889. width: 200px;
  6890. height: 140px;
  6891. margin: 10px 10px 10px 0;
  6892. border-radius: 15px;
  6893. box-shadow: 0 0 6px 1px #dfdada;
  6894. "
  6895. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6896. ? worksStudent[toolIndex]
  6897. : worksStudent[toolIndex].slice(0, 6)"
  6898. :key="wIndex"
  6899. >
  6900. <!-- @click="previewImg(w.works)" -->
  6901. <div class="workImg">
  6902. <img :src="w.works" @click="previewImg(w.works)" alt />
  6903. <div
  6904. class="answerScore"
  6905. v-if="w.score"
  6906. @click.stop="openScore(w)"
  6907. :class="{
  6908. rightW:
  6909. w.userid == userid || tType == 1 || tType == 4,
  6910. }"
  6911. >
  6912. {{ JSON.parse(w.score).wScore }}分
  6913. </div>
  6914. <div
  6915. class="answerScore"
  6916. @click.stop="openScore(w)"
  6917. v-else-if="courseDetail.userid == userid"
  6918. :class="{
  6919. rightW:
  6920. w.userid == userid || tType == 1 || tType == 4,
  6921. }"
  6922. >
  6923. 评分
  6924. </div>
  6925. <img
  6926. class="deleteImg"
  6927. src="../../assets/deleteworks.png"
  6928. v-if="w.userid == userid || tType == 1 || tType == 4"
  6929. @click.stop="deleteWorks(w.wid)"
  6930. alt
  6931. />
  6932. </div>
  6933. <div class="comment" style="min-width: 200px">
  6934. <div class="worksName">
  6935. <div>{{ w.sName }}</div>
  6936. </div>
  6937. <div class="commentList">
  6938. <div class="commentList">
  6939. <div
  6940. class="commentImg"
  6941. @click="
  6942. isLikes(w.wid, userid, 1, null, w.isLikes)
  6943. "
  6944. >
  6945. <img
  6946. :src="w.isLikes == true ? likes : noLikes"
  6947. alt=""
  6948. />
  6949. </div>
  6950. <div>{{ w.likesCount }}</div>
  6951. </div>
  6952. <div class="commentList" style="margin-right: 15px">
  6953. <div
  6954. class="commentImg"
  6955. @click="commentOther(w, toolIndex, wIndex)"
  6956. >
  6957. <img
  6958. src="../../assets/icon/comment/comment.png"
  6959. alt=""
  6960. />
  6961. </div>
  6962. <div>{{ w.commentCount }}</div>
  6963. </div>
  6964. </div>
  6965. </div>
  6966. </div>
  6967. </div>
  6968. <div class="noWorksS">
  6969. <div
  6970. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6971. :key="sIndex"
  6972. class="noWorksName"
  6973. :class="{ isWork: s.type == '2' }"
  6974. >
  6975. {{ s.student }}
  6976. </div>
  6977. </div>
  6978. </div>
  6979. <div
  6980. v-if="
  6981. tType &&
  6982. ((tType == 2 && sIsOpen == true) ||
  6983. tType == 1 ||
  6984. tType == 4) &&
  6985. tool.tool.indexOf(7) != -1
  6986. "
  6987. class="worksBox"
  6988. >
  6989. <div
  6990. class="zuoyeYulan"
  6991. v-if="
  6992. worksStudent.length && worksStudent[toolIndex].length > 0
  6993. "
  6994. >
  6995. <div class="worksTop">
  6996. <div>作业预览</div>
  6997. <div
  6998. class="corOpen"
  6999. @click="contract(toolIndex)"
  7000. v-if="
  7001. worksStudent[toolIndex].length > 6 &&
  7002. isCloseList[toolIndex].isClose == 0
  7003. "
  7004. >
  7005. 收缩
  7006. </div>
  7007. <div
  7008. class="corOpen"
  7009. @click="contract(toolIndex)"
  7010. v-if="isCloseList[toolIndex].isClose == 1"
  7011. >
  7012. 展开
  7013. </div>
  7014. </div>
  7015. </div>
  7016. <div
  7017. class="worksDetailBox"
  7018. v-if="
  7019. worksStudent.length && worksStudent[toolIndex].length > 0
  7020. "
  7021. >
  7022. <div
  7023. class="works"
  7024. style="
  7025. width: 200px;
  7026. height: 140px;
  7027. margin: 10px 10px 10px 0;
  7028. border-radius: 15px;
  7029. box-shadow: 0 0 6px 1px #dfdada;
  7030. "
  7031. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7032. ? worksStudent[toolIndex]
  7033. : worksStudent[toolIndex].slice(0, 6)"
  7034. :key="wIndex"
  7035. >
  7036. <!-- @click="previewImg(w.works)" -->
  7037. <div class="workImg">
  7038. <img :src="w.works" @click="previewImg(w.works)" alt />
  7039. <div
  7040. class="answerScore"
  7041. v-if="w.score"
  7042. @click.stop="openScore(w)"
  7043. :class="{
  7044. rightW:
  7045. w.userid == userid || tType == 1 || tType == 4,
  7046. }"
  7047. >
  7048. {{ JSON.parse(w.score).wScore }}分
  7049. </div>
  7050. <div
  7051. class="answerScore"
  7052. @click.stop="openScore(w)"
  7053. v-else-if="courseDetail.userid == userid"
  7054. :class="{
  7055. rightW:
  7056. w.userid == userid || tType == 1 || tType == 4,
  7057. }"
  7058. >
  7059. 评分
  7060. </div>
  7061. <img
  7062. class="deleteImg"
  7063. src="../../assets/deleteworks.png"
  7064. v-if="w.userid == userid || tType == 1 || tType == 4"
  7065. @click.stop="deleteWorks(w.wid)"
  7066. alt
  7067. />
  7068. </div>
  7069. <div class="comment" style="min-width: 200px">
  7070. <div class="worksName">
  7071. <div>{{ w.sName }}</div>
  7072. </div>
  7073. <div class="commentList">
  7074. <div class="commentList">
  7075. <div
  7076. class="commentImg"
  7077. @click="
  7078. isLikes(w.wid, userid, 1, null, w.isLikes)
  7079. "
  7080. >
  7081. <img
  7082. :src="w.isLikes == true ? likes : noLikes"
  7083. alt=""
  7084. />
  7085. </div>
  7086. <div>{{ w.likesCount }}</div>
  7087. </div>
  7088. <div class="commentList" style="margin-right: 15px">
  7089. <div
  7090. class="commentImg"
  7091. @click="commentOther(w, toolIndex, wIndex)"
  7092. >
  7093. <img
  7094. src="../../assets/icon/comment/comment.png"
  7095. alt=""
  7096. />
  7097. </div>
  7098. <div>{{ w.commentCount }}</div>
  7099. </div>
  7100. </div>
  7101. </div>
  7102. </div>
  7103. </div>
  7104. <div class="noWorksS">
  7105. <div
  7106. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7107. :key="sIndex"
  7108. class="noWorksName"
  7109. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  7110. :class="{ isWork: s.type == '2' }"
  7111. >
  7112. {{ s.student }}
  7113. </div>
  7114. </div>
  7115. </div>
  7116. <div
  7117. v-if="
  7118. tType &&
  7119. ((tType == 2 && sIsOpen == true) ||
  7120. tType == 1 ||
  7121. tType == 4) &&
  7122. tool.tool.indexOf(26) != -1
  7123. "
  7124. class="worksBox"
  7125. >
  7126. <div
  7127. class="zuoyeYulan"
  7128. v-if="
  7129. worksStudent.length && worksStudent[toolIndex].length > 0
  7130. "
  7131. >
  7132. <div class="worksTop">
  7133. <div>作业预览</div>
  7134. <div
  7135. class="corOpen"
  7136. @click="contract(toolIndex)"
  7137. v-if="
  7138. worksStudent[toolIndex].length > 6 &&
  7139. isCloseList[toolIndex].isClose == 0
  7140. "
  7141. >
  7142. 收缩
  7143. </div>
  7144. <div
  7145. class="corOpen"
  7146. @click="contract(toolIndex)"
  7147. v-if="isCloseList[toolIndex].isClose == 1"
  7148. >
  7149. 展开
  7150. </div>
  7151. </div>
  7152. </div>
  7153. <div
  7154. class="worksDetailBox"
  7155. v-if="
  7156. worksStudent.length && worksStudent[toolIndex].length > 0
  7157. "
  7158. >
  7159. <div
  7160. class="works"
  7161. style="width: 240px; height: 140px; overflow: hidden"
  7162. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7163. ? worksStudent[toolIndex]
  7164. : worksStudent[toolIndex].slice(0, 6)"
  7165. :key="wIndex"
  7166. :class="w.type == 1 ? 'isTypeOne' : ''"
  7167. >
  7168. <div class="workImg" v-if="w.type == 0">
  7169. <img :src="w.works" @click="previewImg(w.works)" alt />
  7170. <img
  7171. class="deleteImg"
  7172. src="../../assets/deleteworks.png"
  7173. v-if="w.userid == userid || tType == 1 || tType == 4"
  7174. @click.stop="deleteWorks(w.wid)"
  7175. alt
  7176. />
  7177. </div>
  7178. <div class="workImg" v-if="w.type == 1">
  7179. <img :src="word" @click="openFile(w.works)" alt />
  7180. <img
  7181. class="deleteImg"
  7182. src="../../assets/deleteworks.png"
  7183. v-if="w.userid == userid || tType == 1 || tType == 4"
  7184. @click.stop="deleteWorks(w.wid)"
  7185. alt
  7186. />
  7187. </div>
  7188. <div class="worksName">
  7189. <div>{{ w.sName }}</div>
  7190. </div>
  7191. </div>
  7192. </div>
  7193. <div class="noWorksS">
  7194. <div
  7195. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7196. :key="sIndex"
  7197. class="noWorksName"
  7198. :class="{ isWork: s.type == '2' }"
  7199. >
  7200. {{ s.student }}
  7201. </div>
  7202. </div>
  7203. </div>
  7204. <div
  7205. v-if="
  7206. tType &&
  7207. ((tType == 2 && sIsOpen == true) ||
  7208. tType == 1 ||
  7209. tType == 4) &&
  7210. tool.tool.indexOf(40) != -1
  7211. "
  7212. class="worksBox"
  7213. >
  7214. <div
  7215. class="zuoyeYulan"
  7216. v-if="
  7217. worksStudent.length && worksStudent[toolIndex].length > 0
  7218. "
  7219. >
  7220. <div class="worksTop">
  7221. <div>作业预览</div>
  7222. <div
  7223. class="corOpen"
  7224. @click="contract(toolIndex)"
  7225. v-if="
  7226. worksStudent[toolIndex].length > 6 &&
  7227. isCloseList[toolIndex].isClose == 0
  7228. "
  7229. >
  7230. 收缩
  7231. </div>
  7232. <div
  7233. class="corOpen"
  7234. @click="contract(toolIndex)"
  7235. v-if="isCloseList[toolIndex].isClose == 1"
  7236. >
  7237. 展开
  7238. </div>
  7239. </div>
  7240. </div>
  7241. <div
  7242. class="worksDetailBox"
  7243. v-if="
  7244. worksStudent.length && worksStudent[toolIndex].length > 0
  7245. "
  7246. >
  7247. <div
  7248. class="works"
  7249. style="
  7250. width: 200px;
  7251. height: 140px;
  7252. margin: 10px 10px 10px 0;
  7253. border-radius: 15px;
  7254. box-shadow: 0 0 6px 1px #dfdada;
  7255. "
  7256. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7257. ? worksStudent[toolIndex]
  7258. : worksStudent[toolIndex].slice(0, 6)"
  7259. :key="wIndex"
  7260. :class="w.type == 1 ? 'isTypeOne' : ''"
  7261. >
  7262. <div class="workImg">
  7263. <img
  7264. src="../../assets/icon/works/noImg.png"
  7265. @click="openPj(w.works, toolIndex)"
  7266. alt
  7267. />
  7268. <img
  7269. class="deleteImg"
  7270. src="../../assets/deleteworks.png"
  7271. v-if="w.userid == userid || tType == 1 || tType == 4"
  7272. @click.stop="deleteWorks(w.wid)"
  7273. alt
  7274. />
  7275. </div>
  7276. <div class="comment" style="min-width: 200px">
  7277. <div class="worksName">
  7278. <div>{{ w.sName }}</div>
  7279. </div>
  7280. <div class="commentList">
  7281. <div class="commentList">
  7282. <div
  7283. class="commentImg"
  7284. @click="
  7285. isLikes(w.wid, userid, 1, null, w.isLikes)
  7286. "
  7287. >
  7288. <img
  7289. :src="w.isLikes == true ? likes : noLikes"
  7290. alt=""
  7291. />
  7292. </div>
  7293. <div>{{ w.likesCount }}</div>
  7294. </div>
  7295. <div class="commentList" style="margin-right: 15px">
  7296. <div
  7297. class="commentImg"
  7298. @click="commentOther(w, toolIndex, wIndex)"
  7299. >
  7300. <img
  7301. src="../../assets/icon/comment/comment.png"
  7302. alt=""
  7303. />
  7304. </div>
  7305. <div>{{ w.commentCount }}</div>
  7306. </div>
  7307. </div>
  7308. </div>
  7309. </div>
  7310. </div>
  7311. <div class="noWorksS">
  7312. <div
  7313. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7314. :key="sIndex"
  7315. class="noWorksName"
  7316. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  7317. :class="{ isWork: s.type == '2' }"
  7318. >
  7319. {{ s.student }}
  7320. </div>
  7321. </div>
  7322. </div>
  7323. <div
  7324. v-if="
  7325. tType &&
  7326. ((tType == 2 && sIsOpen == true) ||
  7327. tType == 1 ||
  7328. tType == 4) &&
  7329. tool.tool.indexOf(41) != -1
  7330. "
  7331. class="worksBox"
  7332. >
  7333. <div class="noWorksS">
  7334. <div
  7335. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7336. :key="sIndex"
  7337. class="noWorksName"
  7338. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  7339. :class="{ isWork: s.type == '2' }"
  7340. >
  7341. {{ s.student }}
  7342. </div>
  7343. </div>
  7344. <div
  7345. class="zuoyeYulan"
  7346. v-if="
  7347. worksStudent.length && worksStudent[toolIndex].length > 0
  7348. "
  7349. >
  7350. <div class="worksTop">
  7351. <div>作业预览</div>
  7352. <div
  7353. class="corOpen"
  7354. @click="contract(toolIndex)"
  7355. v-if="
  7356. worksStudent[toolIndex].length > 6 &&
  7357. isCloseList[toolIndex].isClose == 0
  7358. "
  7359. >
  7360. 收缩
  7361. </div>
  7362. <div
  7363. class="corOpen"
  7364. @click="contract(toolIndex)"
  7365. v-if="isCloseList[toolIndex].isClose == 1"
  7366. >
  7367. 展开
  7368. </div>
  7369. </div>
  7370. </div>
  7371. <div
  7372. class="worksDetailBox"
  7373. v-if="
  7374. worksStudent.length && worksStudent[toolIndex].length > 0
  7375. "
  7376. >
  7377. <div
  7378. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7379. ? worksStudent[toolIndex]
  7380. : worksStudent[toolIndex].slice(0, 6)"
  7381. :key="wIndex"
  7382. class="isWorksName2"
  7383. @click="openXz(w, toolIndex)"
  7384. >
  7385. {{ w.sName }}
  7386. <img
  7387. class="deleteImg deleteImg2"
  7388. src="../../assets/deleteworks.png"
  7389. v-if="w.userid == userid || tType == 1 || tType == 4"
  7390. @click.stop="deleteWorks(w.wid)"
  7391. alt
  7392. />
  7393. </div>
  7394. </div>
  7395. </div>
  7396. <div
  7397. v-if="
  7398. tType &&
  7399. ((tType == 2 && sIsOpen == true) ||
  7400. tType == 1 ||
  7401. tType == 4) &&
  7402. tool.tool.indexOf(47) != -1
  7403. "
  7404. class="worksBox"
  7405. >
  7406. <div class="noWorksS">
  7407. <div
  7408. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7409. :key="sIndex"
  7410. class="noWorksName"
  7411. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  7412. :class="{ isWork: s.type == '2' }"
  7413. >
  7414. {{ s.student }}
  7415. </div>
  7416. </div>
  7417. <div
  7418. class="zuoyeYulan"
  7419. v-if="
  7420. worksStudent.length && worksStudent[toolIndex].length > 0
  7421. "
  7422. >
  7423. <div class="worksTop">
  7424. <div>作业预览</div>
  7425. <div
  7426. class="corOpen"
  7427. @click="contract(toolIndex)"
  7428. v-if="
  7429. worksStudent[toolIndex].length > 6 &&
  7430. isCloseList[toolIndex].isClose == 0
  7431. "
  7432. >
  7433. 收缩
  7434. </div>
  7435. <div
  7436. class="corOpen"
  7437. @click="contract(toolIndex)"
  7438. v-if="isCloseList[toolIndex].isClose == 1"
  7439. >
  7440. 展开
  7441. </div>
  7442. </div>
  7443. </div>
  7444. <div
  7445. class="worksDetailBox"
  7446. v-if="
  7447. worksStudent.length && worksStudent[toolIndex].length > 0
  7448. "
  7449. >
  7450. <!-- @click="openXz(w, toolIndex)" -->
  7451. <div
  7452. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7453. ? worksStudent[toolIndex]
  7454. : worksStudent[toolIndex].slice(0, 6)"
  7455. :key="wIndex"
  7456. class="isWorksName2"
  7457. @click="openSen(w, toolIndex)"
  7458. >
  7459. {{ w.sName }}
  7460. <img
  7461. class="deleteImg deleteImg2"
  7462. src="../../assets/deleteworks.png"
  7463. v-if="w.userid == userid || tType == 1 || tType == 4"
  7464. @click.stop="deleteWorks(w.wid)"
  7465. alt
  7466. />
  7467. </div>
  7468. </div>
  7469. </div>
  7470. <div
  7471. v-if="
  7472. tType &&
  7473. ((tType == 2 && sIsOpen == true) ||
  7474. tType == 1 ||
  7475. tType == 4) &&
  7476. tool.tool.indexOf(48) != -1
  7477. "
  7478. class="worksBox"
  7479. >
  7480. <div
  7481. class="zuoyeYulan"
  7482. v-if="
  7483. worksStudent.length && worksStudent[toolIndex].length > 0
  7484. "
  7485. >
  7486. <div class="worksTop">
  7487. <div>作业预览</div>
  7488. <div
  7489. class="corOpen"
  7490. @click="contract(toolIndex)"
  7491. v-if="
  7492. worksStudent[toolIndex].length > 6 &&
  7493. isCloseList[toolIndex].isClose == 0
  7494. "
  7495. >
  7496. 收缩
  7497. </div>
  7498. <div
  7499. class="corOpen"
  7500. @click="contract(toolIndex)"
  7501. v-if="isCloseList[toolIndex].isClose == 1"
  7502. >
  7503. 展开
  7504. </div>
  7505. </div>
  7506. </div>
  7507. <div
  7508. class="worksDetailBox"
  7509. v-if="
  7510. worksStudent.length && worksStudent[toolIndex].length > 0
  7511. "
  7512. >
  7513. <div
  7514. class="works"
  7515. style="
  7516. width: 200px;
  7517. height: 140px;
  7518. margin: 10px 10px 10px 0;
  7519. border-radius: 15px;
  7520. box-shadow: 0 0 6px 1px #dfdada;
  7521. "
  7522. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7523. ? worksStudent[toolIndex]
  7524. : worksStudent[toolIndex].slice(0, 6)"
  7525. :key="wIndex"
  7526. :class="w.type == 1 ? 'isTypeOne' : ''"
  7527. >
  7528. <div class="workImg">
  7529. <img :src="word" @click="openTable(w)" alt />
  7530. <!-- @click="openFile(w.works)" -->
  7531. <div
  7532. class="answerScore"
  7533. v-if="w.score"
  7534. @click.stop="openScore(w)"
  7535. :class="{
  7536. rightW:
  7537. w.userid == userid ||
  7538. tType == 1 ||
  7539. tType == 4 ||
  7540. w.ateacher == userid,
  7541. }"
  7542. >
  7543. {{ JSON.parse(w.score).wScore }}分
  7544. </div>
  7545. <div
  7546. class="answerScore"
  7547. @click.stop="openScore(w)"
  7548. v-else-if="courseDetail.userid == userid"
  7549. :class="{
  7550. rightW:
  7551. w.userid == userid ||
  7552. tType == 1 ||
  7553. tType == 4 ||
  7554. w.ateacher == userid,
  7555. }"
  7556. >
  7557. 评分
  7558. </div>
  7559. <img
  7560. class="deleteImg"
  7561. src="../../assets/deleteworks.png"
  7562. v-if="w.userid == userid || tType == 1 || tType == 4"
  7563. @click.stop="deleteWorks(w.wid)"
  7564. alt
  7565. />
  7566. </div>
  7567. <div class="comment" style="min-width: 200px">
  7568. <div class="worksName">
  7569. <div>{{ w.sName }}</div>
  7570. </div>
  7571. <div class="commentList">
  7572. <div class="commentList">
  7573. <div
  7574. class="commentImg"
  7575. @click="
  7576. isLikes(w.wid, userid, 1, null, w.isLikes)
  7577. "
  7578. >
  7579. <img
  7580. :src="w.isLikes == true ? likes : noLikes"
  7581. alt=""
  7582. />
  7583. </div>
  7584. <div>{{ w.likesCount }}</div>
  7585. </div>
  7586. <div class="commentList" style="margin-right: 15px">
  7587. <div
  7588. class="commentImg"
  7589. @click="commentOther(w, toolIndex, wIndex)"
  7590. >
  7591. <img
  7592. src="../../assets/icon/comment/comment.png"
  7593. alt=""
  7594. />
  7595. </div>
  7596. <div>{{ w.commentCount }}</div>
  7597. </div>
  7598. </div>
  7599. </div>
  7600. </div>
  7601. </div>
  7602. <div class="noWorksS">
  7603. <div
  7604. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7605. :key="sIndex"
  7606. class="noWorksName"
  7607. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  7608. :class="{ isWork: s.type == '2' }"
  7609. >
  7610. {{ s.student }}
  7611. </div>
  7612. </div>
  7613. </div>
  7614. <div
  7615. v-if="
  7616. tType &&
  7617. ((tType == 2 && sIsOpen == true) ||
  7618. tType == 1 ||
  7619. tType == 4) &&
  7620. tool.tool.indexOf(52) != -1
  7621. "
  7622. class="worksBox"
  7623. >
  7624. <div
  7625. class="zuoyeYulan"
  7626. v-if="
  7627. worksStudent.length && worksStudent[toolIndex].length > 0
  7628. "
  7629. >
  7630. <div class="worksTop">
  7631. <div>作业预览</div>
  7632. <div
  7633. class="corOpen"
  7634. @click="contract(toolIndex)"
  7635. v-if="
  7636. worksStudent[toolIndex].length > 6 &&
  7637. isCloseList[toolIndex].isClose == 0
  7638. "
  7639. >
  7640. 收缩
  7641. </div>
  7642. <div
  7643. class="corOpen"
  7644. @click="contract(toolIndex)"
  7645. v-if="isCloseList[toolIndex].isClose == 1"
  7646. >
  7647. 展开
  7648. </div>
  7649. </div>
  7650. </div>
  7651. <div
  7652. class="worksDetailBox"
  7653. v-if="
  7654. worksStudent.length && worksStudent[toolIndex].length > 0
  7655. "
  7656. >
  7657. <div
  7658. class="works"
  7659. style="
  7660. width: 200px;
  7661. height: 140px;
  7662. margin: 10px 10px 10px 0;
  7663. border-radius: 15px;
  7664. box-shadow: 0 0 6px 1px #dfdada;
  7665. "
  7666. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7667. ? worksStudent[toolIndex]
  7668. : worksStudent[toolIndex].slice(0, 6)"
  7669. :key="wIndex"
  7670. :class="w.type == 1 ? 'isTypeOne' : ''"
  7671. >
  7672. <div class="workImg">
  7673. <img :src="word" @click="openWord(w)" alt />
  7674. <!-- @click="openFile(w.works)" -->
  7675. <div
  7676. class="answerScore"
  7677. v-if="w.score"
  7678. @click.stop="openScore(w)"
  7679. :class="{
  7680. rightW:
  7681. w.userid == userid ||
  7682. tType == 1 ||
  7683. tType == 4 ||
  7684. w.ateacher == userid,
  7685. }"
  7686. >
  7687. {{ JSON.parse(w.score).wScore }}分
  7688. </div>
  7689. <div
  7690. class="answerScore"
  7691. @click.stop="openScore(w)"
  7692. v-else-if="courseDetail.userid == userid"
  7693. :class="{
  7694. rightW:
  7695. w.userid == userid ||
  7696. tType == 1 ||
  7697. tType == 4 ||
  7698. w.ateacher == userid,
  7699. }"
  7700. >
  7701. 评分
  7702. </div>
  7703. <img
  7704. class="deleteImg"
  7705. src="../../assets/deleteworks.png"
  7706. v-if="w.userid == userid || tType == 1 || tType == 4"
  7707. @click.stop="deleteWorks(w.wid)"
  7708. alt
  7709. />
  7710. </div>
  7711. <div class="comment" style="min-width: 200px">
  7712. <div class="worksName">
  7713. <div>{{ w.sName }}</div>
  7714. </div>
  7715. <div class="commentList">
  7716. <div class="commentList">
  7717. <div
  7718. class="commentImg"
  7719. @click="
  7720. isLikes(w.wid, userid, 1, null, w.isLikes)
  7721. "
  7722. >
  7723. <img
  7724. :src="w.isLikes == true ? likes : noLikes"
  7725. alt=""
  7726. />
  7727. </div>
  7728. <div>{{ w.likesCount }}</div>
  7729. </div>
  7730. <div class="commentList" style="margin-right: 15px">
  7731. <div
  7732. class="commentImg"
  7733. @click="commentOther(w, toolIndex, wIndex)"
  7734. >
  7735. <img
  7736. src="../../assets/icon/comment/comment.png"
  7737. alt=""
  7738. />
  7739. </div>
  7740. <div>{{ w.commentCount }}</div>
  7741. </div>
  7742. </div>
  7743. </div>
  7744. </div>
  7745. </div>
  7746. <div class="noWorksS">
  7747. <div
  7748. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7749. :key="sIndex"
  7750. class="noWorksName"
  7751. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7752. :class="{ isWork: s.type == '2' }"
  7753. >
  7754. {{ s.student }}
  7755. </div>
  7756. </div>
  7757. </div>
  7758. </div>
  7759. </div>
  7760. <div class="vedioBox" style="margin-top: 10px" v-if="false">
  7761. <div
  7762. class="queTop"
  7763. style="
  7764. font-size: 20px;
  7765. padding: 15px 0 15px 30px;
  7766. font-weight: bold;
  7767. "
  7768. >
  7769. 评一评
  7770. </div>
  7771. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7772. <div class="elist_input">
  7773. <div
  7774. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7775. .chapterInfo[0].taskJson[taskCount].eList"
  7776. :key="eIndex"
  7777. class="elist_input_box"
  7778. >
  7779. <div style="width: 95%">
  7780. <div
  7781. style="
  7782. display: flex;
  7783. flex-direction: row;
  7784. flex-wrap: nowrap;
  7785. align-items: center;
  7786. "
  7787. >
  7788. <div style="max-width: calc(100% - 285px)">
  7789. <span>{{ eItem.value }}</span>
  7790. </div>
  7791. <div
  7792. style="
  7793. padding-left: 25px;
  7794. display: flex;
  7795. flex-direction: row;
  7796. align-items: center;
  7797. "
  7798. >
  7799. <el-rate
  7800. v-model="eItem.score"
  7801. :colors="colors"
  7802. disabled
  7803. ></el-rate>
  7804. </div>
  7805. </div>
  7806. <div class="elist_inptu_text" style="padding-left: 10px">
  7807. <span v-if="eItem.detail != ''">{{
  7808. eItem.detail
  7809. }}</span>
  7810. <span v-else style="color: #b2b1b3; font-size: 14px"
  7811. >暂无描述...</span
  7812. >
  7813. </div>
  7814. </div>
  7815. </div>
  7816. </div>
  7817. <div
  7818. v-if="evalua"
  7819. style="
  7820. border: 1px solid #e5e5e5;
  7821. max-width: 650px;
  7822. width: 100%;
  7823. margin-top: 20px;
  7824. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7825. "
  7826. >
  7827. <div class="e_add_top">
  7828. <div class="e_add_title">
  7829. <span>目标管理名称</span>
  7830. <span>{{ eTitle }}</span>
  7831. <img
  7832. src="../../assets/line.png"
  7833. class="cru_line"
  7834. style="
  7835. width: 125px;
  7836. height: 20px;
  7837. bottom: -10px;
  7838. left: 120px;
  7839. "
  7840. />
  7841. <!-- <el-input
  7842. v-model="eTitle"
  7843. placeholder="请输入名称"
  7844. @change="setMindData"
  7845. ></el-input>-->
  7846. </div>
  7847. </div>
  7848. <div class="e_add_content">
  7849. <div class="e_add_list_pbox">
  7850. <div class="e_add_list_pbox_title">
  7851. <span class="type_title">切换模式</span>
  7852. <div class="type_content">
  7853. <span
  7854. :class="{ active: typeMode == 1 }"
  7855. @click="typeMode = 1"
  7856. >目标树</span
  7857. >
  7858. <span
  7859. :class="{ active: typeMode == 2 }"
  7860. @click="typeMode = 2"
  7861. >目标罗盘</span
  7862. >
  7863. <span
  7864. :class="{ active: typeMode == 3 }"
  7865. @click="typeMode = 3"
  7866. >目标看板</span
  7867. >
  7868. </div>
  7869. </div>
  7870. <div class="e_add_list_pbox_content">
  7871. <Mind
  7872. :showBar="false"
  7873. :mindData="data"
  7874. style="width: 100%"
  7875. v-show="typeMode == 1"
  7876. ></Mind>
  7877. <Sunburst
  7878. :Josn="eJson"
  7879. :num="eJSONNum"
  7880. style="width: 100%"
  7881. v-if="typeMode == 2"
  7882. ></Sunburst>
  7883. <SeeBoard
  7884. :Josn="eJson"
  7885. :num="eJSONNum"
  7886. :ename="eTitle"
  7887. style="width: 100%"
  7888. v-if="typeMode == 3"
  7889. >
  7890. </SeeBoard>
  7891. </div>
  7892. </div>
  7893. </div>
  7894. </div>
  7895. </div>
  7896. </div>
  7897. </div>
  7898. <div
  7899. class="vedioBox"
  7900. style="margin-top: 10px"
  7901. v-if="
  7902. courseDetail.userid == userid ||
  7903. (courseDetail.course_teacher &&
  7904. courseDetail.course_teacher.indexOf(userid) != -1)
  7905. "
  7906. :style="{
  7907. borderRadius:
  7908. !(chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7909. .toolChoose[0].tool &&
  7910. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7911. .toolChoose[0].tool.length > 0) &&
  7912. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7913. .taskDetail == '' &&
  7914. vChapterData[0].length == 0 &&
  7915. fileC[0].length == 0
  7916. ? '0 0 20px 20px'
  7917. : '20px',
  7918. }"
  7919. >
  7920. <div
  7921. class="queTop"
  7922. @click="isClose = !isClose"
  7923. style="padding: 15px 0 15px 37px; justify-content: space-between"
  7924. >
  7925. <div class="queTopTitle">新增工具</div>
  7926. <div class="queTopRight">
  7927. <div
  7928. class="queTopClose"
  7929. v-if="isClose == 0"
  7930. >
  7931. 展开
  7932. <div class="closeImg">
  7933. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7934. </div>
  7935. </div>
  7936. <div
  7937. class="queTopClose"
  7938. v-if="isClose == 1"
  7939. >
  7940. 收缩
  7941. <div class="openImg">
  7942. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7943. </div>
  7944. </div>
  7945. <el-button
  7946. style="margin: 0 30px 0 auto"
  7947. type="primary"
  7948. size="small"
  7949. v-if="isClose == 1 && checktoolArray.length > 0"
  7950. @click.stop="addToolChoose"
  7951. >确定</el-button
  7952. >
  7953. </div>
  7954. </div>
  7955. <div
  7956. class="tool_work_box"
  7957. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7958. >
  7959. <div class="tool_box">
  7960. <div class="tool_type_box">
  7961. <div class="chooseWho">
  7962. <div
  7963. :class="toolType == 0 ? 'isChooseActive' : ''"
  7964. @click="(toolType = 0), $forceUpdate()"
  7965. >
  7966. 互动类
  7967. </div>
  7968. <div
  7969. :class="toolType == 1 ? 'isChooseActive' : ''"
  7970. @click="(toolType = 1), $forceUpdate()"
  7971. >
  7972. 思维类
  7973. </div>
  7974. <!-- <div
  7975. :class="toolType == 6 ? 'isChooseActive' : ''"
  7976. @click="(toolType = 6), $forceUpdate()"
  7977. >
  7978. 协作类
  7979. </div> -->
  7980. <div
  7981. :class="toolType == 2 ? 'isChooseActive' : ''"
  7982. @click="(toolType = 2), $forceUpdate()"
  7983. >
  7984. 测评类
  7985. </div>
  7986. <!-- <div
  7987. :class="toolType == 7 ? 'isChooseActive' : ''"
  7988. @click="(toolType = 7), $forceUpdate()"
  7989. >
  7990. 评价类
  7991. </div> -->
  7992. <div
  7993. :class="toolType == 3 ? 'isChooseActive' : ''"
  7994. @click="(toolType = 3), $forceUpdate()"
  7995. >
  7996. 编程类
  7997. </div>
  7998. <div
  7999. :class="toolType == 5 ? 'isChooseActive' : ''"
  8000. @click="(toolType = 5), $forceUpdate()"
  8001. >
  8002. 学科类
  8003. </div>
  8004. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  8005. " @click="(toolType = 5), $forceUpdate()">
  8006. 学科类
  8007. </div>
  8008. <div :class="toolType == 4 ? 'isChooseActive' : ''
  8009. " @click="(toolType = 4), $forceUpdate()">
  8010. 其他
  8011. </div> -->
  8012. </div>
  8013. </div>
  8014. <div>
  8015. <div class="toolSort" v-if="toolType == 0">
  8016. <div class="tool">
  8017. <div class="whiteBIcon" @click="addTools2(10)">
  8018. <img
  8019. src="../../assets/icon/thirdToolList/time.png"
  8020. alt
  8021. />
  8022. <div style="margin: 5px 0">倒计时</div>
  8023. </div>
  8024. <div class="check" @click="addTools2(10)">
  8025. <img
  8026. src="../../assets/icon/checkNo.png"
  8027. alt
  8028. v-if="checktoolArray.indexOf(10) == -1"
  8029. />
  8030. <div class="checkDiv" v-else>
  8031. <img src="../../assets/icon/checkedIs.png" alt /><span
  8032. >已选择</span
  8033. >
  8034. </div>
  8035. </div>
  8036. </div>
  8037. <div class="tool">
  8038. <div class="whiteBIcon" @click="addTools2(65)">
  8039. <img
  8040. src="../../assets/icon/firstToolList/pickPeople.png"
  8041. alt
  8042. />
  8043. <div style="margin: 5px 0">挑人</div>
  8044. </div>
  8045. <div class="check" @click="addTools2(65)">
  8046. <img
  8047. src="../../assets/icon/checkNo.png"
  8048. alt
  8049. v-if="checktoolArray.indexOf(65) == -1"
  8050. />
  8051. <div class="checkDiv" v-else>
  8052. <img src="../../assets/icon/checkedIs.png" alt /><span
  8053. >已选择</span
  8054. >
  8055. </div>
  8056. </div>
  8057. </div>
  8058. </div>
  8059. <div class="toolSort" v-if="toolType == 1">
  8060. <div class="tool">
  8061. <div class="whiteBIcon" @click="addTools2(7)">
  8062. <img
  8063. src="../../assets/icon/secondToolList/mindNetwork.png"
  8064. alt
  8065. />
  8066. <div style="margin: 5px 0">思维网格</div>
  8067. </div>
  8068. <div class="check" @click="addTools2(7)">
  8069. <img
  8070. src="../../assets/icon/checkNo.png"
  8071. alt
  8072. v-if="checktoolArray.indexOf(7) == -1"
  8073. />
  8074. <div class="checkDiv" v-else>
  8075. <img src="../../assets/icon/checkedIs.png" alt /><span
  8076. >已选择</span
  8077. >
  8078. </div>
  8079. </div>
  8080. </div>
  8081. <div class="tool">
  8082. <div class="whiteBIcon" @click="addTools2(1)">
  8083. <img
  8084. src="../../assets/icon/secondToolList/whiteBoard.png"
  8085. alt
  8086. />
  8087. <div style="margin: 5px 0">电子白板</div>
  8088. </div>
  8089. <div class="check" @click="addTools2(1)">
  8090. <img
  8091. src="../../assets/icon/checkNo.png"
  8092. alt
  8093. v-if="checktoolArray.indexOf(1) == -1"
  8094. />
  8095. <div class="checkDiv" v-else>
  8096. <img src="../../assets/icon/checkedIs.png" alt /><span
  8097. >已选择</span
  8098. >
  8099. </div>
  8100. </div>
  8101. </div>
  8102. <div class="tool">
  8103. <div class="whiteBIcon" @click="addTools2(52)">
  8104. <img
  8105. src="../../assets/icon/fourthToolList/text.png"
  8106. alt
  8107. />
  8108. <div style="margin: 5px 0">文档</div>
  8109. </div>
  8110. <div class="check" @click="addTools2(52)">
  8111. <img
  8112. src="../../assets/icon/checkNo.png"
  8113. alt
  8114. v-if="checktoolArray.indexOf(52) == -1"
  8115. />
  8116. <div class="checkDiv" v-else>
  8117. <img src="../../assets/icon/checkedIs.png" alt /><span
  8118. >已选择</span
  8119. >
  8120. </div>
  8121. </div>
  8122. </div>
  8123. <div class="tool">
  8124. <div class="whiteBIcon" @click="addTools2(3)">
  8125. <img
  8126. src="../../assets/icon/secondToolList/mindMapping.png"
  8127. alt
  8128. />
  8129. <div style="margin: 5px 0">思维导图</div>
  8130. </div>
  8131. <div class="check" @click="addTools2(3)">
  8132. <img
  8133. src="../../assets/icon/checkNo.png"
  8134. alt
  8135. v-if="checktoolArray.indexOf(3) == -1"
  8136. />
  8137. <div class="checkDiv" v-else>
  8138. <img src="../../assets/icon/checkedIs.png" alt /><span
  8139. >已选择</span
  8140. >
  8141. </div>
  8142. </div>
  8143. </div>
  8144. <div class="tool">
  8145. <div class="whiteBIcon" @click="addTools2(48)">
  8146. <img
  8147. src="../../assets/icon/fourthToolList/table.png"
  8148. alt
  8149. />
  8150. <div style="margin: 5px 0">表格</div>
  8151. </div>
  8152. <div class="check" @click="addTools2(48)">
  8153. <img
  8154. src="../../assets/icon/checkNo.png"
  8155. alt
  8156. v-if="checktoolArray.indexOf(48) == -1"
  8157. />
  8158. <div class="checkDiv" v-else>
  8159. <img src="../../assets/icon/checkedIs.png" alt /><span
  8160. >已选择</span
  8161. >
  8162. </div>
  8163. </div>
  8164. </div>
  8165. </div>
  8166. <div class="toolSort" v-if="toolType == 6">
  8167. <div v-show="tooC == 49">
  8168. <img
  8169. @click="addTools(tooC, toolIndex, taskCount)"
  8170. src="../../assets/icon/fourthToolList/group.png"
  8171. alt
  8172. />
  8173. <div style="margin: 5px 0">学生分组</div>
  8174. </div>
  8175. </div>
  8176. <div class="toolSort" v-if="toolType == 2">
  8177. <div class="tool">
  8178. <div class="whiteBIcon" @click="addTools2(16)">
  8179. <img
  8180. src="../../assets/icon/thirdToolList/work.png"
  8181. alt
  8182. />
  8183. <div style="margin: 5px 0">作业提交</div>
  8184. </div>
  8185. <div class="check" @click="addTools2(16)">
  8186. <img
  8187. src="../../assets/icon/checkNo.png"
  8188. alt
  8189. v-if="checktoolArray.indexOf(16) == -1"
  8190. />
  8191. <div class="checkDiv" v-else>
  8192. <img src="../../assets/icon/checkedIs.png" alt /><span
  8193. >已选择</span
  8194. >
  8195. </div>
  8196. </div>
  8197. </div>
  8198. <div class="tool">
  8199. <div class="whiteBIcon" @click="addTools2(50)">
  8200. <img
  8201. src="../../assets/icon/thirdToolList/plwork.png"
  8202. alt
  8203. />
  8204. <div style="margin: 5px 0">批量上传</div>
  8205. </div>
  8206. <div class="check" @click="addTools2(50)">
  8207. <img
  8208. src="../../assets/icon/checkNo.png"
  8209. alt
  8210. v-if="checktoolArray.indexOf(50) == -1"
  8211. />
  8212. <div class="checkDiv" v-else>
  8213. <img src="../../assets/icon/checkedIs.png" alt /><span
  8214. >已选择</span
  8215. >
  8216. </div>
  8217. </div>
  8218. </div>
  8219. </div>
  8220. <div class="toolSort" v-if="toolType == 3">
  8221. <div class="tool">
  8222. <div class="whiteBIcon" @click="addTools2(18)">
  8223. <img
  8224. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8225. alt
  8226. />
  8227. <div style="margin: 5px 0">训练平台</div>
  8228. </div>
  8229. <div class="check" @click="addTools2(18)">
  8230. <img
  8231. src="../../assets/icon/checkNo.png"
  8232. alt
  8233. v-if="checktoolArray.indexOf(18) == -1"
  8234. />
  8235. <div class="checkDiv" v-else>
  8236. <img src="../../assets/icon/checkedIs.png" alt /><span
  8237. >已选择</span
  8238. >
  8239. </div>
  8240. </div>
  8241. </div>
  8242. <div class="tool">
  8243. <div class="whiteBIcon" @click="addTools2(21)">
  8244. <img
  8245. src="../../assets/icon/fourthToolList/program.png"
  8246. alt
  8247. />
  8248. <div style="margin: 5px 0">AIoT Blockly</div>
  8249. </div>
  8250. <div class="check" @click="addTools2(21)">
  8251. <img
  8252. src="../../assets/icon/checkNo.png"
  8253. alt
  8254. v-if="checktoolArray.indexOf(21) == -1"
  8255. />
  8256. <div class="checkDiv" v-else>
  8257. <img src="../../assets/icon/checkedIs.png" alt /><span
  8258. >已选择</span
  8259. >
  8260. </div>
  8261. </div>
  8262. </div>
  8263. <!-- <div class="tool">
  8264. <div class="whiteBIcon" @click="addTools2(22)">
  8265. <img
  8266. src="../../assets/icon/fourthToolList/AIprogram2.png"
  8267. alt
  8268. />
  8269. <div style="margin: 5px 0">AI体验</div>
  8270. </div>
  8271. <div class="check" @click="addTools2(22)">
  8272. <img
  8273. src="../../assets/icon/checkNo.png"
  8274. alt
  8275. v-if="checktoolArray.indexOf(22) == -1"
  8276. />
  8277. <div class="checkDiv" v-else>
  8278. <img src="../../assets/icon/checkedIs.png" alt /><span
  8279. >已选择</span
  8280. >
  8281. </div>
  8282. </div>
  8283. </div> -->
  8284. <div class="tool">
  8285. <div class="whiteBIcon" @click="addTools2(23)">
  8286. <img
  8287. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8288. alt
  8289. />
  8290. <div style="margin: 5px 0">AI Python</div>
  8291. </div>
  8292. <div class="check" @click="addTools2(23)">
  8293. <img
  8294. src="../../assets/icon/checkNo.png"
  8295. alt
  8296. v-if="checktoolArray.indexOf(23) == -1"
  8297. />
  8298. <div class="checkDiv" v-else>
  8299. <img src="../../assets/icon/checkedIs.png" alt /><span
  8300. >已选择</span
  8301. >
  8302. </div>
  8303. </div>
  8304. </div>
  8305. <div class="tool">
  8306. <div class="whiteBIcon" @click="addTools2(24)">
  8307. <img
  8308. src="../../assets/icon/fourthToolList/AIprogram.png"
  8309. alt
  8310. />
  8311. <div style="margin: 5px 0">AI Blockly</div>
  8312. </div>
  8313. <div class="check" @click="addTools2(24)">
  8314. <img
  8315. src="../../assets/icon/checkNo.png"
  8316. alt
  8317. v-if="checktoolArray.indexOf(24) == -1"
  8318. />
  8319. <div class="checkDiv" v-else>
  8320. <img src="../../assets/icon/checkedIs.png" alt /><span
  8321. >已选择</span
  8322. >
  8323. </div>
  8324. </div>
  8325. </div>
  8326. <div class="tool">
  8327. <div class="whiteBIcon" @click="addTools2(32)">
  8328. <img
  8329. src="../../assets/icon/thirdToolList/code.png"
  8330. alt
  8331. />
  8332. <div style="margin: 5px 0">源码编辑</div>
  8333. </div>
  8334. <div class="check" @click="addTools2(32)">
  8335. <img
  8336. src="../../assets/icon/checkNo.png"
  8337. alt
  8338. v-if="checktoolArray.indexOf(32) == -1"
  8339. />
  8340. <div class="checkDiv" v-else>
  8341. <img src="../../assets/icon/checkedIs.png" alt /><span
  8342. >已选择</span
  8343. >
  8344. </div>
  8345. </div>
  8346. </div>
  8347. <div class="tool">
  8348. <div class="whiteBIcon" @click="addTools2(57)">
  8349. <img
  8350. src="../../assets/icon/fourthToolList/cocopi.png"
  8351. alt
  8352. />
  8353. <div style="margin: 5px 0">CocoPi</div>
  8354. </div>
  8355. <div class="check" @click="addTools2(57)">
  8356. <img
  8357. src="../../assets/icon/checkNo.png"
  8358. alt
  8359. v-if="checktoolArray.indexOf(57) == -1"
  8360. />
  8361. <div class="checkDiv" v-else>
  8362. <img src="../../assets/icon/checkedIs.png" alt /><span
  8363. >已选择</span
  8364. >
  8365. </div>
  8366. </div>
  8367. </div>
  8368. <div class="tool">
  8369. <div class="whiteBIcon" @click="addTools2(63)">
  8370. <img
  8371. src="../../assets/icon/fourthToolList/Wood.png"
  8372. alt
  8373. />
  8374. <div style="margin: 5px 0">海龟编程</div>
  8375. </div>
  8376. <div class="check" @click="addTools2(63)">
  8377. <img
  8378. src="../../assets/icon/checkNo.png"
  8379. alt
  8380. v-if="checktoolArray.indexOf(63) == -1"
  8381. />
  8382. <div class="checkDiv" v-else>
  8383. <img src="../../assets/icon/checkedIs.png" alt /><span
  8384. >已选择</span
  8385. >
  8386. </div>
  8387. </div>
  8388. </div>
  8389. </div>
  8390. <div class="toolSort" v-if="toolType == 7">
  8391. <div class="tool">
  8392. <div class="whiteBIcon" @click="addTools2(40)">
  8393. <img
  8394. src="../../assets/icon/secondToolList/eval.png"
  8395. alt
  8396. />
  8397. <div style="margin: 5px 0">个人评价</div>
  8398. </div>
  8399. <div class="check" @click="addTools2(40)">
  8400. <img
  8401. src="../../assets/icon/checkNo.png"
  8402. alt
  8403. v-if="checktoolArray.indexOf(40) == -1"
  8404. />
  8405. <div class="checkDiv" v-else>
  8406. <img src="../../assets/icon/checkedIs.png" alt /><span
  8407. >已选择</span
  8408. >
  8409. </div>
  8410. </div>
  8411. </div>
  8412. </div>
  8413. <div class="toolSort" v-if="toolType == 5">
  8414. <div class="tool">
  8415. <div class="whiteBIcon" @click="addTools2(28)">
  8416. <img
  8417. src="../../assets/icon/secondToolList/translation.png"
  8418. alt
  8419. />
  8420. <div style="margin: 5px 0">翻译</div>
  8421. </div>
  8422. <div class="check" @click="addTools2(28)">
  8423. <img
  8424. src="../../assets/icon/checkNo.png"
  8425. alt
  8426. v-if="checktoolArray.indexOf(28) == -1"
  8427. />
  8428. <div class="checkDiv" v-else>
  8429. <img src="../../assets/icon/checkedIs.png" alt /><span
  8430. >已选择</span
  8431. >
  8432. </div>
  8433. </div>
  8434. </div>
  8435. <div class="tool">
  8436. <div class="whiteBIcon" @click="addTools2(31)">
  8437. <img
  8438. src="../../assets/icon/secondToolList/networkPanel.png"
  8439. alt
  8440. />
  8441. <div style="margin: 5px 0">数字画板</div>
  8442. </div>
  8443. <div class="check" @click="addTools2(31)">
  8444. <img
  8445. src="../../assets/icon/checkNo.png"
  8446. alt
  8447. v-if="checktoolArray.indexOf(31) == -1"
  8448. />
  8449. <div class="checkDiv" v-else>
  8450. <img src="../../assets/icon/checkedIs.png" alt /><span
  8451. >已选择</span
  8452. >
  8453. </div>
  8454. </div>
  8455. </div>
  8456. <div class="tool">
  8457. <div class="whiteBIcon" @click="addTools2(39)">
  8458. <img
  8459. src="../../assets/icon/secondToolList/GeoGebra.png"
  8460. alt
  8461. />
  8462. <div style="margin: 5px 0">GeoGebra</div>
  8463. </div>
  8464. <div class="check" @click="addTools2(39)">
  8465. <img
  8466. src="../../assets/icon/checkNo.png"
  8467. alt
  8468. v-if="checktoolArray.indexOf(39) == -1"
  8469. />
  8470. <div class="checkDiv" v-else>
  8471. <img src="../../assets/icon/checkedIs.png" alt /><span
  8472. >已选择</span
  8473. >
  8474. </div>
  8475. </div>
  8476. </div>
  8477. <div class="tool">
  8478. <div class="whiteBIcon" @click="addTools2(66)">
  8479. <img
  8480. src="../../assets/icon/secondToolList/formulaEdi.png"
  8481. alt
  8482. />
  8483. <div style="margin: 5px 0">公式编辑</div>
  8484. </div>
  8485. <div class="check" @click="addTools2(66)">
  8486. <img
  8487. src="../../assets/icon/checkNo.png"
  8488. alt
  8489. v-if="checktoolArray.indexOf(66) == -1"
  8490. />
  8491. <div class="checkDiv" v-else>
  8492. <img src="../../assets/icon/checkedIs.png" alt /><span
  8493. >已选择</span
  8494. >
  8495. </div>
  8496. </div>
  8497. </div>
  8498. <div class="tool">
  8499. <div class="whiteBIcon" @click="addTools2(67)">
  8500. <img
  8501. src="../../assets/icon/secondToolList/molStr.png"
  8502. alt
  8503. />
  8504. <div style="margin: 5px 0">分子结构</div>
  8505. </div>
  8506. <div class="check" @click="addTools2(67)">
  8507. <img
  8508. src="../../assets/icon/checkNo.png"
  8509. alt
  8510. v-if="checktoolArray.indexOf(67) == -1"
  8511. />
  8512. <div class="checkDiv" v-else>
  8513. <img src="../../assets/icon/checkedIs.png" alt /><span
  8514. >已选择</span
  8515. >
  8516. </div>
  8517. </div>
  8518. </div>
  8519. <div class="tool">
  8520. <div class="whiteBIcon" @click="addTools2(68)">
  8521. <img
  8522. src="../../assets/icon/secondToolList/timeAxis.png"
  8523. alt
  8524. />
  8525. <div style="margin: 5px 0">时间轴</div>
  8526. </div>
  8527. <div class="check" @click="addTools2(68)">
  8528. <img
  8529. src="../../assets/icon/checkNo.png"
  8530. alt
  8531. v-if="checktoolArray.indexOf(68) == -1"
  8532. />
  8533. <div class="checkDiv" v-else>
  8534. <img src="../../assets/icon/checkedIs.png" alt /><span
  8535. >已选择</span
  8536. >
  8537. </div>
  8538. </div>
  8539. </div>
  8540. </div>
  8541. <div class="toolSort" v-if="toolType == 4">
  8542. <div class="tool">
  8543. <div class="whiteBIcon" @click="addTools2(26)">
  8544. <img
  8545. src="../../assets/icon/thirdToolList/courseDesign.png"
  8546. alt
  8547. />
  8548. <div style="margin: 5px 0">课程设计</div>
  8549. </div>
  8550. <div class="check" @click="addTools2(26)">
  8551. <img
  8552. src="../../assets/icon/checkNo.png"
  8553. alt
  8554. v-if="checktoolArray.indexOf(26) == -1"
  8555. />
  8556. <div class="checkDiv" v-else>
  8557. <img src="../../assets/icon/checkedIs.png" alt /><span
  8558. >已选择</span
  8559. >
  8560. </div>
  8561. </div>
  8562. </div>
  8563. <div class="tool">
  8564. <div class="whiteBIcon" @click="addTools2(25)">
  8565. <img
  8566. src="../../assets/icon/thirdToolList/evalua.png"
  8567. alt
  8568. />
  8569. <div style="margin: 5px 0">目标管理</div>
  8570. </div>
  8571. <div class="check" @click="addTools2(25)">
  8572. <img
  8573. src="../../assets/icon/checkNo.png"
  8574. alt
  8575. v-if="checktoolArray.indexOf(25) == -1"
  8576. />
  8577. <div class="checkDiv" v-else>
  8578. <img src="../../assets/icon/checkedIs.png" alt /><span
  8579. >已选择</span
  8580. >
  8581. </div>
  8582. </div>
  8583. </div>
  8584. </div>
  8585. </div>
  8586. </div>
  8587. </div>
  8588. </div>
  8589. </div>
  8590. <el-dialog
  8591. title="作业提交"
  8592. :visible.sync="dialogVisible"
  8593. :append-to-body="true"
  8594. width="500px"
  8595. :before-close="handleClose"
  8596. class="dialog_change"
  8597. >
  8598. <div class="marginT">
  8599. <div>上传文件</div>
  8600. <div
  8601. class="chapter_add"
  8602. @click="addImg($event)"
  8603. v-if="studyJuri[0].cover.length == 0"
  8604. >
  8605. <div class="up_photo">
  8606. <img src="../../assets/icon/uploadImg.png" alt />
  8607. </div>
  8608. <!-- <input
  8609. type="file"
  8610. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8611. style="display: none"
  8612. @change="beforeUpload1($event, 1)"
  8613. /> -->
  8614. <input
  8615. type="file"
  8616. accept="*"
  8617. style="display: none"
  8618. @change="beforeUpload1($event, 1)"
  8619. />
  8620. <!-- <input
  8621. type="file"
  8622. accept="image/*"
  8623. capture="camera"
  8624. style="display: none"
  8625. @change="beforeUpload1($event, 1)"
  8626. /> -->
  8627. </div>
  8628. <div
  8629. class="chapter_add"
  8630. style="
  8631. display: flex;
  8632. width: 100%;
  8633. flex-direction: row;
  8634. flex-wrap: wrap;
  8635. justify-content: flex-start;
  8636. padding: 15px 0;
  8637. "
  8638. v-if="studyJuri[0].cover.length > 0"
  8639. >
  8640. <div class="upCover">
  8641. <img
  8642. :src="studyJuri[0].cover[0].url"
  8643. alt
  8644. v-if="fileType == 0"
  8645. />
  8646. <img :src="word" alt v-else-if="fileType == 1" />
  8647. <img :src="video" alt v-else-if="fileType == 2" />
  8648. <img :src="word2" alt v-else-if="fileType == 3" />
  8649. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8650. <div class="deleteWord" @click="clean(1)">
  8651. <img src="../../assets/icon/deleteWorks.png" alt />
  8652. </div>
  8653. </div>
  8654. </div>
  8655. </div>
  8656. <div
  8657. class="upload_send"
  8658. @click="addCourseWorks(taskCount)"
  8659. v-if="!proVisible"
  8660. >
  8661. 提交
  8662. </div>
  8663. </el-dialog>
  8664. </div>
  8665. </div>
  8666. <div
  8667. class="pButton"
  8668. @click="(pzDialog = true), selectPz()"
  8669. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8670. >
  8671. <!-- 批 -->
  8672. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  8673. </div>
  8674. <div v-if="pzDialog == true" class="newDialogCss">
  8675. <div class="pzTop2">
  8676. <!-- <div>批注</div>
  8677. <div @click="pzDialog = false">
  8678. <img src="../../assets/close1.png" alt="" />
  8679. </div> -->
  8680. <div class="checkbox">
  8681. <div class="check" style="font-size: 25px">评课笔记</div>
  8682. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8683. </div>
  8684. </div>
  8685. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8686. <div class="pzListBox" v-if="pzList && pzList.length">
  8687. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8688. <div class="pzNavTop">
  8689. <div>批</div>
  8690. <div>
  8691. {{
  8692. pz.username && pz.username.length > 5
  8693. ? pz.username.substring(0, 5) + "..."
  8694. : pz.username
  8695. }}的批注
  8696. </div>
  8697. <div
  8698. class="pzDelete"
  8699. v-if="pz.userid == userid"
  8700. @click="deletePz(pz.id)"
  8701. >
  8702. 删除
  8703. </div>
  8704. </div>
  8705. <div
  8706. @click="checkImg(getImgList(pz.content))"
  8707. class="pzContent cont"
  8708. v-html="pz.content"
  8709. v-if="pz.type == '1'"
  8710. ></div>
  8711. <div class="pzContent" v-if="pz.type == '2'">
  8712. <audio :src="pz.content" controls="controls" ref="audio">
  8713. Your browser does not support the audio element.
  8714. </audio>
  8715. </div>
  8716. <div class="pzContent" v-if="pz.type == '3'">
  8717. <img
  8718. :src="pz.content"
  8719. style="width: 90%; margin: 0 auto; display: block"
  8720. @click="previewImg(pz.content)"
  8721. />
  8722. </div>
  8723. <div class="time">
  8724. {{ pz.time }}
  8725. </div>
  8726. </div>
  8727. </div>
  8728. <div class="noPz" v-else>
  8729. <img src="../../assets/icon/noPz.png" alt="" />
  8730. </div>
  8731. <div class="addPzButton">
  8732. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8733. 添加批注
  8734. </div>
  8735. <!-- <div class="img1">
  8736. <div @click="(addPzDialog = true), (pzType = 2)">
  8737. <img src="../../assets/audio.png" /><span>音频</span>
  8738. </div>
  8739. </div> -->
  8740. </div>
  8741. </div>
  8742. </div>
  8743. <div v-if="addPzDialog == true" class="addDialogCss">
  8744. <div class="pzTop">
  8745. <div class="teacherPz">
  8746. <div class="teacherPzImg">
  8747. <img src="../../assets/icon/teacherPz.png" alt="" />
  8748. </div>
  8749. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8750. </div>
  8751. <div @click="addPzDialog = false">
  8752. <img src="../../assets/close1.png" alt="" />
  8753. </div>
  8754. </div>
  8755. <div class="addPzBox">
  8756. <div class="addPzCheck">
  8757. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8758. >文本</span
  8759. >
  8760. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8761. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8762. >音频</span
  8763. >
  8764. </div>
  8765. <div style="height: calc(100% - 95px)">
  8766. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8767. v-if="pzType == 1"></textarea> -->
  8768. <editor-bar
  8769. class="binfo_input pzConText"
  8770. style="width: 100% !important"
  8771. placeholder="请输入任务描述"
  8772. v-model="pzConText"
  8773. @change="change"
  8774. v-if="pzType == 1"
  8775. ></editor-bar>
  8776. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8777. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8778. <div @click="addImg($event)">
  8779. <el-button type="primary">上传图片</el-button>
  8780. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8781. @change="beforeUpload1($event, 4)" />
  8782. </div>
  8783. </div> -->
  8784. </div>
  8785. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8786. 确定
  8787. </div>
  8788. </div>
  8789. </div>
  8790. <div v-if="proVisible" class="mask">
  8791. <div class="progressBox">
  8792. <!-- <div id="closePro" class="closeCss">
  8793. <img src="../../assets/icon/close.png" alt />
  8794. </div> -->
  8795. <div class="lbox">
  8796. <img src="../../assets/loading.gif" />上传中,请稍后
  8797. </div>
  8798. <div style="margin-bottom: 10px">
  8799. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8800. </div>
  8801. <el-progress
  8802. :text-inside="true"
  8803. :stroke-width="20"
  8804. :percentage="progress"
  8805. style="width: 80%"
  8806. ></el-progress>
  8807. </div>
  8808. </div>
  8809. <div v-if="proVisible2" class="mask">
  8810. <div class="progressBox">
  8811. <div class="lbox">
  8812. <img src="../../assets/loading.gif" />上传中,请稍后
  8813. </div>
  8814. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8815. </div>
  8816. </div>
  8817. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8818. <img width="100%" :src="dialogImageUrl" alt />
  8819. </el-dialog>
  8820. <el-dialog
  8821. :title="noteName != '' ? noteName : '查看问卷'"
  8822. :visible.sync="dialogVisible5"
  8823. :append-to-body="true"
  8824. width="1000px"
  8825. :before-close="handleClose"
  8826. class="dialog_diy dialog_diy3"
  8827. >
  8828. <div>
  8829. <div
  8830. class="a_add_title"
  8831. style="
  8832. display: flex;
  8833. flex-direction: row;
  8834. align-items: center;
  8835. justify-content: center;
  8836. "
  8837. >
  8838. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8839. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8840. </div>
  8841. <div class="a_addBox">
  8842. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8843. 题目内容
  8844. </div>
  8845. <div
  8846. class="a_add_box"
  8847. v-for="(item1, index1) in askJson.askCount"
  8848. :key="index1"
  8849. >
  8850. <div class="a_add_head">
  8851. <div style="display: flex">
  8852. <span class="askIndex"> {{ index1 + 1 }}</span>
  8853. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8854. </div>
  8855. <img
  8856. v-if="askJson.askJson[index1].img"
  8857. :src="askJson.askJson[index1].img"
  8858. style="height: 300px; margin-top: 10px; max-width: 100%"
  8859. />
  8860. </div>
  8861. <div class="a_add_body">
  8862. <div class="a_add_input">
  8863. <el-radio-group
  8864. v-model="radio[index1]"
  8865. v-if="
  8866. askJson.askJson[index1].type == '1' ||
  8867. !askJson.askJson[index1].type
  8868. "
  8869. >
  8870. <el-radio
  8871. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8872. .checkList"
  8873. :key="checkIndex"
  8874. :label="checkIndex"
  8875. :disabled="isAnswer"
  8876. class="redioStyle"
  8877. ><span v-html="item2"></span
  8878. ></el-radio>
  8879. </el-radio-group>
  8880. <el-checkbox-group
  8881. v-model="radio[index1]"
  8882. v-if="askJson.askJson[index1].type == '2'"
  8883. >
  8884. <el-checkbox
  8885. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8886. .checkList"
  8887. :key="checkIndex1"
  8888. :label="checkIndex1"
  8889. :disabled="isAnswer"
  8890. class="redioStyle"
  8891. ><span v-html="item2"></span>
  8892. </el-checkbox>
  8893. </el-checkbox-group>
  8894. </div>
  8895. </div>
  8896. </div>
  8897. </div>
  8898. </div>
  8899. <span slot="footer" class="dialog-footer">
  8900. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8901. >取 消</el-button
  8902. >
  8903. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8904. >确 定</el-button
  8905. >
  8906. </span>
  8907. </el-dialog>
  8908. <el-dialog
  8909. :title="noteName != '' ? noteName : '查看问卷'"
  8910. :visible.sync="dialogVisible5Teacher"
  8911. :append-to-body="true"
  8912. width="1000px"
  8913. :before-close="handleClose"
  8914. class="dialog_diy dialog_diy3"
  8915. >
  8916. <div>
  8917. <div class="w_name">
  8918. 学生姓名:<span>{{ sStudent.student }}</span>
  8919. </div>
  8920. <div
  8921. class="a_add_title"
  8922. style="
  8923. display: flex;
  8924. flex-direction: row;
  8925. align-items: center;
  8926. justify-content: center;
  8927. "
  8928. >
  8929. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8930. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8931. </div>
  8932. <div class="a_addBox">
  8933. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8934. 题目内容
  8935. </div>
  8936. <div
  8937. class="a_add_box"
  8938. v-for="(item1, index1) in askJson.askCount"
  8939. :key="index1"
  8940. >
  8941. <div class="a_add_head">
  8942. <div style="display: flex">
  8943. <span class="askIndex"> {{ index1 + 1 }}</span>
  8944. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8945. </div>
  8946. <img
  8947. v-if="askJson.askJson[index1].img"
  8948. :src="askJson.askJson[index1].img"
  8949. style="height: 300px; margin-top: 10px; max-width: 100%"
  8950. />
  8951. </div>
  8952. <div class="a_add_body">
  8953. <div class="a_add_input">
  8954. <el-radio-group
  8955. v-model="radio[index1]"
  8956. v-if="
  8957. askJson.askJson[index1].type == '1' ||
  8958. !askJson.askJson[index1].type
  8959. "
  8960. >
  8961. <el-radio
  8962. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8963. .checkList"
  8964. :key="checkIndex"
  8965. :label="checkIndex"
  8966. :disabled="isAnswer"
  8967. class="redioStyle"
  8968. ><span v-html="item2"></span
  8969. ></el-radio>
  8970. </el-radio-group>
  8971. <el-checkbox-group
  8972. v-model="radio[index1]"
  8973. v-if="askJson.askJson[index1].type == '2'"
  8974. >
  8975. <el-checkbox
  8976. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8977. .checkList"
  8978. :key="checkIndex1"
  8979. :label="checkIndex1"
  8980. :disabled="isAnswer"
  8981. class="redioStyle"
  8982. ><span v-html="item2"></span>
  8983. </el-checkbox>
  8984. </el-checkbox-group>
  8985. </div>
  8986. </div>
  8987. </div>
  8988. </div>
  8989. </div>
  8990. <span slot="footer" class="dialog-footer">
  8991. <el-button
  8992. @click="dialogVisible5Teacher = false"
  8993. v-show="noteName == ''"
  8994. >取 消</el-button
  8995. >
  8996. <el-button
  8997. type="primary"
  8998. @click="addStudentAskTeacher"
  8999. v-show="noteName == ''"
  9000. >确 定</el-button
  9001. >
  9002. </span>
  9003. </el-dialog>
  9004. <el-dialog
  9005. :title="noteName != '' ? noteName : '查看选择题'"
  9006. :visible.sync="dialogVisibleChoice"
  9007. :append-to-body="true"
  9008. width="1000px"
  9009. :before-close="handleClose"
  9010. class="dialog_diy dialog_diy3"
  9011. >
  9012. <div>
  9013. <div class="a_addBox">
  9014. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9015. 题目内容
  9016. </div>
  9017. <div
  9018. class="a_add_box"
  9019. v-for="(item1, index1) in testJson.testCount"
  9020. :key="index1"
  9021. >
  9022. <div class="a_add_head">
  9023. <div style="display: flex">
  9024. <span class="askIndex"> {{ index1 + 1 }}</span>
  9025. <div
  9026. v-if="testJson.testJson[index1].type == '1'"
  9027. style="margin-right: 5px; min-width: 70px"
  9028. >
  9029. (单选题)
  9030. </div>
  9031. <div
  9032. v-if="testJson.testJson[index1].type == '2'"
  9033. style="margin-right: 5px; min-width: 70px"
  9034. >
  9035. (多选题)
  9036. </div>
  9037. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9038. </div>
  9039. <img
  9040. v-if="testJson.testJson[index1].img"
  9041. :src="testJson.testJson[index1].img"
  9042. style="height: 300px; margin-top: 10px; max-width: 100%"
  9043. />
  9044. </div>
  9045. <div
  9046. class="timuImgBox"
  9047. v-if="
  9048. testJson.testJson[index1].timuList &&
  9049. testJson.testJson[index1].timuList.length
  9050. "
  9051. >
  9052. <div
  9053. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9054. :key="tIndex"
  9055. class="timuImg"
  9056. @click.stop="previewImg(timg.src)"
  9057. >
  9058. <img :src="timg.src" alt="" />
  9059. </div>
  9060. </div>
  9061. <div class="a_add_body">
  9062. <div class="a_add_input">
  9063. <el-radio-group
  9064. v-model="radio[index1]"
  9065. v-if="testJson.testJson[index1].type == '1'"
  9066. >
  9067. <div class="radioBox">
  9068. <el-radio
  9069. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9070. .checkList"
  9071. :key="checkIndex"
  9072. :label="checkIndex"
  9073. :disabled="isAnswer"
  9074. class="redioStyle"
  9075. >
  9076. <div
  9077. style="margin-right: 10px"
  9078. v-if="item2 && item2.imgType && item2.imgType == 1"
  9079. >
  9080. <div class="inImg" @click.stop="previewImg(item2.src)">
  9081. <img :src="item2.src" alt="" />
  9082. </div>
  9083. </div>
  9084. <span v-else v-html="item2"></span>
  9085. </el-radio>
  9086. </div>
  9087. </el-radio-group>
  9088. <el-checkbox-group
  9089. v-model="radio[index1]"
  9090. v-if="testJson.testJson[index1].type == '2'"
  9091. >
  9092. <div class="radioBox">
  9093. <el-checkbox
  9094. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9095. .checkList"
  9096. :key="checkIndex"
  9097. :label="checkIndex"
  9098. :disabled="isAnswer"
  9099. class="redioStyle"
  9100. >
  9101. <div
  9102. style="margin-right: 10px"
  9103. v-if="item2 && item2.imgType && item2.imgType == 1"
  9104. >
  9105. <div class="inImg" @click.stop="previewImg(item2.src)">
  9106. <img :src="item2.src" alt="" />
  9107. </div>
  9108. </div>
  9109. <span v-else v-html="item2"></span>
  9110. </el-checkbox>
  9111. </div>
  9112. </el-checkbox-group>
  9113. </div>
  9114. </div>
  9115. </div>
  9116. </div>
  9117. </div>
  9118. <span slot="footer" class="dialog-footer">
  9119. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9120. >取 消</el-button
  9121. >
  9122. <el-button
  9123. type="primary"
  9124. @click="addStudentTest"
  9125. v-show="noteName == ''"
  9126. >确 定</el-button
  9127. >
  9128. </span>
  9129. </el-dialog>
  9130. <el-dialog
  9131. :title="noteName != '' ? noteName : '查看选择题'"
  9132. :visible.sync="dialogVisibleChoiceTeacher"
  9133. :append-to-body="true"
  9134. width="1000px"
  9135. :before-close="handleClose"
  9136. class="dialog_diy dialog_diy3"
  9137. >
  9138. <div>
  9139. <div class="w_name">
  9140. 学生姓名:<span>{{ sStudent.student }}</span>
  9141. </div>
  9142. <div class="a_addBox">
  9143. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9144. 题目内容
  9145. </div>
  9146. <div
  9147. class="a_add_box"
  9148. v-for="(item1, index1) in testJson.testCount"
  9149. :key="index1"
  9150. >
  9151. <div class="a_add_head">
  9152. <div style="display: flex">
  9153. <span class="askIndex"> {{ index1 + 1 }}</span>
  9154. <div
  9155. v-if="testJson.testJson[index1].type == '1'"
  9156. style="margin-right: 5px; min-width: 70px"
  9157. >
  9158. (单选题)
  9159. </div>
  9160. <div
  9161. v-if="testJson.testJson[index1].type == '2'"
  9162. style="margin-right: 5px; min-width: 70px"
  9163. >
  9164. (多选题)
  9165. </div>
  9166. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9167. </div>
  9168. <img
  9169. v-if="testJson.testJson[index1].img"
  9170. :src="testJson.testJson[index1].img"
  9171. style="height: 300px; margin-top: 10px; max-width: 100%"
  9172. />
  9173. </div>
  9174. <div
  9175. class="timuImgBox"
  9176. v-if="
  9177. testJson.testJson[index1].timuList &&
  9178. testJson.testJson[index1].timuList.length
  9179. "
  9180. >
  9181. <div
  9182. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9183. :key="tIndex"
  9184. class="timuImg"
  9185. @click.stop="previewImg(timg.src)"
  9186. >
  9187. <img :src="timg.src" alt="" />
  9188. </div>
  9189. </div>
  9190. <div class="a_add_body">
  9191. <div class="a_add_input">
  9192. <el-radio-group
  9193. v-model="radio[index1]"
  9194. v-if="testJson.testJson[index1].type == '1'"
  9195. >
  9196. <div class="radioBox">
  9197. <el-radio
  9198. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9199. .checkList"
  9200. :key="checkIndex"
  9201. :label="checkIndex"
  9202. :disabled="isAnswer"
  9203. class="redioStyle"
  9204. >
  9205. <div
  9206. style="margin-right: 10px"
  9207. v-if="item2 && item2.imgType && item2.imgType == 1"
  9208. >
  9209. <div class="inImg" @click.stop="previewImg(item2.src)">
  9210. <img :src="item2.src" alt="" />
  9211. </div>
  9212. </div>
  9213. <span v-else v-html="item2"></span>
  9214. </el-radio>
  9215. </div>
  9216. </el-radio-group>
  9217. <el-checkbox-group
  9218. v-model="radio[index1]"
  9219. v-if="testJson.testJson[index1].type == '2'"
  9220. >
  9221. <div class="radioBox">
  9222. <el-checkbox
  9223. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9224. .checkList"
  9225. :key="checkIndex"
  9226. :label="checkIndex"
  9227. :disabled="isAnswer"
  9228. class="redioStyle"
  9229. >
  9230. <div
  9231. style="margin-right: 10px"
  9232. v-if="item2 && item2.imgType && item2.imgType == 1"
  9233. >
  9234. <div class="inImg" @click.stop="previewImg(item2.src)">
  9235. <img :src="item2.src" alt="" />
  9236. </div>
  9237. </div>
  9238. <span v-else v-html="item2"></span>
  9239. </el-checkbox>
  9240. </div>
  9241. </el-checkbox-group>
  9242. </div>
  9243. </div>
  9244. </div>
  9245. </div>
  9246. </div>
  9247. <span slot="footer" class="dialog-footer">
  9248. <el-button
  9249. @click="dialogVisibleChoiceTeacher = false"
  9250. v-show="noteName == ''"
  9251. >取 消</el-button
  9252. >
  9253. <el-button
  9254. type="primary"
  9255. @click="addStudentTestTeacher"
  9256. v-show="noteName == ''"
  9257. >确 定</el-button
  9258. >
  9259. </span>
  9260. </el-dialog>
  9261. <el-dialog
  9262. title="查看富文本"
  9263. :visible.sync="dialogVisible1"
  9264. :append-to-body="true"
  9265. width="500px"
  9266. :before-close="handleClose"
  9267. class="dialog_diy textCss"
  9268. >
  9269. <el-form style="font-size: 20px">
  9270. <el-form-item label="文本标题" class="textTitle">
  9271. <div style="font-size: 20px">{{ text.name }}</div>
  9272. </el-form-item>
  9273. <div>富文本内容</div>
  9274. <div
  9275. v-html="text.url"
  9276. style="font-size: 18px; padding: 40px 0 0 0"
  9277. ></div>
  9278. </el-form>
  9279. <span slot="footer" class="dialog-footer">
  9280. <el-button type="primary" @click="dialogVisible1 = false"
  9281. >确定</el-button
  9282. >
  9283. </span>
  9284. </el-dialog>
  9285. <el-dialog
  9286. title="文件预览"
  9287. :visible.sync="dialogVisible3"
  9288. width="50%"
  9289. :before-close="handleClose"
  9290. class="dialog_diy"
  9291. :class="{ fullStyle: full }"
  9292. >
  9293. <div slot="title" class="header-title">
  9294. <div style="color: #fff">文件预览</div>
  9295. <div style="position: absolute; top: 19px; right: 50px">
  9296. <img
  9297. src="../../assets/full.png"
  9298. style="height: 16px; cursor: pointer"
  9299. alt=""
  9300. @click="fullTools"
  9301. />
  9302. </div>
  9303. </div>
  9304. <pdf
  9305. v-if="showPDF"
  9306. :pdfUrl="pptImgUrl"
  9307. style="width: 100%; height: 520px; overflow: auto"
  9308. :class="{ fullStyle: full }"
  9309. ></pdf>
  9310. <iframe
  9311. v-else
  9312. :src="pptImgUrl"
  9313. frameborder="0"
  9314. width="100%"
  9315. height="600"
  9316. :class="{ fullStyle: full }"
  9317. ></iframe>
  9318. </el-dialog>
  9319. <el-dialog
  9320. title="文件预览"
  9321. :visible.sync="dialogVisible6"
  9322. width="50%"
  9323. :before-close="handleClose"
  9324. class="dialog_diy"
  9325. >
  9326. <iframe
  9327. :src="pptImgUrl1"
  9328. frameborder="0"
  9329. width="100%"
  9330. height="600"
  9331. ></iframe>
  9332. </el-dialog>
  9333. <el-dialog
  9334. title="提示"
  9335. :visible.sync="dialogVisible4"
  9336. :append-to-body="true"
  9337. width="800px"
  9338. :before-close="handleClose"
  9339. class="dialog_diy notice"
  9340. >
  9341. <div>此功能暂未开放!</div>
  9342. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9343. </el-dialog>
  9344. <el-dialog
  9345. title="问答"
  9346. :visible.sync="answerDialogVisible"
  9347. :append-to-body="true"
  9348. width="800px"
  9349. :before-close="handleClose"
  9350. class="dialog_diy"
  9351. >
  9352. <div>
  9353. <div
  9354. style="
  9355. display: flex;
  9356. flex-wrap: nowrap;
  9357. flex-direction: column;
  9358. position: relative;
  9359. "
  9360. >
  9361. <div class="queTop" style="padding: 20px 0 20px 0">
  9362. <div class="question">
  9363. <img src="../../assets/icon/question.png" alt />
  9364. </div>
  9365. <div class="queTitle">
  9366. <div style="width: 90px; min-width: 90px">提问:</div>
  9367. <div>{{ answerQ }}</div>
  9368. </div>
  9369. </div>
  9370. <div class="ediBottom">
  9371. <textarea
  9372. rows="6"
  9373. class="binfo_input"
  9374. cols
  9375. style="width: 95%; height: 120px"
  9376. v-model="questionAnswer"
  9377. ></textarea>
  9378. </div>
  9379. </div>
  9380. </div>
  9381. <div slot="footer">
  9382. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9383. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9384. </div>
  9385. </el-dialog>
  9386. <el-dialog
  9387. title="倒计时"
  9388. :visible.sync="timeDialogVisible"
  9389. :append-to-body="true"
  9390. width="800px"
  9391. :before-close="handleClose"
  9392. class="dialog_diy"
  9393. >
  9394. <div>
  9395. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  9396. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9397. </div>
  9398. <div slot="footer">
  9399. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9400. </div>
  9401. </el-dialog>
  9402. <el-dialog
  9403. title="权限设置"
  9404. :visible.sync="juriVisible"
  9405. :append-to-body="true"
  9406. width="400px"
  9407. :before-close="handleClose"
  9408. class="dialog_diy"
  9409. >
  9410. <div>
  9411. <div class="open_box">
  9412. <div class="switch_box">
  9413. <span>允许学生查看所有作业</span>
  9414. <el-switch
  9415. v-model="sIsOpen"
  9416. active-text=""
  9417. class="switchCss"
  9418. @change="updateSLook"
  9419. ></el-switch>
  9420. </div>
  9421. <div
  9422. class="switch_box"
  9423. v-if="
  9424. courseDetail.userid == userid ||
  9425. (courseDetail.course_teacher &&
  9426. courseDetail.course_teacher.indexOf(userid) != -1)
  9427. "
  9428. >
  9429. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9430. <span>禁止学生查看所有阶段</span>
  9431. <el-switch
  9432. v-model="IsLookOpen"
  9433. active-text=""
  9434. class="switchCss"
  9435. @change="updateLookOpen"
  9436. ></el-switch>
  9437. </div>
  9438. <div class="switch_box" v-if="courseDetail.userid == userid">
  9439. <span>开启跟随模式</span>
  9440. <el-switch
  9441. v-model="IsFollow"
  9442. active-text=""
  9443. class="switchCss"
  9444. @change="updateFollow"
  9445. ></el-switch>
  9446. </div>
  9447. </div>
  9448. </div>
  9449. <div slot="footer">
  9450. <el-button
  9451. style="background: #409efe; color: #fff"
  9452. @click="juriVisible = false"
  9453. >关 闭</el-button
  9454. >
  9455. </div>
  9456. </el-dialog>
  9457. <el-dialog
  9458. title="查看视频"
  9459. :visible.sync="videoVisible"
  9460. :append-to-body="true"
  9461. width="1000px"
  9462. :before-close="handleClose"
  9463. class="dialog_diy1"
  9464. >
  9465. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9466. <video-player
  9467. class="video-player vjs-custom-skin"
  9468. :playsinline="true"
  9469. :options="videoDetail"
  9470. @play="onPlayerPlay($event)"
  9471. style="width: 100%; height: 100%"
  9472. ></video-player>
  9473. </div>
  9474. <div slot="footer">
  9475. <el-button
  9476. style="background: #409efe; color: #fff"
  9477. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9478. >
  9479. 关 闭</el-button
  9480. >
  9481. </div>
  9482. </el-dialog>
  9483. <el-dialog
  9484. title="查看详情"
  9485. :visible.sync="commentDialogVisible"
  9486. :append-to-body="true"
  9487. width="800px"
  9488. :before-close="handleClose"
  9489. class="dialog_diy"
  9490. >
  9491. <div class="commentTop">
  9492. <div class="studentDetail">
  9493. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9494. <div class="nameAndTime">
  9495. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9496. <div>{{ commentDetail.time }}</div>
  9497. </div>
  9498. <div
  9499. class="returnBtn"
  9500. style="margin-left: auto; width: 80px"
  9501. v-if="
  9502. commentDetail.works &&
  9503. commentDetail.type == 0 &&
  9504. (tType == 1 || tType == 4)
  9505. "
  9506. @click="
  9507. showPicturePaint(
  9508. commentDetail.img ? commentDetail.img : commentDetail.works
  9509. )
  9510. "
  9511. >
  9512. 教师批注
  9513. </div>
  9514. </div>
  9515. <div
  9516. class="worksAnswer"
  9517. v-if="commentDetail.works && commentDetail.type == 2"
  9518. >
  9519. {{ JSON.parse(commentDetail.works)[0].answer }}
  9520. </div>
  9521. <div
  9522. class="worksAnswer"
  9523. v-if="commentDetail.works && commentDetail.type == 1"
  9524. >
  9525. <img
  9526. src="../../assets/teacherWork.png"
  9527. v-if="commentDetail.ateacher"
  9528. class="w_teachert"
  9529. />
  9530. <pdf
  9531. v-if="showPDF"
  9532. :pdfUrl="pptImgUrl"
  9533. style="width: 100%; height: 520px; overflow: auto"
  9534. :class="{ fullStyle: full }"
  9535. ></pdf>
  9536. <iframe
  9537. v-else
  9538. :src="pptImgUrl"
  9539. frameborder="0"
  9540. width="100%"
  9541. height="600"
  9542. :class="{ fullStyle: full }"
  9543. ></iframe>
  9544. </div>
  9545. <div
  9546. class="worksAnswer"
  9547. v-if="commentDetail.works && commentDetail.type == 0"
  9548. >
  9549. <img
  9550. src="../../assets/teacherWork.png"
  9551. v-if="commentDetail.ateacher"
  9552. class="w_teachert"
  9553. style="right: 105px"
  9554. />
  9555. <img
  9556. :src="commentDetail.works"
  9557. alt=""
  9558. @click="previewImg(commentDetail.works)"
  9559. />
  9560. </div>
  9561. <div
  9562. class="worksAnswer"
  9563. v-if="commentDetail.works && commentDetail.type == 3"
  9564. >
  9565. <img
  9566. src="../../assets/teacherWork.png"
  9567. v-if="commentDetail.ateacher"
  9568. class="w_teachert"
  9569. />
  9570. <video-player
  9571. class="video-player vjs-custom-skin"
  9572. :playsinline="true"
  9573. :options="videoDetail"
  9574. @play="onPlayerPlay($event)"
  9575. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9576. ></video-player>
  9577. </div>
  9578. <div
  9579. class="worksAnswer"
  9580. v-if="commentDetail.works && commentDetail.type == 10"
  9581. >
  9582. <div class="cont" v-html="commentDetail.works.text"></div>
  9583. </div>
  9584. <div
  9585. class="worksAnswer codeFileBox"
  9586. v-if="commentDetail.works && commentDetail.type == 12"
  9587. @click="downloadFile(commentDetail.works)"
  9588. >
  9589. <img src="../../assets/icon/codeFile.png" />
  9590. <div>点击下载文件</div>
  9591. </div>
  9592. <div
  9593. class="worksAnswer codeFileBox"
  9594. v-if="commentDetail.works && commentDetail.type == 15"
  9595. @click="
  9596. openCocoPi(
  9597. 57,
  9598. commentIndexJson.toolIndex,
  9599. commentDetail.userid,
  9600. commentDetail.sName
  9601. )
  9602. "
  9603. >
  9604. <img src="../../assets/icon/codeFile.png" />
  9605. <div>点击打开CocoPi</div>
  9606. </div>
  9607. <div
  9608. class="worksAnswer"
  9609. v-if="commentDetail.works && commentDetail.type == 13"
  9610. >
  9611. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9612. </div>
  9613. <div
  9614. class="worksAnswer"
  9615. v-if="commentDetail.works && commentDetail.type == 4"
  9616. >
  9617. <div class="evalCss">
  9618. <div class="nav">请选择星星进行评分</div>
  9619. <div class="middleBox" v-if="eScore.eStar">
  9620. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9621. <div class="nameAndrate">
  9622. <div>{{ e.value }}</div>
  9623. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9624. </div>
  9625. <div v-if="e.detail">{{ e.detail }}</div>
  9626. </div>
  9627. <div class="bz">
  9628. <textarea
  9629. disabled
  9630. rows="4"
  9631. class="pj"
  9632. style="
  9633. padding: 10px 5px;
  9634. width: 70%;
  9635. background: #f7f6f9;
  9636. font-size: 14px;
  9637. text-indent: 10px;
  9638. color: #000;
  9639. "
  9640. cols
  9641. v-model="eScore.eBzText"
  9642. placeholder="请输入评价内容..."
  9643. ></textarea>
  9644. </div>
  9645. </div>
  9646. </div>
  9647. </div>
  9648. <div class="comment">
  9649. <div class="commentList">
  9650. <div class="commentImg">
  9651. <img
  9652. @click="
  9653. isLikes(
  9654. commentDetail.wid,
  9655. userid,
  9656. 1,
  9657. null,
  9658. commentDetail.isLikes
  9659. )
  9660. "
  9661. :src="commentDetail.isLikes == true ? likes : noLikes"
  9662. alt=""
  9663. />
  9664. </div>
  9665. <div>{{ commentDetail.likesCount }}</div>
  9666. </div>
  9667. <div class="commentList">
  9668. <div class="commentImg">
  9669. <img src="../../assets/icon/comment/comment.png" alt="" />
  9670. </div>
  9671. <div>{{ commentDetail.commentCount }}</div>
  9672. </div>
  9673. </div>
  9674. <div class="drawPBox" v-if="commentDetail.img">
  9675. <span>教师批注</span>
  9676. <img
  9677. :src="commentDetail.img"
  9678. alt=""
  9679. @click="previewImg(commentDetail.img)"
  9680. />
  9681. <span
  9682. class="deleteImg"
  9683. v-if="tType == 1 || tType == 4"
  9684. @click.stop="deletePicturePaint(commentDetail.wid)"
  9685. style="
  9686. font-size: 14px;
  9687. width: auto !important;
  9688. color: #b4b4b4;
  9689. top: unset;
  9690. bottom: 0;
  9691. border: none;
  9692. padding: 0;
  9693. height: auto !important;
  9694. margin: 0;
  9695. "
  9696. >删除</span
  9697. >
  9698. </div>
  9699. </div>
  9700. <div class="commentBox">
  9701. <div class="pl">评论:</div>
  9702. <div style="max-height: 200px; overflow: auto">
  9703. <div
  9704. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9705. style="padding: 10px 0 0 0"
  9706. >
  9707. <div
  9708. class="studentDetail"
  9709. style="padding-top: 10px"
  9710. v-for="(co, coIndex) in commentDetail.commentJson"
  9711. :key="coIndex"
  9712. >
  9713. <div class="tx" style="min-width: 50px">
  9714. <img src="../../assets/avatar.png" alt="" />
  9715. </div>
  9716. <div class="plPerson">
  9717. <div class="plName">
  9718. <div>{{ co.commentPeople }}</div>
  9719. <div style="margin-left: 5px">
  9720. {{ co.commentTime }}
  9721. </div>
  9722. <div
  9723. class="deleteComment"
  9724. v-if="userid == co.userid"
  9725. @click="deleteComment(co.wid)"
  9726. >
  9727. 删除
  9728. </div>
  9729. </div>
  9730. <div class="plContent">{{ co.commentText }}</div>
  9731. </div>
  9732. </div>
  9733. </div>
  9734. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9735. </div>
  9736. </div>
  9737. <div style="margin-top: 10px">
  9738. <div class="displayBox">
  9739. <div
  9740. style="
  9741. color: #556db4;
  9742. font-size: 14px;
  9743. font-weight: bold;
  9744. padding-bottom: 10px;
  9745. "
  9746. >
  9747. 评价
  9748. </div>
  9749. <div class="easy_comment" v-if="false">
  9750. <div
  9751. v-for="(p, pIndex) in PlTextList"
  9752. :key="pIndex"
  9753. @click="fastText(p, 1)"
  9754. >
  9755. {{ p }}
  9756. </div>
  9757. </div>
  9758. </div>
  9759. <div>
  9760. <textarea
  9761. rows="3"
  9762. class="pj"
  9763. style="padding: 10px 5px"
  9764. cols
  9765. v-model="commentText"
  9766. placeholder="请输入评论"
  9767. ></textarea>
  9768. </div>
  9769. </div>
  9770. <div slot="footer">
  9771. <el-button
  9772. @click="
  9773. (commentDialogVisible = false),
  9774. (commentIndexJson = {}),
  9775. videoDetail.sources && videoDetail.sources[0]
  9776. ? (videoDetail.sources[0].src = '')
  9777. : ''
  9778. "
  9779. >取 消</el-button
  9780. >
  9781. <el-button
  9782. type="primary"
  9783. @click="addComment(commentDetail.wid, userid, 2)"
  9784. >确 定</el-button
  9785. >
  9786. </div>
  9787. </el-dialog>
  9788. <el-dialog
  9789. title="查看文档"
  9790. :visible.sync="fullDialogVisible"
  9791. :append-to-body="true"
  9792. width="100%"
  9793. :before-close="handleClose"
  9794. :show-close="false"
  9795. class="dialog_diy full_diy"
  9796. :class="{ full_diy2: fulltype == 3 }"
  9797. >
  9798. <div slot="title" class="header-title">
  9799. <div style="color: #fff">查看文档</div>
  9800. <div
  9801. @click="fullDialogVisible = false"
  9802. style="
  9803. cursor: pointer;
  9804. position: absolute;
  9805. top: 20px;
  9806. right: 20px;
  9807. color: #fff;
  9808. "
  9809. >
  9810. 退出全屏
  9811. </div>
  9812. </div>
  9813. <div style="height: 100%">
  9814. <div
  9815. class="wheel"
  9816. v-if="
  9817. fulltype == 2 &&
  9818. fullUrl.indexOf(
  9819. 'https://view.officeapps.live.com/op/view.aspx?src='
  9820. ) != -1
  9821. "
  9822. style="width: 95%; margin: 0 auto"
  9823. >
  9824. <iframe
  9825. style="width: 100%; height: 100%; border: none"
  9826. :src="fullUrl"
  9827. ></iframe>
  9828. </div>
  9829. <iframe
  9830. v-else-if="fulltype == 2"
  9831. style="width: 100%; height: 100%; border: none"
  9832. :src="fullUrl"
  9833. security="restricted"
  9834. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9835. ></iframe>
  9836. <pdf
  9837. v-else-if="fulltype == 3"
  9838. :pdfUrl="fullUrl"
  9839. style="width: 100%; height: 100%; overflow: auto"
  9840. ></pdf>
  9841. <div
  9842. class="wheel"
  9843. v-if="fulltype == 1"
  9844. style="
  9845. box-shadow: 0 0 6px 1px #f2f2f2;
  9846. width: 100%;
  9847. background: #f1f1f1;
  9848. "
  9849. >
  9850. <div class="title" style="width: 100%; box-sizing: border-box">
  9851. 查看文档
  9852. </div>
  9853. <el-form class="textBox" style="height: 90%">
  9854. <el-form-item class="textTitle">
  9855. <div style="font-size: 22px">
  9856. {{ fullUrl.name }}
  9857. </div>
  9858. </el-form-item>
  9859. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9860. <div
  9861. v-html="fullUrl.url"
  9862. class="textContent"
  9863. style="height: auto"
  9864. ></div>
  9865. </el-form>
  9866. </div>
  9867. </div>
  9868. <!-- <div slot="footer">
  9869. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9870. </div> -->
  9871. </el-dialog>
  9872. <el-dialog
  9873. title="个人评价"
  9874. :visible.sync="studentEvalDialogVisible"
  9875. :append-to-body="true"
  9876. width="800px"
  9877. :before-close="handleClose"
  9878. class="dialog_diy"
  9879. >
  9880. <div class="evalCss">
  9881. <div class="nav">请选择星星进行评分</div>
  9882. <div class="middleBox" v-if="eScore.eStar">
  9883. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9884. <div class="nameAndrate">
  9885. <div>{{ e.value }}</div>
  9886. <el-rate
  9887. v-model="eScore.eStar[eIndex]"
  9888. :disabled="isStar"
  9889. ></el-rate>
  9890. </div>
  9891. <div v-if="e.detail">{{ e.detail }}</div>
  9892. </div>
  9893. <div class="easy_comment" v-if="false">
  9894. <div
  9895. v-for="(p, pIndex) in PlTextList"
  9896. :key="pIndex"
  9897. @click="fastText(p, 2)"
  9898. >
  9899. {{ p }}
  9900. </div>
  9901. </div>
  9902. <div class="bz">
  9903. <textarea
  9904. :disabled="isStar"
  9905. rows="4"
  9906. class="pj"
  9907. style="
  9908. padding: 10px 5px;
  9909. width: 70%;
  9910. background: #f7f6f9;
  9911. font-size: 14px;
  9912. text-indent: 10px;
  9913. "
  9914. cols
  9915. v-model="eScore.eBzText"
  9916. placeholder="请输入评价内容..."
  9917. ></textarea>
  9918. </div>
  9919. </div>
  9920. </div>
  9921. <div slot="footer">
  9922. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9923. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9924. >确 定</el-button
  9925. >
  9926. </div>
  9927. </el-dialog>
  9928. <el-dialog
  9929. title="个人评价"
  9930. :visible.sync="studentEvalDialogVisibleTeacher"
  9931. :append-to-body="true"
  9932. width="800px"
  9933. :before-close="handleClose"
  9934. class="dialog_diy"
  9935. >
  9936. <div class="w_name">
  9937. 学生姓名:<span>{{ sStudent.student }}</span>
  9938. </div>
  9939. <div class="evalCss">
  9940. <div class="nav">请选择星星进行评分</div>
  9941. <div class="middleBox" v-if="eScore.eStar">
  9942. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9943. <div class="nameAndrate">
  9944. <div>{{ e.value }}</div>
  9945. <el-rate
  9946. v-model="eScore.eStar[eIndex]"
  9947. :disabled="isStar"
  9948. ></el-rate>
  9949. </div>
  9950. <div v-if="e.detail">{{ e.detail }}</div>
  9951. </div>
  9952. <div class="easy_comment" v-if="false">
  9953. <div
  9954. v-for="(p, pIndex) in PlTextList"
  9955. :key="pIndex"
  9956. @click="fastText(p, 2)"
  9957. >
  9958. {{ p }}
  9959. </div>
  9960. </div>
  9961. <div class="bz">
  9962. <textarea
  9963. :disabled="isStar"
  9964. rows="4"
  9965. class="pj"
  9966. style="
  9967. padding: 10px 5px;
  9968. width: 70%;
  9969. background: #f7f6f9;
  9970. font-size: 14px;
  9971. text-indent: 10px;
  9972. "
  9973. cols
  9974. v-model="eScore.eBzText"
  9975. placeholder="请输入评价内容..."
  9976. ></textarea>
  9977. </div>
  9978. </div>
  9979. </div>
  9980. <div slot="footer">
  9981. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9982. >取 消</el-button
  9983. >
  9984. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9985. >确 定</el-button
  9986. >
  9987. </div>
  9988. </el-dialog>
  9989. <el-dialog
  9990. title="选择填空"
  9991. :visible.sync="dialogVisibleSelect"
  9992. :append-to-body="true"
  9993. width="90%"
  9994. :before-close="handleClose"
  9995. class="dialog_diy dialog_diy3"
  9996. >
  9997. <div v-if="selectJson">
  9998. <div class="select_box2">
  9999. <div class="select_box2_title">
  10000. <div>选择填空</div>
  10001. <div>请选择对应的答案进行答题!</div>
  10002. </div>
  10003. <div class="select_box2_box">
  10004. <div class="select_box2_img">
  10005. <img
  10006. :src="selectJson.url"
  10007. @click="previewImg(selectJson.url)"
  10008. alt=""
  10009. />
  10010. </div>
  10011. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10012. <div style="padding-top: 15px">
  10013. <div class="select_answer_title" v-if="isSelect">
  10014. {{ selectAnswer.stu }}
  10015. </div>
  10016. <div class="select_answer_title" v-else>
  10017. 根据题目选择对应答案
  10018. </div>
  10019. <div
  10020. class="select_box2_answer_box"
  10021. v-for="(item2, checkIndex) in selectJson.select"
  10022. :key="checkIndex"
  10023. >
  10024. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10025. <el-select
  10026. :disabled="isSelect"
  10027. v-model="selectAnswer.answer[checkIndex]"
  10028. placeholder="请选择正确答案"
  10029. >
  10030. <el-option
  10031. v-for="(e, eIndex) in selectJson.select"
  10032. :key="eIndex"
  10033. :label="e"
  10034. :value="eIndex"
  10035. >
  10036. </el-option>
  10037. </el-select>
  10038. </div>
  10039. </div>
  10040. <div
  10041. class="rightAnswerCss"
  10042. v-if="isSelect && (tType == 1 || tType == 4)"
  10043. >
  10044. <div
  10045. v-for="(a, aIndex) in selectJson.answer"
  10046. :key="aIndex"
  10047. class="rightAnswer"
  10048. >
  10049. <div
  10050. v-if="selectAnswer.answer[aIndex] === a"
  10051. style="color: #767de1"
  10052. >
  10053. 回答正确
  10054. </div>
  10055. <div v-else>回答错误</div>
  10056. <div
  10057. style="margin-left: 10px"
  10058. v-if="selectAnswer.answer[aIndex] !== a"
  10059. >
  10060. 正确答案:
  10061. </div>
  10062. <div
  10063. :class="
  10064. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10065. "
  10066. >
  10067. {{ selectJson.select[a] }}
  10068. </div>
  10069. </div>
  10070. </div>
  10071. </div>
  10072. <div class="upAnswerCss">
  10073. <el-button
  10074. type="primary"
  10075. @click="addSelectAnswer"
  10076. v-if="!isSelect"
  10077. >提交答案</el-button
  10078. >
  10079. </div>
  10080. </div>
  10081. </div>
  10082. </div>
  10083. </el-dialog>
  10084. <el-dialog
  10085. title="选择填空"
  10086. :visible.sync="dialogVisibleSelectTeacher"
  10087. :append-to-body="true"
  10088. width="90%"
  10089. :before-close="handleClose"
  10090. class="dialog_diy dialog_diy3"
  10091. >
  10092. <div v-if="selectJson">
  10093. <div class="w_name">
  10094. 学生姓名:<span>{{ sStudent.student }}</span>
  10095. </div>
  10096. <div class="select_box2">
  10097. <div class="select_box2_title">
  10098. <div>选择填空</div>
  10099. <div>请选择对应的答案进行答题!</div>
  10100. </div>
  10101. <div class="select_box2_box">
  10102. <div class="select_box2_img">
  10103. <img
  10104. :src="selectJson.url"
  10105. @click="previewImg(selectJson.url)"
  10106. alt=""
  10107. />
  10108. </div>
  10109. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10110. <div style="padding-top: 15px">
  10111. <div class="select_answer_title" v-if="isSelect">
  10112. {{ selectAnswer.stu }}
  10113. </div>
  10114. <div class="select_answer_title" v-else>
  10115. 根据题目选择对应答案
  10116. </div>
  10117. <div
  10118. class="select_box2_answer_box"
  10119. v-for="(item2, checkIndex) in selectJson.select"
  10120. :key="checkIndex"
  10121. >
  10122. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10123. <el-select
  10124. :disabled="isSelect"
  10125. v-model="selectAnswer.answer[checkIndex]"
  10126. placeholder="请选择正确答案"
  10127. >
  10128. <el-option
  10129. v-for="(e, eIndex) in selectJson.select"
  10130. :key="eIndex"
  10131. :label="e"
  10132. :value="eIndex"
  10133. >
  10134. </el-option>
  10135. </el-select>
  10136. </div>
  10137. </div>
  10138. <div
  10139. class="rightAnswerCss"
  10140. v-if="isSelect && (tType == 1 || tType == 4)"
  10141. >
  10142. <div
  10143. v-for="(a, aIndex) in selectJson.answer"
  10144. :key="aIndex"
  10145. class="rightAnswer"
  10146. >
  10147. <div
  10148. v-if="selectAnswer.answer[aIndex] === a"
  10149. style="color: #767de1"
  10150. >
  10151. 回答正确
  10152. </div>
  10153. <div v-else>回答错误</div>
  10154. <div
  10155. style="margin-left: 10px"
  10156. v-if="selectAnswer.answer[aIndex] !== a"
  10157. >
  10158. 正确答案:
  10159. </div>
  10160. <div
  10161. :class="
  10162. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10163. "
  10164. >
  10165. {{ selectJson.select[a] }}
  10166. </div>
  10167. </div>
  10168. </div>
  10169. </div>
  10170. <div class="upAnswerCss">
  10171. <el-button
  10172. type="primary"
  10173. @click="addSelectAnswerTeacher"
  10174. v-if="!isSelect"
  10175. >提交答案</el-button
  10176. >
  10177. </div>
  10178. </div>
  10179. </div>
  10180. </div>
  10181. </el-dialog>
  10182. <el-dialog
  10183. title="教师评分"
  10184. :visible.sync="dialogVisibleScore"
  10185. :append-to-body="true"
  10186. width="800px"
  10187. :before-close="handleClose"
  10188. class="dialog_diy"
  10189. >
  10190. <div>
  10191. <div class="studentDetail">
  10192. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10193. <div class="nameAndTime">
  10194. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10195. <div>{{ commentDetail.time }}</div>
  10196. </div>
  10197. </div>
  10198. <div
  10199. class="worksAnswer"
  10200. v-if="commentDetail.works && commentDetail.type == 2"
  10201. >
  10202. {{ JSON.parse(commentDetail.works)[0].answer }}
  10203. </div>
  10204. <div
  10205. class="worksAnswer"
  10206. v-if="commentDetail.works && commentDetail.type == 1"
  10207. >
  10208. <pdf
  10209. v-if="showPDF"
  10210. :pdfUrl="pptImgUrl"
  10211. style="width: 100%; height: 520px; overflow: auto"
  10212. :class="{ fullStyle: full }"
  10213. ></pdf>
  10214. <iframe
  10215. v-else
  10216. :src="pptImgUrl"
  10217. frameborder="0"
  10218. width="100%"
  10219. height="600"
  10220. :class="{ fullStyle: full }"
  10221. ></iframe>
  10222. </div>
  10223. <div
  10224. class="worksAnswer"
  10225. v-if="commentDetail.works && commentDetail.type == 0"
  10226. >
  10227. <img
  10228. :src="commentDetail.works"
  10229. alt=""
  10230. @click="previewImg(commentDetail.works)"
  10231. />
  10232. </div>
  10233. <div
  10234. class="worksAnswer"
  10235. v-if="commentDetail.works && commentDetail.type == 3"
  10236. >
  10237. <video-player
  10238. class="video-player vjs-custom-skin"
  10239. :playsinline="true"
  10240. :options="videoDetail"
  10241. @play="onPlayerPlay($event)"
  10242. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10243. ></video-player>
  10244. </div>
  10245. <div
  10246. class="worksAnswer codeFileBox"
  10247. v-if="commentDetail.works && commentDetail.type == 12"
  10248. @click="downloadFile(commentDetail.works)"
  10249. >
  10250. <img src="../../assets/icon/codeFile.png" />
  10251. <div>点击下载文件</div>
  10252. </div>
  10253. <div
  10254. class="worksAnswer codeFileBox"
  10255. v-if="commentDetail.works && commentDetail.type == 15"
  10256. @click="
  10257. openCocoPi(
  10258. 57,
  10259. commentIndexJson.toolIndex,
  10260. commentDetail.userid,
  10261. commentDetail.sName
  10262. )
  10263. "
  10264. >
  10265. <img src="../../assets/icon/codeFile.png" />
  10266. <div>点击打开CocoPi</div>
  10267. </div>
  10268. <div
  10269. class="worksAnswer"
  10270. v-if="commentDetail.works && commentDetail.type == 13"
  10271. >
  10272. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10273. </div>
  10274. <div class="scoreBox">
  10275. <span class="t">请输入分数</span>
  10276. <el-input-number
  10277. :disabled="courseDetail.userid != userid"
  10278. v-model="wScore"
  10279. :controls="false"
  10280. :min="0"
  10281. :max="100"
  10282. ></el-input-number>
  10283. </div>
  10284. <div class="scoreDetailBox">
  10285. <span class="t">评分评论</span>
  10286. <el-input
  10287. type="textarea"
  10288. :rows="5"
  10289. :disabled="courseDetail.userid != userid"
  10290. resize="none"
  10291. v-model="scoreDetail"
  10292. placeholder="请输入对学生的评价"
  10293. >
  10294. </el-input>
  10295. </div>
  10296. </div>
  10297. <span slot="footer" class="dialog-footer">
  10298. <el-button
  10299. @click="
  10300. (dialogVisibleScore = false),
  10301. (commentIndexJson = {}),
  10302. videoDetail.sources && videoDetail.sources[0]
  10303. ? (videoDetail.sources[0].src = '')
  10304. : ''
  10305. "
  10306. >取 消</el-button
  10307. >
  10308. <el-button
  10309. type="primary"
  10310. v-if="courseDetail.userid == userid"
  10311. @click="scoreWork(commentDetail.wid)"
  10312. >确 定
  10313. </el-button>
  10314. </span>
  10315. </el-dialog>
  10316. <el-dialog
  10317. title="连词成句"
  10318. :visible.sync="dialogVisibleSentence"
  10319. :append-to-body="true"
  10320. width="1000px"
  10321. :before-close="handleClose"
  10322. class="dialog_diy dialog_diy3"
  10323. >
  10324. <div>
  10325. <div class="sentenBox">
  10326. <div
  10327. v-for="(st, stIndex) in sentenceList"
  10328. :key="stIndex"
  10329. style="padding-bottom: 20px"
  10330. >
  10331. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10332. <div class="cardList" v-if="st.chooseSenList">
  10333. <div class="cardBox">
  10334. <div
  10335. v-for="(r, rIndex) in st.chooseSenList"
  10336. :key="rIndex"
  10337. @click="returnCard(r, stIndex, rIndex)"
  10338. >
  10339. <el-tooltip
  10340. class="item"
  10341. effect="light"
  10342. :content="r"
  10343. placement="top"
  10344. v-if="r != '' && r != undefined"
  10345. >
  10346. <div
  10347. :class="{
  10348. isCard: r,
  10349. isChooseCard: r == '' || r == undefined,
  10350. }"
  10351. >
  10352. <div>{{ r }}</div>
  10353. </div>
  10354. </el-tooltip>
  10355. <div
  10356. :class="{
  10357. isCard: r,
  10358. isChooseCard: r == '' || r == undefined,
  10359. }"
  10360. v-else
  10361. >
  10362. <div>{{ r }}</div>
  10363. </div>
  10364. </div>
  10365. </div>
  10366. </div>
  10367. <div class="cardList" v-if="st.addChangeSen">
  10368. <div class="cardBox">
  10369. <div
  10370. v-for="(s, sIndex) in st.addChangeSen"
  10371. :key="sIndex"
  10372. @click="setRightAnswer(s, stIndex, sIndex)"
  10373. >
  10374. <el-tooltip
  10375. class="item"
  10376. effect="light"
  10377. :content="s"
  10378. placement="top"
  10379. v-if="s != '' && s != undefined"
  10380. >
  10381. <div
  10382. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10383. >
  10384. <div>{{ s }}</div>
  10385. </div>
  10386. </el-tooltip>
  10387. <div
  10388. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10389. v-else
  10390. >
  10391. <div>{{ s }}</div>
  10392. </div>
  10393. </div>
  10394. </div>
  10395. </div>
  10396. </div>
  10397. </div>
  10398. </div>
  10399. <span slot="footer" class="dialog-footer">
  10400. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10401. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10402. </span>
  10403. </el-dialog>
  10404. <el-dialog
  10405. title="连词成句"
  10406. :visible.sync="dialogVisibleSentenceTeacher"
  10407. :append-to-body="true"
  10408. width="1000px"
  10409. :before-close="handleClose"
  10410. class="dialog_diy dialog_diy3"
  10411. >
  10412. <div>
  10413. <div class="w_name">
  10414. 学生姓名:<span>{{ sStudent.student }}</span>
  10415. </div>
  10416. <div class="sentenBox">
  10417. <div
  10418. v-for="(st, stIndex) in sentenceList"
  10419. :key="stIndex"
  10420. style="padding-bottom: 20px"
  10421. >
  10422. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10423. <div class="cardList" v-if="st.chooseSenList">
  10424. <div class="cardBox">
  10425. <div
  10426. v-for="(r, rIndex) in st.chooseSenList"
  10427. :key="rIndex"
  10428. @click="returnCard(r, stIndex, rIndex)"
  10429. >
  10430. <el-tooltip
  10431. class="item"
  10432. effect="light"
  10433. :content="r"
  10434. placement="top"
  10435. v-if="r != '' && r != undefined"
  10436. >
  10437. <div
  10438. :class="{
  10439. isCard: r,
  10440. isChooseCard: r == '' || r == undefined,
  10441. }"
  10442. >
  10443. <div>{{ r }}</div>
  10444. </div>
  10445. </el-tooltip>
  10446. <div
  10447. :class="{
  10448. isCard: r,
  10449. isChooseCard: r == '' || r == undefined,
  10450. }"
  10451. v-else
  10452. >
  10453. <div>{{ r }}</div>
  10454. </div>
  10455. </div>
  10456. </div>
  10457. </div>
  10458. <div class="cardList" v-if="st.addChangeSen">
  10459. <div class="cardBox">
  10460. <div
  10461. v-for="(s, sIndex) in st.addChangeSen"
  10462. :key="sIndex"
  10463. @click="setRightAnswer(s, stIndex, sIndex)"
  10464. >
  10465. <el-tooltip
  10466. class="item"
  10467. effect="light"
  10468. :content="s"
  10469. placement="top"
  10470. v-if="s != '' && s != undefined"
  10471. >
  10472. <div
  10473. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10474. >
  10475. <div>{{ s }}</div>
  10476. </div>
  10477. </el-tooltip>
  10478. <div
  10479. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10480. v-else
  10481. >
  10482. <div>{{ s }}</div>
  10483. </div>
  10484. </div>
  10485. </div>
  10486. </div>
  10487. </div>
  10488. </div>
  10489. </div>
  10490. <span slot="footer" class="dialog-footer">
  10491. <el-button @click="dialogVisibleSentenceTeacher = false"
  10492. >取 消</el-button
  10493. >
  10494. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10495. </span>
  10496. </el-dialog>
  10497. <el-dialog
  10498. title="连词成句"
  10499. :visible.sync="dialogVisibleSentence1"
  10500. :append-to-body="true"
  10501. width="1000px"
  10502. :before-close="handleClose"
  10503. class="dialog_diy dialog_diy3"
  10504. >
  10505. <div>
  10506. <div class="sentenBox">
  10507. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10508. {{ sentenceList1.stuName }}的作业
  10509. </div>
  10510. <div
  10511. v-for="(st, stIndex) in sentenceList1"
  10512. :key="stIndex"
  10513. style="padding-bottom: 20px"
  10514. >
  10515. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10516. 第{{ stIndex + 1 }}题
  10517. </div>
  10518. <div class="isWrong">
  10519. <div class="cardList1" v-if="st.chooseSenList">
  10520. <div class="cardBox">
  10521. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10522. <el-tooltip
  10523. class="item"
  10524. effect="light"
  10525. :content="s"
  10526. placement="top"
  10527. >
  10528. <div class="isCard">
  10529. <div>{{ s }}</div>
  10530. </div>
  10531. </el-tooltip>
  10532. </div>
  10533. </div>
  10534. <div class="cardAnswerBox">
  10535. 组成句子:{{ st.chooseSenList.join(" ") }}
  10536. </div>
  10537. </div>
  10538. <div
  10539. class="answerRight isTj"
  10540. v-if="
  10541. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10542. (tType == 1 || tType == 4)
  10543. "
  10544. >
  10545. <div class="isTjImg">
  10546. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10547. </div>
  10548. <div>回答正确</div>
  10549. </div>
  10550. <div
  10551. class="answerRight isTj"
  10552. v-if="
  10553. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10554. (tType == 1 || tType == 4)
  10555. "
  10556. >
  10557. <div class="isTjImg">
  10558. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10559. </div>
  10560. <div>回答错误</div>
  10561. </div>
  10562. </div>
  10563. <div
  10564. v-if="
  10565. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10566. (tType == 1 || tType == 4)
  10567. "
  10568. >
  10569. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10570. <div
  10571. class="cardList"
  10572. v-if="st.rightAnswer"
  10573. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10574. >
  10575. <div class="cardBox">
  10576. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10577. <el-tooltip
  10578. class="item"
  10579. effect="light"
  10580. :content="r"
  10581. placement="top"
  10582. >
  10583. <div class="isCard1">
  10584. <div>{{ r }}</div>
  10585. </div>
  10586. </el-tooltip>
  10587. </div>
  10588. </div>
  10589. <div class="cardAnswerBox">
  10590. 组成句子:{{ st.rightAnswer.join(" ") }}
  10591. </div>
  10592. </div>
  10593. </div>
  10594. </div>
  10595. </div>
  10596. </div>
  10597. <span slot="footer" class="dialog-footer">
  10598. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10599. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10600. >确 定</el-button
  10601. >
  10602. </span>
  10603. </el-dialog>
  10604. <el-dialog
  10605. title="提交作业"
  10606. :visible.sync="dialogVisibleWorks"
  10607. :append-to-body="true"
  10608. width="500px"
  10609. :before-close="handleClose"
  10610. class="dialog_change"
  10611. >
  10612. <div class="marginT">
  10613. <div class="w_name">
  10614. 学生姓名:<span>{{ sStudent.student }}</span>
  10615. </div>
  10616. <div>上传文件</div>
  10617. <div
  10618. class="chapter_add"
  10619. @click="addImg($event)"
  10620. v-if="studyJuri[0].cover.length == 0"
  10621. >
  10622. <div class="up_photo">
  10623. <img src="../../assets/uploadImg2.png" alt />
  10624. </div>
  10625. <!-- <input
  10626. type="file"
  10627. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10628. style="display: none"
  10629. @change="beforeUpload1($event, 1)"
  10630. /> -->
  10631. <input
  10632. type="file"
  10633. accept="*"
  10634. style="display: none"
  10635. @change="beforeUpload1($event, 1)"
  10636. />
  10637. </div>
  10638. <!-- capture="camera" -->
  10639. <div
  10640. class="chapter_add"
  10641. style="
  10642. display: flex;
  10643. width: 100%;
  10644. flex-direction: row;
  10645. flex-wrap: wrap;
  10646. justify-content: flex-start;
  10647. padding: 15px 0;
  10648. "
  10649. v-if="studyJuri[0].cover.length > 0"
  10650. >
  10651. <div class="upCover">
  10652. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10653. <img :src="word" alt v-else-if="fileType == 1" />
  10654. <img :src="video" alt v-else-if="fileType == 2" />
  10655. <img :src="word2" alt v-else-if="fileType == 3" />
  10656. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10657. <div class="deleteWord" @click="clean(1)">
  10658. <img src="../../assets/icon/deleteWorks.png" alt />
  10659. </div>
  10660. </div>
  10661. </div>
  10662. </div>
  10663. <div
  10664. class="upload_send"
  10665. @click="addCourseWorksTeacher(taskCount)"
  10666. v-if="!proVisible"
  10667. >
  10668. 提交
  10669. </div>
  10670. </el-dialog>
  10671. <el-dialog
  10672. title="问答"
  10673. :visible.sync="answerDialogVisibleTeacher"
  10674. :append-to-body="true"
  10675. width="800px"
  10676. :before-close="handleClose"
  10677. class="dialog_diy"
  10678. >
  10679. <div>
  10680. <div class="w_name">
  10681. 学生姓名:<span>{{ sStudent.student }}</span>
  10682. </div>
  10683. <div
  10684. style="
  10685. display: flex;
  10686. flex-wrap: nowrap;
  10687. flex-direction: column;
  10688. position: relative;
  10689. "
  10690. >
  10691. <div class="queTop" style="padding: 20px 0 20px 0">
  10692. <div class="question">
  10693. <img src="../../assets/icon/question.png" alt />
  10694. </div>
  10695. <div class="queTitle">
  10696. <div style="width: 90px; min-width: 90px">提问:</div>
  10697. <div>{{ answerQ }}</div>
  10698. </div>
  10699. </div>
  10700. <div class="ediBottom">
  10701. <textarea
  10702. rows="6"
  10703. class="binfo_input"
  10704. cols
  10705. style="width: 95%; height: 120px"
  10706. v-model="questionAnswer"
  10707. ></textarea>
  10708. </div>
  10709. </div>
  10710. </div>
  10711. <div slot="footer">
  10712. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10713. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10714. </div>
  10715. </el-dialog>
  10716. <ImgDraw
  10717. :drawShow="drawShow"
  10718. @closeDraw="closeDraw"
  10719. @addImgDraw="addImgDraw"
  10720. :bg="bg"
  10721. ></ImgDraw>
  10722. <el-dialog
  10723. title="表格"
  10724. :visible.sync="dialogVisibleTable"
  10725. :append-to-body="true"
  10726. width="95%"
  10727. :before-close="handleClose"
  10728. class="dialog_diy"
  10729. >
  10730. <el-form>
  10731. <div>表格内容</div>
  10732. <Table
  10733. v-model="tableJson.text"
  10734. @change="change"
  10735. v-if="dialogVisibleTable"
  10736. ></Table>
  10737. </el-form>
  10738. <span slot="footer" class="dialog-footer">
  10739. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10740. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10741. </span>
  10742. </el-dialog>
  10743. <el-dialog
  10744. title="表格"
  10745. :visible.sync="dialogVisibleTableTeacher"
  10746. :append-to-body="true"
  10747. width="95%"
  10748. :before-close="handleClose"
  10749. class="dialog_diy"
  10750. >
  10751. <el-form>
  10752. <div class="w_name">
  10753. 学生姓名:<span>{{ sStudent.student }}</span>
  10754. </div>
  10755. <div>表格内容</div>
  10756. <Table
  10757. v-model="tableJson.text"
  10758. @change="change"
  10759. v-if="dialogVisibleTableTeacher"
  10760. ></Table>
  10761. </el-form>
  10762. <span slot="footer" class="dialog-footer">
  10763. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10764. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10765. </span>
  10766. </el-dialog>
  10767. <el-dialog
  10768. title="文档"
  10769. :visible.sync="dialogVisibleWord"
  10770. :append-to-body="true"
  10771. width="95%"
  10772. :before-close="handleClose"
  10773. class="dialog_diy"
  10774. >
  10775. <el-form>
  10776. <div>文档内容</div>
  10777. <editor-bar
  10778. v-model="wordJson.text"
  10779. v-if="dialogVisibleWord"
  10780. ></editor-bar>
  10781. </el-form>
  10782. <span slot="footer" class="dialog-footer">
  10783. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10784. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10785. </span>
  10786. </el-dialog>
  10787. <el-dialog
  10788. title="文档"
  10789. :visible.sync="dialogVisibleWordTeacher"
  10790. :append-to-body="true"
  10791. width="95%"
  10792. :before-close="handleClose"
  10793. class="dialog_diy"
  10794. >
  10795. <el-form>
  10796. <div class="w_name">
  10797. 学生姓名:<span>{{ sStudent.student }}</span>
  10798. </div>
  10799. <div>文档内容</div>
  10800. <editor-bar
  10801. v-model="wordJson.text"
  10802. v-if="dialogVisibleWordTeacher"
  10803. ></editor-bar>
  10804. </el-form>
  10805. <span slot="footer" class="dialog-footer">
  10806. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10807. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10808. </span>
  10809. </el-dialog>
  10810. <el-dialog
  10811. title="表格"
  10812. :visible.sync="dialogVisibleTable2"
  10813. :append-to-body="true"
  10814. width="95%"
  10815. :before-close="handleClose"
  10816. class="dialog_diy"
  10817. >
  10818. <el-form>
  10819. <div class="cont" v-html="tableJson.text"></div>
  10820. </el-form>
  10821. <span slot="footer" class="dialog-footer">
  10822. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10823. </span>
  10824. </el-dialog>
  10825. <el-dialog
  10826. title="文档"
  10827. :visible.sync="dialogVisibleTable3"
  10828. :append-to-body="true"
  10829. width="95%"
  10830. :before-close="handleClose"
  10831. class="dialog_diy"
  10832. >
  10833. <el-form>
  10834. <div class="cont" v-html="tableJson.text"></div>
  10835. </el-form>
  10836. <span slot="footer" class="dialog-footer">
  10837. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10838. </span>
  10839. </el-dialog>
  10840. <el-dialog
  10841. title="分组设置"
  10842. :visible.sync="dialogVisibleGroup"
  10843. :append-to-body="true"
  10844. width="95%"
  10845. :before-close="handleClose"
  10846. class="dialog_diy"
  10847. >
  10848. <div v-if="dialogVisibleGroup">
  10849. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10850. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10851. 提示:需要锁定位置,才能点击头像修改座位。
  10852. </div>
  10853. <div
  10854. type="primary"
  10855. v-if="groupJson.islock == 1"
  10856. class="returnBtn"
  10857. style="background-color: #225bc7"
  10858. @click="lockChair"
  10859. >
  10860. 锁定位置
  10861. </div>
  10862. <div
  10863. type="primary"
  10864. v-else
  10865. class="returnBtn"
  10866. style="background-color: #225bc7"
  10867. @click="lockChair"
  10868. >
  10869. 解锁位置
  10870. </div>
  10871. <div
  10872. type="primary"
  10873. @click="updateGroup"
  10874. class="returnBtn"
  10875. style="background-color: #225bc7"
  10876. >
  10877. 分组设置
  10878. </div>
  10879. </div>
  10880. <div>
  10881. <div
  10882. class="g_d_box"
  10883. v-if="groupJson.group && groupStudent[toolindex]"
  10884. >
  10885. <div
  10886. class="g_d_group"
  10887. v-for="(g, gindex) in groupJson.group"
  10888. :key="gindex"
  10889. >
  10890. <div class="g_d_group_chair">
  10891. <div v-if="groupJson.number > 1">
  10892. <span
  10893. :class="{
  10894. isChair:
  10895. groupStudent[toolindex][gindex] &&
  10896. groupStudent[toolindex][gindex][0],
  10897. updateChair:
  10898. courseDetail.userid == userid &&
  10899. groupStudent[toolindex][gindex] &&
  10900. groupStudent[toolindex][gindex][0] &&
  10901. groupJson.islock == 2,
  10902. }"
  10903. ><span
  10904. class="updateChairBtn"
  10905. @click="
  10906. updateGroupChair(
  10907. groupStudent[toolindex][gindex] &&
  10908. groupStudent[toolindex][gindex][0]
  10909. )
  10910. "
  10911. >修改</span
  10912. ></span
  10913. ><span>{{
  10914. groupStudent[toolindex][gindex] &&
  10915. groupStudent[toolindex][gindex][0]
  10916. ? groupStudent[toolindex][gindex] &&
  10917. groupStudent[toolindex][gindex][0].name
  10918. : "空位置"
  10919. }}</span>
  10920. </div>
  10921. <div v-if="groupJson.number > 4">
  10922. <span
  10923. :class="{
  10924. isChair:
  10925. groupStudent[toolindex][gindex] &&
  10926. groupStudent[toolindex][gindex][4],
  10927. updateChair:
  10928. courseDetail.userid == userid &&
  10929. groupStudent[toolindex][gindex] &&
  10930. groupStudent[toolindex][gindex][4] &&
  10931. groupJson.islock == 2,
  10932. }"
  10933. ><span
  10934. class="updateChairBtn"
  10935. @click="
  10936. updateGroupChair(
  10937. groupStudent[toolindex][gindex] &&
  10938. groupStudent[toolindex][gindex][4]
  10939. )
  10940. "
  10941. >修改</span
  10942. ></span
  10943. ><span>{{
  10944. groupStudent[toolindex][gindex] &&
  10945. groupStudent[toolindex][gindex][4]
  10946. ? groupStudent[toolindex][gindex] &&
  10947. groupStudent[toolindex][gindex][4].name
  10948. : "空位置"
  10949. }}</span>
  10950. </div>
  10951. <div v-if="groupJson.number > 8">
  10952. <span
  10953. :class="{
  10954. isChair:
  10955. groupStudent[toolindex][gindex] &&
  10956. groupStudent[toolindex][gindex][8],
  10957. updateChair:
  10958. courseDetail.userid == userid &&
  10959. groupStudent[toolindex][gindex] &&
  10960. groupStudent[toolindex][gindex][8] &&
  10961. groupJson.islock == 2,
  10962. }"
  10963. ><span
  10964. class="updateChairBtn"
  10965. @click="
  10966. updateGroupChair(
  10967. groupStudent[toolindex][gindex] &&
  10968. groupStudent[toolindex][gindex][8]
  10969. )
  10970. "
  10971. >修改</span
  10972. ></span
  10973. ><span>{{
  10974. groupStudent[toolindex][gindex] &&
  10975. groupStudent[toolindex][gindex][8]
  10976. ? groupStudent[toolindex][gindex] &&
  10977. groupStudent[toolindex][gindex][8].name
  10978. : "空位置"
  10979. }}</span>
  10980. </div>
  10981. </div>
  10982. <div class="g_d_group_tableBox">
  10983. <div class="g_d_group_chair2">
  10984. <div v-if="groupJson.number > 2">
  10985. <span
  10986. :class="{
  10987. isChair:
  10988. groupStudent[toolindex][gindex] &&
  10989. groupStudent[toolindex][gindex][2],
  10990. updateChair:
  10991. courseDetail.userid == userid &&
  10992. groupStudent[toolindex][gindex] &&
  10993. groupStudent[toolindex][gindex][2] &&
  10994. groupJson.islock == 2,
  10995. }"
  10996. ><span
  10997. class="updateChairBtn"
  10998. @click="
  10999. updateGroupChair(
  11000. groupStudent[toolindex][gindex] &&
  11001. groupStudent[toolindex][gindex][2]
  11002. )
  11003. "
  11004. >修改</span
  11005. ></span
  11006. ><span>{{
  11007. groupStudent[toolindex][gindex] &&
  11008. groupStudent[toolindex][gindex][2]
  11009. ? groupStudent[toolindex][gindex] &&
  11010. groupStudent[toolindex][gindex][2].name
  11011. : "空位置"
  11012. }}</span>
  11013. </div>
  11014. <div v-if="groupJson.number > 6">
  11015. <span
  11016. :class="{
  11017. isChair:
  11018. groupStudent[toolindex][gindex] &&
  11019. groupStudent[toolindex][gindex][6],
  11020. updateChair:
  11021. courseDetail.userid == userid &&
  11022. groupStudent[toolindex][gindex] &&
  11023. groupStudent[toolindex][gindex][6] &&
  11024. groupJson.islock == 2,
  11025. }"
  11026. ><span
  11027. class="updateChairBtn"
  11028. @click="
  11029. updateGroupChair(
  11030. groupStudent[toolindex][gindex] &&
  11031. groupStudent[toolindex][gindex][6]
  11032. )
  11033. "
  11034. >修改</span
  11035. ></span
  11036. ><span>{{
  11037. groupStudent[toolindex][gindex] &&
  11038. groupStudent[toolindex][gindex][6]
  11039. ? groupStudent[toolindex][gindex] &&
  11040. groupStudent[toolindex][gindex][6].name
  11041. : "空位置"
  11042. }}</span>
  11043. </div>
  11044. </div>
  11045. <div class="g_d_group_table">
  11046. <div>
  11047. {{ g.name }}
  11048. </div>
  11049. <div>
  11050. <div
  11051. v-if="
  11052. courseDetail.userid == userid && groupJson.islock == 2
  11053. "
  11054. @click="deleteGroupChair(gindex)"
  11055. >
  11056. 移除组员
  11057. </div>
  11058. <div
  11059. @click="selectGroup(gindex)"
  11060. v-else-if="
  11061. groupStudentUid[toolindex] &&
  11062. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11063. "
  11064. >
  11065. 加入分组
  11066. </div>
  11067. <div
  11068. @click="
  11069. exitGroup(
  11070. groupStudent[toolindex][gindex] &&
  11071. groupStudent[toolindex][gindex][
  11072. groupStudentUid[toolindex][gindex].indexOf(userid)
  11073. ].id
  11074. )
  11075. "
  11076. v-else-if="
  11077. groupStudentUid[toolindex] &&
  11078. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11079. "
  11080. >
  11081. 退出分组
  11082. </div>
  11083. </div>
  11084. </div>
  11085. <div class="g_d_group_chair2">
  11086. <div v-if="groupJson.number > 3">
  11087. <span
  11088. :class="{
  11089. isChair:
  11090. groupStudent[toolindex][gindex] &&
  11091. groupStudent[toolindex][gindex][3],
  11092. updateChair:
  11093. courseDetail.userid == userid &&
  11094. groupStudent[toolindex][gindex] &&
  11095. groupStudent[toolindex][gindex][3] &&
  11096. groupJson.islock == 2,
  11097. }"
  11098. ><span
  11099. class="updateChairBtn"
  11100. @click="
  11101. updateGroupChair(
  11102. groupStudent[toolindex][gindex] &&
  11103. groupStudent[toolindex][gindex][3]
  11104. )
  11105. "
  11106. >修改</span
  11107. ></span
  11108. ><span>{{
  11109. groupStudent[toolindex][gindex] &&
  11110. groupStudent[toolindex][gindex][3]
  11111. ? groupStudent[toolindex][gindex] &&
  11112. groupStudent[toolindex][gindex][3].name
  11113. : "空位置"
  11114. }}</span>
  11115. </div>
  11116. <div v-if="groupJson.number > 7">
  11117. <span
  11118. :class="{
  11119. isChair:
  11120. groupStudent[toolindex][gindex] &&
  11121. groupStudent[toolindex][gindex][7],
  11122. updateChair:
  11123. courseDetail.userid == userid &&
  11124. groupStudent[toolindex][gindex] &&
  11125. groupStudent[toolindex][gindex][7] &&
  11126. groupJson.islock == 2,
  11127. }"
  11128. ><span
  11129. class="updateChairBtn"
  11130. @click="
  11131. updateGroupChair(
  11132. groupStudent[toolindex][gindex] &&
  11133. groupStudent[toolindex][gindex][7]
  11134. )
  11135. "
  11136. >修改</span
  11137. ></span
  11138. ><span>{{
  11139. groupStudent[toolindex][gindex] &&
  11140. groupStudent[toolindex][gindex][7]
  11141. ? groupStudent[toolindex][gindex] &&
  11142. groupStudent[toolindex][gindex][7].name
  11143. : "空位置"
  11144. }}</span>
  11145. </div>
  11146. </div>
  11147. </div>
  11148. <div class="g_d_group_chair">
  11149. <div v-if="groupJson.number > 1">
  11150. <span
  11151. :class="{
  11152. isChair:
  11153. groupStudent[toolindex][gindex] &&
  11154. groupStudent[toolindex][gindex][1],
  11155. updateChair:
  11156. courseDetail.userid == userid &&
  11157. groupStudent[toolindex][gindex] &&
  11158. groupStudent[toolindex][gindex][1] &&
  11159. groupJson.islock == 2,
  11160. }"
  11161. ><span
  11162. class="updateChairBtn"
  11163. @click="
  11164. updateGroupChair(
  11165. groupStudent[toolindex][gindex] &&
  11166. groupStudent[toolindex][gindex][1]
  11167. )
  11168. "
  11169. >修改</span
  11170. ></span
  11171. ><span>{{
  11172. groupStudent[toolindex][gindex] &&
  11173. groupStudent[toolindex][gindex][1]
  11174. ? groupStudent[toolindex][gindex] &&
  11175. groupStudent[toolindex][gindex][1].name
  11176. : "空位置"
  11177. }}</span>
  11178. </div>
  11179. <div v-if="groupJson.number > 5">
  11180. <span
  11181. :class="{
  11182. isChair:
  11183. groupStudent[toolindex][gindex] &&
  11184. groupStudent[toolindex][gindex][5],
  11185. updateChair:
  11186. courseDetail.userid == userid &&
  11187. groupStudent[toolindex][gindex] &&
  11188. groupStudent[toolindex][gindex][5] &&
  11189. groupJson.islock == 2,
  11190. }"
  11191. ><span
  11192. class="updateChairBtn"
  11193. @click="
  11194. updateGroupChair(
  11195. groupStudent[toolindex][gindex] &&
  11196. groupStudent[toolindex][gindex][5]
  11197. )
  11198. "
  11199. >修改</span
  11200. ></span
  11201. ><span>{{
  11202. groupStudent[toolindex][gindex] &&
  11203. groupStudent[toolindex][gindex][5]
  11204. ? groupStudent[toolindex][gindex] &&
  11205. groupStudent[toolindex][gindex][5].name
  11206. : "空位置"
  11207. }}</span>
  11208. </div>
  11209. <div v-if="groupJson.number > 9">
  11210. <span
  11211. :class="{
  11212. isChair:
  11213. groupStudent[toolindex][gindex] &&
  11214. groupStudent[toolindex][gindex][9],
  11215. updateChair:
  11216. courseDetail.userid == userid &&
  11217. groupStudent[toolindex][gindex] &&
  11218. groupStudent[toolindex][gindex][9] &&
  11219. groupJson.islock == 2,
  11220. }"
  11221. ><span
  11222. class="updateChairBtn"
  11223. @click="
  11224. updateGroupChair(
  11225. groupStudent[toolindex][gindex] &&
  11226. groupStudent[toolindex][gindex][9]
  11227. )
  11228. "
  11229. >修改</span
  11230. ></span
  11231. ><span>{{
  11232. groupStudent[toolindex][gindex] &&
  11233. groupStudent[toolindex][gindex][9]
  11234. ? groupStudent[toolindex][gindex] &&
  11235. groupStudent[toolindex][gindex][9].name
  11236. : "空位置"
  11237. }}</span>
  11238. </div>
  11239. </div>
  11240. </div>
  11241. </div>
  11242. </div>
  11243. </div>
  11244. <span slot="footer" class="dialog-footer">
  11245. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11246. </span>
  11247. </el-dialog>
  11248. <el-dialog
  11249. title="分组设置"
  11250. :visible.sync="dialogVisibleGroup2"
  11251. :append-to-body="true"
  11252. width="650px"
  11253. :before-close="handleClose"
  11254. class="dialog_diy"
  11255. >
  11256. <div class="groupBox">
  11257. <div v-if="groupJson2.group" class="groupContent">
  11258. <div class="groupTitle">请设置小组数量及名称</div>
  11259. <div
  11260. v-for="(item, index) in groupJson2.group"
  11261. :key="index"
  11262. class="groupName"
  11263. >
  11264. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11265. <el-input
  11266. v-model="item.name"
  11267. placeholder="请输入名称..."
  11268. style="width: 250px"
  11269. ></el-input>
  11270. <!-- <div class="groupBtn">
  11271. <el-button type="primary" size="small" @click="addGroup(index)">
  11272. 添加</el-button>
  11273. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11274. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11275. </div> -->
  11276. </div>
  11277. </div>
  11278. <div class="groupContent">
  11279. <div class="groupTitle">请设置每组人数</div>
  11280. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11281. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11282. <el-input-number
  11283. v-model="groupJson2.number"
  11284. :controls="false"
  11285. :min="2"
  11286. :max="10"
  11287. placeholder="请输入2-10的数字"
  11288. ></el-input-number>
  11289. </div>
  11290. </div>
  11291. <span slot="footer" class="dialog-footer">
  11292. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11293. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11294. </span>
  11295. </el-dialog>
  11296. <el-dialog
  11297. title="作业提交"
  11298. :visible.sync="dialogVisibleGroupWork"
  11299. :append-to-body="true"
  11300. width="500px"
  11301. :before-close="handleClose"
  11302. class="dialog_change"
  11303. >
  11304. <div class="marginT">
  11305. <div>上传文件</div>
  11306. <div
  11307. class="chapter_add"
  11308. @click="addImg($event)"
  11309. v-if="studyJuri[0].cover.length == 0"
  11310. >
  11311. <div class="up_photo">
  11312. <img src="../../assets/icon/uploadImg.png" alt />
  11313. </div>
  11314. <!-- <input
  11315. type="file"
  11316. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11317. style="display: none"
  11318. @change="beforeUpload1($event, 1)"
  11319. /> -->
  11320. <input
  11321. type="file"
  11322. accept="*"
  11323. style="display: none"
  11324. @change="beforeUpload1($event, 1)"
  11325. />
  11326. </div>
  11327. <!-- capture="camera" -->
  11328. <div
  11329. class="chapter_add"
  11330. style="
  11331. display: flex;
  11332. width: 100%;
  11333. flex-direction: row;
  11334. flex-wrap: wrap;
  11335. justify-content: flex-start;
  11336. padding: 15px 0;
  11337. "
  11338. v-if="studyJuri[0].cover.length > 0"
  11339. >
  11340. <div class="upCover">
  11341. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11342. <img :src="word" alt v-else-if="fileType == 1" />
  11343. <img :src="video" alt v-else-if="fileType == 2" />
  11344. <img :src="word2" alt v-else-if="fileType == 3" />
  11345. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11346. <div class="deleteWord" @click="clean(1)">
  11347. <img src="../../assets/icon/deleteWorks.png" alt />
  11348. </div>
  11349. </div>
  11350. </div>
  11351. </div>
  11352. <div
  11353. class="upload_send"
  11354. @click="addCourseWorks2(taskCount)"
  11355. v-if="!proVisible"
  11356. >
  11357. 提交
  11358. </div>
  11359. </el-dialog>
  11360. <el-dialog
  11361. title="修改分组"
  11362. :visible.sync="dialogVisibleUpdateGroup"
  11363. :append-to-body="true"
  11364. width="350px"
  11365. :before-close="handleClose"
  11366. class="dialog_diy"
  11367. >
  11368. <div>
  11369. <h2>
  11370. {{ this.updateGroupUser.name }}
  11371. </h2>
  11372. <div style="color: rgb(171 171 171); margin-top: 10px">
  11373. 请选择要进入的分组
  11374. </div>
  11375. <el-radio-group v-model="checkChair">
  11376. <el-radio
  11377. style="display: block; margin-top: 20px"
  11378. v-for="(item, index) in updateGroupArray"
  11379. :label="item.label"
  11380. :key="index"
  11381. >{{ item.name }}</el-radio
  11382. >
  11383. </el-radio-group>
  11384. </div>
  11385. <span slot="footer" class="dialog-footer">
  11386. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11387. <el-button type="primary" @click="updateChair">确定</el-button>
  11388. </span>
  11389. </el-dialog>
  11390. <el-dialog
  11391. title="移除组员"
  11392. :visible.sync="dialogVisibleDeleteGroup"
  11393. :append-to-body="true"
  11394. width="350px"
  11395. :before-close="handleClose"
  11396. class="dialog_diy"
  11397. >
  11398. <div>
  11399. <h2>
  11400. {{ this.deleteGroupArray.name }}
  11401. </h2>
  11402. <div style="color: rgb(171 171 171); margin-top: 10px">
  11403. 请选择要删除的组员
  11404. </div>
  11405. <el-checkbox-group v-model="checkDeleteGroup">
  11406. <el-checkbox
  11407. style="display: block; margin-top: 20px"
  11408. v-for="(item, index) in deleteGroupUser"
  11409. :label="item.userid"
  11410. :key="index"
  11411. >{{ item.name }}</el-checkbox
  11412. >
  11413. </el-checkbox-group>
  11414. </div>
  11415. <span slot="footer" class="dialog-footer">
  11416. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11417. <el-button type="primary" @click="deleteChair">确定</el-button>
  11418. </span>
  11419. </el-dialog>
  11420. <el-dialog
  11421. title="批量上传"
  11422. :visible.sync="dialogVisiblePl"
  11423. :append-to-body="true"
  11424. width="700px"
  11425. :before-close="handleClose"
  11426. class="dialog_change"
  11427. >
  11428. <div class="marginT">
  11429. <div class="plworkBox">
  11430. <div
  11431. class="chapter_add"
  11432. style="
  11433. display: flex;
  11434. width: 150px;
  11435. flex-direction: row;
  11436. flex-wrap: wrap;
  11437. justify-content: flex-start;
  11438. margin: 0 10px 10px 0;
  11439. "
  11440. v-for="(item, index) in plworkFile"
  11441. :key="index"
  11442. >
  11443. <div class="upCover2">
  11444. <img
  11445. :src="item.url"
  11446. alt
  11447. v-if="item.fileType == 1"
  11448. @click="previewImg(item.url)"
  11449. />
  11450. <img :src="word" alt v-else-if="item.fileType == 4" />
  11451. <img :src="video" alt v-else />
  11452. <!-- <span class="picName">{{ item.name }}</span> -->
  11453. <!-- <el-input
  11454. v-model="item.username"
  11455. placeholder="请输入学生名字"
  11456. style="margin-top: 10px"
  11457. ></el-input> -->
  11458. <div
  11459. class="pl_select_box"
  11460. @click="
  11461. getUpdateMore(true, checkUpload(), item.username, index)
  11462. "
  11463. >
  11464. {{ getSName(item.username) }}
  11465. </div>
  11466. <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  11467. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  11468. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  11469. </el-option>
  11470. </el-select> -->
  11471. <div class="deleteWord" @click="clean2(index)">
  11472. <img src="../../assets/icon/deleteWorks.png" alt />
  11473. </div>
  11474. </div>
  11475. </div>
  11476. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11477. <div class="up_photo2">
  11478. <img src="../../assets/icon/plwork.png" alt />
  11479. <span>点击上传文件</span>
  11480. </div>
  11481. <input
  11482. type="file"
  11483. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11484. multiple="multiple"
  11485. style="display: none"
  11486. @change="beforeUpload3($event, 6)"
  11487. />
  11488. </div>
  11489. </div>
  11490. </div>
  11491. <!-- capture="camera" -->
  11492. <div
  11493. class="upload_send"
  11494. @click="addCourseWorksPl(taskCount)"
  11495. v-if="!proVisible2"
  11496. >
  11497. 提交
  11498. </div>
  11499. </el-dialog>
  11500. <el-dialog
  11501. title="修改名称"
  11502. :visible.sync="dialogVisibleSname"
  11503. width="500px"
  11504. :before-close="handleClose"
  11505. class="dialog_diy"
  11506. center
  11507. >
  11508. <div
  11509. style="
  11510. text-align: center;
  11511. display: flex;
  11512. align-items: center;
  11513. justify-content: center;
  11514. "
  11515. >
  11516. <span class="tian1">名称</span>
  11517. <div
  11518. class="pl_select_box"
  11519. style="margin-left: 10px; width: 200px"
  11520. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11521. >
  11522. {{ getSName(worksSName) }}
  11523. </div>
  11524. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11525. placeholder="请选择学生">
  11526. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11527. :value="item.userid">
  11528. </el-option>
  11529. </el-select> -->
  11530. <!-- <el-input
  11531. v-model="worksSName"
  11532. style="width: 250px; margin: 15px 0px"
  11533. ></el-input> -->
  11534. </div>
  11535. <span slot="footer" class="dialog-footer">
  11536. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11537. <el-button type="primary" @click="updateName">确 定</el-button>
  11538. </span>
  11539. </el-dialog>
  11540. <interVideo
  11541. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11542. :videoJson="videoJson"
  11543. :userid="userid"
  11544. :id="id"
  11545. :courseType="courseType"
  11546. :taskCount="taskCount"
  11547. :toolindex="toolindex"
  11548. ></interVideo>
  11549. <UpdateMore
  11550. :dialogVisibleMember.sync="dialogVisibleMember"
  11551. :cList="uploadStudentJuri"
  11552. :userid="userid"
  11553. :searchTN="worksSName2"
  11554. @setPlname="setPlname"
  11555. ></UpdateMore>
  11556. <wordCloud
  11557. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11558. :data="wordCloudData"
  11559. ></wordCloud>
  11560. <el-dialog
  11561. title="挑人"
  11562. :visible.sync="dialogVisiblePickPeople"
  11563. width="650px"
  11564. :before-close="handleClose"
  11565. class="dialog_diy"
  11566. center
  11567. >
  11568. <div class="pick_box">
  11569. <div
  11570. class="noWorksName"
  11571. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11572. v-for="(item, index) in uploadStudentJuri"
  11573. :key="index"
  11574. @click="pickStudent(item)"
  11575. >
  11576. {{ item.name }}
  11577. </div>
  11578. </div>
  11579. </el-dialog>
  11580. </div>
  11581. </template>
  11582. <script>
  11583. import "../../common/aws-sdk-2.235.1.min.js";
  11584. // import pdf from "../components/pdf3";
  11585. import pdf from "../components/vpdf";
  11586. import AskStatic from "../components/askStatic";
  11587. import AskStatic2 from "../components/askStatic2";
  11588. import AnswerData2 from "../components/answerData2";
  11589. import AnswerData from "../components/answerData";
  11590. import EditorBar from "../tools/wangEnduit.vue";
  11591. import Table from "../tools/table.vue";
  11592. import Time from "../tools/time.vue";
  11593. import Mind from "../tools/jsmind.vue";
  11594. import Sunburst from "../tools/sunburst";
  11595. import SeeBoard from "../tools/seeBoard";
  11596. import * as imageConversion from "image-conversion";
  11597. import Audio from "../components/audio.vue";
  11598. import ImgDraw from "../tools/imgDraw/imgDraw";
  11599. import { Empty } from "element-ui";
  11600. import RecordRTC from "recordrtc";
  11601. import interVideo from "../interVideo/index.vue";
  11602. import UpdateMore from "../updateMore/updateMore.vue";
  11603. import wordCloud from "../wordCloud/index.vue";
  11604. export default {
  11605. components: {
  11606. EditorBar,
  11607. Time,
  11608. pdf,
  11609. AskStatic,
  11610. AskStatic2,
  11611. Mind,
  11612. Sunburst,
  11613. SeeBoard,
  11614. AnswerData2,
  11615. AnswerData,
  11616. Audio,
  11617. ImgDraw,
  11618. Table,
  11619. interVideo,
  11620. UpdateMore,
  11621. wordCloud,
  11622. },
  11623. data() {
  11624. return {
  11625. bg: null,
  11626. drawShow: false,
  11627. dialogVisible: false,
  11628. dialogVisiblePl: false,
  11629. commentDialogVisible: false,
  11630. videoVisible: false,
  11631. isStar: false,
  11632. studentEvalDialogVisible: false,
  11633. studentEvalDialogVisibleTeacher: false,
  11634. dialogVisibleSelect: false,
  11635. dialogVisibleSelectTeacher: false,
  11636. dialogVisibleScore: false,
  11637. dialogVisibleSentence: false,
  11638. dialogVisibleSentenceTeacher: false,
  11639. dialogVisibleSentence1: false,
  11640. dialogVisibleWorks: false,
  11641. answerDialogVisibleTeacher: false,
  11642. dialogVisibleTable: false,
  11643. dialogVisibleTableTeacher: false,
  11644. dialogVisibleWord: false,
  11645. dialogVisibleWordTeacher: false,
  11646. dialogVisibleTable2: false,
  11647. dialogVisibleTable3: false,
  11648. dialogVisibleGroupWork: false,
  11649. dialogVisibleUpdateGroup: false,
  11650. dialogVisibleDeleteGroup: false,
  11651. dialogVisibleSname: false,
  11652. dialogVisibleVideo: false,
  11653. dialogVisiblePickPeople: false,
  11654. isClose: 0,
  11655. worksSName: "",
  11656. classJuri: [],
  11657. uploadStudentJuri: [],
  11658. uploadCid: "",
  11659. snameWid: "",
  11660. sStudent: {},
  11661. sTool: "",
  11662. bzText: "",
  11663. commentDetail: [],
  11664. selectAnswer: [],
  11665. videoDetail: {},
  11666. selectJson: {},
  11667. eScore: { eBzText: "", eStar: [] },
  11668. id: this.$route.query.courseId,
  11669. userid: this.$route.query.userid,
  11670. classId: this.$route.query.cid,
  11671. // courseTypeLine: this.$route.query.type,
  11672. oid: this.$route.query.oid,
  11673. org: this.$route.query.org,
  11674. tType: this.$route.query.tType,
  11675. courseType: this.$route.query.type,
  11676. screenType: this.$route.query.screenType,
  11677. tcid2: this.$route.query.tcid,
  11678. tcid: "",
  11679. pptImgUrl: "",
  11680. pptImgUrl1: "",
  11681. commentText: "",
  11682. full: false,
  11683. sIsOpen: false,
  11684. IsLookOpen: false,
  11685. IsFollow: false,
  11686. pzDialog: false,
  11687. contentDialog: false,
  11688. mlDialog: false,
  11689. type: 1,
  11690. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11691. sentenceList1: [],
  11692. tableJson: [],
  11693. wordJson: [],
  11694. vedio: [],
  11695. text: [],
  11696. textList: [],
  11697. line: [],
  11698. lineList: [],
  11699. chapTools: [],
  11700. chapToolList: [],
  11701. file: [],
  11702. fileC: [],
  11703. vedioTime: [],
  11704. upToolImg: "",
  11705. preTime: 0,
  11706. rateList: {
  11707. ca: 0,
  11708. },
  11709. rateParams: [],
  11710. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11711. studyJuri: [
  11712. {
  11713. content: "",
  11714. cover: [],
  11715. upVedio: [],
  11716. upFile: [],
  11717. },
  11718. ],
  11719. plworkFile: [],
  11720. mr: require("../../assets/vedioPic.png"),
  11721. word: require("../../assets/icon/isWord.png"),
  11722. word2: require("../../assets/icon/word2.png"),
  11723. video: require("../../assets/icon/isVideo.png"),
  11724. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11725. likes: require("../../assets/icon/comment/likes.png"),
  11726. scoreImg: require("../../assets/score.png"),
  11727. courseDetail: {},
  11728. isSelect: false,
  11729. chapInfo: [],
  11730. chapInfoList: [],
  11731. taskCount: 0,
  11732. imgList: [],
  11733. noImgList: [],
  11734. pzList: [],
  11735. PlTextList: [
  11736. "Excellent!",
  11737. "nice!",
  11738. "很有创意!",
  11739. "还不错哦~",
  11740. "继续努力哦~",
  11741. ],
  11742. isClickNav: "",
  11743. navId: "",
  11744. playerOptions: {
  11745. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11746. autoplay: false, //如果true,浏览器准备好时开始回放。
  11747. muted: false, // 默认情况下将会消除任何音频。
  11748. loop: false, // 导致视频一结束就重新开始。
  11749. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11750. language: "zh-CN",
  11751. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11752. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11753. sources: [
  11754. {
  11755. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11756. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11757. },
  11758. ],
  11759. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11760. // poster: dataRes.imgUrl, //你的封面地址
  11761. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11762. controlBar: {
  11763. timeDivider: true, //当前时间和持续时间的分隔符
  11764. durationDisplay: true, //显示持续时间
  11765. remainingTimeDisplay: false, //是否显示剩余时间功能
  11766. fullscreenToggle: true, //全屏按钮
  11767. },
  11768. },
  11769. playerOptions1: {
  11770. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11771. autoplay: false, //如果true,浏览器准备好时开始回放。
  11772. muted: false, // 默认情况下将会消除任何音频。
  11773. loop: false, // 导致视频一结束就重新开始。
  11774. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11775. language: "zh-CN",
  11776. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11777. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11778. sources: [
  11779. {
  11780. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11781. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11782. },
  11783. ],
  11784. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11785. // poster: dataRes.imgUrl, //你的封面地址
  11786. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11787. controlBar: {
  11788. timeDivider: true, //当前时间和持续时间的分隔符
  11789. durationDisplay: true, //显示持续时间
  11790. remainingTimeDisplay: false, //是否显示剩余时间功能
  11791. fullscreenToggle: true, //全屏按钮
  11792. },
  11793. },
  11794. playerO: {},
  11795. noneBtnImg: false,
  11796. proVisible: false,
  11797. proVisible2: false,
  11798. progress: 0,
  11799. isFinishSize: 0,
  11800. isAllSize: 0,
  11801. questionAnswer: "",
  11802. answerQ: "", //问答标题
  11803. rateJson: [],
  11804. wbCount: 0,
  11805. wordCount: 0,
  11806. mindCount: 0,
  11807. askCount: 0,
  11808. noteCount: 0,
  11809. mindNetWorkCount: 0,
  11810. libraryCount: 0,
  11811. workCount: 0,
  11812. timeCount: 0,
  11813. answerCount: 0,
  11814. trainCount: 0,
  11815. evalCount: 0,
  11816. dialogImageUrl: "",
  11817. pictureDialog: false,
  11818. toolTypeList: [],
  11819. dialogVisible1: false,
  11820. dialogVisible2: false,
  11821. dialogVisible3: false,
  11822. dialogVisible6: false,
  11823. dialogVisible4: false,
  11824. isNoHomeWork: false,
  11825. dialogVisible5: false,
  11826. dialogVisible5Teacher: false,
  11827. dialogVisibleChoice: false,
  11828. dialogVisibleChoiceTeacher: false,
  11829. answerDialogVisible: false,
  11830. juriVisible: false,
  11831. timeDialogVisible: false,
  11832. radio: [],
  11833. isAsk: false,
  11834. askJson: {
  11835. askCount: 1,
  11836. askTitle: "",
  11837. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11838. },
  11839. testJson: {},
  11840. checkJson: [],
  11841. askList: [],
  11842. answerList: [],
  11843. navList: [],
  11844. addPzDialog: false,
  11845. ispzType: 1,
  11846. pzConText: "",
  11847. worksStudent: [],
  11848. worksStudent2: [],
  11849. worksTeacher: [],
  11850. isCloseList: [],
  11851. workStudent: [],
  11852. groupStudent: [],
  11853. groupStudentUid: [],
  11854. noWorksS: [],
  11855. isWorksS: [],
  11856. noWorksStudent: [],
  11857. toolindex: 0,
  11858. groupIndex: 0,
  11859. workTypeB: false,
  11860. workTypeC: false,
  11861. isAnswer: false,
  11862. timer: null,
  11863. opertimer: null,
  11864. showType: 0,
  11865. fileType: 0,
  11866. showPDF: false,
  11867. noteName: "",
  11868. evaJuri: [],
  11869. evalua: "",
  11870. eTitle: "",
  11871. eName: "",
  11872. eJson: {},
  11873. fid: "", //一级
  11874. sid: "", //二级
  11875. tid: "", //二级
  11876. typeMode: 1,
  11877. eJSONNum: 0,
  11878. Etype: 1,
  11879. data: {
  11880. meta: {
  11881. name: "example",
  11882. author: "dd@163.com",
  11883. version: "0.2",
  11884. },
  11885. format: "node_array",
  11886. data: [{ id: "root", isroot: true, topic: "" }],
  11887. },
  11888. fullDialogVisible: false,
  11889. fulltype: "",
  11890. fullUrl: "",
  11891. commentIndexJson: {},
  11892. Stbodywidth: 0,
  11893. pzType: 1,
  11894. wScore: 0,
  11895. scoreDetail: "",
  11896. videoStart: false,
  11897. recorder: null,
  11898. groupJson: {},
  11899. groupJson2: {},
  11900. dialogVisibleGroup: false,
  11901. dialogVisibleGroup2: false,
  11902. updateGroupArray: [],
  11903. updateGroupUser: {},
  11904. deleteGroupUser: [],
  11905. deleteGroupArray: {},
  11906. checkChair: "",
  11907. checkDeleteGroup: [],
  11908. inviteCode: "",
  11909. courseGroupStudent: [],
  11910. courseGroupStudentUid: [],
  11911. courseGroup: {},
  11912. isGroup: false,
  11913. toolIndex: null,
  11914. tool: {},
  11915. isWorkTool: [
  11916. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11917. ], //, 40
  11918. videoJson: {},
  11919. toolType: 0,
  11920. checktoolArray: [],
  11921. vChapterData: [],
  11922. isUpdateToolDetail: false,
  11923. updateToolDetailInner: "",
  11924. plIndex: "",
  11925. worksSName2: "",
  11926. worksSid: "",
  11927. dialogVisibleWordCloud: false,
  11928. wordCloudData: [],
  11929. isPickStudent: [],
  11930. };
  11931. },
  11932. methods: {
  11933. jump() {
  11934. window.parent.postMessage({ tools: "43" }, "*");
  11935. },
  11936. getUpdateMore(f, checkboxList, searchTN, index) {
  11937. this.dialogVisibleMember = f;
  11938. this.checkboxList = checkboxList;
  11939. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11940. this.plIndex = index;
  11941. },
  11942. setPlname(a) {
  11943. if (this.plworkFile.length) {
  11944. this.plworkFile[this.plIndex].username = a;
  11945. } else {
  11946. this.worksSName = a;
  11947. }
  11948. this.dialogVisibleMember = false;
  11949. },
  11950. previewImg(url) {
  11951. this.$hevueImgPreview(url);
  11952. },
  11953. checkImg(list) {
  11954. if (!list.length) {
  11955. return;
  11956. }
  11957. this.$hevueImgPreview({
  11958. multiple: true, // 开启多图预览模式
  11959. imgList: list, // 需要预览的多图数组
  11960. });
  11961. },
  11962. change(val) {
  11963. console.log(val);
  11964. },
  11965. goTo(path) {
  11966. this.$router.push(path);
  11967. },
  11968. handlePictureCardPreview(url) {
  11969. this.dialogImageUrl = url;
  11970. this.pictureDialog = true;
  11971. },
  11972. clean(type) {
  11973. if (type == 1) {
  11974. this.studyJuri[0].cover.splice(0, 1);
  11975. } else if (type == 2) {
  11976. this.studyJuri[0].upVedio.splice(0, 1);
  11977. } else {
  11978. this.studyJuri[0].upFile.splice(0, 1);
  11979. }
  11980. },
  11981. clean2(index) {
  11982. this.plworkFile.splice(index, 1);
  11983. },
  11984. handleClose(done) {
  11985. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  11986. this.videoDetail.sources[0].src = "";
  11987. }
  11988. this.commentIndexJson = {};
  11989. done();
  11990. },
  11991. fullTools() {
  11992. this.full = !this.full;
  11993. },
  11994. imgChange(file, fileList, type) {
  11995. if (type == 1) {
  11996. var _tmp = this.studyJuri[0].cover;
  11997. } else if (type == 2) {
  11998. var _tmp = this.studyJuri[0].upVedio;
  11999. } else {
  12000. var _tmp = this.studyJuri[0].upFile;
  12001. }
  12002. this.noneBtnImg = _tmp.length >= 1;
  12003. },
  12004. setContent(bool) {
  12005. this.contentDialog = bool;
  12006. if (bool && this.mlDialog) {
  12007. document.querySelector(".workd_media").style.height = "650px";
  12008. } else {
  12009. document.querySelector(".workd_media").style.height = "auto";
  12010. }
  12011. },
  12012. setContent2(bool) {
  12013. this.mlDialog = bool;
  12014. if (bool && this.contentDialog) {
  12015. document.querySelector(".workd_media").style.height = "650px";
  12016. } else {
  12017. document.querySelector(".workd_media").style.height = "auto";
  12018. }
  12019. },
  12020. addImg(e) {
  12021. var el = e.currentTarget;
  12022. // this.$message.success('触发上传')
  12023. el.getElementsByTagName("input")[0].click();
  12024. e.target.value = "";
  12025. },
  12026. addSelectAnswer() {
  12027. let params = [
  12028. {
  12029. uid: this.userid,
  12030. cid: this.id,
  12031. stage: this.courseType,
  12032. task: this.taskCount,
  12033. tool: this.toolindex,
  12034. content: this.selectAnswer.answer,
  12035. type: 7,
  12036. },
  12037. ];
  12038. this.ajax
  12039. .post(this.$store.state.api + "addCourseWorks", params)
  12040. .then((res) => {
  12041. this.$message({
  12042. message: "提交成功",
  12043. type: "success",
  12044. });
  12045. this.dialogVisibleSelect = false;
  12046. // this.selectAnswer = {};
  12047. this.selectSWorks();
  12048. this.selectStudent();
  12049. })
  12050. .catch((err) => {
  12051. this.$message.error("提交失败");
  12052. console.error(err);
  12053. });
  12054. },
  12055. addSelectAnswerTeacher() {
  12056. let params = [
  12057. {
  12058. uid: this.sStudent.userid,
  12059. cid: this.id,
  12060. stage: this.courseType,
  12061. task: this.taskCount,
  12062. tool: this.toolindex,
  12063. content: this.selectAnswer.answer,
  12064. type: 7,
  12065. },
  12066. ];
  12067. this.ajax
  12068. .post(this.$store.state.api + "addCourseWorks", params)
  12069. .then((res) => {
  12070. this.$message({
  12071. message: "提交成功",
  12072. type: "success",
  12073. });
  12074. this.dialogVisibleSelectTeacher = false;
  12075. // this.selectAnswer = {};
  12076. this.selectSWorks();
  12077. this.selectStudent();
  12078. })
  12079. .catch((err) => {
  12080. this.$message.error("提交失败");
  12081. console.error(err);
  12082. });
  12083. },
  12084. addSenWorks() {
  12085. for (var i = 0; i < this.sentenceList.length; i++) {
  12086. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12087. if (
  12088. this.sentenceList[i].chooseSenList[j] == undefined ||
  12089. this.sentenceList[i].chooseSenList[j] == ""
  12090. ) {
  12091. this.$message.error("请将答案填写完整!");
  12092. return;
  12093. }
  12094. }
  12095. }
  12096. let params = [
  12097. {
  12098. uid: this.userid,
  12099. cid: this.id,
  12100. stage: this.courseType,
  12101. task: this.taskCount,
  12102. tool: this.toolindex,
  12103. content: JSON.stringify(this.sentenceList),
  12104. type: 9,
  12105. },
  12106. ];
  12107. this.ajax
  12108. .post(this.$store.state.api + "addCourseWorks", params)
  12109. .then((res) => {
  12110. this.$message({
  12111. message: "提交成功",
  12112. type: "success",
  12113. });
  12114. this.dialogVisibleSentence = false;
  12115. // this.selectAnswer = {};
  12116. this.selectSWorks();
  12117. this.selectStudent();
  12118. })
  12119. .catch((err) => {
  12120. this.$message.error("提交失败");
  12121. console.error(err);
  12122. });
  12123. },
  12124. addSenWorksTeacher() {
  12125. for (var i = 0; i < this.sentenceList.length; i++) {
  12126. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12127. if (
  12128. this.sentenceList[i].chooseSenList[j] == undefined ||
  12129. this.sentenceList[i].chooseSenList[j] == ""
  12130. ) {
  12131. this.$message.error("请将答案填写完整!");
  12132. return;
  12133. }
  12134. }
  12135. }
  12136. let params = [
  12137. {
  12138. uid: this.sStudent.userid,
  12139. cid: this.id,
  12140. stage: this.courseType,
  12141. task: this.taskCount,
  12142. tool: this.toolindex,
  12143. content: JSON.stringify(this.sentenceList),
  12144. type: 9,
  12145. },
  12146. ];
  12147. this.ajax
  12148. .post(this.$store.state.api + "addCourseWorks", params)
  12149. .then((res) => {
  12150. this.$message({
  12151. message: "提交成功",
  12152. type: "success",
  12153. });
  12154. this.dialogVisibleSentenceTeacher = false;
  12155. // this.selectAnswer = {};
  12156. this.selectSWorks();
  12157. this.selectStudent();
  12158. })
  12159. .catch((err) => {
  12160. this.$message.error("提交失败");
  12161. console.error(err);
  12162. });
  12163. },
  12164. addTableWorks() {
  12165. let params = [
  12166. {
  12167. uid: this.userid,
  12168. cid: this.id,
  12169. stage: this.courseType,
  12170. task: this.taskCount,
  12171. tool: this.toolindex,
  12172. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12173. type: 10,
  12174. },
  12175. ];
  12176. this.ajax
  12177. .post(this.$store.state.api + "addCourseWorks", params)
  12178. .then((res) => {
  12179. this.$message({
  12180. message: "提交成功",
  12181. type: "success",
  12182. });
  12183. this.dialogVisibleTable = false;
  12184. // this.selectAnswer = {};
  12185. this.selectSWorks();
  12186. this.selectStudent();
  12187. })
  12188. .catch((err) => {
  12189. this.$message.error("提交失败");
  12190. console.error(err);
  12191. });
  12192. },
  12193. addTableWorksTeacher() {
  12194. let params = [
  12195. {
  12196. uid: this.sStudent.userid,
  12197. cid: this.id,
  12198. stage: this.courseType,
  12199. task: this.taskCount,
  12200. tool: this.toolindex,
  12201. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12202. type: 10,
  12203. },
  12204. ];
  12205. this.ajax
  12206. .post(this.$store.state.api + "addCourseWorks", params)
  12207. .then((res) => {
  12208. this.$message({
  12209. message: "提交成功",
  12210. type: "success",
  12211. });
  12212. this.dialogVisibleTableTeacher = false;
  12213. // this.selectAnswer = {};
  12214. this.selectSWorks();
  12215. this.selectStudent();
  12216. })
  12217. .catch((err) => {
  12218. this.$message.error("提交失败");
  12219. console.error(err);
  12220. });
  12221. },
  12222. addWordWorks() {
  12223. let params = [
  12224. {
  12225. uid: this.userid,
  12226. cid: this.id,
  12227. stage: this.courseType,
  12228. task: this.taskCount,
  12229. tool: this.toolindex,
  12230. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12231. type: 13,
  12232. atool: 52,
  12233. },
  12234. ];
  12235. console.log(params);
  12236. this.ajax
  12237. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12238. .then((res) => {
  12239. this.$message({
  12240. message: "提交成功",
  12241. type: "success",
  12242. });
  12243. this.dialogVisibleWord = false;
  12244. // this.selectAnswer = {};
  12245. this.selectSWorks();
  12246. this.selectStudent();
  12247. })
  12248. .catch((err) => {
  12249. this.$message.error("提交失败");
  12250. console.error(err);
  12251. });
  12252. },
  12253. addWordWorksTeacher() {
  12254. let params = [
  12255. {
  12256. uid: this.sStudent.userid,
  12257. cid: this.id,
  12258. stage: this.courseType,
  12259. task: this.taskCount,
  12260. tool: this.toolindex,
  12261. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12262. type: 13,
  12263. atool: 52,
  12264. },
  12265. ];
  12266. console.log(params);
  12267. this.ajax
  12268. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12269. .then((res) => {
  12270. this.$message({
  12271. message: "提交成功",
  12272. type: "success",
  12273. });
  12274. this.dialogVisibleWordTeacher = false;
  12275. // this.selectAnswer = {};
  12276. this.selectSWorks();
  12277. this.selectStudent();
  12278. })
  12279. .catch((err) => {
  12280. this.$message.error("提交失败");
  12281. console.error(err);
  12282. });
  12283. },
  12284. addCourseWorks(i) {
  12285. var typesql;
  12286. if (this.fileType === 0) {
  12287. typesql = 1;
  12288. } else if (this.fileType === 1) {
  12289. typesql = 4;
  12290. } else if (this.fileType === 2) {
  12291. typesql = 5;
  12292. } else if (this.fileType === 3) {
  12293. typesql = 12;
  12294. }
  12295. if (!this.studyJuri[0].cover[0].url) {
  12296. this.$message.error("请上传文件");
  12297. return;
  12298. }
  12299. let params = [
  12300. {
  12301. uid: this.userid,
  12302. cid: this.id,
  12303. stage: this.courseType,
  12304. task: i,
  12305. tool: this.toolindex,
  12306. content: this.studyJuri[0].cover[0].url,
  12307. type: typesql,
  12308. },
  12309. ];
  12310. this.ajax
  12311. .post(this.$store.state.api + "addCourseWorksR", params)
  12312. .then((res) => {
  12313. this.$message({
  12314. message: "提交成功",
  12315. type: "success",
  12316. });
  12317. this.studyJuri[0].cover = [];
  12318. this.dialogVisible = false;
  12319. this.getCourseDetail();
  12320. })
  12321. .catch((err) => {
  12322. this.$message.error("提交失败");
  12323. console.error(err);
  12324. });
  12325. },
  12326. addCourseWorksPl(i) {
  12327. let _files = this.plworkFile;
  12328. var c = 1;
  12329. for (var k = 0; k < _files.length; k++) {
  12330. if (!_files[k].username) {
  12331. c = 2;
  12332. }
  12333. }
  12334. if (c == 2) {
  12335. this.$message.error("请填写学生姓名");
  12336. return;
  12337. }
  12338. let params = [
  12339. {
  12340. ateacher: this.userid,
  12341. cid: this.id,
  12342. stage: this.courseType,
  12343. task: i,
  12344. tool: this.toolindex,
  12345. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12346. },
  12347. ];
  12348. this.ajax
  12349. .post(this.$store.state.api + "addCourseWorksPl", params)
  12350. .then((res) => {
  12351. this.$message({
  12352. message: "提交成功",
  12353. type: "success",
  12354. });
  12355. this.plworkFile = [];
  12356. this.dialogVisiblePl = false;
  12357. this.getCourseDetail();
  12358. })
  12359. .catch((err) => {
  12360. this.$message.error("提交失败");
  12361. console.error(err);
  12362. });
  12363. },
  12364. addCourseWorks2(i) {
  12365. var typesql;
  12366. if (this.fileType === 0) {
  12367. typesql = 0;
  12368. } else if (this.fileType === 1) {
  12369. typesql = 1;
  12370. } else if (this.fileType === 2) {
  12371. typesql = 3;
  12372. } else if (this.fileType === 3) {
  12373. typesql = 12;
  12374. }
  12375. if (!this.studyJuri[0].cover[0].url) {
  12376. this.$message.error("请上传文件");
  12377. return;
  12378. }
  12379. let params = [
  12380. {
  12381. uid: this.userid,
  12382. cid: this.id,
  12383. stage: this.courseType,
  12384. task: i,
  12385. tool: this.toolindex,
  12386. content: JSON.stringify({
  12387. type: typesql,
  12388. groupIndex: this.groupIndex,
  12389. url: this.studyJuri[0].cover[0].url,
  12390. }).replaceAll(/%/g, "%25"),
  12391. type: 11,
  12392. atool: 49,
  12393. text: "",
  12394. },
  12395. ];
  12396. this.ajax
  12397. .post(this.$store.state.api + "addCourseWorks5", params)
  12398. .then((res) => {
  12399. this.$message({
  12400. message: "提交成功",
  12401. type: "success",
  12402. });
  12403. this.studyJuri[0].cover = [];
  12404. this.dialogVisibleGroupWork = false;
  12405. this.getCourseDetail();
  12406. })
  12407. .catch((err) => {
  12408. this.$message.error("提交失败");
  12409. console.error(err);
  12410. });
  12411. },
  12412. addCourseWorksGong(i, data, tool) {
  12413. let params = [
  12414. {
  12415. uid: this.userid,
  12416. cid: this.id,
  12417. stage: this.courseType,
  12418. task: this.taskCount,
  12419. tool: i,
  12420. content: data,
  12421. type: 12,
  12422. atool: tool,
  12423. text: "",
  12424. },
  12425. ];
  12426. this.ajax
  12427. .post(this.$store.state.api + "addCourseWorks5", params)
  12428. .then((res) => {
  12429. this.$message({
  12430. message: "提交成功",
  12431. type: "success",
  12432. });
  12433. this.studyJuri[0].cover = [];
  12434. this.selectSWorks();
  12435. this.selectStudent();
  12436. })
  12437. .catch((err) => {
  12438. this.$message.error("提交失败");
  12439. console.error(err);
  12440. });
  12441. },
  12442. addCourseWorksGongTeacher(i, data, tool) {
  12443. let params = [
  12444. {
  12445. uid: this.sStudent.userid,
  12446. cid: this.id,
  12447. stage: this.courseType,
  12448. task: this.taskCount,
  12449. tool: i,
  12450. content: data,
  12451. type: 12,
  12452. atool: tool,
  12453. text: "",
  12454. },
  12455. ];
  12456. this.ajax
  12457. .post(this.$store.state.api + "addCourseWorks5", params)
  12458. .then((res) => {
  12459. this.$message({
  12460. message: "提交成功",
  12461. type: "success",
  12462. });
  12463. this.studyJuri[0].cover = [];
  12464. this.dialogVisibleWorks = false;
  12465. this.selectSWorks();
  12466. this.selectStudent();
  12467. })
  12468. .catch((err) => {
  12469. this.$message.error("提交失败");
  12470. console.error(err);
  12471. });
  12472. },
  12473. addCourseWorksGongPl(i, data, tool, type) {
  12474. let params = [
  12475. {
  12476. uid: this.sStudent.userid,
  12477. cid: this.id,
  12478. stage: this.courseType,
  12479. task: this.taskCount,
  12480. tool: i,
  12481. content: data,
  12482. type: type,
  12483. atool: tool,
  12484. text: "",
  12485. },
  12486. ];
  12487. this.ajax
  12488. .post(this.$store.state.api + "addCourseWorks5", params)
  12489. .then((res) => {
  12490. this.$message({
  12491. message: "提交成功",
  12492. type: "success",
  12493. });
  12494. this.studyJuri[0].cover = [];
  12495. this.dialogVisibleWorks = false;
  12496. this.selectSWorks();
  12497. this.selectStudent();
  12498. })
  12499. .catch((err) => {
  12500. this.$message.error("提交失败");
  12501. console.error(err);
  12502. });
  12503. },
  12504. addCourseWorksTeacher(i) {
  12505. var typesql;
  12506. if (this.sTool == 32) {
  12507. this.addCourseWorksGongTeacher(
  12508. this.toolindex,
  12509. this.studyJuri[0].cover[0].url,
  12510. this.sTool
  12511. );
  12512. return;
  12513. }
  12514. if (this.fileType === 0) {
  12515. typesql = 1;
  12516. } else if (this.fileType === 1) {
  12517. typesql = 4;
  12518. } else if (this.fileType === 2) {
  12519. typesql = 5;
  12520. } else if (this.fileType === 3) {
  12521. typesql = 12;
  12522. }
  12523. if (this.sTool == 50) {
  12524. this.addCourseWorksGongPl(
  12525. this.toolindex,
  12526. this.studyJuri[0].cover[0].url,
  12527. this.sTool,
  12528. typesql
  12529. );
  12530. return;
  12531. }
  12532. if (!this.studyJuri[0].cover[0].url) {
  12533. this.$message.error("请上传文件");
  12534. return;
  12535. }
  12536. let params = [
  12537. {
  12538. uid: this.sStudent.userid,
  12539. cid: this.id,
  12540. stage: this.courseType,
  12541. task: i,
  12542. tool: this.toolindex,
  12543. content: this.studyJuri[0].cover[0].url,
  12544. type: typesql,
  12545. ateacher: this.userid,
  12546. },
  12547. ];
  12548. this.ajax
  12549. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12550. .then((res) => {
  12551. this.$message({
  12552. message: "提交成功",
  12553. type: "success",
  12554. });
  12555. this.studyJuri[0].cover = [];
  12556. this.dialogVisibleWorks = false;
  12557. this.getCourseDetail();
  12558. })
  12559. .catch((err) => {
  12560. this.$message.error("提交失败");
  12561. console.error(err);
  12562. });
  12563. },
  12564. selectUploadStudent(type) {
  12565. const loading = this.$loading.service({
  12566. background: "rgba(255, 255, 255, 0.7)",
  12567. target: document.body,
  12568. });
  12569. let params = {
  12570. cid: this.uploadCid,
  12571. oid: this.oid,
  12572. cn: "",
  12573. };
  12574. this.ajax
  12575. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12576. .then((res) => {
  12577. loading.close();
  12578. var studentK = [];
  12579. if (this.isWorksS[this.toolindex].length > 0) {
  12580. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12581. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12582. }
  12583. studentK = studentK.join(",");
  12584. }
  12585. this.uploadStudentJuri = res.data[0].filter((el) => {
  12586. return studentK.indexOf(el.userid) == -1;
  12587. });
  12588. if (this.worksSName && this.worksSid) {
  12589. this.uploadStudentJuri.push({
  12590. userid: this.worksSid,
  12591. name: this.worksSName,
  12592. });
  12593. }
  12594. if (type == 1) {
  12595. this.plworkFile = [];
  12596. this.dialogVisibleSname = true;
  12597. } else if (type == 2) {
  12598. this.dialogVisiblePl = true;
  12599. }
  12600. })
  12601. .catch((err) => {
  12602. loading.close();
  12603. console.error(err);
  12604. });
  12605. },
  12606. selectPickStudent() {
  12607. const loading = this.$loading.service({
  12608. background: "rgba(255, 255, 255, 0.7)",
  12609. target: document.body,
  12610. });
  12611. let params = {
  12612. cid: this.uploadCid,
  12613. oid: this.oid,
  12614. cn: "",
  12615. };
  12616. this.ajax
  12617. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12618. .then((res) => {
  12619. loading.close();
  12620. this.uploadStudentJuri = res.data[0];
  12621. this.dialogVisiblePickPeople = true;
  12622. })
  12623. .catch((err) => {
  12624. loading.close();
  12625. console.error(err);
  12626. });
  12627. },
  12628. arrayToArray(arrayo, arrayt) {
  12629. let array1 = arrayo;
  12630. let array2 = arrayt;
  12631. let commonElements = [];
  12632. for (let i = 0; i < array1.length; i++) {
  12633. for (let j = 0; j < array2.length; j++) {
  12634. if (array1[i] === array2[j]) {
  12635. commonElements.push(array1[i]);
  12636. }
  12637. }
  12638. }
  12639. return commonElements;
  12640. },
  12641. selectWorksStudent() {
  12642. let params = {
  12643. oid: this.oid,
  12644. cid: this.courseDetail.juri,
  12645. };
  12646. this.ajax
  12647. .get(this.$store.state.api + "selectWorksStudent", params)
  12648. .then((res) => {
  12649. var a = res.data[0];
  12650. for (var i = 0; i < this.isWorksS.length; i++) {
  12651. this.noWorksS[i] = [];
  12652. var studentK = [];
  12653. if (this.isWorksS[i].length > 0) {
  12654. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12655. studentK.push(this.isWorksS[i][z].uid);
  12656. }
  12657. studentK = studentK.join(",");
  12658. for (var j = 0; j < a.length; j++) {
  12659. // if (studentK.indexOf(a[j].userid) == -1) {
  12660. if (this.tcid) {
  12661. // a[j].classid.indexOf(this.tcid) != -1
  12662. if (
  12663. this.arrayToArray(
  12664. a[j].classid.split(","),
  12665. this.tcid.split(",")
  12666. ).length
  12667. ) {
  12668. this.noWorksS[i].push({
  12669. student: a[j].name,
  12670. userid: a[j].userid,
  12671. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12672. });
  12673. }
  12674. } else {
  12675. this.noWorksS[i].push({
  12676. student: a[j].name,
  12677. userid: a[j].userid,
  12678. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12679. });
  12680. }
  12681. // }
  12682. }
  12683. } else {
  12684. for (var k = 0; k < a.length; k++) {
  12685. if (this.tcid) {
  12686. if (
  12687. this.arrayToArray(
  12688. a[k].classid.split(","),
  12689. this.tcid.split(",")
  12690. ).length
  12691. ) {
  12692. this.noWorksS[i].push({
  12693. student: a[k].name,
  12694. userid: a[k].userid,
  12695. type: "1",
  12696. });
  12697. }
  12698. } else {
  12699. this.noWorksS[i].push({
  12700. student: a[k].name,
  12701. userid: a[k].userid,
  12702. type: "1",
  12703. });
  12704. }
  12705. }
  12706. }
  12707. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  12708. // let jscoreA = parseInt(a.type);
  12709. // let jscoreB = parseInt(b.type);
  12710. // return jscoreB - jscoreA;
  12711. // });
  12712. }
  12713. this.$forceUpdate();
  12714. if (
  12715. Object.keys(this.commentDetail).length &&
  12716. Object.keys(this.commentIndexJson).length &&
  12717. !this.dialogVisibleScore
  12718. ) {
  12719. let a = 1;
  12720. let c = this.commentIndexJson;
  12721. console.log(c);
  12722. if (
  12723. this.commentIndexJson.gindex ||
  12724. this.commentIndexJson.gindex === 0
  12725. ) {
  12726. for (
  12727. var i = 0;
  12728. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12729. i++
  12730. ) {
  12731. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12732. groupA: for (var k = 0; k < _el.length; k++) {
  12733. let el = _el[k];
  12734. if (el.wid == this.commentDetail.wid) {
  12735. a = 2;
  12736. this.commentOther(
  12737. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12738. this.commentIndexJson.toolIndex,
  12739. k,
  12740. this.commentIndexJson.gindex
  12741. );
  12742. break groupA;
  12743. }
  12744. }
  12745. }
  12746. if (a === 1) {
  12747. this.commentDetail = [];
  12748. this.commentIndexJson = {};
  12749. this.commentDialogVisible = false;
  12750. this.$message("此作业已被删除");
  12751. }
  12752. } else {
  12753. if (this.isGroup && this.commentIndexJson.gid) {
  12754. groupA: for (
  12755. var i = 0;
  12756. i < this.courseGroup.group.length;
  12757. i++
  12758. ) {
  12759. let _group = this.courseGroup.group[i];
  12760. if (_group.id == this.commentIndexJson.gid) {
  12761. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12762. for (var k = 0; k < _el2.length; k++) {
  12763. let el2 = _el2[k];
  12764. if (el2.wid == this.commentDetail.wid) {
  12765. a = 2;
  12766. this.commentOther(
  12767. _el2[k],
  12768. this.commentIndexJson.toolIndex,
  12769. k,
  12770. null,
  12771. this.commentIndexJson.gid
  12772. );
  12773. break groupA;
  12774. }
  12775. }
  12776. }
  12777. }
  12778. }
  12779. if (a == 1) {
  12780. for (
  12781. var i = 0;
  12782. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12783. i++
  12784. ) {
  12785. let el =
  12786. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12787. if (el.wid == this.commentDetail.wid) {
  12788. a = 2;
  12789. this.commentOther(
  12790. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12791. this.commentIndexJson.toolIndex,
  12792. i
  12793. );
  12794. break;
  12795. }
  12796. }
  12797. }
  12798. if (a === 1) {
  12799. this.commentDetail = [];
  12800. this.commentIndexJson = {};
  12801. this.commentDialogVisible = false;
  12802. this.$message("此作业已被删除");
  12803. }
  12804. }
  12805. }
  12806. })
  12807. .catch((err) => {
  12808. console.error(err);
  12809. });
  12810. },
  12811. selectStudent() {},
  12812. openVideo(w) {
  12813. this.videoDetail = {};
  12814. this.playerOptions1.sources[0].src = w.works;
  12815. this.videoDetail = this.playerOptions1;
  12816. this.videoVisible = true;
  12817. },
  12818. isLikes(wid, uid, t, c, isLikes) {
  12819. if (isLikes == false) {
  12820. let params = [
  12821. {
  12822. wid: wid,
  12823. lid: uid,
  12824. t: t,
  12825. c: c,
  12826. },
  12827. ];
  12828. this.ajax
  12829. .post(this.$store.state.api + "insertComment", params)
  12830. .then((res) => {
  12831. this.$message({
  12832. message: "点赞成功",
  12833. type: "success",
  12834. });
  12835. this.selectSWorks();
  12836. this.selectStudent();
  12837. })
  12838. .catch((err) => {
  12839. this.$message.error("点赞失败");
  12840. console.error(err);
  12841. });
  12842. } else {
  12843. let params = {
  12844. wid: wid,
  12845. lid: uid,
  12846. type: t,
  12847. };
  12848. this.ajax
  12849. .get(this.$store.state.api + "deleteComment", params)
  12850. .then((res) => {
  12851. this.$message({
  12852. message: "取消点赞成功",
  12853. type: "success",
  12854. });
  12855. this.selectSWorks();
  12856. this.selectStudent();
  12857. })
  12858. .catch((err) => {
  12859. console.error(err);
  12860. });
  12861. }
  12862. },
  12863. deleteComment(wid) {
  12864. this.$confirm("确定删除此评论吗?", "提示", {
  12865. confirmButtonText: "确定",
  12866. cancelButtonText: "取消",
  12867. type: "warning",
  12868. })
  12869. .then(() => {
  12870. let params = {
  12871. id: wid,
  12872. };
  12873. this.ajax
  12874. .get(this.$store.state.api + "deleteComment2", params)
  12875. .then((res) => {
  12876. this.$message({
  12877. message: "删除评论成功",
  12878. type: "success",
  12879. });
  12880. this.selectSWorks();
  12881. this.selectStudent();
  12882. })
  12883. .catch((err) => {
  12884. console.error(err);
  12885. });
  12886. })
  12887. .catch(() => {});
  12888. },
  12889. commentOther(w, toolIndex, wIndex, gindex, gid) {
  12890. this.commentIndexJson = {
  12891. toolIndex: toolIndex,
  12892. wIndex: wIndex,
  12893. gindex: gindex,
  12894. gid: gid,
  12895. };
  12896. this.commentDetail = [];
  12897. this.commentDialogVisible = true;
  12898. this.commentDetail = w;
  12899. if (w.works && w.type == 1) {
  12900. this.pptImgUrl = "";
  12901. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12902. if (
  12903. a.indexOf(
  12904. w.works
  12905. .split(".")
  12906. [w.works.split(".").length - 1].toLocaleUpperCase()
  12907. ) != -1
  12908. ) {
  12909. this.pptImgUrl =
  12910. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12911. this.showPDF = false;
  12912. } else if (
  12913. w.works
  12914. .split(".")
  12915. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12916. ) {
  12917. this.pptImgUrl = w.works;
  12918. this.showPDF = true;
  12919. }
  12920. } else if (w.works && w.type == 3) {
  12921. this.videoDetail = {};
  12922. this.playerOptions1.sources[0].src = w.works;
  12923. this.videoDetail = this.playerOptions1;
  12924. // this.videoVisible = true;
  12925. } else if (w.works && w.type == 4) {
  12926. this.eScore = JSON.parse(w.works);
  12927. this.rateJson =
  12928. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12929. this.taskCount
  12930. ].toolChoose[toolIndex].rateJson;
  12931. } else if (w.works && w.type == 10) {
  12932. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  12933. } else if (w.works && w.type == 13) {
  12934. this.wordJson =
  12935. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12936. this.taskCount
  12937. ].toolChoose[toolIndex].wordJson;
  12938. }
  12939. },
  12940. openScore(w) {
  12941. this.wScore = 0;
  12942. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  12943. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  12944. this.commentDetail = [];
  12945. this.dialogVisibleScore = true;
  12946. this.commentDetail = w;
  12947. if (w.works && w.type == 1) {
  12948. this.pptImgUrl = "";
  12949. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12950. if (
  12951. a.indexOf(
  12952. w.works
  12953. .split(".")
  12954. [w.works.split(".").length - 1].toLocaleUpperCase()
  12955. ) != -1
  12956. ) {
  12957. this.pptImgUrl =
  12958. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12959. this.showPDF = false;
  12960. } else if (
  12961. w.works
  12962. .split(".")
  12963. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12964. ) {
  12965. this.pptImgUrl = w.works;
  12966. this.showPDF = true;
  12967. }
  12968. } else if (w.works && w.type == 3) {
  12969. this.videoDetail = {};
  12970. this.playerOptions1.sources[0].src = w.works;
  12971. this.videoDetail = this.playerOptions1;
  12972. }
  12973. },
  12974. addComment(wid, uid, t) {
  12975. if (this.commentText == "") {
  12976. this.$message.error("请输入评论");
  12977. return;
  12978. }
  12979. let params2 = [
  12980. {
  12981. wid: wid,
  12982. lid: uid,
  12983. t: t,
  12984. },
  12985. ];
  12986. this.ajax
  12987. .post(this.$store.state.api + "getComment", params2)
  12988. .then((res) => {
  12989. if (res.data[0].length > 0) {
  12990. this.$message.error("一个作业只能评论一条");
  12991. } else {
  12992. let params = [
  12993. {
  12994. wid: wid,
  12995. lid: uid,
  12996. t: t,
  12997. c: this.commentText,
  12998. },
  12999. ];
  13000. this.ajax
  13001. .post(this.$store.state.api + "insertComment", params)
  13002. .then((res) => {
  13003. this.$message({
  13004. message: "评论成功",
  13005. type: "success",
  13006. });
  13007. this.commentText = "";
  13008. this.selectSWorks();
  13009. this.selectStudent();
  13010. })
  13011. .catch((err) => {
  13012. this.$message.error("评论失败");
  13013. console.error(err);
  13014. });
  13015. }
  13016. })
  13017. .catch((err) => {
  13018. // this.$message.error("评论失败");
  13019. console.error(err);
  13020. });
  13021. },
  13022. scoreWork(wid) {
  13023. if (this.wScore == 0) {
  13024. this.$message.error("请评分");
  13025. return;
  13026. }
  13027. let params = [
  13028. {
  13029. wid: wid,
  13030. score: JSON.stringify({
  13031. wScore: this.wScore,
  13032. detail: this.scoreDetail,
  13033. }),
  13034. },
  13035. ];
  13036. this.ajax
  13037. .post(this.$store.state.api + "scoreWork", params)
  13038. .then((res) => {
  13039. this.$message({
  13040. message: "评分成功",
  13041. type: "success",
  13042. });
  13043. this.wScore = 0;
  13044. this.scoreDetail = "";
  13045. this.dialogVisibleScore = false;
  13046. this.selectSWorks();
  13047. this.selectStudent();
  13048. })
  13049. .catch((err) => {
  13050. this.$message.error("评分失败");
  13051. console.error(err);
  13052. });
  13053. },
  13054. openXz(w, i) {
  13055. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13056. .taskJson[this.taskCount].toolChoose[i].selectJson
  13057. ? JSON.parse(
  13058. JSON.stringify(
  13059. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13060. this.taskCount
  13061. ].toolChoose[i].selectJson
  13062. )
  13063. )
  13064. : { url: "", select: [], answer: [] };
  13065. var a = w.works.split(",");
  13066. for (var k = 0; k < a.length; k++) {
  13067. a[k] = parseInt(a[k]);
  13068. }
  13069. this.selectAnswer = { answer: a, stu: w.sName };
  13070. this.isSelect = true;
  13071. this.dialogVisibleSelect = true;
  13072. },
  13073. openSen(w, i) {
  13074. this.sentenceList1 = JSON.parse(w.works);
  13075. this.sentenceList1.stuName = w.sName;
  13076. this.dialogVisibleSentence1 = true;
  13077. },
  13078. openPj(w, toolindex) {
  13079. this.isStar = true;
  13080. this.eScore = JSON.parse(w);
  13081. this.rateJson =
  13082. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13083. this.taskCount
  13084. ].toolChoose[toolindex].rateJson;
  13085. this.studentEvalDialogVisible = true;
  13086. },
  13087. deleteWorks(id) {
  13088. this.$confirm("确定删除此作业吗?", "提示", {
  13089. confirmButtonText: "确定",
  13090. cancelButtonText: "取消",
  13091. type: "warning",
  13092. })
  13093. .then(() => {
  13094. let params = [
  13095. {
  13096. id: id,
  13097. },
  13098. ];
  13099. this.ajax
  13100. .post(this.$store.state.api + "deleteCourseWork", params)
  13101. .then((res) => {
  13102. this.$message({
  13103. message: "删除成功",
  13104. type: "success",
  13105. });
  13106. this.selectStudent();
  13107. this.selectSWorks();
  13108. this.selectSLook();
  13109. })
  13110. .catch((err) => {
  13111. this.$message.error("网络异常");
  13112. console.error(err);
  13113. });
  13114. })
  13115. .catch(() => {});
  13116. },
  13117. selectSWorks(gindex) {
  13118. //教师查看全部作业
  13119. let params = {
  13120. cid: this.id,
  13121. s: this.courseType,
  13122. t: this.taskCount,
  13123. };
  13124. this.ajax
  13125. .get(this.$store.state.api + "selectSWorks", params)
  13126. .then((res) => {
  13127. var a =
  13128. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13129. this.taskCount
  13130. ].toolChoose;
  13131. var b = res.data[0];
  13132. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13133. var y = [
  13134. "AVI",
  13135. "NAVI",
  13136. "MPEG",
  13137. "ASF",
  13138. "MOV",
  13139. "WMV",
  13140. "3GP",
  13141. "RM",
  13142. "RMVB",
  13143. "FLV",
  13144. "F4V",
  13145. "H.264",
  13146. "H.265",
  13147. "REAL VIDEO",
  13148. "MKV",
  13149. "WebM",
  13150. "HDDVD",
  13151. "MP4",
  13152. "MPG",
  13153. "M4V",
  13154. "MGV",
  13155. "OGV",
  13156. "QTM",
  13157. "STR",
  13158. "AMC",
  13159. "DVX",
  13160. "EVO",
  13161. "DAT",
  13162. "OGG",
  13163. "OGM",
  13164. ];
  13165. var d = res.data[1];
  13166. var e = res.data[2];
  13167. var f = res.data[3];
  13168. for (var i = 0; i < a.length; i++) {
  13169. this.worksStudent[i] = [];
  13170. this.worksTeacher[i] = [];
  13171. this.worksStudent2[i] = [];
  13172. if (
  13173. !this.isCloseList[i] ||
  13174. this.isCloseList[i].isClose == undefined
  13175. ) {
  13176. this.isCloseList[i] = { isClose: 0 };
  13177. }
  13178. this.groupStudent[i] = [];
  13179. this.groupStudentUid[i] = [];
  13180. this.isWorksS[i] = [];
  13181. this.checkJson[i] = [];
  13182. if (a[i].tool[0] == 49) {
  13183. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13184. this.groupStudent[i][gA] = [];
  13185. this.groupStudentUid[i][gA] = [];
  13186. this.worksStudent[i][gA] = [];
  13187. this.isCloseList[i][gA] = [];
  13188. for (var g = 0; g < f.length; g++) {
  13189. if (
  13190. f[g].ttype == 2 &&
  13191. this.tcid &&
  13192. this.arrayToArray(
  13193. f[g].classid.split(","),
  13194. this.tcid.split(",")
  13195. ).length == 0
  13196. ) {
  13197. continue;
  13198. }
  13199. if (gA == f[g].group && f[g].tool == i) {
  13200. this.groupStudent[i][gA].push(f[g]);
  13201. this.groupStudentUid[i][gA].push(f[g].userid);
  13202. }
  13203. }
  13204. }
  13205. this.$forceUpdate();
  13206. }
  13207. for (var j = 0; j < b.length; j++) {
  13208. if (
  13209. b[j].ttype == 2 &&
  13210. this.tcid &&
  13211. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13212. .length == 0
  13213. ) {
  13214. continue;
  13215. }
  13216. var likesCount = 0;
  13217. var commentCount = 0;
  13218. var isLikes = false;
  13219. var commentJson = [];
  13220. var data = b[j];
  13221. if (i == b[j].tool) {
  13222. if (data.type == 2 && a[i].tool[0] == 4) {
  13223. // if(JSON.parse(data.content)[0].anwer){
  13224. var checkL =
  13225. JSON.parse(data.content)[0].anwer instanceof Array
  13226. ? JSON.parse(data.content)[0].anwer
  13227. : JSON.parse(data.content)[0].anwer.split(",");
  13228. for (var z = 0; z < checkL.length; z++) {
  13229. if (!this.checkJson[i][z]) {
  13230. this.checkJson[i].push({
  13231. checkCount: [],
  13232. checkPerson: [],
  13233. rightPerson: [],
  13234. });
  13235. }
  13236. if (!this.checkJson[i][z].checkCount.length) {
  13237. this.checkJson[i][z].checkCount = [];
  13238. let _askItemCount = JSON.parse(data.content)[0].askJson
  13239. .askJson[z].askItem;
  13240. for (var aic = 0; aic < _askItemCount; aic++) {
  13241. this.checkJson[i][z].checkCount.push(0);
  13242. }
  13243. }
  13244. if (checkL[z] instanceof Array) {
  13245. if (
  13246. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13247. checkL[z].sort().join(",")
  13248. ) {
  13249. this.checkJson[i][z].rightPerson.push(data.name);
  13250. }
  13251. for (var q = 0; q < checkL[z].length; q++) {
  13252. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13253. ? this.checkJson[i][z].checkPerson[
  13254. parseInt(checkL[z][q])
  13255. ].push(data.name)
  13256. : (this.checkJson[i][z].checkPerson[
  13257. parseInt(checkL[z][q])
  13258. ] = [data.name]);
  13259. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13260. ? this.checkJson[i][z].checkCount[
  13261. parseInt(checkL[z][q])
  13262. ]++
  13263. : (this.checkJson[i][z].checkCount[
  13264. parseInt(checkL[z][q])
  13265. ] = 1);
  13266. }
  13267. } else {
  13268. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13269. this.checkJson[i][z].rightPerson.push(data.name);
  13270. }
  13271. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13272. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13273. ? this.checkJson[i][z].checkPerson[
  13274. parseInt(checkL[z])
  13275. ].push(data.name)
  13276. : (this.checkJson[i][z].checkPerson[
  13277. parseInt(checkL[z])
  13278. ] = [data.name]);
  13279. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13280. ? this.checkJson[i][z].checkCount[
  13281. parseInt(checkL[z])
  13282. ]++
  13283. : (this.checkJson[i][z].checkCount[
  13284. parseInt(checkL[z])
  13285. ] = 1);
  13286. }
  13287. }
  13288. }
  13289. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13290. var checkL = JSON.parse(data.content)[0].anwer;
  13291. for (var z = 0; z < checkL.length; z++) {
  13292. if (!this.checkJson[i][z]) {
  13293. this.checkJson[i].push({
  13294. checkCount: [],
  13295. checkPerson: [],
  13296. rightPerson: [],
  13297. });
  13298. }
  13299. if (!this.checkJson[i][z].checkCount.length) {
  13300. this.checkJson[i][z].checkCount = [];
  13301. let _askItemCount = JSON.parse(data.content)[0].testJson
  13302. .testJson[z].testItem;
  13303. console.log(_askItemCount);
  13304. for (var aic = 0; aic < _askItemCount; aic++) {
  13305. this.checkJson[i][z].checkCount.push(0);
  13306. }
  13307. }
  13308. if (checkL[z] instanceof Array) {
  13309. if (
  13310. JSON.parse(data.content)[0]
  13311. .testJson.testJson[z].answer.sort()
  13312. .join(",") == checkL[z].sort().join(",")
  13313. ) {
  13314. this.checkJson[i][z].rightPerson.push(data.name);
  13315. }
  13316. for (var q = 0; q < checkL[z].length; q++) {
  13317. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13318. ? this.checkJson[i][z].checkPerson[
  13319. parseInt(checkL[z][q])
  13320. ].push(data.name)
  13321. : (this.checkJson[i][z].checkPerson[
  13322. parseInt(checkL[z][q])
  13323. ] = [data.name]);
  13324. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13325. ? this.checkJson[i][z].checkCount[
  13326. parseInt(checkL[z][q])
  13327. ]++
  13328. : (this.checkJson[i][z].checkCount[
  13329. parseInt(checkL[z][q])
  13330. ] = 1);
  13331. }
  13332. } else {
  13333. if (
  13334. JSON.parse(data.content)[0].testJson.testJson[z]
  13335. .answer == checkL[z]
  13336. ) {
  13337. this.checkJson[i][z].rightPerson.push(data.name);
  13338. }
  13339. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13340. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13341. ? this.checkJson[i][z].checkPerson[
  13342. parseInt(checkL[z])
  13343. ].push(data.name)
  13344. : (this.checkJson[i][z].checkPerson[
  13345. parseInt(checkL[z])
  13346. ] = [data.name]);
  13347. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13348. ? this.checkJson[i][z].checkCount[
  13349. parseInt(checkL[z])
  13350. ]++
  13351. : (this.checkJson[i][z].checkCount[
  13352. parseInt(checkL[z])
  13353. ] = 1);
  13354. }
  13355. }
  13356. }
  13357. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13358. var checkL = JSON.parse(data.content);
  13359. for (var z = 0; z < checkL.length; z++) {
  13360. if (!this.checkJson[i][z]) {
  13361. this.checkJson[i].push({
  13362. checkCount: [],
  13363. checkPerson: [],
  13364. rightPerson: [],
  13365. });
  13366. }
  13367. this.checkJson[i][z].checkPerson.push(data.name);
  13368. if (
  13369. checkL[z].chooseSenList.toString() ==
  13370. checkL[z].rightAnswer.toString()
  13371. ) {
  13372. this.checkJson[i][z].rightPerson.push(data.name);
  13373. }
  13374. }
  13375. }
  13376. for (var k = 0; k < d.length; k++) {
  13377. //点赞
  13378. if (d[k].workId == b[j].id) {
  13379. likesCount++;
  13380. if (d[k].likesId == this.userid) {
  13381. isLikes = true;
  13382. }
  13383. }
  13384. }
  13385. for (var l = 0; l < e.length; l++) {
  13386. //评论
  13387. if (e[l].workId == b[j].id) {
  13388. if (e[l].comment != "") {
  13389. commentCount++;
  13390. commentJson.push({
  13391. commentText: e[l].comment,
  13392. commentTime: e[l].commentTime,
  13393. commentPeople: e[l].commentPeople,
  13394. userid: e[l].userid,
  13395. wid: e[l].id,
  13396. });
  13397. }
  13398. }
  13399. }
  13400. if (
  13401. (b[j].type == 1 ||
  13402. b[j].type == 4 ||
  13403. b[j].type == 5 ||
  13404. b[j].type == 6 ||
  13405. b[j].type == 12 ||
  13406. b[j].type == 7) &&
  13407. a[i].tool[0] != 15 &&
  13408. a[i].tool[0] != 4 &&
  13409. a[i].tool[0] != 45 &&
  13410. a[i].tool[0] != 50 &&
  13411. a[i].tool[0] != 32 &&
  13412. a[i].tool[0] != 57 &&
  13413. a[i].tool[0] != 52
  13414. ) {
  13415. if (
  13416. c.indexOf(
  13417. b[j].content
  13418. .split(".")
  13419. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13420. ) != -1 &&
  13421. a[i].tool[0] == 16 &&
  13422. b[j].atool != 50
  13423. ) {
  13424. let _works = {
  13425. userid: b[j].userid,
  13426. ateacher: b[j].ateacher,
  13427. wid: b[j].id,
  13428. works: b[j].content,
  13429. sName: b[j].name,
  13430. type: 1,
  13431. time: b[j].time,
  13432. score: b[j].score,
  13433. img: b[j].img,
  13434. likesCount: likesCount,
  13435. commentCount: commentCount,
  13436. isLikes: isLikes,
  13437. commentJson: commentJson,
  13438. };
  13439. if (b[j].ttype == 1) {
  13440. this.worksTeacher[i].push(_works);
  13441. } else {
  13442. this.worksStudent2[i].push(_works);
  13443. }
  13444. this.worksStudent[i].push(_works);
  13445. this.isWorksS[i].push({
  13446. uid: b[j].userid,
  13447. sName: b[j].name,
  13448. });
  13449. } else if (
  13450. y.indexOf(
  13451. b[j].content
  13452. .split(".")
  13453. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13454. ) != -1 &&
  13455. a[i].tool[0] == 16 &&
  13456. b[j].atool != 50
  13457. ) {
  13458. let _works = {
  13459. userid: b[j].userid,
  13460. ateacher: b[j].ateacher,
  13461. wid: b[j].id,
  13462. works: b[j].content,
  13463. sName: b[j].name,
  13464. type: 3,
  13465. time: b[j].time,
  13466. score: b[j].score,
  13467. img: b[j].img,
  13468. likesCount: likesCount,
  13469. commentCount: commentCount,
  13470. isLikes: isLikes,
  13471. commentJson: commentJson,
  13472. };
  13473. if (b[j].ttype == 1) {
  13474. this.worksTeacher[i].push(_works);
  13475. } else {
  13476. this.worksStudent2[i].push(_works);
  13477. }
  13478. this.worksStudent[i].push(_works);
  13479. this.isWorksS[i].push({
  13480. uid: b[j].userid,
  13481. sName: b[j].name,
  13482. });
  13483. } else if (b[j].type == 6 && b[j].atool != 50) {
  13484. let _works = {
  13485. userid: b[j].userid,
  13486. ateacher: b[j].ateacher,
  13487. wid: b[j].id,
  13488. works: b[j].content,
  13489. sName: b[j].name,
  13490. type: 4,
  13491. time: b[j].time,
  13492. score: b[j].score,
  13493. img: b[j].img,
  13494. likesCount: likesCount,
  13495. commentCount: commentCount,
  13496. isLikes: isLikes,
  13497. commentJson: commentJson,
  13498. };
  13499. if (b[j].ttype == 1) {
  13500. this.worksTeacher[i].push(_works);
  13501. } else {
  13502. this.worksStudent2[i].push(_works);
  13503. }
  13504. this.worksStudent[i].push(_works);
  13505. this.isWorksS[i].push({
  13506. uid: b[j].userid,
  13507. sName: b[j].name,
  13508. });
  13509. } else if (b[j].type == 7 && b[j].atool != 50) {
  13510. let _works = {
  13511. userid: b[j].userid,
  13512. ateacher: b[j].ateacher,
  13513. wid: b[j].id,
  13514. works: b[j].content,
  13515. sName: b[j].name,
  13516. type: 5,
  13517. time: b[j].time,
  13518. score: b[j].score,
  13519. img: b[j].img,
  13520. likesCount: likesCount,
  13521. commentCount: commentCount,
  13522. isLikes: isLikes,
  13523. commentJson: commentJson,
  13524. };
  13525. if (b[j].ttype == 1) {
  13526. this.worksTeacher[i].push(_works);
  13527. } else {
  13528. this.worksStudent2[i].push(_works);
  13529. }
  13530. this.worksStudent[i].push(_works);
  13531. this.isWorksS[i].push({
  13532. uid: b[j].userid,
  13533. sName: b[j].name,
  13534. });
  13535. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13536. let _works = {
  13537. userid: b[j].userid,
  13538. ateacher: b[j].ateacher,
  13539. wid: b[j].id,
  13540. works: b[j].content,
  13541. sName: b[j].name,
  13542. type: 12,
  13543. time: b[j].time,
  13544. score: b[j].score,
  13545. img: b[j].img,
  13546. likesCount: likesCount,
  13547. commentCount: commentCount,
  13548. isLikes: isLikes,
  13549. commentJson: commentJson,
  13550. };
  13551. if (b[j].ttype == 1) {
  13552. this.worksTeacher[i].push(_works);
  13553. } else {
  13554. this.worksStudent2[i].push(_works);
  13555. }
  13556. this.worksStudent[i].push(_works);
  13557. this.isWorksS[i].push({
  13558. uid: b[j].userid,
  13559. sName: b[j].name,
  13560. });
  13561. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13562. let _works = {
  13563. userid: b[j].userid,
  13564. ateacher: b[j].ateacher,
  13565. wid: b[j].id,
  13566. works: b[j].content,
  13567. sName: b[j].name,
  13568. type: 0,
  13569. time: b[j].time,
  13570. score: b[j].score,
  13571. img: b[j].img,
  13572. likesCount: likesCount,
  13573. commentCount: commentCount,
  13574. isLikes: isLikes,
  13575. commentJson: commentJson,
  13576. };
  13577. if (b[j].ttype == 1) {
  13578. this.worksTeacher[i].push(_works);
  13579. } else {
  13580. this.worksStudent2[i].push(_works);
  13581. }
  13582. this.worksStudent[i].push(_works);
  13583. this.isWorksS[i].push({
  13584. uid: b[j].userid,
  13585. sName: b[j].name,
  13586. });
  13587. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13588. let _works = {
  13589. userid: b[j].userid,
  13590. ateacher: b[j].ateacher,
  13591. wid: b[j].id,
  13592. works: b[j].content,
  13593. sName: b[j].name,
  13594. type: 0,
  13595. time: b[j].time,
  13596. score: b[j].score,
  13597. img: b[j].img,
  13598. likesCount: likesCount,
  13599. commentCount: commentCount,
  13600. isLikes: isLikes,
  13601. commentJson: commentJson,
  13602. };
  13603. if (b[j].ttype == 1) {
  13604. this.worksTeacher[i].push(_works);
  13605. } else {
  13606. this.worksStudent2[i].push(_works);
  13607. }
  13608. this.worksStudent[i].push(_works);
  13609. this.isWorksS[i].push({
  13610. uid: b[j].userid,
  13611. sName: b[j].name,
  13612. });
  13613. }
  13614. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13615. let _works = {
  13616. userid: b[j].userid,
  13617. ateacher: b[j].ateacher,
  13618. wid: b[j].id,
  13619. works: b[j].content,
  13620. sName: b[j].name,
  13621. type: 2,
  13622. time: b[j].time,
  13623. score: b[j].score,
  13624. img: b[j].img,
  13625. likesCount: likesCount,
  13626. commentCount: commentCount,
  13627. isLikes: isLikes,
  13628. commentJson: commentJson,
  13629. };
  13630. if (b[j].ttype == 1) {
  13631. this.worksTeacher[i].push(_works);
  13632. } else {
  13633. this.worksStudent2[i].push(_works);
  13634. }
  13635. this.worksStudent[i].push(_works);
  13636. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13637. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13638. //问卷
  13639. let _works = {
  13640. userid: b[j].userid,
  13641. ateacher: b[j].ateacher,
  13642. wid: b[j].id,
  13643. works: b[j].content,
  13644. sName: b[j].name,
  13645. type: 2,
  13646. time: b[j].time,
  13647. score: b[j].score,
  13648. img: b[j].img,
  13649. likesCount: likesCount,
  13650. commentCount: commentCount,
  13651. isLikes: isLikes,
  13652. commentJson: commentJson,
  13653. };
  13654. if (b[j].ttype == 1) {
  13655. this.worksTeacher[i].push(_works);
  13656. } else {
  13657. this.worksStudent2[i].push(_works);
  13658. }
  13659. this.worksStudent[i].push(_works);
  13660. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13661. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13662. //选择题
  13663. let _works = {
  13664. userid: b[j].userid,
  13665. ateacher: b[j].ateacher,
  13666. wid: b[j].id,
  13667. works: b[j].content,
  13668. sName: b[j].name,
  13669. type: 8,
  13670. time: b[j].time,
  13671. score: b[j].score,
  13672. img: b[j].img,
  13673. likesCount: likesCount,
  13674. commentCount: commentCount,
  13675. isLikes: isLikes,
  13676. commentJson: commentJson,
  13677. };
  13678. if (b[j].ttype == 1) {
  13679. this.worksTeacher[i].push(_works);
  13680. } else {
  13681. this.worksStudent2[i].push(_works);
  13682. }
  13683. this.worksStudent[i].push(_works);
  13684. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13685. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13686. //选择题
  13687. let _works = {
  13688. userid: b[j].userid,
  13689. ateacher: b[j].ateacher,
  13690. wid: b[j].id,
  13691. works: b[j].content,
  13692. sName: b[j].name,
  13693. type: 9,
  13694. time: b[j].time,
  13695. score: b[j].score,
  13696. img: b[j].img,
  13697. likesCount: likesCount,
  13698. commentCount: commentCount,
  13699. isLikes: isLikes,
  13700. commentJson: commentJson,
  13701. };
  13702. if (b[j].ttype == 1) {
  13703. this.worksTeacher[i].push(_works);
  13704. } else {
  13705. this.worksStudent2[i].push(_works);
  13706. }
  13707. this.worksStudent[i].push(_works);
  13708. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13709. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13710. //选择题
  13711. let _works = {
  13712. userid: b[j].userid,
  13713. ateacher: b[j].ateacher,
  13714. wid: b[j].id,
  13715. works: b[j].content,
  13716. sName: b[j].name,
  13717. type: 10,
  13718. time: b[j].time,
  13719. score: b[j].score,
  13720. img: b[j].img,
  13721. likesCount: likesCount,
  13722. commentCount: commentCount,
  13723. isLikes: isLikes,
  13724. commentJson: commentJson,
  13725. };
  13726. if (b[j].ttype == 1) {
  13727. this.worksTeacher[i].push(_works);
  13728. } else {
  13729. this.worksStudent2[i].push(_works);
  13730. }
  13731. this.worksStudent[i].push(_works);
  13732. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13733. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13734. //选择题
  13735. let _works = {
  13736. userid: b[j].userid,
  13737. ateacher: b[j].ateacher,
  13738. wid: b[j].id,
  13739. works: b[j].content,
  13740. sName: b[j].name,
  13741. type: 13,
  13742. time: b[j].time,
  13743. score: b[j].score,
  13744. img: b[j].img,
  13745. likesCount: likesCount,
  13746. commentCount: commentCount,
  13747. isLikes: isLikes,
  13748. commentJson: commentJson,
  13749. };
  13750. if (b[j].ttype == 1) {
  13751. this.worksTeacher[i].push(_works);
  13752. } else {
  13753. this.worksStudent2[i].push(_works);
  13754. }
  13755. this.worksStudent[i].push(_works);
  13756. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13757. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13758. let _gindex = JSON.parse(b[j].content);
  13759. if (
  13760. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13761. b[j].userid
  13762. ) != -1
  13763. ) {
  13764. this.worksStudent[i][_gindex.groupIndex].push({
  13765. userid: b[j].userid,
  13766. ateacher: b[j].ateacher,
  13767. wid: b[j].id,
  13768. works: _gindex.url,
  13769. sName: b[j].name,
  13770. type: _gindex.type,
  13771. time: b[j].time,
  13772. score: b[j].score,
  13773. img: b[j].img,
  13774. likesCount: likesCount,
  13775. commentCount: commentCount,
  13776. isLikes: isLikes,
  13777. commentJson: commentJson,
  13778. });
  13779. }
  13780. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13781. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13782. let _works = {
  13783. userid: b[j].userid,
  13784. ateacher: b[j].ateacher,
  13785. wid: b[j].id,
  13786. works: b[j].content,
  13787. sName: b[j].name ? b[j].name : b[j].userid,
  13788. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13789. time: b[j].time,
  13790. score: b[j].score,
  13791. img: b[j].img,
  13792. likesCount: likesCount,
  13793. commentCount: commentCount,
  13794. isLikes: isLikes,
  13795. commentJson: commentJson,
  13796. };
  13797. if (b[j].ttype == 1) {
  13798. this.worksTeacher[i].push(_works);
  13799. } else {
  13800. this.worksStudent2[i].push(_works);
  13801. }
  13802. this.worksStudent[i].push(_works);
  13803. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13804. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13805. let _works = {
  13806. userid: b[j].userid,
  13807. ateacher: b[j].ateacher,
  13808. wid: b[j].id,
  13809. works: b[j].content,
  13810. sName: b[j].name ? b[j].name : b[j].userid,
  13811. type: 12,
  13812. time: b[j].time,
  13813. score: b[j].score,
  13814. img: b[j].img,
  13815. likesCount: likesCount,
  13816. commentCount: commentCount,
  13817. isLikes: isLikes,
  13818. commentJson: commentJson,
  13819. };
  13820. if (b[j].ttype == 1) {
  13821. this.worksTeacher[i].push(_works);
  13822. } else {
  13823. this.worksStudent2[i].push(_works);
  13824. }
  13825. this.worksStudent[i].push(_works);
  13826. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13827. } else if (
  13828. a[i].tool[0] == 57 &&
  13829. b[j].atool == 57 &&
  13830. b[j].type == 12
  13831. ) {
  13832. let _works = {
  13833. userid: b[j].userid,
  13834. ateacher: b[j].ateacher,
  13835. wid: b[j].id,
  13836. works: b[j].content,
  13837. sName: b[j].name ? b[j].name : b[j].userid,
  13838. type: 12,
  13839. time: b[j].time,
  13840. score: b[j].score,
  13841. img: b[j].img,
  13842. likesCount: likesCount,
  13843. commentCount: commentCount,
  13844. isLikes: isLikes,
  13845. commentJson: commentJson,
  13846. };
  13847. if (b[j].ttype == 1) {
  13848. this.worksTeacher[i].push(_works);
  13849. } else {
  13850. this.worksStudent2[i].push(_works);
  13851. }
  13852. this.worksStudent[i].push(_works);
  13853. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13854. } else if (
  13855. a[i].tool[0] == 57 &&
  13856. b[j].atool == 57 &&
  13857. b[j].type == 15
  13858. ) {
  13859. let _works = {
  13860. userid: b[j].userid,
  13861. ateacher: b[j].ateacher,
  13862. wid: b[j].id,
  13863. works: b[j].content,
  13864. sName: b[j].name ? b[j].name : b[j].userid,
  13865. type: 15,
  13866. time: b[j].time,
  13867. score: b[j].score,
  13868. img: b[j].img,
  13869. likesCount: likesCount,
  13870. commentCount: commentCount,
  13871. isLikes: isLikes,
  13872. commentJson: commentJson,
  13873. };
  13874. if (b[j].ttype == 1) {
  13875. this.worksTeacher[i].push(_works);
  13876. } else {
  13877. this.worksStudent2[i].push(_works);
  13878. }
  13879. this.worksStudent[i].push(_works);
  13880. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13881. }
  13882. }
  13883. }
  13884. if (this.worksStudent[i] && this.worksStudent[i].length) {
  13885. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  13886. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13887. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13888. var scoreA = parseFloat(jscoreA);
  13889. var scoreB = parseFloat(jscoreB);
  13890. if (scoreA == scoreB) {
  13891. return b.likesCount - a.likesCount;
  13892. }
  13893. return scoreB - scoreA;
  13894. });
  13895. }
  13896. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  13897. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  13898. a,
  13899. b
  13900. ) {
  13901. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13902. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13903. var scoreA = parseFloat(jscoreA);
  13904. var scoreB = parseFloat(jscoreB);
  13905. if (scoreA == scoreB) {
  13906. return b.likesCount - a.likesCount;
  13907. }
  13908. return scoreB - scoreA;
  13909. });
  13910. }
  13911. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  13912. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  13913. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13914. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13915. var scoreA = parseFloat(jscoreA);
  13916. var scoreB = parseFloat(jscoreB);
  13917. if (scoreA == scoreB) {
  13918. return b.likesCount - a.likesCount;
  13919. }
  13920. return scoreB - scoreA;
  13921. });
  13922. }
  13923. }
  13924. for (var i = 0; i < a.length; i++) {
  13925. for (var j = 0; j < b.length; j++) {
  13926. var data = b[j];
  13927. if (i == b[j].tool) {
  13928. if (data.type == 2 || data.type == 8) {
  13929. for (var z = 0; z < this.checkJson[i].length; z++) {
  13930. this.checkJson[i][z].checkPerent = [];
  13931. this.checkJson[i][z].right = Math.round(
  13932. (this.checkJson[i][z].rightPerson.length /
  13933. parseInt(this.worksStudent[i].length)) *
  13934. 100
  13935. );
  13936. let aaaa = this.checkJson[i][z];
  13937. console.log(aaaa);
  13938. for (
  13939. var k = 0;
  13940. k < this.checkJson[i][z].checkCount.length;
  13941. k++
  13942. ) {
  13943. this.checkJson[i][z].checkPerent.push(
  13944. Math.round(
  13945. (this.checkJson[i][z].checkCount[k] /
  13946. parseInt(this.worksStudent[i].length)) *
  13947. 100
  13948. )
  13949. );
  13950. }
  13951. }
  13952. } else if (data.type == 9) {
  13953. for (var z = 0; z < this.checkJson[i].length; z++) {
  13954. this.checkJson[i][z].checkPerent = [];
  13955. this.checkJson[i][z].right = Math.round(
  13956. (this.checkJson[i][z].rightPerson.length /
  13957. this.checkJson[i][z].checkPerson.length) *
  13958. 100
  13959. );
  13960. }
  13961. }
  13962. }
  13963. }
  13964. }
  13965. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  13966. this.joinGroup(gindex);
  13967. }
  13968. this.selectWorksStudent();
  13969. })
  13970. .catch((err) => {
  13971. console.error(err);
  13972. });
  13973. },
  13974. pngToWhiteBg(file) {
  13975. const _file = file;
  13976. let read = new FileReader();
  13977. read.readAsDataURL(file); // 文件转base64
  13978. return new Promise((resolve, reject) => {
  13979. read.onload = (e) => {
  13980. let img = new Image();
  13981. img.src = e.target.result;
  13982. img.onload = async () => {
  13983. // 生成canvas
  13984. let canvas = document.createElement("canvas");
  13985. let context = canvas.getContext("2d");
  13986. // 绘制图片到canvas上
  13987. canvas.width = img.width;
  13988. canvas.height = img.height;
  13989. // 在canvas绘制前填充白色背景
  13990. context.fillStyle = "#fff";
  13991. context.fillRect(0, 0, canvas.width, canvas.height);
  13992. context.drawImage(img, 0, 0);
  13993. let base64 = canvas.toDataURL(file["type"], 1);
  13994. let newFile = this.dataUrlToFile(base64, _file);
  13995. resolve(newFile);
  13996. };
  13997. };
  13998. });
  13999. },
  14000. dataUrlToFile(dataurl, file) {
  14001. let arr = dataurl.split(","),
  14002. mime = arr[0].match(/:(.*?);/)[1],
  14003. bstr = atob(arr[1]),
  14004. n = bstr.length,
  14005. u8arr = new Uint8Array(n);
  14006. while (n--) {
  14007. u8arr[n] = bstr.charCodeAt(n);
  14008. }
  14009. // return new Blob([u8arr], { type: mime });
  14010. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14011. type: mime,
  14012. });
  14013. },
  14014. async beforeUpload1(event, type, i) {
  14015. // this.$message.success('进入上传')
  14016. var file = "";
  14017. if (type == 5) {
  14018. file = event;
  14019. } else {
  14020. file = event.target.files[0];
  14021. }
  14022. var credentials = {
  14023. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14024. secretAccessKey: "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",
  14025. }; //秘钥形式的登录上传
  14026. window.AWS.config.update(credentials);
  14027. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14028. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14029. var _this = this;
  14030. _this.progress = 0;
  14031. _this.proVisible = true;
  14032. _this.isFinishSize = 0;
  14033. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14034. var b = [
  14035. "DOC",
  14036. "DOCX",
  14037. "DOCM",
  14038. "DOTM",
  14039. "DOTX",
  14040. "PPTX",
  14041. "PPSX",
  14042. "PPT",
  14043. "PPS",
  14044. "PPTM",
  14045. "POTM",
  14046. "PPAM",
  14047. "POTX",
  14048. "PPSM",
  14049. ];
  14050. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14051. var photoA = [
  14052. "BMP",
  14053. "GIF",
  14054. "PNG",
  14055. "JPGE",
  14056. "JPG",
  14057. "TIF",
  14058. "PCX",
  14059. "TGA",
  14060. "EXIF",
  14061. "FPX",
  14062. "SVG",
  14063. "APNG",
  14064. ];
  14065. // if (
  14066. // b.indexOf(
  14067. // file.name
  14068. // .split(".")
  14069. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14070. // ) != -1
  14071. // ) {
  14072. // if (file.size / 1024 / 1024 > 10) {
  14073. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14074. // return;
  14075. // }
  14076. // } else if (
  14077. // excelA.indexOf(
  14078. // file.name
  14079. // .split(".")
  14080. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14081. // ) != "-1"
  14082. // ) {
  14083. // if (file.size / 1024 / 1024 > 5) {
  14084. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14085. // return;
  14086. // }
  14087. // }
  14088. if (
  14089. photoA.indexOf(
  14090. file.name
  14091. .split(".")
  14092. [file.name.split(".").length - 1].toLocaleUpperCase()
  14093. ) != -1 &&
  14094. type != 4
  14095. ) {
  14096. // const blob = await imageConversion.compress(file, 0.8)
  14097. file = await this.pngToWhiteBg(file);
  14098. const blob = await imageConversion.compressAccurately(file, 256);
  14099. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14100. file = new File([blob], file.name, { type: file.type });
  14101. }
  14102. if (file) {
  14103. var params = {
  14104. Key:
  14105. file.name.split(".")[0] +
  14106. new Date().getTime() +
  14107. "." +
  14108. file.name.split(".")[file.name.split(".").length - 1],
  14109. ContentType: file.type,
  14110. Body: file,
  14111. "Access-Control-Allow-Credentials": "*",
  14112. ACL: "public-read",
  14113. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14114. var options = {
  14115. // partSize: 2048 * 1024 * 1024,
  14116. partSize: 1024 * 1024 * 1024,
  14117. queueSize: 2,
  14118. leavePartsOnError: true,
  14119. };
  14120. bucket
  14121. .upload(params, options)
  14122. .on("httpUploadProgress", function (evt) {
  14123. //这里可以写进度条
  14124. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14125. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14126. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14127. })
  14128. .send(function (err, data) {
  14129. _this.progress = 100;
  14130. _this.isFinishSize = _this.isAllSize;
  14131. setTimeout(() => {
  14132. _this.proVisible = false;
  14133. }, 1000);
  14134. if (err) {
  14135. var a = _this.$refs.upload1.uploadFiles;
  14136. a.splice(a.length - 1, a.length);
  14137. _this.$message.error("上传失败");
  14138. } else {
  14139. // _this.$message.success('上传成功')
  14140. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14141. var c = [
  14142. "AVI",
  14143. "NAVI",
  14144. "MPEG",
  14145. "ASF",
  14146. "MOV",
  14147. "WMV",
  14148. "3GP",
  14149. "RM",
  14150. "RMVB",
  14151. "FLV",
  14152. "F4V",
  14153. "H.264",
  14154. "H.265",
  14155. "REAL VIDEO",
  14156. "MKV",
  14157. "WebM",
  14158. "HDDVD",
  14159. "MP4",
  14160. "MPG",
  14161. "M4V",
  14162. "MGV",
  14163. "OGV",
  14164. "QTM",
  14165. "STR",
  14166. "AMC",
  14167. "DVX",
  14168. "EVO",
  14169. "DAT",
  14170. "OGG",
  14171. "OGM",
  14172. ];
  14173. if (type == 1) {
  14174. _this.studyJuri[0].cover.push({
  14175. name: file.name,
  14176. url: data.Location,
  14177. uid: file.uid,
  14178. });
  14179. if (
  14180. c.indexOf(
  14181. _this.studyJuri[0].cover[0].url
  14182. .split(".")
  14183. [
  14184. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14185. ].toLocaleUpperCase()
  14186. ) != -1
  14187. ) {
  14188. _this.fileType = 2;
  14189. } else if (
  14190. b.indexOf(
  14191. _this.studyJuri[0].cover[0].url
  14192. .split(".")
  14193. [
  14194. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14195. ].toLocaleUpperCase()
  14196. ) != -1
  14197. ) {
  14198. _this.fileType = 1;
  14199. } else if (
  14200. photoA.indexOf(
  14201. _this.studyJuri[0].cover[0].url
  14202. .split(".")
  14203. [
  14204. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14205. ].toLocaleUpperCase()
  14206. ) != -1
  14207. ) {
  14208. _this.fileType = 0;
  14209. } else {
  14210. _this.fileType = 3;
  14211. }
  14212. _this.imgChange(null, null, type);
  14213. } else if (type == 2) {
  14214. _this.upToolImg = data.Location;
  14215. _this.imgChange(null, null, type);
  14216. _this.addCourseWorks(i);
  14217. } else if (type == 4) {
  14218. _this.addPz("3", data.Location);
  14219. } else if (type == 5) {
  14220. _this.addImgDrawImG(data.Location);
  14221. } else if (type == 6) {
  14222. var _ftype = 1;
  14223. if (
  14224. c.indexOf(
  14225. data.Location.split(".")[
  14226. data.Location.split(".").length - 1
  14227. ].toLocaleUpperCase()
  14228. ) != -1
  14229. ) {
  14230. _ftype = 5;
  14231. } else if (
  14232. b.indexOf(
  14233. data.Location.split(".")[
  14234. data.Location.split(".").length - 1
  14235. ].toLocaleUpperCase()
  14236. ) != -1
  14237. ) {
  14238. _ftype = 4;
  14239. } else {
  14240. _ftype = 1;
  14241. }
  14242. _this.plworkFile.push({
  14243. name: file.name,
  14244. url: data.Location,
  14245. uid: file.uid,
  14246. fileType: _ftype,
  14247. username:
  14248. _this.plworkFile.length + 1 > 10
  14249. ? _this.plworkFile.length + 1
  14250. : "0" + (_this.plworkFile.length + 1),
  14251. });
  14252. } else if (type == 7) {
  14253. _this.addCourseWorksGong(i, data.Location, 32);
  14254. } else if (type == 8) {
  14255. _this.addCourseWorksGong(i, data.Location, 57);
  14256. }
  14257. _this.imgChange(null, null, type);
  14258. console.log(data.Location);
  14259. // _this.$message.success('上传成功'+data.Location)
  14260. }
  14261. });
  14262. }
  14263. },
  14264. async beforeUpload3(event, type, i) {
  14265. // this.$message.success('进入上传')
  14266. let file = "";
  14267. let cfindex2 = 0;
  14268. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14269. file = event.target.files[cfindex];
  14270. var credentials = {
  14271. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14272. secretAccessKey: "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",
  14273. }; //秘钥形式的登录上传
  14274. window.AWS.config.update(credentials);
  14275. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14276. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14277. var _this = this;
  14278. // _this.progress = 0;
  14279. _this.proVisible2 = true;
  14280. var b = [
  14281. "DOC",
  14282. "DOCX",
  14283. "DOCM",
  14284. "DOTM",
  14285. "DOTX",
  14286. "PPTX",
  14287. "PPSX",
  14288. "PPT",
  14289. "PPS",
  14290. "PPTM",
  14291. "POTM",
  14292. "PPAM",
  14293. "POTX",
  14294. "PPSM",
  14295. ];
  14296. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14297. var photoA = [
  14298. "BMP",
  14299. "GIF",
  14300. "PNG",
  14301. "JPGE",
  14302. "JPG",
  14303. "TIF",
  14304. "PCX",
  14305. "TGA",
  14306. "EXIF",
  14307. "FPX",
  14308. "SVG",
  14309. "APNG",
  14310. ];
  14311. if (
  14312. photoA.indexOf(
  14313. file.name
  14314. .split(".")
  14315. [file.name.split(".").length - 1].toLocaleUpperCase()
  14316. ) != -1 &&
  14317. type != 4
  14318. ) {
  14319. // const blob = await imageConversion.compress(file, 0.8)
  14320. file = await this.pngToWhiteBg(file);
  14321. const blob = await imageConversion.compressAccurately(file, 256);
  14322. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14323. file = new File([blob], file.name, { type: file.type });
  14324. }
  14325. if (file) {
  14326. var params = {
  14327. Key:
  14328. file.name.split(".")[0] +
  14329. new Date().getTime() +
  14330. "." +
  14331. file.name.split(".")[file.name.split(".").length - 1],
  14332. ContentType: file.type,
  14333. Body: file,
  14334. "Access-Control-Allow-Credentials": "*",
  14335. ACL: "public-read",
  14336. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14337. var options = {
  14338. // partSize: 2048 * 1024 * 1024,
  14339. partSize: 1024 * 1024 * 1024,
  14340. queueSize: 2,
  14341. leavePartsOnError: true,
  14342. };
  14343. bucket
  14344. .upload(params, options)
  14345. .on("httpUploadProgress", function (evt) {
  14346. //这里可以写进度条
  14347. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14348. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14349. })
  14350. .send(function (err, data) {
  14351. // _this.progress = 100;
  14352. cfindex2++;
  14353. setTimeout(() => {
  14354. if (
  14355. cfindex2 == event.target.files.length - 1 ||
  14356. cfindex2 > event.target.files.length - 1
  14357. ) {
  14358. _this.proVisible2 = false;
  14359. }
  14360. }, 1000);
  14361. if (err) {
  14362. var a = _this.$refs.upload1.uploadFiles;
  14363. a.splice(a.length - 1, a.length);
  14364. _this.$message.error("上传失败");
  14365. } else {
  14366. // _this.$message.success('上传成功')
  14367. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14368. var c = [
  14369. "AVI",
  14370. "NAVI",
  14371. "MPEG",
  14372. "ASF",
  14373. "MOV",
  14374. "WMV",
  14375. "3GP",
  14376. "RM",
  14377. "RMVB",
  14378. "FLV",
  14379. "F4V",
  14380. "H.264",
  14381. "H.265",
  14382. "REAL VIDEO",
  14383. "MKV",
  14384. "WebM",
  14385. "HDDVD",
  14386. "MP4",
  14387. "MPG",
  14388. "M4V",
  14389. "MGV",
  14390. "OGV",
  14391. "QTM",
  14392. "STR",
  14393. "AMC",
  14394. "DVX",
  14395. "EVO",
  14396. "DAT",
  14397. "OGG",
  14398. "OGM",
  14399. ];
  14400. if (type == 1) {
  14401. _this.studyJuri[0].cover.push({
  14402. name: file.name,
  14403. url: data.Location,
  14404. uid: file.uid,
  14405. });
  14406. if (
  14407. c.indexOf(
  14408. _this.studyJuri[0].cover[0].url
  14409. .split(".")
  14410. [
  14411. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14412. ].toLocaleUpperCase()
  14413. ) != -1
  14414. ) {
  14415. _this.fileType = 2;
  14416. } else if (
  14417. b.indexOf(
  14418. _this.studyJuri[0].cover[0].url
  14419. .split(".")
  14420. [
  14421. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14422. ].toLocaleUpperCase()
  14423. ) != -1
  14424. ) {
  14425. _this.fileType = 1;
  14426. } else {
  14427. _this.fileType = 0;
  14428. }
  14429. _this.imgChange(null, null, type);
  14430. } else if (type == 2) {
  14431. _this.upToolImg = data.Location;
  14432. _this.imgChange(null, null, type);
  14433. _this.addCourseWorks(i);
  14434. } else if (type == 4) {
  14435. _this.addPz("3", data.Location);
  14436. } else if (type == 5) {
  14437. _this.addImgDrawImG(data.Location);
  14438. } else if (type == 6) {
  14439. var _ftype = 1;
  14440. if (
  14441. c.indexOf(
  14442. data.Location.split(".")[
  14443. data.Location.split(".").length - 1
  14444. ].toLocaleUpperCase()
  14445. ) != -1
  14446. ) {
  14447. _ftype = 5;
  14448. } else if (
  14449. b.indexOf(
  14450. data.Location.split(".")[
  14451. data.Location.split(".").length - 1
  14452. ].toLocaleUpperCase()
  14453. ) != -1
  14454. ) {
  14455. _ftype = 4;
  14456. } else {
  14457. _ftype = 1;
  14458. }
  14459. _this.plworkFile.push({
  14460. name: file.name,
  14461. url: data.Location,
  14462. uid: file.uid,
  14463. fileType: _ftype,
  14464. username:
  14465. _this.plworkFile.length + 1 > 9
  14466. ? _this.plworkFile.length + 1
  14467. : "0" + (_this.plworkFile.length + 1),
  14468. });
  14469. }
  14470. _this.imgChange(null, null, type);
  14471. console.log(data.Location);
  14472. // _this.$message.success('上传成功'+data.Location)
  14473. }
  14474. });
  14475. }
  14476. }
  14477. },
  14478. beforeUpload2(event, type) {
  14479. var file = event.target.files[0];
  14480. var credentials = {
  14481. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14482. secretAccessKey: "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",
  14483. }; //秘钥形式的登录上传
  14484. window.AWS.config.update(credentials);
  14485. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14486. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14487. var _this = this;
  14488. _this.progress = 0;
  14489. _this.proVisible = true;
  14490. if (file) {
  14491. var params = {
  14492. Key:
  14493. file.name.split(".")[0] +
  14494. new Date().getTime() +
  14495. "." +
  14496. file.name.split(".")[file.name.split(".").length - 1],
  14497. ContentType: file.type,
  14498. Body: file,
  14499. "Access-Control-Allow-Credentials": "*",
  14500. ACL: "public-read",
  14501. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14502. var options = {
  14503. partSize: 2048 * 1024 * 1024,
  14504. queueSize: 2,
  14505. leavePartsOnError: true,
  14506. };
  14507. bucket
  14508. .upload(params, options)
  14509. .on("httpUploadProgress", function (evt) {
  14510. //这里可以写进度条
  14511. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14512. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14513. })
  14514. .send(function (err, data) {
  14515. _this.progress = 100;
  14516. setTimeout(() => {
  14517. _this.proVisible = false;
  14518. }, 1000);
  14519. if (err) {
  14520. var a = _this.$refs.upload1.uploadFiles;
  14521. a.splice(a.length - 1, a.length);
  14522. _this.$message.error("上传失败");
  14523. } else {
  14524. if (type == 2) {
  14525. _this.studyJuri[0].upVedio.push({
  14526. name: file.name,
  14527. url: data.Location,
  14528. uid: file.uid,
  14529. });
  14530. _this.imgChange(null, null, type);
  14531. } else if (type == 3) {
  14532. _this.studyJuri[0].upFile.push({
  14533. name: file.name,
  14534. url: data.Location,
  14535. uid: file.uid,
  14536. });
  14537. _this.imgChange(null, null, type);
  14538. }
  14539. console.log(data.Location);
  14540. }
  14541. });
  14542. }
  14543. },
  14544. allScrell() {
  14545. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  14546. },
  14547. nextToolindex(type) {
  14548. if (type == "last") {
  14549. if (this.toolIndex == 0) {
  14550. this.$message.error("已经是第一个步骤");
  14551. return;
  14552. }
  14553. this.toolIndex = this.toolIndex - 1;
  14554. this.tool =
  14555. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14556. this.taskCount
  14557. ].toolChoose[this.toolIndex];
  14558. } else if (type == "next") {
  14559. if (
  14560. this.toolIndex ==
  14561. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14562. this.taskCount
  14563. ].toolChoose.length -
  14564. 1
  14565. ) {
  14566. this.$message.error("已经是最后一个步骤");
  14567. return;
  14568. }
  14569. this.toolIndex = this.toolIndex + 1;
  14570. this.tool =
  14571. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14572. this.taskCount
  14573. ].toolChoose[this.toolIndex];
  14574. }
  14575. this.$forceUpdate();
  14576. },
  14577. checkBz(index) {
  14578. this.toolIndex = index;
  14579. this.tool =
  14580. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14581. this.taskCount
  14582. ].toolChoose[this.toolIndex];
  14583. this.isUpdateToolDetail = false;
  14584. this.$forceUpdate();
  14585. },
  14586. nextOrpreSteps(t) {
  14587. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14588. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14589. return;
  14590. }
  14591. var b = this.chapInfoList.length - 1;
  14592. if (t == 0) {
  14593. if (this.courseType == 0) {
  14594. if (this.taskCount == 0) {
  14595. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14596. if (this.IsLookOpen) {
  14597. if (
  14598. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14599. ) {
  14600. if (
  14601. this.courseDetail.userid != this.userid &&
  14602. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14603. ) {
  14604. this.$message.error("任务未解锁");
  14605. } else {
  14606. this.$message.error("上一任务未解锁");
  14607. }
  14608. return;
  14609. }
  14610. }
  14611. this.navList[this.courseType].isOpen = false;
  14612. this.courseType = b;
  14613. this.taskCount =
  14614. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14615. .length - 1;
  14616. this.navList[this.courseType].isOpen = true;
  14617. } else {
  14618. this.taskCount--;
  14619. }
  14620. } else {
  14621. if (this.taskCount == 0) {
  14622. this.navList[this.courseType].isOpen = false;
  14623. this.courseType--;
  14624. this.taskCount =
  14625. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14626. .length - 1;
  14627. this.navList[this.courseType].isOpen = true;
  14628. } else {
  14629. this.taskCount--;
  14630. }
  14631. }
  14632. } else {
  14633. if (this.courseType == b) {
  14634. if (
  14635. this.taskCount ==
  14636. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14637. 1
  14638. ) {
  14639. this.navList[this.courseType].isOpen = false;
  14640. this.courseType = 0;
  14641. this.taskCount = 0;
  14642. this.navList[this.courseType].isOpen = true;
  14643. } else {
  14644. var bbb = parseInt(this.taskCount) + 1;
  14645. if (
  14646. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14647. .isLook &&
  14648. this.courseDetail.userid != this.userid &&
  14649. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14650. this.IsLookOpen
  14651. ) {
  14652. this.$message.error("任务未解锁");
  14653. return;
  14654. }
  14655. this.taskCount++;
  14656. if (this.IsLookOpen) {
  14657. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14658. this.taskCount
  14659. ].isLook = true;
  14660. this.addCourseState(3);
  14661. }
  14662. }
  14663. } else {
  14664. if (
  14665. this.taskCount ==
  14666. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14667. 1
  14668. ) {
  14669. var bbb = parseInt(this.courseType) + 1;
  14670. if (
  14671. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14672. this.courseDetail.userid != this.userid &&
  14673. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14674. this.IsLookOpen
  14675. ) {
  14676. this.$message.error("任务未解锁");
  14677. return;
  14678. }
  14679. this.navList[this.courseType].isOpen = false;
  14680. this.courseType++;
  14681. this.taskCount = 0;
  14682. this.navList[this.courseType].isOpen = true;
  14683. } else {
  14684. var bbb = parseInt(this.taskCount) + 1;
  14685. if (
  14686. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14687. .isLook &&
  14688. this.courseDetail.userid != this.userid &&
  14689. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14690. this.IsLookOpen
  14691. ) {
  14692. this.$message.error("任务未解锁");
  14693. return;
  14694. }
  14695. this.taskCount++;
  14696. }
  14697. if (this.IsLookOpen) {
  14698. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14699. this.taskCount
  14700. ].isLook = true;
  14701. this.addCourseState(3);
  14702. }
  14703. }
  14704. }
  14705. document.scrollingElement.scrollTop = 0;
  14706. // this.showType = 0;
  14707. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14708. this.toolIndex = null;
  14709. this.isNoHomeWork = false;
  14710. (this.studyJuri = [
  14711. {
  14712. content: "",
  14713. cover: [],
  14714. upVedio: [],
  14715. upFile: [],
  14716. },
  14717. ]),
  14718. (this.radio = []);
  14719. // this.isClickNav = "";
  14720. this.selectPz();
  14721. this.getHomeWork();
  14722. this.getCourseDetail(2);
  14723. this.$forceUpdate();
  14724. },
  14725. openTask(s, n, i) {
  14726. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14727. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14728. return;
  14729. }
  14730. if (this.IsLookOpen) {
  14731. if (
  14732. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14733. this.courseDetail.userid != this.userid &&
  14734. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14735. ) {
  14736. this.$message.error("任务未解锁");
  14737. return;
  14738. }
  14739. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14740. if (
  14741. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14742. .isLook
  14743. ) {
  14744. this.$message.error("上一任务未解锁");
  14745. return;
  14746. }
  14747. } else if (s > this.courseType) {
  14748. if (n > 0) {
  14749. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14750. this.$message.error("上一任务未解锁");
  14751. return;
  14752. }
  14753. } else {
  14754. if (
  14755. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14756. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14757. ].isLook
  14758. ) {
  14759. this.$message.error("上一任务未解锁");
  14760. return;
  14761. }
  14762. }
  14763. }
  14764. }
  14765. this.courseType = s;
  14766. this.navId = i;
  14767. this.taskCount = n;
  14768. if (this.IsLookOpen) {
  14769. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14770. this.taskCount
  14771. ].isLook = true;
  14772. this.addCourseState(3);
  14773. }
  14774. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14775. this.isCloseList[ci].isClose = 0;
  14776. }
  14777. // this.showType = 0;
  14778. this.isNoHomeWork = false;
  14779. (this.studyJuri = [
  14780. {
  14781. content: "",
  14782. cover: [],
  14783. upVedio: [],
  14784. upFile: [],
  14785. },
  14786. ]),
  14787. (this.radio = []);
  14788. document.scrollingElement.scrollTop = 0;
  14789. this.toolIndex = null;
  14790. // setTimeout(() => {
  14791. // let a = document.getElementById(i);
  14792. // if (a.offsetTop - 110 == 0) {
  14793. // window.scrollTo(0, 0);
  14794. // } else {
  14795. // window.scrollTo(0, a.offsetTop);
  14796. // }
  14797. // }, 0);
  14798. this.selectPz();
  14799. this.getHomeWork();
  14800. this.getCourseDetail(2);
  14801. },
  14802. get(i) {
  14803. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14804. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14805. return;
  14806. }
  14807. this.navList[i].isOpen = !this.navList[i].isOpen;
  14808. },
  14809. addQuestion() {
  14810. this.answerList.push({
  14811. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14812. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14813. });
  14814. let params = [
  14815. {
  14816. uid: this.userid,
  14817. cid: this.id,
  14818. stage: this.courseType,
  14819. task: this.taskCount,
  14820. tool: this.toolindex,
  14821. content: JSON.stringify(this.answerList),
  14822. type: 3,
  14823. },
  14824. ];
  14825. this.ajax
  14826. .post(this.$store.state.api + "addCourseWorks", params)
  14827. .then((res) => {
  14828. this.$message({
  14829. message: "提交成功",
  14830. type: "success",
  14831. });
  14832. this.answerList = [];
  14833. this.questionAnswer = "";
  14834. this.answerDialogVisible = false;
  14835. this.selectStudent();
  14836. this.selectSWorks();
  14837. this.selectSLook();
  14838. })
  14839. .catch((err) => {
  14840. this.$message.error("提交失败");
  14841. console.error(err);
  14842. });
  14843. },
  14844. addQuestionTeacher() {
  14845. this.answerList.push({
  14846. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14847. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14848. });
  14849. let params = [
  14850. {
  14851. uid: this.sStudent.userid,
  14852. cid: this.id,
  14853. stage: this.courseType,
  14854. task: this.taskCount,
  14855. tool: this.toolindex,
  14856. content: JSON.stringify(this.answerList),
  14857. type: 3,
  14858. ateacher: this.userid,
  14859. },
  14860. ];
  14861. this.ajax
  14862. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14863. .then((res) => {
  14864. this.$message({
  14865. message: "提交成功",
  14866. type: "success",
  14867. });
  14868. this.answerList = [];
  14869. this.questionAnswer = "";
  14870. this.answerDialogVisibleTeacher = false;
  14871. this.selectStudent();
  14872. this.selectSWorks();
  14873. this.selectSLook();
  14874. })
  14875. .catch((err) => {
  14876. this.$message.error("提交失败");
  14877. console.error(err);
  14878. });
  14879. },
  14880. refreshCourse() {
  14881. this.navList = [];
  14882. this.getCourseDetail(1);
  14883. },
  14884. setPz() {
  14885. if (this.ispzType == 4) {
  14886. this.ispzType = 0;
  14887. this.pzDialog = false;
  14888. return;
  14889. }
  14890. this.ispzType = 4;
  14891. this.pzDialog = true;
  14892. this.selectPz();
  14893. },
  14894. getCourseDetail(type, gindex) {
  14895. let loading;
  14896. if (type != 2) {
  14897. loading = this.$loading.service({
  14898. background: "rgba(255, 255, 255, 0.7)",
  14899. target: document.querySelector(".student_table"),
  14900. });
  14901. }
  14902. let params = {
  14903. courseId: this.id,
  14904. };
  14905. this.ajax
  14906. .get(this.$store.state.api + "selectCourseDetail3", params)
  14907. .then((res) => {
  14908. if (type != 2) {
  14909. loading.close();
  14910. if (
  14911. this.courseType >
  14912. JSON.parse(res.data[0][0].chapters).length - 1
  14913. ) {
  14914. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  14915. }
  14916. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14917. .chapterInfo[0].taskJson;
  14918. var b = [
  14919. "AVI",
  14920. "NAVI",
  14921. "MPEG",
  14922. "ASF",
  14923. "MOV",
  14924. "WMV",
  14925. "3GP",
  14926. "RM",
  14927. "RMVB",
  14928. "FLV",
  14929. "F4V",
  14930. "H.264",
  14931. "H.265",
  14932. "REAL VIDEO",
  14933. "MKV",
  14934. "WebM",
  14935. "HDDVD",
  14936. "MP4",
  14937. "MPG",
  14938. "M4V",
  14939. "MGV",
  14940. "OGV",
  14941. "QTM",
  14942. "STR",
  14943. "AMC",
  14944. "DVX",
  14945. "EVO",
  14946. "DAT",
  14947. "OGG",
  14948. "OGM",
  14949. "MP3",
  14950. ];
  14951. let _chapterData = [];
  14952. for (var i = 0; i < a.length; i++) {
  14953. var c = a[i].chapterData;
  14954. this.vedio[i] = [];
  14955. this.textList[i] = [];
  14956. this.lineList[i] = [];
  14957. this.chapToolList[i] = [];
  14958. this.file[i] = [];
  14959. this.fileC[i] = [];
  14960. _chapterData[i] = c.filter((el) => {
  14961. return el.type != 12;
  14962. });
  14963. this.fileC[i] = c.filter((el) => {
  14964. return el.type == 12;
  14965. });
  14966. for (var j = 0; j < c.length; j++) {
  14967. if (c[j].type == 7) {
  14968. this.chapToolList[i].push(c[j]);
  14969. } else if (c[j].type == 8) {
  14970. this.lineList[i].push(c[j]);
  14971. } else if (c[j].type == 6) {
  14972. this.textList[i].push(c[j]);
  14973. } else {
  14974. if (
  14975. b.indexOf(
  14976. c[j].url
  14977. .split(".")
  14978. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14979. ) != -1
  14980. ) {
  14981. this.vedio[i].push(c[j]);
  14982. } else {
  14983. this.file[i].push(c[j]);
  14984. }
  14985. }
  14986. }
  14987. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14988. d.sources[0].src =
  14989. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  14990. this.playerO[i] = d;
  14991. }
  14992. this.courseDetail = res.data[0][0];
  14993. this.tcid = this.arrayToArray(
  14994. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14995. this.tcid2 ? this.tcid2.split(",") : []
  14996. ).join(",");
  14997. console.log(this.tcid);
  14998. this.evalua = res.data[0][0].evaId;
  14999. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15000. this.courseType
  15001. ];
  15002. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15003. if (this.tcid && res.data[1].length) {
  15004. let _inviteA = [];
  15005. for (var ik = 0; ik < res.data[1].length; ik++) {
  15006. _inviteA.push({
  15007. cid: res.data[1][ik].classid,
  15008. ic: res.data[1][ik].code,
  15009. });
  15010. }
  15011. for (var ik = 0; ik < _inviteA.length; ik++) {
  15012. if (
  15013. this.arrayToArray(
  15014. _inviteA[ik].cid.split(","),
  15015. this.tcid.split(",")
  15016. ).length
  15017. ) {
  15018. this.inviteCode = _inviteA[ik].ic;
  15019. break;
  15020. }
  15021. }
  15022. }
  15023. for (var l = 0; l < this.chapInfoList.length; l++) {
  15024. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15025. for (var m = 0; m < w.length; m++) {
  15026. w[m].id = l + "-" + m;
  15027. }
  15028. }
  15029. let taskCount = 0;
  15030. if (
  15031. _chapterData[taskCount].length &&
  15032. _chapterData[taskCount][0].type == 2
  15033. ) {
  15034. this.showType = 0;
  15035. } else {
  15036. if (_chapterData[taskCount].length > 0) {
  15037. let _url = _chapterData[taskCount][0].url;
  15038. if (_chapterData[taskCount][0].type == 8) {
  15039. this.showType = 2;
  15040. if (
  15041. _url.indexOf("https://") == -1 &&
  15042. _url.indexOf("http://") == -1
  15043. ) {
  15044. _url = "https://" + _url;
  15045. }
  15046. this.pptImgUrl1 = _url;
  15047. } else if (_chapterData[taskCount][0].type == 3) {
  15048. if (
  15049. _url
  15050. .split(".")
  15051. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15052. ) {
  15053. this.showType = 3;
  15054. this.pptImgUrl1 = _url;
  15055. } else if (
  15056. this.isAssetTypeAnImage(
  15057. _url
  15058. .split(".")
  15059. [_url.split(".").length - 1].toLocaleLowerCase()
  15060. )
  15061. ) {
  15062. this.showType = 4;
  15063. this.pptImgUrl1 = _url;
  15064. } else {
  15065. this.showType = 2;
  15066. this.pptImgUrl1 =
  15067. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15068. _url;
  15069. }
  15070. } else if (_chapterData[this.taskCount][0].type == 13) {
  15071. this.showType = 4;
  15072. this.pptImgUrl1 = _url;
  15073. } else if (_chapterData[taskCount][0].type == 6) {
  15074. this.showType = 1;
  15075. this.text = this.textList[taskCount][0];
  15076. }
  15077. }
  15078. }
  15079. this.isClickNav = 0;
  15080. if (
  15081. !_chapterData[taskCount].length ||
  15082. _chapterData[taskCount][0].type == 12
  15083. ) {
  15084. this.isClickNav = "";
  15085. this.showType = "";
  15086. }
  15087. this.vChapterData = _chapterData;
  15088. if (
  15089. this.toolIndex == null &&
  15090. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15091. this.taskCount
  15092. ].toolChoose.length
  15093. ) {
  15094. this.toolIndex = 0;
  15095. this.tool =
  15096. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15097. this.taskCount
  15098. ].toolChoose[this.toolIndex];
  15099. }
  15100. } else {
  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. }
  15114. this.isUpdateToolDetail = false;
  15115. this.$nextTick(() => {
  15116. setTimeout(() => {
  15117. this.checkEva();
  15118. }, 1000);
  15119. });
  15120. let _this = this;
  15121. if (_this.timer) {
  15122. clearInterval(_this.timer);
  15123. _this.timer = null;
  15124. }
  15125. _this.selectSWorks(gindex);
  15126. _this.selectStudent();
  15127. _this.selectSLook();
  15128. _this.getPick();
  15129. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15130. _this.setCTask();
  15131. }
  15132. if (_this.dialogVisibleGroup) {
  15133. _this.groupJson =
  15134. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15135. _this.taskCount
  15136. ].toolChoose[_this.toolindex].groupJson;
  15137. }
  15138. _this.timer = setInterval(function () {
  15139. if (_this.tcid) {
  15140. _this.getCourseGroup(gindex);
  15141. } else {
  15142. _this.selectSWorks(gindex);
  15143. }
  15144. _this.selectStudent();
  15145. _this.selectSLook();
  15146. _this.getPick();
  15147. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15148. _this.setCTask();
  15149. }
  15150. if (_this.dialogVisibleGroup) {
  15151. _this.groupJson =
  15152. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15153. _this.taskCount
  15154. ].toolChoose[_this.toolindex].groupJson;
  15155. }
  15156. if (_this.tType == 4 || _this.ispzType == 4) {
  15157. _this.selectPz();
  15158. }
  15159. }, 5000);
  15160. })
  15161. .catch((err) => {
  15162. loading.close();
  15163. console.error(err);
  15164. });
  15165. },
  15166. getCourseGroup(gindex) {
  15167. let params = {
  15168. cid: this.id,
  15169. classid: this.tcid ? this.tcid : "1",
  15170. };
  15171. this.ajax
  15172. .get(this.$store.state.api + "getCourseGroup", params)
  15173. .then((res) => {
  15174. if (res.data && res.data[0].length) {
  15175. if (!this.isGroup) {
  15176. let courseGroup = JSON.parse(res.data[0][0].group);
  15177. courseGroup.group = courseGroup.group.filter((el) => {
  15178. el.works = [];
  15179. return el;
  15180. });
  15181. this.courseGroup = courseGroup;
  15182. let groupPerson = res.data[1];
  15183. let group = JSON.parse(res.data[0][0].group).group;
  15184. let courseGroupStudent = {};
  15185. let courseGroupStudentUid = {};
  15186. for (var i = 0; i < group.length; i++) {
  15187. courseGroupStudent[group[i].id] = [];
  15188. courseGroupStudentUid[group[i].id] = [];
  15189. for (var j = 0; j < groupPerson.length; j++) {
  15190. if (groupPerson[j].groupCid == group[i].id) {
  15191. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15192. courseGroupStudentUid[group[i].id].push(
  15193. groupPerson[j].userid
  15194. );
  15195. }
  15196. }
  15197. }
  15198. this.courseGroupStudent = courseGroupStudent;
  15199. this.courseGroupStudentUid = courseGroupStudentUid;
  15200. }
  15201. this.isGroup = true;
  15202. this.selectSWorks(gindex);
  15203. } else {
  15204. this.selectSWorks(gindex);
  15205. this.isGroup = false;
  15206. }
  15207. })
  15208. .catch((err) => {
  15209. // this.$message.error("网络不佳");
  15210. console.error(err);
  15211. });
  15212. },
  15213. setOperationTime() {
  15214. let _this = this;
  15215. if (_this.opertimer) {
  15216. clearInterval(_this.opertimer);
  15217. _this.opertimer = null;
  15218. }
  15219. _this.opertimer = setInterval(() => {
  15220. _this.setoTime("600");
  15221. }, 600000);
  15222. },
  15223. setoTime(time) {
  15224. let params = [
  15225. {
  15226. uid: this.userid,
  15227. cid: this.id,
  15228. type: "2",
  15229. time: time,
  15230. },
  15231. ];
  15232. this.ajax
  15233. .post(this.$store.state.api + "addOperationTimeT2", params)
  15234. .then((res) => {})
  15235. .catch((err) => {
  15236. console.error(err);
  15237. });
  15238. },
  15239. addPz(type, content) {
  15240. if (type == "1" && this.pzConText == "") {
  15241. this.$message.error("批注不能为空!");
  15242. return;
  15243. }
  15244. let params = [
  15245. {
  15246. cid: this.id,
  15247. uid: this.userid,
  15248. s: this.courseType,
  15249. t: this.taskCount,
  15250. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15251. type: type,
  15252. },
  15253. ];
  15254. this.ajax
  15255. .post(this.$store.state.api + "addPz2", params)
  15256. .then((res) => {
  15257. this.$message({
  15258. message: "添加成功",
  15259. type: "success",
  15260. });
  15261. this.pzConText = "";
  15262. this.addPzDialog = false;
  15263. this.selectPz();
  15264. })
  15265. .catch((err) => {
  15266. this.$message.error("添加失败");
  15267. console.error(err);
  15268. });
  15269. },
  15270. deletePz(id) {
  15271. this.$confirm("确定删除此批注吗?", "提示", {
  15272. confirmButtonText: "确定",
  15273. cancelButtonText: "取消",
  15274. type: "warning",
  15275. })
  15276. .then(() => {
  15277. let params = [
  15278. {
  15279. id: id,
  15280. },
  15281. ];
  15282. this.ajax
  15283. .post(this.$store.state.api + "deletePz", params)
  15284. .then((res) => {
  15285. this.$message({
  15286. message: "删除成功",
  15287. type: "success",
  15288. });
  15289. this.selectPz();
  15290. })
  15291. .catch((err) => {
  15292. this.$message.error("网络异常");
  15293. console.error(err);
  15294. });
  15295. })
  15296. .catch(() => {});
  15297. },
  15298. selectPz() {
  15299. let params = {
  15300. cid: this.id,
  15301. s: this.courseType,
  15302. t: this.taskCount,
  15303. };
  15304. this.ajax
  15305. .get(this.$store.state.api + "selectPzList", params)
  15306. .then((res) => {
  15307. this.pzList = res.data[0];
  15308. })
  15309. .catch((err) => {
  15310. console.error(err);
  15311. });
  15312. },
  15313. updateSLook() {
  15314. let params = {
  15315. sopen: this.sIsOpen == false ? 1 : 2,
  15316. cid: this.id,
  15317. };
  15318. this.ajax
  15319. .get(this.$store.state.api + "updateCourseSLook", params)
  15320. .then((res) => {
  15321. if (this.sIsOpen == true) {
  15322. this.$message({
  15323. message: "权限设置成功",
  15324. type: "success",
  15325. });
  15326. } else {
  15327. this.$message({
  15328. message: "权限关闭成功",
  15329. type: "success",
  15330. });
  15331. }
  15332. })
  15333. .catch((err) => {
  15334. console.error(err);
  15335. });
  15336. },
  15337. updateFollow() {
  15338. let params = [
  15339. {
  15340. sopen: this.IsFollow == false ? 1 : 2,
  15341. cid: this.id,
  15342. },
  15343. ];
  15344. this.ajax
  15345. .post(this.$store.state.api + "updateCourseFollow", params)
  15346. .then((res) => {
  15347. if (this.IsFollow == true) {
  15348. this.$message({
  15349. message: "开启成功",
  15350. type: "success",
  15351. });
  15352. } else {
  15353. this.$message({
  15354. message: "关闭成功",
  15355. type: "success",
  15356. });
  15357. }
  15358. this.setCTask();
  15359. })
  15360. .catch((err) => {
  15361. console.error(err);
  15362. });
  15363. },
  15364. setCTask() {
  15365. let params = [
  15366. {
  15367. sopen: this.courseType + "-" + this.taskCount,
  15368. cid: this.id,
  15369. },
  15370. ];
  15371. this.ajax
  15372. .post(this.$store.state.api + "updateCourseFollowC", params)
  15373. .then((res) => {})
  15374. .catch((err) => {
  15375. console.error(err);
  15376. });
  15377. },
  15378. updateLookOpen() {
  15379. let params = [
  15380. {
  15381. sopen: this.IsLookOpen == false ? 1 : 2,
  15382. cid: this.id,
  15383. },
  15384. ];
  15385. this.ajax
  15386. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15387. .then((res) => {
  15388. if (this.IsLookOpen == true) {
  15389. // if (this.courseType != 0 && this.taskCount != 0) {
  15390. // this.openTask(0, 0, "0-0");
  15391. // }
  15392. this.$message({
  15393. message: "权限设置成功",
  15394. type: "success",
  15395. });
  15396. } else {
  15397. this.$message({
  15398. message: "权限关闭成功",
  15399. type: "success",
  15400. });
  15401. }
  15402. this.getCourseState(2);
  15403. })
  15404. .catch((err) => {
  15405. console.error(err);
  15406. });
  15407. },
  15408. selectSLook() {
  15409. let params = {
  15410. cid: this.id,
  15411. };
  15412. this.ajax
  15413. .get(this.$store.state.api + "selectCourseSLook", params)
  15414. .then((res) => {
  15415. // this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15416. this.sIsOpen = true;
  15417. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15418. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15419. if (!this.IsLookOpen) {
  15420. this.setNavList();
  15421. } else {
  15422. this.getCourseState(1);
  15423. }
  15424. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15425. let _followC = res.data[0][0].followC.split("-");
  15426. if (
  15427. this.courseType != _followC[0] ||
  15428. this.taskCount != _followC[1]
  15429. ) {
  15430. this.navList[this.courseType].isOpen = false;
  15431. this.courseType = _followC[0];
  15432. this.navList[this.courseType].isOpen = true;
  15433. this.taskCount = parseInt(_followC[1]);
  15434. this.navId = res.data[0][0].followC;
  15435. this.getCourseDetail();
  15436. }
  15437. }
  15438. })
  15439. .catch((err) => {
  15440. console.error(err);
  15441. });
  15442. },
  15443. setNavList() {
  15444. if (this.navList.length == 0) {
  15445. this.navList = [];
  15446. for (var l = 0; l < this.chapInfoList.length; l++) {
  15447. var q = this.chapInfoList[l].dyName;
  15448. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15449. var e;
  15450. this.navList.push({
  15451. dyName: q,
  15452. isOpen: l === 0 ? true : false,
  15453. task: [],
  15454. });
  15455. for (var r = 0; r < w.length; r++) {
  15456. e = w[r].task;
  15457. if (this.chapInfoList[l].easy == 1) {
  15458. this.navList[l].task.push({
  15459. taskName: q,
  15460. id: l + "-" + r,
  15461. isLook: w[r].isLook,
  15462. });
  15463. } else {
  15464. this.navList[l].task.push({
  15465. taskName: e,
  15466. id: l + "-" + r,
  15467. isLook: w[r].isLook,
  15468. });
  15469. }
  15470. // this.navId = this.navId ? this.navId : l + "-" + r;
  15471. // this.navId = l + "-" + r;
  15472. }
  15473. }
  15474. this.navList[0].isOpen = false;
  15475. this.navList[this.courseType].isOpen = true;
  15476. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15477. } else {
  15478. this.setNavList2();
  15479. }
  15480. },
  15481. setNavList2() {
  15482. for (var l = 0; l < this.chapInfoList.length; l++) {
  15483. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15484. for (var r = 0; r < w.length; r++) {
  15485. this.navList[l].task[r].isLook = w[r].isLook;
  15486. }
  15487. }
  15488. if (
  15489. this.IsLookOpen &&
  15490. !this.navList[this.courseType].task[this.taskCount].isLook
  15491. ) {
  15492. this.openTask(0, 0, "0-0");
  15493. }
  15494. this.$forceUpdate();
  15495. },
  15496. getCourseState(type) {
  15497. let params = {
  15498. cid: this.id,
  15499. };
  15500. this.ajax
  15501. .get(this.$store.state.api + "getCourseState", params)
  15502. .then((res) => {
  15503. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15504. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15505. this.setNavList();
  15506. this.$forceUpdate();
  15507. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15508. this.addCourseState(2);
  15509. } else {
  15510. this.addCourseState(1);
  15511. }
  15512. })
  15513. .catch((err) => {
  15514. console.error(err);
  15515. });
  15516. },
  15517. addCourseState(type) {
  15518. let _state = this.chapInfoList;
  15519. // this.courseType this.taskCount
  15520. if (type == 1 || type == 2) {
  15521. for (var i = 0; i < _state.length; i++) {
  15522. let el = _state[i].chapterInfo[0].taskJson;
  15523. for (var j = 0; j < el.length; j++) {
  15524. // if (i == 0 && j == 0) {
  15525. // el[j].isLook = true;
  15526. // } else {
  15527. // el[j].isLook = false;
  15528. // }
  15529. if (
  15530. this.courseType > i ||
  15531. (this.courseType == i && this.taskCount + 1 > j)
  15532. ) {
  15533. el[j].isLook = true;
  15534. } else {
  15535. el[j].isLook = false;
  15536. }
  15537. }
  15538. }
  15539. }
  15540. let params = [
  15541. {
  15542. cid: this.id,
  15543. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15544. },
  15545. ];
  15546. this.ajax
  15547. .post(
  15548. this.$store.state.api +
  15549. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15550. params
  15551. )
  15552. .then((res) => {
  15553. if (this.IsLookOpen) {
  15554. this.setNavList();
  15555. }
  15556. if (type == 3 && type == 2) {
  15557. this.getCourseState(1);
  15558. }
  15559. })
  15560. .catch((err) => {
  15561. console.error(err);
  15562. });
  15563. },
  15564. getHomeWork() {
  15565. let params = {
  15566. cid: this.id,
  15567. stage: this.courseType,
  15568. task: this.taskCount,
  15569. uid: this.userid,
  15570. };
  15571. this.ajax
  15572. .get(this.$store.state.api + "selectWork", params)
  15573. .then((res) => {
  15574. if (res.data[0].length > 0) {
  15575. this.studyJuri = JSON.parse(res.data[0][0].content);
  15576. this.isNoHomeWork = true;
  15577. }
  15578. })
  15579. .catch((err) => {
  15580. console.error(err);
  15581. });
  15582. },
  15583. isAssetTypeAnImage(ext) {
  15584. return (
  15585. [
  15586. "png",
  15587. "jpg",
  15588. "jpeg",
  15589. "bmp",
  15590. "gif",
  15591. "webp",
  15592. "psd",
  15593. "svg",
  15594. "tiff",
  15595. ].indexOf(ext) !== -1
  15596. );
  15597. },
  15598. switchVideo(media) {
  15599. this.playerO = {};
  15600. this.playerOptions.poster = "";
  15601. this.playerOptions.sources[0].src = media;
  15602. this.playerO = this.playerOptions;
  15603. },
  15604. onPlayerPlay() {},
  15605. lookVedio(u, i) {
  15606. this.isClickNav = "";
  15607. // this.playerOptions.sources[0].src = u;
  15608. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15609. d.sources[0].src = u;
  15610. this.playerO[0] = d;
  15611. this.showType = 0;
  15612. // this.isClickNav = "video" + i;
  15613. this.isClickNav = i;
  15614. this.$forceUpdate();
  15615. },
  15616. lookText(i, t) {
  15617. this.isClickNav = "";
  15618. // this.text = this.textList[i][t];
  15619. this.text = this.vChapterData[i][t];
  15620. // this.dialogVisible1 = true;
  15621. this.showType = 1;
  15622. // this.isClickNav = "text" + t;
  15623. this.isClickNav = t;
  15624. },
  15625. lookTools(i, t) {
  15626. this.chapTools = this.chapToolList[i][t];
  15627. this.dialogVisible2 = true;
  15628. },
  15629. openFile(f) {
  15630. this.pptImgUrl = "";
  15631. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15632. if (
  15633. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  15634. -1
  15635. ) {
  15636. this.pptImgUrl =
  15637. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  15638. this.showPDF = false;
  15639. this.dialogVisible3 = true;
  15640. } else if (
  15641. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15642. ) {
  15643. this.pptImgUrl = f;
  15644. this.showPDF = true;
  15645. this.dialogVisible3 = true;
  15646. }
  15647. },
  15648. openTable(f) {
  15649. this.tableJson = JSON.parse(f.works);
  15650. this.$forceUpdate();
  15651. this.dialogVisibleTable2 = true;
  15652. },
  15653. openWord(f) {
  15654. this.tableJson = JSON.parse(f.works);
  15655. this.$forceUpdate();
  15656. this.dialogVisibleTable3 = true;
  15657. },
  15658. doUrl(url, i) {
  15659. this.isClickNav = "";
  15660. this.pptImgUrl1 = "";
  15661. this.showType = 2;
  15662. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  15663. url = "https://" + url;
  15664. }
  15665. this.pptImgUrl1 = url;
  15666. // this.isClickNav = "line" + i;
  15667. this.isClickNav = i;
  15668. },
  15669. checkPhoto(f, i) {
  15670. this.showType = 4;
  15671. this.pptImgUrl1 = f.url;
  15672. this.isClickNav = i;
  15673. this.$forceUpdate();
  15674. },
  15675. downFile(f, i) {
  15676. this.isClickNav = "";
  15677. this.pptImgUrl1 = "";
  15678. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  15679. if (
  15680. a.indexOf(
  15681. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  15682. ) != -1
  15683. ) {
  15684. this.pptImgUrl1 =
  15685. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  15686. // this.dialogVisible3 = true;
  15687. this.showType = 2;
  15688. } else if (
  15689. this.isAssetTypeAnImage(
  15690. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  15691. )
  15692. ) {
  15693. this.showType = 4;
  15694. this.pptImgUrl1 = f.url;
  15695. } else if (
  15696. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  15697. "PDF"
  15698. ) {
  15699. this.pptImgUrl1 = f.url;
  15700. // this.dialogVisible3 = true;
  15701. this.showType = 3;
  15702. } else {
  15703. window.open(this.file[i].url);
  15704. }
  15705. this.isClickNav = i;
  15706. // this.isClickNav = "word" + i;
  15707. },
  15708. downFileList(i) {
  15709. window.open(this.noImgList[i].url);
  15710. },
  15711. openAddWork() {
  15712. this.dialogVisible = true;
  15713. },
  15714. addBzWorks() {
  15715. let params = [
  15716. {
  15717. uid: this.userid,
  15718. cid: this.id,
  15719. stage: this.courseType,
  15720. task: this.taskCount,
  15721. tool: this.toolindex,
  15722. content: JSON.stringify(this.eScore),
  15723. type: 6,
  15724. },
  15725. ];
  15726. this.ajax
  15727. .post(this.$store.state.api + "addCourseWorks", params)
  15728. .then((res) => {
  15729. this.$message({
  15730. message: "提交成功",
  15731. type: "success",
  15732. });
  15733. this.eScore = { eBzText: "", eStar: [] };
  15734. this.studentEvalDialogVisible = false;
  15735. this.selectSWorks();
  15736. })
  15737. .catch((err) => {
  15738. this.$message.error("提交失败");
  15739. console.error(err);
  15740. });
  15741. },
  15742. addBzWorksTeacher() {
  15743. let params = [
  15744. {
  15745. uid: this.sStudent.userid,
  15746. cid: this.id,
  15747. stage: this.courseType,
  15748. task: this.taskCount,
  15749. tool: this.toolindex,
  15750. content: JSON.stringify(this.eScore),
  15751. type: 6,
  15752. },
  15753. ];
  15754. this.ajax
  15755. .post(this.$store.state.api + "addCourseWorks", params)
  15756. .then((res) => {
  15757. this.$message({
  15758. message: "提交成功",
  15759. type: "success",
  15760. });
  15761. this.eScore = { eBzText: "", eStar: [] };
  15762. this.studentEvalDialogVisibleTeacher = false;
  15763. this.selectSWorks();
  15764. })
  15765. .catch((err) => {
  15766. this.$message.error("提交失败");
  15767. console.error(err);
  15768. });
  15769. },
  15770. addStudentAsk() {
  15771. if (!this.radio.length) {
  15772. this.$message.error("请选择选项");
  15773. return;
  15774. }
  15775. for (var i = 0; i < this.askJson.askCount; i++) {
  15776. if (
  15777. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15778. (this.radio[i] !== 0 && !this.radio[i])
  15779. ) {
  15780. this.$message.error("请选择选项");
  15781. return;
  15782. }
  15783. }
  15784. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15785. let params = [
  15786. {
  15787. uid: this.userid,
  15788. cid: this.id,
  15789. stage: this.courseType,
  15790. task: this.taskCount,
  15791. tool: this.toolindex,
  15792. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15793. type: 2,
  15794. },
  15795. ];
  15796. this.ajax
  15797. .post(this.$store.state.api + "addCourseWorks", params)
  15798. .then((res) => {
  15799. this.$message({
  15800. message: "提交成功",
  15801. type: "success",
  15802. });
  15803. this.askList = [];
  15804. this.dialogVisible5 = false;
  15805. this.selectStudent();
  15806. this.selectSWorks();
  15807. this.selectSLook();
  15808. })
  15809. .catch((err) => {
  15810. this.$message.error("提交失败");
  15811. console.error(err);
  15812. });
  15813. },
  15814. addStudentAskTeacher() {
  15815. if (!this.radio.length) {
  15816. this.$message.error("请选择选项");
  15817. return;
  15818. }
  15819. for (var i = 0; i < this.askJson.askCount; i++) {
  15820. if (
  15821. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15822. (this.radio[i] !== 0 && !this.radio[i])
  15823. ) {
  15824. this.$message.error("请选择选项");
  15825. return;
  15826. }
  15827. }
  15828. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15829. let params = [
  15830. {
  15831. uid: this.sStudent.userid,
  15832. cid: this.id,
  15833. stage: this.courseType,
  15834. task: this.taskCount,
  15835. tool: this.toolindex,
  15836. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15837. type: 2,
  15838. },
  15839. ];
  15840. this.ajax
  15841. .post(this.$store.state.api + "addCourseWorks", params)
  15842. .then((res) => {
  15843. this.$message({
  15844. message: "提交成功",
  15845. type: "success",
  15846. });
  15847. this.askList = [];
  15848. this.dialogVisible5Teacher = false;
  15849. this.selectStudent();
  15850. this.selectSWorks();
  15851. this.selectSLook();
  15852. })
  15853. .catch((err) => {
  15854. this.$message.error("提交失败");
  15855. console.error(err);
  15856. });
  15857. },
  15858. addStudentTest() {
  15859. if (!this.radio.length) {
  15860. this.$message.error("请选择选项");
  15861. return;
  15862. }
  15863. for (var i = 0; i < this.testJson.testCount; i++) {
  15864. if (
  15865. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15866. (this.radio[i] !== 0 && !this.radio[i])
  15867. ) {
  15868. this.$message.error("请选择选项");
  15869. return;
  15870. }
  15871. }
  15872. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15873. let params = [
  15874. {
  15875. uid: this.userid,
  15876. cid: this.id,
  15877. stage: this.courseType,
  15878. task: this.taskCount,
  15879. tool: this.toolindex,
  15880. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15881. type: 8,
  15882. },
  15883. ];
  15884. this.ajax
  15885. .post(this.$store.state.api + "addCourseWorks", params)
  15886. .then((res) => {
  15887. this.$message({
  15888. message: "提交成功",
  15889. type: "success",
  15890. });
  15891. this.askList = [];
  15892. this.dialogVisibleChoice = false;
  15893. this.selectStudent();
  15894. this.selectSWorks();
  15895. this.selectSLook();
  15896. })
  15897. .catch((err) => {
  15898. this.$message.error("提交失败");
  15899. console.error(err);
  15900. });
  15901. },
  15902. addStudentTestTeacher() {
  15903. if (!this.radio.length) {
  15904. this.$message.error("请选择选项");
  15905. return;
  15906. }
  15907. for (var i = 0; i < this.testJson.testCount; i++) {
  15908. if (
  15909. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15910. (this.radio[i] !== 0 && !this.radio[i])
  15911. ) {
  15912. this.$message.error("请选择选项");
  15913. return;
  15914. }
  15915. }
  15916. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15917. let params = [
  15918. {
  15919. uid: this.sStudent.userid,
  15920. cid: this.id,
  15921. stage: this.courseType,
  15922. task: this.taskCount,
  15923. tool: this.toolindex,
  15924. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15925. type: 8,
  15926. },
  15927. ];
  15928. this.ajax
  15929. .post(this.$store.state.api + "addCourseWorks", params)
  15930. .then((res) => {
  15931. this.$message({
  15932. message: "提交成功",
  15933. type: "success",
  15934. });
  15935. this.askList = [];
  15936. this.dialogVisibleChoiceTeacher = false;
  15937. this.selectStudent();
  15938. this.selectSWorks();
  15939. this.selectSLook();
  15940. })
  15941. .catch((err) => {
  15942. this.$message.error("提交失败");
  15943. console.error(err);
  15944. });
  15945. },
  15946. addWork() {
  15947. if (this.studyJuri[0].content == "") {
  15948. this.$message.error("请将信息填写完整");
  15949. return;
  15950. } else if (this.studyJuri[0].cover.length == 0) {
  15951. this.$message.error("请将信息填写完整");
  15952. return;
  15953. } else if (this.studyJuri[0].upVedio.length == 0) {
  15954. this.$message.error("请将信息填写完整");
  15955. return;
  15956. }
  15957. if (this.isNoHomeWork) {
  15958. this.$confirm(
  15959. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  15960. "提示",
  15961. {
  15962. confirmButtonText: "确定",
  15963. cancelButtonText: "取消",
  15964. type: "warning",
  15965. }
  15966. )
  15967. .then(() => {
  15968. let params = [
  15969. {
  15970. uid: this.userid,
  15971. cid: this.id,
  15972. stage: this.courseType,
  15973. task: this.taskCount,
  15974. content: JSON.stringify(this.studyJuri),
  15975. },
  15976. ];
  15977. this.ajax
  15978. .post(this.$store.state.api + "addWorks", params)
  15979. .then((res) => {
  15980. this.$message({
  15981. message: "提交成功",
  15982. type: "success",
  15983. });
  15984. this.isNoHomeWork = true;
  15985. this.dialogVisible = false;
  15986. })
  15987. .catch((err) => {
  15988. this.$message.error("提交失败");
  15989. console.error(err);
  15990. });
  15991. })
  15992. .catch(() => {});
  15993. } else {
  15994. let params = [
  15995. {
  15996. uid: this.userid,
  15997. cid: this.id,
  15998. stage: this.courseType,
  15999. task: this.taskCount,
  16000. content: JSON.stringify(this.studyJuri),
  16001. },
  16002. ];
  16003. this.ajax
  16004. .post(this.$store.state.api + "addWorks", params)
  16005. .then((res) => {
  16006. this.$message({
  16007. message: "提交成功",
  16008. type: "success",
  16009. });
  16010. this.isNoHomeWork = true;
  16011. this.dialogVisible = false;
  16012. })
  16013. .catch((err) => {
  16014. this.$message.error("提交失败");
  16015. console.error(err);
  16016. });
  16017. }
  16018. },
  16019. selectCount() {
  16020. let params = {
  16021. cid: this.id,
  16022. chid: this.courseType,
  16023. uid: this.userid,
  16024. };
  16025. this.ajax
  16026. .get(this.$store.state.api + "selectToolsCount", params)
  16027. .then((res) => {
  16028. for (var i = 0; i < res.data[0].length; i++) {
  16029. if (res.data[0][i].tools == 1) {
  16030. this.wbCount = res.data[0][i].count;
  16031. } else if (res.data[0][i].tools == 2) {
  16032. this.wordCount = res.data[0][i].count;
  16033. } else if (res.data[0][i].tools == 3) {
  16034. this.mindCount = res.data[0][i].count;
  16035. } else if (res.data[0][i].tools == 4) {
  16036. this.askCount = res.data[0][i].count;
  16037. } else if (res.data[0][i].tools == 6) {
  16038. this.noteCount = res.data[0][i].count;
  16039. } else if (res.data[0][i].tools == 7) {
  16040. this.mindNetWorkCount = res.data[0][i].count;
  16041. } else if (res.data[0][i].tools == 8) {
  16042. this.libraryCount = res.data[0][i].count;
  16043. } else if (res.data[0][i].tools == 16) {
  16044. this.workCount = res.data[0][i].count;
  16045. } else if (res.data[0][i].tools == 10) {
  16046. this.timeCount = res.data[0][i].count;
  16047. } else if (res.data[0][i].tools == 15) {
  16048. this.answerCount = res.data[0][i].count;
  16049. } else if (res.data[0][i].tools == 18) {
  16050. this.trainCount = res.data[0][i].count;
  16051. }
  16052. }
  16053. })
  16054. .catch((err) => {
  16055. console.error(err);
  16056. });
  16057. },
  16058. openTools(t, i, index, c, sName) {
  16059. var z = JSON.parse(c);
  16060. this.noteName = sName;
  16061. if (t == 4) {
  16062. this.radio = [];
  16063. this.isAnswer = false;
  16064. let b = z[0].anwer;
  16065. this.radio = b;
  16066. this.askJson = z[0].askJson;
  16067. this.isAnswer = true;
  16068. this.dialogVisible5 = true;
  16069. } else if (t == 45) {
  16070. this.radio = [];
  16071. this.isAnswer = false;
  16072. let b = z[0].anwer;
  16073. this.radio = b;
  16074. this.testJson = z[0].testJson;
  16075. this.isAnswer = true;
  16076. this.dialogVisibleChoice = true;
  16077. }
  16078. // else if (t == 15) {
  16079. // this.answerQ = "";
  16080. // this.questionAnswer = "";
  16081. // this.answerQ = z[0].answerTitle;
  16082. // this.questionAnswer = z[0].answer;
  16083. // this.answerDialogVisible = true;
  16084. // }
  16085. },
  16086. fastText(p, t) {
  16087. if (t == 1) {
  16088. this.commentText += p;
  16089. } else {
  16090. this.eScore.eBzText += p;
  16091. }
  16092. },
  16093. addTools(t, i, index) {
  16094. var a = 0;
  16095. // this.taskCount = index;
  16096. this.toolindex = i;
  16097. if (t == 1) {
  16098. if (this.wbCount > 0) {
  16099. this.updateCount(this.wbCount, t);
  16100. } else {
  16101. this.wbCount++;
  16102. a = this.wbCount;
  16103. this.toolsCount(a, t);
  16104. }
  16105. window.parent.postMessage(
  16106. {
  16107. tools: "1",
  16108. cid: this.id,
  16109. stage: this.courseType,
  16110. task: this.taskCount,
  16111. tool: i,
  16112. },
  16113. "*"
  16114. );
  16115. } else if (t == 2) {
  16116. if (this.wordCount > 0) {
  16117. this.updateCount(this.wordCount, t);
  16118. } else {
  16119. this.wordCount++;
  16120. a = this.wordCount;
  16121. this.toolsCount(a, t);
  16122. }
  16123. window.parent.postMessage({ tools: "2" }, "*");
  16124. } else if (t == 3) {
  16125. if (this.mindCount > 0) {
  16126. this.updateCount(this.mindCount, t);
  16127. } else {
  16128. this.mindCount++;
  16129. a = this.mindCount;
  16130. this.toolsCount(a, t);
  16131. }
  16132. window.parent.postMessage(
  16133. {
  16134. tools: "3",
  16135. cid: this.id,
  16136. stage: this.courseType,
  16137. task: this.taskCount,
  16138. tool: i,
  16139. },
  16140. "*"
  16141. );
  16142. } else if (t == 4) {
  16143. this.radio = [];
  16144. this.noteName = "";
  16145. this.isAnswer = false;
  16146. if (this.askCount > 0) {
  16147. this.updateCount(this.askCount, t);
  16148. } else {
  16149. this.askCount++;
  16150. a = this.askCount;
  16151. this.toolsCount(a, t);
  16152. }
  16153. this.askJson.askJson =
  16154. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16155. index
  16156. ].toolChoose[i].askJson;
  16157. this.askJson.askTitle =
  16158. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16159. index
  16160. ].toolChoose[i].askTitle;
  16161. this.askJson.askCount =
  16162. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16163. index
  16164. ].toolChoose[i].askCount;
  16165. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16166. if (this.askJson.askJson[k].type == "2") {
  16167. this.radio.push([]);
  16168. } else {
  16169. this.radio.push("");
  16170. }
  16171. }
  16172. this.dialogVisible5 = true;
  16173. // window.parent.postMessage({ tools: "4" }, "*");
  16174. } else if (t == 45) {
  16175. this.noteName = "";
  16176. this.radio = [];
  16177. this.isAnswer = false;
  16178. if (this.askCount > 0) {
  16179. this.updateCount(this.askCount, t);
  16180. } else {
  16181. this.askCount++;
  16182. a = this.askCount;
  16183. this.toolsCount(a, t);
  16184. }
  16185. this.testJson =
  16186. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16187. index
  16188. ].toolChoose[i].testJson;
  16189. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16190. if (this.testJson.testJson[k].type == "2") {
  16191. this.radio.push([]);
  16192. } else {
  16193. this.radio.push("");
  16194. }
  16195. }
  16196. this.dialogVisibleChoice = true;
  16197. // window.parent.postMessage({ tools: "4" }, "*");
  16198. } else if (t == 5) {
  16199. if (this.scoreCount > 0) {
  16200. this.updateCount(this.scoreCount, t);
  16201. } else {
  16202. this.scoreCount++;
  16203. a = this.scoreCount;
  16204. this.toolsCount(a, t);
  16205. }
  16206. this.dialogVisible4 = true;
  16207. // window.parent.postMessage({ tools: "5" }, "*");
  16208. } else if (t == 6) {
  16209. if (this.noteCount > 0) {
  16210. this.updateCount(this.noteCount, t);
  16211. } else {
  16212. this.noteCount++;
  16213. a = this.noteCount;
  16214. this.toolsCount(a, t);
  16215. }
  16216. window.parent.postMessage(
  16217. {
  16218. tools: "6",
  16219. cid: this.id,
  16220. stage: this.courseType,
  16221. task: this.taskCount,
  16222. tool: i,
  16223. },
  16224. "*"
  16225. );
  16226. } else if (t == 7) {
  16227. if (this.mindNetWorkCount > 0) {
  16228. this.updateCount(this.mindNetWorkCount, t);
  16229. } else {
  16230. this.mindNetWorkCount++;
  16231. a = this.mindNetWorkCount;
  16232. this.toolsCount(a, t);
  16233. }
  16234. window.parent.postMessage(
  16235. {
  16236. tools: "7",
  16237. cid: this.id,
  16238. stage: this.courseType,
  16239. task: this.taskCount,
  16240. tool: i,
  16241. },
  16242. "*"
  16243. );
  16244. } else if (t == 16) {
  16245. if (this.workCount > 0) {
  16246. this.updateCount(this.workCount, t);
  16247. } else {
  16248. this.workCount++;
  16249. a = this.workCount;
  16250. this.toolsCount(a, t);
  16251. }
  16252. this.dialogVisible = true;
  16253. } else if (t == 50) {
  16254. if (this.tType == 2) {
  16255. this.$message.error("不支持学生使用");
  16256. return;
  16257. }
  16258. this.plworkFile = [];
  16259. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16260. if (!this.uploadCid) {
  16261. this.$message.error(
  16262. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16263. );
  16264. return;
  16265. }
  16266. this.selectUploadStudent(2);
  16267. } else if (t == 8) {
  16268. if (this.libraryCount > 0) {
  16269. this.updateCount(this.libraryCount, t);
  16270. } else {
  16271. this.libraryCount++;
  16272. a = this.libraryCount;
  16273. this.toolsCount(a, t);
  16274. }
  16275. window.parent.postMessage({ tools: "8" }, "*");
  16276. } else if (t == 17) {
  16277. if (this.libraryCount > 0) {
  16278. this.updateCount(this.libraryCount, t);
  16279. } else {
  16280. this.libraryCount++;
  16281. a = this.libraryCount;
  16282. this.toolsCount(a, t);
  16283. }
  16284. window.parent.postMessage({ tools: "17" }, "*");
  16285. } else if (t == 18) {
  16286. if (this.trainCount > 0) {
  16287. this.updateCount(this.trainCount, t);
  16288. } else {
  16289. this.trainCount++;
  16290. a = this.trainCount;
  16291. this.toolsCount(a, t);
  16292. }
  16293. window.parent.postMessage({ tools: "18" }, "*");
  16294. } else if (t == 10) {
  16295. if (this.timeCount > 0) {
  16296. this.updateCount(this.timeCount, t);
  16297. } else {
  16298. this.timeCount++;
  16299. a = this.timeCount;
  16300. this.toolsCount(a, t);
  16301. }
  16302. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16303. .taskJson[index].toolChoose[i].preTime
  16304. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16305. .toolChoose[i].preTime
  16306. : "";
  16307. this.timeDialogVisible = true;
  16308. } else if (t == 15) {
  16309. this.answerQ = "";
  16310. this.questionAnswer = "";
  16311. if (this.answerCount > 0) {
  16312. this.updateCount(this.answerCount, t);
  16313. } else {
  16314. this.answerCount++;
  16315. a = this.answerCount;
  16316. this.toolsCount(a, t);
  16317. }
  16318. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16319. .taskJson[index].toolChoose[i].answerQ
  16320. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16321. .toolChoose[i].answerQ
  16322. : "";
  16323. this.answerDialogVisible = true;
  16324. } else if (t == 21) {
  16325. window.parent.postMessage({ tools: "21" }, "*");
  16326. } else if (t == 22) {
  16327. window.parent.postMessage({ tools: "22" }, "*");
  16328. } else if (t == 23) {
  16329. window.parent.postMessage({ tools: "23" }, "*");
  16330. } else if (t == 24) {
  16331. window.parent.postMessage({ tools: "24" }, "*");
  16332. } else if (t == 25) {
  16333. window.parent.postMessage({ tools: "25" }, "*");
  16334. } else if (t == 31) {
  16335. window.parent.postMessage({ tools: "31" }, "*");
  16336. } else if (t == 28) {
  16337. window.parent.postMessage({ tools: "28" }, "*");
  16338. } else if (t == 37) {
  16339. window.parent.postMessage({ tools: "37" }, "*");
  16340. } else if (t == 38) {
  16341. window.parent.postMessage({ tools: "38" }, "*");
  16342. } else if (t == 39) {
  16343. window.parent.postMessage({ tools: "39" }, "*");
  16344. } else if (t == 32) {
  16345. window.parent.postMessage({ tools: "32" }, "*");
  16346. } else if (t == 66) {
  16347. window.parent.postMessage({ tools: "66" }, "*");
  16348. } else if (t == 67) {
  16349. window.parent.postMessage({ tools: "67" }, "*");
  16350. } else if (t == 68) {
  16351. window.parent.postMessage({ tools: "68" }, "*");
  16352. } else if (t == 57) {
  16353. // window.parent.postMessage({ tools: "57" }, "*");
  16354. window.parent.postMessage(
  16355. {
  16356. tools: "57u",
  16357. cid: this.id,
  16358. stage: this.courseType,
  16359. task: this.taskCount,
  16360. tool: i,
  16361. },
  16362. "*"
  16363. );
  16364. } else if (t == 58) {
  16365. window.parent.postMessage({ tools: "58" }, "*");
  16366. } else if (t == 59) {
  16367. window.parent.postMessage({ tools: "59" }, "*");
  16368. } else if (t == 60) {
  16369. window.parent.postMessage({ tools: "60" }, "*");
  16370. } else if (t == 61) {
  16371. window.parent.postMessage({ tools: "61" }, "*");
  16372. } else if (t == 63) {
  16373. window.parent.postMessage({ tools: "63" }, "*");
  16374. } else if (t == 65) {
  16375. if (this.tType == 2) {
  16376. this.$message.error("不支持学生使用");
  16377. return;
  16378. }
  16379. this.uploadCid = this.tcid;
  16380. if (!this.uploadCid) {
  16381. this.$message.error(
  16382. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  16383. );
  16384. return;
  16385. }
  16386. this.selectPickStudent();
  16387. } else if (t == 26) {
  16388. window.parent.postMessage(
  16389. {
  16390. tools: "26",
  16391. cid: this.id,
  16392. stage: this.courseType,
  16393. task: this.taskCount,
  16394. tool: i,
  16395. },
  16396. "*"
  16397. );
  16398. } else if (t == 40) {
  16399. if (this.evalCount > 0) {
  16400. this.updateCount(this.evalCount, t);
  16401. } else {
  16402. this.evalCount++;
  16403. a = this.evalCount;
  16404. this.toolsCount(a, t);
  16405. }
  16406. this.eScore = { eBzText: "", eStar: [] };
  16407. if (this.worksStudent[i].length) {
  16408. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16409. if (this.userid == this.worksStudent[i][k].userid) {
  16410. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16411. this.rateJson =
  16412. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16413. index
  16414. ].toolChoose[i].rateJson;
  16415. break;
  16416. } else {
  16417. this.rateJson =
  16418. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16419. index
  16420. ].toolChoose[i].rateJson;
  16421. }
  16422. }
  16423. } else {
  16424. this.rateJson =
  16425. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16426. index
  16427. ].toolChoose[i].rateJson;
  16428. }
  16429. this.isStar = false;
  16430. this.studentEvalDialogVisible = true;
  16431. } else if (t == 41) {
  16432. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16433. .taskJson[index].toolChoose[i].selectJson
  16434. ? JSON.parse(
  16435. JSON.stringify(
  16436. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16437. index
  16438. ].toolChoose[i].selectJson
  16439. )
  16440. )
  16441. : { url: "", select: [], answer: [] };
  16442. if (this.worksStudent[i].length) {
  16443. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16444. if (this.userid == this.worksStudent[i][k].userid) {
  16445. var a = this.worksStudent[i][k].works.split(",");
  16446. for (var ki = 0; ki < a.length; ki++) {
  16447. a[ki] = parseInt(a[ki]);
  16448. }
  16449. this.selectAnswer = {
  16450. answer: a,
  16451. stu: this.worksStudent[i][k].sName,
  16452. };
  16453. break;
  16454. } else {
  16455. this.selectAnswer = { answer: [], stu: "" };
  16456. }
  16457. }
  16458. } else {
  16459. this.selectAnswer = { answer: [], stu: "" };
  16460. }
  16461. this.isSelect = false;
  16462. this.dialogVisibleSelect = true;
  16463. } else if (t == 44) {
  16464. window.parent.postMessage({ tools: "44" }, "*");
  16465. } else if (t == 47) {
  16466. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16467. .taskJson[index].toolChoose[i].sentenceList
  16468. ? JSON.parse(
  16469. JSON.stringify(
  16470. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16471. index
  16472. ].toolChoose[i].sentenceList
  16473. )
  16474. )
  16475. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16476. for (var q = 0; q < this.sentenceList.length; q++) {
  16477. this.sentenceList[q].chooseSenList = [];
  16478. this.sentenceList[q].addChangeSen = [];
  16479. this.sentenceList[q].addChangeSen = JSON.parse(
  16480. JSON.stringify(this.sentenceList[q].addSentence)
  16481. );
  16482. this.sentenceList[q].chooseSenList.length =
  16483. this.sentenceList[q].rightAnswer.length;
  16484. }
  16485. this.dialogVisibleSentence = true;
  16486. } else if (t == 48) {
  16487. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16488. .taskJson[index].toolChoose[i].tableJson
  16489. ? JSON.parse(
  16490. JSON.stringify(
  16491. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16492. index
  16493. ].toolChoose[i].tableJson
  16494. )
  16495. )
  16496. : { text: "" };
  16497. if (this.worksStudent[i].length) {
  16498. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16499. if (this.userid == this.worksStudent[i][k].userid) {
  16500. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16501. break;
  16502. }
  16503. }
  16504. }
  16505. this.dialogVisibleTable = true;
  16506. } else if (t == 52) {
  16507. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16508. .taskJson[index].toolChoose[i].wordJson
  16509. ? JSON.parse(
  16510. JSON.stringify(
  16511. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16512. index
  16513. ].toolChoose[i].wordJson
  16514. )
  16515. )
  16516. : { text: "" };
  16517. if (this.worksStudent[i].length) {
  16518. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16519. if (this.userid == this.worksStudent[i][k].userid) {
  16520. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16521. break;
  16522. }
  16523. }
  16524. }
  16525. this.dialogVisibleWord = true;
  16526. } else if (t == 49) {
  16527. this.groupJson =
  16528. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16529. index
  16530. ].toolChoose[i].groupJson;
  16531. this.dialogVisibleGroup = true;
  16532. } else if (t == 62) {
  16533. this.videoJson =
  16534. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16535. index
  16536. ].toolChoose[i].videoJson;
  16537. this.dialogVisibleVideo = true;
  16538. }
  16539. },
  16540. teacherWorkSubmit(t, i, index, s) {
  16541. this.sStudent = s;
  16542. this.sTool = t;
  16543. this.toolindex = i;
  16544. if (this.tType !== "1" && this.tType !== "4") {
  16545. return;
  16546. }
  16547. if (t == 16 || t == 32 || t == 50) {
  16548. this.dialogVisibleWorks = true; //作业提交
  16549. } else if (t == 15) {
  16550. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16551. .taskJson[index].toolChoose[i].answerQ
  16552. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16553. .toolChoose[i].answerQ
  16554. : "";
  16555. this.questionAnswer = "";
  16556. this.answerDialogVisibleTeacher = true; //问答
  16557. } else if (t == 52) {
  16558. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16559. .taskJson[index].toolChoose[i].wordJson
  16560. ? JSON.parse(
  16561. JSON.stringify(
  16562. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16563. index
  16564. ].toolChoose[i].wordJson
  16565. )
  16566. )
  16567. : { text: "" };
  16568. if (this.worksStudent[i].length) {
  16569. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16570. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16571. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16572. break;
  16573. }
  16574. }
  16575. }
  16576. this.dialogVisibleWordTeacher = true; //文档
  16577. } else if (t == 4) {
  16578. this.radio = [];
  16579. this.noteName = "";
  16580. this.isAnswer = false;
  16581. if (this.askCount > 0) {
  16582. this.updateCount(this.askCount, t);
  16583. } else {
  16584. this.askCount++;
  16585. a = this.askCount;
  16586. this.toolsCount(a, t);
  16587. }
  16588. if (!this.dialogVisible2) {
  16589. this.askJson.askJson =
  16590. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16591. index
  16592. ].toolChoose[i].askJson;
  16593. this.askJson.askTitle =
  16594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16595. index
  16596. ].toolChoose[i].askTitle;
  16597. this.askJson.askCount =
  16598. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16599. index
  16600. ].toolChoose[i].askCount;
  16601. } else {
  16602. this.askJson.askJson = this.chapTools.askJson.askJson;
  16603. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16604. this.askJson.askCount = this.chapTools.askJson.askCount;
  16605. }
  16606. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16607. if (this.askJson.askJson[k].type == "2") {
  16608. this.radio.push([]);
  16609. } else {
  16610. this.radio.push("");
  16611. }
  16612. }
  16613. this.dialogVisible5Teacher = true;
  16614. } else if (t == 45) {
  16615. this.noteName = "";
  16616. this.radio = [];
  16617. this.isAnswer = false;
  16618. if (this.askCount > 0) {
  16619. this.updateCount(this.askCount, t);
  16620. } else {
  16621. this.askCount++;
  16622. a = this.askCount;
  16623. this.toolsCount(a, t);
  16624. }
  16625. this.testJson =
  16626. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16627. index
  16628. ].toolChoose[i].testJson;
  16629. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16630. if (this.testJson.testJson[k].type == "2") {
  16631. this.radio.push([]);
  16632. } else {
  16633. this.radio.push("");
  16634. }
  16635. }
  16636. this.dialogVisibleChoiceTeacher = true;
  16637. } else if (t == 41) {
  16638. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16639. .taskJson[index].toolChoose[i].selectJson
  16640. ? JSON.parse(
  16641. JSON.stringify(
  16642. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16643. index
  16644. ].toolChoose[i].selectJson
  16645. )
  16646. )
  16647. : { url: "", select: [], answer: [] };
  16648. if (this.worksStudent[i].length) {
  16649. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16650. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16651. var a = this.worksStudent[i][k].works.split(",");
  16652. for (var ki = 0; ki < a.length; ki++) {
  16653. a[ki] = parseInt(a[ki]);
  16654. }
  16655. this.selectAnswer = {
  16656. answer: a,
  16657. stu: this.worksStudent[i][k].sName,
  16658. };
  16659. break;
  16660. } else {
  16661. this.selectAnswer = { answer: [], stu: "" };
  16662. }
  16663. }
  16664. } else {
  16665. this.selectAnswer = { answer: [], stu: "" };
  16666. }
  16667. this.isSelect = false;
  16668. this.dialogVisibleSelectTeacher = true;
  16669. } else if (t == 47) {
  16670. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16671. .taskJson[index].toolChoose[i].sentenceList
  16672. ? JSON.parse(
  16673. JSON.stringify(
  16674. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16675. index
  16676. ].toolChoose[i].sentenceList
  16677. )
  16678. )
  16679. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16680. for (var q = 0; q < this.sentenceList.length; q++) {
  16681. this.sentenceList[q].chooseSenList = [];
  16682. this.sentenceList[q].addChangeSen = [];
  16683. this.sentenceList[q].addChangeSen = JSON.parse(
  16684. JSON.stringify(this.sentenceList[q].addSentence)
  16685. );
  16686. this.sentenceList[q].chooseSenList.length =
  16687. this.sentenceList[q].rightAnswer.length;
  16688. }
  16689. this.dialogVisibleSentenceTeacher = true;
  16690. } else if (t == 48) {
  16691. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16692. .taskJson[index].toolChoose[i].tableJson
  16693. ? JSON.parse(
  16694. JSON.stringify(
  16695. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16696. index
  16697. ].toolChoose[i].tableJson
  16698. )
  16699. )
  16700. : { text: "" };
  16701. if (this.worksStudent[i].length) {
  16702. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16703. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16704. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16705. break;
  16706. }
  16707. }
  16708. }
  16709. this.dialogVisibleTableTeacher = true;
  16710. } else if (t == 40) {
  16711. if (this.evalCount > 0) {
  16712. this.updateCount(this.evalCount, t);
  16713. } else {
  16714. this.evalCount++;
  16715. a = this.evalCount;
  16716. this.toolsCount(a, t);
  16717. }
  16718. this.eScore = { eBzText: "", eStar: [] };
  16719. if (this.worksStudent[i].length) {
  16720. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16721. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16722. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16723. this.rateJson =
  16724. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16725. index
  16726. ].toolChoose[i].rateJson;
  16727. break;
  16728. } else {
  16729. this.rateJson =
  16730. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16731. index
  16732. ].toolChoose[i].rateJson;
  16733. }
  16734. }
  16735. } else {
  16736. this.rateJson =
  16737. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16738. index
  16739. ].toolChoose[i].rateJson;
  16740. }
  16741. this.isStar = false;
  16742. this.studentEvalDialogVisibleTeacher = true;
  16743. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  16744. window.parent.postMessage(
  16745. {
  16746. tools: t + "teacher",
  16747. cid: this.id,
  16748. stage: this.courseType,
  16749. task: this.taskCount,
  16750. tool: i,
  16751. student: this.sStudent,
  16752. },
  16753. "*"
  16754. );
  16755. }
  16756. },
  16757. openCocoPi(tool, i, uid, uname) {
  16758. let student = {
  16759. userid: uid,
  16760. student: uname,
  16761. };
  16762. if (tool == 57) {
  16763. window.parent.postMessage(
  16764. {
  16765. tools: tool + "teacher",
  16766. cid: this.id,
  16767. stage: this.courseType,
  16768. task: this.taskCount,
  16769. tool: i,
  16770. student: student,
  16771. },
  16772. "*"
  16773. );
  16774. }
  16775. },
  16776. setRightAnswer(s, i, j) {
  16777. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  16778. if (
  16779. this.sentenceList[i].chooseSenList[q] == undefined ||
  16780. this.sentenceList[i].chooseSenList[q] == ""
  16781. ) {
  16782. this.sentenceList[i].chooseSenList[q] = s;
  16783. this.sentenceList[i].addChangeSen[j] = "";
  16784. break;
  16785. }
  16786. }
  16787. this.$forceUpdate();
  16788. },
  16789. returnCard(r, i, j) {
  16790. var a = this.sentenceList[i].addSentence.indexOf(r);
  16791. this.sentenceList[i].chooseSenList[j] = "";
  16792. this.sentenceList[i].addChangeSen[a] = r;
  16793. this.$forceUpdate();
  16794. },
  16795. // addSentenceTool() {
  16796. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16797. // this.taskCount
  16798. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  16799. // this.sentenceList = [
  16800. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  16801. // ];
  16802. // this.dialogVisibleSentence = false;
  16803. // },
  16804. toolsCount(a, t) {
  16805. let params = {
  16806. cid: this.id,
  16807. chid: this.courseType,
  16808. uid: this.userid,
  16809. tid: t,
  16810. count: a,
  16811. };
  16812. this.ajax
  16813. .get(this.$store.state.api + "insertToolsCount", params)
  16814. .then((res) => {
  16815. this.selectCount();
  16816. })
  16817. .catch((err) => {
  16818. console.error(err);
  16819. });
  16820. },
  16821. updateCount(c, t) {
  16822. c++;
  16823. let params = {
  16824. cid: this.id,
  16825. chid: this.courseType,
  16826. uid: this.userid,
  16827. tid: t,
  16828. count: c,
  16829. };
  16830. this.ajax
  16831. .get(this.$store.state.api + "updateToolsCount", params)
  16832. .then((res) => {
  16833. this.selectCount();
  16834. })
  16835. .catch((err) => {
  16836. console.error(err);
  16837. });
  16838. },
  16839. checkEva() {
  16840. if (this.evalua != "") {
  16841. for (var i = 0; i < this.evaJuri.length; i++) {
  16842. if (this.evalua == this.evaJuri[i].id) {
  16843. this.eTitle = this.evaJuri[i].title;
  16844. this.eJson = JSON.parse(this.evaJuri[i].content);
  16845. }
  16846. }
  16847. this.$forceUpdate();
  16848. setTimeout(() => {
  16849. this.setMindData();
  16850. }, 0);
  16851. }
  16852. },
  16853. selectEva() {
  16854. let params = {
  16855. oid: this.oid,
  16856. };
  16857. this.ajax
  16858. .get(this.$store.state.api + "selectAllEvaluation", params)
  16859. .then((res) => {
  16860. this.evaJuri = res.data[0];
  16861. })
  16862. .catch((err) => {
  16863. console.error(err);
  16864. });
  16865. },
  16866. setMindData() {
  16867. this.data.data = [];
  16868. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  16869. let _eJson = Object.keys(this.eJson);
  16870. let _e = this.eJson;
  16871. for (let i = 0; i < _eJson.length; i++) {
  16872. let element = _e[_eJson[i]];
  16873. this.data.data.push({
  16874. id: element.id,
  16875. parentid: "root",
  16876. topic: element.name,
  16877. });
  16878. let _eJsonc = Object.keys(element.child);
  16879. let _e2 = element.child;
  16880. for (let j = 0; j < _eJsonc.length; j++) {
  16881. let _ec = _e2[_eJsonc[j]];
  16882. this.data.data.push({
  16883. id: _ec.id,
  16884. parentid: element.id,
  16885. topic: _ec.name,
  16886. });
  16887. let _eJsonz = Object.keys(_ec.child);
  16888. let _e3 = _ec.child;
  16889. for (let z = 0; z < _eJsonz.length; z++) {
  16890. let _ez = _e3[_eJsonz[z]];
  16891. this.data.data.push({
  16892. id: _ez.id,
  16893. parentid: _ec.id,
  16894. topic: _ez.name,
  16895. });
  16896. }
  16897. }
  16898. }
  16899. this.$forceUpdate();
  16900. },
  16901. checkFileFull(type, url) {
  16902. this.fullDialogVisible = true;
  16903. this.fulltype = type;
  16904. this.fullUrl = url;
  16905. },
  16906. checkFileFull1(t, f) {
  16907. this.fullDialogVisible = true;
  16908. if (t == 6) {
  16909. this.fulltype = 1;
  16910. this.fullUrl = JSON.parse(JSON.stringify(f));
  16911. } else if (t == 8) {
  16912. this.fulltype = 2;
  16913. this.fullUrl = f.url;
  16914. } else if (
  16915. t == 3 &&
  16916. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16917. "PDF"
  16918. ) {
  16919. this.fulltype = 3;
  16920. this.fullUrl = f.url;
  16921. } else if (t == 3) {
  16922. this.fulltype = 2;
  16923. this.fullUrl =
  16924. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16925. }
  16926. },
  16927. openSname(n, id, i, uid) {
  16928. this.snameWid = id;
  16929. this.worksSName = n;
  16930. this.worksSid = uid == n ? "" : uid;
  16931. this.toolindex = i;
  16932. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16933. if (!this.uploadCid) {
  16934. this.$message.error(
  16935. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16936. );
  16937. return;
  16938. }
  16939. this.selectUploadStudent(1);
  16940. },
  16941. updateName() {
  16942. let params = {
  16943. n: this.worksSName,
  16944. cid: this.snameWid,
  16945. };
  16946. this.ajax
  16947. .get(this.$store.state.api + "updateCourseWorksName", params)
  16948. .then((res) => {
  16949. this.$message({
  16950. message: "修改成功",
  16951. type: "success",
  16952. });
  16953. this.dialogVisibleSname = false;
  16954. this.getCourseDetail();
  16955. this.snameWid = "";
  16956. this.worksSName = "";
  16957. })
  16958. .catch((err) => {
  16959. console.error(err);
  16960. });
  16961. },
  16962. downloadFile2(f) {
  16963. // const loading = this.$loading.service({
  16964. // background: "rgba(255, 255, 255, 0.7)",
  16965. // target: document.body,
  16966. // text: "文件加载中...",
  16967. // });
  16968. // let url2 = f.url;
  16969. // let _url2 = "";
  16970. // if (
  16971. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16972. // ) {
  16973. // _url2 = url2.split(
  16974. // "https://view.officeapps.live.com/op/view.aspx?src="
  16975. // )[1];
  16976. // } else {
  16977. // _url2 = url2;
  16978. // }
  16979. // let params = {
  16980. // url: _url2,
  16981. // name: f.name,
  16982. // };
  16983. // this.ajax
  16984. // .get(this.$store.state.api + "download", params)
  16985. // .then((res) => {
  16986. // console.log(res);
  16987. // loading.close();
  16988. // let content = res.data.data.data;
  16989. // let ab = new ArrayBuffer(content.length);
  16990. // let view = new Uint8Array(ab);
  16991. // for (var i = 0; i < content.length; ++i) {
  16992. // view[i] = content[i];
  16993. // }
  16994. // let elink = document.createElement("a");
  16995. // elink.download = f.name;
  16996. // elink.style.display = "none";
  16997. // let blob = new Blob([ab], {
  16998. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  16999. // });
  17000. // elink.href = URL.createObjectURL(blob);
  17001. // document.body.appendChild(elink);
  17002. // elink.click();
  17003. // document.body.removeChild(elink);
  17004. // })
  17005. // .catch((err) => {
  17006. // loading.close();
  17007. // console.error(err);
  17008. // });
  17009. let url = f.url;
  17010. let _this = this;
  17011. let _url = "";
  17012. if (
  17013. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17014. ) {
  17015. _url = url.split(
  17016. "https://view.officeapps.live.com/op/view.aspx?src="
  17017. )[1];
  17018. } else {
  17019. _url = url;
  17020. }
  17021. const loading = _this.$loading.service({
  17022. background: "rgba(255, 255, 255, 0.7)",
  17023. target: document.body,
  17024. text: "文件加载中...",
  17025. });
  17026. let x = new XMLHttpRequest();
  17027. x.open("GET", _url, true);
  17028. x.responseType = "blob";
  17029. x.onload = function () {
  17030. loading.close();
  17031. let url = window.URL.createObjectURL(new Blob([x.response]));
  17032. let a = document.createElement("a");
  17033. a.name = f.name;
  17034. a.href = url;
  17035. a.download = f.name;
  17036. a.click();
  17037. };
  17038. x.send();
  17039. },
  17040. downloadFile(url) {
  17041. let _this = this;
  17042. let _url = "";
  17043. if (
  17044. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17045. ) {
  17046. _url = url.split(
  17047. "https://view.officeapps.live.com/op/view.aspx?src="
  17048. )[1];
  17049. } else {
  17050. _url = url;
  17051. }
  17052. const x = new XMLHttpRequest();
  17053. x.open("GET", _url, true);
  17054. x.responseType = "blob";
  17055. const loading = _this.$loading.service({
  17056. background: "rgba(255, 255, 255, 0.7)",
  17057. target: document.body,
  17058. text: "文件加载中...",
  17059. });
  17060. // _this.$message.success("文件下载中...");
  17061. x.onload = function (e) {
  17062. loading.close();
  17063. // const url = window.URL.createObjectURL(x.response);
  17064. // const a = document.createElement("a");
  17065. // a.href = url;
  17066. // a.target = "_blank";
  17067. // a.download = url;
  17068. // a.click();
  17069. // a.remove();
  17070. let content = x.response;
  17071. let elink = document.createElement("a");
  17072. elink.download = decodeURI(
  17073. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17074. );
  17075. elink.style.display = "none";
  17076. let blob = new Blob([content]);
  17077. elink.href = URL.createObjectURL(blob);
  17078. document.body.appendChild(elink);
  17079. elink.click();
  17080. document.body.removeChild(elink);
  17081. };
  17082. x.send();
  17083. },
  17084. openLine(url) {
  17085. window.open(url);
  17086. },
  17087. resize() {
  17088. if (document.getElementsByClassName("box_course").length) {
  17089. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17090. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17091. if (this.showType == 2 || this.showType == 3) {
  17092. document.getElementsByClassName("navBox")[0].style.height =
  17093. a - 40 + 46 + "px";
  17094. } else {
  17095. document.getElementsByClassName("navBox")[0].style.height =
  17096. a - 40 + "px";
  17097. }
  17098. }
  17099. this.Stbodywidth =
  17100. document.getElementsByClassName("student_body").length &&
  17101. document.getElementsByClassName("student_body")[0].offsetWidth;
  17102. },
  17103. closeDraw() {
  17104. this.bg = null;
  17105. this.drawShow = false;
  17106. },
  17107. showPicturePaint(url) {
  17108. let params = {
  17109. img: url,
  17110. };
  17111. this.ajax
  17112. .get(this.$store.state.api + "imgToBase64", params)
  17113. .then((res) => {
  17114. console.log(res);
  17115. this.drawShow = true;
  17116. this.bg = res.data[0].img;
  17117. })
  17118. .catch((err) => {
  17119. console.error(err);
  17120. });
  17121. },
  17122. addImgDraw(base64) {
  17123. let file = { name: "批注图.png" };
  17124. let img = this.dataUrlToFile(base64, file);
  17125. this.beforeUpload1(img, 5);
  17126. },
  17127. addImgDrawImG(url) {
  17128. // console.log(url);
  17129. let params = [
  17130. {
  17131. wid: this.commentDetail.wid,
  17132. img: url,
  17133. },
  17134. ];
  17135. this.ajax
  17136. .post(this.$store.state.api + "updateCourseWorks", params)
  17137. .then((res) => {
  17138. this.$message({
  17139. message: "提交成功",
  17140. type: "success",
  17141. });
  17142. this.drawShow = false;
  17143. this.bg = "";
  17144. this.selectSWorks();
  17145. this.selectStudent();
  17146. })
  17147. .catch((err) => {
  17148. this.$message.error("提交失败");
  17149. console.error(err);
  17150. });
  17151. },
  17152. deletePicturePaint() {
  17153. this.$confirm("确定删除此批注吗?", "提示", {
  17154. confirmButtonText: "确定",
  17155. cancelButtonText: "取消",
  17156. type: "warning",
  17157. })
  17158. .then(() => {
  17159. let params = [
  17160. {
  17161. wid: this.commentDetail.wid,
  17162. img: "",
  17163. },
  17164. ];
  17165. this.ajax
  17166. .post(this.$store.state.api + "updateCourseWorks", params)
  17167. .then((res) => {
  17168. this.$message({
  17169. message: "删除成功",
  17170. type: "success",
  17171. });
  17172. this.selectSWorks();
  17173. this.selectStudent();
  17174. })
  17175. .catch((err) => {
  17176. this.$message.error("删除失败");
  17177. console.error(err);
  17178. });
  17179. })
  17180. .catch(() => {});
  17181. },
  17182. getAudioVideo(constraintsData) {
  17183. if (navigator.mediaDevices === undefined) {
  17184. navigator.mediaDevices = {};
  17185. }
  17186. if (navigator.mediaDevices.getUserMedia === undefined) {
  17187. navigator.mediaDevices.getUserMedia = function (constraints) {
  17188. // 首先,如果有getUserMedia的话,就获得它
  17189. var getUserMedia =
  17190. navigator.getUserMedia ||
  17191. navigator.webkitGetUserMedia ||
  17192. navigator.mozGetUserMedia ||
  17193. navigator.msGetUserMedia;
  17194. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17195. if (!getUserMedia) {
  17196. return Promise.reject({ code: 404 });
  17197. }
  17198. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17199. return new Promise(function (resolve, reject) {
  17200. getUserMedia.call(navigator, constraints, resolve, reject);
  17201. });
  17202. };
  17203. }
  17204. return navigator.mediaDevices.getUserMedia(constraintsData);
  17205. },
  17206. /**
  17207. * 开始录制
  17208. */
  17209. startRecording(callback) {
  17210. let _function = (screenStream) => {
  17211. this.addStreamStopListener(screenStream, () => {
  17212. console.log("流停止监听");
  17213. this.stopRecording();
  17214. this.$emit("streamStop", {});
  17215. // this.stopRecording();
  17216. });
  17217. var options = {
  17218. type: "video",
  17219. mimeType: "video/webm",
  17220. disableLogs: false,
  17221. getNativeBlob: false, // enable it for longer recordings
  17222. ignoreMutedMedia: false,
  17223. };
  17224. // this.video.srcObject = screenStream;
  17225. this.recorder = RecordRTC(screenStream, options);
  17226. this.recorder.startRecording();
  17227. this.recorder.screen = screenStream;
  17228. this.videoStart = true;
  17229. // callback(true);
  17230. };
  17231. this.getAudioVideo({ audio: true })
  17232. .then((res) => {
  17233. this.captureScreen(_function, true);
  17234. console.log("已点击允许,开启成功");
  17235. })
  17236. .catch((err) => {
  17237. // console.log('浏览器不支持,请更换浏览器')
  17238. // } else {
  17239. this.captureScreen(_function, false);
  17240. console.log("请检查是否存在麦克风");
  17241. });
  17242. },
  17243. /**
  17244. * 停止录制
  17245. */
  17246. stopRecording(callback) {
  17247. this.recorder.stopRecording(() => {
  17248. // this.video.src = this.video.srcObject = null;
  17249. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17250. const url = URL.createObjectURL(this.recorder.getBlob());
  17251. const a = document.createElement("a"); //this.fileName+
  17252. let videoFile = new File(
  17253. [this.recorder.getBlob()],
  17254. this.courseDetail.title + "录屏.mp4",
  17255. {
  17256. type: "video/mp4",
  17257. }
  17258. );
  17259. let downloadUrl = URL.createObjectURL(videoFile);
  17260. document.body.appendChild(a);
  17261. a.style.display = "none";
  17262. a.href = url;
  17263. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17264. a.click();
  17265. this.recorder.screen.stop();
  17266. this.recorder.destroy();
  17267. this.recorder = null;
  17268. this.videoStart = false;
  17269. // callback(false);
  17270. });
  17271. },
  17272. //初始化
  17273. captureScreen(callback, type) {
  17274. if (navigator.getDisplayMedia) {
  17275. //录制结束,文件下载
  17276. navigator
  17277. .getDisplayMedia({
  17278. video: true,
  17279. })
  17280. .then((screenStream) => {
  17281. if (type) {
  17282. navigator.mediaDevices
  17283. .getUserMedia({ audio: true })
  17284. .then((mic) => {
  17285. screenStream.addTrack(mic.getTracks()[0]);
  17286. callback(screenStream);
  17287. });
  17288. } else {
  17289. callback(screenStream);
  17290. }
  17291. })
  17292. .catch(function (error) {
  17293. console.log("error", error);
  17294. });
  17295. } else if (navigator.mediaDevices.getDisplayMedia) {
  17296. navigator.mediaDevices
  17297. .getDisplayMedia({
  17298. video: true,
  17299. })
  17300. .then((screenStream) => {
  17301. if (type) {
  17302. navigator.mediaDevices
  17303. .getUserMedia({ audio: true })
  17304. .then((mic) => {
  17305. screenStream.addTrack(mic.getTracks()[0]);
  17306. callback(screenStream);
  17307. });
  17308. } else {
  17309. callback(screenStream);
  17310. }
  17311. })
  17312. .catch(function (error) {
  17313. console.log("error", error);
  17314. });
  17315. } else {
  17316. var error = "getDisplayMedia API are not supported in this browser.";
  17317. console.log("error", error);
  17318. alert(error);
  17319. }
  17320. },
  17321. //流监听
  17322. addStreamStopListener(stream, callback) {
  17323. stream.addEventListener(
  17324. "ended",
  17325. function () {
  17326. callback();
  17327. callback = function () {};
  17328. },
  17329. false
  17330. );
  17331. stream.addEventListener(
  17332. "inactive",
  17333. function () {
  17334. callback();
  17335. callback = function () {};
  17336. },
  17337. false
  17338. );
  17339. stream.getTracks().forEach(function (track) {
  17340. track.addEventListener(
  17341. "ended",
  17342. function () {
  17343. callback();
  17344. callback = function () {};
  17345. },
  17346. false
  17347. );
  17348. track.addEventListener(
  17349. "inactive",
  17350. function () {
  17351. callback();
  17352. callback = function () {};
  17353. },
  17354. false
  17355. );
  17356. });
  17357. },
  17358. updateGroup() {
  17359. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17360. this.dialogVisibleGroup2 = true;
  17361. },
  17362. updateGroupJson() {
  17363. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17364. if (
  17365. this.groupStudentUid[this.toolindex][i].length >
  17366. this.groupJson2.number
  17367. ) {
  17368. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17369. return;
  17370. }
  17371. }
  17372. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17373. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17374. this.taskCount
  17375. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17376. let params = [
  17377. {
  17378. cid: this.id,
  17379. chapters: JSON.stringify(this.chapInfoList),
  17380. uid: this.userid,
  17381. unitIndex: this.courseType,
  17382. },
  17383. ];
  17384. this.ajax
  17385. .post(this.$store.state.api + "updateWorkNew4", params)
  17386. .then((res) => {
  17387. this.$message.success("设置成功");
  17388. this.getCourseDetail(2);
  17389. this.dialogVisibleGroup2 = false;
  17390. this.groupJson2 = {};
  17391. this.$forceUpdate();
  17392. })
  17393. .catch((err) => {
  17394. this.$message.error("网络不佳");
  17395. console.error(err);
  17396. });
  17397. },
  17398. lockChair() {
  17399. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17400. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17401. this.updateGroupJson();
  17402. },
  17403. selectGroup(index) {
  17404. this.getCourseDetail(2, index);
  17405. },
  17406. joinGroup(index) {
  17407. if (this.groupJson.islock == 2) {
  17408. this.$message.error("位置已被锁定,无法加入");
  17409. return;
  17410. }
  17411. if (
  17412. this.groupStudent[this.toolindex][index].length >
  17413. this.groupJson.number ||
  17414. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17415. ) {
  17416. this.$message.error("位置已满,无法加入");
  17417. return;
  17418. }
  17419. let params = [
  17420. {
  17421. cid: this.id,
  17422. stage: this.courseType,
  17423. task: this.taskCount,
  17424. tool: this.toolindex,
  17425. g: index,
  17426. uid: this.userid,
  17427. },
  17428. ];
  17429. this.ajax
  17430. .post(this.$store.state.api + "joinGroup", params)
  17431. .then((res) => {
  17432. this.$message.success("加入成功");
  17433. this.getCourseDetail();
  17434. })
  17435. .catch((err) => {
  17436. this.$message.error("网络不佳");
  17437. console.error(err);
  17438. });
  17439. },
  17440. exitGroup(id) {
  17441. if (this.groupJson.islock == 2) {
  17442. this.$message.error("位置已被锁定,无法退出");
  17443. return;
  17444. }
  17445. let params = [
  17446. {
  17447. gid: id,
  17448. },
  17449. ];
  17450. this.ajax
  17451. .post(this.$store.state.api + "exitGroup", params)
  17452. .then((res) => {
  17453. this.$message.success("退出成功");
  17454. this.getCourseDetail();
  17455. })
  17456. .catch((err) => {
  17457. this.$message.error("网络不佳");
  17458. console.error(err);
  17459. });
  17460. },
  17461. groupUpload(index, task, gindex) {
  17462. this.taskCount = task;
  17463. this.toolindex = index;
  17464. this.groupIndex = gindex;
  17465. this.dialogVisibleGroupWork = true;
  17466. },
  17467. updateGroupChair(user) {
  17468. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17469. el.label = index;
  17470. return index != user.group;
  17471. });
  17472. this.updateGroupUser = user;
  17473. this.dialogVisibleUpdateGroup = true;
  17474. },
  17475. updateChair() {
  17476. if (
  17477. this.groupStudent[this.toolindex][this.checkChair].length >
  17478. this.groupJson.number ||
  17479. this.groupStudent[this.toolindex][this.checkChair].length ==
  17480. this.groupJson.number
  17481. ) {
  17482. this.$message.error("位置已满,无法加入");
  17483. return;
  17484. }
  17485. let params = [
  17486. {
  17487. cid: this.id,
  17488. stage: this.courseType,
  17489. task: this.taskCount,
  17490. tool: this.toolindex,
  17491. g: this.checkChair,
  17492. uid: this.updateGroupUser.userid,
  17493. },
  17494. ];
  17495. this.ajax
  17496. .post(this.$store.state.api + "joinGroup", params)
  17497. .then((res) => {
  17498. this.$message.success("修改成功");
  17499. this.updateGroupUser = {};
  17500. this.checkChair = "";
  17501. this.updateGroupArray = {};
  17502. this.dialogVisibleUpdateGroup = false;
  17503. this.getCourseDetail();
  17504. })
  17505. .catch((err) => {
  17506. this.$message.error("网络不佳");
  17507. console.error(err);
  17508. });
  17509. },
  17510. deleteGroupChair(gindex) {
  17511. this.checkDeleteGroup = [];
  17512. this.deleteGroupUser = JSON.parse(
  17513. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17514. );
  17515. this.deleteGroupArray = this.groupJson.group[gindex];
  17516. this.groupIndex = gindex;
  17517. this.dialogVisibleDeleteGroup = true;
  17518. },
  17519. async deleteChair() {
  17520. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17521. const gid =
  17522. this.groupStudent[this.toolindex][this.groupIndex][
  17523. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17524. this.checkDeleteGroup[i]
  17525. )
  17526. ];
  17527. let params = [
  17528. {
  17529. gid: gid.id,
  17530. },
  17531. ];
  17532. var a = await this.deleteChairA(params);
  17533. if (i == this.checkDeleteGroup.length - 1) {
  17534. this.$message.success("退出成功");
  17535. this.dialogVisibleDeleteGroup = false;
  17536. this.deleteGroupUser = [];
  17537. this.deleteGroupArray = {};
  17538. this.groupIndex = "";
  17539. this.checkDeleteGroup = [];
  17540. this.getCourseDetail();
  17541. }
  17542. }
  17543. },
  17544. deleteChairA(params) {
  17545. return new Promise((resolve, reject) => {
  17546. this.ajax
  17547. .post(this.$store.state.api + "exitGroup", params)
  17548. .then((res) => {
  17549. resolve(1);
  17550. })
  17551. .catch((err) => {
  17552. this.$message.error("网络不佳");
  17553. console.error(err);
  17554. });
  17555. });
  17556. },
  17557. contract(i) {
  17558. if (this.isCloseList[i].isClose == 0) {
  17559. this.isCloseList[i].isClose = 1;
  17560. } else {
  17561. this.isCloseList[i].isClose = 0;
  17562. }
  17563. this.$forceUpdate();
  17564. },
  17565. openTools2(i) {
  17566. this.$message.error("暂未开放");
  17567. return;
  17568. },
  17569. addTools2(i) {
  17570. if (i == 4) {
  17571. // this.openTools2(4);
  17572. this.$message.error("暂未开放");
  17573. return;
  17574. }
  17575. if (i == 45) {
  17576. // this.openTools2(45);
  17577. this.$message.error("暂未开放");
  17578. return;
  17579. }
  17580. if (i == 47) {
  17581. // this.openTools2(47);
  17582. this.$message.error("暂未开放");
  17583. return;
  17584. }
  17585. if (i == 49) {
  17586. // this.openTools2(49);
  17587. this.$message.error("暂未开放");
  17588. return;
  17589. }
  17590. if (i == 62) {
  17591. // this.openTools(itemTaskIndex, 62, toolIndex);
  17592. this.$message.error("暂未开放");
  17593. return;
  17594. }
  17595. if (i == 15) {
  17596. // this.openTools(itemTaskIndex, 15, toolIndex);
  17597. this.$message.error("暂未开放");
  17598. return;
  17599. }
  17600. if (i == 40) {
  17601. // this.openTools(itemTaskIndex, 40, toolIndex);
  17602. this.$message.error("暂未开放");
  17603. return;
  17604. }
  17605. if (i == 41) {
  17606. // this.openTools(itemTaskIndex, 41, toolIndex);
  17607. this.$message.error("暂未开放");
  17608. return;
  17609. }
  17610. if (i == 42) {
  17611. // this.openTools(itemTaskIndex, 42, toolIndex);
  17612. this.$message.error("暂未开放");
  17613. return;
  17614. }
  17615. if (this.checktoolArray.length > 0) {
  17616. if (this.checktoolArray.indexOf(i) != -1) {
  17617. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17618. } else {
  17619. this.checktoolArray = [];
  17620. this.checktoolArray.push(i);
  17621. }
  17622. } else {
  17623. this.checktoolArray.push(i);
  17624. }
  17625. this.$forceUpdate();
  17626. },
  17627. addToolChoose() {
  17628. if (!this.checktoolArray.length) {
  17629. this.$message.error("请选择要添加的任务");
  17630. return;
  17631. }
  17632. if (
  17633. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17634. this.taskCount
  17635. ].toolChoose[0].tool.length
  17636. ) {
  17637. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17638. this.taskCount
  17639. ].toolChoose[0].tool = this.checktoolArray;
  17640. } else {
  17641. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17642. this.taskCount
  17643. ].toolChoose.push({
  17644. tool: this.checktoolArray,
  17645. toolDetail: "",
  17646. toolType: 0,
  17647. askCount: 1,
  17648. askTitle: "",
  17649. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17650. });
  17651. }
  17652. let params = [
  17653. {
  17654. cid: this.id,
  17655. chapters: JSON.stringify(this.chapInfoList),
  17656. uid: this.userid,
  17657. unitIndex: this.courseType,
  17658. },
  17659. ];
  17660. this.ajax
  17661. .post(this.$store.state.api + "updateWorkNew4", params)
  17662. .then((res) => {
  17663. this.$message({
  17664. message: "添加成功",
  17665. type: "success",
  17666. });
  17667. this.checktoolArray = [];
  17668. this.getCourseDetail(2);
  17669. this.checkBz(
  17670. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17671. this.taskCount
  17672. ].toolChoose.length - 1
  17673. );
  17674. this.$forceUpdate();
  17675. })
  17676. .catch((err) => {
  17677. console.error(err);
  17678. });
  17679. },
  17680. updateToolDetail() {
  17681. if (!this.isUpdateToolDetail) {
  17682. this.isUpdateToolDetail = true;
  17683. this.updateToolDetailInner = JSON.parse(
  17684. JSON.stringify(this.tool.toolDetail)
  17685. );
  17686. } else {
  17687. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17688. this.taskCount
  17689. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  17690. JSON.stringify(this.updateToolDetailInner)
  17691. );
  17692. let params = [
  17693. {
  17694. cid: this.id,
  17695. chapters: JSON.stringify(this.chapInfoList),
  17696. uid: this.userid,
  17697. unitIndex: this.courseType,
  17698. },
  17699. ];
  17700. this.ajax
  17701. .post(this.$store.state.api + "updateWorkNew4", params)
  17702. .then((res) => {
  17703. this.isUpdateToolDetail = false;
  17704. this.$message({
  17705. message: "修改成功",
  17706. type: "success",
  17707. });
  17708. this.updateToolDetailInner = "";
  17709. this.getCourseDetail(2);
  17710. this.$forceUpdate();
  17711. this.checkBz(this.toolIndex);
  17712. })
  17713. .catch((err) => {
  17714. console.error(err);
  17715. });
  17716. }
  17717. },
  17718. openWordCloud(toolindex) {
  17719. let array = [];
  17720. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  17721. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  17722. array.push({ name: works });
  17723. }
  17724. if (this.isGroup) {
  17725. for (var i = 0; i < this.courseGroup.group.length; i++) {
  17726. let works = this.courseGroup.group[i].works[toolindex];
  17727. for (var j = 0; j < works.length; j++) {
  17728. let answer = JSON.parse(works[j].works)[0].answer;
  17729. array.push({ name: answer });
  17730. }
  17731. }
  17732. }
  17733. this.wordCloudData = array;
  17734. this.dialogVisibleWordCloud = true;
  17735. },
  17736. pickStudent(stu) {
  17737. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  17738. return;
  17739. }
  17740. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  17741. confirmButtonText: "确定",
  17742. cancelButtonText: "取消",
  17743. type: "warning",
  17744. })
  17745. .then(() => {
  17746. let params = [
  17747. {
  17748. uid: stu.userid,
  17749. cid: this.id,
  17750. stage: this.courseType,
  17751. task: this.taskCount,
  17752. tool: this.toolindex,
  17753. },
  17754. ];
  17755. this.ajax
  17756. .post(this.$store.state.api + "updateCoursePick", params)
  17757. .then((res) => {
  17758. this.$message.success("操作成功");
  17759. this.getPick();
  17760. })
  17761. .catch((err) => {
  17762. this.$message.error("网络不佳");
  17763. console.error(err);
  17764. });
  17765. })
  17766. .catch(() => {});
  17767. },
  17768. getPick() {
  17769. let params = {
  17770. cid: this.id,
  17771. };
  17772. this.ajax
  17773. .get(this.$store.state.api + "getPick", params)
  17774. .then((res) => {
  17775. let array = [];
  17776. for (var i = 0; i < res.data[0].length; i++) {
  17777. array.push(res.data[0][i].userid);
  17778. }
  17779. this.isPickStudent = array;
  17780. if (array.indexOf(this.userid) !== -1) {
  17781. this.$confirm("你被老师选到啦!", "提示", {
  17782. confirmButtonText: "确定",
  17783. showCancelButton: false,
  17784. closeOnClickModal: false,
  17785. type: "warning",
  17786. })
  17787. .then(() => {
  17788. let pa = [
  17789. {
  17790. uid: this.userid,
  17791. cid: this.id,
  17792. },
  17793. ];
  17794. this.ajax
  17795. .post(this.$store.state.api + "deletePick", pa)
  17796. .then((res) => {
  17797. this.getPick();
  17798. })
  17799. .catch((err) => {
  17800. this.$message.error("网络不佳");
  17801. console.error(err);
  17802. });
  17803. })
  17804. .catch(() => {});
  17805. }
  17806. })
  17807. .catch((err) => {
  17808. this.$message.error("网络不佳");
  17809. console.error(err);
  17810. });
  17811. },
  17812. },
  17813. directives: {
  17814. // 使用局部注册指令的方式
  17815. resize: {
  17816. // 指令的名称
  17817. bind(el, binding) {
  17818. // el为绑定的元素,binding为绑定给指令的对象
  17819. let width = "",
  17820. height = "";
  17821. function isReize() {
  17822. const style = document.defaultView.getComputedStyle(el);
  17823. if (width !== style.width || height !== style.height) {
  17824. binding.value(); // 关键
  17825. }
  17826. width = style.width;
  17827. height = style.height;
  17828. }
  17829. el.__vueSetInterval__ = setInterval(isReize, 300);
  17830. },
  17831. unbind(el) {
  17832. clearInterval(el.__vueSetInterval__);
  17833. },
  17834. },
  17835. },
  17836. beforeDestroy() {
  17837. window.onresize = null;
  17838. clearInterval(this.timer);
  17839. this.timer = null;
  17840. clearInterval(this.opertimer);
  17841. this.opertimer = null;
  17842. },
  17843. computed: {
  17844. contentConvent() {
  17845. return function (c) {
  17846. return c
  17847. ? c
  17848. .replaceAll(/\r\n/g, "<br/>")
  17849. .replaceAll(/\n/g, "<br/>")
  17850. .replaceAll(/\s/g, " &nbsp")
  17851. : "";
  17852. };
  17853. },
  17854. checkUpload() {
  17855. return function () {
  17856. var studentK = [];
  17857. if (this.plworkFile.length > 0) {
  17858. for (var z = 0; z < this.plworkFile.length; z++) {
  17859. studentK.push(this.plworkFile[z].username);
  17860. }
  17861. studentK = studentK.join(",");
  17862. }
  17863. var a = this.uploadStudentJuri.filter((el) => {
  17864. return studentK.indexOf(el.userid) == -1;
  17865. });
  17866. return a;
  17867. };
  17868. },
  17869. getSName() {
  17870. return function (name) {
  17871. var check = name;
  17872. this.uploadStudentJuri.forEach((el) => {
  17873. if (el.userid == check) {
  17874. check = el.name ? el.name : el.username;
  17875. }
  17876. });
  17877. return check;
  17878. };
  17879. },
  17880. getImgList() {
  17881. return function (val) {
  17882. let srcList = []; // 定义一个数组用来接收后面的img地址
  17883. val.replace(
  17884. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  17885. function (match, capture) {
  17886. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  17887. srcList.push(capture);
  17888. }
  17889. );
  17890. return srcList;
  17891. };
  17892. },
  17893. },
  17894. mounted() {
  17895. document.body.addEventListener("click", (e) => {
  17896. if (this.isUpdateToolDetail) {
  17897. this.updateToolDetail();
  17898. }
  17899. });
  17900. if (this.screenType == 2) {
  17901. window.parent.postMessage({ allScreen: 4 }, "*");
  17902. } else if (this.screenType == 3) {
  17903. window.parent.postMessage({ allScreen: 5 }, "*");
  17904. } else if (this.screenType == 1) {
  17905. window.parent.postMessage({ allScreen: 6 }, "*");
  17906. }
  17907. this.setOperationTime();
  17908. this.selectEva();
  17909. this.getCourseDetail();
  17910. this.selectCount();
  17911. this.getHomeWork();
  17912. this.toolIndex = null;
  17913. this.contentDialog = true;
  17914. this.setContent2(true);
  17915. if (this.tType == 4) {
  17916. this.pzDialog = true;
  17917. this.selectPz();
  17918. }
  17919. document.scrollingElement.scrollTop = 0;
  17920. window.addEventListener("resize", () => {
  17921. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17922. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17923. if (this.showType == 2 || this.showType == 3) {
  17924. document.getElementsByClassName("navBox")[0].style.height =
  17925. a - 40 + 46 + "px";
  17926. } else {
  17927. document.getElementsByClassName("navBox")[0].style.height =
  17928. a - 40 + "px";
  17929. }
  17930. });
  17931. let _this = this;
  17932. setTimeout(() => {
  17933. // _this.vedioTime = [];
  17934. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17935. // _this.vedioTime[i] = document.getElementsByClassName(
  17936. // "vjs-duration-display"
  17937. // )[i].textContent;
  17938. // }
  17939. }, 1000);
  17940. },
  17941. };
  17942. </script>
  17943. <style scoped>
  17944. @media screen and (max-width: 1280px) {
  17945. /* .courseIndex > div:first-child(2) {
  17946. width: 15% !important;
  17947. } */
  17948. /* .navText {
  17949. width: 120px !important;
  17950. } */
  17951. .evaCss {
  17952. flex-direction: column !important;
  17953. align-items: center !important;
  17954. }
  17955. .dialog_diy1 >>> .el-dialog {
  17956. width: 100% !important;
  17957. }
  17958. .rightWidthCss {
  17959. width: 100% !important;
  17960. }
  17961. .dialog_diy3 >>> .el-dialog {
  17962. width: 100% !important;
  17963. }
  17964. /* .textTitle >>> .el-form-item__label {
  17965. width: 150px !important;
  17966. } */
  17967. }
  17968. .evaCssMax {
  17969. flex-direction: column !important;
  17970. align-items: center !important;
  17971. }
  17972. .dialog_diy >>> .el-dialog {
  17973. margin-top: 10vh !important;
  17974. }
  17975. .body_student {
  17976. width: 77%;
  17977. height: 100%;
  17978. position: absolute;
  17979. left: 22%;
  17980. top: 0;
  17981. }
  17982. .student_head {
  17983. width: 100%;
  17984. margin: 20px auto 0;
  17985. padding-bottom: 20px;
  17986. display: flex;
  17987. flex-direction: column;
  17988. flex-wrap: nowrap;
  17989. align-items: flex-start;
  17990. justify-content: flex-start;
  17991. }
  17992. .pb_left {
  17993. width: 20%;
  17994. margin-right: 10px;
  17995. background: rgb(255, 255, 255);
  17996. position: fixed;
  17997. height: calc(100% - 40px);
  17998. border-radius: 20px;
  17999. padding-bottom: 15px;
  18000. box-sizing: border-box;
  18001. }
  18002. .wheel > img,
  18003. .project > img,
  18004. .star > img,
  18005. .evaluate > img,
  18006. .up_photo > img,
  18007. .chapter_add > img,
  18008. .deleteWord > img,
  18009. .question > img,
  18010. .homework > img {
  18011. width: 100%;
  18012. height: 100%;
  18013. }
  18014. .upCover > img {
  18015. width: 131px;
  18016. height: 69px;
  18017. object-fit: cover;
  18018. }
  18019. .upCover {
  18020. width: calc(100% / 3.5);
  18021. position: relative;
  18022. margin: 0 15px 10px 0;
  18023. display: flex;
  18024. flex-direction: column;
  18025. flex-wrap: nowrap;
  18026. justify-content: center;
  18027. align-content: center;
  18028. align-items: center;
  18029. height: fit-content;
  18030. }
  18031. .upCover2 {
  18032. width: 100%;
  18033. position: relative;
  18034. margin: 0 15px 10px 0;
  18035. display: flex;
  18036. flex-direction: column;
  18037. flex-wrap: nowrap;
  18038. justify-content: center;
  18039. align-content: center;
  18040. align-items: center;
  18041. }
  18042. .upCover2 > img {
  18043. width: 100%;
  18044. height: 90px;
  18045. object-fit: contain;
  18046. }
  18047. .chapter_add {
  18048. width: 120px;
  18049. position: relative;
  18050. text-align: center;
  18051. }
  18052. .isAddThings {
  18053. margin-top: 20px;
  18054. position: relative;
  18055. text-align: center;
  18056. background: #f7f8fa;
  18057. height: 90px;
  18058. width: 90px;
  18059. display: flex;
  18060. flex-direction: column;
  18061. justify-content: center;
  18062. }
  18063. .deleteWord {
  18064. width: 22px;
  18065. height: 22px;
  18066. position: absolute;
  18067. right: -5px;
  18068. top: -5px;
  18069. cursor: pointer;
  18070. }
  18071. .box_course {
  18072. /* width: 60%; */
  18073. width: calc(100% - 300px);
  18074. }
  18075. .wheel {
  18076. width: 100%;
  18077. /* height: 100%; */
  18078. height: 650px;
  18079. }
  18080. .right_box {
  18081. display: flex;
  18082. flex-direction: column;
  18083. margin-left: 30px;
  18084. justify-content: space-around;
  18085. }
  18086. .right_box_title {
  18087. font-size: 23px;
  18088. }
  18089. .people {
  18090. display: flex;
  18091. }
  18092. .student_body {
  18093. width: 100%;
  18094. margin: 0 auto;
  18095. margin-top: 10px;
  18096. padding: 0 0 20px;
  18097. background: #fff;
  18098. border-radius: 20px;
  18099. }
  18100. .study_top {
  18101. margin-top: 100px;
  18102. width: 100%;
  18103. /* overflow: auto; */
  18104. height: auto;
  18105. padding-bottom: 20px;
  18106. }
  18107. .study_top .checkbox {
  18108. display: flex;
  18109. align-items: center;
  18110. padding: 15px 0 15px 30px;
  18111. flex: 0 0 auto;
  18112. font-weight: bold;
  18113. border-bottom: 1px solid #eee;
  18114. }
  18115. .study_top .check {
  18116. padding-bottom: 5px;
  18117. text-align: center;
  18118. cursor: pointer;
  18119. height: 30px;
  18120. box-sizing: border-box;
  18121. display: flex;
  18122. }
  18123. .study_top .checked {
  18124. border-bottom: 4px solid #3fc6a0;
  18125. padding-bottom: 5px;
  18126. color: #3fc6a0;
  18127. display: flex;
  18128. height: 35px;
  18129. }
  18130. .study_top .checked > div,
  18131. .study_top .check > div {
  18132. margin-right: 5px;
  18133. }
  18134. .videoTop {
  18135. display: flex;
  18136. flex-direction: row;
  18137. justify-content: space-between;
  18138. background: #fff;
  18139. align-items: center;
  18140. width: 95%;
  18141. padding: 20px;
  18142. }
  18143. .upbtn {
  18144. margin: 25px;
  18145. background: #70afdb;
  18146. color: #fff;
  18147. width: 120px;
  18148. text-align: center;
  18149. height: 30px;
  18150. line-height: 30px;
  18151. font-size: 13px;
  18152. border-radius: 5px;
  18153. cursor: pointer;
  18154. }
  18155. .filebox {
  18156. display: flex;
  18157. flex-wrap: wrap;
  18158. flex-direction: column;
  18159. padding: 0 0 5px;
  18160. }
  18161. .filebox .tooldetail {
  18162. width: 100%;
  18163. margin: 0px 12px;
  18164. background: rgb(247, 247, 247);
  18165. padding: 20px;
  18166. line-height: 30px;
  18167. word-break: break-word;
  18168. }
  18169. .file {
  18170. display: flex;
  18171. flex-direction: column;
  18172. align-items: center;
  18173. justify-content: center;
  18174. cursor: pointer;
  18175. width: 200px;
  18176. }
  18177. .file div {
  18178. margin-top: 10px;
  18179. width: 150px;
  18180. text-align: center;
  18181. overflow: hidden;
  18182. white-space: nowrap;
  18183. text-overflow: ellipsis;
  18184. }
  18185. .media {
  18186. display: flex;
  18187. flex-direction: column;
  18188. align-items: center;
  18189. justify-content: center;
  18190. margin: 0 20px 20px 0;
  18191. cursor: pointer;
  18192. margin: 12px 0 5px 15px;
  18193. overflow: hidden;
  18194. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  18195. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  18196. box-sizing: border-box;
  18197. }
  18198. .media img {
  18199. height: 90px;
  18200. width: 160px;
  18201. object-fit: cover;
  18202. }
  18203. .media .title {
  18204. padding: 5px;
  18205. text-align: left;
  18206. width: 100%;
  18207. box-sizing: border-box;
  18208. }
  18209. .media .btn {
  18210. width: 100%;
  18211. height: 35px;
  18212. line-height: 35px;
  18213. color: #fff;
  18214. background: #606060;
  18215. text-align: center;
  18216. overflow: hidden;
  18217. white-space: nowrap;
  18218. text-overflow: ellipsis;
  18219. }
  18220. .detail_content_top {
  18221. width: 100%;
  18222. padding: 25px 0 25px 0;
  18223. }
  18224. .detail_title {
  18225. text-align: center;
  18226. font-size: 24px;
  18227. }
  18228. .detail_time {
  18229. font-size: 13px;
  18230. padding: 15px 0 0 40px;
  18231. }
  18232. .detail_content {
  18233. line-height: 2pc;
  18234. width: 90%;
  18235. margin: 0 auto;
  18236. padding-top: 30px;
  18237. text-indent: 30px;
  18238. overflow: auto;
  18239. height: 200px;
  18240. }
  18241. .score_box >>> .el-rate {
  18242. margin-left: 10px;
  18243. }
  18244. .dialog_change >>> .el-dialog {
  18245. border-radius: 5px;
  18246. }
  18247. .dialog_change >>> .el-dialog__header {
  18248. background: #f2f2f2;
  18249. text-align: center;
  18250. }
  18251. .dialog_change >>> .el-dialog__title {
  18252. line-height: 5px;
  18253. }
  18254. .dialog_change >>> .el-dialog__body {
  18255. background: #fff;
  18256. padding: 10px 20px;
  18257. }
  18258. .score_box {
  18259. display: flex;
  18260. align-items: center;
  18261. margin-bottom: 18px;
  18262. margin-top: 20px;
  18263. }
  18264. .up_photo {
  18265. width: 120px;
  18266. cursor: pointer;
  18267. margin-top: 10px;
  18268. }
  18269. .up_photo2 {
  18270. width: 180px;
  18271. box-sizing: border-box;
  18272. min-width: 180px;
  18273. height: 180px;
  18274. max-height: 180px;
  18275. min-height: 180px;
  18276. cursor: pointer;
  18277. display: flex;
  18278. flex-direction: column;
  18279. align-items: center;
  18280. justify-content: center;
  18281. background: rgb(242, 246, 255);
  18282. /* padding: 25px; */
  18283. margin-bottom: 10px;
  18284. }
  18285. .up_photo2 img {
  18286. width: 50%;
  18287. height: auto;
  18288. }
  18289. .up_photo2 span {
  18290. color: #898989;
  18291. }
  18292. .plworkBox {
  18293. display: flex;
  18294. align-items: center;
  18295. margin-top: 10px;
  18296. flex-wrap: wrap;
  18297. }
  18298. .upload_send {
  18299. margin: 30px auto 30px;
  18300. width: 60%;
  18301. background: #169bd6;
  18302. text-align: center;
  18303. height: 35px;
  18304. line-height: 35px;
  18305. color: #fff;
  18306. border-radius: 5px;
  18307. cursor: pointer;
  18308. }
  18309. .marginT {
  18310. margin-top: 20px;
  18311. }
  18312. .cd_content_steps {
  18313. display: flex;
  18314. width: 90%;
  18315. justify-content: space-around;
  18316. border-top: 1px solid #eeeeee;
  18317. }
  18318. .cd_steps_box {
  18319. display: flex;
  18320. justify-content: center;
  18321. align-items: center;
  18322. flex-direction: column;
  18323. cursor: pointer;
  18324. }
  18325. .first {
  18326. display: flex;
  18327. align-items: center;
  18328. margin: 15px 0 20px 0;
  18329. font-size: 20px;
  18330. }
  18331. .first > div:nth-child(2) {
  18332. font-size: 16px !important;
  18333. padding-left: 10px;
  18334. line-height: 26px;
  18335. box-sizing: border-box;
  18336. }
  18337. .blue_box_one {
  18338. text-align: center;
  18339. color: #fff;
  18340. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18341. border-radius: 7px;
  18342. margin: 10px;
  18343. cursor: pointer;
  18344. width: 95%;
  18345. height: 45px;
  18346. display: flex;
  18347. flex-direction: row;
  18348. justify-content: flex-start;
  18349. align-items: center;
  18350. }
  18351. .blue_box_one > div:nth-child(1) {
  18352. line-height: 30px;
  18353. margin: 0 5px 0 10px;
  18354. width: 30%;
  18355. min-width: 70px;
  18356. border-radius: 4px;
  18357. }
  18358. .blue_box_one > div:nth-child(2) {
  18359. white-space: nowrap;
  18360. text-overflow: ellipsis;
  18361. overflow: hidden;
  18362. word-break: break-all;
  18363. width: 70%;
  18364. text-align: left;
  18365. margin-right: 10px;
  18366. max-width: calc(100% - 85px);
  18367. }
  18368. .blue_box_one > div:nth-child(2):hover {
  18369. overflow: hidden;
  18370. text-overflow: ellipsis;
  18371. white-space: nowrap;
  18372. cursor: pointer;
  18373. }
  18374. .upFile {
  18375. margin: 0 auto;
  18376. width: 120px;
  18377. background: #70afdb;
  18378. color: #fff;
  18379. height: 30px;
  18380. text-align: center;
  18381. line-height: 30px;
  18382. border-radius: 5px;
  18383. font-size: 14px;
  18384. cursor: pointer;
  18385. }
  18386. .courseTitle {
  18387. width: 85%;
  18388. margin: 10px auto;
  18389. display: flex;
  18390. flex-direction: row;
  18391. align-items: center;
  18392. justify-content: space-between;
  18393. text-align: center;
  18394. }
  18395. .courseTitle .ctitle {
  18396. font-size: 20px;
  18397. font-weight: bold;
  18398. color: #0e1e33;
  18399. white-space: nowrap;
  18400. overflow: hidden;
  18401. text-overflow: ellipsis;
  18402. }
  18403. .courseTitle .inviteBox {
  18404. font-size: 14px;
  18405. margin-top: 5px;
  18406. color: #a6cbff;
  18407. }
  18408. .courseTitle >>> .el-tooltip {
  18409. width: 100%;
  18410. white-space: nowrap;
  18411. overflow: hidden;
  18412. text-overflow: ellipsis;
  18413. word-break: break-word;
  18414. }
  18415. .ml {
  18416. margin-left: 20px;
  18417. color: #5b7dba;
  18418. border-left: 3px solid #5b7dba;
  18419. padding-left: 5px;
  18420. font-weight: bold;
  18421. }
  18422. .return {
  18423. width: 2rem;
  18424. height: 2rem;
  18425. cursor: pointer;
  18426. }
  18427. .return > img {
  18428. width: 100%;
  18429. height: 100%;
  18430. }
  18431. .returnBtn {
  18432. width: 86px;
  18433. height: 36px;
  18434. background: #3681fc;
  18435. border-radius: 4px;
  18436. color: #fff;
  18437. text-align: center;
  18438. line-height: 36px;
  18439. margin-right: 20px;
  18440. cursor: pointer;
  18441. font-size: 14px;
  18442. font-weight: 400;
  18443. display: flex;
  18444. flex-direction: row;
  18445. flex-wrap: nowrap;
  18446. align-items: center;
  18447. justify-content: center;
  18448. }
  18449. .commentIcon::before,
  18450. .vedioIcon::before,
  18451. .lockIcon::before,
  18452. .returnIcon::before {
  18453. content: "";
  18454. display: block;
  18455. background-size: 100% 100%;
  18456. background-repeat: no-repeat;
  18457. width: 20px;
  18458. height: 20px;
  18459. margin-right: 5px;
  18460. }
  18461. .commentIcon::before {
  18462. background-image: url("../../assets/icon/newIcon/comment.png");
  18463. }
  18464. .vedioIcon::before {
  18465. background-image: url("../../assets/icon/newIcon/vedio.png");
  18466. }
  18467. .lockIcon::before {
  18468. background-image: url("../../assets/icon/newIcon/lock.png");
  18469. }
  18470. .returnIcon::before {
  18471. background-image: url("../../assets/icon/newIcon/return.png");
  18472. }
  18473. .tool {
  18474. display: flex;
  18475. flex-direction: column;
  18476. flex-wrap: nowrap;
  18477. width: 13%;
  18478. margin: 0 30px;
  18479. align-items: center;
  18480. }
  18481. .whiteBIcon {
  18482. width: 150px;
  18483. cursor: pointer;
  18484. }
  18485. .whiteBIcon > img {
  18486. width: 100%;
  18487. height: 100%;
  18488. }
  18489. .mask {
  18490. background-color: rgba(0, 0, 0, 0);
  18491. position: fixed;
  18492. top: 0;
  18493. left: 0;
  18494. width: 100%;
  18495. height: 100%;
  18496. z-index: 20000;
  18497. display: flex;
  18498. align-items: center;
  18499. justify-content: center;
  18500. }
  18501. .progressBox {
  18502. width: 500px;
  18503. height: 180px;
  18504. background: #fff;
  18505. border-radius: 10px;
  18506. box-shadow: 0 0 6px 1px #bfbfbf;
  18507. display: flex;
  18508. align-items: center;
  18509. justify-content: center;
  18510. flex-direction: column;
  18511. position: relative;
  18512. color: #6c6c6c;
  18513. }
  18514. .progressBox >>> .el-progress-bar__outer {
  18515. background-color: #d1dfff !important;
  18516. }
  18517. .progressBox .lbox {
  18518. height: 50px;
  18519. font-size: 19px;
  18520. display: flex;
  18521. align-items: center;
  18522. color: #747474;
  18523. }
  18524. .progressBox .lbox img {
  18525. width: 40px;
  18526. margin-right: 20px;
  18527. }
  18528. .closeCss {
  18529. position: absolute;
  18530. top: 8px;
  18531. right: 8px;
  18532. cursor: pointer;
  18533. width: 20px;
  18534. height: 20px;
  18535. }
  18536. .closeCss > img {
  18537. width: 100%;
  18538. height: 100%;
  18539. }
  18540. .uploadVedio {
  18541. display: flex;
  18542. flex-direction: column;
  18543. flex-wrap: nowrap;
  18544. justify-content: center;
  18545. align-items: center;
  18546. margin: 0 15px 10px 0;
  18547. }
  18548. .uploadVedio > img {
  18549. width: 30px;
  18550. height: 30px;
  18551. }
  18552. .uploadVedio > span {
  18553. white-space: nowrap;
  18554. overflow: hidden;
  18555. text-overflow: ellipsis;
  18556. width: 75px;
  18557. margin-top: 7px;
  18558. }
  18559. .picName {
  18560. white-space: nowrap;
  18561. overflow: hidden;
  18562. text-overflow: ellipsis;
  18563. width: 75px;
  18564. margin-top: 7px;
  18565. }
  18566. .new_top {
  18567. display: flex;
  18568. background: #fff;
  18569. flex-direction: row;
  18570. justify-content: flex-start;
  18571. align-items: center;
  18572. height: 60px;
  18573. position: fixed;
  18574. top: 20px;
  18575. left: 22%;
  18576. width: 77%;
  18577. z-index: 999;
  18578. border-radius: 12px 12px 0 0;
  18579. border-bottom: 1px solid #cad1dc;
  18580. padding: 10px 0;
  18581. }
  18582. .new_topFixed {
  18583. width: 100%;
  18584. height: 40px;
  18585. position: fixed;
  18586. top: 0px;
  18587. display: block;
  18588. background: #f2f2f2;
  18589. z-index: 998;
  18590. }
  18591. .before {
  18592. position: absolute;
  18593. background: #c3dad4;
  18594. width: 6px;
  18595. height: 100%;
  18596. }
  18597. .courseIndex {
  18598. display: flex;
  18599. flex-direction: row;
  18600. align-items: center;
  18601. width: calc(100% - 745px);
  18602. }
  18603. .courseIndex > div:nth-child(1) {
  18604. margin: 0 0 0 10px;
  18605. font-size: 20px;
  18606. min-width: 100px;
  18607. font-weight: bold;
  18608. border-left: 4px solid #3363b9;
  18609. height: 32px;
  18610. text-align: center;
  18611. line-height: 35px;
  18612. }
  18613. .courseIndex > div:nth-child(2) {
  18614. font-size: 20px;
  18615. /* width: 300px; */
  18616. max-width: calc(100% - 105px);
  18617. white-space: nowrap;
  18618. overflow: hidden;
  18619. text-overflow: ellipsis;
  18620. }
  18621. .courseIndex > div:nth-child(3) {
  18622. border-bottom: 1px solid #d7d7d7;
  18623. padding-bottom: 5px;
  18624. background: #49a0f0;
  18625. width: 55px;
  18626. min-width: 55px;
  18627. border-radius: 5px;
  18628. color: #fff;
  18629. text-align: center;
  18630. height: 20px;
  18631. line-height: 26px;
  18632. font-size: 14px;
  18633. margin: 0 0 0 10px;
  18634. }
  18635. .course_text {
  18636. padding: 20px 0 0 15px;
  18637. text-indent: 30px;
  18638. width: 80%;
  18639. min-height: 20px;
  18640. }
  18641. .vedioList {
  18642. background: #f2f2f2;
  18643. border: 1px solid #ececec;
  18644. /* width: 38.8%; */
  18645. width: 300px;
  18646. height: 445px;
  18647. border-radius: 10px;
  18648. overflow: hidden;
  18649. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  18650. }
  18651. .vedioNav {
  18652. margin: 10px 0 0 15px;
  18653. border-bottom: 1px solid #d7d7d7;
  18654. padding-bottom: 5px;
  18655. background: #96d1ff;
  18656. width: 55px;
  18657. min-width: 55px;
  18658. border-radius: 5px;
  18659. color: #fff;
  18660. text-align: center;
  18661. height: 20px;
  18662. line-height: 26px;
  18663. font-size: 14px;
  18664. }
  18665. .queTop {
  18666. display: flex;
  18667. padding: 20px 0 20px 30px;
  18668. width: 100%;
  18669. flex-direction: row;
  18670. justify-content: flex-start;
  18671. align-items: center;
  18672. box-sizing: border-box;
  18673. }
  18674. .queTopTitle {
  18675. display: flex;
  18676. flex-direction: row;
  18677. flex-wrap: nowrap;
  18678. align-items: center;
  18679. font-weight: bold;
  18680. font-size: 20px;
  18681. color: rgb(14, 30, 51);
  18682. }
  18683. .queTopTitle::before {
  18684. content: "";
  18685. width: 2px;
  18686. height: 22px;
  18687. background: #3681fc;
  18688. border-radius: 3px;
  18689. display: block;
  18690. margin: 2px 6px 0 0;
  18691. }
  18692. .queTopRight {
  18693. display: flex;
  18694. flex-direction: row;
  18695. flex-wrap: nowrap;
  18696. align-items: center;
  18697. }
  18698. .queTopClose {
  18699. margin-right: 20px;
  18700. cursor: pointer;
  18701. position: relative;
  18702. display: flex;
  18703. }
  18704. .closeImg,
  18705. .openImg {
  18706. width: 25px;
  18707. height: 25px;
  18708. position: absolute;
  18709. left: -20px;
  18710. top: -1px;
  18711. }
  18712. .closeImg > img,
  18713. .openImg > img {
  18714. width: 100%;
  18715. height: 100%;
  18716. }
  18717. .question {
  18718. width: 40px;
  18719. margin-right: 10px;
  18720. margin-top: 7px;
  18721. }
  18722. .queTitle {
  18723. margin-left: 5px;
  18724. font-size: 25px;
  18725. display: flex;
  18726. align-items: center;
  18727. }
  18728. .addEditor {
  18729. width: 100px;
  18730. height: 30px;
  18731. background: #42cda6;
  18732. color: #fff;
  18733. border-radius: 5px;
  18734. text-align: center;
  18735. line-height: 30px;
  18736. box-shadow: 1px 3px 6px 1px #bfbfbf;
  18737. cursor: pointer;
  18738. }
  18739. .vedioName {
  18740. /* text-overflow: ellipsis;
  18741. top: 8px;
  18742. font-size: 14px;
  18743. overflow: hidden;
  18744. width: 100%;
  18745. word-break: break-all;
  18746. white-space: nowrap; */
  18747. cursor: pointer;
  18748. margin: 0px 0px 10px 5px;
  18749. white-space: nowrap;
  18750. overflow: hidden;
  18751. text-overflow: ellipsis;
  18752. width: 100%;
  18753. }
  18754. .vedioTime {
  18755. width: 35px;
  18756. position: absolute;
  18757. color: #fff;
  18758. bottom: 0px;
  18759. right: 0px;
  18760. text-align: center;
  18761. background: #46411f;
  18762. height: 20px;
  18763. font-size: 14px;
  18764. line-height: 20px;
  18765. }
  18766. .homework {
  18767. width: 200px;
  18768. display: flex;
  18769. flex-direction: column;
  18770. flex-wrap: nowrap;
  18771. align-items: center;
  18772. cursor: pointer;
  18773. }
  18774. .homebox {
  18775. display: flex;
  18776. flex-wrap: wrap;
  18777. flex-direction: row;
  18778. justify-content: flex-start;
  18779. align-items: center;
  18780. padding: 15px 0;
  18781. }
  18782. .chooseWho {
  18783. display: flex;
  18784. width: 100%;
  18785. flex-direction: row;
  18786. flex-wrap: nowrap;
  18787. justify-content: flex-start;
  18788. padding-bottom: 10px;
  18789. }
  18790. .chooseWho > div {
  18791. cursor: pointer;
  18792. padding-bottom: 10px;
  18793. margin: 0 30px 0 0;
  18794. font-weight: 400;
  18795. color: #0e1e33;
  18796. }
  18797. .addPoint > div > img {
  18798. cursor: pointer;
  18799. margin: 0 10px;
  18800. width: 85px;
  18801. border-radius: 15px;
  18802. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  18803. }
  18804. .addPoint > div {
  18805. display: flex;
  18806. flex-direction: column;
  18807. flex-wrap: nowrap;
  18808. align-items: center;
  18809. }
  18810. .isBorder > div {
  18811. margin: 0 0 10px 0;
  18812. align-items: flex-start !important;
  18813. }
  18814. .noiframeBox {
  18815. display: flex;
  18816. flex-wrap: wrap;
  18817. }
  18818. .iframeBox iframe {
  18819. width: 100%;
  18820. height: 800px;
  18821. border: none;
  18822. margin-bottom: 20px;
  18823. border: 1px solid #ccc;
  18824. }
  18825. .upload_toolBtn {
  18826. background: #6b92c9;
  18827. color: #fff;
  18828. width: 110px;
  18829. text-align: center;
  18830. height: 35px;
  18831. line-height: 35px;
  18832. font-size: 14px;
  18833. border-radius: 5px;
  18834. cursor: pointer;
  18835. position: absolute;
  18836. right: 10px;
  18837. bottom: 0;
  18838. }
  18839. .binfo_input,
  18840. .pj {
  18841. font: inherit;
  18842. color: currentColor;
  18843. width: 100%;
  18844. margin: 0;
  18845. padding: 15px 14px;
  18846. display: block;
  18847. min-width: 0;
  18848. outline: none;
  18849. box-sizing: content-box;
  18850. background: none;
  18851. -webkit-tap-highlight-color: transparent;
  18852. border: 1px solid rgba(0, 0, 0, 0.23);
  18853. border-radius: 4px;
  18854. box-sizing: border-box;
  18855. resize: none;
  18856. }
  18857. .binfo_input:focus-visible {
  18858. border: 1px solid rgba(61, 103, 188);
  18859. }
  18860. .dialog_diy >>> .el-dialog__header,
  18861. .dialog_diy1 >>> .el-dialog__header {
  18862. background: #454545 !important;
  18863. padding: 15px 20px;
  18864. }
  18865. .dialog_diy >>> .el-dialog__title,
  18866. .dialog_diy1 >>> .el-dialog__title {
  18867. color: #fff;
  18868. }
  18869. .dialog_diy >>> .el-dialog__headerbtn,
  18870. .dialog_diy1 >>> .el-dialog__headerbtn {
  18871. top: 19px;
  18872. }
  18873. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  18874. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  18875. color: #fff;
  18876. }
  18877. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  18878. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  18879. color: #fff;
  18880. }
  18881. .dialog_diy1 >>> .el-dialog__body {
  18882. padding: 0;
  18883. }
  18884. .dialog_diy >>> .el-dialog__body,
  18885. .dialog_diy >>> .el-dialog__footer,
  18886. .dialog_diy1 >>> .el-dialog__footer {
  18887. background: #fafafa;
  18888. }
  18889. .a_addBox {
  18890. padding: 0 0 0 15px;
  18891. }
  18892. .a_add_box {
  18893. padding: 10px;
  18894. background: #fff;
  18895. margin-bottom: 10px;
  18896. border-radius: 5px;
  18897. box-shadow: 0 0 5px 0 #d5d5d5;
  18898. }
  18899. .askIndex {
  18900. background: #3681fc;
  18901. border-radius: 50%;
  18902. color: #fff;
  18903. width: 25px;
  18904. height: 25px;
  18905. min-width: 25px;
  18906. min-height: 25px;
  18907. text-align: center;
  18908. line-height: 25px;
  18909. margin-right: 5px;
  18910. }
  18911. .a_add_head {
  18912. display: flex;
  18913. align-items: flex-start;
  18914. /* justify-content: space-between; */
  18915. flex-direction: column;
  18916. /* flex-direction: row; */
  18917. margin: 10px 0 20px 0;
  18918. font-size: 18px;
  18919. width: 100%;
  18920. }
  18921. .a_add_head .a_add_head_input {
  18922. width: 300px;
  18923. }
  18924. .a_add_head .a_add_head_div {
  18925. display: flex;
  18926. align-items: center;
  18927. justify-content: space-between;
  18928. }
  18929. .a_add_body {
  18930. display: flex;
  18931. align-items: center;
  18932. }
  18933. .a_add_input {
  18934. display: flex;
  18935. align-items: center;
  18936. flex-wrap: wrap;
  18937. width: 100%;
  18938. }
  18939. .a_add_input >>> .el-radio-group,
  18940. .a_add_input >>> .el-checkbox-group {
  18941. width: 100%;
  18942. }
  18943. .a_add_input >>> .el-radio,
  18944. .a_add_input >>> .el-checkbox {
  18945. display: flex;
  18946. flex-direction: row;
  18947. flex-wrap: nowrap;
  18948. align-items: center;
  18949. padding: 15px 0;
  18950. }
  18951. .a_add_input >>> .el-radio:not(:last-child),
  18952. .a_add_input >>> .el-checkbox:not(:last-child) {
  18953. width: 100%;
  18954. border-bottom: 1px solid #efefef;
  18955. }
  18956. .redioStyle >>> .el-radio__label {
  18957. font-size: 18px;
  18958. }
  18959. .redioStyle >>> .el-radio__label > span,
  18960. .redioStyle >>> .el-checkbox__label > span {
  18961. word-break: break-all;
  18962. white-space: normal;
  18963. }
  18964. .redioStyle >>> .el-checkbox__label {
  18965. font-size: 18px;
  18966. }
  18967. .toolHeng2 {
  18968. width: 100%;
  18969. box-sizing: border-box;
  18970. }
  18971. .toolHeng {
  18972. display: flex;
  18973. flex-direction: row;
  18974. flex-wrap: wrap;
  18975. justify-content: flex-start;
  18976. align-items: center;
  18977. width: 100%;
  18978. }
  18979. .toolHeng > div {
  18980. padding-left: 20px;
  18981. }
  18982. .isWidth {
  18983. width: 20%;
  18984. }
  18985. .textTitle {
  18986. display: flex;
  18987. flex-direction: row;
  18988. flex-wrap: nowrap;
  18989. align-items: center;
  18990. width: 95%;
  18991. }
  18992. .textTitle >>> .el-form-item__label {
  18993. font-size: 22px;
  18994. color: #918f8f;
  18995. width: 100px;
  18996. }
  18997. .textTitle >>> .el-form-item__content {
  18998. width: calc(100% - 100px);
  18999. }
  19000. .textCss >>> .el-dialog {
  19001. width: 800px !important;
  19002. height: 400px;
  19003. background: #fafafa;
  19004. }
  19005. .textCss >>> .el-dialog__body {
  19006. margin: 55px 8% 0 8%;
  19007. padding: 0 !important;
  19008. }
  19009. .textCss >>> .el-dialog__footer {
  19010. padding-top: 38px;
  19011. }
  19012. .toolsCss >>> .el-dialog__body {
  19013. padding: 20px;
  19014. }
  19015. .lineCss >>> .el-dialog__body {
  19016. display: flex;
  19017. flex-direction: row;
  19018. align-items: center;
  19019. justify-content: center;
  19020. }
  19021. .newNav {
  19022. display: flex;
  19023. flex-direction: row;
  19024. align-items: baseline;
  19025. justify-content: flex-start;
  19026. }
  19027. .navText {
  19028. cursor: pointer;
  19029. white-space: nowrap;
  19030. overflow: hidden;
  19031. text-overflow: ellipsis;
  19032. width: 220px;
  19033. padding: 0 10px;
  19034. font-weight: 400;
  19035. color: #0e1e33;
  19036. }
  19037. .noVedio {
  19038. display: flex;
  19039. flex-direction: row;
  19040. justify-content: center;
  19041. align-content: center;
  19042. }
  19043. .noNavText {
  19044. cursor: pointer;
  19045. margin: 0px 0px 10px 5px;
  19046. width: 112px;
  19047. }
  19048. .listNoVedio {
  19049. margin: 0 0 0 30px;
  19050. width: 97%;
  19051. }
  19052. .video-player >>> .video-js {
  19053. height: 100%;
  19054. }
  19055. .hangVedioList {
  19056. width: 90% !important;
  19057. height: 150px !important;
  19058. margin: 20px 0 0 30px;
  19059. }
  19060. .hangVedio {
  19061. width: 100%;
  19062. height: 170px !important;
  19063. align-items: flex-start !important;
  19064. }
  19065. .hangHand {
  19066. height: 150px !important;
  19067. }
  19068. .twoChild {
  19069. width: 95%;
  19070. margin: 10px;
  19071. border-radius: 5px;
  19072. background: #f2f2f2;
  19073. display: flex;
  19074. flex-direction: column;
  19075. flex-wrap: nowrap;
  19076. justify-content: flex-start;
  19077. align-items: flex-start;
  19078. transition: all 0.5s;
  19079. overflow: hidden;
  19080. height: 0;
  19081. background: #e7f3ff;
  19082. }
  19083. .twoChild > div:nth-child(1) {
  19084. margin-top: 5px;
  19085. }
  19086. .navChild {
  19087. width: 100%;
  19088. cursor: pointer;
  19089. margin-bottom: 10px;
  19090. position: relative;
  19091. }
  19092. .navChild img {
  19093. position: absolute;
  19094. right: 11px;
  19095. width: 15px;
  19096. top: 50%;
  19097. transform: translateY(-50%);
  19098. }
  19099. .navActive {
  19100. height: auto !important;
  19101. overflow: auto !important;
  19102. padding-bottom: 10px;
  19103. }
  19104. .navTask {
  19105. display: flex;
  19106. flex-direction: row;
  19107. flex-wrap: nowrap;
  19108. align-items: center;
  19109. align-content: flex-start;
  19110. height: 40px;
  19111. justify-content: flex-start;
  19112. padding: 0 10px;
  19113. width: 100%;
  19114. box-sizing: border-box;
  19115. }
  19116. .navTaskname {
  19117. white-space: nowrap;
  19118. text-overflow: ellipsis;
  19119. overflow: hidden;
  19120. word-break: break-all;
  19121. padding-left: 5px;
  19122. }
  19123. .openTaskActive {
  19124. color: #4386e6;
  19125. }
  19126. .iframeName {
  19127. margin: 5px 0;
  19128. border-left: 4px solid #41c4a4;
  19129. padding-left: 4px;
  19130. }
  19131. .toolTitle {
  19132. margin: 0px 0px 20px;
  19133. font-size: 20px;
  19134. font-weight: 500;
  19135. border-left: 4px solid #41c4a4;
  19136. padding-left: 4px;
  19137. }
  19138. .cru_selectBox {
  19139. overflow: auto;
  19140. width: 95%;
  19141. margin: 17px auto 0;
  19142. height: calc(100% - 40px - 21px - 20px - 17px);
  19143. }
  19144. .cru_selectBox::-webkit-scrollbar,
  19145. .study_top::-webkit-scrollbar,
  19146. .textContent::-webkit-scrollbar {
  19147. /*滚动条整体样式*/
  19148. width: 6px;
  19149. /*高宽分别对应横竖滚动条的尺寸*/
  19150. height: 6px;
  19151. }
  19152. /*定义滚动条轨道 内阴影+圆角*/
  19153. .cru_selectBox::-webkit-scrollbar-track,
  19154. .study_top::-webkit-scrollbar-track,
  19155. .textContent::-webkit-scrollbar {
  19156. border-radius: 10px;
  19157. background-color: #b8bdc9;
  19158. }
  19159. /*定义滑块 内阴影+圆角*/
  19160. .cru_selectBox::-webkit-scrollbar-thumb,
  19161. .study_top::-webkit-scrollbar-thumb,
  19162. .textContent::-webkit-scrollbar-thumb {
  19163. border-radius: 10px;
  19164. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  19165. background-color: #2c5ab3;
  19166. }
  19167. .vedioBox {
  19168. border-radius: 0 0 20px 20px;
  19169. background: #fff;
  19170. overflow: auto;
  19171. }
  19172. .taskBox {
  19173. width: 98%;
  19174. /* background: #F0F4FA; */
  19175. margin: 10px auto;
  19176. padding: 0 10px;
  19177. border-radius: 4px;
  19178. box-sizing: border-box;
  19179. }
  19180. .vedioTaskBox {
  19181. width: 100%;
  19182. display: flex;
  19183. flex-direction: row;
  19184. flex-wrap: nowrap;
  19185. align-items: flex-start;
  19186. position: relative;
  19187. }
  19188. .toolBox {
  19189. padding: 0 60px 0;
  19190. display: flex;
  19191. position: relative;
  19192. }
  19193. .btnAll {
  19194. position: absolute;
  19195. right: 0;
  19196. display: flex;
  19197. flex-direction: row;
  19198. flex-wrap: nowrap;
  19199. align-items: center;
  19200. }
  19201. .btnAllNT {
  19202. position: fixed;
  19203. bottom: 100px;
  19204. right: 40px;
  19205. z-index: 999;
  19206. display: flex;
  19207. flex-direction: row;
  19208. }
  19209. .btnAllNT > img {
  19210. cursor: pointer;
  19211. width: 80px;
  19212. }
  19213. /* .vedioTimeBox {
  19214. display: flex;
  19215. flex-direction: row;
  19216. align-items: center;
  19217. flex-wrap: nowrap;
  19218. position: relative;
  19219. } */
  19220. .navBox {
  19221. background: #fff;
  19222. height: calc(100% - 40px);
  19223. overflow-y: auto;
  19224. overflow-x: hidden;
  19225. }
  19226. .tool_work_box {
  19227. width: 100%;
  19228. padding: 0 37px 0;
  19229. box-sizing: border-box;
  19230. }
  19231. .worksBox {
  19232. padding: 5px 0;
  19233. border-bottom: 1px solid #eeeeee;
  19234. }
  19235. .worksBTitle {
  19236. font-size: 20px;
  19237. padding-bottom: 15px;
  19238. border-bottom: 1px solid #eeeeee;
  19239. display: flex;
  19240. align-items: center;
  19241. }
  19242. .greenBox {
  19243. width: 5px;
  19244. height: 30px;
  19245. background: #63b6fa;
  19246. margin-right: 5px;
  19247. }
  19248. .worksDetailBox {
  19249. display: flex;
  19250. width: 100%;
  19251. flex-direction: row;
  19252. flex-wrap: wrap;
  19253. align-items: flex-end;
  19254. justify-content: flex-start;
  19255. padding: 15px 0;
  19256. }
  19257. .works {
  19258. display: flex;
  19259. flex-direction: column;
  19260. flex-wrap: nowrap;
  19261. align-items: flex-start;
  19262. justify-content: flex-start;
  19263. align-content: center;
  19264. max-width: 240px;
  19265. width: calc(100% / 3 - 10px);
  19266. height: auto;
  19267. margin-right: 10px;
  19268. margin-bottom: 10px;
  19269. overflow: hidden;
  19270. height: 140px;
  19271. box-shadow: 0 0 6px 1px #dfdada;
  19272. border-radius: 15px;
  19273. }
  19274. .workImg {
  19275. width: 100%;
  19276. /* height: calc(100% - 40px); */
  19277. height: 105px;
  19278. position: relative;
  19279. }
  19280. .workImg > img {
  19281. width: 100%;
  19282. height: 100%;
  19283. object-fit: contain;
  19284. cursor: pointer;
  19285. }
  19286. .worksName {
  19287. height: 40px;
  19288. line-height: 40px;
  19289. display: flex;
  19290. width: 100%;
  19291. flex-direction: row;
  19292. flex-wrap: nowrap;
  19293. justify-content: space-between;
  19294. align-items: center;
  19295. margin: 0 0 0 10px;
  19296. }
  19297. .worksName > div:nth-child(1) {
  19298. width: 110px;
  19299. white-space: nowrap;
  19300. overflow: hidden;
  19301. text-overflow: ellipsis;
  19302. }
  19303. .worksName > div:nth-child(2) {
  19304. color: #b7b4b5;
  19305. }
  19306. .noWorksS {
  19307. padding: 15px 0 0;
  19308. display: flex;
  19309. flex-direction: row;
  19310. flex-wrap: wrap;
  19311. align-items: center;
  19312. justify-content: flex-start;
  19313. }
  19314. .noWorksS > div {
  19315. cursor: pointer;
  19316. }
  19317. .noWorksName,
  19318. .isWorksName,
  19319. .isWorksName2 {
  19320. background: #e1e9fb;
  19321. color: #3383fa;
  19322. width: 90px;
  19323. height: 25px;
  19324. text-align: center;
  19325. line-height: 25px;
  19326. border-radius: 4px;
  19327. margin: 10px 15px 10px 0;
  19328. white-space: nowrap;
  19329. overflow: hidden;
  19330. padding: 5px;
  19331. text-overflow: ellipsis;
  19332. cursor: pointer;
  19333. border: 1px solid #3681fc;
  19334. }
  19335. .isWorksName2 {
  19336. width: 100px;
  19337. height: 40px;
  19338. line-height: 40px;
  19339. position: relative;
  19340. }
  19341. .noWorksName.isWork {
  19342. background: #e7ebf1 !important;
  19343. border: 1px solid #cad1dc !important;
  19344. color: #acb4bf !important;
  19345. }
  19346. .isWorksName {
  19347. cursor: pointer;
  19348. background: #46a1eb !important;
  19349. width: 100px;
  19350. height: 40px;
  19351. line-height: 40px;
  19352. position: relative;
  19353. }
  19354. .isSelectName,
  19355. .noWorksName:hover {
  19356. background: #3383fa;
  19357. color: #fff;
  19358. border: 1px solid #3383fa;
  19359. }
  19360. .title {
  19361. background: #1e5cc9;
  19362. /* width: 98%; */
  19363. height: 45px;
  19364. color: #fff;
  19365. line-height: 45px;
  19366. padding-left: 20px;
  19367. box-sizing: border-box;
  19368. }
  19369. .textBox {
  19370. font-size: 20px;
  19371. width: 90%;
  19372. display: flex;
  19373. flex-direction: column;
  19374. align-items: center;
  19375. margin: 20px auto 0;
  19376. max-height: calc(100% - 75px);
  19377. overflow: auto;
  19378. }
  19379. .textContent {
  19380. font-size: 18px;
  19381. width: 95%;
  19382. max-width: 95%;
  19383. }
  19384. .answerBg {
  19385. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  19386. background-size: 100% 100%;
  19387. width: 100%;
  19388. height: 100%;
  19389. color: #fff;
  19390. text-align: center;
  19391. display: flex;
  19392. flex-direction: column;
  19393. flex-wrap: nowrap;
  19394. align-items: center;
  19395. position: relative;
  19396. justify-content: center;
  19397. }
  19398. .answerBg > div:nth-child(1) {
  19399. /* font-size: 22px;
  19400. padding: 25px 0 10px; */
  19401. }
  19402. .answerContent {
  19403. width: 215px;
  19404. max-height: 60px;
  19405. word-break: break-all;
  19406. text-align: center;
  19407. /* white-space: nowrap; */
  19408. overflow: hidden;
  19409. text-overflow: ellipsis;
  19410. /* padding: 23px 0 0; */
  19411. -webkit-line-clamp: 3;
  19412. -webkit-box-orient: vertical;
  19413. display: -webkit-box;
  19414. font-size: 15px;
  19415. cursor: pointer;
  19416. }
  19417. .elist_input_box {
  19418. display: flex;
  19419. align-items: flex-start;
  19420. flex-wrap: nowrap;
  19421. padding: 10px 0 15px 30px;
  19422. flex-direction: column;
  19423. }
  19424. .elist_input {
  19425. /* width: 40%; */
  19426. width: 100%;
  19427. margin: 20px;
  19428. }
  19429. .elist_input .elist_input_box input {
  19430. font: inherit;
  19431. color: currentColor;
  19432. width: 200px;
  19433. padding: 8px 14px;
  19434. display: block;
  19435. min-width: 0;
  19436. outline: none;
  19437. border: 1px solid rgba(0, 0, 0, 0.23);
  19438. border-radius: 4px;
  19439. box-sizing: border-box;
  19440. background: #fff;
  19441. margin: 0 20px 0 0;
  19442. }
  19443. .elist_input .elist_input_box span {
  19444. height: 36px;
  19445. line-height: 36px;
  19446. color: rgb(82, 82, 82);
  19447. }
  19448. .elist_input .elist_input_box .remove {
  19449. height: 20px;
  19450. width: 20px;
  19451. background-size: 100% 100%;
  19452. background-position: unset;
  19453. margin-left: 5px;
  19454. }
  19455. .elist_input_box >>> .el-rate {
  19456. display: flex;
  19457. height: 36px;
  19458. align-items: center;
  19459. }
  19460. .elist_input_box .elist_inptu_text {
  19461. min-height: 50px;
  19462. /* width: 500px;
  19463. max-height: 150px; */
  19464. width: 100%;
  19465. line-height: 50px;
  19466. color: rgb(82, 82, 82);
  19467. overflow: auto;
  19468. text-indent: 5px;
  19469. background: #f7f6f9;
  19470. border-radius: 10px;
  19471. }
  19472. .elist_input_box .elist_inptu_text input {
  19473. width: 500px;
  19474. }
  19475. .elist_input_box >>> .el-rate__icon {
  19476. font-size: 24px;
  19477. }
  19478. .isClick {
  19479. background: #4d9def;
  19480. }
  19481. /*定义滚动条轨道 内阴影+圆角*/
  19482. .bzTypeBox::-webkit-scrollbar {
  19483. /*滚动条整体样式*/
  19484. width: 6px;
  19485. /*高宽分别对应横竖滚动条的尺寸*/
  19486. height: 6px;
  19487. }
  19488. /*定义滚动条轨道 内阴影+圆角*/
  19489. .bzTypeBox::-webkit-scrollbar-track {
  19490. border-radius: 10px;
  19491. background-color: rgba(0, 0, 0, 0.1);
  19492. }
  19493. /*定义滑块 内阴影+圆角*/
  19494. .bzTypeBox::-webkit-scrollbar-thumb {
  19495. border-radius: 10px;
  19496. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  19497. background-color: rgba(0, 0, 0, 0.1);
  19498. }
  19499. .choiceBox {
  19500. display: flex;
  19501. margin: 20px 0;
  19502. width: 100%;
  19503. }
  19504. .bzTypeBox {
  19505. display: flex;
  19506. width: 100%;
  19507. overflow: auto;
  19508. white-space: nowrap;
  19509. }
  19510. .bzChild {
  19511. cursor: pointer;
  19512. box-sizing: border-box;
  19513. padding-bottom: 10px;
  19514. font-weight: bold;
  19515. min-width: fit-content;
  19516. }
  19517. .bzChild.active {
  19518. color: #3e88f4;
  19519. border-bottom: 2px solid #2f80f3;
  19520. }
  19521. .bzChild + .bzChild {
  19522. margin-left: 25px;
  19523. }
  19524. .bzBox {
  19525. display: flex;
  19526. flex-direction: row;
  19527. align-items: center;
  19528. }
  19529. .bzBox .yCss {
  19530. width: 14px;
  19531. height: 14px;
  19532. background: #3681fc;
  19533. margin: 0 16px 0 7px;
  19534. border-radius: 50%;
  19535. }
  19536. .bzBox > div:nth-child(2) {
  19537. font-size: 18px;
  19538. font-weight: bold;
  19539. color: #0e1e33;
  19540. }
  19541. .navTitile {
  19542. padding: 0 0px 0 15px;
  19543. font-size: 16px;
  19544. font-weight: bold;
  19545. color: #0e1e33;
  19546. height: 40px;
  19547. line-height: 40px;
  19548. }
  19549. .isTypeOne {
  19550. width: 240px;
  19551. height: 170px;
  19552. /* border: 1px solid #f8f8f8; */
  19553. border-radius: 10px;
  19554. box-shadow: 0 0 6px 1px #dfdada;
  19555. }
  19556. .e_add_top {
  19557. display: flex;
  19558. justify-content: space-between;
  19559. padding: 20px 20px 0 20px;
  19560. border-radius: 3px;
  19561. background: #fff;
  19562. }
  19563. .e_add_title2 {
  19564. display: flex;
  19565. align-items: center;
  19566. }
  19567. .e_add_title2 span {
  19568. width: 40px;
  19569. }
  19570. .e_add_title {
  19571. display: flex;
  19572. align-items: center;
  19573. color: #b8b8b8;
  19574. font-size: 18px;
  19575. position: relative;
  19576. height: 40px;
  19577. }
  19578. .e_add_title span {
  19579. margin-right: 10px;
  19580. }
  19581. .e_add_title .el_input {
  19582. width: 300px;
  19583. }
  19584. .e_add_title >>> .el-input__inner {
  19585. width: 400px;
  19586. }
  19587. .e_add_btn {
  19588. }
  19589. .e_add_content {
  19590. display: flex;
  19591. width: 100%;
  19592. max-width: 650px;
  19593. height: 550px;
  19594. }
  19595. .e_add_list {
  19596. background: #fff;
  19597. height: 500px;
  19598. width: 210px;
  19599. position: relative;
  19600. margin: 15px 5px 0 0;
  19601. flex-shrink: 0;
  19602. display: flex;
  19603. flex-direction: column;
  19604. }
  19605. .e_add_list_title {
  19606. font-size: 20px;
  19607. width: 100%;
  19608. box-sizing: border-box;
  19609. padding: 15px 40px;
  19610. text-align: center;
  19611. border-bottom: 1px solid #eaeaea;
  19612. position: relative;
  19613. display: flex;
  19614. align-items: center;
  19615. justify-content: center;
  19616. height: 57px;
  19617. background: #f6f6f6;
  19618. }
  19619. .e_add_list_title span {
  19620. overflow: hidden;
  19621. white-space: nowrap;
  19622. text-overflow: ellipsis;
  19623. }
  19624. .e_add_list_title img {
  19625. position: absolute;
  19626. right: 15px;
  19627. width: 25px;
  19628. cursor: pointer;
  19629. top: 50%;
  19630. transform: translateY(-50%);
  19631. }
  19632. .e_add_list_body {
  19633. height: calc(100% - 187px);
  19634. overflow: auto;
  19635. }
  19636. .e_add_list_child {
  19637. width: 100%;
  19638. display: flex;
  19639. align-items: center;
  19640. justify-content: center;
  19641. position: relative;
  19642. box-sizing: border-box;
  19643. padding: 15px 40px;
  19644. text-align: center;
  19645. }
  19646. .e_add_list_child span {
  19647. overflow: hidden;
  19648. white-space: nowrap;
  19649. text-overflow: ellipsis;
  19650. cursor: pointer;
  19651. }
  19652. .e_add_list_child img {
  19653. position: absolute;
  19654. right: 10px;
  19655. width: 21px;
  19656. cursor: pointer;
  19657. top: 50%;
  19658. transform: translateY(-50%);
  19659. }
  19660. .e_add_list_child + .e_add_list_child {
  19661. border-top: 1px solid #eaeaea;
  19662. }
  19663. .e_add_list_child .active {
  19664. color: #409eff;
  19665. }
  19666. .e_add_list_btn {
  19667. position: absolute;
  19668. bottom: 0;
  19669. height: 50px;
  19670. background: rgb(120, 120, 254);
  19671. width: 100%;
  19672. color: #fff;
  19673. font-size: 16px;
  19674. text-align: center;
  19675. line-height: 50px;
  19676. cursor: pointer;
  19677. }
  19678. .e_add_list_detail {
  19679. position: absolute;
  19680. bottom: 0;
  19681. height: 130px;
  19682. background: rgb(120, 120, 254);
  19683. width: 100%;
  19684. color: #fff;
  19685. font-size: 16px;
  19686. display: flex;
  19687. align-items: center;
  19688. justify-content: center;
  19689. }
  19690. .e_add_list_detail textarea {
  19691. height: 90%;
  19692. width: 95%;
  19693. border: none;
  19694. resize: none;
  19695. outline: none;
  19696. padding: 5px;
  19697. box-sizing: border-box;
  19698. }
  19699. .e_add_list_pbox {
  19700. width: 100%;
  19701. max-width: 650px;
  19702. /* height: 600px; */
  19703. }
  19704. .e_add_list_pbox_title {
  19705. height: 50px;
  19706. background: #fff;
  19707. display: flex;
  19708. align-items: center;
  19709. width: 100%;
  19710. box-sizing: border-box;
  19711. padding: 0 20px;
  19712. }
  19713. .type_title {
  19714. font-size: 18px;
  19715. font-weight: 700;
  19716. }
  19717. .type_content {
  19718. font-size: 16px;
  19719. margin-left: 30px;
  19720. }
  19721. .type_content span + span {
  19722. margin-left: 20px;
  19723. }
  19724. .type_content span {
  19725. cursor: pointer;
  19726. padding-bottom: 5px;
  19727. box-sizing: border-box;
  19728. }
  19729. .type_content .active {
  19730. color: #409eff;
  19731. border-bottom: 2px solid #409eff;
  19732. }
  19733. .e_add_list_pbox_content {
  19734. height: calc(100% - 50px);
  19735. display: flex;
  19736. align-items: center;
  19737. width: 100%;
  19738. background: #fff;
  19739. }
  19740. .evaCss {
  19741. display: flex;
  19742. flex-direction: row;
  19743. flex-wrap: nowrap;
  19744. align-items: flex-start;
  19745. }
  19746. .cru_line {
  19747. position: absolute;
  19748. bottom: 0px;
  19749. transition: all 0.5s;
  19750. left: 0px;
  19751. width: 125px;
  19752. margin-left: -25px;
  19753. }
  19754. .isNoMessage {
  19755. width: 20%;
  19756. margin: 25% auto 0;
  19757. }
  19758. .isNoMessage > img {
  19759. width: 100%;
  19760. height: 100%;
  19761. }
  19762. .fullStyle >>> .el-dialog__body {
  19763. height: 100% !important;
  19764. }
  19765. .fullStyle >>> .el-dialog,
  19766. .fullStyle {
  19767. width: 100% !important;
  19768. max-width: 100% !important;
  19769. height: 100% !important;
  19770. margin: 0 !important;
  19771. }
  19772. .full_diy >>> .el-dialog {
  19773. margin: 0 !important;
  19774. height: 100%;
  19775. padding: 4px;
  19776. }
  19777. .full_diy >>> .el-dialog__body {
  19778. height: calc(100% - 100px);
  19779. }
  19780. .full_diy2 >>> .el-dialog__body {
  19781. height: calc(100% - 50px);
  19782. padding: 0;
  19783. }
  19784. .switchCss {
  19785. /* width: 100%; */
  19786. display: flex;
  19787. flex-direction: row;
  19788. flex-wrap: nowrap;
  19789. align-items: center;
  19790. /* justify-content: center; */
  19791. }
  19792. .isClickNav {
  19793. /* color: #499eef; */
  19794. color: #000;
  19795. }
  19796. .commentImg {
  19797. width: 25px;
  19798. height: 25px;
  19799. cursor: pointer;
  19800. }
  19801. .commentImg > img {
  19802. width: 100%;
  19803. height: 100%;
  19804. }
  19805. .comment {
  19806. background: #f9f9f9;
  19807. border-radius: 0 0 15px 15px;
  19808. display: flex;
  19809. flex-direction: row;
  19810. flex-wrap: nowrap;
  19811. align-items: center;
  19812. justify-content: flex-end;
  19813. height: 35px;
  19814. }
  19815. .commentList {
  19816. display: flex;
  19817. flex-direction: row;
  19818. flex-wrap: nowrap;
  19819. align-items: center;
  19820. justify-content: center;
  19821. align-content: center;
  19822. /* margin-left: 15px; */
  19823. /* margin-left: 8px; */
  19824. }
  19825. .scoreImg {
  19826. width: 17px;
  19827. height: 17px;
  19828. }
  19829. .studentDetail {
  19830. display: flex;
  19831. flex-direction: row;
  19832. flex-wrap: nowrap;
  19833. /* align-items: center; */
  19834. align-items: flex-start;
  19835. }
  19836. .tx {
  19837. width: 50px;
  19838. }
  19839. .tx > img {
  19840. width: 100%;
  19841. height: 100%;
  19842. }
  19843. .nameAndTime {
  19844. display: flex;
  19845. flex-direction: column;
  19846. flex-wrap: nowrap;
  19847. align-items: flex-start;
  19848. margin-left: 10px;
  19849. }
  19850. .worksAnswer {
  19851. color: #4078dd;
  19852. margin: 10px 0;
  19853. font-size: 16px;
  19854. position: relative;
  19855. }
  19856. .worksAnswer > img {
  19857. width: 500px;
  19858. height: 300px;
  19859. object-fit: contain;
  19860. margin: 0 auto;
  19861. display: block;
  19862. }
  19863. .commentTop {
  19864. border-bottom: 1px solid #eaeaea;
  19865. padding-bottom: 10px;
  19866. }
  19867. .commentBox {
  19868. padding-top: 15px;
  19869. }
  19870. .pl {
  19871. font-size: 18px;
  19872. }
  19873. .plPerson {
  19874. width: 100%;
  19875. }
  19876. .plName {
  19877. display: flex;
  19878. flex-direction: row;
  19879. flex-wrap: nowrap;
  19880. align-items: baseline;
  19881. color: #78787a;
  19882. width: 100%;
  19883. }
  19884. .deleteComment {
  19885. cursor: pointer;
  19886. margin-left: auto;
  19887. color: #237ade;
  19888. }
  19889. .plContent {
  19890. margin-top: 5px;
  19891. }
  19892. .evalCss {
  19893. background: #fff;
  19894. font-size: 18px;
  19895. }
  19896. .nav {
  19897. color: #9d9d9d;
  19898. padding: 5px 0 15px 20px;
  19899. }
  19900. .middleBox {
  19901. padding: 5px 0 15px 20px;
  19902. }
  19903. .pfBox {
  19904. padding-bottom: 30px;
  19905. }
  19906. .nameAndrate {
  19907. display: flex;
  19908. flex-direction: row;
  19909. flex-wrap: nowrap;
  19910. align-items: center;
  19911. padding-bottom: 10px;
  19912. height: 30px;
  19913. line-height: 30px;
  19914. }
  19915. .nameAndrate > div {
  19916. margin-left: 10px;
  19917. color: #000;
  19918. height: 30px;
  19919. }
  19920. .nameAndrate >>> .el-rate__icon {
  19921. font-size: 28px !important;
  19922. }
  19923. .pfBox > div:nth-child(2) {
  19924. background: #f7f6f9;
  19925. width: 400px;
  19926. min-height: 45px;
  19927. border-radius: 10px;
  19928. font-size: 16px;
  19929. display: flex;
  19930. flex-wrap: wrap;
  19931. align-items: center;
  19932. padding: 10px 20px;
  19933. box-sizing: border-box;
  19934. color: #000;
  19935. }
  19936. .bz {
  19937. display: flex;
  19938. flex-direction: row;
  19939. flex-wrap: nowrap;
  19940. align-items: flex-start;
  19941. }
  19942. .bz > div {
  19943. padding: 0 10px;
  19944. }
  19945. .select_box2_title {
  19946. background: #fff;
  19947. border-radius: 5px;
  19948. padding: 15px 10px;
  19949. box-sizing: border-box;
  19950. margin-bottom: 10px;
  19951. display: flex;
  19952. flex-direction: row;
  19953. flex-wrap: nowrap;
  19954. align-items: center;
  19955. }
  19956. .select_box2_title > div:nth-child(2) {
  19957. margin-left: 10px;
  19958. color: #c4c4c4;
  19959. }
  19960. .select_box2_box {
  19961. display: flex;
  19962. height: 500px;
  19963. }
  19964. .select_box2_img {
  19965. width: calc(100% - 310px);
  19966. height: 100%;
  19967. overflow: auto;
  19968. background: #fff;
  19969. border-radius: 5px;
  19970. }
  19971. .select_box2_img img {
  19972. width: 100%;
  19973. }
  19974. .select_box2_answer {
  19975. background: #fff;
  19976. margin-left: 10px;
  19977. border-radius: 5px;
  19978. width: 300px;
  19979. overflow: auto;
  19980. height: 90%;
  19981. display: flex;
  19982. flex-direction: column;
  19983. align-items: flex-start;
  19984. padding-top: 10px;
  19985. box-sizing: border-box;
  19986. position: relative;
  19987. }
  19988. .select_answer_title {
  19989. padding: 0 0 15px 20px;
  19990. color: #c4c4c4;
  19991. }
  19992. .select_box2_answer_box {
  19993. margin: 0 0 10px 20px;
  19994. width: 85%;
  19995. display: flex;
  19996. flex-direction: row;
  19997. flex-wrap: nowrap;
  19998. align-items: center;
  19999. }
  20000. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  20001. color: #000;
  20002. }
  20003. .upAnswerCss {
  20004. position: absolute;
  20005. bottom: 15px;
  20006. right: 15px;
  20007. }
  20008. .upAnswerCss >>> .el-button {
  20009. width: 95px;
  20010. height: 35px;
  20011. line-height: 35px;
  20012. padding: 0;
  20013. }
  20014. .rightWidthCss {
  20015. width: 60%;
  20016. display: flex;
  20017. flex-direction: row;
  20018. align-items: flex-start;
  20019. }
  20020. .rightAnswer {
  20021. display: flex;
  20022. flex-direction: row;
  20023. flex-wrap: nowrap;
  20024. align-items: center;
  20025. color: red;
  20026. margin-bottom: 31px;
  20027. }
  20028. .rightAnswerCss {
  20029. display: flex;
  20030. flex-direction: column;
  20031. flex-wrap: nowrap;
  20032. padding-top: 60px;
  20033. }
  20034. .blueCss {
  20035. color: #767de1;
  20036. margin-left: 10px;
  20037. }
  20038. .redCss {
  20039. color: red;
  20040. }
  20041. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  20042. color: rgb(0 123 255) !important;
  20043. }
  20044. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  20045. color: rgb(0 123 255) !important;
  20046. }
  20047. .zuoyeYulan {
  20048. padding-top: 0;
  20049. font-size: 18px;
  20050. display: flex;
  20051. align-items: flex-end;
  20052. }
  20053. .buttonA {
  20054. margin-left: 10px;
  20055. padding: 0;
  20056. }
  20057. .displayBox {
  20058. margin-bottom: 10px;
  20059. display: block;
  20060. border-bottom: 3px solid #eee;
  20061. display: flex;
  20062. align-items: center;
  20063. }
  20064. .easy_comment {
  20065. width: calc(100% - 90px);
  20066. margin-left: 10px;
  20067. display: flex;
  20068. flex-wrap: wrap;
  20069. }
  20070. .easy_comment > div {
  20071. border: 1px solid #4a4a4a;
  20072. color: #666;
  20073. border-radius: 15px;
  20074. padding: 5px 10px;
  20075. font-size: 16px;
  20076. margin-bottom: 10px;
  20077. margin-right: 5px;
  20078. cursor: pointer;
  20079. }
  20080. .easy_comment div:hover {
  20081. border: 1px solid #f7ba2a;
  20082. color: #c69217;
  20083. }
  20084. .xuan_right_box {
  20085. padding: 10px;
  20086. background: rgb(247, 247, 247);
  20087. margin: 0 12px;
  20088. border-radius: 5px;
  20089. }
  20090. .tool_right_box {
  20091. display: flex;
  20092. align-items: center;
  20093. }
  20094. .tool_right_box + .tool_right_box {
  20095. margin-top: 10px;
  20096. }
  20097. .right_box_xuan {
  20098. background: rgb(0 123 255);
  20099. color: #fff;
  20100. border-radius: 5px;
  20101. padding: 5px;
  20102. margin-left: 10px;
  20103. min-width: 95px;
  20104. }
  20105. .pButton:hover {
  20106. opacity: 1 !important;
  20107. }
  20108. .pButton {
  20109. position: fixed;
  20110. /* right: 5%; */
  20111. /* bottom: 5%; */
  20112. color: #fff;
  20113. /* width: 50px;
  20114. height: 50px; */
  20115. /* border-radius: 50%; */
  20116. text-align: center;
  20117. /* line-height: 50px; */
  20118. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  20119. cursor: pointer;
  20120. z-index: 999;
  20121. right: 20px;
  20122. top: 110px;
  20123. width: 50px;
  20124. height: 50px;
  20125. background: #fff;
  20126. display: flex;
  20127. align-items: center;
  20128. justify-content: center;
  20129. box-shadow: 0px 0 8px 2px #c5c5c5;
  20130. border-radius: 5px;
  20131. }
  20132. .pzClass {
  20133. width: calc(100% - 340px);
  20134. }
  20135. .newDialogCss {
  20136. /* position: fixed;
  20137. right: 5%;
  20138. top: 50%;
  20139. width: 340px;
  20140. transform: translateY(-50%);
  20141. height: 60%;
  20142. box-shadow: 0px 0 8px 0px #555555;
  20143. border-radius: 15px;
  20144. z-index: 999; */
  20145. position: fixed;
  20146. right: 20px;
  20147. top: 101px;
  20148. width: 330px;
  20149. height: calc(100% - 80px);
  20150. z-index: 999;
  20151. background: #fff;
  20152. border-top-right-radius: 0px;
  20153. border-bottom-right-radius: 0px;
  20154. overflow: hidden;
  20155. }
  20156. .pzTop {
  20157. color: #fff;
  20158. background: #000;
  20159. display: flex;
  20160. flex-direction: row;
  20161. flex-wrap: nowrap;
  20162. align-items: center;
  20163. justify-content: space-between;
  20164. height: 40px;
  20165. border-radius: 15px 15px 0 0;
  20166. }
  20167. .pzTop2 .checkbox {
  20168. display: flex;
  20169. align-items: center;
  20170. padding: 5px 30px;
  20171. flex: 0 0 auto;
  20172. font-weight: bold;
  20173. border-bottom: 1px solid #eee;
  20174. justify-content: space-between;
  20175. }
  20176. .pzTop2 .check {
  20177. text-align: center;
  20178. cursor: pointer;
  20179. box-sizing: border-box;
  20180. display: flex;
  20181. }
  20182. .pzTop2 img {
  20183. width: 25px;
  20184. cursor: pointer;
  20185. }
  20186. .pzTop > div:nth-child(1) {
  20187. padding-left: 10px;
  20188. }
  20189. .pzTop > div:nth-child(2) {
  20190. width: 15px;
  20191. height: 15px;
  20192. padding-right: 10px;
  20193. cursor: pointer;
  20194. }
  20195. .pzTop > div:nth-child(2) > img {
  20196. width: 100%;
  20197. height: 100%;
  20198. }
  20199. .pzBox,
  20200. .noPzBox {
  20201. height: calc(100% - 60px);
  20202. /* background: #ededed; */
  20203. background: #fff;
  20204. /* border-radius: 0 0 15px 15px; */
  20205. }
  20206. .noPzBox {
  20207. display: flex;
  20208. flex-direction: column;
  20209. flex-wrap: nowrap;
  20210. justify-content: center;
  20211. align-items: center;
  20212. }
  20213. .pzList {
  20214. background: #f7f7f7;
  20215. width: 90%;
  20216. margin: 0 auto 15px;
  20217. border-radius: 5px;
  20218. }
  20219. .pzNavTop {
  20220. display: flex;
  20221. flex-direction: row;
  20222. flex-wrap: nowrap;
  20223. padding: 10px 10px 0 10px;
  20224. align-items: center;
  20225. }
  20226. .pzDelete {
  20227. cursor: pointer;
  20228. margin-left: auto;
  20229. font-size: 14px;
  20230. color: #afafaf;
  20231. }
  20232. .pzNavTop > div:nth-child(1) {
  20233. background: #3760af;
  20234. width: 35px;
  20235. height: 35px;
  20236. color: #fff;
  20237. text-align: center;
  20238. line-height: 35px;
  20239. border-radius: 50%;
  20240. font-size: 14px;
  20241. }
  20242. .pzNavTop > div:nth-child(2) {
  20243. font-size: 18px;
  20244. color: #959595;
  20245. margin-left: 5px;
  20246. }
  20247. .pzContent {
  20248. padding: 10px;
  20249. word-break: break-word;
  20250. }
  20251. .pzContent audio {
  20252. width: 100%;
  20253. }
  20254. .pzContent audio::-webkit-media-controls-panel {
  20255. background: #fff;
  20256. }
  20257. .pzContent >>> img {
  20258. max-width: 100%;
  20259. }
  20260. .pzListBox {
  20261. padding-top: 15px;
  20262. height: calc(100% - 100px);
  20263. overflow: auto;
  20264. }
  20265. .addPzButton {
  20266. position: relative;
  20267. margin-top: 3px;
  20268. width: 100%;
  20269. }
  20270. .addPzButton .img1 {
  20271. position: absolute;
  20272. top: 50%;
  20273. right: 25px;
  20274. transform: translateY(-50%);
  20275. height: 100%;
  20276. display: flex;
  20277. align-items: center;
  20278. }
  20279. .addPzButton .img1 div {
  20280. display: flex;
  20281. }
  20282. .addPzButton .img1 div img {
  20283. width: 28px;
  20284. margin-left: 10px;
  20285. cursor: pointer;
  20286. }
  20287. .addPzButton .img1 div span {
  20288. font-size: 14px;
  20289. margin: 4px 0 0 3px;
  20290. color: #afafaf;
  20291. }
  20292. .addPz {
  20293. background: #4b79ce;
  20294. width: 100px;
  20295. color: #fff;
  20296. font-size: 12px;
  20297. height: 30px;
  20298. margin: 0 auto;
  20299. text-align: center;
  20300. line-height: 30px;
  20301. border-radius: 10px;
  20302. cursor: pointer;
  20303. }
  20304. .addDialogCss {
  20305. position: fixed;
  20306. right: 37%;
  20307. top: 50%;
  20308. width: 600px;
  20309. transform: translateY(-50%);
  20310. height: 70%;
  20311. min-height: 450px;
  20312. box-shadow: 0px 0 8px 0px #555555;
  20313. border-radius: 15px;
  20314. z-index: 999;
  20315. }
  20316. .teacherPz {
  20317. display: flex;
  20318. flex-direction: row;
  20319. align-items: center;
  20320. flex-wrap: nowrap;
  20321. }
  20322. .teacherPzImg {
  20323. width: 30px;
  20324. height: 30px;
  20325. }
  20326. .teacherPzImg > img {
  20327. width: 100%;
  20328. height: 100%;
  20329. }
  20330. .addPzBox {
  20331. height: calc(100% - 40px);
  20332. background: #ededed;
  20333. }
  20334. .pzAudioClass {
  20335. margin: 15px 14px;
  20336. background: #fff;
  20337. height: 100%;
  20338. display: flex;
  20339. justify-content: center;
  20340. align-items: center;
  20341. }
  20342. .pzConText {
  20343. width: 95%;
  20344. height: 100%;
  20345. margin: 10px auto 0;
  20346. border: none;
  20347. background: #fff;
  20348. border-radius: 0px;
  20349. }
  20350. .pzConText >>> .text {
  20351. height: calc(100% - 82px);
  20352. }
  20353. .addTextCss {
  20354. background: #4b79ce;
  20355. width: 80px;
  20356. height: 30px;
  20357. text-align: center;
  20358. color: #fff;
  20359. line-height: 30px;
  20360. border-radius: 10px;
  20361. margin: 10px auto 0;
  20362. cursor: pointer;
  20363. }
  20364. .pzConText:focus-visible {
  20365. border: none !important;
  20366. }
  20367. .maxWidth {
  20368. width: 1000px;
  20369. }
  20370. .noPz {
  20371. width: 150px;
  20372. margin: 0 auto 20%;
  20373. }
  20374. .noPz > img {
  20375. width: 100%;
  20376. height: 100%;
  20377. }
  20378. .pzList .time {
  20379. text-align: right;
  20380. box-sizing: border-box;
  20381. padding: 0 10px 10px 0px;
  20382. color: #949494;
  20383. font-size: 14px;
  20384. }
  20385. /* table 样式 */
  20386. .addPzCheck {
  20387. display: flex;
  20388. flex-direction: row;
  20389. flex-wrap: nowrap;
  20390. padding: 10px 15px 0;
  20391. }
  20392. .addPzCheck span {
  20393. cursor: pointer;
  20394. padding-bottom: 5px;
  20395. font-weight: bold;
  20396. }
  20397. .addPzCheck span + span {
  20398. margin-left: 10px;
  20399. }
  20400. .addPzCheck .isChooseActive {
  20401. color: #3e88f4;
  20402. border-bottom: 2px solid #2f80f3;
  20403. }
  20404. /* code 样式 */
  20405. .scoreBox,
  20406. .scoreDetailBox {
  20407. display: flex;
  20408. align-items: center;
  20409. justify-content: flex-start;
  20410. margin-top: 20px;
  20411. font-size: 18px;
  20412. width: 100%;
  20413. }
  20414. .scoreBox .t,
  20415. .scoreDetailBox .t {
  20416. margin-right: 10px;
  20417. width: 100px;
  20418. text-align: right;
  20419. }
  20420. .scoreDetailBox {
  20421. align-items: flex-start;
  20422. }
  20423. .scoreDetailBox >>> .el-textarea {
  20424. width: calc(100% - 200px);
  20425. }
  20426. .scoreBox >>> .el-input {
  20427. width: 130px;
  20428. font-size: 38px;
  20429. }
  20430. .scoreBox >>> .el-input__inner {
  20431. height: 60px;
  20432. }
  20433. .answerScore {
  20434. position: absolute;
  20435. top: 10px;
  20436. right: 10px;
  20437. background: #0000008f;
  20438. border-radius: 5px;
  20439. padding: 3px 5px;
  20440. font-size: 14px;
  20441. color: #fff;
  20442. cursor: pointer;
  20443. }
  20444. .open_box .switch_box {
  20445. width: 100%;
  20446. margin: 0 auto;
  20447. display: flex;
  20448. justify-content: space-between;
  20449. }
  20450. .open_box .switch_box + .switch_box {
  20451. margin-top: 10px;
  20452. }
  20453. .deleteImg {
  20454. width: 25px !important;
  20455. height: 25px !important;
  20456. cursor: pointer;
  20457. position: absolute;
  20458. top: 10px;
  20459. right: 10px;
  20460. }
  20461. .deleteImg2 {
  20462. width: 15px !important;
  20463. height: 15px !important;
  20464. top: 5px;
  20465. right: 5px;
  20466. }
  20467. .rightW {
  20468. right: 40px;
  20469. }
  20470. .drawPBox {
  20471. display: flex;
  20472. flex-direction: column;
  20473. position: relative;
  20474. }
  20475. .drawPBox span {
  20476. font-size: 18px;
  20477. color: #606266;
  20478. padding-bottom: 10px;
  20479. margin: 10px 0;
  20480. border-bottom: 1px solid #eaeaea;
  20481. }
  20482. .drawPBox img {
  20483. width: 500px;
  20484. height: 300px;
  20485. object-fit: contain;
  20486. cursor: pointer;
  20487. margin: 0 auto;
  20488. }
  20489. .sentenBox {
  20490. background: #fff;
  20491. height: 450px;
  20492. overflow: auto;
  20493. background-image: url("../../assets/icon/conSentences/stuBg.png");
  20494. background-position: 102%;
  20495. background-repeat: no-repeat;
  20496. background-size: 60%;
  20497. }
  20498. .addSen {
  20499. background: #409efe;
  20500. width: 90px;
  20501. color: #fff;
  20502. height: 35px;
  20503. text-align: center;
  20504. line-height: 35px;
  20505. border-radius: 5px;
  20506. float: right;
  20507. margin: 10px 20px 0 0;
  20508. cursor: pointer;
  20509. }
  20510. .sentenTop {
  20511. display: flex;
  20512. flex-direction: row;
  20513. flex-wrap: nowrap;
  20514. align-items: center;
  20515. padding: 55px 0 0 20px;
  20516. box-sizing: border-box;
  20517. }
  20518. .sentenTop > div:nth-child(2) {
  20519. width: 300px;
  20520. margin: 0 15px;
  20521. }
  20522. .sentenTop > div:nth-child(3) {
  20523. background: #409efe;
  20524. color: #fff;
  20525. width: 65px;
  20526. height: 35px;
  20527. text-align: center;
  20528. line-height: 35px;
  20529. border-radius: 5px;
  20530. cursor: pointer;
  20531. }
  20532. .cardList,
  20533. .cardList1 {
  20534. padding: 10px 0 10px 0;
  20535. display: flex;
  20536. flex-direction: row;
  20537. flex-wrap: wrap;
  20538. align-items: center;
  20539. box-sizing: border-box;
  20540. border-bottom: 1px solid #f4f4f4;
  20541. width: 98%;
  20542. margin: 0 auto;
  20543. min-width: 60%;
  20544. max-width: 85%;
  20545. }
  20546. .cardList1 {
  20547. padding: 10px 0 10px 10px !important;
  20548. margin: 0 !important;
  20549. }
  20550. .cardBox {
  20551. display: flex;
  20552. flex-direction: row;
  20553. flex-wrap: wrap;
  20554. align-items: center;
  20555. align-content: center;
  20556. }
  20557. .cardBox > div {
  20558. margin-bottom: 10px;
  20559. }
  20560. .isCard,
  20561. .isChooseCard,
  20562. .noCard,
  20563. .isCard1 {
  20564. width: 130px;
  20565. height: 60px;
  20566. text-align: center;
  20567. line-height: 60px;
  20568. font-size: 20px;
  20569. cursor: pointer;
  20570. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  20571. background-size: cover;
  20572. transition: all 2s;
  20573. margin-right: 20px;
  20574. }
  20575. .isCard > div,
  20576. .noCard > div,
  20577. .isCard1 > div {
  20578. white-space: nowrap;
  20579. overflow: hidden;
  20580. text-overflow: ellipsis;
  20581. width: 75%;
  20582. margin: 0 auto;
  20583. }
  20584. .noCard {
  20585. background-image: none;
  20586. }
  20587. .isCard1 {
  20588. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  20589. }
  20590. .isChooseCard {
  20591. background-image: none;
  20592. border: 1px dashed #b9b9b9;
  20593. border-radius: 10px;
  20594. }
  20595. .card {
  20596. width: 130px;
  20597. height: 60px;
  20598. }
  20599. .card > img {
  20600. width: 100%;
  20601. height: 100%;
  20602. }
  20603. .rightCardBox {
  20604. margin: 10px 0 0 10px;
  20605. }
  20606. .rightCardBox > div:nth-child(1) {
  20607. margin-bottom: 10px;
  20608. }
  20609. .cardCss {
  20610. display: flex;
  20611. flex-direction: column;
  20612. flex-wrap: nowrap;
  20613. align-items: center;
  20614. border-bottom: 3px solid #b4c3d3;
  20615. padding: 0 0 5px 0;
  20616. margin-right: 10px;
  20617. }
  20618. .cardCss > div:nth-child(2) {
  20619. background: #5b7b9d;
  20620. color: #fff;
  20621. width: 20px;
  20622. height: 20px;
  20623. border-radius: 50%;
  20624. text-align: center;
  20625. line-height: 20px;
  20626. }
  20627. .isWrong {
  20628. display: flex;
  20629. flex-direction: row;
  20630. flex-wrap: nowrap;
  20631. align-content: center;
  20632. align-items: center;
  20633. }
  20634. .answerRight {
  20635. width: 25%;
  20636. }
  20637. .isTj {
  20638. display: flex;
  20639. flex-direction: row;
  20640. flex-wrap: nowrap;
  20641. align-items: center;
  20642. }
  20643. .isTj > div:nth-child(2) {
  20644. color: #727070;
  20645. margin-left: 10px;
  20646. }
  20647. .isTjImg {
  20648. width: 30px;
  20649. height: 30px;
  20650. }
  20651. .isTjImg > img {
  20652. width: 100%;
  20653. height: 100%;
  20654. }
  20655. .cardAnswerBox {
  20656. font-size: 18px;
  20657. width: 97%;
  20658. border: 5px;
  20659. padding: 0;
  20660. border-radius: 5px;
  20661. margin: 10px auto;
  20662. word-break: break-word;
  20663. }
  20664. .w_name {
  20665. margin-bottom: 10px;
  20666. }
  20667. .w_name span {
  20668. font-size: 16px;
  20669. }
  20670. .w_teachert {
  20671. width: 50px !important;
  20672. position: absolute;
  20673. height: auto !important;
  20674. z-index: 10;
  20675. right: 25px;
  20676. top: -25px;
  20677. }
  20678. .group_workBox {
  20679. }
  20680. .group_workBox + .group_workBox {
  20681. margin-top: 20px;
  20682. }
  20683. .group_box {
  20684. padding-bottom: 20px;
  20685. border-bottom: 2px solid #f0f0f0;
  20686. }
  20687. .group_title {
  20688. display: flex;
  20689. align-items: center;
  20690. justify-content: space-between;
  20691. }
  20692. .group_name {
  20693. background-image: url(../../assets/icon/groupN.png);
  20694. width: 220px;
  20695. background-size: 100% 100%;
  20696. height: 67px;
  20697. padding: 0 20px 0 43px;
  20698. box-sizing: border-box;
  20699. line-height: 63px;
  20700. color: #fff;
  20701. overflow: hidden;
  20702. white-space: nowrap;
  20703. text-overflow: ellipsis;
  20704. }
  20705. .group_work {
  20706. width: 100%;
  20707. padding: 0 10px;
  20708. box-sizing: border-box;
  20709. display: flex;
  20710. flex-wrap: wrap;
  20711. }
  20712. .g_d_box {
  20713. display: flex;
  20714. flex-flow: wrap;
  20715. justify-content: space-around;
  20716. }
  20717. .g_d_box .isChair {
  20718. background-image: url(../../assets/avatar.png) !important;
  20719. }
  20720. .g_d_group {
  20721. width: 500px;
  20722. margin-bottom: 80px;
  20723. }
  20724. .g_d_group_chair {
  20725. display: flex;
  20726. align-items: center;
  20727. justify-content: center;
  20728. }
  20729. .g_d_group_chair > div + div {
  20730. margin-left: 30px;
  20731. }
  20732. .g_d_group_chair > div,
  20733. .g_d_group_chair2 > div {
  20734. display: flex;
  20735. flex-direction: column;
  20736. align-items: center;
  20737. }
  20738. .g_d_group_chair > div > span:nth-child(1),
  20739. .g_d_group_chair2 > div > span:nth-child(1) {
  20740. background-image: url(../../assets/icon/chair.png);
  20741. width: 50px;
  20742. height: 50px;
  20743. display: block;
  20744. background-size: 100% 100%;
  20745. }
  20746. .g_d_group_tableBox {
  20747. display: flex;
  20748. align-items: center;
  20749. justify-content: center;
  20750. }
  20751. .g_d_group_chair2 {
  20752. display: flex;
  20753. flex-direction: column;
  20754. align-items: center;
  20755. justify-content: center;
  20756. }
  20757. .g_d_group_chair2 > div + div {
  20758. margin-top: 10px;
  20759. }
  20760. .g_d_group_table {
  20761. background-image: url(../../assets/icon/groupBg.png);
  20762. width: 354px;
  20763. height: 196px;
  20764. background-size: 100% 100%;
  20765. display: flex;
  20766. align-items: center;
  20767. justify-content: center;
  20768. flex-direction: column;
  20769. color: #fff;
  20770. }
  20771. .g_d_group_table > div:nth-child(1) {
  20772. font-size: 24px;
  20773. margin-bottom: 5px;
  20774. }
  20775. .g_d_group_table > div:nth-child(2) div {
  20776. cursor: pointer;
  20777. background: #2e77bf;
  20778. padding: 4px 10px;
  20779. border-radius: 5px;
  20780. }
  20781. .groupBox {
  20782. }
  20783. .groupContent + .groupContent {
  20784. margin-top: 30px;
  20785. }
  20786. .groupTitle {
  20787. font-size: 24px;
  20788. color: rgb(80, 80, 80);
  20789. margin-bottom: 20px;
  20790. }
  20791. .groupName {
  20792. display: flex;
  20793. align-items: center;
  20794. }
  20795. .groupn {
  20796. font-size: 15px;
  20797. margin-right: 10px;
  20798. }
  20799. .groupName + .groupName {
  20800. margin-top: 15px;
  20801. }
  20802. .groupBtn {
  20803. margin-left: 10px;
  20804. }
  20805. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  20806. text-align: left;
  20807. }
  20808. .g_d_btnBox {
  20809. display: flex;
  20810. justify-content: flex-end;
  20811. align-items: flex-end;
  20812. margin-bottom: 20px;
  20813. }
  20814. .updateChair {
  20815. position: relative;
  20816. }
  20817. .updateChairBtn {
  20818. position: absolute;
  20819. width: 50px;
  20820. height: 50px;
  20821. overflow: hidden;
  20822. /* display: flex; */
  20823. align-items: center;
  20824. justify-content: center;
  20825. background: #00000087;
  20826. color: #fff;
  20827. border-radius: 50px;
  20828. display: none;
  20829. cursor: pointer;
  20830. }
  20831. .updateChair:hover .updateChairBtn {
  20832. display: flex;
  20833. }
  20834. .group_staic_box {
  20835. display: flex;
  20836. padding: 30px 40px 10px;
  20837. flex-wrap: wrap;
  20838. }
  20839. .group_staic {
  20840. /* width: 50%; */
  20841. margin-bottom: 20px;
  20842. display: flex;
  20843. align-items: center;
  20844. }
  20845. .group_staic span:nth-child(1) {
  20846. width: 150px;
  20847. text-align: right;
  20848. margin-right: 15px;
  20849. }
  20850. .group_staic span:nth-child(2) {
  20851. background: rgb(0 123 255);
  20852. color: #fff;
  20853. border-radius: 5px;
  20854. padding: 5px;
  20855. }
  20856. .codeFileBox {
  20857. height: 300px;
  20858. background: #fff;
  20859. display: flex;
  20860. align-items: center;
  20861. justify-content: center;
  20862. }
  20863. .codeFileBox img {
  20864. width: 200px;
  20865. margin: 0;
  20866. height: auto;
  20867. }
  20868. .codeFileBox div {
  20869. background: rgb(80, 142, 226);
  20870. color: #fff;
  20871. padding: 10px 20px;
  20872. border-radius: 25px;
  20873. cursor: pointer;
  20874. margin-left: 15px;
  20875. }
  20876. .radioBox {
  20877. display: flex;
  20878. flex-direction: column;
  20879. flex-wrap: nowrap;
  20880. align-items: flex-start;
  20881. }
  20882. .radioBox > div {
  20883. margin: 10px 0 0 10px;
  20884. }
  20885. /* .radioBox >>> .el-radio__input,
  20886. .radioBox >>> .el-checkbox__inner {
  20887. margin-left: 10px;
  20888. } */
  20889. .radioBox >>> .el-radio__label,
  20890. .radioBox >>> .el-checkbox__label {
  20891. display: flex;
  20892. align-items: center;
  20893. }
  20894. .radioBox >>> .el-radio__label > span {
  20895. width: 100%;
  20896. display: -webkit-box;
  20897. overflow: hidden;
  20898. white-space: normal !important;
  20899. text-overflow: ellipsis;
  20900. word-wrap: break-word;
  20901. }
  20902. .inImg {
  20903. width: 100px;
  20904. cursor: pointer;
  20905. }
  20906. .inImg > img {
  20907. width: 100%;
  20908. height: 100%;
  20909. object-fit: cover;
  20910. }
  20911. .timuImgBox {
  20912. margin: 10px 0;
  20913. display: flex;
  20914. flex-direction: column;
  20915. flex-wrap: wrap;
  20916. align-items: flex-start;
  20917. }
  20918. .timuImg {
  20919. width: 150px;
  20920. margin: 5px 0;
  20921. cursor: pointer;
  20922. }
  20923. .timuImg > img {
  20924. width: 100%;
  20925. height: 100%;
  20926. object-fit: cover;
  20927. }
  20928. .worksTop {
  20929. display: flex;
  20930. flex-direction: row;
  20931. align-items: flex-end;
  20932. }
  20933. .corOpen {
  20934. margin: 0 0 0 10px;
  20935. font-size: 14px;
  20936. cursor: pointer;
  20937. color: #505050;
  20938. }
  20939. .corOpen:hover {
  20940. color: #499eef;
  20941. }
  20942. .navCorOpenBox {
  20943. display: flex;
  20944. flex-direction: row;
  20945. align-items: center;
  20946. justify-content: space-between;
  20947. height: 55px;
  20948. background: #ffffff;
  20949. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  20950. border-radius: 8px 8px 0px 0px;
  20951. z-index: 9;
  20952. position: relative;
  20953. }
  20954. .navCorOpen {
  20955. padding-right: 15px;
  20956. cursor: pointer;
  20957. width: 20px;
  20958. display: flex;
  20959. }
  20960. .navCorOpen > img {
  20961. width: 100%;
  20962. height: 100%;
  20963. }
  20964. .mlImg {
  20965. width: 25px !important;
  20966. min-width: 25px;
  20967. cursor: pointer;
  20968. margin-top: 5px;
  20969. }
  20970. .mlImg > img {
  20971. width: 100%;
  20972. height: 100%;
  20973. }
  20974. .navLeftCss {
  20975. width: 100% !important;
  20976. left: 0 !important;
  20977. }
  20978. .isContentCss {
  20979. width: 100% !important;
  20980. }
  20981. .isAllWidth {
  20982. width: 100% !important;
  20983. }
  20984. .toolBoxSteps {
  20985. position: absolute;
  20986. top: 50%;
  20987. transform: translateY(-50%);
  20988. cursor: pointer;
  20989. width: 60px;
  20990. display: flex;
  20991. align-items: center;
  20992. justify-content: center;
  20993. }
  20994. .toolBoxSteps:nth-child(1) > img,
  20995. .toolBoxSteps:nth-child(2) > img {
  20996. width: 24px;
  20997. }
  20998. .toolBoxSteps:nth-child(1) {
  20999. left: 0;
  21000. }
  21001. .toolBoxSteps:nth-child(2) {
  21002. right: 0;
  21003. }
  21004. .isChooseActive {
  21005. color: #3681fc !important;
  21006. font-weight: bold !important;
  21007. }
  21008. .tool_box {
  21009. width: 100%;
  21010. }
  21011. .tool_type_box {
  21012. display: flex;
  21013. flex-direction: row;
  21014. align-items: baseline;
  21015. flex-wrap: nowrap;
  21016. justify-content: flex-start;
  21017. position: relative;
  21018. }
  21019. .toolSort {
  21020. display: flex;
  21021. flex-direction: row;
  21022. flex-wrap: wrap;
  21023. justify-content: flex-start;
  21024. align-items: flex-start;
  21025. }
  21026. .toolSort > div {
  21027. margin: 0 45px 0 0;
  21028. width: auto;
  21029. }
  21030. .tools {
  21031. width: 100%;
  21032. display: flex;
  21033. flex-direction: column;
  21034. flex-wrap: nowrap;
  21035. align-items: flex-start;
  21036. }
  21037. .whiteBIcon {
  21038. width: 80px;
  21039. cursor: pointer;
  21040. display: flex;
  21041. flex-direction: column;
  21042. flex-wrap: nowrap;
  21043. align-items: center;
  21044. font-size:14px;
  21045. }
  21046. .whiteBIcon > img {
  21047. width: 100%;
  21048. height: 100%;
  21049. }
  21050. .whiteBIcon > img {
  21051. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  21052. border-radius: 15px;
  21053. }
  21054. .dia_tool_box {
  21055. display: flex;
  21056. flex-wrap: wrap;
  21057. width: 100%;
  21058. }
  21059. .dia_tool_box > div {
  21060. margin-right: 40px;
  21061. }
  21062. .check {
  21063. /* width: 20px;
  21064. height: 20px; */
  21065. cursor: pointer;
  21066. margin: 10px 0;
  21067. }
  21068. .checkDiv {
  21069. display: flex;
  21070. align-items: center;
  21071. }
  21072. .checkDiv span {
  21073. margin-left: 5px;
  21074. color: #858585;
  21075. }
  21076. .check img {
  21077. width: 20px;
  21078. height: 20px;
  21079. }
  21080. /* code 样式 */
  21081. .cont {
  21082. /* -webkit-user-modify: read-write; */
  21083. overflow-wrap: break-word;
  21084. -webkit-line-break: after-white-space;
  21085. }
  21086. /* table 样式 */
  21087. .cont >>> table {
  21088. border-top: 1px solid #ccc;
  21089. border-left: 1px solid #ccc;
  21090. }
  21091. .cont >>> table td,
  21092. .cont >>> table th {
  21093. border-bottom: 1px solid #ccc;
  21094. border-right: 1px solid #ccc;
  21095. /* padding: 20px 5px; */
  21096. padding: 5px 10px;
  21097. max-width: 0px;
  21098. height: 30px;
  21099. vertical-align: baseline;
  21100. box-sizing: border-box;
  21101. }
  21102. .cont >>> table th {
  21103. border-bottom: 2px solid #ccc;
  21104. text-align: center;
  21105. }
  21106. /* blockquote 样式 */
  21107. .cont >>> blockquote {
  21108. display: block;
  21109. border-left: 8px solid #d0e5f2;
  21110. padding: 5px 10px;
  21111. margin: 10px 0;
  21112. line-height: 1.4;
  21113. font-size: 100%;
  21114. background-color: #f1f1f1;
  21115. }
  21116. /* code 样式 */
  21117. .cont >>> code {
  21118. display: inline-block;
  21119. /* *display: inline; */
  21120. zoom: 1;
  21121. background-color: #f1f1f1;
  21122. border-radius: 3px;
  21123. padding: 3px 5px;
  21124. margin: 0 3px;
  21125. }
  21126. .cont >>> pre code {
  21127. display: block;
  21128. }
  21129. /* ul ol 样式 */
  21130. .cont >>> ul,
  21131. ol {
  21132. margin: 10px 0 10px 20px;
  21133. }
  21134. .fileC_box > .fileC_title {
  21135. padding: 10px 5px;
  21136. border-top: 1px solid #cdcdcd;
  21137. font-size: 14px;
  21138. color: #868686;
  21139. width: 88%;
  21140. margin: 0 auto;
  21141. }
  21142. .pl_select_box {
  21143. height: 40px;
  21144. line-height: 40px;
  21145. width: 100%;
  21146. cursor: pointer;
  21147. padding: 0 20px;
  21148. box-sizing: border-box;
  21149. border-radius: 5px;
  21150. border: 1px solid #d6d6d6;
  21151. white-space: nowrap;
  21152. overflow: hidden;
  21153. text-overflow: ellipsis;
  21154. background: #fff;
  21155. text-align: left;
  21156. }
  21157. .stageBoxCss {
  21158. display: flex;
  21159. flex-direction: row;
  21160. flex-wrap: nowrap;
  21161. align-items: center;
  21162. height: 50px;
  21163. border-bottom: 1px solid #e2f5fc;
  21164. cursor: pointer;
  21165. }
  21166. .stageChild {
  21167. height: 0;
  21168. overflow: hidden;
  21169. transition: all 0.5s;
  21170. }
  21171. .navItem {
  21172. background: #f0f4fa;
  21173. border-radius: 8px;
  21174. width: 95%;
  21175. margin: 10px auto 0;
  21176. display: flex;
  21177. flex-direction: row;
  21178. flex-wrap: nowrap;
  21179. justify-content: flex-start;
  21180. align-items: center;
  21181. }
  21182. .navItemList {
  21183. display: flex;
  21184. flex-direction: row;
  21185. flex-wrap: nowrap;
  21186. align-items: center;
  21187. padding: 18px 13px;
  21188. cursor: pointer;
  21189. font-size: 16px;
  21190. font-weight: 400;
  21191. color: #0e1e33;
  21192. justify-content: flex-start;
  21193. width: 100%;
  21194. border-radius: 8px;
  21195. }
  21196. .navItemList > div {
  21197. font-size: 16px;
  21198. font-weight: 400;
  21199. color: #0e1e33;
  21200. }
  21201. .navItemList > div:first-child {
  21202. min-width: 60px;
  21203. }
  21204. .navItemList > div:last-child {
  21205. display: -webkit-box;
  21206. overflow: hidden;
  21207. white-space: normal !important;
  21208. text-overflow: ellipsis;
  21209. word-wrap: break-word;
  21210. -webkit-line-clamp: 2;
  21211. -webkit-box-orient: vertical;
  21212. }
  21213. .isItemList {
  21214. background: #3681fc;
  21215. }
  21216. .isItemList > div {
  21217. color: #fff;
  21218. }
  21219. .navListItem {
  21220. width: 280px;
  21221. height: 50px;
  21222. margin: 0px auto 10px;
  21223. display: flex;
  21224. flex-direction: row;
  21225. flex-wrap: nowrap;
  21226. align-items: center;
  21227. justify-content: space-between;
  21228. background: #f0f4fa;
  21229. border-radius: 6px 6px 6px 6px;
  21230. }
  21231. .downIcon {
  21232. width: 20px;
  21233. min-width: 20px;
  21234. height: 20px;
  21235. margin-right: 15px;
  21236. cursor: pointer;
  21237. }
  21238. .downIcon > img {
  21239. width: 100%;
  21240. height: 100%;
  21241. }
  21242. .newButton {
  21243. width: 102px;
  21244. height: 36px;
  21245. background: #e7ebf1;
  21246. border-radius: 4px;
  21247. color: #0e1e33;
  21248. font-weight: 400;
  21249. font-size: 14px;
  21250. border: none;
  21251. float: right;
  21252. margin-left: 10px;
  21253. }
  21254. .pick_box {
  21255. display: flex;
  21256. align-items: flex-start;
  21257. flex-wrap: wrap;
  21258. }
  21259. </style>