studyStudent.vue 710 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906
  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 || vitem.type == 14">
  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. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  8683. <el-option label="时间降序" :value="1"></el-option>
  8684. <el-option label="时间升序" :value="2"></el-option>
  8685. <el-option label="我的评课" :value="3"></el-option>
  8686. </el-select>
  8687. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8688. </div>
  8689. </div>
  8690. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8691. <div class="pzListBox" v-if="pzList && pzList.length">
  8692. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8693. <div class="pzNavTop">
  8694. <div>批</div>
  8695. <div>
  8696. {{
  8697. pz.username && pz.username.length > 5
  8698. ? pz.username.substring(0, 5) + "..."
  8699. : pz.username
  8700. }}的批注
  8701. </div>
  8702. <div
  8703. class="pzDelete"
  8704. v-if="pz.userid == userid"
  8705. @click="deletePz(pz.id)"
  8706. >
  8707. 删除
  8708. </div>
  8709. </div>
  8710. <div
  8711. @click="checkImg(getImgList(pz.content))"
  8712. class="pzContent cont"
  8713. v-html="pz.content"
  8714. v-if="pz.type == '1'"
  8715. ></div>
  8716. <div class="pzContent" v-if="pz.type == '2'">
  8717. <audio :src="pz.content" controls="controls" ref="audio">
  8718. Your browser does not support the audio element.
  8719. </audio>
  8720. </div>
  8721. <div class="pzContent" v-if="pz.type == '3'">
  8722. <img
  8723. :src="pz.content"
  8724. style="width: 90%; margin: 0 auto; display: block"
  8725. @click="previewImg(pz.content)"
  8726. />
  8727. </div>
  8728. <div class="time">
  8729. {{ pz.time }}
  8730. </div>
  8731. </div>
  8732. </div>
  8733. <div class="noPz" v-else>
  8734. <img src="../../assets/icon/noPz.png" alt="" />
  8735. </div>
  8736. <div class="addPzButton">
  8737. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8738. 添加批注
  8739. </div>
  8740. <!-- <div class="img1">
  8741. <div @click="(addPzDialog = true), (pzType = 2)">
  8742. <img src="../../assets/audio.png" /><span>音频</span>
  8743. </div>
  8744. </div> -->
  8745. </div>
  8746. </div>
  8747. </div>
  8748. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8749. <div class="pzTop">
  8750. <div class="teacherPz">
  8751. <div class="teacherPzImg">
  8752. <img src="../../assets/icon/teacherPz.png" alt="" />
  8753. </div>
  8754. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8755. </div>
  8756. <div @click="addPzDialog = false">
  8757. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8758. </div>
  8759. </div>
  8760. <div class="addPzBox">
  8761. <div class="addPzCheck">
  8762. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8763. >文本</span
  8764. >
  8765. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8766. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8767. >音频</span
  8768. >
  8769. </div>
  8770. <div style="height: calc(100% - 95px)">
  8771. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8772. v-if="pzType == 1"></textarea> -->
  8773. <editor-bar
  8774. class="binfo_input pzConText"
  8775. style="width: 100% !important"
  8776. placeholder="请输入任务描述"
  8777. v-model="pzConText"
  8778. @change="change"
  8779. v-if="pzType == 1"
  8780. ></editor-bar>
  8781. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8782. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8783. <div @click="addImg($event)">
  8784. <el-button type="primary">上传图片</el-button>
  8785. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8786. @change="beforeUpload1($event, 4)" />
  8787. </div>
  8788. </div> -->
  8789. </div>
  8790. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8791. 确定
  8792. </div>
  8793. </div>
  8794. </div>
  8795. <div v-if="proVisible" class="mask">
  8796. <div class="progressBox">
  8797. <!-- <div id="closePro" class="closeCss">
  8798. <img src="../../assets/icon/close.png" alt />
  8799. </div> -->
  8800. <div class="lbox">
  8801. <img src="../../assets/loading.gif" />上传中,请稍后
  8802. </div>
  8803. <div style="margin-bottom: 10px">
  8804. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8805. </div>
  8806. <el-progress
  8807. :text-inside="true"
  8808. :stroke-width="20"
  8809. :percentage="progress"
  8810. style="width: 80%"
  8811. ></el-progress>
  8812. </div>
  8813. </div>
  8814. <div v-if="proVisible2" class="mask">
  8815. <div class="progressBox">
  8816. <div class="lbox">
  8817. <img src="../../assets/loading.gif" />上传中,请稍后
  8818. </div>
  8819. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8820. </div>
  8821. </div>
  8822. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8823. <img width="100%" :src="dialogImageUrl" alt />
  8824. </el-dialog>
  8825. <el-dialog
  8826. :title="noteName != '' ? noteName : '查看问卷'"
  8827. :visible.sync="dialogVisible5"
  8828. :append-to-body="true"
  8829. width="1000px"
  8830. :before-close="handleClose"
  8831. class="dialog_diy dialog_diy3"
  8832. >
  8833. <div>
  8834. <div
  8835. class="a_add_title"
  8836. style="
  8837. display: flex;
  8838. flex-direction: row;
  8839. align-items: center;
  8840. justify-content: center;
  8841. "
  8842. >
  8843. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8844. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8845. </div>
  8846. <div class="a_addBox">
  8847. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8848. 题目内容
  8849. </div>
  8850. <div
  8851. class="a_add_box"
  8852. v-for="(item1, index1) in askJson.askCount"
  8853. :key="index1"
  8854. >
  8855. <div class="a_add_head">
  8856. <div style="display: flex">
  8857. <span class="askIndex"> {{ index1 + 1 }}</span>
  8858. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8859. </div>
  8860. <img
  8861. v-if="askJson.askJson[index1].img"
  8862. :src="askJson.askJson[index1].img"
  8863. style="height: 300px; margin-top: 10px; max-width: 100%"
  8864. />
  8865. </div>
  8866. <div class="a_add_body">
  8867. <div class="a_add_input">
  8868. <el-radio-group
  8869. v-model="radio[index1]"
  8870. v-if="
  8871. askJson.askJson[index1].type == '1' ||
  8872. !askJson.askJson[index1].type
  8873. "
  8874. >
  8875. <el-radio
  8876. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8877. .checkList"
  8878. :key="checkIndex"
  8879. :label="checkIndex"
  8880. :disabled="isAnswer"
  8881. class="redioStyle"
  8882. ><span v-html="item2"></span
  8883. ></el-radio>
  8884. </el-radio-group>
  8885. <el-checkbox-group
  8886. v-model="radio[index1]"
  8887. v-if="askJson.askJson[index1].type == '2'"
  8888. >
  8889. <el-checkbox
  8890. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8891. .checkList"
  8892. :key="checkIndex1"
  8893. :label="checkIndex1"
  8894. :disabled="isAnswer"
  8895. class="redioStyle"
  8896. ><span v-html="item2"></span>
  8897. </el-checkbox>
  8898. </el-checkbox-group>
  8899. </div>
  8900. </div>
  8901. </div>
  8902. </div>
  8903. </div>
  8904. <span slot="footer" class="dialog-footer">
  8905. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8906. >取 消</el-button
  8907. >
  8908. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8909. >确 定</el-button
  8910. >
  8911. </span>
  8912. </el-dialog>
  8913. <el-dialog
  8914. :title="noteName != '' ? noteName : '查看问卷'"
  8915. :visible.sync="dialogVisible5Teacher"
  8916. :append-to-body="true"
  8917. width="1000px"
  8918. :before-close="handleClose"
  8919. class="dialog_diy dialog_diy3"
  8920. >
  8921. <div>
  8922. <div class="w_name">
  8923. 学生姓名:<span>{{ sStudent.student }}</span>
  8924. </div>
  8925. <div
  8926. class="a_add_title"
  8927. style="
  8928. display: flex;
  8929. flex-direction: row;
  8930. align-items: center;
  8931. justify-content: center;
  8932. "
  8933. >
  8934. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8935. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8936. </div>
  8937. <div class="a_addBox">
  8938. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8939. 题目内容
  8940. </div>
  8941. <div
  8942. class="a_add_box"
  8943. v-for="(item1, index1) in askJson.askCount"
  8944. :key="index1"
  8945. >
  8946. <div class="a_add_head">
  8947. <div style="display: flex">
  8948. <span class="askIndex"> {{ index1 + 1 }}</span>
  8949. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8950. </div>
  8951. <img
  8952. v-if="askJson.askJson[index1].img"
  8953. :src="askJson.askJson[index1].img"
  8954. style="height: 300px; margin-top: 10px; max-width: 100%"
  8955. />
  8956. </div>
  8957. <div class="a_add_body">
  8958. <div class="a_add_input">
  8959. <el-radio-group
  8960. v-model="radio[index1]"
  8961. v-if="
  8962. askJson.askJson[index1].type == '1' ||
  8963. !askJson.askJson[index1].type
  8964. "
  8965. >
  8966. <el-radio
  8967. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8968. .checkList"
  8969. :key="checkIndex"
  8970. :label="checkIndex"
  8971. :disabled="isAnswer"
  8972. class="redioStyle"
  8973. ><span v-html="item2"></span
  8974. ></el-radio>
  8975. </el-radio-group>
  8976. <el-checkbox-group
  8977. v-model="radio[index1]"
  8978. v-if="askJson.askJson[index1].type == '2'"
  8979. >
  8980. <el-checkbox
  8981. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8982. .checkList"
  8983. :key="checkIndex1"
  8984. :label="checkIndex1"
  8985. :disabled="isAnswer"
  8986. class="redioStyle"
  8987. ><span v-html="item2"></span>
  8988. </el-checkbox>
  8989. </el-checkbox-group>
  8990. </div>
  8991. </div>
  8992. </div>
  8993. </div>
  8994. </div>
  8995. <span slot="footer" class="dialog-footer">
  8996. <el-button
  8997. @click="dialogVisible5Teacher = false"
  8998. v-show="noteName == ''"
  8999. >取 消</el-button
  9000. >
  9001. <el-button
  9002. type="primary"
  9003. @click="addStudentAskTeacher"
  9004. v-show="noteName == ''"
  9005. >确 定</el-button
  9006. >
  9007. </span>
  9008. </el-dialog>
  9009. <el-dialog
  9010. :title="noteName != '' ? noteName : '查看选择题'"
  9011. :visible.sync="dialogVisibleChoice"
  9012. :append-to-body="true"
  9013. width="1000px"
  9014. :before-close="handleClose"
  9015. class="dialog_diy dialog_diy3"
  9016. >
  9017. <div>
  9018. <div class="a_addBox">
  9019. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9020. 题目内容
  9021. </div>
  9022. <div
  9023. class="a_add_box"
  9024. v-for="(item1, index1) in testJson.testCount"
  9025. :key="index1"
  9026. >
  9027. <div class="a_add_head">
  9028. <div style="display: flex">
  9029. <span class="askIndex"> {{ index1 + 1 }}</span>
  9030. <div
  9031. v-if="testJson.testJson[index1].type == '1'"
  9032. style="margin-right: 5px; min-width: 70px"
  9033. >
  9034. (单选题)
  9035. </div>
  9036. <div
  9037. v-if="testJson.testJson[index1].type == '2'"
  9038. style="margin-right: 5px; min-width: 70px"
  9039. >
  9040. (多选题)
  9041. </div>
  9042. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9043. </div>
  9044. <img
  9045. v-if="testJson.testJson[index1].img"
  9046. :src="testJson.testJson[index1].img"
  9047. style="height: 300px; margin-top: 10px; max-width: 100%"
  9048. />
  9049. </div>
  9050. <div
  9051. class="timuImgBox"
  9052. v-if="
  9053. testJson.testJson[index1].timuList &&
  9054. testJson.testJson[index1].timuList.length
  9055. "
  9056. >
  9057. <div
  9058. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9059. :key="tIndex"
  9060. class="timuImg"
  9061. @click.stop="previewImg(timg.src)"
  9062. >
  9063. <img :src="timg.src" alt="" />
  9064. </div>
  9065. </div>
  9066. <div class="a_add_body">
  9067. <div class="a_add_input">
  9068. <el-radio-group
  9069. v-model="radio[index1]"
  9070. v-if="testJson.testJson[index1].type == '1'"
  9071. >
  9072. <div class="radioBox">
  9073. <el-radio
  9074. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9075. .checkList"
  9076. :key="checkIndex"
  9077. :label="checkIndex"
  9078. :disabled="isAnswer"
  9079. class="redioStyle"
  9080. >
  9081. <div
  9082. style="margin-right: 10px"
  9083. v-if="item2 && item2.imgType && item2.imgType == 1"
  9084. >
  9085. <div class="inImg" @click.stop="previewImg(item2.src)">
  9086. <img :src="item2.src" alt="" />
  9087. </div>
  9088. </div>
  9089. <span v-else v-html="item2"></span>
  9090. </el-radio>
  9091. </div>
  9092. </el-radio-group>
  9093. <el-checkbox-group
  9094. v-model="radio[index1]"
  9095. v-if="testJson.testJson[index1].type == '2'"
  9096. >
  9097. <div class="radioBox">
  9098. <el-checkbox
  9099. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9100. .checkList"
  9101. :key="checkIndex"
  9102. :label="checkIndex"
  9103. :disabled="isAnswer"
  9104. class="redioStyle"
  9105. >
  9106. <div
  9107. style="margin-right: 10px"
  9108. v-if="item2 && item2.imgType && item2.imgType == 1"
  9109. >
  9110. <div class="inImg" @click.stop="previewImg(item2.src)">
  9111. <img :src="item2.src" alt="" />
  9112. </div>
  9113. </div>
  9114. <span v-else v-html="item2"></span>
  9115. </el-checkbox>
  9116. </div>
  9117. </el-checkbox-group>
  9118. </div>
  9119. </div>
  9120. </div>
  9121. </div>
  9122. </div>
  9123. <span slot="footer" class="dialog-footer">
  9124. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9125. >取 消</el-button
  9126. >
  9127. <el-button
  9128. type="primary"
  9129. @click="addStudentTest"
  9130. v-show="noteName == ''"
  9131. >确 定</el-button
  9132. >
  9133. </span>
  9134. </el-dialog>
  9135. <el-dialog
  9136. :title="noteName != '' ? noteName : '查看选择题'"
  9137. :visible.sync="dialogVisibleChoiceTeacher"
  9138. :append-to-body="true"
  9139. width="1000px"
  9140. :before-close="handleClose"
  9141. class="dialog_diy dialog_diy3"
  9142. >
  9143. <div>
  9144. <div class="w_name">
  9145. 学生姓名:<span>{{ sStudent.student }}</span>
  9146. </div>
  9147. <div class="a_addBox">
  9148. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9149. 题目内容
  9150. </div>
  9151. <div
  9152. class="a_add_box"
  9153. v-for="(item1, index1) in testJson.testCount"
  9154. :key="index1"
  9155. >
  9156. <div class="a_add_head">
  9157. <div style="display: flex">
  9158. <span class="askIndex"> {{ index1 + 1 }}</span>
  9159. <div
  9160. v-if="testJson.testJson[index1].type == '1'"
  9161. style="margin-right: 5px; min-width: 70px"
  9162. >
  9163. (单选题)
  9164. </div>
  9165. <div
  9166. v-if="testJson.testJson[index1].type == '2'"
  9167. style="margin-right: 5px; min-width: 70px"
  9168. >
  9169. (多选题)
  9170. </div>
  9171. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9172. </div>
  9173. <img
  9174. v-if="testJson.testJson[index1].img"
  9175. :src="testJson.testJson[index1].img"
  9176. style="height: 300px; margin-top: 10px; max-width: 100%"
  9177. />
  9178. </div>
  9179. <div
  9180. class="timuImgBox"
  9181. v-if="
  9182. testJson.testJson[index1].timuList &&
  9183. testJson.testJson[index1].timuList.length
  9184. "
  9185. >
  9186. <div
  9187. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9188. :key="tIndex"
  9189. class="timuImg"
  9190. @click.stop="previewImg(timg.src)"
  9191. >
  9192. <img :src="timg.src" alt="" />
  9193. </div>
  9194. </div>
  9195. <div class="a_add_body">
  9196. <div class="a_add_input">
  9197. <el-radio-group
  9198. v-model="radio[index1]"
  9199. v-if="testJson.testJson[index1].type == '1'"
  9200. >
  9201. <div class="radioBox">
  9202. <el-radio
  9203. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9204. .checkList"
  9205. :key="checkIndex"
  9206. :label="checkIndex"
  9207. :disabled="isAnswer"
  9208. class="redioStyle"
  9209. >
  9210. <div
  9211. style="margin-right: 10px"
  9212. v-if="item2 && item2.imgType && item2.imgType == 1"
  9213. >
  9214. <div class="inImg" @click.stop="previewImg(item2.src)">
  9215. <img :src="item2.src" alt="" />
  9216. </div>
  9217. </div>
  9218. <span v-else v-html="item2"></span>
  9219. </el-radio>
  9220. </div>
  9221. </el-radio-group>
  9222. <el-checkbox-group
  9223. v-model="radio[index1]"
  9224. v-if="testJson.testJson[index1].type == '2'"
  9225. >
  9226. <div class="radioBox">
  9227. <el-checkbox
  9228. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9229. .checkList"
  9230. :key="checkIndex"
  9231. :label="checkIndex"
  9232. :disabled="isAnswer"
  9233. class="redioStyle"
  9234. >
  9235. <div
  9236. style="margin-right: 10px"
  9237. v-if="item2 && item2.imgType && item2.imgType == 1"
  9238. >
  9239. <div class="inImg" @click.stop="previewImg(item2.src)">
  9240. <img :src="item2.src" alt="" />
  9241. </div>
  9242. </div>
  9243. <span v-else v-html="item2"></span>
  9244. </el-checkbox>
  9245. </div>
  9246. </el-checkbox-group>
  9247. </div>
  9248. </div>
  9249. </div>
  9250. </div>
  9251. </div>
  9252. <span slot="footer" class="dialog-footer">
  9253. <el-button
  9254. @click="dialogVisibleChoiceTeacher = false"
  9255. v-show="noteName == ''"
  9256. >取 消</el-button
  9257. >
  9258. <el-button
  9259. type="primary"
  9260. @click="addStudentTestTeacher"
  9261. v-show="noteName == ''"
  9262. >确 定</el-button
  9263. >
  9264. </span>
  9265. </el-dialog>
  9266. <el-dialog
  9267. title="查看富文本"
  9268. :visible.sync="dialogVisible1"
  9269. :append-to-body="true"
  9270. width="500px"
  9271. :before-close="handleClose"
  9272. class="dialog_diy textCss"
  9273. >
  9274. <el-form style="font-size: 20px">
  9275. <el-form-item label="文本标题" class="textTitle">
  9276. <div style="font-size: 20px">{{ text.name }}</div>
  9277. </el-form-item>
  9278. <div>富文本内容</div>
  9279. <div
  9280. v-html="text.url"
  9281. style="font-size: 18px; padding: 40px 0 0 0"
  9282. ></div>
  9283. </el-form>
  9284. <span slot="footer" class="dialog-footer">
  9285. <el-button type="primary" @click="dialogVisible1 = false"
  9286. >确定</el-button
  9287. >
  9288. </span>
  9289. </el-dialog>
  9290. <el-dialog
  9291. title="文件预览"
  9292. :visible.sync="dialogVisible3"
  9293. width="50%"
  9294. :before-close="handleClose"
  9295. class="dialog_diy"
  9296. :class="{ fullStyle: full }"
  9297. >
  9298. <div slot="title" class="header-title">
  9299. <div style="color: #fff">文件预览</div>
  9300. <div style="position: absolute; top: 19px; right: 50px">
  9301. <img
  9302. src="../../assets/full.png"
  9303. style="height: 16px; cursor: pointer"
  9304. alt=""
  9305. @click="fullTools"
  9306. />
  9307. </div>
  9308. </div>
  9309. <pdf
  9310. v-if="showPDF"
  9311. :pdfUrl="pptImgUrl"
  9312. style="width: 100%; height: 520px; overflow: auto"
  9313. :class="{ fullStyle: full }"
  9314. ></pdf>
  9315. <iframe
  9316. v-else
  9317. :src="pptImgUrl"
  9318. frameborder="0"
  9319. width="100%"
  9320. height="600"
  9321. :class="{ fullStyle: full }"
  9322. ></iframe>
  9323. </el-dialog>
  9324. <el-dialog
  9325. title="文件预览"
  9326. :visible.sync="dialogVisible6"
  9327. width="50%"
  9328. :before-close="handleClose"
  9329. class="dialog_diy"
  9330. >
  9331. <iframe
  9332. :src="pptImgUrl1"
  9333. frameborder="0"
  9334. width="100%"
  9335. height="600"
  9336. ></iframe>
  9337. </el-dialog>
  9338. <el-dialog
  9339. title="提示"
  9340. :visible.sync="dialogVisible4"
  9341. :append-to-body="true"
  9342. width="800px"
  9343. :before-close="handleClose"
  9344. class="dialog_diy notice"
  9345. >
  9346. <div>此功能暂未开放!</div>
  9347. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9348. </el-dialog>
  9349. <el-dialog
  9350. title="问答"
  9351. :visible.sync="answerDialogVisible"
  9352. :append-to-body="true"
  9353. width="800px"
  9354. :before-close="handleClose"
  9355. class="dialog_diy"
  9356. >
  9357. <div>
  9358. <div
  9359. style="
  9360. display: flex;
  9361. flex-wrap: nowrap;
  9362. flex-direction: column;
  9363. position: relative;
  9364. "
  9365. >
  9366. <div class="queTop" style="padding: 20px 0 20px 0">
  9367. <div class="question">
  9368. <img src="../../assets/icon/question.png" alt />
  9369. </div>
  9370. <div class="queTitle">
  9371. <div style="width: 90px; min-width: 90px">提问:</div>
  9372. <div>{{ answerQ }}</div>
  9373. </div>
  9374. </div>
  9375. <div class="ediBottom">
  9376. <textarea
  9377. rows="6"
  9378. class="binfo_input"
  9379. cols
  9380. style="width: 95%; height: 120px"
  9381. v-model="questionAnswer"
  9382. ></textarea>
  9383. </div>
  9384. </div>
  9385. </div>
  9386. <div slot="footer">
  9387. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9388. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9389. </div>
  9390. </el-dialog>
  9391. <el-dialog
  9392. title="倒计时"
  9393. :visible.sync="timeDialogVisible"
  9394. :append-to-body="true"
  9395. width="800px"
  9396. :before-close="handleClose"
  9397. class="dialog_diy"
  9398. >
  9399. <div>
  9400. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  9401. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9402. </div>
  9403. <div slot="footer">
  9404. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9405. </div>
  9406. </el-dialog>
  9407. <el-dialog
  9408. title="权限设置"
  9409. :visible.sync="juriVisible"
  9410. :append-to-body="true"
  9411. width="400px"
  9412. :before-close="handleClose"
  9413. class="dialog_diy"
  9414. >
  9415. <div>
  9416. <div class="open_box">
  9417. <div class="switch_box">
  9418. <span>允许学生查看所有作业</span>
  9419. <el-switch
  9420. v-model="sIsOpen"
  9421. active-text=""
  9422. class="switchCss"
  9423. @change="updateSLook"
  9424. ></el-switch>
  9425. </div>
  9426. <div
  9427. class="switch_box"
  9428. v-if="
  9429. courseDetail.userid == userid ||
  9430. (courseDetail.course_teacher &&
  9431. courseDetail.course_teacher.indexOf(userid) != -1)
  9432. "
  9433. >
  9434. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9435. <span>禁止学生查看所有阶段</span>
  9436. <el-switch
  9437. v-model="IsLookOpen"
  9438. active-text=""
  9439. class="switchCss"
  9440. @change="updateLookOpen"
  9441. ></el-switch>
  9442. </div>
  9443. <div class="switch_box" v-if="courseDetail.userid == userid">
  9444. <span>开启跟随模式</span>
  9445. <el-switch
  9446. v-model="IsFollow"
  9447. active-text=""
  9448. class="switchCss"
  9449. @change="updateFollow"
  9450. ></el-switch>
  9451. </div>
  9452. </div>
  9453. </div>
  9454. <div slot="footer">
  9455. <el-button
  9456. style="background: #409efe; color: #fff"
  9457. @click="juriVisible = false"
  9458. >关 闭</el-button
  9459. >
  9460. </div>
  9461. </el-dialog>
  9462. <el-dialog
  9463. title="查看视频"
  9464. :visible.sync="videoVisible"
  9465. :append-to-body="true"
  9466. width="1000px"
  9467. :before-close="handleClose"
  9468. class="dialog_diy1"
  9469. >
  9470. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9471. <video-player
  9472. class="video-player vjs-custom-skin"
  9473. :playsinline="true"
  9474. :options="videoDetail"
  9475. @play="onPlayerPlay($event)"
  9476. style="width: 100%; height: 100%"
  9477. ></video-player>
  9478. </div>
  9479. <div slot="footer">
  9480. <el-button
  9481. style="background: #409efe; color: #fff"
  9482. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9483. >
  9484. 关 闭</el-button
  9485. >
  9486. </div>
  9487. </el-dialog>
  9488. <el-dialog
  9489. title="查看详情"
  9490. :visible.sync="commentDialogVisible"
  9491. :append-to-body="true"
  9492. width="800px"
  9493. :before-close="handleClose"
  9494. class="dialog_diy"
  9495. >
  9496. <div class="commentTop">
  9497. <div class="studentDetail">
  9498. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9499. <div class="nameAndTime">
  9500. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9501. <div>{{ commentDetail.time }}</div>
  9502. </div>
  9503. <div
  9504. class="returnBtn"
  9505. style="margin-left: auto; width: 80px"
  9506. v-if="
  9507. commentDetail.works &&
  9508. commentDetail.type == 0 &&
  9509. (tType == 1 || tType == 4)
  9510. "
  9511. @click="
  9512. showPicturePaint(
  9513. commentDetail.img ? commentDetail.img : commentDetail.works
  9514. )
  9515. "
  9516. >
  9517. 教师批注
  9518. </div>
  9519. </div>
  9520. <div
  9521. class="worksAnswer"
  9522. v-if="commentDetail.works && commentDetail.type == 2"
  9523. >
  9524. {{ JSON.parse(commentDetail.works)[0].answer }}
  9525. </div>
  9526. <div
  9527. class="worksAnswer"
  9528. v-if="commentDetail.works && commentDetail.type == 1"
  9529. >
  9530. <img
  9531. src="../../assets/teacherWork.png"
  9532. v-if="commentDetail.ateacher"
  9533. class="w_teachert"
  9534. />
  9535. <pdf
  9536. v-if="showPDF"
  9537. :pdfUrl="pptImgUrl"
  9538. style="width: 100%; height: 520px; overflow: auto"
  9539. :class="{ fullStyle: full }"
  9540. ></pdf>
  9541. <iframe
  9542. v-else
  9543. :src="pptImgUrl"
  9544. frameborder="0"
  9545. width="100%"
  9546. height="600"
  9547. :class="{ fullStyle: full }"
  9548. ></iframe>
  9549. </div>
  9550. <div
  9551. class="worksAnswer"
  9552. v-if="commentDetail.works && commentDetail.type == 0"
  9553. >
  9554. <img
  9555. src="../../assets/teacherWork.png"
  9556. v-if="commentDetail.ateacher"
  9557. class="w_teachert"
  9558. style="right: 105px"
  9559. />
  9560. <img
  9561. :src="commentDetail.works"
  9562. alt=""
  9563. @click="previewImg(commentDetail.works)"
  9564. />
  9565. </div>
  9566. <div
  9567. class="worksAnswer"
  9568. v-if="commentDetail.works && commentDetail.type == 3"
  9569. >
  9570. <img
  9571. src="../../assets/teacherWork.png"
  9572. v-if="commentDetail.ateacher"
  9573. class="w_teachert"
  9574. />
  9575. <video-player
  9576. class="video-player vjs-custom-skin"
  9577. :playsinline="true"
  9578. :options="videoDetail"
  9579. @play="onPlayerPlay($event)"
  9580. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9581. ></video-player>
  9582. </div>
  9583. <div
  9584. class="worksAnswer"
  9585. v-if="commentDetail.works && commentDetail.type == 10"
  9586. >
  9587. <div class="cont" v-html="commentDetail.works.text"></div>
  9588. </div>
  9589. <div
  9590. class="worksAnswer codeFileBox"
  9591. v-if="commentDetail.works && commentDetail.type == 12"
  9592. @click="downloadFile(commentDetail.works)"
  9593. >
  9594. <img src="../../assets/icon/codeFile.png" />
  9595. <div>点击下载文件</div>
  9596. </div>
  9597. <div
  9598. class="worksAnswer codeFileBox"
  9599. v-if="commentDetail.works && commentDetail.type == 15"
  9600. @click="
  9601. openCocoPi(
  9602. 57,
  9603. commentIndexJson.toolIndex,
  9604. commentDetail.userid,
  9605. commentDetail.sName
  9606. )
  9607. "
  9608. >
  9609. <img src="../../assets/icon/codeFile.png" />
  9610. <div>点击打开CocoPi</div>
  9611. </div>
  9612. <div
  9613. class="worksAnswer"
  9614. v-if="commentDetail.works && commentDetail.type == 13"
  9615. >
  9616. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9617. </div>
  9618. <div
  9619. class="worksAnswer"
  9620. v-if="commentDetail.works && commentDetail.type == 4"
  9621. >
  9622. <div class="evalCss">
  9623. <div class="nav">请选择星星进行评分</div>
  9624. <div class="middleBox" v-if="eScore.eStar">
  9625. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9626. <div class="nameAndrate">
  9627. <div>{{ e.value }}</div>
  9628. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9629. </div>
  9630. <div v-if="e.detail">{{ e.detail }}</div>
  9631. </div>
  9632. <div class="bz">
  9633. <textarea
  9634. disabled
  9635. rows="4"
  9636. class="pj"
  9637. style="
  9638. padding: 10px 5px;
  9639. width: 70%;
  9640. background: #f7f6f9;
  9641. font-size: 14px;
  9642. text-indent: 10px;
  9643. color: #000;
  9644. "
  9645. cols
  9646. v-model="eScore.eBzText"
  9647. placeholder="请输入评价内容..."
  9648. ></textarea>
  9649. </div>
  9650. </div>
  9651. </div>
  9652. </div>
  9653. <div class="comment">
  9654. <div class="commentList">
  9655. <div class="commentImg">
  9656. <img
  9657. @click="
  9658. isLikes(
  9659. commentDetail.wid,
  9660. userid,
  9661. 1,
  9662. null,
  9663. commentDetail.isLikes
  9664. )
  9665. "
  9666. :src="commentDetail.isLikes == true ? likes : noLikes"
  9667. alt=""
  9668. />
  9669. </div>
  9670. <div>{{ commentDetail.likesCount }}</div>
  9671. </div>
  9672. <div class="commentList">
  9673. <div class="commentImg">
  9674. <img src="../../assets/icon/comment/comment.png" alt="" />
  9675. </div>
  9676. <div>{{ commentDetail.commentCount }}</div>
  9677. </div>
  9678. </div>
  9679. <div class="drawPBox" v-if="commentDetail.img">
  9680. <span>教师批注</span>
  9681. <img
  9682. :src="commentDetail.img"
  9683. alt=""
  9684. @click="previewImg(commentDetail.img)"
  9685. />
  9686. <span
  9687. class="deleteImg"
  9688. v-if="tType == 1 || tType == 4"
  9689. @click.stop="deletePicturePaint(commentDetail.wid)"
  9690. style="
  9691. font-size: 14px;
  9692. width: auto !important;
  9693. color: #b4b4b4;
  9694. top: unset;
  9695. bottom: 0;
  9696. border: none;
  9697. padding: 0;
  9698. height: auto !important;
  9699. margin: 0;
  9700. "
  9701. >删除</span
  9702. >
  9703. </div>
  9704. </div>
  9705. <div class="commentBox">
  9706. <div class="pl">评论:</div>
  9707. <div style="max-height: 200px; overflow: auto">
  9708. <div
  9709. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9710. style="padding: 10px 0 0 0"
  9711. >
  9712. <div
  9713. class="studentDetail"
  9714. style="padding-top: 10px"
  9715. v-for="(co, coIndex) in commentDetail.commentJson"
  9716. :key="coIndex"
  9717. >
  9718. <div class="tx" style="min-width: 50px">
  9719. <img src="../../assets/avatar.png" alt="" />
  9720. </div>
  9721. <div class="plPerson">
  9722. <div class="plName">
  9723. <div>{{ co.commentPeople }}</div>
  9724. <div style="margin-left: 5px">
  9725. {{ co.commentTime }}
  9726. </div>
  9727. <div
  9728. class="deleteComment"
  9729. v-if="userid == co.userid"
  9730. @click="deleteComment(co.wid)"
  9731. >
  9732. 删除
  9733. </div>
  9734. </div>
  9735. <div class="plContent">{{ co.commentText }}</div>
  9736. </div>
  9737. </div>
  9738. </div>
  9739. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9740. </div>
  9741. </div>
  9742. <div style="margin-top: 10px">
  9743. <div class="displayBox">
  9744. <div
  9745. style="
  9746. color: #556db4;
  9747. font-size: 14px;
  9748. font-weight: bold;
  9749. padding-bottom: 10px;
  9750. "
  9751. >
  9752. 评价
  9753. </div>
  9754. <div class="easy_comment" v-if="false">
  9755. <div
  9756. v-for="(p, pIndex) in PlTextList"
  9757. :key="pIndex"
  9758. @click="fastText(p, 1)"
  9759. >
  9760. {{ p }}
  9761. </div>
  9762. </div>
  9763. </div>
  9764. <div>
  9765. <textarea
  9766. rows="3"
  9767. class="pj"
  9768. style="padding: 10px 5px"
  9769. cols
  9770. v-model="commentText"
  9771. placeholder="请输入评论"
  9772. ></textarea>
  9773. </div>
  9774. </div>
  9775. <div slot="footer">
  9776. <el-button
  9777. @click="
  9778. (commentDialogVisible = false),
  9779. (commentIndexJson = {}),
  9780. videoDetail.sources && videoDetail.sources[0]
  9781. ? (videoDetail.sources[0].src = '')
  9782. : ''
  9783. "
  9784. >取 消</el-button
  9785. >
  9786. <el-button
  9787. type="primary"
  9788. @click="addComment(commentDetail.wid, userid, 2)"
  9789. >确 定</el-button
  9790. >
  9791. </div>
  9792. </el-dialog>
  9793. <el-dialog
  9794. title="查看文档"
  9795. :visible.sync="fullDialogVisible"
  9796. :append-to-body="true"
  9797. width="100%"
  9798. :before-close="handleClose"
  9799. :show-close="false"
  9800. class="dialog_diy full_diy"
  9801. :class="{ full_diy2: fulltype == 3 }"
  9802. >
  9803. <div slot="title" class="header-title">
  9804. <div style="color: #fff">查看文档</div>
  9805. <div
  9806. @click="fullDialogVisible = false"
  9807. style="
  9808. cursor: pointer;
  9809. position: absolute;
  9810. top: 20px;
  9811. right: 20px;
  9812. color: #fff;
  9813. "
  9814. >
  9815. 退出全屏
  9816. </div>
  9817. </div>
  9818. <div style="height: 100%">
  9819. <div
  9820. class="wheel"
  9821. v-if="
  9822. fulltype == 2 &&
  9823. fullUrl.indexOf(
  9824. 'https://view.officeapps.live.com/op/view.aspx?src='
  9825. ) != -1
  9826. "
  9827. style="width: 95%; margin: 0 auto"
  9828. >
  9829. <iframe
  9830. style="width: 100%; height: 100%; border: none"
  9831. :src="fullUrl"
  9832. ></iframe>
  9833. </div>
  9834. <iframe
  9835. v-else-if="fulltype == 2"
  9836. style="width: 100%; height: 100%; border: none"
  9837. :src="fullUrl"
  9838. security="restricted"
  9839. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9840. ></iframe>
  9841. <pdf
  9842. v-else-if="fulltype == 3"
  9843. :pdfUrl="fullUrl"
  9844. style="width: 100%; height: 100%; overflow: auto"
  9845. ></pdf>
  9846. <div
  9847. class="wheel"
  9848. v-if="fulltype == 1"
  9849. style="
  9850. box-shadow: 0 0 6px 1px #f2f2f2;
  9851. width: 100%;
  9852. background: #f1f1f1;
  9853. "
  9854. >
  9855. <div class="title" style="width: 100%; box-sizing: border-box">
  9856. 查看文档
  9857. </div>
  9858. <el-form class="textBox" style="height: 90%">
  9859. <el-form-item class="textTitle">
  9860. <div style="font-size: 22px">
  9861. {{ fullUrl.name }}
  9862. </div>
  9863. </el-form-item>
  9864. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9865. <div
  9866. v-html="fullUrl.url"
  9867. class="textContent"
  9868. style="height: auto"
  9869. ></div>
  9870. </el-form>
  9871. </div>
  9872. </div>
  9873. <!-- <div slot="footer">
  9874. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9875. </div> -->
  9876. </el-dialog>
  9877. <el-dialog
  9878. title="个人评价"
  9879. :visible.sync="studentEvalDialogVisible"
  9880. :append-to-body="true"
  9881. width="800px"
  9882. :before-close="handleClose"
  9883. class="dialog_diy"
  9884. >
  9885. <div class="evalCss">
  9886. <div class="nav">请选择星星进行评分</div>
  9887. <div class="middleBox" v-if="eScore.eStar">
  9888. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9889. <div class="nameAndrate">
  9890. <div>{{ e.value }}</div>
  9891. <el-rate
  9892. v-model="eScore.eStar[eIndex]"
  9893. :disabled="isStar"
  9894. ></el-rate>
  9895. </div>
  9896. <div v-if="e.detail">{{ e.detail }}</div>
  9897. </div>
  9898. <div class="easy_comment" v-if="false">
  9899. <div
  9900. v-for="(p, pIndex) in PlTextList"
  9901. :key="pIndex"
  9902. @click="fastText(p, 2)"
  9903. >
  9904. {{ p }}
  9905. </div>
  9906. </div>
  9907. <div class="bz">
  9908. <textarea
  9909. :disabled="isStar"
  9910. rows="4"
  9911. class="pj"
  9912. style="
  9913. padding: 10px 5px;
  9914. width: 70%;
  9915. background: #f7f6f9;
  9916. font-size: 14px;
  9917. text-indent: 10px;
  9918. "
  9919. cols
  9920. v-model="eScore.eBzText"
  9921. placeholder="请输入评价内容..."
  9922. ></textarea>
  9923. </div>
  9924. </div>
  9925. </div>
  9926. <div slot="footer">
  9927. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9928. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9929. >确 定</el-button
  9930. >
  9931. </div>
  9932. </el-dialog>
  9933. <el-dialog
  9934. title="个人评价"
  9935. :visible.sync="studentEvalDialogVisibleTeacher"
  9936. :append-to-body="true"
  9937. width="800px"
  9938. :before-close="handleClose"
  9939. class="dialog_diy"
  9940. >
  9941. <div class="w_name">
  9942. 学生姓名:<span>{{ sStudent.student }}</span>
  9943. </div>
  9944. <div class="evalCss">
  9945. <div class="nav">请选择星星进行评分</div>
  9946. <div class="middleBox" v-if="eScore.eStar">
  9947. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9948. <div class="nameAndrate">
  9949. <div>{{ e.value }}</div>
  9950. <el-rate
  9951. v-model="eScore.eStar[eIndex]"
  9952. :disabled="isStar"
  9953. ></el-rate>
  9954. </div>
  9955. <div v-if="e.detail">{{ e.detail }}</div>
  9956. </div>
  9957. <div class="easy_comment" v-if="false">
  9958. <div
  9959. v-for="(p, pIndex) in PlTextList"
  9960. :key="pIndex"
  9961. @click="fastText(p, 2)"
  9962. >
  9963. {{ p }}
  9964. </div>
  9965. </div>
  9966. <div class="bz">
  9967. <textarea
  9968. :disabled="isStar"
  9969. rows="4"
  9970. class="pj"
  9971. style="
  9972. padding: 10px 5px;
  9973. width: 70%;
  9974. background: #f7f6f9;
  9975. font-size: 14px;
  9976. text-indent: 10px;
  9977. "
  9978. cols
  9979. v-model="eScore.eBzText"
  9980. placeholder="请输入评价内容..."
  9981. ></textarea>
  9982. </div>
  9983. </div>
  9984. </div>
  9985. <div slot="footer">
  9986. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9987. >取 消</el-button
  9988. >
  9989. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9990. >确 定</el-button
  9991. >
  9992. </div>
  9993. </el-dialog>
  9994. <el-dialog
  9995. title="选择匹配"
  9996. :visible.sync="dialogVisibleSelect"
  9997. :append-to-body="true"
  9998. width="90%"
  9999. :before-close="handleClose"
  10000. class="dialog_diy dialog_diy3"
  10001. >
  10002. <div v-if="selectJson">
  10003. <div class="select_box2">
  10004. <div class="select_box2_title">
  10005. <div>选择匹配</div>
  10006. <div>请选择对应的答案进行答题!</div>
  10007. </div>
  10008. <div class="select_box2_box">
  10009. <div class="select_box2_img">
  10010. <img
  10011. :src="selectJson.url"
  10012. @click="previewImg(selectJson.url)"
  10013. alt=""
  10014. />
  10015. </div>
  10016. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10017. <div style="padding-top: 15px">
  10018. <div class="select_answer_title" v-if="isSelect">
  10019. {{ selectAnswer.stu }}
  10020. </div>
  10021. <div class="select_answer_title" v-else>
  10022. 根据题目选择对应答案
  10023. </div>
  10024. <div
  10025. class="select_box2_answer_box"
  10026. v-for="(item2, checkIndex) in selectJson.select"
  10027. :key="checkIndex"
  10028. >
  10029. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10030. <el-select
  10031. :disabled="isSelect"
  10032. v-model="selectAnswer.answer[checkIndex]"
  10033. placeholder="请选择正确答案"
  10034. >
  10035. <el-option
  10036. v-for="(e, eIndex) in selectJson.select"
  10037. :key="eIndex"
  10038. :label="e"
  10039. :value="eIndex"
  10040. >
  10041. </el-option>
  10042. </el-select>
  10043. </div>
  10044. </div>
  10045. <div
  10046. class="rightAnswerCss"
  10047. v-if="isSelect && (tType == 1 || tType == 4)"
  10048. >
  10049. <div
  10050. v-for="(a, aIndex) in selectJson.answer"
  10051. :key="aIndex"
  10052. class="rightAnswer"
  10053. >
  10054. <div
  10055. v-if="selectAnswer.answer[aIndex] === a"
  10056. style="color: #767de1"
  10057. >
  10058. 回答正确
  10059. </div>
  10060. <div v-else>回答错误</div>
  10061. <div
  10062. style="margin-left: 10px"
  10063. v-if="selectAnswer.answer[aIndex] !== a"
  10064. >
  10065. 正确答案:
  10066. </div>
  10067. <div
  10068. :class="
  10069. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10070. "
  10071. >
  10072. {{ selectJson.select[a] }}
  10073. </div>
  10074. </div>
  10075. </div>
  10076. </div>
  10077. <div class="upAnswerCss">
  10078. <el-button
  10079. type="primary"
  10080. @click="addSelectAnswer"
  10081. v-if="!isSelect"
  10082. >提交答案</el-button
  10083. >
  10084. </div>
  10085. </div>
  10086. </div>
  10087. </div>
  10088. </el-dialog>
  10089. <el-dialog
  10090. title="选择匹配"
  10091. :visible.sync="dialogVisibleSelectTeacher"
  10092. :append-to-body="true"
  10093. width="90%"
  10094. :before-close="handleClose"
  10095. class="dialog_diy dialog_diy3"
  10096. >
  10097. <div v-if="selectJson">
  10098. <div class="w_name">
  10099. 学生姓名:<span>{{ sStudent.student }}</span>
  10100. </div>
  10101. <div class="select_box2">
  10102. <div class="select_box2_title">
  10103. <div>选择匹配</div>
  10104. <div>请选择对应的答案进行答题!</div>
  10105. </div>
  10106. <div class="select_box2_box">
  10107. <div class="select_box2_img">
  10108. <img
  10109. :src="selectJson.url"
  10110. @click="previewImg(selectJson.url)"
  10111. alt=""
  10112. />
  10113. </div>
  10114. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10115. <div style="padding-top: 15px">
  10116. <div class="select_answer_title" v-if="isSelect">
  10117. {{ selectAnswer.stu }}
  10118. </div>
  10119. <div class="select_answer_title" v-else>
  10120. 根据题目选择对应答案
  10121. </div>
  10122. <div
  10123. class="select_box2_answer_box"
  10124. v-for="(item2, checkIndex) in selectJson.select"
  10125. :key="checkIndex"
  10126. >
  10127. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10128. <el-select
  10129. :disabled="isSelect"
  10130. v-model="selectAnswer.answer[checkIndex]"
  10131. placeholder="请选择正确答案"
  10132. >
  10133. <el-option
  10134. v-for="(e, eIndex) in selectJson.select"
  10135. :key="eIndex"
  10136. :label="e"
  10137. :value="eIndex"
  10138. >
  10139. </el-option>
  10140. </el-select>
  10141. </div>
  10142. </div>
  10143. <div
  10144. class="rightAnswerCss"
  10145. v-if="isSelect && (tType == 1 || tType == 4)"
  10146. >
  10147. <div
  10148. v-for="(a, aIndex) in selectJson.answer"
  10149. :key="aIndex"
  10150. class="rightAnswer"
  10151. >
  10152. <div
  10153. v-if="selectAnswer.answer[aIndex] === a"
  10154. style="color: #767de1"
  10155. >
  10156. 回答正确
  10157. </div>
  10158. <div v-else>回答错误</div>
  10159. <div
  10160. style="margin-left: 10px"
  10161. v-if="selectAnswer.answer[aIndex] !== a"
  10162. >
  10163. 正确答案:
  10164. </div>
  10165. <div
  10166. :class="
  10167. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10168. "
  10169. >
  10170. {{ selectJson.select[a] }}
  10171. </div>
  10172. </div>
  10173. </div>
  10174. </div>
  10175. <div class="upAnswerCss">
  10176. <el-button
  10177. type="primary"
  10178. @click="addSelectAnswerTeacher"
  10179. v-if="!isSelect"
  10180. >提交答案</el-button
  10181. >
  10182. </div>
  10183. </div>
  10184. </div>
  10185. </div>
  10186. </el-dialog>
  10187. <el-dialog
  10188. title="教师评分"
  10189. :visible.sync="dialogVisibleScore"
  10190. :append-to-body="true"
  10191. width="800px"
  10192. :before-close="handleClose"
  10193. class="dialog_diy"
  10194. >
  10195. <div>
  10196. <div class="studentDetail">
  10197. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10198. <div class="nameAndTime">
  10199. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10200. <div>{{ commentDetail.time }}</div>
  10201. </div>
  10202. </div>
  10203. <div
  10204. class="worksAnswer"
  10205. v-if="commentDetail.works && commentDetail.type == 2"
  10206. >
  10207. {{ JSON.parse(commentDetail.works)[0].answer }}
  10208. </div>
  10209. <div
  10210. class="worksAnswer"
  10211. v-if="commentDetail.works && commentDetail.type == 1"
  10212. >
  10213. <pdf
  10214. v-if="showPDF"
  10215. :pdfUrl="pptImgUrl"
  10216. style="width: 100%; height: 520px; overflow: auto"
  10217. :class="{ fullStyle: full }"
  10218. ></pdf>
  10219. <iframe
  10220. v-else
  10221. :src="pptImgUrl"
  10222. frameborder="0"
  10223. width="100%"
  10224. height="600"
  10225. :class="{ fullStyle: full }"
  10226. ></iframe>
  10227. </div>
  10228. <div
  10229. class="worksAnswer"
  10230. v-if="commentDetail.works && commentDetail.type == 0"
  10231. >
  10232. <img
  10233. :src="commentDetail.works"
  10234. alt=""
  10235. @click="previewImg(commentDetail.works)"
  10236. />
  10237. </div>
  10238. <div
  10239. class="worksAnswer"
  10240. v-if="commentDetail.works && commentDetail.type == 3"
  10241. >
  10242. <video-player
  10243. class="video-player vjs-custom-skin"
  10244. :playsinline="true"
  10245. :options="videoDetail"
  10246. @play="onPlayerPlay($event)"
  10247. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10248. ></video-player>
  10249. </div>
  10250. <div
  10251. class="worksAnswer codeFileBox"
  10252. v-if="commentDetail.works && commentDetail.type == 12"
  10253. @click="downloadFile(commentDetail.works)"
  10254. >
  10255. <img src="../../assets/icon/codeFile.png" />
  10256. <div>点击下载文件</div>
  10257. </div>
  10258. <div
  10259. class="worksAnswer codeFileBox"
  10260. v-if="commentDetail.works && commentDetail.type == 15"
  10261. @click="
  10262. openCocoPi(
  10263. 57,
  10264. commentIndexJson.toolIndex,
  10265. commentDetail.userid,
  10266. commentDetail.sName
  10267. )
  10268. "
  10269. >
  10270. <img src="../../assets/icon/codeFile.png" />
  10271. <div>点击打开CocoPi</div>
  10272. </div>
  10273. <div
  10274. class="worksAnswer"
  10275. v-if="commentDetail.works && commentDetail.type == 13"
  10276. >
  10277. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10278. </div>
  10279. <div class="scoreBox">
  10280. <span class="t">请输入分数</span>
  10281. <el-input-number
  10282. :disabled="courseDetail.userid != userid"
  10283. v-model="wScore"
  10284. :controls="false"
  10285. :min="0"
  10286. :max="100"
  10287. ></el-input-number>
  10288. </div>
  10289. <div class="scoreDetailBox">
  10290. <span class="t">评分评论</span>
  10291. <el-input
  10292. type="textarea"
  10293. :rows="5"
  10294. :disabled="courseDetail.userid != userid"
  10295. resize="none"
  10296. v-model="scoreDetail"
  10297. placeholder="请输入对学生的评价"
  10298. >
  10299. </el-input>
  10300. </div>
  10301. </div>
  10302. <span slot="footer" class="dialog-footer">
  10303. <el-button
  10304. @click="
  10305. (dialogVisibleScore = false),
  10306. (commentIndexJson = {}),
  10307. videoDetail.sources && videoDetail.sources[0]
  10308. ? (videoDetail.sources[0].src = '')
  10309. : ''
  10310. "
  10311. >取 消</el-button
  10312. >
  10313. <el-button
  10314. type="primary"
  10315. v-if="courseDetail.userid == userid"
  10316. @click="scoreWork(commentDetail.wid)"
  10317. >确 定
  10318. </el-button>
  10319. </span>
  10320. </el-dialog>
  10321. <el-dialog
  10322. title="排序"
  10323. :visible.sync="dialogVisibleSentence"
  10324. :append-to-body="true"
  10325. width="1000px"
  10326. :before-close="handleClose"
  10327. class="dialog_diy dialog_diy3"
  10328. >
  10329. <div>
  10330. <div class="sentenBox">
  10331. <div
  10332. v-for="(st, stIndex) in sentenceList"
  10333. :key="stIndex"
  10334. style="padding-bottom: 20px"
  10335. >
  10336. <div style="padding: 15px 0 10px 20px" class="sentenceTitle" :index="stIndex+1">题目{{stIndex+1}}:请选择正确顺序</div>
  10337. <div class="cardList" v-if="st.chooseSenList">
  10338. <div class="cardBox">
  10339. <div
  10340. v-for="(r, rIndex) in st.chooseSenList"
  10341. :key="rIndex"
  10342. @click="returnCard(r, stIndex, rIndex)"
  10343. >
  10344. <el-tooltip
  10345. class="item"
  10346. effect="light"
  10347. :content="r"
  10348. placement="top"
  10349. v-if="r != '' && r != undefined"
  10350. >
  10351. <div
  10352. :class="{
  10353. isCard: r,
  10354. isChooseCard: r == '' || r == undefined,
  10355. }"
  10356. >
  10357. <div>{{ r }}</div>
  10358. </div>
  10359. </el-tooltip>
  10360. <div
  10361. :class="{
  10362. isCard: r,
  10363. isChooseCard: r == '' || r == undefined,
  10364. }"
  10365. v-else
  10366. >
  10367. <div>{{ r }}</div>
  10368. </div>
  10369. </div>
  10370. </div>
  10371. </div>
  10372. <div class="cardList" v-if="st.addChangeSen">
  10373. <div class="cardBox">
  10374. <div
  10375. v-for="(s, sIndex) in st.addChangeSen"
  10376. :key="sIndex"
  10377. @click="setRightAnswer(s, stIndex, sIndex)"
  10378. >
  10379. <el-tooltip
  10380. class="item"
  10381. effect="light"
  10382. :content="s"
  10383. placement="top"
  10384. v-if="s != '' && s != undefined"
  10385. >
  10386. <div
  10387. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10388. >
  10389. <div>{{ s }}</div>
  10390. </div>
  10391. </el-tooltip>
  10392. <div
  10393. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10394. v-else
  10395. >
  10396. <div>{{ s }}</div>
  10397. </div>
  10398. </div>
  10399. </div>
  10400. </div>
  10401. </div>
  10402. </div>
  10403. </div>
  10404. <span slot="footer" class="dialog-footer">
  10405. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10406. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10407. </span>
  10408. </el-dialog>
  10409. <el-dialog
  10410. title="排序"
  10411. :visible.sync="dialogVisibleSentenceTeacher"
  10412. :append-to-body="true"
  10413. width="1000px"
  10414. :before-close="handleClose"
  10415. class="dialog_diy dialog_diy3"
  10416. >
  10417. <div>
  10418. <div class="w_name">
  10419. 学生姓名:<span>{{ sStudent.student }}</span>
  10420. </div>
  10421. <div class="sentenBox">
  10422. <div
  10423. v-for="(st, stIndex) in sentenceList"
  10424. :key="stIndex"
  10425. style="padding-bottom: 20px"
  10426. >
  10427. <div style="padding: 15px 0 10px 20px" class="sentenceTitle" :index="stIndex+1">题目{{stIndex+1}}:请选择正确顺序</div>
  10428. <div class="cardList" v-if="st.chooseSenList">
  10429. <div class="cardBox">
  10430. <div
  10431. v-for="(r, rIndex) in st.chooseSenList"
  10432. :key="rIndex"
  10433. @click="returnCard(r, stIndex, rIndex)"
  10434. >
  10435. <el-tooltip
  10436. class="item"
  10437. effect="light"
  10438. :content="r"
  10439. placement="top"
  10440. v-if="r != '' && r != undefined"
  10441. >
  10442. <div
  10443. :class="{
  10444. isCard: r,
  10445. isChooseCard: r == '' || r == undefined,
  10446. }"
  10447. >
  10448. <div>{{ r }}</div>
  10449. </div>
  10450. </el-tooltip>
  10451. <div
  10452. :class="{
  10453. isCard: r,
  10454. isChooseCard: r == '' || r == undefined,
  10455. }"
  10456. v-else
  10457. >
  10458. <div>{{ r }}</div>
  10459. </div>
  10460. </div>
  10461. </div>
  10462. </div>
  10463. <div class="cardList" v-if="st.addChangeSen">
  10464. <div class="cardBox">
  10465. <div
  10466. v-for="(s, sIndex) in st.addChangeSen"
  10467. :key="sIndex"
  10468. @click="setRightAnswer(s, stIndex, sIndex)"
  10469. >
  10470. <el-tooltip
  10471. class="item"
  10472. effect="light"
  10473. :content="s"
  10474. placement="top"
  10475. v-if="s != '' && s != undefined"
  10476. >
  10477. <div
  10478. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10479. >
  10480. <div>{{ s }}</div>
  10481. </div>
  10482. </el-tooltip>
  10483. <div
  10484. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10485. v-else
  10486. >
  10487. <div>{{ s }}</div>
  10488. </div>
  10489. </div>
  10490. </div>
  10491. </div>
  10492. </div>
  10493. </div>
  10494. </div>
  10495. <span slot="footer" class="dialog-footer">
  10496. <el-button @click="dialogVisibleSentenceTeacher = false"
  10497. >取 消</el-button
  10498. >
  10499. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10500. </span>
  10501. </el-dialog>
  10502. <el-dialog
  10503. title="排序"
  10504. :visible.sync="dialogVisibleSentence1"
  10505. :append-to-body="true"
  10506. width="1000px"
  10507. :before-close="handleClose"
  10508. class="dialog_diy dialog_diy3"
  10509. >
  10510. <div>
  10511. <div class="sentenBox">
  10512. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10513. {{ sentenceList1.stuName }}的作业
  10514. </div>
  10515. <div
  10516. v-for="(st, stIndex) in sentenceList1"
  10517. :key="stIndex"
  10518. style="padding-bottom: 20px"
  10519. >
  10520. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10521. 第{{ stIndex + 1 }}题
  10522. </div>
  10523. <div class="isWrong">
  10524. <div class="cardList1" v-if="st.chooseSenList">
  10525. <div class="cardBox">
  10526. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10527. <el-tooltip
  10528. class="item"
  10529. effect="light"
  10530. :content="s"
  10531. placement="top"
  10532. >
  10533. <div class="isCard">
  10534. <div>{{ s }}</div>
  10535. </div>
  10536. </el-tooltip>
  10537. </div>
  10538. </div>
  10539. <div class="cardAnswerBox">
  10540. 组成句子:{{ st.chooseSenList.join(" ") }}
  10541. </div>
  10542. </div>
  10543. <div
  10544. class="answerRight isTj"
  10545. v-if="
  10546. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10547. (tType == 1 || tType == 4)
  10548. "
  10549. >
  10550. <div class="isTjImg">
  10551. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10552. </div>
  10553. <div>回答正确</div>
  10554. </div>
  10555. <div
  10556. class="answerRight isTj"
  10557. v-if="
  10558. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10559. (tType == 1 || tType == 4)
  10560. "
  10561. >
  10562. <div class="isTjImg">
  10563. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10564. </div>
  10565. <div>回答错误</div>
  10566. </div>
  10567. </div>
  10568. <div
  10569. v-if="
  10570. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10571. (tType == 1 || tType == 4)
  10572. "
  10573. >
  10574. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10575. <div
  10576. class="cardList"
  10577. v-if="st.rightAnswer"
  10578. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10579. >
  10580. <div class="cardBox">
  10581. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10582. <el-tooltip
  10583. class="item"
  10584. effect="light"
  10585. :content="r"
  10586. placement="top"
  10587. >
  10588. <div class="isCard1">
  10589. <div>{{ r }}</div>
  10590. </div>
  10591. </el-tooltip>
  10592. </div>
  10593. </div>
  10594. <div class="cardAnswerBox">
  10595. 组成句子:{{ st.rightAnswer.join(" ") }}
  10596. </div>
  10597. </div>
  10598. </div>
  10599. </div>
  10600. </div>
  10601. </div>
  10602. <span slot="footer" class="dialog-footer">
  10603. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10604. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10605. >确 定</el-button
  10606. >
  10607. </span>
  10608. </el-dialog>
  10609. <el-dialog
  10610. title="提交作业"
  10611. :visible.sync="dialogVisibleWorks"
  10612. :append-to-body="true"
  10613. width="500px"
  10614. :before-close="handleClose"
  10615. class="dialog_change"
  10616. >
  10617. <div class="marginT">
  10618. <div class="w_name">
  10619. 学生姓名:<span>{{ sStudent.student }}</span>
  10620. </div>
  10621. <div>上传文件</div>
  10622. <div
  10623. class="chapter_add"
  10624. @click="addImg($event)"
  10625. v-if="studyJuri[0].cover.length == 0"
  10626. >
  10627. <div class="up_photo">
  10628. <img src="../../assets/uploadImg2.png" alt />
  10629. </div>
  10630. <!-- <input
  10631. type="file"
  10632. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10633. style="display: none"
  10634. @change="beforeUpload1($event, 1)"
  10635. /> -->
  10636. <input
  10637. type="file"
  10638. accept="*"
  10639. style="display: none"
  10640. @change="beforeUpload1($event, 1)"
  10641. />
  10642. </div>
  10643. <!-- capture="camera" -->
  10644. <div
  10645. class="chapter_add"
  10646. style="
  10647. display: flex;
  10648. width: 100%;
  10649. flex-direction: row;
  10650. flex-wrap: wrap;
  10651. justify-content: flex-start;
  10652. padding: 15px 0;
  10653. "
  10654. v-if="studyJuri[0].cover.length > 0"
  10655. >
  10656. <div class="upCover">
  10657. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10658. <img :src="word" alt v-else-if="fileType == 1" />
  10659. <img :src="video" alt v-else-if="fileType == 2" />
  10660. <img :src="word2" alt v-else-if="fileType == 3" />
  10661. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10662. <div class="deleteWord" @click="clean(1)">
  10663. <img src="../../assets/icon/deleteWorks.png" alt />
  10664. </div>
  10665. </div>
  10666. </div>
  10667. </div>
  10668. <div
  10669. class="upload_send"
  10670. @click="addCourseWorksTeacher(taskCount)"
  10671. v-if="!proVisible"
  10672. >
  10673. 提交
  10674. </div>
  10675. </el-dialog>
  10676. <el-dialog
  10677. title="问答"
  10678. :visible.sync="answerDialogVisibleTeacher"
  10679. :append-to-body="true"
  10680. width="800px"
  10681. :before-close="handleClose"
  10682. class="dialog_diy"
  10683. >
  10684. <div>
  10685. <div class="w_name">
  10686. 学生姓名:<span>{{ sStudent.student }}</span>
  10687. </div>
  10688. <div
  10689. style="
  10690. display: flex;
  10691. flex-wrap: nowrap;
  10692. flex-direction: column;
  10693. position: relative;
  10694. "
  10695. >
  10696. <div class="queTop" style="padding: 20px 0 20px 0">
  10697. <div class="question">
  10698. <img src="../../assets/icon/question.png" alt />
  10699. </div>
  10700. <div class="queTitle">
  10701. <div style="width: 90px; min-width: 90px">提问:</div>
  10702. <div>{{ answerQ }}</div>
  10703. </div>
  10704. </div>
  10705. <div class="ediBottom">
  10706. <textarea
  10707. rows="6"
  10708. class="binfo_input"
  10709. cols
  10710. style="width: 95%; height: 120px"
  10711. v-model="questionAnswer"
  10712. ></textarea>
  10713. </div>
  10714. </div>
  10715. </div>
  10716. <div slot="footer">
  10717. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10718. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10719. </div>
  10720. </el-dialog>
  10721. <ImgDraw
  10722. :drawShow="drawShow"
  10723. @closeDraw="closeDraw"
  10724. @addImgDraw="addImgDraw"
  10725. :bg="bg"
  10726. ></ImgDraw>
  10727. <el-dialog
  10728. title="表格"
  10729. :visible.sync="dialogVisibleTable"
  10730. :append-to-body="true"
  10731. width="95%"
  10732. :before-close="handleClose"
  10733. class="dialog_diy"
  10734. >
  10735. <el-form>
  10736. <div>表格内容</div>
  10737. <Table
  10738. v-model="tableJson.text"
  10739. @change="change"
  10740. v-if="dialogVisibleTable"
  10741. ></Table>
  10742. </el-form>
  10743. <span slot="footer" class="dialog-footer">
  10744. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10745. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10746. </span>
  10747. </el-dialog>
  10748. <el-dialog
  10749. title="表格"
  10750. :visible.sync="dialogVisibleTableTeacher"
  10751. :append-to-body="true"
  10752. width="95%"
  10753. :before-close="handleClose"
  10754. class="dialog_diy"
  10755. >
  10756. <el-form>
  10757. <div class="w_name">
  10758. 学生姓名:<span>{{ sStudent.student }}</span>
  10759. </div>
  10760. <div>表格内容</div>
  10761. <Table
  10762. v-model="tableJson.text"
  10763. @change="change"
  10764. v-if="dialogVisibleTableTeacher"
  10765. ></Table>
  10766. </el-form>
  10767. <span slot="footer" class="dialog-footer">
  10768. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10769. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10770. </span>
  10771. </el-dialog>
  10772. <el-dialog
  10773. title="文档"
  10774. :visible.sync="dialogVisibleWord"
  10775. :append-to-body="true"
  10776. width="95%"
  10777. :before-close="handleClose"
  10778. class="dialog_diy"
  10779. >
  10780. <el-form>
  10781. <div>文档内容</div>
  10782. <editor-bar
  10783. v-model="wordJson.text"
  10784. v-if="dialogVisibleWord"
  10785. ></editor-bar>
  10786. </el-form>
  10787. <span slot="footer" class="dialog-footer">
  10788. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10789. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10790. </span>
  10791. </el-dialog>
  10792. <el-dialog
  10793. title="文档"
  10794. :visible.sync="dialogVisibleWordTeacher"
  10795. :append-to-body="true"
  10796. width="95%"
  10797. :before-close="handleClose"
  10798. class="dialog_diy"
  10799. >
  10800. <el-form>
  10801. <div class="w_name">
  10802. 学生姓名:<span>{{ sStudent.student }}</span>
  10803. </div>
  10804. <div>文档内容</div>
  10805. <editor-bar
  10806. v-model="wordJson.text"
  10807. v-if="dialogVisibleWordTeacher"
  10808. ></editor-bar>
  10809. </el-form>
  10810. <span slot="footer" class="dialog-footer">
  10811. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10812. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10813. </span>
  10814. </el-dialog>
  10815. <el-dialog
  10816. title="表格"
  10817. :visible.sync="dialogVisibleTable2"
  10818. :append-to-body="true"
  10819. width="95%"
  10820. :before-close="handleClose"
  10821. class="dialog_diy"
  10822. >
  10823. <el-form>
  10824. <div class="cont" v-html="tableJson.text"></div>
  10825. </el-form>
  10826. <span slot="footer" class="dialog-footer">
  10827. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10828. </span>
  10829. </el-dialog>
  10830. <el-dialog
  10831. title="文档"
  10832. :visible.sync="dialogVisibleTable3"
  10833. :append-to-body="true"
  10834. width="95%"
  10835. :before-close="handleClose"
  10836. class="dialog_diy"
  10837. >
  10838. <el-form>
  10839. <div class="cont" v-html="tableJson.text"></div>
  10840. </el-form>
  10841. <span slot="footer" class="dialog-footer">
  10842. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10843. </span>
  10844. </el-dialog>
  10845. <el-dialog
  10846. title="分组设置"
  10847. :visible.sync="dialogVisibleGroup"
  10848. :append-to-body="true"
  10849. width="95%"
  10850. :before-close="handleClose"
  10851. class="dialog_diy"
  10852. >
  10853. <div v-if="dialogVisibleGroup">
  10854. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10855. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10856. 提示:需要锁定位置,才能点击头像修改座位。
  10857. </div>
  10858. <div
  10859. type="primary"
  10860. v-if="groupJson.islock == 1"
  10861. class="returnBtn"
  10862. style="background-color: #225bc7"
  10863. @click="lockChair"
  10864. >
  10865. 锁定位置
  10866. </div>
  10867. <div
  10868. type="primary"
  10869. v-else
  10870. class="returnBtn"
  10871. style="background-color: #225bc7"
  10872. @click="lockChair"
  10873. >
  10874. 解锁位置
  10875. </div>
  10876. <div
  10877. type="primary"
  10878. @click="updateGroup"
  10879. class="returnBtn"
  10880. style="background-color: #225bc7"
  10881. >
  10882. 分组设置
  10883. </div>
  10884. </div>
  10885. <div>
  10886. <div
  10887. class="g_d_box"
  10888. v-if="groupJson.group && groupStudent[toolindex]"
  10889. >
  10890. <div
  10891. class="g_d_group"
  10892. v-for="(g, gindex) in groupJson.group"
  10893. :key="gindex"
  10894. >
  10895. <div class="g_d_group_chair">
  10896. <div v-if="groupJson.number > 1">
  10897. <span
  10898. :class="{
  10899. isChair:
  10900. groupStudent[toolindex][gindex] &&
  10901. groupStudent[toolindex][gindex][0],
  10902. updateChair:
  10903. courseDetail.userid == userid &&
  10904. groupStudent[toolindex][gindex] &&
  10905. groupStudent[toolindex][gindex][0] &&
  10906. groupJson.islock == 2,
  10907. }"
  10908. ><span
  10909. class="updateChairBtn"
  10910. @click="
  10911. updateGroupChair(
  10912. groupStudent[toolindex][gindex] &&
  10913. groupStudent[toolindex][gindex][0]
  10914. )
  10915. "
  10916. >修改</span
  10917. ></span
  10918. ><span>{{
  10919. groupStudent[toolindex][gindex] &&
  10920. groupStudent[toolindex][gindex][0]
  10921. ? groupStudent[toolindex][gindex] &&
  10922. groupStudent[toolindex][gindex][0].name
  10923. : "空位置"
  10924. }}</span>
  10925. </div>
  10926. <div v-if="groupJson.number > 4">
  10927. <span
  10928. :class="{
  10929. isChair:
  10930. groupStudent[toolindex][gindex] &&
  10931. groupStudent[toolindex][gindex][4],
  10932. updateChair:
  10933. courseDetail.userid == userid &&
  10934. groupStudent[toolindex][gindex] &&
  10935. groupStudent[toolindex][gindex][4] &&
  10936. groupJson.islock == 2,
  10937. }"
  10938. ><span
  10939. class="updateChairBtn"
  10940. @click="
  10941. updateGroupChair(
  10942. groupStudent[toolindex][gindex] &&
  10943. groupStudent[toolindex][gindex][4]
  10944. )
  10945. "
  10946. >修改</span
  10947. ></span
  10948. ><span>{{
  10949. groupStudent[toolindex][gindex] &&
  10950. groupStudent[toolindex][gindex][4]
  10951. ? groupStudent[toolindex][gindex] &&
  10952. groupStudent[toolindex][gindex][4].name
  10953. : "空位置"
  10954. }}</span>
  10955. </div>
  10956. <div v-if="groupJson.number > 8">
  10957. <span
  10958. :class="{
  10959. isChair:
  10960. groupStudent[toolindex][gindex] &&
  10961. groupStudent[toolindex][gindex][8],
  10962. updateChair:
  10963. courseDetail.userid == userid &&
  10964. groupStudent[toolindex][gindex] &&
  10965. groupStudent[toolindex][gindex][8] &&
  10966. groupJson.islock == 2,
  10967. }"
  10968. ><span
  10969. class="updateChairBtn"
  10970. @click="
  10971. updateGroupChair(
  10972. groupStudent[toolindex][gindex] &&
  10973. groupStudent[toolindex][gindex][8]
  10974. )
  10975. "
  10976. >修改</span
  10977. ></span
  10978. ><span>{{
  10979. groupStudent[toolindex][gindex] &&
  10980. groupStudent[toolindex][gindex][8]
  10981. ? groupStudent[toolindex][gindex] &&
  10982. groupStudent[toolindex][gindex][8].name
  10983. : "空位置"
  10984. }}</span>
  10985. </div>
  10986. </div>
  10987. <div class="g_d_group_tableBox">
  10988. <div class="g_d_group_chair2">
  10989. <div v-if="groupJson.number > 2">
  10990. <span
  10991. :class="{
  10992. isChair:
  10993. groupStudent[toolindex][gindex] &&
  10994. groupStudent[toolindex][gindex][2],
  10995. updateChair:
  10996. courseDetail.userid == userid &&
  10997. groupStudent[toolindex][gindex] &&
  10998. groupStudent[toolindex][gindex][2] &&
  10999. groupJson.islock == 2,
  11000. }"
  11001. ><span
  11002. class="updateChairBtn"
  11003. @click="
  11004. updateGroupChair(
  11005. groupStudent[toolindex][gindex] &&
  11006. groupStudent[toolindex][gindex][2]
  11007. )
  11008. "
  11009. >修改</span
  11010. ></span
  11011. ><span>{{
  11012. groupStudent[toolindex][gindex] &&
  11013. groupStudent[toolindex][gindex][2]
  11014. ? groupStudent[toolindex][gindex] &&
  11015. groupStudent[toolindex][gindex][2].name
  11016. : "空位置"
  11017. }}</span>
  11018. </div>
  11019. <div v-if="groupJson.number > 6">
  11020. <span
  11021. :class="{
  11022. isChair:
  11023. groupStudent[toolindex][gindex] &&
  11024. groupStudent[toolindex][gindex][6],
  11025. updateChair:
  11026. courseDetail.userid == userid &&
  11027. groupStudent[toolindex][gindex] &&
  11028. groupStudent[toolindex][gindex][6] &&
  11029. groupJson.islock == 2,
  11030. }"
  11031. ><span
  11032. class="updateChairBtn"
  11033. @click="
  11034. updateGroupChair(
  11035. groupStudent[toolindex][gindex] &&
  11036. groupStudent[toolindex][gindex][6]
  11037. )
  11038. "
  11039. >修改</span
  11040. ></span
  11041. ><span>{{
  11042. groupStudent[toolindex][gindex] &&
  11043. groupStudent[toolindex][gindex][6]
  11044. ? groupStudent[toolindex][gindex] &&
  11045. groupStudent[toolindex][gindex][6].name
  11046. : "空位置"
  11047. }}</span>
  11048. </div>
  11049. </div>
  11050. <div class="g_d_group_table">
  11051. <div>
  11052. {{ g.name }}
  11053. </div>
  11054. <div>
  11055. <div
  11056. v-if="
  11057. courseDetail.userid == userid && groupJson.islock == 2
  11058. "
  11059. @click="deleteGroupChair(gindex)"
  11060. >
  11061. 移除组员
  11062. </div>
  11063. <div
  11064. @click="selectGroup(gindex)"
  11065. v-else-if="
  11066. groupStudentUid[toolindex] &&
  11067. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11068. "
  11069. >
  11070. 加入分组
  11071. </div>
  11072. <div
  11073. @click="
  11074. exitGroup(
  11075. groupStudent[toolindex][gindex] &&
  11076. groupStudent[toolindex][gindex][
  11077. groupStudentUid[toolindex][gindex].indexOf(userid)
  11078. ].id
  11079. )
  11080. "
  11081. v-else-if="
  11082. groupStudentUid[toolindex] &&
  11083. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11084. "
  11085. >
  11086. 退出分组
  11087. </div>
  11088. </div>
  11089. </div>
  11090. <div class="g_d_group_chair2">
  11091. <div v-if="groupJson.number > 3">
  11092. <span
  11093. :class="{
  11094. isChair:
  11095. groupStudent[toolindex][gindex] &&
  11096. groupStudent[toolindex][gindex][3],
  11097. updateChair:
  11098. courseDetail.userid == userid &&
  11099. groupStudent[toolindex][gindex] &&
  11100. groupStudent[toolindex][gindex][3] &&
  11101. groupJson.islock == 2,
  11102. }"
  11103. ><span
  11104. class="updateChairBtn"
  11105. @click="
  11106. updateGroupChair(
  11107. groupStudent[toolindex][gindex] &&
  11108. groupStudent[toolindex][gindex][3]
  11109. )
  11110. "
  11111. >修改</span
  11112. ></span
  11113. ><span>{{
  11114. groupStudent[toolindex][gindex] &&
  11115. groupStudent[toolindex][gindex][3]
  11116. ? groupStudent[toolindex][gindex] &&
  11117. groupStudent[toolindex][gindex][3].name
  11118. : "空位置"
  11119. }}</span>
  11120. </div>
  11121. <div v-if="groupJson.number > 7">
  11122. <span
  11123. :class="{
  11124. isChair:
  11125. groupStudent[toolindex][gindex] &&
  11126. groupStudent[toolindex][gindex][7],
  11127. updateChair:
  11128. courseDetail.userid == userid &&
  11129. groupStudent[toolindex][gindex] &&
  11130. groupStudent[toolindex][gindex][7] &&
  11131. groupJson.islock == 2,
  11132. }"
  11133. ><span
  11134. class="updateChairBtn"
  11135. @click="
  11136. updateGroupChair(
  11137. groupStudent[toolindex][gindex] &&
  11138. groupStudent[toolindex][gindex][7]
  11139. )
  11140. "
  11141. >修改</span
  11142. ></span
  11143. ><span>{{
  11144. groupStudent[toolindex][gindex] &&
  11145. groupStudent[toolindex][gindex][7]
  11146. ? groupStudent[toolindex][gindex] &&
  11147. groupStudent[toolindex][gindex][7].name
  11148. : "空位置"
  11149. }}</span>
  11150. </div>
  11151. </div>
  11152. </div>
  11153. <div class="g_d_group_chair">
  11154. <div v-if="groupJson.number > 1">
  11155. <span
  11156. :class="{
  11157. isChair:
  11158. groupStudent[toolindex][gindex] &&
  11159. groupStudent[toolindex][gindex][1],
  11160. updateChair:
  11161. courseDetail.userid == userid &&
  11162. groupStudent[toolindex][gindex] &&
  11163. groupStudent[toolindex][gindex][1] &&
  11164. groupJson.islock == 2,
  11165. }"
  11166. ><span
  11167. class="updateChairBtn"
  11168. @click="
  11169. updateGroupChair(
  11170. groupStudent[toolindex][gindex] &&
  11171. groupStudent[toolindex][gindex][1]
  11172. )
  11173. "
  11174. >修改</span
  11175. ></span
  11176. ><span>{{
  11177. groupStudent[toolindex][gindex] &&
  11178. groupStudent[toolindex][gindex][1]
  11179. ? groupStudent[toolindex][gindex] &&
  11180. groupStudent[toolindex][gindex][1].name
  11181. : "空位置"
  11182. }}</span>
  11183. </div>
  11184. <div v-if="groupJson.number > 5">
  11185. <span
  11186. :class="{
  11187. isChair:
  11188. groupStudent[toolindex][gindex] &&
  11189. groupStudent[toolindex][gindex][5],
  11190. updateChair:
  11191. courseDetail.userid == userid &&
  11192. groupStudent[toolindex][gindex] &&
  11193. groupStudent[toolindex][gindex][5] &&
  11194. groupJson.islock == 2,
  11195. }"
  11196. ><span
  11197. class="updateChairBtn"
  11198. @click="
  11199. updateGroupChair(
  11200. groupStudent[toolindex][gindex] &&
  11201. groupStudent[toolindex][gindex][5]
  11202. )
  11203. "
  11204. >修改</span
  11205. ></span
  11206. ><span>{{
  11207. groupStudent[toolindex][gindex] &&
  11208. groupStudent[toolindex][gindex][5]
  11209. ? groupStudent[toolindex][gindex] &&
  11210. groupStudent[toolindex][gindex][5].name
  11211. : "空位置"
  11212. }}</span>
  11213. </div>
  11214. <div v-if="groupJson.number > 9">
  11215. <span
  11216. :class="{
  11217. isChair:
  11218. groupStudent[toolindex][gindex] &&
  11219. groupStudent[toolindex][gindex][9],
  11220. updateChair:
  11221. courseDetail.userid == userid &&
  11222. groupStudent[toolindex][gindex] &&
  11223. groupStudent[toolindex][gindex][9] &&
  11224. groupJson.islock == 2,
  11225. }"
  11226. ><span
  11227. class="updateChairBtn"
  11228. @click="
  11229. updateGroupChair(
  11230. groupStudent[toolindex][gindex] &&
  11231. groupStudent[toolindex][gindex][9]
  11232. )
  11233. "
  11234. >修改</span
  11235. ></span
  11236. ><span>{{
  11237. groupStudent[toolindex][gindex] &&
  11238. groupStudent[toolindex][gindex][9]
  11239. ? groupStudent[toolindex][gindex] &&
  11240. groupStudent[toolindex][gindex][9].name
  11241. : "空位置"
  11242. }}</span>
  11243. </div>
  11244. </div>
  11245. </div>
  11246. </div>
  11247. </div>
  11248. </div>
  11249. <span slot="footer" class="dialog-footer">
  11250. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11251. </span>
  11252. </el-dialog>
  11253. <el-dialog
  11254. title="分组设置"
  11255. :visible.sync="dialogVisibleGroup2"
  11256. :append-to-body="true"
  11257. width="650px"
  11258. :before-close="handleClose"
  11259. class="dialog_diy"
  11260. >
  11261. <div class="groupBox">
  11262. <div v-if="groupJson2.group" class="groupContent">
  11263. <div class="groupTitle">请设置小组数量及名称</div>
  11264. <div
  11265. v-for="(item, index) in groupJson2.group"
  11266. :key="index"
  11267. class="groupName"
  11268. >
  11269. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11270. <el-input
  11271. v-model="item.name"
  11272. placeholder="请输入名称..."
  11273. style="width: 250px"
  11274. ></el-input>
  11275. <!-- <div class="groupBtn">
  11276. <el-button type="primary" size="small" @click="addGroup(index)">
  11277. 添加</el-button>
  11278. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11279. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11280. </div> -->
  11281. </div>
  11282. </div>
  11283. <div class="groupContent">
  11284. <div class="groupTitle">请设置每组人数</div>
  11285. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11286. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11287. <el-input v-model="groupJson.number" style="width:150px"
  11288. placeholder="请输入2-10的数字" @change="numberPan"></el-input>
  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. pzStype:1,
  11931. };
  11932. },
  11933. methods: {
  11934. jump() {
  11935. window.parent.postMessage({ tools: "43" }, "*");
  11936. },
  11937. getUpdateMore(f, checkboxList, searchTN, index) {
  11938. this.dialogVisibleMember = f;
  11939. this.checkboxList = checkboxList;
  11940. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11941. this.plIndex = index;
  11942. },
  11943. setPlname(a) {
  11944. if (this.plworkFile.length) {
  11945. this.plworkFile[this.plIndex].username = a;
  11946. } else {
  11947. this.worksSName = a;
  11948. }
  11949. this.dialogVisibleMember = false;
  11950. },
  11951. previewImg(url) {
  11952. this.$hevueImgPreview(url);
  11953. },
  11954. checkImg(list) {
  11955. if (!list.length) {
  11956. return;
  11957. }
  11958. this.$hevueImgPreview({
  11959. multiple: true, // 开启多图预览模式
  11960. imgList: list, // 需要预览的多图数组
  11961. });
  11962. },
  11963. change(val) {
  11964. console.log(val);
  11965. },
  11966. goTo(path) {
  11967. this.$router.push(path);
  11968. },
  11969. handlePictureCardPreview(url) {
  11970. this.dialogImageUrl = url;
  11971. this.pictureDialog = true;
  11972. },
  11973. clean(type) {
  11974. if (type == 1) {
  11975. this.studyJuri[0].cover.splice(0, 1);
  11976. } else if (type == 2) {
  11977. this.studyJuri[0].upVedio.splice(0, 1);
  11978. } else {
  11979. this.studyJuri[0].upFile.splice(0, 1);
  11980. }
  11981. },
  11982. clean2(index) {
  11983. this.plworkFile.splice(index, 1);
  11984. },
  11985. handleClose(done) {
  11986. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  11987. this.videoDetail.sources[0].src = "";
  11988. }
  11989. this.commentIndexJson = {};
  11990. done();
  11991. },
  11992. fullTools() {
  11993. this.full = !this.full;
  11994. },
  11995. imgChange(file, fileList, type) {
  11996. if (type == 1) {
  11997. var _tmp = this.studyJuri[0].cover;
  11998. } else if (type == 2) {
  11999. var _tmp = this.studyJuri[0].upVedio;
  12000. } else {
  12001. var _tmp = this.studyJuri[0].upFile;
  12002. }
  12003. this.noneBtnImg = _tmp.length >= 1;
  12004. },
  12005. setContent(bool) {
  12006. this.contentDialog = bool;
  12007. if (bool && this.mlDialog) {
  12008. document.querySelector(".workd_media").style.height = "650px";
  12009. } else {
  12010. document.querySelector(".workd_media").style.height = "auto";
  12011. }
  12012. },
  12013. setContent2(bool) {
  12014. this.mlDialog = bool;
  12015. if (bool && this.contentDialog) {
  12016. document.querySelector(".workd_media").style.height = "650px";
  12017. } else {
  12018. document.querySelector(".workd_media").style.height = "auto";
  12019. }
  12020. },
  12021. addImg(e) {
  12022. var el = e.currentTarget;
  12023. // this.$message.success('触发上传')
  12024. el.getElementsByTagName("input")[0].click();
  12025. e.target.value = "";
  12026. },
  12027. addSelectAnswer() {
  12028. let params = [
  12029. {
  12030. uid: this.userid,
  12031. cid: this.id,
  12032. stage: this.courseType,
  12033. task: this.taskCount,
  12034. tool: this.toolindex,
  12035. content: this.selectAnswer.answer,
  12036. type: 7,
  12037. },
  12038. ];
  12039. this.ajax
  12040. .post(this.$store.state.api + "addCourseWorks", params)
  12041. .then((res) => {
  12042. this.$message({
  12043. message: "提交成功",
  12044. type: "success",
  12045. });
  12046. this.dialogVisibleSelect = false;
  12047. // this.selectAnswer = {};
  12048. this.selectSWorks();
  12049. this.selectStudent();
  12050. })
  12051. .catch((err) => {
  12052. this.$message.error("提交失败");
  12053. console.error(err);
  12054. });
  12055. },
  12056. addSelectAnswerTeacher() {
  12057. let params = [
  12058. {
  12059. uid: this.sStudent.userid,
  12060. cid: this.id,
  12061. stage: this.courseType,
  12062. task: this.taskCount,
  12063. tool: this.toolindex,
  12064. content: this.selectAnswer.answer,
  12065. type: 7,
  12066. },
  12067. ];
  12068. this.ajax
  12069. .post(this.$store.state.api + "addCourseWorks", params)
  12070. .then((res) => {
  12071. this.$message({
  12072. message: "提交成功",
  12073. type: "success",
  12074. });
  12075. this.dialogVisibleSelectTeacher = false;
  12076. // this.selectAnswer = {};
  12077. this.selectSWorks();
  12078. this.selectStudent();
  12079. })
  12080. .catch((err) => {
  12081. this.$message.error("提交失败");
  12082. console.error(err);
  12083. });
  12084. },
  12085. addSenWorks() {
  12086. for (var i = 0; i < this.sentenceList.length; i++) {
  12087. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12088. if (
  12089. this.sentenceList[i].chooseSenList[j] == undefined ||
  12090. this.sentenceList[i].chooseSenList[j] == ""
  12091. ) {
  12092. this.$message.error("请将答案填写完整!");
  12093. return;
  12094. }
  12095. }
  12096. }
  12097. let params = [
  12098. {
  12099. uid: this.userid,
  12100. cid: this.id,
  12101. stage: this.courseType,
  12102. task: this.taskCount,
  12103. tool: this.toolindex,
  12104. content: JSON.stringify(this.sentenceList),
  12105. type: 9,
  12106. },
  12107. ];
  12108. this.ajax
  12109. .post(this.$store.state.api + "addCourseWorks", params)
  12110. .then((res) => {
  12111. this.$message({
  12112. message: "提交成功",
  12113. type: "success",
  12114. });
  12115. this.dialogVisibleSentence = false;
  12116. // this.selectAnswer = {};
  12117. this.selectSWorks();
  12118. this.selectStudent();
  12119. })
  12120. .catch((err) => {
  12121. this.$message.error("提交失败");
  12122. console.error(err);
  12123. });
  12124. },
  12125. addSenWorksTeacher() {
  12126. for (var i = 0; i < this.sentenceList.length; i++) {
  12127. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12128. if (
  12129. this.sentenceList[i].chooseSenList[j] == undefined ||
  12130. this.sentenceList[i].chooseSenList[j] == ""
  12131. ) {
  12132. this.$message.error("请将答案填写完整!");
  12133. return;
  12134. }
  12135. }
  12136. }
  12137. let params = [
  12138. {
  12139. uid: this.sStudent.userid,
  12140. cid: this.id,
  12141. stage: this.courseType,
  12142. task: this.taskCount,
  12143. tool: this.toolindex,
  12144. content: JSON.stringify(this.sentenceList),
  12145. type: 9,
  12146. },
  12147. ];
  12148. this.ajax
  12149. .post(this.$store.state.api + "addCourseWorks", params)
  12150. .then((res) => {
  12151. this.$message({
  12152. message: "提交成功",
  12153. type: "success",
  12154. });
  12155. this.dialogVisibleSentenceTeacher = false;
  12156. // this.selectAnswer = {};
  12157. this.selectSWorks();
  12158. this.selectStudent();
  12159. })
  12160. .catch((err) => {
  12161. this.$message.error("提交失败");
  12162. console.error(err);
  12163. });
  12164. },
  12165. addTableWorks() {
  12166. let params = [
  12167. {
  12168. uid: this.userid,
  12169. cid: this.id,
  12170. stage: this.courseType,
  12171. task: this.taskCount,
  12172. tool: this.toolindex,
  12173. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12174. type: 10,
  12175. },
  12176. ];
  12177. this.ajax
  12178. .post(this.$store.state.api + "addCourseWorks", params)
  12179. .then((res) => {
  12180. this.$message({
  12181. message: "提交成功",
  12182. type: "success",
  12183. });
  12184. this.dialogVisibleTable = false;
  12185. // this.selectAnswer = {};
  12186. this.selectSWorks();
  12187. this.selectStudent();
  12188. })
  12189. .catch((err) => {
  12190. this.$message.error("提交失败");
  12191. console.error(err);
  12192. });
  12193. },
  12194. addTableWorksTeacher() {
  12195. let params = [
  12196. {
  12197. uid: this.sStudent.userid,
  12198. cid: this.id,
  12199. stage: this.courseType,
  12200. task: this.taskCount,
  12201. tool: this.toolindex,
  12202. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12203. type: 10,
  12204. },
  12205. ];
  12206. this.ajax
  12207. .post(this.$store.state.api + "addCourseWorks", params)
  12208. .then((res) => {
  12209. this.$message({
  12210. message: "提交成功",
  12211. type: "success",
  12212. });
  12213. this.dialogVisibleTableTeacher = false;
  12214. // this.selectAnswer = {};
  12215. this.selectSWorks();
  12216. this.selectStudent();
  12217. })
  12218. .catch((err) => {
  12219. this.$message.error("提交失败");
  12220. console.error(err);
  12221. });
  12222. },
  12223. addWordWorks() {
  12224. let params = [
  12225. {
  12226. uid: this.userid,
  12227. cid: this.id,
  12228. stage: this.courseType,
  12229. task: this.taskCount,
  12230. tool: this.toolindex,
  12231. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12232. type: 13,
  12233. atool: 52,
  12234. },
  12235. ];
  12236. console.log(params);
  12237. this.ajax
  12238. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12239. .then((res) => {
  12240. this.$message({
  12241. message: "提交成功",
  12242. type: "success",
  12243. });
  12244. this.dialogVisibleWord = false;
  12245. // this.selectAnswer = {};
  12246. this.selectSWorks();
  12247. this.selectStudent();
  12248. })
  12249. .catch((err) => {
  12250. this.$message.error("提交失败");
  12251. console.error(err);
  12252. });
  12253. },
  12254. addWordWorksTeacher() {
  12255. let params = [
  12256. {
  12257. uid: this.sStudent.userid,
  12258. cid: this.id,
  12259. stage: this.courseType,
  12260. task: this.taskCount,
  12261. tool: this.toolindex,
  12262. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12263. type: 13,
  12264. atool: 52,
  12265. },
  12266. ];
  12267. console.log(params);
  12268. this.ajax
  12269. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12270. .then((res) => {
  12271. this.$message({
  12272. message: "提交成功",
  12273. type: "success",
  12274. });
  12275. this.dialogVisibleWordTeacher = false;
  12276. // this.selectAnswer = {};
  12277. this.selectSWorks();
  12278. this.selectStudent();
  12279. })
  12280. .catch((err) => {
  12281. this.$message.error("提交失败");
  12282. console.error(err);
  12283. });
  12284. },
  12285. addCourseWorks(i) {
  12286. var typesql;
  12287. if (this.fileType === 0) {
  12288. typesql = 1;
  12289. } else if (this.fileType === 1) {
  12290. typesql = 4;
  12291. } else if (this.fileType === 2) {
  12292. typesql = 5;
  12293. } else if (this.fileType === 3) {
  12294. typesql = 12;
  12295. }
  12296. if (!this.studyJuri[0].cover[0].url) {
  12297. this.$message.error("请上传文件");
  12298. return;
  12299. }
  12300. let params = [
  12301. {
  12302. uid: this.userid,
  12303. cid: this.id,
  12304. stage: this.courseType,
  12305. task: i,
  12306. tool: this.toolindex,
  12307. content: this.studyJuri[0].cover[0].url,
  12308. type: typesql,
  12309. },
  12310. ];
  12311. this.ajax
  12312. .post(this.$store.state.api + "addCourseWorksR", params)
  12313. .then((res) => {
  12314. this.$message({
  12315. message: "提交成功",
  12316. type: "success",
  12317. });
  12318. this.studyJuri[0].cover = [];
  12319. this.dialogVisible = false;
  12320. this.getCourseDetail();
  12321. })
  12322. .catch((err) => {
  12323. this.$message.error("提交失败");
  12324. console.error(err);
  12325. });
  12326. },
  12327. addCourseWorksPl(i) {
  12328. let _files = this.plworkFile;
  12329. var c = 1;
  12330. for (var k = 0; k < _files.length; k++) {
  12331. if (!_files[k].username) {
  12332. c = 2;
  12333. }
  12334. }
  12335. if (c == 2) {
  12336. this.$message.error("请填写学生姓名");
  12337. return;
  12338. }
  12339. let params = [
  12340. {
  12341. ateacher: this.userid,
  12342. cid: this.id,
  12343. stage: this.courseType,
  12344. task: i,
  12345. tool: this.toolindex,
  12346. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12347. },
  12348. ];
  12349. this.ajax
  12350. .post(this.$store.state.api + "addCourseWorksPl", params)
  12351. .then((res) => {
  12352. this.$message({
  12353. message: "提交成功",
  12354. type: "success",
  12355. });
  12356. this.plworkFile = [];
  12357. this.dialogVisiblePl = false;
  12358. this.getCourseDetail();
  12359. })
  12360. .catch((err) => {
  12361. this.$message.error("提交失败");
  12362. console.error(err);
  12363. });
  12364. },
  12365. addCourseWorks2(i) {
  12366. var typesql;
  12367. if (this.fileType === 0) {
  12368. typesql = 0;
  12369. } else if (this.fileType === 1) {
  12370. typesql = 1;
  12371. } else if (this.fileType === 2) {
  12372. typesql = 3;
  12373. } else if (this.fileType === 3) {
  12374. typesql = 12;
  12375. }
  12376. if (!this.studyJuri[0].cover[0].url) {
  12377. this.$message.error("请上传文件");
  12378. return;
  12379. }
  12380. let params = [
  12381. {
  12382. uid: this.userid,
  12383. cid: this.id,
  12384. stage: this.courseType,
  12385. task: i,
  12386. tool: this.toolindex,
  12387. content: JSON.stringify({
  12388. type: typesql,
  12389. groupIndex: this.groupIndex,
  12390. url: this.studyJuri[0].cover[0].url,
  12391. }).replaceAll(/%/g, "%25"),
  12392. type: 11,
  12393. atool: 49,
  12394. text: "",
  12395. },
  12396. ];
  12397. this.ajax
  12398. .post(this.$store.state.api + "addCourseWorks5", params)
  12399. .then((res) => {
  12400. this.$message({
  12401. message: "提交成功",
  12402. type: "success",
  12403. });
  12404. this.studyJuri[0].cover = [];
  12405. this.dialogVisibleGroupWork = false;
  12406. this.getCourseDetail();
  12407. })
  12408. .catch((err) => {
  12409. this.$message.error("提交失败");
  12410. console.error(err);
  12411. });
  12412. },
  12413. addCourseWorksGong(i, data, tool) {
  12414. let params = [
  12415. {
  12416. uid: this.userid,
  12417. cid: this.id,
  12418. stage: this.courseType,
  12419. task: this.taskCount,
  12420. tool: i,
  12421. content: data,
  12422. type: 12,
  12423. atool: tool,
  12424. text: "",
  12425. },
  12426. ];
  12427. this.ajax
  12428. .post(this.$store.state.api + "addCourseWorks5", params)
  12429. .then((res) => {
  12430. this.$message({
  12431. message: "提交成功",
  12432. type: "success",
  12433. });
  12434. this.studyJuri[0].cover = [];
  12435. this.selectSWorks();
  12436. this.selectStudent();
  12437. })
  12438. .catch((err) => {
  12439. this.$message.error("提交失败");
  12440. console.error(err);
  12441. });
  12442. },
  12443. addCourseWorksGongTeacher(i, data, tool) {
  12444. let params = [
  12445. {
  12446. uid: this.sStudent.userid,
  12447. cid: this.id,
  12448. stage: this.courseType,
  12449. task: this.taskCount,
  12450. tool: i,
  12451. content: data,
  12452. type: 12,
  12453. atool: tool,
  12454. text: "",
  12455. },
  12456. ];
  12457. this.ajax
  12458. .post(this.$store.state.api + "addCourseWorks5", params)
  12459. .then((res) => {
  12460. this.$message({
  12461. message: "提交成功",
  12462. type: "success",
  12463. });
  12464. this.studyJuri[0].cover = [];
  12465. this.dialogVisibleWorks = false;
  12466. this.selectSWorks();
  12467. this.selectStudent();
  12468. })
  12469. .catch((err) => {
  12470. this.$message.error("提交失败");
  12471. console.error(err);
  12472. });
  12473. },
  12474. addCourseWorksGongPl(i, data, tool, type) {
  12475. let params = [
  12476. {
  12477. uid: this.sStudent.userid,
  12478. cid: this.id,
  12479. stage: this.courseType,
  12480. task: this.taskCount,
  12481. tool: i,
  12482. content: data,
  12483. type: type,
  12484. atool: tool,
  12485. text: "",
  12486. },
  12487. ];
  12488. this.ajax
  12489. .post(this.$store.state.api + "addCourseWorks5", params)
  12490. .then((res) => {
  12491. this.$message({
  12492. message: "提交成功",
  12493. type: "success",
  12494. });
  12495. this.studyJuri[0].cover = [];
  12496. this.dialogVisibleWorks = false;
  12497. this.selectSWorks();
  12498. this.selectStudent();
  12499. })
  12500. .catch((err) => {
  12501. this.$message.error("提交失败");
  12502. console.error(err);
  12503. });
  12504. },
  12505. addCourseWorksTeacher(i) {
  12506. var typesql;
  12507. if (this.sTool == 32) {
  12508. this.addCourseWorksGongTeacher(
  12509. this.toolindex,
  12510. this.studyJuri[0].cover[0].url,
  12511. this.sTool
  12512. );
  12513. return;
  12514. }
  12515. if (this.fileType === 0) {
  12516. typesql = 1;
  12517. } else if (this.fileType === 1) {
  12518. typesql = 4;
  12519. } else if (this.fileType === 2) {
  12520. typesql = 5;
  12521. } else if (this.fileType === 3) {
  12522. typesql = 12;
  12523. }
  12524. if (this.sTool == 50) {
  12525. this.addCourseWorksGongPl(
  12526. this.toolindex,
  12527. this.studyJuri[0].cover[0].url,
  12528. this.sTool,
  12529. typesql
  12530. );
  12531. return;
  12532. }
  12533. if (!this.studyJuri[0].cover[0].url) {
  12534. this.$message.error("请上传文件");
  12535. return;
  12536. }
  12537. let params = [
  12538. {
  12539. uid: this.sStudent.userid,
  12540. cid: this.id,
  12541. stage: this.courseType,
  12542. task: i,
  12543. tool: this.toolindex,
  12544. content: this.studyJuri[0].cover[0].url,
  12545. type: typesql,
  12546. ateacher: this.userid,
  12547. },
  12548. ];
  12549. this.ajax
  12550. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12551. .then((res) => {
  12552. this.$message({
  12553. message: "提交成功",
  12554. type: "success",
  12555. });
  12556. this.studyJuri[0].cover = [];
  12557. this.dialogVisibleWorks = false;
  12558. this.getCourseDetail();
  12559. })
  12560. .catch((err) => {
  12561. this.$message.error("提交失败");
  12562. console.error(err);
  12563. });
  12564. },
  12565. selectUploadStudent(type) {
  12566. const loading = this.$loading.service({
  12567. background: "rgba(255, 255, 255, 0.7)",
  12568. target: document.body,
  12569. });
  12570. let params = {
  12571. cid: this.uploadCid,
  12572. oid: this.oid,
  12573. cn: "",
  12574. };
  12575. this.ajax
  12576. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12577. .then((res) => {
  12578. loading.close();
  12579. var studentK = [];
  12580. if (this.isWorksS[this.toolindex].length > 0) {
  12581. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12582. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12583. }
  12584. studentK = studentK.join(",");
  12585. }
  12586. this.uploadStudentJuri = res.data[0].filter((el) => {
  12587. return studentK.indexOf(el.userid) == -1;
  12588. });
  12589. if (this.worksSName && this.worksSid) {
  12590. this.uploadStudentJuri.push({
  12591. userid: this.worksSid,
  12592. name: this.worksSName,
  12593. });
  12594. }
  12595. if (type == 1) {
  12596. this.plworkFile = [];
  12597. this.dialogVisibleSname = true;
  12598. } else if (type == 2) {
  12599. this.dialogVisiblePl = true;
  12600. }
  12601. })
  12602. .catch((err) => {
  12603. loading.close();
  12604. console.error(err);
  12605. });
  12606. },
  12607. selectPickStudent() {
  12608. const loading = this.$loading.service({
  12609. background: "rgba(255, 255, 255, 0.7)",
  12610. target: document.body,
  12611. });
  12612. let params = {
  12613. cid: this.uploadCid,
  12614. oid: this.oid,
  12615. cn: "",
  12616. };
  12617. this.ajax
  12618. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12619. .then((res) => {
  12620. loading.close();
  12621. this.uploadStudentJuri = res.data[0];
  12622. this.dialogVisiblePickPeople = true;
  12623. })
  12624. .catch((err) => {
  12625. loading.close();
  12626. console.error(err);
  12627. });
  12628. },
  12629. arrayToArray(arrayo, arrayt) {
  12630. let array1 = arrayo;
  12631. let array2 = arrayt;
  12632. let commonElements = [];
  12633. for (let i = 0; i < array1.length; i++) {
  12634. for (let j = 0; j < array2.length; j++) {
  12635. if (array1[i] === array2[j]) {
  12636. commonElements.push(array1[i]);
  12637. }
  12638. }
  12639. }
  12640. return commonElements;
  12641. },
  12642. selectWorksStudent() {
  12643. let params = {
  12644. oid: this.oid,
  12645. cid: this.courseDetail.juri,
  12646. };
  12647. this.ajax
  12648. .get(this.$store.state.api + "selectWorksStudent", params)
  12649. .then((res) => {
  12650. var a = res.data[0];
  12651. for (var i = 0; i < this.isWorksS.length; i++) {
  12652. this.noWorksS[i] = [];
  12653. var studentK = [];
  12654. if (this.isWorksS[i].length > 0) {
  12655. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12656. studentK.push(this.isWorksS[i][z].uid);
  12657. }
  12658. studentK = studentK.join(",");
  12659. for (var j = 0; j < a.length; j++) {
  12660. // if (studentK.indexOf(a[j].userid) == -1) {
  12661. if (this.tcid) {
  12662. // a[j].classid.indexOf(this.tcid) != -1
  12663. if (
  12664. this.arrayToArray(
  12665. a[j].classid.split(","),
  12666. this.tcid.split(",")
  12667. ).length
  12668. ) {
  12669. this.noWorksS[i].push({
  12670. student: a[j].name,
  12671. userid: a[j].userid,
  12672. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12673. });
  12674. }
  12675. } else {
  12676. this.noWorksS[i].push({
  12677. student: a[j].name,
  12678. userid: a[j].userid,
  12679. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12680. });
  12681. }
  12682. // }
  12683. }
  12684. } else {
  12685. for (var k = 0; k < a.length; k++) {
  12686. if (this.tcid) {
  12687. if (
  12688. this.arrayToArray(
  12689. a[k].classid.split(","),
  12690. this.tcid.split(",")
  12691. ).length
  12692. ) {
  12693. this.noWorksS[i].push({
  12694. student: a[k].name,
  12695. userid: a[k].userid,
  12696. type: "1",
  12697. });
  12698. }
  12699. } else {
  12700. this.noWorksS[i].push({
  12701. student: a[k].name,
  12702. userid: a[k].userid,
  12703. type: "1",
  12704. });
  12705. }
  12706. }
  12707. }
  12708. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  12709. // let jscoreA = parseInt(a.type);
  12710. // let jscoreB = parseInt(b.type);
  12711. // return jscoreB - jscoreA;
  12712. // });
  12713. }
  12714. this.$forceUpdate();
  12715. if (
  12716. Object.keys(this.commentDetail).length &&
  12717. Object.keys(this.commentIndexJson).length &&
  12718. !this.dialogVisibleScore
  12719. ) {
  12720. let a = 1;
  12721. let c = this.commentIndexJson;
  12722. console.log(c);
  12723. if (
  12724. this.commentIndexJson.gindex ||
  12725. this.commentIndexJson.gindex === 0
  12726. ) {
  12727. for (
  12728. var i = 0;
  12729. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12730. i++
  12731. ) {
  12732. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12733. groupA: for (var k = 0; k < _el.length; k++) {
  12734. let el = _el[k];
  12735. if (el.wid == this.commentDetail.wid) {
  12736. a = 2;
  12737. this.commentOther(
  12738. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12739. this.commentIndexJson.toolIndex,
  12740. k,
  12741. this.commentIndexJson.gindex
  12742. );
  12743. break groupA;
  12744. }
  12745. }
  12746. }
  12747. if (a === 1) {
  12748. this.commentDetail = [];
  12749. this.commentIndexJson = {};
  12750. this.commentDialogVisible = false;
  12751. this.$message("此作业已被删除");
  12752. }
  12753. } else {
  12754. if (this.isGroup && this.commentIndexJson.gid) {
  12755. groupA: for (
  12756. var i = 0;
  12757. i < this.courseGroup.group.length;
  12758. i++
  12759. ) {
  12760. let _group = this.courseGroup.group[i];
  12761. if (_group.id == this.commentIndexJson.gid) {
  12762. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12763. for (var k = 0; k < _el2.length; k++) {
  12764. let el2 = _el2[k];
  12765. if (el2.wid == this.commentDetail.wid) {
  12766. a = 2;
  12767. this.commentOther(
  12768. _el2[k],
  12769. this.commentIndexJson.toolIndex,
  12770. k,
  12771. null,
  12772. this.commentIndexJson.gid
  12773. );
  12774. break groupA;
  12775. }
  12776. }
  12777. }
  12778. }
  12779. }
  12780. if (a == 1) {
  12781. for (
  12782. var i = 0;
  12783. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12784. i++
  12785. ) {
  12786. let el =
  12787. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12788. if (el.wid == this.commentDetail.wid) {
  12789. a = 2;
  12790. this.commentOther(
  12791. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12792. this.commentIndexJson.toolIndex,
  12793. i
  12794. );
  12795. break;
  12796. }
  12797. }
  12798. }
  12799. if (a === 1) {
  12800. this.commentDetail = [];
  12801. this.commentIndexJson = {};
  12802. this.commentDialogVisible = false;
  12803. this.$message("此作业已被删除");
  12804. }
  12805. }
  12806. }
  12807. })
  12808. .catch((err) => {
  12809. console.error(err);
  12810. });
  12811. },
  12812. selectStudent() {},
  12813. openVideo(w) {
  12814. this.videoDetail = {};
  12815. this.playerOptions1.sources[0].src = w.works;
  12816. this.videoDetail = this.playerOptions1;
  12817. this.videoVisible = true;
  12818. },
  12819. isLikes(wid, uid, t, c, isLikes) {
  12820. if (isLikes == false) {
  12821. let params = [
  12822. {
  12823. wid: wid,
  12824. lid: uid,
  12825. t: t,
  12826. c: c,
  12827. },
  12828. ];
  12829. this.ajax
  12830. .post(this.$store.state.api + "insertComment", params)
  12831. .then((res) => {
  12832. this.$message({
  12833. message: "点赞成功",
  12834. type: "success",
  12835. });
  12836. this.selectSWorks();
  12837. this.selectStudent();
  12838. })
  12839. .catch((err) => {
  12840. this.$message.error("点赞失败");
  12841. console.error(err);
  12842. });
  12843. } else {
  12844. let params = {
  12845. wid: wid,
  12846. lid: uid,
  12847. type: t,
  12848. };
  12849. this.ajax
  12850. .get(this.$store.state.api + "deleteComment", params)
  12851. .then((res) => {
  12852. this.$message({
  12853. message: "取消点赞成功",
  12854. type: "success",
  12855. });
  12856. this.selectSWorks();
  12857. this.selectStudent();
  12858. })
  12859. .catch((err) => {
  12860. console.error(err);
  12861. });
  12862. }
  12863. },
  12864. deleteComment(wid) {
  12865. this.$confirm("确定删除此评论吗?", "提示", {
  12866. confirmButtonText: "确定",
  12867. cancelButtonText: "取消",
  12868. type: "warning",
  12869. })
  12870. .then(() => {
  12871. let params = {
  12872. id: wid,
  12873. };
  12874. this.ajax
  12875. .get(this.$store.state.api + "deleteComment2", params)
  12876. .then((res) => {
  12877. this.$message({
  12878. message: "删除评论成功",
  12879. type: "success",
  12880. });
  12881. this.selectSWorks();
  12882. this.selectStudent();
  12883. })
  12884. .catch((err) => {
  12885. console.error(err);
  12886. });
  12887. })
  12888. .catch(() => {});
  12889. },
  12890. commentOther(w, toolIndex, wIndex, gindex, gid) {
  12891. this.commentIndexJson = {
  12892. toolIndex: toolIndex,
  12893. wIndex: wIndex,
  12894. gindex: gindex,
  12895. gid: gid,
  12896. };
  12897. this.commentDetail = [];
  12898. this.commentDialogVisible = true;
  12899. this.commentDetail = w;
  12900. if (w.works && w.type == 1) {
  12901. this.pptImgUrl = "";
  12902. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12903. if (
  12904. a.indexOf(
  12905. w.works
  12906. .split(".")
  12907. [w.works.split(".").length - 1].toLocaleUpperCase()
  12908. ) != -1
  12909. ) {
  12910. this.pptImgUrl =
  12911. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12912. this.showPDF = false;
  12913. } else if (
  12914. w.works
  12915. .split(".")
  12916. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12917. ) {
  12918. this.pptImgUrl = w.works;
  12919. this.showPDF = true;
  12920. }
  12921. } else if (w.works && w.type == 3) {
  12922. this.videoDetail = {};
  12923. this.playerOptions1.sources[0].src = w.works;
  12924. this.videoDetail = this.playerOptions1;
  12925. // this.videoVisible = true;
  12926. } else if (w.works && w.type == 4) {
  12927. this.eScore = JSON.parse(w.works);
  12928. this.rateJson =
  12929. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12930. this.taskCount
  12931. ].toolChoose[toolIndex].rateJson;
  12932. } else if (w.works && w.type == 10) {
  12933. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  12934. } else if (w.works && w.type == 13) {
  12935. this.wordJson =
  12936. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12937. this.taskCount
  12938. ].toolChoose[toolIndex].wordJson;
  12939. }
  12940. },
  12941. openScore(w) {
  12942. this.wScore = 0;
  12943. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  12944. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  12945. this.commentDetail = [];
  12946. this.dialogVisibleScore = true;
  12947. this.commentDetail = w;
  12948. if (w.works && w.type == 1) {
  12949. this.pptImgUrl = "";
  12950. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12951. if (
  12952. a.indexOf(
  12953. w.works
  12954. .split(".")
  12955. [w.works.split(".").length - 1].toLocaleUpperCase()
  12956. ) != -1
  12957. ) {
  12958. this.pptImgUrl =
  12959. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12960. this.showPDF = false;
  12961. } else if (
  12962. w.works
  12963. .split(".")
  12964. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12965. ) {
  12966. this.pptImgUrl = w.works;
  12967. this.showPDF = true;
  12968. }
  12969. } else if (w.works && w.type == 3) {
  12970. this.videoDetail = {};
  12971. this.playerOptions1.sources[0].src = w.works;
  12972. this.videoDetail = this.playerOptions1;
  12973. }
  12974. },
  12975. addComment(wid, uid, t) {
  12976. if (this.commentText == "") {
  12977. this.$message.error("请输入评论");
  12978. return;
  12979. }
  12980. let params2 = [
  12981. {
  12982. wid: wid,
  12983. lid: uid,
  12984. t: t,
  12985. },
  12986. ];
  12987. this.ajax
  12988. .post(this.$store.state.api + "getComment", params2)
  12989. .then((res) => {
  12990. if (res.data[0].length > 0) {
  12991. this.$message.error("一个作业只能评论一条");
  12992. } else {
  12993. let params = [
  12994. {
  12995. wid: wid,
  12996. lid: uid,
  12997. t: t,
  12998. c: this.commentText,
  12999. },
  13000. ];
  13001. this.ajax
  13002. .post(this.$store.state.api + "insertComment", params)
  13003. .then((res) => {
  13004. this.$message({
  13005. message: "评论成功",
  13006. type: "success",
  13007. });
  13008. this.commentText = "";
  13009. this.selectSWorks();
  13010. this.selectStudent();
  13011. })
  13012. .catch((err) => {
  13013. this.$message.error("评论失败");
  13014. console.error(err);
  13015. });
  13016. }
  13017. })
  13018. .catch((err) => {
  13019. // this.$message.error("评论失败");
  13020. console.error(err);
  13021. });
  13022. },
  13023. scoreWork(wid) {
  13024. if (this.wScore == 0) {
  13025. this.$message.error("请评分");
  13026. return;
  13027. }
  13028. let params = [
  13029. {
  13030. wid: wid,
  13031. score: JSON.stringify({
  13032. wScore: this.wScore,
  13033. detail: this.scoreDetail,
  13034. }),
  13035. },
  13036. ];
  13037. this.ajax
  13038. .post(this.$store.state.api + "scoreWork", params)
  13039. .then((res) => {
  13040. this.$message({
  13041. message: "评分成功",
  13042. type: "success",
  13043. });
  13044. this.wScore = 0;
  13045. this.scoreDetail = "";
  13046. this.dialogVisibleScore = false;
  13047. this.selectSWorks();
  13048. this.selectStudent();
  13049. })
  13050. .catch((err) => {
  13051. this.$message.error("评分失败");
  13052. console.error(err);
  13053. });
  13054. },
  13055. openXz(w, i) {
  13056. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13057. .taskJson[this.taskCount].toolChoose[i].selectJson
  13058. ? JSON.parse(
  13059. JSON.stringify(
  13060. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13061. this.taskCount
  13062. ].toolChoose[i].selectJson
  13063. )
  13064. )
  13065. : { url: "", select: [], answer: [] };
  13066. var a = w.works.split(",");
  13067. for (var k = 0; k < a.length; k++) {
  13068. a[k] = parseInt(a[k]);
  13069. }
  13070. this.selectAnswer = { answer: a, stu: w.sName };
  13071. this.isSelect = true;
  13072. this.dialogVisibleSelect = true;
  13073. },
  13074. openSen(w, i) {
  13075. this.sentenceList1 = JSON.parse(w.works);
  13076. this.sentenceList1.stuName = w.sName;
  13077. this.dialogVisibleSentence1 = true;
  13078. },
  13079. openPj(w, toolindex) {
  13080. this.isStar = true;
  13081. this.eScore = JSON.parse(w);
  13082. this.rateJson =
  13083. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13084. this.taskCount
  13085. ].toolChoose[toolindex].rateJson;
  13086. this.studentEvalDialogVisible = true;
  13087. },
  13088. deleteWorks(id) {
  13089. this.$confirm("确定删除此作业吗?", "提示", {
  13090. confirmButtonText: "确定",
  13091. cancelButtonText: "取消",
  13092. type: "warning",
  13093. })
  13094. .then(() => {
  13095. let params = [
  13096. {
  13097. id: id,
  13098. },
  13099. ];
  13100. this.ajax
  13101. .post(this.$store.state.api + "deleteCourseWork", params)
  13102. .then((res) => {
  13103. this.$message({
  13104. message: "删除成功",
  13105. type: "success",
  13106. });
  13107. this.selectStudent();
  13108. this.selectSWorks();
  13109. this.selectSLook();
  13110. })
  13111. .catch((err) => {
  13112. this.$message.error("网络异常");
  13113. console.error(err);
  13114. });
  13115. })
  13116. .catch(() => {});
  13117. },
  13118. selectSWorks(gindex) {
  13119. //教师查看全部作业
  13120. let params = {
  13121. cid: this.id,
  13122. s: this.courseType,
  13123. t: this.taskCount,
  13124. };
  13125. this.ajax
  13126. .get(this.$store.state.api + "selectSWorks", params)
  13127. .then((res) => {
  13128. var a =
  13129. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13130. this.taskCount
  13131. ].toolChoose;
  13132. var b = res.data[0];
  13133. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13134. var y = [
  13135. "AVI",
  13136. "NAVI",
  13137. "MPEG",
  13138. "ASF",
  13139. "MOV",
  13140. "WMV",
  13141. "3GP",
  13142. "RM",
  13143. "RMVB",
  13144. "FLV",
  13145. "F4V",
  13146. "H.264",
  13147. "H.265",
  13148. "REAL VIDEO",
  13149. "MKV",
  13150. "WebM",
  13151. "HDDVD",
  13152. "MP4",
  13153. "MPG",
  13154. "M4V",
  13155. "MGV",
  13156. "OGV",
  13157. "QTM",
  13158. "STR",
  13159. "AMC",
  13160. "DVX",
  13161. "EVO",
  13162. "DAT",
  13163. "OGG",
  13164. "OGM",
  13165. ];
  13166. var d = res.data[1];
  13167. var e = res.data[2];
  13168. var f = res.data[3];
  13169. for (var i = 0; i < a.length; i++) {
  13170. this.worksStudent[i] = [];
  13171. this.worksTeacher[i] = [];
  13172. this.worksStudent2[i] = [];
  13173. if (
  13174. !this.isCloseList[i] ||
  13175. this.isCloseList[i].isClose == undefined
  13176. ) {
  13177. this.isCloseList[i] = { isClose: 0 };
  13178. }
  13179. this.groupStudent[i] = [];
  13180. this.groupStudentUid[i] = [];
  13181. this.isWorksS[i] = [];
  13182. this.checkJson[i] = [];
  13183. if (a[i].tool[0] == 49) {
  13184. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13185. this.groupStudent[i][gA] = [];
  13186. this.groupStudentUid[i][gA] = [];
  13187. this.worksStudent[i][gA] = [];
  13188. this.isCloseList[i][gA] = [];
  13189. for (var g = 0; g < f.length; g++) {
  13190. if (
  13191. f[g].ttype == 2 &&
  13192. this.tcid &&
  13193. this.arrayToArray(
  13194. f[g].classid.split(","),
  13195. this.tcid.split(",")
  13196. ).length == 0
  13197. ) {
  13198. continue;
  13199. }
  13200. if (gA == f[g].group && f[g].tool == i) {
  13201. this.groupStudent[i][gA].push(f[g]);
  13202. this.groupStudentUid[i][gA].push(f[g].userid);
  13203. }
  13204. }
  13205. }
  13206. this.$forceUpdate();
  13207. }
  13208. for (var j = 0; j < b.length; j++) {
  13209. if (
  13210. b[j].ttype == 2 &&
  13211. this.tcid &&
  13212. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13213. .length == 0
  13214. ) {
  13215. continue;
  13216. }
  13217. var likesCount = 0;
  13218. var commentCount = 0;
  13219. var isLikes = false;
  13220. var commentJson = [];
  13221. var data = b[j];
  13222. if (i == b[j].tool) {
  13223. if (data.type == 2 && a[i].tool[0] == 4) {
  13224. // if(JSON.parse(data.content)[0].anwer){
  13225. var checkL =
  13226. JSON.parse(data.content)[0].anwer instanceof Array
  13227. ? JSON.parse(data.content)[0].anwer
  13228. : JSON.parse(data.content)[0].anwer.split(",");
  13229. for (var z = 0; z < checkL.length; z++) {
  13230. if (!this.checkJson[i][z]) {
  13231. this.checkJson[i].push({
  13232. checkCount: [],
  13233. checkPerson: [],
  13234. rightPerson: [],
  13235. });
  13236. }
  13237. if (!this.checkJson[i][z].checkCount.length) {
  13238. this.checkJson[i][z].checkCount = [];
  13239. let _askItemCount = JSON.parse(data.content)[0].askJson
  13240. .askJson[z].askItem;
  13241. for (var aic = 0; aic < _askItemCount; aic++) {
  13242. this.checkJson[i][z].checkCount.push(0);
  13243. }
  13244. }
  13245. if (checkL[z] instanceof Array) {
  13246. if (
  13247. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13248. checkL[z].sort().join(",")
  13249. ) {
  13250. this.checkJson[i][z].rightPerson.push(data.name);
  13251. }
  13252. for (var q = 0; q < checkL[z].length; q++) {
  13253. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13254. ? this.checkJson[i][z].checkPerson[
  13255. parseInt(checkL[z][q])
  13256. ].push(data.name)
  13257. : (this.checkJson[i][z].checkPerson[
  13258. parseInt(checkL[z][q])
  13259. ] = [data.name]);
  13260. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13261. ? this.checkJson[i][z].checkCount[
  13262. parseInt(checkL[z][q])
  13263. ]++
  13264. : (this.checkJson[i][z].checkCount[
  13265. parseInt(checkL[z][q])
  13266. ] = 1);
  13267. }
  13268. } else {
  13269. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13270. this.checkJson[i][z].rightPerson.push(data.name);
  13271. }
  13272. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13273. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13274. ? this.checkJson[i][z].checkPerson[
  13275. parseInt(checkL[z])
  13276. ].push(data.name)
  13277. : (this.checkJson[i][z].checkPerson[
  13278. parseInt(checkL[z])
  13279. ] = [data.name]);
  13280. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13281. ? this.checkJson[i][z].checkCount[
  13282. parseInt(checkL[z])
  13283. ]++
  13284. : (this.checkJson[i][z].checkCount[
  13285. parseInt(checkL[z])
  13286. ] = 1);
  13287. }
  13288. }
  13289. }
  13290. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13291. var checkL = JSON.parse(data.content)[0].anwer;
  13292. for (var z = 0; z < checkL.length; z++) {
  13293. if (!this.checkJson[i][z]) {
  13294. this.checkJson[i].push({
  13295. checkCount: [],
  13296. checkPerson: [],
  13297. rightPerson: [],
  13298. });
  13299. }
  13300. if (!this.checkJson[i][z].checkCount.length) {
  13301. this.checkJson[i][z].checkCount = [];
  13302. let _askItemCount = JSON.parse(data.content)[0].testJson
  13303. .testJson[z].testItem;
  13304. console.log(_askItemCount);
  13305. for (var aic = 0; aic < _askItemCount; aic++) {
  13306. this.checkJson[i][z].checkCount.push(0);
  13307. }
  13308. }
  13309. if (checkL[z] instanceof Array) {
  13310. if (
  13311. JSON.parse(data.content)[0]
  13312. .testJson.testJson[z].answer.sort()
  13313. .join(",") == checkL[z].sort().join(",")
  13314. ) {
  13315. this.checkJson[i][z].rightPerson.push(data.name);
  13316. }
  13317. for (var q = 0; q < checkL[z].length; q++) {
  13318. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13319. ? this.checkJson[i][z].checkPerson[
  13320. parseInt(checkL[z][q])
  13321. ].push(data.name)
  13322. : (this.checkJson[i][z].checkPerson[
  13323. parseInt(checkL[z][q])
  13324. ] = [data.name]);
  13325. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13326. ? this.checkJson[i][z].checkCount[
  13327. parseInt(checkL[z][q])
  13328. ]++
  13329. : (this.checkJson[i][z].checkCount[
  13330. parseInt(checkL[z][q])
  13331. ] = 1);
  13332. }
  13333. } else {
  13334. if (
  13335. JSON.parse(data.content)[0].testJson.testJson[z]
  13336. .answer == checkL[z]
  13337. ) {
  13338. this.checkJson[i][z].rightPerson.push(data.name);
  13339. }
  13340. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13341. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13342. ? this.checkJson[i][z].checkPerson[
  13343. parseInt(checkL[z])
  13344. ].push(data.name)
  13345. : (this.checkJson[i][z].checkPerson[
  13346. parseInt(checkL[z])
  13347. ] = [data.name]);
  13348. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13349. ? this.checkJson[i][z].checkCount[
  13350. parseInt(checkL[z])
  13351. ]++
  13352. : (this.checkJson[i][z].checkCount[
  13353. parseInt(checkL[z])
  13354. ] = 1);
  13355. }
  13356. }
  13357. }
  13358. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13359. var checkL = JSON.parse(data.content);
  13360. for (var z = 0; z < checkL.length; z++) {
  13361. if (!this.checkJson[i][z]) {
  13362. this.checkJson[i].push({
  13363. checkCount: [],
  13364. checkPerson: [],
  13365. rightPerson: [],
  13366. });
  13367. }
  13368. this.checkJson[i][z].checkPerson.push(data.name);
  13369. if (
  13370. checkL[z].chooseSenList.toString() ==
  13371. checkL[z].rightAnswer.toString()
  13372. ) {
  13373. this.checkJson[i][z].rightPerson.push(data.name);
  13374. }
  13375. }
  13376. }
  13377. for (var k = 0; k < d.length; k++) {
  13378. //点赞
  13379. if (d[k].workId == b[j].id) {
  13380. likesCount++;
  13381. if (d[k].likesId == this.userid) {
  13382. isLikes = true;
  13383. }
  13384. }
  13385. }
  13386. for (var l = 0; l < e.length; l++) {
  13387. //评论
  13388. if (e[l].workId == b[j].id) {
  13389. if (e[l].comment != "") {
  13390. commentCount++;
  13391. commentJson.push({
  13392. commentText: e[l].comment,
  13393. commentTime: e[l].commentTime,
  13394. commentPeople: e[l].commentPeople,
  13395. userid: e[l].userid,
  13396. wid: e[l].id,
  13397. });
  13398. }
  13399. }
  13400. }
  13401. if (
  13402. (b[j].type == 1 ||
  13403. b[j].type == 4 ||
  13404. b[j].type == 5 ||
  13405. b[j].type == 6 ||
  13406. b[j].type == 12 ||
  13407. b[j].type == 7) &&
  13408. a[i].tool[0] != 15 &&
  13409. a[i].tool[0] != 4 &&
  13410. a[i].tool[0] != 45 &&
  13411. a[i].tool[0] != 50 &&
  13412. a[i].tool[0] != 32 &&
  13413. a[i].tool[0] != 57 &&
  13414. a[i].tool[0] != 52
  13415. ) {
  13416. if (
  13417. c.indexOf(
  13418. b[j].content
  13419. .split(".")
  13420. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13421. ) != -1 &&
  13422. a[i].tool[0] == 16 &&
  13423. b[j].atool != 50
  13424. ) {
  13425. let _works = {
  13426. userid: b[j].userid,
  13427. ateacher: b[j].ateacher,
  13428. wid: b[j].id,
  13429. works: b[j].content,
  13430. sName: b[j].name,
  13431. type: 1,
  13432. time: b[j].time,
  13433. score: b[j].score,
  13434. img: b[j].img,
  13435. likesCount: likesCount,
  13436. commentCount: commentCount,
  13437. isLikes: isLikes,
  13438. commentJson: commentJson,
  13439. };
  13440. if (b[j].ttype == 1) {
  13441. this.worksTeacher[i].push(_works);
  13442. } else {
  13443. this.worksStudent2[i].push(_works);
  13444. }
  13445. this.worksStudent[i].push(_works);
  13446. this.isWorksS[i].push({
  13447. uid: b[j].userid,
  13448. sName: b[j].name,
  13449. });
  13450. } else if (
  13451. y.indexOf(
  13452. b[j].content
  13453. .split(".")
  13454. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13455. ) != -1 &&
  13456. a[i].tool[0] == 16 &&
  13457. b[j].atool != 50
  13458. ) {
  13459. let _works = {
  13460. userid: b[j].userid,
  13461. ateacher: b[j].ateacher,
  13462. wid: b[j].id,
  13463. works: b[j].content,
  13464. sName: b[j].name,
  13465. type: 3,
  13466. time: b[j].time,
  13467. score: b[j].score,
  13468. img: b[j].img,
  13469. likesCount: likesCount,
  13470. commentCount: commentCount,
  13471. isLikes: isLikes,
  13472. commentJson: commentJson,
  13473. };
  13474. if (b[j].ttype == 1) {
  13475. this.worksTeacher[i].push(_works);
  13476. } else {
  13477. this.worksStudent2[i].push(_works);
  13478. }
  13479. this.worksStudent[i].push(_works);
  13480. this.isWorksS[i].push({
  13481. uid: b[j].userid,
  13482. sName: b[j].name,
  13483. });
  13484. } else if (b[j].type == 6 && b[j].atool != 50) {
  13485. let _works = {
  13486. userid: b[j].userid,
  13487. ateacher: b[j].ateacher,
  13488. wid: b[j].id,
  13489. works: b[j].content,
  13490. sName: b[j].name,
  13491. type: 4,
  13492. time: b[j].time,
  13493. score: b[j].score,
  13494. img: b[j].img,
  13495. likesCount: likesCount,
  13496. commentCount: commentCount,
  13497. isLikes: isLikes,
  13498. commentJson: commentJson,
  13499. };
  13500. if (b[j].ttype == 1) {
  13501. this.worksTeacher[i].push(_works);
  13502. } else {
  13503. this.worksStudent2[i].push(_works);
  13504. }
  13505. this.worksStudent[i].push(_works);
  13506. this.isWorksS[i].push({
  13507. uid: b[j].userid,
  13508. sName: b[j].name,
  13509. });
  13510. } else if (b[j].type == 7 && b[j].atool != 50) {
  13511. let _works = {
  13512. userid: b[j].userid,
  13513. ateacher: b[j].ateacher,
  13514. wid: b[j].id,
  13515. works: b[j].content,
  13516. sName: b[j].name,
  13517. type: 5,
  13518. time: b[j].time,
  13519. score: b[j].score,
  13520. img: b[j].img,
  13521. likesCount: likesCount,
  13522. commentCount: commentCount,
  13523. isLikes: isLikes,
  13524. commentJson: commentJson,
  13525. };
  13526. if (b[j].ttype == 1) {
  13527. this.worksTeacher[i].push(_works);
  13528. } else {
  13529. this.worksStudent2[i].push(_works);
  13530. }
  13531. this.worksStudent[i].push(_works);
  13532. this.isWorksS[i].push({
  13533. uid: b[j].userid,
  13534. sName: b[j].name,
  13535. });
  13536. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13537. let _works = {
  13538. userid: b[j].userid,
  13539. ateacher: b[j].ateacher,
  13540. wid: b[j].id,
  13541. works: b[j].content,
  13542. sName: b[j].name,
  13543. type: 12,
  13544. time: b[j].time,
  13545. score: b[j].score,
  13546. img: b[j].img,
  13547. likesCount: likesCount,
  13548. commentCount: commentCount,
  13549. isLikes: isLikes,
  13550. commentJson: commentJson,
  13551. };
  13552. if (b[j].ttype == 1) {
  13553. this.worksTeacher[i].push(_works);
  13554. } else {
  13555. this.worksStudent2[i].push(_works);
  13556. }
  13557. this.worksStudent[i].push(_works);
  13558. this.isWorksS[i].push({
  13559. uid: b[j].userid,
  13560. sName: b[j].name,
  13561. });
  13562. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13563. let _works = {
  13564. userid: b[j].userid,
  13565. ateacher: b[j].ateacher,
  13566. wid: b[j].id,
  13567. works: b[j].content,
  13568. sName: b[j].name,
  13569. type: 0,
  13570. time: b[j].time,
  13571. score: b[j].score,
  13572. img: b[j].img,
  13573. likesCount: likesCount,
  13574. commentCount: commentCount,
  13575. isLikes: isLikes,
  13576. commentJson: commentJson,
  13577. };
  13578. if (b[j].ttype == 1) {
  13579. this.worksTeacher[i].push(_works);
  13580. } else {
  13581. this.worksStudent2[i].push(_works);
  13582. }
  13583. this.worksStudent[i].push(_works);
  13584. this.isWorksS[i].push({
  13585. uid: b[j].userid,
  13586. sName: b[j].name,
  13587. });
  13588. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13589. let _works = {
  13590. userid: b[j].userid,
  13591. ateacher: b[j].ateacher,
  13592. wid: b[j].id,
  13593. works: b[j].content,
  13594. sName: b[j].name,
  13595. type: 0,
  13596. time: b[j].time,
  13597. score: b[j].score,
  13598. img: b[j].img,
  13599. likesCount: likesCount,
  13600. commentCount: commentCount,
  13601. isLikes: isLikes,
  13602. commentJson: commentJson,
  13603. };
  13604. if (b[j].ttype == 1) {
  13605. this.worksTeacher[i].push(_works);
  13606. } else {
  13607. this.worksStudent2[i].push(_works);
  13608. }
  13609. this.worksStudent[i].push(_works);
  13610. this.isWorksS[i].push({
  13611. uid: b[j].userid,
  13612. sName: b[j].name,
  13613. });
  13614. }
  13615. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13616. let _works = {
  13617. userid: b[j].userid,
  13618. ateacher: b[j].ateacher,
  13619. wid: b[j].id,
  13620. works: b[j].content,
  13621. sName: b[j].name,
  13622. type: 2,
  13623. time: b[j].time,
  13624. score: b[j].score,
  13625. img: b[j].img,
  13626. likesCount: likesCount,
  13627. commentCount: commentCount,
  13628. isLikes: isLikes,
  13629. commentJson: commentJson,
  13630. };
  13631. if (b[j].ttype == 1) {
  13632. this.worksTeacher[i].push(_works);
  13633. } else {
  13634. this.worksStudent2[i].push(_works);
  13635. }
  13636. this.worksStudent[i].push(_works);
  13637. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13638. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13639. //问卷
  13640. let _works = {
  13641. userid: b[j].userid,
  13642. ateacher: b[j].ateacher,
  13643. wid: b[j].id,
  13644. works: b[j].content,
  13645. sName: b[j].name,
  13646. type: 2,
  13647. time: b[j].time,
  13648. score: b[j].score,
  13649. img: b[j].img,
  13650. likesCount: likesCount,
  13651. commentCount: commentCount,
  13652. isLikes: isLikes,
  13653. commentJson: commentJson,
  13654. };
  13655. if (b[j].ttype == 1) {
  13656. this.worksTeacher[i].push(_works);
  13657. } else {
  13658. this.worksStudent2[i].push(_works);
  13659. }
  13660. this.worksStudent[i].push(_works);
  13661. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13662. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13663. //选择题
  13664. let _works = {
  13665. userid: b[j].userid,
  13666. ateacher: b[j].ateacher,
  13667. wid: b[j].id,
  13668. works: b[j].content,
  13669. sName: b[j].name,
  13670. type: 8,
  13671. time: b[j].time,
  13672. score: b[j].score,
  13673. img: b[j].img,
  13674. likesCount: likesCount,
  13675. commentCount: commentCount,
  13676. isLikes: isLikes,
  13677. commentJson: commentJson,
  13678. };
  13679. if (b[j].ttype == 1) {
  13680. this.worksTeacher[i].push(_works);
  13681. } else {
  13682. this.worksStudent2[i].push(_works);
  13683. }
  13684. this.worksStudent[i].push(_works);
  13685. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13686. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13687. //选择题
  13688. let _works = {
  13689. userid: b[j].userid,
  13690. ateacher: b[j].ateacher,
  13691. wid: b[j].id,
  13692. works: b[j].content,
  13693. sName: b[j].name,
  13694. type: 9,
  13695. time: b[j].time,
  13696. score: b[j].score,
  13697. img: b[j].img,
  13698. likesCount: likesCount,
  13699. commentCount: commentCount,
  13700. isLikes: isLikes,
  13701. commentJson: commentJson,
  13702. };
  13703. if (b[j].ttype == 1) {
  13704. this.worksTeacher[i].push(_works);
  13705. } else {
  13706. this.worksStudent2[i].push(_works);
  13707. }
  13708. this.worksStudent[i].push(_works);
  13709. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13710. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13711. //选择题
  13712. let _works = {
  13713. userid: b[j].userid,
  13714. ateacher: b[j].ateacher,
  13715. wid: b[j].id,
  13716. works: b[j].content,
  13717. sName: b[j].name,
  13718. type: 10,
  13719. time: b[j].time,
  13720. score: b[j].score,
  13721. img: b[j].img,
  13722. likesCount: likesCount,
  13723. commentCount: commentCount,
  13724. isLikes: isLikes,
  13725. commentJson: commentJson,
  13726. };
  13727. if (b[j].ttype == 1) {
  13728. this.worksTeacher[i].push(_works);
  13729. } else {
  13730. this.worksStudent2[i].push(_works);
  13731. }
  13732. this.worksStudent[i].push(_works);
  13733. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13734. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13735. //选择题
  13736. let _works = {
  13737. userid: b[j].userid,
  13738. ateacher: b[j].ateacher,
  13739. wid: b[j].id,
  13740. works: b[j].content,
  13741. sName: b[j].name,
  13742. type: 13,
  13743. time: b[j].time,
  13744. score: b[j].score,
  13745. img: b[j].img,
  13746. likesCount: likesCount,
  13747. commentCount: commentCount,
  13748. isLikes: isLikes,
  13749. commentJson: commentJson,
  13750. };
  13751. if (b[j].ttype == 1) {
  13752. this.worksTeacher[i].push(_works);
  13753. } else {
  13754. this.worksStudent2[i].push(_works);
  13755. }
  13756. this.worksStudent[i].push(_works);
  13757. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13758. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13759. let _gindex = JSON.parse(b[j].content);
  13760. if (
  13761. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13762. b[j].userid
  13763. ) != -1
  13764. ) {
  13765. this.worksStudent[i][_gindex.groupIndex].push({
  13766. userid: b[j].userid,
  13767. ateacher: b[j].ateacher,
  13768. wid: b[j].id,
  13769. works: _gindex.url,
  13770. sName: b[j].name,
  13771. type: _gindex.type,
  13772. time: b[j].time,
  13773. score: b[j].score,
  13774. img: b[j].img,
  13775. likesCount: likesCount,
  13776. commentCount: commentCount,
  13777. isLikes: isLikes,
  13778. commentJson: commentJson,
  13779. });
  13780. }
  13781. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13782. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13783. let _works = {
  13784. userid: b[j].userid,
  13785. ateacher: b[j].ateacher,
  13786. wid: b[j].id,
  13787. works: b[j].content,
  13788. sName: b[j].name ? b[j].name : b[j].userid,
  13789. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13790. time: b[j].time,
  13791. score: b[j].score,
  13792. img: b[j].img,
  13793. likesCount: likesCount,
  13794. commentCount: commentCount,
  13795. isLikes: isLikes,
  13796. commentJson: commentJson,
  13797. };
  13798. if (b[j].ttype == 1) {
  13799. this.worksTeacher[i].push(_works);
  13800. } else {
  13801. this.worksStudent2[i].push(_works);
  13802. }
  13803. this.worksStudent[i].push(_works);
  13804. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13805. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13806. let _works = {
  13807. userid: b[j].userid,
  13808. ateacher: b[j].ateacher,
  13809. wid: b[j].id,
  13810. works: b[j].content,
  13811. sName: b[j].name ? b[j].name : b[j].userid,
  13812. type: 12,
  13813. time: b[j].time,
  13814. score: b[j].score,
  13815. img: b[j].img,
  13816. likesCount: likesCount,
  13817. commentCount: commentCount,
  13818. isLikes: isLikes,
  13819. commentJson: commentJson,
  13820. };
  13821. if (b[j].ttype == 1) {
  13822. this.worksTeacher[i].push(_works);
  13823. } else {
  13824. this.worksStudent2[i].push(_works);
  13825. }
  13826. this.worksStudent[i].push(_works);
  13827. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13828. } else if (
  13829. a[i].tool[0] == 57 &&
  13830. b[j].atool == 57 &&
  13831. b[j].type == 12
  13832. ) {
  13833. let _works = {
  13834. userid: b[j].userid,
  13835. ateacher: b[j].ateacher,
  13836. wid: b[j].id,
  13837. works: b[j].content,
  13838. sName: b[j].name ? b[j].name : b[j].userid,
  13839. type: 12,
  13840. time: b[j].time,
  13841. score: b[j].score,
  13842. img: b[j].img,
  13843. likesCount: likesCount,
  13844. commentCount: commentCount,
  13845. isLikes: isLikes,
  13846. commentJson: commentJson,
  13847. };
  13848. if (b[j].ttype == 1) {
  13849. this.worksTeacher[i].push(_works);
  13850. } else {
  13851. this.worksStudent2[i].push(_works);
  13852. }
  13853. this.worksStudent[i].push(_works);
  13854. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13855. } else if (
  13856. a[i].tool[0] == 57 &&
  13857. b[j].atool == 57 &&
  13858. b[j].type == 15
  13859. ) {
  13860. let _works = {
  13861. userid: b[j].userid,
  13862. ateacher: b[j].ateacher,
  13863. wid: b[j].id,
  13864. works: b[j].content,
  13865. sName: b[j].name ? b[j].name : b[j].userid,
  13866. type: 15,
  13867. time: b[j].time,
  13868. score: b[j].score,
  13869. img: b[j].img,
  13870. likesCount: likesCount,
  13871. commentCount: commentCount,
  13872. isLikes: isLikes,
  13873. commentJson: commentJson,
  13874. };
  13875. if (b[j].ttype == 1) {
  13876. this.worksTeacher[i].push(_works);
  13877. } else {
  13878. this.worksStudent2[i].push(_works);
  13879. }
  13880. this.worksStudent[i].push(_works);
  13881. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13882. }
  13883. }
  13884. }
  13885. if (this.worksStudent[i] && this.worksStudent[i].length) {
  13886. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  13887. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13888. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13889. var scoreA = parseFloat(jscoreA);
  13890. var scoreB = parseFloat(jscoreB);
  13891. if (scoreA == scoreB) {
  13892. return b.likesCount - a.likesCount;
  13893. }
  13894. return scoreB - scoreA;
  13895. });
  13896. }
  13897. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  13898. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  13899. a,
  13900. b
  13901. ) {
  13902. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13903. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13904. var scoreA = parseFloat(jscoreA);
  13905. var scoreB = parseFloat(jscoreB);
  13906. if (scoreA == scoreB) {
  13907. return b.likesCount - a.likesCount;
  13908. }
  13909. return scoreB - scoreA;
  13910. });
  13911. }
  13912. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  13913. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  13914. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13915. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13916. var scoreA = parseFloat(jscoreA);
  13917. var scoreB = parseFloat(jscoreB);
  13918. if (scoreA == scoreB) {
  13919. return b.likesCount - a.likesCount;
  13920. }
  13921. return scoreB - scoreA;
  13922. });
  13923. }
  13924. }
  13925. for (var i = 0; i < a.length; i++) {
  13926. for (var j = 0; j < b.length; j++) {
  13927. var data = b[j];
  13928. if (i == b[j].tool) {
  13929. if (data.type == 2 || data.type == 8) {
  13930. for (var z = 0; z < this.checkJson[i].length; z++) {
  13931. this.checkJson[i][z].checkPerent = [];
  13932. this.checkJson[i][z].right = Math.round(
  13933. (this.checkJson[i][z].rightPerson.length /
  13934. parseInt(this.worksStudent[i].length)) *
  13935. 100
  13936. );
  13937. let aaaa = this.checkJson[i][z];
  13938. console.log(aaaa);
  13939. for (
  13940. var k = 0;
  13941. k < this.checkJson[i][z].checkCount.length;
  13942. k++
  13943. ) {
  13944. this.checkJson[i][z].checkPerent.push(
  13945. Math.round(
  13946. (this.checkJson[i][z].checkCount[k] /
  13947. parseInt(this.worksStudent[i].length)) *
  13948. 100
  13949. )
  13950. );
  13951. }
  13952. }
  13953. } else if (data.type == 9) {
  13954. for (var z = 0; z < this.checkJson[i].length; z++) {
  13955. this.checkJson[i][z].checkPerent = [];
  13956. this.checkJson[i][z].right = Math.round(
  13957. (this.checkJson[i][z].rightPerson.length /
  13958. this.checkJson[i][z].checkPerson.length) *
  13959. 100
  13960. );
  13961. }
  13962. }
  13963. }
  13964. }
  13965. }
  13966. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  13967. this.joinGroup(gindex);
  13968. }
  13969. this.selectWorksStudent();
  13970. })
  13971. .catch((err) => {
  13972. console.error(err);
  13973. });
  13974. },
  13975. pngToWhiteBg(file) {
  13976. const _file = file;
  13977. let read = new FileReader();
  13978. read.readAsDataURL(file); // 文件转base64
  13979. return new Promise((resolve, reject) => {
  13980. read.onload = (e) => {
  13981. let img = new Image();
  13982. img.src = e.target.result;
  13983. img.onload = async () => {
  13984. // 生成canvas
  13985. let canvas = document.createElement("canvas");
  13986. let context = canvas.getContext("2d");
  13987. // 绘制图片到canvas上
  13988. canvas.width = img.width;
  13989. canvas.height = img.height;
  13990. // 在canvas绘制前填充白色背景
  13991. context.fillStyle = "#fff";
  13992. context.fillRect(0, 0, canvas.width, canvas.height);
  13993. context.drawImage(img, 0, 0);
  13994. let base64 = canvas.toDataURL(file["type"], 1);
  13995. let newFile = this.dataUrlToFile(base64, _file);
  13996. resolve(newFile);
  13997. };
  13998. };
  13999. });
  14000. },
  14001. dataUrlToFile(dataurl, file) {
  14002. let arr = dataurl.split(","),
  14003. mime = arr[0].match(/:(.*?);/)[1],
  14004. bstr = atob(arr[1]),
  14005. n = bstr.length,
  14006. u8arr = new Uint8Array(n);
  14007. while (n--) {
  14008. u8arr[n] = bstr.charCodeAt(n);
  14009. }
  14010. // return new Blob([u8arr], { type: mime });
  14011. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14012. type: mime,
  14013. });
  14014. },
  14015. async beforeUpload1(event, type, i) {
  14016. // this.$message.success('进入上传')
  14017. var file = "";
  14018. if (type == 5) {
  14019. file = event;
  14020. } else {
  14021. file = event.target.files[0];
  14022. }
  14023. var credentials = {
  14024. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14025. secretAccessKey: "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",
  14026. }; //秘钥形式的登录上传
  14027. window.AWS.config.update(credentials);
  14028. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14029. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14030. var _this = this;
  14031. _this.progress = 0;
  14032. _this.proVisible = true;
  14033. _this.isFinishSize = 0;
  14034. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14035. var b = [
  14036. "DOC",
  14037. "DOCX",
  14038. "DOCM",
  14039. "DOTM",
  14040. "DOTX",
  14041. "PPTX",
  14042. "PPSX",
  14043. "PPT",
  14044. "PPS",
  14045. "PPTM",
  14046. "POTM",
  14047. "PPAM",
  14048. "POTX",
  14049. "PPSM",
  14050. ];
  14051. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14052. var photoA = [
  14053. "BMP",
  14054. "GIF",
  14055. "PNG",
  14056. "JPGE",
  14057. "JPG",
  14058. "TIF",
  14059. "PCX",
  14060. "TGA",
  14061. "EXIF",
  14062. "FPX",
  14063. "SVG",
  14064. "APNG",
  14065. ];
  14066. // if (
  14067. // b.indexOf(
  14068. // file.name
  14069. // .split(".")
  14070. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14071. // ) != -1
  14072. // ) {
  14073. // if (file.size / 1024 / 1024 > 10) {
  14074. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14075. // return;
  14076. // }
  14077. // } else if (
  14078. // excelA.indexOf(
  14079. // file.name
  14080. // .split(".")
  14081. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14082. // ) != "-1"
  14083. // ) {
  14084. // if (file.size / 1024 / 1024 > 5) {
  14085. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14086. // return;
  14087. // }
  14088. // }
  14089. if (
  14090. photoA.indexOf(
  14091. file.name
  14092. .split(".")
  14093. [file.name.split(".").length - 1].toLocaleUpperCase()
  14094. ) != -1 &&
  14095. type != 4
  14096. ) {
  14097. // const blob = await imageConversion.compress(file, 0.8)
  14098. file = await this.pngToWhiteBg(file);
  14099. const blob = await imageConversion.compressAccurately(file, 256);
  14100. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14101. file = new File([blob], file.name, { type: file.type });
  14102. }
  14103. if (file) {
  14104. var params = {
  14105. Key:
  14106. file.name.split(".")[0] +
  14107. new Date().getTime() +
  14108. "." +
  14109. file.name.split(".")[file.name.split(".").length - 1],
  14110. ContentType: file.type,
  14111. Body: file,
  14112. "Access-Control-Allow-Credentials": "*",
  14113. ACL: "public-read",
  14114. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14115. var options = {
  14116. // partSize: 2048 * 1024 * 1024,
  14117. partSize: 1024 * 1024 * 1024,
  14118. queueSize: 2,
  14119. leavePartsOnError: true,
  14120. };
  14121. bucket
  14122. .upload(params, options)
  14123. .on("httpUploadProgress", function (evt) {
  14124. //这里可以写进度条
  14125. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14126. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14127. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14128. })
  14129. .send(function (err, data) {
  14130. _this.progress = 100;
  14131. _this.isFinishSize = _this.isAllSize;
  14132. setTimeout(() => {
  14133. _this.proVisible = false;
  14134. }, 1000);
  14135. if (err) {
  14136. var a = _this.$refs.upload1.uploadFiles;
  14137. a.splice(a.length - 1, a.length);
  14138. _this.$message.error("上传失败");
  14139. } else {
  14140. // _this.$message.success('上传成功')
  14141. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14142. var c = [
  14143. "AVI",
  14144. "NAVI",
  14145. "MPEG",
  14146. "ASF",
  14147. "MOV",
  14148. "WMV",
  14149. "3GP",
  14150. "RM",
  14151. "RMVB",
  14152. "FLV",
  14153. "F4V",
  14154. "H.264",
  14155. "H.265",
  14156. "REAL VIDEO",
  14157. "MKV",
  14158. "WebM",
  14159. "HDDVD",
  14160. "MP4",
  14161. "MPG",
  14162. "M4V",
  14163. "MGV",
  14164. "OGV",
  14165. "QTM",
  14166. "STR",
  14167. "AMC",
  14168. "DVX",
  14169. "EVO",
  14170. "DAT",
  14171. "OGG",
  14172. "OGM",
  14173. ];
  14174. if (type == 1) {
  14175. _this.studyJuri[0].cover.push({
  14176. name: file.name,
  14177. url: data.Location,
  14178. uid: file.uid,
  14179. });
  14180. if (
  14181. c.indexOf(
  14182. _this.studyJuri[0].cover[0].url
  14183. .split(".")
  14184. [
  14185. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14186. ].toLocaleUpperCase()
  14187. ) != -1
  14188. ) {
  14189. _this.fileType = 2;
  14190. } else if (
  14191. b.indexOf(
  14192. _this.studyJuri[0].cover[0].url
  14193. .split(".")
  14194. [
  14195. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14196. ].toLocaleUpperCase()
  14197. ) != -1
  14198. ) {
  14199. _this.fileType = 1;
  14200. } else if (
  14201. photoA.indexOf(
  14202. _this.studyJuri[0].cover[0].url
  14203. .split(".")
  14204. [
  14205. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14206. ].toLocaleUpperCase()
  14207. ) != -1
  14208. ) {
  14209. _this.fileType = 0;
  14210. } else {
  14211. _this.fileType = 3;
  14212. }
  14213. _this.imgChange(null, null, type);
  14214. } else if (type == 2) {
  14215. _this.upToolImg = data.Location;
  14216. _this.imgChange(null, null, type);
  14217. _this.addCourseWorks(i);
  14218. } else if (type == 4) {
  14219. _this.addPz("3", data.Location);
  14220. } else if (type == 5) {
  14221. _this.addImgDrawImG(data.Location);
  14222. } else if (type == 6) {
  14223. var _ftype = 1;
  14224. if (
  14225. c.indexOf(
  14226. data.Location.split(".")[
  14227. data.Location.split(".").length - 1
  14228. ].toLocaleUpperCase()
  14229. ) != -1
  14230. ) {
  14231. _ftype = 5;
  14232. } else if (
  14233. b.indexOf(
  14234. data.Location.split(".")[
  14235. data.Location.split(".").length - 1
  14236. ].toLocaleUpperCase()
  14237. ) != -1
  14238. ) {
  14239. _ftype = 4;
  14240. } else {
  14241. _ftype = 1;
  14242. }
  14243. _this.plworkFile.push({
  14244. name: file.name,
  14245. url: data.Location,
  14246. uid: file.uid,
  14247. fileType: _ftype,
  14248. username:
  14249. _this.plworkFile.length + 1 > 10
  14250. ? _this.plworkFile.length + 1
  14251. : "0" + (_this.plworkFile.length + 1),
  14252. });
  14253. } else if (type == 7) {
  14254. _this.addCourseWorksGong(i, data.Location, 32);
  14255. } else if (type == 8) {
  14256. _this.addCourseWorksGong(i, data.Location, 57);
  14257. }
  14258. _this.imgChange(null, null, type);
  14259. console.log(data.Location);
  14260. // _this.$message.success('上传成功'+data.Location)
  14261. }
  14262. });
  14263. }
  14264. },
  14265. async beforeUpload3(event, type, i) {
  14266. // this.$message.success('进入上传')
  14267. let file = "";
  14268. let cfindex2 = 0;
  14269. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14270. file = event.target.files[cfindex];
  14271. var credentials = {
  14272. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14273. secretAccessKey: "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",
  14274. }; //秘钥形式的登录上传
  14275. window.AWS.config.update(credentials);
  14276. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14277. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14278. var _this = this;
  14279. // _this.progress = 0;
  14280. _this.proVisible2 = true;
  14281. var b = [
  14282. "DOC",
  14283. "DOCX",
  14284. "DOCM",
  14285. "DOTM",
  14286. "DOTX",
  14287. "PPTX",
  14288. "PPSX",
  14289. "PPT",
  14290. "PPS",
  14291. "PPTM",
  14292. "POTM",
  14293. "PPAM",
  14294. "POTX",
  14295. "PPSM",
  14296. ];
  14297. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14298. var photoA = [
  14299. "BMP",
  14300. "GIF",
  14301. "PNG",
  14302. "JPGE",
  14303. "JPG",
  14304. "TIF",
  14305. "PCX",
  14306. "TGA",
  14307. "EXIF",
  14308. "FPX",
  14309. "SVG",
  14310. "APNG",
  14311. ];
  14312. if (
  14313. photoA.indexOf(
  14314. file.name
  14315. .split(".")
  14316. [file.name.split(".").length - 1].toLocaleUpperCase()
  14317. ) != -1 &&
  14318. type != 4
  14319. ) {
  14320. // const blob = await imageConversion.compress(file, 0.8)
  14321. file = await this.pngToWhiteBg(file);
  14322. const blob = await imageConversion.compressAccurately(file, 256);
  14323. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14324. file = new File([blob], file.name, { type: file.type });
  14325. }
  14326. if (file) {
  14327. var params = {
  14328. Key:
  14329. file.name.split(".")[0] +
  14330. new Date().getTime() +
  14331. "." +
  14332. file.name.split(".")[file.name.split(".").length - 1],
  14333. ContentType: file.type,
  14334. Body: file,
  14335. "Access-Control-Allow-Credentials": "*",
  14336. ACL: "public-read",
  14337. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14338. var options = {
  14339. // partSize: 2048 * 1024 * 1024,
  14340. partSize: 1024 * 1024 * 1024,
  14341. queueSize: 2,
  14342. leavePartsOnError: true,
  14343. };
  14344. bucket
  14345. .upload(params, options)
  14346. .on("httpUploadProgress", function (evt) {
  14347. //这里可以写进度条
  14348. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14349. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14350. })
  14351. .send(function (err, data) {
  14352. // _this.progress = 100;
  14353. cfindex2++;
  14354. setTimeout(() => {
  14355. if (
  14356. cfindex2 == event.target.files.length - 1 ||
  14357. cfindex2 > event.target.files.length - 1
  14358. ) {
  14359. _this.proVisible2 = false;
  14360. }
  14361. }, 1000);
  14362. if (err) {
  14363. var a = _this.$refs.upload1.uploadFiles;
  14364. a.splice(a.length - 1, a.length);
  14365. _this.$message.error("上传失败");
  14366. } else {
  14367. // _this.$message.success('上传成功')
  14368. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14369. var c = [
  14370. "AVI",
  14371. "NAVI",
  14372. "MPEG",
  14373. "ASF",
  14374. "MOV",
  14375. "WMV",
  14376. "3GP",
  14377. "RM",
  14378. "RMVB",
  14379. "FLV",
  14380. "F4V",
  14381. "H.264",
  14382. "H.265",
  14383. "REAL VIDEO",
  14384. "MKV",
  14385. "WebM",
  14386. "HDDVD",
  14387. "MP4",
  14388. "MPG",
  14389. "M4V",
  14390. "MGV",
  14391. "OGV",
  14392. "QTM",
  14393. "STR",
  14394. "AMC",
  14395. "DVX",
  14396. "EVO",
  14397. "DAT",
  14398. "OGG",
  14399. "OGM",
  14400. ];
  14401. if (type == 1) {
  14402. _this.studyJuri[0].cover.push({
  14403. name: file.name,
  14404. url: data.Location,
  14405. uid: file.uid,
  14406. });
  14407. if (
  14408. c.indexOf(
  14409. _this.studyJuri[0].cover[0].url
  14410. .split(".")
  14411. [
  14412. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14413. ].toLocaleUpperCase()
  14414. ) != -1
  14415. ) {
  14416. _this.fileType = 2;
  14417. } else if (
  14418. b.indexOf(
  14419. _this.studyJuri[0].cover[0].url
  14420. .split(".")
  14421. [
  14422. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14423. ].toLocaleUpperCase()
  14424. ) != -1
  14425. ) {
  14426. _this.fileType = 1;
  14427. } else {
  14428. _this.fileType = 0;
  14429. }
  14430. _this.imgChange(null, null, type);
  14431. } else if (type == 2) {
  14432. _this.upToolImg = data.Location;
  14433. _this.imgChange(null, null, type);
  14434. _this.addCourseWorks(i);
  14435. } else if (type == 4) {
  14436. _this.addPz("3", data.Location);
  14437. } else if (type == 5) {
  14438. _this.addImgDrawImG(data.Location);
  14439. } else if (type == 6) {
  14440. var _ftype = 1;
  14441. if (
  14442. c.indexOf(
  14443. data.Location.split(".")[
  14444. data.Location.split(".").length - 1
  14445. ].toLocaleUpperCase()
  14446. ) != -1
  14447. ) {
  14448. _ftype = 5;
  14449. } else if (
  14450. b.indexOf(
  14451. data.Location.split(".")[
  14452. data.Location.split(".").length - 1
  14453. ].toLocaleUpperCase()
  14454. ) != -1
  14455. ) {
  14456. _ftype = 4;
  14457. } else {
  14458. _ftype = 1;
  14459. }
  14460. _this.plworkFile.push({
  14461. name: file.name,
  14462. url: data.Location,
  14463. uid: file.uid,
  14464. fileType: _ftype,
  14465. username:
  14466. _this.plworkFile.length + 1 > 9
  14467. ? _this.plworkFile.length + 1
  14468. : "0" + (_this.plworkFile.length + 1),
  14469. });
  14470. }
  14471. _this.imgChange(null, null, type);
  14472. console.log(data.Location);
  14473. // _this.$message.success('上传成功'+data.Location)
  14474. }
  14475. });
  14476. }
  14477. }
  14478. },
  14479. beforeUpload2(event, type) {
  14480. var file = event.target.files[0];
  14481. var credentials = {
  14482. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14483. secretAccessKey: "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",
  14484. }; //秘钥形式的登录上传
  14485. window.AWS.config.update(credentials);
  14486. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14487. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14488. var _this = this;
  14489. _this.progress = 0;
  14490. _this.proVisible = true;
  14491. if (file) {
  14492. var params = {
  14493. Key:
  14494. file.name.split(".")[0] +
  14495. new Date().getTime() +
  14496. "." +
  14497. file.name.split(".")[file.name.split(".").length - 1],
  14498. ContentType: file.type,
  14499. Body: file,
  14500. "Access-Control-Allow-Credentials": "*",
  14501. ACL: "public-read",
  14502. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14503. var options = {
  14504. partSize: 2048 * 1024 * 1024,
  14505. queueSize: 2,
  14506. leavePartsOnError: true,
  14507. };
  14508. bucket
  14509. .upload(params, options)
  14510. .on("httpUploadProgress", function (evt) {
  14511. //这里可以写进度条
  14512. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14513. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14514. })
  14515. .send(function (err, data) {
  14516. _this.progress = 100;
  14517. setTimeout(() => {
  14518. _this.proVisible = false;
  14519. }, 1000);
  14520. if (err) {
  14521. var a = _this.$refs.upload1.uploadFiles;
  14522. a.splice(a.length - 1, a.length);
  14523. _this.$message.error("上传失败");
  14524. } else {
  14525. if (type == 2) {
  14526. _this.studyJuri[0].upVedio.push({
  14527. name: file.name,
  14528. url: data.Location,
  14529. uid: file.uid,
  14530. });
  14531. _this.imgChange(null, null, type);
  14532. } else if (type == 3) {
  14533. _this.studyJuri[0].upFile.push({
  14534. name: file.name,
  14535. url: data.Location,
  14536. uid: file.uid,
  14537. });
  14538. _this.imgChange(null, null, type);
  14539. }
  14540. console.log(data.Location);
  14541. }
  14542. });
  14543. }
  14544. },
  14545. allScrell() {
  14546. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  14547. },
  14548. nextToolindex(type) {
  14549. if (type == "last") {
  14550. if (this.toolIndex == 0) {
  14551. this.$message.error("已经是第一个步骤");
  14552. return;
  14553. }
  14554. this.toolIndex = this.toolIndex - 1;
  14555. this.tool =
  14556. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14557. this.taskCount
  14558. ].toolChoose[this.toolIndex];
  14559. } else if (type == "next") {
  14560. if (
  14561. this.toolIndex ==
  14562. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14563. this.taskCount
  14564. ].toolChoose.length -
  14565. 1
  14566. ) {
  14567. this.$message.error("已经是最后一个步骤");
  14568. return;
  14569. }
  14570. this.toolIndex = this.toolIndex + 1;
  14571. this.tool =
  14572. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14573. this.taskCount
  14574. ].toolChoose[this.toolIndex];
  14575. }
  14576. this.$forceUpdate();
  14577. },
  14578. checkBz(index) {
  14579. this.toolIndex = index;
  14580. this.tool =
  14581. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14582. this.taskCount
  14583. ].toolChoose[this.toolIndex];
  14584. this.isUpdateToolDetail = false;
  14585. this.$forceUpdate();
  14586. },
  14587. nextOrpreSteps(t) {
  14588. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14589. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14590. return;
  14591. }
  14592. var b = this.chapInfoList.length - 1;
  14593. if (t == 0) {
  14594. if (this.courseType == 0) {
  14595. if (this.taskCount == 0) {
  14596. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14597. if (this.IsLookOpen) {
  14598. if (
  14599. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14600. ) {
  14601. if (
  14602. this.courseDetail.userid != this.userid &&
  14603. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14604. ) {
  14605. this.$message.error("任务未解锁");
  14606. } else {
  14607. this.$message.error("上一任务未解锁");
  14608. }
  14609. return;
  14610. }
  14611. }
  14612. this.navList[this.courseType].isOpen = false;
  14613. this.courseType = b;
  14614. this.taskCount =
  14615. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14616. .length - 1;
  14617. this.navList[this.courseType].isOpen = true;
  14618. } else {
  14619. this.taskCount--;
  14620. }
  14621. } else {
  14622. if (this.taskCount == 0) {
  14623. this.navList[this.courseType].isOpen = false;
  14624. this.courseType--;
  14625. this.taskCount =
  14626. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14627. .length - 1;
  14628. this.navList[this.courseType].isOpen = true;
  14629. } else {
  14630. this.taskCount--;
  14631. }
  14632. }
  14633. } else {
  14634. if (this.courseType == b) {
  14635. if (
  14636. this.taskCount ==
  14637. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14638. 1
  14639. ) {
  14640. this.navList[this.courseType].isOpen = false;
  14641. this.courseType = 0;
  14642. this.taskCount = 0;
  14643. this.navList[this.courseType].isOpen = true;
  14644. } else {
  14645. var bbb = parseInt(this.taskCount) + 1;
  14646. if (
  14647. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14648. .isLook &&
  14649. this.courseDetail.userid != this.userid &&
  14650. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14651. this.IsLookOpen
  14652. ) {
  14653. this.$message.error("任务未解锁");
  14654. return;
  14655. }
  14656. this.taskCount++;
  14657. if (this.IsLookOpen) {
  14658. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14659. this.taskCount
  14660. ].isLook = true;
  14661. this.addCourseState(3);
  14662. }
  14663. }
  14664. } else {
  14665. if (
  14666. this.taskCount ==
  14667. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14668. 1
  14669. ) {
  14670. var bbb = parseInt(this.courseType) + 1;
  14671. if (
  14672. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14673. this.courseDetail.userid != this.userid &&
  14674. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14675. this.IsLookOpen
  14676. ) {
  14677. this.$message.error("任务未解锁");
  14678. return;
  14679. }
  14680. this.navList[this.courseType].isOpen = false;
  14681. this.courseType++;
  14682. this.taskCount = 0;
  14683. this.navList[this.courseType].isOpen = true;
  14684. } else {
  14685. var bbb = parseInt(this.taskCount) + 1;
  14686. if (
  14687. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14688. .isLook &&
  14689. this.courseDetail.userid != this.userid &&
  14690. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14691. this.IsLookOpen
  14692. ) {
  14693. this.$message.error("任务未解锁");
  14694. return;
  14695. }
  14696. this.taskCount++;
  14697. }
  14698. if (this.IsLookOpen) {
  14699. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14700. this.taskCount
  14701. ].isLook = true;
  14702. this.addCourseState(3);
  14703. }
  14704. }
  14705. }
  14706. document.scrollingElement.scrollTop = 0;
  14707. // this.showType = 0;
  14708. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14709. this.toolIndex = null;
  14710. this.isNoHomeWork = false;
  14711. (this.studyJuri = [
  14712. {
  14713. content: "",
  14714. cover: [],
  14715. upVedio: [],
  14716. upFile: [],
  14717. },
  14718. ]),
  14719. (this.radio = []);
  14720. // this.isClickNav = "";
  14721. this.selectPz();
  14722. this.getHomeWork();
  14723. this.getCourseDetail(2);
  14724. this.$forceUpdate();
  14725. },
  14726. openTask(s, n, i) {
  14727. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14728. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14729. return;
  14730. }
  14731. if (this.IsLookOpen) {
  14732. if (
  14733. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14734. this.courseDetail.userid != this.userid &&
  14735. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14736. ) {
  14737. this.$message.error("任务未解锁");
  14738. return;
  14739. }
  14740. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14741. if (
  14742. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14743. .isLook
  14744. ) {
  14745. this.$message.error("上一任务未解锁");
  14746. return;
  14747. }
  14748. } else if (s > this.courseType) {
  14749. if (n > 0) {
  14750. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14751. this.$message.error("上一任务未解锁");
  14752. return;
  14753. }
  14754. } else {
  14755. if (
  14756. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14757. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14758. ].isLook
  14759. ) {
  14760. this.$message.error("上一任务未解锁");
  14761. return;
  14762. }
  14763. }
  14764. }
  14765. }
  14766. this.courseType = s;
  14767. this.navId = i;
  14768. this.taskCount = n;
  14769. if (this.IsLookOpen) {
  14770. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14771. this.taskCount
  14772. ].isLook = true;
  14773. this.addCourseState(3);
  14774. }
  14775. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14776. this.isCloseList[ci].isClose = 0;
  14777. }
  14778. // this.showType = 0;
  14779. this.isNoHomeWork = false;
  14780. (this.studyJuri = [
  14781. {
  14782. content: "",
  14783. cover: [],
  14784. upVedio: [],
  14785. upFile: [],
  14786. },
  14787. ]),
  14788. (this.radio = []);
  14789. document.scrollingElement.scrollTop = 0;
  14790. this.toolIndex = null;
  14791. // setTimeout(() => {
  14792. // let a = document.getElementById(i);
  14793. // if (a.offsetTop - 110 == 0) {
  14794. // window.scrollTo(0, 0);
  14795. // } else {
  14796. // window.scrollTo(0, a.offsetTop);
  14797. // }
  14798. // }, 0);
  14799. this.selectPz();
  14800. this.getHomeWork();
  14801. this.getCourseDetail(2);
  14802. },
  14803. get(i) {
  14804. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14805. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14806. return;
  14807. }
  14808. this.navList[i].isOpen = !this.navList[i].isOpen;
  14809. },
  14810. addQuestion() {
  14811. this.answerList.push({
  14812. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14813. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14814. });
  14815. let params = [
  14816. {
  14817. uid: this.userid,
  14818. cid: this.id,
  14819. stage: this.courseType,
  14820. task: this.taskCount,
  14821. tool: this.toolindex,
  14822. content: JSON.stringify(this.answerList),
  14823. type: 3,
  14824. },
  14825. ];
  14826. this.ajax
  14827. .post(this.$store.state.api + "addCourseWorks", params)
  14828. .then((res) => {
  14829. this.$message({
  14830. message: "提交成功",
  14831. type: "success",
  14832. });
  14833. this.answerList = [];
  14834. this.questionAnswer = "";
  14835. this.answerDialogVisible = false;
  14836. this.selectStudent();
  14837. this.selectSWorks();
  14838. this.selectSLook();
  14839. })
  14840. .catch((err) => {
  14841. this.$message.error("提交失败");
  14842. console.error(err);
  14843. });
  14844. },
  14845. addQuestionTeacher() {
  14846. this.answerList.push({
  14847. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14848. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14849. });
  14850. let params = [
  14851. {
  14852. uid: this.sStudent.userid,
  14853. cid: this.id,
  14854. stage: this.courseType,
  14855. task: this.taskCount,
  14856. tool: this.toolindex,
  14857. content: JSON.stringify(this.answerList),
  14858. type: 3,
  14859. ateacher: this.userid,
  14860. },
  14861. ];
  14862. this.ajax
  14863. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14864. .then((res) => {
  14865. this.$message({
  14866. message: "提交成功",
  14867. type: "success",
  14868. });
  14869. this.answerList = [];
  14870. this.questionAnswer = "";
  14871. this.answerDialogVisibleTeacher = false;
  14872. this.selectStudent();
  14873. this.selectSWorks();
  14874. this.selectSLook();
  14875. })
  14876. .catch((err) => {
  14877. this.$message.error("提交失败");
  14878. console.error(err);
  14879. });
  14880. },
  14881. refreshCourse() {
  14882. this.navList = [];
  14883. this.getCourseDetail(1);
  14884. },
  14885. setPz() {
  14886. if (this.ispzType == 4) {
  14887. this.ispzType = 0;
  14888. this.pzDialog = false;
  14889. return;
  14890. }
  14891. this.ispzType = 4;
  14892. this.pzDialog = true;
  14893. this.selectPz();
  14894. },
  14895. getCourseDetail(type, gindex) {
  14896. let loading;
  14897. if (type != 2) {
  14898. loading = this.$loading.service({
  14899. background: "rgba(255, 255, 255, 0.7)",
  14900. target: document.querySelector(".student_table"),
  14901. });
  14902. }
  14903. let params = {
  14904. courseId: this.id,
  14905. };
  14906. this.ajax
  14907. .get(this.$store.state.api + "selectCourseDetail3", params)
  14908. .then((res) => {
  14909. if (type != 2) {
  14910. loading.close();
  14911. if (
  14912. this.courseType >
  14913. JSON.parse(res.data[0][0].chapters).length - 1
  14914. ) {
  14915. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  14916. }
  14917. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14918. .chapterInfo[0].taskJson;
  14919. var b = [
  14920. "AVI",
  14921. "NAVI",
  14922. "MPEG",
  14923. "ASF",
  14924. "MOV",
  14925. "WMV",
  14926. "3GP",
  14927. "RM",
  14928. "RMVB",
  14929. "FLV",
  14930. "F4V",
  14931. "H.264",
  14932. "H.265",
  14933. "REAL VIDEO",
  14934. "MKV",
  14935. "WebM",
  14936. "HDDVD",
  14937. "MP4",
  14938. "MPG",
  14939. "M4V",
  14940. "MGV",
  14941. "OGV",
  14942. "QTM",
  14943. "STR",
  14944. "AMC",
  14945. "DVX",
  14946. "EVO",
  14947. "DAT",
  14948. "OGG",
  14949. "OGM",
  14950. "MP3",
  14951. ];
  14952. let _chapterData = [];
  14953. for (var i = 0; i < a.length; i++) {
  14954. var c = a[i].chapterData;
  14955. this.vedio[i] = [];
  14956. this.textList[i] = [];
  14957. this.lineList[i] = [];
  14958. this.chapToolList[i] = [];
  14959. this.file[i] = [];
  14960. this.fileC[i] = [];
  14961. _chapterData[i] = c.filter((el) => {
  14962. return el.type != 12;
  14963. });
  14964. this.fileC[i] = c.filter((el) => {
  14965. return el.type == 12;
  14966. });
  14967. for (var j = 0; j < c.length; j++) {
  14968. if (c[j].type == 7) {
  14969. this.chapToolList[i].push(c[j]);
  14970. } else if (c[j].type == 8 || c[j].type == 14) {
  14971. this.lineList[i].push(c[j]);
  14972. } else if (c[j].type == 6) {
  14973. this.textList[i].push(c[j]);
  14974. } else {
  14975. if (
  14976. b.indexOf(
  14977. c[j].url
  14978. .split(".")
  14979. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14980. ) != -1
  14981. ) {
  14982. this.vedio[i].push(c[j]);
  14983. } else {
  14984. this.file[i].push(c[j]);
  14985. }
  14986. }
  14987. }
  14988. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14989. d.sources[0].src =
  14990. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  14991. this.playerO[i] = d;
  14992. }
  14993. this.courseDetail = res.data[0][0];
  14994. this.tcid = this.arrayToArray(
  14995. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14996. this.tcid2 ? this.tcid2.split(",") : []
  14997. ).join(",");
  14998. console.log(this.tcid);
  14999. this.evalua = res.data[0][0].evaId;
  15000. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15001. this.courseType
  15002. ];
  15003. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15004. if (this.tcid && res.data[1].length) {
  15005. let _inviteA = [];
  15006. for (var ik = 0; ik < res.data[1].length; ik++) {
  15007. _inviteA.push({
  15008. cid: res.data[1][ik].classid,
  15009. ic: res.data[1][ik].code,
  15010. });
  15011. }
  15012. for (var ik = 0; ik < _inviteA.length; ik++) {
  15013. if (
  15014. this.arrayToArray(
  15015. _inviteA[ik].cid.split(","),
  15016. this.tcid.split(",")
  15017. ).length
  15018. ) {
  15019. this.inviteCode = _inviteA[ik].ic;
  15020. break;
  15021. }
  15022. }
  15023. }
  15024. for (var l = 0; l < this.chapInfoList.length; l++) {
  15025. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15026. for (var m = 0; m < w.length; m++) {
  15027. w[m].id = l + "-" + m;
  15028. }
  15029. }
  15030. let taskCount = 0;
  15031. if (
  15032. _chapterData[taskCount].length &&
  15033. _chapterData[taskCount][0].type == 2
  15034. ) {
  15035. this.showType = 0;
  15036. } else {
  15037. if (_chapterData[taskCount].length > 0) {
  15038. let _url = _chapterData[taskCount][0].url;
  15039. if (_chapterData[taskCount][0].type == 8 || _chapterData[taskCount][0].type == 14) {
  15040. this.showType = 2;
  15041. if (
  15042. _url.indexOf("https://") == -1 &&
  15043. _url.indexOf("http://") == -1
  15044. ) {
  15045. _url = "https://" + _url;
  15046. }
  15047. this.pptImgUrl1 = _url;
  15048. } else if (_chapterData[taskCount][0].type == 3) {
  15049. if (
  15050. _url
  15051. .split(".")
  15052. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15053. ) {
  15054. this.showType = 3;
  15055. this.pptImgUrl1 = _url;
  15056. } else if (
  15057. this.isAssetTypeAnImage(
  15058. _url
  15059. .split(".")
  15060. [_url.split(".").length - 1].toLocaleLowerCase()
  15061. )
  15062. ) {
  15063. this.showType = 4;
  15064. this.pptImgUrl1 = _url;
  15065. } else {
  15066. this.showType = 2;
  15067. this.pptImgUrl1 =
  15068. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15069. _url;
  15070. }
  15071. } else if (_chapterData[this.taskCount][0].type == 13) {
  15072. this.showType = 4;
  15073. this.pptImgUrl1 = _url;
  15074. } else if (_chapterData[taskCount][0].type == 6) {
  15075. this.showType = 1;
  15076. this.text = this.textList[taskCount][0];
  15077. }
  15078. }
  15079. }
  15080. this.isClickNav = 0;
  15081. if (
  15082. !_chapterData[taskCount].length ||
  15083. _chapterData[taskCount][0].type == 12
  15084. ) {
  15085. this.isClickNav = "";
  15086. this.showType = "";
  15087. }
  15088. this.vChapterData = _chapterData;
  15089. if (
  15090. this.toolIndex == null &&
  15091. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15092. this.taskCount
  15093. ].toolChoose.length
  15094. ) {
  15095. this.toolIndex = 0;
  15096. this.tool =
  15097. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15098. this.taskCount
  15099. ].toolChoose[this.toolIndex];
  15100. }
  15101. } else {
  15102. if (
  15103. this.toolIndex == null &&
  15104. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15105. this.taskCount
  15106. ].toolChoose.length
  15107. ) {
  15108. this.toolIndex = 0;
  15109. this.tool =
  15110. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15111. this.taskCount
  15112. ].toolChoose[this.toolIndex];
  15113. }
  15114. }
  15115. this.isUpdateToolDetail = false;
  15116. this.$nextTick(() => {
  15117. setTimeout(() => {
  15118. this.checkEva();
  15119. }, 1000);
  15120. });
  15121. let _this = this;
  15122. if (_this.timer) {
  15123. clearInterval(_this.timer);
  15124. _this.timer = null;
  15125. }
  15126. _this.selectSWorks(gindex);
  15127. _this.selectStudent();
  15128. _this.selectSLook();
  15129. _this.getPick();
  15130. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15131. _this.setCTask();
  15132. }
  15133. if (_this.dialogVisibleGroup) {
  15134. _this.groupJson =
  15135. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15136. _this.taskCount
  15137. ].toolChoose[_this.toolindex].groupJson;
  15138. }
  15139. _this.timer = setInterval(function () {
  15140. if (_this.tcid) {
  15141. _this.getCourseGroup(gindex);
  15142. } else {
  15143. _this.selectSWorks(gindex);
  15144. }
  15145. _this.selectStudent();
  15146. _this.selectSLook();
  15147. _this.getPick();
  15148. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15149. _this.setCTask();
  15150. }
  15151. if (_this.dialogVisibleGroup) {
  15152. _this.groupJson =
  15153. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15154. _this.taskCount
  15155. ].toolChoose[_this.toolindex].groupJson;
  15156. }
  15157. if (_this.tType == 4 || _this.ispzType == 4) {
  15158. _this.selectPz();
  15159. }
  15160. }, 5000);
  15161. })
  15162. .catch((err) => {
  15163. loading.close();
  15164. console.error(err);
  15165. });
  15166. },
  15167. getCourseGroup(gindex) {
  15168. let params = {
  15169. cid: this.id,
  15170. classid: this.tcid ? this.tcid : "1",
  15171. };
  15172. this.ajax
  15173. .get(this.$store.state.api + "getCourseGroup", params)
  15174. .then((res) => {
  15175. if (res.data && res.data[0].length) {
  15176. if (!this.isGroup) {
  15177. let courseGroup = JSON.parse(res.data[0][0].group);
  15178. courseGroup.group = courseGroup.group.filter((el) => {
  15179. el.works = [];
  15180. return el;
  15181. });
  15182. this.courseGroup = courseGroup;
  15183. let groupPerson = res.data[1];
  15184. let group = JSON.parse(res.data[0][0].group).group;
  15185. let courseGroupStudent = {};
  15186. let courseGroupStudentUid = {};
  15187. for (var i = 0; i < group.length; i++) {
  15188. courseGroupStudent[group[i].id] = [];
  15189. courseGroupStudentUid[group[i].id] = [];
  15190. for (var j = 0; j < groupPerson.length; j++) {
  15191. if (groupPerson[j].groupCid == group[i].id) {
  15192. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15193. courseGroupStudentUid[group[i].id].push(
  15194. groupPerson[j].userid
  15195. );
  15196. }
  15197. }
  15198. }
  15199. this.courseGroupStudent = courseGroupStudent;
  15200. this.courseGroupStudentUid = courseGroupStudentUid;
  15201. }
  15202. this.isGroup = true;
  15203. this.selectSWorks(gindex);
  15204. } else {
  15205. this.selectSWorks(gindex);
  15206. this.isGroup = false;
  15207. }
  15208. })
  15209. .catch((err) => {
  15210. // this.$message.error("网络不佳");
  15211. console.error(err);
  15212. });
  15213. },
  15214. setOperationTime() {
  15215. let _this = this;
  15216. if (_this.opertimer) {
  15217. clearInterval(_this.opertimer);
  15218. _this.opertimer = null;
  15219. }
  15220. _this.opertimer = setInterval(() => {
  15221. _this.setoTime("600");
  15222. }, 600000);
  15223. },
  15224. setoTime(time) {
  15225. let params = [
  15226. {
  15227. uid: this.userid,
  15228. cid: this.id,
  15229. type: "2",
  15230. time: time,
  15231. },
  15232. ];
  15233. this.ajax
  15234. .post(this.$store.state.api + "addOperationTimeT2", params)
  15235. .then((res) => {})
  15236. .catch((err) => {
  15237. console.error(err);
  15238. });
  15239. },
  15240. addPz(type, content) {
  15241. if (type == "1" && this.pzConText == "") {
  15242. this.$message.error("批注不能为空!");
  15243. return;
  15244. }
  15245. let params = [
  15246. {
  15247. cid: this.id,
  15248. uid: this.userid,
  15249. s: this.courseType,
  15250. t: this.taskCount,
  15251. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15252. type: type,
  15253. },
  15254. ];
  15255. this.ajax
  15256. .post(this.$store.state.api + "addPz2", params)
  15257. .then((res) => {
  15258. this.$message({
  15259. message: "添加成功",
  15260. type: "success",
  15261. });
  15262. this.pzConText = "";
  15263. this.addPzDialog = false;
  15264. this.selectPz();
  15265. })
  15266. .catch((err) => {
  15267. this.$message.error("添加失败");
  15268. console.error(err);
  15269. });
  15270. },
  15271. deletePz(id) {
  15272. this.$confirm("确定删除此批注吗?", "提示", {
  15273. confirmButtonText: "确定",
  15274. cancelButtonText: "取消",
  15275. type: "warning",
  15276. })
  15277. .then(() => {
  15278. let params = [
  15279. {
  15280. id: id,
  15281. },
  15282. ];
  15283. this.ajax
  15284. .post(this.$store.state.api + "deletePz", params)
  15285. .then((res) => {
  15286. this.$message({
  15287. message: "删除成功",
  15288. type: "success",
  15289. });
  15290. this.selectPz();
  15291. })
  15292. .catch((err) => {
  15293. this.$message.error("网络异常");
  15294. console.error(err);
  15295. });
  15296. })
  15297. .catch(() => {});
  15298. },
  15299. selectPz() {
  15300. let params = {
  15301. cid: this.id,
  15302. s: this.courseType,
  15303. t: this.taskCount,
  15304. type: this.pzStype,
  15305. uid: this.userid,
  15306. };
  15307. this.ajax
  15308. .get(this.$store.state.api + "selectPzListType", params)
  15309. .then((res) => {
  15310. this.pzList = res.data[0];
  15311. })
  15312. .catch((err) => {
  15313. console.error(err);
  15314. });
  15315. },
  15316. updateSLook() {
  15317. let params = {
  15318. sopen: this.sIsOpen == false ? 1 : 2,
  15319. cid: this.id,
  15320. };
  15321. this.ajax
  15322. .get(this.$store.state.api + "updateCourseSLook", params)
  15323. .then((res) => {
  15324. if (this.sIsOpen == true) {
  15325. this.$message({
  15326. message: "权限设置成功",
  15327. type: "success",
  15328. });
  15329. } else {
  15330. this.$message({
  15331. message: "权限关闭成功",
  15332. type: "success",
  15333. });
  15334. }
  15335. })
  15336. .catch((err) => {
  15337. console.error(err);
  15338. });
  15339. },
  15340. updateFollow() {
  15341. let params = [
  15342. {
  15343. sopen: this.IsFollow == false ? 1 : 2,
  15344. cid: this.id,
  15345. },
  15346. ];
  15347. this.ajax
  15348. .post(this.$store.state.api + "updateCourseFollow", params)
  15349. .then((res) => {
  15350. if (this.IsFollow == true) {
  15351. this.$message({
  15352. message: "开启成功",
  15353. type: "success",
  15354. });
  15355. } else {
  15356. this.$message({
  15357. message: "关闭成功",
  15358. type: "success",
  15359. });
  15360. }
  15361. this.setCTask();
  15362. })
  15363. .catch((err) => {
  15364. console.error(err);
  15365. });
  15366. },
  15367. setCTask() {
  15368. let params = [
  15369. {
  15370. sopen: this.courseType + "-" + this.taskCount,
  15371. cid: this.id,
  15372. },
  15373. ];
  15374. this.ajax
  15375. .post(this.$store.state.api + "updateCourseFollowC", params)
  15376. .then((res) => {})
  15377. .catch((err) => {
  15378. console.error(err);
  15379. });
  15380. },
  15381. updateLookOpen() {
  15382. let params = [
  15383. {
  15384. sopen: this.IsLookOpen == false ? 1 : 2,
  15385. cid: this.id,
  15386. },
  15387. ];
  15388. this.ajax
  15389. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15390. .then((res) => {
  15391. if (this.IsLookOpen == true) {
  15392. // if (this.courseType != 0 && this.taskCount != 0) {
  15393. // this.openTask(0, 0, "0-0");
  15394. // }
  15395. this.$message({
  15396. message: "权限设置成功",
  15397. type: "success",
  15398. });
  15399. } else {
  15400. this.$message({
  15401. message: "权限关闭成功",
  15402. type: "success",
  15403. });
  15404. }
  15405. this.getCourseState(2);
  15406. })
  15407. .catch((err) => {
  15408. console.error(err);
  15409. });
  15410. },
  15411. selectSLook() {
  15412. let params = {
  15413. cid: this.id,
  15414. };
  15415. this.ajax
  15416. .get(this.$store.state.api + "selectCourseSLook", params)
  15417. .then((res) => {
  15418. // this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15419. this.sIsOpen = true;
  15420. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15421. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15422. if (!this.IsLookOpen) {
  15423. this.setNavList();
  15424. } else {
  15425. this.getCourseState(1);
  15426. }
  15427. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15428. let _followC = res.data[0][0].followC.split("-");
  15429. if (
  15430. this.courseType != _followC[0] ||
  15431. this.taskCount != _followC[1]
  15432. ) {
  15433. this.navList[this.courseType].isOpen = false;
  15434. this.courseType = _followC[0];
  15435. this.navList[this.courseType].isOpen = true;
  15436. this.taskCount = parseInt(_followC[1]);
  15437. this.navId = res.data[0][0].followC;
  15438. this.getCourseDetail();
  15439. }
  15440. }
  15441. })
  15442. .catch((err) => {
  15443. console.error(err);
  15444. });
  15445. },
  15446. setNavList() {
  15447. if (this.navList.length == 0) {
  15448. this.navList = [];
  15449. for (var l = 0; l < this.chapInfoList.length; l++) {
  15450. var q = this.chapInfoList[l].dyName;
  15451. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15452. var e;
  15453. this.navList.push({
  15454. dyName: q,
  15455. isOpen: l === 0 ? true : false,
  15456. task: [],
  15457. });
  15458. for (var r = 0; r < w.length; r++) {
  15459. e = w[r].task;
  15460. if (this.chapInfoList[l].easy == 1) {
  15461. this.navList[l].task.push({
  15462. taskName: q,
  15463. id: l + "-" + r,
  15464. isLook: w[r].isLook,
  15465. });
  15466. } else {
  15467. this.navList[l].task.push({
  15468. taskName: e,
  15469. id: l + "-" + r,
  15470. isLook: w[r].isLook,
  15471. });
  15472. }
  15473. // this.navId = this.navId ? this.navId : l + "-" + r;
  15474. // this.navId = l + "-" + r;
  15475. }
  15476. }
  15477. this.navList[0].isOpen = false;
  15478. this.navList[this.courseType].isOpen = true;
  15479. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15480. } else {
  15481. this.setNavList2();
  15482. }
  15483. },
  15484. setNavList2() {
  15485. for (var l = 0; l < this.chapInfoList.length; l++) {
  15486. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15487. for (var r = 0; r < w.length; r++) {
  15488. this.navList[l].task[r].isLook = w[r].isLook;
  15489. }
  15490. }
  15491. if (
  15492. this.IsLookOpen &&
  15493. !this.navList[this.courseType].task[this.taskCount].isLook
  15494. ) {
  15495. this.openTask(0, 0, "0-0");
  15496. }
  15497. this.$forceUpdate();
  15498. },
  15499. getCourseState(type) {
  15500. let params = {
  15501. cid: this.id,
  15502. };
  15503. this.ajax
  15504. .get(this.$store.state.api + "getCourseState", params)
  15505. .then((res) => {
  15506. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15507. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15508. this.setNavList();
  15509. this.$forceUpdate();
  15510. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15511. this.addCourseState(2);
  15512. } else {
  15513. this.addCourseState(1);
  15514. }
  15515. })
  15516. .catch((err) => {
  15517. console.error(err);
  15518. });
  15519. },
  15520. addCourseState(type) {
  15521. let _state = this.chapInfoList;
  15522. // this.courseType this.taskCount
  15523. if (type == 1 || type == 2) {
  15524. for (var i = 0; i < _state.length; i++) {
  15525. let el = _state[i].chapterInfo[0].taskJson;
  15526. for (var j = 0; j < el.length; j++) {
  15527. // if (i == 0 && j == 0) {
  15528. // el[j].isLook = true;
  15529. // } else {
  15530. // el[j].isLook = false;
  15531. // }
  15532. if (
  15533. this.courseType > i ||
  15534. (this.courseType == i && this.taskCount + 1 > j)
  15535. ) {
  15536. el[j].isLook = true;
  15537. } else {
  15538. el[j].isLook = false;
  15539. }
  15540. }
  15541. }
  15542. }
  15543. let params = [
  15544. {
  15545. cid: this.id,
  15546. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15547. },
  15548. ];
  15549. this.ajax
  15550. .post(
  15551. this.$store.state.api +
  15552. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15553. params
  15554. )
  15555. .then((res) => {
  15556. if (this.IsLookOpen) {
  15557. this.setNavList();
  15558. }
  15559. if (type == 3 && type == 2) {
  15560. this.getCourseState(1);
  15561. }
  15562. })
  15563. .catch((err) => {
  15564. console.error(err);
  15565. });
  15566. },
  15567. getHomeWork() {
  15568. let params = {
  15569. cid: this.id,
  15570. stage: this.courseType,
  15571. task: this.taskCount,
  15572. uid: this.userid,
  15573. };
  15574. this.ajax
  15575. .get(this.$store.state.api + "selectWork", params)
  15576. .then((res) => {
  15577. if (res.data[0].length > 0) {
  15578. this.studyJuri = JSON.parse(res.data[0][0].content);
  15579. this.isNoHomeWork = true;
  15580. }
  15581. })
  15582. .catch((err) => {
  15583. console.error(err);
  15584. });
  15585. },
  15586. isAssetTypeAnImage(ext) {
  15587. return (
  15588. [
  15589. "png",
  15590. "jpg",
  15591. "jpeg",
  15592. "bmp",
  15593. "gif",
  15594. "webp",
  15595. "psd",
  15596. "svg",
  15597. "tiff",
  15598. ].indexOf(ext) !== -1
  15599. );
  15600. },
  15601. switchVideo(media) {
  15602. this.playerO = {};
  15603. this.playerOptions.poster = "";
  15604. this.playerOptions.sources[0].src = media;
  15605. this.playerO = this.playerOptions;
  15606. },
  15607. onPlayerPlay() {},
  15608. lookVedio(u, i) {
  15609. this.isClickNav = "";
  15610. // this.playerOptions.sources[0].src = u;
  15611. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15612. d.sources[0].src = u;
  15613. this.playerO[0] = d;
  15614. this.showType = 0;
  15615. // this.isClickNav = "video" + i;
  15616. this.isClickNav = i;
  15617. this.$forceUpdate();
  15618. },
  15619. lookText(i, t) {
  15620. this.isClickNav = "";
  15621. // this.text = this.textList[i][t];
  15622. this.text = this.vChapterData[i][t];
  15623. // this.dialogVisible1 = true;
  15624. this.showType = 1;
  15625. // this.isClickNav = "text" + t;
  15626. this.isClickNav = t;
  15627. },
  15628. lookTools(i, t) {
  15629. this.chapTools = this.chapToolList[i][t];
  15630. this.dialogVisible2 = true;
  15631. },
  15632. openFile(f) {
  15633. this.pptImgUrl = "";
  15634. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15635. if (
  15636. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  15637. -1
  15638. ) {
  15639. this.pptImgUrl =
  15640. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  15641. this.showPDF = false;
  15642. this.dialogVisible3 = true;
  15643. } else if (
  15644. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15645. ) {
  15646. this.pptImgUrl = f;
  15647. this.showPDF = true;
  15648. this.dialogVisible3 = true;
  15649. }
  15650. },
  15651. openTable(f) {
  15652. this.tableJson = JSON.parse(f.works);
  15653. this.$forceUpdate();
  15654. this.dialogVisibleTable2 = true;
  15655. },
  15656. openWord(f) {
  15657. this.tableJson = JSON.parse(f.works);
  15658. this.$forceUpdate();
  15659. this.dialogVisibleTable3 = true;
  15660. },
  15661. doUrl(url, i) {
  15662. this.isClickNav = "";
  15663. this.pptImgUrl1 = "";
  15664. this.showType = 2;
  15665. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  15666. url = "https://" + url;
  15667. }
  15668. this.pptImgUrl1 = url;
  15669. // this.isClickNav = "line" + i;
  15670. this.isClickNav = i;
  15671. },
  15672. checkPhoto(f, i) {
  15673. this.showType = 4;
  15674. this.pptImgUrl1 = f.url;
  15675. this.isClickNav = i;
  15676. this.$forceUpdate();
  15677. },
  15678. downFile(f, i) {
  15679. this.isClickNav = "";
  15680. this.pptImgUrl1 = "";
  15681. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  15682. if (
  15683. a.indexOf(
  15684. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  15685. ) != -1
  15686. ) {
  15687. this.pptImgUrl1 =
  15688. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  15689. // this.dialogVisible3 = true;
  15690. this.showType = 2;
  15691. } else if (
  15692. this.isAssetTypeAnImage(
  15693. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  15694. )
  15695. ) {
  15696. this.showType = 4;
  15697. this.pptImgUrl1 = f.url;
  15698. } else if (
  15699. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  15700. "PDF"
  15701. ) {
  15702. this.pptImgUrl1 = f.url;
  15703. // this.dialogVisible3 = true;
  15704. this.showType = 3;
  15705. } else {
  15706. window.open(this.file[i].url);
  15707. }
  15708. this.isClickNav = i;
  15709. // this.isClickNav = "word" + i;
  15710. },
  15711. downFileList(i) {
  15712. window.open(this.noImgList[i].url);
  15713. },
  15714. openAddWork() {
  15715. this.dialogVisible = true;
  15716. },
  15717. addBzWorks() {
  15718. let params = [
  15719. {
  15720. uid: this.userid,
  15721. cid: this.id,
  15722. stage: this.courseType,
  15723. task: this.taskCount,
  15724. tool: this.toolindex,
  15725. content: JSON.stringify(this.eScore),
  15726. type: 6,
  15727. },
  15728. ];
  15729. this.ajax
  15730. .post(this.$store.state.api + "addCourseWorks", params)
  15731. .then((res) => {
  15732. this.$message({
  15733. message: "提交成功",
  15734. type: "success",
  15735. });
  15736. this.eScore = { eBzText: "", eStar: [] };
  15737. this.studentEvalDialogVisible = false;
  15738. this.selectSWorks();
  15739. })
  15740. .catch((err) => {
  15741. this.$message.error("提交失败");
  15742. console.error(err);
  15743. });
  15744. },
  15745. addBzWorksTeacher() {
  15746. let params = [
  15747. {
  15748. uid: this.sStudent.userid,
  15749. cid: this.id,
  15750. stage: this.courseType,
  15751. task: this.taskCount,
  15752. tool: this.toolindex,
  15753. content: JSON.stringify(this.eScore),
  15754. type: 6,
  15755. },
  15756. ];
  15757. this.ajax
  15758. .post(this.$store.state.api + "addCourseWorks", params)
  15759. .then((res) => {
  15760. this.$message({
  15761. message: "提交成功",
  15762. type: "success",
  15763. });
  15764. this.eScore = { eBzText: "", eStar: [] };
  15765. this.studentEvalDialogVisibleTeacher = false;
  15766. this.selectSWorks();
  15767. })
  15768. .catch((err) => {
  15769. this.$message.error("提交失败");
  15770. console.error(err);
  15771. });
  15772. },
  15773. addStudentAsk() {
  15774. if (!this.radio.length) {
  15775. this.$message.error("请选择选项");
  15776. return;
  15777. }
  15778. for (var i = 0; i < this.askJson.askCount; i++) {
  15779. if (
  15780. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15781. (this.radio[i] !== 0 && !this.radio[i])
  15782. ) {
  15783. this.$message.error("请选择选项");
  15784. return;
  15785. }
  15786. }
  15787. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15788. let params = [
  15789. {
  15790. uid: this.userid,
  15791. cid: this.id,
  15792. stage: this.courseType,
  15793. task: this.taskCount,
  15794. tool: this.toolindex,
  15795. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15796. type: 2,
  15797. },
  15798. ];
  15799. this.ajax
  15800. .post(this.$store.state.api + "addCourseWorks", params)
  15801. .then((res) => {
  15802. this.$message({
  15803. message: "提交成功",
  15804. type: "success",
  15805. });
  15806. this.askList = [];
  15807. this.dialogVisible5 = false;
  15808. this.selectStudent();
  15809. this.selectSWorks();
  15810. this.selectSLook();
  15811. })
  15812. .catch((err) => {
  15813. this.$message.error("提交失败");
  15814. console.error(err);
  15815. });
  15816. },
  15817. addStudentAskTeacher() {
  15818. if (!this.radio.length) {
  15819. this.$message.error("请选择选项");
  15820. return;
  15821. }
  15822. for (var i = 0; i < this.askJson.askCount; i++) {
  15823. if (
  15824. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15825. (this.radio[i] !== 0 && !this.radio[i])
  15826. ) {
  15827. this.$message.error("请选择选项");
  15828. return;
  15829. }
  15830. }
  15831. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15832. let params = [
  15833. {
  15834. uid: this.sStudent.userid,
  15835. cid: this.id,
  15836. stage: this.courseType,
  15837. task: this.taskCount,
  15838. tool: this.toolindex,
  15839. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15840. type: 2,
  15841. },
  15842. ];
  15843. this.ajax
  15844. .post(this.$store.state.api + "addCourseWorks", params)
  15845. .then((res) => {
  15846. this.$message({
  15847. message: "提交成功",
  15848. type: "success",
  15849. });
  15850. this.askList = [];
  15851. this.dialogVisible5Teacher = false;
  15852. this.selectStudent();
  15853. this.selectSWorks();
  15854. this.selectSLook();
  15855. })
  15856. .catch((err) => {
  15857. this.$message.error("提交失败");
  15858. console.error(err);
  15859. });
  15860. },
  15861. addStudentTest() {
  15862. if (!this.radio.length) {
  15863. this.$message.error("请选择选项");
  15864. return;
  15865. }
  15866. for (var i = 0; i < this.testJson.testCount; i++) {
  15867. if (
  15868. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15869. (this.radio[i] !== 0 && !this.radio[i])
  15870. ) {
  15871. this.$message.error("请选择选项");
  15872. return;
  15873. }
  15874. }
  15875. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15876. let params = [
  15877. {
  15878. uid: this.userid,
  15879. cid: this.id,
  15880. stage: this.courseType,
  15881. task: this.taskCount,
  15882. tool: this.toolindex,
  15883. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15884. type: 8,
  15885. },
  15886. ];
  15887. this.ajax
  15888. .post(this.$store.state.api + "addCourseWorks", params)
  15889. .then((res) => {
  15890. this.$message({
  15891. message: "提交成功",
  15892. type: "success",
  15893. });
  15894. this.askList = [];
  15895. this.dialogVisibleChoice = false;
  15896. this.selectStudent();
  15897. this.selectSWorks();
  15898. this.selectSLook();
  15899. })
  15900. .catch((err) => {
  15901. this.$message.error("提交失败");
  15902. console.error(err);
  15903. });
  15904. },
  15905. addStudentTestTeacher() {
  15906. if (!this.radio.length) {
  15907. this.$message.error("请选择选项");
  15908. return;
  15909. }
  15910. for (var i = 0; i < this.testJson.testCount; i++) {
  15911. if (
  15912. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15913. (this.radio[i] !== 0 && !this.radio[i])
  15914. ) {
  15915. this.$message.error("请选择选项");
  15916. return;
  15917. }
  15918. }
  15919. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15920. let params = [
  15921. {
  15922. uid: this.sStudent.userid,
  15923. cid: this.id,
  15924. stage: this.courseType,
  15925. task: this.taskCount,
  15926. tool: this.toolindex,
  15927. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15928. type: 8,
  15929. },
  15930. ];
  15931. this.ajax
  15932. .post(this.$store.state.api + "addCourseWorks", params)
  15933. .then((res) => {
  15934. this.$message({
  15935. message: "提交成功",
  15936. type: "success",
  15937. });
  15938. this.askList = [];
  15939. this.dialogVisibleChoiceTeacher = false;
  15940. this.selectStudent();
  15941. this.selectSWorks();
  15942. this.selectSLook();
  15943. })
  15944. .catch((err) => {
  15945. this.$message.error("提交失败");
  15946. console.error(err);
  15947. });
  15948. },
  15949. addWork() {
  15950. if (this.studyJuri[0].content == "") {
  15951. this.$message.error("请将信息填写完整");
  15952. return;
  15953. } else if (this.studyJuri[0].cover.length == 0) {
  15954. this.$message.error("请将信息填写完整");
  15955. return;
  15956. } else if (this.studyJuri[0].upVedio.length == 0) {
  15957. this.$message.error("请将信息填写完整");
  15958. return;
  15959. }
  15960. if (this.isNoHomeWork) {
  15961. this.$confirm(
  15962. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  15963. "提示",
  15964. {
  15965. confirmButtonText: "确定",
  15966. cancelButtonText: "取消",
  15967. type: "warning",
  15968. }
  15969. )
  15970. .then(() => {
  15971. let params = [
  15972. {
  15973. uid: this.userid,
  15974. cid: this.id,
  15975. stage: this.courseType,
  15976. task: this.taskCount,
  15977. content: JSON.stringify(this.studyJuri),
  15978. },
  15979. ];
  15980. this.ajax
  15981. .post(this.$store.state.api + "addWorks", params)
  15982. .then((res) => {
  15983. this.$message({
  15984. message: "提交成功",
  15985. type: "success",
  15986. });
  15987. this.isNoHomeWork = true;
  15988. this.dialogVisible = false;
  15989. })
  15990. .catch((err) => {
  15991. this.$message.error("提交失败");
  15992. console.error(err);
  15993. });
  15994. })
  15995. .catch(() => {});
  15996. } else {
  15997. let params = [
  15998. {
  15999. uid: this.userid,
  16000. cid: this.id,
  16001. stage: this.courseType,
  16002. task: this.taskCount,
  16003. content: JSON.stringify(this.studyJuri),
  16004. },
  16005. ];
  16006. this.ajax
  16007. .post(this.$store.state.api + "addWorks", params)
  16008. .then((res) => {
  16009. this.$message({
  16010. message: "提交成功",
  16011. type: "success",
  16012. });
  16013. this.isNoHomeWork = true;
  16014. this.dialogVisible = false;
  16015. })
  16016. .catch((err) => {
  16017. this.$message.error("提交失败");
  16018. console.error(err);
  16019. });
  16020. }
  16021. },
  16022. selectCount() {
  16023. let params = {
  16024. cid: this.id,
  16025. chid: this.courseType,
  16026. uid: this.userid,
  16027. };
  16028. this.ajax
  16029. .get(this.$store.state.api + "selectToolsCount", params)
  16030. .then((res) => {
  16031. for (var i = 0; i < res.data[0].length; i++) {
  16032. if (res.data[0][i].tools == 1) {
  16033. this.wbCount = res.data[0][i].count;
  16034. } else if (res.data[0][i].tools == 2) {
  16035. this.wordCount = res.data[0][i].count;
  16036. } else if (res.data[0][i].tools == 3) {
  16037. this.mindCount = res.data[0][i].count;
  16038. } else if (res.data[0][i].tools == 4) {
  16039. this.askCount = res.data[0][i].count;
  16040. } else if (res.data[0][i].tools == 6) {
  16041. this.noteCount = res.data[0][i].count;
  16042. } else if (res.data[0][i].tools == 7) {
  16043. this.mindNetWorkCount = res.data[0][i].count;
  16044. } else if (res.data[0][i].tools == 8) {
  16045. this.libraryCount = res.data[0][i].count;
  16046. } else if (res.data[0][i].tools == 16) {
  16047. this.workCount = res.data[0][i].count;
  16048. } else if (res.data[0][i].tools == 10) {
  16049. this.timeCount = res.data[0][i].count;
  16050. } else if (res.data[0][i].tools == 15) {
  16051. this.answerCount = res.data[0][i].count;
  16052. } else if (res.data[0][i].tools == 18) {
  16053. this.trainCount = res.data[0][i].count;
  16054. }
  16055. }
  16056. })
  16057. .catch((err) => {
  16058. console.error(err);
  16059. });
  16060. },
  16061. openTools(t, i, index, c, sName) {
  16062. var z = JSON.parse(c);
  16063. this.noteName = sName;
  16064. if (t == 4) {
  16065. this.radio = [];
  16066. this.isAnswer = false;
  16067. let b = z[0].anwer;
  16068. this.radio = b;
  16069. this.askJson = z[0].askJson;
  16070. this.isAnswer = true;
  16071. this.dialogVisible5 = true;
  16072. } else if (t == 45) {
  16073. this.radio = [];
  16074. this.isAnswer = false;
  16075. let b = z[0].anwer;
  16076. this.radio = b;
  16077. this.testJson = z[0].testJson;
  16078. this.isAnswer = true;
  16079. this.dialogVisibleChoice = true;
  16080. }
  16081. // else if (t == 15) {
  16082. // this.answerQ = "";
  16083. // this.questionAnswer = "";
  16084. // this.answerQ = z[0].answerTitle;
  16085. // this.questionAnswer = z[0].answer;
  16086. // this.answerDialogVisible = true;
  16087. // }
  16088. },
  16089. fastText(p, t) {
  16090. if (t == 1) {
  16091. this.commentText += p;
  16092. } else {
  16093. this.eScore.eBzText += p;
  16094. }
  16095. },
  16096. addTools(t, i, index) {
  16097. var a = 0;
  16098. // this.taskCount = index;
  16099. this.toolindex = i;
  16100. if (t == 1) {
  16101. if (this.wbCount > 0) {
  16102. this.updateCount(this.wbCount, t);
  16103. } else {
  16104. this.wbCount++;
  16105. a = this.wbCount;
  16106. this.toolsCount(a, t);
  16107. }
  16108. window.parent.postMessage(
  16109. {
  16110. tools: "1",
  16111. cid: this.id,
  16112. stage: this.courseType,
  16113. task: this.taskCount,
  16114. tool: i,
  16115. },
  16116. "*"
  16117. );
  16118. } else if (t == 2) {
  16119. if (this.wordCount > 0) {
  16120. this.updateCount(this.wordCount, t);
  16121. } else {
  16122. this.wordCount++;
  16123. a = this.wordCount;
  16124. this.toolsCount(a, t);
  16125. }
  16126. window.parent.postMessage({ tools: "2" }, "*");
  16127. } else if (t == 3) {
  16128. if (this.mindCount > 0) {
  16129. this.updateCount(this.mindCount, t);
  16130. } else {
  16131. this.mindCount++;
  16132. a = this.mindCount;
  16133. this.toolsCount(a, t);
  16134. }
  16135. window.parent.postMessage(
  16136. {
  16137. tools: "3",
  16138. cid: this.id,
  16139. stage: this.courseType,
  16140. task: this.taskCount,
  16141. tool: i,
  16142. },
  16143. "*"
  16144. );
  16145. } else if (t == 4) {
  16146. this.radio = [];
  16147. this.noteName = "";
  16148. this.isAnswer = false;
  16149. if (this.askCount > 0) {
  16150. this.updateCount(this.askCount, t);
  16151. } else {
  16152. this.askCount++;
  16153. a = this.askCount;
  16154. this.toolsCount(a, t);
  16155. }
  16156. this.askJson.askJson =
  16157. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16158. index
  16159. ].toolChoose[i].askJson;
  16160. this.askJson.askTitle =
  16161. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16162. index
  16163. ].toolChoose[i].askTitle;
  16164. this.askJson.askCount =
  16165. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16166. index
  16167. ].toolChoose[i].askCount;
  16168. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16169. if (this.askJson.askJson[k].type == "2") {
  16170. this.radio.push([]);
  16171. } else {
  16172. this.radio.push("");
  16173. }
  16174. }
  16175. this.dialogVisible5 = true;
  16176. // window.parent.postMessage({ tools: "4" }, "*");
  16177. } else if (t == 45) {
  16178. this.noteName = "";
  16179. this.radio = [];
  16180. this.isAnswer = false;
  16181. if (this.askCount > 0) {
  16182. this.updateCount(this.askCount, t);
  16183. } else {
  16184. this.askCount++;
  16185. a = this.askCount;
  16186. this.toolsCount(a, t);
  16187. }
  16188. this.testJson =
  16189. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16190. index
  16191. ].toolChoose[i].testJson;
  16192. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16193. if (this.testJson.testJson[k].type == "2") {
  16194. this.radio.push([]);
  16195. } else {
  16196. this.radio.push("");
  16197. }
  16198. }
  16199. this.dialogVisibleChoice = true;
  16200. // window.parent.postMessage({ tools: "4" }, "*");
  16201. } else if (t == 5) {
  16202. if (this.scoreCount > 0) {
  16203. this.updateCount(this.scoreCount, t);
  16204. } else {
  16205. this.scoreCount++;
  16206. a = this.scoreCount;
  16207. this.toolsCount(a, t);
  16208. }
  16209. this.dialogVisible4 = true;
  16210. // window.parent.postMessage({ tools: "5" }, "*");
  16211. } else if (t == 6) {
  16212. if (this.noteCount > 0) {
  16213. this.updateCount(this.noteCount, t);
  16214. } else {
  16215. this.noteCount++;
  16216. a = this.noteCount;
  16217. this.toolsCount(a, t);
  16218. }
  16219. window.parent.postMessage(
  16220. {
  16221. tools: "6",
  16222. cid: this.id,
  16223. stage: this.courseType,
  16224. task: this.taskCount,
  16225. tool: i,
  16226. },
  16227. "*"
  16228. );
  16229. } else if (t == 7) {
  16230. if (this.mindNetWorkCount > 0) {
  16231. this.updateCount(this.mindNetWorkCount, t);
  16232. } else {
  16233. this.mindNetWorkCount++;
  16234. a = this.mindNetWorkCount;
  16235. this.toolsCount(a, t);
  16236. }
  16237. window.parent.postMessage(
  16238. {
  16239. tools: "7",
  16240. cid: this.id,
  16241. stage: this.courseType,
  16242. task: this.taskCount,
  16243. tool: i,
  16244. },
  16245. "*"
  16246. );
  16247. } else if (t == 16) {
  16248. if (this.workCount > 0) {
  16249. this.updateCount(this.workCount, t);
  16250. } else {
  16251. this.workCount++;
  16252. a = this.workCount;
  16253. this.toolsCount(a, t);
  16254. }
  16255. this.dialogVisible = true;
  16256. } else if (t == 50) {
  16257. if (this.tType == 2) {
  16258. this.$message.error("不支持学生使用");
  16259. return;
  16260. }
  16261. this.plworkFile = [];
  16262. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16263. if (!this.uploadCid) {
  16264. this.$message.error(
  16265. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16266. );
  16267. return;
  16268. }
  16269. this.selectUploadStudent(2);
  16270. } else if (t == 8) {
  16271. if (this.libraryCount > 0) {
  16272. this.updateCount(this.libraryCount, t);
  16273. } else {
  16274. this.libraryCount++;
  16275. a = this.libraryCount;
  16276. this.toolsCount(a, t);
  16277. }
  16278. window.parent.postMessage({ tools: "8" }, "*");
  16279. } else if (t == 17) {
  16280. if (this.libraryCount > 0) {
  16281. this.updateCount(this.libraryCount, t);
  16282. } else {
  16283. this.libraryCount++;
  16284. a = this.libraryCount;
  16285. this.toolsCount(a, t);
  16286. }
  16287. window.parent.postMessage({ tools: "17" }, "*");
  16288. } else if (t == 18) {
  16289. if (this.trainCount > 0) {
  16290. this.updateCount(this.trainCount, t);
  16291. } else {
  16292. this.trainCount++;
  16293. a = this.trainCount;
  16294. this.toolsCount(a, t);
  16295. }
  16296. window.parent.postMessage({ tools: "18" }, "*");
  16297. } else if (t == 10) {
  16298. if (this.timeCount > 0) {
  16299. this.updateCount(this.timeCount, t);
  16300. } else {
  16301. this.timeCount++;
  16302. a = this.timeCount;
  16303. this.toolsCount(a, t);
  16304. }
  16305. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16306. .taskJson[index].toolChoose[i].preTime
  16307. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16308. .toolChoose[i].preTime
  16309. : "";
  16310. this.timeDialogVisible = true;
  16311. } else if (t == 15) {
  16312. this.answerQ = "";
  16313. this.questionAnswer = "";
  16314. if (this.answerCount > 0) {
  16315. this.updateCount(this.answerCount, t);
  16316. } else {
  16317. this.answerCount++;
  16318. a = this.answerCount;
  16319. this.toolsCount(a, t);
  16320. }
  16321. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16322. .taskJson[index].toolChoose[i].answerQ
  16323. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16324. .toolChoose[i].answerQ
  16325. : "";
  16326. this.answerDialogVisible = true;
  16327. } else if (t == 21) {
  16328. window.parent.postMessage({ tools: "21" }, "*");
  16329. } else if (t == 22) {
  16330. window.parent.postMessage({ tools: "22" }, "*");
  16331. } else if (t == 23) {
  16332. window.parent.postMessage({ tools: "23" }, "*");
  16333. } else if (t == 24) {
  16334. window.parent.postMessage({ tools: "24" }, "*");
  16335. } else if (t == 25) {
  16336. window.parent.postMessage({ tools: "25" }, "*");
  16337. } else if (t == 31) {
  16338. window.parent.postMessage({ tools: "31" }, "*");
  16339. } else if (t == 28) {
  16340. window.parent.postMessage({ tools: "28" }, "*");
  16341. } else if (t == 37) {
  16342. window.parent.postMessage({ tools: "37" }, "*");
  16343. } else if (t == 38) {
  16344. window.parent.postMessage({ tools: "38" }, "*");
  16345. } else if (t == 39) {
  16346. window.parent.postMessage({ tools: "39" }, "*");
  16347. } else if (t == 32) {
  16348. window.parent.postMessage({ tools: "32" }, "*");
  16349. } else if (t == 66) {
  16350. window.parent.postMessage({ tools: "66" }, "*");
  16351. } else if (t == 67) {
  16352. window.parent.postMessage({ tools: "67" }, "*");
  16353. } else if (t == 68) {
  16354. window.parent.postMessage({ tools: "68" }, "*");
  16355. } else if (t == 57) {
  16356. // window.parent.postMessage({ tools: "57" }, "*");
  16357. window.parent.postMessage(
  16358. {
  16359. tools: "57u",
  16360. cid: this.id,
  16361. stage: this.courseType,
  16362. task: this.taskCount,
  16363. tool: i,
  16364. },
  16365. "*"
  16366. );
  16367. } else if (t == 58) {
  16368. window.parent.postMessage({ tools: "58" }, "*");
  16369. } else if (t == 59) {
  16370. window.parent.postMessage({ tools: "59" }, "*");
  16371. } else if (t == 60) {
  16372. window.parent.postMessage({ tools: "60" }, "*");
  16373. } else if (t == 61) {
  16374. window.parent.postMessage({ tools: "61" }, "*");
  16375. } else if (t == 63) {
  16376. window.parent.postMessage({ tools: "63" }, "*");
  16377. } else if (t == 65) {
  16378. if (this.tType == 2) {
  16379. this.$message.error("不支持学生使用");
  16380. return;
  16381. }
  16382. this.uploadCid = this.tcid;
  16383. if (!this.uploadCid) {
  16384. this.$message.error(
  16385. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  16386. );
  16387. return;
  16388. }
  16389. this.selectPickStudent();
  16390. } else if (t == 26) {
  16391. window.parent.postMessage(
  16392. {
  16393. tools: "26",
  16394. cid: this.id,
  16395. stage: this.courseType,
  16396. task: this.taskCount,
  16397. tool: i,
  16398. },
  16399. "*"
  16400. );
  16401. } else if (t == 40) {
  16402. if (this.evalCount > 0) {
  16403. this.updateCount(this.evalCount, t);
  16404. } else {
  16405. this.evalCount++;
  16406. a = this.evalCount;
  16407. this.toolsCount(a, t);
  16408. }
  16409. this.eScore = { eBzText: "", eStar: [] };
  16410. if (this.worksStudent[i].length) {
  16411. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16412. if (this.userid == this.worksStudent[i][k].userid) {
  16413. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16414. this.rateJson =
  16415. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16416. index
  16417. ].toolChoose[i].rateJson;
  16418. break;
  16419. } else {
  16420. this.rateJson =
  16421. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16422. index
  16423. ].toolChoose[i].rateJson;
  16424. }
  16425. }
  16426. } else {
  16427. this.rateJson =
  16428. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16429. index
  16430. ].toolChoose[i].rateJson;
  16431. }
  16432. this.isStar = false;
  16433. this.studentEvalDialogVisible = true;
  16434. } else if (t == 41) {
  16435. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16436. .taskJson[index].toolChoose[i].selectJson
  16437. ? JSON.parse(
  16438. JSON.stringify(
  16439. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16440. index
  16441. ].toolChoose[i].selectJson
  16442. )
  16443. )
  16444. : { url: "", select: [], answer: [] };
  16445. if (this.worksStudent[i].length) {
  16446. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16447. if (this.userid == this.worksStudent[i][k].userid) {
  16448. var a = this.worksStudent[i][k].works.split(",");
  16449. for (var ki = 0; ki < a.length; ki++) {
  16450. a[ki] = parseInt(a[ki]);
  16451. }
  16452. this.selectAnswer = {
  16453. answer: a,
  16454. stu: this.worksStudent[i][k].sName,
  16455. };
  16456. break;
  16457. } else {
  16458. this.selectAnswer = { answer: [], stu: "" };
  16459. }
  16460. }
  16461. } else {
  16462. this.selectAnswer = { answer: [], stu: "" };
  16463. }
  16464. this.isSelect = false;
  16465. this.dialogVisibleSelect = true;
  16466. } else if (t == 44) {
  16467. window.parent.postMessage({ tools: "44" }, "*");
  16468. } else if (t == 47) {
  16469. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16470. .taskJson[index].toolChoose[i].sentenceList
  16471. ? JSON.parse(
  16472. JSON.stringify(
  16473. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16474. index
  16475. ].toolChoose[i].sentenceList
  16476. )
  16477. )
  16478. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16479. for (var q = 0; q < this.sentenceList.length; q++) {
  16480. this.sentenceList[q].chooseSenList = [];
  16481. this.sentenceList[q].addChangeSen = [];
  16482. this.sentenceList[q].addChangeSen = JSON.parse(
  16483. JSON.stringify(this.sentenceList[q].addSentence)
  16484. );
  16485. this.sentenceList[q].chooseSenList.length =
  16486. this.sentenceList[q].rightAnswer.length;
  16487. }
  16488. this.dialogVisibleSentence = true;
  16489. } else if (t == 48) {
  16490. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16491. .taskJson[index].toolChoose[i].tableJson
  16492. ? JSON.parse(
  16493. JSON.stringify(
  16494. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16495. index
  16496. ].toolChoose[i].tableJson
  16497. )
  16498. )
  16499. : { text: "" };
  16500. if (this.worksStudent[i].length) {
  16501. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16502. if (this.userid == this.worksStudent[i][k].userid) {
  16503. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16504. break;
  16505. }
  16506. }
  16507. }
  16508. this.dialogVisibleTable = true;
  16509. } else if (t == 52) {
  16510. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16511. .taskJson[index].toolChoose[i].wordJson
  16512. ? JSON.parse(
  16513. JSON.stringify(
  16514. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16515. index
  16516. ].toolChoose[i].wordJson
  16517. )
  16518. )
  16519. : { text: "" };
  16520. if (this.worksStudent[i].length) {
  16521. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16522. if (this.userid == this.worksStudent[i][k].userid) {
  16523. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16524. break;
  16525. }
  16526. }
  16527. }
  16528. this.dialogVisibleWord = true;
  16529. } else if (t == 49) {
  16530. this.groupJson =
  16531. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16532. index
  16533. ].toolChoose[i].groupJson;
  16534. this.dialogVisibleGroup = true;
  16535. } else if (t == 62) {
  16536. this.videoJson =
  16537. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16538. index
  16539. ].toolChoose[i].videoJson;
  16540. this.dialogVisibleVideo = true;
  16541. }
  16542. },
  16543. teacherWorkSubmit(t, i, index, s) {
  16544. this.sStudent = s;
  16545. this.sTool = t;
  16546. this.toolindex = i;
  16547. if (this.tType !== "1" && this.tType !== "4") {
  16548. return;
  16549. }
  16550. if (t == 16 || t == 32 || t == 50) {
  16551. this.dialogVisibleWorks = true; //作业提交
  16552. } else if (t == 15) {
  16553. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16554. .taskJson[index].toolChoose[i].answerQ
  16555. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16556. .toolChoose[i].answerQ
  16557. : "";
  16558. this.questionAnswer = "";
  16559. this.answerDialogVisibleTeacher = true; //问答
  16560. } else if (t == 52) {
  16561. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16562. .taskJson[index].toolChoose[i].wordJson
  16563. ? JSON.parse(
  16564. JSON.stringify(
  16565. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16566. index
  16567. ].toolChoose[i].wordJson
  16568. )
  16569. )
  16570. : { text: "" };
  16571. if (this.worksStudent[i].length) {
  16572. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16573. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16574. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16575. break;
  16576. }
  16577. }
  16578. }
  16579. this.dialogVisibleWordTeacher = true; //文档
  16580. } else if (t == 4) {
  16581. this.radio = [];
  16582. this.noteName = "";
  16583. this.isAnswer = false;
  16584. if (this.askCount > 0) {
  16585. this.updateCount(this.askCount, t);
  16586. } else {
  16587. this.askCount++;
  16588. a = this.askCount;
  16589. this.toolsCount(a, t);
  16590. }
  16591. if (!this.dialogVisible2) {
  16592. this.askJson.askJson =
  16593. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16594. index
  16595. ].toolChoose[i].askJson;
  16596. this.askJson.askTitle =
  16597. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16598. index
  16599. ].toolChoose[i].askTitle;
  16600. this.askJson.askCount =
  16601. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16602. index
  16603. ].toolChoose[i].askCount;
  16604. } else {
  16605. this.askJson.askJson = this.chapTools.askJson.askJson;
  16606. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16607. this.askJson.askCount = this.chapTools.askJson.askCount;
  16608. }
  16609. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16610. if (this.askJson.askJson[k].type == "2") {
  16611. this.radio.push([]);
  16612. } else {
  16613. this.radio.push("");
  16614. }
  16615. }
  16616. this.dialogVisible5Teacher = true;
  16617. } else if (t == 45) {
  16618. this.noteName = "";
  16619. this.radio = [];
  16620. this.isAnswer = false;
  16621. if (this.askCount > 0) {
  16622. this.updateCount(this.askCount, t);
  16623. } else {
  16624. this.askCount++;
  16625. a = this.askCount;
  16626. this.toolsCount(a, t);
  16627. }
  16628. this.testJson =
  16629. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16630. index
  16631. ].toolChoose[i].testJson;
  16632. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16633. if (this.testJson.testJson[k].type == "2") {
  16634. this.radio.push([]);
  16635. } else {
  16636. this.radio.push("");
  16637. }
  16638. }
  16639. this.dialogVisibleChoiceTeacher = true;
  16640. } else if (t == 41) {
  16641. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16642. .taskJson[index].toolChoose[i].selectJson
  16643. ? JSON.parse(
  16644. JSON.stringify(
  16645. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16646. index
  16647. ].toolChoose[i].selectJson
  16648. )
  16649. )
  16650. : { url: "", select: [], answer: [] };
  16651. if (this.worksStudent[i].length) {
  16652. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16653. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16654. var a = this.worksStudent[i][k].works.split(",");
  16655. for (var ki = 0; ki < a.length; ki++) {
  16656. a[ki] = parseInt(a[ki]);
  16657. }
  16658. this.selectAnswer = {
  16659. answer: a,
  16660. stu: this.worksStudent[i][k].sName,
  16661. };
  16662. break;
  16663. } else {
  16664. this.selectAnswer = { answer: [], stu: "" };
  16665. }
  16666. }
  16667. } else {
  16668. this.selectAnswer = { answer: [], stu: "" };
  16669. }
  16670. this.isSelect = false;
  16671. this.dialogVisibleSelectTeacher = true;
  16672. } else if (t == 47) {
  16673. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16674. .taskJson[index].toolChoose[i].sentenceList
  16675. ? JSON.parse(
  16676. JSON.stringify(
  16677. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16678. index
  16679. ].toolChoose[i].sentenceList
  16680. )
  16681. )
  16682. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16683. for (var q = 0; q < this.sentenceList.length; q++) {
  16684. this.sentenceList[q].chooseSenList = [];
  16685. this.sentenceList[q].addChangeSen = [];
  16686. this.sentenceList[q].addChangeSen = JSON.parse(
  16687. JSON.stringify(this.sentenceList[q].addSentence)
  16688. );
  16689. this.sentenceList[q].chooseSenList.length =
  16690. this.sentenceList[q].rightAnswer.length;
  16691. }
  16692. this.dialogVisibleSentenceTeacher = true;
  16693. } else if (t == 48) {
  16694. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16695. .taskJson[index].toolChoose[i].tableJson
  16696. ? JSON.parse(
  16697. JSON.stringify(
  16698. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16699. index
  16700. ].toolChoose[i].tableJson
  16701. )
  16702. )
  16703. : { text: "" };
  16704. if (this.worksStudent[i].length) {
  16705. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16706. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16707. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16708. break;
  16709. }
  16710. }
  16711. }
  16712. this.dialogVisibleTableTeacher = true;
  16713. } else if (t == 40) {
  16714. if (this.evalCount > 0) {
  16715. this.updateCount(this.evalCount, t);
  16716. } else {
  16717. this.evalCount++;
  16718. a = this.evalCount;
  16719. this.toolsCount(a, t);
  16720. }
  16721. this.eScore = { eBzText: "", eStar: [] };
  16722. if (this.worksStudent[i].length) {
  16723. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16724. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16725. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16726. this.rateJson =
  16727. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16728. index
  16729. ].toolChoose[i].rateJson;
  16730. break;
  16731. } else {
  16732. this.rateJson =
  16733. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16734. index
  16735. ].toolChoose[i].rateJson;
  16736. }
  16737. }
  16738. } else {
  16739. this.rateJson =
  16740. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16741. index
  16742. ].toolChoose[i].rateJson;
  16743. }
  16744. this.isStar = false;
  16745. this.studentEvalDialogVisibleTeacher = true;
  16746. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  16747. window.parent.postMessage(
  16748. {
  16749. tools: t + "teacher",
  16750. cid: this.id,
  16751. stage: this.courseType,
  16752. task: this.taskCount,
  16753. tool: i,
  16754. student: this.sStudent,
  16755. },
  16756. "*"
  16757. );
  16758. }
  16759. },
  16760. openCocoPi(tool, i, uid, uname) {
  16761. let student = {
  16762. userid: uid,
  16763. student: uname,
  16764. };
  16765. if (tool == 57) {
  16766. window.parent.postMessage(
  16767. {
  16768. tools: tool + "teacher",
  16769. cid: this.id,
  16770. stage: this.courseType,
  16771. task: this.taskCount,
  16772. tool: i,
  16773. student: student,
  16774. },
  16775. "*"
  16776. );
  16777. }
  16778. },
  16779. setRightAnswer(s, i, j) {
  16780. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  16781. if (
  16782. this.sentenceList[i].chooseSenList[q] == undefined ||
  16783. this.sentenceList[i].chooseSenList[q] == ""
  16784. ) {
  16785. this.sentenceList[i].chooseSenList[q] = s;
  16786. this.sentenceList[i].addChangeSen[j] = "";
  16787. break;
  16788. }
  16789. }
  16790. this.$forceUpdate();
  16791. },
  16792. returnCard(r, i, j) {
  16793. var a = this.sentenceList[i].addSentence.indexOf(r);
  16794. this.sentenceList[i].chooseSenList[j] = "";
  16795. this.sentenceList[i].addChangeSen[a] = r;
  16796. this.$forceUpdate();
  16797. },
  16798. // addSentenceTool() {
  16799. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16800. // this.taskCount
  16801. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  16802. // this.sentenceList = [
  16803. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  16804. // ];
  16805. // this.dialogVisibleSentence = false;
  16806. // },
  16807. toolsCount(a, t) {
  16808. let params = {
  16809. cid: this.id,
  16810. chid: this.courseType,
  16811. uid: this.userid,
  16812. tid: t,
  16813. count: a,
  16814. };
  16815. this.ajax
  16816. .get(this.$store.state.api + "insertToolsCount", params)
  16817. .then((res) => {
  16818. this.selectCount();
  16819. })
  16820. .catch((err) => {
  16821. console.error(err);
  16822. });
  16823. },
  16824. updateCount(c, t) {
  16825. c++;
  16826. let params = {
  16827. cid: this.id,
  16828. chid: this.courseType,
  16829. uid: this.userid,
  16830. tid: t,
  16831. count: c,
  16832. };
  16833. this.ajax
  16834. .get(this.$store.state.api + "updateToolsCount", params)
  16835. .then((res) => {
  16836. this.selectCount();
  16837. })
  16838. .catch((err) => {
  16839. console.error(err);
  16840. });
  16841. },
  16842. checkEva() {
  16843. if (this.evalua != "") {
  16844. for (var i = 0; i < this.evaJuri.length; i++) {
  16845. if (this.evalua == this.evaJuri[i].id) {
  16846. this.eTitle = this.evaJuri[i].title;
  16847. this.eJson = JSON.parse(this.evaJuri[i].content);
  16848. }
  16849. }
  16850. this.$forceUpdate();
  16851. setTimeout(() => {
  16852. this.setMindData();
  16853. }, 0);
  16854. }
  16855. },
  16856. selectEva() {
  16857. let params = {
  16858. oid: this.oid,
  16859. };
  16860. this.ajax
  16861. .get(this.$store.state.api + "selectAllEvaluation", params)
  16862. .then((res) => {
  16863. this.evaJuri = res.data[0];
  16864. })
  16865. .catch((err) => {
  16866. console.error(err);
  16867. });
  16868. },
  16869. setMindData() {
  16870. this.data.data = [];
  16871. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  16872. let _eJson = Object.keys(this.eJson);
  16873. let _e = this.eJson;
  16874. for (let i = 0; i < _eJson.length; i++) {
  16875. let element = _e[_eJson[i]];
  16876. this.data.data.push({
  16877. id: element.id,
  16878. parentid: "root",
  16879. topic: element.name,
  16880. });
  16881. let _eJsonc = Object.keys(element.child);
  16882. let _e2 = element.child;
  16883. for (let j = 0; j < _eJsonc.length; j++) {
  16884. let _ec = _e2[_eJsonc[j]];
  16885. this.data.data.push({
  16886. id: _ec.id,
  16887. parentid: element.id,
  16888. topic: _ec.name,
  16889. });
  16890. let _eJsonz = Object.keys(_ec.child);
  16891. let _e3 = _ec.child;
  16892. for (let z = 0; z < _eJsonz.length; z++) {
  16893. let _ez = _e3[_eJsonz[z]];
  16894. this.data.data.push({
  16895. id: _ez.id,
  16896. parentid: _ec.id,
  16897. topic: _ez.name,
  16898. });
  16899. }
  16900. }
  16901. }
  16902. this.$forceUpdate();
  16903. },
  16904. checkFileFull(type, url) {
  16905. this.fullDialogVisible = true;
  16906. this.fulltype = type;
  16907. this.fullUrl = url;
  16908. },
  16909. checkFileFull1(t, f) {
  16910. this.fullDialogVisible = true;
  16911. if (t == 6) {
  16912. this.fulltype = 1;
  16913. this.fullUrl = JSON.parse(JSON.stringify(f));
  16914. } else if (t == 8) {
  16915. this.fulltype = 2;
  16916. this.fullUrl = f.url;
  16917. } else if (
  16918. t == 3 &&
  16919. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16920. "PDF"
  16921. ) {
  16922. this.fulltype = 3;
  16923. this.fullUrl = f.url;
  16924. } else if (t == 3) {
  16925. this.fulltype = 2;
  16926. this.fullUrl =
  16927. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16928. }
  16929. },
  16930. openSname(n, id, i, uid) {
  16931. this.snameWid = id;
  16932. this.worksSName = n;
  16933. this.worksSid = uid == n ? "" : uid;
  16934. this.toolindex = i;
  16935. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16936. if (!this.uploadCid) {
  16937. this.$message.error(
  16938. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16939. );
  16940. return;
  16941. }
  16942. this.selectUploadStudent(1);
  16943. },
  16944. updateName() {
  16945. let params = {
  16946. n: this.worksSName,
  16947. cid: this.snameWid,
  16948. };
  16949. this.ajax
  16950. .get(this.$store.state.api + "updateCourseWorksName", params)
  16951. .then((res) => {
  16952. this.$message({
  16953. message: "修改成功",
  16954. type: "success",
  16955. });
  16956. this.dialogVisibleSname = false;
  16957. this.getCourseDetail();
  16958. this.snameWid = "";
  16959. this.worksSName = "";
  16960. })
  16961. .catch((err) => {
  16962. console.error(err);
  16963. });
  16964. },
  16965. downloadFile2(f) {
  16966. // const loading = this.$loading.service({
  16967. // background: "rgba(255, 255, 255, 0.7)",
  16968. // target: document.body,
  16969. // text: "文件加载中...",
  16970. // });
  16971. // let url2 = f.url;
  16972. // let _url2 = "";
  16973. // if (
  16974. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16975. // ) {
  16976. // _url2 = url2.split(
  16977. // "https://view.officeapps.live.com/op/view.aspx?src="
  16978. // )[1];
  16979. // } else {
  16980. // _url2 = url2;
  16981. // }
  16982. // let params = {
  16983. // url: _url2,
  16984. // name: f.name,
  16985. // };
  16986. // this.ajax
  16987. // .get(this.$store.state.api + "download", params)
  16988. // .then((res) => {
  16989. // console.log(res);
  16990. // loading.close();
  16991. // let content = res.data.data.data;
  16992. // let ab = new ArrayBuffer(content.length);
  16993. // let view = new Uint8Array(ab);
  16994. // for (var i = 0; i < content.length; ++i) {
  16995. // view[i] = content[i];
  16996. // }
  16997. // let elink = document.createElement("a");
  16998. // elink.download = f.name;
  16999. // elink.style.display = "none";
  17000. // let blob = new Blob([ab], {
  17001. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17002. // });
  17003. // elink.href = URL.createObjectURL(blob);
  17004. // document.body.appendChild(elink);
  17005. // elink.click();
  17006. // document.body.removeChild(elink);
  17007. // })
  17008. // .catch((err) => {
  17009. // loading.close();
  17010. // console.error(err);
  17011. // });
  17012. let url = f.url;
  17013. let _this = this;
  17014. let _url = "";
  17015. if (
  17016. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17017. ) {
  17018. _url = url.split(
  17019. "https://view.officeapps.live.com/op/view.aspx?src="
  17020. )[1];
  17021. } else {
  17022. _url = url;
  17023. }
  17024. const loading = _this.$loading.service({
  17025. background: "rgba(255, 255, 255, 0.7)",
  17026. target: document.body,
  17027. text: "文件加载中...",
  17028. });
  17029. let x = new XMLHttpRequest();
  17030. x.open("GET", _url, true);
  17031. x.responseType = "blob";
  17032. x.onload = function () {
  17033. loading.close();
  17034. let url = window.URL.createObjectURL(new Blob([x.response]));
  17035. let a = document.createElement("a");
  17036. a.name = f.name;
  17037. a.href = url;
  17038. a.download = f.name;
  17039. a.click();
  17040. };
  17041. x.send();
  17042. },
  17043. downloadFile(url) {
  17044. let _this = this;
  17045. let _url = "";
  17046. if (
  17047. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17048. ) {
  17049. _url = url.split(
  17050. "https://view.officeapps.live.com/op/view.aspx?src="
  17051. )[1];
  17052. } else {
  17053. _url = url;
  17054. }
  17055. const x = new XMLHttpRequest();
  17056. x.open("GET", _url, true);
  17057. x.responseType = "blob";
  17058. const loading = _this.$loading.service({
  17059. background: "rgba(255, 255, 255, 0.7)",
  17060. target: document.body,
  17061. text: "文件加载中...",
  17062. });
  17063. // _this.$message.success("文件下载中...");
  17064. x.onload = function (e) {
  17065. loading.close();
  17066. // const url = window.URL.createObjectURL(x.response);
  17067. // const a = document.createElement("a");
  17068. // a.href = url;
  17069. // a.target = "_blank";
  17070. // a.download = url;
  17071. // a.click();
  17072. // a.remove();
  17073. let content = x.response;
  17074. let elink = document.createElement("a");
  17075. elink.download = decodeURI(
  17076. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17077. );
  17078. elink.style.display = "none";
  17079. let blob = new Blob([content]);
  17080. elink.href = URL.createObjectURL(blob);
  17081. document.body.appendChild(elink);
  17082. elink.click();
  17083. document.body.removeChild(elink);
  17084. };
  17085. x.send();
  17086. },
  17087. openLine(url) {
  17088. window.open(url);
  17089. },
  17090. resize() {
  17091. if (document.getElementsByClassName("box_course").length) {
  17092. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17093. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17094. if (this.showType == 2 || this.showType == 3) {
  17095. document.getElementsByClassName("navBox")[0].style.height =
  17096. a - 40 + 46 + "px";
  17097. } else {
  17098. document.getElementsByClassName("navBox")[0].style.height =
  17099. a - 40 + "px";
  17100. }
  17101. }
  17102. this.Stbodywidth =
  17103. document.getElementsByClassName("student_body").length &&
  17104. document.getElementsByClassName("student_body")[0].offsetWidth;
  17105. },
  17106. closeDraw() {
  17107. this.bg = null;
  17108. this.drawShow = false;
  17109. },
  17110. showPicturePaint(url) {
  17111. let params = {
  17112. img: url,
  17113. };
  17114. this.ajax
  17115. .get(this.$store.state.api + "imgToBase64", params)
  17116. .then((res) => {
  17117. console.log(res);
  17118. this.drawShow = true;
  17119. this.bg = res.data[0].img;
  17120. })
  17121. .catch((err) => {
  17122. console.error(err);
  17123. });
  17124. },
  17125. addImgDraw(base64) {
  17126. let file = { name: "批注图.png" };
  17127. let img = this.dataUrlToFile(base64, file);
  17128. this.beforeUpload1(img, 5);
  17129. },
  17130. addImgDrawImG(url) {
  17131. // console.log(url);
  17132. let params = [
  17133. {
  17134. wid: this.commentDetail.wid,
  17135. img: url,
  17136. },
  17137. ];
  17138. this.ajax
  17139. .post(this.$store.state.api + "updateCourseWorks", params)
  17140. .then((res) => {
  17141. this.$message({
  17142. message: "提交成功",
  17143. type: "success",
  17144. });
  17145. this.drawShow = false;
  17146. this.bg = "";
  17147. this.selectSWorks();
  17148. this.selectStudent();
  17149. })
  17150. .catch((err) => {
  17151. this.$message.error("提交失败");
  17152. console.error(err);
  17153. });
  17154. },
  17155. deletePicturePaint() {
  17156. this.$confirm("确定删除此批注吗?", "提示", {
  17157. confirmButtonText: "确定",
  17158. cancelButtonText: "取消",
  17159. type: "warning",
  17160. })
  17161. .then(() => {
  17162. let params = [
  17163. {
  17164. wid: this.commentDetail.wid,
  17165. img: "",
  17166. },
  17167. ];
  17168. this.ajax
  17169. .post(this.$store.state.api + "updateCourseWorks", params)
  17170. .then((res) => {
  17171. this.$message({
  17172. message: "删除成功",
  17173. type: "success",
  17174. });
  17175. this.selectSWorks();
  17176. this.selectStudent();
  17177. })
  17178. .catch((err) => {
  17179. this.$message.error("删除失败");
  17180. console.error(err);
  17181. });
  17182. })
  17183. .catch(() => {});
  17184. },
  17185. getAudioVideo(constraintsData) {
  17186. if (navigator.mediaDevices === undefined) {
  17187. navigator.mediaDevices = {};
  17188. }
  17189. if (navigator.mediaDevices.getUserMedia === undefined) {
  17190. navigator.mediaDevices.getUserMedia = function (constraints) {
  17191. // 首先,如果有getUserMedia的话,就获得它
  17192. var getUserMedia =
  17193. navigator.getUserMedia ||
  17194. navigator.webkitGetUserMedia ||
  17195. navigator.mozGetUserMedia ||
  17196. navigator.msGetUserMedia;
  17197. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17198. if (!getUserMedia) {
  17199. return Promise.reject({ code: 404 });
  17200. }
  17201. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17202. return new Promise(function (resolve, reject) {
  17203. getUserMedia.call(navigator, constraints, resolve, reject);
  17204. });
  17205. };
  17206. }
  17207. return navigator.mediaDevices.getUserMedia(constraintsData);
  17208. },
  17209. /**
  17210. * 开始录制
  17211. */
  17212. startRecording(callback) {
  17213. let _function = (screenStream) => {
  17214. this.addStreamStopListener(screenStream, () => {
  17215. console.log("流停止监听");
  17216. this.stopRecording();
  17217. this.$emit("streamStop", {});
  17218. // this.stopRecording();
  17219. });
  17220. var options = {
  17221. type: "video",
  17222. mimeType: "video/webm",
  17223. disableLogs: false,
  17224. getNativeBlob: false, // enable it for longer recordings
  17225. ignoreMutedMedia: false,
  17226. };
  17227. // this.video.srcObject = screenStream;
  17228. this.recorder = RecordRTC(screenStream, options);
  17229. this.recorder.startRecording();
  17230. this.recorder.screen = screenStream;
  17231. this.videoStart = true;
  17232. // callback(true);
  17233. };
  17234. this.getAudioVideo({ audio: true })
  17235. .then((res) => {
  17236. this.captureScreen(_function, true);
  17237. console.log("已点击允许,开启成功");
  17238. })
  17239. .catch((err) => {
  17240. // console.log('浏览器不支持,请更换浏览器')
  17241. // } else {
  17242. this.captureScreen(_function, false);
  17243. console.log("请检查是否存在麦克风");
  17244. });
  17245. },
  17246. /**
  17247. * 停止录制
  17248. */
  17249. stopRecording(callback) {
  17250. this.recorder.stopRecording(() => {
  17251. // this.video.src = this.video.srcObject = null;
  17252. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17253. const url = URL.createObjectURL(this.recorder.getBlob());
  17254. const a = document.createElement("a"); //this.fileName+
  17255. let videoFile = new File(
  17256. [this.recorder.getBlob()],
  17257. this.courseDetail.title + "录屏.mp4",
  17258. {
  17259. type: "video/mp4",
  17260. }
  17261. );
  17262. let downloadUrl = URL.createObjectURL(videoFile);
  17263. document.body.appendChild(a);
  17264. a.style.display = "none";
  17265. a.href = url;
  17266. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17267. a.click();
  17268. this.recorder.screen.stop();
  17269. this.recorder.destroy();
  17270. this.recorder = null;
  17271. this.videoStart = false;
  17272. // callback(false);
  17273. });
  17274. },
  17275. //初始化
  17276. captureScreen(callback, type) {
  17277. if (navigator.getDisplayMedia) {
  17278. //录制结束,文件下载
  17279. navigator
  17280. .getDisplayMedia({
  17281. video: true,
  17282. })
  17283. .then((screenStream) => {
  17284. if (type) {
  17285. navigator.mediaDevices
  17286. .getUserMedia({ audio: true })
  17287. .then((mic) => {
  17288. screenStream.addTrack(mic.getTracks()[0]);
  17289. callback(screenStream);
  17290. });
  17291. } else {
  17292. callback(screenStream);
  17293. }
  17294. })
  17295. .catch(function (error) {
  17296. console.log("error", error);
  17297. });
  17298. } else if (navigator.mediaDevices.getDisplayMedia) {
  17299. navigator.mediaDevices
  17300. .getDisplayMedia({
  17301. video: true,
  17302. })
  17303. .then((screenStream) => {
  17304. if (type) {
  17305. navigator.mediaDevices
  17306. .getUserMedia({ audio: true })
  17307. .then((mic) => {
  17308. screenStream.addTrack(mic.getTracks()[0]);
  17309. callback(screenStream);
  17310. });
  17311. } else {
  17312. callback(screenStream);
  17313. }
  17314. })
  17315. .catch(function (error) {
  17316. console.log("error", error);
  17317. });
  17318. } else {
  17319. var error = "getDisplayMedia API are not supported in this browser.";
  17320. console.log("error", error);
  17321. alert(error);
  17322. }
  17323. },
  17324. //流监听
  17325. addStreamStopListener(stream, callback) {
  17326. stream.addEventListener(
  17327. "ended",
  17328. function () {
  17329. callback();
  17330. callback = function () {};
  17331. },
  17332. false
  17333. );
  17334. stream.addEventListener(
  17335. "inactive",
  17336. function () {
  17337. callback();
  17338. callback = function () {};
  17339. },
  17340. false
  17341. );
  17342. stream.getTracks().forEach(function (track) {
  17343. track.addEventListener(
  17344. "ended",
  17345. function () {
  17346. callback();
  17347. callback = function () {};
  17348. },
  17349. false
  17350. );
  17351. track.addEventListener(
  17352. "inactive",
  17353. function () {
  17354. callback();
  17355. callback = function () {};
  17356. },
  17357. false
  17358. );
  17359. });
  17360. },
  17361. updateGroup() {
  17362. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17363. this.dialogVisibleGroup2 = true;
  17364. },
  17365. numberPan(){
  17366. if(/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10){
  17367. this.$message.error('请输入2-10的数字')
  17368. this.groupJson.number = ''
  17369. }
  17370. },
  17371. updateGroupJson() {
  17372. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17373. if (
  17374. this.groupStudentUid[this.toolindex][i].length >
  17375. this.groupJson2.number
  17376. ) {
  17377. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17378. return;
  17379. }
  17380. }
  17381. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17382. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17383. this.taskCount
  17384. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17385. let params = [
  17386. {
  17387. cid: this.id,
  17388. chapters: JSON.stringify(this.chapInfoList),
  17389. uid: this.userid,
  17390. unitIndex: this.courseType,
  17391. },
  17392. ];
  17393. this.ajax
  17394. .post(this.$store.state.api + "updateWorkNew4", params)
  17395. .then((res) => {
  17396. this.$message.success("设置成功");
  17397. this.getCourseDetail(2);
  17398. this.dialogVisibleGroup2 = false;
  17399. this.groupJson2 = {};
  17400. this.$forceUpdate();
  17401. })
  17402. .catch((err) => {
  17403. this.$message.error("网络不佳");
  17404. console.error(err);
  17405. });
  17406. },
  17407. lockChair() {
  17408. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17409. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17410. this.updateGroupJson();
  17411. },
  17412. selectGroup(index) {
  17413. this.getCourseDetail(2, index);
  17414. },
  17415. joinGroup(index) {
  17416. if (this.groupJson.islock == 2) {
  17417. this.$message.error("位置已被锁定,无法加入");
  17418. return;
  17419. }
  17420. if (
  17421. this.groupStudent[this.toolindex][index].length >
  17422. this.groupJson.number ||
  17423. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17424. ) {
  17425. this.$message.error("位置已满,无法加入");
  17426. return;
  17427. }
  17428. let params = [
  17429. {
  17430. cid: this.id,
  17431. stage: this.courseType,
  17432. task: this.taskCount,
  17433. tool: this.toolindex,
  17434. g: index,
  17435. uid: this.userid,
  17436. },
  17437. ];
  17438. this.ajax
  17439. .post(this.$store.state.api + "joinGroup", params)
  17440. .then((res) => {
  17441. this.$message.success("加入成功");
  17442. this.getCourseDetail();
  17443. })
  17444. .catch((err) => {
  17445. this.$message.error("网络不佳");
  17446. console.error(err);
  17447. });
  17448. },
  17449. exitGroup(id) {
  17450. if (this.groupJson.islock == 2) {
  17451. this.$message.error("位置已被锁定,无法退出");
  17452. return;
  17453. }
  17454. let params = [
  17455. {
  17456. gid: id,
  17457. },
  17458. ];
  17459. this.ajax
  17460. .post(this.$store.state.api + "exitGroup", params)
  17461. .then((res) => {
  17462. this.$message.success("退出成功");
  17463. this.getCourseDetail();
  17464. })
  17465. .catch((err) => {
  17466. this.$message.error("网络不佳");
  17467. console.error(err);
  17468. });
  17469. },
  17470. groupUpload(index, task, gindex) {
  17471. this.taskCount = task;
  17472. this.toolindex = index;
  17473. this.groupIndex = gindex;
  17474. this.dialogVisibleGroupWork = true;
  17475. },
  17476. updateGroupChair(user) {
  17477. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17478. el.label = index;
  17479. return index != user.group;
  17480. });
  17481. this.updateGroupUser = user;
  17482. this.dialogVisibleUpdateGroup = true;
  17483. },
  17484. updateChair() {
  17485. if (
  17486. this.groupStudent[this.toolindex][this.checkChair].length >
  17487. this.groupJson.number ||
  17488. this.groupStudent[this.toolindex][this.checkChair].length ==
  17489. this.groupJson.number
  17490. ) {
  17491. this.$message.error("位置已满,无法加入");
  17492. return;
  17493. }
  17494. let params = [
  17495. {
  17496. cid: this.id,
  17497. stage: this.courseType,
  17498. task: this.taskCount,
  17499. tool: this.toolindex,
  17500. g: this.checkChair,
  17501. uid: this.updateGroupUser.userid,
  17502. },
  17503. ];
  17504. this.ajax
  17505. .post(this.$store.state.api + "joinGroup", params)
  17506. .then((res) => {
  17507. this.$message.success("修改成功");
  17508. this.updateGroupUser = {};
  17509. this.checkChair = "";
  17510. this.updateGroupArray = {};
  17511. this.dialogVisibleUpdateGroup = false;
  17512. this.getCourseDetail();
  17513. })
  17514. .catch((err) => {
  17515. this.$message.error("网络不佳");
  17516. console.error(err);
  17517. });
  17518. },
  17519. deleteGroupChair(gindex) {
  17520. this.checkDeleteGroup = [];
  17521. this.deleteGroupUser = JSON.parse(
  17522. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17523. );
  17524. this.deleteGroupArray = this.groupJson.group[gindex];
  17525. this.groupIndex = gindex;
  17526. this.dialogVisibleDeleteGroup = true;
  17527. },
  17528. async deleteChair() {
  17529. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17530. const gid =
  17531. this.groupStudent[this.toolindex][this.groupIndex][
  17532. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17533. this.checkDeleteGroup[i]
  17534. )
  17535. ];
  17536. let params = [
  17537. {
  17538. gid: gid.id,
  17539. },
  17540. ];
  17541. var a = await this.deleteChairA(params);
  17542. if (i == this.checkDeleteGroup.length - 1) {
  17543. this.$message.success("退出成功");
  17544. this.dialogVisibleDeleteGroup = false;
  17545. this.deleteGroupUser = [];
  17546. this.deleteGroupArray = {};
  17547. this.groupIndex = "";
  17548. this.checkDeleteGroup = [];
  17549. this.getCourseDetail();
  17550. }
  17551. }
  17552. },
  17553. deleteChairA(params) {
  17554. return new Promise((resolve, reject) => {
  17555. this.ajax
  17556. .post(this.$store.state.api + "exitGroup", params)
  17557. .then((res) => {
  17558. resolve(1);
  17559. })
  17560. .catch((err) => {
  17561. this.$message.error("网络不佳");
  17562. console.error(err);
  17563. });
  17564. });
  17565. },
  17566. contract(i) {
  17567. if (this.isCloseList[i].isClose == 0) {
  17568. this.isCloseList[i].isClose = 1;
  17569. } else {
  17570. this.isCloseList[i].isClose = 0;
  17571. }
  17572. this.$forceUpdate();
  17573. },
  17574. openTools2(i) {
  17575. this.$message.error("暂未开放");
  17576. return;
  17577. },
  17578. addTools2(i) {
  17579. if (i == 4) {
  17580. // this.openTools2(4);
  17581. this.$message.error("暂未开放");
  17582. return;
  17583. }
  17584. if (i == 45) {
  17585. // this.openTools2(45);
  17586. this.$message.error("暂未开放");
  17587. return;
  17588. }
  17589. if (i == 47) {
  17590. // this.openTools2(47);
  17591. this.$message.error("暂未开放");
  17592. return;
  17593. }
  17594. if (i == 49) {
  17595. // this.openTools2(49);
  17596. this.$message.error("暂未开放");
  17597. return;
  17598. }
  17599. if (i == 62) {
  17600. // this.openTools(itemTaskIndex, 62, toolIndex);
  17601. this.$message.error("暂未开放");
  17602. return;
  17603. }
  17604. if (i == 15) {
  17605. // this.openTools(itemTaskIndex, 15, toolIndex);
  17606. this.$message.error("暂未开放");
  17607. return;
  17608. }
  17609. if (i == 40) {
  17610. // this.openTools(itemTaskIndex, 40, toolIndex);
  17611. this.$message.error("暂未开放");
  17612. return;
  17613. }
  17614. if (i == 41) {
  17615. // this.openTools(itemTaskIndex, 41, toolIndex);
  17616. this.$message.error("暂未开放");
  17617. return;
  17618. }
  17619. if (i == 42) {
  17620. // this.openTools(itemTaskIndex, 42, toolIndex);
  17621. this.$message.error("暂未开放");
  17622. return;
  17623. }
  17624. if (this.checktoolArray.length > 0) {
  17625. if (this.checktoolArray.indexOf(i) != -1) {
  17626. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17627. } else {
  17628. this.checktoolArray = [];
  17629. this.checktoolArray.push(i);
  17630. }
  17631. } else {
  17632. this.checktoolArray.push(i);
  17633. }
  17634. this.$forceUpdate();
  17635. },
  17636. addToolChoose() {
  17637. if (!this.checktoolArray.length) {
  17638. this.$message.error("请选择要添加的任务");
  17639. return;
  17640. }
  17641. if (
  17642. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17643. this.taskCount
  17644. ].toolChoose[0].tool.length
  17645. ) {
  17646. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17647. this.taskCount
  17648. ].toolChoose[0].tool = this.checktoolArray;
  17649. } else {
  17650. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17651. this.taskCount
  17652. ].toolChoose.push({
  17653. tool: this.checktoolArray,
  17654. toolDetail: "",
  17655. toolType: 0,
  17656. askCount: 1,
  17657. askTitle: "",
  17658. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17659. });
  17660. }
  17661. let params = [
  17662. {
  17663. cid: this.id,
  17664. chapters: JSON.stringify(this.chapInfoList),
  17665. uid: this.userid,
  17666. unitIndex: this.courseType,
  17667. },
  17668. ];
  17669. this.ajax
  17670. .post(this.$store.state.api + "updateWorkNew4", params)
  17671. .then((res) => {
  17672. this.$message({
  17673. message: "添加成功",
  17674. type: "success",
  17675. });
  17676. this.checktoolArray = [];
  17677. this.getCourseDetail(2);
  17678. this.checkBz(
  17679. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17680. this.taskCount
  17681. ].toolChoose.length - 1
  17682. );
  17683. this.$forceUpdate();
  17684. })
  17685. .catch((err) => {
  17686. console.error(err);
  17687. });
  17688. },
  17689. updateToolDetail() {
  17690. if (!this.isUpdateToolDetail) {
  17691. this.isUpdateToolDetail = true;
  17692. this.updateToolDetailInner = JSON.parse(
  17693. JSON.stringify(this.tool.toolDetail)
  17694. );
  17695. } else {
  17696. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17697. this.taskCount
  17698. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  17699. JSON.stringify(this.updateToolDetailInner)
  17700. );
  17701. let params = [
  17702. {
  17703. cid: this.id,
  17704. chapters: JSON.stringify(this.chapInfoList),
  17705. uid: this.userid,
  17706. unitIndex: this.courseType,
  17707. },
  17708. ];
  17709. this.ajax
  17710. .post(this.$store.state.api + "updateWorkNew4", params)
  17711. .then((res) => {
  17712. this.isUpdateToolDetail = false;
  17713. this.$message({
  17714. message: "修改成功",
  17715. type: "success",
  17716. });
  17717. this.updateToolDetailInner = "";
  17718. this.getCourseDetail(2);
  17719. this.$forceUpdate();
  17720. this.checkBz(this.toolIndex);
  17721. })
  17722. .catch((err) => {
  17723. console.error(err);
  17724. });
  17725. }
  17726. },
  17727. openWordCloud(toolindex) {
  17728. let array = [];
  17729. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  17730. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  17731. array.push({ name: works });
  17732. }
  17733. if (this.isGroup) {
  17734. for (var i = 0; i < this.courseGroup.group.length; i++) {
  17735. let works = this.courseGroup.group[i].works[toolindex];
  17736. for (var j = 0; j < works.length; j++) {
  17737. let answer = JSON.parse(works[j].works)[0].answer;
  17738. array.push({ name: answer });
  17739. }
  17740. }
  17741. }
  17742. this.wordCloudData = array;
  17743. this.dialogVisibleWordCloud = true;
  17744. },
  17745. pickStudent(stu) {
  17746. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  17747. return;
  17748. }
  17749. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  17750. confirmButtonText: "确定",
  17751. cancelButtonText: "取消",
  17752. type: "warning",
  17753. })
  17754. .then(() => {
  17755. let params = [
  17756. {
  17757. uid: stu.userid,
  17758. cid: this.id,
  17759. stage: this.courseType,
  17760. task: this.taskCount,
  17761. tool: this.toolindex,
  17762. },
  17763. ];
  17764. this.ajax
  17765. .post(this.$store.state.api + "updateCoursePick", params)
  17766. .then((res) => {
  17767. this.$message.success("操作成功");
  17768. this.getPick();
  17769. })
  17770. .catch((err) => {
  17771. this.$message.error("网络不佳");
  17772. console.error(err);
  17773. });
  17774. })
  17775. .catch(() => {});
  17776. },
  17777. getPick() {
  17778. let params = {
  17779. cid: this.id,
  17780. };
  17781. this.ajax
  17782. .get(this.$store.state.api + "getPick", params)
  17783. .then((res) => {
  17784. let array = [];
  17785. for (var i = 0; i < res.data[0].length; i++) {
  17786. array.push(res.data[0][i].userid);
  17787. }
  17788. this.isPickStudent = array;
  17789. if (array.indexOf(this.userid) !== -1) {
  17790. this.$confirm("你被老师选到啦!", "提示", {
  17791. confirmButtonText: "确定",
  17792. showCancelButton: false,
  17793. closeOnClickModal: false,
  17794. type: "warning",
  17795. })
  17796. .then(() => {
  17797. let pa = [
  17798. {
  17799. uid: this.userid,
  17800. cid: this.id,
  17801. },
  17802. ];
  17803. this.ajax
  17804. .post(this.$store.state.api + "deletePick", pa)
  17805. .then((res) => {
  17806. this.getPick();
  17807. })
  17808. .catch((err) => {
  17809. this.$message.error("网络不佳");
  17810. console.error(err);
  17811. });
  17812. })
  17813. .catch(() => {});
  17814. }
  17815. })
  17816. .catch((err) => {
  17817. this.$message.error("网络不佳");
  17818. console.error(err);
  17819. });
  17820. },
  17821. },
  17822. directives: {
  17823. // 使用局部注册指令的方式
  17824. resize: {
  17825. // 指令的名称
  17826. bind(el, binding) {
  17827. // el为绑定的元素,binding为绑定给指令的对象
  17828. let width = "",
  17829. height = "";
  17830. function isReize() {
  17831. const style = document.defaultView.getComputedStyle(el);
  17832. if (width !== style.width || height !== style.height) {
  17833. binding.value(); // 关键
  17834. }
  17835. width = style.width;
  17836. height = style.height;
  17837. }
  17838. el.__vueSetInterval__ = setInterval(isReize, 300);
  17839. },
  17840. unbind(el) {
  17841. clearInterval(el.__vueSetInterval__);
  17842. },
  17843. },
  17844. },
  17845. beforeDestroy() {
  17846. window.onresize = null;
  17847. clearInterval(this.timer);
  17848. this.timer = null;
  17849. clearInterval(this.opertimer);
  17850. this.opertimer = null;
  17851. },
  17852. computed: {
  17853. contentConvent() {
  17854. return function (c) {
  17855. return c
  17856. ? c
  17857. .replaceAll(/\r\n/g, "<br/>")
  17858. .replaceAll(/\n/g, "<br/>")
  17859. .replaceAll(/\s/g, " &nbsp")
  17860. : "";
  17861. };
  17862. },
  17863. checkUpload() {
  17864. return function () {
  17865. var studentK = [];
  17866. if (this.plworkFile.length > 0) {
  17867. for (var z = 0; z < this.plworkFile.length; z++) {
  17868. studentK.push(this.plworkFile[z].username);
  17869. }
  17870. studentK = studentK.join(",");
  17871. }
  17872. var a = this.uploadStudentJuri.filter((el) => {
  17873. return studentK.indexOf(el.userid) == -1;
  17874. });
  17875. return a;
  17876. };
  17877. },
  17878. getSName() {
  17879. return function (name) {
  17880. var check = name;
  17881. this.uploadStudentJuri.forEach((el) => {
  17882. if (el.userid == check) {
  17883. check = el.name ? el.name : el.username;
  17884. }
  17885. });
  17886. return check;
  17887. };
  17888. },
  17889. getImgList() {
  17890. return function (val) {
  17891. let srcList = []; // 定义一个数组用来接收后面的img地址
  17892. val.replace(
  17893. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  17894. function (match, capture) {
  17895. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  17896. srcList.push(capture);
  17897. }
  17898. );
  17899. return srcList;
  17900. };
  17901. },
  17902. },
  17903. mounted() {
  17904. document.body.addEventListener("click", (e) => {
  17905. if (this.isUpdateToolDetail) {
  17906. this.updateToolDetail();
  17907. }
  17908. });
  17909. if (this.screenType == 2) {
  17910. window.parent.postMessage({ allScreen: 4 }, "*");
  17911. } else if (this.screenType == 3) {
  17912. window.parent.postMessage({ allScreen: 5 }, "*");
  17913. } else if (this.screenType == 1) {
  17914. window.parent.postMessage({ allScreen: 6 }, "*");
  17915. }
  17916. this.setOperationTime();
  17917. this.selectEva();
  17918. this.getCourseDetail();
  17919. this.selectCount();
  17920. this.getHomeWork();
  17921. this.toolIndex = null;
  17922. this.contentDialog = true;
  17923. this.setContent2(true);
  17924. if (this.tType == 4) {
  17925. this.pzDialog = true;
  17926. this.selectPz();
  17927. }
  17928. document.scrollingElement.scrollTop = 0;
  17929. window.addEventListener("resize", () => {
  17930. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17931. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17932. if (this.showType == 2 || this.showType == 3) {
  17933. document.getElementsByClassName("navBox")[0].style.height =
  17934. a - 40 + 46 + "px";
  17935. } else {
  17936. document.getElementsByClassName("navBox")[0].style.height =
  17937. a - 40 + "px";
  17938. }
  17939. });
  17940. let _this = this;
  17941. setTimeout(() => {
  17942. // _this.vedioTime = [];
  17943. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17944. // _this.vedioTime[i] = document.getElementsByClassName(
  17945. // "vjs-duration-display"
  17946. // )[i].textContent;
  17947. // }
  17948. }, 1000);
  17949. },
  17950. };
  17951. </script>
  17952. <style scoped>
  17953. @media screen and (max-width: 1280px) {
  17954. /* .courseIndex > div:first-child(2) {
  17955. width: 15% !important;
  17956. } */
  17957. /* .navText {
  17958. width: 120px !important;
  17959. } */
  17960. .evaCss {
  17961. flex-direction: column !important;
  17962. align-items: center !important;
  17963. }
  17964. .dialog_diy1 >>> .el-dialog {
  17965. width: 100% !important;
  17966. }
  17967. .rightWidthCss {
  17968. width: 100% !important;
  17969. }
  17970. .dialog_diy3 >>> .el-dialog {
  17971. width: 100% !important;
  17972. }
  17973. /* .textTitle >>> .el-form-item__label {
  17974. width: 150px !important;
  17975. } */
  17976. }
  17977. .evaCssMax {
  17978. flex-direction: column !important;
  17979. align-items: center !important;
  17980. }
  17981. .dialog_diy >>> .el-dialog {
  17982. margin-top: 10vh !important;
  17983. }
  17984. .body_student {
  17985. width: 77%;
  17986. height: 100%;
  17987. position: absolute;
  17988. left: 22%;
  17989. top: 0;
  17990. }
  17991. .student_head {
  17992. width: 100%;
  17993. margin: 20px auto 0;
  17994. padding-bottom: 20px;
  17995. display: flex;
  17996. flex-direction: column;
  17997. flex-wrap: nowrap;
  17998. align-items: flex-start;
  17999. justify-content: flex-start;
  18000. }
  18001. .pb_left {
  18002. width: 20%;
  18003. margin-right: 10px;
  18004. background: rgb(255, 255, 255);
  18005. position: fixed;
  18006. height: calc(100% - 40px);
  18007. border-radius: 20px;
  18008. padding-bottom: 15px;
  18009. box-sizing: border-box;
  18010. }
  18011. .wheel > img,
  18012. .project > img,
  18013. .star > img,
  18014. .evaluate > img,
  18015. .up_photo > img,
  18016. .chapter_add > img,
  18017. .deleteWord > img,
  18018. .question > img,
  18019. .homework > img {
  18020. width: 100%;
  18021. height: 100%;
  18022. }
  18023. .upCover > img {
  18024. width: 131px;
  18025. height: 69px;
  18026. object-fit: cover;
  18027. }
  18028. .upCover {
  18029. width: calc(100% / 3.5);
  18030. position: relative;
  18031. margin: 0 15px 10px 0;
  18032. display: flex;
  18033. flex-direction: column;
  18034. flex-wrap: nowrap;
  18035. justify-content: center;
  18036. align-content: center;
  18037. align-items: center;
  18038. height: fit-content;
  18039. }
  18040. .upCover2 {
  18041. width: 100%;
  18042. position: relative;
  18043. margin: 0 15px 10px 0;
  18044. display: flex;
  18045. flex-direction: column;
  18046. flex-wrap: nowrap;
  18047. justify-content: center;
  18048. align-content: center;
  18049. align-items: center;
  18050. }
  18051. .upCover2 > img {
  18052. width: 100%;
  18053. height: 90px;
  18054. object-fit: contain;
  18055. }
  18056. .chapter_add {
  18057. width: 120px;
  18058. position: relative;
  18059. text-align: center;
  18060. }
  18061. .isAddThings {
  18062. margin-top: 20px;
  18063. position: relative;
  18064. text-align: center;
  18065. background: #f7f8fa;
  18066. height: 90px;
  18067. width: 90px;
  18068. display: flex;
  18069. flex-direction: column;
  18070. justify-content: center;
  18071. }
  18072. .deleteWord {
  18073. width: 22px;
  18074. height: 22px;
  18075. position: absolute;
  18076. right: -5px;
  18077. top: -5px;
  18078. cursor: pointer;
  18079. }
  18080. .box_course {
  18081. /* width: 60%; */
  18082. width: calc(100% - 300px);
  18083. }
  18084. .wheel {
  18085. width: 100%;
  18086. /* height: 100%; */
  18087. height: 650px;
  18088. }
  18089. .right_box {
  18090. display: flex;
  18091. flex-direction: column;
  18092. margin-left: 30px;
  18093. justify-content: space-around;
  18094. }
  18095. .right_box_title {
  18096. font-size: 23px;
  18097. }
  18098. .people {
  18099. display: flex;
  18100. }
  18101. .student_body {
  18102. width: 100%;
  18103. margin: 0 auto;
  18104. margin-top: 10px;
  18105. padding: 0 0 20px;
  18106. background: #fff;
  18107. border-radius: 20px;
  18108. }
  18109. .study_top {
  18110. margin-top: 100px;
  18111. width: 100%;
  18112. /* overflow: auto; */
  18113. height: auto;
  18114. padding-bottom: 20px;
  18115. }
  18116. .study_top .checkbox {
  18117. display: flex;
  18118. align-items: center;
  18119. padding: 15px 0 15px 30px;
  18120. flex: 0 0 auto;
  18121. font-weight: bold;
  18122. border-bottom: 1px solid #eee;
  18123. }
  18124. .study_top .check {
  18125. padding-bottom: 5px;
  18126. text-align: center;
  18127. cursor: pointer;
  18128. height: 30px;
  18129. box-sizing: border-box;
  18130. display: flex;
  18131. }
  18132. .study_top .checked {
  18133. border-bottom: 4px solid #3fc6a0;
  18134. padding-bottom: 5px;
  18135. color: #3fc6a0;
  18136. display: flex;
  18137. height: 35px;
  18138. }
  18139. .study_top .checked > div,
  18140. .study_top .check > div {
  18141. margin-right: 5px;
  18142. }
  18143. .videoTop {
  18144. display: flex;
  18145. flex-direction: row;
  18146. justify-content: space-between;
  18147. background: #fff;
  18148. align-items: center;
  18149. width: 95%;
  18150. padding: 20px;
  18151. }
  18152. .upbtn {
  18153. margin: 25px;
  18154. background: #70afdb;
  18155. color: #fff;
  18156. width: 120px;
  18157. text-align: center;
  18158. height: 30px;
  18159. line-height: 30px;
  18160. font-size: 13px;
  18161. border-radius: 5px;
  18162. cursor: pointer;
  18163. }
  18164. .filebox {
  18165. display: flex;
  18166. flex-wrap: wrap;
  18167. flex-direction: column;
  18168. padding: 0 0 5px;
  18169. }
  18170. .filebox .tooldetail {
  18171. width: 100%;
  18172. margin: 0px 12px;
  18173. background: rgb(247, 247, 247);
  18174. padding: 20px;
  18175. line-height: 30px;
  18176. word-break: break-word;
  18177. }
  18178. .file {
  18179. display: flex;
  18180. flex-direction: column;
  18181. align-items: center;
  18182. justify-content: center;
  18183. cursor: pointer;
  18184. width: 200px;
  18185. }
  18186. .file div {
  18187. margin-top: 10px;
  18188. width: 150px;
  18189. text-align: center;
  18190. overflow: hidden;
  18191. white-space: nowrap;
  18192. text-overflow: ellipsis;
  18193. }
  18194. .media {
  18195. display: flex;
  18196. flex-direction: column;
  18197. align-items: center;
  18198. justify-content: center;
  18199. margin: 0 20px 20px 0;
  18200. cursor: pointer;
  18201. margin: 12px 0 5px 15px;
  18202. overflow: hidden;
  18203. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  18204. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  18205. box-sizing: border-box;
  18206. }
  18207. .media img {
  18208. height: 90px;
  18209. width: 160px;
  18210. object-fit: cover;
  18211. }
  18212. .media .title {
  18213. padding: 5px;
  18214. text-align: left;
  18215. width: 100%;
  18216. box-sizing: border-box;
  18217. }
  18218. .media .btn {
  18219. width: 100%;
  18220. height: 35px;
  18221. line-height: 35px;
  18222. color: #fff;
  18223. background: #606060;
  18224. text-align: center;
  18225. overflow: hidden;
  18226. white-space: nowrap;
  18227. text-overflow: ellipsis;
  18228. }
  18229. .detail_content_top {
  18230. width: 100%;
  18231. padding: 25px 0 25px 0;
  18232. }
  18233. .detail_title {
  18234. text-align: center;
  18235. font-size: 24px;
  18236. }
  18237. .detail_time {
  18238. font-size: 13px;
  18239. padding: 15px 0 0 40px;
  18240. }
  18241. .detail_content {
  18242. line-height: 2pc;
  18243. width: 90%;
  18244. margin: 0 auto;
  18245. padding-top: 30px;
  18246. text-indent: 30px;
  18247. overflow: auto;
  18248. height: 200px;
  18249. }
  18250. .score_box >>> .el-rate {
  18251. margin-left: 10px;
  18252. }
  18253. .dialog_change >>> .el-dialog {
  18254. border-radius: 5px;
  18255. }
  18256. .dialog_change >>> .el-dialog__header {
  18257. background: #f2f2f2;
  18258. text-align: center;
  18259. }
  18260. .dialog_change >>> .el-dialog__title {
  18261. line-height: 5px;
  18262. }
  18263. .dialog_change >>> .el-dialog__body {
  18264. background: #fff;
  18265. padding: 10px 20px;
  18266. }
  18267. .score_box {
  18268. display: flex;
  18269. align-items: center;
  18270. margin-bottom: 18px;
  18271. margin-top: 20px;
  18272. }
  18273. .up_photo {
  18274. width: 120px;
  18275. cursor: pointer;
  18276. margin-top: 10px;
  18277. }
  18278. .up_photo2 {
  18279. width: 180px;
  18280. box-sizing: border-box;
  18281. min-width: 180px;
  18282. height: 180px;
  18283. max-height: 180px;
  18284. min-height: 180px;
  18285. cursor: pointer;
  18286. display: flex;
  18287. flex-direction: column;
  18288. align-items: center;
  18289. justify-content: center;
  18290. background: rgb(242, 246, 255);
  18291. /* padding: 25px; */
  18292. margin-bottom: 10px;
  18293. }
  18294. .up_photo2 img {
  18295. width: 50%;
  18296. height: auto;
  18297. }
  18298. .up_photo2 span {
  18299. color: #898989;
  18300. }
  18301. .plworkBox {
  18302. display: flex;
  18303. align-items: center;
  18304. margin-top: 10px;
  18305. flex-wrap: wrap;
  18306. }
  18307. .upload_send {
  18308. margin: 30px auto 30px;
  18309. width: 60%;
  18310. background: #169bd6;
  18311. text-align: center;
  18312. height: 35px;
  18313. line-height: 35px;
  18314. color: #fff;
  18315. border-radius: 5px;
  18316. cursor: pointer;
  18317. }
  18318. .marginT {
  18319. margin-top: 20px;
  18320. }
  18321. .cd_content_steps {
  18322. display: flex;
  18323. width: 90%;
  18324. justify-content: space-around;
  18325. border-top: 1px solid #eeeeee;
  18326. }
  18327. .cd_steps_box {
  18328. display: flex;
  18329. justify-content: center;
  18330. align-items: center;
  18331. flex-direction: column;
  18332. cursor: pointer;
  18333. }
  18334. .first {
  18335. display: flex;
  18336. align-items: center;
  18337. margin: 15px 0 20px 0;
  18338. font-size: 20px;
  18339. }
  18340. .first > div:nth-child(2) {
  18341. font-size: 16px !important;
  18342. padding-left: 10px;
  18343. line-height: 26px;
  18344. box-sizing: border-box;
  18345. }
  18346. .blue_box_one {
  18347. text-align: center;
  18348. color: #fff;
  18349. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18350. border-radius: 7px;
  18351. margin: 10px;
  18352. cursor: pointer;
  18353. width: 95%;
  18354. height: 45px;
  18355. display: flex;
  18356. flex-direction: row;
  18357. justify-content: flex-start;
  18358. align-items: center;
  18359. }
  18360. .blue_box_one > div:nth-child(1) {
  18361. line-height: 30px;
  18362. margin: 0 5px 0 10px;
  18363. width: 30%;
  18364. min-width: 70px;
  18365. border-radius: 4px;
  18366. }
  18367. .blue_box_one > div:nth-child(2) {
  18368. white-space: nowrap;
  18369. text-overflow: ellipsis;
  18370. overflow: hidden;
  18371. word-break: break-all;
  18372. width: 70%;
  18373. text-align: left;
  18374. margin-right: 10px;
  18375. max-width: calc(100% - 85px);
  18376. }
  18377. .blue_box_one > div:nth-child(2):hover {
  18378. overflow: hidden;
  18379. text-overflow: ellipsis;
  18380. white-space: nowrap;
  18381. cursor: pointer;
  18382. }
  18383. .upFile {
  18384. margin: 0 auto;
  18385. width: 120px;
  18386. background: #70afdb;
  18387. color: #fff;
  18388. height: 30px;
  18389. text-align: center;
  18390. line-height: 30px;
  18391. border-radius: 5px;
  18392. font-size: 14px;
  18393. cursor: pointer;
  18394. }
  18395. .courseTitle {
  18396. width: 85%;
  18397. margin: 10px auto;
  18398. display: flex;
  18399. flex-direction: row;
  18400. align-items: center;
  18401. justify-content: space-between;
  18402. text-align: center;
  18403. }
  18404. .courseTitle .ctitle {
  18405. font-size: 20px;
  18406. font-weight: bold;
  18407. color: #0e1e33;
  18408. white-space: nowrap;
  18409. overflow: hidden;
  18410. text-overflow: ellipsis;
  18411. }
  18412. .courseTitle .inviteBox {
  18413. font-size: 14px;
  18414. margin-top: 5px;
  18415. color: #a6cbff;
  18416. }
  18417. .courseTitle >>> .el-tooltip {
  18418. width: 100%;
  18419. white-space: nowrap;
  18420. overflow: hidden;
  18421. text-overflow: ellipsis;
  18422. word-break: break-word;
  18423. }
  18424. .ml {
  18425. margin-left: 20px;
  18426. color: #5b7dba;
  18427. border-left: 3px solid #5b7dba;
  18428. padding-left: 5px;
  18429. font-weight: bold;
  18430. }
  18431. .return {
  18432. width: 2rem;
  18433. height: 2rem;
  18434. cursor: pointer;
  18435. }
  18436. .return > img {
  18437. width: 100%;
  18438. height: 100%;
  18439. }
  18440. .returnBtn {
  18441. width: 86px;
  18442. height: 36px;
  18443. background: #3681fc;
  18444. border-radius: 4px;
  18445. color: #fff;
  18446. text-align: center;
  18447. line-height: 36px;
  18448. margin-right: 20px;
  18449. cursor: pointer;
  18450. font-size: 14px;
  18451. font-weight: 400;
  18452. display: flex;
  18453. flex-direction: row;
  18454. flex-wrap: nowrap;
  18455. align-items: center;
  18456. justify-content: center;
  18457. }
  18458. .commentIcon::before,
  18459. .vedioIcon::before,
  18460. .lockIcon::before,
  18461. .returnIcon::before {
  18462. content: "";
  18463. display: block;
  18464. background-size: 100% 100%;
  18465. background-repeat: no-repeat;
  18466. width: 20px;
  18467. height: 20px;
  18468. margin-right: 5px;
  18469. }
  18470. .commentIcon::before {
  18471. background-image: url("../../assets/icon/newIcon/comment.png");
  18472. }
  18473. .vedioIcon::before {
  18474. background-image: url("../../assets/icon/newIcon/vedio.png");
  18475. }
  18476. .lockIcon::before {
  18477. background-image: url("../../assets/icon/newIcon/lock.png");
  18478. }
  18479. .returnIcon::before {
  18480. background-image: url("../../assets/icon/newIcon/return.png");
  18481. }
  18482. .tool {
  18483. display: flex;
  18484. flex-direction: column;
  18485. flex-wrap: nowrap;
  18486. width: 13%;
  18487. margin: 0 30px;
  18488. align-items: center;
  18489. }
  18490. .whiteBIcon {
  18491. width: 150px;
  18492. cursor: pointer;
  18493. }
  18494. .whiteBIcon > img {
  18495. width: 100%;
  18496. height: 100%;
  18497. }
  18498. .mask {
  18499. background-color: rgba(0, 0, 0, 0);
  18500. position: fixed;
  18501. top: 0;
  18502. left: 0;
  18503. width: 100%;
  18504. height: 100%;
  18505. z-index: 20000;
  18506. display: flex;
  18507. align-items: center;
  18508. justify-content: center;
  18509. }
  18510. .progressBox {
  18511. width: 500px;
  18512. height: 180px;
  18513. background: #fff;
  18514. border-radius: 10px;
  18515. box-shadow: 0 0 6px 1px #bfbfbf;
  18516. display: flex;
  18517. align-items: center;
  18518. justify-content: center;
  18519. flex-direction: column;
  18520. position: relative;
  18521. color: #6c6c6c;
  18522. }
  18523. .progressBox >>> .el-progress-bar__outer {
  18524. background-color: #d1dfff !important;
  18525. }
  18526. .progressBox .lbox {
  18527. height: 50px;
  18528. font-size: 19px;
  18529. display: flex;
  18530. align-items: center;
  18531. color: #747474;
  18532. }
  18533. .progressBox .lbox img {
  18534. width: 40px;
  18535. margin-right: 20px;
  18536. }
  18537. .closeCss {
  18538. position: absolute;
  18539. top: 8px;
  18540. right: 8px;
  18541. cursor: pointer;
  18542. width: 20px;
  18543. height: 20px;
  18544. }
  18545. .closeCss > img {
  18546. width: 100%;
  18547. height: 100%;
  18548. }
  18549. .uploadVedio {
  18550. display: flex;
  18551. flex-direction: column;
  18552. flex-wrap: nowrap;
  18553. justify-content: center;
  18554. align-items: center;
  18555. margin: 0 15px 10px 0;
  18556. }
  18557. .uploadVedio > img {
  18558. width: 30px;
  18559. height: 30px;
  18560. }
  18561. .uploadVedio > span {
  18562. white-space: nowrap;
  18563. overflow: hidden;
  18564. text-overflow: ellipsis;
  18565. width: 75px;
  18566. margin-top: 7px;
  18567. }
  18568. .picName {
  18569. white-space: nowrap;
  18570. overflow: hidden;
  18571. text-overflow: ellipsis;
  18572. width: 75px;
  18573. margin-top: 7px;
  18574. }
  18575. .new_top {
  18576. display: flex;
  18577. background: #fff;
  18578. flex-direction: row;
  18579. justify-content: flex-start;
  18580. align-items: center;
  18581. height: 60px;
  18582. position: fixed;
  18583. top: 20px;
  18584. left: 22%;
  18585. width: 77%;
  18586. z-index: 999;
  18587. border-radius: 12px 12px 0 0;
  18588. border-bottom: 1px solid #cad1dc;
  18589. padding: 10px 0;
  18590. }
  18591. .new_topFixed {
  18592. width: 100%;
  18593. height: 40px;
  18594. position: fixed;
  18595. top: 0px;
  18596. display: block;
  18597. background: #f2f2f2;
  18598. z-index: 998;
  18599. }
  18600. .before {
  18601. position: absolute;
  18602. background: #c3dad4;
  18603. width: 6px;
  18604. height: 100%;
  18605. }
  18606. .courseIndex {
  18607. display: flex;
  18608. flex-direction: row;
  18609. align-items: center;
  18610. width: calc(100% - 745px);
  18611. }
  18612. .courseIndex > div:nth-child(1) {
  18613. margin: 0 0 0 10px;
  18614. font-size: 20px;
  18615. min-width: 100px;
  18616. font-weight: bold;
  18617. border-left: 4px solid #3363b9;
  18618. height: 32px;
  18619. text-align: center;
  18620. line-height: 35px;
  18621. }
  18622. .courseIndex > div:nth-child(2) {
  18623. font-size: 20px;
  18624. /* width: 300px; */
  18625. max-width: calc(100% - 105px);
  18626. white-space: nowrap;
  18627. overflow: hidden;
  18628. text-overflow: ellipsis;
  18629. }
  18630. .courseIndex > div:nth-child(3) {
  18631. border-bottom: 1px solid #d7d7d7;
  18632. padding-bottom: 5px;
  18633. background: #49a0f0;
  18634. width: 55px;
  18635. min-width: 55px;
  18636. border-radius: 5px;
  18637. color: #fff;
  18638. text-align: center;
  18639. height: 20px;
  18640. line-height: 26px;
  18641. font-size: 14px;
  18642. margin: 0 0 0 10px;
  18643. }
  18644. .course_text {
  18645. padding: 20px 0 0 15px;
  18646. text-indent: 30px;
  18647. width: 80%;
  18648. min-height: 20px;
  18649. }
  18650. .vedioList {
  18651. background: #f2f2f2;
  18652. border: 1px solid #ececec;
  18653. /* width: 38.8%; */
  18654. width: 300px;
  18655. height: 445px;
  18656. border-radius: 10px;
  18657. overflow: hidden;
  18658. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  18659. }
  18660. .vedioNav {
  18661. margin: 10px 0 0 15px;
  18662. border-bottom: 1px solid #d7d7d7;
  18663. padding-bottom: 5px;
  18664. background: #96d1ff;
  18665. width: 55px;
  18666. min-width: 55px;
  18667. border-radius: 5px;
  18668. color: #fff;
  18669. text-align: center;
  18670. height: 20px;
  18671. line-height: 26px;
  18672. font-size: 14px;
  18673. }
  18674. .queTop {
  18675. display: flex;
  18676. padding: 20px 0 20px 30px;
  18677. width: 100%;
  18678. flex-direction: row;
  18679. justify-content: flex-start;
  18680. align-items: center;
  18681. box-sizing: border-box;
  18682. }
  18683. .queTopTitle {
  18684. display: flex;
  18685. flex-direction: row;
  18686. flex-wrap: nowrap;
  18687. align-items: center;
  18688. font-weight: bold;
  18689. font-size: 20px;
  18690. color: rgb(14, 30, 51);
  18691. }
  18692. .queTopTitle::before {
  18693. content: "";
  18694. width: 2px;
  18695. height: 22px;
  18696. background: #3681fc;
  18697. border-radius: 3px;
  18698. display: block;
  18699. margin: 2px 6px 0 0;
  18700. }
  18701. .queTopRight {
  18702. display: flex;
  18703. flex-direction: row;
  18704. flex-wrap: nowrap;
  18705. align-items: center;
  18706. }
  18707. .queTopClose {
  18708. margin-right: 20px;
  18709. cursor: pointer;
  18710. position: relative;
  18711. display: flex;
  18712. }
  18713. .closeImg,
  18714. .openImg {
  18715. width: 25px;
  18716. height: 25px;
  18717. position: absolute;
  18718. left: -20px;
  18719. top: -1px;
  18720. }
  18721. .closeImg > img,
  18722. .openImg > img {
  18723. width: 100%;
  18724. height: 100%;
  18725. }
  18726. .question {
  18727. width: 40px;
  18728. margin-right: 10px;
  18729. margin-top: 7px;
  18730. }
  18731. .queTitle {
  18732. margin-left: 5px;
  18733. font-size: 25px;
  18734. display: flex;
  18735. align-items: center;
  18736. }
  18737. .addEditor {
  18738. width: 100px;
  18739. height: 30px;
  18740. background: #42cda6;
  18741. color: #fff;
  18742. border-radius: 5px;
  18743. text-align: center;
  18744. line-height: 30px;
  18745. box-shadow: 1px 3px 6px 1px #bfbfbf;
  18746. cursor: pointer;
  18747. }
  18748. .vedioName {
  18749. /* text-overflow: ellipsis;
  18750. top: 8px;
  18751. font-size: 14px;
  18752. overflow: hidden;
  18753. width: 100%;
  18754. word-break: break-all;
  18755. white-space: nowrap; */
  18756. cursor: pointer;
  18757. margin: 0px 0px 10px 5px;
  18758. white-space: nowrap;
  18759. overflow: hidden;
  18760. text-overflow: ellipsis;
  18761. width: 100%;
  18762. }
  18763. .vedioTime {
  18764. width: 35px;
  18765. position: absolute;
  18766. color: #fff;
  18767. bottom: 0px;
  18768. right: 0px;
  18769. text-align: center;
  18770. background: #46411f;
  18771. height: 20px;
  18772. font-size: 14px;
  18773. line-height: 20px;
  18774. }
  18775. .homework {
  18776. width: 200px;
  18777. display: flex;
  18778. flex-direction: column;
  18779. flex-wrap: nowrap;
  18780. align-items: center;
  18781. cursor: pointer;
  18782. }
  18783. .homebox {
  18784. display: flex;
  18785. flex-wrap: wrap;
  18786. flex-direction: row;
  18787. justify-content: flex-start;
  18788. align-items: center;
  18789. padding: 15px 0;
  18790. }
  18791. .chooseWho {
  18792. display: flex;
  18793. width: 100%;
  18794. flex-direction: row;
  18795. flex-wrap: nowrap;
  18796. justify-content: flex-start;
  18797. padding-bottom: 10px;
  18798. }
  18799. .chooseWho > div {
  18800. cursor: pointer;
  18801. padding-bottom: 10px;
  18802. margin: 0 30px 0 0;
  18803. font-weight: 400;
  18804. color: #0e1e33;
  18805. }
  18806. .addPoint > div > img {
  18807. cursor: pointer;
  18808. margin: 0 10px;
  18809. width: 85px;
  18810. border-radius: 15px;
  18811. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  18812. }
  18813. .addPoint > div {
  18814. display: flex;
  18815. flex-direction: column;
  18816. flex-wrap: nowrap;
  18817. align-items: center;
  18818. }
  18819. .isBorder > div {
  18820. margin: 0 0 10px 0;
  18821. align-items: flex-start !important;
  18822. }
  18823. .noiframeBox {
  18824. display: flex;
  18825. flex-wrap: wrap;
  18826. }
  18827. .iframeBox iframe {
  18828. width: 100%;
  18829. height: 800px;
  18830. border: none;
  18831. margin-bottom: 20px;
  18832. border: 1px solid #ccc;
  18833. }
  18834. .upload_toolBtn {
  18835. background: #6b92c9;
  18836. color: #fff;
  18837. width: 110px;
  18838. text-align: center;
  18839. height: 35px;
  18840. line-height: 35px;
  18841. font-size: 14px;
  18842. border-radius: 5px;
  18843. cursor: pointer;
  18844. position: absolute;
  18845. right: 10px;
  18846. bottom: 0;
  18847. }
  18848. .binfo_input,
  18849. .pj {
  18850. font: inherit;
  18851. color: currentColor;
  18852. width: 100%;
  18853. margin: 0;
  18854. padding: 15px 14px;
  18855. display: block;
  18856. min-width: 0;
  18857. outline: none;
  18858. box-sizing: content-box;
  18859. background: none;
  18860. -webkit-tap-highlight-color: transparent;
  18861. border: 1px solid rgba(0, 0, 0, 0.23);
  18862. border-radius: 4px;
  18863. box-sizing: border-box;
  18864. resize: none;
  18865. }
  18866. .binfo_input:focus-visible {
  18867. border: 1px solid rgba(61, 103, 188);
  18868. }
  18869. .dialog_diy >>> .el-dialog__header,
  18870. .dialog_diy1 >>> .el-dialog__header {
  18871. background: #454545 !important;
  18872. padding: 15px 20px;
  18873. }
  18874. .dialog_diy >>> .el-dialog__title,
  18875. .dialog_diy1 >>> .el-dialog__title {
  18876. color: #fff;
  18877. }
  18878. .dialog_diy >>> .el-dialog__headerbtn,
  18879. .dialog_diy1 >>> .el-dialog__headerbtn {
  18880. top: 19px;
  18881. }
  18882. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  18883. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  18884. color: #fff;
  18885. }
  18886. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  18887. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  18888. color: #fff;
  18889. }
  18890. .dialog_diy1 >>> .el-dialog__body {
  18891. padding: 0;
  18892. }
  18893. .dialog_diy >>> .el-dialog__body,
  18894. .dialog_diy >>> .el-dialog__footer,
  18895. .dialog_diy1 >>> .el-dialog__footer {
  18896. background: #fafafa;
  18897. }
  18898. .a_addBox {
  18899. padding: 0 0 0 15px;
  18900. }
  18901. .a_add_box {
  18902. padding: 10px;
  18903. background: #fff;
  18904. margin-bottom: 10px;
  18905. border-radius: 5px;
  18906. box-shadow: 0 0 5px 0 #d5d5d5;
  18907. }
  18908. .askIndex {
  18909. background: #3681fc;
  18910. border-radius: 50%;
  18911. color: #fff;
  18912. width: 25px;
  18913. height: 25px;
  18914. min-width: 25px;
  18915. min-height: 25px;
  18916. text-align: center;
  18917. line-height: 25px;
  18918. margin-right: 5px;
  18919. }
  18920. .a_add_head {
  18921. display: flex;
  18922. align-items: flex-start;
  18923. /* justify-content: space-between; */
  18924. flex-direction: column;
  18925. /* flex-direction: row; */
  18926. margin: 10px 0 20px 0;
  18927. font-size: 18px;
  18928. width: 100%;
  18929. }
  18930. .a_add_head .a_add_head_input {
  18931. width: 300px;
  18932. }
  18933. .a_add_head .a_add_head_div {
  18934. display: flex;
  18935. align-items: center;
  18936. justify-content: space-between;
  18937. }
  18938. .a_add_body {
  18939. display: flex;
  18940. align-items: center;
  18941. }
  18942. .a_add_input {
  18943. display: flex;
  18944. align-items: center;
  18945. flex-wrap: wrap;
  18946. width: 100%;
  18947. }
  18948. .a_add_input >>> .el-radio-group,
  18949. .a_add_input >>> .el-checkbox-group {
  18950. width: 100%;
  18951. }
  18952. .a_add_input >>> .el-radio,
  18953. .a_add_input >>> .el-checkbox {
  18954. display: flex;
  18955. flex-direction: row;
  18956. flex-wrap: nowrap;
  18957. align-items: center;
  18958. padding: 15px 0;
  18959. }
  18960. .a_add_input >>> .el-radio:not(:last-child),
  18961. .a_add_input >>> .el-checkbox:not(:last-child) {
  18962. width: 100%;
  18963. border-bottom: 1px solid #efefef;
  18964. }
  18965. .redioStyle >>> .el-radio__label {
  18966. font-size: 18px;
  18967. }
  18968. .redioStyle >>> .el-radio__label > span,
  18969. .redioStyle >>> .el-checkbox__label > span {
  18970. word-break: break-all;
  18971. white-space: normal;
  18972. }
  18973. .redioStyle >>> .el-checkbox__label {
  18974. font-size: 18px;
  18975. }
  18976. .toolHeng2 {
  18977. width: 100%;
  18978. box-sizing: border-box;
  18979. }
  18980. .toolHeng {
  18981. display: flex;
  18982. flex-direction: row;
  18983. flex-wrap: wrap;
  18984. justify-content: flex-start;
  18985. align-items: center;
  18986. width: 100%;
  18987. }
  18988. .toolHeng > div {
  18989. padding-left: 20px;
  18990. }
  18991. .isWidth {
  18992. width: 20%;
  18993. }
  18994. .textTitle {
  18995. display: flex;
  18996. flex-direction: row;
  18997. flex-wrap: nowrap;
  18998. align-items: center;
  18999. width: 95%;
  19000. }
  19001. .textTitle >>> .el-form-item__label {
  19002. font-size: 22px;
  19003. color: #918f8f;
  19004. width: 100px;
  19005. }
  19006. .textTitle >>> .el-form-item__content {
  19007. width: calc(100% - 100px);
  19008. }
  19009. .textCss >>> .el-dialog {
  19010. width: 800px !important;
  19011. height: 400px;
  19012. background: #fafafa;
  19013. }
  19014. .textCss >>> .el-dialog__body {
  19015. margin: 55px 8% 0 8%;
  19016. padding: 0 !important;
  19017. }
  19018. .textCss >>> .el-dialog__footer {
  19019. padding-top: 38px;
  19020. }
  19021. .toolsCss >>> .el-dialog__body {
  19022. padding: 20px;
  19023. }
  19024. .lineCss >>> .el-dialog__body {
  19025. display: flex;
  19026. flex-direction: row;
  19027. align-items: center;
  19028. justify-content: center;
  19029. }
  19030. .newNav {
  19031. display: flex;
  19032. flex-direction: row;
  19033. align-items: baseline;
  19034. justify-content: flex-start;
  19035. }
  19036. .navText {
  19037. cursor: pointer;
  19038. white-space: nowrap;
  19039. overflow: hidden;
  19040. text-overflow: ellipsis;
  19041. width: 220px;
  19042. padding: 0 10px;
  19043. font-weight: 400;
  19044. color: #0e1e33;
  19045. }
  19046. .noVedio {
  19047. display: flex;
  19048. flex-direction: row;
  19049. justify-content: center;
  19050. align-content: center;
  19051. }
  19052. .noNavText {
  19053. cursor: pointer;
  19054. margin: 0px 0px 10px 5px;
  19055. width: 112px;
  19056. }
  19057. .listNoVedio {
  19058. margin: 0 0 0 30px;
  19059. width: 97%;
  19060. }
  19061. .video-player >>> .video-js {
  19062. height: 100%;
  19063. }
  19064. .hangVedioList {
  19065. width: 90% !important;
  19066. height: 150px !important;
  19067. margin: 20px 0 0 30px;
  19068. }
  19069. .hangVedio {
  19070. width: 100%;
  19071. height: 170px !important;
  19072. align-items: flex-start !important;
  19073. }
  19074. .hangHand {
  19075. height: 150px !important;
  19076. }
  19077. .twoChild {
  19078. width: 95%;
  19079. margin: 10px;
  19080. border-radius: 5px;
  19081. background: #f2f2f2;
  19082. display: flex;
  19083. flex-direction: column;
  19084. flex-wrap: nowrap;
  19085. justify-content: flex-start;
  19086. align-items: flex-start;
  19087. transition: all 0.5s;
  19088. overflow: hidden;
  19089. height: 0;
  19090. background: #e7f3ff;
  19091. }
  19092. .twoChild > div:nth-child(1) {
  19093. margin-top: 5px;
  19094. }
  19095. .navChild {
  19096. width: 100%;
  19097. cursor: pointer;
  19098. margin-bottom: 10px;
  19099. position: relative;
  19100. }
  19101. .navChild img {
  19102. position: absolute;
  19103. right: 11px;
  19104. width: 15px;
  19105. top: 50%;
  19106. transform: translateY(-50%);
  19107. }
  19108. .navActive {
  19109. height: auto !important;
  19110. overflow: auto !important;
  19111. padding-bottom: 10px;
  19112. }
  19113. .navTask {
  19114. display: flex;
  19115. flex-direction: row;
  19116. flex-wrap: nowrap;
  19117. align-items: center;
  19118. align-content: flex-start;
  19119. height: 40px;
  19120. justify-content: flex-start;
  19121. padding: 0 10px;
  19122. width: 100%;
  19123. box-sizing: border-box;
  19124. }
  19125. .navTaskname {
  19126. white-space: nowrap;
  19127. text-overflow: ellipsis;
  19128. overflow: hidden;
  19129. word-break: break-all;
  19130. padding-left: 5px;
  19131. }
  19132. .openTaskActive {
  19133. color: #4386e6;
  19134. }
  19135. .iframeName {
  19136. margin: 5px 0;
  19137. border-left: 4px solid #41c4a4;
  19138. padding-left: 4px;
  19139. }
  19140. .toolTitle {
  19141. margin: 0px 0px 20px;
  19142. font-size: 20px;
  19143. font-weight: 500;
  19144. border-left: 4px solid #41c4a4;
  19145. padding-left: 4px;
  19146. }
  19147. .cru_selectBox {
  19148. overflow: auto;
  19149. width: 95%;
  19150. margin: 17px auto 0;
  19151. height: calc(100% - 40px - 21px - 20px - 17px);
  19152. }
  19153. .cru_selectBox::-webkit-scrollbar,
  19154. .study_top::-webkit-scrollbar,
  19155. .textContent::-webkit-scrollbar {
  19156. /*滚动条整体样式*/
  19157. width: 6px;
  19158. /*高宽分别对应横竖滚动条的尺寸*/
  19159. height: 6px;
  19160. }
  19161. /*定义滚动条轨道 内阴影+圆角*/
  19162. .cru_selectBox::-webkit-scrollbar-track,
  19163. .study_top::-webkit-scrollbar-track,
  19164. .textContent::-webkit-scrollbar {
  19165. border-radius: 10px;
  19166. background-color: #b8bdc9;
  19167. }
  19168. /*定义滑块 内阴影+圆角*/
  19169. .cru_selectBox::-webkit-scrollbar-thumb,
  19170. .study_top::-webkit-scrollbar-thumb,
  19171. .textContent::-webkit-scrollbar-thumb {
  19172. border-radius: 10px;
  19173. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  19174. background-color: #2c5ab3;
  19175. }
  19176. .vedioBox {
  19177. border-radius: 0 0 20px 20px;
  19178. background: #fff;
  19179. overflow: auto;
  19180. }
  19181. .taskBox {
  19182. width: 98%;
  19183. /* background: #F0F4FA; */
  19184. margin: 10px auto;
  19185. padding: 0 10px;
  19186. border-radius: 4px;
  19187. box-sizing: border-box;
  19188. }
  19189. .vedioTaskBox {
  19190. width: 100%;
  19191. display: flex;
  19192. flex-direction: row;
  19193. flex-wrap: nowrap;
  19194. align-items: flex-start;
  19195. position: relative;
  19196. }
  19197. .toolBox {
  19198. padding: 0 60px 0;
  19199. display: flex;
  19200. position: relative;
  19201. }
  19202. .btnAll {
  19203. position: absolute;
  19204. right: 0;
  19205. display: flex;
  19206. flex-direction: row;
  19207. flex-wrap: nowrap;
  19208. align-items: center;
  19209. }
  19210. .btnAllNT {
  19211. position: fixed;
  19212. bottom: 100px;
  19213. right: 40px;
  19214. z-index: 999;
  19215. display: flex;
  19216. flex-direction: row;
  19217. }
  19218. .btnAllNT > img {
  19219. cursor: pointer;
  19220. width: 80px;
  19221. }
  19222. /* .vedioTimeBox {
  19223. display: flex;
  19224. flex-direction: row;
  19225. align-items: center;
  19226. flex-wrap: nowrap;
  19227. position: relative;
  19228. } */
  19229. .navBox {
  19230. background: #fff;
  19231. height: calc(100% - 40px);
  19232. overflow-y: auto;
  19233. overflow-x: hidden;
  19234. }
  19235. .tool_work_box {
  19236. width: 100%;
  19237. padding: 0 37px 0;
  19238. box-sizing: border-box;
  19239. }
  19240. .worksBox {
  19241. padding: 5px 0;
  19242. border-bottom: 1px solid #eeeeee;
  19243. }
  19244. .worksBTitle {
  19245. font-size: 20px;
  19246. padding-bottom: 15px;
  19247. border-bottom: 1px solid #eeeeee;
  19248. display: flex;
  19249. align-items: center;
  19250. }
  19251. .greenBox {
  19252. width: 5px;
  19253. height: 30px;
  19254. background: #63b6fa;
  19255. margin-right: 5px;
  19256. }
  19257. .worksDetailBox {
  19258. display: flex;
  19259. width: 100%;
  19260. flex-direction: row;
  19261. flex-wrap: wrap;
  19262. align-items: flex-end;
  19263. justify-content: flex-start;
  19264. padding: 15px 0;
  19265. }
  19266. .works {
  19267. display: flex;
  19268. flex-direction: column;
  19269. flex-wrap: nowrap;
  19270. align-items: flex-start;
  19271. justify-content: flex-start;
  19272. align-content: center;
  19273. max-width: 240px;
  19274. width: calc(100% / 3 - 10px);
  19275. height: auto;
  19276. margin-right: 10px;
  19277. margin-bottom: 10px;
  19278. overflow: hidden;
  19279. height: 140px;
  19280. box-shadow: 0 0 6px 1px #dfdada;
  19281. border-radius: 15px;
  19282. }
  19283. .workImg {
  19284. width: 100%;
  19285. /* height: calc(100% - 40px); */
  19286. height: 105px;
  19287. position: relative;
  19288. }
  19289. .workImg > img {
  19290. width: 100%;
  19291. height: 100%;
  19292. object-fit: contain;
  19293. cursor: pointer;
  19294. }
  19295. .worksName {
  19296. height: 40px;
  19297. line-height: 40px;
  19298. display: flex;
  19299. width: 100%;
  19300. flex-direction: row;
  19301. flex-wrap: nowrap;
  19302. justify-content: space-between;
  19303. align-items: center;
  19304. margin: 0 0 0 10px;
  19305. }
  19306. .worksName > div:nth-child(1) {
  19307. width: 110px;
  19308. white-space: nowrap;
  19309. overflow: hidden;
  19310. text-overflow: ellipsis;
  19311. }
  19312. .worksName > div:nth-child(2) {
  19313. color: #b7b4b5;
  19314. }
  19315. .noWorksS {
  19316. padding: 15px 0 0;
  19317. display: flex;
  19318. flex-direction: row;
  19319. flex-wrap: wrap;
  19320. align-items: center;
  19321. justify-content: flex-start;
  19322. }
  19323. .noWorksS > div {
  19324. cursor: pointer;
  19325. }
  19326. .noWorksName,
  19327. .isWorksName,
  19328. .isWorksName2 {
  19329. background: #ddebf8;
  19330. color: #000;
  19331. width: 90px;
  19332. height: 25px;
  19333. text-align: center;
  19334. line-height: 25px;
  19335. border-radius: 4px;
  19336. margin: 10px 15px 10px 0;
  19337. white-space: nowrap;
  19338. overflow: hidden;
  19339. padding: 5px;
  19340. text-overflow: ellipsis;
  19341. cursor: pointer;
  19342. border: 1px solid #ddebf8;
  19343. }
  19344. .isWorksName2 {
  19345. width: 100px;
  19346. height: 40px;
  19347. line-height: 40px;
  19348. position: relative;
  19349. }
  19350. .noWorksName.isWork {
  19351. background: #e7ebf1 !important;
  19352. border: 1px solid #cad1dc !important;
  19353. color: #acb4bf !important;
  19354. }
  19355. .isWorksName {
  19356. cursor: pointer;
  19357. background: #46a1eb !important;
  19358. width: 100px;
  19359. height: 40px;
  19360. line-height: 40px;
  19361. position: relative;
  19362. }
  19363. .isSelectName,
  19364. .noWorksName:hover {
  19365. background: #3383fa;
  19366. color: #fff;
  19367. border: 1px solid #3383fa;
  19368. }
  19369. .title {
  19370. background: #1e5cc9;
  19371. /* width: 98%; */
  19372. height: 45px;
  19373. color: #fff;
  19374. line-height: 45px;
  19375. padding-left: 20px;
  19376. box-sizing: border-box;
  19377. }
  19378. .textBox {
  19379. font-size: 20px;
  19380. width: 90%;
  19381. display: flex;
  19382. flex-direction: column;
  19383. align-items: center;
  19384. margin: 20px auto 0;
  19385. max-height: calc(100% - 75px);
  19386. overflow: auto;
  19387. }
  19388. .textContent {
  19389. font-size: 18px;
  19390. width: 95%;
  19391. max-width: 95%;
  19392. }
  19393. .answerBg {
  19394. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  19395. background-size: 100% 100%;
  19396. width: 100%;
  19397. height: 100%;
  19398. color: #fff;
  19399. text-align: center;
  19400. display: flex;
  19401. flex-direction: column;
  19402. flex-wrap: nowrap;
  19403. align-items: center;
  19404. position: relative;
  19405. justify-content: center;
  19406. }
  19407. .answerBg > div:nth-child(1) {
  19408. /* font-size: 22px;
  19409. padding: 25px 0 10px; */
  19410. }
  19411. .answerContent {
  19412. width: 215px;
  19413. max-height: 60px;
  19414. word-break: break-all;
  19415. text-align: center;
  19416. /* white-space: nowrap; */
  19417. overflow: hidden;
  19418. text-overflow: ellipsis;
  19419. /* padding: 23px 0 0; */
  19420. -webkit-line-clamp: 3;
  19421. -webkit-box-orient: vertical;
  19422. display: -webkit-box;
  19423. font-size: 15px;
  19424. cursor: pointer;
  19425. }
  19426. .elist_input_box {
  19427. display: flex;
  19428. align-items: flex-start;
  19429. flex-wrap: nowrap;
  19430. padding: 10px 0 15px 30px;
  19431. flex-direction: column;
  19432. }
  19433. .elist_input {
  19434. /* width: 40%; */
  19435. width: 100%;
  19436. margin: 20px;
  19437. }
  19438. .elist_input .elist_input_box input {
  19439. font: inherit;
  19440. color: currentColor;
  19441. width: 200px;
  19442. padding: 8px 14px;
  19443. display: block;
  19444. min-width: 0;
  19445. outline: none;
  19446. border: 1px solid rgba(0, 0, 0, 0.23);
  19447. border-radius: 4px;
  19448. box-sizing: border-box;
  19449. background: #fff;
  19450. margin: 0 20px 0 0;
  19451. }
  19452. .elist_input .elist_input_box span {
  19453. height: 36px;
  19454. line-height: 36px;
  19455. color: rgb(82, 82, 82);
  19456. }
  19457. .elist_input .elist_input_box .remove {
  19458. height: 20px;
  19459. width: 20px;
  19460. background-size: 100% 100%;
  19461. background-position: unset;
  19462. margin-left: 5px;
  19463. }
  19464. .elist_input_box >>> .el-rate {
  19465. display: flex;
  19466. height: 36px;
  19467. align-items: center;
  19468. }
  19469. .elist_input_box .elist_inptu_text {
  19470. min-height: 50px;
  19471. /* width: 500px;
  19472. max-height: 150px; */
  19473. width: 100%;
  19474. line-height: 50px;
  19475. color: rgb(82, 82, 82);
  19476. overflow: auto;
  19477. text-indent: 5px;
  19478. background: #f7f6f9;
  19479. border-radius: 10px;
  19480. }
  19481. .elist_input_box .elist_inptu_text input {
  19482. width: 500px;
  19483. }
  19484. .elist_input_box >>> .el-rate__icon {
  19485. font-size: 24px;
  19486. }
  19487. .isClick {
  19488. background: #4d9def;
  19489. }
  19490. /*定义滚动条轨道 内阴影+圆角*/
  19491. .bzTypeBox::-webkit-scrollbar {
  19492. /*滚动条整体样式*/
  19493. width: 6px;
  19494. /*高宽分别对应横竖滚动条的尺寸*/
  19495. height: 6px;
  19496. }
  19497. /*定义滚动条轨道 内阴影+圆角*/
  19498. .bzTypeBox::-webkit-scrollbar-track {
  19499. border-radius: 10px;
  19500. background-color: rgba(0, 0, 0, 0.1);
  19501. }
  19502. /*定义滑块 内阴影+圆角*/
  19503. .bzTypeBox::-webkit-scrollbar-thumb {
  19504. border-radius: 10px;
  19505. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  19506. background-color: rgba(0, 0, 0, 0.1);
  19507. }
  19508. .choiceBox {
  19509. display: flex;
  19510. margin: 20px 0;
  19511. width: 100%;
  19512. }
  19513. .bzTypeBox {
  19514. display: flex;
  19515. width: 100%;
  19516. overflow: auto;
  19517. white-space: nowrap;
  19518. }
  19519. .bzChild {
  19520. cursor: pointer;
  19521. box-sizing: border-box;
  19522. padding-bottom: 10px;
  19523. font-weight: bold;
  19524. min-width: fit-content;
  19525. }
  19526. .bzChild.active {
  19527. color: #3e88f4;
  19528. border-bottom: 2px solid #2f80f3;
  19529. }
  19530. .bzChild + .bzChild {
  19531. margin-left: 25px;
  19532. }
  19533. .bzBox {
  19534. display: flex;
  19535. flex-direction: row;
  19536. align-items: center;
  19537. }
  19538. .bzBox .yCss {
  19539. width: 14px;
  19540. height: 14px;
  19541. background: #3681fc;
  19542. margin: 0 16px 0 7px;
  19543. border-radius: 50%;
  19544. }
  19545. .bzBox > div:nth-child(2) {
  19546. font-size: 18px;
  19547. font-weight: bold;
  19548. color: #0e1e33;
  19549. }
  19550. .navTitile {
  19551. padding: 0 0px 0 15px;
  19552. font-size: 16px;
  19553. font-weight: bold;
  19554. color: #0e1e33;
  19555. height: 40px;
  19556. line-height: 40px;
  19557. }
  19558. .isTypeOne {
  19559. width: 240px;
  19560. height: 170px;
  19561. /* border: 1px solid #f8f8f8; */
  19562. border-radius: 10px;
  19563. box-shadow: 0 0 6px 1px #dfdada;
  19564. }
  19565. .e_add_top {
  19566. display: flex;
  19567. justify-content: space-between;
  19568. padding: 20px 20px 0 20px;
  19569. border-radius: 3px;
  19570. background: #fff;
  19571. }
  19572. .e_add_title2 {
  19573. display: flex;
  19574. align-items: center;
  19575. }
  19576. .e_add_title2 span {
  19577. width: 40px;
  19578. }
  19579. .e_add_title {
  19580. display: flex;
  19581. align-items: center;
  19582. color: #b8b8b8;
  19583. font-size: 18px;
  19584. position: relative;
  19585. height: 40px;
  19586. }
  19587. .e_add_title span {
  19588. margin-right: 10px;
  19589. }
  19590. .e_add_title .el_input {
  19591. width: 300px;
  19592. }
  19593. .e_add_title >>> .el-input__inner {
  19594. width: 400px;
  19595. }
  19596. .e_add_btn {
  19597. }
  19598. .e_add_content {
  19599. display: flex;
  19600. width: 100%;
  19601. max-width: 650px;
  19602. height: 550px;
  19603. }
  19604. .e_add_list {
  19605. background: #fff;
  19606. height: 500px;
  19607. width: 210px;
  19608. position: relative;
  19609. margin: 15px 5px 0 0;
  19610. flex-shrink: 0;
  19611. display: flex;
  19612. flex-direction: column;
  19613. }
  19614. .e_add_list_title {
  19615. font-size: 20px;
  19616. width: 100%;
  19617. box-sizing: border-box;
  19618. padding: 15px 40px;
  19619. text-align: center;
  19620. border-bottom: 1px solid #eaeaea;
  19621. position: relative;
  19622. display: flex;
  19623. align-items: center;
  19624. justify-content: center;
  19625. height: 57px;
  19626. background: #f6f6f6;
  19627. }
  19628. .e_add_list_title span {
  19629. overflow: hidden;
  19630. white-space: nowrap;
  19631. text-overflow: ellipsis;
  19632. }
  19633. .e_add_list_title img {
  19634. position: absolute;
  19635. right: 15px;
  19636. width: 25px;
  19637. cursor: pointer;
  19638. top: 50%;
  19639. transform: translateY(-50%);
  19640. }
  19641. .e_add_list_body {
  19642. height: calc(100% - 187px);
  19643. overflow: auto;
  19644. }
  19645. .e_add_list_child {
  19646. width: 100%;
  19647. display: flex;
  19648. align-items: center;
  19649. justify-content: center;
  19650. position: relative;
  19651. box-sizing: border-box;
  19652. padding: 15px 40px;
  19653. text-align: center;
  19654. }
  19655. .e_add_list_child span {
  19656. overflow: hidden;
  19657. white-space: nowrap;
  19658. text-overflow: ellipsis;
  19659. cursor: pointer;
  19660. }
  19661. .e_add_list_child img {
  19662. position: absolute;
  19663. right: 10px;
  19664. width: 21px;
  19665. cursor: pointer;
  19666. top: 50%;
  19667. transform: translateY(-50%);
  19668. }
  19669. .e_add_list_child + .e_add_list_child {
  19670. border-top: 1px solid #eaeaea;
  19671. }
  19672. .e_add_list_child .active {
  19673. color: #409eff;
  19674. }
  19675. .e_add_list_btn {
  19676. position: absolute;
  19677. bottom: 0;
  19678. height: 50px;
  19679. background: rgb(120, 120, 254);
  19680. width: 100%;
  19681. color: #fff;
  19682. font-size: 16px;
  19683. text-align: center;
  19684. line-height: 50px;
  19685. cursor: pointer;
  19686. }
  19687. .e_add_list_detail {
  19688. position: absolute;
  19689. bottom: 0;
  19690. height: 130px;
  19691. background: rgb(120, 120, 254);
  19692. width: 100%;
  19693. color: #fff;
  19694. font-size: 16px;
  19695. display: flex;
  19696. align-items: center;
  19697. justify-content: center;
  19698. }
  19699. .e_add_list_detail textarea {
  19700. height: 90%;
  19701. width: 95%;
  19702. border: none;
  19703. resize: none;
  19704. outline: none;
  19705. padding: 5px;
  19706. box-sizing: border-box;
  19707. }
  19708. .e_add_list_pbox {
  19709. width: 100%;
  19710. max-width: 650px;
  19711. /* height: 600px; */
  19712. }
  19713. .e_add_list_pbox_title {
  19714. height: 50px;
  19715. background: #fff;
  19716. display: flex;
  19717. align-items: center;
  19718. width: 100%;
  19719. box-sizing: border-box;
  19720. padding: 0 20px;
  19721. }
  19722. .type_title {
  19723. font-size: 18px;
  19724. font-weight: 700;
  19725. }
  19726. .type_content {
  19727. font-size: 16px;
  19728. margin-left: 30px;
  19729. }
  19730. .type_content span + span {
  19731. margin-left: 20px;
  19732. }
  19733. .type_content span {
  19734. cursor: pointer;
  19735. padding-bottom: 5px;
  19736. box-sizing: border-box;
  19737. }
  19738. .type_content .active {
  19739. color: #409eff;
  19740. border-bottom: 2px solid #409eff;
  19741. }
  19742. .e_add_list_pbox_content {
  19743. height: calc(100% - 50px);
  19744. display: flex;
  19745. align-items: center;
  19746. width: 100%;
  19747. background: #fff;
  19748. }
  19749. .evaCss {
  19750. display: flex;
  19751. flex-direction: row;
  19752. flex-wrap: nowrap;
  19753. align-items: flex-start;
  19754. }
  19755. .cru_line {
  19756. position: absolute;
  19757. bottom: 0px;
  19758. transition: all 0.5s;
  19759. left: 0px;
  19760. width: 125px;
  19761. margin-left: -25px;
  19762. }
  19763. .isNoMessage {
  19764. width: 20%;
  19765. margin: 25% auto 0;
  19766. }
  19767. .isNoMessage > img {
  19768. width: 100%;
  19769. height: 100%;
  19770. }
  19771. .fullStyle >>> .el-dialog__body {
  19772. height: 100% !important;
  19773. }
  19774. .fullStyle >>> .el-dialog,
  19775. .fullStyle {
  19776. width: 100% !important;
  19777. max-width: 100% !important;
  19778. height: 100% !important;
  19779. margin: 0 !important;
  19780. }
  19781. .full_diy >>> .el-dialog {
  19782. margin: 0 !important;
  19783. height: 100%;
  19784. padding: 4px;
  19785. }
  19786. .full_diy >>> .el-dialog__body {
  19787. height: calc(100% - 100px);
  19788. }
  19789. .full_diy2 >>> .el-dialog__body {
  19790. height: calc(100% - 50px);
  19791. padding: 0;
  19792. }
  19793. .switchCss {
  19794. /* width: 100%; */
  19795. display: flex;
  19796. flex-direction: row;
  19797. flex-wrap: nowrap;
  19798. align-items: center;
  19799. /* justify-content: center; */
  19800. }
  19801. .isClickNav {
  19802. /* color: #499eef; */
  19803. color: #000;
  19804. }
  19805. .commentImg {
  19806. width: 25px;
  19807. height: 25px;
  19808. cursor: pointer;
  19809. }
  19810. .commentImg > img {
  19811. width: 100%;
  19812. height: 100%;
  19813. }
  19814. .comment {
  19815. background: #f9f9f9;
  19816. border-radius: 0 0 15px 15px;
  19817. display: flex;
  19818. flex-direction: row;
  19819. flex-wrap: nowrap;
  19820. align-items: center;
  19821. justify-content: flex-end;
  19822. height: 35px;
  19823. }
  19824. .commentList {
  19825. display: flex;
  19826. flex-direction: row;
  19827. flex-wrap: nowrap;
  19828. align-items: center;
  19829. justify-content: center;
  19830. align-content: center;
  19831. /* margin-left: 15px; */
  19832. /* margin-left: 8px; */
  19833. }
  19834. .scoreImg {
  19835. width: 17px;
  19836. height: 17px;
  19837. }
  19838. .studentDetail {
  19839. display: flex;
  19840. flex-direction: row;
  19841. flex-wrap: nowrap;
  19842. /* align-items: center; */
  19843. align-items: flex-start;
  19844. }
  19845. .tx {
  19846. width: 50px;
  19847. }
  19848. .tx > img {
  19849. width: 100%;
  19850. height: 100%;
  19851. }
  19852. .nameAndTime {
  19853. display: flex;
  19854. flex-direction: column;
  19855. flex-wrap: nowrap;
  19856. align-items: flex-start;
  19857. margin-left: 10px;
  19858. }
  19859. .worksAnswer {
  19860. color: #4078dd;
  19861. margin: 10px 0;
  19862. font-size: 16px;
  19863. position: relative;
  19864. }
  19865. .worksAnswer > img {
  19866. width: 500px;
  19867. height: 300px;
  19868. object-fit: contain;
  19869. margin: 0 auto;
  19870. display: block;
  19871. }
  19872. .commentTop {
  19873. border-bottom: 1px solid #eaeaea;
  19874. padding-bottom: 10px;
  19875. }
  19876. .commentBox {
  19877. padding-top: 15px;
  19878. }
  19879. .pl {
  19880. font-size: 18px;
  19881. }
  19882. .plPerson {
  19883. width: 100%;
  19884. }
  19885. .plName {
  19886. display: flex;
  19887. flex-direction: row;
  19888. flex-wrap: nowrap;
  19889. align-items: baseline;
  19890. color: #78787a;
  19891. width: 100%;
  19892. }
  19893. .deleteComment {
  19894. cursor: pointer;
  19895. margin-left: auto;
  19896. color: #237ade;
  19897. }
  19898. .plContent {
  19899. margin-top: 5px;
  19900. }
  19901. .evalCss {
  19902. background: #fff;
  19903. font-size: 18px;
  19904. }
  19905. .nav {
  19906. color: #9d9d9d;
  19907. padding: 5px 0 15px 20px;
  19908. }
  19909. .middleBox {
  19910. padding: 5px 0 15px 20px;
  19911. }
  19912. .pfBox {
  19913. padding-bottom: 30px;
  19914. }
  19915. .nameAndrate {
  19916. display: flex;
  19917. flex-direction: row;
  19918. flex-wrap: nowrap;
  19919. align-items: center;
  19920. padding-bottom: 10px;
  19921. height: 30px;
  19922. line-height: 30px;
  19923. }
  19924. .nameAndrate > div {
  19925. margin-left: 10px;
  19926. color: #000;
  19927. height: 30px;
  19928. }
  19929. .nameAndrate >>> .el-rate__icon {
  19930. font-size: 28px !important;
  19931. }
  19932. .pfBox > div:nth-child(2) {
  19933. background: #f7f6f9;
  19934. width: 400px;
  19935. min-height: 45px;
  19936. border-radius: 10px;
  19937. font-size: 16px;
  19938. display: flex;
  19939. flex-wrap: wrap;
  19940. align-items: center;
  19941. padding: 10px 20px;
  19942. box-sizing: border-box;
  19943. color: #000;
  19944. }
  19945. .bz {
  19946. display: flex;
  19947. flex-direction: row;
  19948. flex-wrap: nowrap;
  19949. align-items: flex-start;
  19950. }
  19951. .bz > div {
  19952. padding: 0 10px;
  19953. }
  19954. .select_box2_title {
  19955. background: #fff;
  19956. border-radius: 5px;
  19957. padding: 15px 10px;
  19958. box-sizing: border-box;
  19959. margin-bottom: 10px;
  19960. display: flex;
  19961. flex-direction: row;
  19962. flex-wrap: nowrap;
  19963. align-items: center;
  19964. }
  19965. .select_box2_title > div:nth-child(2) {
  19966. margin-left: 10px;
  19967. color: #c4c4c4;
  19968. }
  19969. .select_box2_box {
  19970. display: flex;
  19971. height: 500px;
  19972. }
  19973. .select_box2_img {
  19974. width: calc(100% - 310px);
  19975. height: 100%;
  19976. overflow: auto;
  19977. background: #fff;
  19978. border-radius: 5px;
  19979. }
  19980. .select_box2_img img {
  19981. width: 100%;
  19982. }
  19983. .select_box2_answer {
  19984. background: #fff;
  19985. margin-left: 10px;
  19986. border-radius: 5px;
  19987. width: 300px;
  19988. overflow: auto;
  19989. height: 90%;
  19990. display: flex;
  19991. flex-direction: column;
  19992. align-items: flex-start;
  19993. padding-top: 10px;
  19994. box-sizing: border-box;
  19995. position: relative;
  19996. }
  19997. .select_answer_title {
  19998. padding: 0 0 15px 20px;
  19999. color: #c4c4c4;
  20000. }
  20001. .select_box2_answer_box {
  20002. margin: 0 0 10px 20px;
  20003. width: 85%;
  20004. display: flex;
  20005. flex-direction: row;
  20006. flex-wrap: nowrap;
  20007. align-items: center;
  20008. }
  20009. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  20010. color: #000;
  20011. }
  20012. .upAnswerCss {
  20013. position: absolute;
  20014. bottom: 15px;
  20015. right: 15px;
  20016. }
  20017. .upAnswerCss >>> .el-button {
  20018. width: 95px;
  20019. height: 35px;
  20020. line-height: 35px;
  20021. padding: 0;
  20022. }
  20023. .rightWidthCss {
  20024. width: 60%;
  20025. display: flex;
  20026. flex-direction: row;
  20027. align-items: flex-start;
  20028. }
  20029. .rightAnswer {
  20030. display: flex;
  20031. flex-direction: row;
  20032. flex-wrap: nowrap;
  20033. align-items: center;
  20034. color: red;
  20035. margin-bottom: 31px;
  20036. }
  20037. .rightAnswerCss {
  20038. display: flex;
  20039. flex-direction: column;
  20040. flex-wrap: nowrap;
  20041. padding-top: 60px;
  20042. }
  20043. .blueCss {
  20044. color: #767de1;
  20045. margin-left: 10px;
  20046. }
  20047. .redCss {
  20048. color: red;
  20049. }
  20050. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  20051. color: rgb(0 123 255) !important;
  20052. }
  20053. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  20054. color: rgb(0 123 255) !important;
  20055. }
  20056. .zuoyeYulan {
  20057. padding-top: 0;
  20058. font-size: 18px;
  20059. display: flex;
  20060. align-items: flex-end;
  20061. }
  20062. .buttonA {
  20063. margin-left: 10px;
  20064. padding: 0;
  20065. }
  20066. .displayBox {
  20067. margin-bottom: 10px;
  20068. display: block;
  20069. border-bottom: 3px solid #eee;
  20070. display: flex;
  20071. align-items: center;
  20072. }
  20073. .easy_comment {
  20074. width: calc(100% - 90px);
  20075. margin-left: 10px;
  20076. display: flex;
  20077. flex-wrap: wrap;
  20078. }
  20079. .easy_comment > div {
  20080. border: 1px solid #4a4a4a;
  20081. color: #666;
  20082. border-radius: 15px;
  20083. padding: 5px 10px;
  20084. font-size: 16px;
  20085. margin-bottom: 10px;
  20086. margin-right: 5px;
  20087. cursor: pointer;
  20088. }
  20089. .easy_comment div:hover {
  20090. border: 1px solid #f7ba2a;
  20091. color: #c69217;
  20092. }
  20093. .xuan_right_box {
  20094. padding: 10px;
  20095. background: rgb(247, 247, 247);
  20096. margin: 0 12px;
  20097. border-radius: 5px;
  20098. }
  20099. .tool_right_box {
  20100. display: flex;
  20101. align-items: center;
  20102. }
  20103. .tool_right_box + .tool_right_box {
  20104. margin-top: 10px;
  20105. }
  20106. .right_box_xuan {
  20107. background: rgb(0 123 255);
  20108. color: #fff;
  20109. border-radius: 5px;
  20110. padding: 5px;
  20111. margin-left: 10px;
  20112. min-width: 95px;
  20113. }
  20114. .pButton:hover {
  20115. opacity: 1 !important;
  20116. }
  20117. .pButton {
  20118. position: fixed;
  20119. /* right: 5%; */
  20120. /* bottom: 5%; */
  20121. color: #fff;
  20122. /* width: 50px;
  20123. height: 50px; */
  20124. /* border-radius: 50%; */
  20125. text-align: center;
  20126. /* line-height: 50px; */
  20127. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  20128. cursor: pointer;
  20129. z-index: 999;
  20130. right: 20px;
  20131. top: 110px;
  20132. width: 50px;
  20133. height: 50px;
  20134. background: #fff;
  20135. display: flex;
  20136. align-items: center;
  20137. justify-content: center;
  20138. box-shadow: 0px 0 8px 2px #c5c5c5;
  20139. border-radius: 5px;
  20140. }
  20141. .pzClass {
  20142. width: calc(100% - 340px);
  20143. }
  20144. .newDialogCss {
  20145. /* position: fixed;
  20146. right: 5%;
  20147. top: 50%;
  20148. width: 340px;
  20149. transform: translateY(-50%);
  20150. height: 60%;
  20151. box-shadow: 0px 0 8px 0px #555555;
  20152. border-radius: 15px;
  20153. z-index: 999; */
  20154. position: fixed;
  20155. right: 20px;
  20156. top: 101px;
  20157. width: 330px;
  20158. height: calc(100% - 80px);
  20159. z-index: 999;
  20160. background: #fff;
  20161. border-top-right-radius: 0px;
  20162. border-bottom-right-radius: 0px;
  20163. overflow: hidden;
  20164. }
  20165. .pzTop {
  20166. color: #fff;
  20167. background: #000;
  20168. display: flex;
  20169. flex-direction: row;
  20170. flex-wrap: nowrap;
  20171. align-items: center;
  20172. justify-content: space-between;
  20173. height: 40px;
  20174. border-radius: 15px 15px 0 0;
  20175. user-select: none;
  20176. }
  20177. .pzTop2 .checkbox {
  20178. display: flex;
  20179. align-items: center;
  20180. padding: 5px 30px;
  20181. flex: 0 0 auto;
  20182. font-weight: bold;
  20183. border-bottom: 1px solid #eee;
  20184. justify-content: space-between;
  20185. }
  20186. .pzTop2 .check {
  20187. text-align: center;
  20188. cursor: pointer;
  20189. box-sizing: border-box;
  20190. display: flex;
  20191. }
  20192. .pzTop2 img {
  20193. width: 25px;
  20194. cursor: pointer;
  20195. }
  20196. .pzTop > div:nth-child(1) {
  20197. padding-left: 10px;
  20198. }
  20199. .pzTop > div:nth-child(2) {
  20200. width: 15px;
  20201. height: 15px;
  20202. padding-right: 10px;
  20203. cursor: pointer;
  20204. }
  20205. .pzTop > div:nth-child(2) > img {
  20206. width: 100%;
  20207. height: 100%;
  20208. }
  20209. .pzBox,
  20210. .noPzBox {
  20211. height: calc(100% - 60px);
  20212. /* background: #ededed; */
  20213. background: #fff;
  20214. /* border-radius: 0 0 15px 15px; */
  20215. }
  20216. .noPzBox {
  20217. display: flex;
  20218. flex-direction: column;
  20219. flex-wrap: nowrap;
  20220. justify-content: center;
  20221. align-items: center;
  20222. }
  20223. .pzList {
  20224. background: #f7f7f7;
  20225. width: 90%;
  20226. margin: 0 auto 15px;
  20227. border-radius: 5px;
  20228. }
  20229. .pzNavTop {
  20230. display: flex;
  20231. flex-direction: row;
  20232. flex-wrap: nowrap;
  20233. padding: 10px 10px 0 10px;
  20234. align-items: center;
  20235. }
  20236. .pzDelete {
  20237. cursor: pointer;
  20238. margin-left: auto;
  20239. font-size: 14px;
  20240. color: #afafaf;
  20241. }
  20242. .pzNavTop > div:nth-child(1) {
  20243. background: #3760af;
  20244. width: 35px;
  20245. height: 35px;
  20246. color: #fff;
  20247. text-align: center;
  20248. line-height: 35px;
  20249. border-radius: 50%;
  20250. font-size: 14px;
  20251. }
  20252. .pzNavTop > div:nth-child(2) {
  20253. font-size: 18px;
  20254. color: #959595;
  20255. margin-left: 5px;
  20256. }
  20257. .pzContent {
  20258. padding: 10px;
  20259. word-break: break-word;
  20260. }
  20261. .pzContent audio {
  20262. width: 100%;
  20263. }
  20264. .pzContent audio::-webkit-media-controls-panel {
  20265. background: #fff;
  20266. }
  20267. .pzContent >>> img {
  20268. max-width: 100%;
  20269. }
  20270. .pzListBox {
  20271. padding-top: 15px;
  20272. height: calc(100% - 100px);
  20273. overflow: auto;
  20274. }
  20275. .addPzButton {
  20276. position: relative;
  20277. margin-top: 3px;
  20278. width: 100%;
  20279. }
  20280. .addPzButton .img1 {
  20281. position: absolute;
  20282. top: 50%;
  20283. right: 25px;
  20284. transform: translateY(-50%);
  20285. height: 100%;
  20286. display: flex;
  20287. align-items: center;
  20288. }
  20289. .addPzButton .img1 div {
  20290. display: flex;
  20291. }
  20292. .addPzButton .img1 div img {
  20293. width: 28px;
  20294. margin-left: 10px;
  20295. cursor: pointer;
  20296. }
  20297. .addPzButton .img1 div span {
  20298. font-size: 14px;
  20299. margin: 4px 0 0 3px;
  20300. color: #afafaf;
  20301. }
  20302. .addPz {
  20303. background: #4b79ce;
  20304. width: 100px;
  20305. color: #fff;
  20306. font-size: 12px;
  20307. height: 30px;
  20308. margin: 0 auto;
  20309. text-align: center;
  20310. line-height: 30px;
  20311. border-radius: 10px;
  20312. cursor: pointer;
  20313. }
  20314. .addDialogCss {
  20315. position: fixed;
  20316. width: 600px;
  20317. height: 70%;
  20318. min-height: 450px;
  20319. box-shadow: 0px 0 8px 0px #555555;
  20320. border-radius: 15px;
  20321. z-index: 999;
  20322. left: 50%;
  20323. top: 50%;
  20324. margin:-18% 0 0 -300px;
  20325. }
  20326. .teacherPz {
  20327. display: flex;
  20328. flex-direction: row;
  20329. align-items: center;
  20330. flex-wrap: nowrap;
  20331. }
  20332. .teacherPzImg {
  20333. width: 30px;
  20334. height: 30px;
  20335. }
  20336. .teacherPzImg > img {
  20337. width: 100%;
  20338. height: 100%;
  20339. }
  20340. .addPzBox {
  20341. height: calc(100% - 40px);
  20342. background: #ededed;
  20343. }
  20344. .pzAudioClass {
  20345. margin: 15px 14px;
  20346. background: #fff;
  20347. height: 100%;
  20348. display: flex;
  20349. justify-content: center;
  20350. align-items: center;
  20351. }
  20352. .pzConText {
  20353. width: 95%;
  20354. height: 100%;
  20355. margin: 10px auto 0;
  20356. border: none;
  20357. background: #fff;
  20358. border-radius: 0px;
  20359. }
  20360. .pzConText >>> .text {
  20361. height: calc(100% - 82px);
  20362. }
  20363. .addTextCss {
  20364. background: #4b79ce;
  20365. width: 80px;
  20366. height: 30px;
  20367. text-align: center;
  20368. color: #fff;
  20369. line-height: 30px;
  20370. border-radius: 10px;
  20371. margin: 10px auto 0;
  20372. cursor: pointer;
  20373. }
  20374. .pzConText:focus-visible {
  20375. border: none !important;
  20376. }
  20377. .maxWidth {
  20378. width: 1000px;
  20379. }
  20380. .noPz {
  20381. width: 150px;
  20382. margin: 0 auto 20%;
  20383. }
  20384. .noPz > img {
  20385. width: 100%;
  20386. height: 100%;
  20387. }
  20388. .pzList .time {
  20389. text-align: right;
  20390. box-sizing: border-box;
  20391. padding: 0 10px 10px 0px;
  20392. color: #949494;
  20393. font-size: 14px;
  20394. }
  20395. /* table 样式 */
  20396. .addPzCheck {
  20397. display: flex;
  20398. flex-direction: row;
  20399. flex-wrap: nowrap;
  20400. padding: 10px 15px 0;
  20401. }
  20402. .addPzCheck span {
  20403. cursor: pointer;
  20404. padding-bottom: 5px;
  20405. font-weight: bold;
  20406. }
  20407. .addPzCheck span + span {
  20408. margin-left: 10px;
  20409. }
  20410. .addPzCheck .isChooseActive {
  20411. color: #3e88f4;
  20412. border-bottom: 2px solid #2f80f3;
  20413. }
  20414. /* code 样式 */
  20415. .scoreBox,
  20416. .scoreDetailBox {
  20417. display: flex;
  20418. align-items: center;
  20419. justify-content: flex-start;
  20420. margin-top: 20px;
  20421. font-size: 18px;
  20422. width: 100%;
  20423. }
  20424. .scoreBox .t,
  20425. .scoreDetailBox .t {
  20426. margin-right: 10px;
  20427. width: 100px;
  20428. text-align: right;
  20429. }
  20430. .scoreDetailBox {
  20431. align-items: flex-start;
  20432. }
  20433. .scoreDetailBox >>> .el-textarea {
  20434. width: calc(100% - 200px);
  20435. }
  20436. .scoreBox >>> .el-input {
  20437. width: 130px;
  20438. font-size: 38px;
  20439. }
  20440. .scoreBox >>> .el-input__inner {
  20441. height: 60px;
  20442. }
  20443. .answerScore {
  20444. position: absolute;
  20445. top: 10px;
  20446. right: 10px;
  20447. background: #0000008f;
  20448. border-radius: 5px;
  20449. padding: 3px 5px;
  20450. font-size: 14px;
  20451. color: #fff;
  20452. cursor: pointer;
  20453. }
  20454. .open_box .switch_box {
  20455. width: 100%;
  20456. margin: 0 auto;
  20457. display: flex;
  20458. justify-content: space-between;
  20459. }
  20460. .open_box .switch_box + .switch_box {
  20461. margin-top: 10px;
  20462. }
  20463. .deleteImg {
  20464. width: 25px !important;
  20465. height: 25px !important;
  20466. cursor: pointer;
  20467. position: absolute;
  20468. top: 10px;
  20469. right: 10px;
  20470. }
  20471. .deleteImg2 {
  20472. width: 15px !important;
  20473. height: 15px !important;
  20474. top: 5px;
  20475. right: 5px;
  20476. }
  20477. .rightW {
  20478. right: 40px;
  20479. }
  20480. .drawPBox {
  20481. display: flex;
  20482. flex-direction: column;
  20483. position: relative;
  20484. }
  20485. .drawPBox span {
  20486. font-size: 18px;
  20487. color: #606266;
  20488. padding-bottom: 10px;
  20489. margin: 10px 0;
  20490. border-bottom: 1px solid #eaeaea;
  20491. }
  20492. .drawPBox img {
  20493. width: 500px;
  20494. height: 300px;
  20495. object-fit: contain;
  20496. cursor: pointer;
  20497. margin: 0 auto;
  20498. }
  20499. .sentenBox {
  20500. background: #fff;
  20501. height: 450px;
  20502. overflow: auto;
  20503. background-image: url("../../assets/icon/conSentences/stuBg.png");
  20504. background-position: 102%;
  20505. background-repeat: no-repeat;
  20506. background-size: 60%;
  20507. }
  20508. .addSen {
  20509. background: #409efe;
  20510. width: 90px;
  20511. color: #fff;
  20512. height: 35px;
  20513. text-align: center;
  20514. line-height: 35px;
  20515. border-radius: 5px;
  20516. float: right;
  20517. margin: 10px 20px 0 0;
  20518. cursor: pointer;
  20519. }
  20520. .sentenTop {
  20521. display: flex;
  20522. flex-direction: row;
  20523. flex-wrap: nowrap;
  20524. align-items: center;
  20525. padding: 55px 0 0 20px;
  20526. box-sizing: border-box;
  20527. }
  20528. .sentenTop > div:nth-child(2) {
  20529. width: 300px;
  20530. margin: 0 15px;
  20531. }
  20532. .sentenTop > div:nth-child(3) {
  20533. background: #409efe;
  20534. color: #fff;
  20535. width: 65px;
  20536. height: 35px;
  20537. text-align: center;
  20538. line-height: 35px;
  20539. border-radius: 5px;
  20540. cursor: pointer;
  20541. }
  20542. .cardList,
  20543. .cardList1 {
  20544. padding: 10px 0 10px 0;
  20545. display: flex;
  20546. flex-direction: row;
  20547. flex-wrap: wrap;
  20548. align-items: center;
  20549. box-sizing: border-box;
  20550. border-bottom: 1px solid #f4f4f4;
  20551. width: 98%;
  20552. margin: 0 auto;
  20553. min-width: 60%;
  20554. max-width: 85%;
  20555. }
  20556. .cardList1 {
  20557. padding: 10px 0 10px 10px !important;
  20558. margin: 0 !important;
  20559. }
  20560. .cardBox {
  20561. display: flex;
  20562. flex-direction: row;
  20563. flex-wrap: wrap;
  20564. align-items: center;
  20565. align-content: center;
  20566. }
  20567. .cardBox > div {
  20568. margin-bottom: 10px;
  20569. }
  20570. .isCard,
  20571. .isChooseCard,
  20572. .noCard,
  20573. .isCard1 {
  20574. width: 130px;
  20575. height: 60px;
  20576. text-align: center;
  20577. line-height: 60px;
  20578. font-size: 20px;
  20579. cursor: pointer;
  20580. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  20581. background-size: cover;
  20582. transition: all 2s;
  20583. margin-right: 20px;
  20584. }
  20585. .isCard > div,
  20586. .noCard > div,
  20587. .isCard1 > div {
  20588. white-space: nowrap;
  20589. overflow: hidden;
  20590. text-overflow: ellipsis;
  20591. width: 75%;
  20592. margin: 0 auto;
  20593. }
  20594. .noCard {
  20595. background-image: none;
  20596. }
  20597. .isCard1 {
  20598. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  20599. }
  20600. .isChooseCard {
  20601. background-image: none;
  20602. border: 1px dashed #b9b9b9;
  20603. border-radius: 10px;
  20604. }
  20605. .card {
  20606. width: 130px;
  20607. height: 60px;
  20608. }
  20609. .card > img {
  20610. width: 100%;
  20611. height: 100%;
  20612. }
  20613. .rightCardBox {
  20614. margin: 10px 0 0 10px;
  20615. }
  20616. .rightCardBox > div:nth-child(1) {
  20617. margin-bottom: 10px;
  20618. }
  20619. .cardCss {
  20620. display: flex;
  20621. flex-direction: column;
  20622. flex-wrap: nowrap;
  20623. align-items: center;
  20624. border-bottom: 3px solid #b4c3d3;
  20625. padding: 0 0 5px 0;
  20626. margin-right: 10px;
  20627. }
  20628. .cardCss > div:nth-child(2) {
  20629. background: #5b7b9d;
  20630. color: #fff;
  20631. width: 20px;
  20632. height: 20px;
  20633. border-radius: 50%;
  20634. text-align: center;
  20635. line-height: 20px;
  20636. }
  20637. .isWrong {
  20638. display: flex;
  20639. flex-direction: row;
  20640. flex-wrap: nowrap;
  20641. align-content: center;
  20642. align-items: center;
  20643. }
  20644. .answerRight {
  20645. width: 25%;
  20646. }
  20647. .isTj {
  20648. display: flex;
  20649. flex-direction: row;
  20650. flex-wrap: nowrap;
  20651. align-items: center;
  20652. }
  20653. .isTj > div:nth-child(2) {
  20654. color: #727070;
  20655. margin-left: 10px;
  20656. }
  20657. .isTjImg {
  20658. width: 30px;
  20659. height: 30px;
  20660. }
  20661. .isTjImg > img {
  20662. width: 100%;
  20663. height: 100%;
  20664. }
  20665. .cardAnswerBox {
  20666. font-size: 18px;
  20667. width: 97%;
  20668. border: 5px;
  20669. padding: 0;
  20670. border-radius: 5px;
  20671. margin: 10px auto;
  20672. word-break: break-word;
  20673. }
  20674. .w_name {
  20675. margin-bottom: 10px;
  20676. }
  20677. .w_name span {
  20678. font-size: 16px;
  20679. }
  20680. .w_teachert {
  20681. width: 50px !important;
  20682. position: absolute;
  20683. height: auto !important;
  20684. z-index: 10;
  20685. right: 25px;
  20686. top: -25px;
  20687. }
  20688. .group_workBox {
  20689. }
  20690. .group_workBox + .group_workBox {
  20691. margin-top: 20px;
  20692. }
  20693. .group_box {
  20694. padding-bottom: 20px;
  20695. border-bottom: 2px solid #f0f0f0;
  20696. }
  20697. .group_title {
  20698. display: flex;
  20699. align-items: center;
  20700. justify-content: space-between;
  20701. }
  20702. .group_name {
  20703. background-image: url(../../assets/icon/groupN.png);
  20704. width: 220px;
  20705. background-size: 100% 100%;
  20706. height: 67px;
  20707. padding: 0 20px 0 43px;
  20708. box-sizing: border-box;
  20709. line-height: 63px;
  20710. color: #fff;
  20711. overflow: hidden;
  20712. white-space: nowrap;
  20713. text-overflow: ellipsis;
  20714. }
  20715. .group_work {
  20716. width: 100%;
  20717. padding: 0 10px;
  20718. box-sizing: border-box;
  20719. display: flex;
  20720. flex-wrap: wrap;
  20721. }
  20722. .g_d_box {
  20723. display: flex;
  20724. flex-flow: wrap;
  20725. justify-content: space-around;
  20726. }
  20727. .g_d_box .isChair {
  20728. background-image: url(../../assets/avatar.png) !important;
  20729. }
  20730. .g_d_group {
  20731. width: 500px;
  20732. margin-bottom: 80px;
  20733. }
  20734. .g_d_group_chair {
  20735. display: flex;
  20736. align-items: center;
  20737. justify-content: center;
  20738. }
  20739. .g_d_group_chair > div + div {
  20740. margin-left: 30px;
  20741. }
  20742. .g_d_group_chair > div,
  20743. .g_d_group_chair2 > div {
  20744. display: flex;
  20745. flex-direction: column;
  20746. align-items: center;
  20747. }
  20748. .g_d_group_chair > div > span:nth-child(1),
  20749. .g_d_group_chair2 > div > span:nth-child(1) {
  20750. background-image: url(../../assets/icon/chair.png);
  20751. width: 50px;
  20752. height: 50px;
  20753. display: block;
  20754. background-size: 100% 100%;
  20755. }
  20756. .g_d_group_tableBox {
  20757. display: flex;
  20758. align-items: center;
  20759. justify-content: center;
  20760. }
  20761. .g_d_group_chair2 {
  20762. display: flex;
  20763. flex-direction: column;
  20764. align-items: center;
  20765. justify-content: center;
  20766. }
  20767. .g_d_group_chair2 > div + div {
  20768. margin-top: 10px;
  20769. }
  20770. .g_d_group_table {
  20771. background-image: url(../../assets/icon/groupBg.png);
  20772. width: 354px;
  20773. height: 196px;
  20774. background-size: 100% 100%;
  20775. display: flex;
  20776. align-items: center;
  20777. justify-content: center;
  20778. flex-direction: column;
  20779. color: #fff;
  20780. }
  20781. .g_d_group_table > div:nth-child(1) {
  20782. font-size: 24px;
  20783. margin-bottom: 5px;
  20784. }
  20785. .g_d_group_table > div:nth-child(2) div {
  20786. cursor: pointer;
  20787. background: #2e77bf;
  20788. padding: 4px 10px;
  20789. border-radius: 5px;
  20790. }
  20791. .groupBox {
  20792. }
  20793. .groupContent + .groupContent {
  20794. margin-top: 30px;
  20795. }
  20796. .groupTitle {
  20797. font-size: 24px;
  20798. color: rgb(80, 80, 80);
  20799. margin-bottom: 20px;
  20800. }
  20801. .groupName {
  20802. display: flex;
  20803. align-items: center;
  20804. }
  20805. .groupn {
  20806. font-size: 15px;
  20807. margin-right: 10px;
  20808. }
  20809. .groupName + .groupName {
  20810. margin-top: 15px;
  20811. }
  20812. .groupBtn {
  20813. margin-left: 10px;
  20814. }
  20815. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  20816. text-align: left;
  20817. }
  20818. .g_d_btnBox {
  20819. display: flex;
  20820. justify-content: flex-end;
  20821. align-items: flex-end;
  20822. margin-bottom: 20px;
  20823. }
  20824. .updateChair {
  20825. position: relative;
  20826. }
  20827. .updateChairBtn {
  20828. position: absolute;
  20829. width: 50px;
  20830. height: 50px;
  20831. overflow: hidden;
  20832. /* display: flex; */
  20833. align-items: center;
  20834. justify-content: center;
  20835. background: #00000087;
  20836. color: #fff;
  20837. border-radius: 50px;
  20838. display: none;
  20839. cursor: pointer;
  20840. }
  20841. .updateChair:hover .updateChairBtn {
  20842. display: flex;
  20843. }
  20844. .group_staic_box {
  20845. display: flex;
  20846. padding: 30px 40px 10px;
  20847. flex-wrap: wrap;
  20848. }
  20849. .group_staic {
  20850. /* width: 50%; */
  20851. margin-bottom: 20px;
  20852. display: flex;
  20853. align-items: center;
  20854. }
  20855. .group_staic span:nth-child(1) {
  20856. width: 150px;
  20857. text-align: right;
  20858. margin-right: 15px;
  20859. }
  20860. .group_staic span:nth-child(2) {
  20861. background: rgb(0 123 255);
  20862. color: #fff;
  20863. border-radius: 5px;
  20864. padding: 5px;
  20865. }
  20866. .codeFileBox {
  20867. height: 300px;
  20868. background: #fff;
  20869. display: flex;
  20870. align-items: center;
  20871. justify-content: center;
  20872. }
  20873. .codeFileBox img {
  20874. width: 200px;
  20875. margin: 0;
  20876. height: auto;
  20877. }
  20878. .codeFileBox div {
  20879. background: rgb(80, 142, 226);
  20880. color: #fff;
  20881. padding: 10px 20px;
  20882. border-radius: 25px;
  20883. cursor: pointer;
  20884. margin-left: 15px;
  20885. }
  20886. .radioBox {
  20887. display: flex;
  20888. flex-direction: column;
  20889. flex-wrap: nowrap;
  20890. align-items: flex-start;
  20891. }
  20892. .radioBox > div {
  20893. margin: 10px 0 0 10px;
  20894. }
  20895. /* .radioBox >>> .el-radio__input,
  20896. .radioBox >>> .el-checkbox__inner {
  20897. margin-left: 10px;
  20898. } */
  20899. .radioBox >>> .el-radio__label,
  20900. .radioBox >>> .el-checkbox__label {
  20901. display: flex;
  20902. align-items: center;
  20903. }
  20904. .radioBox >>> .el-radio__label > span {
  20905. width: 100%;
  20906. display: -webkit-box;
  20907. overflow: hidden;
  20908. white-space: normal !important;
  20909. text-overflow: ellipsis;
  20910. word-wrap: break-word;
  20911. }
  20912. .inImg {
  20913. width: 100px;
  20914. cursor: pointer;
  20915. }
  20916. .inImg > img {
  20917. width: 100%;
  20918. height: 100%;
  20919. object-fit: cover;
  20920. }
  20921. .timuImgBox {
  20922. margin: 10px 0;
  20923. display: flex;
  20924. flex-direction: column;
  20925. flex-wrap: wrap;
  20926. align-items: flex-start;
  20927. }
  20928. .timuImg {
  20929. width: 150px;
  20930. margin: 5px 0;
  20931. cursor: pointer;
  20932. }
  20933. .timuImg > img {
  20934. width: 100%;
  20935. height: 100%;
  20936. object-fit: cover;
  20937. }
  20938. .worksTop {
  20939. display: flex;
  20940. flex-direction: row;
  20941. align-items: flex-end;
  20942. }
  20943. .corOpen {
  20944. margin: 0 0 0 10px;
  20945. font-size: 14px;
  20946. cursor: pointer;
  20947. color: #505050;
  20948. }
  20949. .corOpen:hover {
  20950. color: #499eef;
  20951. }
  20952. .navCorOpenBox {
  20953. display: flex;
  20954. flex-direction: row;
  20955. align-items: center;
  20956. justify-content: space-between;
  20957. height: 55px;
  20958. background: #ffffff;
  20959. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  20960. border-radius: 8px 8px 0px 0px;
  20961. z-index: 9;
  20962. position: relative;
  20963. }
  20964. .navCorOpen {
  20965. padding-right: 15px;
  20966. cursor: pointer;
  20967. width: 20px;
  20968. display: flex;
  20969. }
  20970. .navCorOpen > img {
  20971. width: 100%;
  20972. height: 100%;
  20973. }
  20974. .mlImg {
  20975. width: 25px !important;
  20976. min-width: 25px;
  20977. cursor: pointer;
  20978. margin-top: 5px;
  20979. }
  20980. .mlImg > img {
  20981. width: 100%;
  20982. height: 100%;
  20983. }
  20984. .navLeftCss {
  20985. width: 100% !important;
  20986. left: 0 !important;
  20987. }
  20988. .isContentCss {
  20989. width: 100% !important;
  20990. }
  20991. .isAllWidth {
  20992. width: 100% !important;
  20993. }
  20994. .toolBoxSteps {
  20995. position: absolute;
  20996. top: 50%;
  20997. transform: translateY(-50%);
  20998. cursor: pointer;
  20999. width: 60px;
  21000. display: flex;
  21001. align-items: center;
  21002. justify-content: center;
  21003. }
  21004. .toolBoxSteps:nth-child(1) > img,
  21005. .toolBoxSteps:nth-child(2) > img {
  21006. width: 24px;
  21007. }
  21008. .toolBoxSteps:nth-child(1) {
  21009. left: 0;
  21010. }
  21011. .toolBoxSteps:nth-child(2) {
  21012. right: 0;
  21013. }
  21014. .isChooseActive {
  21015. color: #3681fc !important;
  21016. font-weight: bold !important;
  21017. }
  21018. .tool_box {
  21019. width: 100%;
  21020. }
  21021. .tool_type_box {
  21022. display: flex;
  21023. flex-direction: row;
  21024. align-items: baseline;
  21025. flex-wrap: nowrap;
  21026. justify-content: flex-start;
  21027. position: relative;
  21028. }
  21029. .toolSort {
  21030. display: flex;
  21031. flex-direction: row;
  21032. flex-wrap: wrap;
  21033. justify-content: flex-start;
  21034. align-items: flex-start;
  21035. }
  21036. .toolSort > div {
  21037. margin: 0 45px 0 0;
  21038. width: auto;
  21039. }
  21040. .tools {
  21041. width: 100%;
  21042. display: flex;
  21043. flex-direction: column;
  21044. flex-wrap: nowrap;
  21045. align-items: flex-start;
  21046. }
  21047. .whiteBIcon {
  21048. width: 80px;
  21049. cursor: pointer;
  21050. display: flex;
  21051. flex-direction: column;
  21052. flex-wrap: nowrap;
  21053. align-items: center;
  21054. font-size:14px;
  21055. }
  21056. .whiteBIcon > img {
  21057. width: 100%;
  21058. height: 100%;
  21059. }
  21060. .whiteBIcon > img {
  21061. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  21062. border-radius: 15px;
  21063. }
  21064. .dia_tool_box {
  21065. display: flex;
  21066. flex-wrap: wrap;
  21067. width: 100%;
  21068. }
  21069. .dia_tool_box > div {
  21070. margin-right: 40px;
  21071. }
  21072. .check {
  21073. /* width: 20px;
  21074. height: 20px; */
  21075. cursor: pointer;
  21076. margin: 10px 0;
  21077. }
  21078. .checkDiv {
  21079. display: flex;
  21080. align-items: center;
  21081. }
  21082. .checkDiv span {
  21083. margin-left: 5px;
  21084. color: #858585;
  21085. }
  21086. .check img {
  21087. width: 20px;
  21088. height: 20px;
  21089. }
  21090. /* code 样式 */
  21091. .cont {
  21092. /* -webkit-user-modify: read-write; */
  21093. overflow-wrap: break-word;
  21094. -webkit-line-break: after-white-space;
  21095. }
  21096. /* table 样式 */
  21097. .cont >>> table {
  21098. border-top: 1px solid #ccc;
  21099. border-left: 1px solid #ccc;
  21100. }
  21101. .cont >>> table td,
  21102. .cont >>> table th {
  21103. border-bottom: 1px solid #ccc;
  21104. border-right: 1px solid #ccc;
  21105. /* padding: 20px 5px; */
  21106. padding: 5px 10px;
  21107. max-width: 0px;
  21108. height: 30px;
  21109. vertical-align: baseline;
  21110. box-sizing: border-box;
  21111. }
  21112. .cont >>> table th {
  21113. border-bottom: 2px solid #ccc;
  21114. text-align: center;
  21115. }
  21116. /* blockquote 样式 */
  21117. .cont >>> blockquote {
  21118. display: block;
  21119. border-left: 8px solid #d0e5f2;
  21120. padding: 5px 10px;
  21121. margin: 10px 0;
  21122. line-height: 1.4;
  21123. font-size: 100%;
  21124. background-color: #f1f1f1;
  21125. }
  21126. /* code 样式 */
  21127. .cont >>> code {
  21128. display: inline-block;
  21129. /* *display: inline; */
  21130. zoom: 1;
  21131. background-color: #f1f1f1;
  21132. border-radius: 3px;
  21133. padding: 3px 5px;
  21134. margin: 0 3px;
  21135. }
  21136. .cont >>> pre code {
  21137. display: block;
  21138. }
  21139. /* ul ol 样式 */
  21140. .cont >>> ul,
  21141. ol {
  21142. margin: 10px 0 10px 20px;
  21143. }
  21144. .fileC_box > .fileC_title {
  21145. padding: 10px 5px;
  21146. border-top: 1px solid #cdcdcd;
  21147. font-size: 14px;
  21148. color: #868686;
  21149. width: 88%;
  21150. margin: 0 auto;
  21151. }
  21152. .pl_select_box {
  21153. height: 40px;
  21154. line-height: 40px;
  21155. width: 100%;
  21156. cursor: pointer;
  21157. padding: 0 20px;
  21158. box-sizing: border-box;
  21159. border-radius: 5px;
  21160. border: 1px solid #d6d6d6;
  21161. white-space: nowrap;
  21162. overflow: hidden;
  21163. text-overflow: ellipsis;
  21164. background: #fff;
  21165. text-align: left;
  21166. }
  21167. .stageBoxCss {
  21168. display: flex;
  21169. flex-direction: row;
  21170. flex-wrap: nowrap;
  21171. align-items: center;
  21172. height: 50px;
  21173. border-bottom: 1px solid #e2f5fc;
  21174. cursor: pointer;
  21175. }
  21176. .stageChild {
  21177. height: 0;
  21178. overflow: hidden;
  21179. transition: all 0.5s;
  21180. }
  21181. .navItem {
  21182. background: #f0f4fa;
  21183. border-radius: 8px;
  21184. width: 95%;
  21185. margin: 10px auto 0;
  21186. display: flex;
  21187. flex-direction: row;
  21188. flex-wrap: nowrap;
  21189. justify-content: flex-start;
  21190. align-items: center;
  21191. }
  21192. .navItemList {
  21193. display: flex;
  21194. flex-direction: row;
  21195. flex-wrap: nowrap;
  21196. align-items: center;
  21197. padding: 18px 13px;
  21198. cursor: pointer;
  21199. font-size: 16px;
  21200. font-weight: 400;
  21201. color: #0e1e33;
  21202. justify-content: flex-start;
  21203. width: 100%;
  21204. border-radius: 8px;
  21205. }
  21206. .navItemList > div {
  21207. font-size: 16px;
  21208. font-weight: 400;
  21209. color: #0e1e33;
  21210. }
  21211. .navItemList > div:first-child {
  21212. min-width: 60px;
  21213. }
  21214. .navItemList > div:last-child {
  21215. display: -webkit-box;
  21216. overflow: hidden;
  21217. white-space: normal !important;
  21218. text-overflow: ellipsis;
  21219. word-wrap: break-word;
  21220. -webkit-line-clamp: 2;
  21221. -webkit-box-orient: vertical;
  21222. }
  21223. .isItemList {
  21224. background: #3681fc;
  21225. }
  21226. .isItemList > div {
  21227. color: #fff;
  21228. }
  21229. .navListItem {
  21230. width: 280px;
  21231. height: 50px;
  21232. margin: 0px auto 10px;
  21233. display: flex;
  21234. flex-direction: row;
  21235. flex-wrap: nowrap;
  21236. align-items: center;
  21237. justify-content: space-between;
  21238. background: #f0f4fa;
  21239. border-radius: 6px 6px 6px 6px;
  21240. }
  21241. .downIcon {
  21242. width: 20px;
  21243. min-width: 20px;
  21244. height: 20px;
  21245. margin-right: 15px;
  21246. cursor: pointer;
  21247. }
  21248. .downIcon > img {
  21249. width: 100%;
  21250. height: 100%;
  21251. }
  21252. .newButton {
  21253. width: 102px;
  21254. height: 36px;
  21255. background: #e7ebf1;
  21256. border-radius: 4px;
  21257. color: #0e1e33;
  21258. font-weight: 400;
  21259. font-size: 14px;
  21260. border: none;
  21261. float: right;
  21262. margin-left: 10px;
  21263. }
  21264. .pick_box {
  21265. display: flex;
  21266. align-items: flex-start;
  21267. flex-wrap: wrap;
  21268. }
  21269. .selectBox {
  21270. width: 110px;
  21271. margin-left: 10px;
  21272. margin: 0 10px 0 auto;
  21273. }
  21274. .selectBox>>>.el-input__inner {
  21275. height: 30px;
  21276. line-height: 30px;
  21277. }
  21278. .selectBox>>>.el-input__icon {
  21279. line-height: 30px;
  21280. }
  21281. .sentenceTitle{
  21282. display: flex;
  21283. flex-direction: row;
  21284. flex-wrap: nowrap;
  21285. align-items: center;
  21286. }
  21287. .sentenceTitle::before{
  21288. content:attr(index);
  21289. background: #3681fc;
  21290. border-radius: 50%;
  21291. color: #fff;
  21292. width: 25px;
  21293. height: 25px;
  21294. min-width: 25px;
  21295. min-height: 25px;
  21296. text-align: center;
  21297. line-height: 25px;
  21298. margin-right: 5px;
  21299. }
  21300. </style>